@sparkle-learning/core 0.0.35 → 0.0.38

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 (405) hide show
  1. package/dist/cjs/{header-mobile-collapse_2.cjs.entry.js → header-mobile-collapse.cjs.entry.js} +0 -22
  2. package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
  3. package/dist/cjs/ion-button.cjs.entry.js +129 -0
  4. package/dist/cjs/ion-card-title.cjs.entry.js +30 -0
  5. package/dist/cjs/ion-card_2.cjs.entry.js +91 -0
  6. package/dist/cjs/ion-icon_13.cjs.entry.js +1505 -0
  7. package/dist/cjs/ion-input_2.cjs.entry.js +313 -0
  8. package/dist/cjs/ion-label_2.cjs.entry.js +126 -0
  9. package/dist/cjs/ion-spinner.cjs.entry.js +64 -0
  10. package/dist/cjs/ion-textarea.cjs.entry.js +248 -0
  11. package/dist/cjs/ion-toggle.cjs.entry.js +177 -0
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/sparkle-core.cjs.js +1 -1
  14. package/dist/cjs/sparkle-feed-post.cjs.entry.js +120 -0
  15. package/dist/cjs/{sparkle-quiz.cjs.entry.js → sparkle-quiz-v1.cjs.entry.js} +4 -4
  16. package/dist/collection/collection-manifest.json +2 -1
  17. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +30 -28
  18. package/dist/collection/components/sparkle-quiz/{sparkle-quiz.css → sparkle-quiz/sparkle-quiz.css} +0 -0
  19. package/dist/collection/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.js +327 -0
  20. package/dist/collection/components/sparkle-quiz/sparkle-quiz-v1.css +48 -0
  21. package/dist/collection/components/sparkle-quiz/{sparkle-quiz.js → sparkle-quiz-v1.js} +4 -4
  22. package/dist/esm/{PrivateRoute-530ef873.js → PrivateRoute-7b526801.js} +2 -2
  23. package/dist/esm/{active-router-9843e205.js → active-router-fc9e4e06.js} +1 -1
  24. package/dist/esm/{animation-d98d3e81.js → animation-e0716b39.js} +1 -1
  25. package/dist/esm/{app-globals-08edc964.js → app-globals-3f0347b0.js} +1 -1
  26. package/dist/esm/{auth.service-79389d86.js → auth.service-9fb86455.js} +3 -3
  27. package/dist/esm/{auth.store-b812b34b.js → auth.store-633e8414.js} +1 -1
  28. package/dist/esm/compass-svg.entry.js +1 -1
  29. package/dist/esm/context-consumer.entry.js +1 -1
  30. package/dist/esm/course-select.entry.js +1 -1
  31. package/dist/esm/{dom-utils-8e73e88b.js → dom-utils-109a7d75.js} +1 -1
  32. package/dist/esm/{facilitator.service-7babc526.js → facilitator.service-8fd435bf.js} +2 -2
  33. package/dist/esm/{feed.service-80fbe79d.js → feed.service-ace049e5.js} +2 -2
  34. package/dist/esm/{framework-delegate-9b329182.js → framework-delegate-e4f8013b.js} +1 -1
  35. package/dist/esm/{haptic-3a76a65c.js → haptic-522f76f2.js} +1 -1
  36. package/dist/esm/{header-mobile-collapse_2.entry.js → header-mobile-collapse.entry.js} +3 -24
  37. package/dist/esm/{helpers-94a5855b.js → helpers-03073fe4.js} +1 -1
  38. package/dist/esm/{httpService-b2b7a1ad.js → httpService-61864992.js} +2 -2
  39. package/dist/esm/{icons-16f1a80b.js → icons-90b957ab.js} +1 -1
  40. package/dist/esm/{index-c23a1826.js → index-37004831.js} +2 -2
  41. package/dist/esm/{index-4ec6b9c2.js → index-4044fde9.js} +1 -1
  42. package/dist/esm/{index-230a26c9.js → index-a2d2941d.js} +1 -1
  43. package/dist/esm/{index-478745be.js → index-b4b4e503.js} +4 -4
  44. package/dist/esm/{index-9db08224.js → index-c04b9ed5.js} +1 -1
  45. package/dist/esm/{index-95307148.js → index-dedabca0.js} +3 -3
  46. package/dist/esm/{index-ab1c6a9f.js → index-f9b9ba5d.js} +2 -2
  47. package/dist/esm/{index.es-1c3b1ef3.js → index.es-283fbd2e.js} +2 -2
  48. package/dist/esm/index.js +8 -8
  49. package/dist/esm/{injectHistory-4bfff188.js → injectHistory-968f626d.js} +1 -1
  50. package/dist/esm/{input-shims-ce5c01df.js → input-shims-cc3720a0.js} +2 -2
  51. package/dist/esm/ion-accordion-group.entry.js +2 -2
  52. package/dist/esm/ion-accordion.entry.js +4 -4
  53. package/dist/esm/ion-action-sheet_4.entry.js +8 -8
  54. package/dist/esm/ion-app.entry.js +5 -5
  55. package/dist/esm/ion-avatar.entry.js +21 -0
  56. package/dist/esm/ion-back-button.entry.js +4 -4
  57. package/dist/esm/ion-backdrop.entry.js +2 -2
  58. package/dist/esm/ion-badge.entry.js +2 -2
  59. package/dist/esm/ion-breadcrumb.entry.js +4 -4
  60. package/dist/esm/ion-breadcrumbs.entry.js +2 -2
  61. package/dist/esm/ion-button.entry.js +125 -0
  62. package/dist/esm/ion-buttons_3.entry.js +2 -2
  63. package/dist/esm/ion-card-header.entry.js +2 -2
  64. package/dist/esm/ion-card-subtitle.entry.js +2 -2
  65. package/dist/esm/ion-card-title.entry.js +26 -0
  66. package/dist/esm/ion-card_2.entry.js +86 -0
  67. package/dist/esm/ion-checkbox_4.entry.js +3 -3
  68. package/dist/esm/ion-chip.entry.js +2 -2
  69. package/dist/esm/ion-col_3.entry.js +2 -2
  70. package/dist/esm/ion-content_2.entry.js +4 -4
  71. package/dist/esm/ion-datetime-button.entry.js +3 -3
  72. package/dist/esm/ion-datetime.entry.js +4 -4
  73. package/dist/esm/ion-fab-button.entry.js +4 -4
  74. package/dist/esm/ion-fab-list.entry.js +2 -2
  75. package/dist/esm/ion-fab.entry.js +2 -2
  76. package/dist/esm/ion-footer.entry.js +4 -4
  77. package/dist/esm/ion-icon_13.entry.js +1489 -0
  78. package/dist/esm/ion-img.entry.js +3 -3
  79. package/dist/esm/ion-infinite-scroll-content.entry.js +2 -2
  80. package/dist/esm/ion-infinite-scroll.entry.js +4 -4
  81. package/dist/esm/ion-input_2.entry.js +308 -0
  82. package/dist/esm/ion-item-divider.entry.js +2 -2
  83. package/dist/esm/ion-item-group.entry.js +2 -2
  84. package/dist/esm/ion-item-option.entry.js +2 -2
  85. package/dist/esm/ion-item-options.entry.js +3 -3
  86. package/dist/esm/ion-item-sliding.entry.js +4 -4
  87. package/dist/esm/ion-label_2.entry.js +121 -0
  88. package/dist/esm/ion-loading.entry.js +5 -5
  89. package/dist/esm/ion-menu-button.entry.js +7 -7
  90. package/dist/esm/ion-menu-toggle.entry.js +6 -6
  91. package/dist/esm/ion-menu.entry.js +6 -6
  92. package/dist/esm/ion-modal.entry.js +8 -8
  93. package/dist/esm/ion-nav-link.entry.js +1 -1
  94. package/dist/esm/ion-nav.entry.js +6 -6
  95. package/dist/esm/ion-picker-column-internal_2.entry.js +4 -4
  96. package/dist/esm/ion-picker-column.entry.js +4 -4
  97. package/dist/esm/ion-picker.entry.js +5 -5
  98. package/dist/esm/ion-progress-bar.entry.js +3 -3
  99. package/dist/esm/ion-refresher-content.entry.js +3 -3
  100. package/dist/esm/ion-refresher.entry.js +6 -6
  101. package/dist/esm/ion-reorder-group.entry.js +5 -5
  102. package/dist/esm/ion-reorder.entry.js +3 -3
  103. package/dist/esm/ion-route-redirect.entry.js +1 -1
  104. package/dist/esm/ion-route.entry.js +1 -1
  105. package/dist/esm/ion-router-link.entry.js +2 -2
  106. package/dist/esm/ion-router-outlet.entry.js +6 -6
  107. package/dist/esm/ion-router.entry.js +2 -2
  108. package/dist/esm/ion-searchbar.entry.js +4 -4
  109. package/dist/esm/ion-segment-button.entry.js +3 -3
  110. package/dist/esm/ion-segment.entry.js +3 -3
  111. package/dist/esm/ion-select_2.entry.js +4 -4
  112. package/dist/esm/ion-skeleton-text.entry.js +2 -2
  113. package/dist/esm/ion-slide.entry.js +2 -2
  114. package/dist/esm/ion-slides.entry.js +3 -3
  115. package/dist/esm/ion-spinner.entry.js +60 -0
  116. package/dist/esm/ion-split-pane.entry.js +2 -2
  117. package/dist/esm/ion-tab-bar.entry.js +2 -2
  118. package/dist/esm/ion-tab-button.entry.js +2 -2
  119. package/dist/esm/ion-tab.entry.js +3 -3
  120. package/dist/esm/ion-tabs.entry.js +1 -1
  121. package/dist/esm/ion-textarea.entry.js +244 -0
  122. package/dist/esm/ion-thumbnail.entry.js +2 -2
  123. package/dist/esm/ion-toast.entry.js +5 -5
  124. package/dist/esm/ion-toggle.entry.js +173 -0
  125. package/dist/esm/ion-virtual-scroll.entry.js +2 -2
  126. package/dist/esm/{ionic-global-293e882b.js → ionic-global-4903e23e.js} +1 -1
  127. package/dist/esm/{ios.transition-7cd34deb.js → ios.transition-3a6179bb.js} +4 -4
  128. package/dist/esm/loader.js +4 -4
  129. package/dist/esm/{md.transition-2589a5b1.js → md.transition-cff16bf3.js} +4 -4
  130. package/dist/esm/{menu-toggle-util-f92ba2f0.js → menu-toggle-util-59241733.js} +1 -1
  131. package/dist/esm/{overlays-dfa730c8.js → overlays-bdd9344a.js} +2 -2
  132. package/dist/esm/{purify-79af871f.js → purify-7085b248.js} +1 -1
  133. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  134. package/dist/esm/sparkle-card_3.entry.js +2 -2
  135. package/dist/esm/sparkle-character-intro.entry.js +1 -1
  136. package/dist/esm/sparkle-code.entry.js +2 -2
  137. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  138. package/dist/esm/sparkle-compass.entry.js +1 -1
  139. package/dist/esm/sparkle-core.js +4 -4
  140. package/dist/esm/sparkle-course-root.entry.js +11 -11
  141. package/dist/esm/sparkle-dropdown.entry.js +2 -2
  142. package/dist/esm/sparkle-emoji.entry.js +1 -1
  143. package/dist/esm/sparkle-export-lessons_6.entry.js +11 -11
  144. package/dist/esm/sparkle-facilitator-header_19.entry.js +17 -17
  145. package/dist/esm/sparkle-facilitator-notes-form.entry.js +7 -7
  146. package/dist/esm/sparkle-feed-post.entry.js +116 -0
  147. package/dist/esm/sparkle-feedback.entry.js +8 -8
  148. package/dist/esm/sparkle-goal-form.entry.js +7 -7
  149. package/dist/esm/sparkle-goal-progress.entry.js +1 -1
  150. package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
  151. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  152. package/dist/esm/sparkle-gww-item.entry.js +4 -4
  153. package/dist/esm/sparkle-intro.entry.js +1 -1
  154. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  155. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  156. package/dist/esm/sparkle-menu-toggle_3.entry.js +3 -3
  157. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  158. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  159. package/dist/esm/sparkle-overlay.entry.js +1 -1
  160. package/dist/esm/sparkle-poll.entry.js +1 -1
  161. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  162. package/dist/esm/{sparkle-quiz.entry.js → sparkle-quiz-v1.entry.js} +5 -5
  163. package/dist/esm/sparkle-select.entry.js +1 -1
  164. package/dist/esm/sparkle-sidebar.entry.js +1 -1
  165. package/dist/esm/sparkle-tab.entry.js +1 -1
  166. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  167. package/dist/esm/sparkle-tabs.entry.js +1 -1
  168. package/dist/esm/sparkle-validation-error.entry.js +1 -1
  169. package/dist/esm/sparkle-youtube.entry.js +1 -1
  170. package/dist/esm/{status-tap-79b6199d.js → status-tap-463d0f87.js} +3 -3
  171. package/dist/esm/stencil-async-content.entry.js +1 -1
  172. package/dist/esm/stencil-route-title.entry.js +2 -2
  173. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  174. package/dist/esm/stencil-router-redirect.entry.js +2 -2
  175. package/dist/esm/{student.service-0caed0f4.js → student.service-e6eb1f99.js} +2 -2
  176. package/dist/esm/{swipe-back-ad7a0361.js → swipe-back-f8765ac9.js} +1 -1
  177. package/dist/esm/{user.store-8477642a.js → user.store-b8645067.js} +1 -1
  178. package/dist/sparkle-core/index.esm.js +1 -1
  179. package/dist/sparkle-core/p-0147266a.js +1 -0
  180. package/dist/sparkle-core/{p-4c9e010d.entry.js → p-014b5707.entry.js} +1 -1
  181. package/dist/sparkle-core/p-03585916.js +1 -0
  182. package/dist/sparkle-core/{p-9ef14088.entry.js → p-04c7b276.entry.js} +1 -1
  183. package/dist/sparkle-core/{p-4af496a8.entry.js → p-06642405.entry.js} +1 -1
  184. package/dist/sparkle-core/{p-0b92326d.entry.js → p-06c7d0f2.entry.js} +1 -1
  185. package/dist/sparkle-core/p-08d97c59.entry.js +1 -0
  186. package/dist/sparkle-core/p-0bb0cf41.entry.js +1 -0
  187. package/dist/sparkle-core/{p-136b93d5.entry.js → p-0c0f8acd.entry.js} +1 -1
  188. package/dist/sparkle-core/p-0ea2518d.entry.js +1 -0
  189. package/dist/sparkle-core/{p-fe3a7bca.js → p-1019ebc3.js} +1 -1
  190. package/dist/sparkle-core/p-162bff1a.entry.js +1 -0
  191. package/dist/sparkle-core/{p-27075abe.js → p-17eb4633.js} +1 -1
  192. package/dist/sparkle-core/p-1b1ba156.entry.js +1 -0
  193. package/dist/sparkle-core/{p-b00d0a47.entry.js → p-1e4782af.entry.js} +1 -1
  194. package/dist/sparkle-core/{p-c8ad5a5b.entry.js → p-1f0b3ff9.entry.js} +2 -2
  195. package/dist/sparkle-core/{p-3ef53ebf.entry.js → p-214d1229.entry.js} +1 -1
  196. package/dist/sparkle-core/p-25e556cc.entry.js +1 -0
  197. package/dist/sparkle-core/{p-bae8cd7d.entry.js → p-27fbabc3.entry.js} +1 -1
  198. package/dist/sparkle-core/{p-e6d39f6e.entry.js → p-285ab4ed.entry.js} +1 -1
  199. package/dist/sparkle-core/{p-d220a642.entry.js → p-2ba70507.entry.js} +1 -1
  200. package/dist/sparkle-core/{p-5a3de051.entry.js → p-2d4a5ddf.entry.js} +2 -2
  201. package/dist/sparkle-core/p-2d9659e2.entry.js +1 -0
  202. package/dist/sparkle-core/p-2e035338.entry.js +1 -0
  203. package/dist/sparkle-core/{p-c9f474d0.js → p-2e2b813c.js} +1 -1
  204. package/dist/sparkle-core/{p-df5efe0d.entry.js → p-2f10208d.entry.js} +1 -1
  205. package/dist/sparkle-core/p-2fba9a3a.entry.js +1 -0
  206. package/dist/sparkle-core/p-317037de.entry.js +1 -0
  207. package/dist/sparkle-core/p-32762a44.entry.js +1 -0
  208. package/dist/sparkle-core/p-32f4e565.entry.js +1 -0
  209. package/dist/sparkle-core/{p-23d713e2.js → p-340754ed.js} +1 -1
  210. package/dist/sparkle-core/{p-7b21bd70.entry.js → p-352677e6.entry.js} +1 -1
  211. package/dist/sparkle-core/p-370609ba.entry.js +1 -0
  212. package/dist/sparkle-core/{p-fea20ec2.entry.js → p-38b7cf68.entry.js} +1 -1
  213. package/dist/sparkle-core/{p-c5eb4404.entry.js → p-3963e02b.entry.js} +1 -1
  214. package/dist/sparkle-core/p-3bc68dd0.js +1 -0
  215. package/dist/sparkle-core/p-3c133235.entry.js +1 -0
  216. package/dist/sparkle-core/{p-308517b3.js → p-3f85e1ca.js} +2 -2
  217. package/dist/sparkle-core/p-4053ecdb.entry.js +1 -0
  218. package/dist/sparkle-core/{p-1394cbb8.js → p-405f7c58.js} +2 -2
  219. package/dist/sparkle-core/{p-d6a3a639.entry.js → p-4320dac0.entry.js} +1 -1
  220. package/dist/sparkle-core/p-44f813b7.entry.js +1 -0
  221. package/dist/sparkle-core/p-46869031.entry.js +1 -0
  222. package/dist/sparkle-core/{p-17aef6f9.js → p-4a5f2b2b.js} +1 -1
  223. package/dist/sparkle-core/p-4ae75caa.entry.js +1 -0
  224. package/dist/sparkle-core/{p-a05871e6.js → p-4c6a7e52.js} +1 -1
  225. package/dist/sparkle-core/{p-d6637b48.entry.js → p-5096739e.entry.js} +1 -1
  226. package/dist/sparkle-core/p-5322c920.entry.js +1 -0
  227. package/dist/sparkle-core/p-539bf742.js +4 -0
  228. package/dist/sparkle-core/{p-2bd4c60e.js → p-53bcbd1d.js} +1 -1
  229. package/dist/sparkle-core/{p-11ed6b7f.entry.js → p-54ada5e3.entry.js} +1 -1
  230. package/dist/sparkle-core/{p-5979f253.entry.js → p-5519d283.entry.js} +1 -1
  231. package/dist/sparkle-core/p-554da5b8.entry.js +1 -0
  232. package/dist/sparkle-core/{p-8d630960.js → p-56a2e8a2.js} +1 -1
  233. package/dist/sparkle-core/{p-d0d0e5e5.entry.js → p-5893bbe5.entry.js} +1 -1
  234. package/dist/sparkle-core/{p-b8ba8164.entry.js → p-594a6982.entry.js} +1 -1
  235. package/dist/sparkle-core/{p-34ebfc8a.entry.js → p-5c435d5a.entry.js} +1 -1
  236. package/dist/sparkle-core/p-5da2d95a.entry.js +1 -0
  237. package/dist/sparkle-core/{p-1c2aee9c.js → p-5fc26938.js} +1 -1
  238. package/dist/sparkle-core/{p-16b7974e.entry.js → p-601397df.entry.js} +1 -1
  239. package/dist/sparkle-core/{p-dff8325e.js → p-604a7987.js} +1 -1
  240. package/dist/sparkle-core/{p-58f74119.entry.js → p-616941c6.entry.js} +1 -1
  241. package/dist/sparkle-core/{p-fe214d79.entry.js → p-6316d124.entry.js} +1 -1
  242. package/dist/sparkle-core/p-63f69cdc.entry.js +1 -0
  243. package/dist/sparkle-core/p-63f71ada.entry.js +1 -0
  244. package/dist/sparkle-core/p-64e814b9.entry.js +1 -0
  245. package/dist/sparkle-core/{p-0c603495.entry.js → p-66a85393.entry.js} +1 -1
  246. package/dist/sparkle-core/{p-ea4a9f0d.entry.js → p-69487d90.entry.js} +1 -1
  247. package/dist/sparkle-core/p-6b05a1d3.entry.js +1 -0
  248. package/dist/sparkle-core/{p-9dc42d70.entry.js → p-6c894fa2.entry.js} +1 -1
  249. package/dist/sparkle-core/p-6ea246fe.js +4 -0
  250. package/dist/sparkle-core/p-6ed0236e.entry.js +1 -0
  251. package/dist/sparkle-core/{p-34d93a39.entry.js → p-6f0545b3.entry.js} +1 -1
  252. package/dist/sparkle-core/{p-8cbe019a.entry.js → p-727e1c28.entry.js} +1 -1
  253. package/dist/sparkle-core/p-81714d94.entry.js +1 -0
  254. package/dist/sparkle-core/{p-3d2c0e24.entry.js → p-82ad4e7c.entry.js} +2 -2
  255. package/dist/sparkle-core/p-859563db.entry.js +1 -0
  256. package/dist/sparkle-core/p-865f36a8.entry.js +1 -0
  257. package/dist/sparkle-core/{p-01743e3e.js → p-871106e0.js} +1 -1
  258. package/dist/sparkle-core/p-8a41b502.entry.js +1 -0
  259. package/dist/sparkle-core/p-8c74cbb6.entry.js +1 -0
  260. package/dist/sparkle-core/p-91accfc1.js +1 -0
  261. package/dist/sparkle-core/p-93e74f1b.entry.js +1 -0
  262. package/dist/sparkle-core/{p-6ae9c743.entry.js → p-975b99ee.entry.js} +1 -1
  263. package/dist/sparkle-core/p-99ee9919.js +1 -0
  264. package/dist/sparkle-core/{p-3fd92216.entry.js → p-9e309b3e.entry.js} +1 -1
  265. package/dist/sparkle-core/p-9e7fee8f.entry.js +1 -0
  266. package/dist/sparkle-core/{p-280e938d.js → p-a019ad0c.js} +1 -1
  267. package/dist/sparkle-core/{p-06af1bc8.entry.js → p-a2638250.entry.js} +1 -1
  268. package/dist/sparkle-core/{p-e1743d82.entry.js → p-a2ebcf0a.entry.js} +1 -1
  269. package/dist/sparkle-core/p-a5c5da9a.entry.js +1 -0
  270. package/dist/sparkle-core/{p-966817ec.js → p-a85598ad.js} +1 -1
  271. package/dist/sparkle-core/p-a8a77bec.entry.js +1 -0
  272. package/dist/sparkle-core/{p-ba775d8e.entry.js → p-a98d7ebe.entry.js} +1 -1
  273. package/dist/sparkle-core/{p-ed3dfd89.js → p-ad102371.js} +2 -2
  274. package/dist/sparkle-core/{p-bd2c8e30.entry.js → p-b236d258.entry.js} +2 -2
  275. package/dist/sparkle-core/{p-0127a61a.entry.js → p-b4b01fa2.entry.js} +1 -1
  276. package/dist/sparkle-core/{p-9a383065.entry.js → p-b4bc8b02.entry.js} +2 -2
  277. package/dist/sparkle-core/{p-767c9db8.entry.js → p-b5ec8fb0.entry.js} +1 -1
  278. package/dist/sparkle-core/{p-0798d46a.entry.js → p-b83444c7.entry.js} +1 -1
  279. package/dist/sparkle-core/{p-fde96f7c.js → p-b9933822.js} +1 -1
  280. package/dist/sparkle-core/p-b9b1d4da.entry.js +1 -0
  281. package/dist/sparkle-core/{p-3810777d.js → p-be28346b.js} +1 -1
  282. package/dist/sparkle-core/{p-3c752205.entry.js → p-c278db5f.entry.js} +1 -1
  283. package/dist/sparkle-core/p-c2990b24.entry.js +1 -0
  284. package/dist/sparkle-core/{p-a6c1a55a.entry.js → p-c2bbaf55.entry.js} +1 -1
  285. package/dist/sparkle-core/{p-16c81890.entry.js → p-c4af184b.entry.js} +1 -1
  286. package/dist/sparkle-core/p-c71cbbf7.entry.js +1 -0
  287. package/dist/sparkle-core/p-c8c73fa7.js +4 -0
  288. package/dist/sparkle-core/p-c8fe45df.entry.js +1 -0
  289. package/dist/sparkle-core/{p-7b3d1457.js → p-c9cd4ff1.js} +1 -1
  290. package/dist/sparkle-core/{p-a19b42f0.js → p-ca4c8a10.js} +1 -1
  291. package/dist/sparkle-core/p-cab3da3c.entry.js +1 -0
  292. package/dist/sparkle-core/p-cc518c36.entry.js +1 -0
  293. package/dist/sparkle-core/p-cd832fbf.entry.js +1 -0
  294. package/dist/sparkle-core/{p-085eb951.entry.js → p-ce94efdb.entry.js} +1 -1
  295. package/dist/sparkle-core/p-cffd4817.entry.js +1 -0
  296. package/dist/sparkle-core/{p-e09de7ac.js → p-d0ac5f17.js} +1 -1
  297. package/dist/sparkle-core/{p-9cd95e7e.entry.js → p-d0adf726.entry.js} +1 -1
  298. package/dist/sparkle-core/p-d1fcbfc2.js +4 -0
  299. package/dist/sparkle-core/p-d20e4fcf.entry.js +1 -0
  300. package/dist/sparkle-core/p-d24e53ab.entry.js +1 -0
  301. package/dist/sparkle-core/p-d288e6c1.entry.js +1 -0
  302. package/dist/sparkle-core/p-d432d3ac.entry.js +1 -0
  303. package/dist/sparkle-core/{p-785f1879.entry.js → p-d601810e.entry.js} +1 -1
  304. package/dist/sparkle-core/{p-ea7d7a3b.js → p-d81a0680.js} +1 -1
  305. package/dist/sparkle-core/{p-58389020.entry.js → p-d969f7d0.entry.js} +3 -3
  306. package/dist/sparkle-core/p-dabc80c4.entry.js +1 -0
  307. package/dist/sparkle-core/{p-351b82a8.entry.js → p-db8387eb.entry.js} +1 -1
  308. package/dist/sparkle-core/{p-4e0502b8.entry.js → p-dca90a55.entry.js} +1 -1
  309. package/dist/sparkle-core/{p-506f3c5f.js → p-dd2e7f84.js} +2 -2
  310. package/dist/sparkle-core/p-e0429a19.entry.js +1 -0
  311. package/dist/sparkle-core/{p-d5b8302f.entry.js → p-e249aebf.entry.js} +1 -1
  312. package/dist/sparkle-core/p-e3e36ce9.entry.js +1 -0
  313. package/dist/sparkle-core/{p-fdb9a613.entry.js → p-e421d638.entry.js} +1 -1
  314. package/dist/sparkle-core/p-e65c72cc.entry.js +1 -0
  315. package/dist/sparkle-core/{p-b2827978.entry.js → p-e7066c64.entry.js} +1 -1
  316. package/dist/sparkle-core/{p-4338e1e3.js → p-e7568d4b.js} +1 -1
  317. package/dist/sparkle-core/{p-efe37368.entry.js → p-e8988989.entry.js} +1 -1
  318. package/dist/sparkle-core/{p-6a337ad1.entry.js → p-ea962e1b.entry.js} +1 -1
  319. package/dist/sparkle-core/p-eb40a191.entry.js +1 -0
  320. package/dist/sparkle-core/{p-bb575dba.entry.js → p-ecdea569.entry.js} +1 -1
  321. package/dist/sparkle-core/p-ed9f48c4.entry.js +1 -0
  322. package/dist/sparkle-core/{p-6a5ace01.js → p-ee1e0eb4.js} +1 -1
  323. package/dist/sparkle-core/{p-a111c567.entry.js → p-ef6c2352.entry.js} +1 -1
  324. package/dist/sparkle-core/p-f0cf4a8f.entry.js +1 -0
  325. package/dist/sparkle-core/{p-defeaa5c.entry.js → p-f4b0b6a4.entry.js} +1 -1
  326. package/dist/sparkle-core/{p-1701723e.entry.js → p-fc965b88.entry.js} +1 -1
  327. package/dist/sparkle-core/p-fd8d0738.entry.js +4 -0
  328. package/dist/sparkle-core/{p-63d8a5b7.entry.js → p-fda95b6e.entry.js} +1 -1
  329. package/dist/sparkle-core/{p-9b4979b5.entry.js → p-fde382f0.entry.js} +1 -1
  330. package/dist/sparkle-core/{p-3eb56165.entry.js → p-fe6dc976.entry.js} +1 -1
  331. package/dist/sparkle-core/{p-f63a13d8.entry.js → p-ff0e0d4e.entry.js} +1 -1
  332. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  333. package/dist/types/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.d.ts +42 -0
  334. package/dist/types/components/sparkle-quiz/sparkle-quiz-v1.d.ts +41 -0
  335. package/dist/types/components/sparkle-quiz/sparkle-quiz.d.ts +36 -36
  336. package/dist/types/components.d.ts +37 -1
  337. package/package.json +1 -1
  338. package/dist/cjs/ion-avatar_16.cjs.entry.js +0 -1907
  339. package/dist/cjs/ion-range.cjs.entry.js +0 -515
  340. package/dist/cjs/ion-text.cjs.entry.js +0 -24
  341. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  342. package/dist/cjs/stencil-route-link.cjs.entry.js +0 -77
  343. package/dist/esm/ion-avatar_16.entry.js +0 -1888
  344. package/dist/esm/ion-range.entry.js +0 -511
  345. package/dist/esm/ion-text.entry.js +0 -20
  346. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  347. package/dist/esm/stencil-route-link.entry.js +0 -73
  348. package/dist/sparkle-core/p-0d7cceaa.entry.js +0 -1
  349. package/dist/sparkle-core/p-0d813026.entry.js +0 -1
  350. package/dist/sparkle-core/p-122427b7.entry.js +0 -1
  351. package/dist/sparkle-core/p-12c4f45c.entry.js +0 -1
  352. package/dist/sparkle-core/p-14340143.entry.js +0 -4
  353. package/dist/sparkle-core/p-14a06a91.entry.js +0 -1
  354. package/dist/sparkle-core/p-180857a2.entry.js +0 -1
  355. package/dist/sparkle-core/p-1acc7870.entry.js +0 -1
  356. package/dist/sparkle-core/p-1cd4c3cc.entry.js +0 -1
  357. package/dist/sparkle-core/p-21d9833d.js +0 -1
  358. package/dist/sparkle-core/p-25c13612.entry.js +0 -1
  359. package/dist/sparkle-core/p-2699868a.entry.js +0 -1
  360. package/dist/sparkle-core/p-2c89a6c2.entry.js +0 -1
  361. package/dist/sparkle-core/p-3227afcb.entry.js +0 -1
  362. package/dist/sparkle-core/p-363a2d6d.js +0 -4
  363. package/dist/sparkle-core/p-36c48760.entry.js +0 -1
  364. package/dist/sparkle-core/p-384911d7.entry.js +0 -1
  365. package/dist/sparkle-core/p-3b618eda.entry.js +0 -1
  366. package/dist/sparkle-core/p-442eadcf.entry.js +0 -1
  367. package/dist/sparkle-core/p-4d0dfbc9.js +0 -1
  368. package/dist/sparkle-core/p-524a6174.entry.js +0 -1
  369. package/dist/sparkle-core/p-53aac9d7.entry.js +0 -1
  370. package/dist/sparkle-core/p-56700a40.entry.js +0 -1
  371. package/dist/sparkle-core/p-5722be24.entry.js +0 -1
  372. package/dist/sparkle-core/p-5a850731.entry.js +0 -1
  373. package/dist/sparkle-core/p-5dcf33fb.entry.js +0 -1
  374. package/dist/sparkle-core/p-5e8fa1ac.entry.js +0 -1
  375. package/dist/sparkle-core/p-5ef50959.js +0 -1
  376. package/dist/sparkle-core/p-615b8f64.entry.js +0 -1
  377. package/dist/sparkle-core/p-76206f80.entry.js +0 -1
  378. package/dist/sparkle-core/p-76a6e202.entry.js +0 -1
  379. package/dist/sparkle-core/p-788735b9.entry.js +0 -1
  380. package/dist/sparkle-core/p-8e42e634.entry.js +0 -1
  381. package/dist/sparkle-core/p-8e56f9ee.entry.js +0 -1
  382. package/dist/sparkle-core/p-8ed0cefb.entry.js +0 -1
  383. package/dist/sparkle-core/p-9484e34b.entry.js +0 -1
  384. package/dist/sparkle-core/p-969e98e5.entry.js +0 -1
  385. package/dist/sparkle-core/p-98f3925b.js +0 -4
  386. package/dist/sparkle-core/p-99231c00.js +0 -4
  387. package/dist/sparkle-core/p-9eea81f2.js +0 -1
  388. package/dist/sparkle-core/p-a2f7c751.entry.js +0 -1
  389. package/dist/sparkle-core/p-a458b415.entry.js +0 -1
  390. package/dist/sparkle-core/p-ab3a8f5e.entry.js +0 -1
  391. package/dist/sparkle-core/p-ac0e4d8c.entry.js +0 -1
  392. package/dist/sparkle-core/p-bb3e3482.entry.js +0 -1
  393. package/dist/sparkle-core/p-c48352cf.js +0 -4
  394. package/dist/sparkle-core/p-ca0edc9b.entry.js +0 -1
  395. package/dist/sparkle-core/p-cb04b18a.entry.js +0 -1
  396. package/dist/sparkle-core/p-d38a2511.entry.js +0 -1
  397. package/dist/sparkle-core/p-d5ba8e80.entry.js +0 -1
  398. package/dist/sparkle-core/p-d6788642.entry.js +0 -1
  399. package/dist/sparkle-core/p-d86f8633.entry.js +0 -1
  400. package/dist/sparkle-core/p-df5cfa7f.entry.js +0 -1
  401. package/dist/sparkle-core/p-e28a106d.entry.js +0 -1
  402. package/dist/sparkle-core/p-e566c0b3.entry.js +0 -1
  403. package/dist/sparkle-core/p-f187d129.entry.js +0 -1
  404. package/dist/sparkle-core/p-f5e7bfa5.js +0 -1
  405. package/dist/sparkle-core/p-ff26d891.entry.js +0 -1
