@ionic/core 8.5.7-dev.11747858611.1d1dc603 → 8.5.7-dev.11747949628.1b740070
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-input-password-toggle.js +3 -3
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +2 -2
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/modal.js +4 -4
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/{app-globals-DvwumQAI.js → app-globals-CWtQHdcK.js} +1 -1
- package/dist/cjs/{button-active-Du_YCFSd.js → button-active-BzpKQ5zN.js} +1 -1
- package/dist/cjs/{index-QuFS9UpQ.js → index-C6GLB0dQ.js} +3 -3
- package/dist/cjs/{index-DCB2XSaQ.js → index-CrE5792q.js} +1 -1
- package/dist/cjs/{index-B6-BlKCh.js → index-qOuhvt-6.js} +0 -4
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +9 -9
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +5 -5
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +14 -14
- package/dist/cjs/ion-loading.cjs.entry.js +5 -5
- package/dist/cjs/ion-menu_3.cjs.entry.js +10 -10
- package/dist/cjs/ion-modal.cjs.entry.js +8 -8
- package/dist/cjs/ion-nav_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -4
- package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +6 -6
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-range.cjs.entry.js +5 -5
- package/dist/cjs/ion-refresher_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -6
- package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +3 -3
- package/dist/cjs/ion-segment_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-select-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-spinner.cjs.entry.js +3 -3
- package/dist/cjs/ion-split-pane.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-tab_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-text.cjs.entry.js +4 -4
- package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
- package/dist/cjs/ion-toast.cjs.entry.js +5 -5
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -5
- package/dist/cjs/{ionic-global-C3I6b0Is.js → ionic-global-BC3ee-Wa.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-CL8Q2_Bi.js → ios.transition-C9J4bBGV.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-D1Ast6la.js → md.transition-DT8PB4eS.js} +2 -2
- package/dist/cjs/{overlays-Ci3nLg5M.js → overlays-B4rlyxhY.js} +1 -1
- package/dist/cjs/{status-tap-Bx_wzOTo.js → status-tap-B8fjNFjq.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +4 -4
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -907
- package/dist/esm/{app-globals-C74-VMUb.js → app-globals-Ts_E1ch0.js} +1 -1
- package/dist/esm/{button-active-DRCPpzqj.js → button-active-BQqkZ_sm.js} +1 -1
- package/dist/esm/{index-lgeUQ6qY.js → index-B83thFnh.js} +3 -3
- package/dist/esm/{index-3GtB1kQI.js → index-EP3pwcdb.js} +1 -4
- package/dist/esm/{index-lp0kQfoC.js → index-RyWq7qIc.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +9 -9
- package/dist/esm/ion-avatar_3.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +7 -7
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +5 -5
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +6 -6
- package/dist/esm/ion-item_8.entry.js +14 -14
- package/dist/esm/ion-loading.entry.js +5 -5
- package/dist/esm/ion-menu_3.entry.js +10 -10
- package/dist/esm/ion-modal.entry.js +8 -8
- package/dist/esm/ion-nav_2.entry.js +5 -5
- package/dist/esm/ion-picker-column-option.entry.js +4 -4
- package/dist/esm/ion-picker-column.entry.js +2 -2
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +6 -6
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +6 -6
- package/dist/esm/ion-range.entry.js +5 -5
- package/dist/esm/ion-refresher_2.entry.js +4 -4
- package/dist/esm/ion-reorder_2.entry.js +4 -4
- package/dist/esm/ion-ripple-effect.entry.js +3 -3
- package/dist/esm/ion-route_4.entry.js +4 -4
- package/dist/esm/ion-searchbar.entry.js +6 -6
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +3 -3
- package/dist/esm/ion-segment_2.entry.js +6 -6
- package/dist/esm/ion-select-modal.entry.js +4 -4
- package/dist/esm/ion-select_3.entry.js +7 -7
- package/dist/esm/ion-spinner.entry.js +3 -3
- package/dist/esm/ion-split-pane.entry.js +4 -4
- package/dist/esm/ion-tab-bar_2.entry.js +6 -6
- package/dist/esm/ion-tab_2.entry.js +4 -4
- package/dist/esm/ion-text.entry.js +4 -4
- package/dist/esm/ion-textarea.entry.js +4 -4
- package/dist/esm/ion-toast.entry.js +5 -5
- package/dist/esm/ion-toggle.entry.js +5 -5
- package/dist/esm/{ionic-global-Dw-MNnQB.js → ionic-global-DapnXdYs.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-Doo_7Vid.js → ios.transition-DN6Dy4K4.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-BbcCfRk9.js → md.transition-DR8zuFnL.js} +2 -2
- package/dist/esm/{overlays-Pn0MyOv4.js → overlays-Blhb_0oI.js} +1 -1
- package/dist/esm/{status-tap-Cn5uETrs.js → status-tap-CZEjiztV.js} +1 -1
- package/dist/html.html-data.json +0 -160
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-14d26301.entry.js → p-030daf32.entry.js} +1 -1
- package/dist/ionic/{p-f331dda5.entry.js → p-0434efbb.entry.js} +1 -1
- package/dist/ionic/p-07a47eb6.entry.js +4 -0
- package/dist/ionic/{p-43f012a4.entry.js → p-08232f2d.entry.js} +1 -1
- package/dist/ionic/{p-ff88b250.entry.js → p-0c2a069d.entry.js} +1 -1
- package/dist/ionic/{p-2e42fa68.entry.js → p-112af08b.entry.js} +1 -1
- package/dist/ionic/{p-1e9ea564.entry.js → p-12b44c66.entry.js} +1 -1
- package/dist/ionic/{p-e83ead65.entry.js → p-1a19090e.entry.js} +1 -1
- package/dist/ionic/{p-2517fcdf.entry.js → p-306eab7a.entry.js} +1 -1
- package/dist/ionic/{p-6bd192d8.entry.js → p-38598652.entry.js} +1 -1
- package/dist/ionic/{p-0bcd3299.entry.js → p-38921e2f.entry.js} +1 -1
- package/dist/ionic/{p-b18a4590.entry.js → p-38dcbd40.entry.js} +1 -1
- package/dist/ionic/{p-1da92348.entry.js → p-3edb2346.entry.js} +1 -1
- package/dist/ionic/{p-cde545fa.entry.js → p-4119d144.entry.js} +1 -1
- package/dist/ionic/{p-9c7d7711.entry.js → p-46a1ce99.entry.js} +1 -1
- package/dist/ionic/{p-8d7afec5.entry.js → p-46c15fe2.entry.js} +1 -1
- package/dist/ionic/p-46f82b82.entry.js +4 -0
- package/dist/ionic/{p-a20a15cc.entry.js → p-484073b5.entry.js} +1 -1
- package/dist/ionic/{p-98f759e4.entry.js → p-49122d48.entry.js} +1 -1
- package/dist/ionic/{p-592db4a8.entry.js → p-4a5cf7ac.entry.js} +1 -1
- package/dist/ionic/p-5459e444.entry.js +4 -0
- package/dist/ionic/{p-a22fe54d.entry.js → p-5b8abc2f.entry.js} +1 -1
- package/dist/ionic/{p-96d912f5.entry.js → p-5fb997f8.entry.js} +1 -1
- package/dist/ionic/{p-29186993.entry.js → p-61f52724.entry.js} +1 -1
- package/dist/ionic/{p-2c6931ed.entry.js → p-89e3b3c6.entry.js} +1 -1
- package/dist/ionic/{p-e5495b3b.entry.js → p-8dda7cd4.entry.js} +1 -1
- package/dist/ionic/{p-920540c6.entry.js → p-93996b12.entry.js} +1 -1
- package/dist/ionic/{p-178084cb.entry.js → p-94375099.entry.js} +1 -1
- package/dist/ionic/{p-fb714eec.entry.js → p-99c93730.entry.js} +1 -1
- package/dist/ionic/{p-0bc3d6d0.entry.js → p-9a0bde6e.entry.js} +1 -1
- package/dist/ionic/{p-DYqTiW2v.js → p-BSMFLyVh.js} +1 -1
- package/dist/ionic/{p-wsLGfiE0.js → p-CgRZM5_E.js} +1 -1
- package/dist/ionic/p-CqNf-A5G.js +4 -0
- package/dist/ionic/{p-BBMlbfDQ.js → p-DCstKNei.js} +1 -1
- package/dist/ionic/{p-CjUUcfjC.js → p-DPhSdjFK.js} +1 -1
- package/dist/ionic/{p-CuVupNFU.js → p-Dnc554yu.js} +1 -1
- package/dist/ionic/{p-3GtB1kQI.js → p-EP3pwcdb.js} +2 -2
- package/dist/ionic/p-EglNvYQn.js +4 -0
- package/dist/ionic/{p-BC2IYr2c.js → p-LpklIrOy.js} +1 -1
- package/dist/ionic/{p-CGyDG2ar.js → p-Uz6zKimy.js} +1 -1
- package/dist/ionic/{p-ed36aee8.entry.js → p-a178af33.entry.js} +1 -1
- package/dist/ionic/{p-c1b0e3b6.entry.js → p-a26637b1.entry.js} +1 -1
- package/dist/ionic/{p-e2d9c488.entry.js → p-a4bcf305.entry.js} +1 -1
- package/dist/ionic/{p-691fa8c7.entry.js → p-a9997b1b.entry.js} +1 -1
- package/dist/ionic/{p-eec040ff.entry.js → p-ade7bda6.entry.js} +1 -1
- package/dist/ionic/{p-bc84650a.entry.js → p-aeb7297a.entry.js} +1 -1
- package/dist/ionic/{p-250c972f.entry.js → p-b2b0f539.entry.js} +1 -1
- package/dist/ionic/{p-3fa87259.entry.js → p-bc9feb4b.entry.js} +1 -1
- package/dist/ionic/{p-99cc16fb.entry.js → p-c19bc276.entry.js} +1 -1
- package/dist/ionic/{p-fd156864.entry.js → p-c3abde95.entry.js} +1 -1
- package/dist/ionic/{p-832b6c90.entry.js → p-c9bca536.entry.js} +1 -1
- package/dist/ionic/{p-d4742f5c.entry.js → p-ce26cd7d.entry.js} +1 -1
- package/dist/ionic/{p-f35cb090.entry.js → p-d77d0b41.entry.js} +1 -1
- package/dist/ionic/{p-7a6c96ca.entry.js → p-d887000e.entry.js} +1 -1
- package/dist/ionic/{p-05427be9.entry.js → p-d9c08f93.entry.js} +1 -1
- package/dist/ionic/{p-3ca63859.entry.js → p-e2e4b1f1.entry.js} +1 -1
- package/dist/ionic/{p-da105dce.entry.js → p-e426331f.entry.js} +1 -1
- package/dist/ionic/{p-9262223a.entry.js → p-e471e1e5.entry.js} +1 -1
- package/dist/ionic/{p-ee504ce4.entry.js → p-e5e82fa5.entry.js} +1 -1
- package/dist/ionic/{p-2438054c.entry.js → p-f0c5ea4c.entry.js} +1 -1
- package/dist/ionic/{p-5756b724.entry.js → p-ff362ebc.entry.js} +1 -1
- package/dist/types/components.d.ts +0 -167
- package/dist/types/interface.d.ts +0 -1
- package/hydrate/index.js +99 -688
- package/hydrate/index.mjs +99 -688
- package/package.json +1 -1
- package/components/ion-input-otp.d.ts +0 -11
- package/components/ion-input-otp.js +0 -608
- package/dist/cjs/ion-input-otp.cjs.entry.js +0 -571
- package/dist/collection/components/input-otp/input-otp-interface.js +0 -1
- package/dist/collection/components/input-otp/input-otp.ios.css +0 -377
- package/dist/collection/components/input-otp/input-otp.js +0 -996
- package/dist/collection/components/input-otp/input-otp.md.css +0 -377
- package/dist/esm/ion-input-otp.entry.js +0 -569
- package/dist/ionic/p-1fe35f29.entry.js +0 -4
- package/dist/ionic/p-58f92c36.entry.js +0 -4
- package/dist/ionic/p-8c496d65.entry.js +0 -4
- package/dist/ionic/p-B7Khsp7D.js +0 -4
- package/dist/ionic/p-CO_y91jJ.js +0 -4
- package/dist/ionic/p-bf6b00ab.entry.js +0 -4
- package/dist/types/components/input-otp/input-otp-interface.d.ts +0 -21
- package/dist/types/components/input-otp/input-otp.d.ts +0 -270
package/hydrate/index.mjs
CHANGED
|
@@ -2872,9 +2872,6 @@ var setContentReference = (elm) => {
|
|
|
2872
2872
|
contentRefElm["s-cn"] = true;
|
|
2873
2873
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2874
2874
|
};
|
|
2875
|
-
|
|
2876
|
-
// src/runtime/fragment.ts
|
|
2877
|
-
var Fragment = (_, children) => children;
|
|
2878
2875
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2879
2876
|
if (listeners && win$2.document) {
|
|
2880
2877
|
listeners.map(([flags, name, method]) => {
|
|
@@ -16412,7 +16409,7 @@ class Input {
|
|
|
16412
16409
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
16413
16410
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
16414
16411
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
16415
|
-
this.inputId = `ion-input-${inputIds
|
|
16412
|
+
this.inputId = `ion-input-${inputIds++}`;
|
|
16416
16413
|
this.helperTextId = `${this.inputId}-helper-text`;
|
|
16417
16414
|
this.errorTextId = `${this.inputId}-error-text`;
|
|
16418
16415
|
this.inheritedAttributes = {};
|
|
@@ -16943,591 +16940,6 @@ class Input {
|
|
|
16943
16940
|
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
16944
16941
|
}; }
|
|
16945
16942
|
}
|
|
16946
|
-
let inputIds$1 = 0;
|
|
16947
|
-
|
|
16948
|
-
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))))}";
|
|
16949
|
-
|
|
16950
|
-
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))}";
|
|
16951
|
-
|
|
16952
|
-
class InputOTP {
|
|
16953
|
-
constructor(hostRef) {
|
|
16954
|
-
registerInstance(this, hostRef);
|
|
16955
|
-
this.ionInput = createEvent(this, "ionInput", 7);
|
|
16956
|
-
this.ionChange = createEvent(this, "ionChange", 7);
|
|
16957
|
-
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
16958
|
-
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
16959
|
-
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
16960
|
-
this.inputRefs = [];
|
|
16961
|
-
this.inputId = `ion-input-otp-${inputIds++}`;
|
|
16962
|
-
this.parsedSeparators = [];
|
|
16963
|
-
/**
|
|
16964
|
-
* Tracks whether the user is navigating through input boxes using keyboard navigation
|
|
16965
|
-
* (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
|
|
16966
|
-
* focus behavior when an input box is focused.
|
|
16967
|
-
*/
|
|
16968
|
-
this.isKeyboardNavigation = false;
|
|
16969
|
-
this.inputValues = [];
|
|
16970
|
-
this.hasFocus = false;
|
|
16971
|
-
/**
|
|
16972
|
-
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
16973
|
-
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
16974
|
-
*/
|
|
16975
|
-
this.autocapitalize = 'off';
|
|
16976
|
-
/**
|
|
16977
|
-
* If `true`, the user cannot interact with the input.
|
|
16978
|
-
*/
|
|
16979
|
-
this.disabled = false;
|
|
16980
|
-
/**
|
|
16981
|
-
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If
|
|
16982
|
-
* `"outline"` the input boxes will be transparent with a border.
|
|
16983
|
-
*/
|
|
16984
|
-
this.fill = 'outline';
|
|
16985
|
-
/**
|
|
16986
|
-
* The number of input boxes to display.
|
|
16987
|
-
*/
|
|
16988
|
-
this.length = 4;
|
|
16989
|
-
/**
|
|
16990
|
-
* If `true`, the user cannot modify the value.
|
|
16991
|
-
*/
|
|
16992
|
-
this.readonly = false;
|
|
16993
|
-
/**
|
|
16994
|
-
* The size of the input boxes.
|
|
16995
|
-
*/
|
|
16996
|
-
this.size = 'medium';
|
|
16997
|
-
/**
|
|
16998
|
-
* The shape of the input boxes.
|
|
16999
|
-
* If "round" they will have an increased border radius.
|
|
17000
|
-
* If "rectangular" they will have no border radius.
|
|
17001
|
-
* If "soft" they will have a soft border radius.
|
|
17002
|
-
*/
|
|
17003
|
-
this.shape = 'round';
|
|
17004
|
-
/**
|
|
17005
|
-
* The type of input allowed in the input boxes.
|
|
17006
|
-
*/
|
|
17007
|
-
this.type = 'number';
|
|
17008
|
-
/**
|
|
17009
|
-
* The value of the input group.
|
|
17010
|
-
*/
|
|
17011
|
-
this.value = '';
|
|
17012
|
-
this.onInput = (index) => (event) => {
|
|
17013
|
-
const { validKeyPattern } = this;
|
|
17014
|
-
const value = event.target.value;
|
|
17015
|
-
// Only allow input if it's a single character and matches the pattern
|
|
17016
|
-
if (value.length > 1 || (value.length > 0 && !validKeyPattern.test(value))) {
|
|
17017
|
-
// Reset the input value if not valid
|
|
17018
|
-
this.inputRefs[index].value = '';
|
|
17019
|
-
this.inputValues[index] = '';
|
|
17020
|
-
return;
|
|
17021
|
-
}
|
|
17022
|
-
// Find the first empty box before or at the current index
|
|
17023
|
-
let targetIndex = index;
|
|
17024
|
-
for (let i = 0; i < index; i++) {
|
|
17025
|
-
if (!this.inputValues[i] || this.inputValues[i] === '') {
|
|
17026
|
-
targetIndex = i;
|
|
17027
|
-
break;
|
|
17028
|
-
}
|
|
17029
|
-
}
|
|
17030
|
-
// Set the value at the target index
|
|
17031
|
-
this.inputValues[targetIndex] = value;
|
|
17032
|
-
// If the value was entered in a later box, clear the current box
|
|
17033
|
-
if (targetIndex !== index) {
|
|
17034
|
-
this.inputRefs[index].value = '';
|
|
17035
|
-
}
|
|
17036
|
-
if (value.length > 0) {
|
|
17037
|
-
this.focusNext(targetIndex);
|
|
17038
|
-
}
|
|
17039
|
-
this.updateValue(event);
|
|
17040
|
-
};
|
|
17041
|
-
/**
|
|
17042
|
-
* Handles keyboard navigation and input for the OTP component.
|
|
17043
|
-
*
|
|
17044
|
-
* Navigation:
|
|
17045
|
-
* - Backspace: Clears current input and moves to previous box if empty
|
|
17046
|
-
* - Arrow Left/Right: Moves focus between input boxes
|
|
17047
|
-
* - Tab: Allows normal tab navigation between components
|
|
17048
|
-
*
|
|
17049
|
-
* Input Behavior:
|
|
17050
|
-
* - Validates input against the allowed pattern
|
|
17051
|
-
* - When entering a key in a filled box:
|
|
17052
|
-
* - Shifts existing values right if there is room
|
|
17053
|
-
* - Updates the value of the input group
|
|
17054
|
-
* - Prevents default behavior to avoid automatic focus shift
|
|
17055
|
-
*/
|
|
17056
|
-
this.onKeyDown = (index) => (event) => {
|
|
17057
|
-
const { length } = this;
|
|
17058
|
-
const rtl = isRTL$1(this.el);
|
|
17059
|
-
const input = event.target;
|
|
17060
|
-
const isPasteShortcut = (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'v';
|
|
17061
|
-
const isTextSelection = input.selectionStart !== input.selectionEnd;
|
|
17062
|
-
// Return if the key is the paste shortcut or the input value
|
|
17063
|
-
// text is selected and let the onPaste / onInput handler manage it
|
|
17064
|
-
if (isPasteShortcut || isTextSelection) {
|
|
17065
|
-
return;
|
|
17066
|
-
}
|
|
17067
|
-
if (event.key === 'Backspace') {
|
|
17068
|
-
if (this.inputValues[index]) {
|
|
17069
|
-
// Shift all values to the right of the current index left by one
|
|
17070
|
-
for (let i = index; i < length - 1; i++) {
|
|
17071
|
-
this.inputValues[i] = this.inputValues[i + 1];
|
|
17072
|
-
}
|
|
17073
|
-
// Clear the last box
|
|
17074
|
-
this.inputValues[length - 1] = '';
|
|
17075
|
-
// Update all inputRefs to match inputValues
|
|
17076
|
-
for (let i = 0; i < length; i++) {
|
|
17077
|
-
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
17078
|
-
}
|
|
17079
|
-
this.updateValue(event);
|
|
17080
|
-
event.preventDefault();
|
|
17081
|
-
}
|
|
17082
|
-
else if (!this.inputValues[index] && index > 0) {
|
|
17083
|
-
// If current input is empty, move to previous input
|
|
17084
|
-
this.focusPrevious(index);
|
|
17085
|
-
}
|
|
17086
|
-
}
|
|
17087
|
-
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
17088
|
-
this.isKeyboardNavigation = true;
|
|
17089
|
-
event.preventDefault();
|
|
17090
|
-
const isLeft = event.key === 'ArrowLeft';
|
|
17091
|
-
const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
|
|
17092
|
-
// Only allow moving to the next input if the current has a value
|
|
17093
|
-
if (shouldMoveNext) {
|
|
17094
|
-
if (this.inputValues[index] && index < length - 1) {
|
|
17095
|
-
this.focusNext(index);
|
|
17096
|
-
}
|
|
17097
|
-
}
|
|
17098
|
-
else {
|
|
17099
|
-
this.focusPrevious(index);
|
|
17100
|
-
}
|
|
17101
|
-
}
|
|
17102
|
-
else if (event.key === 'Tab') {
|
|
17103
|
-
this.isKeyboardNavigation = true;
|
|
17104
|
-
// Let all tab events proceed normally
|
|
17105
|
-
return;
|
|
17106
|
-
}
|
|
17107
|
-
// If the input box contains a value and the key being
|
|
17108
|
-
// entered is a valid key for the input box update the value
|
|
17109
|
-
// and shift the values to the right if there is room.
|
|
17110
|
-
if (this.inputValues[index] && this.validKeyPattern.test(event.key)) {
|
|
17111
|
-
if (!this.inputValues[length - 1]) {
|
|
17112
|
-
for (let i = length - 1; i > index; i--) {
|
|
17113
|
-
this.inputValues[i] = this.inputValues[i - 1];
|
|
17114
|
-
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
17115
|
-
}
|
|
17116
|
-
}
|
|
17117
|
-
this.inputValues[index] = event.key;
|
|
17118
|
-
this.inputRefs[index].value = event.key;
|
|
17119
|
-
this.updateValue(event);
|
|
17120
|
-
// Prevent default to avoid the browser from
|
|
17121
|
-
// automatically moving the focus to the next input
|
|
17122
|
-
event.preventDefault();
|
|
17123
|
-
}
|
|
17124
|
-
};
|
|
17125
|
-
/**
|
|
17126
|
-
* Handles pasting text into the input OTP component.
|
|
17127
|
-
* This function prevents the default paste behavior and
|
|
17128
|
-
* validates the pasted text against the allowed pattern.
|
|
17129
|
-
* It then updates the value of the input group and focuses
|
|
17130
|
-
* the next empty input after pasting.
|
|
17131
|
-
*/
|
|
17132
|
-
this.onPaste = (event) => {
|
|
17133
|
-
var _a, _b, _c;
|
|
17134
|
-
const { inputRefs, length, validKeyPattern } = this;
|
|
17135
|
-
event.preventDefault();
|
|
17136
|
-
const pastedText = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
17137
|
-
// If there is no pasted text, still emit the input change event
|
|
17138
|
-
// because this is how the native input element behaves
|
|
17139
|
-
// but return early because there is nothing to paste.
|
|
17140
|
-
if (!pastedText) {
|
|
17141
|
-
this.emitIonInput(event);
|
|
17142
|
-
return;
|
|
17143
|
-
}
|
|
17144
|
-
const validChars = pastedText
|
|
17145
|
-
.split('')
|
|
17146
|
-
.filter((char) => validKeyPattern.test(char))
|
|
17147
|
-
.slice(0, length);
|
|
17148
|
-
// Find the first empty input
|
|
17149
|
-
const startIndex = this.getFirstEmptyIndex();
|
|
17150
|
-
// If all boxes are filled, start at 0
|
|
17151
|
-
const pasteStart = startIndex === -1 ? 0 : startIndex;
|
|
17152
|
-
validChars.forEach((char, index) => {
|
|
17153
|
-
const targetIndex = pasteStart + index;
|
|
17154
|
-
if (targetIndex < length) {
|
|
17155
|
-
this.inputRefs[targetIndex].value = char;
|
|
17156
|
-
this.inputValues[targetIndex] = char;
|
|
17157
|
-
}
|
|
17158
|
-
});
|
|
17159
|
-
this.updateValue(event);
|
|
17160
|
-
// Focus the next empty input after pasting
|
|
17161
|
-
// If all boxes are filled, focus the last input
|
|
17162
|
-
const nextEmptyIndex = pasteStart + validChars.length;
|
|
17163
|
-
if (nextEmptyIndex < length) {
|
|
17164
|
-
(_b = inputRefs[nextEmptyIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17165
|
-
}
|
|
17166
|
-
else {
|
|
17167
|
-
(_c = inputRefs[length - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
17168
|
-
}
|
|
17169
|
-
};
|
|
17170
|
-
/**
|
|
17171
|
-
* Handles the focus behavior for the input OTP component.
|
|
17172
|
-
*
|
|
17173
|
-
* Focus behavior:
|
|
17174
|
-
* 1. Keyboard navigation: Allow normal focus movement
|
|
17175
|
-
* 2. Mouse click:
|
|
17176
|
-
* - If clicked box has value: Focus that box
|
|
17177
|
-
* - If clicked box is empty: Focus first empty box
|
|
17178
|
-
*
|
|
17179
|
-
* Emits the `ionFocus` event when the input group gains focus.
|
|
17180
|
-
*/
|
|
17181
|
-
this.onFocus = (index) => (event) => {
|
|
17182
|
-
var _a;
|
|
17183
|
-
const { inputRefs } = this;
|
|
17184
|
-
// Only emit ionFocus and set the focusedValue when the
|
|
17185
|
-
// component first gains focus
|
|
17186
|
-
if (!this.hasFocus) {
|
|
17187
|
-
this.ionFocus.emit(event);
|
|
17188
|
-
this.focusedValue = this.value;
|
|
17189
|
-
}
|
|
17190
|
-
this.hasFocus = true;
|
|
17191
|
-
let finalIndex = index;
|
|
17192
|
-
if (!this.isKeyboardNavigation) {
|
|
17193
|
-
// If the clicked box has a value, focus it
|
|
17194
|
-
// Otherwise focus the first empty box
|
|
17195
|
-
const targetIndex = this.inputValues[index] ? index : this.getFirstEmptyIndex();
|
|
17196
|
-
finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
|
|
17197
|
-
// Focus the target box
|
|
17198
|
-
(_a = this.inputRefs[finalIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17199
|
-
}
|
|
17200
|
-
// Update tabIndexes to match the focused box
|
|
17201
|
-
inputRefs.forEach((input, i) => {
|
|
17202
|
-
input.tabIndex = i === finalIndex ? 0 : -1;
|
|
17203
|
-
});
|
|
17204
|
-
// Reset the keyboard navigation flag
|
|
17205
|
-
this.isKeyboardNavigation = false;
|
|
17206
|
-
};
|
|
17207
|
-
/**
|
|
17208
|
-
* Handles the blur behavior for the input OTP component.
|
|
17209
|
-
* Emits the `ionBlur` event when the input group loses focus.
|
|
17210
|
-
*/
|
|
17211
|
-
this.onBlur = (event) => {
|
|
17212
|
-
const { inputRefs } = this;
|
|
17213
|
-
const relatedTarget = event.relatedTarget;
|
|
17214
|
-
// Do not emit blur if we're moving to another input box in the same component
|
|
17215
|
-
const isInternalFocus = relatedTarget != null && inputRefs.includes(relatedTarget);
|
|
17216
|
-
if (!isInternalFocus) {
|
|
17217
|
-
this.hasFocus = false;
|
|
17218
|
-
// Reset tabIndexes when focus leaves the component
|
|
17219
|
-
this.updateTabIndexes();
|
|
17220
|
-
// Always emit ionBlur when focus leaves the component
|
|
17221
|
-
this.ionBlur.emit(event);
|
|
17222
|
-
// Only emit ionChange if the value has actually changed
|
|
17223
|
-
if (this.focusedValue !== this.value) {
|
|
17224
|
-
this.emitIonChange(event);
|
|
17225
|
-
}
|
|
17226
|
-
}
|
|
17227
|
-
};
|
|
17228
|
-
}
|
|
17229
|
-
valueChanged() {
|
|
17230
|
-
this.initializeValues();
|
|
17231
|
-
}
|
|
17232
|
-
/**
|
|
17233
|
-
* Processes the separators prop into an array of numbers.
|
|
17234
|
-
*
|
|
17235
|
-
* If the separators prop is not provided, returns an empty array.
|
|
17236
|
-
* If the separators prop is 'all', returns an array of all valid positions (1 to length-1).
|
|
17237
|
-
* If the separators prop is an array, returns it as is.
|
|
17238
|
-
* If the separators prop is a string, splits it by commas and parses each part as a number.
|
|
17239
|
-
*
|
|
17240
|
-
* If the separators are greater than the input length, it will warn and ignore the separators.
|
|
17241
|
-
*/
|
|
17242
|
-
processSeparators() {
|
|
17243
|
-
const { separators, length } = this;
|
|
17244
|
-
if (separators === undefined) {
|
|
17245
|
-
this.parsedSeparators = [];
|
|
17246
|
-
return;
|
|
17247
|
-
}
|
|
17248
|
-
if (typeof separators === 'string' && separators !== 'all') {
|
|
17249
|
-
const isValidFormat = /^(\d+)(,\d+)*$/.test(separators);
|
|
17250
|
-
if (!isValidFormat) {
|
|
17251
|
-
printIonWarning(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${separators}`, this.el);
|
|
17252
|
-
this.parsedSeparators = [];
|
|
17253
|
-
return;
|
|
17254
|
-
}
|
|
17255
|
-
}
|
|
17256
|
-
let separatorValues;
|
|
17257
|
-
if (separators === 'all') {
|
|
17258
|
-
separatorValues = Array.from({ length: length - 1 }, (_, i) => i + 1);
|
|
17259
|
-
}
|
|
17260
|
-
else if (Array.isArray(separators)) {
|
|
17261
|
-
separatorValues = separators;
|
|
17262
|
-
}
|
|
17263
|
-
else {
|
|
17264
|
-
separatorValues = separators
|
|
17265
|
-
.split(',')
|
|
17266
|
-
.map((pos) => parseInt(pos, 10))
|
|
17267
|
-
.filter((pos) => !isNaN(pos));
|
|
17268
|
-
}
|
|
17269
|
-
// Check for duplicate separator positions
|
|
17270
|
-
const duplicates = separatorValues.filter((pos, index) => separatorValues.indexOf(pos) !== index);
|
|
17271
|
-
if (duplicates.length > 0) {
|
|
17272
|
-
printIonWarning(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${separators}`, this.el);
|
|
17273
|
-
}
|
|
17274
|
-
const invalidSeparators = separatorValues.filter((pos) => pos > length);
|
|
17275
|
-
if (invalidSeparators.length > 0) {
|
|
17276
|
-
printIonWarning(`[ion-input-otp] - The following separator positions are greater than the input length (${length}): ${invalidSeparators.join(', ')}. These separators will be ignored.`, this.el);
|
|
17277
|
-
}
|
|
17278
|
-
this.parsedSeparators = separatorValues.filter((pos) => pos <= length);
|
|
17279
|
-
}
|
|
17280
|
-
componentWillLoad() {
|
|
17281
|
-
this.processSeparators();
|
|
17282
|
-
this.initializeValues();
|
|
17283
|
-
}
|
|
17284
|
-
/**
|
|
17285
|
-
* Initializes the input values array based on the current value prop.
|
|
17286
|
-
* This splits the value into individual characters and validates them against
|
|
17287
|
-
* the allowed pattern. The values are then used as the values in the native
|
|
17288
|
-
* input boxes and the value of the input group is updated.
|
|
17289
|
-
*/
|
|
17290
|
-
initializeValues() {
|
|
17291
|
-
if (this.value != null && String(this.value).length > 0) {
|
|
17292
|
-
const chars = String(this.value).split('').slice(0, this.length);
|
|
17293
|
-
chars.forEach((char, index) => {
|
|
17294
|
-
if (this.validKeyPattern.test(char)) {
|
|
17295
|
-
this.inputValues[index] = char;
|
|
17296
|
-
}
|
|
17297
|
-
});
|
|
17298
|
-
// Update the value without emitting events
|
|
17299
|
-
this.value = this.inputValues.join('');
|
|
17300
|
-
}
|
|
17301
|
-
}
|
|
17302
|
-
/**
|
|
17303
|
-
* Resets the input values and focus state.
|
|
17304
|
-
*/
|
|
17305
|
-
async reset() {
|
|
17306
|
-
this.inputValues = Array(this.length).fill('');
|
|
17307
|
-
this.value = '';
|
|
17308
|
-
this.focusedValue = null;
|
|
17309
|
-
this.hasFocus = false;
|
|
17310
|
-
this.inputRefs.forEach((input) => {
|
|
17311
|
-
input.blur();
|
|
17312
|
-
});
|
|
17313
|
-
this.updateTabIndexes();
|
|
17314
|
-
}
|
|
17315
|
-
/**
|
|
17316
|
-
* Sets focus to an input box.
|
|
17317
|
-
* @param index - The index of the input box to focus (0-based).
|
|
17318
|
-
* If provided and the input box has a value, the input box at that index will be focused.
|
|
17319
|
-
* Otherwise, the first empty input box or the last input if all are filled will be focused.
|
|
17320
|
-
*/
|
|
17321
|
-
async setFocus(index) {
|
|
17322
|
-
var _a, _b;
|
|
17323
|
-
if (typeof index === 'number') {
|
|
17324
|
-
const validIndex = Math.max(0, Math.min(index, this.length - 1));
|
|
17325
|
-
(_a = this.inputRefs[validIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17326
|
-
}
|
|
17327
|
-
else {
|
|
17328
|
-
const tabbableIndex = this.getTabbableIndex();
|
|
17329
|
-
(_b = this.inputRefs[tabbableIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17330
|
-
}
|
|
17331
|
-
}
|
|
17332
|
-
/**
|
|
17333
|
-
* Get the regex pattern for allowed characters.
|
|
17334
|
-
* If a pattern is provided, use it to create a regex pattern
|
|
17335
|
-
* Otherwise, use the default regex pattern based on type
|
|
17336
|
-
*/
|
|
17337
|
-
get validKeyPattern() {
|
|
17338
|
-
return new RegExp(`^${this.getPattern()}$`, 'u');
|
|
17339
|
-
}
|
|
17340
|
-
/**
|
|
17341
|
-
* Gets the string pattern to pass to the input element
|
|
17342
|
-
* and use in the regex for allowed characters.
|
|
17343
|
-
*/
|
|
17344
|
-
getPattern() {
|
|
17345
|
-
const { pattern, type } = this;
|
|
17346
|
-
if (pattern) {
|
|
17347
|
-
return pattern;
|
|
17348
|
-
}
|
|
17349
|
-
return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]';
|
|
17350
|
-
}
|
|
17351
|
-
/**
|
|
17352
|
-
* Get the default value for inputmode.
|
|
17353
|
-
* If inputmode is provided, use it.
|
|
17354
|
-
* Otherwise, use the default inputmode based on type
|
|
17355
|
-
*/
|
|
17356
|
-
getInputmode() {
|
|
17357
|
-
const { inputmode } = this;
|
|
17358
|
-
if (inputmode) {
|
|
17359
|
-
return inputmode;
|
|
17360
|
-
}
|
|
17361
|
-
if (this.type == 'number') {
|
|
17362
|
-
return 'numeric';
|
|
17363
|
-
}
|
|
17364
|
-
else {
|
|
17365
|
-
return 'text';
|
|
17366
|
-
}
|
|
17367
|
-
}
|
|
17368
|
-
/**
|
|
17369
|
-
* Updates the value of the input group.
|
|
17370
|
-
* This updates the value of the input group and emits an `ionChange` event.
|
|
17371
|
-
* If all of the input boxes are filled, it emits an `ionComplete` event.
|
|
17372
|
-
*/
|
|
17373
|
-
updateValue(event) {
|
|
17374
|
-
const { inputValues, length } = this;
|
|
17375
|
-
const newValue = inputValues.join('');
|
|
17376
|
-
this.value = newValue;
|
|
17377
|
-
this.emitIonInput(event);
|
|
17378
|
-
if (newValue.length === length) {
|
|
17379
|
-
this.ionComplete.emit({ value: newValue });
|
|
17380
|
-
}
|
|
17381
|
-
}
|
|
17382
|
-
/**
|
|
17383
|
-
* Emits an `ionChange` event.
|
|
17384
|
-
* This API should be called for user committed changes.
|
|
17385
|
-
* This API should not be used for external value changes.
|
|
17386
|
-
*/
|
|
17387
|
-
emitIonChange(event) {
|
|
17388
|
-
const { value } = this;
|
|
17389
|
-
// Checks for both null and undefined values
|
|
17390
|
-
const newValue = value == null ? value : value.toString();
|
|
17391
|
-
this.ionChange.emit({ value: newValue, event });
|
|
17392
|
-
}
|
|
17393
|
-
/**
|
|
17394
|
-
* Emits an `ionInput` event.
|
|
17395
|
-
* This is used to emit the input value when the user types,
|
|
17396
|
-
* backspaces, or pastes.
|
|
17397
|
-
*/
|
|
17398
|
-
emitIonInput(event) {
|
|
17399
|
-
const { value } = this;
|
|
17400
|
-
// Checks for both null and undefined values
|
|
17401
|
-
const newValue = value == null ? value : value.toString();
|
|
17402
|
-
this.ionInput.emit({ value: newValue, event });
|
|
17403
|
-
}
|
|
17404
|
-
/**
|
|
17405
|
-
* Focuses the next input box.
|
|
17406
|
-
*/
|
|
17407
|
-
focusNext(currentIndex) {
|
|
17408
|
-
var _a;
|
|
17409
|
-
const { inputRefs, length } = this;
|
|
17410
|
-
if (currentIndex < length - 1) {
|
|
17411
|
-
(_a = inputRefs[currentIndex + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17412
|
-
}
|
|
17413
|
-
}
|
|
17414
|
-
/**
|
|
17415
|
-
* Focuses the previous input box.
|
|
17416
|
-
*/
|
|
17417
|
-
focusPrevious(currentIndex) {
|
|
17418
|
-
var _a;
|
|
17419
|
-
const { inputRefs } = this;
|
|
17420
|
-
if (currentIndex > 0) {
|
|
17421
|
-
(_a = inputRefs[currentIndex - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17422
|
-
}
|
|
17423
|
-
}
|
|
17424
|
-
/**
|
|
17425
|
-
* Determines if a separator should be shown for a given index by
|
|
17426
|
-
* checking if the index is included in the parsed separators array.
|
|
17427
|
-
*/
|
|
17428
|
-
showSeparator(index) {
|
|
17429
|
-
const { length } = this;
|
|
17430
|
-
return this.parsedSeparators.includes(index + 1) && index < length - 1;
|
|
17431
|
-
}
|
|
17432
|
-
/**
|
|
17433
|
-
* Updates the tabIndexes for the input boxes.
|
|
17434
|
-
* This is used to ensure that the correct input is
|
|
17435
|
-
* focused when the user navigates using the tab key.
|
|
17436
|
-
*/
|
|
17437
|
-
updateTabIndexes() {
|
|
17438
|
-
const { inputRefs, inputValues, length } = this;
|
|
17439
|
-
// Find first empty index after any filled boxes
|
|
17440
|
-
let firstEmptyIndex = -1;
|
|
17441
|
-
for (let i = 0; i < length; i++) {
|
|
17442
|
-
if (!inputValues[i] || inputValues[i] === '') {
|
|
17443
|
-
firstEmptyIndex = i;
|
|
17444
|
-
break;
|
|
17445
|
-
}
|
|
17446
|
-
}
|
|
17447
|
-
// Update tabIndex for all inputs
|
|
17448
|
-
inputRefs.forEach((input, index) => {
|
|
17449
|
-
// If all boxes are filled, make the last box tabbable
|
|
17450
|
-
// Otherwise, make the first empty box tabbable
|
|
17451
|
-
const shouldBeTabbable = firstEmptyIndex === -1 ? index === length - 1 : firstEmptyIndex === index;
|
|
17452
|
-
input.tabIndex = shouldBeTabbable ? 0 : -1;
|
|
17453
|
-
});
|
|
17454
|
-
}
|
|
17455
|
-
/**
|
|
17456
|
-
* Searches through the input values and returns the index
|
|
17457
|
-
* of the first empty input.
|
|
17458
|
-
* Returns -1 if all inputs are filled.
|
|
17459
|
-
*/
|
|
17460
|
-
getFirstEmptyIndex() {
|
|
17461
|
-
var _a;
|
|
17462
|
-
const { inputValues, length } = this;
|
|
17463
|
-
// Create an array of the same length as the input OTP
|
|
17464
|
-
// and fill it with the input values
|
|
17465
|
-
const values = Array.from({ length }, (_, i) => inputValues[i] || '');
|
|
17466
|
-
return (_a = values.findIndex((value) => !value || value === '')) !== null && _a !== void 0 ? _a : -1;
|
|
17467
|
-
}
|
|
17468
|
-
/**
|
|
17469
|
-
* Returns the index of the input that should be tabbed to.
|
|
17470
|
-
* If all inputs are filled, returns the last input's index.
|
|
17471
|
-
* Otherwise, returns the index of the first empty input.
|
|
17472
|
-
*/
|
|
17473
|
-
getTabbableIndex() {
|
|
17474
|
-
const { length } = this;
|
|
17475
|
-
const firstEmptyIndex = this.getFirstEmptyIndex();
|
|
17476
|
-
return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
|
|
17477
|
-
}
|
|
17478
|
-
render() {
|
|
17479
|
-
const { autocapitalize, color, disabled, fill, hasFocus, inputId, inputRefs, inputValues, length, readonly, shape, size, } = this;
|
|
17480
|
-
const mode = getIonMode$1(this);
|
|
17481
|
-
const inputmode = this.getInputmode();
|
|
17482
|
-
const tabbableIndex = this.getTabbableIndex();
|
|
17483
|
-
const pattern = this.getPattern();
|
|
17484
|
-
return (hAsync(Host, { key: '2e80140032daa5ed71692b744f2a694fc29a3d30', class: createColorClasses$1(color, {
|
|
17485
|
-
[mode]: true,
|
|
17486
|
-
'has-focus': hasFocus,
|
|
17487
|
-
[`input-otp-size-${size}`]: true,
|
|
17488
|
-
[`input-otp-shape-${shape}`]: true,
|
|
17489
|
-
[`input-otp-fill-${fill}`]: true,
|
|
17490
|
-
'input-otp-disabled': disabled,
|
|
17491
|
-
'input-otp-readonly': readonly,
|
|
17492
|
-
}) }, hAsync("div", { key: 'c1851511a27e6a525b77cb0129569032e2cd7355', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, Array.from({ length }).map((_, index) => (hAsync(Fragment, null, hAsync("div", { class: "native-wrapper" }, hAsync("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) && hAsync("div", { class: "input-otp-separator" }))))), hAsync("div", { key: 'ddf8b692c719d134242ae85c314a732c01ce036f', class: "input-otp-description" }, hAsync("slot", { key: '9e3a3b4bbe9fc209362008bc57fee80bfac09a1b' }))));
|
|
17493
|
-
}
|
|
17494
|
-
get el() { return getElement(this); }
|
|
17495
|
-
static get watchers() { return {
|
|
17496
|
-
"value": ["valueChanged"],
|
|
17497
|
-
"separators": ["processSeparators"],
|
|
17498
|
-
"length": ["processSeparators"]
|
|
17499
|
-
}; }
|
|
17500
|
-
static get style() { return {
|
|
17501
|
-
ios: inputOtpIosCss,
|
|
17502
|
-
md: inputOtpMdCss
|
|
17503
|
-
}; }
|
|
17504
|
-
static get cmpMeta() { return {
|
|
17505
|
-
"$flags$": 38,
|
|
17506
|
-
"$tagName$": "ion-input-otp",
|
|
17507
|
-
"$members$": {
|
|
17508
|
-
"autocapitalize": [1],
|
|
17509
|
-
"color": [513],
|
|
17510
|
-
"disabled": [516],
|
|
17511
|
-
"fill": [1],
|
|
17512
|
-
"inputmode": [1],
|
|
17513
|
-
"length": [2],
|
|
17514
|
-
"pattern": [1],
|
|
17515
|
-
"readonly": [516],
|
|
17516
|
-
"size": [1],
|
|
17517
|
-
"separators": [1],
|
|
17518
|
-
"shape": [1],
|
|
17519
|
-
"type": [1],
|
|
17520
|
-
"value": [1032],
|
|
17521
|
-
"inputValues": [32],
|
|
17522
|
-
"hasFocus": [32],
|
|
17523
|
-
"reset": [64],
|
|
17524
|
-
"setFocus": [64]
|
|
17525
|
-
},
|
|
17526
|
-
"$listeners$": undefined,
|
|
17527
|
-
"$lazyBundleId$": "-",
|
|
17528
|
-
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
17529
|
-
}; }
|
|
17530
|
-
}
|
|
17531
16943
|
let inputIds = 0;
|
|
17532
16944
|
|
|
17533
16945
|
const iosInputPasswordToggleCss = "";
|
|
@@ -17589,16 +17001,16 @@ class InputPasswordToggle {
|
|
|
17589
17001
|
const showPasswordIcon = (_a = this.showIcon) !== null && _a !== void 0 ? _a : eye;
|
|
17590
17002
|
const hidePasswordIcon = (_b = this.hideIcon) !== null && _b !== void 0 ? _b : eyeOff;
|
|
17591
17003
|
const isPasswordVisible = type === 'text';
|
|
17592
|
-
return (hAsync(Host, { key: '
|
|
17004
|
+
return (hAsync(Host, { key: '1a28e078c83e74c72d8bb8189ece93ec2e3fa3d0', class: createColorClasses$1(color, {
|
|
17593
17005
|
[mode]: true,
|
|
17594
|
-
}) }, hAsync("ion-button", { key: '
|
|
17006
|
+
}) }, hAsync("ion-button", { key: '039d1bab764093bb6fe4a34299b0872abda087fd', mode: mode, color: color, fill: "clear", shape: "round", "aria-checked": isPasswordVisible ? 'true' : 'false', "aria-label": "show password", role: "switch", type: "button", onPointerDown: (ev) => {
|
|
17595
17007
|
/**
|
|
17596
17008
|
* This prevents mobile browsers from
|
|
17597
17009
|
* blurring the input when the password toggle
|
|
17598
17010
|
* button is activated.
|
|
17599
17011
|
*/
|
|
17600
17012
|
ev.preventDefault();
|
|
17601
|
-
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: '
|
|
17013
|
+
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: '26477ee97b808c3d79944bf5e33d4e05f1ae0b3f', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? hidePasswordIcon : showPasswordIcon }))));
|
|
17602
17014
|
}
|
|
17603
17015
|
get el() { return getElement(this); }
|
|
17604
17016
|
static get watchers() { return {
|
|
@@ -17908,11 +17320,11 @@ class ItemDivider {
|
|
|
17908
17320
|
}
|
|
17909
17321
|
render() {
|
|
17910
17322
|
const mode = getIonMode$1(this);
|
|
17911
|
-
return (hAsync(Host, { key: '
|
|
17323
|
+
return (hAsync(Host, { key: '7150b1a3a881c3c312db40821acb9830c2885ccf', class: createColorClasses$1(this.color, {
|
|
17912
17324
|
[mode]: true,
|
|
17913
17325
|
'item-divider-sticky': this.sticky,
|
|
17914
17326
|
item: true,
|
|
17915
|
-
}) }, hAsync("slot", { key: '
|
|
17327
|
+
}) }, hAsync("slot", { key: '6e9d9615f475392a81177bc49b4b01dbdab67925', name: "start" }), hAsync("div", { key: '12fe6b840ad1a1897cc34529e488207b2df448f7', class: "item-divider-inner" }, hAsync("div", { key: '626776a8c9887dd2df5ecf3b7861beb742b41e03', class: "item-divider-wrapper" }, hAsync("slot", { key: '90379dd99914e24ae45c9571c8d390f9b6622fd4' })), hAsync("slot", { key: '105644332c08530155b9cd8e8c6fa9e332072a63', name: "end" }))));
|
|
17916
17328
|
}
|
|
17917
17329
|
get el() { return getElement(this); }
|
|
17918
17330
|
static get style() { return {
|
|
@@ -17942,7 +17354,7 @@ class ItemGroup {
|
|
|
17942
17354
|
}
|
|
17943
17355
|
render() {
|
|
17944
17356
|
const mode = getIonMode$1(this);
|
|
17945
|
-
return (hAsync(Host, { key: '
|
|
17357
|
+
return (hAsync(Host, { key: 'de2a969ed0dda880bc560a325848b28d0287fdb9', role: "group", class: {
|
|
17946
17358
|
[mode]: true,
|
|
17947
17359
|
// Used internally for styling
|
|
17948
17360
|
[`item-group-${mode}`]: true,
|
|
@@ -18012,12 +17424,12 @@ class ItemOption {
|
|
|
18012
17424
|
href: this.href,
|
|
18013
17425
|
target: this.target,
|
|
18014
17426
|
};
|
|
18015
|
-
return (hAsync(Host, { key: '
|
|
17427
|
+
return (hAsync(Host, { key: '1b7708dd178dc2c9280652ca3da38c84ba7b767f', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
18016
17428
|
[mode]: true,
|
|
18017
17429
|
'item-option-disabled': disabled,
|
|
18018
17430
|
'item-option-expandable': expandable,
|
|
18019
17431
|
'ion-activatable': true,
|
|
18020
|
-
}) }, hAsync(TagType, Object.assign({ key: '
|
|
17432
|
+
}) }, hAsync(TagType, Object.assign({ key: 'd9f899f5425ad6b97071494485aa3ca90bc89d30' }, attrs, { class: "button-native", part: "native", disabled: disabled }), hAsync("span", { key: 'adc2cf72b4363be9b9eeb3584723e2bfc862af20', class: "button-inner" }, hAsync("slot", { key: 'e668fe8e655a74e6a35e979e0cd488506b962dbf', name: "top" }), hAsync("div", { key: '2ddcdb92b6b19c3cc549a7aee2400d1a6eeb51f1', class: "horizontal-wrapper" }, hAsync("slot", { key: '441f13df18b72e5ed6bb51b157722e065b5847d2', name: "start" }), hAsync("slot", { key: '425d815874b49e1628880160d7175ed3ca36ca39', name: "icon-only" }), hAsync("slot", { key: '27437d3fa3365b12bc030704e18481fdfb14aebb' }), hAsync("slot", { key: 'bd39330771c7f85c6df10f7f9050335ee7f14ff0', name: "end" })), hAsync("slot", { key: '440cb6dc7743d50b261d4bf61d2c24e24b89e58c', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '29632941464bbb34551cf64961187643f62bf755' }))));
|
|
18021
17433
|
}
|
|
18022
17434
|
get el() { return getElement(this); }
|
|
18023
17435
|
static get style() { return {
|
|
@@ -18066,7 +17478,7 @@ class ItemOptions {
|
|
|
18066
17478
|
render() {
|
|
18067
17479
|
const mode = getIonMode$1(this);
|
|
18068
17480
|
const isEnd = isEndSide(this.side);
|
|
18069
|
-
return (hAsync(Host, { key: '
|
|
17481
|
+
return (hAsync(Host, { key: '7df4b71547524bf359c48e1b40ccbc44e850f632', class: {
|
|
18070
17482
|
[mode]: true,
|
|
18071
17483
|
// Used internally for styling
|
|
18072
17484
|
[`item-options-${mode}`]: true,
|
|
@@ -18530,7 +17942,7 @@ class ItemSliding {
|
|
|
18530
17942
|
}
|
|
18531
17943
|
render() {
|
|
18532
17944
|
const mode = getIonMode$1(this);
|
|
18533
|
-
return (hAsync(Host, { key: '
|
|
17945
|
+
return (hAsync(Host, { key: 'f8aea4bb9802b111ef358cc6c172a635637ae1f8', class: {
|
|
18534
17946
|
[mode]: true,
|
|
18535
17947
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
18536
17948
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -18635,13 +18047,13 @@ class Label {
|
|
|
18635
18047
|
render() {
|
|
18636
18048
|
const position = this.position;
|
|
18637
18049
|
const mode = getIonMode$1(this);
|
|
18638
|
-
return (hAsync(Host, { key: '
|
|
18050
|
+
return (hAsync(Host, { key: '4da84c95351a74b547f8224ecfa66924d21398c5', class: createColorClasses$1(this.color, {
|
|
18639
18051
|
[mode]: true,
|
|
18640
18052
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
18641
18053
|
[`label-${position}`]: position !== undefined,
|
|
18642
18054
|
[`label-no-animate`]: this.noAnimate,
|
|
18643
18055
|
'label-rtl': document.dir === 'rtl',
|
|
18644
|
-
}) }, hAsync("slot", { key: '
|
|
18056
|
+
}) }, hAsync("slot", { key: 'ea158ebb620275e5492965234d0ab925d391f919' })));
|
|
18645
18057
|
}
|
|
18646
18058
|
get el() { return getElement(this); }
|
|
18647
18059
|
static get watchers() { return {
|
|
@@ -18697,7 +18109,7 @@ class List {
|
|
|
18697
18109
|
render() {
|
|
18698
18110
|
const mode = getIonMode$1(this);
|
|
18699
18111
|
const { lines, inset } = this;
|
|
18700
|
-
return (hAsync(Host, { key: '
|
|
18112
|
+
return (hAsync(Host, { key: '5ff2b0b3989cc99ce17abb8bcd7ec1847940d1ec', role: "list", class: {
|
|
18701
18113
|
[mode]: true,
|
|
18702
18114
|
// Used internally for styling
|
|
18703
18115
|
[`list-${mode}`]: true,
|
|
@@ -18739,10 +18151,10 @@ class ListHeader {
|
|
|
18739
18151
|
render() {
|
|
18740
18152
|
const { lines } = this;
|
|
18741
18153
|
const mode = getIonMode$1(this);
|
|
18742
|
-
return (hAsync(Host, { key: '
|
|
18154
|
+
return (hAsync(Host, { key: '95ce2135e2b1ad4d7d6020b0fb9bc6e02b3c0851', class: createColorClasses$1(this.color, {
|
|
18743
18155
|
[mode]: true,
|
|
18744
18156
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
18745
|
-
}) }, hAsync("div", { key: '
|
|
18157
|
+
}) }, hAsync("div", { key: '3065b0a094bc31a90518898a5126a813c8a33816', class: "list-header-inner" }, hAsync("slot", { key: 'fe15c87d7867f3e5d8185645c49c0228496697b8' }))));
|
|
18746
18158
|
}
|
|
18747
18159
|
static get style() { return {
|
|
18748
18160
|
ios: listHeaderIosCss,
|
|
@@ -19028,9 +18440,9 @@ class Loading {
|
|
|
19028
18440
|
* Otherwise, don't set aria-labelledby.
|
|
19029
18441
|
*/
|
|
19030
18442
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
19031
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
18443
|
+
return (hAsync(Host, Object.assign({ key: 'd6066c8b56b1fe4b597a243a7dab191ef0d21286', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
19032
18444
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
19033
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
18445
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '2431eda00a2a3f510f5dfc39b7c7d47c056dfa3d', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: 'cf210aaf5e754e4eccdb49cf7ead4647b3f9b2d1', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: 'fa9375143d391656d70e181d25b952c77c2fc6ec', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: '8e4a4ed994f7f62df86b03696ac95162df41f52d', class: "loading-spinner" }, hAsync("ion-spinner", { key: 'e5b323c272d365853ba92bd211e390b4fd4751d2', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: 'cae35ec8c34800477bff3ebcec8010e632158233', tabindex: "0", "aria-hidden": "true" })));
|
|
19034
18446
|
}
|
|
19035
18447
|
get el() { return getElement(this); }
|
|
19036
18448
|
static get watchers() { return {
|
|
@@ -20054,14 +19466,14 @@ class Menu {
|
|
|
20054
19466
|
* the ionBackButton listener in the menu controller
|
|
20055
19467
|
* will handle closing the menu when Escape is pressed.
|
|
20056
19468
|
*/
|
|
20057
|
-
return (hAsync(Host, { key: '
|
|
19469
|
+
return (hAsync(Host, { key: '0a2ba4ff5600b80b54d1b5b45124779c6aa0d2f2', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
20058
19470
|
[mode]: true,
|
|
20059
19471
|
[`menu-type-${type}`]: true,
|
|
20060
19472
|
'menu-enabled': !disabled,
|
|
20061
19473
|
[`menu-side-${side}`]: true,
|
|
20062
19474
|
'menu-pane-visible': isPaneVisible,
|
|
20063
19475
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
20064
|
-
} }, hAsync("div", { key: '
|
|
19476
|
+
} }, hAsync("div", { key: '40a222bcde4b959abc9939c44e89ea0cf8967aba', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: '6a7ec5583294bb314990ff4ce6f25045652c07cb' })), hAsync("ion-backdrop", { key: '95f1e87237f3cc24845d91b744f935bad6bb460d', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
20065
19477
|
}
|
|
20066
19478
|
get el() { return getElement(this); }
|
|
20067
19479
|
static get watchers() { return {
|
|
@@ -20169,7 +19581,7 @@ class MenuButton {
|
|
|
20169
19581
|
type: this.type,
|
|
20170
19582
|
};
|
|
20171
19583
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
20172
|
-
return (hAsync(Host, { key: '
|
|
19584
|
+
return (hAsync(Host, { key: '3cde3704f28eb275f4a5ff2985bbb68c1024e79c', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
|
|
20173
19585
|
[mode]: true,
|
|
20174
19586
|
button: true, // ion-buttons target .button
|
|
20175
19587
|
'menu-button-hidden': hidden,
|
|
@@ -20178,7 +19590,7 @@ class MenuButton {
|
|
|
20178
19590
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
20179
19591
|
'ion-activatable': true,
|
|
20180
19592
|
'ion-focusable': true,
|
|
20181
|
-
}) }, hAsync("button", Object.assign({ key: '
|
|
19593
|
+
}) }, hAsync("button", Object.assign({ key: 'a02a3374288bd1759b6e352ada8eab0d45c6422f' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), hAsync("span", { key: 'ba699f2277a4e7b27ce5e42faeefc53d8805bb43', class: "button-inner" }, hAsync("slot", { key: '829fe6cbdeb173f50d1a670389d1565baa6273e4' }, hAsync("ion-icon", { key: 'a9a9f7b8dcffc648a8429fe0adbe766869de72fd', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '48deca9a771a249f2fc76eaa8b9741c8d66d8355', type: "unbounded" }))));
|
|
20182
19594
|
}
|
|
20183
19595
|
get el() { return getElement(this); }
|
|
20184
19596
|
static get style() { return {
|
|
@@ -20231,10 +19643,10 @@ class MenuToggle {
|
|
|
20231
19643
|
render() {
|
|
20232
19644
|
const mode = getIonMode$1(this);
|
|
20233
19645
|
const hidden = this.autoHide && !this.visible;
|
|
20234
|
-
return (hAsync(Host, { key: '
|
|
19646
|
+
return (hAsync(Host, { key: '88e88fa13ac7f10ba3acfe378bd11cda0c7e2749', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
20235
19647
|
[mode]: true,
|
|
20236
19648
|
'menu-toggle-hidden': hidden,
|
|
20237
|
-
} }, hAsync("slot", { key: '
|
|
19649
|
+
} }, hAsync("slot", { key: '0a14c7b63eda64702d2fd1b4bc7db4809892842d' })));
|
|
20238
19650
|
}
|
|
20239
19651
|
static get style() { return menuToggleCss; }
|
|
20240
19652
|
static get cmpMeta() { return {
|
|
@@ -22566,18 +21978,18 @@ class Modal {
|
|
|
22566
21978
|
const mode = getIonMode$1(this);
|
|
22567
21979
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
22568
21980
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
22569
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
21981
|
+
return (hAsync(Host, Object.assign({ key: '0991b2e4e32da511e59fb1463b47e4ac1b86d1ca', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
22570
21982
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
22571
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '
|
|
21983
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: 'ca9453ffe1021fb252ad9460676cfabb5633f00f', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: '9f8da446a7b0f3b26aec856e13f6d6d131a7e37b', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '9d08bf600571849c97b58f66df40b496a358d1e1',
|
|
22572
21984
|
/*
|
|
22573
21985
|
role and aria-modal must be used on the
|
|
22574
21986
|
same element. They must also be set inside the
|
|
22575
21987
|
shadow DOM otherwise ion-button will not be highlighted
|
|
22576
21988
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
22577
21989
|
*/
|
|
22578
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
21990
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: 'f8bf0d1126e5376519101225d9965727121ee042', class: "modal-handle",
|
|
22579
21991
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
22580
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
21992
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '6d52849df98f2c6c8fbc03996a931ea6a39a512b' }))));
|
|
22581
21993
|
}
|
|
22582
21994
|
get el() { return getElement(this); }
|
|
22583
21995
|
static get watchers() { return {
|
|
@@ -23524,7 +22936,7 @@ class Nav {
|
|
|
23524
22936
|
}
|
|
23525
22937
|
}
|
|
23526
22938
|
render() {
|
|
23527
|
-
return hAsync("slot", { key: '
|
|
22939
|
+
return hAsync("slot", { key: '188d0abd6c047d235380f07aac81223b757010e8' });
|
|
23528
22940
|
}
|
|
23529
22941
|
get el() { return getElement(this); }
|
|
23530
22942
|
static get watchers() { return {
|
|
@@ -23597,7 +23009,7 @@ class NavLink {
|
|
|
23597
23009
|
};
|
|
23598
23010
|
}
|
|
23599
23011
|
render() {
|
|
23600
|
-
return hAsync(Host, { key: '
|
|
23012
|
+
return hAsync(Host, { key: '9ba170d1b10e08e8a6b5e6a30d363871d455a0a9', onClick: this.onClick });
|
|
23601
23013
|
}
|
|
23602
23014
|
get el() { return getElement(this); }
|
|
23603
23015
|
static get cmpMeta() { return {
|
|
@@ -23628,9 +23040,9 @@ class Note {
|
|
|
23628
23040
|
}
|
|
23629
23041
|
render() {
|
|
23630
23042
|
const mode = getIonMode$1(this);
|
|
23631
|
-
return (hAsync(Host, { key: '
|
|
23043
|
+
return (hAsync(Host, { key: '3c3d9b2aa805c0bc1fdc6270a2bbf4dcc1b96c5b', class: createColorClasses$1(this.color, {
|
|
23632
23044
|
[mode]: true,
|
|
23633
|
-
}) }, hAsync("slot", { key: '
|
|
23045
|
+
}) }, hAsync("slot", { key: '39e34682009fcb705ecafe51825162734bdf14d3' })));
|
|
23634
23046
|
}
|
|
23635
23047
|
static get style() { return {
|
|
23636
23048
|
ios: noteIosCss,
|
|
@@ -24390,11 +23802,11 @@ class Picker {
|
|
|
24390
23802
|
render() {
|
|
24391
23803
|
const { htmlAttributes } = this;
|
|
24392
23804
|
const mode = getIonMode$1(this);
|
|
24393
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
23805
|
+
return (hAsync(Host, Object.assign({ key: 'b6b6ca6f9aa74681e6d67f64b366f5965fec2a6d', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
24394
23806
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
24395
23807
|
}, class: Object.assign({ [mode]: true,
|
|
24396
23808
|
// Used internally for styling
|
|
24397
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
23809
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '20202ca1d7b6cd5f517a802879b39efb79033cb1', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '72fe76a1e1748593cdf38deab5100087bfa75983', tabindex: "0", "aria-hidden": "true" }), hAsync("div", { key: '921954cfc716f3774aab66677563754ff479a44a', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: '224413950bfcf2a948e58c2554c2a37a4e6d0319', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: '7e688c2d0705940ec8a9ace493b679e6a9b68860', class: "picker-columns" }, hAsync("div", { key: '0ec2db79a9ca9e2a0b324b6c4b90176a0eb33df3', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: 'b8344f4f342fddc3f773435515567ef8f3accbb0', class: "picker-below-highlight" }))), hAsync("div", { key: '374c7a6b31b0a00ab3913faeea0ec3d6c02274b9', tabindex: "0", "aria-hidden": "true" })));
|
|
24398
23810
|
}
|
|
24399
23811
|
get el() { return getElement(this); }
|
|
24400
23812
|
static get watchers() { return {
|
|
@@ -25381,9 +24793,9 @@ class PickerColumnCmp {
|
|
|
25381
24793
|
render() {
|
|
25382
24794
|
const col = this.col;
|
|
25383
24795
|
const mode = getIonMode$1(this);
|
|
25384
|
-
return (hAsync(Host, { key: '
|
|
24796
|
+
return (hAsync(Host, { key: '88a3c9397c9ac92dd814074c8ae6ecf8e3420a2c', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
25385
24797
|
'max-width': this.col.columnWidth,
|
|
25386
|
-
} }, col.prefix && (hAsync("div", { key: '
|
|
24798
|
+
} }, col.prefix && (hAsync("div", { key: '4491a705d15337e6f45f3cf6fd21af5242474729', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), hAsync("div", { key: 'b0dd4b7a7a4c1edc4b73e7fb134ac85264072365', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (hAsync("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (hAsync("div", { key: 'c16419ce6481d60fc3ba6b8d102a4edf0ede02aa', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
25387
24799
|
}
|
|
25388
24800
|
get el() { return getElement(this); }
|
|
25389
24801
|
static get watchers() { return {
|
|
@@ -25500,10 +24912,10 @@ class PickerColumnOption {
|
|
|
25500
24912
|
render() {
|
|
25501
24913
|
const { color, disabled, ariaLabel } = this;
|
|
25502
24914
|
const mode = getIonMode$1(this);
|
|
25503
|
-
return (hAsync(Host, { key: '
|
|
24915
|
+
return (hAsync(Host, { key: 'c1353e99c2aa19c0e3ddbe433557ed18e72e1c66', class: createColorClasses$1(color, {
|
|
25504
24916
|
[mode]: true,
|
|
25505
24917
|
['option-disabled']: disabled,
|
|
25506
|
-
}) }, hAsync("button", { key: '
|
|
24918
|
+
}) }, hAsync("button", { key: 'b4ee62ecf7458a07a56e8aa494485766a87a3fcb', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, hAsync("slot", { key: '9ab1e4700c27103b676670a4b3521c183c6ab83d' }))));
|
|
25507
24919
|
}
|
|
25508
24920
|
get el() { return getElement(this); }
|
|
25509
24921
|
static get watchers() { return {
|
|
@@ -26909,9 +26321,9 @@ class Popover {
|
|
|
26909
26321
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
26910
26322
|
const desktop = isPlatform('desktop');
|
|
26911
26323
|
const enableArrow = arrow && !parentPopover;
|
|
26912
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
26324
|
+
return (hAsync(Host, Object.assign({ key: 'ff24e8d9677711248a36994cce568e74ba151499', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
26913
26325
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
26914
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '
|
|
26326
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: 'aca68b4002a08b0e563a976a867141162c20f8b4', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: '62d21d1eab5c6d675d49932559ffb161747e5fec', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '1b46cc77d5302637fc979353483bb5fd780fd1d3', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: 'a5657bff26e46d1959b71eb0992e7dc8fcae86f1', class: "popover-content", part: "content" }, hAsync("slot", { key: 'e1a98007226a46b51109e7004c4d338ca1bc0f9e' })))));
|
|
26915
26327
|
}
|
|
26916
26328
|
get el() { return getElement(this); }
|
|
26917
26329
|
static get watchers() { return {
|
|
@@ -27016,7 +26428,7 @@ class ProgressBar {
|
|
|
27016
26428
|
const mode = getIonMode$1(this);
|
|
27017
26429
|
// If the progress is displayed as a solid bar.
|
|
27018
26430
|
const progressSolid = buffer === 1;
|
|
27019
|
-
return (hAsync(Host, { key: '
|
|
26431
|
+
return (hAsync(Host, { key: 'd60eeaa18aaee607e083c0ef9d0de8178d47c4cd', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
27020
26432
|
[mode]: true,
|
|
27021
26433
|
[`progress-bar-${type}`]: true,
|
|
27022
26434
|
'progress-paused': paused,
|
|
@@ -27200,7 +26612,7 @@ class Radio {
|
|
|
27200
26612
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
27201
26613
|
const mode = getIonMode$1(this);
|
|
27202
26614
|
const inItem = hostContext('ion-item', el);
|
|
27203
|
-
return (hAsync(Host, { key: '
|
|
26615
|
+
return (hAsync(Host, { key: '8badd4aec277addc0793e14df21f73bb345e99b7', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses$1(color, {
|
|
27204
26616
|
[mode]: true,
|
|
27205
26617
|
'in-item': inItem,
|
|
27206
26618
|
'radio-checked': checked,
|
|
@@ -27211,10 +26623,10 @@ class Radio {
|
|
|
27211
26623
|
// Focus and active styling should not apply when the radio is in an item
|
|
27212
26624
|
'ion-activatable': !inItem,
|
|
27213
26625
|
'ion-focusable': !inItem,
|
|
27214
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '
|
|
26626
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '8765b847edc93a1b5a16506e155ed03da807bb10', class: "radio-wrapper" }, hAsync("div", { key: '3d568a0192a32d4f0b8a920019c79ff02639b5c9', class: {
|
|
27215
26627
|
'label-text-wrapper': true,
|
|
27216
26628
|
'label-text-wrapper-hidden': !hasLabel,
|
|
27217
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
26629
|
+
}, part: "label" }, hAsync("slot", { key: '331f3dc2ce5f6ed8f124fc4560f92e0f7c668a85' })), hAsync("div", { key: '473bd4aaf448753e385f2dda3fddc9f56379aa19', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
27218
26630
|
}
|
|
27219
26631
|
get el() { return getElement(this); }
|
|
27220
26632
|
static get watchers() { return {
|
|
@@ -27437,7 +26849,7 @@ class RadioGroup {
|
|
|
27437
26849
|
const { label, labelId, el, name, value } = this;
|
|
27438
26850
|
const mode = getIonMode$1(this);
|
|
27439
26851
|
renderHiddenInput(true, el, name, value, false);
|
|
27440
|
-
return (hAsync(Host, { key: '
|
|
26852
|
+
return (hAsync(Host, { key: 'cac92777297029d7fd1b6af264d92850e35dfbba', role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === this.errorTextId, onClick: this.onClick, class: mode }, this.renderHintText(), hAsync("div", { key: '6b5c634dba30d54eedc031b077863f3d6a9d9e9b', class: "radio-group-wrapper" }, hAsync("slot", { key: '443edb3ff6f4c59d4c4324c8a19f2d6def47a322' }))));
|
|
27441
26853
|
}
|
|
27442
26854
|
get el() { return getElement(this); }
|
|
27443
26855
|
static get watchers() { return {
|
|
@@ -28152,7 +27564,7 @@ class Range {
|
|
|
28152
27564
|
const needsEndAdjustment = inItem && !hasEndContent;
|
|
28153
27565
|
const mode = getIonMode$1(this);
|
|
28154
27566
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
28155
|
-
return (hAsync(Host, { key: '
|
|
27567
|
+
return (hAsync(Host, { key: '3e065039ee048f1f70d97dba5dae98fa1315d867', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
28156
27568
|
[mode]: true,
|
|
28157
27569
|
'in-item': inItem,
|
|
28158
27570
|
'range-disabled': disabled,
|
|
@@ -28161,10 +27573,10 @@ class Range {
|
|
|
28161
27573
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
28162
27574
|
'range-item-start-adjustment': needsStartAdjustment,
|
|
28163
27575
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
28164
|
-
}) }, hAsync("label", { key: '
|
|
27576
|
+
}) }, hAsync("label", { key: '27ff22842c9ea79a1b9495302b926f70c9080a95', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: 'da1f9784be02dfe87d2fef34931d8b7f2148189e', class: {
|
|
28165
27577
|
'label-text-wrapper': true,
|
|
28166
27578
|
'label-text-wrapper-hidden': !hasLabel,
|
|
28167
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
27579
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '4389bf30b08214f5b5917fc30976b38f7bcdd29b', class: "native-wrapper" }, hAsync("slot", { key: 'ad1b2745f8b061ee189617bb5c567e4f1d02250c', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: 'c6dec9e843e232af2a5f16a0f8ee56439c545d7a', name: "end" })))));
|
|
28168
27580
|
}
|
|
28169
27581
|
get el() { return getElement(this); }
|
|
28170
27582
|
static get watchers() { return {
|
|
@@ -29114,7 +28526,7 @@ class Refresher {
|
|
|
29114
28526
|
}
|
|
29115
28527
|
render() {
|
|
29116
28528
|
const mode = getIonMode$1(this);
|
|
29117
|
-
return (hAsync(Host, { key: '
|
|
28529
|
+
return (hAsync(Host, { key: 'c717c16f2ca3e42351848cc8ad37918dec28961d', slot: "fixed", class: {
|
|
29118
28530
|
[mode]: true,
|
|
29119
28531
|
// Used internally for styling
|
|
29120
28532
|
[`refresher-${mode}`]: true,
|
|
@@ -29338,7 +28750,7 @@ class RefresherContent {
|
|
|
29338
28750
|
const pullingIcon = this.pullingIcon;
|
|
29339
28751
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
29340
28752
|
const mode = getIonMode$1(this);
|
|
29341
|
-
return (hAsync(Host, { key: '
|
|
28753
|
+
return (hAsync(Host, { key: 'fb78d7e31f8feb31025e58903eb9de85cb928dbd', class: mode }, hAsync("div", { key: '23f67800f09765ef8fde8cf85a843e19e667f337', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (hAsync("div", { key: '5a08d3b69762f8b51dcd3dcfbaf3fddb707257fa', class: "refresher-pulling-icon" }, hAsync("div", { key: '42a613b029e092acdff7fe613a429375d89f157e', class: "spinner-arrow-container" }, hAsync("ion-spinner", { key: '2f9cdc75938c4d306de7a717ed67901daef71c2c', name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (hAsync("div", { key: '1f8a6347b4a46417ba55286a79f1a41f04bf9c91', class: "arrow-container" }, hAsync("ion-icon", { key: '326713d11d482d420ba5a739ff4528400a37e9ca', icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (hAsync("div", { key: 'ab18c7cbea7bcbfa034f90f317652af4d93660ed', class: "refresher-pulling-icon" }, hAsync("ion-icon", { key: 'f488acd54acc8a61b6c5a279f0d7f9a437c370c0', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), hAsync("div", { key: '914ad6139442dac53af47120ea821fa11c309a38', class: "refresher-refreshing" }, this.refreshingSpinner && (hAsync("div", { key: '7eba732f5e2d72b90399d68a3e89617d8979b3d1', class: "refresher-refreshing-icon" }, hAsync("ion-spinner", { key: '838d66d8bef6f56622c62b1068e7fed29e094302', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
29342
28754
|
}
|
|
29343
28755
|
get el() { return getElement(this); }
|
|
29344
28756
|
static get cmpMeta() { return {
|
|
@@ -29379,7 +28791,7 @@ class Reorder {
|
|
|
29379
28791
|
render() {
|
|
29380
28792
|
const mode = getIonMode$1(this);
|
|
29381
28793
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
29382
|
-
return (hAsync(Host, { key: '
|
|
28794
|
+
return (hAsync(Host, { key: '17adf3165f4e09283d5d6434d7cd47bd23519048', class: mode }, hAsync("slot", { key: 'd00d1cd97c689fc5c7b7175a2051cf697fe22871' }, hAsync("ion-icon", { key: 'eec219aebde6083de98358be3e75965c5a5dc3d0', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
29383
28795
|
}
|
|
29384
28796
|
get el() { return getElement(this); }
|
|
29385
28797
|
static get style() { return {
|
|
@@ -29635,7 +29047,7 @@ class ReorderGroup {
|
|
|
29635
29047
|
}
|
|
29636
29048
|
render() {
|
|
29637
29049
|
const mode = getIonMode$1(this);
|
|
29638
|
-
return (hAsync(Host, { key: '
|
|
29050
|
+
return (hAsync(Host, { key: '6ca009dd65302a914d459aec638e62977440db20', class: {
|
|
29639
29051
|
[mode]: true,
|
|
29640
29052
|
'reorder-enabled': !this.disabled,
|
|
29641
29053
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -29751,7 +29163,7 @@ class RippleEffect {
|
|
|
29751
29163
|
}
|
|
29752
29164
|
render() {
|
|
29753
29165
|
const mode = getIonMode$1(this);
|
|
29754
|
-
return (hAsync(Host, { key: '
|
|
29166
|
+
return (hAsync(Host, { key: '40c7f73e7f5f67e29f83e1236a61c6e1c9943c42', role: "presentation", class: {
|
|
29755
29167
|
[mode]: true,
|
|
29756
29168
|
unbounded: this.unbounded,
|
|
29757
29169
|
} }));
|
|
@@ -30709,10 +30121,10 @@ class RouterLink {
|
|
|
30709
30121
|
rel: this.rel,
|
|
30710
30122
|
target: this.target,
|
|
30711
30123
|
};
|
|
30712
|
-
return (hAsync(Host, { key: '
|
|
30124
|
+
return (hAsync(Host, { key: '11183264fb6ae0db9a7a47c71b6862d60001b834', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
30713
30125
|
[mode]: true,
|
|
30714
30126
|
'ion-activatable': true,
|
|
30715
|
-
}) }, hAsync("a", Object.assign({ key: '
|
|
30127
|
+
}) }, hAsync("a", Object.assign({ key: '3e0e5242161cb0df593d6d573e51b8ba750065a1' }, attrs), hAsync("slot", { key: '5bd808e98a4627bb1236f0d955f4b32971355417' }))));
|
|
30716
30128
|
}
|
|
30717
30129
|
static get style() { return routerLinkCss; }
|
|
30718
30130
|
static get cmpMeta() { return {
|
|
@@ -30909,7 +30321,7 @@ class RouterOutlet {
|
|
|
30909
30321
|
return true;
|
|
30910
30322
|
}
|
|
30911
30323
|
render() {
|
|
30912
|
-
return hAsync("slot", { key: '
|
|
30324
|
+
return hAsync("slot", { key: 'e34e02b5154172c8d5cdd187b6ea58119b6946eb' });
|
|
30913
30325
|
}
|
|
30914
30326
|
get el() { return getElement(this); }
|
|
30915
30327
|
static get watchers() { return {
|
|
@@ -30942,7 +30354,7 @@ class Row {
|
|
|
30942
30354
|
registerInstance(this, hostRef);
|
|
30943
30355
|
}
|
|
30944
30356
|
render() {
|
|
30945
|
-
return (hAsync(Host, { key: '
|
|
30357
|
+
return (hAsync(Host, { key: 'a690022e2abdce6946d24264574e4aa0886a8ea5', class: getIonMode$1(this) }, hAsync("slot", { key: 'd1a0e831dd1dbfe7877d3ad01d0a3045a5fb29e3' })));
|
|
30946
30358
|
}
|
|
30947
30359
|
static get style() { return rowCss; }
|
|
30948
30360
|
static get cmpMeta() { return {
|
|
@@ -31385,8 +30797,8 @@ class Searchbar {
|
|
|
31385
30797
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
31386
30798
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
31387
30799
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
31388
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
31389
|
-
return (hAsync(Host, { key: '
|
|
30800
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '989f3e84c472ada6e66dd9b249d0d268bf17ce26', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: '7d335d4fde33822dc79d26b748ba2e98db7494bb', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
30801
|
+
return (hAsync(Host, { key: 'd1a1972725e949fb102c91487aaa7b9d10c2d718', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
31390
30802
|
[mode]: true,
|
|
31391
30803
|
'searchbar-animated': animated,
|
|
31392
30804
|
'searchbar-disabled': this.disabled,
|
|
@@ -31396,14 +30808,14 @@ class Searchbar {
|
|
|
31396
30808
|
'searchbar-has-focus': this.focused,
|
|
31397
30809
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
31398
30810
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
31399
|
-
}) }, hAsync("div", { key: '
|
|
30811
|
+
}) }, hAsync("div", { key: 'add53640b2994cb6b2bf02792dafe51aba6b1684', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: '160cc36459a4a652e7f41ccd14dcdc782278779e', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, hAsync("ion-icon", { key: '8825fd13af0d2dea451ccc0e00ae7b5021dc01c4', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: '8a7b56da278b9ca5c4f5a4ee9c01924fd5ae29d8', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
31400
30812
|
/**
|
|
31401
30813
|
* This prevents mobile browsers from
|
|
31402
30814
|
* blurring the input when the clear
|
|
31403
30815
|
* button is activated.
|
|
31404
30816
|
*/
|
|
31405
30817
|
ev.preventDefault();
|
|
31406
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
30818
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '24c55274516ab012d8c25f03525c6cdb9409e52f', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
31407
30819
|
}
|
|
31408
30820
|
get el() { return getElement(this); }
|
|
31409
30821
|
static get watchers() { return {
|
|
@@ -31998,14 +31410,14 @@ class Segment {
|
|
|
31998
31410
|
}
|
|
31999
31411
|
render() {
|
|
32000
31412
|
const mode = getIonMode$1(this);
|
|
32001
|
-
return (hAsync(Host, { key: '
|
|
31413
|
+
return (hAsync(Host, { key: 'a64e39352050b516f7dc82ce95a4bcff8431d1d0', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
32002
31414
|
[mode]: true,
|
|
32003
31415
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32004
31416
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
32005
31417
|
'segment-activated': this.activated,
|
|
32006
31418
|
'segment-disabled': this.disabled,
|
|
32007
31419
|
'segment-scrollable': this.scrollable,
|
|
32008
|
-
}) }, hAsync("slot", { key: '
|
|
31420
|
+
}) }, hAsync("slot", { key: 'bb3f3ec30e59e0461fa620d8961ab730cc802a4e', onSlotchange: this.onSlottedItemsChange })));
|
|
32009
31421
|
}
|
|
32010
31422
|
get el() { return getElement(this); }
|
|
32011
31423
|
static get watchers() { return {
|
|
@@ -32145,7 +31557,7 @@ class SegmentButton {
|
|
|
32145
31557
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
32146
31558
|
const mode = getIonMode$1(this);
|
|
32147
31559
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
32148
|
-
return (hAsync(Host, { key: '
|
|
31560
|
+
return (hAsync(Host, { key: 'd79dad80db69123510c6d52bbf4424558600c14a', class: {
|
|
32149
31561
|
[mode]: true,
|
|
32150
31562
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32151
31563
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -32161,7 +31573,7 @@ class SegmentButton {
|
|
|
32161
31573
|
'ion-activatable': true,
|
|
32162
31574
|
'ion-activatable-instant': true,
|
|
32163
31575
|
'ion-focusable': true,
|
|
32164
|
-
} }, hAsync("button", Object.assign({ key: '
|
|
31576
|
+
} }, hAsync("button", Object.assign({ key: '781fd7fef443a2fbd404b8a399d1203794759a69', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: '64df08f60ea17481183f8ad284884b9979eaeb24', class: "button-inner" }, hAsync("slot", { key: '2b7ef328023ab5ccc0adc6f865e5e7121467eeb8' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '1fd5e6179227925a03b6c3b5258bbf4ea99bfef1' })), hAsync("div", { key: 'dbcedad6988b0eadeebe02bdafdedb8eb37af19c', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: 'f4f1789f66bdfa2de5445bc0d292116a93bad7cc', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
32165
31577
|
}
|
|
32166
31578
|
get el() { return getElement(this); }
|
|
32167
31579
|
static get watchers() { return {
|
|
@@ -32196,7 +31608,7 @@ class SegmentContent {
|
|
|
32196
31608
|
registerInstance(this, hostRef);
|
|
32197
31609
|
}
|
|
32198
31610
|
render() {
|
|
32199
|
-
return (hAsync(Host, { key: '
|
|
31611
|
+
return (hAsync(Host, { key: '64b3965b14c749e77e9ce13b59f349d971e245c8' }, hAsync("slot", { key: '2d0bed34f9bc93f92e713cb51e42220f3cecd8f5' })));
|
|
32200
31612
|
}
|
|
32201
31613
|
static get style() { return segmentContentCss; }
|
|
32202
31614
|
static get cmpMeta() { return {
|
|
@@ -32309,10 +31721,10 @@ class SegmentView {
|
|
|
32309
31721
|
}
|
|
32310
31722
|
render() {
|
|
32311
31723
|
const { disabled, isManualScroll } = this;
|
|
32312
|
-
return (hAsync(Host, { key: '
|
|
31724
|
+
return (hAsync(Host, { key: 'fa528d2d9ae0f00fc3067defe2a047dce77c814a', class: {
|
|
32313
31725
|
'segment-view-disabled': disabled,
|
|
32314
31726
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
32315
|
-
} }, hAsync("slot", { key: '
|
|
31727
|
+
} }, hAsync("slot", { key: '74dc8b4d073caeff1bab272d11b9ea3e1a215954' })));
|
|
32316
31728
|
}
|
|
32317
31729
|
get el() { return getElement(this); }
|
|
32318
31730
|
static get style() { return {
|
|
@@ -33051,7 +32463,7 @@ class Select {
|
|
|
33051
32463
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
33052
32464
|
*/
|
|
33053
32465
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
33054
|
-
return (hAsync(Host, { key: '
|
|
32466
|
+
return (hAsync(Host, { key: 'e6c0498d6c275f89344f4b5146752a047058ad88', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
33055
32467
|
[mode]: true,
|
|
33056
32468
|
'in-item': inItem,
|
|
33057
32469
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -33069,7 +32481,7 @@ class Select {
|
|
|
33069
32481
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
33070
32482
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
33071
32483
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
33072
|
-
}) }, hAsync("label", { key: '
|
|
32484
|
+
}) }, hAsync("label", { key: 'f030b6bd329f8014c7227f5e5f1aeb7efa0e641a', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), hAsync("div", { key: '7480e1b40d09e53a2942295d6c9dae474c9de810', class: "select-wrapper-inner" }, hAsync("slot", { key: '250fd2ff08b3e6ed04c7062455a044863481fe1c', name: "start" }), hAsync("div", { key: '11b73ad5b7decfe2d307f9d54293c21c0df3ddb8', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: 'ddedafc89061372567bd46354ef972f08c60e19d', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: '792ce27aea18a0020c17dceb0f0e293171ded3a3', class: "select-highlight" })), this.renderBottomContent()));
|
|
33073
32485
|
}
|
|
33074
32486
|
get el() { return getElement(this); }
|
|
33075
32487
|
static get watchers() { return {
|
|
@@ -33228,7 +32640,7 @@ class SelectModal {
|
|
|
33228
32640
|
} }, option.text))));
|
|
33229
32641
|
}
|
|
33230
32642
|
render() {
|
|
33231
|
-
return (hAsync(Host, { key: '
|
|
32643
|
+
return (hAsync(Host, { key: '885198a9f21884e3bfb9bf0af53e0ee3ae37b231', class: getIonMode$1(this) }, hAsync("ion-header", { key: 'd8b63726869747ac711e4fda78a50ce46f72970c' }, hAsync("ion-toolbar", { key: '9ab2a4c1480dd74eeae38d7b580a2e87fb71270e' }, this.header !== undefined && hAsync("ion-title", { key: '87a7034385ef57f55cefdd0371dbb66a64827290' }, this.header), hAsync("ion-buttons", { key: '0a35424ea13ca002abc9a43b6138730254f187d0', slot: "end" }, hAsync("ion-button", { key: '238bf40b47128d9aa995d14d9ff9ebcae4f79492', onClick: () => this.closeModal() }, "Close")))), hAsync("ion-content", { key: '4a256f3381f8cabbc7194337b8ae4aa1c3ab1066' }, hAsync("ion-list", { key: 'acd38fc52024632176467ed6a84106a454021544' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
33232
32644
|
}
|
|
33233
32645
|
get el() { return getElement(this); }
|
|
33234
32646
|
static get style() { return {
|
|
@@ -33262,7 +32674,7 @@ class SelectOption {
|
|
|
33262
32674
|
this.disabled = false;
|
|
33263
32675
|
}
|
|
33264
32676
|
render() {
|
|
33265
|
-
return hAsync(Host, { key: '
|
|
32677
|
+
return hAsync(Host, { key: '8c96c199ce3a3065de3fe446500f567236e0610a', role: "option", id: this.inputId, class: getIonMode$1(this) });
|
|
33266
32678
|
}
|
|
33267
32679
|
get el() { return getElement(this); }
|
|
33268
32680
|
static get style() { return selectOptionCss; }
|
|
@@ -33379,7 +32791,7 @@ class SelectPopover {
|
|
|
33379
32791
|
render() {
|
|
33380
32792
|
const { header, message, options, subHeader } = this;
|
|
33381
32793
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
33382
|
-
return (hAsync(Host, { key: '
|
|
32794
|
+
return (hAsync(Host, { key: '542367ab8fb72bfebf7e65630b91017d68827fd6', class: getIonMode$1(this) }, hAsync("ion-list", { key: 'f2f0f37e1365cd7780b02de1a1698700d0df48a7' }, header !== undefined && hAsync("ion-list-header", { key: '4b8800a68e800f19277a44b7074ca24b70218daf' }, header), hasSubHeaderOrMessage && (hAsync("ion-item", { key: '932b7903daf97d5a57d289b7ee49e868bb9b0cf5' }, hAsync("ion-label", { key: 'fc3f1b69aa2a0bc6125d35692dcad3a8a99fd160', class: "ion-text-wrap" }, subHeader !== undefined && hAsync("h3", { key: 'eceab2f47afa95f04b138342b0bdbfa1f50919a8' }, subHeader), message !== undefined && hAsync("p", { key: '70f4e27ad1316318efd0c17efce31e5e45c8fa02' }, message)))), this.renderOptions(options))));
|
|
33383
32795
|
}
|
|
33384
32796
|
get el() { return getElement(this); }
|
|
33385
32797
|
static get style() { return {
|
|
@@ -33429,11 +32841,11 @@ class SkeletonText {
|
|
|
33429
32841
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
33430
32842
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
33431
32843
|
const mode = getIonMode$1(this);
|
|
33432
|
-
return (hAsync(Host, { key: '
|
|
32844
|
+
return (hAsync(Host, { key: 'c193f9a8e8efab5139544f047bdae4b6d421aa86', class: {
|
|
33433
32845
|
[mode]: true,
|
|
33434
32846
|
'skeleton-text-animated': animated,
|
|
33435
32847
|
'in-media': inMedia,
|
|
33436
|
-
} }, hAsync("span", { key: '
|
|
32848
|
+
} }, hAsync("span", { key: 'e15db679bd3c359b4df5123efd2f92e5b380fde3' }, "\u00A0")));
|
|
33437
32849
|
}
|
|
33438
32850
|
get el() { return getElement(this); }
|
|
33439
32851
|
static get style() { return skeletonTextCss; }
|
|
@@ -33485,7 +32897,7 @@ class Spinner {
|
|
|
33485
32897
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
33486
32898
|
}
|
|
33487
32899
|
}
|
|
33488
|
-
return (hAsync(Host, { key: '
|
|
32900
|
+
return (hAsync(Host, { key: 'e0dfa8a3ee2a0469eb31323f506750bd77d65797', class: createColorClasses$1(self.color, {
|
|
33489
32901
|
[mode]: true,
|
|
33490
32902
|
[`spinner-${spinnerName}`]: true,
|
|
33491
32903
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -33584,12 +32996,12 @@ class SplitPane {
|
|
|
33584
32996
|
}
|
|
33585
32997
|
render() {
|
|
33586
32998
|
const mode = getIonMode$1(this);
|
|
33587
|
-
return (hAsync(Host, { key: '
|
|
32999
|
+
return (hAsync(Host, { key: '098801b5a318e2fc6913fb0d9079b1552927b99b', class: {
|
|
33588
33000
|
[mode]: true,
|
|
33589
33001
|
// Used internally for styling
|
|
33590
33002
|
[`split-pane-${mode}`]: true,
|
|
33591
33003
|
'split-pane-visible': this.visible,
|
|
33592
|
-
} }, hAsync("slot", { key: '
|
|
33004
|
+
} }, hAsync("slot", { key: '8cbc6a942ecba54fc3c62027d46917db067b65c8' })));
|
|
33593
33005
|
}
|
|
33594
33006
|
get el() { return getElement(this); }
|
|
33595
33007
|
static get watchers() { return {
|
|
@@ -33655,10 +33067,10 @@ class Tab {
|
|
|
33655
33067
|
}
|
|
33656
33068
|
render() {
|
|
33657
33069
|
const { tab, active, component } = this;
|
|
33658
|
-
return (hAsync(Host, { key: '
|
|
33070
|
+
return (hAsync(Host, { key: 'c36c113e74e12b58459df9e3b546ad4856187e90', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
33659
33071
|
'ion-page': component === undefined,
|
|
33660
33072
|
'tab-hidden': !active,
|
|
33661
|
-
} }, hAsync("slot", { key: '
|
|
33073
|
+
} }, hAsync("slot", { key: '0d7821dac70ba7a12edfb3331988f3df1566cc1a' })));
|
|
33662
33074
|
}
|
|
33663
33075
|
get el() { return getElement(this); }
|
|
33664
33076
|
static get watchers() { return {
|
|
@@ -33737,11 +33149,11 @@ class TabBar {
|
|
|
33737
33149
|
const { color, translucent, keyboardVisible } = this;
|
|
33738
33150
|
const mode = getIonMode$1(this);
|
|
33739
33151
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
33740
|
-
return (hAsync(Host, { key: '
|
|
33152
|
+
return (hAsync(Host, { key: '62303a7f9d8c98ffab51a5900c144c5117b9c543', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
33741
33153
|
[mode]: true,
|
|
33742
33154
|
'tab-bar-translucent': translucent,
|
|
33743
33155
|
'tab-bar-hidden': shouldHide,
|
|
33744
|
-
}) }, hAsync("slot", { key: '
|
|
33156
|
+
}) }, hAsync("slot", { key: '5771a9828f748c2bd6b5e26758b9723c6b3de5ff' })));
|
|
33745
33157
|
}
|
|
33746
33158
|
get el() { return getElement(this); }
|
|
33747
33159
|
static get watchers() { return {
|
|
@@ -33837,7 +33249,7 @@ class TabButton {
|
|
|
33837
33249
|
rel,
|
|
33838
33250
|
target,
|
|
33839
33251
|
};
|
|
33840
|
-
return (hAsync(Host, { key: '
|
|
33252
|
+
return (hAsync(Host, { key: 'a86d441d8df350fe991f2f948fc6b6ad007728f7', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
33841
33253
|
[mode]: true,
|
|
33842
33254
|
'tab-selected': selected,
|
|
33843
33255
|
'tab-disabled': disabled,
|
|
@@ -33849,7 +33261,7 @@ class TabButton {
|
|
|
33849
33261
|
'ion-activatable': true,
|
|
33850
33262
|
'ion-selectable': true,
|
|
33851
33263
|
'ion-focusable': true,
|
|
33852
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
33264
|
+
} }, hAsync("a", Object.assign({ key: '8dfe1ccff2cf21601c5aea7f7f877c0fbe384e09' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), hAsync("span", { key: '3f557cf6e96e22b9318b4aee19ede810eb7fb720', class: "button-inner" }, hAsync("slot", { key: '836dd090dbe3c2ea97dc263fca7d01dea6ea0eb6' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '488a924fd04602c1b23e03d1a4c84dfa0f2ca03d', type: "unbounded" }))));
|
|
33853
33265
|
}
|
|
33854
33266
|
get el() { return getElement(this); }
|
|
33855
33267
|
static get style() { return {
|
|
@@ -34024,7 +33436,7 @@ class Tabs {
|
|
|
34024
33436
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
34025
33437
|
}
|
|
34026
33438
|
render() {
|
|
34027
|
-
return (hAsync(Host, { key: '
|
|
33439
|
+
return (hAsync(Host, { key: '20b97196d78c1b3f3faf31618a8a2347e087f06b', onIonTabButtonClick: this.onTabClicked }, hAsync("slot", { key: 'b0823fbae6e47743cfd12c376b365ad7e32cec7c', name: "top" }), hAsync("div", { key: 'eaffd7e4d69ab9489a387e3bbb36e3bab72203a0', class: "tabs-inner" }, hAsync("slot", { key: '20bb66a2937e3ec473aa59c4075ce581b5411677' })), hAsync("slot", { key: '1529dd361f050f52074f51c73b3982ba827dc3a5', name: "bottom" })));
|
|
34028
33440
|
}
|
|
34029
33441
|
get el() { return getElement(this); }
|
|
34030
33442
|
static get style() { return tabsCss; }
|
|
@@ -34064,9 +33476,9 @@ class Text {
|
|
|
34064
33476
|
}
|
|
34065
33477
|
render() {
|
|
34066
33478
|
const mode = getIonMode$1(this);
|
|
34067
|
-
return (hAsync(Host, { key: '
|
|
33479
|
+
return (hAsync(Host, { key: '0c2546ea3f24b0a6bfd606199441d0a4edfa4ca1', class: createColorClasses$1(this.color, {
|
|
34068
33480
|
[mode]: true,
|
|
34069
|
-
}) }, hAsync("slot", { key: '
|
|
33481
|
+
}) }, hAsync("slot", { key: 'b7623ccb06f9461090a1f33e9f85886c7a4d5eff' })));
|
|
34070
33482
|
}
|
|
34071
33483
|
static get style() { return textCss; }
|
|
34072
33484
|
static get cmpMeta() { return {
|
|
@@ -34505,7 +33917,7 @@ class Textarea {
|
|
|
34505
33917
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
34506
33918
|
*/
|
|
34507
33919
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
34508
|
-
return (hAsync(Host, { key: '
|
|
33920
|
+
return (hAsync(Host, { key: 'f53b9060248d885b0b8639401871e52017e497db', class: createColorClasses$1(this.color, {
|
|
34509
33921
|
[mode]: true,
|
|
34510
33922
|
'has-value': hasValue,
|
|
34511
33923
|
'has-focus': hasFocus,
|
|
@@ -34514,7 +33926,7 @@ class Textarea {
|
|
|
34514
33926
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
34515
33927
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
34516
33928
|
'textarea-disabled': disabled,
|
|
34517
|
-
}) }, hAsync("label", { key: '
|
|
33929
|
+
}) }, hAsync("label", { key: '3bc32a0799d1dd7253eb5a963877964de620ccd0', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), hAsync("div", { key: 'f5302723f4561b179b249cb28f5a31223c5c4394', class: "textarea-wrapper-inner" }, hAsync("div", { key: '75b85c5bd85af72a41da3310f10877a654397eaf', class: "start-slot-wrapper" }, hAsync("slot", { key: '7adc67b4c2917d20c35eecc11a5530e93bc581ea', name: "start" })), hAsync("div", { key: '35cbeca046ec7a40bcbcbc4a70eb83628350ba54', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, hAsync("textarea", Object.assign({ key: 'e3496262d163b70558a0188abdf322cbd8b44dfd', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === this.errorTextId }, this.inheritedAttributes), value)), hAsync("div", { key: 'f274576d2e0bb6dace2ec36c362cb68ecfcd2c69', class: "end-slot-wrapper" }, hAsync("slot", { key: '70c881103410e74b3a3ffda4cc889be66f89bf20', name: "end" }))), shouldRenderHighlight && hAsync("div", { key: 'cf33a473dfb637d284acc2b62ca59c2839ee1104', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
34518
33930
|
}
|
|
34519
33931
|
get el() { return getElement(this); }
|
|
34520
33932
|
static get watchers() { return {
|
|
@@ -34576,7 +33988,7 @@ class Thumbnail {
|
|
|
34576
33988
|
registerInstance(this, hostRef);
|
|
34577
33989
|
}
|
|
34578
33990
|
render() {
|
|
34579
|
-
return (hAsync(Host, { key: '
|
|
33991
|
+
return (hAsync(Host, { key: '7f5fd6c056da2d82feb2c3c33f3e6dec898787f5', class: getIonMode$1(this) }, hAsync("slot", { key: 'd15fd2b6cdc03777edc1930be95ad838e1b376c8' })));
|
|
34580
33992
|
}
|
|
34581
33993
|
static get style() { return thumbnailCss; }
|
|
34582
33994
|
static get cmpMeta() { return {
|
|
@@ -35435,9 +34847,9 @@ class Toast {
|
|
|
35435
34847
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
35436
34848
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
35437
34849
|
}
|
|
35438
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
34850
|
+
return (hAsync(Host, Object.assign({ key: 'a2216d860255c99337464370dcb12f6125871a50', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
35439
34851
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
35440
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
34852
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: 'd5adf8bc4c6c52431600033a76c4795689f9b412', class: wrapperClass }, hAsync("div", { key: 'ab694497ae37ceba123217eb48800129b9bebb84', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: '224854fa3989ce0eb69416cb5b0cc55fc9f131ea', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: 'c8e11fb5bdac202987f5c8613a0ebbd42bda946e', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
35441
34853
|
}
|
|
35442
34854
|
get el() { return getElement(this); }
|
|
35443
34855
|
static get watchers() { return {
|
|
@@ -35732,7 +35144,7 @@ class Toggle {
|
|
|
35732
35144
|
const value = this.getValue();
|
|
35733
35145
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
35734
35146
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
35735
|
-
return (hAsync(Host, { key: '
|
|
35147
|
+
return (hAsync(Host, { key: '4a79e050a8ec58650ca13c8ac087891dc608013b', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === errorTextId, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, class: createColorClasses$1(color, {
|
|
35736
35148
|
[mode]: true,
|
|
35737
35149
|
'in-item': hostContext('ion-item', el),
|
|
35738
35150
|
'toggle-activated': activated,
|
|
@@ -35742,10 +35154,10 @@ class Toggle {
|
|
|
35742
35154
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
35743
35155
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
35744
35156
|
[`toggle-${rtl}`]: true,
|
|
35745
|
-
}) }, hAsync("label", { key: '
|
|
35157
|
+
}) }, hAsync("label", { key: 'a733a3b0e458b917f12c1c6495fbb5f2455ff828', class: "toggle-wrapper", htmlFor: inputId }, hAsync("input", Object.assign({ key: '95fdd95755fe4d972a07d1dfa2865a26b9be519c', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, inheritedAttributes)), hAsync("div", { key: '8207caf19f2679e40bd23eacd694c24ea5819916', class: {
|
|
35746
35158
|
'label-text-wrapper': true,
|
|
35747
35159
|
'label-text-wrapper-hidden': !hasLabel,
|
|
35748
|
-
}, part: "label", id: inputLabelId }, hAsync("slot", { key: '
|
|
35160
|
+
}, part: "label", id: inputLabelId }, hAsync("slot", { key: '4555e00e2997e0a20d2e2f736e7b048c2de5320e' }), this.renderHintText()), hAsync("div", { key: 'b60d3e41561cf2ae46fb6de09f5590fa127a6172', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
35749
35161
|
}
|
|
35750
35162
|
get el() { return getElement(this); }
|
|
35751
35163
|
static get watchers() { return {
|
|
@@ -35853,10 +35265,10 @@ class Toolbar {
|
|
|
35853
35265
|
this.childrenStyles.forEach((value) => {
|
|
35854
35266
|
Object.assign(childStyles, value);
|
|
35855
35267
|
});
|
|
35856
|
-
return (hAsync(Host, { key: '
|
|
35268
|
+
return (hAsync(Host, { key: '402afe7ce0c97883cedd0e48a5a0492a9bfe76ae', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
35857
35269
|
[mode]: true,
|
|
35858
35270
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
35859
|
-
})) }, hAsync("div", { key: '
|
|
35271
|
+
})) }, hAsync("div", { key: '2465a6dc8d507ec650538378d1be2abd399c58ad', class: "toolbar-background", part: "background" }), hAsync("div", { key: '6075096afd12303b961e4fe9ad345ef2887573af', class: "toolbar-container", part: "container" }, hAsync("slot", { key: '8b7eec1148cfeb339d87cdf9273f2104703e7601', name: "start" }), hAsync("slot", { key: 'b102d3926cade24faf78b7af78ad5e192c4c0308', name: "secondary" }), hAsync("div", { key: 'c6ab2e978328324c6f9e7892024cbcd8b8987067', class: "toolbar-content", part: "content" }, hAsync("slot", { key: '86f8952c4355a9df5b4bbb95e9d0cafefd272d5b' })), hAsync("slot", { key: '501e43431da6b9dd35b47b79222f948d445f7a78', name: "primary" }), hAsync("slot", { key: '84bf1a15a5e52e8e94df9f479c4ce18004f5ab57', name: "end" }))));
|
|
35860
35272
|
}
|
|
35861
35273
|
get el() { return getElement(this); }
|
|
35862
35274
|
static get style() { return {
|
|
@@ -35902,11 +35314,11 @@ class ToolbarTitle {
|
|
|
35902
35314
|
render() {
|
|
35903
35315
|
const mode = getIonMode$1(this);
|
|
35904
35316
|
const size = this.getSize();
|
|
35905
|
-
return (hAsync(Host, { key: '
|
|
35317
|
+
return (hAsync(Host, { key: '3f7b19c99961dbb86c0a925218332528b22e6880', class: createColorClasses$1(this.color, {
|
|
35906
35318
|
[mode]: true,
|
|
35907
35319
|
[`title-${size}`]: true,
|
|
35908
35320
|
'title-rtl': document.dir === 'rtl',
|
|
35909
|
-
}) }, hAsync("div", { key: '
|
|
35321
|
+
}) }, hAsync("div", { key: '12054fbdd60e40a15875e442c20143766fc34fc3', class: "toolbar-title" }, hAsync("slot", { key: '9f14fb14a67d4bd1e4536a4d64a637fbe5a151c7' }))));
|
|
35910
35322
|
}
|
|
35911
35323
|
get el() { return getElement(this); }
|
|
35912
35324
|
static get watchers() { return {
|
|
@@ -35965,7 +35377,6 @@ registerComponents([
|
|
|
35965
35377
|
InfiniteScroll,
|
|
35966
35378
|
InfiniteScrollContent,
|
|
35967
35379
|
Input,
|
|
35968
|
-
InputOTP,
|
|
35969
35380
|
InputPasswordToggle,
|
|
35970
35381
|
Item,
|
|
35971
35382
|
ItemDivider,
|