@prolibu-suite/cobalt-core 0.1.2 → 0.2.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 (555) hide show
  1. package/custom-elements.json +15359 -5571
  2. package/dist/cjs/co-accordion.cjs.entry.js +19 -4
  3. package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +51 -6
  5. package/dist/cjs/co-avatar.cjs.entry.js +40 -7
  6. package/dist/cjs/co-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/co-button-group.cjs.entry.js +1 -1
  8. package/dist/cjs/co-button.cjs.entry.js +10 -5
  9. package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
  10. package/dist/cjs/co-card.cjs.entry.js +21 -4
  11. package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
  12. package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
  13. package/dist/cjs/co-chip.cjs.entry.js +3 -3
  14. package/dist/cjs/co-color-picker.cjs.entry.js +109 -0
  15. package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
  16. package/dist/cjs/co-combobox.cjs.entry.js +51 -15
  17. package/dist/cjs/co-command-search.cjs.entry.js +14 -7
  18. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  19. package/dist/cjs/co-data-table.cjs.entry.js +17 -5
  20. package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
  21. package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
  22. package/dist/cjs/co-date-range.cjs.entry.js +13 -259
  23. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  24. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  25. package/dist/cjs/co-file-field.cjs.entry.js +498 -0
  26. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  27. package/dist/cjs/co-icon-button.cjs.entry.js +4 -4
  28. package/dist/cjs/co-icon.cjs.entry.js +7 -4
  29. package/dist/cjs/co-input.cjs.entry.js +13 -8
  30. package/dist/cjs/co-json-field.cjs.entry.js +109 -0
  31. package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
  32. package/dist/cjs/co-list-item.cjs.entry.js +14 -4
  33. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  34. package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
  35. package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
  36. package/dist/cjs/co-menu.cjs.entry.js +2 -2
  37. package/dist/cjs/co-modal.cjs.entry.js +13 -3
  38. package/dist/cjs/co-navbar.cjs.entry.js +4 -4
  39. package/dist/cjs/co-number-field.cjs.entry.js +47 -11
  40. package/dist/cjs/co-overlay.cjs.entry.js +2 -2
  41. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  42. package/dist/cjs/co-phone-field.cjs.entry.js +376 -0
  43. package/dist/cjs/co-popover.cjs.entry.js +4 -4
  44. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  45. package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
  46. package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
  47. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  48. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  49. package/dist/cjs/co-ref-field.cjs.entry.js +191 -21
  50. package/dist/cjs/co-rich-text-editor.cjs.entry.js +235 -0
  51. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +184 -0
  52. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +82 -0
  53. package/dist/cjs/co-row.cjs.entry.js +3 -3
  54. package/dist/cjs/co-select.cjs.entry.js +119 -18
  55. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  56. package/dist/cjs/co-sidebar-nav.cjs.entry.js +30 -5
  57. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  58. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  59. package/dist/cjs/co-switch.cjs.entry.js +9 -6
  60. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  61. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  62. package/dist/cjs/co-tags-field.cjs.entry.js +205 -0
  63. package/dist/cjs/co-textarea.cjs.entry.js +92 -0
  64. package/dist/cjs/co-toast.cjs.entry.js +2 -2
  65. package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
  66. package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
  67. package/dist/cjs/co-tooltip.cjs.entry.js +12 -6
  68. package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
  69. package/dist/cjs/cobalt.cjs.js +2 -2
  70. package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
  71. package/dist/cjs/dates-D8D-aS5d.js +432 -0
  72. package/dist/cjs/index-CaEJnpZe.js +27213 -0
  73. package/dist/cjs/{index-BEovErzl.js → index-DoFnrUVH.js} +79 -11
  74. package/dist/cjs/loader.cjs.js +2 -2
  75. package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
  76. package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
  77. package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
  78. package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
  79. package/dist/cjs/requiredMark-DA6y-4rp.js +16 -0
  80. package/dist/cjs/sanitizer-CjHZAkOm.js +1883 -0
  81. package/dist/cobalt/cobalt.css +1 -1
  82. package/dist/cobalt/cobalt.esm.js +1 -1
  83. package/dist/cobalt/{p-1021f612.entry.js → p-01fc77c4.entry.js} +1 -1
  84. package/dist/cobalt/p-0a6d8061.entry.js +1 -0
  85. package/dist/cobalt/{p-ff6a647c.entry.js → p-0bf288cd.entry.js} +1 -1
  86. package/dist/cobalt/p-136bdbd2.entry.js +1 -0
  87. package/dist/cobalt/{p-1b7d6808.entry.js → p-15708d32.entry.js} +1 -1
  88. package/dist/cobalt/{p-cc93ab05.entry.js → p-1578b019.entry.js} +1 -1
  89. package/dist/cobalt/{p-1b5c723a.entry.js → p-1e0282b8.entry.js} +1 -1
  90. package/dist/cobalt/p-23d48581.entry.js +1 -0
  91. package/dist/cobalt/p-2718ff27.entry.js +1 -0
  92. package/dist/cobalt/p-273afd93.entry.js +1 -0
  93. package/dist/cobalt/{p-c9b0e73f.entry.js → p-2b4d8535.entry.js} +1 -1
  94. package/dist/cobalt/p-3190d715.entry.js +1 -0
  95. package/dist/cobalt/p-3f9b3fcb.entry.js +1 -0
  96. package/dist/cobalt/p-41228dce.entry.js +1 -0
  97. package/dist/cobalt/{p-5a13e3a0.entry.js → p-44672953.entry.js} +1 -1
  98. package/dist/cobalt/{p-4cf6d1f4.entry.js → p-522fcdb7.entry.js} +1 -1
  99. package/dist/cobalt/p-53ce9023.entry.js +1 -0
  100. package/dist/cobalt/{p-4d8ff00a.entry.js → p-54f26e95.entry.js} +1 -1
  101. package/dist/cobalt/p-5d01bd4d.entry.js +1 -0
  102. package/dist/cobalt/p-5e7141aa.entry.js +1 -0
  103. package/dist/cobalt/p-5f905739.entry.js +1 -0
  104. package/dist/cobalt/{p-fb047df8.entry.js → p-6404bd21.entry.js} +1 -1
  105. package/dist/cobalt/p-654bbc2a.entry.js +1 -0
  106. package/dist/cobalt/p-6678ac0a.entry.js +1 -0
  107. package/dist/cobalt/{p-e808916c.entry.js → p-66a912dd.entry.js} +1 -1
  108. package/dist/cobalt/p-6759ee1c.entry.js +1 -0
  109. package/dist/cobalt/p-69a40bfd.entry.js +1 -0
  110. package/dist/cobalt/p-6a6a62cb.entry.js +1 -0
  111. package/dist/cobalt/p-6d43b6cd.entry.js +1 -0
  112. package/dist/cobalt/p-759c3dd0.entry.js +1 -0
  113. package/dist/cobalt/p-782f729f.entry.js +1 -0
  114. package/dist/cobalt/{p-ebd1555e.entry.js → p-7ef766c6.entry.js} +1 -1
  115. package/dist/cobalt/p-7f818368.entry.js +1 -0
  116. package/dist/cobalt/p-83b89bf8.entry.js +1 -0
  117. package/dist/cobalt/p-88dc561a.entry.js +1 -0
  118. package/dist/cobalt/{p-4905b51d.entry.js → p-8c27aff7.entry.js} +1 -1
  119. package/dist/cobalt/{p-a7fa4484.entry.js → p-95d14878.entry.js} +1 -1
  120. package/dist/cobalt/{p-1d7da33f.entry.js → p-97c20011.entry.js} +1 -1
  121. package/dist/cobalt/p-996179f7.entry.js +1 -0
  122. package/dist/cobalt/p-9c533830.entry.js +1 -0
  123. package/dist/cobalt/p-9d89bf47.entry.js +1 -0
  124. package/dist/cobalt/p-BKmfyPZK.js +2 -0
  125. package/dist/cobalt/p-BchB6Hdr.js +1 -0
  126. package/dist/cobalt/p-C1DCLOEl.js +1 -0
  127. package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
  128. package/dist/cobalt/p-CQY6Ul7q.js +1 -0
  129. package/dist/cobalt/p-CyYF8IJE.js +1 -0
  130. package/dist/cobalt/p-DcK0GGZC.js +2 -0
  131. package/dist/cobalt/p-DqyWGweA.js +1 -0
  132. package/dist/cobalt/p-Qqq8fysz.js +1 -0
  133. package/dist/cobalt/p-aa17c70b.entry.js +1 -0
  134. package/dist/cobalt/{p-416bb5ae.entry.js → p-aa63812a.entry.js} +1 -1
  135. package/dist/cobalt/p-ad4c1b41.entry.js +1 -0
  136. package/dist/cobalt/p-ae4d3207.entry.js +1 -0
  137. package/dist/cobalt/p-af64da37.entry.js +1 -0
  138. package/dist/cobalt/p-b758c2e6.entry.js +1 -0
  139. package/dist/cobalt/p-bb07da22.entry.js +1 -0
  140. package/dist/cobalt/p-beb9c11d.entry.js +1 -0
  141. package/dist/cobalt/p-c6a242e4.entry.js +1 -0
  142. package/dist/cobalt/p-c87285b6.entry.js +1 -0
  143. package/dist/cobalt/p-cd57e8b4.entry.js +1 -0
  144. package/dist/cobalt/{p-4ffba5a3.entry.js → p-ce3a535f.entry.js} +1 -1
  145. package/dist/cobalt/p-d17e1444.entry.js +1 -0
  146. package/dist/cobalt/p-d958566a.entry.js +1 -0
  147. package/dist/cobalt/p-dd873bf8.entry.js +1 -0
  148. package/dist/cobalt/p-def448e4.entry.js +1 -0
  149. package/dist/cobalt/p-e4de8865.entry.js +1 -0
  150. package/dist/cobalt/{p-3b2f7959.entry.js → p-e8b58332.entry.js} +1 -1
  151. package/dist/cobalt/p-eba0bf7f.entry.js +1 -0
  152. package/dist/cobalt/p-f0e8fa7d.entry.js +1 -0
  153. package/dist/cobalt/{p-e50c4c6f.entry.js → p-f2c5cb74.entry.js} +1 -1
  154. package/dist/cobalt/p-f8728b21.entry.js +1 -0
  155. package/dist/cobalt/{p-697df797.entry.js → p-f97ad9ad.entry.js} +1 -1
  156. package/dist/cobalt/p-fad3605d.entry.js +1 -0
  157. package/dist/cobalt/{p-319937c3.entry.js → p-fe9e85b6.entry.js} +1 -1
  158. package/dist/cobalt/p-ff2690e5.entry.js +1 -0
  159. package/dist/cobalt/p-ox7HzCZn.js +10 -0
  160. package/dist/collection/collection-manifest.json +17 -1
  161. package/dist/collection/components/co-accordion/co-accordion.css +19 -1
  162. package/dist/collection/components/co-accordion/co-accordion.js +46 -4
  163. package/dist/collection/components/co-autocomplete/co-autocomplete.css +725 -7
  164. package/dist/collection/components/co-autocomplete/co-autocomplete.js +88 -4
  165. package/dist/collection/components/co-avatar/co-avatar.css +7 -0
  166. package/dist/collection/components/co-avatar/co-avatar.js +35 -6
  167. package/dist/collection/components/co-button/co-button.css +8 -5
  168. package/dist/collection/components/co-button/co-button.js +46 -3
  169. package/dist/collection/components/co-calendar/co-calendar.css +236 -0
  170. package/dist/collection/components/co-calendar/co-calendar.js +728 -0
  171. package/dist/collection/components/co-card/co-card.css +28 -5
  172. package/dist/collection/components/co-card/co-card.js +47 -4
  173. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  174. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +26 -0
  175. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
  176. package/dist/collection/components/co-chip/co-chip.js +2 -2
  177. package/dist/collection/components/co-color-picker/co-color-picker.css +224 -0
  178. package/dist/collection/components/co-color-picker/co-color-picker.js +333 -0
  179. package/dist/collection/components/co-color-picker/presets.js +19 -0
  180. package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
  181. package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
  182. package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
  183. package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
  184. package/dist/collection/components/co-combobox/co-combobox.css +788 -21
  185. package/dist/collection/components/co-combobox/co-combobox.js +130 -15
  186. package/dist/collection/components/co-command-search/co-command-search.css +4 -0
  187. package/dist/collection/components/co-command-search/co-command-search.js +12 -5
  188. package/dist/collection/components/co-data-table/co-data-table.css +1 -1
  189. package/dist/collection/components/co-data-table/co-data-table.js +15 -3
  190. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  191. package/dist/collection/components/co-date-field/co-date-field.css +239 -0
  192. package/dist/collection/components/co-date-field/co-date-field.js +746 -0
  193. package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
  194. package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
  195. package/dist/collection/components/co-date-range/co-date-range.css +3 -254
  196. package/dist/collection/components/co-date-range/co-date-range.js +29 -433
  197. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +251 -0
  198. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
  199. package/dist/collection/components/co-drawer/co-drawer.css +19 -0
  200. package/dist/collection/components/co-drawer/co-drawer.js +46 -2
  201. package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
  202. package/dist/collection/components/co-fab/co-fab.js +2 -2
  203. package/dist/collection/components/co-file-field/co-file-field.css +389 -0
  204. package/dist/collection/components/co-file-field/co-file-field.js +841 -0
  205. package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
  206. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  207. package/dist/collection/components/co-icon/co-icon.js +6 -3
  208. package/dist/collection/components/co-icon-button/co-icon-button.css +10 -0
  209. package/dist/collection/components/co-icon-button/co-icon-button.js +4 -4
  210. package/dist/collection/components/co-input/co-input.css +56 -10
  211. package/dist/collection/components/co-input/co-input.js +34 -9
  212. package/dist/collection/components/co-json-field/co-json-field.css +169 -0
  213. package/dist/collection/components/co-json-field/co-json-field.js +453 -0
  214. package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
  215. package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
  216. package/dist/collection/components/co-list-item/co-list-item.css +5 -0
  217. package/dist/collection/components/co-list-item/co-list-item.js +12 -2
  218. package/dist/collection/components/co-menu/co-menu.js +1 -1
  219. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  220. package/dist/collection/components/co-modal/co-modal.css +17 -3
  221. package/dist/collection/components/co-modal/co-modal.js +51 -1
  222. package/dist/collection/components/co-navbar/co-navbar.css +1 -1
  223. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  224. package/dist/collection/components/co-number-field/co-number-field.css +70 -0
  225. package/dist/collection/components/co-number-field/co-number-field.js +143 -13
  226. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  227. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  228. package/dist/collection/components/co-phone-field/co-phone-field.css +265 -0
  229. package/dist/collection/components/co-phone-field/co-phone-field.js +392 -0
  230. package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
  231. package/dist/collection/components/co-popover/co-popover.js +2 -2
  232. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  233. package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
  234. package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
  235. package/dist/collection/components/co-radio/co-radio.js +3 -3
  236. package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
  237. package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
  238. package/dist/collection/components/co-rating/co-rating.js +3 -3
  239. package/dist/collection/components/co-ref-field/co-ref-field.css +816 -54
  240. package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
  241. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +238 -0
  242. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +868 -0
  243. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +55 -0
  244. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +289 -0
  245. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
  246. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +232 -0
  247. package/dist/collection/components/co-row/co-row.js +2 -2
  248. package/dist/collection/components/co-select/co-select.css +845 -7
  249. package/dist/collection/components/co-select/co-select.js +240 -17
  250. package/dist/collection/components/co-separator/co-separator.js +1 -1
  251. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  252. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +29 -4
  253. package/dist/collection/components/co-slider/co-slider.js +2 -2
  254. package/dist/collection/components/co-switch/co-switch.css +17 -0
  255. package/dist/collection/components/co-switch/co-switch.js +27 -4
  256. package/dist/collection/components/co-tab/co-tab.js +2 -2
  257. package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
  258. package/dist/collection/components/co-tags-field/co-tags-field.css +272 -0
  259. package/dist/collection/components/co-tags-field/co-tags-field.js +590 -0
  260. package/dist/collection/components/co-textarea/co-textarea.css +261 -0
  261. package/dist/collection/components/co-textarea/co-textarea.js +484 -0
  262. package/dist/collection/components/co-toast/co-toast.js +1 -1
  263. package/dist/collection/components/co-toggle-button/co-toggle-button.css +6 -4
  264. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  265. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
  266. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
  267. package/dist/collection/components/co-tooltip/co-tooltip.css +16 -0
  268. package/dist/collection/components/co-tooltip/co-tooltip.js +9 -3
  269. package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
  270. package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
  271. package/dist/collection/utils/dateI18n.js +101 -0
  272. package/dist/collection/utils/fileI18n.js +76 -0
  273. package/dist/collection/utils/icon-config.js +22 -0
  274. package/dist/collection/utils/lightboxI18n.js +42 -0
  275. package/dist/collection/utils/normalizeText.js +94 -0
  276. package/dist/collection/utils/overlayScroll.js +20 -0
  277. package/dist/collection/utils/positioning.js +40 -25
  278. package/dist/collection/utils/requiredMark.js +11 -0
  279. package/dist/components/co-accordion.js +1 -1
  280. package/dist/components/co-autocomplete.js +1 -1
  281. package/dist/components/co-avatar.js +1 -1
  282. package/dist/components/co-button.js +1 -1
  283. package/dist/components/co-calendar.d.ts +11 -0
  284. package/dist/components/co-calendar.js +1 -0
  285. package/dist/components/co-card.js +1 -1
  286. package/dist/components/co-checkbox-group.js +1 -1
  287. package/dist/components/co-checkbox.js +1 -1
  288. package/dist/components/co-chip.js +1 -1
  289. package/dist/components/co-color-picker.d.ts +11 -0
  290. package/dist/components/co-color-picker.js +1 -0
  291. package/dist/components/co-column-picker.d.ts +11 -0
  292. package/dist/components/co-column-picker.js +1 -0
  293. package/dist/components/co-combobox.js +1 -1
  294. package/dist/components/co-command-search.js +1 -1
  295. package/dist/components/co-data-table-pagination.js +1 -1
  296. package/dist/components/co-data-table.js +1 -1
  297. package/dist/components/co-date-field.d.ts +11 -0
  298. package/dist/components/co-date-field.js +1 -0
  299. package/dist/components/co-date-picker.d.ts +11 -0
  300. package/dist/components/co-date-picker.js +1 -0
  301. package/dist/components/co-date-range-picker.d.ts +11 -0
  302. package/dist/components/co-date-range-picker.js +1 -0
  303. package/dist/components/co-date-range.js +1 -1
  304. package/dist/components/co-drawer.js +1 -1
  305. package/dist/components/co-empty-state.js +1 -1
  306. package/dist/components/co-fab.js +1 -1
  307. package/dist/components/co-file-field.d.ts +11 -0
  308. package/dist/components/co-file-field.js +1 -0
  309. package/dist/components/co-helper-text.js +1 -1
  310. package/dist/components/co-icon-button.js +1 -1
  311. package/dist/components/co-icon.js +1 -1
  312. package/dist/components/co-input.js +1 -1
  313. package/dist/components/co-json-field.d.ts +11 -0
  314. package/dist/components/co-json-field.js +1 -0
  315. package/dist/components/co-lightbox.d.ts +11 -0
  316. package/dist/components/co-lightbox.js +1 -0
  317. package/dist/components/co-list-item.js +1 -1
  318. package/dist/components/co-menu-divider.js +1 -1
  319. package/dist/components/co-menu-item.js +1 -1
  320. package/dist/components/co-menu.js +1 -1
  321. package/dist/components/co-modal.js +1 -1
  322. package/dist/components/co-navbar.js +1 -1
  323. package/dist/components/co-number-field.js +1 -1
  324. package/dist/components/co-overlay.js +1 -1
  325. package/dist/components/co-page-header.js +1 -1
  326. package/dist/components/co-phone-field.d.ts +11 -0
  327. package/dist/components/co-phone-field.js +1 -0
  328. package/dist/components/co-popover.js +1 -1
  329. package/dist/components/co-progress-bar.js +1 -1
  330. package/dist/components/co-progress-circle.d.ts +11 -0
  331. package/dist/components/co-progress-circle.js +1 -0
  332. package/dist/components/co-radio-group.js +1 -1
  333. package/dist/components/co-radio.js +1 -1
  334. package/dist/components/co-rating.js +1 -1
  335. package/dist/components/co-ref-field.js +1 -1
  336. package/dist/components/co-rich-text-editor.d.ts +11 -0
  337. package/dist/components/co-rich-text-editor.js +1 -0
  338. package/dist/components/co-rich-text-toolbar.d.ts +11 -0
  339. package/dist/components/co-rich-text-toolbar.js +1 -0
  340. package/dist/components/co-rich-text-viewer.d.ts +11 -0
  341. package/dist/components/co-rich-text-viewer.js +1 -0
  342. package/dist/components/co-row.js +1 -1
  343. package/dist/components/co-select.js +1 -1
  344. package/dist/components/co-separator.js +1 -1
  345. package/dist/components/co-sidebar-nav.js +1 -1
  346. package/dist/components/co-sidebar.js +1 -1
  347. package/dist/components/co-slider.js +1 -1
  348. package/dist/components/co-switch.js +1 -1
  349. package/dist/components/co-tab-group.js +1 -1
  350. package/dist/components/co-tab.js +1 -1
  351. package/dist/components/co-tags-field.d.ts +11 -0
  352. package/dist/components/co-tags-field.js +1 -0
  353. package/dist/components/co-textarea.d.ts +11 -0
  354. package/dist/components/co-textarea.js +1 -0
  355. package/dist/components/co-toast.js +1 -1
  356. package/dist/components/co-toggle-button-group.js +1 -1
  357. package/dist/components/co-toggle-button.js +1 -1
  358. package/dist/components/co-tooltip.js +1 -1
  359. package/dist/components/co-transfer-list.js +1 -1
  360. package/dist/components/index.js +1 -1
  361. package/dist/components/{p-FBICWTuN.js → p-BXdfh__-.js} +1 -1
  362. package/dist/components/p-BchB6Hdr.js +1 -0
  363. package/dist/components/p-BeWXpX8I.js +1 -0
  364. package/dist/components/p-BiW0ubLs.js +1 -0
  365. package/dist/components/p-C1DCLOEl.js +1 -0
  366. package/dist/components/p-C2mZ7x_Y.js +1 -0
  367. package/dist/components/p-C9tHLXKS.js +1 -0
  368. package/dist/components/p-CQY6Ul7q.js +1 -0
  369. package/dist/components/p-CWneqh4n.js +1 -0
  370. package/dist/components/{p-B18FTYLq.js → p-CaMgu2_g.js} +1 -1
  371. package/dist/components/p-CyYF8IJE.js +1 -0
  372. package/dist/components/p-DBhNS7JD.js +1 -0
  373. package/dist/components/p-DObrQi5F.js +1 -0
  374. package/dist/components/p-DPi_U-Kl.js +1 -0
  375. package/dist/components/p-DcK0GGZC.js +2 -0
  376. package/dist/components/p-DqyWGweA.js +1 -0
  377. package/dist/components/{p-cpdUXBiS.js → p-MiSJXuBx.js} +1 -1
  378. package/dist/components/p-Sgn-2g8m.js +1 -0
  379. package/dist/components/{p-Cr8Yc0zj.js → p-jDjfGZJp.js} +1 -1
  380. package/dist/components/p-o8hrDIKe.js +1 -0
  381. package/dist/components/p-ox7HzCZn.js +10 -0
  382. package/dist/esm/co-accordion.entry.js +19 -4
  383. package/dist/esm/co-app-shell.entry.js +1 -1
  384. package/dist/esm/co-autocomplete.entry.js +51 -6
  385. package/dist/esm/co-avatar.entry.js +39 -6
  386. package/dist/esm/co-badge.entry.js +1 -1
  387. package/dist/esm/co-button-group.entry.js +1 -1
  388. package/dist/esm/co-button.entry.js +10 -5
  389. package/dist/esm/co-calendar_3.entry.js +688 -0
  390. package/dist/esm/co-card.entry.js +21 -4
  391. package/dist/esm/co-checkbox-group.entry.js +7 -5
  392. package/dist/esm/co-checkbox.entry.js +4 -4
  393. package/dist/esm/co-chip.entry.js +3 -3
  394. package/dist/esm/co-color-picker.entry.js +107 -0
  395. package/dist/esm/co-column-picker.entry.js +441 -0
  396. package/dist/esm/co-combobox.entry.js +51 -15
  397. package/dist/esm/co-command-search.entry.js +14 -7
  398. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  399. package/dist/esm/co-data-table.entry.js +17 -5
  400. package/dist/esm/co-date-picker.entry.js +175 -0
  401. package/dist/esm/co-date-range-picker.entry.js +376 -0
  402. package/dist/esm/co-date-range.entry.js +13 -259
  403. package/dist/esm/co-empty-state.entry.js +2 -2
  404. package/dist/esm/co-fab.entry.js +3 -3
  405. package/dist/esm/co-file-field.entry.js +496 -0
  406. package/dist/esm/co-helper-text.entry.js +3 -3
  407. package/dist/esm/co-icon-button.entry.js +4 -4
  408. package/dist/esm/co-icon.entry.js +7 -4
  409. package/dist/esm/co-input.entry.js +13 -8
  410. package/dist/esm/co-json-field.entry.js +107 -0
  411. package/dist/esm/co-lightbox.entry.js +342 -0
  412. package/dist/esm/co-list-item.entry.js +14 -4
  413. package/dist/esm/co-loader.entry.js +1 -1
  414. package/dist/esm/co-menu-divider.entry.js +2 -2
  415. package/dist/esm/co-menu-item.entry.js +1 -1
  416. package/dist/esm/co-menu.entry.js +2 -2
  417. package/dist/esm/co-modal.entry.js +13 -3
  418. package/dist/esm/co-navbar.entry.js +4 -4
  419. package/dist/esm/co-number-field.entry.js +47 -11
  420. package/dist/esm/co-overlay.entry.js +2 -2
  421. package/dist/esm/co-page-header.entry.js +2 -2
  422. package/dist/esm/co-phone-field.entry.js +374 -0
  423. package/dist/esm/co-popover.entry.js +4 -4
  424. package/dist/esm/co-progress-bar.entry.js +3 -3
  425. package/dist/esm/co-progress-circle.entry.js +36 -0
  426. package/dist/esm/co-radio-group.entry.js +7 -5
  427. package/dist/esm/co-radio.entry.js +4 -4
  428. package/dist/esm/co-rating.entry.js +4 -4
  429. package/dist/esm/co-ref-field.entry.js +191 -21
  430. package/dist/esm/co-rich-text-editor.entry.js +233 -0
  431. package/dist/esm/co-rich-text-toolbar.entry.js +182 -0
  432. package/dist/esm/co-rich-text-viewer.entry.js +80 -0
  433. package/dist/esm/co-row.entry.js +3 -3
  434. package/dist/esm/co-select.entry.js +119 -18
  435. package/dist/esm/co-separator.entry.js +2 -2
  436. package/dist/esm/co-sidebar-nav.entry.js +30 -5
  437. package/dist/esm/co-sidebar.entry.js +3 -3
  438. package/dist/esm/co-slider.entry.js +3 -3
  439. package/dist/esm/co-switch.entry.js +9 -6
  440. package/dist/esm/co-tab-group.entry.js +2 -2
  441. package/dist/esm/co-tab.entry.js +3 -3
  442. package/dist/esm/co-tags-field.entry.js +203 -0
  443. package/dist/esm/co-textarea.entry.js +90 -0
  444. package/dist/esm/co-toast.entry.js +2 -2
  445. package/dist/esm/co-toggle-button-group.entry.js +7 -4
  446. package/dist/esm/co-toggle-button.entry.js +4 -4
  447. package/dist/esm/co-tooltip.entry.js +12 -6
  448. package/dist/esm/co-transfer-list.entry.js +20 -6
  449. package/dist/esm/cobalt.js +3 -3
  450. package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
  451. package/dist/esm/dates-CyYF8IJE.js +416 -0
  452. package/dist/esm/{index-B0lqrhFo.js → index-BKmfyPZK.js} +79 -11
  453. package/dist/esm/index-BjAqSidM.js +27200 -0
  454. package/dist/esm/loader.js +3 -3
  455. package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
  456. package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
  457. package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
  458. package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
  459. package/dist/esm/requiredMark-DFvtYtkE.js +14 -0
  460. package/dist/esm/sanitizer-DcK0GGZC.js +1880 -0
  461. package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
  462. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +11 -0
  463. package/dist/types/components/co-avatar/co-avatar.d.ts +6 -2
  464. package/dist/types/components/co-button/co-button.d.ts +4 -0
  465. package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
  466. package/dist/types/components/co-card/co-card.d.ts +10 -2
  467. package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
  468. package/dist/types/components/co-color-picker/co-color-picker.d.ts +48 -0
  469. package/dist/types/components/co-color-picker/presets.d.ts +10 -0
  470. package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
  471. package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
  472. package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
  473. package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
  474. package/dist/types/components/co-command-search/co-command-search.d.ts +2 -0
  475. package/dist/types/components/co-data-table/co-data-table.d.ts +1 -0
  476. package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
  477. package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
  478. package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
  479. package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
  480. package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
  481. package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
  482. package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
  483. package/dist/types/components/co-icon-button/co-icon-button.d.ts +1 -1
  484. package/dist/types/components/co-input/co-input.d.ts +4 -1
  485. package/dist/types/components/co-json-field/co-json-field.d.ts +66 -0
  486. package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
  487. package/dist/types/components/co-list-item/co-list-item.d.ts +1 -0
  488. package/dist/types/components/co-modal/co-modal.d.ts +4 -0
  489. package/dist/types/components/co-number-field/co-number-field.d.ts +16 -2
  490. package/dist/types/components/co-phone-field/co-phone-field.d.ts +56 -0
  491. package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
  492. package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
  493. package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
  494. package/dist/types/components/co-ref-field/co-ref-field.d.ts +54 -1
  495. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +94 -0
  496. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +42 -0
  497. package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +32 -0
  498. package/dist/types/components/co-select/co-select.d.ts +31 -1
  499. package/dist/types/components/co-switch/co-switch.d.ts +2 -0
  500. package/dist/types/components/co-tags-field/co-tags-field.d.ts +82 -0
  501. package/dist/types/components/co-textarea/co-textarea.d.ts +65 -0
  502. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
  503. package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
  504. package/dist/types/components.d.ts +3796 -422
  505. package/dist/types/utils/dateI18n.d.ts +39 -0
  506. package/dist/types/utils/fileI18n.d.ts +34 -0
  507. package/dist/types/utils/icon-config.d.ts +20 -0
  508. package/dist/types/utils/lightboxI18n.d.ts +12 -0
  509. package/dist/types/utils/normalizeText.d.ts +41 -0
  510. package/dist/types/utils/overlayScroll.d.ts +17 -0
  511. package/dist/types/utils/positioning.d.ts +7 -14
  512. package/dist/types/utils/requiredMark.d.ts +13 -0
  513. package/package.json +9 -1
  514. package/dist/cjs/co-drawer.cjs.entry.js +0 -75
  515. package/dist/cjs/color-YhUkm10t.js +0 -32
  516. package/dist/cobalt/p-08afdc51.entry.js +0 -1
  517. package/dist/cobalt/p-1d3338b6.entry.js +0 -1
  518. package/dist/cobalt/p-1d91ec93.entry.js +0 -1
  519. package/dist/cobalt/p-230a23f3.entry.js +0 -1
  520. package/dist/cobalt/p-31bc842d.entry.js +0 -1
  521. package/dist/cobalt/p-37c1f700.entry.js +0 -1
  522. package/dist/cobalt/p-4dd7499c.entry.js +0 -1
  523. package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
  524. package/dist/cobalt/p-6793c51e.entry.js +0 -1
  525. package/dist/cobalt/p-689e38b3.entry.js +0 -1
  526. package/dist/cobalt/p-7028880b.entry.js +0 -1
  527. package/dist/cobalt/p-72113ec2.entry.js +0 -1
  528. package/dist/cobalt/p-8e54e74d.entry.js +0 -1
  529. package/dist/cobalt/p-92c39eed.entry.js +0 -1
  530. package/dist/cobalt/p-9887b828.entry.js +0 -1
  531. package/dist/cobalt/p-9a5c6600.entry.js +0 -1
  532. package/dist/cobalt/p-Am-OlB8h.js +0 -1
  533. package/dist/cobalt/p-B0lqrhFo.js +0 -2
  534. package/dist/cobalt/p-BG4WRR22.js +0 -1
  535. package/dist/cobalt/p-a1b248ad.entry.js +0 -1
  536. package/dist/cobalt/p-a470b764.entry.js +0 -1
  537. package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
  538. package/dist/cobalt/p-b6840df4.entry.js +0 -1
  539. package/dist/cobalt/p-b89d54d9.entry.js +0 -1
  540. package/dist/cobalt/p-ba84631a.entry.js +0 -1
  541. package/dist/cobalt/p-c7517f86.entry.js +0 -1
  542. package/dist/cobalt/p-ca41eec2.entry.js +0 -1
  543. package/dist/cobalt/p-d29c77cb.entry.js +0 -1
  544. package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
  545. package/dist/cobalt/p-da55678f.entry.js +0 -1
  546. package/dist/cobalt/p-dc5598d1.entry.js +0 -1
  547. package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
  548. package/dist/cobalt/p-ebd68f56.entry.js +0 -1
  549. package/dist/cobalt/p-f051f44d.entry.js +0 -1
  550. package/dist/cobalt/p-fe1447a3.entry.js +0 -1
  551. package/dist/components/p-Am-OlB8h.js +0 -1
  552. package/dist/components/p-BG4WRR22.js +0 -1
  553. package/dist/components/p-wwWquAtm.js +0 -1
  554. package/dist/esm/co-drawer.entry.js +0 -73
  555. package/dist/esm/color-BG4WRR22.js +0 -30
