bromcom-ui 2.10.1-rc.0 → 2.10.1-rc.10

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 (423) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-000670b6.js +5 -0
  4. package/dist/bromcom-ui/{p-401a6ab5.entry.js → p-073d177e.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-fa08ba52.entry.js → p-07e9b5e7.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-0fc73cca.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-fcc6f71e.js → p-125d6ed0.js} +1 -1
  8. package/dist/bromcom-ui/{p-4438d629.entry.js → p-14cafd64.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-157359d6.js} +1 -1
  10. package/dist/bromcom-ui/{p-05bd4980.entry.js → p-16450a8b.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
  12. package/dist/bromcom-ui/{p-3bae35e5.entry.js → p-175eb1c7.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-7c94a7b0.entry.js → p-17c0a72a.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-51ba92e5.entry.js → p-17eb0140.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-5a97d31c.entry.js → p-18d28737.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-08159d00.entry.js → p-19f27bd8.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-95a2c489.entry.js → p-1c801d0c.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-1c9314bd.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-1f5ca41b.entry.js +5 -0
  20. package/dist/bromcom-ui/p-21cb3cfe.entry.js +5 -0
  21. package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-1d04942a.entry.js → p-23eb79ac.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-26290ed5.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-188b9079.entry.js → p-2aaeb247.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-552dfb63.entry.js → p-2d965b60.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-32d93221.entry.js +21 -0
  27. package/dist/bromcom-ui/p-33513345.entry.js +5 -0
  28. package/dist/bromcom-ui/{p-61ad661f.entry.js → p-3b5c36e8.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-dca22282.entry.js → p-3f127ea5.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-40b85b9b.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-2ce15cc8.entry.js → p-424b7562.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-0efc9196.entry.js → p-430c0a24.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-da20e681.entry.js → p-43a1f84c.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-c851688d.entry.js → p-4e436468.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-6e5f5f36.js → p-518b9b80.js} +1 -1
  36. package/dist/bromcom-ui/{p-be6595a2.entry.js → p-51b6a14a.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-32fd9854.js → p-52b7fc24.js} +1 -1
  38. package/dist/bromcom-ui/p-56187d14.entry.js +5 -0
  39. package/dist/bromcom-ui/{p-468157a0.entry.js → p-5699f67d.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-d4755f0d.entry.js → p-58d5775f.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-dd1a0284.entry.js → p-594953e7.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-5b96272e.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-21fed956.entry.js → p-5bf620b2.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-4d8067b9.entry.js → p-5c671967.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-599889d7.entry.js → p-5fc49f6f.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-00e1c9bb.entry.js → p-60a12878.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-61314a43.js +5 -0
  48. package/dist/bromcom-ui/{p-5dd45752.entry.js → p-6153f889.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-4798d827.js → p-61db1f1f.js} +1 -1
  50. package/dist/bromcom-ui/{p-7a89243a.entry.js → p-626b805d.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-a313fba6.js → p-6369b73b.js} +1 -1
  52. package/dist/bromcom-ui/{p-6660ba14.entry.js → p-643a09b4.entry.js} +1 -1
  53. package/dist/bromcom-ui/p-64999c43.entry.js +5 -0
  54. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  55. package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-69260d36.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
  58. package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
  59. package/dist/bromcom-ui/{p-47df8e77.entry.js → p-79712823.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-7d18ce0e.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-ddb6f31a.entry.js → p-7e2da99e.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  64. package/dist/bromcom-ui/{p-0db33506.entry.js → p-841f2b60.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
  66. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  67. package/dist/bromcom-ui/{p-ab3cd547.entry.js → p-8c3a6509.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-8c610886.js +5 -0
  69. package/dist/bromcom-ui/{p-5efc5c02.entry.js → p-8e772077.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-61334720.entry.js → p-8fbdb72f.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-91623d42.entry.js → p-910c935f.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
  73. package/dist/bromcom-ui/{p-f9119bec.entry.js → p-99824717.entry.js} +1 -1
  74. package/dist/bromcom-ui/p-9ac757e9.entry.js +5 -0
  75. package/dist/bromcom-ui/{p-d345d37b.entry.js → p-9da1d897.entry.js} +1 -1
  76. package/dist/bromcom-ui/{p-d3bd9ee0.entry.js → p-9f1e6daa.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-cd724916.js → p-a1477028.js} +1 -1
  78. package/dist/bromcom-ui/p-a25c8a55.js +5 -0
  79. package/dist/bromcom-ui/{p-0207059a.js → p-a58b2664.js} +1 -1
  80. package/dist/bromcom-ui/{p-1a33d7a3.entry.js → p-a664cc20.entry.js} +1 -1
  81. package/dist/bromcom-ui/{p-8fa5700a.entry.js → p-a835bff0.entry.js} +1 -1
  82. package/dist/bromcom-ui/p-a889681e.entry.js +5 -0
  83. package/dist/bromcom-ui/{p-1ba21e9c.entry.js → p-aab72ea1.entry.js} +1 -1
  84. package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
  85. package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
  86. package/dist/bromcom-ui/{p-035c6dbc.entry.js → p-afde516e.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-ba9eff2a.entry.js} +1 -1
  88. package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
  89. package/dist/bromcom-ui/{p-0c8abcd8.entry.js → p-c977ed98.entry.js} +1 -1
  90. package/dist/bromcom-ui/p-cfd52d5f.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-63138ee5.entry.js → p-d551a51d.entry.js} +1 -1
  92. package/dist/bromcom-ui/{p-f9988c3c.entry.js → p-da5fdda2.entry.js} +1 -1
  93. package/dist/bromcom-ui/p-e19a8e73.entry.js +5 -0
  94. package/dist/bromcom-ui/{p-4542066c.js → p-e2aaaece.js} +1 -1
  95. package/dist/bromcom-ui/{p-a42879c1.entry.js → p-e6faa2bb.entry.js} +1 -1
  96. package/dist/bromcom-ui/{p-751baf81.entry.js → p-ec36f5a0.entry.js} +1 -1
  97. package/dist/bromcom-ui/p-ec992ac3.entry.js +5 -0
  98. package/dist/bromcom-ui/{p-f4576a4f.entry.js → p-ecd8d70f.entry.js} +1 -1
  99. package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-ece578ef.entry.js} +1 -1
  100. package/dist/bromcom-ui/p-edbdd7dd.js +5 -0
  101. package/dist/bromcom-ui/{p-daa45693.entry.js → p-f077a1d7.entry.js} +1 -1
  102. package/dist/bromcom-ui/{p-704352eb.entry.js → p-f2776268.entry.js} +1 -1
  103. package/dist/bromcom-ui/p-f800e665.js +5 -0
  104. package/dist/bromcom-ui/{p-2d59be96.js → p-f83b3048.js} +1 -1
  105. package/dist/bromcom-ui/{p-c39f002b.js → p-fed84581.js} +1 -1
  106. package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-fff1a0f9.entry.js} +1 -1
  107. package/dist/cjs/{bcm-489c9b1a.js → bcm-3c58a6d5.js} +28 -28
  108. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  110. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  111. package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -6
  112. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  113. package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-button_15.cjs.entry.js +37832 -0
  115. package/dist/cjs/bcm-caption.cjs.entry.js +47 -0
  116. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  117. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +20 -22
  118. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
  119. package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -9
  120. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  121. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  122. package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
  123. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
  124. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +7 -8
  125. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  126. package/dist/cjs/bcm-drawer.cjs.entry.js +6 -6
  127. package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
  128. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  129. package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
  130. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  131. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  132. package/dist/cjs/bcm-item.cjs.entry.js +3 -3
  133. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  134. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  135. package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
  136. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  137. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  138. package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -6
  139. package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
  140. package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
  141. package/dist/cjs/bcm-old-input.cjs.entry.js +2 -2
  142. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  143. package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
  144. package/dist/cjs/bcm-popover.cjs.entry.js +7 -7
  145. package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
  146. package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -7
  147. package/dist/cjs/bcm-radio.cjs.entry.js +6 -6
  148. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  149. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  150. package/dist/cjs/bcm-shortcut.cjs.entry.js +6 -6
  151. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  152. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  153. package/dist/cjs/bcm-stepper.cjs.entry.js +7 -7
  154. package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
  155. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -6
  156. package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
  157. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  158. package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
  159. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  160. package/dist/cjs/bcm-textarea.cjs.entry.js +6 -6
  161. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
  162. package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
  163. package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
  164. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  165. package/dist/cjs/caption-template-6f535b93.js +32 -0
  166. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-555cd3d4.js} +1 -1
  167. package/dist/cjs/{generate-e214b3de.js → generate-c3a6c8c7.js} +15 -1
  168. package/dist/cjs/{global-532b40dc.js → global-9e8b5009.js} +1 -1
  169. package/dist/cjs/{input-template-2b8e0195.js → input-template-8eeb94e7.js} +2 -2
  170. package/dist/cjs/{json-parse-decarator-668b7724.js → json-parse-decarator-0932bec0.js} +1 -1
  171. package/dist/cjs/label-template-a6f51ef2.js +27 -0
  172. package/dist/cjs/loader.cjs.js +3 -3
  173. package/dist/cjs/{number-helper-3a911c0f.js → number-helper-4e902d31.js} +1 -1
  174. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  175. package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
  176. package/dist/cjs/{package-f9f70acc.js → package-b23f7b7f.js} +1 -1
  177. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-9b4b4153.js} +1 -1
  178. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-80b019d5.js} +1 -1
  179. package/dist/cjs/{stepper-states-7d2f2235.js → stepper-states-cb2339c3.js} +1 -1
  180. package/dist/cjs/{string-helper-f9184277.js → string-helper-3212f4ea.js} +1 -1
  181. package/dist/cjs/{tooltip-helper-410ac258.js → tooltip-helper-4ddec3b4.js} +6 -6
  182. package/dist/cjs/{validators-910556c5.js → validators-e2155072.js} +1 -1
  183. package/dist/collection/collection-manifest.json +2 -0
  184. package/dist/collection/components/atoms/caption/caption.js +195 -0
  185. package/dist/collection/components/atoms/label/label.js +48 -29
  186. package/dist/collection/components/molecules/checkbox/checkbox.css +0 -89
  187. package/dist/collection/components/molecules/input/input.css +0 -89
  188. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +0 -89
  189. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  190. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
  191. package/dist/collection/components/{atoms/label/label.css → molecules/number-input/number-input.css} +12 -33
  192. package/dist/collection/components/molecules/number-input/number-input.js +425 -0
  193. package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
  194. package/dist/collection/components/molecules/search/search.css +0 -89
  195. package/dist/collection/components/molecules/switch/switch.css +1 -89
  196. package/dist/collection/components/molecules/textarea/textarea.css +0 -89
  197. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -89
  198. package/dist/collection/components/organism/list/list.css +2 -89
  199. package/dist/collection/components/organism/list/list.js +83 -15
  200. package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -89
  201. package/dist/collection/components/third-parts/colorful/colorful.css +0 -89
  202. package/dist/collection/components/third-parts/rc-picker/date.js +7 -5
  203. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1 -376
  204. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +3 -16
  205. package/dist/collection/helper/generate.js +14 -0
  206. package/dist/collection/models/bcm.js +28 -28
  207. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +203 -0
  208. package/dist/collection/stories/ui-library/components/date/argTypes_date.js +47 -0
  209. package/dist/collection/stories/ui-library/components/date/argTypes_datetime.js +109 -0
  210. package/dist/collection/stories/ui-library/components/date/argTypes_time.js +91 -0
  211. package/dist/collection/templates/caption-template.js +15 -11
  212. package/dist/collection/templates/label-template.js +9 -7
  213. package/dist/collection/templates/list-item-template.js +3 -2
  214. package/dist/collection/templates/list-template.js +2 -2
  215. package/dist/components/bcm-caption.d.ts +11 -0
  216. package/dist/components/bcm-caption.js +64 -0
  217. package/dist/components/bcm-checkbox-group.js +7 -8
  218. package/dist/components/bcm-chip-group.js +1 -2
  219. package/dist/components/bcm-date.js +26 -7
  220. package/dist/components/bcm-input-dropdown.js +3 -3
  221. package/dist/components/bcm-number-input.d.ts +11 -0
  222. package/dist/components/bcm-number-input.js +157 -0
  223. package/dist/components/bcm-switch.js +1 -1
  224. package/dist/components/bcm.js +28 -28
  225. package/dist/components/caption-template.js +15 -17
  226. package/dist/components/checkbox.js +1 -1
  227. package/dist/components/colorful.js +1 -1
  228. package/dist/components/datetime-picker.js +2 -3
  229. package/dist/components/generate.js +15 -1
  230. package/dist/components/index.d.ts +2 -0
  231. package/dist/components/index.js +2 -0
  232. package/dist/components/input.js +1 -1
  233. package/dist/components/label.js +46 -20
  234. package/dist/components/list.js +49 -18
  235. package/dist/components/old-input.js +1 -1
  236. package/dist/components/rc-picker.js +4 -17
  237. package/dist/components/search.js +1 -1
  238. package/dist/components/textarea.js +1 -1
  239. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
  240. package/dist/esm/{bcm-a50d55ba.js → bcm-0f9cc27c.js} +28 -28
  241. package/dist/esm/bcm-accordion.entry.js +5 -5
  242. package/dist/esm/bcm-alert.entry.js +9 -9
  243. package/dist/esm/bcm-attendance.entry.js +5 -5
  244. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  245. package/dist/esm/bcm-avatar_2.entry.js +12 -12
  246. package/dist/esm/bcm-box.entry.js +1 -1
  247. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  248. package/dist/esm/bcm-button-group.entry.js +8 -8
  249. package/dist/esm/bcm-button_15.entry.js +37814 -0
  250. package/dist/esm/bcm-caption.entry.js +43 -0
  251. package/dist/esm/bcm-card.entry.js +11 -11
  252. package/dist/esm/bcm-checkbox-group.entry.js +17 -19
  253. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
  254. package/dist/esm/bcm-chip-group.entry.js +15 -16
  255. package/dist/esm/bcm-chip.entry.js +8 -8
  256. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  257. package/dist/esm/bcm-collapse.entry.js +6 -6
  258. package/dist/esm/bcm-color-input.entry.js +12 -12
  259. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  260. package/dist/esm/bcm-content.entry.js +1 -1
  261. package/dist/esm/bcm-date-picker.entry.js +9 -9
  262. package/dist/esm/bcm-datetime-picker.entry.js +14 -15
  263. package/dist/esm/bcm-default.entry.js +5 -5
  264. package/dist/esm/bcm-drawer.entry.js +13 -13
  265. package/dist/esm/bcm-dropdown.entry.js +9 -9
  266. package/dist/esm/bcm-error-layout.entry.js +3 -3
  267. package/dist/esm/bcm-expansion-panel.entry.js +10 -10
  268. package/dist/esm/bcm-form-2.entry.js +8 -8
  269. package/dist/esm/bcm-form-group.entry.js +1 -1
  270. package/dist/esm/bcm-input-custom.entry.js +6 -6
  271. package/dist/esm/bcm-input-dropdown.entry.js +17 -17
  272. package/dist/esm/bcm-item.entry.js +9 -9
  273. package/dist/esm/bcm-items.entry.js +7 -7
  274. package/dist/esm/bcm-link.entry.js +4 -4
  275. package/dist/esm/bcm-menu.entry.js +16 -16
  276. package/dist/esm/bcm-message.entry.js +3 -3
  277. package/dist/esm/bcm-modal-2-footer.entry.js +13 -13
  278. package/dist/esm/bcm-modal-2-header.entry.js +12 -12
  279. package/dist/esm/bcm-modal-2.entry.js +13 -13
  280. package/dist/esm/bcm-modal.entry.js +9 -9
  281. package/dist/esm/bcm-notification.entry.js +3 -3
  282. package/dist/esm/bcm-number-input.entry.js +105 -0
  283. package/dist/esm/bcm-old-input.entry.js +6 -6
  284. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  285. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  286. package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
  287. package/dist/esm/bcm-popconfirm.entry.js +7 -7
  288. package/dist/esm/bcm-popover.entry.js +13 -13
  289. package/dist/esm/bcm-progress.entry.js +9 -9
  290. package/dist/esm/bcm-radio-group.entry.js +15 -15
  291. package/dist/esm/bcm-radio.entry.js +13 -13
  292. package/dist/esm/bcm-range.entry.js +8 -8
  293. package/dist/esm/bcm-result.entry.js +3 -3
  294. package/dist/esm/bcm-select-group.entry.js +3 -3
  295. package/dist/esm/bcm-select-option.entry.js +3 -3
  296. package/dist/esm/bcm-select.entry.js +6 -6
  297. package/dist/esm/bcm-shortcut.entry.js +13 -13
  298. package/dist/esm/bcm-skeleton.entry.js +12 -12
  299. package/dist/esm/bcm-step.entry.js +8 -8
  300. package/dist/esm/bcm-stepper.entry.js +15 -15
  301. package/dist/esm/bcm-tab-group.entry.js +12 -12
  302. package/dist/esm/bcm-tab-item-header.entry.js +13 -13
  303. package/dist/esm/bcm-tab-item.entry.js +12 -12
  304. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  305. package/dist/esm/bcm-tab.entry.js +3 -3
  306. package/dist/esm/bcm-table.entry.js +13 -13
  307. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  308. package/dist/esm/bcm-tabs.entry.js +4 -4
  309. package/dist/esm/bcm-tag.entry.js +9 -9
  310. package/dist/esm/bcm-text.entry.js +9 -9
  311. package/dist/esm/bcm-textarea.entry.js +12 -12
  312. package/dist/esm/bcm-time-picker.entry.js +9 -9
  313. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  314. package/dist/esm/bcm-timeline.entry.js +3 -3
  315. package/dist/esm/bcm-toast.entry.js +9 -9
  316. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  317. package/dist/esm/bcm-typography.entry.js +17 -0
  318. package/dist/esm/bromcom-ui.js +5 -5
  319. package/dist/esm/caption-template-0c32ce16.js +30 -0
  320. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-845ba523.js} +2 -2
  321. package/dist/esm/{colors-e1c31f79.js → colors-ebea297f.js} +1 -1
  322. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  323. package/dist/esm/{floating-ui-3f4394da.js → floating-ui-a4e67246.js} +1 -1
  324. package/dist/esm/{generate-7d1e216b.js → generate-80f589b2.js} +16 -2
  325. package/dist/esm/{global-34d95eec.js → global-9afe304c.js} +2 -2
  326. package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
  327. package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
  328. package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
  329. package/dist/esm/{input-template-1df1e8d3.js → input-template-a5d07ba6.js} +4 -4
  330. package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
  331. package/dist/esm/{json-parse-decarator-19a0db7a.js → json-parse-decarator-5195f510.js} +2 -2
  332. package/dist/esm/label-template-ad2e8119.js +25 -0
  333. package/dist/esm/loader.js +5 -5
  334. package/dist/esm/{number-helper-a5eab393.js → number-helper-aeb5881f.js} +1 -1
  335. package/dist/esm/old-bcm-popover-box.entry.js +13 -13
  336. package/dist/esm/old-bcm-popover.entry.js +7 -7
  337. package/dist/esm/{package-e0577fef.js → package-5e39e390.js} +1 -1
  338. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-279ce860.js} +1 -1
  339. package/dist/esm/{slot-template-08ed1fe4.js → slot-template-9234df88.js} +2 -2
  340. package/dist/esm/{stepper-states-10d7b726.js → stepper-states-97a648ff.js} +3 -3
  341. package/dist/esm/{string-helper-85990695.js → string-helper-8f5da9ec.js} +2 -2
  342. package/dist/esm/{tooltip-helper-59b661f8.js → tooltip-helper-d339c58a.js} +9 -9
  343. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  344. package/dist/esm/{validators-7979c137.js → validators-b5e106d5.js} +1 -1
  345. package/dist/types/components/atoms/caption/caption.d.ts +14 -0
  346. package/dist/types/components/atoms/label/label.d.ts +3 -3
  347. package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
  348. package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
  349. package/dist/types/components/organism/list/list.d.ts +5 -1
  350. package/dist/types/components.d.ts +90 -7
  351. package/dist/types/helper/generate.d.ts +3 -0
  352. package/dist/types/models/bcm.d.ts +3 -0
  353. package/dist/types/templates/caption-template.d.ts +1 -1
  354. package/dist/types/templates/label-template.d.ts +2 -1
  355. package/dist/types/templates/list-template.d.ts +1 -0
  356. package/package.json +2 -2
  357. package/dist/bromcom-ui/p-036877be.entry.js +0 -5
  358. package/dist/bromcom-ui/p-0d2b8bc4.entry.js +0 -5
  359. package/dist/bromcom-ui/p-1daf0fe1.entry.js +0 -5
  360. package/dist/bromcom-ui/p-2a5d176d.js +0 -5
  361. package/dist/bromcom-ui/p-2cbda5aa.entry.js +0 -5
  362. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  363. package/dist/bromcom-ui/p-32df2233.js +0 -5
  364. package/dist/bromcom-ui/p-3ccb15ef.entry.js +0 -5
  365. package/dist/bromcom-ui/p-4213ba24.js +0 -5
  366. package/dist/bromcom-ui/p-43598b88.entry.js +0 -5
  367. package/dist/bromcom-ui/p-4a7c2381.entry.js +0 -5
  368. package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
  369. package/dist/bromcom-ui/p-64ddda1d.entry.js +0 -5
  370. package/dist/bromcom-ui/p-6d0a02d7.entry.js +0 -5
  371. package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
  372. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  373. package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
  374. package/dist/bromcom-ui/p-7a4cc259.js +0 -5
  375. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  376. package/dist/bromcom-ui/p-8291e20e.js +0 -5
  377. package/dist/bromcom-ui/p-82a5033e.js +0 -5
  378. package/dist/bromcom-ui/p-85d8092e.entry.js +0 -5
  379. package/dist/bromcom-ui/p-8fbc35e7.entry.js +0 -5
  380. package/dist/bromcom-ui/p-903cbe6a.entry.js +0 -5
  381. package/dist/bromcom-ui/p-9339510a.entry.js +0 -5
  382. package/dist/bromcom-ui/p-94a8408e.entry.js +0 -5
  383. package/dist/bromcom-ui/p-a0909a04.entry.js +0 -5
  384. package/dist/bromcom-ui/p-b1a70ec2.entry.js +0 -5
  385. package/dist/bromcom-ui/p-ba315064.entry.js +0 -5
  386. package/dist/bromcom-ui/p-bb739bf8.entry.js +0 -5
  387. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  388. package/dist/bromcom-ui/p-ec90b2c7.entry.js +0 -5
  389. package/dist/bromcom-ui/p-fce1d13c.entry.js +0 -5
  390. package/dist/bromcom-ui/p-ff5acf88.entry.js +0 -5
  391. package/dist/cjs/bcm-button.cjs.entry.js +0 -372
  392. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  393. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -17624
  394. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  395. package/dist/cjs/bcm-form.cjs.entry.js +0 -489
  396. package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
  397. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -126
  398. package/dist/cjs/bcm-linked.cjs.entry.js +0 -219
  399. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2516
  400. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9404
  401. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  402. package/dist/cjs/caption-template-81dbc490.js +0 -34
  403. package/dist/cjs/index-3d67f613.js +0 -1610
  404. package/dist/cjs/index-e05a7c6f.js +0 -545
  405. package/dist/cjs/label-template-d9bee58a.js +0 -23
  406. package/dist/cjs/moment-d06b012f.js +0 -4601
  407. package/dist/components/label-template.js +0 -21
  408. package/dist/esm/bcm-button.entry.js +0 -368
  409. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  410. package/dist/esm/bcm-colorful_2.entry.js +0 -17619
  411. package/dist/esm/bcm-date.entry.js +0 -178
  412. package/dist/esm/bcm-form.entry.js +0 -485
  413. package/dist/esm/bcm-icon.entry.js +0 -35
  414. package/dist/esm/bcm-label_2.entry.js +0 -121
  415. package/dist/esm/bcm-linked.entry.js +0 -215
  416. package/dist/esm/bcm-list_3.entry.js +0 -2510
  417. package/dist/esm/bcm-rc-picker.entry.js +0 -9400
  418. package/dist/esm/bcm-switch.entry.js +0 -147
  419. package/dist/esm/caption-template-a1a968fd.js +0 -32
  420. package/dist/esm/index-a6d9d0af.js +0 -541
  421. package/dist/esm/index-c4568336.js +0 -1594
  422. package/dist/esm/label-template-639fcd41.js +0 -21
  423. package/dist/esm/moment-15cd9198.js +0 -4598
