@sparkle-learning/core 0.0.27 → 0.0.30
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-cee9b061.js → PrivateRoute-043bb7d3.js} +6 -40
- package/dist/cjs/{active-router-3bd7b540.js → active-router-eedb3bfe.js} +1 -1
- package/dist/cjs/{animation-05337433.js → animation-6132e37f.js} +28 -4
- package/dist/cjs/app-globals-9869bf67.js +9 -0
- package/dist/cjs/{auth.store-aba3d22f.js → auth.store-ff3fda09.js} +1869 -357
- package/dist/cjs/compass-svg.cjs.entry.js +1 -1
- package/dist/cjs/context-consumer.cjs.entry.js +1 -1
- package/dist/cjs/course-select.cjs.entry.js +1 -1
- package/dist/cjs/{cubic-bezier-24e309bf.js → cubic-bezier-293f4663.js} +3 -0
- package/dist/cjs/dir-5af5259a.js +20 -0
- package/dist/cjs/{facilitator.service-e1e2f719.js → facilitator.service-faac5c0c.js} +1 -1
- package/dist/cjs/feed.service-66405969.js +124 -0
- package/dist/cjs/focus-visible-ad3828a7.js +63 -0
- package/dist/cjs/framework-delegate-2470a246.js +113 -0
- package/dist/cjs/{gesture-controller-e824cfb3.js → gesture-controller-07c31f70.js} +3 -0
- package/dist/cjs/{haptic-415dac5b.js → haptic-91e86eb7.js} +3 -0
- package/dist/cjs/{hardware-back-button-ca468aae.js → hardware-back-button-f7b5d99e.js} +3 -0
- package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +18001 -0
- package/dist/cjs/{helpers-26770c32.js → helpers-7e28976c.js} +122 -3
- package/dist/cjs/{icons-a0fef92b.js → icons-b8a2231a.js} +1 -1
- package/dist/cjs/{index-427d03fb.js → index-185f9c5a.js} +3 -0
- package/dist/cjs/{index-6eff209d.js → index-43642662.js} +24 -3
- package/dist/cjs/{index-7bcd36a0.js → index-459a5fa9.js} +20 -4
- package/dist/cjs/index-8540d72e.js +42 -0
- package/dist/cjs/{index-58b3ee93.js → index-b12edb26.js} +34 -5
- package/dist/cjs/{index-fbf4d3bf.js → index-bae2a754.js} +303 -207
- package/dist/cjs/index.cjs.js +8 -7
- package/dist/cjs/index.es-ef3efdfb.js +10671 -0
- package/dist/cjs/{input-shims-213e83f8.js → input-shims-6c442c9f.js} +34 -10
- package/dist/cjs/ion-accordion-group.cjs.entry.js +197 -0
- package/dist/cjs/ion-accordion.cjs.entry.js +340 -0
- package/dist/cjs/ion-action-sheet_4.cjs.entry.js +2203 -0
- package/dist/cjs/ion-app.cjs.entry.js +23 -8
- package/dist/cjs/ion-back-button.cjs.entry.js +14 -9
- package/dist/cjs/ion-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/ion-badge.cjs.entry.js +3 -3
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +103 -0
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +135 -0
- package/dist/cjs/ion-buttons_3.cjs.entry.js +7 -6
- package/dist/cjs/ion-card-header.cjs.entry.js +3 -3
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +3 -3
- package/dist/cjs/ion-card-title.cjs.entry.js +3 -3
- package/dist/cjs/ion-chip.cjs.entry.js +3 -3
- package/dist/cjs/ion-content_2.cjs.entry.js +144 -56
- package/dist/cjs/ion-datetime.cjs.entry.js +1902 -779
- package/dist/cjs/ion-fab-button.cjs.entry.js +5 -4
- package/dist/cjs/ion-fab-list.cjs.entry.js +2 -2
- package/dist/cjs/ion-fab.cjs.entry.js +2 -2
- package/dist/cjs/ion-footer.cjs.entry.js +79 -4
- package/dist/cjs/ion-img.cjs.entry.js +33 -7
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +4 -2
- package/dist/cjs/ion-item-divider.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-options.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-sliding.cjs.entry.js +52 -8
- package/dist/cjs/ion-loading.cjs.entry.js +23 -11
- package/dist/cjs/ion-menu-button.cjs.entry.js +17 -11
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ion-menu.cjs.entry.js +141 -29
- package/dist/cjs/ion-modal.cjs.entry.js +649 -75
- package/dist/cjs/ion-nav-link.cjs.entry.js +4 -1
- package/dist/cjs/ion-nav.cjs.entry.js +140 -137
- package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +700 -0
- package/dist/cjs/ion-picker-column.cjs.entry.js +5 -5
- package/dist/cjs/ion-picker.cjs.entry.js +18 -11
- package/dist/cjs/ion-progress-bar.cjs.entry.js +17 -13
- package/dist/cjs/ion-refresher-content.cjs.entry.js +7 -6
- package/dist/cjs/ion-refresher.cjs.entry.js +83 -84
- package/dist/cjs/ion-reorder-group.cjs.entry.js +9 -8
- package/dist/cjs/ion-reorder.cjs.entry.js +5 -4
- package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route.cjs.entry.js +1 -1
- package/dist/cjs/ion-router-link.cjs.entry.js +3 -3
- package/dist/cjs/ion-router-outlet.cjs.entry.js +50 -12
- package/dist/cjs/ion-router.cjs.entry.js +378 -234
- package/dist/cjs/ion-searchbar.cjs.entry.js +50 -17
- package/dist/cjs/ion-segment-button.cjs.entry.js +12 -9
- package/dist/cjs/ion-segment.cjs.entry.js +89 -10
- package/dist/cjs/ion-select_2.cjs.entry.js +64 -30
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +4 -4
- package/dist/cjs/ion-slide.cjs.entry.js +2 -2
- package/dist/cjs/ion-slides.cjs.entry.js +19 -32
- package/dist/cjs/ion-split-pane.cjs.entry.js +8 -3
- package/dist/cjs/ion-tab-bar.cjs.entry.js +25 -12
- package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab.cjs.entry.js +3 -2
- package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +9 -8
- package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +37 -27
- package/dist/cjs/ion-toggle.cjs.entry.js +15 -15
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +13 -3
- package/dist/cjs/{ionic-global-4930d319.js → ionic-global-878073d1.js} +103 -77
- package/dist/cjs/{ios.transition-6e1fd3d6.js → ios.transition-c3bfb096.js} +8 -5
- package/dist/cjs/{keyboard-1dcbde6c.js → keyboard-dfd76ac3.js} +3 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/localstorage.service-6346a41d.js +40 -0
- package/dist/cjs/{md.transition-3652ad78.js → md.transition-7eb9a1a7.js} +7 -4
- package/dist/cjs/{menu-toggle-util-a8fb4c56.js → menu-toggle-util-cb549c2c.js} +4 -1
- package/dist/cjs/{overlays-08a817ea.js → overlays-0a748609.js} +188 -47
- package/dist/cjs/{purify-596fc2d6.js → purify-d0ad2883.js} +187 -74
- package/dist/cjs/sparkle-animation-player.cjs.entry.js +56 -50
- package/dist/cjs/sparkle-character-intro.cjs.entry.js +26 -0
- package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-core.cjs.js +7 -7
- package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +7 -7
- package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-feedback.cjs.entry.js +7 -7
- package/dist/cjs/sparkle-goal-form.cjs.entry.js +15 -14
- package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-overlay.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz.cjs.entry.js +2 -2
- package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-youtube.cjs.entry.js +2 -2
- package/dist/cjs/{spinner-configs-559523fd.js → spinner-configs-6f6b7ef0.js} +36 -1
- package/dist/cjs/status-tap-8697433c.js +40 -0
- package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
- package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
- package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
- package/dist/cjs/{student.service-41c7c78d.js → student.service-744c3155.js} +1 -1
- package/dist/cjs/{swipe-back-c1951cbd.js → swipe-back-7e08b5e0.js} +32 -8
- package/dist/cjs/{swiper.bundle-cbea42d8.js → swiper.bundle-8c897c07.js} +4 -4
- package/dist/cjs/{tap-click-cd858b48.js → tap-click-1caf1780.js} +8 -1
- package/dist/cjs/{theme-98ccfc24.js → theme-4252ac15.js} +3 -0
- package/dist/cjs/util-d383acb8.js +2462 -0
- package/dist/collection/collection-manifest.json +9 -2
- package/dist/collection/components/layout/page/page.js +1 -0
- package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +78 -66
- package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +67 -0
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +64 -0
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +48 -43
- package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +6 -2
- package/dist/collection/util.js +1 -0
- package/dist/esm/{PrivateRoute-9f0973bb.js → PrivateRoute-b9937c45.js} +3 -37
- package/dist/esm/{active-router-b3ae32c7.js → active-router-909088d6.js} +1 -1
- package/dist/esm/{animation-72fdacfb.js → animation-b306f6c2.js} +28 -4
- package/dist/esm/app-globals-5c736ae5.js +7 -0
- package/dist/esm/auth.store-3ed2389e.js +4061 -0
- package/dist/esm/compass-svg.entry.js +1 -1
- package/dist/esm/context-consumer.entry.js +1 -1
- package/dist/esm/course-select.entry.js +1 -1
- package/dist/esm/{cubic-bezier-ed243a9b.js → cubic-bezier-a7ad9c8e.js} +3 -0
- package/dist/esm/dir-03012648.js +18 -0
- package/dist/esm/{facilitator.service-cddb2feb.js → facilitator.service-ec0a9739.js} +1 -1
- package/dist/esm/feed.service-33b83cb7.js +119 -0
- package/dist/esm/focus-visible-40cda868.js +61 -0
- package/dist/esm/framework-delegate-3bc58c27.js +109 -0
- package/dist/esm/{gesture-controller-604336b7.js → gesture-controller-686622ba.js} +3 -0
- package/dist/esm/{haptic-67928174.js → haptic-99c9e346.js} +4 -1
- package/dist/esm/{hardware-back-button-508e48cf.js → hardware-back-button-b6ccf74a.js} +3 -0
- package/dist/esm/header-mobile-collapse_61.entry.js +17937 -0
- package/dist/esm/{helpers-e7f66b2b.js → helpers-39367fe1.js} +119 -4
- package/dist/esm/{icons-33e5804c.js → icons-5debfbaf.js} +1 -1
- package/dist/esm/{index-cc97b114.js → index-435af8e6.js} +3 -0
- package/dist/esm/{index-55fc9f5e.js → index-5568e3fa.js} +303 -208
- package/dist/esm/{index-dc09784f.js → index-9594837e.js} +20 -4
- package/dist/esm/{index-b2ad0f1a.js → index-a12c14bd.js} +25 -4
- package/dist/esm/{index-a94619f9.js → index-c26d8655.js} +34 -5
- package/dist/esm/index-dc61f152.js +22 -0
- package/dist/esm/index.es-97dd8174.js +10585 -0
- package/dist/esm/index.js +8 -7
- package/dist/esm/{input-shims-3a97fa86.js → input-shims-cc98ea92.js} +34 -10
- package/dist/esm/ion-accordion-group.entry.js +193 -0
- package/dist/esm/ion-accordion.entry.js +336 -0
- package/dist/esm/ion-action-sheet_4.entry.js +2196 -0
- package/dist/esm/ion-app.entry.js +23 -8
- package/dist/esm/ion-back-button.entry.js +14 -9
- package/dist/esm/ion-backdrop.entry.js +3 -3
- package/dist/esm/ion-badge.entry.js +3 -3
- package/dist/esm/ion-breadcrumb.entry.js +99 -0
- package/dist/esm/ion-breadcrumbs.entry.js +131 -0
- package/dist/esm/ion-buttons_3.entry.js +7 -6
- package/dist/esm/ion-card-header.entry.js +3 -3
- package/dist/esm/ion-card-subtitle.entry.js +3 -3
- package/dist/esm/ion-card-title.entry.js +3 -3
- package/dist/esm/ion-chip.entry.js +3 -3
- package/dist/esm/ion-content_2.entry.js +144 -56
- package/dist/esm/ion-datetime.entry.js +1902 -779
- package/dist/esm/ion-fab-button.entry.js +5 -4
- package/dist/esm/ion-fab-list.entry.js +2 -2
- package/dist/esm/ion-fab.entry.js +2 -2
- package/dist/esm/ion-footer.entry.js +79 -4
- package/dist/esm/ion-img.entry.js +33 -7
- package/dist/esm/ion-infinite-scroll-content.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll.entry.js +4 -2
- package/dist/esm/ion-item-divider.entry.js +3 -3
- package/dist/esm/ion-item-group.entry.js +2 -2
- package/dist/esm/ion-item-option.entry.js +4 -4
- package/dist/esm/ion-item-options.entry.js +3 -3
- package/dist/esm/ion-item-sliding.entry.js +52 -8
- package/dist/esm/ion-loading.entry.js +23 -11
- package/dist/esm/ion-menu-button.entry.js +17 -11
- package/dist/esm/ion-menu-toggle.entry.js +7 -7
- package/dist/esm/ion-menu.entry.js +141 -29
- package/dist/esm/ion-modal.entry.js +649 -75
- package/dist/esm/ion-nav-link.entry.js +4 -1
- package/dist/esm/ion-nav.entry.js +140 -137
- package/dist/esm/ion-picker-column-internal_2.entry.js +695 -0
- package/dist/esm/ion-picker-column.entry.js +5 -5
- package/dist/esm/ion-picker.entry.js +18 -11
- package/dist/esm/ion-progress-bar.entry.js +17 -13
- package/dist/esm/ion-refresher-content.entry.js +7 -6
- package/dist/esm/ion-refresher.entry.js +82 -83
- package/dist/esm/ion-reorder-group.entry.js +9 -8
- package/dist/esm/ion-reorder.entry.js +5 -4
- package/dist/esm/ion-route-redirect.entry.js +1 -1
- package/dist/esm/ion-route.entry.js +1 -1
- package/dist/esm/ion-router-link.entry.js +3 -3
- package/dist/esm/ion-router-outlet.entry.js +50 -12
- package/dist/esm/ion-router.entry.js +378 -234
- package/dist/esm/ion-searchbar.entry.js +50 -17
- package/dist/esm/ion-segment-button.entry.js +12 -9
- package/dist/esm/ion-segment.entry.js +89 -10
- package/dist/esm/ion-select_2.entry.js +64 -30
- package/dist/esm/ion-skeleton-text.entry.js +4 -4
- package/dist/esm/ion-slide.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +19 -32
- package/dist/esm/ion-split-pane.entry.js +8 -3
- package/dist/esm/ion-tab-bar.entry.js +25 -12
- package/dist/esm/ion-tab-button.entry.js +2 -2
- package/dist/esm/ion-tab.entry.js +3 -2
- package/dist/esm/ion-tabs.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +9 -8
- package/dist/esm/ion-thumbnail.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +37 -27
- package/dist/esm/ion-toggle.entry.js +15 -15
- package/dist/esm/ion-virtual-scroll.entry.js +13 -3
- package/dist/esm/{ionic-global-1f9287cc.js → ionic-global-0939c477.js} +103 -77
- package/dist/esm/{ios.transition-d01abefd.js → ios.transition-b4ca8a33.js} +8 -5
- package/dist/esm/{keyboard-06906eac.js → keyboard-2503e874.js} +3 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/localstorage.service-4bf408c8.js +36 -0
- package/dist/esm/{md.transition-245ffa55.js → md.transition-ca5e0322.js} +7 -4
- package/dist/esm/{menu-toggle-util-fe83fcf5.js → menu-toggle-util-7fa22c2f.js} +4 -1
- package/dist/esm/{overlays-8363621c.js → overlays-34cfa9e0.js} +187 -47
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/index.js +2 -2
- package/dist/esm/{purify-4247e2d0.js → purify-ffce2b4c.js} +185 -72
- package/dist/esm/sparkle-animation-player.entry.js +56 -50
- package/dist/esm/sparkle-character-intro.entry.js +22 -0
- package/dist/esm/sparkle-code.entry.js +2 -2
- package/dist/esm/sparkle-compass-post.entry.js +1 -1
- package/dist/esm/sparkle-compass.entry.js +1 -1
- package/dist/esm/sparkle-core.js +7 -7
- package/dist/esm/sparkle-emoji.entry.js +1 -1
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +7 -7
- package/dist/esm/sparkle-feed-post.entry.js +1 -1
- package/dist/esm/sparkle-feedback.entry.js +7 -7
- package/dist/esm/sparkle-goal-form.entry.js +8 -7
- package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
- package/dist/esm/sparkle-gww-graph.entry.js +1 -1
- package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
- package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
- package/dist/esm/sparkle-modal-image.entry.js +1 -1
- package/dist/esm/sparkle-notfound-page.entry.js +1 -1
- package/dist/esm/sparkle-overlay.entry.js +1 -1
- package/dist/esm/sparkle-poll.entry.js +1 -1
- package/dist/esm/sparkle-quiz-container.entry.js +1 -1
- package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
- package/dist/esm/sparkle-quiz.entry.js +2 -2
- package/dist/esm/sparkle-select.entry.js +1 -1
- package/dist/esm/sparkle-sidebar.entry.js +1 -1
- package/dist/esm/sparkle-tab.entry.js +1 -1
- package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
- package/dist/esm/sparkle-tabs.entry.js +1 -1
- package/dist/esm/sparkle-youtube.entry.js +2 -2
- package/dist/esm/{spinner-configs-9536fae2.js → spinner-configs-f609a655.js} +36 -1
- package/dist/esm/status-tap-6351a0cb.js +38 -0
- package/dist/esm/stencil-async-content.entry.js +1 -1
- package/dist/esm/stencil-route-title.entry.js +2 -2
- package/dist/esm/stencil-router-prompt.entry.js +2 -2
- package/dist/esm/{student.service-c36c5a75.js → student.service-29b688ba.js} +1 -1
- package/dist/esm/{swipe-back-21f58ecf.js → swipe-back-34251834.js} +32 -8
- package/dist/esm/{swiper.bundle-d4422d52.js → swiper.bundle-b6a959de.js} +4 -4
- package/dist/esm/{tap-click-8c728329.js → tap-click-13f1fb0d.js} +8 -1
- package/dist/esm/{theme-12606872.js → theme-c336c9d9.js} +3 -0
- package/dist/esm/util-6ef753e9.js +2451 -0
- package/dist/loader/index.d.ts +0 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +75 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +72 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +25 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +59 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +10 -19
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +19 -16
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +234 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +237 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +38 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +5 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +60 -14
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +586 -68
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +575 -68
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +16 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +9 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +9 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +105 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +295 -22
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +7 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +100 -18
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +74 -11
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +48 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +59 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +62 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +122 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +118 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +83 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +49 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +53 -38
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +53 -38
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +3 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +5 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +30 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/{select-popover.css → select-popover.ios.css} +4 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +4 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +15 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +2 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +9 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +9 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +4 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +14 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +14 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +3 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +2 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +1 -1
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
- package/dist/sparkle-core/assets/characters/character-img.jpg +0 -0
- package/dist/sparkle-core/assets/characters/jen.png +0 -0
- package/dist/sparkle-core/assets/characters/kimberly.png +0 -0
- package/dist/sparkle-core/assets/characters/valeria.png +0 -0
- package/dist/sparkle-core/assets/characters/yuna.png +0 -0
- package/dist/sparkle-core/assets/characters/zynab.png +0 -0
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/p-0146afa0.entry.js +1 -0
- package/dist/sparkle-core/{p-52355989.entry.js → p-016a7aaf.entry.js} +1 -1
- package/dist/sparkle-core/p-0187adef.entry.js +1 -0
- package/dist/sparkle-core/p-03189863.js +1 -0
- package/dist/sparkle-core/{p-d4d9aa4a.entry.js → p-03ec54a8.entry.js} +1 -1
- package/dist/sparkle-core/p-04583c51.entry.js +1 -0
- package/dist/sparkle-core/{p-6d506f4e.js → p-052caa63.js} +1 -1
- package/dist/sparkle-core/{p-016bf847.entry.js → p-057f6a23.entry.js} +1 -1
- package/dist/sparkle-core/p-0580419b.entry.js +1 -0
- package/dist/sparkle-core/{p-c563b4de.js → p-063cd168.js} +4 -1
- package/dist/sparkle-core/p-081968cc.entry.js +1 -0
- package/dist/sparkle-core/p-0934f5dd.entry.js +1 -0
- package/dist/sparkle-core/{p-3f5d7a08.entry.js → p-11cf398a.entry.js} +1 -1
- package/dist/sparkle-core/p-1339830f.entry.js +1 -0
- package/dist/sparkle-core/p-145e40f5.entry.js +1 -0
- package/dist/sparkle-core/{p-68f3c93d.entry.js → p-1726da2f.entry.js} +1 -1
- package/dist/sparkle-core/p-173d5461.entry.js +7 -0
- package/dist/sparkle-core/p-18e62133.entry.js +1 -0
- package/dist/sparkle-core/p-1af044f7.js +3 -0
- package/dist/sparkle-core/p-1b78dea1.entry.js +1 -0
- package/dist/sparkle-core/p-1cef8572.js +4 -0
- package/dist/sparkle-core/p-1df05176.js +4 -0
- package/dist/sparkle-core/p-21bf4ca0.entry.js +1 -0
- package/dist/sparkle-core/p-21db4e8e.entry.js +1 -0
- package/dist/sparkle-core/p-23a9f7d1.entry.js +1 -0
- package/dist/sparkle-core/p-289a35ed.entry.js +1 -0
- package/dist/sparkle-core/p-2ee6a5f9.entry.js +1 -0
- package/dist/sparkle-core/p-350adbaa.entry.js +1 -0
- package/dist/sparkle-core/{p-bccd9036.entry.js → p-35a7bd6c.entry.js} +1 -1
- package/dist/sparkle-core/{p-66e3bd1c.entry.js → p-37c00e39.entry.js} +1 -1
- package/dist/sparkle-core/p-389500fd.js +4 -0
- package/dist/sparkle-core/p-39e5a90f.entry.js +1 -0
- package/dist/sparkle-core/{p-ac5e5308.entry.js → p-3a202a38.entry.js} +1 -1
- package/dist/sparkle-core/p-3defe550.entry.js +1 -0
- package/dist/sparkle-core/p-45e6db62.entry.js +1 -0
- package/dist/sparkle-core/{p-581ca370.entry.js → p-48f9b960.entry.js} +1 -1
- package/dist/sparkle-core/{p-0efbc0b3.entry.js → p-4dc3ef96.entry.js} +1 -1
- package/dist/sparkle-core/p-506221fe.js +4 -0
- package/dist/sparkle-core/p-50aac721.entry.js +7 -0
- package/dist/sparkle-core/p-513794b0.js +16 -0
- package/dist/sparkle-core/{p-2e4e8117.js → p-5264da79.js} +3 -0
- package/dist/sparkle-core/{p-40db85ac.entry.js → p-547b70c6.entry.js} +1 -1
- package/dist/sparkle-core/p-5598650a.entry.js +1 -0
- package/dist/sparkle-core/p-55ae49e1.js +4 -0
- package/dist/sparkle-core/p-58e98f89.entry.js +1 -0
- package/dist/sparkle-core/p-59f7bf6e.entry.js +1 -0
- package/dist/sparkle-core/p-5a3d0e6b.js +4 -0
- package/dist/sparkle-core/{p-85d31769.entry.js → p-5b40aae5.entry.js} +1 -1
- package/dist/sparkle-core/p-5c9aa1f9.entry.js +4 -0
- package/dist/sparkle-core/p-5d2e54ee.entry.js +1 -0
- package/dist/sparkle-core/p-5d409601.js +1 -0
- package/dist/sparkle-core/{p-afbaad64.entry.js → p-5f45d206.entry.js} +1 -1
- package/dist/sparkle-core/p-5ff6416d.entry.js +7 -0
- package/dist/sparkle-core/{p-cf2332bb.entry.js → p-62a6c96f.entry.js} +1 -1
- package/dist/sparkle-core/p-64e72f8f.js +4 -0
- package/dist/sparkle-core/p-660e0742.js +1 -0
- package/dist/sparkle-core/{p-d5023db0.entry.js → p-667accac.entry.js} +1 -1
- package/dist/sparkle-core/{p-9ca56f5d.entry.js → p-680663a2.entry.js} +1 -1
- package/dist/sparkle-core/{p-e975924a.entry.js → p-6823e6c1.entry.js} +1 -1
- package/dist/sparkle-core/p-69e7783d.js +4 -0
- package/dist/sparkle-core/p-6bbabb80.entry.js +1 -0
- package/dist/sparkle-core/p-6bf07a28.js +1 -0
- package/dist/sparkle-core/p-6c6145cd.js +4 -0
- package/dist/sparkle-core/p-6c90bde6.entry.js +5 -0
- package/dist/sparkle-core/p-6e88764b.entry.js +4 -0
- package/dist/sparkle-core/p-6ee40949.js +1 -0
- package/dist/sparkle-core/p-6fbe3ca3.entry.js +1 -0
- package/dist/sparkle-core/{p-f2660943.js → p-6fd4985d.js} +3 -0
- package/dist/sparkle-core/{p-8fc9298a.js → p-703ca87c.js} +3 -0
- package/dist/sparkle-core/{p-1bf8bed6.entry.js → p-7052c43a.entry.js} +1 -1
- package/dist/sparkle-core/{p-111520a0.js → p-70b2452c.js} +3 -0
- package/dist/sparkle-core/p-713590fc.js +5 -0
- package/dist/sparkle-core/p-7493ee15.entry.js +1 -0
- package/dist/sparkle-core/p-75572037.js +1 -0
- package/dist/sparkle-core/{p-eb56aa20.entry.js → p-768bcc9e.entry.js} +1 -1
- package/dist/sparkle-core/p-797c23ed.entry.js +1 -0
- package/dist/sparkle-core/{p-03eb2164.js → p-7c38a70b.js} +1 -1
- package/dist/sparkle-core/{p-09d43bee.entry.js → p-7d61177b.entry.js} +1 -1
- package/dist/sparkle-core/p-7dbfc316.js +1 -0
- package/dist/sparkle-core/p-7e61973d.entry.js +7 -0
- package/dist/sparkle-core/{p-3cd28c60.entry.js → p-82e98d07.entry.js} +1 -1
- package/dist/sparkle-core/p-838fa86d.entry.js +18 -0
- package/dist/sparkle-core/p-855ca600.js +1 -0
- package/dist/sparkle-core/p-857f3696.entry.js +1 -0
- package/dist/sparkle-core/{p-8f72be08.js → p-8c6b6038.js} +3 -0
- package/dist/sparkle-core/p-8fe2e51f.entry.js +4 -0
- package/dist/sparkle-core/{p-f72a6e6d.entry.js → p-90389886.entry.js} +1 -1
- package/dist/sparkle-core/p-932bfb69.entry.js +1 -0
- package/dist/sparkle-core/p-935e7cfc.js +1 -0
- package/dist/sparkle-core/{p-c70b9765.entry.js → p-941eaa3a.entry.js} +1 -1
- package/dist/sparkle-core/p-95004267.entry.js +1 -0
- package/dist/sparkle-core/p-950effe7.entry.js +1 -0
- package/dist/sparkle-core/{p-1ca4bf1d.entry.js → p-996361f9.entry.js} +1 -1
- package/dist/sparkle-core/p-9a17f2ad.js +4 -0
- package/dist/sparkle-core/p-9a443f51.js +1 -1
- package/dist/sparkle-core/p-9babd345.js +1 -0
- package/dist/sparkle-core/p-9cfdeb18.entry.js +1 -0
- package/dist/sparkle-core/p-a080e768.entry.js +1 -0
- package/dist/sparkle-core/p-a1cab0f3.js +4 -0
- package/dist/sparkle-core/p-a7cc0052.entry.js +4 -0
- package/dist/sparkle-core/p-a9ccb0df.js +4 -0
- package/dist/sparkle-core/p-a9ee3f6d.entry.js +1 -0
- package/dist/sparkle-core/{p-abe2676a.entry.js → p-aa87c7f0.entry.js} +1 -1
- package/dist/sparkle-core/{p-e818b11d.entry.js → p-aa9ebc39.entry.js} +1 -1
- package/dist/sparkle-core/p-ae1f145d.entry.js +1 -0
- package/dist/sparkle-core/{p-73a646fb.entry.js → p-b07a2cf2.entry.js} +1 -1
- package/dist/sparkle-core/{p-c82b05e0.entry.js → p-b3909012.entry.js} +1 -1
- package/dist/sparkle-core/p-b3e6427d.js +7 -0
- package/dist/sparkle-core/p-b49ca0ea.entry.js +1 -0
- package/dist/sparkle-core/p-b81e20fe.entry.js +4 -0
- package/dist/sparkle-core/p-bca0e465.entry.js +1 -0
- package/dist/sparkle-core/p-c1279cc9.entry.js +1 -0
- package/dist/sparkle-core/{p-82d95fcd.entry.js → p-c1376096.entry.js} +1 -1
- package/dist/sparkle-core/p-c3986a52.entry.js +1 -0
- package/dist/sparkle-core/p-c3d3d5c4.entry.js +1 -0
- package/dist/sparkle-core/p-c48bbc7c.entry.js +4 -0
- package/dist/sparkle-core/p-c5b9bdd6.entry.js +1 -0
- package/dist/sparkle-core/{p-15d68269.entry.js → p-c69b0a7a.entry.js} +1 -1
- package/dist/sparkle-core/p-cbbeed67.entry.js +1 -0
- package/dist/sparkle-core/p-d4a435f8.entry.js +1 -0
- package/dist/sparkle-core/p-d4c07aca.js +4 -0
- package/dist/sparkle-core/p-d5b05ece.entry.js +5 -0
- package/dist/sparkle-core/p-d7baf31e.entry.js +1 -0
- package/dist/sparkle-core/p-d8d3524a.js +1 -0
- package/dist/sparkle-core/p-df0070c5.entry.js +352 -0
- package/dist/sparkle-core/{p-22926eed.entry.js → p-e0fced48.entry.js} +1 -1
- package/dist/sparkle-core/p-e1cba44b.entry.js +4 -0
- package/dist/sparkle-core/p-e225581a.js +7 -0
- package/dist/sparkle-core/{p-4e28ca37.entry.js → p-e3fdd0a8.entry.js} +1 -1
- package/dist/sparkle-core/p-e72d4450.js +4 -0
- package/dist/sparkle-core/p-eb70a23c.entry.js +1 -0
- package/dist/sparkle-core/{p-f9143c5d.entry.js → p-ecd39170.entry.js} +1 -1
- package/dist/sparkle-core/{p-151afa9e.entry.js → p-ed0e9d29.entry.js} +1 -1
- package/dist/sparkle-core/{p-92d42c10.entry.js → p-ee0d7f19.entry.js} +1 -1
- package/dist/sparkle-core/p-f4001fdf.js +4 -0
- package/dist/sparkle-core/p-f9b73032.entry.js +1 -0
- package/dist/sparkle-core/p-faa912d7.entry.js +1 -0
- package/dist/sparkle-core/{p-a250e2ae.entry.js → p-fbd7eeca.entry.js} +1 -1
- package/dist/sparkle-core/p-fc933591.entry.js +1 -0
- package/dist/sparkle-core/p-fef04ab5.js +4 -0
- package/dist/sparkle-core/sparkle-core.css +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/sparkle-core/svg/balloon-outline.svg +1 -0
- package/dist/sparkle-core/svg/balloon-sharp.svg +1 -0
- package/dist/sparkle-core/svg/balloon.svg +1 -0
- package/dist/sparkle-core/svg/bowling-ball-outline.svg +1 -0
- package/dist/sparkle-core/svg/bowling-ball-sharp.svg +1 -0
- package/dist/sparkle-core/svg/bowling-ball.svg +1 -0
- package/dist/sparkle-core/svg/calendar-number-outline.svg +1 -0
- package/dist/sparkle-core/svg/calendar-number-sharp.svg +1 -0
- package/dist/sparkle-core/svg/calendar-number.svg +1 -0
- package/dist/sparkle-core/svg/diamond-outline.svg +1 -0
- package/dist/sparkle-core/svg/diamond-sharp.svg +1 -0
- package/dist/sparkle-core/svg/diamond.svg +1 -0
- package/dist/sparkle-core/svg/footsteps-outline.svg +1 -0
- package/dist/sparkle-core/svg/footsteps-sharp.svg +1 -0
- package/dist/sparkle-core/svg/footsteps.svg +1 -0
- package/dist/sparkle-core/svg/id-card-outline.svg +1 -0
- package/dist/sparkle-core/svg/id-card-sharp.svg +1 -0
- package/dist/sparkle-core/svg/id-card.svg +1 -0
- package/dist/sparkle-core/svg/logo-apple-ar.svg +1 -0
- package/dist/sparkle-core/svg/prism-outline.svg +1 -0
- package/dist/sparkle-core/svg/prism-sharp.svg +1 -0
- package/dist/sparkle-core/svg/prism.svg +1 -0
- package/dist/sparkle-core/svg/scale-outline.svg +1 -0
- package/dist/sparkle-core/svg/scale-sharp.svg +1 -0
- package/dist/sparkle-core/svg/scale.svg +1 -0
- package/dist/sparkle-core/svg/shield-half-outline.svg +1 -0
- package/dist/sparkle-core/svg/shield-half-sharp.svg +1 -0
- package/dist/sparkle-core/svg/shield-half.svg +1 -0
- package/dist/sparkle-core/svg/sparkles-outline.svg +1 -0
- package/dist/sparkle-core/svg/sparkles-sharp.svg +1 -0
- package/dist/sparkle-core/svg/sparkles.svg +1 -0
- package/dist/sparkle-core/swiper/swiper.bundle.js +2 -2
- package/dist/types/components/sparkle-animation-player/sparkle-animation-player.d.ts +1 -0
- package/dist/types/components/sparkle-character-intro/sparkle-character-intro.d.ts +7 -0
- package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +2 -2
- package/dist/types/components/sparkle-youtube/sparkle-youtube.d.ts +1 -1
- package/dist/types/components.d.ts +17 -0
- package/dist/types/models/definitions.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +200 -190
- package/dist/types/util.d.ts +1 -0
- package/package.json +26 -26
- package/dist/cjs/app-globals-98121d6d.js +0 -9
- package/dist/cjs/button-active-9456fb4d.js +0 -66
- package/dist/cjs/feed.service-518d18fd.js +0 -5802
- package/dist/cjs/focus-visible-1583bc8e.js +0 -45
- package/dist/cjs/framework-delegate-72815681.js +0 -37
- package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +0 -86
- package/dist/cjs/index.es-baef3314.js +0 -13834
- package/dist/cjs/ion-action-sheet.cjs.entry.js +0 -261
- package/dist/cjs/ion-alert.cjs.entry.js +0 -455
- package/dist/cjs/ion-note.cjs.entry.js +0 -29
- package/dist/cjs/ion-popover.cjs.entry.js +0 -365
- package/dist/cjs/ion-select-popover.cjs.entry.js +0 -35
- package/dist/cjs/status-tap-466a7c6a.js +0 -25
- package/dist/esm/app-globals-6451faf3.js +0 -7
- package/dist/esm/auth.store-dd944bc2.js +0 -2552
- package/dist/esm/button-active-97535443.js +0 -64
- package/dist/esm/feed.service-0fda1e36.js +0 -5787
- package/dist/esm/focus-visible-abf04ce3.js +0 -43
- package/dist/esm/framework-delegate-2c397da3.js +0 -34
- package/dist/esm/header-mobile-collapse_60.entry.js +0 -19
- package/dist/esm/index.es-a5bf9a49.js +0 -13748
- package/dist/esm/ion-action-sheet.entry.js +0 -257
- package/dist/esm/ion-alert.entry.js +0 -451
- package/dist/esm/ion-note.entry.js +0 -25
- package/dist/esm/ion-popover.entry.js +0 -361
- package/dist/esm/ion-select-popover.entry.js +0 -31
- package/dist/esm/status-tap-9221cd79.js +0 -23
- package/dist/sparkle-core/p-019d9d02.entry.js +0 -1
- package/dist/sparkle-core/p-02d6d899.js +0 -1
- package/dist/sparkle-core/p-03fd27d0.entry.js +0 -1
- package/dist/sparkle-core/p-07018d29.js +0 -1
- package/dist/sparkle-core/p-083d57a6.entry.js +0 -1
- package/dist/sparkle-core/p-090f2624.js +0 -1
- package/dist/sparkle-core/p-0e1c7c8c.js +0 -1
- package/dist/sparkle-core/p-101feae9.js +0 -1
- package/dist/sparkle-core/p-13b0cdfc.entry.js +0 -1
- package/dist/sparkle-core/p-13c9bf3a.entry.js +0 -1
- package/dist/sparkle-core/p-169920f1.js +0 -1
- package/dist/sparkle-core/p-1e1f5e98.entry.js +0 -1
- package/dist/sparkle-core/p-1e866c41.entry.js +0 -1
- package/dist/sparkle-core/p-2474bf60.entry.js +0 -1
- package/dist/sparkle-core/p-25bbf9b4.entry.js +0 -1
- package/dist/sparkle-core/p-2a45b732.js +0 -1
- package/dist/sparkle-core/p-2abf4d37.entry.js +0 -1
- package/dist/sparkle-core/p-2c5edb9f.entry.js +0 -1
- package/dist/sparkle-core/p-2d966d35.js +0 -1
- package/dist/sparkle-core/p-30b641a4.entry.js +0 -1
- package/dist/sparkle-core/p-34ea6639.entry.js +0 -1
- package/dist/sparkle-core/p-359422b6.entry.js +0 -1
- package/dist/sparkle-core/p-37bfb548.entry.js +0 -1
- package/dist/sparkle-core/p-38307b31.js +0 -1
- package/dist/sparkle-core/p-3a29a75b.entry.js +0 -1
- package/dist/sparkle-core/p-3bb55510.entry.js +0 -1
- package/dist/sparkle-core/p-3be0a218.js +0 -1
- package/dist/sparkle-core/p-417a8dd6.js +0 -1
- package/dist/sparkle-core/p-447163be.entry.js +0 -1
- package/dist/sparkle-core/p-49265a8e.entry.js +0 -1
- package/dist/sparkle-core/p-4950f841.entry.js +0 -1
- package/dist/sparkle-core/p-4b7db0e6.js +0 -1
- package/dist/sparkle-core/p-4d8cb365.entry.js +0 -1
- package/dist/sparkle-core/p-5073899e.entry.js +0 -1
- package/dist/sparkle-core/p-5b366c20.entry.js +0 -1
- package/dist/sparkle-core/p-5dce20b9.entry.js +0 -1
- package/dist/sparkle-core/p-6006beec.entry.js +0 -1
- package/dist/sparkle-core/p-600d04fc.entry.js +0 -1
- package/dist/sparkle-core/p-60828739.entry.js +0 -1
- package/dist/sparkle-core/p-6112b180.entry.js +0 -1
- package/dist/sparkle-core/p-66eb6b7a.entry.js +0 -1
- package/dist/sparkle-core/p-67ddec3f.entry.js +0 -1
- package/dist/sparkle-core/p-68cb7d41.entry.js +0 -1
- package/dist/sparkle-core/p-69cd49de.js +0 -1
- package/dist/sparkle-core/p-6edbdde5.entry.js +0 -1
- package/dist/sparkle-core/p-6f0ecbe3.js +0 -1
- package/dist/sparkle-core/p-765b8593.js +0 -1
- package/dist/sparkle-core/p-770128c8.js +0 -1
- package/dist/sparkle-core/p-7840618d.js +0 -1
- package/dist/sparkle-core/p-7b37d523.entry.js +0 -1
- package/dist/sparkle-core/p-7d83d006.entry.js +0 -1
- package/dist/sparkle-core/p-7f3d5344.js +0 -1
- package/dist/sparkle-core/p-81651f26.entry.js +0 -1
- package/dist/sparkle-core/p-86148067.entry.js +0 -1
- package/dist/sparkle-core/p-8b5bc1d6.entry.js +0 -1
- package/dist/sparkle-core/p-8c3ee44c.entry.js +0 -1
- package/dist/sparkle-core/p-9007a06b.entry.js +0 -1
- package/dist/sparkle-core/p-90482861.entry.js +0 -1
- package/dist/sparkle-core/p-a061537e.entry.js +0 -1
- package/dist/sparkle-core/p-a38ea475.js +0 -1
- package/dist/sparkle-core/p-ad1ddf1f.js +0 -483
- package/dist/sparkle-core/p-aef0bba0.js +0 -1
- package/dist/sparkle-core/p-b080c1e3.entry.js +0 -1
- package/dist/sparkle-core/p-b11fe0c7.js +0 -1
- package/dist/sparkle-core/p-bac45a26.entry.js +0 -1
- package/dist/sparkle-core/p-bbe5977b.entry.js +0 -1
- package/dist/sparkle-core/p-bc568dcb.js +0 -1
- package/dist/sparkle-core/p-bfb55f1d.js +0 -3
- package/dist/sparkle-core/p-c163c16d.entry.js +0 -1
- package/dist/sparkle-core/p-c3166584.entry.js +0 -1
- package/dist/sparkle-core/p-c34269ae.entry.js +0 -1
- package/dist/sparkle-core/p-c466ee32.js +0 -1
- package/dist/sparkle-core/p-c6710592.entry.js +0 -1
- package/dist/sparkle-core/p-c7022391.entry.js +0 -1
- package/dist/sparkle-core/p-d4ad796c.js +0 -1
- package/dist/sparkle-core/p-d6152660.entry.js +0 -1
- package/dist/sparkle-core/p-d63406d8.js +0 -1
- package/dist/sparkle-core/p-dba672d5.entry.js +0 -1
- package/dist/sparkle-core/p-dd73d01a.entry.js +0 -1
- package/dist/sparkle-core/p-de33872d.entry.js +0 -1
- package/dist/sparkle-core/p-dee2128a.entry.js +0 -1
- package/dist/sparkle-core/p-df07e132.entry.js +0 -1
- package/dist/sparkle-core/p-e5d5aaa5.js +0 -1
- package/dist/sparkle-core/p-e72c6d87.entry.js +0 -1
- package/dist/sparkle-core/p-e8df6ea6.entry.js +0 -1
- package/dist/sparkle-core/p-ef2a2172.js +0 -1
- package/dist/sparkle-core/p-f1a4ab33.entry.js +0 -1
- package/dist/sparkle-core/p-f43ac631.entry.js +0 -1
- package/dist/sparkle-core/p-f8063d7b.js +0 -1
- package/dist/sparkle-core/p-fd62283e.entry.js +0 -1
- package/dist/sparkle-core/p-fef71e0e.entry.js +0 -1
@@ -0,0 +1,695 @@
|
|
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 { k as raf, g as getElementRoot } from './helpers-39367fe1.js';
|
4
|
+
import { a as hapticSelectionStart, b as hapticSelectionChanged, c as hapticSelectionEnd } from './haptic-99c9e346.js';
|
5
|
+
import { c as createColorClasses } from './theme-c336c9d9.js';
|
6
|
+
|
7
|
+
const pickerColumnInternalIosCss = ":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@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::-webkit-scrollbar{display:none}:host .picker-item{height:34px;line-height:34px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty{scroll-snap-align:none}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";
|
8
|
+
|
9
|
+
const pickerColumnInternalMdCss = ":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@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::-webkit-scrollbar{display:none}:host .picker-item{height:34px;line-height:34px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty{scroll-snap-align:none}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}";
|
10
|
+
|
11
|
+
const PickerColumnInternal = class {
|
12
|
+
constructor(hostRef) {
|
13
|
+
registerInstance(this, hostRef);
|
14
|
+
this.ionChange = createEvent(this, "ionChange", 7);
|
15
|
+
this.hapticsStarted = false;
|
16
|
+
this.isColumnVisible = false;
|
17
|
+
this.isActive = false;
|
18
|
+
/**
|
19
|
+
* A list of options to be displayed in the picker
|
20
|
+
*/
|
21
|
+
this.items = [];
|
22
|
+
/**
|
23
|
+
* The color to use from your application's color palette.
|
24
|
+
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
25
|
+
* For more information on colors, see [theming](/docs/theming/basics).
|
26
|
+
*/
|
27
|
+
this.color = 'primary';
|
28
|
+
/**
|
29
|
+
* If `true`, tapping the picker will
|
30
|
+
* reveal a number input keyboard that lets
|
31
|
+
* the user type in values for each picker
|
32
|
+
* column. This is useful when working
|
33
|
+
* with time pickers.
|
34
|
+
*
|
35
|
+
* @internal
|
36
|
+
*/
|
37
|
+
this.numericInput = false;
|
38
|
+
this.centerPickerItemInView = (target, smooth = true) => {
|
39
|
+
const { el, isColumnVisible } = this;
|
40
|
+
if (isColumnVisible) {
|
41
|
+
// (Vertical offset from parent) - (three empty picker rows) + (half the height of the target to ensure the scroll triggers)
|
42
|
+
const top = target.offsetTop - (3 * target.clientHeight) + (target.clientHeight / 2);
|
43
|
+
if (el.scrollTop !== top) {
|
44
|
+
el.scroll({
|
45
|
+
top,
|
46
|
+
left: 0,
|
47
|
+
behavior: smooth ? 'smooth' : undefined
|
48
|
+
});
|
49
|
+
}
|
50
|
+
}
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* When ionInputModeChange is emitted, each column
|
54
|
+
* needs to check if it is the one being made available
|
55
|
+
* for text entry.
|
56
|
+
*/
|
57
|
+
this.inputModeChange = (ev) => {
|
58
|
+
if (!this.numericInput) {
|
59
|
+
return;
|
60
|
+
}
|
61
|
+
const { useInputMode, inputModeColumn } = ev.detail;
|
62
|
+
/**
|
63
|
+
* If inputModeColumn is undefined then this means
|
64
|
+
* all numericInput columns are being selected.
|
65
|
+
*/
|
66
|
+
const isColumnActive = inputModeColumn === undefined || inputModeColumn === this.el;
|
67
|
+
if (!useInputMode || !isColumnActive) {
|
68
|
+
this.isActive = false;
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
this.isActive = true;
|
72
|
+
};
|
73
|
+
/**
|
74
|
+
* When the column scrolls, the component
|
75
|
+
* needs to determine which item is centered
|
76
|
+
* in the view and will emit an ionChange with
|
77
|
+
* the item object.
|
78
|
+
*/
|
79
|
+
this.initializeScrollListener = () => {
|
80
|
+
const { el } = this;
|
81
|
+
let timeout;
|
82
|
+
let activeEl = this.activeItem;
|
83
|
+
const scrollCallback = () => {
|
84
|
+
raf(() => {
|
85
|
+
if (timeout) {
|
86
|
+
clearTimeout(timeout);
|
87
|
+
timeout = undefined;
|
88
|
+
}
|
89
|
+
if (!this.hapticsStarted) {
|
90
|
+
hapticSelectionStart();
|
91
|
+
this.hapticsStarted = true;
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* Select item in the center of the column
|
95
|
+
* which is the month/year that we want to select
|
96
|
+
*/
|
97
|
+
const bbox = el.getBoundingClientRect();
|
98
|
+
const centerX = bbox.x + (bbox.width / 2);
|
99
|
+
const centerY = bbox.y + (bbox.height / 2);
|
100
|
+
const activeElement = el.shadowRoot.elementFromPoint(centerX, centerY);
|
101
|
+
if (activeEl !== null) {
|
102
|
+
activeEl.classList.remove(PICKER_COL_ACTIVE);
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* If we are selecting a new value,
|
106
|
+
* we need to run haptics again.
|
107
|
+
*/
|
108
|
+
if (activeElement !== activeEl) {
|
109
|
+
hapticSelectionChanged();
|
110
|
+
}
|
111
|
+
activeEl = activeElement;
|
112
|
+
activeElement.classList.add(PICKER_COL_ACTIVE);
|
113
|
+
timeout = setTimeout(() => {
|
114
|
+
const dataIndex = activeElement.getAttribute('data-index');
|
115
|
+
/**
|
116
|
+
* If no value it is
|
117
|
+
* possible we hit one of the
|
118
|
+
* empty padding columns.
|
119
|
+
*/
|
120
|
+
if (dataIndex === null) {
|
121
|
+
return;
|
122
|
+
}
|
123
|
+
const index = parseInt(dataIndex, 10);
|
124
|
+
const selectedItem = this.items[index];
|
125
|
+
if (selectedItem.value !== this.value) {
|
126
|
+
this.setValue(selectedItem.value);
|
127
|
+
hapticSelectionEnd();
|
128
|
+
this.hapticsStarted = false;
|
129
|
+
}
|
130
|
+
}, 250);
|
131
|
+
});
|
132
|
+
};
|
133
|
+
/**
|
134
|
+
* Wrap this in an raf so that the scroll callback
|
135
|
+
* does not fire when component is initially shown.
|
136
|
+
*/
|
137
|
+
raf(() => {
|
138
|
+
el.addEventListener('scroll', scrollCallback);
|
139
|
+
this.destroyScrollListener = () => {
|
140
|
+
el.removeEventListener('scroll', scrollCallback);
|
141
|
+
};
|
142
|
+
});
|
143
|
+
};
|
144
|
+
}
|
145
|
+
valueChange() {
|
146
|
+
if (this.isColumnVisible) {
|
147
|
+
/**
|
148
|
+
* Only scroll the active item into view when the picker column
|
149
|
+
* is actively visible to the user.
|
150
|
+
*/
|
151
|
+
this.scrollActiveItemIntoView();
|
152
|
+
}
|
153
|
+
}
|
154
|
+
/**
|
155
|
+
* Only setup scroll listeners
|
156
|
+
* when the picker is visible, otherwise
|
157
|
+
* the container will have a scroll
|
158
|
+
* height of 0px.
|
159
|
+
*/
|
160
|
+
componentWillLoad() {
|
161
|
+
const visibleCallback = (entries) => {
|
162
|
+
var _a;
|
163
|
+
const ev = entries[0];
|
164
|
+
if (ev.isIntersecting) {
|
165
|
+
this.isColumnVisible = true;
|
166
|
+
/**
|
167
|
+
* Because this initial call to scrollActiveItemIntoView has to fire before
|
168
|
+
* the scroll listener is set up, we need to manage the active class manually.
|
169
|
+
*/
|
170
|
+
const oldActive = getElementRoot(this.el).querySelector(`.${PICKER_COL_ACTIVE}`);
|
171
|
+
oldActive === null || oldActive === void 0 ? void 0 : oldActive.classList.remove(PICKER_COL_ACTIVE);
|
172
|
+
this.scrollActiveItemIntoView();
|
173
|
+
(_a = this.activeItem) === null || _a === void 0 ? void 0 : _a.classList.add(PICKER_COL_ACTIVE);
|
174
|
+
this.initializeScrollListener();
|
175
|
+
}
|
176
|
+
else {
|
177
|
+
this.isColumnVisible = false;
|
178
|
+
if (this.destroyScrollListener) {
|
179
|
+
this.destroyScrollListener();
|
180
|
+
this.destroyScrollListener = undefined;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
};
|
184
|
+
new IntersectionObserver(visibleCallback, { threshold: 0.01 }).observe(this.el);
|
185
|
+
const parentEl = this.el.closest('ion-picker-internal');
|
186
|
+
if (parentEl !== null) {
|
187
|
+
parentEl.addEventListener('ionInputModeChange', (ev) => this.inputModeChange(ev));
|
188
|
+
}
|
189
|
+
}
|
190
|
+
componentDidRender() {
|
191
|
+
var _a;
|
192
|
+
const { activeItem, items, isColumnVisible, value } = this;
|
193
|
+
if (isColumnVisible) {
|
194
|
+
if (activeItem) {
|
195
|
+
this.scrollActiveItemIntoView();
|
196
|
+
}
|
197
|
+
else if (((_a = items[0]) === null || _a === void 0 ? void 0 : _a.value) !== value) {
|
198
|
+
/**
|
199
|
+
* If the picker column does not have an active item and the current value
|
200
|
+
* does not match the first item in the picker column, that means
|
201
|
+
* the value is out of bounds. In this case, we assign the value to the
|
202
|
+
* first item to match the scroll position of the column.
|
203
|
+
*
|
204
|
+
*/
|
205
|
+
this.setValue(items[0].value);
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
/** @internal */
|
210
|
+
async scrollActiveItemIntoView() {
|
211
|
+
const activeEl = this.activeItem;
|
212
|
+
if (activeEl) {
|
213
|
+
this.centerPickerItemInView(activeEl, false);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
setValue(value) {
|
217
|
+
const { items } = this;
|
218
|
+
this.value = value;
|
219
|
+
const findItem = items.find(item => item.value === value);
|
220
|
+
if (findItem) {
|
221
|
+
this.ionChange.emit(findItem);
|
222
|
+
}
|
223
|
+
}
|
224
|
+
get activeItem() {
|
225
|
+
return getElementRoot(this.el).querySelector(`.picker-item[data-value="${this.value}"]`);
|
226
|
+
}
|
227
|
+
render() {
|
228
|
+
const { items, color, isActive, numericInput } = this;
|
229
|
+
const mode = getIonMode(this);
|
230
|
+
return (h(Host, { tabindex: 0, class: createColorClasses(color, {
|
231
|
+
[mode]: true,
|
232
|
+
['picker-column-active']: isActive,
|
233
|
+
['picker-column-numeric-input']: numericInput
|
234
|
+
}) }, h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), items.map((item, index) => {
|
235
|
+
return (h("div", { class: "picker-item", "data-value": item.value, "data-index": index, onClick: (ev) => {
|
236
|
+
this.centerPickerItemInView(ev.target);
|
237
|
+
} }, item.text));
|
238
|
+
}), h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), h("div", { class: "picker-item picker-item-empty" }, "\u00A0")));
|
239
|
+
}
|
240
|
+
get el() { return getElement(this); }
|
241
|
+
static get watchers() { return {
|
242
|
+
"value": ["valueChange"]
|
243
|
+
}; }
|
244
|
+
};
|
245
|
+
const PICKER_COL_ACTIVE = 'picker-item-active';
|
246
|
+
PickerColumnInternal.style = {
|
247
|
+
ios: pickerColumnInternalIosCss,
|
248
|
+
md: pickerColumnInternalMdCss
|
249
|
+
};
|
250
|
+
|
251
|
+
const pickerInternalIosCss = ":host{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;transform:translateY(-50%);z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host 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 ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host .picker-before{background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-after{background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-highlight{background:var(--ion-color-step-150, #eeeeef)}";
|
252
|
+
|
253
|
+
const pickerInternalMdCss = ":host{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;transform:translateY(-50%);z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host 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 ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host .picker-before{background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}:host .picker-after{background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}";
|
254
|
+
|
255
|
+
const PickerInternal = class {
|
256
|
+
constructor(hostRef) {
|
257
|
+
registerInstance(this, hostRef);
|
258
|
+
this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
|
259
|
+
this.useInputMode = false;
|
260
|
+
this.isInHighlightBounds = (ev) => {
|
261
|
+
const { highlightEl } = this;
|
262
|
+
if (!highlightEl) {
|
263
|
+
return false;
|
264
|
+
}
|
265
|
+
const bbox = highlightEl.getBoundingClientRect();
|
266
|
+
/**
|
267
|
+
* Check to see if the user clicked
|
268
|
+
* outside the bounds of the highlight.
|
269
|
+
*/
|
270
|
+
const outsideX = ev.clientX < bbox.left || ev.clientX > bbox.right;
|
271
|
+
const outsideY = ev.clientY < bbox.top || ev.clientY > bbox.bottom;
|
272
|
+
if (outsideX || outsideY) {
|
273
|
+
return false;
|
274
|
+
}
|
275
|
+
return true;
|
276
|
+
};
|
277
|
+
/**
|
278
|
+
* If we are no longer focused
|
279
|
+
* on a picker column, then we should
|
280
|
+
* exit input mode. An exception is made
|
281
|
+
* for the input in the picker since having
|
282
|
+
* that focused means we are still in input mode.
|
283
|
+
*/
|
284
|
+
this.onFocusOut = (ev) => {
|
285
|
+
const { relatedTarget } = ev;
|
286
|
+
if (!relatedTarget ||
|
287
|
+
relatedTarget.tagName !== 'ION-PICKER-COLUMN-INTERNAL' && relatedTarget !== this.inputEl) {
|
288
|
+
this.exitInputMode();
|
289
|
+
}
|
290
|
+
};
|
291
|
+
/**
|
292
|
+
* When picker columns receive focus
|
293
|
+
* the parent picker needs to determine
|
294
|
+
* whether to enter/exit input mode.
|
295
|
+
*/
|
296
|
+
this.onFocusIn = (ev) => {
|
297
|
+
const { target } = ev;
|
298
|
+
/**
|
299
|
+
* Due to browser differences in how/when focus
|
300
|
+
* is dispatched on certain elements, we need to
|
301
|
+
* make sure that this function only ever runs when
|
302
|
+
* focusing a picker column.
|
303
|
+
*/
|
304
|
+
if (target.tagName !== 'ION-PICKER-COLUMN-INTERNAL') {
|
305
|
+
return;
|
306
|
+
}
|
307
|
+
/**
|
308
|
+
* If we have actionOnClick
|
309
|
+
* then this means the user focused
|
310
|
+
* a picker column via mouse or
|
311
|
+
* touch (i.e. a PointerEvent). As a result,
|
312
|
+
* we should not enter/exit input mode
|
313
|
+
* until the click event has fired, which happens
|
314
|
+
* after the `focusin` event.
|
315
|
+
*
|
316
|
+
* Otherwise, the user likely focused
|
317
|
+
* the column using their keyboard and
|
318
|
+
* we should enter/exit input mode automatically.
|
319
|
+
*/
|
320
|
+
if (!this.actionOnClick) {
|
321
|
+
const columnEl = target;
|
322
|
+
const allowInput = columnEl.numericInput;
|
323
|
+
if (allowInput) {
|
324
|
+
this.enterInputMode(columnEl, false);
|
325
|
+
}
|
326
|
+
else {
|
327
|
+
this.exitInputMode();
|
328
|
+
}
|
329
|
+
}
|
330
|
+
};
|
331
|
+
/**
|
332
|
+
* On click we need to run an actionOnClick
|
333
|
+
* function that has been set in onPointerDown
|
334
|
+
* so that we enter/exit input mode correctly.
|
335
|
+
*/
|
336
|
+
this.onClick = () => {
|
337
|
+
const { actionOnClick } = this;
|
338
|
+
if (actionOnClick) {
|
339
|
+
actionOnClick();
|
340
|
+
this.actionOnClick = undefined;
|
341
|
+
}
|
342
|
+
};
|
343
|
+
/**
|
344
|
+
* Clicking a column also focuses the column on
|
345
|
+
* certain browsers, so we use onPointerDown
|
346
|
+
* to tell the onFocusIn function that users
|
347
|
+
* are trying to click the column rather than
|
348
|
+
* focus the column using the keyboard. When the
|
349
|
+
* user completes the click, the onClick function
|
350
|
+
* runs and runs the actionOnClick callback.
|
351
|
+
*/
|
352
|
+
this.onPointerDown = (ev) => {
|
353
|
+
const { useInputMode, inputModeColumn, el } = this;
|
354
|
+
if (this.isInHighlightBounds(ev)) {
|
355
|
+
/**
|
356
|
+
* If we were already in
|
357
|
+
* input mode, then we should determine
|
358
|
+
* if we tapped a particular column and
|
359
|
+
* should switch to input mode for
|
360
|
+
* that specific column.
|
361
|
+
*/
|
362
|
+
if (useInputMode) {
|
363
|
+
/**
|
364
|
+
* If we tapped a picker column
|
365
|
+
* then we should either switch to input
|
366
|
+
* mode for that column or all columns.
|
367
|
+
* Otherwise we should exit input mode
|
368
|
+
* since we just tapped the highlight and
|
369
|
+
* not a column.
|
370
|
+
*/
|
371
|
+
if (ev.target.tagName === 'ION-PICKER-COLUMN-INTERNAL') {
|
372
|
+
/**
|
373
|
+
* If user taps 2 different columns
|
374
|
+
* then we should just switch to input mode
|
375
|
+
* for the new column rather than switching to
|
376
|
+
* input mode for all columns.
|
377
|
+
*/
|
378
|
+
if (inputModeColumn && inputModeColumn === ev.target) {
|
379
|
+
this.actionOnClick = () => {
|
380
|
+
this.enterInputMode();
|
381
|
+
};
|
382
|
+
}
|
383
|
+
else {
|
384
|
+
this.actionOnClick = () => {
|
385
|
+
this.enterInputMode(ev.target);
|
386
|
+
};
|
387
|
+
}
|
388
|
+
}
|
389
|
+
else {
|
390
|
+
this.actionOnClick = () => {
|
391
|
+
this.exitInputMode();
|
392
|
+
};
|
393
|
+
}
|
394
|
+
/**
|
395
|
+
* If we were not already in
|
396
|
+
* input mode, then we should
|
397
|
+
* enter input mode for all columns.
|
398
|
+
*/
|
399
|
+
}
|
400
|
+
else {
|
401
|
+
/**
|
402
|
+
* If there is only 1 numeric input column
|
403
|
+
* then we should skip multi column input.
|
404
|
+
*/
|
405
|
+
const columns = el.querySelectorAll('ion-picker-column-internal.picker-column-numeric-input');
|
406
|
+
const columnEl = (columns.length === 1) ? ev.target : undefined;
|
407
|
+
this.actionOnClick = () => {
|
408
|
+
this.enterInputMode(columnEl);
|
409
|
+
};
|
410
|
+
}
|
411
|
+
return;
|
412
|
+
}
|
413
|
+
this.actionOnClick = () => {
|
414
|
+
this.exitInputMode();
|
415
|
+
};
|
416
|
+
};
|
417
|
+
/**
|
418
|
+
* Enters input mode to allow
|
419
|
+
* for text entry of numeric values.
|
420
|
+
* If on mobile, we focus a hidden input
|
421
|
+
* field so that the on screen keyboard
|
422
|
+
* is brought up. When tabbing using a
|
423
|
+
* keyboard, picker columns receive an outline
|
424
|
+
* to indicate they are focused. As a result,
|
425
|
+
* we should not focus the hidden input as it
|
426
|
+
* would cause the outline to go away, preventing
|
427
|
+
* users from having any visual indication of which
|
428
|
+
* column is focused.
|
429
|
+
*/
|
430
|
+
this.enterInputMode = (columnEl, focusInput = true) => {
|
431
|
+
const { inputEl, el } = this;
|
432
|
+
if (!inputEl) {
|
433
|
+
return;
|
434
|
+
}
|
435
|
+
/**
|
436
|
+
* Only active input mode if there is at
|
437
|
+
* least one column that accepts numeric input.
|
438
|
+
*/
|
439
|
+
const hasInputColumn = el.querySelector('ion-picker-column-internal.picker-column-numeric-input');
|
440
|
+
if (!hasInputColumn) {
|
441
|
+
return;
|
442
|
+
}
|
443
|
+
/**
|
444
|
+
* If columnEl is undefined then
|
445
|
+
* it is assumed that all numeric pickers
|
446
|
+
* are eligible for text entry.
|
447
|
+
* (i.e. hour and minute columns)
|
448
|
+
*/
|
449
|
+
this.useInputMode = true;
|
450
|
+
this.inputModeColumn = columnEl;
|
451
|
+
/**
|
452
|
+
* Users with a keyboard and mouse can
|
453
|
+
* activate input mode where the input is
|
454
|
+
* focused as well as when it is not focused,
|
455
|
+
* so we need to make sure we clean up any
|
456
|
+
* old listeners.
|
457
|
+
*/
|
458
|
+
if (focusInput) {
|
459
|
+
if (this.destroyKeypressListener) {
|
460
|
+
this.destroyKeypressListener();
|
461
|
+
this.destroyKeypressListener = undefined;
|
462
|
+
}
|
463
|
+
inputEl.focus();
|
464
|
+
}
|
465
|
+
else {
|
466
|
+
el.addEventListener('keypress', this.onKeyPress);
|
467
|
+
this.destroyKeypressListener = () => {
|
468
|
+
el.removeEventListener('keypress', this.onKeyPress);
|
469
|
+
};
|
470
|
+
}
|
471
|
+
this.emitInputModeChange();
|
472
|
+
};
|
473
|
+
this.exitInputMode = () => {
|
474
|
+
const { inputEl, useInputMode } = this;
|
475
|
+
if (!useInputMode || !inputEl) {
|
476
|
+
return;
|
477
|
+
}
|
478
|
+
this.useInputMode = false;
|
479
|
+
this.inputModeColumn = undefined;
|
480
|
+
inputEl.blur();
|
481
|
+
inputEl.value = '';
|
482
|
+
if (this.destroyKeypressListener) {
|
483
|
+
this.destroyKeypressListener();
|
484
|
+
this.destroyKeypressListener = undefined;
|
485
|
+
}
|
486
|
+
this.emitInputModeChange();
|
487
|
+
};
|
488
|
+
this.onKeyPress = (ev) => {
|
489
|
+
const { inputEl } = this;
|
490
|
+
if (!inputEl) {
|
491
|
+
return;
|
492
|
+
}
|
493
|
+
const parsedValue = parseInt(ev.key, 10);
|
494
|
+
/**
|
495
|
+
* Only numbers should be allowed
|
496
|
+
*/
|
497
|
+
if (!Number.isNaN(parsedValue)) {
|
498
|
+
inputEl.value += ev.key;
|
499
|
+
this.onInputChange();
|
500
|
+
}
|
501
|
+
};
|
502
|
+
this.selectSingleColumn = () => {
|
503
|
+
const { inputEl, inputModeColumn, singleColumnSearchTimeout } = this;
|
504
|
+
if (!inputEl || !inputModeColumn) {
|
505
|
+
return;
|
506
|
+
}
|
507
|
+
const values = inputModeColumn.items;
|
508
|
+
/**
|
509
|
+
* If users pause for a bit, the search
|
510
|
+
* value should be reset similar to how a
|
511
|
+
* <select> behaves. So typing "34", waiting,
|
512
|
+
* then typing "5" should select "05".
|
513
|
+
*/
|
514
|
+
if (singleColumnSearchTimeout) {
|
515
|
+
clearTimeout(singleColumnSearchTimeout);
|
516
|
+
}
|
517
|
+
this.singleColumnSearchTimeout = setTimeout(() => {
|
518
|
+
inputEl.value = '';
|
519
|
+
this.singleColumnSearchTimeout = undefined;
|
520
|
+
}, 1000);
|
521
|
+
/**
|
522
|
+
* For values that are longer than 2 digits long
|
523
|
+
* we should shift the value over 1 character
|
524
|
+
* to the left. So typing "456" would result in "56".
|
525
|
+
* TODO: If we want to support more than just
|
526
|
+
* time entry, we should update this value to be
|
527
|
+
* the max length of all of the picker items.
|
528
|
+
*/
|
529
|
+
if (inputEl.value.length >= 3) {
|
530
|
+
const startIndex = inputEl.value.length - 2;
|
531
|
+
const newString = inputEl.value.substring(startIndex);
|
532
|
+
inputEl.value = newString;
|
533
|
+
this.selectSingleColumn();
|
534
|
+
return;
|
535
|
+
}
|
536
|
+
/**
|
537
|
+
* Checking the value of the input gets priority
|
538
|
+
* first. For example, if the value of the input
|
539
|
+
* is "1" and we entered "2", then the complete value
|
540
|
+
* is "12" and we should select hour 12.
|
541
|
+
*
|
542
|
+
* Regex removes any leading zeros from values like "02".
|
543
|
+
*/
|
544
|
+
const findItemFromCompleteValue = values.find(({ text }) => text.replace(/^0+/, '') === inputEl.value);
|
545
|
+
if (findItemFromCompleteValue) {
|
546
|
+
inputModeColumn.value = findItemFromCompleteValue.value;
|
547
|
+
return;
|
548
|
+
}
|
549
|
+
/**
|
550
|
+
* If we typed "56" to get minute 56, then typed "7",
|
551
|
+
* we should select "07" as "567" is not a valid minute.
|
552
|
+
*/
|
553
|
+
if (inputEl.value.length === 2) {
|
554
|
+
const changedCharacter = inputEl.value.substring(inputEl.value.length - 1);
|
555
|
+
inputEl.value = changedCharacter;
|
556
|
+
this.selectSingleColumn();
|
557
|
+
}
|
558
|
+
};
|
559
|
+
/**
|
560
|
+
* Searches a list of column items for a particular
|
561
|
+
* value. This is currently used for numeric values.
|
562
|
+
* The zeroBehavior can be set to account for leading
|
563
|
+
* or trailing zeros when looking at the item text.
|
564
|
+
*/
|
565
|
+
this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
|
566
|
+
let item;
|
567
|
+
const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
|
568
|
+
item = colEl.items.find(({ text }) => text.replace(behavior, '') === value);
|
569
|
+
if (item) {
|
570
|
+
colEl.value = item.value;
|
571
|
+
}
|
572
|
+
};
|
573
|
+
this.selectMultiColumn = () => {
|
574
|
+
const { inputEl, el } = this;
|
575
|
+
if (!inputEl) {
|
576
|
+
return;
|
577
|
+
}
|
578
|
+
const numericPickers = Array.from(el.querySelectorAll('ion-picker-column-internal')).filter(col => col.numericInput);
|
579
|
+
const firstColumn = numericPickers[0];
|
580
|
+
const lastColumn = numericPickers[1];
|
581
|
+
let value = inputEl.value;
|
582
|
+
let minuteValue;
|
583
|
+
switch (value.length) {
|
584
|
+
case 1:
|
585
|
+
this.searchColumn(firstColumn, value);
|
586
|
+
break;
|
587
|
+
case 2:
|
588
|
+
/**
|
589
|
+
* If the first character is `0` or `1` it is
|
590
|
+
* possible that users are trying to type `09`
|
591
|
+
* or `11` into the hour field, so we should look
|
592
|
+
* at that first.
|
593
|
+
*/
|
594
|
+
const firstCharacter = inputEl.value.substring(0, 1);
|
595
|
+
value = (firstCharacter === '0' || firstCharacter === '1') ? inputEl.value : firstCharacter;
|
596
|
+
this.searchColumn(firstColumn, value);
|
597
|
+
/**
|
598
|
+
* If only checked the first value,
|
599
|
+
* we can check the second value
|
600
|
+
* for a match in the minutes column
|
601
|
+
*/
|
602
|
+
if (value.length === 1) {
|
603
|
+
minuteValue = inputEl.value.substring(inputEl.value.length - 1);
|
604
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
605
|
+
}
|
606
|
+
break;
|
607
|
+
case 3:
|
608
|
+
/**
|
609
|
+
* If the first character is `0` or `1` it is
|
610
|
+
* possible that users are trying to type `09`
|
611
|
+
* or `11` into the hour field, so we should look
|
612
|
+
* at that first.
|
613
|
+
*/
|
614
|
+
const firstCharacterAgain = inputEl.value.substring(0, 1);
|
615
|
+
value = (firstCharacterAgain === '0' || firstCharacterAgain === '1') ? inputEl.value.substring(0, 2) : firstCharacterAgain;
|
616
|
+
this.searchColumn(firstColumn, value);
|
617
|
+
/**
|
618
|
+
* If only checked the first value,
|
619
|
+
* we can check the second value
|
620
|
+
* for a match in the minutes column
|
621
|
+
*/
|
622
|
+
minuteValue = (value.length === 1) ? inputEl.value.substring(1) : inputEl.value.substring(2);
|
623
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
624
|
+
break;
|
625
|
+
case 4:
|
626
|
+
/**
|
627
|
+
* If the first character is `0` or `1` it is
|
628
|
+
* possible that users are trying to type `09`
|
629
|
+
* or `11` into the hour field, so we should look
|
630
|
+
* at that first.
|
631
|
+
*/
|
632
|
+
const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
|
633
|
+
value = (firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1') ? inputEl.value.substring(0, 2) : firstCharacterAgainAgain;
|
634
|
+
this.searchColumn(firstColumn, value);
|
635
|
+
/**
|
636
|
+
* If only checked the first value,
|
637
|
+
* we can check the second value
|
638
|
+
* for a match in the minutes column
|
639
|
+
*/
|
640
|
+
const minuteValueAgain = (value.length === 1) ? inputEl.value.substring(1, inputEl.value.length) : inputEl.value.substring(2, inputEl.value.length);
|
641
|
+
this.searchColumn(lastColumn, minuteValueAgain, 'end');
|
642
|
+
break;
|
643
|
+
default:
|
644
|
+
const startIndex = inputEl.value.length - 4;
|
645
|
+
const newString = inputEl.value.substring(startIndex);
|
646
|
+
inputEl.value = newString;
|
647
|
+
this.selectMultiColumn();
|
648
|
+
break;
|
649
|
+
}
|
650
|
+
};
|
651
|
+
/**
|
652
|
+
* Searches the value of the active column
|
653
|
+
* to determine which value users are trying
|
654
|
+
* to select
|
655
|
+
*/
|
656
|
+
this.onInputChange = () => {
|
657
|
+
const { useInputMode, inputEl, inputModeColumn } = this;
|
658
|
+
if (!useInputMode || !inputEl) {
|
659
|
+
return;
|
660
|
+
}
|
661
|
+
if (inputModeColumn) {
|
662
|
+
this.selectSingleColumn();
|
663
|
+
}
|
664
|
+
else {
|
665
|
+
this.selectMultiColumn();
|
666
|
+
}
|
667
|
+
};
|
668
|
+
/**
|
669
|
+
* Emit ionInputModeChange. Picker columns
|
670
|
+
* listen for this event to determine whether
|
671
|
+
* or not their column is "active" for text input.
|
672
|
+
*/
|
673
|
+
this.emitInputModeChange = () => {
|
674
|
+
const { useInputMode, inputModeColumn } = this;
|
675
|
+
this.ionInputModeChange.emit({
|
676
|
+
useInputMode,
|
677
|
+
inputModeColumn
|
678
|
+
});
|
679
|
+
};
|
680
|
+
}
|
681
|
+
componentWillLoad() {
|
682
|
+
getElementRoot(this.el).addEventListener('focusin', this.onFocusIn);
|
683
|
+
getElementRoot(this.el).addEventListener('focusout', this.onFocusOut);
|
684
|
+
}
|
685
|
+
render() {
|
686
|
+
return (h(Host, { onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, h("input", { "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", ref: el => this.inputEl = el, onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { class: "picker-before" }), h("div", { class: "picker-after" }), h("div", { class: "picker-highlight", ref: el => this.highlightEl = el }), h("slot", null)));
|
687
|
+
}
|
688
|
+
get el() { return getElement(this); }
|
689
|
+
};
|
690
|
+
PickerInternal.style = {
|
691
|
+
ios: pickerInternalIosCss,
|
692
|
+
md: pickerInternalMdCss
|
693
|
+
};
|
694
|
+
|
695
|
+
export { PickerColumnInternal as ion_picker_column_internal, PickerInternal as ion_picker_internal };
|