@@ -6,9 +6,9 @@ const index = require('./index-51e8292e.js');
6
6
  const assets_service = require('./assets.service-0c759d51.js');
7
7
  const environmentConfig_service = require('./environment-config.service-0e02b049.js');
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
+ const sparkleQuizV1Css = "sparkle-quiz-v1{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)}";
10
10
 
11
- const SparkleQuiz = class {
11
+ const SparkleQuizV1 = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.quizAnswerChanged = index.createEvent(this, "quizAnswerChanged", 7);
@@ -100,6 +100,6 @@ const SparkleQuiz = class {
100
100
  "questionId": ["loadQuestion"]
101
101
  }; }
102
102
  };
103
- SparkleQuiz.style = sparkleQuizCss;
103
+ SparkleQuizV1.style = sparkleQuizV1Css;
104
104
 
105
- exports.sparkle_quiz = SparkleQuiz;
105
+ exports.sparkle_quiz_v1 = SparkleQuizV1;
@@ -32,7 +32,8 @@
32
32
  "./components/sparkle-intro/sparkle-intro.js",
33
33
  "./components/sparkle-login/sparkle-login.js",
34
34
  "./components/sparkle-poll/sparkle-poll.js",
35
- "./components/sparkle-quiz/sparkle-quiz.js",
35
+ "./components/sparkle-quiz/sparkle-quiz-v1.js",
36
+ "./components/sparkle-quiz/sparkle-quiz/sparkle-quiz.js",
36
37
  "./components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js",
