bromcom-ui 2.11.1-rc.9-3 → 2.11.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 (337) 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-04068410.entry.js +5 -0
  4. package/dist/bromcom-ui/p-06392358.entry.js +5 -0
  5. package/dist/bromcom-ui/p-08af4159.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-2cd6cdee.js → p-09318a64.js} +1 -1
  7. package/dist/bromcom-ui/p-0bde4e71.entry.js +5 -0
  8. package/dist/bromcom-ui/p-0d87846a.entry.js +5 -0
  9. package/dist/bromcom-ui/p-0ed34855.entry.js +5 -0
  10. package/dist/bromcom-ui/p-0f58e83a.js +5 -0
  11. package/dist/bromcom-ui/p-19283acb.entry.js +5 -0
  12. package/dist/bromcom-ui/p-1e377d82.js +5 -0
  13. package/dist/bromcom-ui/p-207c20c6.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-35c215f2.entry.js → p-20b5c273.entry.js} +1 -1
  15. package/dist/bromcom-ui/p-24906295.entry.js +5 -0
  16. package/dist/bromcom-ui/p-2b4970f5.entry.js +5 -0
  17. package/dist/bromcom-ui/p-2d3ff3b8.entry.js +5 -0
  18. package/dist/bromcom-ui/p-2e7107b8.entry.js +5 -0
  19. package/dist/bromcom-ui/p-3115008f.entry.js +5 -0
  20. package/dist/bromcom-ui/p-346395fa.entry.js +5 -0
  21. package/dist/bromcom-ui/p-375906b2.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-adcb30bc.entry.js → p-3861fc92.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-3f3579b5.entry.js +5 -0
  24. package/dist/bromcom-ui/p-41e75c88.entry.js +5 -0
  25. package/dist/bromcom-ui/p-4e44bab2.entry.js +5 -0
  26. package/dist/bromcom-ui/p-5196912d.js +5 -0
  27. package/dist/bromcom-ui/p-51b2e857.entry.js +5 -0
  28. package/dist/bromcom-ui/p-52a75efb.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-6f37a4d7.entry.js → p-5c70a918.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-5fbb4950.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-a4b675ef.entry.js → p-630a4d45.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-65ac7386.entry.js +5 -0
  33. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  34. package/dist/bromcom-ui/p-7005fb55.entry.js +5 -0
  35. package/dist/bromcom-ui/{p-930f3618.js → p-743731ac.js} +1 -1
  36. package/dist/bromcom-ui/p-7c512c4d.entry.js +5 -0
  37. package/dist/bromcom-ui/p-81887469.entry.js +5 -0
  38. package/dist/bromcom-ui/p-81cbc318.entry.js +5 -0
  39. package/dist/bromcom-ui/p-82d01088.entry.js +5 -0
  40. package/dist/bromcom-ui/p-82f0b161.js +5 -0
  41. package/dist/bromcom-ui/p-84b97f53.entry.js +5 -0
  42. package/dist/bromcom-ui/p-857628f6.js +5 -0
  43. package/dist/bromcom-ui/{p-90223f9f.entry.js → p-887c26f8.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-8a6fb2d5.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-8b31581f.js → p-8ed054fe.js} +1 -1
  46. package/dist/bromcom-ui/p-926f8ac4.entry.js +5 -0
  47. package/dist/bromcom-ui/p-950a341e.entry.js +7 -0
  48. package/dist/bromcom-ui/p-9810187e.entry.js +5 -0
  49. package/dist/bromcom-ui/p-9b5c86e1.entry.js +5 -0
  50. package/dist/bromcom-ui/p-a0d6d680.js +1 -1
  51. package/dist/bromcom-ui/{p-a018f340.entry.js → p-a1e299af.entry.js} +1 -1
  52. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  53. package/dist/bromcom-ui/p-a34bc3d8.entry.js +5 -0
  54. package/dist/bromcom-ui/p-a42fbe84.entry.js +5 -0
  55. package/dist/bromcom-ui/p-a5208f05.entry.js +5 -0
  56. package/dist/bromcom-ui/p-a6142e74.entry.js +5 -0
  57. package/dist/bromcom-ui/p-aea1b034.entry.js +5 -0
  58. package/dist/bromcom-ui/p-b381e7f1.js +19 -0
  59. package/dist/bromcom-ui/p-b4da198b.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-14ed8029.entry.js → p-b764ab86.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-bde67994.entry.js +5 -0
  62. package/dist/bromcom-ui/p-c1761829.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-5a391fcd.js → p-c7aff122.js} +1 -1
  64. package/dist/bromcom-ui/p-c7caf94d.js +5 -0
  65. package/dist/bromcom-ui/{p-5bf1657b.entry.js → p-ce3b34da.entry.js} +1 -1
  66. package/dist/bromcom-ui/p-cf011393.entry.js +5 -0
  67. package/dist/bromcom-ui/p-d01426b6.entry.js +5 -0
  68. package/dist/bromcom-ui/p-d098f115.entry.js +5 -0
  69. package/dist/bromcom-ui/p-d9fcd150.js +5 -0
  70. package/dist/bromcom-ui/{p-0eacfbb2.entry.js → p-dc62a5f7.entry.js} +1 -1
  71. package/dist/bromcom-ui/p-e3c69b3b.entry.js +5 -0
  72. package/dist/bromcom-ui/{p-db15dca3.entry.js → p-e9333e52.entry.js} +1 -1
  73. package/dist/bromcom-ui/p-f56f2a2d.entry.js +5 -0
  74. package/dist/bromcom-ui/p-fcf4b343.entry.js +5 -0
  75. package/dist/bromcom-ui/p-fe776e62.entry.js +5 -0
  76. package/dist/cjs/Overflow-a821abd0.js +2769 -0
  77. package/dist/cjs/{bcm-1d1fcf21.js → bcm-489c9b1a.js} +4 -4
  78. package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
  79. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  80. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -9
  81. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -9
  82. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +329 -0
  83. package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
  84. package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
  85. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
  87. package/dist/cjs/bcm-button_15.cjs.entry.js +18623 -0
  88. package/dist/cjs/bcm-caption.cjs.entry.js +9 -10
  89. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  90. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
  91. package/dist/cjs/{bcm-checkbox-lite_8.cjs.entry.js → bcm-checkbox-lite_9.cjs.entry.js} +26 -6
  92. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
  93. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -10
  94. package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
  95. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-color-input.cjs.entry.js +76 -0
  97. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-drawer.cjs.entry.js +95 -0
  99. package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
  100. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
  102. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  103. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -11
  104. package/dist/cjs/bcm-item.cjs.entry.js +72 -0
  105. package/dist/cjs/bcm-items.cjs.entry.js +49 -0
  106. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  107. package/dist/cjs/bcm-list_3.cjs.entry.js +1970 -0
  108. package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
  109. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -7
  110. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -7
  111. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -8
  112. package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
  113. package/dist/cjs/bcm-number-input.cjs.entry.js +9 -10
  114. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
  115. package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
  116. package/dist/cjs/bcm-popover.cjs.entry.js +9 -10
  117. package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
  118. package/dist/cjs/bcm-radio-group.cjs.entry.js +160 -0
  119. package/dist/cjs/bcm-radio.cjs.entry.js +64 -0
  120. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  121. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  122. package/dist/cjs/bcm-shortcut.cjs.entry.js +64 -0
  123. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -7
  124. package/dist/cjs/bcm-step.cjs.entry.js +89 -0
  125. package/dist/cjs/bcm-stepper.cjs.entry.js +239 -0
  126. package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
  127. package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
  128. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
  129. package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
  130. package/dist/cjs/bcm-table.cjs.entry.js +6 -7
  131. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  132. package/dist/cjs/bcm-text.cjs.entry.js +49 -0
  133. package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
  134. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  135. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  136. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-086e9cac.js} +2 -2
  137. package/dist/cjs/{floating-ui-5b396838.js → floating-ui-21890d11.js} +2 -2
  138. package/dist/cjs/{generate-f73a098d.js → generate-82c63a56.js} +1 -1
  139. package/dist/cjs/{global-baf04c81.js → global-1e13ce25.js} +1 -1
  140. package/dist/cjs/input-template-e0087a2b.js +92 -0
  141. package/dist/cjs/json-parse-decarator-e0946e2e.js +40 -0
  142. package/dist/cjs/{label-template-e83447b5.js → label-template-94b3d775.js} +3 -3
  143. package/dist/cjs/loader.cjs.js +3 -3
  144. package/dist/cjs/{number-helper-0543a62e.js → number-helper-10017fcd.js} +1 -1
  145. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  146. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  147. package/dist/cjs/{package-e717a31f.js → package-13f78ab4.js} +1 -1
  148. package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-e7d6eabd.js} +1 -1
  149. package/dist/cjs/{slot-template-df7b5b59.js → slot-template-c8e2816c.js} +1 -1
  150. package/dist/cjs/stepper-states-77438c3a.js +85 -0
  151. package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
  152. package/dist/cjs/tooltip-helper-a2793290.js +157 -0
  153. package/dist/cjs/{validators-77768582.js → validators-f4c3063b.js} +6 -1
  154. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  155. package/dist/collection/components/atoms/badge/badge.js +1 -1
  156. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  157. package/dist/collection/components/atoms/button/button.css +13 -13
  158. package/dist/collection/components/atoms/button/button.js +14 -14
  159. package/dist/collection/components/atoms/chip/chip.css +4 -4
  160. package/dist/collection/components/atoms/chip/chip.js +3 -3
  161. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  162. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  163. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  164. package/dist/collection/components/molecules/empty/empty.js +1 -1
  165. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  166. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  167. package/dist/collection/components/molecules/input/input.js +1 -1
  168. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  169. package/dist/collection/components/molecules/menu/menu.css +4 -4
  170. package/dist/collection/components/molecules/modal/modal.css +1 -1
  171. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  172. package/dist/collection/components/molecules/radio/radio.js +1 -1
  173. package/dist/collection/components/molecules/range/range.js +1 -1
  174. package/dist/collection/components/molecules/switch/switch.css +2 -2
  175. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  176. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  177. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  178. package/dist/collection/components/organism/list/list.css +2 -2
  179. package/dist/collection/components/organism/list/list.js +2 -2
  180. package/dist/collection/components/other/attendance/attendance.js +1 -1
  181. package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
  182. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +40 -5
  183. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +11 -2
  184. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +0 -1
  185. package/dist/collection/templates/button-template.js +1 -1
  186. package/dist/collection/templates/caption-template.js +2 -2
  187. package/dist/collection/templates/input-template.js +1 -1
  188. package/dist/collection/templates/label-template.js +1 -1
  189. package/dist/collection/templates/list-item-template.js +1 -1
  190. package/dist/collection/templates/list-template.js +9 -3
  191. package/dist/components/{raf.js → Overflow.js} +692 -69
  192. package/dist/components/avatar.js +1 -1
  193. package/dist/components/badge.js +2 -2
  194. package/dist/components/bcm-attendance.js +1 -1
  195. package/dist/components/bcm-checkbox-group.js +2 -2
  196. package/dist/components/bcm-color-input.js +1 -1
  197. package/dist/components/bcm-date.js +1 -1
  198. package/dist/components/bcm-error-layout.js +1 -1
  199. package/dist/components/bcm-expansion-panel.js +1 -1
  200. package/dist/components/bcm-input-dropdown.js +1 -1
  201. package/dist/components/bcm-modal.js +1 -1
  202. package/dist/components/bcm-radio-group.js +1 -1
  203. package/dist/components/bcm-range.js +1 -1
  204. package/dist/components/bcm-switch.js +1 -1
  205. package/dist/components/bcm-tab-group.js +2 -2
  206. package/dist/components/bcm-tab-item-header.js +5 -5
  207. package/dist/components/button.js +16 -16
  208. package/dist/components/caption-template.js +2 -2
  209. package/dist/components/chip.js +4 -4
  210. package/dist/components/empty.js +1 -1
  211. package/dist/components/generate.js +1 -1
  212. package/dist/components/input-template.js +1 -1
  213. package/dist/components/input.js +1 -1
  214. package/dist/components/label.js +1 -1
  215. package/dist/components/list.js +13 -7
  216. package/dist/components/menu.js +1 -1
  217. package/dist/components/radio.js +1 -1
  218. package/dist/components/rc-overflow.js +1 -593
  219. package/dist/components/rc-picker.js +8620 -8025
  220. package/dist/components/tooltip.js +1 -1
  221. package/dist/esm/Overflow-2cffcda0.js +2750 -0
  222. package/dist/esm/bcm-a50d55ba.js +1 -1
  223. package/dist/esm/bcm-accordion.entry.js +70 -0
  224. package/dist/esm/bcm-alert.entry.js +2 -2
  225. package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -6
  226. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -6
  227. package/dist/esm/bcm-attendance-actions.entry.js +325 -0
  228. package/dist/esm/bcm-attendance.entry.js +31 -0
  229. package/dist/esm/bcm-avatar_2.entry.js +204 -0
  230. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  231. package/dist/esm/bcm-button-group.entry.js +88 -0
  232. package/dist/esm/bcm-button_15.entry.js +18605 -0
  233. package/dist/esm/bcm-caption.entry.js +6 -7
  234. package/dist/esm/bcm-card.entry.js +2 -2
  235. package/dist/esm/bcm-checkbox-group.entry.js +411 -0
  236. package/dist/esm/{bcm-checkbox-lite_8.entry.js → bcm-checkbox-lite_9.entry.js} +24 -5
  237. package/dist/esm/bcm-checkbox_2.entry.js +189 -0
  238. package/dist/esm/bcm-chip-group.entry.js +7 -8
  239. package/dist/esm/bcm-chip.entry.js +87 -0
  240. package/dist/esm/bcm-collapse.entry.js +2 -2
  241. package/dist/esm/bcm-color-input.entry.js +72 -0
  242. package/dist/esm/bcm-default.entry.js +2 -2
  243. package/dist/esm/bcm-drawer.entry.js +91 -0
  244. package/dist/esm/bcm-dropdown.entry.js +115 -0
  245. package/dist/esm/bcm-error-layout.entry.js +1 -1
  246. package/dist/esm/bcm-expansion-panel.entry.js +112 -0
  247. package/dist/esm/bcm-input-custom.entry.js +2 -2
  248. package/dist/esm/bcm-input-dropdown.entry.js +7 -8
  249. package/dist/esm/bcm-item.entry.js +68 -0
  250. package/dist/esm/bcm-items.entry.js +45 -0
  251. package/dist/esm/bcm-link.entry.js +1 -1
  252. package/dist/esm/bcm-list_3.entry.js +1964 -0
  253. package/dist/esm/bcm-menu.entry.js +146 -0
  254. package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
  255. package/dist/esm/bcm-modal-2-header.entry.js +4 -5
  256. package/dist/esm/bcm-modal-2.entry.js +5 -6
  257. package/dist/esm/bcm-modal.entry.js +153 -0
  258. package/dist/esm/bcm-number-input.entry.js +6 -7
  259. package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
  260. package/dist/esm/bcm-popconfirm.entry.js +97 -0
  261. package/dist/esm/bcm-popover.entry.js +5 -6
  262. package/dist/esm/bcm-progress.entry.js +158 -0
  263. package/dist/esm/bcm-radio-group.entry.js +156 -0
  264. package/dist/esm/bcm-radio.entry.js +60 -0
  265. package/dist/esm/bcm-range.entry.js +4 -4
  266. package/dist/esm/bcm-shortcut.entry.js +60 -0
  267. package/dist/esm/bcm-skeleton.entry.js +4 -5
  268. package/dist/esm/bcm-step.entry.js +85 -0
  269. package/dist/esm/bcm-stepper.entry.js +235 -0
  270. package/dist/esm/bcm-switch.entry.js +147 -0
  271. package/dist/esm/bcm-tab-group.entry.js +205 -0
  272. package/dist/esm/bcm-tab-item-header.entry.js +54 -0
  273. package/dist/esm/bcm-tab-item.entry.js +86 -0
  274. package/dist/esm/bcm-table.entry.js +4 -5
  275. package/dist/esm/bcm-tag.entry.js +4 -4
  276. package/dist/esm/bcm-text.entry.js +45 -0
  277. package/dist/esm/bcm-textarea.entry.js +159 -0
  278. package/dist/esm/bcm-toast.entry.js +3 -3
  279. package/dist/esm/bromcom-ui.js +3 -3
  280. package/dist/esm/{caption-template-d7953d13.js → caption-template-fd7738eb.js} +2 -2
  281. package/dist/esm/floating-ui-3f4394da.js +1 -1
  282. package/dist/esm/{generate-c2c0b02e.js → generate-b33f722f.js} +1 -1
  283. package/dist/esm/{global-2473677b.js → global-d524a06a.js} +1 -1
  284. package/dist/esm/input-template-453bfff8.js +90 -0
  285. package/dist/esm/json-parse-decarator-1aa4119c.js +38 -0
  286. package/dist/esm/{label-template-a26f76c0.js → label-template-374fbdcd.js} +2 -2
  287. package/dist/esm/loader.js +3 -3
  288. package/dist/esm/{number-helper-75447fa6.js → number-helper-712eedd0.js} +1 -1
  289. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  290. package/dist/esm/old-bcm-popover.entry.js +3 -3
  291. package/dist/esm/{package-28dc6847.js → package-c604bd07.js} +1 -1
  292. package/dist/esm/stepper-states-00eb7d7d.js +83 -0
  293. package/dist/esm/string-helper-3592bdc2.js +1 -1
  294. package/dist/esm/tooltip-helper-088013ec.js +155 -0
  295. package/dist/esm/{validators-5a383988.js → validators-ebf92486.js} +6 -2
  296. package/dist/types/templates/list-template.d.ts +0 -1
  297. package/package.json +2 -2
  298. package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
  299. package/dist/bromcom-ui/p-178fa936.entry.js +0 -5
  300. package/dist/bromcom-ui/p-3361f6c9.entry.js +0 -5
  301. package/dist/bromcom-ui/p-350dbff0.entry.js +0 -5
  302. package/dist/bromcom-ui/p-3cdfd8eb.entry.js +0 -5
  303. package/dist/bromcom-ui/p-5a22b74b.entry.js +0 -5
  304. package/dist/bromcom-ui/p-626a65e9.js +0 -5
  305. package/dist/bromcom-ui/p-627c7769.entry.js +0 -5
  306. package/dist/bromcom-ui/p-64f21481.entry.js +0 -20
  307. package/dist/bromcom-ui/p-70253803.entry.js +0 -5
  308. package/dist/bromcom-ui/p-7fd22a35.entry.js +0 -5
  309. package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
  310. package/dist/bromcom-ui/p-abd2f9ff.entry.js +0 -5
  311. package/dist/bromcom-ui/p-bb46d881.entry.js +0 -5
  312. package/dist/bromcom-ui/p-bca0ff0a.entry.js +0 -5
  313. package/dist/bromcom-ui/p-c10b07cc.entry.js +0 -5
  314. package/dist/bromcom-ui/p-c7030364.entry.js +0 -5
  315. package/dist/bromcom-ui/p-dc607ae4.entry.js +0 -5
  316. package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
  317. package/dist/bromcom-ui/p-e10780ed.entry.js +0 -5
  318. package/dist/bromcom-ui/p-e497cf5d.entry.js +0 -5
  319. package/dist/bromcom-ui/p-e93d6619.js +0 -5
  320. package/dist/bromcom-ui/p-ebeb9689.entry.js +0 -5
  321. package/dist/bromcom-ui/p-eca0acda.js +0 -5
  322. package/dist/bromcom-ui/p-ede82918.js +0 -5
  323. package/dist/bromcom-ui/p-fba1682e.entry.js +0 -5
  324. package/dist/cjs/bcm-accordion_46.cjs.entry.js +0 -24086
  325. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
  326. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
  327. package/dist/cjs/bcm-form-2.cjs.entry.js +0 -212
  328. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  329. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -150
  330. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  331. package/dist/esm/bcm-accordion_46.entry.js +0 -24037
  332. package/dist/esm/bcm-date-picker.entry.js +0 -178
  333. package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
  334. package/dist/esm/bcm-form-2.entry.js +0 -208
  335. package/dist/esm/bcm-old-input.entry.js +0 -393
  336. package/dist/esm/bcm-time-picker.entry.js +0 -146
  337. package/dist/esm/datetime-helper-df25808a.js +0 -9
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- exports.Bcm = void 0;
7
+ exports.Bcm$1 = void 0;
8
8
  (function (Bcm) {
9
9
  (function (HtmlElementType) {
10
10
  HtmlElementType["div"] = "div";
@@ -446,7 +446,7 @@ exports.Bcm = void 0;
446
446
  ListType["select"] = "select";
447
447
  ListType["autocomplete"] = "autocomplete";
448
448
  })(Bcm.ListType || (Bcm.ListType = {}));
449
- })(exports.Bcm || (exports.Bcm = {}));
450
- const Bcm = exports.Bcm;
449
+ })(exports.Bcm$1 || (exports.Bcm$1 = {}));
450
+ const Bcm = exports.Bcm$1;
451
451
 
