@ionic/core 8.5.7-dev.11746042265.1dbc2f10 → 8.5.7-dev.11747094257.1dd7476b
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/action-sheet.js +37 -23
- package/components/alert.js +42 -26
- package/components/animation.js +2 -2
- package/components/backdrop.js +11 -4
- package/components/button-active.js +1 -1
- package/components/button.js +30 -24
- package/components/buttons.js +14 -4
- package/components/capacitor.js +1 -1
- package/components/checkbox.js +43 -26
- package/components/config.js +1 -1
- package/components/content.js +24 -5
- package/components/data.js +31 -6
- package/components/gesture-controller.js +1 -1
- package/components/haptic.js +1 -1
- package/components/hardware-back-button.js +2 -2
- package/components/header.js +12 -7
- package/components/helpers.js +3 -6
- package/components/icon.js +1 -2
- package/components/index2.js +1 -1
- package/components/index3.js +3 -5
- package/components/index4.js +1 -1
- package/components/index5.js +2 -2
- package/components/index6.js +28 -3
- package/components/index7.js +163 -27
- package/components/index8.js +1 -1
- package/components/index9.js +3 -163
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -2
- package/components/ion-accordion-group.js +20 -7
- package/components/ion-accordion.js +32 -14
- package/components/ion-app.js +4 -5
- package/components/ion-avatar.js +2 -4
- package/components/ion-back-button.js +12 -13
- package/components/ion-badge.js +2 -5
- package/components/ion-breadcrumb.js +22 -20
- package/components/ion-breadcrumbs.js +14 -10
- package/components/ion-card-content.js +2 -4
- package/components/ion-card-header.js +7 -5
- package/components/ion-card-subtitle.js +2 -5
- package/components/ion-card-title.js +2 -5
- package/components/ion-card.js +16 -11
- package/components/ion-chip.js +8 -5
- package/components/ion-col.js +1 -26
- package/components/ion-datetime-button.js +16 -14
- package/components/ion-datetime.js +197 -82
- package/components/ion-fab-button.js +37 -20
- package/components/ion-fab-list.js +7 -2
- package/components/ion-fab.js +10 -4
- package/components/ion-footer.js +13 -8
- package/components/ion-grid.js +4 -2
- package/components/ion-img.js +1 -6
- package/components/ion-infinite-scroll-content.js +2 -6
- package/components/ion-infinite-scroll.js +27 -6
- package/components/ion-input-otp.d.ts +11 -0
- package/components/ion-input-otp.js +611 -0
- package/components/ion-input-password-toggle.js +11 -13
- package/components/ion-input.js +80 -55
- package/components/ion-item-divider.js +11 -7
- package/components/ion-item-group.js +3 -5
- package/components/ion-item-option.js +16 -14
- package/components/ion-item-options.js +7 -5
- package/components/ion-item-sliding.js +6 -4
- package/components/ion-loading.js +38 -21
- package/components/ion-menu-button.js +17 -12
- package/components/ion-menu-toggle.js +11 -7
- package/components/ion-menu.js +28 -12
- package/components/ion-nav-link.js +7 -7
- package/components/ion-nav.js +9 -12
- package/components/ion-note.js +4 -7
- package/components/ion-picker-legacy.js +47 -27
- package/components/ion-progress-bar.js +20 -7
- package/components/ion-range.js +69 -29
- package/components/ion-refresher-content.js +2 -6
- package/components/ion-refresher.js +56 -8
- package/components/ion-reorder-group.js +7 -5
- package/components/ion-reorder.js +4 -6
- package/components/ion-route-redirect.js +0 -2
- package/components/ion-route.js +9 -7
- package/components/ion-router-link.js +9 -11
- package/components/ion-router-outlet.js +12 -10
- package/components/ion-router.js +19 -1
- package/components/ion-row.js +2 -3
- package/components/ion-searchbar.js +82 -33
- package/components/ion-segment-button.js +22 -13
- package/components/ion-segment-content.js +2 -3
- package/components/ion-segment-view.js +7 -7
- package/components/ion-segment.js +24 -13
- package/components/ion-select-option.js +5 -4
- package/components/ion-select.js +68 -45
- package/components/ion-skeleton-text.js +6 -4
- package/components/ion-split-pane.js +13 -8
- package/components/ion-tab-bar.js +9 -8
- package/components/ion-tab-button.js +12 -14
- package/components/ion-tab.js +5 -8
- package/components/ion-tabs.js +5 -6
- package/components/ion-text.js +3 -5
- package/components/ion-textarea.js +72 -47
- package/components/ion-thumbnail.js +2 -3
- package/components/ion-toast.js +58 -35
- package/components/ion-toggle.js +55 -31
- package/components/ionic-global.js +1 -1
- package/components/item.js +20 -14
- package/components/keyboard-controller.js +2 -2
- package/components/keyboard.js +134 -69
- package/components/keyboard2.js +69 -134
- package/components/label.js +4 -8
- package/components/list-header.js +4 -8
- package/components/list.js +6 -6
- package/components/modal.js +122 -44
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +3 -3
- package/components/picker-column-option.js +20 -7
- package/components/picker-column.js +25 -10
- package/components/picker-column2.js +7 -10
- package/components/picker.js +2 -4
- package/components/popover.js +132 -40
- package/components/radio-group.js +11 -11
- package/components/radio.js +30 -16
- package/components/refresher.utils.js +2 -2
- package/components/ripple-effect.js +11 -3
- package/components/select-modal.js +4 -9
- package/components/select-popover.js +6 -9
- package/components/spinner.js +5 -6
- package/components/swipe-back.js +1 -1
- package/components/title.js +4 -8
- package/components/toolbar.js +4 -7
- package/css/global.bundle.css +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/structure.css +1 -1
- package/css/structure.css.map +1 -1
- package/dist/cjs/{animation-ab2d3449.js → animation-CIZtxug4.js} +2 -2
- package/dist/cjs/{app-globals-ddceb1f4.js → app-globals-DvwumQAI.js} +1 -1
- package/dist/cjs/{button-active-43e2b419.js → button-active-Du_YCFSd.js} +3 -3
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-DmA66EwP.js} +1 -1
- package/dist/cjs/{config-f6225ae7.js → config-ByqNVsV-.js} +1 -1
- package/dist/cjs/{data-94e8d392.js → data-BOIdk4ZX.js} +30 -5
- package/dist/cjs/{framework-delegate-862d9d00.js → framework-delegate-BZr8Dger.js} +1 -1
- package/dist/cjs/{gesture-controller-9436f482.js → gesture-controller-dtqlP_q4.js} +1 -1
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-ClPPQ_PS.js} +1 -1
- package/dist/cjs/{hardware-back-button-3d2b1004.js → hardware-back-button-BhLS9ov9.js} +2 -2
- package/dist/cjs/{helpers-8a48fdea.js → helpers-BWWnt1yc.js} +2 -5
- package/dist/cjs/{index-2e236a04.js → index-B6-BlKCh.js} +1398 -670
- package/dist/cjs/{index-ee07ed59.js → index-CAvQ7Tka.js} +3 -4
- package/dist/cjs/{index-073c7cdc.js → index-CPbAsnJK.js} +1 -0
- package/dist/cjs/{index-31b07b9c.js → index-CfS4TqIo.js} +3 -3
- package/dist/cjs/{index-dbe01e08.js → index-CrVjA49i.js} +3 -3
- package/dist/cjs/{index-a96d31ae.js → index-DCB2XSaQ.js} +9 -9
- package/dist/cjs/{index-1eff7149.js → index-QuFS9UpQ.js} +5 -5
- package/dist/cjs/index.cjs.js +20 -24
- package/dist/cjs/{input-shims-415be7ee.js → input-shims-DGvxKeWy.js} +6 -6
- package/dist/cjs/{input.utils-a7957fd6.js → input.utils-DQKGaXXm.js} +3 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +56 -27
- package/dist/cjs/ion-action-sheet.cjs.entry.js +50 -38
- package/dist/cjs/ion-alert.cjs.entry.js +55 -41
- package/dist/cjs/ion-app_8.cjs.entry.js +101 -70
- package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -18
- package/dist/cjs/ion-back-button.cjs.entry.js +16 -19
- package/dist/cjs/ion-backdrop.cjs.entry.js +14 -9
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +39 -35
- package/dist/cjs/ion-button_2.cjs.entry.js +33 -30
- package/dist/cjs/ion-card_5.cjs.entry.js +33 -36
- package/dist/cjs/ion-checkbox.cjs.entry.js +48 -33
- package/dist/cjs/ion-chip.cjs.entry.js +12 -11
- package/dist/cjs/ion-col_3.cjs.entry.js +10 -36
- package/dist/cjs/ion-datetime-button.cjs.entry.js +20 -20
- package/dist/cjs/ion-datetime_3.cjs.entry.js +255 -126
- package/dist/cjs/ion-fab_3.cjs.entry.js +58 -32
- package/dist/cjs/ion-img.cjs.entry.js +5 -12
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +35 -20
- package/dist/cjs/ion-input-otp.cjs.entry.js +574 -0
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +14 -18
- package/dist/cjs/ion-input.cjs.entry.js +87 -64
- package/dist/cjs/ion-item-option_3.cjs.entry.js +36 -32
- package/dist/cjs/ion-item_8.cjs.entry.js +62 -65
- package/dist/cjs/ion-loading.cjs.entry.js +48 -33
- package/dist/cjs/ion-menu_3.cjs.entry.js +68 -45
- package/dist/cjs/ion-modal.cjs.entry.js +132 -56
- package/dist/cjs/ion-nav_2.cjs.entry.js +19 -24
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +25 -14
- package/dist/cjs/ion-picker-column.cjs.entry.js +31 -18
- package/dist/cjs/ion-picker.cjs.entry.js +5 -9
- package/dist/cjs/ion-popover.cjs.entry.js +139 -49
- package/dist/cjs/ion-progress-bar.cjs.entry.js +24 -13
- package/dist/cjs/ion-radio_2.cjs.entry.js +47 -35
- package/dist/cjs/ion-range.cjs.entry.js +74 -36
- package/dist/cjs/ion-refresher_2.cjs.entry.js +70 -28
- package/dist/cjs/ion-reorder_2.cjs.entry.js +19 -21
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +14 -8
- package/dist/cjs/ion-route_4.cjs.entry.js +37 -23
- package/dist/cjs/ion-searchbar.cjs.entry.js +88 -41
- package/dist/cjs/ion-segment-content.cjs.entry.js +3 -6
- package/dist/cjs/ion-segment-view.cjs.entry.js +8 -10
- package/dist/cjs/ion-segment_2.cjs.entry.js +52 -34
- package/dist/cjs/ion-select-modal.cjs.entry.js +14 -21
- package/dist/cjs/ion-select_3.cjs.entry.js +90 -71
- package/dist/cjs/ion-spinner.cjs.entry.js +10 -13
- package/dist/cjs/ion-split-pane.cjs.entry.js +15 -12
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +30 -33
- package/dist/cjs/ion-tab_2.cjs.entry.js +12 -18
- package/dist/cjs/ion-text.cjs.entry.js +7 -11
- package/dist/cjs/ion-textarea.cjs.entry.js +79 -56
- package/dist/cjs/ion-toast.cjs.entry.js +67 -46
- package/dist/cjs/ion-toggle.cjs.entry.js +66 -44
- package/dist/cjs/{ionic-global-6dea5a96.js → ionic-global-C3I6b0Is.js} +2 -2
- package/dist/cjs/ionic.cjs.js +9 -9
- package/dist/cjs/{ios.transition-a131cd4d.js → ios.transition-CL8Q2_Bi.js} +6 -6
- package/dist/cjs/{keyboard-0272231f.js → keyboard-UuAS4D_9.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-GXBiBRKS.js} +2 -2
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-hHzlEQpk.js} +3 -3
- package/dist/cjs/loader.cjs.js +5 -7
- package/dist/cjs/{md.transition-e018ebe5.js → md.transition-D1Ast6la.js} +6 -6
- package/dist/cjs/{notch-controller-09b7f358.js → notch-controller-CARhSI1k.js} +2 -2
- package/dist/cjs/{overlays-4c291a05.js → overlays-Ci3nLg5M.js} +7 -7
- package/dist/cjs/{status-tap-f1acefac.js → status-tap-Bx_wzOTo.js} +4 -4
- package/dist/cjs/{swipe-back-4918e56b.js → swipe-back-N5-bJv4m.js} +5 -5
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/accordion.js +43 -13
- package/dist/collection/components/accordion-group/accordion-group.js +35 -8
- package/dist/collection/components/action-sheet/action-sheet.js +84 -31
- package/dist/collection/components/alert/alert.js +94 -34
- package/dist/collection/components/back-button/back-button.js +30 -14
- package/dist/collection/components/backdrop/backdrop.js +18 -3
- package/dist/collection/components/badge/badge.js +3 -4
- package/dist/collection/components/breadcrumb/breadcrumb.js +57 -26
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +24 -10
- package/dist/collection/components/button/button.js +74 -33
- package/dist/collection/components/buttons/buttons.js +15 -1
- package/dist/collection/components/card/card.js +44 -16
- package/dist/collection/components/card-header/card-header.js +11 -3
- package/dist/collection/components/card-subtitle/card-subtitle.js +3 -4
- package/dist/collection/components/card-title/card-title.js +3 -4
- package/dist/collection/components/checkbox/checkbox.js +77 -34
- package/dist/collection/components/chip/chip.js +15 -4
- package/dist/collection/components/col/col.js +72 -50
- package/dist/collection/components/content/content.js +43 -9
- package/dist/collection/components/datetime/datetime.ios.css +7 -2
- package/dist/collection/components/datetime/datetime.js +298 -98
- package/dist/collection/components/datetime/datetime.md.css +9 -3
- package/dist/collection/components/datetime/utils/data.js +29 -4
- package/dist/collection/components/datetime-button/datetime-button.js +21 -11
- package/dist/collection/components/fab/fab.js +21 -6
- package/dist/collection/components/fab-button/fab-button.js +76 -28
- package/dist/collection/components/fab-list/fab-list.js +12 -2
- package/dist/collection/components/footer/footer.js +16 -5
- package/dist/collection/components/grid/grid.js +6 -1
- package/dist/collection/components/header/header.js +15 -4
- package/dist/collection/components/img/img.js +6 -6
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +35 -7
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +6 -4
- package/dist/collection/components/input/input.js +179 -83
- package/dist/collection/components/input-otp/input-otp-interface.js +1 -0
- package/dist/collection/components/input-otp/input-otp.ios.css +377 -0
- package/dist/collection/components/input-otp/input-otp.js +999 -0
- package/dist/collection/components/input-otp/input-otp.md.css +377 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +19 -11
- package/dist/collection/components/item/item.js +56 -21
- package/dist/collection/components/item-divider/item-divider.js +15 -5
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +38 -18
- package/dist/collection/components/item-options/item-options.js +8 -2
- package/dist/collection/components/item-sliding/item-sliding.js +7 -2
- package/dist/collection/components/label/label.js +8 -6
- package/dist/collection/components/list/list.js +10 -4
- package/dist/collection/components/list-header/list-header.js +8 -8
- package/dist/collection/components/loading/loading.js +88 -31
- package/dist/collection/components/menu/menu.js +44 -12
- package/dist/collection/components/menu-button/menu-button.js +29 -12
- package/dist/collection/components/menu-toggle/menu-toggle.js +16 -7
- package/dist/collection/components/modal/modal.js +192 -55
- package/dist/collection/components/nav/nav.js +25 -12
- package/dist/collection/components/nav-link/nav-link.js +19 -9
- package/dist/collection/components/note/note.js +5 -6
- package/dist/collection/components/picker-column/picker-column.js +34 -10
- package/dist/collection/components/picker-column-option/picker-column-option.js +27 -6
- package/dist/collection/components/picker-legacy/picker.js +93 -33
- package/dist/collection/components/picker-legacy-column/picker-column.js +6 -4
- package/dist/collection/components/popover/popover.js +210 -57
- package/dist/collection/components/progress-bar/progress-bar.js +32 -7
- package/dist/collection/components/radio/radio.js +49 -19
- package/dist/collection/components/radio-group/radio-group.js +27 -13
- package/dist/collection/components/range/range.js +112 -37
- package/dist/collection/components/refresher/refresher.js +69 -7
- package/dist/collection/components/refresher-content/refresher-content.js +13 -9
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +7 -2
- package/dist/collection/components/ripple-effect/ripple-effect.js +13 -2
- package/dist/collection/components/route/route.js +24 -9
- package/dist/collection/components/route-redirect/route-redirect.js +6 -6
- package/dist/collection/components/router/router.js +24 -2
- package/dist/collection/components/router-link/router-link.js +26 -14
- package/dist/collection/components/router-outlet/router-outlet.js +25 -9
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +145 -50
- package/dist/collection/components/segment/segment.js +40 -15
- package/dist/collection/components/segment-button/segment-button.js +34 -13
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +8 -4
- package/dist/collection/components/select/select.js +128 -59
- package/dist/collection/components/select-modal/select-modal.js +10 -5
- package/dist/collection/components/select-option/select-option.js +10 -4
- package/dist/collection/components/select-popover/select-popover.js +19 -9
- package/dist/collection/components/skeleton-text/skeleton-text.js +8 -3
- package/dist/collection/components/spinner/spinner.js +16 -8
- package/dist/collection/components/split-pane/split-pane.js +19 -6
- package/dist/collection/components/tab/tab.js +16 -9
- package/dist/collection/components/tab-bar/tab-bar.js +16 -7
- package/dist/collection/components/tab-button/tab-button.js +34 -18
- package/dist/collection/components/tabs/tabs.js +6 -4
- package/dist/collection/components/text/text.js +5 -6
- package/dist/collection/components/textarea/textarea.js +154 -70
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +8 -8
- package/dist/collection/components/toast/toast.js +121 -47
- package/dist/collection/components/toggle/toggle.js +86 -35
- package/dist/collection/components/toolbar/toolbar.js +5 -4
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +2808 -663
- package/dist/esm/{animation-8b25e105.js → animation-D4bve5rR.js} +2 -2
- package/dist/esm/{app-globals-dbdbb3df.js → app-globals-C74-VMUb.js} +1 -1
- package/dist/esm/{button-active-90f1dbc4.js → button-active-DRCPpzqj.js} +3 -3
- package/dist/esm/{capacitor-59395cbd.js → capacitor-CFERIeaU.js} +1 -1
- package/dist/esm/{config-9898ed97.js → config-DTWRsyX5.js} +1 -1
- package/dist/esm/{data-0d7ea6eb.js → data-Iz8JZ8Jy.js} +31 -6
- package/dist/esm/{framework-delegate-56b467ad.js → framework-delegate-BEwxd9AM.js} +1 -1
- package/dist/esm/{gesture-controller-314a54f6.js → gesture-controller-BTEOs1at.js} +1 -1
- package/dist/esm/{haptic-ac164e4c.js → haptic-DzAMWJuk.js} +2 -2
- package/dist/esm/{hardware-back-button-a7eb8233.js → hardware-back-button-pnZ0X1YR.js} +2 -2
- package/dist/esm/{helpers-d94bc8ad.js → helpers-CzIihwFO.js} +3 -6
- package/dist/esm/{index-527b9e34.js → index-3GtB1kQI.js} +1397 -650
- package/dist/esm/{index-e2cf2ceb.js → index-BLV6ykCk.js} +2 -1
- package/dist/esm/{index-be190feb.js → index-BjwCqtOY.js} +3 -3
- package/dist/esm/{index-cfd9c1f2.js → index-CEo1SqXS.js} +1 -1
- package/dist/esm/{index-39782642.js → index-CfgBF1SE.js} +4 -6
- package/dist/esm/{index-9a17db3d.js → index-M5ufqlzF.js} +3 -3
- package/dist/esm/{index-68c0d151.js → index-lgeUQ6qY.js} +5 -5
- package/dist/esm/{index-18f31305.js → index-lp0kQfoC.js} +6 -6
- package/dist/esm/index.js +18 -18
- package/dist/esm/{input-shims-279903e2.js → input-shims-qlIPzMSm.js} +6 -6
- package/dist/esm/{input.utils-40504d6d.js → input.utils-CWgOv5Mm.js} +3 -3
- package/dist/esm/ion-accordion_2.entry.js +54 -23
- package/dist/esm/ion-action-sheet.entry.js +50 -36
- package/dist/esm/ion-alert.entry.js +55 -39
- package/dist/esm/ion-app_8.entry.js +101 -68
- package/dist/esm/ion-avatar_3.entry.js +10 -16
- package/dist/esm/ion-back-button.entry.js +16 -17
- package/dist/esm/ion-backdrop.entry.js +14 -7
- package/dist/esm/ion-breadcrumb_2.entry.js +39 -33
- package/dist/esm/ion-button_2.entry.js +33 -28
- package/dist/esm/ion-card_5.entry.js +33 -34
- package/dist/esm/ion-checkbox.entry.js +48 -31
- package/dist/esm/ion-chip.entry.js +12 -9
- package/dist/esm/ion-col_3.entry.js +10 -34
- package/dist/esm/ion-datetime-button.entry.js +20 -18
- package/dist/esm/ion-datetime_3.entry.js +255 -124
- package/dist/esm/ion-fab_3.entry.js +58 -30
- package/dist/esm/ion-img.entry.js +5 -10
- package/dist/esm/ion-infinite-scroll_2.entry.js +35 -18
- package/dist/esm/ion-input-otp.entry.js +572 -0
- package/dist/esm/ion-input-password-toggle.entry.js +14 -16
- package/dist/esm/ion-input.entry.js +87 -62
- package/dist/esm/ion-item-option_3.entry.js +36 -30
- package/dist/esm/ion-item_8.entry.js +62 -63
- package/dist/esm/ion-loading.entry.js +48 -31
- package/dist/esm/ion-menu_3.entry.js +68 -43
- package/dist/esm/ion-modal.entry.js +132 -54
- package/dist/esm/ion-nav_2.entry.js +19 -22
- package/dist/esm/ion-picker-column-option.entry.js +25 -12
- package/dist/esm/ion-picker-column.entry.js +31 -16
- package/dist/esm/ion-picker.entry.js +5 -7
- package/dist/esm/ion-popover.entry.js +139 -47
- package/dist/esm/ion-progress-bar.entry.js +24 -11
- package/dist/esm/ion-radio_2.entry.js +47 -33
- package/dist/esm/ion-range.entry.js +74 -34
- package/dist/esm/ion-refresher_2.entry.js +70 -26
- package/dist/esm/ion-reorder_2.entry.js +19 -19
- package/dist/esm/ion-ripple-effect.entry.js +14 -6
- package/dist/esm/ion-route_4.entry.js +37 -21
- package/dist/esm/ion-searchbar.entry.js +88 -39
- package/dist/esm/ion-segment-content.entry.js +3 -4
- package/dist/esm/ion-segment-view.entry.js +8 -8
- package/dist/esm/ion-segment_2.entry.js +52 -32
- package/dist/esm/ion-select-modal.entry.js +14 -19
- package/dist/esm/ion-select_3.entry.js +90 -69
- package/dist/esm/ion-spinner.entry.js +10 -11
- package/dist/esm/ion-split-pane.entry.js +15 -10
- package/dist/esm/ion-tab-bar_2.entry.js +30 -31
- package/dist/esm/ion-tab_2.entry.js +12 -16
- package/dist/esm/ion-text.entry.js +7 -9
- package/dist/esm/ion-textarea.entry.js +79 -54
- package/dist/esm/ion-toast.entry.js +67 -44
- package/dist/esm/ion-toggle.entry.js +64 -40
- package/dist/esm/{ionic-global-b26f573e.js → ionic-global-Dw-MNnQB.js} +2 -2
- package/dist/esm/ionic.js +8 -7
- package/dist/esm/{ios.transition-4047cb68.js → ios.transition-Doo_7Vid.js} +6 -6
- package/dist/esm/{keyboard-73175e24.js → keyboard-CUw4ekVy.js} +1 -1
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-BaaVITYt.js} +2 -2
- package/dist/esm/{keyboard-52278bd7.js → keyboard-ywgs5efA.js} +3 -3
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{md.transition-30ce8d1b.js → md.transition-BbcCfRk9.js} +6 -6
- package/dist/esm/{notch-controller-1a1f7183.js → notch-controller-B3wZOqJe.js} +2 -2
- package/dist/esm/{overlays-d99dcb0a.js → overlays-Pn0MyOv4.js} +7 -7
- package/dist/esm/{status-tap-42a8af65.js → status-tap-Cn5uETrs.js} +4 -4
- package/dist/esm/{swipe-back-0184f6b3.js → swipe-back-DKV4csu9.js} +5 -5
- package/dist/html.html-data.json +376 -0
- package/dist/index.js +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-05427be9.entry.js +4 -0
- package/dist/ionic/p-0bc3d6d0.entry.js +4 -0
- package/dist/ionic/p-0bcd3299.entry.js +4 -0
- package/dist/ionic/p-14d26301.entry.js +4 -0
- package/dist/ionic/p-178084cb.entry.js +4 -0
- package/dist/ionic/{p-b445ff65.entry.js → p-1da92348.entry.js} +1 -1
- package/dist/ionic/{p-2469240b.entry.js → p-1e9ea564.entry.js} +1 -1
- package/dist/ionic/p-1fe35f29.entry.js +4 -0
- package/dist/ionic/p-2438054c.entry.js +4 -0
- package/dist/ionic/p-250c972f.entry.js +4 -0
- package/dist/ionic/p-2517fcdf.entry.js +4 -0
- package/dist/ionic/p-29186993.entry.js +4 -0
- package/dist/ionic/p-2c6931ed.entry.js +4 -0
- package/dist/ionic/p-2e42fa68.entry.js +4 -0
- package/dist/ionic/p-3GtB1kQI.js +5 -0
- package/dist/ionic/p-3ca63859.entry.js +4 -0
- package/dist/ionic/p-3fa87259.entry.js +4 -0
- package/dist/ionic/p-43f012a4.entry.js +4 -0
- package/dist/ionic/{p-481e0885.entry.js → p-5756b724.entry.js} +1 -1
- package/dist/ionic/p-592db4a8.entry.js +4 -0
- package/dist/ionic/p-5a09e572.entry.js +4 -0
- package/dist/ionic/p-691fa8c7.entry.js +4 -0
- package/dist/ionic/p-6bd192d8.entry.js +4 -0
- package/dist/ionic/{p-0f5e6225.js → p-7QgQi64o.js} +1 -1
- package/dist/ionic/p-7a6c96ca.entry.js +4 -0
- package/dist/ionic/p-832b6c90.entry.js +4 -0
- package/dist/ionic/p-8c496d65.entry.js +4 -0
- package/dist/ionic/p-8d7afec5.entry.js +4 -0
- package/dist/ionic/p-920540c6.entry.js +4 -0
- package/dist/ionic/p-9262223a.entry.js +4 -0
- package/dist/ionic/p-96d912f5.entry.js +4 -0
- package/dist/ionic/p-98f759e4.entry.js +4 -0
- package/dist/ionic/p-99cc16fb.entry.js +4 -0
- package/dist/ionic/p-9c7d7711.entry.js +4 -0
- package/dist/ionic/p-9eeaBrnk.js +4 -0
- package/dist/ionic/p-B0af2jd_.js +4 -0
- package/dist/ionic/{p-dabe3bd4.js → p-B7Khsp7D.js} +1 -1
- package/dist/ionic/{p-809483ac.js → p-BBMlbfDQ.js} +1 -1
- package/dist/ionic/{p-95001a19.js → p-BC2IYr2c.js} +1 -1
- package/dist/ionic/{p-da2b833b.js → p-BLV6ykCk.js} +1 -1
- package/dist/ionic/p-BNIA2meb.js +4 -0
- package/dist/ionic/{p-2bb55ebc.js → p-Bj2C9kIj.js} +1 -1
- package/dist/ionic/{p-b6d324f0.js → p-BoW9sZxI.js} +1 -1
- package/dist/ionic/{p-10a1bddc.js → p-C719rkLH.js} +1 -1
- package/dist/ionic/{p-17e21141.js → p-CEo1SqXS.js} +1 -1
- package/dist/ionic/p-CG4wBMWx.js +4 -0
- package/dist/ionic/p-CGDL9pFJ.js +4 -0
- package/dist/ionic/p-CGyDG2ar.js +4 -0
- package/dist/ionic/p-CIGNaXM1.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-CKvCXMs9.js} +1 -1
- package/dist/ionic/{p-6636a436.js → p-CO_y91jJ.js} +1 -1
- package/dist/ionic/p-CjUUcfjC.js +4 -0
- package/dist/ionic/{p-ed005d9c.js → p-Ck7uSZOL.js} +1 -1
- package/dist/ionic/p-Cl0B-RWe.js +4 -0
- package/dist/ionic/p-CtWGkNnJ.js +4 -0
- package/dist/ionic/{p-5b67b447.js → p-CuVupNFU.js} +1 -1
- package/dist/ionic/{p-f08a92cc.js → p-D-bDfEy0.js} +1 -1
- package/dist/ionic/{p-27281edd.js → p-D13Eaw-8.js} +1 -1
- package/dist/ionic/{p-aded71ec.js → p-DYqTiW2v.js} +1 -1
- package/dist/ionic/p-DjV8cNim.js +4 -0
- package/dist/ionic/{p-b7b1d91a.js → p-RuOFleJd.js} +1 -1
- package/dist/ionic/p-a20a15cc.entry.js +4 -0
- package/dist/ionic/{p-12914457.entry.js → p-a22fe54d.entry.js} +1 -1
- package/dist/ionic/p-b18a4590.entry.js +4 -0
- package/dist/ionic/p-bc84650a.entry.js +4 -0
- package/dist/ionic/p-bf6b00ab.entry.js +4 -0
- package/dist/ionic/p-c1b0e3b6.entry.js +4 -0
- package/dist/ionic/p-cde545fa.entry.js +4 -0
- package/dist/ionic/p-d4742f5c.entry.js +4 -0
- package/dist/ionic/p-da105dce.entry.js +4 -0
- package/dist/ionic/p-e2d9c488.entry.js +4 -0
- package/dist/ionic/p-e5495b3b.entry.js +4 -0
- package/dist/ionic/p-e83ead65.entry.js +4 -0
- package/dist/ionic/p-ed36aee8.entry.js +4 -0
- package/dist/ionic/p-ee504ce4.entry.js +4 -0
- package/dist/ionic/p-eec040ff.entry.js +4 -0
- package/dist/ionic/p-f331dda5.entry.js +4 -0
- package/dist/ionic/p-f35cb090.entry.js +4 -0
- package/dist/ionic/p-fb714eec.entry.js +4 -0
- package/dist/ionic/p-fd156864.entry.js +4 -0
- package/dist/ionic/{p-393ffcc2.entry.js → p-ff88b250.entry.js} +1 -1
- package/dist/ionic/{p-8d2d39d0.js → p-wsLGfiE0.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -5
- package/dist/types/components/datetime/datetime-interface.d.ts +1 -0
- package/dist/types/components/datetime/datetime.d.ts +6 -0
- package/dist/types/components/datetime/utils/data.d.ts +3 -1
- package/dist/types/components/datetime/utils/manipulation.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +0 -5
- package/dist/types/components/input-otp/input-otp-interface.d.ts +21 -0
- package/dist/types/components/input-otp/input-otp.d.ts +268 -0
- package/dist/types/components/select/select.d.ts +0 -5
- package/dist/types/components/textarea/textarea.d.ts +0 -5
- package/dist/types/components/toggle/toggle.d.ts +0 -5
- package/dist/types/components.d.ts +175 -0
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +9 -0
- package/hydrate/index.d.ts +40 -5
- package/hydrate/index.js +5437 -2404
- package/hydrate/index.mjs +5436 -2403
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +1 -2
- package/package.json +2 -2
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm-es5/animation-8b25e105.js +0 -4
- package/dist/esm-es5/app-globals-dbdbb3df.js +0 -4
- package/dist/esm-es5/button-active-90f1dbc4.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/compare-with-utils-a96ff2ea.js +0 -4
- package/dist/esm-es5/config-9898ed97.js +0 -4
- package/dist/esm-es5/cubic-bezier-fe2083dc.js +0 -4
- package/dist/esm-es5/data-0d7ea6eb.js +0 -4
- package/dist/esm-es5/dir-babeabeb.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/framework-delegate-56b467ad.js +0 -4
- package/dist/esm-es5/gesture-controller-314a54f6.js +0 -4
- package/dist/esm-es5/haptic-ac164e4c.js +0 -4
- package/dist/esm-es5/hardware-back-button-a7eb8233.js +0 -4
- package/dist/esm-es5/helpers-d94bc8ad.js +0 -4
- package/dist/esm-es5/index-18f31305.js +0 -4
- package/dist/esm-es5/index-39782642.js +0 -4
- package/dist/esm-es5/index-527b9e34.js +0 -5
- package/dist/esm-es5/index-68c0d151.js +0 -4
- package/dist/esm-es5/index-9a17db3d.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/index-be190feb.js +0 -4
- package/dist/esm-es5/index-cfd9c1f2.js +0 -5
- package/dist/esm-es5/index-e2cf2ceb.js +0 -4
- package/dist/esm-es5/index.js +0 -4
- package/dist/esm-es5/input-shims-279903e2.js +0 -4
- package/dist/esm-es5/input.utils-40504d6d.js +0 -4
- package/dist/esm-es5/ion-accordion_2.entry.js +0 -4
- package/dist/esm-es5/ion-action-sheet.entry.js +0 -4
- package/dist/esm-es5/ion-alert.entry.js +0 -4
- package/dist/esm-es5/ion-app_8.entry.js +0 -4
- package/dist/esm-es5/ion-avatar_3.entry.js +0 -4
- package/dist/esm-es5/ion-back-button.entry.js +0 -4
- package/dist/esm-es5/ion-backdrop.entry.js +0 -4
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +0 -4
- package/dist/esm-es5/ion-button_2.entry.js +0 -4
- package/dist/esm-es5/ion-card_5.entry.js +0 -4
- package/dist/esm-es5/ion-checkbox.entry.js +0 -4
- package/dist/esm-es5/ion-chip.entry.js +0 -4
- package/dist/esm-es5/ion-col_3.entry.js +0 -4
- package/dist/esm-es5/ion-datetime-button.entry.js +0 -4
- package/dist/esm-es5/ion-datetime_3.entry.js +0 -4
- package/dist/esm-es5/ion-fab_3.entry.js +0 -4
- package/dist/esm-es5/ion-img.entry.js +0 -4
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +0 -4
- package/dist/esm-es5/ion-input-password-toggle.entry.js +0 -4
- package/dist/esm-es5/ion-input.entry.js +0 -4
- package/dist/esm-es5/ion-item-option_3.entry.js +0 -4
- package/dist/esm-es5/ion-item_8.entry.js +0 -4
- package/dist/esm-es5/ion-loading.entry.js +0 -4
- package/dist/esm-es5/ion-menu_3.entry.js +0 -4
- package/dist/esm-es5/ion-modal.entry.js +0 -4
- package/dist/esm-es5/ion-nav_2.entry.js +0 -4
- package/dist/esm-es5/ion-picker-column-option.entry.js +0 -4
- package/dist/esm-es5/ion-picker-column.entry.js +0 -4
- package/dist/esm-es5/ion-picker.entry.js +0 -4
- package/dist/esm-es5/ion-popover.entry.js +0 -4
- package/dist/esm-es5/ion-progress-bar.entry.js +0 -4
- package/dist/esm-es5/ion-radio_2.entry.js +0 -4
- package/dist/esm-es5/ion-range.entry.js +0 -4
- package/dist/esm-es5/ion-refresher_2.entry.js +0 -4
- package/dist/esm-es5/ion-reorder_2.entry.js +0 -4
- package/dist/esm-es5/ion-ripple-effect.entry.js +0 -4
- package/dist/esm-es5/ion-route_4.entry.js +0 -4
- package/dist/esm-es5/ion-searchbar.entry.js +0 -4
- package/dist/esm-es5/ion-segment-content.entry.js +0 -4
- package/dist/esm-es5/ion-segment-view.entry.js +0 -4
- package/dist/esm-es5/ion-segment_2.entry.js +0 -4
- package/dist/esm-es5/ion-select-modal.entry.js +0 -4
- package/dist/esm-es5/ion-select_3.entry.js +0 -4
- package/dist/esm-es5/ion-spinner.entry.js +0 -4
- package/dist/esm-es5/ion-split-pane.entry.js +0 -4
- package/dist/esm-es5/ion-tab-bar_2.entry.js +0 -4
- package/dist/esm-es5/ion-tab_2.entry.js +0 -4
- package/dist/esm-es5/ion-text.entry.js +0 -4
- package/dist/esm-es5/ion-textarea.entry.js +0 -4
- package/dist/esm-es5/ion-toast.entry.js +0 -4
- package/dist/esm-es5/ion-toggle.entry.js +0 -4
- package/dist/esm-es5/ionic-global-b26f573e.js +0 -4
- package/dist/esm-es5/ionic.js +0 -4
- package/dist/esm-es5/ios.transition-4047cb68.js +0 -4
- package/dist/esm-es5/keyboard-52278bd7.js +0 -4
- package/dist/esm-es5/keyboard-73175e24.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/loader.js +0 -4
- package/dist/esm-es5/lock-controller-316928be.js +0 -4
- package/dist/esm-es5/md.transition-30ce8d1b.js +0 -4
- package/dist/esm-es5/notch-controller-1a1f7183.js +0 -4
- package/dist/esm-es5/overlays-d99dcb0a.js +0 -4
- package/dist/esm-es5/spinner-configs-964f7cf3.js +0 -4
- package/dist/esm-es5/status-tap-42a8af65.js +0 -4
- package/dist/esm-es5/swipe-back-0184f6b3.js +0 -4
- package/dist/esm-es5/theme-01f3f29c.js +0 -4
- package/dist/esm-es5/watch-options-c2911ace.js +0 -4
- package/dist/ionic/ionic.js +0 -127
- package/dist/ionic/p-00023f5a.system.js +0 -4
- package/dist/ionic/p-012c3ceb.system.js +0 -4
- package/dist/ionic/p-019e30a3.system.entry.js +0 -4
- package/dist/ionic/p-03480b95.system.entry.js +0 -4
- package/dist/ionic/p-08cef0b1.entry.js +0 -4
- package/dist/ionic/p-08e01816.system.js +0 -4
- package/dist/ionic/p-105b2e8b.entry.js +0 -4
- package/dist/ionic/p-117d0013.system.entry.js +0 -4
- package/dist/ionic/p-11dca959.entry.js +0 -4
- package/dist/ionic/p-12193821.system.js +0 -4
- package/dist/ionic/p-12830298.system.entry.js +0 -4
- package/dist/ionic/p-14154301.system.entry.js +0 -4
- package/dist/ionic/p-14bdb5aa.entry.js +0 -4
- package/dist/ionic/p-1706b406.system.entry.js +0 -4
- package/dist/ionic/p-171ca87d.system.js +0 -4
- package/dist/ionic/p-19494658.system.entry.js +0 -4
- package/dist/ionic/p-1966a13c.system.js +0 -4
- package/dist/ionic/p-1974d5b2.system.js +0 -4
- package/dist/ionic/p-1a81ac09.system.js +0 -4
- package/dist/ionic/p-1b9c59ab.js +0 -4
- package/dist/ionic/p-1d307396.system.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-1e955a45.system.js +0 -4
- package/dist/ionic/p-20d469d0.system.js +0 -4
- package/dist/ionic/p-21891ead.js +0 -4
- package/dist/ionic/p-2233344a.system.js +0 -4
- package/dist/ionic/p-24a6c8a3.system.entry.js +0 -4
- package/dist/ionic/p-257fb777.entry.js +0 -4
- package/dist/ionic/p-25b10f81.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2bff0e69.system.entry.js +0 -4
- package/dist/ionic/p-2c7a230a.entry.js +0 -4
- package/dist/ionic/p-31dc303d.entry.js +0 -4
- package/dist/ionic/p-3535d6b5.entry.js +0 -4
- package/dist/ionic/p-35cdfd77.system.entry.js +0 -4
- package/dist/ionic/p-39fa7dd1.system.entry.js +0 -4
- package/dist/ionic/p-3a30f31b.system.entry.js +0 -4
- package/dist/ionic/p-3e1e14d9.system.js +0 -4
- package/dist/ionic/p-42f08b26.system.entry.js +0 -4
- package/dist/ionic/p-4609d030.system.js +0 -4
- package/dist/ionic/p-4a5be299.system.entry.js +0 -4
- package/dist/ionic/p-4c667fce.js +0 -4
- package/dist/ionic/p-4cf4172e.entry.js +0 -4
- package/dist/ionic/p-4da92dac.entry.js +0 -4
- package/dist/ionic/p-4ed5db19.system.js +0 -4
- package/dist/ionic/p-4f255d5a.system.js +0 -4
- package/dist/ionic/p-50cb2e8b.system.entry.js +0 -4
- package/dist/ionic/p-57957c0f.entry.js +0 -4
- package/dist/ionic/p-57e55ecb.system.js +0 -4
- package/dist/ionic/p-5c9feddc.system.entry.js +0 -4
- package/dist/ionic/p-5fac20aa.system.entry.js +0 -4
- package/dist/ionic/p-612096e6.system.entry.js +0 -4
- package/dist/ionic/p-6201c4ba.entry.js +0 -4
- package/dist/ionic/p-625248d0.system.js +0 -4
- package/dist/ionic/p-663413be.system.js +0 -4
- package/dist/ionic/p-66a5d6a8.js +0 -5
- package/dist/ionic/p-66df5468.system.entry.js +0 -4
- package/dist/ionic/p-67077d48.entry.js +0 -4
- package/dist/ionic/p-6835ebdd.system.entry.js +0 -4
- package/dist/ionic/p-6a03fc0f.entry.js +0 -4
- package/dist/ionic/p-6b8530f5.system.entry.js +0 -4
- package/dist/ionic/p-6c474e87.entry.js +0 -4
- package/dist/ionic/p-6dd86ff5.system.entry.js +0 -4
- package/dist/ionic/p-6ec0c94a.entry.js +0 -4
- package/dist/ionic/p-6f832afe.system.entry.js +0 -4
- package/dist/ionic/p-707408c5.system.entry.js +0 -4
- package/dist/ionic/p-712c0131.entry.js +0 -4
- package/dist/ionic/p-721f43f9.entry.js +0 -4
- package/dist/ionic/p-72b3050b.system.entry.js +0 -4
- package/dist/ionic/p-7445a2e5.system.js +0 -4
- package/dist/ionic/p-7611ede3.system.entry.js +0 -4
- package/dist/ionic/p-781e2dbb.system.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b8c12c3.entry.js +0 -4
- package/dist/ionic/p-7c5c7ae1.system.entry.js +0 -4
- package/dist/ionic/p-7e3e6ed2.entry.js +0 -4
- package/dist/ionic/p-7ffedf77.system.entry.js +0 -4
- package/dist/ionic/p-81904a80.entry.js +0 -4
- package/dist/ionic/p-84096b45.system.js +0 -4
- package/dist/ionic/p-8450f761.entry.js +0 -4
- package/dist/ionic/p-8460d95a.entry.js +0 -4
- package/dist/ionic/p-85b01465.js +0 -4
- package/dist/ionic/p-865fe95c.entry.js +0 -4
- package/dist/ionic/p-8674af94.entry.js +0 -4
- package/dist/ionic/p-890a4ee2.entry.js +0 -4
- package/dist/ionic/p-891553d8.entry.js +0 -4
- package/dist/ionic/p-8985cdb6.system.js +0 -4
- package/dist/ionic/p-8ab2f7a4.system.entry.js +0 -4
- package/dist/ionic/p-8b050e84.system.js +0 -4
- package/dist/ionic/p-8dacf4e2.entry.js +0 -4
- package/dist/ionic/p-8ededb41.js +0 -4
- package/dist/ionic/p-94551927.js +0 -4
- package/dist/ionic/p-965287fb.system.entry.js +0 -4
- package/dist/ionic/p-979d4f5c.system.js +0 -4
- package/dist/ionic/p-98fd942b.system.entry.js +0 -4
- package/dist/ionic/p-9df5043e.system.entry.js +0 -4
- package/dist/ionic/p-a0fd2fe5.system.entry.js +0 -4
- package/dist/ionic/p-a4866e3e.system.js +0 -4
- package/dist/ionic/p-a5dbe0ff.system.entry.js +0 -4
- package/dist/ionic/p-a835aca8.entry.js +0 -4
- package/dist/ionic/p-a83e3290.system.js +0 -4
- package/dist/ionic/p-a93873de.system.js +0 -4
- package/dist/ionic/p-aad57e35.entry.js +0 -4
- package/dist/ionic/p-ab7337e1.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-ad592db9.entry.js +0 -4
- package/dist/ionic/p-ae039072.entry.js +0 -4
- package/dist/ionic/p-aebfab05.system.entry.js +0 -4
- package/dist/ionic/p-b06ac4a5.system.js +0 -4
- package/dist/ionic/p-b22ab9f4.js +0 -4
- package/dist/ionic/p-b2e7eda0.system.entry.js +0 -4
- package/dist/ionic/p-b4d17da0.system.entry.js +0 -4
- package/dist/ionic/p-b5432d15.entry.js +0 -4
- package/dist/ionic/p-b8050298.system.entry.js +0 -4
- package/dist/ionic/p-b904cfe2.system.entry.js +0 -4
- package/dist/ionic/p-b9c793d4.entry.js +0 -4
- package/dist/ionic/p-bafc3eae.system.entry.js +0 -4
- package/dist/ionic/p-bf184319.system.entry.js +0 -4
- package/dist/ionic/p-c16443a8.system.js +0 -4
- package/dist/ionic/p-c1b7d311.system.entry.js +0 -4
- package/dist/ionic/p-c2160d8c.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c5b77054.entry.js +0 -4
- package/dist/ionic/p-c5bfa3e9.entry.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-cad82569.entry.js +0 -4
- package/dist/ionic/p-cec902a0.system.entry.js +0 -4
- package/dist/ionic/p-d16fab3f.entry.js +0 -4
- package/dist/ionic/p-d1eb2d7f.entry.js +0 -4
- package/dist/ionic/p-d382f09c.system.js +0 -4
- package/dist/ionic/p-d8d84afa.system.js +0 -4
- package/dist/ionic/p-d984c1ab.system.entry.js +0 -4
- package/dist/ionic/p-df069a0d.entry.js +0 -4
- package/dist/ionic/p-e0eb08e1.system.entry.js +0 -4
- package/dist/ionic/p-e1678e42.entry.js +0 -4
- package/dist/ionic/p-e673a0a2.system.js +0 -4
- package/dist/ionic/p-e727e32d.system.entry.js +0 -4
- package/dist/ionic/p-e8245753.entry.js +0 -4
- package/dist/ionic/p-e887b6a9.system.js +0 -4
- package/dist/ionic/p-edd2e3c7.entry.js +0 -4
- package/dist/ionic/p-f0c9f8e3.system.entry.js +0 -4
- package/dist/ionic/p-f0ef39ab.entry.js +0 -4
- package/dist/ionic/p-f11a9436.system.js +0 -5
- package/dist/ionic/p-f22490a7.system.entry.js +0 -4
- package/dist/ionic/p-f6bb9be7.system.entry.js +0 -4
- package/dist/ionic/p-f6e7d104.system.js +0 -4
- package/dist/ionic/p-f725bf9e.system.js +0 -4
- package/dist/ionic/p-f9a87db2.system.entry.js +0 -4
- package/dist/ionic/p-fa3f4b96.system.js +0 -4
- package/dist/ionic/p-fe063952.system.entry.js +0 -4
- package/loader/package.json +0 -11
- /package/dist/cjs/{compare-with-utils-df1001d7.js → compare-with-utils-DSicavqM.js} +0 -0
- /package/dist/cjs/{cubic-bezier-f2dccc53.js → cubic-bezier-DAjy1V-e.js} +0 -0
- /package/dist/cjs/{dir-94c21456.js → dir-Cn0z1rJH.js} +0 -0
- /package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-CCvKiLh3.js} +0 -0
- /package/dist/cjs/{index-cc858e97.js → index-CAT7dkq1.js} +0 -0
- /package/dist/cjs/{index-c8d52405.js → index-DkNv4J_i.js} +0 -0
- /package/dist/cjs/{lock-controller-6585a42a.js → lock-controller-aDB9wrEf.js} +0 -0
- /package/dist/cjs/{spinner-configs-282fd50a.js → spinner-configs-DxHKnd3-.js} +0 -0
- /package/dist/cjs/{theme-d1c573d2.js → theme-CeDs6Hcv.js} +0 -0
- /package/dist/cjs/{watch-options-f5f3e158.js → watch-options-CviOsrTS.js} +0 -0
- /package/dist/esm/{compare-with-utils-a96ff2ea.js → compare-with-utils-sObYyvOy.js} +0 -0
- /package/dist/esm/{cubic-bezier-fe2083dc.js → cubic-bezier-hHmYLOfE.js} +0 -0
- /package/dist/esm/{dir-babeabeb.js → dir-C53feagD.js} +0 -0
- /package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-BmVRXR1y.js} +0 -0
- /package/dist/esm/{index-a5d50daf.js → index-ZjP4CjeZ.js} +0 -0
- /package/dist/esm/{lock-controller-316928be.js → lock-controller-B-hirT0v.js} +0 -0
- /package/dist/esm/{spinner-configs-964f7cf3.js → spinner-configs-D4RIp70E.js} +0 -0
- /package/dist/esm/{theme-01f3f29c.js → theme-DiVJyqlX.js} +0 -0
- /package/dist/esm/{watch-options-c2911ace.js → watch-options-Dtdm8lKC.js} +0 -0
- /package/dist/ionic/{p-ccd02320.js → p-B-hirT0v.js} +0 -0
- /package/dist/ionic/{p-9b97df10.js → p-BTEOs1at.js} +0 -0
- /package/dist/ionic/{p-d47265c8.js → p-BmVRXR1y.js} +0 -0
- /package/dist/ionic/{p-fb813dab.js → p-C53feagD.js} +0 -0
- /package/dist/ionic/{p-f0c2a614.js → p-D4RIp70E.js} +0 -0
- /package/dist/ionic/{p-47794def.js → p-DiVJyqlX.js} +0 -0
- /package/dist/ionic/{p-459d13d5.js → p-Dtdm8lKC.js} +0 -0
- /package/dist/ionic/{p-7b30edcc.js → p-ZjP4CjeZ.js} +0 -0
- /package/dist/ionic/{p-2408c236.js → p-hHmYLOfE.js} +0 -0
- /package/dist/ionic/{p-de756e5c.js → p-sObYyvOy.js} +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, d as Host, g as getElement } from './index-3GtB1kQI.js';
|
|
5
|
+
import { p as printIonWarning } from './index-CEo1SqXS.js';
|
|
6
|
+
import { i as isRTL } from './dir-C53feagD.js';
|
|
7
|
+
import { c as createColorClasses } from './theme-DiVJyqlX.js';
|
|
8
|
+
import { b as getIonMode } from './ionic-global-Dw-MNnQB.js';
|
|
9
|
+
|
|
10
|
+
const inputOtpIosCss = ".sc-ion-input-otp-ios-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-ios{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-ios{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-ios{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-ios{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-ios-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:8px}.input-otp-size-medium.sc-ion-input-otp-ios-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-ios-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios,.input-otp-size-large.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:12px}.input-otp-shape-round.sc-ion-input-otp-ios-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-ios-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-ios-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-ios-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-disabled.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-ios-h,.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-ios-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-ios-h{--border-width:0.55px}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-width:1px}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))))}";
|
|
11
|
+
|
|
12
|
+
const inputOtpMdCss = ".sc-ion-input-otp-md-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-md{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-md{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-md{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-md{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-md-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:8px}.input-otp-size-medium.sc-ion-input-otp-md-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-md-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md,.input-otp-size-large.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:12px}.input-otp-shape-round.sc-ion-input-otp-md-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-md-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-md-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-md-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-md-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-disabled.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-md-h,.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-md-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-md-h{--border-width:1px}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-width:2px}.input-otp-fill-outline.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3))}";
|
|
13
|
+
|
|
14
|
+
const InputOTP = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
registerInstance(this, hostRef);
|
|
17
|
+
this.ionInput = createEvent(this, "ionInput", 7);
|
|
18
|
+
this.ionChange = createEvent(this, "ionChange", 7);
|
|
19
|
+
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
20
|
+
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
21
|
+
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
22
|
+
this.inputRefs = [];
|
|
23
|
+
this.inputId = `ion-input-otp-${inputIds++}`;
|
|
24
|
+
this.parsedSeparators = [];
|
|
25
|
+
/**
|
|
26
|
+
* Tracks whether the user is navigating through input boxes using keyboard navigation
|
|
27
|
+
* (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
|
|
28
|
+
* focus behavior when an input box is focused.
|
|
29
|
+
*/
|
|
30
|
+
this.isKeyboardNavigation = false;
|
|
31
|
+
this.inputValues = [];
|
|
32
|
+
this.hasFocus = false;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
35
|
+
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
36
|
+
*/
|
|
37
|
+
this.autocapitalize = 'off';
|
|
38
|
+
/**
|
|
39
|
+
* If `true`, the user cannot interact with the input.
|
|
40
|
+
*/
|
|
41
|
+
this.disabled = false;
|
|
42
|
+
/**
|
|
43
|
+
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If
|
|
44
|
+
* `"outline"` the input boxes will be transparent with a border.
|
|
45
|
+
*/
|
|
46
|
+
this.fill = 'outline';
|
|
47
|
+
/**
|
|
48
|
+
* The number of input boxes to display.
|
|
49
|
+
*/
|
|
50
|
+
this.length = 4;
|
|
51
|
+
/**
|
|
52
|
+
* If `true`, the user cannot modify the value.
|
|
53
|
+
*/
|
|
54
|
+
this.readonly = false;
|
|
55
|
+
/**
|
|
56
|
+
* The size of the input boxes.
|
|
57
|
+
*/
|
|
58
|
+
this.size = 'medium';
|
|
59
|
+
/**
|
|
60
|
+
* The shape of the input boxes.
|
|
61
|
+
* If "round" they will have an increased border radius.
|
|
62
|
+
* If "rectangular" they will have no border radius.
|
|
63
|
+
* If "soft" they will have a soft border radius.
|
|
64
|
+
*/
|
|
65
|
+
this.shape = 'round';
|
|
66
|
+
/**
|
|
67
|
+
* The type of input allowed in the input boxes.
|
|
68
|
+
*/
|
|
69
|
+
this.type = 'number';
|
|
70
|
+
/**
|
|
71
|
+
* The value of the input group.
|
|
72
|
+
*/
|
|
73
|
+
this.value = '';
|
|
74
|
+
this.onInput = (index) => (event) => {
|
|
75
|
+
const { validKeys } = this;
|
|
76
|
+
const value = event.target.value;
|
|
77
|
+
// Only allow input if it's a single character and matches the pattern
|
|
78
|
+
if (value.length > 1 || (value.length > 0 && !validKeys.test(value))) {
|
|
79
|
+
// Reset the input value if not valid
|
|
80
|
+
this.inputRefs[index].value = '';
|
|
81
|
+
this.inputValues[index] = '';
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
// Find the first empty box before or at the current index
|
|
85
|
+
let targetIndex = index;
|
|
86
|
+
for (let i = 0; i < index; i++) {
|
|
87
|
+
if (!this.inputValues[i] || this.inputValues[i] === '') {
|
|
88
|
+
targetIndex = i;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// Set the value at the target index
|
|
93
|
+
this.inputValues[targetIndex] = value;
|
|
94
|
+
// If the value was entered in a later box, clear the current box
|
|
95
|
+
if (targetIndex !== index) {
|
|
96
|
+
this.inputRefs[index].value = '';
|
|
97
|
+
}
|
|
98
|
+
if (value.length > 0) {
|
|
99
|
+
this.focusNext(targetIndex);
|
|
100
|
+
}
|
|
101
|
+
this.updateValue(event);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Handles keyboard navigation and input for the OTP component.
|
|
105
|
+
*
|
|
106
|
+
* Navigation:
|
|
107
|
+
* - Backspace: Clears current input and moves to previous box if empty
|
|
108
|
+
* - Arrow Left/Right: Moves focus between input boxes
|
|
109
|
+
* - Tab: Allows normal tab navigation between components
|
|
110
|
+
*
|
|
111
|
+
* Input Behavior:
|
|
112
|
+
* - Validates input against the allowed pattern
|
|
113
|
+
* - When entering a key in a filled box:
|
|
114
|
+
* - Shifts existing values right if there is room
|
|
115
|
+
* - Updates the value of the input group
|
|
116
|
+
* - Prevents default behavior to avoid automatic focus shift
|
|
117
|
+
*/
|
|
118
|
+
this.onKeyDown = (index) => (event) => {
|
|
119
|
+
const { length } = this;
|
|
120
|
+
const rtl = isRTL(this.el);
|
|
121
|
+
const input = event.target;
|
|
122
|
+
const isPasteShortcut = (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'v';
|
|
123
|
+
const isTextSelection = input.selectionStart !== input.selectionEnd;
|
|
124
|
+
// Return if the key is the paste shortcut or the input value
|
|
125
|
+
// text is selected and let the onPaste / onInput handler manage it
|
|
126
|
+
if (isPasteShortcut || isTextSelection) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (event.key === 'Backspace') {
|
|
130
|
+
if (this.inputValues[index]) {
|
|
131
|
+
// Remove the value at the current index
|
|
132
|
+
this.inputValues[index] = '';
|
|
133
|
+
// Shift all values to the right of the current index left by one
|
|
134
|
+
for (let i = index; i < length - 1; i++) {
|
|
135
|
+
this.inputValues[i] = this.inputValues[i + 1];
|
|
136
|
+
}
|
|
137
|
+
// Clear the last box
|
|
138
|
+
this.inputValues[length - 1] = '';
|
|
139
|
+
// Update all inputRefs to match inputValues
|
|
140
|
+
for (let i = 0; i < length; i++) {
|
|
141
|
+
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
142
|
+
}
|
|
143
|
+
this.updateValue(event);
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
}
|
|
146
|
+
else if (!this.inputValues[index] && index > 0) {
|
|
147
|
+
// If current input is empty, move to previous input
|
|
148
|
+
this.focusPrevious(index);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
152
|
+
this.isKeyboardNavigation = true;
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
const isLeft = event.key === 'ArrowLeft';
|
|
155
|
+
const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
|
|
156
|
+
// Only allow moving to the next input if the current has a value
|
|
157
|
+
if (shouldMoveNext) {
|
|
158
|
+
if (this.inputValues[index] && index < length - 1) {
|
|
159
|
+
this.focusNext(index);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
this.focusPrevious(index);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
else if (event.key === 'Tab') {
|
|
167
|
+
this.isKeyboardNavigation = true;
|
|
168
|
+
// Let all tab events proceed normally
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
// If the input box contains a value and the key being
|
|
172
|
+
// entered is a valid key for the input box update the value
|
|
173
|
+
// and shift the values to the right if there is room.
|
|
174
|
+
if (this.inputValues[index] && this.validKeys.test(event.key)) {
|
|
175
|
+
if (!this.inputValues[length - 1]) {
|
|
176
|
+
for (let i = length - 1; i > index; i--) {
|
|
177
|
+
this.inputValues[i] = this.inputValues[i - 1];
|
|
178
|
+
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
this.inputValues[index] = event.key;
|
|
182
|
+
this.inputRefs[index].value = event.key;
|
|
183
|
+
this.updateValue(event);
|
|
184
|
+
// Prevent default to avoid the browser from
|
|
185
|
+
// automatically moving the focus to the next input
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Handles pasting text into the input OTP component.
|
|
191
|
+
* This function prevents the default paste behavior and
|
|
192
|
+
* validates the pasted text against the allowed pattern.
|
|
193
|
+
* It then updates the value of the input group and focuses
|
|
194
|
+
* the next empty input after pasting.
|
|
195
|
+
*/
|
|
196
|
+
this.onPaste = (event) => {
|
|
197
|
+
var _a, _b, _c;
|
|
198
|
+
const { inputRefs, length, validKeys } = this;
|
|
199
|
+
event.preventDefault();
|
|
200
|
+
const pastedText = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
201
|
+
// If there is no pasted text, still emit the input change event
|
|
202
|
+
// because this is how the native input element behaves
|
|
203
|
+
// but return early because there is nothing to paste.
|
|
204
|
+
if (!pastedText) {
|
|
205
|
+
this.emitIonInput(event);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const validChars = pastedText
|
|
209
|
+
.split('')
|
|
210
|
+
.filter((char) => validKeys.test(char))
|
|
211
|
+
.slice(0, length);
|
|
212
|
+
// Find the first empty input
|
|
213
|
+
const startIndex = this.getFirstEmptyIndex();
|
|
214
|
+
// If all boxes are filled, start at 0
|
|
215
|
+
const pasteStart = startIndex === -1 ? 0 : startIndex;
|
|
216
|
+
validChars.forEach((char, index) => {
|
|
217
|
+
const targetIndex = pasteStart + index;
|
|
218
|
+
if (targetIndex < length) {
|
|
219
|
+
this.inputRefs[targetIndex].value = char;
|
|
220
|
+
this.inputValues[targetIndex] = char;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
this.updateValue(event);
|
|
224
|
+
// Focus the next empty input after pasting
|
|
225
|
+
// If all boxes are filled, focus the last input
|
|
226
|
+
const nextEmptyIndex = pasteStart + validChars.length;
|
|
227
|
+
if (nextEmptyIndex < length) {
|
|
228
|
+
(_b = inputRefs[nextEmptyIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
(_c = inputRefs[length - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Handles the focus behavior for the input OTP component.
|
|
236
|
+
*
|
|
237
|
+
* Focus behavior:
|
|
238
|
+
* 1. Keyboard navigation: Allow normal focus movement
|
|
239
|
+
* 2. Mouse click:
|
|
240
|
+
* - If clicked box has value: Focus that box
|
|
241
|
+
* - If clicked box is empty: Focus first empty box
|
|
242
|
+
*
|
|
243
|
+
* Emits the `ionFocus` event when the input group gains focus.
|
|
244
|
+
*/
|
|
245
|
+
this.onFocus = (index) => (event) => {
|
|
246
|
+
var _a;
|
|
247
|
+
const { inputRefs } = this;
|
|
248
|
+
// Only emit ionFocus and set the focusedValue when the
|
|
249
|
+
// component first gains focus
|
|
250
|
+
if (!this.hasFocus) {
|
|
251
|
+
this.ionFocus.emit(event);
|
|
252
|
+
this.focusedValue = this.value;
|
|
253
|
+
}
|
|
254
|
+
this.hasFocus = true;
|
|
255
|
+
let finalIndex = index;
|
|
256
|
+
if (!this.isKeyboardNavigation) {
|
|
257
|
+
// If the clicked box has a value, focus it
|
|
258
|
+
// Otherwise focus the first empty box
|
|
259
|
+
const targetIndex = this.inputValues[index] ? index : this.getFirstEmptyIndex();
|
|
260
|
+
finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
|
|
261
|
+
// Focus the target box
|
|
262
|
+
(_a = this.inputRefs[finalIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
263
|
+
}
|
|
264
|
+
// Update tabIndexes to match the focused box
|
|
265
|
+
inputRefs.forEach((input, i) => {
|
|
266
|
+
input.tabIndex = i === finalIndex ? 0 : -1;
|
|
267
|
+
});
|
|
268
|
+
// Reset the keyboard navigation flag
|
|
269
|
+
this.isKeyboardNavigation = false;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Handles the blur behavior for the input OTP component.
|
|
273
|
+
* Emits the `ionBlur` event when the input group loses focus.
|
|
274
|
+
*/
|
|
275
|
+
this.onBlur = (event) => {
|
|
276
|
+
const { inputRefs } = this;
|
|
277
|
+
const relatedTarget = event.relatedTarget;
|
|
278
|
+
// Do not emit blur if we're moving to another input box in the same component
|
|
279
|
+
const isInternalFocus = relatedTarget != null && inputRefs.includes(relatedTarget);
|
|
280
|
+
if (!isInternalFocus) {
|
|
281
|
+
this.hasFocus = false;
|
|
282
|
+
// Reset tabIndexes when focus leaves the component
|
|
283
|
+
this.updateTabIndexes();
|
|
284
|
+
// Always emit ionBlur when focus leaves the component
|
|
285
|
+
this.ionBlur.emit(event);
|
|
286
|
+
// Only emit ionChange if the value has actually changed
|
|
287
|
+
if (this.focusedValue !== this.value) {
|
|
288
|
+
this.emitIonChange(event);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
valueChanged() {
|
|
294
|
+
this.initializeValues();
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Processes the separators prop into an array of numbers.
|
|
298
|
+
*
|
|
299
|
+
* If the separators prop is not provided, returns an empty array.
|
|
300
|
+
* If the separators prop is 'all', returns an array of all valid positions (1 to length-1).
|
|
301
|
+
* If the separators prop is an array, returns it as is.
|
|
302
|
+
* If the separators prop is a string, splits it by commas and parses each part as a number.
|
|
303
|
+
*
|
|
304
|
+
* If the separators are greater than the input length, it will warn and ignore the separators.
|
|
305
|
+
*/
|
|
306
|
+
processSeparators() {
|
|
307
|
+
const { separators, length } = this;
|
|
308
|
+
if (separators === undefined) {
|
|
309
|
+
this.parsedSeparators = [];
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (typeof separators === 'string' && separators !== 'all') {
|
|
313
|
+
const isValidFormat = /^(\d+)(,\d+)*$/.test(separators);
|
|
314
|
+
if (!isValidFormat) {
|
|
315
|
+
printIonWarning(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${separators}`, this.el);
|
|
316
|
+
this.parsedSeparators = [];
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
let separatorValues;
|
|
321
|
+
if (separators === 'all') {
|
|
322
|
+
separatorValues = Array.from({ length: length - 1 }, (_, i) => i + 1);
|
|
323
|
+
}
|
|
324
|
+
else if (Array.isArray(separators)) {
|
|
325
|
+
separatorValues = separators;
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
separatorValues = separators
|
|
329
|
+
.split(',')
|
|
330
|
+
.map((pos) => parseInt(pos, 10))
|
|
331
|
+
.filter((pos) => !isNaN(pos));
|
|
332
|
+
}
|
|
333
|
+
// Check for duplicate separator positions
|
|
334
|
+
const duplicates = separatorValues.filter((pos, index) => separatorValues.indexOf(pos) !== index);
|
|
335
|
+
if (duplicates.length > 0) {
|
|
336
|
+
printIonWarning(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${separators}`, this.el);
|
|
337
|
+
}
|
|
338
|
+
const invalidSeparators = separatorValues.filter((pos) => pos > length);
|
|
339
|
+
if (invalidSeparators.length > 0) {
|
|
340
|
+
printIonWarning(`[ion-input-otp] - The following separator positions are greater than the input length (${length}): ${invalidSeparators.join(', ')}. These separators will be ignored.`, this.el);
|
|
341
|
+
}
|
|
342
|
+
this.parsedSeparators = separatorValues.filter((pos) => pos <= length);
|
|
343
|
+
}
|
|
344
|
+
componentWillLoad() {
|
|
345
|
+
this.processSeparators();
|
|
346
|
+
this.initializeValues();
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Initializes the input values array based on the current value prop.
|
|
350
|
+
* This splits the value into individual characters and validates them against
|
|
351
|
+
* the allowed pattern. The values are then used as the values in the native
|
|
352
|
+
* input boxes and the value of the input group is updated.
|
|
353
|
+
*/
|
|
354
|
+
initializeValues() {
|
|
355
|
+
if (this.value != null && String(this.value).length > 0) {
|
|
356
|
+
const chars = String(this.value).split('').slice(0, this.length);
|
|
357
|
+
chars.forEach((char, index) => {
|
|
358
|
+
if (this.validKeys.test(char)) {
|
|
359
|
+
this.inputValues[index] = char;
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
// Update the value without emitting events
|
|
363
|
+
this.value = this.inputValues.join('');
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Resets the input values and focus state.
|
|
368
|
+
*/
|
|
369
|
+
async reset() {
|
|
370
|
+
this.inputValues = Array(this.length).fill('');
|
|
371
|
+
this.value = '';
|
|
372
|
+
this.focusedValue = null;
|
|
373
|
+
this.hasFocus = false;
|
|
374
|
+
this.inputRefs.forEach((input) => {
|
|
375
|
+
input.blur();
|
|
376
|
+
});
|
|
377
|
+
this.updateTabIndexes();
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Sets focus to an input box.
|
|
381
|
+
* @param index - The index of the input box to focus (0-based).
|
|
382
|
+
* If provided and the input box has a value, the input box at that index will be focused.
|
|
383
|
+
* Otherwise, the first empty input box or the last input if all are filled will be focused.
|
|
384
|
+
*/
|
|
385
|
+
async setFocus(index) {
|
|
386
|
+
var _a, _b;
|
|
387
|
+
if (typeof index === 'number') {
|
|
388
|
+
const validIndex = Math.max(0, Math.min(index, this.length - 1));
|
|
389
|
+
(_a = this.inputRefs[validIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
const tabbableIndex = this.getTabbableIndex();
|
|
393
|
+
(_b = this.inputRefs[tabbableIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Get the regex pattern for allowed characters.
|
|
398
|
+
* If a pattern is provided, use it to create a regex pattern
|
|
399
|
+
* Otherwise, use the default regex pattern based on type
|
|
400
|
+
*/
|
|
401
|
+
get validKeys() {
|
|
402
|
+
return new RegExp(`^${this.getPattern()}$`);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Gets the string pattern to pass to the input element
|
|
406
|
+
* and use in the regex for allowed characters.
|
|
407
|
+
*/
|
|
408
|
+
getPattern() {
|
|
409
|
+
const { pattern, type } = this;
|
|
410
|
+
if (pattern) {
|
|
411
|
+
return pattern;
|
|
412
|
+
}
|
|
413
|
+
return type === 'number' ? '[0-9]' : '[a-zA-Z0-9]';
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Get the default value for inputmode.
|
|
417
|
+
* If inputmode is provided, use it.
|
|
418
|
+
* Otherwise, use the default inputmode based on type
|
|
419
|
+
*/
|
|
420
|
+
getInputmode() {
|
|
421
|
+
const { inputmode } = this;
|
|
422
|
+
if (inputmode) {
|
|
423
|
+
return inputmode;
|
|
424
|
+
}
|
|
425
|
+
if (this.type == 'number') {
|
|
426
|
+
return 'numeric';
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
return 'text';
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Updates the value of the input group.
|
|
434
|
+
* This updates the value of the input group and emits an `ionChange` event.
|
|
435
|
+
* If all of the input boxes are filled, it emits an `ionComplete` event.
|
|
436
|
+
*/
|
|
437
|
+
updateValue(event) {
|
|
438
|
+
const { inputValues, length } = this;
|
|
439
|
+
const newValue = inputValues.join('');
|
|
440
|
+
this.value = newValue;
|
|
441
|
+
this.emitIonInput(event);
|
|
442
|
+
if (newValue.length === length) {
|
|
443
|
+
this.ionComplete.emit({ value: newValue });
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Emits an `ionChange` event.
|
|
448
|
+
* This API should be called for user committed changes.
|
|
449
|
+
* This API should not be used for external value changes.
|
|
450
|
+
*/
|
|
451
|
+
emitIonChange(event) {
|
|
452
|
+
const { value } = this;
|
|
453
|
+
// Checks for both null and undefined values
|
|
454
|
+
const newValue = value == null ? value : value.toString();
|
|
455
|
+
this.ionChange.emit({ value: newValue, event });
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Emits an `ionInput` event.
|
|
459
|
+
* This is used to emit the input value when the user types,
|
|
460
|
+
* backspaces, or pastes.
|
|
461
|
+
*/
|
|
462
|
+
emitIonInput(event) {
|
|
463
|
+
const { value } = this;
|
|
464
|
+
// Checks for both null and undefined values
|
|
465
|
+
const newValue = value == null ? value : value.toString();
|
|
466
|
+
this.ionInput.emit({ value: newValue, event });
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Focuses the next input box.
|
|
470
|
+
*/
|
|
471
|
+
focusNext(currentIndex) {
|
|
472
|
+
var _a;
|
|
473
|
+
const { inputRefs, length } = this;
|
|
474
|
+
if (currentIndex < length - 1) {
|
|
475
|
+
(_a = inputRefs[currentIndex + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Focuses the previous input box.
|
|
480
|
+
*/
|
|
481
|
+
focusPrevious(currentIndex) {
|
|
482
|
+
var _a;
|
|
483
|
+
const { inputRefs } = this;
|
|
484
|
+
if (currentIndex > 0) {
|
|
485
|
+
(_a = inputRefs[currentIndex - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Determines if a separator should be shown for a given index by
|
|
490
|
+
* checking if the index is included in the parsed separators array.
|
|
491
|
+
*/
|
|
492
|
+
showSeparator(index) {
|
|
493
|
+
const { length } = this;
|
|
494
|
+
return this.parsedSeparators.includes(index + 1) && index < length - 1;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Updates the tabIndexes for the input boxes.
|
|
498
|
+
* This is used to ensure that the correct input is
|
|
499
|
+
* focused when the user navigates using the tab key.
|
|
500
|
+
*/
|
|
501
|
+
updateTabIndexes() {
|
|
502
|
+
const { inputRefs, inputValues, length } = this;
|
|
503
|
+
// Find first empty index after any filled boxes
|
|
504
|
+
let firstEmptyIndex = -1;
|
|
505
|
+
for (let i = 0; i < length; i++) {
|
|
506
|
+
if (!inputValues[i] || inputValues[i] === '') {
|
|
507
|
+
firstEmptyIndex = i;
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
// Update tabIndex for all inputs
|
|
512
|
+
inputRefs.forEach((input, index) => {
|
|
513
|
+
// If all boxes are filled, make the last box tabbable
|
|
514
|
+
// Otherwise, make the first empty box tabbable
|
|
515
|
+
const shouldBeTabbable = firstEmptyIndex === -1 ? index === length - 1 : firstEmptyIndex === index;
|
|
516
|
+
input.tabIndex = shouldBeTabbable ? 0 : -1;
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Loops through the input values and returns the index
|
|
521
|
+
* of the first empty input.
|
|
522
|
+
* Returns -1 if all inputs are filled.
|
|
523
|
+
*/
|
|
524
|
+
getFirstEmptyIndex() {
|
|
525
|
+
const { inputValues, length } = this;
|
|
526
|
+
for (let i = 0; i < length; i++) {
|
|
527
|
+
if (!inputValues[i] || inputValues[i] === '') {
|
|
528
|
+
return i;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return -1;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Returns the index of the input that should be tabbed to.
|
|
535
|
+
* If all inputs are filled, returns the last input's index.
|
|
536
|
+
* Otherwise, returns the index of the first empty input.
|
|
537
|
+
*/
|
|
538
|
+
getTabbableIndex() {
|
|
539
|
+
const { length } = this;
|
|
540
|
+
const firstEmptyIndex = this.getFirstEmptyIndex();
|
|
541
|
+
return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
|
|
542
|
+
}
|
|
543
|
+
render() {
|
|
544
|
+
const { autocapitalize, color, disabled, fill, hasFocus, inputId, inputRefs, inputValues, length, readonly, shape, size, } = this;
|
|
545
|
+
const mode = getIonMode(this);
|
|
546
|
+
const inputmode = this.getInputmode();
|
|
547
|
+
const tabbableIndex = this.getTabbableIndex();
|
|
548
|
+
const pattern = this.getPattern();
|
|
549
|
+
return (h(Host, { key: '78321b1d7a3dd16d92c7ec28017959f384265127', class: createColorClasses(color, {
|
|
550
|
+
[mode]: true,
|
|
551
|
+
'has-focus': hasFocus,
|
|
552
|
+
[`input-otp-size-${size}`]: true,
|
|
553
|
+
[`input-otp-shape-${shape}`]: true,
|
|
554
|
+
[`input-otp-fill-${fill}`]: true,
|
|
555
|
+
'input-otp-disabled': disabled,
|
|
556
|
+
'input-otp-readonly': readonly,
|
|
557
|
+
}) }, h("div", { key: '060e5d437d7afc82bb8a37b4946c462ca27ee71d', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, Array.from({ length }).map((_, index) => (h(Fragment, null, h("div", { class: "native-wrapper" }, h("input", { class: "native-input", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", autoCapitalize: autocapitalize, inputmode: inputmode, maxLength: 1, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: index === 0 ? 'one-time-code' : 'off', ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && h("div", { class: "input-otp-separator" }))))), h("div", { key: '652931fce128209385ae5f37dde94ec8558ac420', class: "input-otp-description" }, h("slot", { key: '1609323daceadad25ddecaf51e89999d7e070391' }))));
|
|
558
|
+
}
|
|
559
|
+
get el() { return getElement(this); }
|
|
560
|
+
static get watchers() { return {
|
|
561
|
+
"value": ["valueChanged"],
|
|
562
|
+
"separators": ["processSeparators"],
|
|
563
|
+
"length": ["processSeparators"]
|
|
564
|
+
}; }
|
|
565
|
+
};
|
|
566
|
+
let inputIds = 0;
|
|
567
|
+
InputOTP.style = {
|
|
568
|
+
ios: inputOtpIosCss,
|
|
569
|
+
md: inputOtpMdCss
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
export { InputOTP as ion_input_otp };
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h,
|
|
5
|
-
import { p as printIonWarning } from './index-
|
|
6
|
-
import { c as createColorClasses } from './theme-
|
|
7
|
-
import { x as
|
|
8
|
-
import { b as getIonMode } from './ionic-global-
|
|
4
|
+
import { r as registerInstance, h, d as Host, g as getElement } from './index-3GtB1kQI.js';
|
|
5
|
+
import { p as printIonWarning } from './index-CEo1SqXS.js';
|
|
6
|
+
import { c as createColorClasses } from './theme-DiVJyqlX.js';
|
|
7
|
+
import { x as eyeOff, y as eye } from './index-BLV6ykCk.js';
|
|
8
|
+
import { b as getIonMode } from './ionic-global-Dw-MNnQB.js';
|
|
9
9
|
|
|
10
10
|
const iosInputPasswordToggleCss = "";
|
|
11
|
-
const IonInputPasswordToggleIosStyle0 = iosInputPasswordToggleCss;
|
|
12
11
|
|
|
13
12
|
const mdInputPasswordToggleCss = "";
|
|
14
|
-
const IonInputPasswordToggleMdStyle0 = mdInputPasswordToggleCss;
|
|
15
13
|
|
|
16
14
|
const InputPasswordToggle = class {
|
|
17
15
|
constructor(hostRef) {
|
|
18
16
|
registerInstance(this, hostRef);
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
this.type = 'password';
|
|
19
21
|
this.togglePasswordVisibility = () => {
|
|
20
22
|
const { inputElRef } = this;
|
|
21
23
|
if (!inputElRef) {
|
|
@@ -23,10 +25,6 @@ const InputPasswordToggle = class {
|
|
|
23
25
|
}
|
|
24
26
|
inputElRef.type = inputElRef.type === 'text' ? 'password' : 'text';
|
|
25
27
|
};
|
|
26
|
-
this.color = undefined;
|
|
27
|
-
this.showIcon = undefined;
|
|
28
|
-
this.hideIcon = undefined;
|
|
29
|
-
this.type = 'password';
|
|
30
28
|
}
|
|
31
29
|
/**
|
|
32
30
|
* Whenever the input type changes we need to re-run validation to ensure the password
|
|
@@ -65,16 +63,16 @@ const InputPasswordToggle = class {
|
|
|
65
63
|
const showPasswordIcon = (_a = this.showIcon) !== null && _a !== void 0 ? _a : eye;
|
|
66
64
|
const hidePasswordIcon = (_b = this.hideIcon) !== null && _b !== void 0 ? _b : eyeOff;
|
|
67
65
|
const isPasswordVisible = type === 'text';
|
|
68
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '91bc55664d496fe457518bd112865dd7811d0c17', class: createColorClasses(color, {
|
|
69
67
|
[mode]: true,
|
|
70
|
-
}) }, h("ion-button", { key: '
|
|
68
|
+
}) }, h("ion-button", { key: '99f86e2ee97ffa6dbc74a433df4e22a867889dd7', mode: mode, color: color, fill: "clear", shape: "round", "aria-checked": isPasswordVisible ? 'true' : 'false', "aria-label": "show password", role: "switch", type: "button", onPointerDown: (ev) => {
|
|
71
69
|
/**
|
|
72
70
|
* This prevents mobile browsers from
|
|
73
71
|
* blurring the input when the password toggle
|
|
74
72
|
* button is activated.
|
|
75
73
|
*/
|
|
76
74
|
ev.preventDefault();
|
|
77
|
-
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: '
|
|
75
|
+
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: 'e7656040b08c6a394d56f1fc41d6ca34225287d2', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? hidePasswordIcon : showPasswordIcon }))));
|
|
78
76
|
}
|
|
79
77
|
get el() { return getElement(this); }
|
|
80
78
|
static get watchers() { return {
|
|
@@ -82,8 +80,8 @@ const InputPasswordToggle = class {
|
|
|
82
80
|
}; }
|
|
83
81
|
};
|
|
84
82
|
InputPasswordToggle.style = {
|
|
85
|
-
ios:
|
|
86
|
-
md:
|
|
83
|
+
ios: iosInputPasswordToggleCss,
|
|
84
|
+
md: mdInputPasswordToggleCss
|
|
87
85
|
};
|
|
88
86
|
|
|
89
87
|
export { InputPasswordToggle as ion_input_password_toggle };
|