@sparkle-learning/core 0.0.17 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (549) hide show
  1. package/dist/cjs/{PrivateRoute-828eada2.js → PrivateRoute-cee9b061.js} +43 -44
  2. package/dist/cjs/{active-router-dca7573e.js → active-router-3bd7b540.js} +1 -1
  3. package/dist/cjs/{app-globals-bea78913.js → app-globals-98121d6d.js} +1 -1
  4. package/dist/cjs/{assets.service-5098e79c.js → assets.service-0c759d51.js} +2 -27
  5. package/dist/cjs/{httpService-6377985c.js → auth.store-aba3d22f.js} +31 -5
  6. package/dist/cjs/{button-active-1edcd24e.js → button-active-9456fb4d.js} +1 -1
  7. package/dist/cjs/compass-svg.cjs.entry.js +132 -0
  8. package/dist/cjs/context-consumer.cjs.entry.js +1 -1
  9. package/dist/cjs/course-select.cjs.entry.js +1 -1
  10. package/dist/cjs/environment-config.service-0e02b049.js +29 -0
  11. package/dist/cjs/facilitator.service-e1e2f719.js +94 -0
  12. package/dist/cjs/feed.service-518d18fd.js +5802 -0
  13. package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +86 -0
  14. package/dist/cjs/{icons-fc80a947.js → icons-a0fef92b.js} +2 -8
  15. package/dist/cjs/{index-123ceda0.js → index-58b3ee93.js} +3 -3
  16. package/dist/cjs/{index-786a6369.js → index-7bcd36a0.js} +1 -1
  17. package/dist/cjs/{index-56cc404a.js → index-fbf4d3bf.js} +2 -0
  18. package/dist/cjs/index.cjs.js +9 -8
  19. package/dist/cjs/index.es-6a9d5ef8.js +13834 -0
  20. package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
  21. package/dist/cjs/ion-alert.cjs.entry.js +4 -4
  22. package/dist/cjs/ion-app.cjs.entry.js +3 -3
  23. package/dist/cjs/ion-back-button.cjs.entry.js +89 -0
  24. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  25. package/dist/cjs/ion-badge.cjs.entry.js +2 -2
  26. package/dist/cjs/{ion-back-button_4.cjs.entry.js → ion-buttons_3.cjs.entry.js} +2 -83
  27. package/dist/cjs/ion-card-header.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-card-subtitle.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-card-title.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  31. package/dist/cjs/{ion-content.cjs.entry.js → ion-content_2.cjs.entry.js} +259 -2
  32. package/dist/cjs/ion-datetime.cjs.entry.js +3 -3
  33. package/dist/cjs/ion-fab-button.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-fab-list.cjs.entry.js +2 -2
  35. package/dist/cjs/ion-fab.cjs.entry.js +2 -2
  36. package/dist/cjs/ion-footer.cjs.entry.js +2 -2
  37. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +2 -2
  39. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +2 -2
  40. package/dist/cjs/ion-item-divider.cjs.entry.js +2 -2
  41. package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-item-option.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-item-options.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-item-sliding.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-loading.cjs.entry.js +3 -3
  46. package/dist/cjs/ion-menu-button.cjs.entry.js +4 -4
  47. package/dist/cjs/ion-menu-toggle.cjs.entry.js +4 -4
  48. package/dist/cjs/ion-menu.cjs.entry.js +3 -3
  49. package/dist/cjs/ion-modal.cjs.entry.js +4 -4
  50. package/dist/cjs/ion-nav-link.cjs.entry.js +1 -1
  51. package/dist/cjs/ion-nav.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-note.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  54. package/dist/cjs/ion-picker.cjs.entry.js +3 -3
  55. package/dist/cjs/ion-popover.cjs.entry.js +4 -4
  56. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  57. package/dist/cjs/ion-refresher-content.cjs.entry.js +2 -2
  58. package/dist/cjs/ion-refresher.cjs.entry.js +2 -2
  59. package/dist/cjs/ion-reorder-group.cjs.entry.js +2 -2
  60. package/dist/cjs/ion-reorder.cjs.entry.js +2 -2
  61. package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
  62. package/dist/cjs/ion-route.cjs.entry.js +1 -1
  63. package/dist/cjs/ion-router-link.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-router-outlet.cjs.entry.js +3 -3
  65. package/dist/cjs/ion-router.cjs.entry.js +1 -1
  66. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  67. package/dist/cjs/ion-segment-button.cjs.entry.js +2 -2
  68. package/dist/cjs/ion-segment.cjs.entry.js +2 -2
  69. package/dist/cjs/ion-select-popover.cjs.entry.js +3 -3
  70. package/dist/cjs/ion-select_2.cjs.entry.js +3 -3
  71. package/dist/cjs/ion-skeleton-text.cjs.entry.js +2 -2
  72. package/dist/cjs/ion-slide.cjs.entry.js +2 -2
  73. package/dist/cjs/ion-slides.cjs.entry.js +2 -2
  74. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  75. package/dist/cjs/ion-tab-bar.cjs.entry.js +2 -2
  76. package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
  77. package/dist/cjs/ion-tab.cjs.entry.js +1 -1
  78. package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
  79. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  80. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
  81. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  82. package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
  83. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +1 -1
  84. package/dist/cjs/{ionic-global-57e21b7b.js → ionic-global-4930d319.js} +1 -1
  85. package/dist/cjs/{ios.transition-b6898b4e.js → ios.transition-6e1fd3d6.js} +2 -2
  86. package/dist/cjs/loader.cjs.js +4 -4
  87. package/dist/cjs/{md.transition-dcccb17e.js → md.transition-3652ad78.js} +2 -2
  88. package/dist/cjs/{menu-toggle-util-36785376.js → menu-toggle-util-a8fb4c56.js} +1 -1
  89. package/dist/cjs/{overlays-09ece60d.js → overlays-08a817ea.js} +1 -1
  90. package/dist/cjs/purify-9804ff8d.js +1355 -0
  91. package/dist/cjs/sparkle-animation-player.cjs.entry.js +1 -1
  92. package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
  93. package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
  94. package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
  95. package/dist/cjs/sparkle-core.cjs.js +4 -4
  96. package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
  97. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +118 -0
  98. package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
  99. package/dist/cjs/sparkle-feedback.cjs.entry.js +19 -6
  100. package/dist/cjs/sparkle-goal-form.cjs.entry.js +75 -34
  101. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +2 -2
  102. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
  103. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
  104. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
  105. package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
  106. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
  107. package/dist/cjs/sparkle-overlay.cjs.entry.js +92 -0
  108. package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
  109. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
  110. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
  111. package/dist/cjs/sparkle-quiz.cjs.entry.js +4 -3
  112. package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
  113. package/dist/cjs/sparkle-sidebar.cjs.entry.js +43 -0
  114. package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
  115. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
  116. package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
  117. package/dist/cjs/sparkle-youtube.cjs.entry.js +1 -1
  118. package/dist/cjs/{status-tap-18630b4c.js → status-tap-466a7c6a.js} +1 -1
  119. package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
  120. package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
  121. package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
  122. package/dist/cjs/{student.service-93a3c3e1.js → student.service-41c7c78d.js} +17 -14
  123. package/dist/collection/assets/svg/profile.svg +2 -0
  124. package/dist/collection/collection-manifest.json +8 -0
  125. package/dist/collection/components/compass-svg/compass-svg.css +15 -0
  126. package/dist/collection/components/compass-svg/compass-svg.js +156 -0
  127. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +7 -0
  128. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +110 -0
  129. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +3 -0
  130. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +214 -0
  131. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +23 -12
  132. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +3 -0
  133. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +144 -0
  134. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +14 -0
  135. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +64 -0
  136. package/dist/collection/components/layout/facilitator/facilitator-page.css +13 -3
  137. package/dist/collection/components/layout/facilitator/facilitator-page.js +147 -24
  138. package/dist/collection/components/layout/facilitator/online-students/online-students.js +59 -2
  139. package/dist/collection/components/layout/page/page.js +93 -4
  140. package/dist/collection/components/layout/page/templates/index.js +2 -0
  141. package/dist/collection/components/layout/page/templates/pdf.js +8 -0
  142. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +3 -3
  143. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +98 -64
  144. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +12 -29
  145. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +23 -6
  146. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +33 -0
  147. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +37 -0
  148. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +8 -8
  149. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +15 -60
  150. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +7 -7
  151. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +3 -1
  152. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +3 -3
  153. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +30 -29
  154. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +111 -11
  155. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +3 -3
  156. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +30 -64
  157. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +10 -3
  158. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +51 -11
  159. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +11 -11
  160. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +38 -8
  161. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +3 -3
  162. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +30 -27
  163. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +16 -16
  164. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +3 -3
  165. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +3 -3
  166. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +14 -1
  167. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +39 -5
  168. package/dist/collection/components/sparkle-login/sparkle-login.js +3 -1
  169. package/dist/collection/components/sparkle-poll/sparkle-poll.css +3 -3
  170. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +3 -3
  171. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +3 -3
  172. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +3 -3
  173. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +3 -3
  174. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +3 -3
  175. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +3 -0
  176. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +126 -0
  177. package/dist/collection/components/sparkle-root/sparkle-root.css +16 -0
  178. package/dist/collection/components/sparkle-root/sparkle-root.js +24 -1
  179. package/dist/collection/components/sparkle-signup/sparkle-signup.js +16 -12
  180. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +13 -13
  181. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +3 -3
  182. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +54 -3
  183. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +35 -8
  184. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +11 -0
  185. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +44 -0
  186. package/dist/collection/icons.js +1 -0
  187. package/dist/collection/models/class.model.js +5 -1
  188. package/dist/collection/models/facilitator-dashboard.model.js +5 -0
  189. package/dist/collection/services/account.service.js +42 -4
  190. package/dist/collection/services/appdata.service.js +60 -0
  191. package/dist/collection/services/auth/auth.service.js +34 -25
  192. package/dist/collection/services/environment/environment-config.js +4 -1
  193. package/dist/collection/services/facilitator.service.js +76 -0
  194. package/dist/collection/services/feed.service.js +43 -0
  195. package/dist/collection/services/httpService.js +16 -3
  196. package/dist/collection/services/media.service.js +29 -0
  197. package/dist/collection/services/signalR.service.js +85 -0
  198. package/dist/collection/services/student.service.js +8 -7
  199. package/dist/collection/stores/auth.store.js +2 -1
  200. package/dist/collection/stores/facilitator.store.js +11 -2
  201. package/dist/collection/stores/feed.store.js +3 -1
  202. package/dist/collection/stores/goal.store.js +2 -0
  203. package/dist/collection/stores/media.store.js +5 -0
  204. package/dist/collection/stores/signalR.store.js +6 -0
  205. package/dist/collection/stores/user.store.js +3 -1
  206. package/dist/collection/util.js +23 -1
  207. package/dist/collection/utils.js +0 -1
  208. package/dist/esm/{PrivateRoute-ff728f5b.js → PrivateRoute-9f0973bb.js} +41 -41
  209. package/dist/esm/{active-router-044bf79e.js → active-router-b3ae32c7.js} +1 -1
  210. package/dist/esm/{app-globals-d592451f.js → app-globals-6451faf3.js} +1 -1
  211. package/dist/esm/{assets.service-da511a45.js → assets.service-66e848b8.js} +2 -26
  212. package/dist/esm/{httpService-010551aa.js → auth.store-dd944bc2.js} +31 -6
  213. package/dist/esm/{button-active-32a41594.js → button-active-97535443.js} +1 -1
  214. package/dist/esm/compass-svg.entry.js +128 -0
  215. package/dist/esm/context-consumer.entry.js +1 -1
  216. package/dist/esm/course-select.entry.js +1 -1
  217. package/dist/esm/environment-config.service-2b5d692b.js +27 -0
  218. package/dist/esm/facilitator.service-cddb2feb.js +91 -0
  219. package/dist/esm/feed.service-0fda1e36.js +5787 -0
  220. package/dist/esm/header-mobile-collapse_60.entry.js +19 -0
  221. package/dist/esm/{icons-ba9ff8a9.js → icons-33e5804c.js} +3 -7
  222. package/dist/esm/{index-24b18689.js → index-55fc9f5e.js} +2 -1
  223. package/dist/esm/{index-243ec2f9.js → index-a94619f9.js} +3 -3
  224. package/dist/esm/{index-c539b2bc.js → index-dc09784f.js} +1 -1
  225. package/dist/esm/index.es-8ad3b6a1.js +13748 -0
  226. package/dist/esm/index.js +7 -6
  227. package/dist/esm/ion-action-sheet.entry.js +4 -4
  228. package/dist/esm/ion-alert.entry.js +4 -4
  229. package/dist/esm/ion-app.entry.js +3 -3
  230. package/dist/esm/ion-back-button.entry.js +85 -0
  231. package/dist/esm/ion-backdrop.entry.js +2 -2
  232. package/dist/esm/ion-badge.entry.js +2 -2
  233. package/dist/esm/{ion-back-button_4.entry.js → ion-buttons_3.entry.js} +4 -84
  234. package/dist/esm/ion-card-header.entry.js +2 -2
  235. package/dist/esm/ion-card-subtitle.entry.js +2 -2
  236. package/dist/esm/ion-card-title.entry.js +2 -2
  237. package/dist/esm/ion-chip.entry.js +2 -2
  238. package/dist/esm/{ion-content.entry.js → ion-content_2.entry.js} +259 -3
  239. package/dist/esm/ion-datetime.entry.js +3 -3
  240. package/dist/esm/ion-fab-button.entry.js +2 -2
  241. package/dist/esm/ion-fab-list.entry.js +2 -2
  242. package/dist/esm/ion-fab.entry.js +2 -2
  243. package/dist/esm/ion-footer.entry.js +2 -2
  244. package/dist/esm/ion-img.entry.js +2 -2
  245. package/dist/esm/ion-infinite-scroll-content.entry.js +2 -2
  246. package/dist/esm/ion-infinite-scroll.entry.js +2 -2
  247. package/dist/esm/ion-item-divider.entry.js +2 -2
  248. package/dist/esm/ion-item-group.entry.js +2 -2
  249. package/dist/esm/ion-item-option.entry.js +2 -2
  250. package/dist/esm/ion-item-options.entry.js +2 -2
  251. package/dist/esm/ion-item-sliding.entry.js +2 -2
  252. package/dist/esm/ion-loading.entry.js +3 -3
  253. package/dist/esm/ion-menu-button.entry.js +4 -4
  254. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  255. package/dist/esm/ion-menu.entry.js +3 -3
  256. package/dist/esm/ion-modal.entry.js +4 -4
  257. package/dist/esm/ion-nav-link.entry.js +1 -1
  258. package/dist/esm/ion-nav.entry.js +3 -3
  259. package/dist/esm/ion-note.entry.js +2 -2
  260. package/dist/esm/ion-picker-column.entry.js +2 -2
  261. package/dist/esm/ion-picker.entry.js +3 -3
  262. package/dist/esm/ion-popover.entry.js +4 -4
  263. package/dist/esm/ion-progress-bar.entry.js +2 -2
  264. package/dist/esm/ion-refresher-content.entry.js +2 -2
  265. package/dist/esm/ion-refresher.entry.js +2 -2
  266. package/dist/esm/ion-reorder-group.entry.js +2 -2
  267. package/dist/esm/ion-reorder.entry.js +2 -2
  268. package/dist/esm/ion-route-redirect.entry.js +1 -1
  269. package/dist/esm/ion-route.entry.js +1 -1
  270. package/dist/esm/ion-router-link.entry.js +2 -2
  271. package/dist/esm/ion-router-outlet.entry.js +3 -3
  272. package/dist/esm/ion-router.entry.js +1 -1
  273. package/dist/esm/ion-searchbar.entry.js +2 -2
  274. package/dist/esm/ion-segment-button.entry.js +2 -2
  275. package/dist/esm/ion-segment.entry.js +2 -2
  276. package/dist/esm/ion-select-popover.entry.js +3 -3
  277. package/dist/esm/ion-select_2.entry.js +3 -3
  278. package/dist/esm/ion-skeleton-text.entry.js +2 -2
  279. package/dist/esm/ion-slide.entry.js +2 -2
  280. package/dist/esm/ion-slides.entry.js +2 -2
  281. package/dist/esm/ion-split-pane.entry.js +2 -2
  282. package/dist/esm/ion-tab-bar.entry.js +2 -2
  283. package/dist/esm/ion-tab-button.entry.js +2 -2
  284. package/dist/esm/ion-tab.entry.js +1 -1
  285. package/dist/esm/ion-tabs.entry.js +1 -1
  286. package/dist/esm/ion-textarea.entry.js +2 -2
  287. package/dist/esm/ion-thumbnail.entry.js +2 -2
  288. package/dist/esm/ion-toast.entry.js +3 -3
  289. package/dist/esm/ion-toggle.entry.js +2 -2
  290. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  291. package/dist/esm/{ionic-global-fddd88d0.js → ionic-global-1f9287cc.js} +1 -1
  292. package/dist/esm/{ios.transition-1ffb59e3.js → ios.transition-d01abefd.js} +2 -2
  293. package/dist/esm/loader.js +4 -4
  294. package/dist/esm/{md.transition-18b7b80d.js → md.transition-245ffa55.js} +2 -2
  295. package/dist/esm/{menu-toggle-util-729c91ad.js → menu-toggle-util-fe83fcf5.js} +1 -1
  296. package/dist/esm/{overlays-8606ae17.js → overlays-8363621c.js} +2 -2
  297. package/dist/esm/purify-76634fc8.js +1353 -0
  298. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  299. package/dist/esm/sparkle-code.entry.js +2 -2
  300. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  301. package/dist/esm/sparkle-compass.entry.js +1 -1
  302. package/dist/esm/sparkle-core.js +4 -4
  303. package/dist/esm/sparkle-emoji.entry.js +1 -1
  304. package/dist/esm/sparkle-facilitator-notes-form.entry.js +114 -0
  305. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  306. package/dist/esm/sparkle-feedback.entry.js +19 -6
  307. package/dist/esm/sparkle-goal-form.entry.js +73 -32
  308. package/dist/esm/sparkle-gww-comment-list.entry.js +2 -2
  309. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  310. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  311. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  312. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  313. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  314. package/dist/esm/sparkle-overlay.entry.js +88 -0
  315. package/dist/esm/sparkle-poll.entry.js +1 -1
  316. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  317. package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
  318. package/dist/esm/sparkle-quiz.entry.js +3 -2
  319. package/dist/esm/sparkle-select.entry.js +1 -1
  320. package/dist/esm/sparkle-sidebar.entry.js +39 -0
  321. package/dist/esm/sparkle-tab.entry.js +1 -1
  322. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  323. package/dist/esm/sparkle-tabs.entry.js +1 -1
  324. package/dist/esm/sparkle-youtube.entry.js +1 -1
  325. package/dist/esm/{status-tap-83804717.js → status-tap-9221cd79.js} +1 -1
  326. package/dist/esm/stencil-async-content.entry.js +1 -1
  327. package/dist/esm/stencil-route-title.entry.js +2 -2
  328. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  329. package/dist/esm/{student.service-a99d0248.js → student.service-c36c5a75.js} +12 -9
  330. package/dist/sparkle-core/index.esm.js +1 -1
  331. package/dist/sparkle-core/{p-7dbe06d4.entry.js → p-016bf847.entry.js} +1 -1
  332. package/dist/sparkle-core/{p-5f6e7530.entry.js → p-019d9d02.entry.js} +1 -1
  333. package/dist/sparkle-core/p-03eb2164.js +1 -0
  334. package/dist/sparkle-core/{p-c94a7e74.entry.js → p-03fd27d0.entry.js} +1 -1
  335. package/dist/sparkle-core/p-07018d29.js +1 -0
  336. package/dist/sparkle-core/p-083d57a6.entry.js +1 -0
  337. package/dist/sparkle-core/p-090f2624.js +1 -0
  338. package/dist/sparkle-core/{p-db5369a3.entry.js → p-09d43bee.entry.js} +1 -1
  339. package/dist/sparkle-core/{p-010fc9dd.entry.js → p-0bd3e81f.entry.js} +1 -1
  340. package/dist/sparkle-core/{p-9c3e864e.js → p-0e1c7c8c.js} +1 -1
  341. package/dist/sparkle-core/{p-b0f4601a.entry.js → p-0efbc0b3.entry.js} +1 -1
  342. package/dist/sparkle-core/{p-cf4068ca.entry.js → p-13b0cdfc.entry.js} +1 -1
  343. package/dist/sparkle-core/{p-b8da1d60.entry.js → p-13c9bf3a.entry.js} +1 -1
  344. package/dist/sparkle-core/{p-5ef558e2.entry.js → p-151afa9e.entry.js} +1 -1
  345. package/dist/sparkle-core/{p-a3115b74.entry.js → p-15d68269.entry.js} +1 -1
  346. package/dist/sparkle-core/p-17507402.entry.js +1 -0
  347. package/dist/sparkle-core/{p-f7fe74de.entry.js → p-1bf8bed6.entry.js} +1 -1
  348. package/dist/sparkle-core/p-1ca4bf1d.entry.js +1 -0
  349. package/dist/sparkle-core/{p-a0be4cda.entry.js → p-1e866c41.entry.js} +1 -1
  350. package/dist/sparkle-core/p-22926eed.entry.js +1 -0
  351. package/dist/sparkle-core/{p-d9f138ff.entry.js → p-2474bf60.entry.js} +1 -1
  352. package/dist/sparkle-core/{p-c92e20cf.entry.js → p-25bbf9b4.entry.js} +1 -1
  353. package/dist/sparkle-core/p-2a45b732.js +1 -0
  354. package/dist/sparkle-core/{p-ec5f3b00.entry.js → p-2abf4d37.entry.js} +1 -1
  355. package/dist/sparkle-core/{p-380dc0b7.entry.js → p-2c5edb9f.entry.js} +1 -1
  356. package/dist/sparkle-core/p-30b641a4.entry.js +1 -0
  357. package/dist/sparkle-core/{p-e1d9420b.entry.js → p-359422b6.entry.js} +1 -1
  358. package/dist/sparkle-core/{p-dec1556a.entry.js → p-37bfb548.entry.js} +1 -1
  359. package/dist/sparkle-core/{p-c0f92ba3.entry.js → p-3a29a75b.entry.js} +1 -1
  360. package/dist/sparkle-core/{p-0de00e5e.entry.js → p-3bb55510.entry.js} +1 -1
  361. package/dist/sparkle-core/p-3be0a218.js +1 -0
  362. package/dist/sparkle-core/{p-05180844.entry.js → p-3cd28c60.entry.js} +1 -1
  363. package/dist/sparkle-core/{p-f3b47828.entry.js → p-3f5d7a08.entry.js} +1 -1
  364. package/dist/sparkle-core/p-40db85ac.entry.js +1 -0
  365. package/dist/sparkle-core/{p-4c3378e6.entry.js → p-447163be.entry.js} +1 -1
  366. package/dist/sparkle-core/{p-3fa3bad0.entry.js → p-49265a8e.entry.js} +1 -1
  367. package/dist/sparkle-core/{p-105a015d.entry.js → p-4950f841.entry.js} +1 -1
  368. package/dist/sparkle-core/p-4d8cb365.entry.js +1 -0
  369. package/dist/sparkle-core/{p-6025bf4c.entry.js → p-4e28ca37.entry.js} +1 -1
  370. package/dist/sparkle-core/{p-0f5def84.entry.js → p-5073899e.entry.js} +1 -1
  371. package/dist/sparkle-core/p-52355989.entry.js +1 -0
  372. package/dist/sparkle-core/{p-a2d7538f.entry.js → p-581ca370.entry.js} +1 -1
  373. package/dist/sparkle-core/{p-0b9b51ad.entry.js → p-5b366c20.entry.js} +1 -1
  374. package/dist/sparkle-core/{p-2f7aca1a.entry.js → p-5dce20b9.entry.js} +1 -1
  375. package/dist/sparkle-core/{p-364c12d7.entry.js → p-6006beec.entry.js} +1 -1
  376. package/dist/sparkle-core/{p-4e1f43b3.entry.js → p-600d04fc.entry.js} +1 -1
  377. package/dist/sparkle-core/{p-be4c1900.entry.js → p-60828739.entry.js} +1 -1
  378. package/dist/sparkle-core/{p-dedb1e25.entry.js → p-6112b180.entry.js} +1 -1
  379. package/dist/sparkle-core/p-660fccf6.js +1 -0
  380. package/dist/sparkle-core/{p-1865fef1.entry.js → p-66e3bd1c.entry.js} +1 -1
  381. package/dist/sparkle-core/{p-90e2a1a4.entry.js → p-66eb6b7a.entry.js} +1 -1
  382. package/dist/sparkle-core/p-67ddec3f.entry.js +1 -0
  383. package/dist/sparkle-core/p-68cb7d41.entry.js +1 -0
  384. package/dist/sparkle-core/{p-31bfcaa8.entry.js → p-68f3c93d.entry.js} +1 -1
  385. package/dist/sparkle-core/p-69cd49de.js +1 -0
  386. package/dist/sparkle-core/{p-be2f0921.js → p-6d506f4e.js} +1 -1
  387. package/dist/sparkle-core/{p-a32fd85b.entry.js → p-6edbdde5.entry.js} +1 -1
  388. package/dist/sparkle-core/p-6f0ecbe3.js +1 -0
  389. package/dist/sparkle-core/{p-b3563859.entry.js → p-73a646fb.entry.js} +1 -1
  390. package/dist/sparkle-core/{p-c9ada4d9.js → p-765b8593.js} +1 -1
  391. package/dist/sparkle-core/{p-fa952096.js → p-770128c8.js} +1 -1
  392. package/dist/sparkle-core/{p-355ace68.entry.js → p-7b37d523.entry.js} +1 -1
  393. package/dist/sparkle-core/{p-950a716b.entry.js → p-7d83d006.entry.js} +1 -1
  394. package/dist/sparkle-core/p-7f3d5344.js +1 -0
  395. package/dist/sparkle-core/{p-6ac166bf.entry.js → p-81651f26.entry.js} +1 -1
  396. package/dist/sparkle-core/{p-163a6f39.entry.js → p-85d31769.entry.js} +1 -1
  397. package/dist/sparkle-core/{p-ce4abe36.entry.js → p-86148067.entry.js} +1 -1
  398. package/dist/sparkle-core/{p-c590df76.entry.js → p-8b5bc1d6.entry.js} +1 -1
  399. package/dist/sparkle-core/{p-d80f9e60.entry.js → p-8c3ee44c.entry.js} +1 -1
  400. package/dist/sparkle-core/{p-5479a3af.entry.js → p-9007a06b.entry.js} +1 -1
  401. package/dist/sparkle-core/{p-7776c809.entry.js → p-90482861.entry.js} +1 -1
  402. package/dist/sparkle-core/{p-0962db66.entry.js → p-92d42c10.entry.js} +1 -1
  403. package/dist/sparkle-core/p-9a443f51.js +1 -0
  404. package/dist/sparkle-core/{p-76613f4e.entry.js → p-9ca56f5d.entry.js} +1 -1
  405. package/dist/sparkle-core/{p-5d0fe13c.entry.js → p-a061537e.entry.js} +1 -1
  406. package/dist/sparkle-core/{p-f3d79061.entry.js → p-a250e2ae.entry.js} +1 -1
  407. package/dist/sparkle-core/{p-a78910ca.entry.js → p-abe2676a.entry.js} +1 -1
  408. package/dist/sparkle-core/{p-dac72f8f.entry.js → p-ac5e5308.entry.js} +1 -1
  409. package/dist/sparkle-core/{p-52c98e23.entry.js → p-afbaad64.entry.js} +1 -1
  410. package/dist/sparkle-core/p-b080c1e3.entry.js +1 -0
  411. package/dist/sparkle-core/p-b226f54d.js +1 -0
  412. package/dist/sparkle-core/p-b2d4840f.js +3 -0
  413. package/dist/sparkle-core/{p-7cf984f4.entry.js → p-bac45a26.entry.js} +1 -1
  414. package/dist/sparkle-core/p-bbe5977b.entry.js +1 -0
  415. package/dist/sparkle-core/p-bc568dcb.js +1 -0
  416. package/dist/sparkle-core/p-bccd9036.entry.js +1 -0
  417. package/dist/sparkle-core/{p-47c18479.entry.js → p-c163c16d.entry.js} +1 -1
  418. package/dist/sparkle-core/{p-a1227663.entry.js → p-c3166584.entry.js} +1 -1
  419. package/dist/sparkle-core/{p-1f06b38f.entry.js → p-c34269ae.entry.js} +1 -1
  420. package/dist/sparkle-core/{p-1cbcfe63.js → p-c466ee32.js} +1 -1
  421. package/dist/sparkle-core/{p-13cf6a32.entry.js → p-c6710592.entry.js} +1 -1
  422. package/dist/sparkle-core/{p-1f20b217.entry.js → p-c7022391.entry.js} +1 -1
  423. package/dist/sparkle-core/{p-2734a99d.entry.js → p-c70b9765.entry.js} +1 -1
  424. package/dist/sparkle-core/{p-50e824ef.entry.js → p-c82b05e0.entry.js} +1 -1
  425. package/dist/sparkle-core/{p-3d200504.entry.js → p-cf2332bb.entry.js} +1 -1
  426. package/dist/sparkle-core/{p-268eb6c0.entry.js → p-d069b834.entry.js} +1 -1
  427. package/dist/sparkle-core/{p-fec7a97a.js → p-d4ad796c.js} +1 -1
  428. package/dist/sparkle-core/{p-fa192cf5.entry.js → p-d4d9aa4a.entry.js} +1 -1
  429. package/dist/sparkle-core/p-d5023db0.entry.js +1 -0
  430. package/dist/sparkle-core/p-d6152660.entry.js +1 -0
  431. package/dist/sparkle-core/{p-3d23a42a.js → p-d63406d8.js} +1 -1
  432. package/dist/sparkle-core/{p-63915a84.entry.js → p-dba672d5.entry.js} +1 -1
  433. package/dist/sparkle-core/{p-20be4996.entry.js → p-dd73d01a.entry.js} +1 -1
  434. package/dist/sparkle-core/p-de33872d.entry.js +1 -0
  435. package/dist/sparkle-core/p-dee2128a.entry.js +1 -0
  436. package/dist/sparkle-core/{p-2b5cc8a6.entry.js → p-df07e132.entry.js} +1 -1
  437. package/dist/sparkle-core/p-e5d5aaa5.js +1 -0
  438. package/dist/sparkle-core/{p-511b5347.entry.js → p-e72c6d87.entry.js} +1 -1
  439. package/dist/sparkle-core/{p-bcf3d05a.entry.js → p-e818b11d.entry.js} +1 -1
  440. package/dist/sparkle-core/{p-7dd253f8.entry.js → p-e8df6ea6.entry.js} +1 -1
  441. package/dist/sparkle-core/{p-4c7d0f6b.entry.js → p-e975924a.entry.js} +1 -1
  442. package/dist/sparkle-core/{p-46757cdc.entry.js → p-eb56aa20.entry.js} +1 -1
  443. package/dist/sparkle-core/p-ec2e029e.js +483 -0
  444. package/dist/sparkle-core/{p-97e03cb4.js → p-ef2a2172.js} +1 -1
  445. package/dist/sparkle-core/p-f1a4ab33.entry.js +1 -0
  446. package/dist/sparkle-core/p-f43ac631.entry.js +1 -0
  447. package/dist/sparkle-core/{p-495e321e.entry.js → p-f72a6e6d.entry.js} +1 -1
  448. package/dist/sparkle-core/{p-14a861e1.entry.js → p-f9143c5d.entry.js} +1 -1
  449. package/dist/sparkle-core/{p-8d1ec1bb.entry.js → p-fd62283e.entry.js} +1 -1
  450. package/dist/sparkle-core/{p-396c0198.entry.js → p-fef71e0e.entry.js} +1 -1
  451. package/dist/sparkle-core/sparkle-core.css +1 -1
  452. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  453. package/dist/types/components/compass-svg/compass-svg.d.ts +34 -0
  454. package/dist/types/components/layout/facilitator/export-lessons/export-lessons.d.ts +16 -0
  455. package/dist/types/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.d.ts +22 -0
  456. package/dist/types/components/layout/facilitator/facilitator-header/facilitator-header.d.ts +1 -0
  457. package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.d.ts +24 -0
  458. package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes.d.ts +9 -0
  459. package/dist/types/components/layout/facilitator/facilitator-page.d.ts +19 -2
  460. package/dist/types/components/layout/facilitator/online-students/online-students.d.ts +6 -0
  461. package/dist/types/components/layout/page/page.d.ts +8 -0
  462. package/dist/types/components/layout/page/templates/index.d.ts +1 -0
  463. package/dist/types/components/layout/page/templates/pdf.d.ts +2 -0
  464. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.d.ts +6 -5
  465. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.d.ts +1 -0
  466. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.d.ts +4 -0
  467. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goals.d.ts +3 -3
  468. package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.d.ts +9 -2
  469. package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww.d.ts +4 -2
  470. package/dist/types/components/mini-apps/sparkle-health/sparkle-health.d.ts +4 -1
  471. package/dist/types/components/mini-apps/sparkle-mood/sparkle-mood.d.ts +3 -0
  472. package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +6 -4
  473. package/dist/types/components/sparkle-forgot-password/sparkle-forgot-password.d.ts +3 -0
  474. package/dist/types/components/sparkle-reset-password/sparkle-reset-password.d.ts +22 -0
  475. package/dist/types/components/sparkle-root/sparkle-root.d.ts +4 -0
  476. package/dist/types/components/sparkle-signup/sparkle-signup.d.ts +1 -1
  477. package/dist/types/components/sparkle-user-profile/sparkle-user-profile.d.ts +4 -0
  478. package/dist/types/components/sparkle-validation-error/sparkle-validation-error.d.ts +7 -0
  479. package/dist/types/components.d.ts +143 -6
  480. package/dist/types/models/api.model.d.ts +8 -0
  481. package/dist/types/models/class.model.d.ts +59 -6
  482. package/dist/types/models/facilitator-dashboard.model.d.ts +61 -0
  483. package/dist/types/models/goal.model.d.ts +3 -2
  484. package/dist/types/services/account.service.d.ts +11 -2
  485. package/dist/types/services/appdata.service.d.ts +13 -0
  486. package/dist/types/services/facilitator.service.d.ts +22 -0
  487. package/dist/types/services/feed.service.d.ts +10 -0
  488. package/dist/types/services/httpService.d.ts +1 -0
  489. package/dist/types/services/media.service.d.ts +8 -0
  490. package/dist/types/services/signalR.service.d.ts +10 -0
  491. package/dist/types/services/student.service.d.ts +1 -1
  492. package/dist/types/stores/auth.store.d.ts +1 -0
  493. package/dist/types/stores/facilitator.store.d.ts +11 -2
  494. package/dist/types/stores/feed.store.d.ts +3 -1
  495. package/dist/types/stores/goal.store.d.ts +4 -1
  496. package/dist/types/stores/media.store.d.ts +8 -0
  497. package/dist/types/stores/signalR.store.d.ts +10 -0
  498. package/dist/types/stores/user.store.d.ts +3 -1
  499. package/dist/types/util.d.ts +11 -0
  500. package/package.json +7 -3
  501. package/dist/cjs/header-mobile-collapse_51.cjs.entry.js +0 -5285
  502. package/dist/cjs/ion-card-content.cjs.entry.js +0 -30
  503. package/dist/cjs/ion-card.cjs.entry.js +0 -70
  504. package/dist/cjs/ion-header.cjs.entry.js +0 -264
  505. package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
  506. package/dist/cjs/sparkle-page-footer.cjs.entry.js +0 -27
  507. package/dist/cjs/sparkle-pagination.cjs.entry.js +0 -31
  508. package/dist/cjs/util-dd1e6ff1.js +0 -23
  509. package/dist/collection/assets/lib/sparkle.js +0 -524
  510. package/dist/collection/assets/lib/sparkle.signalr-client.js +0 -135
  511. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1.js +0 -2884
  512. package/dist/esm/header-mobile-collapse_51.entry.js +0 -5231
  513. package/dist/esm/ion-card-content.entry.js +0 -26
  514. package/dist/esm/ion-card.entry.js +0 -66
  515. package/dist/esm/ion-header.entry.js +0 -260
  516. package/dist/esm/ion-spinner.entry.js +0 -60
  517. package/dist/esm/sparkle-page-footer.entry.js +0 -23
  518. package/dist/esm/sparkle-pagination.entry.js +0 -27
  519. package/dist/esm/util-0e88110d.js +0 -17
  520. package/dist/sparkle-core/p-05928d94.js +0 -1
  521. package/dist/sparkle-core/p-0986aad3.entry.js +0 -1
  522. package/dist/sparkle-core/p-12e5f5bf.entry.js +0 -1
  523. package/dist/sparkle-core/p-14a9aad3.js +0 -1
  524. package/dist/sparkle-core/p-1b5d4ef9.js +0 -1
  525. package/dist/sparkle-core/p-1bd160a6.entry.js +0 -1
  526. package/dist/sparkle-core/p-1e4381e5.entry.js +0 -1
  527. package/dist/sparkle-core/p-1f0bcf05.entry.js +0 -1
  528. package/dist/sparkle-core/p-22ae16f5.entry.js +0 -1
  529. package/dist/sparkle-core/p-57076f68.entry.js +0 -1
  530. package/dist/sparkle-core/p-5766d1d6.js +0 -1
  531. package/dist/sparkle-core/p-58ede27f.js +0 -1
  532. package/dist/sparkle-core/p-5c36d43b.entry.js +0 -1
  533. package/dist/sparkle-core/p-5c4eb08a.entry.js +0 -1
  534. package/dist/sparkle-core/p-5dd83ae8.entry.js +0 -1
  535. package/dist/sparkle-core/p-68c1261b.js +0 -1
  536. package/dist/sparkle-core/p-70a02fac.entry.js +0 -1
  537. package/dist/sparkle-core/p-8a3f8ce0.entry.js +0 -1
  538. package/dist/sparkle-core/p-9563bf6c.js +0 -1
  539. package/dist/sparkle-core/p-a220da33.entry.js +0 -1
  540. package/dist/sparkle-core/p-ad765e98.entry.js +0 -1
  541. package/dist/sparkle-core/p-b735f189.js +0 -1
  542. package/dist/sparkle-core/p-cb119ac9.entry.js +0 -1
  543. package/dist/sparkle-core/p-cee6f4ba.entry.js +0 -1
  544. package/dist/sparkle-core/p-d6ccecb6.js +0 -1
  545. package/dist/sparkle-core/p-e72084e9.entry.js +0 -1
  546. package/dist/sparkle-core/p-e8f81287.entry.js +0 -1
  547. package/dist/sparkle-core/p-f3a69821.entry.js +0 -1
  548. package/dist/sparkle-core/p-f5af344e.entry.js +0 -1
  549. package/dist/sparkle-core/p-fbbfa021.js +0 -1
