@sparkle-learning/core 0.0.19 → 0.0.20
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-20e27028.js → PrivateRoute-cee9b061.js} +43 -43
- 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-fda1e4fc.js → icons-a0fef92b.js} +2 -6
- 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 +2 -8
- 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 +24 -25
- 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/esm/{PrivateRoute-c10669e7.js → PrivateRoute-9f0973bb.js} +41 -40
- 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-212531e8.js → icons-33e5804c.js} +3 -6
- 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-10bcf9e6.js → p-03eb2164.js} +1 -1
- 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-edde077c.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-76b1778e.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-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 +3 -3
- 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 +141 -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 +6 -2
- package/dist/cjs/header-mobile-collapse_51.cjs.entry.js +0 -5245
- 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 -5191
- 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/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -111
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -18
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -89
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
- package/dist/sparkle-core/p-05928d94.js +0 -1
- package/dist/sparkle-core/p-0986aad3.entry.js +0 -1
- package/dist/sparkle-core/p-0df2b695.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-44a2c21c.js +0 -1
- package/dist/sparkle-core/p-57076f68.entry.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-c4bbaebc.entry.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-e72084e9.entry.js +0 -1
- package/dist/sparkle-core/p-f3a69821.entry.js +0 -1
- package/dist/sparkle-core/p-fbbfa021.js +0 -1
@@ -1,7 +1,9 @@
|
|
1
|
-
import { Component, State, Host, getAssetPath, h } from '@stencil/core';
|
2
|
-
import { SparkleGlobal, MyMoodTemplate } from "../../../util";
|
1
|
+
import { Component, State, Prop, Host, getAssetPath, h } from '@stencil/core';
|
2
|
+
import { SparkleGlobal, MyMoodTemplate, MyMoodTemplateJSON } from "../../../util";
|
3
3
|
import { EnvironmentConfigService } from "../../../services/environment/environment-config.service";
|
4
4
|
import { AssetsService } from "../../../services/core/assets.service";
|
5
|
+
import { FeedService } from '../../../services/feed.service';
|
6
|
+
import feedStore from '../../../stores/feed.store';
|
5
7
|
export class SparkleMood {
|
6
8
|
constructor() {
|
7
9
|
this.feelingItems = ["Anger", "Fear", "Disgust", "Happiness", "Sadness", "Suprise", "Neutral", "Anxiety", "Love", "Depression", "Contempt", "Pride", "Shame", "Envy"];
|
@@ -31,20 +33,23 @@ export class SparkleMood {
|
|
31
33
|
}
|
32
34
|
else if (this.currentStep == "LOCATION") {
|
33
35
|
const sparkleConfig = EnvironmentConfigService.getInstance().get('sparkle');
|
34
|
-
console.log(sparkleConfig);
|
35
36
|
const tocData = await AssetsService.getInstance().loadJsonFile(sparkleConfig.tocPath);
|
36
37
|
var model = {
|
37
38
|
CourseId: tocData.id,
|
38
|
-
PostText: MyMoodTemplate(this.feeling, this.intensity, this.location),
|
39
|
+
PostText: MyMoodTemplate(this.feeling, this.intensity, getAssetPath(`../assets/img/mood/` + this.location)),
|
40
|
+
PostTextJSON: MyMoodTemplateJSON(this.feeling, this.intensity, getAssetPath(`../assets/img/mood/` + this.location)),
|
39
41
|
ExternalResourceUrl: "",
|
40
42
|
IsPublic: this.public,
|
41
43
|
MiniAppId: SparkleGlobal.MY_MOOD_APP_ID,
|
42
44
|
};
|
43
|
-
|
44
|
-
|
45
|
+
const result = await FeedService.getInstance().createPost(model);
|
46
|
+
if (result.Succeeded) {
|
47
|
+
this.history.replace('/home');
|
48
|
+
}
|
45
49
|
}
|
46
50
|
}
|
47
51
|
render() {
|
52
|
+
const buttonLabel = this.currentStep == "LOCATION" ? "SUBMIT" : "NEXT";
|
48
53
|
return (h(Host, null,
|
49
54
|
h("div", { class: `${this.currentStep == "FEELING" ? '' : 'hide'}` },
|
50
55
|
h("ion-list", null,
|
@@ -64,7 +69,7 @@ export class SparkleMood {
|
|
64
69
|
h("ion-radio", { slot: "start", value: item })))))),
|
65
70
|
h("div", { class: `${this.currentStep == "LOCATION" ? '' : 'hide'}` },
|
66
71
|
h("ion-list", null,
|
67
|
-
h("ion-radio-group", { name: "location", value: this.location, onIonChange: (ev) => this.location =
|
72
|
+
h("ion-radio-group", { name: "location", value: this.location, onIonChange: (ev) => this.location = ev.detail.value },
|
68
73
|
h("ion-list-header", null,
|
69
74
|
h("ion-label", null,
|
70
75
|
h("h3", null, "LOCATION"))),
|
@@ -77,7 +82,9 @@ export class SparkleMood {
|
|
77
82
|
h("ion-checkbox", { slot: "start", onChange: (ev) => this.public = ev.detail.checked, checked: true })))),
|
78
83
|
h("ion-item", { lines: "none" },
|
79
84
|
this.currentStep != "FEELING" && h("ion-button", { size: "default", slot: "start", onClick: () => this.back() }, "BACK"),
|
80
|
-
h("ion-button", { slot: "end", color: "primary", size: "default", onClick: () => this.next()
|
85
|
+
h("ion-button", { slot: "end", color: "primary", size: "default", onClick: () => this.next(), disabled: feedStore.state.createPostLoading },
|
86
|
+
feedStore.state.createPostLoading && h("ion-spinner", { name: "dots" }),
|
87
|
+
buttonLabel))));
|
81
88
|
}
|
82
89
|
static get is() { return "sparkle-mood"; }
|
83
90
|
static get originalStyleUrls() { return {
|
@@ -86,7 +93,30 @@ export class SparkleMood {
|
|
86
93
|
static get styleUrls() { return {
|
87
94
|
"$": ["sparkle-mood.css"]
|
88
95
|
}; }
|
96
|
+
static get properties() { return {
|
97
|
+
"history": {
|
98
|
+
"type": "unknown",
|
99
|
+
"mutable": false,
|
100
|
+
"complexType": {
|
101
|
+
"original": "RouterHistory",
|
102
|
+
"resolved": "RouterHistory",
|
103
|
+
"references": {
|
104
|
+
"RouterHistory": {
|
105
|
+
"location": "import",
|
106
|
+
"path": "@stencil/router"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
},
|
110
|
+
"required": true,
|
111
|
+
"optional": false,
|
112
|
+
"docs": {
|
113
|
+
"tags": [],
|
114
|
+
"text": ""
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}; }
|
89
118
|
static get states() { return {
|
119
|
+
"loading": {},
|
90
120
|
"feeling": {},
|
91
121
|
"intensity": {},
|
92
122
|
"location": {},
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -5,6 +5,7 @@ import { AssetsService } from "../../services/core/assets.service";
|
|
5
5
|
import { AuthStore } from "../../stores/auth.store";
|
6
6
|
import { AuthService } from "../../services/auth/auth.service";
|
7
7
|
import { initSetupConfig as initSetupSparkleConfig } from '../../services/environment/environment-config';
|
8
|
+
import userStore from '../../stores/user.store';
|
8
9
|
export class SparkleCourseRoot {
|
9
10
|
constructor() {
|
10
11
|
this.history = null;
|
@@ -63,20 +64,21 @@ export class SparkleCourseRoot {
|
|
63
64
|
await sidebar.show();
|
64
65
|
}
|
65
66
|
renderPage(path) {
|
66
|
-
return (h("stencil-route", { url: "/" + path, routeRender: props => [this.renderHeaderAndMenu(), h("sparkle-page", { path: "" },
|
67
|
+
return (h("stencil-route", { url: "/" + path, routeRender: props => [this.renderHeaderAndMenu(), h("sparkle-page", { history: this.history, path: "" },
|
67
68
|
path == "login" && h("sparkle-login", null),
|
68
|
-
path == "signup" && h("sparkle-signup",
|
69
|
-
path == "forgot-password" && h("sparkle-forgot-password",
|
70
|
-
path == "
|
71
|
-
path == "home/my-health" && h("sparkle-health", null),
|
72
|
-
path == "home/my-goals" && h("sparkle-goals", null),
|
73
|
-
path == "home/great-white-wall" && h("sparkle-gww", null))
|
69
|
+
path == "signup" && h("sparkle-signup", { history: this.history }),
|
70
|
+
path == "forgot-password" && h("sparkle-forgot-password", { history: this.history }),
|
71
|
+
path == "reset-password" && h("sparkle-reset-password", { history: this.history }))
|
74
72
|
] }));
|
75
73
|
}
|
76
74
|
renderPrivatePage(path) {
|
77
|
-
return (h(PrivateRoute, { url: "/" + path, render: () => [this.renderHeaderAndMenu(), h("sparkle-page", { path: "" },
|
75
|
+
return (h(PrivateRoute, { url: "/" + path, render: () => [this.renderHeaderAndMenu(), h("sparkle-page", { history: this.history, path: "" },
|
78
76
|
path == "profile" && h("sparkle-user-profile", null),
|
79
|
-
path == "enrollment" && h("sparkle-user-enrollment", null)
|
77
|
+
path == "enrollment" && h("sparkle-user-enrollment", null),
|
78
|
+
path == "home/my-mood" && h("sparkle-mood", { history: this.history }),
|
79
|
+
path == "home/my-health" && h("sparkle-health", { history: this.history }),
|
80
|
+
path == "home/my-goals" && h("sparkle-goals", null),
|
81
|
+
path == "home/great-white-wall" && h("sparkle-gww", null))
|
80
82
|
] }));
|
81
83
|
}
|
82
84
|
renderHeaderAndMenu() {
|
@@ -87,11 +89,11 @@ export class SparkleCourseRoot {
|
|
87
89
|
}
|
88
90
|
renderHeader() {
|
89
91
|
return [
|
90
|
-
h("sparkle-header", { courseName: this.tocData.name, toggleClickFn: this.toggleMenu, signoutClickFn: this.signout, authUser: AuthStore.state.isAuthenticated }, this.renderLogo())
|
92
|
+
h("sparkle-header", { courseName: this.tocData.name, toggleClickFn: this.toggleMenu, signoutClickFn: this.signout, authUser: AuthStore.state.isAuthenticated, imageUrl: userStore.state.user.ProfileImage }, this.renderLogo())
|
91
93
|
];
|
92
94
|
}
|
93
|
-
signout() {
|
94
|
-
AuthService.getInstance().signOut();
|
95
|
+
async signout() {
|
96
|
+
await AuthService.getInstance().signOut();
|
95
97
|
this.history.replace('/login', {});
|
96
98
|
}
|
97
99
|
renderLogo() {
|
@@ -111,24 +113,21 @@ export class SparkleCourseRoot {
|
|
111
113
|
this.renderHeaderAndMenu(),
|
112
114
|
h("sparkle-unauthorized", null)
|
113
115
|
] }),
|
114
|
-
h("stencil-route", { url: "/course/:page*", routeRender: props => [this.renderHeaderAndMenu(), h("sparkle-page", { path: `/course/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick })] }),
|
115
|
-
h("stencil-route", { url: "/presentation/course/:page*", routeRender: props => h("sparkle-page", { presentation: true, path: `/course/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick }) }),
|
116
|
-
h("stencil-route", { url: "/presentation/teacher/:page*", routeRender: props => [
|
116
|
+
h("stencil-route", { url: "/course/:page*", routeRender: props => [this.renderHeaderAndMenu(), h("sparkle-page", { history: this.history, path: `/course/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick })] }),
|
117
|
+
h("stencil-route", { url: "/presentation/course/:page*", routeRender: props => h("sparkle-page", { history: this.history, presentation: true, path: `/course/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick }) }),
|
118
|
+
h("stencil-route", { url: "/presentation/teacher/course/:page*", routeRender: props => [
|
117
119
|
h("sparkle-facilitator-header", { courseName: this.tocData.name, toggleStudentClickFn: this.toggleStudentSidebar }, this.renderLogo()),
|
118
|
-
h("sparkle-facilitator-page", {
|
119
|
-
h("sparkle-sidebar", { position: "right", "header-text": "Online Students", id: "onlineStudents" },
|
120
|
-
h("ion-button", { color: "primary" }, "Primary"),
|
121
|
-
",",
|
122
|
-
h("sparkle-online-students", null))
|
120
|
+
h("sparkle-facilitator-page", { notesPath: `/course/${props.match.params.page || 'index'}-notes.json`, path: `/course/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick }),
|
123
121
|
] }),
|
124
|
-
this.
|
125
|
-
this.
|
126
|
-
this.
|
127
|
-
this.
|
128
|
-
h(PrivateRoute, { url: "/home/:page*", render: props => [this.renderHeaderAndMenu(), h("sparkle-page", { path: `/course/home/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick })] }),
|
122
|
+
this.renderPrivatePage("home/my-mood"),
|
123
|
+
this.renderPrivatePage("home/my-health"),
|
124
|
+
this.renderPrivatePage("home/my-goals"),
|
125
|
+
this.renderPrivatePage("home/great-white-wall"),
|
126
|
+
h(PrivateRoute, { url: "/home/:page*", render: props => [this.renderHeaderAndMenu(), h("sparkle-page", { history: this.history, path: `/course/home/${props.match.params.page || 'index'}.json`, onClick: this.handlePageClick })] }),
|
129
127
|
this.renderPage("login"),
|
130
128
|
this.renderPage("signup"),
|
131
129
|
this.renderPage("forgot-password"),
|
130
|
+
this.renderPage("reset-password"),
|
132
131
|
this.renderPrivatePage("profile"),
|
133
132
|
this.renderPrivatePage("enrollment")))));
|
134
133
|
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
:host {
|
2
|
-
display: inline-block;
|
3
|
-
}
|
4
|
-
|
5
|
-
span.xs {
|
6
|
-
font-size: 1em;
|
7
|
-
}
|
8
|
-
span.sm {
|
9
|
-
font-size: 2em;
|
10
|
-
}
|
11
|
-
span.md {
|
12
|
-
font-size: 3em;
|
13
|
-
}
|
14
|
-
span.lg {
|
15
|
-
font-size: 4em;
|
16
|
-
}
|
1
|
+
:host {
|
2
|
+
display: inline-block;
|
3
|
+
}
|
4
|
+
|
5
|
+
span.xs {
|
6
|
+
font-size: 1em;
|
7
|
+
}
|
8
|
+
span.sm {
|
9
|
+
font-size: 2em;
|
10
|
+
}
|
11
|
+
span.md {
|
12
|
+
font-size: 3em;
|
13
|
+
}
|
14
|
+
span.lg {
|
15
|
+
font-size: 4em;
|
16
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Component, Element, State, Host, h } from '@stencil/core';
|
2
2
|
import { StudentService } from "../../services/student.service";
|
3
|
+
import { toastController } from '@ionic/core';
|
3
4
|
export class SparkleFeedback {
|
4
5
|
constructor() {
|
5
6
|
this.formControls = {
|
@@ -48,9 +49,21 @@ export class SparkleFeedback {
|
|
48
49
|
Type: this.formControls.type.value
|
49
50
|
});
|
50
51
|
console.log(result);
|
51
|
-
if (result) {
|
52
|
+
if (result.Succeeded) {
|
53
|
+
const toast = await toastController.create({
|
54
|
+
message: "Feedback submitted successfully",
|
55
|
+
duration: 3000
|
56
|
+
});
|
57
|
+
toast.present();
|
52
58
|
this.dismiss();
|
53
59
|
}
|
60
|
+
else {
|
61
|
+
const toast = await toastController.create({
|
62
|
+
message: result.Message,
|
63
|
+
duration: 3000
|
64
|
+
});
|
65
|
+
toast.present();
|
66
|
+
}
|
54
67
|
}
|
55
68
|
}
|
56
69
|
dismiss(data) {
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { Component, State, h, getAssetPath } from '@stencil/core';
|
1
|
+
import { Component, State, Prop, h, getAssetPath } from '@stencil/core';
|
2
2
|
import { AccountService } from "../../services/account.service";
|
3
|
+
import { AuthStore } from '../../stores';
|
3
4
|
export class SparkleForgotPassword {
|
4
5
|
constructor() {
|
5
6
|
this.formControls = {
|
@@ -34,11 +35,18 @@ export class SparkleForgotPassword {
|
|
34
35
|
}
|
35
36
|
}
|
36
37
|
if (isFormValid) {
|
37
|
-
console.log('submit');
|
38
38
|
let result = await AccountService.getInstance().forgotPassword({
|
39
|
-
Email: this.formControls.email.value
|
39
|
+
Email: this.formControls.email.value,
|
40
|
+
ClientURL: window.location.origin + "/reset-password"
|
40
41
|
});
|
41
|
-
|
42
|
+
if (result.Succeeded) {
|
43
|
+
this.history.replace('/login', {});
|
44
|
+
}
|
45
|
+
else if (result.Failed) {
|
46
|
+
if (result.Errors.length > 0) {
|
47
|
+
this.validationErrors = result.Errors;
|
48
|
+
}
|
49
|
+
}
|
42
50
|
}
|
43
51
|
}
|
44
52
|
render() {
|
@@ -46,6 +54,7 @@ export class SparkleForgotPassword {
|
|
46
54
|
h("div", null,
|
47
55
|
h("div", { class: "login-logo" },
|
48
56
|
h("img", { src: getAssetPath("/assets/img/G3-Girls.jpg"), alt: "Girls Inc" })),
|
57
|
+
h("sparkle-validation-error", { errors: this.validationErrors }),
|
49
58
|
h("form", { novalidate: "true", onSubmit: (e) => this.handleSubmit(e) },
|
50
59
|
h("ion-list", { "no-lines": true },
|
51
60
|
h("ion-item", { lines: "none" }, "Enter your email address and we will send you a link to reset your password."),
|
@@ -56,7 +65,9 @@ export class SparkleForgotPassword {
|
|
56
65
|
h("p", { hidden: this.formControls.email.isValid || this.submitted === false, class: "ion-padding-left" }, "Email is required")),
|
57
66
|
h("br", null),
|
58
67
|
h("div", { class: "ion-padding" },
|
59
|
-
h("ion-button", { type: "submit", expand: "block"
|
68
|
+
h("ion-button", { type: "submit", expand: "block", disabled: AuthStore.state.loading },
|
69
|
+
AuthStore.state.loading && h("ion-spinner", { name: "dots" }),
|
70
|
+
" SEND PASSWORD RESET EMAIL")))))
|
60
71
|
];
|
61
72
|
}
|
62
73
|
static get is() { return "sparkle-forgot-password"; }
|
@@ -66,7 +77,30 @@ export class SparkleForgotPassword {
|
|
66
77
|
static get styleUrls() { return {
|
67
78
|
"$": ["sparkle-forgot-password.css"]
|
68
79
|
}; }
|
80
|
+
static get properties() { return {
|
81
|
+
"history": {
|
82
|
+
"type": "unknown",
|
83
|
+
"mutable": false,
|
84
|
+
"complexType": {
|
85
|
+
"original": "RouterHistory",
|
86
|
+
"resolved": "RouterHistory",
|
87
|
+
"references": {
|
88
|
+
"RouterHistory": {
|
89
|
+
"location": "import",
|
90
|
+
"path": "@stencil/router"
|
91
|
+
}
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"required": false,
|
95
|
+
"optional": false,
|
96
|
+
"docs": {
|
97
|
+
"tags": [],
|
98
|
+
"text": ""
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}; }
|
69
102
|
static get states() { return {
|
103
|
+
"validationErrors": {},
|
70
104
|
"formControls": {},
|
71
105
|
"submitted": {}
|
72
106
|
}; }
|
@@ -102,7 +102,9 @@ export class PageLogin {
|
|
102
102
|
h("stencil-route-link", { slot: "end", url: "/forgot-password", exact: true }, "Forgot Password?"))),
|
103
103
|
h("ion-row", null,
|
104
104
|
h("ion-col", null,
|
105
|
-
h("ion-button", { type: "submit", expand: "block"
|
105
|
+
h("ion-button", { type: "submit", expand: "block", disabled: AuthStore.state.loading },
|
106
|
+
AuthStore.state.loading && h("ion-spinner", { name: "dots" }),
|
107
|
+
" Log In"))),
|
106
108
|
h("ion-item", { lines: "none" },
|
107
109
|
h("span", null,
|
108
110
|
" Not registered yet? ",
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
import { Component, State, Prop, Host, getAssetPath, h } from '@stencil/core';
|
2
|
+
import { AccountService } from "../../services/account.service";
|
3
|
+
import { AuthStore } from '../../stores';
|
4
|
+
export class SparkleResetPassword {
|
5
|
+
constructor() {
|
6
|
+
this.formControls = {
|
7
|
+
password: {
|
8
|
+
isValid: false,
|
9
|
+
value: '',
|
10
|
+
validate: value => {
|
11
|
+
if (value) {
|
12
|
+
return true;
|
13
|
+
}
|
14
|
+
else {
|
15
|
+
return false;
|
16
|
+
}
|
17
|
+
},
|
18
|
+
},
|
19
|
+
confirmPassword: {
|
20
|
+
isValid: false,
|
21
|
+
value: '',
|
22
|
+
validate: value => {
|
23
|
+
if (value) {
|
24
|
+
return true;
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
return false;
|
28
|
+
}
|
29
|
+
},
|
30
|
+
},
|
31
|
+
};
|
32
|
+
this.submitted = false;
|
33
|
+
}
|
34
|
+
componentDidLoad() {
|
35
|
+
console.log(this.history.location.query.code);
|
36
|
+
console.log(this.history.location.query.email);
|
37
|
+
}
|
38
|
+
changeFormValue(controlName, value) {
|
39
|
+
this.formControls = Object.assign(Object.assign({}, this.formControls), { [controlName]: Object.assign(Object.assign({}, this.formControls[controlName]), { value: value, isValid: this.formControls[controlName].validate(value) }) });
|
40
|
+
}
|
41
|
+
async handleSubmit(e) {
|
42
|
+
e.preventDefault();
|
43
|
+
this.submitted = true;
|
44
|
+
let isFormValid = true;
|
45
|
+
//Run all validation functions
|
46
|
+
for (let controlName in this.formControls) {
|
47
|
+
let control = this.formControls[controlName];
|
48
|
+
control.validate(control.value);
|
49
|
+
if (!control.isValid) {
|
50
|
+
isFormValid = false;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
if (isFormValid) {
|
54
|
+
let result = await AccountService.getInstance().resetPassword({
|
55
|
+
Email: this.history.location.query.email,
|
56
|
+
Token: this.history.location.query.code,
|
57
|
+
Password: this.formControls.password.value,
|
58
|
+
ConfirmPassword: this.formControls.confirmPassword.value,
|
59
|
+
});
|
60
|
+
if (result.Succeeded) {
|
61
|
+
this.history.replace('/login', {});
|
62
|
+
}
|
63
|
+
else if (result.Failed) {
|
64
|
+
if (result.Errors.length > 0) {
|
65
|
+
this.validationErrors = result.Errors;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
render() {
|
71
|
+
return (h(Host, null,
|
72
|
+
h("div", { class: "login-logo" },
|
73
|
+
h("img", { src: getAssetPath("/assets/img/G3-Girls.jpg"), alt: "Girls Inc" })),
|
74
|
+
h("sparkle-validation-error", { errors: this.validationErrors }),
|
75
|
+
h("form", { novalidate: "true", onSubmit: (e) => this.handleSubmit(e) },
|
76
|
+
h("ion-item", null,
|
77
|
+
h("ion-label", { position: "stacked", color: "primary" }, "Password"),
|
78
|
+
h("ion-input", { name: "password", type: "password", value: this.formControls.password.value, onInput: (ev) => this.changeFormValue("password", ev.target.value) })),
|
79
|
+
h("ion-text", { color: "danger" },
|
80
|
+
h("p", { hidden: this.formControls.password.isValid || this.submitted === false, class: "ion-padding-start" }, "Password is required")),
|
81
|
+
h("ion-item", null,
|
82
|
+
h("ion-label", { position: "stacked", color: "primary" }, "Confirm Password"),
|
83
|
+
h("ion-input", { name: "confirmPassword", type: "password", value: this.formControls.confirmPassword.value, onInput: (ev) => this.changeFormValue("confirmPassword", ev.target.value) })),
|
84
|
+
h("ion-text", { color: "danger" },
|
85
|
+
h("p", { hidden: this.formControls.confirmPassword.isValid || this.submitted === false, class: "ion-padding-start" }, "Confirm Password is required")),
|
86
|
+
h("br", null),
|
87
|
+
h("div", { class: "ion-padding" },
|
88
|
+
h("ion-button", { type: "submit", expand: "block", disabled: AuthStore.state.loading },
|
89
|
+
AuthStore.state.loading && h("ion-spinner", { name: "dots" }),
|
90
|
+
" Reset Password")))));
|
91
|
+
}
|
92
|
+
static get is() { return "sparkle-reset-password"; }
|
93
|
+
static get originalStyleUrls() { return {
|
94
|
+
"$": ["sparkle-reset-password.css"]
|
95
|
+
}; }
|
96
|
+
static get styleUrls() { return {
|
97
|
+
"$": ["sparkle-reset-password.css"]
|
98
|
+
}; }
|
99
|
+
static get properties() { return {
|
100
|
+
"history": {
|
101
|
+
"type": "unknown",
|
102
|
+
"mutable": false,
|
103
|
+
"complexType": {
|
104
|
+
"original": "RouterHistory",
|
105
|
+
"resolved": "RouterHistory",
|
106
|
+
"references": {
|
107
|
+
"RouterHistory": {
|
108
|
+
"location": "import",
|
109
|
+
"path": "@stencil/router"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"required": false,
|
114
|
+
"optional": false,
|
115
|
+
"docs": {
|
116
|
+
"tags": [],
|
117
|
+
"text": ""
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}; }
|
121
|
+
static get states() { return {
|
122
|
+
"validationErrors": {},
|
123
|
+
"formControls": {},
|
124
|
+
"submitted": {}
|
125
|
+
}; }
|
126
|
+
}
|
@@ -37,3 +37,19 @@
|
|
37
37
|
overflow-y: hidden;
|
38
38
|
}
|
39
39
|
}
|
40
|
+
|
41
|
+
#messagesList {
|
42
|
+
display: grid;
|
43
|
+
font-size: 12px;
|
44
|
+
font-weight: bold;
|
45
|
+
grid-template-columns: 1fr minmax(0, var(--page-width, 720px)) 1fr;
|
46
|
+
line-height: 2;
|
47
|
+
margin-left: var(--page-margin-left);
|
48
|
+
margin-top: var(--header-height);
|
49
|
+
overflow-x: hidden;
|
50
|
+
transform: var(--page-transform, none);
|
51
|
+
margin-top: 56px;
|
52
|
+
padding: 4px;
|
53
|
+
background: #e50739;
|
54
|
+
color: #fff;
|
55
|
+
}
|
@@ -2,8 +2,17 @@ import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
2
|
import { setupConfig as setupSparkleConfig } from '../../services/environment/environment-config';
|
3
3
|
import { HttpService } from '../../services/httpService';
|
4
4
|
import { StudentService } from '../../services/student.service';
|
5
|
+
import { EnvironmentConfigService } from '../../services/environment/environment-config.service';
|
5
6
|
import { AuthStore } from "../../stores/auth.store";
|
7
|
+
import { SignalRService } from '../../services/signalR.service';
|
8
|
+
import { injectHistory } from '@stencil/router';
|
6
9
|
export class SparkleRoot {
|
10
|
+
constructor() {
|
11
|
+
this.history = null;
|
12
|
+
this.handleStudentNavigationChange = (url) => {
|
13
|
+
this.history.replace(url, {});
|
14
|
+
};
|
15
|
+
}
|
7
16
|
async componentWillLoad() {
|
8
17
|
setupSparkleConfig({
|
9
18
|
sparkle: Object.assign(Object.assign({}, this.config), { prod: true })
|
@@ -11,12 +20,14 @@ export class SparkleRoot {
|
|
11
20
|
//return Promise.reject();
|
12
21
|
await HttpService.getInstance();
|
13
22
|
await HttpService.init();
|
14
|
-
|
23
|
+
var sparkleConfig = EnvironmentConfigService.getInstance().get('sparkle');
|
24
|
+
if (sparkleConfig && sparkleConfig.auth && sparkleConfig.auth.getToken()) {
|
15
25
|
AuthStore.state.isAuthenticated = true;
|
16
26
|
}
|
17
27
|
;
|
18
28
|
AuthStore.onChange("isAuthenticated", async (isAuthenticated) => {
|
19
29
|
if (isAuthenticated) {
|
30
|
+
console.log('authenticated');
|
20
31
|
await StudentService.getInstance().fetchUserConfiguration();
|
21
32
|
}
|
22
33
|
});
|
@@ -25,6 +36,17 @@ export class SparkleRoot {
|
|
25
36
|
}
|
26
37
|
//SignalRAspNetCoreHelper.initSignalR();
|
27
38
|
}
|
39
|
+
componentDidLoad() {
|
40
|
+
SignalRService.getInstance().connection.on("NavigateStudentTo", this.handleStudentNavigationChange);
|
41
|
+
AuthStore.onChange("isAuthenticated", async (isAuthenticated) => {
|
42
|
+
if (isAuthenticated) {
|
43
|
+
SignalRService.getInstance().start();
|
44
|
+
}
|
45
|
+
});
|
46
|
+
if (AuthStore.state.isAuthenticated) {
|
47
|
+
SignalRService.getInstance().start();
|
48
|
+
}
|
49
|
+
}
|
28
50
|
render() {
|
29
51
|
return (h(Host, null,
|
30
52
|
h("slot", null)));
|
@@ -59,3 +81,4 @@ export class SparkleRoot {
|
|
59
81
|
}
|
60
82
|
}; }
|
61
83
|
}
|
84
|
+
injectHistory(SparkleRoot);
|