@ionic/core 7.8.0 → 7.8.1-dev.11710449785.14ebd5a0
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-datetime-button.js +1 -1
- package/components/ion-datetime.js +7 -6
- package/components/ion-fab-button.js +2 -2
- package/components/ion-fab-list.js +2 -2
- package/components/ion-fab.js +2 -2
- package/components/ion-footer.js +2 -2
- package/components/ion-grid.js +2 -2
- package/components/ion-header.js +2 -2
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +2 -2
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-picker.js +2 -2
- package/components/ion-progress-bar.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-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toolbar.js +2 -2
- package/components/label.js +1 -1
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/note.js +2 -2
- package/components/picker-column-internal.js +8 -4
- package/components/picker-column.js +2 -2
- package/components/picker-internal.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +9 -9
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +11 -10
- package/dist/cjs/ion-fab_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- 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 +3 -3
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +8 -4
- package/dist/cjs/ion-picker-internal.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 +1 -1
- 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 +4 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- 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-toast.cjs.entry.js +2 -2
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +4 -0
- package/dist/collection/components/datetime/datetime.js +7 -6
- package/dist/collection/components/datetime-button/datetime-button.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- package/dist/collection/components/fab-list/fab-list.js +2 -2
- package/dist/collection/components/footer/footer.js +2 -2
- 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 +1 -1
- 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/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 +1 -1
- 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 +3 -3
- 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/picker.js +2 -2
- package/dist/collection/components/picker-column/picker-column.js +2 -2
- package/dist/collection/components/picker-column-internal/picker-column-internal.js +8 -4
- package/dist/collection/components/picker-internal/picker-internal.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-group/radio-group.js +1 -1
- 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 +1 -1
- package/dist/collection/components/row/row.js +1 -1
- 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 +3 -3
- 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/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 +1 -1
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +2 -2
- package/dist/esm/ion-app_8.entry.js +9 -9
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +11 -10
- package/dist/esm/ion-fab_3.entry.js +6 -6
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- 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 +3 -3
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-internal.entry.js +8 -4
- package/dist/esm/ion-picker-internal.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 +1 -1
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- 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_2.entry.js +5 -5
- package/dist/esm/ion-select_3.entry.js +2 -2
- 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-toast.entry.js +2 -2
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/html.html-data.json +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-08a5d8eb.entry.js → p-0188824c.entry.js} +1 -1
- package/dist/ionic/{p-ba385465.system.entry.js → p-079817f9.system.entry.js} +1 -1
- package/dist/ionic/{p-b13b7128.system.entry.js → p-0971ee6d.system.entry.js} +1 -1
- package/dist/ionic/{p-db6a5af3.system.entry.js → p-0dbbf52a.system.entry.js} +1 -1
- package/dist/ionic/{p-f5bc27d6.system.entry.js → p-0eb111e7.system.entry.js} +1 -1
- package/dist/ionic/{p-996922b4.system.entry.js → p-0ef05e5d.system.entry.js} +1 -1
- package/dist/ionic/{p-86438241.system.entry.js → p-0fa9c8f7.system.entry.js} +1 -1
- package/dist/ionic/{p-8f466a2c.system.entry.js → p-11d480a7.system.entry.js} +1 -1
- package/dist/ionic/{p-f9f7b24a.system.entry.js → p-1561982b.system.entry.js} +1 -1
- package/dist/ionic/{p-45ea497f.entry.js → p-15ced5aa.entry.js} +1 -1
- package/dist/ionic/p-2055bdba.entry.js +4 -0
- package/dist/ionic/{p-cf88a096.system.entry.js → p-25f56cd7.system.entry.js} +1 -1
- package/dist/ionic/{p-6a0a3e18.system.entry.js → p-2791b018.system.entry.js} +1 -1
- package/dist/ionic/{p-e59803ca.entry.js → p-2b78245e.entry.js} +1 -1
- package/dist/ionic/{p-72c8ca65.system.entry.js → p-2bc25d50.system.entry.js} +2 -2
- package/dist/ionic/{p-479402e1.entry.js → p-2c94053b.entry.js} +1 -1
- package/dist/ionic/{p-9074a84e.system.entry.js → p-2d88f64e.system.entry.js} +1 -1
- package/dist/ionic/{p-bc56a728.entry.js → p-2fec06f2.entry.js} +1 -1
- package/dist/ionic/p-327f8d66.entry.js +4 -0
- package/dist/ionic/{p-c7d8cec2.entry.js → p-3b85bb44.entry.js} +1 -1
- package/dist/ionic/{p-059fcb53.system.entry.js → p-43438ce1.system.entry.js} +2 -2
- package/dist/ionic/{p-2b77099e.system.entry.js → p-45362829.system.entry.js} +1 -1
- package/dist/ionic/p-46ca8bb1.entry.js +4 -0
- package/dist/ionic/{p-08410e29.system.entry.js → p-4e74f845.system.entry.js} +1 -1
- package/dist/ionic/{p-7b809cc0.system.entry.js → p-4f73a163.system.entry.js} +1 -1
- package/dist/ionic/{p-345e2dac.system.entry.js → p-51dd4f12.system.entry.js} +1 -1
- package/dist/ionic/{p-5d8fca58.entry.js → p-51ebe7c6.entry.js} +1 -1
- package/dist/ionic/{p-cfe767f1.entry.js → p-526258be.entry.js} +1 -1
- package/dist/ionic/{p-fef4907e.system.entry.js → p-58b335fd.system.entry.js} +1 -1
- package/dist/ionic/{p-3377236e.entry.js → p-5e3e64b5.entry.js} +1 -1
- package/dist/ionic/{p-b9b8e462.system.entry.js → p-5f3fc112.system.entry.js} +1 -1
- package/dist/ionic/p-60c9fd9e.system.js +1 -1
- package/dist/ionic/{p-3ca0c7f2.entry.js → p-62f36e54.entry.js} +1 -1
- package/dist/ionic/{p-e8d46a2e.entry.js → p-65409f36.entry.js} +1 -1
- package/dist/ionic/p-6a110cb2.entry.js +4 -0
- package/dist/ionic/p-6ec0c1ee.system.entry.js +4 -0
- package/dist/ionic/{p-4830fae8.system.entry.js → p-7126abb8.system.entry.js} +1 -1
- package/dist/ionic/{p-b0ccd173.system.entry.js → p-7186eb03.system.entry.js} +1 -1
- package/dist/ionic/{p-6b5630b9.system.entry.js → p-7c91266e.system.entry.js} +1 -1
- package/dist/ionic/{p-f5dce0c6.entry.js → p-80808af6.entry.js} +1 -1
- package/dist/ionic/{p-33dd4d0b.system.entry.js → p-8a21c7b4.system.entry.js} +1 -1
- package/dist/ionic/{p-09fc100a.entry.js → p-8be61e52.entry.js} +1 -1
- package/dist/ionic/{p-e4bf5d87.system.entry.js → p-8e127a08.system.entry.js} +1 -1
- package/dist/ionic/{p-0e7c8334.system.entry.js → p-966a5ae4.system.entry.js} +1 -1
- package/dist/ionic/{p-ae3aeb39.entry.js → p-98bac954.entry.js} +1 -1
- package/dist/ionic/{p-231a3636.system.entry.js → p-a53d569a.system.entry.js} +1 -1
- package/dist/ionic/{p-3270e211.entry.js → p-a7959307.entry.js} +1 -1
- package/dist/ionic/{p-7f865669.entry.js → p-ab7c79d9.entry.js} +1 -1
- package/dist/ionic/p-b7aec03b.entry.js +4 -0
- package/dist/ionic/p-bbb655e2.system.entry.js +4 -0
- package/dist/ionic/{p-ca935c03.entry.js → p-bc68a14a.entry.js} +1 -1
- package/dist/ionic/{p-36a80e5c.entry.js → p-c0d7aace.entry.js} +1 -1
- package/dist/ionic/{p-04721936.system.entry.js → p-c1a58ab3.system.entry.js} +1 -1
- package/dist/ionic/{p-84283745.entry.js → p-c63a69cd.entry.js} +1 -1
- package/dist/ionic/{p-8ce6d551.entry.js → p-c99bfffe.entry.js} +1 -1
- package/dist/ionic/{p-c6f9f608.entry.js → p-d637b857.entry.js} +1 -1
- package/dist/ionic/{p-09b047e0.entry.js → p-dd5a925f.entry.js} +1 -1
- package/dist/ionic/{p-c711b464.entry.js → p-deb09b58.entry.js} +1 -1
- package/dist/ionic/{p-95c2fa04.entry.js → p-e2236935.entry.js} +1 -1
- package/dist/ionic/{p-abcc9680.entry.js → p-e631799d.entry.js} +1 -1
- package/dist/ionic/{p-e155f315.system.entry.js → p-e6c115f6.system.entry.js} +1 -1
- package/dist/ionic/{p-8c74bd0e.system.entry.js → p-e7bdaac8.system.entry.js} +2 -2
- package/dist/ionic/p-f520f6a5.entry.js +4 -0
- package/dist/ionic/{p-cfd31f45.system.entry.js → p-f89380a5.system.entry.js} +1 -1
- package/dist/ionic/p-f98bd898.entry.js +4 -0
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/hydrate/index.js +109 -104
- package/package.json +1 -1
- package/dist/ionic/p-1522bf28.entry.js +0 -4
- package/dist/ionic/p-4abb3f9e.entry.js +0 -4
- package/dist/ionic/p-a722d78f.system.entry.js +0 -4
- package/dist/ionic/p-addb7662.entry.js +0 -4
- package/dist/ionic/p-b80ef521.entry.js +0 -4
- package/dist/ionic/p-c05202a7.entry.js +0 -4
- package/dist/ionic/p-d070ab1e.system.entry.js +0 -4
- package/dist/ionic/p-de0392f4.entry.js +0 -4
- package/dist/ionic/p-e02681a6.entry.js +0 -4
|
@@ -153,10 +153,10 @@ const Grid = class {
|
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
155
|
const mode = getIonMode(this);
|
|
156
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: '265ab989098511c0b7e7d99edc792081f3ac7dfe', class: {
|
|
157
157
|
[mode]: true,
|
|
158
158
|
'grid-fixed': this.fixed,
|
|
159
|
-
} }, h("slot", { key: '
|
|
159
|
+
} }, h("slot", { key: '83e3ea4d1a60d1a6dab6b592e70a98924c0cfd7c' })));
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
Grid.style = IonGridStyle0;
|
|
@@ -169,7 +169,7 @@ const Row = class {
|
|
|
169
169
|
registerInstance(this, hostRef);
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '36d12784e6f8339a1d03ff6f03af5c7b3f437293', class: getIonMode(this) }, h("slot", { key: '54cc627f95bb091d31a550aca00b14ab73d2f1bf' })));
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
Row.style = IonRowStyle0;
|
|
@@ -334,7 +334,7 @@ const DatetimeButton = class {
|
|
|
334
334
|
render() {
|
|
335
335
|
const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
|
|
336
336
|
const mode = getIonMode(this);
|
|
337
|
-
return (h(Host, { key: '
|
|
337
|
+
return (h(Host, { key: 'a38773e24ea0a28315be89baf0ef97f564b5d74b', class: createColorClasses(color, {
|
|
338
338
|
[mode]: true,
|
|
339
339
|
[`${selectedButton}-active`]: datetimeActive,
|
|
340
340
|
['datetime-button-disabled']: disabled,
|
|
@@ -1000,6 +1000,7 @@ const Datetime = class {
|
|
|
1000
1000
|
this.initializeKeyboardListeners();
|
|
1001
1001
|
}
|
|
1002
1002
|
componentDidLoad() {
|
|
1003
|
+
const { el, intersectionTrackerRef } = this;
|
|
1003
1004
|
/**
|
|
1004
1005
|
* If a scrollable element is hidden using `display: none`,
|
|
1005
1006
|
* it will not have a scroll height meaning we cannot scroll elements
|
|
@@ -1025,14 +1026,14 @@ const Datetime = class {
|
|
|
1025
1026
|
this.el.classList.add('datetime-ready');
|
|
1026
1027
|
});
|
|
1027
1028
|
};
|
|
1028
|
-
const visibleIO = new IntersectionObserver(visibleCallback, { threshold: 0.01 });
|
|
1029
|
+
const visibleIO = new IntersectionObserver(visibleCallback, { threshold: 0.01, root: el });
|
|
1029
1030
|
/**
|
|
1030
1031
|
* Use raf to avoid a race condition between the component loading and
|
|
1031
1032
|
* its display animation starting (such as when shown in a modal). This
|
|
1032
1033
|
* could cause the datetime to start at a visibility of 0, erroneously
|
|
1033
1034
|
* triggering the `hiddenIO` observer below.
|
|
1034
1035
|
*/
|
|
1035
|
-
raf(() => visibleIO === null || visibleIO === void 0 ? void 0 : visibleIO.observe(
|
|
1036
|
+
raf(() => visibleIO === null || visibleIO === void 0 ? void 0 : visibleIO.observe(intersectionTrackerRef));
|
|
1036
1037
|
/**
|
|
1037
1038
|
* We need to clean up listeners when the datetime is hidden
|
|
1038
1039
|
* in a popover/modal so that we can properly scroll containers
|
|
@@ -1058,8 +1059,8 @@ const Datetime = class {
|
|
|
1058
1059
|
this.el.classList.remove('datetime-ready');
|
|
1059
1060
|
});
|
|
1060
1061
|
};
|
|
1061
|
-
const hiddenIO = new IntersectionObserver(hiddenCallback, { threshold: 0 });
|
|
1062
|
-
raf(() => hiddenIO === null || hiddenIO === void 0 ? void 0 : hiddenIO.observe(
|
|
1062
|
+
const hiddenIO = new IntersectionObserver(hiddenCallback, { threshold: 0, root: el });
|
|
1063
|
+
raf(() => hiddenIO === null || hiddenIO === void 0 ? void 0 : hiddenIO.observe(intersectionTrackerRef));
|
|
1063
1064
|
/**
|
|
1064
1065
|
* Datetime uses Ionic components that emit
|
|
1065
1066
|
* ionFocus and ionBlur. These events are
|
|
@@ -1810,7 +1811,7 @@ const Datetime = class {
|
|
|
1810
1811
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1811
1812
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1812
1813
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1813
|
-
return (h(Host, { key: '
|
|
1814
|
+
return (h(Host, { key: '064dc72b5494a687e93e7605f7e1ec2d00f523ad', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1814
1815
|
[mode]: true,
|
|
1815
1816
|
['datetime-readonly']: readonly,
|
|
1816
1817
|
['datetime-disabled']: disabled,
|
|
@@ -1820,7 +1821,7 @@ const Datetime = class {
|
|
|
1820
1821
|
[`datetime-size-${size}`]: true,
|
|
1821
1822
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1822
1823
|
[`datetime-grid`]: isGridStyle,
|
|
1823
|
-
})) }, this.renderDatetime(mode)));
|
|
1824
|
+
})) }, h("div", { key: '258b34ca5d9bacfaa886a7de278f41a30be48c44', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1824
1825
|
}
|
|
1825
1826
|
get el() { return getElement(this); }
|
|
1826
1827
|
static get watchers() { return {
|
|
@@ -2073,11 +2074,11 @@ const Picker = class {
|
|
|
2073
2074
|
render() {
|
|
2074
2075
|
const { htmlAttributes } = this;
|
|
2075
2076
|
const mode = getIonMode(this);
|
|
2076
|
-
return (h(Host, Object.assign({ key: '
|
|
2077
|
+
return (h(Host, Object.assign({ key: 'd2a0406625c8de0604a926a807f63c7f25bf4bab', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2077
2078
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2078
2079
|
}, class: Object.assign({ [mode]: true,
|
|
2079
2080
|
// Used internally for styling
|
|
2080
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
2081
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '776a45c3df93ab4683727bb5c8ba0085f4336586', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'fc34d3838cfc5c38097dac9e749dbf7433e1a10a', tabindex: "0" }), h("div", { key: '49bf9e92e301cbe12e2e683df110cccd6c9b8042', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: 'f2810a07ea067be31c169f36cbb44ca8a5dc219b', 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: 'f2d2a4652a8e368e40d4462d2b5e4c8095001b64', class: "picker-columns" }, h("div", { key: '143ee78c8e0543f3a2f897097ff09e18f5b68016', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-column", { col: c })), h("div", { key: '47716d2e923ca096a0bd48a07fee2deae1b1a567', class: "picker-below-highlight" }))), h("div", { key: 'ecd3b459cae6492330c7c5847c2b4cd214c9c615', tabindex: "0" })));
|
|
2081
2082
|
}
|
|
2082
2083
|
get el() { return getElement(this); }
|
|
2083
2084
|
static get watchers() { return {
|
|
@@ -2434,9 +2435,9 @@ const PickerColumnCmp = class {
|
|
|
2434
2435
|
render() {
|
|
2435
2436
|
const col = this.col;
|
|
2436
2437
|
const mode = getIonMode(this);
|
|
2437
|
-
return (h(Host, { key: '
|
|
2438
|
+
return (h(Host, { key: 'b0d3c8b8315f130f1bcddcbc53ee9949676423bf', 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: {
|
|
2438
2439
|
'max-width': this.col.columnWidth,
|
|
2439
|
-
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '
|
|
2440
|
+
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '2c0471c265bc3dfa2d415da77b8a70850e74458e', 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", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2440
2441
|
}
|
|
2441
2442
|
get el() { return getElement(this); }
|
|
2442
2443
|
static get watchers() { return {
|
|
@@ -55,12 +55,12 @@ const Fab = class {
|
|
|
55
55
|
render() {
|
|
56
56
|
const { horizontal, vertical, edge } = this;
|
|
57
57
|
const mode = getIonMode(this);
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '2960656845d8ab1d643e56870cfeefbceb44fb20', class: {
|
|
59
59
|
[mode]: true,
|
|
60
60
|
[`fab-horizontal-${horizontal}`]: horizontal !== undefined,
|
|
61
61
|
[`fab-vertical-${vertical}`]: vertical !== undefined,
|
|
62
62
|
'fab-edge': edge,
|
|
63
|
-
} }, h("slot", { key: '
|
|
63
|
+
} }, h("slot", { key: 'eed164a50594167959905a90d678d417bc99098d' })));
|
|
64
64
|
}
|
|
65
65
|
get el() { return getElement(this); }
|
|
66
66
|
static get watchers() { return {
|
|
@@ -129,7 +129,7 @@ const FabButton = class {
|
|
|
129
129
|
rel: this.rel,
|
|
130
130
|
target: this.target,
|
|
131
131
|
};
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: 'c6d1a3ea95ee1fb6c86447881ff8ed7d885b9fb5', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
133
133
|
[mode]: true,
|
|
134
134
|
'fab-button-in-list': inList,
|
|
135
135
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -140,7 +140,7 @@ const FabButton = class {
|
|
|
140
140
|
'ion-activatable': true,
|
|
141
141
|
'ion-focusable': true,
|
|
142
142
|
[`fab-button-${size}`]: size !== undefined,
|
|
143
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
143
|
+
}) }, h(TagType, Object.assign({ key: 'd57e55e43e3e1fa7a255e25bfb9eb81a20200aa4' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => openURL(href, ev, this.routerDirection, this.routerAnimation) }, inheritedAttributes), h("ion-icon", { key: '561252585dc5f5ed260987fc8fef2558700b2700', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: 'd156660a55d4d849c24368ee79217e66c6423b37', class: "button-inner" }, h("slot", { key: '35d4507eec7e4f646e1ef9206b8d6c9fd5a43c37' })), mode === 'md' && h("ion-ripple-effect", null))));
|
|
144
144
|
}
|
|
145
145
|
get el() { return getElement(this); }
|
|
146
146
|
};
|
|
@@ -168,11 +168,11 @@ const FabList = class {
|
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
170
|
const mode = getIonMode(this);
|
|
171
|
-
return (h(Host, { key: '
|
|
171
|
+
return (h(Host, { key: 'edbed7730aa2f177a6fb39a89af805b9699bc9ae', class: {
|
|
172
172
|
[mode]: true,
|
|
173
173
|
'fab-list-active': this.activated,
|
|
174
174
|
[`fab-list-side-${this.side}`]: true,
|
|
175
|
-
} }, h("slot", { key: '
|
|
175
|
+
} }, h("slot", { key: '3ecb467b6d09dc02a1ab3cb76403f7c56e8ec6b2' })));
|
|
176
176
|
}
|
|
177
177
|
get el() { return getElement(this); }
|
|
178
178
|
static get watchers() { return {
|
|
@@ -76,7 +76,7 @@ const Img = class {
|
|
|
76
76
|
render() {
|
|
77
77
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
78
78
|
const { draggable } = inheritedAttributes;
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '212cb19b83defa47a677e44659eccc5e7e1bc5a2', class: getIonMode(this) }, h("img", { key: '975230d5ef5f262c8e5f040eb59cd1033241f3c8', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
80
80
|
}
|
|
81
81
|
get el() { return getElement(this); }
|
|
82
82
|
static get watchers() { return {
|
|
@@ -176,7 +176,7 @@ const InfiniteScroll = class {
|
|
|
176
176
|
render() {
|
|
177
177
|
const mode = getIonMode(this);
|
|
178
178
|
const disabled = this.disabled;
|
|
179
|
-
return (h(Host, { key: '
|
|
179
|
+
return (h(Host, { key: 'cf712b0f22fe89b41377402da44f5575118ed34f', class: {
|
|
180
180
|
[mode]: true,
|
|
181
181
|
'infinite-scroll-loading': this.isLoading,
|
|
182
182
|
'infinite-scroll-enabled': !disabled,
|
|
@@ -218,11 +218,11 @@ const InfiniteScrollContent = class {
|
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
220
|
const mode = getIonMode(this);
|
|
221
|
-
return (h(Host, { key: '
|
|
221
|
+
return (h(Host, { key: '38c67d2c7ea4c304e71dacea64add0bffab69906', class: {
|
|
222
222
|
[mode]: true,
|
|
223
223
|
// Used internally for styling
|
|
224
224
|
[`infinite-scroll-content-${mode}`]: true,
|
|
225
|
-
} }, h("div", { key: '
|
|
225
|
+
} }, h("div", { key: 'a23484ccbaf65e0e3ecb59befea425cfdbc782fd', class: "infinite-loading" }, this.loadingSpinner && (h("div", { class: "infinite-loading-spinner" }, h("ion-spinner", { name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
InfiniteScrollContent.style = {
|
|
@@ -44,12 +44,12 @@ const ItemOption = class {
|
|
|
44
44
|
href: this.href,
|
|
45
45
|
target: this.target,
|
|
46
46
|
};
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '7e208b463b2d36984791a7c9c1d24af88b468a03', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
48
48
|
[mode]: true,
|
|
49
49
|
'item-option-disabled': disabled,
|
|
50
50
|
'item-option-expandable': expandable,
|
|
51
51
|
'ion-activatable': true,
|
|
52
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
52
|
+
}) }, h(TagType, Object.assign({ key: '9f48210793e88f25b675add863453432e6d8be51' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: '3ebb5d9b7369f77ca49c8d700a95e4e2335a7f24', class: "button-inner" }, h("slot", { key: '7df01a2c40554effe0e36e7fe29ac469a89ad395', name: "top" }), h("div", { key: '1bdc411990a89a0523dd170bf4d61c2f28af3018', class: "horizontal-wrapper" }, h("slot", { key: '967a0cc8ff611439fddf28c20c3f197be1a314a5', name: "start" }), h("slot", { key: '7848ded44ce1b0e303f1c1a423fc1ae51e5997d4', name: "icon-only" }), h("slot", { key: '6076bb1a50cebe374ecd8507133eaccd2ee2d08b' }), h("slot", { key: '71505008df081744492fb22b41229ada64506834', name: "end" })), h("slot", { key: 'c213321eafe801c1ace8573b4736c2f0ab585703', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", null))));
|
|
53
53
|
}
|
|
54
54
|
get el() { return getElement(this); }
|
|
55
55
|
};
|
|
@@ -79,7 +79,7 @@ const ItemOptions = class {
|
|
|
79
79
|
render() {
|
|
80
80
|
const mode = getIonMode(this);
|
|
81
81
|
const isEnd = isEndSide(this.side);
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '42ec58a1a2a6a886309595103468d2c39e81f58b', class: {
|
|
83
83
|
[mode]: true,
|
|
84
84
|
// Used internally for styling
|
|
85
85
|
[`item-options-${mode}`]: true,
|
|
@@ -487,7 +487,7 @@ const ItemSliding = class {
|
|
|
487
487
|
}
|
|
488
488
|
render() {
|
|
489
489
|
const mode = getIonMode(this);
|
|
490
|
-
return (h(Host, { key: '
|
|
490
|
+
return (h(Host, { key: '83e1673fc5af892612deb9b49d5e792b8b0b6473', class: {
|
|
491
491
|
[mode]: true,
|
|
492
492
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
493
493
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -293,11 +293,11 @@ const ItemDivider = class {
|
|
|
293
293
|
}
|
|
294
294
|
render() {
|
|
295
295
|
const mode = getIonMode(this);
|
|
296
|
-
return (h(Host, { key: '
|
|
296
|
+
return (h(Host, { key: 'd9d5993694639e8f1ed589f0e8c3f4920ce30e02', class: createColorClasses(this.color, {
|
|
297
297
|
[mode]: true,
|
|
298
298
|
'item-divider-sticky': this.sticky,
|
|
299
299
|
item: true,
|
|
300
|
-
}) }, h("slot", { key: '
|
|
300
|
+
}) }, h("slot", { key: '1da8c38cbf07ef591ceae94b0d70bf620990e568', name: "start" }), h("div", { key: '349a581fd1688b01ce7c67da99ae22cb4a5a85f7', class: "item-divider-inner" }, h("div", { key: '80e22ba4f5da2af40bb32a445b840baa59edfbcc', class: "item-divider-wrapper" }, h("slot", { key: '6d3fb95c8eba128e56defccbcc5d4b1fa3ec4c4a' })), h("slot", { key: '83a97c131348c8cf840c30ccbf83c78edc125c14', name: "end" }))));
|
|
301
301
|
}
|
|
302
302
|
get el() { return getElement(this); }
|
|
303
303
|
};
|
|
@@ -318,7 +318,7 @@ const ItemGroup = class {
|
|
|
318
318
|
}
|
|
319
319
|
render() {
|
|
320
320
|
const mode = getIonMode(this);
|
|
321
|
-
return (h(Host, { key: '
|
|
321
|
+
return (h(Host, { key: '1d7de42c40d5f37324342fa7be2420bf6499705e', role: "group", class: {
|
|
322
322
|
[mode]: true,
|
|
323
323
|
// Used internally for styling
|
|
324
324
|
[`item-group-${mode}`]: true,
|
|
@@ -388,7 +388,7 @@ const Label = class {
|
|
|
388
388
|
render() {
|
|
389
389
|
const position = this.position;
|
|
390
390
|
const mode = getIonMode(this);
|
|
391
|
-
return (h(Host, { key: '
|
|
391
|
+
return (h(Host, { key: 'c80cc1b4dcd56f614efc1e63ca80bca2f20a7151', class: createColorClasses(this.color, {
|
|
392
392
|
[mode]: true,
|
|
393
393
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
394
394
|
[`label-${position}`]: position !== undefined,
|
|
@@ -435,7 +435,7 @@ const List = class {
|
|
|
435
435
|
render() {
|
|
436
436
|
const mode = getIonMode(this);
|
|
437
437
|
const { lines, inset } = this;
|
|
438
|
-
return (h(Host, { key: '
|
|
438
|
+
return (h(Host, { key: '7f259d2a107807065a440cca848ececa0da60458', role: "list", class: {
|
|
439
439
|
[mode]: true,
|
|
440
440
|
// Used internally for styling
|
|
441
441
|
[`list-${mode}`]: true,
|
|
@@ -466,10 +466,10 @@ const ListHeader = class {
|
|
|
466
466
|
render() {
|
|
467
467
|
const { lines } = this;
|
|
468
468
|
const mode = getIonMode(this);
|
|
469
|
-
return (h(Host, { key: '
|
|
469
|
+
return (h(Host, { key: '27a08e9dc880db9377608ea262e254b0856b0d5c', class: createColorClasses(this.color, {
|
|
470
470
|
[mode]: true,
|
|
471
471
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
472
|
-
}) }, h("div", { key: '
|
|
472
|
+
}) }, h("div", { key: 'edd68f126ee5d815e6ae13e9662e8cedbd2d46e5', class: "list-header-inner" }, h("slot", { key: 'dae94a382ef09bb90d3ff3fbb2306515acfc2014' }))));
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
ListHeader.style = {
|
|
@@ -490,9 +490,9 @@ const Note = class {
|
|
|
490
490
|
}
|
|
491
491
|
render() {
|
|
492
492
|
const mode = getIonMode(this);
|
|
493
|
-
return (h(Host, { key: '
|
|
493
|
+
return (h(Host, { key: 'de9f59a3e1700776780e61def3044901e1d1bef5', class: createColorClasses(this.color, {
|
|
494
494
|
[mode]: true,
|
|
495
|
-
}) }, h("slot", { key: '
|
|
495
|
+
}) }, h("slot", { key: '30f98649d4d31a297ab71d23ed38fa021540a8f2' })));
|
|
496
496
|
}
|
|
497
497
|
};
|
|
498
498
|
Note.style = {
|
|
@@ -525,11 +525,11 @@ const SkeletonText = class {
|
|
|
525
525
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
526
526
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
527
527
|
const mode = getIonMode(this);
|
|
528
|
-
return (h(Host, { key: '
|
|
528
|
+
return (h(Host, { key: '2d9e785d3026faf76d0e970e3bfe33258f29046b', class: {
|
|
529
529
|
[mode]: true,
|
|
530
530
|
'skeleton-text-animated': animated,
|
|
531
531
|
'in-media': inMedia,
|
|
532
|
-
} }, h("span", { key: '
|
|
532
|
+
} }, h("span", { key: 'd1800f5fd176a8daa216e8b889e427770bf64a05' }, "\u00A0")));
|
|
533
533
|
}
|
|
534
534
|
get el() { return getElement(this); }
|
|
535
535
|
};
|
|
@@ -257,9 +257,9 @@ const Loading = class {
|
|
|
257
257
|
* Otherwise, don't set aria-labelledby.
|
|
258
258
|
*/
|
|
259
259
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
260
|
-
return (h(Host, Object.assign({ key: '
|
|
260
|
+
return (h(Host, Object.assign({ key: '7d4f3df4a869e66b59ce237b50b374cac4a296d3', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
261
261
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
262
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
262
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '9d72026f73b56bc38a5317992caa17068f8402b5', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '67848b3058d4875b55cef88ccc0b5160cc9f5d9d', tabindex: "0" }), h("div", { key: 'c275700b6cd77d7a0404b59e89ea97a75a4a22e9', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { class: "loading-spinner" }, h("ion-spinner", { name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '2333ff2f0d76bebe58cba85da0e5a38262ce33e7', tabindex: "0" })));
|
|
263
263
|
}
|
|
264
264
|
get el() { return getElement(this); }
|
|
265
265
|
static get watchers() { return {
|
|
@@ -612,13 +612,13 @@ const Menu = class {
|
|
|
612
612
|
* the ionBackButton listener in the menu controller
|
|
613
613
|
* will handle closing the menu when Escape is pressed.
|
|
614
614
|
*/
|
|
615
|
-
return (h(Host, { key: '
|
|
615
|
+
return (h(Host, { key: '6c63bd340b8e2fc19b638189af44eae3627f8c0a', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
616
616
|
[mode]: true,
|
|
617
617
|
[`menu-type-${type}`]: true,
|
|
618
618
|
'menu-enabled': !disabled,
|
|
619
619
|
[`menu-side-${side}`]: true,
|
|
620
620
|
'menu-pane-visible': isPaneVisible,
|
|
621
|
-
} }, h("div", { key: '
|
|
621
|
+
} }, h("div", { key: '8cad9e601c8ca1d1dca32681937362a55311e015', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: 'ce8ab737360c3a71ac6408d21fcb71485a189827' })), h("ion-backdrop", { key: 'a7e5f9ebe98996c7f5ab0ef27223a2f24bf63646', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
622
622
|
}
|
|
623
623
|
get el() { return getElement(this); }
|
|
624
624
|
static get watchers() { return {
|
|
@@ -691,7 +691,7 @@ const MenuButton = class {
|
|
|
691
691
|
type: this.type,
|
|
692
692
|
};
|
|
693
693
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
694
|
-
return (h(Host, { key: '
|
|
694
|
+
return (h(Host, { key: '23364bf8eae83c3a422bacb0f43bf957551a7b7a', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
695
695
|
[mode]: true,
|
|
696
696
|
button: true, // ion-buttons target .button
|
|
697
697
|
'menu-button-hidden': hidden,
|
|
@@ -700,7 +700,7 @@ const MenuButton = class {
|
|
|
700
700
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
701
701
|
'ion-activatable': true,
|
|
702
702
|
'ion-focusable': true,
|
|
703
|
-
}) }, h("button", Object.assign({ key: '
|
|
703
|
+
}) }, h("button", Object.assign({ key: 'dacfa6f0881366385f3c3305fb656e5e8d4eaab8' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: '2a11edcf830bde847cca810af461f4bcffd6aa30', class: "button-inner" }, h("slot", { key: 'f6b1299cf096abe6f25e1f60ce6be2bbdfddcc73' }, h("ion-icon", { key: '32c900a4b75ab90b149227075df4598539d09b5f', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { type: "unbounded" }))));
|
|
704
704
|
}
|
|
705
705
|
get el() { return getElement(this); }
|
|
706
706
|
};
|
|
@@ -731,10 +731,10 @@ const MenuToggle = class {
|
|
|
731
731
|
render() {
|
|
732
732
|
const mode = getIonMode(this);
|
|
733
733
|
const hidden = this.autoHide && !this.visible;
|
|
734
|
-
return (h(Host, { key: '
|
|
734
|
+
return (h(Host, { key: '981008b9e03870363f2eba75d9d22823ed79753e', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
735
735
|
[mode]: true,
|
|
736
736
|
'menu-toggle-hidden': hidden,
|
|
737
|
-
} }, h("slot", { key: '
|
|
737
|
+
} }, h("slot", { key: '1c88aec9c2ee7c67ee37be71814fed35144bbea7' })));
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
MenuToggle.style = IonMenuToggleStyle0;
|
|
@@ -1645,9 +1645,9 @@ const Modal = class {
|
|
|
1645
1645
|
const mode = getIonMode(this);
|
|
1646
1646
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
1647
1647
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
1648
|
-
return (h(Host, Object.assign({ key: '
|
|
1648
|
+
return (h(Host, Object.assign({ key: '67ef0269a5e9b542d0c2acaa03a2f7f46b8cf0b5', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1649
1649
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1650
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '
|
|
1650
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: 'edd98375e98d887dbea232adb81b74f164fa058b', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { class: "modal-shadow" }), h("div", Object.assign({ key: '40437670391544b57b8a9943ef3b49de7acbd873',
|
|
1651
1651
|
/*
|
|
1652
1652
|
role and aria-modal must be used on the
|
|
1653
1653
|
same element. They must also be set inside the
|
|
@@ -1656,7 +1656,7 @@ const Modal = class {
|
|
|
1656
1656
|
*/
|
|
1657
1657
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { class: "modal-handle",
|
|
1658
1658
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
1659
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '
|
|
1659
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: 'dfe2095d9e1adb075dc09d1927ef24ea09ea5435' }))));
|
|
1660
1660
|
}
|
|
1661
1661
|
get el() { return getElement(this); }
|
|
1662
1662
|
static get watchers() { return {
|
|
@@ -895,7 +895,7 @@ const Nav = class {
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
render() {
|
|
898
|
-
return h("slot", { key: '
|
|
898
|
+
return h("slot", { key: '8254ea10bef0575c13f8b0ddbe4643bec19f2366' });
|
|
899
899
|
}
|
|
900
900
|
get el() { return getElement(this); }
|
|
901
901
|
static get watchers() { return {
|
|
@@ -937,7 +937,7 @@ const NavLink = class {
|
|
|
937
937
|
this.routerAnimation = undefined;
|
|
938
938
|
}
|
|
939
939
|
render() {
|
|
940
|
-
return h(Host, { key: '
|
|
940
|
+
return h(Host, { key: 'dfbfc1a69c48248a8861463ed31c693be6543f32', onClick: this.onClick });
|
|
941
941
|
}
|
|
942
942
|
get el() { return getElement(this); }
|
|
943
943
|
};
|
|
@@ -250,7 +250,11 @@ const PickerColumnInternal = class {
|
|
|
250
250
|
*/
|
|
251
251
|
componentWillLoad() {
|
|
252
252
|
const visibleCallback = (entries) => {
|
|
253
|
-
|
|
253
|
+
/**
|
|
254
|
+
* Browsers will sometimes group multiple IO events into a single callback.
|
|
255
|
+
* As a result, we want to grab the last/most recent event in case there are multiple events.
|
|
256
|
+
*/
|
|
257
|
+
const ev = entries[entries.length - 1];
|
|
254
258
|
if (ev.isIntersecting) {
|
|
255
259
|
const { activeItem, el } = this;
|
|
256
260
|
this.isColumnVisible = true;
|
|
@@ -339,18 +343,18 @@ const PickerColumnInternal = class {
|
|
|
339
343
|
* the attribute can be moved to datetime.tsx and set on every
|
|
340
344
|
* instance of ion-picker-column-internal there instead.
|
|
341
345
|
*/
|
|
342
|
-
return (h(Host, { key: '
|
|
346
|
+
return (h(Host, { key: 'eeb70e31fca7bff943a2fc29a3da0383520fdd84', exportparts: `${PICKER_ITEM_PART}, ${PICKER_ITEM_ACTIVE_PART}`, disabled: pickerDisabled, tabindex: pickerDisabled ? null : 0, class: createColorClasses(color, {
|
|
343
347
|
[mode]: true,
|
|
344
348
|
['picker-column-active']: isActive,
|
|
345
349
|
['picker-column-numeric-input']: numericInput,
|
|
346
|
-
}) }, h("div", { key: '
|
|
350
|
+
}) }, h("div", { key: '08cffb51ab2ce1a4b83e35b25afd2880d6949d8e', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '88389ba5287ee5e251fa36a0e13a888c8dfbf8e8', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '2dc958f37a939a0fbbc35d92482e9c64741d8f5a', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0"), items.map((item, index) => {
|
|
347
351
|
const isItemDisabled = pickerDisabled || item.disabled || false;
|
|
348
352
|
return (h("button", { tabindex: "-1", class: {
|
|
349
353
|
'picker-item': true,
|
|
350
354
|
}, "data-value": item.value, "data-index": index, onClick: (ev) => {
|
|
351
355
|
this.centerPickerItemInView(ev.target, true);
|
|
352
356
|
}, disabled: isItemDisabled, part: PICKER_ITEM_PART }, item.text));
|
|
353
|
-
}), h("div", { key: '
|
|
357
|
+
}), h("div", { key: 'd31f134aa67a10ad1b796a4e1ffbea439b2b3723', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '3015f7f774b44d349f445e585b73295814c76326', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'df165c76253e51bd6968bdcd8071ad69467bda4c', class: "picker-item picker-item-empty", "aria-hidden": "true" }, "\u00A0")));
|
|
354
358
|
}
|
|
355
359
|
get el() { return getElement(this); }
|
|
356
360
|
static get watchers() { return {
|
|
@@ -473,7 +473,7 @@ const PickerInternal = class {
|
|
|
473
473
|
this.emitInputModeChange();
|
|
474
474
|
}
|
|
475
475
|
render() {
|
|
476
|
-
return (h(Host, { key: '
|
|
476
|
+
return (h(Host, { key: '49581a3c11cd7808555c576c46b833ac9d60f71a', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, h("input", { key: '92628e29f76914b955aa11d4e45797a941821159', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
|
|
477
477
|
var _a;
|
|
478
478
|
/**
|
|
479
479
|
* The "Enter" key represents
|
|
@@ -488,7 +488,7 @@ const PickerInternal = class {
|
|
|
488
488
|
if (ev.key === 'Enter') {
|
|
489
489
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
490
490
|
}
|
|
491
|
-
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { key: '
|
|
491
|
+
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { key: '455d7ef6dd1425e882d86f49e0d817883fe222b2', class: "picker-before" }), h("div", { key: '0351296cf171d22840542eb178ec3fae1e90f5d5', class: "picker-after" }), h("div", { key: 'b4ecaa88d0bbbd69e72b3d4f27ad3bd91f3da84d', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), h("slot", { key: 'fac29c179707002861f39d2ba1ea53479d0d9b74' })));
|
|
492
492
|
}
|
|
493
493
|
get el() { return getElement(this); }
|
|
494
494
|
};
|
|
@@ -1291,9 +1291,9 @@ const Popover = class {
|
|
|
1291
1291
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
1292
1292
|
const desktop = isPlatform('desktop');
|
|
1293
1293
|
const enableArrow = arrow && !parentPopover;
|
|
1294
|
-
return (h(Host, Object.assign({ key: '
|
|
1294
|
+
return (h(Host, Object.assign({ key: 'b35e04a59d2feff922709efc5045e4e9f65db80d', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1295
1295
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1296
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '
|
|
1296
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '99d26b7ebd403061f4fe75c10b8106d5795cbbc0', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { class: "popover-arrow", part: "arrow" }), h("div", { key: '6179601846f042b7b3be20c93845464ec8bef98a', class: "popover-content", part: "content" }, h("slot", { key: '2ba4f3ba26adfd3d42fa78ca6b6561d4088be8a8' })))));
|
|
1297
1297
|
}
|
|
1298
1298
|
get el() { return getElement(this); }
|
|
1299
1299
|
static get watchers() { return {
|
|
@@ -25,7 +25,7 @@ const ProgressBar = class {
|
|
|
25
25
|
const { color, type, reversed, value, buffer } = this;
|
|
26
26
|
const paused = config.getBoolean('_testing');
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '4dbdfe17c039ed9b2e0badec30655cb9e7dac768', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses(color, {
|
|
29
29
|
[mode]: true,
|
|
30
30
|
[`progress-bar-${type}`]: true,
|
|
31
31
|
'progress-paused': paused,
|
|
@@ -356,7 +356,7 @@ const RadioGroup = class {
|
|
|
356
356
|
const { label, labelId, el, name, value } = this;
|
|
357
357
|
const mode = getIonMode(this);
|
|
358
358
|
renderHiddenInput(true, el, name, value, false);
|
|
359
|
-
return h(Host, { key: '
|
|
359
|
+
return h(Host, { key: 'c0784903ad0b3914f448cca4b91172ad3af3ed70', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
|
360
360
|
}
|
|
361
361
|
get el() { return getElement(this); }
|
|
362
362
|
static get watchers() { return {
|
|
@@ -796,7 +796,7 @@ const Refresher = class {
|
|
|
796
796
|
}
|
|
797
797
|
render() {
|
|
798
798
|
const mode = getIonMode(this);
|
|
799
|
-
return (h(Host, { key: '
|
|
799
|
+
return (h(Host, { key: 'af60b9453ee4bbf61ed9651d509700fddd91f2c2', slot: "fixed", class: {
|
|
800
800
|
[mode]: true,
|
|
801
801
|
// Used internally for styling
|
|
802
802
|
[`refresher-${mode}`]: true,
|
|
@@ -863,7 +863,7 @@ const RefresherContent = class {
|
|
|
863
863
|
const pullingIcon = this.pullingIcon;
|
|
864
864
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
865
865
|
const mode = getIonMode(this);
|
|
866
|
-
return (h(Host, { key: '
|
|
866
|
+
return (h(Host, { key: '85e47044192d174d82e0a8cc6171e862c395f385', class: mode }, h("div", { key: 'e8ce4fc1cad510da18988cb8c1e095c62a7af418', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (h("div", { class: "refresher-pulling-icon" }, h("div", { class: "spinner-arrow-container" }, h("ion-spinner", { name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (h("div", { class: "arrow-container" }, h("ion-icon", { icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (h("div", { class: "refresher-pulling-icon" }, h("ion-icon", { icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), h("div", { key: 'a55e3bd94ae381d1502da2799472b6bd1402487c', class: "refresher-refreshing" }, this.refreshingSpinner && (h("div", { class: "refresher-refreshing-icon" }, h("ion-spinner", { name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
867
867
|
}
|
|
868
868
|
get el() { return getElement(this); }
|
|
869
869
|
};
|
|
@@ -33,7 +33,7 @@ const Reorder = class {
|
|
|
33
33
|
render() {
|
|
34
34
|
const mode = getIonMode(this);
|
|
35
35
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '811f71aa6f4b45ee8a597f504af6c43d34cc8c53', class: mode }, h("slot", { key: '78e1898b412b322053fe924db7934d5840184bfc' }, h("ion-icon", { key: '171f86c625d64ce3c5b5ebc54372a6573fc437ef', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
37
37
|
}
|
|
38
38
|
get el() { return getElement(this); }
|
|
39
39
|
};
|
|
@@ -279,7 +279,7 @@ const ReorderGroup = class {
|
|
|
279
279
|
}
|
|
280
280
|
render() {
|
|
281
281
|
const mode = getIonMode(this);
|
|
282
|
-
return (h(Host, { key: '
|
|
282
|
+
return (h(Host, { key: '5a8c5c11fa48ff2cec319a1a07ba74427c2a42e5', class: {
|
|
283
283
|
[mode]: true,
|
|
284
284
|
'reorder-enabled': !this.disabled,
|
|
285
285
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -64,7 +64,7 @@ const RippleEffect = class {
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const mode = getIonMode(this);
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '9f2578664e5ff8a0a7e27cd90b2339bd430e72b8', role: "presentation", class: {
|
|
68
68
|
[mode]: true,
|
|
69
69
|
unbounded: this.unbounded,
|
|
70
70
|
} }));
|
|
@@ -878,10 +878,10 @@ const RouterLink = class {
|
|
|
878
878
|
rel: this.rel,
|
|
879
879
|
target: this.target,
|
|
880
880
|
};
|
|
881
|
-
return (h(Host, { key: '
|
|
881
|
+
return (h(Host, { key: 'ca8b357234ae511a20f6a47487bb86cbaaa5f5ef', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
882
882
|
[mode]: true,
|
|
883
883
|
'ion-activatable': true,
|
|
884
|
-
}) }, h("a", Object.assign({ key: '
|
|
884
|
+
}) }, h("a", Object.assign({ key: 'f590738389776d480014f18f599d753c68840e49' }, attrs), h("slot", { key: '525ff073d71ede310e9f790b49f7414bf5a0919b' }))));
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
RouterLink.style = IonRouterLinkStyle0;
|