bromcom-ui 2.9.0-rc.4 → 2.9.0-rc.6

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 (272) 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-cb344455.entry.js → p-0641597e.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-8c9d109c.entry.js → p-15758356.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-fc07ca8a.entry.js → p-16dd7db9.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-17264523.js +5 -0
  7. package/dist/bromcom-ui/p-17af6738.js +5 -0
  8. package/dist/bromcom-ui/{p-00d7bbed.js → p-184b7d3b.js} +1 -1
  9. package/dist/bromcom-ui/{p-5648b456.entry.js → p-1b1f4b44.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  11. package/dist/bromcom-ui/{p-224d392c.entry.js → p-1fbd8af5.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-3adc157d.entry.js → p-24b8154c.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-6478455c.entry.js → p-24d8e9d6.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-8ae4bdb2.entry.js → p-2afdec61.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-50c3df61.js → p-2b13dd48.js} +1 -1
  16. package/dist/bromcom-ui/p-2b88c7bb.entry.js +5 -0
  17. package/dist/bromcom-ui/p-2fc584c4.js +5 -0
  18. package/dist/bromcom-ui/{p-f48e5337.entry.js → p-31eabaf3.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-6a087ad5.js → p-3215d598.js} +1 -1
  20. package/dist/bromcom-ui/{p-15347028.entry.js → p-3baf677c.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  22. package/dist/bromcom-ui/p-459212eb.entry.js +5 -0
  23. package/dist/bromcom-ui/p-57f8802e.entry.js +5 -0
  24. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  25. package/dist/bromcom-ui/{p-4cd8a7c8.entry.js → p-5c3e9ac9.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-6cb648f0.entry.js → p-5c468c5b.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-70aa6e00.entry.js → p-6272ecb4.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-663766cf.entry.js +5 -0
  29. package/dist/bromcom-ui/p-6a5ac874.entry.js +13 -0
  30. package/dist/bromcom-ui/{p-6e9b23ed.entry.js → p-6b861832.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-30788121.entry.js → p-6c3e9e10.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-ba47106f.entry.js → p-7a394115.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-0d6623c0.entry.js → p-81b2dffb.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-891de348.entry.js +5 -0
  35. package/dist/bromcom-ui/{p-1647559e.entry.js → p-8bcfe3b3.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-fd7243a7.entry.js → p-8d7bbe30.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-c8695c8b.entry.js → p-8de9d6b6.entry.js} +1 -1
  38. package/dist/bromcom-ui/p-8fc8b4ff.entry.js +5 -0
  39. package/dist/bromcom-ui/{p-20aa2ba8.entry.js → p-9099a1bf.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-9773e744.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-08d4cd65.entry.js → p-a512ca45.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-18696519.entry.js → p-b10265d7.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-30a3320f.entry.js → p-b1c83bb8.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-afb4a0e7.entry.js → p-b26ded9b.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-159b67a7.entry.js → p-b45b54b5.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-9fff4f7d.entry.js → p-b47e4417.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-e12e563a.entry.js → p-c2cbb810.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-ea23f0aa.entry.js → p-c387f0fb.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-4ea7331b.entry.js → p-c3a91954.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-3992dd70.entry.js → p-ca6cd989.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-ccaabc2e.entry.js +5 -0
  52. package/dist/bromcom-ui/p-cf0ab7f0.entry.js +5 -0
  53. package/dist/bromcom-ui/{p-09c4a42a.entry.js → p-d37502f9.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-dbdb10d5.js +5 -0
  55. package/dist/bromcom-ui/p-dd422dd1.js +5 -0
  56. package/dist/bromcom-ui/{p-8d14232d.entry.js → p-dd43bcd9.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-50066349.entry.js → p-de850d57.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-28649759.entry.js → p-e0c60c5d.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-21783e29.entry.js → p-e520d2a2.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-119fc842.entry.js → p-e86e4968.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-8ce0f5f8.entry.js → p-eaad2239.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-dc9466d6.entry.js → p-ebee9f45.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-b321e86d.entry.js → p-ee4b8753.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-ee50f5e2.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-4e6292fd.entry.js → p-ee5da693.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-2df6dc86.entry.js → p-f0fa1c29.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-68abefd2.entry.js → p-f331e009.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-cf307549.entry.js → p-fe37e88f.entry.js} +1 -1
  69. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-avatar.cjs.entry.js +126 -0
  73. package/dist/cjs/bcm-badge_15.cjs.entry.js +1738 -0
  74. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +17 -17
  78. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  79. package/dist/cjs/{bcm-checkbox_2.cjs.entry.js → bcm-checkbox.cjs.entry.js} +2 -13
  80. package/dist/cjs/bcm-chip-group.cjs.entry.js +128 -0
  81. package/dist/cjs/bcm-chip.cjs.entry.js +90 -0
  82. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  84. package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-colorful.cjs.entry.js} +3 -6332
  85. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  86. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  89. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  91. package/dist/cjs/bcm-form.cjs.entry.js +488 -0
  92. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-input.cjs.entry.js +370 -0
  94. package/dist/cjs/bcm-label.cjs.entry.js +44 -0
  95. package/dist/cjs/bcm-list_3.cjs.entry.js +4025 -0
  96. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  97. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  98. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  100. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  103. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  106. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  107. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  109. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  111. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  114. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  115. package/dist/cjs/{color-helper-d6d2028b.js → color-helper-7ab15732.js} +27 -1
  116. package/dist/cjs/{generate-d246df02.js → generate-d3f8c970.js} +55 -5
  117. package/dist/cjs/index-906fb4e5.js +540 -0
  118. package/dist/cjs/index-b08b037a.js +52 -0
  119. package/dist/cjs/{input-template-22c31e2b.js → input-template-22725c68.js} +1 -1
  120. package/dist/cjs/{json-parse-decarator-bf157b28.js → json-parse-decarator-22c236ad.js} +1 -1
  121. package/dist/cjs/loader.cjs.js +1 -1
  122. package/dist/cjs/{number-helper-26df0c91.js → number-helper-66fe9479.js} +1 -1
  123. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  124. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  125. package/dist/cjs/{stepper-states-1a1a63cb.js → stepper-states-43daae37.js} +1 -1
  126. package/dist/cjs/{validators-095e7611.js → validators-aa39e3ec.js} +1 -1
  127. package/dist/collection/components/atoms/avatar/avatar.js +95 -80
  128. package/dist/collection/components/atoms/avatar/avatar.style.js +39 -0
  129. package/dist/collection/components/atoms/badge/badge.js +29 -90
  130. package/dist/collection/components/atoms/badge/badge.style.js +39 -0
  131. package/dist/collection/components/molecules/input/input.js +4 -4
  132. package/dist/collection/components/molecules/items/items.js +1 -1
  133. package/dist/collection/components/molecules/menu/menu.js +1 -0
  134. package/dist/collection/components/molecules/popover/popover.js +1 -1
  135. package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
  136. package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
  137. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  138. package/dist/collection/components/other/typography/typography.js +1 -1
  139. package/dist/collection/helper/color-helper.js +27 -1
  140. package/dist/collection/helper/generate.js +54 -4
  141. package/dist/collection/helper/popover-helper.js +13 -9
  142. package/dist/collection/helper/tooltip-helper.js +12 -4
  143. package/dist/components/avatar.js +91 -52
  144. package/dist/components/badge.js +109 -46
  145. package/dist/components/bcm-items.js +1 -1
  146. package/dist/components/bcm-popover.js +14 -10
  147. package/dist/components/bcm-tab-group.js +5 -1
  148. package/dist/components/bcm-tab-item-header.js +11 -26
  149. package/dist/components/color-helper.js +27 -1
  150. package/dist/components/generate.js +55 -5
  151. package/dist/components/input.js +4 -4
  152. package/dist/components/menu.js +1 -0
  153. package/dist/components/tooltip-helper.js +12 -4
  154. package/dist/components/tooltip.js +1 -1
  155. package/dist/components/typography.js +1 -1
  156. package/dist/esm/bcm-accordion.entry.js +1 -1
  157. package/dist/esm/bcm-alert.entry.js +1 -1
  158. package/dist/esm/bcm-attendance.entry.js +1 -1
  159. package/dist/esm/bcm-avatar.entry.js +122 -0
  160. package/dist/esm/bcm-badge_15.entry.js +1720 -0
  161. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  162. package/dist/esm/bcm-button-group.entry.js +1 -1
  163. package/dist/esm/bcm-card.entry.js +3 -3
  164. package/dist/esm/bcm-checkbox-group.entry.js +8 -8
  165. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  166. package/dist/esm/{bcm-checkbox_2.entry.js → bcm-checkbox.entry.js} +4 -14
  167. package/dist/esm/bcm-chip-group.entry.js +124 -0
  168. package/dist/esm/bcm-chip.entry.js +86 -0
  169. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  170. package/dist/esm/bcm-collapse.entry.js +1 -1
  171. package/dist/esm/bcm-color-input.entry.js +6 -6
  172. package/dist/esm/{bcm-avatar_15.entry.js → bcm-colorful.entry.js} +4 -6319
  173. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  174. package/dist/esm/bcm-date-picker.entry.js +2 -2
  175. package/dist/esm/bcm-datetime-picker.entry.js +3 -3
  176. package/dist/esm/bcm-default.entry.js +1 -1
  177. package/dist/esm/bcm-drawer.entry.js +6 -6
  178. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  179. package/dist/esm/bcm-form-2.entry.js +1 -1
  180. package/dist/esm/bcm-form.entry.js +484 -0
  181. package/dist/esm/bcm-input-custom.entry.js +1 -1
  182. package/dist/esm/bcm-input.entry.js +366 -0
  183. package/dist/esm/bcm-label.entry.js +40 -0
  184. package/dist/esm/bcm-list_3.entry.js +4019 -0
  185. package/dist/esm/bcm-modal-2-footer.entry.js +6 -6
  186. package/dist/esm/bcm-modal-2-header.entry.js +6 -6
  187. package/dist/esm/bcm-modal-2.entry.js +6 -6
  188. package/dist/esm/bcm-modal.entry.js +1 -1
  189. package/dist/esm/bcm-old-input.entry.js +1 -1
  190. package/dist/esm/bcm-old-tag_2.entry.js +1 -1
  191. package/dist/esm/bcm-popconfirm-box.entry.js +3 -3
  192. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  193. package/dist/esm/bcm-progress.entry.js +3 -3
  194. package/dist/esm/bcm-radio-group.entry.js +6 -6
  195. package/dist/esm/bcm-radio.entry.js +6 -6
  196. package/dist/esm/bcm-range.entry.js +2 -2
  197. package/dist/esm/bcm-select.entry.js +1 -1
  198. package/dist/esm/bcm-skeleton.entry.js +1 -1
  199. package/dist/esm/bcm-step.entry.js +2 -2
  200. package/dist/esm/bcm-stepper.entry.js +7 -7
  201. package/dist/esm/bcm-switch.entry.js +2 -2
  202. package/dist/esm/bcm-table.entry.js +1 -1
  203. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  204. package/dist/esm/bcm-tabs.entry.js +1 -1
  205. package/dist/esm/bcm-tag.entry.js +3 -3
  206. package/dist/esm/bcm-textarea.entry.js +3 -3
  207. package/dist/esm/bcm-time-picker.entry.js +2 -2
  208. package/dist/esm/bcm-toast.entry.js +2 -2
  209. package/dist/esm/bromcom-ui.js +1 -1
  210. package/dist/esm/{color-helper-e8ce23d7.js → color-helper-116755ed.js} +28 -2
  211. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  212. package/dist/esm/{generate-e7435a13.js → generate-786bd626.js} +55 -5
  213. package/dist/esm/index-6310a048.js +537 -0
  214. package/dist/esm/index-962dec74.js +50 -0
  215. package/dist/esm/{input-template-e1e850b5.js → input-template-88fba8d7.js} +1 -1
  216. package/dist/esm/{json-parse-decarator-2bcd4584.js → json-parse-decarator-e85e0fea.js} +1 -1
  217. package/dist/esm/loader.js +1 -1
  218. package/dist/esm/{number-helper-cb2563aa.js → number-helper-d9b73e76.js} +1 -1
  219. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  220. package/dist/esm/old-bcm-popover.entry.js +1 -1
  221. package/dist/esm/{stepper-states-29463262.js → stepper-states-026cdd66.js} +1 -1
  222. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  223. package/dist/esm/{validators-0a4134a4.js → validators-0b019b63.js} +1 -1
  224. package/dist/types/components/atoms/avatar/avatar.d.ts +8 -10
  225. package/dist/types/components/atoms/avatar/avatar.style.d.ts +5 -0
  226. package/dist/types/components/atoms/badge/badge.d.ts +3 -7
  227. package/dist/types/components/atoms/badge/badge.style.d.ts +4 -0
  228. package/dist/types/components.d.ts +11 -13
  229. package/dist/types/helper/color-helper.d.ts +22 -2
  230. package/dist/types/helper/generate.d.ts +21 -1
  231. package/dist/types/helper/popover-helper.d.ts +0 -5
  232. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  233. package/package.json +7 -4
  234. package/dist/bromcom-ui/p-0ab46a99.js +0 -5
  235. package/dist/bromcom-ui/p-0b0660a0.js +0 -5
  236. package/dist/bromcom-ui/p-1a3d281e.entry.js +0 -5
  237. package/dist/bromcom-ui/p-2b4677a8.entry.js +0 -5
  238. package/dist/bromcom-ui/p-3ae615ef.entry.js +0 -5
  239. package/dist/bromcom-ui/p-61c51804.entry.js +0 -5
  240. package/dist/bromcom-ui/p-632bbc11.entry.js +0 -5
  241. package/dist/bromcom-ui/p-6c34860e.entry.js +0 -5
  242. package/dist/bromcom-ui/p-843905c8.js +0 -5
  243. package/dist/bromcom-ui/p-92831a1d.js +0 -5
  244. package/dist/bromcom-ui/p-a9a9bf8f.js +0 -5
  245. package/dist/bromcom-ui/p-b17ba740.entry.js +0 -19
  246. package/dist/bromcom-ui/p-b8cfa9ab.entry.js +0 -5
  247. package/dist/bromcom-ui/p-c5de4c76.entry.js +0 -5
  248. package/dist/bromcom-ui/p-d832cf50.entry.js +0 -5
  249. package/dist/bromcom-ui/p-d888c814.entry.js +0 -5
  250. package/dist/bromcom-ui/p-fb96c1cd.entry.js +0 -5
  251. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -118
  252. package/dist/cjs/bcm-item.cjs.entry.js +0 -71
  253. package/dist/cjs/bcm-items.cjs.entry.js +0 -48
  254. package/dist/cjs/bcm-menu.cjs.entry.js +0 -149
  255. package/dist/cjs/bcm-popover.cjs.entry.js +0 -225
  256. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -205
  257. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -73
  258. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -90
  259. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  260. package/dist/cjs/tooltip-helper-c822010b.js +0 -150
  261. package/dist/collection/components/atoms/avatar/avatar.css +0 -198
  262. package/dist/collection/components/atoms/badge/badge.css +0 -231
  263. package/dist/esm/bcm-dropdown.entry.js +0 -114
  264. package/dist/esm/bcm-item.entry.js +0 -67
  265. package/dist/esm/bcm-items.entry.js +0 -44
  266. package/dist/esm/bcm-menu.entry.js +0 -145
  267. package/dist/esm/bcm-popover.entry.js +0 -221
  268. package/dist/esm/bcm-tab-group.entry.js +0 -201
  269. package/dist/esm/bcm-tab-item-header.entry.js +0 -69
  270. package/dist/esm/bcm-tab-item.entry.js +0 -86
  271. package/dist/esm/bcm-text.entry.js +0 -45
  272. package/dist/esm/tooltip-helper-f35d93d2.js +0 -148
@@ -0,0 +1,366 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-348b16ad.js';
6
+ import { G as Generate } from './generate-786bd626.js';
7
+ import { N as NumberHelper } from './number-helper-d9b73e76.js';
8
+ import { S as StringHelper } from './string-helper-6bd24967.js';
9
+ import { V as Validators } from './validators-0b019b63.js';
10
+ import { a as Bcm } from './bcm-9f50af9c.js';
11
+ import { C as CaptionTemplate } from './caption-template-34a1cb44.js';
12
+ import { I as InputTemplate } from './input-template-88fba8d7.js';
13
+ import { c as classnames } from './index-ed9652af.js';
14
+ import { d as delay } from './utils-b3338faf.js';
15
+ import { I as IsLoad } from './is-load-decorator-07d3502a.js';
16
+ import './colors-44c95e7e.js';
17
+ import './_commonjsHelpers-3016b722.js';
18
+ import './types-6f06fa1a.js';
19
+
20
+ const inputCss = "@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-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
21
+
22
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
+ r = Reflect.decorate(decorators, target, key, desc);
26
+ else
27
+ for (var i = decorators.length - 1; i >= 0; i--)
28
+ if (d = decorators[i])
29
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ };
32
+ const BcmInput = class {
33
+ constructor(hostRef) {
34
+ registerInstance(this, hostRef);
35
+ this.focus = createEvent(this, "bcm-focus", 7);
36
+ this.blur = createEvent(this, "bcm-blur", 7);
37
+ this.clear = createEvent(this, "bcm-clear", 7);
38
+ this.change = createEvent(this, "bcm-change", 7);
39
+ this.input = createEvent(this, "bcm-input", 7);
40
+ this.isBlur = false;
41
+ this._id = Generate.UID();
42
+ this._internal_id = Generate.UID();
43
+ this.value = '';
44
+ this.size = Bcm.Size.medium;
45
+ this.label = undefined;
46
+ this.pattern = undefined;
47
+ this.tooltip = undefined;
48
+ this.placeholder = undefined;
49
+ this.disabled = false;
50
+ this.readonly = false;
51
+ this.clearable = false;
52
+ this.autocomplete = false;
53
+ this.name = undefined;
54
+ this.type = Bcm.InputType.text;
55
+ this.hidden = false;
56
+ this.required = false;
57
+ this.fullWidth = false;
58
+ this.noDefaultIcon = undefined;
59
+ this.disableWatchValue = false // datetimepicker
60
+ ;
61
+ this.passwordToggle = false // type password
62
+ ;
63
+ this.maxLength = null;
64
+ this.unitPrefix = null;
65
+ this.unit = undefined;
66
+ this.decimal = true;
67
+ this.min = undefined;
68
+ this.max = undefined;
69
+ this.step = undefined;
70
+ this.caption = undefined;
71
+ this.noCaption = false;
72
+ this.captionType = Bcm.Status.default;
73
+ this.captionError = undefined;
74
+ this.customErrorMessage = undefined;
75
+ this._prefix = undefined;
76
+ this._suffix = undefined;
77
+ this.captionCache = undefined;
78
+ this.captionTypeCache = undefined;
79
+ this.inValid = false;
80
+ this.valueCache = '';
81
+ this.focused = false;
82
+ this.isPasswordVisible = false;
83
+ }
84
+ connectedCallback() {
85
+ this.valueCache = this.value;
86
+ this.captionCache = this.caption;
87
+ this.captionTypeCache = this.captionType;
88
+ }
89
+ componentWillRender() {
90
+ const { type, isBlur, value } = this;
91
+ if (value) {
92
+ this.value.length > 0 && (this.checkPattern());
93
+ switch (type) {
94
+ case "number":
95
+ {
96
+ !this.checkValid("number") && (this.validationRange());
97
+ }
98
+ break;
99
+ case "email":
100
+ {
101
+ isBlur && (this.checkValid("email"));
102
+ }
103
+ break;
104
+ case "tel":
105
+ {
106
+ isBlur && (this.checkValid("phone"));
107
+ }
108
+ break;
109
+ }
110
+ }
111
+ else {
112
+ !this.required && (this.resetCaption());
113
+ }
114
+ }
115
+ async onBcmFocus() {
116
+ this.inputElement.focus();
117
+ }
118
+ async onBcmBlur() {
119
+ this.inputElement.blur();
120
+ }
121
+ async onBcmSelect() {
122
+ this.inputElement.select();
123
+ }
124
+ async set(data) {
125
+ await this.setValue(data);
126
+ }
127
+ async get() {
128
+ return this.value || null;
129
+ }
130
+ async setValue(value) {
131
+ this.inputElement.value = value;
132
+ this.handleChange();
133
+ return value;
134
+ }
135
+ async setClear() {
136
+ this.inputElement.value = '';
137
+ this.value = '';
138
+ await delay(10);
139
+ return Promise.resolve();
140
+ }
141
+ async resetCaption() {
142
+ await delay(10);
143
+ this.caption = this.captionCache;
144
+ this.captionType = this.captionTypeCache;
145
+ this.captionError = null;
146
+ this.inValid = false;
147
+ await delay(10);
148
+ return Promise.resolve();
149
+ }
150
+ async getValue() {
151
+ return this.value;
152
+ }
153
+ watchValue(newValue) {
154
+ this.inputElement.value = newValue;
155
+ if (!this.disableWatchValue && this.type != "number") {
156
+ this.handleChange();
157
+ }
158
+ }
159
+ listenKeyDown(e) {
160
+ if (!this.disabled && !this.readonly) {
161
+ this.onBcmFocus();
162
+ if (this.type == "number") {
163
+ var which = e.which || 0;
164
+ var key = e.key;
165
+ if (which == 38) { // up arrow
166
+ e.preventDefault(),
167
+ this.stepUpOrDown('up');
168
+ }
169
+ if (which == 40) { // down arrow
170
+ e.preventDefault(),
171
+ this.stepUpOrDown('down');
172
+ }
173
+ if ((which == 190 || which == 110 || key == ".") && this.value.indexOf(".") > -1) { //.
174
+ e.preventDefault();
175
+ }
176
+ if ((which == 189 || which == 109 || key == "-")) { //-
177
+ if (this.value.charAt(0) == '-' || this.value.indexOf("-") > -1) {
178
+ e.preventDefault();
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ handleFocus() {
185
+ this.focused = true;
186
+ this.focus.emit();
187
+ this.whatchHasFocus();
188
+ }
189
+ handleBlur() {
190
+ this.focused = false;
191
+ this.isBlur = true;
192
+ this.whatchHasFocus();
193
+ this.blur.emit();
194
+ }
195
+ handleChange() {
196
+ this.valueSync();
197
+ }
198
+ handleInput() {
199
+ if (this.type == "number" && this.maxLength) {
200
+ const inputValue = this.inputElement.value;
201
+ if (inputValue && inputValue.length > 0 && inputValue.length > this.maxLength) {
202
+ this.inputElement.value = inputValue.substring(0, this.maxLength);
203
+ }
204
+ }
205
+ this.valueSync();
206
+ }
207
+ valueSync() {
208
+ if (this.value != this.inputElement.value) {
209
+ this.value = this.inputElement.value;
210
+ this.change.emit(this.value);
211
+ return true;
212
+ }
213
+ this.input.emit(this.value);
214
+ return false;
215
+ }
216
+ handleClear(e) {
217
+ this.inputElement.value = '';
218
+ this.value = '';
219
+ this.inputElement.focus();
220
+ this.clear.emit(e);
221
+ this.change.emit(this.value);
222
+ e.stopPropagation();
223
+ }
224
+ changePasswordVisibility() {
225
+ this.isPasswordVisible = !this.isPasswordVisible;
226
+ }
227
+ setCaption(caption = null, captionType = null) {
228
+ this.caption = caption || this.captionCache;
229
+ this.captionType = captionType || this.captionTypeCache;
230
+ this.captionError = captionType == "error" ? caption : null;
231
+ }
232
+ stepUpOrDown(type) {
233
+ if (!this.inValid && !this.disabled && !this.readonly) {
234
+ let step = +(this.step) || 1;
235
+ let val = +(this.value);
236
+ if (type == 'up') {
237
+ val = +(val + step);
238
+ }
239
+ else {
240
+ val = +(val - step);
241
+ }
242
+ this.value = val.toString();
243
+ this.change.emit(this.value);
244
+ }
245
+ }
246
+ validationRange() {
247
+ const { min, max, value } = this;
248
+ if (value !== undefined) {
249
+ if ((min !== undefined) && (max !== undefined)) {
250
+ if (value < min || value > max) {
251
+ this.setCaption(StringHelper.getMessage('between', [min, max]), "error");
252
+ return false;
253
+ }
254
+ }
255
+ else if (min !== undefined) {
256
+ if (value < min) {
257
+ this.setCaption(StringHelper.getMessage('min', [min]), "error");
258
+ return false;
259
+ }
260
+ }
261
+ else if (max !== undefined) {
262
+ if (value > max) {
263
+ this.setCaption(StringHelper.getMessage('max', [max]), "error");
264
+ return false;
265
+ }
266
+ }
267
+ }
268
+ this.setCaption();
269
+ return true;
270
+ }
271
+ checkPattern() {
272
+ const { pattern, value } = this;
273
+ if (pattern) {
274
+ if (Validators.pattern(value, pattern)) {
275
+ this.setCaption();
276
+ this.inValid = false;
277
+ }
278
+ else {
279
+ this.setCaption(StringHelper.getMessage('pattern'), "error");
280
+ this.inValid = true;
281
+ }
282
+ }
283
+ }
284
+ checkValid(type) {
285
+ const { value } = this;
286
+ if (Validators.isValidate(value, type)) {
287
+ this.setCaption();
288
+ this.inValid = false;
289
+ }
290
+ else {
291
+ this.setCaption(StringHelper.getMessage(type), "error");
292
+ this.inValid = true;
293
+ }
294
+ return this.inValid;
295
+ }
296
+ whatchHasFocus() {
297
+ const { type, focused, valueCache, inValid } = this;
298
+ if (type == Bcm.InputType.number && inValid) {
299
+ console.log("whatchHasFocus");
300
+ if (focused) {
301
+ this.value = '';
302
+ }
303
+ else {
304
+ if (!StringHelper.isNullOrEmpty(this.value)) {
305
+ this.value = this.value ? this.fixToNumber(this.value) : '';
306
+ }
307
+ else {
308
+ this.value = valueCache;
309
+ }
310
+ }
311
+ }
312
+ }
313
+ fixToNumber(val) {
314
+ if (val) {
315
+ const decLen = NumberHelper.getDecimalLength(this.step);
316
+ return decLen > 0 ? NumberHelper.parseFloatFixed(val, decLen) : val;
317
+ }
318
+ return val;
319
+ }
320
+ eyeDropper() {
321
+ const eyeDropper = new window.EyeDropper();
322
+ eyeDropper
323
+ .open()
324
+ .then((color) => {
325
+ console.log("color: ", color.sRGBHex);
326
+ this.setValue(color.sRGBHex);
327
+ })
328
+ .catch((error) => {
329
+ if (error.name === "NotAllowedError") {
330
+ console.log("Permission to access sensor was denied.");
331
+ }
332
+ else if (error.name === "NotSupportedError") {
333
+ console.log("Sensor not supported.");
334
+ }
335
+ });
336
+ }
337
+ isEyeDropperSupported() {
338
+ return typeof window !== "undefined" && "EyeDropper" in window;
339
+ }
340
+ toggleLinked() {
341
+ const linkedElement = document.getElementById(`${this._id}-linked`);
342
+ if (linkedElement) {
343
+ linkedElement.toggle();
344
+ }
345
+ }
346
+ render() {
347
+ const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused, unitPrefix, noCaption, required, hidden, _id, autocomplete } = this;
348
+ const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
349
+ const hostClasses = classnames('bcm-input', `bcm-input__container--${size}`, {
350
+ hidden,
351
+ // 'no-margin': noMargin,
352
+ 'full-width': fullWidth
353
+ });
354
+ return (h(Host, { onfocus: () => this.onBcmFocus(), class: hostClasses, onClick: () => this.onBcmFocus() }, label && h("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { id: _id, type: type, value: value, pattern: this.pattern, placeholder: placeholder, disabled: disabled, readonly: readonly, clearable: isActiveClearable, passwordToggle: passwordToggle, isPasswordVisible: isPasswordVisible, noDefaultIcon: noDefaultIcon, focused: focused, inValid: inValid, unitPrefix: unitPrefix, maxLength: this.maxLength, internalId: this._internal_id, captionType: captionType, unit: unit, size: size, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), steps: (e) => this.stepUpOrDown(e), changePasswordVisibility: () => this.changePasswordVisibility(), handleClear: (e) => this.handleClear(e), eyeDropper: () => this.eyeDropper(), isEyeDropperSupported: () => this.isEyeDropperSupported(), ref: (el) => this.inputElement = el, _suffix: this._suffix, _prefix: this._prefix, autocomplete: autocomplete }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == Bcm.InputType.color &&
355
+ h("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
356
+ }
357
+ static get watchers() { return {
358
+ "value": ["watchValue"]
359
+ }; }
360
+ };
361
+ __decorate([
362
+ IsLoad()
363
+ ], BcmInput.prototype, "inputElement", void 0);
364
+ BcmInput.style = inputCss;
365
+
366
+ export { BcmInput as bcm_input };
@@ -0,0 +1,40 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
6
+ import { c as classnames } from './index-ed9652af.js';
7
+ import { G as Generate } from './generate-786bd626.js';
8
+ import { a as Bcm } from './bcm-9f50af9c.js';
9
+ import { L as LabelTemplate } from './label-template-98dafeb3.js';
10
+ import './_commonjsHelpers-3016b722.js';
11
+ import './colors-44c95e7e.js';
12
+ import './slot-template-672e941d.js';
13
+ import './string-helper-6bd24967.js';
14
+
15
+ const labelCss = "@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}*{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)}";
16
+
17
+ const BcmLabel = class {
18
+ constructor(hostRef) {
19
+ registerInstance(this, hostRef);
20
+ this._id = Generate.UID();
21
+ this.required = false;
22
+ this.value = undefined;
23
+ this.size = "medium";
24
+ this.form = undefined;
25
+ this.htmlFor = undefined;
26
+ this.hidden = false;
27
+ this.type = Bcm.Status.default;
28
+ this.tooltip = undefined;
29
+ }
30
+ render() {
31
+ const { required, value, size, form, htmlFor, hidden, type, tooltip } = this;
32
+ const hostClasses = classnames('bcm-label', { hidden });
33
+ const Label = (h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value, size: size, type: type, required: required }));
34
+ return (h(Host, { class: hostClasses }, Label, tooltip && (h("bcm-tooltip", { message: tooltip, placement: 'top', trigger: 'hover' }, h("bcm-icon", { icon: "far fa-question-circle" })))));
35
+ }
36
+ get el() { return getElement(this); }
37
+ };
38
+ BcmLabel.style = labelCss;
39
+
40
+ export { BcmLabel as bcm_label };