@ionic/core 9.0.0 → 9.0.1-dev.11787248963.10a00c73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.js +1 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-backdrop.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-buttons.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-checkbox.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-icon.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-label.js +1 -1
- package/components/ion-list-header.js +1 -1
- package/components/ion-list.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +1 -1
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-column.js +1 -1
- package/components/ion-picker.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio-group.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-ripple-effect.js +1 -1
- package/components/ion-route-redirect.js +1 -1
- package/components/ion-route.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/{p-63OhffQv.js → p-66ogmUZU.js} +1 -1
- package/components/p-6Vp915Y7.js +4 -0
- package/components/p-7PNwKFZi.js +4 -0
- package/components/{p-G0TxqHfe.js → p-A8MJRBIY.js} +1 -1
- package/components/p-AQcCdH2_.js +4 -0
- package/{dist/ionic/p-Dn0mqQ_R.js → components/p-B6x5_b9w.js} +1 -1
- package/components/p-B8MQjdvk.js +4 -0
- package/components/p-BA_4ZIEg.js +4 -0
- package/components/p-BFtL8t1r.js +4 -0
- package/components/{p-DaA_8eqt.js → p-BMfgF-Tv.js} +1 -1
- package/components/p-BPDxVIRr.js +4 -0
- package/components/p-BSARlp49.js +4 -0
- package/components/p-B_gJaBk0.js +4 -0
- package/components/p-BdwCtX8Y.js +4 -0
- package/components/p-Bg4OwDwb.js +4 -0
- package/components/{p-DV85C0e0.js → p-BgUIV8NQ.js} +1 -1
- package/components/p-Bnc0m4SW.js +4 -0
- package/components/p-BpLt_Ptn.js +4 -0
- package/components/p-BqBDq1Ma.js +4 -0
- package/components/{p-C_phlPMC.js → p-BrFaQbGY.js} +1 -1
- package/{dist/ionic/p-Cdjxf_yg.js → components/p-BuPAFTWI.js} +1 -1
- package/components/p-Bx2saTHs.js +4 -0
- package/components/p-BxhE2W85.js +4 -0
- package/components/p-CHswSpKy.js +4 -0
- package/components/{p-fruGqVHh.js → p-CQAjyETU.js} +1 -1
- package/components/{p-1jI5oW-W.js → p-CR9OgE6N.js} +1 -1
- package/components/p-CWETxTjE.js +4 -0
- package/components/p-CaZeZIL2.js +4 -0
- package/components/p-CaiZOhfC.js +4 -0
- package/components/p-CgvDC7hC.js +4 -0
- package/components/{p-BqPNzJf6.js → p-CqyGR9Aq.js} +1 -1
- package/components/{p-UIBJkZf8.js → p-D0YpjgON.js} +1 -1
- package/components/p-D7ysFE2B.js +4 -0
- package/{dist/ionic/p-4eOQC00Z.js → components/p-DCWfzDM8.js} +1 -1
- package/components/{p-DwpKZ6rl.js → p-DDdkefwf.js} +1 -1
- package/components/{p-DzRT60Tw.js → p-DEW7CnUc.js} +1 -1
- package/components/p-DQ1IPvZO.js +4 -0
- package/components/p-DcOH6-o5.js +4 -0
- package/components/{p-DD5fQ4EQ.js → p-DfdYCsov.js} +1 -1
- package/components/{p-DSzSbVP2.js → p-DhOoEIAs.js} +1 -1
- package/components/{p-DM-PrAoh.js → p-Dl_7b_UJ.js} +1 -1
- package/components/p-DqAI6tg7.js +4 -0
- package/components/p-DrehWDfv.js +4 -0
- package/components/{p-ryyf_ItD.js → p-DysqCsJu.js} +1 -1
- package/components/p-H1f2qsk4.js +4 -0
- package/components/p-HVYBAhFx.js +4 -0
- package/components/{p-CbhUdtjf.js → p-Kmrg3Fed.js} +1 -1
- package/components/{p-Bjig0DJK.js → p-RFfE9hF6.js} +1 -1
- package/{dist/ionic/p-CBWAXjA5.js → components/p-SR-LLqp_.js} +1 -1
- package/components/p-eFI3mtEX.js +4 -0
- package/components/p-gFwXiYC_.js +4 -0
- package/components/p-tX3UxCnU.js +4 -0
- package/components/p-v2NpoOHp.js +4 -0
- package/dist/cjs/{animation-C0mOHzej.js → animation-D-OqR4a4.js} +1 -1
- package/dist/cjs/{app-globals-BREG4twP.js → app-globals-BzgwARwJ.js} +1 -1
- package/dist/cjs/{button-active-CVMevT9a.js → button-active-BlWSD7uK.js} +2 -2
- package/dist/cjs/{format-pp0Du3K-.js → format-D7ig6Vm0.js} +1 -1
- package/dist/cjs/{framework-delegate-Dfo5XsGv.js → framework-delegate-BZUx4TnE.js} +1 -1
- package/dist/cjs/{gesture-controller-BDUH7687.js → gesture-controller-CeJslptU.js} +6 -14
- package/dist/cjs/{hardware-back-button-fqpYh-kd.js → hardware-back-button-JOAEFSzc.js} +1 -1
- package/dist/cjs/{helpers-YPQybDph.js → helpers-Dj5o76mq.js} +1 -1
- package/dist/cjs/{index-BLdJCcJY.js → index-2sO-zkZ2.js} +4 -4
- package/dist/cjs/{index-uvry__L4.js → index-BrVMoqUk.js} +3 -1
- package/dist/cjs/{index-zVCah4Uz.js → index-C8zH6b3d.js} +2 -2
- package/dist/cjs/{index-DXsPSne6.js → index-CZ6vzt_q.js} +5 -5
- package/dist/cjs/{index-DDg31ZF5.js → index-Csue6G3m.js} +2 -2
- package/dist/cjs/{index-DwlRtFZe.js → index-DRPqwSvU.js} +1 -1
- package/dist/cjs/{index-B7zJsYWS.js → index-EJLjthTK.js} +1 -2
- package/dist/cjs/index.cjs.js +14 -14
- package/dist/cjs/{input-shims-Cbu1fcye.js → input-shims-Bh7bnt2v.js} +3 -3
- package/dist/cjs/{input.utils-BZdMWVrt.js → input.utils-Cq3g9uHy.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +335 -364
- package/dist/cjs/ion-action-sheet.cjs.entry.js +60 -140
- package/dist/cjs/ion-alert.cjs.entry.js +67 -159
- package/dist/cjs/ion-app_8.cjs.entry.js +163 -258
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -8
- package/dist/cjs/ion-back-button.cjs.entry.js +21 -45
- package/dist/cjs/ion-backdrop.cjs.entry.js +14 -18
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +117 -195
- package/dist/cjs/ion-button_2.cjs.entry.js +61 -130
- package/dist/cjs/ion-card_5.cjs.entry.js +28 -80
- package/dist/cjs/ion-checkbox.cjs.entry.js +98 -147
- package/dist/cjs/ion-chip.cjs.entry.js +10 -16
- package/dist/cjs/ion-col_3.cjs.entry.js +6 -126
- package/dist/cjs/ion-datetime-button.cjs.entry.js +232 -248
- package/dist/cjs/ion-datetime.cjs.entry.js +775 -953
- package/dist/cjs/ion-fab_3.cjs.entry.js +78 -136
- package/dist/cjs/ion-img.cjs.entry.js +11 -31
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +71 -98
- package/dist/cjs/ion-input-otp.cjs.entry.js +352 -424
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +14 -29
- package/dist/cjs/ion-input.cjs.entry.js +158 -302
- package/dist/cjs/ion-item-option_3.cjs.entry.js +54 -98
- package/dist/cjs/ion-item_8.cjs.entry.js +61 -157
- package/dist/cjs/ion-loading.cjs.entry.js +54 -131
- package/dist/cjs/ion-menu_3.cjs.entry.js +94 -158
- package/dist/cjs/ion-modal.cjs.entry.js +206 -362
- package/dist/cjs/ion-nav_2.cjs.entry.js +26 -78
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +23 -33
- package/dist/cjs/ion-picker-column.cjs.entry.js +389 -410
- package/dist/cjs/ion-picker.cjs.entry.js +390 -400
- package/dist/cjs/ion-popover.cjs.entry.js +184 -292
- package/dist/cjs/ion-progress-bar.cjs.entry.js +23 -29
- package/dist/cjs/ion-radio_2.cjs.entry.js +128 -201
- package/dist/cjs/ion-range.cjs.entry.js +223 -293
- package/dist/cjs/ion-refresher_2.cjs.entry.js +89 -154
- package/dist/cjs/ion-reorder_2.cjs.entry.js +19 -49
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +13 -13
- package/dist/cjs/ion-route_4.cjs.entry.js +45 -144
- package/dist/cjs/ion-searchbar.cjs.entry.js +182 -268
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +12 -24
- package/dist/cjs/ion-segment_2.cjs.entry.js +122 -161
- package/dist/cjs/ion-select-modal.cjs.entry.js +19 -21
- package/dist/cjs/ion-select_3.cjs.entry.js +151 -319
- package/dist/cjs/ion-spinner.cjs.entry.js +6 -21
- package/dist/cjs/ion-split-pane.cjs.entry.js +14 -27
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +32 -89
- package/dist/cjs/ion-tab_2.cjs.entry.js +22 -49
- package/dist/cjs/ion-text.cjs.entry.js +2 -8
- package/dist/cjs/ion-textarea.cjs.entry.js +139 -256
- package/dist/cjs/ion-toast.cjs.entry.js +106 -221
- package/dist/cjs/ion-toggle.cjs.entry.js +114 -165
- package/dist/cjs/{ionic-global-k6hOWWpn.js → ionic-global-DvgIzM2F.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-zTmJz8T-.js → ios.transition-zIgdoSYe.js} +4 -4
- package/dist/cjs/{item-multiple-inputs-BdYSbfKN.js → item-multiple-inputs-DG-ZGm6j.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-nb_4pUXu.js → md.transition-CXeJ9rfh.js} +4 -4
- package/dist/cjs/{overlays-KaNVDNqC.js → overlays-Bg0auTQa.js} +6 -6
- package/dist/cjs/{select-option-render-pULCGldr.js → select-option-render-7m1WdFzF.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-DPHmqXdV.js → slot-mutation-controller-BJEJzx_e.js} +1 -1
- package/dist/cjs/{status-tap-o9IIymsP.js → status-tap-DxbUM5XX.js} +3 -3
- package/dist/cjs/{swipe-back-B7X9VOlH.js → swipe-back-F_DBt-Aw.js} +4 -4
- package/dist/collection/components/accordion/accordion.js +310 -314
- package/dist/collection/components/accordion-group/accordion-group.js +23 -46
- package/dist/collection/components/action-sheet/action-sheet.js +49 -128
- package/dist/collection/components/action-sheet/test/basic/fixture.js +0 -3
- package/dist/collection/components/alert/alert.js +56 -147
- package/dist/collection/components/app/app.js +0 -3
- package/dist/collection/components/back-button/back-button.js +19 -42
- package/dist/collection/components/backdrop/backdrop.js +14 -16
- package/dist/collection/components/badge/badge.js +0 -6
- package/dist/collection/components/breadcrumb/breadcrumb.js +29 -90
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +87 -102
- package/dist/collection/components/button/button.js +59 -127
- package/dist/collection/components/buttons/buttons.js +15 -13
- package/dist/collection/components/card/card.js +20 -53
- package/dist/collection/components/card-header/card-header.js +8 -12
- package/dist/collection/components/card-subtitle/card-subtitle.js +0 -6
- package/dist/collection/components/card-title/card-title.js +0 -6
- package/dist/collection/components/checkbox/checkbox.js +95 -143
- package/dist/collection/components/chip/chip.js +10 -14
- package/dist/collection/components/col/col.js +0 -120
- package/dist/collection/components/content/content.js +60 -90
- package/dist/collection/components/datetime/datetime.js +762 -939
- package/dist/collection/components/datetime-button/datetime-button.js +229 -244
- package/dist/collection/components/fab/fab.js +13 -20
- package/dist/collection/components/fab-button/fab-button.js +54 -103
- package/dist/collection/components/fab-list/fab-list.js +11 -10
- package/dist/collection/components/footer/footer.js +43 -49
- package/dist/collection/components/grid/grid.js +6 -4
- package/dist/collection/components/header/header.js +23 -33
- package/dist/collection/components/img/img.js +9 -28
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +66 -73
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +3 -20
- package/dist/collection/components/input/input.js +154 -297
- package/dist/collection/components/input-otp/input-otp.js +350 -421
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +13 -27
- package/dist/collection/components/item/item.js +37 -80
- package/dist/collection/components/item-divider/item-divider.js +10 -15
- package/dist/collection/components/item-option/item-option.js +20 -48
- package/dist/collection/components/item-options/item-options.js +7 -10
- package/dist/collection/components/item-sliding/item-sliding.js +26 -36
- package/dist/collection/components/label/label.js +4 -24
- package/dist/collection/components/list/list.js +6 -9
- package/dist/collection/components/list-header/list-header.js +0 -10
- package/dist/collection/components/loading/loading.js +46 -122
- package/dist/collection/components/menu/menu.js +55 -99
- package/dist/collection/components/menu-button/menu-button.js +19 -28
- package/dist/collection/components/menu-toggle/menu-toggle.js +13 -20
- package/dist/collection/components/modal/modal.js +196 -351
- package/dist/collection/components/modal/test/fixtures.js +0 -3
- package/dist/collection/components/nav/nav.js +12 -45
- package/dist/collection/components/nav/view-controller.js +1 -7
- package/dist/collection/components/nav-link/nav-link.js +9 -20
- package/dist/collection/components/note/note.js +0 -6
- package/dist/collection/components/picker/picker.js +388 -397
- package/dist/collection/components/picker-column/picker-column.js +389 -409
- package/dist/collection/components/picker-column-option/picker-column-option.js +21 -30
- package/dist/collection/components/popover/popover.js +176 -283
- package/dist/collection/components/popover/test/fixture.js +0 -1
- package/dist/collection/components/progress-bar/progress-bar.js +22 -26
- package/dist/collection/components/radio/radio.js +62 -98
- package/dist/collection/components/radio-group/radio-group.js +64 -99
- package/dist/collection/components/radio-group/test/fixtures.js +0 -2
- package/dist/collection/components/range/range.js +220 -289
- package/dist/collection/components/refresher/refresher.js +79 -105
- package/dist/collection/components/refresher-content/refresher-content.js +3 -40
- package/dist/collection/components/reorder/reorder.js +0 -1
- package/dist/collection/components/reorder-group/reorder-group.js +14 -43
- package/dist/collection/components/ripple-effect/ripple-effect.js +12 -11
- package/dist/collection/components/route/route.js +9 -38
- package/dist/collection/components/route-redirect/route-redirect.js +0 -31
- package/dist/collection/components/router/router.js +27 -35
- package/dist/collection/components/router/utils/matching.js +0 -1
- package/dist/collection/components/router-link/router-link.js +10 -35
- package/dist/collection/components/router-outlet/router-outlet.js +12 -34
- package/dist/collection/components/searchbar/searchbar.js +180 -265
- package/dist/collection/components/segment/segment.js +76 -113
- package/dist/collection/components/segment-button/segment-button.js +44 -44
- package/dist/collection/components/segment-view/segment-view.js +12 -23
- package/dist/collection/components/select/select.js +127 -240
- package/dist/collection/components/select-modal/select-modal.js +11 -12
- package/dist/collection/components/select-modal/test/fixtures.js +1 -8
- package/dist/collection/components/select-option/select-option.js +7 -44
- package/dist/collection/components/select-popover/select-popover.js +10 -25
- package/dist/collection/components/select-popover/test/fixtures.js +1 -8
- package/dist/collection/components/skeleton-text/skeleton-text.js +6 -10
- package/dist/collection/components/spinner/spinner.js +6 -19
- package/dist/collection/components/split-pane/split-pane.js +13 -25
- package/dist/collection/components/tab/tab.js +4 -15
- package/dist/collection/components/tab-bar/tab-bar.js +12 -30
- package/dist/collection/components/tab-button/tab-button.js +19 -56
- package/dist/collection/components/tabs/tabs.js +17 -31
- package/dist/collection/components/text/text.js +0 -6
- package/dist/collection/components/textarea/textarea.js +135 -251
- package/dist/collection/components/title/title.js +0 -16
- package/dist/collection/components/toast/toast.js +97 -211
- package/dist/collection/components/toggle/toggle.js +111 -161
- package/dist/collection/components/toolbar/toolbar.js +3 -8
- package/dist/collection/global/config.js +3 -1
- package/dist/collection/utils/gesture/gesture-controller.js +6 -14
- package/dist/collection/utils/sanitization/index.js +0 -1
- package/dist/collection/utils/test/late-props/late-props.js +69 -0
- package/dist/collection/utils/test/playwright/page/event-spy.js +8 -9
- package/dist/collection/utils/test/press-keys.js +1 -4
- package/dist/docs.json +1 -1
- package/dist/esm/{animation-CGFdmGk9.js → animation-TxGPYeDn.js} +1 -1
- package/dist/esm/{app-globals-CYmMeGdU.js → app-globals-Do8rJest.js} +1 -1
- package/dist/esm/{button-active-BDOsVAiZ.js → button-active-ChA4D-ml.js} +2 -2
- package/dist/esm/{format-Dcwga61t.js → format-CVk5e_GP.js} +2 -2
- package/dist/esm/{framework-delegate-BHTU2Ip9.js → framework-delegate-DaLWnISz.js} +1 -1
- package/dist/esm/{gesture-controller-TXPDHL13.js → gesture-controller-B_gJaBk0.js} +6 -14
- package/dist/esm/{hardware-back-button-gLJHMX_F.js → hardware-back-button-D8W4L0JP.js} +1 -1
- package/dist/esm/{helpers-CAGf8Wgp.js → helpers-BIgoInJU.js} +1 -1
- package/dist/esm/{index-DcPaH5uL.js → index-BmLuEdV7.js} +1 -1
- package/dist/esm/{index-T0JxBI8V.js → index-BmOR8tCv.js} +2 -2
- package/dist/esm/{index-CqneaaGd.js → index-C5ZdL0qp.js} +5 -5
- package/dist/esm/{index-WlteAIqz.js → index-C8Dsa6li.js} +4 -4
- package/dist/esm/{index-ChhhtsGZ.js → index-CKYcsw8f.js} +3 -1
- package/dist/esm/{index-Clc-28O1.js → index-DHw2lZxe.js} +2 -2
- package/dist/esm/{index-CKM1DdGm.js → index-elneMH8y.js} +1 -2
- package/dist/esm/index.js +14 -14
- package/dist/esm/{input-shims-B8sfni1e.js → input-shims-09NN97kF.js} +3 -3
- package/dist/esm/{input.utils-B1ValN_N.js → input.utils-BxyH9l1w.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +335 -364
- package/dist/esm/ion-action-sheet.entry.js +60 -140
- package/dist/esm/ion-alert.entry.js +67 -159
- package/dist/esm/ion-app_8.entry.js +163 -258
- package/dist/esm/ion-avatar_3.entry.js +2 -8
- package/dist/esm/ion-back-button.entry.js +21 -45
- package/dist/esm/ion-backdrop.entry.js +14 -18
- package/dist/esm/ion-breadcrumb_2.entry.js +117 -195
- package/dist/esm/ion-button_2.entry.js +61 -130
- package/dist/esm/ion-card_5.entry.js +28 -80
- package/dist/esm/ion-checkbox.entry.js +98 -147
- package/dist/esm/ion-chip.entry.js +10 -16
- package/dist/esm/ion-col_3.entry.js +6 -126
- package/dist/esm/ion-datetime-button.entry.js +232 -248
- package/dist/esm/ion-datetime.entry.js +775 -953
- package/dist/esm/ion-fab_3.entry.js +78 -136
- package/dist/esm/ion-img.entry.js +11 -31
- package/dist/esm/ion-infinite-scroll_2.entry.js +71 -98
- package/dist/esm/ion-input-otp.entry.js +352 -424
- package/dist/esm/ion-input-password-toggle.entry.js +14 -29
- package/dist/esm/ion-input.entry.js +158 -302
- package/dist/esm/ion-item-option_3.entry.js +54 -98
- package/dist/esm/ion-item_8.entry.js +61 -157
- package/dist/esm/ion-loading.entry.js +54 -131
- package/dist/esm/ion-menu_3.entry.js +94 -158
- package/dist/esm/ion-modal.entry.js +206 -362
- package/dist/esm/ion-nav_2.entry.js +26 -78
- package/dist/esm/ion-picker-column-option.entry.js +23 -33
- package/dist/esm/ion-picker-column.entry.js +389 -410
- package/dist/esm/ion-picker.entry.js +390 -400
- package/dist/esm/ion-popover.entry.js +184 -292
- package/dist/esm/ion-progress-bar.entry.js +23 -29
- package/dist/esm/ion-radio_2.entry.js +128 -201
- package/dist/esm/ion-range.entry.js +223 -293
- package/dist/esm/ion-refresher_2.entry.js +89 -154
- package/dist/esm/ion-reorder_2.entry.js +19 -49
- package/dist/esm/ion-ripple-effect.entry.js +13 -13
- package/dist/esm/ion-route_4.entry.js +45 -144
- package/dist/esm/ion-searchbar.entry.js +182 -268
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +12 -24
- package/dist/esm/ion-segment_2.entry.js +122 -161
- package/dist/esm/ion-select-modal.entry.js +19 -21
- package/dist/esm/ion-select_3.entry.js +151 -319
- package/dist/esm/ion-spinner.entry.js +6 -21
- package/dist/esm/ion-split-pane.entry.js +14 -27
- package/dist/esm/ion-tab-bar_2.entry.js +32 -89
- package/dist/esm/ion-tab_2.entry.js +22 -49
- package/dist/esm/ion-text.entry.js +2 -8
- package/dist/esm/ion-textarea.entry.js +139 -256
- package/dist/esm/ion-toast.entry.js +106 -221
- package/dist/esm/ion-toggle.entry.js +114 -165
- package/dist/esm/{ionic-global-BVB7BrLT.js → ionic-global-lrowsHfi.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-DXRCmcbC.js → ios.transition-BQhADrk1.js} +4 -4
- package/dist/esm/{item-multiple-inputs-rU8VaNNg.js → item-multiple-inputs-D_N3fDkD.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-BMngO4i_.js → md.transition-D58NpmRa.js} +4 -4
- package/dist/esm/{overlays-CPmIs9Ls.js → overlays-BpnIFlXI.js} +6 -6
- package/dist/esm/{select-option-render-C4m76VGH.js → select-option-render-lIuu64EV.js} +2 -2
- package/dist/esm/{slot-mutation-controller-DiE_C9un.js → slot-mutation-controller-rS_T3FDR.js} +1 -1
- package/dist/esm/{status-tap-CHB7KwIb.js → status-tap-CpFQMLl6.js} +3 -3
- package/dist/esm/{swipe-back-C9HW1bug.js → swipe-back-rmc7zeNW.js} +4 -4
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-05800a02.entry.js +4 -0
- package/dist/ionic/p-0eb50dca.entry.js +4 -0
- package/dist/ionic/p-16e9f542.entry.js +4 -0
- package/dist/ionic/p-18d532a3.entry.js +4 -0
- package/dist/ionic/p-1db2afb4.entry.js +4 -0
- package/dist/ionic/p-1df75f9e.entry.js +4 -0
- package/dist/ionic/p-295ff427.entry.js +4 -0
- package/dist/ionic/p-34b9379b.entry.js +4 -0
- package/dist/ionic/p-39a8d4e0.entry.js +4 -0
- package/dist/ionic/p-4437015c.entry.js +4 -0
- package/dist/ionic/p-478035a7.entry.js +4 -0
- package/dist/ionic/p-485fb218.entry.js +4 -0
- package/dist/ionic/p-48c859fe.entry.js +4 -0
- package/dist/ionic/p-49b9d405.entry.js +4 -0
- package/dist/ionic/p-56307aea.entry.js +4 -0
- package/dist/ionic/p-5b906fd6.entry.js +4 -0
- package/dist/ionic/p-5ee2d7b1.entry.js +4 -0
- package/dist/ionic/p-5f216b79.entry.js +4 -0
- package/dist/ionic/p-61c799d1.entry.js +4 -0
- package/dist/ionic/p-63bbba8d.entry.js +4 -0
- package/dist/ionic/p-68507e70.entry.js +4 -0
- package/dist/ionic/{p-ded69ceb.entry.js → p-6f048604.entry.js} +1 -1
- package/dist/ionic/p-70ee8888.entry.js +4 -0
- package/dist/ionic/p-72ad7c64.entry.js +4 -0
- package/dist/ionic/p-75887ee0.entry.js +4 -0
- package/dist/ionic/p-873a315a.entry.js +4 -0
- package/dist/ionic/p-881b6954.entry.js +4 -0
- package/dist/ionic/p-886d9e66.entry.js +4 -0
- package/dist/ionic/p-8dd4c026.entry.js +4 -0
- package/dist/ionic/p-8e007f11.entry.js +4 -0
- package/dist/ionic/p-8f51110d.entry.js +4 -0
- package/dist/ionic/p-90ba736e.entry.js +4 -0
- package/dist/ionic/p-959df5f8.entry.js +4 -0
- package/dist/ionic/p-9e455875.entry.js +4 -0
- package/dist/ionic/{p-CBR_W98Z.js → p-9wczfs_v.js} +1 -1
- package/dist/ionic/p-B1Y7LZhV.js +4 -0
- package/dist/ionic/p-B5RyLYvl.js +4 -0
- package/dist/ionic/{p-CPcPmkGv.js → p-BQv5i5Kf.js} +1 -1
- package/{components/p-8FN7p701.js → dist/ionic/p-BZVE25Gu.js} +1 -1
- package/{components/p-DFvZn99E.js → dist/ionic/p-BZxjcGRP.js} +1 -1
- package/dist/ionic/p-B_gJaBk0.js +4 -0
- package/dist/ionic/p-BnGA34Pd.js +4 -0
- package/dist/ionic/p-ByLaqOPm.js +4 -0
- package/dist/ionic/p-C06QNN45.js +4 -0
- package/dist/ionic/p-C4IBDDj6.js +4 -0
- package/dist/ionic/p-CCVlNZ__.js +4 -0
- package/dist/ionic/{p-CMRtMbJc.js → p-CDBop-kz.js} +1 -1
- package/dist/ionic/p-CKYcsw8f.js +5 -0
- package/dist/ionic/p-CazSodad.js +4 -0
- package/{components/p-ia3IDdJS.js → dist/ionic/p-ClrlQU2y.js} +1 -1
- package/dist/ionic/{p-UIBJkZf8.js → p-D0YpjgON.js} +1 -1
- package/dist/ionic/p-D0dfUysx.js +4 -0
- package/dist/ionic/{p-BB0LlG4y.js → p-D9yvytgv.js} +1 -1
- package/{components/p-C5KYjZWD.js → dist/ionic/p-DF_Uqql8.js} +1 -1
- package/dist/ionic/{p-BYEAtHr-.js → p-DXJgZWgi.js} +1 -1
- package/dist/ionic/{p-D94_RztK.js → p-DdhHqKj-.js} +1 -1
- package/dist/ionic/p-De0eY881.js +4 -0
- package/dist/ionic/p-DgUL3JbO.js +4 -0
- package/dist/ionic/{p-7CBuOvEo.js → p-RzUn7cKs.js} +1 -1
- package/dist/ionic/p-VquyMbjp.js +4 -0
- package/dist/ionic/p-a0fee899.entry.js +4 -0
- package/dist/ionic/p-a54bcd16.entry.js +4 -0
- package/dist/ionic/p-aebc4d69.entry.js +4 -0
- package/dist/ionic/p-b5f37106.entry.js +4 -0
- package/dist/ionic/{p-40424a88.entry.js → p-b62bfce8.entry.js} +1 -1
- package/dist/ionic/p-b7a11b58.entry.js +4 -0
- package/dist/ionic/p-bbf6878c.entry.js +4 -0
- package/dist/ionic/p-c49165af.entry.js +4 -0
- package/dist/ionic/p-cad4eccf.entry.js +4 -0
- package/dist/ionic/p-cdc5115e.entry.js +4 -0
- package/dist/ionic/p-d3384a40.entry.js +4 -0
- package/dist/ionic/p-d8bae128.entry.js +4 -0
- package/dist/ionic/p-d8deff43.entry.js +4 -0
- package/dist/ionic/p-ddfb7e5f.entry.js +4 -0
- package/dist/ionic/p-e538f18d.entry.js +4 -0
- package/dist/ionic/p-f376876b.entry.js +4 -0
- package/dist/ionic/p-f7dd1ed9.entry.js +4 -0
- package/dist/ionic/p-fbd83d4c.entry.js +4 -0
- package/dist/types/components/refresher/refresher.d.ts +7 -0
- package/hydrate/index.js +5450 -8380
- package/hydrate/index.mjs +5450 -8380
- package/package.json +1 -1
- package/components/p--m5cCjbK.js +0 -4
- package/components/p-B4uHHhPK.js +0 -4
- package/components/p-BNJOu1Q2.js +0 -4
- package/components/p-BOvLNVKq.js +0 -4
- package/components/p-BeamQXHF.js +0 -4
- package/components/p-BjluhQMI.js +0 -4
- package/components/p-BlsIikdZ.js +0 -4
- package/components/p-BrD9Xv62.js +0 -4
- package/components/p-BvJqoZ5R.js +0 -4
- package/components/p-Bz6z3Asd.js +0 -4
- package/components/p-C6HnVvHO.js +0 -4
- package/components/p-C7jvh5Wy.js +0 -4
- package/components/p-C9BGR5fy.js +0 -4
- package/components/p-CB-y1CdP.js +0 -4
- package/components/p-CHH3loEE.js +0 -4
- package/components/p-CJKUWjmg.js +0 -4
- package/components/p-CMLAwl_N.js +0 -4
- package/components/p-CejmQs3h.js +0 -4
- package/components/p-CtZqa4HM.js +0 -4
- package/components/p-D9qIVSWm.js +0 -4
- package/components/p-DE-3iMNW.js +0 -4
- package/components/p-DHFt2rdc.js +0 -4
- package/components/p-D_RCyzwu.js +0 -4
- package/components/p-D_tD8r3L.js +0 -4
- package/components/p-DjCtLZbF.js +0 -4
- package/components/p-Dmd2xqCe.js +0 -4
- package/components/p-G6JR-cr_.js +0 -4
- package/components/p-GG5GhznE.js +0 -4
- package/components/p-TXPDHL13.js +0 -4
- package/components/p-_IKFD3ID.js +0 -4
- package/components/p-dKq2jIum.js +0 -4
- package/components/p-iYhH60Tc.js +0 -4
- package/dist/ionic/p-06ec7136.entry.js +0 -4
- package/dist/ionic/p-09fe4fa3.entry.js +0 -4
- package/dist/ionic/p-10d45a07.entry.js +0 -4
- package/dist/ionic/p-208c8a07.entry.js +0 -4
- package/dist/ionic/p-212474fa.entry.js +0 -4
- package/dist/ionic/p-2eef1396.entry.js +0 -4
- package/dist/ionic/p-347e005d.entry.js +0 -4
- package/dist/ionic/p-3a0b3f1d.entry.js +0 -4
- package/dist/ionic/p-3b071259.entry.js +0 -4
- package/dist/ionic/p-4204184c.entry.js +0 -4
- package/dist/ionic/p-47464391.entry.js +0 -4
- package/dist/ionic/p-4f9c9126.entry.js +0 -4
- package/dist/ionic/p-5JsKPLJD.js +0 -4
- package/dist/ionic/p-5bc485c6.entry.js +0 -4
- package/dist/ionic/p-603a61e6.entry.js +0 -4
- package/dist/ionic/p-60576951.entry.js +0 -4
- package/dist/ionic/p-67a81d33.entry.js +0 -4
- package/dist/ionic/p-6affb775.entry.js +0 -4
- package/dist/ionic/p-6f120c25.entry.js +0 -4
- package/dist/ionic/p-71c82b60.entry.js +0 -4
- package/dist/ionic/p-79325ffe.entry.js +0 -4
- package/dist/ionic/p-7e4d51fa.entry.js +0 -4
- package/dist/ionic/p-7f5d4664.entry.js +0 -4
- package/dist/ionic/p-80ee82fc.entry.js +0 -4
- package/dist/ionic/p-84af7dbc.entry.js +0 -4
- package/dist/ionic/p-89ca830a.entry.js +0 -4
- package/dist/ionic/p-93b8ec8f.entry.js +0 -4
- package/dist/ionic/p-946f65c2.entry.js +0 -4
- package/dist/ionic/p-9c4b39fb.entry.js +0 -4
- package/dist/ionic/p-B1NEZUzQ.js +0 -4
- package/dist/ionic/p-B1ck5iy-.js +0 -4
- package/dist/ionic/p-B4FrqdW0.js +0 -4
- package/dist/ionic/p-C-94tAim.js +0 -4
- package/dist/ionic/p-C-eHZMYE.js +0 -4
- package/dist/ionic/p-CaRuIadB.js +0 -4
- package/dist/ionic/p-ChhhtsGZ.js +0 -5
- package/dist/ionic/p-CzS1qWve.js +0 -4
- package/dist/ionic/p-DjjfauRM.js +0 -4
- package/dist/ionic/p-DkUB-ROc.js +0 -4
- package/dist/ionic/p-DplOqGUv.js +0 -4
- package/dist/ionic/p-Dst_XmZh.js +0 -4
- package/dist/ionic/p-TXPDHL13.js +0 -4
- package/dist/ionic/p-a438b193.entry.js +0 -4
- package/dist/ionic/p-babaaaa7.entry.js +0 -4
- package/dist/ionic/p-be08d500.entry.js +0 -4
- package/dist/ionic/p-be9a4f51.entry.js +0 -4
- package/dist/ionic/p-c00d3092.entry.js +0 -4
- package/dist/ionic/p-c36dc8f5.entry.js +0 -4
- package/dist/ionic/p-c72a7e17.entry.js +0 -4
- package/dist/ionic/p-c8edd88c.entry.js +0 -4
- package/dist/ionic/p-ce0e380b.entry.js +0 -4
- package/dist/ionic/p-ce32912b.entry.js +0 -4
- package/dist/ionic/p-d07cf130.entry.js +0 -4
- package/dist/ionic/p-d27edeb3.entry.js +0 -4
- package/dist/ionic/p-d5d2c506.entry.js +0 -4
- package/dist/ionic/p-d5e31ca9.entry.js +0 -4
- package/dist/ionic/p-de91444f.entry.js +0 -4
- package/dist/ionic/p-df72866d.entry.js +0 -4
- package/dist/ionic/p-e47e3151.entry.js +0 -4
- package/dist/ionic/p-e621e5e8.entry.js +0 -4
- package/dist/ionic/p-eea9cf93.entry.js +0 -4
- package/dist/ionic/p-f402f5a4.entry.js +0 -4
- package/dist/ionic/p-fe1bfbcf.entry.js +0 -4
- package/dist/ionic/p-ffb90460.entry.js +0 -4
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var helpers = require('./helpers-
|
|
6
|
+
var index = require('./index-BrVMoqUk.js');
|
|
7
|
+
var helpers = require('./helpers-Dj5o76mq.js');
|
|
8
8
|
var theme = require('./theme-Bw0rpaNN.js');
|
|
9
|
-
var ionicGlobal = require('./ionic-global-
|
|
9
|
+
var ionicGlobal = require('./ionic-global-DvgIzM2F.js');
|
|
10
10
|
require('./dir-zwDPRE5K.js');
|
|
11
11
|
|
|
12
12
|
const buttonIosCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-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);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}`;
|
|
@@ -18,114 +18,70 @@ const Button = class {
|
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
19
|
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
20
20
|
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
21
|
+
this.inItem = false;
|
|
22
|
+
this.inListHeader = false;
|
|
23
|
+
this.inToolbar = false;
|
|
24
|
+
this.formButtonEl = null;
|
|
25
|
+
this.formEl = null;
|
|
26
|
+
this.inheritedAttributes = {};
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, the button only has an icon.
|
|
29
|
+
*/
|
|
30
|
+
this.isCircle = false;
|
|
31
|
+
/**
|
|
32
|
+
* The type of button.
|
|
33
|
+
*/
|
|
34
|
+
this.buttonType = 'button';
|
|
35
|
+
/**
|
|
36
|
+
* If `true`, the user cannot interact with the button.
|
|
37
|
+
*/
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
/**
|
|
40
|
+
* When using a router, it specifies the transition direction when navigating to
|
|
41
|
+
* another page using `href`.
|
|
42
|
+
*/
|
|
43
|
+
this.routerDirection = 'forward';
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, activates a button with a heavier font weight.
|
|
46
|
+
*/
|
|
47
|
+
this.strong = false;
|
|
48
|
+
/**
|
|
49
|
+
* The type of the button.
|
|
50
|
+
*/
|
|
51
|
+
this.type = 'button';
|
|
52
|
+
this.handleClick = (ev) => {
|
|
53
|
+
const { el } = this;
|
|
54
|
+
if (this.type === 'button') {
|
|
55
|
+
theme.openURL(this.href, ev, this.routerDirection, this.routerAnimation);
|
|
56
|
+
}
|
|
57
|
+
else if (helpers.hasShadowDom(el)) {
|
|
58
|
+
this.submitForm(ev);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
this.onFocus = () => {
|
|
62
|
+
this.ionFocus.emit();
|
|
63
|
+
};
|
|
64
|
+
this.onBlur = () => {
|
|
65
|
+
this.ionBlur.emit();
|
|
66
|
+
};
|
|
67
|
+
this.slotChanged = () => {
|
|
68
|
+
/**
|
|
69
|
+
* Ensures that the 'has-icon-only' class is properly added
|
|
70
|
+
* or removed from `ion-button` when manipulating the
|
|
71
|
+
* `icon-only` slot.
|
|
72
|
+
*
|
|
73
|
+
* Without this, the 'has-icon-only' class is only checked
|
|
74
|
+
* or added when `ion-button` component first renders.
|
|
75
|
+
*/
|
|
76
|
+
this.isCircle = this.hasIconOnly;
|
|
77
|
+
};
|
|
21
78
|
}
|
|
22
|
-
inItem = false;
|
|
23
|
-
inListHeader = false;
|
|
24
|
-
inToolbar = false;
|
|
25
|
-
formButtonEl = null;
|
|
26
|
-
formEl = null;
|
|
27
|
-
inheritedAttributes = {};
|
|
28
|
-
get el() { return index.getElement(this); }
|
|
29
|
-
/**
|
|
30
|
-
* If `true`, the button only has an icon.
|
|
31
|
-
*/
|
|
32
|
-
isCircle = false;
|
|
33
|
-
/**
|
|
34
|
-
* The color to use from your application's color palette.
|
|
35
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
36
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
37
|
-
*/
|
|
38
|
-
color;
|
|
39
|
-
/**
|
|
40
|
-
* The type of button.
|
|
41
|
-
*/
|
|
42
|
-
buttonType = 'button';
|
|
43
|
-
/**
|
|
44
|
-
* If `true`, the user cannot interact with the button.
|
|
45
|
-
*/
|
|
46
|
-
disabled = false;
|
|
47
79
|
disabledChanged() {
|
|
48
80
|
const { disabled } = this;
|
|
49
81
|
if (this.formButtonEl) {
|
|
50
82
|
this.formButtonEl.disabled = disabled;
|
|
51
83
|
}
|
|
52
84
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Set to `"block"` for a full-width button or to `"full"` for a full-width button
|
|
55
|
-
* with square corners and no left or right borders.
|
|
56
|
-
*/
|
|
57
|
-
expand;
|
|
58
|
-
/**
|
|
59
|
-
* Set to `"clear"` for a transparent button that resembles a flat button, to `"outline"`
|
|
60
|
-
* for a transparent button with a border, or to `"solid"` for a button with a filled background.
|
|
61
|
-
* The default fill is `"solid"` except inside of a toolbar, where the default is `"clear"`.
|
|
62
|
-
*/
|
|
63
|
-
fill;
|
|
64
|
-
/**
|
|
65
|
-
* When using a router, it specifies the transition direction when navigating to
|
|
66
|
-
* another page using `href`.
|
|
67
|
-
*/
|
|
68
|
-
routerDirection = 'forward';
|
|
69
|
-
/**
|
|
70
|
-
* When using a router, it specifies the transition animation when navigating to
|
|
71
|
-
* another page using `href`.
|
|
72
|
-
*/
|
|
73
|
-
routerAnimation;
|
|
74
|
-
/**
|
|
75
|
-
* This attribute instructs browsers to download a URL instead of navigating to
|
|
76
|
-
* it, so the user will be prompted to save it as a local file. If the attribute
|
|
77
|
-
* has a value, it is used as the pre-filled file name in the Save prompt
|
|
78
|
-
* (the user can still change the file name if they want).
|
|
79
|
-
*/
|
|
80
|
-
download;
|
|
81
|
-
/**
|
|
82
|
-
* Contains a URL or a URL fragment that the hyperlink points to.
|
|
83
|
-
* If this property is set, an anchor tag will be rendered.
|
|
84
|
-
*/
|
|
85
|
-
href;
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the relationship of the target object to the link object.
|
|
88
|
-
* The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
|
|
89
|
-
*/
|
|
90
|
-
rel;
|
|
91
|
-
/**
|
|
92
|
-
* Set to `"round"` for a button with more rounded corners.
|
|
93
|
-
*/
|
|
94
|
-
shape;
|
|
95
|
-
/**
|
|
96
|
-
* Set to `"small"` for a button with less height and padding, to `"default"`
|
|
97
|
-
* for a button with the default height and padding, or to `"large"` for a button
|
|
98
|
-
* with more height and padding. By default the size is unset, unless the button
|
|
99
|
-
* is inside of an item, where the size is `"small"` by default. Set the size to
|
|
100
|
-
* `"default"` inside of an item to make it a standard size button.
|
|
101
|
-
*/
|
|
102
|
-
size;
|
|
103
|
-
/**
|
|
104
|
-
* If `true`, activates a button with a heavier font weight.
|
|
105
|
-
*/
|
|
106
|
-
strong = false;
|
|
107
|
-
/**
|
|
108
|
-
* Specifies where to display the linked URL.
|
|
109
|
-
* Only applies when an `href` is provided.
|
|
110
|
-
* Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
|
|
111
|
-
*/
|
|
112
|
-
target;
|
|
113
|
-
/**
|
|
114
|
-
* The type of the button.
|
|
115
|
-
*/
|
|
116
|
-
type = 'button';
|
|
117
|
-
/**
|
|
118
|
-
* The HTML form element or form element id. Used to submit a form when the button is not a child of the form.
|
|
119
|
-
*/
|
|
120
|
-
form;
|
|
121
|
-
/**
|
|
122
|
-
* Emitted when the button has focus.
|
|
123
|
-
*/
|
|
124
|
-
ionFocus;
|
|
125
|
-
/**
|
|
126
|
-
* Emitted when the button loses focus.
|
|
127
|
-
*/
|
|
128
|
-
ionBlur;
|
|
129
85
|
/**
|
|
130
86
|
* This component is used within the `ion-input-password-toggle` component
|
|
131
87
|
* to toggle the visibility of the password input.
|
|
@@ -253,32 +209,6 @@ const Button = class {
|
|
|
253
209
|
this.formButtonEl.click();
|
|
254
210
|
}
|
|
255
211
|
}
|
|
256
|
-
handleClick = (ev) => {
|
|
257
|
-
const { el } = this;
|
|
258
|
-
if (this.type === 'button') {
|
|
259
|
-
theme.openURL(this.href, ev, this.routerDirection, this.routerAnimation);
|
|
260
|
-
}
|
|
261
|
-
else if (helpers.hasShadowDom(el)) {
|
|
262
|
-
this.submitForm(ev);
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
onFocus = () => {
|
|
266
|
-
this.ionFocus.emit();
|
|
267
|
-
};
|
|
268
|
-
onBlur = () => {
|
|
269
|
-
this.ionBlur.emit();
|
|
270
|
-
};
|
|
271
|
-
slotChanged = () => {
|
|
272
|
-
/**
|
|
273
|
-
* Ensures that the 'has-icon-only' class is properly added
|
|
274
|
-
* or removed from `ion-button` when manipulating the
|
|
275
|
-
* `icon-only` slot.
|
|
276
|
-
*
|
|
277
|
-
* Without this, the 'has-icon-only' class is only checked
|
|
278
|
-
* or added when `ion-button` component first renders.
|
|
279
|
-
*/
|
|
280
|
-
this.isCircle = this.hasIconOnly;
|
|
281
|
-
};
|
|
282
212
|
render() {
|
|
283
213
|
const mode = ionicGlobal.getIonMode(this);
|
|
284
214
|
const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong, inheritedAttributes, } = this;
|
|
@@ -323,6 +253,7 @@ const Button = class {
|
|
|
323
253
|
'ion-focusable': true,
|
|
324
254
|
}) }, index.h(TagType, { key: '53f4cb366bac796ab38f609e858bc1a55fce7641', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, index.h("span", { key: '40e127fc11c889e77b8bf02e8714f0dea83bfce7', class: "button-inner" }, index.h("slot", { key: 'e11c8c86d3f0894658a8999129425c9c111f5540', name: "icon-only", onSlotchange: this.slotChanged }), index.h("slot", { key: '105ea9259ea17036359e6fe7eced8b267ab8e0f6', name: "start" }), index.h("slot", { key: '0d7b0966e328a5b10b0562dacbd638dfd08d92af' }), index.h("slot", { key: 'c542b40685802464d69f57ecc0a7c3465d24a417', name: "end" })), mode === 'md' && index.h("ion-ripple-effect", { key: '46df4cbeb057b0a8daab92226121d8bbb8c0ee07', type: this.rippleType }))));
|
|
325
255
|
}
|
|
256
|
+
get el() { return index.getElement(this); }
|
|
326
257
|
static get watchers() { return {
|
|
327
258
|
"disabled": [{
|
|
328
259
|
"disabledChanged": 0
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var helpers = require('./helpers-
|
|
6
|
+
var index = require('./index-BrVMoqUk.js');
|
|
7
|
+
var helpers = require('./helpers-Dj5o76mq.js');
|
|
8
8
|
var theme = require('./theme-Bw0rpaNN.js');
|
|
9
|
-
var ionicGlobal = require('./ionic-global-
|
|
9
|
+
var ionicGlobal = require('./ionic-global-DvgIzM2F.js');
|
|
10
10
|
require('./dir-zwDPRE5K.js');
|
|
11
11
|
|
|
12
12
|
const cardIosCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}`;
|
|
@@ -16,60 +16,25 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
|
|
|
16
16
|
const Card = class {
|
|
17
17
|
constructor(hostRef) {
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
|
+
this.inheritedAriaAttributes = {};
|
|
20
|
+
/**
|
|
21
|
+
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
22
|
+
*/
|
|
23
|
+
this.button = false;
|
|
24
|
+
/**
|
|
25
|
+
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
26
|
+
*/
|
|
27
|
+
this.type = 'button';
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the user cannot interact with the card.
|
|
30
|
+
*/
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
/**
|
|
33
|
+
* When using a router, it specifies the transition direction when navigating to
|
|
34
|
+
* another page using `href`.
|
|
35
|
+
*/
|
|
36
|
+
this.routerDirection = 'forward';
|
|
19
37
|
}
|
|
20
|
-
inheritedAriaAttributes = {};
|
|
21
|
-
get el() { return index.getElement(this); }
|
|
22
|
-
/**
|
|
23
|
-
* The color to use from your application's color palette.
|
|
24
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
25
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
26
|
-
*/
|
|
27
|
-
color;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
30
|
-
*/
|
|
31
|
-
button = false;
|
|
32
|
-
/**
|
|
33
|
-
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
34
|
-
*/
|
|
35
|
-
type = 'button';
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, the user cannot interact with the card.
|
|
38
|
-
*/
|
|
39
|
-
disabled = false;
|
|
40
|
-
/**
|
|
41
|
-
* This attribute instructs browsers to download a URL instead of navigating to
|
|
42
|
-
* it, so the user will be prompted to save it as a local file. If the attribute
|
|
43
|
-
* has a value, it is used as the pre-filled file name in the Save prompt
|
|
44
|
-
* (the user can still change the file name if they want).
|
|
45
|
-
*/
|
|
46
|
-
download;
|
|
47
|
-
/**
|
|
48
|
-
* Contains a URL or a URL fragment that the hyperlink points to.
|
|
49
|
-
* If this property is set, an anchor tag will be rendered.
|
|
50
|
-
*/
|
|
51
|
-
href;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the relationship of the target object to the link object.
|
|
54
|
-
* The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
|
|
55
|
-
*/
|
|
56
|
-
rel;
|
|
57
|
-
/**
|
|
58
|
-
* When using a router, it specifies the transition direction when navigating to
|
|
59
|
-
* another page using `href`.
|
|
60
|
-
*/
|
|
61
|
-
routerDirection = 'forward';
|
|
62
|
-
/**
|
|
63
|
-
* When using a router, it specifies the transition animation when navigating to
|
|
64
|
-
* another page using `href`.
|
|
65
|
-
*/
|
|
66
|
-
routerAnimation;
|
|
67
|
-
/**
|
|
68
|
-
* Specifies where to display the linked URL.
|
|
69
|
-
* Only applies when an `href` is provided.
|
|
70
|
-
* Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
|
|
71
|
-
*/
|
|
72
|
-
target;
|
|
73
38
|
componentWillLoad() {
|
|
74
39
|
this.inheritedAriaAttributes = helpers.inheritAttributes(this.el, ['aria-label']);
|
|
75
40
|
}
|
|
@@ -101,6 +66,7 @@ const Card = class {
|
|
|
101
66
|
'ion-activatable': this.isClickable(),
|
|
102
67
|
}) }, this.renderCard(mode)));
|
|
103
68
|
}
|
|
69
|
+
get el() { return index.getElement(this); }
|
|
104
70
|
};
|
|
105
71
|
Card.style = {
|
|
106
72
|
ios: cardIosCss(),
|
|
@@ -136,19 +102,13 @@ const cardHeaderMdCss = () => `:host{--background:transparent;--color:inherit;di
|
|
|
136
102
|
const CardHeader = class {
|
|
137
103
|
constructor(hostRef) {
|
|
138
104
|
index.registerInstance(this, hostRef);
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, the card header will be translucent.
|
|
107
|
+
* Only applies when the mode is `"ios"` and the device supports
|
|
108
|
+
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
|
109
|
+
*/
|
|
110
|
+
this.translucent = false;
|
|
139
111
|
}
|
|
140
|
-
/**
|
|
141
|
-
* The color to use from your application's color palette.
|
|
142
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
143
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
144
|
-
*/
|
|
145
|
-
color;
|
|
146
|
-
/**
|
|
147
|
-
* If `true`, the card header will be translucent.
|
|
148
|
-
* Only applies when the mode is `"ios"` and the device supports
|
|
149
|
-
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
|
150
|
-
*/
|
|
151
|
-
translucent = false;
|
|
152
112
|
render() {
|
|
153
113
|
const mode = ionicGlobal.getIonMode(this);
|
|
154
114
|
return (index.h(index.Host, { key: '64246b81931203a64d553c788cd736f41e23f37b', class: theme.createColorClasses(this.color, {
|
|
@@ -171,12 +131,6 @@ const CardSubtitle = class {
|
|
|
171
131
|
constructor(hostRef) {
|
|
172
132
|
index.registerInstance(this, hostRef);
|
|
173
133
|
}
|
|
174
|
-
/**
|
|
175
|
-
* The color to use from your application's color palette.
|
|
176
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
177
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
178
|
-
*/
|
|
179
|
-
color;
|
|
180
134
|
render() {
|
|
181
135
|
const mode = ionicGlobal.getIonMode(this);
|
|
182
136
|
return (index.h(index.Host, { key: '84d820a19d9074f9c8bc61ccba1ca40062a60b73', role: "heading", "aria-level": "3", class: theme.createColorClasses(this.color, {
|
|
@@ -198,12 +152,6 @@ const CardTitle = class {
|
|
|
198
152
|
constructor(hostRef) {
|
|
199
153
|
index.registerInstance(this, hostRef);
|
|
200
154
|
}
|
|
201
|
-
/**
|
|
202
|
-
* The color to use from your application's color palette.
|
|
203
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
204
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
205
|
-
*/
|
|
206
|
-
color;
|
|
207
155
|
render() {
|
|
208
156
|
const mode = ionicGlobal.getIonMode(this);
|
|
209
157
|
return (index.h(index.Host, { key: 'fca001a86396e83718d5211cd71912fdf40dea2f', role: "heading", "aria-level": "2", class: theme.createColorClasses(this.color, {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var helpers = require('./helpers-
|
|
8
|
-
var itemMultipleInputs = require('./item-multiple-inputs-
|
|
6
|
+
var index = require('./index-BrVMoqUk.js');
|
|
7
|
+
var helpers = require('./helpers-Dj5o76mq.js');
|
|
8
|
+
var itemMultipleInputs = require('./item-multiple-inputs-DG-ZGm6j.js');
|
|
9
9
|
var validity = require('./validity-BpS37YFM.js');
|
|
10
10
|
var theme = require('./theme-Bw0rpaNN.js');
|
|
11
|
-
var ionicGlobal = require('./ionic-global-
|
|
11
|
+
var ionicGlobal = require('./ionic-global-DvgIzM2F.js');
|
|
12
12
|
require('./dir-zwDPRE5K.js');
|
|
13
13
|
|
|
14
14
|
const checkboxIosCss = () => `:host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper,:host(.in-item:not(.checkbox-label-placement-stacked):not([slot])) .native-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{display:none}:host(:focus){outline:none}.native-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.ion-focused) .native-wrapper::after{border-radius:50%;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #1a65eb);content:"";opacity:0.2;inset-block-start:calc(50% - 36px / 2);inset-inline-start:calc(50% - 36px / 2)}.checkbox-bottom{padding-top:4px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75rem;white-space:normal}:host(.checkbox-label-placement-stacked) .checkbox-bottom{font-size:1rem}.checkbox-bottom .error-text{display:none;color:var(--ion-color-danger, #c5000f)}.checkbox-bottom .helper-text{display:block;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d))}:host(.ion-touched.ion-invalid) .checkbox-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .checkbox-bottom .helper-text{display:none}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column;text-align:center}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-justify-space-between),:host(.checkbox-justify-start),:host(.checkbox-justify-end),:host(.checkbox-alignment-start),:host(.checkbox-alignment-center){display:block}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}`;
|
|
@@ -21,105 +21,100 @@ const Checkbox = class {
|
|
|
21
21
|
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
22
22
|
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
23
23
|
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
24
|
+
this.inputId = `ion-cb-${checkboxIds++}`;
|
|
25
|
+
this.inputLabelId = `${this.inputId}-lbl`;
|
|
26
|
+
this.helperTextId = `${this.inputId}-helper-text`;
|
|
27
|
+
this.errorTextId = `${this.inputId}-error-text`;
|
|
28
|
+
this.inheritedAttributes = {};
|
|
29
|
+
/**
|
|
30
|
+
* The name of the control, which is submitted with the form data.
|
|
31
|
+
*/
|
|
32
|
+
this.name = this.inputId;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, the checkbox is selected.
|
|
35
|
+
*/
|
|
36
|
+
this.checked = false;
|
|
37
|
+
/**
|
|
38
|
+
* If `true`, the checkbox will visually appear as indeterminate.
|
|
39
|
+
*/
|
|
40
|
+
this.indeterminate = false;
|
|
41
|
+
/**
|
|
42
|
+
* If `true`, the user cannot interact with the checkbox.
|
|
43
|
+
*/
|
|
44
|
+
this.disabled = false;
|
|
45
|
+
/**
|
|
46
|
+
* The value of the checkbox does not mean if it's checked or not, use the `checked`
|
|
47
|
+
* property for that.
|
|
48
|
+
*
|
|
49
|
+
* The value of a checkbox is analogous to the value of an `<input type="checkbox">`,
|
|
50
|
+
* it's only used when the checkbox participates in a native `<form>`.
|
|
51
|
+
*/
|
|
52
|
+
this.value = 'on';
|
|
53
|
+
/**
|
|
54
|
+
* Where to place the label relative to the checkbox.
|
|
55
|
+
* `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL.
|
|
56
|
+
* `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL.
|
|
57
|
+
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
58
|
+
* `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
59
|
+
*/
|
|
60
|
+
this.labelPlacement = 'start';
|
|
61
|
+
/**
|
|
62
|
+
* If true, screen readers will announce it as a required field. This property
|
|
63
|
+
* works only for accessibility purposes, it will not prevent the form from
|
|
64
|
+
* submitting if the value is invalid.
|
|
65
|
+
*/
|
|
66
|
+
this.required = false;
|
|
67
|
+
/**
|
|
68
|
+
* Track validation state for proper aria-live announcements.
|
|
69
|
+
*/
|
|
70
|
+
this.isInvalid = false;
|
|
71
|
+
this.hasLabelContent = false;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the checked property and emits
|
|
74
|
+
* the ionChange event. Use this to update the
|
|
75
|
+
* checked state in response to user-generated
|
|
76
|
+
* actions such as a click.
|
|
77
|
+
*/
|
|
78
|
+
this.setChecked = (state) => {
|
|
79
|
+
const isChecked = (this.checked = state);
|
|
80
|
+
this.ionChange.emit({
|
|
81
|
+
checked: isChecked,
|
|
82
|
+
value: this.value,
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
this.toggleChecked = (ev) => {
|
|
86
|
+
ev.preventDefault();
|
|
87
|
+
this.setChecked(!this.checked);
|
|
88
|
+
this.indeterminate = false;
|
|
89
|
+
};
|
|
90
|
+
this.onFocus = () => {
|
|
91
|
+
this.ionFocus.emit();
|
|
92
|
+
};
|
|
93
|
+
this.onBlur = () => {
|
|
94
|
+
this.ionBlur.emit();
|
|
95
|
+
};
|
|
96
|
+
this.onKeyDown = (ev) => {
|
|
97
|
+
if (ev.key === ' ') {
|
|
98
|
+
ev.preventDefault();
|
|
99
|
+
if (!this.disabled) {
|
|
100
|
+
this.toggleChecked(ev);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
this.onClick = (ev) => {
|
|
105
|
+
if (this.disabled) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
this.toggleChecked(ev);
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Stops propagation when the display label is clicked,
|
|
112
|
+
* otherwise, two clicks will be triggered.
|
|
113
|
+
*/
|
|
114
|
+
this.onDivLabelClick = (ev) => {
|
|
115
|
+
ev.stopPropagation();
|
|
116
|
+
};
|
|
24
117
|
}
|
|
25
|
-
inputId = `ion-cb-${checkboxIds++}`;
|
|
26
|
-
inputLabelId = `${this.inputId}-lbl`;
|
|
27
|
-
helperTextId = `${this.inputId}-helper-text`;
|
|
28
|
-
errorTextId = `${this.inputId}-error-text`;
|
|
29
|
-
inheritedAttributes = {};
|
|
30
|
-
validationObserver;
|
|
31
|
-
itemFocusObserver;
|
|
32
|
-
get el() { return index.getElement(this); }
|
|
33
|
-
/**
|
|
34
|
-
* The color to use from your application's color palette.
|
|
35
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
36
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
37
|
-
*/
|
|
38
|
-
color;
|
|
39
|
-
/**
|
|
40
|
-
* The name of the control, which is submitted with the form data.
|
|
41
|
-
*/
|
|
42
|
-
name = this.inputId;
|
|
43
|
-
/**
|
|
44
|
-
* If `true`, the checkbox is selected.
|
|
45
|
-
*/
|
|
46
|
-
checked = false;
|
|
47
|
-
/**
|
|
48
|
-
* If `true`, the checkbox will visually appear as indeterminate.
|
|
49
|
-
*/
|
|
50
|
-
indeterminate = false;
|
|
51
|
-
/**
|
|
52
|
-
* If `true`, the user cannot interact with the checkbox.
|
|
53
|
-
*/
|
|
54
|
-
disabled = false;
|
|
55
|
-
/**
|
|
56
|
-
* Text that is placed under the checkbox label and displayed when an error is detected.
|
|
57
|
-
*/
|
|
58
|
-
errorText;
|
|
59
|
-
/**
|
|
60
|
-
* Text that is placed under the checkbox label and displayed when no error is detected.
|
|
61
|
-
*/
|
|
62
|
-
helperText;
|
|
63
|
-
/**
|
|
64
|
-
* The value of the checkbox does not mean if it's checked or not, use the `checked`
|
|
65
|
-
* property for that.
|
|
66
|
-
*
|
|
67
|
-
* The value of a checkbox is analogous to the value of an `<input type="checkbox">`,
|
|
68
|
-
* it's only used when the checkbox participates in a native `<form>`.
|
|
69
|
-
*/
|
|
70
|
-
value = 'on';
|
|
71
|
-
/**
|
|
72
|
-
* Where to place the label relative to the checkbox.
|
|
73
|
-
* `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL.
|
|
74
|
-
* `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL.
|
|
75
|
-
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
76
|
-
* `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
77
|
-
*/
|
|
78
|
-
labelPlacement = 'start';
|
|
79
|
-
/**
|
|
80
|
-
* How to pack the label and checkbox within a line.
|
|
81
|
-
* `"start"`: The label and checkbox will appear on the left in LTR and
|
|
82
|
-
* on the right in RTL.
|
|
83
|
-
* `"end"`: The label and checkbox will appear on the right in LTR and
|
|
84
|
-
* on the left in RTL.
|
|
85
|
-
* `"space-between"`: The label and checkbox will appear on opposite
|
|
86
|
-
* ends of the line with space between the two elements.
|
|
87
|
-
* Setting this property will change the checkbox `display` to `block`.
|
|
88
|
-
*/
|
|
89
|
-
justify;
|
|
90
|
-
/**
|
|
91
|
-
* How to control the alignment of the checkbox and label on the cross axis.
|
|
92
|
-
* `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
93
|
-
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
94
|
-
* Setting this property will change the checkbox `display` to `block`.
|
|
95
|
-
*/
|
|
96
|
-
alignment;
|
|
97
|
-
/**
|
|
98
|
-
* If true, screen readers will announce it as a required field. This property
|
|
99
|
-
* works only for accessibility purposes, it will not prevent the form from
|
|
100
|
-
* submitting if the value is invalid.
|
|
101
|
-
*/
|
|
102
|
-
required = false;
|
|
103
|
-
/**
|
|
104
|
-
* Track validation state for proper aria-live announcements.
|
|
105
|
-
*/
|
|
106
|
-
isInvalid = false;
|
|
107
|
-
hasLabelContent = false;
|
|
108
|
-
hintTextId;
|
|
109
|
-
/**
|
|
110
|
-
* Emitted when the checked property has changed as a result of a user action such as a click.
|
|
111
|
-
*
|
|
112
|
-
* This event will not emit when programmatically setting the `checked` property.
|
|
113
|
-
*/
|
|
114
|
-
ionChange;
|
|
115
|
-
/**
|
|
116
|
-
* Emitted when the checkbox has focus.
|
|
117
|
-
*/
|
|
118
|
-
ionFocus;
|
|
119
|
-
/**
|
|
120
|
-
* Emitted when the checkbox loses focus.
|
|
121
|
-
*/
|
|
122
|
-
ionBlur;
|
|
123
118
|
connectedCallback() {
|
|
124
119
|
const { el } = this;
|
|
125
120
|
if (typeof MutationObserver !== 'undefined') {
|
|
@@ -190,51 +185,6 @@ const Checkbox = class {
|
|
|
190
185
|
async setFocus() {
|
|
191
186
|
this.el.focus();
|
|
192
187
|
}
|
|
193
|
-
/**
|
|
194
|
-
* Sets the checked property and emits
|
|
195
|
-
* the ionChange event. Use this to update the
|
|
196
|
-
* checked state in response to user-generated
|
|
197
|
-
* actions such as a click.
|
|
198
|
-
*/
|
|
199
|
-
setChecked = (state) => {
|
|
200
|
-
const isChecked = (this.checked = state);
|
|
201
|
-
this.ionChange.emit({
|
|
202
|
-
checked: isChecked,
|
|
203
|
-
value: this.value,
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
|
-
toggleChecked = (ev) => {
|
|
207
|
-
ev.preventDefault();
|
|
208
|
-
this.setChecked(!this.checked);
|
|
209
|
-
this.indeterminate = false;
|
|
210
|
-
};
|
|
211
|
-
onFocus = () => {
|
|
212
|
-
this.ionFocus.emit();
|
|
213
|
-
};
|
|
214
|
-
onBlur = () => {
|
|
215
|
-
this.ionBlur.emit();
|
|
216
|
-
};
|
|
217
|
-
onKeyDown = (ev) => {
|
|
218
|
-
if (ev.key === ' ') {
|
|
219
|
-
ev.preventDefault();
|
|
220
|
-
if (!this.disabled) {
|
|
221
|
-
this.toggleChecked(ev);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
onClick = (ev) => {
|
|
226
|
-
if (this.disabled) {
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
this.toggleChecked(ev);
|
|
230
|
-
};
|
|
231
|
-
/**
|
|
232
|
-
* Stops propagation when the display label is clicked,
|
|
233
|
-
* otherwise, two clicks will be triggered.
|
|
234
|
-
*/
|
|
235
|
-
onDivLabelClick = (ev) => {
|
|
236
|
-
ev.stopPropagation();
|
|
237
|
-
};
|
|
238
188
|
getHintTextId() {
|
|
239
189
|
const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
|
|
240
190
|
if (isInvalid && errorText) {
|
|
@@ -295,6 +245,7 @@ const Checkbox = class {
|
|
|
295
245
|
}
|
|
296
246
|
return path;
|
|
297
247
|
}
|
|
248
|
+
get el() { return index.getElement(this); }
|
|
298
249
|
};
|
|
299
250
|
let checkboxIds = 0;
|
|
300
251
|
Checkbox.style = {
|