@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,151 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3cad12b5.js');
6
+ const mdi = require('./mdi-16842afc.js');
7
+
8
+ const cTextFieldCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
9
+
10
+ const CTextField = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.changeValue = index.createEvent(this, "changeValue", 3);
14
+ if (hostRef.$hostElement$["s-ei"]) {
15
+ this.internals = hostRef.$hostElement$["s-ei"];
16
+ }
17
+ else {
18
+ this.internals = hostRef.$hostElement$.attachInternals();
19
+ hostRef.$hostElement$["s-ei"] = this.internals;
20
+ }
21
+ this._originalType = '';
22
+ this._handleChange = (event) => {
23
+ this.value = this.trimWhitespace
24
+ ? event.target.value.trim()
25
+ : event.target.value;
26
+ this.changeValue.emit(this.value);
27
+ this.internals.setFormValue(this.value);
28
+ };
29
+ this._handleBlur = (event) => {
30
+ if (this.trimWhitespace) {
31
+ const trimmedValue = event.target.value.trim();
32
+ event.target.value = trimmedValue;
33
+ }
34
+ };
35
+ this._togglePasswordVisibility = () => {
36
+ if (this.disabled)
37
+ return;
38
+ this.type = this.type === 'password' ? 'text' : 'password';
39
+ };
40
+ this.autofocus = false;
41
+ this.autocapitalize = '';
42
+ this.autocorrect = '';
43
+ this.autocomplete = '';
44
+ this.disabled = false;
45
+ this.hideDetails = false;
46
+ this.hint = '';
47
+ this.hostId = undefined;
48
+ this.trimWhitespace = false;
49
+ this.label = undefined;
50
+ this.max = null;
51
+ this.min = null;
52
+ this.name = undefined;
53
+ this.number = false;
54
+ this.placeholder = undefined;
55
+ this.readonly = false;
56
+ this.required = false;
57
+ this.rows = 1;
58
+ this.shadow = false;
59
+ this.step = null;
60
+ this.type = undefined;
61
+ this.valid = true;
62
+ this.validate = false;
63
+ this.validateOnBlur = false;
64
+ this.validation = 'Required field';
65
+ this.value = undefined;
66
+ this.isFocused = false;
67
+ this.labelWidth = 0;
68
+ this.preSlotWidth = 0;
69
+ this.messageOptions = {
70
+ show: true,
71
+ type: 'hint',
72
+ content: '',
73
+ };
74
+ }
75
+ componentWillLoad() {
76
+ CTextField._uniqueId += 1;
77
+ this._originalType = this.type;
78
+ this._inputId = `${(this.hostId ||
79
+ this.label ||
80
+ this.placeholder ||
81
+ '').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;
82
+ this.internals.setFormValue(this.value);
83
+ }
84
+ get isActive() {
85
+ return !!this.value || this.isFocused;
86
+ }
87
+ get passwordIcon() {
88
+ return this.type === 'password' ? mdi.mdiEye : mdi.mdiEyeOff;
89
+ }
90
+ _renderInputElement() {
91
+ const props = {
92
+ classes: {
93
+ 'c-input__input': true,
94
+ 'c-input__input--filled': !!this.value,
95
+ },
96
+ shared: {
97
+ id: this._inputId,
98
+ name: this.name,
99
+ disabled: this.disabled,
100
+ readonly: this.readonly,
101
+ value: this.value,
102
+ onInput: this._handleChange,
103
+ onChange: this._handleChange,
104
+ onBlur: this._handleBlur,
105
+ },
106
+ input: Object.assign(Object.assign(Object.assign({ type: this.number ? 'number' : this.type || 'text', min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.autocapitalize && { autocapitalize: this.autocapitalize })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
107
+ textArea: {
108
+ rows: this.rows,
109
+ },
110
+ };
111
+ const textInput = (index.h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
112
+ const textArea = (index.h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
113
+ return this.rows > 1 ? textArea : textInput;
114
+ }
115
+ _isFirefox() {
116
+ return !!navigator.userAgent.match(/firefox|fxios/i);
117
+ }
118
+ _renderDateToggle() {
119
+ if (this._originalType !== 'date' || this._isFirefox())
120
+ return;
121
+ const classes = {
122
+ 'c-input__date-toggle': true,
123
+ 'c-input__date-toggle--disabled': this.disabled,
124
+ };
125
+ return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, index.h("path", { d: mdi.mdiCalendar })));
126
+ }
127
+ _toggleDatepicker() {
128
+ var _a;
129
+ (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
130
+ }
131
+ _renderPasswordToggle() {
132
+ if (this._originalType !== 'password')
133
+ return;
134
+ const classes = {
135
+ 'c-input__password-toggle': true,
136
+ 'c-input__password-toggle--disabled': this.disabled,
137
+ };
138
+ return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, index.h("path", { d: this.passwordIcon })));
139
+ }
140
+ render() {
141
+ return (index.h(index.Host, null, index.h("c-input", { autofocus: this.autofocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, index.h("slot", { name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { name: "post" }))));
142
+ }
143
+ static get formAssociated() { return true; }
144
+ get hiddenEl() { return index.getElement(this); }
145
+ };
146
+ CTextField._uniqueId = 0;
147
+ CTextField.style = cTextFieldCss;
148
+
149
+ exports.c_text_field = CTextField;
150
+
151
+ //# sourceMappingURL=c-text-field.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"c-text-field.entry.cjs.js","mappings":"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","names":["mdiEye","mdiEyeOff","h","mdiCalendar","Host"],"sources":["src/components/c-text-field/c-text-field.scss?tag=c-text-field&encapsulation=shadow","src/components/c-text-field/c-text-field.tsx"],"sourcesContent":[":root,\n:host {\n /**\n * @prop --c-text-field-active-color: Active text field color\n * @prop --c-text-field-inactive-color: Inactive text field color\n * @prop --c-text-field-background-color: Inactive text field background color\n * @prop --c-text-field-text-color: Text field text color\n * @prop --c-text-field-placeholder-color:Text field placeholder color\n * @prop --c-text-field-shadow-active-color: Shadow text field active color\n * @prop --c-text-field-shadow-background-color: Shadow text field background color\n * @prop --c-text-field-shadow-text-color: Shadow text field text color\n * @prop --c-text-field-shadow-placeholder-color: Shadow text field placeholder color\n */\n --_c-text-field-active-color: var(--c-text-field-active-color, var(--c-primary-600));\n --_c-text-field-inactive-color: var(--c-text-field-inactive-color, var(--c-tertiary-600));\n --_c-text-field-background-color: var(--c-text-field-background-color, var(--c-transparent));\n --_c-text-field-text-color: var(--c-text-field-text-color, var(--c-text-body));\n --_c-text-field-placeholder-color: var(--c-text-field-placeholder-color, var(--c-tertiary-500));\n --_c-text-field-shadow-active-color: var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));\n --_c-text-field-shadow-background-color: var(--c-text-field-shadow-background-color, var(--c-white));\n --_c-text-field-shadow-text-color: var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));\n --_c-text-field-shadow-placeholder-color: var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));\n}\n\n.c-input {\n --_c-input-active-color: var(--_c-text-field-active-color);\n --_c-input-inactive-color: var(--_c-text-field-inactive-color);\n --_c-input-background-color: var(--_c-text-field-background-color);\n --_c-input-text-color: var(--_c-text-field-text-color);\n --_c-input-placeholder-color: var(--_c-text-field-placeholder-color);\n --_c-input-shadow-active-color: var(--_c-text-field-shadow-active-color);\n --_c-input-shadow-background-color: var(--_c-text-field-shadow-background-color);\n --_c-input-shadow-text-color: var(--_c-text-field-shadow-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-text-field-shadow-placeholder-color);\n\n &__password-toggle,\n &__date-toggle {\n cursor: pointer;\n fill: currentColor;\n height: 22px;\n width: 22px;\n\n &--disabled {\n cursor: not-allowed;\n fill: var(--c-tertiary-500);\n }\n }\n\n input {\n &[type=\"date\"] {\n opacity: 0;\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-inner-spin-button {\n display: none;\n appearance: none;\n }\n\n &:focus,\n &.c-input__input--filled {\n opacity: 1;\n }\n }\n }\n}\n","import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { mdiCalendar, mdiEye, mdiEyeOff } from '@mdi/js';\n\n/**\n * @group Form\n * @slot pre - Content added before the input\n * @slot post - Content added after the input\n */\n@Component({\n tag: 'c-text-field',\n styleUrl: 'c-text-field.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CTextField {\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Auto focus the input\n */\n @Prop() autofocus = false;\n\n /**\n * HTML input autocapitalize\n */\n @Prop() autocapitalize = '';\n\n /**\n * HTML input autocorrect\n */\n @Prop() autocorrect = '';\n\n /**\n * HTML input autocomplete\n */\n @Prop() autocomplete = '';\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Trim whitespace from the return value\n */\n @Prop() trimWhitespace = false;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Numeric input\n *\n * @deprecated Use type=\"number\" instead\n */\n @Prop() number = false;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type: string;\n\n /**\n * Set the validity of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop({ mutable: true }) value: string;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false }) changeValue: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() messageOptions = {\n show: true,\n type: 'hint',\n content: '',\n };\n\n @Element() hiddenEl!: HTMLCTextFieldElement;\n\n private _inputElement: HTMLInputElement;\n\n private _originalType = '';\n\n private _inputId: string;\n\n private static _uniqueId = 0;\n\n componentWillLoad() {\n CTextField._uniqueId += 1;\n\n this._originalType = this.type;\n\n this._inputId = `${(\n this.hostId ||\n this.label ||\n this.placeholder ||\n ''\n ).replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;\n\n this.internals.setFormValue(this.value);\n }\n\n get isActive() {\n return !!this.value || this.isFocused;\n }\n\n get passwordIcon() {\n return this.type === 'password' ? mdiEye : mdiEyeOff;\n }\n\n private _handleChange = (event) => {\n this.value = this.trimWhitespace\n ? event.target.value.trim()\n : event.target.value;\n\n this.changeValue.emit(this.value);\n this.internals.setFormValue(this.value);\n };\n\n private _handleBlur = (event) => {\n if (this.trimWhitespace) {\n const trimmedValue = event.target.value.trim();\n\n event.target.value = trimmedValue;\n }\n };\n\n private _renderInputElement() {\n const props = {\n classes: {\n 'c-input__input': true,\n 'c-input__input--filled': !!this.value,\n },\n shared: {\n id: this._inputId,\n name: this.name,\n disabled: this.disabled,\n readonly: this.readonly,\n value: this.value,\n onInput: this._handleChange,\n onChange: this._handleChange,\n onBlur: this._handleBlur,\n },\n input: {\n type: this.number ? 'number' : this.type || 'text',\n min: this.min,\n max: this.max,\n step: this.step,\n ...(!!this.autocomplete && { autocomplete: this.autocomplete }),\n ...(!!this.autocapitalize && { autocapitalize: this.autocapitalize }),\n ...(!!this.autocorrect && { autocorrect: this.autocorrect }),\n },\n textArea: {\n rows: this.rows,\n },\n };\n\n const textInput = (\n <input\n class={props.classes}\n {...props.input}\n {...props.shared}\n ref={(el) => (this._inputElement = el)}\n />\n );\n\n const textArea = (\n <textarea\n class={props.classes}\n {...props.shared}\n {...props.textArea}\n ></textarea>\n );\n\n return this.rows > 1 ? textArea : textInput;\n }\n\n private _isFirefox() {\n return !!navigator.userAgent.match(/firefox|fxios/i);\n }\n\n private _renderDateToggle() {\n if (this._originalType !== 'date' || this._isFirefox()) return;\n\n const classes = {\n 'c-input__date-toggle': true,\n 'c-input__date-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._toggleDatepicker.bind(this)}\n >\n <path d={mdiCalendar} />\n </svg>\n );\n }\n\n private _toggleDatepicker() {\n this._inputElement?.showPicker();\n }\n\n private _renderPasswordToggle() {\n if (this._originalType !== 'password') return;\n\n const classes = {\n 'c-input__password-toggle': true,\n 'c-input__password-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._togglePasswordVisibility}\n >\n <path d={this.passwordIcon} />\n </svg>\n );\n }\n\n private _togglePasswordVisibility = () => {\n if (this.disabled) return;\n\n this.type = this.type === 'password' ? 'text' : 'password';\n };\n\n render() {\n return (\n <Host>\n <c-input\n autofocus={this.autofocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n {this._renderInputElement()}\n\n {this._renderPasswordToggle()}\n\n {this._renderDateToggle()}\n\n <slot name=\"post\"></slot>\n </c-input>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,73 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3cad12b5.js');
6
+ const mdi = require('./mdi-16842afc.js');
7
+
8
+ const cToastCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-toast){--_c-toast-background-color:var(--c-toast-background-color, var(--c-white));--_c-toast-text-color:var(--c-toast-text-color, var(--c-text-system));--_c-toast-animation-state:running;align-items:center;background-color:var(--_c-toast-background-color);border-radius:6px;border:2px solid var(--_c-toast-color);border-left-width:12px;box-shadow:rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px, rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px, rgba(0, 0, 0, 0.07) 0 16px 16px;box-sizing:border-box;color:var(--_c-toast-text-color);display:grid;min-height:52px;opacity:0;padding:8px 12px;pointer-events:all;text-align:left;transform:translateY(20px);transition:opacity 0.5s ease, transform 0.5s ease;width:100%;will-change:opacity, transform;z-index:10001;position:relative}:host(.show){opacity:1;transform:translateY(0)}:host(.info){--_c-toast-color:var(--c-info-600)}:host(.error){--_c-toast-color:var(--c-error-600)}:host(.warning){--_c-toast-color:var(--c-warning-600)}:host(.success){--_c-toast-color:var(--c-success-600)}.c-toast__content p{margin:0;font-weight:600}.c-toast__item{align-items:center;display:grid;gap:12px;grid-auto-columns:auto;grid-auto-flow:column;grid-template-columns:24px 1fr;font-weight:300}.c-toast__item>svg{fill:var(--_c-toast-color)}.c-toast__item svg{height:24px;width:24px}.c-toast__progress{background-color:var(--c-tertiary-200);border-radius:8px;height:6px;margin-top:8px;overflow:hidden;transform:translateZ(0)}:host(:hover){--_c-toast-animation-state:paused}.c-toast__progress__bar{animation-duration:var(--_c-toast-duration);animation-fill-mode:forwards;animation-iteration-count:1;animation-name:timer;animation-play-state:var(--_c-toast-animation-state);animation-timing-function:linear;background-color:var(--_c-toast-color);border-radius:8px;height:6px;width:100%}.c-toast__progress__bar.indeterminate{animation:indeterminate 2s infinite linear;left:-100%;width:50%;position:relative;transform-origin:0% 50%}.visuallyhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes timer{100%{transform:translateX(-100%)}}@keyframes indeterminate{0%{transform:translateX(100%) scaleX(1)}30%{transform:translateX(170%) scaleX(1.75)}70%{transform:translateX(500%) scaleX(0.1)}100%{transform:translateX(500%) scaleX(0.1)}}";
9
+
10
+ const CToast = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.close = index.createEvent(this, "close", 7);
14
+ this._closed = false;
15
+ this._icons = {
16
+ close: mdi.mdiClose,
17
+ warning: mdi.mdiAlert,
18
+ error: mdi.mdiCloseCircle,
19
+ success: mdi.mdiCheckCircle,
20
+ info: mdi.mdiInformation,
21
+ };
22
+ this.message = undefined;
23
+ }
24
+ async closeToast() {
25
+ if (this._closed)
26
+ return;
27
+ this._closed = true;
28
+ this.el.classList.remove('show');
29
+ this.el.ontransitionend = () => this.close.emit(this.message);
30
+ }
31
+ componentDidLoad() {
32
+ window.requestAnimationFrame(() => {
33
+ this.el.classList.add('show');
34
+ });
35
+ if (this.message.persistent || this.message.indeterminate)
36
+ return;
37
+ this._startTime = Date.now();
38
+ this._remainingTime = this.message.duration;
39
+ this._timeout = window.setTimeout(() => this.closeToast(), +this.message.duration);
40
+ }
41
+ disconnectedCallback() {
42
+ window.clearTimeout(this._timeout);
43
+ }
44
+ _onMouseEnter() {
45
+ if (this.message.persistent || this.message.indeterminate)
46
+ return;
47
+ this._remainingTime = this._remainingTime - (Date.now() - this._startTime);
48
+ window.clearTimeout(this._timeout);
49
+ }
50
+ _onMouseLeave() {
51
+ if (this.message.persistent || this.message.indeterminate)
52
+ return;
53
+ this._startTime = Date.now();
54
+ this._timeout = window.setTimeout(() => this.closeToast(), this._remainingTime);
55
+ }
56
+ _renderCloseButton() {
57
+ const Tag = !!this.message.closeText ? 'c-button' : 'c-icon-button';
58
+ return (index.h(Tag, { "aria-label": "close", size: "small", text: true, onClick: () => this.closeToast() }, index.h("c-icon", Object.assign({}, (!!this.message.closeText && { slot: 'icon' }), { color: "var(--_c-toast-color)", path: this._icons.close })), this.message.closeText));
59
+ }
60
+ render() {
61
+ const showProgressBar = !this.message.persistent && this.message.progress;
62
+ return (index.h(index.Host, { id: `c-toast--${this.message.id}`, class: { [this.message.type]: true }, role: "alert", "aria-atomic": "true", "aria-live": "assertive", onMouseEnter: () => this._onMouseEnter(), onMouseLeave: () => this._onMouseLeave() }, index.h("span", { class: "visuallyhidden" }, this.message.type, " notification"), this.message.custom ? (index.h("div", { class: "c-toast__custom-item" }, index.h("div", { class: "c-toast__content" }, index.h("slot", null)))) : (index.h("div", { class: "c-toast__item" }, index.h("svg", { viewBox: "0 0 24 24" }, index.h("path", { d: this._icons[this.message.type] })), index.h("div", { class: "c-toast__content" }, !!this.message.title && index.h("p", null, this.message.title), this.message.message), !this.message.indeterminate && this._renderCloseButton())), showProgressBar && (index.h("div", { class: "c-toast__progress", style: { '--_c-toast-duration': `${this.message.duration}ms` } }, index.h("div", { class: {
63
+ 'c-toast__progress__bar': true,
64
+ indeterminate: this.message.indeterminate,
65
+ } })))));
66
+ }
67
+ get el() { return index.getElement(this); }
68
+ };
69
+ CToast.style = cToastCss;
70
+
71
+ exports.c_toast = CToast;
72
+
73
+ //# sourceMappingURL=c-toast.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"c-toast.entry.cjs.js","mappings":"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","names":["mdiClose","mdiAlert","mdiCloseCircle","mdiCheckCircle","mdiInformation","h","Host"],"sources":["src/components/c-toast/c-toast.scss?tag=c-toast&encapsulation=shadow","src/components/c-toast/c-toast.tsx"],"sourcesContent":[":host(c-toast) {\n /**\n * @prop --c-toast-background-color: Toast background color\n * @prop --c-toast-text-color: Toast text color\n */\n --_c-toast-background-color: var(--c-toast-background-color, var(--c-white));\n --_c-toast-text-color: var(--c-toast-text-color, var(--c-text-system));\n\n // private\n --_c-toast-animation-state: running;\n\n align-items: center;\n background-color: var(--_c-toast-background-color);\n border-radius: 6px;\n border: 2px solid var(--_c-toast-color);\n border-left-width: 12px;\n box-shadow:\n rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px,\n rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px,\n rgba(0, 0, 0, 0.07) 0 16px 16px;\n box-sizing: border-box;\n color: var(--_c-toast-text-color);\n display: grid;\n min-height: 52px;\n opacity: 0;\n padding: 8px 12px;\n pointer-events: all;\n text-align: left;\n transform: translateY(20px);\n transition: opacity 0.5s ease, transform 0.5s ease;\n width: 100%;\n will-change: opacity, transform;\n z-index: 10001;\n position: relative;\n}\n\n:host(.show) {\n opacity: 1;\n transform: translateY(0);\n}\n\n:host(.info) {\n --_c-toast-color: var(--c-info-600);\n}\n\n:host(.error) {\n --_c-toast-color: var(--c-error-600);\n}\n\n:host(.warning) {\n --_c-toast-color: var(--c-warning-600);\n}\n\n:host(.success) {\n --_c-toast-color: var(--c-success-600);\n}\n\n.c-toast__content p {\n margin: 0;\n font-weight: 600;\n}\n\n.c-toast__item {\n align-items: center;\n display: grid;\n gap: 12px;\n grid-auto-columns: auto;\n grid-auto-flow: column;\n grid-template-columns: 24px 1fr;\n font-weight: 300;\n}\n\n.c-toast__item > svg {\n fill: var(--_c-toast-color);\n}\n\n.c-toast__item svg {\n height: 24px;\n width: 24px;\n}\n\n.c-toast__progress {\n background-color: var(--c-tertiary-200);\n border-radius: 8px;\n height: 6px;\n margin-top: 8px;\n overflow: hidden;\n transform: translateZ(0);\n}\n\n:host(:hover) {\n --_c-toast-animation-state: paused;\n}\n\n.c-toast__progress__bar {\n animation-duration: var(--_c-toast-duration);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: timer;\n animation-play-state: var(--_c-toast-animation-state);\n animation-timing-function: linear;\n background-color: var(--_c-toast-color);\n border-radius: 8px;\n height: 6px;\n width: 100%;\n}\n\n.c-toast__progress__bar.indeterminate {\n animation: indeterminate 2s infinite linear;\n left: -100%;\n width: 50%;\n position: relative;\n transform-origin: 0% 50%;\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n@keyframes timer {\n 100% {\n transform: translateX(-100%);\n }\n}\n\n@keyframes indeterminate {\n 0% {\n transform: translateX(100%) scaleX(1);\n }\n\n 30% {\n transform: translateX(170%) scaleX(1.75);\n }\n\n 70% {\n transform: translateX(500%) scaleX(0.1);\n }\n\n 100% {\n transform: translateX(500%) scaleX(0.1);\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n EventEmitter,\n Event,\n Element,\n Method,\n} from '@stencil/core';\n\nimport {\n mdiClose,\n mdiAlert,\n mdiCloseCircle,\n mdiCheckCircle,\n mdiInformation,\n} from '@mdi/js';\n\nimport { CToastMessage } from '../../types';\n\n/**\n * @parent none\n */\n@Component({\n tag: 'c-toast',\n styleUrl: 'c-toast.scss',\n shadow: true,\n})\nexport class CToast {\n @Element() el: HTMLCToastElement;\n\n /**\n * Messages\n */\n @Prop() message: CToastMessage;\n\n /**\n * Emit inner value change to parent\n */\n @Event() close: EventEmitter<CToastMessage>;\n\n private _closed = false;\n\n private _startTime: number;\n\n private _remainingTime: number;\n\n private _icons = {\n close: mdiClose,\n warning: mdiAlert,\n error: mdiCloseCircle,\n success: mdiCheckCircle,\n info: mdiInformation,\n };\n\n private _timeout;\n\n /**\n * Close toast\n *\n * @emits close\n */\n @Method()\n async closeToast() {\n if (this._closed) return;\n\n this._closed = true;\n\n this.el.classList.remove('show');\n this.el.ontransitionend = () => this.close.emit(this.message);\n }\n\n componentDidLoad() {\n window.requestAnimationFrame(() => {\n this.el.classList.add('show');\n });\n\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._remainingTime = this.message.duration;\n\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n +this.message.duration,\n );\n }\n\n disconnectedCallback() {\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseEnter() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._remainingTime = this._remainingTime - (Date.now() - this._startTime);\n\n window.clearTimeout(this._timeout);\n }\n\n private _onMouseLeave() {\n if (this.message.persistent || this.message.indeterminate) return;\n\n this._startTime = Date.now();\n this._timeout = window.setTimeout(\n () => this.closeToast(),\n this._remainingTime,\n );\n }\n\n private _renderCloseButton() {\n const Tag = !!this.message.closeText ? 'c-button' : 'c-icon-button';\n\n return (\n <Tag\n aria-label=\"close\"\n size=\"small\"\n text\n onClick={() => this.closeToast()}\n >\n <c-icon\n {...{ ...(!!this.message.closeText && { slot: 'icon' }) }}\n color=\"var(--_c-toast-color)\"\n path={this._icons.close}\n />\n\n {this.message.closeText}\n </Tag>\n );\n }\n\n render() {\n const showProgressBar = !this.message.persistent && this.message.progress;\n\n return (\n <Host\n id={`c-toast--${this.message.id}`}\n class={{ [this.message.type]: true }}\n role=\"alert\"\n aria-atomic=\"true\"\n aria-live=\"assertive\"\n onMouseEnter={() => this._onMouseEnter()}\n onMouseLeave={() => this._onMouseLeave()}\n >\n <span class=\"visuallyhidden\">{this.message.type} notification</span>\n\n {this.message.custom ? (\n <div class=\"c-toast__custom-item\">\n <div class=\"c-toast__content\">\n <slot></slot>\n </div>\n </div>\n ) : (\n <div class=\"c-toast__item\">\n <svg viewBox=\"0 0 24 24\">\n <path d={this._icons[this.message.type]}></path>\n </svg>\n\n <div class=\"c-toast__content\">\n {!!this.message.title && <p>{this.message.title}</p>}\n\n {this.message.message}\n </div>\n\n {!this.message.indeterminate && this._renderCloseButton()}\n </div>\n )}\n\n {showProgressBar && (\n <div\n class=\"c-toast__progress\"\n style={{ '--_c-toast-duration': `${this.message.duration}ms` }}\n >\n <div\n class={{\n 'c-toast__progress__bar': true,\n indeterminate: this.message.indeterminate,\n }}\n ></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,80 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3cad12b5.js');
6
+ const index$1 = require('./index-72dca436.js');
7
+
8
+ const cToastsCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:grid;gap:12px;grid-template-columns:1fr;left:0;max-width:100%;min-width:30vw;padding:12px;pointer-events:none;position:fixed;right:0;width:640px;z-index:10000}:host(.absolute){position:absolute}:host(.bottom){bottom:0}:host(.top){top:0}:host(.right){justify-content:end;left:auto;right:0}:host(.left){justify-content:start;left:0;right:auto}:host(.center){justify-content:center;margin:0 auto}";
9
+
10
+ const CToasts = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this._getDefaultOptions = () => ({
14
+ type: index$1.CToastType.Info,
15
+ duration: 6000,
16
+ persistent: false,
17
+ indeterminate: false,
18
+ position: index$1.CToastPosition.Fixed,
19
+ progress: false,
20
+ id: `c-toast-item-${CToasts._uniqueId}`,
21
+ });
22
+ this.absolute = false;
23
+ this.horizontal = 'center';
24
+ this.vertical = 'bottom';
25
+ this.messages = [];
26
+ }
27
+ async addToast(message) {
28
+ const customMessages = this.messages.filter((message) => message.custom);
29
+ if (message.custom && customMessages.length > 0) {
30
+ console.warn(`Custom toast messages are restricted to 1 visible message due to slot reflection limitations.`);
31
+ }
32
+ else {
33
+ CToasts._uniqueId += 1;
34
+ requestAnimationFrame(() => {
35
+ const defaultOptions = this._getDefaultOptions();
36
+ this.messages = [
37
+ ...this.messages,
38
+ Object.assign(Object.assign(Object.assign({}, defaultOptions), message), { duration: +(message === null || message === void 0 ? void 0 : message.duration) > 0
39
+ ? +message.duration
40
+ : defaultOptions.duration }),
41
+ ];
42
+ });
43
+ }
44
+ }
45
+ async removeToast(id) {
46
+ const toast = this.el.shadowRoot.querySelector(`#c-toast--${id}`);
47
+ toast === null || toast === void 0 ? void 0 : toast.closeToast();
48
+ }
49
+ _onMessageClose(event) {
50
+ this._removeMessage(event.detail.id);
51
+ }
52
+ _removeMessage(id) {
53
+ const toast = this.el.shadowRoot.querySelector(`#c-toast--${id}`);
54
+ toast === null || toast === void 0 ? void 0 : toast.remove();
55
+ const messageCount = this.el.shadowRoot.querySelectorAll('c-toast').length;
56
+ if (messageCount === 0) {
57
+ this.messages = [].slice();
58
+ }
59
+ }
60
+ _renderMessage(message) {
61
+ return (index.h("c-toast", { message: message, onClose: (e) => this._onMessageClose(e) }, message.custom && index.h("slot", null)));
62
+ }
63
+ componentWillLoad() {
64
+ CToasts._uniqueId += 1;
65
+ }
66
+ render() {
67
+ return (index.h(index.Host, { class: {
68
+ absolute: this.absolute,
69
+ [this.vertical]: true,
70
+ [this.horizontal]: true,
71
+ } }, this.messages.map((message) => this._renderMessage(message))));
72
+ }
73
+ get el() { return index.getElement(this); }
74
+ };
75
+ CToasts._uniqueId = 0;
76
+ CToasts.style = cToastsCss;
77
+
78
+ exports.c_toasts = CToasts;
79
+
80
+ //# sourceMappingURL=c-toasts.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"c-toasts.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,UAAU,GAAG,2hBAA2hB;;MCmBjiB,OAAO;;;IAsBV,uBAAkB,GAAG,OAAO;MAClC,IAAI,EAAEA,kBAAU,CAAC,IAAI;MACrB,QAAQ,EAAE,IAAI;MACd,UAAU,EAAE,KAAK;MACjB,aAAa,EAAE,KAAK;MACpB,QAAQ,EAAEC,sBAAc,CAAC,KAAK;MAC9B,QAAQ,EAAE,KAAK;MACf,EAAE,EAAE,gBAAgB,OAAO,CAAC,SAAS,EAAE;KACxC,CAAC,CAAC;oBAxBgB,KAAK;sBAK0B,QAAQ;oBAKrB,QAAQ;oBAER,EAAE;;EAkBvC,MAAM,QAAQ,CAAC,OAAsB;IACnC,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzE,IAAI,OAAO,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;MAC/C,OAAO,CAAC,IAAI,CACV,+FAA+F,CAChG,CAAC;KACH;SAAM;MACL,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;MAEvB,qBAAqB,CAAC;QACpB,MAAM,cAAc,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAEjD,IAAI,CAAC,QAAQ,GAAG;UACd,GAAG,IAAI,CAAC,QAAQ;wDAEX,cAAc,GACd,OAAO,KACV,QAAQ,EACN,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAA,GAAG,CAAC;gBAClB,CAAC,OAAO,CAAC,QAAQ;gBACjB,cAAc,CAAC,QAAQ;SAEhC,CAAC;OACH,CAAC,CAAC;KACJ;GACF;EAMD,MAAM,WAAW,CAAC,EAAU;IAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAC5C,aAAa,EAAE,EAAE,CACG,CAAC;IAEvB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,EAAE,CAAC;GACrB;EAEO,eAAe,CAAC,KAAkB;IACxC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;GACtC;EAEO,cAAc,CAAC,EAAU;IAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAC5C,aAAa,EAAE,EAAE,CACG,CAAC;IAEvB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;IAEhB,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;IAE3E,IAAI,YAAY,KAAK,CAAC,EAAE;MACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;KAC5B;GACF;EAEO,cAAc,CAAC,OAAsB;IAC3C,QACEC,qBAAS,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAC/D,OAAO,CAAC,MAAM,IAAIA,qBAAQ,CACnB,EACV;GACH;EAED,iBAAiB;IACf,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;GACxB;EAED,MAAM;IACJ,QACEA,QAACC,UAAI,IACH,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI;QACrB,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI;OACxB,IAEA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CACxD,EACP;GACH;;;AAlGc,iBAAS,GAAG,CAAH,CAAK;;;;;","names":["CToastType","CToastPosition","h","Host"],"sources":["src/components/c-toasts/c-toasts.scss?tag=c-toasts&encapsulation=shadow","src/components/c-toasts/c-toasts.tsx"],"sourcesContent":[":host {\n display: grid;\n gap: 12px;\n grid-template-columns: 1fr;\n left: 0;\n max-width: 100%;\n min-width: 30vw;\n padding: 12px;\n pointer-events: none;\n position: fixed;\n right: 0;\n width: 640px;\n z-index: 10000;\n}\n\n:host(.absolute) {\n position: absolute;\n}\n\n:host(.bottom) {\n bottom: 0;\n}\n\n:host(.top) {\n top: 0;\n}\n\n:host(.right) {\n justify-content: end;\n left: auto;\n right: 0;\n}\n\n:host(.left) {\n justify-content: start;\n left: 0;\n right: auto;\n}\n\n:host(.center) {\n justify-content: center;\n margin: 0 auto;\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Method,\n State,\n} from '@stencil/core';\nimport { CToastMessage, CToastPosition, CToastType } from '../../types';\n\n/**\n * @group Popups\n */\n@Component({\n tag: 'c-toasts',\n styleUrl: 'c-toasts.scss',\n shadow: true,\n})\nexport class CToasts {\n @Element() el: HTMLCToastsElement;\n\n /**\n * Use absolute positioning\n */\n @Prop() absolute = false;\n\n /**\n * Horizontal position\n */\n @Prop() horizontal: 'left' | 'center' | 'right' = 'center';\n\n /**\n * Vertical position\n */\n @Prop() vertical: 'top' | 'bottom' = 'bottom';\n\n @State() messages: CToastMessage[] = [];\n\n private static _uniqueId = 0;\n\n private _getDefaultOptions = () => ({\n type: CToastType.Info,\n duration: 6000,\n persistent: false,\n indeterminate: false,\n position: CToastPosition.Fixed,\n progress: false,\n id: `c-toast-item-${CToasts._uniqueId}`,\n });\n\n /**\n * Add a new message\n */\n @Method()\n async addToast(message: CToastMessage) {\n const customMessages = this.messages.filter((message) => message.custom);\n\n if (message.custom && customMessages.length > 0) {\n console.warn(\n `Custom toast messages are restricted to 1 visible message due to slot reflection limitations.`,\n );\n } else {\n CToasts._uniqueId += 1;\n\n requestAnimationFrame(() => {\n const defaultOptions = this._getDefaultOptions();\n\n this.messages = [\n ...this.messages,\n {\n ...defaultOptions,\n ...message,\n duration:\n +message?.duration > 0\n ? +message.duration\n : defaultOptions.duration,\n },\n ];\n });\n }\n }\n\n /**\n * Remove a message by id (id should be specified in the addToast params)\n */\n @Method()\n async removeToast(id: string) {\n const toast = this.el.shadowRoot.querySelector(\n `#c-toast--${id}`,\n ) as HTMLCToastElement;\n\n toast?.closeToast();\n }\n\n private _onMessageClose(event: CustomEvent) {\n this._removeMessage(event.detail.id);\n }\n\n private _removeMessage(id: string) {\n const toast = this.el.shadowRoot.querySelector(\n `#c-toast--${id}`,\n ) as HTMLCToastElement;\n\n toast?.remove();\n\n const messageCount = this.el.shadowRoot.querySelectorAll('c-toast').length;\n\n if (messageCount === 0) {\n this.messages = [].slice();\n }\n }\n\n private _renderMessage(message: CToastMessage) {\n return (\n <c-toast message={message} onClose={(e) => this._onMessageClose(e)}>\n {message.custom && <slot />}\n </c-toast>\n );\n }\n\n componentWillLoad() {\n CToasts._uniqueId += 1;\n }\n\n render() {\n return (\n <Host\n class={{\n absolute: this.absolute,\n [this.vertical]: true,\n [this.horizontal]: true,\n }}\n >\n {this.messages.map((message) => this._renderMessage(message))}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3cad12b5.js');
6
+
7
+ /*
8
+ Stencil Client Patch Browser v4.6.0 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchBrowser = () => {
11
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('csc-ui.cjs.js', document.baseURI).href));
12
+ const opts = {};
13
+ if (importMeta !== '') {
14
+ opts.resourcesUrl = new URL('.', importMeta).href;
15
+ }
16
+ return index.promiseResolve(opts);
17
+ };
18
+
19
+ patchBrowser().then(options => {
20
+ return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[1,\"c-data-table\",{\"data\":[16],\"externalData\":[4,\"external-data\"],\"headers\":[16],\"hideFooter\":[4,\"hide-footer\"],\"footerOptions\":[16],\"loading\":[4],\"loadingText\":[1,\"loading-text\"],\"noDataText\":[1,\"no-data-text\"],\"pagination\":[1040],\"selectable\":[4],\"singleSelection\":[4,\"single-selection\"],\"selectionProperty\":[1,\"selection-property\"],\"singleExpansion\":[4,\"single-expansion\"],\"sortBy\":[1032,\"sort-by\"],\"sortDirection\":[1025,\"sort-direction\"],\"stickyHeader\":[4,\"sticky-header\"],\"horizontalScrolling\":[4,\"horizontal-scrolling\"],\"_activeRows\":[32],\"_data\":[32],\"_isIndeterminate\":[32],\"_isPaginationSimple\":[32],\"_selections\":[32],\"hasOverflow\":[32],\"hiddenHeaders\":[32],\"initiallyHiddenHeaders\":[32],\"forceRender\":[32],\"breakpoints\":[32],\"markedFooterWidth\":[32],\"parentWidth\":[32],\"firstCellHidden\":[32],\"lastCellHidden\":[32],\"clearSelections\":[64],\"getData\":[64]},null,{\"hiddenHeaders\":[\"onHiddenHeaderChange\"],\"data\":[\"onDataChange\"],\"headers\":[\"onHeaderChange\"],\"singleSelection\":[\"onSingleSelectionChange\"],\"loading\":[\"onLoadingChange\"]}]]],[\"c-autocomplete.cjs\",[[65,\"c-autocomplete\",{\"autofocus\":[4],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"shadow\":[4],\"name\":[1],\"label\":[1],\"query\":[1025],\"value\":[1032],\"dense\":[4],\"required\":[4],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"placeholder\":[1],\"returnValue\":[4,\"return-value\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"optionAsSelection\":[4,\"option-as-selection\"],\"menuVisible\":[32],\"currentIndex\":[32],\"hasOptionItems\":[32],\"options\":[32],\"setValue\":[64],\"onHideMenu\":[64],\"setActiveDescendant\":[64],\"updateQuery\":[64],\"onItemSelection\":[64]},[[1,\"keydown\",\"handleKeyDown\"]],{\"items\":[\"watchHandler\"],\"value\":[\"onValueChange\"]}]]],[\"c-navigation-button.cjs\",[[1,\"c-navigation-button\"]]],[\"c-select.cjs\",[[65,\"c-select\",{\"autofocus\":[4],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"label\":[1],\"shadow\":[4],\"name\":[1],\"required\":[4],\"returnValue\":[4,\"return-value\"],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"itemsPerPage\":[2,\"items-per-page\"],\"placeholder\":[1],\"value\":[1032],\"items\":[16],\"optionAsSelection\":[4,\"option-as-selection\"],\"menuVisible\":[32],\"currentIndex\":[32],\"activeListItemId\":[32],\"statusText\":[32],\"hasOptionItems\":[32],\"previousValue\":[32],\"onItemSelection\":[64],\"onHideMenu\":[64],\"setActiveDescendant\":[64]},[[2,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"onValueChange\"],\"validate\":[\"validateChange\"],\"currentIndex\":[\"onCurrentIndexChange\"]}]]],[\"c-side-navigation.cjs\",[[1,\"c-side-navigation\",{\"mobile\":[4],\"menuVisible\":[1028,\"menu-visible\"]},[[0,\"itemChange\",\"handleChange\"]]]]],[\"c-tabs.cjs\",[[1,\"c-tabs\",{\"value\":[1032],\"borderless\":[4],\"disableAnimation\":[4,\"disable-animation\"],\"justify\":[1],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"vertical\":[4],\"isOverflowing\":[32],\"isMobile\":[32],\"scrollOffset\":[32]},[[1,\"tabFocus\",\"tabFocusHandler\"],[1,\"tabChange\",\"tabChangeHandler\"],[2,\"keydown\",\"handleKeyDown\"],[2,\"keyup\",\"handleKeyUp\"]],{\"justify\":[\"onJustificationChange\"],\"value\":[\"onExternalValueChange\"],\"scrollOffset\":[\"onScrollOffsetChange\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8]}]]],[\"c-text-field.cjs\",[[65,\"c-text-field\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"number\":[4],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[1025],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"messageOptions\":[32]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-side-navigation-item.cjs\",[[1,\"c-side-navigation-item\",{\"active\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]},[[0,\"itemChange\",\"handleChange\"]],{\"active\":[\"onActiveChange\"]}]]],[\"c-sub-navigation-item.cjs\",[[1,\"c-sub-navigation-item\",{\"active\":[4],\"focusable\":[4],\"href\":[1],\"target\":[1],\"loading\":[4]}]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-otp-input.cjs\",[[65,\"c-otp-input\",{\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"elementId\":[1,\"id\"],\"length\":[2],\"valid\":[4],\"validation\":[1],\"statusText\":[32]},null,{\"validation\":[\"onValidationMessageChange\"]}]]],[\"c-radio-group.cjs\",[[65,\"c-radio-group\",{\"value\":[1032],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"inline\":[4],\"label\":[1],\"color\":[1],\"items\":[16],\"disabled\":[4],\"returnValue\":[4,\"return-value\"],\"required\":[4],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"validation\":[\"onValidationMessageChange\"],\"valid\":[\"onValidChange\"]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-card-content.cjs\",[[1,\"c-card-content\"]]],[\"c-card-title.cjs\",[[1,\"c-card-title\"]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[4,\"c-login-card\",{\"backgroundPosition\":[1,\"background-position\"],\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"overlay\":[4],\"overlayBlendMode\":[1,\"overlay-blend-mode\"],\"src\":[1],\"path\":[32],\"imageHeight\":[32]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option.cjs\",[[1,\"c-option\",{\"selected\":[4],\"disabled\":[4],\"name\":[1],\"value\":[8]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-page.cjs\",[[1,\"c-page\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-radio.cjs\",[[1,\"c-radio\",{\"checked\":[4],\"disabled\":[4],\"value\":[1]}]]],[\"c-side-navigation-title.cjs\",[[1,\"c-side-navigation-title\"]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-switch.cjs\",[[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]}]]],[\"c-tab-buttons.cjs\",[[1,\"c-tab-buttons\",{\"value\":[1032],\"mandatory\":[4],\"tabs\":[4],\"size\":[1],\"hostDisabled\":[4,\"disabled\"]},[[1,\"tabFocus\",\"tabFocusHandler\"],[2,\"keyup\",\"handleKeyUp\"],[1,\"tabChange\",\"onTabChange\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-table.cjs\",[[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}]]],[\"c-tags.cjs\",[[1,\"c-tags\"]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]],[\"c-card-actions.cjs\",[[1,\"c-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-badge_12.cjs\",[[1,\"c-card\",{\"fullscreen\":[4],\"isFullscreen\":[32],\"exitFullscreen\":[64],\"enterFullscreen\":[64]}],[1,\"c-button\",{\"inverted\":[4],\"outlined\":[4],\"ghost\":[4],\"danger\":[4],\"grouped\":[4],\"text\":[4],\"loading\":[4],\"fit\":[4],\"noRadius\":[4,\"no-radius\"],\"type\":[1],\"disabled\":[516],\"value\":[8],\"hostId\":[1,\"id\"],\"size\":[1],\"href\":[1],\"target\":[1],\"tabs\":[4]},[[1,\"focus\",\"onTabFocus\"]]],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\"],[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}],[1,\"c-toolbar\"],[1,\"c-spacer\"],[1,\"c-icon-button\",{\"badge\":[1],\"danger\":[4],\"loading\":[4],\"text\":[4],\"inverted\":[4],\"outlined\":[4],\"path\":[1],\"ghost\":[4],\"disabled\":[4],\"size\":[1]}],[1,\"c-badge\"],[1,\"c-spinner\",{\"color\":[1],\"size\":[2],\"width\":[2]}],[1,\"c-ripple\",{\"createRipple\":[64]}],[1,\"c-icon\",{\"path\":[1],\"size\":[2],\"color\":[1]}]]],[\"c-checkbox_2.cjs\",[[1,\"c-pagination\",{\"value\":[16],\"hideDetails\":[4,\"hide-details\"],\"simple\":[4],\"size\":[1],\"hideRange\":[4,\"hide-range\"],\"itemsPerPageOptions\":[16],\"_currentPage\":[32],\"_itemsPerPage\":[32],\"_totalVisible\":[32],\"tick\":[32]},null,{\"value\":[\"valueHandler\"]}],[65,\"c-checkbox\",{\"checked\":[1028],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"indeterminate\":[4],\"label\":[1],\"required\":[4],\"valid\":[4],\"validation\":[1],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostName\":[1,\"name\"],\"messageOptions\":[32]},[[1,\"keydown\",\"handleKeyDown\"]],{\"validation\":[\"onValidationMessageChange\"],\"valid\":[\"onValidChange\"]}]]],[\"c-loader.cjs\",[[1,\"c-loader\",{\"contentdelay\":[2],\"hide\":[4],\"size\":[2],\"width\":[2]},null,{\"hide\":[\"onElementHide\"]}]]],[\"c-menu_2.cjs\",[[1,\"c-menu\",{\"items\":[16],\"contentClass\":[1,\"content-class\"],\"custom\":[4],\"small\":[4],\"flat\":[4],\"itemsPerPage\":[2,\"items-per-page\"],\"menuItemsComponent\":[32],\"menuWrapperComponent\":[32],\"currentIndex\":[32],\"active\":[32]},[[2,\"keydown\",\"handleKeyDown\"]]],[1,\"c-menu-items\",{\"items\":[16],\"small\":[4],\"active\":[4],\"parentType\":[1,\"parent-type\"],\"parent\":[16],\"top\":[2],\"index\":[2],\"itemsPerPage\":[2,\"items-per-page\"],\"scrollingParent\":[32],\"isInView\":[32],\"currentIndex\":[32]},[[2,\"keydown\",\"handleKeyDown\"]],{\"currentIndex\":[\"onIndexChange\"]}]]],[\"c-dropdown_4.cjs\",[[4,\"c-input\",{\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"max\":[2],\"min\":[2],\"name\":[1],\"placeholder\":[1],\"readonly\":[4],\"required\":[4],\"rows\":[2],\"shadow\":[4],\"step\":[2],\"type\":[1],\"valid\":[4],\"validate\":[4],\"validateOnBlur\":[4,\"validate-on-blur\"],\"validation\":[1],\"value\":[8],\"variant\":[1],\"isFocused\":[32],\"labelWidth\":[32],\"preSlotWidth\":[32],\"statusText\":[32],\"currentIndex\":[32],\"focusDropdown\":[64],\"focusItem\":[64],\"createDropdown\":[64],\"openDropdown\":[64],\"closeDropdown\":[64],\"updateDropdown\":[64]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"value\":[\"onValueChange\"],\"placeholder\":[\"onPlaceholderChange\"]}],[1,\"c-dropdowns\",{\"createDropdown\":[64]}],[1,\"c-dropdown\",{\"items\":[16],\"options\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"parent\":[16],\"wrapper\":[16],\"index\":[2],\"isOpen\":[4,\"is-open\"],\"focusList\":[4,\"focus-list\"],\"inputId\":[1,\"input-id\"],\"type\":[1],\"wasClicked\":[4,\"was-clicked\"],\"currentIndex\":[32],\"isVisible\":[32],\"topPosition\":[32],\"bottomTranslate\":[32],\"scrollingParent\":[32],\"statusText\":[32],\"updateDropdown\":[64],\"focusDropdown\":[64],\"focusItem\":[64]},null,{\"isOpen\":[\"onOpenStateChange\"],\"currentIndex\":[\"onCurrentIndexChange\"]}],[1,\"c-message\",{\"hint\":[1],\"inputId\":[1,\"input-id\"],\"valid\":[4],\"validation\":[1],\"messageOptions\":[32]},null,{\"valid\":[\"onValidChange\"],\"validation\":[\"onValidationMessageChange\"],\"hint\":[\"onHintMessageChange\"]}]]]]"), options);
21
+ });
22
+
23
+ exports.setNonce = index.setNonce;
24
+
25
+ //# sourceMappingURL=csc-ui.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"csc-ui.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,wMAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.6.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}