452
- exports.Bcm$1 = Bcm;
452
+ exports.Bcm = Bcm;
@@ -0,0 +1,74 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ Object.defineProperty(exports, '__esModule', { value: true });
8
+
9
+ const index = require('./index-c591ecec.js');
10
+ const generate = require('./generate-82c63a56.js');
11
+ require('./package-13f78ab4.js');
12
+ require('./colors-078851ec.js');
13
+ require('./_commonjsHelpers-ed84c3ca.js');
14
+
15
+ 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}";
16
+
17
+ const BcmAccordion = class {
18
+ constructor(hostRef) {
19
+ index.registerInstance(this, hostRef);
20
+ this._id = generate.Generate.UID();
21
+ this.multi = false;
22
+ }
23
+ componentDidRender() {
24
+ if (!this.multi)
25
+ this.checkExpandedCount();
26
+ }
27
+ checkExpandedCount() {
28
+ var _a, _b;
29
+ const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
30
+ if (accordion) {
31
+ const checkExpandedCount = Array.from(accordion)
32
+ .map((accordion) => accordion.expanded)
33
+ .filter(Boolean).length;
34
+ if (checkExpandedCount > 1) {
35
+ 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;
36
+ Array.from(accordion).forEach((accordion) => {
37
+ if (accordion.id !== getLastExpandedId) {
38
+ accordion.expanded = false;
39
+ }
40
+ });
41
+ }
42
+ }
43
+ }
44
+ open(event) {
45
+ if (this.multi)
46
+ return;
47
+ const id = event.detail;
48
+ const accordion = this.el.querySelectorAll('.bcm-expansion-panel');
49
+ if (accordion) {
50
+ accordion.forEach((accordion) => {
51
+ if (accordion.id !== id) {
52
+ accordion.expanded = false;
53
+ }
54
+ });
55
+ }
56
+ }
57
+ isLoad(event) {
58
+ var _a, _b, _c;
59
+ if (!this.multi) {
60
+ 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;
61
+ var nodeName = ((_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.nodeName) || null;
62
+ if (nodeName == 'BCM-EXPANSION-PANEL' && this._id == parentId) {
63
+ this.checkExpandedCount();
64
+ }
65
+ }
66
+ }
67
+ render() {
68
+ return (index.h(index.Host, { id: this._id }, index.h("slot", null)));
69
+ }
70
+ get el() { return index.getElement(this); }
71
+ };
72
+ BcmAccordion.style = accordionCss;
73
+
74
+ exports.bcm_accordion = BcmAccordion;
@@ -7,14 +7,14 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-c591ecec.js');
10
- const generate = require('./generate-f73a098d.js');
10
+ const generate = require('./generate-82c63a56.js');
11
11
  const index$2 = require('./index-95ae50d0.js');
12
12
  const index = require('./index-d321de96.js');
13
- const stringHelper = require('./string-helper-9cdfb273.js');
14
- require('./package-e717a31f.js');
13
+ const stringHelper = require('./string-helper-f9184277.js');
14
+ require('./package-13f78ab4.js');
15
15
  require('./colors-078851ec.js');
16
16
  require('./_commonjsHelpers-ed84c3ca.js');
17
- require('./bcm-1d1fcf21.js');
17
+ require('./bcm-489c9b1a.js');
18
18
 
19
19
  const { state } = index.createStore({
20
20
  value: new Map(),
@@ -8,20 +8,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-c591ecec.js');
10
10
  require('./color-helper-c3a819ea.js');
11
- require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-f73a098d.js');
13
- require('./number-helper-0543a62e.js');
14
- require('./string-helper-9cdfb273.js');
15
- require('./validators-77768582.js');
11
+ require('./validators-f4c3063b.js');
12
+ const generate = require('./generate-82c63a56.js');
13
+ require('./number-helper-10017fcd.js');
14
+ require('./string-helper-f9184277.js');
16
15
  require('./element-dragger-a8562f82.js');
17
16
  const utils = require('./utils-fc077139.js');
18
- const floatingUi = require('./floating-ui-5b396838.js');
19
- const bcm = require('./bcm-1d1fcf21.js');
17
+ const floatingUi = require('./floating-ui-21890d11.js');
18
+ const bcm = require('./bcm-489c9b1a.js');
20
19
  const index = require('./index-5279dea2.js');
21
20
  require('./colors-56282b00.js');
22
21
  require('./colors-078851ec.js');
23
22
  require('./_commonjsHelpers-ed84c3ca.js');
24
- require('./package-e717a31f.js');
23
+ require('./package-13f78ab4.js');
25
24
 
26
25
  const attendanceActionCommentStyle = index.ce({
27
26
  slots: {
@@ -53,7 +52,7 @@ const BcmAttendanceActionsComment = class {
53
52
  this.lateMinutes = null;
54
53
  this.comment = null;
55
54
  this._id = generate.Generate.UID();
56
- this.size = bcm.Bcm.Size.medium;
55
+ this.size = bcm.Bcm$1.Size.medium;
57
56
  this.disabled = false;
58
57
  this.selectedKey = null;
59
58
  this.targetId = null;
@@ -8,21 +8,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-c591ecec.js');
10
10
  require('./color-helper-c3a819ea.js');
11
- require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-f73a098d.js');
13
- require('./number-helper-0543a62e.js');
14
- require('./string-helper-9cdfb273.js');
15
- require('./validators-77768582.js');
11
+ require('./validators-f4c3063b.js');
12
+ const generate = require('./generate-82c63a56.js');
13
+ require('./number-helper-10017fcd.js');
14
+ require('./string-helper-f9184277.js');
16
15
  require('./element-dragger-a8562f82.js');
17
- const floatingUi = require('./floating-ui-5b396838.js');
18
- const bcm = require('./bcm-1d1fcf21.js');
16
+ const floatingUi = require('./floating-ui-21890d11.js');
17
+ const bcm = require('./bcm-489c9b1a.js');
19
18
  const index$2 = require('./index-95ae50d0.js');
20
19
  const index = require('./index-5279dea2.js');
21
20
  require('./colors-56282b00.js');
22
21
  require('./utils-fc077139.js');
23
22
  require('./colors-078851ec.js');
24
23
  require('./_commonjsHelpers-ed84c3ca.js');
25
- require('./package-e717a31f.js');
24
+ require('./package-13f78ab4.js');
26
25
 
27
26
  const attendanceActionDropdownStyle = index.ce({
28
27
  slots: {
@@ -59,7 +58,7 @@ const BcmAttendanceActionsDropdown = class {
59
58
  index$1.registerInstance(this, hostRef);
60
59
  this.change = index$1.createEvent(this, "bcm-attendance-actions-dropdown-change", 3);
61
60
  this._id = generate.Generate.UID();
62
- this.size = bcm.Bcm.Size.medium;
61
+ this.size = bcm.Bcm$1.Size.medium;
63
62
  this.disabled = false;
64
63
  this.selectedKey = null;
65
64
  this.targetId = null;
@@ -0,0 +1,329 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ Object.defineProperty(exports, '__esModule', { value: true });
8
+
9
+ const index$1 = require('./index-c591ecec.js');
10
+ require('./color-helper-c3a819ea.js');
11
+ require('./validators-f4c3063b.js');
12
+ const generate = require('./generate-82c63a56.js');
13
+ require('./number-helper-10017fcd.js');
14
+ require('./string-helper-f9184277.js');
15
+ require('./element-dragger-a8562f82.js');
16
+ const bcm = require('./bcm-489c9b1a.js');
17
+ const index$2 = require('./index-95ae50d0.js');
18
+ const index = require('./index-5279dea2.js');
19
+ require('./colors-56282b00.js');
20
+ require('./utils-fc077139.js');
21
+ require('./colors-078851ec.js');
22
+ require('./_commonjsHelpers-ed84c3ca.js');
23
+ require('./package-13f78ab4.js');
24
+
25
+ // --bcm-attendance-actions-button-bg: #F1F5F9; /* slate-100 */
26
+ // --bcm-attendance-actions-button-text: #334155; /* slate-700 */
27
+ // --bcm-attendance-actions-button-border: #CBD5E1; /* slate-300 */
28
+ // --bcm-attendance-actions-button-hover-bg: #E2E8F0; /* slate-200 */
29
+ // --bcm-attendance-actions-button-active-bg: #CBD5E1; /* slate-300 */
30
+ // --bcm-attendance-actions-button-disabled-bg: #CBD5E1; /* slate-300 */
31
+ // --bcm-attendance-actions-button-disabled-text: #64748B; /* slate-500 */
32
+ const attendanceActionStyle = index.ce({
33
+ slots: {
34
+ 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"],
35
+ base: "",
36
+ buttonContainer: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-w-full tw-max-w-[168px]",
37
+ button: [
38
+ "",
39
+ "tw-button-reset",
40
+ "tw-flex-1 last:tw-flex-none",
41
+ "tw-bg-[--bcm-attendance-actions-button-bg]",
42
+ "tw-text-[--bcm-attendance-actions-button-text]",
43
+ "tw-border tw-border-solid tw-border-[--bcm-attendance-actions-button-border]",
44
+ "hover:tw-bg-[--bcm-attendance-actions-button-hover-bg]",
45
+ "active:tw-bg-[--bcm-attendance-actions-button-active-bg]",
46
+ "focus-visible:tw-ring-2 focus-visible:tw-ring-offset-2 focus-visible:tw-z-10",
47
+ "tw-flex tw-flex-row tw-items-center tw-justify-center",
48
+ "first:tw-rounded-l last:tw-rounded-r",
49
+ "tw-font-medium",
50
+ "-tw-ml-[1px] first:tw-ml-0",
51
+ ],
52
+ dropdownButton: "",
53
+ mainButton: "",
54
+ commentIcon: "",
55
+ },
56
+ variants: {
57
+ selected: {
58
+ true: {
59
+ button: [
60
+ "tw-text-white tw-border-transparent last:tw-ml-[1px]",
61
+ "first:tw-justify-start",
62
+ ],
63
+ mainButton: [
64
+ "tw-min-w-[calc(theme(spacing.12)-1px)]"
65
+ ],
66
+ },
67
+ false: {
68
+ button: [
69
+ ""
70
+ ],
71
+ },
72
+ },
73
+ size: {
74
+ small: {
75
+ button: [
76
+ "tw-text-2",
77
+ "tw-min-h-6",
78
+ "tw-gap-2",
79
+ ],
80
+ mainButton: [
81
+ "tw-px-3",
82
+ ],
83
+ dropdownButton: [
84
+ "tw-px-2.5"
85
+ ],
86
+ },
87
+ medium: {
88
+ button: [
89
+ "tw-text-3",
90
+ "tw-min-h-8",
91
+ "tw-gap-2",
92
+ ],
93
+ mainButton: [
94
+ "tw-px-3",
95
+ ],
96
+ dropdownButton: [
97
+ "tw-px-2.5"
98
+ ],
99
+ },
100
+ large: {
101
+ button: [
102
+ "tw-text-4",
103
+ "tw-min-h-10",
104
+ "tw-gap-2.5",
105
+ ],
106
+ mainButton: [
107
+ "tw-px-3",
108
+ ],
109
+ dropdownButton: [
110
+ "tw-px-3"
111
+ ],
112
+ },
113
+ },
114
+ disabled: {
115
+ true: {},
116
+ false: {}
117
+ }
118
+ },
119
+ compoundVariants: [
120
+ {
121
+ disabled: true,
122
+ class: {
123
+ buttonContainer: [
124
+ "tw-cursor-not-allowed tw-pointer-events-none",
125
+ ],
126
+ button: [
127
+ "tw-cursor-not-allowed",
128
+ "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
129
+ "tw-text-[--bcm-attendance-actions-button-disabled-text]",
130
+ "tw-border-transparent",
131
+ "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
132
+ ],
133
+ mainButton: [
134
+ "tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
135
+ "tw-text-[--bcm-attendance-actions-button-disabled-text]",
136
+ "tw-border-transparent",
137
+ "hover:tw-bg-[--bcm-attendance-actions-button-disabled-bg]",
138
+ "tw-cursor-not-allowed",
139
+ ],
140
+ host: [
141
+ "tw-cursor-not-allowed",
142
+ ],
143
+ commentIcon: [
144
+ "tw-cursor-not-allowed tw-pointer-events-none",
145
+ ],
146
+ }
147
+ },
148
+ {
149
+ disabled: false,
150
+ class: {
151
+ button: [
152
+ "tw-cursor-pointer",
153
+ ],
154
+ }
155
+ }
156
+ ],
157
+ defaultVariants: {
158
+ selected: false,
159
+ size: "medium",
160
+ disabled: false,
161
+ },
162
+ });
163
+
164
+ const attendanceActionsCss = "";
165
+
166
+ const BcmAttendanceActions = class {
167
+ constructor(hostRef) {
168
+ index$1.registerInstance(this, hostRef);
169
+ this.change = index$1.createEvent(this, "bcm-attendance-change", 3);
170
+ this._id = generate.Generate.UID();
171
+ this.size = bcm.Bcm$1.Size.medium;
172
+ this.disabled = false;
173
+ this.data = [
174
+ { key: "P", value: "Present", color: "emerald", icon: "fa-solid fa-check", priority: 0 },
175
+ { key: "A", value: "Absent", color: "red", icon: "fa-solid fa-times", priority: 1 },
176
+ { key: "L", value: "Late", color: "amber", icon: "fa-solid fa-clock", priority: 2 },
177
+ { key: "C", value: "Other Authorised Circumstance", color: "blue", icon: "fa-solid fa-question" },
178
+ { key: "E", value: "Exlude", color: "blue", icon: "fa-solid fa-minus" },
179
+ { key: "G", value: "Family Holiday", color: "blue", icon: "fa-solid fa-minus" },
180
+ { key: "H", value: "Family Holiday (Agreed)", color: "blue", icon: "fa-solid fa-minus" },
181
+ { key: "I", value: "Illness", color: "blue", icon: "fa-solid fa-minus" },
182
+ { key: "J", value: "Intervier", color: "blue", icon: "fa-solid fa-minus" },
183
+ { key: "M", value: "Medical / Dental", color: "blue", icon: "fa-solid fa-minus" },
184
+ { key: "N", value: "No Reason yet PRovided", color: "blue", icon: "fa-solid fa-minus" },
185
+ { key: "O", value: "Unauthrised Absence", color: "blue", icon: "fa-solid fa-minus" },
186
+ { key: "U", value: "Late after Reg. Closed", color: "blue", icon: "fa-solid fa-minus" },
187
+ { key: "X", value: "Non-comp School Age Absence", color: "blue", icon: "fa-solid fa-minus" },
188
+ ];
189
+ this.lateKeys = "L";
190
+ this.hideComment = false;
191
+ }
192
+ get selectedItem() {
193
+ return this.data.find(item => item.selected);
194
+ }
195
+ get priorityButtons() {
196
+ return this.data.filter(item => item.priority !== undefined).sort((a, b) => a.priority - b.priority);
197
+ }
198
+ get renderButtons() {
199
+ const { selectedItem, priorityButtons } = this;
200
+ return [...(selectedItem ? [selectedItem] : priorityButtons.length ? priorityButtons : this.data.slice(0, 3))];
201
+ }
202
+ get lateKeysMap() {
203
+ return this.lateKeys.toLocaleLowerCase().split(",");
204
+ }
205
+ get isLate() {
206
+ var _a, _b;
207
+ return this.lateKeysMap.includes((_b = (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
208
+ }
209
+ get dropdownMenuElement() {
210
+ return document.getElementById("attendance-dropdown-" + this._id);
211
+ }
212
+ get commentAreaElement() {
213
+ return document.getElementById("comment-" + this._id);
214
+ }
215
+ handleSelectItem(item, triggerChange = true, showComment = true) {
216
+ var _a, _b;
217
+ 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()) })); })];
218
+ (_a = this.dropdownMenuElement) === null || _a === void 0 ? void 0 : _a.hide();
219
+ (_b = this.commentAreaElement) === null || _b === void 0 ? void 0 : _b.hide();
220
+ if (!this.isLate)
221
+ return triggerChange && this.changed();
222
+ !this.hideComment && showComment && this.commentArea();
223
+ }
224
+ changed() {
225
+ this.change.emit(this.selectedItem);
226
+ }
227
+ hasDataForKey(key) {
228
+ return !!this.data.find(item => item.key.toLocaleLowerCase() === key.toLocaleLowerCase());
229
+ }
230
+ handleKeyPress({ key }) {
231
+ if (!this.hasDataForKey(key))
232
+ return;
233
+ 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()); });
234
+ this.handleSelectItem(item);
235
+ }
236
+ handleSave(lateMinutes, comment) {
237
+ this.data = [...this.data].map(item => {
238
+ var _a, _b, _c;
239
+ 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())) {
240
+ return Object.assign(Object.assign({}, item), { lateMin: lateMinutes, comment });
241
+ }
242
+ return item;
243
+ });
244
+ this.changed();
245
+ }
246
+ dropdownMenu() {
247
+ var _a;
248
+ const dropdownMenu = generate.Generate.createComponent("bcm-attendance-actions-dropdown", {
249
+ id: "attendance-dropdown-" + this._id,
250
+ size: this.size,
251
+ data: this.data,
252
+ selectedKey: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.key,
253
+ targetId: "attendance-dropdown-button-" + this._id,
254
+ });
255
+ dropdownMenu.addEventListener("bcm-attendance-actions-dropdown-change", ({ detail }) => {
256
+ this.handleSelectItem(detail);
257
+ });
258
+ dropdownMenu.show();
259
+ }
260
+ commentArea() {
261
+ var _a, _b;
262
+ const commentArea = generate.Generate.createComponent("bcm-attendance-actions-comment", {
263
+ id: "comment-" + this._id,
264
+ size: this.size,
265
+ isLate: this.isLate,
266
+ targetId: "comment-area-" + this._id,
267
+ selectedItem: this.selectedItem,
268
+ lateMinutes: (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.lateMin,
269
+ comment: (_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.comment,
270
+ });
271
+ commentArea.addEventListener("bcm-attendance-actions-comment-change", ({ detail }) => {
272
+ this.handleSave(detail.lateMinutes, detail.comment);
273
+ });
274
+ commentArea.show();
275
+ }
276
+ async set(key, triggerChange = true) {
277
+ if (!this.hasDataForKey(key))
278
+ return;
279
+ 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()); });
280
+ this.handleSelectItem(item, triggerChange, false);
281
+ }
282
+ async get() {
283
+ return this.selectedItem;
284
+ }
285
+ render() {
286
+ var _a, _b, _c;
287
+ const { selectedItem, renderButtons, disabled, hideComment, size } = this;
288
+ const { host, buttonContainer, button, dropdownButton, commentIcon, mainButton } = attendanceActionStyle({
289
+ selected: !!selectedItem,
290
+ size,
291
+ disabled,
292
+ });
293
+ const buttonStyle = !!selectedItem
294
+ ? generate.Generate.getTwColor({
295
+ color: (_a = selectedItem.color) !== null && _a !== void 0 ? _a : "blue",
296
+ tones: {
297
+ 600: ["bg"],
298
+ 700: ["hover-bg"],
299
+ 800: ["active-bg"],
300
+ },
301
+ variable: "--bcm-attendance-actions-button",
302
+ })
303
+ : {};
304
+ const buttonAttributes = {
305
+ class: index$2.classnames(button(), mainButton()),
306
+ style: Object.assign({}, buttonStyle),
307
+ disabled,
308
+ type: "button",
309
+ };
310
+ const iconButtonAttributes = Object.assign(Object.assign({}, buttonAttributes), { class: index$2.classnames(button(), dropdownButton()) });
311
+ const isShowCommentIcon = !hideComment && !!selectedItem;
312
+ 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) ` : ""}` : "";
313
+ return (index$1.h(index$1.Host, { class: host(), onKeyPress: this.handleKeyPress.bind(this) }, index$1.h("div", { class: buttonContainer() }, renderButtons === null || renderButtons === void 0 ? void 0 :
314
+ renderButtons.map(item => {
315
+ return (index$1.h("button", Object.assign({}, buttonAttributes, { onClick: () => this.handleSelectItem(item), title: item.value }), index$1.h("i", { class: index$2.classnames(item.icon || "fa-solid fa-minus", "!tw-leading-[inherit]") }), item.selected && index$1.h("span", { class: "tw-truncate" }, item.value)));
316
+ }), index$1.h("button", Object.assign({ id: "attendance-dropdown-button-" + this._id }, iconButtonAttributes, { onClick: () => this.dropdownMenu(), title: "More" }), index$1.h("i", { class: index$2.classnames("fa-solid fa-angle-down !tw-leading-[inherit]") }))), index$1.h("div", { id: "comment-area-" + this._id, class: index$2.classnames(commentIcon(), {
317
+ "tw-cursor-default": !isShowCommentIcon,
318
+ "tw-cursor-pointer": isShowCommentIcon,
319
+ }), onClick: () => isShowCommentIcon && this.commentArea() }, index$1.h("i", { title: isShowCommentIcon ? commentTooltip : "", class: index$2.classnames("fa-solid fa-comment", {
320
+ "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)),
321
+ "tw-visible": isShowCommentIcon,
322
+ "tw-invisible": !isShowCommentIcon,
323
+ }) }))));
324
+ }
325
+ get el() { return index$1.getElement(this); }
326
+ };
327
+ BcmAttendanceActions.style = attendanceActionsCss;
328
+
329
+ exports.bcm_attendance_actions = BcmAttendanceActions;
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ Object.defineProperty(exports, '__esModule', { value: true });
8
+
9
+ const index = require('./index-c591ecec.js');
10
+ const generate = require('./generate-82c63a56.js');
11
+ require('./package-13f78ab4.js');
12
+ require('./colors-078851ec.js');
13
+ require('./_commonjsHelpers-ed84c3ca.js');
14
+
15
+ const attendanceCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-attendance{width:fit-content;display:inline-flex;align-items:center;flex-direction:row;gap:4px}.bcm-attendance__item{display:flex;flex-direction:row;align-items:center;gap:1px}.bcm-attendance__item-am,.bcm-attendance__item-pm{display:block;width:calc( calc( 12px + 1px ) / 2 );height:calc( 12px + 1px );background-color:var(--bcm-new-ds-color-blue-500)}.bcm-attendance__item-am:hover,.bcm-attendance__item-pm:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-attendance__item-am{border-top-left-radius:100px;border-bottom-left-radius:100px}.bcm-attendance__item-pm{border-top-right-radius:100px;border-bottom-right-radius:100px}.bcm-attendance__item-status-present{background-color:var(--bcm-new-ds-color-emerald-500)}.bcm-attendance__item-status-present:hover{background-color:var(--bcm-new-ds-color-emerald-600)}.bcm-attendance__item-status-late{background-color:var(--bcm-new-ds-color-amber-500)}.bcm-attendance__item-status-late:hover{background-color:var(--bcm-new-ds-color-amber-600)}.bcm-attendance__item-status-absent{background-color:var(--bcm-new-ds-color-red-500)}.bcm-attendance__item-status-absent:hover{background-color:var(--bcm-new-ds-color-red-600)}.bcm-attendance__item-status-default{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-attendance__item-status-default:hover{background-color:var(--bcm-new-ds-color-slate-400)}";
16
+
17
+ const BcmAttendance = class {
18
+ constructor(hostRef) {
19
+ index.registerInstance(this, hostRef);
20
+ this._id = generate.Generate.UID();
21
+ this.data = [];
22
+ }
23
+ render() {
24
+ const { data } = this;
25
+ const classPrefix = 'bcm-attendance';
26
+ return (index.h(index.Host, { class: classPrefix }, index.h("span", { hidden: true }, index.h("slot", null)), data.map(item => {
27
+ var _a, _b;
28
+ return index.h("div", { class: `${classPrefix}__item` }, index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, index.h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), index.h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, index.h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
29
+ })));
30
+ }
31
+ get el() { return index.getElement(this); }
32
+ };
33
+ BcmAttendance.style = attendanceCss;
34
+
35
+ exports.bcm_attendance = BcmAttendance;