@@ -14,12 +14,12 @@ export class CoNavbar {
14
14
  this.rounded = false;
15
15
  }
16
16
  render() {
17
- return (h("div", { key: 'bf36fdff69c691f99a420fc9e782df9b75517052', class: {
17
+ return (h("div", { key: 'ec767e2bc0b048666ee78670729a851ab99b2ddb', class: {
18
18
  'co-navbar': true,
19
19
  [`co-navbar--${this.variant}`]: true,
20
20
  [`co-navbar--${this.size}`]: true,
21
21
  'co-navbar--rounded': this.rounded,
22
- }, part: "navbar", role: "toolbar" }, h("slot", { key: '62f1bc0ba7c1cd61727cd01f7d540643fbe44575' })));
22
+ }, part: "navbar", role: "toolbar" }, h("slot", { key: '72fab32c330d1688e9f34b8d712b17f35d5aa513' })));
23
23
  }
24
24
  static get is() { return "co-navbar"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -60,6 +60,14 @@
60
60
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
61
61
  }
62
62
 
63
+ /* ── Size variants (mirror co-input: s 28 / sm 32 / md 40 / lg 48) ── */
64
+ .co-number-field--s .co-number-field__row { min-height: 28px; }
65
+ .co-number-field--s .co-number-field__btn { width: 28px; height: 28px; }
66
+ .co-number-field--sm .co-number-field__row { min-height: 32px; }
67
+ .co-number-field--sm .co-number-field__btn { width: 32px; height: 32px; }
68
+ .co-number-field--lg .co-number-field__row { min-height: 48px; }
69
+ .co-number-field--lg .co-number-field__btn { width: 48px; height: 48px; }
70
+
63
71
  .co-number-field--focused .co-number-field__row {
64
72
  border-color: var(--co-semantic-border-focus);
65
73
  box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
@@ -112,6 +120,26 @@
112
120
  border-left: 1px solid var(--co-semantic-border-subtle);
113
121
  }
