@sparkle-learning/core 0.0.56 → 0.0.57

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 (1100) hide show
  1. package/dist/sparkle-core/PrivateRoute-a12e7ee5.js +37 -0
  2. package/dist/sparkle-core/account.service-e711795d.js +63 -0
  3. package/dist/sparkle-core/active-router-af86c9b4.js +73 -0
  4. package/dist/sparkle-core/animation-676a644d.js +984 -0
  5. package/dist/sparkle-core/app-globals-9ffa9ec3.js +10 -0
  6. package/dist/sparkle-core/appdata.service-703dff70.js +69 -0
  7. package/dist/sparkle-core/assets/user.png +0 -0
  8. package/dist/sparkle-core/assets.service-6508aae6.js +71 -0
  9. package/dist/sparkle-core/assignment.service-e42e9368.js +17 -0
  10. package/dist/sparkle-core/button-active-d68c5eb7.js +67 -0
  11. package/dist/sparkle-core/compass-svg.entry.js +128 -0
  12. package/dist/sparkle-core/context-consumer.entry.js +25 -0
  13. package/dist/sparkle-core/course-select.entry.js +26 -0
  14. package/dist/sparkle-core/css-shim-04165e59.js +4 -0
  15. package/dist/sparkle-core/dom-26e7cb2c.js +73 -0
  16. package/dist/sparkle-core/dom-utils-8e73e88b.js +55 -0
  17. package/dist/sparkle-core/facilitator.service-00a88935.js +79 -0
  18. package/dist/sparkle-core/facilitator.store-01be0386.js +18 -0
  19. package/dist/sparkle-core/feed.service-d495f3e1.js +53 -0
  20. package/dist/sparkle-core/framework-delegate-d3fa493f.js +107 -0
  21. package/dist/sparkle-core/haptic-a9e94599.js +124 -0
  22. package/dist/sparkle-core/header-mobile-collapse.entry.js +86 -0
  23. package/dist/sparkle-core/helpers-f11f0674.js +406 -0
  24. package/dist/sparkle-core/icons-758d1417.js +41 -0
  25. package/dist/sparkle-core/index-05b398c2.js +34 -0
  26. package/dist/sparkle-core/index-0af0deac.js +312 -0
  27. package/dist/sparkle-core/index-0df264ee.js +4518 -0
  28. package/dist/sparkle-core/index-183cda39.js +223 -0
  29. package/dist/sparkle-core/index-18a69883.js +1336 -0
  30. package/dist/sparkle-core/index-1d7a6fa0.js +269 -0
  31. package/dist/sparkle-core/index-1dec9544.js +3064 -0
  32. package/dist/sparkle-core/index-81dab78f.js +85 -0
  33. package/dist/sparkle-core/index-9b5bcea1.js +22 -0
  34. package/dist/sparkle-core/index-bb469fe3.js +128 -0
  35. package/dist/sparkle-core/index-d2990a48.js +184 -0
  36. package/dist/sparkle-core/index-dd414b33.js +653 -0
  37. package/dist/sparkle-core/index-faeec85a.js +8 -0
  38. package/dist/sparkle-core/index.es-1f6eedc5.js +11066 -0
  39. package/dist/sparkle-core/index.esm.js +19 -1
  40. package/dist/sparkle-core/input-shims-0b2f5522.js +418 -0
  41. package/dist/sparkle-core/ion-accordion-group.entry.js +201 -0
  42. package/dist/sparkle-core/ion-accordion.entry.js +332 -0
  43. package/dist/sparkle-core/ion-action-sheet.entry.js +263 -0
  44. package/dist/sparkle-core/ion-alert.entry.js +448 -0
  45. package/dist/sparkle-core/ion-app.entry.js +75 -0
  46. package/dist/sparkle-core/ion-avatar.entry.js +21 -0
  47. package/dist/sparkle-core/ion-back-button.entry.js +90 -0
  48. package/dist/sparkle-core/ion-backdrop.entry.js +63 -0
  49. package/dist/sparkle-core/ion-badge.entry.js +25 -0
  50. package/dist/sparkle-core/ion-breadcrumb.entry.js +91 -0
  51. package/dist/sparkle-core/ion-breadcrumbs.entry.js +129 -0
  52. package/dist/sparkle-core/ion-button.entry.js +125 -0
  53. package/dist/sparkle-core/ion-buttons.entry.js +38 -0
  54. package/dist/sparkle-core/ion-card-content.entry.js +26 -0
  55. package/dist/sparkle-core/ion-card-header.entry.js +33 -0
  56. package/dist/sparkle-core/ion-card-subtitle.entry.js +26 -0
  57. package/dist/sparkle-core/ion-card-title.entry.js +26 -0
  58. package/dist/sparkle-core/ion-card.entry.js +64 -0
  59. package/dist/sparkle-core/ion-checkbox.entry.js +109 -0
  60. package/dist/sparkle-core/ion-chip.entry.js +36 -0
  61. package/dist/sparkle-core/ion-col.entry.js +121 -0
  62. package/dist/sparkle-core/ion-content.entry.js +319 -0
  63. package/dist/sparkle-core/ion-datetime-button.entry.js +308 -0
  64. package/dist/sparkle-core/ion-datetime.entry.js +1619 -0
  65. package/dist/sparkle-core/ion-fab-button.entry.js +104 -0
  66. package/dist/sparkle-core/ion-fab-list.entry.js +41 -0
  67. package/dist/sparkle-core/ion-fab.entry.js +72 -0
  68. package/dist/sparkle-core/ion-footer.entry.js +116 -0
  69. package/dist/sparkle-core/ion-grid.entry.js +24 -0
  70. package/dist/sparkle-core/ion-header.entry.js +341 -0
  71. package/dist/sparkle-core/ion-icon.entry.js +200 -0
  72. package/dist/sparkle-core/ion-img.entry.js +97 -0
  73. package/dist/sparkle-core/ion-infinite-scroll-content.entry.js +33 -0
  74. package/dist/sparkle-core/ion-infinite-scroll.entry.js +202 -0
  75. package/dist/sparkle-core/ion-input.entry.js +293 -0
  76. package/dist/sparkle-core/ion-item-divider.entry.js +36 -0
  77. package/dist/sparkle-core/ion-item-group.entry.js +27 -0
  78. package/dist/sparkle-core/ion-item-option.entry.js +56 -0
  79. package/dist/sparkle-core/ion-item-options.entry.js +43 -0
  80. package/dist/sparkle-core/ion-item-sliding.entry.js +394 -0
  81. package/dist/sparkle-core/ion-item.entry.js +267 -0
  82. package/dist/sparkle-core/ion-label.entry.js +77 -0
  83. package/dist/sparkle-core/ion-list-header.entry.js +27 -0
  84. package/dist/sparkle-core/ion-list.entry.js +48 -0
  85. package/dist/sparkle-core/ion-loading.entry.js +211 -0
  86. package/dist/sparkle-core/ion-menu-button.entry.js +72 -0
  87. package/dist/sparkle-core/ion-menu-toggle.entry.js +43 -0
  88. package/dist/sparkle-core/ion-menu.entry.js +575 -0
  89. package/dist/sparkle-core/ion-modal.entry.js +1706 -0
  90. package/dist/sparkle-core/ion-nav-link.entry.js +43 -0
  91. package/dist/sparkle-core/ion-nav.entry.js +872 -0
  92. package/dist/sparkle-core/ion-note.entry.js +25 -0
  93. package/dist/sparkle-core/ion-picker-column-internal.entry.js +363 -0
  94. package/dist/sparkle-core/ion-picker-column.entry.js +327 -0
  95. package/dist/sparkle-core/ion-picker-internal.entry.js +454 -0
  96. package/dist/sparkle-core/ion-picker.entry.js +217 -0
  97. package/dist/sparkle-core/ion-popover.entry.js +1362 -0
  98. package/dist/sparkle-core/ion-progress-bar.entry.js +70 -0
  99. package/dist/sparkle-core/ion-radio-group.entry.js +121 -0
  100. package/dist/sparkle-core/ion-radio.entry.js +111 -0
  101. package/dist/sparkle-core/ion-range.entry.js +511 -0
  102. package/dist/sparkle-core/ion-refresher-content.entry.js +31 -0
  103. package/dist/sparkle-core/ion-refresher.entry.js +798 -0
  104. package/dist/sparkle-core/ion-reorder-group.entry.js +277 -0
  105. package/dist/sparkle-core/ion-reorder.entry.js +34 -0
  106. package/dist/sparkle-core/ion-ripple-effect.entry.js +89 -0
  107. package/dist/sparkle-core/ion-route-redirect.entry.js +20 -0
  108. package/dist/sparkle-core/ion-route.entry.js +45 -0
  109. package/dist/sparkle-core/ion-router-link.entry.js +34 -0
  110. package/dist/sparkle-core/ion-router-outlet.entry.js +196 -0
  111. package/dist/sparkle-core/ion-router.entry.js +827 -0
  112. package/dist/sparkle-core/ion-row.entry.js +16 -0
  113. package/dist/sparkle-core/ion-searchbar.entry.js +366 -0
  114. package/dist/sparkle-core/ion-segment-button.entry.js +98 -0
  115. package/dist/sparkle-core/ion-segment.entry.js +415 -0
  116. package/dist/sparkle-core/ion-select-option.entry.js +23 -0
  117. package/dist/sparkle-core/ion-select-popover.entry.js +96 -0
  118. package/dist/sparkle-core/ion-select.entry.js +510 -0
  119. package/dist/sparkle-core/ion-skeleton-text.entry.js +29 -0
  120. package/dist/sparkle-core/ion-slide.entry.js +21 -0
  121. package/dist/sparkle-core/ion-slides.entry.js +387 -0
  122. package/dist/sparkle-core/ion-spinner.entry.js +60 -0
  123. package/dist/sparkle-core/ion-split-pane.entry.js +156 -0
  124. package/dist/sparkle-core/ion-tab-bar.entry.js +71 -0
  125. package/dist/sparkle-core/ion-tab-button.entry.js +99 -0
  126. package/dist/sparkle-core/ion-tab.entry.js +63 -0
  127. package/dist/sparkle-core/ion-tabs.entry.js +150 -0
  128. package/dist/sparkle-core/ion-text.entry.js +20 -0
  129. package/dist/sparkle-core/ion-textarea.entry.js +244 -0
  130. package/dist/sparkle-core/ion-thumbnail.entry.js +16 -0
  131. package/dist/sparkle-core/ion-title.entry.js +48 -0
  132. package/dist/sparkle-core/ion-toast.entry.js +268 -0
  133. package/dist/sparkle-core/ion-toggle.entry.js +173 -0
  134. package/dist/sparkle-core/ion-toolbar.entry.js +70 -0
  135. package/dist/sparkle-core/ion-virtual-scroll.entry.js +551 -0
  136. package/dist/sparkle-core/ionic-global-127576f6.js +226 -0
  137. package/dist/sparkle-core/ios.transition-02531dda.js +479 -0
  138. package/dist/sparkle-core/location-utils-fea12957.js +229 -0
  139. package/dist/sparkle-core/match-path-760e1797.js +343 -0
  140. package/dist/sparkle-core/md.transition-f8765467.js +55 -0
  141. package/dist/sparkle-core/media.service-2609406e.js +36 -0
  142. package/dist/sparkle-core/menu-toggle-util-6cc13cbd.js +12 -0
  143. package/dist/sparkle-core/overlays-fd3cfa13.js +493 -0
  144. package/dist/sparkle-core/parse-60474840.js +1196 -0
  145. package/dist/sparkle-core/purify-d9093094.js +1469 -0
  146. package/dist/sparkle-core/quiz.model-1cff62e4.js +5 -0
  147. package/dist/sparkle-core/shadow-css-1257b266.js +387 -0
  148. package/dist/sparkle-core/signalR.service-2b7645c1.js +2983 -0
  149. package/dist/sparkle-core/sparkle-animation-player.entry.js +513 -0
  150. package/dist/sparkle-core/sparkle-assignment.entry.js +114 -0
  151. package/dist/sparkle-core/sparkle-button.entry.js +24 -0
  152. package/dist/sparkle-core/sparkle-card.entry.js +61 -0
  153. package/dist/sparkle-core/sparkle-cards.entry.js +15 -0
  154. package/dist/sparkle-core/sparkle-character-intro.entry.js +22 -0
  155. package/dist/sparkle-core/sparkle-code.entry.js +39 -0
  156. package/dist/sparkle-core/sparkle-compass-post.entry.js +129 -0
  157. package/dist/sparkle-core/sparkle-compass.entry.js +122 -0
  158. package/dist/sparkle-core/sparkle-core.css +2660 -1
  159. package/dist/sparkle-core/sparkle-core.esm.js +130 -1
  160. package/dist/sparkle-core/sparkle-course-root.entry.js +155 -0
  161. package/dist/sparkle-core/sparkle-discussion-questions.entry.js +122 -0
  162. package/dist/sparkle-core/sparkle-discussion-results.entry.js +189 -0
  163. package/dist/sparkle-core/sparkle-discussion.entry.js +52 -0
  164. package/dist/sparkle-core/sparkle-dropdown.entry.js +57 -0
  165. package/dist/sparkle-core/sparkle-emoji.entry.js +77 -0
  166. package/dist/sparkle-core/sparkle-export-lessons.entry.js +10081 -0
  167. package/dist/sparkle-core/sparkle-facilitator-dashboard.entry.js +93 -0
  168. package/dist/sparkle-core/sparkle-facilitator-header.entry.js +60 -0
  169. package/dist/sparkle-core/sparkle-facilitator-notes-form.entry.js +160 -0
  170. package/dist/sparkle-core/sparkle-facilitator-notes.entry.js +65 -0
  171. package/dist/sparkle-core/sparkle-facilitator-page.entry.js +198 -0
  172. package/dist/sparkle-core/sparkle-feed-post.entry.js +131 -0
  173. package/dist/sparkle-core/sparkle-feedback.entry.js +106 -0
  174. package/dist/sparkle-core/sparkle-file-upload.entry.js +57 -0
  175. package/dist/sparkle-core/sparkle-forgot-password.entry.js +80 -0
  176. package/dist/sparkle-core/sparkle-goal-form.entry.js +182 -0
  177. package/dist/sparkle-core/sparkle-goal-item.entry.js +15 -0
  178. package/dist/sparkle-core/sparkle-goal-progress.entry.js +15 -0
  179. package/dist/sparkle-core/sparkle-goals.entry.js +47 -0
  180. package/dist/sparkle-core/sparkle-gww-comment-list.entry.js +22 -0
  181. package/dist/sparkle-core/sparkle-gww-graph.entry.js +15 -0
  182. package/dist/sparkle-core/sparkle-gww-item.entry.js +80 -0
  183. package/dist/sparkle-core/sparkle-gww.entry.js +44 -0
  184. package/dist/sparkle-core/sparkle-header.entry.js +97 -0
  185. package/dist/sparkle-core/sparkle-health.entry.js +70 -0
  186. package/dist/sparkle-core/sparkle-input.entry.js +52 -0
  187. package/dist/sparkle-core/sparkle-intro.entry.js +22 -0
  188. package/dist/sparkle-core/sparkle-login.entry.js +116 -0
  189. package/dist/sparkle-core/sparkle-lower-content-nav.entry.js +18 -0
  190. package/dist/sparkle-core/sparkle-menu-collapsible.entry.js +42 -0
  191. package/dist/sparkle-core/sparkle-menu-toggle.entry.js +24 -0
  192. package/dist/sparkle-core/sparkle-menu.entry.js +26 -0
  193. package/dist/sparkle-core/sparkle-modal-image.entry.js +33 -0
  194. package/dist/sparkle-core/sparkle-mood.entry.js +76 -0
  195. package/dist/sparkle-core/sparkle-nav.entry.js +113 -0
  196. package/dist/sparkle-core/sparkle-notfound-page.entry.js +25 -0
  197. package/dist/sparkle-core/sparkle-online-students.entry.js +55 -0
  198. package/dist/sparkle-core/sparkle-overlay.entry.js +90 -0
  199. package/dist/sparkle-core/sparkle-page-footer.entry.js +24 -0
  200. package/dist/sparkle-core/sparkle-page.entry.js +245 -0
  201. package/dist/sparkle-core/sparkle-pagination.entry.js +67 -0
  202. package/dist/sparkle-core/sparkle-poll.entry.js +15 -0
  203. package/dist/sparkle-core/sparkle-quiz-container.entry.js +43 -0
  204. package/dist/sparkle-core/sparkle-quiz-feedback.entry.js +18 -0
  205. package/dist/sparkle-core/sparkle-quiz-input.entry.js +16 -0
  206. package/dist/sparkle-core/sparkle-quiz-old.entry.js +116 -0
  207. package/dist/sparkle-core/sparkle-quiz-opinion.entry.js +41 -0
  208. package/dist/sparkle-core/sparkle-quiz-poll.entry.js +16 -0
  209. package/dist/sparkle-core/sparkle-quiz-select.entry.js +29 -0
  210. package/dist/sparkle-core/sparkle-quiz.entry.js +98 -0
  211. package/dist/sparkle-core/sparkle-reset-password.entry.js +96 -0
  212. package/dist/sparkle-core/sparkle-root.entry.js +79 -0
  213. package/dist/sparkle-core/sparkle-select.entry.js +57 -0
  214. package/dist/sparkle-core/sparkle-sidebar.entry.js +39 -0
  215. package/dist/sparkle-core/sparkle-signup.entry.js +144 -0
  216. package/dist/sparkle-core/sparkle-tab.entry.js +22 -0
  217. package/dist/sparkle-core/sparkle-table-of-contents.entry.js +67 -0
  218. package/dist/sparkle-core/sparkle-tabs.entry.js +62 -0
  219. package/dist/sparkle-core/sparkle-unauthorized.entry.js +17 -0
  220. package/dist/sparkle-core/sparkle-user-enrollment.entry.js +85 -0
  221. package/dist/sparkle-core/sparkle-user-profile.entry.js +129 -0
  222. package/dist/sparkle-core/sparkle-validation-error.entry.js +17 -0
  223. package/dist/sparkle-core/sparkle-video-player.entry.js +18 -0
  224. package/dist/sparkle-core/sparkle-youtube.entry.js +35 -0
  225. package/dist/sparkle-core/status-tap-52feb1b1.js +40 -0
  226. package/dist/sparkle-core/stencil-async-content.entry.js +28 -0
  227. package/dist/sparkle-core/stencil-route-link.entry.js +74 -0
  228. package/dist/sparkle-core/stencil-route-switch.entry.js +100 -0
  229. package/dist/sparkle-core/stencil-route-title.entry.js +28 -0
  230. package/dist/sparkle-core/stencil-route.entry.js +93 -0
  231. package/dist/sparkle-core/stencil-router-prompt.entry.js +55 -0
  232. package/dist/sparkle-core/stencil-router-redirect.entry.js +28 -0
  233. package/dist/sparkle-core/stencil-router.entry.js +636 -0
  234. package/dist/sparkle-core/store.service-0f7d998b.js +16 -0
  235. package/dist/sparkle-core/student.service-f0375229.js +59 -0
  236. package/dist/sparkle-core/swipe-back-9a614189.js +73 -0
  237. package/dist/sparkle-core/swiper.bundle-4274e115.js +6418 -0
  238. package/dist/sparkle-core/user.store-3d052406.js +19 -0
  239. package/dist/sparkle-core/util-ba470e54.js +14683 -0
  240. package/dist/sparkle-core/utils-cae23bce.js +114 -0
  241. package/package.json +1 -1
  242. package/dist/cjs/PrivateRoute-f97245ce.js +0 -217
  243. package/dist/cjs/active-router-f9e18bd8.js +0 -75
  244. package/dist/cjs/animation-ee586546.js +0 -986
  245. package/dist/cjs/app-globals-33c9f31b.js +0 -9
  246. package/dist/cjs/appdata.service-c8d71e05.js +0 -73
  247. package/dist/cjs/assets.service-bfa75092.js +0 -50
  248. package/dist/cjs/assignment.service-690fb59c.js +0 -19
  249. package/dist/cjs/auth.store-1e630a7d.js +0 -3392
  250. package/dist/cjs/compass-svg.cjs.entry.js +0 -132
  251. package/dist/cjs/context-consumer.cjs.entry.js +0 -29
  252. package/dist/cjs/course-select.cjs.entry.js +0 -30
  253. package/dist/cjs/cubic-bezier-53d26d05.js +0 -93
  254. package/dist/cjs/dir-5af5259a.js +0 -20
  255. package/dist/cjs/environment-config.service-c8ff1f3d.js +0 -28
  256. package/dist/cjs/facilitator.service-ff0e1659.js +0 -95
  257. package/dist/cjs/feed.service-8eca4de6.js +0 -57
  258. package/dist/cjs/focus-visible-b0b07ba6.js +0 -76
  259. package/dist/cjs/framework-delegate-59a98abd.js +0 -111
  260. package/dist/cjs/gesture-controller-0eb5579e.js +0 -196
  261. package/dist/cjs/haptic-780f33c4.js +0 -116
  262. package/dist/cjs/hardware-back-button-92d97ff8.js +0 -76
  263. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +0 -15124
  264. package/dist/cjs/helpers-c2496722.js +0 -425
  265. package/dist/cjs/httpService-d2e7bf8f.js +0 -687
  266. package/dist/cjs/icons-fda820af.js +0 -26
  267. package/dist/cjs/index-12082cba.js +0 -465
  268. package/dist/cjs/index-15ea05f5.js +0 -314
  269. package/dist/cjs/index-51e8292e.js +0 -1928
  270. package/dist/cjs/index-787d4498.js +0 -232
  271. package/dist/cjs/index-8b5629a6.js +0 -186
  272. package/dist/cjs/index-975586fd.js +0 -48
  273. package/dist/cjs/index-9c7b27e4.js +0 -140
  274. package/dist/cjs/index-af080b50.js +0 -139
  275. package/dist/cjs/index-e56e09b8.js +0 -38
  276. package/dist/cjs/index.cjs.js +0 -26
  277. package/dist/cjs/index.es-38cbcdbe.js +0 -10666
  278. package/dist/cjs/input-shims-eff63b88.js +0 -418
  279. package/dist/cjs/ion-accordion-group.cjs.entry.js +0 -205
  280. package/dist/cjs/ion-accordion.cjs.entry.js +0 -336
  281. package/dist/cjs/ion-action-sheet_7.cjs.entry.js +0 -2935
  282. package/dist/cjs/ion-app.cjs.entry.js +0 -79
  283. package/dist/cjs/ion-back-button.cjs.entry.js +0 -94
  284. package/dist/cjs/ion-backdrop.cjs.entry.js +0 -67
  285. package/dist/cjs/ion-badge.cjs.entry.js +0 -29
  286. package/dist/cjs/ion-breadcrumb.cjs.entry.js +0 -95
  287. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +0 -133
  288. package/dist/cjs/ion-buttons_3.cjs.entry.js +0 -153
  289. package/dist/cjs/ion-card-header.cjs.entry.js +0 -37
  290. package/dist/cjs/ion-card-subtitle.cjs.entry.js +0 -30
  291. package/dist/cjs/ion-card-title.cjs.entry.js +0 -30
  292. package/dist/cjs/ion-chip.cjs.entry.js +0 -40
  293. package/dist/cjs/ion-content_2.cjs.entry.js +0 -659
  294. package/dist/cjs/ion-datetime-button.cjs.entry.js +0 -312
  295. package/dist/cjs/ion-datetime.cjs.entry.js +0 -1623
  296. package/dist/cjs/ion-fab-button.cjs.entry.js +0 -108
  297. package/dist/cjs/ion-fab-list.cjs.entry.js +0 -45
  298. package/dist/cjs/ion-fab.cjs.entry.js +0 -76
  299. package/dist/cjs/ion-footer.cjs.entry.js +0 -120
  300. package/dist/cjs/ion-img.cjs.entry.js +0 -101
  301. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +0 -37
  302. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +0 -206
  303. package/dist/cjs/ion-item-divider.cjs.entry.js +0 -40
  304. package/dist/cjs/ion-item-group.cjs.entry.js +0 -31
  305. package/dist/cjs/ion-item-option.cjs.entry.js +0 -60
  306. package/dist/cjs/ion-item-options.cjs.entry.js +0 -47
  307. package/dist/cjs/ion-item-sliding.cjs.entry.js +0 -398
  308. package/dist/cjs/ion-loading.cjs.entry.js +0 -215
  309. package/dist/cjs/ion-menu-button.cjs.entry.js +0 -76
  310. package/dist/cjs/ion-menu-toggle.cjs.entry.js +0 -47
  311. package/dist/cjs/ion-menu.cjs.entry.js +0 -575
  312. package/dist/cjs/ion-modal.cjs.entry.js +0 -1711
  313. package/dist/cjs/ion-nav-link.cjs.entry.js +0 -47
  314. package/dist/cjs/ion-nav.cjs.entry.js +0 -872
  315. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +0 -808
  316. package/dist/cjs/ion-picker-column.cjs.entry.js +0 -331
  317. package/dist/cjs/ion-picker.cjs.entry.js +0 -221
  318. package/dist/cjs/ion-progress-bar.cjs.entry.js +0 -74
  319. package/dist/cjs/ion-refresher-content.cjs.entry.js +0 -35
  320. package/dist/cjs/ion-refresher.cjs.entry.js +0 -802
  321. package/dist/cjs/ion-reorder-group.cjs.entry.js +0 -281
  322. package/dist/cjs/ion-reorder.cjs.entry.js +0 -38
  323. package/dist/cjs/ion-route-redirect.cjs.entry.js +0 -24
  324. package/dist/cjs/ion-route.cjs.entry.js +0 -49
  325. package/dist/cjs/ion-router-link.cjs.entry.js +0 -38
  326. package/dist/cjs/ion-router-outlet.cjs.entry.js +0 -200
  327. package/dist/cjs/ion-router.cjs.entry.js +0 -831
  328. package/dist/cjs/ion-searchbar.cjs.entry.js +0 -370
  329. package/dist/cjs/ion-segment-button.cjs.entry.js +0 -102
  330. package/dist/cjs/ion-segment.cjs.entry.js +0 -417
  331. package/dist/cjs/ion-skeleton-text.cjs.entry.js +0 -33
  332. package/dist/cjs/ion-slide.cjs.entry.js +0 -25
  333. package/dist/cjs/ion-slides.cjs.entry.js +0 -391
  334. package/dist/cjs/ion-split-pane.cjs.entry.js +0 -154
  335. package/dist/cjs/ion-tab-bar.cjs.entry.js +0 -75
  336. package/dist/cjs/ion-tab-button.cjs.entry.js +0 -103
  337. package/dist/cjs/ion-tab.cjs.entry.js +0 -59
  338. package/dist/cjs/ion-tabs.cjs.entry.js +0 -154
  339. package/dist/cjs/ion-thumbnail.cjs.entry.js +0 -20
  340. package/dist/cjs/ion-toast.cjs.entry.js +0 -272
  341. package/dist/cjs/ion-toggle.cjs.entry.js +0 -177
  342. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +0 -555
  343. package/dist/cjs/ionic-global-2cde9d3a.js +0 -231
  344. package/dist/cjs/ios.transition-da235483.js +0 -482
  345. package/dist/cjs/keyboard-91096619.js +0 -140
  346. package/dist/cjs/loader.cjs.js +0 -24
  347. package/dist/cjs/localstorage.service-6346a41d.js +0 -40
  348. package/dist/cjs/md.transition-be429e07.js +0 -57
  349. package/dist/cjs/media.service-8a1b9bc5.js +0 -40
  350. package/dist/cjs/menu-toggle-util-7a01448c.js +0 -14
  351. package/dist/cjs/overlays-32df265a.js +0 -507
  352. package/dist/cjs/parse-d0071120.js +0 -1237
  353. package/dist/cjs/purify-fb9c107e.js +0 -1468
  354. package/dist/cjs/signalR.service-bd6b42f9.js +0 -2985
  355. package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -515
  356. package/dist/cjs/sparkle-assignment.cjs.entry.js +0 -110
  357. package/dist/cjs/sparkle-character-intro.cjs.entry.js +0 -26
  358. package/dist/cjs/sparkle-code.cjs.entry.js +0 -43
  359. package/dist/cjs/sparkle-compass-post.cjs.entry.js +0 -133
  360. package/dist/cjs/sparkle-compass.cjs.entry.js +0 -126
  361. package/dist/cjs/sparkle-core.cjs.js +0 -22
  362. package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +0 -281
  363. package/dist/cjs/sparkle-discussion.cjs.entry.js +0 -42
  364. package/dist/cjs/sparkle-emoji.cjs.entry.js +0 -80
  365. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +0 -121
  366. package/dist/cjs/sparkle-feed-post.cjs.entry.js +0 -116
  367. package/dist/cjs/sparkle-feedback.cjs.entry.js +0 -101
  368. package/dist/cjs/sparkle-file-upload.cjs.entry.js +0 -53
  369. package/dist/cjs/sparkle-goal-form.cjs.entry.js +0 -179
  370. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +0 -26
  371. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +0 -19
  372. package/dist/cjs/sparkle-input.cjs.entry.js +0 -56
  373. package/dist/cjs/sparkle-intro.cjs.entry.js +0 -26
  374. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +0 -22
  375. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +0 -46
  376. package/dist/cjs/sparkle-modal-image.cjs.entry.js +0 -34
  377. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +0 -25
  378. package/dist/cjs/sparkle-overlay.cjs.entry.js +0 -92
  379. package/dist/cjs/sparkle-poll.cjs.entry.js +0 -19
  380. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +0 -47
  381. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  382. package/dist/cjs/sparkle-quiz-old.cjs.entry.js +0 -120
  383. package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -103
  384. package/dist/cjs/sparkle-select.cjs.entry.js +0 -61
  385. package/dist/cjs/sparkle-sidebar.cjs.entry.js +0 -43
  386. package/dist/cjs/sparkle-tab.cjs.entry.js +0 -26
  387. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +0 -71
  388. package/dist/cjs/sparkle-tabs.cjs.entry.js +0 -66
  389. package/dist/cjs/sparkle-video-player.cjs.entry.js +0 -22
  390. package/dist/cjs/sparkle-youtube.cjs.entry.js +0 -39
  391. package/dist/cjs/spinner-configs-0ac05f2d.js +0 -147
  392. package/dist/cjs/status-tap-033befa2.js +0 -42
  393. package/dist/cjs/stencil-async-content.cjs.entry.js +0 -32
  394. package/dist/cjs/stencil-route-title.cjs.entry.js +0 -32
  395. package/dist/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  396. package/dist/cjs/student.service-7e5385be.js +0 -78
  397. package/dist/cjs/swipe-back-4a826f9b.js +0 -76
  398. package/dist/cjs/swiper.bundle-8c897c07.js +0 -6420
  399. package/dist/cjs/theme-b0b295c1.js +0 -48
  400. package/dist/cjs/token.service-7a41953d.js +0 -97
  401. package/dist/cjs/util-47e320b2.js +0 -2462
  402. package/dist/collection/PrivateRoute.js +0 -27
  403. package/dist/collection/appconst.js +0 -13
  404. package/dist/collection/assets/img/forward.svg +0 -5
  405. package/dist/collection/assets/img/help/fitt-logo.svg +0 -1
  406. package/dist/collection/assets/img/home/big-white-wall.svg +0 -15
  407. package/dist/collection/assets/img/home/find-help.svg +0 -23
  408. package/dist/collection/assets/img/home/lessons.svg +0 -26
  409. package/dist/collection/assets/img/home/my-goals.svg +0 -19
  410. package/dist/collection/assets/img/home/my-health.svg +0 -17
  411. package/dist/collection/assets/img/home/my-mood.svg +0 -26
  412. package/dist/collection/assets/img/pause.svg +0 -5
  413. package/dist/collection/assets/img/play-symbol.svg +0 -8
  414. package/dist/collection/assets/img/play.svg +0 -4
  415. package/dist/collection/assets/img/rewind.svg +0 -5
  416. package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +0 -17
  417. package/dist/collection/assets/lib/sparkleUtility.js +0 -8
  418. package/dist/collection/assets/svg/profile.svg +0 -2
  419. package/dist/collection/collection-manifest.json +0 -219
  420. package/dist/collection/components/compass-svg/compass-svg.css +0 -15
  421. package/dist/collection/components/compass-svg/compass-svg.js +0 -156
  422. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +0 -7
  423. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +0 -110
  424. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +0 -3
  425. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +0 -214
  426. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
  427. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +0 -172
  428. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +0 -104
  429. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +0 -3
  430. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +0 -144
  431. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +0 -14
  432. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +0 -64
  433. package/dist/collection/components/layout/facilitator/facilitator-page.css +0 -196
  434. package/dist/collection/components/layout/facilitator/facilitator-page.js +0 -281
  435. package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
  436. package/dist/collection/components/layout/facilitator/online-students/online-students.js +0 -70
  437. package/dist/collection/components/layout/page/page.css +0 -183
  438. package/dist/collection/components/layout/page/page.js +0 -321
  439. package/dist/collection/components/layout/page/templates/default.js +0 -9
  440. package/dist/collection/components/layout/page/templates/error.js +0 -33
  441. package/dist/collection/components/layout/page/templates/index.js +0 -8
  442. package/dist/collection/components/layout/page/templates/pdf.js +0 -8
  443. package/dist/collection/components/layout/page/to-hypertext.js +0 -27
  444. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +0 -3
  445. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +0 -252
  446. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +0 -12
  447. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +0 -59
  448. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +0 -33
  449. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +0 -37
  450. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +0 -8
  451. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +0 -40
  452. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +0 -7
  453. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +0 -52
  454. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +0 -3
  455. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +0 -14
  456. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +0 -30
  457. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +0 -187
  458. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +0 -3
  459. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +0 -43
  460. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +0 -10
  461. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +0 -111
  462. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +0 -11
  463. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +0 -127
  464. package/dist/collection/components/modal-image/modal-image.css +0 -61
  465. package/dist/collection/components/modal-image/modal-image.js +0 -159
  466. package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
  467. package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
  468. package/dist/collection/components/sparkle-animation-player/caption-parser.js +0 -94
  469. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +0 -157
  470. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -598
  471. package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +0 -30
  472. package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +0 -159
  473. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  474. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  475. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  476. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  477. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  478. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  479. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +0 -74
  480. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +0 -68
  481. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +0 -35
  482. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +0 -171
  483. package/dist/collection/components/sparkle-compass/sparkle-compass.css +0 -25
  484. package/dist/collection/components/sparkle-compass/sparkle-compass.js +0 -283
  485. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +0 -3
  486. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +0 -196
  487. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +0 -157
  488. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +0 -232
  489. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +0 -158
  490. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +0 -274
  491. package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +0 -5
  492. package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +0 -112
  493. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +0 -16
  494. package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +0 -116
  495. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +0 -35
  496. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +0 -193
  497. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +0 -3
  498. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +0 -118
  499. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
  500. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +0 -105
  501. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +0 -4
  502. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +0 -107
  503. package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
  504. package/dist/collection/components/sparkle-input/sparkle-input.js +0 -212
  505. package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -15
  506. package/dist/collection/components/sparkle-intro/sparkle-intro.js +0 -35
  507. package/dist/collection/components/sparkle-login/sparkle-login.css +0 -4
  508. package/dist/collection/components/sparkle-login/sparkle-login.js +0 -173
  509. package/dist/collection/components/sparkle-poll/sparkle-poll.css +0 -3
  510. package/dist/collection/components/sparkle-poll/sparkle-poll.js +0 -15
  511. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +0 -3
  512. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +0 -69
  513. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +0 -3
  514. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +0 -59
  515. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +0 -48
  516. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +0 -327
  517. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +0 -18
  518. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +0 -106
  519. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +0 -3
  520. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +0 -59
  521. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +0 -3
  522. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +0 -100
  523. package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +0 -48
  524. package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +0 -221
  525. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +0 -3
  526. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +0 -98
  527. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +0 -3
  528. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +0 -126
  529. package/dist/collection/components/sparkle-root/sparkle-root.css +0 -61
  530. package/dist/collection/components/sparkle-root/sparkle-root.js +0 -86
  531. package/dist/collection/components/sparkle-signup/sparkle-signup.css +0 -6
  532. package/dist/collection/components/sparkle-signup/sparkle-signup.js +0 -197
  533. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +0 -13
  534. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +0 -18
  535. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +0 -3
  536. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +0 -93
  537. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +0 -54
  538. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +0 -151
  539. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +0 -11
  540. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +0 -44
  541. package/dist/collection/components/sparkle-video-player/sparkle-video-player.css +0 -0
  542. package/dist/collection/components/sparkle-video-player/sparkle-video-player.js +0 -92
  543. package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +0 -24
  544. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +0 -99
  545. package/dist/collection/global/app.js +0 -4
  546. package/dist/collection/helpers/utils.js +0 -3
  547. package/dist/collection/icons.js +0 -36
  548. package/dist/collection/index.js +0 -3
  549. package/dist/collection/l10n.js +0 -18
  550. package/dist/collection/models/api.model.js +0 -7
  551. package/dist/collection/models/assets.model.js +0 -1
  552. package/dist/collection/models/auth/auth.user.js +0 -1
  553. package/dist/collection/models/class.model.js +0 -5
  554. package/dist/collection/models/course.model.js +0 -10
  555. package/dist/collection/models/definitions.js +0 -1
  556. package/dist/collection/models/facilitator-dashboard.model.js +0 -5
  557. package/dist/collection/models/goal.model.js +0 -1
  558. package/dist/collection/models/index.js +0 -1
  559. package/dist/collection/models/markdown.model.js +0 -1
  560. package/dist/collection/models/page.model.js +0 -1
  561. package/dist/collection/models/quiz.model.js +0 -3
  562. package/dist/collection/models/user.model.js +0 -1
  563. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +0 -2727
  564. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +0 -2042
  565. package/dist/collection/services/account.service.js +0 -61
  566. package/dist/collection/services/appdata.service.js +0 -60
  567. package/dist/collection/services/assignment.service.js +0 -14
  568. package/dist/collection/services/auth/auth.service.js +0 -64
  569. package/dist/collection/services/core/assets.service.js +0 -45
  570. package/dist/collection/services/core/localstorage.service.js +0 -34
  571. package/dist/collection/services/environment/environment-config.js +0 -24
  572. package/dist/collection/services/environment/environment-config.service.js +0 -24
  573. package/dist/collection/services/facilitator.service.js +0 -76
  574. package/dist/collection/services/feed.service.js +0 -43
  575. package/dist/collection/services/httpService.js +0 -103
  576. package/dist/collection/services/index.js +0 -4
  577. package/dist/collection/services/media.service.js +0 -29
  578. package/dist/collection/services/signalR.service.js +0 -83
  579. package/dist/collection/services/store.service.js +0 -13
  580. package/dist/collection/services/student.service.js +0 -56
  581. package/dist/collection/services/token.service.js +0 -79
  582. package/dist/collection/stores/auth.store.js +0 -12
  583. package/dist/collection/stores/class.store.js +0 -5
  584. package/dist/collection/stores/error.store.js +0 -5
  585. package/dist/collection/stores/facilitator.store.js +0 -15
  586. package/dist/collection/stores/feed.store.js +0 -8
  587. package/dist/collection/stores/goal.store.js +0 -7
  588. package/dist/collection/stores/index.js +0 -1
  589. package/dist/collection/stores/media.store.js +0 -5
  590. package/dist/collection/stores/mood.store.js +0 -5
  591. package/dist/collection/stores/nav.store.js +0 -11
  592. package/dist/collection/stores/signalR.store.js +0 -6
  593. package/dist/collection/stores/theme.store.js +0 -9
  594. package/dist/collection/stores/toc.store.js +0 -5
  595. package/dist/collection/stores/user.store.js +0 -16
  596. package/dist/collection/util.js +0 -55
  597. package/dist/collection/utils.js +0 -92
  598. package/dist/esm/PrivateRoute-90ac95b8.js +0 -212
  599. package/dist/esm/active-router-fc9e4e06.js +0 -73
  600. package/dist/esm/animation-12377cb3.js +0 -984
  601. package/dist/esm/app-globals-3f0347b0.js +0 -7
  602. package/dist/esm/appdata.service-2e84e167.js +0 -70
  603. package/dist/esm/assets.service-def1d63c.js +0 -48
  604. package/dist/esm/assignment.service-8d31f141.js +0 -17
  605. package/dist/esm/auth.store-dba2c2da.js +0 -3381
  606. package/dist/esm/compass-svg.entry.js +0 -128
  607. package/dist/esm/context-consumer.entry.js +0 -25
  608. package/dist/esm/course-select.entry.js +0 -26
  609. package/dist/esm/dir-03012648.js +0 -18
  610. package/dist/esm/environment-config.service-b191f276.js +0 -26
  611. package/dist/esm/facilitator.service-18c47bdf.js +0 -92
  612. package/dist/esm/feed.service-b4f3cae4.js +0 -54
  613. package/dist/esm/framework-delegate-3e634a5c.js +0 -107
  614. package/dist/esm/gesture-controller-7be18351.js +0 -194
  615. package/dist/esm/haptic-522f76f2.js +0 -110
  616. package/dist/esm/header-mobile-collapse_61.entry.js +0 -15060
  617. package/dist/esm/helpers-bf0e23d6.js +0 -403
  618. package/dist/esm/httpService-7986aeed.js +0 -685
  619. package/dist/esm/icons-1c794c74.js +0 -18
  620. package/dist/esm/index-21661af2.js +0 -463
  621. package/dist/esm/index-2b84cad2.js +0 -223
  622. package/dist/esm/index-4044fde9.js +0 -25
  623. package/dist/esm/index-45fec1e7.js +0 -184
  624. package/dist/esm/index-5e8971ae.js +0 -128
  625. package/dist/esm/index-c04b9ed5.js +0 -1888
  626. package/dist/esm/index-cded2d87.js +0 -312
  627. package/dist/esm/index-dad75b83.js +0 -34
  628. package/dist/esm/index.es-e0c0f891.js +0 -10580
  629. package/dist/esm/index.js +0 -12
  630. package/dist/esm/input-shims-671d8d9f.js +0 -416
  631. package/dist/esm/ion-accordion-group.entry.js +0 -201
  632. package/dist/esm/ion-accordion.entry.js +0 -332
  633. package/dist/esm/ion-action-sheet_7.entry.js +0 -2925
  634. package/dist/esm/ion-app.entry.js +0 -75
  635. package/dist/esm/ion-back-button.entry.js +0 -90
  636. package/dist/esm/ion-backdrop.entry.js +0 -63
  637. package/dist/esm/ion-badge.entry.js +0 -25
  638. package/dist/esm/ion-breadcrumb.entry.js +0 -91
  639. package/dist/esm/ion-breadcrumbs.entry.js +0 -129
  640. package/dist/esm/ion-buttons_3.entry.js +0 -147
  641. package/dist/esm/ion-card-header.entry.js +0 -33
  642. package/dist/esm/ion-card-subtitle.entry.js +0 -26
  643. package/dist/esm/ion-card-title.entry.js +0 -26
  644. package/dist/esm/ion-chip.entry.js +0 -36
  645. package/dist/esm/ion-content_2.entry.js +0 -654
  646. package/dist/esm/ion-datetime-button.entry.js +0 -308
  647. package/dist/esm/ion-datetime.entry.js +0 -1619
  648. package/dist/esm/ion-fab-button.entry.js +0 -104
  649. package/dist/esm/ion-fab-list.entry.js +0 -41
  650. package/dist/esm/ion-fab.entry.js +0 -72
  651. package/dist/esm/ion-footer.entry.js +0 -116
  652. package/dist/esm/ion-img.entry.js +0 -97
  653. package/dist/esm/ion-infinite-scroll-content.entry.js +0 -33
  654. package/dist/esm/ion-infinite-scroll.entry.js +0 -202
  655. package/dist/esm/ion-item-divider.entry.js +0 -36
  656. package/dist/esm/ion-item-group.entry.js +0 -27
  657. package/dist/esm/ion-item-option.entry.js +0 -56
  658. package/dist/esm/ion-item-options.entry.js +0 -43
  659. package/dist/esm/ion-item-sliding.entry.js +0 -394
  660. package/dist/esm/ion-loading.entry.js +0 -211
  661. package/dist/esm/ion-menu-button.entry.js +0 -72
  662. package/dist/esm/ion-menu-toggle.entry.js +0 -43
  663. package/dist/esm/ion-menu.entry.js +0 -571
  664. package/dist/esm/ion-modal.entry.js +0 -1707
  665. package/dist/esm/ion-nav-link.entry.js +0 -43
  666. package/dist/esm/ion-nav.entry.js +0 -868
  667. package/dist/esm/ion-picker-column-internal_2.entry.js +0 -803
  668. package/dist/esm/ion-picker-column.entry.js +0 -327
  669. package/dist/esm/ion-picker.entry.js +0 -217
  670. package/dist/esm/ion-progress-bar.entry.js +0 -70
  671. package/dist/esm/ion-refresher-content.entry.js +0 -31
  672. package/dist/esm/ion-refresher.entry.js +0 -798
  673. package/dist/esm/ion-reorder-group.entry.js +0 -277
  674. package/dist/esm/ion-reorder.entry.js +0 -34
  675. package/dist/esm/ion-route-redirect.entry.js +0 -20
  676. package/dist/esm/ion-route.entry.js +0 -45
  677. package/dist/esm/ion-router-link.entry.js +0 -34
  678. package/dist/esm/ion-router-outlet.entry.js +0 -196
  679. package/dist/esm/ion-router.entry.js +0 -827
  680. package/dist/esm/ion-searchbar.entry.js +0 -366
  681. package/dist/esm/ion-segment-button.entry.js +0 -98
  682. package/dist/esm/ion-segment.entry.js +0 -413
  683. package/dist/esm/ion-skeleton-text.entry.js +0 -29
  684. package/dist/esm/ion-slide.entry.js +0 -21
  685. package/dist/esm/ion-slides.entry.js +0 -387
  686. package/dist/esm/ion-split-pane.entry.js +0 -150
  687. package/dist/esm/ion-tab-bar.entry.js +0 -71
  688. package/dist/esm/ion-tab-button.entry.js +0 -99
  689. package/dist/esm/ion-tab.entry.js +0 -55
  690. package/dist/esm/ion-tabs.entry.js +0 -150
  691. package/dist/esm/ion-thumbnail.entry.js +0 -16
  692. package/dist/esm/ion-toast.entry.js +0 -268
  693. package/dist/esm/ion-toggle.entry.js +0 -173
  694. package/dist/esm/ion-virtual-scroll.entry.js +0 -551
  695. package/dist/esm/ionic-global-4903e23e.js +0 -226
  696. package/dist/esm/ios.transition-131d64fe.js +0 -479
  697. package/dist/esm/loader.js +0 -20
  698. package/dist/esm/md.transition-f6126011.js +0 -55
  699. package/dist/esm/media.service-6e90bc41.js +0 -37
  700. package/dist/esm/menu-toggle-util-bace8ae6.js +0 -12
  701. package/dist/esm/overlays-4233a39d.js +0 -491
  702. package/dist/esm/parse-1ae3a9bb.js +0 -1196
  703. package/dist/esm/polyfills/core-js.js +0 -11
  704. package/dist/esm/polyfills/css-shim.js +0 -1
  705. package/dist/esm/polyfills/dom.js +0 -79
  706. package/dist/esm/polyfills/es5-html-element.js +0 -1
  707. package/dist/esm/polyfills/index.js +0 -34
  708. package/dist/esm/polyfills/system.js +0 -6
  709. package/dist/esm/purify-85bfcc69.js +0 -1466
  710. package/dist/esm/signalR.service-c33fba50.js +0 -2982
  711. package/dist/esm/sparkle-animation-player.entry.js +0 -511
  712. package/dist/esm/sparkle-assignment.entry.js +0 -106
  713. package/dist/esm/sparkle-character-intro.entry.js +0 -22
  714. package/dist/esm/sparkle-code.entry.js +0 -39
  715. package/dist/esm/sparkle-compass-post.entry.js +0 -129
  716. package/dist/esm/sparkle-compass.entry.js +0 -122
  717. package/dist/esm/sparkle-core.js +0 -20
  718. package/dist/esm/sparkle-discussion-questions_2.entry.js +0 -276
  719. package/dist/esm/sparkle-discussion.entry.js +0 -38
  720. package/dist/esm/sparkle-emoji.entry.js +0 -76
  721. package/dist/esm/sparkle-facilitator-notes-form.entry.js +0 -117
  722. package/dist/esm/sparkle-feed-post.entry.js +0 -112
  723. package/dist/esm/sparkle-feedback.entry.js +0 -97
  724. package/dist/esm/sparkle-file-upload.entry.js +0 -49
  725. package/dist/esm/sparkle-goal-form.entry.js +0 -175
  726. package/dist/esm/sparkle-gww-comment-list.entry.js +0 -22
  727. package/dist/esm/sparkle-gww-graph.entry.js +0 -15
  728. package/dist/esm/sparkle-input.entry.js +0 -52
  729. package/dist/esm/sparkle-intro.entry.js +0 -22
  730. package/dist/esm/sparkle-lower-content-nav.entry.js +0 -18
  731. package/dist/esm/sparkle-menu-collapsible.entry.js +0 -42
  732. package/dist/esm/sparkle-modal-image.entry.js +0 -30
  733. package/dist/esm/sparkle-notfound-page.entry.js +0 -21
  734. package/dist/esm/sparkle-overlay.entry.js +0 -88
  735. package/dist/esm/sparkle-poll.entry.js +0 -15
  736. package/dist/esm/sparkle-quiz-container.entry.js +0 -43
  737. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  738. package/dist/esm/sparkle-quiz-old.entry.js +0 -116
  739. package/dist/esm/sparkle-quiz.entry.js +0 -99
  740. package/dist/esm/sparkle-select.entry.js +0 -57
  741. package/dist/esm/sparkle-sidebar.entry.js +0 -39
  742. package/dist/esm/sparkle-tab.entry.js +0 -22
  743. package/dist/esm/sparkle-table-of-contents.entry.js +0 -67
  744. package/dist/esm/sparkle-tabs.entry.js +0 -62
  745. package/dist/esm/sparkle-video-player.entry.js +0 -18
  746. package/dist/esm/sparkle-youtube.entry.js +0 -35
  747. package/dist/esm/status-tap-dde52787.js +0 -40
  748. package/dist/esm/stencil-async-content.entry.js +0 -28
  749. package/dist/esm/stencil-route-title.entry.js +0 -28
  750. package/dist/esm/stencil-router-prompt.entry.js +0 -55
  751. package/dist/esm/student.service-08af124f.js +0 -75
  752. package/dist/esm/swipe-back-7847a0c1.js +0 -74
  753. package/dist/esm/swiper.bundle-b6a959de.js +0 -6418
  754. package/dist/esm/token.service-71a5d33f.js +0 -94
  755. package/dist/esm/util-57cc8006.js +0 -2451
  756. package/dist/index.cjs.js +0 -1
  757. package/dist/index.js +0 -1
  758. package/dist/loader/cdn.js +0 -3
  759. package/dist/loader/index.cjs.js +0 -3
  760. package/dist/loader/index.d.ts +0 -12
  761. package/dist/loader/index.es2017.js +0 -3
  762. package/dist/loader/index.js +0 -4
  763. package/dist/loader/package.json +0 -10
  764. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +0 -75
  765. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +0 -72
  766. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +0 -25
  767. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +0 -59
  768. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +0 -357
  769. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +0 -290
  770. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +0 -494
  771. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +0 -502
  772. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +0 -17
  773. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +0 -22
  774. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +0 -22
  775. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +0 -281
  776. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +0 -309
  777. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +0 -26
  778. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +0 -26
  779. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +0 -58
  780. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +0 -62
  781. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -234
  782. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -237
  783. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -38
  784. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -37
  785. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -439
  786. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +0 -428
  787. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +0 -128
  788. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +0 -151
  789. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +0 -101
  790. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +0 -95
  791. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +0 -61
  792. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +0 -63
  793. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +0 -37
  794. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +0 -35
  795. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -28
  796. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -26
  797. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +0 -27
  798. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +0 -27
  799. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +0 -169
  800. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +0 -172
  801. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +0 -200
  802. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +0 -200
  803. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +0 -108
  804. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +0 -237
  805. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +0 -648
  806. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +0 -637
  807. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +0 -60
  808. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +0 -61
  809. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +0 -338
  810. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +0 -307
  811. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +0 -116
  812. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +0 -37
  813. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +0 -37
  814. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +0 -151
  815. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +0 -108
  816. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +0 -40
  817. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +0 -12
  818. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +0 -8
  819. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -54
  820. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -54
  821. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +0 -185
  822. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +0 -185
  823. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +0 -669
  824. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +0 -928
  825. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +0 -204
  826. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +0 -297
  827. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +0 -3
  828. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +0 -3
  829. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +0 -186
  830. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +0 -180
  831. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +0 -88
  832. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +0 -85
  833. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +0 -42
  834. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +0 -156
  835. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +0 -250
  836. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +0 -91
  837. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +0 -114
  838. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +0 -118
  839. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +0 -94
  840. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +0 -109
  841. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +0 -100
  842. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +0 -127
  843. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +0 -123
  844. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +0 -175
  845. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +0 -178
  846. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +0 -3
  847. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +0 -250
  848. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +0 -177
  849. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +0 -10
  850. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +0 -16
  851. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +0 -17
  852. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +0 -217
  853. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +0 -204
  854. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +0 -122
  855. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +0 -123
  856. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -82
  857. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -85
  858. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +0 -126
  859. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +0 -122
  860. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +0 -201
  861. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +0 -132
  862. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +0 -206
  863. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +0 -206
  864. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +0 -177
  865. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +0 -178
  866. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +0 -275
  867. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +0 -320
  868. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +0 -189
  869. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +0 -210
  870. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +0 -15
  871. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +0 -15
  872. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +0 -33
  873. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +0 -58
  874. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +0 -29
  875. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +0 -10
  876. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +0 -4
  877. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +0 -348
  878. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +0 -279
  879. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +0 -65
  880. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +0 -36
  881. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +0 -446
  882. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +0 -424
  883. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +0 -145
  884. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +0 -177
  885. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +0 -3
  886. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +0 -14
  887. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +0 -37
  888. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +0 -53
  889. package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +0 -31
  890. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +0 -764
  891. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +0 -764
  892. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +0 -167
  893. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +0 -108
  894. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +0 -108
  895. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +0 -4
  896. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +0 -97
  897. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +0 -82
  898. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +0 -308
  899. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +0 -331
  900. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +0 -19
  901. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +0 -3
  902. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +0 -175
  903. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +0 -179
  904. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +0 -21
  905. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +0 -122
  906. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +0 -55
  907. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +0 -262
  908. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +0 -295
  909. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +0 -286
  910. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +0 -261
  911. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +0 -175
  912. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +0 -168
  913. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +0 -21
  914. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
  915. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
  916. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
  917. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
  918. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
  919. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
  920. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
  921. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
  922. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
  923. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
  924. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
  925. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
  926. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
  927. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -25
  928. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -93
  929. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
  930. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
  931. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
  932. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
  933. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
  934. package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  935. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -101
  936. package/dist/sparkle-core/p-00d10dc9.js +0 -4
  937. package/dist/sparkle-core/p-0147266a.js +0 -1
  938. package/dist/sparkle-core/p-04c7b276.entry.js +0 -1
  939. package/dist/sparkle-core/p-05c032dd.js +0 -4
  940. package/dist/sparkle-core/p-06642405.entry.js +0 -1
  941. package/dist/sparkle-core/p-0664370b.entry.js +0 -1
  942. package/dist/sparkle-core/p-06c7d0f2.entry.js +0 -1
  943. package/dist/sparkle-core/p-076f0239.js +0 -4
  944. package/dist/sparkle-core/p-077c732b.js +0 -4
  945. package/dist/sparkle-core/p-08420531.entry.js +0 -1
  946. package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
  947. package/dist/sparkle-core/p-0ad5c123.entry.js +0 -1
  948. package/dist/sparkle-core/p-0afa3a4d.entry.js +0 -1
  949. package/dist/sparkle-core/p-0c3f3ea6.entry.js +0 -1
  950. package/dist/sparkle-core/p-0e4de1d0.js +0 -4
  951. package/dist/sparkle-core/p-0e8e539f.entry.js +0 -1
  952. package/dist/sparkle-core/p-11356b03.entry.js +0 -1
  953. package/dist/sparkle-core/p-11a6c175.entry.js +0 -1
  954. package/dist/sparkle-core/p-12dd96d7.js +0 -4
  955. package/dist/sparkle-core/p-13ec39db.entry.js +0 -1
  956. package/dist/sparkle-core/p-1adc98f6.js +0 -1
  957. package/dist/sparkle-core/p-1b1ba156.entry.js +0 -1
  958. package/dist/sparkle-core/p-1e125ca5.entry.js +0 -1
  959. package/dist/sparkle-core/p-1e4782af.entry.js +0 -1
  960. package/dist/sparkle-core/p-2033cd86.js +0 -7
  961. package/dist/sparkle-core/p-214d1229.entry.js +0 -1
  962. package/dist/sparkle-core/p-23aca7ca.js +0 -4
  963. package/dist/sparkle-core/p-24cb9a33.entry.js +0 -1
  964. package/dist/sparkle-core/p-27fbabc3.entry.js +0 -1
  965. package/dist/sparkle-core/p-2ba70507.entry.js +0 -1
  966. package/dist/sparkle-core/p-2c1ca854.entry.js +0 -1
  967. package/dist/sparkle-core/p-2d9659e2.entry.js +0 -1
  968. package/dist/sparkle-core/p-2f569553.js +0 -1
  969. package/dist/sparkle-core/p-30b810d1.entry.js +0 -4
  970. package/dist/sparkle-core/p-32f4e565.entry.js +0 -1
  971. package/dist/sparkle-core/p-352677e6.entry.js +0 -1
  972. package/dist/sparkle-core/p-38b7cf68.entry.js +0 -1
  973. package/dist/sparkle-core/p-38c842d5.entry.js +0 -1
  974. package/dist/sparkle-core/p-3963e02b.entry.js +0 -1
  975. package/dist/sparkle-core/p-39712c56.entry.js +0 -4
  976. package/dist/sparkle-core/p-39a31e43.js +0 -1
  977. package/dist/sparkle-core/p-3daf2915.entry.js +0 -352
  978. package/dist/sparkle-core/p-3de0e00c.js +0 -4
  979. package/dist/sparkle-core/p-4053ecdb.entry.js +0 -1
  980. package/dist/sparkle-core/p-408176ba.js +0 -1
  981. package/dist/sparkle-core/p-42ed7d5f.entry.js +0 -1
  982. package/dist/sparkle-core/p-48f72e63.js +0 -4
  983. package/dist/sparkle-core/p-4b4a8703.js +0 -1
  984. package/dist/sparkle-core/p-4c6a7e52.js +0 -1
  985. package/dist/sparkle-core/p-4d1cfcbe.entry.js +0 -1
  986. package/dist/sparkle-core/p-4d4077ea.js +0 -4
  987. package/dist/sparkle-core/p-4fba3e4c.js +0 -1
  988. package/dist/sparkle-core/p-506221fe.js +0 -4
  989. package/dist/sparkle-core/p-5096739e.entry.js +0 -1
  990. package/dist/sparkle-core/p-5322c920.entry.js +0 -1
  991. package/dist/sparkle-core/p-5893bbe5.entry.js +0 -1
  992. package/dist/sparkle-core/p-594a6982.entry.js +0 -1
  993. package/dist/sparkle-core/p-5c435d5a.entry.js +0 -1
  994. package/dist/sparkle-core/p-5cad23f1.js +0 -3
  995. package/dist/sparkle-core/p-5d409601.js +0 -1
  996. package/dist/sparkle-core/p-601397df.entry.js +0 -1
  997. package/dist/sparkle-core/p-604a7987.js +0 -4
  998. package/dist/sparkle-core/p-616941c6.entry.js +0 -1
  999. package/dist/sparkle-core/p-6316d124.entry.js +0 -1
  1000. package/dist/sparkle-core/p-63f71ada.entry.js +0 -1
  1001. package/dist/sparkle-core/p-69487d90.entry.js +0 -1
  1002. package/dist/sparkle-core/p-6bde0192.entry.js +0 -7
  1003. package/dist/sparkle-core/p-6d2f4093.entry.js +0 -7
  1004. package/dist/sparkle-core/p-6ffd2420.entry.js +0 -1
  1005. package/dist/sparkle-core/p-72053ae0.entry.js +0 -1
  1006. package/dist/sparkle-core/p-73721c84.js +0 -4
  1007. package/dist/sparkle-core/p-74864276.entry.js +0 -1
  1008. package/dist/sparkle-core/p-7d8427eb.js +0 -4
  1009. package/dist/sparkle-core/p-7dae0f0e.js +0 -1
  1010. package/dist/sparkle-core/p-7dbfc316.js +0 -1
  1011. package/dist/sparkle-core/p-7e7ce516.js +0 -4
  1012. package/dist/sparkle-core/p-81714d94.entry.js +0 -1
  1013. package/dist/sparkle-core/p-8492a765.entry.js +0 -1
  1014. package/dist/sparkle-core/p-859563db.entry.js +0 -1
  1015. package/dist/sparkle-core/p-85d4cd5c.entry.js +0 -1
  1016. package/dist/sparkle-core/p-865f36a8.entry.js +0 -1
  1017. package/dist/sparkle-core/p-86ed13f0.js +0 -5
  1018. package/dist/sparkle-core/p-871106e0.js +0 -4
  1019. package/dist/sparkle-core/p-894ff7e6.entry.js +0 -1
  1020. package/dist/sparkle-core/p-8a41b502.entry.js +0 -1
  1021. package/dist/sparkle-core/p-8b56f734.js +0 -1
  1022. package/dist/sparkle-core/p-8c74cbb6.entry.js +0 -1
  1023. package/dist/sparkle-core/p-924b2917.js +0 -4
  1024. package/dist/sparkle-core/p-9289cdbc.entry.js +0 -1
  1025. package/dist/sparkle-core/p-957715c5.entry.js +0 -1
  1026. package/dist/sparkle-core/p-973fe404.entry.js +0 -22
  1027. package/dist/sparkle-core/p-975b99ee.entry.js +0 -1
  1028. package/dist/sparkle-core/p-98daeddb.entry.js +0 -1
  1029. package/dist/sparkle-core/p-99ee9919.js +0 -1
  1030. package/dist/sparkle-core/p-9abbd715.entry.js +0 -1
  1031. package/dist/sparkle-core/p-9d894ed4.js +0 -4
  1032. package/dist/sparkle-core/p-9e309b3e.entry.js +0 -1
  1033. package/dist/sparkle-core/p-9e7fee8f.entry.js +0 -1
  1034. package/dist/sparkle-core/p-9ebf0537.entry.js +0 -1
  1035. package/dist/sparkle-core/p-a208ab2d.js +0 -4
  1036. package/dist/sparkle-core/p-a2638250.entry.js +0 -1
  1037. package/dist/sparkle-core/p-a2ebcf0a.entry.js +0 -1
  1038. package/dist/sparkle-core/p-a98d7ebe.entry.js +0 -1
  1039. package/dist/sparkle-core/p-add30d46.js +0 -4
  1040. package/dist/sparkle-core/p-b0603d19.js +0 -16
  1041. package/dist/sparkle-core/p-b06e2bef.js +0 -1
  1042. package/dist/sparkle-core/p-b3f375fb.entry.js +0 -1
  1043. package/dist/sparkle-core/p-b5f3e1bf.entry.js +0 -1
  1044. package/dist/sparkle-core/p-b6fec622.entry.js +0 -1
  1045. package/dist/sparkle-core/p-b8d71ff4.js +0 -1
  1046. package/dist/sparkle-core/p-b96f3c84.entry.js +0 -7
  1047. package/dist/sparkle-core/p-bd80ff43.js +0 -4
  1048. package/dist/sparkle-core/p-bd90903e.js +0 -1
  1049. package/dist/sparkle-core/p-be64105c.entry.js +0 -1
  1050. package/dist/sparkle-core/p-c0533c23.entry.js +0 -1
  1051. package/dist/sparkle-core/p-c2990b24.entry.js +0 -1
  1052. package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
  1053. package/dist/sparkle-core/p-c60b29bd.entry.js +0 -4
  1054. package/dist/sparkle-core/p-c64a34cd.entry.js +0 -1
  1055. package/dist/sparkle-core/p-c7e21070.entry.js +0 -1
  1056. package/dist/sparkle-core/p-c9f753a4.js +0 -1
  1057. package/dist/sparkle-core/p-cabe9139.js +0 -1
  1058. package/dist/sparkle-core/p-cabfbf22.entry.js +0 -1
  1059. package/dist/sparkle-core/p-cc518c36.entry.js +0 -1
  1060. package/dist/sparkle-core/p-cffd4817.entry.js +0 -1
  1061. package/dist/sparkle-core/p-d0adf726.entry.js +0 -1
  1062. package/dist/sparkle-core/p-d20e4fcf.entry.js +0 -1
  1063. package/dist/sparkle-core/p-d24e53ab.entry.js +0 -1
  1064. package/dist/sparkle-core/p-d288e6c1.entry.js +0 -1
  1065. package/dist/sparkle-core/p-d601810e.entry.js +0 -1
  1066. package/dist/sparkle-core/p-d68092b7.js +0 -4
  1067. package/dist/sparkle-core/p-da391f3f.js +0 -1
  1068. package/dist/sparkle-core/p-de4deb61.entry.js +0 -1
  1069. package/dist/sparkle-core/p-e0cad1bb.js +0 -1
  1070. package/dist/sparkle-core/p-e249aebf.entry.js +0 -1
  1071. package/dist/sparkle-core/p-e3e36ce9.entry.js +0 -1
  1072. package/dist/sparkle-core/p-e421d638.entry.js +0 -1
  1073. package/dist/sparkle-core/p-e686d8b5.entry.js +0 -4
  1074. package/dist/sparkle-core/p-e8988989.entry.js +0 -1
  1075. package/dist/sparkle-core/p-e9431eeb.js +0 -7
  1076. package/dist/sparkle-core/p-ea962e1b.entry.js +0 -1
  1077. package/dist/sparkle-core/p-eaa8bbee.js +0 -4
  1078. package/dist/sparkle-core/p-ebd4354b.entry.js +0 -1
  1079. package/dist/sparkle-core/p-ee1e0eb4.js +0 -2
  1080. package/dist/sparkle-core/p-ef4edc48.entry.js +0 -4
  1081. package/dist/sparkle-core/p-f196c124.entry.js +0 -7
  1082. package/dist/sparkle-core/p-f3cba72a.js +0 -4
  1083. package/dist/sparkle-core/p-f47fe1fe.entry.js +0 -1
  1084. package/dist/sparkle-core/p-f714f77a.entry.js +0 -1
  1085. package/dist/sparkle-core/p-f891c79a.entry.js +0 -1
  1086. package/dist/sparkle-core/p-fb0ca75e.entry.js +0 -5
  1087. package/dist/sparkle-core/p-fb757951.entry.js +0 -1
  1088. package/dist/sparkle-core/p-fd8d0738.entry.js +0 -4
  1089. package/dist/sparkle-core/p-fda95b6e.entry.js +0 -1
  1090. package/dist/sparkle-core/p-fe6dc976.entry.js +0 -1
  1091. package/dist/sparkle-core/p-ff080f82.entry.js +0 -10
  1092. package/dist/sparkle-core/p-ff7a8a71.js +0 -4
  1093. /package/dist/{esm → sparkle-core}/cubic-bezier-4c0db14f.js +0 -0
  1094. /package/dist/{esm → sparkle-core}/focus-visible-4e9a0764.js +0 -0
  1095. /package/dist/{esm → sparkle-core}/hardware-back-button-fa04d6e9.js +0 -0
  1096. /package/dist/{esm → sparkle-core}/index-be6112f8.js +0 -0
  1097. /package/dist/{esm → sparkle-core}/keyboard-7e8329b3.js +0 -0
  1098. /package/dist/{esm → sparkle-core}/localstorage.service-4bf408c8.js +0 -0
  1099. /package/dist/{esm → sparkle-core}/spinner-configs-a37e628a.js +0 -0
  1100. /package/dist/{esm → sparkle-core}/theme-7ef00c83.js +0 -0
