bromcom-ui 2.12.0-test.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-053dc717.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-fcc6f71e.js → p-0bda558d.js} +1 -1
  5. package/dist/bromcom-ui/{p-e6755449.js → p-101b76f5.js} +1 -1
  6. package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-3238bf36.js +5 -0
  10. package/dist/bromcom-ui/{p-195c5945.entry.js → p-3517ff07.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-35f2e15a.js} +1 -1
  12. package/dist/bromcom-ui/p-3f0f1f9e.entry.js +5 -0
  13. package/dist/bromcom-ui/p-41055402.js +5 -0
  14. package/dist/bromcom-ui/p-43c578cf.js +5 -0
  15. package/dist/bromcom-ui/p-47325924.entry.js +5 -0
  16. package/dist/bromcom-ui/{p-816fbffd.js → p-499d8454.js} +1 -1
  17. package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
  18. package/dist/bromcom-ui/{p-b175108e.js → p-5027dcf6.js} +1 -1
  19. package/dist/bromcom-ui/{p-4689c10d.entry.js → p-508796a2.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-561de187.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-91873347.entry.js → p-594a57c3.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-ebcb30ef.entry.js → p-5c4ff3cb.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-5dea2654.entry.js +5 -0
  24. package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  26. package/dist/bromcom-ui/p-65b8b97c.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-6db476de.entry.js +5 -0
  29. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  30. package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
  31. package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
  32. package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-de5a0e24.entry.js → p-7f48f82f.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-84f5330f.js +5 -0
  35. package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
  36. package/dist/bromcom-ui/p-8664c6c9.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-2fbae1fa.entry.js → p-866a46c4.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-be7e5e83.js → p-8e683b32.js} +1 -1
  39. package/dist/bromcom-ui/{p-7c43d2ac.entry.js → p-8f76d87d.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-90b3e6b7.entry.js → p-9cc8712c.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-9cf19610.entry.js +16 -0
  42. package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
  43. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  44. package/dist/bromcom-ui/{p-2fdde750.entry.js → p-acbe93cd.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-c4d3aee2.js → p-ad94ca44.js} +1 -1
  46. package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-b3fe26a3.entry.js → p-bdc78a44.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-56fca120.entry.js → p-c179c3de.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-57d2c129.entry.js → p-c714d51e.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-c1c4d275.entry.js → p-cb91ad56.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-d1298c40.js +5 -0
  52. package/dist/bromcom-ui/{p-5f04686a.entry.js → p-d18c83d3.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-bd640601.entry.js → p-d91ccc41.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-dbd2c7e9.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-edefa88b.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-e2e529ef.entry.js → p-ef220df3.entry.js} +1 -1
  59. package/dist/bromcom-ui/p-f0e30624.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-f06f42dc.entry.js → p-f9723b42.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-68fb3f60.entry.js → p-f9c5be5a.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-d971ec3b.entry.js → p-faeb018a.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-94fd1636.entry.js → p-fdbd5b5f.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-f9a7a32e.entry.js → p-fed90a82.entry.js} +1 -1
  65. package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
  66. package/dist/cjs/bcm-accordion_63.cjs.entry.js +46086 -0
  67. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  68. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  69. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  70. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  72. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  73. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
  74. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  75. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  76. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  79. package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
  80. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  81. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  82. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  83. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  84. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  85. package/dist/cjs/bcm-number-input.cjs.entry.js +297 -0
  86. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  87. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  88. package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
  89. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  90. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  91. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  92. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  93. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  94. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  95. package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
  96. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  97. package/dist/cjs/{generate-c09a3ff3.js → generate-c1f827bd.js} +1 -1
  98. package/dist/cjs/{global-6b15ed51.js → global-c2f538b0.js} +1 -1
  99. package/dist/cjs/input.style-b5676e6a.js +122 -0
  100. package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
  101. package/dist/cjs/loader.cjs.js +3 -3
  102. package/dist/cjs/{number-helper-243f0583.js → number-helper-804e5165.js} +1 -1
  103. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  104. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  105. package/dist/cjs/{package-6483ada2.js → package-2ca614d5.js} +1 -1
  106. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-d1aa81f0.js} +1 -1
  107. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-29229e8f.js} +1 -1
  108. package/dist/cjs/{string-helper-f9184277.js → string-helper-1ee6dc21.js} +6 -4
  109. package/dist/cjs/{validators-e7423b70.js → validators-45979497.js} +1 -1
  110. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  111. package/dist/collection/components/atoms/badge/badge.js +1 -1
  112. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  113. package/dist/collection/components/atoms/button/button.css +13 -13
  114. package/dist/collection/components/atoms/button/button.js +14 -14
  115. package/dist/collection/components/atoms/chip/chip.css +4 -4
  116. package/dist/collection/components/atoms/chip/chip.js +3 -3
  117. package/dist/collection/components/atoms/link/link.css +9 -3
  118. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  119. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  120. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  121. package/dist/collection/components/molecules/empty/empty.js +1 -1
  122. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  123. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  124. package/dist/collection/components/molecules/input/input.js +1 -1
  125. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  126. package/dist/collection/components/molecules/menu/menu.css +4 -4
  127. package/dist/collection/components/molecules/modal/modal.css +1 -1
  128. package/dist/collection/components/molecules/number-input/number-input.js +2 -2
  129. package/dist/collection/components/molecules/number-input/react-input.js +1 -1
  130. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  131. package/dist/collection/components/molecules/radio/radio.js +1 -1
  132. package/dist/collection/components/molecules/range/range.js +1 -1
  133. package/dist/collection/components/molecules/switch/switch.css +2 -2
  134. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  135. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  136. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  137. package/dist/collection/components/organism/list/list.css +2 -2
  138. package/dist/collection/components/organism/list/list.js +3 -3
  139. package/dist/collection/components/other/attendance/attendance.js +1 -1
  140. package/dist/collection/components/other_deprecated/select/select.css +1 -1
  141. package/dist/collection/components/other_deprecated/select/select.js +1 -1
  142. package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
  143. package/dist/collection/helper/string-helper.js +4 -2
  144. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  145. package/dist/collection/stories/ui-library/components/list/country.js +186 -0
  146. package/dist/collection/templates/button-template.js +1 -1
  147. package/dist/collection/templates/caption-template.js +2 -2
  148. package/dist/collection/templates/input-template.js +1 -1
  149. package/dist/collection/templates/label-template.js +1 -1
  150. package/dist/collection/templates/list-item-template.js +1 -1
  151. package/dist/collection/templates/list-template.js +3 -9
  152. package/dist/components/avatar.js +1 -1
  153. package/dist/components/badge.js +2 -2
  154. package/dist/components/bcm-attendance.js +1 -1
  155. package/dist/components/bcm-checkbox-group.js +2 -2
  156. package/dist/components/bcm-color-input.js +1 -1
  157. package/dist/components/bcm-error-layout.js +1 -1
  158. package/dist/components/bcm-expansion-panel.js +1 -1
  159. package/dist/components/bcm-input-dropdown.js +1 -1
  160. package/dist/components/bcm-modal.js +1 -1
  161. package/dist/components/bcm-number-input.js +1 -1
  162. package/dist/components/bcm-radio-group.js +1 -1
  163. package/dist/components/bcm-range.js +1 -1
  164. package/dist/components/bcm-select.js +2 -2
  165. package/dist/components/bcm-switch.js +1 -1
  166. package/dist/components/bcm-tab-group.js +2 -2
  167. package/dist/components/bcm-tab-item-header.js +5 -5
  168. package/dist/components/bcm-tab.js +1 -1
  169. package/dist/components/button.js +16 -16
  170. package/dist/components/caption-template.js +2 -2
  171. package/dist/components/chip.js +4 -4
  172. package/dist/components/empty.js +1 -1
  173. package/dist/components/generate.js +1 -1
  174. package/dist/components/input-template.js +1 -1
  175. package/dist/components/input.js +1 -1
  176. package/dist/components/label.js +1 -1
  177. package/dist/components/link.js +1 -1
  178. package/dist/components/list.js +8 -14
  179. package/dist/components/menu.js +1 -1
  180. package/dist/components/radio.js +1 -1
  181. package/dist/components/string-helper.js +4 -2
  182. package/dist/components/tooltip.js +1 -1
  183. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
  184. package/dist/esm/bcm-a50d55ba.js +1 -1
  185. package/dist/esm/bcm-accordion_63.entry.js +46020 -0
  186. package/dist/esm/bcm-alert.entry.js +6 -6
  187. package/dist/esm/bcm-attendance-actions-comment.entry.js +11 -11
  188. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +12 -12
  189. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  190. package/dist/esm/bcm-breadcrumb.entry.js +5 -5
  191. package/dist/esm/bcm-caption.entry.js +13 -13
  192. package/dist/esm/bcm-card.entry.js +9 -9
  193. package/dist/esm/bcm-chip-group.entry.js +14 -14
  194. package/dist/esm/bcm-colorpicker.entry.js +4 -4
  195. package/dist/esm/bcm-date-picker.entry.js +7 -7
  196. package/dist/esm/bcm-datetime-picker.entry.js +11 -11
  197. package/dist/esm/bcm-default.entry.js +4 -4
  198. package/dist/esm/bcm-error-layout.entry.js +3 -3
  199. package/dist/esm/bcm-form-2.entry.js +6 -6
  200. package/dist/esm/bcm-input-2.entry.js +149 -0
  201. package/dist/esm/bcm-input-custom.entry.js +5 -5
  202. package/dist/esm/bcm-input-dropdown.entry.js +14 -14
  203. package/dist/esm/bcm-message.entry.js +2 -2
  204. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  205. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  206. package/dist/esm/bcm-modal-2.entry.js +12 -12
  207. package/dist/esm/bcm-notification.entry.js +2 -2
  208. package/dist/esm/bcm-number-input.entry.js +293 -0
  209. package/dist/esm/bcm-overlay_2.entry.js +3 -3
  210. package/dist/esm/bcm-popover.entry.js +11 -11
  211. package/dist/esm/bcm-range.entry.js +8 -8
  212. package/dist/esm/bcm-react-number.entry.js +1226 -0
  213. package/dist/esm/bcm-result.entry.js +2 -2
  214. package/dist/esm/bcm-select-group.entry.js +2 -2
  215. package/dist/esm/bcm-select-option.entry.js +2 -2
  216. package/dist/esm/bcm-skeleton.entry.js +10 -10
  217. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  218. package/dist/esm/bcm-table.entry.js +11 -11
  219. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  220. package/dist/esm/bcm-tag.entry.js +8 -8
  221. package/dist/esm/bcm-time-picker.entry.js +7 -7
  222. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  223. package/dist/esm/bcm-timeline.entry.js +2 -2
  224. package/dist/esm/bcm-toast.entry.js +8 -8
  225. package/dist/esm/bromcom-ui.js +3 -3
  226. package/dist/esm/{caption-template-5c43c733.js → caption-template-3cd42c3b.js} +3 -3
  227. package/dist/esm/{color-helper-c0bb1d8a.js → color-helper-ba15b0d8.js} +2 -2
  228. package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
  229. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
  230. package/dist/esm/floating-ui-3f4394da.js +1 -1
  231. package/dist/esm/{generate-bcc4b036.js → generate-fb762c9f.js} +2 -2
  232. package/dist/esm/{global-158eb485.js → global-b4060f1f.js} +1 -1
  233. package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
  234. package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
  235. package/dist/esm/input.style-e855c0f3.js +120 -0
  236. package/dist/esm/{label-template-c15569c4.js → label-template-ef97aadb.js} +3 -3
  237. package/dist/esm/loader.js +3 -3
  238. package/dist/esm/{number-helper-f6f2817c.js → number-helper-0cbe6443.js} +1 -1
  239. package/dist/esm/old-bcm-popover-box.entry.js +10 -10
  240. package/dist/esm/old-bcm-popover.entry.js +6 -6
  241. package/dist/esm/{package-255a905d.js → package-67609610.js} +1 -1
  242. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-1b15cc99.js} +1 -1
  243. package/dist/esm/{slot-template-7c36d3be.js → slot-template-0d958dcc.js} +1 -1
  244. package/dist/esm/{string-helper-85990695.js → string-helper-b4602002.js} +6 -4
  245. package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
  246. package/dist/esm/{validators-2052b679.js → validators-e7ccc273.js} +1 -1
  247. package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
  248. package/dist/types/templates/list-template.d.ts +1 -0
  249. package/package.json +1 -1
  250. package/dist/bromcom-ui/p-0218b337.js +0 -5
  251. package/dist/bromcom-ui/p-055e4575.entry.js +0 -5
  252. package/dist/bromcom-ui/p-0a1c01fa.entry.js +0 -5
  253. package/dist/bromcom-ui/p-0d207b61.entry.js +0 -5
  254. package/dist/bromcom-ui/p-183bc78f.entry.js +0 -5
  255. package/dist/bromcom-ui/p-1e793658.entry.js +0 -5
  256. package/dist/bromcom-ui/p-2ab4e748.entry.js +0 -5
  257. package/dist/bromcom-ui/p-30a06f92.js +0 -5
  258. package/dist/bromcom-ui/p-310cab1a.js +0 -14
  259. package/dist/bromcom-ui/p-39eb3017.entry.js +0 -5
  260. package/dist/bromcom-ui/p-3dba7987.js +0 -5
  261. package/dist/bromcom-ui/p-3e63aea1.entry.js +0 -5
  262. package/dist/bromcom-ui/p-3f8853a8.entry.js +0 -5
  263. package/dist/bromcom-ui/p-4e33341b.entry.js +0 -5
  264. package/dist/bromcom-ui/p-516eb821.entry.js +0 -5
  265. package/dist/bromcom-ui/p-54c2dc4e.entry.js +0 -5
  266. package/dist/bromcom-ui/p-59294a5a.entry.js +0 -5
  267. package/dist/bromcom-ui/p-5a6caa99.entry.js +0 -5
  268. package/dist/bromcom-ui/p-5bea1cd3.entry.js +0 -5
  269. package/dist/bromcom-ui/p-5e50d99c.entry.js +0 -5
  270. package/dist/bromcom-ui/p-619d632d.entry.js +0 -5
  271. package/dist/bromcom-ui/p-67a6f0b1.entry.js +0 -5
  272. package/dist/bromcom-ui/p-6b55a1fe.js +0 -5
  273. package/dist/bromcom-ui/p-70761906.entry.js +0 -5
  274. package/dist/bromcom-ui/p-72bbcca6.entry.js +0 -5
  275. package/dist/bromcom-ui/p-74cedefe.entry.js +0 -5
  276. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  277. package/dist/bromcom-ui/p-7edab876.entry.js +0 -5
  278. package/dist/bromcom-ui/p-86bfeae7.entry.js +0 -5
  279. package/dist/bromcom-ui/p-8858f845.entry.js +0 -5
  280. package/dist/bromcom-ui/p-89cffdc1.entry.js +0 -5
  281. package/dist/bromcom-ui/p-8de5e85a.entry.js +0 -5
  282. package/dist/bromcom-ui/p-8e2fc0fb.entry.js +0 -5
  283. package/dist/bromcom-ui/p-8eec338f.entry.js +0 -5
  284. package/dist/bromcom-ui/p-903d62ff.entry.js +0 -5
  285. package/dist/bromcom-ui/p-91c0ab1c.entry.js +0 -5
  286. package/dist/bromcom-ui/p-a5830216.entry.js +0 -5
  287. package/dist/bromcom-ui/p-a8fd6d69.js +0 -5
  288. package/dist/bromcom-ui/p-aaed6cc7.js +0 -5
  289. package/dist/bromcom-ui/p-b284e383.entry.js +0 -5
  290. package/dist/bromcom-ui/p-b378aff5.entry.js +0 -5
  291. package/dist/bromcom-ui/p-b4548f75.entry.js +0 -5
  292. package/dist/bromcom-ui/p-bba4602d.entry.js +0 -5
  293. package/dist/bromcom-ui/p-be970dce.entry.js +0 -5
  294. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  295. package/dist/bromcom-ui/p-bf2dcc43.entry.js +0 -5
  296. package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
  297. package/dist/bromcom-ui/p-c2620166.entry.js +0 -5
  298. package/dist/bromcom-ui/p-c4b075da.entry.js +0 -5
  299. package/dist/bromcom-ui/p-c7a3c347.entry.js +0 -5
  300. package/dist/bromcom-ui/p-c9aa4a0d.entry.js +0 -5
  301. package/dist/bromcom-ui/p-cfffca09.entry.js +0 -5
  302. package/dist/bromcom-ui/p-d0dc95ae.js +0 -5
  303. package/dist/bromcom-ui/p-d2f863d9.js +0 -5
  304. package/dist/bromcom-ui/p-d9157255.entry.js +0 -5
  305. package/dist/bromcom-ui/p-e0aa747b.entry.js +0 -5
  306. package/dist/bromcom-ui/p-e61cd999.entry.js +0 -5
  307. package/dist/bromcom-ui/p-e671e409.entry.js +0 -5
  308. package/dist/bromcom-ui/p-ed1fb15d.entry.js +0 -5
  309. package/dist/bromcom-ui/p-f144de37.entry.js +0 -5
  310. package/dist/bromcom-ui/p-f1550bf5.entry.js +0 -5
  311. package/dist/bromcom-ui/p-fd8a6bb8.entry.js +0 -5
  312. package/dist/bromcom-ui/p-fe39eea8.js +0 -5
  313. package/dist/cjs/Overflow-7a86d378.js +0 -2233
  314. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  315. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  316. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  317. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  318. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  319. package/dist/cjs/bcm-button_11.cjs.entry.js +0 -3340
  320. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  321. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
  322. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  323. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  324. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
  325. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
  326. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  327. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  328. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  329. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  330. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  331. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  332. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  333. package/dist/cjs/bcm-link.cjs.entry.js +0 -51
  334. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1972
  335. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  336. package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
  337. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  338. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
  339. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  340. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  341. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  342. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  343. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  344. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9986
  345. package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
  346. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  347. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  348. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  349. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  350. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  351. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  352. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  353. package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
  354. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
  355. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  356. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
  357. package/dist/cjs/input-template-8ca49c2e.js +0 -92
  358. package/dist/cjs/json-parse-decarator-d32b1b4a.js +0 -40
  359. package/dist/cjs/lodash-917168d7.js +0 -17199
  360. package/dist/cjs/moment-d06b012f.js +0 -4601
  361. package/dist/cjs/stepper-states-4e435c7d.js +0 -85
  362. package/dist/cjs/tooltip-helper-31cc88d8.js +0 -158
  363. package/dist/esm/Overflow-32a0ec34.js +0 -2217
  364. package/dist/esm/bcm-accordion.entry.js +0 -70
  365. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  366. package/dist/esm/bcm-attendance.entry.js +0 -31
  367. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  368. package/dist/esm/bcm-button-group.entry.js +0 -88
  369. package/dist/esm/bcm-button_11.entry.js +0 -3326
  370. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  371. package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
  372. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  373. package/dist/esm/bcm-chip.entry.js +0 -87
  374. package/dist/esm/bcm-collapse-group.entry.js +0 -39
  375. package/dist/esm/bcm-collapse.entry.js +0 -58
  376. package/dist/esm/bcm-color-input.entry.js +0 -73
  377. package/dist/esm/bcm-date.entry.js +0 -178
  378. package/dist/esm/bcm-drawer.entry.js +0 -92
  379. package/dist/esm/bcm-dropdown.entry.js +0 -115
  380. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  381. package/dist/esm/bcm-item.entry.js +0 -68
  382. package/dist/esm/bcm-items.entry.js +0 -45
  383. package/dist/esm/bcm-link.entry.js +0 -47
  384. package/dist/esm/bcm-list_3.entry.js +0 -1966
  385. package/dist/esm/bcm-menu.entry.js +0 -147
  386. package/dist/esm/bcm-modal.entry.js +0 -153
  387. package/dist/esm/bcm-old-input.entry.js +0 -393
  388. package/dist/esm/bcm-old-tag_2.entry.js +0 -140
  389. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  390. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  391. package/dist/esm/bcm-progress.entry.js +0 -158
  392. package/dist/esm/bcm-radio-group.entry.js +0 -157
  393. package/dist/esm/bcm-radio.entry.js +0 -61
  394. package/dist/esm/bcm-rc-picker.entry.js +0 -9982
  395. package/dist/esm/bcm-select.entry.js +0 -1191
  396. package/dist/esm/bcm-shortcut.entry.js +0 -61
  397. package/dist/esm/bcm-step.entry.js +0 -85
  398. package/dist/esm/bcm-stepper.entry.js +0 -236
  399. package/dist/esm/bcm-switch.entry.js +0 -147
  400. package/dist/esm/bcm-tab-group.entry.js +0 -206
  401. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  402. package/dist/esm/bcm-tab-item.entry.js +0 -87
  403. package/dist/esm/bcm-tab.entry.js +0 -68
  404. package/dist/esm/bcm-tabs.entry.js +0 -366
  405. package/dist/esm/bcm-text.entry.js +0 -45
  406. package/dist/esm/bcm-textarea.entry.js +0 -159
  407. package/dist/esm/input-template-673e33b3.js +0 -90
  408. package/dist/esm/json-parse-decarator-c5dee289.js +0 -38
  409. package/dist/esm/lodash-0a4396a7.js +0 -17197
  410. package/dist/esm/moment-15cd9198.js +0 -4598
  411. package/dist/esm/stepper-states-aef71cbc.js +0 -83
  412. package/dist/esm/tooltip-helper-b27db4cd.js +0 -156
