@sparkle-learning/core 0.0.55 → 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 (1097) 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/dist/types/components/sparkle-video-player/sparkle-video-player.d.ts +7 -0
  242. package/dist/types/components.d.ts +21 -0
  243. package/package.json +1 -1
  244. package/dist/cjs/PrivateRoute-f97245ce.js +0 -217
  245. package/dist/cjs/active-router-f9e18bd8.js +0 -75
  246. package/dist/cjs/animation-ee586546.js +0 -986
  247. package/dist/cjs/app-globals-33c9f31b.js +0 -9
  248. package/dist/cjs/appdata.service-c8d71e05.js +0 -73
  249. package/dist/cjs/assets.service-bfa75092.js +0 -50
  250. package/dist/cjs/assignment.service-690fb59c.js +0 -19
  251. package/dist/cjs/auth.store-1e630a7d.js +0 -3392
  252. package/dist/cjs/compass-svg.cjs.entry.js +0 -132
  253. package/dist/cjs/context-consumer.cjs.entry.js +0 -29
  254. package/dist/cjs/course-select.cjs.entry.js +0 -30
  255. package/dist/cjs/cubic-bezier-53d26d05.js +0 -93
  256. package/dist/cjs/dir-5af5259a.js +0 -20
  257. package/dist/cjs/environment-config.service-c8ff1f3d.js +0 -28
  258. package/dist/cjs/facilitator.service-ff0e1659.js +0 -95
  259. package/dist/cjs/feed.service-8eca4de6.js +0 -57
  260. package/dist/cjs/focus-visible-b0b07ba6.js +0 -76
  261. package/dist/cjs/framework-delegate-59a98abd.js +0 -111
  262. package/dist/cjs/gesture-controller-0eb5579e.js +0 -196
  263. package/dist/cjs/haptic-780f33c4.js +0 -116
  264. package/dist/cjs/hardware-back-button-92d97ff8.js +0 -76
  265. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +0 -15124
  266. package/dist/cjs/helpers-c2496722.js +0 -425
  267. package/dist/cjs/httpService-d2e7bf8f.js +0 -687
  268. package/dist/cjs/icons-fda820af.js +0 -26
  269. package/dist/cjs/index-12082cba.js +0 -465
  270. package/dist/cjs/index-15ea05f5.js +0 -314
  271. package/dist/cjs/index-51e8292e.js +0 -1928
  272. package/dist/cjs/index-787d4498.js +0 -232
  273. package/dist/cjs/index-8b5629a6.js +0 -186
  274. package/dist/cjs/index-975586fd.js +0 -48
  275. package/dist/cjs/index-9c7b27e4.js +0 -140
  276. package/dist/cjs/index-af080b50.js +0 -139
  277. package/dist/cjs/index-e56e09b8.js +0 -38
  278. package/dist/cjs/index.cjs.js +0 -26
  279. package/dist/cjs/index.es-38cbcdbe.js +0 -10666
  280. package/dist/cjs/input-shims-eff63b88.js +0 -418
  281. package/dist/cjs/ion-accordion-group.cjs.entry.js +0 -205
  282. package/dist/cjs/ion-accordion.cjs.entry.js +0 -336
  283. package/dist/cjs/ion-action-sheet_7.cjs.entry.js +0 -2935
  284. package/dist/cjs/ion-app.cjs.entry.js +0 -79
  285. package/dist/cjs/ion-back-button.cjs.entry.js +0 -94
  286. package/dist/cjs/ion-backdrop.cjs.entry.js +0 -67
  287. package/dist/cjs/ion-badge.cjs.entry.js +0 -29
  288. package/dist/cjs/ion-breadcrumb.cjs.entry.js +0 -95
  289. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +0 -133
  290. package/dist/cjs/ion-buttons_3.cjs.entry.js +0 -153
  291. package/dist/cjs/ion-card-header.cjs.entry.js +0 -37
  292. package/dist/cjs/ion-card-subtitle.cjs.entry.js +0 -30
  293. package/dist/cjs/ion-card-title.cjs.entry.js +0 -30
  294. package/dist/cjs/ion-chip.cjs.entry.js +0 -40
  295. package/dist/cjs/ion-content_2.cjs.entry.js +0 -659
  296. package/dist/cjs/ion-datetime-button.cjs.entry.js +0 -312
  297. package/dist/cjs/ion-datetime.cjs.entry.js +0 -1623
  298. package/dist/cjs/ion-fab-button.cjs.entry.js +0 -108
  299. package/dist/cjs/ion-fab-list.cjs.entry.js +0 -45
  300. package/dist/cjs/ion-fab.cjs.entry.js +0 -76
  301. package/dist/cjs/ion-footer.cjs.entry.js +0 -120
  302. package/dist/cjs/ion-img.cjs.entry.js +0 -101
  303. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +0 -37
  304. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +0 -206
  305. package/dist/cjs/ion-item-divider.cjs.entry.js +0 -40
  306. package/dist/cjs/ion-item-group.cjs.entry.js +0 -31
  307. package/dist/cjs/ion-item-option.cjs.entry.js +0 -60
  308. package/dist/cjs/ion-item-options.cjs.entry.js +0 -47
  309. package/dist/cjs/ion-item-sliding.cjs.entry.js +0 -398
  310. package/dist/cjs/ion-loading.cjs.entry.js +0 -215
  311. package/dist/cjs/ion-menu-button.cjs.entry.js +0 -76
  312. package/dist/cjs/ion-menu-toggle.cjs.entry.js +0 -47
  313. package/dist/cjs/ion-menu.cjs.entry.js +0 -575
  314. package/dist/cjs/ion-modal.cjs.entry.js +0 -1711
  315. package/dist/cjs/ion-nav-link.cjs.entry.js +0 -47
  316. package/dist/cjs/ion-nav.cjs.entry.js +0 -872
  317. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +0 -808
  318. package/dist/cjs/ion-picker-column.cjs.entry.js +0 -331
  319. package/dist/cjs/ion-picker.cjs.entry.js +0 -221
  320. package/dist/cjs/ion-progress-bar.cjs.entry.js +0 -74
  321. package/dist/cjs/ion-refresher-content.cjs.entry.js +0 -35
  322. package/dist/cjs/ion-refresher.cjs.entry.js +0 -802
  323. package/dist/cjs/ion-reorder-group.cjs.entry.js +0 -281
  324. package/dist/cjs/ion-reorder.cjs.entry.js +0 -38
  325. package/dist/cjs/ion-route-redirect.cjs.entry.js +0 -24
  326. package/dist/cjs/ion-route.cjs.entry.js +0 -49
  327. package/dist/cjs/ion-router-link.cjs.entry.js +0 -38
  328. package/dist/cjs/ion-router-outlet.cjs.entry.js +0 -200
  329. package/dist/cjs/ion-router.cjs.entry.js +0 -831
  330. package/dist/cjs/ion-searchbar.cjs.entry.js +0 -370
  331. package/dist/cjs/ion-segment-button.cjs.entry.js +0 -102
  332. package/dist/cjs/ion-segment.cjs.entry.js +0 -417
  333. package/dist/cjs/ion-skeleton-text.cjs.entry.js +0 -33
  334. package/dist/cjs/ion-slide.cjs.entry.js +0 -25
  335. package/dist/cjs/ion-slides.cjs.entry.js +0 -391
  336. package/dist/cjs/ion-split-pane.cjs.entry.js +0 -154
  337. package/dist/cjs/ion-tab-bar.cjs.entry.js +0 -75
  338. package/dist/cjs/ion-tab-button.cjs.entry.js +0 -103
  339. package/dist/cjs/ion-tab.cjs.entry.js +0 -59
  340. package/dist/cjs/ion-tabs.cjs.entry.js +0 -154
  341. package/dist/cjs/ion-thumbnail.cjs.entry.js +0 -20
  342. package/dist/cjs/ion-toast.cjs.entry.js +0 -272
  343. package/dist/cjs/ion-toggle.cjs.entry.js +0 -177
  344. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +0 -555
  345. package/dist/cjs/ionic-global-2cde9d3a.js +0 -231
  346. package/dist/cjs/ios.transition-da235483.js +0 -482
  347. package/dist/cjs/keyboard-91096619.js +0 -140
  348. package/dist/cjs/loader.cjs.js +0 -24
  349. package/dist/cjs/localstorage.service-6346a41d.js +0 -40
  350. package/dist/cjs/md.transition-be429e07.js +0 -57
  351. package/dist/cjs/media.service-8a1b9bc5.js +0 -40
  352. package/dist/cjs/menu-toggle-util-7a01448c.js +0 -14
  353. package/dist/cjs/overlays-32df265a.js +0 -507
  354. package/dist/cjs/parse-d0071120.js +0 -1237
  355. package/dist/cjs/purify-fb9c107e.js +0 -1468
  356. package/dist/cjs/signalR.service-bd6b42f9.js +0 -2985
  357. package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -515
  358. package/dist/cjs/sparkle-assignment.cjs.entry.js +0 -110
  359. package/dist/cjs/sparkle-character-intro.cjs.entry.js +0 -26
  360. package/dist/cjs/sparkle-code.cjs.entry.js +0 -43
  361. package/dist/cjs/sparkle-compass-post.cjs.entry.js +0 -133
  362. package/dist/cjs/sparkle-compass.cjs.entry.js +0 -126
  363. package/dist/cjs/sparkle-core.cjs.js +0 -22
  364. package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +0 -281
  365. package/dist/cjs/sparkle-discussion.cjs.entry.js +0 -42
  366. package/dist/cjs/sparkle-emoji.cjs.entry.js +0 -80
  367. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +0 -121
  368. package/dist/cjs/sparkle-feed-post.cjs.entry.js +0 -116
  369. package/dist/cjs/sparkle-feedback.cjs.entry.js +0 -101
  370. package/dist/cjs/sparkle-file-upload.cjs.entry.js +0 -53
  371. package/dist/cjs/sparkle-goal-form.cjs.entry.js +0 -179
  372. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +0 -26
  373. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +0 -19
  374. package/dist/cjs/sparkle-input.cjs.entry.js +0 -56
  375. package/dist/cjs/sparkle-intro.cjs.entry.js +0 -26
  376. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +0 -22
  377. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +0 -46
  378. package/dist/cjs/sparkle-modal-image.cjs.entry.js +0 -34
  379. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +0 -25
  380. package/dist/cjs/sparkle-overlay.cjs.entry.js +0 -92
  381. package/dist/cjs/sparkle-poll.cjs.entry.js +0 -19
  382. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +0 -47
  383. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  384. package/dist/cjs/sparkle-quiz-old.cjs.entry.js +0 -120
  385. package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -103
  386. package/dist/cjs/sparkle-select.cjs.entry.js +0 -61
  387. package/dist/cjs/sparkle-sidebar.cjs.entry.js +0 -43
  388. package/dist/cjs/sparkle-tab.cjs.entry.js +0 -26
  389. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +0 -71
  390. package/dist/cjs/sparkle-tabs.cjs.entry.js +0 -66
  391. package/dist/cjs/sparkle-youtube.cjs.entry.js +0 -39
  392. package/dist/cjs/spinner-configs-0ac05f2d.js +0 -147
  393. package/dist/cjs/status-tap-033befa2.js +0 -42
  394. package/dist/cjs/stencil-async-content.cjs.entry.js +0 -32
  395. package/dist/cjs/stencil-route-title.cjs.entry.js +0 -32
  396. package/dist/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  397. package/dist/cjs/student.service-7e5385be.js +0 -78
  398. package/dist/cjs/swipe-back-4a826f9b.js +0 -76
  399. package/dist/cjs/swiper.bundle-8c897c07.js +0 -6420
  400. package/dist/cjs/theme-b0b295c1.js +0 -48
  401. package/dist/cjs/token.service-7a41953d.js +0 -97
  402. package/dist/cjs/util-47e320b2.js +0 -2462
  403. package/dist/collection/PrivateRoute.js +0 -27
  404. package/dist/collection/appconst.js +0 -13
  405. package/dist/collection/assets/img/forward.svg +0 -5
  406. package/dist/collection/assets/img/help/fitt-logo.svg +0 -1
  407. package/dist/collection/assets/img/home/big-white-wall.svg +0 -15
  408. package/dist/collection/assets/img/home/find-help.svg +0 -23
  409. package/dist/collection/assets/img/home/lessons.svg +0 -26
  410. package/dist/collection/assets/img/home/my-goals.svg +0 -19
  411. package/dist/collection/assets/img/home/my-health.svg +0 -17
  412. package/dist/collection/assets/img/home/my-mood.svg +0 -26
  413. package/dist/collection/assets/img/pause.svg +0 -5
  414. package/dist/collection/assets/img/play-symbol.svg +0 -8
  415. package/dist/collection/assets/img/play.svg +0 -4
  416. package/dist/collection/assets/img/rewind.svg +0 -5
  417. package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +0 -17
  418. package/dist/collection/assets/lib/sparkleUtility.js +0 -8
  419. package/dist/collection/assets/svg/profile.svg +0 -2
  420. package/dist/collection/collection-manifest.json +0 -218
  421. package/dist/collection/components/compass-svg/compass-svg.css +0 -15
  422. package/dist/collection/components/compass-svg/compass-svg.js +0 -156
  423. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +0 -7
  424. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +0 -110
  425. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +0 -3
  426. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +0 -214
  427. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
  428. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +0 -172
  429. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +0 -104
  430. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +0 -3
  431. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +0 -144
  432. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +0 -14
  433. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +0 -64
  434. package/dist/collection/components/layout/facilitator/facilitator-page.css +0 -196
  435. package/dist/collection/components/layout/facilitator/facilitator-page.js +0 -281
  436. package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
  437. package/dist/collection/components/layout/facilitator/online-students/online-students.js +0 -70
  438. package/dist/collection/components/layout/page/page.css +0 -183
  439. package/dist/collection/components/layout/page/page.js +0 -321
  440. package/dist/collection/components/layout/page/templates/default.js +0 -9
  441. package/dist/collection/components/layout/page/templates/error.js +0 -33
  442. package/dist/collection/components/layout/page/templates/index.js +0 -8
  443. package/dist/collection/components/layout/page/templates/pdf.js +0 -8
  444. package/dist/collection/components/layout/page/to-hypertext.js +0 -27
  445. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +0 -3
  446. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +0 -252
  447. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +0 -12
  448. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +0 -59
  449. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +0 -33
  450. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +0 -37
  451. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +0 -8
  452. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +0 -40
  453. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +0 -7
  454. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +0 -52
  455. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +0 -3
  456. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +0 -14
  457. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +0 -30
  458. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +0 -187
  459. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +0 -3
  460. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +0 -43
  461. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +0 -10
  462. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +0 -111
  463. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +0 -11
  464. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +0 -127
  465. package/dist/collection/components/modal-image/modal-image.css +0 -61
  466. package/dist/collection/components/modal-image/modal-image.js +0 -159
  467. package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
  468. package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
  469. package/dist/collection/components/sparkle-animation-player/caption-parser.js +0 -94
  470. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +0 -157
  471. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -598
  472. package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +0 -30
  473. package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +0 -159
  474. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  475. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  476. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  477. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  478. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  479. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  480. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +0 -74
  481. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +0 -68
  482. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +0 -35
  483. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +0 -171
  484. package/dist/collection/components/sparkle-compass/sparkle-compass.css +0 -25
  485. package/dist/collection/components/sparkle-compass/sparkle-compass.js +0 -283
  486. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +0 -3
  487. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +0 -196
  488. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +0 -157
  489. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +0 -232
  490. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +0 -158
  491. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +0 -274
  492. package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +0 -5
  493. package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +0 -112
  494. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +0 -16
  495. package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +0 -116
  496. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +0 -35
  497. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +0 -193
  498. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +0 -3
  499. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +0 -118
  500. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
  501. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +0 -105
  502. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +0 -4
  503. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +0 -107
  504. package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
  505. package/dist/collection/components/sparkle-input/sparkle-input.js +0 -212
  506. package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -15
  507. package/dist/collection/components/sparkle-intro/sparkle-intro.js +0 -35
  508. package/dist/collection/components/sparkle-login/sparkle-login.css +0 -4
  509. package/dist/collection/components/sparkle-login/sparkle-login.js +0 -173
  510. package/dist/collection/components/sparkle-poll/sparkle-poll.css +0 -3
  511. package/dist/collection/components/sparkle-poll/sparkle-poll.js +0 -15
  512. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +0 -3
  513. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +0 -69
  514. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +0 -3
  515. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +0 -59
  516. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +0 -48
  517. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +0 -327
  518. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +0 -18
  519. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +0 -106
  520. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +0 -3
  521. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +0 -59
  522. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +0 -3
  523. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +0 -100
  524. package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +0 -48
  525. package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +0 -221
  526. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +0 -3
  527. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +0 -98
  528. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +0 -3
  529. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +0 -126
  530. package/dist/collection/components/sparkle-root/sparkle-root.css +0 -61
  531. package/dist/collection/components/sparkle-root/sparkle-root.js +0 -86
  532. package/dist/collection/components/sparkle-signup/sparkle-signup.css +0 -6
  533. package/dist/collection/components/sparkle-signup/sparkle-signup.js +0 -197
  534. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +0 -13
  535. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +0 -18
  536. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +0 -3
  537. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +0 -93
  538. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +0 -54
  539. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +0 -151
  540. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +0 -11
  541. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +0 -44
  542. package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +0 -24
  543. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +0 -99
  544. package/dist/collection/global/app.js +0 -4
  545. package/dist/collection/helpers/utils.js +0 -3
  546. package/dist/collection/icons.js +0 -36
  547. package/dist/collection/index.js +0 -3
  548. package/dist/collection/l10n.js +0 -18
  549. package/dist/collection/models/api.model.js +0 -7
  550. package/dist/collection/models/assets.model.js +0 -1
  551. package/dist/collection/models/auth/auth.user.js +0 -1
  552. package/dist/collection/models/class.model.js +0 -5
  553. package/dist/collection/models/course.model.js +0 -10
  554. package/dist/collection/models/definitions.js +0 -1
  555. package/dist/collection/models/facilitator-dashboard.model.js +0 -5
  556. package/dist/collection/models/goal.model.js +0 -1
  557. package/dist/collection/models/index.js +0 -1
  558. package/dist/collection/models/markdown.model.js +0 -1
  559. package/dist/collection/models/page.model.js +0 -1
  560. package/dist/collection/models/quiz.model.js +0 -3
  561. package/dist/collection/models/user.model.js +0 -1
  562. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +0 -2727
  563. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +0 -2042
  564. package/dist/collection/services/account.service.js +0 -61
  565. package/dist/collection/services/appdata.service.js +0 -60
  566. package/dist/collection/services/assignment.service.js +0 -14
  567. package/dist/collection/services/auth/auth.service.js +0 -64
  568. package/dist/collection/services/core/assets.service.js +0 -45
  569. package/dist/collection/services/core/localstorage.service.js +0 -34
  570. package/dist/collection/services/environment/environment-config.js +0 -24
  571. package/dist/collection/services/environment/environment-config.service.js +0 -24
  572. package/dist/collection/services/facilitator.service.js +0 -76
  573. package/dist/collection/services/feed.service.js +0 -43
  574. package/dist/collection/services/httpService.js +0 -103
  575. package/dist/collection/services/index.js +0 -4
  576. package/dist/collection/services/media.service.js +0 -29
  577. package/dist/collection/services/signalR.service.js +0 -83
  578. package/dist/collection/services/store.service.js +0 -13
  579. package/dist/collection/services/student.service.js +0 -56
  580. package/dist/collection/services/token.service.js +0 -79
  581. package/dist/collection/stores/auth.store.js +0 -12
  582. package/dist/collection/stores/class.store.js +0 -5
  583. package/dist/collection/stores/error.store.js +0 -5
  584. package/dist/collection/stores/facilitator.store.js +0 -15
  585. package/dist/collection/stores/feed.store.js +0 -8
  586. package/dist/collection/stores/goal.store.js +0 -7
  587. package/dist/collection/stores/index.js +0 -1
  588. package/dist/collection/stores/media.store.js +0 -5
  589. package/dist/collection/stores/mood.store.js +0 -5
  590. package/dist/collection/stores/nav.store.js +0 -11
  591. package/dist/collection/stores/signalR.store.js +0 -6
  592. package/dist/collection/stores/theme.store.js +0 -9
  593. package/dist/collection/stores/toc.store.js +0 -5
  594. package/dist/collection/stores/user.store.js +0 -16
  595. package/dist/collection/util.js +0 -55
  596. package/dist/collection/utils.js +0 -92
  597. package/dist/esm/PrivateRoute-90ac95b8.js +0 -212
  598. package/dist/esm/active-router-fc9e4e06.js +0 -73
  599. package/dist/esm/animation-12377cb3.js +0 -984
  600. package/dist/esm/app-globals-3f0347b0.js +0 -7
  601. package/dist/esm/appdata.service-2e84e167.js +0 -70
  602. package/dist/esm/assets.service-def1d63c.js +0 -48
  603. package/dist/esm/assignment.service-8d31f141.js +0 -17
  604. package/dist/esm/auth.store-dba2c2da.js +0 -3381
  605. package/dist/esm/compass-svg.entry.js +0 -128
  606. package/dist/esm/context-consumer.entry.js +0 -25
  607. package/dist/esm/course-select.entry.js +0 -26
  608. package/dist/esm/dir-03012648.js +0 -18
  609. package/dist/esm/environment-config.service-b191f276.js +0 -26
  610. package/dist/esm/facilitator.service-18c47bdf.js +0 -92
  611. package/dist/esm/feed.service-b4f3cae4.js +0 -54
  612. package/dist/esm/framework-delegate-3e634a5c.js +0 -107
  613. package/dist/esm/gesture-controller-7be18351.js +0 -194
  614. package/dist/esm/haptic-522f76f2.js +0 -110
  615. package/dist/esm/header-mobile-collapse_61.entry.js +0 -15060
  616. package/dist/esm/helpers-bf0e23d6.js +0 -403
  617. package/dist/esm/httpService-7986aeed.js +0 -685
  618. package/dist/esm/icons-1c794c74.js +0 -18
  619. package/dist/esm/index-21661af2.js +0 -463
  620. package/dist/esm/index-2b84cad2.js +0 -223
  621. package/dist/esm/index-4044fde9.js +0 -25
  622. package/dist/esm/index-45fec1e7.js +0 -184
  623. package/dist/esm/index-5e8971ae.js +0 -128
  624. package/dist/esm/index-c04b9ed5.js +0 -1888
  625. package/dist/esm/index-cded2d87.js +0 -312
  626. package/dist/esm/index-dad75b83.js +0 -34
  627. package/dist/esm/index.es-e0c0f891.js +0 -10580
  628. package/dist/esm/index.js +0 -12
  629. package/dist/esm/input-shims-671d8d9f.js +0 -416
  630. package/dist/esm/ion-accordion-group.entry.js +0 -201
  631. package/dist/esm/ion-accordion.entry.js +0 -332
  632. package/dist/esm/ion-action-sheet_7.entry.js +0 -2925
  633. package/dist/esm/ion-app.entry.js +0 -75
  634. package/dist/esm/ion-back-button.entry.js +0 -90
  635. package/dist/esm/ion-backdrop.entry.js +0 -63
  636. package/dist/esm/ion-badge.entry.js +0 -25
  637. package/dist/esm/ion-breadcrumb.entry.js +0 -91
  638. package/dist/esm/ion-breadcrumbs.entry.js +0 -129
  639. package/dist/esm/ion-buttons_3.entry.js +0 -147
  640. package/dist/esm/ion-card-header.entry.js +0 -33
  641. package/dist/esm/ion-card-subtitle.entry.js +0 -26
  642. package/dist/esm/ion-card-title.entry.js +0 -26
  643. package/dist/esm/ion-chip.entry.js +0 -36
  644. package/dist/esm/ion-content_2.entry.js +0 -654
  645. package/dist/esm/ion-datetime-button.entry.js +0 -308
  646. package/dist/esm/ion-datetime.entry.js +0 -1619
  647. package/dist/esm/ion-fab-button.entry.js +0 -104
  648. package/dist/esm/ion-fab-list.entry.js +0 -41
  649. package/dist/esm/ion-fab.entry.js +0 -72
  650. package/dist/esm/ion-footer.entry.js +0 -116
  651. package/dist/esm/ion-img.entry.js +0 -97
  652. package/dist/esm/ion-infinite-scroll-content.entry.js +0 -33
  653. package/dist/esm/ion-infinite-scroll.entry.js +0 -202
  654. package/dist/esm/ion-item-divider.entry.js +0 -36
  655. package/dist/esm/ion-item-group.entry.js +0 -27
  656. package/dist/esm/ion-item-option.entry.js +0 -56
  657. package/dist/esm/ion-item-options.entry.js +0 -43
  658. package/dist/esm/ion-item-sliding.entry.js +0 -394
  659. package/dist/esm/ion-loading.entry.js +0 -211
  660. package/dist/esm/ion-menu-button.entry.js +0 -72
  661. package/dist/esm/ion-menu-toggle.entry.js +0 -43
  662. package/dist/esm/ion-menu.entry.js +0 -571
  663. package/dist/esm/ion-modal.entry.js +0 -1707
  664. package/dist/esm/ion-nav-link.entry.js +0 -43
  665. package/dist/esm/ion-nav.entry.js +0 -868
  666. package/dist/esm/ion-picker-column-internal_2.entry.js +0 -803
  667. package/dist/esm/ion-picker-column.entry.js +0 -327
  668. package/dist/esm/ion-picker.entry.js +0 -217
  669. package/dist/esm/ion-progress-bar.entry.js +0 -70
  670. package/dist/esm/ion-refresher-content.entry.js +0 -31
  671. package/dist/esm/ion-refresher.entry.js +0 -798
  672. package/dist/esm/ion-reorder-group.entry.js +0 -277
  673. package/dist/esm/ion-reorder.entry.js +0 -34
  674. package/dist/esm/ion-route-redirect.entry.js +0 -20
  675. package/dist/esm/ion-route.entry.js +0 -45
  676. package/dist/esm/ion-router-link.entry.js +0 -34
  677. package/dist/esm/ion-router-outlet.entry.js +0 -196
  678. package/dist/esm/ion-router.entry.js +0 -827
  679. package/dist/esm/ion-searchbar.entry.js +0 -366
  680. package/dist/esm/ion-segment-button.entry.js +0 -98
  681. package/dist/esm/ion-segment.entry.js +0 -413
  682. package/dist/esm/ion-skeleton-text.entry.js +0 -29
  683. package/dist/esm/ion-slide.entry.js +0 -21
  684. package/dist/esm/ion-slides.entry.js +0 -387
  685. package/dist/esm/ion-split-pane.entry.js +0 -150
  686. package/dist/esm/ion-tab-bar.entry.js +0 -71
  687. package/dist/esm/ion-tab-button.entry.js +0 -99
  688. package/dist/esm/ion-tab.entry.js +0 -55
  689. package/dist/esm/ion-tabs.entry.js +0 -150
  690. package/dist/esm/ion-thumbnail.entry.js +0 -16
  691. package/dist/esm/ion-toast.entry.js +0 -268
  692. package/dist/esm/ion-toggle.entry.js +0 -173
  693. package/dist/esm/ion-virtual-scroll.entry.js +0 -551
  694. package/dist/esm/ionic-global-4903e23e.js +0 -226
  695. package/dist/esm/ios.transition-131d64fe.js +0 -479
  696. package/dist/esm/loader.js +0 -20
  697. package/dist/esm/md.transition-f6126011.js +0 -55
  698. package/dist/esm/media.service-6e90bc41.js +0 -37
  699. package/dist/esm/menu-toggle-util-bace8ae6.js +0 -12
  700. package/dist/esm/overlays-4233a39d.js +0 -491
  701. package/dist/esm/parse-1ae3a9bb.js +0 -1196
  702. package/dist/esm/polyfills/core-js.js +0 -11
  703. package/dist/esm/polyfills/css-shim.js +0 -1
  704. package/dist/esm/polyfills/dom.js +0 -79
  705. package/dist/esm/polyfills/es5-html-element.js +0 -1
  706. package/dist/esm/polyfills/index.js +0 -34
  707. package/dist/esm/polyfills/system.js +0 -6
  708. package/dist/esm/purify-85bfcc69.js +0 -1466
  709. package/dist/esm/signalR.service-c33fba50.js +0 -2982
  710. package/dist/esm/sparkle-animation-player.entry.js +0 -511
  711. package/dist/esm/sparkle-assignment.entry.js +0 -106
  712. package/dist/esm/sparkle-character-intro.entry.js +0 -22
  713. package/dist/esm/sparkle-code.entry.js +0 -39
  714. package/dist/esm/sparkle-compass-post.entry.js +0 -129
  715. package/dist/esm/sparkle-compass.entry.js +0 -122
  716. package/dist/esm/sparkle-core.js +0 -20
  717. package/dist/esm/sparkle-discussion-questions_2.entry.js +0 -276
  718. package/dist/esm/sparkle-discussion.entry.js +0 -38
  719. package/dist/esm/sparkle-emoji.entry.js +0 -76
  720. package/dist/esm/sparkle-facilitator-notes-form.entry.js +0 -117
  721. package/dist/esm/sparkle-feed-post.entry.js +0 -112
  722. package/dist/esm/sparkle-feedback.entry.js +0 -97
  723. package/dist/esm/sparkle-file-upload.entry.js +0 -49
  724. package/dist/esm/sparkle-goal-form.entry.js +0 -175
  725. package/dist/esm/sparkle-gww-comment-list.entry.js +0 -22
  726. package/dist/esm/sparkle-gww-graph.entry.js +0 -15
  727. package/dist/esm/sparkle-input.entry.js +0 -52
  728. package/dist/esm/sparkle-intro.entry.js +0 -22
  729. package/dist/esm/sparkle-lower-content-nav.entry.js +0 -18
  730. package/dist/esm/sparkle-menu-collapsible.entry.js +0 -42
  731. package/dist/esm/sparkle-modal-image.entry.js +0 -30
  732. package/dist/esm/sparkle-notfound-page.entry.js +0 -21
  733. package/dist/esm/sparkle-overlay.entry.js +0 -88
  734. package/dist/esm/sparkle-poll.entry.js +0 -15
  735. package/dist/esm/sparkle-quiz-container.entry.js +0 -43
  736. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  737. package/dist/esm/sparkle-quiz-old.entry.js +0 -116
  738. package/dist/esm/sparkle-quiz.entry.js +0 -99
  739. package/dist/esm/sparkle-select.entry.js +0 -57
  740. package/dist/esm/sparkle-sidebar.entry.js +0 -39
  741. package/dist/esm/sparkle-tab.entry.js +0 -22
  742. package/dist/esm/sparkle-table-of-contents.entry.js +0 -67
  743. package/dist/esm/sparkle-tabs.entry.js +0 -62
  744. package/dist/esm/sparkle-youtube.entry.js +0 -35
  745. package/dist/esm/status-tap-dde52787.js +0 -40
  746. package/dist/esm/stencil-async-content.entry.js +0 -28
  747. package/dist/esm/stencil-route-title.entry.js +0 -28
  748. package/dist/esm/stencil-router-prompt.entry.js +0 -55
  749. package/dist/esm/student.service-08af124f.js +0 -75
  750. package/dist/esm/swipe-back-7847a0c1.js +0 -74
  751. package/dist/esm/swiper.bundle-b6a959de.js +0 -6418
  752. package/dist/esm/token.service-71a5d33f.js +0 -94
  753. package/dist/esm/util-57cc8006.js +0 -2451
  754. package/dist/index.cjs.js +0 -1
  755. package/dist/index.js +0 -1
  756. package/dist/loader/cdn.js +0 -3
  757. package/dist/loader/index.cjs.js +0 -3
  758. package/dist/loader/index.d.ts +0 -12
  759. package/dist/loader/index.es2017.js +0 -3
  760. package/dist/loader/index.js +0 -4
  761. package/dist/loader/package.json +0 -10
  762. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +0 -75
  763. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +0 -72
  764. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +0 -25
  765. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +0 -59
  766. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +0 -357
  767. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +0 -290
  768. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +0 -494
  769. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +0 -502
  770. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +0 -17
  771. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +0 -22
  772. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +0 -22
  773. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +0 -281
  774. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +0 -309
  775. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +0 -26
  776. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +0 -26
  777. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +0 -58
  778. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +0 -62
  779. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -234
  780. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -237
  781. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -38
  782. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -37
  783. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -439
  784. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +0 -428
  785. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +0 -128
  786. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +0 -151
  787. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +0 -101
  788. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +0 -95
  789. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +0 -61
  790. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +0 -63
  791. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +0 -37
  792. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +0 -35
  793. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -28
  794. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -26
  795. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +0 -27
  796. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +0 -27
  797. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +0 -169
  798. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +0 -172
  799. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +0 -200
  800. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +0 -200
  801. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +0 -108
  802. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +0 -237
  803. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +0 -648
  804. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +0 -637
  805. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +0 -60
  806. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +0 -61
  807. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +0 -338
  808. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +0 -307
  809. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +0 -116
  810. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +0 -37
  811. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +0 -37
  812. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +0 -151
  813. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +0 -108
  814. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +0 -40
  815. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +0 -12
  816. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +0 -8
  817. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -54
  818. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -54
  819. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +0 -185
  820. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +0 -185
  821. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +0 -669
  822. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +0 -928
  823. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +0 -204
  824. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +0 -297
  825. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +0 -3
  826. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +0 -3
  827. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +0 -186
  828. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +0 -180
  829. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +0 -88
  830. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +0 -85
  831. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +0 -42
  832. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +0 -156
  833. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +0 -250
  834. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +0 -91
  835. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +0 -114
  836. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +0 -118
  837. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +0 -94
  838. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +0 -109
  839. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +0 -100
  840. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +0 -127
  841. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +0 -123
  842. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +0 -175
  843. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +0 -178
  844. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +0 -3
  845. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +0 -250
  846. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +0 -177
  847. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +0 -10
  848. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +0 -16
  849. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +0 -17
  850. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +0 -217
  851. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +0 -204
  852. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +0 -122
  853. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +0 -123
  854. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -82
  855. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -85
  856. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +0 -126
  857. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +0 -122
  858. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +0 -201
  859. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +0 -132
  860. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +0 -206
  861. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +0 -206
  862. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +0 -177
  863. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +0 -178
  864. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +0 -275
  865. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +0 -320
  866. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +0 -189
  867. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +0 -210
  868. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +0 -15
  869. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +0 -15
  870. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +0 -33
  871. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +0 -58
  872. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +0 -29
  873. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +0 -10
  874. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +0 -4
  875. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +0 -348
  876. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +0 -279
  877. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +0 -65
  878. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +0 -36
  879. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +0 -446
  880. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +0 -424
  881. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +0 -145
  882. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +0 -177
  883. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +0 -3
  884. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +0 -14
  885. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +0 -37
  886. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +0 -53
  887. package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +0 -31
  888. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +0 -764
  889. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +0 -764
  890. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +0 -167
  891. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +0 -108
  892. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +0 -108
  893. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +0 -4
  894. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +0 -97
  895. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +0 -82
  896. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +0 -308
  897. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +0 -331
  898. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +0 -19
  899. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +0 -3
  900. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +0 -175
  901. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +0 -179
  902. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +0 -21
  903. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +0 -122
  904. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +0 -55
  905. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +0 -262
  906. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +0 -295
  907. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +0 -286
  908. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +0 -261
  909. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +0 -175
  910. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +0 -168
  911. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +0 -21
  912. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
  913. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
  914. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
  915. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
  916. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
  917. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
  918. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
  919. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
  920. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
  921. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
  922. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
  923. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
  924. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
  925. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -25
  926. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -93
  927. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
  928. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
  929. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
  930. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
  931. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
  932. package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  933. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -101
  934. package/dist/sparkle-core/p-00d10dc9.js +0 -4
  935. package/dist/sparkle-core/p-0147266a.js +0 -1
  936. package/dist/sparkle-core/p-04c7b276.entry.js +0 -1
  937. package/dist/sparkle-core/p-05c032dd.js +0 -4
  938. package/dist/sparkle-core/p-06642405.entry.js +0 -1
  939. package/dist/sparkle-core/p-0664370b.entry.js +0 -1
  940. package/dist/sparkle-core/p-06c7d0f2.entry.js +0 -1
  941. package/dist/sparkle-core/p-076f0239.js +0 -4
  942. package/dist/sparkle-core/p-077c732b.js +0 -4
  943. package/dist/sparkle-core/p-08420531.entry.js +0 -1
  944. package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
  945. package/dist/sparkle-core/p-0ad5c123.entry.js +0 -1
  946. package/dist/sparkle-core/p-0afa3a4d.entry.js +0 -1
  947. package/dist/sparkle-core/p-0c3f3ea6.entry.js +0 -1
  948. package/dist/sparkle-core/p-0e4de1d0.js +0 -4
  949. package/dist/sparkle-core/p-0e8e539f.entry.js +0 -1
  950. package/dist/sparkle-core/p-11356b03.entry.js +0 -1
  951. package/dist/sparkle-core/p-11a6c175.entry.js +0 -1
  952. package/dist/sparkle-core/p-12dd96d7.js +0 -4
  953. package/dist/sparkle-core/p-13ec39db.entry.js +0 -1
  954. package/dist/sparkle-core/p-1adc98f6.js +0 -1
  955. package/dist/sparkle-core/p-1b1ba156.entry.js +0 -1
  956. package/dist/sparkle-core/p-1e125ca5.entry.js +0 -1
  957. package/dist/sparkle-core/p-1e4782af.entry.js +0 -1
  958. package/dist/sparkle-core/p-2033cd86.js +0 -7
  959. package/dist/sparkle-core/p-214d1229.entry.js +0 -1
  960. package/dist/sparkle-core/p-23aca7ca.js +0 -4
  961. package/dist/sparkle-core/p-24cb9a33.entry.js +0 -1
  962. package/dist/sparkle-core/p-27fbabc3.entry.js +0 -1
  963. package/dist/sparkle-core/p-2ba70507.entry.js +0 -1
  964. package/dist/sparkle-core/p-2c1ca854.entry.js +0 -1
  965. package/dist/sparkle-core/p-2d9659e2.entry.js +0 -1
  966. package/dist/sparkle-core/p-2f569553.js +0 -1
  967. package/dist/sparkle-core/p-30b810d1.entry.js +0 -4
  968. package/dist/sparkle-core/p-32f4e565.entry.js +0 -1
  969. package/dist/sparkle-core/p-352677e6.entry.js +0 -1
  970. package/dist/sparkle-core/p-38b7cf68.entry.js +0 -1
  971. package/dist/sparkle-core/p-38c842d5.entry.js +0 -1
  972. package/dist/sparkle-core/p-3963e02b.entry.js +0 -1
  973. package/dist/sparkle-core/p-39712c56.entry.js +0 -4
  974. package/dist/sparkle-core/p-39a31e43.js +0 -1
  975. package/dist/sparkle-core/p-3daf2915.entry.js +0 -352
  976. package/dist/sparkle-core/p-3de0e00c.js +0 -4
  977. package/dist/sparkle-core/p-4053ecdb.entry.js +0 -1
  978. package/dist/sparkle-core/p-408176ba.js +0 -1
  979. package/dist/sparkle-core/p-42ed7d5f.entry.js +0 -1
  980. package/dist/sparkle-core/p-48f72e63.js +0 -4
  981. package/dist/sparkle-core/p-4b4a8703.js +0 -1
  982. package/dist/sparkle-core/p-4c6a7e52.js +0 -1
  983. package/dist/sparkle-core/p-4d1cfcbe.entry.js +0 -1
  984. package/dist/sparkle-core/p-4d4077ea.js +0 -4
  985. package/dist/sparkle-core/p-4fba3e4c.js +0 -1
  986. package/dist/sparkle-core/p-506221fe.js +0 -4
  987. package/dist/sparkle-core/p-5096739e.entry.js +0 -1
  988. package/dist/sparkle-core/p-5322c920.entry.js +0 -1
  989. package/dist/sparkle-core/p-5893bbe5.entry.js +0 -1
  990. package/dist/sparkle-core/p-594a6982.entry.js +0 -1
  991. package/dist/sparkle-core/p-5c435d5a.entry.js +0 -1
  992. package/dist/sparkle-core/p-5cad23f1.js +0 -3
  993. package/dist/sparkle-core/p-5d409601.js +0 -1
  994. package/dist/sparkle-core/p-601397df.entry.js +0 -1
  995. package/dist/sparkle-core/p-604a7987.js +0 -4
  996. package/dist/sparkle-core/p-616941c6.entry.js +0 -1
  997. package/dist/sparkle-core/p-6316d124.entry.js +0 -1
  998. package/dist/sparkle-core/p-63f71ada.entry.js +0 -1
  999. package/dist/sparkle-core/p-69487d90.entry.js +0 -1
  1000. package/dist/sparkle-core/p-6bde0192.entry.js +0 -7
  1001. package/dist/sparkle-core/p-6d2f4093.entry.js +0 -7
  1002. package/dist/sparkle-core/p-6ffd2420.entry.js +0 -1
  1003. package/dist/sparkle-core/p-72053ae0.entry.js +0 -1
  1004. package/dist/sparkle-core/p-73721c84.js +0 -4
  1005. package/dist/sparkle-core/p-74864276.entry.js +0 -1
  1006. package/dist/sparkle-core/p-7d8427eb.js +0 -4
  1007. package/dist/sparkle-core/p-7dae0f0e.js +0 -1
  1008. package/dist/sparkle-core/p-7dbfc316.js +0 -1
  1009. package/dist/sparkle-core/p-7e7ce516.js +0 -4
  1010. package/dist/sparkle-core/p-81714d94.entry.js +0 -1
  1011. package/dist/sparkle-core/p-8492a765.entry.js +0 -1
  1012. package/dist/sparkle-core/p-859563db.entry.js +0 -1
  1013. package/dist/sparkle-core/p-85d4cd5c.entry.js +0 -1
  1014. package/dist/sparkle-core/p-865f36a8.entry.js +0 -1
  1015. package/dist/sparkle-core/p-86ed13f0.js +0 -5
  1016. package/dist/sparkle-core/p-871106e0.js +0 -4
  1017. package/dist/sparkle-core/p-894ff7e6.entry.js +0 -1
  1018. package/dist/sparkle-core/p-8a41b502.entry.js +0 -1
  1019. package/dist/sparkle-core/p-8b56f734.js +0 -1
  1020. package/dist/sparkle-core/p-8c74cbb6.entry.js +0 -1
  1021. package/dist/sparkle-core/p-924b2917.js +0 -4
  1022. package/dist/sparkle-core/p-9289cdbc.entry.js +0 -1
  1023. package/dist/sparkle-core/p-957715c5.entry.js +0 -1
  1024. package/dist/sparkle-core/p-973fe404.entry.js +0 -22
  1025. package/dist/sparkle-core/p-975b99ee.entry.js +0 -1
  1026. package/dist/sparkle-core/p-98daeddb.entry.js +0 -1
  1027. package/dist/sparkle-core/p-99ee9919.js +0 -1
  1028. package/dist/sparkle-core/p-9abbd715.entry.js +0 -1
  1029. package/dist/sparkle-core/p-9d894ed4.js +0 -4
  1030. package/dist/sparkle-core/p-9e309b3e.entry.js +0 -1
  1031. package/dist/sparkle-core/p-9e7fee8f.entry.js +0 -1
  1032. package/dist/sparkle-core/p-9ebf0537.entry.js +0 -1
  1033. package/dist/sparkle-core/p-a208ab2d.js +0 -4
  1034. package/dist/sparkle-core/p-a2638250.entry.js +0 -1
  1035. package/dist/sparkle-core/p-a2ebcf0a.entry.js +0 -1
  1036. package/dist/sparkle-core/p-a98d7ebe.entry.js +0 -1
  1037. package/dist/sparkle-core/p-add30d46.js +0 -4
  1038. package/dist/sparkle-core/p-b0603d19.js +0 -16
  1039. package/dist/sparkle-core/p-b06e2bef.js +0 -1
  1040. package/dist/sparkle-core/p-b3f375fb.entry.js +0 -1
  1041. package/dist/sparkle-core/p-b5f3e1bf.entry.js +0 -1
  1042. package/dist/sparkle-core/p-b6fec622.entry.js +0 -1
  1043. package/dist/sparkle-core/p-b8d71ff4.js +0 -1
  1044. package/dist/sparkle-core/p-b96f3c84.entry.js +0 -7
  1045. package/dist/sparkle-core/p-bd80ff43.js +0 -4
  1046. package/dist/sparkle-core/p-bd90903e.js +0 -1
  1047. package/dist/sparkle-core/p-be64105c.entry.js +0 -1
  1048. package/dist/sparkle-core/p-c0533c23.entry.js +0 -1
  1049. package/dist/sparkle-core/p-c2990b24.entry.js +0 -1
  1050. package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
  1051. package/dist/sparkle-core/p-c60b29bd.entry.js +0 -4
  1052. package/dist/sparkle-core/p-c64a34cd.entry.js +0 -1
  1053. package/dist/sparkle-core/p-c9f753a4.js +0 -1
  1054. package/dist/sparkle-core/p-cabe9139.js +0 -1
  1055. package/dist/sparkle-core/p-cabfbf22.entry.js +0 -1
  1056. package/dist/sparkle-core/p-cc518c36.entry.js +0 -1
  1057. package/dist/sparkle-core/p-cffd4817.entry.js +0 -1
  1058. package/dist/sparkle-core/p-d0adf726.entry.js +0 -1
  1059. package/dist/sparkle-core/p-d20e4fcf.entry.js +0 -1
  1060. package/dist/sparkle-core/p-d24e53ab.entry.js +0 -1
  1061. package/dist/sparkle-core/p-d288e6c1.entry.js +0 -1
  1062. package/dist/sparkle-core/p-d601810e.entry.js +0 -1
  1063. package/dist/sparkle-core/p-d68092b7.js +0 -4
  1064. package/dist/sparkle-core/p-da391f3f.js +0 -1
  1065. package/dist/sparkle-core/p-de4deb61.entry.js +0 -1
  1066. package/dist/sparkle-core/p-e0cad1bb.js +0 -1
  1067. package/dist/sparkle-core/p-e249aebf.entry.js +0 -1
  1068. package/dist/sparkle-core/p-e3e36ce9.entry.js +0 -1
  1069. package/dist/sparkle-core/p-e421d638.entry.js +0 -1
  1070. package/dist/sparkle-core/p-e686d8b5.entry.js +0 -4
  1071. package/dist/sparkle-core/p-e8988989.entry.js +0 -1
  1072. package/dist/sparkle-core/p-e9431eeb.js +0 -7
  1073. package/dist/sparkle-core/p-ea962e1b.entry.js +0 -1
  1074. package/dist/sparkle-core/p-eaa8bbee.js +0 -4
  1075. package/dist/sparkle-core/p-ebd4354b.entry.js +0 -1
  1076. package/dist/sparkle-core/p-ee1e0eb4.js +0 -2
  1077. package/dist/sparkle-core/p-ef4edc48.entry.js +0 -4
  1078. package/dist/sparkle-core/p-f196c124.entry.js +0 -7
  1079. package/dist/sparkle-core/p-f3cba72a.js +0 -4
  1080. package/dist/sparkle-core/p-f47fe1fe.entry.js +0 -1
  1081. package/dist/sparkle-core/p-f714f77a.entry.js +0 -1
  1082. package/dist/sparkle-core/p-f891c79a.entry.js +0 -1
  1083. package/dist/sparkle-core/p-fb0ca75e.entry.js +0 -5
  1084. package/dist/sparkle-core/p-fb757951.entry.js +0 -1
  1085. package/dist/sparkle-core/p-fd8d0738.entry.js +0 -4
  1086. package/dist/sparkle-core/p-fda95b6e.entry.js +0 -1
  1087. package/dist/sparkle-core/p-fe6dc976.entry.js +0 -1
  1088. package/dist/sparkle-core/p-ff080f82.entry.js +0 -10
  1089. package/dist/sparkle-core/p-ff7a8a71.js +0 -4
  1090. /package/dist/{esm → sparkle-core}/cubic-bezier-4c0db14f.js +0 -0
  1091. /package/dist/{esm → sparkle-core}/focus-visible-4e9a0764.js +0 -0
  1092. /package/dist/{esm → sparkle-core}/hardware-back-button-fa04d6e9.js +0 -0
  1093. /package/dist/{esm → sparkle-core}/index-be6112f8.js +0 -0
  1094. /package/dist/{esm → sparkle-core}/keyboard-7e8329b3.js +0 -0
  1095. /package/dist/{esm → sparkle-core}/localstorage.service-4bf408c8.js +0 -0
  1096. /package/dist/{esm → sparkle-core}/spinner-configs-a37e628a.js +0 -0
  1097. /package/dist/{esm → sparkle-core}/theme-7ef00c83.js +0 -0
