@sparkle-learning/core 0.0.30 → 0.0.33
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/dist/cjs/PrivateRoute-482697a6.js +35 -0
- package/dist/cjs/{PrivateRoute-043bb7d3.js → auth.service-f878f6ab.js} +0 -30
- package/dist/cjs/dom-utils-b8befdd5.js +63 -0
- package/dist/cjs/header-mobile-collapse_2.cjs.entry.js +112 -0
- package/dist/cjs/{icons-b8a2231a.js → icons-80d477f6.js} +0 -0
- package/dist/cjs/index-07e8aa51.js +3071 -0
- package/dist/cjs/index.cjs.js +6 -5
- package/dist/cjs/injectHistory-77d41284.js +9 -0
- package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
- package/dist/cjs/ion-button_3.cjs.entry.js +383 -0
- package/dist/cjs/ion-card_2.cjs.entry.js +93 -0
- package/dist/cjs/ion-checkbox_4.cjs.entry.js +370 -0
- package/dist/cjs/ion-col_3.cjs.entry.js +155 -0
- package/dist/cjs/ion-icon_2.cjs.entry.js +397 -0
- package/dist/cjs/ion-input_2.cjs.entry.js +316 -0
- package/dist/cjs/ion-label_2.cjs.entry.js +126 -0
- package/dist/cjs/ion-range.cjs.entry.js +445 -0
- package/dist/cjs/ion-spinner.cjs.entry.js +64 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/match-path-84c9f7ca.js +511 -0
- package/dist/cjs/sparkle-card_3.cjs.entry.js +91 -0
- package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-core.cjs.js +1 -1
- package/dist/cjs/sparkle-course-root.cjs.entry.js +145 -0
- package/dist/cjs/sparkle-dropdown.cjs.entry.js +61 -0
- package/dist/cjs/{header-mobile-collapse_61.cjs.entry.js → sparkle-export-lessons_6.cjs.entry.js} +8863 -17664
- package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +2129 -0
- package/dist/cjs/sparkle-feedback.cjs.entry.js +2 -1
- package/dist/cjs/sparkle-goal-progress.cjs.entry.js +19 -0
- package/dist/cjs/sparkle-gww-item.cjs.entry.js +74 -0
- package/dist/cjs/sparkle-intro.cjs.entry.js +26 -0
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +236 -0
- package/dist/cjs/sparkle-validation-error.cjs.entry.js +21 -0
- package/dist/cjs/stencil-route-link.cjs.entry.js +77 -0
- package/dist/cjs/stencil-router-redirect.cjs.entry.js +32 -0
- package/dist/cjs/student.service-7af424fe.js +61 -0
- package/dist/cjs/user.store-3d29139d.js +21 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/layout/page/page.js +0 -2
- package/dist/collection/components/sparkle-intro/sparkle-intro.css +16 -0
- package/dist/collection/components/sparkle-intro/sparkle-intro.js +35 -0
- package/dist/collection/models/course.model.js +6 -0
- package/dist/esm/PrivateRoute-f59ba6b5.js +33 -0
- package/dist/esm/{animation-b306f6c2.js → animation-7b083379.js} +1 -1
- package/dist/esm/{PrivateRoute-b9937c45.js → auth.service-7ab0ac58.js} +3 -32
- package/dist/esm/{auth.store-3ed2389e.js → auth.store-98fad96d.js} +2 -2
- package/dist/esm/dom-utils-8e73e88b.js +55 -0
- package/dist/esm/{facilitator.service-ec0a9739.js → facilitator.service-1524bf89.js} +1 -1
- package/dist/esm/{feed.service-33b83cb7.js → feed.service-4900fc62.js} +2 -2
- package/dist/esm/{framework-delegate-3bc58c27.js → framework-delegate-518bd233.js} +1 -1
- package/dist/esm/header-mobile-collapse_2.entry.js +107 -0
- package/dist/esm/{helpers-39367fe1.js → helpers-9d0930de.js} +1 -1
- package/dist/esm/{icons-5debfbaf.js → icons-05b6ce86.js} +1 -1
- package/dist/esm/{index-c26d8655.js → index-8de9446b.js} +3 -3
- package/dist/esm/index-c92f99d4.js +3067 -0
- package/dist/esm/{index-dc61f152.js → index-ea26196a.js} +1 -1
- package/dist/esm/{index-9594837e.js → index-fa5e93c5.js} +2 -2
- package/dist/esm/{index.es-97dd8174.js → index.es-89cff481.js} +3 -3
- package/dist/esm/index.js +5 -4
- package/dist/esm/injectHistory-52d0c7eb.js +7 -0
- package/dist/esm/{input-shims-cc98ea92.js → input-shims-7f04e044.js} +1 -1
- package/dist/esm/ion-accordion.entry.js +2 -2
- package/dist/esm/ion-action-sheet_4.entry.js +5 -5
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-avatar.entry.js +21 -0
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-breadcrumb.entry.js +2 -2
- package/dist/esm/ion-button_3.entry.js +377 -0
- package/dist/esm/ion-card_2.entry.js +88 -0
- package/dist/esm/ion-checkbox_4.entry.js +363 -0
- package/dist/esm/ion-col_3.entry.js +149 -0
- package/dist/esm/ion-content_2.entry.js +1 -1
- package/dist/esm/ion-datetime.entry.js +2 -2
- package/dist/esm/ion-fab-button.entry.js +1 -1
- package/dist/esm/ion-footer.entry.js +1 -1
- package/dist/esm/ion-icon_2.entry.js +392 -0
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll.entry.js +1 -1
- package/dist/esm/ion-input_2.entry.js +311 -0
- package/dist/esm/ion-item-options.entry.js +1 -1
- package/dist/esm/ion-item-sliding.entry.js +1 -1
- package/dist/esm/ion-label_2.entry.js +121 -0
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu-button.entry.js +5 -5
- package/dist/esm/ion-menu-toggle.entry.js +4 -4
- package/dist/esm/ion-menu.entry.js +4 -4
- package/dist/esm/ion-modal.entry.js +5 -5
- package/dist/esm/ion-nav.entry.js +4 -4
- package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-range.entry.js +441 -0
- package/dist/esm/ion-refresher-content.entry.js +1 -1
- package/dist/esm/ion-refresher.entry.js +2 -2
- package/dist/esm/ion-reorder-group.entry.js +1 -1
- package/dist/esm/ion-reorder.entry.js +1 -1
- package/dist/esm/ion-router-outlet.entry.js +4 -4
- package/dist/esm/ion-router.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment-button.entry.js +1 -1
- package/dist/esm/ion-segment.entry.js +1 -1
- package/dist/esm/ion-select_2.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +1 -1
- package/dist/esm/ion-spinner.entry.js +60 -0
- package/dist/esm/ion-tab.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +1 -1
- package/dist/esm/ion-virtual-scroll.entry.js +1 -1
- package/dist/esm/{ios.transition-b4ca8a33.js → ios.transition-db4f4ca6.js} +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/match-path-36fdf5c7.js +499 -0
- package/dist/esm/{md.transition-ca5e0322.js → md.transition-8294b503.js} +3 -3
- package/dist/esm/{menu-toggle-util-7fa22c2f.js → menu-toggle-util-06adade3.js} +1 -1
- package/dist/esm/{overlays-34cfa9e0.js → overlays-5c777f10.js} +2 -2
- package/dist/esm/{purify-ffce2b4c.js → purify-eb68cf1d.js} +1 -1
- package/dist/esm/sparkle-animation-player.entry.js +1 -1
- package/dist/esm/sparkle-card_3.entry.js +85 -0
- package/dist/esm/sparkle-code.entry.js +1 -1
- package/dist/esm/sparkle-core.js +1 -1
- package/dist/esm/sparkle-course-root.entry.js +141 -0
- package/dist/esm/sparkle-dropdown.entry.js +57 -0
- package/dist/esm/{header-mobile-collapse_61.entry.js → sparkle-export-lessons_6.entry.js} +8858 -17604
- package/dist/esm/sparkle-facilitator-header_19.entry.js +2107 -0
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +4 -4
- package/dist/esm/sparkle-feedback.entry.js +5 -4
- package/dist/esm/sparkle-goal-form.entry.js +5 -5
- package/dist/esm/sparkle-goal-progress.entry.js +15 -0
- package/dist/esm/sparkle-gww-item.entry.js +70 -0
- package/dist/esm/sparkle-intro.entry.js +22 -0
- package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
- package/dist/esm/sparkle-menu-toggle_3.entry.js +230 -0
- package/dist/esm/sparkle-validation-error.entry.js +17 -0
- package/dist/esm/{status-tap-6351a0cb.js → status-tap-e8c0c752.js} +1 -1
- package/dist/esm/stencil-route-link.entry.js +73 -0
- package/dist/esm/stencil-router-redirect.entry.js +28 -0
- package/dist/esm/{student.service-29b688ba.js → student.service-c2f44f3a.js} +3 -18
- package/dist/esm/{swipe-back-34251834.js → swipe-back-9a3b2cdd.js} +1 -1
- package/dist/esm/{tap-click-13f1fb0d.js → tap-click-cca25060.js} +1 -1
- package/dist/esm/user.store-e6ff7558.js +19 -0
- package/dist/esm/{util-6ef753e9.js → util-a831d09d.js} +1 -1
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/p-021fde3c.entry.js +1 -0
- package/dist/sparkle-core/p-034306e2.js +1 -0
- package/dist/sparkle-core/{p-6c90bde6.entry.js → p-034aa29f.entry.js} +1 -1
- package/dist/sparkle-core/p-06c0cce3.entry.js +1 -0
- package/dist/sparkle-core/{p-9cfdeb18.entry.js → p-08923b40.entry.js} +1 -1
- package/dist/sparkle-core/{p-513794b0.js → p-0ad99881.js} +1 -1
- package/dist/sparkle-core/{p-95004267.entry.js → p-11234d0f.entry.js} +1 -1
- package/dist/sparkle-core/{p-9a17f2ad.js → p-1133fcbd.js} +2 -2
- package/dist/sparkle-core/{p-faa912d7.entry.js → p-1551190a.entry.js} +1 -1
- package/dist/sparkle-core/p-1728ead7.js +1 -0
- package/dist/sparkle-core/{p-ae1f145d.entry.js → p-1e8c22e0.entry.js} +1 -1
- package/dist/sparkle-core/p-232cc3bc.js +1 -0
- package/dist/sparkle-core/{p-289a35ed.entry.js → p-28950db0.entry.js} +1 -1
- package/dist/sparkle-core/p-2af82cc1.entry.js +1 -0
- package/dist/sparkle-core/p-2bd4c60e.js +1 -0
- package/dist/sparkle-core/p-2f437793.entry.js +348 -0
- package/dist/sparkle-core/p-330ccc7c.entry.js +1 -0
- package/dist/sparkle-core/{p-838fa86d.entry.js → p-337f92b0.entry.js} +1 -1
- package/dist/sparkle-core/{p-857f3696.entry.js → p-35c5c110.entry.js} +1 -1
- package/dist/sparkle-core/p-3ff617d5.js +1 -0
- package/dist/sparkle-core/{p-7c38a70b.js → p-401feeb0.js} +1 -1
- package/dist/sparkle-core/{p-5a3d0e6b.js → p-4028676b.js} +1 -1
- package/dist/sparkle-core/{p-1cef8572.js → p-41124baa.js} +1 -1
- package/dist/sparkle-core/{p-0187adef.entry.js → p-41af3793.entry.js} +1 -1
- package/dist/sparkle-core/p-43a7391b.entry.js +1 -0
- package/dist/sparkle-core/{p-855ca600.js → p-44c23f72.js} +1 -1
- package/dist/sparkle-core/{p-c1376096.entry.js → p-4550e10f.entry.js} +1 -1
- package/dist/sparkle-core/{p-660e0742.js → p-4a72626a.js} +1 -1
- package/dist/sparkle-core/{p-e1cba44b.entry.js → p-4ba57978.entry.js} +1 -1
- package/dist/sparkle-core/{p-935e7cfc.js → p-4bd4dab2.js} +1 -1
- package/dist/sparkle-core/{p-d5b05ece.entry.js → p-4ef4b8bd.entry.js} +1 -1
- package/dist/sparkle-core/{p-55ae49e1.js → p-4f144efa.js} +1 -1
- package/dist/sparkle-core/{p-713590fc.js → p-52d4715a.js} +1 -1
- package/dist/sparkle-core/{p-bca0e465.entry.js → p-52f1d1ca.entry.js} +1 -1
- package/dist/sparkle-core/{p-7e61973d.entry.js → p-5a98d42e.entry.js} +1 -1
- package/dist/sparkle-core/{p-82e98d07.entry.js → p-5e4ec238.entry.js} +1 -1
- package/dist/sparkle-core/{p-0146afa0.entry.js → p-5ec7fd67.entry.js} +1 -1
- package/dist/sparkle-core/p-618f6f82.entry.js +1 -0
- package/dist/sparkle-core/p-65ca1fb2.entry.js +1 -0
- package/dist/sparkle-core/{p-a080e768.entry.js → p-663fafa9.entry.js} +1 -1
- package/dist/sparkle-core/p-67f71099.entry.js +4 -0
- package/dist/sparkle-core/{p-6e88764b.entry.js → p-6a16b9ef.entry.js} +2 -2
- package/dist/sparkle-core/p-6b6a8f0a.entry.js +1 -0
- package/dist/sparkle-core/p-6c5b5ea2.entry.js +1 -0
- package/dist/sparkle-core/{p-941eaa3a.entry.js → p-6ebf52fb.entry.js} +1 -1
- package/dist/sparkle-core/p-6f45db93.js +1 -0
- package/dist/sparkle-core/p-74106ca8.entry.js +1 -0
- package/dist/sparkle-core/{p-6fbe3ca3.entry.js → p-7568dcab.entry.js} +1 -1
- package/dist/sparkle-core/p-7703bae9.entry.js +1 -0
- package/dist/sparkle-core/p-77c23496.entry.js +1 -0
- package/dist/sparkle-core/p-79606a41.entry.js +1 -0
- package/dist/sparkle-core/p-7976e88c.entry.js +1 -0
- package/dist/sparkle-core/p-7c1f59ec.js +1 -0
- package/dist/sparkle-core/p-7de0a22b.entry.js +1 -0
- package/dist/sparkle-core/p-848fe770.entry.js +1 -0
- package/dist/sparkle-core/{p-cbbeed67.entry.js → p-85429b12.entry.js} +1 -1
- package/dist/sparkle-core/{p-64e72f8f.js → p-86d099f1.js} +2 -2
- package/dist/sparkle-core/{p-389500fd.js → p-87549bb7.js} +2 -2
- package/dist/sparkle-core/{p-1b78dea1.entry.js → p-8c470e28.entry.js} +1 -1
- package/dist/sparkle-core/{p-50aac721.entry.js → p-90466494.entry.js} +1 -1
- package/dist/sparkle-core/p-954c89c2.entry.js +1 -0
- package/dist/sparkle-core/{p-f4001fdf.js → p-95d01c4c.js} +1 -1
- package/dist/sparkle-core/{p-6ee40949.js → p-987c64eb.js} +1 -1
- package/dist/sparkle-core/{p-1af044f7.js → p-a7832a51.js} +1 -1
- package/dist/sparkle-core/p-a89dea80.entry.js +1 -0
- package/dist/sparkle-core/p-aef8aa31.entry.js +1 -0
- package/dist/sparkle-core/{p-6c6145cd.js → p-b17dd6df.js} +2 -2
- package/dist/sparkle-core/{p-5ff6416d.entry.js → p-b21d0d9f.entry.js} +1 -1
- package/dist/sparkle-core/p-b7dafaae.entry.js +1 -0
- package/dist/sparkle-core/{p-c3986a52.entry.js → p-bd062288.entry.js} +1 -1
- package/dist/sparkle-core/{p-c1279cc9.entry.js → p-beb401e3.entry.js} +1 -1
- package/dist/sparkle-core/p-bef34cfe.entry.js +1 -0
- package/dist/sparkle-core/{p-6bf07a28.js → p-c1c59771.js} +1 -1
- package/dist/sparkle-core/p-c4104929.entry.js +1 -0
- package/dist/sparkle-core/{p-173d5461.entry.js → p-c748f64e.entry.js} +1 -1
- package/dist/sparkle-core/{p-d4a435f8.entry.js → p-c753207f.entry.js} +1 -1
- package/dist/sparkle-core/{p-18e62133.entry.js → p-c8ae9e47.entry.js} +1 -1
- package/dist/sparkle-core/p-c8ed0575.js +1 -0
- package/dist/sparkle-core/{p-8fe2e51f.entry.js → p-c96b24bd.entry.js} +2 -2
- package/dist/sparkle-core/p-ce13171b.entry.js +1 -0
- package/dist/sparkle-core/{p-5c9aa1f9.entry.js → p-d00f550b.entry.js} +1 -1
- package/dist/sparkle-core/p-d394eed1.entry.js +1 -0
- package/dist/sparkle-core/p-d48e95c1.entry.js +1 -0
- package/dist/sparkle-core/p-d4b1a14a.entry.js +1 -0
- package/dist/sparkle-core/{p-b81e20fe.entry.js → p-d56efeac.entry.js} +1 -1
- package/dist/sparkle-core/{p-932bfb69.entry.js → p-d59a5984.entry.js} +1 -1
- package/dist/sparkle-core/p-d8aff730.entry.js +1 -0
- package/dist/sparkle-core/{p-5d2e54ee.entry.js → p-da8921d0.entry.js} +1 -1
- package/dist/sparkle-core/{p-a1cab0f3.js → p-e08059b6.js} +2 -2
- package/dist/sparkle-core/{p-5598650a.entry.js → p-ec4d22e3.entry.js} +1 -1
- package/dist/sparkle-core/{p-eb70a23c.entry.js → p-ed3eed72.entry.js} +1 -1
- package/dist/sparkle-core/{p-a7cc0052.entry.js → p-ee0717e1.entry.js} +1 -1
- package/dist/sparkle-core/p-ef2dace6.js +4 -0
- package/dist/sparkle-core/{p-2ee6a5f9.entry.js → p-f1106984.entry.js} +1 -1
- package/dist/sparkle-core/p-f61ca75c.entry.js +1 -0
- package/dist/sparkle-core/{p-e225581a.js → p-f6bafe1d.js} +1 -1
- package/dist/sparkle-core/{p-1df05176.js → p-ff4d6858.js} +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/types/components/sparkle-intro/sparkle-intro.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/dist/types/models/course.model.d.ts +1 -8
- package/package.json +2 -2
- package/dist/cjs/student.service-744c3155.js +0 -77
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -18
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -89
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
- package/dist/sparkle-core/p-03189863.js +0 -1
- package/dist/sparkle-core/p-1339830f.entry.js +0 -1
- package/dist/sparkle-core/p-145e40f5.entry.js +0 -1
- package/dist/sparkle-core/p-547b70c6.entry.js +0 -1
- package/dist/sparkle-core/p-6bbabb80.entry.js +0 -1
- package/dist/sparkle-core/p-950effe7.entry.js +0 -1
- package/dist/sparkle-core/p-d8d3524a.js +0 -1
- package/dist/sparkle-core/p-df0070c5.entry.js +0 -352
- package/dist/sparkle-core/p-e0fced48.entry.js +0 -1
- package/dist/sparkle-core/p-e72d4450.js +0 -4
- package/dist/sparkle-core/p-fc933591.entry.js +0 -1
@@ -0,0 +1,363 @@
|
|
1
|
+
import { r as registerInstance, i as createEvent, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
+
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
+
import { n as getAriaLabel, d as renderHiddenInput, a as addEventListener, r as removeEventListener } from './helpers-9d0930de.js';
|
4
|
+
import { c as createColorClasses, h as hostContext } from './theme-c336c9d9.js';
|
5
|
+
|
6
|
+
const checkboxIosCss = ":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--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:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}";
|
7
|
+
|
8
|
+
const checkboxMdCss = ":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--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:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}";
|
9
|
+
|
10
|
+
const Checkbox = class {
|
11
|
+
constructor(hostRef) {
|
12
|
+
registerInstance(this, hostRef);
|
13
|
+
this.ionChange = createEvent(this, "ionChange", 7);
|
14
|
+
this.ionFocus = createEvent(this, "ionFocus", 7);
|
15
|
+
this.ionBlur = createEvent(this, "ionBlur", 7);
|
16
|
+
this.ionStyle = createEvent(this, "ionStyle", 7);
|
17
|
+
this.inputId = `ion-cb-${checkboxIds++}`;
|
18
|
+
/**
|
19
|
+
* The name of the control, which is submitted with the form data.
|
20
|
+
*/
|
21
|
+
this.name = this.inputId;
|
22
|
+
/**
|
23
|
+
* If `true`, the checkbox is selected.
|
24
|
+
*/
|
25
|
+
this.checked = false;
|
26
|
+
/**
|
27
|
+
* If `true`, the checkbox will visually appear as indeterminate.
|
28
|
+
*/
|
29
|
+
this.indeterminate = false;
|
30
|
+
/**
|
31
|
+
* If `true`, the user cannot interact with the checkbox.
|
32
|
+
*/
|
33
|
+
this.disabled = false;
|
34
|
+
/**
|
35
|
+
* The value of the checkbox does not mean if it's checked or not, use the `checked`
|
36
|
+
* property for that.
|
37
|
+
*
|
38
|
+
* The value of a checkbox is analogous to the value of an `<input type="checkbox">`,
|
39
|
+
* it's only used when the checkbox participates in a native `<form>`.
|
40
|
+
*/
|
41
|
+
this.value = 'on';
|
42
|
+
this.onClick = (ev) => {
|
43
|
+
ev.preventDefault();
|
44
|
+
this.setFocus();
|
45
|
+
this.checked = !this.checked;
|
46
|
+
this.indeterminate = false;
|
47
|
+
};
|
48
|
+
this.onFocus = () => {
|
49
|
+
this.ionFocus.emit();
|
50
|
+
};
|
51
|
+
this.onBlur = () => {
|
52
|
+
this.ionBlur.emit();
|
53
|
+
};
|
54
|
+
}
|
55
|
+
componentWillLoad() {
|
56
|
+
this.emitStyle();
|
57
|
+
}
|
58
|
+
checkedChanged(isChecked) {
|
59
|
+
this.ionChange.emit({
|
60
|
+
checked: isChecked,
|
61
|
+
value: this.value
|
62
|
+
});
|
63
|
+
this.emitStyle();
|
64
|
+
}
|
65
|
+
disabledChanged() {
|
66
|
+
this.emitStyle();
|
67
|
+
}
|
68
|
+
emitStyle() {
|
69
|
+
this.ionStyle.emit({
|
70
|
+
'checkbox-checked': this.checked,
|
71
|
+
'interactive-disabled': this.disabled,
|
72
|
+
});
|
73
|
+
}
|
74
|
+
setFocus() {
|
75
|
+
if (this.focusEl) {
|
76
|
+
this.focusEl.focus();
|
77
|
+
}
|
78
|
+
}
|
79
|
+
render() {
|
80
|
+
const { color, checked, disabled, el, indeterminate, inputId, name, value } = this;
|
81
|
+
const mode = getIonMode(this);
|
82
|
+
const { label, labelId, labelText } = getAriaLabel(el, inputId);
|
83
|
+
renderHiddenInput(true, el, name, (checked ? value : ''), disabled);
|
84
|
+
let path = indeterminate
|
85
|
+
? h("path", { d: "M6 12L18 12", part: "mark" })
|
86
|
+
: h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" });
|
87
|
+
if (mode === 'md') {
|
88
|
+
path = indeterminate
|
89
|
+
? h("path", { d: "M2 12H22", part: "mark" })
|
90
|
+
: h("path", { d: "M1.73,12.91 8.1,19.28 22.79,4.59", part: "mark" });
|
91
|
+
}
|
92
|
+
return (h(Host, { onClick: this.onClick, "aria-labelledby": label ? labelId : null, "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, role: "checkbox", class: createColorClasses(color, {
|
93
|
+
[mode]: true,
|
94
|
+
'in-item': hostContext('ion-item', el),
|
95
|
+
'checkbox-checked': checked,
|
96
|
+
'checkbox-disabled': disabled,
|
97
|
+
'checkbox-indeterminate': indeterminate,
|
98
|
+
'interactive': true
|
99
|
+
}) }, h("svg", { class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path), h("label", { htmlFor: inputId }, labelText), h("input", { type: "checkbox", "aria-checked": `${checked}`, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: focusEl => this.focusEl = focusEl })));
|
100
|
+
}
|
101
|
+
get el() { return getElement(this); }
|
102
|
+
static get watchers() { return {
|
103
|
+
"checked": ["checkedChanged"],
|
104
|
+
"disabled": ["disabledChanged"]
|
105
|
+
}; }
|
106
|
+
};
|
107
|
+
let checkboxIds = 0;
|
108
|
+
Checkbox.style = {
|
109
|
+
ios: checkboxIosCss,
|
110
|
+
md: checkboxMdCss
|
111
|
+
};
|
112
|
+
|
113
|
+
const listHeaderIosCss = ":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}";
|
114
|
+
|
115
|
+
const listHeaderMdCss = ":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}";
|
116
|
+
|
117
|
+
const ListHeader = class {
|
118
|
+
constructor(hostRef) {
|
119
|
+
registerInstance(this, hostRef);
|
120
|
+
}
|
121
|
+
render() {
|
122
|
+
const { lines } = this;
|
123
|
+
const mode = getIonMode(this);
|
124
|
+
return (h(Host, { class: createColorClasses(this.color, {
|
125
|
+
[mode]: true,
|
126
|
+
[`list-header-lines-${lines}`]: lines !== undefined,
|
127
|
+
}) }, h("div", { class: "list-header-inner" }, h("slot", null))));
|
128
|
+
}
|
129
|
+
};
|
130
|
+
ListHeader.style = {
|
131
|
+
ios: listHeaderIosCss,
|
132
|
+
md: listHeaderMdCss
|
133
|
+
};
|
134
|
+
|
135
|
+
const radioIosCss = ":host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:\"\";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}";
|
136
|
+
|
137
|
+
const radioMdCss = ":host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:\"\";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}";
|
138
|
+
|
139
|
+
const Radio = class {
|
140
|
+
constructor(hostRef) {
|
141
|
+
registerInstance(this, hostRef);
|
142
|
+
this.ionStyle = createEvent(this, "ionStyle", 7);
|
143
|
+
this.ionFocus = createEvent(this, "ionFocus", 7);
|
144
|
+
this.ionBlur = createEvent(this, "ionBlur", 7);
|
145
|
+
this.inputId = `ion-rb-${radioButtonIds++}`;
|
146
|
+
this.radioGroup = null;
|
147
|
+
/**
|
148
|
+
* If `true`, the radio is selected.
|
149
|
+
*/
|
150
|
+
this.checked = false;
|
151
|
+
/**
|
152
|
+
* The tabindex of the radio button.
|
153
|
+
* @internal
|
154
|
+
*/
|
155
|
+
this.buttonTabindex = -1;
|
156
|
+
/**
|
157
|
+
* The name of the control, which is submitted with the form data.
|
158
|
+
*/
|
159
|
+
this.name = this.inputId;
|
160
|
+
/**
|
161
|
+
* If `true`, the user cannot interact with the radio.
|
162
|
+
*/
|
163
|
+
this.disabled = false;
|
164
|
+
this.updateState = () => {
|
165
|
+
if (this.radioGroup) {
|
166
|
+
this.checked = this.radioGroup.value === this.value;
|
167
|
+
}
|
168
|
+
};
|
169
|
+
this.onClick = () => {
|
170
|
+
this.checked = this.nativeInput.checked;
|
171
|
+
};
|
172
|
+
this.onFocus = () => {
|
173
|
+
this.ionFocus.emit();
|
174
|
+
};
|
175
|
+
this.onBlur = () => {
|
176
|
+
this.ionBlur.emit();
|
177
|
+
};
|
178
|
+
}
|
179
|
+
/** @internal */
|
180
|
+
async setFocus(ev) {
|
181
|
+
ev.stopPropagation();
|
182
|
+
ev.preventDefault();
|
183
|
+
this.el.focus();
|
184
|
+
}
|
185
|
+
/** @internal */
|
186
|
+
async setButtonTabindex(value) {
|
187
|
+
this.buttonTabindex = value;
|
188
|
+
}
|
189
|
+
connectedCallback() {
|
190
|
+
if (this.value === undefined) {
|
191
|
+
this.value = this.inputId;
|
192
|
+
}
|
193
|
+
const radioGroup = this.radioGroup = this.el.closest('ion-radio-group');
|
194
|
+
if (radioGroup) {
|
195
|
+
this.updateState();
|
196
|
+
addEventListener(radioGroup, 'ionChange', this.updateState);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
disconnectedCallback() {
|
200
|
+
const radioGroup = this.radioGroup;
|
201
|
+
if (radioGroup) {
|
202
|
+
removeEventListener(radioGroup, 'ionChange', this.updateState);
|
203
|
+
this.radioGroup = null;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
componentWillLoad() {
|
207
|
+
this.emitStyle();
|
208
|
+
}
|
209
|
+
emitStyle() {
|
210
|
+
this.ionStyle.emit({
|
211
|
+
'radio-checked': this.checked,
|
212
|
+
'interactive-disabled': this.disabled,
|
213
|
+
});
|
214
|
+
}
|
215
|
+
render() {
|
216
|
+
const { inputId, disabled, checked, color, el, buttonTabindex } = this;
|
217
|
+
const mode = getIonMode(this);
|
218
|
+
const { label, labelId, labelText } = getAriaLabel(el, inputId);
|
219
|
+
return (h(Host, { "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, "aria-labelledby": label ? labelId : null, role: "radio", tabindex: buttonTabindex, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
220
|
+
[mode]: true,
|
221
|
+
'in-item': hostContext('ion-item', el),
|
222
|
+
'interactive': true,
|
223
|
+
'radio-checked': checked,
|
224
|
+
'radio-disabled': disabled,
|
225
|
+
}) }, h("div", { class: "radio-icon", part: "container" }, h("div", { class: "radio-inner", part: "mark" }), h("div", { class: "radio-ripple" })), h("label", { htmlFor: inputId }, labelText), h("input", { type: "radio", checked: checked, disabled: disabled, tabindex: "-1", id: inputId, ref: nativeEl => this.nativeInput = nativeEl })));
|
226
|
+
}
|
227
|
+
get el() { return getElement(this); }
|
228
|
+
static get watchers() { return {
|
229
|
+
"color": ["emitStyle"],
|
230
|
+
"checked": ["emitStyle"],
|
231
|
+
"disabled": ["emitStyle"]
|
232
|
+
}; }
|
233
|
+
};
|
234
|
+
let radioButtonIds = 0;
|
235
|
+
Radio.style = {
|
236
|
+
ios: radioIosCss,
|
237
|
+
md: radioMdCss
|
238
|
+
};
|
239
|
+
|
240
|
+
const RadioGroup = class {
|
241
|
+
constructor(hostRef) {
|
242
|
+
registerInstance(this, hostRef);
|
243
|
+
this.ionChange = createEvent(this, "ionChange", 7);
|
244
|
+
this.inputId = `ion-rg-${radioGroupIds++}`;
|
245
|
+
this.labelId = `${this.inputId}-lbl`;
|
246
|
+
/**
|
247
|
+
* If `true`, the radios can be deselected.
|
248
|
+
*/
|
249
|
+
this.allowEmptySelection = false;
|
250
|
+
/**
|
251
|
+
* The name of the control, which is submitted with the form data.
|
252
|
+
*/
|
253
|
+
this.name = this.inputId;
|
254
|
+
this.setRadioTabindex = (value) => {
|
255
|
+
const radios = this.getRadios();
|
256
|
+
// Get the first radio that is not disabled and the checked one
|
257
|
+
const first = radios.find(radio => !radio.disabled);
|
258
|
+
const checked = radios.find(radio => (radio.value === value && !radio.disabled));
|
259
|
+
if (!first && !checked) {
|
260
|
+
return;
|
261
|
+
}
|
262
|
+
// If an enabled checked radio exists, set it to be the focusable radio
|
263
|
+
// otherwise we default to focus the first radio
|
264
|
+
const focusable = checked || first;
|
265
|
+
for (const radio of radios) {
|
266
|
+
const tabindex = radio === focusable ? 0 : -1;
|
267
|
+
radio.setButtonTabindex(tabindex);
|
268
|
+
}
|
269
|
+
};
|
270
|
+
this.onClick = (ev) => {
|
271
|
+
ev.preventDefault();
|
272
|
+
const selectedRadio = ev.target && ev.target.closest('ion-radio');
|
273
|
+
if (selectedRadio) {
|
274
|
+
const currentValue = this.value;
|
275
|
+
const newValue = selectedRadio.value;
|
276
|
+
if (newValue !== currentValue) {
|
277
|
+
this.value = newValue;
|
278
|
+
}
|
279
|
+
else if (this.allowEmptySelection) {
|
280
|
+
this.value = undefined;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
};
|
284
|
+
}
|
285
|
+
valueChanged(value) {
|
286
|
+
this.setRadioTabindex(value);
|
287
|
+
this.ionChange.emit({ value });
|
288
|
+
}
|
289
|
+
componentDidLoad() {
|
290
|
+
this.setRadioTabindex(this.value);
|
291
|
+
}
|
292
|
+
async connectedCallback() {
|
293
|
+
// Get the list header if it exists and set the id
|
294
|
+
// this is used to set aria-labelledby
|
295
|
+
const header = this.el.querySelector('ion-list-header') || this.el.querySelector('ion-item-divider');
|
296
|
+
if (header) {
|
297
|
+
const label = this.label = header.querySelector('ion-label');
|
298
|
+
if (label) {
|
299
|
+
this.labelId = label.id = this.name + '-lbl';
|
300
|
+
}
|
301
|
+
}
|
302
|
+
}
|
303
|
+
getRadios() {
|
304
|
+
return Array.from(this.el.querySelectorAll('ion-radio'));
|
305
|
+
}
|
306
|
+
onKeydown(ev) {
|
307
|
+
const inSelectPopover = !!this.el.closest('ion-select-popover');
|
308
|
+
if (ev.target && !this.el.contains(ev.target)) {
|
309
|
+
return;
|
310
|
+
}
|
311
|
+
// Get all radios inside of the radio group and then
|
312
|
+
// filter out disabled radios since we need to skip those
|
313
|
+
const radios = this.getRadios().filter(radio => !radio.disabled);
|
314
|
+
// Only move the radio if the current focus is in the radio group
|
315
|
+
if (ev.target && radios.includes(ev.target)) {
|
316
|
+
const index = radios.findIndex(radio => radio === ev.target);
|
317
|
+
const current = radios[index];
|
318
|
+
let next;
|
319
|
+
// If hitting arrow down or arrow right, move to the next radio
|
320
|
+
// If we're on the last radio, move to the first radio
|
321
|
+
if (['ArrowDown', 'ArrowRight'].includes(ev.code)) {
|
322
|
+
next = (index === radios.length - 1)
|
323
|
+
? radios[0]
|
324
|
+
: radios[index + 1];
|
325
|
+
}
|
326
|
+
// If hitting arrow up or arrow left, move to the previous radio
|
327
|
+
// If we're on the first radio, move to the last radio
|
328
|
+
if (['ArrowUp', 'ArrowLeft'].includes(ev.code)) {
|
329
|
+
next = (index === 0)
|
330
|
+
? radios[radios.length - 1]
|
331
|
+
: radios[index - 1];
|
332
|
+
}
|
333
|
+
if (next && radios.includes(next)) {
|
334
|
+
next.setFocus(ev);
|
335
|
+
if (!inSelectPopover) {
|
336
|
+
this.value = next.value;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
// Update the radio group value when a user presses the
|
340
|
+
// space bar on top of a selected radio
|
341
|
+
if (['Space'].includes(ev.code)) {
|
342
|
+
this.value = (this.allowEmptySelection && this.value !== undefined)
|
343
|
+
? undefined
|
344
|
+
: current.value;
|
345
|
+
// Prevent browsers from jumping
|
346
|
+
// to the bottom of the screen
|
347
|
+
ev.preventDefault();
|
348
|
+
}
|
349
|
+
}
|
350
|
+
}
|
351
|
+
render() {
|
352
|
+
const { label, labelId } = this;
|
353
|
+
const mode = getIonMode(this);
|
354
|
+
return (h(Host, { role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode }));
|
355
|
+
}
|
356
|
+
get el() { return getElement(this); }
|
357
|
+
static get watchers() { return {
|
358
|
+
"value": ["valueChanged"]
|
359
|
+
}; }
|
360
|
+
};
|
361
|
+
let radioGroupIds = 0;
|
362
|
+
|
363
|
+
export { Checkbox as ion_checkbox, ListHeader as ion_list_header, Radio as ion_radio, RadioGroup as ion_radio_group };
|
@@ -0,0 +1,149 @@
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host } from './index-5568e3fa.js';
|
2
|
+
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
6
|
+
*/
|
7
|
+
const SIZE_TO_MEDIA = {
|
8
|
+
'xs': '(min-width: 0px)',
|
9
|
+
'sm': '(min-width: 576px)',
|
10
|
+
'md': '(min-width: 768px)',
|
11
|
+
'lg': '(min-width: 992px)',
|
12
|
+
'xl': '(min-width: 1200px)',
|
13
|
+
};
|
14
|
+
// Check if the window matches the media query
|
15
|
+
// at the breakpoint passed
|
16
|
+
// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px
|
17
|
+
const matchBreakpoint = (breakpoint) => {
|
18
|
+
if (breakpoint === undefined || breakpoint === '') {
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
if (window.matchMedia) {
|
22
|
+
const mediaQuery = SIZE_TO_MEDIA[breakpoint];
|
23
|
+
return window.matchMedia(mediaQuery).matches;
|
24
|
+
}
|
25
|
+
return false;
|
26
|
+
};
|
27
|
+
|
28
|
+
const colCss = ":host{padding-left:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}}";
|
29
|
+
|
30
|
+
const win = (typeof window !== 'undefined') ? window : undefined;
|
31
|
+
const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));
|
32
|
+
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
33
|
+
const Col = class {
|
34
|
+
constructor(hostRef) {
|
35
|
+
registerInstance(this, hostRef);
|
36
|
+
}
|
37
|
+
onResize() {
|
38
|
+
forceUpdate(this);
|
39
|
+
}
|
40
|
+
// Loop through all of the breakpoints to see if the media query
|
41
|
+
// matches and grab the column value from the relevant prop if so
|
42
|
+
getColumns(property) {
|
43
|
+
let matched;
|
44
|
+
for (const breakpoint of BREAKPOINTS) {
|
45
|
+
const matches = matchBreakpoint(breakpoint);
|
46
|
+
// Grab the value of the property, if it exists and our
|
47
|
+
// media query matches we return the value
|
48
|
+
const columns = this[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];
|
49
|
+
if (matches && columns !== undefined) {
|
50
|
+
matched = columns;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
// Return the last matched columns since the breakpoints
|
54
|
+
// increase in size and we want to return the largest match
|
55
|
+
return matched;
|
56
|
+
}
|
57
|
+
calculateSize() {
|
58
|
+
const columns = this.getColumns('size');
|
59
|
+
// If size wasn't set for any breakpoint
|
60
|
+
// or if the user set the size without a value
|
61
|
+
// it means we need to stick with the default and return
|
62
|
+
// e.g. <ion-col size-md>
|
63
|
+
if (!columns || columns === '') {
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
// If the size is set to auto then don't calculate a size
|
67
|
+
const colSize = (columns === 'auto')
|
68
|
+
? 'auto'
|
69
|
+
// If CSS supports variables we should use the grid columns var
|
70
|
+
: SUPPORTS_VARS ? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
71
|
+
// Convert the columns to a percentage by dividing by the total number
|
72
|
+
// of columns (12) and then multiplying by 100
|
73
|
+
: ((columns / 12) * 100) + '%';
|
74
|
+
return {
|
75
|
+
'flex': `0 0 ${colSize}`,
|
76
|
+
'width': `${colSize}`,
|
77
|
+
'max-width': `${colSize}`
|
78
|
+
};
|
79
|
+
}
|
80
|
+
// Called by push, pull, and offset since they use the same calculations
|
81
|
+
calculatePosition(property, modifier) {
|
82
|
+
const columns = this.getColumns(property);
|
83
|
+
if (!columns) {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
// If the number of columns passed are greater than 0 and less than
|
87
|
+
// 12 we can position the column, else default to auto
|
88
|
+
const amount = SUPPORTS_VARS
|
89
|
+
// If CSS supports variables we should use the grid columns var
|
90
|
+
? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
91
|
+
// Convert the columns to a percentage by dividing by the total number
|
92
|
+
// of columns (12) and then multiplying by 100
|
93
|
+
: (columns > 0 && columns < 12) ? (columns / 12 * 100) + '%' : 'auto';
|
94
|
+
return {
|
95
|
+
[modifier]: amount
|
96
|
+
};
|
97
|
+
}
|
98
|
+
calculateOffset(isRTL) {
|
99
|
+
return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');
|
100
|
+
}
|
101
|
+
calculatePull(isRTL) {
|
102
|
+
return this.calculatePosition('pull', isRTL ? 'left' : 'right');
|
103
|
+
}
|
104
|
+
calculatePush(isRTL) {
|
105
|
+
return this.calculatePosition('push', isRTL ? 'right' : 'left');
|
106
|
+
}
|
107
|
+
render() {
|
108
|
+
const isRTL = document.dir === 'rtl';
|
109
|
+
const mode = getIonMode(this);
|
110
|
+
return (h(Host, { class: {
|
111
|
+
[mode]: true
|
112
|
+
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, h("slot", null)));
|
113
|
+
}
|
114
|
+
};
|
115
|
+
Col.style = colCss;
|
116
|
+
|
117
|
+
const gridCss = ":host{padding-left:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));margin-left:auto;margin-right:auto;display:block;flex:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}";
|
118
|
+
|
119
|
+
const Grid = class {
|
120
|
+
constructor(hostRef) {
|
121
|
+
registerInstance(this, hostRef);
|
122
|
+
/**
|
123
|
+
* If `true`, the grid will have a fixed width based on the screen size.
|
124
|
+
*/
|
125
|
+
this.fixed = false;
|
126
|
+
}
|
127
|
+
render() {
|
128
|
+
const mode = getIonMode(this);
|
129
|
+
return (h(Host, { class: {
|
130
|
+
[mode]: true,
|
131
|
+
'grid-fixed': this.fixed
|
132
|
+
} }, h("slot", null)));
|
133
|
+
}
|
134
|
+
};
|
135
|
+
Grid.style = gridCss;
|
136
|
+
|
137
|
+
const rowCss = ":host{display:flex;flex-wrap:wrap}";
|
138
|
+
|
139
|
+
const Row = class {
|
140
|
+
constructor(hostRef) {
|
141
|
+
registerInstance(this, hostRef);
|
142
|
+
}
|
143
|
+
render() {
|
144
|
+
return (h(Host, { class: getIonMode(this) }, h("slot", null)));
|
145
|
+
}
|
146
|
+
};
|
147
|
+
Row.style = rowCss;
|
148
|
+
|
149
|
+
export { Col as ion_col, Grid as ion_grid, Row as ion_row };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, j as readTask, f as forceUpdate, h, H as Host, e as getElement, w as writeTask } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode, a as isPlatform } from './ionic-global-0939c477.js';
|
3
|
-
import { c as componentOnReady,
|
3
|
+
import { c as componentOnReady, e as clamp, i as inheritAttributes } from './helpers-9d0930de.js';
|
4
4
|
import { i as isRTL } from './dir-03012648.js';
|
5
5
|
import { c as createColorClasses, h as hostContext } from './theme-c336c9d9.js';
|
6
6
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, w as writeTask, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import {
|
2
|
+
import { b as chevronBack, d as chevronForward, c as chevronDown, f as caretUpSharp, g as caretDownSharp } from './index-ea26196a.js';
|
3
3
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
4
4
|
import { startFocusVisible } from './focus-visible-40cda868.js';
|
5
|
-
import {
|
5
|
+
import { b as raf, d as renderHiddenInput, g as getElementRoot } from './helpers-9d0930de.js';
|
6
6
|
import { i as isRTL } from './dir-03012648.js';
|
7
7
|
import { c as createColorClasses } from './theme-c336c9d9.js';
|
8
8
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { h as close } from './index-
|
2
|
+
import { h as close } from './index-ea26196a.js';
|
3
3
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
4
4
|
import { h as hostContext, o as openURL, c as createColorClasses } from './theme-c336c9d9.js';
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as readTask, w as writeTask, r as registerInstance, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import {
|
3
|
+
import { e as clamp, c as componentOnReady } from './helpers-9d0930de.js';
|
4
4
|
|
5
5
|
/*!
|
6
6
|
* (C) Ionic http://ionicframework.com - MIT License
|