@sparkle-learning/core 0.0.19 → 0.0.23
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-c12b0714.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-e34cd5cf.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 +19 -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-34d81aa0.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-76414f98.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-1af89970.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-315af535.js +3 -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-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-ba79a250.js +1 -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-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-fc739e6b.js +483 -0
- 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 +5 -1
- 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
@@ -0,0 +1,144 @@
|
|
1
|
+
import { Component, Host, Element, State, h, Prop } from '@stencil/core';
|
2
|
+
import { toastController } from "@ionic/core";
|
3
|
+
import { FacilitatorService } from '../../../../../services/facilitator.service';
|
4
|
+
import { LoadingSpinner } from '../../../../../icons';
|
5
|
+
import facilitatorStore from '../../../../../stores/facilitator.store';
|
6
|
+
export class FacilitatorNotesForm {
|
7
|
+
constructor() {
|
8
|
+
this.formControls = {
|
9
|
+
noteText: {
|
10
|
+
isValid: true,
|
11
|
+
value: "",
|
12
|
+
errorMessage: "",
|
13
|
+
validate: value => {
|
14
|
+
console.log(value);
|
15
|
+
if (value && value.length > 0) {
|
16
|
+
return { valid: true, errorMessage: "" };
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
return { valid: false, errorMessage: "Notes is required" };
|
20
|
+
}
|
21
|
+
},
|
22
|
+
}
|
23
|
+
};
|
24
|
+
this.submitted = false;
|
25
|
+
}
|
26
|
+
componentDidLoad() {
|
27
|
+
if (this.initialValues) {
|
28
|
+
this.changeFormValue("noteText", this.initialValues.NoteText);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
async onSubmit(e) {
|
32
|
+
e.preventDefault();
|
33
|
+
this.submitted = true;
|
34
|
+
let isFormValid = true;
|
35
|
+
//Run all validation functions
|
36
|
+
for (let controlName in this.formControls) {
|
37
|
+
let control = this.formControls[controlName];
|
38
|
+
control.isValid = control.validate(control.value).valid;
|
39
|
+
control.errorMessage = control.validate(control.value).errorMessage;
|
40
|
+
if (!control.isValid) {
|
41
|
+
isFormValid = false;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
if (isFormValid) {
|
45
|
+
if (this.initialValues && this.initialValues.Id > 0) {
|
46
|
+
let result = await FacilitatorService.getInstance().updateFacilitatorNote({
|
47
|
+
NoteText: this.formControls.noteText.value,
|
48
|
+
Id: this.initialValues.Id
|
49
|
+
});
|
50
|
+
if (result.Succeeded) {
|
51
|
+
const toast = await toastController.create({
|
52
|
+
message: "Notes updated successfully",
|
53
|
+
duration: 3000
|
54
|
+
});
|
55
|
+
toast.present();
|
56
|
+
this.dismiss();
|
57
|
+
}
|
58
|
+
else {
|
59
|
+
const toast = await toastController.create({
|
60
|
+
message: result.Message,
|
61
|
+
duration: 3000
|
62
|
+
});
|
63
|
+
toast.present();
|
64
|
+
}
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
let result = await FacilitatorService.getInstance().addFacilitatorNote({
|
68
|
+
NoteText: this.formControls.noteText.value
|
69
|
+
});
|
70
|
+
if (result.Succeeded) {
|
71
|
+
const toast = await toastController.create({
|
72
|
+
message: "Notes added successfully",
|
73
|
+
duration: 3000
|
74
|
+
});
|
75
|
+
toast.present();
|
76
|
+
this.dismiss();
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
const toast = await toastController.create({
|
80
|
+
message: result.Message,
|
81
|
+
duration: 3000
|
82
|
+
});
|
83
|
+
toast.present();
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
dismiss(data) {
|
89
|
+
// dismiss the closest modal and optionally pass back data
|
90
|
+
this.el.closest('ion-modal').dismiss({
|
91
|
+
'dismissed': true
|
92
|
+
});
|
93
|
+
}
|
94
|
+
changeFormValue(controlName, value) {
|
95
|
+
this.formControls = Object.assign(Object.assign({}, this.formControls), { [controlName]: Object.assign(Object.assign({}, this.formControls[controlName]), { value: value, isValid: this.formControls[controlName].validate(value).valid, errorMessage: this.formControls[controlName].validate(value).errorMessage }) });
|
96
|
+
}
|
97
|
+
render() {
|
98
|
+
const noteTextValidation = !this.formControls.noteText.isValid ? "is-invalid" : "is-valid";
|
99
|
+
return (h(Host, null,
|
100
|
+
h("ion-header", { translucent: true },
|
101
|
+
h("ion-toolbar", null,
|
102
|
+
h("ion-title", null, "Facilitator Note"),
|
103
|
+
h("ion-buttons", { slot: "end" },
|
104
|
+
h("ion-button", { onClick: () => this.dismiss() }, "Close")))),
|
105
|
+
h("ion-content", { class: "ion-padding" },
|
106
|
+
h("form", { onSubmit: (e) => this.onSubmit(e), novalidate: true },
|
107
|
+
h("div", { class: "mb-3" },
|
108
|
+
h("label", { htmlFor: "validationTextarea", class: "form-label" }, "Notes"),
|
109
|
+
h("textarea", { class: `form-control ${this.submitted && noteTextValidation}`, placeholder: "Notes", value: this.formControls.noteText.value, onChange: (e) => this.changeFormValue("noteText", e.target.value) }),
|
110
|
+
this.formControls.noteText.errorMessage && h("div", { class: "invalid-feedback" }, this.formControls.noteText.errorMessage)),
|
111
|
+
h("div", { class: "mb-3" },
|
112
|
+
facilitatorStore.state.notesLoading && h(LoadingSpinner, null),
|
113
|
+
h("button", { class: "btn btn-primary", type: "submit", disabled: facilitatorStore.state.notesLoading }, "Submit"))))));
|
114
|
+
}
|
115
|
+
static get is() { return "sparkle-facilitator-notes-form"; }
|
116
|
+
static get originalStyleUrls() { return {
|
117
|
+
"$": ["facilitator-notes-form.css"]
|
118
|
+
}; }
|
119
|
+
static get styleUrls() { return {
|
120
|
+
"$": ["facilitator-notes-form.css"]
|
121
|
+
}; }
|
122
|
+
static get properties() { return {
|
123
|
+
"initialValues": {
|
124
|
+
"type": "unknown",
|
125
|
+
"mutable": false,
|
126
|
+
"complexType": {
|
127
|
+
"original": "{\r\n Id: number,\r\n NoteText: string\r\n }",
|
128
|
+
"resolved": "{ Id: number; NoteText: string; }",
|
129
|
+
"references": {}
|
130
|
+
},
|
131
|
+
"required": false,
|
132
|
+
"optional": false,
|
133
|
+
"docs": {
|
134
|
+
"tags": [],
|
135
|
+
"text": ""
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}; }
|
139
|
+
static get states() { return {
|
140
|
+
"formControls": {},
|
141
|
+
"submitted": {}
|
142
|
+
}; }
|
143
|
+
static get elementRef() { return "el"; }
|
144
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Component, Host, h } from '@stencil/core';
|
2
|
+
import { FacilitatorService } from '../../../../services/facilitator.service';
|
3
|
+
import facilitatorStore from '../../../../stores/facilitator.store';
|
4
|
+
import { modalController } from '@ionic/core';
|
5
|
+
export class FacilitatorNotes {
|
6
|
+
async componentDidLoad() {
|
7
|
+
await this.fetchData();
|
8
|
+
}
|
9
|
+
async fetchData() {
|
10
|
+
await FacilitatorService.getInstance().fetchNotes({ showAllNotes: false });
|
11
|
+
}
|
12
|
+
async deleteNote(id) {
|
13
|
+
await FacilitatorService.getInstance().deleteFacilitatorNote(id);
|
14
|
+
}
|
15
|
+
async deleteNoteConfirmation(id) {
|
16
|
+
if (window.confirm("Do you really want to delete this note?")) {
|
17
|
+
await this.deleteNote(id);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
async presentFacilitatorNotesModal(values) {
|
21
|
+
const modal = await modalController.create({
|
22
|
+
component: 'sparkle-facilitator-notes-form',
|
23
|
+
cssClass: 'sparkle-modal sparkle-facilitator-notes-form',
|
24
|
+
componentProps: {
|
25
|
+
initialValues: values
|
26
|
+
}
|
27
|
+
});
|
28
|
+
await modal.present();
|
29
|
+
}
|
30
|
+
renderNotes() {
|
31
|
+
var _a, _b, _c;
|
32
|
+
return (h("table", { class: "table" },
|
33
|
+
h("thead", null,
|
34
|
+
h("tr", null,
|
35
|
+
h("th", { scope: "col" }, "Notes"),
|
36
|
+
h("th", { scope: "col" }, "Action"))),
|
37
|
+
h("tbody", null, (_a = facilitatorStore.state.pageNotes) === null || _a === void 0 ? void 0 :
|
38
|
+
_a.map(item => h("tr", null,
|
39
|
+
h("td", { class: "c1" }, item.NoteText),
|
40
|
+
h("td", { class: "c2" },
|
41
|
+
h("div", { class: "d-flex" },
|
42
|
+
h("div", { class: "p-2" },
|
43
|
+
h("button", { class: "btn btn-primary", type: "button", onClick: () => this.presentFacilitatorNotesModal(item) }, "Edit")),
|
44
|
+
h("div", { class: "p-2" },
|
45
|
+
h("button", { class: "btn btn-dark", type: "button", onClick: () => this.deleteNoteConfirmation(item.Id) }, "Delete")))))),
|
46
|
+
!facilitatorStore.state.pageNotes || ((_b = facilitatorStore.state.pageNotes) === null || _b === void 0 ? void 0 : _b.length) == 0 &&
|
47
|
+
h("tr", null,
|
48
|
+
h("td", { colSpan: 2 }, facilitatorStore.state.notesLoading ? "Loading..." : (((_c = facilitatorStore.state.pageNotes) === null || _c === void 0 ? void 0 : _c.length) == 0 ? "No Data" : ""))))));
|
49
|
+
}
|
50
|
+
render() {
|
51
|
+
console.log("render");
|
52
|
+
return (h(Host, null,
|
53
|
+
h("div", { class: "p-2 pb-4 d-md-flex justify-content-md-end" },
|
54
|
+
h("button", { class: "btn btn-primary pull-right", type: "button", onClick: () => this.presentFacilitatorNotesModal(null) }, "+ Add Note")),
|
55
|
+
this.renderNotes()));
|
56
|
+
}
|
57
|
+
static get is() { return "sparkle-facilitator-notes"; }
|
58
|
+
static get originalStyleUrls() { return {
|
59
|
+
"$": ["facilitator-notes.css"]
|
60
|
+
}; }
|
61
|
+
static get styleUrls() { return {
|
62
|
+
"$": ["facilitator-notes.css"]
|
63
|
+
}; }
|
64
|
+
}
|
@@ -34,7 +34,7 @@
|
|
34
34
|
sparkle-facilitator-page {
|
35
35
|
display: grid;
|
36
36
|
font-size: 16px;
|
37
|
-
grid-template-columns: 1fr
|
37
|
+
grid-template-columns: 1fr;
|
38
38
|
line-height: 2;
|
39
39
|
/* margin-left: var(--page-margin-left); */
|
40
40
|
margin-top: var(--header-height);
|
@@ -42,19 +42,20 @@ sparkle-facilitator-page {
|
|
42
42
|
transform: var(--page-transform, none);
|
43
43
|
transition: transform 200ms cubic-bezier(0.2, 1, 0.2, 1);
|
44
44
|
--page-padding: 2rem;
|
45
|
+
padding: 20px;
|
45
46
|
}
|
46
47
|
|
47
48
|
@media (min-width: 1234px) {
|
48
49
|
sparkle-facilitator-page {
|
49
50
|
/* grid-template-columns: 1fr minmax(0, var(--page-width, 720px)) 3fr; */
|
50
|
-
grid-template-columns: 1fr
|
51
|
+
grid-template-columns: 1fr;
|
51
52
|
}
|
52
53
|
}
|
53
54
|
|
54
55
|
@media (min-width: 1800px) {
|
55
56
|
sparkle-facilitator-page {
|
56
57
|
/* grid-template-columns: 1fr minmax(0, var(--page-width, 720px)) 1fr 240px; */
|
57
|
-
grid-template-columns: 1fr
|
58
|
+
grid-template-columns: 1fr;
|
58
59
|
}
|
59
60
|
}
|
60
61
|
|
@@ -76,6 +77,8 @@ sparkle-facilitator-page > main.column-2 {
|
|
76
77
|
|
77
78
|
sparkle-facilitator-page sparkle-pagination {
|
78
79
|
grid-column: 1 / -1;
|
80
|
+
border: none;
|
81
|
+
--page-padding: 0rem 1rem;
|
79
82
|
}
|
80
83
|
|
81
84
|
sparkle-facilitator-page .full-screen {
|
@@ -86,6 +89,10 @@ sparkle-facilitator-page .full-screen {
|
|
86
89
|
padding: 0;
|
87
90
|
}
|
88
91
|
|
92
|
+
sparkle-facilitator-page sparkle-page-footer {
|
93
|
+
margin-top: 0rem;
|
94
|
+
}
|
95
|
+
|
89
96
|
sparkle-facilitator-page .page-heading-encapsulation {
|
90
97
|
text-transform: uppercase;
|
91
98
|
|
@@ -184,3 +191,6 @@ sparkle-facilitator-page aside {
|
|
184
191
|
sparkle-facilitator-page main.has-demo .page-meta internal-ad {
|
185
192
|
display: none;
|
186
193
|
}
|
194
|
+
sparkle-facilitator-page .tab-content {
|
195
|
+
padding: 20px;
|
196
|
+
}
|
@@ -1,40 +1,98 @@
|
|
1
|
-
import { Component, Prop, State, Event, Watch, h } from '@stencil/core';
|
1
|
+
import { Component, Prop, State, Event, Watch, h, Fragment } from '@stencil/core';
|
2
|
+
import { SignalRService } from '../../../services/signalR.service';
|
2
3
|
import templates from '../page/templates';
|
4
|
+
import { StoreService } from "../../../services/store.service";
|
5
|
+
import { TocStore } from '../../../stores/toc.store';
|
6
|
+
import { FacilitatorService } from '../../../services/facilitator.service';
|
7
|
+
import facilitatorStore from '../../../stores/facilitator.store';
|
3
8
|
export class FacilitatorPage {
|
4
9
|
constructor() {
|
10
|
+
this.isLesson = false;
|
11
|
+
this.notesPage = { title: null, path: null, body: null, pageInfo: null };
|
12
|
+
this.lessonNotesPage = { title: null, path: null, body: null, pageInfo: null };
|
5
13
|
this.page = { title: null, path: null, body: null, pageInfo: null };
|
14
|
+
this.onlineStudents = [];
|
15
|
+
this.activetab = "FACILITATOR_NOTES";
|
6
16
|
this.validateFetch = (response) => {
|
7
17
|
if (!response.ok) {
|
8
18
|
throw response;
|
9
19
|
}
|
10
20
|
return response.json();
|
11
21
|
};
|
12
|
-
this.
|
22
|
+
this.handleNotesPage = (page) => {
|
13
23
|
this.badFetch = null;
|
24
|
+
this.notesPage = page;
|
25
|
+
this.pageDidLoad.emit({ pageInfo: this.notesPage.pageInfo });
|
26
|
+
};
|
27
|
+
this.handleLessonNotesPage = (page) => {
|
28
|
+
this.badFetchLessonNotes = null;
|
29
|
+
this.lessonNotesPage = page;
|
30
|
+
};
|
31
|
+
this.handleNewPage = (page) => {
|
14
32
|
this.page = page;
|
15
|
-
this.
|
33
|
+
this.page = Object.assign(Object.assign({}, this.page), { nextUrl: "/presentation/teacher" + this.page.nextUrl, previousUrl: "/presentation/teacher" + this.page.previousUrl });
|
34
|
+
StoreService.getInstance().UpdateTocPageInfo(this.page.pageInfo);
|
16
35
|
};
|
17
36
|
this.handleBadFetch = (error) => {
|
18
37
|
this.badFetch = error;
|
19
|
-
this.
|
38
|
+
this.notesPage = {
|
20
39
|
title: error.statusText,
|
21
40
|
body: null,
|
22
41
|
path: null,
|
23
42
|
pageInfo: null
|
24
43
|
};
|
25
44
|
};
|
45
|
+
this.handleLessonNotesBadFetch = (error) => {
|
46
|
+
this.badFetchLessonNotes = error;
|
47
|
+
this.lessonNotesPage = {
|
48
|
+
title: error.statusText,
|
49
|
+
body: null,
|
50
|
+
path: null,
|
51
|
+
pageInfo: null
|
52
|
+
};
|
53
|
+
};
|
54
|
+
}
|
55
|
+
async componentWillLoad() {
|
56
|
+
await this.fetchClasses();
|
57
|
+
return this.fetchNotesPage(this.notesPath) && this.fetchPage(this.path);
|
26
58
|
}
|
27
|
-
|
28
|
-
|
59
|
+
componentDidLoad() {
|
60
|
+
this.isLesson = TocStore.state.pageInfo.pageId > 0;
|
61
|
+
if (!this.isLesson) {
|
62
|
+
this.activetab = "ONLINE_STUDENTS";
|
63
|
+
}
|
64
|
+
}
|
65
|
+
async fetchClasses() {
|
66
|
+
await FacilitatorService.getInstance().fetchClasses();
|
67
|
+
}
|
68
|
+
fetchNotesPage(path, oldPath) {
|
69
|
+
if (path === null || path === oldPath) {
|
70
|
+
return;
|
71
|
+
}
|
72
|
+
path = /^\/docs\/pages\/[a-z]{2}\.json$/.test(path) ? path.replace('.json', '/index.json') : path;
|
73
|
+
let lessonPath = this.getLessonPath(path);
|
74
|
+
console.log(lessonPath);
|
75
|
+
return fetch(path).then(this.validateFetch).then(this.handleNotesPage).catch(this.handleBadFetch) &&
|
76
|
+
fetch(lessonPath).then(this.validateFetch).then(this.handleLessonNotesPage).catch(this.handleLessonNotesBadFetch);
|
77
|
+
}
|
78
|
+
getLessonPath(path) {
|
79
|
+
let splittedPath = path.split("/");
|
80
|
+
splittedPath.pop();
|
81
|
+
return splittedPath.join("/") + "/lesson-notes.json";
|
29
82
|
}
|
30
83
|
fetchPage(path, oldPath) {
|
31
|
-
console.log("path", path);
|
32
84
|
if (path === null || path === oldPath) {
|
33
85
|
return;
|
34
86
|
}
|
87
|
+
if (SignalRService.getInstance().connection.connectionState == "Connected") {
|
88
|
+
SignalRService.getInstance().callSignalR("NavigateFacilitatorPresentationCourseTo", { url: this.path.replace(".json", "") });
|
89
|
+
}
|
35
90
|
path = /^\/docs\/pages\/[a-z]{2}\.json$/.test(path) ? path.replace('.json', '/index.json') : path;
|
36
91
|
return fetch(path).then(this.validateFetch).then(this.handleNewPage).catch(this.handleBadFetch);
|
37
92
|
}
|
93
|
+
disconnectedCallback() {
|
94
|
+
StoreService.getInstance().UpdateTocPageInfo(null);
|
95
|
+
}
|
38
96
|
setDocumentMeta(page) {
|
39
97
|
const { title, meta = {} } = page;
|
40
98
|
const metaEls = {
|
@@ -54,7 +112,7 @@ export class FacilitatorPage {
|
|
54
112
|
};
|
55
113
|
// Title
|
56
114
|
const getTitle = () => {
|
57
|
-
const suffix = /^\/docs\/pages.*$/.test(this.
|
115
|
+
const suffix = /^\/docs\/pages.*$/.test(this.notesPath) ? 'Sparkle' : 'Sparkle';
|
58
116
|
// Favor meta title, else go with auto-title. fallback to generic title
|
59
117
|
return meta.title || title ? `${title} - ${suffix}` : suffix;
|
60
118
|
};
|
@@ -74,29 +132,68 @@ export class FacilitatorPage {
|
|
74
132
|
hostData() {
|
75
133
|
return {
|
76
134
|
class: {
|
77
|
-
[this.
|
135
|
+
[this.notesPage.pageClass]: typeof this.notesPage.pageClass === 'string',
|
78
136
|
},
|
79
137
|
};
|
80
138
|
}
|
81
|
-
|
82
|
-
return (h("div", { class: "
|
83
|
-
h("div",
|
139
|
+
renderNavigation() {
|
140
|
+
return (h("div", { class: "p-2 d-md-flex justify-content-md-center" },
|
141
|
+
h("div", { class: "btn-group btn-group-sm", role: "group", "aria-label": "Basic outlined example" },
|
142
|
+
h("button", { type: "button", class: "btn btn-outline-primary" }, "Prev"),
|
143
|
+
h("input", { type: "text", class: "form-control", placeholder: "Input group example", "aria-label": "Input group example", "aria-describedby": "btnGroupAddon", value: this.path.replace("index", ""), readOnly: true }),
|
144
|
+
h("button", { type: "button", class: "btn btn-outline-primary" }, "Next"))));
|
84
145
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
146
|
+
renderTabs() {
|
147
|
+
return (h("main", { class: 'no-demo' },
|
148
|
+
h("ul", { class: "nav nav-tabs" },
|
149
|
+
this.isLesson &&
|
150
|
+
h(Fragment, null,
|
151
|
+
h("li", { class: "nav-item" },
|
152
|
+
h("a", { class: `nav-link ${this.activetab == "FACILITATOR_NOTES" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "FACILITATOR_NOTES" }, "Facilitator Notes")),
|
153
|
+
h("li", { class: "nav-item" },
|
154
|
+
h("a", { class: `nav-link ${this.activetab == "NOTES" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "NOTES" }, "Notes")),
|
155
|
+
h("li", { class: "nav-item" },
|
156
|
+
h("a", { class: `nav-link ${this.activetab == "LESSON_NOTES" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "LESSON_NOTES" }, "Lesson Notes"))),
|
157
|
+
h("li", { class: "nav-item" },
|
158
|
+
h("a", { class: `nav-link ${this.activetab == "ONLINE_STUDENTS" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "ONLINE_STUDENTS" }, "Online Students")),
|
159
|
+
h("li", { class: "nav-item" },
|
160
|
+
h("a", { class: `nav-link ${this.activetab == "DASHBOARD" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "DASHBOARD" }, "Dashboard")),
|
161
|
+
h("li", { class: "nav-item" },
|
162
|
+
h("a", { class: `nav-link ${this.activetab == "EXPORT" ? 'active' : ''}`, href: "javascript:void(0)", onClick: () => this.activetab = "EXPORT" }, "Export"))),
|
163
|
+
h("div", { class: "tab-content" },
|
164
|
+
this.activetab == "FACILITATOR_NOTES" && this.renderFacilitatorNotes(),
|
165
|
+
this.activetab == "NOTES" && h("sparkle-facilitator-notes", null),
|
166
|
+
this.activetab == "LESSON_NOTES" && this.renderLessonNotes(),
|
167
|
+
this.activetab == "ONLINE_STUDENTS" && h("sparkle-online-students", { path: this.path }),
|
168
|
+
this.activetab == "DASHBOARD" && h("sparkle-facilitator-dashboard", null),
|
169
|
+
this.activetab == "EXPORT" && h("sparkle-export-lessons", null))));
|
89
170
|
}
|
90
|
-
|
91
|
-
const {
|
171
|
+
renderLessonNotes() {
|
172
|
+
const { lessonNotesPage } = this;
|
173
|
+
const Template = templates[lessonNotesPage.template] || templates.default;
|
174
|
+
if (this.badFetchLessonNotes) {
|
175
|
+
return templates.error(this.badFetch);
|
176
|
+
}
|
177
|
+
return h(Template, { page: lessonNotesPage });
|
178
|
+
}
|
179
|
+
renderFacilitatorNotes() {
|
180
|
+
const { notesPage } = this;
|
181
|
+
const Template = templates[notesPage.template] || templates.default;
|
92
182
|
if (this.badFetch) {
|
93
183
|
return templates.error(this.badFetch);
|
94
184
|
}
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
185
|
+
return h(Template, { page: notesPage });
|
186
|
+
}
|
187
|
+
render() {
|
188
|
+
console.log(facilitatorStore.state.classes);
|
189
|
+
const { page } = this;
|
190
|
+
const content = this.renderTabs();
|
191
|
+
return h("div", { class: "container" },
|
192
|
+
h("div", { class: "d-flex justify-content-between align-items-center" },
|
193
|
+
h("sparkle-page-footer", { page: page }),
|
194
|
+
h("div", null,
|
195
|
+
h("select", { class: "form-select", "aria-label": "Default select example" }, facilitatorStore.state.classes.map(item => h("option", null, item.ClassName))))),
|
196
|
+
content);
|
100
197
|
}
|
101
198
|
static get is() { return "sparkle-facilitator-page"; }
|
102
199
|
static get originalStyleUrls() { return {
|
@@ -122,11 +219,34 @@ export class FacilitatorPage {
|
|
122
219
|
},
|
123
220
|
"attribute": "path",
|
124
221
|
"reflect": false
|
222
|
+
},
|
223
|
+
"notesPath": {
|
224
|
+
"type": "string",
|
225
|
+
"mutable": false,
|
226
|
+
"complexType": {
|
227
|
+
"original": "string",
|
228
|
+
"resolved": "string",
|
229
|
+
"references": {}
|
230
|
+
},
|
231
|
+
"required": true,
|
232
|
+
"optional": false,
|
233
|
+
"docs": {
|
234
|
+
"tags": [],
|
235
|
+
"text": ""
|
236
|
+
},
|
237
|
+
"attribute": "notes-path",
|
238
|
+
"reflect": false
|
125
239
|
}
|
126
240
|
}; }
|
127
241
|
static get states() { return {
|
128
242
|
"badFetch": {},
|
129
|
-
"
|
243
|
+
"badFetchLessonNotes": {},
|
244
|
+
"isLesson": {},
|
245
|
+
"notesPage": {},
|
246
|
+
"lessonNotesPage": {},
|
247
|
+
"page": {},
|
248
|
+
"onlineStudents": {},
|
249
|
+
"activetab": {}
|
130
250
|
}; }
|
131
251
|
static get events() { return [{
|
132
252
|
"method": "pageDidLoad",
|
@@ -150,6 +270,9 @@ export class FacilitatorPage {
|
|
150
270
|
}
|
151
271
|
}]; }
|
152
272
|
static get watchers() { return [{
|
273
|
+
"propName": "notesPath",
|
274
|
+
"methodName": "fetchNotesPage"
|
275
|
+
}, {
|
153
276
|
"propName": "path",
|
154
277
|
"methodName": "fetchPage"
|
155
278
|
}, {
|
@@ -1,7 +1,42 @@
|
|
1
|
-
import { Component, h } from '@stencil/core';
|
1
|
+
import { Component, h, Prop, State } from '@stencil/core';
|
2
|
+
import facilitatorStore from '../../../../stores/facilitator.store';
|
3
|
+
import { SignalRService } from '../../../../services/signalR.service';
|
2
4
|
export class SparkleOnlineStudents {
|
5
|
+
constructor() {
|
6
|
+
this.onlineStudents = [];
|
7
|
+
this.handleStudentChange = (user, change) => {
|
8
|
+
console.log("handle student change");
|
9
|
+
if (change == "list") {
|
10
|
+
facilitatorStore.state.onlineStudents = [...user];
|
11
|
+
}
|
12
|
+
};
|
13
|
+
}
|
14
|
+
componentDidLoad() {
|
15
|
+
console.log("componentDidLoad");
|
16
|
+
SignalRService.getInstance().connection.on("StudentAction", this.handleStudentChange);
|
17
|
+
this.refreshList();
|
18
|
+
}
|
19
|
+
navigateStudentTo(student) {
|
20
|
+
SignalRService.getInstance().callSignalR("NavigateStudentTo", { userId: student.userId, url: this.path.replace(".json", "") });
|
21
|
+
}
|
22
|
+
refreshList() {
|
23
|
+
SignalRService.getInstance().callSignalR("GetOnlineStudents", { CourseClassId: 1 });
|
24
|
+
}
|
3
25
|
render() {
|
4
|
-
|
26
|
+
console.log("faciliatator state", facilitatorStore.state.onlineStudents);
|
27
|
+
return (h("div", null,
|
28
|
+
h("div", { class: "p-2 pb-4 d-md-flex justify-content-md-end" },
|
29
|
+
h("button", { class: "btn btn-primary pull-right", type: "button", onClick: () => this.refreshList() }, "Refresh")),
|
30
|
+
h("div", null,
|
31
|
+
facilitatorStore.state.onlineStudents.length > 0 &&
|
32
|
+
h("ol", { class: "list-group list-group-numbered" }, facilitatorStore.state.onlineStudents.map((item) => h("li", { class: "list-group-item d-flex justify-content-between align-items-start", key: item.userId },
|
33
|
+
h("div", { class: "ms-2 me-auto" },
|
34
|
+
h("div", { class: "fw-bold" }, item.name),
|
35
|
+
item.currentUrl),
|
36
|
+
h("button", { type: "button", class: "btn btn-primary btn-sm", onClick: () => this.navigateStudentTo(item) }, "Navigate")))),
|
37
|
+
facilitatorStore.state.onlineStudents.length == 0 &&
|
38
|
+
h("div", { class: "text-center" },
|
39
|
+
h("h3", null, "No Students")))));
|
5
40
|
}
|
6
41
|
static get is() { return "sparkle-online-students"; }
|
7
42
|
static get originalStyleUrls() { return {
|
@@ -10,4 +45,26 @@ export class SparkleOnlineStudents {
|
|
10
45
|
static get styleUrls() { return {
|
11
46
|
"$": ["online-students.css"]
|
12
47
|
}; }
|
48
|
+
static get properties() { return {
|
49
|
+
"path": {
|
50
|
+
"type": "string",
|
51
|
+
"mutable": false,
|
52
|
+
"complexType": {
|
53
|
+
"original": "string",
|
54
|
+
"resolved": "string",
|
55
|
+
"references": {}
|
56
|
+
},
|
57
|
+
"required": false,
|
58
|
+
"optional": false,
|
59
|
+
"docs": {
|
60
|
+
"tags": [],
|
61
|
+
"text": ""
|
62
|
+
},
|
63
|
+
"attribute": "path",
|
64
|
+
"reflect": false
|
65
|
+
}
|
66
|
+
}; }
|
67
|
+
static get states() { return {
|
68
|
+
"onlineStudents": {}
|
69
|
+
}; }
|
13
70
|
}
|