bromcom-ui 2.11.0 → 2.11.1-rc.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 (253) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-cd75feb9.entry.js → p-07f4b3b6.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-f2aca650.entry.js → p-0cea9de1.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-258aca86.entry.js → p-11d1263d.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-e70821f7.entry.js → p-12dcbe05.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-4c2ecca2.entry.js → p-13d338d4.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-37565993.entry.js → p-15b5b871.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-ba2ddaf6.js → p-18665a1b.js} +1 -1
  9. package/dist/bromcom-ui/{p-7af84928.entry.js → p-227b3c30.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-2c4e5bb2.entry.js → p-24bf5b68.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-3bb8785d.js → p-26ea59e8.js} +1 -1
  12. package/dist/bromcom-ui/{p-3c4fbed6.entry.js → p-28d8c0a9.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-a3ce764f.entry.js → p-3060ab0d.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-b851dcc2.entry.js → p-362cdc23.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-396ef644.entry.js → p-3ae1649c.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-7aa06da2.entry.js → p-3d009872.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-3b5a6c8e.js → p-444c4e62.js} +1 -1
  18. package/dist/bromcom-ui/{p-bd6c967c.entry.js → p-494b91de.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-518b9b80.js +1 -1
  20. package/dist/bromcom-ui/{p-a3960507.entry.js → p-52263846.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-505709c6.entry.js → p-525d9122.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-5436ddd6.js +1 -1
  23. package/dist/bromcom-ui/{p-1920c1cd.js → p-543a00fb.js} +1 -1
  24. package/dist/bromcom-ui/{p-964b3343.entry.js → p-5679b0d2.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-17821ee9.entry.js → p-56dd3fea.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-e082074a.entry.js → p-5b7c9354.entry.js} +1 -1
  27. package/dist/bromcom-ui/p-5c10f685.entry.js +5 -0
  28. package/dist/bromcom-ui/{p-70b34e79.entry.js → p-5ddfca71.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-62822a2c.entry.js +5 -0
  30. package/dist/bromcom-ui/p-6369b73b.js +1 -1
  31. package/dist/bromcom-ui/p-676c9008.entry.js +5 -0
  32. package/dist/bromcom-ui/{p-cad2f118.entry.js → p-6896c082.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-fe22cf19.entry.js → p-6aaf444d.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-01c26454.entry.js → p-6cd9d6ac.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-f037abec.entry.js → p-6fad7b91.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-3b643e9a.entry.js → p-7194d922.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-aa22dd85.entry.js → p-71b45c22.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-f68c1b66.entry.js → p-72bc8abe.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-13f868f7.entry.js → p-7370b4fe.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-7b7117a6.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-eb4362ac.entry.js → p-7b7f2f30.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-7bd237c3.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-f5958c67.entry.js → p-7d3de132.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-7edf67d6.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-f3246837.entry.js → p-84fe87a9.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-ccb3c2e2.entry.js → p-88aaae3d.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-e76bfd6b.entry.js → p-892dfb49.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-4f96ee59.entry.js → p-8a298b97.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-dbc66238.js → p-8bdcf95d.js} +1 -1
  50. package/dist/bromcom-ui/{p-092f751e.js → p-8da7f4c3.js} +1 -1
  51. package/dist/bromcom-ui/p-94554e42.js +1 -1
  52. package/dist/bromcom-ui/{p-dd1a1d12.entry.js → p-9cae421a.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-e0a4da6d.entry.js → p-9e2b2ff7.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-4a540b56.js → p-9f6bbc21.js} +1 -1
  55. package/dist/bromcom-ui/{p-e920c9b9.entry.js → p-9f9504ee.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-fd1c3951.entry.js → p-a4067bcc.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-f3423d98.entry.js → p-a8096b68.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-15302481.entry.js → p-a8f84d47.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-c439cb60.entry.js → p-b362b2b5.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-b701b3aa.entry.js → p-b3ef6a72.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-aee35345.entry.js → p-b5608cea.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-422e697d.entry.js → p-b5db6748.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-687ea920.entry.js → p-b7197a02.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-73f5c339.entry.js → p-b9c6cf34.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-8d4654ed.entry.js → p-bacb0014.entry.js} +1 -1
  66. package/dist/bromcom-ui/p-bcd599fd.js +5 -0
  67. package/dist/bromcom-ui/{p-e4ab4af0.entry.js → p-c0e42d05.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-66964e5c.entry.js → p-c2cab6c8.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-f0177251.entry.js → p-c8ae67c0.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-79007b75.entry.js → p-cbd050fa.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-3b7ac787.entry.js → p-ccc42e5f.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-2d776ab1.entry.js → p-d36d446d.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-02b30a5c.entry.js → p-ded1c855.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-62370fd0.entry.js → p-e49af670.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-f1c672fd.entry.js +5 -0
  76. package/dist/bromcom-ui/{p-2fad0385.entry.js → p-f73dc7a3.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-c926e138.js → p-fe7e383d.js} +1 -1
  78. package/dist/cjs/{bcm-3c58a6d5.js → bcm-470704cd.js} +4 -4
  79. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  81. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  82. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  83. package/dist/cjs/{bcm-button.cjs.entry.js → bcm-attendance-actions_2.cjs.entry.js} +344 -34
  84. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-avatar_2.cjs.entry.js +10 -10
  86. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  87. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
  88. package/dist/cjs/bcm-caption.cjs.entry.js +8 -8
  89. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  90. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +7 -7
  91. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
  92. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +10 -10
  93. package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -8
  94. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  95. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
  97. package/dist/cjs/bcm-colorful_2.cjs.entry.js +12 -12
  98. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-date.cjs.entry.js +8 -8
  100. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  101. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  102. package/dist/cjs/bcm-drawer.cjs.entry.js +8 -8
  103. package/dist/cjs/bcm-dropdown.cjs.entry.js +8 -8
  104. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  106. package/dist/cjs/bcm-form.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +8 -8
  109. package/dist/cjs/bcm-input_2.cjs.entry.js +15 -15
  110. package/dist/cjs/bcm-item.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  112. package/dist/cjs/bcm-label_2.cjs.entry.js +13 -13
  113. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  114. package/dist/cjs/bcm-list_3.cjs.entry.js +25 -25
  115. package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
  116. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  117. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  118. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  119. package/dist/cjs/bcm-modal.cjs.entry.js +7 -7
  120. package/dist/cjs/bcm-number-input.cjs.entry.js +8 -8
  121. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  122. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
  123. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  124. package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
  125. package/dist/cjs/bcm-radio-group.cjs.entry.js +10 -10
  126. package/dist/cjs/bcm-radio.cjs.entry.js +13 -13
  127. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  128. package/dist/cjs/bcm-rc-picker.cjs.entry.js +2 -2
  129. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  130. package/dist/cjs/bcm-shortcut.cjs.entry.js +10 -10
  131. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  132. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  133. package/dist/cjs/bcm-stepper.cjs.entry.js +9 -9
  134. package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
  135. package/dist/cjs/bcm-tab-group.cjs.entry.js +7 -7
  136. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +10 -10
  137. package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
  138. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  139. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  140. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  141. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  142. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  143. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  144. package/dist/cjs/{floating-ui-555cd3d4.js → floating-ui-829ed777.js} +2 -2
  145. package/dist/cjs/{generate-183405cb.js → generate-c0b728d9.js} +1 -1
  146. package/dist/cjs/{global-4a756c02.js → global-8735cc95.js} +1 -1
  147. package/dist/cjs/{input-template-e36927b1.js → input-template-e9c37e34.js} +6 -6
  148. package/dist/cjs/{json-parse-decarator-4c1f74bb.js → json-parse-decarator-3e78a3ac.js} +1 -1
  149. package/dist/cjs/{label-template-a6f51ef2.js → label-template-df551eef.js} +2 -2
  150. package/dist/cjs/loader.cjs.js +3 -3
  151. package/dist/cjs/{number-helper-ca52fadf.js → number-helper-eea3b6e3.js} +1 -1
  152. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  153. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  154. package/dist/cjs/{package-4c68d5f8.js → package-8156f6de.js} +1 -1
  155. package/dist/cjs/{popover-placement-9b4b4153.js → popover-placement-26859281.js} +1 -1
  156. package/dist/cjs/{slot-template-80b019d5.js → slot-template-a47f5492.js} +1 -1
  157. package/dist/cjs/{stepper-states-f97c457a.js → stepper-states-7e56ed0b.js} +1 -1
  158. package/dist/cjs/{string-helper-3212f4ea.js → string-helper-b6bd711a.js} +2 -2
  159. package/dist/cjs/{tooltip-helper-83971814.js → tooltip-helper-fad904a9.js} +9 -9
  160. package/dist/cjs/{validators-a31b53a5.js → validators-f952aefd.js} +1 -1
  161. package/dist/collection/components/molecules/dropdown/dropdown.css +1 -0
  162. package/dist/components/bcm-dropdown.js +1 -1
  163. package/dist/components/generate.js +1 -1
  164. package/dist/esm/bcm-0f9cc27c.js +1 -1
  165. package/dist/esm/bcm-accordion.entry.js +2 -2
  166. package/dist/esm/bcm-alert.entry.js +2 -2
  167. package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -5
  168. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -5
  169. package/dist/esm/{bcm-button.entry.js → bcm-attendance-actions_2.entry.js} +337 -28
  170. package/dist/esm/bcm-attendance.entry.js +2 -2
  171. package/dist/esm/bcm-avatar_2.entry.js +5 -5
  172. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  173. package/dist/esm/bcm-button-group.entry.js +3 -3
  174. package/dist/esm/bcm-caption.entry.js +5 -5
  175. package/dist/esm/bcm-card.entry.js +2 -2
  176. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  177. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
  178. package/dist/esm/bcm-checkbox_2.entry.js +3 -3
  179. package/dist/esm/bcm-chip-group.entry.js +5 -5
  180. package/dist/esm/bcm-chip.entry.js +2 -2
  181. package/dist/esm/bcm-collapse.entry.js +2 -2
  182. package/dist/esm/bcm-color-input.entry.js +4 -4
  183. package/dist/esm/bcm-colorful_2.entry.js +5 -5
  184. package/dist/esm/bcm-date-picker.entry.js +3 -3
  185. package/dist/esm/bcm-date.entry.js +5 -5
  186. package/dist/esm/bcm-datetime-picker.entry.js +3 -3
  187. package/dist/esm/bcm-default.entry.js +2 -2
  188. package/dist/esm/bcm-drawer.entry.js +5 -5
  189. package/dist/esm/bcm-dropdown.entry.js +5 -5
  190. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  191. package/dist/esm/bcm-form-2.entry.js +3 -3
  192. package/dist/esm/bcm-input-custom.entry.js +2 -2
  193. package/dist/esm/bcm-input-dropdown.entry.js +5 -5
  194. package/dist/esm/bcm-input_2.entry.js +6 -6
  195. package/dist/esm/bcm-item.entry.js +3 -3
  196. package/dist/esm/bcm-items.entry.js +2 -2
  197. package/dist/esm/bcm-label_2.entry.js +6 -6
  198. package/dist/esm/bcm-link.entry.js +1 -1
  199. package/dist/esm/bcm-list_3.entry.js +7 -7
  200. package/dist/esm/bcm-menu.entry.js +5 -5
  201. package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
  202. package/dist/esm/bcm-modal-2-header.entry.js +4 -4
  203. package/dist/esm/bcm-modal-2.entry.js +5 -5
  204. package/dist/esm/bcm-modal.entry.js +3 -3
  205. package/dist/esm/bcm-number-input.entry.js +5 -5
  206. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  207. package/dist/esm/bcm-popconfirm.entry.js +3 -3
  208. package/dist/esm/bcm-popover.entry.js +5 -5
  209. package/dist/esm/bcm-progress.entry.js +3 -3
  210. package/dist/esm/bcm-radio-group.entry.js +5 -5
  211. package/dist/esm/bcm-radio.entry.js +5 -5
  212. package/dist/esm/bcm-range.entry.js +3 -3
  213. package/dist/esm/bcm-rc-picker.entry.js +1 -1
  214. package/dist/esm/bcm-shortcut.entry.js +5 -5
  215. package/dist/esm/bcm-skeleton.entry.js +4 -4
  216. package/dist/esm/bcm-step.entry.js +3 -3
  217. package/dist/esm/bcm-stepper.entry.js +6 -6
  218. package/dist/esm/bcm-switch.entry.js +3 -3
  219. package/dist/esm/bcm-tab-group.entry.js +5 -5
  220. package/dist/esm/bcm-tab-item-header.entry.js +5 -5
  221. package/dist/esm/bcm-tab-item.entry.js +4 -4
  222. package/dist/esm/bcm-table.entry.js +4 -4
  223. package/dist/esm/bcm-tag.entry.js +4 -4
  224. package/dist/esm/bcm-time-picker.entry.js +3 -3
  225. package/dist/esm/bcm-toast.entry.js +3 -3
  226. package/dist/esm/bromcom-ui.js +3 -3
  227. package/dist/esm/floating-ui-a4e67246.js +1 -1
  228. package/dist/esm/{generate-ea4b5630.js → generate-79ee4441.js} +1 -1
  229. package/dist/esm/{global-8fd9695e.js → global-e756344b.js} +1 -1
  230. package/dist/esm/{input-template-2ac3ec12.js → input-template-b0ee6981.js} +2 -2
  231. package/dist/esm/{json-parse-decarator-c5e5dae7.js → json-parse-decarator-ea12b23b.js} +1 -1
  232. package/dist/esm/label-template-b2e8f81d.js +1 -1
  233. package/dist/esm/loader.js +3 -3
  234. package/dist/esm/{number-helper-148cd002.js → number-helper-abccb751.js} +1 -1
  235. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  236. package/dist/esm/old-bcm-popover.entry.js +3 -3
  237. package/dist/esm/{package-b6a53fde.js → package-e9c0a5b1.js} +1 -1
  238. package/dist/esm/{stepper-states-f02df67c.js → stepper-states-a0fe0c79.js} +1 -1
  239. package/dist/esm/string-helper-3526c4fe.js +1 -1
  240. package/dist/esm/{tooltip-helper-4b53b00b.js → tooltip-helper-9f73f914.js} +4 -4
  241. package/dist/esm/{validators-78ec4f0a.js → validators-37228b55.js} +1 -1
  242. package/package.json +1 -1
  243. package/dist/bromcom-ui/p-0511936c.entry.js +0 -5
  244. package/dist/bromcom-ui/p-3b30d329.entry.js +0 -5
  245. package/dist/bromcom-ui/p-4e40be76.entry.js +0 -5
  246. package/dist/bromcom-ui/p-6bea3bea.js +0 -5
  247. package/dist/bromcom-ui/p-ad359555.entry.js +0 -5
  248. package/dist/bromcom-ui/p-ada3eed7.entry.js +0 -5
  249. package/dist/bromcom-ui/p-bca72f17.entry.js +0 -5
  250. package/dist/bromcom-ui/p-f33d8f77.entry.js +0 -5
  251. package/dist/bromcom-ui/p-f650fed9.entry.js +0 -5
  252. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  253. 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 };