@@ -1,70 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { G as Generate } from './generate-bcc4b036.js';
7
- import './package-255a905d.js';
8
- import './colors-df32bb43.js';
9
- import './_commonjsHelpers-be0d4ec8.js';
10
-
11
- const accordionCss = "@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}:host{display:block}";
12
-
13
- const BcmAccordion = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this._id = Generate.UID();
17
- this.multi = false;
18
- }
19
- componentDidRender() {
20
- if (!this.multi)
21
- this.checkExpandedCount();
22
- }
23
- checkExpandedCount() {
24
- var _a, _b;
25
- const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
26
- if (accordion) {
27
- const checkExpandedCount = Array.from(accordion)
28
- .map((accordion) => accordion.expanded)
29
- .filter(Boolean).length;
30
- if (checkExpandedCount > 1) {
31
- const getLastExpandedId = (_b = (_a = Array.from(accordion).filter((accordion) => accordion.expanded)) === null || _a === void 0 ? void 0 : _a.pop()) === null || _b === void 0 ? void 0 : _b.id;
32
- Array.from(accordion).forEach((accordion) => {
33
- if (accordion.id !== getLastExpandedId) {
34
- accordion.expanded = false;
35
- }
36
- });
37
- }
38
- }
39
- }
40
- open(event) {
41
- if (this.multi)
42
- return;
43
- const id = event.detail;
44
- const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
45
- if (accordion) {
46
- accordion.forEach((accordion) => {
47
- if (accordion.id !== id) {
48
- accordion.expanded = false;
49
- }
50
- });
51
- }
52
- }
53
- isLoad(event) {
54
- var _a, _b, _c;
55
- if (!this.multi) {
56
- var parentId = ((_b = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.id) || null;
57
- var nodeName = ((_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.nodeName) || null;
58
- if (nodeName == 'BCM-EXPANSION-PANEL' && this._id == parentId) {
59
- this.checkExpandedCount();
60
- }
61
- }
62
- }
63
- render() {
64
- return (h(Host, { id: this._id }, h("slot", null)));
65
- }
66
- get el() { return getElement(this); }
67
- };
68
- BcmAccordion.style = accordionCss;
69
-
70
- export { BcmAccordion as bcm_accordion };
@@ -1,326 +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-0615c2b8.js';
6
- import './color-helper-c0bb1d8a.js';
7
- import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-bcc4b036.js';
9
- import './number-helper-f6f2817c.js';
10
- import './string-helper-85990695.js';
11
- import './validators-2052b679.js';
12
- import './element-dragger-89bb52fd.js';
13
- import { a as Bcm } from './bcm-a50d55ba.js';
14
- import { c as classnames } from './index-b84bc8c9.js';
15
- import { c as ce } from './index-3bc8c6e3.js';
16
- import './colors-1d7854ea.js';
17
- import './utils-57652744.js';
18
- import './colors-df32bb43.js';
19
- import './_commonjsHelpers-be0d4ec8.js';
20
- import './package-255a905d.js';
21
-
22
- // --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
23
- // --bcm-attendance-actions-button-text: #334155; /* slate-700 */
24
- // --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
25
- // --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
26
- // --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
27
- // --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
28
- // --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
29
- const attendanceActionStyle = ce({
30
- slots: {
31
- 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"],
32
- base: "",
33
- buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
34
- button: [
35
- "",
36
- "tw-button-reset",
37
- "tw-flex-1 last:tw-flex-none",
38
- "tw-bg-[--bcm-attendance-actions-button-bg]",
39
- "tw-text-[--bcm-attendance-actions-button-text]",
40
- "tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
41
- "hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
42
- "active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
43
- "focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
44
- "tw-flex tw-flex-row tw-items-center tw-justify-center",
45
- "first:tw-rounded-l last:tw-rounded-r",
46
- "tw-font-medium",
47
- "-tw-ml-[1px] first:tw-ml-0",
48
- ],
49
- dropdownButton: "",
50
- mainButton: "",
51
- commentIcon: "",
52
- },
53
- variants: {
54
- selected: {
55
- true: {
56
- button: [
57
- "tw-text-white tw-border-transparent last:tw-ml-[1px]",
58
- "first:tw-justify-start",
59
- ],
60
- mainButton: [
61
- "tw-min-w-[calc(theme(spacing.12)-1px)]"
62
- ],
63
- },
64
- false: {
65
- button: [
66
- ""
67
- ],
68
- },
69
- },
70
- size: {
71
- small: {
72
- button: [
73
- "tw-text-2",
74
- "tw-min-h-6",
75
- "tw-gap-2",
76
- ],
77
- mainButton: [
78
- "tw-px-3",
79
- ],
80
- dropdownButton: [
81
- "tw-px-2.5"
82
- ],
83
- },
84
- medium: {
85
- button: [
86
- "tw-text-3",
87
- "tw-min-h-8",
88
- "tw-gap-2",
89
- ],
90
- mainButton: [
91
- "tw-px-3",
92
- ],
93
- dropdownButton: [
94
- "tw-px-2.5"
95
- ],
96
- },
97
- large: {
98
- button: [
99
- "tw-text-4",
100
- "tw-min-h-10",
101
- "tw-gap-2.5",
102
- ],
103
- mainButton: [
104
- "tw-px-3",
105
- ],
106
- dropdownButton: [
107
- "tw-px-3"
108
- ],
109
- },
110
- },
111
- disabled: {
112
- true: {},
113
- false: {}
114
- }
115
- },
116
- compoundVariants: [
117
- {
118
- disabled: true,
119
- class: {
120
- buttonContainer: [
121
- "tw-cursor-not-allowed tw-pointer-events-none",
122
- ],
123
- button: [
124
- "tw-cursor-not-allowed",
125
- "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
126
- "tw-text-[--bcm-attendance-actions-button-disabled-text]",
127
- "tw-border-transparent",
128
- "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
129
- ],
130
- mainButton: [
131
- "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
132
- "tw-text-[--bcm-attendance-actions-button-disabled-text]",
133
- "tw-border-transparent",
134
- "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
135
- "tw-cursor-not-allowed",
136
- ],
137
- host: [
138
- "tw-cursor-not-allowed",
139
- ],
140
- commentIcon: [
141
- "tw-cursor-not-allowed tw-pointer-events-none",
142
- ],
143
- }
144
- },
145
- {
146
- disabled: false,
147
- class: {
148
- button: [
149
- "tw-cursor-pointer",
150
- ],
151
- }
152
- }
153
- ],
154
- defaultVariants: {
155
- selected: false,
156
- size: "medium",
157
- disabled: false,
158
- },
159
- });
160
-
161
- const attendanceActionsCss = "";
162
-
163
- const BcmAttendanceActions = class {
164
- constructor(hostRef) {
165
- registerInstance(this, hostRef);
166
- this.change = createEvent(this, "bcm-attendance-change", 3);
167
- this._id = Generate.UID();
168
- this.size = Bcm.Size.medium;
169
- this.disabled = false;
170
- this.data = [
171
- { key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
172
- { key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
173
- { key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
174
- { key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
175
- { key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
176
- { key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
177
- { key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
178
- { key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
179
- { key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
180
- { key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
181
- { key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
182
- { key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
183
- { key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
184
- { key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
185
- ];
186
- this.lateKeys = "L";
187
- this.hideComment = false;
188
- }
189
- get selectedItem() {
190
- return this.data.find(item => item.selected);
191
- }
192
- get priorityButtons() {
193
- return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
194
- }
195
- get renderButtons() {
196
- const { selectedItem, priorityButtons } = this;
197
- return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
198
- }
199
- get lateKeysMap() {
200
- return this.lateKeys.toLocaleLowerCase().split(",");
201
- }
202
- get isLate() {
203
- var _a, _b;
204
- return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
205
- }
206
- get dropdownMenuElement() {
207
- return document.getElementById("attendance-dropdown-" + this._id);
208
- }
209
- get commentAreaElement() {
210
- return document.getElementById("comment-" + this._id);
211
- }
212
- handleSelectItem(item, triggerChange = true, showComment = true) {
213
- var _a, _b;
214
- 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()) })); })];
215
- (_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
216
- (_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
217
- if (!this.isLate)
218
- return triggerChange && this.changed();
219
- !this.hideComment && showComment && this.commentArea();
220
- }
221
- changed() {
222
- this.change.emit(this.selectedItem);
223
- }
224
- hasDataForKey(key) {
225
- return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
226
- }
227
- handleKeyPress({ key }) {
228
- if (!this.hasDataForKey(key))
229
- return;
230
- 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()); });
231
- this.handleSelectItem(item);
232
- }
233
- handleSave(lateMinutes, comment) {
234
- this.data = [...this.data].map(item => {
235
- var _a, _b, _c;
236
- 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())) {
237
- return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
238
- }
239
- return item;
240
- });
241
- this.changed();
242
- }
243
- dropdownMenu() {
244
- var _a;
245
- const dropdownMenu = Generate.createComponent("bcm-attendance-actions-dropdown", {
246
- id: "attendance-dropdown-" + this._id,
247
- size: this.size,
248
- data: this.data,
249
- selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
250
- targetId: "attendance-dropdown-button-" + this._id,
251
- });
252
- dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
253
- this.handleSelectItem(detail);
254
- });
255
- dropdownMenu.show();
256
- }
257
- commentArea() {
258
- var _a, _b;
259
- const commentArea = Generate.createComponent("bcm-attendance-actions-comment", {
260
- id: "comment-" + this._id,
261
- size: this.size,
262
- isLate: this.isLate,
263
- targetId: "comment-area-" + this._id,
264
- selectedItem: this.selectedItem,
265
- lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
266
- comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
267
- });
268
- commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
269
- this.handleSave(detail.lateMinutes, detail.comment);
270
- });
271
- commentArea.show();
272
- }
273
- async set(key, triggerChange = true) {
274
- if (!this.hasDataForKey(key))
275
- return;
276
- 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()); });
277
- this.handleSelectItem(item, triggerChange, false);
278
- }
279
- async get() {
280
- return this.selectedItem;
281
- }
282
- render() {
283
- var _a, _b, _c;
284
- const { selectedItem, renderButtons, disabled, hideComment, size } = this;
285
- const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
286
- selected: !!selectedItem,
287
- size,
288
- disabled,
289
- });
290
- const buttonStyle = !!selectedItem
291
- ? Generate.getTwColor({
292
- color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
293
- tones: {
294
- 600: ["bg"],
295
- 700: ["hover-bg"],
296
- 800: ["active-bg"],
297
- },
298
- variable: "--bcm-attendance-actions-button",
299
- })
300
- : {};
301
- const buttonAttributes = {
302
- class: classnames(button(), mainButton()),
303
- style: Object.assign({}, buttonStyle),
304
- disabled,
305
- type: "button",
306
- };
307
- const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: classnames(button(), dropdownButton()) });
308
- const isShowCommentIcon = !hideComment && !!selectedItem;
309
- 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) ` : ""}` : "";
310
- return (h(Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
311
- renderButtons.map(item => {
312
- return (h("button", Object.assign({}, buttonAttributes, { onClick: () => this.handleSelectItem(item), title: item.value }), h("i", { class: classnames(item.icon || "fa-solid fa-minus", "!tw-leading-[inherit]") }), item.selected && h("span", { class: "tw-truncate" }, item.value)));
313
- }), h("button", Object.assign({ id: "attendance-dropdown-button-" + this._id }, iconButtonAttributes, { onClick: () => this.dropdownMenu(), title: "More" }), h("i", { class: classnames("fa-solid fa-angle-down !tw-leading-[inherit]") }))), h("div", { id: "comment-area-" + this._id, class: classnames(commentIcon(), {
314
- "tw-cursor-default": !isShowCommentIcon,
315
- "tw-cursor-pointer": isShowCommentIcon,
316
- }), onClick: () => isShowCommentIcon && this.commentArea() }, h("i", { title: isShowCommentIcon ? commentTooltip : "", class: classnames("fa-solid fa-comment", {
317
- "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)),
318
- "tw-visible": isShowCommentIcon,
319
- "tw-invisible": !isShowCommentIcon,
320
- }) }))));
321
- }
322
- get el() { return getElement(this); }
323
- };
324
- BcmAttendanceActions.style = attendanceActionsCss;
325
-
326
- export { BcmAttendanceActions as bcm_attendance_actions };
@@ -1,31 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { G as Generate } from './generate-bcc4b036.js';
7
- import './package-255a905d.js';
8
- import './colors-df32bb43.js';
9
- import './_commonjsHelpers-be0d4ec8.js';
10
-
11
- 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)}";
12
-
13
- const BcmAttendance = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this._id = Generate.UID();
17
- this.data = [];
18
- }
19
- render() {
20
- const { data } = this;
21
- const classPrefix = 'bcm-attendance';
22
- return (h(Host, { class: classPrefix }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
23
- var _a, _b;
24
- return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
25
- })));
26
- }
27
- get el() { return getElement(this); }
28
- };
29
- BcmAttendance.style = attendanceCss;
30
-
31
- export { BcmAttendance as bcm_attendance };
@@ -1,205 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { C as ColorHelper } from './color-helper-c0bb1d8a.js';
7
- import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-bcc4b036.js';
9
- import './number-helper-f6f2817c.js';
10
- import './string-helper-85990695.js';
11
- import './validators-2052b679.js';
12
- import './element-dragger-89bb52fd.js';
13
- import { a as Bcm } from './bcm-a50d55ba.js';
14
- import { c as ce } from './index-3bc8c6e3.js';
15
- import './colors-1d7854ea.js';
16
- import './utils-57652744.js';
17
- import './colors-df32bb43.js';
18
- import './_commonjsHelpers-be0d4ec8.js';
19
- import './package-255a905d.js';
20
-
21
- const avatarStyle = ce({
22
- slots: {
23
- 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]",
24
- image: "tw-w-full tw-h-full",
25
- badge: "",
26
- },
27
- variants: {
28
- size: {
29
- small: "bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",
30
- medium: "bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",
31
- large: "bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10",
32
- },
33
- shape: {
34
- ellipse: {
35
- base: "bcm-avatar__shape-ellipse tw-rounded-full",
36
- image: "tw-rounded-full",
37
- badge: "tw-top-0 tw-right-0",
38
- },
39
- square: {
40
- base: "bcm-avatar__shape-square tw-rounded",
41
- image: "tw-rounded",
42
- badge: "tw--top-0.5 tw--right-0.5",
43
- },
44
- },
45
- status: {
46
- true: {
47
- base: "bcm-avatar__status tw-relative",
48
- badge: "tw-absolute",
49
- },
50
- },
51
- },
52
- defaultVariants: {
53
- size: "medium",
54
- shape: "ellipse",
55
- status: false,
56
- },
57
- });
58
-
59
- const BcmAvatar = class {
60
- constructor(hostRef) {
61
- registerInstance(this, hostRef);
62
- this._id = Generate.UID();
63
- this.image = undefined;
64
- this.name = undefined;
65
- this.alt = undefined;
66
- this.shape = Bcm.Shape.ellipse;
67
- this.size = Bcm.Size.medium;
68
- this.color = undefined;
69
- this.icon = "fas fa-user";
70
- this.status = undefined;
71
- this.blink = false;
72
- this.isFallback = false;
73
- }
74
- getFirstLetters(name) {
75
- const words = name.split(" ");
76
- const initials = words.map(word => word.charAt(0).toUpperCase()).join("");
77
- return initials.substring(0, 2);
78
- }
79
- renderDefaultIcon() {
80
- return h("bcm-icon", { icon: this.icon });
81
- }
82
- render() {
83
- const { shape, size, status, color, blink } = this;
84
- const { base, badge, image } = avatarStyle({ size, shape, status: !!status });
85
- const dc = Generate.getTwColor({
86
- color: color,
87
- tones: {
88
- 200: ["bg"],
89
- 700: ["text"],
90
- },
91
- variable: "--bcm-avatar",
92
- });
93
- const customSize = !Object.keys(Bcm.BaseSize).includes(size)
94
- ? {
95
- width: `${size}px`,
96
- height: `${size}px`,
97
- fontSize: `${+size / 3}px`,
98
- }
99
- : {};
100
- const RenderContent = () => {
101
- if (this.isFallback) {
102
- if (this.name) {
103
- return this.getFirstLetters(this.name);
104
- }
105
- else {
106
- return this.renderDefaultIcon();
107
- }
108
- }
109
- else if (this.image) {
110
- return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
111
- }
112
- else if (this.name) {
113
- return this.getFirstLetters(this.name);
114
- }
115
- else {
116
- return this.renderDefaultIcon();
117
- }
118
- };
119
- return (h(Host, { role: "img", "aria-label": this.alt || this.name || "Avatar", class: base(), style: Object.assign(Object.assign({}, dc), customSize) }, h(RenderContent, null), status && h("bcm-badge", { class: badge(), status: status, blink: blink, "aria-hidden": "true" }), h("slot", null)));
120
- }
121
- get el() { return getElement(this); }
122
- };
123
-
124
- const badgeStyle = ce({
125
- slots: {
126
- host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
127
- base: [
128
- "bcm-badge__dot",
129
- "tw-flex tw-items-center tw-justify-center tw-flex-row",
130
- "tw-rounded-full tw-text-center",
131
- "tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
132
- "tw-whitespace-nowrap",
133
- ],
134
- dotText: "empty:tw-hidden",
135
- },
136
- variants: {
137
- size: {
138
- small: {
139
- host: "tw-text-2 tw-gap-1",
140
- base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
141
- dotText: "tw-px-1.5 tw-min-w-4",
142
- },
143
- medium: {
144
- host: "tw-text-3 tw-gap-1.5",
145
- base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
146
- dotText: "tw-px-1.5 tw-min-w-5",
147
- },
148
- large: {
149
- host: "tw-text-4 tw-gap-2",
150
- base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
151
- dotText: "tw-px-2 tw-min-w-6",
152
- },
153
- },
154
- blink: {
155
- true: {
156
- base: [
157
- "bcm-badge__dot-blink tw-relative",
158
- "after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
159
- "after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
160
- "after:tw-animate-blink after:tw-pointer-events-none",
161
- ],
162
- },
163
- },
164
- },
165
- defaultVariants: {
166
- size: "medium",
167
- blink: false,
168
- },
169
- });
170
-
171
- const BcmBadge = class {
172
- constructor(hostRef) {
173
- registerInstance(this, hostRef);
174
- this.statusColors = {
175
- info: "blue",
176
- error: "red",
177
- warning: "amber",
178
- success: "emerald",
179
- };
180
- this._id = Generate.UID();
181
- this.blink = false;
182
- this.value = undefined;
183
- this.color = undefined;
184
- this.size = Bcm.Size.medium;
185
- this.status = undefined;
186
- }
187
- render() {
188
- const { blink, value, size, color, status } = this;
189
- const _color = this.statusColors[status] || color;
190
- const { tone, colorName } = ColorHelper.parseColor(_color);
191
- const dc = Generate.getTwColor({
192
- color: colorName,
193
- tones: {
194
- [tone]: ["bg"],
195
- },
196
- variable: "--bcm-badge",
197
- });
198
- const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
199
- const { base, dotText, host } = badgeStyle({ size, blink });
200
- return (h(Host, { class: host(), role: "status", "aria-live": "polite" }, h("div", { class: base(), style: style }, h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, value), h("span", { class: "tw-sr-only" }, value)), h("slot", null)));
201
- }
202
- get el() { return getElement(this); }
203
- };
204
-
205
- export { BcmAvatar as bcm_avatar, BcmBadge as bcm_badge };