114
122
 
123
+ /* ── Clear button ───────────────────────────────────────────── */
124
+ .co-number-field__clear {
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ flex-shrink: 0;
129
+ width: 24px;
130
+ height: 100%;
131
+ padding: 0;
132
+ border: none;
133
+ background: transparent;
134
+ color: var(--co-semantic-text-muted);
135
+ cursor: pointer;
136
+ transition: color 0.15s ease;
137
+ }
138
+
139
+ .co-number-field__clear:hover {
140
+ color: var(--co-semantic-text-default);
141
+ }
142
+
115
143
  /* ── Input ──────────────────────────────────────────────────── */
116
144
  .co-number-field__input {
117
145
  flex: 1;
@@ -176,3 +204,45 @@
176
204
 
177
205
  .co-number-field__helper--info .co-number-field__helper-icon,
178
206
  .co-number-field__helper--info .co-number-field__helper-text { color: var(--co-semantic-status-info); }
207
+
208
+ /* ── Horizontal layout: label left; control + helper stacked right ──
209
+ Set --co-field-label-width on a container to align labels across fields. */
210
+ :host([layout='horizontal']) .co-number-field {
211
+ display: grid;
212
+ grid-template-columns: var(--co-field-label-width, max-content) 1fr;
213
+ align-items: start;
214
+ column-gap: var(--co-spacing-md);
215
+ row-gap: var(--co-spacing-sm2);
216
+ }
217
+
218
+ :host([layout='horizontal']) .co-number-field__labels {
219
+ grid-column: 1;
220
+ grid-row: 1;
221
+ padding-top: var(--co-spacing-sm2);
222
+ min-width: 0;
223
+ }
224
+
225
+ :host([layout='horizontal']) .co-number-field__label {
226
+ white-space: normal;
227
+ }
228
+
229
+ :host([layout='horizontal']) .co-number-field > :not(.co-number-field__labels) {
230
+ grid-column: 2;
231
+ min-width: 0;
232
+ }
233
+
234
+ .co-field-required {
235
+ margin-left: 2px;
236
+ color: var(--co-color-status-error);
237
+ }
238
+
239
+ .co-field-required__caption {
240
+ margin-left: 4px;
241
+ color: var(--co-semantic-text-muted);
242
+ font-size: var(--co-font-size-12);
243
+ font-weight: 400;
244
+ }
245
+
246
+ .co-field-required__caption::before {
247
+ content: var(--co-field-required-text, ' (required)');
248
+ }
@@ -1,35 +1,60 @@
1
1
  import { h } from "@stencil/core";
2
+ import { RequiredMark } from "../../utils/requiredMark";
2
3
  export class CoNumberField {
3
4
  constructor() {
5
+ /** Whether the field is required (renders a required marker on the label). */
6
+ this.required = false;
7
+ /** Label layout: vertical (label above) or horizontal (label beside) */
8
+ this.layout = 'vertical';
4
9
  this.status = 'default';
5
10
  this.value = 0;
6
11
  this.step = 1;
7
12
  this.disabled = false;
8
13
  this.placeholder = '0';
14
+ this.size = 'md';
15
+ /** Show clear button when the field has a value */
16
+ this.clearable = false;
9
17
  this.focused = false;
10
18
  this.handleDecrement = () => {
11
19
  if (!this.canDecrement)
12
20
  return;
13
- this.emitValue(this.value - this.step);
21
+ this.emitValue(this.current - this.step);
14
22
  };
15
23
  this.handleIncrement = () => {
16
24
  if (!this.canIncrement)
17
25
  return;
18
- this.emitValue(this.value + this.step);
26
+ this.emitValue(this.current + this.step);
19
27
  };
20
28
  this.handleInput = (e) => {
21
29
  const raw = e.target.value;
22
- if (raw === '' || raw === '-')
30
+ if (raw === '') {
31
+ // Deleting all content clears the field (parity with the clear button),
32
+ // but only when clearing is enabled — otherwise keep prior behavior.
33
+ if (this.clearable) {
34
+ this.value = null;
35
+ this.coChange.emit(null);
36
+ }
37
+ return;
38
+ }
39
+ if (raw === '-')
23
40
  return;
24
41
  const num = parseFloat(raw);
25
42
  if (!isNaN(num)) {
26
43
  this.emitValue(num);
27
44
  }
28
45
  };
46
+ this.handleClear = () => {
47
+ var _a;
48
+ this.value = null;
49
+ this.coClear.emit();
50
+ this.coChange.emit(null);
51
+ (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
52
+ };
29
53
  this.handleBlur = () => {
30
54
  this.focused = false;
31
- // Re-clamp on blur
32
- this.emitValue(this.value);
55
+ // Re-clamp on blur, but keep an empty field empty.
56
+ if (!this.isEmpty)
57
+ this.emitValue(this.value);
33
58
  };
34
59
  this.handleFocus = () => {
35
60
  this.focused = true;
@@ -45,6 +70,15 @@ export class CoNumberField {
45
70
  }
46
71
  };
47
72
  }
73
+ /** True when there is no numeric value (cleared / empty). */
74
+ get isEmpty() {
75
+ return this.value === null || this.value === undefined || Number.isNaN(this.value);
76
+ }
77
+ /** Numeric value to step from, treating an empty field as min (or 0). */
78
+ get current() {
79
+ var _a;
80
+ return this.isEmpty ? ((_a = this.min) !== null && _a !== void 0 ? _a : 0) : this.value;
81
+ }
48
82
  get statusIcon() {
49
83
  const map = {
50
84
  error: 'warning-circle', success: 'check-circle', warning: 'warning', info: 'info',
@@ -55,14 +89,14 @@ export class CoNumberField {
55
89
  if (this.disabled)
56
90
  return false;
57
91
  if (this.min !== undefined)
58
- return this.value > this.min;
92
+ return this.current > this.min;
59
93
  return true;
60
94
  }
61
95
  get canIncrement() {
62
96
  if (this.disabled)
63
97
  return false;
64
98
  if (this.max !== undefined)
65
- return this.value < this.max;
99
+ return this.current < this.max;
66
100
  return true;
67
101
  }
68
102
  clamp(v) {
@@ -78,12 +112,13 @@ export class CoNumberField {
78
112
  this.coChange.emit(clamped);
79
113
  }
80
114
  render() {
81
- return (h("div", { key: '9f90d445ff118b9927d1947d05d72efdbdc33bcc', class: {
115
+ return (h("div", { key: '6c3e5ede75a2e025c330a6bdd0f49bfd7642222f', class: {
82
116
  'co-number-field': true,
83
117
  'co-number-field--disabled': this.disabled,
84
118
  'co-number-field--focused': this.focused,
119
+ [`co-number-field--${this.size}`]: true,
85
120
  [`co-number-field--${this.status}`]: this.status !== 'default',
86
- } }, (this.label || this.secondaryLabel) && (h("div", { key: 'c1104f3441b2e126bcf3f279de265b182b00b248', class: "co-number-field__labels" }, this.label && h("label", { key: '25e03a8bf88964c3ea1305d0a7af2b892b1e14dd', class: "co-number-field__label" }, this.label), this.secondaryLabel && h("span", { key: '4e8e2668b6eaf159e09ca1ca61514b52fc951908', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: 'ac29df6c61cb2a5d54e896b1ede50f5fed27d42d', class: "co-number-field__row" }, h("button", { key: '390b456584b531c390479b843e13b095ba63dd7e', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '24a61a2fa7c89b3d932dcce7d5f8f6bcb13492b5', name: "minus", size: 16 })), h("input", { key: '013a70c99e5a1012d503c185e48199a2bd91c732', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal", value: String(this.value), placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown }), h("button", { key: '3f553d6a9a844a857da479e9fa69648b14eb4057', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: '86615e73f7ffad75d7b3270f662c018e6ff9090b', name: "plus", size: 16 }))), this.helperText && (h("div", { key: '9027cece2ec51e6683d8ceb293e36a2f13b9e663', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '66d7cca5a530272a4cf7f15a7689fc699f0dffe5', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: 'e3069cfe059f0ac02e407c589627a36f1471c937', class: "co-number-field__helper-text" }, this.helperText)))));
121
+ } }, (this.label || this.secondaryLabel) && (h("div", { key: 'd5157ffa7731d38668d70ef2245ee5f950f59393', class: "co-number-field__labels" }, this.label && h("label", { key: 'e9ecc51032f92c1f599b4790ee186402d86d4c18', class: "co-number-field__label" }, this.label, h(RequiredMark, { key: '627e98d1f9b8786f842778d6006211f42b2ca500', required: this.required })), this.secondaryLabel && h("span", { key: 'ca6a7dea5e8c2f6b2e097ba84a5bb691fc87e09d', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: '0a72931f013e988bc383c1f92435add49edb1381', class: "co-number-field__row" }, h("button", { key: '6e5a27347ee3b2784de029214daa386bb8903894', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '7cecf82f04ed32ff66e144dd31a6b1902dbd1cb5', name: "minus", size: 16 })), h("input", { key: '0c37512501cb9ab2aeff6924d3064c038c6f8696', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal", value: this.isEmpty ? '' : String(this.value), placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown }), this.clearable && !this.isEmpty && !this.disabled && (h("button", { key: '36225c2e660a2fba12ece5f96d878c35da8a7697', class: "co-number-field__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '903d40fef1429d5098c5515087867a23cbceb584', name: "x-circle", size: 16, weight: "fill" }))), h("button", { key: '8b4d787655ceb69fe0d7e1b023cd9e4f91ba2174', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: '7e786b1eb699103670ea3e4d2a5b234221c64100', name: "plus", size: 16 }))), this.helperText && (h("div", { key: 'ef12fdcb24ca9ade4ef43b25afc2d76561d5b7f7', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '1a5ce842cb1d01c3d392ea66f6d78b43b689ae65', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: 'e3581ef5219df87b5d5cb188bc2afd459f06f776', class: "co-number-field__helper-text" }, this.helperText)))));
87
122
  }
88
123
  static get is() { return "co-number-field"; }
89
124
  static get encapsulation() { return "shadow"; }
@@ -118,6 +153,26 @@ export class CoNumberField {
118
153
  "reflect": false,
119
154
  "attribute": "label"
120
155
  },
156
+ "required": {
157
+ "type": "boolean",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "boolean",
161
+ "resolved": "boolean",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": "Whether the field is required (renders a required marker on the label)."
169
+ },
170
+ "getter": false,
171
+ "setter": false,
172
+ "reflect": false,
173
+ "attribute": "required",
174
+ "defaultValue": "false"
175
+ },
121
176
  "secondaryLabel": {
122
177
  "type": "string",
123
178
  "mutable": false,
@@ -156,6 +211,26 @@ export class CoNumberField {
156
211
  "reflect": false,
157
212
  "attribute": "helper-text"
158
213
  },
214
+ "layout": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "'vertical' | 'horizontal'",
219
+ "resolved": "\"horizontal\" | \"vertical\"",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "Label layout: vertical (label above) or horizontal (label beside)"
227
+ },
228
+ "getter": false,
229
+ "setter": false,
230
+ "reflect": true,
231
+ "attribute": "layout",
232
+ "defaultValue": "'vertical'"
233
+ },
159
234
  "status": {
160
235
  "type": "string",
161
236
  "mutable": false,
@@ -180,8 +255,8 @@ export class CoNumberField {
180
255
  "type": "number",
181
256
  "mutable": true,
182
257
  "complexType": {
183
- "original": "number",
184
- "resolved": "number",
258
+ "original": "number | null",
259
+ "resolved": "null | number",
185
260
  "references": {}
186
261
  },
187
262
  "required": false,
@@ -293,6 +368,46 @@ export class CoNumberField {
293
368
  "reflect": false,
294
369
  "attribute": "placeholder",
295
370
  "defaultValue": "'0'"
371
+ },
372
+ "size": {
373
+ "type": "string",
374
+ "mutable": false,
375
+ "complexType": {
376
+ "original": "'s' | 'sm' | 'md' | 'lg'",
377
+ "resolved": "\"lg\" | \"md\" | \"s\" | \"sm\"",
378
+ "references": {}
379
+ },
380
+ "required": false,
381
+ "optional": false,
382
+ "docs": {
383
+ "tags": [],
384
+ "text": ""
385
+ },
386
+ "getter": false,
387
+ "setter": false,
388
+ "reflect": true,
389
+ "attribute": "size",
390
+ "defaultValue": "'md'"
391
+ },
392
+ "clearable": {
393
+ "type": "boolean",
394
+ "mutable": false,
395
+ "complexType": {
396
+ "original": "boolean",
397
+ "resolved": "boolean",
398
+ "references": {}
399
+ },
400
+ "required": false,
401
+ "optional": false,
402
+ "docs": {
403
+ "tags": [],
404
+ "text": "Show clear button when the field has a value"
405
+ },
406
+ "getter": false,
407
+ "setter": false,
408
+ "reflect": false,
409
+ "attribute": "clearable",
410
+ "defaultValue": "false"
296
411
  }
297
412
  };
298
413
  }
@@ -313,8 +428,23 @@ export class CoNumberField {
313
428
  "text": ""
314
429
  },
315
430
  "complexType": {
316
- "original": "number",
317
- "resolved": "number",
431
+ "original": "number | null",
432
+ "resolved": "null | number",
433
+ "references": {}
434
+ }
435
+ }, {
436
+ "method": "coClear",
437
+ "name": "coClear",
438
+ "bubbles": true,
439
+ "cancelable": true,
440
+ "composed": true,
441
+ "docs": {
442
+ "tags": [],
443
+ "text": "Emitted when the clear button is clicked"
444
+ },
445
+ "complexType": {
446
+ "original": "void",
447
+ "resolved": "void",
318
448
  "references": {}
319
449
  }
320
450
  }];
@@ -8,7 +8,7 @@ export class CoOverlay {
8
8
  };
9
9
  }
10
10
  render() {
11
- return (h("div", { key: '8f2a8e4ca27d43e10f797265a4b25fea1ef92445', class: { 'co-overlay': true, 'co-overlay--open': this.open }, part: "overlay", onClick: this.handleClick }, h("slot", { key: '6099310206111ba414b3e9f35edf8ba598d6ef4e' })));
11
+ return (h("div", { key: '65b20d04a50324ef37a5a9f0ff726ead15d0d757', class: { 'co-overlay': true, 'co-overlay--open': this.open }, part: "overlay", onClick: this.handleClick }, h("slot", { key: '64d6abebb8d812d4c638b14608ba2982aae43a19' })));
12
12
  }
13
13
  static get is() { return "co-overlay"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ import { h } from "@stencil/core";
6
6
  */
7
7
  export class CoPageHeader {
8
8
  render() {
9
- return (h("div", { key: '1a1d93d47a677a42f201b9433604c20e952b36df', class: "co-page-header", part: "page-header" }, h("div", { key: '2c634b9ba352ba4bf0097f81aa51331f8d0fd4d1', class: "co-page-header__left" }, this.icon && (h("span", { key: 'e88bb93d1cbb37ee1c3f4e57a00c72156377a434', class: "co-page-header__icon" }, h("co-icon", { key: '01282c4e2c61789c8f1b95b9a15e7e683cbaf0a7', name: this.icon, size: 24 }))), h("span", { key: '4d3f7b4f86cf178c9a11c91e0da17c3293a911ff', class: "co-page-header__title" }, h("slot", { key: '2291559692047e954b3984f738d6751c9b39ed76' }, this.heading))), h("div", { key: '780971b9a144f8daa53619df25fe69325b12d9da', class: "co-page-header__actions" }, h("slot", { key: 'dc2a010be24395703942b658af059299a92c7fea', name: "actions" }))));
9
+ return (h("div", { key: 'bb91fd19e0570998c5017cd5de3b6388c2e53a12', class: "co-page-header", part: "page-header" }, h("div", { key: 'efcaed2b33a7038f8a08deabde95c5891afa5f74', class: "co-page-header__left" }, this.icon && (h("span", { key: 'ef332057fc621d14195977fdec57c6d398646159', class: "co-page-header__icon" }, h("co-icon", { key: '1fffba2e767a51530c9489c7672532d9a653302d', name: this.icon, size: 24 }))), h("span", { key: 'cbc7c3d8a3088e5b4ea30af142c887a3ada7bed9', class: "co-page-header__title" }, h("slot", { key: '57a2fa4a291f96e31ba97bbdcc1104ca2dd1e275' }, this.heading))), h("div", { key: '11be9907895d13091a7e264aca84a383c3dcebcf', class: "co-page-header__actions" }, h("slot", { key: 'dd00a986940145d4afcb4f0fbd23a2edc02523e3', name: "actions" }))));
10
10
  }
11
11
  static get is() { return "co-page-header"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,265 @@
1
+ :host {
2
+ display: block;
3
+ font-family: var(--co-font-family-primary);
4
+ font-size: var(--co-font-size-14);
5
+ letter-spacing: var(--co-font-letter-spacing-body);
6
+ line-height: 1;
7
+ position: relative;
8
+ }
9
+
10
+ .co-phone-field {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: var(--co-spacing-sm2);
14
+ position: relative;
15
+ font-family: var(--co-font-family-primary);
16
+ }
17
+
18
+ .co-phone-field--disabled {
19
+ opacity: 0.5;
20
+ pointer-events: none;
21
+ }
22
+
23
+ .co-phone-field__label {
24
+ font-size: var(--co-font-size-14);
25
+ font-weight: 400;
26
+ color: var(--co-semantic-text-secondary);
27
+ padding: 0 var(--co-spacing-xs);
28
+ }
29
+
30
+ .co-field-required {
31
+ margin-left: 2px;
32
+ color: var(--co-color-status-error);
33
+ }
34
+
35
+ .co-field-required__caption {
36
+ margin-left: 4px;
37
+ color: var(--co-semantic-text-muted);
38
+ font-size: var(--co-font-size-12);
39
+ font-weight: 400;
40
+ }
41
+
42
+ .co-field-required__caption::before {
43
+ content: var(--co-field-required-text, ' (required)');
44
+ }
45
+
46
+ .co-phone-field__container {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: var(--co-spacing-sm2);
50
+ padding: var(--co-spacing-sm2) var(--co-spacing-md);
51
+ background: var(--co-semantic-surface-secondary);
52
+ border: 1px solid var(--co-semantic-border-subtle);
53
+ border-radius: var(--co-border-radius-xs);
54
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
55
+ min-height: 40px;
56
+ box-sizing: border-box;
57
+ }
58
+
59
+ .co-phone-field--error .co-phone-field__container {
60
+ border-color: var(--co-color-status-error);
61
+ }
62
+
63
+ .co-phone-field__container:focus-within {
64
+ border-color: var(--co-semantic-border-focus);
65
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-semantic-border-focus) 15%, transparent);
66
+ }
67
+
68
+ .co-phone-field__selector {
69
+ display: flex;
70
+ align-items: center;
71
+ gap: var(--co-spacing-xs);
72
+ padding: 0;
73
+ background: none;
74
+ border: none;
75
+ border-right: 1px solid var(--co-semantic-border-subtle);
76
+ padding-right: var(--co-spacing-sm);
77
+ margin-right: var(--co-spacing-sm);
78
+ cursor: pointer;
79
+ font-size: inherit;
80
+ font-family: inherit;
81
+ color: var(--co-semantic-text-default);
82
+ white-space: nowrap;
83
+ }
84
+
85
+ .co-phone-field__selector:hover {
86
+ opacity: 0.8;
87
+ }
88
+
89
+ .co-phone-field__flag {
90
+ width: 20px;
91
+ height: 15px;
92
+ border-radius: 2px;
93
+ object-fit: cover;
94
+ }
95
+
96
+ .co-phone-field__dial-code {
97
+ font-size: var(--co-font-size-14);
98
+ color: var(--co-semantic-text-secondary);
99
+ font-weight: 500;
100
+ }
101
+
102
+ .co-phone-field__chevron {
103
+ display: flex;
104
+ align-items: center;
105
+ color: var(--co-semantic-text-muted);
106
+ }
107
+
108
+ .co-phone-field__input {
109
+ flex: 1;
110
+ min-width: 0;
111
+ padding: 0;
112
+ border: none;
113
+ outline: none;
114
+ font-size: inherit;
115
+ font-family: inherit;
116
+ font-weight: 400;
117
+ letter-spacing: inherit;
118
+ color: var(--co-semantic-text-default);
119
+ background: transparent;
120
+ line-height: 1;
121
+ }
122
+
123
+ .co-phone-field__input::placeholder {
124
+ color: var(--co-semantic-text-muted);
125
+ }
126
+
127
+ /* Dropdown */
128
+ .co-phone-field__dropdown {
129
+ position: absolute;
130
+ top: 100%;
131
+ left: 0;
132
+ right: 0;
133
+ z-index: 100;
134
+ margin-top: var(--co-spacing-xs);
135
+ background: var(--co-semantic-surface-page, #fff);
136
+ border: 1px solid var(--co-semantic-border-subtle);
137
+ border-radius: var(--co-border-radius-xs);
138
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
139
+ max-height: 280px;
140
+ display: flex;
141
+ flex-direction: column;
142
+ overflow: hidden;
143
+ }
144
+
145
+ .co-phone-field__search {
146
+ padding: var(--co-spacing-sm);
147
+ border-bottom: 1px solid var(--co-semantic-border-subtle);
148
+ }
149
+
150
+ .co-phone-field__search-input {
151
+ width: 100%;
152
+ padding: var(--co-spacing-xs) var(--co-spacing-sm);
153
+ border: 1px solid var(--co-semantic-border-subtle);
154
+ border-radius: var(--co-border-radius-xxs);
155
+ font-size: var(--co-font-size-14);
156
+ font-family: var(--co-font-family-primary);
157
+ outline: none;
158
+ background: var(--co-semantic-surface-secondary);
159
+ color: var(--co-semantic-text-default);
160
+ box-sizing: border-box;
161
+ }
162
+
163
+ .co-phone-field__search-input:focus {
164
+ border-color: var(--co-semantic-border-focus);
165
+ }
166
+
167
+ .co-phone-field__options {
168
+ overflow-y: auto;
169
+ flex: 1;
170
+ }
171
+
172
+ .co-phone-field__option {
173
+ display: flex;
174
+ align-items: center;
175
+ gap: var(--co-spacing-sm);
176
+ width: 100%;
177
+ padding: var(--co-spacing-sm) var(--co-spacing-md);
178
+ border: none;
179
+ background: none;
180
+ cursor: pointer;
181
+ font-size: var(--co-font-size-14);
182
+ font-family: var(--co-font-family-primary);
183
+ color: var(--co-semantic-text-default);
184
+ text-align: left;
185
+ }
186
+
187
+ .co-phone-field__option:hover {
188
+ background: var(--co-semantic-surface-hover);
189
+ }
190
+
191
+ .co-phone-field__option--selected {
192
+ background: color-mix(in srgb, var(--co-semantic-border-focus) 8%, transparent);
193
+ font-weight: 500;
194
+ }
195
+
196
+ .co-phone-field__option-flag {
197
+ width: 20px;
198
+ height: 15px;
199
+ border-radius: 2px;
200
+ object-fit: cover;
201
+ flex-shrink: 0;
202
+ }
203
+
204
+ .co-phone-field__match {
205
+ font-weight: 700;
206
+ }
207
+
208
+ .co-phone-field__option-name {
209
+ flex: 1;
210
+ min-width: 0;
211
+ overflow: hidden;
212
+ text-overflow: ellipsis;
213
+ white-space: nowrap;
214
+ }
215
+
216
+ .co-phone-field__option-code {
217
+ color: var(--co-semantic-text-muted);
218
+ font-size: var(--co-font-size-12);
219
+ white-space: nowrap;
220
+ }
221
+
222
+ .co-phone-field__helper {
223
+ display: flex;
224
+ align-items: center;
225
+ gap: var(--co-spacing-xs);
226
+ padding: 0 var(--co-spacing-xs);
227
+ font-size: var(--co-font-size-14);
228
+ color: var(--co-semantic-text-muted);
229
+ }
230
+
231
+ .co-phone-field__helper-icon {
232
+ flex-shrink: 0;
233
+ display: flex;
234
+ align-items: center;
235
+ }
236
+
237
+ .co-phone-field--error .co-phone-field__helper {
238
+ color: var(--co-semantic-status-error);
239
+ }
240
+
241
+ /* ── Horizontal layout: label left; control + helper stacked right ──
242
+ Set --co-field-label-width on a container to align labels across fields. */
243
+ :host([layout='horizontal']) .co-phone-field {
244
+ display: grid;
245
+ grid-template-columns: var(--co-field-label-width, max-content) 1fr;
246
+ align-items: start;
247
+ column-gap: var(--co-spacing-md);
248
+ row-gap: var(--co-spacing-sm2);
249
+ }
250
+
251
+ :host([layout='horizontal']) .co-phone-field__label {
252
+ grid-column: 1;
253
+ grid-row: 1;
254
+ padding-top: var(--co-spacing-sm2);
255
+ min-width: 0;
256
+ }
257
+
258
+ :host([layout='horizontal']) .co-phone-field__label {
259
+ white-space: normal;
260
+ }
261
+
262
+ :host([layout='horizontal']) .co-phone-field > :not(.co-phone-field__label) {
263
+ grid-column: 2;
264
+ min-width: 0;
265
+ }