@ionic/core 8.6.3-dev.11751478001.1cb7436f → 8.6.3-nightly.20250620
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 +9 -8
- package/components/alert.js +8 -7
- package/components/focus-visible.js +18 -27
- package/components/ion-app.js +1 -3
- package/components/ion-datetime.js +2 -8
- package/components/ion-loading.js +8 -7
- package/components/ion-menu.js +5 -27
- package/components/ion-reorder-group.js +2 -1
- package/components/ion-router.js +0 -1
- package/components/ion-searchbar.js +6 -4
- package/components/ion-select.js +3 -3
- package/components/ion-toast.js +7 -6
- package/components/modal.js +10 -26
- package/components/popover.js +7 -8
- package/dist/cjs/{focus-visible-ZV7jHMPt.js → focus-visible-CCvKiLh3.js} +18 -27
- package/dist/cjs/ion-action-sheet.cjs.entry.js +9 -8
- package/dist/cjs/ion-alert.cjs.entry.js +8 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +2 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +3 -9
- package/dist/cjs/ion-loading.cjs.entry.js +8 -7
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -27
- package/dist/cjs/ion-modal.cjs.entry.js +10 -26
- package/dist/cjs/ion-popover.cjs.entry.js +7 -8
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +0 -1
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -4
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-toast.cjs.entry.js +7 -6
- package/dist/collection/components/action-sheet/action-sheet.js +12 -11
- package/dist/collection/components/alert/alert.js +11 -10
- package/dist/collection/components/app/app.js +3 -8
- package/dist/collection/components/datetime/datetime.js +8 -23
- package/dist/collection/components/loading/loading.js +11 -10
- package/dist/collection/components/menu/menu.js +19 -62
- package/dist/collection/components/modal/modal.js +16 -35
- package/dist/collection/components/popover/popover.js +14 -18
- package/dist/collection/components/reorder-group/reorder-group.js +3 -2
- package/dist/collection/components/router/router.js +1 -5
- package/dist/collection/components/searchbar/searchbar.js +7 -5
- package/dist/collection/components/select/select.js +3 -3
- package/dist/collection/components/toast/toast.js +10 -9
- package/dist/collection/utils/focus-visible.js +18 -27
- package/dist/docs.json +72 -138
- package/dist/esm/{focus-visible-DZ2gZBzK.js → focus-visible-BmVRXR1y.js} +18 -27
- package/dist/esm/ion-action-sheet.entry.js +9 -8
- package/dist/esm/ion-alert.entry.js +8 -7
- package/dist/esm/ion-app_8.entry.js +2 -4
- package/dist/esm/ion-datetime_3.entry.js +3 -9
- package/dist/esm/ion-loading.entry.js +8 -7
- package/dist/esm/ion-menu_3.entry.js +5 -27
- package/dist/esm/ion-modal.entry.js +10 -26
- package/dist/esm/ion-popover.entry.js +7 -8
- package/dist/esm/ion-reorder_2.entry.js +2 -1
- package/dist/esm/ion-route_4.entry.js +0 -1
- package/dist/esm/ion-searchbar.entry.js +6 -4
- package/dist/esm/ion-select_3.entry.js +3 -3
- package/dist/esm/ion-toast.entry.js +7 -6
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-b758a177.entry.js → p-2020aa51.entry.js} +1 -1
- package/dist/ionic/p-29759454.entry.js +4 -0
- package/dist/ionic/{p-e37d6c67.entry.js → p-3a4feac2.entry.js} +1 -1
- package/dist/ionic/p-4ddc10ef.entry.js +4 -0
- package/dist/ionic/{p-2d0eccfb.entry.js → p-6b666996.entry.js} +1 -1
- package/dist/ionic/p-7149db7e.entry.js +4 -0
- package/dist/ionic/{p-2d46fbe7.entry.js → p-96389029.entry.js} +1 -1
- package/dist/ionic/{p-0d131a02.entry.js → p-9e699d4a.entry.js} +1 -1
- package/dist/ionic/p-BmVRXR1y.js +4 -0
- package/dist/ionic/p-bec79123.entry.js +4 -0
- package/dist/ionic/{p-03d21728.entry.js → p-cb787a4b.entry.js} +1 -1
- package/dist/ionic/{p-d8429eb4.entry.js → p-cd12ed1c.entry.js} +1 -1
- package/dist/ionic/{p-78a61b3f.entry.js → p-ead42a37.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +6 -5
- package/dist/types/components/alert/alert.d.ts +6 -5
- package/dist/types/components/app/app.d.ts +0 -2
- package/dist/types/components/datetime/datetime.d.ts +0 -6
- package/dist/types/components/loading/loading.d.ts +6 -5
- package/dist/types/components/menu/menu.d.ts +3 -25
- package/dist/types/components/modal/modal.d.ts +6 -14
- package/dist/types/components/popover/popover.d.ts +5 -6
- package/dist/types/components/reorder-group/reorder-group.d.ts +1 -0
- package/dist/types/components/router/router.d.ts +0 -1
- package/dist/types/components/searchbar/searchbar.d.ts +2 -0
- package/dist/types/components/toast/toast.d.ts +5 -4
- package/dist/types/components.d.ts +18 -32
- package/hydrate/index.js +86 -136
- package/hydrate/index.mjs +86 -136
- package/package.json +3 -3
- package/dist/ionic/p-69f91268.entry.js +0 -4
- package/dist/ionic/p-7d5cf8c1.entry.js +0 -4
- package/dist/ionic/p-9e32212d.entry.js +0 -4
- package/dist/ionic/p-DZ2gZBzK.js +0 -4
- package/dist/ionic/p-b9ba04ca.entry.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -7537,15 +7537,16 @@ class ActionSheet {
|
|
|
7537
7537
|
}
|
|
7538
7538
|
/**
|
|
7539
7539
|
* Dismiss the action sheet overlay after it has been presented.
|
|
7540
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
7541
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
7542
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
7543
7540
|
*
|
|
7544
7541
|
* @param data Any data to emit in the dismiss events.
|
|
7545
7542
|
* @param role The role of the element that is dismissing the action sheet.
|
|
7546
7543
|
* This can be useful in a button handler for determining which button was
|
|
7547
|
-
* clicked to dismiss the action sheet.
|
|
7548
|
-
*
|
|
7544
|
+
* clicked to dismiss the action sheet.
|
|
7545
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
7546
|
+
*
|
|
7547
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
7548
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
7549
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
7549
7550
|
*/
|
|
7550
7551
|
async dismiss(data, role) {
|
|
7551
7552
|
const unlock = await this.lockController.lock();
|
|
@@ -7657,12 +7658,12 @@ class ActionSheet {
|
|
|
7657
7658
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
7658
7659
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
7659
7660
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
7660
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
7661
|
+
return (hAsync(Host, Object.assign({ key: '7bbd202ca9e19727e7514abbe073687d982f80c3', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
7661
7662
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
7662
|
-
}, 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: '
|
|
7663
|
+
}, 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: '23344a9221a2e6720d7b9de5249dc37256cafa7b', tappable: this.backdropDismiss }), hAsync("div", { key: 'fbc2ba15549c2ab04e759e82df6e177fd80cc0a6', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '748ee5235d0b4cb26d6f1b7589f77af2e37ad28a', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: '7ce5fa236cf75e9b1e49c4725c9a811078706554', class: "action-sheet-container" }, hAsync("div", { key: 'dc2251f3bcee4a93e3449f09621cbd2b65d329e9', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (hAsync("div", { key: '48d325c8a852f56ed57a9ada1a6709d05ba32ee2', id: headerID, class: {
|
|
7663
7664
|
'action-sheet-title': true,
|
|
7664
7665
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
7665
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
7666
|
+
} }, header, this.subHeader && hAsync("div", { key: '66093728052eb67f37a35f3232761ce4a08896f3', 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: 'f4eb8e3e2885b85af5080df18d0de0bdd1d719de', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", Object.assign({ key: '169f4eb09255aba85062baad49ceb151239fbfb7' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$3(cancelButton), onClick: () => this.buttonClick(cancelButton) }), hAsync("span", { key: '25fb8a466dd67ea94c79cfb4f9965527e1ce6d42', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: 'eb5b071e120a2c86afdf967af6a763a43044d1ca', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && hAsync("ion-ripple-effect", { key: '452ad7e1052b2c681e2d98de8193949755ad4d54' })))))), hAsync("div", { key: 'e1cecf280c987c050d9445e2c458b903f153089b', tabindex: "0", "aria-hidden": "true" })));
|
|
7666
7667
|
}
|
|
7667
7668
|
get el() { return getElement(this); }
|
|
7668
7669
|
static get watchers() { return {
|
|
@@ -8215,15 +8216,16 @@ class Alert {
|
|
|
8215
8216
|
}
|
|
8216
8217
|
/**
|
|
8217
8218
|
* Dismiss the alert overlay after it has been presented.
|
|
8218
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
8219
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
8220
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
8221
8219
|
*
|
|
8222
8220
|
* @param data Any data to emit in the dismiss events.
|
|
8223
8221
|
* @param role The role of the element that is dismissing the alert.
|
|
8224
8222
|
* This can be useful in a button handler for determining which button was
|
|
8225
|
-
* clicked to dismiss the alert.
|
|
8226
|
-
*
|
|
8223
|
+
* clicked to dismiss the alert.
|
|
8224
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
8225
|
+
*
|
|
8226
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
8227
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
8228
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
8227
8229
|
*/
|
|
8228
8230
|
async dismiss(data, role) {
|
|
8229
8231
|
const unlock = await this.lockController.lock();
|
|
@@ -8391,9 +8393,9 @@ class Alert {
|
|
|
8391
8393
|
* If neither are defined, do not set aria-labelledby.
|
|
8392
8394
|
*/
|
|
8393
8395
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
8394
|
-
return (hAsync(Host, { key: '
|
|
8396
|
+
return (hAsync(Host, { key: 'f8ee04fe6a97a2585b302c8e1a9eea3b122e3479', tabindex: "-1", style: {
|
|
8395
8397
|
zIndex: `${20000 + overlayIndex}`,
|
|
8396
|
-
}, 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: 'e9592e879f51c27ef20016beec12c986be632cf3', tappable: this.backdropDismiss }), hAsync("div", { key: '5e9425c3c8acdea6f8006389689c73220e2ce423', tabindex: "0", "aria-hidden": "true" }), hAsync("div", Object.assign({ key: '615465703e357619681fc36ed7276591a6fe3787', 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: '934eba3759456cd4660e10f274edc7859f908461', class: "alert-head" }, header && (hAsync("h2", { key: '7d5d98d71f81f59a2cba227121b6fa01e6cc53b6', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (hAsync("h2", { key: 'e5f5d35748c58a98ee933eb15cb1dcaf8113e9a7', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (hAsync("h3", { key: 'a5cb89ca02bfa9c4828e694cb0835493a9088b05', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), hAsync("div", { key: 'cacffc31c911882df73e6845d15c8bb2d4acab56', tabindex: "0", "aria-hidden": "true" })));
|
|
8397
8399
|
}
|
|
8398
8400
|
get el() { return getElement(this); }
|
|
8399
8401
|
static get watchers() { return {
|
|
@@ -8462,8 +8464,6 @@ class App {
|
|
|
8462
8464
|
* a result of another user action. (Ex: We focus the first element
|
|
8463
8465
|
* inside of a popover when the user presents it, but the popover is not always
|
|
8464
8466
|
* presented as a result of keyboard action.)
|
|
8465
|
-
*
|
|
8466
|
-
* @param elements An array of HTML elements to set focus on.
|
|
8467
8467
|
*/
|
|
8468
8468
|
async setFocus(elements) {
|
|
8469
8469
|
if (this.focusVisible) {
|
|
@@ -8472,7 +8472,7 @@ class App {
|
|
|
8472
8472
|
}
|
|
8473
8473
|
render() {
|
|
8474
8474
|
const mode = getIonMode$1(this);
|
|
8475
|
-
return (hAsync(Host, { key: '
|
|
8475
|
+
return (hAsync(Host, { key: '03aa892f986330078d112b1e8b010df98fa7e39e', class: {
|
|
8476
8476
|
[mode]: true,
|
|
8477
8477
|
'ion-page': true,
|
|
8478
8478
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -10412,44 +10412,33 @@ const FOCUS_KEYS = [
|
|
|
10412
10412
|
];
|
|
10413
10413
|
const startFocusVisible = (rootEl) => {
|
|
10414
10414
|
let currentFocus = [];
|
|
10415
|
-
|
|
10416
|
-
// Used to distinguish between pointer and keyboard navigation for focus styling
|
|
10417
|
-
let hadPointerEvent = false;
|
|
10415
|
+
let keyboardMode = true;
|
|
10418
10416
|
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
10419
10417
|
const root = rootEl ? rootEl : document.body;
|
|
10420
|
-
// Adds or removes the focused class for styling
|
|
10421
10418
|
const setFocus = (elements) => {
|
|
10422
10419
|
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
10423
10420
|
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
10424
10421
|
currentFocus = elements;
|
|
10425
10422
|
};
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
hadPointerEvent = true;
|
|
10430
|
-
// Reset after the event loop so only the immediate focusin is suppressed
|
|
10431
|
-
setTimeout(() => {
|
|
10432
|
-
hadPointerEvent = false;
|
|
10433
|
-
}, 0);
|
|
10434
|
-
}
|
|
10423
|
+
const pointerDown = () => {
|
|
10424
|
+
keyboardMode = false;
|
|
10425
|
+
setFocus([]);
|
|
10435
10426
|
};
|
|
10436
|
-
// Clear hadPointerEvent so keyboard navigation shows focus
|
|
10437
|
-
// Also, clear focus if the key is not a navigation key
|
|
10438
10427
|
const onKeydown = (ev) => {
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
if (!FOCUS_KEYS.includes(keyboardEvent.key)) {
|
|
10428
|
+
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
10429
|
+
if (!keyboardMode) {
|
|
10442
10430
|
setFocus([]);
|
|
10443
10431
|
}
|
|
10444
10432
|
};
|
|
10445
|
-
// Set focus if the last interaction was NOT a pointer event
|
|
10446
|
-
// This works around iOS/Safari bugs where keydown is not fired for Tab
|
|
10447
10433
|
const onFocusin = (ev) => {
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
.
|
|
10452
|
-
|
|
10434
|
+
if (keyboardMode && ev.composedPath !== undefined) {
|
|
10435
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
10436
|
+
// TODO(FW-2832): type
|
|
10437
|
+
if (el.classList) {
|
|
10438
|
+
return el.classList.contains(ION_FOCUSABLE);
|
|
10439
|
+
}
|
|
10440
|
+
return false;
|
|
10441
|
+
});
|
|
10453
10442
|
setFocus(toFocus);
|
|
10454
10443
|
}
|
|
10455
10444
|
};
|
|
@@ -10461,12 +10450,14 @@ const startFocusVisible = (rootEl) => {
|
|
|
10461
10450
|
ref.addEventListener('keydown', onKeydown);
|
|
10462
10451
|
ref.addEventListener('focusin', onFocusin);
|
|
10463
10452
|
ref.addEventListener('focusout', onFocusout);
|
|
10464
|
-
ref.addEventListener('
|
|
10453
|
+
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
10454
|
+
ref.addEventListener('mousedown', pointerDown);
|
|
10465
10455
|
const destroy = () => {
|
|
10466
10456
|
ref.removeEventListener('keydown', onKeydown);
|
|
10467
10457
|
ref.removeEventListener('focusin', onFocusin);
|
|
10468
10458
|
ref.removeEventListener('focusout', onFocusout);
|
|
10469
|
-
ref.removeEventListener('
|
|
10459
|
+
ref.removeEventListener('touchstart', pointerDown);
|
|
10460
|
+
ref.removeEventListener('mousedown', pointerDown);
|
|
10470
10461
|
};
|
|
10471
10462
|
return {
|
|
10472
10463
|
destroy,
|
|
@@ -13101,8 +13092,6 @@ class Datetime {
|
|
|
13101
13092
|
* Confirms the selected datetime value, updates the
|
|
13102
13093
|
* `value` property, and optionally closes the popover
|
|
13103
13094
|
* or modal that the datetime was presented in.
|
|
13104
|
-
*
|
|
13105
|
-
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
13106
13095
|
*/
|
|
13107
13096
|
async confirm(closeOverlay = false) {
|
|
13108
13097
|
const { isCalendarPicker, activeParts, preferWheel, workingParts } = this;
|
|
@@ -13136,8 +13125,6 @@ class Datetime {
|
|
|
13136
13125
|
* Resets the internal state of the datetime but does not update the value.
|
|
13137
13126
|
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
|
|
13138
13127
|
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
|
|
13139
|
-
*
|
|
13140
|
-
* @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.
|
|
13141
13128
|
*/
|
|
13142
13129
|
async reset(startDate) {
|
|
13143
13130
|
this.processValue(startDate);
|
|
@@ -13147,8 +13134,6 @@ class Datetime {
|
|
|
13147
13134
|
* optionally closes the popover
|
|
13148
13135
|
* or modal that the datetime was
|
|
13149
13136
|
* presented in.
|
|
13150
|
-
*
|
|
13151
|
-
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
13152
13137
|
*/
|
|
13153
13138
|
async cancel(closeOverlay = false) {
|
|
13154
13139
|
this.ionCancel.emit();
|
|
@@ -13962,7 +13947,7 @@ class Datetime {
|
|
|
13962
13947
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
13963
13948
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
13964
13949
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
13965
|
-
return (hAsync(Host, { key: '
|
|
13950
|
+
return (hAsync(Host, { key: '7ea46c27aa5fb01b748dd4d6eb2340ad13f65175', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
|
|
13966
13951
|
[mode]: true,
|
|
13967
13952
|
['datetime-readonly']: readonly,
|
|
13968
13953
|
['datetime-disabled']: disabled,
|
|
@@ -13972,7 +13957,7 @@ class Datetime {
|
|
|
13972
13957
|
[`datetime-size-${size}`]: true,
|
|
13973
13958
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
13974
13959
|
[`datetime-grid`]: isGridStyle,
|
|
13975
|
-
})) }, hAsync("div", { key: '
|
|
13960
|
+
})) }, hAsync("div", { key: '6964378424c58b053e23279d08eaedf28dfcc315', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
13976
13961
|
}
|
|
13977
13962
|
get el() { return getElement(this); }
|
|
13978
13963
|
static get watchers() { return {
|
|
@@ -19020,15 +19005,16 @@ class Loading {
|
|
|
19020
19005
|
}
|
|
19021
19006
|
/**
|
|
19022
19007
|
* Dismiss the loading overlay after it has been presented.
|
|
19023
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
19024
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
19025
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
19026
19008
|
*
|
|
19027
19009
|
* @param data Any data to emit in the dismiss events.
|
|
19028
19010
|
* @param role The role of the element that is dismissing the loading.
|
|
19029
19011
|
* This can be useful in a button handler for determining which button was
|
|
19030
|
-
* clicked to dismiss the loading.
|
|
19031
|
-
*
|
|
19012
|
+
* clicked to dismiss the loading.
|
|
19013
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
19014
|
+
*
|
|
19015
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
19016
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
19017
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
19032
19018
|
*/
|
|
19033
19019
|
async dismiss(data, role) {
|
|
19034
19020
|
const unlock = await this.lockController.lock();
|
|
@@ -19070,9 +19056,9 @@ class Loading {
|
|
|
19070
19056
|
* Otherwise, don't set aria-labelledby.
|
|
19071
19057
|
*/
|
|
19072
19058
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
19073
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
19059
|
+
return (hAsync(Host, Object.assign({ key: '6369ed244c06c39aa338141bffacf7a861d7da1a', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
19074
19060
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
19075
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
19061
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '1fd5fd8581d59eec321e534f9116f3ec0501010a', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'b4028045b0c8fbb9946136d85d939d55120b867c', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: 'b045fb0e61cc28e8163d45be18b431918dc27c80', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: '2cf9df796f987d1251b3599d10a48ed87a1d0eb9', class: "loading-spinner" }, hAsync("ion-spinner", { key: '371cd41655402326adcb1e2fe1481009a83243b2', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: '2a5e5e66d22ee4c1cef0c93815ef023d47e7a8eb', tabindex: "0", "aria-hidden": "true" })));
|
|
19076
19062
|
}
|
|
19077
19063
|
get el() { return getElement(this); }
|
|
19078
19064
|
static get watchers() { return {
|
|
@@ -19700,7 +19686,7 @@ class Menu {
|
|
|
19700
19686
|
return Promise.resolve(this._isOpen);
|
|
19701
19687
|
}
|
|
19702
19688
|
/**
|
|
19703
|
-
* Returns `true`
|
|
19689
|
+
* Returns `true` is the menu is active.
|
|
19704
19690
|
*
|
|
19705
19691
|
* A menu is active when it can be opened or closed, meaning it's enabled
|
|
19706
19692
|
* and it's not part of a `ion-split-pane`.
|
|
@@ -19711,10 +19697,6 @@ class Menu {
|
|
|
19711
19697
|
/**
|
|
19712
19698
|
* Opens the menu. If the menu is already open or it can't be opened,
|
|
19713
19699
|
* it returns `false`.
|
|
19714
|
-
*
|
|
19715
|
-
* @param animated If `true`, the menu will animate when opening.
|
|
19716
|
-
* If `false`, the menu will open instantly without animation.
|
|
19717
|
-
* Defaults to `true`.
|
|
19718
19700
|
*/
|
|
19719
19701
|
open(animated = true) {
|
|
19720
19702
|
return this.setOpen(true, animated);
|
|
@@ -19722,38 +19704,20 @@ class Menu {
|
|
|
19722
19704
|
/**
|
|
19723
19705
|
* Closes the menu. If the menu is already closed or it can't be closed,
|
|
19724
19706
|
* it returns `false`.
|
|
19725
|
-
*
|
|
19726
|
-
* @param animated If `true`, the menu will animate when closing. If `false`,
|
|
19727
|
-
* the menu will close instantly without animation. Defaults to `true`.
|
|
19728
|
-
* @param role The role of the element that is closing the menu.
|
|
19729
|
-
* This can be useful in a button handler for determining which button was
|
|
19730
|
-
* clicked to close the menu. Some examples include:
|
|
19731
|
-
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
19732
19707
|
*/
|
|
19733
19708
|
close(animated = true, role) {
|
|
19734
19709
|
return this.setOpen(false, animated, role);
|
|
19735
19710
|
}
|
|
19736
19711
|
/**
|
|
19737
|
-
* Toggles the menu. If the menu is already open, it will try to close,
|
|
19738
|
-
* otherwise it will try to open it.
|
|
19712
|
+
* Toggles the menu. If the menu is already open, it will try to close, otherwise it will try to open it.
|
|
19739
19713
|
* If the operation can't be completed successfully, it returns `false`.
|
|
19740
|
-
*
|
|
19741
|
-
* @param animated If `true`, the menu will animate when opening/closing.
|
|
19742
|
-
* If `false`, the menu will open/close instantly without animation.
|
|
19743
|
-
* Defaults to `true`.
|
|
19744
19714
|
*/
|
|
19745
19715
|
toggle(animated = true) {
|
|
19746
19716
|
return this.setOpen(!this._isOpen, animated);
|
|
19747
19717
|
}
|
|
19748
19718
|
/**
|
|
19749
|
-
* Opens or closes the
|
|
19719
|
+
* Opens or closes the button.
|
|
19750
19720
|
* If the operation can't be completed successfully, it returns `false`.
|
|
19751
|
-
*
|
|
19752
|
-
* @param shouldOpen If `true`, the menu will open. If `false`, the menu
|
|
19753
|
-
* will close.
|
|
19754
|
-
* @param animated If `true`, the menu will animate when opening/closing.
|
|
19755
|
-
* If `false`, the menu will open/close instantly without animation.
|
|
19756
|
-
* @param role The role of the element that is closing the menu.
|
|
19757
19721
|
*/
|
|
19758
19722
|
setOpen(shouldOpen, animated = true, role) {
|
|
19759
19723
|
return menuController._setOpen(this, shouldOpen, animated, role);
|
|
@@ -20118,14 +20082,14 @@ class Menu {
|
|
|
20118
20082
|
* the ionBackButton listener in the menu controller
|
|
20119
20083
|
* will handle closing the menu when Escape is pressed.
|
|
20120
20084
|
*/
|
|
20121
|
-
return (hAsync(Host, { key: '
|
|
20085
|
+
return (hAsync(Host, { key: '9e4ae9476a76781f1d228395c9af9e1c39ec82bb', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
20122
20086
|
[mode]: true,
|
|
20123
20087
|
[`menu-type-${type}`]: true,
|
|
20124
20088
|
'menu-enabled': !disabled,
|
|
20125
20089
|
[`menu-side-${side}`]: true,
|
|
20126
20090
|
'menu-pane-visible': isPaneVisible,
|
|
20127
20091
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
20128
|
-
} }, hAsync("div", { key: '
|
|
20092
|
+
} }, hAsync("div", { key: 'c6153589d872ac7e3fdf5eedfdb858eb64ccd713', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: '9994aac4b22f17db34c9b8b2aa56b8710b9df645' })), hAsync("ion-backdrop", { key: 'f09ac30cc4dd2dcb10628965e659dae5a23baf98', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
20129
20093
|
}
|
|
20130
20094
|
get el() { return getElement(this); }
|
|
20131
20095
|
static get watchers() { return {
|
|
@@ -22130,17 +22094,6 @@ class Modal {
|
|
|
22130
22094
|
el.dispatchEvent(ev);
|
|
22131
22095
|
}
|
|
22132
22096
|
};
|
|
22133
|
-
/**
|
|
22134
|
-
* When the modal receives focus directly, pass focus to the handle
|
|
22135
|
-
* if it exists and is focusable, otherwise let the focus trap handle it.
|
|
22136
|
-
*/
|
|
22137
|
-
this.onModalFocus = (ev) => {
|
|
22138
|
-
const { dragHandleEl, el } = this;
|
|
22139
|
-
// Only handle focus if the modal itself was focused (not a child element)
|
|
22140
|
-
if (ev.target === el && dragHandleEl && dragHandleEl.tabIndex !== -1) {
|
|
22141
|
-
dragHandleEl.focus();
|
|
22142
|
-
}
|
|
22143
|
-
};
|
|
22144
22097
|
}
|
|
22145
22098
|
onIsOpenChange(newValue, oldValue) {
|
|
22146
22099
|
if (newValue === true && oldValue === false) {
|
|
@@ -22472,13 +22425,13 @@ class Modal {
|
|
|
22472
22425
|
}
|
|
22473
22426
|
/**
|
|
22474
22427
|
* Dismiss the modal overlay after it has been presented.
|
|
22428
|
+
*
|
|
22429
|
+
* @param data Any data to emit in the dismiss events.
|
|
22430
|
+
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
22431
|
+
*
|
|
22475
22432
|
* This is a no-op if the overlay has not been presented yet. If you want
|
|
22476
22433
|
* to remove an overlay from the DOM that was never presented, use the
|
|
22477
22434
|
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
22478
|
-
*
|
|
22479
|
-
* @param data Any data to emit in the dismiss events.
|
|
22480
|
-
* @param role The role of the element that is dismissing the modal.
|
|
22481
|
-
* For example, `cancel` or `backdrop`.
|
|
22482
22435
|
*/
|
|
22483
22436
|
async dismiss(data, role) {
|
|
22484
22437
|
var _a;
|
|
@@ -22550,10 +22503,8 @@ class Modal {
|
|
|
22550
22503
|
return eventMethod(this.el, 'ionModalWillDismiss');
|
|
22551
22504
|
}
|
|
22552
22505
|
/**
|
|
22553
|
-
* Move a sheet style modal to a specific breakpoint.
|
|
22554
|
-
*
|
|
22555
|
-
* @param breakpoint The breakpoint value to move the sheet modal to.
|
|
22556
|
-
* Must be a value defined in your `breakpoints` array.
|
|
22506
|
+
* Move a sheet style modal to a specific breakpoint. The breakpoint value must
|
|
22507
|
+
* be a value defined in your `breakpoints` array.
|
|
22557
22508
|
*/
|
|
22558
22509
|
async setCurrentBreakpoint(breakpoint) {
|
|
22559
22510
|
if (!this.isSheetModal) {
|
|
@@ -22612,21 +22563,18 @@ class Modal {
|
|
|
22612
22563
|
const mode = getIonMode$1(this);
|
|
22613
22564
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
22614
22565
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
22615
|
-
|
|
22616
|
-
return (hAsync(Host, Object.assign({ key: '8add05bb43a2cdb5e3cf180147d31eb85a018fe0', "no-router": true,
|
|
22617
|
-
// Allow the modal to be navigable when the handle is focusable
|
|
22618
|
-
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
22566
|
+
return (hAsync(Host, Object.assign({ key: '0bcbdcfcd7d890eb599da3f97f21c317d34f8e0e', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
22619
22567
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
22620
|
-
}, 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
|
|
22568
|
+
}, 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: 'd72159e73daa5af7349aa9e8f695aa435eb43069', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'fd2d9b13676ae72473881649a397b6eacde03a03', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '908eccb1ad982dcde2dbcff0cbb18b6e60f8ba74',
|
|
22621
22569
|
/*
|
|
22622
22570
|
role and aria-modal must be used on the
|
|
22623
22571
|
same element. They must also be set inside the
|
|
22624
22572
|
shadow DOM otherwise ion-button will not be highlighted
|
|
22625
22573
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
22626
22574
|
*/
|
|
22627
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
22575
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '332dc0b40363a77c7be62331d9f26def91c790e9', class: "modal-handle",
|
|
22628
22576
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
22629
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle"
|
|
22577
|
+
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: 'c32698350193c450327e97049daf8b8d1fda0d0e' }))));
|
|
22630
22578
|
}
|
|
22631
22579
|
get el() { return getElement(this); }
|
|
22632
22580
|
static get watchers() { return {
|
|
@@ -26853,8 +26801,6 @@ class Popover {
|
|
|
26853
26801
|
* Developers can pass a mouse, touch, or pointer event
|
|
26854
26802
|
* to position the popover relative to where that event
|
|
26855
26803
|
* was dispatched.
|
|
26856
|
-
*
|
|
26857
|
-
* @param event The event to position the popover relative to.
|
|
26858
26804
|
*/
|
|
26859
26805
|
async present(event) {
|
|
26860
26806
|
const unlock = await this.lockController.lock();
|
|
@@ -26918,14 +26864,15 @@ class Popover {
|
|
|
26918
26864
|
}
|
|
26919
26865
|
/**
|
|
26920
26866
|
* Dismiss the popover overlay after it has been presented.
|
|
26921
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
26922
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
26923
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
26924
26867
|
*
|
|
26925
26868
|
* @param data Any data to emit in the dismiss events.
|
|
26926
|
-
* @param role The role of the element that is dismissing the popover. For example,
|
|
26869
|
+
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
|
|
26927
26870
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
26928
26871
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
26872
|
+
*
|
|
26873
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
26874
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
26875
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
26929
26876
|
*/
|
|
26930
26877
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
26931
26878
|
const unlock = await this.lockController.lock();
|
|
@@ -26977,9 +26924,9 @@ class Popover {
|
|
|
26977
26924
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
26978
26925
|
const desktop = isPlatform('desktop');
|
|
26979
26926
|
const enableArrow = arrow && !parentPopover;
|
|
26980
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
26927
|
+
return (hAsync(Host, Object.assign({ key: '1de4862099cfcb5035e78008e6dc7c1371846f9a', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
26981
26928
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
26982
|
-
}, 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: '
|
|
26929
|
+
}, 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: '981aa4e0102cb93312ffbd8243cdf2a0cdc60469', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: '1a28ed55e9d34ef78cf0eb0178643301fd2dd75d', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '1c206ea5eb3c0b5883a3d45c34cd22dd5ffe4b65', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '5ba561486a328c0c7ab825995fdbfb7a196429a4', class: "popover-content", part: "content" }, hAsync("slot", { key: '00fc244ce9dcc2dfc677e6c34b7c8e7a330b2b03' })))));
|
|
26983
26930
|
}
|
|
26984
26931
|
get el() { return getElement(this); }
|
|
26985
26932
|
static get watchers() { return {
|
|
@@ -29559,6 +29506,7 @@ class ReorderGroup {
|
|
|
29559
29506
|
}
|
|
29560
29507
|
/**
|
|
29561
29508
|
* Completes the reorder operation. Must be called by the `ionItemReorder` event.
|
|
29509
|
+
*
|
|
29562
29510
|
* If a list of items is passed, the list will be reordered and returned in the
|
|
29563
29511
|
* proper order.
|
|
29564
29512
|
*
|
|
@@ -29745,7 +29693,7 @@ class ReorderGroup {
|
|
|
29745
29693
|
}
|
|
29746
29694
|
render() {
|
|
29747
29695
|
const mode = getIonMode$1(this);
|
|
29748
|
-
return (hAsync(Host, { key: '
|
|
29696
|
+
return (hAsync(Host, { key: 'f30613b361c5c3095b7928a92fb4b1e8d6eff600', class: {
|
|
29749
29697
|
[mode]: true,
|
|
29750
29698
|
'reorder-enabled': !this.disabled,
|
|
29751
29699
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -30584,7 +30532,6 @@ class Router {
|
|
|
30584
30532
|
*
|
|
30585
30533
|
* @param path The path to navigate to.
|
|
30586
30534
|
* @param direction The direction of the animation. Defaults to `"forward"`.
|
|
30587
|
-
* @param animation A custom animation to use for the transition.
|
|
30588
30535
|
*/
|
|
30589
30536
|
async push(path, direction = 'forward', animation) {
|
|
30590
30537
|
var _a;
|
|
@@ -31314,8 +31261,10 @@ class Searchbar {
|
|
|
31314
31261
|
/**
|
|
31315
31262
|
* Sets focus on the native `input` in `ion-searchbar`. Use this method instead of the global
|
|
31316
31263
|
* `input.focus()`.
|
|
31264
|
+
*
|
|
31317
31265
|
* Developers who wish to focus an input when a page enters
|
|
31318
31266
|
* should call `setFocus()` in the `ionViewDidEnter()` lifecycle method.
|
|
31267
|
+
*
|
|
31319
31268
|
* Developers who wish to focus an input when an overlay is presented
|
|
31320
31269
|
* should call `setFocus` after `didPresent` has resolved.
|
|
31321
31270
|
*
|
|
@@ -31494,8 +31443,8 @@ class Searchbar {
|
|
|
31494
31443
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
31495
31444
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
31496
31445
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
31497
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
31498
|
-
return (hAsync(Host, { key: '
|
|
31446
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '5835c36fcb0b52aec956538202a783f6c194d853', "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: '85df41676bed611467bd4df0002b08baee4f539c', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
31447
|
+
return (hAsync(Host, { key: 'e1e30cdd79f9f54d5f2d27501012358bc46880e5', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
31499
31448
|
[mode]: true,
|
|
31500
31449
|
'searchbar-animated': animated,
|
|
31501
31450
|
'searchbar-disabled': this.disabled,
|
|
@@ -31505,14 +31454,14 @@ class Searchbar {
|
|
|
31505
31454
|
'searchbar-has-focus': this.focused,
|
|
31506
31455
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
31507
31456
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
31508
|
-
}) }, hAsync("div", { key: '
|
|
31457
|
+
}) }, hAsync("div", { key: '7e9db147282a35bb1e3c9c6125b9a044e81ddde5', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: '02f08da21326b78d6cd249d54deab96fd8472ba8', "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: '048b00348456bd827ae734491c46a67bfb146227', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: '71f64339bbfd54ebd26a0946c8ee9d726cd89c04', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
31509
31458
|
/**
|
|
31510
31459
|
* This prevents mobile browsers from
|
|
31511
31460
|
* blurring the input when the clear
|
|
31512
31461
|
* button is activated.
|
|
31513
31462
|
*/
|
|
31514
31463
|
ev.preventDefault();
|
|
31515
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
31464
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '9b1a177b21951c1c95897a468b34bb7bbd63d137', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
31516
31465
|
}
|
|
31517
31466
|
get el() { return getElement(this); }
|
|
31518
31467
|
static get watchers() { return {
|
|
@@ -32651,7 +32600,7 @@ class Select {
|
|
|
32651
32600
|
const scrollSelectedIntoView = () => {
|
|
32652
32601
|
const indexOfSelected = this.childOpts.findIndex((o) => o.value === this.value);
|
|
32653
32602
|
if (indexOfSelected > -1) {
|
|
32654
|
-
const selectedItem = overlay.querySelector(`.select-interface-option:nth-
|
|
32603
|
+
const selectedItem = overlay.querySelector(`.select-interface-option:nth-child(${indexOfSelected + 1})`);
|
|
32655
32604
|
if (selectedItem) {
|
|
32656
32605
|
/**
|
|
32657
32606
|
* Browsers such as Firefox do not
|
|
@@ -33171,7 +33120,7 @@ class Select {
|
|
|
33171
33120
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
33172
33121
|
*/
|
|
33173
33122
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
33174
|
-
return (hAsync(Host, { key: '
|
|
33123
|
+
return (hAsync(Host, { key: 'e33253af9b9daa14460c7c259fb138b4d2b875ae', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
33175
33124
|
[mode]: true,
|
|
33176
33125
|
'in-item': inItem,
|
|
33177
33126
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -33189,7 +33138,7 @@ class Select {
|
|
|
33189
33138
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
33190
33139
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
33191
33140
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
33192
|
-
}) }, hAsync("label", { key: '
|
|
33141
|
+
}) }, hAsync("label", { key: '03303b7131c77a78a933e8e496e7251b6b5c485b', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '9037674db6a0adc189e887c9048f817d5afdf635', class: "select-wrapper-inner" }, hAsync("slot", { key: '7c9226c838ba4bcf5bc0b234fa1613ce335cf73d', name: "start" }), hAsync("div", { key: 'a7432c3efb5c65f88a5e4b0d35c5a433fa4e949d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: '028e683df26a8f573d7670da76e0ad26d21c83e0', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: '20341bcae3753048ce905d2aceffa5351a0db125', class: "select-highlight" })), this.renderBottomContent()));
|
|
33193
33142
|
}
|
|
33194
33143
|
get el() { return getElement(this); }
|
|
33195
33144
|
static get watchers() { return {
|
|
@@ -35389,15 +35338,16 @@ class Toast {
|
|
|
35389
35338
|
}
|
|
35390
35339
|
/**
|
|
35391
35340
|
* Dismiss the toast overlay after it has been presented.
|
|
35392
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
35393
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
35394
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
35395
35341
|
*
|
|
35396
35342
|
* @param data Any data to emit in the dismiss events.
|
|
35397
35343
|
* @param role The role of the element that is dismissing the toast.
|
|
35398
35344
|
* This can be useful in a button handler for determining which button was
|
|
35399
35345
|
* clicked to dismiss the toast.
|
|
35400
|
-
* Some examples include:
|
|
35346
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
35347
|
+
*
|
|
35348
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
35349
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
35350
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
35401
35351
|
*/
|
|
35402
35352
|
async dismiss(data, role) {
|
|
35403
35353
|
var _a, _b;
|
|
@@ -35565,9 +35515,9 @@ class Toast {
|
|
|
35565
35515
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
35566
35516
|
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);
|
|
35567
35517
|
}
|
|
35568
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
35518
|
+
return (hAsync(Host, Object.assign({ key: '425be734aee0eeef281ab1609a9f982ce8b5e852', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
35569
35519
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
35570
|
-
}, 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: '
|
|
35520
|
+
}, 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: '7c3ad1a8df9e21fc30fc179c7edebeabcf3c6874', class: wrapperClass }, hAsync("div", { key: 'f950c21e8d7bf92653e0bd52e820ed6b84fa8cf5', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: '0266241927dbe16799adb57f9fc11bd5372877b2', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: '9ef4b87bad672af6a5b693af61375564daf1eeeb', 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')))));
|
|
35571
35521
|
}
|
|
35572
35522
|
get el() { return getElement(this); }
|
|
35573
35523
|
static get watchers() { return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/core",
|
|
3
|
-
"version": "8.6.3-
|
|
3
|
+
"version": "8.6.3-nightly.20250620",
|
|
4
4
|
"description": "Base components for Ionic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@clack/prompts": "^0.11.0",
|
|
45
45
|
"@ionic/eslint-config": "^0.3.0",
|
|
46
46
|
"@ionic/prettier-config": "^2.0.0",
|
|
47
|
-
"@playwright/test": "^1.
|
|
47
|
+
"@playwright/test": "^1.52.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^8.4.0",
|
|
49
49
|
"@rollup/plugin-virtual": "^2.0.3",
|
|
50
50
|
"@stencil/angular-output-target": "^0.10.0",
|
|
51
51
|
"@stencil/react-output-target": "0.5.3",
|
|
52
52
|
"@stencil/sass": "^3.0.9",
|
|
53
|
-
"@stencil/vue-output-target": "0.10.
|
|
53
|
+
"@stencil/vue-output-target": "0.10.7",
|
|
54
54
|
"@types/jest": "^29.5.6",
|
|
55
55
|
"@types/node": "^14.6.0",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|