@sparkle-learning/core 0.0.39 → 0.0.42

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 (267) hide show
  1. package/dist/cjs/{auth.service-4b584cd7.js → PrivateRoute-074c584e.js} +30 -0
  2. package/dist/cjs/{sparkle-export-lessons_6.cjs.entry.js → header-mobile-collapse_61.cjs.entry.js} +11602 -2716
  3. package/dist/cjs/{icons-c61db785.js → icons-fda820af.js} +0 -0
  4. package/dist/cjs/index.cjs.js +5 -6
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
  7. package/dist/cjs/sparkle-core.cjs.js +1 -1
  8. package/dist/cjs/sparkle-feedback.cjs.entry.js +1 -2
  9. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
  10. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +117 -0
  11. package/dist/cjs/sparkle-quiz.cjs.entry.js +120 -0
  12. package/dist/cjs/student.service-2e58f237.js +78 -0
  13. package/dist/esm/{auth.service-9fb86455.js → PrivateRoute-c5441f35.js} +33 -4
  14. package/dist/esm/{animation-e0716b39.js → animation-12377cb3.js} +1 -1
  15. package/dist/esm/{auth.store-633e8414.js → auth.store-dba2c2da.js} +1 -1
  16. package/dist/esm/{facilitator.service-8fd435bf.js → facilitator.service-b0292f7f.js} +2 -2
  17. package/dist/esm/{feed.service-ace049e5.js → feed.service-8fbe4ce3.js} +3 -3
  18. package/dist/esm/{framework-delegate-e4f8013b.js → framework-delegate-3e634a5c.js} +1 -1
  19. package/dist/esm/{sparkle-export-lessons_6.entry.js → header-mobile-collapse_61.entry.js} +11501 -2670
  20. package/dist/esm/{helpers-03073fe4.js → helpers-bf0e23d6.js} +1 -1
  21. package/dist/esm/{httpService-61864992.js → httpService-7b75b095.js} +2 -2
  22. package/dist/esm/{icons-90b957ab.js → icons-1c794c74.js} +1 -1
  23. package/dist/esm/{index-b4b4e503.js → index-2b84cad2.js} +3 -3
  24. package/dist/esm/{index-a2d2941d.js → index-45fec1e7.js} +1 -1
  25. package/dist/esm/{index-37004831.js → index-5e8971ae.js} +1 -1
  26. package/dist/esm/{index-dedabca0.js → index-cded2d87.js} +2 -2
  27. package/dist/esm/{index.es-283fbd2e.js → index.es-e0c0f891.js} +1 -1
  28. package/dist/esm/index.js +5 -6
  29. package/dist/esm/{input-shims-cc3720a0.js → input-shims-671d8d9f.js} +2 -2
  30. package/dist/esm/ion-accordion.entry.js +1 -1
  31. package/dist/esm/ion-action-sheet_4.entry.js +5 -5
  32. package/dist/esm/ion-app.entry.js +3 -3
  33. package/dist/esm/ion-back-button.entry.js +1 -1
  34. package/dist/esm/ion-breadcrumb.entry.js +1 -1
  35. package/dist/esm/ion-content_2.entry.js +2 -2
  36. package/dist/esm/ion-datetime-button.entry.js +1 -1
  37. package/dist/esm/ion-datetime.entry.js +1 -1
  38. package/dist/esm/ion-fab-button.entry.js +1 -1
  39. package/dist/esm/ion-footer.entry.js +2 -2
  40. package/dist/esm/ion-img.entry.js +1 -1
  41. package/dist/esm/ion-infinite-scroll.entry.js +2 -2
  42. package/dist/esm/ion-item-options.entry.js +1 -1
  43. package/dist/esm/ion-item-sliding.entry.js +2 -2
  44. package/dist/esm/ion-loading.entry.js +3 -3
  45. package/dist/esm/ion-menu-button.entry.js +4 -4
  46. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  47. package/dist/esm/ion-menu.entry.js +4 -4
  48. package/dist/esm/ion-modal.entry.js +6 -6
  49. package/dist/esm/ion-nav.entry.js +4 -4
  50. package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
  51. package/dist/esm/ion-picker-column.entry.js +1 -1
  52. package/dist/esm/ion-picker.entry.js +3 -3
  53. package/dist/esm/ion-progress-bar.entry.js +1 -1
  54. package/dist/esm/ion-refresher.entry.js +3 -3
  55. package/dist/esm/ion-reorder-group.entry.js +2 -2
  56. package/dist/esm/ion-router-outlet.entry.js +4 -4
  57. package/dist/esm/ion-router.entry.js +1 -1
  58. package/dist/esm/ion-searchbar.entry.js +1 -1
  59. package/dist/esm/ion-segment-button.entry.js +1 -1
  60. package/dist/esm/ion-segment.entry.js +1 -1
  61. package/dist/esm/ion-select_2.entry.js +2 -2
  62. package/dist/esm/ion-slides.entry.js +1 -1
  63. package/dist/esm/ion-tab.entry.js +2 -2
  64. package/dist/esm/ion-textarea.entry.js +1 -1
  65. package/dist/esm/ion-toast.entry.js +3 -3
  66. package/dist/esm/ion-toggle.entry.js +1 -1
  67. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  68. package/dist/esm/{ios.transition-3a6179bb.js → ios.transition-131d64fe.js} +3 -3
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/{md.transition-cff16bf3.js → md.transition-f6126011.js} +3 -3
  71. package/dist/esm/{menu-toggle-util-59241733.js → menu-toggle-util-bace8ae6.js} +1 -1
  72. package/dist/esm/{overlays-bdd9344a.js → overlays-3b4dca92.js} +2 -2
  73. package/dist/esm/{purify-7085b248.js → purify-85bfcc69.js} +1 -1
  74. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  75. package/dist/esm/sparkle-code.entry.js +1 -1
  76. package/dist/esm/sparkle-core.js +1 -1
  77. package/dist/esm/sparkle-facilitator-notes-form.entry.js +5 -5
  78. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  79. package/dist/esm/sparkle-feedback.entry.js +5 -6
  80. package/dist/esm/sparkle-goal-form.entry.js +6 -6
  81. package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
  82. package/dist/esm/sparkle-quiz-feedback_5.entry.js +109 -0
  83. package/dist/esm/sparkle-quiz.entry.js +116 -0
  84. package/dist/esm/{status-tap-463d0f87.js → status-tap-dde52787.js} +2 -2
  85. package/dist/esm/{student.service-e6eb1f99.js → student.service-0746418b.js} +19 -3
  86. package/dist/esm/{swipe-back-f8765ac9.js → swipe-back-7847a0c1.js} +1 -1
  87. package/dist/esm/{util-a831d09d.js → util-6ef753e9.js} +1 -1
  88. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
  89. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
  90. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
  91. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
  92. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
  93. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
  94. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
  95. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
  96. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
  97. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
  98. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
  99. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
  100. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
  101. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
  102. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
  103. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
  104. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
  105. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
  106. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
  107. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
  108. package/dist/sparkle-core/index.esm.js +1 -1
  109. package/dist/sparkle-core/{p-539bf742.js → p-00d10dc9.js} +2 -2
  110. package/dist/sparkle-core/{p-b9933822.js → p-05c032dd.js} +1 -1
  111. package/dist/sparkle-core/{p-dabc80c4.entry.js → p-0664370b.entry.js} +1 -1
  112. package/dist/sparkle-core/p-077c732b.js +4 -0
  113. package/dist/sparkle-core/{p-c278db5f.entry.js → p-0ad5c123.entry.js} +1 -1
  114. package/dist/sparkle-core/{p-b9b1d4da.entry.js → p-0afa3a4d.entry.js} +1 -1
  115. package/dist/sparkle-core/{p-285ab4ed.entry.js → p-0c3f3ea6.entry.js} +1 -1
  116. package/dist/sparkle-core/{p-727e1c28.entry.js → p-0f1c5899.entry.js} +1 -1
  117. package/dist/sparkle-core/{p-64e814b9.entry.js → p-11356b03.entry.js} +1 -1
  118. package/dist/sparkle-core/{p-b5ec8fb0.entry.js → p-11a6c175.entry.js} +1 -1
  119. package/dist/sparkle-core/p-12dd96d7.js +4 -0
  120. package/dist/sparkle-core/{p-a85598ad.js → p-1d4c7c11.js} +1 -1
  121. package/dist/sparkle-core/{p-c8fe45df.entry.js → p-1e125ca5.entry.js} +1 -1
  122. package/dist/sparkle-core/{p-cab3da3c.entry.js → p-1e4f65ee.entry.js} +1 -1
  123. package/dist/sparkle-core/{p-405f7c58.js → p-2033cd86.js} +2 -2
  124. package/dist/sparkle-core/p-23aca7ca.js +4 -0
  125. package/dist/sparkle-core/{p-e65c72cc.entry.js → p-24cb9a33.entry.js} +1 -1
  126. package/dist/sparkle-core/{p-014b5707.entry.js → p-2c1ca854.entry.js} +1 -1
  127. package/dist/sparkle-core/{p-340754ed.js → p-2f569553.js} +1 -1
  128. package/dist/sparkle-core/{p-2e2b813c.js → p-2ff67662.js} +2 -2
  129. package/dist/sparkle-core/{p-0c0f8acd.entry.js → p-30b810d1.entry.js} +1 -1
  130. package/dist/sparkle-core/{p-b236d258.entry.js → p-377b04c2.entry.js} +1 -1
  131. package/dist/sparkle-core/{p-fde382f0.entry.js → p-39712c56.entry.js} +1 -1
  132. package/dist/sparkle-core/{p-be28346b.js → p-3de0e00c.js} +1 -1
  133. package/dist/sparkle-core/p-462bffba.js +1 -0
  134. package/dist/sparkle-core/{p-3f85e1ca.js → p-48f72e63.js} +2 -2
  135. package/dist/sparkle-core/{p-6f0545b3.entry.js → p-54dd894f.entry.js} +1 -1
  136. package/dist/sparkle-core/{p-ce94efdb.entry.js → p-564e64fc.entry.js} +1 -1
  137. package/dist/sparkle-core/{p-db8387eb.entry.js → p-58e4bbe5.entry.js} +1 -1
  138. package/dist/sparkle-core/{p-ca4c8a10.js → p-5cad23f1.js} +1 -1
  139. package/dist/sparkle-core/p-5efc6566.js +1 -0
  140. package/dist/sparkle-core/{p-c9cd4ff1.js → p-600cf6a3.js} +1 -1
  141. package/dist/sparkle-core/{p-2e035338.entry.js → p-641bfc92.entry.js} +1 -1
  142. package/dist/sparkle-core/{p-b4bc8b02.entry.js → p-6faa194c.entry.js} +1 -1
  143. package/dist/sparkle-core/{p-2f10208d.entry.js → p-6ffd2420.entry.js} +1 -1
  144. package/dist/sparkle-core/p-73721c84.js +4 -0
  145. package/dist/sparkle-core/{p-ed9f48c4.entry.js → p-74864276.entry.js} +1 -1
  146. package/dist/sparkle-core/p-80d6b0e6.entry.js +1 -0
  147. package/dist/sparkle-core/p-8492a765.entry.js +1 -0
  148. package/dist/sparkle-core/{p-a019ad0c.js → p-86ed13f0.js} +1 -1
  149. package/dist/sparkle-core/{p-4ae75caa.entry.js → p-894ff7e6.entry.js} +1 -1
  150. package/dist/sparkle-core/{p-5519d283.entry.js → p-9289cdbc.entry.js} +1 -1
  151. package/dist/sparkle-core/{p-4bd4dab2.js → p-935e7cfc.js} +1 -1
  152. package/dist/sparkle-core/{p-25e556cc.entry.js → p-957715c5.entry.js} +1 -1
  153. package/dist/sparkle-core/{p-b4b01fa2.entry.js → p-9abbd715.entry.js} +1 -1
  154. package/dist/sparkle-core/{p-e7568d4b.js → p-9d894ed4.js} +1 -1
  155. package/dist/sparkle-core/{p-4320dac0.entry.js → p-9ebf0537.entry.js} +1 -1
  156. package/dist/sparkle-core/p-a49ab4e8.entry.js +1 -0
  157. package/dist/sparkle-core/{p-93e74f1b.entry.js → p-af3cc111.entry.js} +1 -1
  158. package/dist/sparkle-core/{p-5fc26938.js → p-b0603d19.js} +1 -1
  159. package/dist/sparkle-core/{p-317037de.entry.js → p-b3f375fb.entry.js} +1 -1
  160. package/dist/sparkle-core/p-b4408842.entry.js +352 -0
  161. package/dist/sparkle-core/{p-2fba9a3a.entry.js → p-b5f3e1bf.entry.js} +1 -1
  162. package/dist/sparkle-core/{p-82ad4e7c.entry.js → p-b96f3c84.entry.js} +2 -2
  163. package/dist/sparkle-core/{p-ad102371.js → p-bd80ff43.js} +1 -1
  164. package/dist/sparkle-core/{p-f0cf4a8f.entry.js → p-be64105c.entry.js} +1 -1
  165. package/dist/sparkle-core/{p-f4b0b6a4.entry.js → p-c0533c23.entry.js} +1 -1
  166. package/dist/sparkle-core/p-c3cadfc6.entry.js +1 -0
  167. package/dist/sparkle-core/{p-2d4a5ddf.entry.js → p-c60b29bd.entry.js} +2 -2
  168. package/dist/sparkle-core/{p-56a2e8a2.js → p-cabe9139.js} +1 -1
  169. package/dist/sparkle-core/{p-0bb0cf41.entry.js → p-cabfbf22.entry.js} +1 -1
  170. package/dist/sparkle-core/{p-66a85393.entry.js → p-ce4b22f7.entry.js} +1 -1
  171. package/dist/sparkle-core/{p-17eb4633.js → p-d68092b7.js} +1 -1
  172. package/dist/sparkle-core/{p-0ea2518d.entry.js → p-de4deb61.entry.js} +1 -1
  173. package/dist/sparkle-core/{p-1f0b3ff9.entry.js → p-e686d8b5.entry.js} +1 -1
  174. package/dist/sparkle-core/{p-08d97c59.entry.js → p-e77d982d.entry.js} +1 -1
  175. package/dist/sparkle-core/{p-44f813b7.entry.js → p-e863bf1d.entry.js} +1 -1
  176. package/dist/sparkle-core/{p-63f69cdc.entry.js → p-ebd4354b.entry.js} +1 -1
  177. package/dist/sparkle-core/{p-fc965b88.entry.js → p-ef4edc48.entry.js} +1 -1
  178. package/dist/sparkle-core/{p-c2bbaf55.entry.js → p-fb0ca75e.entry.js} +1 -1
  179. package/dist/sparkle-core/{p-b83444c7.entry.js → p-fb757951.entry.js} +1 -1
  180. package/dist/sparkle-core/{p-d81a0680.js → p-fbccd30c.js} +1 -1
  181. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  182. package/package.json +2 -2
  183. package/dist/cjs/PrivateRoute-4abc9d29.js +0 -35
  184. package/dist/cjs/dom-utils-b8befdd5.js +0 -63
  185. package/dist/cjs/header-mobile-collapse.cjs.entry.js +0 -90
  186. package/dist/cjs/index-70e63f5b.js +0 -3071
  187. package/dist/cjs/injectHistory-7206bbb9.js +0 -9
  188. package/dist/cjs/ion-avatar.cjs.entry.js +0 -25
  189. package/dist/cjs/ion-button.cjs.entry.js +0 -129
  190. package/dist/cjs/ion-card_2.cjs.entry.js +0 -91
  191. package/dist/cjs/ion-checkbox_4.cjs.entry.js +0 -360
  192. package/dist/cjs/ion-col_3.cjs.entry.js +0 -159
  193. package/dist/cjs/ion-icon_13.cjs.entry.js +0 -1505
  194. package/dist/cjs/ion-input_2.cjs.entry.js +0 -313
  195. package/dist/cjs/ion-label_2.cjs.entry.js +0 -126
  196. package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
  197. package/dist/cjs/match-path-84c9f7ca.js +0 -511
  198. package/dist/cjs/sparkle-card_3.cjs.entry.js +0 -91
  199. package/dist/cjs/sparkle-course-root.cjs.entry.js +0 -146
  200. package/dist/cjs/sparkle-dropdown.cjs.entry.js +0 -61
  201. package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +0 -2130
  202. package/dist/cjs/sparkle-goal-progress.cjs.entry.js +0 -19
  203. package/dist/cjs/sparkle-gww-item.cjs.entry.js +0 -74
  204. package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +0 -236
  205. package/dist/cjs/sparkle-validation-error.cjs.entry.js +0 -21
  206. package/dist/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  207. package/dist/cjs/student.service-d48f1c99.js +0 -61
  208. package/dist/cjs/user.store-8a049c4e.js +0 -21
  209. package/dist/esm/PrivateRoute-7b526801.js +0 -33
  210. package/dist/esm/dom-utils-109a7d75.js +0 -55
  211. package/dist/esm/header-mobile-collapse.entry.js +0 -86
  212. package/dist/esm/index-f9b9ba5d.js +0 -3067
  213. package/dist/esm/injectHistory-968f626d.js +0 -7
  214. package/dist/esm/ion-avatar.entry.js +0 -21
  215. package/dist/esm/ion-button.entry.js +0 -125
  216. package/dist/esm/ion-card_2.entry.js +0 -86
  217. package/dist/esm/ion-checkbox_4.entry.js +0 -353
  218. package/dist/esm/ion-col_3.entry.js +0 -153
  219. package/dist/esm/ion-icon_13.entry.js +0 -1489
  220. package/dist/esm/ion-input_2.entry.js +0 -308
  221. package/dist/esm/ion-label_2.entry.js +0 -121
  222. package/dist/esm/ion-spinner.entry.js +0 -60
  223. package/dist/esm/match-path-36fdf5c7.js +0 -499
  224. package/dist/esm/sparkle-card_3.entry.js +0 -85
  225. package/dist/esm/sparkle-course-root.entry.js +0 -142
  226. package/dist/esm/sparkle-dropdown.entry.js +0 -57
  227. package/dist/esm/sparkle-facilitator-header_19.entry.js +0 -2108
  228. package/dist/esm/sparkle-goal-progress.entry.js +0 -15
  229. package/dist/esm/sparkle-gww-item.entry.js +0 -70
  230. package/dist/esm/sparkle-menu-toggle_3.entry.js +0 -230
  231. package/dist/esm/sparkle-validation-error.entry.js +0 -17
  232. package/dist/esm/stencil-router-redirect.entry.js +0 -28
  233. package/dist/esm/user.store-b8645067.js +0 -19
  234. package/dist/sparkle-core/p-03585916.js +0 -1
  235. package/dist/sparkle-core/p-1019ebc3.js +0 -1
  236. package/dist/sparkle-core/p-1728ead7.js +0 -1
  237. package/dist/sparkle-core/p-32762a44.entry.js +0 -1
  238. package/dist/sparkle-core/p-3bc68dd0.js +0 -1
  239. package/dist/sparkle-core/p-3c133235.entry.js +0 -1
  240. package/dist/sparkle-core/p-46869031.entry.js +0 -1
  241. package/dist/sparkle-core/p-4a5f2b2b.js +0 -1
  242. package/dist/sparkle-core/p-53bcbd1d.js +0 -1
  243. package/dist/sparkle-core/p-54ada5e3.entry.js +0 -1
  244. package/dist/sparkle-core/p-554da5b8.entry.js +0 -1
  245. package/dist/sparkle-core/p-5da2d95a.entry.js +0 -1
  246. package/dist/sparkle-core/p-6b05a1d3.entry.js +0 -1
  247. package/dist/sparkle-core/p-6ea246fe.js +0 -4
  248. package/dist/sparkle-core/p-6ed0236e.entry.js +0 -1
  249. package/dist/sparkle-core/p-7f25366a.entry.js +0 -1
  250. package/dist/sparkle-core/p-91accfc1.js +0 -1
  251. package/dist/sparkle-core/p-a5c5da9a.entry.js +0 -1
  252. package/dist/sparkle-core/p-a8a77bec.entry.js +0 -1
  253. package/dist/sparkle-core/p-c4af184b.entry.js +0 -1
  254. package/dist/sparkle-core/p-c71cbbf7.entry.js +0 -1
  255. package/dist/sparkle-core/p-c8c73fa7.js +0 -4
  256. package/dist/sparkle-core/p-cd832fbf.entry.js +0 -1
  257. package/dist/sparkle-core/p-d0ac5f17.js +0 -1
  258. package/dist/sparkle-core/p-d1fcbfc2.js +0 -4
  259. package/dist/sparkle-core/p-d432d3ac.entry.js +0 -1
  260. package/dist/sparkle-core/p-d969f7d0.entry.js +0 -348
  261. package/dist/sparkle-core/p-dca90a55.entry.js +0 -4
  262. package/dist/sparkle-core/p-dd2e7f84.js +0 -4
  263. package/dist/sparkle-core/p-e0429a19.entry.js +0 -1
  264. package/dist/sparkle-core/p-e7066c64.entry.js +0 -1
  265. package/dist/sparkle-core/p-eb40a191.entry.js +0 -1
  266. package/dist/sparkle-core/p-ecdea569.entry.js +0 -1
  267. package/dist/sparkle-core/p-ef6c2352.entry.js +0 -1
