bromcom-ui 2.11.0 → 2.11.1-rc.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 (278) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-036c5c3b.entry.js +5 -0
  3. package/dist/bromcom-ui/{p-01c26454.entry.js → p-06685e47.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-6de81bd3.entry.js → p-08159d00.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-1920c1cd.js → p-0a011eed.js} +1 -1
  6. package/dist/bromcom-ui/{p-258aca86.entry.js → p-0acaa615.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-b701b3aa.entry.js → p-0e63cb54.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-110fb2e6.entry.js +5 -0
  9. package/dist/bromcom-ui/{p-f0177251.entry.js → p-1118c7d2.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-11a39f08.entry.js +5 -0
  11. package/dist/bromcom-ui/{p-cd75feb9.entry.js → p-178fa302.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-1abbe3e3.js +5 -0
  13. package/dist/bromcom-ui/{p-4f96ee59.entry.js → p-1c7e5683.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-4e40be76.entry.js → p-1c9d1703.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-fd1c3951.entry.js → p-278530cc.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-f3246837.entry.js → p-29c69275.entry.js} +1 -1
  17. package/dist/bromcom-ui/p-3089e9c7.js +5 -0
  18. package/dist/bromcom-ui/{p-15302481.entry.js → p-35b244ed.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-f3423d98.entry.js → p-37235864.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-3e4381a7.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-f037abec.entry.js → p-40a10802.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-4213ba24.js +5 -0
  23. package/dist/bromcom-ui/{p-b851dcc2.entry.js → p-432a31d6.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-ba2ddaf6.js → p-4a23063c.js} +1 -1
  25. package/dist/bromcom-ui/{p-a3ce764f.entry.js → p-4d5783d7.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-2d776ab1.entry.js → p-4e4fa388.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-396ef644.entry.js → p-50335368.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-f68c1b66.entry.js → p-52dd2988.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-f2aca650.entry.js → p-63edf0d5.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-e70821f7.entry.js → p-656bea0a.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-eb4362ac.entry.js → p-662dfc68.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-6701673b.entry.js +5 -0
  33. package/dist/bromcom-ui/{p-94554e42.js → p-6b5ed4d8.js} +1 -1
  34. package/dist/bromcom-ui/p-6cbc9492.js +5 -0
  35. package/dist/bromcom-ui/{p-518b9b80.js → p-6e5f5f36.js} +1 -1
  36. package/dist/bromcom-ui/{p-cad2f118.entry.js → p-73226a24.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-13f868f7.entry.js → p-75b1c613.entry.js} +1 -1
  38. package/dist/bromcom-ui/p-75cf9504.entry.js +5 -0
  39. package/dist/bromcom-ui/{p-4c2ecca2.entry.js → p-78360e47.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-092f751e.js → p-878bc38f.js} +1 -1
  41. package/dist/bromcom-ui/{p-422e697d.entry.js → p-87d39c54.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-ccb3c2e2.entry.js → p-89cf88e4.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-fe22cf19.entry.js → p-89d95887.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-3b7ac787.entry.js → p-9954eaed.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-8d4654ed.entry.js → p-9a02958d.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-3b5a6c8e.js → p-9ea3023e.js} +1 -1
  47. package/dist/bromcom-ui/{p-3c4fbed6.entry.js → p-9fe98e8c.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-66964e5c.entry.js → p-a08ec2e5.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-6369b73b.js → p-a313fba6.js} +1 -1
  50. package/dist/bromcom-ui/{p-70b34e79.entry.js → p-a467bdb1.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-e0a4da6d.entry.js → p-a6f1639c.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-505709c6.entry.js → p-a99fee93.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-73f5c339.entry.js → p-ab95e2d0.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-687ea920.entry.js → p-ac06eaae.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-3bb8785d.js → p-ac493540.js} +1 -1
  56. package/dist/bromcom-ui/{p-e920c9b9.entry.js → p-b4608fe1.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-b5e3da45.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-4ded5e14.entry.js → p-be6595a2.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-2fad0385.entry.js → p-c13ddcc8.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-3b30d329.entry.js → p-c3be05d5.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-dd1a1d12.entry.js → p-c497aab1.entry.js} +1 -1
  62. package/dist/bromcom-ui/p-c4df05e3.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-964b3343.entry.js → p-c50f944c.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-a3960507.entry.js → p-c76cfd39.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-2c4e5bb2.entry.js → p-c7f52f74.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-aee35345.entry.js → p-c84b9dbb.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-c439cb60.entry.js → p-cb255600.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-cc28ec42.js +5 -0
  69. package/dist/bromcom-ui/{p-bd6c967c.entry.js → p-cce551cd.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-62370fd0.entry.js → p-cd1be7a2.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-f5958c67.entry.js → p-d0c3234b.entry.js} +1 -1
  72. package/dist/bromcom-ui/p-d8bfb45f.entry.js +5 -0
  73. package/dist/bromcom-ui/{p-7aa06da2.entry.js → p-da5ba22f.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-37565993.entry.js → p-db5d552b.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-e76bfd6b.entry.js → p-df7b37a4.entry.js} +1 -1
  76. package/dist/bromcom-ui/{p-e082074a.entry.js → p-e6449d83.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-3b643e9a.entry.js → p-e73f4ad2.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-02b30a5c.entry.js → p-ea1e50ed.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-c926e138.js → p-f18b65a3.js} +1 -1
  80. package/dist/bromcom-ui/{p-79007b75.entry.js → p-f93ae986.entry.js} +1 -1
  81. package/dist/bromcom-ui/{p-7af84928.entry.js → p-fb470c40.entry.js} +1 -1
  82. package/dist/bromcom-ui/{p-ed9d082d.js → p-fcc6f71e.js} +1 -1
  83. package/dist/cjs/{bcm-3c58a6d5.js → bcm-1d1fcf21.js} +32 -32
  84. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  87. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  88. package/dist/cjs/{bcm-button.cjs.entry.js → bcm-attendance-actions_2.cjs.entry.js} +344 -34
  89. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-avatar_2.cjs.entry.js +10 -10
  91. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  92. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
  93. package/dist/cjs/bcm-caption.cjs.entry.js +8 -8
  94. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  95. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +7 -7
  96. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
  97. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +10 -10
  98. package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -8
  99. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
  102. package/dist/cjs/bcm-colorful_2.cjs.entry.js +12 -12
  103. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-date.cjs.entry.js +8 -8
  105. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  106. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-drawer.cjs.entry.js +8 -8
  108. package/dist/cjs/bcm-dropdown.cjs.entry.js +8 -8
  109. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  110. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  111. package/dist/cjs/bcm-form.cjs.entry.js +4 -4
  112. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  113. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +8 -8
  114. package/dist/cjs/bcm-input_2.cjs.entry.js +15 -15
  115. package/dist/cjs/bcm-item.cjs.entry.js +4 -4
  116. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  117. package/dist/cjs/bcm-label_2.cjs.entry.js +13 -13
  118. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  119. package/dist/cjs/bcm-list_3.cjs.entry.js +25 -25
  120. package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
  121. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  122. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  123. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  124. package/dist/cjs/bcm-modal.cjs.entry.js +7 -7
  125. package/dist/cjs/bcm-number-input.cjs.entry.js +8 -8
  126. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  127. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
  128. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  129. package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
  130. package/dist/cjs/bcm-radio-group.cjs.entry.js +10 -10
  131. package/dist/cjs/bcm-radio.cjs.entry.js +13 -13
  132. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  133. package/dist/cjs/bcm-rc-picker.cjs.entry.js +2 -2
  134. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  135. package/dist/cjs/bcm-shortcut.cjs.entry.js +10 -10
  136. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  137. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  138. package/dist/cjs/bcm-stepper.cjs.entry.js +9 -9
  139. package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
  140. package/dist/cjs/bcm-tab-group.cjs.entry.js +7 -7
  141. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +10 -10
  142. package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
  143. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  144. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  145. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  146. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  147. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  148. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  149. package/dist/cjs/{floating-ui-555cd3d4.js → floating-ui-5b396838.js} +2 -2
  150. package/dist/cjs/{generate-183405cb.js → generate-1a4751ab.js} +1 -1
  151. package/dist/cjs/{global-4a756c02.js → global-48f46995.js} +1 -1
  152. package/dist/cjs/{input-template-e36927b1.js → input-template-aafef7d2.js} +6 -6
  153. package/dist/cjs/{json-parse-decarator-4c1f74bb.js → json-parse-decarator-085c6dbb.js} +1 -1
  154. package/dist/cjs/{label-template-a6f51ef2.js → label-template-3b970f86.js} +2 -2
  155. package/dist/cjs/loader.cjs.js +3 -3
  156. package/dist/cjs/{number-helper-ca52fadf.js → number-helper-c0ba116e.js} +1 -1
  157. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  158. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  159. package/dist/cjs/{package-4c68d5f8.js → package-c4cc1dcb.js} +1 -1
  160. package/dist/cjs/{popover-placement-9b4b4153.js → popover-placement-02e6101b.js} +1 -1
  161. package/dist/cjs/{slot-template-80b019d5.js → slot-template-df7b5b59.js} +1 -1
  162. package/dist/cjs/{stepper-states-f97c457a.js → stepper-states-1a602652.js} +1 -1
  163. package/dist/cjs/{string-helper-3212f4ea.js → string-helper-9cdfb273.js} +2 -2
  164. package/dist/cjs/{tooltip-helper-83971814.js → tooltip-helper-0c337a27.js} +9 -9
  165. package/dist/cjs/{validators-a31b53a5.js → validators-73d9a8d7.js} +1 -1
  166. package/dist/collection/components/molecules/dropdown/dropdown.css +1 -0
  167. package/dist/collection/models/bcm.js +28 -28
  168. package/dist/collection/services/index.js +6 -0
  169. package/dist/{bromcom-ui/p-4a540b56.js → collection/services/linked-abstract.js} +2 -1
  170. package/dist/collection/services/linked-service.js +59 -0
  171. package/dist/collection/utils/validation.js +2 -2
  172. package/dist/components/bcm-dropdown.js +1 -1
  173. package/dist/components/bcm.js +28 -28
  174. package/dist/components/form.js +2 -2
  175. package/dist/components/generate.js +1 -1
  176. package/dist/esm/{bcm-0f9cc27c.js → bcm-a50d55ba.js} +29 -29
  177. package/dist/esm/bcm-accordion.entry.js +2 -2
  178. package/dist/esm/bcm-alert.entry.js +4 -4
  179. package/dist/esm/bcm-attendance-actions-comment.entry.js +7 -7
  180. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +7 -7
  181. package/dist/esm/{bcm-button.entry.js → bcm-attendance-actions_2.entry.js} +338 -29
  182. package/dist/esm/bcm-attendance.entry.js +2 -2
  183. package/dist/esm/bcm-avatar_2.entry.js +6 -6
  184. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  185. package/dist/esm/bcm-button-group.entry.js +4 -4
  186. package/dist/esm/bcm-caption.entry.js +6 -6
  187. package/dist/esm/bcm-card.entry.js +5 -5
  188. package/dist/esm/bcm-checkbox-group.entry.js +4 -4
  189. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
  190. package/dist/esm/bcm-checkbox_2.entry.js +5 -5
  191. package/dist/esm/bcm-chip-group.entry.js +7 -7
  192. package/dist/esm/bcm-chip.entry.js +2 -2
  193. package/dist/esm/bcm-collapse.entry.js +2 -2
  194. package/dist/esm/bcm-color-input.entry.js +6 -6
  195. package/dist/esm/bcm-colorful_2.entry.js +7 -7
  196. package/dist/esm/bcm-date-picker.entry.js +3 -3
  197. package/dist/esm/bcm-date.entry.js +6 -6
  198. package/dist/esm/bcm-datetime-picker.entry.js +6 -6
  199. package/dist/esm/bcm-default.entry.js +2 -2
  200. package/dist/esm/bcm-drawer.entry.js +6 -6
  201. package/dist/esm/bcm-dropdown.entry.js +5 -5
  202. package/dist/esm/bcm-expansion-panel.entry.js +4 -4
  203. package/dist/esm/bcm-form-2.entry.js +4 -4
  204. package/dist/esm/bcm-form.entry.js +4 -4
  205. package/dist/esm/bcm-input-custom.entry.js +2 -2
  206. package/dist/esm/bcm-input-dropdown.entry.js +6 -6
  207. package/dist/esm/bcm-input_2.entry.js +7 -7
  208. package/dist/esm/bcm-item.entry.js +3 -3
  209. package/dist/esm/bcm-items.entry.js +4 -4
  210. package/dist/esm/bcm-label_2.entry.js +9 -9
  211. package/dist/esm/bcm-link.entry.js +1 -1
  212. package/dist/esm/bcm-list_3.entry.js +9 -9
  213. package/dist/esm/bcm-menu.entry.js +8 -8
  214. package/dist/esm/bcm-modal-2-footer.entry.js +6 -6
  215. package/dist/esm/bcm-modal-2-header.entry.js +6 -6
  216. package/dist/esm/bcm-modal-2.entry.js +6 -6
  217. package/dist/esm/bcm-modal.entry.js +5 -5
  218. package/dist/esm/bcm-number-input.entry.js +6 -6
  219. package/dist/esm/bcm-popconfirm-box.entry.js +5 -5
  220. package/dist/esm/bcm-popconfirm.entry.js +3 -3
  221. package/dist/esm/bcm-popover.entry.js +7 -7
  222. package/dist/esm/bcm-progress.entry.js +3 -3
  223. package/dist/esm/bcm-radio-group.entry.js +6 -6
  224. package/dist/esm/bcm-radio.entry.js +6 -6
  225. package/dist/esm/bcm-range.entry.js +3 -3
  226. package/dist/esm/bcm-rc-picker.entry.js +1 -1
  227. package/dist/esm/bcm-select.entry.js +2 -2
  228. package/dist/esm/bcm-shortcut.entry.js +6 -6
  229. package/dist/esm/bcm-skeleton.entry.js +6 -6
  230. package/dist/esm/bcm-step.entry.js +3 -3
  231. package/dist/esm/bcm-stepper.entry.js +7 -7
  232. package/dist/esm/bcm-switch.entry.js +3 -3
  233. package/dist/esm/bcm-tab-group.entry.js +6 -6
  234. package/dist/esm/bcm-tab-item-header.entry.js +6 -6
  235. package/dist/esm/bcm-tab-item.entry.js +6 -6
  236. package/dist/esm/bcm-table.entry.js +6 -6
  237. package/dist/esm/bcm-tag.entry.js +4 -4
  238. package/dist/esm/bcm-text.entry.js +3 -3
  239. package/dist/esm/bcm-time-picker.entry.js +3 -3
  240. package/dist/esm/bcm-toast.entry.js +4 -4
  241. package/dist/esm/bromcom-ui.js +3 -3
  242. package/dist/esm/{floating-ui-a4e67246.js → floating-ui-3f4394da.js} +1 -1
  243. package/dist/esm/{generate-ea4b5630.js → generate-5bd07136.js} +1 -1
  244. package/dist/esm/{global-8fd9695e.js → global-eb3198af.js} +1 -1
  245. package/dist/esm/{input-template-2ac3ec12.js → input-template-5d019513.js} +2 -2
  246. package/dist/esm/{json-parse-decarator-c5e5dae7.js → json-parse-decarator-906c06a6.js} +1 -1
  247. package/dist/esm/{label-template-b2e8f81d.js → label-template-737576c4.js} +1 -1
  248. package/dist/esm/loader.js +3 -3
  249. package/dist/esm/{number-helper-148cd002.js → number-helper-c4a6ae8a.js} +1 -1
  250. package/dist/esm/old-bcm-popover-box.entry.js +7 -7
  251. package/dist/esm/old-bcm-popover.entry.js +3 -3
  252. package/dist/esm/{package-b6a53fde.js → package-29b2cf6e.js} +1 -1
  253. package/dist/esm/{popover-placement-e6ed184e.js → popover-placement-2f5939ea.js} +1 -1
  254. package/dist/esm/{slot-template-481a5ac5.js → slot-template-08ed1fe4.js} +1 -1
  255. package/dist/esm/{stepper-states-f02df67c.js → stepper-states-f8ede5af.js} +1 -1
  256. package/dist/esm/{string-helper-3526c4fe.js → string-helper-85990695.js} +1 -1
  257. package/dist/esm/{tooltip-helper-4b53b00b.js → tooltip-helper-fa684a4e.js} +6 -6
  258. package/dist/esm/{validators-78ec4f0a.js → validators-0288c955.js} +1 -1
  259. package/dist/types/services/index.d.ts +2 -0
  260. package/dist/types/services/linked-abstract.d.ts +12 -0
  261. package/dist/types/services/linked-service.d.ts +18 -0
  262. package/package.json +1 -1
  263. package/dist/bromcom-ui/p-0511936c.entry.js +0 -5
  264. package/dist/bromcom-ui/p-17821ee9.entry.js +0 -5
  265. package/dist/bromcom-ui/p-5436ddd6.js +0 -5
  266. package/dist/bromcom-ui/p-6bea3bea.js +0 -5
  267. package/dist/bromcom-ui/p-aa22dd85.entry.js +0 -5
  268. package/dist/bromcom-ui/p-ad359555.entry.js +0 -5
  269. package/dist/bromcom-ui/p-ada3eed7.entry.js +0 -5
  270. package/dist/bromcom-ui/p-bca72f17.entry.js +0 -5
  271. package/dist/bromcom-ui/p-dbc66238.js +0 -5
  272. package/dist/bromcom-ui/p-e4ab4af0.entry.js +0 -5
  273. package/dist/bromcom-ui/p-e4b42f26.js +0 -5
  274. package/dist/bromcom-ui/p-f33d8f77.entry.js +0 -5
  275. package/dist/bromcom-ui/p-f650fed9.entry.js +0 -5
  276. package/dist/bromcom-ui/p-f93bcd16.entry.js +0 -5
  277. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  278. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
@@ -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-4614b7f0.js';
6
- import './color-helper-c4fa9ebc.js';
7
- import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-ea4b5630.js';
9
- import './number-helper-148cd002.js';
10
- import './string-helper-3526c4fe.js';
11
- import './validators-78ec4f0a.js';
12
- import './element-dragger-7ea06c76.js';
13
- import { a as Bcm } from './bcm-0f9cc27c.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-b3338faf.js';
18
- import './colors-e1c31f79.js';
19
- import './_commonjsHelpers-be0d4ec8.js';
20
- import './package-b6a53fde.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 };