@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
@@ -1,10 +1,10 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import { B as BACKDROP, i as isCancel, p as prepareOverlay,
|
3
|
+
import { B as BACKDROP, i as isCancel, p as prepareOverlay, a as present, d as dismiss, e as eventMethod, s as safeCall } from './overlays-5c777f10.js';
|
4
4
|
import { g as getClassMap } from './theme-c336c9d9.js';
|
5
|
-
import { c as createAnimation } from './animation-
|
5
|
+
import { c as createAnimation } from './animation-7b083379.js';
|
6
6
|
import './hardware-back-button-b6ccf74a.js';
|
7
|
-
import './helpers-
|
7
|
+
import './helpers-9d0930de.js';
|
8
8
|
|
9
9
|
/*!
|
10
10
|
* (C) Ionic http://ionicframework.com - MIT License
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-5568e3fa.js';
|
2
2
|
import { c as config, g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import {
|
3
|
+
import { e as clamp } from './helpers-9d0930de.js';
|
4
4
|
import { c as createColorClasses } from './theme-c336c9d9.js';
|
5
5
|
|
6
6
|
const progressBarIosCss = ":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{transform-origin:left top;transition:transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{animation:primary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{animation:secondary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@keyframes primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{to{transform:translateX(-10px)}}:host{height:3px}";
|
@@ -0,0 +1,441 @@
|
|
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 { e as clamp, l as debounceEvent, i as inheritAttributes, n as getAriaLabel, d as renderHiddenInput } from './helpers-9d0930de.js';
|
4
|
+
import { i as isRTL } from './dir-03012648.js';
|
5
|
+
import { c as createColorClasses, h as hostContext } from './theme-c336c9d9.js';
|
6
|
+
|
7
|
+
const rangeIosCss = ":host{--knob-handle-size:calc(var(--knob-size) * 2);display:flex;position:relative;flex:3;align-items:center;font-family:var(--ion-font-family, inherit);user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:grab;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){align-self:center}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0 3px 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.02);--knob-size:28px;--bar-height:2px;--bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){margin-left:0;margin-right:16px;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted([slot=end]){margin-left:16px;margin-right:0;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:20px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-tick{margin-left:-1px;border-radius:0;position:absolute;top:18px;width:2px;height:8px;background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);pointer-events:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-tick{margin-left:unset;-webkit-margin-start:-1px;margin-inline-start:-1px}}.range-tick-active{background:var(--bar-background-active)}.range-pin{transform:translate3d(0, 28px, 0) scale(0.01);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:inline-block;position:relative;top:-20px;min-width:28px;transition:transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:12px;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-pin{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.range-knob-pressed .range-pin{transform:translate3d(0, 0, 0) scale(1)}:host(.range-disabled){opacity:0.5}";
|
8
|
+
|
9
|
+
const rangeMdCss = ":host{--knob-handle-size:calc(var(--knob-size) * 2);display:flex;position:relative;flex:3;align-items:center;font-family:var(--ion-font-family, inherit);user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:grab;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){align-self:center}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff);padding-left:14px;padding-right:14px;padding-top:8px;padding-bottom:8px;font-size:12px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px}}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){margin-left:0;margin-right:14px;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px}}::slotted([slot=end]){margin-left:14px;margin-right:0;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:28px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{transform:scale(0.67);transition-duration:120ms;transition-property:transform, background-color, border;transition-timing-function:ease;z-index:2}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;transform:translate3d(0, 0, 0) scale(0.01);display:inline-block;position:relative;min-width:28px;height:28px;transition:transform 120ms ease, background 120ms ease;background:var(--pin-background);color:var(--pin-color);text-align:center}.range-pin::before{left:50%;top:3px;margin-left:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;transform:rotate(-45deg);transition:background 120ms ease;background:var(--pin-background);content:\"\";z-index:-1}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.range-pin::before{margin-left:unset;-webkit-margin-start:-13px;margin-inline-start:-13px}}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset}.range-knob-pressed .range-pin{transform:translate3d(0, -24px, 0) scale(1)}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob{transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}";
|
10
|
+
|
11
|
+
const Range = class {
|
12
|
+
constructor(hostRef) {
|
13
|
+
registerInstance(this, hostRef);
|
14
|
+
this.ionChange = createEvent(this, "ionChange", 7);
|
15
|
+
this.ionStyle = createEvent(this, "ionStyle", 7);
|
16
|
+
this.ionFocus = createEvent(this, "ionFocus", 7);
|
17
|
+
this.ionBlur = createEvent(this, "ionBlur", 7);
|
18
|
+
this.didLoad = false;
|
19
|
+
this.noUpdate = false;
|
20
|
+
this.hasFocus = false;
|
21
|
+
this.inheritedAttributes = {};
|
22
|
+
this.ratioA = 0;
|
23
|
+
this.ratioB = 0;
|
24
|
+
/**
|
25
|
+
* How long, in milliseconds, to wait to trigger the
|
26
|
+
* `ionChange` event after each change in the range value.
|
27
|
+
* This also impacts form bindings such as `ngModel` or `v-model`.
|
28
|
+
*/
|
29
|
+
this.debounce = 0;
|
30
|
+
// TODO: In Ionic Framework v6 this should initialize to this.rangeId like the other form components do.
|
31
|
+
/**
|
32
|
+
* The name of the control, which is submitted with the form data.
|
33
|
+
*/
|
34
|
+
this.name = '';
|
35
|
+
/**
|
36
|
+
* Show two knobs.
|
37
|
+
*/
|
38
|
+
this.dualKnobs = false;
|
39
|
+
/**
|
40
|
+
* Minimum integer value of the range.
|
41
|
+
*/
|
42
|
+
this.min = 0;
|
43
|
+
/**
|
44
|
+
* Maximum integer value of the range.
|
45
|
+
*/
|
46
|
+
this.max = 100;
|
47
|
+
/**
|
48
|
+
* If `true`, a pin with integer value is shown when the knob
|
49
|
+
* is pressed.
|
50
|
+
*/
|
51
|
+
this.pin = false;
|
52
|
+
/**
|
53
|
+
* A callback used to format the pin text.
|
54
|
+
* By default the pin text is set to `Math.round(value)`.
|
55
|
+
*/
|
56
|
+
this.pinFormatter = (value) => Math.round(value);
|
57
|
+
/**
|
58
|
+
* If `true`, the knob snaps to tick marks evenly spaced based
|
59
|
+
* on the step property value.
|
60
|
+
*/
|
61
|
+
this.snaps = false;
|
62
|
+
/**
|
63
|
+
* Specifies the value granularity.
|
64
|
+
*/
|
65
|
+
this.step = 1;
|
66
|
+
/**
|
67
|
+
* If `true`, tick marks are displayed based on the step value.
|
68
|
+
* Only applies when `snaps` is `true`.
|
69
|
+
*/
|
70
|
+
this.ticks = true;
|
71
|
+
/**
|
72
|
+
* If `true`, the user cannot interact with the range.
|
73
|
+
*/
|
74
|
+
this.disabled = false;
|
75
|
+
/**
|
76
|
+
* the value of the range.
|
77
|
+
*/
|
78
|
+
this.value = 0;
|
79
|
+
this.clampBounds = (value) => {
|
80
|
+
return clamp(this.min, value, this.max);
|
81
|
+
};
|
82
|
+
this.ensureValueInBounds = (value) => {
|
83
|
+
if (this.dualKnobs) {
|
84
|
+
return {
|
85
|
+
lower: this.clampBounds(value.lower),
|
86
|
+
upper: this.clampBounds(value.upper)
|
87
|
+
};
|
88
|
+
}
|
89
|
+
else {
|
90
|
+
return this.clampBounds(value);
|
91
|
+
}
|
92
|
+
};
|
93
|
+
this.setupGesture = async () => {
|
94
|
+
const rangeSlider = this.rangeSlider;
|
95
|
+
if (rangeSlider) {
|
96
|
+
this.gesture = (await import('./index-a12c14bd.js')).createGesture({
|
97
|
+
el: rangeSlider,
|
98
|
+
gestureName: 'range',
|
99
|
+
gesturePriority: 100,
|
100
|
+
threshold: 0,
|
101
|
+
onStart: ev => this.onStart(ev),
|
102
|
+
onMove: ev => this.onMove(ev),
|
103
|
+
onEnd: ev => this.onEnd(ev),
|
104
|
+
});
|
105
|
+
this.gesture.enable(!this.disabled);
|
106
|
+
}
|
107
|
+
};
|
108
|
+
this.handleKeyboard = (knob, isIncrease) => {
|
109
|
+
let step = this.step;
|
110
|
+
step = step > 0 ? step : 1;
|
111
|
+
step = step / (this.max - this.min);
|
112
|
+
if (!isIncrease) {
|
113
|
+
step *= -1;
|
114
|
+
}
|
115
|
+
if (knob === 'A') {
|
116
|
+
this.ratioA = clamp(0, this.ratioA + step, 1);
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
this.ratioB = clamp(0, this.ratioB + step, 1);
|
120
|
+
}
|
121
|
+
this.updateValue();
|
122
|
+
};
|
123
|
+
this.onBlur = () => {
|
124
|
+
if (this.hasFocus) {
|
125
|
+
this.hasFocus = false;
|
126
|
+
this.ionBlur.emit();
|
127
|
+
this.emitStyle();
|
128
|
+
}
|
129
|
+
};
|
130
|
+
this.onFocus = () => {
|
131
|
+
if (!this.hasFocus) {
|
132
|
+
this.hasFocus = true;
|
133
|
+
this.ionFocus.emit();
|
134
|
+
this.emitStyle();
|
135
|
+
}
|
136
|
+
};
|
137
|
+
}
|
138
|
+
debounceChanged() {
|
139
|
+
this.ionChange = debounceEvent(this.ionChange, this.debounce);
|
140
|
+
}
|
141
|
+
minChanged() {
|
142
|
+
if (!this.noUpdate) {
|
143
|
+
this.updateRatio();
|
144
|
+
}
|
145
|
+
}
|
146
|
+
maxChanged() {
|
147
|
+
if (!this.noUpdate) {
|
148
|
+
this.updateRatio();
|
149
|
+
}
|
150
|
+
}
|
151
|
+
disabledChanged() {
|
152
|
+
if (this.gesture) {
|
153
|
+
this.gesture.enable(!this.disabled);
|
154
|
+
}
|
155
|
+
this.emitStyle();
|
156
|
+
}
|
157
|
+
valueChanged(value) {
|
158
|
+
if (!this.noUpdate) {
|
159
|
+
this.updateRatio();
|
160
|
+
}
|
161
|
+
value = this.ensureValueInBounds(value);
|
162
|
+
this.ionChange.emit({ value });
|
163
|
+
}
|
164
|
+
componentWillLoad() {
|
165
|
+
/**
|
166
|
+
* If user has custom ID set then we should
|
167
|
+
* not assign the default incrementing ID.
|
168
|
+
*/
|
169
|
+
this.rangeId = (this.el.hasAttribute('id')) ? this.el.getAttribute('id') : `ion-r-${rangeIds++}`;
|
170
|
+
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
171
|
+
}
|
172
|
+
componentDidLoad() {
|
173
|
+
this.setupGesture();
|
174
|
+
this.didLoad = true;
|
175
|
+
}
|
176
|
+
connectedCallback() {
|
177
|
+
this.updateRatio();
|
178
|
+
this.debounceChanged();
|
179
|
+
this.disabledChanged();
|
180
|
+
/**
|
181
|
+
* If we have not yet rendered
|
182
|
+
* ion-range, then rangeSlider is not defined.
|
183
|
+
* But if we are moving ion-range via appendChild,
|
184
|
+
* then rangeSlider will be defined.
|
185
|
+
*/
|
186
|
+
if (this.didLoad) {
|
187
|
+
this.setupGesture();
|
188
|
+
}
|
189
|
+
}
|
190
|
+
disconnectedCallback() {
|
191
|
+
if (this.gesture) {
|
192
|
+
this.gesture.destroy();
|
193
|
+
this.gesture = undefined;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
getValue() {
|
197
|
+
const value = this.value || 0;
|
198
|
+
if (this.dualKnobs) {
|
199
|
+
if (typeof value === 'object') {
|
200
|
+
return value;
|
201
|
+
}
|
202
|
+
return {
|
203
|
+
lower: 0,
|
204
|
+
upper: value
|
205
|
+
};
|
206
|
+
}
|
207
|
+
else {
|
208
|
+
if (typeof value === 'object') {
|
209
|
+
return value.upper;
|
210
|
+
}
|
211
|
+
return value;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
emitStyle() {
|
215
|
+
this.ionStyle.emit({
|
216
|
+
'interactive': true,
|
217
|
+
'interactive-disabled': this.disabled
|
218
|
+
});
|
219
|
+
}
|
220
|
+
onStart(detail) {
|
221
|
+
const rect = this.rect = this.rangeSlider.getBoundingClientRect();
|
222
|
+
const currentX = detail.currentX;
|
223
|
+
// figure out which knob they started closer to
|
224
|
+
let ratio = clamp(0, (currentX - rect.left) / rect.width, 1);
|
225
|
+
if (isRTL(this.el)) {
|
226
|
+
ratio = 1 - ratio;
|
227
|
+
}
|
228
|
+
this.pressedKnob =
|
229
|
+
!this.dualKnobs ||
|
230
|
+
Math.abs(this.ratioA - ratio) < Math.abs(this.ratioB - ratio)
|
231
|
+
? 'A'
|
232
|
+
: 'B';
|
233
|
+
this.setFocus(this.pressedKnob);
|
234
|
+
// update the active knob's position
|
235
|
+
this.update(currentX);
|
236
|
+
}
|
237
|
+
onMove(detail) {
|
238
|
+
this.update(detail.currentX);
|
239
|
+
}
|
240
|
+
onEnd(detail) {
|
241
|
+
this.update(detail.currentX);
|
242
|
+
this.pressedKnob = undefined;
|
243
|
+
}
|
244
|
+
update(currentX) {
|
245
|
+
// figure out where the pointer is currently at
|
246
|
+
// update the knob being interacted with
|
247
|
+
const rect = this.rect;
|
248
|
+
let ratio = clamp(0, (currentX - rect.left) / rect.width, 1);
|
249
|
+
if (isRTL(this.el)) {
|
250
|
+
ratio = 1 - ratio;
|
251
|
+
}
|
252
|
+
if (this.snaps) {
|
253
|
+
// snaps the ratio to the current value
|
254
|
+
ratio = valueToRatio(ratioToValue(ratio, this.min, this.max, this.step), this.min, this.max);
|
255
|
+
}
|
256
|
+
// update which knob is pressed
|
257
|
+
if (this.pressedKnob === 'A') {
|
258
|
+
this.ratioA = ratio;
|
259
|
+
}
|
260
|
+
else {
|
261
|
+
this.ratioB = ratio;
|
262
|
+
}
|
263
|
+
// Update input value
|
264
|
+
this.updateValue();
|
265
|
+
}
|
266
|
+
get valA() {
|
267
|
+
return ratioToValue(this.ratioA, this.min, this.max, this.step);
|
268
|
+
}
|
269
|
+
get valB() {
|
270
|
+
return ratioToValue(this.ratioB, this.min, this.max, this.step);
|
271
|
+
}
|
272
|
+
get ratioLower() {
|
273
|
+
if (this.dualKnobs) {
|
274
|
+
return Math.min(this.ratioA, this.ratioB);
|
275
|
+
}
|
276
|
+
return 0;
|
277
|
+
}
|
278
|
+
get ratioUpper() {
|
279
|
+
if (this.dualKnobs) {
|
280
|
+
return Math.max(this.ratioA, this.ratioB);
|
281
|
+
}
|
282
|
+
return this.ratioA;
|
283
|
+
}
|
284
|
+
updateRatio() {
|
285
|
+
const value = this.getValue();
|
286
|
+
const { min, max } = this;
|
287
|
+
if (this.dualKnobs) {
|
288
|
+
this.ratioA = valueToRatio(value.lower, min, max);
|
289
|
+
this.ratioB = valueToRatio(value.upper, min, max);
|
290
|
+
}
|
291
|
+
else {
|
292
|
+
this.ratioA = valueToRatio(value, min, max);
|
293
|
+
}
|
294
|
+
}
|
295
|
+
updateValue() {
|
296
|
+
this.noUpdate = true;
|
297
|
+
const { valA, valB } = this;
|
298
|
+
this.value = !this.dualKnobs
|
299
|
+
? valA
|
300
|
+
: {
|
301
|
+
lower: Math.min(valA, valB),
|
302
|
+
upper: Math.max(valA, valB)
|
303
|
+
};
|
304
|
+
this.noUpdate = false;
|
305
|
+
}
|
306
|
+
setFocus(knob) {
|
307
|
+
if (this.el.shadowRoot) {
|
308
|
+
const knobEl = this.el.shadowRoot.querySelector(knob === 'A' ? '.range-knob-a' : '.range-knob-b');
|
309
|
+
if (knobEl) {
|
310
|
+
knobEl.focus();
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}
|
314
|
+
render() {
|
315
|
+
const { min, max, step, el, handleKeyboard, pressedKnob, disabled, pin, ratioLower, ratioUpper, inheritedAttributes, rangeId, pinFormatter } = this;
|
316
|
+
/**
|
317
|
+
* Look for external label, ion-label, or aria-labelledby.
|
318
|
+
* If none, see if user placed an aria-label on the host
|
319
|
+
* and use that instead.
|
320
|
+
*/
|
321
|
+
let { labelText } = getAriaLabel(el, rangeId);
|
322
|
+
if (labelText === undefined || labelText === null) {
|
323
|
+
labelText = inheritedAttributes['aria-label'];
|
324
|
+
}
|
325
|
+
const mode = getIonMode(this);
|
326
|
+
const barStart = `${ratioLower * 100}%`;
|
327
|
+
const barEnd = `${100 - ratioUpper * 100}%`;
|
328
|
+
const rtl = isRTL(this.el);
|
329
|
+
const start = rtl ? 'right' : 'left';
|
330
|
+
const end = rtl ? 'left' : 'right';
|
331
|
+
const tickStyle = (tick) => {
|
332
|
+
return {
|
333
|
+
[start]: tick[start]
|
334
|
+
};
|
335
|
+
};
|
336
|
+
const barStyle = {
|
337
|
+
[start]: barStart,
|
338
|
+
[end]: barEnd
|
339
|
+
};
|
340
|
+
const ticks = [];
|
341
|
+
if (this.snaps && this.ticks) {
|
342
|
+
for (let value = min; value <= max; value += step) {
|
343
|
+
const ratio = valueToRatio(value, min, max);
|
344
|
+
const tick = {
|
345
|
+
ratio,
|
346
|
+
active: ratio >= ratioLower && ratio <= ratioUpper,
|
347
|
+
};
|
348
|
+
tick[start] = `${ratio * 100}%`;
|
349
|
+
ticks.push(tick);
|
350
|
+
}
|
351
|
+
}
|
352
|
+
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
353
|
+
return (h(Host, { onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses(this.color, {
|
354
|
+
[mode]: true,
|
355
|
+
'in-item': hostContext('ion-item', el),
|
356
|
+
'range-disabled': disabled,
|
357
|
+
'range-pressed': pressedKnob !== undefined,
|
358
|
+
'range-has-pin': pin
|
359
|
+
}) }, h("slot", { name: "start" }), h("div", { class: "range-slider", ref: rangeEl => this.rangeSlider = rangeEl }, ticks.map(tick => (h("div", { style: tickStyle(tick), role: "presentation", class: {
|
360
|
+
'range-tick': true,
|
361
|
+
'range-tick-active': tick.active
|
362
|
+
}, part: tick.active ? 'tick-active' : 'tick' }))), h("div", { class: "range-bar", role: "presentation", part: "bar" }), h("div", { class: "range-bar range-bar-active", role: "presentation", style: barStyle, part: "bar-active" }), renderKnob(rtl, {
|
363
|
+
knob: 'A',
|
364
|
+
pressed: pressedKnob === 'A',
|
365
|
+
value: this.valA,
|
366
|
+
ratio: this.ratioA,
|
367
|
+
pin,
|
368
|
+
pinFormatter,
|
369
|
+
disabled,
|
370
|
+
handleKeyboard,
|
371
|
+
min,
|
372
|
+
max,
|
373
|
+
labelText
|
374
|
+
}), this.dualKnobs && renderKnob(rtl, {
|
375
|
+
knob: 'B',
|
376
|
+
pressed: pressedKnob === 'B',
|
377
|
+
value: this.valB,
|
378
|
+
ratio: this.ratioB,
|
379
|
+
pin,
|
380
|
+
pinFormatter,
|
381
|
+
disabled,
|
382
|
+
handleKeyboard,
|
383
|
+
min,
|
384
|
+
max,
|
385
|
+
labelText
|
386
|
+
})), h("slot", { name: "end" })));
|
387
|
+
}
|
388
|
+
get el() { return getElement(this); }
|
389
|
+
static get watchers() { return {
|
390
|
+
"debounce": ["debounceChanged"],
|
391
|
+
"min": ["minChanged"],
|
392
|
+
"max": ["maxChanged"],
|
393
|
+
"disabled": ["disabledChanged"],
|
394
|
+
"value": ["valueChanged"]
|
395
|
+
}; }
|
396
|
+
};
|
397
|
+
const renderKnob = (rtl, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard, labelText, pinFormatter }) => {
|
398
|
+
const start = rtl ? 'right' : 'left';
|
399
|
+
const knobStyle = () => {
|
400
|
+
const style = {};
|
401
|
+
style[start] = `${ratio * 100}%`;
|
402
|
+
return style;
|
403
|
+
};
|
404
|
+
return (h("div", { onKeyDown: (ev) => {
|
405
|
+
const key = ev.key;
|
406
|
+
if (key === 'ArrowLeft' || key === 'ArrowDown') {
|
407
|
+
handleKeyboard(knob, false);
|
408
|
+
ev.preventDefault();
|
409
|
+
ev.stopPropagation();
|
410
|
+
}
|
411
|
+
else if (key === 'ArrowRight' || key === 'ArrowUp') {
|
412
|
+
handleKeyboard(knob, true);
|
413
|
+
ev.preventDefault();
|
414
|
+
ev.stopPropagation();
|
415
|
+
}
|
416
|
+
}, class: {
|
417
|
+
'range-knob-handle': true,
|
418
|
+
'range-knob-a': knob === 'A',
|
419
|
+
'range-knob-b': knob === 'B',
|
420
|
+
'range-knob-pressed': pressed,
|
421
|
+
'range-knob-min': value === min,
|
422
|
+
'range-knob-max': value === max
|
423
|
+
}, style: knobStyle(), role: "slider", tabindex: disabled ? -1 : 0, "aria-label": labelText, "aria-valuemin": min, "aria-valuemax": max, "aria-disabled": disabled ? 'true' : null, "aria-valuenow": value }, pin && h("div", { class: "range-pin", role: "presentation", part: "pin" }, pinFormatter(value)), h("div", { class: "range-knob", role: "presentation", part: "knob" })));
|
424
|
+
};
|
425
|
+
const ratioToValue = (ratio, min, max, step) => {
|
426
|
+
let value = (max - min) * ratio;
|
427
|
+
if (step > 0) {
|
428
|
+
value = Math.round(value / step) * step + min;
|
429
|
+
}
|
430
|
+
return clamp(min, value, max);
|
431
|
+
};
|
432
|
+
const valueToRatio = (value, min, max) => {
|
433
|
+
return clamp(0, (value - min) / (max - min), 1);
|
434
|
+
};
|
435
|
+
let rangeIds = 0;
|
436
|
+
Range.style = {
|
437
|
+
ios: rangeIosCss,
|
438
|
+
md: rangeMdCss
|
439
|
+
};
|
440
|
+
|
441
|
+
export { Range as ion_range };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { j as caretBackSharp, k as arrowDown } from './index-
|
2
|
+
import { j as caretBackSharp, k as arrowDown } from './index-ea26196a.js';
|
3
3
|
import { g as getIonMode, c as config, a as isPlatform } from './ionic-global-0939c477.js';
|
4
4
|
import { s as sanitizeDOMString } from './index-435af8e6.js';
|
5
5
|
import { S as SPINNERS } from './spinner-configs-f609a655.js';
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { w as writeTask, r as registerInstance, i as createEvent, j as readTask, h, e as getElement, H as Host } from './index-5568e3fa.js';
|
2
2
|
import { a as isPlatform, g as getIonMode } from './ionic-global-0939c477.js';
|
3
3
|
import { g as getTimeGivenProgression } from './cubic-bezier-a7ad9c8e.js';
|
4
|
-
import { t as transitionEndAsync, c as componentOnReady,
|
4
|
+
import { t as transitionEndAsync, c as componentOnReady, e as clamp, g as getElementRoot, b as raf } from './helpers-9d0930de.js';
|
5
5
|
import { h as hapticImpact } from './haptic-99c9e346.js';
|
6
|
-
import { c as createAnimation } from './animation-
|
6
|
+
import { c as createAnimation } from './animation-7b083379.js';
|
7
7
|
|
8
8
|
/*!
|
9
9
|
* (C) Ionic http://ionicframework.com - MIT License
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, e as getElement, H as Host } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import { c as componentOnReady } from './helpers-
|
3
|
+
import { c as componentOnReady } from './helpers-9d0930de.js';
|
4
4
|
import { a as hapticSelectionStart, b as hapticSelectionChanged, c as hapticSelectionEnd } from './haptic-99c9e346.js';
|
5
5
|
|
6
6
|
const reorderGroupCss = ".reorder-list-active>*{transition:transform 300ms;will-change:transform}.reorder-enabled{user-select:none}.reorder-enabled ion-reorder{display:block;cursor:grab;pointer-events:all;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:grabbing}.reorder-selected{position:relative;transition:none !important;box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{transform:translate3d(0, 0, 0)}";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { r as reorderThreeOutline, l as reorderTwoSharp } from './index-
|
2
|
+
import { r as reorderThreeOutline, l as reorderTwoSharp } from './index-ea26196a.js';
|
3
3
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
4
4
|
|
5
5
|
const reorderIosCss = ":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:34px;opacity:0.4}";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode, c as config } from './ionic-global-0939c477.js';
|
3
3
|
import { g as getTimeGivenProgression } from './cubic-bezier-a7ad9c8e.js';
|
4
|
-
import { a as attachComponent, d as detachComponent } from './framework-delegate-
|
5
|
-
import { s as shallowEqualStringMap } from './helpers-
|
6
|
-
import { t as transition } from './index-
|
4
|
+
import { a as attachComponent, d as detachComponent } from './framework-delegate-518bd233.js';
|
5
|
+
import { s as shallowEqualStringMap } from './helpers-9d0930de.js';
|
6
|
+
import { t as transition } from './index-8de9446b.js';
|
7
7
|
|
8
8
|
const routeOutletCss = ":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";
|
9
9
|
|
@@ -35,7 +35,7 @@ const RouterOutlet = class {
|
|
35
35
|
this.swipeHandler.onStart();
|
36
36
|
}
|
37
37
|
};
|
38
|
-
this.gesture = (await import('./swipe-back-
|
38
|
+
this.gesture = (await import('./swipe-back-9a3b2cdd.js')).createSwipeBackGesture(this.el, () => !this.gestureOrAnimationInProgress && !!this.swipeHandler && this.swipeHandler.canStart(), () => onStart(), step => this.ani && this.ani.progressStep(step), (shouldComplete, step, dur) => {
|
39
39
|
if (this.ani) {
|
40
40
|
this.ani.onFinish(() => {
|
41
41
|
this.gestureOrAnimationInProgress = false;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { c as componentOnReady,
|
2
|
+
import { c as componentOnReady, k as debounce } from './helpers-9d0930de.js';
|
3
3
|
|
4
4
|
/*!
|
5
5
|
* (C) Ionic http://ionicframework.com - MIT License
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, f as forceUpdate, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
|
-
import { n as arrowBackSharp, o as closeCircle, p as closeSharp, s as searchOutline, q as searchSharp } from './index-
|
2
|
+
import { n as arrowBackSharp, o as closeCircle, p as closeSharp, s as searchOutline, q as searchSharp } from './index-ea26196a.js';
|
3
3
|
import { c as config, g as getIonMode } from './ionic-global-0939c477.js';
|
4
|
-
import {
|
4
|
+
import { l as debounceEvent, b as raf } from './helpers-9d0930de.js';
|
5
5
|
import { i as isRTL } from './dir-03012648.js';
|
6
6
|
import { c as createColorClasses } from './theme-c336c9d9.js';
|
7
7
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import { a as addEventListener, r as removeEventListener } from './helpers-
|
3
|
+
import { a as addEventListener, r as removeEventListener } from './helpers-9d0930de.js';
|
4
4
|
import { h as hostContext } from './theme-c336c9d9.js';
|
5
5
|
|
6
6
|
const segmentButtonIosCss = ":host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;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;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;flex-basis:0;flex-direction:row;min-width:70px;min-height:28px;transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;transition:160ms opacity ease-in-out;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:\"\";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:2px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}}.segment-button-indicator{padding-left:2px;padding-right:2px;left:0;right:0;top:0;bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.segment-button-indicator{padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:#fff}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, w as writeTask, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { c as config, g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import { p as pointerCoord } from './helpers-
|
3
|
+
import { p as pointerCoord } 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,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, h, H as Host, e as getElement } from './index-5568e3fa.js';
|
2
2
|
import { g as getIonMode } from './ionic-global-0939c477.js';
|
3
|
-
import { f as focusElement,
|
4
|
-
import {
|
3
|
+
import { f as focusElement, m as findItemLabel, n as getAriaLabel, d as renderHiddenInput } from './helpers-9d0930de.js';
|
4
|
+
import { c as popoverController, f as actionSheetController, h as alertController } from './overlays-5c777f10.js';
|
5
5
|
import { h as hostContext } from './theme-c336c9d9.js';
|
6
6
|
import './hardware-back-button-b6ccf74a.js';
|
7
7
|
|