@ionic/core 8.8.6-dev.11777559143.1d1ad1ad → 8.8.6-dev.11777569278.1613db2e
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-col.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.d.ts +11 -0
- package/components/ion-gallery.js +4 -0
- 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-B2rpt1JV.js +4 -0
- package/components/p-B6zr9RZN.js +4 -0
- package/components/{p-Brxa0j7O.js → p-B71c6yUH.js} +1 -1
- package/components/{p-ByuCfbYy.js → p-BCFZKMI6.js} +1 -1
- package/components/{p-C2cZvGcF.js → p-BFbsici0.js} +1 -1
- package/components/{p-CoarhFWH.js → p-BLCuPAtN.js} +1 -1
- package/components/{p-GnGGIfCd.js → p-BRWWcnBq.js} +1 -1
- package/components/{p-BfHB6wX_.js → p-BXcCGjEc.js} +1 -1
- package/components/{p-BU8N7ZrK.js → p-BqImG3uk.js} +1 -1
- package/components/{p-D5lMX0xt.js → p-C8ktKu9j.js} +1 -1
- package/components/{p-BhfW3d9j.js → p-CIoAIKEr.js} +1 -1
- package/components/p-CN-WzkJE.js +4 -0
- package/components/{p-CnwZE7CW.js → p-CoFqDNc5.js} +1 -1
- package/components/{p-TpZHKDyk.js → p-DAv9P_LE.js} +1 -1
- package/components/{p-CeYwuysM.js → p-DH_9VCbD.js} +1 -1
- package/components/{p-CdYTq34D.js → p-DTtRWhIZ.js} +1 -1
- package/components/{p-C-_EGKki.js → p-DXUyXgVL.js} +1 -1
- package/components/{p-BTYqyHph.js → p-Di5rHO3q.js} +1 -1
- package/components/{p-BtAlyZ0b.js → p-IMXp2Inn.js} +1 -1
- package/components/{p-DAeMHNER.js → p-TR4ubkPu.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 +8 -6
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-gallery.cjs.entry.js +330 -0
- 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 +3 -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 +6 -0
- package/dist/collection/components/col/col.js +3 -2
- package/dist/collection/components/gallery/gallery-interface.js +1 -0
- package/dist/collection/components/gallery/gallery.css +103 -0
- package/dist/collection/components/gallery/gallery.js +421 -0
- package/dist/collection/components/gallery/test/utils.js +100 -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 +3 -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/collection/utils/media.js +1 -0
- package/dist/docs.json +212 -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 +8 -6
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-gallery.entry.js +328 -0
- 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 +3 -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 +70 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-96549175.entry.js → p-00c0bd38.entry.js} +1 -1
- package/dist/ionic/{p-79ae0425.entry.js → p-05a30032.entry.js} +1 -1
- package/dist/ionic/{p-192e7509.entry.js → p-15e3e8f5.entry.js} +1 -1
- package/dist/ionic/{p-5ac21be2.entry.js → p-1709b0aa.entry.js} +1 -1
- package/dist/ionic/{p-2bf931ae.entry.js → p-1c2c1869.entry.js} +1 -1
- package/dist/ionic/{p-3bf01c2c.entry.js → p-1c4de46b.entry.js} +1 -1
- package/dist/ionic/p-1e1c8d61.entry.js +4 -0
- package/dist/ionic/p-24b35f99.entry.js +4 -0
- package/dist/ionic/p-2aa7567e.entry.js +4 -0
- package/dist/ionic/{p-bc5713f7.entry.js → p-2ad79c23.entry.js} +1 -1
- package/dist/ionic/{p-5a3fc28e.entry.js → p-2f0073af.entry.js} +1 -1
- package/dist/ionic/{p-59b4f8d0.entry.js → p-3f79f594.entry.js} +1 -1
- package/dist/ionic/p-4079cee3.entry.js +4 -0
- package/dist/ionic/{p-f061fcb7.entry.js → p-48026d15.entry.js} +1 -1
- package/dist/ionic/{p-4091ad21.entry.js → p-50b61fab.entry.js} +1 -1
- package/dist/ionic/{p-8516eb69.entry.js → p-50cd2d57.entry.js} +1 -1
- package/dist/ionic/{p-50d90690.entry.js → p-5274f999.entry.js} +1 -1
- package/dist/ionic/{p-3093958a.entry.js → p-586d4270.entry.js} +1 -1
- package/dist/ionic/{p-b8b20b7e.entry.js → p-71b6014c.entry.js} +1 -1
- package/dist/ionic/{p-9b9b1450.entry.js → p-72491468.entry.js} +1 -1
- package/dist/ionic/{p-f740c359.entry.js → p-7d5057c4.entry.js} +1 -1
- package/dist/ionic/{p-091a95ea.entry.js → p-83c693c4.entry.js} +1 -1
- package/dist/ionic/{p-2aa44c65.entry.js → p-8537b2fb.entry.js} +1 -1
- package/dist/ionic/{p-a53a3ecc.entry.js → p-8f127a9c.entry.js} +1 -1
- package/dist/ionic/{p-98c34fd7.entry.js → p-9d789053.entry.js} +1 -1
- package/dist/ionic/{p-1faf270d.entry.js → p-a9fb086b.entry.js} +1 -1
- package/dist/ionic/{p-e7f216ae.entry.js → p-ae667493.entry.js} +1 -1
- package/dist/ionic/{p-edb0b0c8.entry.js → p-b2fe6c1c.entry.js} +1 -1
- package/dist/ionic/{p-2effd05d.entry.js → p-b3c9f19c.entry.js} +1 -1
- package/dist/ionic/{p-6c8c37c2.entry.js → p-b653f4c2.entry.js} +1 -1
- package/dist/ionic/{p-4e46439d.entry.js → p-bd71a4a7.entry.js} +1 -1
- package/dist/ionic/p-bf972309.entry.js +4 -0
- package/dist/ionic/{p-8180abe5.entry.js → p-c10fa162.entry.js} +1 -1
- package/dist/ionic/{p-d954cd19.entry.js → p-d4ed5710.entry.js} +1 -1
- package/dist/ionic/{p-228b6a9c.entry.js → p-d6299c37.entry.js} +1 -1
- package/dist/ionic/{p-b0c54b4c.entry.js → p-d976e777.entry.js} +1 -1
- package/dist/ionic/{p-4610e447.entry.js → p-e18d3fdb.entry.js} +1 -1
- package/dist/ionic/{p-1855fcb6.entry.js → p-e3abffbe.entry.js} +1 -1
- package/dist/ionic/{p-4c864eb2.entry.js → p-fad05840.entry.js} +1 -1
- package/dist/types/components/gallery/gallery-interface.d.ts +9 -0
- package/dist/types/components/gallery/gallery.d.ts +125 -0
- package/dist/types/components/gallery/test/utils.d.ts +2 -0
- package/dist/types/components.d.ts +66 -0
- package/hydrate/index.js +469 -126
- package/hydrate/index.mjs +469 -126
- package/package.json +1 -1
- package/components/p-CnOTQxHB.js +0 -4
- package/components/p-XFUFdPrc.js +0 -4
- package/components/p-tYh73xQe.js +0 -4
- package/dist/ionic/p-308beb71.entry.js +0 -4
- package/dist/ionic/p-64341e32.entry.js +0 -4
- package/dist/ionic/p-76d0e7ef.entry.js +0 -4
- package/dist/ionic/p-ae4ea663.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -13108,6 +13108,7 @@ class Chip {
|
|
|
13108
13108
|
}; }
|
|
13109
13109
|
}
|
|
13110
13110
|
|
|
13111
|
+
// TODO(FW-7285): Replace with global breakpoints
|
|
13111
13112
|
const SIZE_TO_MEDIA = {
|
|
13112
13113
|
xs: '(min-width: 0px)',
|
|
13113
13114
|
sm: '(min-width: 576px)',
|
|
@@ -13131,8 +13132,9 @@ const matchBreakpoint = (breakpoint) => {
|
|
|
13131
13132
|
|
|
13132
13133
|
const colCss = () => `:host{--col-unit-size:calc( (100% - (var(--ion-grid-columns, 12) - 1) * var(--ion-grid-gap, 0px)) / var(--ion-grid-columns, 12) );-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex:1;flex:1;min-height:1px;overflow:auto}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}:host(.ion-grid-col-auto){-ms-flex:0 0 auto;flex:0 0 auto}:host([class^=ion-grid-col--]),:host([class*=" ion-grid-col--"]){-ms-flex:0 0 calc(var(--ion-grid-col-span) * var(--col-unit-size) + (var(--ion-grid-col-span) - 1) * var(--ion-grid-gap, 0px));flex:0 0 calc(var(--ion-grid-col-span) * var(--col-unit-size) + (var(--ion-grid-col-span) - 1) * var(--ion-grid-gap, 0px));max-width:calc(var(--ion-grid-col-span) * var(--col-unit-size) + (var(--ion-grid-col-span) - 1) * var(--ion-grid-gap, 0px))}:host([class^=ion-grid-offset-col--]),:host([class*=" ion-grid-offset-col--"]){--margin-calc:calc( var(--col-unit-size) * var(--ion-grid-col-margin) + (var(--ion-grid-gap, 0px) * var(--ion-grid-col-margin)) );-webkit-margin-start:var(--margin-calc);margin-inline-start:var(--margin-calc);-webkit-margin-end:0;margin-inline-end:0}:host(.ion-grid-col--1){--ion-grid-col-span:1}:host(.ion-grid-order-col--1){-ms-flex-order:1;order:1}:host(.ion-grid-offset-col--1){--ion-grid-col-margin:1}:host(.ion-grid-col--2){--ion-grid-col-span:2}:host(.ion-grid-order-col--2){-ms-flex-order:2;order:2}:host(.ion-grid-offset-col--2){--ion-grid-col-margin:2}:host(.ion-grid-col--3){--ion-grid-col-span:3}:host(.ion-grid-order-col--3){-ms-flex-order:3;order:3}:host(.ion-grid-offset-col--3){--ion-grid-col-margin:3}:host(.ion-grid-col--4){--ion-grid-col-span:4}:host(.ion-grid-order-col--4){-ms-flex-order:4;order:4}:host(.ion-grid-offset-col--4){--ion-grid-col-margin:4}:host(.ion-grid-col--5){--ion-grid-col-span:5}:host(.ion-grid-order-col--5){-ms-flex-order:5;order:5}:host(.ion-grid-offset-col--5){--ion-grid-col-margin:5}:host(.ion-grid-col--6){--ion-grid-col-span:6}:host(.ion-grid-order-col--6){-ms-flex-order:6;order:6}:host(.ion-grid-offset-col--6){--ion-grid-col-margin:6}:host(.ion-grid-col--7){--ion-grid-col-span:7}:host(.ion-grid-order-col--7){-ms-flex-order:7;order:7}:host(.ion-grid-offset-col--7){--ion-grid-col-margin:7}:host(.ion-grid-col--8){--ion-grid-col-span:8}:host(.ion-grid-order-col--8){-ms-flex-order:8;order:8}:host(.ion-grid-offset-col--8){--ion-grid-col-margin:8}:host(.ion-grid-col--9){--ion-grid-col-span:9}:host(.ion-grid-order-col--9){-ms-flex-order:9;order:9}:host(.ion-grid-offset-col--9){--ion-grid-col-margin:9}:host(.ion-grid-col--10){--ion-grid-col-span:10}:host(.ion-grid-order-col--10){-ms-flex-order:10;order:10}:host(.ion-grid-offset-col--10){--ion-grid-col-margin:10}:host(.ion-grid-col--11){--ion-grid-col-span:11}:host(.ion-grid-order-col--11){-ms-flex-order:11;order:11}:host(.ion-grid-offset-col--11){--ion-grid-col-margin:11}:host(.ion-grid-col--12){--ion-grid-col-span:12}:host(.ion-grid-order-col--12){-ms-flex-order:12;order:12}:host(.ion-grid-offset-col--12){--ion-grid-col-margin:12}`;
|
|
13133
13134
|
|
|
13135
|
+
// TODO(FW-7285): Replace with global breakpoints
|
|
13134
13136
|
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
13135
|
-
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
13137
|
+
const BREAKPOINTS$1 = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
13136
13138
|
/**
|
|
13137
13139
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
13138
13140
|
* @virtualProp {"ios" | "md" | "ionic"} theme - The theme determines the visual appearance of the component.
|
|
@@ -13147,7 +13149,7 @@ class Col {
|
|
|
13147
13149
|
// matches and grab the column value from the relevant prop if so
|
|
13148
13150
|
getColumns(property) {
|
|
13149
13151
|
let matched;
|
|
13150
|
-
for (const breakpoint of BREAKPOINTS) {
|
|
13152
|
+
for (const breakpoint of BREAKPOINTS$1) {
|
|
13151
13153
|
const matches = matchBreakpoint(breakpoint);
|
|
13152
13154
|
// Grab the value of the property, if it exists and our
|
|
13153
13155
|
// media query matches we return the value
|
|
@@ -13208,12 +13210,12 @@ class Col {
|
|
|
13208
13210
|
const colSize = this.getSizeClass();
|
|
13209
13211
|
const colOrder = this.getOrderClass();
|
|
13210
13212
|
const colOffset = this.getOffsetClass();
|
|
13211
|
-
return (hAsync(Host, { key: '
|
|
13213
|
+
return (hAsync(Host, { key: '7fc98e15bd75e9c22fe7eaf71f2f49f5d987613a', class: {
|
|
13212
13214
|
[theme]: true,
|
|
13213
13215
|
[`${colSize}`]: colSize !== undefined,
|
|
13214
13216
|
[`${colOrder}`]: colOrder !== undefined,
|
|
13215
13217
|
[`${colOffset}`]: colOffset !== undefined,
|
|
13216
|
-
} }, hAsync("slot", { key: '
|
|
13218
|
+
} }, hAsync("slot", { key: '6ed04a2c2bcdb0400354368c568e58414a60fc39' })));
|
|
13217
13219
|
}
|
|
13218
13220
|
get el() { return getElement(this); }
|
|
13219
13221
|
static get style() { return colCss(); }
|
|
@@ -18675,6 +18677,345 @@ class Footer {
|
|
|
18675
18677
|
}; }
|
|
18676
18678
|
}
|
|
18677
18679
|
|
|
18680
|
+
const galleryCss = () => `:host{display:grid;grid-template-columns:repeat(var(--internal-gallery-columns, 2), minmax(0, 1fr))}:host(.gallery-layout-uniform){gap:var(--ion-gallery-gap, 16px)}:host(.gallery-layout-uniform) ::slotted(*){aspect-ratio:1/1}:host(.gallery-layout-masonry){-ms-flex-align:start;align-items:start;-webkit-column-gap:var(--ion-gallery-gap, 16px);-moz-column-gap:var(--ion-gallery-gap, 16px);column-gap:var(--ion-gallery-gap, 16px);row-gap:0;grid-auto-rows:2px}:host(.gallery-layout-masonry) ::slotted(*){display:block;min-height:unset;margin-bottom:var(--ion-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}`;
|
|
18681
|
+
|
|
18682
|
+
// TODO(FW-7285): Replace with global breakpoints
|
|
18683
|
+
const BREAKPOINTS = {
|
|
18684
|
+
xs: 0,
|
|
18685
|
+
sm: 576,
|
|
18686
|
+
md: 768,
|
|
18687
|
+
lg: 992,
|
|
18688
|
+
xl: 1200,
|
|
18689
|
+
xxl: 1400,
|
|
18690
|
+
};
|
|
18691
|
+
const DEFAULT_COLUMNS = {
|
|
18692
|
+
xs: 2,
|
|
18693
|
+
sm: 3,
|
|
18694
|
+
md: 4,
|
|
18695
|
+
lg: 6,
|
|
18696
|
+
xl: 8,
|
|
18697
|
+
xxl: 10,
|
|
18698
|
+
};
|
|
18699
|
+
const BREAKPOINT_ORDER = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
18700
|
+
/**
|
|
18701
|
+
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
18702
|
+
* @virtualProp {"ios" | "md" | "ionic"} theme - The theme determines the visual appearance of the component.
|
|
18703
|
+
*
|
|
18704
|
+
* @slot - Content is placed in a responsive gallery layout.
|
|
18705
|
+
*/
|
|
18706
|
+
class Gallery {
|
|
18707
|
+
constructor(hostRef) {
|
|
18708
|
+
registerInstance(this, hostRef);
|
|
18709
|
+
// Keep track of whether we've warned about invalid columns to avoid
|
|
18710
|
+
// duplicate warnings on screen resize.
|
|
18711
|
+
this.hasWarnedInvalidColumns = false;
|
|
18712
|
+
/**
|
|
18713
|
+
* The visual layout of the gallery. When `uniform`, rows take up the height
|
|
18714
|
+
* of the tallest item and are spaced evenly across the gallery. Additionally,
|
|
18715
|
+
* items will have an aspect ratio of 1/1, forcing them to be square unless a
|
|
18716
|
+
* height is explicitly set. When `masonry`, items will be positioned under each
|
|
18717
|
+
* other with only the specified gap between them.
|
|
18718
|
+
*/
|
|
18719
|
+
this.layout = 'uniform';
|
|
18720
|
+
/**
|
|
18721
|
+
* The order in which items are positioned. Only applies when layout is
|
|
18722
|
+
* `masonry`. When `sequential`, items are positioned in the order they are
|
|
18723
|
+
* placed in the DOM. When `best-fit`, items are positioned under the column
|
|
18724
|
+
* with the most available space.
|
|
18725
|
+
*/
|
|
18726
|
+
this.order = 'sequential';
|
|
18727
|
+
/**
|
|
18728
|
+
* The number of columns to display. Can be set as a number or an object of
|
|
18729
|
+
* breakpoint values (e.g. `{ xs: 2, sm: 3, md: 4 }`).
|
|
18730
|
+
*/
|
|
18731
|
+
this.columns = DEFAULT_COLUMNS;
|
|
18732
|
+
/**
|
|
18733
|
+
* Listen for the slotchange event on the slot.
|
|
18734
|
+
* When the layout is `masonry`, this listener is used to schedule a resize
|
|
18735
|
+
* of the masonry grid when the slot changes. This is useful for when items
|
|
18736
|
+
* are added or removed from the gallery.
|
|
18737
|
+
*/
|
|
18738
|
+
this.onSlotChange = () => {
|
|
18739
|
+
this.scheduleMasonryResize();
|
|
18740
|
+
};
|
|
18741
|
+
/**
|
|
18742
|
+
* Measure the host and children, then compute masonry placement.
|
|
18743
|
+
*/
|
|
18744
|
+
this.resizeMasonryGrid = () => {
|
|
18745
|
+
this.masonryRaf = undefined;
|
|
18746
|
+
if (this.layout !== 'masonry') {
|
|
18747
|
+
this.clearMasonryStyles();
|
|
18748
|
+
return;
|
|
18749
|
+
}
|
|
18750
|
+
const styles = getComputedStyle(this.el);
|
|
18751
|
+
const rowHeight = parseFloat(styles.getPropertyValue('grid-auto-rows')) || 0;
|
|
18752
|
+
const rowGap = parseFloat(styles.getPropertyValue('row-gap')) || parseFloat(styles.getPropertyValue('gap')) || 0;
|
|
18753
|
+
const columnsStr = styles.getPropertyValue('--internal-gallery-columns');
|
|
18754
|
+
// Fallback to 2 columns for masonry calculations when the resolved
|
|
18755
|
+
// --internal-gallery-columns CSS value is missing or unparsable.
|
|
18756
|
+
const columns = parseInt(columnsStr, 10) || 2;
|
|
18757
|
+
const items = this.getItems();
|
|
18758
|
+
this.layoutMasonry(items, rowHeight, rowGap, columns);
|
|
18759
|
+
};
|
|
18760
|
+
}
|
|
18761
|
+
layoutChanged() {
|
|
18762
|
+
this.updateResponsiveColumns(true);
|
|
18763
|
+
this.scheduleMasonryResize();
|
|
18764
|
+
}
|
|
18765
|
+
componentDidLoad() {
|
|
18766
|
+
this.updateResponsiveColumns(true);
|
|
18767
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
18768
|
+
this.updateResponsiveColumns();
|
|
18769
|
+
this.scheduleMasonryResize();
|
|
18770
|
+
});
|
|
18771
|
+
this.resizeObserver.observe(this.el);
|
|
18772
|
+
this.scheduleMasonryResize();
|
|
18773
|
+
}
|
|
18774
|
+
disconnectedCallback() {
|
|
18775
|
+
var _a;
|
|
18776
|
+
if (this.masonryRaf !== undefined) {
|
|
18777
|
+
cancelAnimationFrame(this.masonryRaf);
|
|
18778
|
+
this.masonryRaf = undefined;
|
|
18779
|
+
}
|
|
18780
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18781
|
+
this.resizeObserver = undefined;
|
|
18782
|
+
}
|
|
18783
|
+
/**
|
|
18784
|
+
* Listen for the load event on child elements.
|
|
18785
|
+
* When the layout is `masonry`, this listener is used to schedule a resize
|
|
18786
|
+
* of the masonry grid when the child elements load. This is useful for when
|
|
18787
|
+
* images take time to load.
|
|
18788
|
+
*/
|
|
18789
|
+
onChildLoad(ev) {
|
|
18790
|
+
if (this.layout !== 'masonry') {
|
|
18791
|
+
return;
|
|
18792
|
+
}
|
|
18793
|
+
const target = ev.target;
|
|
18794
|
+
if (target !== null && this.el.contains(target)) {
|
|
18795
|
+
this.scheduleMasonryResize();
|
|
18796
|
+
}
|
|
18797
|
+
}
|
|
18798
|
+
/**
|
|
18799
|
+
* Batch masonry measurements to a single animation frame.
|
|
18800
|
+
* This avoids repeated sync layouts during rapid resize/load/slot changes.
|
|
18801
|
+
*/
|
|
18802
|
+
scheduleMasonryResize() {
|
|
18803
|
+
if (this.layout !== 'masonry') {
|
|
18804
|
+
this.clearMasonryStyles();
|
|
18805
|
+
return;
|
|
18806
|
+
}
|
|
18807
|
+
if (this.masonryRaf !== undefined) {
|
|
18808
|
+
cancelAnimationFrame(this.masonryRaf);
|
|
18809
|
+
}
|
|
18810
|
+
this.masonryRaf = requestAnimationFrame(this.resizeMasonryGrid);
|
|
18811
|
+
}
|
|
18812
|
+
/**
|
|
18813
|
+
* Normalize a columns value to a positive integer.
|
|
18814
|
+
* Returns undefined when the input cannot be interpreted as a finite number.
|
|
18815
|
+
*/
|
|
18816
|
+
sanitizeColumns(columns) {
|
|
18817
|
+
if (columns === undefined) {
|
|
18818
|
+
return undefined;
|
|
18819
|
+
}
|
|
18820
|
+
const numericColumns = typeof columns === 'number' ? columns : Number(columns);
|
|
18821
|
+
if (!Number.isFinite(numericColumns) || !Number.isInteger(numericColumns) || numericColumns <= 0) {
|
|
18822
|
+
return undefined;
|
|
18823
|
+
}
|
|
18824
|
+
return numericColumns;
|
|
18825
|
+
}
|
|
18826
|
+
/**
|
|
18827
|
+
* Check if the value is a breakpoint columns object.
|
|
18828
|
+
*/
|
|
18829
|
+
isBreakpointColumns(value) {
|
|
18830
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
18831
|
+
}
|
|
18832
|
+
/**
|
|
18833
|
+
* Check if the breakpoint columns object has any invalid values.
|
|
18834
|
+
* Returns true if any value is undefined or not a positive integer.
|
|
18835
|
+
*/
|
|
18836
|
+
hasInvalidBreakpointColumns(breakpointColumns) {
|
|
18837
|
+
for (const breakpoint of BREAKPOINT_ORDER) {
|
|
18838
|
+
const value = breakpointColumns[breakpoint];
|
|
18839
|
+
if (value !== undefined && this.sanitizeColumns(value) === undefined) {
|
|
18840
|
+
return true;
|
|
18841
|
+
}
|
|
18842
|
+
}
|
|
18843
|
+
return false;
|
|
18844
|
+
}
|
|
18845
|
+
/**
|
|
18846
|
+
* Get the columns from a responsive breakpoint map.
|
|
18847
|
+
* Returns the columns for the last matching breakpoint.
|
|
18848
|
+
*/
|
|
18849
|
+
getColumnsFromBreakpointColumns(width, breakpointColumns) {
|
|
18850
|
+
let columns;
|
|
18851
|
+
for (const bp of BREAKPOINT_ORDER) {
|
|
18852
|
+
const customValue = breakpointColumns[bp];
|
|
18853
|
+
const parsedCustom = this.sanitizeColumns(customValue);
|
|
18854
|
+
const parsedDefault = this.sanitizeColumns(DEFAULT_COLUMNS[bp]);
|
|
18855
|
+
// Use valid custom values when present; otherwise fall back to defaults per breakpoint.
|
|
18856
|
+
const resolved = customValue === undefined || parsedCustom === undefined ? parsedDefault : parsedCustom;
|
|
18857
|
+
if (resolved !== undefined && width >= BREAKPOINTS[bp]) {
|
|
18858
|
+
columns = resolved;
|
|
18859
|
+
}
|
|
18860
|
+
}
|
|
18861
|
+
return columns;
|
|
18862
|
+
}
|
|
18863
|
+
/**
|
|
18864
|
+
* Warn about an invalid columns value when it is set to a non-positive
|
|
18865
|
+
* integer or a breakpoint map object with invalid values.
|
|
18866
|
+
*/
|
|
18867
|
+
warnInvalidColumns(columns) {
|
|
18868
|
+
printIonWarning(`[ion-gallery] - Invalid "columns" value (${JSON.stringify(columns)}). Expected a positive integer or breakpoint map object (e.g. { xs: 2, md: 4 }). Falling back to default responsive columns.`, this.el);
|
|
18869
|
+
this.hasWarnedInvalidColumns = true;
|
|
18870
|
+
}
|
|
18871
|
+
/**
|
|
18872
|
+
* Resolve the active columns value for the current width. Falls back to
|
|
18873
|
+
* the default responsive columns when the provided prop is invalid.
|
|
18874
|
+
*/
|
|
18875
|
+
getColumnsForWidth(width) {
|
|
18876
|
+
const { columns, hasWarnedInvalidColumns } = this;
|
|
18877
|
+
const isBreakpointColumns = this.isBreakpointColumns(columns);
|
|
18878
|
+
const hasInvalidBreakpointColumns = isBreakpointColumns && this.hasInvalidBreakpointColumns(columns);
|
|
18879
|
+
const sanitizedColumns = isBreakpointColumns
|
|
18880
|
+
? this.getColumnsFromBreakpointColumns(width, columns)
|
|
18881
|
+
: this.sanitizeColumns(columns);
|
|
18882
|
+
if (!hasWarnedInvalidColumns &&
|
|
18883
|
+
(hasInvalidBreakpointColumns || (!isBreakpointColumns && sanitizedColumns === undefined))) {
|
|
18884
|
+
this.warnInvalidColumns(columns);
|
|
18885
|
+
}
|
|
18886
|
+
if (sanitizedColumns !== undefined) {
|
|
18887
|
+
return sanitizedColumns;
|
|
18888
|
+
}
|
|
18889
|
+
return this.getColumnsFromBreakpointColumns(width, DEFAULT_COLUMNS);
|
|
18890
|
+
}
|
|
18891
|
+
/**
|
|
18892
|
+
* Update the responsive columns for the gallery.
|
|
18893
|
+
* This is used to update the columns when the component width changes.
|
|
18894
|
+
*/
|
|
18895
|
+
updateResponsiveColumns(force = false) {
|
|
18896
|
+
const width = this.el.getBoundingClientRect().width;
|
|
18897
|
+
// Only update the columns if the component width has changed by more than
|
|
18898
|
+
// 1px or if the force flag is true. This prevents unnecessary re-renders
|
|
18899
|
+
// when the component width has not changed.
|
|
18900
|
+
if (!width || (!force && this.lastWidth !== undefined && Math.abs(this.lastWidth - width) < 1)) {
|
|
18901
|
+
return;
|
|
18902
|
+
}
|
|
18903
|
+
this.lastWidth = width;
|
|
18904
|
+
const columns = this.getColumnsForWidth(width);
|
|
18905
|
+
this.el.style.setProperty('--internal-gallery-columns', `${columns}`);
|
|
18906
|
+
}
|
|
18907
|
+
/**
|
|
18908
|
+
* Return all directly slotted HTMLElement children of the gallery.
|
|
18909
|
+
*/
|
|
18910
|
+
getItems() {
|
|
18911
|
+
return Array.from(this.el.children).filter((child) => child instanceof HTMLElement);
|
|
18912
|
+
}
|
|
18913
|
+
/**
|
|
18914
|
+
* Clear the item styles for the given item element.
|
|
18915
|
+
* This is used to switch between uniform and masonry layouts.
|
|
18916
|
+
*/
|
|
18917
|
+
clearItemStyles(itemEl) {
|
|
18918
|
+
itemEl.style.gridRowStart = '';
|
|
18919
|
+
itemEl.style.gridRowEnd = '';
|
|
18920
|
+
itemEl.style.gridColumn = '';
|
|
18921
|
+
}
|
|
18922
|
+
/**
|
|
18923
|
+
* Clear placement styles for all items when leaving masonry mode.
|
|
18924
|
+
*/
|
|
18925
|
+
clearMasonryStyles() {
|
|
18926
|
+
this.getItems().forEach((itemEl) => this.clearItemStyles(itemEl));
|
|
18927
|
+
}
|
|
18928
|
+
/**
|
|
18929
|
+
* Convert a rendered item height to the number of grid rows it should span.
|
|
18930
|
+
* Returns undefined for images that are not fully loaded yet.
|
|
18931
|
+
*/
|
|
18932
|
+
calculateRowSpan(itemEl, rowHeight, rowGap) {
|
|
18933
|
+
if (itemEl instanceof HTMLImageElement && (!itemEl.complete || itemEl.naturalHeight === 0)) {
|
|
18934
|
+
return undefined;
|
|
18935
|
+
}
|
|
18936
|
+
const height = itemEl.getBoundingClientRect().height;
|
|
18937
|
+
const itemStyles = getComputedStyle(itemEl);
|
|
18938
|
+
const marginBottom = parseFloat(itemStyles.getPropertyValue('margin-bottom')) || 0;
|
|
18939
|
+
const denominator = rowHeight + rowGap;
|
|
18940
|
+
if (!denominator || !Number.isFinite(denominator)) {
|
|
18941
|
+
return 1;
|
|
18942
|
+
}
|
|
18943
|
+
return Math.ceil((height + marginBottom + rowGap) / denominator) || 1;
|
|
18944
|
+
}
|
|
18945
|
+
/**
|
|
18946
|
+
* Get the index of the column to position the item in.
|
|
18947
|
+
* When the order is `best-fit`, the column with the shortest height is
|
|
18948
|
+
* returned. Otherwise, items are placed in the column that matches their
|
|
18949
|
+
* natural DOM order.
|
|
18950
|
+
*/
|
|
18951
|
+
getColumnIndex(index, columnHeights, columns) {
|
|
18952
|
+
const { order } = this;
|
|
18953
|
+
if (order === 'best-fit') {
|
|
18954
|
+
let columnIndex = 0;
|
|
18955
|
+
for (let i = 1; i < columns; i++) {
|
|
18956
|
+
if (columnHeights[i] < columnHeights[columnIndex]) {
|
|
18957
|
+
columnIndex = i;
|
|
18958
|
+
}
|
|
18959
|
+
}
|
|
18960
|
+
return columnIndex;
|
|
18961
|
+
}
|
|
18962
|
+
return index % columns;
|
|
18963
|
+
}
|
|
18964
|
+
/**
|
|
18965
|
+
* Apply masonry placement by assigning each item a column and row span.
|
|
18966
|
+
*/
|
|
18967
|
+
layoutMasonry(items, rowHeight, rowGap, columns) {
|
|
18968
|
+
const columnHeights = new Array(columns).fill(0);
|
|
18969
|
+
items.forEach((itemEl, i) => {
|
|
18970
|
+
const span = this.calculateRowSpan(itemEl, rowHeight, rowGap);
|
|
18971
|
+
if (span === undefined) {
|
|
18972
|
+
this.clearItemStyles(itemEl);
|
|
18973
|
+
return;
|
|
18974
|
+
}
|
|
18975
|
+
const columnIndex = this.getColumnIndex(i, columnHeights, columns);
|
|
18976
|
+
const start = columnHeights[columnIndex] + 1;
|
|
18977
|
+
itemEl.style.gridColumn = `${columnIndex + 1}`;
|
|
18978
|
+
itemEl.style.gridRowStart = `${start}`;
|
|
18979
|
+
itemEl.style.gridRowEnd = `span ${span}`;
|
|
18980
|
+
columnHeights[columnIndex] = start + span - 1;
|
|
18981
|
+
});
|
|
18982
|
+
}
|
|
18983
|
+
render() {
|
|
18984
|
+
const { layout, order } = this;
|
|
18985
|
+
const theme = getIonTheme(this);
|
|
18986
|
+
return (hAsync(Host, { key: 'c8e3d332f3bf28671cd960571c7752bdacb503eb', class: {
|
|
18987
|
+
[theme]: true,
|
|
18988
|
+
[`gallery-layout-${layout}`]: true,
|
|
18989
|
+
[`gallery-order-${order}`]: layout === 'masonry',
|
|
18990
|
+
} }, hAsync("slot", { key: 'ee0509845dfa77e0257bc01852f6b96cb78bee45', onSlotchange: this.onSlotChange })));
|
|
18991
|
+
}
|
|
18992
|
+
get el() { return getElement(this); }
|
|
18993
|
+
static get watchers() { return {
|
|
18994
|
+
"layout": [{
|
|
18995
|
+
"layoutChanged": 0
|
|
18996
|
+
}],
|
|
18997
|
+
"order": [{
|
|
18998
|
+
"layoutChanged": 0
|
|
18999
|
+
}],
|
|
19000
|
+
"columns": [{
|
|
19001
|
+
"layoutChanged": 0
|
|
19002
|
+
}]
|
|
19003
|
+
}; }
|
|
19004
|
+
static get style() { return galleryCss(); }
|
|
19005
|
+
static get cmpMeta() { return {
|
|
19006
|
+
"$flags$": 265,
|
|
19007
|
+
"$tagName$": "ion-gallery",
|
|
19008
|
+
"$members$": {
|
|
19009
|
+
"layout": [513],
|
|
19010
|
+
"order": [513],
|
|
19011
|
+
"columns": [8]
|
|
19012
|
+
},
|
|
19013
|
+
"$listeners$": [[2, "load", "onChildLoad"]],
|
|
19014
|
+
"$lazyBundleId$": "-",
|
|
19015
|
+
"$attrsToReflect$": [["layout", "layout"], ["order", "order"]]
|
|
19016
|
+
}; }
|
|
19017
|
+
}
|
|
19018
|
+
|
|
18678
19019
|
const gridCss = () => `:host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}`;
|
|
18679
19020
|
|
|
18680
19021
|
/**
|
|
@@ -18691,10 +19032,10 @@ class Grid {
|
|
|
18691
19032
|
}
|
|
18692
19033
|
render() {
|
|
18693
19034
|
const theme = getIonTheme(this);
|
|
18694
|
-
return (hAsync(Host, { key: '
|
|
19035
|
+
return (hAsync(Host, { key: '43b4e05ef076160d901c70dc37e177f19b524349', class: {
|
|
18695
19036
|
[theme]: true,
|
|
18696
19037
|
'grid-fixed': this.fixed,
|
|
18697
|
-
} }, hAsync("slot", { key: '
|
|
19038
|
+
} }, hAsync("slot", { key: 'f3805936034708e6783223ded72c0ecfd40e5fb0' })));
|
|
18698
19039
|
}
|
|
18699
19040
|
static get style() { return gridCss(); }
|
|
18700
19041
|
static get cmpMeta() { return {
|
|
@@ -19096,7 +19437,7 @@ class Header {
|
|
|
19096
19437
|
const isCondensed = collapse === 'condense';
|
|
19097
19438
|
// banner role must be at top level, so remove role if inside a menu
|
|
19098
19439
|
const roleType = getRoleType(hostContext('ion-menu', this.el), isCondensed, theme);
|
|
19099
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
19440
|
+
return (hAsync(Host, Object.assign({ key: 'b43e5f542bdcec5e94c299556183cf6d9d673438', role: roleType, class: {
|
|
19100
19441
|
[theme]: true,
|
|
19101
19442
|
// Used internally for styling
|
|
19102
19443
|
[`header-${theme}`]: true,
|
|
@@ -19104,7 +19445,7 @@ class Header {
|
|
|
19104
19445
|
[`header-collapse-${collapse}`]: true,
|
|
19105
19446
|
[`header-translucent-${theme}`]: this.translucent,
|
|
19106
19447
|
['header-divider']: divider,
|
|
19107
|
-
} }, inheritedAttributes), theme !== 'md' && translucent && hAsync("div", { key: '
|
|
19448
|
+
} }, inheritedAttributes), theme !== 'md' && translucent && hAsync("div", { key: 'fd9938f02edd38e1afc83025373ec0aec5633711', class: "header-background" }), hAsync("slot", { key: '900aaa7da5d6f08e6f94b128fa065348d595159e' })));
|
|
19108
19449
|
}
|
|
19109
19450
|
get el() { return getElement(this); }
|
|
19110
19451
|
static get style() { return {
|
|
@@ -19455,9 +19796,9 @@ class Img {
|
|
|
19455
19796
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
19456
19797
|
const { draggable } = inheritedAttributes;
|
|
19457
19798
|
const theme = getIonTheme(this);
|
|
19458
|
-
return (hAsync(Host, { key: '
|
|
19799
|
+
return (hAsync(Host, { key: '91de170493b31d6260e975b440beceb6906b6d5a', class: {
|
|
19459
19800
|
[theme]: true,
|
|
19460
|
-
} }, hAsync("img", { key: '
|
|
19801
|
+
} }, hAsync("img", { key: 'ac1f41afbece34a3e38e656733f3e55cce385b4c', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
19461
19802
|
}
|
|
19462
19803
|
get el() { return getElement(this); }
|
|
19463
19804
|
static get watchers() { return {
|
|
@@ -19762,7 +20103,7 @@ class InfiniteScroll {
|
|
|
19762
20103
|
render() {
|
|
19763
20104
|
const theme = getIonTheme(this);
|
|
19764
20105
|
const disabled = this.disabled;
|
|
19765
|
-
return (hAsync(Host, { key: '
|
|
20106
|
+
return (hAsync(Host, { key: '02beca21d668e4e605532ad5ca5a67a08c71eebb', class: {
|
|
19766
20107
|
[theme]: true,
|
|
19767
20108
|
'infinite-scroll-loading': this.isLoading,
|
|
19768
20109
|
'infinite-scroll-enabled': !disabled,
|
|
@@ -19825,11 +20166,11 @@ class InfiniteScrollContent {
|
|
|
19825
20166
|
}
|
|
19826
20167
|
render() {
|
|
19827
20168
|
const theme = getIonTheme(this);
|
|
19828
|
-
return (hAsync(Host, { key: '
|
|
20169
|
+
return (hAsync(Host, { key: 'b51954f829eeafd5ec304b3e66e330776485ffc8', class: {
|
|
19829
20170
|
[theme]: true,
|
|
19830
20171
|
// Used internally for styling
|
|
19831
20172
|
[`infinite-scroll-content-${theme}`]: true,
|
|
19832
|
-
} }, hAsync("div", { key: '
|
|
20173
|
+
} }, hAsync("div", { key: '047da7f15fe38deed592dd66d1c97e12da4545bb', class: "infinite-loading" }, this.loadingSpinner && (hAsync("div", { key: '1c05820f091052b8ee9e9ca20054495a676c21aa', class: "infinite-loading-spinner" }, hAsync("ion-spinner", { key: 'ff801e3486f3c1a4605d2a2de9b47bd7bd536698', name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
19833
20174
|
}
|
|
19834
20175
|
static get style() { return {
|
|
19835
20176
|
ionic: ionicInfiniteScrollContentMdCss(),
|
|
@@ -20577,7 +20918,7 @@ class Input {
|
|
|
20577
20918
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
20578
20919
|
*/
|
|
20579
20920
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
20580
|
-
return (hAsync(Host, { key: '
|
|
20921
|
+
return (hAsync(Host, { key: 'beeeca9939e7e416783425f67d3c9e2be6bbae99', class: createColorClasses$1(this.color, {
|
|
20581
20922
|
[theme]: true,
|
|
20582
20923
|
'has-value': hasValue,
|
|
20583
20924
|
'has-focus': hasFocus,
|
|
@@ -20590,7 +20931,7 @@ class Input {
|
|
|
20590
20931
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
20591
20932
|
'input-disabled': disabled,
|
|
20592
20933
|
'input-readonly': readonly,
|
|
20593
|
-
}) }, hAsync("label", { key: '
|
|
20934
|
+
}) }, hAsync("label", { key: 'f227df52a6ad60344f16261a82c0d0566bb8cd5b', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: 'ae6da554ce21f805361a7704139b776a9344dcb2', class: "native-wrapper", onClick: this.onLabelClick },
|
|
20594
20935
|
/**
|
|
20595
20936
|
* For the ionic theme, we render the outline container here
|
|
20596
20937
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -20600,14 +20941,14 @@ class Input {
|
|
|
20600
20941
|
* <label> element, ensuring that clicking the label text
|
|
20601
20942
|
* focuses the input.
|
|
20602
20943
|
*/
|
|
20603
|
-
theme === 'ionic' && hAsync("div", { key: '
|
|
20944
|
+
theme === 'ionic' && hAsync("div", { key: '83aa5e7ad97b0c964e31966c1d2b8771d1ecfc53', class: "input-outline" }), hAsync("slot", { key: '1931003f2b0d19508acaaffab58fee644d1f6158', name: "start" }), hAsync("input", Object.assign({ key: '33a06efb4ce0b6e67c12e77f131effb113fba73f', 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 && (hAsync("button", { key: 'd350f26cf6927ee089373ea8903db2479a0a404c', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
20604
20945
|
/**
|
|
20605
20946
|
* This prevents mobile browsers from
|
|
20606
20947
|
* blurring the input when the clear
|
|
20607
20948
|
* button is activated.
|
|
20608
20949
|
*/
|
|
20609
20950
|
ev.preventDefault();
|
|
20610
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '
|
|
20951
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '972a2d94dcf599e63aac1d73e34873a9c3d0bf94', "aria-hidden": "true", icon: inputClearIcon }))), hAsync("slot", { key: 'fac4dcaabb02f647e46276e92e3f341557170aec', name: "end" })), shouldRenderHighlight && hAsync("div", { key: 'a10e519d8d1f0dcd81ffc43b8e4086797476f753', class: "input-highlight" })), this.renderBottomContent()));
|
|
20611
20952
|
}
|
|
20612
20953
|
get el() { return getElement(this); }
|
|
20613
20954
|
static get watchers() { return {
|
|
@@ -21372,7 +21713,7 @@ class InputOTP {
|
|
|
21372
21713
|
const tabbableIndex = this.getTabbableIndex();
|
|
21373
21714
|
const pattern = this.getPattern();
|
|
21374
21715
|
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()) !== '';
|
|
21375
|
-
return (hAsync(Host, { key: '
|
|
21716
|
+
return (hAsync(Host, { key: '7a5c5dbb7e1880bd94d4b00e579af941366b1cb2', class: createColorClasses$1(color, {
|
|
21376
21717
|
[mode]: true,
|
|
21377
21718
|
'has-focus': hasFocus,
|
|
21378
21719
|
[`input-otp-size-${size}`]: true,
|
|
@@ -21380,10 +21721,10 @@ class InputOTP {
|
|
|
21380
21721
|
[`input-otp-fill-${fill}`]: true,
|
|
21381
21722
|
'input-otp-disabled': disabled,
|
|
21382
21723
|
'input-otp-readonly': readonly,
|
|
21383
|
-
}) }, hAsync("div", Object.assign({ key: '
|
|
21724
|
+
}) }, hAsync("div", Object.assign({ key: 'a4427602ea1894d53e4d0f502dbb972c93a86bff', role: "group", "aria-label": "One-time password input", class: "input-otp-group", part: "group" }, inheritedAttributes), Array.from({ length }).map((_, index) => (hAsync(Fragment, null, hAsync("div", { class: "native-wrapper", part: "container" }, hAsync("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) && hAsync("div", { class: "input-otp-separator", part: "separator" }))))), hAsync("div", { key: '7ee9d8dfd2e52875f1bfe3e3dea0494c18c12f4a', class: {
|
|
21384
21725
|
'input-otp-description': true,
|
|
21385
21726
|
'input-otp-description-hidden': !hasDescription,
|
|
21386
|
-
}, part: "description" }, hAsync("slot", { key: '
|
|
21727
|
+
}, part: "description" }, hAsync("slot", { key: '163c374e7ae5dbdb1dc12483161e5aca919a50d5' }))));
|
|
21387
21728
|
}
|
|
21388
21729
|
static get formAssociated() { return true; }
|
|
21389
21730
|
get el() { return getElement(this); }
|
|
@@ -21531,16 +21872,16 @@ class InputPasswordToggle {
|
|
|
21531
21872
|
const { color, inputPasswordHideIcon, inputPasswordShowIcon, type } = this;
|
|
21532
21873
|
const mode = getIonMode$1(this);
|
|
21533
21874
|
const isPasswordVisible = type === 'text';
|
|
21534
|
-
return (hAsync(Host, { key: '
|
|
21875
|
+
return (hAsync(Host, { key: 'c7f0805958b284005806a0cb3ed0b5cba42cecd1', class: createColorClasses$1(color, {
|
|
21535
21876
|
[mode]: true,
|
|
21536
|
-
}) }, hAsync("ion-button", { key: '
|
|
21877
|
+
}) }, hAsync("ion-button", { key: 'dee2bdeb169d1fa4943c9a8b0164b8fbb4cdfe06', mode: mode, color: color, fill: "clear", shape: "round", "aria-label": isPasswordVisible ? 'Hide password' : 'Show password', "aria-pressed": isPasswordVisible ? 'true' : 'false', type: "button", onPointerDown: (ev) => {
|
|
21537
21878
|
/**
|
|
21538
21879
|
* This prevents mobile browsers from
|
|
21539
21880
|
* blurring the input when the password toggle
|
|
21540
21881
|
* button is activated.
|
|
21541
21882
|
*/
|
|
21542
21883
|
ev.preventDefault();
|
|
21543
|
-
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: '
|
|
21884
|
+
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: 'be752db7186a7cd6fc033c7002fcb1683d93c162', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? inputPasswordHideIcon : inputPasswordShowIcon }))));
|
|
21544
21885
|
}
|
|
21545
21886
|
get el() { return getElement(this); }
|
|
21546
21887
|
static get watchers() { return {
|
|
@@ -21915,11 +22256,11 @@ class ItemDivider {
|
|
|
21915
22256
|
}
|
|
21916
22257
|
render() {
|
|
21917
22258
|
const theme = getIonTheme(this);
|
|
21918
|
-
return (hAsync(Host, { key: '
|
|
22259
|
+
return (hAsync(Host, { key: 'ede65c17ec8e42e4096f8753116923d6b8d2cc14', class: createColorClasses$1(this.color, {
|
|
21919
22260
|
[theme]: true,
|
|
21920
22261
|
'item-divider-sticky': this.sticky,
|
|
21921
22262
|
item: true,
|
|
21922
|
-
}) }, hAsync("slot", { key: '
|
|
22263
|
+
}) }, hAsync("slot", { key: '4e16384a4481326490dab1ad31218c19eb9108db', name: "start" }), hAsync("div", { key: '0bddbea071781e3372b5c7147c2fdd3ba0e29ffe', class: "item-divider-inner", part: "inner" }, hAsync("div", { key: 'dfa603352f7cc58aaa717a32507b1dbbd7b79757', class: "item-divider-wrapper", part: "container" }, hAsync("slot", { key: '4b1b67cfe72266645943f88ede9f8c61a344967d' })), hAsync("slot", { key: '6ddd72a410c449e281f5344d02324e7461ba29e8', name: "end" }))));
|
|
21923
22264
|
}
|
|
21924
22265
|
get el() { return getElement(this); }
|
|
21925
22266
|
static get style() { return {
|
|
@@ -21956,7 +22297,7 @@ class ItemGroup {
|
|
|
21956
22297
|
}
|
|
21957
22298
|
render() {
|
|
21958
22299
|
const theme = getIonTheme(this);
|
|
21959
|
-
return (hAsync(Host, { key: '
|
|
22300
|
+
return (hAsync(Host, { key: '66ad8ce335cd97703e884538bdf6ea1927a30889', role: "group", class: {
|
|
21960
22301
|
[theme]: true,
|
|
21961
22302
|
// Used internally for styling
|
|
21962
22303
|
[`item-group-${theme}`]: true,
|
|
@@ -22052,14 +22393,14 @@ class ItemOption {
|
|
|
22052
22393
|
href: this.href,
|
|
22053
22394
|
target: this.target,
|
|
22054
22395
|
};
|
|
22055
|
-
return (hAsync(Host, { key: '
|
|
22396
|
+
return (hAsync(Host, { key: 'bfade0042108ff525077dfbdfd45169ccfd6b920', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
22056
22397
|
[theme]: true,
|
|
22057
22398
|
[`item-option-${shape}`]: shape !== undefined,
|
|
22058
22399
|
[`item-option-${hue}`]: hue !== undefined,
|
|
22059
22400
|
'item-option-disabled': disabled,
|
|
22060
22401
|
'item-option-expandable': expandable,
|
|
22061
22402
|
'ion-activatable': true,
|
|
22062
|
-
}) }, hAsync(TagType, Object.assign({ key: '
|
|
22403
|
+
}) }, hAsync(TagType, Object.assign({ key: '38466b511f4a20a3728f37dbf6779b852eba531a' }, attrs, { class: "button-native", part: "native", disabled: disabled }), hAsync("span", { key: 'bb8f1b332afa2f575bcc69b340bd8f1faa5ca925', class: "button-inner", part: "inner" }, hAsync("slot", { key: '41d627511e1615283956712e1b9519bae92460f6', name: "top" }), hAsync("div", { key: 'bb949a43a586a8996933ee7528e5491beb647aa5', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: 'c0d6a73ef49082bfbdf0f542f7465d044ccb6521', name: "start" }), hAsync("slot", { key: '79c6103e680983b2c1a17f1f11dbc41224cd4016', name: "icon-only" }), hAsync("slot", { key: '6c7f17723544d3f6e8b9689b84ddf6196f1897a5' }), hAsync("slot", { key: 'e15d0e02fde71bad8ff7bab0eded7d49508a926e', name: "end" })), hAsync("slot", { key: 'c509d54d44ce33f5a34597b9d0ec29960bbcff62', name: "bottom" })), theme === 'md' && hAsync("ion-ripple-effect", { key: '412d4dc645c941d0b4356cf982be3d5bc2686f13' }))));
|
|
22063
22404
|
}
|
|
22064
22405
|
get el() { return getElement(this); }
|
|
22065
22406
|
static get style() { return {
|
|
@@ -22117,7 +22458,7 @@ class ItemOptions {
|
|
|
22117
22458
|
render() {
|
|
22118
22459
|
const theme = getIonTheme(this);
|
|
22119
22460
|
const isEnd = isEndSide(this.side);
|
|
22120
|
-
return (hAsync(Host, { key: '
|
|
22461
|
+
return (hAsync(Host, { key: 'f3bb726a28c571101791d33d946df9017f47e5ec', class: {
|
|
22121
22462
|
[theme]: true,
|
|
22122
22463
|
// Used internally for styling
|
|
22123
22464
|
[`item-options-${theme}`]: true,
|
|
@@ -22723,7 +23064,7 @@ class ItemSliding {
|
|
|
22723
23064
|
}
|
|
22724
23065
|
render() {
|
|
22725
23066
|
const theme = getIonTheme(this);
|
|
22726
|
-
return (hAsync(Host, { key: '
|
|
23067
|
+
return (hAsync(Host, { key: '321925e5582cc08b14031231603b1f1c49828b0a', class: {
|
|
22727
23068
|
[theme]: true,
|
|
22728
23069
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
22729
23070
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -22838,13 +23179,13 @@ class Label {
|
|
|
22838
23179
|
render() {
|
|
22839
23180
|
const position = this.position;
|
|
22840
23181
|
const theme = getIonTheme(this);
|
|
22841
|
-
return (hAsync(Host, { key: '
|
|
23182
|
+
return (hAsync(Host, { key: '7cbec4c1b8fe8925f44255e02cee78bc1873fd70', class: createColorClasses$1(this.color, {
|
|
22842
23183
|
[theme]: true,
|
|
22843
23184
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
22844
23185
|
[`label-${position}`]: position !== undefined,
|
|
22845
23186
|
[`label-no-animate`]: this.noAnimate,
|
|
22846
23187
|
'label-rtl': document.dir === 'rtl',
|
|
22847
|
-
}) }, hAsync("slot", { key: '
|
|
23188
|
+
}) }, hAsync("slot", { key: '6d8b4a7ab396792d7a7c0b7e259c622840b7ef9b' })));
|
|
22848
23189
|
}
|
|
22849
23190
|
get el() { return getElement(this); }
|
|
22850
23191
|
static get watchers() { return {
|
|
@@ -22924,7 +23265,7 @@ class List {
|
|
|
22924
23265
|
const theme = getIonTheme(this);
|
|
22925
23266
|
const shape = this.getShape();
|
|
22926
23267
|
const { lines, inset } = this;
|
|
22927
|
-
return (hAsync(Host, { key: '
|
|
23268
|
+
return (hAsync(Host, { key: 'f17f7af20c567ea0098b362ea04d051b44aa151a', role: "list", class: {
|
|
22928
23269
|
[theme]: true,
|
|
22929
23270
|
// Used internally for styling
|
|
22930
23271
|
[`list-${theme}`]: true,
|
|
@@ -22974,10 +23315,10 @@ class ListHeader {
|
|
|
22974
23315
|
render() {
|
|
22975
23316
|
const { lines } = this;
|
|
22976
23317
|
const theme = getIonTheme(this);
|
|
22977
|
-
return (hAsync(Host, { key: '
|
|
23318
|
+
return (hAsync(Host, { key: '90c594b0290949b159f35bd36c86c3231a1b8e44', class: createColorClasses$1(this.color, {
|
|
22978
23319
|
[theme]: true,
|
|
22979
23320
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
22980
|
-
}) }, hAsync("div", { key: '
|
|
23321
|
+
}) }, hAsync("div", { key: '9d1bde129787263edb79bc921cdf0168a2935a27', class: "list-header-inner", part: "inner" }, hAsync("slot", { key: 'fe157b5ff88355adfb09209ee92fd03c82e067ff' }))));
|
|
22981
23322
|
}
|
|
22982
23323
|
static get style() { return {
|
|
22983
23324
|
ionic: listHeaderIonicCss(),
|
|
@@ -23266,9 +23607,9 @@ class Loading {
|
|
|
23266
23607
|
* Otherwise, don't set aria-labelledby.
|
|
23267
23608
|
*/
|
|
23268
23609
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
23269
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
23610
|
+
return (hAsync(Host, Object.assign({ key: 'b1e84a0d078fac04c0736a19d067d8d49e339323', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
23270
23611
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
23271
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
23612
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '19884fd6f8bf6f704bff388ecfa245d1cd98156c', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'ecd47d503a9805a5c18f1b0d48989e54b4cb8f78', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '231821576b812ffaa90ed9ced4437e456908ad53', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: 'e18d21751a73f408bd058aa4270f245285cd57fa', class: "loading-spinner" }, hAsync("ion-spinner", { key: '478761b8a000191951e9902138483b389e1b76c4', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: '968be6c72872ce5bc8706fa37f242dcdc38efb33', tabindex: "0", "aria-hidden": "true" })));
|
|
23272
23613
|
}
|
|
23273
23614
|
get el() { return getElement(this); }
|
|
23274
23615
|
static get watchers() { return {
|
|
@@ -24329,14 +24670,14 @@ class Menu {
|
|
|
24329
24670
|
* the ionBackButton listener in the menu controller
|
|
24330
24671
|
* will handle closing the menu when Escape is pressed.
|
|
24331
24672
|
*/
|
|
24332
|
-
return (hAsync(Host, { key: '
|
|
24673
|
+
return (hAsync(Host, { key: 'd42a7b48a1464a4d71188e3a31f719c5dc296d77', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
24333
24674
|
[theme]: true,
|
|
24334
24675
|
[`menu-type-${type}`]: true,
|
|
24335
24676
|
'menu-enabled': !disabled,
|
|
24336
24677
|
[`menu-side-${side}`]: true,
|
|
24337
24678
|
'menu-pane-visible': isPaneVisible,
|
|
24338
24679
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
24339
|
-
} }, hAsync("div", { key: '
|
|
24680
|
+
} }, hAsync("div", { key: '3ffcedd178c412771657599f3d5de2cd2a717c00', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: '2d8dfdb569c4b433cbacbe2aee8a12954e157a51' })), hAsync("ion-backdrop", { key: 'e1fcbdcf6bd3aa0fa10dcf05a2b012bef196a243', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
24340
24681
|
}
|
|
24341
24682
|
get el() { return getElement(this); }
|
|
24342
24683
|
static get watchers() { return {
|
|
@@ -24470,7 +24811,7 @@ class MenuButton {
|
|
|
24470
24811
|
type: this.type,
|
|
24471
24812
|
};
|
|
24472
24813
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
24473
|
-
return (hAsync(Host, { key: '
|
|
24814
|
+
return (hAsync(Host, { key: 'd150818e749a1cbe72dc05011247023f6d442eb8', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
|
|
24474
24815
|
[theme]: true,
|
|
24475
24816
|
button: true, // ion-buttons target .button
|
|
24476
24817
|
'menu-button-hidden': hidden,
|
|
@@ -24479,7 +24820,7 @@ class MenuButton {
|
|
|
24479
24820
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
24480
24821
|
'ion-activatable': true,
|
|
24481
24822
|
'ion-focusable': true,
|
|
24482
|
-
}) }, hAsync("button", Object.assign({ key: '
|
|
24823
|
+
}) }, hAsync("button", Object.assign({ key: '88bef93aa6c1a0d5795c4a9ba3edffd99413a758' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), hAsync("span", { key: '12b2f8bc542239a35adee62d76acccff571a84d7', class: "button-inner" }, hAsync("slot", { key: '5bba549d8e92745aa34372c105cfe80e0ecbc9f5' }, hAsync("ion-icon", { key: '864ff8bf1722b7fe1f17f2a40dfc5b91cb3403f9', part: "icon", icon: menuIcon, lazy: false, "aria-hidden": "true" }))), theme === 'md' && hAsync("ion-ripple-effect", { key: '59e24ecb22970e43b51739324b11457c6e4bc117', type: "unbounded" }))));
|
|
24483
24824
|
}
|
|
24484
24825
|
get el() { return getElement(this); }
|
|
24485
24826
|
static get style() { return {
|
|
@@ -24536,10 +24877,10 @@ class MenuToggle {
|
|
|
24536
24877
|
render() {
|
|
24537
24878
|
const theme = getIonTheme(this);
|
|
24538
24879
|
const hidden = this.autoHide && !this.visible;
|
|
24539
|
-
return (hAsync(Host, { key: '
|
|
24880
|
+
return (hAsync(Host, { key: '973372d778e7902eac28b2a6a5e74165b51d60d6', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
24540
24881
|
[theme]: true,
|
|
24541
24882
|
'menu-toggle-hidden': hidden,
|
|
24542
|
-
} }, hAsync("slot", { key: '
|
|
24883
|
+
} }, hAsync("slot", { key: '760b8ffe93ae490b62f7ad6fc94ecbc8521ead64' })));
|
|
24543
24884
|
}
|
|
24544
24885
|
static get style() { return menuToggleCss(); }
|
|
24545
24886
|
static get cmpMeta() { return {
|
|
@@ -28042,20 +28383,20 @@ class Modal {
|
|
|
28042
28383
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
28043
28384
|
const shape = this.getShape();
|
|
28044
28385
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
28045
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
28386
|
+
return (hAsync(Host, Object.assign({ key: '2d3a31da1613386cf90f0d59d6b26c9a5b654d2a', "no-router": true,
|
|
28046
28387
|
// Allow the modal to be navigable when the handle is focusable
|
|
28047
28388
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
28048
28389
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
28049
|
-
}, class: Object.assign({ [theme]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-${shape}`]: shape !== undefined, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), hAsync("ion-backdrop", { key: '
|
|
28390
|
+
}, class: Object.assign({ [theme]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-${shape}`]: shape !== undefined, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), hAsync("ion-backdrop", { key: 'baf6be86f7d5053d870a4ad794c1d584985c5ba0', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), theme === 'ios' && hAsync("div", { key: 'e3b76699bc31e8dd29b09ed6091d8f9003865e15', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '3043e51b33a1e394ae731ebc49fd4df7ef71be99',
|
|
28050
28391
|
/*
|
|
28051
28392
|
role and aria-modal must be used on the
|
|
28052
28393
|
same element. They must also be set inside the
|
|
28053
28394
|
shadow DOM otherwise ion-button will not be highlighted
|
|
28054
28395
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
28055
28396
|
*/
|
|
28056
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
28397
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '19e71dc84abf18b21be76ec35229c5c5e7410c6e', class: "modal-handle",
|
|
28057
28398
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
28058
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), hAsync("slot", { key: '
|
|
28399
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), hAsync("slot", { key: '9b868070ee1be064e6b385f4783fc428c78d8084', onSlotchange: this.onSlotChange }))));
|
|
28059
28400
|
}
|
|
28060
28401
|
get el() { return getElement(this); }
|
|
28061
28402
|
static get watchers() { return {
|
|
@@ -29015,7 +29356,7 @@ class Nav {
|
|
|
29015
29356
|
}
|
|
29016
29357
|
}
|
|
29017
29358
|
render() {
|
|
29018
|
-
return hAsync("slot", { key: '
|
|
29359
|
+
return hAsync("slot", { key: '87188d8fb4232d448ef2ad8e3db29c3730b1ff9e' });
|
|
29019
29360
|
}
|
|
29020
29361
|
get el() { return getElement(this); }
|
|
29021
29362
|
static get watchers() { return {
|
|
@@ -29096,7 +29437,7 @@ class NavLink {
|
|
|
29096
29437
|
};
|
|
29097
29438
|
}
|
|
29098
29439
|
render() {
|
|
29099
|
-
return hAsync(Host, { key: '
|
|
29440
|
+
return hAsync(Host, { key: '38f3d2e7a3ae4e57ac1479436c143e6820d25cd2', onClick: this.onClick });
|
|
29100
29441
|
}
|
|
29101
29442
|
get el() { return getElement(this); }
|
|
29102
29443
|
static get cmpMeta() { return {
|
|
@@ -29130,9 +29471,9 @@ class Note {
|
|
|
29130
29471
|
}
|
|
29131
29472
|
render() {
|
|
29132
29473
|
const theme = getIonTheme(this);
|
|
29133
|
-
return (hAsync(Host, { key: '
|
|
29474
|
+
return (hAsync(Host, { key: '34a74796fc2e41549100c6611a5900d60c8d688d', class: createColorClasses$1(this.color, {
|
|
29134
29475
|
[theme]: true,
|
|
29135
|
-
}) }, hAsync("slot", { key: '
|
|
29476
|
+
}) }, hAsync("slot", { key: 'ea4c2e3b5666d10ca312e175db200134d8a30382' })));
|
|
29136
29477
|
}
|
|
29137
29478
|
static get style() { return {
|
|
29138
29479
|
ionic: ionicNoteMdCss(),
|
|
@@ -29898,11 +30239,11 @@ class Picker {
|
|
|
29898
30239
|
render() {
|
|
29899
30240
|
const { htmlAttributes } = this;
|
|
29900
30241
|
const theme = getIonTheme(this);
|
|
29901
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
30242
|
+
return (hAsync(Host, Object.assign({ key: 'b0c1fc8eee284f03c696f0c8aaa29f4a6d7be0be', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
29902
30243
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
29903
30244
|
}, class: Object.assign({ [theme]: true,
|
|
29904
30245
|
// Used internally for styling
|
|
29905
|
-
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
30246
|
+
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: 'b56a9f94c7a95efc047d7be95e76ba3a2284801d', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'f134d49a3afcfd2a809147b55949cea43fc34462', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '9ae98dc10164e182a13eaef2105894a717a03cc4', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: '96acad60c1214e13098282182fa855b19f0a386c', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: 'af26cd644ed9bb50c22f06624da3726e7e60426f', class: "picker-columns" }, hAsync("div", { key: 'c0d8bf724f7dc081c314bef61fa08894a75c657b', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: '7315333742b5b0c9533f30e5ce3dfc6ec9112dc1', class: "picker-below-highlight" }))), hAsync("div", { key: '454546aaf27319ae7973e74063c0a026cfc88834', tabindex: "0", "aria-hidden": "true" })));
|
|
29906
30247
|
}
|
|
29907
30248
|
get el() { return getElement(this); }
|
|
29908
30249
|
static get watchers() { return {
|
|
@@ -30880,9 +31221,9 @@ class PickerColumnCmp {
|
|
|
30880
31221
|
render() {
|
|
30881
31222
|
const col = this.col;
|
|
30882
31223
|
const theme = getIonTheme(this);
|
|
30883
|
-
return (hAsync(Host, { key: '
|
|
31224
|
+
return (hAsync(Host, { key: '5751788e3b7ecd2fe269c096db883b0681646270', 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: {
|
|
30884
31225
|
'max-width': this.col.columnWidth,
|
|
30885
|
-
} }, col.prefix && (hAsync("div", { key: '
|
|
31226
|
+
} }, col.prefix && (hAsync("div", { key: '833f3309c8c77e1faa773f7eaa066516dfd51067', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), hAsync("div", { key: 'a39f38e60938e70425e4d7674f5e481885b6b548', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (hAsync("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (hAsync("div", { key: 'a2f1e0eab834c85e84cee0a716eb1083aa6c7741', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
30886
31227
|
}
|
|
30887
31228
|
get el() { return getElement(this); }
|
|
30888
31229
|
static get watchers() { return {
|
|
@@ -31007,10 +31348,10 @@ class PickerColumnOption {
|
|
|
31007
31348
|
render() {
|
|
31008
31349
|
const { color, disabled, ariaLabel } = this;
|
|
31009
31350
|
const theme = getIonTheme(this);
|
|
31010
|
-
return (hAsync(Host, { key: '
|
|
31351
|
+
return (hAsync(Host, { key: '54c254f01017aa47aac76c0833f9ef04bf20bdc9', class: createColorClasses$1(color, {
|
|
31011
31352
|
[theme]: true,
|
|
31012
31353
|
['option-disabled']: disabled,
|
|
31013
|
-
}) }, hAsync("div", { key: '
|
|
31354
|
+
}) }, hAsync("div", { key: '36b21f1b7d9a5b05f0211ce8be90f66578641224', class: 'picker-column-option-button', role: "button", "aria-label": ariaLabel, onClick: () => this.onClick() }, hAsync("slot", { key: '154bf9ca37ca1c6e5d34d42c16b04203e83210be' }))));
|
|
31014
31355
|
}
|
|
31015
31356
|
get el() { return getElement(this); }
|
|
31016
31357
|
static get watchers() { return {
|
|
@@ -32579,9 +32920,9 @@ class Popover {
|
|
|
32579
32920
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
32580
32921
|
const desktop = isPlatform('desktop');
|
|
32581
32922
|
const enableArrow = arrow && !parentPopover;
|
|
32582
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
32923
|
+
return (hAsync(Host, Object.assign({ key: '43128f8b7e57f08a451af1a237534d0517d86eda', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
32583
32924
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
32584
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '
|
|
32925
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: 'c087932225f8fc872af7451fd847ab2667ae6ffb', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: '25fb1c8320099d1170f3a61766760c694d84bf0b', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '552f4b70758470fac0d2e2bd114eaf5d9b81a3ac', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: 'f19c1d60b0f4ff86bf308c5837637cd4bbd6814e', class: "popover-content", part: "content" }, hAsync("slot", { key: '00870a41134268d84e239d305bf2daed7b049c34' })))));
|
|
32585
32926
|
}
|
|
32586
32927
|
get el() { return getElement(this); }
|
|
32587
32928
|
static get watchers() { return {
|
|
@@ -32709,7 +33050,7 @@ class ProgressBar {
|
|
|
32709
33050
|
const shape = this.getShape();
|
|
32710
33051
|
// If the progress is displayed as a solid bar.
|
|
32711
33052
|
const progressSolid = buffer === 1;
|
|
32712
|
-
return (hAsync(Host, { key: '
|
|
33053
|
+
return (hAsync(Host, { key: '0f6202e25d884fb85d18578769f6cfa5c704e9d9', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
32713
33054
|
[theme]: true,
|
|
32714
33055
|
[`progress-bar-${type}`]: true,
|
|
32715
33056
|
'progress-paused': paused,
|
|
@@ -32902,7 +33243,7 @@ class Radio {
|
|
|
32902
33243
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
32903
33244
|
const theme = getIonTheme(this);
|
|
32904
33245
|
const inItem = hostContext('ion-item', el);
|
|
32905
|
-
return (hAsync(Host, { key: '
|
|
33246
|
+
return (hAsync(Host, { key: '82127b11eac97fa45886179d248c8509ca07655a', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses$1(color, {
|
|
32906
33247
|
[theme]: true,
|
|
32907
33248
|
'in-item': inItem,
|
|
32908
33249
|
'radio-checked': checked,
|
|
@@ -32913,10 +33254,10 @@ class Radio {
|
|
|
32913
33254
|
// Focus and active styling should not apply when the radio is in an item
|
|
32914
33255
|
'ion-activatable': !inItem,
|
|
32915
33256
|
'ion-focusable': !inItem,
|
|
32916
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '
|
|
33257
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '352c25ebdeeba01b85dc02b2108de988e9eb14a6', class: "radio-wrapper" }, hAsync("div", { key: '8eca395a22199d24b376c57dd52eeaa91ba51c34', class: {
|
|
32917
33258
|
'label-text-wrapper': true,
|
|
32918
33259
|
'label-text-wrapper-hidden': !hasLabel,
|
|
32919
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
33260
|
+
}, part: "label" }, hAsync("slot", { key: '9c26b977843398be61f1b753251d8fe40d65702a' })), hAsync("div", { key: '336b2d6aeb5e86dc1d994ac1eac52634f5da5b9c', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
32920
33261
|
}
|
|
32921
33262
|
get el() { return getElement(this); }
|
|
32922
33263
|
static get watchers() { return {
|
|
@@ -33186,10 +33527,10 @@ class RadioGroup {
|
|
|
33186
33527
|
const { label, labelId, el, name, value } = this;
|
|
33187
33528
|
const theme = getIonTheme(this);
|
|
33188
33529
|
renderHiddenInput(true, el, name, value, false);
|
|
33189
|
-
return (hAsync(Host, { key: '
|
|
33530
|
+
return (hAsync(Host, { key: 'c8077cb16bcc6719fa2aba1a5a9cb139e0b81a9e', class: {
|
|
33190
33531
|
[theme]: true,
|
|
33191
33532
|
'in-list': hostContext('ion-list', el),
|
|
33192
|
-
}, role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick }, this.renderHintText(), hAsync("slot", { key: '
|
|
33533
|
+
}, role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick }, this.renderHintText(), hAsync("slot", { key: 'ddeca1867cb8e74121add7616f6be9e1a202c142' })));
|
|
33193
33534
|
}
|
|
33194
33535
|
get el() { return getElement(this); }
|
|
33195
33536
|
static get watchers() { return {
|
|
@@ -34039,7 +34380,7 @@ class Range {
|
|
|
34039
34380
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
34040
34381
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
34041
34382
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
34042
|
-
return (hAsync(Host, { key: '
|
|
34383
|
+
return (hAsync(Host, { key: '6c11f7ad176a00ca5368be9ba46c29f6a9aa02bb', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
34043
34384
|
[theme]: true,
|
|
34044
34385
|
'in-item': inItem,
|
|
34045
34386
|
'range-disabled': disabled,
|
|
@@ -34053,10 +34394,10 @@ class Range {
|
|
|
34053
34394
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
34054
34395
|
'range-value-min': valueAtMin,
|
|
34055
34396
|
'range-value-max': valueAtMax,
|
|
34056
|
-
}) }, hAsync("label", { key: '
|
|
34397
|
+
}) }, hAsync("label", { key: '4ac202cf5fd17a9f69e288508e89cfe266a2c8f2', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: '1261d51ce247e066e5005f4aaa7b474ae0ddd421', class: {
|
|
34057
34398
|
'label-text-wrapper': true,
|
|
34058
34399
|
'label-text-wrapper-hidden': !hasLabel,
|
|
34059
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
34400
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '4c09b153ab02c2c80b6197c2beb73c8cd1dc9348', class: "native-wrapper" }, hAsync("slot", { key: 'a81e2e9a5442603f128fec3d1f15090615164abf', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: 'ccc0a89eb6ce714e5b67893fb6845670a7857914', name: "end" })))));
|
|
34060
34401
|
}
|
|
34061
34402
|
get el() { return getElement(this); }
|
|
34062
34403
|
static get watchers() { return {
|
|
@@ -35131,7 +35472,7 @@ class Refresher {
|
|
|
35131
35472
|
}
|
|
35132
35473
|
render() {
|
|
35133
35474
|
const theme = getIonTheme(this);
|
|
35134
|
-
return (hAsync(Host, { key: '
|
|
35475
|
+
return (hAsync(Host, { key: 'd2671f7850b565e7a6fc5b3ff15b2410bcf7cb32', slot: "fixed", class: {
|
|
35135
35476
|
[theme]: true,
|
|
35136
35477
|
// Used internally for styling
|
|
35137
35478
|
[`refresher-${theme}`]: true,
|
|
@@ -35370,9 +35711,9 @@ class RefresherContent {
|
|
|
35370
35711
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
35371
35712
|
const theme = getIonTheme(this);
|
|
35372
35713
|
const arrowIcon = theme === 'ionic' ? caretLeftFillSvg : caretBackSharp;
|
|
35373
|
-
return (hAsync(Host, { key: '
|
|
35714
|
+
return (hAsync(Host, { key: '684bf1189acba94c502e2bb421f0b65313c3e9f9', class: {
|
|
35374
35715
|
[theme]: true,
|
|
35375
|
-
} }, hAsync("div", { key: '
|
|
35716
|
+
} }, hAsync("div", { key: '29bfcc52d581913654f7639b0f669d149bf91026', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (hAsync("div", { key: 'c5ddc5a3c22ec365906e8716cdbdb8cf793bb978', class: "refresher-pulling-icon" }, hAsync("div", { key: '4314fff1f89758c81de7d908be2eaae81e8d9fb8', class: "spinner-arrow-container" }, hAsync("ion-spinner", { key: 'cea2bc74fd42c35ec6d6349f033830e745c9e99b', name: this.pullingIcon, paused: true }), (theme === 'md' || theme === 'ionic') && this.pullingIcon === 'circular' && (hAsync("div", { key: 'bfd43614c33fa6e83f67ac95022db5343af160d6', class: "arrow-container" }, hAsync("ion-icon", { key: '64f48d15dc2c17cbeb177f28272477ee8535136b', icon: arrowIcon, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (hAsync("div", { key: '6f540e79e981a923050f57167aff8da92bfe8990', class: "refresher-pulling-icon" }, hAsync("ion-icon", { key: '97b0755e0f240ec199b408a9cfef9fc48b481a68', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), hAsync("div", { key: '1cd2a284b786fa94272f88659942ff15a7344f66', class: "refresher-refreshing" }, this.refreshingSpinner && (hAsync("div", { key: '722aea4deaef0b014f49ce61a4a81ef219d0b101', class: "refresher-refreshing-icon" }, hAsync("ion-spinner", { key: '8152f4fe27037c4f34918e515ac460c1f03240d5', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
35376
35717
|
}
|
|
35377
35718
|
get el() { return getElement(this); }
|
|
35378
35719
|
static get style() { return {
|
|
@@ -35441,9 +35782,9 @@ class Reorder {
|
|
|
35441
35782
|
render() {
|
|
35442
35783
|
const { reorderHandleIcon } = this;
|
|
35443
35784
|
const theme = getIonTheme(this);
|
|
35444
|
-
return (hAsync(Host, { key: '
|
|
35785
|
+
return (hAsync(Host, { key: '2a30643d0c5dbebab97a7aca68c165ee79ceed33', class: {
|
|
35445
35786
|
[theme]: true,
|
|
35446
|
-
} }, hAsync("slot", { key: '
|
|
35787
|
+
} }, hAsync("slot", { key: '9ac45a0cc21aea6ed0ec03aa12334886219b1051' }, hAsync("ion-icon", { key: '6d6789a718db4f252c6b3b4484148be2a65c80b8', icon: reorderHandleIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
35447
35788
|
}
|
|
35448
35789
|
get el() { return getElement(this); }
|
|
35449
35790
|
static get style() { return {
|
|
@@ -35719,7 +36060,7 @@ class ReorderGroup {
|
|
|
35719
36060
|
}
|
|
35720
36061
|
render() {
|
|
35721
36062
|
const theme = getIonTheme(this);
|
|
35722
|
-
return (hAsync(Host, { key: '
|
|
36063
|
+
return (hAsync(Host, { key: 'f618089290a47bae34bcaaed968c3f8f4daa827f', class: {
|
|
35723
36064
|
[theme]: true,
|
|
35724
36065
|
'reorder-enabled': !this.disabled,
|
|
35725
36066
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -35845,7 +36186,7 @@ class RippleEffect {
|
|
|
35845
36186
|
}
|
|
35846
36187
|
render() {
|
|
35847
36188
|
const theme = getIonTheme(this);
|
|
35848
|
-
return (hAsync(Host, { key: '
|
|
36189
|
+
return (hAsync(Host, { key: 'f4db39623cfd1bdc773e222b2dd9ed52a26cc685', role: "presentation", class: {
|
|
35849
36190
|
[theme]: true,
|
|
35850
36191
|
unbounded: this.unbounded,
|
|
35851
36192
|
} }));
|
|
@@ -36830,10 +37171,10 @@ class RouterLink {
|
|
|
36830
37171
|
rel: this.rel,
|
|
36831
37172
|
target: this.target,
|
|
36832
37173
|
};
|
|
36833
|
-
return (hAsync(Host, { key: '
|
|
37174
|
+
return (hAsync(Host, { key: '989574921f3bf06e4e5ad4e98ea3cce2e5c7165e', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
36834
37175
|
[theme]: true,
|
|
36835
37176
|
'ion-activatable': true,
|
|
36836
|
-
}) }, hAsync("a", Object.assign({ key: '
|
|
37177
|
+
}) }, hAsync("a", Object.assign({ key: 'ee72dba91cc13ca4f251ba6bb5a8b7bf54b6f88d' }, attrs), hAsync("slot", { key: '8e8b5afd795bb213b8765f731463e0588799b001' }))));
|
|
36837
37178
|
}
|
|
36838
37179
|
static get style() { return routerLinkCss(); }
|
|
36839
37180
|
static get cmpMeta() { return {
|
|
@@ -37033,7 +37374,7 @@ class RouterOutlet {
|
|
|
37033
37374
|
return true;
|
|
37034
37375
|
}
|
|
37035
37376
|
render() {
|
|
37036
|
-
return hAsync("slot", { key: '
|
|
37377
|
+
return hAsync("slot", { key: 'f59dfdc11831ed91f5f7d8147cdc14f3c07bc289' });
|
|
37037
37378
|
}
|
|
37038
37379
|
get el() { return getElement(this); }
|
|
37039
37380
|
static get watchers() { return {
|
|
@@ -37073,9 +37414,9 @@ class Row {
|
|
|
37073
37414
|
}
|
|
37074
37415
|
render() {
|
|
37075
37416
|
const theme = getIonTheme(this);
|
|
37076
|
-
return (hAsync(Host, { key: '
|
|
37417
|
+
return (hAsync(Host, { key: '64ff6346d95be8d99d6500a6263067081f3fe254', class: {
|
|
37077
37418
|
[theme]: true,
|
|
37078
|
-
} }, hAsync("slot", { key: '
|
|
37419
|
+
} }, hAsync("slot", { key: 'e9b4c111f3a49515a721bf679ef2f1a039c9822a' })));
|
|
37079
37420
|
}
|
|
37080
37421
|
static get style() { return rowCss(); }
|
|
37081
37422
|
static get cmpMeta() { return {
|
|
@@ -37634,8 +37975,8 @@ class Searchbar {
|
|
|
37634
37975
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
37635
37976
|
const shape = this.getShape();
|
|
37636
37977
|
const size = this.getSize();
|
|
37637
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
37638
|
-
return (hAsync(Host, { key: '
|
|
37978
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '9b71660f86c93ab8e1c4bca45a778584b1473a48', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: theme === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: '27c4121c6b49906b2a9c225bd7ba9ab2a41e4292', "aria-hidden": "true" }, theme === 'md' || theme === 'ionic' ? (hAsync("ion-icon", { "aria-hidden": "true", icon: searchbarCancelIcon, lazy: false })) : (cancelButtonText))));
|
|
37979
|
+
return (hAsync(Host, { key: 'd5fc37533478d088fd40697b21cffc8f9c673add', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
37639
37980
|
[theme]: true,
|
|
37640
37981
|
'searchbar-animated': animated,
|
|
37641
37982
|
'searchbar-disabled': this.disabled,
|
|
@@ -37649,14 +37990,14 @@ class Searchbar {
|
|
|
37649
37990
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
37650
37991
|
[`searchbar-size-${size}`]: size !== undefined,
|
|
37651
37992
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
37652
|
-
}) }, hAsync("div", { key: '
|
|
37993
|
+
}) }, hAsync("div", { key: 'b7e0dbfa02f9ea4db7eb01cb293d81d4a54e23d2', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: '3b790197d1f8bad980086ebd898cb2487d56ea24', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), (theme === 'md' || theme === 'ionic') && cancelButton, this.shouldShowSearchIcon() && (hAsync("ion-icon", { key: 'fce3e3510516d768d8b51a6334cf9d9ac934345e', "aria-hidden": "true", icon: searchbarSearchIcon, lazy: false, class: "searchbar-search-icon" })), this.shouldShowClearButton() && (hAsync("button", { key: 'b47cb7c79fd07e44f2273e55782a784f6d567155', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
37653
37994
|
/**
|
|
37654
37995
|
* This prevents mobile browsers from
|
|
37655
37996
|
* blurring the input when the clear
|
|
37656
37997
|
* button is activated.
|
|
37657
37998
|
*/
|
|
37658
37999
|
ev.preventDefault();
|
|
37659
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
38000
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '6d4f026bd1fde68d43c4e49531ca7b1689590e80', "aria-hidden": "true", icon: searchbarClearIcon, lazy: false, class: "searchbar-clear-icon" })))), theme === 'ios' && cancelButton));
|
|
37660
38001
|
}
|
|
37661
38002
|
get el() { return getElement(this); }
|
|
37662
38003
|
static get watchers() { return {
|
|
@@ -38267,14 +38608,14 @@ class Segment {
|
|
|
38267
38608
|
}
|
|
38268
38609
|
render() {
|
|
38269
38610
|
const theme = getIonTheme(this);
|
|
38270
|
-
return (hAsync(Host, { key: '
|
|
38611
|
+
return (hAsync(Host, { key: '96e641a05388cbf4477c598f9d36d0028fff8dfb', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
38271
38612
|
[theme]: true,
|
|
38272
38613
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
38273
38614
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
38274
38615
|
'segment-activated': this.activated,
|
|
38275
38616
|
'segment-disabled': this.disabled,
|
|
38276
38617
|
'segment-scrollable': this.scrollable,
|
|
38277
|
-
}) }, hAsync("slot", { key: '
|
|
38618
|
+
}) }, hAsync("slot", { key: 'c705c995b339a81e5a52da0a38d2ff429ed333a4', onSlotchange: this.onSlottedItemsChange })));
|
|
38278
38619
|
}
|
|
38279
38620
|
get el() { return getElement(this); }
|
|
38280
38621
|
static get watchers() { return {
|
|
@@ -38426,7 +38767,7 @@ class SegmentButton {
|
|
|
38426
38767
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
38427
38768
|
const theme = getIonTheme(this);
|
|
38428
38769
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
38429
|
-
return (hAsync(Host, { key: '
|
|
38770
|
+
return (hAsync(Host, { key: 'bbb2ae95aa27852c31dcc0ba3ee5acce24349752', class: {
|
|
38430
38771
|
[theme]: true,
|
|
38431
38772
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
38432
38773
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -38442,7 +38783,7 @@ class SegmentButton {
|
|
|
38442
38783
|
'ion-activatable': true,
|
|
38443
38784
|
'ion-activatable-instant': true,
|
|
38444
38785
|
'ion-focusable': true,
|
|
38445
|
-
} }, hAsync("button", Object.assign({ key: '
|
|
38786
|
+
} }, hAsync("button", Object.assign({ key: '0335787c4606314d2715062b536b544cf0fb1f27', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: '47d06436538ed9fc97789af76b6681674a2bd0a7', class: "button-inner" }, hAsync("slot", { key: 'de1164da25cb74e6fa3066e43744483fc5b821fa' })), theme === 'md' && hAsync("ion-ripple-effect", { key: '82d3f9d812f851a6bbbf3603e5845e6e6e925442' })), hAsync("div", { key: '77bbfb251707d274635f21e4cd7153791d9fdb49', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '2d7b64dbdb084bd3a851e215b9d049a9aff6f03f', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
38446
38787
|
}
|
|
38447
38788
|
get el() { return getElement(this); }
|
|
38448
38789
|
static get watchers() { return {
|
|
@@ -38480,7 +38821,7 @@ class SegmentContent {
|
|
|
38480
38821
|
registerInstance(this, hostRef);
|
|
38481
38822
|
}
|
|
38482
38823
|
render() {
|
|
38483
|
-
return (hAsync(Host, { key: '
|
|
38824
|
+
return (hAsync(Host, { key: '66e6783365c0842eb785d50191206d82321b35e7' }, hAsync("slot", { key: '21528369e7efdb93599179720b26c3f3c3e574ed' })));
|
|
38484
38825
|
}
|
|
38485
38826
|
static get style() { return segmentContentCss(); }
|
|
38486
38827
|
static get cmpMeta() { return {
|
|
@@ -38601,11 +38942,11 @@ class SegmentView {
|
|
|
38601
38942
|
}
|
|
38602
38943
|
render() {
|
|
38603
38944
|
const { disabled, isManualScroll, swipeGesture } = this;
|
|
38604
|
-
return (hAsync(Host, { key: '
|
|
38945
|
+
return (hAsync(Host, { key: 'f6190a42acd23c2039732b209943a5f747a51377', class: {
|
|
38605
38946
|
'segment-view-disabled': disabled,
|
|
38606
38947
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
38607
38948
|
'segment-view-swipe-disabled': swipeGesture === false,
|
|
38608
|
-
} }, hAsync("slot", { key: '
|
|
38949
|
+
} }, hAsync("slot", { key: '4665ec76305f47c010eb114d2280b6a695cbb4ee' })));
|
|
38609
38950
|
}
|
|
38610
38951
|
get el() { return getElement(this); }
|
|
38611
38952
|
static get style() { return {
|
|
@@ -39541,7 +39882,7 @@ class Select {
|
|
|
39541
39882
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
39542
39883
|
*/
|
|
39543
39884
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
39544
|
-
return (hAsync(Host, { key: '
|
|
39885
|
+
return (hAsync(Host, { key: '03fa41ce215865ceeaeddec12d9ac66b5ab18e3f', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
39545
39886
|
[theme]: true,
|
|
39546
39887
|
'in-item': inItem,
|
|
39547
39888
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -39560,7 +39901,7 @@ class Select {
|
|
|
39560
39901
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
39561
39902
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
39562
39903
|
[`select-size-${size}`]: size !== undefined,
|
|
39563
|
-
}) }, hAsync("label", { key: '
|
|
39904
|
+
}) }, hAsync("label", { key: '66808fb8c26f7a5db356b22d43751463cbb4bcaa', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), hAsync("div", { key: '3e80160009e0e5b47952d666ca621166067adbea', class: "select-wrapper-inner", part: "inner" },
|
|
39564
39905
|
/**
|
|
39565
39906
|
* For the ionic theme, we render the outline container here
|
|
39566
39907
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -39570,7 +39911,7 @@ class Select {
|
|
|
39570
39911
|
* <label> element, ensuring that clicking the label text
|
|
39571
39912
|
* focuses the select.
|
|
39572
39913
|
*/
|
|
39573
|
-
theme === 'ionic' && fill === 'outline' && hAsync("div", { key: '
|
|
39914
|
+
theme === 'ionic' && fill === 'outline' && hAsync("div", { key: '8ea2530c4dc535661bf97d16724bdca3b9e23560', class: "select-outline" }), hAsync("slot", { key: '2526c811e6f0f250421f6de9834d96d21df528b7', name: "start" }), hAsync("div", { key: '95d0b2432c9e656166bf35ddd457a74052c91a27', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: '0864febe104e3ac77aa10ce397e7c7569855636e', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: 'c83f3992d7a0ee55ca635b391421626a9131c8eb', class: "select-highlight" })), this.renderBottomContent()));
|
|
39574
39915
|
}
|
|
39575
39916
|
get el() { return getElement(this); }
|
|
39576
39917
|
static get watchers() { return {
|
|
@@ -39962,7 +40303,7 @@ class SelectModal {
|
|
|
39962
40303
|
});
|
|
39963
40304
|
}
|
|
39964
40305
|
render() {
|
|
39965
|
-
return (hAsync(Host, { key: '
|
|
40306
|
+
return (hAsync(Host, { key: '43db0bab8915e4e422acbd73d27a880935c13a38', class: Object.assign({ [getIonMode$1(this)]: true }, this.getModalContextClasses()) }, hAsync("ion-header", { key: '58f462db240eb759d7be9f090ab9fba48abdea0c' }, hAsync("ion-toolbar", { key: 'dbd4722ad8c2fc21a066b89451fdc5c0a3776808' }, this.header !== undefined && hAsync("ion-title", { key: 'cefe16f3dff1a90d10875506a94fe1d737c67b44' }, this.header), hAsync("ion-buttons", { key: '750ba8ac17447906cbe020d654b943a88adf8185', slot: "end" }, hAsync("ion-button", { key: '8c075ec9d7becf25dd1307bf083bec229a0889ae', "aria-label": this.cancelIcon ? this.cancelText : undefined, onClick: () => this.closeModal() }, this.cancelIcon ? (hAsync("ion-icon", { "aria-hidden": "true", slot: "icon-only", icon: this.cancelButtonIcon })) : (this.cancelText))))), hAsync("ion-content", { key: '65dff8eab0158cdff103ade997246cea2b3c4b9e' }, hAsync("ion-list", { key: 'e3556e81c97146ffda80260265294a4f8d6ebdf2' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
39966
40307
|
}
|
|
39967
40308
|
get el() { return getElement(this); }
|
|
39968
40309
|
static get style() { return {
|
|
@@ -40007,7 +40348,7 @@ class SelectOption {
|
|
|
40007
40348
|
}
|
|
40008
40349
|
render() {
|
|
40009
40350
|
const theme = getIonTheme(this);
|
|
40010
|
-
return (hAsync(Host, { key: '
|
|
40351
|
+
return (hAsync(Host, { key: 'f4d425097bd16997f0ea48c8896dc92408e55bb9', class: {
|
|
40011
40352
|
[theme]: true,
|
|
40012
40353
|
}, role: "option", id: this.inputId }));
|
|
40013
40354
|
}
|
|
@@ -40176,9 +40517,9 @@ class SelectPopover {
|
|
|
40176
40517
|
const { header, message, options, subHeader } = this;
|
|
40177
40518
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
40178
40519
|
const theme = getIonTheme(this);
|
|
40179
|
-
return (hAsync(Host, { key: '
|
|
40520
|
+
return (hAsync(Host, { key: 'de63245b6690ffb6201a8faac850b7e73eed8022', class: {
|
|
40180
40521
|
[theme]: true,
|
|
40181
|
-
} }, hAsync("ion-list", { key: '
|
|
40522
|
+
} }, hAsync("ion-list", { key: 'a96857c064aaf9a645b9e1ee22932116b1c25d62' }, header !== undefined && hAsync("ion-list-header", { key: '86b8c398f12cdd3e7d2a7d4c4af69029e4decdbc' }, header), hasSubHeaderOrMessage && (hAsync("ion-item", { key: '3bcd9c0a544e1e98243163600413d82a304081db' }, hAsync("ion-label", { key: 'd20b933ba82913b623486c982ab094819f850565', class: "ion-text-wrap" }, subHeader !== undefined && hAsync("h3", { key: 'c869868d89d024b5b02e6a3b626ca91e6f312036' }, subHeader), message !== undefined && hAsync("p", { key: 'd8a26d162ba8d3b092abef38ef3c1795787e7f75' }, message)))), this.renderOptions(options))));
|
|
40182
40523
|
}
|
|
40183
40524
|
get el() { return getElement(this); }
|
|
40184
40525
|
static get style() { return {
|
|
@@ -40233,11 +40574,11 @@ class SkeletonText {
|
|
|
40233
40574
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
40234
40575
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
40235
40576
|
const theme = getIonTheme(this);
|
|
40236
|
-
return (hAsync(Host, { key: '
|
|
40577
|
+
return (hAsync(Host, { key: 'aa94213767105077047a369d4e4861027af96060', class: {
|
|
40237
40578
|
[theme]: true,
|
|
40238
40579
|
'skeleton-text-animated': animated,
|
|
40239
40580
|
'in-media': inMedia,
|
|
40240
|
-
} }, hAsync("span", { key: '
|
|
40581
|
+
} }, hAsync("span", { key: 'c5dab0fb89d524827936aef5345cc0c7eda9e274' }, "\u00A0")));
|
|
40241
40582
|
}
|
|
40242
40583
|
get el() { return getElement(this); }
|
|
40243
40584
|
static get style() { return skeletonTextCss(); }
|
|
@@ -40310,7 +40651,7 @@ class Spinner {
|
|
|
40310
40651
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
40311
40652
|
}
|
|
40312
40653
|
}
|
|
40313
|
-
return (hAsync(Host, { key: '
|
|
40654
|
+
return (hAsync(Host, { key: 'fb9e66e61191ada25b8cb1f82038e8d6eaeaebe0', class: createColorClasses$1(self.color, {
|
|
40314
40655
|
[theme]: true,
|
|
40315
40656
|
[`spinner-${spinnerName}`]: true,
|
|
40316
40657
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -40354,6 +40695,7 @@ const splitPaneIosCss = () => `:host{--side-width:100%;right:0;left:0;top:0;bott
|
|
|
40354
40695
|
|
|
40355
40696
|
const splitPaneMdCss = () => `:host{--side-width:100%;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}:host(.split-pane-visible) ::slotted(.split-pane-main){right:0;left:0;top:0;bottom:0;position:relative;-ms-flex:1;flex:1;-webkit-box-shadow:none;box-shadow:none;overflow:hidden;z-index:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--side-min-width:270px;--side-max-width:28%}`;
|
|
40356
40697
|
|
|
40698
|
+
// TODO(FW-7285): Replace with global breakpoints
|
|
40357
40699
|
const QUERY = {
|
|
40358
40700
|
lg: '(min-width: 992px)'};
|
|
40359
40701
|
/**
|
|
@@ -40421,12 +40763,12 @@ class SplitPane {
|
|
|
40421
40763
|
}
|
|
40422
40764
|
render() {
|
|
40423
40765
|
const theme = getIonTheme(this);
|
|
40424
|
-
return (hAsync(Host, { key: '
|
|
40766
|
+
return (hAsync(Host, { key: 'f9f96d71771ced17604357d27ae7b4b7ed29ec9c', class: {
|
|
40425
40767
|
[theme]: true,
|
|
40426
40768
|
// Used internally for styling
|
|
40427
40769
|
[`split-pane-${theme}`]: true,
|
|
40428
40770
|
'split-pane-visible': this.visible,
|
|
40429
|
-
} }, hAsync("slot", { key: '
|
|
40771
|
+
} }, hAsync("slot", { key: '4c95f5197bde73de689c3e4425c14c55412539c6' })));
|
|
40430
40772
|
}
|
|
40431
40773
|
get el() { return getElement(this); }
|
|
40432
40774
|
static get watchers() { return {
|
|
@@ -40503,10 +40845,10 @@ class Tab {
|
|
|
40503
40845
|
}
|
|
40504
40846
|
render() {
|
|
40505
40847
|
const { tab, active, component } = this;
|
|
40506
|
-
return (hAsync(Host, { key: '
|
|
40848
|
+
return (hAsync(Host, { key: '5761999a97a78dda973bd39bf44f10d9637fc00c', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
40507
40849
|
'ion-page': component === undefined,
|
|
40508
40850
|
'tab-hidden': !active,
|
|
40509
|
-
} }, hAsync("slot", { key: '
|
|
40851
|
+
} }, hAsync("slot", { key: 'd2cc63bbd20ba5f58ef8d6b23eb50ffa7d80478a' })));
|
|
40510
40852
|
}
|
|
40511
40853
|
get el() { return getElement(this); }
|
|
40512
40854
|
static get watchers() { return {
|
|
@@ -40713,7 +41055,7 @@ class TabBar {
|
|
|
40713
41055
|
const theme = getIonTheme(this);
|
|
40714
41056
|
const shape = this.getShape();
|
|
40715
41057
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
40716
|
-
return (hAsync(Host, { key: '
|
|
41058
|
+
return (hAsync(Host, { key: 'dd255e7c4d99f239f43c03eaef94c26ae6db4fc6', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
40717
41059
|
[theme]: true,
|
|
40718
41060
|
'tab-bar-translucent': translucent,
|
|
40719
41061
|
'tab-bar-hidden': shouldHide,
|
|
@@ -40721,7 +41063,7 @@ class TabBar {
|
|
|
40721
41063
|
'tab-bar-scroll-hidden': scrollHidden,
|
|
40722
41064
|
[`tab-bar-${expand}`]: true,
|
|
40723
41065
|
[`tab-bar-${shape}`]: shape !== undefined,
|
|
40724
|
-
}) }, hAsync("slot", { key: '
|
|
41066
|
+
}) }, hAsync("slot", { key: 'f112cf52bce37b8a93f9ca6f9632e85889d2791e' })));
|
|
40725
41067
|
}
|
|
40726
41068
|
get el() { return getElement(this); }
|
|
40727
41069
|
static get watchers() { return {
|
|
@@ -40849,7 +41191,7 @@ class TabButton {
|
|
|
40849
41191
|
rel,
|
|
40850
41192
|
target,
|
|
40851
41193
|
};
|
|
40852
|
-
return (hAsync(Host, { key: '
|
|
41194
|
+
return (hAsync(Host, { key: '124248b961d34d24a3cbeeb669c672caa10f6d07', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
40853
41195
|
[theme]: true,
|
|
40854
41196
|
'tab-selected': selected,
|
|
40855
41197
|
'tab-disabled': disabled,
|
|
@@ -40862,7 +41204,7 @@ class TabButton {
|
|
|
40862
41204
|
'ion-selectable': true,
|
|
40863
41205
|
[`tab-button-shape-${shape}`]: shape !== undefined,
|
|
40864
41206
|
'ion-focusable': true,
|
|
40865
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
41207
|
+
} }, hAsync("a", Object.assign({ key: 'fde7dc112f62c5e1a08017f1e8665bf68658eadf' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), hAsync("span", { key: '0912736f1e69a8da9a49c94bca1c613061bcaad1', class: "button-inner" }, hAsync("slot", { key: '9b919361a07b62304dddc751658fca0540a3747a' })), theme === 'md' && hAsync("ion-ripple-effect", { key: '472967f7b2b8f63d669fae542bb2eb1900955975', type: "unbounded" }))));
|
|
40866
41208
|
}
|
|
40867
41209
|
get el() { return getElement(this); }
|
|
40868
41210
|
static get style() { return {
|
|
@@ -41058,7 +41400,7 @@ class Tabs {
|
|
|
41058
41400
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
41059
41401
|
}
|
|
41060
41402
|
render() {
|
|
41061
|
-
return (hAsync(Host, { key: '
|
|
41403
|
+
return (hAsync(Host, { key: 'd94b2760650125d00a9bd620f367022119aba911', onIonTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'dfa95a272dce19af4575e4d6488962cf6c521754', name: "top" }), hAsync("div", { key: 'd537e5212745833107c751cc6f79d12f48f5472a', class: "tabs-inner" }, hAsync("slot", { key: '6db89721daa7ffd390586345137f1fdfcefa7910' })), hAsync("slot", { key: '7b24f140b89e8e316f24170b29390e00c31d9a0c', name: "bottom" })));
|
|
41062
41404
|
}
|
|
41063
41405
|
get el() { return getElement(this); }
|
|
41064
41406
|
static get style() { return tabsCss(); }
|
|
@@ -41099,9 +41441,9 @@ class Text {
|
|
|
41099
41441
|
}
|
|
41100
41442
|
render() {
|
|
41101
41443
|
const theme = getIonTheme(this);
|
|
41102
|
-
return (hAsync(Host, { key: '
|
|
41444
|
+
return (hAsync(Host, { key: '4a8be0173621ab64b2849bd02b569e479890c5c4', class: createColorClasses$1(this.color, {
|
|
41103
41445
|
[theme]: true,
|
|
41104
|
-
}) }, hAsync("slot", { key: '
|
|
41446
|
+
}) }, hAsync("slot", { key: 'af7771d2fd855b5de843f32d58cd33a89051fa8b' })));
|
|
41105
41447
|
}
|
|
41106
41448
|
static get style() { return textCss(); }
|
|
41107
41449
|
static get cmpMeta() { return {
|
|
@@ -41665,7 +42007,7 @@ class Textarea {
|
|
|
41665
42007
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
41666
42008
|
*/
|
|
41667
42009
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
41668
|
-
return (hAsync(Host, { key: '
|
|
42010
|
+
return (hAsync(Host, { key: 'd4a95fcd3fe11311d779c10777421c36da20b7a6', class: createColorClasses$1(this.color, {
|
|
41669
42011
|
[theme]: true,
|
|
41670
42012
|
'has-value': hasValue,
|
|
41671
42013
|
'has-focus': hasFocus,
|
|
@@ -41677,7 +42019,7 @@ class Textarea {
|
|
|
41677
42019
|
'in-item': inItem,
|
|
41678
42020
|
'textarea-disabled': disabled,
|
|
41679
42021
|
'textarea-readonly': readonly,
|
|
41680
|
-
}) }, hAsync("label", { key: '
|
|
42022
|
+
}) }, hAsync("label", { key: '3d21eab560550527de015d36b1c71761792aa516', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), hAsync("div", { key: '5fe9ec91ac5560d2ebbb93751dd770fe17e5f839', class: "textarea-wrapper-inner" },
|
|
41681
42023
|
/**
|
|
41682
42024
|
* For the ionic theme, we render the outline container here
|
|
41683
42025
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -41687,7 +42029,7 @@ class Textarea {
|
|
|
41687
42029
|
* <label> element, ensuring that clicking the label text
|
|
41688
42030
|
* focuses the textarea.
|
|
41689
42031
|
*/
|
|
41690
|
-
theme === 'ionic' && fill === 'outline' && hAsync("div", { key: '
|
|
42032
|
+
theme === 'ionic' && fill === 'outline' && hAsync("div", { key: 'aac1db3f8a9a9d541bd0d76f17c7936daca419d7', class: "textarea-outline" }), hAsync("div", { key: '49779a6b346b5bf2e8f98787c9159f41fd767d26', class: "start-slot-wrapper" }, hAsync("slot", { key: '2a86311a2ee002e286d8cb1e27480364cb3eb5b1', name: "start" })), hAsync("div", { key: '922069ecd0aa72e4294d78e02a4f216706af0d99', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el), part: "container" }, hAsync("textarea", Object.assign({ key: 'c1cae5f0695b4d978fbbd6d0af8d3da681d2c671', class: "native-textarea", part: "native", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined }, this.inheritedAttributes), value)), hAsync("div", { key: '6e76190d9644dd880200f28bbfdb6291362ce639', class: "end-slot-wrapper" }, hAsync("slot", { key: 'fe9466237a1d88bf8cd534e83cca148ce6178abe', name: "end" }))), shouldRenderHighlight && hAsync("div", { key: 'e8a158231e0dcacb4df5b94575fe54d7aff5c23f', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
41691
42033
|
}
|
|
41692
42034
|
static get delegatesFocus() { return true; }
|
|
41693
42035
|
static get formAssociated() { return true; }
|
|
@@ -41771,9 +42113,9 @@ class Thumbnail {
|
|
|
41771
42113
|
}
|
|
41772
42114
|
render() {
|
|
41773
42115
|
const theme = getIonTheme(this);
|
|
41774
|
-
return (hAsync(Host, { key: '
|
|
42116
|
+
return (hAsync(Host, { key: '2fb4e6f9f650badf2bc492fc4b1c43cad64141c0', class: {
|
|
41775
42117
|
[theme]: true,
|
|
41776
|
-
} }, hAsync("slot", { key: '
|
|
42118
|
+
} }, hAsync("slot", { key: 'ea18f4572b2b019af3470c6bdb7915d4a5dd84bb' })));
|
|
41777
42119
|
}
|
|
41778
42120
|
static get style() { return thumbnailCss(); }
|
|
41779
42121
|
static get cmpMeta() { return {
|
|
@@ -42657,9 +42999,9 @@ class Toast {
|
|
|
42657
42999
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
42658
43000
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
42659
43001
|
}
|
|
42660
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
43002
|
+
return (hAsync(Host, Object.assign({ key: 'f8a4c4537d421e924a58f9addbb38a4a043b9f53', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
42661
43003
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
42662
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined, [`toast-hue-${hue}`]: hue !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
43004
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined, [`toast-hue-${hue}`]: hue !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '4f0b39c8e0d7aecfe81da23c3ca1591374a8afa5', class: wrapperClass, part: "wrapper" }, hAsync("div", { key: 'a2cf3ea830d27b51ffe1158fb3f3bf87486401b5', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: 'bee5f21ee8df2278e20bf0565495da30c2e61963', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: '40a95848e952dd587d1972487affd4b8e088209f', class: "toast-content", part: "content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
42663
43005
|
}
|
|
42664
43006
|
get el() { return getElement(this); }
|
|
42665
43007
|
static get watchers() { return {
|
|
@@ -43035,7 +43377,7 @@ class Toggle {
|
|
|
43035
43377
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
43036
43378
|
const isIonicTheme = theme === 'ionic';
|
|
43037
43379
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
43038
|
-
return (hAsync(Host, { key: '
|
|
43380
|
+
return (hAsync(Host, { key: '48744f35038be7be61fea432996440628d4f2ce9', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses$1(color, {
|
|
43039
43381
|
[theme]: true,
|
|
43040
43382
|
'in-item': hostContext('ion-item', el),
|
|
43041
43383
|
'toggle-activated': activated,
|
|
@@ -43047,10 +43389,10 @@ class Toggle {
|
|
|
43047
43389
|
[`toggle-${rtl}`]: true,
|
|
43048
43390
|
'ion-activatable': isIonicTheme,
|
|
43049
43391
|
'ion-focusable': isIonicTheme,
|
|
43050
|
-
}) }, hAsync("label", { key: '
|
|
43392
|
+
}) }, hAsync("label", { key: '43d05b9140a9ccabc3981a28b01bf2cb844050f6', class: "toggle-wrapper", htmlFor: inputId }, hAsync("input", Object.assign({ key: '716f13f4202712d4ce22fe738879a8259102c329', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required }, inheritedAttributes)), hAsync("div", { key: '0466a7f662ec5804ecc2e22971248a86f20141c7', class: {
|
|
43051
43393
|
'label-text-wrapper': true,
|
|
43052
43394
|
'label-text-wrapper-hidden': !hasLabel,
|
|
43053
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '
|
|
43395
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '86b8fbbd03ee3179e84cf906ea4e6881137d798a' }), this.renderHintText()), hAsync("div", { key: '6ccf0131e4ff14c3b1f59d218081b8da5f6b1864', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
43054
43396
|
}
|
|
43055
43397
|
get el() { return getElement(this); }
|
|
43056
43398
|
static get watchers() { return {
|
|
@@ -43342,11 +43684,11 @@ class Toolbar {
|
|
|
43342
43684
|
Object.assign(childStyles, style);
|
|
43343
43685
|
});
|
|
43344
43686
|
const titlePlacement = this.getTitlePlacement();
|
|
43345
|
-
return (hAsync(Host, { key: '
|
|
43687
|
+
return (hAsync(Host, { key: '069913e9241b8e9a2dee8e7d088d181b6faeab5e', class: Object.assign(Object.assign({}, createColorClasses$1(this.color, {
|
|
43346
43688
|
[theme]: true,
|
|
43347
43689
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
43348
43690
|
[`toolbar-title-placement-${titlePlacement}`]: true,
|
|
43349
|
-
})), childStyles) }, hAsync("div", { key: '
|
|
43691
|
+
})), childStyles) }, hAsync("div", { key: '3255531be492b9afa7b47476a805f923beea09db', class: "toolbar-background", part: "background" }), hAsync("div", { key: '8758189374c0a12f293c30ca7f8f049b732d2cab', class: "toolbar-container", part: "container" }, hAsync("slot", { key: '74c3705f717968893bf94ea95c99cae313ce68f3', name: "start", onSlotchange: () => this.updateSlotClasses }), hAsync("slot", { key: '298c78f93291442f140f8c52983871215f20ea87', name: "secondary", onSlotchange: () => this.updateSlotClasses }), hAsync("div", { key: 'f7376320b704b8ce375fe2223ae30d51bfc05acb', class: "toolbar-content", part: "content" }, hAsync("slot", { key: 'ddaec08b1fbd13384d834ba4c3b4441c4d749faf' })), hAsync("slot", { key: '6d5bce85159859bb548e4d3fb6b22208dcb48987', name: "primary", onSlotchange: () => this.updateSlotClasses }), hAsync("slot", { key: 'd1d21752ed3bcc7bf15c20de1c0a6fd956373450', name: "end", onSlotchange: () => this.updateSlotClasses }))));
|
|
43350
43692
|
}
|
|
43351
43693
|
get el() { return getElement(this); }
|
|
43352
43694
|
static get watchers() { return {
|
|
@@ -43405,11 +43747,11 @@ class ToolbarTitle {
|
|
|
43405
43747
|
render() {
|
|
43406
43748
|
const theme = getIonTheme(this);
|
|
43407
43749
|
const size = this.getSize();
|
|
43408
|
-
return (hAsync(Host, { key: '
|
|
43750
|
+
return (hAsync(Host, { key: '87bb5264f4c13d0d6eeef874ed114539d0b59062', class: createColorClasses$1(this.color, {
|
|
43409
43751
|
[theme]: true,
|
|
43410
43752
|
[`title-${size}`]: true,
|
|
43411
43753
|
'title-rtl': document.dir === 'rtl',
|
|
43412
|
-
}) }, hAsync("div", { key: '
|
|
43754
|
+
}) }, hAsync("div", { key: '75f2ddfaf693ffdec13d909eefdb09b441d76e80', class: "toolbar-title" }, hAsync("slot", { key: '00539af5e250bee78fdd1c55f2ecdc8e53bc18b0' }))));
|
|
43413
43755
|
}
|
|
43414
43756
|
get el() { return getElement(this); }
|
|
43415
43757
|
static get watchers() { return {
|
|
@@ -43465,6 +43807,7 @@ registerComponents([
|
|
|
43465
43807
|
FabButton,
|
|
43466
43808
|
FabList,
|
|
43467
43809
|
Footer,
|
|
43810
|
+
Gallery,
|
|
43468
43811
|
Grid,
|
|
43469
43812
|
Header,
|
|
43470
43813
|
Icon,
|