From 4d8a99f03b25ef2fc8dda6c47fa205addda5c406 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 19 Mar 2018 17:53:02 -0400 Subject: [PATCH] @ionic/core 0.1.4-8 --- core/CHANGELOG.md | 15 +++++++++++++++ core/README.md | 2 +- core/package-lock.json | 2 +- core/package.json | 2 +- core/src/components.d.ts | 1 + core/src/components/action-sheet/readme.md | 14 ++++++++++++++ core/src/components/alert/readme.md | 14 ++++++++++++++ core/src/components/loading/readme.md | 14 ++++++++++++++ core/src/components/modal/readme.md | 14 ++++++++++++++ core/src/components/nav/readme.md | 10 ++++++++++ core/src/components/picker/readme.md | 14 ++++++++++++++ core/src/components/popover/readme.md | 14 ++++++++++++++ core/src/components/toast/readme.md | 14 ++++++++++++++ 13 files changed, 127 insertions(+), 3 deletions(-) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 9fe4ea2109..181bdea2b8 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,3 +1,18 @@ + +## [0.1.4-8](https://github.com/ionic-team/ionic/compare/v0.1.4-7...v0.1.4-8) (2018-03-19) + + +### Bug Fixes + +* **back-button:** apply the proper color to the back button ([7d2de18](https://github.com/ionic-team/ionic/commit/7d2de18)), closes [#14177](https://github.com/ionic-team/ionic/issues/14177) + + +### Features + +* **nav:** support for rootParams ([50abcf5](https://github.com/ionic-team/ionic/commit/50abcf5)) + + + ## [0.1.4-7](https://github.com/ionic-team/ionic/compare/v0.1.4-6...v0.1.4-7) (2018-03-16) diff --git a/core/README.md b/core/README.md index 2430774d1a..cc2e3702f3 100644 --- a/core/README.md +++ b/core/README.md @@ -20,7 +20,7 @@ The Ionic Core package contains the Web Components that make up the reusable UI Easiest way to start using Ionic Core is by adding a script tag to the CDN: - + Any Ionic component added to the webpage will automatically load. This includes writing the component tag directly in HTML, or using JavaScript such as `document.createElement('ion-toggle')`. diff --git a/core/package-lock.json b/core/package-lock.json index 8c4b41d21f..ca984b86cf 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -1,6 +1,6 @@ { "name": "@ionic/core", - "version": "0.1.4-7", + "version": "0.1.4-8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/core/package.json b/core/package.json index 4954131630..88f6acf39a 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@ionic/core", - "version": "0.1.4-7", + "version": "0.1.4-8", "description": "Base components for Ionic", "keywords": [ "ionic", diff --git a/core/src/components.d.ts b/core/src/components.d.ts index d5d1f528b5..d08bf90865 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -2034,6 +2034,7 @@ declare global { namespace JSXElements { export interface IonNavAttributes extends HTMLAttributes { root?: any; + rootParams?: any; swipeBackEnabled?: boolean; } } diff --git a/core/src/components/action-sheet/readme.md b/core/src/components/action-sheet/readme.md index cc7997238f..608707957d 100644 --- a/core/src/components/action-sheet/readme.md +++ b/core/src/components/action-sheet/readme.md @@ -241,9 +241,23 @@ Dismiss the action sheet overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the action-sheet did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await actionSheet.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the action-sheet will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await actionSheet.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/alert/readme.md b/core/src/components/alert/readme.md index acfc0df806..b2e3eec152 100644 --- a/core/src/components/alert/readme.md +++ b/core/src/components/alert/readme.md @@ -249,9 +249,23 @@ Dismiss the alert overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the alert did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await alert.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the alert will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await alert.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/loading/readme.md b/core/src/components/loading/readme.md index f8805ee59d..cd394c75d2 100644 --- a/core/src/components/loading/readme.md +++ b/core/src/components/loading/readme.md @@ -244,9 +244,23 @@ Dismiss the loading overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the loading did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await loading.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the loading will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await loading.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/modal/readme.md b/core/src/components/modal/readme.md index 810bb9132c..bd58c5d631 100644 --- a/core/src/components/modal/readme.md +++ b/core/src/components/modal/readme.md @@ -261,9 +261,23 @@ Dismiss the modal overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the modal did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await modal.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the modal will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await modal.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/nav/readme.md b/core/src/components/nav/readme.md index 86900d85bb..ef7bd67d0b 100644 --- a/core/src/components/nav/readme.md +++ b/core/src/components/nav/readme.md @@ -12,6 +12,11 @@ any +#### rootParams + +any + + #### swipeBackEnabled boolean @@ -24,6 +29,11 @@ boolean any +#### root-params + +any + + #### swipe-back-enabled boolean diff --git a/core/src/components/picker/readme.md b/core/src/components/picker/readme.md index 742c211fb7..d277812ad2 100644 --- a/core/src/components/picker/readme.md +++ b/core/src/components/picker/readme.md @@ -202,9 +202,23 @@ Dismiss the picker overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the picker did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await picker.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the picker will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await picker.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/popover/readme.md b/core/src/components/popover/readme.md index 944e24b04c..b42c3fc9e6 100644 --- a/core/src/components/popover/readme.md +++ b/core/src/components/popover/readme.md @@ -269,9 +269,23 @@ Dismiss the popover overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the popover did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await popover.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the popover will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await popover.onWillDismiss(); +``` + #### present() diff --git a/core/src/components/toast/readme.md b/core/src/components/toast/readme.md index 860ea5179d..723f2ea1af 100644 --- a/core/src/components/toast/readme.md +++ b/core/src/components/toast/readme.md @@ -254,9 +254,23 @@ Dismiss the toast overlay after it has been presented. #### onDidDismiss() +Returns a promise that resolves when the toast did dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await toast.onDidDismiss(); +``` + #### onWillDismiss() +Returns a promise that resolves when the toast will dismiss. It also accepts a callback +that is called in the same circustances. + +``` +const {data, role} = await toast.onWillDismiss(); +``` + #### present()