37
38
  "./components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js",
38
39
  "./components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js",
@@ -1,4 +1,4 @@
1
- import { Component, Element, State, Prop, Method, h } from '@stencil/core';
1
+ import { Component, Element, State, Prop, Method, h, Host } from '@stencil/core';
2
2
  import { EnvironmentConfigService } from '../../services';
3
3
  export class SparkleFeedPost {
4
4
  // @Prop({ connect: 'ion-toast-controller' })
@@ -108,33 +108,35 @@ export class SparkleFeedPost {
108
108
  }
109
109
  render() {
110
110
  const userInfo = this.renderUserInfo();
111
- return (h("ion-card", null,
112
- h("ion-item", { class: "header" },
113
- h("ion-card-title", null, "Bulletin Board"),
114
- userInfo),
115
- h("ion-card-content", null,
116
- h("form", null,
117
- h("ion-list", null,
118
- h("ion-item", { lines: "none" },
119
- h("ion-label", null, "Public"),
120
- h("ion-toggle", { class: "IsPublic", slot: "end", color: "primary", name: "IsPublic" })),
121
- h("ion-item", { class: "padding" },
122
- h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", name: "PostText", value: this.postText })),
123
- h("ion-item", { class: "padding" },
124
- h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", value: this.externalResourceUrl })),
125
- this.uploadedImage ? (h("ion-item", { class: "padding" },
126
- h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''),
127
- h("ion-item", { lines: "none" },
128
- h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }),
129
- this.uploadImageLoading ? h("ion-spinner", { color: "primary" }) : '',
130
- h("ion-button", { slot: "start", onClick: evt => this.selectFile() },
131
- h("ion-icon", { name: "add" }),
132
- "Upload Image")),
133
- h("ion-item", { class: "post-footer", lines: "none" },
134
- h("div", null,
135
- h("div", { class: "error" }, this.errorMessage),
136
- h("div", { class: "success" }, this.successMessage)),
137
- h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: !this.isAuthenticated() }, "Post")))))));
111
+ return (h(Host, null,
112
+ h("slot", null),
113
+ h("ion-card", null,
114
+ h("ion-item", { class: "header" },
115
+ h("ion-card-title", null, "Community Wall"),
116
+ userInfo),
117
+ h("ion-card-content", null,
118
+ h("form", null,
119
+ h("ion-list", null,
120
+ h("ion-item", { lines: "none" },
121
+ h("ion-label", null, "Public"),
122
+ h("ion-toggle", { class: "IsPublic", slot: "end", color: "primary", name: "IsPublic" })),
123
+ h("ion-item", { class: "padding" },
124
+ h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", name: "PostText", value: this.postText })),
125
+ h("ion-item", { class: "padding" },
126
+ h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", value: this.externalResourceUrl })),
127
+ this.uploadedImage ? (h("ion-item", { class: "padding" },
128
+ h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''),
129
+ h("ion-item", { lines: "none" },
130
+ h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }),
131
+ this.uploadImageLoading ? h("ion-spinner", { color: "primary" }) : '',
132
+ h("ion-button", { slot: "start", onClick: evt => this.selectFile() },
133
+ h("ion-icon", { name: "add" }),
134
+ "Upload Image")),
135
+ h("ion-item", { class: "post-footer", lines: "none" },
136
+ h("div", null,
137
+ h("div", { class: "error" }, this.errorMessage),
138
+ h("div", { class: "success" }, this.successMessage)),
139
+ h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: !this.isAuthenticated() }, "Post"))))))));
138
140
  }
