bromcom-ui 2.11.1-rc.8 → 2.11.1-rc.9-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) 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-022a9123.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-745e2913.entry.js → p-0a5d0dad.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-0fc9f542.entry.js → p-0e530449.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-fb529ec0.entry.js → p-1345d51b.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-144bd7f3.entry.js +5 -0
  8. package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
  9. package/dist/bromcom-ui/{p-5f9b5e9a.entry.js → p-1a6a917c.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-1b558b0f.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-5e4f84aa.entry.js → p-1f123f35.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-1f4f8e4f.entry.js +5 -0
  13. package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-270e1b24.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-1cac8ccc.js → p-2cd6cdee.js} +1 -1
  16. package/dist/bromcom-ui/{p-63138ee5.entry.js → p-32c55505.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-cb190cbb.js → p-3616f96d.js} +1 -1
  18. package/dist/bromcom-ui/p-376a20ed.js +5 -0
  19. package/dist/bromcom-ui/{p-298c652a.entry.js → p-38686733.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-034bbcdd.js → p-3a43bf45.js} +1 -1
  21. package/dist/bromcom-ui/{p-4438d629.entry.js → p-4393b33e.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-4a1c1566.entry.js +5 -0
  23. package/dist/bromcom-ui/p-52145717.js +5 -0
  24. package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-59f7fa84.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-4798d827.js → p-61753299.js} +1 -1
  26. package/dist/bromcom-ui/p-641d81c9.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-e45c1546.js → p-6657830f.js} +1 -1
  28. package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  30. package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
  31. package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-77b1dbdd.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-95a2c489.entry.js → p-77ef609e.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-d0e56a89.entry.js → p-79596f30.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  36. package/dist/bromcom-ui/p-82fb073c.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-8290f0dc.entry.js → p-847e7a75.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-d2f863d9.js → p-8b6d3a37.js} +1 -1
  39. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  40. package/dist/bromcom-ui/p-8da487f0.entry.js +5 -0
  41. package/dist/bromcom-ui/p-8e11a26b.entry.js +20 -0
  42. package/dist/bromcom-ui/{p-f9686cdb.entry.js → p-8eb45b0e.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-991ffc23.entry.js → p-95104e4f.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-468157a0.entry.js → p-9589f69c.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-c7e8dcf7.js → p-9610bd2d.js} +1 -1
  46. package/dist/bromcom-ui/p-974c5210.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-78bdc41e.entry.js → p-9797db90.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
  49. package/dist/bromcom-ui/{p-0999d548.js → p-98cf4aa5.js} +1 -1
  50. package/dist/bromcom-ui/{p-0efc9196.entry.js → p-9b59c689.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-80eb3fdb.entry.js → p-9b8b692a.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-a0d6d680.js} +1 -1
  53. package/dist/bromcom-ui/p-a0f44b56.entry.js +5 -0
  54. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  55. package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-a486613b.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-7a89243a.entry.js → p-a6aa173f.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-16e8e9ba.js → p-aed4d33b.js} +1 -1
  59. package/dist/bromcom-ui/{p-5b76a893.entry.js → p-b8e7d8ea.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-1f99c170.entry.js → p-bafe6f14.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-bb47062a.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-fcc6f71e.js → p-beaec5b8.js} +1 -1
  63. package/dist/bromcom-ui/{p-0e362df2.entry.js → p-c00d26c1.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-c49b6287.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-f39d9d7c.entry.js → p-cb4c07af.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-64da3643.entry.js → p-d25d4c40.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-188b9079.entry.js → p-d59d9687.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-dcb48e92.entry.js +5 -0
  70. package/dist/bromcom-ui/p-de0b0192.entry.js +5 -0
  71. package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
  72. package/dist/bromcom-ui/{p-79572dc0.entry.js → p-e5212c52.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-e8eaa3bb.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-a496024a.entry.js → p-ec5fe536.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-eca0acda.js +5 -0
  76. package/dist/bromcom-ui/{p-0c8f2481.entry.js → p-f2bc61dd.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-08159d00.entry.js → p-f9b59bcc.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-f9119bec.entry.js → p-fc787048.entry.js} +1 -1
  79. package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
  80. package/dist/cjs/bcm-accordion_45.cjs.entry.js +23947 -0
  81. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  83. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  84. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  86. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  87. package/dist/cjs/{bcm-checkbox-lite_9.cjs.entry.js → bcm-checkbox-lite_8.cjs.entry.js} +6 -26
  88. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
  89. package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
  90. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  91. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  92. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  95. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  97. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  99. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  100. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  101. package/dist/cjs/bcm-modal.cjs.entry.js +7 -7
  102. package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
  103. package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  105. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  106. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  108. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  109. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  110. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  112. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  113. package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
  114. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  115. package/dist/cjs/{generate-06bf97b8.js → generate-cb6d728f.js} +1 -1
  116. package/dist/cjs/{global-74a88067.js → global-9a7fa11d.js} +1 -1
  117. package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
  118. package/dist/cjs/loader.cjs.js +3 -3
  119. package/dist/cjs/{number-helper-362f0e03.js → number-helper-7cda3b8d.js} +1 -1
  120. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  121. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  122. package/dist/cjs/{package-92cfcafb.js → package-417ad2df.js} +1 -1
  123. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
  124. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
  125. package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
  126. package/dist/cjs/{validators-07d7a0c9.js → validators-5201d427.js} +1 -1
  127. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  128. package/dist/collection/components/atoms/badge/badge.js +1 -1
  129. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  130. package/dist/collection/components/atoms/button/button.css +13 -13
  131. package/dist/collection/components/atoms/button/button.js +14 -14
  132. package/dist/collection/components/atoms/chip/chip.css +4 -4
  133. package/dist/collection/components/atoms/chip/chip.js +3 -3
  134. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  135. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  136. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  137. package/dist/collection/components/molecules/empty/empty.js +1 -1
  138. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  139. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  140. package/dist/collection/components/molecules/input/input.js +1 -1
  141. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  142. package/dist/collection/components/molecules/menu/menu.css +4 -4
  143. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  144. package/dist/collection/components/molecules/radio/radio.js +1 -1
  145. package/dist/collection/components/molecules/range/range.js +1 -1
  146. package/dist/collection/components/molecules/switch/switch.css +2 -2
  147. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  148. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  149. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  150. package/dist/collection/components/organism/list/list.js +2 -2
  151. package/dist/collection/components/other/attendance/attendance.js +1 -1
  152. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  153. package/dist/collection/templates/button-template.js +1 -1
  154. package/dist/collection/templates/caption-template.js +2 -2
  155. package/dist/collection/templates/input-template.js +1 -1
  156. package/dist/collection/templates/label-template.js +1 -1
  157. package/dist/collection/templates/list-item-template.js +1 -1
  158. package/dist/collection/templates/list-template.js +3 -9
  159. package/dist/components/avatar.js +1 -1
  160. package/dist/components/badge.js +2 -2
  161. package/dist/components/bcm-attendance.js +1 -1
  162. package/dist/components/bcm-checkbox-group.js +2 -2
  163. package/dist/components/bcm-color-input.js +1 -1
  164. package/dist/components/bcm-error-layout.js +1 -1
  165. package/dist/components/bcm-expansion-panel.js +1 -1
  166. package/dist/components/bcm-input-dropdown.js +1 -1
  167. package/dist/components/bcm-radio-group.js +1 -1
  168. package/dist/components/bcm-range.js +1 -1
  169. package/dist/components/bcm-switch.js +1 -1
  170. package/dist/components/bcm-tab-group.js +2 -2
  171. package/dist/components/bcm-tab-item-header.js +5 -5
  172. package/dist/components/button.js +16 -16
  173. package/dist/components/caption-template.js +2 -2
  174. package/dist/components/chip.js +4 -4
  175. package/dist/components/empty.js +1 -1
  176. package/dist/components/generate.js +1 -1
  177. package/dist/components/input-template.js +1 -1
  178. package/dist/components/input.js +1 -1
  179. package/dist/components/label.js +1 -1
  180. package/dist/components/list.js +6 -12
  181. package/dist/components/menu.js +1 -1
  182. package/dist/components/radio.js +1 -1
  183. package/dist/components/tooltip.js +1 -1
  184. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-82aa9212.js} +1 -1
  185. package/dist/esm/bcm-a50d55ba.js +1 -1
  186. package/dist/esm/bcm-accordion_45.entry.js +23899 -0
  187. package/dist/esm/bcm-alert.entry.js +8 -8
  188. package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
  189. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
  190. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  191. package/dist/esm/bcm-box.entry.js +1 -1
  192. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  193. package/dist/esm/bcm-caption.entry.js +14 -14
  194. package/dist/esm/bcm-card.entry.js +10 -10
  195. package/dist/esm/{bcm-checkbox-lite_9.entry.js → bcm-checkbox-lite_8.entry.js} +10 -29
  196. package/dist/esm/bcm-chip-group.entry.js +15 -15
  197. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  198. package/dist/esm/bcm-collapse.entry.js +58 -0
  199. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  200. package/dist/esm/bcm-content.entry.js +1 -1
  201. package/dist/esm/bcm-date-picker.entry.js +9 -9
  202. package/dist/esm/bcm-datetime-picker.entry.js +13 -13
  203. package/dist/esm/bcm-default.entry.js +5 -5
  204. package/dist/esm/bcm-error-layout.entry.js +4 -4
  205. package/dist/esm/bcm-form-2.entry.js +8 -8
  206. package/dist/esm/bcm-form-group.entry.js +1 -1
  207. package/dist/esm/bcm-input-custom.entry.js +6 -6
  208. package/dist/esm/bcm-input-dropdown.entry.js +15 -15
  209. package/dist/esm/bcm-link.entry.js +4 -4
  210. package/dist/esm/bcm-message.entry.js +3 -3
  211. package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
  212. package/dist/esm/bcm-modal-2-header.entry.js +11 -11
  213. package/dist/esm/bcm-modal-2.entry.js +13 -13
  214. package/dist/esm/bcm-modal.entry.js +9 -9
  215. package/dist/esm/bcm-notification.entry.js +3 -3
  216. package/dist/esm/bcm-number-input.entry.js +14 -14
  217. package/dist/esm/bcm-old-input.entry.js +5 -5
  218. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  219. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  220. package/dist/esm/bcm-popover.entry.js +12 -12
  221. package/dist/esm/bcm-range.entry.js +9 -9
  222. package/dist/esm/bcm-result.entry.js +3 -3
  223. package/dist/esm/bcm-select-group.entry.js +3 -3
  224. package/dist/esm/bcm-select-option.entry.js +3 -3
  225. package/dist/esm/bcm-select.entry.js +5 -5
  226. package/dist/esm/bcm-skeleton.entry.js +11 -11
  227. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  228. package/dist/esm/bcm-tab.entry.js +3 -3
  229. package/dist/esm/bcm-table.entry.js +12 -12
  230. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  231. package/dist/esm/bcm-tabs.entry.js +4 -4
  232. package/dist/esm/bcm-tag.entry.js +9 -9
  233. package/dist/esm/bcm-time-picker.entry.js +9 -9
  234. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  235. package/dist/esm/bcm-timeline.entry.js +3 -3
  236. package/dist/esm/bcm-toast.entry.js +9 -9
  237. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  238. package/dist/esm/bromcom-ui.js +5 -5
  239. package/dist/esm/{caption-template-caa3bc94.js → caption-template-d7953d13.js} +4 -4
  240. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-3b528349.js} +2 -2
  241. package/dist/esm/{colors-e1c31f79.js → colors-c530a5b8.js} +1 -1
  242. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  243. package/dist/esm/floating-ui-3f4394da.js +1 -1
  244. package/dist/esm/{generate-2696a8c2.js → generate-6502409d.js} +2 -2
  245. package/dist/esm/{global-61bfbbb2.js → global-030f848d.js} +2 -2
  246. package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
  247. package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
  248. package/dist/esm/{index-b84bc8c9.js → index-f549811f.js} +1 -1
  249. package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
  250. package/dist/esm/{label-template-737576c4.js → label-template-a26f76c0.js} +4 -4
  251. package/dist/esm/loader.js +5 -5
  252. package/dist/esm/{lodash-0a4396a7.js → lodash-4197be99.js} +1 -1
  253. package/dist/esm/{number-helper-738f0f80.js → number-helper-f5777f14.js} +1 -1
  254. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  255. package/dist/esm/old-bcm-popover.entry.js +7 -7
  256. package/dist/esm/{package-131d6f3d.js → package-e3b09e0c.js} +1 -1
  257. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-d12fec40.js} +1 -1
  258. package/dist/esm/{slot-template-08ed1fe4.js → slot-template-2a19b2db.js} +2 -2
  259. package/dist/esm/{string-helper-85990695.js → string-helper-3592bdc2.js} +2 -2
  260. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  261. package/dist/esm/{validators-0d91bd42.js → validators-f574d105.js} +1 -1
  262. package/dist/types/templates/list-template.d.ts +1 -0
  263. package/package.json +1 -1
  264. package/dist/bromcom-ui/p-02209931.entry.js +0 -5
  265. package/dist/bromcom-ui/p-0267a472.entry.js +0 -5
  266. package/dist/bromcom-ui/p-04e5fdfe.entry.js +0 -5
  267. package/dist/bromcom-ui/p-0b28fa4e.entry.js +0 -5
  268. package/dist/bromcom-ui/p-1a33d7a3.entry.js +0 -5
  269. package/dist/bromcom-ui/p-2297ea95.entry.js +0 -5
  270. package/dist/bromcom-ui/p-2b3800d3.entry.js +0 -5
  271. package/dist/bromcom-ui/p-2e1a70ec.entry.js +0 -5
  272. package/dist/bromcom-ui/p-3089e9c7.js +0 -5
  273. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  274. package/dist/bromcom-ui/p-32a2509b.entry.js +0 -5
  275. package/dist/bromcom-ui/p-339aca62.entry.js +0 -5
  276. package/dist/bromcom-ui/p-393f0e15.entry.js +0 -5
  277. package/dist/bromcom-ui/p-3f0b84a6.entry.js +0 -5
  278. package/dist/bromcom-ui/p-3f9f5a13.entry.js +0 -5
  279. package/dist/bromcom-ui/p-4213ba24.js +0 -5
  280. package/dist/bromcom-ui/p-45a9f416.entry.js +0 -5
  281. package/dist/bromcom-ui/p-4aa5350f.entry.js +0 -5
  282. package/dist/bromcom-ui/p-4ad0e51a.entry.js +0 -5
  283. package/dist/bromcom-ui/p-4d8067b9.entry.js +0 -5
  284. package/dist/bromcom-ui/p-5199f537.entry.js +0 -5
  285. package/dist/bromcom-ui/p-52722917.entry.js +0 -5
  286. package/dist/bromcom-ui/p-5362c0b3.js +0 -5
  287. package/dist/bromcom-ui/p-57bbbd50.entry.js +0 -5
  288. package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
  289. package/dist/bromcom-ui/p-6bdc5130.entry.js +0 -5
  290. package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
  291. package/dist/bromcom-ui/p-70259bf1.entry.js +0 -5
  292. package/dist/bromcom-ui/p-734c3522.entry.js +0 -5
  293. package/dist/bromcom-ui/p-7380fb38.entry.js +0 -5
  294. package/dist/bromcom-ui/p-76c877e3.entry.js +0 -5
  295. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  296. package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
  297. package/dist/bromcom-ui/p-77b99601.entry.js +0 -5
  298. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  299. package/dist/bromcom-ui/p-7fcb7aec.entry.js +0 -5
  300. package/dist/bromcom-ui/p-88b59874.entry.js +0 -5
  301. package/dist/bromcom-ui/p-8ec1a890.js +0 -5
  302. package/dist/bromcom-ui/p-98a4c883.entry.js +0 -5
  303. package/dist/bromcom-ui/p-9da2b0d5.entry.js +0 -5
  304. package/dist/bromcom-ui/p-9e4cb37f.entry.js +0 -5
  305. package/dist/bromcom-ui/p-a387fa95.entry.js +0 -5
  306. package/dist/bromcom-ui/p-a436ed99.entry.js +0 -5
  307. package/dist/bromcom-ui/p-a9aaa5c1.entry.js +0 -5
  308. package/dist/bromcom-ui/p-bb37a2e6.entry.js +0 -5
  309. package/dist/bromcom-ui/p-be6595a2.entry.js +0 -5
  310. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  311. package/dist/bromcom-ui/p-c4df05e3.entry.js +0 -5
  312. package/dist/bromcom-ui/p-d7309e81.entry.js +0 -5
  313. package/dist/bromcom-ui/p-d88a206a.entry.js +0 -5
  314. package/dist/bromcom-ui/p-dbde1ce5.entry.js +0 -5
  315. package/dist/bromcom-ui/p-dc6a4f29.entry.js +0 -5
  316. package/dist/bromcom-ui/p-e3c66141.js +0 -5
  317. package/dist/bromcom-ui/p-e55dc873.js +0 -5
  318. package/dist/bromcom-ui/p-e8075d25.entry.js +0 -5
  319. package/dist/bromcom-ui/p-e8ef1d0d.js +0 -5
  320. package/dist/bromcom-ui/p-f27a5636.entry.js +0 -5
  321. package/dist/bromcom-ui/p-f2850f20.entry.js +0 -5
  322. package/dist/bromcom-ui/p-f2d598d5.entry.js +0 -5
  323. package/dist/bromcom-ui/p-f6c83f16.entry.js +0 -5
  324. package/dist/bromcom-ui/p-fedb8902.entry.js +0 -5
  325. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  326. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  327. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  328. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  329. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  330. package/dist/cjs/bcm-button_2.cjs.entry.js +0 -419
  331. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  332. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  333. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  334. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  335. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  336. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  337. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  338. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  339. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  340. package/dist/cjs/bcm-form.cjs.entry.js +0 -492
  341. package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
  342. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  343. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  344. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  345. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -135
  346. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2563
  347. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  348. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  349. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  350. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  351. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  352. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  353. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9391
  354. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  355. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  356. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  357. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  358. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  359. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  360. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  361. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  362. package/dist/cjs/index-3d67f613.js +0 -1610
  363. package/dist/cjs/index-e05a7c6f.js +0 -545
  364. package/dist/cjs/input-template-106fdeb9.js +0 -92
  365. package/dist/cjs/json-parse-decarator-6cbdad46.js +0 -40
  366. package/dist/cjs/moment-d06b012f.js +0 -4601
  367. package/dist/cjs/stepper-states-5c4f767b.js +0 -85
  368. package/dist/cjs/tooltip-helper-9f0c156a.js +0 -158
  369. package/dist/esm/bcm-accordion.entry.js +0 -70
  370. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  371. package/dist/esm/bcm-attendance.entry.js +0 -31
  372. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  373. package/dist/esm/bcm-button-group.entry.js +0 -88
  374. package/dist/esm/bcm-button_2.entry.js +0 -414
  375. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  376. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  377. package/dist/esm/bcm-chip.entry.js +0 -87
  378. package/dist/esm/bcm-color-input.entry.js +0 -73
  379. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  380. package/dist/esm/bcm-date.entry.js +0 -178
  381. package/dist/esm/bcm-drawer.entry.js +0 -92
  382. package/dist/esm/bcm-dropdown.entry.js +0 -115
  383. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  384. package/dist/esm/bcm-form.entry.js +0 -488
  385. package/dist/esm/bcm-icon.entry.js +0 -35
  386. package/dist/esm/bcm-input_2.entry.js +0 -545
  387. package/dist/esm/bcm-item.entry.js +0 -68
  388. package/dist/esm/bcm-items.entry.js +0 -45
  389. package/dist/esm/bcm-label_2.entry.js +0 -130
  390. package/dist/esm/bcm-list_3.entry.js +0 -2557
  391. package/dist/esm/bcm-menu.entry.js +0 -147
  392. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  393. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  394. package/dist/esm/bcm-progress.entry.js +0 -158
  395. package/dist/esm/bcm-radio-group.entry.js +0 -157
  396. package/dist/esm/bcm-radio.entry.js +0 -61
  397. package/dist/esm/bcm-rc-picker.entry.js +0 -9387
  398. package/dist/esm/bcm-shortcut.entry.js +0 -61
  399. package/dist/esm/bcm-step.entry.js +0 -85
  400. package/dist/esm/bcm-stepper.entry.js +0 -236
  401. package/dist/esm/bcm-switch.entry.js +0 -147
  402. package/dist/esm/bcm-tab-group.entry.js +0 -206
  403. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  404. package/dist/esm/bcm-tab-item.entry.js +0 -87
  405. package/dist/esm/bcm-text.entry.js +0 -45
  406. package/dist/esm/index-a6d9d0af.js +0 -541
  407. package/dist/esm/index-c4568336.js +0 -1594
  408. package/dist/esm/input-template-b2e1b39d.js +0 -90
  409. package/dist/esm/json-parse-decarator-44a00bc5.js +0 -38
  410. package/dist/esm/moment-15cd9198.js +0 -4598
  411. package/dist/esm/stepper-states-66f07873.js +0 -83
  412. package/dist/esm/tooltip-helper-4b501ffa.js +0 -156
