@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.js
CHANGED
|
@@ -2874,9 +2874,6 @@ var setContentReference = (elm) => {
|
|
|
2874
2874
|
contentRefElm["s-cn"] = true;
|
|
2875
2875
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2876
2876
|
};
|
|
2877
|
-
|
|
2878
|
-
// src/runtime/fragment.ts
|
|
2879
|
-
var Fragment = (_, children) => children;
|
|
2880
2877
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2881
2878
|
if (listeners && win$2.document) {
|
|
2882
2879
|
listeners.map(([flags, name, method]) => {
|
|
@@ -16414,7 +16411,7 @@ class Input {
|
|
|
16414
16411
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
16415
16412
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
16416
16413
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
16417
|
-
this.inputId = `ion-input-${inputIds
|
|
16414
|
+
this.inputId = `ion-input-${inputIds++}`;
|
|
16418
16415
|
this.helperTextId = `${this.inputId}-helper-text`;
|
|
16419
16416
|
this.errorTextId = `${this.inputId}-error-text`;
|
|
16420
16417
|
this.inheritedAttributes = {};
|
|
@@ -16945,591 +16942,6 @@ class Input {
|
|
|
16945
16942
|
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
16946
16943
|
}; }
|
|
16947
16944
|
}
|
|
16948
|
-
let inputIds$1 = 0;
|
|
16949
|
-
|
|
16950
|
-
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))))}";
|
|
16951
|
-
|
|
16952
|
-
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))}";
|
|
16953
|
-
|
|
16954
|
-
class InputOTP {
|
|
16955
|
-
constructor(hostRef) {
|
|
16956
|
-
registerInstance(this, hostRef);
|
|
16957
|
-
this.ionInput = createEvent(this, "ionInput", 7);
|
|
16958
|
-
this.ionChange = createEvent(this, "ionChange", 7);
|
|
16959
|
-
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
16960
|
-
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
16961
|
-
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
16962
|
-
this.inputRefs = [];
|
|
16963
|
-
this.inputId = `ion-input-otp-${inputIds++}`;
|
|
16964
|
-
this.parsedSeparators = [];
|
|
16965
|
-
/**
|
|
16966
|
-
* Tracks whether the user is navigating through input boxes using keyboard navigation
|
|
16967
|
-
* (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
|
|
16968
|
-
* focus behavior when an input box is focused.
|
|
16969
|
-
*/
|
|
16970
|
-
this.isKeyboardNavigation = false;
|
|
16971
|
-
this.inputValues = [];
|
|
16972
|
-
this.hasFocus = false;
|
|
16973
|
-
/**
|
|
16974
|
-
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
16975
|
-
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
16976
|
-
*/
|
|
16977
|
-
this.autocapitalize = 'off';
|
|
16978
|
-
/**
|
|
16979
|
-
* If `true`, the user cannot interact with the input.
|
|
16980
|
-
*/
|
|
16981
|
-
this.disabled = false;
|
|
16982
|
-
/**
|
|
16983
|
-
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If
|
|
16984
|
-
* `"outline"` the input boxes will be transparent with a border.
|
|
16985
|
-
*/
|
|
16986
|
-
this.fill = 'outline';
|
|
16987
|
-
/**
|
|
16988
|
-
* The number of input boxes to display.
|
|
16989
|
-
*/
|
|
16990
|
-
this.length = 4;
|
|
16991
|
-
/**
|
|
16992
|
-
* If `true`, the user cannot modify the value.
|
|
16993
|
-
*/
|
|
16994
|
-
this.readonly = false;
|
|
16995
|
-
/**
|
|
16996
|
-
* The size of the input boxes.
|
|
16997
|
-
*/
|
|
16998
|
-
this.size = 'medium';
|
|
16999
|
-
/**
|
|
17000
|
-
* The shape of the input boxes.
|
|
17001
|
-
* If "round" they will have an increased border radius.
|
|
17002
|
-
* If "rectangular" they will have no border radius.
|
|
17003
|
-
* If "soft" they will have a soft border radius.
|
|
17004
|
-
*/
|
|
17005
|
-
this.shape = 'round';
|
|
17006
|
-
/**
|
|
17007
|
-
* The type of input allowed in the input boxes.
|
|
17008
|
-
*/
|
|
17009
|
-
this.type = 'number';
|
|
17010
|
-
/**
|
|
17011
|
-
* The value of the input group.
|
|
17012
|
-
*/
|
|
17013
|
-
this.value = '';
|
|
17014
|
-
this.onInput = (index) => (event) => {
|
|
17015
|
-
const { validKeyPattern } = this;
|
|
17016
|
-
const value = event.target.value;
|
|
17017
|
-
// Only allow input if it's a single character and matches the pattern
|
|
17018
|
-
if (value.length > 1 || (value.length > 0 && !validKeyPattern.test(value))) {
|
|
17019
|
-
// Reset the input value if not valid
|
|
17020
|
-
this.inputRefs[index].value = '';
|
|
17021
|
-
this.inputValues[index] = '';
|
|
17022
|
-
return;
|
|
17023
|
-
}
|
|
17024
|
-
// Find the first empty box before or at the current index
|
|
17025
|
-
let targetIndex = index;
|
|
17026
|
-
for (let i = 0; i < index; i++) {
|
|
17027
|
-
if (!this.inputValues[i] || this.inputValues[i] === '') {
|
|
17028
|
-
targetIndex = i;
|
|
17029
|
-
break;
|
|
17030
|
-
}
|
|
17031
|
-
}
|
|
17032
|
-
// Set the value at the target index
|
|
17033
|
-
this.inputValues[targetIndex] = value;
|
|
17034
|
-
// If the value was entered in a later box, clear the current box
|
|
17035
|
-
if (targetIndex !== index) {
|
|
17036
|
-
this.inputRefs[index].value = '';
|
|
17037
|
-
}
|
|
17038
|
-
if (value.length > 0) {
|
|
17039
|
-
this.focusNext(targetIndex);
|
|
17040
|
-
}
|
|
17041
|
-
this.updateValue(event);
|
|
17042
|
-
};
|
|
17043
|
-
/**
|
|
17044
|
-
* Handles keyboard navigation and input for the OTP component.
|
|
17045
|
-
*
|
|
17046
|
-
* Navigation:
|
|
17047
|
-
* - Backspace: Clears current input and moves to previous box if empty
|
|
17048
|
-
* - Arrow Left/Right: Moves focus between input boxes
|
|
17049
|
-
* - Tab: Allows normal tab navigation between components
|
|
17050
|
-
*
|
|
17051
|
-
* Input Behavior:
|
|
17052
|
-
* - Validates input against the allowed pattern
|
|
17053
|
-
* - When entering a key in a filled box:
|
|
17054
|
-
* - Shifts existing values right if there is room
|
|
17055
|
-
* - Updates the value of the input group
|
|
17056
|
-
* - Prevents default behavior to avoid automatic focus shift
|
|
17057
|
-
*/
|
|
17058
|
-
this.onKeyDown = (index) => (event) => {
|
|
17059
|
-
const { length } = this;
|
|
17060
|
-
const rtl = isRTL$1(this.el);
|
|
17061
|
-
const input = event.target;
|
|
17062
|
-
const isPasteShortcut = (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'v';
|
|
17063
|
-
const isTextSelection = input.selectionStart !== input.selectionEnd;
|
|
17064
|
-
// Return if the key is the paste shortcut or the input value
|
|
17065
|
-
// text is selected and let the onPaste / onInput handler manage it
|
|
17066
|
-
if (isPasteShortcut || isTextSelection) {
|
|
17067
|
-
return;
|
|
17068
|
-
}
|
|
17069
|
-
if (event.key === 'Backspace') {
|
|
17070
|
-
if (this.inputValues[index]) {
|
|
17071
|
-
// Shift all values to the right of the current index left by one
|
|
17072
|
-
for (let i = index; i < length - 1; i++) {
|
|
17073
|
-
this.inputValues[i] = this.inputValues[i + 1];
|
|
17074
|
-
}
|
|
17075
|
-
// Clear the last box
|
|
17076
|
-
this.inputValues[length - 1] = '';
|
|
17077
|
-
// Update all inputRefs to match inputValues
|
|
17078
|
-
for (let i = 0; i < length; i++) {
|
|
17079
|
-
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
17080
|
-
}
|
|
17081
|
-
this.updateValue(event);
|
|
17082
|
-
event.preventDefault();
|
|
17083
|
-
}
|
|
17084
|
-
else if (!this.inputValues[index] && index > 0) {
|
|
17085
|
-
// If current input is empty, move to previous input
|
|
17086
|
-
this.focusPrevious(index);
|
|
17087
|
-
}
|
|
17088
|
-
}
|
|
17089
|
-
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
|
17090
|
-
this.isKeyboardNavigation = true;
|
|
17091
|
-
event.preventDefault();
|
|
17092
|
-
const isLeft = event.key === 'ArrowLeft';
|
|
17093
|
-
const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
|
|
17094
|
-
// Only allow moving to the next input if the current has a value
|
|
17095
|
-
if (shouldMoveNext) {
|
|
17096
|
-
if (this.inputValues[index] && index < length - 1) {
|
|
17097
|
-
this.focusNext(index);
|
|
17098
|
-
}
|
|
17099
|
-
}
|
|
17100
|
-
else {
|
|
17101
|
-
this.focusPrevious(index);
|
|
17102
|
-
}
|
|
17103
|
-
}
|
|
17104
|
-
else if (event.key === 'Tab') {
|
|
17105
|
-
this.isKeyboardNavigation = true;
|
|
17106
|
-
// Let all tab events proceed normally
|
|
17107
|
-
return;
|
|
17108
|
-
}
|
|
17109
|
-
// If the input box contains a value and the key being
|
|
17110
|
-
// entered is a valid key for the input box update the value
|
|
17111
|
-
// and shift the values to the right if there is room.
|
|
17112
|
-
if (this.inputValues[index] && this.validKeyPattern.test(event.key)) {
|
|
17113
|
-
if (!this.inputValues[length - 1]) {
|
|
17114
|
-
for (let i = length - 1; i > index; i--) {
|
|
17115
|
-
this.inputValues[i] = this.inputValues[i - 1];
|
|
17116
|
-
this.inputRefs[i].value = this.inputValues[i] || '';
|
|
17117
|
-
}
|
|
17118
|
-
}
|
|
17119
|
-
this.inputValues[index] = event.key;
|
|
17120
|
-
this.inputRefs[index].value = event.key;
|
|
17121
|
-
this.updateValue(event);
|
|
17122
|
-
// Prevent default to avoid the browser from
|
|
17123
|
-
// automatically moving the focus to the next input
|
|
17124
|
-
event.preventDefault();
|
|
17125
|
-
}
|
|
17126
|
-
};
|
|
17127
|
-
/**
|
|
17128
|
-
* Handles pasting text into the input OTP component.
|
|
17129
|
-
* This function prevents the default paste behavior and
|
|
17130
|
-
* validates the pasted text against the allowed pattern.
|
|
17131
|
-
* It then updates the value of the input group and focuses
|
|
17132
|
-
* the next empty input after pasting.
|
|
17133
|
-
*/
|
|
17134
|
-
this.onPaste = (event) => {
|
|
17135
|
-
var _a, _b, _c;
|
|
17136
|
-
const { inputRefs, length, validKeyPattern } = this;
|
|
17137
|
-
event.preventDefault();
|
|
17138
|
-
const pastedText = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
17139
|
-
// If there is no pasted text, still emit the input change event
|
|
17140
|
-
// because this is how the native input element behaves
|
|
17141
|
-
// but return early because there is nothing to paste.
|
|
17142
|
-
if (!pastedText) {
|
|
17143
|
-
this.emitIonInput(event);
|
|
17144
|
-
return;
|
|
17145
|
-
}
|
|
17146
|
-
const validChars = pastedText
|
|
17147
|
-
.split('')
|
|
17148
|
-
.filter((char) => validKeyPattern.test(char))
|
|
17149
|
-
.slice(0, length);
|
|
17150
|
-
// Find the first empty input
|
|
17151
|
-
const startIndex = this.getFirstEmptyIndex();
|
|
17152
|
-
// If all boxes are filled, start at 0
|
|
17153
|
-
const pasteStart = startIndex === -1 ? 0 : startIndex;
|
|
17154
|
-
validChars.forEach((char, index) => {
|
|
17155
|
-
const targetIndex = pasteStart + index;
|
|
17156
|
-
if (targetIndex < length) {
|
|
17157
|
-
this.inputRefs[targetIndex].value = char;
|
|
17158
|
-
this.inputValues[targetIndex] = char;
|
|
17159
|
-
}
|
|
17160
|
-
});
|
|
17161
|
-
this.updateValue(event);
|
|
17162
|
-
// Focus the next empty input after pasting
|
|
17163
|
-
// If all boxes are filled, focus the last input
|
|
17164
|
-
const nextEmptyIndex = pasteStart + validChars.length;
|
|
17165
|
-
if (nextEmptyIndex < length) {
|
|
17166
|
-
(_b = inputRefs[nextEmptyIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17167
|
-
}
|
|
17168
|
-
else {
|
|
17169
|
-
(_c = inputRefs[length - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
17170
|
-
}
|
|
17171
|
-
};
|
|
17172
|
-
/**
|
|
17173
|
-
* Handles the focus behavior for the input OTP component.
|
|
17174
|
-
*
|
|
17175
|
-
* Focus behavior:
|
|
17176
|
-
* 1. Keyboard navigation: Allow normal focus movement
|
|
17177
|
-
* 2. Mouse click:
|
|
17178
|
-
* - If clicked box has value: Focus that box
|
|
17179
|
-
* - If clicked box is empty: Focus first empty box
|
|
17180
|
-
*
|
|
17181
|
-
* Emits the `ionFocus` event when the input group gains focus.
|
|
17182
|
-
*/
|
|
17183
|
-
this.onFocus = (index) => (event) => {
|
|
17184
|
-
var _a;
|
|
17185
|
-
const { inputRefs } = this;
|
|
17186
|
-
// Only emit ionFocus and set the focusedValue when the
|
|
17187
|
-
// component first gains focus
|
|
17188
|
-
if (!this.hasFocus) {
|
|
17189
|
-
this.ionFocus.emit(event);
|
|
17190
|
-
this.focusedValue = this.value;
|
|
17191
|
-
}
|
|
17192
|
-
this.hasFocus = true;
|
|
17193
|
-
let finalIndex = index;
|
|
17194
|
-
if (!this.isKeyboardNavigation) {
|
|
17195
|
-
// If the clicked box has a value, focus it
|
|
17196
|
-
// Otherwise focus the first empty box
|
|
17197
|
-
const targetIndex = this.inputValues[index] ? index : this.getFirstEmptyIndex();
|
|
17198
|
-
finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
|
|
17199
|
-
// Focus the target box
|
|
17200
|
-
(_a = this.inputRefs[finalIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17201
|
-
}
|
|
17202
|
-
// Update tabIndexes to match the focused box
|
|
17203
|
-
inputRefs.forEach((input, i) => {
|
|
17204
|
-
input.tabIndex = i === finalIndex ? 0 : -1;
|
|
17205
|
-
});
|
|
17206
|
-
// Reset the keyboard navigation flag
|
|
17207
|
-
this.isKeyboardNavigation = false;
|
|
17208
|
-
};
|
|
17209
|
-
/**
|
|
17210
|
-
* Handles the blur behavior for the input OTP component.
|
|
17211
|
-
* Emits the `ionBlur` event when the input group loses focus.
|
|
17212
|
-
*/
|
|
17213
|
-
this.onBlur = (event) => {
|
|
17214
|
-
const { inputRefs } = this;
|
|
17215
|
-
const relatedTarget = event.relatedTarget;
|
|
17216
|
-
// Do not emit blur if we're moving to another input box in the same component
|
|
17217
|
-
const isInternalFocus = relatedTarget != null && inputRefs.includes(relatedTarget);
|
|
17218
|
-
if (!isInternalFocus) {
|
|
17219
|
-
this.hasFocus = false;
|
|
17220
|
-
// Reset tabIndexes when focus leaves the component
|
|
17221
|
-
this.updateTabIndexes();
|
|
17222
|
-
// Always emit ionBlur when focus leaves the component
|
|
17223
|
-
this.ionBlur.emit(event);
|
|
17224
|
-
// Only emit ionChange if the value has actually changed
|
|
17225
|
-
if (this.focusedValue !== this.value) {
|
|
17226
|
-
this.emitIonChange(event);
|
|
17227
|
-
}
|
|
17228
|
-
}
|
|
17229
|
-
};
|
|
17230
|
-
}
|
|
17231
|
-
valueChanged() {
|
|
17232
|
-
this.initializeValues();
|
|
17233
|
-
}
|
|
17234
|
-
/**
|
|
17235
|
-
* Processes the separators prop into an array of numbers.
|
|
17236
|
-
*
|
|
17237
|
-
* If the separators prop is not provided, returns an empty array.
|
|
17238
|
-
* If the separators prop is 'all', returns an array of all valid positions (1 to length-1).
|
|
17239
|
-
* If the separators prop is an array, returns it as is.
|
|
17240
|
-
* If the separators prop is a string, splits it by commas and parses each part as a number.
|
|
17241
|
-
*
|
|
17242
|
-
* If the separators are greater than the input length, it will warn and ignore the separators.
|
|
17243
|
-
*/
|
|
17244
|
-
processSeparators() {
|
|
17245
|
-
const { separators, length } = this;
|
|
17246
|
-
if (separators === undefined) {
|
|
17247
|
-
this.parsedSeparators = [];
|
|
17248
|
-
return;
|
|
17249
|
-
}
|
|
17250
|
-
if (typeof separators === 'string' && separators !== 'all') {
|
|
17251
|
-
const isValidFormat = /^(\d+)(,\d+)*$/.test(separators);
|
|
17252
|
-
if (!isValidFormat) {
|
|
17253
|
-
printIonWarning(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${separators}`, this.el);
|
|
17254
|
-
this.parsedSeparators = [];
|
|
17255
|
-
return;
|
|
17256
|
-
}
|
|
17257
|
-
}
|
|
17258
|
-
let separatorValues;
|
|
17259
|
-
if (separators === 'all') {
|
|
17260
|
-
separatorValues = Array.from({ length: length - 1 }, (_, i) => i + 1);
|
|
17261
|
-
}
|
|
17262
|
-
else if (Array.isArray(separators)) {
|
|
17263
|
-
separatorValues = separators;
|
|
17264
|
-
}
|
|
17265
|
-
else {
|
|
17266
|
-
separatorValues = separators
|
|
17267
|
-
.split(',')
|
|
17268
|
-
.map((pos) => parseInt(pos, 10))
|
|
17269
|
-
.filter((pos) => !isNaN(pos));
|
|
17270
|
-
}
|
|
17271
|
-
// Check for duplicate separator positions
|
|
17272
|
-
const duplicates = separatorValues.filter((pos, index) => separatorValues.indexOf(pos) !== index);
|
|
17273
|
-
if (duplicates.length > 0) {
|
|
17274
|
-
printIonWarning(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${separators}`, this.el);
|
|
17275
|
-
}
|
|
17276
|
-
const invalidSeparators = separatorValues.filter((pos) => pos > length);
|
|
17277
|
-
if (invalidSeparators.length > 0) {
|
|
17278
|
-
printIonWarning(`[ion-input-otp] - The following separator positions are greater than the input length (${length}): ${invalidSeparators.join(', ')}. These separators will be ignored.`, this.el);
|
|
17279
|
-
}
|
|
17280
|
-
this.parsedSeparators = separatorValues.filter((pos) => pos <= length);
|
|
17281
|
-
}
|
|
17282
|
-
componentWillLoad() {
|
|
17283
|
-
this.processSeparators();
|
|
17284
|
-
this.initializeValues();
|
|
17285
|
-
}
|
|
17286
|
-
/**
|
|
17287
|
-
* Initializes the input values array based on the current value prop.
|
|
17288
|
-
* This splits the value into individual characters and validates them against
|
|
17289
|
-
* the allowed pattern. The values are then used as the values in the native
|
|
17290
|
-
* input boxes and the value of the input group is updated.
|
|
17291
|
-
*/
|
|
17292
|
-
initializeValues() {
|
|
17293
|
-
if (this.value != null && String(this.value).length > 0) {
|
|
17294
|
-
const chars = String(this.value).split('').slice(0, this.length);
|
|
17295
|
-
chars.forEach((char, index) => {
|
|
17296
|
-
if (this.validKeyPattern.test(char)) {
|
|
17297
|
-
this.inputValues[index] = char;
|
|
17298
|
-
}
|
|
17299
|
-
});
|
|
17300
|
-
// Update the value without emitting events
|
|
17301
|
-
this.value = this.inputValues.join('');
|
|
17302
|
-
}
|
|
17303
|
-
}
|
|
17304
|
-
/**
|
|
17305
|
-
* Resets the input values and focus state.
|
|
17306
|
-
*/
|
|
17307
|
-
async reset() {
|
|
17308
|
-
this.inputValues = Array(this.length).fill('');
|
|
17309
|
-
this.value = '';
|
|
17310
|
-
this.focusedValue = null;
|
|
17311
|
-
this.hasFocus = false;
|
|
17312
|
-
this.inputRefs.forEach((input) => {
|
|
17313
|
-
input.blur();
|
|
17314
|
-
});
|
|
17315
|
-
this.updateTabIndexes();
|
|
17316
|
-
}
|
|
17317
|
-
/**
|
|
17318
|
-
* Sets focus to an input box.
|
|
17319
|
-
* @param index - The index of the input box to focus (0-based).
|
|
17320
|
-
* If provided and the input box has a value, the input box at that index will be focused.
|
|
17321
|
-
* Otherwise, the first empty input box or the last input if all are filled will be focused.
|
|
17322
|
-
*/
|
|
17323
|
-
async setFocus(index) {
|
|
17324
|
-
var _a, _b;
|
|
17325
|
-
if (typeof index === 'number') {
|
|
17326
|
-
const validIndex = Math.max(0, Math.min(index, this.length - 1));
|
|
17327
|
-
(_a = this.inputRefs[validIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17328
|
-
}
|
|
17329
|
-
else {
|
|
17330
|
-
const tabbableIndex = this.getTabbableIndex();
|
|
17331
|
-
(_b = this.inputRefs[tabbableIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17332
|
-
}
|
|
17333
|
-
}
|
|
17334
|
-
/**
|
|
17335
|
-
* Get the regex pattern for allowed characters.
|
|
17336
|
-
* If a pattern is provided, use it to create a regex pattern
|
|
17337
|
-
* Otherwise, use the default regex pattern based on type
|
|
17338
|
-
*/
|
|
17339
|
-
get validKeyPattern() {
|
|
17340
|
-
return new RegExp(`^${this.getPattern()}$`, 'u');
|
|
17341
|
-
}
|
|
17342
|
-
/**
|
|
17343
|
-
* Gets the string pattern to pass to the input element
|
|
17344
|
-
* and use in the regex for allowed characters.
|
|
17345
|
-
*/
|
|
17346
|
-
getPattern() {
|
|
17347
|
-
const { pattern, type } = this;
|
|
17348
|
-
if (pattern) {
|
|
17349
|
-
return pattern;
|
|
17350
|
-
}
|
|
17351
|
-
return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]';
|
|
17352
|
-
}
|
|
17353
|
-
/**
|
|
17354
|
-
* Get the default value for inputmode.
|
|
17355
|
-
* If inputmode is provided, use it.
|
|
17356
|
-
* Otherwise, use the default inputmode based on type
|
|
17357
|
-
*/
|
|
17358
|
-
getInputmode() {
|
|
17359
|
-
const { inputmode } = this;
|
|
17360
|
-
if (inputmode) {
|
|
17361
|
-
return inputmode;
|
|
17362
|
-
}
|
|
17363
|
-
if (this.type == 'number') {
|
|
17364
|
-
return 'numeric';
|
|
17365
|
-
}
|
|
17366
|
-
else {
|
|
17367
|
-
return 'text';
|
|
17368
|
-
}
|
|
17369
|
-
}
|
|
17370
|
-
/**
|
|
17371
|
-
* Updates the value of the input group.
|
|
17372
|
-
* This updates the value of the input group and emits an `ionChange` event.
|
|
17373
|
-
* If all of the input boxes are filled, it emits an `ionComplete` event.
|
|
17374
|
-
*/
|
|
17375
|
-
updateValue(event) {
|
|
17376
|
-
const { inputValues, length } = this;
|
|
17377
|
-
const newValue = inputValues.join('');
|
|
17378
|
-
this.value = newValue;
|
|
17379
|
-
this.emitIonInput(event);
|
|
17380
|
-
if (newValue.length === length) {
|
|
17381
|
-
this.ionComplete.emit({ value: newValue });
|
|
17382
|
-
}
|
|
17383
|
-
}
|
|
17384
|
-
/**
|
|
17385
|
-
* Emits an `ionChange` event.
|
|
17386
|
-
* This API should be called for user committed changes.
|
|
17387
|
-
* This API should not be used for external value changes.
|
|
17388
|
-
*/
|
|
17389
|
-
emitIonChange(event) {
|
|
17390
|
-
const { value } = this;
|
|
17391
|
-
// Checks for both null and undefined values
|
|
17392
|
-
const newValue = value == null ? value : value.toString();
|
|
17393
|
-
this.ionChange.emit({ value: newValue, event });
|
|
17394
|
-
}
|
|
17395
|
-
/**
|
|
17396
|
-
* Emits an `ionInput` event.
|
|
17397
|
-
* This is used to emit the input value when the user types,
|
|
17398
|
-
* backspaces, or pastes.
|
|
17399
|
-
*/
|
|
17400
|
-
emitIonInput(event) {
|
|
17401
|
-
const { value } = this;
|
|
17402
|
-
// Checks for both null and undefined values
|
|
17403
|
-
const newValue = value == null ? value : value.toString();
|
|
17404
|
-
this.ionInput.emit({ value: newValue, event });
|
|
17405
|
-
}
|
|
17406
|
-
/**
|
|
17407
|
-
* Focuses the next input box.
|
|
17408
|
-
*/
|
|
17409
|
-
focusNext(currentIndex) {
|
|
17410
|
-
var _a;
|
|
17411
|
-
const { inputRefs, length } = this;
|
|
17412
|
-
if (currentIndex < length - 1) {
|
|
17413
|
-
(_a = inputRefs[currentIndex + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17414
|
-
}
|
|
17415
|
-
}
|
|
17416
|
-
/**
|
|
17417
|
-
* Focuses the previous input box.
|
|
17418
|
-
*/
|
|
17419
|
-
focusPrevious(currentIndex) {
|
|
17420
|
-
var _a;
|
|
17421
|
-
const { inputRefs } = this;
|
|
17422
|
-
if (currentIndex > 0) {
|
|
17423
|
-
(_a = inputRefs[currentIndex - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
17424
|
-
}
|
|
17425
|
-
}
|
|
17426
|
-
/**
|
|
17427
|
-
* Determines if a separator should be shown for a given index by
|
|
17428
|
-
* checking if the index is included in the parsed separators array.
|
|
17429
|
-
*/
|
|
17430
|
-
showSeparator(index) {
|
|
17431
|
-
const { length } = this;
|
|
17432
|
-
return this.parsedSeparators.includes(index + 1) && index < length - 1;
|
|
17433
|
-
}
|
|
17434
|
-
/**
|
|
17435
|
-
* Updates the tabIndexes for the input boxes.
|
|
17436
|
-
* This is used to ensure that the correct input is
|
|
17437
|
-
* focused when the user navigates using the tab key.
|
|
17438
|
-
*/
|
|
17439
|
-
updateTabIndexes() {
|
|
17440
|
-
const { inputRefs, inputValues, length } = this;
|
|
17441
|
-
// Find first empty index after any filled boxes
|
|
17442
|
-
let firstEmptyIndex = -1;
|
|
17443
|
-
for (let i = 0; i < length; i++) {
|
|
17444
|
-
if (!inputValues[i] || inputValues[i] === '') {
|
|
17445
|
-
firstEmptyIndex = i;
|
|
17446
|
-
break;
|
|
17447
|
-
}
|
|
17448
|
-
}
|
|
17449
|
-
// Update tabIndex for all inputs
|
|
17450
|
-
inputRefs.forEach((input, index) => {
|
|
17451
|
-
// If all boxes are filled, make the last box tabbable
|
|
17452
|
-
// Otherwise, make the first empty box tabbable
|
|
17453
|
-
const shouldBeTabbable = firstEmptyIndex === -1 ? index === length - 1 : firstEmptyIndex === index;
|
|
17454
|
-
input.tabIndex = shouldBeTabbable ? 0 : -1;
|
|
17455
|
-
});
|
|
17456
|
-
}
|
|
17457
|
-
/**
|
|
17458
|
-
* Searches through the input values and returns the index
|
|
17459
|
-
* of the first empty input.
|
|
17460
|
-
* Returns -1 if all inputs are filled.
|
|
17461
|
-
*/
|
|
17462
|
-
getFirstEmptyIndex() {
|
|
17463
|
-
var _a;
|
|
17464
|
-
const { inputValues, length } = this;
|
|
17465
|
-
// Create an array of the same length as the input OTP
|
|
17466
|
-
// and fill it with the input values
|
|
17467
|
-
const values = Array.from({ length }, (_, i) => inputValues[i] || '');
|
|
17468
|
-
return (_a = values.findIndex((value) => !value || value === '')) !== null && _a !== void 0 ? _a : -1;
|
|
17469
|
-
}
|
|
17470
|
-
/**
|
|
17471
|
-
* Returns the index of the input that should be tabbed to.
|
|
17472
|
-
* If all inputs are filled, returns the last input's index.
|
|
17473
|
-
* Otherwise, returns the index of the first empty input.
|
|
17474
|
-
*/
|
|
17475
|
-
getTabbableIndex() {
|
|
17476
|
-
const { length } = this;
|
|
17477
|
-
const firstEmptyIndex = this.getFirstEmptyIndex();
|
|
17478
|
-
return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
|
|
17479
|
-
}
|
|
17480
|
-
render() {
|
|
17481
|
-
const { autocapitalize, color, disabled, fill, hasFocus, inputId, inputRefs, inputValues, length, readonly, shape, size, } = this;
|
|
17482
|
-
const mode = getIonMode$1(this);
|
|
17483
|
-
const inputmode = this.getInputmode();
|
|
17484
|
-
const tabbableIndex = this.getTabbableIndex();
|
|
17485
|
-
const pattern = this.getPattern();
|
|
17486
|
-
return (hAsync(Host, { key: '2e80140032daa5ed71692b744f2a694fc29a3d30', class: createColorClasses$1(color, {
|
|
17487
|
-
[mode]: true,
|
|
17488
|
-
'has-focus': hasFocus,
|
|
17489
|
-
[`input-otp-size-${size}`]: true,
|
|
17490
|
-
[`input-otp-shape-${shape}`]: true,
|
|
17491
|
-
[`input-otp-fill-${fill}`]: true,
|
|
17492
|
-
'input-otp-disabled': disabled,
|
|
17493
|
-
'input-otp-readonly': readonly,
|
|
17494
|
-
}) }, 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' }))));
|
|
17495
|
-
}
|
|
17496
|
-
get el() { return getElement(this); }
|
|
17497
|
-
static get watchers() { return {
|
|
17498
|
-
"value": ["valueChanged"],
|
|
17499
|
-
"separators": ["processSeparators"],
|
|
17500
|
-
"length": ["processSeparators"]
|
|
17501
|
-
}; }
|
|
17502
|
-
static get style() { return {
|
|
17503
|
-
ios: inputOtpIosCss,
|
|
17504
|
-
md: inputOtpMdCss
|
|
17505
|
-
}; }
|
|
17506
|
-
static get cmpMeta() { return {
|
|
17507
|
-
"$flags$": 38,
|
|
17508
|
-
"$tagName$": "ion-input-otp",
|
|
17509
|
-
"$members$": {
|
|
17510
|
-
"autocapitalize": [1],
|
|
17511
|
-
"color": [513],
|
|
17512
|
-
"disabled": [516],
|
|
17513
|
-
"fill": [1],
|
|
17514
|
-
"inputmode": [1],
|
|
17515
|
-
"length": [2],
|
|
17516
|
-
"pattern": [1],
|
|
17517
|
-
"readonly": [516],
|
|
17518
|
-
"size": [1],
|
|
17519
|
-
"separators": [1],
|
|
17520
|
-
"shape": [1],
|
|
17521
|
-
"type": [1],
|
|
17522
|
-
"value": [1032],
|
|
17523
|
-
"inputValues": [32],
|
|
17524
|
-
"hasFocus": [32],
|
|
17525
|
-
"reset": [64],
|
|
17526
|
-
"setFocus": [64]
|
|
17527
|
-
},
|
|
17528
|
-
"$listeners$": undefined,
|
|
17529
|
-
"$lazyBundleId$": "-",
|
|
17530
|
-
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
17531
|
-
}; }
|
|
17532
|
-
}
|
|
17533
16945
|
let inputIds = 0;
|
|
17534
16946
|
|
|
17535
16947
|
const iosInputPasswordToggleCss = "";
|
|
@@ -17591,16 +17003,16 @@ class InputPasswordToggle {
|
|
|
17591
17003
|
const showPasswordIcon = (_a = this.showIcon) !== null && _a !== void 0 ? _a : eye;
|
|
17592
17004
|
const hidePasswordIcon = (_b = this.hideIcon) !== null && _b !== void 0 ? _b : eyeOff;
|
|
17593
17005
|
const isPasswordVisible = type === 'text';
|
|
17594
|
-
return (hAsync(Host, { key: '
|
|
17006
|
+
return (hAsync(Host, { key: '1a28e078c83e74c72d8bb8189ece93ec2e3fa3d0', class: createColorClasses$1(color, {
|
|
17595
17007
|
[mode]: true,
|
|
17596
|
-
}) }, hAsync("ion-button", { key: '
|
|
17008
|
+
}) }, 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) => {
|
|
17597
17009
|
/**
|
|
17598
17010
|
* This prevents mobile browsers from
|
|
17599
17011
|
* blurring the input when the password toggle
|
|
17600
17012
|
* button is activated.
|
|
17601
17013
|
*/
|
|
17602
17014
|
ev.preventDefault();
|
|
17603
|
-
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: '
|
|
17015
|
+
}, onClick: this.togglePasswordVisibility }, hAsync("ion-icon", { key: '26477ee97b808c3d79944bf5e33d4e05f1ae0b3f', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? hidePasswordIcon : showPasswordIcon }))));
|
|
17604
17016
|
}
|
|
17605
17017
|
get el() { return getElement(this); }
|
|
17606
17018
|
static get watchers() { return {
|
|
@@ -17910,11 +17322,11 @@ class ItemDivider {
|
|
|
17910
17322
|
}
|
|
17911
17323
|
render() {
|
|
17912
17324
|
const mode = getIonMode$1(this);
|
|
17913
|
-
return (hAsync(Host, { key: '
|
|
17325
|
+
return (hAsync(Host, { key: '7150b1a3a881c3c312db40821acb9830c2885ccf', class: createColorClasses$1(this.color, {
|
|
17914
17326
|
[mode]: true,
|
|
17915
17327
|
'item-divider-sticky': this.sticky,
|
|
17916
17328
|
item: true,
|
|
17917
|
-
}) }, hAsync("slot", { key: '
|
|
17329
|
+
}) }, 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" }))));
|
|
17918
17330
|
}
|
|
17919
17331
|
get el() { return getElement(this); }
|
|
17920
17332
|
static get style() { return {
|
|
@@ -17944,7 +17356,7 @@ class ItemGroup {
|
|
|
17944
17356
|
}
|
|
17945
17357
|
render() {
|
|
17946
17358
|
const mode = getIonMode$1(this);
|
|
17947
|
-
return (hAsync(Host, { key: '
|
|
17359
|
+
return (hAsync(Host, { key: 'de2a969ed0dda880bc560a325848b28d0287fdb9', role: "group", class: {
|
|
17948
17360
|
[mode]: true,
|
|
17949
17361
|
// Used internally for styling
|
|
17950
17362
|
[`item-group-${mode}`]: true,
|
|
@@ -18014,12 +17426,12 @@ class ItemOption {
|
|
|
18014
17426
|
href: this.href,
|
|
18015
17427
|
target: this.target,
|
|
18016
17428
|
};
|
|
18017
|
-
return (hAsync(Host, { key: '
|
|
17429
|
+
return (hAsync(Host, { key: '1b7708dd178dc2c9280652ca3da38c84ba7b767f', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
18018
17430
|
[mode]: true,
|
|
18019
17431
|
'item-option-disabled': disabled,
|
|
18020
17432
|
'item-option-expandable': expandable,
|
|
18021
17433
|
'ion-activatable': true,
|
|
18022
|
-
}) }, hAsync(TagType, Object.assign({ key: '
|
|
17434
|
+
}) }, 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' }))));
|
|
18023
17435
|
}
|
|
18024
17436
|
get el() { return getElement(this); }
|
|
18025
17437
|
static get style() { return {
|
|
@@ -18068,7 +17480,7 @@ class ItemOptions {
|
|
|
18068
17480
|
render() {
|
|
18069
17481
|
const mode = getIonMode$1(this);
|
|
18070
17482
|
const isEnd = isEndSide(this.side);
|
|
18071
|
-
return (hAsync(Host, { key: '
|
|
17483
|
+
return (hAsync(Host, { key: '7df4b71547524bf359c48e1b40ccbc44e850f632', class: {
|
|
18072
17484
|
[mode]: true,
|
|
18073
17485
|
// Used internally for styling
|
|
18074
17486
|
[`item-options-${mode}`]: true,
|
|
@@ -18532,7 +17944,7 @@ class ItemSliding {
|
|
|
18532
17944
|
}
|
|
18533
17945
|
render() {
|
|
18534
17946
|
const mode = getIonMode$1(this);
|
|
18535
|
-
return (hAsync(Host, { key: '
|
|
17947
|
+
return (hAsync(Host, { key: 'f8aea4bb9802b111ef358cc6c172a635637ae1f8', class: {
|
|
18536
17948
|
[mode]: true,
|
|
18537
17949
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
18538
17950
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -18637,13 +18049,13 @@ class Label {
|
|
|
18637
18049
|
render() {
|
|
18638
18050
|
const position = this.position;
|
|
18639
18051
|
const mode = getIonMode$1(this);
|
|
18640
|
-
return (hAsync(Host, { key: '
|
|
18052
|
+
return (hAsync(Host, { key: '4da84c95351a74b547f8224ecfa66924d21398c5', class: createColorClasses$1(this.color, {
|
|
18641
18053
|
[mode]: true,
|
|
18642
18054
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
18643
18055
|
[`label-${position}`]: position !== undefined,
|
|
18644
18056
|
[`label-no-animate`]: this.noAnimate,
|
|
18645
18057
|
'label-rtl': document.dir === 'rtl',
|
|
18646
|
-
}) }, hAsync("slot", { key: '
|
|
18058
|
+
}) }, hAsync("slot", { key: 'ea158ebb620275e5492965234d0ab925d391f919' })));
|
|
18647
18059
|
}
|
|
18648
18060
|
get el() { return getElement(this); }
|
|
18649
18061
|
static get watchers() { return {
|
|
@@ -18699,7 +18111,7 @@ class List {
|
|
|
18699
18111
|
render() {
|
|
18700
18112
|
const mode = getIonMode$1(this);
|
|
18701
18113
|
const { lines, inset } = this;
|
|
18702
|
-
return (hAsync(Host, { key: '
|
|
18114
|
+
return (hAsync(Host, { key: '5ff2b0b3989cc99ce17abb8bcd7ec1847940d1ec', role: "list", class: {
|
|
18703
18115
|
[mode]: true,
|
|
18704
18116
|
// Used internally for styling
|
|
18705
18117
|
[`list-${mode}`]: true,
|
|
@@ -18741,10 +18153,10 @@ class ListHeader {
|
|
|
18741
18153
|
render() {
|
|
18742
18154
|
const { lines } = this;
|
|
18743
18155
|
const mode = getIonMode$1(this);
|
|
18744
|
-
return (hAsync(Host, { key: '
|
|
18156
|
+
return (hAsync(Host, { key: '95ce2135e2b1ad4d7d6020b0fb9bc6e02b3c0851', class: createColorClasses$1(this.color, {
|
|
18745
18157
|
[mode]: true,
|
|
18746
18158
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
18747
|
-
}) }, hAsync("div", { key: '
|
|
18159
|
+
}) }, hAsync("div", { key: '3065b0a094bc31a90518898a5126a813c8a33816', class: "list-header-inner" }, hAsync("slot", { key: 'fe15c87d7867f3e5d8185645c49c0228496697b8' }))));
|
|
18748
18160
|
}
|
|
18749
18161
|
static get style() { return {
|
|
18750
18162
|
ios: listHeaderIosCss,
|
|
@@ -19030,9 +18442,9 @@ class Loading {
|
|
|
19030
18442
|
* Otherwise, don't set aria-labelledby.
|
|
19031
18443
|
*/
|
|
19032
18444
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
19033
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
18445
|
+
return (hAsync(Host, Object.assign({ key: 'd6066c8b56b1fe4b597a243a7dab191ef0d21286', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
19034
18446
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
19035
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
18447
|
+
}, 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" })));
|
|
19036
18448
|
}
|
|
19037
18449
|
get el() { return getElement(this); }
|
|
19038
18450
|
static get watchers() { return {
|
|
@@ -20056,14 +19468,14 @@ class Menu {
|
|
|
20056
19468
|
* the ionBackButton listener in the menu controller
|
|
20057
19469
|
* will handle closing the menu when Escape is pressed.
|
|
20058
19470
|
*/
|
|
20059
|
-
return (hAsync(Host, { key: '
|
|
19471
|
+
return (hAsync(Host, { key: '0a2ba4ff5600b80b54d1b5b45124779c6aa0d2f2', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
20060
19472
|
[mode]: true,
|
|
20061
19473
|
[`menu-type-${type}`]: true,
|
|
20062
19474
|
'menu-enabled': !disabled,
|
|
20063
19475
|
[`menu-side-${side}`]: true,
|
|
20064
19476
|
'menu-pane-visible': isPaneVisible,
|
|
20065
19477
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
20066
|
-
} }, hAsync("div", { key: '
|
|
19478
|
+
} }, 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" })));
|
|
20067
19479
|
}
|
|
20068
19480
|
get el() { return getElement(this); }
|
|
20069
19481
|
static get watchers() { return {
|
|
@@ -20171,7 +19583,7 @@ class MenuButton {
|
|
|
20171
19583
|
type: this.type,
|
|
20172
19584
|
};
|
|
20173
19585
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
20174
|
-
return (hAsync(Host, { key: '
|
|
19586
|
+
return (hAsync(Host, { key: '3cde3704f28eb275f4a5ff2985bbb68c1024e79c', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
|
|
20175
19587
|
[mode]: true,
|
|
20176
19588
|
button: true, // ion-buttons target .button
|
|
20177
19589
|
'menu-button-hidden': hidden,
|
|
@@ -20180,7 +19592,7 @@ class MenuButton {
|
|
|
20180
19592
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
20181
19593
|
'ion-activatable': true,
|
|
20182
19594
|
'ion-focusable': true,
|
|
20183
|
-
}) }, hAsync("button", Object.assign({ key: '
|
|
19595
|
+
}) }, 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" }))));
|
|
20184
19596
|
}
|
|
20185
19597
|
get el() { return getElement(this); }
|
|
20186
19598
|
static get style() { return {
|
|
@@ -20233,10 +19645,10 @@ class MenuToggle {
|
|
|
20233
19645
|
render() {
|
|
20234
19646
|
const mode = getIonMode$1(this);
|
|
20235
19647
|
const hidden = this.autoHide && !this.visible;
|
|
20236
|
-
return (hAsync(Host, { key: '
|
|
19648
|
+
return (hAsync(Host, { key: '88e88fa13ac7f10ba3acfe378bd11cda0c7e2749', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
20237
19649
|
[mode]: true,
|
|
20238
19650
|
'menu-toggle-hidden': hidden,
|
|
20239
|
-
} }, hAsync("slot", { key: '
|
|
19651
|
+
} }, hAsync("slot", { key: '0a14c7b63eda64702d2fd1b4bc7db4809892842d' })));
|
|
20240
19652
|
}
|
|
20241
19653
|
static get style() { return menuToggleCss; }
|
|
20242
19654
|
static get cmpMeta() { return {
|
|
@@ -22568,18 +21980,18 @@ class Modal {
|
|
|
22568
21980
|
const mode = getIonMode$1(this);
|
|
22569
21981
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
22570
21982
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
22571
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
21983
|
+
return (hAsync(Host, Object.assign({ key: '0991b2e4e32da511e59fb1463b47e4ac1b86d1ca', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
22572
21984
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
22573
|
-
}, 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: '
|
|
21985
|
+
}, 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',
|
|
22574
21986
|
/*
|
|
22575
21987
|
role and aria-modal must be used on the
|
|
22576
21988
|
same element. They must also be set inside the
|
|
22577
21989
|
shadow DOM otherwise ion-button will not be highlighted
|
|
22578
21990
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
22579
21991
|
*/
|
|
22580
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
21992
|
+
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",
|
|
22581
21993
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
22582
|
-
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: '
|
|
21994
|
+
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' }))));
|
|
22583
21995
|
}
|
|
22584
21996
|
get el() { return getElement(this); }
|
|
22585
21997
|
static get watchers() { return {
|
|
@@ -23526,7 +22938,7 @@ class Nav {
|
|
|
23526
22938
|
}
|
|
23527
22939
|
}
|
|
23528
22940
|
render() {
|
|
23529
|
-
return hAsync("slot", { key: '
|
|
22941
|
+
return hAsync("slot", { key: '188d0abd6c047d235380f07aac81223b757010e8' });
|
|
23530
22942
|
}
|
|
23531
22943
|
get el() { return getElement(this); }
|
|
23532
22944
|
static get watchers() { return {
|
|
@@ -23599,7 +23011,7 @@ class NavLink {
|
|
|
23599
23011
|
};
|
|
23600
23012
|
}
|
|
23601
23013
|
render() {
|
|
23602
|
-
return hAsync(Host, { key: '
|
|
23014
|
+
return hAsync(Host, { key: '9ba170d1b10e08e8a6b5e6a30d363871d455a0a9', onClick: this.onClick });
|
|
23603
23015
|
}
|
|
23604
23016
|
get el() { return getElement(this); }
|
|
23605
23017
|
static get cmpMeta() { return {
|
|
@@ -23630,9 +23042,9 @@ class Note {
|
|
|
23630
23042
|
}
|
|
23631
23043
|
render() {
|
|
23632
23044
|
const mode = getIonMode$1(this);
|
|
23633
|
-
return (hAsync(Host, { key: '
|
|
23045
|
+
return (hAsync(Host, { key: '3c3d9b2aa805c0bc1fdc6270a2bbf4dcc1b96c5b', class: createColorClasses$1(this.color, {
|
|
23634
23046
|
[mode]: true,
|
|
23635
|
-
}) }, hAsync("slot", { key: '
|
|
23047
|
+
}) }, hAsync("slot", { key: '39e34682009fcb705ecafe51825162734bdf14d3' })));
|
|
23636
23048
|
}
|
|
23637
23049
|
static get style() { return {
|
|
23638
23050
|
ios: noteIosCss,
|
|
@@ -24392,11 +23804,11 @@ class Picker {
|
|
|
24392
23804
|
render() {
|
|
24393
23805
|
const { htmlAttributes } = this;
|
|
24394
23806
|
const mode = getIonMode$1(this);
|
|
24395
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
23807
|
+
return (hAsync(Host, Object.assign({ key: 'b6b6ca6f9aa74681e6d67f64b366f5965fec2a6d', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
24396
23808
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
24397
23809
|
}, class: Object.assign({ [mode]: true,
|
|
24398
23810
|
// Used internally for styling
|
|
24399
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
23811
|
+
[`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" })));
|
|
24400
23812
|
}
|
|
24401
23813
|
get el() { return getElement(this); }
|
|
24402
23814
|
static get watchers() { return {
|
|
@@ -25383,9 +24795,9 @@ class PickerColumnCmp {
|
|
|
25383
24795
|
render() {
|
|
25384
24796
|
const col = this.col;
|
|
25385
24797
|
const mode = getIonMode$1(this);
|
|
25386
|
-
return (hAsync(Host, { key: '
|
|
24798
|
+
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: {
|
|
25387
24799
|
'max-width': this.col.columnWidth,
|
|
25388
|
-
} }, col.prefix && (hAsync("div", { key: '
|
|
24800
|
+
} }, 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))));
|
|
25389
24801
|
}
|
|
25390
24802
|
get el() { return getElement(this); }
|
|
25391
24803
|
static get watchers() { return {
|
|
@@ -25502,10 +24914,10 @@ class PickerColumnOption {
|
|
|
25502
24914
|
render() {
|
|
25503
24915
|
const { color, disabled, ariaLabel } = this;
|
|
25504
24916
|
const mode = getIonMode$1(this);
|
|
25505
|
-
return (hAsync(Host, { key: '
|
|
24917
|
+
return (hAsync(Host, { key: 'c1353e99c2aa19c0e3ddbe433557ed18e72e1c66', class: createColorClasses$1(color, {
|
|
25506
24918
|
[mode]: true,
|
|
25507
24919
|
['option-disabled']: disabled,
|
|
25508
|
-
}) }, hAsync("button", { key: '
|
|
24920
|
+
}) }, hAsync("button", { key: 'b4ee62ecf7458a07a56e8aa494485766a87a3fcb', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, hAsync("slot", { key: '9ab1e4700c27103b676670a4b3521c183c6ab83d' }))));
|
|
25509
24921
|
}
|
|
25510
24922
|
get el() { return getElement(this); }
|
|
25511
24923
|
static get watchers() { return {
|
|
@@ -26911,9 +26323,9 @@ class Popover {
|
|
|
26911
26323
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
26912
26324
|
const desktop = isPlatform('desktop');
|
|
26913
26325
|
const enableArrow = arrow && !parentPopover;
|
|
26914
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
26326
|
+
return (hAsync(Host, Object.assign({ key: 'ff24e8d9677711248a36994cce568e74ba151499', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
26915
26327
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
26916
|
-
}, 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: '
|
|
26328
|
+
}, 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' })))));
|
|
26917
26329
|
}
|
|
26918
26330
|
get el() { return getElement(this); }
|
|
26919
26331
|
static get watchers() { return {
|
|
@@ -27018,7 +26430,7 @@ class ProgressBar {
|
|
|
27018
26430
|
const mode = getIonMode$1(this);
|
|
27019
26431
|
// If the progress is displayed as a solid bar.
|
|
27020
26432
|
const progressSolid = buffer === 1;
|
|
27021
|
-
return (hAsync(Host, { key: '
|
|
26433
|
+
return (hAsync(Host, { key: 'd60eeaa18aaee607e083c0ef9d0de8178d47c4cd', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
27022
26434
|
[mode]: true,
|
|
27023
26435
|
[`progress-bar-${type}`]: true,
|
|
27024
26436
|
'progress-paused': paused,
|
|
@@ -27202,7 +26614,7 @@ class Radio {
|
|
|
27202
26614
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
27203
26615
|
const mode = getIonMode$1(this);
|
|
27204
26616
|
const inItem = hostContext('ion-item', el);
|
|
27205
|
-
return (hAsync(Host, { key: '
|
|
26617
|
+
return (hAsync(Host, { key: '8badd4aec277addc0793e14df21f73bb345e99b7', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses$1(color, {
|
|
27206
26618
|
[mode]: true,
|
|
27207
26619
|
'in-item': inItem,
|
|
27208
26620
|
'radio-checked': checked,
|
|
@@ -27213,10 +26625,10 @@ class Radio {
|
|
|
27213
26625
|
// Focus and active styling should not apply when the radio is in an item
|
|
27214
26626
|
'ion-activatable': !inItem,
|
|
27215
26627
|
'ion-focusable': !inItem,
|
|
27216
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '
|
|
26628
|
+
}), 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: {
|
|
27217
26629
|
'label-text-wrapper': true,
|
|
27218
26630
|
'label-text-wrapper-hidden': !hasLabel,
|
|
27219
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
26631
|
+
}, part: "label" }, hAsync("slot", { key: '331f3dc2ce5f6ed8f124fc4560f92e0f7c668a85' })), hAsync("div", { key: '473bd4aaf448753e385f2dda3fddc9f56379aa19', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
27220
26632
|
}
|
|
27221
26633
|
get el() { return getElement(this); }
|
|
27222
26634
|
static get watchers() { return {
|
|
@@ -27439,7 +26851,7 @@ class RadioGroup {
|
|
|
27439
26851
|
const { label, labelId, el, name, value } = this;
|
|
27440
26852
|
const mode = getIonMode$1(this);
|
|
27441
26853
|
renderHiddenInput(true, el, name, value, false);
|
|
27442
|
-
return (hAsync(Host, { key: '
|
|
26854
|
+
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' }))));
|
|
27443
26855
|
}
|
|
27444
26856
|
get el() { return getElement(this); }
|
|
27445
26857
|
static get watchers() { return {
|
|
@@ -28154,7 +27566,7 @@ class Range {
|
|
|
28154
27566
|
const needsEndAdjustment = inItem && !hasEndContent;
|
|
28155
27567
|
const mode = getIonMode$1(this);
|
|
28156
27568
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
28157
|
-
return (hAsync(Host, { key: '
|
|
27569
|
+
return (hAsync(Host, { key: '3e065039ee048f1f70d97dba5dae98fa1315d867', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
28158
27570
|
[mode]: true,
|
|
28159
27571
|
'in-item': inItem,
|
|
28160
27572
|
'range-disabled': disabled,
|
|
@@ -28163,10 +27575,10 @@ class Range {
|
|
|
28163
27575
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
28164
27576
|
'range-item-start-adjustment': needsStartAdjustment,
|
|
28165
27577
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
28166
|
-
}) }, hAsync("label", { key: '
|
|
27578
|
+
}) }, hAsync("label", { key: '27ff22842c9ea79a1b9495302b926f70c9080a95', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: 'da1f9784be02dfe87d2fef34931d8b7f2148189e', class: {
|
|
28167
27579
|
'label-text-wrapper': true,
|
|
28168
27580
|
'label-text-wrapper-hidden': !hasLabel,
|
|
28169
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
27581
|
+
}, 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" })))));
|
|
28170
27582
|
}
|
|
28171
27583
|
get el() { return getElement(this); }
|
|
28172
27584
|
static get watchers() { return {
|
|
@@ -29116,7 +28528,7 @@ class Refresher {
|
|
|
29116
28528
|
}
|
|
29117
28529
|
render() {
|
|
29118
28530
|
const mode = getIonMode$1(this);
|
|
29119
|
-
return (hAsync(Host, { key: '
|
|
28531
|
+
return (hAsync(Host, { key: 'c717c16f2ca3e42351848cc8ad37918dec28961d', slot: "fixed", class: {
|
|
29120
28532
|
[mode]: true,
|
|
29121
28533
|
// Used internally for styling
|
|
29122
28534
|
[`refresher-${mode}`]: true,
|
|
@@ -29340,7 +28752,7 @@ class RefresherContent {
|
|
|
29340
28752
|
const pullingIcon = this.pullingIcon;
|
|
29341
28753
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
29342
28754
|
const mode = getIonMode$1(this);
|
|
29343
|
-
return (hAsync(Host, { key: '
|
|
28755
|
+
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())));
|
|
29344
28756
|
}
|
|
29345
28757
|
get el() { return getElement(this); }
|
|
29346
28758
|
static get cmpMeta() { return {
|
|
@@ -29381,7 +28793,7 @@ class Reorder {
|
|
|
29381
28793
|
render() {
|
|
29382
28794
|
const mode = getIonMode$1(this);
|
|
29383
28795
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
29384
|
-
return (hAsync(Host, { key: '
|
|
28796
|
+
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" }))));
|
|
29385
28797
|
}
|
|
29386
28798
|
get el() { return getElement(this); }
|
|
29387
28799
|
static get style() { return {
|
|
@@ -29637,7 +29049,7 @@ class ReorderGroup {
|
|
|
29637
29049
|
}
|
|
29638
29050
|
render() {
|
|
29639
29051
|
const mode = getIonMode$1(this);
|
|
29640
|
-
return (hAsync(Host, { key: '
|
|
29052
|
+
return (hAsync(Host, { key: '6ca009dd65302a914d459aec638e62977440db20', class: {
|
|
29641
29053
|
[mode]: true,
|
|
29642
29054
|
'reorder-enabled': !this.disabled,
|
|
29643
29055
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -29753,7 +29165,7 @@ class RippleEffect {
|
|
|
29753
29165
|
}
|
|
29754
29166
|
render() {
|
|
29755
29167
|
const mode = getIonMode$1(this);
|
|
29756
|
-
return (hAsync(Host, { key: '
|
|
29168
|
+
return (hAsync(Host, { key: '40c7f73e7f5f67e29f83e1236a61c6e1c9943c42', role: "presentation", class: {
|
|
29757
29169
|
[mode]: true,
|
|
29758
29170
|
unbounded: this.unbounded,
|
|
29759
29171
|
} }));
|
|
@@ -30711,10 +30123,10 @@ class RouterLink {
|
|
|
30711
30123
|
rel: this.rel,
|
|
30712
30124
|
target: this.target,
|
|
30713
30125
|
};
|
|
30714
|
-
return (hAsync(Host, { key: '
|
|
30126
|
+
return (hAsync(Host, { key: '11183264fb6ae0db9a7a47c71b6862d60001b834', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
30715
30127
|
[mode]: true,
|
|
30716
30128
|
'ion-activatable': true,
|
|
30717
|
-
}) }, hAsync("a", Object.assign({ key: '
|
|
30129
|
+
}) }, hAsync("a", Object.assign({ key: '3e0e5242161cb0df593d6d573e51b8ba750065a1' }, attrs), hAsync("slot", { key: '5bd808e98a4627bb1236f0d955f4b32971355417' }))));
|
|
30718
30130
|
}
|
|
30719
30131
|
static get style() { return routerLinkCss; }
|
|
30720
30132
|
static get cmpMeta() { return {
|
|
@@ -30911,7 +30323,7 @@ class RouterOutlet {
|
|
|
30911
30323
|
return true;
|
|
30912
30324
|
}
|
|
30913
30325
|
render() {
|
|
30914
|
-
return hAsync("slot", { key: '
|
|
30326
|
+
return hAsync("slot", { key: 'e34e02b5154172c8d5cdd187b6ea58119b6946eb' });
|
|
30915
30327
|
}
|
|
30916
30328
|
get el() { return getElement(this); }
|
|
30917
30329
|
static get watchers() { return {
|
|
@@ -30944,7 +30356,7 @@ class Row {
|
|
|
30944
30356
|
registerInstance(this, hostRef);
|
|
30945
30357
|
}
|
|
30946
30358
|
render() {
|
|
30947
|
-
return (hAsync(Host, { key: '
|
|
30359
|
+
return (hAsync(Host, { key: 'a690022e2abdce6946d24264574e4aa0886a8ea5', class: getIonMode$1(this) }, hAsync("slot", { key: 'd1a0e831dd1dbfe7877d3ad01d0a3045a5fb29e3' })));
|
|
30948
30360
|
}
|
|
30949
30361
|
static get style() { return rowCss; }
|
|
30950
30362
|
static get cmpMeta() { return {
|
|
@@ -31387,8 +30799,8 @@ class Searchbar {
|
|
|
31387
30799
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
31388
30800
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
31389
30801
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
31390
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
31391
|
-
return (hAsync(Host, { key: '
|
|
30802
|
+
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))));
|
|
30803
|
+
return (hAsync(Host, { key: 'd1a1972725e949fb102c91487aaa7b9d10c2d718', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
31392
30804
|
[mode]: true,
|
|
31393
30805
|
'searchbar-animated': animated,
|
|
31394
30806
|
'searchbar-disabled': this.disabled,
|
|
@@ -31398,14 +30810,14 @@ class Searchbar {
|
|
|
31398
30810
|
'searchbar-has-focus': this.focused,
|
|
31399
30811
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
31400
30812
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
31401
|
-
}) }, hAsync("div", { key: '
|
|
30813
|
+
}) }, 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) => {
|
|
31402
30814
|
/**
|
|
31403
30815
|
* This prevents mobile browsers from
|
|
31404
30816
|
* blurring the input when the clear
|
|
31405
30817
|
* button is activated.
|
|
31406
30818
|
*/
|
|
31407
30819
|
ev.preventDefault();
|
|
31408
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
30820
|
+
}, 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));
|
|
31409
30821
|
}
|
|
31410
30822
|
get el() { return getElement(this); }
|
|
31411
30823
|
static get watchers() { return {
|
|
@@ -32000,14 +31412,14 @@ class Segment {
|
|
|
32000
31412
|
}
|
|
32001
31413
|
render() {
|
|
32002
31414
|
const mode = getIonMode$1(this);
|
|
32003
|
-
return (hAsync(Host, { key: '
|
|
31415
|
+
return (hAsync(Host, { key: 'a64e39352050b516f7dc82ce95a4bcff8431d1d0', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
32004
31416
|
[mode]: true,
|
|
32005
31417
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32006
31418
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
32007
31419
|
'segment-activated': this.activated,
|
|
32008
31420
|
'segment-disabled': this.disabled,
|
|
32009
31421
|
'segment-scrollable': this.scrollable,
|
|
32010
|
-
}) }, hAsync("slot", { key: '
|
|
31422
|
+
}) }, hAsync("slot", { key: 'bb3f3ec30e59e0461fa620d8961ab730cc802a4e', onSlotchange: this.onSlottedItemsChange })));
|
|
32011
31423
|
}
|
|
32012
31424
|
get el() { return getElement(this); }
|
|
32013
31425
|
static get watchers() { return {
|
|
@@ -32147,7 +31559,7 @@ class SegmentButton {
|
|
|
32147
31559
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
32148
31560
|
const mode = getIonMode$1(this);
|
|
32149
31561
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
32150
|
-
return (hAsync(Host, { key: '
|
|
31562
|
+
return (hAsync(Host, { key: 'd79dad80db69123510c6d52bbf4424558600c14a', class: {
|
|
32151
31563
|
[mode]: true,
|
|
32152
31564
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32153
31565
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -32163,7 +31575,7 @@ class SegmentButton {
|
|
|
32163
31575
|
'ion-activatable': true,
|
|
32164
31576
|
'ion-activatable-instant': true,
|
|
32165
31577
|
'ion-focusable': true,
|
|
32166
|
-
} }, hAsync("button", Object.assign({ key: '
|
|
31578
|
+
} }, 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" }))));
|
|
32167
31579
|
}
|
|
32168
31580
|
get el() { return getElement(this); }
|
|
32169
31581
|
static get watchers() { return {
|
|
@@ -32198,7 +31610,7 @@ class SegmentContent {
|
|
|
32198
31610
|
registerInstance(this, hostRef);
|
|
32199
31611
|
}
|
|
32200
31612
|
render() {
|
|
32201
|
-
return (hAsync(Host, { key: '
|
|
31613
|
+
return (hAsync(Host, { key: '64b3965b14c749e77e9ce13b59f349d971e245c8' }, hAsync("slot", { key: '2d0bed34f9bc93f92e713cb51e42220f3cecd8f5' })));
|
|
32202
31614
|
}
|
|
32203
31615
|
static get style() { return segmentContentCss; }
|
|
32204
31616
|
static get cmpMeta() { return {
|
|
@@ -32311,10 +31723,10 @@ class SegmentView {
|
|
|
32311
31723
|
}
|
|
32312
31724
|
render() {
|
|
32313
31725
|
const { disabled, isManualScroll } = this;
|
|
32314
|
-
return (hAsync(Host, { key: '
|
|
31726
|
+
return (hAsync(Host, { key: 'fa528d2d9ae0f00fc3067defe2a047dce77c814a', class: {
|
|
32315
31727
|
'segment-view-disabled': disabled,
|
|
32316
31728
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
32317
|
-
} }, hAsync("slot", { key: '
|
|
31729
|
+
} }, hAsync("slot", { key: '74dc8b4d073caeff1bab272d11b9ea3e1a215954' })));
|
|
32318
31730
|
}
|
|
32319
31731
|
get el() { return getElement(this); }
|
|
32320
31732
|
static get style() { return {
|
|
@@ -33053,7 +32465,7 @@ class Select {
|
|
|
33053
32465
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
33054
32466
|
*/
|
|
33055
32467
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
33056
|
-
return (hAsync(Host, { key: '
|
|
32468
|
+
return (hAsync(Host, { key: 'e6c0498d6c275f89344f4b5146752a047058ad88', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
33057
32469
|
[mode]: true,
|
|
33058
32470
|
'in-item': inItem,
|
|
33059
32471
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -33071,7 +32483,7 @@ class Select {
|
|
|
33071
32483
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
33072
32484
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
33073
32485
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
33074
|
-
}) }, hAsync("label", { key: '
|
|
32486
|
+
}) }, 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()));
|
|
33075
32487
|
}
|
|
33076
32488
|
get el() { return getElement(this); }
|
|
33077
32489
|
static get watchers() { return {
|
|
@@ -33230,7 +32642,7 @@ class SelectModal {
|
|
|
33230
32642
|
} }, option.text))));
|
|
33231
32643
|
}
|
|
33232
32644
|
render() {
|
|
33233
|
-
return (hAsync(Host, { key: '
|
|
32645
|
+
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()))));
|
|
33234
32646
|
}
|
|
33235
32647
|
get el() { return getElement(this); }
|
|
33236
32648
|
static get style() { return {
|
|
@@ -33264,7 +32676,7 @@ class SelectOption {
|
|
|
33264
32676
|
this.disabled = false;
|
|
33265
32677
|
}
|
|
33266
32678
|
render() {
|
|
33267
|
-
return hAsync(Host, { key: '
|
|
32679
|
+
return hAsync(Host, { key: '8c96c199ce3a3065de3fe446500f567236e0610a', role: "option", id: this.inputId, class: getIonMode$1(this) });
|
|
33268
32680
|
}
|
|
33269
32681
|
get el() { return getElement(this); }
|
|
33270
32682
|
static get style() { return selectOptionCss; }
|
|
@@ -33381,7 +32793,7 @@ class SelectPopover {
|
|
|
33381
32793
|
render() {
|
|
33382
32794
|
const { header, message, options, subHeader } = this;
|
|
33383
32795
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
33384
|
-
return (hAsync(Host, { key: '
|
|
32796
|
+
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))));
|
|
33385
32797
|
}
|
|
33386
32798
|
get el() { return getElement(this); }
|
|
33387
32799
|
static get style() { return {
|
|
@@ -33431,11 +32843,11 @@ class SkeletonText {
|
|
|
33431
32843
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
33432
32844
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
33433
32845
|
const mode = getIonMode$1(this);
|
|
33434
|
-
return (hAsync(Host, { key: '
|
|
32846
|
+
return (hAsync(Host, { key: 'c193f9a8e8efab5139544f047bdae4b6d421aa86', class: {
|
|
33435
32847
|
[mode]: true,
|
|
33436
32848
|
'skeleton-text-animated': animated,
|
|
33437
32849
|
'in-media': inMedia,
|
|
33438
|
-
} }, hAsync("span", { key: '
|
|
32850
|
+
} }, hAsync("span", { key: 'e15db679bd3c359b4df5123efd2f92e5b380fde3' }, "\u00A0")));
|
|
33439
32851
|
}
|
|
33440
32852
|
get el() { return getElement(this); }
|
|
33441
32853
|
static get style() { return skeletonTextCss; }
|
|
@@ -33487,7 +32899,7 @@ class Spinner {
|
|
|
33487
32899
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
33488
32900
|
}
|
|
33489
32901
|
}
|
|
33490
|
-
return (hAsync(Host, { key: '
|
|
32902
|
+
return (hAsync(Host, { key: 'e0dfa8a3ee2a0469eb31323f506750bd77d65797', class: createColorClasses$1(self.color, {
|
|
33491
32903
|
[mode]: true,
|
|
33492
32904
|
[`spinner-${spinnerName}`]: true,
|
|
33493
32905
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -33586,12 +32998,12 @@ class SplitPane {
|
|
|
33586
32998
|
}
|
|
33587
32999
|
render() {
|
|
33588
33000
|
const mode = getIonMode$1(this);
|
|
33589
|
-
return (hAsync(Host, { key: '
|
|
33001
|
+
return (hAsync(Host, { key: '098801b5a318e2fc6913fb0d9079b1552927b99b', class: {
|
|
33590
33002
|
[mode]: true,
|
|
33591
33003
|
// Used internally for styling
|
|
33592
33004
|
[`split-pane-${mode}`]: true,
|
|
33593
33005
|
'split-pane-visible': this.visible,
|
|
33594
|
-
} }, hAsync("slot", { key: '
|
|
33006
|
+
} }, hAsync("slot", { key: '8cbc6a942ecba54fc3c62027d46917db067b65c8' })));
|
|
33595
33007
|
}
|
|
33596
33008
|
get el() { return getElement(this); }
|
|
33597
33009
|
static get watchers() { return {
|
|
@@ -33657,10 +33069,10 @@ class Tab {
|
|
|
33657
33069
|
}
|
|
33658
33070
|
render() {
|
|
33659
33071
|
const { tab, active, component } = this;
|
|
33660
|
-
return (hAsync(Host, { key: '
|
|
33072
|
+
return (hAsync(Host, { key: 'c36c113e74e12b58459df9e3b546ad4856187e90', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
33661
33073
|
'ion-page': component === undefined,
|
|
33662
33074
|
'tab-hidden': !active,
|
|
33663
|
-
} }, hAsync("slot", { key: '
|
|
33075
|
+
} }, hAsync("slot", { key: '0d7821dac70ba7a12edfb3331988f3df1566cc1a' })));
|
|
33664
33076
|
}
|
|
33665
33077
|
get el() { return getElement(this); }
|
|
33666
33078
|
static get watchers() { return {
|
|
@@ -33739,11 +33151,11 @@ class TabBar {
|
|
|
33739
33151
|
const { color, translucent, keyboardVisible } = this;
|
|
33740
33152
|
const mode = getIonMode$1(this);
|
|
33741
33153
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
33742
|
-
return (hAsync(Host, { key: '
|
|
33154
|
+
return (hAsync(Host, { key: '62303a7f9d8c98ffab51a5900c144c5117b9c543', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
33743
33155
|
[mode]: true,
|
|
33744
33156
|
'tab-bar-translucent': translucent,
|
|
33745
33157
|
'tab-bar-hidden': shouldHide,
|
|
33746
|
-
}) }, hAsync("slot", { key: '
|
|
33158
|
+
}) }, hAsync("slot", { key: '5771a9828f748c2bd6b5e26758b9723c6b3de5ff' })));
|
|
33747
33159
|
}
|
|
33748
33160
|
get el() { return getElement(this); }
|
|
33749
33161
|
static get watchers() { return {
|
|
@@ -33839,7 +33251,7 @@ class TabButton {
|
|
|
33839
33251
|
rel,
|
|
33840
33252
|
target,
|
|
33841
33253
|
};
|
|
33842
|
-
return (hAsync(Host, { key: '
|
|
33254
|
+
return (hAsync(Host, { key: 'a86d441d8df350fe991f2f948fc6b6ad007728f7', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
33843
33255
|
[mode]: true,
|
|
33844
33256
|
'tab-selected': selected,
|
|
33845
33257
|
'tab-disabled': disabled,
|
|
@@ -33851,7 +33263,7 @@ class TabButton {
|
|
|
33851
33263
|
'ion-activatable': true,
|
|
33852
33264
|
'ion-selectable': true,
|
|
33853
33265
|
'ion-focusable': true,
|
|
33854
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
33266
|
+
} }, 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" }))));
|
|
33855
33267
|
}
|
|
33856
33268
|
get el() { return getElement(this); }
|
|
33857
33269
|
static get style() { return {
|
|
@@ -34026,7 +33438,7 @@ class Tabs {
|
|
|
34026
33438
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
34027
33439
|
}
|
|
34028
33440
|
render() {
|
|
34029
|
-
return (hAsync(Host, { key: '
|
|
33441
|
+
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" })));
|
|
34030
33442
|
}
|
|
34031
33443
|
get el() { return getElement(this); }
|
|
34032
33444
|
static get style() { return tabsCss; }
|
|
@@ -34066,9 +33478,9 @@ class Text {
|
|
|
34066
33478
|
}
|
|
34067
33479
|
render() {
|
|
34068
33480
|
const mode = getIonMode$1(this);
|
|
34069
|
-
return (hAsync(Host, { key: '
|
|
33481
|
+
return (hAsync(Host, { key: '0c2546ea3f24b0a6bfd606199441d0a4edfa4ca1', class: createColorClasses$1(this.color, {
|
|
34070
33482
|
[mode]: true,
|
|
34071
|
-
}) }, hAsync("slot", { key: '
|
|
33483
|
+
}) }, hAsync("slot", { key: 'b7623ccb06f9461090a1f33e9f85886c7a4d5eff' })));
|
|
34072
33484
|
}
|
|
34073
33485
|
static get style() { return textCss; }
|
|
34074
33486
|
static get cmpMeta() { return {
|
|
@@ -34507,7 +33919,7 @@ class Textarea {
|
|
|
34507
33919
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
34508
33920
|
*/
|
|
34509
33921
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
34510
|
-
return (hAsync(Host, { key: '
|
|
33922
|
+
return (hAsync(Host, { key: 'f53b9060248d885b0b8639401871e52017e497db', class: createColorClasses$1(this.color, {
|
|
34511
33923
|
[mode]: true,
|
|
34512
33924
|
'has-value': hasValue,
|
|
34513
33925
|
'has-focus': hasFocus,
|
|
@@ -34516,7 +33928,7 @@ class Textarea {
|
|
|
34516
33928
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
34517
33929
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
34518
33930
|
'textarea-disabled': disabled,
|
|
34519
|
-
}) }, hAsync("label", { key: '
|
|
33931
|
+
}) }, 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()));
|
|
34520
33932
|
}
|
|
34521
33933
|
get el() { return getElement(this); }
|
|
34522
33934
|
static get watchers() { return {
|
|
@@ -34578,7 +33990,7 @@ class Thumbnail {
|
|
|
34578
33990
|
registerInstance(this, hostRef);
|
|
34579
33991
|
}
|
|
34580
33992
|
render() {
|
|
34581
|
-
return (hAsync(Host, { key: '
|
|
33993
|
+
return (hAsync(Host, { key: '7f5fd6c056da2d82feb2c3c33f3e6dec898787f5', class: getIonMode$1(this) }, hAsync("slot", { key: 'd15fd2b6cdc03777edc1930be95ad838e1b376c8' })));
|
|
34582
33994
|
}
|
|
34583
33995
|
static get style() { return thumbnailCss; }
|
|
34584
33996
|
static get cmpMeta() { return {
|
|
@@ -35437,9 +34849,9 @@ class Toast {
|
|
|
35437
34849
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
35438
34850
|
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);
|
|
35439
34851
|
}
|
|
35440
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
34852
|
+
return (hAsync(Host, Object.assign({ key: 'a2216d860255c99337464370dcb12f6125871a50', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
35441
34853
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
35442
|
-
}, 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: '
|
|
34854
|
+
}, 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')))));
|
|
35443
34855
|
}
|
|
35444
34856
|
get el() { return getElement(this); }
|
|
35445
34857
|
static get watchers() { return {
|
|
@@ -35734,7 +35146,7 @@ class Toggle {
|
|
|
35734
35146
|
const value = this.getValue();
|
|
35735
35147
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
35736
35148
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
35737
|
-
return (hAsync(Host, { key: '
|
|
35149
|
+
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, {
|
|
35738
35150
|
[mode]: true,
|
|
35739
35151
|
'in-item': hostContext('ion-item', el),
|
|
35740
35152
|
'toggle-activated': activated,
|
|
@@ -35744,10 +35156,10 @@ class Toggle {
|
|
|
35744
35156
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
35745
35157
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
35746
35158
|
[`toggle-${rtl}`]: true,
|
|
35747
|
-
}) }, hAsync("label", { key: '
|
|
35159
|
+
}) }, 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: {
|
|
35748
35160
|
'label-text-wrapper': true,
|
|
35749
35161
|
'label-text-wrapper-hidden': !hasLabel,
|
|
35750
|
-
}, part: "label", id: inputLabelId }, hAsync("slot", { key: '
|
|
35162
|
+
}, part: "label", id: inputLabelId }, hAsync("slot", { key: '4555e00e2997e0a20d2e2f736e7b048c2de5320e' }), this.renderHintText()), hAsync("div", { key: 'b60d3e41561cf2ae46fb6de09f5590fa127a6172', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
35751
35163
|
}
|
|
35752
35164
|
get el() { return getElement(this); }
|
|
35753
35165
|
static get watchers() { return {
|
|
@@ -35855,10 +35267,10 @@ class Toolbar {
|
|
|
35855
35267
|
this.childrenStyles.forEach((value) => {
|
|
35856
35268
|
Object.assign(childStyles, value);
|
|
35857
35269
|
});
|
|
35858
|
-
return (hAsync(Host, { key: '
|
|
35270
|
+
return (hAsync(Host, { key: '402afe7ce0c97883cedd0e48a5a0492a9bfe76ae', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
35859
35271
|
[mode]: true,
|
|
35860
35272
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
35861
|
-
})) }, hAsync("div", { key: '
|
|
35273
|
+
})) }, 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" }))));
|
|
35862
35274
|
}
|
|
35863
35275
|
get el() { return getElement(this); }
|
|
35864
35276
|
static get style() { return {
|
|
@@ -35904,11 +35316,11 @@ class ToolbarTitle {
|
|
|
35904
35316
|
render() {
|
|
35905
35317
|
const mode = getIonMode$1(this);
|
|
35906
35318
|
const size = this.getSize();
|
|
35907
|
-
return (hAsync(Host, { key: '
|
|
35319
|
+
return (hAsync(Host, { key: '3f7b19c99961dbb86c0a925218332528b22e6880', class: createColorClasses$1(this.color, {
|
|
35908
35320
|
[mode]: true,
|
|
35909
35321
|
[`title-${size}`]: true,
|
|
35910
35322
|
'title-rtl': document.dir === 'rtl',
|
|
35911
|
-
}) }, hAsync("div", { key: '
|
|
35323
|
+
}) }, hAsync("div", { key: '12054fbdd60e40a15875e442c20143766fc34fc3', class: "toolbar-title" }, hAsync("slot", { key: '9f14fb14a67d4bd1e4536a4d64a637fbe5a151c7' }))));
|
|
35912
35324
|
}
|
|
35913
35325
|
get el() { return getElement(this); }
|
|
35914
35326
|
static get watchers() { return {
|
|
@@ -35967,7 +35379,6 @@ registerComponents([
|
|
|
35967
35379
|
InfiniteScroll,
|
|
35968
35380
|
InfiniteScrollContent,
|
|
35969
35381
|
Input,
|
|
35970
|
-
InputOTP,
|
|
35971
35382
|
InputPasswordToggle,
|
|
35972
35383
|
Item,
|
|
35973
35384
|
ItemDivider,
|