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,415 +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 index$2 = require('./index-95ae50d0.js');
11
- const generate = require('./generate-c2e5f662.js');
12
- const bcm = require('./bcm-489c9b1a.js');
13
- const utils = require('./utils-fc077139.js');
14
- const index$1 = require('./index-d321de96.js');
15
- const labelTemplate = require('./label-template-94b3d775.js');
16
- const isLoadDecorator = require('./is-load-decorator-15036f37.js');
17
- require('./_commonjsHelpers-ed84c3ca.js');
18
- require('./package-c3fb44cd.js');
19
- require('./colors-078851ec.js');
20
-
21
- const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
22
- return (index.h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
23
- return (index.h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, readonly: checkbox.readonly, required: checkbox.required, noCaption: checkbox.noCaption, "no-margin": true, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && !checkbox.readonly && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
24
- })));
25
- };
26
-
27
- const { state } = index$1.createStore({
28
- group: new Map(),
29
- allChecked: true,
30
- allUnchecked: true,
31
- changeInderminate: {},
32
- });
33
- const setValue = async ({ fullWidth, optionType, buttonStyle, size, defaultCheckedItems, el, id, label, required, captionType, hidden, direction, childs, indeterminate, gap, noCaption, }) => {
34
- if (el) {
35
- state.group.set(id, {
36
- fullWidth,
37
- optionType,
38
- buttonStyle,
39
- size,
40
- defaultCheckedItems,
41
- label,
42
- required,
43
- captionType,
44
- hidden,
45
- direction,
46
- indeterminate,
47
- gap,
48
- noCaption,
49
- childs: childs === null || childs === void 0 ? void 0 : childs.map(child => {
50
- child.checked && (state.allUnchecked = false);
51
- !child.checked && (state.allChecked = false);
52
- // fullWidth && (fullWidth == 'flex' ? (child.style.flex = 'auto') : (child.style.width = '100%'));
53
- optionType && (child.optionType = optionType);
54
- buttonStyle && (child.buttonStyle = buttonStyle);
55
- size && (child.size = size);
56
- defaultCheckedItems && defaultCheckedItems.find(e => e === child.name) && (child.checked = true);
57
- child.noCaption = noCaption;
58
- return {
59
- id: child.id || generate.Generate.UID(),
60
- checked: child.checked || false,
61
- name: child.name,
62
- size: child.size,
63
- buttonStyle: child.buttonStyle,
64
- optionType: child.optionType,
65
- style: child.style,
66
- noCaption: child.noCaption,
67
- color: child.color,
68
- disabled: child.disabled,
69
- readonly: child.readonly,
70
- label: child.label || child.name,
71
- slot: child.slot || generate.snq(() => child.querySelector('.slot').textContent, child.textContent),
72
- required: child.required || required,
73
- el: child,
74
- captionType,
75
- hidden,
76
- };
77
- }),
78
- indeterminateState: !state.allChecked && !state.allUnchecked ? 'indeterminate' : state.allChecked ? 'determinate' : 'uncheck',
79
- });
80
- }
81
- };
82
- const getProperty = id => {
83
- return generate.snq(() => state.group.get(id), {});
84
- };
85
- const getValue = (id, name) => {
86
- var _a;
87
- const group = getProperty(id);
88
- let value = {};
89
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
90
- if (name) {
91
- if (child.name === name) {
92
- value[child.name] = {
93
- value: !!child.checked,
94
- name: child.name,
95
- };
96
- }
97
- }
98
- else {
99
- value[child.name] = {
100
- value: !!child.checked,
101
- name: child.name,
102
- };
103
- }
104
- });
105
- return value;
106
- };
107
- const getCheckedList = id => {
108
- var _a;
109
- const group = getProperty(id);
110
- let value = {};
111
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
112
- if (child.checked === true) {
113
- value[child.name] = {
114
- value: !!child.checked,
115
- name: child.name,
116
- };
117
- }
118
- });
119
- return value;
120
- };
121
- const setClear = id => {
122
- var _a;
123
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
124
- child.checked = false;
125
- });
126
- checkInderminate(id);
127
- };
128
- const setCheckedItems = (id, items, checked, reset) => {
129
- var _a;
130
- const checkedItems = items && (typeof items == 'string' ? JSON.parse(items) : items);
131
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
132
- if (checkedItems) {
133
- const checkedItem = checkedItems.find(e => e === child.name || e.name === child.name);
134
- if (checkedItem) {
135
- if (typeof checkedItem == 'object') {
136
- Object.keys(checkedItem).map(key => {
137
- if (key === 'checked') {
138
- child.checked = checkedItem[key];
139
- }
140
- else {
141
- child.checked = checked;
142
- }
143
- });
144
- }
145
- else {
146
- child.checked = checked;
147
- }
148
- }
149
- else {
150
- reset && (child.checked = false);
151
- }
152
- }
153
- else {
154
- child.checked = false;
155
- }
156
- });
157
- checkInderminate(id);
158
- };
159
- const resetCaption = id => {
160
- var _a;
161
- // const noCaption = getProperty(id).noCaption;
162
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
163
- child.resetCaption();
164
- // child.noCaption = noCaption;
165
- });
166
- };
167
- const changeIndeterminate = id => {
168
- var _a;
169
- const group = getProperty(id);
170
- if (!group.disabled) {
171
- let checkAll = true;
172
- if (group.indeterminateState === 'determinate') {
173
- checkAll = false;
174
- }
175
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.map(child => {
176
- child.checked = checkAll;
177
- });
178
- checkInderminate(id);
179
- }
180
- };
181
- const checkInderminate = id => {
182
- var _a;
183
- const group = getProperty(id);
184
- let allChecked = true;
185
- let allUnchecked = true;
186
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
187
- child.checked && (allUnchecked = false);
188
- !child.checked && (allChecked = false);
189
- });
190
- group.indeterminateState = !allChecked && !allUnchecked ? 'indeterminate' : allChecked ? 'determinate' : 'uncheck';
191
- };
192
- const onChange = (obj) => {
193
- var _a;
194
- (_a = getProperty(obj.id).childs) === null || _a === void 0 ? void 0 : _a.map(child => {
195
- child.checked = child.id === obj.childId ? !child.checked : child.checked;
196
- });
197
- checkInderminate(obj.id);
198
- };
199
- const removeState = id => {
200
- return Promise.resolve(state.group.delete(id));
201
- };
202
- const getStatesKeys = id => {
203
- return Object.keys(state.group.get(id));
204
- };
205
- const checkBoxGroupState = {
206
- setValue,
207
- getValue,
208
- setCheckedItems,
209
- getCheckedList,
210
- getProperty,
211
- setClear,
212
- resetCaption,
213
- onChange,
214
- getStatesKeys,
215
- state,
216
- removeState,
217
- changeIndeterminate,
218
- };
219
-
220
- const groupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}";
221
-
222
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
223
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
224
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
225
- r = Reflect.decorate(decorators, target, key, desc);
226
- else
227
- for (var i = decorators.length - 1; i >= 0; i--)
228
- if (d = decorators[i])
229
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
230
- return c > 3 && r && Object.defineProperty(target, key, r), r;
231
- };
232
- const BcmCheckboxGroup = class {
233
- constructor(hostRef) {
234
- index.registerInstance(this, hostRef);
235
- this.change = index.createEvent(this, "bcm-change", 7);
236
- this.groupCheckedList = index.createEvent(this, "bcm-group-checked-list", 7);
237
- this._id = generate.Generate.UID();
238
- this.direction = bcm.Bcm.Direction.horizontal;
239
- this.items = [];
240
- this.indeterminate = false;
241
- this.name = undefined;
242
- this.value = undefined;
243
- this.disabled = false;
244
- this.readonly = false;
245
- this.hidden = false;
246
- this.required = false;
247
- this.label = undefined;
248
- this.gap = undefined;
249
- this.defaultValue = undefined;
250
- this.fullWidth = false;
251
- this.optionType = 'default';
252
- this.buttonStyle = 'solid';
253
- this.size = bcm.Bcm.Size.medium;
254
- this.caption = undefined;
255
- this.noCaption = false;
256
- this.captionType = bcm.Bcm.Status.default;
257
- this.tick = {};
258
- }
259
- componentDidLoad() {
260
- this.initState();
261
- }
262
- disconnectedCallback() {
263
- checkBoxGroupState.removeState(this._id);
264
- }
265
- componentShouldUpdate(newVal, oldVal, propName) {
266
- if (propName == 'tick' && newVal !== oldVal) {
267
- const isHaveChild = generate.snq(() => checkBoxGroupState.getProperty(this._id).childs.length > 0, false);
268
- if (isHaveChild) {
269
- this.getValue().then(values => this.value = values);
270
- }
271
- }
272
- if (this.getOptions().indexOf(propName) > -1 && newVal !== oldVal) {
273
- this.initState();
274
- }
275
- }
276
- getOptions() {
277
- return generate.snq(() => checkBoxGroupState.getStatesKeys(this._id), []);
278
- }
279
- async initState() {
280
- const { fullWidth, optionType, buttonStyle, size, noCaption, defaultValue, label, required, captionType, hidden, direction, indeterminate, gap, items } = this;
281
- const defaultCheckedItems = defaultValue && (typeof defaultValue == 'string' ? JSON.parse(defaultValue) : defaultValue);
282
- const childElements = items.length > 0 ? items : await this.getCheckboxes();
283
- await checkBoxGroupState.setValue({
284
- id: this._id,
285
- el: this.el,
286
- indeterminate,
287
- fullWidth,
288
- optionType,
289
- buttonStyle,
290
- size,
291
- defaultCheckedItems,
292
- label,
293
- noCaption,
294
- required,
295
- captionType,
296
- hidden,
297
- gap,
298
- direction,
299
- childs: childElements
300
- });
301
- const slotArea = this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);
302
- if (slotArea) {
303
- slotArea.innerHTML && (slotArea.innerHTML = '');
304
- }
305
- this.value = await this.getValue();
306
- }
307
- async markForCheck() {
308
- await utils.delay(10);
309
- this.tick = generate.Generate.UID();
310
- }
311
- async onBcmFocus() {
312
- //focus first item
313
- const childs = this.getCheckboxes();
314
- if (childs.length > 0) {
315
- childs[0].onBcmFocus();
316
- }
317
- }
318
- async onBcmBlur() {
319
- this.el.blur();
320
- }
321
- async setClear() {
322
- checkBoxGroupState.setClear(this._id);
323
- await utils.delay(10);
324
- this.getCheckboxes().forEach(item => {
325
- item.setClear();
326
- });
327
- this.markForCheck();
328
- await utils.delay(10);
329
- return Promise.resolve();
330
- }
331
- async resetCaption() {
332
- await utils.delay(10);
333
- this.getCheckboxes().forEach(item => {
334
- item.resetCaption();
335
- });
336
- await utils.delay(10);
337
- return Promise.resolve();
338
- }
339
- async set(data) {
340
- if (Array.isArray(data)) {
341
- await this.check(data, true, true);
342
- }
343
- }
344
- async get() {
345
- const checklist = await this.getCheckedList() && Object.keys(await this.getCheckedList());
346
- return checklist.length > 0 ? checklist : [];
347
- }
348
- async check(items, checked = true, reset = false) {
349
- checkBoxGroupState.setCheckedItems(this._id, items, checked, reset);
350
- this.markForCheck();
351
- }
352
- async getValue(name) {
353
- return Promise.resolve(checkBoxGroupState.getValue(this._id, name));
354
- }
355
- async getCheckedList() {
356
- return checkBoxGroupState.getCheckedList(this._id);
357
- }
358
- handleItemsChange() {
359
- this.initState();
360
- }
361
- getCheckboxes() {
362
- return utils.getChildElements(this.el, 'bcm-checkbox:not(#bcm-indeterminate-element)');
363
- }
364
- async getCheckbox(id) {
365
- const element = this.el.querySelector(`bcm-checkbox[id="${id}"]`);
366
- if (element) {
367
- const name = element["name"];
368
- const value = await this.getValue(name);
369
- return { element, event: generate.snq(() => value[name], null) };
370
- }
371
- return {};
372
- }
373
- async indeterminateClick() {
374
- checkBoxGroupState.changeIndeterminate(this._id);
375
- this.markForCheck();
376
- }
377
- async changeCheckBox(id) {
378
- checkBoxGroupState.onChange({ id: this._id, childId: id });
379
- this.markForCheck();
380
- await utils.delay(10);
381
- this.value = await this.getValue();
382
- this.change.emit({ value: this.value, changed: Object.assign({}, await this.getCheckbox(id)) });
383
- this.groupCheckedList.emit(await this.getCheckedList());
384
- }
385
- getItems() {
386
- return checkBoxGroupState.getProperty(this._id);
387
- }
388
- render() {
389
- const items = this.getItems();
390
- const { disabled, captionType, label, indeterminate, indeterminateState, required, direction, optionType, hidden, fullWidth, gap } = items;
391
- const bcmChechboxGroup = index$2.classnames('bcm-checkbox-group', direction, optionType, {
392
- hidden,
393
- 'full-width': fullWidth
394
- });
395
- const bcmChechboxGroupContainer = index$2.classnames('bcm-checkbox-group__container', optionType, {
396
- [direction]: optionType === 'default',
397
- indeterminate,
398
- hidden,
399
- 'full-width': fullWidth
400
- });
401
- return (index.h(index.Host, { class: bcmChechboxGroup }, index.h("span", { hidden: true, id: `bcm-checkbox-group__items-${this._id}` }, index.h("slot", null)), index.h("div", { class: "bcm-checkbox-group__label" }, label &&
402
- index.h("div", null, index.h(labelTemplate.LabelTemplate, { size: this.size, type: captionType, value: label, required: required }))), indeterminate &&
403
- index.h("bcm-checkbox", { onClick: (e) => { this.indeterminateClick(), e.preventDefault(); }, "no-caption": true, id: "bcm-indeterminate-element", indeterminate: indeterminateState, disabled: disabled }, "Check All"), index.h(CheckboxGroupTemplate, { items: items, groupContainerClasses: bcmChechboxGroupContainer, customStyle: gap && ({ 'gap': gap }), onBcmSelect: (id) => this.changeCheckBox(id) })));
404
- }
405
- get el() { return index.getElement(this); }
406
- static get watchers() { return {
407
- "items": ["handleItemsChange"]
408
- }; }
409
- };
410
- __decorate([
411
- isLoadDecorator.IsLoad()
412
- ], BcmCheckboxGroup.prototype, "el", void 0);
413
- BcmCheckboxGroup.style = groupCss;
414
-
415
- exports.bcm_checkbox_group = BcmCheckboxGroup;
@@ -1,194 +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 index$1 = require('./index-95ae50d0.js');
11
- const captionTemplate = require('./caption-template-086e9cac.js');
12
- const generate = require('./generate-c2e5f662.js');
13
- const slotTemplate = require('./slot-template-c8e2816c.js');
14
- const bcm = require('./bcm-489c9b1a.js');
15
- const utils = require('./utils-fc077139.js');
16
- const colorHelper = require('./color-helper-c3a819ea.js');
17
- const isLoadDecorator = require('./is-load-decorator-15036f37.js');
18
- require('./_commonjsHelpers-ed84c3ca.js');
19
- require('./package-c3fb44cd.js');
20
- require('./colors-078851ec.js');
21
- require('./string-helper-f9184277.js');
22
- require('./colors-56282b00.js');
23
-
24
- const checkboxCss = "@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-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
25
-
26
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
27
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
29
- r = Reflect.decorate(decorators, target, key, desc);
30
- else
31
- for (var i = decorators.length - 1; i >= 0; i--)
32
- if (d = decorators[i])
33
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
34
- return c > 3 && r && Object.defineProperty(target, key, r), r;
35
- };
36
- const BcmCheckbox = class {
37
- constructor(hostRef) {
38
- index.registerInstance(this, hostRef);
39
- this.blur = index.createEvent(this, "bcm-blur", 7);
40
- this.focus = index.createEvent(this, "bcm-focus", 7);
41
- this.change = index.createEvent(this, "bcm-change", 7);
42
- this.changeCheckbox = index.createEvent(this, "bcm-change-checkbox", 7);
43
- this._id = generate.Generate.UID();
44
- this.inGroup = false;
45
- this.value = false;
46
- this.checked = false;
47
- this.name = undefined;
48
- this.disabled = false;
49
- this.hidden = false;
50
- this.required = false;
51
- this.label = undefined;
52
- this.readonly = false;
53
- this.size = bcm.Bcm.Size.medium;
54
- this.indeterminate = null;
55
- this.color = "blue";
56
- this.caption = undefined;
57
- this.noCaption = false;
58
- this.captionError = undefined;
59
- this.captionType = bcm.Bcm.Status.default;
60
- this.captionCache = undefined;
61
- this.captionTypeCache = undefined;
62
- }
63
- connectedCallback() {
64
- this.captionCache = this.caption;
65
- this.captionTypeCache = this.captionType;
66
- this.value = this.checked;
67
- }
68
- componentDidRender() {
69
- this.inputElement.checked = this.checked;
70
- }
71
- async onBcmFocus() {
72
- this.el.focus();
73
- }
74
- async onBcmBlur() {
75
- this.el.blur();
76
- }
77
- async setClear() {
78
- this.check(false);
79
- this.handleChange();
80
- await utils.delay(10);
81
- return Promise.resolve();
82
- }
83
- async resetCaption() {
84
- await utils.delay(10);
85
- this.caption = this.captionCache;
86
- this.captionType = this.captionTypeCache;
87
- this.captionError = null;
88
- await utils.delay(10);
89
- return Promise.resolve();
90
- }
91
- handleChange() {
92
- this.checked = this.inputElement.checked;
93
- this.value = this.checked;
94
- if (!this.indeterminate) {
95
- this.changeCheckbox.emit();
96
- this.change.emit({
97
- name: this.name,
98
- value: this.checked
99
- });
100
- }
101
- }
102
- watchIndeterminate(newValue, oldValue) {
103
- if (newValue != oldValue) {
104
- this.inputElement.checked = this.indeterminate == bcm.Bcm.IndeterminateType.determinate ? true : false;
105
- this.handleChange();
106
- }
107
- }
108
- async set(data) {
109
- if (typeof data === 'boolean') {
110
- await this.check(data);
111
- }
112
- }
113
- async get() {
114
- return this.checked || false;
115
- }
116
- async check(uncheck = true) {
117
- this.inputElement.checked = uncheck;
118
- this.handleChange();
119
- }
120
- handleKeyUp(ev) {
121
- if (ev.keyCode == bcm.Bcm.KeyCode.space || ev.keyCode == bcm.Bcm.KeyCode.enter) {
122
- if (!this.disabled && !this.readonly) {
123
- this.inputElement.checked = !this.inputElement.checked;
124
- this.handleChange();
125
- }
126
- ev.stopPropagation();
127
- ev.preventDefault();
128
- return false;
129
- }
130
- }
131
- watchChecked() {
132
- if (this.checked) {
133
- this.resetCaption();
134
- }
135
- this.value = this.checked;
136
- }
137
- setColor(color = this.color) {
138
- if (!color)
139
- return;
140
- const prefix = `--bcm-checkbox`;
141
- return {
142
- [`${prefix}-primary-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
143
- [`${prefix}-primary-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
144
- [`${prefix}-primary-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-800'),
145
- [`${prefix}-primary-color-active`]: colorHelper.ColorHelper.dsColor(color + '-700'),
146
- // [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
147
- [`${prefix}-secondary-color-default`]: colorHelper.ColorHelper.dsColor('white'),
148
- [`${prefix}-secondary-color-hover`]: colorHelper.ColorHelper.dsColor('slate-50'),
149
- [`${prefix}-secondary-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
150
- [`${prefix}-secondary-color-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
151
- // [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
152
- };
153
- }
154
- render() {
155
- const { label, _id, indeterminate, hidden, disabled, checked, readonly, required, caption, captionError, captionType, noCaption, size } = this;
156
- //////
157
- const bcmCheckboxClass = index$1.classnames('bcm-checkbox', `bcm-checkbox-size-${size}`, {
158
- 'error': captionType == bcm.Bcm.Status.error,
159
- hidden,
160
- checked,
161
- disabled,
162
- required,
163
- readonly,
164
- });
165
- const bcmCheckboxIconClass = index$1.classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
166
- 'bcm-checkbox__label-icon-checked': checked,
167
- });
168
- const bcmCheckboxLabelClass = index$1.classnames('bcm-checkbox__label');
169
- const bcmCheckboxInputClass = index$1.classnames('bcm-checkbox__input');
170
- return (index.h(index.Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), style: this.setColor(this.color), class: bcmCheckboxClass, disabled: disabled }, index.h("span", { hidden: true }, index.h("slot", null)), label && index.h("bcm-label", { htmlFor: `input-${_id}`, type: captionType, value: label, required: required }), index.h("div", { class: bcmCheckboxInputClass }, index.h("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly, onChange: () => { !disabled && !readonly && (this.handleChange()); }, ref: el => (this.inputElement = el) }), index.h("label", { class: bcmCheckboxLabelClass, htmlFor: `input-${_id}` }, index.h("span", { class: bcmCheckboxIconClass }, index.h("bcm-icon", { icon: "far fa-check" })), index.h(slotTemplate.SlotTemplate, { className: "slot" }))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
171
- }
172
- get el() { return index.getElement(this); }
173
- static get watchers() { return {
174
- "indeterminate": ["watchIndeterminate"],
175
- "checked": ["watchChecked"]
176
- }; }
177
- };
178
- __decorate([
179
- isLoadDecorator.IsLoad()
180
- ], BcmCheckbox.prototype, "el", void 0);
181
- BcmCheckbox.style = checkboxCss;
182
-
183
- const BcmTypography = class {
184
- constructor(hostRef) {
185
- index.registerInstance(this, hostRef);
186
- }
187
- render() {
188
- return (index.h(index.Host, { class: "bcm-ui-element bcm-ui-content-display" }, index.h("slot", null)));
189
- }
190
- get el() { return index.getElement(this); }
191
- };
192
-
193
- exports.bcm_checkbox = BcmCheckbox;
194
- exports.bcm_typography = BcmTypography;