bromcom-ui 2.11.1-rc.7 → 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 (411) 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-c33b5077.entry.js → p-0a5d0dad.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-f3b2149d.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-52a452ed.entry.js → p-144bd7f3.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
  9. package/dist/bromcom-ui/{p-dc861002.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-aa41988b.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-9551e2a4.js → p-3616f96d.js} +1 -1
  18. package/dist/bromcom-ui/p-376a20ed.js +5 -0
  19. package/dist/bromcom-ui/{p-323814c5.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-6463a5c6.entry.js → p-641d81c9.entry.js} +1 -1
  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-09a93e61.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-476c4395.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-86bbaeb1.entry.js → p-8eb45b0e.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-c573de57.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-866d1d29.js → p-9610bd2d.js} +1 -1
  46. package/dist/bromcom-ui/p-974c5210.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-5da5c711.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-85f028bf.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-51f2ada5.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-9107380e.js → p-aed4d33b.js} +1 -1
  59. package/dist/bromcom-ui/{p-86f1302f.entry.js → p-b8e7d8ea.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-72da77b1.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-6ba235c9.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-540b3968.entry.js → p-cb4c07af.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-697a733d.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-360a2521.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-7d397485.entry.js → p-ec5fe536.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-eca0acda.js +5 -0
  76. package/dist/bromcom-ui/{p-d1b3d238.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-c2e5f662.js → generate-cb6d728f.js} +1 -1
  116. package/dist/cjs/{global-6ed75a57.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-28a25c38.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-c3fb44cd.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-d71e2d41.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.css +15 -20
  151. package/dist/collection/components/organism/list/list.js +2 -2
  152. package/dist/collection/components/other/attendance/attendance.js +1 -1
  153. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  154. package/dist/collection/templates/button-template.js +1 -1
  155. package/dist/collection/templates/caption-template.js +2 -2
  156. package/dist/collection/templates/input-template.js +1 -1
  157. package/dist/collection/templates/label-template.js +1 -1
  158. package/dist/collection/templates/list-item-template.js +8 -8
  159. package/dist/collection/templates/list-template.js +3 -9
  160. package/dist/components/avatar.js +1 -1
  161. package/dist/components/badge.js +2 -2
  162. package/dist/components/bcm-attendance.js +1 -1
  163. package/dist/components/bcm-checkbox-group.js +2 -2
  164. package/dist/components/bcm-color-input.js +1 -1
  165. package/dist/components/bcm-error-layout.js +1 -1
  166. package/dist/components/bcm-expansion-panel.js +1 -1
  167. package/dist/components/bcm-input-dropdown.js +1 -1
  168. package/dist/components/bcm-radio-group.js +1 -1
  169. package/dist/components/bcm-range.js +1 -1
  170. package/dist/components/bcm-switch.js +1 -1
  171. package/dist/components/bcm-tab-group.js +2 -2
  172. package/dist/components/bcm-tab-item-header.js +5 -5
  173. package/dist/components/button.js +16 -16
  174. package/dist/components/caption-template.js +2 -2
  175. package/dist/components/chip.js +4 -4
  176. package/dist/components/empty.js +1 -1
  177. package/dist/components/generate.js +1 -1
  178. package/dist/components/input-template.js +1 -1
  179. package/dist/components/input.js +1 -1
  180. package/dist/components/label.js +1 -1
  181. package/dist/components/list.js +14 -20
  182. package/dist/components/menu.js +1 -1
  183. package/dist/components/radio.js +1 -1
  184. package/dist/components/tooltip.js +1 -1
  185. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-82aa9212.js} +1 -1
  186. package/dist/esm/bcm-a50d55ba.js +1 -1
  187. package/dist/esm/bcm-accordion_45.entry.js +23899 -0
  188. package/dist/esm/bcm-alert.entry.js +8 -8
  189. package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
  190. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
  191. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  192. package/dist/esm/bcm-box.entry.js +1 -1
  193. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  194. package/dist/esm/bcm-caption.entry.js +14 -14
  195. package/dist/esm/bcm-card.entry.js +10 -10
  196. package/dist/esm/{bcm-checkbox-lite_9.entry.js → bcm-checkbox-lite_8.entry.js} +10 -29
  197. package/dist/esm/bcm-chip-group.entry.js +15 -15
  198. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  199. package/dist/esm/bcm-collapse.entry.js +58 -0
  200. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  201. package/dist/esm/bcm-content.entry.js +1 -1
  202. package/dist/esm/bcm-date-picker.entry.js +9 -9
  203. package/dist/esm/bcm-datetime-picker.entry.js +13 -13
  204. package/dist/esm/bcm-default.entry.js +5 -5
  205. package/dist/esm/bcm-error-layout.entry.js +4 -4
  206. package/dist/esm/bcm-form-2.entry.js +8 -8
  207. package/dist/esm/bcm-form-group.entry.js +1 -1
  208. package/dist/esm/bcm-input-custom.entry.js +6 -6
  209. package/dist/esm/bcm-input-dropdown.entry.js +15 -15
  210. package/dist/esm/bcm-link.entry.js +4 -4
  211. package/dist/esm/bcm-message.entry.js +3 -3
  212. package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
  213. package/dist/esm/bcm-modal-2-header.entry.js +11 -11
  214. package/dist/esm/bcm-modal-2.entry.js +13 -13
  215. package/dist/esm/bcm-modal.entry.js +9 -9
  216. package/dist/esm/bcm-notification.entry.js +3 -3
  217. package/dist/esm/bcm-number-input.entry.js +14 -14
  218. package/dist/esm/bcm-old-input.entry.js +5 -5
  219. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  220. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  221. package/dist/esm/bcm-popover.entry.js +12 -12
  222. package/dist/esm/bcm-range.entry.js +9 -9
  223. package/dist/esm/bcm-result.entry.js +3 -3
  224. package/dist/esm/bcm-select-group.entry.js +3 -3
  225. package/dist/esm/bcm-select-option.entry.js +3 -3
  226. package/dist/esm/bcm-select.entry.js +5 -5
  227. package/dist/esm/bcm-skeleton.entry.js +11 -11
  228. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  229. package/dist/esm/bcm-tab.entry.js +3 -3
  230. package/dist/esm/bcm-table.entry.js +12 -12
  231. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  232. package/dist/esm/bcm-tabs.entry.js +4 -4
  233. package/dist/esm/bcm-tag.entry.js +9 -9
  234. package/dist/esm/bcm-time-picker.entry.js +9 -9
  235. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  236. package/dist/esm/bcm-timeline.entry.js +3 -3
  237. package/dist/esm/bcm-toast.entry.js +9 -9
  238. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  239. package/dist/esm/bromcom-ui.js +5 -5
  240. package/dist/esm/{caption-template-caa3bc94.js → caption-template-d7953d13.js} +4 -4
  241. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-3b528349.js} +2 -2
  242. package/dist/esm/{colors-e1c31f79.js → colors-c530a5b8.js} +1 -1
  243. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  244. package/dist/esm/floating-ui-3f4394da.js +1 -1
  245. package/dist/esm/{generate-aa296c81.js → generate-6502409d.js} +2 -2
  246. package/dist/esm/{global-563ca119.js → global-030f848d.js} +2 -2
  247. package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
  248. package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
  249. package/dist/esm/{index-b84bc8c9.js → index-f549811f.js} +1 -1
  250. package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
  251. package/dist/esm/{label-template-737576c4.js → label-template-a26f76c0.js} +4 -4
  252. package/dist/esm/loader.js +5 -5
  253. package/dist/esm/{lodash-0a4396a7.js → lodash-4197be99.js} +1 -1
  254. package/dist/esm/{number-helper-e8247918.js → number-helper-f5777f14.js} +1 -1
  255. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  256. package/dist/esm/old-bcm-popover.entry.js +7 -7
  257. package/dist/esm/{package-c562e2bc.js → package-e3b09e0c.js} +1 -1
  258. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-d12fec40.js} +1 -1
  259. package/dist/esm/{slot-template-08ed1fe4.js → slot-template-2a19b2db.js} +2 -2
  260. package/dist/esm/{string-helper-85990695.js → string-helper-3592bdc2.js} +2 -2
  261. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  262. package/dist/esm/{validators-e59b7cea.js → validators-f574d105.js} +1 -1
  263. package/dist/types/templates/list-template.d.ts +1 -0
  264. package/package.json +1 -1
  265. package/dist/bromcom-ui/p-141262d7.entry.js +0 -5
  266. package/dist/bromcom-ui/p-176fa507.entry.js +0 -5
  267. package/dist/bromcom-ui/p-1a33d7a3.entry.js +0 -5
  268. package/dist/bromcom-ui/p-1efcd950.entry.js +0 -5
  269. package/dist/bromcom-ui/p-2611874e.entry.js +0 -5
  270. package/dist/bromcom-ui/p-2dd1f11a.entry.js +0 -5
  271. package/dist/bromcom-ui/p-3089e9c7.js +0 -5
  272. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  273. package/dist/bromcom-ui/p-3637c5db.entry.js +0 -5
  274. package/dist/bromcom-ui/p-37ab344d.entry.js +0 -5
  275. package/dist/bromcom-ui/p-3945c3e7.entry.js +0 -5
  276. package/dist/bromcom-ui/p-3ec0b26c.entry.js +0 -5
  277. package/dist/bromcom-ui/p-4213ba24.js +0 -5
  278. package/dist/bromcom-ui/p-4691bf0f.entry.js +0 -5
  279. package/dist/bromcom-ui/p-4d8067b9.entry.js +0 -5
  280. package/dist/bromcom-ui/p-51383c50.js +0 -5
  281. package/dist/bromcom-ui/p-5199f537.entry.js +0 -5
  282. package/dist/bromcom-ui/p-585d341b.entry.js +0 -5
  283. package/dist/bromcom-ui/p-5cea31a3.entry.js +0 -5
  284. package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
  285. package/dist/bromcom-ui/p-67ed466a.entry.js +0 -5
  286. package/dist/bromcom-ui/p-695e5871.entry.js +0 -5
  287. package/dist/bromcom-ui/p-69e3c566.entry.js +0 -5
  288. package/dist/bromcom-ui/p-6a4a490b.entry.js +0 -5
  289. package/dist/bromcom-ui/p-6cfffdc8.entry.js +0 -5
  290. package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
  291. package/dist/bromcom-ui/p-726b628d.entry.js +0 -5
  292. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  293. package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
  294. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  295. package/dist/bromcom-ui/p-8a645ca2.entry.js +0 -5
  296. package/dist/bromcom-ui/p-8ba86cba.js +0 -5
  297. package/dist/bromcom-ui/p-8c0b82e1.entry.js +0 -5
  298. package/dist/bromcom-ui/p-93063026.js +0 -5
  299. package/dist/bromcom-ui/p-9bbafbfe.js +0 -5
  300. package/dist/bromcom-ui/p-9c274c1f.entry.js +0 -5
  301. package/dist/bromcom-ui/p-9f03e075.entry.js +0 -5
  302. package/dist/bromcom-ui/p-a20f2ff9.entry.js +0 -5
  303. package/dist/bromcom-ui/p-a22836ef.entry.js +0 -5
  304. package/dist/bromcom-ui/p-aeba90b4.entry.js +0 -5
  305. package/dist/bromcom-ui/p-b5986380.entry.js +0 -5
  306. package/dist/bromcom-ui/p-be6595a2.entry.js +0 -5
  307. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  308. package/dist/bromcom-ui/p-c4df05e3.entry.js +0 -5
  309. package/dist/bromcom-ui/p-c92ac41f.entry.js +0 -5
  310. package/dist/bromcom-ui/p-c9efd0e2.entry.js +0 -5
  311. package/dist/bromcom-ui/p-dd839e25.entry.js +0 -5
  312. package/dist/bromcom-ui/p-ddd60d87.entry.js +0 -5
  313. package/dist/bromcom-ui/p-e3acd567.entry.js +0 -5
  314. package/dist/bromcom-ui/p-e8c633dd.js +0 -5
  315. package/dist/bromcom-ui/p-eb1e9f42.entry.js +0 -5
  316. package/dist/bromcom-ui/p-ed8396f0.entry.js +0 -5
  317. package/dist/bromcom-ui/p-f04265d7.entry.js +0 -5
  318. package/dist/bromcom-ui/p-f2ea82b7.entry.js +0 -5
  319. package/dist/bromcom-ui/p-f81d9313.entry.js +0 -5
  320. package/dist/bromcom-ui/p-f9445308.entry.js +0 -5
  321. package/dist/bromcom-ui/p-f9688a5c.entry.js +0 -5
  322. package/dist/bromcom-ui/p-fc9f35cb.entry.js +0 -5
  323. package/dist/bromcom-ui/p-fff23008.entry.js +0 -5
  324. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  325. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  326. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  327. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  328. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  329. package/dist/cjs/bcm-button_2.cjs.entry.js +0 -419
  330. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  331. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  332. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  333. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  334. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  335. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  336. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  337. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  338. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  339. package/dist/cjs/bcm-form.cjs.entry.js +0 -492
  340. package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
  341. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  342. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  343. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  344. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -135
  345. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2563
  346. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  347. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  348. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  349. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  350. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  351. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  352. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9391
  353. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  354. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  355. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  356. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  357. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  358. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  359. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  360. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  361. package/dist/cjs/index-3d67f613.js +0 -1610
  362. package/dist/cjs/index-e05a7c6f.js +0 -545
  363. package/dist/cjs/input-template-00dccb71.js +0 -92
  364. package/dist/cjs/json-parse-decarator-125db4bc.js +0 -40
  365. package/dist/cjs/moment-d06b012f.js +0 -4601
  366. package/dist/cjs/stepper-states-e9ac0c74.js +0 -85
  367. package/dist/cjs/tooltip-helper-3b1aafc6.js +0 -158
  368. package/dist/esm/bcm-accordion.entry.js +0 -70
  369. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  370. package/dist/esm/bcm-attendance.entry.js +0 -31
  371. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  372. package/dist/esm/bcm-button-group.entry.js +0 -88
  373. package/dist/esm/bcm-button_2.entry.js +0 -414
  374. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  375. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  376. package/dist/esm/bcm-chip.entry.js +0 -87
  377. package/dist/esm/bcm-color-input.entry.js +0 -73
  378. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  379. package/dist/esm/bcm-date.entry.js +0 -178
  380. package/dist/esm/bcm-drawer.entry.js +0 -92
  381. package/dist/esm/bcm-dropdown.entry.js +0 -115
  382. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  383. package/dist/esm/bcm-form.entry.js +0 -488
  384. package/dist/esm/bcm-icon.entry.js +0 -35
  385. package/dist/esm/bcm-input_2.entry.js +0 -545
  386. package/dist/esm/bcm-item.entry.js +0 -68
  387. package/dist/esm/bcm-items.entry.js +0 -45
  388. package/dist/esm/bcm-label_2.entry.js +0 -130
  389. package/dist/esm/bcm-list_3.entry.js +0 -2557
  390. package/dist/esm/bcm-menu.entry.js +0 -147
  391. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  392. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  393. package/dist/esm/bcm-progress.entry.js +0 -158
  394. package/dist/esm/bcm-radio-group.entry.js +0 -157
  395. package/dist/esm/bcm-radio.entry.js +0 -61
  396. package/dist/esm/bcm-rc-picker.entry.js +0 -9387
  397. package/dist/esm/bcm-shortcut.entry.js +0 -61
  398. package/dist/esm/bcm-step.entry.js +0 -85
  399. package/dist/esm/bcm-stepper.entry.js +0 -236
  400. package/dist/esm/bcm-switch.entry.js +0 -147
  401. package/dist/esm/bcm-tab-group.entry.js +0 -206
  402. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  403. package/dist/esm/bcm-tab-item.entry.js +0 -87
  404. package/dist/esm/bcm-text.entry.js +0 -45
  405. package/dist/esm/index-a6d9d0af.js +0 -541
  406. package/dist/esm/index-c4568336.js +0 -1594
  407. package/dist/esm/input-template-bb622a20.js +0 -90
  408. package/dist/esm/json-parse-decarator-42f19daf.js +0 -38
  409. package/dist/esm/moment-15cd9198.js +0 -4598
  410. package/dist/esm/stepper-states-97d80ddf.js +0 -83
  411. package/dist/esm/tooltip-helper-202b042a.js +0 -156
