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