@ionic/core 8.8.16-dev.11784841344.1aa1a41c → 8.8.16-dev.11784913436.1a334b43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.js +1 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-backdrop.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-buttons.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-checkbox.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-content.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-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-icon.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-column.js +1 -1
- package/components/ion-picker.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-route-redirect.js +1 -1
- package/components/ion-route.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.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-8cRBED2y.js +4 -0
- package/components/p-B--DzMaF.js +4 -0
- package/components/p-B5Ia5kbJ.js +4 -0
- package/components/p-B9A9IVnF.js +4 -0
- package/components/p-BRF87FDL.js +4 -0
- package/components/p-BSQPZ79H.js +4 -0
- package/components/p-BTPfOxsU.js +4 -0
- package/{dist/ionic/p-Cm20lBQw.js → components/p-BT_5jSqG.js} +1 -1
- package/components/p-Baq1XyAy.js +4 -0
- package/components/p-BmVRXR1y.js +4 -0
- package/components/p-BnTB62Lu.js +4 -0
- package/components/p-Bz0dSlXZ.js +4 -0
- package/components/p-C1aScSTo.js +4 -0
- package/components/{p-BKSylJVh.js → p-C4t5ymfq.js} +1 -1
- package/components/p-CHdYfvVx.js +4 -0
- package/components/p-CHqRYvYm.js +4 -0
- package/components/p-CIGNaXM1.js +4 -0
- package/components/p-CLw68uAe.js +4 -0
- package/components/p-CO7fmmxt.js +4 -0
- package/components/p-CPa2WmW7.js +4 -0
- package/components/p-CXuUa8q_.js +4 -0
- package/components/p-CYdwJYjZ.js +4 -0
- package/components/p-CYhGN6l4.js +4 -0
- package/components/p-C_xFdyXe.js +4 -0
- package/components/p-CbJDPICP.js +4 -0
- package/components/{p-BE21dB_a.js → p-Cf2jSDS8.js} +1 -1
- package/components/p-Ciz1-FuE.js +4 -0
- package/components/p-CmR5uXej.js +4 -0
- package/components/p-CmZ8uO0W.js +4 -0
- package/components/p-CtQ-1ZRt.js +4 -0
- package/components/p-CtWGkNnJ.js +4 -0
- package/{dist/ionic/p-BlZo7Gy-.js → components/p-CtukzcyX.js} +1 -1
- package/components/p-CwcD5kE9.js +4 -0
- package/components/p-CyFtf1Mm.js +4 -0
- package/components/p-CzuRCorP.js +4 -0
- package/components/p-D-lHU3L1.js +4 -0
- package/components/p-D1-tlI3U.js +4 -0
- package/components/{p-DP96lPOT.js → p-D13Eaw-8.js} +1 -1
- package/components/p-D355UF9s.js +4 -0
- package/components/{p-Dqgyr3aJ.js → p-D5Ubpm7D.js} +1 -1
- package/components/p-D6Ynv7Xh.js +4 -0
- package/components/p-D7bSXQD3.js +4 -0
- package/components/p-DEI720fP.js +4 -0
- package/components/p-DIE4pXMl.js +4 -0
- package/components/p-DJztqcrH.js +4 -0
- package/components/p-DK0D_QD_.js +4 -0
- package/components/p-DNQI6d-L.js +4 -0
- package/components/p-DfjhtfFw.js +4 -0
- package/components/p-Dg1a5T1q.js +4 -0
- package/components/p-DiVJyqlX.js +4 -0
- package/components/p-DnL1c9_X.js +4 -0
- package/components/{p-BZwQa9ey.js → p-DqLB8yFQ.js} +1 -1
- package/components/p-Ds1Brlka.js +4 -0
- package/components/p-Dy5czMtc.js +4 -0
- package/components/{p-CVYFPBs-.js → p-LMGfIvTf.js} +1 -1
- package/components/p-Sh0ICmPV.js +4 -0
- package/components/p-XX59Wsi5.js +4 -0
- package/components/p-ZjP4CjeZ.js +4 -0
- package/components/{p-Fagxa-Vi.js → p-cyNmxje6.js} +1 -1
- package/components/p-ijF0iCrA.js +4 -0
- package/components/{p-DylrHLJF.js → p-jOtMJMv8.js} +1 -1
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{animation-B3xfVcDO.js → animation-BJq0kcy2.js} +3 -3
- package/dist/cjs/{app-globals-3ZoCVkn-.js → app-globals-7VMuu6PT.js} +1 -1
- package/dist/cjs/{button-active-3tZKuPbT.js → button-active-0mPOKmV2.js} +2 -2
- package/dist/cjs/{capacitor-CQSg1uCo.js → capacitor-DmA66EwP.js} +3 -3
- package/dist/{esm/focus-visible-vXpMhGrs.js → cjs/focus-visible-CCvKiLh3.js} +3 -23
- package/dist/cjs/{format-BCIkDef_.js → format-PxvGiOik.js} +1 -1
- package/dist/cjs/{framework-delegate-DC5nq_NN.js → framework-delegate-BtICZDHr.js} +2 -4
- package/dist/cjs/{haptic-eix26ESE.js → haptic-ClPPQ_PS.js} +1 -1
- package/dist/cjs/hardware-back-button-iUuF_76h.js +121 -0
- package/dist/cjs/{helpers-DiOgV5hw.js → helpers-Cv23MFHM.js} +4 -71
- package/dist/cjs/{index-BaJ7_YbC.js → index-BERfRao3.js} +4 -4
- package/dist/cjs/{index-BxEZd5IE.js → index-CIrkNXqJ.js} +2 -2
- package/dist/cjs/{index-GZU9YrFc.js → index-Ct7gcRif.js} +4 -41
- package/dist/cjs/{index-Bj07IRTB.js → index-Cueg3U4w.js} +1 -1
- package/dist/cjs/{index-bX3nz2vw.js → index-D81eLYUM.js} +8 -9
- package/dist/cjs/index-DkNv4J_i.js +10 -0
- package/dist/cjs/{index-Cu9JNpPi.js → index-DqmRDbxg.js} +1 -3
- package/dist/cjs/{index-DYRcC3bw.js → index-IPWmFzOn.js} +15 -15
- package/dist/cjs/index.cjs.js +14 -14
- package/dist/cjs/{input-shims-BSEBw22J.js → input-shims-CFLg7uzj.js} +17 -18
- package/dist/cjs/{input.utils-D68wgI2Y.js → input.utils-DetjmtH2.js} +5 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +29 -61
- package/dist/cjs/ion-action-sheet.cjs.entry.js +28 -27
- package/dist/cjs/ion-alert.cjs.entry.js +34 -32
- package/dist/cjs/ion-app_8.cjs.entry.js +175 -296
- package/dist/cjs/ion-avatar_3.cjs.entry.js +13 -125
- package/dist/cjs/ion-back-button.cjs.entry.js +22 -31
- package/dist/cjs/ion-backdrop.cjs.entry.js +7 -10
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +18 -54
- package/dist/cjs/ion-button_2.cjs.entry.js +24 -61
- package/dist/cjs/ion-card_5.cjs.entry.js +33 -55
- package/dist/cjs/ion-checkbox.cjs.entry.js +17 -37
- package/dist/cjs/ion-chip.cjs.entry.js +9 -50
- package/dist/cjs/ion-col_3.cjs.entry.js +57 -56
- package/dist/cjs/ion-datetime-button.cjs.entry.js +11 -21
- package/dist/cjs/{ion-datetime_3.cjs.entry.js → ion-datetime.cjs.entry.js} +41 -760
- package/dist/cjs/ion-fab_3.cjs.entry.js +28 -44
- package/dist/cjs/ion-img.cjs.entry.js +6 -8
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +16 -91
- package/dist/cjs/ion-input-otp.cjs.entry.js +9 -74
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +15 -53
- package/dist/cjs/ion-input.cjs.entry.js +35 -125
- package/dist/cjs/ion-item-option_3.cjs.entry.js +52 -467
- package/dist/cjs/ion-item_8.cjs.entry.js +50 -121
- package/dist/cjs/ion-loading.cjs.entry.js +22 -20
- package/dist/cjs/ion-menu_3.cjs.entry.js +29 -47
- package/dist/cjs/ion-modal.cjs.entry.js +165 -269
- package/dist/cjs/ion-nav_2.cjs.entry.js +12 -128
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +9 -19
- package/dist/cjs/ion-picker-column.cjs.entry.js +14 -20
- package/dist/cjs/ion-picker.cjs.entry.js +6 -10
- package/dist/cjs/ion-popover.cjs.entry.js +23 -21
- package/dist/cjs/ion-progress-bar.cjs.entry.js +9 -27
- package/dist/cjs/ion-radio_2.cjs.entry.js +17 -35
- package/dist/cjs/ion-range.cjs.entry.js +13 -20
- package/dist/cjs/ion-refresher_2.cjs.entry.js +21 -39
- package/dist/cjs/ion-reorder_2.cjs.entry.js +14 -38
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +7 -15
- package/dist/cjs/ion-route_4.cjs.entry.js +26 -13
- package/dist/cjs/ion-searchbar.cjs.entry.js +25 -138
- package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +3 -13
- package/dist/cjs/ion-segment_2.cjs.entry.js +16 -23
- package/dist/cjs/ion-select-modal.cjs.entry.js +26 -48
- package/dist/cjs/ion-select_3.cjs.entry.js +108 -199
- package/dist/cjs/ion-spinner.cjs.entry.js +8 -30
- package/dist/cjs/ion-split-pane.cjs.entry.js +9 -13
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +23 -147
- package/dist/cjs/ion-tab_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-text.cjs.entry.js +7 -7
- package/dist/cjs/ion-textarea.cjs.entry.js +23 -137
- package/dist/cjs/ion-toast.cjs.entry.js +46 -69
- package/dist/cjs/ion-toggle.cjs.entry.js +25 -82
- package/dist/cjs/ionic-global-CbxQmwkf.js +151 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-DpFQfFfT.js → ios.transition-BOSWOaiK.js} +5 -7
- package/dist/cjs/{keyboard-Bn0Ppim6.js → keyboard-UuAS4D_9.js} +1 -1
- package/dist/cjs/{keyboard-controller-CefyW9lm.js → keyboard-controller-GXBiBRKS.js} +9 -11
- package/dist/cjs/{keyboard-faZBQysj.js → keyboard-hHzlEQpk.js} +3 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-ChJcoZUH.js → md.transition-B8-wBZqt.js} +5 -6
- package/dist/cjs/{notch-controller-BO0UGB4F.js → notch-controller-18PzRGXd.js} +4 -4
- package/dist/cjs/{overlay-control-label-DnRLQR1t.js → overlay-control-label-D2sdL2O8.js} +11 -13
- package/dist/cjs/{overlays-CFGbPUmE.js → overlays-DJVbo1cW.js} +43 -315
- package/dist/cjs/{select-option-render-DqBHEjDn.js → select-option-render-DTF50t5r.js} +2 -2
- package/dist/cjs/{status-tap-x2qDo5QR.js → status-tap-BXX8H8_Y.js} +3 -4
- package/dist/cjs/{swipe-back-CvZt_4YX.js → swipe-back-C0GCB18x.js} +2 -3
- package/dist/cjs/{theme-IlOsGAz7.js → theme-CeDs6Hcv.js} +1 -25
- package/dist/cjs/validity-BpS37YFM.js +19 -0
- package/dist/collection/collection-manifest.json +1 -13
- package/dist/collection/components/accordion/accordion.ios.css +58 -73
- package/dist/collection/components/accordion/accordion.js +27 -41
- package/dist/collection/components/accordion/accordion.md.css +59 -67
- package/dist/collection/components/accordion-group/accordion-group.ios.css +4 -16
- package/dist/collection/components/accordion-group/accordion-group.js +8 -44
- package/dist/collection/components/accordion-group/accordion-group.md.css +4 -22
- package/dist/collection/components/action-sheet/action-sheet.ios.css +56 -185
- package/dist/collection/components/action-sheet/action-sheet.js +18 -18
- package/dist/collection/components/action-sheet/action-sheet.md.css +57 -180
- package/dist/collection/components/alert/alert.ios.css +56 -248
- package/dist/collection/components/alert/alert.js +23 -22
- package/dist/collection/components/alert/alert.md.css +58 -244
- package/dist/collection/components/app/app.js +83 -15
- package/dist/collection/components/avatar/avatar.ios.css +33 -7
- package/dist/collection/components/avatar/avatar.js +4 -120
- package/dist/collection/components/avatar/avatar.md.css +0 -51
- package/dist/collection/components/back-button/back-button.ios.css +48 -60
- package/dist/collection/components/back-button/back-button.js +19 -27
- package/dist/collection/components/back-button/back-button.md.css +48 -60
- package/dist/collection/components/backdrop/backdrop.ios.css +19 -56
- package/dist/collection/components/backdrop/backdrop.js +6 -12
- package/dist/collection/components/backdrop/backdrop.md.css +19 -56
- package/dist/collection/components/badge/badge.ios.css +12 -137
- package/dist/collection/components/badge/badge.js +9 -145
- package/dist/collection/components/badge/badge.md.css +12 -122
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +8 -20
- package/dist/collection/components/breadcrumb/breadcrumb.js +11 -43
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +8 -20
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -6
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +9 -11
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -6
- package/dist/collection/components/button/button.ios.css +46 -154
- package/dist/collection/components/button/button.js +27 -63
- package/dist/collection/components/button/button.md.css +50 -150
- package/dist/collection/components/buttons/buttons.ios.css +7 -59
- package/dist/collection/components/buttons/buttons.js +9 -15
- package/dist/collection/components/buttons/buttons.md.css +3 -55
- package/dist/collection/components/card/card.ios.css +14 -65
- package/dist/collection/components/card/card.js +10 -41
- package/dist/collection/components/card/card.md.css +14 -65
- package/dist/collection/components/card-content/card-content.ios.css +35 -20
- package/dist/collection/components/card-content/card-content.js +10 -12
- package/dist/collection/components/card-content/card-content.md.css +35 -20
- package/dist/collection/components/card-header/card-header.ios.css +15 -27
- package/dist/collection/components/card-header/card-header.js +10 -13
- package/dist/collection/components/card-header/card-header.md.css +15 -27
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -12
- package/dist/collection/components/card-subtitle/card-subtitle.js +8 -11
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -12
- package/dist/collection/components/card-title/card-title.ios.css +0 -73
- package/dist/collection/components/card-title/card-title.js +8 -11
- package/dist/collection/components/card-title/card-title.md.css +0 -73
- package/dist/collection/components/checkbox/checkbox.ios.css +99 -163
- package/dist/collection/components/checkbox/checkbox.js +15 -73
- package/dist/collection/components/checkbox/checkbox.md.css +100 -164
- package/dist/collection/components/chip/chip.ios.css +14 -67
- package/dist/collection/components/chip/chip.js +8 -108
- package/dist/collection/components/chip/chip.md.css +14 -67
- package/dist/collection/components/col/col.css +4 -192
- package/dist/collection/components/col/col.js +61 -211
- package/dist/collection/components/content/content.css +2 -8
- package/dist/collection/components/content/content.js +11 -16
- package/dist/collection/components/datetime/datetime.ios.css +148 -304
- package/dist/collection/components/datetime/datetime.js +28 -112
- package/dist/collection/components/datetime/datetime.md.css +138 -294
- package/dist/collection/components/datetime/utils/data.js +5 -5
- package/dist/collection/components/datetime-button/datetime-button.ios.css +5 -6
- package/dist/collection/components/datetime-button/datetime-button.js +9 -19
- package/dist/collection/components/datetime-button/datetime-button.md.css +5 -6
- package/dist/collection/components/fab/fab.css +1 -25
- package/dist/collection/components/fab/fab.js +5 -9
- package/dist/collection/components/fab-button/fab-button.ios.css +6 -18
- package/dist/collection/components/fab-button/fab-button.js +21 -36
- package/dist/collection/components/fab-button/fab-button.md.css +8 -20
- package/dist/collection/components/fab-list/fab-list.css +0 -12
- package/dist/collection/components/fab-list/fab-list.js +5 -9
- package/dist/collection/components/footer/footer.ios.css +2 -14
- package/dist/collection/components/footer/footer.js +16 -21
- package/dist/collection/components/footer/footer.md.css +0 -12
- package/dist/collection/components/grid/grid.css +0 -12
- package/dist/collection/components/grid/grid.js +5 -9
- package/dist/collection/components/header/header.ios.css +10 -25
- package/dist/collection/components/header/header.js +19 -50
- package/dist/collection/components/header/header.md.css +8 -23
- package/dist/collection/components/header/header.utils.js +5 -5
- package/dist/collection/components/img/img.js +6 -7
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +5 -100
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -12
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +10 -16
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -12
- package/dist/collection/components/input/input.ios.css +137 -224
- package/dist/collection/components/input/input.js +42 -153
- package/dist/collection/components/input/input.md.css +209 -194
- package/dist/collection/components/input-otp/input-otp.ios.css +60 -105
- package/dist/collection/components/input-otp/input-otp.js +7 -74
- package/dist/collection/components/input-otp/input-otp.md.css +60 -105
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +12 -48
- package/dist/collection/components/item/item.ios.css +69 -109
- package/dist/collection/components/item/item.js +21 -56
- package/dist/collection/components/item/item.md.css +68 -120
- package/dist/collection/components/item-divider/item-divider.ios.css +0 -18
- package/dist/collection/components/item-divider/item-divider.js +8 -11
- package/dist/collection/components/item-divider/item-divider.md.css +0 -18
- package/dist/collection/components/item-group/item-group.ios.css +0 -12
- package/dist/collection/components/item-group/item-group.js +7 -13
- package/dist/collection/components/item-group/item-group.md.css +0 -12
- package/dist/collection/components/item-option/item-option.ios.css +29 -136
- package/dist/collection/components/item-option/item-option.js +9 -73
- package/dist/collection/components/item-option/item-option.md.css +29 -136
- package/dist/collection/components/item-options/item-options.ios.css +34 -77
- package/dist/collection/components/item-options/item-options.js +7 -13
- package/dist/collection/components/item-options/item-options.md.css +34 -77
- package/dist/collection/components/item-sliding/{item-sliding.native.css → item-sliding.css} +9 -84
- package/dist/collection/components/item-sliding/item-sliding.js +35 -421
- package/dist/collection/components/item-sliding/test/test.utils.js +0 -13
- package/dist/collection/components/label/label.ios.css +0 -18
- package/dist/collection/components/label/label.js +8 -11
- package/dist/collection/components/label/label.md.css +0 -18
- package/dist/collection/components/list/list.ios.css +14 -54
- package/dist/collection/components/list/list.js +9 -48
- package/dist/collection/components/list/list.md.css +16 -56
- package/dist/collection/components/list-header/list-header.ios.css +38 -82
- package/dist/collection/components/list-header/list-header.js +8 -11
- package/dist/collection/components/list-header/list-header.md.css +38 -82
- package/dist/collection/components/loading/loading.ios.css +1 -13
- package/dist/collection/components/loading/loading.js +16 -15
- package/dist/collection/components/loading/loading.md.css +1 -13
- package/dist/collection/components/menu/menu.ios.css +3 -15
- package/dist/collection/components/menu/menu.js +7 -12
- package/dist/collection/components/menu/menu.md.css +3 -15
- package/dist/collection/components/menu-button/menu-button.ios.css +14 -48
- package/dist/collection/components/menu-button/menu-button.js +10 -26
- package/dist/collection/components/menu-button/menu-button.md.css +15 -49
- package/dist/collection/components/menu-toggle/menu-toggle.js +5 -8
- package/dist/collection/components/modal/animations/sheet.js +2 -8
- package/dist/collection/components/modal/gestures/sheet.js +10 -76
- package/dist/collection/components/modal/modal.ios.css +70 -178
- package/dist/collection/components/modal/modal.js +42 -60
- package/dist/collection/components/modal/modal.md.css +70 -178
- package/dist/collection/components/nav/nav.css +1 -7
- package/dist/collection/components/nav/nav.js +8 -229
- package/dist/collection/components/nav-link/nav-link.js +1 -5
- package/dist/collection/components/note/note.ios.css +0 -12
- package/dist/collection/components/note/note.js +8 -11
- package/dist/collection/components/note/note.md.css +0 -12
- package/dist/collection/components/picker/picker.ios.css +3 -15
- package/dist/collection/components/picker/picker.js +5 -8
- package/dist/collection/components/picker/picker.md.css +3 -15
- package/dist/collection/components/picker-column/picker-column.css +5 -9
- package/dist/collection/components/picker-column/picker-column.js +8 -16
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +0 -6
- package/dist/collection/components/picker-column-option/picker-column-option.js +8 -21
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -7
- package/dist/collection/components/popover/popover.ios.css +2 -15
- package/dist/collection/components/popover/popover.js +20 -19
- package/dist/collection/components/popover/popover.md.css +2 -15
- package/dist/collection/components/progress-bar/progress-bar.ios.css +17 -48
- package/dist/collection/components/progress-bar/progress-bar.js +7 -43
- package/dist/collection/components/progress-bar/progress-bar.md.css +17 -48
- package/dist/collection/components/radio/radio.ios.css +91 -134
- package/dist/collection/components/radio/radio.js +10 -15
- package/dist/collection/components/radio/radio.md.css +91 -134
- package/dist/collection/components/radio-group/radio-group.ios.css +19 -43
- package/dist/collection/components/radio-group/radio-group.js +7 -48
- package/dist/collection/components/radio-group/radio-group.md.css +19 -43
- package/dist/collection/components/range/range.ios.css +85 -128
- package/dist/collection/components/range/range.js +10 -16
- package/dist/collection/components/range/range.md.css +85 -128
- package/dist/collection/components/refresher/refresher.ios.css +1 -14
- package/dist/collection/components/refresher/refresher.js +8 -11
- package/dist/collection/components/refresher/refresher.md.css +2 -15
- package/dist/collection/components/refresher-content/refresher-content.js +7 -28
- package/dist/collection/components/reorder/reorder.ios.css +0 -6
- package/dist/collection/components/reorder/reorder.js +6 -33
- package/dist/collection/components/reorder/reorder.md.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.js +4 -8
- package/dist/collection/components/ripple-effect/{ripple-effect.common.css → ripple-effect.css} +1 -7
- package/dist/collection/components/ripple-effect/ripple-effect.js +6 -14
- package/dist/collection/components/route/route.js +1 -5
- package/dist/collection/components/router/router.js +0 -4
- package/dist/collection/components/router/utils/dom.js +22 -3
- package/dist/collection/components/router-link/router-link.css +2 -8
- package/dist/collection/components/router-link/router-link.js +5 -9
- package/dist/collection/components/router-outlet/router-outlet.css +1 -7
- package/dist/collection/components/router-outlet/router-outlet.js +40 -10
- package/dist/collection/components/row/row.css +0 -16
- package/dist/collection/components/row/row.js +2 -9
- package/dist/collection/components/searchbar/searchbar.ios.css +18 -56
- package/dist/collection/components/searchbar/searchbar.js +38 -185
- package/dist/collection/components/searchbar/searchbar.md.css +18 -56
- package/dist/collection/components/segment/segment.ios.css +2 -45
- package/dist/collection/components/segment/segment.js +8 -11
- package/dist/collection/components/segment/segment.md.css +2 -45
- package/dist/collection/components/segment-button/segment-button.ios.css +105 -146
- package/dist/collection/components/segment-button/segment-button.js +8 -11
- package/dist/collection/components/segment-button/segment-button.md.css +107 -148
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.ios.css +0 -6
- package/dist/collection/components/segment-view/segment-view.js +4 -13
- package/dist/collection/components/segment-view/segment-view.md.css +0 -6
- package/dist/collection/components/select/select.ios.css +177 -316
- package/dist/collection/components/select/select.js +110 -232
- package/dist/collection/components/select/select.md.css +179 -332
- package/dist/collection/components/select-modal/select-modal.ios.css +47 -294
- package/dist/collection/components/select-modal/select-modal.js +15 -58
- package/dist/collection/components/select-modal/select-modal.md.css +44 -273
- package/dist/collection/components/select-option/select-option.js +4 -8
- package/dist/collection/components/select-popover/select-popover.ios.css +126 -189
- package/dist/collection/components/select-popover/select-popover.js +9 -17
- package/dist/collection/components/select-popover/select-popover.md.css +49 -229
- package/dist/collection/components/skeleton-text/skeleton-text.css +0 -6
- package/dist/collection/components/skeleton-text/skeleton-text.js +5 -9
- package/dist/collection/components/spinner/{spinner.ionic.css → spinner.css} +10 -78
- package/dist/collection/components/spinner/spinner.js +6 -47
- package/dist/collection/components/split-pane/split-pane.ios.css +2 -20
- package/dist/collection/components/split-pane/split-pane.js +8 -15
- package/dist/collection/components/split-pane/split-pane.md.css +2 -20
- package/dist/collection/components/tab/tab.js +2 -6
- package/dist/collection/components/tab-bar/tab-bar.ios.css +43 -71
- package/dist/collection/components/tab-bar/tab-bar.js +13 -171
- package/dist/collection/components/tab-bar/tab-bar.md.css +43 -71
- package/dist/collection/components/tab-button/tab-button.ios.css +95 -171
- package/dist/collection/components/tab-button/tab-button.js +9 -54
- package/dist/collection/components/tab-button/tab-button.md.css +93 -137
- package/dist/collection/components/tabs/tabs.css +1 -7
- package/dist/collection/components/tabs/tabs.js +1 -4
- package/dist/collection/components/text/text.css +0 -6
- package/dist/collection/components/text/text.js +6 -7
- package/dist/collection/components/textarea/textarea.ios.css +158 -298
- package/dist/collection/components/textarea/textarea.js +24 -162
- package/dist/collection/components/textarea/textarea.md.css +159 -312
- package/dist/collection/components/thumbnail/thumbnail.css +0 -6
- package/dist/collection/components/thumbnail/thumbnail.js +2 -9
- package/dist/collection/components/title/title.ios.css +4 -32
- package/dist/collection/components/title/title.js +7 -13
- package/dist/collection/components/title/title.md.css +4 -32
- package/dist/collection/components/toast/animations/utils.js +1 -1
- package/dist/collection/components/toast/toast.ios.css +45 -84
- package/dist/collection/components/toast/toast.js +13 -76
- package/dist/collection/components/toast/toast.md.css +45 -84
- package/dist/collection/components/toggle/toggle.ios.css +131 -247
- package/dist/collection/components/toggle/toggle.js +18 -73
- package/dist/collection/components/toggle/toggle.md.css +131 -244
- package/dist/collection/components/toolbar/toolbar.ios.css +47 -90
- package/dist/collection/components/toolbar/toolbar.js +13 -218
- package/dist/collection/components/toolbar/toolbar.md.css +47 -90
- package/dist/collection/global/ionic-global.js +13 -241
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/focus-trap.js +2 -13
- package/dist/collection/utils/focus-visible.js +0 -22
- package/dist/collection/utils/forms/validity.js +0 -31
- package/dist/collection/utils/framework-delegate.js +1 -3
- package/dist/collection/utils/hardware-back-button.js +0 -15
- package/dist/collection/utils/helpers.js +3 -70
- package/dist/collection/utils/keyboard/keyboard-controller.js +1 -3
- package/dist/collection/utils/media.js +0 -1
- package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
- package/dist/collection/utils/menu-controller/animations/push.js +1 -2
- package/dist/collection/utils/menu-controller/animations/reveal.js +1 -2
- package/dist/collection/utils/overlay-control-label.js +11 -13
- package/dist/collection/utils/overlays.js +32 -295
- package/dist/collection/utils/platform.js +2 -2
- package/dist/collection/utils/test/playwright/drag-element.js +9 -32
- package/dist/collection/utils/test/playwright/generator.js +23 -48
- package/dist/collection/utils/test/playwright/page/utils/goto.js +5 -14
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +3 -26
- package/dist/collection/utils/theme.js +1 -25
- package/dist/collection/utils/transition/ios.transition.js +0 -1
- package/dist/docs.json +488 -9896
- package/dist/esm/{animation-B2qdQ_ou.js → animation-DLJpuoEz.js} +2 -2
- package/dist/esm/{app-globals-DZ-iIjxA.js → app-globals-DNgPBV1i.js} +1 -1
- package/dist/esm/{button-active-BmajAby6.js → button-active-BSpTQmS9.js} +2 -2
- package/dist/esm/{capacitor-CtQSWUU0.js → capacitor-CFERIeaU.js} +1 -1
- package/dist/{cjs/focus-visible-BIj-I3-C.js → esm/focus-visible-BmVRXR1y.js} +1 -27
- package/dist/esm/{format-2WlZcMvG.js → format-CAmvpAez.js} +1 -1
- package/dist/esm/{framework-delegate-DO2QXccA.js → framework-delegate-FnPGymXL.js} +2 -4
- package/dist/esm/{haptic-DFgKNCce.js → haptic-DzAMWJuk.js} +1 -1
- package/dist/esm/hardware-back-button-B93Gru0Y.js +115 -0
- package/dist/esm/{helpers-DfF5_wJc.js → helpers-HEqiOzXb.js} +5 -71
- package/dist/esm/{index-Di034G4O.js → index-0f4UTH6Z.js} +11 -11
- package/dist/esm/{index-1y3VhUSy.js → index-AlrZKoWR.js} +2 -3
- package/dist/esm/{index-BjaaZqVY.js → index-BRHzoo00.js} +3 -4
- package/dist/esm/{index-BIUWGRUl.js → index-B_dQk_WE.js} +4 -4
- package/dist/esm/{index-Mq5pCWmZ.js → index-DQSkZyOJ.js} +1 -1
- package/dist/esm/{index-KxK0gcRp.js → index-MEDq2S8l.js} +2 -2
- package/dist/esm/index-ZjP4CjeZ.js +7 -0
- package/dist/esm/{index-C0EQceqV.js → index-tcQvqkiX.js} +4 -41
- package/dist/esm/index.js +14 -13
- package/dist/esm/{input-shims-DvNNw70a.js → input-shims-D10mwcw1.js} +6 -7
- package/dist/esm/{input.utils-_LkBfBWt.js → input.utils-Y6NgW8bw.js} +3 -3
- package/dist/esm/ion-accordion_2.entry.js +29 -61
- package/dist/esm/ion-action-sheet.entry.js +28 -27
- package/dist/esm/ion-alert.entry.js +34 -32
- package/dist/esm/ion-app_8.entry.js +175 -296
- package/dist/esm/ion-avatar_3.entry.js +13 -125
- package/dist/esm/ion-back-button.entry.js +22 -31
- package/dist/esm/ion-backdrop.entry.js +7 -10
- package/dist/esm/ion-breadcrumb_2.entry.js +18 -54
- package/dist/esm/ion-button_2.entry.js +24 -61
- package/dist/esm/ion-card_5.entry.js +33 -55
- package/dist/esm/ion-checkbox.entry.js +17 -37
- package/dist/esm/ion-chip.entry.js +9 -50
- package/dist/esm/ion-col_3.entry.js +57 -56
- package/dist/esm/ion-datetime-button.entry.js +11 -21
- package/dist/esm/{ion-datetime_3.entry.js → ion-datetime.entry.js} +42 -759
- package/dist/esm/ion-fab_3.entry.js +28 -44
- package/dist/esm/ion-img.entry.js +6 -8
- package/dist/esm/ion-infinite-scroll_2.entry.js +16 -91
- package/dist/esm/ion-input-otp.entry.js +9 -74
- package/dist/esm/ion-input-password-toggle.entry.js +15 -53
- package/dist/esm/ion-input.entry.js +35 -125
- package/dist/esm/ion-item-option_3.entry.js +52 -467
- package/dist/esm/ion-item_8.entry.js +50 -121
- package/dist/esm/ion-loading.entry.js +22 -20
- package/dist/esm/ion-menu_3.entry.js +29 -47
- package/dist/esm/ion-modal.entry.js +118 -222
- package/dist/esm/ion-nav_2.entry.js +12 -128
- package/dist/esm/ion-picker-column-option.entry.js +9 -19
- package/dist/esm/ion-picker-column.entry.js +13 -19
- package/dist/esm/ion-picker.entry.js +6 -10
- package/dist/esm/ion-popover.entry.js +23 -21
- package/dist/esm/ion-progress-bar.entry.js +9 -27
- package/dist/esm/ion-radio_2.entry.js +17 -35
- package/dist/esm/ion-range.entry.js +13 -20
- package/dist/esm/ion-refresher_2.entry.js +21 -39
- package/dist/esm/ion-reorder_2.entry.js +14 -38
- package/dist/esm/ion-ripple-effect.entry.js +7 -15
- package/dist/esm/ion-route_4.entry.js +26 -13
- package/dist/esm/ion-searchbar.entry.js +25 -138
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +3 -13
- package/dist/esm/ion-segment_2.entry.js +16 -23
- package/dist/esm/ion-select-modal.entry.js +26 -48
- package/dist/esm/ion-select_3.entry.js +109 -200
- package/dist/esm/ion-spinner.entry.js +8 -30
- package/dist/esm/ion-split-pane.entry.js +9 -13
- package/dist/esm/ion-tab-bar_2.entry.js +23 -147
- package/dist/esm/ion-tab_2.entry.js +7 -8
- package/dist/esm/ion-text.entry.js +7 -7
- package/dist/esm/ion-textarea.entry.js +23 -137
- package/dist/esm/ion-toast.entry.js +21 -44
- package/dist/esm/ion-toggle.entry.js +25 -82
- package/dist/esm/ionic-global-pMW1XhFZ.js +146 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-CgScDbsb.js → ios.transition-ClFrsIrS.js} +5 -7
- package/dist/esm/{keyboard-CyyguLDw.js → keyboard-CUw4ekVy.js} +1 -1
- package/dist/esm/{keyboard-controller-BFwRdk2T.js → keyboard-controller-BaaVITYt.js} +3 -5
- package/dist/esm/{keyboard-WJix-wcz.js → keyboard-ywgs5efA.js} +3 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-DThqYazt.js → md.transition-D0msQmzI.js} +5 -6
- package/dist/esm/{notch-controller-MTblRxjD.js → notch-controller-DKDjU_O7.js} +2 -2
- package/dist/esm/{overlay-control-label-CODBQrPj.js → overlay-control-label-BSQPZ79H.js} +11 -13
- package/dist/esm/{overlays-tv6nLsmk.js → overlays-Cx65ihix.js} +40 -312
- package/dist/esm/{select-option-render-BlKZ2H83.js → select-option-render-B8nWZRnd.js} +2 -2
- package/dist/esm/{status-tap-CoPI1M2q.js → status-tap-Kan2W7sh.js} +3 -4
- package/dist/esm/{swipe-back-qmvTRnSq.js → swipe-back-DQ1q5MgD.js} +2 -3
- package/dist/esm/{theme-DaJxRxSQ.js → theme-DiVJyqlX.js} +1 -25
- package/dist/esm/validity-DJztqcrH.js +17 -0
- package/dist/html.html-data.json +149 -2684
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-06cef0c6.entry.js +4 -0
- package/dist/ionic/p-086cf9d8.entry.js +4 -0
- package/dist/ionic/p-0be097d7.entry.js +4 -0
- package/dist/ionic/p-0e7de053.entry.js +4 -0
- package/dist/ionic/p-2ad3a055.entry.js +4 -0
- package/dist/ionic/p-2b3a2a38.entry.js +4 -0
- package/dist/ionic/p-306b2e91.entry.js +4 -0
- package/dist/ionic/p-341032b3.entry.js +4 -0
- package/dist/ionic/p-34c8f2dc.entry.js +4 -0
- package/dist/ionic/p-3558c8d2.entry.js +4 -0
- package/dist/ionic/p-3ce3a59d.entry.js +4 -0
- package/dist/ionic/p-408afa6d.entry.js +4 -0
- package/dist/ionic/p-426130ad.entry.js +4 -0
- package/dist/ionic/p-4d03a05d.entry.js +4 -0
- package/dist/ionic/p-4e92a11f.entry.js +4 -0
- package/dist/ionic/p-5599e1e1.entry.js +4 -0
- package/dist/ionic/p-567b25e9.entry.js +4 -0
- package/dist/ionic/p-570a212e.entry.js +4 -0
- package/dist/ionic/p-656e8181.entry.js +4 -0
- package/dist/ionic/p-694aa5fc.entry.js +4 -0
- package/dist/ionic/p-73d06afe.entry.js +4 -0
- package/dist/ionic/p-79b2abe6.entry.js +4 -0
- package/dist/ionic/p-7cb5cf53.entry.js +4 -0
- package/dist/ionic/p-80b44b3c.entry.js +4 -0
- package/dist/ionic/p-89c9c057.entry.js +4 -0
- package/dist/ionic/p-8c4bdd70.entry.js +4 -0
- package/dist/ionic/p-8c898f59.entry.js +4 -0
- package/dist/ionic/p-8cde6208.entry.js +4 -0
- package/dist/ionic/p-8d6cca7b.entry.js +4 -0
- package/dist/ionic/p-9366f06d.entry.js +4 -0
- package/dist/ionic/p-9a29ba8c.entry.js +4 -0
- package/dist/ionic/p-9eeaBrnk.js +4 -0
- package/dist/ionic/p-AlrZKoWR.js +4 -0
- package/dist/ionic/{p--sroV-k-.js → p-BDtODLZ4.js} +1 -1
- package/dist/ionic/p-BGqMS-oh.js +4 -0
- package/dist/ionic/p-BSQPZ79H.js +4 -0
- package/dist/ionic/p-BUFIpxKM.js +4 -0
- package/dist/ionic/p-BmVRXR1y.js +4 -0
- package/dist/ionic/{p-7k7Q1A38.js → p-C0eMdTCW.js} +1 -1
- package/dist/ionic/p-CFlfIb2g.js +4 -0
- package/dist/ionic/p-CGqbOURp.js +4 -0
- package/dist/ionic/p-CIGNaXM1.js +4 -0
- package/dist/ionic/{p-OkgYzj-7.js → p-CKvCXMs9.js} +1 -1
- package/dist/ionic/p-CtWGkNnJ.js +4 -0
- package/dist/ionic/p-Cx3IXROA.js +4 -0
- package/dist/ionic/{p-DQDmksdT.js → p-D13Eaw-8.js} +1 -1
- package/dist/ionic/p-D4uTWt4-.js +4 -0
- package/dist/ionic/p-D9iu80E_.js +4 -0
- package/dist/ionic/p-DC3RagnA.js +4 -0
- package/dist/ionic/p-DCOvXkOm.js +4 -0
- package/dist/ionic/p-DIuEbVLu.js +4 -0
- package/dist/ionic/p-DJztqcrH.js +4 -0
- package/dist/ionic/p-DSG2s2Eb.js +4 -0
- package/dist/ionic/p-DeSfrUWZ.js +4 -0
- package/dist/ionic/p-Dfbt-q2k.js +4 -0
- package/dist/ionic/p-DiVJyqlX.js +4 -0
- package/dist/ionic/p-DoJvtrbw.js +4 -0
- package/dist/ionic/p-DzTgLDb_.js +4 -0
- package/{components/p-DmVUl5t4.js → dist/ionic/p-VAemlbDS.js} +1 -1
- package/dist/ionic/{p-oUgyLDGL.js → p-Wk5HzclC.js} +1 -1
- package/dist/ionic/p-ZjP4CjeZ.js +4 -0
- package/dist/ionic/p-a1448991.entry.js +4 -0
- package/dist/ionic/p-a256aeb6.entry.js +4 -0
- package/dist/ionic/p-aeff523a.entry.js +4 -0
- package/dist/ionic/p-b2f15bd0.entry.js +4 -0
- package/dist/ionic/p-b7737b44.entry.js +4 -0
- package/dist/ionic/p-ba99d16b.entry.js +4 -0
- package/dist/ionic/p-cdfe2531.entry.js +4 -0
- package/dist/ionic/p-cf1fb54f.entry.js +4 -0
- package/dist/ionic/p-d183a4ba.entry.js +4 -0
- package/dist/ionic/p-d3089de6.entry.js +4 -0
- package/dist/ionic/p-d57560ff.entry.js +4 -0
- package/dist/ionic/p-d6d91a44.entry.js +4 -0
- package/dist/ionic/p-dd992df7.entry.js +4 -0
- package/dist/ionic/p-e2756327.entry.js +4 -0
- package/dist/ionic/p-e3842b54.entry.js +4 -0
- package/dist/ionic/p-e56b1836.entry.js +4 -0
- package/dist/ionic/p-f09f9642.entry.js +4 -0
- package/dist/ionic/p-f5b104d9.entry.js +4 -0
- package/dist/ionic/p-f5b1f739.entry.js +4 -0
- package/dist/ionic/p-f88310b9.entry.js +4 -0
- package/dist/ionic/p-fd4e56cd.entry.js +4 -0
- package/dist/ionic/p-mjKAFv89.js +4 -0
- package/dist/ionic/p-tcQvqkiX.js +5 -0
- package/dist/ionic/p-viFHDgRs.js +4 -0
- package/dist/ionic/p-xWb6fgfq.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +3 -6
- package/dist/types/components/accordion-group/accordion-group.d.ts +1 -12
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +7 -3
- package/dist/types/components/action-sheet/action-sheet.d.ts +2 -3
- package/dist/types/components/alert/alert-interface.d.ts +7 -3
- package/dist/types/components/alert/alert.d.ts +2 -3
- package/dist/types/components/app/app.d.ts +5 -4
- package/dist/types/components/avatar/avatar.d.ts +0 -32
- package/dist/types/components/back-button/back-button.d.ts +1 -2
- package/dist/types/components/backdrop/backdrop.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +1 -34
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -4
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +8 -23
- package/dist/types/components/buttons/buttons.d.ts +1 -5
- package/dist/types/components/card/card.d.ts +1 -8
- package/dist/types/components/card-content/card-content.d.ts +1 -2
- package/dist/types/components/card-header/card-header.d.ts +2 -3
- package/dist/types/components/card-subtitle/card-subtitle.d.ts +1 -2
- package/dist/types/components/card-title/card-title.d.ts +1 -2
- package/dist/types/components/checkbox/checkbox.d.ts +4 -14
- package/dist/types/components/chip/chip.d.ts +1 -26
- package/dist/types/components/col/col.d.ts +5 -52
- package/dist/types/components/content/content.d.ts +0 -3
- package/dist/types/components/datetime/datetime.d.ts +1 -26
- package/dist/types/components/datetime/utils/data.d.ts +5 -5
- package/dist/types/components/datetime-button/datetime-button.d.ts +1 -2
- package/dist/types/components/fab/fab.d.ts +0 -4
- package/dist/types/components/fab-button/fab-button.d.ts +3 -5
- package/dist/types/components/fab-list/fab-list.d.ts +0 -4
- package/dist/types/components/footer/footer.d.ts +3 -4
- package/dist/types/components/grid/grid.d.ts +0 -4
- package/dist/types/components/header/header.d.ts +3 -9
- package/dist/types/components/header/header.utils.d.ts +3 -3
- package/dist/types/components/img/img.d.ts +1 -2
- package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +0 -21
- package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +0 -4
- package/dist/types/components/input/input.d.ts +6 -32
- package/dist/types/components/input-otp/input-otp.d.ts +0 -37
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +0 -2
- package/dist/types/components/item/item.d.ts +4 -11
- package/dist/types/components/item-divider/item-divider.d.ts +1 -2
- package/dist/types/components/item-group/item-group.d.ts +0 -4
- package/dist/types/components/item-option/item-option.d.ts +1 -18
- package/dist/types/components/item-options/item-options.d.ts +0 -4
- package/dist/types/components/item-sliding/item-sliding.d.ts +1 -47
- package/dist/types/components/item-sliding/test/test.utils.d.ts +0 -13
- package/dist/types/components/label/label.d.ts +1 -2
- package/dist/types/components/list/list.d.ts +1 -15
- package/dist/types/components/list-header/list-header.d.ts +1 -2
- package/dist/types/components/loading/loading-interface.d.ts +7 -2
- package/dist/types/components/loading/loading.d.ts +2 -3
- package/dist/types/components/menu/menu.d.ts +0 -3
- package/dist/types/components/menu-button/menu-button.d.ts +1 -3
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +0 -3
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +7 -4
- package/dist/types/components/modal/modal.d.ts +12 -15
- package/dist/types/components/nav/nav-interface.d.ts +1 -10
- package/dist/types/components/nav/nav.d.ts +3 -27
- package/dist/types/components/nav-link/nav-link.d.ts +0 -4
- package/dist/types/components/note/note.d.ts +1 -2
- package/dist/types/components/picker/picker.d.ts +1 -2
- package/dist/types/components/picker-column/picker-column.d.ts +1 -2
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +0 -4
- package/dist/types/components/popover/popover-interface.d.ts +6 -3
- package/dist/types/components/popover/popover.d.ts +5 -6
- package/dist/types/components/progress-bar/progress-bar.d.ts +1 -10
- package/dist/types/components/radio/radio.d.ts +1 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -12
- package/dist/types/components/range/range.d.ts +1 -2
- package/dist/types/components/refresher/refresher.d.ts +1 -2
- package/dist/types/components/refresher-content/refresher-content.d.ts +0 -4
- package/dist/types/components/reorder/reorder.d.ts +0 -9
- package/dist/types/components/reorder-group/reorder-group.d.ts +0 -4
- package/dist/types/components/ripple-effect/ripple-effect.d.ts +0 -4
- package/dist/types/components/route/route.d.ts +1 -5
- package/dist/types/components/router/router.d.ts +0 -4
- package/dist/types/components/router-link/router-link.d.ts +0 -4
- package/dist/types/components/router-outlet/router-outlet.d.ts +8 -4
- package/dist/types/components/row/row.d.ts +0 -4
- package/dist/types/components/searchbar/searchbar.d.ts +10 -52
- package/dist/types/components/segment/segment.d.ts +1 -2
- package/dist/types/components/segment-button/segment-button.d.ts +1 -2
- package/dist/types/components/select/select.d.ts +14 -49
- package/dist/types/components/select-modal/select-modal.d.ts +0 -8
- package/dist/types/components/select-option/select-option.d.ts +4 -7
- package/dist/types/components/select-popover/select-popover.d.ts +0 -3
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +0 -4
- package/dist/types/components/spinner/spinner.d.ts +0 -15
- package/dist/types/components/split-pane/split-pane.d.ts +0 -4
- package/dist/types/components/tab/tab.d.ts +0 -4
- package/dist/types/components/tab-bar/tab-bar.d.ts +2 -37
- package/dist/types/components/tab-button/tab-button.d.ts +1 -12
- package/dist/types/components/tabs/tabs.d.ts +0 -3
- package/dist/types/components/text/text.d.ts +1 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -53
- package/dist/types/components/thumbnail/thumbnail.d.ts +0 -4
- package/dist/types/components/title/title.d.ts +0 -4
- package/dist/types/components/toast/animations/utils.d.ts +2 -2
- package/dist/types/components/toast/toast-interface.d.ts +7 -3
- package/dist/types/components/toast/toast.d.ts +2 -19
- package/dist/types/components/toggle/toggle.d.ts +1 -15
- package/dist/types/components/toolbar/toolbar.d.ts +3 -43
- package/dist/types/components.d.ts +260 -2144
- package/dist/types/global/ionic-global.d.ts +2 -28
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +0 -4
- package/dist/types/utils/config.d.ts +2 -114
- package/dist/types/utils/focus-trap.d.ts +1 -1
- package/dist/types/utils/focus-visible.d.ts +0 -13
- package/dist/types/utils/forms/validity.d.ts +0 -7
- package/dist/types/utils/helpers.d.ts +0 -22
- package/dist/types/utils/overlay-control-label.d.ts +9 -11
- package/dist/types/utils/overlays-interface.d.ts +1 -31
- package/dist/types/utils/overlays.d.ts +12 -10
- package/dist/types/utils/test/playwright/drag-element.d.ts +3 -16
- package/dist/types/utils/test/playwright/generator.d.ts +2 -31
- package/dist/types/utils/theme.d.ts +0 -9
- package/hydrate/index.js +1332 -5844
- package/hydrate/index.mjs +1332 -5844
- package/package.json +41 -13
- package/components/ion-divider.d.ts +0 -11
- package/components/ion-divider.js +0 -4
- package/components/ion-gallery-item.d.ts +0 -11
- package/components/ion-gallery-item.js +0 -4
- package/components/ion-gallery.d.ts +0 -11
- package/components/ion-gallery.js +0 -4
- package/components/ion-picker-legacy-column.d.ts +0 -11
- package/components/ion-picker-legacy-column.js +0 -4
- package/components/ion-picker-legacy.d.ts +0 -11
- package/components/ion-picker-legacy.js +0 -4
- package/components/p-0RwSa3tV.js +0 -4
- package/components/p-B8KYxaMx.js +0 -4
- package/components/p-BDqjX7Z_.js +0 -4
- package/components/p-BI03N_8J.js +0 -4
- package/components/p-BISCDmUD.js +0 -4
- package/components/p-BLlJA2Q9.js +0 -4
- package/components/p-BYSs-jZz.js +0 -4
- package/components/p-BiG3Zevl.js +0 -4
- package/components/p-BjW8SOqw.js +0 -4
- package/components/p-BoWc8hp0.js +0 -4
- package/components/p-BqRIq3ti.js +0 -4
- package/components/p-BskJOMNV.js +0 -4
- package/components/p-C4q_m_U_.js +0 -4
- package/components/p-C9QYu-sR.js +0 -4
- package/components/p-CEbQglhY.js +0 -4
- package/components/p-CGwI_XL6.js +0 -4
- package/components/p-CIdlZzoM.js +0 -4
- package/components/p-CJCMdFb9.js +0 -4
- package/components/p-CODBQrPj.js +0 -4
- package/components/p-CWq1hA4y.js +0 -4
- package/components/p-CeL9Glto.js +0 -4
- package/components/p-Ck_9SoHZ.js +0 -4
- package/components/p-Cl94E1nn.js +0 -4
- package/components/p-CmnPD02Z.js +0 -4
- package/components/p-Cog60JgJ.js +0 -4
- package/components/p-CyGaZ-Qb.js +0 -4
- package/components/p-CzFNvOq3.js +0 -4
- package/components/p-Czw29-II.js +0 -4
- package/components/p-D-Xa9lMG.js +0 -4
- package/components/p-D0Iqw6OZ.js +0 -4
- package/components/p-D1t981Ih.js +0 -4
- package/components/p-D4UIY4kz.js +0 -4
- package/components/p-D6un2jDV.js +0 -4
- package/components/p-D9583Eo8.js +0 -4
- package/components/p-DABI8XVx.js +0 -4
- package/components/p-DEZQwbtZ.js +0 -4
- package/components/p-DEnOtJ3m.js +0 -4
- package/components/p-DFSqPtzD.js +0 -4
- package/components/p-DJw3WM2A.js +0 -4
- package/components/p-DS1w_1X1.js +0 -4
- package/components/p-DaJxRxSQ.js +0 -4
- package/components/p-Daj5LWIm.js +0 -4
- package/components/p-Dg8OSVcP.js +0 -4
- package/components/p-Dhi5xtNS.js +0 -4
- package/components/p-DiKh2eQw.js +0 -4
- package/components/p-Dn77l_LX.js +0 -4
- package/components/p-I0lsm6wZ.js +0 -4
- package/components/p-J03hHbbL.js +0 -4
- package/components/p-NPsFR8Ng.js +0 -4
- package/components/p-TaMIMwf5.js +0 -4
- package/components/p-U2gyA6Z0.js +0 -4
- package/components/p-ZWbVyMi6.js +0 -4
- package/components/p-_rgGxkzx.js +0 -4
- package/components/p-fIOYmaqA.js +0 -4
- package/components/p-q8wGOPJB.js +0 -4
- package/components/p-vXpMhGrs.js +0 -4
- package/css/ionic/bundle.ionic.css +0 -1
- package/css/ionic/bundle.ionic.css.map +0 -1
- package/css/ionic/core.ionic.css +0 -1
- package/css/ionic/core.ionic.css.map +0 -1
- package/css/ionic/global.bundle.ionic.css +0 -1
- package/css/ionic/global.bundle.ionic.css.map +0 -1
- package/css/ionic/ionic-swiper.ionic.css +0 -1
- package/css/ionic/ionic-swiper.ionic.css.map +0 -1
- package/css/ionic/link.ionic.css +0 -1
- package/css/ionic/link.ionic.css.map +0 -1
- package/css/ionic/structure.ionic.css +0 -1
- package/css/ionic/structure.ionic.css.map +0 -1
- package/css/ionic/typography.ionic.css +0 -1
- package/css/ionic/typography.ionic.css.map +0 -1
- package/css/ionic/utils.bundle.ionic.css +0 -1
- package/css/ionic/utils.bundle.ionic.css.map +0 -1
- package/dist/cjs/caret-down-vtVgfXIs.js +0 -8
- package/dist/cjs/caret-left-CxZXLRv5.js +0 -8
- package/dist/cjs/caret-right-CRCgv98E.js +0 -8
- package/dist/cjs/ion-divider.cjs.entry.js +0 -51
- package/dist/cjs/ion-gallery-item.cjs.entry.js +0 -59
- package/dist/cjs/ion-gallery.cjs.entry.js +0 -607
- package/dist/cjs/ionic-global-QoUqobrQ.js +0 -519
- package/dist/cjs/list-a-7GSA6K.js +0 -8
- package/dist/cjs/validity-QmuwEptc.js +0 -51
- package/dist/cjs/x-BTF99yFH.js +0 -8
- package/dist/collection/components/accordion/accordion.ionic.css +0 -201
- package/dist/collection/components/accordion-group/accordion-group.ionic.css +0 -93
- package/dist/collection/components/action-sheet/action-sheet.ionic.css +0 -494
- package/dist/collection/components/alert/alert.ionic.css +0 -787
- package/dist/collection/components/avatar/avatar.ionic.css +0 -385
- package/dist/collection/components/backdrop/backdrop.ionic.css +0 -109
- package/dist/collection/components/badge/badge.ionic.css +0 -272
- package/dist/collection/components/button/button.ionic.css +0 -644
- package/dist/collection/components/buttons/buttons.ionic.css +0 -97
- package/dist/collection/components/card/card.ionic.css +0 -144
- package/dist/collection/components/card-content/card-content.ionic.css +0 -89
- package/dist/collection/components/card-header/card-header.ionic.css +0 -85
- package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +0 -144
- package/dist/collection/components/checkbox/checkbox.ionic.css +0 -543
- package/dist/collection/components/chip/chip.ionic.css +0 -217
- package/dist/collection/components/datetime/datetime.ionic.css +0 -703
- package/dist/collection/components/divider/divider.ionic.css +0 -148
- package/dist/collection/components/divider/divider.ios.css +0 -87
- package/dist/collection/components/divider/divider.js +0 -94
- package/dist/collection/components/divider/divider.md.css +0 -87
- package/dist/collection/components/gallery/gallery-constants.js +0 -12
- package/dist/collection/components/gallery/gallery-interface.js +0 -1
- package/dist/collection/components/gallery/gallery.css +0 -15
- package/dist/collection/components/gallery/gallery.js +0 -679
- package/dist/collection/components/gallery/test/utils.js +0 -100
- package/dist/collection/components/gallery-item/gallery-item.css +0 -49
- package/dist/collection/components/gallery-item/gallery-item.js +0 -99
- package/dist/collection/components/header/header.ionic.css +0 -97
- package/dist/collection/components/input/input.ionic.css +0 -888
- package/dist/collection/components/input-otp/input-otp.ionic.css +0 -371
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +0 -78
- package/dist/collection/components/input-password-toggle/input-password-toggle.native.css +0 -61
- package/dist/collection/components/item/item.ionic.css +0 -496
- package/dist/collection/components/item-option/item-option.ionic.css +0 -277
- package/dist/collection/components/item-options/item-options.ionic.css +0 -221
- package/dist/collection/components/item-sliding/item-sliding.ionic.css +0 -211
- package/dist/collection/components/list/list.ionic.css +0 -212
- package/dist/collection/components/list-header/list-header.ionic.css +0 -190
- package/dist/collection/components/menu-button/menu-button.ionic.css +0 -236
- package/dist/collection/components/modal/animations/ionic.enter.js +0 -40
- package/dist/collection/components/modal/animations/ionic.leave.js +0 -28
- package/dist/collection/components/modal/modal.ionic.css +0 -255
- package/dist/collection/components/picker-legacy/animations/ios.enter.js +0 -27
- package/dist/collection/components/picker-legacy/animations/ios.leave.js +0 -23
- package/dist/collection/components/picker-legacy/picker-interface.js +0 -1
- package/dist/collection/components/picker-legacy/picker.ios.css +0 -312
- package/dist/collection/components/picker-legacy/picker.js +0 -891
- package/dist/collection/components/picker-legacy/picker.md.css +0 -299
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -243
- package/dist/collection/components/picker-legacy-column/picker-column.js +0 -422
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -234
- package/dist/collection/components/picker-legacy-column/test/test.utils.js +0 -43
- package/dist/collection/components/popover/popover.ionic.css +0 -290
- package/dist/collection/components/progress-bar/progress-bar.ionic.css +0 -287
- package/dist/collection/components/radio/radio.ionic.css +0 -422
- package/dist/collection/components/radio-group/radio-group.ionic.css +0 -119
- package/dist/collection/components/range/range.ionic.css +0 -567
- package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +0 -215
- package/dist/collection/components/searchbar/searchbar.ionic.css +0 -622
- package/dist/collection/components/segment/segment.ionic.css +0 -115
- package/dist/collection/components/segment-button/segment-button.ionic.css +0 -352
- package/dist/collection/components/select/select.ionic.css +0 -809
- package/dist/collection/components/select-modal/select-modal.ionic.css +0 -257
- package/dist/collection/components/select-popover/select-popover.ionic.css +0 -255
- package/dist/collection/components/spinner/spinner.native.css +0 -199
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +0 -227
- package/dist/collection/components/tab-button/tab-button.ionic.css +0 -373
- package/dist/collection/components/textarea/textarea.ionic.css +0 -898
- package/dist/collection/components/title/title.ionic.css +0 -127
- package/dist/collection/components/toast/toast.ionic.css +0 -394
- package/dist/collection/components/toggle/toggle.ionic.css +0 -508
- package/dist/collection/components/toolbar/test/image.svg +0 -1
- package/dist/collection/components/toolbar/toolbar.ionic.css +0 -249
- package/dist/collection/utils/css-value-validation.js +0 -39
- package/dist/esm/caret-down-D1t981Ih.js +0 -6
- package/dist/esm/caret-left-fIOYmaqA.js +0 -6
- package/dist/esm/caret-right-BYSs-jZz.js +0 -6
- package/dist/esm/ion-divider.entry.js +0 -49
- package/dist/esm/ion-gallery-item.entry.js +0 -57
- package/dist/esm/ion-gallery.entry.js +0 -605
- package/dist/esm/ionic-global-BpkTponr.js +0 -508
- package/dist/esm/list-Dhi5xtNS.js +0 -6
- package/dist/esm/validity-BjW8SOqw.js +0 -48
- package/dist/esm/x-BDqjX7Z_.js +0 -6
- package/dist/ionic/p-05ce9821.entry.js +0 -4
- package/dist/ionic/p-085b8cdf.entry.js +0 -4
- package/dist/ionic/p-0c4d9d7c.entry.js +0 -4
- package/dist/ionic/p-0ef6bfc4.entry.js +0 -4
- package/dist/ionic/p-1b6e3914.entry.js +0 -4
- package/dist/ionic/p-1y3VhUSy.js +0 -4
- package/dist/ionic/p-25b51635.entry.js +0 -4
- package/dist/ionic/p-2740db6e.entry.js +0 -4
- package/dist/ionic/p-274a829d.entry.js +0 -4
- package/dist/ionic/p-2a1abbb1.entry.js +0 -4
- package/dist/ionic/p-2fba8f15.entry.js +0 -4
- package/dist/ionic/p-3b4c5cb5.entry.js +0 -4
- package/dist/ionic/p-3cfb4ff2.entry.js +0 -4
- package/dist/ionic/p-40dc9dbd.entry.js +0 -4
- package/dist/ionic/p-41afaf15.entry.js +0 -4
- package/dist/ionic/p-42a882b7.entry.js +0 -4
- package/dist/ionic/p-507dbb1c.entry.js +0 -4
- package/dist/ionic/p-54419365.entry.js +0 -4
- package/dist/ionic/p-602cf876.entry.js +0 -4
- package/dist/ionic/p-6293e9f1.entry.js +0 -4
- package/dist/ionic/p-678ee14a.entry.js +0 -4
- package/dist/ionic/p-68ea8ed1.entry.js +0 -4
- package/dist/ionic/p-6e1ec775.entry.js +0 -4
- package/dist/ionic/p-745d6b2b.entry.js +0 -4
- package/dist/ionic/p-7b2fe639.entry.js +0 -4
- package/dist/ionic/p-7de397c7.entry.js +0 -4
- package/dist/ionic/p-89fedfda.entry.js +0 -4
- package/dist/ionic/p-8cf82b85.entry.js +0 -4
- package/dist/ionic/p-8d5fd199.entry.js +0 -4
- package/dist/ionic/p-9e9be378.entry.js +0 -4
- package/dist/ionic/p-BDSH5ckF.js +0 -4
- package/dist/ionic/p-BDqjX7Z_.js +0 -4
- package/dist/ionic/p-BFy_BK46.js +0 -4
- package/dist/ionic/p-BYSs-jZz.js +0 -4
- package/dist/ionic/p-BjW8SOqw.js +0 -4
- package/dist/ionic/p-Bq8S4vhI.js +0 -4
- package/dist/ionic/p-C0EQceqV.js +0 -5
- package/dist/ionic/p-CB91Gr9M.js +0 -4
- package/dist/ionic/p-CEkwLb3L.js +0 -4
- package/dist/ionic/p-CJsJQPQD.js +0 -4
- package/dist/ionic/p-CODBQrPj.js +0 -4
- package/dist/ionic/p-Ch7MBNn_.js +0 -4
- package/dist/ionic/p-CnAWnbNK.js +0 -4
- package/dist/ionic/p-D1t981Ih.js +0 -4
- package/dist/ionic/p-D4MT1z4_.js +0 -4
- package/dist/ionic/p-D4veLKCq.js +0 -4
- package/dist/ionic/p-DF7ubVci.js +0 -4
- package/dist/ionic/p-DMaSfupH.js +0 -4
- package/dist/ionic/p-DTsDGZPd.js +0 -4
- package/dist/ionic/p-DaJxRxSQ.js +0 -4
- package/dist/ionic/p-DdCaKRle.js +0 -4
- package/dist/ionic/p-Dhi5xtNS.js +0 -4
- package/dist/ionic/p-Dy243NXW.js +0 -4
- package/dist/ionic/p-MqqcZQSB.js +0 -4
- package/dist/ionic/p-YIsE5bNG.js +0 -4
- package/dist/ionic/p-a09c7a4c.entry.js +0 -4
- package/dist/ionic/p-a6e04ca3.entry.js +0 -4
- package/dist/ionic/p-a6fe63f0.entry.js +0 -4
- package/dist/ionic/p-a797625e.entry.js +0 -4
- package/dist/ionic/p-b275f17e.entry.js +0 -4
- package/dist/ionic/p-b3d04a86.entry.js +0 -4
- package/dist/ionic/p-c5635175.entry.js +0 -4
- package/dist/ionic/p-c76d57fb.entry.js +0 -4
- package/dist/ionic/p-ca3a07b5.entry.js +0 -4
- package/dist/ionic/p-ced3cda1.entry.js +0 -4
- package/dist/ionic/p-cf22e991.entry.js +0 -4
- package/dist/ionic/p-d0c1d21d.entry.js +0 -4
- package/dist/ionic/p-d0d42da6.entry.js +0 -4
- package/dist/ionic/p-d0dfc9a3.entry.js +0 -4
- package/dist/ionic/p-d0f253fc.entry.js +0 -4
- package/dist/ionic/p-d33dfc12.entry.js +0 -4
- package/dist/ionic/p-d34bfb61.entry.js +0 -4
- package/dist/ionic/p-dc8e0b91.entry.js +0 -4
- package/dist/ionic/p-ddde8df3.entry.js +0 -4
- package/dist/ionic/p-df642ef5.entry.js +0 -4
- package/dist/ionic/p-e04d63e1.entry.js +0 -4
- package/dist/ionic/p-eeb7b373.entry.js +0 -4
- package/dist/ionic/p-f692219d.entry.js +0 -4
- package/dist/ionic/p-f8001f8f.entry.js +0 -4
- package/dist/ionic/p-fIOYmaqA.js +0 -4
- package/dist/ionic/p-fb457fdd.entry.js +0 -4
- package/dist/ionic/p-fc6d26ff.entry.js +0 -4
- package/dist/ionic/p-im8OkZlj.js +0 -4
- package/dist/ionic/p-lMb_45ax.js +0 -4
- package/dist/ionic/p-vXpMhGrs.js +0 -4
- package/dist/types/components/divider/divider.d.ts +0 -20
- package/dist/types/components/gallery/gallery-constants.d.ts +0 -9
- package/dist/types/components/gallery/gallery-interface.d.ts +0 -10
- package/dist/types/components/gallery/gallery.d.ts +0 -218
- package/dist/types/components/gallery/test/utils.d.ts +0 -3
- package/dist/types/components/gallery-item/gallery-item.d.ts +0 -33
- package/dist/types/components/modal/animations/ionic.enter.d.ts +0 -6
- package/dist/types/components/modal/animations/ionic.leave.d.ts +0 -6
- package/dist/types/components/picker-legacy/animations/ios.enter.d.ts +0 -5
- package/dist/types/components/picker-legacy/animations/ios.leave.d.ts +0 -5
- package/dist/types/components/picker-legacy/picker-interface.d.ts +0 -52
- package/dist/types/components/picker-legacy/picker.d.ts +0 -159
- package/dist/types/components/picker-legacy-column/picker-column.d.ts +0 -46
- package/dist/types/components/picker-legacy-column/test/test.utils.d.ts +0 -9
- package/dist/types/utils/css-value-validation.d.ts +0 -21
- /package/dist/collection/components/{refresher-content/refresher-content.css → input-password-toggle/input-password-toggle.css} +0 -0
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { j as printIonError, f as printIonWarning, r as registerInstance, c as createEvent, w as writeTask, e as config, h, d as Host, g as getElement } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { r as raf, g as getElementRoot, a as renderHiddenInput, e as clamp } from './helpers-DfF5_wJc.js';
|
|
9
|
-
import { F as FOCUS_TRAP_DISABLE_CLASS, d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-tv6nLsmk.js';
|
|
4
|
+
import { j as printIonError, f as printIonWarning, r as registerInstance, c as createEvent, w as writeTask, e as config, h, d as Host, g as getElement } from './index-tcQvqkiX.js';
|
|
5
|
+
import { startFocusVisible } from './focus-visible-BmVRXR1y.js';
|
|
6
|
+
import { r as raf, g as getElementRoot, a as renderHiddenInput } from './helpers-HEqiOzXb.js';
|
|
7
|
+
import { F as FOCUS_TRAP_DISABLE_CLASS } from './overlays-Cx65ihix.js';
|
|
10
8
|
import { i as isRTL } from './dir-C53feagD.js';
|
|
11
|
-
import { c as createColorClasses
|
|
12
|
-
import {
|
|
13
|
-
import { b as getIonMode
|
|
14
|
-
import { r as removeDateTzOffset, g as getNextMonth, a as getPreviousMonth, i as isSameDay, b as getTodayLabel, c as getYear, d as getHourCycle, e as getInternalHourValue, f as getFormattedHour, h as addTimePadding, j as getLocalizedDayPeriod, k as isBefore, l as isAfter, m as is24Hour, n as getNumDaysInMonth, o as getDay, p as generateDayAriaLabel, v as validateParts, q as getPartsFromCalendarDay, s as getNextYear, t as getPreviousYear, u as getEndOfWeek, w as getStartOfWeek, x as getPreviousDay, y as getNextDay, z as getPreviousWeek, A as getNextWeek, B as parseMinParts, C as parseMaxParts, D as parseDate, E as warnIfValueOutOfBounds, F as parseAmPm, G as clampDate, H as convertToArrayOfNumbers, I as convertDataToISO, J as getClosestValidDate, K as isMonthFirstLocale, L as isLocaleDayPeriodRTL, M as calculateHourFromAMPM, N as getMonthAndYear, O as getLocalizedTime, P as getLocalizedDateTime, Q as formatValue } from './format-
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import './framework-delegate-DO2QXccA.js';
|
|
9
|
+
import { c as createColorClasses } from './theme-DiVJyqlX.js';
|
|
10
|
+
import { b as chevronDown, d as caretUpSharp, e as chevronForward, f as caretDownSharp, c as chevronBack } from './index-AlrZKoWR.js';
|
|
11
|
+
import { b as getIonMode } from './ionic-global-pMW1XhFZ.js';
|
|
12
|
+
import { r as removeDateTzOffset, g as getNextMonth, a as getPreviousMonth, i as isSameDay, b as getTodayLabel, c as getYear, d as getHourCycle, e as getInternalHourValue, f as getFormattedHour, h as addTimePadding, j as getLocalizedDayPeriod, k as isBefore, l as isAfter, m as is24Hour, n as getNumDaysInMonth, o as getDay, p as generateDayAriaLabel, v as validateParts, q as getPartsFromCalendarDay, s as getNextYear, t as getPreviousYear, u as getEndOfWeek, w as getStartOfWeek, x as getPreviousDay, y as getNextDay, z as getPreviousWeek, A as getNextWeek, B as parseMinParts, C as parseMaxParts, D as parseDate, E as warnIfValueOutOfBounds, F as parseAmPm, G as clampDate, H as convertToArrayOfNumbers, I as convertDataToISO, J as getClosestValidDate, K as isMonthFirstLocale, L as isLocaleDayPeriodRTL, M as calculateHourFromAMPM, N as getMonthAndYear, O as getLocalizedTime, P as getLocalizedDateTime, Q as formatValue } from './format-CAmvpAez.js';
|
|
13
|
+
import './index-ZjP4CjeZ.js';
|
|
14
|
+
import './hardware-back-button-B93Gru0Y.js';
|
|
15
|
+
import './framework-delegate-FnPGymXL.js';
|
|
19
16
|
import './gesture-controller-BTEOs1at.js';
|
|
20
|
-
import './capacitor-CtQSWUU0.js';
|
|
21
17
|
|
|
22
18
|
/**
|
|
23
19
|
* Returns the current date as
|
|
@@ -57,20 +53,20 @@ const hour23 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
|
|
|
57
53
|
// h24 hour system uses 1-24. Midnight starts at 24:00.
|
|
58
54
|
const hour24 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0];
|
|
59
55
|
/**
|
|
60
|
-
* Given a locale and a
|
|
56
|
+
* Given a locale and a mode,
|
|
61
57
|
* return an array with formatted days
|
|
62
|
-
* of the week. iOS
|
|
63
|
-
*
|
|
58
|
+
* of the week. iOS should display days
|
|
59
|
+
* such as "Mon" or "Tue".
|
|
64
60
|
* MD should display days such as "M"
|
|
65
61
|
* or "T".
|
|
66
62
|
*/
|
|
67
|
-
const getDaysOfWeek = (locale,
|
|
63
|
+
const getDaysOfWeek = (locale, mode, firstDayOfWeek = 0) => {
|
|
68
64
|
/**
|
|
69
65
|
* Nov 1st, 2020 starts on a Sunday.
|
|
70
66
|
* ion-datetime assumes weeks start on Sunday,
|
|
71
67
|
* but is configurable via `firstDayOfWeek`.
|
|
72
68
|
*/
|
|
73
|
-
const weekdayFormat =
|
|
69
|
+
const weekdayFormat = mode === 'ios' ? 'short' : 'narrow';
|
|
74
70
|
const intl = new Intl.DateTimeFormat(locale, { weekday: weekdayFormat });
|
|
75
71
|
const startDate = new Date('11/01/2020');
|
|
76
72
|
const daysOfWeek = [];
|
|
@@ -752,11 +748,9 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
752
748
|
}
|
|
753
749
|
};
|
|
754
750
|
|
|
755
|
-
const datetimeIonicCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{--background:var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));--focus-ring-color:var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));--focus-ring-width:var(--token-border-radius-025, var(--token-scale-050, 2px));--body-opacity:0;--year-opacity:0}:host .calendar-body{opacity:var(--body-opacity)}:host .datetime-year{opacity:var(--year-opacity)}:host(.datetime-ready) .calendar-body{--body-opacity:1}:host(.datetime-ready) .datetime-year{--year-opacity:1}:host .datetime-header{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-400, var(--token-scale-400, 16px));display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start;-ms-flex-pack:justify;justify-content:space-between;height:var(--token-scale-1400, 56px);margin-bottom:var(--token-space-200, var(--token-scale-200, 8px));border-bottom:var(--token-border-style-solid, solid) var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d5d5d5)}:host .datetime-header .datetime-title{font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-700, var(--token-scale-700, 28px));text-decoration:none;text-transform:none;color:var(--token-primitives-neutral-800, #626262)}:host .datetime-header .datetime-selected-date{font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;color:var(--token-primitives-neutral-1000, #3b3b3b)}.calendar-action-buttons{padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));-ms-flex-align:center;align-items:center;height:var(--token-scale-1400, 56px);-webkit-box-sizing:border-box;box-sizing:border-box}.calendar-month-year{-ms-flex:1 0 0px;flex:1 0 0}.calendar-month-year-toggle{border-radius:var(--token-border-radius-full, 999px);font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-1, 1%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));min-width:var(--token-scale-1600, 64px);min-height:var(--token-scale-1000, 40px);border:var(--focus-ring-width) var(--token-border-style-solid, solid) transparent;color:var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}@media (any-hover: hover){.calendar-month-year-toggle:hover{background:var(--token-primitives-neutral-200, #eae9e9)}}.calendar-month-year-toggle.ion-focused{border-color:var(--focus-ring-color)}.calendar-month-year-toggle.ion-activated{background:var(--token-primitives-neutral-200, #eae9e9)}.calendar-next-prev ion-button.button-has-icon-only{--color:var(--token-primitives-neutral-1000, #3b3b3b);--background-activated:var(--token-primitives-neutral-200, #eae9e9);--background-hover:var(--token-primitives-neutral-200, #eae9e9);--background-hover-opacity:1;min-height:var(--token-scale-1000, 40px)}.calendar-next-prev ion-button.button-has-icon-only.ion-focused::part(native){border:var(--token-border-size-050, var(--token-scale-050, 2px)) var(--token-border-style-solid, solid) var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));outline:none}.calendar-days-of-week{font-size:var(--token-font-size-300, 0.75rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-2, 1.5%);line-height:var(--token-font-line-height-500, var(--token-scale-500, 20px));text-decoration:none;text-transform:uppercase;-ms-flex-line-pack:center;align-content:center;height:var(--token-scale-1200, 48px);color:var(--token-primitives-neutral-800, #626262)}.calendar-day{border-radius:var(--token-border-radius-full, 999px);-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px));font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-1, 1%);line-height:var(--token-font-line-height-500, var(--token-scale-500, 20px));text-decoration:none;text-transform:none;width:var(--token-scale-1200, 48px);min-width:var(--token-scale-1200, 48px);height:var(--token-scale-1200, 48px);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242424))}.calendar-day[disabled]:not(.calendar-day-constrained){color:var(--token-primitives-neutral-500, #a2a2a2)}.calendar-day.calendar-day-today{color:var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active.calendar-day-adjacent-day{background:var(--token-semantics-primary-100, var(--token-primitives-blue-100, #e9ecfc))}.calendar-day:focus-visible{border:var(--focus-ring-width) var(--token-border-style-solid, solid) var(--focus-ring-color)}@media (any-hover: hover){.calendar-day:not([disabled]):not(:active):hover{background:var(--token-semantics-primary-200, var(--token-primitives-blue-200, #e4e8ff))}}.calendar-day:active,.calendar-day.calendar-day-adjacent-day:active{background:var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)))}.calendar-day.calendar-day-adjacent-day{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #626262))}.calendar-day.calendar-day-active.calendar-day-adjacent-day{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242424))}:host .datetime-time{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host .datetime-time .time-header{font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-1, 1%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;color:var(--token-primitives-neutral-800, #626262)}:host .datetime-time button{-webkit-padding-start:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-start:var(--token-space-200, var(--token-scale-200, 8px));-webkit-padding-end:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-end:var(--token-space-200, var(--token-scale-200, 8px));padding-top:var(--token-space-0, var(--token-scale-0, 0px));padding-bottom:var(--token-space-0, var(--token-scale-0, 0px));font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;border-radius:var(--token-border-radius-full, 999px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--token-scale-800, 32px);background-color:var(--token-primitives-neutral-100, #f3f3f3);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242424))}:host .datetime-footer{padding-left:0;padding-right:0;padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:0;margin-left:0;margin-right:0;margin-top:var(--token-space-200, var(--token-scale-200, 8px));margin-bottom:0;border-left:0;border-right:0;border-top:var(--token-border-style-solid, solid) var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d5d5d5);border-bottom:0}:host .datetime-buttons .datetime-action-buttons,.datetime-action-buttons .datetime-action-buttons-container,::slotted([slot=buttons]){-ms-flex-flow:column;flex-flow:column;-ms-flex-align:stretch;align-items:stretch;gap:var(--token-space-200, var(--token-scale-200, 8px))}`;
|
|
751
|
+
const datetimeIosCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host(.ion-color) .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{-ms-flex-align:stretch;align-items:stretch;height:100%}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);font-size:min(1.375rem, 35.2px)}:host(.ion-color) .calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary, #0054e9);font-weight:600}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base)}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}`;
|
|
756
752
|
|
|
757
|
-
const datetimeIosCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:current-color(base, 0.2);-webkit-box-shadow:0px 0px 0px 4px current-color(base, 0.2);box-shadow:0px 0px 0px 4px current-color(base, 0.2)}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-action-buttons .calendar-next-prev{-ms-flex-align:stretch;align-items:stretch}.calendar-next-prev ion-button{--padding-top:0;--padding-bottom:0;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.65em;line-height:0.67}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons,::slotted([slot=buttons]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons,::slotted([slot=buttons]){width:100%}`;
|
|
758
|
-
|
|
759
|
-
const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:current-color(base, 0.2);-webkit-box-shadow:0px 0px 0px 4px current-color(base, 0.2);box-shadow:0px 0px 0px 4px current-color(base, 0.2)}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-next-prev ion-button{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.8em}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}`;
|
|
753
|
+
const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color){--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-primary, #0054e9);color:var(--title-color)}:host(.ion-color) .datetime-header{background:var(--ion-color-base)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-primary, #0054e9);color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-primary, #0054e9);background:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}`;
|
|
760
754
|
|
|
761
755
|
const Datetime = class {
|
|
762
756
|
constructor(hostRef) {
|
|
@@ -788,12 +782,6 @@ const Datetime = class {
|
|
|
788
782
|
isAdjacentDay: false,
|
|
789
783
|
};
|
|
790
784
|
this.isTimePopoverOpen = false;
|
|
791
|
-
/**
|
|
792
|
-
* The color to use from your application's color palette.
|
|
793
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
794
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
795
|
-
*/
|
|
796
|
-
this.color = 'primary';
|
|
797
785
|
/**
|
|
798
786
|
* The name of the control, which is submitted with the form data.
|
|
799
787
|
*/
|
|
@@ -1861,7 +1849,6 @@ const Datetime = class {
|
|
|
1861
1849
|
* are rendered independently of presentation.
|
|
1862
1850
|
*/
|
|
1863
1851
|
renderFooter() {
|
|
1864
|
-
const theme = getIonTheme(this);
|
|
1865
1852
|
const { disabled, readonly, showDefaultButtons, showClearButton } = this;
|
|
1866
1853
|
/**
|
|
1867
1854
|
* The cancel, clear, and confirm buttons
|
|
@@ -1869,7 +1856,6 @@ const Datetime = class {
|
|
|
1869
1856
|
* is disabled or readonly.
|
|
1870
1857
|
*/
|
|
1871
1858
|
const isButtonDisabled = disabled || readonly;
|
|
1872
|
-
const confirmFill = theme === 'ionic' ? 'solid' : undefined;
|
|
1873
1859
|
const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
|
|
1874
1860
|
if (!hasSlottedButtons && !showDefaultButtons && !showClearButton) {
|
|
1875
1861
|
return;
|
|
@@ -1888,7 +1874,7 @@ const Datetime = class {
|
|
|
1888
1874
|
return (h("div", { class: "datetime-footer" }, h("div", { class: "datetime-buttons" }, h("div", { class: {
|
|
1889
1875
|
['datetime-action-buttons']: true,
|
|
1890
1876
|
['has-clear-button']: this.showClearButton,
|
|
1891
|
-
} }, h("slot", { name: "buttons" }, showDefaultButtons && (h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true), disabled: isButtonDisabled }, this.cancelText)), h("div", { class: "datetime-action-buttons-container" }, showClearButton && (h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick(), disabled: isButtonDisabled }, this.clearText)), showDefaultButtons && (h("ion-button", { id: "confirm-button",
|
|
1877
|
+
} }, h("slot", { name: "buttons" }, h("ion-buttons", null, showDefaultButtons && (h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true), disabled: isButtonDisabled }, this.cancelText)), h("div", { class: "datetime-action-buttons-container" }, showClearButton && (h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick(), disabled: isButtonDisabled }, this.clearText)), showDefaultButtons && (h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true), disabled: isButtonDisabled }, this.doneText)))))))));
|
|
1892
1878
|
}
|
|
1893
1879
|
/**
|
|
1894
1880
|
* Wheel picker render methods
|
|
@@ -1971,7 +1957,7 @@ const Datetime = class {
|
|
|
1971
1957
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
1972
1958
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), findPart));
|
|
1973
1959
|
ev.stopPropagation();
|
|
1974
|
-
} }, items.map((item) => (h("ion-picker-column-option", { part: item.value === todayString ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: item.value, disabled: item.disabled, value: item.value }, item.text)))));
|
|
1960
|
+
} }, items.map((item) => (h("ion-picker-column-option", { color: this.color, part: item.value === todayString ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: item.value, disabled: item.disabled, value: item.value }, item.text)))));
|
|
1975
1961
|
}
|
|
1976
1962
|
renderIndividualDatePickerColumns(forcePresentation) {
|
|
1977
1963
|
const { workingParts, isDateEnabled } = this;
|
|
@@ -2044,7 +2030,7 @@ const Datetime = class {
|
|
|
2044
2030
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
2045
2031
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
|
|
2046
2032
|
ev.stopPropagation();
|
|
2047
|
-
} }, days.map((day) => (h("ion-picker-column-option", { part: day.value === pickerColumnValue ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: day.value, disabled: day.disabled, value: day.value }, day.text)))));
|
|
2033
|
+
} }, days.map((day) => (h("ion-picker-column-option", { color: this.color, part: day.value === pickerColumnValue ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: day.value, disabled: day.disabled, value: day.value }, day.text)))));
|
|
2048
2034
|
}
|
|
2049
2035
|
renderMonthPickerColumn(months) {
|
|
2050
2036
|
if (months.length === 0) {
|
|
@@ -2059,7 +2045,7 @@ const Datetime = class {
|
|
|
2059
2045
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
|
|
2060
2046
|
}
|
|
2061
2047
|
ev.stopPropagation();
|
|
2062
|
-
} }, months.map((month) => (h("ion-picker-column-option", { part: month.value === workingParts.month ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: month.value, disabled: month.disabled, value: month.value }, month.text)))));
|
|
2048
|
+
} }, months.map((month) => (h("ion-picker-column-option", { color: this.color, part: month.value === workingParts.month ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: month.value, disabled: month.disabled, value: month.value }, month.text)))));
|
|
2063
2049
|
}
|
|
2064
2050
|
renderYearPickerColumn(years) {
|
|
2065
2051
|
if (years.length === 0) {
|
|
@@ -2074,7 +2060,7 @@ const Datetime = class {
|
|
|
2074
2060
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
|
|
2075
2061
|
}
|
|
2076
2062
|
ev.stopPropagation();
|
|
2077
|
-
} }, years.map((year) => (h("ion-picker-column-option", { part: year.value === workingParts.year ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: year.value, disabled: year.disabled, value: year.value }, year.text)))));
|
|
2063
|
+
} }, years.map((year) => (h("ion-picker-column-option", { color: this.color, part: year.value === workingParts.year ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: year.value, disabled: year.disabled, value: year.value }, year.text)))));
|
|
2078
2064
|
}
|
|
2079
2065
|
renderTimePickerColumns(forcePresentation) {
|
|
2080
2066
|
if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
|
|
@@ -2107,7 +2093,7 @@ const Datetime = class {
|
|
|
2107
2093
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
2108
2094
|
this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { hour: ev.detail.value }));
|
|
2109
2095
|
ev.stopPropagation();
|
|
2110
|
-
} }, hoursData.map((hour) => (h("ion-picker-column-option", { part: hour.value === activePart.hour ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: hour.value, disabled: hour.disabled, value: hour.value }, hour.text)))));
|
|
2096
|
+
} }, hoursData.map((hour) => (h("ion-picker-column-option", { color: this.color, part: hour.value === activePart.hour ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: hour.value, disabled: hour.disabled, value: hour.value }, hour.text)))));
|
|
2111
2097
|
}
|
|
2112
2098
|
renderMinutePickerColumn(minutesData) {
|
|
2113
2099
|
const { disabled, workingParts } = this;
|
|
@@ -2118,7 +2104,7 @@ const Datetime = class {
|
|
|
2118
2104
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
2119
2105
|
this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { minute: ev.detail.value }));
|
|
2120
2106
|
ev.stopPropagation();
|
|
2121
|
-
} }, minutesData.map((minute) => (h("ion-picker-column-option", { part: minute.value === activePart.minute ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: minute.value, disabled: minute.disabled, value: minute.value }, minute.text)))));
|
|
2107
|
+
} }, minutesData.map((minute) => (h("ion-picker-column-option", { color: this.color, part: minute.value === activePart.minute ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: minute.value, disabled: minute.disabled, value: minute.value }, minute.text)))));
|
|
2122
2108
|
}
|
|
2123
2109
|
renderDayPeriodPickerColumn(dayPeriodData) {
|
|
2124
2110
|
const { disabled, workingParts } = this;
|
|
@@ -2132,7 +2118,7 @@ const Datetime = class {
|
|
|
2132
2118
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
2133
2119
|
this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { ampm: ev.detail.value, hour }));
|
|
2134
2120
|
ev.stopPropagation();
|
|
2135
|
-
} }, dayPeriodData.map((dayPeriod) => (h("ion-picker-column-option", { part: dayPeriod.value === activePart.ampm ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: dayPeriod.value, disabled: dayPeriod.disabled, value: dayPeriod.value }, dayPeriod.text)))));
|
|
2121
|
+
} }, dayPeriodData.map((dayPeriod) => (h("ion-picker-column-option", { color: this.color, part: dayPeriod.value === activePart.ampm ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: dayPeriod.value, disabled: dayPeriod.disabled, value: dayPeriod.value }, dayPeriod.text)))));
|
|
2136
2122
|
}
|
|
2137
2123
|
renderWheelView(forcePresentation) {
|
|
2138
2124
|
const { locale } = this;
|
|
@@ -2145,8 +2131,10 @@ const Datetime = class {
|
|
|
2145
2131
|
/**
|
|
2146
2132
|
* Grid Render Methods
|
|
2147
2133
|
*/
|
|
2148
|
-
renderCalendarHeader(
|
|
2149
|
-
const { disabled
|
|
2134
|
+
renderCalendarHeader(mode) {
|
|
2135
|
+
const { disabled } = this;
|
|
2136
|
+
const expandedIcon = mode === 'ios' ? chevronDown : caretUpSharp;
|
|
2137
|
+
const collapsedIcon = mode === 'ios' ? chevronForward : caretDownSharp;
|
|
2150
2138
|
const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
2151
2139
|
const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
2152
2140
|
// don't use the inheritAttributes util because it removes dir from the host, and we still need that
|
|
@@ -2155,7 +2143,7 @@ const Datetime = class {
|
|
|
2155
2143
|
'calendar-month-year-toggle': true,
|
|
2156
2144
|
'ion-activatable': true,
|
|
2157
2145
|
'ion-focusable': true,
|
|
2158
|
-
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, h("span", { id: "toggle-wrapper" }, getMonthAndYear(this.locale, this.workingParts),
|
|
2146
|
+
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, h("span", { id: "toggle-wrapper" }, getMonthAndYear(this.locale, this.workingParts), h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, lazy: false, flipRtl: true })), mode === 'md' && h("ion-ripple-effect", null))), h("div", { class: "calendar-next-prev" }, h("ion-buttons", null, h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth(), part: "navigation-button previous-button" }, h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: chevronBack, lazy: false, flipRtl: true })), h("ion-button", { "aria-label": "Next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth(), part: "navigation-button next-button" }, h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: chevronForward, lazy: false, flipRtl: true }))))), h("div", { class: "calendar-days-of-week", "aria-hidden": "true", part: "calendar-days-of-week" }, getDaysOfWeek(this.locale, mode, this.firstDayOfWeek % 7).map((d) => {
|
|
2159
2147
|
return h("div", { class: "day-of-week" }, d);
|
|
2160
2148
|
}))));
|
|
2161
2149
|
}
|
|
@@ -2307,8 +2295,8 @@ const Datetime = class {
|
|
|
2307
2295
|
return this.renderMonth(month, year);
|
|
2308
2296
|
})));
|
|
2309
2297
|
}
|
|
2310
|
-
renderCalendar(
|
|
2311
|
-
return (h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(
|
|
2298
|
+
renderCalendar(mode) {
|
|
2299
|
+
return (h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(mode), this.renderCalendarBody()));
|
|
2312
2300
|
}
|
|
2313
2301
|
renderTimeLabel() {
|
|
2314
2302
|
const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
|
|
@@ -2416,7 +2404,7 @@ const Datetime = class {
|
|
|
2416
2404
|
* Render entry point
|
|
2417
2405
|
* All presentation types are rendered from here.
|
|
2418
2406
|
*/
|
|
2419
|
-
renderDatetime(
|
|
2407
|
+
renderDatetime(mode) {
|
|
2420
2408
|
const { presentation, preferWheel } = this;
|
|
2421
2409
|
/**
|
|
2422
2410
|
* Certain presentation types have separate grid and wheel displays.
|
|
@@ -2430,7 +2418,7 @@ const Datetime = class {
|
|
|
2430
2418
|
case 'date-time':
|
|
2431
2419
|
return [
|
|
2432
2420
|
this.renderHeader(),
|
|
2433
|
-
this.renderCalendar(
|
|
2421
|
+
this.renderCalendar(mode),
|
|
2434
2422
|
this.renderCalendarViewMonthYearPicker(),
|
|
2435
2423
|
this.renderTime(),
|
|
2436
2424
|
this.renderFooter(),
|
|
@@ -2439,7 +2427,7 @@ const Datetime = class {
|
|
|
2439
2427
|
return [
|
|
2440
2428
|
this.renderHeader(),
|
|
2441
2429
|
this.renderTime(),
|
|
2442
|
-
this.renderCalendar(
|
|
2430
|
+
this.renderCalendar(mode),
|
|
2443
2431
|
this.renderCalendarViewMonthYearPicker(),
|
|
2444
2432
|
this.renderFooter(),
|
|
2445
2433
|
];
|
|
@@ -2452,95 +2440,23 @@ const Datetime = class {
|
|
|
2452
2440
|
default:
|
|
2453
2441
|
return [
|
|
2454
2442
|
this.renderHeader(),
|
|
2455
|
-
this.renderCalendar(
|
|
2443
|
+
this.renderCalendar(mode),
|
|
2456
2444
|
this.renderCalendarViewMonthYearPicker(),
|
|
2457
2445
|
this.renderFooter(),
|
|
2458
2446
|
];
|
|
2459
2447
|
}
|
|
2460
2448
|
}
|
|
2461
|
-
/**
|
|
2462
|
-
* Get the icon to use for the next icon.
|
|
2463
|
-
* Otherwise, use the icon set in the config.
|
|
2464
|
-
* If no icon is set in the config, use the default icon.
|
|
2465
|
-
*/
|
|
2466
|
-
get datetimeNextIcon() {
|
|
2467
|
-
// Determine the theme and map to default icons
|
|
2468
|
-
const theme = getIonTheme(this);
|
|
2469
|
-
const defaultIcons = {
|
|
2470
|
-
ios: chevronForward,
|
|
2471
|
-
ionic: caretRightSvg,
|
|
2472
|
-
md: chevronForward,
|
|
2473
|
-
};
|
|
2474
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
2475
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
2476
|
-
// Return the configured datetime next icon or the default icon
|
|
2477
|
-
return config.get('datetimeNextIcon', defaultIcon);
|
|
2478
|
-
}
|
|
2479
|
-
/**
|
|
2480
|
-
* Get the icon to use for the previous icon.
|
|
2481
|
-
* Otherwise, use the icon set in the config.
|
|
2482
|
-
* If no icon is set in the config, use the default icon.
|
|
2483
|
-
*/
|
|
2484
|
-
get datetimePreviousIcon() {
|
|
2485
|
-
// Determine the theme and map to default icons
|
|
2486
|
-
const theme = getIonTheme(this);
|
|
2487
|
-
const defaultIcons = {
|
|
2488
|
-
ios: chevronBack,
|
|
2489
|
-
ionic: caretLeftSvg,
|
|
2490
|
-
md: chevronBack,
|
|
2491
|
-
};
|
|
2492
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
2493
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
2494
|
-
// Return the configured datetime previous icon or the default icon
|
|
2495
|
-
return config.get('datetimePreviousIcon', defaultIcon);
|
|
2496
|
-
}
|
|
2497
|
-
/**
|
|
2498
|
-
* Get the icon to use for the show month and year icon.
|
|
2499
|
-
* Otherwise, use the icon set in the config.
|
|
2500
|
-
* If no icon is set in the config, use the default icon.
|
|
2501
|
-
*/
|
|
2502
|
-
get datetimeCollapsedIcon() {
|
|
2503
|
-
// Determine the theme and map to default icons
|
|
2504
|
-
const theme = getIonTheme(this);
|
|
2505
|
-
const defaultIcons = {
|
|
2506
|
-
ios: chevronForward,
|
|
2507
|
-
ionic: undefined,
|
|
2508
|
-
md: caretDownSharp,
|
|
2509
|
-
};
|
|
2510
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
2511
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
2512
|
-
// Return the configured datetime show month and year icon or the default icon
|
|
2513
|
-
return config.get('datetimeCollapsedIcon', defaultIcon);
|
|
2514
|
-
}
|
|
2515
|
-
/**
|
|
2516
|
-
* Get the icon to use for the hide month and year icon.
|
|
2517
|
-
* Otherwise, use the icon set in the config.
|
|
2518
|
-
* If no icon is set in the config, use the default icon.
|
|
2519
|
-
*/
|
|
2520
|
-
get datetimeExpandedIcon() {
|
|
2521
|
-
// Determine the theme and map to default icons
|
|
2522
|
-
const theme = getIonTheme(this);
|
|
2523
|
-
const defaultIcons = {
|
|
2524
|
-
ios: chevronDown,
|
|
2525
|
-
ionic: undefined,
|
|
2526
|
-
md: caretUpSharp,
|
|
2527
|
-
};
|
|
2528
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
2529
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
2530
|
-
// Return the configured datetime hide month and year icon or the default icon
|
|
2531
|
-
return config.get('datetimeExpandedIcon', defaultIcon);
|
|
2532
|
-
}
|
|
2533
2449
|
render() {
|
|
2534
2450
|
const { name, value, disabled, el, color, readonly, showMonthAndYear, preferWheel, presentation, size, isGridStyle, } = this;
|
|
2535
|
-
const
|
|
2451
|
+
const mode = getIonMode(this);
|
|
2536
2452
|
const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
|
|
2537
2453
|
const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
|
|
2538
2454
|
const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
|
|
2539
2455
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
2540
2456
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
2541
2457
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
2542
|
-
return (h(Host, { key: '
|
|
2543
|
-
[
|
|
2458
|
+
return (h(Host, { key: '79b906669d3e0d9ff356421a5f571d5cf12b6793', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
2459
|
+
[mode]: true,
|
|
2544
2460
|
['datetime-readonly']: readonly,
|
|
2545
2461
|
['datetime-disabled']: disabled,
|
|
2546
2462
|
'show-month-and-year': shouldShowMonthAndYear,
|
|
@@ -2549,7 +2465,7 @@ const Datetime = class {
|
|
|
2549
2465
|
[`datetime-size-${size}`]: true,
|
|
2550
2466
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
2551
2467
|
[`datetime-grid`]: isGridStyle,
|
|
2552
|
-
})) }, h("div", { key: '
|
|
2468
|
+
})) }, h("div", { key: 'e29ce6edd79f3efb8f7cc4a81bb543d580e5f4c6', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
2553
2469
|
}
|
|
2554
2470
|
get el() { return getElement(this); }
|
|
2555
2471
|
static get watchers() { return {
|
|
@@ -2595,641 +2511,8 @@ const WHEEL_PART = 'wheel';
|
|
|
2595
2511
|
const WHEEL_ITEM_PART = 'wheel-item';
|
|
2596
2512
|
const WHEEL_ITEM_ACTIVE_PART = `active`;
|
|
2597
2513
|
Datetime.style = {
|
|
2598
|
-
ionic: datetimeIonicCss(),
|
|
2599
2514
|
ios: datetimeIosCss(),
|
|
2600
2515
|
md: datetimeMdCss()
|
|
2601
2516
|
};
|
|
2602
2517
|
|
|
2603
|
-
|
|
2604
|
-
* iOS Picker Enter Animation
|
|
2605
|
-
*/
|
|
2606
|
-
const iosEnterAnimation = (baseEl) => {
|
|
2607
|
-
const baseAnimation = createAnimation();
|
|
2608
|
-
const backdropAnimation = createAnimation();
|
|
2609
|
-
const wrapperAnimation = createAnimation();
|
|
2610
|
-
backdropAnimation
|
|
2611
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
2612
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
2613
|
-
.beforeStyles({
|
|
2614
|
-
'pointer-events': 'none',
|
|
2615
|
-
})
|
|
2616
|
-
.afterClearStyles(['pointer-events']);
|
|
2617
|
-
wrapperAnimation
|
|
2618
|
-
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
2619
|
-
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
2620
|
-
return baseAnimation
|
|
2621
|
-
.addElement(baseEl)
|
|
2622
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
2623
|
-
.duration(400)
|
|
2624
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
2625
|
-
};
|
|
2626
|
-
|
|
2627
|
-
/**
|
|
2628
|
-
* iOS Picker Leave Animation
|
|
2629
|
-
*/
|
|
2630
|
-
const iosLeaveAnimation = (baseEl) => {
|
|
2631
|
-
const baseAnimation = createAnimation();
|
|
2632
|
-
const backdropAnimation = createAnimation();
|
|
2633
|
-
const wrapperAnimation = createAnimation();
|
|
2634
|
-
backdropAnimation
|
|
2635
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
2636
|
-
.fromTo('opacity', 'var(--backdrop-opacity)', 0.01);
|
|
2637
|
-
wrapperAnimation
|
|
2638
|
-
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
2639
|
-
.fromTo('transform', 'translateY(0%)', 'translateY(100%)');
|
|
2640
|
-
return baseAnimation
|
|
2641
|
-
.addElement(baseEl)
|
|
2642
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
2643
|
-
.duration(400)
|
|
2644
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
2645
|
-
};
|
|
2646
|
-
|
|
2647
|
-
const pickerIosCss = () => `.sc-ion-picker-legacy-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-ios-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-ios-h{display:none}.picker-wrapper.sc-ion-picker-legacy-ios{border-radius:var(--border-radius);right:0;left:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-ios:active,.picker-button.sc-ion-picker-legacy-ios:focus{outline:none}.picker-columns.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-ios,.picker-below-highlight.sc-ion-picker-legacy-ios{display:none;pointer-events:none}.sc-ion-picker-legacy-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-legacy-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-legacy-ios:last-child .picker-button.sc-ion-picker-legacy-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-legacy-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-legacy-ios,.picker-button.ion-activated.sc-ion-picker-legacy-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:16px}.picker-columns.sc-ion-picker-legacy-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-legacy-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}`;
|
|
2648
|
-
|
|
2649
|
-
const pickerMdCss = () => `.sc-ion-picker-legacy-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-md-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-md-h{display:none}.picker-wrapper.sc-ion-picker-legacy-md{border-radius:var(--border-radius);right:0;left:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-md:active,.picker-button.sc-ion-picker-legacy-md:focus{outline:none}.picker-columns.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-md,.picker-below-highlight.sc-ion-picker-legacy-md{display:none;pointer-events:none}.sc-ion-picker-legacy-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-legacy-md,.picker-button.ion-activated.sc-ion-picker-legacy-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-legacy-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-legacy-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}`;
|
|
2650
|
-
|
|
2651
|
-
const Picker = class {
|
|
2652
|
-
constructor(hostRef) {
|
|
2653
|
-
registerInstance(this, hostRef);
|
|
2654
|
-
this.didPresent = createEvent(this, "ionPickerDidPresent", 7);
|
|
2655
|
-
this.willPresent = createEvent(this, "ionPickerWillPresent", 7);
|
|
2656
|
-
this.willDismiss = createEvent(this, "ionPickerWillDismiss", 7);
|
|
2657
|
-
this.didDismiss = createEvent(this, "ionPickerDidDismiss", 7);
|
|
2658
|
-
this.didPresentShorthand = createEvent(this, "didPresent", 7);
|
|
2659
|
-
this.willPresentShorthand = createEvent(this, "willPresent", 7);
|
|
2660
|
-
this.willDismissShorthand = createEvent(this, "willDismiss", 7);
|
|
2661
|
-
this.didDismissShorthand = createEvent(this, "didDismiss", 7);
|
|
2662
|
-
this.delegateController = createDelegateController(this);
|
|
2663
|
-
this.lockController = createLockController();
|
|
2664
|
-
this.triggerController = createTriggerController();
|
|
2665
|
-
this.presented = false;
|
|
2666
|
-
/** @internal */
|
|
2667
|
-
this.hasController = false;
|
|
2668
|
-
/**
|
|
2669
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
2670
|
-
*/
|
|
2671
|
-
this.keyboardClose = true;
|
|
2672
|
-
/**
|
|
2673
|
-
* Array of buttons to be displayed at the top of the picker.
|
|
2674
|
-
*/
|
|
2675
|
-
this.buttons = [];
|
|
2676
|
-
/**
|
|
2677
|
-
* Array of columns to be displayed in the picker.
|
|
2678
|
-
*/
|
|
2679
|
-
this.columns = [];
|
|
2680
|
-
/**
|
|
2681
|
-
* Number of milliseconds to wait before dismissing the picker.
|
|
2682
|
-
*/
|
|
2683
|
-
this.duration = 0;
|
|
2684
|
-
/**
|
|
2685
|
-
* If `true`, a backdrop will be displayed behind the picker.
|
|
2686
|
-
*/
|
|
2687
|
-
this.showBackdrop = true;
|
|
2688
|
-
/**
|
|
2689
|
-
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
2690
|
-
*/
|
|
2691
|
-
this.backdropDismiss = true;
|
|
2692
|
-
/**
|
|
2693
|
-
* If `true`, the picker will animate.
|
|
2694
|
-
*/
|
|
2695
|
-
this.animated = true;
|
|
2696
|
-
/**
|
|
2697
|
-
* If `true`, the picker will open. If `false`, the picker will close.
|
|
2698
|
-
* Use this if you need finer grained control over presentation, otherwise
|
|
2699
|
-
* just use the pickerController or the `trigger` property.
|
|
2700
|
-
* Note: `isOpen` will not automatically be set back to `false` when
|
|
2701
|
-
* the picker dismisses. You will need to do that in your code.
|
|
2702
|
-
*/
|
|
2703
|
-
this.isOpen = false;
|
|
2704
|
-
this.onBackdropTap = () => {
|
|
2705
|
-
this.dismiss(undefined, BACKDROP);
|
|
2706
|
-
};
|
|
2707
|
-
this.dispatchCancelHandler = (ev) => {
|
|
2708
|
-
const role = ev.detail.role;
|
|
2709
|
-
if (isCancel(role)) {
|
|
2710
|
-
const cancelButton = this.buttons.find((b) => b.role === 'cancel');
|
|
2711
|
-
this.callButtonHandler(cancelButton);
|
|
2712
|
-
}
|
|
2713
|
-
};
|
|
2714
|
-
}
|
|
2715
|
-
onIsOpenChange(newValue, oldValue) {
|
|
2716
|
-
if (newValue === true && oldValue === false) {
|
|
2717
|
-
this.present();
|
|
2718
|
-
}
|
|
2719
|
-
else if (newValue === false && oldValue === true) {
|
|
2720
|
-
this.dismiss();
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
triggerChanged() {
|
|
2724
|
-
const { trigger, el, triggerController } = this;
|
|
2725
|
-
if (trigger) {
|
|
2726
|
-
triggerController.addClickListener(el, trigger);
|
|
2727
|
-
}
|
|
2728
|
-
}
|
|
2729
|
-
connectedCallback() {
|
|
2730
|
-
prepareOverlay(this.el);
|
|
2731
|
-
this.triggerChanged();
|
|
2732
|
-
}
|
|
2733
|
-
disconnectedCallback() {
|
|
2734
|
-
this.triggerController.removeClickListener();
|
|
2735
|
-
}
|
|
2736
|
-
componentWillLoad() {
|
|
2737
|
-
var _a;
|
|
2738
|
-
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
2739
|
-
setOverlayId(this.el);
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
componentDidLoad() {
|
|
2743
|
-
printIonWarning('[ion-picker-legacy] - ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.', this.el);
|
|
2744
|
-
/**
|
|
2745
|
-
* If picker was rendered with isOpen="true"
|
|
2746
|
-
* then we should open picker immediately.
|
|
2747
|
-
*/
|
|
2748
|
-
if (this.isOpen === true) {
|
|
2749
|
-
raf(() => this.present());
|
|
2750
|
-
}
|
|
2751
|
-
/**
|
|
2752
|
-
* When binding values in frameworks such as Angular
|
|
2753
|
-
* it is possible for the value to be set after the Web Component
|
|
2754
|
-
* initializes but before the value watcher is set up in Stencil.
|
|
2755
|
-
* As a result, the watcher callback may not be fired.
|
|
2756
|
-
* We work around this by manually calling the watcher
|
|
2757
|
-
* callback when the component has loaded and the watcher
|
|
2758
|
-
* is configured.
|
|
2759
|
-
*/
|
|
2760
|
-
this.triggerChanged();
|
|
2761
|
-
}
|
|
2762
|
-
/**
|
|
2763
|
-
* Present the picker overlay after it has been created.
|
|
2764
|
-
*/
|
|
2765
|
-
async present() {
|
|
2766
|
-
const unlock = await this.lockController.lock();
|
|
2767
|
-
await this.delegateController.attachViewToDom();
|
|
2768
|
-
await present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation, undefined);
|
|
2769
|
-
if (this.duration > 0) {
|
|
2770
|
-
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
|
|
2771
|
-
}
|
|
2772
|
-
unlock();
|
|
2773
|
-
}
|
|
2774
|
-
/**
|
|
2775
|
-
* Dismiss the picker overlay after it has been presented.
|
|
2776
|
-
*
|
|
2777
|
-
* @param data Any data to emit in the dismiss events.
|
|
2778
|
-
* @param role The role of the element that is dismissing the picker.
|
|
2779
|
-
* This can be useful in a button handler for determining which button was
|
|
2780
|
-
* clicked to dismiss the picker.
|
|
2781
|
-
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
2782
|
-
*/
|
|
2783
|
-
async dismiss(data, role) {
|
|
2784
|
-
const unlock = await this.lockController.lock();
|
|
2785
|
-
if (this.durationTimeout) {
|
|
2786
|
-
clearTimeout(this.durationTimeout);
|
|
2787
|
-
}
|
|
2788
|
-
const dismissed = await dismiss(this, data, role, 'pickerLeave', iosLeaveAnimation, iosLeaveAnimation);
|
|
2789
|
-
if (dismissed) {
|
|
2790
|
-
this.delegateController.removeViewFromDom();
|
|
2791
|
-
}
|
|
2792
|
-
unlock();
|
|
2793
|
-
return dismissed;
|
|
2794
|
-
}
|
|
2795
|
-
/**
|
|
2796
|
-
* Returns a promise that resolves when the picker did dismiss.
|
|
2797
|
-
*/
|
|
2798
|
-
onDidDismiss() {
|
|
2799
|
-
return eventMethod(this.el, 'ionPickerDidDismiss');
|
|
2800
|
-
}
|
|
2801
|
-
/**
|
|
2802
|
-
* Returns a promise that resolves when the picker will dismiss.
|
|
2803
|
-
*/
|
|
2804
|
-
onWillDismiss() {
|
|
2805
|
-
return eventMethod(this.el, 'ionPickerWillDismiss');
|
|
2806
|
-
}
|
|
2807
|
-
/**
|
|
2808
|
-
* Get the column that matches the specified name.
|
|
2809
|
-
*
|
|
2810
|
-
* @param name The name of the column.
|
|
2811
|
-
*/
|
|
2812
|
-
getColumn(name) {
|
|
2813
|
-
return Promise.resolve(this.columns.find((column) => column.name === name));
|
|
2814
|
-
}
|
|
2815
|
-
async buttonClick(button) {
|
|
2816
|
-
const role = button.role;
|
|
2817
|
-
if (isCancel(role)) {
|
|
2818
|
-
return this.dismiss(undefined, role);
|
|
2819
|
-
}
|
|
2820
|
-
const shouldDismiss = await this.callButtonHandler(button);
|
|
2821
|
-
if (shouldDismiss) {
|
|
2822
|
-
return this.dismiss(this.getSelected(), button.role);
|
|
2823
|
-
}
|
|
2824
|
-
return Promise.resolve();
|
|
2825
|
-
}
|
|
2826
|
-
async callButtonHandler(button) {
|
|
2827
|
-
if (button) {
|
|
2828
|
-
// a handler has been provided, execute it
|
|
2829
|
-
// pass the handler the values from the inputs
|
|
2830
|
-
const rtn = await safeCall(button.handler, this.getSelected());
|
|
2831
|
-
if (rtn === false) {
|
|
2832
|
-
// if the return value of the handler is false then do not dismiss
|
|
2833
|
-
return false;
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
return true;
|
|
2837
|
-
}
|
|
2838
|
-
getSelected() {
|
|
2839
|
-
const selected = {};
|
|
2840
|
-
this.columns.forEach((col, index) => {
|
|
2841
|
-
const selectedColumn = col.selectedIndex !== undefined ? col.options[col.selectedIndex] : undefined;
|
|
2842
|
-
selected[col.name] = {
|
|
2843
|
-
text: selectedColumn ? selectedColumn.text : undefined,
|
|
2844
|
-
value: selectedColumn ? selectedColumn.value : undefined,
|
|
2845
|
-
columnIndex: index,
|
|
2846
|
-
};
|
|
2847
|
-
});
|
|
2848
|
-
return selected;
|
|
2849
|
-
}
|
|
2850
|
-
render() {
|
|
2851
|
-
const { htmlAttributes } = this;
|
|
2852
|
-
const theme = getIonTheme(this);
|
|
2853
|
-
return (h(Host, Object.assign({ key: '681ad6d20efa16f1d6c6f9a7d03caec2b17ff36e', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2854
|
-
zIndex: `${20000 + this.overlayIndex}`,
|
|
2855
|
-
}, class: Object.assign({ [theme]: true,
|
|
2856
|
-
// Used internally for styling
|
|
2857
|
-
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '6dc71805810955048479c2a6eddce2303161cb8f', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '0e61724c261c9d69ba23d3cb9064018942755033', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'a6ca79c9a5fce42b5aad6808802535c723f27fb9', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: '7651cbe9d723bba032788d85711e0f7c1dc32c21', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'd6b83aded670bc74515c337c038503e396ab42cc', class: "picker-columns" }, h("div", { key: '1dfef6ed386d7b327dc19397cc9f01c3938fbab9', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-legacy-column", { col: c })), h("div", { key: 'ec8b2f4de073a245f8917a494a681adf5d1f94f6', class: "picker-below-highlight" }))), h("div", { key: '8557ce93083feefa5deb6097270d756424f89ab2', tabindex: "0", "aria-hidden": "true" })));
|
|
2858
|
-
}
|
|
2859
|
-
get el() { return getElement(this); }
|
|
2860
|
-
static get watchers() { return {
|
|
2861
|
-
"isOpen": [{
|
|
2862
|
-
"onIsOpenChange": 0
|
|
2863
|
-
}],
|
|
2864
|
-
"trigger": [{
|
|
2865
|
-
"triggerChanged": 0
|
|
2866
|
-
}]
|
|
2867
|
-
}; }
|
|
2868
|
-
};
|
|
2869
|
-
const buttonWrapperClass = (button) => {
|
|
2870
|
-
return {
|
|
2871
|
-
[`picker-toolbar-${button.role}`]: button.role !== undefined,
|
|
2872
|
-
'picker-toolbar-button': true,
|
|
2873
|
-
};
|
|
2874
|
-
};
|
|
2875
|
-
const buttonClass = (button) => {
|
|
2876
|
-
return Object.assign({ 'picker-button': true, 'ion-activatable': true }, getClassMap(button.cssClass));
|
|
2877
|
-
};
|
|
2878
|
-
Picker.style = {
|
|
2879
|
-
ios: pickerIosCss(),
|
|
2880
|
-
md: pickerMdCss()
|
|
2881
|
-
};
|
|
2882
|
-
|
|
2883
|
-
const pickerColumnIosCss = () => `.picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}`;
|
|
2884
|
-
|
|
2885
|
-
const pickerColumnMdCss = () => `.picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #0054e9)}`;
|
|
2886
|
-
|
|
2887
|
-
const PickerColumnCmp = class {
|
|
2888
|
-
constructor(hostRef) {
|
|
2889
|
-
registerInstance(this, hostRef);
|
|
2890
|
-
this.ionPickerColChange = createEvent(this, "ionPickerColChange", 7);
|
|
2891
|
-
this.optHeight = 0;
|
|
2892
|
-
this.rotateFactor = 0;
|
|
2893
|
-
this.scaleFactor = 1;
|
|
2894
|
-
this.velocity = 0;
|
|
2895
|
-
this.y = 0;
|
|
2896
|
-
this.noAnimate = true;
|
|
2897
|
-
// `colDidChange` is a flag that gets set when the column is changed
|
|
2898
|
-
// dynamically. When this flag is set, the column will refresh
|
|
2899
|
-
// after the component re-renders to incorporate the new column data.
|
|
2900
|
-
// This is necessary because `this.refresh` queries for the option elements,
|
|
2901
|
-
// so it needs to wait for the latest elements to be available in the DOM.
|
|
2902
|
-
// Ex: column is created with 3 options. User updates the column data
|
|
2903
|
-
// to have 5 options. The column will still think it only has 3 options.
|
|
2904
|
-
this.colDidChange = false;
|
|
2905
|
-
}
|
|
2906
|
-
colChanged() {
|
|
2907
|
-
this.colDidChange = true;
|
|
2908
|
-
}
|
|
2909
|
-
async connectedCallback() {
|
|
2910
|
-
let pickerRotateFactor = 0;
|
|
2911
|
-
let pickerScaleFactor = 0.81;
|
|
2912
|
-
const mode = getIonMode(this);
|
|
2913
|
-
if (mode === 'ios') {
|
|
2914
|
-
pickerRotateFactor = -0.46;
|
|
2915
|
-
pickerScaleFactor = 1;
|
|
2916
|
-
}
|
|
2917
|
-
this.rotateFactor = pickerRotateFactor;
|
|
2918
|
-
this.scaleFactor = pickerScaleFactor;
|
|
2919
|
-
this.gesture = (await import('./index-CfgBF1SE.js')).createGesture({
|
|
2920
|
-
el: this.el,
|
|
2921
|
-
gestureName: 'picker-swipe',
|
|
2922
|
-
gesturePriority: 100,
|
|
2923
|
-
threshold: 0,
|
|
2924
|
-
passive: false,
|
|
2925
|
-
onStart: (ev) => this.onStart(ev),
|
|
2926
|
-
onMove: (ev) => this.onMove(ev),
|
|
2927
|
-
onEnd: (ev) => this.onEnd(ev),
|
|
2928
|
-
});
|
|
2929
|
-
this.gesture.enable();
|
|
2930
|
-
// Options have not been initialized yet
|
|
2931
|
-
// Animation must be disabled through the `noAnimate` flag
|
|
2932
|
-
// Otherwise, the options will render
|
|
2933
|
-
// at the top of the column and transition down
|
|
2934
|
-
this.tmrId = setTimeout(() => {
|
|
2935
|
-
this.noAnimate = false;
|
|
2936
|
-
// After initialization, `refresh()` will be called
|
|
2937
|
-
// At this point, animation will be enabled. The options will
|
|
2938
|
-
// animate as they are being selected.
|
|
2939
|
-
this.refresh(true);
|
|
2940
|
-
}, 250);
|
|
2941
|
-
}
|
|
2942
|
-
componentDidLoad() {
|
|
2943
|
-
this.onDomChange();
|
|
2944
|
-
}
|
|
2945
|
-
componentDidUpdate() {
|
|
2946
|
-
// Options may have changed since last update.
|
|
2947
|
-
if (this.colDidChange) {
|
|
2948
|
-
// Animation must be disabled through the `onDomChange` parameter.
|
|
2949
|
-
// Otherwise, the recently added options will render
|
|
2950
|
-
// at the top of the column and transition down
|
|
2951
|
-
this.onDomChange(true, false);
|
|
2952
|
-
this.colDidChange = false;
|
|
2953
|
-
}
|
|
2954
|
-
}
|
|
2955
|
-
disconnectedCallback() {
|
|
2956
|
-
if (this.rafId !== undefined)
|
|
2957
|
-
cancelAnimationFrame(this.rafId);
|
|
2958
|
-
if (this.tmrId)
|
|
2959
|
-
clearTimeout(this.tmrId);
|
|
2960
|
-
if (this.gesture) {
|
|
2961
|
-
this.gesture.destroy();
|
|
2962
|
-
this.gesture = undefined;
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
emitColChange() {
|
|
2966
|
-
this.ionPickerColChange.emit(this.col);
|
|
2967
|
-
}
|
|
2968
|
-
setSelected(selectedIndex, duration) {
|
|
2969
|
-
// if there is a selected index, then figure out it's y position
|
|
2970
|
-
// if there isn't a selected index, then just use the top y position
|
|
2971
|
-
const y = selectedIndex > -1 ? -(selectedIndex * this.optHeight) : 0;
|
|
2972
|
-
this.velocity = 0;
|
|
2973
|
-
// set what y position we're at
|
|
2974
|
-
if (this.rafId !== undefined)
|
|
2975
|
-
cancelAnimationFrame(this.rafId);
|
|
2976
|
-
this.update(y, duration, true);
|
|
2977
|
-
this.emitColChange();
|
|
2978
|
-
}
|
|
2979
|
-
update(y, duration, saveY) {
|
|
2980
|
-
if (!this.optsEl) {
|
|
2981
|
-
return;
|
|
2982
|
-
}
|
|
2983
|
-
// ensure we've got a good round number :)
|
|
2984
|
-
let translateY = 0;
|
|
2985
|
-
let translateZ = 0;
|
|
2986
|
-
const { col, rotateFactor } = this;
|
|
2987
|
-
const prevSelected = col.selectedIndex;
|
|
2988
|
-
const selectedIndex = (col.selectedIndex = this.indexForY(-y));
|
|
2989
|
-
const durationStr = duration === 0 ? '' : duration + 'ms';
|
|
2990
|
-
const scaleStr = `scale(${this.scaleFactor})`;
|
|
2991
|
-
const children = this.optsEl.children;
|
|
2992
|
-
for (let i = 0; i < children.length; i++) {
|
|
2993
|
-
const button = children[i];
|
|
2994
|
-
const opt = col.options[i];
|
|
2995
|
-
const optOffset = i * this.optHeight + y;
|
|
2996
|
-
let transform = '';
|
|
2997
|
-
if (rotateFactor !== 0) {
|
|
2998
|
-
const rotateX = optOffset * rotateFactor;
|
|
2999
|
-
if (Math.abs(rotateX) <= 90) {
|
|
3000
|
-
translateY = 0;
|
|
3001
|
-
translateZ = 90;
|
|
3002
|
-
transform = `rotateX(${rotateX}deg) `;
|
|
3003
|
-
}
|
|
3004
|
-
else {
|
|
3005
|
-
translateY = -9999;
|
|
3006
|
-
}
|
|
3007
|
-
}
|
|
3008
|
-
else {
|
|
3009
|
-
translateZ = 0;
|
|
3010
|
-
translateY = optOffset;
|
|
3011
|
-
}
|
|
3012
|
-
const selected = selectedIndex === i;
|
|
3013
|
-
transform += `translate3d(0px,${translateY}px,${translateZ}px) `;
|
|
3014
|
-
if (this.scaleFactor !== 1 && !selected) {
|
|
3015
|
-
transform += scaleStr;
|
|
3016
|
-
}
|
|
3017
|
-
// Update transition duration
|
|
3018
|
-
if (this.noAnimate) {
|
|
3019
|
-
opt.duration = 0;
|
|
3020
|
-
button.style.transitionDuration = '';
|
|
3021
|
-
}
|
|
3022
|
-
else if (duration !== opt.duration) {
|
|
3023
|
-
opt.duration = duration;
|
|
3024
|
-
button.style.transitionDuration = durationStr;
|
|
3025
|
-
}
|
|
3026
|
-
// Update transform
|
|
3027
|
-
if (transform !== opt.transform) {
|
|
3028
|
-
opt.transform = transform;
|
|
3029
|
-
}
|
|
3030
|
-
button.style.transform = transform;
|
|
3031
|
-
/**
|
|
3032
|
-
* Ensure that the select column
|
|
3033
|
-
* item has the selected class
|
|
3034
|
-
*/
|
|
3035
|
-
opt.selected = selected;
|
|
3036
|
-
if (selected) {
|
|
3037
|
-
button.classList.add(PICKER_OPT_SELECTED);
|
|
3038
|
-
}
|
|
3039
|
-
else {
|
|
3040
|
-
button.classList.remove(PICKER_OPT_SELECTED);
|
|
3041
|
-
}
|
|
3042
|
-
}
|
|
3043
|
-
this.col.prevSelected = prevSelected;
|
|
3044
|
-
if (saveY) {
|
|
3045
|
-
this.y = y;
|
|
3046
|
-
}
|
|
3047
|
-
if (this.lastIndex !== selectedIndex) {
|
|
3048
|
-
// have not set a last index yet
|
|
3049
|
-
hapticSelectionChanged();
|
|
3050
|
-
this.lastIndex = selectedIndex;
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
decelerate() {
|
|
3054
|
-
if (this.velocity !== 0) {
|
|
3055
|
-
// still decelerating
|
|
3056
|
-
this.velocity *= DECELERATION_FRICTION;
|
|
3057
|
-
// do not let it go slower than a velocity of 1
|
|
3058
|
-
this.velocity = this.velocity > 0 ? Math.max(this.velocity, 1) : Math.min(this.velocity, -1);
|
|
3059
|
-
let y = this.y + this.velocity;
|
|
3060
|
-
if (y > this.minY) {
|
|
3061
|
-
// whoops, it's trying to scroll up farther than the options we have!
|
|
3062
|
-
y = this.minY;
|
|
3063
|
-
this.velocity = 0;
|
|
3064
|
-
}
|
|
3065
|
-
else if (y < this.maxY) {
|
|
3066
|
-
// gahh, it's trying to scroll down farther than we can!
|
|
3067
|
-
y = this.maxY;
|
|
3068
|
-
this.velocity = 0;
|
|
3069
|
-
}
|
|
3070
|
-
this.update(y, 0, true);
|
|
3071
|
-
const notLockedIn = Math.round(y) % this.optHeight !== 0 || Math.abs(this.velocity) > 1;
|
|
3072
|
-
if (notLockedIn) {
|
|
3073
|
-
// isn't locked in yet, keep decelerating until it is
|
|
3074
|
-
this.rafId = requestAnimationFrame(() => this.decelerate());
|
|
3075
|
-
}
|
|
3076
|
-
else {
|
|
3077
|
-
this.velocity = 0;
|
|
3078
|
-
this.emitColChange();
|
|
3079
|
-
hapticSelectionEnd();
|
|
3080
|
-
}
|
|
3081
|
-
}
|
|
3082
|
-
else if (this.y % this.optHeight !== 0) {
|
|
3083
|
-
// needs to still get locked into a position so options line up
|
|
3084
|
-
const currentPos = Math.abs(this.y % this.optHeight);
|
|
3085
|
-
// create a velocity in the direction it needs to scroll
|
|
3086
|
-
this.velocity = currentPos > this.optHeight / 2 ? 1 : -1;
|
|
3087
|
-
this.decelerate();
|
|
3088
|
-
}
|
|
3089
|
-
}
|
|
3090
|
-
indexForY(y) {
|
|
3091
|
-
return Math.min(Math.max(Math.abs(Math.round(y / this.optHeight)), 0), this.col.options.length - 1);
|
|
3092
|
-
}
|
|
3093
|
-
onStart(detail) {
|
|
3094
|
-
// We have to prevent default in order to block scrolling under the picker
|
|
3095
|
-
// but we DO NOT have to stop propagation, since we still want
|
|
3096
|
-
// some "click" events to capture
|
|
3097
|
-
if (detail.event.cancelable) {
|
|
3098
|
-
detail.event.preventDefault();
|
|
3099
|
-
}
|
|
3100
|
-
detail.event.stopPropagation();
|
|
3101
|
-
hapticSelectionStart();
|
|
3102
|
-
// reset everything
|
|
3103
|
-
if (this.rafId !== undefined)
|
|
3104
|
-
cancelAnimationFrame(this.rafId);
|
|
3105
|
-
const options = this.col.options;
|
|
3106
|
-
let minY = options.length - 1;
|
|
3107
|
-
let maxY = 0;
|
|
3108
|
-
for (let i = 0; i < options.length; i++) {
|
|
3109
|
-
if (!options[i].disabled) {
|
|
3110
|
-
minY = Math.min(minY, i);
|
|
3111
|
-
maxY = Math.max(maxY, i);
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
this.minY = -(minY * this.optHeight);
|
|
3115
|
-
this.maxY = -(maxY * this.optHeight);
|
|
3116
|
-
}
|
|
3117
|
-
onMove(detail) {
|
|
3118
|
-
if (detail.event.cancelable) {
|
|
3119
|
-
detail.event.preventDefault();
|
|
3120
|
-
}
|
|
3121
|
-
detail.event.stopPropagation();
|
|
3122
|
-
// update the scroll position relative to pointer start position
|
|
3123
|
-
let y = this.y + detail.deltaY;
|
|
3124
|
-
if (y > this.minY) {
|
|
3125
|
-
// scrolling up higher than scroll area
|
|
3126
|
-
y = Math.pow(y, 0.8);
|
|
3127
|
-
this.bounceFrom = y;
|
|
3128
|
-
}
|
|
3129
|
-
else if (y < this.maxY) {
|
|
3130
|
-
// scrolling down below scroll area
|
|
3131
|
-
y += Math.pow(this.maxY - y, 0.9);
|
|
3132
|
-
this.bounceFrom = y;
|
|
3133
|
-
}
|
|
3134
|
-
else {
|
|
3135
|
-
this.bounceFrom = 0;
|
|
3136
|
-
}
|
|
3137
|
-
this.update(y, 0, false);
|
|
3138
|
-
}
|
|
3139
|
-
onEnd(detail) {
|
|
3140
|
-
if (this.bounceFrom > 0) {
|
|
3141
|
-
// bounce back up
|
|
3142
|
-
this.update(this.minY, 100, true);
|
|
3143
|
-
this.emitColChange();
|
|
3144
|
-
return;
|
|
3145
|
-
}
|
|
3146
|
-
else if (this.bounceFrom < 0) {
|
|
3147
|
-
// bounce back down
|
|
3148
|
-
this.update(this.maxY, 100, true);
|
|
3149
|
-
this.emitColChange();
|
|
3150
|
-
return;
|
|
3151
|
-
}
|
|
3152
|
-
this.velocity = clamp(-MAX_PICKER_SPEED, detail.velocityY * 23, MAX_PICKER_SPEED);
|
|
3153
|
-
if (this.velocity === 0 && detail.deltaY === 0) {
|
|
3154
|
-
const opt = detail.event.target.closest('.picker-opt');
|
|
3155
|
-
if (opt === null || opt === void 0 ? void 0 : opt.hasAttribute('opt-index')) {
|
|
3156
|
-
this.setSelected(parseInt(opt.getAttribute('opt-index'), 10), TRANSITION_DURATION);
|
|
3157
|
-
}
|
|
3158
|
-
}
|
|
3159
|
-
else {
|
|
3160
|
-
this.y += detail.deltaY;
|
|
3161
|
-
if (Math.abs(detail.velocityY) < 0.05) {
|
|
3162
|
-
const isScrollingUp = detail.deltaY > 0;
|
|
3163
|
-
const optHeightFraction = (Math.abs(this.y) % this.optHeight) / this.optHeight;
|
|
3164
|
-
if (isScrollingUp && optHeightFraction > 0.5) {
|
|
3165
|
-
this.velocity = Math.abs(this.velocity) * -1;
|
|
3166
|
-
}
|
|
3167
|
-
else if (!isScrollingUp && optHeightFraction <= 0.5) {
|
|
3168
|
-
this.velocity = Math.abs(this.velocity);
|
|
3169
|
-
}
|
|
3170
|
-
}
|
|
3171
|
-
this.decelerate();
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
refresh(forceRefresh, animated) {
|
|
3175
|
-
var _a;
|
|
3176
|
-
let min = this.col.options.length - 1;
|
|
3177
|
-
let max = 0;
|
|
3178
|
-
const options = this.col.options;
|
|
3179
|
-
for (let i = 0; i < options.length; i++) {
|
|
3180
|
-
if (!options[i].disabled) {
|
|
3181
|
-
min = Math.min(min, i);
|
|
3182
|
-
max = Math.max(max, i);
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
/**
|
|
3186
|
-
* Only update selected value if column has a
|
|
3187
|
-
* velocity of 0. If it does not, then the
|
|
3188
|
-
* column is animating might land on
|
|
3189
|
-
* a value different than the value at
|
|
3190
|
-
* selectedIndex
|
|
3191
|
-
*/
|
|
3192
|
-
if (this.velocity !== 0) {
|
|
3193
|
-
return;
|
|
3194
|
-
}
|
|
3195
|
-
const selectedIndex = clamp(min, (_a = this.col.selectedIndex) !== null && _a !== void 0 ? _a : 0, max);
|
|
3196
|
-
if (this.col.prevSelected !== selectedIndex || forceRefresh) {
|
|
3197
|
-
const y = selectedIndex * this.optHeight * -1;
|
|
3198
|
-
const duration = animated ? TRANSITION_DURATION : 0;
|
|
3199
|
-
this.velocity = 0;
|
|
3200
|
-
this.update(y, duration, true);
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
onDomChange(forceRefresh, animated) {
|
|
3204
|
-
const colEl = this.optsEl;
|
|
3205
|
-
if (colEl) {
|
|
3206
|
-
// DOM READ
|
|
3207
|
-
// We perfom a DOM read over a rendered item, this needs to happen after the first render or after the column has changed
|
|
3208
|
-
this.optHeight = colEl.firstElementChild ? colEl.firstElementChild.clientHeight : 0;
|
|
3209
|
-
}
|
|
3210
|
-
this.refresh(forceRefresh, animated);
|
|
3211
|
-
}
|
|
3212
|
-
render() {
|
|
3213
|
-
const col = this.col;
|
|
3214
|
-
const theme = getIonTheme(this);
|
|
3215
|
-
return (h(Host, { key: 'aed1c1a702e03765d704f6f563fe26df58e68bbf', class: Object.assign({ [theme]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
3216
|
-
'max-width': this.col.columnWidth,
|
|
3217
|
-
} }, col.prefix && (h("div", { key: 'a6fae778eec5d57dba4b36b3e448c5c12fe0688b', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '1b77354fe5eeeeb4db94fab035a9ef5e45d695ac', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (h("div", { key: '105286ef7ba6eac0796f5af7d6f1daef7107444a', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
3218
|
-
}
|
|
3219
|
-
get el() { return getElement(this); }
|
|
3220
|
-
static get watchers() { return {
|
|
3221
|
-
"col": [{
|
|
3222
|
-
"colChanged": 0
|
|
3223
|
-
}]
|
|
3224
|
-
}; }
|
|
3225
|
-
};
|
|
3226
|
-
const PICKER_OPT_SELECTED = 'picker-opt-selected';
|
|
3227
|
-
const DECELERATION_FRICTION = 0.97;
|
|
3228
|
-
const MAX_PICKER_SPEED = 90;
|
|
3229
|
-
const TRANSITION_DURATION = 150;
|
|
3230
|
-
PickerColumnCmp.style = {
|
|
3231
|
-
ios: pickerColumnIosCss(),
|
|
3232
|
-
md: pickerColumnMdCss()
|
|
3233
|
-
};
|
|
3234
|
-
|
|
3235
|
-
export { Datetime as ion_datetime, Picker as ion_picker_legacy, PickerColumnCmp as ion_picker_legacy_column };
|
|
2518
|
+
export { Datetime as ion_datetime };
|