@ionic/core 8.8.7-dev.11779385275.161a641b → 8.8.7-dev.11779400352.127ba526
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/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-gallery-item.d.ts +11 -0
- package/components/ion-gallery-item.js +4 -0
- package/components/ion-gallery.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-label.js +1 -1
- package/components/ion-list-header.js +1 -1
- package/components/ion-list.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +1 -1
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-legacy-column.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio-group.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-BLCuPAtN.js → p-6_r-Odtt.js} +1 -1
- package/components/{p-BFbsici0.js → p-B-oPDoNQ.js} +1 -1
- package/components/{p-IMXp2Inn.js → p-BLHs-wsh.js} +1 -1
- package/components/{p-DXUyXgVL.js → p-BdmDSErh.js} +1 -1
- package/components/{p-CN-WzkJE.js → p-BhkRbo3L.js} +1 -1
- package/components/{p-C8ktKu9j.js → p-C-Vjb84N.js} +1 -1
- package/components/p-C4dDZdpz.js +4 -0
- package/components/{p-DH_9VCbD.js → p-C75do9pU.js} +1 -1
- package/components/{p-BRWWcnBq.js → p-CSf_VKpz.js} +1 -1
- package/components/{p-Di5rHO3q.js → p-CieebRr6.js} +1 -1
- package/components/{p-DTtRWhIZ.js → p-Ct1_qpJ-.js} +1 -1
- package/components/{p-BXcCGjEc.js → p-CvljGih0.js} +1 -1
- package/components/{p-B2rpt1JV.js → p-D42P_qbe.js} +1 -1
- package/components/{p-BqImG3uk.js → p-DZOqbnq2.js} +1 -1
- package/components/{p-Dmuy6xyk.js → p-Ddl4_R29.js} +1 -1
- package/components/{p-CIoAIKEr.js → p-J7srYGKf.js} +1 -1
- package/components/{p-B71c6yUH.js → p-KF2RUDHO.js} +1 -1
- package/components/{p-TR4ubkPu.js → p-lEYPO4ZC.js} +1 -1
- package/components/{p-CoFqDNc5.js → p-n94Bzx6_.js} +1 -1
- package/components/{p-DAv9P_LE.js → p-vGxjPSKT.js} +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +7 -7
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-gallery-item.cjs.entry.js +72 -0
- package/dist/cjs/ion-gallery.cjs.entry.js +41 -13
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ion-input.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +12 -12
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
- 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 +4 -4
- 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 +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +6 -6
- 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 +3 -3
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- 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/collection/collection-manifest.json +1 -0
- package/dist/collection/components/gallery/gallery.css +0 -24
- package/dist/collection/components/gallery/gallery.js +40 -12
- package/dist/collection/components/gallery/test/utils.js +13 -13
- package/dist/collection/components/gallery-item/gallery-item.css +87 -0
- package/dist/collection/components/gallery-item/gallery-item.js +87 -0
- package/dist/collection/components/grid/grid.js +2 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/img/img.js +2 -2
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input-otp/input-otp.js +3 -3
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +4 -4
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- 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 +2 -2
- package/dist/collection/components/reorder/reorder.js +2 -2
- 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 +1 -1
- package/dist/collection/components/row/row.js +2 -2
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- 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/docs.json +85 -1
- package/dist/esm/ion-app_8.entry.js +7 -7
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-gallery-item.entry.js +70 -0
- package/dist/esm/ion-gallery.entry.js +41 -13
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
- package/dist/esm/ion-input-otp.entry.js +3 -3
- package/dist/esm/ion-input-password-toggle.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +4 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +12 -12
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +5 -5
- 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 +4 -4
- 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 +1 -1
- package/dist/esm/ion-select_3.entry.js +6 -6
- 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 +3 -3
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +42 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-76307d10.entry.js → p-02a1a45c.entry.js} +1 -1
- package/dist/ionic/{p-bd71a4a7.entry.js → p-0c3bf0a7.entry.js} +1 -1
- package/dist/ionic/{p-90e653e3.entry.js → p-0ef2fcda.entry.js} +1 -1
- package/dist/ionic/p-1ab01507.entry.js +4 -0
- package/dist/ionic/p-21ca5788.entry.js +4 -0
- package/dist/ionic/p-229c8fb5.entry.js +4 -0
- package/dist/ionic/p-2981a0bd.entry.js +4 -0
- package/dist/ionic/{p-e18d3fdb.entry.js → p-2a66b899.entry.js} +1 -1
- package/dist/ionic/{p-a9fb086b.entry.js → p-2c252788.entry.js} +1 -1
- package/dist/ionic/p-2d5a2511.entry.js +4 -0
- package/dist/ionic/{p-2f0073af.entry.js → p-3d939d55.entry.js} +1 -1
- package/dist/ionic/{p-d4ed5710.entry.js → p-3fd97ea9.entry.js} +1 -1
- package/dist/ionic/{p-2ad79c23.entry.js → p-455ac83a.entry.js} +1 -1
- package/dist/ionic/{p-5274f999.entry.js → p-503219b5.entry.js} +1 -1
- package/dist/ionic/{p-7d5057c4.entry.js → p-5b164421.entry.js} +1 -1
- package/dist/ionic/{p-3f79f594.entry.js → p-636aa79b.entry.js} +1 -1
- package/dist/ionic/{p-ae667493.entry.js → p-65159e09.entry.js} +1 -1
- package/dist/ionic/{p-00c0bd38.entry.js → p-6911beb3.entry.js} +1 -1
- package/dist/ionic/{p-fad05840.entry.js → p-6ec1e450.entry.js} +1 -1
- package/dist/ionic/p-76de7898.entry.js +4 -0
- package/dist/ionic/{p-1c2c1869.entry.js → p-7761b69d.entry.js} +1 -1
- package/dist/ionic/{p-48026d15.entry.js → p-8291455b.entry.js} +1 -1
- package/dist/ionic/{p-b653f4c2.entry.js → p-83c0eb9b.entry.js} +1 -1
- package/dist/ionic/{p-d6299c37.entry.js → p-874945f3.entry.js} +1 -1
- package/dist/ionic/{p-b3c9f19c.entry.js → p-92427c9d.entry.js} +1 -1
- package/dist/ionic/{p-71b6014c.entry.js → p-9f914d43.entry.js} +1 -1
- package/dist/ionic/{p-1709b0aa.entry.js → p-b8f7e970.entry.js} +1 -1
- package/dist/ionic/{p-83c693c4.entry.js → p-bb2d2635.entry.js} +1 -1
- package/dist/ionic/{p-1c4de46b.entry.js → p-bd3ae730.entry.js} +1 -1
- package/dist/ionic/{p-586d4270.entry.js → p-c1d6501a.entry.js} +1 -1
- package/dist/ionic/{p-50cd2d57.entry.js → p-c55a5578.entry.js} +1 -1
- package/dist/ionic/{p-72491468.entry.js → p-cecceb9f.entry.js} +1 -1
- package/dist/ionic/{p-9d789053.entry.js → p-d604defc.entry.js} +1 -1
- package/dist/ionic/{p-35b144f5.entry.js → p-dd1e95c5.entry.js} +1 -1
- package/dist/ionic/{p-7054a1b9.entry.js → p-e342b205.entry.js} +1 -1
- package/dist/ionic/{p-15e3e8f5.entry.js → p-e5976b28.entry.js} +1 -1
- package/dist/ionic/{p-b2fe6c1c.entry.js → p-e73a7fe2.entry.js} +1 -1
- package/dist/ionic/{p-50b61fab.entry.js → p-fc01563c.entry.js} +1 -1
- package/dist/ionic/{p-8537b2fb.entry.js → p-fdf0e290.entry.js} +1 -1
- package/dist/ionic/{p-c10fa162.entry.js → p-fe073307.entry.js} +1 -1
- package/dist/types/components/gallery/gallery.d.ts +8 -3
- package/dist/types/components/gallery/test/utils.d.ts +1 -1
- package/dist/types/components/gallery-item/gallery-item.d.ts +25 -0
- package/dist/types/components.d.ts +29 -0
- package/hydrate/index.js +243 -135
- package/hydrate/index.mjs +243 -135
- package/package.json +1 -1
- package/components/p-B6zr9RZN.js +0 -4
- package/dist/ionic/p-0f3b4262.entry.js +0 -4
- package/dist/ionic/p-1e1c8d61.entry.js +0 -4
- package/dist/ionic/p-2aa7567e.entry.js +0 -4
- package/dist/ionic/p-4079cee3.entry.js +0 -4
- package/dist/ionic/p-bf972309.entry.js +0 -4
|
@@ -1066,7 +1066,7 @@ const Header = class {
|
|
|
1066
1066
|
const isCondensed = collapse === 'condense';
|
|
1067
1067
|
// banner role must be at top level, so remove role if inside a menu
|
|
1068
1068
|
const roleType = getRoleType(hostContext('ion-menu', this.el), isCondensed, theme);
|
|
1069
|
-
return (h(Host, Object.assign({ key: '
|
|
1069
|
+
return (h(Host, Object.assign({ key: '3395dedfd5165ba6e9f3ad1a25f0bb5b3678704a', role: roleType, class: {
|
|
1070
1070
|
[theme]: true,
|
|
1071
1071
|
// Used internally for styling
|
|
1072
1072
|
[`header-${theme}`]: true,
|
|
@@ -1074,7 +1074,7 @@ const Header = class {
|
|
|
1074
1074
|
[`header-collapse-${collapse}`]: true,
|
|
1075
1075
|
[`header-translucent-${theme}`]: this.translucent,
|
|
1076
1076
|
['header-divider']: divider,
|
|
1077
|
-
} }, inheritedAttributes), theme !== 'md' && translucent && h("div", { key: '
|
|
1077
|
+
} }, inheritedAttributes), theme !== 'md' && translucent && h("div", { key: 'cafeb88b6e73d64b264514ea46590fd3477b3052', class: "header-background" }), h("slot", { key: 'ad681aaf866d7e7a5e5e731c0b5d6f5cc9fe94d2' })));
|
|
1078
1078
|
}
|
|
1079
1079
|
get el() { return getElement(this); }
|
|
1080
1080
|
};
|
|
@@ -1261,7 +1261,7 @@ const RouterOutlet = class {
|
|
|
1261
1261
|
return true;
|
|
1262
1262
|
}
|
|
1263
1263
|
render() {
|
|
1264
|
-
return h("slot", { key: '
|
|
1264
|
+
return h("slot", { key: '56e3d06ed939755796058e30ef19fbc7f7cb490d' });
|
|
1265
1265
|
}
|
|
1266
1266
|
get el() { return getElement(this); }
|
|
1267
1267
|
static get watchers() { return {
|
|
@@ -1301,11 +1301,11 @@ const ToolbarTitle = class {
|
|
|
1301
1301
|
render() {
|
|
1302
1302
|
const theme = getIonTheme(this);
|
|
1303
1303
|
const size = this.getSize();
|
|
1304
|
-
return (h(Host, { key: '
|
|
1304
|
+
return (h(Host, { key: 'd64e86bed418cba707d4a26c9274f18ed06c0e9e', class: createColorClasses(this.color, {
|
|
1305
1305
|
[theme]: true,
|
|
1306
1306
|
[`title-${size}`]: true,
|
|
1307
1307
|
'title-rtl': document.dir === 'rtl',
|
|
1308
|
-
}) }, h("div", { key: '
|
|
1308
|
+
}) }, h("div", { key: '386a71e974cde0bfbf5b655d69ed5f718de8ce48', class: "toolbar-title" }, h("slot", { key: '8aa804c9e1b11574a42268805d3117a085e699b4' }))));
|
|
1309
1309
|
}
|
|
1310
1310
|
get el() { return getElement(this); }
|
|
1311
1311
|
static get watchers() { return {
|
|
@@ -1551,11 +1551,11 @@ const Toolbar = class {
|
|
|
1551
1551
|
Object.assign(childStyles, style);
|
|
1552
1552
|
});
|
|
1553
1553
|
const titlePlacement = this.getTitlePlacement();
|
|
1554
|
-
return (h(Host, { key: '
|
|
1554
|
+
return (h(Host, { key: 'bcb621674157410d7eaeb006779bdd677346587e', class: Object.assign(Object.assign({}, createColorClasses(this.color, {
|
|
1555
1555
|
[theme]: true,
|
|
1556
1556
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
1557
1557
|
[`toolbar-title-placement-${titlePlacement}`]: true,
|
|
1558
|
-
})), childStyles) }, h("div", { key: '
|
|
1558
|
+
})), childStyles) }, h("div", { key: '0d31a98b2571b9a0ae142fbdfd83e2ebdcd8e069', class: "toolbar-background", part: "background" }), h("div", { key: 'de938534c487c6cb4060dac44b40c2d872130f50', class: "toolbar-container", part: "container" }, h("slot", { key: 'a337150d353e439eae67c31ff86e383ed51f3d8f', name: "start", onSlotchange: () => this.updateSlotClasses }), h("slot", { key: '02effd3ce0cdad5ec5645fa58ccb329321449190', name: "secondary", onSlotchange: () => this.updateSlotClasses }), h("div", { key: '3e22f5feda2aea02117bdea2fe8a4b8905ba82f6', class: "toolbar-content", part: "content" }, h("slot", { key: 'ebf828643ff05a8bf662a54715d21d0859168d31' })), h("slot", { key: 'a6940648dfe25a7aa8792a1bd9267437274f333c', name: "primary", onSlotchange: () => this.updateSlotClasses }), h("slot", { key: 'afb1d61aa0e430fcf483ba482af64762474e06fe', name: "end", onSlotchange: () => this.updateSlotClasses }))));
|
|
1559
1559
|
}
|
|
1560
1560
|
get el() { return getElement(this); }
|
|
1561
1561
|
static get watchers() { return {
|
|
@@ -159,9 +159,9 @@ const Thumbnail = class {
|
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
161
|
const theme = getIonTheme(this);
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: 'fdf9d92949a1e8cf6faded77ffed084f74fc040b', class: {
|
|
163
163
|
[theme]: true,
|
|
164
|
-
} }, h("slot", { key: '
|
|
164
|
+
} }, h("slot", { key: 'e1b1439c035d9a9503efd1c1a04aed9f4e8e0af7' })));
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
Thumbnail.style = thumbnailCss();
|
|
@@ -126,10 +126,10 @@ const Grid = class {
|
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
128
|
const theme = getIonTheme(this);
|
|
129
|
-
return (h(Host, { key: '
|
|
129
|
+
return (h(Host, { key: 'e3320fc2fc5391d26898cc119505cd3be30dd48b', class: {
|
|
130
130
|
[theme]: true,
|
|
131
131
|
'grid-fixed': this.fixed,
|
|
132
|
-
} }, h("slot", { key: '
|
|
132
|
+
} }, h("slot", { key: '2000e6b336c294aadf4585269c301d734d2fe478' })));
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
Grid.style = gridCss();
|
|
@@ -142,9 +142,9 @@ const Row = class {
|
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
144
|
const theme = getIonTheme(this);
|
|
145
|
-
return (h(Host, { key: '
|
|
145
|
+
return (h(Host, { key: '3a3c40062d2d0487c61dedbb172215b87bb425b1', class: {
|
|
146
146
|
[theme]: true,
|
|
147
|
-
} }, h("slot", { key: '
|
|
147
|
+
} }, h("slot", { key: '164f457f6f7853ed8f7279d20bc6ede6cf9d3e5c' })));
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
Row.style = rowCss();
|
|
@@ -2309,11 +2309,11 @@ const Picker = class {
|
|
|
2309
2309
|
render() {
|
|
2310
2310
|
const { htmlAttributes } = this;
|
|
2311
2311
|
const theme = getIonTheme(this);
|
|
2312
|
-
return (h(Host, Object.assign({ key: '
|
|
2312
|
+
return (h(Host, Object.assign({ key: '681ad6d20efa16f1d6c6f9a7d03caec2b17ff36e', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2313
2313
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2314
2314
|
}, class: Object.assign({ [theme]: true,
|
|
2315
2315
|
// Used internally for styling
|
|
2316
|
-
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
2316
|
+
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '6dc71805810955048479c2a6eddce2303161cb8f', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '0e61724c261c9d69ba23d3cb9064018942755033', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'a6ca79c9a5fce42b5aad6808802535c723f27fb9', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: '7651cbe9d723bba032788d85711e0f7c1dc32c21', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'd6b83aded670bc74515c337c038503e396ab42cc', class: "picker-columns" }, h("div", { key: '1dfef6ed386d7b327dc19397cc9f01c3938fbab9', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-legacy-column", { col: c })), h("div", { key: 'ec8b2f4de073a245f8917a494a681adf5d1f94f6', class: "picker-below-highlight" }))), h("div", { key: '8557ce93083feefa5deb6097270d756424f89ab2', tabindex: "0", "aria-hidden": "true" })));
|
|
2317
2317
|
}
|
|
2318
2318
|
get el() { return getElement(this); }
|
|
2319
2319
|
static get watchers() { return {
|
|
@@ -2671,9 +2671,9 @@ const PickerColumnCmp = class {
|
|
|
2671
2671
|
render() {
|
|
2672
2672
|
const col = this.col;
|
|
2673
2673
|
const theme = getIonTheme(this);
|
|
2674
|
-
return (h(Host, { key: '
|
|
2674
|
+
return (h(Host, { key: 'aed1c1a702e03765d704f6f563fe26df58e68bbf', class: Object.assign({ [theme]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
2675
2675
|
'max-width': this.col.columnWidth,
|
|
2676
|
-
} }, col.prefix && (h("div", { key: '
|
|
2676
|
+
} }, col.prefix && (h("div", { key: 'a6fae778eec5d57dba4b36b3e448c5c12fe0688b', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '1b77354fe5eeeeb4db94fab035a9ef5e45d695ac', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (h("div", { key: '105286ef7ba6eac0796f5af7d6f1daef7107444a', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2677
2677
|
}
|
|
2678
2678
|
get el() { return getElement(this); }
|
|
2679
2679
|
static get watchers() { return {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, f as printIonWarning, h, d as Host, g as getElement } from './index-Omi_TcwW.js';
|
|
5
|
+
import { c as getIonTheme } from './ionic-global-CAZb-5i-.js';
|
|
6
|
+
|
|
7
|
+
const galleryItemCss = () => `:host{display:contents}:host(.in-gallery-layout-uniform) ::slotted(*){aspect-ratio:1/1}:host(.in-gallery-layout-masonry){min-height:unset;margin-bottom:var(--internal-gallery-gap, 16px)}::slotted(*){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%}::slotted(img){display:block;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}`;
|
|
8
|
+
|
|
9
|
+
const GalleryItem = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.hasWarnedInvalidParent = false;
|
|
13
|
+
this.onSlotChange = () => {
|
|
14
|
+
this.warnInvalidParent();
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
var _a;
|
|
19
|
+
this.galleryEl = (_a = this.el.closest('ion-gallery')) !== null && _a !== void 0 ? _a : undefined;
|
|
20
|
+
this.syncLayoutClasses();
|
|
21
|
+
}
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
this.watchGalleryLayoutClasses();
|
|
24
|
+
this.warnInvalidParent();
|
|
25
|
+
}
|
|
26
|
+
disconnectedCallback() {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = this.galleryClassObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
29
|
+
this.galleryClassObserver = undefined;
|
|
30
|
+
this.galleryEl = undefined;
|
|
31
|
+
}
|
|
32
|
+
warnInvalidParent() {
|
|
33
|
+
if (this.hasWarnedInvalidParent || this.galleryEl !== undefined) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
printIonWarning('[ion-gallery-item] - This component should be used as a child of an "ion-gallery" component.', this.el);
|
|
37
|
+
this.hasWarnedInvalidParent = true;
|
|
38
|
+
}
|
|
39
|
+
watchGalleryLayoutClasses() {
|
|
40
|
+
var _a;
|
|
41
|
+
const galleryEl = this.galleryEl;
|
|
42
|
+
if (galleryEl === undefined) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
(_a = this.galleryClassObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
46
|
+
this.galleryClassObserver = new MutationObserver(() => this.syncLayoutClasses());
|
|
47
|
+
this.galleryClassObserver.observe(galleryEl, {
|
|
48
|
+
attributes: true,
|
|
49
|
+
attributeFilter: ['class'],
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
syncLayoutClasses() {
|
|
53
|
+
var _a;
|
|
54
|
+
const layout = (_a = this.galleryEl) === null || _a === void 0 ? void 0 : _a.layout;
|
|
55
|
+
this.galleryLayout = layout === 'masonry' || layout === 'uniform' ? layout : undefined;
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
const { galleryLayout } = this;
|
|
59
|
+
const theme = getIonTheme(this);
|
|
60
|
+
return (h(Host, { key: 'dbd9b9e005aa151981296e6487532e221f3f24e3', class: {
|
|
61
|
+
[theme]: true,
|
|
62
|
+
'in-gallery-layout-uniform': galleryLayout === 'uniform',
|
|
63
|
+
'in-gallery-layout-masonry': galleryLayout === 'masonry',
|
|
64
|
+
} }, h("slot", { key: '98af83e345389763cf23d5e705f1c8773836418f', onSlotchange: this.onSlotChange })));
|
|
65
|
+
}
|
|
66
|
+
get el() { return getElement(this); }
|
|
67
|
+
};
|
|
68
|
+
GalleryItem.style = galleryItemCss();
|
|
69
|
+
|
|
70
|
+
export { GalleryItem as ion_gallery_item };
|
|
@@ -39,7 +39,7 @@ const DEFAULT_COLUMNS = {
|
|
|
39
39
|
};
|
|
40
40
|
const DEFAULT_GAP = '16px';
|
|
41
41
|
|
|
42
|
-
const galleryCss = () => `:host{display:grid;grid-template-columns:repeat(var(--internal-gallery-columns, 2), minmax(0, 1fr))}:host(.gallery-layout-uniform){gap:var(--internal-gallery-gap, 16px)}:host(.gallery-layout-
|
|
42
|
+
const galleryCss = () => `:host{display:grid;grid-template-columns:repeat(var(--internal-gallery-columns, 2), minmax(0, 1fr))}:host(.gallery-layout-uniform){gap:var(--internal-gallery-gap, 16px)}:host(.gallery-layout-masonry){-ms-flex-align:start;align-items:start;-webkit-column-gap:var(--internal-gallery-gap, 16px);-moz-column-gap:var(--internal-gallery-gap, 16px);column-gap:var(--internal-gallery-gap, 16px);row-gap:0;grid-auto-rows:2px}`;
|
|
43
43
|
|
|
44
44
|
// TODO(FW-7285): Replace with global breakpoints
|
|
45
45
|
const BREAKPOINTS = {
|
|
@@ -51,15 +51,16 @@ const BREAKPOINTS = {
|
|
|
51
51
|
xxl: 1400,
|
|
52
52
|
};
|
|
53
53
|
const BREAKPOINT_ORDER = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
54
|
+
const GALLERY_ITEM_SELECTOR = 'ion-gallery-item';
|
|
54
55
|
const Gallery = class {
|
|
55
56
|
constructor(hostRef) {
|
|
56
57
|
registerInstance(this, hostRef);
|
|
57
|
-
this.itemWrapperSelector = '[data-gallery-group]';
|
|
58
58
|
// Keep track of whether we've warned about invalid columns, invalid gap,
|
|
59
59
|
// and unused order properties to avoid duplicate warnings on screen resize.
|
|
60
60
|
this.hasWarnedInvalidColumns = false;
|
|
61
61
|
this.hasWarnedInvalidGap = false;
|
|
62
62
|
this.hasWarnedUnusedOrder = false;
|
|
63
|
+
this.hasWarnedInvalidItems = false;
|
|
63
64
|
/**
|
|
64
65
|
* The visual layout of the gallery. When `uniform`, rows take up the height
|
|
65
66
|
* of the tallest item and are spaced evenly across the gallery. Additionally,
|
|
@@ -312,6 +313,16 @@ const Gallery = class {
|
|
|
312
313
|
printIonWarning(`[ion-gallery] - "order" has no effect when "layout" is "uniform". Set "layout" to "masonry" for "order" to apply.`, this.el);
|
|
313
314
|
this.hasWarnedUnusedOrder = true;
|
|
314
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Warn when gallery content is missing required `ion-gallery-item` components.
|
|
318
|
+
*/
|
|
319
|
+
warnInvalidItems() {
|
|
320
|
+
if (this.hasWarnedInvalidItems) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
printIonWarning('[ion-gallery] - Gallery items must be wrapped in "ion-gallery-item" components. Non-item direct children are ignored unless they contain nested "ion-gallery-item" elements.', this.el);
|
|
324
|
+
this.hasWarnedInvalidItems = true;
|
|
325
|
+
}
|
|
315
326
|
/**
|
|
316
327
|
* Resolve the active columns value for the current width. Falls back to
|
|
317
328
|
* the default responsive columns when the provided prop is invalid.
|
|
@@ -374,20 +385,37 @@ const Gallery = class {
|
|
|
374
385
|
}
|
|
375
386
|
/**
|
|
376
387
|
* Return all gallery items that can be grid items with inline placement styles.
|
|
377
|
-
* Direct children
|
|
378
|
-
*
|
|
388
|
+
* Direct children that are not `ion-gallery-item` are treated as wrapper
|
|
389
|
+
* containers and flattened to nested `ion-gallery-item` children. Direct
|
|
390
|
+
* children without nested `ion-gallery-item` components are ignored.
|
|
379
391
|
*/
|
|
380
392
|
getItems() {
|
|
381
|
-
const
|
|
393
|
+
const directChildren = Array.from(this.el.children).filter((child) => this.isGalleryItemElement(child));
|
|
382
394
|
const flattenedItems = [];
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
395
|
+
// Expand an <ion-gallery-item> component into the actual gallery items
|
|
396
|
+
// that should be used for grid placement.
|
|
397
|
+
const pushWrappedItems = (galleryItemEl) => {
|
|
398
|
+
const galleryItems = Array.from(galleryItemEl.children).filter((child) => this.isGalleryItemElement(child));
|
|
399
|
+
flattenedItems.push(...galleryItems);
|
|
400
|
+
};
|
|
401
|
+
directChildren.forEach((directChildEl) => {
|
|
402
|
+
// Standard path: <ion-gallery-item> is a direct child of <ion-gallery>.
|
|
403
|
+
if (directChildEl.matches(GALLERY_ITEM_SELECTOR)) {
|
|
404
|
+
pushWrappedItems(directChildEl);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
// Compatibility path: a non-gallery-item direct child (e.g. wrapper <div>)
|
|
408
|
+
// may contain nested <ion-gallery-item> components.
|
|
409
|
+
const nestedGalleryItems = Array.from(directChildEl.querySelectorAll(GALLERY_ITEM_SELECTOR)).filter((child) => this.isGalleryItemElement(child));
|
|
410
|
+
// Invalid children path: no <ion-gallery-item> components found.
|
|
411
|
+
if (nestedGalleryItems.length === 0) {
|
|
412
|
+
this.warnInvalidItems();
|
|
386
413
|
return;
|
|
387
414
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
415
|
+
// Flatten gallery-item containers so nested <ion-gallery-item> children can
|
|
416
|
+
// become the effective gallery items.
|
|
417
|
+
directChildEl.style.display = 'contents';
|
|
418
|
+
nestedGalleryItems.forEach((nestedGalleryItem) => pushWrappedItems(nestedGalleryItem));
|
|
391
419
|
});
|
|
392
420
|
return flattenedItems;
|
|
393
421
|
}
|
|
@@ -502,11 +530,11 @@ const Gallery = class {
|
|
|
502
530
|
const { layout } = this;
|
|
503
531
|
const order = this.getOrder();
|
|
504
532
|
const theme = getIonTheme(this);
|
|
505
|
-
return (h(Host, { key: '
|
|
533
|
+
return (h(Host, { key: '0b6ef176032845b3df3b2335be90cb6ce5d791cc', class: {
|
|
506
534
|
[theme]: true,
|
|
507
535
|
[`gallery-layout-${layout}`]: true,
|
|
508
536
|
[`gallery-order-${order}`]: layout === 'masonry' && order !== undefined,
|
|
509
|
-
} }, h("slot", { key: '
|
|
537
|
+
} }, h("slot", { key: '247df9bb58b6899da7db60cdd475ccff0872673e', onSlotchange: this.onSlotChange })));
|
|
510
538
|
}
|
|
511
539
|
get el() { return getElement(this); }
|
|
512
540
|
static get watchers() { return {
|
|
@@ -82,9 +82,9 @@ const Img = class {
|
|
|
82
82
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
83
83
|
const { draggable } = inheritedAttributes;
|
|
84
84
|
const theme = getIonTheme(this);
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'ba84621055567b2a35387709d9d89b97ad853274', class: {
|
|
86
86
|
[theme]: true,
|
|
87
|
-
} }, h("img", { key: '
|
|
87
|
+
} }, h("img", { key: '9d6118bbf69e2cccbb0603802c03b9a0d101e2c3', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
88
88
|
}
|
|
89
89
|
get el() { return getElement(this); }
|
|
90
90
|
static get watchers() { return {
|
|
@@ -269,7 +269,7 @@ const InfiniteScroll = class {
|
|
|
269
269
|
render() {
|
|
270
270
|
const theme = getIonTheme(this);
|
|
271
271
|
const disabled = this.disabled;
|
|
272
|
-
return (h(Host, { key: '
|
|
272
|
+
return (h(Host, { key: 'e3a3cde079dfd6f07e565eb462765df757cbb128', class: {
|
|
273
273
|
[theme]: true,
|
|
274
274
|
'infinite-scroll-loading': this.isLoading,
|
|
275
275
|
'infinite-scroll-enabled': !disabled,
|
|
@@ -313,11 +313,11 @@ const InfiniteScrollContent = class {
|
|
|
313
313
|
}
|
|
314
314
|
render() {
|
|
315
315
|
const theme = getIonTheme(this);
|
|
316
|
-
return (h(Host, { key: '
|
|
316
|
+
return (h(Host, { key: '263a27297159ced042f7552a1e14b8c6aba62fa8', class: {
|
|
317
317
|
[theme]: true,
|
|
318
318
|
// Used internally for styling
|
|
319
319
|
[`infinite-scroll-content-${theme}`]: true,
|
|
320
|
-
} }, h("div", { key: '
|
|
320
|
+
} }, h("div", { key: 'ee38d3c52df9dc5de186406b3087f20917a17252', class: "infinite-loading" }, this.loadingSpinner && (h("div", { key: 'e2348727f79a26f52f42641d4334a0ba9d4aa03e', class: "infinite-loading-spinner" }, h("ion-spinner", { key: '41be6f2747f3af5f46c8738e2ef56083ecd95e99', name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
InfiniteScrollContent.style = {
|
|
@@ -690,7 +690,7 @@ const InputOTP = class {
|
|
|
690
690
|
const tabbableIndex = this.getTabbableIndex();
|
|
691
691
|
const pattern = this.getPattern();
|
|
692
692
|
const hasDescription = ((_b = (_a = el.querySelector('.input-otp-description')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== '';
|
|
693
|
-
return (h(Host, { key: '
|
|
693
|
+
return (h(Host, { key: 'f39e98cd24cbf50f7db4e891dda9499f6def7986', class: createColorClasses(color, {
|
|
694
694
|
[mode]: true,
|
|
695
695
|
'has-focus': hasFocus,
|
|
696
696
|
[`input-otp-size-${size}`]: true,
|
|
@@ -698,10 +698,10 @@ const InputOTP = class {
|
|
|
698
698
|
[`input-otp-fill-${fill}`]: true,
|
|
699
699
|
'input-otp-disabled': disabled,
|
|
700
700
|
'input-otp-readonly': readonly,
|
|
701
|
-
}) }, h("div", Object.assign({ key: '
|
|
701
|
+
}) }, h("div", Object.assign({ key: '624adcd552947708162003353b331cd92df062ef', role: "group", "aria-label": "One-time password input", class: "input-otp-group", part: "group" }, inheritedAttributes), Array.from({ length }).map((_, index) => (h(Fragment, null, h("div", { class: "native-wrapper", part: "container" }, h("input", { class: "native-input", part: "native", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", autoCapitalize: autocapitalize, inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && h("div", { class: "input-otp-separator", part: "separator" }))))), h("div", { key: 'c518d83ab0236a3ebbe631582ce6f1c2edfbcd29', class: {
|
|
702
702
|
'input-otp-description': true,
|
|
703
703
|
'input-otp-description-hidden': !hasDescription,
|
|
704
|
-
}, part: "description" }, h("slot", { key: '
|
|
704
|
+
}, part: "description" }, h("slot", { key: '15c7c8549c1788748e1ae31bd227a7f918cb5eca' }))));
|
|
705
705
|
}
|
|
706
706
|
static get formAssociated() { return true; }
|
|
707
707
|
get el() { return getElement(this); }
|
|
@@ -99,16 +99,16 @@ const InputPasswordToggle = class {
|
|
|
99
99
|
const { color, inputPasswordHideIcon, inputPasswordShowIcon, type } = this;
|
|
100
100
|
const mode = getIonMode(this);
|
|
101
101
|
const isPasswordVisible = type === 'text';
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: 'f11e3bf4d3255e003aec504e6dd3ee1e0caaf767', class: createColorClasses(color, {
|
|
103
103
|
[mode]: true,
|
|
104
|
-
}) }, h("ion-button", { key: '
|
|
104
|
+
}) }, h("ion-button", { key: '5bba43f7755857fd9347612bb906c389b60386b4', mode: mode, color: color, fill: "clear", shape: "round", "aria-label": isPasswordVisible ? 'Hide password' : 'Show password', "aria-pressed": isPasswordVisible ? 'true' : 'false', type: "button", onPointerDown: (ev) => {
|
|
105
105
|
/**
|
|
106
106
|
* This prevents mobile browsers from
|
|
107
107
|
* blurring the input when the password toggle
|
|
108
108
|
* button is activated.
|
|
109
109
|
*/
|
|
110
110
|
ev.preventDefault();
|
|
111
|
-
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: '
|
|
111
|
+
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: 'c0eb0e4e2f3e9553bfd519ff655064c9f62af406', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? inputPasswordHideIcon : inputPasswordShowIcon }))));
|
|
112
112
|
}
|
|
113
113
|
get el() { return getElement(this); }
|
|
114
114
|
static get watchers() { return {
|
|
@@ -620,7 +620,7 @@ const Input = class {
|
|
|
620
620
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
621
621
|
*/
|
|
622
622
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
623
|
-
return (h(Host, { key: '
|
|
623
|
+
return (h(Host, { key: '3da29d837b5abe22de740ac96c8142422fce537a', class: createColorClasses(this.color, {
|
|
624
624
|
[theme]: true,
|
|
625
625
|
'has-value': hasValue,
|
|
626
626
|
'has-focus': hasFocus,
|
|
@@ -633,7 +633,7 @@ const Input = class {
|
|
|
633
633
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
634
634
|
'input-disabled': disabled,
|
|
635
635
|
'input-readonly': readonly,
|
|
636
|
-
}) }, h("label", { key: '
|
|
636
|
+
}) }, h("label", { key: '142a8230382a05938887e9c0790832218ac37697', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: '953f247ea2f40545e01e0346549d9b7aa344b720', class: "native-wrapper", onClick: this.onLabelClick },
|
|
637
637
|
/**
|
|
638
638
|
* For the ionic theme, we render the outline container here
|
|
639
639
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -643,14 +643,14 @@ const Input = class {
|
|
|
643
643
|
* <label> element, ensuring that clicking the label text
|
|
644
644
|
* focuses the input.
|
|
645
645
|
*/
|
|
646
|
-
theme === 'ionic' && h("div", { key: '
|
|
646
|
+
theme === 'ionic' && h("div", { key: 'fd09b37c6a798900c5074e7cbe2e790ea050c29d', class: "input-outline" }), h("slot", { key: '3eef4c4748104d8722f3254a04ff88e2b70c560e', name: "start" }), h("input", Object.assign({ key: '012a3fa52e19422d7fbc227845e9771c7d8fbe4a', 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)), clearInput && !readonly && !disabled && (h("button", { key: 'b115494d9611aea57a976d3102026f3d9b430bfb', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
647
647
|
/**
|
|
648
648
|
* This prevents mobile browsers from
|
|
649
649
|
* blurring the input when the clear
|
|
650
650
|
* button is activated.
|
|
651
651
|
*/
|
|
652
652
|
ev.preventDefault();
|
|
653
|
-
}, onClick: this.clearTextInput }, h("ion-icon", { key: '
|
|
653
|
+
}, onClick: this.clearTextInput }, h("ion-icon", { key: 'a259afa47a9914b2e0656364bed40644fa2c87c4', "aria-hidden": "true", icon: inputClearIcon }))), h("slot", { key: 'beec86eb500f6b335149c8734afc7c3945a10219', name: "end" })), shouldRenderHighlight && h("div", { key: '77a25d118934f369e09edbc2ffa6f90e3e760338', class: "input-highlight" })), this.renderBottomContent()));
|
|
654
654
|
}
|
|
655
655
|
get el() { return getElement(this); }
|
|
656
656
|
static get watchers() { return {
|
|
@@ -68,14 +68,14 @@ const ItemOption = class {
|
|
|
68
68
|
href: this.href,
|
|
69
69
|
target: this.target,
|
|
70
70
|
};
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '8f1bad23fd3ccbb9d54d57765e6731cd2ee07306', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
72
72
|
[theme]: true,
|
|
73
73
|
[`item-option-${shape}`]: shape !== undefined,
|
|
74
74
|
[`item-option-${hue}`]: hue !== undefined,
|
|
75
75
|
'item-option-disabled': disabled,
|
|
76
76
|
'item-option-expandable': expandable,
|
|
77
77
|
'ion-activatable': true,
|
|
78
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
78
|
+
}) }, h(TagType, Object.assign({ key: '2baf904e356a87ed463ee5f517e0e95f90b2ef30' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: '49b627f72dffd1b150ccd808b1b1f63bbe78e2de', class: "button-inner", part: "inner" }, h("slot", { key: 'cdb52f76f1d7e5df411215f17eb76ad25e36241a', name: "top" }), h("div", { key: '864204667c6e3ba6f989b24e96c131b67e55d408', class: "horizontal-wrapper", part: "container" }, h("slot", { key: '474f4aab708842bb7ef74cb6f1fbe601ceff82cf', name: "start" }), h("slot", { key: '2bd726c5ba3ee079a623f1f6229d1ac2afd3e291', name: "icon-only" }), h("slot", { key: '2d1a673c447ebf82c92f944ec9e83a5b38698307' }), h("slot", { key: '8d0f9337cd84c725190cffd25d74044075e85ab0', name: "end" })), h("slot", { key: 'a674039b26d9cbb886e88ea721bbc210484aba9f', name: "bottom" })), theme === 'md' && h("ion-ripple-effect", { key: '3e45bf18b7992943c47ece47e9358f4da0b8e865' }))));
|
|
79
79
|
}
|
|
80
80
|
get el() { return getElement(this); }
|
|
81
81
|
};
|
|
@@ -110,7 +110,7 @@ const ItemOptions = class {
|
|
|
110
110
|
render() {
|
|
111
111
|
const theme = getIonTheme(this);
|
|
112
112
|
const isEnd = isEndSide(this.side);
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: 'ed05ceebf2cda943ac9efea2f91b71f7e8fc55e8', class: {
|
|
114
114
|
[theme]: true,
|
|
115
115
|
// Used internally for styling
|
|
116
116
|
[`item-options-${theme}`]: true,
|
|
@@ -904,7 +904,7 @@ const ItemSliding = class {
|
|
|
904
904
|
}
|
|
905
905
|
render() {
|
|
906
906
|
const theme = getIonTheme(this);
|
|
907
|
-
return (h(Host, { key: '
|
|
907
|
+
return (h(Host, { key: '47de8c8a9721f9223b42d6722a9ad32f378818aa', class: {
|
|
908
908
|
[theme]: true,
|
|
909
909
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
910
910
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -308,11 +308,11 @@ const ItemDivider = class {
|
|
|
308
308
|
}
|
|
309
309
|
render() {
|
|
310
310
|
const theme = getIonTheme(this);
|
|
311
|
-
return (h(Host, { key: '
|
|
311
|
+
return (h(Host, { key: 'dc73f348b5376faa40ba4bc6bba3d5c9e5ec5ab2', class: createColorClasses(this.color, {
|
|
312
312
|
[theme]: true,
|
|
313
313
|
'item-divider-sticky': this.sticky,
|
|
314
314
|
item: true,
|
|
315
|
-
}) }, h("slot", { key: '
|
|
315
|
+
}) }, h("slot", { key: '0f535b2cf91f2ec042aa59a89498cfa0e4d541a0', name: "start" }), h("div", { key: '867c8c1a1bd273a5f5018f77785f11d58152e8b9', class: "item-divider-inner", part: "inner" }, h("div", { key: 'c32b2a5658d27cf5d8cd8ffbfa476c02755e1afd', class: "item-divider-wrapper", part: "container" }, h("slot", { key: 'f8b0fea29a910cd2e36301586532be3a8348c31e' })), h("slot", { key: '418750f630c851cf04b6a278c1666c6cf33c113c', name: "end" }))));
|
|
316
316
|
}
|
|
317
317
|
get el() { return getElement(this); }
|
|
318
318
|
};
|
|
@@ -334,7 +334,7 @@ const ItemGroup = class {
|
|
|
334
334
|
}
|
|
335
335
|
render() {
|
|
336
336
|
const theme = getIonTheme(this);
|
|
337
|
-
return (h(Host, { key: '
|
|
337
|
+
return (h(Host, { key: '017c8f7cd0258e1864423337ddd1b1cb522f64ed', role: "group", class: {
|
|
338
338
|
[theme]: true,
|
|
339
339
|
// Used internally for styling
|
|
340
340
|
[`item-group-${theme}`]: true,
|
|
@@ -408,13 +408,13 @@ const Label = class {
|
|
|
408
408
|
render() {
|
|
409
409
|
const position = this.position;
|
|
410
410
|
const theme = getIonTheme(this);
|
|
411
|
-
return (h(Host, { key: '
|
|
411
|
+
return (h(Host, { key: 'b1f261db441bcb0a325a5b3e21da17764a56f17c', class: createColorClasses(this.color, {
|
|
412
412
|
[theme]: true,
|
|
413
413
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
414
414
|
[`label-${position}`]: position !== undefined,
|
|
415
415
|
[`label-no-animate`]: this.noAnimate,
|
|
416
416
|
'label-rtl': document.dir === 'rtl',
|
|
417
|
-
}) }, h("slot", { key: '
|
|
417
|
+
}) }, h("slot", { key: '490444c8c0d4cf72eae3f8abfb7ed7ecc30bb213' })));
|
|
418
418
|
}
|
|
419
419
|
get el() { return getElement(this); }
|
|
420
420
|
static get watchers() { return {
|
|
@@ -478,7 +478,7 @@ const List = class {
|
|
|
478
478
|
const theme = getIonTheme(this);
|
|
479
479
|
const shape = this.getShape();
|
|
480
480
|
const { lines, inset } = this;
|
|
481
|
-
return (h(Host, { key: '
|
|
481
|
+
return (h(Host, { key: '9be30ff6e75e020c0db7054800cb874efef26bd8', role: "list", class: {
|
|
482
482
|
[theme]: true,
|
|
483
483
|
// Used internally for styling
|
|
484
484
|
[`list-${theme}`]: true,
|
|
@@ -509,10 +509,10 @@ const ListHeader = class {
|
|
|
509
509
|
render() {
|
|
510
510
|
const { lines } = this;
|
|
511
511
|
const theme = getIonTheme(this);
|
|
512
|
-
return (h(Host, { key: '
|
|
512
|
+
return (h(Host, { key: '7a1632a069317285210f4aeae50a6f2ef6955c56', class: createColorClasses(this.color, {
|
|
513
513
|
[theme]: true,
|
|
514
514
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
515
|
-
}) }, h("div", { key: '
|
|
515
|
+
}) }, h("div", { key: 'a9a9463f209023da222f38a78126d5aaeb2f03b9', class: "list-header-inner", part: "inner" }, h("slot", { key: 'e3c6ec1b588392d347844d59d338abc339e80634' }))));
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
ListHeader.style = {
|
|
@@ -533,9 +533,9 @@ const Note = class {
|
|
|
533
533
|
}
|
|
534
534
|
render() {
|
|
535
535
|
const theme = getIonTheme(this);
|
|
536
|
-
return (h(Host, { key: '
|
|
536
|
+
return (h(Host, { key: '376ae1c66c19d1bdd74a2371c0639ed9e49648b5', class: createColorClasses(this.color, {
|
|
537
537
|
[theme]: true,
|
|
538
|
-
}) }, h("slot", { key: '
|
|
538
|
+
}) }, h("slot", { key: 'f8168cd88bb21c5e5a2b03c29539729fb38a19fd' })));
|
|
539
539
|
}
|
|
540
540
|
};
|
|
541
541
|
Note.style = {
|
|
@@ -571,11 +571,11 @@ const SkeletonText = class {
|
|
|
571
571
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
572
572
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
573
573
|
const theme = getIonTheme(this);
|
|
574
|
-
return (h(Host, { key: '
|
|
574
|
+
return (h(Host, { key: '370451ee8963b776079f5df365f7bbd70a53b270', class: {
|
|
575
575
|
[theme]: true,
|
|
576
576
|
'skeleton-text-animated': animated,
|
|
577
577
|
'in-media': inMedia,
|
|
578
|
-
} }, h("span", { key: '
|
|
578
|
+
} }, h("span", { key: '2b861b4ec86cbd61927ab7b81b13517c99dc94c7' }, "\u00A0")));
|
|
579
579
|
}
|
|
580
580
|
get el() { return getElement(this); }
|
|
581
581
|
};
|
|
@@ -278,9 +278,9 @@ const Loading = class {
|
|
|
278
278
|
* Otherwise, don't set aria-labelledby.
|
|
279
279
|
*/
|
|
280
280
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
281
|
-
return (h(Host, Object.assign({ key: '
|
|
281
|
+
return (h(Host, Object.assign({ key: '2ffae36b20a7d7f3a752a062d90062583e31d053', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
282
282
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
283
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
283
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: 'a6d8cac2c34a0905ec67a2c64be7ec12cc84f168', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'cd011d86f20869096a8546f098fb5edad44033a1', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '70298be2139d6004e0f8fc5a85c5d05f1efdc347', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '32aef90695d91e0a82696abbce96ba29cb1a2608', class: "loading-spinner" }, h("ion-spinner", { key: '7ae69c27be273cf3e83230dae043168df27ac27e', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: 'f13a01b31516c3fe85dd3a623962290c03e7412f', tabindex: "0", "aria-hidden": "true" })));
|
|
284
284
|
}
|
|
285
285
|
get el() { return getElement(this); }
|
|
286
286
|
static get watchers() { return {
|