139
141
  static get is() { return "sparkle-feed-post"; }
140
142
  static get originalStyleUrls() { return {
@@ -0,0 +1,327 @@
1
+ import { Component, Prop, Listen, State, Event, Element, h } from '@stencil/core';
2
+ export class SparkleQuiz {
3
+ constructor() {
4
+ this.type = 'TEXT';
5
+ this.scale = 'FIVE-POINTS';
6
+ this.options = [];
7
+ }
8
+ // private pageInfo: any;
9
+ // @Watch('questionId')
10
+ // async loadQuestion() {
11
+ // if (this.quizData) {
12
+ // this.question = this.quizData[+this.questionId];
13
+ // }
14
+ // }
15
+ //@State() question: SparkleQuizQuestion;
16
+ //@State() quizData: { [key: string]: SparkleQuizQuestion };
17
+ async componentWillLoad() { }
18
+ async componentDidLoad() {
19
+ this.options = [];
20
+ if (this.el.querySelector("[slot='options']")) {
21
+ Array.from(this.el.querySelector("[slot='options']").querySelectorAll('option')).forEach(el => {
22
+ this.options = [...this.options, { option: el.innerText }];
23
+ });
24
+ console.log(this.questionText, this.options);
25
+ }
26
+ this.quizAnswerChanged.emit({
27
+ question: null,
28
+ answer: '1',
29
+ });
30
+ }
31
+ quizInputChangeHandler(event) {
32
+ this.quizAnswerChanged.emit({
33
+ question: event.detail.question,
34
+ answer: event.detail.value,
35
+ });
36
+ }
37
+ quizFeedbackChangeHandler(event) {
38
+ this.quizAnswerChanged.emit({
39
+ question: event.detail.question,
40
+ answer: event.detail.value,
41
+ });
42
+ }
43
+ quizSelectChangeHandler(event) {
44
+ this.quizAnswerChanged.emit({
45
+ question: event.detail.question,
46
+ answer: event.detail.value,
47
+ });
48
+ }
49
+ quizOpinionChangeHandler(event) {
50
+ this.quizAnswerChanged.emit({
51
+ question: event.detail.question,
52
+ answer: event.detail.value,
53
+ });
54
+ }
55
+ getQuestionFeedback() {
56
+ if (this.type == 'MULTIPLE-CHOICE') {
57
+ // const feedbacks = this.question.options.filter(x => x.correct == true).map(x => x.feedback);
58
+ // return feedbacks.length > 0 && feedbacks.map(feedback => <small>{feedback}</small>);
59
+ return h("small", null);
60
+ }
61
+ else if (this.type == 'FEEDBACK' || this.type == 'TEXT') {
62
+ return this.feedback && h("small", null,
63
+ " ",
64
+ this.feedback);
65
+ }
66
+ }
67
+ showAnswerStatus() {
68
+ return h("div", null, this.correct ? h("strong", null, "Good job!") : h("strong", null, "Incorrect answer, please try again."));
69
+ }
70
+ renderQuestion() {
71
+ var question = {
72
+ questionId: this.questionId,
73
+ questionText: this.questionText,
74
+ questionType: this.type,
75
+ scale: this.scale,
76
+ showOptionNumber: this.showOptionNumber,
77
+ options: this.options,
78
+ //options: Array<SparkleQuizQuestionOption>;
79
+ feedback: this.feedback,
80
+ };
81
+ if (this.type == 'MULTIPLE-CHOICE') {
82
+ return h("sparkle-quiz-select", { question: question, allowMultiple: true });
83
+ }
84
+ else if (this.type == 'FEEDBACK') {
85
+ return h("sparkle-quiz-feedback", { question: question });
86
+ }
87
+ else if (this.type == 'TEXT') {
88
+ return h("sparkle-quiz-input", { question: question });
89
+ }
90
+ else if (this.type == 'OPINION') {
91
+ return h("sparkle-quiz-opinion", { question: question });
92
+ }
93
+ else if (this.type == 'POLL') {
94
+ return h("sparkle-quiz-poll", { question: question });
95
+ }
96
+ }
97
+ render() {
98
+ if (this.questionText) {
99
+ let classes = {
100
+ correct: this.submitted && this.correct,
101
+ incorrect: this.submitted && !this.correct,
102
+ };
103
+ return (h("div", { class: classes, ref: el => (this.containerRef = el) },
104
+ h("div", { hidden: true },
105
+ h("slot", null)),
106
+ this.renderQuestion(),
107
+ this.submitted && this.showInstantResult && h("div", { class: "feedback-container" }, [this.showAnswerStatus(), this.getQuestionFeedback()])));
108
+ }
109
+ else {
110
+ return h("p", null, "No question found.");
111
+ }
112
+ }
113
+ static get is() { return "sparkle-quiz"; }
114
+ static get originalStyleUrls() { return {
115
+ "$": ["sparkle-quiz.scss"]
116
+ }; }
117
+ static get styleUrls() { return {
118
+ "$": ["sparkle-quiz.css"]
119
+ }; }
120
+ static get properties() { return {
121
+ "questionId": {
122
+ "type": "number",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "number",
126
+ "resolved": "number",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": ""
134
+ },
135
+ "attribute": "question-id",
136
+ "reflect": false
137
+ },
138
+ "type": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "'MULTIPLE-CHOICE' | 'TEXT' | 'FEEDBACK' | 'OPINION' | 'POLL'",
143
+ "resolved": "\"FEEDBACK\" | \"MULTIPLE-CHOICE\" | \"OPINION\" | \"POLL\" | \"TEXT\"",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": ""
151
+ },
152
+ "attribute": "type",
153
+ "reflect": false,
154
+ "defaultValue": "'TEXT'"
155
+ },
156
+ "scale": {
157
+ "type": "string",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "'FIVE-POINTS' | 'TEN-POINTS'",
161
+ "resolved": "\"FIVE-POINTS\" | \"TEN-POINTS\"",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": ""
169
+ },
170
+ "attribute": "scale",
171
+ "reflect": false,
172
+ "defaultValue": "'FIVE-POINTS'"
173
+ },
174
+ "questionText": {
175
+ "type": "string",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "string",
179
+ "resolved": "string",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": ""
187
+ },
188
+ "attribute": "question-text",
189
+ "reflect": false
190
+ },
191
+ "showOptionNumber": {
192
+ "type": "boolean",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "boolean",
196
+ "resolved": "boolean",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": ""
204
+ },
205
+ "attribute": "show-option-number",
206
+ "reflect": false
207
+ },
208
+ "submitted": {
209
+ "type": "boolean",
210
+ "mutable": false,
211
+ "complexType": {
212
+ "original": "boolean",
213
+ "resolved": "boolean",
214
+ "references": {}
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": ""
221
+ },
222
+ "attribute": "submitted",
223
+ "reflect": false
224
+ },
225
+ "correct": {
226
+ "type": "boolean",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "boolean",
230
+ "resolved": "boolean",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": ""
238
+ },
239
+ "attribute": "correct",
240
+ "reflect": false
241
+ },
242
+ "feedback": {
243
+ "type": "string",
244
+ "mutable": false,
245
+ "complexType": {
246
+ "original": "string",
247
+ "resolved": "string",
248
+ "references": {}
249
+ },
250
+ "required": false,
251
+ "optional": false,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": ""
255
+ },
256
+ "attribute": "feedback",
257
+ "reflect": false
258
+ },
259
+ "showInstantResult": {
260
+ "type": "boolean",
261
+ "mutable": false,
262
+ "complexType": {
263
+ "original": "boolean",
264
+ "resolved": "boolean",
265
+ "references": {}
266
+ },
267
+ "required": false,
268
+ "optional": false,
269
+ "docs": {
270
+ "tags": [],
271
+ "text": ""
272
+ },
273
+ "attribute": "show-instant-result",
274
+ "reflect": false
275
+ }
276
+ }; }
277
+ static get states() { return {
278
+ "options": {}
279
+ }; }
280
+ static get events() { return [{
281
+ "method": "quizAnswerChanged",
282
+ "name": "quizAnswerChanged",
283
+ "bubbles": true,
284
+ "cancelable": true,
285
+ "composed": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": ""
289
+ },
290
+ "complexType": {
291
+ "original": "{ answer: any; question: SparkleQuizQuestion }",
292
+ "resolved": "{ answer: any; question: SparkleQuizQuestion; }",
293
+ "references": {
294
+ "SparkleQuizQuestion": {
295
+ "location": "import",
296
+ "path": "../../../models/quiz.model"
297
+ }
298
+ }
299
+ }
300
+ }]; }
301
+ static get elementRef() { return "el"; }
302
+ static get listeners() { return [{
303
+ "name": "quizInputChange",
304
+ "method": "quizInputChangeHandler",
305
+ "target": undefined,
306
+ "capture": false,
307
+ "passive": false
308
+ }, {
309
+ "name": "quizFeedbackChange",
310
+ "method": "quizFeedbackChangeHandler",
311
+ "target": undefined,
312
+ "capture": false,
313
+ "passive": false
314
+ }, {
315
+ "name": "quizSelectChange",
316
+ "method": "quizSelectChangeHandler",
317
+ "target": undefined,
318
+ "capture": false,
319
+ "passive": false
320
+ }, {
321
+ "name": "quizOpinionChange",
322
+ "method": "quizOpinionChangeHandler",
323
+ "target": undefined,
324
+ "capture": false,
325
+ "passive": false
326
+ }]; }
327
+ }
@@ -0,0 +1,48 @@
1
+ sparkle-quiz-v1 {
2
+ display: block;
3
+ font-family: var(--font-family);
4
+ --sparkle-quiz-question-container-padding: 10px 0px;
5
+ --sparkle-quiz-question-container-margin: 0px;
6
+ --sparkle-quiz-question-text-padding: 10px 0px;
7
+ --sparkle-quiz-option-border: 2px solid var(--line-rule-color);
8
+ --sparkle-quiz-selected-option-border: 2px solid var(--text-color--dark);
9
+ --sparkle-quiz-option-border-radius: 4px;
10
+ --sparkle-quiz-option-padding: 5px 10px;
11
+ --sparkle-quiz-option-width: 100%;
12
+ --sparkle-quiz-error-bg-color: #fbaeae;
13
+ --sparkle-quiz-success-bg-color: #fbaeae;
14
+ padding: var(--sparkle-quiz-question-container-padding);
15
+ margin: var(--sparkle-quiz-question-container-margin);
16
+ }
17
+
18
+ .question-text {
19
+ padding: var(--sparkle-quiz-question-text-padding);
20
+ }
21
+
22
+ .option {
23
+ padding: 5px 0px;
24
+ }
25
+
26
+ .number {
27
+ padding: 0px 14px;
28
+ border: 1px solid #ebebeb;
29
+ border-radius: 4px;
30
+ margin-right: 10px;
31
+ font-size: 14px;
32
+ width: 14px;
33
+ display: inline-flex;
34
+ justify-content: center;
35
+ }
36
+
37
+ .feedback-container {
38
+ padding: 10px;
39
+ border-radius: 4px;
40
+ }
41
+
42
+ .incorrect .feedback-container {
43
+ background-color: var(--sparkle-quiz-error-bg-color, #fbaeae);
44
+ }
45
+
46
+ .correct .feedback-container {
47
+ background-color: var(--sparkle-quiz-success-bg-color, #fbaeae);
48
+ }
@@ -1,7 +1,7 @@
1
1
  import { Component, Prop, Watch, Listen, State, Event, Element, h } from '@stencil/core';
2
2
  import { AssetsService } from '../../services/core/assets.service';
3
3
  import { EnvironmentConfigService } from "../../services/environment/environment-config.service";
4
- export class SparkleQuiz {
4
+ export class SparkleQuizV1 {
5
5
  async loadQuestion() {
6
6
  if (this.quizData) {
7
7
  this.question = this.quizData[+this.questionId];
@@ -88,12 +88,12 @@ export class SparkleQuiz {
88
88
  return h("p", null, "No question found.");
89
89
  }
90
90
  }
91
- static get is() { return "sparkle-quiz"; }
91
+ static get is() { return "sparkle-quiz-v1"; }
92
92
  static get originalStyleUrls() { return {
93
- "$": ["sparkle-quiz.scss"]
93
+ "$": ["sparkle-quiz-v1.scss"]
94
94
  }; }
95
95
  static get styleUrls() { return {
96
- "$": ["sparkle-quiz.css"]
96
+ "$": ["sparkle-quiz-v1.css"]
97
97
  }; }
98
98
  static get properties() { return {
99
99
  "questionId": {
@@ -1,5 +1,5 @@
1
- import { h } from './index-9db08224.js';
2
- import { A as AuthStore } from './auth.store-b812b34b.js';
1
+ import { h } from './index-c04b9ed5.js';
2
+ import { A as AuthStore } from './auth.store-633e8414.js';
3
3
 
4
4
  function isGranted(permissionName) {
5
5
  return sparkle.auth.isGranted(permissionName);
@@ -1,4 +1,4 @@
1
- import { h } from './index-9db08224.js';
1
+ import { h } from './index-c04b9ed5.js';
2
2
 
3
3
  const createProviderConsumer = (defaultState, consumerRender) => {
4
4
  let listeners = new Map();
@@ -1,4 +1,4 @@
1
- import { j as raf } from './helpers-94a5855b.js';
1
+ import { b as raf } from './helpers-03073fe4.js';
2
2
 
3
3
  /*!
4
4
  * (C) Ionic http://ionicframework.com - MIT License
@@ -1,4 +1,4 @@
1
- import { i as initialize } from './ionic-global-293e882b.js';
1
+ import { i as initialize } from './ionic-global-4903e23e.js';
2
2
 
3
3
  const globalScripts = () => {
4
4
  initialize();
@@ -1,7 +1,7 @@
1
- import { c as getAssetPath } from './index-9db08224.js';
1
+ import { c as getAssetPath } 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-b2b7a1ad.js';
4
- import { A as AuthStore } from './auth.store-b812b34b.js';
3
+ import { H as HttpService } from './httpService-61864992.js';
4
+ import { A as AuthStore } from './auth.store-633e8414.js';
5
5
 
6
6
  //import * as abpTypings from '../lib/abp';
7
7
  class Utils {
@@ -1,4 +1,4 @@
1
- import { d as getRenderingRef, f as forceUpdate } from './index-9db08224.js';
1
+ import { d as getRenderingRef, f as forceUpdate } from './index-c04b9ed5.js';
2
2
 
3
3
  var bind = function bind(fn, thisArg) {
4
4
  return function wrap() {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-9db08224.js';
1
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-c04b9ed5.js';
2
2
 
3
3
  const compassSvgCss = ":host{display:block}.donut-ring{stroke:#000;stroke-width:1px}text{font-size:30px;font-weight:800;letter-spacing:2px;text-transform:uppercase;font-family:'Roboto Slab', serif}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, i as getElement } from './index-9db08224.js';
1
+ import { r as registerInstance, e as getElement } from './index-c04b9ed5.js';
2
2
 
3
3
  const ContextConsumer = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, i as getElement } from './index-9db08224.js';
1
+ import { r as registerInstance, h, e as getElement } from './index-c04b9ed5.js';
2
2
 
3
3
  const CourseSelect = class {
4
4
  constructor(hostRef) {
@@ -52,4 +52,4 @@ const storageAvailable = (win, type) => {
52
52
  }
53
53
  };
54
54
 
55
- export { supportsHistory as a, supportsPopStateOnHashChange as b, supportsGoWithoutReloadUsingHash as c, isModifiedEvent as d, getConfirmation as g, isExtraneousPopstateEvent as i, storageAvailable as s };
55
+ export { supportsHistory as a, supportsPopStateOnHashChange as b, isExtraneousPopstateEvent as c, supportsGoWithoutReloadUsingHash as d, getConfirmation as g, isModifiedEvent as i, storageAvailable as s };
@@ -1,5 +1,5 @@
1
- import { H as HttpService } from './httpService-b2b7a1ad.js';
2
- import { c as createStore } from './auth.store-b812b34b.js';
1
+ import { H as HttpService } from './httpService-61864992.js';
2
+ import { c as createStore } from './auth.store-633e8414.js';
3
3
 
4
4
  const { state, onChange } = createStore({
5
5
  pageNotes: [],
@@ -1,5 +1,5 @@
1
- import { H as HttpService } from './httpService-b2b7a1ad.js';
2
- import { c as createStore } from './auth.store-b812b34b.js';
1
+ import { H as HttpService } from './httpService-61864992.js';
2
+ import { c as createStore } from './auth.store-633e8414.js';
3
3
  import { S as SparkleGlobal } from './util-a831d09d.js';
4
4
 
5
5
  const { state: state$1, onChange } = createStore({
@@ -1,4 +1,4 @@
1
- import { c as componentOnReady } from './helpers-94a5855b.js';
1
+ import { c as componentOnReady } from './helpers-03073fe4.js';
2
2
 
3
3
  /*!
4
4
  * (C) Ionic http://ionicframework.com - MIT License
@@ -107,4 +107,4 @@ const hapticImpact = (options) => {
107
107
  HapticEngine.impact(options);
108
108
  };
109
109
 
110
- export { hapticImpact as a, hapticSelectionStart as b, hapticSelectionChanged as c, hapticSelectionEnd as d, hapticSelection as h };
110
+ export { hapticSelectionStart as a, hapticSelectionChanged as b, hapticSelectionEnd as c, hapticSelection as d, hapticImpact as h };