@@ -1,1623 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-51e8292e.js');
6
- const index$2 = require('./index-975586fd.js');
7
- const ionicGlobal = require('./ionic-global-2cde9d3a.js');
8
- const focusVisible = require('./focus-visible-b0b07ba6.js');
9
- const helpers = require('./helpers-c2496722.js');
10
- const index$1 = require('./index-e56e09b8.js');
11
- const dir = require('./dir-5af5259a.js');
12
- const theme = require('./theme-b0b295c1.js');
13
- const parse = require('./parse-d0071120.js');
14
-
15
- /*!
16
- * (C) Ionic http://ionicframework.com - MIT License
17
- */
18
- const isYearDisabled = (refYear, minParts, maxParts) => {
19
- if (minParts && minParts.year > refYear) {
20
- return true;
21
- }
22
- if (maxParts && maxParts.year < refYear) {
23
- return true;
24
- }
25
- return false;
26
- };
27
- /**
28
- * Returns true if a given day should
29
- * not be interactive according to its value,
30
- * or the max/min dates.
31
- */
32
- const isDayDisabled = (refParts, minParts, maxParts, dayValues) => {
33
- /**
34
- * If this is a filler date (i.e. padding)
35
- * then the date is disabled.
36
- */
37
- if (refParts.day === null) {
38
- return true;
39
- }
40
- /**
41
- * If user passed in a list of acceptable day values
42
- * check to make sure that the date we are looking
43
- * at is in this array.
44
- */
45
- if (dayValues !== undefined && !dayValues.includes(refParts.day)) {
46
- return true;
47
- }
48
- /**
49
- * Given a min date, perform the following
50
- * checks. If any of them are true, then the
51
- * day should be disabled:
52
- * 1. Is the current year < the min allowed year?
53
- * 2. Is the current year === min allowed year,
54
- * but the current month < the min allowed month?
55
- * 3. Is the current year === min allowed year, the
56
- * current month === min allow month, but the current
57
- * day < the min allowed day?
58
- */
59
- if (minParts && parse.isBefore(refParts, minParts)) {
60
- return true;
61
- }
62
- /**
63
- * Given a max date, perform the following
64
- * checks. If any of them are true, then the
65
- * day should be disabled:
66
- * 1. Is the current year > the max allowed year?
67
- * 2. Is the current year === max allowed year,
68
- * but the current month > the max allowed month?
69
- * 3. Is the current year === max allowed year, the
70
- * current month === max allow month, but the current
71
- * day > the max allowed day?
72
- */
73
- if (maxParts && parse.isAfter(refParts, maxParts)) {
74
- return true;
75
- }
76
- /**
77
- * If none of these checks
78
- * passed then the date should
79
- * be interactive.
80
- */
81
- return false;
82
- };
83
- /**
84
- * Given a locale, a date, the selected date(s), and today's date,
85
- * generate the state for a given calendar day button.
86
- */
87
- const getCalendarDayState = (locale, refParts, activeParts, todayParts, minParts, maxParts, dayValues) => {
88
- /**
89
- * activeParts signals what day(s) are currently selected in the datetime.
90
- * If multiple="true", this will be an array, but the logic in this util
91
- * is the same whether we have one selected day or many because we're only
92
- * calculating the state for one button. So, we treat a single activeParts value
93
- * the same as an array of length one.
94
- */
95
- const activePartsArray = Array.isArray(activeParts) ? activeParts : [activeParts];
96
- /**
97
- * The day button is active if it is selected, or in other words, if refParts
98
- * matches at least one selected date.
99
- */
100
- const isActive = activePartsArray.find((parts) => parse.isSameDay(refParts, parts)) !== undefined;
101
- const isToday = parse.isSameDay(refParts, todayParts);
102
- const disabled = isDayDisabled(refParts, minParts, maxParts, dayValues);
103
- /**
104
- * Note that we always return one object regardless of whether activeParts
105
- * was an array, since we pare down to one value for isActive.
106
- */
107
- return {
108
- disabled,
109
- isActive,
110
- isToday,
111
- ariaSelected: isActive ? 'true' : null,
112
- ariaLabel: parse.generateDayAriaLabel(locale, isToday, refParts),
113
- };
114
- };
115
- /**
116
- * Returns `true` if the month is disabled given the
117
- * current date value and min/max date constraints.
118
- */
119
- const isMonthDisabled = (refParts, { minParts, maxParts, }) => {
120
- // If the year is disabled then the month is disabled.
121
- if (isYearDisabled(refParts.year, minParts, maxParts)) {
122
- return true;
123
- }
124
- // If the date value is before the min date, then the month is disabled.
125
- // If the date value is after the max date, then the month is disabled.
126
- if ((minParts && parse.isBefore(refParts, minParts)) || (maxParts && parse.isAfter(refParts, maxParts))) {
127
- return true;
128
- }
129
- return false;
130
- };
131
- /**
132
- * Given a working date, an optional minimum date range,
133
- * and an optional maximum date range; determine if the
134
- * previous navigation button is disabled.
135
- */
136
- const isPrevMonthDisabled = (refParts, minParts, maxParts) => {
137
- const prevMonth = Object.assign(Object.assign({}, parse.getPreviousMonth(refParts)), { day: null });
138
- return isMonthDisabled(prevMonth, {
139
- minParts,
140
- maxParts,
141
- });
142
- };
143
- /**
144
- * Given a working date and a maximum date range,
145
- * determine if the next navigation button is disabled.
146
- */
147
- const isNextMonthDisabled = (refParts, maxParts) => {
148
- const nextMonth = Object.assign(Object.assign({}, parse.getNextMonth(refParts)), { day: null });
149
- return isMonthDisabled(nextMonth, {
150
- maxParts,
151
- });
152
- };
153
-
154
- const datetimeIosCss = ":host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:flex;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr);height:100%}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;appearance:none;z-index:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}:host .calendar-day:after{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;top:50%;left:50%;width:32px;height:32px;transform:translate(-50%, -50%);content:\" \";z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day:after{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-header .datetime-title{color:var(--title-color);font-size:14px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:16px;font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:12px;font-weight:600;line-height:24px;text-transform:uppercase}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;height:calc(100% - 16px)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-day{font-size:20px}:host .calendar-day:after{opacity:0.2}:host .calendar-day:focus:after{background:var(--ion-color-base)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-active:after{background:var(--ion-color-base)}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-today.calendar-day-active:after{background:var(--ion-color-base);opacity:1}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:16px;font-size:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:flex;align-items:center;justify-content:space-between}:host .datetime-action-buttons{width:100%}";
155
-
156
- const datetimeMdCss = ":host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:flex;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr);height:100%}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;appearance:none;z-index:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}:host .calendar-day:after{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;top:50%;left:50%;width:32px;height:32px;transform:translate(-50%, -50%);content:\" \";z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day:after{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host .datetime-header .datetime-title{font-size:12px;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:34px}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{padding-left:10px;padding-right:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:14px;line-height:36px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:10px;padding-right:10px;padding-top:3px;padding-bottom:0px;grid-template-rows:repeat(6, 1fr)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-day{padding-left:0px;padding-right:0;padding-top:13px;padding-bottom:13px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-day:focus:after{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-today:after{border:1px solid var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-active:after{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;justify-content:flex-end}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .datetime-view-buttons ion-button{color:var(--ion-color-step-800, #333333)}";
157
-
158
- const Datetime = class {
159
- constructor(hostRef) {
160
- index.registerInstance(this, hostRef);
161
- this.ionCancel = index.createEvent(this, "ionCancel", 7);
162
- this.ionChange = index.createEvent(this, "ionChange", 7);
163
- this.ionFocus = index.createEvent(this, "ionFocus", 7);
164
- this.ionBlur = index.createEvent(this, "ionBlur", 7);
165
- this.ionStyle = index.createEvent(this, "ionStyle", 7);
166
- this.ionRender = index.createEvent(this, "ionRender", 7);
167
- this.inputId = `ion-dt-${datetimeIds++}`;
168
- /**
169
- * Whether to highlight the active day with a solid circle (as opposed
170
- * to the outline circle around today). If you don't specify an initial
171
- * value for the datetime, it doesn't automatically init to a default to
172
- * avoid unwanted change events firing. If the solid circle were still
173
- * shown then, it would look like a date had already been selected, which
174
- * is misleading UX.
175
- */
176
- this.highlightActiveParts = false;
177
- this.todayParts = parse.parseDate(parse.getToday());
178
- this.prevPresentation = null;
179
- this.showMonthAndYear = false;
180
- this.activeParts = {
181
- month: 5,
182
- day: 28,
183
- year: 2021,
184
- hour: 13,
185
- minute: 52,
186
- ampm: 'pm',
187
- };
188
- this.workingParts = {
189
- month: 5,
190
- day: 28,
191
- year: 2021,
192
- hour: 13,
193
- minute: 52,
194
- ampm: 'pm',
195
- };
196
- this.isPresented = false;
197
- this.isTimePopoverOpen = false;
198
- /**
199
- * The color to use from your application's color palette.
200
- * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
201
- * For more information on colors, see [theming](/docs/theming/basics).
202
- */
203
- this.color = 'primary';
204
- /**
205
- * The name of the control, which is submitted with the form data.
206
- */
207
- this.name = this.inputId;
208
- /**
209
- * If `true`, the user cannot interact with the datetime.
210
- */
211
- this.disabled = false;
212
- /**
213
- * If `true`, the datetime appears normal but is not interactive.
214
- */
215
- this.readonly = false;
216
- /**
217
- * Which values you want to select. `'date'` will show
218
- * a calendar picker to select the month, day, and year. `'time'`
219
- * will show a time picker to select the hour, minute, and (optionally)
220
- * AM/PM. `'date-time'` will show the date picker first and time picker second.
221
- * `'time-date'` will show the time picker first and date picker second.
222
- */
223
- this.presentation = 'date-time';
224
- /**
225
- * The text to display on the picker's cancel button.
226
- */
227
- this.cancelText = 'Cancel';
228
- /**
229
- * The text to display on the picker's "Done" button.
230
- */
231
- this.doneText = 'Done';
232
- /**
233
- * The text to display on the picker's "Clear" button.
234
- */
235
- this.clearText = 'Clear';
236
- /**
237
- * The locale to use for `ion-datetime`. This
238
- * impacts month and day name formatting.
239
- * The `'default'` value refers to the default
240
- * locale set by your device.
241
- */
242
- this.locale = 'default';
243
- /**
244
- * The first day of the week to use for `ion-datetime`. The
245
- * default value is `0` and represents Sunday.
246
- */
247
- this.firstDayOfWeek = 0;
248
- /**
249
- * If `true`, multiple dates can be selected at once. Only
250
- * applies to `presentation="date"` and `preferWheel="false"`.
251
- */
252
- this.multiple = false;
253
- /**
254
- * If `true`, a header will be shown above the calendar
255
- * picker. On `ios` mode this will include the
256
- * slotted title, and on `md` mode this will include
257
- * the slotted title and the selected date.
258
- */
259
- this.showDefaultTitle = false;
260
- /**
261
- * If `true`, the default "Cancel" and "OK" buttons
262
- * will be rendered at the bottom of the `ion-datetime`
263
- * component. Developers can also use the `button` slot
264
- * if they want to customize these buttons. If custom
265
- * buttons are set in the `button` slot then the
266
- * default buttons will not be rendered.
267
- */
268
- this.showDefaultButtons = false;
269
- /**
270
- * If `true`, a "Clear" button will be rendered alongside
271
- * the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime`
272
- * component. Developers can also use the `button` slot
273
- * if they want to customize these buttons. If custom
274
- * buttons are set in the `button` slot then the
275
- * default buttons will not be rendered.
276
- */
277
- this.showClearButton = false;
278
- /**
279
- * If `true`, the default "Time" label will be rendered
280
- * for the time selector of the `ion-datetime` component.
281
- * Developers can also use the `time-label` slot
282
- * if they want to customize this label. If a custom
283
- * label is set in the `time-label` slot then the
284
- * default label will not be rendered.
285
- */
286
- this.showDefaultTimeLabel = true;
287
- /**
288
- * If `cover`, the `ion-datetime` will expand to cover the full width of its container.
289
- * If `fixed`, the `ion-datetime` will have a fixed width.
290
- */
291
- this.size = 'fixed';
292
- /**
293
- * If `true`, a wheel picker will be rendered instead of a calendar grid
294
- * where possible. If `false`, a calendar grid will be rendered instead of
295
- * a wheel picker where possible.
296
- *
297
- * A wheel picker can be rendered instead of a grid when `presentation` is
298
- * one of the following values: `'date'`, `'date-time'`, or `'time-date'`.
299
- *
300
- * A wheel picker will always be rendered regardless of
301
- * the `preferWheel` value when `presentation` is one of the following values:
302
- * `'time'`, `'month'`, `'month-year'`, or `'year'`.
303
- */
304
- this.preferWheel = false;
305
- this.closeParentOverlay = () => {
306
- const popoverOrModal = this.el.closest('ion-modal, ion-popover');
307
- if (popoverOrModal) {
308
- popoverOrModal.dismiss();
309
- }
310
- };
311
- this.setWorkingParts = (parts) => {
312
- this.workingParts = Object.assign({}, parts);
313
- };
314
- this.setActiveParts = (parts, removeDate = false) => {
315
- const { multiple, activePartsClone, highlightActiveParts } = this;
316
- if (multiple) {
317
- /**
318
- * We read from activePartsClone here because valueChanged() only updates that,
319
- * so it's the more reliable source of truth. If we read from activeParts, then
320
- * if you click July 1, manually set the value to July 2, and then click July 3,
321
- * the new value would be [July 1, July 3], ignoring the value set.
322
- *
323
- * We can then pass the new value to activeParts (rather than activePartsClone)
324
- * since the clone will be updated automatically by activePartsChanged().
325
- */
326
- const activePartsArray = Array.isArray(activePartsClone) ? activePartsClone : [activePartsClone];
327
- if (removeDate) {
328
- this.activeParts = activePartsArray.filter((p) => !parse.isSameDay(p, parts));
329
- }
330
- else if (highlightActiveParts) {
331
- this.activeParts = [...activePartsArray, parts];
332
- }
333
- else {
334
- /**
335
- * If highlightActiveParts is false, that means we just have a
336
- * default value of today in activeParts; we need to replace that
337
- * rather than adding to it since it's just a placeholder.
338
- */
339
- this.activeParts = [parts];
340
- }
341
- }
342
- else {
343
- this.activeParts = Object.assign({}, parts);
344
- }
345
- /**
346
- * Now that the user has interacted somehow to select something, we can
347
- * show the solid highlight. This needs to be done after checking it above,
348
- * but before the confirm call below.
349
- *
350
- * Note that for datetimes with confirm/cancel buttons, the value
351
- * isn't updated until you call confirm(). We need to bring the
352
- * solid circle back on day click for UX reasons, rather than only
353
- * show the circle if `value` is truthy.
354
- */
355
- this.highlightActiveParts = true;
356
- const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
357
- if (hasSlottedButtons || this.showDefaultButtons) {
358
- return;
359
- }
360
- this.confirm();
361
- };
362
- /**
363
- * Stencil sometimes sets calendarBodyRef to null on rerender, even though
364
- * the element is present. Query for it manually as a fallback.
365
- *
366
- * TODO(FW-901) Remove when issue is resolved: https://github.com/ionic-team/stencil/issues/3253
367
- */
368
- this.getCalendarBodyEl = () => {
369
- var _a;
370
- return this.calendarBodyRef || ((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.calendar-body'));
371
- };
372
- this.initializeKeyboardListeners = () => {
373
- const calendarBodyRef = this.getCalendarBodyEl();
374
- if (!calendarBodyRef) {
375
- return;
376
- }
377
- const root = this.el.shadowRoot;
378
- /**
379
- * Get a reference to the month
380
- * element we are currently viewing.
381
- */
382
- const currentMonth = calendarBodyRef.querySelector('.calendar-month:nth-of-type(2)');
383
- /**
384
- * When focusing the calendar body, we want to pass focus
385
- * to the working day, but other days should
386
- * only be accessible using the arrow keys. Pressing
387
- * Tab should jump between bodies of selectable content.
388
- */
389
- const checkCalendarBodyFocus = (ev) => {
390
- var _a;
391
- const record = ev[0];
392
- /**
393
- * If calendar body was already focused
394
- * when this fired or if the calendar body
395
- * if not currently focused, we should not re-focus
396
- * the inner day.
397
- */
398
- if (((_a = record.oldValue) === null || _a === void 0 ? void 0 : _a.includes('ion-focused')) || !calendarBodyRef.classList.contains('ion-focused')) {
399
- return;
400
- }
401
- this.focusWorkingDay(currentMonth);
402
- };
403
- const mo = new MutationObserver(checkCalendarBodyFocus);
404
- mo.observe(calendarBodyRef, { attributeFilter: ['class'], attributeOldValue: true });
405
- this.destroyKeyboardMO = () => {
406
- mo === null || mo === void 0 ? void 0 : mo.disconnect();
407
- };
408
- /**
409
- * We must use keydown not keyup as we want
410
- * to prevent scrolling when using the arrow keys.
411
- */
412
- calendarBodyRef.addEventListener('keydown', (ev) => {
413
- const activeElement = root.activeElement;
414
- if (!activeElement || !activeElement.classList.contains('calendar-day')) {
415
- return;
416
- }
417
- const parts = parse.getPartsFromCalendarDay(activeElement);
418
- let partsToFocus;
419
- switch (ev.key) {
420
- case 'ArrowDown':
421
- ev.preventDefault();
422
- partsToFocus = parse.getNextWeek(parts);
423
- break;
424
- case 'ArrowUp':
425
- ev.preventDefault();
426
- partsToFocus = parse.getPreviousWeek(parts);
427
- break;
428
- case 'ArrowRight':
429
- ev.preventDefault();
430
- partsToFocus = parse.getNextDay(parts);
431
- break;
432
- case 'ArrowLeft':
433
- ev.preventDefault();
434
- partsToFocus = parse.getPreviousDay(parts);
435
- break;
436
- case 'Home':
437
- ev.preventDefault();
438
- partsToFocus = parse.getStartOfWeek(parts);
439
- break;
440
- case 'End':
441
- ev.preventDefault();
442
- partsToFocus = parse.getEndOfWeek(parts);
443
- break;
444
- case 'PageUp':
445
- ev.preventDefault();
446
- partsToFocus = ev.shiftKey ? parse.getPreviousYear(parts) : parse.getPreviousMonth(parts);
447
- break;
448
- case 'PageDown':
449
- ev.preventDefault();
450
- partsToFocus = ev.shiftKey ? parse.getNextYear(parts) : parse.getNextMonth(parts);
451
- break;
452
- /**
453
- * Do not preventDefault here
454
- * as we do not want to override other
455
- * browser defaults such as pressing Enter/Space
456
- * to select a day.
457
- */
458
- default:
459
- return;
460
- }
461
- /**
462
- * If the day we want to move focus to is
463
- * disabled, do not do anything.
464
- */
465
- if (isDayDisabled(partsToFocus, this.minParts, this.maxParts)) {
466
- return;
467
- }
468
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), partsToFocus));
469
- /**
470
- * Give view a chance to re-render
471
- * then move focus to the new working day
472
- */
473
- requestAnimationFrame(() => this.focusWorkingDay(currentMonth));
474
- });
475
- };
476
- this.focusWorkingDay = (currentMonth) => {
477
- /**
478
- * Get the number of padding days so
479
- * we know how much to offset our next selector by
480
- * to grab the correct calenday-day element.
481
- */
482
- const padding = currentMonth.querySelectorAll('.calendar-day-padding');
483
- const { day } = this.workingParts;
484
- if (day === null) {
485
- return;
486
- }
487
- /**
488
- * Get the calendar day element
489
- * and focus it.
490
- */
491
- const dayEl = currentMonth.querySelector(`.calendar-day:nth-of-type(${padding.length + day})`);
492
- if (dayEl) {
493
- dayEl.focus();
494
- }
495
- };
496
- this.processMinParts = () => {
497
- if (this.min === undefined) {
498
- this.minParts = undefined;
499
- return;
500
- }
501
- const { month, day, year, hour, minute } = parse.parseDate(this.min);
502
- this.minParts = {
503
- month,
504
- day,
505
- year,
506
- hour,
507
- minute,
508
- };
509
- };
510
- this.processMaxParts = () => {
511
- if (this.max === undefined) {
512
- this.maxParts = undefined;
513
- return;
514
- }
515
- const { month, day, year, hour, minute } = parse.parseDate(this.max);
516
- this.maxParts = {
517
- month,
518
- day,
519
- year,
520
- hour,
521
- minute,
522
- };
523
- };
524
- this.initializeCalendarListener = () => {
525
- const calendarBodyRef = this.getCalendarBodyEl();
526
- if (!calendarBodyRef) {
527
- return;
528
- }
529
- /**
530
- * For performance reasons, we only render 3
531
- * months at a time: The current month, the previous
532
- * month, and the next month. We have a scroll listener
533
- * on the calendar body to append/prepend new months.
534
- *
535
- * We can do this because Stencil is smart enough to not
536
- * re-create the .calendar-month containers, but rather
537
- * update the content within those containers.
538
- *
539
- * As an added bonus, WebKit has some troubles with
540
- * scroll-snap-stop: always, so not rendering all of
541
- * the months in a row allows us to mostly sidestep
542
- * that issue.
543
- */
544
- const months = calendarBodyRef.querySelectorAll('.calendar-month');
545
- const startMonth = months[0];
546
- const workingMonth = months[1];
547
- const endMonth = months[2];
548
- const mode = ionicGlobal.getIonMode(this);
549
- const needsiOSRubberBandFix = mode === 'ios' && typeof navigator !== 'undefined' && navigator.maxTouchPoints > 1;
550
- /**
551
- * Before setting up the scroll listener,
552
- * scroll the middle month into view.
553
- * scrollIntoView() will scroll entire page
554
- * if element is not in viewport. Use scrollLeft instead.
555
- */
556
- index.writeTask(() => {
557
- calendarBodyRef.scrollLeft = startMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
558
- const getChangedMonth = (parts) => {
559
- const box = calendarBodyRef.getBoundingClientRect();
560
- const root = this.el.shadowRoot;
561
- /**
562
- * Get the element that is in the center of the calendar body.
563
- * This will be an element inside of the active month.
564
- */
565
- const elementAtCenter = root.elementFromPoint(box.x + box.width / 2, box.y + box.height / 2);
566
- /**
567
- * If there is no element then the
568
- * component may be re-rendering on a slow device.
569
- */
570
- if (!elementAtCenter)
571
- return;
572
- const month = elementAtCenter.closest('.calendar-month');
573
- if (!month)
574
- return;
575
- /**
576
- * The edge of the month must be lined up with
577
- * the edge of the calendar body in order for
578
- * the component to update. Otherwise, it
579
- * may be the case that the user has paused their
580
- * swipe or the browser has not finished snapping yet.
581
- * Rather than check if the x values are equal,
582
- * we give it a tolerance of 2px to account for
583
- * sub pixel rendering.
584
- */
585
- const monthBox = month.getBoundingClientRect();
586
- if (Math.abs(monthBox.x - box.x) > 2)
587
- return;
588
- /**
589
- * From here, we can determine if the start
590
- * month or the end month was scrolled into view.
591
- * If no month was changed, then we can return from
592
- * the scroll callback early.
593
- */
594
- if (month === startMonth) {
595
- return parse.getPreviousMonth(parts);
596
- }
597
- else if (month === endMonth) {
598
- return parse.getNextMonth(parts);
599
- }
600
- else {
601
- return;
602
- }
603
- };
604
- const updateActiveMonth = () => {
605
- if (needsiOSRubberBandFix) {
606
- calendarBodyRef.style.removeProperty('pointer-events');
607
- appliediOSRubberBandFix = false;
608
- }
609
- /**
610
- * If the month did not change
611
- * then we can return early.
612
- */
613
- const newDate = getChangedMonth(this.workingParts);
614
- if (!newDate)
615
- return;
616
- const { month, day, year } = newDate;
617
- if (isMonthDisabled({ month, year, day: null }, {
618
- minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
619
- maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
620
- })) {
621
- return;
622
- }
623
- /**
624
- * Prevent scrolling for other browsers
625
- * to give the DOM time to update and the container
626
- * time to properly snap.
627
- */
628
- calendarBodyRef.style.setProperty('overflow', 'hidden');
629
- /**
630
- * Use a writeTask here to ensure
631
- * that the state is updated and the
632
- * correct month is scrolled into view
633
- * in the same frame. This is not
634
- * typically a problem on newer devices
635
- * but older/slower device may have a flicker
636
- * if we did not do this.
637
- */
638
- index.writeTask(() => {
639
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
640
- calendarBodyRef.scrollLeft = workingMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
641
- calendarBodyRef.style.removeProperty('overflow');
642
- });
643
- };
644
- /**
645
- * When the container finishes scrolling we
646
- * need to update the DOM with the selected month.
647
- */
648
- let scrollTimeout;
649
- /**
650
- * We do not want to attempt to set pointer-events
651
- * multiple times within a single swipe gesture as
652
- * that adds unnecessary work to the main thread.
653
- */
654
- let appliediOSRubberBandFix = false;
655
- const scrollCallback = () => {
656
- if (scrollTimeout) {
657
- clearTimeout(scrollTimeout);
658
- }
659
- /**
660
- * On iOS it is possible to quickly rubber band
661
- * the scroll area before the scroll timeout has fired.
662
- * This results in users reaching the end of the scrollable
663
- * container before the DOM has updated.
664
- * By setting `pointer-events: none` we can ensure that
665
- * subsequent swipes do not happen while the container
666
- * is snapping.
667
- */
668
- if (!appliediOSRubberBandFix && needsiOSRubberBandFix) {
669
- calendarBodyRef.style.setProperty('pointer-events', 'none');
670
- appliediOSRubberBandFix = true;
671
- }
672
- // Wait ~3 frames
673
- scrollTimeout = setTimeout(updateActiveMonth, 50);
674
- };
675
- calendarBodyRef.addEventListener('scroll', scrollCallback);
676
- this.destroyCalendarListener = () => {
677
- calendarBodyRef.removeEventListener('scroll', scrollCallback);
678
- };
679
- });
680
- };
681
- /**
682
- * Clean up all listeners except for the overlay
683
- * listener. This is so that we can re-create the listeners
684
- * if the datetime has been hidden/presented by a modal or popover.
685
- */
686
- this.destroyInteractionListeners = () => {
687
- const { destroyCalendarListener, destroyKeyboardMO } = this;
688
- if (destroyCalendarListener !== undefined) {
689
- destroyCalendarListener();
690
- }
691
- if (destroyKeyboardMO !== undefined) {
692
- destroyKeyboardMO();
693
- }
694
- };
695
- this.processValue = (value) => {
696
- this.highlightActiveParts = !!value;
697
- let valueToProcess = parse.parseDate(value || parse.getToday());
698
- const { minParts, maxParts, multiple } = this;
699
- if (!multiple && Array.isArray(value)) {
700
- this.value = value[0];
701
- valueToProcess = valueToProcess[0];
702
- }
703
- parse.warnIfValueOutOfBounds(valueToProcess, minParts, maxParts);
704
- /**
705
- * If there are multiple values, pick an arbitrary one to clamp to. This way,
706
- * if the values are across months, we always show at least one of them. Note
707
- * that the values don't necessarily have to be in order.
708
- */
709
- const singleValue = Array.isArray(valueToProcess) ? valueToProcess[0] : valueToProcess;
710
- const { month, day, year, hour, minute, tzOffset } = parse.clampDate(singleValue, minParts, maxParts);
711
- const ampm = parse.parseAmPm(hour);
712
- this.setWorkingParts({
713
- month,
714
- day,
715
- year,
716
- hour,
717
- minute,
718
- tzOffset,
719
- ampm,
720
- });
721
- if (Array.isArray(valueToProcess)) {
722
- this.activeParts = [...valueToProcess];
723
- }
724
- else {
725
- this.activeParts = {
726
- month,
727
- day,
728
- year,
729
- hour,
730
- minute,
731
- tzOffset,
732
- ampm,
733
- };
734
- }
735
- };
736
- this.onFocus = () => {
737
- this.ionFocus.emit();
738
- };
739
- this.onBlur = () => {
740
- this.ionBlur.emit();
741
- };
742
- this.hasValue = () => {
743
- return this.value != null && this.value !== '';
744
- };
745
- this.nextMonth = () => {
746
- const calendarBodyRef = this.getCalendarBodyEl();
747
- if (!calendarBodyRef) {
748
- return;
749
- }
750
- const nextMonth = calendarBodyRef.querySelector('.calendar-month:last-of-type');
751
- if (!nextMonth) {
752
- return;
753
- }
754
- const left = nextMonth.offsetWidth * 2;
755
- calendarBodyRef.scrollTo({
756
- top: 0,
757
- left: left * (dir.isRTL(this.el) ? -1 : 1),
758
- behavior: 'smooth',
759
- });
760
- };
761
- this.prevMonth = () => {
762
- const calendarBodyRef = this.getCalendarBodyEl();
763
- if (!calendarBodyRef) {
764
- return;
765
- }
766
- const prevMonth = calendarBodyRef.querySelector('.calendar-month:first-of-type');
767
- if (!prevMonth) {
768
- return;
769
- }
770
- calendarBodyRef.scrollTo({
771
- top: 0,
772
- left: 0,
773
- behavior: 'smooth',
774
- });
775
- };
776
- this.toggleMonthAndYearView = () => {
777
- this.showMonthAndYear = !this.showMonthAndYear;
778
- };
779
- }
780
- disabledChanged() {
781
- this.emitStyle();
782
- }
783
- minChanged() {
784
- this.processMinParts();
785
- }
786
- maxChanged() {
787
- this.processMaxParts();
788
- }
789
- yearValuesChanged() {
790
- this.parsedYearValues = parse.convertToArrayOfNumbers(this.yearValues);
791
- }
792
- monthValuesChanged() {
793
- this.parsedMonthValues = parse.convertToArrayOfNumbers(this.monthValues);
794
- }
795
- dayValuesChanged() {
796
- this.parsedDayValues = parse.convertToArrayOfNumbers(this.dayValues);
797
- }
798
- hourValuesChanged() {
799
- this.parsedHourValues = parse.convertToArrayOfNumbers(this.hourValues);
800
- }
801
- minuteValuesChanged() {
802
- this.parsedMinuteValues = parse.convertToArrayOfNumbers(this.minuteValues);
803
- }
804
- activePartsChanged() {
805
- this.activePartsClone = this.activeParts;
806
- }
807
- /**
808
- * Update the datetime value when the value changes
809
- */
810
- valueChanged() {
811
- const { value, minParts, maxParts, workingParts, multiple } = this;
812
- if (this.hasValue()) {
813
- if (!multiple && Array.isArray(value)) {
814
- this.value = value[0];
815
- return; // setting this.value will trigger re-run of this function
816
- }
817
- /**
818
- * Clones the value of the `activeParts` to the private clone, to update
819
- * the date display on the current render cycle without causing another render.
820
- *
821
- * This allows us to update the current value's date/time display without
822
- * refocusing or shifting the user's display (leaves the user in place).
823
- */
824
- const valueDateParts = parse.parseDate(value);
825
- if (valueDateParts) {
826
- parse.warnIfValueOutOfBounds(valueDateParts, minParts, maxParts);
827
- if (Array.isArray(valueDateParts)) {
828
- this.activePartsClone = [...valueDateParts];
829
- }
830
- else {
831
- const { month, day, year, hour, minute } = valueDateParts;
832
- const ampm = hour != null ? (hour >= 12 ? 'pm' : 'am') : undefined;
833
- this.activePartsClone = Object.assign(Object.assign({}, this.activeParts), { month,
834
- day,
835
- year,
836
- hour,
837
- minute,
838
- ampm });
839
- /**
840
- * The working parts am/pm value must be updated when the value changes, to
841
- * ensure the time picker hour column values are generated correctly.
842
- *
843
- * Note that we don't need to do this if valueDateParts is an array, since
844
- * multiple="true" does not apply to time pickers.
845
- */
846
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm }));
847
- }
848
- }
849
- else {
850
- index$1.printIonWarning(`Unable to parse date string: ${value}. Please provide a valid ISO 8601 datetime string.`);
851
- }
852
- }
853
- this.emitStyle();
854
- this.ionChange.emit({ value });
855
- }
856
- /**
857
- * Confirms the selected datetime value, updates the
858
- * `value` property, and optionally closes the popover
859
- * or modal that the datetime was presented in.
860
- */
861
- async confirm(closeOverlay = false) {
862
- const { highlightActiveParts, isCalendarPicker, activeParts } = this;
863
- /**
864
- * We only update the value if the presentation is not a calendar picker,
865
- * or if `highlightActiveParts` is true; indicating that the user
866
- * has selected a date from the calendar picker.
867
- *
868
- * Otherwise "today" would accidentally be set as the value.
869
- */
870
- if (highlightActiveParts || !isCalendarPicker) {
871
- const activePartsIsArray = Array.isArray(activeParts);
872
- if (activePartsIsArray && activeParts.length === 0) {
873
- this.value = undefined;
874
- }
875
- else {
876
- /**
877
- * Prevent convertDataToISO from doing any
878
- * kind of transformation based on timezone
879
- * This cancels out any change it attempts to make
880
- *
881
- * Important: Take the timezone offset based on
882
- * the date that is currently selected, otherwise
883
- * there can be 1 hr difference when dealing w/ DST
884
- */
885
- if (activePartsIsArray) {
886
- const dates = parse.convertDataToISO(activeParts).map((str) => new Date(str));
887
- for (let i = 0; i < dates.length; i++) {
888
- activeParts[i].tzOffset = dates[i].getTimezoneOffset() * -1;
889
- }
890
- }
891
- else {
892
- const date = new Date(parse.convertDataToISO(activeParts));
893
- activeParts.tzOffset = date.getTimezoneOffset() * -1;
894
- }
895
- this.value = parse.convertDataToISO(activeParts);
896
- }
897
- }
898
- if (closeOverlay) {
899
- this.closeParentOverlay();
900
- }
901
- }
902
- /**
903
- * Resets the internal state of the datetime but does not update the value.
904
- * Passing a valid ISO-8601 string will reset the state of the component to the provided date.
905
- * If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
906
- */
907
- async reset(startDate) {
908
- this.processValue(startDate);
909
- }
910
- /**
911
- * Emits the ionCancel event and
912
- * optionally closes the popover
913
- * or modal that the datetime was
914
- * presented in.
915
- */
916
- async cancel(closeOverlay = false) {
917
- this.ionCancel.emit();
918
- if (closeOverlay) {
919
- this.closeParentOverlay();
920
- }
921
- }
922
- get isCalendarPicker() {
923
- const { presentation } = this;
924
- return presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
925
- }
926
- connectedCallback() {
927
- this.clearFocusVisible = focusVisible.startFocusVisible(this.el).destroy;
928
- }
929
- disconnectedCallback() {
930
- if (this.clearFocusVisible) {
931
- this.clearFocusVisible();
932
- this.clearFocusVisible = undefined;
933
- }
934
- }
935
- initializeListeners() {
936
- this.initializeCalendarListener();
937
- this.initializeKeyboardListeners();
938
- }
939
- componentDidLoad() {
940
- /**
941
- * If a scrollable element is hidden using `display: none`,
942
- * it will not have a scroll height meaning we cannot scroll elements
943
- * into view. As a result, we will need to wait for the datetime to become
944
- * visible if used inside of a modal or a popover otherwise the scrollable
945
- * areas will not have the correct values snapped into place.
946
- */
947
- const visibleCallback = (entries) => {
948
- const ev = entries[0];
949
- if (!ev.isIntersecting) {
950
- return;
951
- }
952
- this.initializeListeners();
953
- /**
954
- * TODO: Datetime needs a frame to ensure that it
955
- * can properly scroll contents into view. As a result
956
- * we hide the scrollable content until after that frame
957
- * so users do not see the content quickly shifting. The downside
958
- * is that the content will pop into view a frame after. Maybe there
959
- * is a better way to handle this?
960
- */
961
- index.writeTask(() => {
962
- this.el.classList.add('datetime-ready');
963
- });
964
- };
965
- const visibleIO = new IntersectionObserver(visibleCallback, { threshold: 0.01 });
966
- /**
967
- * Use raf to avoid a race condition between the component loading and
968
- * its display animation starting (such as when shown in a modal). This
969
- * could cause the datetime to start at a visibility of 0, erroneously
970
- * triggering the `hiddenIO` observer below.
971
- */
972
- helpers.raf(() => visibleIO === null || visibleIO === void 0 ? void 0 : visibleIO.observe(this.el));
973
- /**
974
- * We need to clean up listeners when the datetime is hidden
975
- * in a popover/modal so that we can properly scroll containers
976
- * back into view if they are re-presented. When the datetime is hidden
977
- * the scroll areas have scroll widths/heights of 0px, so any snapping
978
- * we did originally has been lost.
979
- */
980
- const hiddenCallback = (entries) => {
981
- const ev = entries[0];
982
- if (ev.isIntersecting) {
983
- return;
984
- }
985
- this.destroyInteractionListeners();
986
- index.writeTask(() => {
987
- this.el.classList.remove('datetime-ready');
988
- });
989
- };
990
- const hiddenIO = new IntersectionObserver(hiddenCallback, { threshold: 0 });
991
- helpers.raf(() => hiddenIO === null || hiddenIO === void 0 ? void 0 : hiddenIO.observe(this.el));
992
- /**
993
- * Datetime uses Ionic components that emit
994
- * ionFocus and ionBlur. These events are
995
- * composed meaning they will cross
996
- * the shadow dom boundary. We need to
997
- * stop propagation on these events otherwise
998
- * developers will see 2 ionFocus or 2 ionBlur
999
- * events at a time.
1000
- */
1001
- const root = helpers.getElementRoot(this.el);
1002
- root.addEventListener('ionFocus', (ev) => ev.stopPropagation());
1003
- root.addEventListener('ionBlur', (ev) => ev.stopPropagation());
1004
- }
1005
- /**
1006
- * When the presentation is changed, all calendar content is recreated,
1007
- * so we need to re-init behavior with the new elements.
1008
- */
1009
- componentDidRender() {
1010
- const { presentation, prevPresentation } = this;
1011
- if (prevPresentation === null) {
1012
- this.prevPresentation = presentation;
1013
- return;
1014
- }
1015
- if (presentation === prevPresentation) {
1016
- return;
1017
- }
1018
- this.prevPresentation = presentation;
1019
- this.destroyInteractionListeners();
1020
- this.initializeListeners();
1021
- /**
1022
- * The month/year picker from the date interface
1023
- * should be closed as it is not available in non-date
1024
- * interfaces.
1025
- */
1026
- this.showMonthAndYear = false;
1027
- helpers.raf(() => {
1028
- this.ionRender.emit();
1029
- });
1030
- }
1031
- componentWillLoad() {
1032
- const { el, multiple, presentation, preferWheel } = this;
1033
- if (multiple) {
1034
- if (presentation !== 'date') {
1035
- index$1.printIonWarning('Multiple date selection is only supported for presentation="date".', el);
1036
- }
1037
- if (preferWheel) {
1038
- index$1.printIonWarning('Multiple date selection is not supported with preferWheel="true".', el);
1039
- }
1040
- }
1041
- this.processMinParts();
1042
- this.processMaxParts();
1043
- this.processValue(this.value);
1044
- this.parsedHourValues = parse.convertToArrayOfNumbers(this.hourValues);
1045
- this.parsedMinuteValues = parse.convertToArrayOfNumbers(this.minuteValues);
1046
- this.parsedMonthValues = parse.convertToArrayOfNumbers(this.monthValues);
1047
- this.parsedYearValues = parse.convertToArrayOfNumbers(this.yearValues);
1048
- this.parsedDayValues = parse.convertToArrayOfNumbers(this.dayValues);
1049
- this.emitStyle();
1050
- }
1051
- emitStyle() {
1052
- this.ionStyle.emit({
1053
- interactive: true,
1054
- datetime: true,
1055
- 'interactive-disabled': this.disabled,
1056
- });
1057
- }
1058
- /**
1059
- * Universal render methods
1060
- * These are pieces of datetime that
1061
- * are rendered independently of presentation.
1062
- */
1063
- renderFooter() {
1064
- const { showDefaultButtons, showClearButton } = this;
1065
- const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
1066
- if (!hasSlottedButtons && !showDefaultButtons && !showClearButton) {
1067
- return;
1068
- }
1069
- const clearButtonClick = () => {
1070
- this.reset();
1071
- this.value = undefined;
1072
- };
1073
- /**
1074
- * By default we render two buttons:
1075
- * Cancel - Dismisses the datetime and
1076
- * does not update the `value` prop.
1077
- * OK - Dismisses the datetime and
1078
- * updates the `value` prop.
1079
- */
1080
- return (index.h("div", { class: "datetime-footer" }, index.h("div", { class: "datetime-buttons" }, index.h("div", { class: {
1081
- ['datetime-action-buttons']: true,
1082
- ['has-clear-button']: this.showClearButton,
1083
- } }, index.h("slot", { name: "buttons" }, index.h("ion-buttons", null, showDefaultButtons && (index.h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true) }, this.cancelText)), index.h("div", null, showClearButton && (index.h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick() }, this.clearText)), showDefaultButtons && (index.h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true) }, this.doneText)))))))));
1084
- }
1085
- /**
1086
- * Wheel picker render methods
1087
- */
1088
- renderWheelPicker(forcePresentation = this.presentation) {
1089
- /**
1090
- * If presentation="time-date" we switch the
1091
- * order of the render array here instead of
1092
- * manually reordering each date/time picker
1093
- * column with CSS. This allows for additional
1094
- * flexibility if we need to render subsets
1095
- * of the date/time data or do additional ordering
1096
- * within the child render functions.
1097
- */
1098
- const renderArray = forcePresentation === 'time-date'
1099
- ? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
1100
- : [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
1101
- return index.h("ion-picker-internal", null, renderArray);
1102
- }
1103
- renderDatePickerColumns(forcePresentation) {
1104
- return forcePresentation === 'date-time' || forcePresentation === 'time-date'
1105
- ? this.renderCombinedDatePickerColumn()
1106
- : this.renderIndividualDatePickerColumns(forcePresentation);
1107
- }
1108
- renderCombinedDatePickerColumn() {
1109
- const { activeParts, workingParts, locale, minParts, maxParts, todayParts, isDateEnabled } = this;
1110
- /**
1111
- * By default, generate a range of 3 months:
1112
- * Previous month, current month, and next month
1113
- */
1114
- const monthsToRender = parse.generateMonths(workingParts);
1115
- /**
1116
- * generateMonths returns the day data as well,
1117
- * but we do not want the day value to act as a max/min
1118
- * on the data we are going to generate.
1119
- */
1120
- for (let i = 0; i <= monthsToRender.length - 1; i++) {
1121
- monthsToRender[i].day = null;
1122
- }
1123
- /**
1124
- * If developers have provided their own
1125
- * min/max values, use that instead. Otherwise,
1126
- * fallback to the default range of 3 months.
1127
- */
1128
- const min = minParts || monthsToRender[0];
1129
- const max = maxParts || monthsToRender[monthsToRender.length - 1];
1130
- const result = parse.getCombinedDateColumnData(locale, workingParts, todayParts, min, max, this.parsedDayValues, this.parsedMonthValues);
1131
- let items = result.items;
1132
- const parts = result.parts;
1133
- if (isDateEnabled) {
1134
- items = items.map((itemObject, index) => {
1135
- const referenceParts = parts[index];
1136
- let disabled;
1137
- try {
1138
- /**
1139
- * The `isDateEnabled` implementation is try-catch wrapped
1140
- * to prevent exceptions in the user's function from
1141
- * interrupting the calendar rendering.
1142
- */
1143
- disabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
1144
- }
1145
- catch (e) {
1146
- index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
1147
- }
1148
- return Object.assign(Object.assign({}, itemObject), { disabled });
1149
- });
1150
- }
1151
- /**
1152
- * If we have selected a day already, then default the column
1153
- * to that value. Otherwise, default it to today.
1154
- */
1155
- const todayString = workingParts.day
1156
- ? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
1157
- : `${todayParts.year}-${todayParts.month}-${todayParts.day}`;
1158
- return (index.h("ion-picker-column-internal", { class: "date-column", color: this.color, items: items, value: todayString, onIonChange: (ev) => {
1159
- // TODO(FW-1823) Remove this when iOS 14 support is dropped.
1160
- // Due to a Safari 14 issue we need to destroy
1161
- // the scroll listener before we update state
1162
- // and trigger a re-render.
1163
- if (this.destroyCalendarListener) {
1164
- this.destroyCalendarListener();
1165
- }
1166
- const { value } = ev.detail;
1167
- const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
1168
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
1169
- if (!Array.isArray(activeParts)) {
1170
- this.setActiveParts(Object.assign(Object.assign({}, activeParts), findPart));
1171
- }
1172
- // We can re-attach the scroll listener after
1173
- // the working parts have been updated.
1174
- this.initializeCalendarListener();
1175
- ev.stopPropagation();
1176
- } }));
1177
- }
1178
- renderIndividualDatePickerColumns(forcePresentation) {
1179
- const { workingParts, isDateEnabled } = this;
1180
- const shouldRenderMonths = forcePresentation !== 'year' && forcePresentation !== 'time';
1181
- const months = shouldRenderMonths
1182
- ? parse.getMonthColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedMonthValues)
1183
- : [];
1184
- const shouldRenderDays = forcePresentation === 'date';
1185
- let days = shouldRenderDays
1186
- ? parse.getDayColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedDayValues)
1187
- : [];
1188
- if (isDateEnabled) {
1189
- days = days.map((dayObject) => {
1190
- const { value } = dayObject;
1191
- const valueNum = typeof value === 'string' ? parseInt(value) : value;
1192
- const referenceParts = {
1193
- month: workingParts.month,
1194
- day: valueNum,
1195
- year: workingParts.year,
1196
- };
1197
- let disabled;
1198
- try {
1199
- /**
1200
- * The `isDateEnabled` implementation is try-catch wrapped
1201
- * to prevent exceptions in the user's function from
1202
- * interrupting the calendar rendering.
1203
- */
1204
- disabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
1205
- }
1206
- catch (e) {
1207
- index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
1208
- }
1209
- return Object.assign(Object.assign({}, dayObject), { disabled });
1210
- });
1211
- }
1212
- const shouldRenderYears = forcePresentation !== 'month' && forcePresentation !== 'time';
1213
- const years = shouldRenderYears
1214
- ? parse.getYearColumnData(this.todayParts, this.minParts, this.maxParts, this.parsedYearValues)
1215
- : [];
1216
- /**
1217
- * Certain locales show the day before the month.
1218
- */
1219
- const showMonthFirst = parse.isMonthFirstLocale(this.locale, { month: 'numeric', day: 'numeric' });
1220
- let renderArray = [];
1221
- if (showMonthFirst) {
1222
- renderArray = [
1223
- this.renderMonthPickerColumn(months),
1224
- this.renderDayPickerColumn(days),
1225
- this.renderYearPickerColumn(years),
1226
- ];
1227
- }
1228
- else {
1229
- renderArray = [
1230
- this.renderDayPickerColumn(days),
1231
- this.renderMonthPickerColumn(months),
1232
- this.renderYearPickerColumn(years),
1233
- ];
1234
- }
1235
- return renderArray;
1236
- }
1237
- renderDayPickerColumn(days) {
1238
- var _a;
1239
- if (days.length === 0) {
1240
- return [];
1241
- }
1242
- const { activeParts, workingParts } = this;
1243
- return (index.h("ion-picker-column-internal", { class: "day-column", color: this.color, items: days, value: (_a = (workingParts.day || this.todayParts.day)) !== null && _a !== void 0 ? _a : undefined, onIonChange: (ev) => {
1244
- // TODO(FW-1823) Remove this when iOS 14 support is dropped.
1245
- // Due to a Safari 14 issue we need to destroy
1246
- // the scroll listener before we update state
1247
- // and trigger a re-render.
1248
- if (this.destroyCalendarListener) {
1249
- this.destroyCalendarListener();
1250
- }
1251
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
1252
- if (!Array.isArray(activeParts)) {
1253
- this.setActiveParts(Object.assign(Object.assign({}, activeParts), { day: ev.detail.value }));
1254
- }
1255
- // We can re-attach the scroll listener after
1256
- // the working parts have been updated.
1257
- this.initializeCalendarListener();
1258
- ev.stopPropagation();
1259
- } }));
1260
- }
1261
- renderMonthPickerColumn(months) {
1262
- if (months.length === 0) {
1263
- return [];
1264
- }
1265
- const { activeParts, workingParts } = this;
1266
- return (index.h("ion-picker-column-internal", { class: "month-column", color: this.color, items: months, value: workingParts.month, onIonChange: (ev) => {
1267
- // TODO(FW-1823) Remove this when iOS 14 support is dropped.
1268
- // Due to a Safari 14 issue we need to destroy
1269
- // the scroll listener before we update state
1270
- // and trigger a re-render.
1271
- if (this.destroyCalendarListener) {
1272
- this.destroyCalendarListener();
1273
- }
1274
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
1275
- if (!Array.isArray(activeParts)) {
1276
- this.setActiveParts(Object.assign(Object.assign({}, activeParts), { month: ev.detail.value }));
1277
- }
1278
- // We can re-attach the scroll listener after
1279
- // the working parts have been updated.
1280
- this.initializeCalendarListener();
1281
- ev.stopPropagation();
1282
- } }));
1283
- }
1284
- renderYearPickerColumn(years) {
1285
- if (years.length === 0) {
1286
- return [];
1287
- }
1288
- const { activeParts, workingParts } = this;
1289
- return (index.h("ion-picker-column-internal", { class: "year-column", color: this.color, items: years, value: workingParts.year, onIonChange: (ev) => {
1290
- // TODO(FW-1823) Remove this when iOS 14 support is dropped.
1291
- // Due to a Safari 14 issue we need to destroy
1292
- // the scroll listener before we update state
1293
- // and trigger a re-render.
1294
- if (this.destroyCalendarListener) {
1295
- this.destroyCalendarListener();
1296
- }
1297
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
1298
- if (!Array.isArray(activeParts)) {
1299
- this.setActiveParts(Object.assign(Object.assign({}, activeParts), { year: ev.detail.value }));
1300
- }
1301
- // We can re-attach the scroll listener after
1302
- // the working parts have been updated.
1303
- this.initializeCalendarListener();
1304
- ev.stopPropagation();
1305
- } }));
1306
- }
1307
- renderTimePickerColumns(forcePresentation) {
1308
- if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
1309
- return [];
1310
- }
1311
- const { hoursData, minutesData, dayPeriodData } = parse.getTimeColumnsData(this.locale, this.workingParts, this.hourCycle, this.value ? this.minParts : undefined, this.value ? this.maxParts : undefined, this.parsedHourValues, this.parsedMinuteValues);
1312
- return [
1313
- this.renderHourPickerColumn(hoursData),
1314
- this.renderMinutePickerColumn(minutesData),
1315
- this.renderDayPeriodPickerColumn(dayPeriodData),
1316
- ];
1317
- }
1318
- renderHourPickerColumn(hoursData) {
1319
- const { workingParts, activePartsClone } = this;
1320
- if (hoursData.length === 0)
1321
- return [];
1322
- return (index.h("ion-picker-column-internal", { color: this.color, value: activePartsClone.hour, items: hoursData, numericInput: true, onIonChange: (ev) => {
1323
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
1324
- if (!Array.isArray(activePartsClone)) {
1325
- this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { hour: ev.detail.value }));
1326
- }
1327
- ev.stopPropagation();
1328
- } }));
1329
- }
1330
- renderMinutePickerColumn(minutesData) {
1331
- const { workingParts, activePartsClone } = this;
1332
- if (minutesData.length === 0)
1333
- return [];
1334
- return (index.h("ion-picker-column-internal", { color: this.color, value: activePartsClone.minute, items: minutesData, numericInput: true, onIonChange: (ev) => {
1335
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
1336
- if (!Array.isArray(activePartsClone)) {
1337
- this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { minute: ev.detail.value }));
1338
- }
1339
- ev.stopPropagation();
1340
- } }));
1341
- }
1342
- renderDayPeriodPickerColumn(dayPeriodData) {
1343
- const { workingParts, activePartsClone } = this;
1344
- if (dayPeriodData.length === 0) {
1345
- return [];
1346
- }
1347
- const isDayPeriodRTL = parse.isLocaleDayPeriodRTL(this.locale);
1348
- return (index.h("ion-picker-column-internal", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, value: activePartsClone.ampm, items: dayPeriodData, onIonChange: (ev) => {
1349
- const hour = parse.calculateHourFromAMPM(workingParts, ev.detail.value);
1350
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
1351
- if (!Array.isArray(activePartsClone)) {
1352
- this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { ampm: ev.detail.value, hour }));
1353
- }
1354
- ev.stopPropagation();
1355
- } }));
1356
- }
1357
- renderWheelView(forcePresentation) {
1358
- const { locale } = this;
1359
- const showMonthFirst = parse.isMonthFirstLocale(locale);
1360
- const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
1361
- return (index.h("div", { class: {
1362
- [`wheel-order-${columnOrder}`]: true,
1363
- } }, this.renderWheelPicker(forcePresentation)));
1364
- }
1365
- /**
1366
- * Grid Render Methods
1367
- */
1368
- renderCalendarHeader(mode) {
1369
- const expandedIcon = mode === 'ios' ? index$2.chevronDown : index$2.caretUpSharp;
1370
- const collapsedIcon = mode === 'ios' ? index$2.chevronForward : index$2.caretDownSharp;
1371
- const prevMonthDisabled = isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
1372
- const nextMonthDisabled = isNextMonthDisabled(this.workingParts, this.maxParts);
1373
- return (index.h("div", { class: "calendar-header" }, index.h("div", { class: "calendar-action-buttons" }, index.h("div", { class: "calendar-month-year" }, index.h("ion-item", { button: true, detail: false, lines: "none", onClick: () => this.toggleMonthAndYearView() }, index.h("ion-label", null, parse.getMonthAndYear(this.locale, this.workingParts), ' ', index.h("ion-icon", { icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, lazy: false })))), index.h("div", { class: "calendar-next-prev" }, index.h("ion-buttons", null, index.h("ion-button", { disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, index.h("ion-icon", { slot: "icon-only", icon: index$2.chevronBack, lazy: false, flipRtl: true })), index.h("ion-button", { disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, index.h("ion-icon", { slot: "icon-only", icon: index$2.chevronForward, lazy: false, flipRtl: true }))))), index.h("div", { class: "calendar-days-of-week" }, parse.getDaysOfWeek(this.locale, mode, this.firstDayOfWeek % 7).map((d) => {
1374
- return index.h("div", { class: "day-of-week" }, d);
1375
- }))));
1376
- }
1377
- renderMonth(month, year) {
1378
- const { highlightActiveParts } = this;
1379
- const yearAllowed = this.parsedYearValues === undefined || this.parsedYearValues.includes(year);
1380
- const monthAllowed = this.parsedMonthValues === undefined || this.parsedMonthValues.includes(month);
1381
- const isCalMonthDisabled = !yearAllowed || !monthAllowed;
1382
- const swipeDisabled = isMonthDisabled({
1383
- month,
1384
- year,
1385
- day: null,
1386
- }, {
1387
- // The day is not used when checking if a month is disabled.
1388
- // Users should be able to access the min or max month, even if the
1389
- // min/max date is out of bounds (e.g. min is set to Feb 15, Feb should not be disabled).
1390
- minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
1391
- maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
1392
- });
1393
- // The working month should never have swipe disabled.
1394
- // Otherwise the CSS scroll snap will not work and the user
1395
- // can free-scroll the calendar.
1396
- const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
1397
- return (index.h("div", { class: {
1398
- 'calendar-month': true,
1399
- // Prevents scroll snap swipe gestures for months outside of the min/max bounds
1400
- 'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
1401
- } }, index.h("div", { class: "calendar-month-grid" }, parse.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$2) => {
1402
- const { day, dayOfWeek } = dateObject;
1403
- const { isDateEnabled, multiple } = this;
1404
- const referenceParts = { month, day, year };
1405
- const { isActive, isToday, ariaLabel, ariaSelected, disabled } = getCalendarDayState(this.locale, referenceParts, this.activePartsClone, this.todayParts, this.minParts, this.maxParts, this.parsedDayValues);
1406
- let isCalDayDisabled = isCalMonthDisabled || disabled;
1407
- if (!isCalDayDisabled && isDateEnabled !== undefined) {
1408
- try {
1409
- /**
1410
- * The `isDateEnabled` implementation is try-catch wrapped
1411
- * to prevent exceptions in the user's function from
1412
- * interrupting the calendar rendering.
1413
- */
1414
- isCalDayDisabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
1415
- }
1416
- catch (e) {
1417
- index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
1418
- }
1419
- }
1420
- return (index.h("button", { tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$2, "data-day-of-week": dayOfWeek, disabled: isCalDayDisabled, class: {
1421
- 'calendar-day-padding': day === null,
1422
- 'calendar-day': true,
1423
- 'calendar-day-active': isActive && highlightActiveParts,
1424
- 'calendar-day-today': isToday,
1425
- }, "aria-selected": ariaSelected, "aria-label": ariaLabel, onClick: () => {
1426
- if (day === null) {
1427
- return;
1428
- }
1429
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month,
1430
- day,
1431
- year }));
1432
- // multiple only needs date info, so we can wipe out other fields like time
1433
- if (multiple) {
1434
- this.setActiveParts({
1435
- month,
1436
- day,
1437
- year,
1438
- }, isActive && highlightActiveParts);
1439
- }
1440
- else {
1441
- this.setActiveParts(Object.assign(Object.assign({}, this.activeParts), { month,
1442
- day,
1443
- year }));
1444
- }
1445
- } }, day));
1446
- }))));
1447
- }
1448
- renderCalendarBody() {
1449
- return (index.h("div", { class: "calendar-body ion-focusable", ref: (el) => (this.calendarBodyRef = el), tabindex: "0" }, parse.generateMonths(this.workingParts).map(({ month, year }) => {
1450
- return this.renderMonth(month, year);
1451
- })));
1452
- }
1453
- renderCalendar(mode) {
1454
- return (index.h("div", { class: "datetime-calendar" }, this.renderCalendarHeader(mode), this.renderCalendarBody()));
1455
- }
1456
- renderTimeLabel() {
1457
- const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
1458
- if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
1459
- return;
1460
- }
1461
- return index.h("slot", { name: "time-label" }, "Time");
1462
- }
1463
- renderTimeOverlay() {
1464
- const use24Hour = parse.is24Hour(this.locale, this.hourCycle);
1465
- return [
1466
- index.h("div", { class: "time-header" }, this.renderTimeLabel()),
1467
- index.h("button", { class: {
1468
- 'time-body': true,
1469
- 'time-body-active': this.isTimePopoverOpen,
1470
- }, "aria-expanded": "false", "aria-haspopup": "true", onClick: async (ev) => {
1471
- const { popoverRef } = this;
1472
- if (popoverRef) {
1473
- this.isTimePopoverOpen = true;
1474
- popoverRef.present(new CustomEvent('ionShadowTarget', {
1475
- detail: {
1476
- ionShadowTarget: ev.target,
1477
- },
1478
- }));
1479
- await popoverRef.onWillDismiss();
1480
- this.isTimePopoverOpen = false;
1481
- }
1482
- } }, parse.getLocalizedTime(this.locale, this.activePartsClone, use24Hour)),
1483
- index.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
1484
- /**
1485
- * Intersection Observers do not consistently fire between Blink and Webkit
1486
- * when toggling the visibility of the popover and trying to scroll the picker
1487
- * column to the correct time value.
1488
- *
1489
- * This will correctly scroll the element position to the correct time value,
1490
- * before the popover is fully presented.
1491
- */
1492
- const cols = ev.target.querySelectorAll('ion-picker-column-internal');
1493
- // TODO (FW-615): Potentially remove this when intersection observers are fixed in picker column
1494
- cols.forEach((col) => col.scrollActiveItemIntoView());
1495
- }, style: {
1496
- '--offset-y': '-10px',
1497
- '--min-width': 'fit-content',
1498
- },
1499
- // Allow native browser keyboard events to support up/down/home/end key
1500
- // navigation within the time picker.
1501
- keyboardEvents: true, ref: (el) => (this.popoverRef = el) }, this.renderWheelPicker('time')),
1502
- ];
1503
- }
1504
- renderCalendarViewHeader(mode) {
1505
- const hasSlottedTitle = this.el.querySelector('[slot="title"]') !== null;
1506
- if (!hasSlottedTitle && !this.showDefaultTitle) {
1507
- return;
1508
- }
1509
- return (index.h("div", { class: "datetime-header" }, index.h("div", { class: "datetime-title" }, index.h("slot", { name: "title" }, "Select Date")), mode === 'md' && !this.multiple && (index.h("div", { class: "datetime-selected-date" }, parse.getMonthAndDay(this.locale, this.activeParts)))));
1510
- }
1511
- /**
1512
- * Render time picker inside of datetime.
1513
- * Do not pass color prop to segment on
1514
- * iOS mode. MD segment has been customized and
1515
- * should take on the color prop, but iOS
1516
- * should just be the default segment.
1517
- */
1518
- renderTime() {
1519
- const { presentation } = this;
1520
- const timeOnlyPresentation = presentation === 'time';
1521
- return (index.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
1522
- }
1523
- /**
1524
- * Renders the month/year picker that is
1525
- * displayed on the calendar grid.
1526
- * The .datetime-year class has additional
1527
- * styles that let us show/hide the
1528
- * picker when the user clicks on the
1529
- * toggle in the calendar header.
1530
- */
1531
- renderCalendarViewMonthYearPicker() {
1532
- return index.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
1533
- }
1534
- /**
1535
- * Render entry point
1536
- * All presentation types are rendered from here.
1537
- */
1538
- renderDatetime(mode) {
1539
- const { presentation, preferWheel } = this;
1540
- /**
1541
- * Certain presentation types have separate grid and wheel displays.
1542
- * If preferWheel is true then we should show a wheel picker instead.
1543
- */
1544
- const hasWheelVariant = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
1545
- if (preferWheel && hasWheelVariant) {
1546
- return [this.renderWheelView(), this.renderFooter()];
1547
- }
1548
- switch (presentation) {
1549
- case 'date-time':
1550
- return [
1551
- this.renderCalendarViewHeader(mode),
1552
- this.renderCalendar(mode),
1553
- this.renderCalendarViewMonthYearPicker(),
1554
- this.renderTime(),
1555
- this.renderFooter(),
1556
- ];
1557
- case 'time-date':
1558
- return [
1559
- this.renderCalendarViewHeader(mode),
1560
- this.renderTime(),
1561
- this.renderCalendar(mode),
1562
- this.renderCalendarViewMonthYearPicker(),
1563
- this.renderFooter(),
1564
- ];
1565
- case 'time':
1566
- return [this.renderTime(), this.renderFooter()];
1567
- case 'month':
1568
- case 'month-year':
1569
- case 'year':
1570
- return [this.renderWheelView(), this.renderFooter()];
1571
- default:
1572
- return [
1573
- this.renderCalendarViewHeader(mode),
1574
- this.renderCalendar(mode),
1575
- this.renderCalendarViewMonthYearPicker(),
1576
- this.renderFooter(),
1577
- ];
1578
- }
1579
- }
1580
- render() {
1581
- const { name, value, disabled, el, color, isPresented, readonly, showMonthAndYear, preferWheel, presentation, size, } = this;
1582
- const mode = ionicGlobal.getIonMode(this);
1583
- const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
1584
- const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
1585
- const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
1586
- const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
1587
- const hasWheelVariant = hasDatePresentation && preferWheel;
1588
- const hasGrid = hasDatePresentation && !preferWheel;
1589
- helpers.renderHiddenInput(true, el, name, parse.formatValue(value), disabled);
1590
- return (index.h(index.Host, { "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
1591
- [mode]: true,
1592
- ['datetime-presented']: isPresented,
1593
- ['datetime-readonly']: readonly,
1594
- ['datetime-disabled']: disabled,
1595
- 'show-month-and-year': shouldShowMonthAndYear,
1596
- 'month-year-picker-open': monthYearPickerOpen,
1597
- [`datetime-presentation-${presentation}`]: true,
1598
- [`datetime-size-${size}`]: true,
1599
- [`datetime-prefer-wheel`]: hasWheelVariant,
1600
- [`datetime-grid`]: hasGrid,
1601
- })) }, this.renderDatetime(mode)));
1602
- }
1603
- get el() { return index.getElement(this); }
1604
- static get watchers() { return {
1605
- "disabled": ["disabledChanged"],
1606
- "min": ["minChanged"],
1607
- "max": ["maxChanged"],
1608
- "yearValues": ["yearValuesChanged"],
1609
- "monthValues": ["monthValuesChanged"],
1610
- "dayValues": ["dayValuesChanged"],
1611
- "hourValues": ["hourValuesChanged"],
1612
- "minuteValues": ["minuteValuesChanged"],
1613
- "activeParts": ["activePartsChanged"],
1614
- "value": ["valueChanged"]
1615
- }; }
1616
- };
1617
- let datetimeIds = 0;
1618
- Datetime.style = {
1619
- ios: datetimeIosCss,
1620
- md: datetimeMdCss
1621
- };
1622
-
1623
- exports.ion_datetime = Datetime;