voyager-ionic-core 8.5.7 → 8.6.1
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 +53 -29
- package/components/buttons.js +14 -4
- package/components/capacitor.js +1 -1
- package/components/checkbox.js +40 -16
- 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/index.js +1 -1
- 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 +25 -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 +222 -131
- 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 +631 -0
- package/components/ion-input-password-toggle.js +11 -13
- package/components/ion-input.js +79 -51
- 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 +8 -5
- 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 -34
- 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 -36
- package/components/ion-thumbnail.js +2 -3
- package/components/ion-toast.js +58 -35
- package/components/ion-toggle.js +55 -24
- 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 +252 -205
- 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 +8 -11
- 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/core.css +1 -1
- package/css/core.css.map +1 -1
- 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-0T7gKwOt.js} +2 -2
- package/dist/cjs/{button-active-43e2b419.js → button-active-C-4ud7Ht.js} +3 -3
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-DmA66EwP.js} +1 -1
- package/dist/cjs/{config-f6225ae7.js → config-U7OAuj53.js} +1 -1
- package/dist/cjs/{data-94e8d392.js → data-DRqa6oM4.js} +30 -5
- package/dist/cjs/{framework-delegate-862d9d00.js → framework-delegate-C7sIJyT5.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-D90qZxju.js} +2 -2
- package/dist/cjs/{helpers-8a48fdea.js → helpers-BITAzJfi.js} +2 -5
- package/dist/cjs/{index-dbe01e08.js → index-BDBT0u4l.js} +3 -3
- 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-CVa6JE57.js} +3 -3
- package/dist/cjs/{index-a96d31ae.js → index-CxfLS2mX.js} +8 -9
- package/dist/cjs/{index-2e236a04.js → index-DODXXb_r.js} +1676 -675
- package/dist/cjs/{index-1eff7149.js → index-y0QaNtCi.js} +6 -7
- package/dist/cjs/index.cjs.js +22 -28
- package/dist/cjs/{input-shims-415be7ee.js → input-shims-D1Mfgd4s.js} +29 -6
- package/dist/cjs/{input.utils-a7957fd6.js → input.utils-DSoBEyUu.js} +3 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +56 -29
- package/dist/cjs/ion-action-sheet.cjs.entry.js +50 -40
- package/dist/cjs/ion-alert.cjs.entry.js +59 -47
- package/dist/cjs/ion-app_8.cjs.entry.js +134 -105
- package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -20
- package/dist/cjs/ion-back-button.cjs.entry.js +21 -26
- package/dist/cjs/ion-backdrop.cjs.entry.js +13 -10
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +39 -37
- package/dist/cjs/ion-button_2.cjs.entry.js +54 -37
- package/dist/cjs/ion-card_5.cjs.entry.js +36 -41
- package/dist/cjs/ion-checkbox.cjs.entry.js +44 -24
- package/dist/cjs/ion-chip.cjs.entry.js +11 -12
- package/dist/cjs/ion-col_3.cjs.entry.js +10 -38
- package/dist/cjs/ion-datetime-button.cjs.entry.js +23 -25
- package/dist/cjs/ion-datetime_3.cjs.entry.js +344 -241
- package/dist/cjs/ion-fab_3.cjs.entry.js +59 -35
- package/dist/cjs/ion-img.cjs.entry.js +4 -13
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +38 -25
- package/dist/cjs/ion-input-otp.cjs.entry.js +593 -0
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +17 -23
- package/dist/cjs/ion-input.cjs.entry.js +86 -62
- package/dist/cjs/ion-item-option_3.cjs.entry.js +40 -37
- package/dist/cjs/ion-item_8.cjs.entry.js +69 -74
- package/dist/cjs/ion-loading.cjs.entry.js +50 -37
- package/dist/cjs/ion-menu_3.cjs.entry.js +84 -63
- package/dist/cjs/ion-modal.cjs.entry.js +271 -228
- package/dist/cjs/ion-nav_2.cjs.entry.js +30 -37
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +24 -15
- package/dist/cjs/ion-picker-column.cjs.entry.js +32 -21
- package/dist/cjs/ion-picker.cjs.entry.js +4 -9
- package/dist/cjs/ion-popover.cjs.entry.js +143 -55
- package/dist/cjs/ion-progress-bar.cjs.entry.js +24 -15
- package/dist/cjs/ion-radio_2.cjs.entry.js +47 -37
- package/dist/cjs/ion-range.cjs.entry.js +78 -42
- package/dist/cjs/ion-refresher_2.cjs.entry.js +81 -41
- package/dist/cjs/ion-reorder_2.cjs.entry.js +19 -23
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +13 -9
- package/dist/cjs/ion-route_4.cjs.entry.js +52 -40
- package/dist/cjs/ion-searchbar.cjs.entry.js +91 -46
- 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 +55 -39
- package/dist/cjs/ion-select-modal.cjs.entry.js +12 -21
- package/dist/cjs/ion-select_3.cjs.entry.js +98 -70
- package/dist/cjs/ion-spinner.cjs.entry.js +12 -17
- package/dist/cjs/ion-split-pane.cjs.entry.js +16 -15
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +31 -36
- package/dist/cjs/ion-tab_2.cjs.entry.js +13 -20
- package/dist/cjs/ion-text.cjs.entry.js +6 -12
- package/dist/cjs/ion-textarea.cjs.entry.js +79 -47
- package/dist/cjs/ion-toast.cjs.entry.js +82 -63
- package/dist/cjs/ion-toggle.cjs.entry.js +64 -37
- package/dist/cjs/ionic.cjs.js +7 -10
- package/dist/cjs/{ios.transition-a131cd4d.js → ios.transition-baEy2tr4.js} +5 -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 +3 -8
- package/dist/cjs/{md.transition-e018ebe5.js → md.transition-Bvc-JrM5.js} +5 -6
- package/dist/cjs/{notch-controller-09b7f358.js → notch-controller-BAbqGXRi.js} +2 -2
- package/dist/cjs/{overlays-4c291a05.js → overlays-DRDumz2b.js} +9 -10
- package/dist/cjs/{status-tap-f1acefac.js → status-tap-Db3WeCkO.js} +3 -4
- package/dist/cjs/{swipe-back-442ca3d7.js → swipe-back-bLyc4PSi.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 +97 -36
- 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 +74 -24
- 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 +323 -147
- 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 +178 -79
- package/dist/collection/components/input-otp/input-otp-interface.js +1 -0
- package/dist/collection/components/input-otp/input-otp.ios.css +381 -0
- package/dist/collection/components/input-otp/input-otp.js +1003 -0
- package/dist/collection/components/input-otp/input-otp.md.css +381 -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 +9 -3
- 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/animations/ios.enter.js +1 -41
- package/dist/collection/components/modal/animations/ios.leave.js +2 -24
- package/dist/collection/components/modal/animations/md.enter.js +2 -42
- package/dist/collection/components/modal/animations/md.leave.js +2 -24
- package/dist/collection/components/modal/gestures/sheet.js +122 -29
- package/dist/collection/components/modal/modal.ios.css +0 -10
- 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 +7 -5
- package/dist/collection/components/popover/popover.js +211 -58
- 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 +146 -51
- 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 -48
- 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 -59
- 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 -28
- package/dist/collection/components/toolbar/toolbar.js +5 -4
- package/dist/collection/utils/input-shims/hacks/scroll-assist.js +23 -0
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +4490 -942
- package/dist/esm/{animation-8b25e105.js → animation-BWcUKtbn.js} +2 -2
- package/dist/esm/{button-active-90f1dbc4.js → button-active-Bxcnevju.js} +3 -3
- package/dist/esm/{capacitor-59395cbd.js → capacitor-CFERIeaU.js} +1 -1
- package/dist/esm/{config-9898ed97.js → config-AaTyISnm.js} +1 -1
- package/dist/esm/{data-0d7ea6eb.js → data-GIsHsYIB.js} +31 -6
- package/dist/esm/{framework-delegate-56b467ad.js → framework-delegate-DxcnWic_.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-DcH0BbDp.js} +2 -2
- package/dist/esm/{helpers-d94bc8ad.js → helpers-1O4D2b7y.js} +3 -6
- package/dist/esm/{index-e2cf2ceb.js → index-BLV6ykCk.js} +2 -1
- package/dist/esm/{index-527b9e34.js → index-B_U9CtaY.js} +1667 -654
- package/dist/esm/{index-9a17db3d.js → index-BlJTBdxG.js} +3 -3
- package/dist/esm/{index-be190feb.js → index-CWbP1eJz.js} +3 -3
- package/dist/esm/{index-39782642.js → index-CfgBF1SE.js} +4 -6
- package/dist/esm/{index-18f31305.js → index-D8sncTHY.js} +5 -6
- package/dist/esm/{index-68c0d151.js → index-DfBA5ztX.js} +4 -5
- package/dist/esm/index.js +16 -18
- package/dist/esm/{input-shims-279903e2.js → input-shims-C3lNp93k.js} +29 -6
- package/dist/esm/{input.utils-40504d6d.js → input.utils-zWijNCrx.js} +3 -3
- package/dist/esm/ion-accordion_2.entry.js +52 -23
- package/dist/esm/ion-action-sheet.entry.js +48 -36
- package/dist/esm/ion-alert.entry.js +53 -39
- package/dist/esm/ion-app_8.entry.js +99 -68
- package/dist/esm/ion-avatar_3.entry.js +8 -16
- package/dist/esm/ion-back-button.entry.js +14 -17
- package/dist/esm/ion-backdrop.entry.js +12 -7
- package/dist/esm/ion-breadcrumb_2.entry.js +37 -33
- package/dist/esm/ion-button_2.entry.js +50 -31
- package/dist/esm/ion-card_5.entry.js +31 -34
- package/dist/esm/ion-checkbox.entry.js +43 -21
- package/dist/esm/ion-chip.entry.js +10 -9
- package/dist/esm/ion-col_3.entry.js +8 -34
- package/dist/esm/ion-datetime-button.entry.js +18 -18
- package/dist/esm/ion-datetime_3.entry.js +279 -174
- package/dist/esm/ion-fab_3.entry.js +56 -30
- package/dist/esm/ion-img.entry.js +3 -10
- package/dist/esm/ion-infinite-scroll_2.entry.js +33 -18
- package/dist/esm/ion-input-otp.entry.js +591 -0
- package/dist/esm/ion-input-password-toggle.entry.js +12 -16
- package/dist/esm/ion-input.entry.js +84 -58
- package/dist/esm/ion-item-option_3.entry.js +36 -31
- package/dist/esm/ion-item_8.entry.js +60 -63
- package/dist/esm/ion-loading.entry.js +46 -31
- package/dist/esm/ion-menu_3.entry.js +66 -43
- package/dist/esm/ion-modal.entry.js +260 -215
- package/dist/esm/ion-nav_2.entry.js +17 -22
- package/dist/esm/ion-picker-column-option.entry.js +23 -12
- package/dist/esm/ion-picker-column.entry.js +29 -16
- package/dist/esm/ion-picker.entry.js +4 -7
- package/dist/esm/ion-popover.entry.js +137 -47
- package/dist/esm/ion-progress-bar.entry.js +22 -11
- package/dist/esm/ion-radio_2.entry.js +45 -33
- package/dist/esm/ion-range.entry.js +72 -34
- package/dist/esm/ion-refresher_2.entry.js +68 -26
- package/dist/esm/ion-reorder_2.entry.js +17 -19
- package/dist/esm/ion-ripple-effect.entry.js +12 -6
- package/dist/esm/ion-route_4.entry.js +35 -21
- package/dist/esm/ion-searchbar.entry.js +86 -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 +50 -32
- package/dist/esm/ion-select-modal.entry.js +12 -19
- package/dist/esm/ion-select_3.entry.js +88 -58
- package/dist/esm/ion-spinner.entry.js +8 -11
- package/dist/esm/ion-split-pane.entry.js +13 -10
- package/dist/esm/ion-tab-bar_2.entry.js +28 -31
- package/dist/esm/ion-tab_2.entry.js +11 -16
- package/dist/esm/ion-text.entry.js +5 -9
- package/dist/esm/ion-textarea.entry.js +77 -43
- package/dist/esm/ion-toast.entry.js +65 -44
- package/dist/esm/ion-toggle.entry.js +62 -33
- package/dist/esm/ionic.js +5 -7
- package/dist/esm/{ios.transition-4047cb68.js → ios.transition-BmXtMRXZ.js} +5 -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 +3 -6
- package/dist/esm/{md.transition-30ce8d1b.js → md.transition-CLI683c7.js} +5 -6
- package/dist/esm/{notch-controller-1a1f7183.js → notch-controller-C5LPspO8.js} +2 -2
- package/dist/esm/{overlays-d99dcb0a.js → overlays-8Y2rA-ps.js} +6 -7
- package/dist/esm/{status-tap-42a8af65.js → status-tap-7t9T91bG.js} +3 -4
- package/dist/esm/{swipe-back-04123e7c.js → swipe-back-D_6Vqlwy.js} +5 -5
- package/dist/html.html-data.json +377 -1
- 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-0fc6fc38.entry.js +4 -0
- package/dist/ionic/p-14ae45e4.entry.js +4 -0
- package/dist/ionic/p-15da9760.entry.js +4 -0
- package/dist/ionic/p-1739f5f2.entry.js +4 -0
- package/dist/ionic/p-18f1813b.entry.js +4 -0
- package/dist/ionic/p-2020aa51.entry.js +4 -0
- package/dist/ionic/p-2c6c6991.entry.js +4 -0
- package/dist/ionic/p-2cfd6b61.entry.js +4 -0
- package/dist/ionic/p-2d01ecd5.entry.js +4 -0
- package/dist/ionic/p-2da6a16b.entry.js +4 -0
- package/dist/ionic/p-3a4feac2.entry.js +4 -0
- package/dist/ionic/p-473877b6.entry.js +4 -0
- package/dist/ionic/p-4b7d1f35.entry.js +4 -0
- package/dist/ionic/p-4d61f20b.entry.js +4 -0
- package/dist/ionic/p-4ddc10ef.entry.js +4 -0
- package/dist/ionic/p-56712fd4.entry.js +4 -0
- package/dist/ionic/p-6b666996.entry.js +4 -0
- package/dist/ionic/p-7149db7e.entry.js +4 -0
- package/dist/ionic/p-73d7ad90.entry.js +4 -0
- package/dist/ionic/p-76b697a3.entry.js +4 -0
- package/dist/ionic/{p-ed005d9c.js → p-7qk7mxdr.js} +1 -1
- package/dist/ionic/p-81f1b778.entry.js +4 -0
- package/dist/ionic/p-8957540a.entry.js +4 -0
- package/dist/ionic/p-8a8ef46b.entry.js +4 -0
- package/dist/ionic/p-8c674371.entry.js +4 -0
- package/dist/ionic/p-8f2f76e0.entry.js +4 -0
- package/dist/ionic/p-91bde659.entry.js +4 -0
- package/dist/ionic/p-96389029.entry.js +4 -0
- package/dist/ionic/p-97667b9c.entry.js +4 -0
- package/dist/ionic/p-9b46b31b.entry.js +4 -0
- package/dist/ionic/p-9e699d4a.entry.js +4 -0
- package/dist/ionic/p-9eeaBrnk.js +4 -0
- package/dist/ionic/p-B1MNHTYX.js +4 -0
- package/dist/ionic/p-B3XSxWNQ.js +4 -0
- package/dist/ionic/{p-da2b833b.js → p-BLV6ykCk.js} +1 -1
- package/dist/ionic/p-BROiNJRB.js +4 -0
- package/dist/ionic/p-B_U9CtaY.js +5 -0
- package/dist/ionic/{p-f08a92cc.js → p-BhLqfMrf.js} +1 -1
- package/dist/ionic/{p-2bb55ebc.js → p-BmQduG8c.js} +1 -1
- package/dist/ionic/p-CIGNaXM1.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-CKvCXMs9.js} +1 -1
- package/dist/ionic/p-CL-KfWxq.js +4 -0
- package/dist/ionic/p-CPgXVSua.js +4 -0
- package/dist/ionic/p-CRiGyYOA.js +4 -0
- package/dist/ionic/{p-10a1bddc.js → p-CbI9XwwW.js} +1 -1
- package/dist/ionic/p-Cl0B-RWe.js +4 -0
- package/dist/ionic/p-CtWGkNnJ.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-D13Eaw-8.js} +1 -1
- package/dist/ionic/{p-0f5e6225.js → p-DCfS5Jk_.js} +1 -1
- package/dist/ionic/p-DgdWETCP.js +4 -0
- package/dist/ionic/p-Do-uqmtX.js +4 -0
- package/dist/ionic/p-DonTxalL.js +4 -0
- package/dist/ionic/{p-b7b1d91a.js → p-DzH0J0yi.js} +1 -1
- package/dist/ionic/p-QwEXyOze.js +4 -0
- package/dist/ionic/p-a6282370.entry.js +4 -0
- package/dist/ionic/p-a9ac80bd.entry.js +4 -0
- package/dist/ionic/p-a9f99c74.entry.js +4 -0
- package/dist/ionic/p-aIxOGKys.js +4 -0
- package/dist/ionic/p-aa8956c2.entry.js +4 -0
- package/dist/ionic/p-b37dbc31.entry.js +4 -0
- package/dist/ionic/p-b9f79efc.entry.js +4 -0
- package/dist/ionic/p-bNmY-WfR.js +4 -0
- package/dist/ionic/p-bb5fc02e.entry.js +4 -0
- package/dist/ionic/p-bc01c127.entry.js +4 -0
- package/dist/ionic/p-bec79123.entry.js +4 -0
- package/dist/ionic/p-c0335397.entry.js +4 -0
- package/dist/ionic/p-c448135a.entry.js +4 -0
- package/dist/ionic/p-c4912ca5.entry.js +4 -0
- package/dist/ionic/p-c884d7e3.entry.js +4 -0
- package/dist/ionic/p-cb787a4b.entry.js +4 -0
- package/dist/ionic/p-cd12ed1c.entry.js +4 -0
- package/dist/ionic/p-cf632ee2.entry.js +4 -0
- package/dist/ionic/p-d8ed5df0.entry.js +4 -0
- package/dist/ionic/p-e1260ed5.entry.js +4 -0
- package/dist/ionic/p-e30ff968.entry.js +4 -0
- package/dist/ionic/{p-b6d324f0.js → p-ei_RiGrl.js} +1 -1
- package/dist/ionic/p-f83db8cd.entry.js +4 -0
- package/dist/ionic/p-fbc5481b.entry.js +4 -0
- package/dist/ionic/p-fcc7437b.entry.js +4 -0
- package/dist/types/components/button/button.d.ts +11 -0
- 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-otp/input-otp-interface.d.ts +21 -0
- package/dist/types/components/input-otp/input-otp.d.ts +268 -0
- package/dist/types/components/searchbar/searchbar.d.ts +1 -1
- package/dist/types/components.d.ts +786 -2
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +29 -1
- package/hydrate/index.d.ts +44 -7
- package/hydrate/index.js +5671 -2585
- package/hydrate/index.mjs +5670 -2584
- 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 +4 -4
- package/dist/cjs/app-globals-ddceb1f4.js +0 -10
- package/dist/cjs/index-cc858e97.js +0 -129
- package/dist/cjs/ionic-global-6dea5a96.js +0 -152
- package/dist/esm/app-globals-dbdbb3df.js +0 -8
- package/dist/esm/index-cfd9c1f2.js +0 -121
- package/dist/esm/ionic-global-b26f573e.js +0 -147
- 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-04123e7c.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-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-0af640d6.entry.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-1706b406.system.entry.js +0 -4
- package/dist/ionic/p-17e21141.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-1a7df1c3.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-200fc491.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-2469240b.entry.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-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-393ffcc2.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-481e0885.entry.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-57d6e18e.entry.js +0 -4
- package/dist/ionic/p-57e55ecb.system.js +0 -4
- package/dist/ionic/p-5b67b447.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-6636a436.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-67cacd6d.entry.js +0 -4
- package/dist/ionic/p-6835ebdd.system.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-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-809483ac.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-8b050e84.system.js +0 -4
- package/dist/ionic/p-8d2d39d0.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-95001a19.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-9e753482.system.entry.js +0 -4
- package/dist/ionic/p-a0fd2fe5.system.entry.js +0 -4
- package/dist/ionic/p-a2c6a9c8.entry.js +0 -4
- package/dist/ionic/p-a2dd5b69.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-a7a97bf4.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-aded71ec.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-b2e7eda0.system.entry.js +0 -4
- package/dist/ionic/p-b445ff65.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-bfb763d0.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-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-dabe3bd4.js +0 -4
- package/dist/ionic/p-df069a0d.entry.js +0 -4
- package/dist/ionic/p-e1678e42.entry.js +0 -4
- package/dist/ionic/p-e6068998.system.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-f08dfb19.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-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,1003 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { Fragment, Host, h } from "@stencil/core";
|
|
5
|
+
import { inheritAriaAttributes } from "../../utils/helpers";
|
|
6
|
+
import { printIonWarning } from "../../utils/logging/index";
|
|
7
|
+
import { isRTL } from "../../utils/rtl/index";
|
|
8
|
+
import { createColorClasses } from "../../utils/theme";
|
|
9
|
+
import { getIonMode } from "../../global/ionic-global";
|
|
10
|
+
export class InputOTP {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.inheritedAttributes = {};
|
|
13
|
+
this.inputRefs = [];
|
|
14
|
+
this.inputId = `ion-input-otp-${inputIds++}`;
|
|
15
|
+
this.parsedSeparators = [];
|
|
16
|
+
/**
|
|
17
|
+
* Tracks whether the user is navigating through input boxes using keyboard navigation
|
|
18
|
+
* (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
|
|
19
|
+
* focus behavior when an input box is focused.
|
|
20
|
+
*/
|
|
21
|
+
this.isKeyboardNavigation = false;
|
|
22
|
+
this.inputValues = [];
|
|
23
|
+
this.hasFocus = false;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
26
|
+
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
27
|
+
*/
|
|
28
|
+
this.autocapitalize = 'off';
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, the user cannot interact with the input.
|
|
31
|
+
*/
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
/**
|
|
34
|
+
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If
|
|
35
|
+
* `"outline"` the input boxes will be transparent with a border.
|
|
36
|
+
*/
|
|
37
|
+
this.fill = 'outline';
|
|
38
|
+
/**
|
|
39
|
+
* The number of input boxes to display.
|
|
40
|
+
*/
|
|
41
|
+
this.length = 4;
|
|
42
|
+
/**
|
|
43
|
+
* If `true`, the user cannot modify the value.
|
|
44
|
+
*/
|
|
45
|
+
this.readonly = false;
|
|
46
|
+
/**
|
|
47
|
+
* The shape of the input boxes.
|
|
48
|
+
* If "round" they will have an increased border radius.
|
|
49
|
+
* If "rectangular" they will have no border radius.
|
|
50
|
+
* If "soft" they will have a soft border radius.
|
|
51
|
+
*/
|
|
52
|
+
this.shape = 'round';
|
|
53
|
+
/**
|
|
54
|
+
* The size of the input boxes.
|
|
55
|
+
*/
|
|
56
|
+
this.size = 'medium';
|
|
57
|
+
/**
|
|
58
|
+
* The type of input allowed in the input boxes.
|
|
59
|
+
*/
|
|
60
|
+
this.type = 'number';
|
|
61
|
+
/**
|
|
62
|
+
* The value of the input group.
|
|
63
|
+
*/
|
|
64
|
+
this.value = '';
|
|
65
|
+
/**
|
|
66
|
+
* Handles the focus behavior for the input OTP component.
|
|
67
|
+
*
|
|
68
|
+
* Focus behavior:
|
|
69
|
+
* 1. Keyboard navigation: Allow normal focus movement
|
|
70
|
+
* 2. Mouse click:
|
|
71
|
+
* - If clicked box has value: Focus that box
|
|
72
|
+
* - If clicked box is empty: Focus first empty box
|
|
73
|
+
*
|
|
74
|
+
* Emits the `ionFocus` event when the input group gains focus.
|
|
75
|
+
*/
|
|
76
|
+
this.onFocus = (index) => (event) => {
|
|
77
|
+
var _a;
|
|
78
|
+
const { inputRefs } = this;
|
|
79
|
+
// Only emit ionFocus and set the focusedValue when the
|
|
80
|
+
// component first gains focus
|
|
81
|
+
if (!this.hasFocus) {
|
|
82
|
+
this.ionFocus.emit(event);
|
|
83
|
+
this.focusedValue = this.value;
|
|
84
|
+
}
|
|
85
|
+
this.hasFocus = true;
|
|
86
|
+
let finalIndex = index;
|
|
87
|
+
if (!this.isKeyboardNavigation) {
|
|
88
|
+
// If the clicked box has a value, focus it
|
|
89
|
+
// Otherwise focus the first empty box
|
|
90
|
+
const targetIndex = this.inputValues[index] ? index : this.getFirstEmptyIndex();
|
|
91
|
+
finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
|
|
92
|
+
// Focus the target box
|
|
93
|
+
(_a = this.inputRefs[finalIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
94
|
+
}
|
|
95
|
+
// Update tabIndexes to match the focused box
|
|
96
|
+
inputRefs.forEach((input, i) => {
|
|
97
|
+
input.tabIndex = i === finalIndex ? 0 : -1;
|
|
98
|
+
});
|
|
99
|
+
// Reset the keyboard navigation flag
|
|
100
|
+
this.isKeyboardNavigation = false;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Handles the blur behavior for the input OTP component.
|
|
104
|
+
* Emits the `ionBlur` event when the input group loses focus.
|
|
105
|
+
*/
|
|
106
|
+
this.onBlur = (event) => {
|
|
107
|
+
const { inputRefs } = this;
|
|
108
|
+
const relatedTarget = event.relatedTarget;
|
|
109
|
+
// Do not emit blur if we're moving to another input box in the same component
|
|
110
|
+
const isInternalFocus = relatedTarget != null && inputRefs.includes(relatedTarget);
|
|
111
|
+
if (!isInternalFocus) {
|
|
112
|
+
this.hasFocus = false;
|
|
113
|
+
// Reset tabIndexes when focus leaves the component
|
|
114
|
+
this.updateTabIndexes();
|
|
115
|
+
// Always emit ionBlur when focus leaves the component
|
|
116
|
+
this.ionBlur.emit(event);
|
|
117
|
+
// Only emit ionChange if the value has actually changed
|
|
118
|
+
if (this.focusedValue !== this.value) {
|
|
119
|
+
this.emitIonChange(event);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Handles keyboard navigation and input for the OTP component.
|
|
125
|
+
*
|
|
126
|
+
* Navigation:
|
|
127
|
+
* - Backspace: Clears current input and moves to previous box if empty
|
|
128
|
+
* - Arrow Left/Right: Moves focus between input boxes
|
|
129
|
+
* - Tab: Allows normal tab navigation between components
|
|
130
|
+
*
|
|
131
|
+
* Input Behavior:
|
|
132
|
+
* - Validates input against the allowed pattern
|
|
133
|
+
* - When entering a key in a filled box:
|
|
134
|
+
* - Shifts existing values right if there is room
|
|
135
|
+
* - Updates the value of the input group
|
|
136
|
+
* - Prevents default behavior to avoid automatic focus shift
|
|
137
|
+
*/
|
|
138
|
+
this.onKeyDown = (index) => (event) => {
|
|
139
|
+
const { length } = this;
|
|
140
|
+
const rtl = isRTL(this.el);
|
|
141
|
+
const input = event.target;
|
|
142
|
+
// Meta shortcuts are used to copy, paste, and select text
|
|
143
|
+
// We don't want to handle these keys here
|
|
144
|
+
const metaShortcuts = ['a', 'c', 'v', 'x', 'r', 'z', 'y'];
|
|
145
|
+
const isTextSelection = input.selectionStart !== input.selectionEnd;
|
|
146
|
+
// Return if the key is a meta shortcut or the input value
|
|
147
|
+
// text is selected and let the onPaste / onInput handler manage it
|
|
148
|
+
if (isTextSelection || ((event.metaKey || event.ctrlKey) && metaShortcuts.includes(event.key.toLowerCase()))) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (event.key === 'Backspace') {
|
|
152
|
+
if (this.inputValues[index]) {
|
|
153
|
+
// Shift all values to the right of the current index left by one
|
|
154
|
+
for (let i = index; i < length - 1; i++) {
|
|
155
|
+
this.inputValues[i] = this.inputValues[i + 1];
|
|
156
|
+
}
|
|
157
|
+
// Clear the last box
|
|
158
|
+
this.inputValues[length - 1] = '';
|
|
159
|
+
// Update all inputRefs to match inputValues
|
|
160
|
+
for (let i = 0; i < length; i++) {
|
|
161
|
+
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
162
|
+
}
|
|
163
|
+
this.updateValue(event);
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
}
|
|
166
|
+
else if (!this.inputValues[index] && index > 0) {
|
|
167
|
+
// If current input is empty, move to previous input
|
|
168
|
+
this.focusPrevious(index);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
172
|
+
this.isKeyboardNavigation = true;
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
const isLeft = event.key === 'ArrowLeft';
|
|
175
|
+
const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
|
|
176
|
+
// Only allow moving to the next input if the current has a value
|
|
177
|
+
if (shouldMoveNext) {
|
|
178
|
+
if (this.inputValues[index] && index < length - 1) {
|
|
179
|
+
this.focusNext(index);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
this.focusPrevious(index);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else if (event.key === 'Tab') {
|
|
187
|
+
this.isKeyboardNavigation = true;
|
|
188
|
+
// Let all tab events proceed normally
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
// If the input box contains a value and the key being
|
|
192
|
+
// entered is a valid key for the input box update the value
|
|
193
|
+
// and shift the values to the right if there is room.
|
|
194
|
+
if (this.inputValues[index] && this.validKeyPattern.test(event.key)) {
|
|
195
|
+
if (!this.inputValues[length - 1]) {
|
|
196
|
+
for (let i = length - 1; i > index; i--) {
|
|
197
|
+
this.inputValues[i] = this.inputValues[i - 1];
|
|
198
|
+
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
this.inputValues[index] = event.key;
|
|
202
|
+
this.inputRefs[index].value = event.key;
|
|
203
|
+
this.updateValue(event);
|
|
204
|
+
// Prevent default to avoid the browser from
|
|
205
|
+
// automatically moving the focus to the next input
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
this.onInput = (index) => (event) => {
|
|
210
|
+
const { length, validKeyPattern } = this;
|
|
211
|
+
const value = event.target.value;
|
|
212
|
+
// If the value is longer than 1 character (autofill), split it into
|
|
213
|
+
// characters and filter out invalid ones
|
|
214
|
+
if (value.length > 1) {
|
|
215
|
+
const validChars = value
|
|
216
|
+
.split('')
|
|
217
|
+
.filter((char) => validKeyPattern.test(char))
|
|
218
|
+
.slice(0, length);
|
|
219
|
+
// If there are no valid characters coming from the
|
|
220
|
+
// autofill, all input refs have to be cleared after the
|
|
221
|
+
// browser has finished the autofill behavior
|
|
222
|
+
if (validChars.length === 0) {
|
|
223
|
+
requestAnimationFrame(() => {
|
|
224
|
+
this.inputRefs.forEach((input) => {
|
|
225
|
+
input.value = '';
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
// Update the value of the input group and emit the input change event
|
|
230
|
+
this.value = validChars.join('');
|
|
231
|
+
this.updateValue(event);
|
|
232
|
+
// Focus the first empty input box or the last input box if all boxes
|
|
233
|
+
// are filled after a small delay to ensure the input boxes have been
|
|
234
|
+
// updated before moving the focus
|
|
235
|
+
setTimeout(() => {
|
|
236
|
+
var _a;
|
|
237
|
+
const nextIndex = validChars.length < length ? validChars.length : length - 1;
|
|
238
|
+
(_a = this.inputRefs[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
239
|
+
}, 20);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
// Only allow input if it matches the pattern
|
|
243
|
+
if (value.length > 0 && !validKeyPattern.test(value)) {
|
|
244
|
+
this.inputRefs[index].value = '';
|
|
245
|
+
this.inputValues[index] = '';
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
// For single character input, fill the current box
|
|
249
|
+
this.inputValues[index] = value;
|
|
250
|
+
this.updateValue(event);
|
|
251
|
+
if (value.length > 0) {
|
|
252
|
+
this.focusNext(index);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Handles pasting text into the input OTP component.
|
|
257
|
+
* This function prevents the default paste behavior and
|
|
258
|
+
* validates the pasted text against the allowed pattern.
|
|
259
|
+
* It then updates the value of the input group and focuses
|
|
260
|
+
* the next empty input after pasting.
|
|
261
|
+
*/
|
|
262
|
+
this.onPaste = (event) => {
|
|
263
|
+
var _a, _b, _c;
|
|
264
|
+
const { inputRefs, length, validKeyPattern } = this;
|
|
265
|
+
event.preventDefault();
|
|
266
|
+
const pastedText = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
267
|
+
// If there is no pasted text, still emit the input change event
|
|
268
|
+
// because this is how the native input element behaves
|
|
269
|
+
// but return early because there is nothing to paste.
|
|
270
|
+
if (!pastedText) {
|
|
271
|
+
this.emitIonInput(event);
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const validChars = pastedText
|
|
275
|
+
.split('')
|
|
276
|
+
.filter((char) => validKeyPattern.test(char))
|
|
277
|
+
.slice(0, length);
|
|
278
|
+
// Always paste starting at the first box
|
|
279
|
+
validChars.forEach((char, index) => {
|
|
280
|
+
if (index < length) {
|
|
281
|
+
this.inputRefs[index].value = char;
|
|
282
|
+
this.inputValues[index] = char;
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
// Update the value so that all input boxes are updated
|
|
286
|
+
this.value = validChars.join('');
|
|
287
|
+
this.updateValue(event);
|
|
288
|
+
// Focus the next empty input after pasting
|
|
289
|
+
// If all boxes are filled, focus the last input
|
|
290
|
+
const nextEmptyIndex = validChars.length;
|
|
291
|
+
if (nextEmptyIndex < length) {
|
|
292
|
+
(_b = inputRefs[nextEmptyIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
(_c = inputRefs[length - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Sets focus to an input box.
|
|
301
|
+
* @param index - The index of the input box to focus (0-based).
|
|
302
|
+
* If provided and the input box has a value, the input box at that index will be focused.
|
|
303
|
+
* Otherwise, the first empty input box or the last input if all are filled will be focused.
|
|
304
|
+
*/
|
|
305
|
+
async setFocus(index) {
|
|
306
|
+
var _a, _b;
|
|
307
|
+
if (typeof index === 'number') {
|
|
308
|
+
const validIndex = Math.max(0, Math.min(index, this.length - 1));
|
|
309
|
+
(_a = this.inputRefs[validIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
const tabbableIndex = this.getTabbableIndex();
|
|
313
|
+
(_b = this.inputRefs[tabbableIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
valueChanged() {
|
|
317
|
+
this.initializeValues();
|
|
318
|
+
this.updateTabIndexes();
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Processes the separators prop into an array of numbers.
|
|
322
|
+
*
|
|
323
|
+
* If the separators prop is not provided, returns an empty array.
|
|
324
|
+
* If the separators prop is 'all', returns an array of all valid positions (1 to length-1).
|
|
325
|
+
* If the separators prop is an array, returns it as is.
|
|
326
|
+
* If the separators prop is a string, splits it by commas and parses each part as a number.
|
|
327
|
+
*
|
|
328
|
+
* If the separators are greater than the input length, it will warn and ignore the separators.
|
|
329
|
+
*/
|
|
330
|
+
processSeparators() {
|
|
331
|
+
const { separators, length } = this;
|
|
332
|
+
if (separators === undefined) {
|
|
333
|
+
this.parsedSeparators = [];
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (typeof separators === 'string' && separators !== 'all') {
|
|
337
|
+
const isValidFormat = /^(\d+)(,\d+)*$/.test(separators);
|
|
338
|
+
if (!isValidFormat) {
|
|
339
|
+
printIonWarning(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${separators}`, this.el);
|
|
340
|
+
this.parsedSeparators = [];
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
let separatorValues;
|
|
345
|
+
if (separators === 'all') {
|
|
346
|
+
separatorValues = Array.from({ length: length - 1 }, (_, i) => i + 1);
|
|
347
|
+
}
|
|
348
|
+
else if (Array.isArray(separators)) {
|
|
349
|
+
separatorValues = separators;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
separatorValues = separators
|
|
353
|
+
.split(',')
|
|
354
|
+
.map((pos) => parseInt(pos, 10))
|
|
355
|
+
.filter((pos) => !isNaN(pos));
|
|
356
|
+
}
|
|
357
|
+
// Check for duplicate separator positions
|
|
358
|
+
const duplicates = separatorValues.filter((pos, index) => separatorValues.indexOf(pos) !== index);
|
|
359
|
+
if (duplicates.length > 0) {
|
|
360
|
+
printIonWarning(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${separators}`, this.el);
|
|
361
|
+
}
|
|
362
|
+
const invalidSeparators = separatorValues.filter((pos) => pos > length);
|
|
363
|
+
if (invalidSeparators.length > 0) {
|
|
364
|
+
printIonWarning(`[ion-input-otp] - The following separator positions are greater than the input length (${length}): ${invalidSeparators.join(', ')}. These separators will be ignored.`, this.el);
|
|
365
|
+
}
|
|
366
|
+
this.parsedSeparators = separatorValues.filter((pos) => pos <= length);
|
|
367
|
+
}
|
|
368
|
+
componentWillLoad() {
|
|
369
|
+
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
370
|
+
this.processSeparators();
|
|
371
|
+
this.initializeValues();
|
|
372
|
+
}
|
|
373
|
+
componentDidLoad() {
|
|
374
|
+
this.updateTabIndexes();
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Get the regex pattern for allowed characters.
|
|
378
|
+
* If a pattern is provided, use it to create a regex pattern
|
|
379
|
+
* Otherwise, use the default regex pattern based on type
|
|
380
|
+
*/
|
|
381
|
+
get validKeyPattern() {
|
|
382
|
+
return new RegExp(`^${this.getPattern()}$`, 'u');
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Gets the string pattern to pass to the input element
|
|
386
|
+
* and use in the regex for allowed characters.
|
|
387
|
+
*/
|
|
388
|
+
getPattern() {
|
|
389
|
+
const { pattern, type } = this;
|
|
390
|
+
if (pattern) {
|
|
391
|
+
return pattern;
|
|
392
|
+
}
|
|
393
|
+
return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]';
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Get the default value for inputmode.
|
|
397
|
+
* If inputmode is provided, use it.
|
|
398
|
+
* Otherwise, use the default inputmode based on type
|
|
399
|
+
*/
|
|
400
|
+
getInputmode() {
|
|
401
|
+
const { inputmode } = this;
|
|
402
|
+
if (inputmode) {
|
|
403
|
+
return inputmode;
|
|
404
|
+
}
|
|
405
|
+
if (this.type == 'number') {
|
|
406
|
+
return 'numeric';
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
return 'text';
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Initializes the input values array based on the current value prop.
|
|
414
|
+
* This splits the value into individual characters and validates them against
|
|
415
|
+
* the allowed pattern. The values are then used as the values in the native
|
|
416
|
+
* input boxes and the value of the input group is updated.
|
|
417
|
+
*/
|
|
418
|
+
initializeValues() {
|
|
419
|
+
// Clear all input values
|
|
420
|
+
this.inputValues = Array(this.length).fill('');
|
|
421
|
+
// If the value is null, undefined, or an empty string, return
|
|
422
|
+
if (this.value == null || String(this.value).length === 0) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
// Split the value into individual characters and validate
|
|
426
|
+
// them against the allowed pattern
|
|
427
|
+
const chars = String(this.value).split('').slice(0, this.length);
|
|
428
|
+
chars.forEach((char, index) => {
|
|
429
|
+
if (this.validKeyPattern.test(char)) {
|
|
430
|
+
this.inputValues[index] = char;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
// Update the value without emitting events
|
|
434
|
+
this.value = this.inputValues.join('');
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Updates the value of the input group.
|
|
438
|
+
* This updates the value of the input group and emits an `ionChange` event.
|
|
439
|
+
* If all of the input boxes are filled, it emits an `ionComplete` event.
|
|
440
|
+
*/
|
|
441
|
+
updateValue(event) {
|
|
442
|
+
const { inputValues, length } = this;
|
|
443
|
+
const newValue = inputValues.join('');
|
|
444
|
+
this.value = newValue;
|
|
445
|
+
this.emitIonInput(event);
|
|
446
|
+
if (newValue.length === length) {
|
|
447
|
+
this.ionComplete.emit({ value: newValue });
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Emits an `ionChange` event.
|
|
452
|
+
* This API should be called for user committed changes.
|
|
453
|
+
* This API should not be used for external value changes.
|
|
454
|
+
*/
|
|
455
|
+
emitIonChange(event) {
|
|
456
|
+
const { value } = this;
|
|
457
|
+
// Checks for both null and undefined values
|
|
458
|
+
const newValue = value == null ? value : value.toString();
|
|
459
|
+
this.ionChange.emit({ value: newValue, event });
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Emits an `ionInput` event.
|
|
463
|
+
* This is used to emit the input value when the user types,
|
|
464
|
+
* backspaces, or pastes.
|
|
465
|
+
*/
|
|
466
|
+
emitIonInput(event) {
|
|
467
|
+
const { value } = this;
|
|
468
|
+
// Checks for both null and undefined values
|
|
469
|
+
const newValue = value == null ? value : value.toString();
|
|
470
|
+
this.ionInput.emit({ value: newValue, event });
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Focuses the next input box.
|
|
474
|
+
*/
|
|
475
|
+
focusNext(currentIndex) {
|
|
476
|
+
var _a;
|
|
477
|
+
const { inputRefs, length } = this;
|
|
478
|
+
if (currentIndex < length - 1) {
|
|
479
|
+
(_a = inputRefs[currentIndex + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Focuses the previous input box.
|
|
484
|
+
*/
|
|
485
|
+
focusPrevious(currentIndex) {
|
|
486
|
+
var _a;
|
|
487
|
+
const { inputRefs } = this;
|
|
488
|
+
if (currentIndex > 0) {
|
|
489
|
+
(_a = inputRefs[currentIndex - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Searches through the input values and returns the index
|
|
494
|
+
* of the first empty input.
|
|
495
|
+
* Returns -1 if all inputs are filled.
|
|
496
|
+
*/
|
|
497
|
+
getFirstEmptyIndex() {
|
|
498
|
+
var _a;
|
|
499
|
+
const { inputValues, length } = this;
|
|
500
|
+
// Create an array of the same length as the input OTP
|
|
501
|
+
// and fill it with the input values
|
|
502
|
+
const values = Array.from({ length }, (_, i) => inputValues[i] || '');
|
|
503
|
+
return (_a = values.findIndex((value) => !value || value === '')) !== null && _a !== void 0 ? _a : -1;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Returns the index of the input that should be tabbed to.
|
|
507
|
+
* If all inputs are filled, returns the last input's index.
|
|
508
|
+
* Otherwise, returns the index of the first empty input.
|
|
509
|
+
*/
|
|
510
|
+
getTabbableIndex() {
|
|
511
|
+
const { length } = this;
|
|
512
|
+
const firstEmptyIndex = this.getFirstEmptyIndex();
|
|
513
|
+
return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Updates the tabIndexes for the input boxes.
|
|
517
|
+
* This is used to ensure that the correct input is
|
|
518
|
+
* focused when the user navigates using the tab key.
|
|
519
|
+
*/
|
|
520
|
+
updateTabIndexes() {
|
|
521
|
+
const { inputRefs, inputValues, length } = this;
|
|
522
|
+
// Find first empty index after any filled boxes
|
|
523
|
+
let firstEmptyIndex = -1;
|
|
524
|
+
for (let i = 0; i < length; i++) {
|
|
525
|
+
if (!inputValues[i] || inputValues[i] === '') {
|
|
526
|
+
firstEmptyIndex = i;
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
// Update tabIndex and aria-hidden for all inputs
|
|
531
|
+
inputRefs.forEach((input, index) => {
|
|
532
|
+
const shouldBeTabbable = firstEmptyIndex === -1 ? index === length - 1 : firstEmptyIndex === index;
|
|
533
|
+
input.tabIndex = shouldBeTabbable ? 0 : -1;
|
|
534
|
+
// If the input is empty and not the first empty input,
|
|
535
|
+
// it should be hidden from screen readers.
|
|
536
|
+
const isEmpty = !inputValues[index] || inputValues[index] === '';
|
|
537
|
+
input.setAttribute('aria-hidden', isEmpty && !shouldBeTabbable ? 'true' : 'false');
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Determines if a separator should be shown for a given index by
|
|
542
|
+
* checking if the index is included in the parsed separators array.
|
|
543
|
+
*/
|
|
544
|
+
showSeparator(index) {
|
|
545
|
+
const { length } = this;
|
|
546
|
+
return this.parsedSeparators.includes(index + 1) && index < length - 1;
|
|
547
|
+
}
|
|
548
|
+
render() {
|
|
549
|
+
var _a, _b;
|
|
550
|
+
const { autocapitalize, color, disabled, el, fill, hasFocus, inheritedAttributes, inputId, inputRefs, inputValues, length, readonly, shape, size, } = this;
|
|
551
|
+
const mode = getIonMode(this);
|
|
552
|
+
const inputmode = this.getInputmode();
|
|
553
|
+
const tabbableIndex = this.getTabbableIndex();
|
|
554
|
+
const pattern = this.getPattern();
|
|
555
|
+
const hasDescription = ((_b = (_a = el.querySelector('.input-otp-description')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== '';
|
|
556
|
+
return (h(Host, { key: 'df8fca036cedea0812185a02e3b655d7d76285e0', class: createColorClasses(color, {
|
|
557
|
+
[mode]: true,
|
|
558
|
+
'has-focus': hasFocus,
|
|
559
|
+
[`input-otp-size-${size}`]: true,
|
|
560
|
+
[`input-otp-shape-${shape}`]: true,
|
|
561
|
+
[`input-otp-fill-${fill}`]: true,
|
|
562
|
+
'input-otp-disabled': disabled,
|
|
563
|
+
'input-otp-readonly': readonly,
|
|
564
|
+
}) }, h("div", Object.assign({ key: '831be3f939cf037f0eb8d7e37e0afd4ef9a3c2c5', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, inheritedAttributes), 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, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && h("div", { class: "input-otp-separator" }))))), h("div", { key: '5311fedc34f7af3efd5f69e5a3d768055119c4f1', class: {
|
|
565
|
+
'input-otp-description': true,
|
|
566
|
+
'input-otp-description-hidden': !hasDescription,
|
|
567
|
+
} }, h("slot", { key: '9e8afa2f7fa76c3092582dc27770fdf565a1b9ba' }))));
|
|
568
|
+
}
|
|
569
|
+
static get is() { return "ion-input-otp"; }
|
|
570
|
+
static get encapsulation() { return "scoped"; }
|
|
571
|
+
static get originalStyleUrls() {
|
|
572
|
+
return {
|
|
573
|
+
"ios": ["input-otp.ios.scss"],
|
|
574
|
+
"md": ["input-otp.md.scss"]
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
static get styleUrls() {
|
|
578
|
+
return {
|
|
579
|
+
"ios": ["input-otp.ios.css"],
|
|
580
|
+
"md": ["input-otp.md.css"]
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
static get properties() {
|
|
584
|
+
return {
|
|
585
|
+
"autocapitalize": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"attribute": "autocapitalize",
|
|
588
|
+
"mutable": false,
|
|
589
|
+
"complexType": {
|
|
590
|
+
"original": "string",
|
|
591
|
+
"resolved": "string",
|
|
592
|
+
"references": {}
|
|
593
|
+
},
|
|
594
|
+
"required": false,
|
|
595
|
+
"optional": false,
|
|
596
|
+
"docs": {
|
|
597
|
+
"tags": [],
|
|
598
|
+
"text": "Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\nAvailable options: `\"off\"`, `\"none\"`, `\"on\"`, `\"sentences\"`, `\"words\"`, `\"characters\"`."
|
|
599
|
+
},
|
|
600
|
+
"getter": false,
|
|
601
|
+
"setter": false,
|
|
602
|
+
"reflect": false,
|
|
603
|
+
"defaultValue": "'off'"
|
|
604
|
+
},
|
|
605
|
+
"color": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"attribute": "color",
|
|
608
|
+
"mutable": false,
|
|
609
|
+
"complexType": {
|
|
610
|
+
"original": "Color",
|
|
611
|
+
"resolved": "\"danger\" | \"dark\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | string & Record<never, never> | undefined",
|
|
612
|
+
"references": {
|
|
613
|
+
"Color": {
|
|
614
|
+
"location": "import",
|
|
615
|
+
"path": "../../interface",
|
|
616
|
+
"id": "src/interface.d.ts::Color"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": true,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": "The color to use from your application's color palette.\nDefault options are: `\"primary\"`, `\"secondary\"`, `\"tertiary\"`, `\"success\"`, `\"warning\"`, `\"danger\"`, `\"light\"`, `\"medium\"`, and `\"dark\"`.\nFor more information on colors, see [theming](/docs/theming/basics)."
|
|
625
|
+
},
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
628
|
+
"reflect": true
|
|
629
|
+
},
|
|
630
|
+
"disabled": {
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"attribute": "disabled",
|
|
633
|
+
"mutable": false,
|
|
634
|
+
"complexType": {
|
|
635
|
+
"original": "boolean",
|
|
636
|
+
"resolved": "boolean",
|
|
637
|
+
"references": {}
|
|
638
|
+
},
|
|
639
|
+
"required": false,
|
|
640
|
+
"optional": false,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [],
|
|
643
|
+
"text": "If `true`, the user cannot interact with the input."
|
|
644
|
+
},
|
|
645
|
+
"getter": false,
|
|
646
|
+
"setter": false,
|
|
647
|
+
"reflect": true,
|
|
648
|
+
"defaultValue": "false"
|
|
649
|
+
},
|
|
650
|
+
"fill": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"attribute": "fill",
|
|
653
|
+
"mutable": false,
|
|
654
|
+
"complexType": {
|
|
655
|
+
"original": "'outline' | 'solid'",
|
|
656
|
+
"resolved": "\"outline\" | \"solid\" | undefined",
|
|
657
|
+
"references": {}
|
|
658
|
+
},
|
|
659
|
+
"required": false,
|
|
660
|
+
"optional": true,
|
|
661
|
+
"docs": {
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": "The fill for the input boxes. If `\"solid\"` the input boxes will have a background. If\n`\"outline\"` the input boxes will be transparent with a border."
|
|
664
|
+
},
|
|
665
|
+
"getter": false,
|
|
666
|
+
"setter": false,
|
|
667
|
+
"reflect": false,
|
|
668
|
+
"defaultValue": "'outline'"
|
|
669
|
+
},
|
|
670
|
+
"inputmode": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"attribute": "inputmode",
|
|
673
|
+
"mutable": false,
|
|
674
|
+
"complexType": {
|
|
675
|
+
"original": "'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'",
|
|
676
|
+
"resolved": "\"decimal\" | \"email\" | \"none\" | \"numeric\" | \"search\" | \"tel\" | \"text\" | \"url\" | undefined",
|
|
677
|
+
"references": {}
|
|
678
|
+
},
|
|
679
|
+
"required": false,
|
|
680
|
+
"optional": true,
|
|
681
|
+
"docs": {
|
|
682
|
+
"tags": [],
|
|
683
|
+
"text": "A hint to the browser for which keyboard to display.\nPossible values: `\"none\"`, `\"text\"`, `\"tel\"`, `\"url\"`,\n`\"email\"`, `\"numeric\"`, `\"decimal\"`, and `\"search\"`.\n\nFor numbers (type=\"number\"): \"numeric\"\nFor text (type=\"text\"): \"text\""
|
|
684
|
+
},
|
|
685
|
+
"getter": false,
|
|
686
|
+
"setter": false,
|
|
687
|
+
"reflect": false
|
|
688
|
+
},
|
|
689
|
+
"length": {
|
|
690
|
+
"type": "number",
|
|
691
|
+
"attribute": "length",
|
|
692
|
+
"mutable": false,
|
|
693
|
+
"complexType": {
|
|
694
|
+
"original": "number",
|
|
695
|
+
"resolved": "number",
|
|
696
|
+
"references": {}
|
|
697
|
+
},
|
|
698
|
+
"required": false,
|
|
699
|
+
"optional": false,
|
|
700
|
+
"docs": {
|
|
701
|
+
"tags": [],
|
|
702
|
+
"text": "The number of input boxes to display."
|
|
703
|
+
},
|
|
704
|
+
"getter": false,
|
|
705
|
+
"setter": false,
|
|
706
|
+
"reflect": false,
|
|
707
|
+
"defaultValue": "4"
|
|
708
|
+
},
|
|
709
|
+
"pattern": {
|
|
710
|
+
"type": "string",
|
|
711
|
+
"attribute": "pattern",
|
|
712
|
+
"mutable": false,
|
|
713
|
+
"complexType": {
|
|
714
|
+
"original": "string",
|
|
715
|
+
"resolved": "string | undefined",
|
|
716
|
+
"references": {}
|
|
717
|
+
},
|
|
718
|
+
"required": false,
|
|
719
|
+
"optional": true,
|
|
720
|
+
"docs": {
|
|
721
|
+
"tags": [],
|
|
722
|
+
"text": "A regex pattern string for allowed characters. Defaults based on type.\n\nFor numbers (`type=\"number\"`): `\"[\\p{N}]\"`\nFor text (`type=\"text\"`): `\"[\\p{L}\\p{N}]\"`"
|
|
723
|
+
},
|
|
724
|
+
"getter": false,
|
|
725
|
+
"setter": false,
|
|
726
|
+
"reflect": false
|
|
727
|
+
},
|
|
728
|
+
"readonly": {
|
|
729
|
+
"type": "boolean",
|
|
730
|
+
"attribute": "readonly",
|
|
731
|
+
"mutable": false,
|
|
732
|
+
"complexType": {
|
|
733
|
+
"original": "boolean",
|
|
734
|
+
"resolved": "boolean",
|
|
735
|
+
"references": {}
|
|
736
|
+
},
|
|
737
|
+
"required": false,
|
|
738
|
+
"optional": false,
|
|
739
|
+
"docs": {
|
|
740
|
+
"tags": [],
|
|
741
|
+
"text": "If `true`, the user cannot modify the value."
|
|
742
|
+
},
|
|
743
|
+
"getter": false,
|
|
744
|
+
"setter": false,
|
|
745
|
+
"reflect": true,
|
|
746
|
+
"defaultValue": "false"
|
|
747
|
+
},
|
|
748
|
+
"separators": {
|
|
749
|
+
"type": "string",
|
|
750
|
+
"attribute": "separators",
|
|
751
|
+
"mutable": false,
|
|
752
|
+
"complexType": {
|
|
753
|
+
"original": "'all' | string | number[]",
|
|
754
|
+
"resolved": "number[] | string | undefined",
|
|
755
|
+
"references": {}
|
|
756
|
+
},
|
|
757
|
+
"required": false,
|
|
758
|
+
"optional": true,
|
|
759
|
+
"docs": {
|
|
760
|
+
"tags": [],
|
|
761
|
+
"text": "Where separators should be shown between input boxes.\nCan be a comma-separated string or an array of numbers.\n\nFor example:\n`\"3\"` will show a separator after the 3rd input box.\n`[1,4]` will show a separator after the 1st and 4th input boxes.\n`\"all\"` will show a separator between every input box."
|
|
762
|
+
},
|
|
763
|
+
"getter": false,
|
|
764
|
+
"setter": false,
|
|
765
|
+
"reflect": false
|
|
766
|
+
},
|
|
767
|
+
"shape": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"attribute": "shape",
|
|
770
|
+
"mutable": false,
|
|
771
|
+
"complexType": {
|
|
772
|
+
"original": "'round' | 'rectangular' | 'soft'",
|
|
773
|
+
"resolved": "\"rectangular\" | \"round\" | \"soft\"",
|
|
774
|
+
"references": {}
|
|
775
|
+
},
|
|
776
|
+
"required": false,
|
|
777
|
+
"optional": false,
|
|
778
|
+
"docs": {
|
|
779
|
+
"tags": [],
|
|
780
|
+
"text": "The shape of the input boxes.\nIf \"round\" they will have an increased border radius.\nIf \"rectangular\" they will have no border radius.\nIf \"soft\" they will have a soft border radius."
|
|
781
|
+
},
|
|
782
|
+
"getter": false,
|
|
783
|
+
"setter": false,
|
|
784
|
+
"reflect": false,
|
|
785
|
+
"defaultValue": "'round'"
|
|
786
|
+
},
|
|
787
|
+
"size": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"attribute": "size",
|
|
790
|
+
"mutable": false,
|
|
791
|
+
"complexType": {
|
|
792
|
+
"original": "'small' | 'medium' | 'large'",
|
|
793
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
794
|
+
"references": {}
|
|
795
|
+
},
|
|
796
|
+
"required": false,
|
|
797
|
+
"optional": false,
|
|
798
|
+
"docs": {
|
|
799
|
+
"tags": [],
|
|
800
|
+
"text": "The size of the input boxes."
|
|
801
|
+
},
|
|
802
|
+
"getter": false,
|
|
803
|
+
"setter": false,
|
|
804
|
+
"reflect": false,
|
|
805
|
+
"defaultValue": "'medium'"
|
|
806
|
+
},
|
|
807
|
+
"type": {
|
|
808
|
+
"type": "string",
|
|
809
|
+
"attribute": "type",
|
|
810
|
+
"mutable": false,
|
|
811
|
+
"complexType": {
|
|
812
|
+
"original": "'text' | 'number'",
|
|
813
|
+
"resolved": "\"number\" | \"text\"",
|
|
814
|
+
"references": {}
|
|
815
|
+
},
|
|
816
|
+
"required": false,
|
|
817
|
+
"optional": false,
|
|
818
|
+
"docs": {
|
|
819
|
+
"tags": [],
|
|
820
|
+
"text": "The type of input allowed in the input boxes."
|
|
821
|
+
},
|
|
822
|
+
"getter": false,
|
|
823
|
+
"setter": false,
|
|
824
|
+
"reflect": false,
|
|
825
|
+
"defaultValue": "'number'"
|
|
826
|
+
},
|
|
827
|
+
"value": {
|
|
828
|
+
"type": "any",
|
|
829
|
+
"attribute": "value",
|
|
830
|
+
"mutable": true,
|
|
831
|
+
"complexType": {
|
|
832
|
+
"original": "string | number | null",
|
|
833
|
+
"resolved": "null | number | string | undefined",
|
|
834
|
+
"references": {}
|
|
835
|
+
},
|
|
836
|
+
"required": false,
|
|
837
|
+
"optional": true,
|
|
838
|
+
"docs": {
|
|
839
|
+
"tags": [],
|
|
840
|
+
"text": "The value of the input group."
|
|
841
|
+
},
|
|
842
|
+
"getter": false,
|
|
843
|
+
"setter": false,
|
|
844
|
+
"reflect": false,
|
|
845
|
+
"defaultValue": "''"
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
static get states() {
|
|
850
|
+
return {
|
|
851
|
+
"inputValues": {},
|
|
852
|
+
"hasFocus": {}
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static get events() {
|
|
856
|
+
return [{
|
|
857
|
+
"method": "ionInput",
|
|
858
|
+
"name": "ionInput",
|
|
859
|
+
"bubbles": true,
|
|
860
|
+
"cancelable": true,
|
|
861
|
+
"composed": true,
|
|
862
|
+
"docs": {
|
|
863
|
+
"tags": [],
|
|
864
|
+
"text": "The `ionInput` event is fired each time the user modifies the input's value.\nUnlike the `ionChange` event, the `ionInput` event is fired for each alteration\nto the input's value. This typically happens for each keystroke as the user types.\n\nFor elements that accept text input (`type=text`, `type=tel`, etc.), the interface\nis [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\nthe interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\nthe input is cleared on edit, the type is `null`."
|
|
865
|
+
},
|
|
866
|
+
"complexType": {
|
|
867
|
+
"original": "InputOtpInputEventDetail",
|
|
868
|
+
"resolved": "InputOtpInputEventDetail",
|
|
869
|
+
"references": {
|
|
870
|
+
"InputOtpInputEventDetail": {
|
|
871
|
+
"location": "import",
|
|
872
|
+
"path": "./input-otp-interface",
|
|
873
|
+
"id": "src/components/input-otp/input-otp-interface.ts::InputOtpInputEventDetail"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}, {
|
|
878
|
+
"method": "ionChange",
|
|
879
|
+
"name": "ionChange",
|
|
880
|
+
"bubbles": true,
|
|
881
|
+
"cancelable": true,
|
|
882
|
+
"composed": true,
|
|
883
|
+
"docs": {
|
|
884
|
+
"tags": [],
|
|
885
|
+
"text": "The `ionChange` event is fired when the user modifies the input's value.\nUnlike the `ionInput` event, the `ionChange` event is only fired when changes\nare committed, not as the user types.\n\nThe `ionChange` event fires when the `<ion-input-otp>` component loses\nfocus after its value has changed.\n\nThis event will not emit when programmatically setting the `value` property."
|
|
886
|
+
},
|
|
887
|
+
"complexType": {
|
|
888
|
+
"original": "InputOtpChangeEventDetail",
|
|
889
|
+
"resolved": "InputOtpChangeEventDetail",
|
|
890
|
+
"references": {
|
|
891
|
+
"InputOtpChangeEventDetail": {
|
|
892
|
+
"location": "import",
|
|
893
|
+
"path": "./input-otp-interface",
|
|
894
|
+
"id": "src/components/input-otp/input-otp-interface.ts::InputOtpChangeEventDetail"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}, {
|
|
899
|
+
"method": "ionComplete",
|
|
900
|
+
"name": "ionComplete",
|
|
901
|
+
"bubbles": true,
|
|
902
|
+
"cancelable": true,
|
|
903
|
+
"composed": true,
|
|
904
|
+
"docs": {
|
|
905
|
+
"tags": [],
|
|
906
|
+
"text": "Emitted when all input boxes have been filled with valid values."
|
|
907
|
+
},
|
|
908
|
+
"complexType": {
|
|
909
|
+
"original": "InputOtpCompleteEventDetail",
|
|
910
|
+
"resolved": "InputOtpCompleteEventDetail",
|
|
911
|
+
"references": {
|
|
912
|
+
"InputOtpCompleteEventDetail": {
|
|
913
|
+
"location": "import",
|
|
914
|
+
"path": "./input-otp-interface",
|
|
915
|
+
"id": "src/components/input-otp/input-otp-interface.ts::InputOtpCompleteEventDetail"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}, {
|
|
920
|
+
"method": "ionBlur",
|
|
921
|
+
"name": "ionBlur",
|
|
922
|
+
"bubbles": true,
|
|
923
|
+
"cancelable": true,
|
|
924
|
+
"composed": true,
|
|
925
|
+
"docs": {
|
|
926
|
+
"tags": [],
|
|
927
|
+
"text": "Emitted when the input group loses focus."
|
|
928
|
+
},
|
|
929
|
+
"complexType": {
|
|
930
|
+
"original": "FocusEvent",
|
|
931
|
+
"resolved": "FocusEvent",
|
|
932
|
+
"references": {
|
|
933
|
+
"FocusEvent": {
|
|
934
|
+
"location": "global",
|
|
935
|
+
"id": "global::FocusEvent"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}, {
|
|
940
|
+
"method": "ionFocus",
|
|
941
|
+
"name": "ionFocus",
|
|
942
|
+
"bubbles": true,
|
|
943
|
+
"cancelable": true,
|
|
944
|
+
"composed": true,
|
|
945
|
+
"docs": {
|
|
946
|
+
"tags": [],
|
|
947
|
+
"text": "Emitted when the input group has focus."
|
|
948
|
+
},
|
|
949
|
+
"complexType": {
|
|
950
|
+
"original": "FocusEvent",
|
|
951
|
+
"resolved": "FocusEvent",
|
|
952
|
+
"references": {
|
|
953
|
+
"FocusEvent": {
|
|
954
|
+
"location": "global",
|
|
955
|
+
"id": "global::FocusEvent"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}];
|
|
960
|
+
}
|
|
961
|
+
static get methods() {
|
|
962
|
+
return {
|
|
963
|
+
"setFocus": {
|
|
964
|
+
"complexType": {
|
|
965
|
+
"signature": "(index?: number) => Promise<void>",
|
|
966
|
+
"parameters": [{
|
|
967
|
+
"name": "index",
|
|
968
|
+
"type": "number | undefined",
|
|
969
|
+
"docs": "- The index of the input box to focus (0-based).\nIf provided and the input box has a value, the input box at that index will be focused.\nOtherwise, the first empty input box or the last input if all are filled will be focused."
|
|
970
|
+
}],
|
|
971
|
+
"references": {
|
|
972
|
+
"Promise": {
|
|
973
|
+
"location": "global",
|
|
974
|
+
"id": "global::Promise"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"return": "Promise<void>"
|
|
978
|
+
},
|
|
979
|
+
"docs": {
|
|
980
|
+
"text": "Sets focus to an input box.",
|
|
981
|
+
"tags": [{
|
|
982
|
+
"name": "param",
|
|
983
|
+
"text": "index - The index of the input box to focus (0-based).\nIf provided and the input box has a value, the input box at that index will be focused.\nOtherwise, the first empty input box or the last input if all are filled will be focused."
|
|
984
|
+
}]
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
static get elementRef() { return "el"; }
|
|
990
|
+
static get watchers() {
|
|
991
|
+
return [{
|
|
992
|
+
"propName": "value",
|
|
993
|
+
"methodName": "valueChanged"
|
|
994
|
+
}, {
|
|
995
|
+
"propName": "separators",
|
|
996
|
+
"methodName": "processSeparators"
|
|
997
|
+
}, {
|
|
998
|
+
"propName": "length",
|
|
999
|
+
"methodName": "processSeparators"
|
|
1000
|
+
}];
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
let inputIds = 0;
|