@@ -1,1928 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'sparkle-core';
24
-
25
- let scopeId;
26
- let contentRef;
27
- let hostTagName;
28
- let useNativeShadowDom = false;
29
- let checkSlotFallbackVisibility = false;
30
- let checkSlotRelocate = false;
31
- let isSvgMode = false;
32
- let renderingRef = null;
33
- let queuePending = false;
34
- const win = typeof window !== 'undefined' ? window : {};
35
- const doc = win.document || { head: {} };
36
- const plt = {
37
- $flags$: 0,
38
- $resourcesUrl$: '',
39
- jmp: (h) => h(),
40
- raf: (h) => requestAnimationFrame(h),
41
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
42
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
43
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
44
- };
45
- const setPlatformHelpers = (helpers) => {
46
- Object.assign(plt, helpers);
47
- };
48
- const promiseResolve = (v) => Promise.resolve(v);
49
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
50
- try {
51
- new CSSStyleSheet();
52
- return typeof new CSSStyleSheet().replaceSync === 'function';
53
- }
54
- catch (e) { }
55
- return false;
56
- })()
57
- ;
58
- const Context = {};
59
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
60
- if (listeners) {
61
- listeners.map(([flags, name, method]) => {
62
- const target = getHostListenerTarget(elm, flags) ;
63
- const handler = hostListenerProxy(hostRef, method);
64
- const opts = hostListenerOpts(flags);
65
- plt.ael(target, name, handler, opts);
66
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
67
- });
68
- }
69
- };
70
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
71
- try {
72
- {
73
- if (hostRef.$flags$ & 256 /* isListenReady */) {
74
- // instance is ready, let's call it's member method for this event
75
- hostRef.$lazyInstance$[methodName](ev);
76
- }
77
- else {
78
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
79
- }
80
- }
81
- }
82
- catch (e) {
83
- consoleError(e);
84
- }
85
- };
86
- const getHostListenerTarget = (elm, flags) => {
87
- if (flags & 4 /* TargetDocument */)
88
- return doc;
89
- if (flags & 8 /* TargetWindow */)
90
- return win;
91
- if (flags & 16 /* TargetBody */)
92
- return doc.body;
93
- return elm;
94
- };
95
- // prettier-ignore
96
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
97
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
98
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
99
- const createTime = (fnName, tagName = '') => {
100
- {
101
- return () => {
102
- return;
103
- };
104
- }
105
- };
106
- const uniqueTime = (key, measureText) => {
107
- {
108
- return () => {
109
- return;
110
- };
111
- }
112
- };
113
- const rootAppliedStyles = new WeakMap();
114
- const registerStyle = (scopeId, cssText, allowCS) => {
115
- let style = styles.get(scopeId);
116
- if (supportsConstructableStylesheets && allowCS) {
117
- style = (style || new CSSStyleSheet());
118
- if (typeof style === 'string') {
119
- style = cssText;
120
- }
121
- else {
122
- style.replaceSync(cssText);
123
- }
124
- }
125
- else {
126
- style = cssText;
127
- }
128
- styles.set(scopeId, style);
129
- };
130
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
131
- let scopeId = getScopeId(cmpMeta, mode);
132
- const style = styles.get(scopeId);
133
- // if an element is NOT connected then getRootNode() will return the wrong root node
134
- // so the fallback is to always use the document for the root node in those cases
135
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
136
- if (style) {
137
- if (typeof style === 'string') {
138
- styleContainerNode = styleContainerNode.head || styleContainerNode;
139
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
140
- let styleElm;
141
- if (!appliedStyles) {
142
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
143
- }
144
- if (!appliedStyles.has(scopeId)) {
145
- {
146
- {
147
- styleElm = doc.createElement('style');
148
- styleElm.innerHTML = style;
149
- }
150
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
151
- }
152
- if (appliedStyles) {
153
- appliedStyles.add(scopeId);
154
- }
155
- }
156
- }
157
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
158
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
159
- }
160
- }
161
- return scopeId;
162
- };
163
- const attachStyles = (hostRef) => {
164
- const cmpMeta = hostRef.$cmpMeta$;
165
- const elm = hostRef.$hostElement$;
166
- const flags = cmpMeta.$flags$;
167
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
168
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
169
- if (flags & 10 /* needsScopedEncapsulation */) {
170
- // only required when we're NOT using native shadow dom (slot)
171
- // or this browser doesn't support native shadow dom
172
- // and this host element was NOT created with SSR
173
- // let's pick out the inner content for slot projection
174
- // create a node to represent where the original
175
- // content was first placed, which is useful later on
176
- // DOM WRITE!!
177
- elm['s-sc'] = scopeId;
178
- elm.classList.add(scopeId + '-h');
179
- if (flags & 2 /* scopedCssEncapsulation */) {
180
- elm.classList.add(scopeId + '-s');
181
- }
182
- }
183
- endAttachStyles();
184
- };
185
- const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
186
- // Private
187
- const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
188
- // Public
189
- const setMode = (handler) => modeResolutionChain.push(handler);
190
- const getMode = (ref) => getHostRef(ref).$modeName$;
191
- /**
192
- * Default style mode id
193
- */
194
- /**
195
- * Reusable empty obj/array
196
- * Don't add values to these!!
197
- */
198
- const EMPTY_OBJ = {};
199
- /**
200
- * Namespaces
201
- */
202
- const SVG_NS = 'http://www.w3.org/2000/svg';
203
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
204
- const isDef = (v) => v != null;
205
- const isComplexType = (o) => {
206
- // https://jsperf.com/typeof-fn-object/5
207
- o = typeof o;
208
- return o === 'object' || o === 'function';
209
- };
210
- /**
211
- * Production h() function based on Preact by
212
- * Jason Miller (@developit)
213
- * Licensed under the MIT License
214
- * https://github.com/developit/preact/blob/master/LICENSE
215
- *
216
- * Modified for Stencil's compiler and vdom
217
- */
218
- // const stack: any[] = [];
219
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
220
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
221
- const h = (nodeName, vnodeData, ...children) => {
222
- let child = null;
223
- let key = null;
224
- let slotName = null;
225
- let simple = false;
226
- let lastSimple = false;
227
- const vNodeChildren = [];
228
- const walk = (c) => {
229
- for (let i = 0; i < c.length; i++) {
230
- child = c[i];
231
- if (Array.isArray(child)) {
232
- walk(child);
233
- }
234
- else if (child != null && typeof child !== 'boolean') {
235
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
236
- child = String(child);
237
- }
238
- if (simple && lastSimple) {
239
- // If the previous child was simple (string), we merge both
240
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
241
- }
242
- else {
243
- // Append a new vNode, if it's text, we create a text vNode
244
- vNodeChildren.push(simple ? newVNode(null, child) : child);
245
- }
246
- lastSimple = simple;
247
- }
248
- }
249
- };
250
- walk(children);
251
- if (vnodeData) {
252
- // normalize class / classname attributes
253
- if (vnodeData.key) {
254
- key = vnodeData.key;
255
- }
256
- if (vnodeData.name) {
257
- slotName = vnodeData.name;
258
- }
259
- {
260
- const classData = vnodeData.className || vnodeData.class;
261
- if (classData) {
262
- vnodeData.class =
263
- typeof classData !== 'object'
264
- ? classData
265
- : Object.keys(classData)
266
- .filter((k) => classData[k])
267
- .join(' ');
268
- }
269
- }
270
- }
271
- if (typeof nodeName === 'function') {
272
- // nodeName is a functional component
273
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
274
- }
275
- const vnode = newVNode(nodeName, null);
276
- vnode.$attrs$ = vnodeData;
277
- if (vNodeChildren.length > 0) {
278
- vnode.$children$ = vNodeChildren;
279
- }
280
- {
281
- vnode.$key$ = key;
282
- }
283
- {
284
- vnode.$name$ = slotName;
285
- }
286
- return vnode;
287
- };
288
- const newVNode = (tag, text) => {
289
- const vnode = {
290
- $flags$: 0,
291
- $tag$: tag,
292
- $text$: text,
293
- $elm$: null,
294
- $children$: null,
295
- };
296
- {
297
- vnode.$attrs$ = null;
298
- }
299
- {
300
- vnode.$key$ = null;
301
- }
302
- {
303
- vnode.$name$ = null;
304
- }
305
- return vnode;
306
- };
307
- const Host = {};
308
- const isHost = (node) => node && node.$tag$ === Host;
309
- const vdomFnUtils = {
310
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
311
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
312
- };
313
- const convertToPublic = (node) => ({
314
- vattrs: node.$attrs$,
315
- vchildren: node.$children$,
316
- vkey: node.$key$,
317
- vname: node.$name$,
318
- vtag: node.$tag$,
319
- vtext: node.$text$,
320
- });
321
- const convertToPrivate = (node) => {
322
- if (typeof node.vtag === 'function') {
323
- const vnodeData = Object.assign({}, node.vattrs);
324
- if (node.vkey) {
325
- vnodeData.key = node.vkey;
326
- }
327
- if (node.vname) {
328
- vnodeData.name = node.vname;
329
- }
330
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
331
- }
332
- const vnode = newVNode(node.vtag, node.vtext);
333
- vnode.$attrs$ = node.vattrs;
334
- vnode.$children$ = node.vchildren;
335
- vnode.$key$ = node.vkey;
336
- vnode.$name$ = node.vname;
337
- return vnode;
338
- };
339
- /**
340
- * Production setAccessor() function based on Preact by
341
- * Jason Miller (@developit)
342
- * Licensed under the MIT License
343
- * https://github.com/developit/preact/blob/master/LICENSE
344
- *
345
- * Modified for Stencil's compiler and vdom
346
- */
347
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
348
- if (oldValue !== newValue) {
349
- let isProp = isMemberInElement(elm, memberName);
350
- let ln = memberName.toLowerCase();
351
- if (memberName === 'class') {
352
- const classList = elm.classList;
353
- const oldClasses = parseClassList(oldValue);
354
- const newClasses = parseClassList(newValue);
355
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
356
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
357
- }
358
- else if (memberName === 'style') {
359
- // update style attribute, css properties and values
360
- {
361
- for (const prop in oldValue) {
362
- if (!newValue || newValue[prop] == null) {
363
- if (prop.includes('-')) {
364
- elm.style.removeProperty(prop);
365
- }
366
- else {
367
- elm.style[prop] = '';
368
- }
369
- }
370
- }
371
- }
372
- for (const prop in newValue) {
373
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
374
- if (prop.includes('-')) {
375
- elm.style.setProperty(prop, newValue[prop]);
376
- }
377
- else {
378
- elm.style[prop] = newValue[prop];
379
- }
380
- }
381
- }
382
- }
383
- else if (memberName === 'key')
384
- ;
385
- else if (memberName === 'ref') {
386
- // minifier will clean this up
387
- if (newValue) {
388
- newValue(elm);
389
- }
390
- }
391
- else if ((!isProp ) &&
392
- memberName[0] === 'o' &&
393
- memberName[1] === 'n') {
394
- // Event Handlers
395
- // so if the member name starts with "on" and the 3rd characters is
396
- // a capital letter, and it's not already a member on the element,
397
- // then we're assuming it's an event listener
398
- if (memberName[2] === '-') {
399
- // on- prefixed events
400
- // allows to be explicit about the dom event to listen without any magic
401
- // under the hood:
402
- // <my-cmp on-click> // listens for "click"
403
- // <my-cmp on-Click> // listens for "Click"
404
- // <my-cmp on-ionChange> // listens for "ionChange"
405
- // <my-cmp on-EVENTS> // listens for "EVENTS"
406
- memberName = memberName.slice(3);
407
- }
408
- else if (isMemberInElement(win, ln)) {
409
- // standard event
410
- // the JSX attribute could have been "onMouseOver" and the
411
- // member name "onmouseover" is on the window's prototype
412
- // so let's add the listener "mouseover", which is all lowercased
413
- memberName = ln.slice(2);
414
- }
415
- else {
416
- // custom event
417
- // the JSX attribute could have been "onMyCustomEvent"
418
- // so let's trim off the "on" prefix and lowercase the first character
419
- // and add the listener "myCustomEvent"
420
- // except for the first character, we keep the event name case
421
- memberName = ln[2] + memberName.slice(3);
422
- }
423
- if (oldValue) {
424
- plt.rel(elm, memberName, oldValue, false);
425
- }
426
- if (newValue) {
427
- plt.ael(elm, memberName, newValue, false);
428
- }
429
- }
430
- else {
431
- // Set property if it exists and it's not a SVG
432
- const isComplex = isComplexType(newValue);
433
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
434
- try {
435
- if (!elm.tagName.includes('-')) {
436
- const n = newValue == null ? '' : newValue;
437
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
438
- if (memberName === 'list') {
439
- isProp = false;
440
- }
441
- else if (oldValue == null || elm[memberName] != n) {
442
- elm[memberName] = n;
443
- }
444
- }
445
- else {
446
- elm[memberName] = newValue;
447
- }
448
- }
449
- catch (e) { }
450
- }
451
- /**
452
- * Need to manually update attribute if:
453
- * - memberName is not an attribute
454
- * - if we are rendering the host element in order to reflect attribute
455
- * - if it's a SVG, since properties might not work in <svg>
456
- * - if the newValue is null/undefined or 'false'.
457
- */
458
- let xlink = false;
459
- {
460
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
461
- memberName = ln;
462
- xlink = true;
463
- }
464
- }
465
- if (newValue == null || newValue === false) {
466
- if (newValue !== false || elm.getAttribute(memberName) === '') {
467
- if (xlink) {
468
- elm.removeAttributeNS(XLINK_NS, memberName);
469
- }
470
- else {
471
- elm.removeAttribute(memberName);
472
- }
473
- }
474
- }
475
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
476
- newValue = newValue === true ? '' : newValue;
477
- if (xlink) {
478
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
479
- }
480
- else {
481
- elm.setAttribute(memberName, newValue);
482
- }
483
- }
484
- }
485
- }
486
- };
487
- const parseClassListRegex = /\s/;
488
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
489
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
490
- // if the element passed in is a shadow root, which is a document fragment
491
- // then we want to be adding attrs/props to the shadow root's "host" element
492
- // if it's not a shadow root, then we add attrs/props to the same element
493
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
494
- ? newVnode.$elm$.host
495
- : newVnode.$elm$;
496
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
497
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
498
- {
499
- // remove attributes no longer present on the vnode by setting them to undefined
500
- for (memberName in oldVnodeAttrs) {
501
- if (!(memberName in newVnodeAttrs)) {
502
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
503
- }
504
- }
505
- }
506
- // add new & update changed attributes
507
- for (memberName in newVnodeAttrs) {
508
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
509
- }
510
- };
511
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
512
- // tslint:disable-next-line: prefer-const
513
- const newVNode = newParentVNode.$children$[childIndex];
514
- let i = 0;
515
- let elm;
516
- let childNode;
517
- let oldVNode;
518
- if (!useNativeShadowDom) {
519
- // remember for later we need to check to relocate nodes
520
- checkSlotRelocate = true;
521
- if (newVNode.$tag$ === 'slot') {
522
- if (scopeId) {
523
- // scoped css needs to add its scoped id to the parent element
524
- parentElm.classList.add(scopeId + '-s');
525
- }
526
- newVNode.$flags$ |= newVNode.$children$
527
- ? // slot element has fallback content
528
- 2 /* isSlotFallback */
529
- : // slot element does not have fallback content
530
- 1 /* isSlotReference */;
531
- }
532
- }
533
- if (newVNode.$text$ !== null) {
534
- // create text node
535
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
536
- }
537
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
538
- // create a slot reference node
539
- elm = newVNode.$elm$ =
540
- doc.createTextNode('');
541
- }
542
- else {
543
- if (!isSvgMode) {
544
- isSvgMode = newVNode.$tag$ === 'svg';
545
- }
546
- // create element
547
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
548
- ? 'slot-fb'
549
- : newVNode.$tag$)
550
- );
551
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
552
- isSvgMode = false;
553
- }
554
- // add css classes, attrs, props, listeners, etc.
555
- {
556
- updateElement(null, newVNode, isSvgMode);
557
- }
558
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
559
- // if there is a scopeId and this is the initial render
560
- // then let's add the scopeId as a css class
561
- elm.classList.add((elm['s-si'] = scopeId));
562
- }
563
- if (newVNode.$children$) {
564
- for (i = 0; i < newVNode.$children$.length; ++i) {
565
- // create the node
566
- childNode = createElm(oldParentVNode, newVNode, i, elm);
567
- // return node could have been null
568
- if (childNode) {
569
- // append our new node
570
- elm.appendChild(childNode);
571
- }
572
- }
573
- }
574
- {
575
- if (newVNode.$tag$ === 'svg') {
576
- // Only reset the SVG context when we're exiting <svg> element
577
- isSvgMode = false;
578
- }
579
- else if (elm.tagName === 'foreignObject') {
580
- // Reenter SVG context when we're exiting <foreignObject> element
581
- isSvgMode = true;
582
- }
583
- }
584
- }
585
- {
586
- elm['s-hn'] = hostTagName;
587
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
588
- // remember the content reference comment
589
- elm['s-sr'] = true;
590
- // remember the content reference comment
591
- elm['s-cr'] = contentRef;
592
- // remember the slot name, or empty string for default slot
593
- elm['s-sn'] = newVNode.$name$ || '';
594
- // check if we've got an old vnode for this slot
595
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
596
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
597
- // we've got an old slot vnode and the wrapper is being replaced
598
- // so let's move the old slot content back to it's original location
599
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
600
- }
601
- }
602
- }
603
- return elm;
604
- };
605
- const putBackInOriginalLocation = (parentElm, recursive) => {
606
- plt.$flags$ |= 1 /* isTmpDisconnected */;
607
- const oldSlotChildNodes = parentElm.childNodes;
608
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
609
- const childNode = oldSlotChildNodes[i];
610
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
611
- // // this child node in the old element is from another component
612
- // // remove this node from the old slot's parent
613
- // childNode.remove();
614
- // and relocate it back to it's original location
615
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
616
- // remove the old original location comment entirely
617
- // later on the patch function will know what to do
618
- // and move this to the correct spot in need be
619
- childNode['s-ol'].remove();
620
- childNode['s-ol'] = undefined;
621
- checkSlotRelocate = true;
622
- }
623
- if (recursive) {
624
- putBackInOriginalLocation(childNode, recursive);
625
- }
626
- }
627
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
628
- };
629
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
630
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
631
- let childNode;
632
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
633
- containerElm = containerElm.shadowRoot;
634
- }
635
- for (; startIdx <= endIdx; ++startIdx) {
636
- if (vnodes[startIdx]) {
637
- childNode = createElm(null, parentVNode, startIdx, parentElm);
638
- if (childNode) {
639
- vnodes[startIdx].$elm$ = childNode;
640
- containerElm.insertBefore(childNode, referenceNode(before) );
641
- }
642
- }
643
- }
644
- };
645
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
646
- for (; startIdx <= endIdx; ++startIdx) {
647
- if ((vnode = vnodes[startIdx])) {
648
- elm = vnode.$elm$;
649
- callNodeRefs(vnode);
650
- {
651
- // we're removing this element
652
- // so it's possible we need to show slot fallback content now
653
- checkSlotFallbackVisibility = true;
654
- if (elm['s-ol']) {
655
- // remove the original location comment
656
- elm['s-ol'].remove();
657
- }
658
- else {
659
- // it's possible that child nodes of the node
660
- // that's being removed are slot nodes
661
- putBackInOriginalLocation(elm, true);
662
- }
663
- }
664
- // remove the vnode's element from the dom
665
- elm.remove();
666
- }
667
- }
668
- };
669
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
670
- let oldStartIdx = 0;
671
- let newStartIdx = 0;
672
- let idxInOld = 0;
673
- let i = 0;
674
- let oldEndIdx = oldCh.length - 1;
675
- let oldStartVnode = oldCh[0];
676
- let oldEndVnode = oldCh[oldEndIdx];
677
- let newEndIdx = newCh.length - 1;
678
- let newStartVnode = newCh[0];
679
- let newEndVnode = newCh[newEndIdx];
680
- let node;
681
- let elmToMove;
682
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
683
- if (oldStartVnode == null) {
684
- // Vnode might have been moved left
685
- oldStartVnode = oldCh[++oldStartIdx];
686
- }
687
- else if (oldEndVnode == null) {
688
- oldEndVnode = oldCh[--oldEndIdx];
689
- }
690
- else if (newStartVnode == null) {
691
- newStartVnode = newCh[++newStartIdx];
692
- }
693
- else if (newEndVnode == null) {
694
- newEndVnode = newCh[--newEndIdx];
695
- }
696
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
697
- patch(oldStartVnode, newStartVnode);
698
- oldStartVnode = oldCh[++oldStartIdx];
699
- newStartVnode = newCh[++newStartIdx];
700
- }
701
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
702
- patch(oldEndVnode, newEndVnode);
703
- oldEndVnode = oldCh[--oldEndIdx];
704
- newEndVnode = newCh[--newEndIdx];
705
- }
706
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
707
- // Vnode moved right
708
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
709
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
710
- }
711
- patch(oldStartVnode, newEndVnode);
712
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
713
- oldStartVnode = oldCh[++oldStartIdx];
714
- newEndVnode = newCh[--newEndIdx];
715
- }
716
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
717
- // Vnode moved left
718
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
719
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
720
- }
721
- patch(oldEndVnode, newStartVnode);
722
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
723
- oldEndVnode = oldCh[--oldEndIdx];
724
- newStartVnode = newCh[++newStartIdx];
725
- }
726
- else {
727
- // createKeyToOldIdx
728
- idxInOld = -1;
729
- {
730
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
731
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
732
- idxInOld = i;
733
- break;
734
- }
735
- }
736
- }
737
- if (idxInOld >= 0) {
738
- elmToMove = oldCh[idxInOld];
739
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
740
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
741
- }
742
- else {
743
- patch(elmToMove, newStartVnode);
744
- oldCh[idxInOld] = undefined;
745
- node = elmToMove.$elm$;
746
- }
747
- newStartVnode = newCh[++newStartIdx];
748
- }
749
- else {
750
- // new element
751
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
752
- newStartVnode = newCh[++newStartIdx];
753
- }
754
- if (node) {
755
- {
756
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
757
- }
758
- }
759
- }
760
- }
761
- if (oldStartIdx > oldEndIdx) {
762
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
763
- }
764
- else if (newStartIdx > newEndIdx) {
765
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
766
- }
767
- };
768
- const isSameVnode = (vnode1, vnode2) => {
769
- // compare if two vnode to see if they're "technically" the same
770
- // need to have the same element tag, and same key to be the same
771
- if (vnode1.$tag$ === vnode2.$tag$) {
772
- if (vnode1.$tag$ === 'slot') {
773
- return vnode1.$name$ === vnode2.$name$;
774
- }
775
- {
776
- return vnode1.$key$ === vnode2.$key$;
777
- }
778
- }
779
- return false;
780
- };
781
- const referenceNode = (node) => {
782
- // this node was relocated to a new location in the dom
783
- // because of some other component's slot
784
- // but we still have an html comment in place of where
785
- // it's original location was according to it's original vdom
786
- return (node && node['s-ol']) || node;
787
- };
788
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
789
- const patch = (oldVNode, newVNode) => {
790
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
791
- const oldChildren = oldVNode.$children$;
792
- const newChildren = newVNode.$children$;
793
- const tag = newVNode.$tag$;
794
- const text = newVNode.$text$;
795
- let defaultHolder;
796
- if (text === null) {
797
- {
798
- // test if we're rendering an svg element, or still rendering nodes inside of one
799
- // only add this to the when the compiler sees we're using an svg somewhere
800
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
801
- }
802
- // element node
803
- {
804
- if (tag === 'slot')
805
- ;
806
- else {
807
- // either this is the first render of an element OR it's an update
808
- // AND we already know it's possible it could have changed
809
- // this updates the element's css classes, attrs, props, listeners, etc.
810
- updateElement(oldVNode, newVNode, isSvgMode);
811
- }
812
- }
813
- if (oldChildren !== null && newChildren !== null) {
814
- // looks like there's child vnodes for both the old and new vnodes
815
- updateChildren(elm, oldChildren, newVNode, newChildren);
816
- }
817
- else if (newChildren !== null) {
818
- // no old child vnodes, but there are new child vnodes to add
819
- if (oldVNode.$text$ !== null) {
820
- // the old vnode was text, so be sure to clear it out
821
- elm.textContent = '';
822
- }
823
- // add the new vnode children
824
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
825
- }
826
- else if (oldChildren !== null) {
827
- // no new child vnodes, but there are old child vnodes to remove
828
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
829
- }
830
- if (isSvgMode && tag === 'svg') {
831
- isSvgMode = false;
832
- }
833
- }
834
- else if ((defaultHolder = elm['s-cr'])) {
835
- // this element has slotted content
836
- defaultHolder.parentNode.textContent = text;
837
- }
838
- else if (oldVNode.$text$ !== text) {
839
- // update the text content for the text only vnode
840
- // and also only if the text is different than before
841
- elm.data = text;
842
- }
843
- };
844
- const updateFallbackSlotVisibility = (elm) => {
845
- // tslint:disable-next-line: prefer-const
846
- const childNodes = elm.childNodes;
847
- let childNode;
848
- let i;
849
- let ilen;
850
- let j;
851
- let slotNameAttr;
852
- let nodeType;
853
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
854
- childNode = childNodes[i];
855
- if (childNode.nodeType === 1 /* ElementNode */) {
856
- if (childNode['s-sr']) {
857
- // this is a slot fallback node
858
- // get the slot name for this slot reference node
859
- slotNameAttr = childNode['s-sn'];
860
- // by default always show a fallback slot node
861
- // then hide it if there are other slots in the light dom
862
- childNode.hidden = false;
863
- for (j = 0; j < ilen; j++) {
864
- nodeType = childNodes[j].nodeType;
865
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
866
- // this sibling node is from a different component OR is a named fallback slot node
867
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
868
- childNode.hidden = true;
869
- break;
870
- }
871
- }
872
- else {
873
- // this is a default fallback slot node
874
- // any element or text node (with content)
875
- // should hide the default fallback slot node
876
- if (nodeType === 1 /* ElementNode */ ||
877
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
878
- childNode.hidden = true;
879
- break;
880
- }
881
- }
882
- }
883
- }
884
- // keep drilling down
885
- updateFallbackSlotVisibility(childNode);
886
- }
887
- }
888
- };
889
- const relocateNodes = [];
890
- const relocateSlotContent = (elm) => {
891
- // tslint:disable-next-line: prefer-const
892
- let childNode;
893
- let node;
894
- let hostContentNodes;
895
- let slotNameAttr;
896
- let relocateNodeData;
897
- let j;
898
- let i = 0;
899
- const childNodes = elm.childNodes;
900
- const ilen = childNodes.length;
901
- for (; i < ilen; i++) {
902
- childNode = childNodes[i];
903
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
904
- // first got the content reference comment node
905
- // then we got it's parent, which is where all the host content is in now
906
- hostContentNodes = node.parentNode.childNodes;
907
- slotNameAttr = childNode['s-sn'];
908
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
909
- node = hostContentNodes[j];
910
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
911
- // let's do some relocating to its new home
912
- // but never relocate a content reference node
913
- // that is suppose to always represent the original content location
914
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
915
- // it's possible we've already decided to relocate this node
916
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
917
- // made some changes to slots
918
- // let's make sure we also double check
919
- // fallbacks are correctly hidden or shown
920
- checkSlotFallbackVisibility = true;
921
- node['s-sn'] = node['s-sn'] || slotNameAttr;
922
- if (relocateNodeData) {
923
- // previously we never found a slot home for this node
924
- // but turns out we did, so let's remember it now
925
- relocateNodeData.$slotRefNode$ = childNode;
926
- }
927
- else {
928
- // add to our list of nodes to relocate
929
- relocateNodes.push({
930
- $slotRefNode$: childNode,
931
- $nodeToRelocate$: node,
932
- });
933
- }
934
- if (node['s-sr']) {
935
- relocateNodes.map((relocateNode) => {
936
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
937
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
938
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
939
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
940
- }
941
- }
942
- });
943
- }
944
- }
945
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
946
- // so far this element does not have a slot home, not setting slotRefNode on purpose
947
- // if we never find a home for this element then we'll need to hide it
948
- relocateNodes.push({
949
- $nodeToRelocate$: node,
950
- });
951
- }
952
- }
953
- }
954
- }
955
- if (childNode.nodeType === 1 /* ElementNode */) {
956
- relocateSlotContent(childNode);
957
- }
958
- }
959
- };
960
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
961
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
962
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
963
- return true;
964
- }
965
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
966
- return true;
967
- }
968
- return false;
969
- }
970
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
971
- return true;
972
- }
973
- return slotNameAttr === '';
974
- };
975
- const callNodeRefs = (vNode) => {
976
- {
977
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
978
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
979
- }
980
- };
981
- const renderVdom = (hostRef, renderFnResults) => {
982
- const hostElm = hostRef.$hostElement$;
983
- const cmpMeta = hostRef.$cmpMeta$;
984
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
985
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
986
- hostTagName = hostElm.tagName;
987
- if (cmpMeta.$attrsToReflect$) {
988
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
989
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
990
- }
991
- rootVnode.$tag$ = null;
992
- rootVnode.$flags$ |= 4 /* isHost */;
993
- hostRef.$vnode$ = rootVnode;
994
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
995
- {
996
- scopeId = hostElm['s-sc'];
997
- }
998
- {
999
- contentRef = hostElm['s-cr'];
1000
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1001
- // always reset
1002
- checkSlotFallbackVisibility = false;
1003
- }
1004
- // synchronous patch
1005
- patch(oldVNode, rootVnode);
1006
- {
1007
- // while we're moving nodes around existing nodes, temporarily disable
1008
- // the disconnectCallback from working
1009
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1010
- if (checkSlotRelocate) {
1011
- relocateSlotContent(rootVnode.$elm$);
1012
- let relocateData;
1013
- let nodeToRelocate;
1014
- let orgLocationNode;
1015
- let parentNodeRef;
1016
- let insertBeforeNode;
1017
- let refNode;
1018
- let i = 0;
1019
- for (; i < relocateNodes.length; i++) {
1020
- relocateData = relocateNodes[i];
1021
- nodeToRelocate = relocateData.$nodeToRelocate$;
1022
- if (!nodeToRelocate['s-ol']) {
1023
- // add a reference node marking this node's original location
1024
- // keep a reference to this node for later lookups
1025
- orgLocationNode =
1026
- doc.createTextNode('');
1027
- orgLocationNode['s-nr'] = nodeToRelocate;
1028
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1029
- }
1030
- }
1031
- for (i = 0; i < relocateNodes.length; i++) {
1032
- relocateData = relocateNodes[i];
1033
- nodeToRelocate = relocateData.$nodeToRelocate$;
1034
- if (relocateData.$slotRefNode$) {
1035
- // by default we're just going to insert it directly
1036
- // after the slot reference node
1037
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1038
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1039
- orgLocationNode = nodeToRelocate['s-ol'];
1040
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1041
- refNode = orgLocationNode['s-nr'];
1042
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1043
- refNode = refNode.nextSibling;
1044
- if (!refNode || !refNode['s-nr']) {
1045
- insertBeforeNode = refNode;
1046
- break;
1047
- }
1048
- }
1049
- }
1050
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1051
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1052
- // we've checked that it's worth while to relocate
1053
- // since that the node to relocate
1054
- // has a different next sibling or parent relocated
1055
- if (nodeToRelocate !== insertBeforeNode) {
1056
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1057
- // probably a component in the index.html that doesn't have it's hostname set
1058
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1059
- }
1060
- // add it back to the dom but in its new home
1061
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1062
- }
1063
- }
1064
- }
1065
- else {
1066
- // this node doesn't have a slot home to go to, so let's hide it
1067
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1068
- nodeToRelocate.hidden = true;
1069
- }
1070
- }
1071
- }
1072
- }
1073
- if (checkSlotFallbackVisibility) {
1074
- updateFallbackSlotVisibility(rootVnode.$elm$);
1075
- }
1076
- // done moving nodes around
1077
- // allow the disconnect callback to work again
1078
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1079
- // always reset
1080
- relocateNodes.length = 0;
1081
- }
1082
- };
1083
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1084
- const createEvent = (ref, name, flags) => {
1085
- const elm = getElement(ref);
1086
- return {
1087
- emit: (detail) => {
1088
- return emitEvent(elm, name, {
1089
- bubbles: !!(flags & 4 /* Bubbles */),
1090
- composed: !!(flags & 2 /* Composed */),
1091
- cancelable: !!(flags & 1 /* Cancellable */),
1092
- detail,
1093
- });
1094
- },
1095
- };
1096
- };
1097
- /**
1098
- * Helper function to create & dispatch a custom Event on a provided target
1099
- * @param elm the target of the Event
1100
- * @param name the name to give the custom Event
1101
- * @param opts options for configuring a custom Event
1102
- * @returns the custom Event
1103
- */
1104
- const emitEvent = (elm, name, opts) => {
1105
- const ev = plt.ce(name, opts);
1106
- elm.dispatchEvent(ev);
1107
- return ev;
1108
- };
1109
- const attachToAncestor = (hostRef, ancestorComponent) => {
1110
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1111
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1112
- }
1113
- };
1114
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1115
- {
1116
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1117
- }
1118
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1119
- hostRef.$flags$ |= 512 /* needsRerender */;
1120
- return;
1121
- }
1122
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1123
- // there is no ancestor component or the ancestor component
1124
- // has already fired off its lifecycle update then
1125
- // fire off the initial update
1126
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1127
- return writeTask(dispatch) ;
1128
- };
1129
- const dispatchHooks = (hostRef, isInitialLoad) => {
1130
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1131
- const instance = hostRef.$lazyInstance$ ;
1132
- let promise;
1133
- if (isInitialLoad) {
1134
- {
1135
- hostRef.$flags$ |= 256 /* isListenReady */;
1136
- if (hostRef.$queuedListeners$) {
1137
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1138
- hostRef.$queuedListeners$ = null;
1139
- }
1140
- }
1141
- {
1142
- promise = safeCall(instance, 'componentWillLoad');
1143
- }
1144
- }
1145
- else {
1146
- {
1147
- promise = safeCall(instance, 'componentWillUpdate');
1148
- }
1149
- }
1150
- {
1151
- promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1152
- }
1153
- endSchedule();
1154
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1155
- };
1156
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1157
- // updateComponent
1158
- const elm = hostRef.$hostElement$;
1159
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1160
- const rc = elm['s-rc'];
1161
- if (isInitialLoad) {
1162
- // DOM WRITE!
1163
- attachStyles(hostRef);
1164
- }
1165
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1166
- {
1167
- callRender(hostRef, instance);
1168
- }
1169
- if (rc) {
1170
- // ok, so turns out there are some child host elements
1171
- // waiting on this parent element to load
1172
- // let's fire off all update callbacks waiting
1173
- rc.map((cb) => cb());
1174
- elm['s-rc'] = undefined;
1175
- }
1176
- endRender();
1177
- endUpdate();
1178
- {
1179
- const childrenPromises = elm['s-p'];
1180
- const postUpdate = () => postUpdateComponent(hostRef);
1181
- if (childrenPromises.length === 0) {
1182
- postUpdate();
1183
- }
1184
- else {
1185
- Promise.all(childrenPromises).then(postUpdate);
1186
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1187
- childrenPromises.length = 0;
1188
- }
1189
- }
1190
- };
1191
- const callRender = (hostRef, instance, elm) => {
1192
- try {
1193
- renderingRef = instance;
1194
- instance = instance.render && instance.render();
1195
- {
1196
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1197
- }
1198
- {
1199
- hostRef.$flags$ |= 2 /* hasRendered */;
1200
- }
1201
- {
1202
- {
1203
- // looks like we've got child nodes to render into this host element
1204
- // or we need to update the css class/attrs on the host element
1205
- // DOM WRITE!
1206
- {
1207
- renderVdom(hostRef, instance);
1208
- }
1209
- }
1210
- }
1211
- }
1212
- catch (e) {
1213
- consoleError(e, hostRef.$hostElement$);
1214
- }
1215
- renderingRef = null;
1216
- return null;
1217
- };
1218
- const getRenderingRef = () => renderingRef;
1219
- const postUpdateComponent = (hostRef) => {
1220
- const tagName = hostRef.$cmpMeta$.$tagName$;
1221
- const elm = hostRef.$hostElement$;
1222
- const endPostUpdate = createTime('postUpdate', tagName);
1223
- const instance = hostRef.$lazyInstance$ ;
1224
- const ancestorComponent = hostRef.$ancestorComponent$;
1225
- {
1226
- safeCall(instance, 'componentDidRender');
1227
- }
1228
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1229
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1230
- {
1231
- // DOM WRITE!
1232
- addHydratedFlag(elm);
1233
- }
1234
- {
1235
- safeCall(instance, 'componentDidLoad');
1236
- }
1237
- endPostUpdate();
1238
- {
1239
- hostRef.$onReadyResolve$(elm);
1240
- if (!ancestorComponent) {
1241
- appDidLoad();
1242
- }
1243
- }
1244
- }
1245
- else {
1246
- {
1247
- safeCall(instance, 'componentDidUpdate');
1248
- }
1249
- endPostUpdate();
1250
- }
1251
- {
1252
- hostRef.$onInstanceResolve$(elm);
1253
- }
1254
- // load events fire from bottom to top
1255
- // the deepest elements load first then bubbles up
1256
- {
1257
- if (hostRef.$onRenderResolve$) {
1258
- hostRef.$onRenderResolve$();
1259
- hostRef.$onRenderResolve$ = undefined;
1260
- }
1261
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1262
- nextTick(() => scheduleUpdate(hostRef, false));
1263
- }
1264
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1265
- }
1266
- // ( •_•)
1267
- // ( •_•)>⌐■-■
1268
- // (⌐■_■)
1269
- };
1270
- const forceUpdate = (ref) => {
1271
- {
1272
- const hostRef = getHostRef(ref);
1273
- const isConnected = hostRef.$hostElement$.isConnected;
1274
- if (isConnected &&
1275
- (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1276
- scheduleUpdate(hostRef, false);
1277
- }
1278
- // Returns "true" when the forced update was successfully scheduled
1279
- return isConnected;
1280
- }
1281
- };
1282
- const appDidLoad = (who) => {
1283
- // on appload
1284
- // we have finish the first big initial render
1285
- {
1286
- addHydratedFlag(doc.documentElement);
1287
- }
1288
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1289
- };
1290
- const safeCall = (instance, method, arg) => {
1291
- if (instance && instance[method]) {
1292
- try {
1293
- return instance[method](arg);
1294
- }
1295
- catch (e) {
1296
- consoleError(e);
1297
- }
1298
- }
1299
- return undefined;
1300
- };
1301
- const then = (promise, thenFn) => {
1302
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1303
- };
1304
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1305
- ;
1306
- /**
1307
- * Parse a new property value for a given property type.
1308
- *
1309
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1310
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1311
- * 1. `any`, the type given to `propValue` in the function signature
1312
- * 2. the type stored from `propType`.
1313
- *
1314
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1315
- *
1316
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1317
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1318
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1319
- * ```tsx
1320
- * <my-cmp prop-val={0}></my-cmp>
1321
- * ```
1322
- *
1323
- * HTML prop values on the other hand, will always a string
1324
- *
1325
- * @param propValue the new value to coerce to some type
1326
- * @param propType the type of the prop, expressed as a binary number
1327
- * @returns the parsed/coerced value
1328
- */
1329
- const parsePropertyValue = (propValue, propType) => {
1330
- // ensure this value is of the correct prop type
1331
- if (propValue != null && !isComplexType(propValue)) {
1332
- if (propType & 4 /* Boolean */) {
1333
- // per the HTML spec, any string value means it is a boolean true value
1334
- // but we'll cheat here and say that the string "false" is the boolean false
1335
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1336
- }
1337
- if (propType & 2 /* Number */) {
1338
- // force it to be a number
1339
- return parseFloat(propValue);
1340
- }
1341
- if (propType & 1 /* String */) {
1342
- // could have been passed as a number or boolean
1343
- // but we still want it as a string
1344
- return String(propValue);
1345
- }
1346
- // redundant return here for better minification
1347
- return propValue;
1348
- }
1349
- // not sure exactly what type we want
1350
- // so no need to change to a different type
1351
- return propValue;
1352
- };
1353
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1354
- const setValue = (ref, propName, newVal, cmpMeta) => {
1355
- // check our new property value against our internal value
1356
- const hostRef = getHostRef(ref);
1357
- const elm = hostRef.$hostElement$ ;
1358
- const oldVal = hostRef.$instanceValues$.get(propName);
1359
- const flags = hostRef.$flags$;
1360
- const instance = hostRef.$lazyInstance$ ;
1361
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1362
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1363
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1364
- const didValueChange = newVal !== oldVal && !areBothNaN;
1365
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1366
- // gadzooks! the property's value has changed!!
1367
- // set our new value!
1368
- hostRef.$instanceValues$.set(propName, newVal);
1369
- if (instance) {
1370
- // get an array of method names of watch functions to call
1371
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1372
- const watchMethods = cmpMeta.$watchers$[propName];
1373
- if (watchMethods) {
1374
- // this instance is watching for when this property changed
1375
- watchMethods.map((watchMethodName) => {
1376
- try {
1377
- // fire off each of the watch methods that are watching this property
1378
- instance[watchMethodName](newVal, oldVal, propName);
1379
- }
1380
- catch (e) {
1381
- consoleError(e, elm);
1382
- }
1383
- });
1384
- }
1385
- }
1386
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1387
- // looks like this value actually changed, so we've got work to do!
1388
- // but only if we've already rendered, otherwise just chill out
1389
- // queue that we need to do an update, but don't worry about queuing
1390
- // up millions cuz this function ensures it only runs once
1391
- scheduleUpdate(hostRef, false);
1392
- }
1393
- }
1394
- }
1395
- };
1396
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1397
- if (cmpMeta.$members$) {
1398
- if (Cstr.watchers) {
1399
- cmpMeta.$watchers$ = Cstr.watchers;
1400
- }
1401
- // It's better to have a const than two Object.entries()
1402
- const members = Object.entries(cmpMeta.$members$);
1403
- const prototype = Cstr.prototype;
1404
- members.map(([memberName, [memberFlags]]) => {
1405
- if ((memberFlags & 31 /* Prop */ ||
1406
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1407
- // proxyComponent - prop
1408
- Object.defineProperty(prototype, memberName, {
1409
- get() {
1410
- // proxyComponent, get value
1411
- return getValue(this, memberName);
1412
- },
1413
- set(newValue) {
1414
- // proxyComponent, set value
1415
- setValue(this, memberName, newValue, cmpMeta);
1416
- },
1417
- configurable: true,
1418
- enumerable: true,
1419
- });
1420
- }
1421
- else if (flags & 1 /* isElementConstructor */ &&
1422
- memberFlags & 64 /* Method */) {
1423
- // proxyComponent - method
1424
- Object.defineProperty(prototype, memberName, {
1425
- value(...args) {
1426
- const ref = getHostRef(this);
1427
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1428
- },
1429
- });
1430
- }
1431
- });
1432
- if ((flags & 1 /* isElementConstructor */)) {
1433
- const attrNameToPropName = new Map();
1434
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1435
- plt.jmp(() => {
1436
- const propName = attrNameToPropName.get(attrName);
1437
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1438
- // in the case where an attribute was set inline.
1439
- // ```html
1440
- // <my-component some-attribute="some-value"></my-component>
1441
- // ```
1442
- //
1443
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1444
- // programmatically changes it before it has been upgraded as shown below:
1445
- //
1446
- // ```html
1447
- // <!-- this component has _not_ been upgraded yet -->
1448
- // <my-component id="test" some-attribute="some-value"></my-component>
1449
- // <script>
1450
- // // grab non-upgraded component
1451
- // el = document.querySelector("#test");
1452
- // el.someAttribute = "another-value";
1453
- // // upgrade component
1454
- // customElements.define('my-component', MyComponent);
1455
- // </script>
1456
- // ```
1457
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1458
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1459
- // to the value that was set inline i.e. "some-value" from above example. When
1460
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1461
- //
1462
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1463
- // by connectedCallback as this attributeChangedCallback will not fire.
1464
- //
1465
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1466
- //
1467
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1468
- // properties here given that this goes against best practices outlined here
1469
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1470
- if (this.hasOwnProperty(propName)) {
1471
- newValue = this[propName];
1472
- delete this[propName];
1473
- }
1474
- else if (prototype.hasOwnProperty(propName) &&
1475
- typeof this[propName] === 'number' &&
1476
- this[propName] == newValue) {
1477
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1478
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1479
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1480
- return;
1481
- }
1482
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1483
- });
1484
- };
1485
- // create an array of attributes to observe
1486
- // and also create a map of html attribute name to js property name
1487
- Cstr.observedAttributes = members
1488
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1489
- .map(([propName, m]) => {
1490
- const attrName = m[1] || propName;
1491
- attrNameToPropName.set(attrName, propName);
1492
- if (m[0] & 512 /* ReflectAttr */) {
1493
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1494
- }
1495
- return attrName;
1496
- });
1497
- }
1498
- }
1499
- return Cstr;
1500
- };
1501
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1502
- // initializeComponent
1503
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1504
- {
1505
- // we haven't initialized this element yet
1506
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1507
- // lazy loaded components
1508
- // request the component's implementation to be
1509
- // wired up with the host element
1510
- Cstr = loadModule(cmpMeta);
1511
- if (Cstr.then) {
1512
- // Await creates a micro-task avoid if possible
1513
- const endLoad = uniqueTime();
1514
- Cstr = await Cstr;
1515
- endLoad();
1516
- }
1517
- if (!Cstr.isProxied) {
1518
- // we've never proxied this Constructor before
1519
- // let's add the getters/setters to its prototype before
1520
- // the first time we create an instance of the implementation
1521
- {
1522
- cmpMeta.$watchers$ = Cstr.watchers;
1523
- }
1524
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1525
- Cstr.isProxied = true;
1526
- }
1527
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1528
- // ok, time to construct the instance
1529
- // but let's keep track of when we start and stop
1530
- // so that the getters/setters don't incorrectly step on data
1531
- {
1532
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1533
- }
1534
- // construct the lazy-loaded component implementation
1535
- // passing the hostRef is very important during
1536
- // construction in order to directly wire together the
1537
- // host element and the lazy-loaded instance
1538
- try {
1539
- new Cstr(hostRef);
1540
- }
1541
- catch (e) {
1542
- consoleError(e);
1543
- }
1544
- {
1545
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1546
- }
1547
- {
1548
- hostRef.$flags$ |= 128 /* isWatchReady */;
1549
- }
1550
- endNewInstance();
1551
- fireConnectedCallback(hostRef.$lazyInstance$);
1552
- }
1553
- if (Cstr.style) {
1554
- // this component has styles but we haven't registered them yet
1555
- let style = Cstr.style;
1556
- if (typeof style !== 'string') {
1557
- style = style[(hostRef.$modeName$ = computeMode(elm))];
1558
- }
1559
- const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
1560
- if (!styles.has(scopeId)) {
1561
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1562
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1563
- endRegisterStyles();
1564
- }
1565
- }
1566
- }
1567
- // we've successfully created a lazy instance
1568
- const ancestorComponent = hostRef.$ancestorComponent$;
1569
- const schedule = () => scheduleUpdate(hostRef, true);
1570
- if (ancestorComponent && ancestorComponent['s-rc']) {
1571
- // this is the initial load and this component it has an ancestor component
1572
- // but the ancestor component has NOT fired its will update lifecycle yet
1573
- // so let's just cool our jets and wait for the ancestor to continue first
1574
- // this will get fired off when the ancestor component
1575
- // finally gets around to rendering its lazy self
1576
- // fire off the initial update
1577
- ancestorComponent['s-rc'].push(schedule);
1578
- }
1579
- else {
1580
- schedule();
1581
- }
1582
- };
1583
- const fireConnectedCallback = (instance) => {
1584
- {
1585
- safeCall(instance, 'connectedCallback');
1586
- }
1587
- };
1588
- const connectedCallback = (elm) => {
1589
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1590
- const hostRef = getHostRef(elm);
1591
- const cmpMeta = hostRef.$cmpMeta$;
1592
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1593
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1594
- // first time this component has connected
1595
- hostRef.$flags$ |= 1 /* hasConnected */;
1596
- {
1597
- // initUpdate
1598
- // if the slot polyfill is required we'll need to put some nodes
1599
- // in here to act as original content anchors as we move nodes around
1600
- // host element has been connected to the DOM
1601
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1602
- setContentReference(elm);
1603
- }
1604
- }
1605
- {
1606
- // find the first ancestor component (if there is one) and register
1607
- // this component as one of the actively loading child components for its ancestor
1608
- let ancestorComponent = elm;
1609
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1610
- // climb up the ancestors looking for the first
1611
- // component that hasn't finished its lifecycle update yet
1612
- if (ancestorComponent['s-p']) {
1613
- // we found this components first ancestor component
1614
- // keep a reference to this component's ancestor component
1615
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1616
- break;
1617
- }
1618
- }
1619
- }
1620
- // Lazy properties
1621
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1622
- if (cmpMeta.$members$) {
1623
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1624
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1625
- const value = elm[memberName];
1626
- delete elm[memberName];
1627
- elm[memberName] = value;
1628
- }
1629
- });
1630
- }
1631
- {
1632
- initializeComponent(elm, hostRef, cmpMeta);
1633
- }
1634
- }
1635
- else {
1636
- // not the first time this has connected
1637
- // reattach any event listeners to the host
1638
- // since they would have been removed when disconnected
1639
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1640
- // fire off connectedCallback() on component instance
1641
- fireConnectedCallback(hostRef.$lazyInstance$);
1642
- }
1643
- endConnected();
1644
- }
1645
- };
1646
- const setContentReference = (elm) => {
1647
- // only required when we're NOT using native shadow dom (slot)
1648
- // or this browser doesn't support native shadow dom
1649
- // and this host element was NOT created with SSR
1650
- // let's pick out the inner content for slot projection
1651
- // create a node to represent where the original
1652
- // content was first placed, which is useful later on
1653
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1654
- contentRefElm['s-cn'] = true;
1655
- elm.insertBefore(contentRefElm, elm.firstChild);
1656
- };
1657
- const disconnectedCallback = (elm) => {
1658
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1659
- const hostRef = getHostRef(elm);
1660
- const instance = hostRef.$lazyInstance$ ;
1661
- {
1662
- if (hostRef.$rmListeners$) {
1663
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1664
- hostRef.$rmListeners$ = undefined;
1665
- }
1666
- }
1667
- {
1668
- safeCall(instance, 'disconnectedCallback');
1669
- }
1670
- {
1671
- safeCall(instance, 'componentDidUnload');
1672
- }
1673
- }
1674
- };
1675
- const bootstrapLazy = (lazyBundles, options = {}) => {
1676
- const endBootstrap = createTime();
1677
- const cmpTags = [];
1678
- const exclude = options.exclude || [];
1679
- const customElements = win.customElements;
1680
- const head = doc.head;
1681
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1682
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1683
- const deferredConnectedCallbacks = [];
1684
- let appLoadFallback;
1685
- let isBootstrapping = true;
1686
- Object.assign(plt, options);
1687
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1688
- lazyBundles.map((lazyBundle) => {
1689
- lazyBundle[1].map((compactMeta) => {
1690
- const cmpMeta = {
1691
- $flags$: compactMeta[0],
1692
- $tagName$: compactMeta[1],
1693
- $members$: compactMeta[2],
1694
- $listeners$: compactMeta[3],
1695
- };
1696
- {
1697
- cmpMeta.$members$ = compactMeta[2];
1698
- }
1699
- {
1700
- cmpMeta.$listeners$ = compactMeta[3];
1701
- }
1702
- {
1703
- cmpMeta.$attrsToReflect$ = [];
1704
- }
1705
- {
1706
- cmpMeta.$watchers$ = {};
1707
- }
1708
- const tagName = cmpMeta.$tagName$;
1709
- const HostElement = class extends HTMLElement {
1710
- // StencilLazyHost
1711
- constructor(self) {
1712
- // @ts-ignore
1713
- super(self);
1714
- self = this;
1715
- registerHost(self, cmpMeta);
1716
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1717
- // this component is using shadow dom
1718
- // and this browser supports shadow dom
1719
- // add the read-only property "shadowRoot" to the host element
1720
- // adding the shadow root build conditionals to minimize runtime
1721
- {
1722
- {
1723
- self.attachShadow({
1724
- mode: 'open',
1725
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
1726
- });
1727
- }
1728
- }
1729
- }
1730
- }
1731
- connectedCallback() {
1732
- if (appLoadFallback) {
1733
- clearTimeout(appLoadFallback);
1734
- appLoadFallback = null;
1735
- }
1736
- if (isBootstrapping) {
1737
- // connectedCallback will be processed once all components have been registered
1738
- deferredConnectedCallbacks.push(this);
1739
- }
1740
- else {
1741
- plt.jmp(() => connectedCallback(this));
1742
- }
1743
- }
1744
- disconnectedCallback() {
1745
- plt.jmp(() => disconnectedCallback(this));
1746
- }
1747
- componentOnReady() {
1748
- return getHostRef(this).$onReadyPromise$;
1749
- }
1750
- };
1751
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1752
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1753
- cmpTags.push(tagName);
1754
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1755
- }
1756
- });
1757
- });
1758
- {
1759
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1760
- visibilityStyle.setAttribute('data-styles', '');
1761
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1762
- }
1763
- // Process deferred connectedCallbacks now all components have been registered
1764
- isBootstrapping = false;
1765
- if (deferredConnectedCallbacks.length) {
1766
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1767
- }
1768
- else {
1769
- {
1770
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1771
- }
1772
- }
1773
- // Fallback appLoad event
1774
- endBootstrap();
1775
- };
1776
- const getAssetPath = (path) => {
1777
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1778
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1779
- };
1780
- const getContext = (_elm, context) => {
1781
- if (context in Context) {
1782
- return Context[context];
1783
- }
1784
- else if (context === 'window') {
1785
- return win;
1786
- }
1787
- else if (context === 'document') {
1788
- return doc;
1789
- }
1790
- else if (context === 'isServer' || context === 'isPrerender') {
1791
- return false;
1792
- }
1793
- else if (context === 'isClient') {
1794
- return true;
1795
- }
1796
- else if (context === 'resourcesUrl' || context === 'publicPath') {
1797
- return getAssetPath('.');
1798
- }
1799
- else if (context === 'queue') {
1800
- return {
1801
- write: writeTask,
1802
- read: readTask,
1803
- tick: {
1804
- then(cb) {
1805
- return nextTick(cb);
1806
- },
1807
- },
1808
- };
1809
- }
1810
- return undefined;
1811
- };
1812
- const Fragment = (_, children) => children;
1813
- const hostRefs = new WeakMap();
1814
- const getHostRef = (ref) => hostRefs.get(ref);
1815
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1816
- const registerHost = (elm, cmpMeta) => {
1817
- const hostRef = {
1818
- $flags$: 0,
1819
- $hostElement$: elm,
1820
- $cmpMeta$: cmpMeta,
1821
- $instanceValues$: new Map(),
1822
- };
1823
- {
1824
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1825
- }
1826
- {
1827
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1828
- elm['s-p'] = [];
1829
- elm['s-rc'] = [];
1830
- }
1831
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1832
- return hostRefs.set(elm, hostRef);
1833
- };
1834
- const isMemberInElement = (elm, memberName) => memberName in elm;
1835
- const consoleError = (e, el) => (0, console.error)(e, el);
1836
- const cmpModules = /*@__PURE__*/ new Map();
1837
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1838
- // loadModuleImport
1839
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1840
- const bundleId = cmpMeta.$lazyBundleId$;
1841
- const module = cmpModules.get(bundleId) ;
1842
- if (module) {
1843
- return module[exportName];
1844
- }
1845
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1846
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1847
- /* @vite-ignore */
1848
- /* webpackInclude: /\.entry\.js$/ */
1849
- /* webpackExclude: /\.system\.entry\.js$/ */
1850
- /* webpackMode: "lazy" */
1851
- `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1852
- {
1853
- cmpModules.set(bundleId, importedModule);
1854
- }
1855
- return importedModule[exportName];
1856
- }, consoleError);
1857
- };
1858
- const styles = new Map();
1859
- const modeResolutionChain = [];
1860
- const queueDomReads = [];
1861
- const queueDomWrites = [];
1862
- const queueTask = (queue, write) => (cb) => {
1863
- queue.push(cb);
1864
- if (!queuePending) {
1865
- queuePending = true;
1866
- if (write && plt.$flags$ & 4 /* queueSync */) {
1867
- nextTick(flush);
1868
- }
1869
- else {
1870
- plt.raf(flush);
1871
- }
1872
- }
1873
- };
1874
- const consume = (queue) => {
1875
- for (let i = 0; i < queue.length; i++) {
1876
- try {
1877
- queue[i](performance.now());
1878
- }
1879
- catch (e) {
1880
- consoleError(e);
1881
- }
1882
- }
1883
- queue.length = 0;
1884
- };
1885
- const flush = () => {
1886
- // always force a bunch of medium callbacks to run, but still have
1887
- // a throttle on how many can run in a certain time
1888
- // DOM READS!!!
1889
- consume(queueDomReads);
1890
- // DOM WRITES!!!
1891
- {
1892
- consume(queueDomWrites);
1893
- if ((queuePending = queueDomReads.length > 0)) {
1894
- // still more to do yet, but we've run out of time
1895
- // let's let this thing cool off and try again in the next tick
1896
- plt.raf(flush);
1897
- }
1898
- }
1899
- };
1900
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1901
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
1902
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1903
- const Build = {
1904
- isDev: false,
1905
- isBrowser: true,
1906
- isServer: false,
1907
- isTesting: false,
1908
- };
1909
-
1910
- exports.Build = Build;
1911
- exports.Context = Context;
1912
- exports.Fragment = Fragment;
1913
- exports.Host = Host;
1914
- exports.bootstrapLazy = bootstrapLazy;
1915
- exports.createEvent = createEvent;
1916
- exports.forceUpdate = forceUpdate;
1917
- exports.getAssetPath = getAssetPath;
1918
- exports.getContext = getContext;
1919
- exports.getElement = getElement;
1920
- exports.getMode = getMode;
1921
- exports.getRenderingRef = getRenderingRef;
1922
- exports.h = h;
1923
- exports.promiseResolve = promiseResolve;
1924
- exports.readTask = readTask;
1925
- exports.registerInstance = registerInstance;
1926
- exports.setMode = setMode;
1927
- exports.setPlatformHelpers = setPlatformHelpers;
1928
- exports.writeTask = writeTask;