@@ -0,0 +1,117 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-51e8292e.js');
6
+
7
+ function GetSelectOptionId(questionId, index) {
8
+ return "question-" + questionId + "-option-" + index;
9
+ }
10
+
11
+ const sparkleQuizFeedbackCss = ":host{display:block}";
12
+
13
+ const SparkleQuizFeedback = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ this.quizFeedbackChange = index.createEvent(this, "quizFeedbackChange", 7);
17
+ this.displayOptions = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
18
+ }
19
+ render() {
20
+ return (index.h(index.Host, { class: "quiz__feedback" }, index.h("div", { class: "question-container" }, index.h("div", { class: "question-text" }, this.question.questionText), index.h("div", null, this.displayOptions.map((option, index$1) => index.h("div", { class: "option" }, index.h("input", { type: "radio", id: GetSelectOptionId(this.question.questionId, index$1), name: "question-" + this.question.questionId, value: option, onChange: (e) => this.quizFeedbackChange.emit({ value: e.target.value, question: this.question }) }), index.h("label", { htmlFor: GetSelectOptionId(this.question.questionId, index$1) }, index.h("span", { class: "number" }, this.displayOptions[index$1]), " ", option), index.h("br", null)))))));
21
+ }
22
+ };
23
+ SparkleQuizFeedback.style = sparkleQuizFeedbackCss;
24
+
25
+ const sparkleQuizInputCss = ":host{display:block}";
26
+
27
+ const SparkleQuizInput = class {
28
+ constructor(hostRef) {
29
+ index.registerInstance(this, hostRef);
30
+ this.quizInputChange = index.createEvent(this, "quizInputChange", 7);
31
+ }
32
+ render() {
33
+ return (index.h(index.Host, { class: "quiz__input" }, index.h("div", { class: "question-container" }, index.h("label", { htmlFor: "question-" + this.question.questionId, class: "form-label" }, this.question.questionText), index.h("input", { type: "text", class: "form-control", id: "question-" + this.question.questionId, name: "question-" + this.question.questionId, onInput: (e) => this.quizInputChange.emit({ value: e.target.value, question: this.question }) }))));
34
+ }
35
+ };
36
+ SparkleQuizInput.style = sparkleQuizInputCss;
37
+
38
+ const sparkleQuizOpinionCss = "sparkle-quiz-opinion .scale{display:flex;justify-content:space-between}sparkle-quiz-opinion .scale>p{margin:0}sparkle-quiz-opinion .scale>p.selected{color:var(--ion-color-primary)}sparkle-quiz-opinion ion-icon{font-size:30px}sparkle-quiz-opinion .icon-group{min-width:70px;text-align:right;padding-right:10px}";
39
+
40
+ const SparkleQuizOpinion = class {
41
+ constructor(hostRef) {
42
+ index.registerInstance(this, hostRef);
43
+ this.quizOpinionChange = index.createEvent(this, "quizOpinionChange", 7);
44
+ this.fivePointsDisplayOptions = ['Strongly agree', 'Agree', 'Not sure', 'Disagree', 'Strongly disagree'];
45
+ this.tenPointsDisplayOptions = ["Never",
46
+ "Never",
47
+ "Sometimes",
48
+ "Sometimes",
49
+ "Half of the time",
50
+ "Half of the time",
51
+ "Most of the time",
52
+ "Most of the time",
53
+ "Always",
54
+ "Always",
55
+ "Always"];
56
+ this.tenPointsDefaultValue = 5;
57
+ }
58
+ optionChanged(index, answer) {
59
+ this.selectedIndex = index;
60
+ this.quizOpinionChange.emit({ value: answer, question: this.question });
61
+ }
62
+ renderFivePointScale() {
63
+ return (this.fivePointsDisplayOptions.map((option, index$1) => index.h("div", { class: "option" }, index.h("input", { id: GetSelectOptionId(this.question.questionId, index$1), type: "radio", name: "question-" + this.question.questionId, value: option, onChange: (e) => this.optionChanged(index$1, this.fivePointsDisplayOptions[index$1]) }), index.h("label", { htmlFor: GetSelectOptionId(this.question.questionId, index$1) }, index.h("span", { class: "number" }, index$1 + 1), option), index.h("br", null))));
64
+ }
65
+ renderTenPointScale() {
66
+ return (index.h("div", null, index.h("ion-item", null, index.h("ion-range", { class: "opinion-range", onIonChange: (e) => this.optionChanged(+e.detail.value, this.tenPointsDisplayOptions[+e.detail.value]), min: 0, max: 10, value: this.tenPointsDefaultValue, step: 1, pin: true, snaps: true }, index.h("ion-icon", { size: "small", slot: "start", name: "star-outline" }), index.h("ion-icon", { slot: "end", name: "star" }))), index.h("div", { class: "scale" }, index.h("p", null, "Never"), index.h("p", { class: "selected" }, this.tenPointsDisplayOptions[this.selectedIndex] || this.tenPointsDisplayOptions[this.tenPointsDefaultValue]), index.h("p", null, "Always")), index.h("br", null), index.h("hr", null)));
67
+ }
68
+ render() {
69
+ return (index.h(index.Host, { class: "quiz__opinion" }, index.h("div", { class: "opinion-container" }, index.h("div", { class: "question-text" }, this.question.questionText), index.h("div", null, this.question.scale == "FIVE-POINTS" && this.renderFivePointScale(), this.question.scale == "TEN-POINTS" && this.renderTenPointScale()))));
70
+ }
71
+ get el() { return index.getElement(this); }
72
+ };
73
+ SparkleQuizOpinion.style = sparkleQuizOpinionCss;
74
+
75
+ const sparkleQuizPollCss = ":host{display:block}";
76
+
77
+ const SparkleQuizPoll = class {
78
+ constructor(hostRef) {
79
+ index.registerInstance(this, hostRef);
80
+ this.quizInputChange = index.createEvent(this, "quizInputChange", 7);
81
+ }
82
+ render() {
83
+ return (index.h(index.Host, { class: "quiz__input" }, index.h("div", { class: "question-container" }, index.h("label", { htmlFor: "question-" + this.question.questionId, class: "form-label" }, this.question.questionText), index.h("input", { type: "text", class: "form-control", id: "question-" + this.question.questionId, name: "question-" + this.question.questionId, onInput: (e) => this.quizInputChange.emit({ value: e.target.value, question: this.question }) }))));
84
+ }
85
+ };
86
+ SparkleQuizPoll.style = sparkleQuizPollCss;
87
+
88
+ const sparkleQuizSelectCss = ":host{display:block}";
89
+
90
+ const SparkleQuizSelect = class {
91
+ constructor(hostRef) {
92
+ index.registerInstance(this, hostRef);
93
+ this.quizSelectChange = index.createEvent(this, "quizSelectChange", 7);
94
+ this.allowMultiple = false;
95
+ this.values = [];
96
+ this.displayOptions = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
97
+ }
98
+ optionChanged(e) {
99
+ if (e.target.checked) {
100
+ this.values = [...this.values, e.target.value];
101
+ }
102
+ else {
103
+ this.values = this.values.filter(x => x !== e.target.value);
104
+ }
105
+ this.quizSelectChange.emit({ value: this.values, question: this.question });
106
+ }
107
+ render() {
108
+ return (index.h(index.Host, { class: "quiz__select" }, index.h("div", { class: "question-container" }, index.h("div", { class: "question-text" }, this.question.questionText), index.h("div", null, this.question.options.map((option, index$1) => index.h("div", { class: "option" }, index.h("input", { type: this.allowMultiple ? "checkbox" : "radio", id: GetSelectOptionId(this.question.questionId, index$1), name: "question-" + this.question.questionId, value: option.option, onChange: (e) => this.optionChanged(e) }), index.h("label", { htmlFor: GetSelectOptionId(this.question.questionId, index$1) }, index.h("span", { class: "number" }, this.displayOptions[index$1]), option.option), index.h("br", null)))))));
109
+ }
110
+ };
111
+ SparkleQuizSelect.style = sparkleQuizSelectCss;
112
+
113
+ exports.sparkle_quiz_feedback = SparkleQuizFeedback;
114
+ exports.sparkle_quiz_input = SparkleQuizInput;
115
+ exports.sparkle_quiz_opinion = SparkleQuizOpinion;
116
+ exports.sparkle_quiz_poll = SparkleQuizPoll;
117
+ exports.sparkle_quiz_select = SparkleQuizSelect;
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-51e8292e.js');
6
+
7
+ 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)}";
8
+
9
+ const SparkleQuiz = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.quizAnswerChanged = index.createEvent(this, "quizAnswerChanged", 7);
13
+ this.type = 'TEXT';
14
+ this.scale = 'FIVE-POINTS';
15
+ this.options = [];
16
+ }
17
+ // private pageInfo: any;
18
+ // @Watch('questionId')
19
+ // async loadQuestion() {
20
+ // if (this.quizData) {
21
+ // this.question = this.quizData[+this.questionId];
22
+ // }
23
+ // }
24
+ //@State() question: SparkleQuizQuestion;
25
+ //@State() quizData: { [key: string]: SparkleQuizQuestion };
26
+ async componentWillLoad() { }
27
+ async componentDidLoad() {
28
+ this.options = [];
29
+ if (this.el.querySelector("[slot='options']")) {
30
+ Array.from(this.el.querySelector("[slot='options']").querySelectorAll('option')).forEach(el => {
31
+ this.options = [...this.options, { option: el.innerText }];
32
+ });
33
+ console.log(this.questionText, this.options);
34
+ }
35
+ this.quizAnswerChanged.emit({
36
+ question: null,
37
+ answer: '1',
38
+ });
39
+ }
40
+ quizInputChangeHandler(event) {
41
+ this.quizAnswerChanged.emit({
42
+ question: event.detail.question,
43
+ answer: event.detail.value,
44
+ });
45
+ }
46
+ quizFeedbackChangeHandler(event) {
47
+ this.quizAnswerChanged.emit({
48
+ question: event.detail.question,
49
+ answer: event.detail.value,
50
+ });
51
+ }
52
+ quizSelectChangeHandler(event) {
53
+ this.quizAnswerChanged.emit({
54
+ question: event.detail.question,
55
+ answer: event.detail.value,
56
+ });
57
+ }
58
+ quizOpinionChangeHandler(event) {
59
+ this.quizAnswerChanged.emit({
60
+ question: event.detail.question,
61
+ answer: event.detail.value,
62
+ });
63
+ }
64
+ getQuestionFeedback() {
65
+ if (this.type == 'MULTIPLE-CHOICE') {
66
+ // const feedbacks = this.question.options.filter(x => x.correct == true).map(x => x.feedback);
67
+ // return feedbacks.length > 0 && feedbacks.map(feedback => <small>{feedback}</small>);
68
+ return index.h("small", null);
69
+ }
70
+ else if (this.type == 'FEEDBACK' || this.type == 'TEXT') {
71
+ return this.feedback && index.h("small", null, " ", this.feedback);
72
+ }
73
+ }
74
+ showAnswerStatus() {
75
+ return index.h("div", null, this.correct ? index.h("strong", null, "Good job!") : index.h("strong", null, "Incorrect answer, please try again."));
76
+ }
77
+ renderQuestion() {
78
+ var question = {
79
+ questionId: this.questionId,
80
+ questionText: this.questionText,
81
+ questionType: this.type,
82
+ scale: this.scale,
83
+ showOptionNumber: this.showOptionNumber,
84
+ options: this.options,
85
+ //options: Array<SparkleQuizQuestionOption>;
86
+ feedback: this.feedback,
87
+ };
88
+ if (this.type == 'MULTIPLE-CHOICE') {
89
+ return index.h("sparkle-quiz-select", { question: question, allowMultiple: true });
90
+ }
91
+ else if (this.type == 'FEEDBACK') {
92
+ return index.h("sparkle-quiz-feedback", { question: question });
93
+ }
94
+ else if (this.type == 'TEXT') {
95
+ return index.h("sparkle-quiz-input", { question: question });
96
+ }
97
+ else if (this.type == 'OPINION') {
98
+ return index.h("sparkle-quiz-opinion", { question: question });
99
+ }
100
+ else if (this.type == 'POLL') {
101
+ return index.h("sparkle-quiz-poll", { question: question });
102
+ }
103
+ }
104
+ render() {
105
+ if (this.questionText) {
106
+ let classes = {
107
+ correct: this.submitted && this.correct,
108
+ incorrect: this.submitted && !this.correct,
109
+ };
110
+ return (index.h("div", { class: classes, ref: el => (this.containerRef = el) }, index.h("div", { hidden: true }, index.h("slot", null)), this.renderQuestion(), this.submitted && this.showInstantResult && index.h("div", { class: "feedback-container" }, [this.showAnswerStatus(), this.getQuestionFeedback()])));
111
+ }
112
+ else {
113
+ return index.h("p", null, "No question found.");
114
+ }
115
+ }
116
+ get el() { return index.getElement(this); }
117
+ };
118
+ SparkleQuiz.style = sparkleQuizCss;
119
+
120
+ exports.sparkle_quiz = SparkleQuiz;
@@ -0,0 +1,78 @@
1
+ 'use strict';
2
+
3
+ const httpService = require('./httpService-7211d93b.js');
4
+ const auth_store = require('./auth.store-1e630a7d.js');
5
+
6
+ const { state, onChange, reset } = auth_store.createStore({
7
+ user: {
8
+ FirstName: '',
9
+ LastName: '',
10
+ ProfileText: '',
11
+ ProfileImage: '',
12
+ IsVerified: false,
13
+ Roles: [],
14
+ FacilitatorClassList: []
15
+ },
16
+ loaded: false,
17
+ updateLoading: false,
18
+ enrollmentList: [],
19
+ });
20
+ const userStore = { state, onChange, reset };
21
+
22
+ class StudentService {
23
+ constructor() { }
24
+ static getInstance() {
25
+ if (!StudentService.instance) {
26
+ StudentService.instance = new StudentService();
27
+ }
28
+ return StudentService.instance;
29
+ }
30
+ async enrollClass(enrollInput) {
31
+ let result = await httpService.HttpService.http.post('api/v1/Student/EnrollClass', enrollInput);
32
+ if (result) {
33
+ userStore.state.enrollmentList = [
34
+ ...userStore.state.enrollmentList,
35
+ result.Data
36
+ ];
37
+ }
38
+ return result;
39
+ }
40
+ async leaveClass(leaveInput) {
41
+ let result = await httpService.HttpService.http.post('api/v1/Student/LeaveClass', leaveInput);
42
+ if (result) {
43
+ userStore.state.enrollmentList = userStore.state.enrollmentList.filter((item) => item.Id != result.Data);
44
+ }
45
+ return result;
46
+ }
47
+ async fetchUserConfiguration() {
48
+ let result = await httpService.HttpService.http.get('api/v1/Student/UserConfiguration');
49
+ if (result) {
50
+ userStore.state.enrollmentList = result.Data.EnrollmentList;
51
+ userStore.state.user.FirstName = result.Data.FirstName;
52
+ userStore.state.user.LastName = result.Data.LastName;
53
+ userStore.state.user.ProfileText = result.Data.ProfileText;
54
+ userStore.state.user.ProfileImage = result.Data.ProfileImage;
55
+ userStore.state.user.IsVerified = result.Data.IsVerified;
56
+ userStore.state.user.Roles = result.Data.Roles;
57
+ userStore.state.user.FacilitatorClassList = result.Data.FacilitatorClassList;
58
+ }
59
+ return result;
60
+ }
61
+ async updateProfile(updateProfileInput) {
62
+ userStore.state.updateLoading = true;
63
+ let result = await httpService.HttpService.http.post('api/Account/update-profile', updateProfileInput);
64
+ console.log('after fetch', result);
65
+ if (result) {
66
+ userStore.state.updateLoading = false;
67
+ 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 });
68
+ }
69
+ return result;
70
+ }
71
+ async submitFeedback(feedbackInput) {
72
+ let result = await httpService.HttpService.http.post('api/v1/Feedback', feedbackInput);
73
+ return result;
74
+ }
75
+ }
76
+
77
+ exports.StudentService = StudentService;
78
+ exports.userStore = userStore;
@@ -1,7 +1,7 @@
1
- import { c as getAssetPath } from './index-c04b9ed5.js';
1
+ import { c as getAssetPath, h } from './index-c04b9ed5.js';
2
2
  import { s as set, r as remove, g as get } from './localstorage.service-4bf408c8.js';