@@ -2,16 +2,22 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
6
- const assets_service = require('./assets.service-5098e79c.js');
7
- const util = require('./util-dd1e6ff1.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
+ require('./ionic-global-4930d319.js');
7
+ const environmentConfig_service = require('./environment-config.service-0e02b049.js');
8
+ const assets_service = require('./assets.service-0c759d51.js');
9
+ require('./auth.store-aba3d22f.js');
10
+ require('./helpers-26770c32.js');
11
+ require('./hardware-back-button-ca468aae.js');
12
+ require('./overlays-08a817ea.js');
13
+ const feed_service = require('./feed.service-518d18fd.js');
8
14
 
9
15
  const sparkleGoalFormCss = ":host{display:block}";
10
16
 
11
17
  const SparkleGoalForm = class {
12
18
  constructor(hostRef) {
13
19
  index.registerInstance(this, hostRef);
14
- this.title = {
20
+ this.name = {
15
21
  valid: false,
16
22
  value: ''
17
23
  };
@@ -31,24 +37,27 @@ const SparkleGoalForm = class {
31
37
  };
32
38
  this.submitted = false;
33
39
  }
34
- goalHanlder() {
35
- this.updateGoal();
40
+ goalHanlder(data) {
41
+ this.updateGoal(data.AppData);
36
42
  }
37
43
  ;
38
44
  componentWillLoad() {
39
- this.updateGoal();
40
- }
41
- updateGoal() {
42
- if (this.goal) {
43
- this.title = Object.assign(Object.assign({}, this.title), { value: this.goal.Title });
44
- this.description = Object.assign(Object.assign({}, this.description), { value: this.goal.Description });
45
- this.category = Object.assign(Object.assign({}, this.category), { value: this.goal.Category });
46
- this.progress = this.goal.Progress;
45
+ if (this.appData) {
46
+ this.updateGoal(this.appData.AppData);
47
+ }
48
+ }
49
+ updateGoal(data) {
50
+ if (data) {
51
+ this.name = Object.assign(Object.assign({}, this.name), { value: data.Name });
52
+ this.description = Object.assign(Object.assign({}, this.description), { value: data.Description });
53
+ this.category = Object.assign(Object.assign({}, this.category), { value: data.Category });
54
+ this.goalUpdateText = Object.assign(Object.assign({}, this.goalUpdateText), { value: data.GoalText });
55
+ this.progress = data.Percentage;
47
56
  }
48
57
  }
49
58
  handleTitle(ev) {
50
59
  this.validateTitle();
51
- this.title = Object.assign(Object.assign({}, this.title), { value: ev.target.value });
60
+ this.name = Object.assign(Object.assign({}, this.name), { value: ev.target.value });
52
61
  }
53
62
  handleDescription(ev) {
54
63
  this.validateDescription();
@@ -62,15 +71,15 @@ const SparkleGoalForm = class {
62
71
  this.goalUpdateText = Object.assign(Object.assign({}, this.goalUpdateText), { value: ev.target.value });
63
72
  }
64
73
  validateTitle() {
65
- if (this.title.value && this.title.value.length > 0) {
66
- this.title = Object.assign(Object.assign({}, this.title), { valid: true });
74
+ if (this.name.value && this.name.value.length > 0) {
75
+ this.name = Object.assign(Object.assign({}, this.name), { valid: true });
67
76
  return;
68
77
  }
69
- this.title = Object.assign(Object.assign({}, this.title), { valid: false });
78
+ this.name = Object.assign(Object.assign({}, this.name), { valid: false });
70
79
  }
71
80
  validateDescription() {
72
81
  if (this.description.value && this.description.value.length > 0) {
73
- this.title = Object.assign(Object.assign({}, this.description), { valid: true });
82
+ this.description = Object.assign(Object.assign({}, this.description), { valid: true });
74
83
  return;
75
84
  }
76
85
  this.description = Object.assign(Object.assign({}, this.description), { valid: false });
@@ -82,30 +91,62 @@ const SparkleGoalForm = class {
82
91
  }
83
92
  this.category = Object.assign(Object.assign({}, this.category), { valid: false });
84
93
  }
85
- onSubmit(e) {
94
+ validateGoalUpdateText() {
95
+ if (this.goalUpdateText.value && this.goalUpdateText.value.length > 0) {
96
+ this.goalUpdateText = Object.assign(Object.assign({}, this.goalUpdateText), { valid: true });
97
+ return;
98
+ }
99
+ this.goalUpdateText = Object.assign(Object.assign({}, this.goalUpdateText), { valid: false });
100
+ }
101
+ async onSubmit(e) {
86
102
  e.preventDefault();
87
103
  console.log('clicked signup');
88
104
  this.validateTitle();
89
105
  this.validateDescription();
90
106
  this.validateCategoy();
91
107
  this.submitted = true;
108
+ if (this.appData && this.appData.Id > 0) {
109
+ this.validateGoalUpdateText();
110
+ if (this.name.valid && this.description.valid && this.category.valid && this.goalUpdateText.valid) {
111
+ //update
112
+ var appData = feed_service.GetGoalAppData(this.name.value, this.description.value, this.category.value, this.progress, this.goalUpdateText.value);
113
+ const result = await feed_service.AppDataService.getInstance().updateGoal({ Id: this.appData.Id, MiniAppId: feed_service.SparkleGlobal.MY_GOALS_APP_ID, AppJsonData: JSON.stringify(appData) });
114
+ if (result.Succeeded) {
115
+ if (this.public) {
116
+ await this.postToFeed();
117
+ }
118
+ else {
119
+ this.dismiss();
120
+ }
121
+ }
122
+ }
123
+ }
124
+ else {
125
+ if (this.name.valid && this.description.valid && this.category.valid) {
126
+ //add
127
+ var appData = feed_service.GetGoalAppData(this.name.value, this.description.value, this.category.value, this.progress, this.goalUpdateText.value);
128
+ const result = await feed_service.AppDataService.getInstance().createGoal({ MiniAppId: feed_service.SparkleGlobal.MY_GOALS_APP_ID, AppJsonData: JSON.stringify(appData) });
129
+ if (result.Succeeded) {
130
+ this.dismiss();
131
+ }
132
+ }
133
+ }
92
134
  }
93
135
  async postToFeed() {
94
- this.submitted = true;
95
- const sparkleConfig = assets_service.EnvironmentConfigService.getInstance().get('sparkle');
136
+ const sparkleConfig = environmentConfig_service.EnvironmentConfigService.getInstance().get('sparkle');
96
137
  const tocData = await assets_service.AssetsService.getInstance().loadJsonFile(sparkleConfig.tocPath);
97
138
  var model = {
98
139
  CourseId: tocData.id,
99
- MiniAppId: util.SparkleGlobal.MY_GOALS_APP_ID,
100
- StudentAppDataId: this.goal.StudentAppDataId,
101
- PostText: util.MyGoalTemplate(this.goal.Title, this.goalUpdateText.value, this.progress),
140
+ MiniAppId: feed_service.SparkleGlobal.MY_GOALS_APP_ID,
141
+ PostText: feed_service.MyGoalTemplate(this.name.value, this.goalUpdateText.value, this.progress),
142
+ PostTextJSON: feed_service.MyGoalTemplateJSON(this.name.value, this.goalUpdateText.value, this.progress),
102
143
  IsPublic: this.public,
103
- Percentage: this.progress,
104
- GoalText: this.goalUpdateText,
105
- IsProgress: true,
144
+ ExternalResourceUrl: "",
106
145
  };
107
- console.log(model);
108
- //this.store.dispatch(new fromRootStore.PostGoalProgress(model));
146
+ const result = await feed_service.FeedService.getInstance().createPost(model);
147
+ if (result.Succeeded) {
148
+ this.dismiss();
149
+ }
109
150
  }
110
151
  dismiss(data) {
111
152
  // dismiss the closest modal and optionally pass back data
@@ -114,18 +155,18 @@ const SparkleGoalForm = class {
114
155
  });
115
156
  }
116
157
  renderEditBookingFields() {
117
- if (this.goal) {
118
- return (index.h("div", null, index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Goal Progress Info"), index.h("ion-input", { name: "title", type: "text", value: this.goalUpdateText.value, onInput: (ev) => this.handleGoalProgressInfo(ev) })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.goalUpdateText.valid || this.submitted === false, class: "ion-padding-start" }, "Goal Progress text is required")), index.h("ion-item", null, index.h("ion-label", { position: "stacked" }, "Progress"), index.h("ion-range", { value: this.progress, min: 1, max: 100, step: 1, snaps: true, pin: true, onIonChange: (e) => this.progress = +e.detail.value }, index.h("ion-icon", { size: "small", slot: "start", name: "pulse" }), index.h("ion-icon", { name: "pulse", size: "small" }), index.h("strong", { slot: "end" }, this.progress))), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.progress <= 0 || this.submitted === false, class: "ion-padding-start" }, "Min Progress value should be 1")), index.h("ion-item", { lines: "none" }, index.h("ion-label", null, "Share to Community Wall"), index.h("ion-checkbox", { slot: "start", onChange: (ev) => this.public = ev.detail.checked, checked: true }))));
158
+ if (this.appData) {
159
+ return (index.h("div", null, index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Goal Progress Info"), index.h("ion-input", { name: "title", type: "text", value: this.goalUpdateText.value, onInput: (ev) => this.handleGoalProgressInfo(ev) })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.goalUpdateText.valid || this.submitted === false, class: "ion-padding-start" }, "Goal Progress text is required")), index.h("ion-item", null, index.h("ion-label", { position: "stacked" }, "Progress"), index.h("ion-range", { value: this.progress, min: 1, max: 100, step: 1, snaps: true, pin: true, onIonChange: (e) => this.progress = +e.detail.value }, index.h("ion-icon", { size: "small", slot: "start", name: "pulse" }), index.h("ion-icon", { name: "pulse", size: "small" }), index.h("strong", { slot: "end" }, this.progress))), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.progress > 0 || this.submitted === false, class: "ion-padding-start" }, "Min Progress value should be 1")), index.h("ion-item", { lines: "none" }, index.h("ion-label", null, "Share to Community Wall"), index.h("ion-checkbox", { slot: "start", onChange: (ev) => this.public = ev.detail.checked, checked: true }))));
119
160
  }
120
161
  }
121
162
  render() {
122
163
  return [
123
- index.h("div", null, index.h("ion-toolbar", { color: "primary" }, index.h("ion-buttons", { slot: "start" }, index.h("ion-back-button", { defaultHref: "home", onClick: () => this.dismiss() })), index.h("ion-title", null, "Add New Goal")), index.h("form", { class: "ion-padding", novalidate: true, onSubmit: (e) => this.onSubmit(e) }, index.h("ion-list", { "no-lines": true }, index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Title"), index.h("ion-input", { name: "title", type: "text", value: this.title.value, onInput: (ev) => this.handleTitle(ev), required: true })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.title.valid || this.submitted === false, class: "ion-padding-start" }, "Title is required")), index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Description"), index.h("ion-textarea", { name: "desciption", value: this.description.value, onInput: (ev) => this.handleDescription(ev), required: true })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.description.valid || this.submitted === false, class: "ion-padding-start" }, "Description is required")), index.h("ion-item", null, index.h("ion-label", null, "Category"), index.h("ion-select", { value: this.category.value }, index.h("ion-select-option", { value: "Emotional" }, "Emotional"), index.h("ion-select-option", { value: "Interpersonal" }, "Interpersonal"), index.h("ion-select-option", { value: "Learning" }, "Learning"), index.h("ion-select-option", { value: "Financial" }, "Financial"), index.h("ion-select-option", { value: "Physical" }, "Physical"))), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.category.valid || this.submitted === false, class: "ion-padding-start" }, "Category is required")), this.renderEditBookingFields()), index.h("div", { class: "ion-padding" }, this.goal && index.h("ion-button", { type: "submit", expand: "block" }, "Update"), !this.goal && index.h("ion-button", { type: "submit", expand: "block" }, "Add"))))
164
+ index.h("div", null, index.h("ion-toolbar", { color: "primary" }, index.h("ion-buttons", { slot: "start" }, index.h("ion-back-button", { defaultHref: "home", onClick: () => this.dismiss() })), index.h("ion-title", null, "Add New Goal")), index.h("div", { class: "inner-content" }, index.h("form", { class: "ion-padding", novalidate: true, onSubmit: (e) => this.onSubmit(e) }, index.h("ion-list", { "no-lines": true }, index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Title"), index.h("ion-input", { name: "title", type: "text", value: this.name.value, onInput: (ev) => this.handleTitle(ev), required: true })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.name.valid || this.submitted === false, class: "ion-padding-start" }, "Title is required")), index.h("ion-item", null, index.h("ion-label", { position: "stacked", color: "primary" }, "Description"), index.h("ion-textarea", { name: "desciption", value: this.description.value, onInput: (ev) => this.handleDescription(ev), required: true })), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.description.valid || this.submitted === false, class: "ion-padding-start" }, "Description is required")), index.h("ion-item", null, index.h("ion-label", null, "Category"), index.h("ion-select", { value: this.category.value, onIonChange: (e) => this.handleCategory(e) }, index.h("ion-select-option", { value: "Emotional" }, "Emotional"), index.h("ion-select-option", { value: "Interpersonal" }, "Interpersonal"), index.h("ion-select-option", { value: "Learning" }, "Learning"), index.h("ion-select-option", { value: "Financial" }, "Financial"), index.h("ion-select-option", { value: "Physical" }, "Physical"))), index.h("ion-text", { color: "danger" }, index.h("p", { hidden: this.category.valid || this.submitted === false, class: "ion-padding-start" }, "Category is required")), this.renderEditBookingFields()), index.h("div", { class: "ion-padding" }, this.appData && index.h("ion-button", { type: "submit", expand: "block", disabled: feed_service.goalStore.state.goalLoading || feed_service.feedStore.state.postIdLoading > 0 }, feed_service.goalStore.state.goalLoading && index.h("ion-spinner", { name: "dots" }), " Update"), !this.appData && index.h("ion-button", { type: "submit", expand: "block", disabled: feed_service.goalStore.state.goalLoading }, feed_service.goalStore.state.goalLoading && index.h("ion-spinner", { name: "dots" }), " Add")))))
124
165
  ];
125
166
  }
126
167
  get el() { return index.getElement(this); }
127
168
  static get watchers() { return {
128
- "goal": ["goalHanlder"]
169
+ "appData": ["goalHanlder"]
129
170
  }; }
130
171
  };
131
172
  SparkleGoalForm.style = sparkleGoalFormCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparkleGwwCommentListCss = ":host{display:block}.avatar{width:30px;height:30px}";
8
8
 
@@ -17,7 +17,7 @@ const SparkleGwwCommentList = class {
17
17
  });
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, null, index.h("ion-toolbar", { color: "primary" }, index.h("ion-buttons", { slot: "start" }, index.h("ion-back-button", { defaultHref: "great-white-wall", onClick: () => this.dismiss() })), index.h("ion-title", null, "Comments")), index.h("ion-content", null, this.comments.map((comment) => index.h("ion-item", null, index.h("ion-avatar", { class: "avatar", slot: "start" }, index.h("img", { src: index.getAssetPath("/assets/img/user.png") })), index.h("ion-label", null, comment.Comment))))));
20
+ return (index.h(index.Host, null, index.h("ion-toolbar", { color: "primary" }, index.h("ion-buttons", { slot: "start" }, index.h("ion-back-button", { defaultHref: "great-white-wall", onClick: () => this.dismiss() })), index.h("ion-title", null, "Comments")), index.h("ion-content", null, this.comments.map((comment) => index.h("ion-item", null, index.h("ion-avatar", { class: "avatar", slot: "start" }, index.h("img", { src: index.getAssetPath("/assets/img/user.png") })), index.h("ion-label", null, index.h("h2", null, comment.Name), index.h("p", null, comment.Comment)))))));
21
21
  }
22
22
  get el() { return index.getElement(this); }
23
23
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparkleGwwGraphCss = ":host{display:block}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparkleLowerContentNavCss = "lower-content-nav{display:flex;justify-content:space-between}lower-content-nav>stencil-route-link{display:inline-block}";
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
6
- const icons = require('./icons-fc80a947.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
+ const icons = require('./icons-a0fef92b.js');
7
7
 
8
8
  const collapsibleCss = "collapsible{}";
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const modalImageCss = ":host{display:block}.overlay{opacity:0;visibility:hidden;position:fixed;width:100%;height:100%;top:0;left:0;background:rgba(0, 0, 0, 0.7);-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;display:flex;align-items:center;justify-content:center;z-index:100}.is-visible{opacity:1;visibility:visible;-webkit-transition:opacity 0.5s;transition:opacity 0.5s}.is-transparent{opacity:0}.modal-window{border-radius:25px;width:75%;height:75%;padding:50px;display:flex;align-items:center;justify-content:center}.modal-window__content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;animation-name:zoom;animation-duration:0.6s}@keyframes zoom{from{transform:scale(0)}to{transform:scale(1)}}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const notfoundPageCss = "notfound-page{text-align:center}";
8
8
 
@@ -0,0 +1,92 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-fbf4d3bf.js');
6
+
7
+ const overlayCss = "sparkle-overlay{--sparkle-z-index-xl:500;--sparkle-transition-fast:0.3s;--sparkle-color-light-base:197, 209, 218;--sparkle-shadow-xl:0 20px 40px rgba(0, 0, 0, 0.2)}.sparkle-overlay{-ms-flex-align:center;align-items:center;display:flex;visibility:hidden;-ms-flex-pack:center;justify-content:center;position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:auto;-ms-touch-action:none;touch-action:none;opacity:0;z-index:var(--sparkle-z-index-xl)}.sparkle-overlay,.sparkle-overlay.opened{-webkit-transition:all var(--sparkle-transition-fast) ease-in-out;transition:all var(--sparkle-transition-fast) ease-in-out}.sparkle-overlay.opened{visibility:visible;opacity:1}.sparkle-overlay.opened .content{-webkit-transition:all var(--sparkle-transition-fast) ease-in-out;transition:all var(--sparkle-transition-fast) ease-in-out}.sparkle-overlay.light{background-color:rgba(var(--sparkle-color-light-base), 0.6)}.sparkle-overlay.dark{background-color:rgba(var(--sparkle-color-dark-base), 0.6)}.sparkle-overlay.absolute{position:absolute}.sparkle-overlay .scrim{border-radius:inherit;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;-webkit-transition:inherit;transition:inherit;width:100%;will-change:opacity}.sparkle-overlay .content{position:relative;outline:none;-webkit-box-shadow:var(--sparkle-shadow-xl);box-shadow:var(--sparkle-shadow-xl);-webkit-transition:all var(--sparkle-transition-fast) ease-in-out;transition:all var(--sparkle-transition-fast) ease-in-out}";
8
+
9
+ const FOCUSABLE_ELEMENTS = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';
10
+ const SparkleOverlay = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.shown = index.createEvent(this, "shown", 7);
14
+ this.hidden = index.createEvent(this, "hidden", 7);
15
+ this.theme = 'dark';
16
+ this.preventClose = false;
17
+ this.focusIndex = 0;
18
+ this.isShowing = false;
19
+ }
20
+ async show() {
21
+ this.$focusedElBeforeOpen = document.activeElement;
22
+ this.$focusedElBeforeOpen && this.$focusedElBeforeOpen.setAttribute("aria-expanded", "true");
23
+ this.isShowing = true;
24
+ if (this.$focusableEls.length > 0)
25
+ setTimeout(() => this.$focusableEls[0].focus(), 100);
26
+ else
27
+ setTimeout(() => this.$content.focus(), 100);
28
+ this.shown.emit();
29
+ }
30
+ async hide() {
31
+ this.isShowing = false;
32
+ this.focusIndex = 0;
33
+ if (this.$focusedElBeforeOpen) {
34
+ this.$focusedElBeforeOpen.setAttribute("aria-expanded", "false");
35
+ this.$focusedElBeforeOpen.focus();
36
+ }
37
+ this.hidden.emit();
38
+ }
39
+ handleKeyDown(e) {
40
+ const KEY_TAB = 9;
41
+ const KEY_ESC = 27;
42
+ switch (e.keyCode) {
43
+ case KEY_TAB:
44
+ this.handleTab(e);
45
+ break;
46
+ case KEY_ESC:
47
+ this.handleEsc();
48
+ break;
49
+ }
50
+ }
51
+ handleEsc() {
52
+ if (!this.preventClose)
53
+ this.hide();
54
+ }
55
+ handleTab(e) {
56
+ e.preventDefault();
57
+ if (e.shiftKey) {
58
+ this.handleBackwardTab();
59
+ }
60
+ else {
61
+ this.handleForwardTab();
62
+ }
63
+ }
64
+ handleBackwardTab() {
65
+ this.focusIndex = this.focusIndex === 0 ? this.$focusableEls.length - 1 : --this.focusIndex;
66
+ this.$focusableEls[this.focusIndex].focus();
67
+ }
68
+ handleForwardTab() {
69
+ this.focusIndex = this.$focusableEls.length - 1 === this.focusIndex ? 0 : ++this.focusIndex;
70
+ this.$focusableEls[this.focusIndex].focus();
71
+ }
72
+ handleScrimClick() {
73
+ if (!this.preventClose)
74
+ this.hide();
75
+ }
76
+ componentDidLoad() {
77
+ this.$focusableEls = Array.from(this.$el.querySelectorAll(FOCUSABLE_ELEMENTS));
78
+ }
79
+ render() {
80
+ let classes = {
81
+ 'sparkle-overlay': true,
82
+ [this.theme]: true,
83
+ 'absolute': this.absolute,
84
+ 'opened': this.isShowing
85
+ };
86
+ return (index.h(index.Host, { class: classes }, index.h("div", { class: "scrim", onClick: () => this.handleScrimClick() }), index.h("div", { class: "content", role: "dialog", "aria-labelledby": this.titleId, tabindex: "-1", ref: el => this.$content = el }, index.h("slot", null))));
87
+ }
88
+ get $el() { return index.getElement(this); }
89
+ };
90
+ SparkleOverlay.style = overlayCss;
91
+
92
+ exports.sparkle_overlay = SparkleOverlay;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparklePollCss = ":host{display:block}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparkleQuizContainerCss = ":host{display:block}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  function GetSelectOptionId(questionId, index) {
8
8
  return "question-" + questionId + "-option-" + index;
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
6
- const assets_service = require('./assets.service-5098e79c.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
+ const environmentConfig_service = require('./environment-config.service-0e02b049.js');
7
+ const assets_service = require('./assets.service-0c759d51.js');
7
8
 
8
9
  const sparkleQuizCss = "sparkle-quiz{display:block;font-family:var(--font-family);--sparkle-quiz-question-container-padding:10px 0px;--sparkle-quiz-question-container-margin:0px;--sparkle-quiz-question-text-padding:10px 0px;--sparkle-quiz-option-border:2px solid var(--line-rule-color);--sparkle-quiz-selected-option-border:2px solid var(--text-color--dark);--sparkle-quiz-option-border-radius:4px;--sparkle-quiz-option-padding:5px 10px;--sparkle-quiz-option-width:100%;--sparkle-quiz-error-bg-color:#fbaeae;--sparkle-quiz-success-bg-color:#fbaeae;padding:var(--sparkle-quiz-question-container-padding);margin:var(--sparkle-quiz-question-container-margin)}.question-text{padding:var(--sparkle-quiz-question-text-padding)}.option{padding:5px 0px}.number{padding:0px 14px;border:1px solid #ebebeb;border-radius:4px;margin-right:10px;font-size:14px;width:14px;display:inline-flex;justify-content:center}.feedback-container{padding:10px;border-radius:4px}.incorrect .feedback-container{background-color:var(--sparkle-quiz-error-bg-color, #fbaeae)}.correct .feedback-container{background-color:var(--sparkle-quiz-success-bg-color, #fbaeae)}";
9
10
 
@@ -20,7 +21,7 @@ const SparkleQuiz = class {
20
21
  async componentWillLoad() {
21
22
  }
22
23
  async componentDidLoad() {
23
- const config = assets_service.EnvironmentConfigService.getInstance().get('sparkle');
24
+ const config = environmentConfig_service.EnvironmentConfigService.getInstance().get('sparkle');
24
25
  this.quizData = await assets_service.AssetsService.getInstance().loadJsonFile(config.quizPath);
25
26
  await this.loadQuestion();
26
27
  this.quizAnswerChanged.emit({
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const selectCss = ".Select{cursor:pointer;display:inline-block;font-weight:500}.Select .Dropdown-button{align-items:center;border:solid 1px #dee3ea;border-radius:6px;display:inline-flex;justify-content:space-between;min-width:100px;padding:0.5em 1em}.Select .Dropdown-panel{padding:0.5em 0}.Select .Dropdown-arrow{margin-left:0.5em}.Select-option{--bg-alpha:0;background-color:rgba(0, 0, 0, var(--bg-alpha));padding:0.5em 1.5em}.Select-option:focus{--bg-alpha:0.025;outline:none}.Select-option--selected{--bg-alpha:0.05}.Select-option--selected:focus{--bg-alpha:0.075}@media (hover: hover){.Select-option:hover{--bg-alpha:0.025}.Select-option--selected:hover{--bg-alpha:0.075}}";
8
8
 
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-fbf4d3bf.js');
6
+
7
+ const sidebarCss = "sparkle-sidebar{--sparkle-spacing-size-lg:1rem;--sparkle-transition-med:0.5s;--sparkle-color-dark-lighter:89, 109, 127;--sparkle-font-size-md:1.25rem;--sparkle-spacing-size-none:0;--sparkle-spacing-size-xxxs:0.0625rem;--sparkle-color-light-base:1197, 209, 218;--sparkle-font-size-lg:1.5rem;--sparkle-color-dark-base:55, 68, 79}.sparkle-sidebar{height:100%;max-width:90%;position:fixed;top:0;bottom:0;overflow-x:hidden;overflow-y:auto;background-color:#fff;padding:var(--sparkle-spacing-size-lg);-webkit-transition:all var(--sparkle-transition-med) ease-in-out;transition:all var(--sparkle-transition-med) ease-in-out}.sparkle-sidebar.left{border-right:var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-dark-lighter), 1)}.sparkle-sidebar.left.size-sm{width:16rem;left:-16rem}.sparkle-sidebar.left.size-md{width:22.5rem;left:-22.5rem}.sparkle-sidebar.left.size-lg{width:30rem;left:-30rem}.sparkle-sidebar.left.size-xl{width:45rem;left:-45rem}.sparkle-sidebar.left.show{visibility:visible;left:0}.sparkle-sidebar.right{border-right:var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-dark-lighter), 1)}.sparkle-sidebar.right.size-sm{width:16rem;right:-16rem}.sparkle-sidebar.right.size-md{width:22.5rem;right:-22.5rem}.sparkle-sidebar.right.size-lg{width:30rem;right:-30rem}.sparkle-sidebar.right.size-xl{width:45rem;right:-45rem}.sparkle-sidebar.right.show{visibility:visible;right:0}.sparkle-sidebar .drawer-header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:center;align-content:center;border-bottom:var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-light-base), 1);font-size:var(--sparkle-font-size-lg);color:rgba(var(--sparkle-color-dark-base), 1)}.sparkle-sidebar .drawer-header .drawer-title{line-height:1}.sparkle-sidebar .drawer-header .drawer-close .ks-button .button{padding:var(--sparkle-spacing-size-none)}.sparkle-sidebar .drawer-header .drawer-close .ks-button .button .button-text{display:-ms-inline-flexbox;display:inline-flex}.sparkle-sidebar .drawer-header .drawer-close .ks-button .button .icon{font-size:var(--sparkle-font-size-md)}.sparkle-sidebar .drawer-body{padding-top:var(--sparkle-spacing-size-lg);padding-bottom:var(--sparkle-spacing-size-lg)}";
8
+
9
+ const SparkleSideBar = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.position = 'left';
13
+ this.size = 'sm';
14
+ }
15
+ async hide() {
16
+ this.isShowing = false;
17
+ await this.$overlay.hide();
18
+ }
19
+ async show() {
20
+ await this.$overlay.show();
21
+ this.isShowing = true;
22
+ }
23
+ componentDidRender() {
24
+ const $scrim = this.$overlay.querySelector('.scrim');
25
+ $scrim.addEventListener('click', () => this.hide());
26
+ }
27
+ overlayHiddenHandler() {
28
+ this.isShowing = false;
29
+ }
30
+ render() {
31
+ let classes = {
32
+ 'sparkle-sidebar': true,
33
+ [`size-${this.size}`]: true,
34
+ [this.position]: true,
35
+ 'show': this.isShowing
36
+ };
37
+ return (index.h("sparkle-overlay", { onHidden: () => this.overlayHiddenHandler(), ref: el => this.$overlay = el }, index.h("aside", { class: classes, ref: el => this.$drawer = el }, index.h("header", { class: "drawer-header" }, index.h("h3", { class: "drawer-title" }, this.headerText), index.h("ion-button", { onClick: () => this.hide(), class: "drawer-close", color: "dark" }, index.h("ion-icon", { name: "close-outline" }))), index.h("div", { class: "drawer-body" }, index.h("slot", null)))));
38
+ }
39
+ get $el() { return index.getElement(this); }
40
+ };
41
+ SparkleSideBar.style = sidebarCss;
42
+
43
+ exports.sparkle_sidebar = SparkleSideBar;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const SparkleTab = class {
8
8
  constructor(hostRef) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const tableOfContentsCss = "sparkle-table-of-contents{display:block;font-size:13px;margin-bottom:2rem}sparkle-table-of-contents .Nav-header{color:var(--text-color--lighter);font-size:0.75em;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding-left:0}sparkle-table-of-contents ul{padding:0;list-style:none;line-height:1.23em}sparkle-table-of-contents .Nav-link{padding-left:0;margin-left:0}sparkle-table-of-contents a{color:inherit;display:inline-block;transition:.2s color, .3s transform ease-out}sparkle-table-of-contents .Nav-link.selected a{color:var(--accent-color);transform:translateX(2px)}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const tabsCss = ".Tabs,.Tabs-tab{display:block}.Tabs-tab:not([selected]){display:none}.Tabs-header{border-bottom:solid 1px rgba(0, 32, 88, 0.1);white-space:nowrap}.Tabs-button{--bg-alpha:0;appearance:none;background-color:rgba(0, 0, 0, var(--bg-alpha));border:none;color:var(--text-color--light);cursor:pointer;font-family:inherit;font-size:10px;font-weight:600;letter-spacing:0.04em;padding:1rem;text-transform:uppercase;transform:translateY(1px)}.Tabs-button:first-child{border-top-left-radius:6px}.Tabs-button:last-child{border-top-right-radius:6px}.Tabs-button:focus{outline:none}.Tabs-button:focus{--bg-alpha:0.015}@media (hover: hover){.Tabs-button:hover{--bg-alpha:0.015}}.Tabs-button:active{--bg-alpha:0.03}.Tabs-button.is-selected{border-bottom:solid 1px currentColor;color:var(--accent-color)}.Tabs-tab sparkle-code pre{margin-top:0}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const sparkleYoutubeCss = ":host(.loaded) div.youtube-container{opacity:var(--sparkle-youtube-opacity-loaded, 1)}div.youtube-container{opacity:var(--sparkle-youtube-opacity-not-loaded, 0);transition:var(--sparkle-youtube-transition, opacity 0.15s linear)}";
8
8
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-56cc404a.js');
3
+ const index = require('./index-fbf4d3bf.js');
4
4
 
5
5
  const startStatusTap = () => {
6
6
  const win = window;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
6
 
7
7
  const AsyncContent = class {
8
8
  constructor(hostRef) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
6
- const activeRouter = require('./active-router-dca7573e.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
+ const activeRouter = require('./active-router-3bd7b540.js');
7
7
 
8
8
  const RouteTitle = class {
9
9
  constructor(hostRef) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-56cc404a.js');
6
- const activeRouter = require('./active-router-dca7573e.js');
5
+ const index = require('./index-fbf4d3bf.js');
6
+ const activeRouter = require('./active-router-3bd7b540.js');
7
7
 
8
8
  const StencilRouterPrompt = class {
9
9
  constructor(hostRef) {
@@ -1,17 +1,19 @@
1
1
  'use strict';
2
2
 
3
- const httpService = require('./httpService-6377985c.js');
3
+ const auth_store = require('./auth.store-aba3d22f.js');
4
4
 
5
- const { state, onChange, reset } = httpService.createStore({
5
+ const { state, onChange, reset } = auth_store.createStore({
6
6
  user: {
7
7
  FirstName: '',
8
8
  LastName: '',
9
9
  ProfileText: '',
10
10
  ProfileImage: '',
11
11
  IsVerified: false,
12
- Roles: []
12
+ Roles: [],
13
+ FacilitatorClassList: []
13
14
  },
14
15
  loaded: false,
16
+ updateLoading: false,
15
17
  enrollmentList: [],
16
18
  });
17
19
  const userStore = { state, onChange, reset };
@@ -25,7 +27,7 @@ class StudentService {
25
27
  return StudentService.instance;
26
28
  }
27
29
  async enrollClass(enrollInput) {
28
- let result = await httpService.HttpService.http.post('api/v1/Student/EnrollClass', enrollInput);
30
+ let result = await auth_store.HttpService.http.post('api/v1/Student/EnrollClass', enrollInput);
29
31
  if (result) {
30
32
  userStore.state.enrollmentList = [
31
33
  ...userStore.state.enrollmentList,
@@ -35,14 +37,14 @@ class StudentService {
35
37
  return result;
36
38
  }
37
39
  async leaveClass(leaveInput) {
38
- let result = await httpService.HttpService.http.post('api/v1/Student/LeaveClass', leaveInput);
40
+ let result = await auth_store.HttpService.http.post('api/v1/Student/LeaveClass', leaveInput);
39
41
  if (result) {
40
42
  userStore.state.enrollmentList = userStore.state.enrollmentList.filter((item) => item.Id != result.Data);
41
43
  }
42
44
  return result;
43
45
  }
44
46
  async fetchUserConfiguration() {
45
- let result = await httpService.HttpService.http.get('api/v1/Student/UserConfiguration');
47
+ let result = await auth_store.HttpService.http.get('api/v1/Student/UserConfiguration');
46
48
  if (result) {
47
49
  userStore.state.enrollmentList = result.Data.EnrollmentList;
48
50
  userStore.state.user.FirstName = result.Data.FirstName;
@@ -51,21 +53,22 @@ class StudentService {
51
53
  userStore.state.user.ProfileImage = result.Data.ProfileImage;
52
54
  userStore.state.user.IsVerified = result.Data.IsVerified;
53
55
  userStore.state.user.Roles = result.Data.Roles;
56
+ userStore.state.user.FacilitatorClassList = result.Data.FacilitatorClassList;
54
57
  }
55
58
  return result;
56
59
  }
57
60
  async updateProfile(updateProfileInput) {
58
- let result = await httpService.HttpService.http.post('api/Account/UpdateProfile', updateProfileInput);
59
- // if (result) {
60
- // userStore.state.user.FirstName = result.Data.FirstName;
61
- // userStore.state.user.LastName = result.Data.LastName;
62
- // userStore.state.user.ProfileText = result.Data.ProfileText;
63
- // userStore.state.user.ProfileImage = result.Data.ProfileImage;
64
- // }
61
+ userStore.state.updateLoading = true;
62
+ let result = await auth_store.HttpService.http.post('api/Account/update-profile', updateProfileInput);
63
+ console.log('after fetch', result);
64
+ if (result) {
65
+ userStore.state.updateLoading = false;
66
+ userStore.state.user = Object.assign(Object.assign({}, userStore.state.user), { FirstName: result.Data.FirstName, LastName: result.Data.LastName, ProfileText: result.Data.ProfileText, ProfileImage: result.Data.ProfileImage });
67
+ }
65
68
  return result;
66
69
  }
67
70
  async submitFeedback(feedbackInput) {
68
- let result = await httpService.HttpService.http.post('api/v1/Feedback', feedbackInput);
71
+ let result = await auth_store.HttpService.http.post('api/v1/Feedback', feedbackInput);
69
72
  return result;
70
73
  }
71
74
  }