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

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 (414) 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-c7e8dcf7.js → p-0d0e3903.js} +1 -1
  4. package/dist/bromcom-ui/{p-fb529ec0.entry.js → p-1345d51b.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
  6. package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-1b558b0f.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-5b76a893.entry.js → p-1d81a0a4.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
  9. package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-270e1b24.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-2bdf78f5.entry.js +5 -0
  11. package/dist/bromcom-ui/{p-0999d548.js → p-2c4435e2.js} +1 -1
  12. package/dist/bromcom-ui/{p-1cac8ccc.js → p-2cd6cdee.js} +1 -1
  13. package/dist/bromcom-ui/{p-63138ee5.entry.js → p-32c55505.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-376a20ed.js +5 -0
  15. package/dist/bromcom-ui/{p-78bdc41e.entry.js → p-3a290e0d.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-4438d629.entry.js → p-4393b33e.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-cb190cbb.js → p-46cc4f0c.js} +1 -1
  18. package/dist/bromcom-ui/p-4cc25225.entry.js +20 -0
  19. package/dist/bromcom-ui/{p-16e8e9ba.js → p-4d55ba21.js} +1 -1
  20. package/dist/bromcom-ui/{p-5e4f84aa.entry.js → p-54788d6e.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-59f7fa84.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-5b63bfc6.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-77b99601.entry.js → p-5be80cce.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-468157a0.entry.js → p-5d670fd7.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-d0e56a89.entry.js → p-5f4a7e27.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-745e2913.entry.js → p-65119762.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-6a82a1c6.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-4798d827.js → p-6bea284a.js} +1 -1
  31. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  32. package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
  33. package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-77b1dbdd.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-95a2c489.entry.js → p-77ef609e.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-1f99c170.entry.js → p-7a590e30.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-991ffc23.entry.js → p-7d0d6073.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  39. package/dist/bromcom-ui/{p-d2f863d9.js → p-8b6d3a37.js} +1 -1
  40. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  41. package/dist/bromcom-ui/p-959bd503.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-79572dc0.entry.js → p-9668c853.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
  44. package/dist/bromcom-ui/p-991f374c.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-0efc9196.entry.js → p-9b59c689.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-a0d6d680.js} +1 -1
  47. package/dist/bromcom-ui/p-a0f44b56.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-0e362df2.entry.js → p-a20ac74f.entry.js} +1 -1
  49. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  50. package/dist/bromcom-ui/{p-f39d9d7c.entry.js → p-a32b4186.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-a486613b.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-7a89243a.entry.js → p-a6aa173f.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-0fc9f542.entry.js → p-a9759941.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
  55. package/dist/bromcom-ui/p-aeb4be41.js +5 -0
  56. package/dist/bromcom-ui/{p-5f9b5e9a.entry.js → p-b703f03f.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-80eb3fdb.entry.js → p-b72147fd.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-fcc6f71e.js → p-beaec5b8.js} +1 -1
  59. package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-c49b6287.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-0c8f2481.entry.js → p-c661de9e.entry.js} +1 -1
  62. package/dist/bromcom-ui/p-cb7003f0.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-32a2509b.entry.js → p-cbbadc43.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-f9686cdb.entry.js → p-ce917a87.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-8290f0dc.entry.js → p-cf119021.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-a496024a.entry.js → p-d5251ffe.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-188b9079.entry.js → p-d59d9687.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-de0b0192.entry.js +5 -0
  69. package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
  70. package/dist/bromcom-ui/p-e72cd4e5.entry.js +5 -0
  71. package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-e8eaa3bb.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-298c652a.entry.js → p-e98016f3.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-64da3643.entry.js → p-ea062405.entry.js} +1 -1
  74. package/dist/bromcom-ui/p-eca0acda.js +5 -0
  75. package/dist/bromcom-ui/{p-6bdc5130.entry.js → p-ee0bfc38.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-f990f4c3.js +5 -0
  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 +5 -5
  82. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +10 -10
  83. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +10 -10
  84. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
  85. package/dist/cjs/bcm-caption.cjs.entry.js +11 -11
  86. package/dist/cjs/bcm-card.cjs.entry.js +7 -7
  87. package/dist/cjs/{bcm-checkbox-lite_9.cjs.entry.js → bcm-checkbox-lite_8.cjs.entry.js} +7 -27
  88. package/dist/cjs/bcm-chip-group.cjs.entry.js +11 -11
  89. package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
  90. package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -5
  91. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
  92. package/dist/cjs/bcm-default.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
  95. package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
  96. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +12 -12
  97. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +8 -8
  99. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +8 -8
  100. package/dist/cjs/bcm-modal-2.cjs.entry.js +9 -9
  101. package/dist/cjs/bcm-modal.cjs.entry.js +8 -8
  102. package/dist/cjs/bcm-number-input.cjs.entry.js +11 -11
  103. package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
  105. package/dist/cjs/bcm-popover.cjs.entry.js +11 -11
  106. package/dist/cjs/bcm-range.cjs.entry.js +7 -7
  107. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -8
  109. package/dist/cjs/bcm-table.cjs.entry.js +8 -8
  110. package/dist/cjs/bcm-tag.cjs.entry.js +16 -16
  111. package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -5
  112. package/dist/cjs/bcm-toast.cjs.entry.js +12 -12
  113. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  114. package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
  115. package/dist/cjs/{color-helper-c3a819ea.js → color-helper-dc98a2ca.js} +1 -1
  116. package/dist/cjs/{colors-078851ec.js → colors-250d0982.js} +13 -7
  117. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  118. package/dist/cjs/{generate-06bf97b8.js → generate-c4e28fef.js} +2 -2
  119. package/dist/cjs/{global-74a88067.js → global-32a72f23.js} +1 -1
  120. package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
  121. package/dist/cjs/loader.cjs.js +3 -3
  122. package/dist/cjs/{number-helper-362f0e03.js → number-helper-40bfb2fc.js} +1 -1
  123. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +8 -8
  124. package/dist/cjs/old-bcm-popover.cjs.entry.js +6 -6
  125. package/dist/cjs/{package-92cfcafb.js → package-4a28cfe9.js} +1 -1
  126. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
  127. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
  128. package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
  129. package/dist/cjs/{validators-07d7a0c9.js → validators-0f4f7438.js} +1 -1
  130. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  131. package/dist/collection/components/atoms/badge/badge.js +1 -1
  132. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  133. package/dist/collection/components/atoms/button/button.css +13 -13
  134. package/dist/collection/components/atoms/button/button.js +14 -14
  135. package/dist/collection/components/atoms/chip/chip.css +4 -4
  136. package/dist/collection/components/atoms/chip/chip.js +3 -3
  137. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  138. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  139. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  140. package/dist/collection/components/molecules/empty/empty.js +1 -1
  141. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  142. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  143. package/dist/collection/components/molecules/input/input.js +1 -1
  144. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  145. package/dist/collection/components/molecules/menu/menu.css +4 -4
  146. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  147. package/dist/collection/components/molecules/radio/radio.js +1 -1
  148. package/dist/collection/components/molecules/range/range.js +1 -1
  149. package/dist/collection/components/molecules/switch/switch.css +2 -2
  150. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  151. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  152. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  153. package/dist/collection/components/organism/list/list.js +2 -2
  154. package/dist/collection/components/other/attendance/attendance.js +1 -1
  155. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  156. package/dist/collection/templates/button-template.js +1 -1
  157. package/dist/collection/templates/caption-template.js +2 -2
  158. package/dist/collection/templates/input-template.js +1 -1
  159. package/dist/collection/templates/label-template.js +1 -1
  160. package/dist/collection/templates/list-item-template.js +1 -1
  161. package/dist/collection/templates/list-template.js +3 -9
  162. package/dist/components/avatar.js +1 -1
  163. package/dist/components/badge.js +2 -2
  164. package/dist/components/bcm-attendance.js +1 -1
  165. package/dist/components/bcm-checkbox-group.js +2 -2
  166. package/dist/components/bcm-color-input.js +1 -1
  167. package/dist/components/bcm-error-layout.js +1 -1
  168. package/dist/components/bcm-expansion-panel.js +1 -1
  169. package/dist/components/bcm-input-dropdown.js +1 -1
  170. package/dist/components/bcm-radio-group.js +1 -1
  171. package/dist/components/bcm-range.js +1 -1
  172. package/dist/components/bcm-switch.js +1 -1
  173. package/dist/components/bcm-tab-group.js +2 -2
  174. package/dist/components/bcm-tab-item-header.js +5 -5
  175. package/dist/components/button.js +16 -16
  176. package/dist/components/caption-template.js +2 -2
  177. package/dist/components/chip.js +4 -4
  178. package/dist/components/colors2.js +13 -7
  179. package/dist/components/empty.js +1 -1
  180. package/dist/components/generate.js +1 -1
  181. package/dist/components/input-template.js +1 -1
  182. package/dist/components/input.js +1 -1
  183. package/dist/components/label.js +1 -1
  184. package/dist/components/list.js +6 -12
  185. package/dist/components/menu.js +1 -1
  186. package/dist/components/radio.js +1 -1
  187. package/dist/components/tooltip.js +1 -1
  188. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-82aa9212.js} +1 -1
  189. package/dist/esm/bcm-a50d55ba.js +1 -1
  190. package/dist/esm/bcm-accordion_45.entry.js +23899 -0
  191. package/dist/esm/bcm-alert.entry.js +8 -8
  192. package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
  193. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
  194. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  195. package/dist/esm/bcm-box.entry.js +1 -1
  196. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  197. package/dist/esm/bcm-caption.entry.js +14 -14
  198. package/dist/esm/bcm-card.entry.js +10 -10
  199. package/dist/esm/{bcm-checkbox-lite_9.entry.js → bcm-checkbox-lite_8.entry.js} +10 -29
  200. package/dist/esm/bcm-chip-group.entry.js +15 -15
  201. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  202. package/dist/esm/bcm-collapse.entry.js +58 -0
  203. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  204. package/dist/esm/bcm-content.entry.js +1 -1
  205. package/dist/esm/bcm-date-picker.entry.js +9 -9
  206. package/dist/esm/bcm-datetime-picker.entry.js +13 -13
  207. package/dist/esm/bcm-default.entry.js +5 -5
  208. package/dist/esm/bcm-error-layout.entry.js +4 -4
  209. package/dist/esm/bcm-form-2.entry.js +8 -8
  210. package/dist/esm/bcm-form-group.entry.js +1 -1
  211. package/dist/esm/bcm-input-custom.entry.js +6 -6
  212. package/dist/esm/bcm-input-dropdown.entry.js +15 -15
  213. package/dist/esm/bcm-link.entry.js +4 -4
  214. package/dist/esm/bcm-message.entry.js +3 -3
  215. package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
  216. package/dist/esm/bcm-modal-2-header.entry.js +11 -11
  217. package/dist/esm/bcm-modal-2.entry.js +13 -13
  218. package/dist/esm/bcm-modal.entry.js +9 -9
  219. package/dist/esm/bcm-notification.entry.js +3 -3
  220. package/dist/esm/bcm-number-input.entry.js +14 -14
  221. package/dist/esm/bcm-old-input.entry.js +5 -5
  222. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  223. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  224. package/dist/esm/bcm-popover.entry.js +12 -12
  225. package/dist/esm/bcm-range.entry.js +9 -9
  226. package/dist/esm/bcm-result.entry.js +3 -3
  227. package/dist/esm/bcm-select-group.entry.js +3 -3
  228. package/dist/esm/bcm-select-option.entry.js +3 -3
  229. package/dist/esm/bcm-select.entry.js +5 -5
  230. package/dist/esm/bcm-skeleton.entry.js +11 -11
  231. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  232. package/dist/esm/bcm-tab.entry.js +3 -3
  233. package/dist/esm/bcm-table.entry.js +12 -12
  234. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  235. package/dist/esm/bcm-tabs.entry.js +4 -4
  236. package/dist/esm/bcm-tag.entry.js +9 -9
  237. package/dist/esm/bcm-time-picker.entry.js +9 -9
  238. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  239. package/dist/esm/bcm-timeline.entry.js +3 -3
  240. package/dist/esm/bcm-toast.entry.js +9 -9
  241. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  242. package/dist/esm/bromcom-ui.js +5 -5
  243. package/dist/esm/{caption-template-caa3bc94.js → caption-template-d7953d13.js} +4 -4
  244. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-74614f24.js} +2 -2
  245. package/dist/esm/{colors-e1c31f79.js → colors-dd598eea.js} +14 -8
  246. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  247. package/dist/esm/floating-ui-3f4394da.js +1 -1
  248. package/dist/esm/{generate-2696a8c2.js → generate-7f921cea.js} +2 -2
  249. package/dist/esm/{global-61bfbbb2.js → global-e270bb55.js} +2 -2
  250. package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
  251. package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
  252. package/dist/esm/{index-b84bc8c9.js → index-f549811f.js} +1 -1
  253. package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
  254. package/dist/esm/{label-template-737576c4.js → label-template-a26f76c0.js} +4 -4
  255. package/dist/esm/loader.js +5 -5
  256. package/dist/esm/{lodash-0a4396a7.js → lodash-4197be99.js} +1 -1
  257. package/dist/esm/{number-helper-738f0f80.js → number-helper-48abae7a.js} +1 -1
  258. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  259. package/dist/esm/old-bcm-popover.entry.js +7 -7
  260. package/dist/esm/{package-131d6f3d.js → package-52b93905.js} +1 -1
  261. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-d12fec40.js} +1 -1
  262. package/dist/esm/{slot-template-08ed1fe4.js → slot-template-2a19b2db.js} +2 -2
  263. package/dist/esm/{string-helper-85990695.js → string-helper-3592bdc2.js} +2 -2
  264. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  265. package/dist/esm/{validators-0d91bd42.js → validators-2bf0eca1.js} +1 -1
  266. package/dist/types/templates/list-template.d.ts +1 -0
  267. package/package.json +1 -1
  268. package/dist/bromcom-ui/p-02209931.entry.js +0 -5
  269. package/dist/bromcom-ui/p-0267a472.entry.js +0 -5
  270. package/dist/bromcom-ui/p-034bbcdd.js +0 -5
  271. package/dist/bromcom-ui/p-04e5fdfe.entry.js +0 -5
  272. package/dist/bromcom-ui/p-0b28fa4e.entry.js +0 -5
  273. package/dist/bromcom-ui/p-1a33d7a3.entry.js +0 -5
  274. package/dist/bromcom-ui/p-2297ea95.entry.js +0 -5
  275. package/dist/bromcom-ui/p-2b3800d3.entry.js +0 -5
  276. package/dist/bromcom-ui/p-2e1a70ec.entry.js +0 -5
  277. package/dist/bromcom-ui/p-3089e9c7.js +0 -5
  278. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  279. package/dist/bromcom-ui/p-339aca62.entry.js +0 -5
  280. package/dist/bromcom-ui/p-393f0e15.entry.js +0 -5
  281. package/dist/bromcom-ui/p-3f0b84a6.entry.js +0 -5
  282. package/dist/bromcom-ui/p-3f9f5a13.entry.js +0 -5
  283. package/dist/bromcom-ui/p-4213ba24.js +0 -5
  284. package/dist/bromcom-ui/p-45a9f416.entry.js +0 -5
  285. package/dist/bromcom-ui/p-4aa5350f.entry.js +0 -5
  286. package/dist/bromcom-ui/p-4ad0e51a.entry.js +0 -5
  287. package/dist/bromcom-ui/p-4d8067b9.entry.js +0 -5
  288. package/dist/bromcom-ui/p-5199f537.entry.js +0 -5
  289. package/dist/bromcom-ui/p-52722917.entry.js +0 -5
  290. package/dist/bromcom-ui/p-5362c0b3.js +0 -5
  291. package/dist/bromcom-ui/p-57bbbd50.entry.js +0 -5
  292. package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
  293. package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
  294. package/dist/bromcom-ui/p-70259bf1.entry.js +0 -5
  295. package/dist/bromcom-ui/p-734c3522.entry.js +0 -5
  296. package/dist/bromcom-ui/p-7380fb38.entry.js +0 -5
  297. package/dist/bromcom-ui/p-76c877e3.entry.js +0 -5
  298. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  299. package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
  300. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  301. package/dist/bromcom-ui/p-7fcb7aec.entry.js +0 -5
  302. package/dist/bromcom-ui/p-88b59874.entry.js +0 -5
  303. package/dist/bromcom-ui/p-8ec1a890.js +0 -5
  304. package/dist/bromcom-ui/p-98a4c883.entry.js +0 -5
  305. package/dist/bromcom-ui/p-9da2b0d5.entry.js +0 -5
  306. package/dist/bromcom-ui/p-9e4cb37f.entry.js +0 -5
  307. package/dist/bromcom-ui/p-a387fa95.entry.js +0 -5
  308. package/dist/bromcom-ui/p-a436ed99.entry.js +0 -5
  309. package/dist/bromcom-ui/p-a9aaa5c1.entry.js +0 -5
  310. package/dist/bromcom-ui/p-bb37a2e6.entry.js +0 -5
  311. package/dist/bromcom-ui/p-be6595a2.entry.js +0 -5
  312. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  313. package/dist/bromcom-ui/p-c4df05e3.entry.js +0 -5
  314. package/dist/bromcom-ui/p-d7309e81.entry.js +0 -5
  315. package/dist/bromcom-ui/p-d88a206a.entry.js +0 -5
  316. package/dist/bromcom-ui/p-dbde1ce5.entry.js +0 -5
  317. package/dist/bromcom-ui/p-dc6a4f29.entry.js +0 -5
  318. package/dist/bromcom-ui/p-e3c66141.js +0 -5
  319. package/dist/bromcom-ui/p-e55dc873.js +0 -5
  320. package/dist/bromcom-ui/p-e8075d25.entry.js +0 -5
  321. package/dist/bromcom-ui/p-e8ef1d0d.js +0 -5
  322. package/dist/bromcom-ui/p-f27a5636.entry.js +0 -5
  323. package/dist/bromcom-ui/p-f2850f20.entry.js +0 -5
  324. package/dist/bromcom-ui/p-f2d598d5.entry.js +0 -5
  325. package/dist/bromcom-ui/p-f6c83f16.entry.js +0 -5
  326. package/dist/bromcom-ui/p-fedb8902.entry.js +0 -5
  327. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  328. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  329. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  330. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  331. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  332. package/dist/cjs/bcm-button_2.cjs.entry.js +0 -419
  333. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  334. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  335. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  336. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  337. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  338. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  339. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  340. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  341. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  342. package/dist/cjs/bcm-form.cjs.entry.js +0 -492
  343. package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
  344. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  345. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  346. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  347. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -135
  348. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2563
  349. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  350. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  351. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  352. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  353. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  354. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  355. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9391
  356. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  357. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  358. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  359. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  360. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  361. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  362. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  363. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  364. package/dist/cjs/index-3d67f613.js +0 -1610
  365. package/dist/cjs/index-e05a7c6f.js +0 -545
  366. package/dist/cjs/input-template-106fdeb9.js +0 -92
  367. package/dist/cjs/json-parse-decarator-6cbdad46.js +0 -40
  368. package/dist/cjs/moment-d06b012f.js +0 -4601
  369. package/dist/cjs/stepper-states-5c4f767b.js +0 -85
  370. package/dist/cjs/tooltip-helper-9f0c156a.js +0 -158
  371. package/dist/esm/bcm-accordion.entry.js +0 -70
  372. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  373. package/dist/esm/bcm-attendance.entry.js +0 -31
  374. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  375. package/dist/esm/bcm-button-group.entry.js +0 -88
  376. package/dist/esm/bcm-button_2.entry.js +0 -414
  377. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  378. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  379. package/dist/esm/bcm-chip.entry.js +0 -87
  380. package/dist/esm/bcm-color-input.entry.js +0 -73
  381. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  382. package/dist/esm/bcm-date.entry.js +0 -178
  383. package/dist/esm/bcm-drawer.entry.js +0 -92
  384. package/dist/esm/bcm-dropdown.entry.js +0 -115
  385. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  386. package/dist/esm/bcm-form.entry.js +0 -488
  387. package/dist/esm/bcm-icon.entry.js +0 -35
  388. package/dist/esm/bcm-input_2.entry.js +0 -545
  389. package/dist/esm/bcm-item.entry.js +0 -68
  390. package/dist/esm/bcm-items.entry.js +0 -45
  391. package/dist/esm/bcm-label_2.entry.js +0 -130
  392. package/dist/esm/bcm-list_3.entry.js +0 -2557
  393. package/dist/esm/bcm-menu.entry.js +0 -147
  394. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  395. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  396. package/dist/esm/bcm-progress.entry.js +0 -158
  397. package/dist/esm/bcm-radio-group.entry.js +0 -157
  398. package/dist/esm/bcm-radio.entry.js +0 -61
  399. package/dist/esm/bcm-rc-picker.entry.js +0 -9387
  400. package/dist/esm/bcm-shortcut.entry.js +0 -61
  401. package/dist/esm/bcm-step.entry.js +0 -85
  402. package/dist/esm/bcm-stepper.entry.js +0 -236
  403. package/dist/esm/bcm-switch.entry.js +0 -147
  404. package/dist/esm/bcm-tab-group.entry.js +0 -206
  405. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  406. package/dist/esm/bcm-tab-item.entry.js +0 -87
  407. package/dist/esm/bcm-text.entry.js +0 -45
  408. package/dist/esm/index-a6d9d0af.js +0 -541
  409. package/dist/esm/index-c4568336.js +0 -1594
  410. package/dist/esm/input-template-b2e1b39d.js +0 -90
  411. package/dist/esm/json-parse-decarator-44a00bc5.js +0 -38
  412. package/dist/esm/moment-15cd9198.js +0 -4598
  413. package/dist/esm/stepper-states-66f07873.js +0 -83
  414. package/dist/esm/tooltip-helper-4b501ffa.js +0 -156