3
- import { H as HttpService } from './httpService-61864992.js';
4
- import { A as AuthStore } from './auth.store-633e8414.js';
3
+ import { H as HttpService } from './httpService-7b75b095.js';
4
+ import { A as AuthStore } from './auth.store-dba2c2da.js';
5
5
 
6
6
  //import * as abpTypings from '../lib/abp';
7
7
  class Utils {
@@ -192,4 +192,33 @@ class AuthService {
192
192
  }
193
193
  }
194
194
 
195
- export { AuthService as A, initSetupConfig as i, setupConfig as s };
195
+ function isGranted(permissionName) {
196
+ return sparkle.auth.isGranted(permissionName);
197
+ }
198
+
199
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
200
+ var t = {};
201
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
202
+ t[p] = s[p];
203
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
204
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
205
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
206
+ t[p[i]] = s[p[i]];
207
+ }
208
+ return t;
209
+ };
210
+ const Route = (_a) => {
211
+ var { component, permission, render } = _a, props = __rest(_a, ["component", "permission", "render"]);
212
+ const Component = component;
213
+ return (h("stencil-route", Object.assign({}, props, { routeRender: (props) => {
214
+ if (!AuthStore.state.isAuthenticated)
215
+ return (h("stencil-router-redirect", { url: "/login" }));
216
+ if (permission && !isGranted(permission)) {
217
+ return (h("stencil-router-redirect", { url: "/unauthorized" }));
218
+ }
219
+ return Component ? h(Component, Object.assign({}, props, props.componentProps)) : render(props);
220
+ } })));
221
+ };
222
+ const PrivateRoute = Route;
223
+
224
+ export { AuthService as A, PrivateRoute as P, initSetupConfig as i, setupConfig as s };
@@ -1,4 +1,4 @@
1
- import { b as raf } from './helpers-03073fe4.js';
1
+ import { l as raf } from './helpers-bf0e23d6.js';
2
2
 
