@ionic/core 8.6.2 → 8.6.3-dev.11750971489.140836b0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/action-sheet.js +8 -9
- package/components/alert.js +7 -8
- package/components/ion-app.js +3 -1
- package/components/ion-datetime.js +8 -2
- package/components/ion-loading.js +7 -8
- package/components/ion-menu.js +27 -5
- package/components/ion-reorder-group.js +1 -2
- package/components/ion-router.js +1 -0
- package/components/ion-searchbar.js +4 -6
- package/components/ion-toast.js +6 -7
- package/components/modal.js +26 -10
- package/components/popover.js +8 -7
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -9
- package/dist/cjs/ion-alert.cjs.entry.js +7 -8
- package/dist/cjs/ion-app_8.cjs.entry.js +3 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +8 -2
- package/dist/cjs/ion-loading.cjs.entry.js +7 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +27 -5
- package/dist/cjs/ion-modal.cjs.entry.js +26 -10
- package/dist/cjs/ion-popover.cjs.entry.js +8 -7
- package/dist/cjs/ion-reorder_2.cjs.entry.js +1 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +1 -0
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -6
- package/dist/cjs/ion-toast.cjs.entry.js +6 -7
- package/dist/collection/components/action-sheet/action-sheet.js +11 -12
- package/dist/collection/components/alert/alert.js +10 -11
- package/dist/collection/components/app/app.js +8 -3
- package/dist/collection/components/datetime/datetime.js +23 -8
- package/dist/collection/components/loading/loading.js +10 -11
- package/dist/collection/components/menu/menu.js +62 -19
- package/dist/collection/components/modal/modal.js +35 -16
- package/dist/collection/components/popover/popover.js +18 -14
- package/dist/collection/components/reorder-group/reorder-group.js +2 -3
- package/dist/collection/components/router/router.js +5 -1
- package/dist/collection/components/searchbar/searchbar.js +5 -7
- package/dist/collection/components/toast/toast.js +9 -10
- package/dist/docs.json +138 -72
- package/dist/esm/ion-action-sheet.entry.js +8 -9
- package/dist/esm/ion-alert.entry.js +7 -8
- package/dist/esm/ion-app_8.entry.js +3 -1
- package/dist/esm/ion-datetime_3.entry.js +8 -2
- package/dist/esm/ion-loading.entry.js +7 -8
- package/dist/esm/ion-menu_3.entry.js +27 -5
- package/dist/esm/ion-modal.entry.js +26 -10
- package/dist/esm/ion-popover.entry.js +8 -7
- package/dist/esm/ion-reorder_2.entry.js +1 -2
- package/dist/esm/ion-route_4.entry.js +1 -0
- package/dist/esm/ion-searchbar.entry.js +4 -6
- package/dist/esm/ion-toast.entry.js +6 -7
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-96389029.entry.js → p-01123ecf.entry.js} +1 -1
- package/dist/ionic/{p-cb787a4b.entry.js → p-03d21728.entry.js} +1 -1
- package/dist/ionic/{p-9e699d4a.entry.js → p-0d131a02.entry.js} +1 -1
- package/dist/ionic/{p-6b666996.entry.js → p-2d0eccfb.entry.js} +1 -1
- package/dist/ionic/{p-ead42a37.entry.js → p-5f671887.entry.js} +1 -1
- package/dist/ionic/p-69f91268.entry.js +4 -0
- package/dist/ionic/p-9e32212d.entry.js +4 -0
- package/dist/ionic/{p-2020aa51.entry.js → p-b758a177.entry.js} +1 -1
- package/dist/ionic/p-b9ba04ca.entry.js +4 -0
- package/dist/ionic/{p-cd12ed1c.entry.js → p-d8429eb4.entry.js} +1 -1
- package/dist/ionic/{p-3a4feac2.entry.js → p-e37d6c67.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +5 -6
- package/dist/types/components/alert/alert.d.ts +5 -6
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/components/datetime/datetime.d.ts +6 -0
- package/dist/types/components/loading/loading.d.ts +5 -6
- package/dist/types/components/menu/menu.d.ts +25 -3
- package/dist/types/components/modal/modal.d.ts +14 -6
- package/dist/types/components/popover/popover.d.ts +6 -5
- package/dist/types/components/reorder-group/reorder-group.d.ts +0 -1
- package/dist/types/components/router/router.d.ts +1 -0
- package/dist/types/components/searchbar/searchbar.d.ts +0 -2
- package/dist/types/components/toast/toast.d.ts +4 -5
- package/dist/types/components.d.ts +32 -18
- package/hydrate/index.js +106 -65
- package/hydrate/index.mjs +106 -65
- package/package.json +1 -1
- package/dist/ionic/p-29759454.entry.js +0 -4
- package/dist/ionic/p-7149db7e.entry.js +0 -4
- package/dist/ionic/p-bec79123.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -7539,16 +7539,15 @@ class ActionSheet {
|
|
|
7539
7539
|
}
|
|
7540
7540
|
/**
|
|
7541
7541
|
* Dismiss the action sheet overlay after it has been presented.
|
|
7542
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
7543
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
7544
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
7542
7545
|
*
|
|
7543
7546
|
* @param data Any data to emit in the dismiss events.
|
|
7544
7547
|
* @param role The role of the element that is dismissing the action sheet.
|
|
7545
7548
|
* This can be useful in a button handler for determining which button was
|
|
7546
|
-
* clicked to dismiss the action sheet.
|
|
7547
|
-
*
|
|
7548
|
-
*
|
|
7549
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
7550
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
7551
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
7549
|
+
* clicked to dismiss the action sheet. Some examples include:
|
|
7550
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
7552
7551
|
*/
|
|
7553
7552
|
async dismiss(data, role) {
|
|
7554
7553
|
const unlock = await this.lockController.lock();
|
|
@@ -7660,12 +7659,12 @@ class ActionSheet {
|
|
|
7660
7659
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
7661
7660
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
7662
7661
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
7663
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
7662
|
+
return (hAsync(Host, Object.assign({ key: '9fef156b2a1f09ca4a6c1fe1f37c374139bde03c', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
7664
7663
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
7665
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '
|
|
7664
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '81cf3f7d19864e041813987b46d2d115b8466819', tappable: this.backdropDismiss }), hAsync("div", { key: '791c6a976683646fc306a42c15c5078b6f06a45f', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: 'a350b489ef7852eab9dc2227ce6d92da27dd9bf9', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: '69ba51ee13510c1a411d87cb4845b11b7302a36f', class: "action-sheet-container" }, hAsync("div", { key: 'bded15b8306c36591e526f0f99e1eeabcbab3915', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (hAsync("div", { key: '06b5147c0f6d9180fe8f12e75c9b4a0310226adc', id: headerID, class: {
|
|
7666
7665
|
'action-sheet-title': true,
|
|
7667
7666
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
7668
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
7667
|
+
} }, header, this.subHeader && hAsync("div", { key: '54874362a75c679aba803bf4f8768f5404d2dd28', class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (hAsync("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass$3(b), onClick: () => this.buttonClick(b), disabled: b.disabled }), hAsync("span", { class: "action-sheet-button-inner" }, b.icon && hAsync("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && hAsync("ion-ripple-effect", null))))), cancelButton && (hAsync("div", { key: '67b0de298eb424f3dea846a841b7a06d70e3930d', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", Object.assign({ key: 'e7e3f9a5495eea9b97dbf885ef36944f2e420eff' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$3(cancelButton), onClick: () => this.buttonClick(cancelButton) }), hAsync("span", { key: 'f889d29ed6c3d14bbc1d805888351d87f5122377', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: '7c05cf424b38c37fd40aaeb42a494387291571fb', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && hAsync("ion-ripple-effect", { key: 'bed927b477dc2708a5123ef560274fca9819b3d6' })))))), hAsync("div", { key: 'c5df1b11dc15a93892d57065d3dd5fbe02e43b39', tabindex: "0", "aria-hidden": "true" })));
|
|
7669
7668
|
}
|
|
7670
7669
|
get el() { return getElement(this); }
|
|
7671
7670
|
static get watchers() { return {
|
|
@@ -8218,16 +8217,15 @@ class Alert {
|
|
|
8218
8217
|
}
|
|
8219
8218
|
/**
|
|
8220
8219
|
* Dismiss the alert overlay after it has been presented.
|
|
8220
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
8221
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
8222
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
8221
8223
|
*
|
|
8222
8224
|
* @param data Any data to emit in the dismiss events.
|
|
8223
8225
|
* @param role The role of the element that is dismissing the alert.
|
|
8224
8226
|
* This can be useful in a button handler for determining which button was
|
|
8225
|
-
* clicked to dismiss the alert.
|
|
8226
|
-
*
|
|
8227
|
-
*
|
|
8228
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
8229
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
8230
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
8227
|
+
* clicked to dismiss the alert. Some examples include:
|
|
8228
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
8231
8229
|
*/
|
|
8232
8230
|
async dismiss(data, role) {
|
|
8233
8231
|
const unlock = await this.lockController.lock();
|
|
@@ -8395,9 +8393,9 @@ class Alert {
|
|
|
8395
8393
|
* If neither are defined, do not set aria-labelledby.
|
|
8396
8394
|
*/
|
|
8397
8395
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
8398
|
-
return (hAsync(Host, { key: '
|
|
8396
|
+
return (hAsync(Host, { key: '6025440b9cd369d4fac89e7e4296c84a10a0b8e0', tabindex: "-1", style: {
|
|
8399
8397
|
zIndex: `${20000 + overlayIndex}`,
|
|
8400
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '
|
|
8398
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '3cd5ca8b99cb95b11dd22ab41a820d841142896f', tappable: this.backdropDismiss }), hAsync("div", { key: '4cc62ae6e21424057d22aeef1e8fc77011e77cd5', tabindex: "0", "aria-hidden": "true" }), hAsync("div", Object.assign({ key: '364057a69f25aa88904df17bdcf7e5bf714e7830', class: "alert-wrapper ion-overlay-wrapper", role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "0", ref: (el) => (this.wrapperEl = el) }, htmlAttributes), hAsync("div", { key: '78694e3c0db2d408df3899fb1a90859bcc8d14cc', class: "alert-head" }, header && (hAsync("h2", { key: 'ec88ff3e4e1ea871b5975133fdcf4cac38b05e0f', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (hAsync("h2", { key: '9b09bc8bb68af255ef8b7d22587acc946148e544', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (hAsync("h3", { key: '99abe815f75d2df7f1b77c0df9f3436724fea76f', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), hAsync("div", { key: 'a43d0c22c0e46b1ef911f92ffeb253d7911b85f7', tabindex: "0", "aria-hidden": "true" })));
|
|
8401
8399
|
}
|
|
8402
8400
|
get el() { return getElement(this); }
|
|
8403
8401
|
static get watchers() { return {
|
|
@@ -8466,6 +8464,8 @@ class App {
|
|
|
8466
8464
|
* a result of another user action. (Ex: We focus the first element
|
|
8467
8465
|
* inside of a popover when the user presents it, but the popover is not always
|
|
8468
8466
|
* presented as a result of keyboard action.)
|
|
8467
|
+
*
|
|
8468
|
+
* @param elements An array of HTML elements to set focus on.
|
|
8469
8469
|
*/
|
|
8470
8470
|
async setFocus(elements) {
|
|
8471
8471
|
if (this.focusVisible) {
|
|
@@ -8474,7 +8474,7 @@ class App {
|
|
|
8474
8474
|
}
|
|
8475
8475
|
render() {
|
|
8476
8476
|
const mode = getIonMode$1(this);
|
|
8477
|
-
return (hAsync(Host, { key: '
|
|
8477
|
+
return (hAsync(Host, { key: '9be440c65819e4fa67c2c3c6477ab40b3ad3eed3', class: {
|
|
8478
8478
|
[mode]: true,
|
|
8479
8479
|
'ion-page': true,
|
|
8480
8480
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -13094,6 +13094,8 @@ class Datetime {
|
|
|
13094
13094
|
* Confirms the selected datetime value, updates the
|
|
13095
13095
|
* `value` property, and optionally closes the popover
|
|
13096
13096
|
* or modal that the datetime was presented in.
|
|
13097
|
+
*
|
|
13098
|
+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
13097
13099
|
*/
|
|
13098
13100
|
async confirm(closeOverlay = false) {
|
|
13099
13101
|
const { isCalendarPicker, activeParts, preferWheel, workingParts } = this;
|
|
@@ -13127,6 +13129,8 @@ class Datetime {
|
|
|
13127
13129
|
* Resets the internal state of the datetime but does not update the value.
|
|
13128
13130
|
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
|
|
13129
13131
|
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
|
|
13132
|
+
*
|
|
13133
|
+
* @param startDate A valid [ISO-8601 string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) to reset the datetime state to.
|
|
13130
13134
|
*/
|
|
13131
13135
|
async reset(startDate) {
|
|
13132
13136
|
this.processValue(startDate);
|
|
@@ -13136,6 +13140,8 @@ class Datetime {
|
|
|
13136
13140
|
* optionally closes the popover
|
|
13137
13141
|
* or modal that the datetime was
|
|
13138
13142
|
* presented in.
|
|
13143
|
+
*
|
|
13144
|
+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
13139
13145
|
*/
|
|
13140
13146
|
async cancel(closeOverlay = false) {
|
|
13141
13147
|
this.ionCancel.emit();
|
|
@@ -13949,7 +13955,7 @@ class Datetime {
|
|
|
13949
13955
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
13950
13956
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
13951
13957
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
13952
|
-
return (hAsync(Host, { key: '
|
|
13958
|
+
return (hAsync(Host, { key: '79677f5bc0fb32fb68569636bd76e68238e62eb8', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
|
|
13953
13959
|
[mode]: true,
|
|
13954
13960
|
['datetime-readonly']: readonly,
|
|
13955
13961
|
['datetime-disabled']: disabled,
|
|
@@ -13959,7 +13965,7 @@ class Datetime {
|
|
|
13959
13965
|
[`datetime-size-${size}`]: true,
|
|
13960
13966
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
13961
13967
|
[`datetime-grid`]: isGridStyle,
|
|
13962
|
-
})) }, hAsync("div", { key: '
|
|
13968
|
+
})) }, hAsync("div", { key: 'bf07b1e3c64af6e837663ff470bea93787a6e86f', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
13963
13969
|
}
|
|
13964
13970
|
get el() { return getElement(this); }
|
|
13965
13971
|
static get watchers() { return {
|
|
@@ -19007,16 +19013,15 @@ class Loading {
|
|
|
19007
19013
|
}
|
|
19008
19014
|
/**
|
|
19009
19015
|
* Dismiss the loading overlay after it has been presented.
|
|
19016
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
19017
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
19018
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
19010
19019
|
*
|
|
19011
19020
|
* @param data Any data to emit in the dismiss events.
|
|
19012
19021
|
* @param role The role of the element that is dismissing the loading.
|
|
19013
19022
|
* This can be useful in a button handler for determining which button was
|
|
19014
|
-
* clicked to dismiss the loading.
|
|
19015
|
-
*
|
|
19016
|
-
*
|
|
19017
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
19018
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
19019
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
19023
|
+
* clicked to dismiss the loading. Some examples include:
|
|
19024
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
19020
19025
|
*/
|
|
19021
19026
|
async dismiss(data, role) {
|
|
19022
19027
|
const unlock = await this.lockController.lock();
|
|
@@ -19058,9 +19063,9 @@ class Loading {
|
|
|
19058
19063
|
* Otherwise, don't set aria-labelledby.
|
|
19059
19064
|
*/
|
|
19060
19065
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
19061
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
19066
|
+
return (hAsync(Host, Object.assign({ key: '4497183ce220242abe19ae15f328f9a92ccafbbc', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
19062
19067
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
19063
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
19068
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '231dec84e424a2dc358ce95b84d6035cf43e4dea', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'c9af29b6e6bb49a217396a5c874bbfb8835a926c', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: 'a8659863743cdeccbe1ba810eaabfd3ebfcb86f3', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: '3b346f39bc71691bd8686556a1e142198a7b12fa', class: "loading-spinner" }, hAsync("ion-spinner", { key: '8dc2bf1556e5138e262827f1516c59ecd09f3520', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: '054164c0dbae9a0e0973dd3c8e28f5b771820310', tabindex: "0", "aria-hidden": "true" })));
|
|
19064
19069
|
}
|
|
19065
19070
|
get el() { return getElement(this); }
|
|
19066
19071
|
static get watchers() { return {
|
|
@@ -19688,7 +19693,7 @@ class Menu {
|
|
|
19688
19693
|
return Promise.resolve(this._isOpen);
|
|
19689
19694
|
}
|
|
19690
19695
|
/**
|
|
19691
|
-
* Returns `true`
|
|
19696
|
+
* Returns `true` if the menu is active.
|
|
19692
19697
|
*
|
|
19693
19698
|
* A menu is active when it can be opened or closed, meaning it's enabled
|
|
19694
19699
|
* and it's not part of a `ion-split-pane`.
|
|
@@ -19699,6 +19704,10 @@ class Menu {
|
|
|
19699
19704
|
/**
|
|
19700
19705
|
* Opens the menu. If the menu is already open or it can't be opened,
|
|
19701
19706
|
* it returns `false`.
|
|
19707
|
+
*
|
|
19708
|
+
* @param animated If `true`, the menu will animate when opening.
|
|
19709
|
+
* If `false`, the menu will open instantly without animation.
|
|
19710
|
+
* Defaults to `true`.
|
|
19702
19711
|
*/
|
|
19703
19712
|
open(animated = true) {
|
|
19704
19713
|
return this.setOpen(true, animated);
|
|
@@ -19706,20 +19715,38 @@ class Menu {
|
|
|
19706
19715
|
/**
|
|
19707
19716
|
* Closes the menu. If the menu is already closed or it can't be closed,
|
|
19708
19717
|
* it returns `false`.
|
|
19718
|
+
*
|
|
19719
|
+
* @param animated If `true`, the menu will animate when closing. If `false`,
|
|
19720
|
+
* the menu will close instantly without animation. Defaults to `true`.
|
|
19721
|
+
* @param role The role of the element that is closing the menu.
|
|
19722
|
+
* This can be useful in a button handler for determining which button was
|
|
19723
|
+
* clicked to close the menu. Some examples include:
|
|
19724
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
19709
19725
|
*/
|
|
19710
19726
|
close(animated = true, role) {
|
|
19711
19727
|
return this.setOpen(false, animated, role);
|
|
19712
19728
|
}
|
|
19713
19729
|
/**
|
|
19714
|
-
* Toggles the menu. If the menu is already open, it will try to close,
|
|
19730
|
+
* Toggles the menu. If the menu is already open, it will try to close,
|
|
19731
|
+
* otherwise it will try to open it.
|
|
19715
19732
|
* If the operation can't be completed successfully, it returns `false`.
|
|
19733
|
+
*
|
|
19734
|
+
* @param animated If `true`, the menu will animate when opening/closing.
|
|
19735
|
+
* If `false`, the menu will open/close instantly without animation.
|
|
19736
|
+
* Defaults to `true`.
|
|
19716
19737
|
*/
|
|
19717
19738
|
toggle(animated = true) {
|
|
19718
19739
|
return this.setOpen(!this._isOpen, animated);
|
|
19719
19740
|
}
|
|
19720
19741
|
/**
|
|
19721
|
-
* Opens or closes the
|
|
19742
|
+
* Opens or closes the menu.
|
|
19722
19743
|
* If the operation can't be completed successfully, it returns `false`.
|
|
19744
|
+
*
|
|
19745
|
+
* @param shouldOpen If `true`, the menu will open. If `false`, the menu
|
|
19746
|
+
* will close.
|
|
19747
|
+
* @param animated If `true`, the menu will animate when opening/closing.
|
|
19748
|
+
* If `false`, the menu will open/close instantly without animation.
|
|
19749
|
+
* @param role The role of the element that is closing the menu.
|
|
19723
19750
|
*/
|
|
19724
19751
|
setOpen(shouldOpen, animated = true, role) {
|
|
19725
19752
|
return menuController._setOpen(this, shouldOpen, animated, role);
|
|
@@ -20084,14 +20111,14 @@ class Menu {
|
|
|
20084
20111
|
* the ionBackButton listener in the menu controller
|
|
20085
20112
|
* will handle closing the menu when Escape is pressed.
|
|
20086
20113
|
*/
|
|
20087
|
-
return (hAsync(Host, { key: '
|
|
20114
|
+
return (hAsync(Host, { key: 'a5c75aa40a34530b56ee3b98d706a5ac5ae300de', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
20088
20115
|
[mode]: true,
|
|
20089
20116
|
[`menu-type-${type}`]: true,
|
|
20090
20117
|
'menu-enabled': !disabled,
|
|
20091
20118
|
[`menu-side-${side}`]: true,
|
|
20092
20119
|
'menu-pane-visible': isPaneVisible,
|
|
20093
20120
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
20094
|
-
} }, hAsync("div", { key: '
|
|
20121
|
+
} }, hAsync("div", { key: '3f5f70acd4d3ed6bb445122f4f01d73db738a75f', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: '3161326c9330e7f7441299c428b87a91b31a83e9' })), hAsync("ion-backdrop", { key: '917b50f38489bdf03d0c642af8b4e4e172c7dc4c', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
20095
20122
|
}
|
|
20096
20123
|
get el() { return getElement(this); }
|
|
20097
20124
|
static get watchers() { return {
|
|
@@ -22096,6 +22123,17 @@ class Modal {
|
|
|
22096
22123
|
el.dispatchEvent(ev);
|
|
22097
22124
|
}
|
|
22098
22125
|
};
|
|
22126
|
+
/**
|
|
22127
|
+
* When the modal receives focus directly, pass focus to the handle
|
|
22128
|
+
* if it exists and is focusable, otherwise let the focus trap handle it.
|
|
22129
|
+
*/
|
|
22130
|
+
this.onModalFocus = (ev) => {
|
|
22131
|
+
const { dragHandleEl, el } = this;
|
|
22132
|
+
// Only handle focus if the modal itself was focused (not a child element)
|
|
22133
|
+
if (ev.target === el && dragHandleEl && dragHandleEl.tabIndex !== -1) {
|
|
22134
|
+
dragHandleEl.focus();
|
|
22135
|
+
}
|
|
22136
|
+
};
|
|
22099
22137
|
}
|
|
22100
22138
|
onIsOpenChange(newValue, oldValue) {
|
|
22101
22139
|
if (newValue === true && oldValue === false) {
|
|
@@ -22427,13 +22465,13 @@ class Modal {
|
|
|
22427
22465
|
}
|
|
22428
22466
|
/**
|
|
22429
22467
|
* Dismiss the modal overlay after it has been presented.
|
|
22430
|
-
*
|
|
22431
|
-
* @param data Any data to emit in the dismiss events.
|
|
22432
|
-
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
22433
|
-
*
|
|
22434
22468
|
* This is a no-op if the overlay has not been presented yet. If you want
|
|
22435
22469
|
* to remove an overlay from the DOM that was never presented, use the
|
|
22436
22470
|
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
22471
|
+
*
|
|
22472
|
+
* @param data Any data to emit in the dismiss events.
|
|
22473
|
+
* @param role The role of the element that is dismissing the modal.
|
|
22474
|
+
* For example, `cancel` or `backdrop`.
|
|
22437
22475
|
*/
|
|
22438
22476
|
async dismiss(data, role) {
|
|
22439
22477
|
var _a;
|
|
@@ -22505,8 +22543,10 @@ class Modal {
|
|
|
22505
22543
|
return eventMethod(this.el, 'ionModalWillDismiss');
|
|
22506
22544
|
}
|
|
22507
22545
|
/**
|
|
22508
|
-
* Move a sheet style modal to a specific breakpoint.
|
|
22509
|
-
*
|
|
22546
|
+
* Move a sheet style modal to a specific breakpoint.
|
|
22547
|
+
*
|
|
22548
|
+
* @param breakpoint The breakpoint value to move the sheet modal to.
|
|
22549
|
+
* Must be a value defined in your `breakpoints` array.
|
|
22510
22550
|
*/
|
|
22511
22551
|
async setCurrentBreakpoint(breakpoint) {
|
|
22512
22552
|
if (!this.isSheetModal) {
|
|
@@ -22565,18 +22605,21 @@ class Modal {
|
|
|
22565
22605
|
const mode = getIonMode$1(this);
|
|
22566
22606
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
22567
22607
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
22568
|
-
|
|
22608
|
+
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
22609
|
+
return (hAsync(Host, Object.assign({ key: '8add05bb43a2cdb5e3cf180147d31eb85a018fe0', "no-router": true,
|
|
22610
|
+
// Allow the modal to be navigable when the handle is focusable
|
|
22611
|
+
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
22569
22612
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
22570
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '
|
|
22613
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), hAsync("ion-backdrop", { key: '90a6605a9564a699d6f66cf71cf6b506796a2963', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'a97d071395333bf803c0a9347bda000cf7500d8d', class: "modal-shadow" }), hAsync("div", Object.assign({ key: 'e7b7985c7414a13e3ba8dcecf497b76e92edf53e',
|
|
22571
22614
|
/*
|
|
22572
22615
|
role and aria-modal must be used on the
|
|
22573
22616
|
same element. They must also be set inside the
|
|
22574
22617
|
shadow DOM otherwise ion-button will not be highlighted
|
|
22575
22618
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
22576
22619
|
*/
|
|
22577
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
22620
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '8258b65570b11a8ee9c9df2537d6419cd2e34536', class: "modal-handle",
|
|
22578
22621
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
22579
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
22622
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), hAsync("slot", { key: '394370d0ed03ee03152f8f8abae7ff7664ca5c13' }))));
|
|
22580
22623
|
}
|
|
22581
22624
|
get el() { return getElement(this); }
|
|
22582
22625
|
static get watchers() { return {
|
|
@@ -26803,6 +26846,8 @@ class Popover {
|
|
|
26803
26846
|
* Developers can pass a mouse, touch, or pointer event
|
|
26804
26847
|
* to position the popover relative to where that event
|
|
26805
26848
|
* was dispatched.
|
|
26849
|
+
*
|
|
26850
|
+
* @param event The event to position the popover relative to.
|
|
26806
26851
|
*/
|
|
26807
26852
|
async present(event) {
|
|
26808
26853
|
const unlock = await this.lockController.lock();
|
|
@@ -26866,15 +26911,14 @@ class Popover {
|
|
|
26866
26911
|
}
|
|
26867
26912
|
/**
|
|
26868
26913
|
* Dismiss the popover overlay after it has been presented.
|
|
26914
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
26915
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
26916
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
26869
26917
|
*
|
|
26870
26918
|
* @param data Any data to emit in the dismiss events.
|
|
26871
|
-
* @param role The role of the element that is dismissing the popover. For example,
|
|
26919
|
+
* @param role The role of the element that is dismissing the popover. For example, `cancel` or `backdrop`.
|
|
26872
26920
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
26873
26921
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
26874
|
-
*
|
|
26875
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
26876
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
26877
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
26878
26922
|
*/
|
|
26879
26923
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
26880
26924
|
const unlock = await this.lockController.lock();
|
|
@@ -26926,9 +26970,9 @@ class Popover {
|
|
|
26926
26970
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
26927
26971
|
const desktop = isPlatform('desktop');
|
|
26928
26972
|
const enableArrow = arrow && !parentPopover;
|
|
26929
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
26973
|
+
return (hAsync(Host, Object.assign({ key: '16866c02534968c982cf4730d2936d03a5107c8b', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
26930
26974
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
26931
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '
|
|
26975
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '0df258601a4d30df3c27aa8234a7d5e056c3ecbb', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: 'f94e80ed996b957b5cd09b826472b4f60e8fcc78', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '185ce22f6386e8444a9cc7b8818dbfc16c463c99', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '206202b299404e110de5397b229678cca18568d3', class: "popover-content", part: "content" }, hAsync("slot", { key: 'ee543a0b92d6e35a837c0a0e4617c7b0fc4ad0b0' })))));
|
|
26932
26976
|
}
|
|
26933
26977
|
get el() { return getElement(this); }
|
|
26934
26978
|
static get watchers() { return {
|
|
@@ -29508,7 +29552,6 @@ class ReorderGroup {
|
|
|
29508
29552
|
}
|
|
29509
29553
|
/**
|
|
29510
29554
|
* Completes the reorder operation. Must be called by the `ionItemReorder` event.
|
|
29511
|
-
*
|
|
29512
29555
|
* If a list of items is passed, the list will be reordered and returned in the
|
|
29513
29556
|
* proper order.
|
|
29514
29557
|
*
|
|
@@ -29695,7 +29738,7 @@ class ReorderGroup {
|
|
|
29695
29738
|
}
|
|
29696
29739
|
render() {
|
|
29697
29740
|
const mode = getIonMode$1(this);
|
|
29698
|
-
return (hAsync(Host, { key: '
|
|
29741
|
+
return (hAsync(Host, { key: 'dfcdc3a6aa1b2fba15f861ec868d6a11e667c9de', class: {
|
|
29699
29742
|
[mode]: true,
|
|
29700
29743
|
'reorder-enabled': !this.disabled,
|
|
29701
29744
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -30534,6 +30577,7 @@ class Router {
|
|
|
30534
30577
|
*
|
|
30535
30578
|
* @param path The path to navigate to.
|
|
30536
30579
|
* @param direction The direction of the animation. Defaults to `"forward"`.
|
|
30580
|
+
* @param animation A custom animation to use for the transition.
|
|
30537
30581
|
*/
|
|
30538
30582
|
async push(path, direction = 'forward', animation) {
|
|
30539
30583
|
var _a;
|
|
@@ -31263,10 +31307,8 @@ class Searchbar {
|
|
|
31263
31307
|
/**
|
|
31264
31308
|
* Sets focus on the native `input` in `ion-searchbar`. Use this method instead of the global
|
|
31265
31309
|
* `input.focus()`.
|
|
31266
|
-
*
|
|
31267
31310
|
* Developers who wish to focus an input when a page enters
|
|
31268
31311
|
* should call `setFocus()` in the `ionViewDidEnter()` lifecycle method.
|
|
31269
|
-
*
|
|
31270
31312
|
* Developers who wish to focus an input when an overlay is presented
|
|
31271
31313
|
* should call `setFocus` after `didPresent` has resolved.
|
|
31272
31314
|
*
|
|
@@ -31445,8 +31487,8 @@ class Searchbar {
|
|
|
31445
31487
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
31446
31488
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
31447
31489
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
31448
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
31449
|
-
return (hAsync(Host, { key: '
|
|
31490
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '19e18775856db87daeb4b9e3d7bca0461915a0df', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: 'b3bbdcc033f3bd3441d619e4a252cef0dad4d07e', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
31491
|
+
return (hAsync(Host, { key: '074aa60e051bfb3225e87d44bbb6346c59c73574', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
31450
31492
|
[mode]: true,
|
|
31451
31493
|
'searchbar-animated': animated,
|
|
31452
31494
|
'searchbar-disabled': this.disabled,
|
|
@@ -31456,14 +31498,14 @@ class Searchbar {
|
|
|
31456
31498
|
'searchbar-has-focus': this.focused,
|
|
31457
31499
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
31458
31500
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
31459
|
-
}) }, hAsync("div", { key: '
|
|
31501
|
+
}) }, hAsync("div", { key: '54f58a79fe36e85d9295157303f1be89c98bbdaf', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: 'f991a37fcf54d26b7ad10d89084764e03d97b9de', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, hAsync("ion-icon", { key: '8b44dd90a3292c5cf872ef16a8520675f5673494', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: '79d9cfed8f01268044f82811a35d323a12dca749', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
31460
31502
|
/**
|
|
31461
31503
|
* This prevents mobile browsers from
|
|
31462
31504
|
* blurring the input when the clear
|
|
31463
31505
|
* button is activated.
|
|
31464
31506
|
*/
|
|
31465
31507
|
ev.preventDefault();
|
|
31466
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
31508
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: 'aa3b9fa8a61f853236783ac7bcd0b113ea65ece2', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
31467
31509
|
}
|
|
31468
31510
|
get el() { return getElement(this); }
|
|
31469
31511
|
static get watchers() { return {
|
|
@@ -35340,16 +35382,15 @@ class Toast {
|
|
|
35340
35382
|
}
|
|
35341
35383
|
/**
|
|
35342
35384
|
* Dismiss the toast overlay after it has been presented.
|
|
35385
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
35386
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
35387
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
35343
35388
|
*
|
|
35344
35389
|
* @param data Any data to emit in the dismiss events.
|
|
35345
35390
|
* @param role The role of the element that is dismissing the toast.
|
|
35346
35391
|
* This can be useful in a button handler for determining which button was
|
|
35347
35392
|
* clicked to dismiss the toast.
|
|
35348
|
-
* Some examples include:
|
|
35349
|
-
*
|
|
35350
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
35351
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
35352
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
35393
|
+
* Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
35353
35394
|
*/
|
|
35354
35395
|
async dismiss(data, role) {
|
|
35355
35396
|
var _a, _b;
|
|
@@ -35517,9 +35558,9 @@ class Toast {
|
|
|
35517
35558
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
35518
35559
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
35519
35560
|
}
|
|
35520
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
35561
|
+
return (hAsync(Host, Object.assign({ key: 'd1ecd90c87700aad4685e230cdd430aa286b8791', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
35521
35562
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
35522
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
35563
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '4bfc863417324de69e222054d5cf9c452038b41e', class: wrapperClass }, hAsync("div", { key: '3417940afec0392e81b7d54c7cb00f3ab6c30d47', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: '6bf878fbc85c01e1e5faa9d97d46255a6511a952', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: '54b500348a9c37660c3aff37436d9188e4374947', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
35523
35564
|
}
|
|
35524
35565
|
get el() { return getElement(this); }
|
|
35525
35566
|
static get watchers() { return {
|