@@ -1,545 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
6
- import { G as Generate } from './generate-aa296c81.js';
7
- import { N as NumberHelper } from './number-helper-e8247918.js';
8
- import { S as StringHelper } from './string-helper-85990695.js';
9
- import { V as Validators } from './validators-e59b7cea.js';
10
- import { B as Bcm } from './bcm-a50d55ba.js';
11
- import { C as CaptionTemplate } from './caption-template-caa3bc94.js';
12
- import { I as InputTemplate } from './input-template-bb622a20.js';
13
- import { c as classnames } from './index-b84bc8c9.js';
14
- import { d as delay } from './utils-b3338faf.js';
15
- import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
16
- import './package-c562e2bc.js';
17
- import './colors-e1c31f79.js';
18
- import './_commonjsHelpers-be0d4ec8.js';
19
- import './types-6f06fa1a.js';
20
-
21
- 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}";
22
-
23
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
24
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
25
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
26
- r = Reflect.decorate(decorators, target, key, desc);
27
- else
28
- for (var i = decorators.length - 1; i >= 0; i--)
29
- if (d = decorators[i])
30
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
31
- return c > 3 && r && Object.defineProperty(target, key, r), r;
32
- };
33
- const BcmInput = class {
34
- constructor(hostRef) {
35
- registerInstance(this, hostRef);
36
- this.focus = createEvent(this, "bcm-focus", 7);
37
- this.blur = createEvent(this, "bcm-blur", 7);
38
- this.clear = createEvent(this, "bcm-clear", 7);
39
- this.change = createEvent(this, "bcm-change", 7);
40
- this.input = createEvent(this, "bcm-input", 7);
41
- this.isBlur = false;
42
- this._id = Generate.UID();
43
- this._internal_id = Generate.UID();
44
- this.value = '';
45
- this.size = Bcm.Size.medium;
46
- this.label = undefined;
47
- this.pattern = undefined;
48
- this.tooltip = undefined;
49
- this.placeholder = undefined;
50
- this.disabled = false;
51
- this.readonly = false;
52
- this.clearable = false;
53
- this.autocomplete = false;
54
- this.name = undefined;
55
- this.type = Bcm.InputType.text;
56
- this.hidden = false;
57
- this.required = false;
58
- this.fullWidth = false;
59
- this.noDefaultIcon = undefined;
60
- this.disableWatchValue = false // datetimepicker
61
- ;
62
- this.passwordToggle = false // type password
63
- ;
64
- this.maxLength = null;
65
- this.minLength = null;
66
- this.unitPrefix = null;
67
- this.unit = undefined;
68
- this.decimal = true;
69
- this.min = undefined;
70
- this.max = undefined;
71
- this.step = undefined;
72
- this.caption = undefined;
73
- this.noCaption = false;
74
- this.captionType = Bcm.Status.default;
75
- this.captionError = undefined;
76
- this.customErrorMessage = undefined;
77
- this._prefix = undefined;
78
- this._suffix = undefined;
79
- this.captionCache = undefined;
80
- this.captionTypeCache = undefined;
81
- this.inValid = false;
82
- this.valueCache = '';
83
- this.focused = false;
84
- this.isPasswordVisible = false;
85
- }
86
- connectedCallback() {
87
- this.valueCache = this.value;
88
- this.captionCache = this.caption;
89
- this.captionTypeCache = this.captionType;
90
- }
91
- componentWillRender() {
92
- const { type, isBlur, value } = this;
93
- if (value) {
94
- this.value.length > 0 && (this.checkPattern());
95
- switch (type) {
96
- case "number":
97
- {
98
- !this.checkValid("number") && (this.validationRange());
99
- }
100
- break;
101
- case "email":
102
- {
103
- isBlur && (this.checkValid("email"));
104
- }
105
- break;
106
- case "tel":
107
- {
108
- isBlur && (this.checkValid("phone"));
109
- }
110
- break;
111
- case "text":
112
- {
113
- isBlur && (this.checkLength());
114
- }
115
- break;
116
- }
117
- }
118
- else {
119
- !this.required && (this.resetCaption());
120
- }
121
- }
122
- async onBcmFocus() {
123
- this.inputElement.focus();
124
- }
125
- async onBcmBlur() {
126
- this.inputElement.blur();
127
- }
128
- async onBcmSelect() {
129
- this.inputElement.select();
130
- }
131
- async set(data) {
132
- await this.setValue(data);
133
- }
134
- async get() {
135
- return this.value || null;
136
- }
137
- async setValue(value) {
138
- this.inputElement.value = value;
139
- this.handleChange();
140
- return value;
141
- }
142
- async setClear() {
143
- this.inputElement.value = '';
144
- this.value = '';
145
- await delay(10);
146
- return Promise.resolve();
147
- }
148
- async resetCaption() {
149
- await delay(10);
150
- this.caption = this.captionCache;
151
- this.captionType = this.captionTypeCache;
152
- this.captionError = null;
153
- this.inValid = false;
154
- await delay(10);
155
- return Promise.resolve();
156
- }
157
- async getValue() {
158
- return this.value;
159
- }
160
- watchValue(newValue) {
161
- this.inputElement.value = newValue;
162
- if (!this.disableWatchValue && this.type != "number") {
163
- this.handleChange();
164
- }
165
- }
166
- listenKeyDown(e) {
167
- if (!this.disabled && !this.readonly) {
168
- this.onBcmFocus();
169
- if (this.type == "number") {
170
- var which = e.which || 0;
171
- var key = e.key;
172
- if (which == 38) { // up arrow
173
- e.preventDefault(),
174
- this.stepUpOrDown('up');
175
- }
176
- if (which == 40) { // down arrow
177
- e.preventDefault(),
178
- this.stepUpOrDown('down');
179
- }
180
- if ((which == 190 || which == 110 || key == ".") && this.value.indexOf(".") > -1) { //.
181
- e.preventDefault();
182
- }
183
- if ((which == 189 || which == 109 || key == "-")) { //-
184
- if (this.value.charAt(0) == '-' || this.value.indexOf("-") > -1) {
185
- e.preventDefault();
186
- }
187
- }
188
- }
189
- }
190
- }
191
- handleFocus() {
192
- this.focused = true;
193
- this.focus.emit();
194
- this.whatchHasFocus();
195
- }
196
- handleBlur() {
197
- this.focused = false;
198
- this.isBlur = true;
199
- this.whatchHasFocus();
200
- this.blur.emit();
201
- }
202
- handleChange() {
203
- this.valueSync();
204
- }
205
- handleInput() {
206
- if (this.type == "number" && this.maxLength) {
207
- const inputValue = this.inputElement.value;
208
- if (inputValue && inputValue.length > 0 && inputValue.length > this.maxLength) {
209
- this.inputElement.value = inputValue.substring(0, this.maxLength);
210
- }
211
- }
212
- this.valueSync();
213
- }
214
- valueSync() {
215
- if (this.value != this.inputElement.value) {
216
- this.value = this.inputElement.value;
217
- this.change.emit(this.value);
218
- return true;
219
- }
220
- this.input.emit(this.value);
221
- return false;
222
- }
223
- handleClear(e) {
224
- this.inputElement.value = '';
225
- this.value = '';
226
- this.inputElement.focus();
227
- this.clear.emit(e);
228
- this.change.emit(this.value);
229
- e.stopPropagation();
230
- }
231
- changePasswordVisibility() {
232
- this.isPasswordVisible = !this.isPasswordVisible;
233
- }
234
- setCaption(caption = null, captionType = null) {
235
- this.caption = caption || this.captionCache;
236
- this.captionType = captionType || this.captionTypeCache;
237
- this.captionError = captionType == "error" ? caption : null;
238
- }
239
- stepUpOrDown(type) {
240
- if (!this.inValid && !this.disabled && !this.readonly) {
241
- let step = +(this.step) || 1;
242
- let val = +(this.value);
243
- if (type == 'up') {
244
- val = +(val + step);
245
- }
246
- else {
247
- val = +(val - step);
248
- }
249
- this.value = val.toString();
250
- this.change.emit(this.value);
251
- }
252
- }
253
- validationRange() {
254
- const { min, max, value } = this;
255
- if (value !== undefined) {
256
- if ((min !== undefined) && (max !== undefined)) {
257
- if (value < min || value > max) {
258
- this.setCaption(StringHelper.getMessage('between', [min, max]), "error");
259
- return false;
260
- }
261
- }
262
- else if (min !== undefined) {
263
- if (value < min) {
264
- this.setCaption(StringHelper.getMessage('min', [min]), "error");
265
- return false;
266
- }
267
- }
268
- else if (max !== undefined) {
269
- if (value > max) {
270
- this.setCaption(StringHelper.getMessage('max', [max]), "error");
271
- return false;
272
- }
273
- }
274
- }
275
- this.setCaption();
276
- return true;
277
- }
278
- checkLength() {
279
- const { minLength, maxLength, value } = this;
280
- if (minLength && maxLength) {
281
- if (value.length < minLength || value.length > maxLength) {
282
- this.setCaption(StringHelper.getMessage('betweenlength', [minLength, maxLength]), "error");
283
- this.inValid = true;
284
- }
285
- else {
286
- this.setCaption();
287
- this.inValid = false;
288
- }
289
- }
290
- else if (minLength) {
291
- if (value.length < minLength) {
292
- this.setCaption(StringHelper.getMessage('minlength', [minLength]), "error");
293
- this.inValid = true;
294
- }
295
- else {
296
- this.setCaption();
297
- this.inValid = false;
298
- }
299
- }
300
- else if (maxLength) {
301
- if (value.length > maxLength) {
302
- this.setCaption(StringHelper.getMessage('maxlength', [maxLength]), "error");
303
- this.inValid = true;
304
- }
305
- else {
306
- this.setCaption();
307
- this.inValid = false;
308
- }
309
- }
310
- }
311
- checkPattern() {
312
- const { pattern, value } = this;
313
- if (pattern) {
314
- if (Validators.pattern(value, pattern)) {
315
- this.setCaption();
316
- this.inValid = false;
317
- }
318
- else {
319
- this.setCaption(StringHelper.getMessage('pattern'), "error");
320
- this.inValid = true;
321
- }
322
- }
323
- }
324
- checkValid(type) {
325
- const { value } = this;
326
- if (Validators.isValidate(value, type)) {
327
- this.setCaption();
328
- this.inValid = false;
329
- }
330
- else {
331
- this.setCaption(StringHelper.getMessage(type), "error");
332
- this.inValid = true;
333
- }
334
- return this.inValid;
335
- }
336
- whatchHasFocus() {
337
- const { type, focused, valueCache, inValid } = this;
338
- if (type == Bcm.InputType.number && inValid) {
339
- if (focused) {
340
- this.value = '';
341
- }
342
- else {
343
- if (!StringHelper.isNullOrEmpty(this.value)) {
344
- this.value = this.value ? this.fixToNumber(this.value) : '';
345
- }
346
- else {
347
- this.value = valueCache;
348
- }
349
- }
350
- }
351
- }
352
- fixToNumber(val) {
353
- if (val) {
354
- const decLen = NumberHelper.getDecimalLength(this.step);
355
- return decLen > 0 ? NumberHelper.parseFloatFixed(val, decLen) : val;
356
- }
357
- return val;
358
- }
359
- eyeDropper() {
360
- const eyeDropper = new window.EyeDropper();
361
- eyeDropper
362
- .open()
363
- .then((color) => {
364
- this.setValue(color.sRGBHex);
365
- })
366
- .catch((error) => {
367
- if (error.name === "NotAllowedError") {
368
- console.log("Permission to access sensor was denied.");
369
- }
370
- else if (error.name === "NotSupportedError") {
371
- console.log("Sensor not supported.");
372
- }
373
- });
374
- }
375
- isEyeDropperSupported() {
376
- return typeof window !== "undefined" && "EyeDropper" in window;
377
- }
378
- toggleLinked() {
379
- const linkedElement = document.getElementById(`${this._id}-linked`);
380
- if (linkedElement) {
381
- linkedElement.toggle();
382
- }
383
- }
384
- render() {
385
- 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;
386
- const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
387
- const hostClasses = classnames('bcm-input', `bcm-input__container--${size}`, {
388
- hidden,
389
- // 'no-margin': noMargin,
390
- 'full-width': fullWidth
391
- });
392
- 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 &&
393
- 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) }))));
394
- }
395
- static get watchers() { return {
396
- "value": ["watchValue"]
397
- }; }
398
- };
399
- __decorate$1([
400
- IsLoad()
401
- ], BcmInput.prototype, "inputElement", void 0);
402
- BcmInput.style = inputCss;
403
-
404
- var ResizeType;
405
- (function (ResizeType) {
406
- ResizeType["none"] = "none";
407
- ResizeType["both"] = "both";
408
- ResizeType["horizontal"] = "horizontal";
409
- ResizeType["vertical"] = "vertical";
410
- ResizeType["initial"] = "initial";
411
- ResizeType["inherit"] = "inherit";
412
- })(ResizeType || (ResizeType = {}));
413
-
414
- 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}";
415
-
416
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
417
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
418
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
419
- r = Reflect.decorate(decorators, target, key, desc);
420
- else
421
- for (var i = decorators.length - 1; i >= 0; i--)
422
- if (d = decorators[i])
423
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
424
- return c > 3 && r && Object.defineProperty(target, key, r), r;
425
- };
426
- const BcmTextarea = class {
427
- constructor(hostRef) {
428
- registerInstance(this, hostRef);
429
- this.focus = createEvent(this, "bcm-focus", 7);
430
- this.blur = createEvent(this, "bcm-blur", 7);
431
- this.clear = createEvent(this, "bcm-clear", 7);
432
- this.change = createEvent(this, "bcm-change", 7);
433
- this.input = createEvent(this, "bcm-input", 7);
434
- this._id = Generate.UID();
435
- this._internal_id = Generate.UID();
436
- this.hidden = false;
437
- this.value = undefined;
438
- this.placeholder = undefined;
439
- this.label = undefined;
440
- this.name = undefined;
441
- this.required = false;
442
- this.caption = undefined;
443
- this.noCaption = false;
444
- this.captionError = undefined;
445
- this.captionType = Bcm.Status.default;
446
- this.rows = 3;
447
- this.size = Bcm.Size.medium;
448
- this.disabled = undefined;
449
- this.readonly = false;
450
- this.clearable = undefined;
451
- this.resize = ResizeType.vertical;
452
- this.fullWidth = false;
453
- this.maxLength = undefined;
454
- this.focused = false;
455
- this.captionCache = undefined;
456
- this.captionTypeCache = undefined;
457
- }
458
- connectedCallback() {
459
- this.captionCache = this.caption;
460
- this.captionTypeCache = this.captionType;
461
- }
462
- async onBcmFocus() {
463
- this.textarea.focus();
464
- }
465
- async onBcmBlur() {
466
- this.textarea.blur();
467
- }
468
- async onBcmSelect() {
469
- this.textarea.select();
470
- }
471
- async set(data) {
472
- await this.setValue(data);
473
- }
474
- async get() {
475
- return this.value || null;
476
- }
477
- async setValue(value) {
478
- this.textarea.value = value;
479
- this.value = value;
480
- this.handleChange();
481
- return value;
482
- }
483
- async setClear() {
484
- this.textarea.value = '';
485
- this.value = '';
486
- await delay(10);
487
- return Promise.resolve();
488
- }
489
- async resetCaption() {
490
- await delay(10);
491
- this.caption = this.captionCache;
492
- this.captionType = this.captionTypeCache;
493
- this.captionError = null;
494
- await delay(10);
495
- return Promise.resolve();
496
- }
497
- async getValue() {
498
- return this.value;
499
- }
500
- watchValue(newValue) {
501
- this.textarea.value = newValue;
502
- this.handleChange();
503
- }
504
- handleFocus() {
505
- this.focused = true;
506
- this.focus.emit();
507
- }
508
- handleBlur() {
509
- this.focused = false;
510
- this.blur.emit();
511
- }
512
- handleChange() {
513
- this.value = this.textarea.value;
514
- this.change.emit(this.value);
515
- }
516
- handleInput() {
517
- this.value = this.textarea.value;
518
- this.input.emit(this.value);
519
- }
520
- handleClear(e) {
521
- this.textarea.value = '';
522
- this.value = '';
523
- this.clear.emit();
524
- this.textarea.focus();
525
- e.stopPropagation();
526
- }
527
- render() {
528
- const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
529
- const hostClasses = classnames('bcm-input', {
530
- hidden,
531
- 'full-width': fullWidth,
532
- });
533
- return (h(Host, { class: hostClasses }, label && h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { elementType: 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 }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
534
- }
535
- get el() { return getElement(this); }
536
- static get watchers() { return {
537
- "value": ["watchValue"]
538
- }; }
539
- };
540
- __decorate([
541
- IsLoad()
542
- ], BcmTextarea.prototype, "el", void 0);
543
- BcmTextarea.style = textareaCss;
544
-
545
- export { BcmInput as bcm_input, BcmTextarea as bcm_textarea };
@@ -1,68 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
6
- import { G as Generate } from './generate-aa296c81.js';
7
- import { B as Bcm } from './bcm-a50d55ba.js';
8
- import { c as classnames } from './index-b84bc8c9.js';
9
- import { C as ColorHelper } from './color-helper-c4fa9ebc.js';
10
- import './package-c562e2bc.js';
11
- import './colors-e1c31f79.js';
12
- import './_commonjsHelpers-be0d4ec8.js';
13
- import './colors-1d7854ea.js';
14
- import './utils-b3338faf.js';
15
-
16
- 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}";
17
-
18
- const BcmItem = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- this._id = Generate.UID();
22
- this.size = Bcm.Size.medium;
23
- this.color = undefined;
24
- this.static = false;
25
- }
26
- setColor(color = this.color) {
27
- if (!color)
28
- return;
29
- const prefix = `--bcm-item`;
30
- if (color == "white") {
31
- return {
32
- [`${prefix}-color-default`]: ColorHelper.dsColor('slate-600'),
33
- [`${prefix}-color-hover`]: ColorHelper.dsColor('slate-600'),
34
- [`${prefix}-color-focus-visible`]: ColorHelper.dsColor('slate-600'),
35
- [`${prefix}-color-active`]: ColorHelper.dsColor('slate-600'),
36
- [`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
37
- [`${prefix}-background-color-default`]: ColorHelper.dsColor(this.static ? 'white' : 'white'),
38
- [`${prefix}-background-color-hover`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-100'),
39
- [`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-200'),
40
- [`${prefix}-background-color-active`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-300'),
41
- [`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
42
- };
43
- }
44
- return {
45
- [`${prefix}-color-default`]: ColorHelper.dsColor('white'),
46
- [`${prefix}-color-hover`]: ColorHelper.dsColor('white'),
47
- [`${prefix}-color-focus-visible`]: ColorHelper.dsColor('white'),
48
- [`${prefix}-color-active`]: ColorHelper.dsColor('white'),
49
- [`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
50
- [`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-500'),
51
- [`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-600'),
52
- [`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-700'),
53
- [`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-800'),
54
- [`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
55
- };
56
- }
57
- disconnectedCallback() {
58
- // this.el.remove()
59
- }
60
- render() {
61
- const hostClasses = classnames('bcm-item', `bcm-item-size-${this.size}`);
62
- return (h(Host, { class: hostClasses, style: this.setColor() }, h("slot", null)));
63
- }
64
- get el() { return getElement(this); }
65
- };
66
- BcmItem.style = itemCss;
67
-
68
- export { BcmItem as bcm_item };
@@ -1,45 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-4614b7f0.js';
6
- import { G as Generate, s as snq } from './generate-aa296c81.js';
7
- import { S as StringHelper } from './string-helper-85990695.js';
8
- import './package-c562e2bc.js';
9
- import './colors-e1c31f79.js';
10
- import './_commonjsHelpers-be0d4ec8.js';
11
- import './bcm-a50d55ba.js';
12
-
13
- const BcmItems = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this.bcmItems = createEvent(this, "bcm-items", 7);
17
- this._id = Generate.UID();
18
- }
19
- connectedCallback() {
20
- if (this.el.children && this.el.children.length > 0) {
21
- let slots = this.nestedItems(this.el);
22
- this.bcmItems.emit(slots);
23
- this.el.remove();
24
- }
25
- }
26
- mapItems(element) {
27
- var _a;
28
- const item = element;
29
- const textContent = (_a = item === null || item === void 0 ? void 0 : item.innerHTML) === null || _a === void 0 ? void 0 : _a.replace(/<bcm-item>.*<\/bcm-item>/g, '').replace(/<bcm-item .*>.*<\/bcm-item>/g, '').replace(/<!--(.|\s)*?-->/g, '').trim();
30
- const checkAttr = (attr) => StringHelper.elementBooleanCheck(element.getAttribute(attr));
31
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || Generate.UID(), text: element.getAttribute('text') || textContent }, (element.innerHTML.trim() && { isHtmlContent: element.textContent.length > 0 ? (element.innerHTML.trim()) : null })), (checkAttr('disabled') && { disabled: checkAttr('disabled') })), (checkAttr('selected') && { selected: checkAttr('selected') })), (checkAttr('hidden') && { hidden: checkAttr('hidden') })), (checkAttr('checked') && { checked: checkAttr('checked') })), (checkAttr('readonly') && { readonly: checkAttr('readonly') })), (checkAttr('active') && { active: checkAttr('active') })), (checkAttr('icon') && { icon: element.getAttribute('icon') })), (checkAttr('link') && { link: element.getAttribute('link') }));
32
- }
33
- nestedItems(element) {
34
- return snq(() => Array.from(element === null || element === void 0 ? void 0 : element.children).map((child) => {
35
- var _a;
36
- return (Object.assign(Object.assign({}, (((_a = child === null || child === void 0 ? void 0 : child.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'bcm-item' && this.mapItems(child))), { items: this.nestedItems(child) }));
37
- }), []);
38
- }
39
- render() {
40
- return h("slot", null);
41
- }
42
- get el() { return getElement(this); }
43
- };
44
-
45
- export { BcmItems as bcm_items };