@@ -0,0 +1,64 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+ import { B as Bcm } from './bcm.js';
7
+ import './string-helper.js';
8
+ import { C as CaptionTemplate } from './caption-template.js';
9
+ import './index2.js';
10
+ import './types.js';
11
+ import './color-helper.js';
12
+ import './validators.js';
13
+ import './generate.js';
14
+ import './number-helper.js';
15
+ import './element-dragger.js';
16
+ import './types2.js';
17
+
18
+ const BcmCaption$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
+ constructor() {
20
+ super();
21
+ this.__registerHost();
22
+ this.noCaption = false;
23
+ this.captionType = Bcm.Status.default;
24
+ this.captionClasses = undefined;
25
+ this.caption = undefined;
26
+ this.captionError = undefined;
27
+ this.customErrorMessage = undefined;
28
+ this.size = Bcm.Size.medium;
29
+ this.maxLength = undefined;
30
+ this.value = undefined;
31
+ }
32
+ render() {
33
+ const { noCaption, captionType, captionClasses, caption, captionError, customErrorMessage, size, maxLength, value } = this;
34
+ return (h(Host, { class: "tw-block" }, h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionClasses: captionClasses, caption: caption, captionError: captionError, customErrorMessage: customErrorMessage, size: size, maxLength: maxLength, value: value })));
35
+ }
36
+ }, [0, "bcm-caption", {
37
+ "noCaption": [4, "no-caption"],
38
+ "captionType": [1, "caption-type"],
39
+ "captionClasses": [8, "caption-classes"],
40
+ "caption": [1],
41
+ "captionError": [1, "caption-error"],
42
+ "customErrorMessage": [1, "custom-error-message"],
43
+ "size": [1],
44
+ "maxLength": [8, "max-length"],
45
+ "value": [8]
46
+ }]);
47
+ function defineCustomElement$1() {
48
+ if (typeof customElements === "undefined") {
49
+ return;
50
+ }
51
+ const components = ["bcm-caption"];
52
+ components.forEach(tagName => { switch (tagName) {
53
+ case "bcm-caption":
54
+ if (!customElements.get(tagName)) {
55
+ customElements.define(tagName, BcmCaption$1);
56
+ }
57
+ break;
58
+ } });
59
+ }
60
+
61
+ const BcmCaption = BcmCaption$1;
62
+ const defineCustomElement = defineCustomElement$1;
63
+
64
+ export { BcmCaption, defineCustomElement };
@@ -8,13 +8,18 @@ import { G as Generate, s as snq } from './generate.js';
8
8
  import { B as Bcm } from './bcm.js';
