@cscfi/csc-ui 1.0.0

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 (1146) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -0
  3. package/dist/cjs/c-accordion-item.cjs.entry.js +118 -0
  4. package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -0
  5. package/dist/cjs/c-accordion.cjs.entry.js +68 -0
  6. package/dist/cjs/c-accordion.cjs.entry.js.map +1 -0
  7. package/dist/cjs/c-alert.cjs.entry.js +30 -0
  8. package/dist/cjs/c-alert.cjs.entry.js.map +1 -0
  9. package/dist/cjs/c-autocomplete.cjs.entry.js +263 -0
  10. package/dist/cjs/c-autocomplete.cjs.entry.js.map +1 -0
  11. package/dist/cjs/c-badge_12.cjs.entry.js +442 -0
  12. package/dist/cjs/c-badge_12.cjs.entry.js.map +1 -0
  13. package/dist/cjs/c-card-actions.cjs.entry.js +28 -0
  14. package/dist/cjs/c-card-actions.cjs.entry.js.map +1 -0
  15. package/dist/cjs/c-card-content.cjs.entry.js +21 -0
  16. package/dist/cjs/c-card-content.cjs.entry.js.map +1 -0
  17. package/dist/cjs/c-card-title.cjs.entry.js +21 -0
  18. package/dist/cjs/c-card-title.cjs.entry.js.map +1 -0
  19. package/dist/cjs/c-checkbox_2.cjs.entry.js +342 -0
  20. package/dist/cjs/c-checkbox_2.cjs.entry.js.map +1 -0
  21. package/dist/cjs/c-data-table.cjs.entry.js +701 -0
  22. package/dist/cjs/c-data-table.cjs.entry.js.map +1 -0
  23. package/dist/cjs/c-dropdown_4.cjs.entry.js +837 -0
  24. package/dist/cjs/c-dropdown_4.cjs.entry.js.map +1 -0
  25. package/dist/cjs/c-link.cjs.entry.js +31 -0
  26. package/dist/cjs/c-link.cjs.entry.js.map +1 -0
  27. package/dist/cjs/c-list-item-title.cjs.entry.js +26 -0
  28. package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -0
  29. package/dist/cjs/c-list-item.cjs.entry.js +83 -0
  30. package/dist/cjs/c-list-item.cjs.entry.js.map +1 -0
  31. package/dist/cjs/c-list.cjs.entry.js +45 -0
  32. package/dist/cjs/c-list.cjs.entry.js.map +1 -0
  33. package/dist/cjs/c-loader.cjs.entry.js +39 -0
  34. package/dist/cjs/c-loader.cjs.entry.js.map +1 -0
  35. package/dist/cjs/c-login-button.cjs.entry.js +25 -0
  36. package/dist/cjs/c-login-button.cjs.entry.js.map +1 -0
  37. package/dist/cjs/c-login-buttons.cjs.entry.js +21 -0
  38. package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -0
  39. package/dist/cjs/c-login-card-actions.cjs.entry.js +20 -0
  40. package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -0
  41. package/dist/cjs/c-login-card-content.cjs.entry.js +21 -0
  42. package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -0
  43. package/dist/cjs/c-login-card-title.cjs.entry.js +21 -0
  44. package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -0
  45. package/dist/cjs/c-login-card.cjs.entry.js +66 -0
  46. package/dist/cjs/c-login-card.cjs.entry.js.map +1 -0
  47. package/dist/cjs/c-menu_2.cjs.entry.js +354 -0
  48. package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -0
  49. package/dist/cjs/c-modal.cjs.entry.js +108 -0
  50. package/dist/cjs/c-modal.cjs.entry.js.map +1 -0
  51. package/dist/cjs/c-navigation-button.cjs.entry.js +22 -0
  52. package/dist/cjs/c-navigation-button.cjs.entry.js.map +1 -0
  53. package/dist/cjs/c-option-value.cjs.entry.js +21 -0
  54. package/dist/cjs/c-option-value.cjs.entry.js.map +1 -0
  55. package/dist/cjs/c-option.cjs.entry.js +25 -0
  56. package/dist/cjs/c-option.cjs.entry.js.map +1 -0
  57. package/dist/cjs/c-otp-input.cjs.entry.js +154 -0
  58. package/dist/cjs/c-otp-input.cjs.entry.js.map +1 -0
  59. package/dist/cjs/c-page.cjs.entry.js +31 -0
  60. package/dist/cjs/c-page.cjs.entry.js.map +1 -0
  61. package/dist/cjs/c-progress-bar.cjs.entry.js +59 -0
  62. package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -0
  63. package/dist/cjs/c-radio-group.cjs.entry.js +154 -0
  64. package/dist/cjs/c-radio-group.cjs.entry.js.map +1 -0
  65. package/dist/cjs/c-radio.cjs.entry.js +24 -0
  66. package/dist/cjs/c-radio.cjs.entry.js.map +1 -0
  67. package/dist/cjs/c-select.cjs.entry.js +331 -0
  68. package/dist/cjs/c-select.cjs.entry.js.map +1 -0
  69. package/dist/cjs/c-side-navigation-item.cjs.entry.js +121 -0
  70. package/dist/cjs/c-side-navigation-item.cjs.entry.js.map +1 -0
  71. package/dist/cjs/c-side-navigation-title.cjs.entry.js +21 -0
  72. package/dist/cjs/c-side-navigation-title.cjs.entry.js.map +1 -0
  73. package/dist/cjs/c-side-navigation.cjs.entry.js +71 -0
  74. package/dist/cjs/c-side-navigation.cjs.entry.js.map +1 -0
  75. package/dist/cjs/c-status.cjs.entry.js +23 -0
  76. package/dist/cjs/c-status.cjs.entry.js.map +1 -0
  77. package/dist/cjs/c-step.cjs.entry.js +27 -0
  78. package/dist/cjs/c-step.cjs.entry.js.map +1 -0
  79. package/dist/cjs/c-steps.cjs.entry.js +78 -0
  80. package/dist/cjs/c-steps.cjs.entry.js.map +1 -0
  81. package/dist/cjs/c-sub-navigation-item.cjs.entry.js +51 -0
  82. package/dist/cjs/c-sub-navigation-item.cjs.entry.js.map +1 -0
  83. package/dist/cjs/c-swiper-tab.cjs.entry.js +47 -0
  84. package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -0
  85. package/dist/cjs/c-swiper.cjs.entry.js +4187 -0
  86. package/dist/cjs/c-swiper.cjs.entry.js.map +1 -0
  87. package/dist/cjs/c-switch.cjs.entry.js +71 -0
  88. package/dist/cjs/c-switch.cjs.entry.js.map +1 -0
  89. package/dist/cjs/c-tab-buttons.cjs.entry.js +133 -0
  90. package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -0
  91. package/dist/cjs/c-tab-item.cjs.entry.js +40 -0
  92. package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -0
  93. package/dist/cjs/c-tab-items.cjs.entry.js +81 -0
  94. package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -0
  95. package/dist/cjs/c-tab.cjs.entry.js +59 -0
  96. package/dist/cjs/c-tab.cjs.entry.js.map +1 -0
  97. package/dist/cjs/c-table.cjs.entry.js +47 -0
  98. package/dist/cjs/c-table.cjs.entry.js.map +1 -0
  99. package/dist/cjs/c-tabs.cjs.entry.js +423 -0
  100. package/dist/cjs/c-tabs.cjs.entry.js.map +1 -0
  101. package/dist/cjs/c-tag.cjs.entry.js +45 -0
  102. package/dist/cjs/c-tag.cjs.entry.js.map +1 -0
  103. package/dist/cjs/c-tags.cjs.entry.js +21 -0
  104. package/dist/cjs/c-tags.cjs.entry.js.map +1 -0
  105. package/dist/cjs/c-text-field.cjs.entry.js +151 -0
  106. package/dist/cjs/c-text-field.cjs.entry.js.map +1 -0
  107. package/dist/cjs/c-toast.cjs.entry.js +73 -0
  108. package/dist/cjs/c-toast.cjs.entry.js.map +1 -0
  109. package/dist/cjs/c-toasts.cjs.entry.js +80 -0
  110. package/dist/cjs/c-toasts.cjs.entry.js.map +1 -0
  111. package/dist/cjs/csc-ui.cjs.js +25 -0
  112. package/dist/cjs/csc-ui.cjs.js.map +1 -0
  113. package/dist/cjs/index-3cad12b5.js +2605 -0
  114. package/dist/cjs/index-3cad12b5.js.map +1 -0
  115. package/dist/cjs/index-72dca436.js +23 -0
  116. package/dist/cjs/index-72dca436.js.map +1 -0
  117. package/dist/cjs/index.cjs.js +28 -0
  118. package/dist/cjs/index.cjs.js.map +1 -0
  119. package/dist/cjs/loader.cjs.js +15 -0
  120. package/dist/cjs/loader.cjs.js.map +1 -0
  121. package/dist/cjs/mdi-16842afc.js +46 -0
  122. package/dist/cjs/mdi-16842afc.js.map +1 -0
  123. package/dist/collection/collection-manifest.json +81 -0
  124. package/dist/collection/components/c-accordion/c-accordion.css +26 -0
  125. package/dist/collection/components/c-accordion/c-accordion.js +172 -0
  126. package/dist/collection/components/c-accordion/c-accordion.js.map +1 -0
  127. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +140 -0
  128. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +1 -0
  129. package/dist/collection/components/c-accordion/test/c-accordion.spec.js +72 -0
  130. package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +1 -0
  131. package/dist/collection/components/c-accordion/test/c-accordion.visual.js +52 -0
  132. package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -0
  133. package/dist/collection/components/c-accordion-item/c-accordion-item.css +130 -0
  134. package/dist/collection/components/c-accordion-item/c-accordion-item.js +251 -0
  135. package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -0
  136. package/dist/collection/components/c-alert/c-alert.css +62 -0
  137. package/dist/collection/components/c-alert/c-alert.js +57 -0
  138. package/dist/collection/components/c-alert/c-alert.js.map +1 -0
  139. package/dist/collection/components/c-alert/test/c-alert.spec.js +54 -0
  140. package/dist/collection/components/c-alert/test/c-alert.spec.js.map +1 -0
  141. package/dist/collection/components/c-alert/test/c-alert.visual.js +24 -0
  142. package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -0
  143. package/dist/collection/components/c-autocomplete/c-autocomplete.css +207 -0
  144. package/dist/collection/components/c-autocomplete/c-autocomplete.js +808 -0
  145. package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -0
  146. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +35 -0
  147. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +1 -0
  148. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +31 -0
  149. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -0
  150. package/dist/collection/components/c-badge/c-badge.css +46 -0
  151. package/dist/collection/components/c-badge/c-badge.js +19 -0
  152. package/dist/collection/components/c-badge/c-badge.js.map +1 -0
  153. package/dist/collection/components/c-badge/test/c-badge.e2e.js +10 -0
  154. package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +1 -0
  155. package/dist/collection/components/c-badge/test/c-badge.spec.js +18 -0
  156. package/dist/collection/components/c-badge/test/c-badge.spec.js.map +1 -0
  157. package/dist/collection/components/c-button/c-button.css +565 -0
  158. package/dist/collection/components/c-button/c-button.js +511 -0
  159. package/dist/collection/components/c-button/c-button.js.map +1 -0
  160. package/dist/collection/components/c-button/test/c-button.spec.js +207 -0
  161. package/dist/collection/components/c-button/test/c-button.spec.js.map +1 -0
  162. package/dist/collection/components/c-button/test/c-button.visual.js +98 -0
  163. package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -0
  164. package/dist/collection/components/c-card/assets/puhti.gif +0 -0
  165. package/dist/collection/components/c-card/c-card.css +47 -0
  166. package/dist/collection/components/c-card/c-card.js +138 -0
  167. package/dist/collection/components/c-card/c-card.js.map +1 -0
  168. package/dist/collection/components/c-card/test/c-card.e2e.js +17 -0
  169. package/dist/collection/components/c-card/test/c-card.e2e.js.map +1 -0
  170. package/dist/collection/components/c-card/test/c-card.spec.js +142 -0
  171. package/dist/collection/components/c-card/test/c-card.spec.js.map +1 -0
  172. package/dist/collection/components/c-card/test/c-card.visual.js +18 -0
  173. package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -0
  174. package/dist/collection/components/c-card-actions/c-card-actions.css +65 -0
  175. package/dist/collection/components/c-card-actions/c-card-actions.js +68 -0
  176. package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -0
  177. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +115 -0
  178. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +1 -0
  179. package/dist/collection/components/c-card-content/c-card-content.css +31 -0
  180. package/dist/collection/components/c-card-content/c-card-content.js +19 -0
  181. package/dist/collection/components/c-card-content/c-card-content.js.map +1 -0
  182. package/dist/collection/components/c-card-title/c-card-title.css +41 -0
  183. package/dist/collection/components/c-card-title/c-card-title.js +19 -0
  184. package/dist/collection/components/c-card-title/c-card-title.js.map +1 -0
  185. package/dist/collection/components/c-checkbox/c-checkbox.css +178 -0
  186. package/dist/collection/components/c-checkbox/c-checkbox.js +391 -0
  187. package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -0
  188. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +60 -0
  189. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +1 -0
  190. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +40 -0
  191. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +1 -0
  192. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +22 -0
  193. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -0
  194. package/dist/collection/components/c-csc-logo/c-csc-logo.css +38 -0
  195. package/dist/collection/components/c-csc-logo/c-csc-logo.js +45 -0
  196. package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -0
  197. package/dist/collection/components/c-data-table/c-data-table.css +379 -0
  198. package/dist/collection/components/c-data-table/c-data-table.js +1163 -0
  199. package/dist/collection/components/c-data-table/c-data-table.js.map +1 -0
  200. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +125 -0
  201. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +1 -0
  202. package/dist/collection/components/c-data-table/test/c-data-table.spec.js +107 -0
  203. package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +1 -0
  204. package/dist/collection/components/c-data-table/test/c-data-table.visual.js +31 -0
  205. package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -0
  206. package/dist/collection/components/c-data-table/test/data/index.js +104 -0
  207. package/dist/collection/components/c-data-table/test/data/index.js.map +1 -0
  208. package/dist/collection/components/c-dropdown/c-dropdown.css +99 -0
  209. package/dist/collection/components/c-dropdown/c-dropdown.js +778 -0
  210. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -0
  211. package/dist/collection/components/c-dropdowns/c-dropdowns.css +24 -0
  212. package/dist/collection/components/c-dropdowns/c-dropdowns.js +66 -0
  213. package/dist/collection/components/c-dropdowns/c-dropdowns.js.map +1 -0
  214. package/dist/collection/components/c-icon/c-icon.css +29 -0
  215. package/dist/collection/components/c-icon/c-icon.js +85 -0
  216. package/dist/collection/components/c-icon/c-icon.js.map +1 -0
  217. package/dist/collection/components/c-icon/test/c-icon.spec.js +12 -0
  218. package/dist/collection/components/c-icon/test/c-icon.spec.js.map +1 -0
  219. package/dist/collection/components/c-icon-button/c-icon-button.css +685 -0
  220. package/dist/collection/components/c-icon-button/c-icon-button.js +238 -0
  221. package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -0
  222. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +82 -0
  223. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +1 -0
  224. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +22 -0
  225. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -0
  226. package/dist/collection/components/c-input/c-input.css +287 -0
  227. package/dist/collection/components/c-input/c-input.js +960 -0
  228. package/dist/collection/components/c-input/c-input.js.map +1 -0
  229. package/dist/collection/components/c-link/c-link.css +54 -0
  230. package/dist/collection/components/c-link/c-link.js +107 -0
  231. package/dist/collection/components/c-link/c-link.js.map +1 -0
  232. package/dist/collection/components/c-link/test/c-link.spec.js +75 -0
  233. package/dist/collection/components/c-link/test/c-link.spec.js.map +1 -0
  234. package/dist/collection/components/c-link/test/c-link.visual.js +14 -0
  235. package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -0
  236. package/dist/collection/components/c-list/c-list.css +22 -0
  237. package/dist/collection/components/c-list/c-list.js +69 -0
  238. package/dist/collection/components/c-list/c-list.js.map +1 -0
  239. package/dist/collection/components/c-list-item/c-list-item.css +90 -0
  240. package/dist/collection/components/c-list-item/c-list-item.js +218 -0
  241. package/dist/collection/components/c-list-item/c-list-item.js.map +1 -0
  242. package/dist/collection/components/c-list-item-title/c-list-item-title.css +33 -0
  243. package/dist/collection/components/c-list-item-title/c-list-item-title.js +48 -0
  244. package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -0
  245. package/dist/collection/components/c-loader/c-loader.css +101 -0
  246. package/dist/collection/components/c-loader/c-loader.js +118 -0
  247. package/dist/collection/components/c-loader/c-loader.js.map +1 -0
  248. package/dist/collection/components/c-loader/test/c-loader.e2e.js +16 -0
  249. package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +1 -0
  250. package/dist/collection/components/c-loader/test/c-loader.spec.js +28 -0
  251. package/dist/collection/components/c-loader/test/c-loader.spec.js.map +1 -0
  252. package/dist/collection/components/c-login-button/c-login-button.css +79 -0
  253. package/dist/collection/components/c-login-button/c-login-button.js +82 -0
  254. package/dist/collection/components/c-login-button/c-login-button.js.map +1 -0
  255. package/dist/collection/components/c-login-buttons/c-login-buttons.css +23 -0
  256. package/dist/collection/components/c-login-buttons/c-login-buttons.js +19 -0
  257. package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -0
  258. package/dist/collection/components/c-login-card/c-login-card.css +88 -0
  259. package/dist/collection/components/c-login-card/c-login-card.js +171 -0
  260. package/dist/collection/components/c-login-card/c-login-card.js.map +1 -0
  261. package/dist/collection/components/c-login-card/test/c-login-card.spec.js +151 -0
  262. package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +1 -0
  263. package/dist/collection/components/c-login-card/test/c-login-card.visual.js +18 -0
  264. package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -0
  265. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +53 -0
  266. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -0
  267. package/dist/collection/components/c-login-card-content/c-login-card-content.css +26 -0
  268. package/dist/collection/components/c-login-card-content/c-login-card-content.js +19 -0
  269. package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -0
  270. package/dist/collection/components/c-login-card-title/c-login-card-title.css +31 -0
  271. package/dist/collection/components/c-login-card-title/c-login-card-title.js +19 -0
  272. package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -0
  273. package/dist/collection/components/c-main/c-main.css +34 -0
  274. package/dist/collection/components/c-main/c-main.js +19 -0
  275. package/dist/collection/components/c-main/c-main.js.map +1 -0
  276. package/dist/collection/components/c-main/test/c-main.spec.js +19 -0
  277. package/dist/collection/components/c-main/test/c-main.spec.js.map +1 -0
  278. package/dist/collection/components/c-menu/c-menu.css +117 -0
  279. package/dist/collection/components/c-menu/c-menu.js +284 -0
  280. package/dist/collection/components/c-menu/c-menu.js.map +1 -0
  281. package/dist/collection/components/c-menu/test/c-menu.spec.js +46 -0
  282. package/dist/collection/components/c-menu/test/c-menu.spec.js.map +1 -0
  283. package/dist/collection/components/c-menu/test/c-menu.visual.js +43 -0
  284. package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -0
  285. package/dist/collection/components/c-menu-items/c-menu-items.css +97 -0
  286. package/dist/collection/components/c-menu-items/c-menu-items.js +445 -0
  287. package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -0
  288. package/dist/collection/components/c-message/c-message.css +68 -0
  289. package/dist/collection/components/c-message/c-message.js +154 -0
  290. package/dist/collection/components/c-message/c-message.js.map +1 -0
  291. package/dist/collection/components/c-modal/c-modal.css +94 -0
  292. package/dist/collection/components/c-modal/c-modal.js +210 -0
  293. package/dist/collection/components/c-modal/c-modal.js.map +1 -0
  294. package/dist/collection/components/c-modal/test/c-modal.spec.js +75 -0
  295. package/dist/collection/components/c-modal/test/c-modal.spec.js.map +1 -0
  296. package/dist/collection/components/c-navigation-button/c-navigation-button.css +33 -0
  297. package/dist/collection/components/c-navigation-button/c-navigation-button.js +20 -0
  298. package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -0
  299. package/dist/collection/components/c-option/c-option.css +23 -0
  300. package/dist/collection/components/c-option/c-option.js +99 -0
  301. package/dist/collection/components/c-option/c-option.js.map +1 -0
  302. package/dist/collection/components/c-option-value/c-option-value.css +21 -0
  303. package/dist/collection/components/c-option-value/c-option-value.js +19 -0
  304. package/dist/collection/components/c-option-value/c-option-value.js.map +1 -0
  305. package/dist/collection/components/c-otp-input/c-otp-input.css +87 -0
  306. package/dist/collection/components/c-otp-input/c-otp-input.js +298 -0
  307. package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -0
  308. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +10 -0
  309. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +1 -0
  310. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +18 -0
  311. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +1 -0
  312. package/dist/collection/components/c-page/c-page.css +46 -0
  313. package/dist/collection/components/c-page/c-page.js +29 -0
  314. package/dist/collection/components/c-page/c-page.js.map +1 -0
  315. package/dist/collection/components/c-pagination/c-pagination.css +121 -0
  316. package/dist/collection/components/c-pagination/c-pagination.js +375 -0
  317. package/dist/collection/components/c-pagination/c-pagination.js.map +1 -0
  318. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +47 -0
  319. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +1 -0
  320. package/dist/collection/components/c-pagination/test/c-pagination.visual.js +42 -0
  321. package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -0
  322. package/dist/collection/components/c-progress-bar/c-progress-bar.css +137 -0
  323. package/dist/collection/components/c-progress-bar/c-progress-bar.js +153 -0
  324. package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -0
  325. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +54 -0
  326. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +1 -0
  327. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +22 -0
  328. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -0
  329. package/dist/collection/components/c-radio/c-radio.css +21 -0
  330. package/dist/collection/components/c-radio/c-radio.js +81 -0
  331. package/dist/collection/components/c-radio/c-radio.js.map +1 -0
  332. package/dist/collection/components/c-radio-group/c-radio-group.css +199 -0
  333. package/dist/collection/components/c-radio-group/c-radio-group.js +403 -0
  334. package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -0
  335. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +39 -0
  336. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +1 -0
  337. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +28 -0
  338. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +1 -0
  339. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +24 -0
  340. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -0
  341. package/dist/collection/components/c-radio-group/test/items.js +6 -0
  342. package/dist/collection/components/c-radio-group/test/items.js.map +1 -0
  343. package/dist/collection/components/c-ripple/c-ripple.css +48 -0
  344. package/dist/collection/components/c-ripple/c-ripple.js +91 -0
  345. package/dist/collection/components/c-ripple/c-ripple.js.map +1 -0
  346. package/dist/collection/components/c-row/c-row.css +66 -0
  347. package/dist/collection/components/c-row/c-row.js +121 -0
  348. package/dist/collection/components/c-row/c-row.js.map +1 -0
  349. package/dist/collection/components/c-row/test/c-row.spec.js +137 -0
  350. package/dist/collection/components/c-row/test/c-row.spec.js.map +1 -0
  351. package/dist/collection/components/c-select/c-select.css +200 -0
  352. package/dist/collection/components/c-select/c-select.js +786 -0
  353. package/dist/collection/components/c-select/c-select.js.map +1 -0
  354. package/dist/collection/components/c-select/test/c-select.e2e.js +66 -0
  355. package/dist/collection/components/c-select/test/c-select.e2e.js.map +1 -0
  356. package/dist/collection/components/c-select/test/c-select.spec.js +38 -0
  357. package/dist/collection/components/c-select/test/c-select.spec.js.map +1 -0
  358. package/dist/collection/components/c-select/test/c-select.visual.js +36 -0
  359. package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -0
  360. package/dist/collection/components/c-select/test/items.js +10 -0
  361. package/dist/collection/components/c-select/test/items.js.map +1 -0
  362. package/dist/collection/components/c-side-navigation/c-side-navigation.css +147 -0
  363. package/dist/collection/components/c-side-navigation/c-side-navigation.js +119 -0
  364. package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -0
  365. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +21 -0
  366. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +1 -0
  367. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +16 -0
  368. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -0
  369. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +168 -0
  370. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +227 -0
  371. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -0
  372. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +33 -0
  373. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +19 -0
  374. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -0
  375. package/dist/collection/components/c-spacer/c-spacer.css +21 -0
  376. package/dist/collection/components/c-spacer/c-spacer.js +19 -0
  377. package/dist/collection/components/c-spacer/c-spacer.js.map +1 -0
  378. package/dist/collection/components/c-spacer/test/c-spacer.spec.js +12 -0
  379. package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +1 -0
  380. package/dist/collection/components/c-spinner/c-spinner.css +59 -0
  381. package/dist/collection/components/c-spinner/c-spinner.js +92 -0
  382. package/dist/collection/components/c-spinner/c-spinner.js.map +1 -0
  383. package/dist/collection/components/c-status/c-status.css +74 -0
  384. package/dist/collection/components/c-status/c-status.js +44 -0
  385. package/dist/collection/components/c-status/c-status.js.map +1 -0
  386. package/dist/collection/components/c-status/test/c-status.spec.js +40 -0
  387. package/dist/collection/components/c-status/test/c-status.spec.js.map +1 -0
  388. package/dist/collection/components/c-status/test/c-status.visual.js +10 -0
  389. package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -0
  390. package/dist/collection/components/c-step/c-step.css +104 -0
  391. package/dist/collection/components/c-step/c-step.js +73 -0
  392. package/dist/collection/components/c-step/c-step.js.map +1 -0
  393. package/dist/collection/components/c-steps/c-steps.css +81 -0
  394. package/dist/collection/components/c-steps/c-steps.js +125 -0
  395. package/dist/collection/components/c-steps/c-steps.js.map +1 -0
  396. package/dist/collection/components/c-steps/test/c-steps.e2e.js +35 -0
  397. package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +1 -0
  398. package/dist/collection/components/c-steps/test/c-steps.visual.js +19 -0
  399. package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -0
  400. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +184 -0
  401. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +143 -0
  402. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -0
  403. package/dist/collection/components/c-swiper/c-swiper.css +317 -0
  404. package/dist/collection/components/c-swiper/c-swiper.js +214 -0
  405. package/dist/collection/components/c-swiper/c-swiper.js.map +1 -0
  406. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +83 -0
  407. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +1 -0
  408. package/dist/collection/components/c-swiper/test/c-swiper.visual.js +20 -0
  409. package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -0
  410. package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +115 -0
  411. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +207 -0
  412. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -0
  413. package/dist/collection/components/c-switch/c-switch.css +138 -0
  414. package/dist/collection/components/c-switch/c-switch.js +216 -0
  415. package/dist/collection/components/c-switch/c-switch.js.map +1 -0
  416. package/dist/collection/components/c-switch/test/c-switch.e2e.js +51 -0
  417. package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +1 -0
  418. package/dist/collection/components/c-switch/test/c-switch.spec.js +40 -0
  419. package/dist/collection/components/c-switch/test/c-switch.spec.js.map +1 -0
  420. package/dist/collection/components/c-switch/test/c-switch.visual.js +28 -0
  421. package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -0
  422. package/dist/collection/components/c-tab/c-tab.css +101 -0
  423. package/dist/collection/components/c-tab/c-tab.js +230 -0
  424. package/dist/collection/components/c-tab/c-tab.js.map +1 -0
  425. package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +108 -0
  426. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +271 -0
  427. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -0
  428. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +91 -0
  429. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +1 -0
  430. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +42 -0
  431. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +1 -0
  432. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +47 -0
  433. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -0
  434. package/dist/collection/components/c-tab-item/c-tab-item.css +41 -0
  435. package/dist/collection/components/c-tab-item/c-tab-item.js +99 -0
  436. package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -0
  437. package/dist/collection/components/c-tab-items/c-tab-items.css +34 -0
  438. package/dist/collection/components/c-tab-items/c-tab-items.js +140 -0
  439. package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -0
  440. package/dist/collection/components/c-table/c-table.css +143 -0
  441. package/dist/collection/components/c-table/c-table.js +86 -0
  442. package/dist/collection/components/c-table/c-table.js.map +1 -0
  443. package/dist/collection/components/c-tabs/c-tabs.css +167 -0
  444. package/dist/collection/components/c-tabs/c-tabs.js +598 -0
  445. package/dist/collection/components/c-tabs/c-tabs.js.map +1 -0
  446. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +74 -0
  447. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +1 -0
  448. package/dist/collection/components/c-tabs/test/c-tabs.spec.js +85 -0
  449. package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +1 -0
  450. package/dist/collection/components/c-tabs/test/c-tabs.visual.js +16 -0
  451. package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -0
  452. package/dist/collection/components/c-tag/c-tag.css +146 -0
  453. package/dist/collection/components/c-tag/c-tag.js +174 -0
  454. package/dist/collection/components/c-tag/c-tag.js.map +1 -0
  455. package/dist/collection/components/c-tag/test/c-tag.spec.js +50 -0
  456. package/dist/collection/components/c-tag/test/c-tag.spec.js.map +1 -0
  457. package/dist/collection/components/c-tag/test/c-tag.visual.js +26 -0
  458. package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -0
  459. package/dist/collection/components/c-tags/c-tags.css +25 -0
  460. package/dist/collection/components/c-tags/c-tags.js +19 -0
  461. package/dist/collection/components/c-tags/c-tags.js.map +1 -0
  462. package/dist/collection/components/c-text-field/c-text-field.css +73 -0
  463. package/dist/collection/components/c-text-field/c-text-field.js +639 -0
  464. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -0
  465. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +12 -0
  466. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +1 -0
  467. package/dist/collection/components/c-text-field/test/c-text-field.spec.js +33 -0
  468. package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +1 -0
  469. package/dist/collection/components/c-text-field/test/c-text-field.visual.js +41 -0
  470. package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -0
  471. package/dist/collection/components/c-toast/c-toast.css +156 -0
  472. package/dist/collection/components/c-toast/c-toast.js +145 -0
  473. package/dist/collection/components/c-toast/c-toast.js.map +1 -0
  474. package/dist/collection/components/c-toasts/c-toasts.css +61 -0
  475. package/dist/collection/components/c-toasts/c-toasts.js +196 -0
  476. package/dist/collection/components/c-toasts/c-toasts.js.map +1 -0
  477. package/dist/collection/components/c-toasts/test/c-toasts.spec.js +61 -0
  478. package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +1 -0
  479. package/dist/collection/components/c-toasts/test/c-toasts.visual.js +27 -0
  480. package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -0
  481. package/dist/collection/components/c-toolbar/c-toolbar.css +49 -0
  482. package/dist/collection/components/c-toolbar/c-toolbar.js +19 -0
  483. package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -0
  484. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +12 -0
  485. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +1 -0
  486. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +10 -0
  487. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -0
  488. package/dist/collection/dist/styles/css/c-data-table.css +10 -0
  489. package/dist/collection/dist/styles/css/theme.css +100 -0
  490. package/dist/collection/dist/styles/css/typography.css +10 -0
  491. package/dist/collection/dist/styles/scss/_c-data-table.scss +7 -0
  492. package/dist/collection/dist/styles/scss/_theme.scss +97 -0
  493. package/dist/collection/dist/styles/scss/_typography.scss +7 -0
  494. package/dist/collection/dist/styles/tailwind/theme.js +117 -0
  495. package/dist/collection/dist/styles/variables.css +111 -0
  496. package/dist/collection/dist/styles/variables.scss +108 -0
  497. package/dist/collection/index.js +3 -0
  498. package/dist/collection/index.js.map +1 -0
  499. package/dist/collection/styles/tailwind/theme.js +117 -0
  500. package/dist/collection/types/index.js +20 -0
  501. package/dist/collection/types/index.js.map +1 -0
  502. package/dist/collection/utils/test/sleep.js +2 -0
  503. package/dist/collection/utils/test/sleep.js.map +1 -0
  504. package/dist/collection/utils/test/takeScreenshot.js +11 -0
  505. package/dist/collection/utils/test/takeScreenshot.js.map +1 -0
  506. package/dist/components/c-accordion-item.d.ts +11 -0
  507. package/dist/components/c-accordion-item.js +144 -0
  508. package/dist/components/c-accordion-item.js.map +1 -0
  509. package/dist/components/c-accordion.d.ts +11 -0
  510. package/dist/components/c-accordion.js +89 -0
  511. package/dist/components/c-accordion.js.map +1 -0
  512. package/dist/components/c-alert.d.ts +11 -0
  513. package/dist/components/c-alert.js +46 -0
  514. package/dist/components/c-alert.js.map +1 -0
  515. package/dist/components/c-autocomplete.d.ts +11 -0
  516. package/dist/components/c-autocomplete.js +335 -0
  517. package/dist/components/c-autocomplete.js.map +1 -0
  518. package/dist/components/c-badge.d.ts +11 -0
  519. package/dist/components/c-badge.js +8 -0
  520. package/dist/components/c-badge.js.map +1 -0
  521. package/dist/components/c-badge2.js +32 -0
  522. package/dist/components/c-badge2.js.map +1 -0
  523. package/dist/components/c-button.d.ts +11 -0
  524. package/dist/components/c-button.js +191 -0
  525. package/dist/components/c-button.js.map +1 -0
  526. package/dist/components/c-card-actions.d.ts +11 -0
  527. package/dist/components/c-card-actions.js +8 -0
  528. package/dist/components/c-card-actions.js.map +1 -0
  529. package/dist/components/c-card-actions2.js +42 -0
  530. package/dist/components/c-card-actions2.js.map +1 -0
  531. package/dist/components/c-card-content.d.ts +11 -0
  532. package/dist/components/c-card-content.js +35 -0
  533. package/dist/components/c-card-content.js.map +1 -0
  534. package/dist/components/c-card-title.d.ts +11 -0
  535. package/dist/components/c-card-title.js +35 -0
  536. package/dist/components/c-card-title.js.map +1 -0
  537. package/dist/components/c-card.d.ts +11 -0
  538. package/dist/components/c-card.js +118 -0
  539. package/dist/components/c-card.js.map +1 -0
  540. package/dist/components/c-checkbox.d.ts +11 -0
  541. package/dist/components/c-checkbox.js +8 -0
  542. package/dist/components/c-checkbox.js.map +1 -0
  543. package/dist/components/c-checkbox2.js +153 -0
  544. package/dist/components/c-checkbox2.js.map +1 -0
  545. package/dist/components/c-csc-logo.d.ts +11 -0
  546. package/dist/components/c-csc-logo.js +39 -0
  547. package/dist/components/c-csc-logo.js.map +1 -0
  548. package/dist/components/c-data-table.d.ts +11 -0
  549. package/dist/components/c-data-table.js +815 -0
  550. package/dist/components/c-data-table.js.map +1 -0
  551. package/dist/components/c-dropdown.d.ts +11 -0
  552. package/dist/components/c-dropdown.js +8 -0
  553. package/dist/components/c-dropdown.js.map +1 -0
  554. package/dist/components/c-dropdown2.js +504 -0
  555. package/dist/components/c-dropdown2.js.map +1 -0
  556. package/dist/components/c-dropdowns.d.ts +11 -0
  557. package/dist/components/c-dropdowns.js +8 -0
  558. package/dist/components/c-dropdowns.js.map +1 -0
  559. package/dist/components/c-dropdowns2.js +60 -0
  560. package/dist/components/c-dropdowns2.js.map +1 -0
  561. package/dist/components/c-icon-button.d.ts +11 -0
  562. package/dist/components/c-icon-button.js +8 -0
  563. package/dist/components/c-icon-button.js.map +1 -0
  564. package/dist/components/c-icon-button2.js +95 -0
  565. package/dist/components/c-icon-button2.js.map +1 -0
  566. package/dist/components/c-icon.d.ts +11 -0
  567. package/dist/components/c-icon.js +8 -0
  568. package/dist/components/c-icon.js.map +1 -0
  569. package/dist/components/c-icon2.js +43 -0
  570. package/dist/components/c-icon2.js.map +1 -0
  571. package/dist/components/c-input.d.ts +11 -0
  572. package/dist/components/c-input.js +8 -0
  573. package/dist/components/c-input.js.map +1 -0
  574. package/dist/components/c-input2.js +373 -0
  575. package/dist/components/c-input2.js.map +1 -0
  576. package/dist/components/c-link.d.ts +11 -0
  577. package/dist/components/c-link.js +50 -0
  578. package/dist/components/c-link.js.map +1 -0
  579. package/dist/components/c-list-item-title.d.ts +11 -0
  580. package/dist/components/c-list-item-title.js +42 -0
  581. package/dist/components/c-list-item-title.js.map +1 -0
  582. package/dist/components/c-list-item.d.ts +11 -0
  583. package/dist/components/c-list-item.js +113 -0
  584. package/dist/components/c-list-item.js.map +1 -0
  585. package/dist/components/c-list.d.ts +11 -0
  586. package/dist/components/c-list.js +62 -0
  587. package/dist/components/c-list.js.map +1 -0
  588. package/dist/components/c-loader.d.ts +11 -0
  589. package/dist/components/c-loader.js +8 -0
  590. package/dist/components/c-loader.js.map +1 -0
  591. package/dist/components/c-loader2.js +63 -0
  592. package/dist/components/c-loader2.js.map +1 -0
  593. package/dist/components/c-login-button.d.ts +11 -0
  594. package/dist/components/c-login-button.js +43 -0
  595. package/dist/components/c-login-button.js.map +1 -0
  596. package/dist/components/c-login-buttons.d.ts +11 -0
  597. package/dist/components/c-login-buttons.js +35 -0
  598. package/dist/components/c-login-buttons.js.map +1 -0
  599. package/dist/components/c-login-card-actions.d.ts +11 -0
  600. package/dist/components/c-login-card-actions.js +43 -0
  601. package/dist/components/c-login-card-actions.js.map +1 -0
  602. package/dist/components/c-login-card-content.d.ts +11 -0
  603. package/dist/components/c-login-card-content.js +35 -0
  604. package/dist/components/c-login-card-content.js.map +1 -0
  605. package/dist/components/c-login-card-title.d.ts +11 -0
  606. package/dist/components/c-login-card-title.js +35 -0
  607. package/dist/components/c-login-card-title.js.map +1 -0
  608. package/dist/components/c-login-card.d.ts +11 -0
  609. package/dist/components/c-login-card.js +87 -0
  610. package/dist/components/c-login-card.js.map +1 -0
  611. package/dist/components/c-main.d.ts +11 -0
  612. package/dist/components/c-main.js +35 -0
  613. package/dist/components/c-main.js.map +1 -0
  614. package/dist/components/c-menu-items.d.ts +11 -0
  615. package/dist/components/c-menu-items.js +8 -0
  616. package/dist/components/c-menu-items.js.map +1 -0
  617. package/dist/components/c-menu-items2.js +236 -0
  618. package/dist/components/c-menu-items2.js.map +1 -0
  619. package/dist/components/c-menu.d.ts +11 -0
  620. package/dist/components/c-menu.js +8 -0
  621. package/dist/components/c-menu.js.map +1 -0
  622. package/dist/components/c-menu2.js +185 -0
  623. package/dist/components/c-menu2.js.map +1 -0
  624. package/dist/components/c-message.d.ts +11 -0
  625. package/dist/components/c-message.js +8 -0
  626. package/dist/components/c-message.js.map +1 -0
  627. package/dist/components/c-message2.js +88 -0
  628. package/dist/components/c-message2.js.map +1 -0
  629. package/dist/components/c-modal.d.ts +11 -0
  630. package/dist/components/c-modal.js +131 -0
  631. package/dist/components/c-modal.js.map +1 -0
  632. package/dist/components/c-navigation-button.d.ts +11 -0
  633. package/dist/components/c-navigation-button.js +66 -0
  634. package/dist/components/c-navigation-button.js.map +1 -0
  635. package/dist/components/c-option-value.d.ts +11 -0
  636. package/dist/components/c-option-value.js +35 -0
  637. package/dist/components/c-option-value.js.map +1 -0
  638. package/dist/components/c-option.d.ts +11 -0
  639. package/dist/components/c-option.js +44 -0
  640. package/dist/components/c-option.js.map +1 -0
  641. package/dist/components/c-otp-input.d.ts +11 -0
  642. package/dist/components/c-otp-input.js +178 -0
  643. package/dist/components/c-otp-input.js.map +1 -0
  644. package/dist/components/c-page.d.ts +11 -0
  645. package/dist/components/c-page.js +45 -0
  646. package/dist/components/c-page.js.map +1 -0
  647. package/dist/components/c-pagination.d.ts +11 -0
  648. package/dist/components/c-pagination.js +8 -0
  649. package/dist/components/c-pagination.js.map +1 -0
  650. package/dist/components/c-pagination2.js +293 -0
  651. package/dist/components/c-pagination2.js.map +1 -0
  652. package/dist/components/c-progress-bar.d.ts +11 -0
  653. package/dist/components/c-progress-bar.js +79 -0
  654. package/dist/components/c-progress-bar.js.map +1 -0
  655. package/dist/components/c-radio-group.d.ts +11 -0
  656. package/dist/components/c-radio-group.js +185 -0
  657. package/dist/components/c-radio-group.js.map +1 -0
  658. package/dist/components/c-radio.d.ts +11 -0
  659. package/dist/components/c-radio.js +42 -0
  660. package/dist/components/c-radio.js.map +1 -0
  661. package/dist/components/c-ripple.d.ts +11 -0
  662. package/dist/components/c-ripple.js +8 -0
  663. package/dist/components/c-ripple.js.map +1 -0
  664. package/dist/components/c-ripple2.js +68 -0
  665. package/dist/components/c-ripple2.js.map +1 -0
  666. package/dist/components/c-row.d.ts +11 -0
  667. package/dist/components/c-row.js +54 -0
  668. package/dist/components/c-row.js.map +1 -0
  669. package/dist/components/c-select.d.ts +11 -0
  670. package/dist/components/c-select.js +402 -0
  671. package/dist/components/c-select.js.map +1 -0
  672. package/dist/components/c-side-navigation-item.d.ts +11 -0
  673. package/dist/components/c-side-navigation-item.js +154 -0
  674. package/dist/components/c-side-navigation-item.js.map +1 -0
  675. package/dist/components/c-side-navigation-title.d.ts +11 -0
  676. package/dist/components/c-side-navigation-title.js +35 -0
  677. package/dist/components/c-side-navigation-title.js.map +1 -0
  678. package/dist/components/c-side-navigation.d.ts +11 -0
  679. package/dist/components/c-side-navigation.js +118 -0
  680. package/dist/components/c-side-navigation.js.map +1 -0
  681. package/dist/components/c-spacer.d.ts +11 -0
  682. package/dist/components/c-spacer.js +8 -0
  683. package/dist/components/c-spacer.js.map +1 -0
  684. package/dist/components/c-spacer2.js +32 -0
  685. package/dist/components/c-spacer2.js.map +1 -0
  686. package/dist/components/c-spinner.d.ts +11 -0
  687. package/dist/components/c-spinner.js +8 -0
  688. package/dist/components/c-spinner.js.map +1 -0
  689. package/dist/components/c-spinner2.js +49 -0
  690. package/dist/components/c-spinner2.js.map +1 -0
  691. package/dist/components/c-status.d.ts +11 -0
  692. package/dist/components/c-status.js +39 -0
  693. package/dist/components/c-status.js.map +1 -0
  694. package/dist/components/c-step.d.ts +11 -0
  695. package/dist/components/c-step.js +44 -0
  696. package/dist/components/c-step.js.map +1 -0
  697. package/dist/components/c-steps.d.ts +11 -0
  698. package/dist/components/c-steps.js +98 -0
  699. package/dist/components/c-steps.js.map +1 -0
  700. package/dist/components/c-sub-navigation-item.d.ts +11 -0
  701. package/dist/components/c-sub-navigation-item.js +83 -0
  702. package/dist/components/c-sub-navigation-item.js.map +1 -0
  703. package/dist/components/c-swiper-tab.d.ts +11 -0
  704. package/dist/components/c-swiper-tab.js +75 -0
  705. package/dist/components/c-swiper-tab.js.map +1 -0
  706. package/dist/components/c-swiper.d.ts +11 -0
  707. package/dist/components/c-swiper.js +4230 -0
  708. package/dist/components/c-swiper.js.map +1 -0
  709. package/dist/components/c-switch.d.ts +11 -0
  710. package/dist/components/c-switch.js +88 -0
  711. package/dist/components/c-switch.js.map +1 -0
  712. package/dist/components/c-tab-buttons.d.ts +11 -0
  713. package/dist/components/c-tab-buttons.js +155 -0
  714. package/dist/components/c-tab-buttons.js.map +1 -0
  715. package/dist/components/c-tab-item.d.ts +11 -0
  716. package/dist/components/c-tab-item.js +57 -0
  717. package/dist/components/c-tab-item.js.map +1 -0
  718. package/dist/components/c-tab-items.d.ts +11 -0
  719. package/dist/components/c-tab-items.js +101 -0
  720. package/dist/components/c-tab-items.js.map +1 -0
  721. package/dist/components/c-tab.d.ts +11 -0
  722. package/dist/components/c-tab.js +86 -0
  723. package/dist/components/c-tab.js.map +1 -0
  724. package/dist/components/c-table.d.ts +11 -0
  725. package/dist/components/c-table.js +63 -0
  726. package/dist/components/c-table.js.map +1 -0
  727. package/dist/components/c-tabs.d.ts +11 -0
  728. package/dist/components/c-tabs.js +481 -0
  729. package/dist/components/c-tabs.js.map +1 -0
  730. package/dist/components/c-tag.d.ts +11 -0
  731. package/dist/components/c-tag.js +96 -0
  732. package/dist/components/c-tag.js.map +1 -0
  733. package/dist/components/c-tags.d.ts +11 -0
  734. package/dist/components/c-tags.js +35 -0
  735. package/dist/components/c-tags.js.map +1 -0
  736. package/dist/components/c-text-field.d.ts +11 -0
  737. package/dist/components/c-text-field.js +220 -0
  738. package/dist/components/c-text-field.js.map +1 -0
  739. package/dist/components/c-toast.d.ts +11 -0
  740. package/dist/components/c-toast.js +8 -0
  741. package/dist/components/c-toast.js.map +1 -0
  742. package/dist/components/c-toast2.js +93 -0
  743. package/dist/components/c-toast2.js.map +1 -0
  744. package/dist/components/c-toasts.d.ts +11 -0
  745. package/dist/components/c-toasts.js +113 -0
  746. package/dist/components/c-toasts.js.map +1 -0
  747. package/dist/components/c-toolbar.d.ts +11 -0
  748. package/dist/components/c-toolbar.js +35 -0
  749. package/dist/components/c-toolbar.js.map +1 -0
  750. package/dist/components/index.d.ts +33 -0
  751. package/dist/components/index.js +4 -0
  752. package/dist/components/index.js.map +1 -0
  753. package/dist/components/index2.js +23 -0
  754. package/dist/components/index2.js.map +1 -0
  755. package/dist/components/mdi.js +25 -0
  756. package/dist/components/mdi.js.map +1 -0
  757. package/dist/csc-ui/assets/puhti.gif +0 -0
  758. package/dist/csc-ui/csc-ui.esm.js +2 -0
  759. package/dist/csc-ui/csc-ui.esm.js.map +1 -0
  760. package/dist/csc-ui/dist/styles/css/c-data-table.css +10 -0
  761. package/dist/csc-ui/dist/styles/css/theme.css +100 -0
  762. package/dist/csc-ui/dist/styles/css/typography.css +10 -0
  763. package/dist/csc-ui/dist/styles/scss/_c-data-table.scss +7 -0
  764. package/dist/csc-ui/dist/styles/scss/_theme.scss +97 -0
  765. package/dist/csc-ui/dist/styles/scss/_typography.scss +7 -0
  766. package/dist/csc-ui/dist/styles/tailwind/theme.js +117 -0
  767. package/dist/csc-ui/dist/styles/variables.css +111 -0
  768. package/dist/csc-ui/dist/styles/variables.scss +108 -0
  769. package/dist/csc-ui/index.esm.js +2 -0
  770. package/dist/csc-ui/index.esm.js.map +1 -0
  771. package/dist/csc-ui/p-0355c094.entry.js +2 -0
  772. package/dist/csc-ui/p-0355c094.entry.js.map +1 -0
  773. package/dist/csc-ui/p-0c7c2bbd.entry.js +2 -0
  774. package/dist/csc-ui/p-0c7c2bbd.entry.js.map +1 -0
  775. package/dist/csc-ui/p-177f7d7d.entry.js +2 -0
  776. package/dist/csc-ui/p-177f7d7d.entry.js.map +1 -0
  777. package/dist/csc-ui/p-20282d86.entry.js +2 -0
  778. package/dist/csc-ui/p-20282d86.entry.js.map +1 -0
  779. package/dist/csc-ui/p-21f39647.entry.js +2 -0
  780. package/dist/csc-ui/p-21f39647.entry.js.map +1 -0
  781. package/dist/csc-ui/p-2318ba6b.entry.js +2 -0
  782. package/dist/csc-ui/p-2318ba6b.entry.js.map +1 -0
  783. package/dist/csc-ui/p-2bf78691.entry.js +2 -0
  784. package/dist/csc-ui/p-2bf78691.entry.js.map +1 -0
  785. package/dist/csc-ui/p-319fba28.entry.js +2 -0
  786. package/dist/csc-ui/p-319fba28.entry.js.map +1 -0
  787. package/dist/csc-ui/p-33e42eb8.entry.js +2 -0
  788. package/dist/csc-ui/p-33e42eb8.entry.js.map +1 -0
  789. package/dist/csc-ui/p-3c11dfb2.entry.js +2 -0
  790. package/dist/csc-ui/p-3c11dfb2.entry.js.map +1 -0
  791. package/dist/csc-ui/p-3e4869bf.entry.js +2 -0
  792. package/dist/csc-ui/p-3e4869bf.entry.js.map +1 -0
  793. package/dist/csc-ui/p-3ec3f184.entry.js +2 -0
  794. package/dist/csc-ui/p-3ec3f184.entry.js.map +1 -0
  795. package/dist/csc-ui/p-3f35766b.entry.js +2 -0
  796. package/dist/csc-ui/p-3f35766b.entry.js.map +1 -0
  797. package/dist/csc-ui/p-425ca7aa.entry.js +2 -0
  798. package/dist/csc-ui/p-425ca7aa.entry.js.map +1 -0
  799. package/dist/csc-ui/p-49726bd5.entry.js +2 -0
  800. package/dist/csc-ui/p-49726bd5.entry.js.map +1 -0
  801. package/dist/csc-ui/p-540e681a.entry.js +2 -0
  802. package/dist/csc-ui/p-540e681a.entry.js.map +1 -0
  803. package/dist/csc-ui/p-593b6720.entry.js +2 -0
  804. package/dist/csc-ui/p-593b6720.entry.js.map +1 -0
  805. package/dist/csc-ui/p-626c6afe.entry.js +2 -0
  806. package/dist/csc-ui/p-626c6afe.entry.js.map +1 -0
  807. package/dist/csc-ui/p-6e90cdfb.entry.js +2 -0
  808. package/dist/csc-ui/p-6e90cdfb.entry.js.map +1 -0
  809. package/dist/csc-ui/p-7092cd6c.entry.js +2 -0
  810. package/dist/csc-ui/p-7092cd6c.entry.js.map +1 -0
  811. package/dist/csc-ui/p-771adfde.entry.js +2 -0
  812. package/dist/csc-ui/p-771adfde.entry.js.map +1 -0
  813. package/dist/csc-ui/p-7d76025c.entry.js +2 -0
  814. package/dist/csc-ui/p-7d76025c.entry.js.map +1 -0
  815. package/dist/csc-ui/p-816f84b2.entry.js +2 -0
  816. package/dist/csc-ui/p-816f84b2.entry.js.map +1 -0
  817. package/dist/csc-ui/p-86a96319.entry.js +2 -0
  818. package/dist/csc-ui/p-86a96319.entry.js.map +1 -0
  819. package/dist/csc-ui/p-87c39c69.entry.js +2 -0
  820. package/dist/csc-ui/p-87c39c69.entry.js.map +1 -0
  821. package/dist/csc-ui/p-89d6e4c6.entry.js +2 -0
  822. package/dist/csc-ui/p-89d6e4c6.entry.js.map +1 -0
  823. package/dist/csc-ui/p-8d3a455f.entry.js +2 -0
  824. package/dist/csc-ui/p-8d3a455f.entry.js.map +1 -0
  825. package/dist/csc-ui/p-8e08df79.entry.js +2 -0
  826. package/dist/csc-ui/p-8e08df79.entry.js.map +1 -0
  827. package/dist/csc-ui/p-982b94a7.entry.js +2 -0
  828. package/dist/csc-ui/p-982b94a7.entry.js.map +1 -0
  829. package/dist/csc-ui/p-993583f1.entry.js +2 -0
  830. package/dist/csc-ui/p-993583f1.entry.js.map +1 -0
  831. package/dist/csc-ui/p-9936c5e9.entry.js +2 -0
  832. package/dist/csc-ui/p-9936c5e9.entry.js.map +1 -0
  833. package/dist/csc-ui/p-9ad61903.entry.js +2 -0
  834. package/dist/csc-ui/p-9ad61903.entry.js.map +1 -0
  835. package/dist/csc-ui/p-9bda8e49.entry.js +2 -0
  836. package/dist/csc-ui/p-9bda8e49.entry.js.map +1 -0
  837. package/dist/csc-ui/p-9d54e9a4.js +3 -0
  838. package/dist/csc-ui/p-9d54e9a4.js.map +1 -0
  839. package/dist/csc-ui/p-a7a7f6ab.entry.js +2 -0
  840. package/dist/csc-ui/p-a7a7f6ab.entry.js.map +1 -0
  841. package/dist/csc-ui/p-a9441233.entry.js +2 -0
  842. package/dist/csc-ui/p-a9441233.entry.js.map +1 -0
  843. package/dist/csc-ui/p-b7dcfced.entry.js +2 -0
  844. package/dist/csc-ui/p-b7dcfced.entry.js.map +1 -0
  845. package/dist/csc-ui/p-bc1000f3.entry.js +2 -0
  846. package/dist/csc-ui/p-bc1000f3.entry.js.map +1 -0
  847. package/dist/csc-ui/p-bf6d76df.entry.js +2 -0
  848. package/dist/csc-ui/p-bf6d76df.entry.js.map +1 -0
  849. package/dist/csc-ui/p-bf8bc8d7.entry.js +2 -0
  850. package/dist/csc-ui/p-bf8bc8d7.entry.js.map +1 -0
  851. package/dist/csc-ui/p-c101d987.entry.js +2 -0
  852. package/dist/csc-ui/p-c101d987.entry.js.map +1 -0
  853. package/dist/csc-ui/p-c4122519.entry.js +2 -0
  854. package/dist/csc-ui/p-c4122519.entry.js.map +1 -0
  855. package/dist/csc-ui/p-c5847170.entry.js +2 -0
  856. package/dist/csc-ui/p-c5847170.entry.js.map +1 -0
  857. package/dist/csc-ui/p-d18578fc.entry.js +2 -0
  858. package/dist/csc-ui/p-d18578fc.entry.js.map +1 -0
  859. package/dist/csc-ui/p-d3659ea8.entry.js +2 -0
  860. package/dist/csc-ui/p-d3659ea8.entry.js.map +1 -0
  861. package/dist/csc-ui/p-dffa1f9f.js +2 -0
  862. package/dist/csc-ui/p-dffa1f9f.js.map +1 -0
  863. package/dist/csc-ui/p-e81aa4e4.entry.js +2 -0
  864. package/dist/csc-ui/p-e81aa4e4.entry.js.map +1 -0
  865. package/dist/csc-ui/p-e8cddda8.entry.js +2 -0
  866. package/dist/csc-ui/p-e8cddda8.entry.js.map +1 -0
  867. package/dist/csc-ui/p-e970fa68.entry.js +2 -0
  868. package/dist/csc-ui/p-e970fa68.entry.js.map +1 -0
  869. package/dist/csc-ui/p-edb164fa.entry.js +2 -0
  870. package/dist/csc-ui/p-edb164fa.entry.js.map +1 -0
  871. package/dist/csc-ui/p-f327adbb.entry.js +2 -0
  872. package/dist/csc-ui/p-f327adbb.entry.js.map +1 -0
  873. package/dist/csc-ui/p-f32832e3.entry.js +2 -0
  874. package/dist/csc-ui/p-f32832e3.entry.js.map +1 -0
  875. package/dist/csc-ui/p-f65ed4bf.entry.js +2 -0
  876. package/dist/csc-ui/p-f65ed4bf.entry.js.map +1 -0
  877. package/dist/csc-ui/p-fa86088a.entry.js +2 -0
  878. package/dist/csc-ui/p-fa86088a.entry.js.map +1 -0
  879. package/dist/csc-ui/p-fafac729.js +2 -0
  880. package/dist/csc-ui/p-fafac729.js.map +1 -0
  881. package/dist/csc-ui/p-fc284e52.entry.js +2 -0
  882. package/dist/csc-ui/p-fc284e52.entry.js.map +1 -0
  883. package/dist/csc-ui/p-fe217f6c.entry.js +2 -0
  884. package/dist/csc-ui/p-fe217f6c.entry.js.map +1 -0
  885. package/dist/esm/c-accordion-item.entry.js +114 -0
  886. package/dist/esm/c-accordion-item.entry.js.map +1 -0
  887. package/dist/esm/c-accordion.entry.js +64 -0
  888. package/dist/esm/c-accordion.entry.js.map +1 -0
  889. package/dist/esm/c-alert.entry.js +26 -0
  890. package/dist/esm/c-alert.entry.js.map +1 -0
  891. package/dist/esm/c-autocomplete.entry.js +259 -0
  892. package/dist/esm/c-autocomplete.entry.js.map +1 -0
  893. package/dist/esm/c-badge_12.entry.js +427 -0
  894. package/dist/esm/c-badge_12.entry.js.map +1 -0
  895. package/dist/esm/c-card-actions.entry.js +24 -0
  896. package/dist/esm/c-card-actions.entry.js.map +1 -0
  897. package/dist/esm/c-card-content.entry.js +17 -0
  898. package/dist/esm/c-card-content.entry.js.map +1 -0
  899. package/dist/esm/c-card-title.entry.js +17 -0
  900. package/dist/esm/c-card-title.entry.js.map +1 -0
  901. package/dist/esm/c-checkbox_2.entry.js +337 -0
  902. package/dist/esm/c-checkbox_2.entry.js.map +1 -0
  903. package/dist/esm/c-data-table.entry.js +697 -0
  904. package/dist/esm/c-data-table.entry.js.map +1 -0
  905. package/dist/esm/c-dropdown_4.entry.js +830 -0
  906. package/dist/esm/c-dropdown_4.entry.js.map +1 -0
  907. package/dist/esm/c-link.entry.js +27 -0
  908. package/dist/esm/c-link.entry.js.map +1 -0
  909. package/dist/esm/c-list-item-title.entry.js +22 -0
  910. package/dist/esm/c-list-item-title.entry.js.map +1 -0
  911. package/dist/esm/c-list-item.entry.js +79 -0
  912. package/dist/esm/c-list-item.entry.js.map +1 -0
  913. package/dist/esm/c-list.entry.js +41 -0
  914. package/dist/esm/c-list.entry.js.map +1 -0
  915. package/dist/esm/c-loader.entry.js +35 -0
  916. package/dist/esm/c-loader.entry.js.map +1 -0
  917. package/dist/esm/c-login-button.entry.js +21 -0
  918. package/dist/esm/c-login-button.entry.js.map +1 -0
  919. package/dist/esm/c-login-buttons.entry.js +17 -0
  920. package/dist/esm/c-login-buttons.entry.js.map +1 -0
  921. package/dist/esm/c-login-card-actions.entry.js +16 -0
  922. package/dist/esm/c-login-card-actions.entry.js.map +1 -0
  923. package/dist/esm/c-login-card-content.entry.js +17 -0
  924. package/dist/esm/c-login-card-content.entry.js.map +1 -0
  925. package/dist/esm/c-login-card-title.entry.js +17 -0
  926. package/dist/esm/c-login-card-title.entry.js.map +1 -0
  927. package/dist/esm/c-login-card.entry.js +62 -0
  928. package/dist/esm/c-login-card.entry.js.map +1 -0
  929. package/dist/esm/c-menu_2.entry.js +349 -0
  930. package/dist/esm/c-menu_2.entry.js.map +1 -0
  931. package/dist/esm/c-modal.entry.js +104 -0
  932. package/dist/esm/c-modal.entry.js.map +1 -0
  933. package/dist/esm/c-navigation-button.entry.js +18 -0
  934. package/dist/esm/c-navigation-button.entry.js.map +1 -0
  935. package/dist/esm/c-option-value.entry.js +17 -0
  936. package/dist/esm/c-option-value.entry.js.map +1 -0
  937. package/dist/esm/c-option.entry.js +21 -0
  938. package/dist/esm/c-option.entry.js.map +1 -0
  939. package/dist/esm/c-otp-input.entry.js +150 -0
  940. package/dist/esm/c-otp-input.entry.js.map +1 -0
  941. package/dist/esm/c-page.entry.js +27 -0
  942. package/dist/esm/c-page.entry.js.map +1 -0
  943. package/dist/esm/c-progress-bar.entry.js +55 -0
  944. package/dist/esm/c-progress-bar.entry.js.map +1 -0
  945. package/dist/esm/c-radio-group.entry.js +150 -0
  946. package/dist/esm/c-radio-group.entry.js.map +1 -0
  947. package/dist/esm/c-radio.entry.js +20 -0
  948. package/dist/esm/c-radio.entry.js.map +1 -0
  949. package/dist/esm/c-select.entry.js +327 -0
  950. package/dist/esm/c-select.entry.js.map +1 -0
  951. package/dist/esm/c-side-navigation-item.entry.js +117 -0
  952. package/dist/esm/c-side-navigation-item.entry.js.map +1 -0
  953. package/dist/esm/c-side-navigation-title.entry.js +17 -0
  954. package/dist/esm/c-side-navigation-title.entry.js.map +1 -0
  955. package/dist/esm/c-side-navigation.entry.js +67 -0
  956. package/dist/esm/c-side-navigation.entry.js.map +1 -0
  957. package/dist/esm/c-status.entry.js +19 -0
  958. package/dist/esm/c-status.entry.js.map +1 -0
  959. package/dist/esm/c-step.entry.js +23 -0
  960. package/dist/esm/c-step.entry.js.map +1 -0
  961. package/dist/esm/c-steps.entry.js +74 -0
  962. package/dist/esm/c-steps.entry.js.map +1 -0
  963. package/dist/esm/c-sub-navigation-item.entry.js +47 -0
  964. package/dist/esm/c-sub-navigation-item.entry.js.map +1 -0
  965. package/dist/esm/c-swiper-tab.entry.js +43 -0
  966. package/dist/esm/c-swiper-tab.entry.js.map +1 -0
  967. package/dist/esm/c-swiper.entry.js +4183 -0
  968. package/dist/esm/c-swiper.entry.js.map +1 -0
  969. package/dist/esm/c-switch.entry.js +67 -0
  970. package/dist/esm/c-switch.entry.js.map +1 -0
  971. package/dist/esm/c-tab-buttons.entry.js +129 -0
  972. package/dist/esm/c-tab-buttons.entry.js.map +1 -0
  973. package/dist/esm/c-tab-item.entry.js +36 -0
  974. package/dist/esm/c-tab-item.entry.js.map +1 -0
  975. package/dist/esm/c-tab-items.entry.js +77 -0
  976. package/dist/esm/c-tab-items.entry.js.map +1 -0
  977. package/dist/esm/c-tab.entry.js +55 -0
  978. package/dist/esm/c-tab.entry.js.map +1 -0
  979. package/dist/esm/c-table.entry.js +43 -0
  980. package/dist/esm/c-table.entry.js.map +1 -0
  981. package/dist/esm/c-tabs.entry.js +419 -0
  982. package/dist/esm/c-tabs.entry.js.map +1 -0
  983. package/dist/esm/c-tag.entry.js +41 -0
  984. package/dist/esm/c-tag.entry.js.map +1 -0
  985. package/dist/esm/c-tags.entry.js +17 -0
  986. package/dist/esm/c-tags.entry.js.map +1 -0
  987. package/dist/esm/c-text-field.entry.js +147 -0
  988. package/dist/esm/c-text-field.entry.js.map +1 -0
  989. package/dist/esm/c-toast.entry.js +69 -0
  990. package/dist/esm/c-toast.entry.js.map +1 -0
  991. package/dist/esm/c-toasts.entry.js +76 -0
  992. package/dist/esm/c-toasts.entry.js.map +1 -0
  993. package/dist/esm/csc-ui.js +20 -0
  994. package/dist/esm/csc-ui.js.map +1 -0
  995. package/dist/esm/index-cdf029b7.js +2575 -0
  996. package/dist/esm/index-cdf029b7.js.map +1 -0
  997. package/dist/esm/index-dfaed2a4.js +23 -0
  998. package/dist/esm/index-dfaed2a4.js.map +1 -0
  999. package/dist/esm/index.js +3 -0
  1000. package/dist/esm/index.js.map +1 -0
  1001. package/dist/esm/loader.js +11 -0
  1002. package/dist/esm/loader.js.map +1 -0
  1003. package/dist/esm/mdi-a4a63b40.js +25 -0
  1004. package/dist/esm/mdi-a4a63b40.js.map +1 -0
  1005. package/dist/esm/polyfills/core-js.js +11 -0
  1006. package/dist/esm/polyfills/dom.js +79 -0
  1007. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1008. package/dist/esm/polyfills/index.js +34 -0
  1009. package/dist/esm/polyfills/system.js +6 -0
  1010. package/dist/index.cjs.js +1 -0
  1011. package/dist/index.js +1 -0
  1012. package/dist/loader/cdn.js +3 -0
  1013. package/dist/loader/index.cjs.js +3 -0
  1014. package/dist/loader/index.d.ts +21 -0
  1015. package/dist/loader/index.es2017.js +3 -0
  1016. package/dist/loader/index.js +4 -0
  1017. package/dist/loader/package.json +11 -0
  1018. package/dist/playwright.config.js +46 -0
  1019. package/dist/playwright.config.js.map +1 -0
  1020. package/dist/stencil.config.js +41 -0
  1021. package/dist/stencil.config.js.map +1 -0
  1022. package/dist/styles/css/c-data-table.css +10 -0
  1023. package/dist/styles/css/theme.css +100 -0
  1024. package/dist/styles/css/typography.css +10 -0
  1025. package/dist/styles/scss/_c-data-table.scss +7 -0
  1026. package/dist/styles/scss/_theme.scss +97 -0
  1027. package/dist/styles/scss/_typography.scss +7 -0
  1028. package/dist/styles/tailwind/theme.js +117 -0
  1029. package/dist/styles/variables.css +111 -0
  1030. package/dist/styles/variables.scss +108 -0
  1031. package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/playwright.config.d.ts +2 -0
  1032. package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/stencil.config.d.ts +2 -0
  1033. package/dist/types/components/c-accordion/c-accordion.d.ts +18 -0
  1034. package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +1 -0
  1035. package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -0
  1036. package/dist/types/components/c-alert/c-alert.d.ts +6 -0
  1037. package/dist/types/components/c-alert/test/c-alert.visual.d.ts +1 -0
  1038. package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +65 -0
  1039. package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +1 -0
  1040. package/dist/types/components/c-badge/c-badge.d.ts +3 -0
  1041. package/dist/types/components/c-button/c-button.d.ts +36 -0
  1042. package/dist/types/components/c-button/test/c-button.visual.d.ts +1 -0
  1043. package/dist/types/components/c-card/c-card.d.ts +12 -0
  1044. package/dist/types/components/c-card/test/c-card.visual.d.ts +1 -0
  1045. package/dist/types/components/c-card-actions/c-card-actions.d.ts +5 -0
  1046. package/dist/types/components/c-card-content/c-card-content.d.ts +3 -0
  1047. package/dist/types/components/c-card-title/c-card-title.d.ts +3 -0
  1048. package/dist/types/components/c-checkbox/c-checkbox.d.ts +37 -0
  1049. package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +1 -0
  1050. package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +4 -0
  1051. package/dist/types/components/c-data-table/c-data-table.d.ts +116 -0
  1052. package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +1 -0
  1053. package/dist/types/components/c-data-table/test/data/index.d.ts +3 -0
  1054. package/dist/types/components/c-dropdown/c-dropdown.d.ts +66 -0
  1055. package/dist/types/components/c-dropdowns/c-dropdowns.d.ts +29 -0
  1056. package/dist/types/components/c-icon/c-icon.d.ts +7 -0
  1057. package/dist/types/components/c-icon-button/c-icon-button.d.ts +18 -0
  1058. package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +1 -0
  1059. package/dist/types/components/c-input/c-input.d.ts +75 -0
  1060. package/dist/types/components/c-link/c-link.d.ts +7 -0
  1061. package/dist/types/components/c-link/test/c-link.visual.d.ts +1 -0
  1062. package/dist/types/components/c-list/c-list.d.ts +8 -0
  1063. package/dist/types/components/c-list-item/c-list-item.d.ts +16 -0
  1064. package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +4 -0
  1065. package/dist/types/components/c-loader/c-loader.d.ts +10 -0
  1066. package/dist/types/components/c-login-button/c-login-button.d.ts +6 -0
  1067. package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +3 -0
  1068. package/dist/types/components/c-login-card/c-login-card.d.ts +19 -0
  1069. package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +1 -0
  1070. package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +5 -0
  1071. package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +3 -0
  1072. package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +3 -0
  1073. package/dist/types/components/c-main/c-main.d.ts +3 -0
  1074. package/dist/types/components/c-menu/c-menu.d.ts +26 -0
  1075. package/dist/types/components/c-menu/test/c-menu.visual.d.ts +1 -0
  1076. package/dist/types/components/c-menu-items/c-menu-items.d.ts +44 -0
  1077. package/dist/types/components/c-message/c-message.d.ts +18 -0
  1078. package/dist/types/components/c-modal/c-modal.d.ts +23 -0
  1079. package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +3 -0
  1080. package/dist/types/components/c-option/c-option.d.ts +7 -0
  1081. package/dist/types/components/c-option-value/c-option-value.d.ts +3 -0
  1082. package/dist/types/components/c-otp-input/c-otp-input.d.ts +31 -0
  1083. package/dist/types/components/c-page/c-page.d.ts +7 -0
  1084. package/dist/types/components/c-pagination/c-pagination.d.ts +38 -0
  1085. package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +1 -0
  1086. package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +9 -0
  1087. package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +1 -0
  1088. package/dist/types/components/c-radio/c-radio.d.ts +6 -0
  1089. package/dist/types/components/c-radio-group/c-radio-group.d.ts +40 -0
  1090. package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +1 -0
  1091. package/dist/types/components/c-radio-group/test/items.d.ts +2 -0
  1092. package/dist/types/components/c-ripple/c-ripple.d.ts +7 -0
  1093. package/dist/types/components/c-row/c-row.d.ts +10 -0
  1094. package/dist/types/components/c-select/c-select.d.ts +73 -0
  1095. package/dist/types/components/c-select/test/c-select.visual.d.ts +1 -0
  1096. package/dist/types/components/c-select/test/items.d.ts +2 -0
  1097. package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +9 -0
  1098. package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +1 -0
  1099. package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +20 -0
  1100. package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +3 -0
  1101. package/dist/types/components/c-spacer/c-spacer.d.ts +3 -0
  1102. package/dist/types/components/c-spinner/c-spinner.d.ts +6 -0
  1103. package/dist/types/components/c-status/c-status.d.ts +4 -0
  1104. package/dist/types/components/c-status/test/c-status.visual.d.ts +1 -0
  1105. package/dist/types/components/c-step/c-step.d.ts +5 -0
  1106. package/dist/types/components/c-steps/c-steps.d.ts +16 -0
  1107. package/dist/types/components/c-steps/test/c-steps.visual.d.ts +1 -0
  1108. package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +10 -0
  1109. package/dist/types/components/c-swiper/c-swiper.d.ts +25 -0
  1110. package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +1 -0
  1111. package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +16 -0
  1112. package/dist/types/components/c-switch/c-switch.d.ts +18 -0
  1113. package/dist/types/components/c-switch/test/c-switch.visual.d.ts +1 -0
  1114. package/dist/types/components/c-tab/c-tab.d.ts +20 -0
  1115. package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +24 -0
  1116. package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +1 -0
  1117. package/dist/types/components/c-tab-item/c-tab-item.d.ts +12 -0
  1118. package/dist/types/components/c-tab-items/c-tab-items.d.ts +18 -0
  1119. package/dist/types/components/c-table/c-table.d.ts +12 -0
  1120. package/dist/types/components/c-tabs/c-tabs.d.ts +67 -0
  1121. package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +1 -0
  1122. package/dist/types/components/c-tag/c-tag.d.ts +12 -0
  1123. package/dist/types/components/c-tag/test/c-tag.visual.d.ts +1 -0
  1124. package/dist/types/components/c-tags/c-tags.d.ts +3 -0
  1125. package/dist/types/components/c-text-field/c-text-field.d.ts +56 -0
  1126. package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +1 -0
  1127. package/dist/types/components/c-toast/c-toast.d.ts +19 -0
  1128. package/dist/types/components/c-toasts/c-toasts.d.ts +17 -0
  1129. package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +1 -0
  1130. package/dist/types/components/c-toolbar/c-toolbar.d.ts +3 -0
  1131. package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +1 -0
  1132. package/dist/types/components.d.ts +5143 -0
  1133. package/dist/types/index.d.ts +2 -0
  1134. package/dist/types/stencil-public-runtime.d.ts +1673 -0
  1135. package/dist/types/types/global.d.ts +13 -0
  1136. package/dist/types/types/index.d.ts +145 -0
  1137. package/dist/types/utils/test/sleep.d.ts +1 -0
  1138. package/dist/types/utils/test/takeScreenshot.d.ts +2 -0
  1139. package/loader/cdn.js +3 -0
  1140. package/loader/index.cjs.js +3 -0
  1141. package/loader/index.d.ts +13 -0
  1142. package/loader/index.es2017.js +3 -0
  1143. package/loader/index.js +4 -0
  1144. package/loader/package.json +10 -0
  1145. package/package.json +95 -0
  1146. package/vscode-data.json +2135 -0