@@ -1,411 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-4614b7f0.js';
6
- import { c as classnames } from './index-b84bc8c9.js';
7
- import { G as Generate, s as snq } from './generate-2696a8c2.js';
8
- import { B as Bcm } from './bcm-a50d55ba.js';
9
- import { d as delay, a as getChildElements } from './utils-b3338faf.js';
10
- import { c as createStore } from './index-f38e3364.js';
11
- import { L as LabelTemplate } from './label-template-737576c4.js';
12
- import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
13
- import './_commonjsHelpers-be0d4ec8.js';
14
- import './package-131d6f3d.js';
15
- import './colors-e1c31f79.js';
16
-
17
- const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
18
- return (h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
19
- return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, readonly: checkbox.readonly, required: checkbox.required, noCaption: checkbox.noCaption, "no-margin": true, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && !checkbox.readonly && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
20
- })));
21
- };
22
-
23
- const { state } = createStore({
24
- group: new Map(),
25
- allChecked: true,
26
- allUnchecked: true,
27
- changeInderminate: {},
28
- });
29
- const setValue = async ({ fullWidth, optionType, buttonStyle, size, defaultCheckedItems, el, id, label, required, captionType, hidden, direction, childs, indeterminate, gap, noCaption, }) => {
30
- if (el) {
31
- state.group.set(id, {
32
- fullWidth,
33
- optionType,
34
- buttonStyle,
35
- size,
36
- defaultCheckedItems,
37
- label,
38
- required,
39
- captionType,
40
- hidden,
41
- direction,
42
- indeterminate,
43
- gap,
44
- noCaption,
45
- childs: childs === null || childs === void 0 ? void 0 : childs.map(child => {
46
- child.checked && (state.allUnchecked = false);
47
- !child.checked && (state.allChecked = false);
48
- // fullWidth && (fullWidth == 'flex' ? (child.style.flex = 'auto') : (child.style.width = '100%'));
49
- optionType && (child.optionType = optionType);
50
- buttonStyle && (child.buttonStyle = buttonStyle);
51
- size && (child.size = size);
52
- defaultCheckedItems && defaultCheckedItems.find(e => e === child.name) && (child.checked = true);
53
- child.noCaption = noCaption;
54
- return {
55
- id: child.id || Generate.UID(),
56
- checked: child.checked || false,
57
- name: child.name,
58
- size: child.size,
59
- buttonStyle: child.buttonStyle,
60
- optionType: child.optionType,
61
- style: child.style,
62
- noCaption: child.noCaption,
63
- color: child.color,
64
- disabled: child.disabled,
65
- readonly: child.readonly,
66
- label: child.label || child.name,
67
- slot: child.slot || snq(() => child.querySelector('.slot').textContent, child.textContent),
68
- required: child.required || required,
69
- el: child,
70
- captionType,
71
- hidden,
72
- };
73
- }),
74
- indeterminateState: !state.allChecked && !state.allUnchecked ? 'indeterminate' : state.allChecked ? 'determinate' : 'uncheck',
75
- });
76
- }
77
- };
78
- const getProperty = id => {
79
- return snq(() => state.group.get(id), {});
80
- };
81
- const getValue = (id, name) => {
82
- var _a;
83
- const group = getProperty(id);
84
- let value = {};
85
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
86
- if (name) {
87
- if (child.name === name) {
88
- value[child.name] = {
89
- value: !!child.checked,
90
- name: child.name,
91
- };
92
- }
93
- }
94
- else {
95
- value[child.name] = {
96
- value: !!child.checked,
97
- name: child.name,
98
- };
99
- }
100
- });
101
- return value;
102
- };
103
- const getCheckedList = id => {
104
- var _a;
105
- const group = getProperty(id);
106
- let value = {};
107
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
108
- if (child.checked === true) {
109
- value[child.name] = {
110
- value: !!child.checked,
111
- name: child.name,
112
- };
113
- }
114
- });
115
- return value;
116
- };
117
- const setClear = id => {
118
- var _a;
119
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
120
- child.checked = false;
121
- });
122
- checkInderminate(id);
123
- };
124
- const setCheckedItems = (id, items, checked, reset) => {
125
- var _a;
126
- const checkedItems = items && (typeof items == 'string' ? JSON.parse(items) : items);
127
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
128
- if (checkedItems) {
129
- const checkedItem = checkedItems.find(e => e === child.name || e.name === child.name);
130
- if (checkedItem) {
131
- if (typeof checkedItem == 'object') {
132
- Object.keys(checkedItem).map(key => {
133
- if (key === 'checked') {
134
- child.checked = checkedItem[key];
135
- }
136
- else {
137
- child.checked = checked;
138
- }
139
- });
140
- }
141
- else {
142
- child.checked = checked;
143
- }
144
- }
145
- else {
146
- reset && (child.checked = false);
147
- }
148
- }
149
- else {
150
- child.checked = false;
151
- }
152
- });
153
- checkInderminate(id);
154
- };
155
- const resetCaption = id => {
156
- var _a;
157
- // const noCaption = getProperty(id).noCaption;
158
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.forEach(child => {
159
- child.resetCaption();
160
- // child.noCaption = noCaption;
161
- });
162
- };
163
- const changeIndeterminate = id => {
164
- var _a;
165
- const group = getProperty(id);
166
- if (!group.disabled) {
167
- let checkAll = true;
168
- if (group.indeterminateState === 'determinate') {
169
- checkAll = false;
170
- }
171
- (_a = getProperty(id).childs) === null || _a === void 0 ? void 0 : _a.map(child => {
172
- child.checked = checkAll;
173
- });
174
- checkInderminate(id);
175
- }
176
- };
177
- const checkInderminate = id => {
178
- var _a;
179
- const group = getProperty(id);
180
- let allChecked = true;
181
- let allUnchecked = true;
182
- (_a = group.childs) === null || _a === void 0 ? void 0 : _a.map(child => {
183
- child.checked && (allUnchecked = false);
184
- !child.checked && (allChecked = false);
185
- });
186
- group.indeterminateState = !allChecked && !allUnchecked ? 'indeterminate' : allChecked ? 'determinate' : 'uncheck';
187
- };
188
- const onChange = (obj) => {
189
- var _a;
190
- (_a = getProperty(obj.id).childs) === null || _a === void 0 ? void 0 : _a.map(child => {
191
- child.checked = child.id === obj.childId ? !child.checked : child.checked;
192
- });
193
- checkInderminate(obj.id);
194
- };
195
- const removeState = id => {
196
- return Promise.resolve(state.group.delete(id));
197
- };
198
- const getStatesKeys = id => {
199
- return Object.keys(state.group.get(id));
200
- };
201
- const checkBoxGroupState = {
202
- setValue,
203
- getValue,
204
- setCheckedItems,
205
- getCheckedList,
206
- getProperty,
207
- setClear,
208
- resetCaption,
209
- onChange,
210
- getStatesKeys,
211
- state,
212
- removeState,
213
- changeIndeterminate,
214
- };
215
-
216
- const groupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}";
217
-
218
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
219
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
220
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
221
- r = Reflect.decorate(decorators, target, key, desc);
222
- else
223
- for (var i = decorators.length - 1; i >= 0; i--)
224
- if (d = decorators[i])
225
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
226
- return c > 3 && r && Object.defineProperty(target, key, r), r;
227
- };
228
- const BcmCheckboxGroup = class {
229
- constructor(hostRef) {
230
- registerInstance(this, hostRef);
231
- this.change = createEvent(this, "bcm-change", 7);
232
- this.groupCheckedList = createEvent(this, "bcm-group-checked-list", 7);
233
- this._id = Generate.UID();
234
- this.direction = Bcm.Direction.horizontal;
235
- this.items = [];
236
- this.indeterminate = false;
237
- this.name = undefined;
238
- this.value = undefined;
239
- this.disabled = false;
240
- this.readonly = false;
241
- this.hidden = false;
242
- this.required = false;
243
- this.label = undefined;
244
- this.gap = undefined;
245
- this.defaultValue = undefined;
246
- this.fullWidth = false;
247
- this.optionType = 'default';
248
- this.buttonStyle = 'solid';
249
- this.size = Bcm.Size.medium;
250
- this.caption = undefined;
251
- this.noCaption = false;
252
- this.captionType = Bcm.Status.default;
253
- this.tick = {};
254
- }
255
- componentDidLoad() {
256
- this.initState();
257
- }
258
- disconnectedCallback() {
259
- checkBoxGroupState.removeState(this._id);
260
- }
261
- componentShouldUpdate(newVal, oldVal, propName) {
262
- if (propName == 'tick' && newVal !== oldVal) {
263
- const isHaveChild = snq(() => checkBoxGroupState.getProperty(this._id).childs.length > 0, false);
264
- if (isHaveChild) {
265
- this.getValue().then(values => this.value = values);
266
- }
267
- }
268
- if (this.getOptions().indexOf(propName) > -1 && newVal !== oldVal) {
269
- this.initState();
270
- }
271
- }
272
- getOptions() {
273
- return snq(() => checkBoxGroupState.getStatesKeys(this._id), []);
274
- }
275
- async initState() {
276
- const { fullWidth, optionType, buttonStyle, size, noCaption, defaultValue, label, required, captionType, hidden, direction, indeterminate, gap, items } = this;
277
- const defaultCheckedItems = defaultValue && (typeof defaultValue == 'string' ? JSON.parse(defaultValue) : defaultValue);
278
- const childElements = items.length > 0 ? items : await this.getCheckboxes();
279
- await checkBoxGroupState.setValue({
280
- id: this._id,
281
- el: this.el,
282
- indeterminate,
283
- fullWidth,
284
- optionType,
285
- buttonStyle,
286
- size,
287
- defaultCheckedItems,
288
- label,
289
- noCaption,
290
- required,
291
- captionType,
292
- hidden,
293
- gap,
294
- direction,
295
- childs: childElements
296
- });
297
- const slotArea = this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);
298
- if (slotArea) {
299
- slotArea.innerHTML && (slotArea.innerHTML = '');
300
- }
301
- this.value = await this.getValue();
302
- }
303
- async markForCheck() {
304
- await delay(10);
305
- this.tick = Generate.UID();
306
- }
307
- async onBcmFocus() {
308
- //focus first item
309
- const childs = this.getCheckboxes();
310
- if (childs.length > 0) {
311
- childs[0].onBcmFocus();
312
- }
313
- }
314
- async onBcmBlur() {
315
- this.el.blur();
316
- }
317
- async setClear() {
318
- checkBoxGroupState.setClear(this._id);
319
- await delay(10);
320
- this.getCheckboxes().forEach(item => {
321
- item.setClear();
322
- });
323
- this.markForCheck();
324
- await delay(10);
325
- return Promise.resolve();
326
- }
327
- async resetCaption() {
328
- await delay(10);
329
- this.getCheckboxes().forEach(item => {
330
- item.resetCaption();
331
- });
332
- await delay(10);
333
- return Promise.resolve();
334
- }
335
- async set(data) {
336
- if (Array.isArray(data)) {
337
- await this.check(data, true, true);
338
- }
339
- }
340
- async get() {
341
- const checklist = await this.getCheckedList() && Object.keys(await this.getCheckedList());
342
- return checklist.length > 0 ? checklist : [];
343
- }
344
- async check(items, checked = true, reset = false) {
345
- checkBoxGroupState.setCheckedItems(this._id, items, checked, reset);
346
- this.markForCheck();
347
- }
348
- async getValue(name) {
349
- return Promise.resolve(checkBoxGroupState.getValue(this._id, name));
350
- }
351
- async getCheckedList() {
352
- return checkBoxGroupState.getCheckedList(this._id);
353
- }
354
- handleItemsChange() {
355
- this.initState();
356
- }
357
- getCheckboxes() {
358
- return getChildElements(this.el, 'bcm-checkbox:not(#bcm-indeterminate-element)');
359
- }
360
- async getCheckbox(id) {
361
- const element = this.el.querySelector(`bcm-checkbox[id="${id}"]`);
362
- if (element) {
363
- const name = element["name"];
364
- const value = await this.getValue(name);
365
- return { element, event: snq(() => value[name], null) };
366
- }
367
- return {};
368
- }
369
- async indeterminateClick() {
370
- checkBoxGroupState.changeIndeterminate(this._id);
371
- this.markForCheck();
372
- }
373
- async changeCheckBox(id) {
374
- checkBoxGroupState.onChange({ id: this._id, childId: id });
375
- this.markForCheck();
376
- await delay(10);
377
- this.value = await this.getValue();
378
- this.change.emit({ value: this.value, changed: Object.assign({}, await this.getCheckbox(id)) });
379
- this.groupCheckedList.emit(await this.getCheckedList());
380
- }
381
- getItems() {
382
- return checkBoxGroupState.getProperty(this._id);
383
- }
384
- render() {
385
- const items = this.getItems();
386
- const { disabled, captionType, label, indeterminate, indeterminateState, required, direction, optionType, hidden, fullWidth, gap } = items;
387
- const bcmChechboxGroup = classnames('bcm-checkbox-group', direction, optionType, {
388
- hidden,
389
- 'full-width': fullWidth
390
- });
391
- const bcmChechboxGroupContainer = classnames('bcm-checkbox-group__container', optionType, {
392
- [direction]: optionType === 'default',
393
- indeterminate,
394
- hidden,
395
- 'full-width': fullWidth
396
- });
397
- return (h(Host, { class: bcmChechboxGroup }, h("span", { hidden: true, id: `bcm-checkbox-group__items-${this._id}` }, h("slot", null)), h("div", { class: "bcm-checkbox-group__label" }, label &&
398
- h("div", null, h(LabelTemplate, { size: this.size, type: captionType, value: label, required: required }))), indeterminate &&
399
- h("bcm-checkbox", { onClick: (e) => { this.indeterminateClick(), e.preventDefault(); }, "no-caption": true, id: "bcm-indeterminate-element", indeterminate: indeterminateState, disabled: disabled }, "Check All"), h(CheckboxGroupTemplate, { items: items, groupContainerClasses: bcmChechboxGroupContainer, customStyle: gap && ({ 'gap': gap }), onBcmSelect: (id) => this.changeCheckBox(id) })));
400
- }
401
- get el() { return getElement(this); }
402
- static get watchers() { return {
403
- "items": ["handleItemsChange"]
404
- }; }
405
- };
406
- __decorate([
407
- IsLoad()
408
- ], BcmCheckboxGroup.prototype, "el", void 0);
409
- BcmCheckboxGroup.style = groupCss;
410
-
411
- export { BcmCheckboxGroup as bcm_checkbox_group };
@@ -1,189 +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 { c as classnames } from './index-b84bc8c9.js';
7
- import { C as CaptionTemplate } from './caption-template-caa3bc94.js';
8
- import { G as Generate } from './generate-2696a8c2.js';
9
- import { S as SlotTemplate } from './slot-template-08ed1fe4.js';
10
- import { B as Bcm } from './bcm-a50d55ba.js';
11
- import { d as delay } from './utils-b3338faf.js';
12
- import { C as ColorHelper } from './color-helper-c4fa9ebc.js';
13
- import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
14
- import './_commonjsHelpers-be0d4ec8.js';
15
- import './package-131d6f3d.js';
16
- import './colors-e1c31f79.js';
17
- import './string-helper-85990695.js';
18
- import './colors-1d7854ea.js';
19
-
20
- 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}";
21
-
22
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
- r = Reflect.decorate(decorators, target, key, desc);
26
- else
27
- for (var i = decorators.length - 1; i >= 0; i--)
28
- if (d = decorators[i])
29
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31
- };
32
- const BcmCheckbox = class {
33
- constructor(hostRef) {
34
- registerInstance(this, hostRef);
35
- this.blur = createEvent(this, "bcm-blur", 7);
36
- this.focus = createEvent(this, "bcm-focus", 7);
37
- this.change = createEvent(this, "bcm-change", 7);
38
- this.changeCheckbox = createEvent(this, "bcm-change-checkbox", 7);
39
- this._id = Generate.UID();
40
- this.inGroup = false;
41
- this.value = false;
42
- this.checked = false;
43
- this.name = undefined;
44
- this.disabled = false;
45
- this.hidden = false;
46
- this.required = false;
47
- this.label = undefined;
48
- this.readonly = false;
49
- this.size = Bcm.Size.medium;
50
- this.indeterminate = null;
51
- this.color = "blue";
52
- this.caption = undefined;
53
- this.noCaption = false;
54
- this.captionError = undefined;
55
- this.captionType = Bcm.Status.default;
56
- this.captionCache = undefined;
57
- this.captionTypeCache = undefined;
58
- }
59
- connectedCallback() {
60
- this.captionCache = this.caption;
61
- this.captionTypeCache = this.captionType;
62
- this.value = this.checked;
63
- }
64
- componentDidRender() {
65
- this.inputElement.checked = this.checked;
66
- }
67
- async onBcmFocus() {
68
- this.el.focus();
69
- }
70
- async onBcmBlur() {
71
- this.el.blur();
72
- }
73
- async setClear() {
74
- this.check(false);
75
- this.handleChange();
76
- await delay(10);
77
- return Promise.resolve();
78
- }
79
- async resetCaption() {
80
- await delay(10);
81
- this.caption = this.captionCache;
82
- this.captionType = this.captionTypeCache;
83
- this.captionError = null;
84
- await delay(10);
85
- return Promise.resolve();
86
- }
87
- handleChange() {
88
- this.checked = this.inputElement.checked;
89
- this.value = this.checked;
90
- if (!this.indeterminate) {
91
- this.changeCheckbox.emit();
92
- this.change.emit({
93
- name: this.name,
94
- value: this.checked
95
- });
96
- }
97
- }
98
- watchIndeterminate(newValue, oldValue) {
99
- if (newValue != oldValue) {
100
- this.inputElement.checked = this.indeterminate == Bcm.IndeterminateType.determinate ? true : false;
101
- this.handleChange();
102
- }
103
- }
104
- async set(data) {
105
- if (typeof data === 'boolean') {
106
- await this.check(data);
107
- }
108
- }
109
- async get() {
110
- return this.checked || false;
111
- }
112
- async check(uncheck = true) {
113
- this.inputElement.checked = uncheck;
114
- this.handleChange();
115
- }
116
- handleKeyUp(ev) {
117
- if (ev.keyCode == Bcm.KeyCode.space || ev.keyCode == Bcm.KeyCode.enter) {
118
- if (!this.disabled && !this.readonly) {
119
- this.inputElement.checked = !this.inputElement.checked;
120
- this.handleChange();
121
- }
122
- ev.stopPropagation();
123
- ev.preventDefault();
124
- return false;
125
- }
126
- }
127
- watchChecked() {
128
- if (this.checked) {
129
- this.resetCaption();
130
- }
131
- this.value = this.checked;
132
- }
133
- setColor(color = this.color) {
134
- if (!color)
135
- return;
136
- const prefix = `--bcm-checkbox`;
137
- return {
138
- [`${prefix}-primary-color-default`]: ColorHelper.dsColor(color + '-500'),
139
- [`${prefix}-primary-color-hover`]: ColorHelper.dsColor(color + '-600'),
140
- [`${prefix}-primary-color-focus-visible`]: ColorHelper.dsColor(color + '-800'),
141
- [`${prefix}-primary-color-active`]: ColorHelper.dsColor(color + '-700'),
142
- // [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
143
- [`${prefix}-secondary-color-default`]: ColorHelper.dsColor('white'),
144
- [`${prefix}-secondary-color-hover`]: ColorHelper.dsColor('slate-50'),
145
- [`${prefix}-secondary-color-focus-visible`]: ColorHelper.dsColor('slate-50'),
146
- [`${prefix}-secondary-color-active`]: ColorHelper.dsColor('slate-50'),
147
- // [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
148
- };
149
- }
150
- render() {
151
- const { label, _id, indeterminate, hidden, disabled, checked, readonly, required, caption, captionError, captionType, noCaption, size } = this;
152
- //////
153
- const bcmCheckboxClass = classnames('bcm-checkbox', `bcm-checkbox-size-${size}`, {
154
- 'error': captionType == Bcm.Status.error,
155
- hidden,
156
- checked,
157
- disabled,
158
- required,
159
- readonly,
160
- });
161
- const bcmCheckboxIconClass = classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
162
- 'bcm-checkbox__label-icon-checked': checked,
163
- });
164
- const bcmCheckboxLabelClass = classnames('bcm-checkbox__label');
165
- const bcmCheckboxInputClass = classnames('bcm-checkbox__input');
166
- return (h(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), style: this.setColor(this.color), class: bcmCheckboxClass, disabled: disabled }, h("span", { hidden: true }, h("slot", null)), label && h("bcm-label", { htmlFor: `input-${_id}`, type: captionType, value: label, required: required }), h("div", { class: bcmCheckboxInputClass }, 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) }), h("label", { class: bcmCheckboxLabelClass, htmlFor: `input-${_id}` }, h("span", { class: bcmCheckboxIconClass }, h("bcm-icon", { icon: "far fa-check" })), h(SlotTemplate, { className: "slot" }))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
167
- }
168
- get el() { return getElement(this); }
169
- static get watchers() { return {
170
- "indeterminate": ["watchIndeterminate"],
171
- "checked": ["watchChecked"]
172
- }; }
173
- };
174
- __decorate([
175
- IsLoad()
176
- ], BcmCheckbox.prototype, "el", void 0);
177
- BcmCheckbox.style = checkboxCss;
178
-
179
- const BcmTypography = class {
180
- constructor(hostRef) {
181
- registerInstance(this, hostRef);
182
- }
183
- render() {
184
- return (h(Host, { class: "bcm-ui-element bcm-ui-content-display" }, h("slot", null)));
185
- }
186
- get el() { return getElement(this); }
187
- };
188
-
189
- export { BcmCheckbox as bcm_checkbox, BcmTypography as bcm_typography };