9
9
  import { d as delay, g as getChildElements } from './utils.js';
10
10
  import { c as createStore } from './index4.js';
11
- import { L as LabelTemplate } from './label-template.js';
11
+ import { L as LabelTemplate, d as defineCustomElement$3 } from './label.js';
12
12
  import { I as IsLoad } from './is-load-decorator.js';
13
13
  import { d as defineCustomElement$5 } from './checkbox.js';
14
14
  import { d as defineCustomElement$4 } from './icon.js';
15
- import { d as defineCustomElement$3 } from './label.js';
16
15
  import { d as defineCustomElement$2 } from './tooltip.js';
17
16
 
17
+ const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
18
+ return (h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
19
+ return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, readonly: checkbox.readonly, required: checkbox.required, noCaption: checkbox.noCaption, "no-margin": true, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && !checkbox.readonly && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
20
+ })));
21
+ };
22
+
18
23
  const { state } = createStore({
19
24
  group: new Map(),
20
25
  allChecked: true,
@@ -208,12 +213,6 @@ const checkBoxGroupState = {
208
213
  changeIndeterminate,
209
214
  };
210
215
 
211
- const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
212
- return (h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
213
- return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, readonly: checkbox.readonly, required: checkbox.required, noCaption: checkbox.noCaption, "no-margin": true, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && !checkbox.readonly && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
214
- })));
215
- };
216
-
217
216
  const groupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}";
