@sparkle-learning/core 0.0.17 → 0.0.21
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-828eada2.js → PrivateRoute-cee9b061.js} +43 -44
- package/dist/cjs/{active-router-dca7573e.js → active-router-3bd7b540.js} +1 -1
- package/dist/cjs/{app-globals-bea78913.js → app-globals-98121d6d.js} +1 -1
- package/dist/cjs/{assets.service-5098e79c.js → assets.service-0c759d51.js} +2 -27
- package/dist/cjs/{httpService-6377985c.js → auth.store-aba3d22f.js} +31 -5
- package/dist/cjs/{button-active-1edcd24e.js → button-active-9456fb4d.js} +1 -1
- package/dist/cjs/compass-svg.cjs.entry.js +132 -0
- package/dist/cjs/context-consumer.cjs.entry.js +1 -1
- package/dist/cjs/course-select.cjs.entry.js +1 -1
- package/dist/cjs/environment-config.service-0e02b049.js +29 -0
- package/dist/cjs/facilitator.service-e1e2f719.js +94 -0
- package/dist/cjs/feed.service-518d18fd.js +5802 -0
- package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +86 -0
- package/dist/cjs/{icons-fc80a947.js → icons-a0fef92b.js} +2 -8
- package/dist/cjs/{index-123ceda0.js → index-58b3ee93.js} +3 -3
- package/dist/cjs/{index-786a6369.js → index-7bcd36a0.js} +1 -1
- package/dist/cjs/{index-56cc404a.js → index-fbf4d3bf.js} +2 -0
- package/dist/cjs/index.cjs.js +9 -8
- package/dist/cjs/index.es-6a9d5ef8.js +13834 -0
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +89 -0
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-badge.cjs.entry.js +2 -2
- package/dist/cjs/{ion-back-button_4.cjs.entry.js → ion-buttons_3.cjs.entry.js} +2 -83
- package/dist/cjs/ion-card-header.cjs.entry.js +2 -2
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +2 -2
- package/dist/cjs/ion-card-title.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/{ion-content.cjs.entry.js → ion-content_2.cjs.entry.js} +259 -2
- package/dist/cjs/ion-datetime.cjs.entry.js +3 -3
- package/dist/cjs/ion-fab-button.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-divider.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-options.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-sliding.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu.cjs.entry.js +3 -3
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ion-nav.cjs.entry.js +3 -3
- package/dist/cjs/ion-note.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker.cjs.entry.js +3 -3
- package/dist/cjs/ion-popover.cjs.entry.js +4 -4
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder-group.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ion-router-outlet.cjs.entry.js +3 -3
- package/dist/cjs/ion-router.cjs.entry.js +1 -1
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment.cjs.entry.js +2 -2
- package/dist/cjs/ion-select-popover.cjs.entry.js +3 -3
- package/dist/cjs/ion-select_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-slide.cjs.entry.js +2 -2
- package/dist/cjs/ion-slides.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab.cjs.entry.js +1 -1
- package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +1 -1
- package/dist/cjs/{ionic-global-57e21b7b.js → ionic-global-4930d319.js} +1 -1
- package/dist/cjs/{ios.transition-b6898b4e.js → ios.transition-6e1fd3d6.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-dcccb17e.js → md.transition-3652ad78.js} +2 -2
- package/dist/cjs/{menu-toggle-util-36785376.js → menu-toggle-util-a8fb4c56.js} +1 -1
- package/dist/cjs/{overlays-09ece60d.js → overlays-08a817ea.js} +1 -1
- package/dist/cjs/purify-9804ff8d.js +1355 -0
- package/dist/cjs/sparkle-animation-player.cjs.entry.js +1 -1
- 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 +4 -4
- package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +118 -0
- package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-feedback.cjs.entry.js +19 -6
- package/dist/cjs/sparkle-goal-form.cjs.entry.js +75 -34
- package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +2 -2
- 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 +92 -0
- 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 +4 -3
- package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-sidebar.cjs.entry.js +43 -0
- 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 +1 -1
- package/dist/cjs/{status-tap-18630b4c.js → status-tap-466a7c6a.js} +1 -1
- 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-93a3c3e1.js → student.service-41c7c78d.js} +17 -14
- package/dist/collection/assets/svg/profile.svg +2 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/compass-svg/compass-svg.css +15 -0
- package/dist/collection/components/compass-svg/compass-svg.js +156 -0
- package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +7 -0
- package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +110 -0
- package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +3 -0
- package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +214 -0
- package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +23 -12
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +3 -0
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +144 -0
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +14 -0
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +64 -0
- package/dist/collection/components/layout/facilitator/facilitator-page.css +13 -3
- package/dist/collection/components/layout/facilitator/facilitator-page.js +147 -24
- package/dist/collection/components/layout/facilitator/online-students/online-students.js +59 -2
- package/dist/collection/components/layout/page/page.js +93 -4
- package/dist/collection/components/layout/page/templates/index.js +2 -0
- package/dist/collection/components/layout/page/templates/pdf.js +8 -0
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +3 -3
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +98 -64
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +12 -29
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +23 -6
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +33 -0
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +37 -0
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +8 -8
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +15 -60
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +7 -7
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +3 -1
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +3 -3
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +30 -29
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +111 -11
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +3 -3
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +30 -64
- package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +10 -3
- package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +51 -11
- package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +11 -11
- package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +38 -8
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +3 -3
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +30 -27
- package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +16 -16
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +3 -3
- package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +3 -3
- package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +14 -1
- package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +39 -5
- package/dist/collection/components/sparkle-login/sparkle-login.js +3 -1
- package/dist/collection/components/sparkle-poll/sparkle-poll.css +3 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +3 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +3 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +3 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +3 -3
- package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +3 -3
- package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +3 -0
- package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +126 -0
- package/dist/collection/components/sparkle-root/sparkle-root.css +16 -0
- package/dist/collection/components/sparkle-root/sparkle-root.js +24 -1
- package/dist/collection/components/sparkle-signup/sparkle-signup.js +16 -12
- package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +13 -13
- package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +3 -3
- package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +54 -3
- package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +35 -8
- package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +11 -0
- package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +44 -0
- package/dist/collection/icons.js +1 -0
- package/dist/collection/models/class.model.js +5 -1
- package/dist/collection/models/facilitator-dashboard.model.js +5 -0
- package/dist/collection/services/account.service.js +42 -4
- package/dist/collection/services/appdata.service.js +60 -0
- package/dist/collection/services/auth/auth.service.js +34 -25
- package/dist/collection/services/environment/environment-config.js +4 -1
- package/dist/collection/services/facilitator.service.js +76 -0
- package/dist/collection/services/feed.service.js +43 -0
- package/dist/collection/services/httpService.js +16 -3
- package/dist/collection/services/media.service.js +29 -0
- package/dist/collection/services/signalR.service.js +85 -0
- package/dist/collection/services/student.service.js +8 -7
- package/dist/collection/stores/auth.store.js +2 -1
- package/dist/collection/stores/facilitator.store.js +11 -2
- package/dist/collection/stores/feed.store.js +3 -1
- package/dist/collection/stores/goal.store.js +2 -0
- package/dist/collection/stores/media.store.js +5 -0
- package/dist/collection/stores/signalR.store.js +6 -0
- package/dist/collection/stores/user.store.js +3 -1
- package/dist/collection/util.js +23 -1
- package/dist/collection/utils.js +0 -1
- package/dist/esm/{PrivateRoute-ff728f5b.js → PrivateRoute-9f0973bb.js} +41 -41
- package/dist/esm/{active-router-044bf79e.js → active-router-b3ae32c7.js} +1 -1
- package/dist/esm/{app-globals-d592451f.js → app-globals-6451faf3.js} +1 -1
- package/dist/esm/{assets.service-da511a45.js → assets.service-66e848b8.js} +2 -26
- package/dist/esm/{httpService-010551aa.js → auth.store-dd944bc2.js} +31 -6
- package/dist/esm/{button-active-32a41594.js → button-active-97535443.js} +1 -1
- package/dist/esm/compass-svg.entry.js +128 -0
- package/dist/esm/context-consumer.entry.js +1 -1
- package/dist/esm/course-select.entry.js +1 -1
- package/dist/esm/environment-config.service-2b5d692b.js +27 -0
- package/dist/esm/facilitator.service-cddb2feb.js +91 -0
- package/dist/esm/feed.service-0fda1e36.js +5787 -0
- package/dist/esm/header-mobile-collapse_60.entry.js +19 -0
- package/dist/esm/{icons-ba9ff8a9.js → icons-33e5804c.js} +3 -7
- package/dist/esm/{index-24b18689.js → index-55fc9f5e.js} +2 -1
- package/dist/esm/{index-243ec2f9.js → index-a94619f9.js} +3 -3
- package/dist/esm/{index-c539b2bc.js → index-dc09784f.js} +1 -1
- package/dist/esm/index.es-8ad3b6a1.js +13748 -0
- package/dist/esm/index.js +7 -6
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +85 -0
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-badge.entry.js +2 -2
- package/dist/esm/{ion-back-button_4.entry.js → ion-buttons_3.entry.js} +4 -84
- package/dist/esm/ion-card-header.entry.js +2 -2
- package/dist/esm/ion-card-subtitle.entry.js +2 -2
- package/dist/esm/ion-card-title.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/{ion-content.entry.js → ion-content_2.entry.js} +259 -3
- package/dist/esm/ion-datetime.entry.js +3 -3
- package/dist/esm/ion-fab-button.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll-content.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/ion-item-divider.entry.js +2 -2
- package/dist/esm/ion-item-group.entry.js +2 -2
- package/dist/esm/ion-item-option.entry.js +2 -2
- package/dist/esm/ion-item-options.entry.js +2 -2
- package/dist/esm/ion-item-sliding.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu-button.entry.js +4 -4
- package/dist/esm/ion-menu-toggle.entry.js +4 -4
- package/dist/esm/ion-menu.entry.js +3 -3
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav-link.entry.js +1 -1
- package/dist/esm/ion-nav.entry.js +3 -3
- package/dist/esm/ion-note.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +2 -2
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-refresher-content.entry.js +2 -2
- package/dist/esm/ion-refresher.entry.js +2 -2
- package/dist/esm/ion-reorder-group.entry.js +2 -2
- package/dist/esm/ion-reorder.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ion-router-outlet.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/ion-segment.entry.js +2 -2
- package/dist/esm/ion-select-popover.entry.js +3 -3
- package/dist/esm/ion-select_2.entry.js +3 -3
- package/dist/esm/ion-skeleton-text.entry.js +2 -2
- package/dist/esm/ion-slide.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar.entry.js +2 -2
- package/dist/esm/ion-tab-button.entry.js +2 -2
- package/dist/esm/ion-tab.entry.js +1 -1
- package/dist/esm/ion-tabs.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-thumbnail.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/ion-virtual-scroll.entry.js +1 -1
- package/dist/esm/{ionic-global-fddd88d0.js → ionic-global-1f9287cc.js} +1 -1
- package/dist/esm/{ios.transition-1ffb59e3.js → ios.transition-d01abefd.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-18b7b80d.js → md.transition-245ffa55.js} +2 -2
- package/dist/esm/{menu-toggle-util-729c91ad.js → menu-toggle-util-fe83fcf5.js} +1 -1
- package/dist/esm/{overlays-8606ae17.js → overlays-8363621c.js} +2 -2
- package/dist/esm/purify-76634fc8.js +1353 -0
- package/dist/esm/sparkle-animation-player.entry.js +1 -1
- 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 +4 -4
- package/dist/esm/sparkle-emoji.entry.js +1 -1
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +114 -0
- package/dist/esm/sparkle-feed-post.entry.js +1 -1
- package/dist/esm/sparkle-feedback.entry.js +19 -6
- package/dist/esm/sparkle-goal-form.entry.js +73 -32
- package/dist/esm/sparkle-gww-comment-list.entry.js +2 -2
- 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 +88 -0
- 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 +3 -2
- package/dist/esm/sparkle-select.entry.js +1 -1
- package/dist/esm/sparkle-sidebar.entry.js +39 -0
- 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 +1 -1
- package/dist/esm/{status-tap-83804717.js → status-tap-9221cd79.js} +1 -1
- 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-a99d0248.js → student.service-c36c5a75.js} +12 -9
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/{p-7dbe06d4.entry.js → p-016bf847.entry.js} +1 -1
- package/dist/sparkle-core/{p-5f6e7530.entry.js → p-019d9d02.entry.js} +1 -1
- package/dist/sparkle-core/p-03eb2164.js +1 -0
- package/dist/sparkle-core/{p-c94a7e74.entry.js → p-03fd27d0.entry.js} +1 -1
- package/dist/sparkle-core/p-07018d29.js +1 -0
- package/dist/sparkle-core/p-083d57a6.entry.js +1 -0
- package/dist/sparkle-core/p-090f2624.js +1 -0
- package/dist/sparkle-core/{p-db5369a3.entry.js → p-09d43bee.entry.js} +1 -1
- package/dist/sparkle-core/{p-010fc9dd.entry.js → p-0bd3e81f.entry.js} +1 -1
- package/dist/sparkle-core/{p-9c3e864e.js → p-0e1c7c8c.js} +1 -1
- package/dist/sparkle-core/{p-b0f4601a.entry.js → p-0efbc0b3.entry.js} +1 -1
- package/dist/sparkle-core/{p-cf4068ca.entry.js → p-13b0cdfc.entry.js} +1 -1
- package/dist/sparkle-core/{p-b8da1d60.entry.js → p-13c9bf3a.entry.js} +1 -1
- package/dist/sparkle-core/{p-5ef558e2.entry.js → p-151afa9e.entry.js} +1 -1
- package/dist/sparkle-core/{p-a3115b74.entry.js → p-15d68269.entry.js} +1 -1
- package/dist/sparkle-core/p-17507402.entry.js +1 -0
- package/dist/sparkle-core/{p-f7fe74de.entry.js → p-1bf8bed6.entry.js} +1 -1
- package/dist/sparkle-core/p-1ca4bf1d.entry.js +1 -0
- package/dist/sparkle-core/{p-a0be4cda.entry.js → p-1e866c41.entry.js} +1 -1
- package/dist/sparkle-core/p-22926eed.entry.js +1 -0
- package/dist/sparkle-core/{p-d9f138ff.entry.js → p-2474bf60.entry.js} +1 -1
- package/dist/sparkle-core/{p-c92e20cf.entry.js → p-25bbf9b4.entry.js} +1 -1
- package/dist/sparkle-core/p-2a45b732.js +1 -0
- package/dist/sparkle-core/{p-ec5f3b00.entry.js → p-2abf4d37.entry.js} +1 -1
- package/dist/sparkle-core/{p-380dc0b7.entry.js → p-2c5edb9f.entry.js} +1 -1
- package/dist/sparkle-core/p-30b641a4.entry.js +1 -0
- package/dist/sparkle-core/{p-e1d9420b.entry.js → p-359422b6.entry.js} +1 -1
- package/dist/sparkle-core/{p-dec1556a.entry.js → p-37bfb548.entry.js} +1 -1
- package/dist/sparkle-core/{p-c0f92ba3.entry.js → p-3a29a75b.entry.js} +1 -1
- package/dist/sparkle-core/{p-0de00e5e.entry.js → p-3bb55510.entry.js} +1 -1
- package/dist/sparkle-core/p-3be0a218.js +1 -0
- package/dist/sparkle-core/{p-05180844.entry.js → p-3cd28c60.entry.js} +1 -1
- package/dist/sparkle-core/{p-f3b47828.entry.js → p-3f5d7a08.entry.js} +1 -1
- package/dist/sparkle-core/p-40db85ac.entry.js +1 -0
- package/dist/sparkle-core/{p-4c3378e6.entry.js → p-447163be.entry.js} +1 -1
- package/dist/sparkle-core/{p-3fa3bad0.entry.js → p-49265a8e.entry.js} +1 -1
- package/dist/sparkle-core/{p-105a015d.entry.js → p-4950f841.entry.js} +1 -1
- package/dist/sparkle-core/p-4d8cb365.entry.js +1 -0
- package/dist/sparkle-core/{p-6025bf4c.entry.js → p-4e28ca37.entry.js} +1 -1
- package/dist/sparkle-core/{p-0f5def84.entry.js → p-5073899e.entry.js} +1 -1
- package/dist/sparkle-core/p-52355989.entry.js +1 -0
- package/dist/sparkle-core/{p-a2d7538f.entry.js → p-581ca370.entry.js} +1 -1
- package/dist/sparkle-core/{p-0b9b51ad.entry.js → p-5b366c20.entry.js} +1 -1
- package/dist/sparkle-core/{p-2f7aca1a.entry.js → p-5dce20b9.entry.js} +1 -1
- package/dist/sparkle-core/{p-364c12d7.entry.js → p-6006beec.entry.js} +1 -1
- package/dist/sparkle-core/{p-4e1f43b3.entry.js → p-600d04fc.entry.js} +1 -1
- package/dist/sparkle-core/{p-be4c1900.entry.js → p-60828739.entry.js} +1 -1
- package/dist/sparkle-core/{p-dedb1e25.entry.js → p-6112b180.entry.js} +1 -1
- package/dist/sparkle-core/p-660fccf6.js +1 -0
- package/dist/sparkle-core/{p-1865fef1.entry.js → p-66e3bd1c.entry.js} +1 -1
- package/dist/sparkle-core/{p-90e2a1a4.entry.js → p-66eb6b7a.entry.js} +1 -1
- package/dist/sparkle-core/p-67ddec3f.entry.js +1 -0
- package/dist/sparkle-core/p-68cb7d41.entry.js +1 -0
- package/dist/sparkle-core/{p-31bfcaa8.entry.js → p-68f3c93d.entry.js} +1 -1
- package/dist/sparkle-core/p-69cd49de.js +1 -0
- package/dist/sparkle-core/{p-be2f0921.js → p-6d506f4e.js} +1 -1
- package/dist/sparkle-core/{p-a32fd85b.entry.js → p-6edbdde5.entry.js} +1 -1
- package/dist/sparkle-core/p-6f0ecbe3.js +1 -0
- package/dist/sparkle-core/{p-b3563859.entry.js → p-73a646fb.entry.js} +1 -1
- package/dist/sparkle-core/{p-c9ada4d9.js → p-765b8593.js} +1 -1
- package/dist/sparkle-core/{p-fa952096.js → p-770128c8.js} +1 -1
- package/dist/sparkle-core/{p-355ace68.entry.js → p-7b37d523.entry.js} +1 -1
- package/dist/sparkle-core/{p-950a716b.entry.js → p-7d83d006.entry.js} +1 -1
- package/dist/sparkle-core/p-7f3d5344.js +1 -0
- package/dist/sparkle-core/{p-6ac166bf.entry.js → p-81651f26.entry.js} +1 -1
- package/dist/sparkle-core/{p-163a6f39.entry.js → p-85d31769.entry.js} +1 -1
- package/dist/sparkle-core/{p-ce4abe36.entry.js → p-86148067.entry.js} +1 -1
- package/dist/sparkle-core/{p-c590df76.entry.js → p-8b5bc1d6.entry.js} +1 -1
- package/dist/sparkle-core/{p-d80f9e60.entry.js → p-8c3ee44c.entry.js} +1 -1
- package/dist/sparkle-core/{p-5479a3af.entry.js → p-9007a06b.entry.js} +1 -1
- package/dist/sparkle-core/{p-7776c809.entry.js → p-90482861.entry.js} +1 -1
- package/dist/sparkle-core/{p-0962db66.entry.js → p-92d42c10.entry.js} +1 -1
- package/dist/sparkle-core/p-9a443f51.js +1 -0
- package/dist/sparkle-core/{p-76613f4e.entry.js → p-9ca56f5d.entry.js} +1 -1
- package/dist/sparkle-core/{p-5d0fe13c.entry.js → p-a061537e.entry.js} +1 -1
- package/dist/sparkle-core/{p-f3d79061.entry.js → p-a250e2ae.entry.js} +1 -1
- package/dist/sparkle-core/{p-a78910ca.entry.js → p-abe2676a.entry.js} +1 -1
- package/dist/sparkle-core/{p-dac72f8f.entry.js → p-ac5e5308.entry.js} +1 -1
- package/dist/sparkle-core/{p-52c98e23.entry.js → p-afbaad64.entry.js} +1 -1
- package/dist/sparkle-core/p-b080c1e3.entry.js +1 -0
- package/dist/sparkle-core/p-b226f54d.js +1 -0
- package/dist/sparkle-core/p-b2d4840f.js +3 -0
- package/dist/sparkle-core/{p-7cf984f4.entry.js → p-bac45a26.entry.js} +1 -1
- package/dist/sparkle-core/p-bbe5977b.entry.js +1 -0
- package/dist/sparkle-core/p-bc568dcb.js +1 -0
- package/dist/sparkle-core/p-bccd9036.entry.js +1 -0
- package/dist/sparkle-core/{p-47c18479.entry.js → p-c163c16d.entry.js} +1 -1
- package/dist/sparkle-core/{p-a1227663.entry.js → p-c3166584.entry.js} +1 -1
- package/dist/sparkle-core/{p-1f06b38f.entry.js → p-c34269ae.entry.js} +1 -1
- package/dist/sparkle-core/{p-1cbcfe63.js → p-c466ee32.js} +1 -1
- package/dist/sparkle-core/{p-13cf6a32.entry.js → p-c6710592.entry.js} +1 -1
- package/dist/sparkle-core/{p-1f20b217.entry.js → p-c7022391.entry.js} +1 -1
- package/dist/sparkle-core/{p-2734a99d.entry.js → p-c70b9765.entry.js} +1 -1
- package/dist/sparkle-core/{p-50e824ef.entry.js → p-c82b05e0.entry.js} +1 -1
- package/dist/sparkle-core/{p-3d200504.entry.js → p-cf2332bb.entry.js} +1 -1
- package/dist/sparkle-core/{p-268eb6c0.entry.js → p-d069b834.entry.js} +1 -1
- package/dist/sparkle-core/{p-fec7a97a.js → p-d4ad796c.js} +1 -1
- package/dist/sparkle-core/{p-fa192cf5.entry.js → p-d4d9aa4a.entry.js} +1 -1
- package/dist/sparkle-core/p-d5023db0.entry.js +1 -0
- package/dist/sparkle-core/p-d6152660.entry.js +1 -0
- package/dist/sparkle-core/{p-3d23a42a.js → p-d63406d8.js} +1 -1
- package/dist/sparkle-core/{p-63915a84.entry.js → p-dba672d5.entry.js} +1 -1
- package/dist/sparkle-core/{p-20be4996.entry.js → p-dd73d01a.entry.js} +1 -1
- package/dist/sparkle-core/p-de33872d.entry.js +1 -0
- package/dist/sparkle-core/p-dee2128a.entry.js +1 -0
- package/dist/sparkle-core/{p-2b5cc8a6.entry.js → p-df07e132.entry.js} +1 -1
- package/dist/sparkle-core/p-e5d5aaa5.js +1 -0
- package/dist/sparkle-core/{p-511b5347.entry.js → p-e72c6d87.entry.js} +1 -1
- package/dist/sparkle-core/{p-bcf3d05a.entry.js → p-e818b11d.entry.js} +1 -1
- package/dist/sparkle-core/{p-7dd253f8.entry.js → p-e8df6ea6.entry.js} +1 -1
- package/dist/sparkle-core/{p-4c7d0f6b.entry.js → p-e975924a.entry.js} +1 -1
- package/dist/sparkle-core/{p-46757cdc.entry.js → p-eb56aa20.entry.js} +1 -1
- package/dist/sparkle-core/p-ec2e029e.js +483 -0
- package/dist/sparkle-core/{p-97e03cb4.js → p-ef2a2172.js} +1 -1
- package/dist/sparkle-core/p-f1a4ab33.entry.js +1 -0
- package/dist/sparkle-core/p-f43ac631.entry.js +1 -0
- package/dist/sparkle-core/{p-495e321e.entry.js → p-f72a6e6d.entry.js} +1 -1
- package/dist/sparkle-core/{p-14a861e1.entry.js → p-f9143c5d.entry.js} +1 -1
- package/dist/sparkle-core/{p-8d1ec1bb.entry.js → p-fd62283e.entry.js} +1 -1
- package/dist/sparkle-core/{p-396c0198.entry.js → p-fef71e0e.entry.js} +1 -1
- package/dist/sparkle-core/sparkle-core.css +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/dist/types/components/compass-svg/compass-svg.d.ts +34 -0
- package/dist/types/components/layout/facilitator/export-lessons/export-lessons.d.ts +16 -0
- package/dist/types/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.d.ts +22 -0
- package/dist/types/components/layout/facilitator/facilitator-header/facilitator-header.d.ts +1 -0
- package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.d.ts +24 -0
- package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes.d.ts +9 -0
- package/dist/types/components/layout/facilitator/facilitator-page.d.ts +19 -2
- package/dist/types/components/layout/facilitator/online-students/online-students.d.ts +6 -0
- package/dist/types/components/layout/page/page.d.ts +8 -0
- package/dist/types/components/layout/page/templates/index.d.ts +1 -0
- package/dist/types/components/layout/page/templates/pdf.d.ts +2 -0
- package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.d.ts +6 -5
- package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.d.ts +1 -0
- package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.d.ts +4 -0
- package/dist/types/components/mini-apps/sparkle-goals/sparkle-goals.d.ts +3 -3
- package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.d.ts +9 -2
- package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww.d.ts +4 -2
- package/dist/types/components/mini-apps/sparkle-health/sparkle-health.d.ts +4 -1
- package/dist/types/components/mini-apps/sparkle-mood/sparkle-mood.d.ts +3 -0
- package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +6 -4
- package/dist/types/components/sparkle-forgot-password/sparkle-forgot-password.d.ts +3 -0
- package/dist/types/components/sparkle-reset-password/sparkle-reset-password.d.ts +22 -0
- package/dist/types/components/sparkle-root/sparkle-root.d.ts +4 -0
- package/dist/types/components/sparkle-signup/sparkle-signup.d.ts +1 -1
- package/dist/types/components/sparkle-user-profile/sparkle-user-profile.d.ts +4 -0
- package/dist/types/components/sparkle-validation-error/sparkle-validation-error.d.ts +7 -0
- package/dist/types/components.d.ts +143 -6
- package/dist/types/models/api.model.d.ts +8 -0
- package/dist/types/models/class.model.d.ts +59 -6
- package/dist/types/models/facilitator-dashboard.model.d.ts +61 -0
- package/dist/types/models/goal.model.d.ts +3 -2
- package/dist/types/services/account.service.d.ts +11 -2
- package/dist/types/services/appdata.service.d.ts +13 -0
- package/dist/types/services/facilitator.service.d.ts +22 -0
- package/dist/types/services/feed.service.d.ts +10 -0
- package/dist/types/services/httpService.d.ts +1 -0
- package/dist/types/services/media.service.d.ts +8 -0
- package/dist/types/services/signalR.service.d.ts +10 -0
- package/dist/types/services/student.service.d.ts +1 -1
- package/dist/types/stores/auth.store.d.ts +1 -0
- package/dist/types/stores/facilitator.store.d.ts +11 -2
- package/dist/types/stores/feed.store.d.ts +3 -1
- package/dist/types/stores/goal.store.d.ts +4 -1
- package/dist/types/stores/media.store.d.ts +8 -0
- package/dist/types/stores/signalR.store.d.ts +10 -0
- package/dist/types/stores/user.store.d.ts +3 -1
- package/dist/types/util.d.ts +11 -0
- package/package.json +7 -3
- package/dist/cjs/header-mobile-collapse_51.cjs.entry.js +0 -5285
- package/dist/cjs/ion-card-content.cjs.entry.js +0 -30
- package/dist/cjs/ion-card.cjs.entry.js +0 -70
- package/dist/cjs/ion-header.cjs.entry.js +0 -264
- package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
- package/dist/cjs/sparkle-page-footer.cjs.entry.js +0 -27
- package/dist/cjs/sparkle-pagination.cjs.entry.js +0 -31
- package/dist/cjs/util-dd1e6ff1.js +0 -23
- package/dist/collection/assets/lib/sparkle.js +0 -524
- package/dist/collection/assets/lib/sparkle.signalr-client.js +0 -135
- package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1.js +0 -2884
- package/dist/esm/header-mobile-collapse_51.entry.js +0 -5231
- package/dist/esm/ion-card-content.entry.js +0 -26
- package/dist/esm/ion-card.entry.js +0 -66
- package/dist/esm/ion-header.entry.js +0 -260
- package/dist/esm/ion-spinner.entry.js +0 -60
- package/dist/esm/sparkle-page-footer.entry.js +0 -23
- package/dist/esm/sparkle-pagination.entry.js +0 -27
- package/dist/esm/util-0e88110d.js +0 -17
- package/dist/sparkle-core/p-05928d94.js +0 -1
- package/dist/sparkle-core/p-0986aad3.entry.js +0 -1
- package/dist/sparkle-core/p-12e5f5bf.entry.js +0 -1
- package/dist/sparkle-core/p-14a9aad3.js +0 -1
- package/dist/sparkle-core/p-1b5d4ef9.js +0 -1
- package/dist/sparkle-core/p-1bd160a6.entry.js +0 -1
- package/dist/sparkle-core/p-1e4381e5.entry.js +0 -1
- package/dist/sparkle-core/p-1f0bcf05.entry.js +0 -1
- package/dist/sparkle-core/p-22ae16f5.entry.js +0 -1
- package/dist/sparkle-core/p-57076f68.entry.js +0 -1
- package/dist/sparkle-core/p-5766d1d6.js +0 -1
- package/dist/sparkle-core/p-58ede27f.js +0 -1
- package/dist/sparkle-core/p-5c36d43b.entry.js +0 -1
- package/dist/sparkle-core/p-5c4eb08a.entry.js +0 -1
- package/dist/sparkle-core/p-5dd83ae8.entry.js +0 -1
- package/dist/sparkle-core/p-68c1261b.js +0 -1
- package/dist/sparkle-core/p-70a02fac.entry.js +0 -1
- package/dist/sparkle-core/p-8a3f8ce0.entry.js +0 -1
- package/dist/sparkle-core/p-9563bf6c.js +0 -1
- package/dist/sparkle-core/p-a220da33.entry.js +0 -1
- package/dist/sparkle-core/p-ad765e98.entry.js +0 -1
- package/dist/sparkle-core/p-b735f189.js +0 -1
- package/dist/sparkle-core/p-cb119ac9.entry.js +0 -1
- package/dist/sparkle-core/p-cee6f4ba.entry.js +0 -1
- package/dist/sparkle-core/p-d6ccecb6.js +0 -1
- package/dist/sparkle-core/p-e72084e9.entry.js +0 -1
- package/dist/sparkle-core/p-e8f81287.entry.js +0 -1
- package/dist/sparkle-core/p-f3a69821.entry.js +0 -1
- package/dist/sparkle-core/p-f5af344e.entry.js +0 -1
- package/dist/sparkle-core/p-fbbfa021.js +0 -1
@@ -1,26 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-24b18689.js';
|
2
|
-
import { g as getIonMode } from './ionic-global-fddd88d0.js';
|
3
|
-
|
4
|
-
const cardContentIosCss = "ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}";
|
5
|
-
|
6
|
-
const cardContentMdCss = "ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}";
|
7
|
-
|
8
|
-
const CardContent = class {
|
9
|
-
constructor(hostRef) {
|
10
|
-
registerInstance(this, hostRef);
|
11
|
-
}
|
12
|
-
render() {
|
13
|
-
const mode = getIonMode(this);
|
14
|
-
return (h(Host, { class: {
|
15
|
-
[mode]: true,
|
16
|
-
// Used internally for styling
|
17
|
-
[`card-content-${mode}`]: true
|
18
|
-
} }));
|
19
|
-
}
|
20
|
-
};
|
21
|
-
CardContent.style = {
|
22
|
-
ios: cardContentIosCss,
|
23
|
-
md: cardContentMdCss
|
24
|
-
};
|
25
|
-
|
26
|
-
export { CardContent as ion_card_content };
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-24b18689.js';
|
2
|
-
import { g as getIonMode } from './ionic-global-fddd88d0.js';
|
3
|
-
import { o as openURL, c as createColorClasses } from './theme-12606872.js';
|
4
|
-
|
5
|
-
const cardIosCss = ":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transform:translateZ(0);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}";
|
6
|
-
|
7
|
-
const cardMdCss = ":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}";
|
8
|
-
|
9
|
-
const Card = class {
|
10
|
-
constructor(hostRef) {
|
11
|
-
registerInstance(this, hostRef);
|
12
|
-
/**
|
13
|
-
* If `true`, a button tag will be rendered and the card will be tappable.
|
14
|
-
*/
|
15
|
-
this.button = false;
|
16
|
-
/**
|
17
|
-
* The type of the button. Only used when an `onclick` or `button` property is present.
|
18
|
-
*/
|
19
|
-
this.type = 'button';
|
20
|
-
/**
|
21
|
-
* If `true`, the user cannot interact with the card.
|
22
|
-
*/
|
23
|
-
this.disabled = false;
|
24
|
-
/**
|
25
|
-
* When using a router, it specifies the transition direction when navigating to
|
26
|
-
* another page using `href`.
|
27
|
-
*/
|
28
|
-
this.routerDirection = 'forward';
|
29
|
-
}
|
30
|
-
isClickable() {
|
31
|
-
return (this.href !== undefined || this.button);
|
32
|
-
}
|
33
|
-
renderCard(mode) {
|
34
|
-
const clickable = this.isClickable();
|
35
|
-
if (!clickable) {
|
36
|
-
return [
|
37
|
-
h("slot", null)
|
38
|
-
];
|
39
|
-
}
|
40
|
-
const { href, routerAnimation, routerDirection } = this;
|
41
|
-
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
42
|
-
const attrs = (TagType === 'button')
|
43
|
-
? { type: this.type }
|
44
|
-
: {
|
45
|
-
download: this.download,
|
46
|
-
href: this.href,
|
47
|
-
rel: this.rel,
|
48
|
-
target: this.target
|
49
|
-
};
|
50
|
-
return (h(TagType, Object.assign({}, attrs, { class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }), h("slot", null), clickable && mode === 'md' && h("ion-ripple-effect", null)));
|
51
|
-
}
|
52
|
-
render() {
|
53
|
-
const mode = getIonMode(this);
|
54
|
-
return (h(Host, { class: createColorClasses(this.color, {
|
55
|
-
[mode]: true,
|
56
|
-
'card-disabled': this.disabled,
|
57
|
-
'ion-activatable': this.isClickable()
|
58
|
-
}) }, this.renderCard(mode)));
|
59
|
-
}
|
60
|
-
};
|
61
|
-
Card.style = {
|
62
|
-
ios: cardIosCss,
|
63
|
-
md: cardMdCss
|
64
|
-
};
|
65
|
-
|
66
|
-
export { Card as ion_card };
|
@@ -1,260 +0,0 @@
|
|
1
|
-
import { i as readTask, w as writeTask, r as registerInstance, h, H as Host, d as getElement } from './index-24b18689.js';
|
2
|
-
import { g as getIonMode } from './ionic-global-fddd88d0.js';
|
3
|
-
import { j as clamp } from './helpers-e7f66b2b.js';
|
4
|
-
|
5
|
-
const TRANSITION = 'all 0.2s ease-in-out';
|
6
|
-
const cloneElement = (tagName) => {
|
7
|
-
const getCachedEl = document.querySelector(`${tagName}.ion-cloned-element`);
|
8
|
-
if (getCachedEl !== null) {
|
9
|
-
return getCachedEl;
|
10
|
-
}
|
11
|
-
const clonedEl = document.createElement(tagName);
|
12
|
-
clonedEl.classList.add('ion-cloned-element');
|
13
|
-
clonedEl.style.setProperty('display', 'none');
|
14
|
-
document.body.appendChild(clonedEl);
|
15
|
-
return clonedEl;
|
16
|
-
};
|
17
|
-
const createHeaderIndex = (headerEl) => {
|
18
|
-
if (!headerEl) {
|
19
|
-
return;
|
20
|
-
}
|
21
|
-
const toolbars = headerEl.querySelectorAll('ion-toolbar');
|
22
|
-
return {
|
23
|
-
el: headerEl,
|
24
|
-
toolbars: Array.from(toolbars).map((toolbar) => {
|
25
|
-
const ionTitleEl = toolbar.querySelector('ion-title');
|
26
|
-
return {
|
27
|
-
el: toolbar,
|
28
|
-
background: toolbar.shadowRoot.querySelector('.toolbar-background'),
|
29
|
-
ionTitleEl,
|
30
|
-
innerTitleEl: (ionTitleEl) ? ionTitleEl.shadowRoot.querySelector('.toolbar-title') : null,
|
31
|
-
ionButtonsEl: Array.from(toolbar.querySelectorAll('ion-buttons')) || []
|
32
|
-
};
|
33
|
-
}) || []
|
34
|
-
};
|
35
|
-
};
|
36
|
-
const handleContentScroll = (scrollEl, scrollHeaderIndex, contentEl) => {
|
37
|
-
readTask(() => {
|
38
|
-
const scrollTop = scrollEl.scrollTop;
|
39
|
-
const scale = clamp(1, 1 + (-scrollTop / 500), 1.1);
|
40
|
-
// Native refresher should not cause titles to scale
|
41
|
-
const nativeRefresher = contentEl.querySelector('ion-refresher.refresher-native');
|
42
|
-
if (nativeRefresher === null) {
|
43
|
-
writeTask(() => {
|
44
|
-
scaleLargeTitles(scrollHeaderIndex.toolbars, scale);
|
45
|
-
});
|
46
|
-
}
|
47
|
-
});
|
48
|
-
};
|
49
|
-
const setToolbarBackgroundOpacity = (toolbar, opacity) => {
|
50
|
-
if (opacity === undefined) {
|
51
|
-
toolbar.background.style.removeProperty('--opacity');
|
52
|
-
}
|
53
|
-
else {
|
54
|
-
toolbar.background.style.setProperty('--opacity', opacity.toString());
|
55
|
-
}
|
56
|
-
};
|
57
|
-
const handleToolbarBorderIntersection = (ev, mainHeaderIndex) => {
|
58
|
-
if (!ev[0].isIntersecting) {
|
59
|
-
return;
|
60
|
-
}
|
61
|
-
/**
|
62
|
-
* There is a bug in Safari where overflow scrolling on a non-body element
|
63
|
-
* does not always reset the scrollTop position to 0 when letting go. It will
|
64
|
-
* set to 1 once the rubber band effect has ended. This causes the background to
|
65
|
-
* appear slightly on certain app setups.
|
66
|
-
*/
|
67
|
-
const scale = (ev[0].intersectionRatio > 0.9) ? 0 : ((1 - ev[0].intersectionRatio) * 100) / 75;
|
68
|
-
mainHeaderIndex.toolbars.forEach(toolbar => {
|
69
|
-
setToolbarBackgroundOpacity(toolbar, (scale === 1) ? undefined : scale);
|
70
|
-
});
|
71
|
-
};
|
72
|
-
/**
|
73
|
-
* If toolbars are intersecting, hide the scrollable toolbar content
|
74
|
-
* and show the primary toolbar content. If the toolbars are not intersecting,
|
75
|
-
* hide the primary toolbar content and show the scrollable toolbar content
|
76
|
-
*/
|
77
|
-
const handleToolbarIntersection = (ev, mainHeaderIndex, scrollHeaderIndex) => {
|
78
|
-
writeTask(() => {
|
79
|
-
handleToolbarBorderIntersection(ev, mainHeaderIndex);
|
80
|
-
const event = ev[0];
|
81
|
-
const intersection = event.intersectionRect;
|
82
|
-
const intersectionArea = intersection.width * intersection.height;
|
83
|
-
const rootArea = event.rootBounds.width * event.rootBounds.height;
|
84
|
-
const isPageHidden = intersectionArea === 0 && rootArea === 0;
|
85
|
-
const leftDiff = Math.abs(intersection.left - event.boundingClientRect.left);
|
86
|
-
const rightDiff = Math.abs(intersection.right - event.boundingClientRect.right);
|
87
|
-
const isPageTransitioning = intersectionArea > 0 && (leftDiff >= 5 || rightDiff >= 5);
|
88
|
-
if (isPageHidden || isPageTransitioning) {
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
if (event.isIntersecting) {
|
92
|
-
setHeaderActive(mainHeaderIndex, false);
|
93
|
-
setHeaderActive(scrollHeaderIndex);
|
94
|
-
}
|
95
|
-
else {
|
96
|
-
/**
|
97
|
-
* There is a bug with IntersectionObserver on Safari
|
98
|
-
* where `event.isIntersecting === false` when cancelling
|
99
|
-
* a swipe to go back gesture. Checking the intersection
|
100
|
-
* x, y, width, and height provides a workaround. This bug
|
101
|
-
* does not happen when using Safari + Web Animations,
|
102
|
-
* only Safari + CSS Animations.
|
103
|
-
*/
|
104
|
-
const hasValidIntersection = (intersection.x === 0 && intersection.y === 0) || (intersection.width !== 0 && intersection.height !== 0);
|
105
|
-
if (hasValidIntersection) {
|
106
|
-
setHeaderActive(mainHeaderIndex);
|
107
|
-
setHeaderActive(scrollHeaderIndex, false);
|
108
|
-
setToolbarBackgroundOpacity(mainHeaderIndex.toolbars[0]);
|
109
|
-
}
|
110
|
-
}
|
111
|
-
});
|
112
|
-
};
|
113
|
-
const setHeaderActive = (headerIndex, active = true) => {
|
114
|
-
if (active) {
|
115
|
-
headerIndex.el.classList.remove('header-collapse-condense-inactive');
|
116
|
-
}
|
117
|
-
else {
|
118
|
-
headerIndex.el.classList.add('header-collapse-condense-inactive');
|
119
|
-
}
|
120
|
-
};
|
121
|
-
const scaleLargeTitles = (toolbars = [], scale = 1, transition = false) => {
|
122
|
-
toolbars.forEach(toolbar => {
|
123
|
-
const ionTitle = toolbar.ionTitleEl;
|
124
|
-
const titleDiv = toolbar.innerTitleEl;
|
125
|
-
if (!ionTitle || ionTitle.size !== 'large') {
|
126
|
-
return;
|
127
|
-
}
|
128
|
-
titleDiv.style.transition = (transition) ? TRANSITION : '';
|
129
|
-
titleDiv.style.transform = `scale3d(${scale}, ${scale}, 1)`;
|
130
|
-
});
|
131
|
-
};
|
132
|
-
|
133
|
-
const headerIosCss = "ion-header{display:block;position:relative;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports (backdrop-filter: blur(0)){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:7px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";
|
134
|
-
|
135
|
-
const headerMdCss = "ion-header{display:block;position:relative;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md::after{left:0;bottom:-5px;background-position:left 0 top -2px;position:absolute;width:100%;height:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==);background-repeat:repeat-x;content:\"\"}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{left:unset;right:unset;right:0}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{background-position:right 0 top -2px}.header-collapse-condense{display:none}.header-md.ion-no-border::after{display:none}";
|
136
|
-
|
137
|
-
const Header = class {
|
138
|
-
constructor(hostRef) {
|
139
|
-
registerInstance(this, hostRef);
|
140
|
-
this.collapsibleHeaderInitialized = false;
|
141
|
-
/**
|
142
|
-
* If `true`, the header will be translucent.
|
143
|
-
* Only applies when the mode is `"ios"` and the device supports
|
144
|
-
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
145
|
-
*
|
146
|
-
* Note: In order to scroll content behind the header, the `fullscreen`
|
147
|
-
* attribute needs to be set on the content.
|
148
|
-
*/
|
149
|
-
this.translucent = false;
|
150
|
-
}
|
151
|
-
async componentDidLoad() {
|
152
|
-
await this.checkCollapsibleHeader();
|
153
|
-
}
|
154
|
-
async componentDidUpdate() {
|
155
|
-
await this.checkCollapsibleHeader();
|
156
|
-
}
|
157
|
-
disconnectedCallback() {
|
158
|
-
this.destroyCollapsibleHeader();
|
159
|
-
}
|
160
|
-
async checkCollapsibleHeader() {
|
161
|
-
// Determine if the header can collapse
|
162
|
-
const hasCollapse = this.collapse === 'condense';
|
163
|
-
const canCollapse = (hasCollapse && getIonMode(this) === 'ios') ? hasCollapse : false;
|
164
|
-
if (!canCollapse && this.collapsibleHeaderInitialized) {
|
165
|
-
this.destroyCollapsibleHeader();
|
166
|
-
}
|
167
|
-
else if (canCollapse && !this.collapsibleHeaderInitialized) {
|
168
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
169
|
-
const contentEl = (pageEl) ? pageEl.querySelector('ion-content') : null;
|
170
|
-
// Cloned elements are always needed in iOS transition
|
171
|
-
writeTask(() => {
|
172
|
-
const title = cloneElement('ion-title');
|
173
|
-
title.size = 'large';
|
174
|
-
cloneElement('ion-back-button');
|
175
|
-
});
|
176
|
-
await this.setupCollapsibleHeader(contentEl, pageEl);
|
177
|
-
}
|
178
|
-
}
|
179
|
-
destroyCollapsibleHeader() {
|
180
|
-
if (this.intersectionObserver) {
|
181
|
-
this.intersectionObserver.disconnect();
|
182
|
-
this.intersectionObserver = undefined;
|
183
|
-
}
|
184
|
-
if (this.scrollEl && this.contentScrollCallback) {
|
185
|
-
this.scrollEl.removeEventListener('scroll', this.contentScrollCallback);
|
186
|
-
this.contentScrollCallback = undefined;
|
187
|
-
}
|
188
|
-
if (this.collapsibleMainHeader) {
|
189
|
-
this.collapsibleMainHeader.classList.remove('header-collapse-main');
|
190
|
-
this.collapsibleMainHeader = undefined;
|
191
|
-
}
|
192
|
-
}
|
193
|
-
async setupCollapsibleHeader(contentEl, pageEl) {
|
194
|
-
if (!contentEl || !pageEl) {
|
195
|
-
console.error('ion-header requires a content to collapse, make sure there is an ion-content.');
|
196
|
-
return;
|
197
|
-
}
|
198
|
-
if (typeof IntersectionObserver === 'undefined') {
|
199
|
-
return;
|
200
|
-
}
|
201
|
-
this.scrollEl = await contentEl.getScrollElement();
|
202
|
-
const headers = pageEl.querySelectorAll('ion-header');
|
203
|
-
this.collapsibleMainHeader = Array.from(headers).find((header) => header.collapse !== 'condense');
|
204
|
-
if (!this.collapsibleMainHeader) {
|
205
|
-
return;
|
206
|
-
}
|
207
|
-
const mainHeaderIndex = createHeaderIndex(this.collapsibleMainHeader);
|
208
|
-
const scrollHeaderIndex = createHeaderIndex(this.el);
|
209
|
-
if (!mainHeaderIndex || !scrollHeaderIndex) {
|
210
|
-
return;
|
211
|
-
}
|
212
|
-
setHeaderActive(mainHeaderIndex, false);
|
213
|
-
mainHeaderIndex.toolbars.forEach(toolbar => {
|
214
|
-
setToolbarBackgroundOpacity(toolbar, 0);
|
215
|
-
});
|
216
|
-
/**
|
217
|
-
* Handle interaction between toolbar collapse and
|
218
|
-
* showing/hiding content in the primary ion-header
|
219
|
-
* as well as progressively showing/hiding the main header
|
220
|
-
* border as the top-most toolbar collapses or expands.
|
221
|
-
*/
|
222
|
-
const toolbarIntersection = (ev) => { handleToolbarIntersection(ev, mainHeaderIndex, scrollHeaderIndex); };
|
223
|
-
this.intersectionObserver = new IntersectionObserver(toolbarIntersection, { root: contentEl, threshold: [0.25, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1] });
|
224
|
-
this.intersectionObserver.observe(scrollHeaderIndex.toolbars[scrollHeaderIndex.toolbars.length - 1].el);
|
225
|
-
/**
|
226
|
-
* Handle scaling of large iOS titles and
|
227
|
-
* showing/hiding border on last toolbar
|
228
|
-
* in primary header
|
229
|
-
*/
|
230
|
-
this.contentScrollCallback = () => { handleContentScroll(this.scrollEl, scrollHeaderIndex, contentEl); };
|
231
|
-
this.scrollEl.addEventListener('scroll', this.contentScrollCallback);
|
232
|
-
writeTask(() => {
|
233
|
-
if (this.collapsibleMainHeader !== undefined) {
|
234
|
-
this.collapsibleMainHeader.classList.add('header-collapse-main');
|
235
|
-
}
|
236
|
-
});
|
237
|
-
this.collapsibleHeaderInitialized = true;
|
238
|
-
}
|
239
|
-
render() {
|
240
|
-
const { translucent } = this;
|
241
|
-
const mode = getIonMode(this);
|
242
|
-
const collapse = this.collapse || 'none';
|
243
|
-
return (h(Host, { role: "banner", class: {
|
244
|
-
[mode]: true,
|
245
|
-
// Used internally for styling
|
246
|
-
[`header-${mode}`]: true,
|
247
|
-
[`header-translucent`]: this.translucent,
|
248
|
-
[`header-collapse-${collapse}`]: true,
|
249
|
-
[`header-translucent-${mode}`]: this.translucent,
|
250
|
-
} }, mode === 'ios' && translucent &&
|
251
|
-
h("div", { class: "header-background" }), h("slot", null)));
|
252
|
-
}
|
253
|
-
get el() { return getElement(this); }
|
254
|
-
};
|
255
|
-
Header.style = {
|
256
|
-
ios: headerIosCss,
|
257
|
-
md: headerMdCss
|
258
|
-
};
|
259
|
-
|
260
|
-
export { Header as ion_header };
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-24b18689.js';
|
2
|
-
import { c as config, g as getIonMode } from './ionic-global-fddd88d0.js';
|
3
|
-
import { c as createColorClasses } from './theme-12606872.js';
|
4
|
-
import { S as SPINNERS } from './spinner-configs-9536fae2.js';
|
5
|
-
|
6
|
-
const spinnerCss = ":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{left:0;top:0;transform-origin:center;position:absolute;width:100%;height:100%;transform:translateZ(0)}[dir=rtl] svg,:host-context([dir=rtl]) svg{left:unset;right:unset;right:0}[dir=rtl] svg,:host-context([dir=rtl]) svg{transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:4px;stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg{animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{animation:spinner-dots 1s linear infinite}:host(.spinner-circular){animation:spinner-circular linear infinite}:host(.spinner-circular) circle{animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{animation-play-state:paused}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-scale-out{0%{transform:scale(1, 1)}100%{transform:scale(0, 0)}}@keyframes spinner-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-dots{0%{transform:scale(1, 1);opacity:0.9}50%{transform:scale(0.4, 0.4);opacity:0.3}100%{transform:scale(1, 1);opacity:0.9}}@keyframes spinner-circular{100%{transform:rotate(360deg)}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}";
|
7
|
-
|
8
|
-
const Spinner = class {
|
9
|
-
constructor(hostRef) {
|
10
|
-
registerInstance(this, hostRef);
|
11
|
-
/**
|
12
|
-
* If `true`, the spinner's animation will be paused.
|
13
|
-
*/
|
14
|
-
this.paused = false;
|
15
|
-
}
|
16
|
-
getName() {
|
17
|
-
const spinnerName = this.name || config.get('spinner');
|
18
|
-
const mode = getIonMode(this);
|
19
|
-
if (spinnerName) {
|
20
|
-
return spinnerName;
|
21
|
-
}
|
22
|
-
return (mode === 'ios') ? 'lines' : 'circular';
|
23
|
-
}
|
24
|
-
render() {
|
25
|
-
const self = this;
|
26
|
-
const mode = getIonMode(self);
|
27
|
-
const spinnerName = self.getName();
|
28
|
-
const spinner = SPINNERS[spinnerName] || SPINNERS['lines'];
|
29
|
-
const duration = (typeof self.duration === 'number' && self.duration > 10 ? self.duration : spinner.dur);
|
30
|
-
const svgs = [];
|
31
|
-
if (spinner.circles !== undefined) {
|
32
|
-
for (let i = 0; i < spinner.circles; i++) {
|
33
|
-
svgs.push(buildCircle(spinner, duration, i, spinner.circles));
|
34
|
-
}
|
35
|
-
}
|
36
|
-
else if (spinner.lines !== undefined) {
|
37
|
-
for (let i = 0; i < spinner.lines; i++) {
|
38
|
-
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
39
|
-
}
|
40
|
-
}
|
41
|
-
return (h(Host, { class: createColorClasses(self.color, {
|
42
|
-
[mode]: true,
|
43
|
-
[`spinner-${spinnerName}`]: true,
|
44
|
-
'spinner-paused': !!self.paused || config.getBoolean('_testing')
|
45
|
-
}), role: "progressbar", style: spinner.elmDuration ? { animationDuration: duration + 'ms' } : {} }, svgs));
|
46
|
-
}
|
47
|
-
};
|
48
|
-
const buildCircle = (spinner, duration, index, total) => {
|
49
|
-
const data = spinner.fn(duration, index, total);
|
50
|
-
data.style['animation-duration'] = duration + 'ms';
|
51
|
-
return (h("svg", { viewBox: data.viewBox || '0 0 64 64', style: data.style }, h("circle", { transform: data.transform || 'translate(32,32)', cx: data.cx, cy: data.cy, r: data.r, style: spinner.elmDuration ? { animationDuration: duration + 'ms' } : {} })));
|
52
|
-
};
|
53
|
-
const buildLine = (spinner, duration, index, total) => {
|
54
|
-
const data = spinner.fn(duration, index, total);
|
55
|
-
data.style['animation-duration'] = duration + 'ms';
|
56
|
-
return (h("svg", { viewBox: data.viewBox || '0 0 64 64', style: data.style }, h("line", { transform: "translate(32,32)", y1: data.y1, y2: data.y2 })));
|
57
|
-
};
|
58
|
-
Spinner.style = spinnerCss;
|
59
|
-
|
60
|
-
export { Spinner as ion_spinner };
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-24b18689.js';
|
2
|
-
|
3
|
-
const pageFooterCss = "sparkle-page-footer{margin-top:6rem}sparkle-page-footer .last-updated{color:var(--text-color--light);font-weight:normal;margin-left:auto;text-decoration:underline}sparkle-page-footer .page-footer__row{align-items:center;display:flex;font-size:12px;margin-top:2rem}";
|
4
|
-
|
5
|
-
const SparklePageFooter = class {
|
6
|
-
constructor(hostRef) {
|
7
|
-
registerInstance(this, hostRef);
|
8
|
-
}
|
9
|
-
hostData() {
|
10
|
-
return {
|
11
|
-
role: 'contentinfo',
|
12
|
-
};
|
13
|
-
}
|
14
|
-
__stencil_render() {
|
15
|
-
const { page } = this;
|
16
|
-
const pagination = (page.previousText && page.previousUrl) || (page.nextText && page.nextUrl) ? h("sparkle-pagination", { page: page }) : '';
|
17
|
-
return pagination;
|
18
|
-
}
|
19
|
-
render() { return h(Host, this.hostData(), this.__stencil_render()); }
|
20
|
-
};
|
21
|
-
SparklePageFooter.style = pageFooterCss;
|
22
|
-
|
23
|
-
export { SparklePageFooter as sparkle_page_footer };
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-24b18689.js';
|
2
|
-
import { B as BackArrow, F as ForwardArrow } from './icons-ba9ff8a9.js';
|
3
|
-
|
4
|
-
const paginationCss = "sparkle-pagination{border-color:var(--line-rule-color);border-style:solid;border-width:0 0 1px;display:flex;flex-wrap:wrap-reverse;padding:var(--page-padding, 2rem 0rem) 0}sparkle-pagination .next,sparkle-pagination .previous{max-width:100%;overflow:hidden}sparkle-pagination .next{margin-left:auto}sparkle-pagination a{border-radius:4px;display:flex;align-items:flex-start;flex-direction:column;padding:1em 1.5em;color:rgb(var(--accent-color-rgb))}sparkle-pagination .previous a{padding-left:0}sparkle-pagination .next a{padding-right:0;align-items:flex-end}@media (max-width: 700px){sparkle-pagination .previous a{padding-right:.5rem}sparkle-pagination .next a{padding-left:.5rem}}@media (hover: hover){sparkle-pagination a:hover,sparkle-pagination a:active{filter:brightness(0.8)}}sparkle-pagination .pagination__title{color:var(--text-color--lighter);font-size:12px;display:block}sparkle-pagination .pagination__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;color:var(--ion-color-sparkle)}sparkle-pagination span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sparkle-pagination svg{fill:currentColor;flex:none;height:1em;margin-bottom:-0.125em;width:1em}sparkle-pagination .next svg{margin-left:0.5em}sparkle-pagination .previous svg{margin-right:0.5em}";
|
5
|
-
|
6
|
-
const SparklePagination = class {
|
7
|
-
constructor(hostRef) {
|
8
|
-
registerInstance(this, hostRef);
|
9
|
-
this.page = { title: null, path: null, body: null, pageInfo: null };
|
10
|
-
}
|
11
|
-
render() {
|
12
|
-
const { previousText, previousUrl, nextText, nextUrl } = this.page;
|
13
|
-
const shouldShowPrevious = previousText && previousUrl;
|
14
|
-
const shouldShowNext = nextText && nextUrl;
|
15
|
-
const links = [];
|
16
|
-
if (shouldShowPrevious) {
|
17
|
-
links.push(h("stencil-route-link", { url: previousUrl, key: "previous", class: "previous", anchorTitle: previousText }, h("div", { class: "pagination__title" }, "Previous"), h("div", { class: "pagination__text" }, h(BackArrow, null), h("span", null, previousText))));
|
18
|
-
}
|
19
|
-
if (shouldShowNext) {
|
20
|
-
links.push(h("stencil-route-link", { url: nextUrl, key: "next", class: "next", anchorTitle: nextText }, h("div", { class: "pagination__title" }, "Next"), h("div", { class: "pagination__text" }, h("span", null, nextText), h(ForwardArrow, null))));
|
21
|
-
}
|
22
|
-
return links;
|
23
|
-
}
|
24
|
-
};
|
25
|
-
SparklePagination.style = paginationCss;
|
26
|
-
|
27
|
-
export { SparklePagination as sparkle_pagination };
|
@@ -1,17 +0,0 @@
|
|
1
|
-
const sample = (array) => array[Math.floor(Math.random() * array.length)];
|
2
|
-
function MyMoodTemplate(feeling, intensity, location) {
|
3
|
-
return `Mood : ${feeling} and Level: ${intensity} <gi-mood-image src="${location}"></gi-mood-image>`;
|
4
|
-
}
|
5
|
-
function MyHealthTemplate(heartRate) {
|
6
|
-
return `Heart rate ${heartRate} bpm`;
|
7
|
-
}
|
8
|
-
function MyGoalTemplate(goalName, text, progress) {
|
9
|
-
return `Goal update: ${goalName} ${text} Progress: ${progress}`;
|
10
|
-
}
|
11
|
-
class SparkleGlobal {
|
12
|
-
}
|
13
|
-
SparkleGlobal.MY_GOALS_APP_ID = 1;
|
14
|
-
SparkleGlobal.MY_HEALTH_APP_ID = 2;
|
15
|
-
SparkleGlobal.MY_MOOD_APP_ID = 3;
|
16
|
-
|
17
|
-
export { MyHealthTemplate as M, SparkleGlobal as S, MyMoodTemplate as a, MyGoalTemplate as b, sample as s };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{i as o}from"./p-fa952096.js";const s=()=>{o()};export{s as g}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r,h as s,H as e}from"./p-3d23a42a.js";import{c as n,g as t}from"./p-fa952096.js";import{c as i}from"./p-7840618d.js";import{S as o}from"./p-417a8dd6.js";const a=class{constructor(s){r(this,s),this.paused=!1}getName(){const r=this.name||n.get("spinner"),s=t(this);return r||("ios"===s?"lines":"circular")}render(){const r=this,a=t(r),c=r.getName(),f=o[c]||o.lines,h="number"==typeof r.duration&&r.duration>10?r.duration:f.dur,m=[];if(void 0!==f.circles)for(let r=0;r<f.circles;r++)m.push(l(f,h,r,f.circles));else if(void 0!==f.lines)for(let r=0;r<f.lines;r++)m.push(p(f,h,r,f.lines));return s(e,{class:i(r.color,{[a]:!0,["spinner-"+c]:!0,"spinner-paused":!!r.paused||n.getBoolean("_testing")}),role:"progressbar",style:f.elmDuration?{animationDuration:h+"ms"}:{}},m)}},l=(r,e,n,t)=>{const i=r.fn(e,n,t);return i.style["animation-duration"]=e+"ms",s("svg",{viewBox:i.viewBox||"0 0 64 64",style:i.style},s("circle",{transform:i.transform||"translate(32,32)",cx:i.cx,cy:i.cy,r:i.r,style:r.elmDuration?{animationDuration:e+"ms"}:{}}))},p=(r,e,n,t)=>{const i=r.fn(e,n,t);return i.style["animation-duration"]=e+"ms",s("svg",{viewBox:i.viewBox||"0 0 64 64",style:i.style},s("line",{transform:"translate(32,32)",y1:i.y1,y2:i.y2}))};a.style=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{left:0;top:0;transform-origin:center;position:absolute;width:100%;height:100%;transform:translateZ(0)}[dir=rtl] svg,:host-context([dir=rtl]) svg{left:unset;right:unset;right:0}[dir=rtl] svg,:host-context([dir=rtl]) svg{transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:4px;stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg{animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{animation:spinner-dots 1s linear infinite}:host(.spinner-circular){animation:spinner-circular linear infinite}:host(.spinner-circular) circle{animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{animation-play-state:paused}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-scale-out{0%{transform:scale(1, 1)}100%{transform:scale(0, 0)}}@keyframes spinner-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-dots{0%{transform:scale(1, 1);opacity:0.9}50%{transform:scale(0.4, 0.4);opacity:0.3}100%{transform:scale(1, 1);opacity:0.9}}@keyframes spinner-circular{100%{transform:rotate(360deg)}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}";export{a as ion_spinner}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,e as o,i,f as s,h as n,H as r,d as l}from"./p-3d23a42a.js";import{g as e,a,c}from"./p-fa952096.js";import{c as h,h as d}from"./p-7840618d.js";const p=class{constructor(i){t(this,i),this.ionScrollStart=o(this,"ionScrollStart",7),this.ionScroll=o(this,"ionScroll",7),this.ionScrollEnd=o(this,"ionScrollEnd",7),this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.fullscreen=!1,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}disconnectedCallback(){this.onScrollEnd()}onAppLoad(){this.resize()}onClick(t){this.isScrolling&&(t.preventDefault(),t.stopPropagation())}shouldForceOverscroll(){const{forceOverscroll:t}=this,o=e(this);return void 0===t?"ios"===o&&a("ios"):t}resize(){this.fullscreen?i((()=>this.readDimensions())):0===this.cTop&&0===this.cBottom||(this.cTop=this.cBottom=0,s(this))}readDimensions(){const t=g(this.el),o=Math.max(this.el.offsetTop,0),i=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);(o!==this.cTop||i!==this.cBottom)&&(this.cTop=o,this.cBottom=i,s(this))}onScroll(t){const o=Date.now(),s=!this.isScrolling;this.lastScroll=o,s&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,i((o=>{this.queued=!1,this.detail.event=t,v(this.detail,this.scrollEl,o,s),this.ionScroll.emit(this.detail)})))}getScrollElement(){return Promise.resolve(this.scrollEl)}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}scrollToBottom(t=0){return this.scrollToPoint(void 0,this.scrollEl.scrollHeight-this.scrollEl.clientHeight,t)}scrollByPoint(t,o,i){return this.scrollToPoint(t+this.scrollEl.scrollLeft,o+this.scrollEl.scrollTop,i)}async scrollToPoint(t,o,i=0){const s=this.scrollEl;if(i<32)return null!=o&&(s.scrollTop=o),void(null!=t&&(s.scrollLeft=t));let n,r=0;const l=new Promise((t=>n=t)),e=s.scrollTop,a=s.scrollLeft,c=null!=o?o-e:0,h=null!=t?t-a:0,d=t=>{const o=Math.min(1,(t-r)/i)-1,l=Math.pow(o,3)+1;0!==c&&(s.scrollTop=Math.floor(l*c+e)),0!==h&&(s.scrollLeft=Math.floor(l*h+a)),l<1?requestAnimationFrame(d):n()};return requestAnimationFrame((t=>{r=t,d(t)})),l}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval((()=>{this.lastScroll<Date.now()-120&&this.onScrollEnd()}),100)}onScrollEnd(){clearInterval(this.watchDog),this.watchDog=null,this.isScrolling&&(this.isScrolling=!1,this.ionScrollEnd.emit({isScrolling:!1}))}render(){const{scrollX:t,scrollY:o}=this,i=e(this),s=this.shouldForceOverscroll(),l="ios"===i&&c.getBoolean("experimentalTransitionShadow",!0);return this.resize(),n(r,{class:h(this.color,{[i]:!0,"content-sizing":d("ion-popover",this.el),overscroll:s}),style:{"--offset-top":this.cTop+"px","--offset-bottom":this.cBottom+"px"}},n("div",{id:"background-content",part:"background"}),n("main",{class:{"inner-scroll":!0,"scroll-x":t,"scroll-y":o,overscroll:(t||o)&&s},ref:t=>this.scrollEl=t,onScroll:this.scrollEvents?t=>this.onScroll(t):void 0,part:"scroll"},n("slot",null)),l?n("div",{class:"transition-effect"},n("div",{class:"transition-cover"}),n("div",{class:"transition-shadow"})):null,n("slot",{name:"fixed"}))}get el(){return l(this)}},g=t=>{const o=t.closest("ion-tabs");if(o)return o;return t.closest("ion-app,ion-page,.ion-page,page-inner")||(t=>t.parentElement?t.parentElement:t.parentNode&&t.parentNode.host?t.parentNode.host:null)(t)},v=(t,o,i,s)=>{const n=t.currentX,r=t.currentY,l=o.scrollLeft,e=o.scrollTop,a=i-t.currentTime;if(s&&(t.startTime=i,t.startX=l,t.startY=e,t.velocityX=t.velocityY=0),t.currentTime=i,t.currentX=t.scrollLeft=l,t.currentY=t.scrollTop=e,t.deltaX=l-t.startX,t.deltaY=e-t.startY,a>0&&a<100){const o=(e-r)/a;t.velocityX=(l-n)/a*.7+.3*t.velocityX,t.velocityY=.7*o+.3*t.velocityY}};p.style=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);box-sizing:border-box;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.inner-scroll{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)}}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{touch-action:pan-y;overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{touch-action:pan-x;overflow-x:var(--overflow);overscroll-behavior-x:contain}.scroll-x.scroll-y{touch-action:auto}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){contain:none}:host(.content-sizing) .inner-scroll{position:relative}.transition-effect{display:none;position:absolute;left:-100%;width:100%;height:100vh;opacity:0;pointer-events:none}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;right:0;width:10px;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTE3MDgzRkQ5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTE3MDgzRkU5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxMTcwODNGQjlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxMTcwODNGQzlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmePEuQAAABNSURBVHjaYvz//z8DIxAwMDAwATGMhmFmPDQuOSZks0AMmoJBaQHjkPfB0Lfg/2gQjVow+HPy/yHvg9GiYjQfjMbBqAWjFgy/4hogwADYqwdzxy5BuwAAAABJRU5ErkJggg==);background-repeat:repeat-y;background-size:10px 16px}::slotted([slot=fixed]){position:absolute}';export{p as ion_content}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{c as e,H as a}from"./p-68c1261b.js";const{state:t,onChange:s,reset:r}=e({user:{FirstName:"",LastName:"",ProfileText:"",ProfileImage:"",IsVerified:!1,Roles:[]},loaded:!1,enrollmentList:[]}),n={state:t,onChange:s,reset:r};class i{constructor(){}static getInstance(){return i.instance||(i.instance=new i),i.instance}async enrollClass(e){let t=await a.http.post("api/v1/Student/EnrollClass",e);return t&&(n.state.enrollmentList=[...n.state.enrollmentList,t.Data]),t}async leaveClass(e){let t=await a.http.post("api/v1/Student/LeaveClass",e);return t&&(n.state.enrollmentList=n.state.enrollmentList.filter((e=>e.Id!=t.Data))),t}async fetchUserConfiguration(){let e=await a.http.get("api/v1/Student/UserConfiguration");return e&&(n.state.enrollmentList=e.Data.EnrollmentList,n.state.user.FirstName=e.Data.FirstName,n.state.user.LastName=e.Data.LastName,n.state.user.ProfileText=e.Data.ProfileText,n.state.user.ProfileImage=e.Data.ProfileImage,n.state.user.IsVerified=e.Data.IsVerified,n.state.user.Roles=e.Data.Roles),e}async updateProfile(e){return await a.http.post("api/Account/UpdateProfile",e)}async submitFeedback(e){return await a.http.post("api/v1/Feedback",e)}}export{i as S,n as u}
|
@@ -1 +0,0 @@
|
|
1
|
-
import"./p-3d23a42a.js";import"./p-f8063d7b.js";import{c as t}from"./p-4b7db0e6.js";import{g as a}from"./p-c9ada4d9.js";const o=(o,r)=>{const i="back"===r.direction,s=r.leavingEl,p=a(r.enteringEl),e=p.querySelector("ion-toolbar"),n=t();if(n.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible"),i?n.duration(r.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(r.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),e){const a=t();a.addElement(e),n.addAnimation(a)}if(s&&i){n.duration(r.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const o=t();o.addElement(a(s)).onFinish((t=>{1===t&&o.elements.length>0&&o.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),n.addAnimation(o)}return n};export{o as mdTransitionAnimation}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,e,h as i,H as s,d as n}from"./p-3d23a42a.js";import{g as o}from"./p-fa952096.js";import{f as r,b as a,c as l}from"./p-f8063d7b.js";import"./p-f2660943.js";import{f as d,g as h,h as p}from"./p-1cbcfe63.js";import{h as c}from"./p-7840618d.js";const u=(t,e)=>{if(1===t.nodeType)return(t.tagName===e.toUpperCase()?[t]:Array.from(t.querySelectorAll(e))).find((e=>e.value===t.value))},g=class{constructor(i){t(this,i),this.ionChange=e(this,"ionChange",7),this.ionCancel=e(this,"ionCancel",7),this.ionFocus=e(this,"ionFocus",7),this.ionBlur=e(this,"ionBlur",7),this.ionStyle=e(this,"ionStyle",7),this.inputId="ion-sel-"+w++,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=t=>{this.setFocus(),this.open(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}disabledChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=((t,e,i)=>{if("undefined"==typeof MutationObserver)return;const s=new MutationObserver((t=>{i(((t,e)=>{let i;t.forEach((t=>{for(let s=0;s<t.addedNodes.length;s++)i=u(t.addedNodes[s],e)||i}))})(t,"ion-select-option"))}));return s.observe(t,{childList:!0,subtree:!0}),s})(this.el,0,(async()=>{this.updateOverlayOptions()}))}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(t){if(this.disabled||this.isExpanded)return;const e=this.overlay=await this.createOverlay(t);return this.isExpanded=!0,e.onDidDismiss().then((()=>{this.overlay=void 0,this.isExpanded=!1,this.setFocus()})),await e.present(),e}createOverlay(t){let e=this.interface;return"action-sheet"!==e&&"popover"!==e||!this.multiple||(console.warn(`Select interface cannot be "${e}" with a multi-value select. Using the "alert" interface instead.`),e="alert"),"popover"!==e||t||(console.warn('Select interface cannot be a "popover" without passing an event. Using the "alert" interface instead.'),e="alert"),"popover"===e?this.openPopover(t):"action-sheet"===e?this.openActionSheet():this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const e=this.childOpts,i=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,i);break;case"popover":const s=t.querySelector("ion-select-popover");s&&(s.options=this.createPopoverOptions(e,i));break;case"alert":t.inputs=this.createAlertInputs(e,this.multiple?"checkbox":"radio",i)}}createActionSheetButtons(t,e){const i=t.map((t=>{const i=f(t),s=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" "),n=`${C} ${s}`;return{role:b(i,e,this.compareWith)?"selected":"",text:t.textContent,cssClass:n,handler:()=>{this.value=i}}}));return i.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),i}createAlertInputs(t,e,i){return t.map((t=>{const s=f(t),n=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" ");return{type:e,cssClass:`${C} ${n}`,label:t.textContent||"",value:s,checked:b(s,i,this.compareWith),disabled:t.disabled}}))}createPopoverOptions(t,e){return t.map((t=>{const i=f(t),s=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" ");return{text:t.textContent||"",cssClass:`${C} ${s}`,value:i,checked:b(i,e,this.compareWith),disabled:t.disabled,handler:()=>{this.value=i,this.close()}}}))}async openPopover(t){const e=this.interfaceOptions,i=o(this),s=this.value,n=Object.assign(Object.assign({mode:i},e),{component:"ion-select-popover",cssClass:["select-popover",e.cssClass],event:t,componentProps:{header:e.header,subHeader:e.subHeader,message:e.message,value:s,options:this.createPopoverOptions(this.childOpts,s)}});return d.create(n)}async openActionSheet(){const t=o(this),e=this.interfaceOptions,i=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]});return h.create(i)}async openAlert(){const t=this.getLabel(),e=t?t.textContent:null,i=this.interfaceOptions,s=this.multiple?"checkbox":"radio",n=o(this),r=Object.assign(Object.assign({mode:n},i),{header:i.header?i.header:e,inputs:this.createAlertInputs(this.childOpts,s,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:t=>{this.value=t}}],cssClass:["select-alert",i.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return p.create(r)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return r(this.el)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const t=this.selectedText;return null!=t&&""!==t?t:x(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,select:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"interactive-disabled":this.disabled,"select-disabled":this.disabled})}render(){const{disabled:t,el:e,inputId:n,isExpanded:r,name:d,placeholder:h,value:p}=this,u=o(this),{labelText:g,labelId:b}=a(e,n);l(!0,e,d,v(p),t);let f=!1,m=this.getText();""===m&&null!=h&&(m=h,f=!0);const x={"select-text":!0,"select-placeholder":f},y=f?"placeholder":"text",w=void 0!==g?""!==m?`${m}, ${g}`:g:m;return i(s,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":w,class:{[u]:!0,"in-item":c("ion-item",e),"select-disabled":t}},i("div",{"aria-hidden":"true",class:x,part:y},m),i("div",{class:"select-icon",role:"presentation",part:"icon"},i("div",{class:"select-icon-inner"})),i("label",{id:b},w),i("button",{type:"button",disabled:t,id:n,"aria-labelledby":b,"aria-haspopup":"listbox","aria-expanded":""+r,onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.focusEl=t}))}get el(){return n(this)}static get watchers(){return{disabled:["disabledChanged"],placeholder:["disabledChanged"],value:["valueChanged"]}}},b=(t,e,i)=>void 0!==t&&(Array.isArray(t)?t.some((t=>m(t,e,i))):m(t,e,i)),f=t=>{const e=t.value;return void 0===e?t.textContent||"":e},v=t=>{if(null!=t)return Array.isArray(t)?t.join(","):t.toString()},m=(t,e,i)=>"function"==typeof i?i(t,e):"string"==typeof i?t[i]===e[i]:Array.isArray(e)?e.includes(t):t===e,x=(t,e,i)=>void 0===e?"":Array.isArray(e)?e.map((e=>y(t,e,i))).filter((t=>null!==t)).join(", "):y(t,e,i)||"",y=(t,e,i)=>{const s=t.find((t=>m(f(t),e,i)));return s?s.textContent:null};let w=0;const C="select-interface-option";g.style={ios:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{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)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{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}.select-icon{position:relative;opacity:0.33}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px}",md:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{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)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{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}.select-icon{position:relative;opacity:0.33}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px}:host-context(.item-label-floating) .select-icon{transform:translate3d(0, -9px, 0)}"};const k=class{constructor(e){t(this,e),this.inputId="ion-selopt-"+O++,this.disabled=!1}render(){return i(s,{role:"option",id:this.inputId,class:o(this)})}get el(){return n(this)}};let O=0;k.style=":host{display:none}";export{g as ion_select,k as ion_select_option}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,h as l,H as r}from"./p-3d23a42a.js";const o=class{constructor(l){s(this,l)}render(){return l(r,null,l("slot",null))}};o.style=":host{display:block}";export{o as sparkle_poll}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as n,H as i}from"./p-3d23a42a.js";import{g as o}from"./p-fa952096.js";const a=class{constructor(n){t(this,n)}render(){const t=o(this);return n(i,{class:{[t]:!0,["card-content-"+t]:!0}})}};a.style={ios:"ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"};export{a as ion_card_content}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,h as t,H as o,d as l}from"./p-3d23a42a.js";import"./p-fa952096.js";import"./p-68c1261b.js";import"./p-f8063d7b.js";import"./p-f2660943.js";import"./p-1cbcfe63.js";import{S as e}from"./p-14a9aad3.js";const n=class{constructor(t){i(this,t),this.formControls={type:{isValid:!0,value:1,validate:i=>!!i},note:{isValid:!1,value:"",validate:i=>!!i}},this.submitted=!0}async onSubmit(i){i.preventDefault(),this.submitted=!0;let t=!0;for(let i in this.formControls){let o=this.formControls[i];o.validate(o.value),o.isValid||(t=!1)}if(t){let i=await e.getInstance().submitFeedback({Note:this.formControls.note.value,Type:this.formControls.type.value});console.log(i),i&&this.dismiss()}}dismiss(i){this.el.closest("ion-modal").dismiss({dismissed:!0})}changeFormValue(i,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[i]:Object.assign(Object.assign({},this.formControls[i]),{value:t,isValid:this.formControls[i].validate(t)})})}render(){return t(o,null,t("ion-header",{translucent:!0},t("ion-toolbar",null,t("ion-title",null,"Feedback"),t("ion-buttons",{slot:"end"},t("ion-button",{onClick:()=>this.dismiss()},"Close")))),t("ion-content",{class:"ion-padding"},t("form",{onSubmit:i=>this.onSubmit(i),novalidate:!0},t("ion-list",null,t("ion-radio-group",{value:this.formControls.type.value,onChange:i=>this.changeFormValue("type",+i.target.value)},t("ion-list-header",null,t("ion-label",null,"Feedback Type")),t("ion-item",null,t("ion-label",null,"Comments"),t("ion-radio",{value:1})),t("ion-item",null,t("ion-label",null,"Suggestions"),t("ion-radio",{value:2})),t("ion-item",null,t("ion-label",null,"Questions"),t("ion-radio",{value:3}))),t("ion-item",null,t("ion-label",{position:"floating"},"Notes"),t("ion-textarea",{value:this.formControls.note.value,onChange:i=>this.changeFormValue("note",i.target.value)})),t("br",null),t("ion-button",{color:"primary",type:"submit"},"Submit")))))}get el(){return l(this)}};n.style=":host{display:block}";export{n as sparkle_feedback}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,h as t,a,d as i}from"./p-3d23a42a.js";const h=class{constructor(t){s(this,t)}componentDidLoad(){this.drawOnCompass(),window.addEventListener("resize",(()=>this.drawOnCompass()))}async drawOnCompass(){this.canvas=this.el.querySelector(".myCanvas"),this.canvase_container=this.el.querySelector("#container"),this.canvase_container.style.width="100%",this.canvas.width=this.canvase_container.offsetWidth,this.canvas.height=this.canvase_container.offsetWidth,this.canvas.style.width=this.canvase_container.offsetWidth+"px",this.canvas.style.height=this.canvase_container.offsetWidth+"px";var s=this.canvas.getContext("2d"),t=this.canvas.width/2,a=this.canvas.height/2;s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(96, 187,70, 0.5)";var i=this.getRadiusFromSection(this.resiliance);s.arc(t,a,i,0,Math.PI/4),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(96, 187,70, 0.6)",i=this.getRadiusFromSection(this.care),s.arc(t,a,i,Math.PI/4,Math.PI/2),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(44, 160,217, 0.5)",i=this.getRadiusFromSection(this.organization),s.arc(t,a,i,Math.PI/2,.75*Math.PI),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(44, 160,217, 0.6)",i=this.getRadiusFromSection(this.school),s.arc(t,a,i,.75*Math.PI,Math.PI),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(220, 24,98, 0.5)",i=this.getRadiusFromSection(this.relationship),s.arc(t,a,i,Math.PI,1.25*Math.PI),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(220, 24,98, 0.6)",i=this.getRadiusFromSection(this.emotions),s.arc(t,a,i,1.25*Math.PI,1.5*Math.PI),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(224,117,33, 0.5)",i=this.getRadiusFromSection(this.spirituality),s.arc(t,a,i,1.5*Math.PI,1.75*Math.PI),s.fill(),s.beginPath(),s.moveTo(t,a),s.fillStyle="rgba(224,117,33, 0.6)",i=this.getRadiusFromSection(this.rest),s.arc(t,a,i,1.75*Math.PI,2*Math.PI),s.fill()}getRadiusFromSection(s){var t=.09*this.canvas.width,a=.028*this.canvas.width;return 0==s?0:1==s?t:s>5?t+(s-1)*a+1:t+(s-1)*a}render(){return t("div",{id:"container"},t("img",{id:"compassImage",class:"src-image",src:a("../assets/img/compass.png")}),t("canvas",{class:"myCanvas"},"Your browser does not support the HTML5 canvas tag."),t("img",{id:"compassOverImage",src:a("../assets/img/compass-over.png")}))}get el(){return i(this)}};h.style="#compassImage{position:absolute;z-index:1;width:100%}#compassOverImage{position:absolute;z-index:30;top:11.6%;left:11.8%;width:76.5%;height:76.5%}.myCanvas{position:relative;z-index:20}#container{display:inline-block;margin:0 auto;position:relative}";export{h as sparkle_compass}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{h as c}from"./p-3d23a42a.js";const s=s=>c("div",Object.assign({},s),"Mind & Body"),a=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"})),v=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"})),t=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"})),C=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M405.34 405.332H106.66V106.668H240V64H106.66C83.191 64 64 83.197 64 106.668v298.664C64 428.803 83.191 448 106.66 448h298.68c23.469 0 42.66-19.197 42.66-42.668V272h-42.66v133.332zM288 64v42.668h87.474L159.999 322.133l29.866 29.866 215.476-215.47V224H448V64H288z"})),e=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M64 384h384v-42.666H64V384zm0-106.666h384v-42.667H64v42.667zM64 128v42.665h384V128H64z"})),h=s=>c("svg",Object.assign({viewBox:"0 0 4 16"},s),c("path",{d:"M4 2C4 0.8999 3.1001 0 2 0C0.8999 0 0 0.8999 0 2C0 3.1001 0.8999 4 2 4C3.1001 4 4 3.1001 4 2ZM4 14C4 12.8999 3.1001 12 2 12C0.8999 12 0 12.8999 0 14C0 15.1001 0.8999 16 2 16C3.1001 16 4 15.1001 4 14ZM4 8C4 6.8999 3.1001 6 2 6C0.8999 6 0 6.8999 0 8C0 9.1001 0.8999 10 2 10C3.1001 10 4 9.1001 4 8Z",fill:"#5B708B"})),M=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"})),d=s=>c("svg",Object.assign({viewBox:"0 0 512 512"},s),c("path",{d:"M258.9 48C141.92 46.42 46.42 141.92 48 258.9c1.56 112.19 92.91 203.54 205.1 205.1 117 1.6 212.48-93.9 210.88-210.88C462.44 140.91 371.09 49.56 258.9 48zm126.42 327.25a4 4 0 01-6.14-.32 124.27 124.27 0 00-32.35-29.59C321.37 329 289.11 320 256 320s-65.37 9-90.83 25.34a124.24 124.24 0 00-32.35 29.58 4 4 0 01-6.14.32A175.32 175.32 0 0180 259c-1.63-97.31 78.22-178.76 175.57-179S432 158.81 432 256a175.32 175.32 0 01-46.68 119.25z"}),c("path",{d:"M256 144c-19.72 0-37.55 7.39-50.22 20.82s-19 32-17.57 51.93C191.11 256 221.52 288 256 288s64.83-32 67.79-71.24c1.48-19.74-4.8-38.14-17.68-51.82C293.39 151.44 275.59 144 256 144z"}));export{a as B,M as C,v as D,t as F,s as L,h as M,C as O,d as P,e as a}
|
@@ -1 +0,0 @@
|
|
1
|
-
class t{constructor(){this.init()}static getInstance(){return t.instance||(t.instance=new t),t.instance}init(){if(!window)return;const t=window.Sparkle;console.log("getting info"),this.m=new Map(Object.entries(t.config))}get(t,s){const n=this.m.get(t);return void 0!==n?n:s}}class s{constructor(){this.assetsList=void 0}static getInstance(){return s.instance||(s.instance=new s),s.instance}async assets(){return void 0===this.assetsList&&(this.assetsList=await this.init()),this.assetsList}async init(){try{const s=t.getInstance().get("sparkle"),n=await fetch(s.globalAssetsUrl+"/assets.json");if(!n)return;return await n.json()}catch(t){return}}async loadJsonFile(t){try{const s=await fetch(""+t);if(!s)return;return await s.json()}catch(t){return}}}export{s as A,t as E}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,e,h as s,d as t}from"./p-3d23a42a.js";import{E as r,A as n}from"./p-58ede27f.js";const a=class{constructor(s){i(this,s),this.quizAnswerChanged=e(this,"quizAnswerChanged",7)}async loadQuestion(){this.quizData&&(this.question=this.quizData[+this.questionId])}async componentWillLoad(){}async componentDidLoad(){const i=r.getInstance().get("sparkle");this.quizData=await n.getInstance().loadJsonFile(i.quizPath),await this.loadQuestion(),this.quizAnswerChanged.emit({question:null,answer:"1"})}quizInputChangeHandler(i){this.quizAnswerChanged.emit({question:i.detail.question,answer:i.detail.value})}quizFeedbackChangeHandler(i){this.quizAnswerChanged.emit({question:i.detail.question,answer:i.detail.value})}quizSelectChangeHandler(i){this.quizAnswerChanged.emit({question:i.detail.question,answer:i.detail.value})}quizOpinionChangeHandler(i){this.quizAnswerChanged.emit({question:i.detail.question,answer:i.detail.value})}getQuestionFeedback(){if("MULTIPLE-CHOICE"==this.question.questionType){const i=this.question.options.filter((i=>1==i.correct)).map((i=>i.feedback));return i.length>0&&i.map((i=>s("small",null,i)))}if("FEEDBACK"==this.question.questionType||"TEXT"==this.question.questionType)return this.question.feedback&&s("small",null," ",this.question.feedback)}showAnswerStatus(){return s("div",null,s("strong",null,this.correct?"Good job!":"Incorrect answer, please try again."))}renderQuestion(){return"MULTIPLE-CHOICE"==this.question.questionType?s("sparkle-quiz-select",{question:this.question,allowMultiple:!0}):"FEEDBACK"==this.question.questionType?s("sparkle-quiz-feedback",{question:this.question}):"TEXT"==this.question.questionType?s("sparkle-quiz-input",{question:this.question}):"OPINION"==this.question.questionType?s("sparkle-quiz-opinion",{question:this.question}):"POLL"==this.question.questionType?s("sparkle-quiz-poll",{question:this.question}):void 0}render(){return this.question?s("div",{class:{correct:this.submitted&&this.correct,incorrect:this.submitted&&!this.correct}},this.renderQuestion(),this.submitted&&this.showInstantResult&&s("div",{class:"feedback-container"},[this.showAnswerStatus(),this.getQuestionFeedback()])):s("p",null,"No question found.")}get el(){return t(this)}static get watchers(){return{questionId:["loadQuestion"]}}};a.style="sparkle-quiz{display:block;font-family:var(--font-family);--sparkle-quiz-question-container-padding:10px 0px;--sparkle-quiz-question-container-margin:0px;--sparkle-quiz-question-text-padding:10px 0px;--sparkle-quiz-option-border:2px solid var(--line-rule-color);--sparkle-quiz-selected-option-border:2px solid var(--text-color--dark);--sparkle-quiz-option-border-radius:4px;--sparkle-quiz-option-padding:5px 10px;--sparkle-quiz-option-width:100%;--sparkle-quiz-error-bg-color:#fbaeae;--sparkle-quiz-success-bg-color:#fbaeae;padding:var(--sparkle-quiz-question-container-padding);margin:var(--sparkle-quiz-question-container-margin)}.question-text{padding:var(--sparkle-quiz-question-text-padding)}.option{padding:5px 0px}.number{padding:0px 14px;border:1px solid #ebebeb;border-radius:4px;margin-right:10px;font-size:14px;width:14px;display:inline-flex;justify-content:center}.feedback-container{padding:10px;border-radius:4px}.incorrect .feedback-container{background-color:var(--sparkle-quiz-error-bg-color, #fbaeae)}.correct .feedback-container{background-color:var(--sparkle-quiz-success-bg-color, #fbaeae)}";export{a as sparkle_quiz}
|