3
3
  /*!
4
4
  * (C) Ionic http://ionicframework.com - MIT License
@@ -3378,4 +3378,4 @@ onChange('authUser', (authUser) => {
3378
3378
  });
3379
3379
  const AuthStore = { state, onChange, reset };
3380
3380
 
3381
- export { AuthStore as A, TocStore as T, axios_1 as a, createCommonjsModule as b, createStore as c, commonjsGlobal as d, formats as f, getDefaultExportFromCjs as g, sideChannel as s, utils as u };
3381
+ export { AuthStore as A, TocStore as T, axios_1 as a, commonjsGlobal as b, createCommonjsModule as c, createStore as d, formats as f, getDefaultExportFromCjs as g, sideChannel as s, utils as u };
@@ -1,5 +1,5 @@
1
- import { H as HttpService } from './httpService-61864992.js';
2
- import { c as createStore } from './auth.store-633e8414.js';
1
+ import { H as HttpService } from './httpService-7b75b095.js';
2
+ import { d as createStore } from './auth.store-dba2c2da.js';
3
3
 
4
4
  const { state, onChange } = createStore({
5
5
  pageNotes: [],
@@ -1,6 +1,6 @@
1
- import { H as HttpService } from './httpService-61864992.js';
2
- import { c as createStore } from './auth.store-633e8414.js';
3
- import { S as SparkleGlobal } from './util-a831d09d.js';
1
+ import { H as HttpService } from './httpService-7b75b095.js';
2
+ import { d as createStore } from './auth.store-dba2c2da.js';
3
+ import { S as SparkleGlobal } from './util-6ef753e9.js';
4
4
 
5
5
  const { state: state$1, onChange } = createStore({
6
6
  goals: [],
@@ -1,4 +1,4 @@
1
- import { c as componentOnReady } from './helpers-03073fe4.js';
1
+ import { c as componentOnReady } from './helpers-bf0e23d6.js';
2
2
 
3
3
  /*!
4
4
  * (C) Ionic http://ionicframework.com - MIT License