218
217
 
219
218
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -13,13 +13,12 @@ import { a as Bcm } from './bcm.js';
13
13
  import { C as CaptionTemplate } from './caption-template.js';
14
14
  import { c as classnames } from './index2.js';
15
15
  import './types.js';
16
- import { L as LabelTemplate } from './label-template.js';
16
+ import { L as LabelTemplate, d as defineCustomElement$6 } from './label.js';
17
17
  import './types2.js';
18
18
  import { d as defineCustomElement$a } from './avatar.js';
19
19
  import { d as defineCustomElement$9 } from './badge.js';
20
20
  import { d as defineCustomElement$8 } from './chip.js';
21
21
  import { d as defineCustomElement$7 } from './icon.js';
22
- import { d as defineCustomElement$6 } from './label.js';
23
22
  import { d as defineCustomElement$5 } from './list.js';
24
23
  import { d as defineCustomElement$4 } from './rc-overflow.js';
25
24
  import { d as defineCustomElement$3 } from './search.js';
@@ -14,9 +14,11 @@ import { a as Bcm } from './bcm.js';
14
14
  import { C as CaptionTemplate } from './caption-template.js';
15
15
  import { c as classnames } from './index2.js';
16
16
  import './types.js';
17
- import { L as LabelTemplate } from './label-template.js';
18
17
  import './types2.js';
