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,330 +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$1 = require('./index-c591ecec.js');
10
- require('./color-helper-c3a819ea.js');
11
- require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-06bf97b8.js');
13
- require('./number-helper-362f0e03.js');
14
- require('./string-helper-f9184277.js');
15
- require('./validators-07d7a0c9.js');
16
- require('./element-dragger-a8562f82.js');
17
- const bcm = require('./bcm-489c9b1a.js');
18
- const index$2 = require('./index-95ae50d0.js');
19
- const index = require('./index-5279dea2.js');
20
- require('./colors-56282b00.js');
21
- require('./utils-fc077139.js');
22
- require('./colors-078851ec.js');
23
- require('./_commonjsHelpers-ed84c3ca.js');
24
- require('./package-92cfcafb.js');
25
-
26
- // --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
27
- // --bcm-attendance-actions-button-text: #334155; /* slate-700 */
28
- // --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
29
- // --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
30
- // --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
31
- // --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
32
- // --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
33
- const attendanceActionStyle = index.ce({
34
- slots: {
35
- host: ["tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-48 tw-gap-2", "bcm-ui-element bcm-attendance-actions"],
36
- base: "",
37
- buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
38
- button: [
39
- "",
40
- "tw-button-reset",
41
- "tw-flex-1 last:tw-flex-none",
42
- "tw-bg-[--bcm-attendance-actions-button-bg]",
43
- "tw-text-[--bcm-attendance-actions-button-text]",
44
- "tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
45
- "hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
46
- "active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
47
- "focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
48
- "tw-flex tw-flex-row tw-items-center tw-justify-center",
49
- "first:tw-rounded-l last:tw-rounded-r",
50
- "tw-font-medium",
51
- "-tw-ml-[1px] first:tw-ml-0",
52
- ],
53
- dropdownButton: "",
54
- mainButton: "",
55
- commentIcon: "",
56
- },
57
- variants: {
58
- selected: {
59
- true: {
60
- button: [
61
- "tw-text-white tw-border-transparent last:tw-ml-[1px]",
62
- "first:tw-justify-start",
63
- ],
64
- mainButton: [
65
- "tw-min-w-[calc(theme(spacing.12)-1px)]"
66
- ],
67
- },
68
- false: {
69
- button: [
70
- ""
71
- ],
72
- },
73
- },
74
- size: {
75
- small: {
76
- button: [
77
- "tw-text-2",
78
- "tw-min-h-6",
79
- "tw-gap-2",
80
- ],
81
- mainButton: [
82
- "tw-px-3",
83
- ],
84
- dropdownButton: [
85
- "tw-px-2.5"
86
- ],
87
- },
88
- medium: {
89
- button: [
90
- "tw-text-3",
91
- "tw-min-h-8",
92
- "tw-gap-2",
93
- ],
94
- mainButton: [
95
- "tw-px-3",
96
- ],
97
- dropdownButton: [
98
- "tw-px-2.5"
99
- ],
100
- },
101
- large: {
102
- button: [
103
- "tw-text-4",
104
- "tw-min-h-10",
105
- "tw-gap-2.5",
106
- ],
107
- mainButton: [
108
- "tw-px-3",
109
- ],
110
- dropdownButton: [
111
- "tw-px-3"
112
- ],
113
- },
114
- },
115
- disabled: {
116
- true: {},
117
- false: {}
118
- }
119
- },
120
- compoundVariants: [
121
- {
122
- disabled: true,
123
- class: {
124
- buttonContainer: [
125
- "tw-cursor-not-allowed tw-pointer-events-none",
126
- ],
127
- button: [
128
- "tw-cursor-not-allowed",
129
- "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
130
- "tw-text-[--bcm-attendance-actions-button-disabled-text]",
131
- "tw-border-transparent",
132
- "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
133
- ],
134
- mainButton: [
135
- "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
136
- "tw-text-[--bcm-attendance-actions-button-disabled-text]",
137
- "tw-border-transparent",
138
- "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
139
- "tw-cursor-not-allowed",
140
- ],
141
- host: [
142
- "tw-cursor-not-allowed",
143
- ],
144
- commentIcon: [
145
- "tw-cursor-not-allowed tw-pointer-events-none",
146
- ],
147
- }
148
- },
149
- {
150
- disabled: false,
151
- class: {
152
- button: [
153
- "tw-cursor-pointer",
154
- ],
155
- }
156
- }
157
- ],
158
- defaultVariants: {
159
- selected: false,
160
- size: "medium",
161
- disabled: false,
162
- },
163
- });
164
-
165
- const attendanceActionsCss = "";
166
-
167
- const BcmAttendanceActions = class {
168
- constructor(hostRef) {
169
- index$1.registerInstance(this, hostRef);
170
- this.change = index$1.createEvent(this, "bcm-attendance-change", 3);
171
- this._id = generate.Generate.UID();
172
- this.size = bcm.Bcm$1.Size.medium;
173
- this.disabled = false;
174
- this.data = [
175
- { key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
176
- { key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
177
- { key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
178
- { key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
179
- { key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
180
- { key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
181
- { key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
182
- { key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
183
- { key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
184
- { key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
185
- { key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
186
- { key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
187
- { key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
188
- { key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
189
- ];
190
- this.lateKeys = "L";
191
- this.hideComment = false;
192
- }
193
- get selectedItem() {
194
- return this.data.find(item => item.selected);
195
- }
196
- get priorityButtons() {
197
- return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
198
- }
199
- get renderButtons() {
200
- const { selectedItem, priorityButtons } = this;
201
- return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
202
- }
203
- get lateKeysMap() {
204
- return this.lateKeys.toLocaleLowerCase().split(",");
205
- }
206
- get isLate() {
207
- var _a, _b;
208
- return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
209
- }
210
- get dropdownMenuElement() {
211
- return document.getElementById("attendance-dropdown-" + this._id);
212
- }
213
- get commentAreaElement() {
214
- return document.getElementById("comment-" + this._id);
215
- }
216
- handleSelectItem(item, triggerChange = true, showComment = true) {
217
- var _a, _b;
218
- this.data = [...this.data.map(data => { var _a, _b; return (Object.assign(Object.assign({}, data), { selected: ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === ((_b = data.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) })); })];
219
- (_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
220
- (_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
221
- if (!this.isLate)
222
- return triggerChange && this.changed();
223
- !this.hideComment && showComment && this.commentArea();
224
- }
225
- changed() {
226
- this.change.emit(this.selectedItem);
227
- }
228
- hasDataForKey(key) {
229
- return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
230
- }
231
- handleKeyPress({ key }) {
232
- if (!this.hasDataForKey(key))
233
- return;
234
- const item = this.data.find(item => { var _a; return ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLocaleLowerCase()); });
235
- this.handleSelectItem(item);
236
- }
237
- handleSave(lateMinutes, comment) {
238
- this.data = [...this.data].map(item => {
239
- var _a, _b, _c;
240
- if (((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === ((_c = (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLocaleLowerCase())) {
241
- return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
242
- }
243
- return item;
244
- });
245
- this.changed();
246
- }
247
- dropdownMenu() {
248
- var _a;
249
- const dropdownMenu = generate.Generate.createComponent("bcm-attendance-actions-dropdown", {
250
- id: "attendance-dropdown-" + this._id,
251
- size: this.size,
252
- data: this.data,
253
- selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
254
- targetId: "attendance-dropdown-button-" + this._id,
255
- });
256
- dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
257
- this.handleSelectItem(detail);
258
- });
259
- dropdownMenu.show();
260
- }
261
- commentArea() {
262
- var _a, _b;
263
- const commentArea = generate.Generate.createComponent("bcm-attendance-actions-comment", {
264
- id: "comment-" + this._id,
265
- size: this.size,
266
- isLate: this.isLate,
267
- targetId: "comment-area-" + this._id,
268
- selectedItem: this.selectedItem,
269
- lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
270
- comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
271
- });
272
- commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
273
- this.handleSave(detail.lateMinutes, detail.comment);
274
- });
275
- commentArea.show();
276
- }
277
- async set(key, triggerChange = true) {
278
- if (!this.hasDataForKey(key))
279
- return;
280
- const item = this.data.find(item => { var _a; return ((_a = item.key) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLocaleLowerCase()); });
281
- this.handleSelectItem(item, triggerChange, false);
282
- }
283
- async get() {
284
- return this.selectedItem;
285
- }
286
- render() {
287
- var _a, _b, _c;
288
- const { selectedItem, renderButtons, disabled, hideComment, size } = this;
289
- const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
290
- selected: !!selectedItem,
291
- size,
292
- disabled,
293
- });
294
- const buttonStyle = !!selectedItem
295
- ? generate.Generate.getTwColor({
296
- color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
297
- tones: {
298
- 600: ["bg"],
299
- 700: ["hover-bg"],
300
- 800: ["active-bg"],
301
- },
302
- variable: "--bcm-attendance-actions-button",
303
- })
304
- : {};
305
- const buttonAttributes = {
306
- class: index$2.classnames(button(), mainButton()),
307
- style: Object.assign({}, buttonStyle),
308
- disabled,
309
- type: "button",
310
- };
311
- const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: index$2.classnames(button(), dropdownButton()) });
312
- const isShowCommentIcon = !hideComment && !!selectedItem;
313
- const commentTooltip = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.comment) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin) ? `${(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.comment) || ""}${(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin) ? ` (${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.lateMin} min) ` : ""}` : "";
314
- return (index$1.h(index$1.Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, index$1.h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
315
- renderButtons.map(item => {
316
- return (index$1.h("button", Object.assign({}, buttonAttributes, { onClick: () => this.handleSelectItem(item), title: item.value }), index$1.h("i", { class: index$2.classnames(item.icon || "fa-solid fa-minus", "!tw-leading-[inherit]") }), item.selected && index$1.h("span", { class: "tw-truncate" }, item.value)));
317
- }), index$1.h("button", Object.assign({ id: "attendance-dropdown-button-" + this._id }, iconButtonAttributes, { onClick: () => this.dropdownMenu(), title: "More" }), index$1.h("i", { class: index$2.classnames("fa-solid fa-angle-down !tw-leading-[inherit]") }))), index$1.h("div", { id: "comment-area-" + this._id, class: index$2.classnames(commentIcon(), {
318
- "tw-cursor-default": !isShowCommentIcon,
319
- "tw-cursor-pointer": isShowCommentIcon,
320
- }), onClick: () => isShowCommentIcon && this.commentArea() }, index$1.h("i", { title: isShowCommentIcon ? commentTooltip : "", class: index$2.classnames("fa-solid fa-comment", {
321
- "tw-text-gray-400": !(((_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment) || ((_c = this.selectedItem) === null || _c === void 0 ? void 0 : _c.lateMin)),
322
- "tw-visible": isShowCommentIcon,
323
- "tw-invisible": !isShowCommentIcon,
324
- }) }))));
325
- }
326
- get el() { return index$1.getElement(this); }
327
- };
328
- BcmAttendanceActions.style = attendanceActionsCss;
329
-
330
- exports.bcm_attendance_actions = BcmAttendanceActions;
@@ -1,35 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-06bf97b8.js');
11
- require('./package-92cfcafb.js');
12
- require('./colors-078851ec.js');
13
- require('./_commonjsHelpers-ed84c3ca.js');
14
-
15
- const attendanceCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
16
-
17
- const BcmAttendance = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this._id = generate.Generate.UID();
21
- this.data = [];
22
- }
23
- render() {
24
- const { data } = this;
25
- const classPrefix = 'bcm-attendance';
26
- return (index.h(index.Host, { class: classPrefix }, index.h("span", { hidden: true }, index.h("slot", null)), data.map(item => {
27
- var _a, _b;
28
- return index.h("div", { class: `${classPrefix}__item` }, index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, index.h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, index.h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
29
- })));
30
- }
31
- get el() { return index.getElement(this); }
32
- };
33
- BcmAttendance.style = attendanceCss;
34
-
35
- exports.bcm_attendance = BcmAttendance;
@@ -1,210 +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$1 = require('./index-c591ecec.js');
10
- const colorHelper = require('./color-helper-c3a819ea.js');
11
- require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-06bf97b8.js');
13
- require('./number-helper-362f0e03.js');
14
- require('./string-helper-f9184277.js');
15
- require('./validators-07d7a0c9.js');
16
- require('./element-dragger-a8562f82.js');
17
- const bcm = require('./bcm-489c9b1a.js');
18
- const index = require('./index-5279dea2.js');
19
- require('./colors-56282b00.js');
20
- require('./utils-fc077139.js');
21
- require('./colors-078851ec.js');
22
- require('./_commonjsHelpers-ed84c3ca.js');
23
- require('./package-92cfcafb.js');
24
-
25
- const avatarStyle = index.ce({
26
- slots: {
27
- base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
28
- image: "tw-w-full tw-h-full",
29
- badge: "",
30
- },
31
- variants: {
32
- size: {
33
- small: "bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",
34
- medium: "bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",
35
- large: "bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10",
36
- },
37
- shape: {
38
- ellipse: {
39
- base: "bcm-avatar__shape-ellipse tw-rounded-full",
40
- image: "tw-rounded-full",
41
- badge: "tw-top-0 tw-right-0",
42
- },
43
- square: {
44
- base: "bcm-avatar__shape-square tw-rounded",
45
- image: "tw-rounded",
46
- badge: "tw--top-0.5 tw--right-0.5",
47
- },
48
- },
49
- status: {
50
- true: {
51
- base: "bcm-avatar__status tw-relative",
52
- badge: "tw-absolute",
53
- },
54
- },
55
- },
56
- defaultVariants: {
57
- size: "medium",
58
- shape: "ellipse",
59
- status: false,
60
- },
61
- });
62
-
63
- const BcmAvatar = class {
64
- constructor(hostRef) {
65
- index$1.registerInstance(this, hostRef);
66
- this._id = generate.Generate.UID();
67
- this.image = undefined;
68
- this.name = undefined;
69
- this.alt = undefined;
70
- this.shape = bcm.Bcm$1.Shape.ellipse;
71
- this.size = bcm.Bcm$1.Size.medium;
72
- this.color = undefined;
73
- this.icon = "fas fa-user";
74
- this.status = undefined;
75
- this.blink = false;
76
- this.isFallback = false;
77
- }
78
- getFirstLetters(name) {
79
- const words = name.split(" ");
80
- const initials = words.map(word => word.charAt(0).toUpperCase()).join("");
81
- return initials.substring(0, 2);
82
- }
83
- renderDefaultIcon() {
84
- return index$1.h("bcm-icon", { icon: this.icon });
85
- }
86
- render() {
87
- const { shape, size, status, color, blink } = this;
88
- const { base, badge, image } = avatarStyle({ size, shape, status: !!status });
89
- const dc = generate.Generate.getTwColor({
90
- color: color,
91
- tones: {
92
- 200: ["bg"],
93
- 700: ["text"],
94
- },
95
- variable: "--bcm-avatar",
96
- });
97
- const customSize = !Object.keys(bcm.Bcm$1.BaseSize).includes(size)
98
- ? {
99
- width: `${size}px`,
100
- height: `${size}px`,
101
- fontSize: `${+size / 3}px`,
102
- }
103
- : {};
104
- const RenderContent = () => {
105
- if (this.isFallback) {
106
- if (this.name) {
107
- return this.getFirstLetters(this.name);
108
- }
109
- else {
110
- return this.renderDefaultIcon();
111
- }
112
- }
113
- else if (this.image) {
114
- return index$1.h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
115
- }
116
- else if (this.name) {
117
- return this.getFirstLetters(this.name);
118
- }
119
- else {
120
- return this.renderDefaultIcon();
121
- }
122
- };
123
- return (index$1.h(index$1.Host, { role: "img", "aria-label": this.alt || this.name || "Avatar", class: base(), style: Object.assign(Object.assign({}, dc), customSize) }, index$1.h(RenderContent, null), status && index$1.h("bcm-badge", { class: badge(), status: status, blink: blink, "aria-hidden": "true" }), index$1.h("slot", null)));
124
- }
125
- get el() { return index$1.getElement(this); }
126
- };
127
-
128
- const badgeStyle = index.ce({
129
- slots: {
130
- host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
131
- base: [
132
- "bcm-badge__dot",
133
- "tw-flex tw-items-center tw-justify-center tw-flex-row",
134
- "tw-rounded-full tw-text-center",
135
- "tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
136
- "tw-whitespace-nowrap",
137
- ],
138
- dotText: "empty:tw-hidden",
139
- },
140
- variants: {
141
- size: {
142
- small: {
143
- host: "tw-text-2 tw-gap-1",
144
- base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
145
- dotText: "tw-px-1.5 tw-min-w-4",
146
- },
147
- medium: {
148
- host: "tw-text-3 tw-gap-1.5",
149
- base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
150
- dotText: "tw-px-1.5 tw-min-w-5",
151
- },
152
- large: {
153
- host: "tw-text-4 tw-gap-2",
154
- base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
155
- dotText: "tw-px-2 tw-min-w-6",
156
- },
157
- },
158
- blink: {
159
- true: {
160
- base: [
161
- "bcm-badge__dot-blink tw-relative",
162
- "after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
163
- "after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
164
- "after:tw-animate-blink after:tw-pointer-events-none",
165
- ],
166
- },
167
- },
168
- },
169
- defaultVariants: {
170
- size: "medium",
171
- blink: false,
172
- },
173
- });
174
-
175
- const BcmBadge = class {
176
- constructor(hostRef) {
177
- index$1.registerInstance(this, hostRef);
178
- this.statusColors = {
179
- info: "blue",
180
- error: "red",
181
- warning: "amber",
182
- success: "emerald",
183
- };
184
- this._id = generate.Generate.UID();
185
- this.blink = false;
186
- this.value = undefined;
187
- this.color = undefined;
188
- this.size = bcm.Bcm$1.Size.medium;
189
- this.status = undefined;
190
- }
191
- render() {
192
- const { blink, value, size, color, status } = this;
193
- const _color = this.statusColors[status] || color;
194
- const { tone, colorName } = colorHelper.ColorHelper.parseColor(_color);
195
- const dc = generate.Generate.getTwColor({
196
- color: colorName,
197
- tones: {
198
- [tone]: ["bg"],
199
- },
200
- variable: "--bcm-badge",
201
- });
202
- const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": colorHelper.ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
203
- const { base, dotText, host } = badgeStyle({ size, blink });
204
- return (index$1.h(index$1.Host, { class: host(), role: "status", "aria-live": "polite" }, index$1.h("div", { class: base(), style: style }, index$1.h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, value), index$1.h("span", { class: "tw-sr-only" }, value)), index$1.h("slot", null)));
205
- }
206
- get el() { return index$1.getElement(this); }
207
- };
208
-
209
- exports.bcm_avatar = BcmAvatar;
210
- exports.bcm_badge = BcmBadge;
@@ -1,92 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-06bf97b8.js');
11
- const bcm = require('./bcm-489c9b1a.js');
12
- const index$1 = require('./index-95ae50d0.js');
13
- const stringHelper = require('./string-helper-f9184277.js');
14
- require('./package-92cfcafb.js');
15
- require('./colors-078851ec.js');
16
- require('./_commonjsHelpers-ed84c3ca.js');
17
-
18
- const buttonGroupCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button-group{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:fit-content;background-color:var(--bcm-new-ds-color-slate-300);border:1px solid var(--bcm-new-ds-color-slate-300);gap:1px;border-radius:4px}.bcm-button-group .bcm-button__container{border-radius:0;border:none}.bcm-button-group .bcm-button:first-child .bcm-button__container{border-top-left-radius:4px;border-bottom-left-radius:4px}.bcm-button-group .bcm-button:last-child .bcm-button__container{border-top-right-radius:4px;border-bottom-right-radius:4px}.bcm-button-group__vertical{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap}.bcm-button-group__vertical .bcm-button{width:100%}.bcm-button-group__vertical .bcm-button__container{width:100%;border-radius:0}.bcm-button-group__vertical .bcm-button:first-child .bcm-button__container{border-radius:4px 4px 0 0}.bcm-button-group__vertical .bcm-button:last-child .bcm-button__container{border-radius:0 0 4px 4px}";
19
-
20
- const BcmButtonGroup = class {
21
- constructor(hostRef) {
22
- index.registerInstance(this, hostRef);
23
- this.bcmChange = index.createEvent(this, "bcm-change", 7);
24
- this._id = generate.Generate.UID();
25
- this.size = bcm.Bcm.Size.medium;
26
- this.type = 'button';
27
- this.color = undefined;
28
- this.disabled = undefined;
29
- this.direction = bcm.Bcm.Direction.horizontal;
30
- }
31
- componentWillLoad() {
32
- const { size, color } = this;
33
- const buttons = this.getButtons();
34
- (buttons === null || buttons === void 0 ? void 0 : buttons.length) &&
35
- buttons.forEach(button => {
36
- let buttonDisabled = stringHelper.StringHelper.elementBooleanCheck(this.el.getAttribute('disabled')) || button.getAttribute('disabled');
37
- color && button.setAttribute('color', color);
38
- // type && button.setAttribute('type', type);
39
- size && button.setAttribute('size', size);
40
- buttonDisabled && (button.disabled = true);
41
- });
42
- }
43
- getButtons() {
44
- return generate.snq(() => Array.from(this.el.querySelectorAll('bcm-button')), []);
45
- }
46
- radioControl(id) {
47
- const buttons = this.getButtons();
48
- (buttons === null || buttons === void 0 ? void 0 : buttons.length) &&
49
- buttons.forEach(button => {
50
- button.checked = button.id == id;
51
- });
52
- }
53
- checkboxControl(id) {
54
- const buttons = this.getButtons();
55
- (buttons === null || buttons === void 0 ? void 0 : buttons.length) &&
56
- buttons.forEach(button => {
57
- button.checked = button.id == id ? (button.checked = !button.checked) : button.checked;
58
- });
59
- }
60
- listenButton({ target }) {
61
- if (target.id) {
62
- switch (this.type) {
63
- case 'radio':
64
- this.radioControl(target.id);
65
- break;
66
- case 'checkbox':
67
- this.checkboxControl(target.id);
68
- break;
69
- }
70
- this.handleChange();
71
- }
72
- }
73
- handleChange() {
74
- const obj = this.getButtons()
75
- .filter(Boolean)
76
- .map(button => ({
77
- id: button.id,
78
- checked: button.checked,
79
- }));
80
- this.bcmChange.emit(obj);
81
- }
82
- render() {
83
- const hostClasses = index$1.classnames('bcm-button-group', {
84
- 'bcm-button-group__vertical': this.direction === bcm.Bcm.Direction.vertical,
85
- });
86
- return (index.h(index.Host, { class: hostClasses }, index.h("slot", null)));
87
- }
88
- get el() { return index.getElement(this); }
89
- };
90
- BcmButtonGroup.style = buttonGroupCss;
91
-
92
- exports.bcm_button_group = BcmButtonGroup;