@ionic/core 8.8.11-dev.11781186446.19d9a1cc → 8.8.11-dev.11781283724.13318488
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/index.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-picker-legacy-column.d.ts +11 -0
- package/components/ion-picker-legacy-column.js +4 -0
- package/components/ion-picker-legacy.d.ts +11 -0
- package/components/ion-picker-legacy.js +4 -0
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-ripple-effect.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/p-0NRupjzW.js +4 -0
- package/components/{p-DpV-p5Xs.js → p-5bE_Wz4Y.js} +1 -1
- package/components/{p-r0aq7dpt.js → p-B60hm8Qv.js} +1 -1
- package/components/{p-XJWMAP8m.js → p-BLmJ0zRm.js} +1 -1
- package/components/{p-DhkITZ-y.js → p-BSEgsdFI.js} +1 -1
- package/components/p-Bth-EzJ0.js +4 -0
- package/components/{p-DEBD4LvH.js → p-C2lKgrXx.js} +1 -1
- package/components/p-CU5rbWAW.js +4 -0
- package/components/{p-Dz74mwlk.js → p-Cfx4M1Bn.js} +1 -1
- package/components/{p-Ck2wcXbv.js → p-DDWp95gH.js} +1 -1
- package/components/p-W9CZ2mWX.js +4 -0
- package/components/p-dhLYXa7A.js +4 -0
- package/components/{p-B8U2xbtx.js → p-nQi4oKcG.js} +1 -1
- package/components/{p-wk2QqrAo.js → p-rCa2eL0j.js} +1 -1
- package/components/p-uVRyUM3z.js +4 -0
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -8
- package/dist/cjs/ion-alert.cjs.entry.js +3 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +9 -23
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/{ion-datetime.cjs.entry.js → ion-datetime_3.cjs.entry.js} +639 -1
- package/dist/cjs/ion-input.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +3 -7
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +5 -9
- package/dist/cjs/ion-popover.cjs.entry.js +3 -7
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +27 -6
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +5 -36
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{overlays-DSmSrd_4.js → overlays-TbKsuC-K.js} +7 -26
- package/dist/collection/collection-manifest.json +9 -5
- package/dist/collection/components/action-sheet/action-sheet.js +4 -8
- package/dist/collection/components/alert/alert.js +3 -7
- package/dist/collection/components/input/input.js +8 -8
- package/dist/collection/components/loading/loading.js +3 -7
- package/dist/collection/components/modal/modal.js +5 -9
- package/dist/collection/components/picker-legacy/animations/ios.enter.js +27 -0
- package/dist/collection/components/picker-legacy/animations/ios.leave.js +23 -0
- package/dist/collection/components/picker-legacy/picker-interface.js +1 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +300 -0
- package/dist/collection/components/picker-legacy/picker.js +890 -0
- package/dist/collection/components/picker-legacy/picker.md.css +287 -0
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +231 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +422 -0
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +222 -0
- package/dist/collection/components/picker-legacy-column/test/test.utils.js +43 -0
- package/dist/collection/components/popover/popover.js +3 -7
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +4 -4
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +5 -38
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +31 -10
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -33
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/overlays.js +6 -25
- package/dist/docs.json +1170 -247
- package/dist/esm/{index-AlrZKoWR.js → index-DV3sJJW8.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +4 -8
- package/dist/esm/ion-alert.entry.js +3 -7
- package/dist/esm/ion-app_8.entry.js +9 -23
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/{ion-datetime.entry.js → ion-datetime_3.entry.js} +641 -5
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +5 -5
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +3 -7
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +5 -9
- package/dist/esm/ion-popover.entry.js +3 -7
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +3 -3
- package/dist/esm/ion-reorder_2.entry.js +3 -3
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +28 -7
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +7 -38
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{overlays-DLNOHWNc.js → overlays-TbiM4mdr.js} +7 -26
- package/dist/html.html-data.json +77 -6
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-00dbb17e.entry.js +4 -0
- package/dist/ionic/p-01f81ea5.entry.js +4 -0
- package/dist/ionic/p-0d005398.entry.js +4 -0
- package/dist/ionic/{p-fe4aa1db.entry.js → p-0fa9c382.entry.js} +1 -1
- package/dist/ionic/p-21eb76d5.entry.js +4 -0
- package/dist/ionic/p-27d30585.entry.js +4 -0
- package/dist/ionic/p-2bb2cb18.entry.js +4 -0
- package/dist/ionic/p-2f55dc1a.entry.js +4 -0
- package/dist/ionic/p-30bf9737.entry.js +4 -0
- package/dist/ionic/{p-80b44b3c.entry.js → p-3353c229.entry.js} +1 -1
- package/dist/ionic/{p-a7628bc7.entry.js → p-37e720da.entry.js} +1 -1
- package/dist/ionic/{p-9177f4ac.entry.js → p-390ca786.entry.js} +1 -1
- package/dist/ionic/{p-259d0d98.entry.js → p-3a126bca.entry.js} +1 -1
- package/dist/ionic/p-3a541154.entry.js +4 -0
- package/dist/ionic/{p-4502a274.entry.js → p-3a7d1e91.entry.js} +1 -1
- package/dist/ionic/{p-627fabd9.entry.js → p-3ae5f277.entry.js} +1 -1
- package/dist/ionic/{p-a5213260.entry.js → p-4858af1f.entry.js} +1 -1
- package/dist/ionic/p-485fda23.entry.js +4 -0
- package/dist/ionic/p-4baa5b82.entry.js +4 -0
- package/dist/ionic/p-4dc1c33c.entry.js +4 -0
- package/dist/ionic/{p-76e92a84.entry.js → p-5d1da0a2.entry.js} +1 -1
- package/dist/ionic/p-5fc7e542.entry.js +4 -0
- package/dist/ionic/{p-d2c7f046.entry.js → p-75dc25ba.entry.js} +1 -1
- package/dist/ionic/{p-b9ac1fe0.entry.js → p-84d5ce05.entry.js} +1 -1
- package/dist/ionic/{p-51cd1643.entry.js → p-874b4bd8.entry.js} +1 -1
- package/dist/ionic/{p-ef93ca92.entry.js → p-8eb8ee76.entry.js} +1 -1
- package/dist/ionic/{p-14095ba5.entry.js → p-8fce95d5.entry.js} +1 -1
- package/dist/ionic/{p-c93553d2.entry.js → p-94f2a736.entry.js} +1 -1
- package/dist/ionic/{p-db1b6738.entry.js → p-9a65ac7f.entry.js} +1 -1
- package/dist/ionic/{p-7a37b3ce.entry.js → p-9f1103ce.entry.js} +1 -1
- package/dist/ionic/{p-AlrZKoWR.js → p-DV3sJJW8.js} +1 -1
- package/dist/ionic/{p-441fbb13.entry.js → p-a21add2f.entry.js} +1 -1
- package/dist/ionic/{p-03aa786d.entry.js → p-aa5d6b8f.entry.js} +1 -1
- package/dist/ionic/{p-d8387b99.entry.js → p-c4d8641b.entry.js} +1 -1
- package/dist/ionic/{p-629e4703.entry.js → p-e0be05c5.entry.js} +1 -1
- package/dist/ionic/{p-2a6d6565.entry.js → p-e847a888.entry.js} +1 -1
- package/dist/ionic/p-ec090e0a.entry.js +4 -0
- package/dist/ionic/{p-b1599fca.entry.js → p-ef4c3bee.entry.js} +1 -1
- package/dist/ionic/{p-341032b3.entry.js → p-fabcce6c.entry.js} +1 -1
- package/dist/ionic/p-xOfi7-Zn.js +4 -0
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/picker-legacy/animations/ios.enter.d.ts +5 -0
- package/dist/types/components/picker-legacy/animations/ios.leave.d.ts +5 -0
- package/dist/types/components/picker-legacy/picker-interface.d.ts +52 -0
- package/dist/types/components/picker-legacy/picker.d.ts +158 -0
- package/dist/types/components/picker-legacy-column/picker-column.d.ts +46 -0
- package/dist/types/components/picker-legacy-column/test/test.utils.d.ts +9 -0
- package/dist/types/components/router-outlet/router-outlet.d.ts +0 -7
- package/dist/types/components/searchbar/searchbar.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +0 -1
- package/dist/types/components.d.ts +282 -19
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/config.d.ts +8 -0
- package/dist/types/utils/overlays.d.ts +9 -11
- package/hydrate/index.js +817 -203
- package/hydrate/index.mjs +817 -203
- package/package.json +5 -37
- package/components/p-BpCi7xHq.js +0 -4
- package/components/p-CHzfYZbv.js +0 -4
- package/components/p-DH50pr9O.js +0 -4
- package/components/p-DmpBvltk.js +0 -4
- package/components/p-djQLE88P.js +0 -4
- package/dist/ionic/p-4621c387.entry.js +0 -4
- package/dist/ionic/p-4bb3eb60.entry.js +0 -4
- package/dist/ionic/p-5c3ec490.entry.js +0 -4
- package/dist/ionic/p-7aed7726.entry.js +0 -4
- package/dist/ionic/p-7ebd980c.entry.js +0 -4
- package/dist/ionic/p-8d624ee5.entry.js +0 -4
- package/dist/ionic/p-944c8939.entry.js +0 -4
- package/dist/ionic/p-9c6a5a8d.entry.js +0 -4
- package/dist/ionic/p-Cg5-OQYy.js +0 -4
- package/dist/ionic/p-a2e51c5d.entry.js +0 -4
- package/dist/ionic/p-b16be471.entry.js +0 -4
- package/dist/ionic/p-d8ac9eea.entry.js +0 -4
- package/dist/ionic/p-ed797c72.entry.js +0 -4
- package/dist/ionic/p-f09f9642.entry.js +0 -4
- package/dist/ionic/p-f1c06f82.entry.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -8039,7 +8039,7 @@ const focusElementInOverlay = (hostToFocus, overlay) => {
|
|
|
8039
8039
|
* Should NOT include: Toast
|
|
8040
8040
|
*/
|
|
8041
8041
|
const trapKeyboardFocus = (ev, doc) => {
|
|
8042
|
-
const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-popover');
|
|
8042
|
+
const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover');
|
|
8043
8043
|
const target = ev.target;
|
|
8044
8044
|
/**
|
|
8045
8045
|
* If no active overlay, ignore this event.
|
|
@@ -8273,7 +8273,7 @@ const dismissOverlay = (doc, data, role, overlayTag, id) => {
|
|
|
8273
8273
|
*/
|
|
8274
8274
|
const getOverlays = (doc, selector) => {
|
|
8275
8275
|
if (selector === undefined) {
|
|
8276
|
-
selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-popover,ion-toast';
|
|
8276
|
+
selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast';
|
|
8277
8277
|
}
|
|
8278
8278
|
return Array.from(doc.querySelectorAll(selector)).filter((c) => c.overlayIndex > 0);
|
|
8279
8279
|
};
|
|
@@ -8335,29 +8335,6 @@ const setRootAriaHidden = (hidden = false) => {
|
|
|
8335
8335
|
viewContainer.removeAttribute('aria-hidden');
|
|
8336
8336
|
}
|
|
8337
8337
|
};
|
|
8338
|
-
/**
|
|
8339
|
-
* Cleans up root `aria-hidden` and `backdrop-no-scroll` when
|
|
8340
|
-
* an overlay is removed from the DOM without going through
|
|
8341
|
-
* the `dismiss()` flow (e.g., when a framework unmounts the
|
|
8342
|
-
* overlay during a route change).
|
|
8343
|
-
*
|
|
8344
|
-
* Should be called from an overlay's `disconnectedCallback`
|
|
8345
|
-
* when the overlay was still presented at the time of removal.
|
|
8346
|
-
*/
|
|
8347
|
-
const cleanupRootFocusTrapAccessibility = () => {
|
|
8348
|
-
if (typeof document === 'undefined') {
|
|
8349
|
-
return;
|
|
8350
|
-
}
|
|
8351
|
-
const remainingOverlays = getPresentedOverlays(document);
|
|
8352
|
-
const hasRemainingLocking = remainingOverlays.some((o) => {
|
|
8353
|
-
const el = o;
|
|
8354
|
-
return el.tagName !== 'ION-TOAST' && el.focusTrap !== false && isBackdropAlwaysBlocking(el);
|
|
8355
|
-
});
|
|
8356
|
-
if (!hasRemainingLocking) {
|
|
8357
|
-
setRootAriaHidden(false);
|
|
8358
|
-
document.body.classList.remove(BACKDROP_NO_SCROLL);
|
|
8359
|
-
}
|
|
8360
|
-
};
|
|
8361
8338
|
const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
8362
8339
|
var _a, _b;
|
|
8363
8340
|
if (overlay.presented) {
|
|
@@ -9614,7 +9591,7 @@ const createAnimation = (animationId) => {
|
|
|
9614
9591
|
/**
|
|
9615
9592
|
* iOS Action Sheet Enter Animation
|
|
9616
9593
|
*/
|
|
9617
|
-
const iosEnterAnimation$
|
|
9594
|
+
const iosEnterAnimation$6 = (baseEl) => {
|
|
9618
9595
|
const baseAnimation = createAnimation();
|
|
9619
9596
|
const backdropAnimation = createAnimation();
|
|
9620
9597
|
const wrapperAnimation = createAnimation();
|
|
@@ -9638,7 +9615,7 @@ const iosEnterAnimation$5 = (baseEl) => {
|
|
|
9638
9615
|
/**
|
|
9639
9616
|
* iOS Action Sheet Leave Animation
|
|
9640
9617
|
*/
|
|
9641
|
-
const iosLeaveAnimation$
|
|
9618
|
+
const iosLeaveAnimation$6 = (baseEl) => {
|
|
9642
9619
|
const baseAnimation = createAnimation();
|
|
9643
9620
|
const backdropAnimation = createAnimation();
|
|
9644
9621
|
const wrapperAnimation = createAnimation();
|
|
@@ -9794,7 +9771,7 @@ class ActionSheet {
|
|
|
9794
9771
|
async present() {
|
|
9795
9772
|
const unlock = await this.lockController.lock();
|
|
9796
9773
|
await this.delegateController.attachViewToDom();
|
|
9797
|
-
await present(this, 'actionSheetEnter', iosEnterAnimation$
|
|
9774
|
+
await present(this, 'actionSheetEnter', iosEnterAnimation$6, mdEnterAnimation$5);
|
|
9798
9775
|
unlock();
|
|
9799
9776
|
}
|
|
9800
9777
|
/**
|
|
@@ -9811,7 +9788,7 @@ class ActionSheet {
|
|
|
9811
9788
|
*/
|
|
9812
9789
|
async dismiss(data, role) {
|
|
9813
9790
|
const unlock = await this.lockController.lock();
|
|
9814
|
-
const dismissed = await dismiss(this, data, role, 'actionSheetLeave', iosLeaveAnimation$
|
|
9791
|
+
const dismissed = await dismiss(this, data, role, 'actionSheetLeave', iosLeaveAnimation$6, mdLeaveAnimation$5);
|
|
9815
9792
|
if (dismissed) {
|
|
9816
9793
|
this.delegateController.removeViewFromDom();
|
|
9817
9794
|
}
|
|
@@ -9980,10 +9957,6 @@ class ActionSheet {
|
|
|
9980
9957
|
this.gesture = undefined;
|
|
9981
9958
|
}
|
|
9982
9959
|
this.triggerController.removeClickListener();
|
|
9983
|
-
// Clean up aria-hidden if removed without dismiss() being called
|
|
9984
|
-
if (this.presented) {
|
|
9985
|
-
cleanupRootFocusTrapAccessibility();
|
|
9986
|
-
}
|
|
9987
9960
|
}
|
|
9988
9961
|
componentWillLoad() {
|
|
9989
9962
|
var _a;
|
|
@@ -10072,7 +10045,7 @@ class ActionSheet {
|
|
|
10072
10045
|
if (isRadio) {
|
|
10073
10046
|
htmlAttrs['aria-checked'] = isActiveRadio ? 'true' : 'false';
|
|
10074
10047
|
}
|
|
10075
|
-
return (hAsync("button", Object.assign({}, htmlAttrs, { role: isRadio ? 'radio' : undefined, type: "button", id: buttonId, class: Object.assign(Object.assign({}, buttonClass$
|
|
10048
|
+
return (hAsync("button", Object.assign({}, htmlAttrs, { role: isRadio ? 'radio' : undefined, type: "button", id: buttonId, class: Object.assign(Object.assign({}, buttonClass$3(b)), (isRadio && { 'action-sheet-selected': isActiveRadio })), onClick: () => {
|
|
10076
10049
|
if (isRadio) {
|
|
10077
10050
|
this.selectRadioButton(b);
|
|
10078
10051
|
}
|
|
@@ -10087,12 +10060,12 @@ class ActionSheet {
|
|
|
10087
10060
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
10088
10061
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
10089
10062
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
10090
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
10063
|
+
return (hAsync(Host, Object.assign({ key: '48b63b870f2816b4cad3c606f3d9956854cee79a', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
10091
10064
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
10092
|
-
}, 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: '
|
|
10065
|
+
}, 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: '41dd5781f139d26b3feea33ab387451aeafacd51', tappable: this.backdropDismiss }), hAsync("div", { key: 'f797c2657782e4e83adf90d2d796108e857a1fc0', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '8e74209321fc5e8712e3e293c91a6fa036ea45ab', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: 'c811860be2eed0b6c73fc2cc5a59cb94db2e8912', class: "action-sheet-container" }, hAsync("div", { key: 'd36ee14b70d73eb5cd69e0c57bc5cc31daf86ab3', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined }, header !== undefined && (hAsync("div", { key: '922695de191edc86451eed2552acc4f54993ea52', id: headerID, class: {
|
|
10093
10066
|
'action-sheet-title': true,
|
|
10094
10067
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
10095
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
10068
|
+
} }, header, this.subHeader && hAsync("div", { key: 'a119d4a93668e829f7106f11cbbdd437310f3e80', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (hAsync("div", { key: '1d27f36d09bedd2e4c61fea9dd9d05f8f9271aef', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", Object.assign({ key: 'ed13658176c54cc45808a54a0331c297430d9bc6' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$3(cancelButton), onClick: () => this.buttonClick(cancelButton) }), hAsync("span", { key: '5208e3e3535b775a443cef6fb1decd790db69b0c', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: 'b7ba489e1ee50524a5b4af670eef787844a16286', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && hAsync("ion-ripple-effect", { key: 'b3f88898114855853259f0001def26b4bd6e4a98' })))))), hAsync("div", { key: '0dfd0fcdc633bf565990eaa06679608e749cf8f9', tabindex: "0", "aria-hidden": "true" })));
|
|
10096
10069
|
}
|
|
10097
10070
|
get el() { return getElement(this); }
|
|
10098
10071
|
static get watchers() { return {
|
|
@@ -10141,7 +10114,7 @@ class ActionSheet {
|
|
|
10141
10114
|
"$attrsToReflect$": []
|
|
10142
10115
|
}; }
|
|
10143
10116
|
}
|
|
10144
|
-
const buttonClass$
|
|
10117
|
+
const buttonClass$3 = (button) => {
|
|
10145
10118
|
return Object.assign({ 'action-sheet-button': true, 'ion-activatable': !button.disabled, 'ion-focusable': !button.disabled, [`action-sheet-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
10146
10119
|
};
|
|
10147
10120
|
|
|
@@ -10312,7 +10285,7 @@ class IonicSafeString {
|
|
|
10312
10285
|
/**
|
|
10313
10286
|
* iOS Alert Enter Animation
|
|
10314
10287
|
*/
|
|
10315
|
-
const iosEnterAnimation$
|
|
10288
|
+
const iosEnterAnimation$5 = (baseEl) => {
|
|
10316
10289
|
const baseAnimation = createAnimation();
|
|
10317
10290
|
const backdropAnimation = createAnimation();
|
|
10318
10291
|
const wrapperAnimation = createAnimation();
|
|
@@ -10337,7 +10310,7 @@ const iosEnterAnimation$4 = (baseEl) => {
|
|
|
10337
10310
|
/**
|
|
10338
10311
|
* iOS Alert Leave Animation
|
|
10339
10312
|
*/
|
|
10340
|
-
const iosLeaveAnimation$
|
|
10313
|
+
const iosLeaveAnimation$5 = (baseEl) => {
|
|
10341
10314
|
const baseAnimation = createAnimation();
|
|
10342
10315
|
const backdropAnimation = createAnimation();
|
|
10343
10316
|
const wrapperAnimation = createAnimation();
|
|
@@ -10613,10 +10586,6 @@ class Alert {
|
|
|
10613
10586
|
this.gesture.destroy();
|
|
10614
10587
|
this.gesture = undefined;
|
|
10615
10588
|
}
|
|
10616
|
-
// Clean up aria-hidden if removed without dismiss() being called
|
|
10617
|
-
if (this.presented) {
|
|
10618
|
-
cleanupRootFocusTrapAccessibility();
|
|
10619
|
-
}
|
|
10620
10589
|
(_a = this.buttonGroupResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
10621
10590
|
this.buttonGroupResizeObserver = undefined;
|
|
10622
10591
|
}
|
|
@@ -10656,7 +10625,7 @@ class Alert {
|
|
|
10656
10625
|
async present() {
|
|
10657
10626
|
const unlock = await this.lockController.lock();
|
|
10658
10627
|
await this.delegateController.attachViewToDom();
|
|
10659
|
-
await present(this, 'alertEnter', iosEnterAnimation$
|
|
10628
|
+
await present(this, 'alertEnter', iosEnterAnimation$5, mdEnterAnimation$4).then(() => {
|
|
10660
10629
|
var _a, _b;
|
|
10661
10630
|
/**
|
|
10662
10631
|
* Check if alert has only one button and no inputs.
|
|
@@ -10687,7 +10656,7 @@ class Alert {
|
|
|
10687
10656
|
*/
|
|
10688
10657
|
async dismiss(data, role) {
|
|
10689
10658
|
const unlock = await this.lockController.lock();
|
|
10690
|
-
const dismissed = await dismiss(this, data, role, 'alertLeave', iosLeaveAnimation$
|
|
10659
|
+
const dismissed = await dismiss(this, data, role, 'alertLeave', iosLeaveAnimation$5, mdLeaveAnimation$4);
|
|
10691
10660
|
if (dismissed) {
|
|
10692
10661
|
this.delegateController.removeViewFromDom();
|
|
10693
10662
|
}
|
|
@@ -10872,7 +10841,7 @@ class Alert {
|
|
|
10872
10841
|
'alert-button-group': true,
|
|
10873
10842
|
'alert-button-group-vertical': buttons.length > 2 || this.isButtonGroupWrapped,
|
|
10874
10843
|
};
|
|
10875
|
-
return (hAsync("div", { class: alertButtonGroupClass, ref: (el) => (this.buttonGroupEl = el) }, buttons.map((button) => (hAsync("button", Object.assign({}, button.htmlAttributes, { type: "button", id: button.id, class: buttonClass$
|
|
10844
|
+
return (hAsync("div", { class: alertButtonGroupClass, ref: (el) => (this.buttonGroupEl = el) }, buttons.map((button) => (hAsync("button", Object.assign({}, button.htmlAttributes, { type: "button", id: button.id, class: buttonClass$2(button), tabIndex: 0, onClick: () => this.buttonClick(button) }), hAsync("span", { class: "alert-button-inner" }, button.text), mode === 'md' && hAsync("ion-ripple-effect", null))))));
|
|
10876
10845
|
}
|
|
10877
10846
|
renderAlertMessage(msgId) {
|
|
10878
10847
|
const { customHTMLEnabled, message } = this;
|
|
@@ -10895,9 +10864,9 @@ class Alert {
|
|
|
10895
10864
|
* If neither are defined, do not set aria-labelledby.
|
|
10896
10865
|
*/
|
|
10897
10866
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
10898
|
-
return (hAsync(Host, { key: '
|
|
10867
|
+
return (hAsync(Host, { key: '8d54ccd725ea634be080e67b56fa5efe498f496c', tabindex: "-1", style: {
|
|
10899
10868
|
zIndex: `${20000 + overlayIndex}`,
|
|
10900
|
-
}, 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: '
|
|
10869
|
+
}, 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: '05a238583342285545587de9dce144a82d779193', tappable: this.backdropDismiss }), hAsync("div", { key: 'e52c53fd9845e66781af01b2a788a291b45a927c', tabindex: "0", "aria-hidden": "true" }), hAsync("div", Object.assign({ key: '8417e52eebca24ff436fab0703666db51072f980', 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: '5c560d4800b24d41961423718108b54be6cd6f91', class: "alert-head" }, header && (hAsync("h2", { key: '8637b64cd5125b2258115d1c11f3743113658608', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (hAsync("h2", { key: '7a4e61a02c29b16b336d8acaf6569b30de6fe71e', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (hAsync("h3", { key: '30844b6a0a7e3dab46514cd548ecffa86dcd59cb', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), hAsync("div", { key: '39c824fee1e60ad8d6234c79d22ceb8bba8004af', tabindex: "0", "aria-hidden": "true" })));
|
|
10901
10870
|
}
|
|
10902
10871
|
get el() { return getElement(this); }
|
|
10903
10872
|
static get watchers() { return {
|
|
@@ -10955,7 +10924,7 @@ const inputClass = (input) => {
|
|
|
10955
10924
|
var _a, _b, _c;
|
|
10956
10925
|
return Object.assign(Object.assign({ 'alert-input': true, 'alert-input-disabled': ((_b = (_a = input.attributes) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : input.disabled) || false }, getClassMap(input.cssClass)), getClassMap(input.attributes ? (_c = input.attributes.class) === null || _c === void 0 ? void 0 : _c.toString() : ''));
|
|
10957
10926
|
};
|
|
10958
|
-
const buttonClass$
|
|
10927
|
+
const buttonClass$2 = (button) => {
|
|
10959
10928
|
return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
10960
10929
|
};
|
|
10961
10930
|
|
|
@@ -19294,7 +19263,7 @@ class Input {
|
|
|
19294
19263
|
/**
|
|
19295
19264
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
19296
19265
|
*/
|
|
19297
|
-
this.autocorrect =
|
|
19266
|
+
this.autocorrect = 'off';
|
|
19298
19267
|
/**
|
|
19299
19268
|
* Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element.
|
|
19300
19269
|
*
|
|
@@ -19751,7 +19720,7 @@ class Input {
|
|
|
19751
19720
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
19752
19721
|
*/
|
|
19753
19722
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
19754
|
-
return (hAsync(Host, { key: '
|
|
19723
|
+
return (hAsync(Host, { key: '9ba9cf425b573d2ca9ac34455a0e6b8474c4de6d', class: createColorClasses$1(this.color, {
|
|
19755
19724
|
[mode]: true,
|
|
19756
19725
|
'has-value': hasValue,
|
|
19757
19726
|
'has-focus': hasFocus,
|
|
@@ -19762,14 +19731,14 @@ class Input {
|
|
|
19762
19731
|
'in-item': inItem,
|
|
19763
19732
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
19764
19733
|
'input-disabled': disabled,
|
|
19765
|
-
}) }, hAsync("label", { key: '
|
|
19734
|
+
}) }, hAsync("label", { key: '74b989d0aa5ab38f29f952519868f05119df6005', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '47f2b42e2f74ea866b4f871026e08ab375d7a726', class: "native-wrapper", onClick: this.onLabelClick }, hAsync("slot", { key: 'eaabe5a4a329a356cac3294d15c087d0d131fff2', name: "start" }), hAsync("input", Object.assign({ key: 'c821a984a8a9b7f96f30892c06d8deda093ff24b', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.getLabelledById() }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (hAsync("button", { key: '62069c11016ee190dc46ab941372e1c4ad8a36ed', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
19766
19735
|
/**
|
|
19767
19736
|
* This prevents mobile browsers from
|
|
19768
19737
|
* blurring the input when the clear
|
|
19769
19738
|
* button is activated.
|
|
19770
19739
|
*/
|
|
19771
19740
|
ev.preventDefault();
|
|
19772
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '
|
|
19741
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: 'dd75a516d32110d85382b664c663bd41f177ce12', "aria-hidden": "true", icon: clearIconData }))), hAsync("slot", { key: '330d4b9389f2c62223a5ee24003e96ef3e6b2473', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '8e442bed130ddc84976ab70fd3f8578d6bcc6316', class: "input-highlight" })), this.renderBottomContent()));
|
|
19773
19742
|
}
|
|
19774
19743
|
get el() { return getElement(this); }
|
|
19775
19744
|
static get watchers() { return {
|
|
@@ -19797,7 +19766,7 @@ class Input {
|
|
|
19797
19766
|
"color": [513],
|
|
19798
19767
|
"autocapitalize": [1],
|
|
19799
19768
|
"autocomplete": [1],
|
|
19800
|
-
"autocorrect": [
|
|
19769
|
+
"autocorrect": [1],
|
|
19801
19770
|
"autofocus": [4],
|
|
19802
19771
|
"clearInput": [4, "clear-input"],
|
|
19803
19772
|
"clearInputIcon": [1, "clear-input-icon"],
|
|
@@ -21801,7 +21770,7 @@ class ListHeader {
|
|
|
21801
21770
|
/**
|
|
21802
21771
|
* iOS Loading Enter Animation
|
|
21803
21772
|
*/
|
|
21804
|
-
const iosEnterAnimation$
|
|
21773
|
+
const iosEnterAnimation$4 = (baseEl) => {
|
|
21805
21774
|
const baseAnimation = createAnimation();
|
|
21806
21775
|
const backdropAnimation = createAnimation();
|
|
21807
21776
|
const wrapperAnimation = createAnimation();
|
|
@@ -21826,7 +21795,7 @@ const iosEnterAnimation$3 = (baseEl) => {
|
|
|
21826
21795
|
/**
|
|
21827
21796
|
* iOS Loading Leave Animation
|
|
21828
21797
|
*/
|
|
21829
|
-
const iosLeaveAnimation$
|
|
21798
|
+
const iosLeaveAnimation$4 = (baseEl) => {
|
|
21830
21799
|
const baseAnimation = createAnimation();
|
|
21831
21800
|
const backdropAnimation = createAnimation();
|
|
21832
21801
|
const wrapperAnimation = createAnimation();
|
|
@@ -21999,10 +21968,6 @@ class Loading {
|
|
|
21999
21968
|
}
|
|
22000
21969
|
disconnectedCallback() {
|
|
22001
21970
|
this.triggerController.removeClickListener();
|
|
22002
|
-
// Clean up aria-hidden if removed without dismiss() being called
|
|
22003
|
-
if (this.presented) {
|
|
22004
|
-
cleanupRootFocusTrapAccessibility();
|
|
22005
|
-
}
|
|
22006
21971
|
}
|
|
22007
21972
|
/**
|
|
22008
21973
|
* Present the loading overlay after it has been created.
|
|
@@ -22010,7 +21975,7 @@ class Loading {
|
|
|
22010
21975
|
async present() {
|
|
22011
21976
|
const unlock = await this.lockController.lock();
|
|
22012
21977
|
await this.delegateController.attachViewToDom();
|
|
22013
|
-
await present(this, 'loadingEnter', iosEnterAnimation$
|
|
21978
|
+
await present(this, 'loadingEnter', iosEnterAnimation$4, mdEnterAnimation$3);
|
|
22014
21979
|
if (this.duration > 0) {
|
|
22015
21980
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10);
|
|
22016
21981
|
}
|
|
@@ -22033,7 +21998,7 @@ class Loading {
|
|
|
22033
21998
|
if (this.durationTimeout) {
|
|
22034
21999
|
clearTimeout(this.durationTimeout);
|
|
22035
22000
|
}
|
|
22036
|
-
const dismissed = await dismiss(this, data, role, 'loadingLeave', iosLeaveAnimation$
|
|
22001
|
+
const dismissed = await dismiss(this, data, role, 'loadingLeave', iosLeaveAnimation$4, mdLeaveAnimation$3);
|
|
22037
22002
|
if (dismissed) {
|
|
22038
22003
|
this.delegateController.removeViewFromDom();
|
|
22039
22004
|
}
|
|
@@ -22068,9 +22033,9 @@ class Loading {
|
|
|
22068
22033
|
* Otherwise, don't set aria-labelledby.
|
|
22069
22034
|
*/
|
|
22070
22035
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
22071
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
22036
|
+
return (hAsync(Host, Object.assign({ key: 'f86ddbc600cb5c396b7de38fb5f49625388c3c3f', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
22072
22037
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
22073
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
22038
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: 'b53727aaddc37ef3c685fcc150c6d5193290a847', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '4c61bede8e0a4e47daa6f1f9d0f364ef6aec0bc3', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '84e51ceb07118f1eaeb757df28801c255496931b', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: 'fc97f1912e0fc558b7c309a5bc084415f5f620b2', class: "loading-spinner" }, hAsync("ion-spinner", { key: '6e186d856cd3f10f22c3e317ef00f31b4216459c', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: 'dcbe9d9a619daa1c08174e73827bdabeb59dde92', tabindex: "0", "aria-hidden": "true" })));
|
|
22074
22039
|
}
|
|
22075
22040
|
get el() { return getElement(this); }
|
|
22076
22041
|
static get watchers() { return {
|
|
@@ -24344,7 +24309,7 @@ const createEnterAnimation$1 = () => {
|
|
|
24344
24309
|
/**
|
|
24345
24310
|
* iOS Modal Enter Animation for the Card presentation style
|
|
24346
24311
|
*/
|
|
24347
|
-
const iosEnterAnimation$
|
|
24312
|
+
const iosEnterAnimation$3 = (baseEl, opts) => {
|
|
24348
24313
|
const { presentingEl, currentBreakpoint, expandToScroll } = opts;
|
|
24349
24314
|
const root = getElementRoot(baseEl);
|
|
24350
24315
|
const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
|
|
@@ -24437,7 +24402,7 @@ const createLeaveAnimation$1 = () => {
|
|
|
24437
24402
|
/**
|
|
24438
24403
|
* iOS Modal Leave Animation
|
|
24439
24404
|
*/
|
|
24440
|
-
const iosLeaveAnimation$
|
|
24405
|
+
const iosLeaveAnimation$3 = (baseEl, opts, duration = 500) => {
|
|
24441
24406
|
const { presentingEl, currentBreakpoint } = opts;
|
|
24442
24407
|
const root = getElementRoot(baseEl);
|
|
24443
24408
|
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
|
|
@@ -25810,10 +25775,6 @@ class Modal {
|
|
|
25810
25775
|
// Also called in dismiss() — intentional dual cleanup covers both
|
|
25811
25776
|
// dismiss-then-remove and direct DOM removal without dismiss.
|
|
25812
25777
|
this.cleanupSafeAreaOverrides();
|
|
25813
|
-
// Clean up aria-hidden if removed without dismiss() being called
|
|
25814
|
-
if (this.presented) {
|
|
25815
|
-
cleanupRootFocusTrapAccessibility();
|
|
25816
|
-
}
|
|
25817
25778
|
}
|
|
25818
25779
|
componentWillLoad() {
|
|
25819
25780
|
var _a;
|
|
@@ -25990,7 +25951,7 @@ class Modal {
|
|
|
25990
25951
|
this.statusBarStyle = await StatusBar.getStyle();
|
|
25991
25952
|
setCardStatusBarDark();
|
|
25992
25953
|
}
|
|
25993
|
-
await present(this, 'modalEnter', iosEnterAnimation$
|
|
25954
|
+
await present(this, 'modalEnter', iosEnterAnimation$3, mdEnterAnimation$2, {
|
|
25994
25955
|
presentingEl: presentingElement,
|
|
25995
25956
|
currentBreakpoint: this.initialBreakpoint,
|
|
25996
25957
|
backdropBreakpoint: this.backdropBreakpoint,
|
|
@@ -26052,7 +26013,7 @@ class Modal {
|
|
|
26052
26013
|
// All of the elements needed for the swipe gesture
|
|
26053
26014
|
// should be in the DOM and referenced by now, except
|
|
26054
26015
|
// for the presenting el
|
|
26055
|
-
const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation$
|
|
26016
|
+
const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation$3);
|
|
26056
26017
|
const ani = (this.animation = animationBuilder(el, {
|
|
26057
26018
|
presentingEl: this.presentingElement,
|
|
26058
26019
|
expandToScroll: this.expandToScroll,
|
|
@@ -26071,7 +26032,7 @@ class Modal {
|
|
|
26071
26032
|
if (!wrapperEl || initialBreakpoint === undefined) {
|
|
26072
26033
|
return;
|
|
26073
26034
|
}
|
|
26074
|
-
const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation$
|
|
26035
|
+
const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation$3);
|
|
26075
26036
|
const ani = (this.animation = animationBuilder(this.el, {
|
|
26076
26037
|
presentingEl: this.presentingElement,
|
|
26077
26038
|
currentBreakpoint: initialBreakpoint,
|
|
@@ -26261,7 +26222,7 @@ class Modal {
|
|
|
26261
26222
|
window.removeEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
|
|
26262
26223
|
this.keyboardOpenCallback = undefined;
|
|
26263
26224
|
}
|
|
26264
|
-
const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation$
|
|
26225
|
+
const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation$3, mdLeaveAnimation$2, {
|
|
26265
26226
|
presentingEl: presentingElement,
|
|
26266
26227
|
currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
|
|
26267
26228
|
backdropBreakpoint: this.backdropBreakpoint,
|
|
@@ -26693,20 +26654,20 @@ class Modal {
|
|
|
26693
26654
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
26694
26655
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
26695
26656
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
26696
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
26657
|
+
return (hAsync(Host, Object.assign({ key: 'ab93657f4a5b4c97168d292b398d975e4b5b4af4', "no-router": true,
|
|
26697
26658
|
// Allow the modal to be navigable when the handle is focusable
|
|
26698
26659
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
26699
26660
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
26700
|
-
}, 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: '
|
|
26661
|
+
}, 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: '5ba6315c7c8c64fa04c62f85fd493da5275b2cbd', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'a76c48d41c67f86c18a7481e980e6925e614f85d', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '3f6c61ba60b063592784d76a9594073b3bf210a9',
|
|
26701
26662
|
/*
|
|
26702
26663
|
role and aria-modal must be used on the
|
|
26703
26664
|
same element. They must also be set inside the
|
|
26704
26665
|
shadow DOM otherwise ion-button will not be highlighted
|
|
26705
26666
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
26706
26667
|
*/
|
|
26707
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
26668
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '7f66b4fdb3dec61a2b9aec4e9dbacf5d013d637c', class: "modal-handle",
|
|
26708
26669
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
26709
|
-
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: '
|
|
26670
|
+
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: '2dfaaebe3d0b2a46be1224c25f9ab89bf1744332', onSlotchange: this.onSlotChange }))));
|
|
26710
26671
|
}
|
|
26711
26672
|
get el() { return getElement(this); }
|
|
26712
26673
|
static get watchers() { return {
|
|
@@ -27789,14 +27750,14 @@ class Note {
|
|
|
27789
27750
|
}; }
|
|
27790
27751
|
}
|
|
27791
27752
|
|
|
27792
|
-
const pickerIosCss = () => `:host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--highlight-background, var(--ion-color-step-150, var(--ion-background-color-step-150, #eeeeef)))}`;
|
|
27753
|
+
const pickerIosCss$1 = () => `:host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--highlight-background, var(--ion-color-step-150, var(--ion-background-color-step-150, #eeeeef)))}`;
|
|
27793
27754
|
|
|
27794
|
-
const pickerMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}`;
|
|
27755
|
+
const pickerMdCss$1 = () => `:host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}`;
|
|
27795
27756
|
|
|
27796
27757
|
/**
|
|
27797
27758
|
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
27798
27759
|
*/
|
|
27799
|
-
class Picker {
|
|
27760
|
+
let Picker$1 = class Picker {
|
|
27800
27761
|
constructor(hostRef) {
|
|
27801
27762
|
registerInstance(this, hostRef);
|
|
27802
27763
|
this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
|
|
@@ -28262,8 +28223,8 @@ class Picker {
|
|
|
28262
28223
|
}
|
|
28263
28224
|
get el() { return getElement(this); }
|
|
28264
28225
|
static get style() { return {
|
|
28265
|
-
ios: pickerIosCss(),
|
|
28266
|
-
md: pickerMdCss()
|
|
28226
|
+
ios: pickerIosCss$1(),
|
|
28227
|
+
md: pickerMdCss$1()
|
|
28267
28228
|
}; }
|
|
28268
28229
|
static get cmpMeta() { return {
|
|
28269
28230
|
"$flags$": 297,
|
|
@@ -28275,7 +28236,322 @@ class Picker {
|
|
|
28275
28236
|
"$lazyBundleId$": "-",
|
|
28276
28237
|
"$attrsToReflect$": []
|
|
28277
28238
|
}; }
|
|
28239
|
+
};
|
|
28240
|
+
|
|
28241
|
+
/**
|
|
28242
|
+
* iOS Picker Enter Animation
|
|
28243
|
+
*/
|
|
28244
|
+
const iosEnterAnimation$2 = (baseEl) => {
|
|
28245
|
+
const baseAnimation = createAnimation();
|
|
28246
|
+
const backdropAnimation = createAnimation();
|
|
28247
|
+
const wrapperAnimation = createAnimation();
|
|
28248
|
+
backdropAnimation
|
|
28249
|
+
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
28250
|
+
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
28251
|
+
.beforeStyles({
|
|
28252
|
+
'pointer-events': 'none',
|
|
28253
|
+
})
|
|
28254
|
+
.afterClearStyles(['pointer-events']);
|
|
28255
|
+
wrapperAnimation
|
|
28256
|
+
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
28257
|
+
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
28258
|
+
return baseAnimation
|
|
28259
|
+
.addElement(baseEl)
|
|
28260
|
+
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
28261
|
+
.duration(400)
|
|
28262
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
28263
|
+
};
|
|
28264
|
+
|
|
28265
|
+
/**
|
|
28266
|
+
* iOS Picker Leave Animation
|
|
28267
|
+
*/
|
|
28268
|
+
const iosLeaveAnimation$2 = (baseEl) => {
|
|
28269
|
+
const baseAnimation = createAnimation();
|
|
28270
|
+
const backdropAnimation = createAnimation();
|
|
28271
|
+
const wrapperAnimation = createAnimation();
|
|
28272
|
+
backdropAnimation
|
|
28273
|
+
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
28274
|
+
.fromTo('opacity', 'var(--backdrop-opacity)', 0.01);
|
|
28275
|
+
wrapperAnimation
|
|
28276
|
+
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
28277
|
+
.fromTo('transform', 'translateY(0%)', 'translateY(100%)');
|
|
28278
|
+
return baseAnimation
|
|
28279
|
+
.addElement(baseEl)
|
|
28280
|
+
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
28281
|
+
.duration(400)
|
|
28282
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
28283
|
+
};
|
|
28284
|
+
|
|
28285
|
+
const pickerIosCss = () => `.sc-ion-picker-legacy-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-ios-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-ios-h{display:none}.picker-wrapper.sc-ion-picker-legacy-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-ios:active,.picker-button.sc-ion-picker-legacy-ios:focus{outline:none}.picker-columns.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-ios,.picker-below-highlight.sc-ion-picker-legacy-ios{display:none;pointer-events:none}.sc-ion-picker-legacy-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-legacy-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-legacy-ios:last-child .picker-button.sc-ion-picker-legacy-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-legacy-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-legacy-ios,.picker-button.ion-activated.sc-ion-picker-legacy-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:16px}.picker-columns.sc-ion-picker-legacy-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-legacy-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}`;
|
|
28286
|
+
|
|
28287
|
+
const pickerMdCss = () => `.sc-ion-picker-legacy-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-md-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-md-h{display:none}.picker-wrapper.sc-ion-picker-legacy-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-md:active,.picker-button.sc-ion-picker-legacy-md:focus{outline:none}.picker-columns.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-md,.picker-below-highlight.sc-ion-picker-legacy-md{display:none;pointer-events:none}.sc-ion-picker-legacy-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-legacy-md,.picker-button.ion-activated.sc-ion-picker-legacy-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-legacy-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-legacy-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}`;
|
|
28288
|
+
|
|
28289
|
+
// TODO(FW-2832): types
|
|
28290
|
+
/**
|
|
28291
|
+
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
28292
|
+
*/
|
|
28293
|
+
class Picker {
|
|
28294
|
+
constructor(hostRef) {
|
|
28295
|
+
registerInstance(this, hostRef);
|
|
28296
|
+
this.didPresent = createEvent(this, "ionPickerDidPresent", 7);
|
|
28297
|
+
this.willPresent = createEvent(this, "ionPickerWillPresent", 7);
|
|
28298
|
+
this.willDismiss = createEvent(this, "ionPickerWillDismiss", 7);
|
|
28299
|
+
this.didDismiss = createEvent(this, "ionPickerDidDismiss", 7);
|
|
28300
|
+
this.didPresentShorthand = createEvent(this, "didPresent", 7);
|
|
28301
|
+
this.willPresentShorthand = createEvent(this, "willPresent", 7);
|
|
28302
|
+
this.willDismissShorthand = createEvent(this, "willDismiss", 7);
|
|
28303
|
+
this.didDismissShorthand = createEvent(this, "didDismiss", 7);
|
|
28304
|
+
this.delegateController = createDelegateController(this);
|
|
28305
|
+
this.lockController = createLockController();
|
|
28306
|
+
this.triggerController = createTriggerController();
|
|
28307
|
+
this.presented = false;
|
|
28308
|
+
/** @internal */
|
|
28309
|
+
this.hasController = false;
|
|
28310
|
+
/**
|
|
28311
|
+
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
28312
|
+
*/
|
|
28313
|
+
this.keyboardClose = true;
|
|
28314
|
+
/**
|
|
28315
|
+
* Array of buttons to be displayed at the top of the picker.
|
|
28316
|
+
*/
|
|
28317
|
+
this.buttons = [];
|
|
28318
|
+
/**
|
|
28319
|
+
* Array of columns to be displayed in the picker.
|
|
28320
|
+
*/
|
|
28321
|
+
this.columns = [];
|
|
28322
|
+
/**
|
|
28323
|
+
* Number of milliseconds to wait before dismissing the picker.
|
|
28324
|
+
*/
|
|
28325
|
+
this.duration = 0;
|
|
28326
|
+
/**
|
|
28327
|
+
* If `true`, a backdrop will be displayed behind the picker.
|
|
28328
|
+
*/
|
|
28329
|
+
this.showBackdrop = true;
|
|
28330
|
+
/**
|
|
28331
|
+
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
28332
|
+
*/
|
|
28333
|
+
this.backdropDismiss = true;
|
|
28334
|
+
/**
|
|
28335
|
+
* If `true`, the picker will animate.
|
|
28336
|
+
*/
|
|
28337
|
+
this.animated = true;
|
|
28338
|
+
/**
|
|
28339
|
+
* If `true`, the picker will open. If `false`, the picker will close.
|
|
28340
|
+
* Use this if you need finer grained control over presentation, otherwise
|
|
28341
|
+
* just use the pickerController or the `trigger` property.
|
|
28342
|
+
* Note: `isOpen` will not automatically be set back to `false` when
|
|
28343
|
+
* the picker dismisses. You will need to do that in your code.
|
|
28344
|
+
*/
|
|
28345
|
+
this.isOpen = false;
|
|
28346
|
+
this.onBackdropTap = () => {
|
|
28347
|
+
this.dismiss(undefined, BACKDROP);
|
|
28348
|
+
};
|
|
28349
|
+
this.dispatchCancelHandler = (ev) => {
|
|
28350
|
+
const role = ev.detail.role;
|
|
28351
|
+
if (isCancel(role)) {
|
|
28352
|
+
const cancelButton = this.buttons.find((b) => b.role === 'cancel');
|
|
28353
|
+
this.callButtonHandler(cancelButton);
|
|
28354
|
+
}
|
|
28355
|
+
};
|
|
28356
|
+
}
|
|
28357
|
+
onIsOpenChange(newValue, oldValue) {
|
|
28358
|
+
if (newValue === true && oldValue === false) {
|
|
28359
|
+
this.present();
|
|
28360
|
+
}
|
|
28361
|
+
else if (newValue === false && oldValue === true) {
|
|
28362
|
+
this.dismiss();
|
|
28363
|
+
}
|
|
28364
|
+
}
|
|
28365
|
+
triggerChanged() {
|
|
28366
|
+
const { trigger, el, triggerController } = this;
|
|
28367
|
+
if (trigger) {
|
|
28368
|
+
triggerController.addClickListener(el, trigger);
|
|
28369
|
+
}
|
|
28370
|
+
}
|
|
28371
|
+
connectedCallback() {
|
|
28372
|
+
prepareOverlay(this.el);
|
|
28373
|
+
this.triggerChanged();
|
|
28374
|
+
}
|
|
28375
|
+
disconnectedCallback() {
|
|
28376
|
+
this.triggerController.removeClickListener();
|
|
28377
|
+
}
|
|
28378
|
+
componentWillLoad() {
|
|
28379
|
+
var _a;
|
|
28380
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
28381
|
+
setOverlayId(this.el);
|
|
28382
|
+
}
|
|
28383
|
+
}
|
|
28384
|
+
componentDidLoad() {
|
|
28385
|
+
printIonWarning('[ion-picker-legacy] - ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.', this.el);
|
|
28386
|
+
/**
|
|
28387
|
+
* If picker was rendered with isOpen="true"
|
|
28388
|
+
* then we should open picker immediately.
|
|
28389
|
+
*/
|
|
28390
|
+
if (this.isOpen === true) {
|
|
28391
|
+
raf(() => this.present());
|
|
28392
|
+
}
|
|
28393
|
+
/**
|
|
28394
|
+
* When binding values in frameworks such as Angular
|
|
28395
|
+
* it is possible for the value to be set after the Web Component
|
|
28396
|
+
* initializes but before the value watcher is set up in Stencil.
|
|
28397
|
+
* As a result, the watcher callback may not be fired.
|
|
28398
|
+
* We work around this by manually calling the watcher
|
|
28399
|
+
* callback when the component has loaded and the watcher
|
|
28400
|
+
* is configured.
|
|
28401
|
+
*/
|
|
28402
|
+
this.triggerChanged();
|
|
28403
|
+
}
|
|
28404
|
+
/**
|
|
28405
|
+
* Present the picker overlay after it has been created.
|
|
28406
|
+
*/
|
|
28407
|
+
async present() {
|
|
28408
|
+
const unlock = await this.lockController.lock();
|
|
28409
|
+
await this.delegateController.attachViewToDom();
|
|
28410
|
+
await present(this, 'pickerEnter', iosEnterAnimation$2, iosEnterAnimation$2, undefined);
|
|
28411
|
+
if (this.duration > 0) {
|
|
28412
|
+
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
|
|
28413
|
+
}
|
|
28414
|
+
unlock();
|
|
28415
|
+
}
|
|
28416
|
+
/**
|
|
28417
|
+
* Dismiss the picker overlay after it has been presented.
|
|
28418
|
+
*
|
|
28419
|
+
* @param data Any data to emit in the dismiss events.
|
|
28420
|
+
* @param role The role of the element that is dismissing the picker.
|
|
28421
|
+
* This can be useful in a button handler for determining which button was
|
|
28422
|
+
* clicked to dismiss the picker.
|
|
28423
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
28424
|
+
*/
|
|
28425
|
+
async dismiss(data, role) {
|
|
28426
|
+
const unlock = await this.lockController.lock();
|
|
28427
|
+
if (this.durationTimeout) {
|
|
28428
|
+
clearTimeout(this.durationTimeout);
|
|
28429
|
+
}
|
|
28430
|
+
const dismissed = await dismiss(this, data, role, 'pickerLeave', iosLeaveAnimation$2, iosLeaveAnimation$2);
|
|
28431
|
+
if (dismissed) {
|
|
28432
|
+
this.delegateController.removeViewFromDom();
|
|
28433
|
+
}
|
|
28434
|
+
unlock();
|
|
28435
|
+
return dismissed;
|
|
28436
|
+
}
|
|
28437
|
+
/**
|
|
28438
|
+
* Returns a promise that resolves when the picker did dismiss.
|
|
28439
|
+
*/
|
|
28440
|
+
onDidDismiss() {
|
|
28441
|
+
return eventMethod(this.el, 'ionPickerDidDismiss');
|
|
28442
|
+
}
|
|
28443
|
+
/**
|
|
28444
|
+
* Returns a promise that resolves when the picker will dismiss.
|
|
28445
|
+
*/
|
|
28446
|
+
onWillDismiss() {
|
|
28447
|
+
return eventMethod(this.el, 'ionPickerWillDismiss');
|
|
28448
|
+
}
|
|
28449
|
+
/**
|
|
28450
|
+
* Get the column that matches the specified name.
|
|
28451
|
+
*
|
|
28452
|
+
* @param name The name of the column.
|
|
28453
|
+
*/
|
|
28454
|
+
getColumn(name) {
|
|
28455
|
+
return Promise.resolve(this.columns.find((column) => column.name === name));
|
|
28456
|
+
}
|
|
28457
|
+
async buttonClick(button) {
|
|
28458
|
+
const role = button.role;
|
|
28459
|
+
if (isCancel(role)) {
|
|
28460
|
+
return this.dismiss(undefined, role);
|
|
28461
|
+
}
|
|
28462
|
+
const shouldDismiss = await this.callButtonHandler(button);
|
|
28463
|
+
if (shouldDismiss) {
|
|
28464
|
+
return this.dismiss(this.getSelected(), button.role);
|
|
28465
|
+
}
|
|
28466
|
+
return Promise.resolve();
|
|
28467
|
+
}
|
|
28468
|
+
async callButtonHandler(button) {
|
|
28469
|
+
if (button) {
|
|
28470
|
+
// a handler has been provided, execute it
|
|
28471
|
+
// pass the handler the values from the inputs
|
|
28472
|
+
const rtn = await safeCall(button.handler, this.getSelected());
|
|
28473
|
+
if (rtn === false) {
|
|
28474
|
+
// if the return value of the handler is false then do not dismiss
|
|
28475
|
+
return false;
|
|
28476
|
+
}
|
|
28477
|
+
}
|
|
28478
|
+
return true;
|
|
28479
|
+
}
|
|
28480
|
+
getSelected() {
|
|
28481
|
+
const selected = {};
|
|
28482
|
+
this.columns.forEach((col, index) => {
|
|
28483
|
+
const selectedColumn = col.selectedIndex !== undefined ? col.options[col.selectedIndex] : undefined;
|
|
28484
|
+
selected[col.name] = {
|
|
28485
|
+
text: selectedColumn ? selectedColumn.text : undefined,
|
|
28486
|
+
value: selectedColumn ? selectedColumn.value : undefined,
|
|
28487
|
+
columnIndex: index,
|
|
28488
|
+
};
|
|
28489
|
+
});
|
|
28490
|
+
return selected;
|
|
28491
|
+
}
|
|
28492
|
+
render() {
|
|
28493
|
+
const { htmlAttributes } = this;
|
|
28494
|
+
const mode = getIonMode$1(this);
|
|
28495
|
+
return (hAsync(Host, Object.assign({ key: '80f66d33780d8a1352d24be9cb63a0cc03d01ab5', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
28496
|
+
zIndex: `${20000 + this.overlayIndex}`,
|
|
28497
|
+
}, class: Object.assign({ [mode]: true,
|
|
28498
|
+
// Used internally for styling
|
|
28499
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '97fb8e10ba08b197610cb8c0cdea61103883d55f', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'b3969cb6fbf7153623d14e3ca1493d3370efb211', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '299268483c3727e698d9135bfdf40349a7050ac1', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: '95394de3ef691899b7dbf416f56fd3e86bbdce3f', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: '05f18bb8d00dc0e22f691b7e41f90f729a6c66d7', class: "picker-columns" }, hAsync("div", { key: '4a8fdf224effc0af67fd413e2e6aca8a78d1cf43', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: 'e50a31db45e3f39e9d0fed36a21be9257eec09bf', class: "picker-below-highlight" }))), hAsync("div", { key: '5a78cb2176ac807ea0c195c6b76cd0e8eef9d4c0', tabindex: "0", "aria-hidden": "true" })));
|
|
28500
|
+
}
|
|
28501
|
+
get el() { return getElement(this); }
|
|
28502
|
+
static get watchers() { return {
|
|
28503
|
+
"isOpen": [{
|
|
28504
|
+
"onIsOpenChange": 0
|
|
28505
|
+
}],
|
|
28506
|
+
"trigger": [{
|
|
28507
|
+
"triggerChanged": 0
|
|
28508
|
+
}]
|
|
28509
|
+
}; }
|
|
28510
|
+
static get style() { return {
|
|
28511
|
+
ios: pickerIosCss(),
|
|
28512
|
+
md: pickerMdCss()
|
|
28513
|
+
}; }
|
|
28514
|
+
static get cmpMeta() { return {
|
|
28515
|
+
"$flags$": 34,
|
|
28516
|
+
"$tagName$": "ion-picker-legacy",
|
|
28517
|
+
"$members$": {
|
|
28518
|
+
"overlayIndex": [2, "overlay-index"],
|
|
28519
|
+
"delegate": [16],
|
|
28520
|
+
"hasController": [4, "has-controller"],
|
|
28521
|
+
"keyboardClose": [4, "keyboard-close"],
|
|
28522
|
+
"enterAnimation": [16],
|
|
28523
|
+
"leaveAnimation": [16],
|
|
28524
|
+
"buttons": [16],
|
|
28525
|
+
"columns": [16],
|
|
28526
|
+
"cssClass": [1, "css-class"],
|
|
28527
|
+
"duration": [2],
|
|
28528
|
+
"showBackdrop": [4, "show-backdrop"],
|
|
28529
|
+
"backdropDismiss": [4, "backdrop-dismiss"],
|
|
28530
|
+
"animated": [4],
|
|
28531
|
+
"htmlAttributes": [16],
|
|
28532
|
+
"isOpen": [4, "is-open"],
|
|
28533
|
+
"trigger": [1],
|
|
28534
|
+
"presented": [32],
|
|
28535
|
+
"present": [64],
|
|
28536
|
+
"dismiss": [64],
|
|
28537
|
+
"onDidDismiss": [64],
|
|
28538
|
+
"onWillDismiss": [64],
|
|
28539
|
+
"getColumn": [64]
|
|
28540
|
+
},
|
|
28541
|
+
"$listeners$": undefined,
|
|
28542
|
+
"$lazyBundleId$": "-",
|
|
28543
|
+
"$attrsToReflect$": []
|
|
28544
|
+
}; }
|
|
28278
28545
|
}
|
|
28546
|
+
const buttonWrapperClass = (button) => {
|
|
28547
|
+
return {
|
|
28548
|
+
[`picker-toolbar-${button.role}`]: button.role !== undefined,
|
|
28549
|
+
'picker-toolbar-button': true,
|
|
28550
|
+
};
|
|
28551
|
+
};
|
|
28552
|
+
const buttonClass$1 = (button) => {
|
|
28553
|
+
return Object.assign({ 'picker-button': true, 'ion-activatable': true }, getClassMap(button.cssClass));
|
|
28554
|
+
};
|
|
28279
28555
|
|
|
28280
28556
|
const pickerColumnCss = () => `:host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{left:0;right:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}`;
|
|
28281
28557
|
|
|
@@ -28862,6 +29138,371 @@ class PickerColumn {
|
|
|
28862
29138
|
}
|
|
28863
29139
|
const PICKER_ITEM_ACTIVE_CLASS = 'option-active';
|
|
28864
29140
|
|
|
29141
|
+
const pickerColumnIosCss = () => `.picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}`;
|
|
29142
|
+
|
|
29143
|
+
const pickerColumnMdCss = () => `.picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #0054e9)}`;
|
|
29144
|
+
|
|
29145
|
+
/**
|
|
29146
|
+
* @internal
|
|
29147
|
+
*/
|
|
29148
|
+
class PickerColumnCmp {
|
|
29149
|
+
constructor(hostRef) {
|
|
29150
|
+
registerInstance(this, hostRef);
|
|
29151
|
+
this.ionPickerColChange = createEvent(this, "ionPickerColChange", 7);
|
|
29152
|
+
this.optHeight = 0;
|
|
29153
|
+
this.rotateFactor = 0;
|
|
29154
|
+
this.scaleFactor = 1;
|
|
29155
|
+
this.velocity = 0;
|
|
29156
|
+
this.y = 0;
|
|
29157
|
+
this.noAnimate = true;
|
|
29158
|
+
// `colDidChange` is a flag that gets set when the column is changed
|
|
29159
|
+
// dynamically. When this flag is set, the column will refresh
|
|
29160
|
+
// after the component re-renders to incorporate the new column data.
|
|
29161
|
+
// This is necessary because `this.refresh` queries for the option elements,
|
|
29162
|
+
// so it needs to wait for the latest elements to be available in the DOM.
|
|
29163
|
+
// Ex: column is created with 3 options. User updates the column data
|
|
29164
|
+
// to have 5 options. The column will still think it only has 3 options.
|
|
29165
|
+
this.colDidChange = false;
|
|
29166
|
+
}
|
|
29167
|
+
colChanged() {
|
|
29168
|
+
this.colDidChange = true;
|
|
29169
|
+
}
|
|
29170
|
+
async connectedCallback() {
|
|
29171
|
+
let pickerRotateFactor = 0;
|
|
29172
|
+
let pickerScaleFactor = 0.81;
|
|
29173
|
+
const mode = getIonMode$1(this);
|
|
29174
|
+
if (mode === 'ios') {
|
|
29175
|
+
pickerRotateFactor = -0.46;
|
|
29176
|
+
pickerScaleFactor = 1;
|
|
29177
|
+
}
|
|
29178
|
+
this.rotateFactor = pickerRotateFactor;
|
|
29179
|
+
this.scaleFactor = pickerScaleFactor;
|
|
29180
|
+
this.gesture = (await Promise.resolve().then(function () { return index; })).createGesture({
|
|
29181
|
+
el: this.el,
|
|
29182
|
+
gestureName: 'picker-swipe',
|
|
29183
|
+
gesturePriority: 100,
|
|
29184
|
+
threshold: 0,
|
|
29185
|
+
passive: false,
|
|
29186
|
+
onStart: (ev) => this.onStart(ev),
|
|
29187
|
+
onMove: (ev) => this.onMove(ev),
|
|
29188
|
+
onEnd: (ev) => this.onEnd(ev),
|
|
29189
|
+
});
|
|
29190
|
+
this.gesture.enable();
|
|
29191
|
+
// Options have not been initialized yet
|
|
29192
|
+
// Animation must be disabled through the `noAnimate` flag
|
|
29193
|
+
// Otherwise, the options will render
|
|
29194
|
+
// at the top of the column and transition down
|
|
29195
|
+
this.tmrId = setTimeout(() => {
|
|
29196
|
+
this.noAnimate = false;
|
|
29197
|
+
// After initialization, `refresh()` will be called
|
|
29198
|
+
// At this point, animation will be enabled. The options will
|
|
29199
|
+
// animate as they are being selected.
|
|
29200
|
+
this.refresh(true);
|
|
29201
|
+
}, 250);
|
|
29202
|
+
}
|
|
29203
|
+
componentDidLoad() {
|
|
29204
|
+
this.onDomChange();
|
|
29205
|
+
}
|
|
29206
|
+
componentDidUpdate() {
|
|
29207
|
+
// Options may have changed since last update.
|
|
29208
|
+
if (this.colDidChange) {
|
|
29209
|
+
// Animation must be disabled through the `onDomChange` parameter.
|
|
29210
|
+
// Otherwise, the recently added options will render
|
|
29211
|
+
// at the top of the column and transition down
|
|
29212
|
+
this.onDomChange(true, false);
|
|
29213
|
+
this.colDidChange = false;
|
|
29214
|
+
}
|
|
29215
|
+
}
|
|
29216
|
+
disconnectedCallback() {
|
|
29217
|
+
if (this.rafId !== undefined)
|
|
29218
|
+
cancelAnimationFrame(this.rafId);
|
|
29219
|
+
if (this.tmrId)
|
|
29220
|
+
clearTimeout(this.tmrId);
|
|
29221
|
+
if (this.gesture) {
|
|
29222
|
+
this.gesture.destroy();
|
|
29223
|
+
this.gesture = undefined;
|
|
29224
|
+
}
|
|
29225
|
+
}
|
|
29226
|
+
emitColChange() {
|
|
29227
|
+
this.ionPickerColChange.emit(this.col);
|
|
29228
|
+
}
|
|
29229
|
+
setSelected(selectedIndex, duration) {
|
|
29230
|
+
// if there is a selected index, then figure out it's y position
|
|
29231
|
+
// if there isn't a selected index, then just use the top y position
|
|
29232
|
+
const y = selectedIndex > -1 ? -(selectedIndex * this.optHeight) : 0;
|
|
29233
|
+
this.velocity = 0;
|
|
29234
|
+
// set what y position we're at
|
|
29235
|
+
if (this.rafId !== undefined)
|
|
29236
|
+
cancelAnimationFrame(this.rafId);
|
|
29237
|
+
this.update(y, duration, true);
|
|
29238
|
+
this.emitColChange();
|
|
29239
|
+
}
|
|
29240
|
+
update(y, duration, saveY) {
|
|
29241
|
+
if (!this.optsEl) {
|
|
29242
|
+
return;
|
|
29243
|
+
}
|
|
29244
|
+
// ensure we've got a good round number :)
|
|
29245
|
+
let translateY = 0;
|
|
29246
|
+
let translateZ = 0;
|
|
29247
|
+
const { col, rotateFactor } = this;
|
|
29248
|
+
const prevSelected = col.selectedIndex;
|
|
29249
|
+
const selectedIndex = (col.selectedIndex = this.indexForY(-y));
|
|
29250
|
+
const durationStr = duration === 0 ? '' : duration + 'ms';
|
|
29251
|
+
const scaleStr = `scale(${this.scaleFactor})`;
|
|
29252
|
+
const children = this.optsEl.children;
|
|
29253
|
+
for (let i = 0; i < children.length; i++) {
|
|
29254
|
+
const button = children[i];
|
|
29255
|
+
const opt = col.options[i];
|
|
29256
|
+
const optOffset = i * this.optHeight + y;
|
|
29257
|
+
let transform = '';
|
|
29258
|
+
if (rotateFactor !== 0) {
|
|
29259
|
+
const rotateX = optOffset * rotateFactor;
|
|
29260
|
+
if (Math.abs(rotateX) <= 90) {
|
|
29261
|
+
translateY = 0;
|
|
29262
|
+
translateZ = 90;
|
|
29263
|
+
transform = `rotateX(${rotateX}deg) `;
|
|
29264
|
+
}
|
|
29265
|
+
else {
|
|
29266
|
+
translateY = -9999;
|
|
29267
|
+
}
|
|
29268
|
+
}
|
|
29269
|
+
else {
|
|
29270
|
+
translateZ = 0;
|
|
29271
|
+
translateY = optOffset;
|
|
29272
|
+
}
|
|
29273
|
+
const selected = selectedIndex === i;
|
|
29274
|
+
transform += `translate3d(0px,${translateY}px,${translateZ}px) `;
|
|
29275
|
+
if (this.scaleFactor !== 1 && !selected) {
|
|
29276
|
+
transform += scaleStr;
|
|
29277
|
+
}
|
|
29278
|
+
// Update transition duration
|
|
29279
|
+
if (this.noAnimate) {
|
|
29280
|
+
opt.duration = 0;
|
|
29281
|
+
button.style.transitionDuration = '';
|
|
29282
|
+
}
|
|
29283
|
+
else if (duration !== opt.duration) {
|
|
29284
|
+
opt.duration = duration;
|
|
29285
|
+
button.style.transitionDuration = durationStr;
|
|
29286
|
+
}
|
|
29287
|
+
// Update transform
|
|
29288
|
+
if (transform !== opt.transform) {
|
|
29289
|
+
opt.transform = transform;
|
|
29290
|
+
}
|
|
29291
|
+
button.style.transform = transform;
|
|
29292
|
+
/**
|
|
29293
|
+
* Ensure that the select column
|
|
29294
|
+
* item has the selected class
|
|
29295
|
+
*/
|
|
29296
|
+
opt.selected = selected;
|
|
29297
|
+
if (selected) {
|
|
29298
|
+
button.classList.add(PICKER_OPT_SELECTED);
|
|
29299
|
+
}
|
|
29300
|
+
else {
|
|
29301
|
+
button.classList.remove(PICKER_OPT_SELECTED);
|
|
29302
|
+
}
|
|
29303
|
+
}
|
|
29304
|
+
this.col.prevSelected = prevSelected;
|
|
29305
|
+
if (saveY) {
|
|
29306
|
+
this.y = y;
|
|
29307
|
+
}
|
|
29308
|
+
if (this.lastIndex !== selectedIndex) {
|
|
29309
|
+
// have not set a last index yet
|
|
29310
|
+
hapticSelectionChanged();
|
|
29311
|
+
this.lastIndex = selectedIndex;
|
|
29312
|
+
}
|
|
29313
|
+
}
|
|
29314
|
+
decelerate() {
|
|
29315
|
+
if (this.velocity !== 0) {
|
|
29316
|
+
// still decelerating
|
|
29317
|
+
this.velocity *= DECELERATION_FRICTION;
|
|
29318
|
+
// do not let it go slower than a velocity of 1
|
|
29319
|
+
this.velocity = this.velocity > 0 ? Math.max(this.velocity, 1) : Math.min(this.velocity, -1);
|
|
29320
|
+
let y = this.y + this.velocity;
|
|
29321
|
+
if (y > this.minY) {
|
|
29322
|
+
// whoops, it's trying to scroll up farther than the options we have!
|
|
29323
|
+
y = this.minY;
|
|
29324
|
+
this.velocity = 0;
|
|
29325
|
+
}
|
|
29326
|
+
else if (y < this.maxY) {
|
|
29327
|
+
// gahh, it's trying to scroll down farther than we can!
|
|
29328
|
+
y = this.maxY;
|
|
29329
|
+
this.velocity = 0;
|
|
29330
|
+
}
|
|
29331
|
+
this.update(y, 0, true);
|
|
29332
|
+
const notLockedIn = Math.round(y) % this.optHeight !== 0 || Math.abs(this.velocity) > 1;
|
|
29333
|
+
if (notLockedIn) {
|
|
29334
|
+
// isn't locked in yet, keep decelerating until it is
|
|
29335
|
+
this.rafId = requestAnimationFrame(() => this.decelerate());
|
|
29336
|
+
}
|
|
29337
|
+
else {
|
|
29338
|
+
this.velocity = 0;
|
|
29339
|
+
this.emitColChange();
|
|
29340
|
+
hapticSelectionEnd();
|
|
29341
|
+
}
|
|
29342
|
+
}
|
|
29343
|
+
else if (this.y % this.optHeight !== 0) {
|
|
29344
|
+
// needs to still get locked into a position so options line up
|
|
29345
|
+
const currentPos = Math.abs(this.y % this.optHeight);
|
|
29346
|
+
// create a velocity in the direction it needs to scroll
|
|
29347
|
+
this.velocity = currentPos > this.optHeight / 2 ? 1 : -1;
|
|
29348
|
+
this.decelerate();
|
|
29349
|
+
}
|
|
29350
|
+
}
|
|
29351
|
+
indexForY(y) {
|
|
29352
|
+
return Math.min(Math.max(Math.abs(Math.round(y / this.optHeight)), 0), this.col.options.length - 1);
|
|
29353
|
+
}
|
|
29354
|
+
onStart(detail) {
|
|
29355
|
+
// We have to prevent default in order to block scrolling under the picker
|
|
29356
|
+
// but we DO NOT have to stop propagation, since we still want
|
|
29357
|
+
// some "click" events to capture
|
|
29358
|
+
if (detail.event.cancelable) {
|
|
29359
|
+
detail.event.preventDefault();
|
|
29360
|
+
}
|
|
29361
|
+
detail.event.stopPropagation();
|
|
29362
|
+
hapticSelectionStart();
|
|
29363
|
+
// reset everything
|
|
29364
|
+
if (this.rafId !== undefined)
|
|
29365
|
+
cancelAnimationFrame(this.rafId);
|
|
29366
|
+
const options = this.col.options;
|
|
29367
|
+
let minY = options.length - 1;
|
|
29368
|
+
let maxY = 0;
|
|
29369
|
+
for (let i = 0; i < options.length; i++) {
|
|
29370
|
+
if (!options[i].disabled) {
|
|
29371
|
+
minY = Math.min(minY, i);
|
|
29372
|
+
maxY = Math.max(maxY, i);
|
|
29373
|
+
}
|
|
29374
|
+
}
|
|
29375
|
+
this.minY = -(minY * this.optHeight);
|
|
29376
|
+
this.maxY = -(maxY * this.optHeight);
|
|
29377
|
+
}
|
|
29378
|
+
onMove(detail) {
|
|
29379
|
+
if (detail.event.cancelable) {
|
|
29380
|
+
detail.event.preventDefault();
|
|
29381
|
+
}
|
|
29382
|
+
detail.event.stopPropagation();
|
|
29383
|
+
// update the scroll position relative to pointer start position
|
|
29384
|
+
let y = this.y + detail.deltaY;
|
|
29385
|
+
if (y > this.minY) {
|
|
29386
|
+
// scrolling up higher than scroll area
|
|
29387
|
+
y = Math.pow(y, 0.8);
|
|
29388
|
+
this.bounceFrom = y;
|
|
29389
|
+
}
|
|
29390
|
+
else if (y < this.maxY) {
|
|
29391
|
+
// scrolling down below scroll area
|
|
29392
|
+
y += Math.pow(this.maxY - y, 0.9);
|
|
29393
|
+
this.bounceFrom = y;
|
|
29394
|
+
}
|
|
29395
|
+
else {
|
|
29396
|
+
this.bounceFrom = 0;
|
|
29397
|
+
}
|
|
29398
|
+
this.update(y, 0, false);
|
|
29399
|
+
}
|
|
29400
|
+
onEnd(detail) {
|
|
29401
|
+
if (this.bounceFrom > 0) {
|
|
29402
|
+
// bounce back up
|
|
29403
|
+
this.update(this.minY, 100, true);
|
|
29404
|
+
this.emitColChange();
|
|
29405
|
+
return;
|
|
29406
|
+
}
|
|
29407
|
+
else if (this.bounceFrom < 0) {
|
|
29408
|
+
// bounce back down
|
|
29409
|
+
this.update(this.maxY, 100, true);
|
|
29410
|
+
this.emitColChange();
|
|
29411
|
+
return;
|
|
29412
|
+
}
|
|
29413
|
+
this.velocity = clamp(-MAX_PICKER_SPEED, detail.velocityY * 23, MAX_PICKER_SPEED);
|
|
29414
|
+
if (this.velocity === 0 && detail.deltaY === 0) {
|
|
29415
|
+
const opt = detail.event.target.closest('.picker-opt');
|
|
29416
|
+
if (opt === null || opt === void 0 ? void 0 : opt.hasAttribute('opt-index')) {
|
|
29417
|
+
this.setSelected(parseInt(opt.getAttribute('opt-index'), 10), TRANSITION_DURATION);
|
|
29418
|
+
}
|
|
29419
|
+
}
|
|
29420
|
+
else {
|
|
29421
|
+
this.y += detail.deltaY;
|
|
29422
|
+
if (Math.abs(detail.velocityY) < 0.05) {
|
|
29423
|
+
const isScrollingUp = detail.deltaY > 0;
|
|
29424
|
+
const optHeightFraction = (Math.abs(this.y) % this.optHeight) / this.optHeight;
|
|
29425
|
+
if (isScrollingUp && optHeightFraction > 0.5) {
|
|
29426
|
+
this.velocity = Math.abs(this.velocity) * -1;
|
|
29427
|
+
}
|
|
29428
|
+
else if (!isScrollingUp && optHeightFraction <= 0.5) {
|
|
29429
|
+
this.velocity = Math.abs(this.velocity);
|
|
29430
|
+
}
|
|
29431
|
+
}
|
|
29432
|
+
this.decelerate();
|
|
29433
|
+
}
|
|
29434
|
+
}
|
|
29435
|
+
refresh(forceRefresh, animated) {
|
|
29436
|
+
var _a;
|
|
29437
|
+
let min = this.col.options.length - 1;
|
|
29438
|
+
let max = 0;
|
|
29439
|
+
const options = this.col.options;
|
|
29440
|
+
for (let i = 0; i < options.length; i++) {
|
|
29441
|
+
if (!options[i].disabled) {
|
|
29442
|
+
min = Math.min(min, i);
|
|
29443
|
+
max = Math.max(max, i);
|
|
29444
|
+
}
|
|
29445
|
+
}
|
|
29446
|
+
/**
|
|
29447
|
+
* Only update selected value if column has a
|
|
29448
|
+
* velocity of 0. If it does not, then the
|
|
29449
|
+
* column is animating might land on
|
|
29450
|
+
* a value different than the value at
|
|
29451
|
+
* selectedIndex
|
|
29452
|
+
*/
|
|
29453
|
+
if (this.velocity !== 0) {
|
|
29454
|
+
return;
|
|
29455
|
+
}
|
|
29456
|
+
const selectedIndex = clamp(min, (_a = this.col.selectedIndex) !== null && _a !== void 0 ? _a : 0, max);
|
|
29457
|
+
if (this.col.prevSelected !== selectedIndex || forceRefresh) {
|
|
29458
|
+
const y = selectedIndex * this.optHeight * -1;
|
|
29459
|
+
const duration = animated ? TRANSITION_DURATION : 0;
|
|
29460
|
+
this.velocity = 0;
|
|
29461
|
+
this.update(y, duration, true);
|
|
29462
|
+
}
|
|
29463
|
+
}
|
|
29464
|
+
onDomChange(forceRefresh, animated) {
|
|
29465
|
+
const colEl = this.optsEl;
|
|
29466
|
+
if (colEl) {
|
|
29467
|
+
// DOM READ
|
|
29468
|
+
// We perfom a DOM read over a rendered item, this needs to happen after the first render or after the column has changed
|
|
29469
|
+
this.optHeight = colEl.firstElementChild ? colEl.firstElementChild.clientHeight : 0;
|
|
29470
|
+
}
|
|
29471
|
+
this.refresh(forceRefresh, animated);
|
|
29472
|
+
}
|
|
29473
|
+
render() {
|
|
29474
|
+
const col = this.col;
|
|
29475
|
+
const mode = getIonMode$1(this);
|
|
29476
|
+
return (hAsync(Host, { key: '86125e95f18837dfd021db01777d72a1562d8ee3', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
29477
|
+
'max-width': this.col.columnWidth,
|
|
29478
|
+
} }, col.prefix && (hAsync("div", { key: 'b0f3d39e0bd128781066ffefb7a1e40d12a9e76d', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), hAsync("div", { key: '0b106ac4d56916eaaa7f09d1b68348b3754b7bba', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (hAsync("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (hAsync("div", { key: '00ff2f9dbb4561787e5a5223327c6a2a33f8362e', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
29479
|
+
}
|
|
29480
|
+
get el() { return getElement(this); }
|
|
29481
|
+
static get watchers() { return {
|
|
29482
|
+
"col": [{
|
|
29483
|
+
"colChanged": 0
|
|
29484
|
+
}]
|
|
29485
|
+
}; }
|
|
29486
|
+
static get style() { return {
|
|
29487
|
+
ios: pickerColumnIosCss(),
|
|
29488
|
+
md: pickerColumnMdCss()
|
|
29489
|
+
}; }
|
|
29490
|
+
static get cmpMeta() { return {
|
|
29491
|
+
"$flags$": 32,
|
|
29492
|
+
"$tagName$": "ion-picker-legacy-column",
|
|
29493
|
+
"$members$": {
|
|
29494
|
+
"col": [16]
|
|
29495
|
+
},
|
|
29496
|
+
"$listeners$": undefined,
|
|
29497
|
+
"$lazyBundleId$": "-",
|
|
29498
|
+
"$attrsToReflect$": []
|
|
29499
|
+
}; }
|
|
29500
|
+
}
|
|
29501
|
+
const PICKER_OPT_SELECTED = 'picker-opt-selected';
|
|
29502
|
+
const DECELERATION_FRICTION = 0.97;
|
|
29503
|
+
const MAX_PICKER_SPEED = 90;
|
|
29504
|
+
const TRANSITION_DURATION = 150;
|
|
29505
|
+
|
|
28865
29506
|
const pickerColumnOptionIosCss = () => `.picker-column-option-button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) .picker-column-option-button{cursor:default}`;
|
|
28866
29507
|
|
|
28867
29508
|
const pickerColumnOptionMdCss = () => `.picker-column-option-button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) .picker-column-option-button{cursor:default}:host(.option-active),:host([part~=active]){color:var(--ion-color-base)}`;
|
|
@@ -30283,10 +30924,6 @@ class Popover {
|
|
|
30283
30924
|
this.headerResizeObserver.disconnect();
|
|
30284
30925
|
this.headerResizeObserver = undefined;
|
|
30285
30926
|
}
|
|
30286
|
-
// Clean up aria-hidden if removed without dismiss() being called
|
|
30287
|
-
if (this.presented) {
|
|
30288
|
-
cleanupRootFocusTrapAccessibility();
|
|
30289
|
-
}
|
|
30290
30927
|
}
|
|
30291
30928
|
componentWillLoad() {
|
|
30292
30929
|
var _a, _b;
|
|
@@ -30525,9 +31162,9 @@ class Popover {
|
|
|
30525
31162
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
30526
31163
|
const desktop = isPlatform('desktop');
|
|
30527
31164
|
const enableArrow = arrow && !parentPopover;
|
|
30528
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
31165
|
+
return (hAsync(Host, Object.assign({ key: '2edd8333c630efbce59071f8a383e4326e928dbc', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
30529
31166
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
30530
|
-
}, 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: '
|
|
31167
|
+
}, 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: 'aac4e68b08197534375e8ea3f8c9ea0c10ab2af4', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: 'b7f4ebf57d4148b32856b0075d286f454be8de5d', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '607d94c28d73e8e957175a7c0f6e8a99ec4dcd53', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '4366a5a5de550c09895e923f345583508e1ec30c', class: "popover-content", part: "content" }, hAsync("slot", { key: 'eb7886fbc99c15b667b7d825d24f1c12d9380f03' })))));
|
|
30531
31168
|
}
|
|
30532
31169
|
get el() { return getElement(this); }
|
|
30533
31170
|
static get watchers() { return {
|
|
@@ -30638,7 +31275,7 @@ class ProgressBar {
|
|
|
30638
31275
|
const mode = getIonMode$1(this);
|
|
30639
31276
|
// If the progress is displayed as a solid bar.
|
|
30640
31277
|
const progressSolid = buffer === 1;
|
|
30641
|
-
return (hAsync(Host, { key: '
|
|
31278
|
+
return (hAsync(Host, { key: 'c859e48f3d24a458239e36d925e5dc003ed07c6b', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
30642
31279
|
[mode]: true,
|
|
30643
31280
|
[`progress-bar-${type}`]: true,
|
|
30644
31281
|
'progress-paused': paused,
|
|
@@ -30823,7 +31460,7 @@ class Radio {
|
|
|
30823
31460
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
30824
31461
|
const mode = getIonMode$1(this);
|
|
30825
31462
|
const inItem = hostContext('ion-item', el);
|
|
30826
|
-
return (hAsync(Host, { key: '
|
|
31463
|
+
return (hAsync(Host, { key: 'af5dc59ed528150872e907ed1036e3e2decba939', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses$1(color, {
|
|
30827
31464
|
[mode]: true,
|
|
30828
31465
|
'in-item': inItem,
|
|
30829
31466
|
'radio-checked': checked,
|
|
@@ -30834,10 +31471,10 @@ class Radio {
|
|
|
30834
31471
|
// Focus and active styling should not apply when the radio is in an item
|
|
30835
31472
|
'ion-activatable': !inItem,
|
|
30836
31473
|
'ion-focusable': !inItem,
|
|
30837
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '
|
|
31474
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '1312aba3259a87fe23a6911cdfa477e309469c8b', class: "radio-wrapper" }, hAsync("div", { key: 'b342aa27e240a300836d2a135658d346b95daf09', class: {
|
|
30838
31475
|
'label-text-wrapper': true,
|
|
30839
31476
|
'label-text-wrapper-hidden': !hasLabel,
|
|
30840
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
31477
|
+
}, part: "label" }, hAsync("slot", { key: '0a4613d29aa783d1882cf889377f7e4fd4fea51d' })), hAsync("div", { key: '191faea79dc4cd8befc4b873f5bd9f5af8ca2acc', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
30841
31478
|
}
|
|
30842
31479
|
get el() { return getElement(this); }
|
|
30843
31480
|
static get watchers() { return {
|
|
@@ -30856,7 +31493,7 @@ class Radio {
|
|
|
30856
31493
|
"color": [513],
|
|
30857
31494
|
"name": [1],
|
|
30858
31495
|
"disabled": [4],
|
|
30859
|
-
"value": [
|
|
31496
|
+
"value": [8],
|
|
30860
31497
|
"labelPlacement": [1, "label-placement"],
|
|
30861
31498
|
"justify": [1],
|
|
30862
31499
|
"alignment": [1],
|
|
@@ -30867,7 +31504,7 @@ class Radio {
|
|
|
30867
31504
|
},
|
|
30868
31505
|
"$listeners$": undefined,
|
|
30869
31506
|
"$lazyBundleId$": "-",
|
|
30870
|
-
"$attrsToReflect$": [["color", "color"]
|
|
31507
|
+
"$attrsToReflect$": [["color", "color"]]
|
|
30871
31508
|
}; }
|
|
30872
31509
|
}
|
|
30873
31510
|
let radioButtonIds = 0;
|
|
@@ -31932,7 +32569,7 @@ class Range {
|
|
|
31932
32569
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
31933
32570
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
31934
32571
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
31935
|
-
return (hAsync(Host, { key: '
|
|
32572
|
+
return (hAsync(Host, { key: 'f8063d1234fb113fe55a7902845dd4b4da8b1edb', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
31936
32573
|
[mode]: true,
|
|
31937
32574
|
'in-item': inItem,
|
|
31938
32575
|
'range-disabled': disabled,
|
|
@@ -31946,10 +32583,10 @@ class Range {
|
|
|
31946
32583
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
31947
32584
|
'range-value-min': valueAtMin,
|
|
31948
32585
|
'range-value-max': valueAtMax,
|
|
31949
|
-
}) }, hAsync("label", { key: '
|
|
32586
|
+
}) }, hAsync("label", { key: 'beead65ab01e3b18e4be59c0ee8ac6ebf32aad7c', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: '03633c689d9d2e4c50a2131bcd560329df49e314', class: {
|
|
31950
32587
|
'label-text-wrapper': true,
|
|
31951
32588
|
'label-text-wrapper-hidden': !hasLabel,
|
|
31952
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
32589
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: 'c066804263ab6ae7393f8dcc51184b7198844ffa', class: "native-wrapper" }, hAsync("slot", { key: '7e8ea224d72b3e965dd948bee7e45c1a096b6899', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: '21f242f6f60ff3adce6a2d90b2d4dac1ceaf6624', name: "end" })))));
|
|
31953
32590
|
}
|
|
31954
32591
|
get el() { return getElement(this); }
|
|
31955
32592
|
static get watchers() { return {
|
|
@@ -33020,7 +33657,7 @@ class Refresher {
|
|
|
33020
33657
|
}
|
|
33021
33658
|
render() {
|
|
33022
33659
|
const mode = getIonMode$1(this);
|
|
33023
|
-
return (hAsync(Host, { key: '
|
|
33660
|
+
return (hAsync(Host, { key: '80fa313b0d77161680836bdd6aa334d02c549b41', slot: "fixed", class: {
|
|
33024
33661
|
[mode]: true,
|
|
33025
33662
|
// Used internally for styling
|
|
33026
33663
|
[`refresher-${mode}`]: true,
|
|
@@ -33246,7 +33883,7 @@ class RefresherContent {
|
|
|
33246
33883
|
const pullingIcon = this.pullingIcon;
|
|
33247
33884
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
33248
33885
|
const mode = getIonMode$1(this);
|
|
33249
|
-
return (hAsync(Host, { key: '
|
|
33886
|
+
return (hAsync(Host, { key: '4add42b9fdfded359d1b054d04c2c6ff48e028c8', class: mode }, hAsync("div", { key: '45d4e4e0adfed7f96dd1849767aa2cde947de044', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (hAsync("div", { key: '6bd6c8ef5bf6e10699eec3bd8646431bfe1077a0', class: "refresher-pulling-icon" }, hAsync("div", { key: '852d20414da53352c8e58bc627e0fda38eff97cb', class: "spinner-arrow-container" }, hAsync("ion-spinner", { key: '0dde3578a80cc4b77a07c4d1db1af80c7eb10c27', name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (hAsync("div", { key: 'c71dbfcf416a19c30fed38f722ebf0358c2181dd', class: "arrow-container" }, hAsync("ion-icon", { key: 'fa7c2cf624e7a9c41964e66cabc88c594da6d1fd', icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (hAsync("div", { key: '3dd68c9968b421c379d1c4349ba619ee0a189c6d', class: "refresher-pulling-icon" }, hAsync("ion-icon", { key: 'f83bceceae4fa8245f91939fb6db589a595e975b', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), hAsync("div", { key: '98e22ceb0f7883e871f815f6199f5cb313e2e086', class: "refresher-refreshing" }, this.refreshingSpinner && (hAsync("div", { key: 'faabe8a9b61c02a00994ef978bb82b9ba4537214', class: "refresher-refreshing-icon" }, hAsync("ion-spinner", { key: '029a0c073ee1a07f01211e12ba2abc985cf21ed7', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
33250
33887
|
}
|
|
33251
33888
|
get el() { return getElement(this); }
|
|
33252
33889
|
static get cmpMeta() { return {
|
|
@@ -33287,7 +33924,7 @@ class Reorder {
|
|
|
33287
33924
|
render() {
|
|
33288
33925
|
const mode = getIonMode$1(this);
|
|
33289
33926
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
33290
|
-
return (hAsync(Host, { key: '
|
|
33927
|
+
return (hAsync(Host, { key: 'b869db61ca6393cf1476f2111a66b387b567c6d1', class: mode }, hAsync("slot", { key: 'a78edd1776835282b8b5c841377018f36c83296c' }, hAsync("ion-icon", { key: '7fb067c47bbb9a7258e5063f028282cc097d0f94', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
33291
33928
|
}
|
|
33292
33929
|
get el() { return getElement(this); }
|
|
33293
33930
|
static get style() { return {
|
|
@@ -33558,7 +34195,7 @@ class ReorderGroup {
|
|
|
33558
34195
|
}
|
|
33559
34196
|
render() {
|
|
33560
34197
|
const mode = getIonMode$1(this);
|
|
33561
|
-
return (hAsync(Host, { key: '
|
|
34198
|
+
return (hAsync(Host, { key: '9527bbdedaab63d31f562c874a7332ea60c4b47b', class: {
|
|
33562
34199
|
[mode]: true,
|
|
33563
34200
|
'reorder-enabled': !this.disabled,
|
|
33564
34201
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -33676,7 +34313,7 @@ class RippleEffect {
|
|
|
33676
34313
|
}
|
|
33677
34314
|
render() {
|
|
33678
34315
|
const mode = getIonMode$1(this);
|
|
33679
|
-
return (hAsync(Host, { key: '
|
|
34316
|
+
return (hAsync(Host, { key: '3b59cbb44741569a7350f9638b4392add673b6f1', role: "presentation", class: {
|
|
33680
34317
|
[mode]: true,
|
|
33681
34318
|
unbounded: this.unbounded,
|
|
33682
34319
|
} }));
|
|
@@ -34810,10 +35447,10 @@ class RouterLink {
|
|
|
34810
35447
|
rel: this.rel,
|
|
34811
35448
|
target: this.target,
|
|
34812
35449
|
};
|
|
34813
|
-
return (hAsync(Host, { key: '
|
|
35450
|
+
return (hAsync(Host, { key: '8372835161d507c7b821b7536c55f912eb6ce704', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
34814
35451
|
[mode]: true,
|
|
34815
35452
|
'ion-activatable': true,
|
|
34816
|
-
}) }, hAsync("a", Object.assign({ key: '
|
|
35453
|
+
}) }, hAsync("a", Object.assign({ key: '315966e14a17760f3f64197e8315200039787897' }, attrs), hAsync("slot", { key: '95fc1697b884225e85e647dddcaa8f4af8b9a979' }))));
|
|
34817
35454
|
}
|
|
34818
35455
|
static get style() { return routerLinkCss(); }
|
|
34819
35456
|
static get cmpMeta() { return {
|
|
@@ -34852,11 +35489,10 @@ class RouterOutlet {
|
|
|
34852
35489
|
*/
|
|
34853
35490
|
this.animated = true;
|
|
34854
35491
|
}
|
|
34855
|
-
swipeGestureChanged() {
|
|
34856
|
-
this.updateGestureEnabled();
|
|
34857
|
-
}
|
|
34858
35492
|
swipeHandlerChanged() {
|
|
34859
|
-
this.
|
|
35493
|
+
if (this.gesture) {
|
|
35494
|
+
this.gesture.enable(this.swipeHandler !== undefined);
|
|
35495
|
+
}
|
|
34860
35496
|
}
|
|
34861
35497
|
async connectedCallback() {
|
|
34862
35498
|
const onStart = () => {
|
|
@@ -34896,21 +35532,11 @@ class RouterOutlet {
|
|
|
34896
35532
|
this.gestureOrAnimationInProgress = false;
|
|
34897
35533
|
}
|
|
34898
35534
|
});
|
|
34899
|
-
|
|
34900
|
-
this.swipeGesture = config.getBoolean('swipeBackEnabled', this.mode === 'ios');
|
|
34901
|
-
}
|
|
34902
|
-
else {
|
|
34903
|
-
this.updateGestureEnabled();
|
|
34904
|
-
}
|
|
35535
|
+
this.swipeHandlerChanged();
|
|
34905
35536
|
}
|
|
34906
35537
|
componentWillLoad() {
|
|
34907
35538
|
this.ionNavWillLoad.emit();
|
|
34908
35539
|
}
|
|
34909
|
-
updateGestureEnabled() {
|
|
34910
|
-
if (this.gesture) {
|
|
34911
|
-
this.gesture.enable(this.swipeHandler !== undefined && this.swipeGesture === true);
|
|
34912
|
-
}
|
|
34913
|
-
}
|
|
34914
35540
|
disconnectedCallback() {
|
|
34915
35541
|
if (this.gesture) {
|
|
34916
35542
|
this.gesture.destroy();
|
|
@@ -35021,13 +35647,10 @@ class RouterOutlet {
|
|
|
35021
35647
|
return true;
|
|
35022
35648
|
}
|
|
35023
35649
|
render() {
|
|
35024
|
-
return hAsync("slot", { key: '
|
|
35650
|
+
return hAsync("slot", { key: '386c41745b61daba161cf75063da97fe29ba36cb' });
|
|
35025
35651
|
}
|
|
35026
35652
|
get el() { return getElement(this); }
|
|
35027
35653
|
static get watchers() { return {
|
|
35028
|
-
"swipeGesture": [{
|
|
35029
|
-
"swipeGestureChanged": 0
|
|
35030
|
-
}],
|
|
35031
35654
|
"swipeHandler": [{
|
|
35032
35655
|
"swipeHandlerChanged": 0
|
|
35033
35656
|
}]
|
|
@@ -35041,7 +35664,6 @@ class RouterOutlet {
|
|
|
35041
35664
|
"delegate": [16],
|
|
35042
35665
|
"animated": [4],
|
|
35043
35666
|
"animation": [16],
|
|
35044
|
-
"swipeGesture": [1028, "swipe-gesture"],
|
|
35045
35667
|
"swipeHandler": [16],
|
|
35046
35668
|
"commit": [64],
|
|
35047
35669
|
"setRouteId": [64],
|
|
@@ -35060,7 +35682,7 @@ class Row {
|
|
|
35060
35682
|
registerInstance(this, hostRef);
|
|
35061
35683
|
}
|
|
35062
35684
|
render() {
|
|
35063
|
-
return (hAsync(Host, { key: '
|
|
35685
|
+
return (hAsync(Host, { key: '8ba906a8cbea060a79ed658c9bf34906f0c11d38', class: getIonMode$1(this) }, hAsync("slot", { key: 'd1009176f45b588fa52c7d9eb336f3c6d3214bb8' })));
|
|
35064
35686
|
}
|
|
35065
35687
|
static get style() { return rowCss(); }
|
|
35066
35688
|
static get cmpMeta() { return {
|
|
@@ -35112,7 +35734,7 @@ class Searchbar {
|
|
|
35112
35734
|
/**
|
|
35113
35735
|
* Set the input's autocorrect property.
|
|
35114
35736
|
*/
|
|
35115
|
-
this.autocorrect =
|
|
35737
|
+
this.autocorrect = 'off';
|
|
35116
35738
|
/**
|
|
35117
35739
|
* Set the cancel button icon. Only applies to `md` mode.
|
|
35118
35740
|
* Defaults to `arrow-back-sharp`.
|
|
@@ -35317,12 +35939,14 @@ class Searchbar {
|
|
|
35317
35939
|
}, 300);
|
|
35318
35940
|
}
|
|
35319
35941
|
disconnectedCallback() {
|
|
35942
|
+
var _a;
|
|
35320
35943
|
if (this.loadTimeout) {
|
|
35321
35944
|
clearTimeout(this.loadTimeout);
|
|
35322
35945
|
}
|
|
35323
35946
|
if (this.clearTimeout) {
|
|
35324
35947
|
clearTimeout(this.clearTimeout);
|
|
35325
35948
|
}
|
|
35949
|
+
(_a = this.searchIconResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
35326
35950
|
}
|
|
35327
35951
|
emitStyle() {
|
|
35328
35952
|
this.ionStyle.emit({
|
|
@@ -35420,6 +36044,7 @@ class Searchbar {
|
|
|
35420
36044
|
doc.body.appendChild(tempSpan);
|
|
35421
36045
|
// Get the width of the span then remove it
|
|
35422
36046
|
raf(() => {
|
|
36047
|
+
var _a, _b;
|
|
35423
36048
|
const textWidth = tempSpan.offsetWidth;
|
|
35424
36049
|
tempSpan.remove();
|
|
35425
36050
|
// Calculate the input padding
|
|
@@ -35431,7 +36056,25 @@ class Searchbar {
|
|
|
35431
36056
|
* such as Dynamic Type on iOS as well as 8px
|
|
35432
36057
|
* of padding.
|
|
35433
36058
|
*/
|
|
35434
|
-
const
|
|
36059
|
+
const iconWidth = iconEl.clientWidth;
|
|
36060
|
+
/**
|
|
36061
|
+
* Fix for https://github.com/ionic-team/ionic-framework/issues/30434:
|
|
36062
|
+
* iconEl.clientWidth can very briefly be 0 when this is called from componentDidLoad.
|
|
36063
|
+
* If it is zero, set up a ResizeObserver and call this function when it observes a width greater than 0.
|
|
36064
|
+
*/
|
|
36065
|
+
if (iconWidth === 0) {
|
|
36066
|
+
(_a = this.searchIconResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
36067
|
+
this.searchIconResizeObserver = new ResizeObserver((entries) => {
|
|
36068
|
+
var _a;
|
|
36069
|
+
if (entries[0].contentRect.width > 0) {
|
|
36070
|
+
(_a = this.searchIconResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
36071
|
+
this.positionPlaceholder();
|
|
36072
|
+
}
|
|
36073
|
+
});
|
|
36074
|
+
(_b = this.searchIconResizeObserver) === null || _b === void 0 ? void 0 : _b.observe(iconEl);
|
|
36075
|
+
return;
|
|
36076
|
+
}
|
|
36077
|
+
const iconLeft = 'calc(50% - ' + (textWidth / 2 + iconWidth + 8) + 'px)';
|
|
35435
36078
|
// Set the input padding start and icon margin start
|
|
35436
36079
|
if (rtl) {
|
|
35437
36080
|
inputEl.style.paddingRight = inputLeft;
|
|
@@ -35512,8 +36155,8 @@ class Searchbar {
|
|
|
35512
36155
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
35513
36156
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
35514
36157
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
35515
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
35516
|
-
return (hAsync(Host, { key: '
|
|
36158
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '226b7a676b4819cda4062b8334fa8d4c4cee6f1a', "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: '89adb4efa17a78c973bbd5527cfac91d99ceb9bb', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
36159
|
+
return (hAsync(Host, { key: '237dd767403dba3cb3d7de8905996e275669da3b', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
35517
36160
|
[mode]: true,
|
|
35518
36161
|
'searchbar-animated': animated,
|
|
35519
36162
|
'searchbar-disabled': this.disabled,
|
|
@@ -35523,14 +36166,14 @@ class Searchbar {
|
|
|
35523
36166
|
'searchbar-has-focus': this.focused,
|
|
35524
36167
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
35525
36168
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
35526
|
-
}) }, hAsync("div", { key: '
|
|
36169
|
+
}) }, hAsync("div", { key: '5b4bdf7280bea710304b6975e76390fe6ceb7417', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: '01a0820a2cf904aec1c7d84b542ab7918d435632', "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: 'cd64973206b1cc59d221112861733b7ee25f0323', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: '2061fa8449bbc576cf8c5130ea613378ea492944', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
35527
36170
|
/**
|
|
35528
36171
|
* This prevents mobile browsers from
|
|
35529
36172
|
* blurring the input when the clear
|
|
35530
36173
|
* button is activated.
|
|
35531
36174
|
*/
|
|
35532
36175
|
ev.preventDefault();
|
|
35533
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
36176
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '00df6f7742bff70b1b088d544b8c00e962e7216c', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
35534
36177
|
}
|
|
35535
36178
|
get el() { return getElement(this); }
|
|
35536
36179
|
static get watchers() { return {
|
|
@@ -35562,7 +36205,7 @@ class Searchbar {
|
|
|
35562
36205
|
"animated": [4],
|
|
35563
36206
|
"autocapitalize": [1],
|
|
35564
36207
|
"autocomplete": [1],
|
|
35565
|
-
"autocorrect": [
|
|
36208
|
+
"autocorrect": [1],
|
|
35566
36209
|
"cancelButtonIcon": [1, "cancel-button-icon"],
|
|
35567
36210
|
"cancelButtonText": [1, "cancel-button-text"],
|
|
35568
36211
|
"clearIcon": [1, "clear-icon"],
|
|
@@ -36139,14 +36782,14 @@ class Segment {
|
|
|
36139
36782
|
}
|
|
36140
36783
|
render() {
|
|
36141
36784
|
const mode = getIonMode$1(this);
|
|
36142
|
-
return (hAsync(Host, { key: '
|
|
36785
|
+
return (hAsync(Host, { key: 'eda6b7b88b7967b55cf9098c59b655b348a42224', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
36143
36786
|
[mode]: true,
|
|
36144
36787
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
36145
36788
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
36146
36789
|
'segment-activated': this.activated,
|
|
36147
36790
|
'segment-disabled': this.disabled,
|
|
36148
36791
|
'segment-scrollable': this.scrollable,
|
|
36149
|
-
}) }, hAsync("slot", { key: '
|
|
36792
|
+
}) }, hAsync("slot", { key: 'fdb451f235ce59c5bb50c61a13c69160ece2d5df', onSlotchange: this.onSlottedItemsChange })));
|
|
36150
36793
|
}
|
|
36151
36794
|
get el() { return getElement(this); }
|
|
36152
36795
|
static get watchers() { return {
|
|
@@ -36294,7 +36937,7 @@ class SegmentButton {
|
|
|
36294
36937
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
36295
36938
|
const mode = getIonMode$1(this);
|
|
36296
36939
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
36297
|
-
return (hAsync(Host, { key: '
|
|
36940
|
+
return (hAsync(Host, { key: 'f69e2a24198a7c57543dbe66902da039a6569c64', class: {
|
|
36298
36941
|
[mode]: true,
|
|
36299
36942
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
36300
36943
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -36310,7 +36953,7 @@ class SegmentButton {
|
|
|
36310
36953
|
'ion-activatable': true,
|
|
36311
36954
|
'ion-activatable-instant': true,
|
|
36312
36955
|
'ion-focusable': true,
|
|
36313
|
-
} }, hAsync("button", Object.assign({ key: '
|
|
36956
|
+
} }, hAsync("button", Object.assign({ key: '0a6fea3a374074af19f7ece0ba3a7cf1e269ab6d', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: '991018a38c59a6f3d76b2e952e5569c874d2c13e', class: "button-inner" }, hAsync("slot", { key: '23c547c80108025027b913c7fcbec189286627a3' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '7faa9d06ab6aa7346d16b0b6808979759a79650c' })), hAsync("div", { key: '0d61badf2c227dc38e20185b2b2bb590a5efa434', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: 'a84035752b78491c344179d1e61d109fb4bd1cf1', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
36314
36957
|
}
|
|
36315
36958
|
get el() { return getElement(this); }
|
|
36316
36959
|
static get watchers() { return {
|
|
@@ -36347,7 +36990,7 @@ class SegmentContent {
|
|
|
36347
36990
|
registerInstance(this, hostRef);
|
|
36348
36991
|
}
|
|
36349
36992
|
render() {
|
|
36350
|
-
return (hAsync(Host, { key: '
|
|
36993
|
+
return (hAsync(Host, { key: '665f41a854621f898eaf7ba9a49e77cc9326501e' }, hAsync("slot", { key: '635aa57fbf6167dcd36fe8dc5dfc1c313637ac04' })));
|
|
36351
36994
|
}
|
|
36352
36995
|
static get style() { return segmentContentCss(); }
|
|
36353
36996
|
static get cmpMeta() { return {
|
|
@@ -36466,11 +37109,11 @@ class SegmentView {
|
|
|
36466
37109
|
}
|
|
36467
37110
|
render() {
|
|
36468
37111
|
const { disabled, isManualScroll, swipeGesture } = this;
|
|
36469
|
-
return (hAsync(Host, { key: '
|
|
37112
|
+
return (hAsync(Host, { key: '2a6e0a1046af75b1fa0eed20a5fbbb4634480297', class: {
|
|
36470
37113
|
'segment-view-disabled': disabled,
|
|
36471
37114
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
36472
37115
|
'segment-view-swipe-disabled': swipeGesture === false,
|
|
36473
|
-
} }, hAsync("slot", { key: '
|
|
37116
|
+
} }, hAsync("slot", { key: '644b60d179d0de3fa204e3bef26a3503ceeaf1d6' })));
|
|
36474
37117
|
}
|
|
36475
37118
|
get el() { return getElement(this); }
|
|
36476
37119
|
static get style() { return {
|
|
@@ -36654,40 +37297,9 @@ class Select {
|
|
|
36654
37297
|
this.emitStyle();
|
|
36655
37298
|
}
|
|
36656
37299
|
setValue(value) {
|
|
36657
|
-
if (this.isValueEqual(this.value, value)) {
|
|
36658
|
-
return;
|
|
36659
|
-
}
|
|
36660
37300
|
this.value = value;
|
|
36661
37301
|
this.ionChange.emit({ value });
|
|
36662
37302
|
}
|
|
36663
|
-
isValueEqual(currentValue, newValue) {
|
|
36664
|
-
if (this.multiple) {
|
|
36665
|
-
const currentArr = Array.isArray(currentValue) ? currentValue : [];
|
|
36666
|
-
const newArr = Array.isArray(newValue) ? newValue : [];
|
|
36667
|
-
if (currentArr.length !== newArr.length) {
|
|
36668
|
-
return false;
|
|
36669
|
-
}
|
|
36670
|
-
// Multiset compare: each new value must match a distinct current value.
|
|
36671
|
-
// A plain `every(isOptionSelected)` would accept ['a','a'] as equal to
|
|
36672
|
-
// ['a','b'] when both 'a' and 'b' map to options whose values overlap.
|
|
36673
|
-
const remaining = currentArr.slice();
|
|
36674
|
-
return newArr.every((val) => {
|
|
36675
|
-
const idx = remaining.findIndex((c) => compareOptions(c, val, this.compareWith));
|
|
36676
|
-
if (idx === -1) {
|
|
36677
|
-
return false;
|
|
36678
|
-
}
|
|
36679
|
-
remaining.splice(idx, 1);
|
|
36680
|
-
return true;
|
|
36681
|
-
});
|
|
36682
|
-
}
|
|
36683
|
-
if (currentValue == null && newValue == null) {
|
|
36684
|
-
return true;
|
|
36685
|
-
}
|
|
36686
|
-
if (currentValue == null || newValue == null) {
|
|
36687
|
-
return false;
|
|
36688
|
-
}
|
|
36689
|
-
return compareOptions(currentValue, newValue, this.compareWith);
|
|
36690
|
-
}
|
|
36691
37303
|
async connectedCallback() {
|
|
36692
37304
|
const { el } = this;
|
|
36693
37305
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
@@ -37273,7 +37885,7 @@ class Select {
|
|
|
37273
37885
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
37274
37886
|
*/
|
|
37275
37887
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
37276
|
-
return (hAsync(Host, { key: '
|
|
37888
|
+
return (hAsync(Host, { key: '5f4ee901b65554eacc9fa52230d06b1a5ff1247c', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
37277
37889
|
[mode]: true,
|
|
37278
37890
|
'in-item': inItem,
|
|
37279
37891
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -37291,7 +37903,7 @@ class Select {
|
|
|
37291
37903
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
37292
37904
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
37293
37905
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
37294
|
-
}) }, hAsync("label", { key: '
|
|
37906
|
+
}) }, hAsync("label", { key: 'd56d89b5b58da2b5eaebada9d1be58ca45c67806', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), hAsync("div", { key: 'bc8bf089c693781ad5b3a5db76a12223867d748e', class: "select-wrapper-inner", part: "inner" }, hAsync("slot", { key: 'e1c12b96f1573eb192608c458ed1f3463174cd89', name: "start" }), hAsync("div", { key: '6ee5e3900d8e462f175649b502ac6faa2f2b9909', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: 'faeaea34aad412e1458beab95d4b1b9ca7b87c41', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: 'aeff51e51c990844869eff9940575ce6b2223135', class: "select-highlight" })), this.renderBottomContent()));
|
|
37295
37907
|
}
|
|
37296
37908
|
get el() { return getElement(this); }
|
|
37297
37909
|
static get watchers() { return {
|
|
@@ -37475,7 +38087,7 @@ class SelectModal {
|
|
|
37475
38087
|
} }, option.text))));
|
|
37476
38088
|
}
|
|
37477
38089
|
render() {
|
|
37478
|
-
return (hAsync(Host, { key: '
|
|
38090
|
+
return (hAsync(Host, { key: 'fda0bf6f93cd5ec9f3c64f88a52de849e0e140a2', class: getIonMode$1(this) }, hAsync("ion-header", { key: '27c0b17175a53db9ff159feeeb96451a3f011dab' }, hAsync("ion-toolbar", { key: '91a4155ebc317fbc9f1bb3e26a7e94754b953c9b' }, this.header !== undefined && hAsync("ion-title", { key: 'f6dae8e4e381f322cc90efefd9bb6ef81d4d2f3e' }, this.header), hAsync("ion-buttons", { key: 'e7760532fb2e7e7385ed6e62097d92d96ff20148', slot: "end" }, hAsync("ion-button", { key: '4999b6fc46cba138186546dca67b7950855e6fb7', onClick: () => this.closeModal() }, this.cancelText)))), hAsync("ion-content", { key: 'c73f80a4bc25b9061ea65cf11e5d811c1a4d8704' }, hAsync("ion-list", { key: 'b21905d15b36ad5eb45845e768918d2763cf48b1' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
37479
38091
|
}
|
|
37480
38092
|
get el() { return getElement(this); }
|
|
37481
38093
|
static get style() { return {
|
|
@@ -37510,7 +38122,7 @@ class SelectOption {
|
|
|
37510
38122
|
this.disabled = false;
|
|
37511
38123
|
}
|
|
37512
38124
|
render() {
|
|
37513
|
-
return hAsync(Host, { key: '
|
|
38125
|
+
return hAsync(Host, { key: '824730b6c1e4f15b716e91b05840e890af5f1577', role: "option", id: this.inputId, class: getIonMode$1(this) });
|
|
37514
38126
|
}
|
|
37515
38127
|
get el() { return getElement(this); }
|
|
37516
38128
|
static get style() { return selectOptionCss(); }
|
|
@@ -37638,7 +38250,7 @@ class SelectPopover {
|
|
|
37638
38250
|
render() {
|
|
37639
38251
|
const { header, message, options, subHeader } = this;
|
|
37640
38252
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
37641
|
-
return (hAsync(Host, { key: '
|
|
38253
|
+
return (hAsync(Host, { key: 'e7449a1ecfcdbf45a79f8e26a00253c4e146448a', class: getIonMode$1(this) }, hAsync("ion-list", { key: '52abdfc8668c3429a0dcefef8ddedb6647fdd894' }, header !== undefined && hAsync("ion-list-header", { key: '978e5c03728756feafcc60a0e10e6ec59bf2ae11' }, header), hasSubHeaderOrMessage && (hAsync("ion-item", { key: 'e93c44e7f07a76def16e4b11f0fb4780d84ed402' }, hAsync("ion-label", { key: 'bba1aac43b0bc7f4f00978dd8301985233f3725c', class: "ion-text-wrap" }, subHeader !== undefined && hAsync("h3", { key: 'ad96f6017cf2cc5219540bded2c4f1ca3b532de2' }, subHeader), message !== undefined && hAsync("p", { key: '3fd038921dc40c4d0c29734433984b279ccaeec3' }, message)))), this.renderOptions(options))));
|
|
37642
38254
|
}
|
|
37643
38255
|
get el() { return getElement(this); }
|
|
37644
38256
|
static get style() { return {
|
|
@@ -37688,11 +38300,11 @@ class SkeletonText {
|
|
|
37688
38300
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
37689
38301
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
37690
38302
|
const mode = getIonMode$1(this);
|
|
37691
|
-
return (hAsync(Host, { key: '
|
|
38303
|
+
return (hAsync(Host, { key: 'cb8da9aba121811b9a4ffdae60ed88105897cb3c', class: {
|
|
37692
38304
|
[mode]: true,
|
|
37693
38305
|
'skeleton-text-animated': animated,
|
|
37694
38306
|
'in-media': inMedia,
|
|
37695
|
-
} }, hAsync("span", { key: '
|
|
38307
|
+
} }, hAsync("span", { key: '5379deee3c76d46d615be0cba14b4f60129ffa25' }, "\u00A0")));
|
|
37696
38308
|
}
|
|
37697
38309
|
get el() { return getElement(this); }
|
|
37698
38310
|
static get style() { return skeletonTextCss(); }
|
|
@@ -37744,7 +38356,7 @@ class Spinner {
|
|
|
37744
38356
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
37745
38357
|
}
|
|
37746
38358
|
}
|
|
37747
|
-
return (hAsync(Host, { key: '
|
|
38359
|
+
return (hAsync(Host, { key: 'dd1954e557fa14b943e761474e29e4316ba53938', class: createColorClasses$1(self.color, {
|
|
37748
38360
|
[mode]: true,
|
|
37749
38361
|
[`spinner-${spinnerName}`]: true,
|
|
37750
38362
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -37843,12 +38455,12 @@ class SplitPane {
|
|
|
37843
38455
|
}
|
|
37844
38456
|
render() {
|
|
37845
38457
|
const mode = getIonMode$1(this);
|
|
37846
|
-
return (hAsync(Host, { key: '
|
|
38458
|
+
return (hAsync(Host, { key: '05c88c009fbe2e223fd261760a2b49da1653ff62', class: {
|
|
37847
38459
|
[mode]: true,
|
|
37848
38460
|
// Used internally for styling
|
|
37849
38461
|
[`split-pane-${mode}`]: true,
|
|
37850
38462
|
'split-pane-visible': this.visible,
|
|
37851
|
-
} }, hAsync("slot", { key: '
|
|
38463
|
+
} }, hAsync("slot", { key: 'b35865082661253c4468520d79234fa5dab5bd35' })));
|
|
37852
38464
|
}
|
|
37853
38465
|
get el() { return getElement(this); }
|
|
37854
38466
|
static get watchers() { return {
|
|
@@ -37920,10 +38532,10 @@ class Tab {
|
|
|
37920
38532
|
}
|
|
37921
38533
|
render() {
|
|
37922
38534
|
const { tab, active, component } = this;
|
|
37923
|
-
return (hAsync(Host, { key: '
|
|
38535
|
+
return (hAsync(Host, { key: 'fbd837bad7a0632336d46a597ace23673b153e48', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
37924
38536
|
'ion-page': component === undefined,
|
|
37925
38537
|
'tab-hidden': !active,
|
|
37926
|
-
} }, hAsync("slot", { key: '
|
|
38538
|
+
} }, hAsync("slot", { key: '35c218169fda826c9c1337558e0278d0c7f5f26a' })));
|
|
37927
38539
|
}
|
|
37928
38540
|
get el() { return getElement(this); }
|
|
37929
38541
|
static get watchers() { return {
|
|
@@ -38037,11 +38649,11 @@ class TabBar {
|
|
|
38037
38649
|
const { color, translucent, keyboardVisible } = this;
|
|
38038
38650
|
const mode = getIonMode$1(this);
|
|
38039
38651
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
38040
|
-
return (hAsync(Host, { key: '
|
|
38652
|
+
return (hAsync(Host, { key: '24e164eaf81a0bec9237b561465618f10990806c', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
38041
38653
|
[mode]: true,
|
|
38042
38654
|
'tab-bar-translucent': translucent,
|
|
38043
38655
|
'tab-bar-hidden': shouldHide,
|
|
38044
|
-
}) }, hAsync("slot", { key: '
|
|
38656
|
+
}) }, hAsync("slot", { key: '0ca29a2d97a7c38bbf43f8d79e271b874b4d9be8' })));
|
|
38045
38657
|
}
|
|
38046
38658
|
get el() { return getElement(this); }
|
|
38047
38659
|
static get watchers() { return {
|
|
@@ -38139,7 +38751,7 @@ class TabButton {
|
|
|
38139
38751
|
rel,
|
|
38140
38752
|
target,
|
|
38141
38753
|
};
|
|
38142
|
-
return (hAsync(Host, { key: '
|
|
38754
|
+
return (hAsync(Host, { key: '638b93ef40701ec3aefb89b1579eb91aaf6d4f8a', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
38143
38755
|
[mode]: true,
|
|
38144
38756
|
'tab-selected': selected,
|
|
38145
38757
|
'tab-disabled': disabled,
|
|
@@ -38151,7 +38763,7 @@ class TabButton {
|
|
|
38151
38763
|
'ion-activatable': true,
|
|
38152
38764
|
'ion-selectable': true,
|
|
38153
38765
|
'ion-focusable': true,
|
|
38154
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
38766
|
+
} }, hAsync("a", Object.assign({ key: 'c053d32fbcdad8d5e4a409956b47164d7a080c6b' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), hAsync("span", { key: 'b3b460d33ec978a46b069442280d31b23bc8e794', class: "button-inner" }, hAsync("slot", { key: '87b3928475c941263261101b8fae27c6370d4671' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '6532e5b4546aebe4becaebe1c93ce0e6aedaffe7', type: "unbounded" }))));
|
|
38155
38767
|
}
|
|
38156
38768
|
get el() { return getElement(this); }
|
|
38157
38769
|
static get style() { return {
|
|
@@ -38342,7 +38954,7 @@ class Tabs {
|
|
|
38342
38954
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
38343
38955
|
}
|
|
38344
38956
|
render() {
|
|
38345
|
-
return (hAsync(Host, { key: '
|
|
38957
|
+
return (hAsync(Host, { key: 'c7131135b31aa312dc0207602561e1c0f4ac3e53', onIonTabButtonClick: this.onTabClicked }, hAsync("slot", { key: '6c46e91c0389bbcea1f15f35cf3ea513a74ac545', name: "top" }), hAsync("div", { key: '4f1b649d8bb60b61402b97359de204979c5eda52', class: "tabs-inner" }, hAsync("slot", { key: '8d1ef4952be4fb33567376e1083ea4da697fcae0' })), hAsync("slot", { key: '260b8da8031494e9cb4635b3d22c49a433042db1', name: "bottom" })));
|
|
38346
38958
|
}
|
|
38347
38959
|
get el() { return getElement(this); }
|
|
38348
38960
|
static get style() { return tabsCss(); }
|
|
@@ -38382,9 +38994,9 @@ class Text {
|
|
|
38382
38994
|
}
|
|
38383
38995
|
render() {
|
|
38384
38996
|
const mode = getIonMode$1(this);
|
|
38385
|
-
return (hAsync(Host, { key: '
|
|
38997
|
+
return (hAsync(Host, { key: 'bfaa49d35f43b8036725ae8a322c716fc6e43bdf', class: createColorClasses$1(this.color, {
|
|
38386
38998
|
[mode]: true,
|
|
38387
|
-
}) }, hAsync("slot", { key: '
|
|
38999
|
+
}) }, hAsync("slot", { key: 'c04880cd1935b42cbe60f58fd523b4d8a96072dc' })));
|
|
38388
39000
|
}
|
|
38389
39001
|
static get style() { return textCss(); }
|
|
38390
39002
|
static get cmpMeta() { return {
|
|
@@ -38845,7 +39457,7 @@ class Textarea {
|
|
|
38845
39457
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
38846
39458
|
*/
|
|
38847
39459
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
38848
|
-
return (hAsync(Host, { key: '
|
|
39460
|
+
return (hAsync(Host, { key: '4257e84acd46f43390fa2413d0b8f40e16a37499', class: createColorClasses$1(this.color, {
|
|
38849
39461
|
[mode]: true,
|
|
38850
39462
|
'has-value': hasValue,
|
|
38851
39463
|
'has-focus': hasFocus,
|
|
@@ -38854,7 +39466,7 @@ class Textarea {
|
|
|
38854
39466
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
38855
39467
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
38856
39468
|
'textarea-disabled': disabled,
|
|
38857
|
-
}) }, hAsync("label", { key: '
|
|
39469
|
+
}) }, hAsync("label", { key: '003da35bad92ab36777b7ae40855541bf900c64a', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '3cae2d19f96ba2b18a2d64298fdcc4b64ad34ac7', class: "textarea-wrapper-inner" }, hAsync("div", { key: 'e26cb06763d551f7f83b6ea80349871aab18a016', class: "start-slot-wrapper" }, hAsync("slot", { key: '135ba6db893eaca5f2a785fe61e24f33f56f3765', name: "start" })), hAsync("div", { key: '951eabdd01c5e370790cec8578268361dcc8abdc', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, hAsync("textarea", Object.assign({ key: '13d78f1a934b9f8d85cd9ed386dabc786f953f1d', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined }, this.inheritedAttributes), value)), hAsync("div", { key: '699038558019470bccb4853fa65e7aeb069e0baa', class: "end-slot-wrapper" }, hAsync("slot", { key: '19d8c212d7c718aeb6924e10bf8e48cad01314ea', name: "end" }))), shouldRenderHighlight && hAsync("div", { key: '910a9437437ce7cab21e37a1cb4a6b309afda58f', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
38858
39470
|
}
|
|
38859
39471
|
get el() { return getElement(this); }
|
|
38860
39472
|
static get watchers() { return {
|
|
@@ -38923,7 +39535,7 @@ class Thumbnail {
|
|
|
38923
39535
|
registerInstance(this, hostRef);
|
|
38924
39536
|
}
|
|
38925
39537
|
render() {
|
|
38926
|
-
return (hAsync(Host, { key: '
|
|
39538
|
+
return (hAsync(Host, { key: 'b250e01664238f1dca8f9757b15bc3d5d9387ffa', class: getIonMode$1(this) }, hAsync("slot", { key: '72cb568bccabc983c5186a7596ef6c6d4ebf5ad9' })));
|
|
38927
39539
|
}
|
|
38928
39540
|
static get style() { return thumbnailCss(); }
|
|
38929
39541
|
static get cmpMeta() { return {
|
|
@@ -39783,9 +40395,9 @@ class Toast {
|
|
|
39783
40395
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
39784
40396
|
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);
|
|
39785
40397
|
}
|
|
39786
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
40398
|
+
return (hAsync(Host, Object.assign({ key: 'b5256edcf33d0ef51e6c5080c84e1ca58abe2ae0', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
39787
40399
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
39788
|
-
}, 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: '
|
|
40400
|
+
}, 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: '0860f7e895d8bc66e44c4d924ca569f4cbb1a749', class: wrapperClass, part: "wrapper" }, hAsync("div", { key: '28784199c880a3f664677c8f5560b7caa8903251', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: '0a63ba1336ad43d2aec14e49055eb46c112359c2', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: 'ecec8107af582dc55d4b3828dd7f3054a29f26b1', class: "toast-content", part: "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')))));
|
|
39789
40401
|
}
|
|
39790
40402
|
get el() { return getElement(this); }
|
|
39791
40403
|
static get watchers() { return {
|
|
@@ -40103,7 +40715,7 @@ class Toggle {
|
|
|
40103
40715
|
const value = this.getValue();
|
|
40104
40716
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
40105
40717
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
40106
|
-
return (hAsync(Host, { key: '
|
|
40718
|
+
return (hAsync(Host, { key: '736e1dcfca34fd41f6f0632652e7f86d6996a232', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses$1(color, {
|
|
40107
40719
|
[mode]: true,
|
|
40108
40720
|
'in-item': hostContext('ion-item', el),
|
|
40109
40721
|
'toggle-activated': activated,
|
|
@@ -40113,10 +40725,10 @@ class Toggle {
|
|
|
40113
40725
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
40114
40726
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
40115
40727
|
[`toggle-${rtl}`]: true,
|
|
40116
|
-
}) }, hAsync("label", { key: '
|
|
40728
|
+
}) }, hAsync("label", { key: 'e697739fd3964c1c6c23331cf7e38a9841c46a6a', class: "toggle-wrapper", htmlFor: inputId }, hAsync("input", Object.assign({ key: '3d500b8c1bc879591249d183c1abb3f5f26aff6b', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required }, inheritedAttributes)), hAsync("div", { key: 'e38f3fe0e66b4ca434fd81514f5ef771c2960841', class: {
|
|
40117
40729
|
'label-text-wrapper': true,
|
|
40118
40730
|
'label-text-wrapper-hidden': !hasLabel,
|
|
40119
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '
|
|
40731
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '006dd3558264d69ab020c07005b348adc4ecdd5b' }), this.renderHintText()), hAsync("div", { key: 'dd4e52de31caabee41ec1bc58efecd1e213368c9', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
40120
40732
|
}
|
|
40121
40733
|
get el() { return getElement(this); }
|
|
40122
40734
|
static get watchers() { return {
|
|
@@ -40228,10 +40840,10 @@ class Toolbar {
|
|
|
40228
40840
|
this.childrenStyles.forEach((value) => {
|
|
40229
40841
|
Object.assign(childStyles, value);
|
|
40230
40842
|
});
|
|
40231
|
-
return (hAsync(Host, { key: '
|
|
40843
|
+
return (hAsync(Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
40232
40844
|
[mode]: true,
|
|
40233
40845
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
40234
|
-
})) }, hAsync("div", { key: '
|
|
40846
|
+
})) }, hAsync("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), hAsync("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, hAsync("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), hAsync("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), hAsync("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, hAsync("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), hAsync("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), hAsync("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
|
|
40235
40847
|
}
|
|
40236
40848
|
get el() { return getElement(this); }
|
|
40237
40849
|
static get style() { return {
|
|
@@ -40277,11 +40889,11 @@ class ToolbarTitle {
|
|
|
40277
40889
|
render() {
|
|
40278
40890
|
const mode = getIonMode$1(this);
|
|
40279
40891
|
const size = this.getSize();
|
|
40280
|
-
return (hAsync(Host, { key: '
|
|
40892
|
+
return (hAsync(Host, { key: '44e63f8439df64c470692904427b417e19406476', class: createColorClasses$1(this.color, {
|
|
40281
40893
|
[mode]: true,
|
|
40282
40894
|
[`title-${size}`]: true,
|
|
40283
40895
|
'title-rtl': document.dir === 'rtl',
|
|
40284
|
-
}) }, hAsync("div", { key: '
|
|
40896
|
+
}) }, hAsync("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, hAsync("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
|
|
40285
40897
|
}
|
|
40286
40898
|
get el() { return getElement(this); }
|
|
40287
40899
|
static get watchers() { return {
|
|
@@ -40361,8 +40973,10 @@ registerComponents([
|
|
|
40361
40973
|
Nav,
|
|
40362
40974
|
NavLink,
|
|
40363
40975
|
Note,
|
|
40976
|
+
Picker$1,
|
|
40364
40977
|
Picker,
|
|
40365
40978
|
PickerColumn,
|
|
40979
|
+
PickerColumnCmp,
|
|
40366
40980
|
PickerColumnOption,
|
|
40367
40981
|
Popover,
|
|
40368
40982
|
ProgressBar,
|