19
- import { h as hooks, d as defineCustomElement$2 } from './rc-picker.js';
18
+ import { h as hooks, d as defineCustomElement$3 } from './rc-picker.js';
19
+ import { d as defineCustomElement$5 } from './icon.js';
20
+ import { d as defineCustomElement$4 } from './label.js';
21
+ import { d as defineCustomElement$2 } from './tooltip.js';
20
22
 
21
23
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
24
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -40,13 +42,15 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
40
42
  // type a göre format belirleme işlemi
41
43
  this.getFormat = () => {
42
44
  if (!this.format) {
45
+ const hourFormat = this.use12Hours ? "hh" : "HH";
46
+ const timeFormat = `${this.showSecond ? `${hourFormat}:mm:ss` : this.showMinute ? `${hourFormat}:mm` : `${hourFormat}`}${this.use12Hours ? " a" : ""}`;
43
47
  switch (this.type) {
44
48
  case "time":
45
- return this.showSecond ? "HH:mm:ss" : this.showMinute ? "HH:mm" : "HH";
49
+ return `${timeFormat}`;
46
50
  case "date":
47
51
  return "DD/MM/YYYY";
48
52
  case "datetime":
49
- return this.showSecond ? "DD/MM/YYYY HH:mm:ss" : this.showMinute ? "DD/MM/YYYY HH:mm" : "DD/MM/YYYY HH";
53
+ return `DD/MM/YYYY ${timeFormat}`;
50
54
  case "week":
51
55
  return "YYYY-wo";
52
56
  case "month":
@@ -161,7 +165,7 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
161
165
  return (h(Host, { class: classnames("bcm-ui-element bcm-ui-input", "tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col", {
162
166
  "tw-max-w-[256px]": !this.fullWidth,
163
167
  "tw-mb-2": !this.noMargin,
164
- }) }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", class: classnames("w-full tw-flex"), onBcmRCPickerChange: e => this.onChange(e), disabled: this.disabled, clearable: this.clearable, size: size, placeholder: this.placeholder, error: this.captionType === "error", type: this.type, format: this.getFormat(), range: this.range, showToday: this.showToday, disabledDates: this.disabledDates, showTime: this.showTime, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, hourStep: this.hourStep, minuteStep: this.minuteStep, secondStep: this.secondStep, hideDisabledOptions: this.hideDisabledOptions, disabledTime: this.disabledTime }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
168
+ }) }, label && h("bcm-label", { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", class: classnames("w-full tw-flex"), onBcmRCPickerChange: e => this.onChange(e), disabled: this.disabled, clearable: this.clearable, size: size, placeholder: this.placeholder, error: this.captionType === "error", type: this.type, format: this.getFormat(), range: this.range, showToday: this.showToday, disabledDates: this.disabledDates, showTime: this.showTime, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, hourStep: this.hourStep, minuteStep: this.minuteStep, secondStep: this.secondStep, hideDisabledOptions: this.hideDisabledOptions, disabledTime: this.disabledTime }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
165
169
  }
166
170
  get el() { return this; }
167
171
  }, [0, "bcm-date", {
@@ -188,7 +192,7 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
188
192
  "showHour": [4, "show-hour"],
189
193
  "showMinute": [4, "show-minute"],
190
194
  "showSecond": [4, "show-second"],
191
- "use12Hours": [4, "use-1-2-hours"],
195
+ "use12Hours": [4, "use-12-hours"],
192
196
  "hourStep": [2, "hour-step"],
193
197
  "minuteStep": [2, "minute-step"],
194
198
  "secondStep": [2, "second-step"],
@@ -211,14 +215,29 @@ function defineCustomElement$1() {
211
215
  if (typeof customElements === "undefined") {
212
216
  return;
213
217
  }
214
- const components = ["bcm-date", "bcm-rc-picker"];
218
+ const components = ["bcm-date", "bcm-icon", "bcm-label", "bcm-rc-picker", "bcm-tooltip"];
215
219
  components.forEach(tagName => { switch (tagName) {
216
220
  case "bcm-date":
217
221
  if (!customElements.get(tagName)) {
218
222
  customElements.define(tagName, BcmDate$1);
219
223
  }
220
224
  break;
225
+ case "bcm-icon":
226
+ if (!customElements.get(tagName)) {
227
+ defineCustomElement$5();
228
+ }
229
+ break;
230
+ case "bcm-label":
231
+ if (!customElements.get(tagName)) {
232
+ defineCustomElement$4();
233
+ }
234
+ break;
221
235
  case "bcm-rc-picker":
236
+ if (!customElements.get(tagName)) {
237
+ defineCustomElement$3();
238
+ }
239
+ break;
240
+ case "bcm-tooltip":
222
241
  if (!customElements.get(tagName)) {
223
242
  defineCustomElement$2();
224
243
  }
@@ -43,7 +43,7 @@ const inputDropdownStyle = ce({
43
43
  menuItem: "tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",
44
44
  selectedItem: "tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",
45
45
  disabledItem: "tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",
46
- commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2",
46
+ commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2",
47
47
  },
48
48
  variants: {
49
49
  size: {
@@ -93,7 +93,7 @@ const inputDropdownStyle = ce({
93
93
  },
94
94
  });
95
95
 
96
- const inputDropdownCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}";
96
+ const inputDropdownCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}";
97
97
 
98
98
  const BcmInputDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
99
99
  constructor() {
@@ -287,7 +287,7 @@ const BcmInputDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
287
287
  };
288
288
  const CommentTemplate = () => {
289
289
  var _a, _b, _c;
290
- return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, autocomplete: false, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
290
+ return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
291
291
  };
292
292
  return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, h("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), h("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, h(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
293
293
  var _a, _b;
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BcmNumberInput extends Components.BcmNumberInput, HTMLElement {}
4
+ export const BcmNumberInput: {
5
+ prototype: BcmNumberInput;
6
+ new (): BcmNumberInput;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,157 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+ import './color-helper.js';
7
+ import './validators.js';
8
+ import { G as Generate } from './generate.js';
9
+ import './number-helper.js';
10
+ import './string-helper.js';
11
+ import './element-dragger.js';
12
+ import { a as Bcm } from './bcm.js';
13
+ import { C as CaptionTemplate } from './caption-template.js';
14
+ import './index2.js';
15
+ import './types.js';
16
+ import './types2.js';
17
+ import { c as ce } from './index5.js';
18
+ import { d as defineCustomElement$4 } from './icon.js';
19
+ import { d as defineCustomElement$3 } from './label.js';
20
+ import { d as defineCustomElement$2 } from './tooltip.js';
21
+
22
+ const numberInputStyle = ce({
23
+ slots: {
24
+ host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
25
+ container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
26
+ inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
27
+ input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
28
+ caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
29
+ caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
30
+ slotIcon: "tw-text-slate-500",
31
+ },
32
+ variants: {
33
+ size: {
34
+ small: {
35
+ host: "tw-gap-0.5 tw-text-xs",
36
+ slotIcon: "tw-text-[10px]",
37
+ inputContainer: "tw-py-[2px]",
38
+ caretIcon: "tw-text-[10px]",
39
+ },
40
+ medium: {
41
+ host: "tw-gap-1 tw-text-base",
42
+ slotIcon: "tw-text-xs",
43
+ inputContainer: "tw-py-[5px]",
44
+ },
45
+ large: {
46
+ host: "tw-gap-2 tw-text-base",
47
+ slotIcon: "tw-text-[14px]",
48
+ inputContainer: "tw-py-2",
49
+ },
50
+ },
51
+ focus: {
52
+ true: {
53
+ container: "tw-ring-1 tw-ring-blue-600",
54
+ input: "tw-text-slate-700",
55
+ },
56
+ },
57
+ },
58
+ defaultVariants: {
59
+ size: "medium",
60
+ },
61
+ });
62
+
63
+ const numberInputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");\n.size-1 {\n font-size: 12px;\n line-height: 20px;\n}\n\n.size-2 {\n font-size: 14px;\n line-height: 22px;\n}\n\n.size-3 {\n font-size: 16px;\n line-height: 24px;\n}\n\n.size-4 {\n font-size: 20px;\n line-height: 28px;\n}\n\n.size-5 {\n font-size: 24px;\n line-height: 32px;\n}\n\n.size-6 {\n font-size: 30px;\n line-height: 38px;\n}\n\n.size-7 {\n font-size: 38px;\n line-height: 46px;\n}\n\n.size-8 {\n font-size: 46px;\n line-height: 54px;\n}\n\n.size-9 {\n font-size: 56px;\n line-height: 64px;\n}\n\n.weight-regular {\n font-weight: 400;\n}\n\n.weight-semibold {\n font-weight: 500;\n}\n\n/**\n * Generator\n */\n.input-size-large {\n height: 40px;\n}\n\n.input-size-medium {\n height: 32px;\n}\n\n.input-size-small {\n height: 24px;\n}\n\n.resize-none textarea {\n resize: none;\n}\n\n.resize-vertical textarea {\n resize: vertical;\n}\n\n.resize-auto textarea {\n height: auto;\n resize: none;\n}\n\n.textarea-size-large {\n padding: 4px 0 0 4px;\n min-height: 40px;\n}\n.textarea-size-large .bcm-input-element {\n min-height: calc((40px - 8px) + 2px);\n}\n.textarea-size-large .input-clear-button {\n height: calc( 40px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-medium {\n padding: 4px 0 0 4px;\n min-height: 32px;\n}\n.textarea-size-medium .bcm-input-element {\n min-height: calc((32px - 8px) + 2px);\n}\n.textarea-size-medium .input-clear-button {\n height: calc( 32px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-small {\n padding: 0px 0 0 4px;\n min-height: 24px;\n}\n.textarea-size-small .bcm-input-element {\n min-height: calc((24px - 8px) + 2px);\n}\n.textarea-size-small .input-clear-button {\n height: calc( 24px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n@layer base {\n .bcm-number-input input[type=number]::-webkit-outer-spin-button,\n.bcm-number-input input[type=number]::-webkit-inner-spin-button,\n.bcm-number-input input[type=number] {\n -webkit-appearance: none;\n padding: 0px;\n margin: 0px;\n outline: none;\n border: 0px;\n vertical-align: baseline;\n -moz-appearance: textfield !important;\n }\n}";
64
+
65
+ const NumberInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
66
+ constructor() {
67
+ super();
68
+ this.__registerHost();
69
+ this.blockInvalidChar = e => {
70
+ return ["e", "E", "+", "-"].includes(e.key) && e.preventDefault();
71
+ };
72
+ this._id = Generate.UID();
73
+ this.size = Bcm.Size.medium;
74
+ this.min = 0;
75
+ this.max = 100;
76
+ this.step = 1;
77
+ this.placeholder = undefined;
78
+ this.label = undefined;
79
+ this.tooltip = undefined;
80
+ this.value = 0;
81
+ this.disabled = false;
82
+ this.readonly = false;
83
+ this.required = false;
84
+ this.pattern = undefined;
85
+ this.caption = undefined;
86
+ this.noCaption = false;
87
+ this.captionType = Bcm.Status.default;
88
+ this.captionError = undefined;
89
+ this.customErrorMessage = undefined;
90
+ this.prefixIcon = undefined;
91
+ this.suffixIcon = undefined;
92
+ this.isFocus = false;
93
+ this.isError = false;
94
+ }
95
+ render() {
96
+ const { _id, value, min, max, step, tooltip, disabled, size, label, caption, captionType, required, noCaption, captionError, customErrorMessage, prefixIcon, suffixIcon, pattern } = this;
97
+ const { host, input, container, inputContainer, caretContainer, caretIcon, slotIcon } = numberInputStyle({ size, focus: this.isFocus });
98
+ return (h(Host, { class: host(), onClick: () => !disabled && this.nativeInput.focus() }, label && h("bcm-label", { tooltip: tooltip, "no-margin": true, type: captionType, value: label, required: required, htmlFor: _id }), h("div", { class: container() }, h("div", { class: inputContainer() }, prefixIcon && (h("span", { class: slotIcon() }, h("i", { class: prefixIcon }))), h("input", { type: "number", class: input(), min: min, max: max, step: step, value: value, inputmode: "numeric", pattern: pattern, ref: input => (this.nativeInput = input), onKeyPress: this.blockInvalidChar, onFocus: () => (this.isFocus = true), onBlur: () => (this.isFocus = false), onError: e => console.log(e), onErrorCapture: e => console.log(e) }), suffixIcon && (h("span", { class: slotIcon() }, h("i", { class: suffixIcon })))), h("div", { class: caretContainer() }, h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-up" })), h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-down" })))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
99
+ }
100
+ static get style() { return numberInputCss; }
101
+ }, [0, "bcm-number-input", {
102
+ "_id": [513, "id"],
103
+ "size": [1],
104
+ "min": [2],
105
+ "max": [2],
106
+ "step": [2],
107
+ "placeholder": [1],
108
+ "label": [1],
109
+ "tooltip": [1025],
110
+ "value": [1026],
111
+ "disabled": [4],
112
+ "readonly": [4],
113
+ "required": [4],
114
+ "pattern": [1025],
115
+ "caption": [1025],
116
+ "noCaption": [1028, "no-caption"],
117
+ "captionType": [1025, "caption-type"],
118
+ "captionError": [1025, "caption-error"],
119
+ "customErrorMessage": [1025, "custom-error-message"],
120
+ "prefixIcon": [1025, "prefix-icon"],
121
+ "suffixIcon": [1025, "suffix-icon"],
122
+ "isFocus": [32],
123
+ "isError": [32]
124
+ }]);
125
+ function defineCustomElement$1() {
126
+ if (typeof customElements === "undefined") {
127
+ return;
128
+ }
129
+ const components = ["bcm-number-input", "bcm-icon", "bcm-label", "bcm-tooltip"];
130
+ components.forEach(tagName => { switch (tagName) {
131
+ case "bcm-number-input":
132
+ if (!customElements.get(tagName)) {
133
+ customElements.define(tagName, NumberInput);
134
+ }
135
+ break;
136
+ case "bcm-icon":
137
+ if (!customElements.get(tagName)) {
138
+ defineCustomElement$4();
139
+ }
140
+ break;
141
+ case "bcm-label":
142
+ if (!customElements.get(tagName)) {
143
+ defineCustomElement$3();
144
+ }
145
+ break;
146
+ case "bcm-tooltip":
147
+ if (!customElements.get(tagName)) {
148
+ defineCustomElement$2();
149
+ }
150
+ break;
151
+ } });
152
+ }
153
+
154
+ const BcmNumberInput = NumberInput;
155
+ const defineCustomElement = defineCustomElement$1;
156
+
157
+ export { BcmNumberInput, defineCustomElement };
@@ -13,7 +13,7 @@ import { d as defineCustomElement$4 } from './icon.js';
13
13
  import { d as defineCustomElement$3 } from './label.js';
14
14
  import { d as defineCustomElement$2 } from './tooltip.js';
15
15
 
16
- const switchCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}";
16
+ const switchCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}";
17
17
 
18
18
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
19
19
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -379,34 +379,34 @@ var Bcm;
379
379
  KeyCode[KeyCode["a"] = 65] = "a";
380
380
  })(Bcm.KeyCode || (Bcm.KeyCode = {}));
381
381
  Bcm.FormErrorMessages = {
382
- "email": "Please enter a valid email address",
383
- "password": "Please enter a valid password",
384
- "url": "Please enter a valid URL",
385
- "phone": "Please enter a valid phone number",
386
- "search": "Please enter a valid search term",
387
- "number": "Please enter a valid number",
388
- "text": "Please enter a valid text",
389
- "required": "This field is required",
390
- "minlength": "Must be at least {0} chars long",
391
- "maxlength": "Must be at most {0} chars long",
392
- "betweenlength": "Must be between {0} and {1} chars long",
393
- "min": "This field must be at least {0}",
394
- "max": "This field must be at most {0}",
395
- "between": "This field must be between {0} and {1}",
396
- "pattern": "Please use a valid format",
397
- "date": "Please enter a valid date",
398
- "time": "Please enter a valid time",
399
- "datetime": "Please enter a valid date and time",
400
- "datetime-local": "Please enter a valid date and time",
401
- "month": "Please enter a valid month",
402
- "week": "Please enter a valid week",
403
- "color": "Please enter a valid color",
404
- "file": "Please enter a valid file",
405
- "range": "Please enter a valid range",
406
- "radio": "Please select a valid option",
407
- "checkbox": "Please select a valid option",
408
- "select": "Please select a valid option",
409
- "multiple": "Please select a valid option",
382
+ "email": "Please enter a valid email address.",
383
+ "password": "Please enter a valid password.",
384
+ "url": "Please enter a valid URL.",
385
+ "phone": "Please enter a valid phone number.",
386
+ "search": "Please enter a valid search term.",
387
+ "number": "Please enter a valid number.",
388
+ "text": "Please enter a valid text.",
389
+ "required": "This field is required.",
390
+ "minlength": "Must be at least {0} chars long.",
391
+ "maxlength": "Must be at most {0} chars long.",
392
+ "betweenlength": "Must be between {0} and {1} chars long.",
393
+ "min": "This field must be at least {0}.",
394
+ "max": "This field must be at most {0}.",
395
+ "between": "This field must be between {0} and {1}.",
396
+ "pattern": "Please use a valid format.",
397
+ "date": "Please enter a valid date.",
398
+ "time": "Please enter a valid time.",
399
+ "datetime": "Please enter a valid date and time.",
400
+ "datetime-local": "Please enter a valid date and time.",
401
+ "month": "Please enter a valid month.",
402
+ "week": "Please enter a valid week.",
403
+ "color": "Please enter a valid color.",
404
+ "file": "Please enter a valid file.",
405
+ "range": "Please enter a valid range.",
406
+ "radio": "Please select a valid option.",
407
+ "checkbox": "Please select a valid option.",
408
+ "select": "Please select a valid option.",
409
+ "multiple": "Please select a valid option.",
410
410
  };
411
411
  (function (IndeterminateType) {
412
412
  IndeterminateType["uncheck"] = "uncheck";
@@ -5,25 +5,23 @@
5
5
  import { h } from '@stencil/core/internal/client';
6
6
  import { c as classnames } from './index2.js';
7
7
 
8
- const CaptionTemplate = ({ noCaption, captionType, captionClasses, caption, captionError, customErrorMessage, size,
8
+ const CaptionTemplate = ({ noCaption, captionType, caption, captionError, customErrorMessage, size,
9
9
  //textarea props
10
- maxLength, value }) => {
10
+ maxLength, value, }) => {
11
11
  size = size || "medium";
12
- const hostClasses = classnames('bcm-caption-area', 'bcm-caption-area__size-' + size);
13
- const classes = `bcm-caption-area__text`;
14
- const captionTextClass = `${classes} ${captionType} ${captionClasses}`;
15
- const countClasses = `${classes} default ${captionClasses}`;
16
- return ((noCaption == false || maxLength) && (h("div", { class: hostClasses },
17
- h("span", { class: captionTextClass }, captionType == "error"
18
- ? h("span", null,
19
- " ",
20
- customErrorMessage || captionError,
21
- " ")
22
- : caption && h("span", null,
23
- " ",
24
- caption,
25
- " ")),
26
- maxLength && h("span", { class: countClasses },
12
+ return ((noCaption == false || maxLength) && (h("div", { class: classnames("bcm-ui-element bcm-ui-feedback bcm-caption-area tw-mt-1 tw-min-h-[20px] tw-flex tw-flex-row tw-items-start tw-justify-between tw-font-normal", {
13
+ "tw-text-slate-500": !captionType || captionType == "default",
14
+ "tw-text-blue-600": captionType == "info",
15
+ "tw-text-emerald-600": captionType == "success",
16
+ "tw-text-amber-600": captionType == "warning",
17
+ "tw-text-red-600": captionType == "error",
18
+ }, {
19
+ "tw-text-1": size == "small",
20
+ "tw-text-2": size == "medium",
21
+ "tw-text-3": size == "large",
22
+ }) },
23
+ h("div", { class: "bcm-caption-area__text" }, captionType == "error" ? customErrorMessage || captionError : caption),
24
+ maxLength && h("div", { class: "bcm-caption-area__text tw-text-slate-500" },
27
25
  " ",
28
26
  `${(value === null || value === void 0 ? void 0 : value.length) || 0}/${maxLength}`,
29
27
  " "))));