@@ -0,0 +1,2605 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'csc-ui';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let scopeId;
34
+ let contentRef;
35
+ let hostTagName;
36
+ let useNativeShadowDom = false;
37
+ let checkSlotFallbackVisibility = false;
38
+ let checkSlotRelocate = false;
39
+ let isSvgMode = false;
40
+ let queuePending = false;
41
+ const createTime = (fnName, tagName = '') => {
42
+ {
43
+ return () => {
44
+ return;
45
+ };
46
+ }
47
+ };
48
+ const uniqueTime = (key, measureText) => {
49
+ {
50
+ return () => {
51
+ return;
52
+ };
53
+ }
54
+ };
55
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
56
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
57
+ /**
58
+ * Default style mode id
59
+ */
60
+ /**
61
+ * Reusable empty obj/array
62
+ * Don't add values to these!!
63
+ */
64
+ const EMPTY_OBJ = {};
65
+ /**
66
+ * Namespaces
67
+ */
68
+ const SVG_NS = 'http://www.w3.org/2000/svg';
69
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
70
+ const isDef = (v) => v != null;
71
+ /**
72
+ * Check whether a value is a 'complex type', defined here as an object or a
73
+ * function.
74
+ *
75
+ * @param o the value to check
76
+ * @returns whether it's a complex type or not
77
+ */
78
+ const isComplexType = (o) => {
79
+ // https://jsperf.com/typeof-fn-object/5
80
+ o = typeof o;
81
+ return o === 'object' || o === 'function';
82
+ };
83
+ /**
84
+ * Helper method for querying a `meta` tag that contains a nonce value
85
+ * out of a DOM's head.
86
+ *
87
+ * @param doc The DOM containing the `head` to query against
88
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
89
+ * exists or the tag has no content.
90
+ */
91
+ function queryNonceMetaTagContent(doc) {
92
+ var _a, _b, _c;
93
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
94
+ }
95
+ /**
96
+ * Production h() function based on Preact by
97
+ * Jason Miller (@developit)
98
+ * Licensed under the MIT License
99
+ * https://github.com/developit/preact/blob/master/LICENSE
100
+ *
101
+ * Modified for Stencil's compiler and vdom
102
+ */
103
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
104
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
105
+ const h = (nodeName, vnodeData, ...children) => {
106
+ let child = null;
107
+ let key = null;
108
+ let slotName = null;
109
+ let simple = false;
110
+ let lastSimple = false;
111
+ const vNodeChildren = [];
112
+ const walk = (c) => {
113
+ for (let i = 0; i < c.length; i++) {
114
+ child = c[i];
115
+ if (Array.isArray(child)) {
116
+ walk(child);
117
+ }
118
+ else if (child != null && typeof child !== 'boolean') {
119
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
120
+ child = String(child);
121
+ }
122
+ if (simple && lastSimple) {
123
+ // If the previous child was simple (string), we merge both
124
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
125
+ }
126
+ else {
127
+ // Append a new vNode, if it's text, we create a text vNode
128
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
129
+ }
130
+ lastSimple = simple;
131
+ }
132
+ }
133
+ };
134
+ walk(children);
135
+ if (vnodeData) {
136
+ if (vnodeData.key) {
137
+ key = vnodeData.key;
138
+ }
139
+ if (vnodeData.name) {
140
+ slotName = vnodeData.name;
141
+ }
142
+ // normalize class / className attributes
143
+ {
144
+ const classData = vnodeData.className || vnodeData.class;
145
+ if (classData) {
146
+ vnodeData.class =
147
+ typeof classData !== 'object'
148
+ ? classData
149
+ : Object.keys(classData)
150
+ .filter((k) => classData[k])
151
+ .join(' ');
152
+ }
153
+ }
154
+ }
155
+ if (typeof nodeName === 'function') {
156
+ // nodeName is a functional component
157
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
158
+ }
159
+ const vnode = newVNode(nodeName, null);
160
+ vnode.$attrs$ = vnodeData;
161
+ if (vNodeChildren.length > 0) {
162
+ vnode.$children$ = vNodeChildren;
163
+ }
164
+ {
165
+ vnode.$key$ = key;
166
+ }
167
+ {
168
+ vnode.$name$ = slotName;
169
+ }
170
+ return vnode;
171
+ };
172
+ /**
173
+ * A utility function for creating a virtual DOM node from a tag and some
174
+ * possible text content.
175
+ *
176
+ * @param tag the tag for this element
177
+ * @param text possible text content for the node
178
+ * @returns a newly-minted virtual DOM node
179
+ */
180
+ const newVNode = (tag, text) => {
181
+ const vnode = {
182
+ $flags$: 0,
183
+ $tag$: tag,
184
+ $text$: text,
185
+ $elm$: null,
186
+ $children$: null,
187
+ };
188
+ {
189
+ vnode.$attrs$ = null;
190
+ }
191
+ {
192
+ vnode.$key$ = null;
193
+ }
194
+ {
195
+ vnode.$name$ = null;
196
+ }
197
+ return vnode;
198
+ };
199
+ const Host = {};
200
+ /**
201
+ * Check whether a given node is a Host node or not
202
+ *
203
+ * @param node the virtual DOM node to check
204
+ * @returns whether it's a Host node or not
205
+ */
206
+ const isHost = (node) => node && node.$tag$ === Host;
207
+ /**
208
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
209
+ *
210
+ * Note that these functions convert from {@link d.VNode} to
211
+ * {@link d.ChildNode} to give functional component developers a friendly
212
+ * interface.
213
+ */
214
+ const vdomFnUtils = {
215
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
216
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
217
+ };
218
+ /**
219
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
220
+ * friendlier public interface (hence, 'convertToPublic').
221
+ *
222
+ * @param node the virtual DOM node to convert
223
+ * @returns a converted child node
224
+ */
225
+ const convertToPublic = (node) => ({
226
+ vattrs: node.$attrs$,
227
+ vchildren: node.$children$,
228
+ vkey: node.$key$,
229
+ vname: node.$name$,
230
+ vtag: node.$tag$,
231
+ vtext: node.$text$,
232
+ });
233
+ /**
234
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
235
+ * order to use the resulting object in the virtual DOM. The initial object was
236
+ * likely created as part of presenting a public API, so converting it back
237
+ * involved making it 'private' again (hence, `convertToPrivate`).
238
+ *
239
+ * @param node the child node to convert
240
+ * @returns a converted virtual DOM node
241
+ */
242
+ const convertToPrivate = (node) => {
243
+ if (typeof node.vtag === 'function') {
244
+ const vnodeData = Object.assign({}, node.vattrs);
245
+ if (node.vkey) {
246
+ vnodeData.key = node.vkey;
247
+ }
248
+ if (node.vname) {
249
+ vnodeData.name = node.vname;
250
+ }
251
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
252
+ }
253
+ const vnode = newVNode(node.vtag, node.vtext);
254
+ vnode.$attrs$ = node.vattrs;
255
+ vnode.$children$ = node.vchildren;
256
+ vnode.$key$ = node.vkey;
257
+ vnode.$name$ = node.vname;
258
+ return vnode;
259
+ };
260
+ /**
261
+ * Parse a new property value for a given property type.
262
+ *
263
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
264
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
265
+ * 1. `any`, the type given to `propValue` in the function signature
266
+ * 2. the type stored from `propType`.
267
+ *
268
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
269
+ *
270
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
271
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
272
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
273
+ * ```tsx
274
+ * <my-cmp prop-val={0}></my-cmp>
275
+ * ```
276
+ *
277
+ * HTML prop values on the other hand, will always a string
278
+ *
279
+ * @param propValue the new value to coerce to some type
280
+ * @param propType the type of the prop, expressed as a binary number
281
+ * @returns the parsed/coerced value
282
+ */
283
+ const parsePropertyValue = (propValue, propType) => {
284
+ // ensure this value is of the correct prop type
285
+ if (propValue != null && !isComplexType(propValue)) {
286
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
287
+ // per the HTML spec, any string value means it is a boolean true value
288
+ // but we'll cheat here and say that the string "false" is the boolean false
289
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
290
+ }
291
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
292
+ // force it to be a number
293
+ return parseFloat(propValue);
294
+ }
295
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
296
+ // could have been passed as a number or boolean
297
+ // but we still want it as a string
298
+ return String(propValue);
299
+ }
300
+ // redundant return here for better minification
301
+ return propValue;
302
+ }
303
+ // not sure exactly what type we want
304
+ // so no need to change to a different type
305
+ return propValue;
306
+ };
307
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
308
+ const createEvent = (ref, name, flags) => {
309
+ const elm = getElement(ref);
310
+ return {
311
+ emit: (detail) => {
312
+ return emitEvent(elm, name, {
313
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
314
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
315
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
316
+ detail,
317
+ });
318
+ },
319
+ };
320
+ };
321
+ /**
322
+ * Helper function to create & dispatch a custom Event on a provided target
323
+ * @param elm the target of the Event
324
+ * @param name the name to give the custom Event
325
+ * @param opts options for configuring a custom Event
326
+ * @returns the custom Event
327
+ */
328
+ const emitEvent = (elm, name, opts) => {
329
+ const ev = plt.ce(name, opts);
330
+ elm.dispatchEvent(ev);
331
+ return ev;
332
+ };
333
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
334
+ const registerStyle = (scopeId, cssText, allowCS) => {
335
+ let style = styles.get(scopeId);
336
+ if (supportsConstructableStylesheets && allowCS) {
337
+ style = (style || new CSSStyleSheet());
338
+ if (typeof style === 'string') {
339
+ style = cssText;
340
+ }
341
+ else {
342
+ style.replaceSync(cssText);
343
+ }
344
+ }
345
+ else {
346
+ style = cssText;
347
+ }
348
+ styles.set(scopeId, style);
349
+ };
350
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
351
+ var _a;
352
+ const scopeId = getScopeId(cmpMeta);
353
+ const style = styles.get(scopeId);
354
+ // if an element is NOT connected then getRootNode() will return the wrong root node
355
+ // so the fallback is to always use the document for the root node in those cases
356
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
357
+ if (style) {
358
+ if (typeof style === 'string') {
359
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
360
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
361
+ let styleElm;
362
+ if (!appliedStyles) {
363
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
364
+ }
365
+ if (!appliedStyles.has(scopeId)) {
366
+ {
367
+ styleElm = doc.createElement('style');
368
+ styleElm.innerHTML = style;
369
+ // Apply CSP nonce to the style tag if it exists
370
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
371
+ if (nonce != null) {
372
+ styleElm.setAttribute('nonce', nonce);
373
+ }
374
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
375
+ }
376
+ if (appliedStyles) {
377
+ appliedStyles.add(scopeId);
378
+ }
379
+ }
380
+ }
381
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
382
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
383
+ }
384
+ }
385
+ return scopeId;
386
+ };
387
+ const attachStyles = (hostRef) => {
388
+ const cmpMeta = hostRef.$cmpMeta$;
389
+ const elm = hostRef.$hostElement$;
390
+ const flags = cmpMeta.$flags$;
391
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
392
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
393
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
394
+ // only required when we're NOT using native shadow dom (slot)
395
+ // or this browser doesn't support native shadow dom
396
+ // and this host element was NOT created with SSR
397
+ // let's pick out the inner content for slot projection
398
+ // create a node to represent where the original
399
+ // content was first placed, which is useful later on
400
+ // DOM WRITE!!
401
+ elm['s-sc'] = scopeId;
402
+ elm.classList.add(scopeId + '-h');
403
+ }
404
+ endAttachStyles();
405
+ };
406
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
407
+ /**
408
+ * Production setAccessor() function based on Preact by
409
+ * Jason Miller (@developit)
410
+ * Licensed under the MIT License
411
+ * https://github.com/developit/preact/blob/master/LICENSE
412
+ *
413
+ * Modified for Stencil's compiler and vdom
414
+ */
415
+ /**
416
+ * When running a VDom render set properties present on a VDom node onto the
417
+ * corresponding HTML element.
418
+ *
419
+ * Note that this function has special functionality for the `class`,
420
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
421
+ * `onClick`, etc). All others are just passed through as-is.
422
+ *
423
+ * @param elm the HTMLElement onto which attributes should be set
424
+ * @param memberName the name of the attribute to set
425
+ * @param oldValue the old value for the attribute
426
+ * @param newValue the new value for the attribute
427
+ * @param isSvg whether we're in an svg context or not
428
+ * @param flags bitflags for Vdom variables
429
+ */
430
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
+ if (oldValue !== newValue) {
432
+ let isProp = isMemberInElement(elm, memberName);
433
+ let ln = memberName.toLowerCase();
434
+ if (memberName === 'class') {
435
+ const classList = elm.classList;
436
+ const oldClasses = parseClassList(oldValue);
437
+ const newClasses = parseClassList(newValue);
438
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
439
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
440
+ }
441
+ else if (memberName === 'style') {
442
+ // update style attribute, css properties and values
443
+ {
444
+ for (const prop in oldValue) {
445
+ if (!newValue || newValue[prop] == null) {
446
+ if (prop.includes('-')) {
447
+ elm.style.removeProperty(prop);
448
+ }
449
+ else {
450
+ elm.style[prop] = '';
451
+ }
452
+ }
453
+ }
454
+ }
455
+ for (const prop in newValue) {
456
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
457
+ if (prop.includes('-')) {
458
+ elm.style.setProperty(prop, newValue[prop]);
459
+ }
460
+ else {
461
+ elm.style[prop] = newValue[prop];
462
+ }
463
+ }
464
+ }
465
+ }
466
+ else if (memberName === 'key')
467
+ ;
468
+ else if (memberName === 'ref') {
469
+ // minifier will clean this up
470
+ if (newValue) {
471
+ newValue(elm);
472
+ }
473
+ }
474
+ else if ((!isProp ) &&
475
+ memberName[0] === 'o' &&
476
+ memberName[1] === 'n') {
477
+ // Event Handlers
478
+ // so if the member name starts with "on" and the 3rd characters is
479
+ // a capital letter, and it's not already a member on the element,
480
+ // then we're assuming it's an event listener
481
+ if (memberName[2] === '-') {
482
+ // on- prefixed events
483
+ // allows to be explicit about the dom event to listen without any magic
484
+ // under the hood:
485
+ // <my-cmp on-click> // listens for "click"
486
+ // <my-cmp on-Click> // listens for "Click"
487
+ // <my-cmp on-ionChange> // listens for "ionChange"
488
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
489
+ memberName = memberName.slice(3);
490
+ }
491
+ else if (isMemberInElement(win, ln)) {
492
+ // standard event
493
+ // the JSX attribute could have been "onMouseOver" and the
494
+ // member name "onmouseover" is on the window's prototype
495
+ // so let's add the listener "mouseover", which is all lowercased
496
+ memberName = ln.slice(2);
497
+ }
498
+ else {
499
+ // custom event
500
+ // the JSX attribute could have been "onMyCustomEvent"
501
+ // so let's trim off the "on" prefix and lowercase the first character
502
+ // and add the listener "myCustomEvent"
503
+ // except for the first character, we keep the event name case
504
+ memberName = ln[2] + memberName.slice(3);
505
+ }
506
+ if (oldValue) {
507
+ plt.rel(elm, memberName, oldValue, false);
508
+ }
509
+ if (newValue) {
510
+ plt.ael(elm, memberName, newValue, false);
511
+ }
512
+ }
513
+ else {
514
+ // Set property if it exists and it's not a SVG
515
+ const isComplex = isComplexType(newValue);
516
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
517
+ try {
518
+ if (!elm.tagName.includes('-')) {
519
+ const n = newValue == null ? '' : newValue;
520
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
521
+ if (memberName === 'list') {
522
+ isProp = false;
523
+ }
524
+ else if (oldValue == null || elm[memberName] != n) {
525
+ elm[memberName] = n;
526
+ }
527
+ }
528
+ else {
529
+ elm[memberName] = newValue;
530
+ }
531
+ }
532
+ catch (e) { }
533
+ }
534
+ /**
535
+ * Need to manually update attribute if:
536
+ * - memberName is not an attribute
537
+ * - if we are rendering the host element in order to reflect attribute
538
+ * - if it's a SVG, since properties might not work in <svg>
539
+ * - if the newValue is null/undefined or 'false'.
540
+ */
541
+ let xlink = false;
542
+ {
543
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
544
+ memberName = ln;
545
+ xlink = true;
546
+ }
547
+ }
548
+ if (newValue == null || newValue === false) {
549
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
550
+ if (xlink) {
551
+ elm.removeAttributeNS(XLINK_NS, memberName);
552
+ }
553
+ else {
554
+ elm.removeAttribute(memberName);
555
+ }
556
+ }
557
+ }
558
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
559
+ newValue = newValue === true ? '' : newValue;
560
+ if (xlink) {
561
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
562
+ }
563
+ else {
564
+ elm.setAttribute(memberName, newValue);
565
+ }
566
+ }
567
+ }
568
+ }
569
+ };
570
+ const parseClassListRegex = /\s/;
571
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
572
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
573
+ // if the element passed in is a shadow root, which is a document fragment
574
+ // then we want to be adding attrs/props to the shadow root's "host" element
575
+ // if it's not a shadow root, then we add attrs/props to the same element
576
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
577
+ ? newVnode.$elm$.host
578
+ : newVnode.$elm$;
579
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
580
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
581
+ {
582
+ // remove attributes no longer present on the vnode by setting them to undefined
583
+ for (memberName in oldVnodeAttrs) {
584
+ if (!(memberName in newVnodeAttrs)) {
585
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
586
+ }
587
+ }
588
+ }
589
+ // add new & update changed attributes
590
+ for (memberName in newVnodeAttrs) {
591
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
592
+ }
593
+ };
594
+ /**
595
+ * Create a DOM Node corresponding to one of the children of a given VNode.
596
+ *
597
+ * @param oldParentVNode the parent VNode from the previous render
598
+ * @param newParentVNode the parent VNode from the current render
599
+ * @param childIndex the index of the VNode, in the _new_ parent node's
600
+ * children, for which we will create a new DOM node
601
+ * @param parentElm the parent DOM node which our new node will be a child of
602
+ * @returns the newly created node
603
+ */
604
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
605
+ // tslint:disable-next-line: prefer-const
606
+ const newVNode = newParentVNode.$children$[childIndex];
607
+ let i = 0;
608
+ let elm;
609
+ let childNode;
610
+ let oldVNode;
611
+ if (!useNativeShadowDom) {
612
+ // remember for later we need to check to relocate nodes
613
+ checkSlotRelocate = true;
614
+ if (newVNode.$tag$ === 'slot') {
615
+ if (scopeId) {
616
+ // scoped css needs to add its scoped id to the parent element
617
+ parentElm.classList.add(scopeId + '-s');
618
+ }
619
+ newVNode.$flags$ |= newVNode.$children$
620
+ ? // slot element has fallback content
621
+ 2 /* VNODE_FLAGS.isSlotFallback */
622
+ : // slot element does not have fallback content
623
+ 1 /* VNODE_FLAGS.isSlotReference */;
624
+ }
625
+ }
626
+ if (newVNode.$text$ !== null) {
627
+ // create text node
628
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
629
+ }
630
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
631
+ // create a slot reference node
632
+ elm = newVNode.$elm$ =
633
+ doc.createTextNode('');
634
+ }
635
+ else {
636
+ if (!isSvgMode) {
637
+ isSvgMode = newVNode.$tag$ === 'svg';
638
+ }
639
+ // create element
640
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
641
+ ? 'slot-fb'
642
+ : newVNode.$tag$)
643
+ );
644
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
645
+ isSvgMode = false;
646
+ }
647
+ // add css classes, attrs, props, listeners, etc.
648
+ {
649
+ updateElement(null, newVNode, isSvgMode);
650
+ }
651
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
652
+ // if there is a scopeId and this is the initial render
653
+ // then let's add the scopeId as a css class
654
+ elm.classList.add((elm['s-si'] = scopeId));
655
+ }
656
+ if (newVNode.$children$) {
657
+ for (i = 0; i < newVNode.$children$.length; ++i) {
658
+ // create the node
659
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
660
+ // return node could have been null
661
+ if (childNode) {
662
+ // append our new node
663
+ elm.appendChild(childNode);
664
+ }
665
+ }
666
+ }
667
+ {
668
+ if (newVNode.$tag$ === 'svg') {
669
+ // Only reset the SVG context when we're exiting <svg> element
670
+ isSvgMode = false;
671
+ }
672
+ else if (elm.tagName === 'foreignObject') {
673
+ // Reenter SVG context when we're exiting <foreignObject> element
674
+ isSvgMode = true;
675
+ }
676
+ }
677
+ }
678
+ {
679
+ elm['s-hn'] = hostTagName;
680
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
681
+ // remember the content reference comment
682
+ elm['s-sr'] = true;
683
+ // remember the content reference comment
684
+ elm['s-cr'] = contentRef;
685
+ // remember the slot name, or empty string for default slot
686
+ elm['s-sn'] = newVNode.$name$ || '';
687
+ // check if we've got an old vnode for this slot
688
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
689
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
690
+ // we've got an old slot vnode and the wrapper is being replaced
691
+ // so let's move the old slot content back to it's original location
692
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
693
+ }
694
+ }
695
+ }
696
+ return elm;
697
+ };
698
+ const putBackInOriginalLocation = (parentElm, recursive) => {
699
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
700
+ const oldSlotChildNodes = parentElm.childNodes;
701
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
702
+ const childNode = oldSlotChildNodes[i];
703
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
704
+ // // this child node in the old element is from another component
705
+ // // remove this node from the old slot's parent
706
+ // childNode.remove();
707
+ // and relocate it back to it's original location
708
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
709
+ // remove the old original location comment entirely
710
+ // later on the patch function will know what to do
711
+ // and move this to the correct spot if need be
712
+ childNode['s-ol'].remove();
713
+ childNode['s-ol'] = undefined;
714
+ checkSlotRelocate = true;
715
+ }
716
+ if (recursive) {
717
+ putBackInOriginalLocation(childNode, recursive);
718
+ }
719
+ }
720
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
721
+ };
722
+ /**
723
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
724
+ * add them to the DOM in the appropriate place.
725
+ *
726
+ * @param parentElm the DOM node which should be used as a parent for the new
727
+ * DOM nodes
728
+ * @param before a child of the `parentElm` which the new children should be
729
+ * inserted before (optional)
730
+ * @param parentVNode the parent virtual DOM node
731
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
732
+ * @param startIdx the index in the child virtual DOM nodes at which to start
733
+ * creating DOM nodes (inclusive)
734
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
735
+ * creating DOM nodes (inclusive)
736
+ */
737
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
738
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
739
+ let childNode;
740
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
741
+ containerElm = containerElm.shadowRoot;
742
+ }
743
+ for (; startIdx <= endIdx; ++startIdx) {
744
+ if (vnodes[startIdx]) {
745
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
746
+ if (childNode) {
747
+ vnodes[startIdx].$elm$ = childNode;
748
+ containerElm.insertBefore(childNode, referenceNode(before) );
749
+ }
750
+ }
751
+ }
752
+ };
753
+ /**
754
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
755
+ * This can be used to, for instance, clean up after a list of children which
756
+ * should no longer be shown.
757
+ *
758
+ * This function also handles some of Stencil's slot relocation logic.
759
+ *
760
+ * @param vnodes a list of virtual DOM nodes to remove
761
+ * @param startIdx the index at which to start removing nodes (inclusive)
762
+ * @param endIdx the index at which to stop removing nodes (inclusive)
763
+ */
764
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
765
+ for (let index = startIdx; index <= endIdx; ++index) {
766
+ const vnode = vnodes[index];
767
+ if (vnode) {
768
+ const elm = vnode.$elm$;
769
+ nullifyVNodeRefs(vnode);
770
+ if (elm) {
771
+ {
772
+ // we're removing this element
773
+ // so it's possible we need to show slot fallback content now
774
+ checkSlotFallbackVisibility = true;
775
+ if (elm['s-ol']) {
776
+ // remove the original location comment
777
+ elm['s-ol'].remove();
778
+ }
779
+ else {
780
+ // it's possible that child nodes of the node
781
+ // that's being removed are slot nodes
782
+ putBackInOriginalLocation(elm, true);
783
+ }
784
+ }
785
+ // remove the vnode's element from the dom
786
+ elm.remove();
787
+ }
788
+ }
789
+ }
790
+ };
791
+ /**
792
+ * Reconcile the children of a new VNode with the children of an old VNode by
793
+ * traversing the two collections of children, identifying nodes that are
794
+ * conserved or changed, calling out to `patch` to make any necessary
795
+ * updates to the DOM, and rearranging DOM nodes as needed.
796
+ *
797
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
798
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
799
+ * 'windows' by storing start and end indices and references to the
800
+ * corresponding array entries. Initially the two 'windows' are basically equal
801
+ * to the entire array, but we progressively narrow the windows until there are
802
+ * no children left to update by doing the following:
803
+ *
804
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
805
+ * that if we have an initial array like the following we'll end up dealing
806
+ * only with a window bounded by the highlighted elements:
807
+ *
808
+ * [null, null, VNode1 , ... , VNode2, null, null]
809
+ * ^^^^^^ ^^^^^^
810
+ *
811
+ * 2. Check to see if the elements at the head and tail positions are equal
812
+ * across the windows. This will basically detect elements which haven't
813
+ * been added, removed, or changed position, i.e. if you had the following
814
+ * VNode elements (represented as HTML):
815
+ *
816
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
817
+ * newVNode: `<div><p><span>THERE</span></p></div>`
818
+ *
819
+ * Then when comparing the children of the `<div>` tag we check the equality
820
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
821
+ * same tag in the same position, we'd be able to avoid completely
822
+ * re-rendering the subtree under them with a new DOM element and would just
823
+ * call out to `patch` to handle reconciling their children and so on.
824
+ *
825
+ * 3. Check, for both windows, to see if the element at the beginning of the
826
+ * window corresponds to the element at the end of the other window. This is
827
+ * a heuristic which will let us identify _some_ situations in which
828
+ * elements have changed position, for instance it _should_ detect that the
829
+ * children nodes themselves have not changed but merely moved in the
830
+ * following example:
831
+ *
832
+ * oldVNode: `<div><element-one /><element-two /></div>`
833
+ * newVNode: `<div><element-two /><element-one /></div>`
834
+ *
835
+ * If we find cases like this then we also need to move the concrete DOM
836
+ * elements corresponding to the moved children to write the re-order to the
837
+ * DOM.
838
+ *
839
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
840
+ * nodes in the old children which have the same key as the first element in
841
+ * our window on the new children. If we find such a node we handle calling
842
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
843
+ * what we find.
844
+ *
845
+ * Finally, once we've narrowed our 'windows' to the point that either of them
846
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
847
+ * insertion or deletion that needs to happen to get a DOM state that correctly
848
+ * reflects the new child VNodes. If, for instance, after our window on the old
849
+ * children has collapsed we still have more nodes on the new children that
850
+ * we haven't dealt with yet then we need to add them, or if the new children
851
+ * collapse but we still have unhandled _old_ children then we need to make
852
+ * sure the corresponding DOM nodes are removed.
853
+ *
854
+ * @param parentElm the node into which the parent VNode is rendered
855
+ * @param oldCh the old children of the parent node
856
+ * @param newVNode the new VNode which will replace the parent
857
+ * @param newCh the new children of the parent node
858
+ */
859
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
860
+ let oldStartIdx = 0;
861
+ let newStartIdx = 0;
862
+ let idxInOld = 0;
863
+ let i = 0;
864
+ let oldEndIdx = oldCh.length - 1;
865
+ let oldStartVnode = oldCh[0];
866
+ let oldEndVnode = oldCh[oldEndIdx];
867
+ let newEndIdx = newCh.length - 1;
868
+ let newStartVnode = newCh[0];
869
+ let newEndVnode = newCh[newEndIdx];
870
+ let node;
871
+ let elmToMove;
872
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
873
+ if (oldStartVnode == null) {
874
+ // VNode might have been moved left
875
+ oldStartVnode = oldCh[++oldStartIdx];
876
+ }
877
+ else if (oldEndVnode == null) {
878
+ oldEndVnode = oldCh[--oldEndIdx];
879
+ }
880
+ else if (newStartVnode == null) {
881
+ newStartVnode = newCh[++newStartIdx];
882
+ }
883
+ else if (newEndVnode == null) {
884
+ newEndVnode = newCh[--newEndIdx];
885
+ }
886
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
887
+ // if the start nodes are the same then we should patch the new VNode
888
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
889
+ // indices to reflect that. We don't need to move any DOM Nodes around
890
+ // since things are matched up in order.
891
+ patch(oldStartVnode, newStartVnode);
892
+ oldStartVnode = oldCh[++oldStartIdx];
893
+ newStartVnode = newCh[++newStartIdx];
894
+ }
895
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
896
+ // likewise, if the end nodes are the same we patch new onto old and
897
+ // decrement our end indices, and also likewise in this case we don't
898
+ // need to move any DOM Nodes.
899
+ patch(oldEndVnode, newEndVnode);
900
+ oldEndVnode = oldCh[--oldEndIdx];
901
+ newEndVnode = newCh[--newEndIdx];
902
+ }
903
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
904
+ // case: "Vnode moved right"
905
+ //
906
+ // We've found that the last node in our window on the new children is
907
+ // the same VNode as the _first_ node in our window on the old children
908
+ // we're dealing with now. Visually, this is the layout of these two
909
+ // nodes:
910
+ //
911
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
912
+ // ^^^^^^^^^^^
913
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
914
+ // ^^^^^^^^^^^^^
915
+ //
916
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
917
+ // and move the DOM element for `oldStartVnode`.
918
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
919
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
920
+ }
921
+ patch(oldStartVnode, newEndVnode);
922
+ // We need to move the element for `oldStartVnode` into a position which
923
+ // will be appropriate for `newEndVnode`. For this we can use
924
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
925
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
926
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
927
+ //
928
+ // <old-start-node />
929
+ // <some-intervening-node />
930
+ // <old-end-node />
931
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
932
+ // <next-sibling />
933
+ //
934
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
935
+ // the node for `oldStartVnode` at the end of the children of
936
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
937
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
938
+ // append it to the children of the parent element.
939
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
940
+ oldStartVnode = oldCh[++oldStartIdx];
941
+ newEndVnode = newCh[--newEndIdx];
942
+ }
943
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
944
+ // case: "Vnode moved left"
945
+ //
946
+ // We've found that the first node in our window on the new children is
947
+ // the same VNode as the _last_ node in our window on the old children.
948
+ // Visually, this is the layout of these two nodes:
949
+ //
950
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
951
+ // ^^^^^^^^^^^^^
952
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
953
+ // ^^^^^^^^^^^
954
+ //
955
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
956
+ // (which will handle updating any changed attributes, reconciling their
957
+ // children etc) but we also need to move the DOM node to which
958
+ // `oldEndVnode` corresponds.
959
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
960
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
961
+ }
962
+ patch(oldEndVnode, newStartVnode);
963
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
964
+ // the same node, so since we're here we know that they are not. Thus we
965
+ // can move the element for `oldEndVnode` _before_ the element for
966
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
967
+ // future.
968
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
969
+ oldEndVnode = oldCh[--oldEndIdx];
970
+ newStartVnode = newCh[++newStartIdx];
971
+ }
972
+ else {
973
+ // Here we do some checks to match up old and new nodes based on the
974
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
975
+ // in the JSX for a DOM element in the implementation of a Stencil
976
+ // component.
977
+ //
978
+ // First we check to see if there are any nodes in the array of old
979
+ // children which have the same key as the first node in the new
980
+ // children.
981
+ idxInOld = -1;
982
+ {
983
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
984
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
985
+ idxInOld = i;
986
+ break;
987
+ }
988
+ }
989
+ }
990
+ if (idxInOld >= 0) {
991
+ // We found a node in the old children which matches up with the first
992
+ // node in the new children! So let's deal with that
993
+ elmToMove = oldCh[idxInOld];
994
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
995
+ // the tag doesn't match so we'll need a new DOM element
996
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
997
+ }
998
+ else {
999
+ patch(elmToMove, newStartVnode);
1000
+ // invalidate the matching old node so that we won't try to update it
1001
+ // again later on
1002
+ oldCh[idxInOld] = undefined;
1003
+ node = elmToMove.$elm$;
1004
+ }
1005
+ newStartVnode = newCh[++newStartIdx];
1006
+ }
1007
+ else {
1008
+ // We either didn't find an element in the old children that matches
1009
+ // the key of the first new child OR the build is not using `key`
1010
+ // attributes at all. In either case we need to create a new element
1011
+ // for the new node.
1012
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
1013
+ newStartVnode = newCh[++newStartIdx];
1014
+ }
1015
+ if (node) {
1016
+ // if we created a new node then handle inserting it to the DOM
1017
+ {
1018
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1019
+ }
1020
+ }
1021
+ }
1022
+ }
1023
+ if (oldStartIdx > oldEndIdx) {
1024
+ // we have some more new nodes to add which don't match up with old nodes
1025
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1026
+ }
1027
+ else if (newStartIdx > newEndIdx) {
1028
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1029
+ // in the new array, so lets remove them (which entails cleaning up the
1030
+ // relevant DOM nodes)
1031
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1032
+ }
1033
+ };
1034
+ /**
1035
+ * Compare two VNodes to determine if they are the same
1036
+ *
1037
+ * **NB**: This function is an equality _heuristic_ based on the available
1038
+ * information set on the two VNodes and can be misleading under certain
1039
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1040
+ * (available under `$key$` on VNodes) then the function falls back on merely
1041
+ * checking that they have the same tag.
1042
+ *
1043
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1044
+ * changing order within a `children` array or something along those lines then
1045
+ * we could obtain a false negative and then have to do needless re-rendering
1046
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1047
+ *
1048
+ * @param leftVNode the first VNode to check
1049
+ * @param rightVNode the second VNode to check
1050
+ * @returns whether they're equal or not
1051
+ */
1052
+ const isSameVnode = (leftVNode, rightVNode) => {
1053
+ // compare if two vnode to see if they're "technically" the same
1054
+ // need to have the same element tag, and same key to be the same
1055
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1056
+ if (leftVNode.$tag$ === 'slot') {
1057
+ return leftVNode.$name$ === rightVNode.$name$;
1058
+ }
1059
+ // this will be set if components in the build have `key` attrs set on them
1060
+ {
1061
+ return leftVNode.$key$ === rightVNode.$key$;
1062
+ }
1063
+ }
1064
+ return false;
1065
+ };
1066
+ const referenceNode = (node) => {
1067
+ // this node was relocated to a new location in the dom
1068
+ // because of some other component's slot
1069
+ // but we still have an html comment in place of where
1070
+ // it's original location was according to it's original vdom
1071
+ return (node && node['s-ol']) || node;
1072
+ };
1073
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1074
+ /**
1075
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1076
+ * it. This function handles flushing updates to the DOM and reconciling the
1077
+ * children of the two nodes (if any).
1078
+ *
1079
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1080
+ * @param newVNode a new VNode representing an updated version of the old one
1081
+ */
1082
+ const patch = (oldVNode, newVNode) => {
1083
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1084
+ const oldChildren = oldVNode.$children$;
1085
+ const newChildren = newVNode.$children$;
1086
+ const tag = newVNode.$tag$;
1087
+ const text = newVNode.$text$;
1088
+ let defaultHolder;
1089
+ if (text === null) {
1090
+ {
1091
+ // test if we're rendering an svg element, or still rendering nodes inside of one
1092
+ // only add this to the when the compiler sees we're using an svg somewhere
1093
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1094
+ }
1095
+ {
1096
+ if (tag === 'slot')
1097
+ ;
1098
+ else {
1099
+ // either this is the first render of an element OR it's an update
1100
+ // AND we already know it's possible it could have changed
1101
+ // this updates the element's css classes, attrs, props, listeners, etc.
1102
+ updateElement(oldVNode, newVNode, isSvgMode);
1103
+ }
1104
+ }
1105
+ if (oldChildren !== null && newChildren !== null) {
1106
+ // looks like there's child vnodes for both the old and new vnodes
1107
+ // so we need to call `updateChildren` to reconcile them
1108
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1109
+ }
1110
+ else if (newChildren !== null) {
1111
+ // no old child vnodes, but there are new child vnodes to add
1112
+ if (oldVNode.$text$ !== null) {
1113
+ // the old vnode was text, so be sure to clear it out
1114
+ elm.textContent = '';
1115
+ }
1116
+ // add the new vnode children
1117
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1118
+ }
1119
+ else if (oldChildren !== null) {
1120
+ // no new child vnodes, but there are old child vnodes to remove
1121
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1122
+ }
1123
+ if (isSvgMode && tag === 'svg') {
1124
+ isSvgMode = false;
1125
+ }
1126
+ }
1127
+ else if ((defaultHolder = elm['s-cr'])) {
1128
+ // this element has slotted content
1129
+ defaultHolder.parentNode.textContent = text;
1130
+ }
1131
+ else if (oldVNode.$text$ !== text) {
1132
+ // update the text content for the text only vnode
1133
+ // and also only if the text is different than before
1134
+ elm.data = text;
1135
+ }
1136
+ };
1137
+ /**
1138
+ * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1139
+ * are slot fallbacks nodes.
1140
+ *
1141
+ * A slot fallback node should be visible by default. Then, it should be
1142
+ * conditionally hidden if:
1143
+ *
1144
+ * - it has a sibling with a `slot` property set to its slot name or if
1145
+ * - it is a default fallback slot node, in which case we hide if it has any
1146
+ * content
1147
+ *
1148
+ * @param elm the element of interest
1149
+ */
1150
+ const updateFallbackSlotVisibility = (elm) => {
1151
+ const childNodes = elm.childNodes;
1152
+ for (const childNode of childNodes) {
1153
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1154
+ if (childNode['s-sr']) {
1155
+ // this is a slot fallback node
1156
+ // get the slot name for this slot reference node
1157
+ const slotName = childNode['s-sn'];
1158
+ // by default always show a fallback slot node
1159
+ // then hide it if there are other slots in the light dom
1160
+ childNode.hidden = false;
1161
+ // we need to check all of its sibling nodes in order to see if
1162
+ // `childNode` should be hidden
1163
+ for (const siblingNode of childNodes) {
1164
+ if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1165
+ // this sibling node is from a different component OR is a named
1166
+ // fallback slot node
1167
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ && slotName === siblingNode.getAttribute('slot')) {
1168
+ childNode.hidden = true;
1169
+ break;
1170
+ }
1171
+ }
1172
+ else {
1173
+ // this is a default fallback slot node
1174
+ // any element or text node (with content)
1175
+ // should hide the default fallback slot node
1176
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1177
+ (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1178
+ childNode.hidden = true;
1179
+ break;
1180
+ }
1181
+ }
1182
+ }
1183
+ }
1184
+ // keep drilling down
1185
+ updateFallbackSlotVisibility(childNode);
1186
+ }
1187
+ }
1188
+ };
1189
+ /**
1190
+ * Component-global information about nodes which are either currently being
1191
+ * relocated or will be shortly.
1192
+ */
1193
+ const relocateNodes = [];
1194
+ /**
1195
+ * Mark the contents of a slot for relocation via adding references to them to
1196
+ * the {@link relocateNodes} data structure. The actual work of relocating them
1197
+ * will then be handled in {@link renderVdom}.
1198
+ *
1199
+ * @param elm a render node whose child nodes need to be relocated
1200
+ */
1201
+ const markSlotContentForRelocation = (elm) => {
1202
+ // tslint:disable-next-line: prefer-const
1203
+ let node;
1204
+ let hostContentNodes;
1205
+ let j;
1206
+ for (const childNode of elm.childNodes) {
1207
+ // we need to find child nodes which are slot references so we can then try
1208
+ // to match them up with nodes that need to be relocated
1209
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1210
+ // first get the content reference comment node ('s-cr'), then we get
1211
+ // its parent, which is where all the host content is now
1212
+ hostContentNodes = node.parentNode.childNodes;
1213
+ const slotName = childNode['s-sn'];
1214
+ // iterate through all the nodes under the location where the host was
1215
+ // originally rendered
1216
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1217
+ node = hostContentNodes[j];
1218
+ // check that the node is not a content reference node or a node
1219
+ // reference and then check that the host name does not match that of
1220
+ // childNode
1221
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1222
+ // if `node` is located in the slot that `childNode` refers to (via the
1223
+ // `'s-sn'` property) then we need to relocate it from it's current spot
1224
+ // (under the host element parent) to the right slot location
1225
+ if (isNodeLocatedInSlot(node, slotName)) {
1226
+ // it's possible we've already decided to relocate this node
1227
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1228
+ // made some changes to slots
1229
+ // let's make sure we also double check
1230
+ // fallbacks are correctly hidden or shown
1231
+ checkSlotFallbackVisibility = true;
1232
+ // ensure that the slot-name attr is correct
1233
+ node['s-sn'] = node['s-sn'] || slotName;
1234
+ if (relocateNodeData) {
1235
+ // we marked this node for relocation previously but didn't find
1236
+ // out the slot reference node to which it needs to be relocated
1237
+ // so write it down now!
1238
+ relocateNodeData.$slotRefNode$ = childNode;
1239
+ }
1240
+ else {
1241
+ // add to our list of nodes to relocate
1242
+ relocateNodes.push({
1243
+ $slotRefNode$: childNode,
1244
+ $nodeToRelocate$: node,
1245
+ });
1246
+ }
1247
+ if (node['s-sr']) {
1248
+ relocateNodes.map((relocateNode) => {
1249
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1250
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1251
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1252
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1253
+ }
1254
+ }
1255
+ });
1256
+ }
1257
+ }
1258
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1259
+ // the node is not found within the slot (`childNode`) that we're
1260
+ // currently looking at, so we stick it into `relocateNodes` to
1261
+ // handle later. If we never find a home for this element then
1262
+ // we'll need to hide it
1263
+ relocateNodes.push({
1264
+ $nodeToRelocate$: node,
1265
+ });
1266
+ }
1267
+ }
1268
+ }
1269
+ }
1270
+ // if we're dealing with any type of element (capable of itself being a
1271
+ // slot reference or containing one) then we recur
1272
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1273
+ markSlotContentForRelocation(childNode);
1274
+ }
1275
+ }
1276
+ };
1277
+ /**
1278
+ * Check whether a node is located in a given named slot.
1279
+ *
1280
+ * @param nodeToRelocate the node of interest
1281
+ * @param slotName the slot name to check
1282
+ * @returns whether the node is located in the slot or not
1283
+ */
1284
+ const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1285
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1286
+ if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1287
+ // if the node doesn't have a slot attribute, and the slot we're checking
1288
+ // is not a named slot, then we assume the node should be within the slot
1289
+ return true;
1290
+ }
1291
+ if (nodeToRelocate.getAttribute('slot') === slotName) {
1292
+ return true;
1293
+ }
1294
+ return false;
1295
+ }
1296
+ if (nodeToRelocate['s-sn'] === slotName) {
1297
+ return true;
1298
+ }
1299
+ return slotName === '';
1300
+ };
1301
+ /**
1302
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1303
+ * them with `null`. This signals that the DOM element corresponding to the VDom
1304
+ * node has been removed from the DOM.
1305
+ *
1306
+ * @param vNode a virtual DOM node
1307
+ */
1308
+ const nullifyVNodeRefs = (vNode) => {
1309
+ {
1310
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1311
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1312
+ }
1313
+ };
1314
+ /**
1315
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1316
+ *
1317
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1318
+ * function will handle creating a virtual DOM tree with a single root, patching
1319
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1320
+ * relocation, and reflecting attributes.
1321
+ *
1322
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1323
+ * the DOM node into which it should be rendered.
1324
+ * @param renderFnResults the virtual DOM nodes to be rendered
1325
+ * @param isInitialLoad whether or not this is the first call after page load
1326
+ */
1327
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1328
+ const hostElm = hostRef.$hostElement$;
1329
+ const cmpMeta = hostRef.$cmpMeta$;
1330
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1331
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
1332
+ // we need to call `h` again to wrap the children of our component in a
1333
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1334
+ // implicitly that the top-level vdom node is 1) an only child and 2)
1335
+ // contains attrs that need to be set on the host element.
1336
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1337
+ hostTagName = hostElm.tagName;
1338
+ if (cmpMeta.$attrsToReflect$) {
1339
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1340
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1341
+ }
1342
+ // On the first render and *only* on the first render we want to check for
1343
+ // any attributes set on the host element which are also set on the vdom
1344
+ // node. If we find them, we override the value on the VDom node attrs with
1345
+ // the value from the host element, which allows developers building apps
1346
+ // with Stencil components to override e.g. the `role` attribute on a
1347
+ // component even if it's already set on the `Host`.
1348
+ if (isInitialLoad && rootVnode.$attrs$) {
1349
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1350
+ // We have a special implementation in `setAccessor` for `style` and
1351
+ // `class` which reconciles values coming from the VDom with values
1352
+ // already present on the DOM element, so we don't want to override those
1353
+ // attributes on the VDom tree with values from the host element if they
1354
+ // are present.
1355
+ //
1356
+ // Likewise, `ref` and `key` are special internal values for the Stencil
1357
+ // runtime and we don't want to override those either.
1358
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1359
+ rootVnode.$attrs$[key] = hostElm[key];
1360
+ }
1361
+ }
1362
+ }
1363
+ rootVnode.$tag$ = null;
1364
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1365
+ hostRef.$vnode$ = rootVnode;
1366
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1367
+ {
1368
+ scopeId = hostElm['s-sc'];
1369
+ }
1370
+ {
1371
+ contentRef = hostElm['s-cr'];
1372
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1373
+ // always reset
1374
+ checkSlotFallbackVisibility = false;
1375
+ }
1376
+ // synchronous patch
1377
+ patch(oldVNode, rootVnode);
1378
+ {
1379
+ // while we're moving nodes around existing nodes, temporarily disable
1380
+ // the disconnectCallback from working
1381
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1382
+ if (checkSlotRelocate) {
1383
+ markSlotContentForRelocation(rootVnode.$elm$);
1384
+ let relocateData;
1385
+ let nodeToRelocate;
1386
+ let orgLocationNode;
1387
+ let parentNodeRef;
1388
+ let insertBeforeNode;
1389
+ let refNode;
1390
+ let i = 0;
1391
+ for (; i < relocateNodes.length; i++) {
1392
+ relocateData = relocateNodes[i];
1393
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1394
+ if (!nodeToRelocate['s-ol']) {
1395
+ // add a reference node marking this node's original location
1396
+ // keep a reference to this node for later lookups
1397
+ orgLocationNode =
1398
+ doc.createTextNode('');
1399
+ orgLocationNode['s-nr'] = nodeToRelocate;
1400
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1401
+ }
1402
+ }
1403
+ for (i = 0; i < relocateNodes.length; i++) {
1404
+ relocateData = relocateNodes[i];
1405
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1406
+ if (relocateData.$slotRefNode$) {
1407
+ // by default we're just going to insert it directly
1408
+ // after the slot reference node
1409
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1410
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1411
+ orgLocationNode = nodeToRelocate['s-ol'];
1412
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1413
+ refNode = orgLocationNode['s-nr'];
1414
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1415
+ refNode = refNode.nextSibling;
1416
+ if (!refNode || !refNode['s-nr']) {
1417
+ insertBeforeNode = refNode;
1418
+ break;
1419
+ }
1420
+ }
1421
+ }
1422
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1423
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1424
+ // we've checked that it's worth while to relocate
1425
+ // since that the node to relocate
1426
+ // has a different next sibling or parent relocated
1427
+ if (nodeToRelocate !== insertBeforeNode) {
1428
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1429
+ // probably a component in the index.html that doesn't have its hostname set
1430
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1431
+ }
1432
+ // add it back to the dom but in its new home
1433
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1434
+ }
1435
+ }
1436
+ }
1437
+ else {
1438
+ // this node doesn't have a slot home to go to, so let's hide it
1439
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1440
+ nodeToRelocate.hidden = true;
1441
+ }
1442
+ }
1443
+ }
1444
+ }
1445
+ if (checkSlotFallbackVisibility) {
1446
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1447
+ }
1448
+ // done moving nodes around
1449
+ // allow the disconnect callback to work again
1450
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1451
+ // always reset
1452
+ relocateNodes.length = 0;
1453
+ }
1454
+ };
1455
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1456
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1457
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1458
+ }
1459
+ };
1460
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1461
+ {
1462
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1463
+ }
1464
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1465
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1466
+ return;
1467
+ }
1468
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1469
+ // there is no ancestor component or the ancestor component
1470
+ // has already fired off its lifecycle update then
1471
+ // fire off the initial update
1472
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1473
+ return writeTask(dispatch) ;
1474
+ };
1475
+ /**
1476
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1477
+ * component lifecycle methods like `componentWillLoad` as well as
1478
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
1479
+ *
1480
+ * @param hostRef a reference to a host DOM node
1481
+ * @param isInitialLoad whether we're on the initial load or not
1482
+ * @returns an empty Promise which is used to enqueue a series of operations for
1483
+ * the component
1484
+ */
1485
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1486
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1487
+ const instance = hostRef.$lazyInstance$ ;
1488
+ // We're going to use this variable together with `enqueue` to implement a
1489
+ // little promise-based queue. We start out with it `undefined`. When we add
1490
+ // the first function to the queue we'll set this variable to be that
1491
+ // function's return value. When we attempt to add subsequent values to the
1492
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
1493
+ // the new function off of that `Promise` using `.then()`. This will give our
1494
+ // queue two nice properties:
1495
+ //
1496
+ // 1. If all functions added to the queue are synchronous they'll be called
1497
+ // synchronously right away.
1498
+ // 2. If all functions added to the queue are asynchronous they'll all be
1499
+ // called in order after `dispatchHooks` exits.
1500
+ let maybePromise;
1501
+ if (isInitialLoad) {
1502
+ {
1503
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1504
+ if (hostRef.$queuedListeners$) {
1505
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1506
+ hostRef.$queuedListeners$ = undefined;
1507
+ }
1508
+ }
1509
+ {
1510
+ // If `componentWillLoad` returns a `Promise` then we want to wait on
1511
+ // whatever's going on in that `Promise` before we launch into
1512
+ // rendering the component, doing other lifecycle stuff, etc. So
1513
+ // in that case we assign the returned promise to the variable we
1514
+ // declared above to hold a possible 'queueing' Promise
1515
+ maybePromise = safeCall(instance, 'componentWillLoad');
1516
+ }
1517
+ }
1518
+ endSchedule();
1519
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1520
+ };
1521
+ /**
1522
+ * This function uses a Promise to implement a simple first-in, first-out queue
1523
+ * of functions to be called.
1524
+ *
1525
+ * The queue is ordered on the basis of the first argument. If it's
1526
+ * `undefined`, then nothing is on the queue yet, so the provided function can
1527
+ * be called synchronously (although note that this function may return a
1528
+ * `Promise`). The idea is that then the return value of that enqueueing
1529
+ * operation is kept around, so that if it was a `Promise` then subsequent
1530
+ * functions can be enqueued by calling this function again with that `Promise`
1531
+ * as the first argument.
1532
+ *
1533
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1534
+ * @param fn a function to enqueue
1535
+ * @returns either a `Promise` or the return value of the provided function
1536
+ */
1537
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1538
+ /**
1539
+ * Check that a value is a `Promise`. To check, we first see if the value is an
1540
+ * instance of the `Promise` global. In a few circumstances, in particular if
1541
+ * the global has been overwritten, this is could be misleading, so we also do
1542
+ * a little 'duck typing' check to see if the `.then` property of the value is
1543
+ * defined and a function.
1544
+ *
1545
+ * @param maybePromise it might be a promise!
1546
+ * @returns whether it is or not
1547
+ */
1548
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1549
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1550
+ /**
1551
+ * Update a component given reference to its host elements and so on.
1552
+ *
1553
+ * @param hostRef an object containing references to the element's host node,
1554
+ * VDom nodes, and other metadata
1555
+ * @param instance a reference to the underlying host element where it will be
1556
+ * rendered
1557
+ * @param isInitialLoad whether or not this function is being called as part of
1558
+ * the first render cycle
1559
+ */
1560
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1561
+ var _a;
1562
+ const elm = hostRef.$hostElement$;
1563
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1564
+ const rc = elm['s-rc'];
1565
+ if (isInitialLoad) {
1566
+ // DOM WRITE!
1567
+ attachStyles(hostRef);
1568
+ }
1569
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1570
+ {
1571
+ callRender(hostRef, instance, elm, isInitialLoad);
1572
+ }
1573
+ if (rc) {
1574
+ // ok, so turns out there are some child host elements
1575
+ // waiting on this parent element to load
1576
+ // let's fire off all update callbacks waiting
1577
+ rc.map((cb) => cb());
1578
+ elm['s-rc'] = undefined;
1579
+ }
1580
+ endRender();
1581
+ endUpdate();
1582
+ {
1583
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1584
+ const postUpdate = () => postUpdateComponent(hostRef);
1585
+ if (childrenPromises.length === 0) {
1586
+ postUpdate();
1587
+ }
1588
+ else {
1589
+ Promise.all(childrenPromises).then(postUpdate);
1590
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1591
+ childrenPromises.length = 0;
1592
+ }
1593
+ }
1594
+ };
1595
+ /**
1596
+ * Handle making the call to the VDom renderer with the proper context given
1597
+ * various build variables
1598
+ *
1599
+ * @param hostRef an object containing references to the element's host node,
1600
+ * VDom nodes, and other metadata
1601
+ * @param instance a reference to the underlying host element where it will be
1602
+ * rendered
1603
+ * @param elm the Host element for the component
1604
+ * @param isInitialLoad whether or not this function is being called as part of
1605
+ * @returns an empty promise
1606
+ */
1607
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1608
+ try {
1609
+ /**
1610
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1611
+ * method, so we can call the method immediately. If not, check before calling it.
1612
+ */
1613
+ instance = instance.render() ;
1614
+ {
1615
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1616
+ }
1617
+ {
1618
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1619
+ }
1620
+ {
1621
+ {
1622
+ // looks like we've got child nodes to render into this host element
1623
+ // or we need to update the css class/attrs on the host element
1624
+ // DOM WRITE!
1625
+ {
1626
+ renderVdom(hostRef, instance, isInitialLoad);
1627
+ }
1628
+ }
1629
+ }
1630
+ }
1631
+ catch (e) {
1632
+ consoleError(e, hostRef.$hostElement$);
1633
+ }
1634
+ return null;
1635
+ };
1636
+ const postUpdateComponent = (hostRef) => {
1637
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1638
+ const elm = hostRef.$hostElement$;
1639
+ const endPostUpdate = createTime('postUpdate', tagName);
1640
+ const instance = hostRef.$lazyInstance$ ;
1641
+ const ancestorComponent = hostRef.$ancestorComponent$;
1642
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1643
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1644
+ {
1645
+ // DOM WRITE!
1646
+ addHydratedFlag(elm);
1647
+ }
1648
+ {
1649
+ safeCall(instance, 'componentDidLoad');
1650
+ }
1651
+ endPostUpdate();
1652
+ {
1653
+ hostRef.$onReadyResolve$(elm);
1654
+ if (!ancestorComponent) {
1655
+ appDidLoad();
1656
+ }
1657
+ }
1658
+ }
1659
+ else {
1660
+ endPostUpdate();
1661
+ }
1662
+ {
1663
+ hostRef.$onInstanceResolve$(elm);
1664
+ }
1665
+ // load events fire from bottom to top
1666
+ // the deepest elements load first then bubbles up
1667
+ {
1668
+ if (hostRef.$onRenderResolve$) {
1669
+ hostRef.$onRenderResolve$();
1670
+ hostRef.$onRenderResolve$ = undefined;
1671
+ }
1672
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1673
+ nextTick(() => scheduleUpdate(hostRef, false));
1674
+ }
1675
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1676
+ }
1677
+ // ( •_•)
1678
+ // ( •_•)>⌐■-■
1679
+ // (⌐■_■)
1680
+ };
1681
+ const appDidLoad = (who) => {
1682
+ // on appload
1683
+ // we have finish the first big initial render
1684
+ {
1685
+ addHydratedFlag(doc.documentElement);
1686
+ }
1687
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1688
+ };
1689
+ /**
1690
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1691
+ * e.g. custom element node. If a build figures out that e.g. no component
1692
+ * has a `componentDidLoad` method, the instance method gets removed from the
1693
+ * output bundle and this function returns `undefined`.
1694
+ * @param instance any object that may or may not contain methods
1695
+ * @param method method name
1696
+ * @param arg single arbitrary argument
1697
+ * @returns result of method call if it exists, otherwise `undefined`
1698
+ */
1699
+ const safeCall = (instance, method, arg) => {
1700
+ if (instance && instance[method]) {
1701
+ try {
1702
+ return instance[method](arg);
1703
+ }
1704
+ catch (e) {
1705
+ consoleError(e);
1706
+ }
1707
+ }
1708
+ return undefined;
1709
+ };
1710
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1711
+ ;
1712
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1713
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1714
+ // check our new property value against our internal value
1715
+ const hostRef = getHostRef(ref);
1716
+ const elm = hostRef.$hostElement$ ;
1717
+ const oldVal = hostRef.$instanceValues$.get(propName);
1718
+ const flags = hostRef.$flags$;
1719
+ const instance = hostRef.$lazyInstance$ ;
1720
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1721
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1722
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1723
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1724
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1725
+ // gadzooks! the property's value has changed!!
1726
+ // set our new value!
1727
+ hostRef.$instanceValues$.set(propName, newVal);
1728
+ if (instance) {
1729
+ // get an array of method names of watch functions to call
1730
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1731
+ const watchMethods = cmpMeta.$watchers$[propName];
1732
+ if (watchMethods) {
1733
+ // this instance is watching for when this property changed
1734
+ watchMethods.map((watchMethodName) => {
1735
+ try {
1736
+ // fire off each of the watch methods that are watching this property
1737
+ instance[watchMethodName](newVal, oldVal, propName);
1738
+ }
1739
+ catch (e) {
1740
+ consoleError(e, elm);
1741
+ }
1742
+ });
1743
+ }
1744
+ }
1745
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1746
+ // looks like this value actually changed, so we've got work to do!
1747
+ // but only if we've already rendered, otherwise just chill out
1748
+ // queue that we need to do an update, but don't worry about queuing
1749
+ // up millions cuz this function ensures it only runs once
1750
+ scheduleUpdate(hostRef, false);
1751
+ }
1752
+ }
1753
+ }
1754
+ };
1755
+ /**
1756
+ * Attach a series of runtime constructs to a compiled Stencil component
1757
+ * constructor, including getters and setters for the `@Prop` and `@State`
1758
+ * decorators, callbacks for when attributes change, and so on.
1759
+ *
1760
+ * @param Cstr the constructor for a component that we need to process
1761
+ * @param cmpMeta metadata collected previously about the component
1762
+ * @param flags a number used to store a series of bit flags
1763
+ * @returns a reference to the same constructor passed in (but now mutated)
1764
+ */
1765
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1766
+ var _a;
1767
+ if (cmpMeta.$members$) {
1768
+ if (Cstr.watchers) {
1769
+ cmpMeta.$watchers$ = Cstr.watchers;
1770
+ }
1771
+ // It's better to have a const than two Object.entries()
1772
+ const members = Object.entries(cmpMeta.$members$);
1773
+ const prototype = Cstr.prototype;
1774
+ members.map(([memberName, [memberFlags]]) => {
1775
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1776
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1777
+ // proxyComponent - prop
1778
+ Object.defineProperty(prototype, memberName, {
1779
+ get() {
1780
+ // proxyComponent, get value
1781
+ return getValue(this, memberName);
1782
+ },
1783
+ set(newValue) {
1784
+ // proxyComponent, set value
1785
+ setValue(this, memberName, newValue, cmpMeta);
1786
+ },
1787
+ configurable: true,
1788
+ enumerable: true,
1789
+ });
1790
+ }
1791
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1792
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1793
+ // proxyComponent - method
1794
+ Object.defineProperty(prototype, memberName, {
1795
+ value(...args) {
1796
+ const ref = getHostRef(this);
1797
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1798
+ },
1799
+ });
1800
+ }
1801
+ });
1802
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1803
+ const attrNameToPropName = new Map();
1804
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1805
+ plt.jmp(() => {
1806
+ const propName = attrNameToPropName.get(attrName);
1807
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1808
+ // in the case where an attribute was set inline.
1809
+ // ```html
1810
+ // <my-component some-attribute="some-value"></my-component>
1811
+ // ```
1812
+ //
1813
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1814
+ // programmatically changes it before it has been upgraded as shown below:
1815
+ //
1816
+ // ```html
1817
+ // <!-- this component has _not_ been upgraded yet -->
1818
+ // <my-component id="test" some-attribute="some-value"></my-component>
1819
+ // <script>
1820
+ // // grab non-upgraded component
1821
+ // el = document.querySelector("#test");
1822
+ // el.someAttribute = "another-value";
1823
+ // // upgrade component
1824
+ // customElements.define('my-component', MyComponent);
1825
+ // </script>
1826
+ // ```
1827
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1828
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1829
+ // to the value that was set inline i.e. "some-value" from above example. When
1830
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1831
+ //
1832
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1833
+ // by connectedCallback as this attributeChangedCallback will not fire.
1834
+ //
1835
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1836
+ //
1837
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1838
+ // properties here given that this goes against best practices outlined here
1839
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1840
+ if (this.hasOwnProperty(propName)) {
1841
+ newValue = this[propName];
1842
+ delete this[propName];
1843
+ }
1844
+ else if (prototype.hasOwnProperty(propName) &&
1845
+ typeof this[propName] === 'number' &&
1846
+ this[propName] == newValue) {
1847
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1848
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1849
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1850
+ return;
1851
+ }
1852
+ else if (propName == null) {
1853
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1854
+ // on a vanilla web component
1855
+ const hostRef = getHostRef(this);
1856
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1857
+ // We only want to trigger the callback(s) if:
1858
+ // 1. The instance is ready
1859
+ // 2. The watchers are ready
1860
+ // 3. The value has changed
1861
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1862
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1863
+ newValue !== oldValue) {
1864
+ const instance = hostRef.$lazyInstance$ ;
1865
+ const entry = cmpMeta.$watchers$[attrName];
1866
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1867
+ if (instance[callbackName] != null) {
1868
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1869
+ }
1870
+ });
1871
+ }
1872
+ return;
1873
+ }
1874
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1875
+ });
1876
+ };
1877
+ // Create an array of attributes to observe
1878
+ // This list in comprised of all strings used within a `@Watch()` decorator
1879
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1880
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1881
+ // an invalid attribute.
1882
+ Cstr.observedAttributes = Array.from(new Set([
1883
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1884
+ ...members
1885
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1886
+ .map(([propName, m]) => {
1887
+ const attrName = m[1] || propName;
1888
+ attrNameToPropName.set(attrName, propName);
1889
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1890
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1891
+ }
1892
+ return attrName;
1893
+ }),
1894
+ ]));
1895
+ }
1896
+ }
1897
+ return Cstr;
1898
+ };
1899
+ /**
1900
+ * Initialize a Stencil component given a reference to its host element, its
1901
+ * runtime bookkeeping data structure, runtime metadata about the component,
1902
+ * and (optionally) an HMR version ID.
1903
+ *
1904
+ * @param elm a host element
1905
+ * @param hostRef the element's runtime bookkeeping object
1906
+ * @param cmpMeta runtime metadata for the Stencil component
1907
+ * @param hmrVersionId an (optional) HMR version ID
1908
+ */
1909
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1910
+ let Cstr;
1911
+ // initializeComponent
1912
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1913
+ // Let the runtime know that the component has been initialized
1914
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1915
+ {
1916
+ // lazy loaded components
1917
+ // request the component's implementation to be
1918
+ // wired up with the host element
1919
+ Cstr = loadModule(cmpMeta);
1920
+ if (Cstr.then) {
1921
+ // Await creates a micro-task avoid if possible
1922
+ const endLoad = uniqueTime();
1923
+ Cstr = await Cstr;
1924
+ endLoad();
1925
+ }
1926
+ if (!Cstr.isProxied) {
1927
+ // we've never proxied this Constructor before
1928
+ // let's add the getters/setters to its prototype before
1929
+ // the first time we create an instance of the implementation
1930
+ {
1931
+ cmpMeta.$watchers$ = Cstr.watchers;
1932
+ }
1933
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1934
+ Cstr.isProxied = true;
1935
+ }
1936
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1937
+ // ok, time to construct the instance
1938
+ // but let's keep track of when we start and stop
1939
+ // so that the getters/setters don't incorrectly step on data
1940
+ {
1941
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1942
+ }
1943
+ // construct the lazy-loaded component implementation
1944
+ // passing the hostRef is very important during
1945
+ // construction in order to directly wire together the
1946
+ // host element and the lazy-loaded instance
1947
+ try {
1948
+ new Cstr(hostRef);
1949
+ }
1950
+ catch (e) {
1951
+ consoleError(e);
1952
+ }
1953
+ {
1954
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1955
+ }
1956
+ {
1957
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1958
+ }
1959
+ endNewInstance();
1960
+ }
1961
+ if (Cstr.style) {
1962
+ // this component has styles but we haven't registered them yet
1963
+ let style = Cstr.style;
1964
+ const scopeId = getScopeId(cmpMeta);
1965
+ if (!styles.has(scopeId)) {
1966
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1967
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1968
+ endRegisterStyles();
1969
+ }
1970
+ }
1971
+ }
1972
+ // we've successfully created a lazy instance
1973
+ const ancestorComponent = hostRef.$ancestorComponent$;
1974
+ const schedule = () => scheduleUpdate(hostRef, true);
1975
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1976
+ // this is the initial load and this component it has an ancestor component
1977
+ // but the ancestor component has NOT fired its will update lifecycle yet
1978
+ // so let's just cool our jets and wait for the ancestor to continue first
1979
+ // this will get fired off when the ancestor component
1980
+ // finally gets around to rendering its lazy self
1981
+ // fire off the initial update
1982
+ ancestorComponent['s-rc'].push(schedule);
1983
+ }
1984
+ else {
1985
+ schedule();
1986
+ }
1987
+ };
1988
+ const fireConnectedCallback = (instance) => {
1989
+ };
1990
+ const connectedCallback = (elm) => {
1991
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1992
+ const hostRef = getHostRef(elm);
1993
+ const cmpMeta = hostRef.$cmpMeta$;
1994
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1995
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1996
+ // first time this component has connected
1997
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1998
+ {
1999
+ // initUpdate
2000
+ // if the slot polyfill is required we'll need to put some nodes
2001
+ // in here to act as original content anchors as we move nodes around
2002
+ // host element has been connected to the DOM
2003
+ if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2004
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
2005
+ setContentReference(elm);
2006
+ }
2007
+ }
2008
+ {
2009
+ // find the first ancestor component (if there is one) and register
2010
+ // this component as one of the actively loading child components for its ancestor
2011
+ let ancestorComponent = elm;
2012
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2013
+ // climb up the ancestors looking for the first
2014
+ // component that hasn't finished its lifecycle update yet
2015
+ if (ancestorComponent['s-p']) {
2016
+ // we found this components first ancestor component
2017
+ // keep a reference to this component's ancestor component
2018
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
2019
+ break;
2020
+ }
2021
+ }
2022
+ }
2023
+ // Lazy properties
2024
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2025
+ if (cmpMeta.$members$) {
2026
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2027
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
2028
+ const value = elm[memberName];
2029
+ delete elm[memberName];
2030
+ elm[memberName] = value;
2031
+ }
2032
+ });
2033
+ }
2034
+ {
2035
+ initializeComponent(elm, hostRef, cmpMeta);
2036
+ }
2037
+ }
2038
+ else {
2039
+ // not the first time this has connected
2040
+ // reattach any event listeners to the host
2041
+ // since they would have been removed when disconnected
2042
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2043
+ // fire off connectedCallback() on component instance
2044
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
2045
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2046
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
2047
+ }
2048
+ }
2049
+ endConnected();
2050
+ }
2051
+ };
2052
+ const setContentReference = (elm) => {
2053
+ // only required when we're NOT using native shadow dom (slot)
2054
+ // or this browser doesn't support native shadow dom
2055
+ // and this host element was NOT created with SSR
2056
+ // let's pick out the inner content for slot projection
2057
+ // create a node to represent where the original
2058
+ // content was first placed, which is useful later on
2059
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
2060
+ contentRefElm['s-cn'] = true;
2061
+ elm.insertBefore(contentRefElm, elm.firstChild);
2062
+ };
2063
+ const disconnectInstance = (instance) => {
2064
+ {
2065
+ safeCall(instance, 'disconnectedCallback');
2066
+ }
2067
+ };
2068
+ const disconnectedCallback = async (elm) => {
2069
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2070
+ const hostRef = getHostRef(elm);
2071
+ {
2072
+ if (hostRef.$rmListeners$) {
2073
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2074
+ hostRef.$rmListeners$ = undefined;
2075
+ }
2076
+ }
2077
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2078
+ disconnectInstance(hostRef.$lazyInstance$);
2079
+ }
2080
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2081
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2082
+ }
2083
+ }
2084
+ };
2085
+ const bootstrapLazy = (lazyBundles, options = {}) => {
2086
+ var _a;
2087
+ const endBootstrap = createTime();
2088
+ const cmpTags = [];
2089
+ const exclude = options.exclude || [];
2090
+ const customElements = win.customElements;
2091
+ const head = doc.head;
2092
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2093
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
2094
+ const deferredConnectedCallbacks = [];
2095
+ let appLoadFallback;
2096
+ let isBootstrapping = true;
2097
+ Object.assign(plt, options);
2098
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2099
+ lazyBundles.map((lazyBundle) => {
2100
+ lazyBundle[1].map((compactMeta) => {
2101
+ var _a;
2102
+ const cmpMeta = {
2103
+ $flags$: compactMeta[0],
2104
+ $tagName$: compactMeta[1],
2105
+ $members$: compactMeta[2],
2106
+ $listeners$: compactMeta[3],
2107
+ };
2108
+ {
2109
+ cmpMeta.$members$ = compactMeta[2];
2110
+ }
2111
+ {
2112
+ cmpMeta.$listeners$ = compactMeta[3];
2113
+ }
2114
+ {
2115
+ cmpMeta.$attrsToReflect$ = [];
2116
+ }
2117
+ {
2118
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2119
+ }
2120
+ const tagName = cmpMeta.$tagName$;
2121
+ const HostElement = class extends HTMLElement {
2122
+ // StencilLazyHost
2123
+ constructor(self) {
2124
+ // @ts-ignore
2125
+ super(self);
2126
+ self = this;
2127
+ registerHost(self, cmpMeta);
2128
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2129
+ // this component is using shadow dom
2130
+ // and this browser supports shadow dom
2131
+ // add the read-only property "shadowRoot" to the host element
2132
+ // adding the shadow root build conditionals to minimize runtime
2133
+ {
2134
+ {
2135
+ self.attachShadow({ mode: 'open' });
2136
+ }
2137
+ }
2138
+ }
2139
+ }
2140
+ connectedCallback() {
2141
+ if (appLoadFallback) {
2142
+ clearTimeout(appLoadFallback);
2143
+ appLoadFallback = null;
2144
+ }
2145
+ if (isBootstrapping) {
2146
+ // connectedCallback will be processed once all components have been registered
2147
+ deferredConnectedCallbacks.push(this);
2148
+ }
2149
+ else {
2150
+ plt.jmp(() => connectedCallback(this));
2151
+ }
2152
+ }
2153
+ disconnectedCallback() {
2154
+ plt.jmp(() => disconnectedCallback(this));
2155
+ }
2156
+ componentOnReady() {
2157
+ return getHostRef(this).$onReadyPromise$;
2158
+ }
2159
+ };
2160
+ // if the component is formAssociated we need to set that on the host
2161
+ // element so that it will be ready for `attachInternals` to be called on
2162
+ // it later on
2163
+ if (cmpMeta.$flags$ & 64 /* CMP_FLAGS.formAssociated */) {
2164
+ HostElement.formAssociated = true;
2165
+ }
2166
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2167
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2168
+ cmpTags.push(tagName);
2169
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2170
+ }
2171
+ });
2172
+ });
2173
+ {
2174
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
2175
+ visibilityStyle.setAttribute('data-styles', '');
2176
+ // Apply CSP nonce to the style tag if it exists
2177
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2178
+ if (nonce != null) {
2179
+ visibilityStyle.setAttribute('nonce', nonce);
2180
+ }
2181
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
2182
+ }
2183
+ // Process deferred connectedCallbacks now all components have been registered
2184
+ isBootstrapping = false;
2185
+ if (deferredConnectedCallbacks.length) {
2186
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2187
+ }
2188
+ else {
2189
+ {
2190
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2191
+ }
2192
+ }
2193
+ // Fallback appLoad event
2194
+ endBootstrap();
2195
+ };
2196
+ const Fragment = (_, children) => children;
2197
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2198
+ if (listeners) {
2199
+ listeners.map(([flags, name, method]) => {
2200
+ const target = elm;
2201
+ const handler = hostListenerProxy(hostRef, method);
2202
+ const opts = hostListenerOpts(flags);
2203
+ plt.ael(target, name, handler, opts);
2204
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2205
+ });
2206
+ }
2207
+ };
2208
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
2209
+ try {
2210
+ {
2211
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2212
+ // instance is ready, let's call it's member method for this event
2213
+ hostRef.$lazyInstance$[methodName](ev);
2214
+ }
2215
+ else {
2216
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2217
+ }
2218
+ }
2219
+ }
2220
+ catch (e) {
2221
+ consoleError(e);
2222
+ }
2223
+ };
2224
+ // prettier-ignore
2225
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2226
+ /**
2227
+ * Assigns the given value to the nonce property on the runtime platform object.
2228
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2229
+ * @param nonce The value to be assigned to the platform nonce property.
2230
+ * @returns void
2231
+ */
2232
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2233
+ /**
2234
+ * A WeakMap mapping runtime component references to their corresponding host reference
2235
+ * instances.
2236
+ */
2237
+ const hostRefs = /*@__PURE__*/ new WeakMap();
2238
+ /**
2239
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2240
+ *
2241
+ * @param ref the runtime ref of interest
2242
+ * @returns the Host reference (if found) or undefined
2243
+ */
2244
+ const getHostRef = (ref) => hostRefs.get(ref);
2245
+ /**
2246
+ * Register a lazy instance with the {@link hostRefs} object so it's
2247
+ * corresponding {@link d.HostRef} can be retrieved later.
2248
+ *
2249
+ * @param lazyInstance the lazy instance of interest
2250
+ * @param hostRef that instances `HostRef` object
2251
+ * @returns a reference to the host ref WeakMap
2252
+ */
2253
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2254
+ /**
2255
+ * Register a host element for a Stencil component, setting up various metadata
2256
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
2257
+ * metadata.
2258
+ *
2259
+ * @param hostElement the host element to register
2260
+ * @param cmpMeta runtime metadata for that component
2261
+ * @returns a reference to the host ref WeakMap
2262
+ */
2263
+ const registerHost = (hostElement, cmpMeta) => {
2264
+ const hostRef = {
2265
+ $flags$: 0,
2266
+ $hostElement$: hostElement,
2267
+ $cmpMeta$: cmpMeta,
2268
+ $instanceValues$: new Map(),
2269
+ };
2270
+ {
2271
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2272
+ }
2273
+ {
2274
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2275
+ hostElement['s-p'] = [];
2276
+ hostElement['s-rc'] = [];
2277
+ }
2278
+ addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2279
+ return hostRefs.set(hostElement, hostRef);
2280
+ };
2281
+ const isMemberInElement = (elm, memberName) => memberName in elm;
2282
+ const consoleError = (e, el) => (0, console.error)(e, el);
2283
+ const cmpModules = /*@__PURE__*/ new Map();
2284
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2285
+ // loadModuleImport
2286
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2287
+ const bundleId = cmpMeta.$lazyBundleId$;
2288
+ const module = cmpModules.get(bundleId) ;
2289
+ if (module) {
2290
+ return module[exportName];
2291
+ }
2292
+
2293
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2294
+ const processMod = importedModule => {
2295
+ cmpModules.set(bundleId, importedModule);
2296
+ return importedModule[exportName];
2297
+ }
2298
+ switch(bundleId) {
2299
+
2300
+ case 'c-badge_12.cjs':
2301
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2302
+ /* webpackMode: "lazy" */
2303
+ './c-badge_12.cjs.entry.js')); }).then(processMod, consoleError);
2304
+ case 'c-accordion.cjs':
2305
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2306
+ /* webpackMode: "lazy" */
2307
+ './c-accordion.cjs.entry.js')); }).then(processMod, consoleError);
2308
+ case 'c-accordion-item.cjs':
2309
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2310
+ /* webpackMode: "lazy" */
2311
+ './c-accordion-item.cjs.entry.js')); }).then(processMod, consoleError);
2312
+ case 'c-alert.cjs':
2313
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2314
+ /* webpackMode: "lazy" */
2315
+ './c-alert.cjs.entry.js')); }).then(processMod, consoleError);
2316
+ case 'c-autocomplete.cjs':
2317
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2318
+ /* webpackMode: "lazy" */
2319
+ './c-autocomplete.cjs.entry.js')); }).then(processMod, consoleError);
2320
+ case 'c-card-content.cjs':
2321
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2322
+ /* webpackMode: "lazy" */
2323
+ './c-card-content.cjs.entry.js')); }).then(processMod, consoleError);
2324
+ case 'c-card-title.cjs':
2325
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2326
+ /* webpackMode: "lazy" */
2327
+ './c-card-title.cjs.entry.js')); }).then(processMod, consoleError);
2328
+ case 'c-data-table.cjs':
2329
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2330
+ /* webpackMode: "lazy" */
2331
+ './c-data-table.cjs.entry.js')); }).then(processMod, consoleError);
2332
+ case 'c-link.cjs':
2333
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2334
+ /* webpackMode: "lazy" */
2335
+ './c-link.cjs.entry.js')); }).then(processMod, consoleError);
2336
+ case 'c-list.cjs':
2337
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2338
+ /* webpackMode: "lazy" */
2339
+ './c-list.cjs.entry.js')); }).then(processMod, consoleError);
2340
+ case 'c-list-item.cjs':
2341
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2342
+ /* webpackMode: "lazy" */
2343
+ './c-list-item.cjs.entry.js')); }).then(processMod, consoleError);
2344
+ case 'c-list-item-title.cjs':
2345
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2346
+ /* webpackMode: "lazy" */
2347
+ './c-list-item-title.cjs.entry.js')); }).then(processMod, consoleError);
2348
+ case 'c-login-button.cjs':
2349
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2350
+ /* webpackMode: "lazy" */
2351
+ './c-login-button.cjs.entry.js')); }).then(processMod, consoleError);
2352
+ case 'c-login-buttons.cjs':
2353
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2354
+ /* webpackMode: "lazy" */
2355
+ './c-login-buttons.cjs.entry.js')); }).then(processMod, consoleError);
2356
+ case 'c-login-card.cjs':
2357
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2358
+ /* webpackMode: "lazy" */
2359
+ './c-login-card.cjs.entry.js')); }).then(processMod, consoleError);
2360
+ case 'c-login-card-actions.cjs':
2361
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2362
+ /* webpackMode: "lazy" */
2363
+ './c-login-card-actions.cjs.entry.js')); }).then(processMod, consoleError);
2364
+ case 'c-login-card-content.cjs':
2365
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2366
+ /* webpackMode: "lazy" */
2367
+ './c-login-card-content.cjs.entry.js')); }).then(processMod, consoleError);
2368
+ case 'c-login-card-title.cjs':
2369
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2370
+ /* webpackMode: "lazy" */
2371
+ './c-login-card-title.cjs.entry.js')); }).then(processMod, consoleError);
2372
+ case 'c-modal.cjs':
2373
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2374
+ /* webpackMode: "lazy" */
2375
+ './c-modal.cjs.entry.js')); }).then(processMod, consoleError);
2376
+ case 'c-navigation-button.cjs':
2377
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2378
+ /* webpackMode: "lazy" */
2379
+ './c-navigation-button.cjs.entry.js')); }).then(processMod, consoleError);
2380
+ case 'c-option.cjs':
2381
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2382
+ /* webpackMode: "lazy" */
2383
+ './c-option.cjs.entry.js')); }).then(processMod, consoleError);
2384
+ case 'c-option-value.cjs':
2385
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2386
+ /* webpackMode: "lazy" */
2387
+ './c-option-value.cjs.entry.js')); }).then(processMod, consoleError);
2388
+ case 'c-otp-input.cjs':
2389
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2390
+ /* webpackMode: "lazy" */
2391
+ './c-otp-input.cjs.entry.js')); }).then(processMod, consoleError);
2392
+ case 'c-page.cjs':
2393
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2394
+ /* webpackMode: "lazy" */
2395
+ './c-page.cjs.entry.js')); }).then(processMod, consoleError);
2396
+ case 'c-progress-bar.cjs':
2397
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2398
+ /* webpackMode: "lazy" */
2399
+ './c-progress-bar.cjs.entry.js')); }).then(processMod, consoleError);
2400
+ case 'c-radio.cjs':
2401
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2402
+ /* webpackMode: "lazy" */
2403
+ './c-radio.cjs.entry.js')); }).then(processMod, consoleError);
2404
+ case 'c-radio-group.cjs':
2405
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2406
+ /* webpackMode: "lazy" */
2407
+ './c-radio-group.cjs.entry.js')); }).then(processMod, consoleError);
2408
+ case 'c-select.cjs':
2409
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2410
+ /* webpackMode: "lazy" */
2411
+ './c-select.cjs.entry.js')); }).then(processMod, consoleError);
2412
+ case 'c-side-navigation.cjs':
2413
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2414
+ /* webpackMode: "lazy" */
2415
+ './c-side-navigation.cjs.entry.js')); }).then(processMod, consoleError);
2416
+ case 'c-side-navigation-item.cjs':
2417
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2418
+ /* webpackMode: "lazy" */
2419
+ './c-side-navigation-item.cjs.entry.js')); }).then(processMod, consoleError);
2420
+ case 'c-side-navigation-title.cjs':
2421
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2422
+ /* webpackMode: "lazy" */
2423
+ './c-side-navigation-title.cjs.entry.js')); }).then(processMod, consoleError);
2424
+ case 'c-status.cjs':
2425
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2426
+ /* webpackMode: "lazy" */
2427
+ './c-status.cjs.entry.js')); }).then(processMod, consoleError);
2428
+ case 'c-step.cjs':
2429
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2430
+ /* webpackMode: "lazy" */
2431
+ './c-step.cjs.entry.js')); }).then(processMod, consoleError);
2432
+ case 'c-steps.cjs':
2433
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2434
+ /* webpackMode: "lazy" */
2435
+ './c-steps.cjs.entry.js')); }).then(processMod, consoleError);
2436
+ case 'c-sub-navigation-item.cjs':
2437
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2438
+ /* webpackMode: "lazy" */
2439
+ './c-sub-navigation-item.cjs.entry.js')); }).then(processMod, consoleError);
2440
+ case 'c-swiper.cjs':
2441
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2442
+ /* webpackMode: "lazy" */
2443
+ './c-swiper.cjs.entry.js')); }).then(processMod, consoleError);
2444
+ case 'c-swiper-tab.cjs':
2445
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2446
+ /* webpackMode: "lazy" */
2447
+ './c-swiper-tab.cjs.entry.js')); }).then(processMod, consoleError);
2448
+ case 'c-switch.cjs':
2449
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2450
+ /* webpackMode: "lazy" */
2451
+ './c-switch.cjs.entry.js')); }).then(processMod, consoleError);
2452
+ case 'c-tab.cjs':
2453
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2454
+ /* webpackMode: "lazy" */
2455
+ './c-tab.cjs.entry.js')); }).then(processMod, consoleError);
2456
+ case 'c-tab-buttons.cjs':
2457
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2458
+ /* webpackMode: "lazy" */
2459
+ './c-tab-buttons.cjs.entry.js')); }).then(processMod, consoleError);
2460
+ case 'c-tab-item.cjs':
2461
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2462
+ /* webpackMode: "lazy" */
2463
+ './c-tab-item.cjs.entry.js')); }).then(processMod, consoleError);
2464
+ case 'c-tab-items.cjs':
2465
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2466
+ /* webpackMode: "lazy" */
2467
+ './c-tab-items.cjs.entry.js')); }).then(processMod, consoleError);
2468
+ case 'c-table.cjs':
2469
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2470
+ /* webpackMode: "lazy" */
2471
+ './c-table.cjs.entry.js')); }).then(processMod, consoleError);
2472
+ case 'c-tabs.cjs':
2473
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2474
+ /* webpackMode: "lazy" */
2475
+ './c-tabs.cjs.entry.js')); }).then(processMod, consoleError);
2476
+ case 'c-tag.cjs':
2477
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2478
+ /* webpackMode: "lazy" */
2479
+ './c-tag.cjs.entry.js')); }).then(processMod, consoleError);
2480
+ case 'c-tags.cjs':
2481
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2482
+ /* webpackMode: "lazy" */
2483
+ './c-tags.cjs.entry.js')); }).then(processMod, consoleError);
2484
+ case 'c-text-field.cjs':
2485
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2486
+ /* webpackMode: "lazy" */
2487
+ './c-text-field.cjs.entry.js')); }).then(processMod, consoleError);
2488
+ case 'c-toasts.cjs':
2489
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2490
+ /* webpackMode: "lazy" */
2491
+ './c-toasts.cjs.entry.js')); }).then(processMod, consoleError);
2492
+ case 'c-card-actions.cjs':
2493
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2494
+ /* webpackMode: "lazy" */
2495
+ './c-card-actions.cjs.entry.js')); }).then(processMod, consoleError);
2496
+ case 'c-checkbox_2.cjs':
2497
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2498
+ /* webpackMode: "lazy" */
2499
+ './c-checkbox_2.cjs.entry.js')); }).then(processMod, consoleError);
2500
+ case 'c-toast.cjs':
2501
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2502
+ /* webpackMode: "lazy" */
2503
+ './c-toast.cjs.entry.js')); }).then(processMod, consoleError);
2504
+ case 'c-loader.cjs':
2505
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2506
+ /* webpackMode: "lazy" */
2507
+ './c-loader.cjs.entry.js')); }).then(processMod, consoleError);
2508
+ case 'c-menu_2.cjs':
2509
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2510
+ /* webpackMode: "lazy" */
2511
+ './c-menu_2.cjs.entry.js')); }).then(processMod, consoleError);
2512
+ case 'c-dropdown_4.cjs':
2513
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2514
+ /* webpackMode: "lazy" */
2515
+ './c-dropdown_4.cjs.entry.js')); }).then(processMod, consoleError);
2516
+ }
2517
+ }
2518
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2519
+ /* @vite-ignore */
2520
+ /* webpackInclude: /\.entry\.js$/ */
2521
+ /* webpackExclude: /\.system\.entry\.js$/ */
2522
+ /* webpackMode: "lazy" */
2523
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2524
+ {
2525
+ cmpModules.set(bundleId, importedModule);
2526
+ }
2527
+ return importedModule[exportName];
2528
+ }, consoleError);
2529
+ };
2530
+ const styles = /*@__PURE__*/ new Map();
2531
+ const win = typeof window !== 'undefined' ? window : {};
2532
+ const doc = win.document || { head: {} };
2533
+ const plt = {
2534
+ $flags$: 0,
2535
+ $resourcesUrl$: '',
2536
+ jmp: (h) => h(),
2537
+ raf: (h) => requestAnimationFrame(h),
2538
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2539
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2540
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2541
+ };
2542
+ const promiseResolve = (v) => Promise.resolve(v);
2543
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2544
+ try {
2545
+ new CSSStyleSheet();
2546
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2547
+ }
2548
+ catch (e) { }
2549
+ return false;
2550
+ })()
2551
+ ;
2552
+ const queueDomReads = [];
2553
+ const queueDomWrites = [];
2554
+ const queueTask = (queue, write) => (cb) => {
2555
+ queue.push(cb);
2556
+ if (!queuePending) {
2557
+ queuePending = true;
2558
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2559
+ nextTick(flush);
2560
+ }
2561
+ else {
2562
+ plt.raf(flush);
2563
+ }
2564
+ }
2565
+ };
2566
+ const consume = (queue) => {
2567
+ for (let i = 0; i < queue.length; i++) {
2568
+ try {
2569
+ queue[i](performance.now());
2570
+ }
2571
+ catch (e) {
2572
+ consoleError(e);
2573
+ }
2574
+ }
2575
+ queue.length = 0;
2576
+ };
2577
+ const flush = () => {
2578
+ // always force a bunch of medium callbacks to run, but still have
2579
+ // a throttle on how many can run in a certain time
2580
+ // DOM READS!!!
2581
+ consume(queueDomReads);
2582
+ // DOM WRITES!!!
2583
+ {
2584
+ consume(queueDomWrites);
2585
+ if ((queuePending = queueDomReads.length > 0)) {
2586
+ // still more to do yet, but we've run out of time
2587
+ // let's let this thing cool off and try again in the next tick
2588
+ plt.raf(flush);
2589
+ }
2590
+ }
2591
+ };
2592
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2593
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2594
+
2595
+ exports.Fragment = Fragment;
2596
+ exports.Host = Host;
2597
+ exports.bootstrapLazy = bootstrapLazy;
2598
+ exports.createEvent = createEvent;
2599
+ exports.getElement = getElement;
2600
+ exports.h = h;
2601
+ exports.promiseResolve = promiseResolve;
2602
+ exports.registerInstance = registerInstance;
2603
+ exports.setNonce = setNonce;
2604
+
2605
+ //# sourceMappingURL=index-3cad12b5.js.map