@@ -1,550 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-06bf97b8.js');
11
- const numberHelper = require('./number-helper-362f0e03.js');
12
- const stringHelper = require('./string-helper-f9184277.js');
13
- const validators = require('./validators-07d7a0c9.js');
14
- const bcm = require('./bcm-489c9b1a.js');
15
- const captionTemplate = require('./caption-template-086e9cac.js');
16
- const inputTemplate = require('./input-template-106fdeb9.js');
17
- const index$1 = require('./index-95ae50d0.js');
18
- const utils = require('./utils-fc077139.js');
19
- const isLoadDecorator = require('./is-load-decorator-15036f37.js');
20
- require('./package-92cfcafb.js');
21
- require('./colors-078851ec.js');
22
- require('./_commonjsHelpers-ed84c3ca.js');
23
- require('./types-cc4adee7.js');
24
-
25
- 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\"); .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-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;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}";
26
-
27
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
28
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
29
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
30
- r = Reflect.decorate(decorators, target, key, desc);
31
- else
32
- for (var i = decorators.length - 1; i >= 0; i--)
33
- if (d = decorators[i])
34
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
35
- return c > 3 && r && Object.defineProperty(target, key, r), r;
36
- };
37
- const BcmInput = class {
38
- constructor(hostRef) {
39
- index.registerInstance(this, hostRef);
40
- this.focus = index.createEvent(this, "bcm-focus", 7);
41
- this.blur = index.createEvent(this, "bcm-blur", 7);
42
- this.clear = index.createEvent(this, "bcm-clear", 7);
43
- this.change = index.createEvent(this, "bcm-change", 7);
44
- this.input = index.createEvent(this, "bcm-input", 7);
45
- this.isBlur = false;
46
- this._id = generate.Generate.UID();
47
- this._internal_id = generate.Generate.UID();
48
- this.value = '';
49
- this.size = bcm.Bcm.Size.medium;
50
- this.label = undefined;
51
- this.pattern = undefined;
52
- this.tooltip = undefined;
53
- this.placeholder = undefined;
54
- this.disabled = false;
55
- this.readonly = false;
56
- this.clearable = false;
57
- this.autocomplete = false;
58
- this.name = undefined;
59
- this.type = bcm.Bcm.InputType.text;
60
- this.hidden = false;
61
- this.required = false;
62
- this.fullWidth = false;
63
- this.noDefaultIcon = undefined;
64
- this.disableWatchValue = false // datetimepicker
65
- ;
66
- this.passwordToggle = false // type password
67
- ;
68
- this.maxLength = null;
69
- this.minLength = null;
70
- this.unitPrefix = null;
71
- this.unit = undefined;
72
- this.decimal = true;
73
- this.min = undefined;
74
- this.max = undefined;
75
- this.step = undefined;
76
- this.caption = undefined;
77
- this.noCaption = false;
78
- this.captionType = bcm.Bcm.Status.default;
79
- this.captionError = undefined;
80
- this.customErrorMessage = undefined;
81
- this._prefix = undefined;
82
- this._suffix = undefined;
83
- this.captionCache = undefined;
84
- this.captionTypeCache = undefined;
85
- this.inValid = false;
86
- this.valueCache = '';
87
- this.focused = false;
88
- this.isPasswordVisible = false;
89
- }
90
- connectedCallback() {
91
- this.valueCache = this.value;
92
- this.captionCache = this.caption;
93
- this.captionTypeCache = this.captionType;
94
- }
95
- componentWillRender() {
96
- const { type, isBlur, value } = this;
97
- if (value) {
98
- this.value.length > 0 && (this.checkPattern());
99
- switch (type) {
100
- case "number":
101
- {
102
- !this.checkValid("number") && (this.validationRange());
103
- }
104
- break;
105
- case "email":
106
- {
107
- isBlur && (this.checkValid("email"));
108
- }
109
- break;
110
- case "tel":
111
- {
112
- isBlur && (this.checkValid("phone"));
113
- }
114
- break;
115
- case "text":
116
- {
117
- isBlur && (this.checkLength());
118
- }
119
- break;
120
- }
121
- }
122
- else {
123
- !this.required && (this.resetCaption());
124
- }
125
- }
126
- async onBcmFocus() {
127
- this.inputElement.focus();
128
- }
129
- async onBcmBlur() {
130
- this.inputElement.blur();
131
- }
132
- async onBcmSelect() {
133
- this.inputElement.select();
134
- }
135
- async set(data) {
136
- await this.setValue(data);
137
- }
138
- async get() {
139
- return this.value || null;
140
- }
141
- async setValue(value) {
142
- this.inputElement.value = value;
143
- this.handleChange();
144
- return value;
145
- }
146
- async setClear() {
147
- this.inputElement.value = '';
148
- this.value = '';
149
- await utils.delay(10);
150
- return Promise.resolve();
151
- }
152
- async resetCaption() {
153
- await utils.delay(10);
154
- this.caption = this.captionCache;
155
- this.captionType = this.captionTypeCache;
156
- this.captionError = null;
157
- this.inValid = false;
158
- await utils.delay(10);
159
- return Promise.resolve();
160
- }
161
- async getValue() {
162
- return this.value;
163
- }
164
- watchValue(newValue) {
165
- this.inputElement.value = newValue;
166
- if (!this.disableWatchValue && this.type != "number") {
167
- this.handleChange();
168
- }
169
- }
170
- listenKeyDown(e) {
171
- if (!this.disabled && !this.readonly) {
172
- this.onBcmFocus();
173
- if (this.type == "number") {
174
- var which = e.which || 0;
175
- var key = e.key;
176
- if (which == 38) { // up arrow
177
- e.preventDefault(),
178
- this.stepUpOrDown('up');
179
- }
180
- if (which == 40) { // down arrow
181
- e.preventDefault(),
182
- this.stepUpOrDown('down');
183
- }
184
- if ((which == 190 || which == 110 || key == ".") && this.value.indexOf(".") > -1) { //.
185
- e.preventDefault();
186
- }
187
- if ((which == 189 || which == 109 || key == "-")) { //-
188
- if (this.value.charAt(0) == '-' || this.value.indexOf("-") > -1) {
189
- e.preventDefault();
190
- }
191
- }
192
- }
193
- }
194
- }
195
- handleFocus() {
196
- this.focused = true;
197
- this.focus.emit();
198
- this.whatchHasFocus();
199
- }
200
- handleBlur() {
201
- this.focused = false;
202
- this.isBlur = true;
203
- this.whatchHasFocus();
204
- this.blur.emit();
205
- }
206
- handleChange() {
207
- this.valueSync();
208
- }
209
- handleInput() {
210
- if (this.type == "number" && this.maxLength) {
211
- const inputValue = this.inputElement.value;
212
- if (inputValue && inputValue.length > 0 && inputValue.length > this.maxLength) {
213
- this.inputElement.value = inputValue.substring(0, this.maxLength);
214
- }
215
- }
216
- this.valueSync();
217
- }
218
- valueSync() {
219
- if (this.value != this.inputElement.value) {
220
- this.value = this.inputElement.value;
221
- this.change.emit(this.value);
222
- return true;
223
- }
224
- this.input.emit(this.value);
225
- return false;
226
- }
227
- handleClear(e) {
228
- this.inputElement.value = '';
229
- this.value = '';
230
- this.inputElement.focus();
231
- this.clear.emit(e);
232
- this.change.emit(this.value);
233
- e.stopPropagation();
234
- }
235
- changePasswordVisibility() {
236
- this.isPasswordVisible = !this.isPasswordVisible;
237
- }
238
- setCaption(caption = null, captionType = null) {
239
- this.caption = caption || this.captionCache;
240
- this.captionType = captionType || this.captionTypeCache;
241
- this.captionError = captionType == "error" ? caption : null;
242
- }
243
- stepUpOrDown(type) {
244
- if (!this.inValid && !this.disabled && !this.readonly) {
245
- let step = +(this.step) || 1;
246
- let val = +(this.value);
247
- if (type == 'up') {
248
- val = +(val + step);
249
- }
250
- else {
251
- val = +(val - step);
252
- }
253
- this.value = val.toString();
254
- this.change.emit(this.value);
255
- }
256
- }
257
- validationRange() {
258
- const { min, max, value } = this;
259
- if (value !== undefined) {
260
- if ((min !== undefined) && (max !== undefined)) {
261
- if (value < min || value > max) {
262
- this.setCaption(stringHelper.StringHelper.getMessage('between', [min, max]), "error");
263
- return false;
264
- }
265
- }
266
- else if (min !== undefined) {
267
- if (value < min) {
268
- this.setCaption(stringHelper.StringHelper.getMessage('min', [min]), "error");
269
- return false;
270
- }
271
- }
272
- else if (max !== undefined) {
273
- if (value > max) {
274
- this.setCaption(stringHelper.StringHelper.getMessage('max', [max]), "error");
275
- return false;
276
- }
277
- }
278
- }
279
- this.setCaption();
280
- return true;
281
- }
282
- checkLength() {
283
- const { minLength, maxLength, value } = this;
284
- if (minLength && maxLength) {
285
- if (value.length < minLength || value.length > maxLength) {
286
- this.setCaption(stringHelper.StringHelper.getMessage('betweenlength', [minLength, maxLength]), "error");
287
- this.inValid = true;
288
- }
289
- else {
290
- this.setCaption();
291
- this.inValid = false;
292
- }
293
- }
294
- else if (minLength) {
295
- if (value.length < minLength) {
296
- this.setCaption(stringHelper.StringHelper.getMessage('minlength', [minLength]), "error");
297
- this.inValid = true;
298
- }
299
- else {
300
- this.setCaption();
301
- this.inValid = false;
302
- }
303
- }
304
- else if (maxLength) {
305
- if (value.length > maxLength) {
306
- this.setCaption(stringHelper.StringHelper.getMessage('maxlength', [maxLength]), "error");
307
- this.inValid = true;
308
- }
309
- else {
310
- this.setCaption();
311
- this.inValid = false;
312
- }
313
- }
314
- }
315
- checkPattern() {
316
- const { pattern, value } = this;
317
- if (pattern) {
318
- if (validators.Validators.pattern(value, pattern)) {
319
- this.setCaption();
320
- this.inValid = false;
321
- }
322
- else {
323
- this.setCaption(stringHelper.StringHelper.getMessage('pattern'), "error");
324
- this.inValid = true;
325
- }
326
- }
327
- }
328
- checkValid(type) {
329
- const { value } = this;
330
- if (validators.Validators.isValidate(value, type)) {
331
- this.setCaption();
332
- this.inValid = false;
333
- }
334
- else {
335
- this.setCaption(stringHelper.StringHelper.getMessage(type), "error");
336
- this.inValid = true;
337
- }
338
- return this.inValid;
339
- }
340
- whatchHasFocus() {
341
- const { type, focused, valueCache, inValid } = this;
342
- if (type == bcm.Bcm.InputType.number && inValid) {
343
- if (focused) {
344
- this.value = '';
345
- }
346
- else {
347
- if (!stringHelper.StringHelper.isNullOrEmpty(this.value)) {
348
- this.value = this.value ? this.fixToNumber(this.value) : '';
349
- }
350
- else {
351
- this.value = valueCache;
352
- }
353
- }
354
- }
355
- }
356
- fixToNumber(val) {
357
- if (val) {
358
- const decLen = numberHelper.NumberHelper.getDecimalLength(this.step);
359
- return decLen > 0 ? numberHelper.NumberHelper.parseFloatFixed(val, decLen) : val;
360
- }
361
- return val;
362
- }
363
- eyeDropper() {
364
- const eyeDropper = new window.EyeDropper();
365
- eyeDropper
366
- .open()
367
- .then((color) => {
368
- this.setValue(color.sRGBHex);
369
- })
370
- .catch((error) => {
371
- if (error.name === "NotAllowedError") {
372
- console.log("Permission to access sensor was denied.");
373
- }
374
- else if (error.name === "NotSupportedError") {
375
- console.log("Sensor not supported.");
376
- }
377
- });
378
- }
379
- isEyeDropperSupported() {
380
- return typeof window !== "undefined" && "EyeDropper" in window;
381
- }
382
- toggleLinked() {
383
- const linkedElement = document.getElementById(`${this._id}-linked`);
384
- if (linkedElement) {
385
- linkedElement.toggle();
386
- }
387
- }
388
- render() {
389
- 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;
390
- const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
391
- const hostClasses = index$1.classnames('bcm-input', `bcm-input__container--${size}`, {
392
- hidden,
393
- // 'no-margin': noMargin,
394
- 'full-width': fullWidth
395
- });
396
- return (index.h(index.Host, { onfocus: () => this.onBcmFocus(), class: hostClasses, onClick: () => this.onBcmFocus() }, label && index.h("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), index.h(inputTemplate.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 }), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == bcm.Bcm.InputType.color &&
397
- index.h("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, index.h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
398
- }
399
- static get watchers() { return {
400
- "value": ["watchValue"]
401
- }; }
402
- };
403
- __decorate$1([
404
- isLoadDecorator.IsLoad()
405
- ], BcmInput.prototype, "inputElement", void 0);
406
- BcmInput.style = inputCss;
407
-
408
- var ResizeType;
409
- (function (ResizeType) {
410
- ResizeType["none"] = "none";
411
- ResizeType["both"] = "both";
412
- ResizeType["horizontal"] = "horizontal";
413
- ResizeType["vertical"] = "vertical";
414
- ResizeType["initial"] = "initial";
415
- ResizeType["inherit"] = "inherit";
416
- })(ResizeType || (ResizeType = {}));
417
-
418
- const textareaCss = "@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-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;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}";
419
-
420
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
421
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
422
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
423
- r = Reflect.decorate(decorators, target, key, desc);
424
- else
425
- for (var i = decorators.length - 1; i >= 0; i--)
426
- if (d = decorators[i])
427
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
428
- return c > 3 && r && Object.defineProperty(target, key, r), r;
429
- };
430
- const BcmTextarea = class {
431
- constructor(hostRef) {
432
- index.registerInstance(this, hostRef);
433
- this.focus = index.createEvent(this, "bcm-focus", 7);
434
- this.blur = index.createEvent(this, "bcm-blur", 7);
435
- this.clear = index.createEvent(this, "bcm-clear", 7);
436
- this.change = index.createEvent(this, "bcm-change", 7);
437
- this.input = index.createEvent(this, "bcm-input", 7);
438
- this._id = generate.Generate.UID();
439
- this._internal_id = generate.Generate.UID();
440
- this.hidden = false;
441
- this.value = undefined;
442
- this.placeholder = undefined;
443
- this.label = undefined;
444
- this.name = undefined;
445
- this.required = false;
446
- this.caption = undefined;
447
- this.noCaption = false;
448
- this.captionError = undefined;
449
- this.captionType = bcm.Bcm.Status.default;
450
- this.rows = 3;
451
- this.size = bcm.Bcm.Size.medium;
452
- this.disabled = undefined;
453
- this.readonly = false;
454
- this.clearable = undefined;
455
- this.resize = ResizeType.vertical;
456
- this.fullWidth = false;
457
- this.maxLength = undefined;
458
- this.focused = false;
459
- this.captionCache = undefined;
460
- this.captionTypeCache = undefined;
461
- }
462
- connectedCallback() {
463
- this.captionCache = this.caption;
464
- this.captionTypeCache = this.captionType;
465
- }
466
- async onBcmFocus() {
467
- this.textarea.focus();
468
- }
469
- async onBcmBlur() {
470
- this.textarea.blur();
471
- }
472
- async onBcmSelect() {
473
- this.textarea.select();
474
- }
475
- async set(data) {
476
- await this.setValue(data);
477
- }
478
- async get() {
479
- return this.value || null;
480
- }
481
- async setValue(value) {
482
- this.textarea.value = value;
483
- this.value = value;
484
- this.handleChange();
485
- return value;
486
- }
487
- async setClear() {
488
- this.textarea.value = '';
489
- this.value = '';
490
- await utils.delay(10);
491
- return Promise.resolve();
492
- }
493
- async resetCaption() {
494
- await utils.delay(10);
495
- this.caption = this.captionCache;
496
- this.captionType = this.captionTypeCache;
497
- this.captionError = null;
498
- await utils.delay(10);
499
- return Promise.resolve();
500
- }
501
- async getValue() {
502
- return this.value;
503
- }
504
- watchValue(newValue) {
505
- this.textarea.value = newValue;
506
- this.handleChange();
507
- }
508
- handleFocus() {
509
- this.focused = true;
510
- this.focus.emit();
511
- }
512
- handleBlur() {
513
- this.focused = false;
514
- this.blur.emit();
515
- }
516
- handleChange() {
517
- this.value = this.textarea.value;
518
- this.change.emit(this.value);
519
- }
520
- handleInput() {
521
- this.value = this.textarea.value;
522
- this.input.emit(this.value);
523
- }
524
- handleClear(e) {
525
- this.textarea.value = '';
526
- this.value = '';
527
- this.clear.emit();
528
- this.textarea.focus();
529
- e.stopPropagation();
530
- }
531
- render() {
532
- const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
533
- const hostClasses = index$1.classnames('bcm-input', {
534
- hidden,
535
- 'full-width': fullWidth,
536
- });
537
- return (index.h(index.Host, { class: hostClasses }, label && index.h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), index.h(inputTemplate.InputTemplate, { elementType: bcm.Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
538
- }
539
- get el() { return index.getElement(this); }
540
- static get watchers() { return {
541
- "value": ["watchValue"]
542
- }; }
543
- };
544
- __decorate([
545
- isLoadDecorator.IsLoad()
546
- ], BcmTextarea.prototype, "el", void 0);
547
- BcmTextarea.style = textareaCss;
548
-
549
- exports.bcm_input = BcmInput;
550
- exports.bcm_textarea = BcmTextarea;
@@ -1,72 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-06bf97b8.js');
11
- const bcm = require('./bcm-489c9b1a.js');
12
- const index$1 = require('./index-95ae50d0.js');
13
- const colorHelper = require('./color-helper-c3a819ea.js');
14
- require('./package-92cfcafb.js');
15
- require('./colors-078851ec.js');
16
- require('./_commonjsHelpers-ed84c3ca.js');
17
- require('./colors-56282b00.js');
18
- require('./utils-fc077139.js');
19
-
20
- const itemCss = "@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-item{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;--bcm-item-color-default:var(--bcm-new-ds-color-white);--bcm-item-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-item-color-hover:var(--bcm-new-ds-color-white);--bcm-item-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-item-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-item-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-item-color-active:var(--bcm-new-ds-color-white);--bcm-item-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-item-color-disabled:var(--bcm-new-ds-color-white);--bcm-item-background-color-disabled:var(--bcm-new-ds-color-slate-400);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;border-radius:4px;outline:none;color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item-size-small{font-size:12px;line-height:calc(12px + 8px);padding:2px 12px;min-height:calc(calc(12px + 8px) + calc(2px) * 2)}.bcm-item-size-medium{font-size:14px;line-height:calc(14px + 8px);padding:5px 12px;min-height:calc(calc(14px + 8px) + calc(5px) * 2)}.bcm-item-size-large{font-size:16px;line-height:calc(16px + 8px);padding:8px 12px;min-height:calc(calc(16px + 8px) + calc(8px) * 2)}.bcm-item:default{color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item:hover{color:var(--bcm-item-color-hover);background-color:var(--bcm-item-background-color-hover)}.bcm-item:focus-visible{color:var(--bcm-item-color-focus-visible);background-color:var(--bcm-item-background-color-focus-visible)}.bcm-item:active{color:var(--bcm-item-color-active);background-color:var(--bcm-item-background-color-active)}.bcm-item:disabled{color:var(--bcm-item-color-disabled);background-color:var(--bcm-item-background-color-disabled)}.bcm-item:not(.static):hover{cursor:pointer}";
21
-
22
- const BcmItem = class {
23
- constructor(hostRef) {
24
- index.registerInstance(this, hostRef);
25
- this._id = generate.Generate.UID();
26
- this.size = bcm.Bcm.Size.medium;
27
- this.color = undefined;
28
- this.static = false;
29
- }
30
- setColor(color = this.color) {
31
- if (!color)
32
- return;
33
- const prefix = `--bcm-item`;
34
- if (color == "white") {
35
- return {
36
- [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('slate-600'),
37
- [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('slate-600'),
38
- [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-600'),
39
- [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('slate-600'),
40
- [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
41
- [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'white'),
42
- [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-100'),
43
- [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-200'),
44
- [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-300'),
45
- [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
46
- };
47
- }
48
- return {
49
- [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('white'),
50
- [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('white'),
51
- [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('white'),
52
- [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('white'),
53
- [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
54
- [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
55
- [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
56
- [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
57
- [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
58
- [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
59
- };
60
- }
61
- disconnectedCallback() {
62
- // this.el.remove()
63
- }
64
- render() {
65
- const hostClasses = index$1.classnames('bcm-item', `bcm-item-size-${this.size}`);
66
- return (index.h(index.Host, { class: hostClasses, style: this.setColor() }, index.h("slot", null)));
67
- }
68
- get el() { return index.getElement(this); }
69
- };
70
- BcmItem.style = itemCss;
71
-
72
- exports.bcm_item = BcmItem;