bromcom-ui 2.11.1-rc.0 → 2.11.1-rc.2

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 (271) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-6cd9d6ac.entry.js → p-0384228c.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-15b5b871.entry.js → p-04b8a077.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-7b7f2f30.entry.js → p-0514844c.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-6de81bd3.entry.js → p-08159d00.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-f1c672fd.entry.js → p-09e7d125.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-10e5c340.js +5 -0
  8. package/dist/bromcom-ui/{p-676c9008.entry.js → p-110fb2e6.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c8ae67c0.entry.js → p-12f32499.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-72bc8abe.entry.js → p-16e3d660.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-c2cab6c8.entry.js → p-1ff3e125.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-23d2476c.entry.js +5 -0
  13. package/dist/bromcom-ui/{p-ccc42e5f.entry.js → p-2515e5be.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-a4067bcc.entry.js → p-2cbd5b47.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-7370b4fe.entry.js → p-2fe34a57.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-3089e9c7.js +5 -0
  17. package/dist/bromcom-ui/{p-b3ef6a72.entry.js → p-3787f0ed.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-6896c082.entry.js → p-39db4427.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-525d9122.entry.js → p-3a5fe76a.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-3bdc4947.js +5 -0
  21. package/dist/bromcom-ui/{p-11d1263d.entry.js → p-3f88ab5f.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-3060ab0d.entry.js → p-40d8289e.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-4213ba24.js +5 -0
  24. package/dist/bromcom-ui/{p-7d3de132.entry.js → p-42ba988f.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-bacb0014.entry.js → p-43b0dae6.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-84fe87a9.entry.js → p-4c8252ca.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-88aaae3d.entry.js → p-4cfcc5da.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-12dcbe05.entry.js → p-4ed91119.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-53915d39.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-b362b2b5.entry.js → p-55867d69.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-362cdc23.entry.js → p-55a32f48.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-94554e42.js → p-6b5ed4d8.js} +1 -1
  33. package/dist/bromcom-ui/{p-494b91de.entry.js → p-6c18b86f.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-892dfb49.entry.js → p-6e4c7506.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-518b9b80.js → p-6e5f5f36.js} +1 -1
  36. package/dist/bromcom-ui/{p-b9c6cf34.entry.js → p-750de345.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-0cea9de1.entry.js → p-81e1f27b.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-24bf5b68.entry.js → p-88c6aac9.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-3d009872.entry.js → p-8a608c7c.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-7edf67d6.entry.js → p-8ac03ec4.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-8bdcf95d.js → p-8f1b10d0.js} +1 -1
  42. package/dist/bromcom-ui/{p-5679b0d2.entry.js → p-91c17c9b.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-8a298b97.entry.js → p-93a7e457.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-9e2b2ff7.entry.js → p-9a8100bc.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-a8096b68.entry.js → p-9a98e6c5.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-18665a1b.js → p-9d345104.js} +1 -1
  47. package/dist/bromcom-ui/{p-28d8c0a9.entry.js → p-9fe98e8c.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-b5608cea.entry.js → p-a09f5f43.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-227b3c30.entry.js → p-a1d6e9a2.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-9f9504ee.entry.js → p-a2c9a0f5.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-6369b73b.js → p-a313fba6.js} +1 -1
  52. package/dist/bromcom-ui/{p-71b45c22.entry.js → p-a64f1d51.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-b7197a02.entry.js → p-addf9034.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-d36d446d.entry.js → p-b056e342.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-b5db6748.entry.js → p-b4198dfb.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-7b7117a6.entry.js → p-b9a2a8ce.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-444c4e62.js → p-bad42eed.js} +1 -1
  58. package/dist/bromcom-ui/{p-4ded5e14.entry.js → p-be6595a2.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-f73dc7a3.entry.js → p-c0890068.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-7bd237c3.entry.js → p-c446923f.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-c4df05e3.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-9f6bbc21.js → p-c5c611d7.js} +1 -1
  63. package/dist/bromcom-ui/p-caf0859a.entry.js +5 -0
  64. package/dist/bromcom-ui/{p-fe7e383d.js → p-ce103c35.js} +1 -1
  65. package/dist/bromcom-ui/{p-52263846.entry.js → p-d13e6de6.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-e49af670.entry.js → p-d14727a4.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-13d338d4.entry.js → p-d51d2964.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-9cae421a.entry.js → p-d69f5a56.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-6fad7b91.entry.js → p-d9d401d5.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-62822a2c.entry.js → p-dc415fb4.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-26ea59e8.js → p-de2c318a.js} +1 -1
  72. package/dist/bromcom-ui/{p-a8f84d47.entry.js → p-df540a59.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-cbd050fa.entry.js → p-df95902c.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-3ae1649c.entry.js → p-e5a80c56.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-ec71cec5.entry.js +5 -0
  76. package/dist/bromcom-ui/{p-5c10f685.entry.js → p-ed846cfe.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-ded1c855.entry.js → p-ee7b1736.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-6aaf444d.entry.js → p-f1955e21.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-543a00fb.js → p-f37ee39e.js} +1 -1
  80. package/dist/bromcom-ui/{p-7194d922.entry.js → p-f3f8bb89.entry.js} +1 -1
  81. package/dist/bromcom-ui/{p-5ddfca71.entry.js → p-f40fd5af.entry.js} +1 -1
  82. package/dist/bromcom-ui/{p-ed9d082d.js → p-fcc6f71e.js} +1 -1
  83. package/dist/cjs/{bcm-470704cd.js → bcm-1d1fcf21.js} +28 -28
  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 +7 -7
  87. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +7 -7
  88. package/dist/cjs/bcm-attendance-actions_2.cjs.entry.js +7 -7
  89. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -6
  91. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  92. package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
  93. package/dist/cjs/bcm-caption.cjs.entry.js +6 -6
  94. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  95. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +4 -4
  96. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
  97. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +5 -5
  98. package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
  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 +7 -7
  103. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
  104. package/dist/cjs/bcm-date.cjs.entry.js +6 -6
  105. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +6 -6
  106. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-drawer.cjs.entry.js +6 -6
  108. package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
  109. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  110. package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
  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 +6 -6
  114. package/dist/cjs/bcm-input_2.cjs.entry.js +7 -7
  115. package/dist/cjs/bcm-item.cjs.entry.js +3 -3
  116. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  117. package/dist/cjs/bcm-label_2.cjs.entry.js +9 -9
  118. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  119. package/dist/cjs/bcm-list_3.cjs.entry.js +20 -11
  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 +6 -6
  124. package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
  125. package/dist/cjs/bcm-number-input.cjs.entry.js +6 -6
  126. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  127. package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
  128. package/dist/cjs/bcm-popover.cjs.entry.js +7 -7
  129. package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
  130. package/dist/cjs/bcm-radio-group.cjs.entry.js +6 -6
  131. package/dist/cjs/bcm-radio.cjs.entry.js +6 -6
  132. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  133. package/dist/cjs/bcm-rc-picker.cjs.entry.js +1 -1
  134. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  135. package/dist/cjs/bcm-shortcut.cjs.entry.js +6 -6
  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 +7 -7
  139. package/dist/cjs/bcm-switch.cjs.entry.js +3 -3
  140. package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
  141. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -6
  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 +4 -4
  145. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  146. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
  147. package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
  148. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  149. package/dist/cjs/{floating-ui-829ed777.js → floating-ui-5b396838.js} +1 -1
  150. package/dist/cjs/{generate-c0b728d9.js → generate-5b01a87e.js} +1 -1
  151. package/dist/cjs/{global-8735cc95.js → global-4156cfe6.js} +1 -1
  152. package/dist/cjs/{input-template-e9c37e34.js → input-template-06b90366.js} +2 -2
  153. package/dist/cjs/{json-parse-decarator-3e78a3ac.js → json-parse-decarator-74e92b0f.js} +1 -1
  154. package/dist/cjs/{label-template-df551eef.js → label-template-3b970f86.js} +1 -1
  155. package/dist/cjs/loader.cjs.js +2 -2
  156. package/dist/cjs/{number-helper-eea3b6e3.js → number-helper-67e68751.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 +3 -3
  159. package/dist/cjs/{package-8156f6de.js → package-16d60066.js} +1 -1
  160. package/dist/cjs/{popover-placement-26859281.js → popover-placement-02e6101b.js} +1 -1
  161. package/dist/cjs/{slot-template-a47f5492.js → slot-template-df7b5b59.js} +1 -1
  162. package/dist/cjs/{stepper-states-7e56ed0b.js → stepper-states-b5a2f86a.js} +1 -1
  163. package/dist/cjs/{string-helper-b6bd711a.js → string-helper-9cdfb273.js} +1 -1
  164. package/dist/cjs/{tooltip-helper-fad904a9.js → tooltip-helper-7da280c9.js} +6 -6
  165. package/dist/cjs/{validators-f952aefd.js → validators-96899ecc.js} +1 -1
  166. package/dist/collection/components/organism/list/list.js +11 -2
  167. package/dist/collection/models/bcm.js +28 -28
  168. package/dist/collection/services/index.js +6 -0
  169. package/dist/collection/services/linked-abstract.js +6 -0
  170. package/dist/collection/services/linked-service.js +59 -0
  171. package/dist/collection/utils/validation.js +2 -2
  172. package/dist/components/bcm.js +28 -28
  173. package/dist/components/form.js +2 -2
  174. package/dist/components/generate.js +1 -1
  175. package/dist/components/list.js +11 -2
  176. package/dist/esm/{bcm-0f9cc27c.js → bcm-a50d55ba.js} +28 -28
  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-attendance-actions_2.entry.js +7 -7
  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 +4 -4
  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 +20 -11
  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 +2 -2
  242. package/dist/esm/{floating-ui-a4e67246.js → floating-ui-3f4394da.js} +1 -1
  243. package/dist/esm/{generate-79ee4441.js → generate-36ecd760.js} +1 -1
  244. package/dist/esm/{global-e756344b.js → global-2c219073.js} +1 -1
  245. package/dist/esm/{input-template-b0ee6981.js → input-template-4718b530.js} +2 -2
  246. package/dist/esm/{json-parse-decarator-ea12b23b.js → json-parse-decarator-65ad17e4.js} +1 -1
  247. package/dist/esm/{label-template-b2e8f81d.js → label-template-737576c4.js} +1 -1
  248. package/dist/esm/loader.js +2 -2
  249. package/dist/esm/{number-helper-abccb751.js → number-helper-24710d93.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-e9c0a5b1.js → package-04b74cb7.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-a0fe0c79.js → stepper-states-d20e2763.js} +1 -1
  256. package/dist/esm/{string-helper-3526c4fe.js → string-helper-85990695.js} +1 -1
  257. package/dist/esm/{tooltip-helper-9f73f914.js → tooltip-helper-ea807eeb.js} +6 -6
  258. package/dist/esm/{validators-37228b55.js → validators-c00416de.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-07f4b3b6.entry.js +0 -5
  264. package/dist/bromcom-ui/p-5436ddd6.js +0 -5
  265. package/dist/bromcom-ui/p-56dd3fea.entry.js +0 -5
  266. package/dist/bromcom-ui/p-5b7c9354.entry.js +0 -5
  267. package/dist/bromcom-ui/p-8da7f4c3.js +0 -5
  268. package/dist/bromcom-ui/p-bcd599fd.js +0 -5
  269. package/dist/bromcom-ui/p-c0e42d05.entry.js +0 -5
  270. package/dist/bromcom-ui/p-e4b42f26.js +0 -5
  271. package/dist/bromcom-ui/p-f93bcd16.entry.js +0 -5
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as e,H as s}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-fe7e383d.js";import"./p-bcd599fd.js";import"./p-94554e42.js";import"./p-18665a1b.js";import"./p-5ae0a59b.js";import{B as o}from"./p-6369b73b.js";import{c as i}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";const p={ctrl:"⌘",alt:"⌥",shift:"⇧",del:"⌫",delete:"⌫",backspace:"⌦",enter:"⏎",return:"⏎"},c=class{constructor(e){t(this,e),this.isMac=/Mac/.test(window.navigator.userAgent),this.hotkey=void 0,this.color="slate",this.size=o.Size.small}getHotkey(t){return t?this.isMac&&(t.includes(" ")||t.includes("+"))?t.split(/[\s+]+/).map((t=>p[t]||t)).join(""):t:""}render(){const{size:t,color:p,hotkey:c}=this;return e(s,{class:i("bcm-ui-element bcm-ui-content-display","tw-block tw-h-fit tw-w-fit tw-rounded tw-border tw-border-solid tw-px-1","tw-border-default-300 tw-bg-default-100 tw-text-default-700","tw-text-center tw-font-medium tw-capitalize",{"tw-text-2":t===o.Size.small,"tw-text-3":t===o.Size.medium,"tw-text-4":t===o.Size.large}),style:Object.assign({},r.getTwColor({color:p}))},this.getHotkey(c))}};export{c as bcm_shortcut}
5
+ import{r as t,h as e,H as s}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-6b5ed4d8.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import{B as o}from"./p-a313fba6.js";import{c as i}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";const p={ctrl:"⌘",alt:"⌥",shift:"⇧",del:"⌫",delete:"⌫",backspace:"⌦",enter:"⏎",return:"⏎"},c=class{constructor(e){t(this,e),this.isMac=/Mac/.test(window.navigator.userAgent),this.hotkey=void 0,this.color="slate",this.size=o.Size.small}getHotkey(t){return t?this.isMac&&(t.includes(" ")||t.includes("+"))?t.split(/[\s+]+/).map((t=>p[t]||t)).join(""):t:""}render(){const{size:t,color:p,hotkey:c}=this;return e(s,{class:i("bcm-ui-element bcm-ui-content-display","tw-block tw-h-fit tw-w-fit tw-rounded tw-border tw-border-solid tw-px-1","tw-border-default-300 tw-bg-default-100 tw-text-default-700","tw-text-center tw-font-medium tw-capitalize",{"tw-text-2":t===o.Size.small,"tw-text-3":t===o.Size.medium,"tw-text-4":t===o.Size.large}),style:Object.assign({},r.getTwColor({color:p}))},this.getHotkey(c))}};export{c as bcm_shortcut}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as s,h as i,H as e,g as h}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{G as d}from"./p-fe7e383d.js";import{s as p}from"./p-8bdcf95d.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";import"./p-197aba37.js";const r=class{constructor(i){t(this,i),this.dataIsLoaded=s(this,"data-is-loaded",7),this.bcmChangeHidden=s(this,"bcm-change-hidden",7),this.hidden=!1,this._id=d.UID(),this._title=void 0,this.description=void 0,this.status="default",this.icon=void 0,this.loading=!1,this.valid=!0,this.index=void 0,this.active=!1,this.htmlTemplate=void 0,this.isLast=!1,this.disabled=!1}componentDidLoad(){this.isLast&&this.dataIsLoaded.emit(!0)}getStepper(){return this.el.closest("bcm-stepper")||null}activeChanged(){if(this.active){const t=this.getStepper();t&&p.changeStepDisabled(t.stepperId,this._id,!1)}}statusChange(){const t=this.getStepper();t&&p.changeStepStatus(t.stepperId,this._id,this.status)}hiddenChange(t,s){const i=this.getStepper();t!==s&&i&&!this.active&&this.bcmChangeHidden.emit(t)}disabledChange(t,s){const i=this.getStepper();i&&p.changeStepDisabled(i.stepperId,this._id,t)}render(){const{hidden:t,valid:s,active:h}=this,d=a("bcm-stepper__step",s?"bcm-stepper__step-valid":"bcm-stepper__step-invalid",{"bcm-stepper__step-active":h,hidden:t});return i(e,{class:d},i("slot",null))}get el(){return h(this)}static get watchers(){return{active:["activeChanged"],status:["statusChange"],hidden:["hiddenChange"],disabled:["disabledChange"]}}};export{r as bcm_step}
5
+ import{r as t,c as s,h as i,H as e,g as h}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{G as d}from"./p-ce103c35.js";import{s as p}from"./p-8f1b10d0.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";import"./p-197aba37.js";const c=class{constructor(i){t(this,i),this.dataIsLoaded=s(this,"data-is-loaded",7),this.bcmChangeHidden=s(this,"bcm-change-hidden",7),this.hidden=!1,this._id=d.UID(),this._title=void 0,this.description=void 0,this.status="default",this.icon=void 0,this.loading=!1,this.valid=!0,this.index=void 0,this.active=!1,this.htmlTemplate=void 0,this.isLast=!1,this.disabled=!1}componentDidLoad(){this.isLast&&this.dataIsLoaded.emit(!0)}getStepper(){return this.el.closest("bcm-stepper")||null}activeChanged(){if(this.active){const t=this.getStepper();t&&p.changeStepDisabled(t.stepperId,this._id,!1)}}statusChange(){const t=this.getStepper();t&&p.changeStepStatus(t.stepperId,this._id,this.status)}hiddenChange(t,s){const i=this.getStepper();t!==s&&i&&!this.active&&this.bcmChangeHidden.emit(t)}disabledChange(t,s){const i=this.getStepper();i&&p.changeStepDisabled(i.stepperId,this._id,t)}render(){const{hidden:t,valid:s,active:h}=this,d=a("bcm-stepper__step",s?"bcm-stepper__step-valid":"bcm-stepper__step-invalid",{"bcm-stepper__step-active":h,hidden:t});return i(e,{class:d},i("slot",null))}get el(){return h(this)}static get watchers(){return{active:["activeChanged"],status:["statusChange"],hidden:["hiddenChange"],disabled:["disabledChange"]}}};export{c as bcm_step}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as s,h as o,H as t}from"./p-e037ee2b.js";import{a as p}from"./p-6369b73b.js";import"./p-94554e42.js";import{C as i}from"./p-8a92f2bf.js";import"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-4798d827.js";import"./p-626a65e9.js";import"./p-fe7e383d.js";import"./p-bcd599fd.js";import"./p-18665a1b.js";import"./p-5ae0a59b.js";import"./p-2e73d572.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-9f6bbc21.js";const r=class{constructor(o){s(this,o),this.noCaption=!1,this.captionType=p.Status.default,this.captionClasses=void 0,this.caption=void 0,this.captionError=void 0,this.customErrorMessage=void 0,this.size=p.Size.medium,this.maxLength=void 0,this.value=void 0}render(){const{noCaption:s,captionType:p,captionClasses:r,caption:a,captionError:e,customErrorMessage:c,size:m,maxLength:n,value:j}=this;return o(t,{class:"tw-block"},o(i,{noCaption:s,captionType:p,captionClasses:r,caption:a,captionError:e,customErrorMessage:c,size:m,maxLength:n,value:j}))}};export{r as bcm_caption}
5
+ import{r as s,h as o,H as t}from"./p-e037ee2b.js";import{a as p}from"./p-a313fba6.js";import"./p-6b5ed4d8.js";import{C as i}from"./p-8a92f2bf.js";import"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-4798d827.js";import"./p-626a65e9.js";import"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import"./p-2e73d572.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-c5c611d7.js";const r=class{constructor(o){s(this,o),this.noCaption=!1,this.captionType=p.Status.default,this.captionClasses=void 0,this.caption=void 0,this.captionError=void 0,this.customErrorMessage=void 0,this.size=p.Size.medium,this.maxLength=void 0,this.value=void 0}render(){const{noCaption:s,captionType:p,captionClasses:r,caption:a,captionError:c,customErrorMessage:e,size:m,maxLength:n,value:j}=this;return o(t,{class:"tw-block"},o(i,{noCaption:s,captionType:p,captionClasses:r,caption:a,captionError:c,customErrorMessage:e,size:m,maxLength:n,value:j}))}};export{r as bcm_caption}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- var e;!function(e){var a,l,r,t,o,n,i,s,b,u,g,d,c,m,p,w,h,f,y,k,v,P;(a=e.HtmlElementType||(e.HtmlElementType={})).div="div",a.span="span",a.button="button",a.a="a",a.input="input",a.textarea="textarea",a.select="select",a.option="option",a.img="img",a.table="table",a.tr="tr",a.td="td",a.th="th",a.tbody="tbody",a.thead="thead",a.tfoot="tfoot",a.ul="ul",a.li="li",a.form="form",a.label="label",a.main="main",a.header="header",a.footer="footer",a.section="section",a.article="article",a.nav="nav",a.aside="aside",(l=e.Status||(e.Status={})).info="info",l.error="error",l.warning="warning",l.success="success",l.default="default",(r=e.Shape||(e.Shape={})).ellipse="ellipse",r.square="square",(t=e.Direction||(e.Direction={})).horizontal="horizontal",t.vertical="vertical",(o=e.PreDefinedIconSize||(e.PreDefinedIconSize={}))[o.large=48]="large",o[o.medium=24]="medium",o[o.default=16]="default",o[o.small=12]="small",o[o.xsmall=8]="xsmall",(n=e.BaseSize||(e.BaseSize={})).small="small",n.medium="medium",n.large="large",(i=e.Size||(e.Size={})).small="small",i.medium="medium",i.large="large",i.xsmall="xsmall",i.xlarge="xlarge",i.xxlarge="xxlarge",i.xxxlarge="xxxlarge",(s=e.Kind||(e.Kind={})).solid="solid",s.ghost="ghost",s.link="link",s["ghost-link"]="ghost-link",(b=e.ButtonType||(e.ButtonType={})).button="button",b.reset="reset",b.submit="submit",(u=e.IconPosition||(e.IconPosition={})).prefix="prefix",u.suffix="suffix",(g=e.TagType||(e.TagType={})).basic="basic",g.add="add",g.checkable="checkable",g.dismissable="dismissable",(d=e.FontSize||(e.FontSize={}))["size-1"]="size-1",d["size-2"]="size-2",d["size-3"]="size-3",d["size-4"]="size-4",d["size-5"]="size-5",d["size-6"]="size-6",d["size-7"]="size-7",d["size-8"]="size-8",d["size-9"]="size-9",(c=e.FontSizeValue||(e.FontSizeValue={}))[c["size-1"]=12]="size-1",c[c["size-2"]=14]="size-2",c[c["size-3"]=16]="size-3",c[c["size-4"]=20]="size-4",c[c["size-5"]=24]="size-5",c[c["size-6"]=30]="size-6",c[c["size-7"]=38]="size-7",c[c["size-8"]=46]="size-8",c[c["size-9"]=56]="size-9",(m=e.FontWeight||(e.FontWeight={})).thin="thin",m.light="light",m.regular="regular",m.medium="medium",m.bold="bold",m.black="black",(p=e.ColorPalette||(e.ColorPalette={})).default="default",p.black="black",p.white="white",p["prime-blue"]="prime-blue",p["prime-blue-1"]="prime-blue-1",p["prime-blue-2"]="prime-blue-2",p["prime-blue-3"]="prime-blue-3",p["prime-blue-4"]="prime-blue-4",p["prime-blue-5"]="prime-blue-5",p["prime-blue-6"]="prime-blue-6",p["prime-blue-7"]="prime-blue-7",p["prime-blue-8"]="prime-blue-8",p["prime-blue-9"]="prime-blue-9",p["prime-blue-10"]="prime-blue-10",p.grey="grey",p["grey-1"]="grey-1",p["grey-2"]="grey-2",p["grey-3"]="grey-3",p["grey-4"]="grey-4",p["grey-5"]="grey-5",p["grey-6"]="grey-6",p["grey-7"]="grey-7",p["grey-8"]="grey-8",p["grey-9"]="grey-9",p["grey-10"]="grey-10",p.blue="blue",p["blue-1"]="blue-1",p["blue-2"]="blue-2",p["blue-3"]="blue-3",p["blue-4"]="blue-4",p["blue-5"]="blue-5",p["blue-6"]="blue-6",p["blue-7"]="blue-7",p["blue-8"]="blue-8",p["blue-9"]="blue-9",p["blue-10"]="blue-10",p.warmyellow="warmyellow",p["warmyellow-1"]="warmyellow-1",p["warmyellow-2"]="warmyellow-2",p["warmyellow-3"]="warmyellow-3",p["warmyellow-4"]="warmyellow-4",p["warmyellow-5"]="warmyellow-5",p["warmyellow-6"]="warmyellow-6",p["warmyellow-7"]="warmyellow-7",p["warmyellow-8"]="warmyellow-8",p["warmyellow-9"]="warmyellow-9",p["warmyellow-10"]="warmyellow-10",p.yellow="yellow",p["yellow-1"]="yellow-1",p["yellow-2"]="yellow-2",p["yellow-3"]="yellow-3",p["yellow-4"]="yellow-4",p["yellow-5"]="yellow-5",p["yellow-6"]="yellow-6",p["yellow-7"]="yellow-7",p["yellow-8"]="yellow-8",p["yellow-9"]="yellow-9",p["yellow-10"]="yellow-10",p.limegreen="limegreen",p["limegreen-1"]="limegreen-1",p["limegreen-2"]="limegreen-2",p["limegreen-3"]="limegreen-3",p["limegreen-4"]="limegreen-4",p["limegreen-5"]="limegreen-5",p["limegreen-6"]="limegreen-6",p["limegreen-7"]="limegreen-7",p["limegreen-8"]="limegreen-8",p["limegreen-9"]="limegreen-9",p["limegreen-10"]="limegreen-10",p.red="red",p["red-1"]="red-1",p["red-2"]="red-2",p["red-3"]="red-3",p["red-4"]="red-4",p["red-5"]="red-5",p["red-6"]="red-6",p["red-7"]="red-7",p["red-8"]="red-8",p["red-9"]="red-9",p["red-10"]="red-10",p.darkorange="darkorange",p["darkorange-1"]="darkorange-1",p["darkorange-2"]="darkorange-2",p["darkorange-3"]="darkorange-3",p["darkorange-4"]="darkorange-4",p["darkorange-5"]="darkorange-5",p["darkorange-6"]="darkorange-6",p["darkorange-7"]="darkorange-7",p["darkorange-8"]="darkorange-8",p["darkorange-9"]="darkorange-9",p["darkorange-10"]="darkorange-10",p.orange="orange",p["orange-1"]="orange-1",p["orange-2"]="orange-2",p["orange-3"]="orange-3",p["orange-4"]="orange-4",p["orange-5"]="orange-5",p["orange-6"]="orange-6",p["orange-7"]="orange-7",p["orange-8"]="orange-8",p["orange-9"]="orange-9",p["orange-10"]="orange-10",p.green="green",p["green-1"]="green-1",p["green-2"]="green-2",p["green-3"]="green-3",p["green-4"]="green-4",p["green-5"]="green-5",p["green-6"]="green-6",p["green-7"]="green-7",p["green-8"]="green-8",p["green-9"]="green-9",p["green-10"]="green-10",p.turquosie="turquosie",p["turquosie-1"]="turquosie-1",p["turquosie-2"]="turquosie-2",p["turquosie-3"]="turquosie-3",p["turquosie-4"]="turquosie-4",p["turquosie-5"]="turquosie-5",p["turquosie-6"]="turquosie-6",p["turquosie-7"]="turquosie-7",p["turquosie-8"]="turquosie-8",p["turquosie-9"]="turquosie-9",p["turquosie-10"]="turquosie-10",p.cobaltblue="cobaltblue",p["cobaltblue-1"]="cobaltblue-1",p["cobaltblue-2"]="cobaltblue-2",p["cobaltblue-3"]="cobaltblue-3",p["cobaltblue-4"]="cobaltblue-4",p["cobaltblue-5"]="cobaltblue-5",p["cobaltblue-6"]="cobaltblue-6",p["cobaltblue-7"]="cobaltblue-7",p["cobaltblue-8"]="cobaltblue-8",p["cobaltblue-9"]="cobaltblue-9",p["cobaltblue-10"]="cobaltblue-10",p.magenta="magenta",p["magenta-1"]="magenta-1",p["magenta-2"]="magenta-2",p["magenta-3"]="magenta-3",p["magenta-4"]="magenta-4",p["magenta-5"]="magenta-5",p["magenta-6"]="magenta-6",p["magenta-7"]="magenta-7",p["magenta-8"]="magenta-8",p["magenta-9"]="magenta-9",p["magenta-10"]="magenta-10",p.purple="purple",p["purple-1"]="purple-1",p["purple-2"]="purple-2",p["purple-3"]="purple-3",p["purple-4"]="purple-4",p["purple-5"]="purple-5",p["purple-6"]="purple-6",p["purple-7"]="purple-7",p["purple-8"]="purple-8",p["purple-9"]="purple-9",p["purple-10"]="purple-10",p["bc-red"]="bc-red",p["bc-red-1"]="bc-red-1",p["bc-red-2"]="bc-red-2",p["bc-red-3"]="bc-red-3",p["bc-red-4"]="bc-red-4",p["bc-red-5"]="bc-red-5",p["bc-red-6"]="bc-red-6",p["bc-red-7"]="bc-red-7",p["bc-red-8"]="bc-red-8",p["bc-red-9"]="bc-red-9",p["bc-blue"]="bc-blue",p["bc-blue-1"]="bc-blue-1",p["bc-blue-2"]="bc-blue-2",p["bc-blue-3"]="bc-blue-3",p["bc-blue-4"]="bc-blue-4",p["bc-blue-5"]="bc-blue-5",p["bc-blue-6"]="bc-blue-6",p["bc-blue-7"]="bc-blue-7",p["bc-blue-8"]="bc-blue-8",p["bc-blue-9"]="bc-blue-9",p["bc-green"]="bc-green",p["bc-green-1"]="bc-green-1",p["bc-green-2"]="bc-green-2",p["bc-green-3"]="bc-green-3",p["bc-green-4"]="bc-green-4",p["bc-green-5"]="bc-green-5",p["bc-green-6"]="bc-green-6",p["bc-green-7"]="bc-green-7",p["bc-green-8"]="bc-green-8",p["bc-green-9"]="bc-green-9",p["bc-orange"]="bc-orange",p["bc-orange-1"]="bc-orange-1",p["bc-orange-2"]="bc-orange-2",p["bc-orange-3"]="bc-orange-3",p["bc-orange-4"]="bc-orange-4",p["bc-orange-5"]="bc-orange-5",p["bc-orange-6"]="bc-orange-6",p["bc-orange-7"]="bc-orange-7",p["bc-orange-8"]="bc-orange-8",p["bc-orange-9"]="bc-orange-9",(w=e.InputType||(e.InputType={})).text="text",w.number="number",w.email="email",w.password="password",w.url="url",w.search="search",w.tel="tel",w.hidden="hidden",w.color="color",(h=e.KeyCode||(e.KeyCode={}))[h.backspace=8]="backspace",h[h.tab=9]="tab",h[h.enter=13]="enter",h[h.shift=16]="shift",h[h.ctrl=17]="ctrl",h[h.alt=18]="alt",h[h.pause=19]="pause",h[h.capslock=20]="capslock",h[h.escape=27]="escape",h[h.space=32]="space",h[h.pageup=33]="pageup",h[h.pagedown=34]="pagedown",h[h.end=35]="end",h[h.home=36]="home",h[h.left=37]="left",h[h.up=38]="up",h[h.right=39]="right",h[h.down=40]="down",h[h.insert=45]="insert",h[h.delete=46]="delete",h[h.f1=112]="f1",h[h.f2=113]="f2",h[h.f3=114]="f3",h[h.f4=115]="f4",h[h.f5=116]="f5",h[h.f6=117]="f6",h[h.f7=118]="f7",h[h.f8=119]="f8",h[h.f9=120]="f9",h[h.f10=121]="f10",h[h.f11=122]="f11",h[h.f12=123]="f12",h[h.numlock=144]="numlock",h[h.scrolllock=145]="scrolllock",h[h.semicolon=186]="semicolon",h[h.equal=187]="equal",h[h.comma=188]="comma",h[h.dash=189]="dash",h[h.period=190]="period",h[h.slash=191]="slash",h[h.backslash=220]="backslash",h[h.bracketleft=219]="bracketleft",h[h.bracketright=221]="bracketright",h[h.quote=222]="quote",h[h.backtick=192]="backtick",h[h.a=65]="a",e.FormErrorMessages={email:"Please enter a valid email address.",password:"Please enter a valid password.",url:"Please enter a valid URL.",phone:"Please enter a valid phone number.",search:"Please enter a valid search term.",number:"Please enter a valid number.",text:"Please enter a valid text.",required:"This field is required.",minlength:"Must be at least {0} chars long.",maxlength:"Must be at most {0} chars long.",betweenlength:"Must be between {0} and {1} chars long.",min:"This field must be at least {0}.",max:"This field must be at most {0}.",between:"This field must be between {0} and {1}.",pattern:"Please use a valid format.",date:"Please enter a valid date.",time:"Please enter a valid time.",datetime:"Please enter a valid date and time.","datetime-local":"Please enter a valid date and time.",month:"Please enter a valid month.",week:"Please enter a valid week.",color:"Please enter a valid color.",file:"Please enter a valid file.",range:"Please enter a valid range.",radio:"Please select a valid option.",checkbox:"Please select a valid option.",select:"Please select a valid option.",multiple:"Please select a valid option."},(f=e.IndeterminateType||(e.IndeterminateType={})).uncheck="uncheck",f.indeterminate="indeterminate",f.determinate="determinate",(y=e.Placement||(e.Placement={})).top="top",y["top-start"]="top-start",y["top-end"]="top-end",y.bottom="bottom",y["bottom-start"]="bottom-start",y["bottom-end"]="bottom-end",y.left="left",y["left-start"]="left-start",y["left-end"]="left-end",y.right="right",y["right-start"]="right-start",y["right-end"]="right-end",(k=e.Position||(e.Position={})).top="top",k.bottom="bottom",k.left="left",k.right="right",(v=e.TriggerType||(e.TriggerType={})).hover="hover",v.click="click",v.focus="focus",v.custom="custom",(P=e.ListType||(e.ListType={})).listbox="listbox",P.select="select",P.autocomplete="autocomplete"}(e||(e={}));const a=e;export{e as B,a}
5
+ var e;!function(e){var a,l,r,t,o,n,i,s,b,u,g,d,c,m,p,w,h,f,y,k,v,P;(a=e.HtmlElementType||(e.HtmlElementType={})).div="div",a.span="span",a.button="button",a.a="a",a.input="input",a.textarea="textarea",a.select="select",a.option="option",a.img="img",a.table="table",a.tr="tr",a.td="td",a.th="th",a.tbody="tbody",a.thead="thead",a.tfoot="tfoot",a.ul="ul",a.li="li",a.form="form",a.label="label",a.main="main",a.header="header",a.footer="footer",a.section="section",a.article="article",a.nav="nav",a.aside="aside",(l=e.Status||(e.Status={})).info="info",l.error="error",l.warning="warning",l.success="success",l.default="default",(r=e.Shape||(e.Shape={})).ellipse="ellipse",r.square="square",(t=e.Direction||(e.Direction={})).horizontal="horizontal",t.vertical="vertical",(o=e.PreDefinedIconSize||(e.PreDefinedIconSize={}))[o.large=48]="large",o[o.medium=24]="medium",o[o.default=16]="default",o[o.small=12]="small",o[o.xsmall=8]="xsmall",(n=e.BaseSize||(e.BaseSize={})).small="small",n.medium="medium",n.large="large",(i=e.Size||(e.Size={})).small="small",i.medium="medium",i.large="large",i.xsmall="xsmall",i.xlarge="xlarge",i.xxlarge="xxlarge",i.xxxlarge="xxxlarge",(s=e.Kind||(e.Kind={})).solid="solid",s.ghost="ghost",s.link="link",s["ghost-link"]="ghost-link",(b=e.ButtonType||(e.ButtonType={})).button="button",b.reset="reset",b.submit="submit",(u=e.IconPosition||(e.IconPosition={})).prefix="prefix",u.suffix="suffix",(g=e.TagType||(e.TagType={})).basic="basic",g.add="add",g.checkable="checkable",g.dismissable="dismissable",(d=e.FontSize||(e.FontSize={}))["size-1"]="size-1",d["size-2"]="size-2",d["size-3"]="size-3",d["size-4"]="size-4",d["size-5"]="size-5",d["size-6"]="size-6",d["size-7"]="size-7",d["size-8"]="size-8",d["size-9"]="size-9",(c=e.FontSizeValue||(e.FontSizeValue={}))[c["size-1"]=12]="size-1",c[c["size-2"]=14]="size-2",c[c["size-3"]=16]="size-3",c[c["size-4"]=20]="size-4",c[c["size-5"]=24]="size-5",c[c["size-6"]=30]="size-6",c[c["size-7"]=38]="size-7",c[c["size-8"]=46]="size-8",c[c["size-9"]=56]="size-9",(m=e.FontWeight||(e.FontWeight={})).thin="thin",m.light="light",m.regular="regular",m.medium="medium",m.bold="bold",m.black="black",(p=e.ColorPalette||(e.ColorPalette={})).default="default",p.black="black",p.white="white",p["prime-blue"]="prime-blue",p["prime-blue-1"]="prime-blue-1",p["prime-blue-2"]="prime-blue-2",p["prime-blue-3"]="prime-blue-3",p["prime-blue-4"]="prime-blue-4",p["prime-blue-5"]="prime-blue-5",p["prime-blue-6"]="prime-blue-6",p["prime-blue-7"]="prime-blue-7",p["prime-blue-8"]="prime-blue-8",p["prime-blue-9"]="prime-blue-9",p["prime-blue-10"]="prime-blue-10",p.grey="grey",p["grey-1"]="grey-1",p["grey-2"]="grey-2",p["grey-3"]="grey-3",p["grey-4"]="grey-4",p["grey-5"]="grey-5",p["grey-6"]="grey-6",p["grey-7"]="grey-7",p["grey-8"]="grey-8",p["grey-9"]="grey-9",p["grey-10"]="grey-10",p.blue="blue",p["blue-1"]="blue-1",p["blue-2"]="blue-2",p["blue-3"]="blue-3",p["blue-4"]="blue-4",p["blue-5"]="blue-5",p["blue-6"]="blue-6",p["blue-7"]="blue-7",p["blue-8"]="blue-8",p["blue-9"]="blue-9",p["blue-10"]="blue-10",p.warmyellow="warmyellow",p["warmyellow-1"]="warmyellow-1",p["warmyellow-2"]="warmyellow-2",p["warmyellow-3"]="warmyellow-3",p["warmyellow-4"]="warmyellow-4",p["warmyellow-5"]="warmyellow-5",p["warmyellow-6"]="warmyellow-6",p["warmyellow-7"]="warmyellow-7",p["warmyellow-8"]="warmyellow-8",p["warmyellow-9"]="warmyellow-9",p["warmyellow-10"]="warmyellow-10",p.yellow="yellow",p["yellow-1"]="yellow-1",p["yellow-2"]="yellow-2",p["yellow-3"]="yellow-3",p["yellow-4"]="yellow-4",p["yellow-5"]="yellow-5",p["yellow-6"]="yellow-6",p["yellow-7"]="yellow-7",p["yellow-8"]="yellow-8",p["yellow-9"]="yellow-9",p["yellow-10"]="yellow-10",p.limegreen="limegreen",p["limegreen-1"]="limegreen-1",p["limegreen-2"]="limegreen-2",p["limegreen-3"]="limegreen-3",p["limegreen-4"]="limegreen-4",p["limegreen-5"]="limegreen-5",p["limegreen-6"]="limegreen-6",p["limegreen-7"]="limegreen-7",p["limegreen-8"]="limegreen-8",p["limegreen-9"]="limegreen-9",p["limegreen-10"]="limegreen-10",p.red="red",p["red-1"]="red-1",p["red-2"]="red-2",p["red-3"]="red-3",p["red-4"]="red-4",p["red-5"]="red-5",p["red-6"]="red-6",p["red-7"]="red-7",p["red-8"]="red-8",p["red-9"]="red-9",p["red-10"]="red-10",p.darkorange="darkorange",p["darkorange-1"]="darkorange-1",p["darkorange-2"]="darkorange-2",p["darkorange-3"]="darkorange-3",p["darkorange-4"]="darkorange-4",p["darkorange-5"]="darkorange-5",p["darkorange-6"]="darkorange-6",p["darkorange-7"]="darkorange-7",p["darkorange-8"]="darkorange-8",p["darkorange-9"]="darkorange-9",p["darkorange-10"]="darkorange-10",p.orange="orange",p["orange-1"]="orange-1",p["orange-2"]="orange-2",p["orange-3"]="orange-3",p["orange-4"]="orange-4",p["orange-5"]="orange-5",p["orange-6"]="orange-6",p["orange-7"]="orange-7",p["orange-8"]="orange-8",p["orange-9"]="orange-9",p["orange-10"]="orange-10",p.green="green",p["green-1"]="green-1",p["green-2"]="green-2",p["green-3"]="green-3",p["green-4"]="green-4",p["green-5"]="green-5",p["green-6"]="green-6",p["green-7"]="green-7",p["green-8"]="green-8",p["green-9"]="green-9",p["green-10"]="green-10",p.turquosie="turquosie",p["turquosie-1"]="turquosie-1",p["turquosie-2"]="turquosie-2",p["turquosie-3"]="turquosie-3",p["turquosie-4"]="turquosie-4",p["turquosie-5"]="turquosie-5",p["turquosie-6"]="turquosie-6",p["turquosie-7"]="turquosie-7",p["turquosie-8"]="turquosie-8",p["turquosie-9"]="turquosie-9",p["turquosie-10"]="turquosie-10",p.cobaltblue="cobaltblue",p["cobaltblue-1"]="cobaltblue-1",p["cobaltblue-2"]="cobaltblue-2",p["cobaltblue-3"]="cobaltblue-3",p["cobaltblue-4"]="cobaltblue-4",p["cobaltblue-5"]="cobaltblue-5",p["cobaltblue-6"]="cobaltblue-6",p["cobaltblue-7"]="cobaltblue-7",p["cobaltblue-8"]="cobaltblue-8",p["cobaltblue-9"]="cobaltblue-9",p["cobaltblue-10"]="cobaltblue-10",p.magenta="magenta",p["magenta-1"]="magenta-1",p["magenta-2"]="magenta-2",p["magenta-3"]="magenta-3",p["magenta-4"]="magenta-4",p["magenta-5"]="magenta-5",p["magenta-6"]="magenta-6",p["magenta-7"]="magenta-7",p["magenta-8"]="magenta-8",p["magenta-9"]="magenta-9",p["magenta-10"]="magenta-10",p.purple="purple",p["purple-1"]="purple-1",p["purple-2"]="purple-2",p["purple-3"]="purple-3",p["purple-4"]="purple-4",p["purple-5"]="purple-5",p["purple-6"]="purple-6",p["purple-7"]="purple-7",p["purple-8"]="purple-8",p["purple-9"]="purple-9",p["purple-10"]="purple-10",p["bc-red"]="bc-red",p["bc-red-1"]="bc-red-1",p["bc-red-2"]="bc-red-2",p["bc-red-3"]="bc-red-3",p["bc-red-4"]="bc-red-4",p["bc-red-5"]="bc-red-5",p["bc-red-6"]="bc-red-6",p["bc-red-7"]="bc-red-7",p["bc-red-8"]="bc-red-8",p["bc-red-9"]="bc-red-9",p["bc-blue"]="bc-blue",p["bc-blue-1"]="bc-blue-1",p["bc-blue-2"]="bc-blue-2",p["bc-blue-3"]="bc-blue-3",p["bc-blue-4"]="bc-blue-4",p["bc-blue-5"]="bc-blue-5",p["bc-blue-6"]="bc-blue-6",p["bc-blue-7"]="bc-blue-7",p["bc-blue-8"]="bc-blue-8",p["bc-blue-9"]="bc-blue-9",p["bc-green"]="bc-green",p["bc-green-1"]="bc-green-1",p["bc-green-2"]="bc-green-2",p["bc-green-3"]="bc-green-3",p["bc-green-4"]="bc-green-4",p["bc-green-5"]="bc-green-5",p["bc-green-6"]="bc-green-6",p["bc-green-7"]="bc-green-7",p["bc-green-8"]="bc-green-8",p["bc-green-9"]="bc-green-9",p["bc-orange"]="bc-orange",p["bc-orange-1"]="bc-orange-1",p["bc-orange-2"]="bc-orange-2",p["bc-orange-3"]="bc-orange-3",p["bc-orange-4"]="bc-orange-4",p["bc-orange-5"]="bc-orange-5",p["bc-orange-6"]="bc-orange-6",p["bc-orange-7"]="bc-orange-7",p["bc-orange-8"]="bc-orange-8",p["bc-orange-9"]="bc-orange-9",(w=e.InputType||(e.InputType={})).text="text",w.number="number",w.email="email",w.password="password",w.url="url",w.search="search",w.tel="tel",w.hidden="hidden",w.color="color",(h=e.KeyCode||(e.KeyCode={}))[h.backspace=8]="backspace",h[h.tab=9]="tab",h[h.enter=13]="enter",h[h.shift=16]="shift",h[h.ctrl=17]="ctrl",h[h.alt=18]="alt",h[h.pause=19]="pause",h[h.capslock=20]="capslock",h[h.escape=27]="escape",h[h.space=32]="space",h[h.pageup=33]="pageup",h[h.pagedown=34]="pagedown",h[h.end=35]="end",h[h.home=36]="home",h[h.left=37]="left",h[h.up=38]="up",h[h.right=39]="right",h[h.down=40]="down",h[h.insert=45]="insert",h[h.delete=46]="delete",h[h.f1=112]="f1",h[h.f2=113]="f2",h[h.f3=114]="f3",h[h.f4=115]="f4",h[h.f5=116]="f5",h[h.f6=117]="f6",h[h.f7=118]="f7",h[h.f8=119]="f8",h[h.f9=120]="f9",h[h.f10=121]="f10",h[h.f11=122]="f11",h[h.f12=123]="f12",h[h.numlock=144]="numlock",h[h.scrolllock=145]="scrolllock",h[h.semicolon=186]="semicolon",h[h.equal=187]="equal",h[h.comma=188]="comma",h[h.dash=189]="dash",h[h.period=190]="period",h[h.slash=191]="slash",h[h.backslash=220]="backslash",h[h.bracketleft=219]="bracketleft",h[h.bracketright=221]="bracketright",h[h.quote=222]="quote",h[h.backtick=192]="backtick",h[h.a=65]="a",e.FormErrorMessages={email:"Please enter a valid email address",password:"Please enter a valid password",url:"Please enter a valid URL",phone:"Please enter a valid phone number",search:"Please enter a valid search term",number:"Please enter a valid number",text:"Please enter a valid text",required:"This field is required",minlength:"Must be at least {0} chars long",maxlength:"Must be at most {0} chars long",betweenlength:"Must be between {0} and {1} chars long",min:"This field must be at least {0}",max:"This field must be at most {0}",between:"This field must be between {0} and {1}",pattern:"Please use a valid format",date:"Please enter a valid date",time:"Please enter a valid time",datetime:"Please enter a valid date and time","datetime-local":"Please enter a valid date and time",month:"Please enter a valid month",week:"Please enter a valid week",color:"Please enter a valid color",file:"Please enter a valid file",range:"Please enter a valid range",radio:"Please select a valid option",checkbox:"Please select a valid option",select:"Please select a valid option",multiple:"Please select a valid option"},(f=e.IndeterminateType||(e.IndeterminateType={})).uncheck="uncheck",f.indeterminate="indeterminate",f.determinate="determinate",(y=e.Placement||(e.Placement={})).top="top",y["top-start"]="top-start",y["top-end"]="top-end",y.bottom="bottom",y["bottom-start"]="bottom-start",y["bottom-end"]="bottom-end",y.left="left",y["left-start"]="left-start",y["left-end"]="left-end",y.right="right",y["right-start"]="right-start",y["right-end"]="right-end",(k=e.Position||(e.Position={})).top="top",k.bottom="bottom",k.left="left",k.right="right",(v=e.TriggerType||(e.TriggerType={})).hover="hover",v.click="click",v.focus="focus",v.custom="custom",(P=e.ListType||(e.ListType={})).listbox="listbox",P.select="select",P.autocomplete="autocomplete"}(e||(e={}));const a=e;export{e as B,a}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as i,c as t,h as e,H as s,g as h}from"./p-e037ee2b.js";import{c as p}from"./p-bed627ab.js";import{G as n}from"./p-fe7e383d.js";import{a as o}from"./p-6369b73b.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";const a=class{constructor(e){i(this,e),this.onShow=t(this,"bcm-show",7),this.onHide=t(this,"bcm-hide",7),this.onConfirm=t(this,"bcm-confirm",7),this.onCancel=t(this,"bcm-cancel",7),this._id=n.UID(),this.message=void 0,this.status="warning",this.cancelText="No",this.okeyText="Yes",this.placement=o.Placement.top,this.trigger=o.TriggerType.click,this.open=!1,this.hidden=!1}async show(){this.open=!0,this.onShow.emit(),await this.createBox().then((()=>this.showBox()))}async hide(){this.open=!1,this.onHide.emit()}async createBox(){if(!this.getPopconfirmBox()){const i=document.createElement("bcm-popconfirm-box");i.setAttribute("id","box-"+this._id),i.setAttribute("target-id",this._id),i.setAttribute("placement",this.placement),i.setAttribute("message",this.message),i.setAttribute("status",this.status),i.setAttribute("cancel-text",this.cancelText),i.setAttribute("okey-text",this.okeyText),this.el.parentElement.appendChild(i)}return Promise.resolve()}getPopconfirmBox(){return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`)}showBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().show()}hideBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().hide()}listenTrigger(i){switch(this.trigger){case"click":"click"===i&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===i&&this.show(),"onMouseOut"===i&&this.hide();break;case"focus":"onFocus"===i&&this.show(),"onBlur"===i&&this.hide()}}onBcmConfirm(i){i.detail==this._id&&this.onConfirm.emit(this._id)}onBcmCancel(i){i.detail==this._id&&this.onCancel.emit(this._id)}render(){const i=p("bcm-popconfirm");return e(s,{class:i,onclick:()=>this.listenTrigger("click")},e("slot",null))}get el(){return h(this)}};a.style='@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}.bcm-popconfirm{display:inline-flex}';export{a as bcm_popconfirm}
5
+ import{r as i,c as t,h as e,H as s,g as h}from"./p-e037ee2b.js";import{c as p}from"./p-bed627ab.js";import{G as n}from"./p-ce103c35.js";import{a as o}from"./p-a313fba6.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";const a=class{constructor(e){i(this,e),this.onShow=t(this,"bcm-show",7),this.onHide=t(this,"bcm-hide",7),this.onConfirm=t(this,"bcm-confirm",7),this.onCancel=t(this,"bcm-cancel",7),this._id=n.UID(),this.message=void 0,this.status="warning",this.cancelText="No",this.okeyText="Yes",this.placement=o.Placement.top,this.trigger=o.TriggerType.click,this.open=!1,this.hidden=!1}async show(){this.open=!0,this.onShow.emit(),await this.createBox().then((()=>this.showBox()))}async hide(){this.open=!1,this.onHide.emit()}async createBox(){if(!this.getPopconfirmBox()){const i=document.createElement("bcm-popconfirm-box");i.setAttribute("id","box-"+this._id),i.setAttribute("target-id",this._id),i.setAttribute("placement",this.placement),i.setAttribute("message",this.message),i.setAttribute("status",this.status),i.setAttribute("cancel-text",this.cancelText),i.setAttribute("okey-text",this.okeyText),this.el.parentElement.appendChild(i)}return Promise.resolve()}getPopconfirmBox(){return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`)}showBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().show()}hideBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().hide()}listenTrigger(i){switch(this.trigger){case"click":"click"===i&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===i&&this.show(),"onMouseOut"===i&&this.hide();break;case"focus":"onFocus"===i&&this.show(),"onBlur"===i&&this.hide()}}onBcmConfirm(i){i.detail==this._id&&this.onConfirm.emit(this._id)}onBcmCancel(i){i.detail==this._id&&this.onCancel.emit(this._id)}render(){const i=p("bcm-popconfirm");return e(s,{class:i,onclick:()=>this.listenTrigger("click")},e("slot",null))}get el(){return h(this)}};a.style='@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}.bcm-popconfirm{display:inline-flex}';export{a as bcm_popconfirm}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as e,r as t,c as i,H as n,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{G as o,s as c}from"./p-fe7e383d.js";import{a as h}from"./p-6369b73b.js";import{d as r,a as l}from"./p-3c7a0345.js";import{c as p}from"./p-197aba37.js";import{L as d}from"./p-5436ddd6.js";import{I as m}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";const u=({customStyle:t,groupContainerClasses:i,onBcmSelect:n,items:a})=>e("div",{class:i,style:t},a.childs&&a.childs.map((t=>e("bcm-checkbox",{id:t.id,name:t.name,color:t.color,checked:t.checked,disabled:t.disabled,readonly:t.readonly,required:t.required,noCaption:t.noCaption,"no-margin":!0,size:t.size,"full-width":t.fullWidth,onClick:e=>{!t.disabled&&!t.readonly&&(n(t.id),e.preventDefault())}},t.slot||t.label)))),{state:x}=p({group:new Map,allChecked:!0,allUnchecked:!0,changeInderminate:{}}),g=e=>c((()=>x.group.get(e)),{}),b=e=>{var t;const i=g(e);let n=!0,a=!0;null===(t=i.childs)||void 0===t||t.map((e=>{e.checked&&(a=!1),!e.checked&&(n=!1)})),i.indeterminateState=n||a?n?"determinate":"uncheck":"indeterminate"},f=g;const y=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.groupCheckedList=i(this,"bcm-group-checked-list",7),this._id=o.UID(),this.direction=h.Direction.horizontal,this.items=[],this.indeterminate=!1,this.name=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.gap=void 0,this.defaultValue=void 0,this.fullWidth=!1,this.optionType="default",this.buttonStyle="solid",this.size=h.Size.medium,this.caption=void 0,this.noCaption=!1,this.captionType=h.Status.default,this.tick={}}componentDidLoad(){this.initState()}disconnectedCallback(){Promise.resolve(x.group.delete(this._id))}componentShouldUpdate(e,t,i){"tick"==i&&e!==t&&c((()=>f(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e)),this.getOptions().indexOf(i)>-1&&e!==t&&this.initState()}getOptions(){return c((()=>Object.keys(x.group.get(this._id))),[])}async initState(){const{fullWidth:e,optionType:t,buttonStyle:i,size:n,noCaption:a,defaultValue:s,label:h,required:r,captionType:l,hidden:p,direction:d,indeterminate:m,gap:u,items:g}=this,b=s&&("string"==typeof s?JSON.parse(s):s),f=g.length>0?g:await this.getCheckboxes();await(async({fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,el:s,id:h,label:r,required:l,captionType:p,hidden:d,direction:m,childs:u,indeterminate:g,gap:b,noCaption:f})=>{s&&x.group.set(h,{fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,label:r,required:l,captionType:p,hidden:d,direction:m,indeterminate:g,gap:b,noCaption:f,childs:null==u?void 0:u.map((e=>(e.checked&&(x.allUnchecked=!1),!e.checked&&(x.allChecked=!1),t&&(e.optionType=t),i&&(e.buttonStyle=i),n&&(e.size=n),a&&a.find((t=>t===e.name))&&(e.checked=!0),e.noCaption=f,{id:e.id||o.UID(),checked:e.checked||!1,name:e.name,size:e.size,buttonStyle:e.buttonStyle,optionType:e.optionType,style:e.style,noCaption:e.noCaption,color:e.color,disabled:e.disabled,readonly:e.readonly,label:e.label||e.name,slot:e.slot||c((()=>e.querySelector(".slot").textContent),e.textContent),required:e.required||l,el:e,captionType:p,hidden:d}))),indeterminateState:x.allChecked||x.allUnchecked?x.allChecked?"determinate":"uncheck":"indeterminate"})})({id:this._id,el:this.el,indeterminate:m,fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:b,label:h,noCaption:a,required:r,captionType:l,hidden:p,gap:u,direction:d,childs:f});const y=this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);y&&y.innerHTML&&(y.innerHTML=""),this.value=await this.getValue()}async markForCheck(){await r(10),this.tick=o.UID()}async onBcmFocus(){const e=this.getCheckboxes();e.length>0&&e[0].onBcmFocus()}async onBcmBlur(){this.el.blur()}async setClear(){return null===(t=g(e=this._id).childs)||void 0===t||t.forEach((e=>{e.checked=!1})),b(e),await r(10),this.getCheckboxes().forEach((e=>{e.setClear()})),this.markForCheck(),await r(10),Promise.resolve();var e,t}async resetCaption(){return await r(10),this.getCheckboxes().forEach((e=>{e.resetCaption()})),await r(10),Promise.resolve()}async set(e){Array.isArray(e)&&await this.check(e,!0,!0)}async get(){const e=await this.getCheckedList()&&Object.keys(await this.getCheckedList());return e.length>0?e:[]}async check(e,t=!0,i=!1){((e,t,i,n)=>{var a;const s=t&&("string"==typeof t?JSON.parse(t):t);null===(a=g(e).childs)||void 0===a||a.forEach((e=>{if(s){const t=s.find((t=>t===e.name||t.name===e.name));t?"object"==typeof t?Object.keys(t).map((n=>{e.checked="checked"===n?t[n]:i})):e.checked=i:n&&(e.checked=!1)}else e.checked=!1})),b(e)})(this._id,e,t,i),this.markForCheck()}async getValue(e){return Promise.resolve(((e,t)=>{var i;const n=g(e);let a={};return null===(i=n.childs)||void 0===i||i.map((e=>{t?e.name===t&&(a[e.name]={value:!!e.checked,name:e.name}):a[e.name]={value:!!e.checked,name:e.name}})),a})(this._id,e))}async getCheckedList(){return(e=>{var t;const i=g(e);let n={};return null===(t=i.childs)||void 0===t||t.map((e=>{!0===e.checked&&(n[e.name]={value:!!e.checked,name:e.name})})),n})(this._id)}handleItemsChange(){this.initState()}getCheckboxes(){return l(this.el,"bcm-checkbox:not(#bcm-indeterminate-element)")}async getCheckbox(e){const t=this.el.querySelector(`bcm-checkbox[id="${e}"]`);if(t){const e=t.name,i=await this.getValue(e);return{element:t,event:c((()=>i[e]),null)}}return{}}async indeterminateClick(){(e=>{var t;const i=g(e);if(!i.disabled){let n=!0;"determinate"===i.indeterminateState&&(n=!1),null===(t=g(e).childs)||void 0===t||t.map((e=>{e.checked=n})),b(e)}})(this._id),this.markForCheck()}async changeCheckBox(e){var t,i;null===(i=g((t={id:this._id,childId:e}).id).childs)||void 0===i||i.map((e=>{e.checked=e.id===t.childId?!e.checked:e.checked})),b(t.id),this.markForCheck(),await r(10),this.value=await this.getValue(),this.change.emit({value:this.value,changed:Object.assign({},await this.getCheckbox(e))}),this.groupCheckedList.emit(await this.getCheckedList())}getItems(){return f(this._id)}render(){const t=this.getItems(),{disabled:i,captionType:a,label:o,indeterminate:c,indeterminateState:h,required:r,direction:l,optionType:p,hidden:m,fullWidth:x,gap:g}=t,b=s("bcm-checkbox-group",l,p,{hidden:m,"full-width":x}),f=s("bcm-checkbox-group__container",p,{[l]:"default"===p,indeterminate:c,hidden:m,"full-width":x});return e(n,{class:b},e("span",{hidden:!0,id:`bcm-checkbox-group__items-${this._id}`},e("slot",null)),e("div",{class:"bcm-checkbox-group__label"},o&&e("div",null,e(d,{size:this.size,type:a,value:o,required:r}))),c&&e("bcm-checkbox",{onClick:e=>{this.indeterminateClick(),e.preventDefault()},"no-caption":!0,id:"bcm-indeterminate-element",indeterminate:h,disabled:i},"Check All"),e(u,{items:t,groupContainerClasses:f,customStyle:g&&{gap:g},onBcmSelect:e=>this.changeCheckBox(e)}))}get el(){return a(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);s>3&&o&&Object.defineProperty(t,i,o)})([m()],y.prototype,"el",void 0),y.style='@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}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}';export{y as bcm_checkbox_group}
5
+ import{h as e,r as t,c as i,H as n,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{G as o,s as c}from"./p-ce103c35.js";import{a as h}from"./p-a313fba6.js";import{d as r,a as l}from"./p-3c7a0345.js";import{c as p}from"./p-197aba37.js";import{L as d}from"./p-3089e9c7.js";import{I as m}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";const u=({customStyle:t,groupContainerClasses:i,onBcmSelect:n,items:a})=>e("div",{class:i,style:t},a.childs&&a.childs.map((t=>e("bcm-checkbox",{id:t.id,name:t.name,color:t.color,checked:t.checked,disabled:t.disabled,readonly:t.readonly,required:t.required,noCaption:t.noCaption,"no-margin":!0,size:t.size,"full-width":t.fullWidth,onClick:e=>{!t.disabled&&!t.readonly&&(n(t.id),e.preventDefault())}},t.slot||t.label)))),{state:x}=p({group:new Map,allChecked:!0,allUnchecked:!0,changeInderminate:{}}),g=e=>c((()=>x.group.get(e)),{}),b=e=>{var t;const i=g(e);let n=!0,a=!0;null===(t=i.childs)||void 0===t||t.map((e=>{e.checked&&(a=!1),!e.checked&&(n=!1)})),i.indeterminateState=n||a?n?"determinate":"uncheck":"indeterminate"},f=g;const y=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.groupCheckedList=i(this,"bcm-group-checked-list",7),this._id=o.UID(),this.direction=h.Direction.horizontal,this.items=[],this.indeterminate=!1,this.name=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.gap=void 0,this.defaultValue=void 0,this.fullWidth=!1,this.optionType="default",this.buttonStyle="solid",this.size=h.Size.medium,this.caption=void 0,this.noCaption=!1,this.captionType=h.Status.default,this.tick={}}componentDidLoad(){this.initState()}disconnectedCallback(){Promise.resolve(x.group.delete(this._id))}componentShouldUpdate(e,t,i){"tick"==i&&e!==t&&c((()=>f(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e)),this.getOptions().indexOf(i)>-1&&e!==t&&this.initState()}getOptions(){return c((()=>Object.keys(x.group.get(this._id))),[])}async initState(){const{fullWidth:e,optionType:t,buttonStyle:i,size:n,noCaption:a,defaultValue:s,label:h,required:r,captionType:l,hidden:p,direction:d,indeterminate:m,gap:u,items:g}=this,b=s&&("string"==typeof s?JSON.parse(s):s),f=g.length>0?g:await this.getCheckboxes();await(async({fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,el:s,id:h,label:r,required:l,captionType:p,hidden:d,direction:m,childs:u,indeterminate:g,gap:b,noCaption:f})=>{s&&x.group.set(h,{fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,label:r,required:l,captionType:p,hidden:d,direction:m,indeterminate:g,gap:b,noCaption:f,childs:null==u?void 0:u.map((e=>(e.checked&&(x.allUnchecked=!1),!e.checked&&(x.allChecked=!1),t&&(e.optionType=t),i&&(e.buttonStyle=i),n&&(e.size=n),a&&a.find((t=>t===e.name))&&(e.checked=!0),e.noCaption=f,{id:e.id||o.UID(),checked:e.checked||!1,name:e.name,size:e.size,buttonStyle:e.buttonStyle,optionType:e.optionType,style:e.style,noCaption:e.noCaption,color:e.color,disabled:e.disabled,readonly:e.readonly,label:e.label||e.name,slot:e.slot||c((()=>e.querySelector(".slot").textContent),e.textContent),required:e.required||l,el:e,captionType:p,hidden:d}))),indeterminateState:x.allChecked||x.allUnchecked?x.allChecked?"determinate":"uncheck":"indeterminate"})})({id:this._id,el:this.el,indeterminate:m,fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:b,label:h,noCaption:a,required:r,captionType:l,hidden:p,gap:u,direction:d,childs:f});const y=this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);y&&y.innerHTML&&(y.innerHTML=""),this.value=await this.getValue()}async markForCheck(){await r(10),this.tick=o.UID()}async onBcmFocus(){const e=this.getCheckboxes();e.length>0&&e[0].onBcmFocus()}async onBcmBlur(){this.el.blur()}async setClear(){return null===(t=g(e=this._id).childs)||void 0===t||t.forEach((e=>{e.checked=!1})),b(e),await r(10),this.getCheckboxes().forEach((e=>{e.setClear()})),this.markForCheck(),await r(10),Promise.resolve();var e,t}async resetCaption(){return await r(10),this.getCheckboxes().forEach((e=>{e.resetCaption()})),await r(10),Promise.resolve()}async set(e){Array.isArray(e)&&await this.check(e,!0,!0)}async get(){const e=await this.getCheckedList()&&Object.keys(await this.getCheckedList());return e.length>0?e:[]}async check(e,t=!0,i=!1){((e,t,i,n)=>{var a;const s=t&&("string"==typeof t?JSON.parse(t):t);null===(a=g(e).childs)||void 0===a||a.forEach((e=>{if(s){const t=s.find((t=>t===e.name||t.name===e.name));t?"object"==typeof t?Object.keys(t).map((n=>{e.checked="checked"===n?t[n]:i})):e.checked=i:n&&(e.checked=!1)}else e.checked=!1})),b(e)})(this._id,e,t,i),this.markForCheck()}async getValue(e){return Promise.resolve(((e,t)=>{var i;const n=g(e);let a={};return null===(i=n.childs)||void 0===i||i.map((e=>{t?e.name===t&&(a[e.name]={value:!!e.checked,name:e.name}):a[e.name]={value:!!e.checked,name:e.name}})),a})(this._id,e))}async getCheckedList(){return(e=>{var t;const i=g(e);let n={};return null===(t=i.childs)||void 0===t||t.map((e=>{!0===e.checked&&(n[e.name]={value:!!e.checked,name:e.name})})),n})(this._id)}handleItemsChange(){this.initState()}getCheckboxes(){return l(this.el,"bcm-checkbox:not(#bcm-indeterminate-element)")}async getCheckbox(e){const t=this.el.querySelector(`bcm-checkbox[id="${e}"]`);if(t){const e=t.name,i=await this.getValue(e);return{element:t,event:c((()=>i[e]),null)}}return{}}async indeterminateClick(){(e=>{var t;const i=g(e);if(!i.disabled){let n=!0;"determinate"===i.indeterminateState&&(n=!1),null===(t=g(e).childs)||void 0===t||t.map((e=>{e.checked=n})),b(e)}})(this._id),this.markForCheck()}async changeCheckBox(e){var t,i;null===(i=g((t={id:this._id,childId:e}).id).childs)||void 0===i||i.map((e=>{e.checked=e.id===t.childId?!e.checked:e.checked})),b(t.id),this.markForCheck(),await r(10),this.value=await this.getValue(),this.change.emit({value:this.value,changed:Object.assign({},await this.getCheckbox(e))}),this.groupCheckedList.emit(await this.getCheckedList())}getItems(){return f(this._id)}render(){const t=this.getItems(),{disabled:i,captionType:a,label:o,indeterminate:c,indeterminateState:h,required:r,direction:l,optionType:p,hidden:m,fullWidth:x,gap:g}=t,b=s("bcm-checkbox-group",l,p,{hidden:m,"full-width":x}),f=s("bcm-checkbox-group__container",p,{[l]:"default"===p,indeterminate:c,hidden:m,"full-width":x});return e(n,{class:b},e("span",{hidden:!0,id:`bcm-checkbox-group__items-${this._id}`},e("slot",null)),e("div",{class:"bcm-checkbox-group__label"},o&&e("div",null,e(d,{size:this.size,type:a,value:o,required:r}))),c&&e("bcm-checkbox",{onClick:e=>{this.indeterminateClick(),e.preventDefault()},"no-caption":!0,id:"bcm-indeterminate-element",indeterminate:h,disabled:i},"Check All"),e(u,{items:t,groupContainerClasses:f,customStyle:g&&{gap:g},onBcmSelect:e=>this.changeCheckBox(e)}))}get el(){return a(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);s>3&&o&&Object.defineProperty(t,i,o)})([m()],y.prototype,"el",void 0),y.style='@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}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}';export{y as bcm_checkbox_group}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as i,H as e,g as s}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{I as n}from"./p-8e5e362a.js";import{G as h}from"./p-fe7e383d.js";import{a as p}from"./p-6369b73b.js";import{d as r}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@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:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
5
+ import{r as t,h as i,H as e,g as s}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{I as n}from"./p-8e5e362a.js";import{G as h}from"./p-ce103c35.js";import{a as p}from"./p-a313fba6.js";import{d as r}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@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:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as i,h as t,H as s,g as h}from"./p-e037ee2b.js";import{c as o}from"./p-bed627ab.js";import{a as p}from"./p-6369b73b.js";import{G as n}from"./p-fe7e383d.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";const a=class{constructor(t){e(this,t),this.onShow=i(this,"bcm-show",7),this.onHide=i(this,"bcm-hide",7),this._title=void 0,this._id=n.UID(),this.message=void 0,this.placement=p.Placement.top,this.trigger=p.TriggerType.click,this.open=!1,this.linkedComponent=void 0}async show(){this.open||(this.open=!0,this.onShow.emit(),this.createBox(),this.showBox())}async hide(){this.open&&(this.open=!1,this.onHide.emit(),this.hideBox())}createBox(){if(!this.getPopoverBox()){const e=document.createElement("old-bcm-popover-box");e.setAttribute("id","box-"+this._id),e.setAttribute("target-id",this._id),e.setAttribute("placement",this.placement),e.setAttribute("message",this.message),e.setAttribute("_title",this._title),e.setAttribute("linked-component",this.linkedComponent),document.body.appendChild(e)}}getPopoverBox(){return document.querySelector(`old-bcm-popover-box[id="box-${this._id}"]`)}showBox(){this.getPopoverBox()&&this.getPopoverBox().show()}hideBox(){this.getPopoverBox()&&this.getPopoverBox().hide()}listenTrigger(e){switch(this.trigger){case"click":"click"===e&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===e&&this.show(),"onMouseOut"===e&&this.hide();break;case"focus":"onFocus"===e&&this.show(),"onBlur"===e&&this.hide()}}render(){const e=o("bcm-popover");return t(s,{class:e,onMouseOver:()=>this.listenTrigger("onMouseOver"),onMouseOut:()=>this.listenTrigger("onMouseOut"),onclick:()=>this.listenTrigger("click"),onFocus:()=>this.listenTrigger("onFocus"),onBlur:()=>this.listenTrigger("onBlur"),tabindex:0},t("slot",null))}get el(){return h(this)}};a.style='@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}.bcm-popover{display:inline-flex}';export{a as old_bcm_popover}
5
+ import{r as e,c as i,h as t,H as s,g as h}from"./p-e037ee2b.js";import{c as o}from"./p-bed627ab.js";import{a as p}from"./p-a313fba6.js";import{G as n}from"./p-ce103c35.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";const a=class{constructor(t){e(this,t),this.onShow=i(this,"bcm-show",7),this.onHide=i(this,"bcm-hide",7),this._title=void 0,this._id=n.UID(),this.message=void 0,this.placement=p.Placement.top,this.trigger=p.TriggerType.click,this.open=!1,this.linkedComponent=void 0}async show(){this.open||(this.open=!0,this.onShow.emit(),this.createBox(),this.showBox())}async hide(){this.open&&(this.open=!1,this.onHide.emit(),this.hideBox())}createBox(){if(!this.getPopoverBox()){const e=document.createElement("old-bcm-popover-box");e.setAttribute("id","box-"+this._id),e.setAttribute("target-id",this._id),e.setAttribute("placement",this.placement),e.setAttribute("message",this.message),e.setAttribute("_title",this._title),e.setAttribute("linked-component",this.linkedComponent),document.body.appendChild(e)}}getPopoverBox(){return document.querySelector(`old-bcm-popover-box[id="box-${this._id}"]`)}showBox(){this.getPopoverBox()&&this.getPopoverBox().show()}hideBox(){this.getPopoverBox()&&this.getPopoverBox().hide()}listenTrigger(e){switch(this.trigger){case"click":"click"===e&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===e&&this.show(),"onMouseOut"===e&&this.hide();break;case"focus":"onFocus"===e&&this.show(),"onBlur"===e&&this.hide()}}render(){const e=o("bcm-popover");return t(s,{class:e,onMouseOver:()=>this.listenTrigger("onMouseOver"),onMouseOut:()=>this.listenTrigger("onMouseOut"),onclick:()=>this.listenTrigger("click"),onFocus:()=>this.listenTrigger("onFocus"),onBlur:()=>this.listenTrigger("onBlur"),tabindex:0},t("slot",null))}get el(){return h(this)}};a.style='@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}.bcm-popover{display:inline-flex}';export{a as old_bcm_popover}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as e,H as s,g as o}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as i}from"./p-fe7e383d.js";import"./p-bcd599fd.js";import"./p-94554e42.js";import"./p-18665a1b.js";import"./p-5ae0a59b.js";import{B as r}from"./p-6369b73b.js";import{c as a}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";const p=class{constructor(e){t(this,e),this._id=i.UID(),this.active=!1,this.disabled=!1,this.index=void 0,this.color="blue",this.size=r.Size.medium}handleClick(){var t;this.disabled||null===(t=i.findParentElement(this.el,"bcm-tab-group"))||void 0===t||t.setActive(this.index)}render(){const{color:t,size:o,active:p,disabled:l}=this,b=i.getTwColor({color:t,tones:[500,600,700,800]});return e(s,{onClick:()=>this.handleClick(),class:a("tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none",{"tw-text-2 tw-py-1 tw-gap-2":o===r.Size.small,"tw-text-3 tw-py-2 tw-gap-3":o===r.Size.medium,"tw-text-4 tw-py-3 tw-gap-4":o===r.Size.large},l?"tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50":"tw-cursor-pointer",p?"tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800":"tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"),style:b})}get el(){return o(this)}};export{p as bcm_tab_item_header}
5
+ import{r as t,h as e,H as s,g as o}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as i}from"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-6b5ed4d8.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import{B as r}from"./p-a313fba6.js";import{c as a}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";const p=class{constructor(e){t(this,e),this._id=i.UID(),this.active=!1,this.disabled=!1,this.index=void 0,this.color="blue",this.size=r.Size.medium}handleClick(){var t;this.disabled||null===(t=i.findParentElement(this.el,"bcm-tab-group"))||void 0===t||t.setActive(this.index)}render(){const{color:t,size:o,active:p,disabled:l}=this,c=i.getTwColor({color:t,tones:[500,600,700,800]});return e(s,{onClick:()=>this.handleClick(),class:a("tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none",{"tw-text-2 tw-py-1 tw-gap-2":o===r.Size.small,"tw-text-3 tw-py-2 tw-gap-3":o===r.Size.medium,"tw-text-4 tw-py-3 tw-gap-4":o===r.Size.large},l?"tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50":"tw-cursor-pointer",p?"tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800":"tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"),style:c})}get el(){return o(this)}};export{p as bcm_tab_item_header}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as n}from"./p-e037ee2b.js";import{d as e}from"./p-3fac58f7.js";import{a as s}from"./p-6369b73b.js";import{c as a}from"./p-bed627ab.js";import{s as t}from"./p-fe7e383d.js";const i=({elementType:i,rows:o,id:r,internalId:c,type:l,placeholder:p,value:u,size:f,pattern:d,unit:b,unitPrefix:m,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:D,handleClear:O,steps:P,ref:V,handleBlur:B,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=t((()=>u),""),u=y?u:u+(u&&(null==b?void 0:b.length)>0?" "+b:"");const A="color"===(l=(null==b?void 0:b.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=a("bcm-input__container",q===s.HtmlElementType.textarea&&a("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&a("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==b?void 0:b.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==b?void 0:b.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=a(K,"unit-prefix");return n("div",{class:G,id:r+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),m&&n("span",{class:N},m),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:r+"-input","bcm-internal-id":c,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>V(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),B(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>O(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>D()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>P("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>P("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}
5
+ import{h as n}from"./p-e037ee2b.js";import{d as e}from"./p-3fac58f7.js";import{a as s}from"./p-a313fba6.js";import{c as a}from"./p-bed627ab.js";import{s as t}from"./p-ce103c35.js";const i=({elementType:i,rows:o,id:c,internalId:r,type:l,placeholder:p,value:u,size:f,pattern:d,unit:b,unitPrefix:m,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:D,handleClear:O,steps:P,ref:V,handleBlur:B,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=t((()=>u),""),u=y?u:u+(u&&(null==b?void 0:b.length)>0?" "+b:"");const A="color"===(l=(null==b?void 0:b.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=a("bcm-input__container",q===s.HtmlElementType.textarea&&a("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&a("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==b?void 0:b.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==b?void 0:b.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=a(K,"unit-prefix");return n("div",{class:G,id:c+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),m&&n("span",{class:N},m),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:c+"-input","bcm-internal-id":r,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>V(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),B(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>O(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>D()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>P("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>P("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as t,H as i,g as p}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{C as n}from"./p-4798d827.js";import{S as x}from"./p-e4b42f26.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-94554e42.js";import"./p-6369b73b.js";const a=class{constructor(t){e(this,t),this.hidden=!1,this.scale=void 0,this.weight="400",this.color="slate",this.text=void 0,this.fontSize=4}render(){const{hidden:e,scale:p,weight:a,color:h,fontSize:o}=this,l=s("bcm-text",{hidden:e}),c=s("bcm-text__paragraph",`bcm-text__font-size-${o}`,p),r=+a||400,g={color:n.dsColor(h),fontWeight:r};return t(i,{class:l},t("span",{hidden:!0},t("slot",null)),t("p",{class:c,style:Object.assign({},g)},t(x,{value:this.text})))}get el(){return p(this)}};a.style='@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-text{display:inline;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}';export{a as bcm_text}
5
+ import{r as e,h as t,H as i,g as p}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{C as n}from"./p-4798d827.js";import{S as x}from"./p-4213ba24.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-6b5ed4d8.js";import"./p-a313fba6.js";const a=class{constructor(t){e(this,t),this.hidden=!1,this.scale=void 0,this.weight="400",this.color="slate",this.text=void 0,this.fontSize=4}render(){const{hidden:e,scale:p,weight:a,color:h,fontSize:o}=this,l=s("bcm-text",{hidden:e}),c=s("bcm-text__paragraph",`bcm-text__font-size-${o}`,p),r=+a||400,g={color:n.dsColor(h),fontWeight:r};return t(i,{class:l},t("span",{hidden:!0},t("slot",null)),t("p",{class:c,style:Object.assign({},g)},t(x,{value:this.text})))}get el(){return p(this)}};a.style='@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-text{display:inline;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}';export{a as bcm_text}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as s,h as i,H as e,g as o}from"./p-e037ee2b.js";import{c as w}from"./p-bed627ab.js";import{G as a}from"./p-fe7e383d.js";import{S as r}from"./p-94554e42.js";import{a as h}from"./p-6369b73b.js";import{d as n}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";const c=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=a.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=h.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.removeAfterClose=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&this.createContainer(this.position).appendChild(t),this.visible=!0,await n(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await n(100),this.visible=!1,this.removeAfterClose&&(await n(100),this.el.remove())}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}createContainer(t){const s="bcm-toast-container-"+t;let i=document.getElementById(s);if(!i){i=document.createElement("div"),i.id=s;const t=w("tw-pointer-events-none tw-overflow-hidden tw-z-50","tw-fixed tw-flex","tw-p-4 tw-gap-4",{"tw-flex-col-reverse tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===h.Placement.top,"tw-flex-col tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===h.Placement.bottom,"tw-flex-col-reverse tw-top-4 tw-left-4":this.position===h.Placement["top-start"],"tw-flex-col-reverse tw-top-4 tw-right-4":this.position===h.Placement["top-end"],"tw-flex-col tw-bottom-4 tw-left-4":this.position===h.Placement["bottom-start"],"tw-flex-col tw-bottom-4 tw-right-4":this.position===h.Placement["bottom-end"]});i.classList.add(...t.split(" ")),document.body.appendChild(i)}return i}render(){return i(e,{class:"tw-hidden"},i("div",{class:w({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:w("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:w("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:w({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,r.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:w("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:w("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return o(this)}};export{c as bcm_toast}
5
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-e037ee2b.js";import{c as w}from"./p-bed627ab.js";import{G as a}from"./p-ce103c35.js";import{S as r}from"./p-6b5ed4d8.js";import{a as h}from"./p-a313fba6.js";import{d as n}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";const c=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=a.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=h.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.removeAfterClose=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&this.createContainer(this.position).appendChild(t),this.visible=!0,await n(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await n(100),this.visible=!1,this.removeAfterClose&&(await n(100),this.el.remove())}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}createContainer(t){const s="bcm-toast-container-"+t;let i=document.getElementById(s);if(!i){i=document.createElement("div"),i.id=s;const t=w("tw-pointer-events-none tw-overflow-hidden tw-z-50","tw-fixed tw-flex","tw-p-4 tw-gap-4",{"tw-flex-col-reverse tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===h.Placement.top,"tw-flex-col tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===h.Placement.bottom,"tw-flex-col-reverse tw-top-4 tw-left-4":this.position===h.Placement["top-start"],"tw-flex-col-reverse tw-top-4 tw-right-4":this.position===h.Placement["top-end"],"tw-flex-col tw-bottom-4 tw-left-4":this.position===h.Placement["bottom-start"],"tw-flex-col tw-bottom-4 tw-right-4":this.position===h.Placement["bottom-end"]});i.classList.add(...t.split(" ")),document.body.appendChild(i)}return i}render(){return i(e,{class:"tw-hidden"},i("div",{class:w({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:w("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:w("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:w({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,r.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:w("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:w("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return o(this)}};export{c as bcm_toast}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,f as e,h as o,H as n,g as s,F as l}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-fe7e383d.js";import"./p-bcd599fd.js";import"./p-94554e42.js";import"./p-18665a1b.js";import"./p-5ae0a59b.js";import{B as a}from"./p-6369b73b.js";import{C as d}from"./p-8a92f2bf.js";import{c as u}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),c=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=r.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=a.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=a.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,s;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(s=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===s?void 0:s.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=r.findEventPath(t,this.el),n=r.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,s,l,r;const a=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==a?void 0:a.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===a.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(s=this.menuContent)||void 0===s?void 0:s.show()),this._input.style.color="#ff0000")}else null===(l=this.commentContent)||void 0===l||l.hide(),null===(r=this.menuContent)||void 0===r||r.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,s,r;const{size:a,label:p,placeholder:c,required:m,disabled:w,readonly:v,_id:x,invalid:g,hideComment:f,noCaption:b,customErrorMessage:y,caption:z,captionType:j,captionError:k,hideCaption:C}=this,{base:I,inputArea:E,input:L,button:O,menu:M,menuItem:$,commentArea:A,disabledItem:B,content:D,selectedItem:S}=h({size:a,invalid:g,hideComment:f,disabled:w});return o(n,{class:I()},p&&o("bcm-label",{htmlFor:x+"-dropdown-input",size:a,value:p,required:m}),o("div",{class:D()},o("div",{class:E()},o("input",{id:x+"-dropdown-input",class:L(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:c,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:v,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${x}`,class:O(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${x}`,"target-id":`i-dropdown-button-${x}`,placement:"bottom-start"},o((()=>{var t;return o(l,null,this.isOpenMenu?o("div",{class:M()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(l,null,o("li",(null==t?void 0:t.disabled)?{class:B()}:{class:(null==t?void 0:t.selected)?S():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${x}`,"target-id":x,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(l,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(l,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,autocomplete:!1,min:0,max:200,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late",customErrorMessage:"Max limit 200 mins","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:u((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(s=this.value)||void 0===s?void 0:s.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(r=this.value)||void 0===r?void 0:r.key})},o("i",{class:"fas fa-comment"}))),!C&&o(d,{noCaption:b,captionType:j,captionError:k,caption:z,customErrorMessage:y}))}get el(){return s(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};c.style='@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}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{c as bcm_input_dropdown}
5
+ import{r as t,c as i,f as e,h as o,H as n,g as s,F as l}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-6b5ed4d8.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import{B as a}from"./p-a313fba6.js";import{C as d}from"./p-8a92f2bf.js";import{c as u}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),c=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=r.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=a.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=a.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,s;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(s=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===s?void 0:s.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=r.findEventPath(t,this.el),n=r.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,s,l,r;const a=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==a?void 0:a.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===a.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(s=this.menuContent)||void 0===s?void 0:s.show()),this._input.style.color="#ff0000")}else null===(l=this.commentContent)||void 0===l||l.hide(),null===(r=this.menuContent)||void 0===r||r.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,s,r;const{size:a,label:p,placeholder:c,required:m,disabled:w,readonly:v,_id:x,invalid:g,hideComment:f,noCaption:b,customErrorMessage:y,caption:z,captionType:j,captionError:k,hideCaption:C}=this,{base:I,inputArea:E,input:L,button:O,menu:M,menuItem:$,commentArea:A,disabledItem:B,content:D,selectedItem:S}=h({size:a,invalid:g,hideComment:f,disabled:w});return o(n,{class:I()},p&&o("bcm-label",{htmlFor:x+"-dropdown-input",size:a,value:p,required:m}),o("div",{class:D()},o("div",{class:E()},o("input",{id:x+"-dropdown-input",class:L(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:c,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:v,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${x}`,class:O(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${x}`,"target-id":`i-dropdown-button-${x}`,placement:"bottom-start"},o((()=>{var t;return o(l,null,this.isOpenMenu?o("div",{class:M()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(l,null,o("li",(null==t?void 0:t.disabled)?{class:B()}:{class:(null==t?void 0:t.selected)?S():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${x}`,"target-id":x,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(l,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(l,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,autocomplete:!1,min:0,max:200,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late",customErrorMessage:"Max limit 200 mins","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:u((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(s=this.value)||void 0===s?void 0:s.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(r=this.value)||void 0===r?void 0:r.key})},o("i",{class:"fas fa-comment"}))),!C&&o(d,{noCaption:b,captionType:j,captionError:k,caption:z,customErrorMessage:y}))}get el(){return s(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};c.style='@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}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{c as bcm_input_dropdown}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as e,h as i,H as s,g as a}from"./p-e037ee2b.js";import{c as r}from"./p-bed627ab.js";import{I as o}from"./p-8e5e362a.js";import{S as n}from"./p-6b5ed4d8.js";import{d as h,a as c}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-a313fba6.js";const l=new class{constructor(){}response(t,e){return Object.assign(Object.assign({valid:t},e&&{message:e}),!t&&{type:"error"})}required(t,e){let i=this.response(!0);return""!=t&&""!=t&&null!=t&&null!=t&&!1!==t||(i=this.response(!1,"This field is required")),e&&(e.valid||(i=this.response(!1,e.errorText)),t instanceof Object&&t.isValid&&0==t.isValid&&(i=this.response(!1,"This field is required"))),i}selfValidation(t){let e=this.response(!0);return null==t.captionError&&"error"!=t.captionType||(e=this.response(!1,t.captionError)),e}};const p=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[],this.Bromcom={errors:{targetFormNotExist:"target form is not exist --\x3e "},inputComponents:{CHIP_GROUP:"chip-group",INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch",CHECKBOX:"checkbox",RADIO_GROUP:"radio-group",CHECKBOX_GROUP:"checkbox-group",RANGE:"range",FORM:"form",FORM_GROUP:"form-group",LIST:"list",COLORPICKER:"colorpicker",DATE:"date",DATE_PICKER:"date-picker",TIME_PICKER:"time-picker",DATETIME_PICKER:"datetime-picker",SELECT:"select",LISTBOX:"listbox"},helpers:{randomId:function(){return Math.random().toString(16).slice(2,-1)}}},this._id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.validation=!1,this.name="",this.value=void 0,this.autocomplete=!1}handleSubmit(){}async submitFunction(){this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs(),await h(10);const t=await this.userFormData();var e={isValid:!0,formData:t};return this.name&&(e=Object.assign(Object.assign({},e),{formName:this.name})),this.isValid?(this.bcmForm.emit(e),e):(this.returnCaption={isValid:!1,message:"Please fill in all inputs",errorDetails:this.returnCaption,formData:t},this.name&&(this.returnCaption=Object.assign(Object.assign({},this.returnCaption),{formName:this.name})),this.bcmForm.emit(this.returnCaption),this.returnCaption)}async submit(){return Promise.resolve(this.submitFunction())}async set(t){var e;const i=this.validation;if(this.validation=!1,this.selector=this.el,await this.getInputs(),t&&(null===(e=this.inputs)||void 0===e?void 0:e.length)>0)for(const e of Object.keys(t)){const i=this.inputs.find((t=>t.name===e));if(i)try{await i.set(t[e])}catch(t){console.log(i.nodeName,"set",t)}}this.validation=i}async get(){var t;let e={};this.selector=this.el;const i=this.inputs;return await this.getInputs(),(null===(t=this.inputs)||void 0===t?void 0:t.length)>0&&this.inputs.forEach((async t=>{try{const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:i})}catch(e){console.log(`${t.nodeName} get error`)}})),this.inputs=i,await h(10),Promise.resolve(e)}async setClear(){this.formData={},this.inputs=[],this.selector=this.el;let t=[];return await this.getInputs(),this.inputs.forEach((async e=>{try{t.push(await e.setClear())}catch(t){console.log(t)}})),await Promise.all(t).then((()=>{this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[]})),await h(10),Promise.resolve(!0)}async resetCaption(){await h(10),this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs();for(const t of this.inputs)try{await t.resetCaption()}catch(e){console.log(t.nodeName,"rc p")}return await h(10),Promise.resolve()}async config(t){return t.validation&&(this.validation="boolean"==typeof t.validation&&t.validation),!0}async getInputs(){var t=this.selector;if(!t)return void console.warn(this.Bromcom.errors.targetFormNotExist+this.selector);const e=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));this.duplicateInput=[];const i=e.filter((t=>{var e;return!t["s-hn"]||"BcmForm"!==(null===(e=t["s-hn"])||void 0===e?void 0:e.nodeName)}));for(const t of i){if("bcm-checkbox-group"==n.lowercase(t.nodeName)){let e=t.querySelectorAll("bcm-checkbox");if(e)for(const t of e)this.duplicateInput.push(t.name)}if("bcm-form"==n.lowercase(t.nodeName)){const e=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));let i={};for(const t of e){var s=t.name,a=t.value;i=Object.assign(Object.assign({},i),{[s]:a}),this.duplicateInput.push(t.name)}t.value=i;let r=t.querySelectorAll("bcm-checkbox");if(r)for(const t of r)this.duplicateInput.push(t.name)}}await h(10),this.inputs=i}getItemValue(t){return t.tagName.toLowerCase().replace("bcm-",""),t.value}isWrapperComponent(t){return["bcm-datetime-picker","bcm-date-picker","bcm-time-picker"].includes(t.toLowerCase())}isGroupComponent(t){return["bcm-checkbox-group"].includes(t.toLowerCase())}isListComponent(t){return["bcm-list"].includes(t.toLowerCase())}async userFormData(){this.formData={},this.isValid=!0,this.returnCaption=[];for(const e of this.inputs){const i=this.isGroupComponent(e.tagName),s=this.isWrapperComponent(e.tagName),a=s&&e,r=s?await e.getInput()&&e:e;if(this.validation){let t=null;if(s){const e=await a.isValid();t=l.required(r.value,e),t&&(r.value instanceof Object?0==r.value.isValid&&(t=l.required("",e)):t=l.required(r.value,e))}else if(i){const e=c(r,"bcm-checkbox:not(#bcm-indeterminate-element)");if(e&&e.length>0)for(const i of e)i&&!0===i.required&&(t=l.required(i.checked),t.valid?(i.noCaption=r.noCaption,i.captionError=null,i.captionType="default"):(i.noCaption=!1,i.captionError=t.message,i.captionType=t.type))}else t=l.required(r.value);if(r.required){t.valid?(r.captionError=null,r.captionType="default"):(r.captionError=t.message,r.captionType=t.type),await h(10);const e=l.selfValidation(r);t.valid&&(e.valid||(r.captionError=e.message,r.captionType=e.type))}let e=r.name,o=r.captionError;!r.hidden&&"error"==r.captionType&&(this.returnCaption=[...Array.from(this.returnCaption),{[e]:o}],this.isValid=!1)}if(r.name&&!this.duplicateInput.includes(r.name)){var t=this.getItemValue(r);t&&null!=t&&null!=t||(t=null),this.formData[r.name]=t}}return this.formData}async handleChange(t){const e=this.isWrapperComponent(t.target.tagName),i=this.isGroupComponent(t.target.tagName);let s;if(e)s=t.target.getInput&&await t.target.getInput()||t.target;else if(i){let e=!1;const i=c(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");i.length>0&&i.forEach((t=>{t&&!0===t.required&&(e=!0)})),s=Object.assign(Object.assign({},t.target),{required:e})}else s=t.target;const a=t.target.value,r=e&&t.target;var o;e&&(o=await r.isValid());const n=setTimeout((()=>{if(s.required){let r=null;if(e)r=l.required(a,o),r&&(a instanceof Object?0==a.isValid&&(r=l.required("",o)):r=l.required(a,o));else if(i){const e=c(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");e.length>0&&e.forEach((e=>{e&&!0===e.required&&(r=l.required(e.checked),r.valid?(e.noCaption=t.target.noCaption,e.captionError=null,e.captionType="default"):(e.noCaption=!1,e.captionError=r.message,e.captionType=r.type))}))}else r=l.required(a);r.valid?(s.captionError=null,s.captionType=null):(s.captionError=r.message,s.captionType=r.type)}clearTimeout(n)}));this.value=await this.userFormData()}async handleSubmitForm(t){t.preventDefault()}render(){const t=r(this.hidden?"hidden":null);return i(s,{class:t},i("form",{class:"bcm-form",autocomplete:this.autocomplete?"on":"off"},i("slot",null)))}get el(){return a(this)}};(function(t,e,i,s){var a,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(r<3?a(o):r>3?a(e,i,o):a(e,i))||o);r>3&&o&&Object.defineProperty(e,i,o)})([o()],p.prototype,"el",void 0),p.style='@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;margin-bottom:8px}:host(.hidden){display:none}';export{p as bcm_form}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- const c="2.11.1-rc.0";export{c as v}
5
+ const c="2.11.1-rc.2";export{c as v}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as n}from"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-6b5ed4d8.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import{d as a}from"./p-3c7a0345.js";import{F as c}from"./p-6e5f5f36.js";import{B as r}from"./p-a313fba6.js";import{c as l}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";const m=l({slots:{host:["tw-w-fit","tw-absolute tw-left-0 tw-right-0 tw-z-tooltip tw-opacity-100 tw-transition-opacity tw-duration-300","tw-rounded tw-bg-white tw-shadow","bcm-ui-element bcm-attendance-actions tw-flex tw-flex-col tw-items-start tw-justify-start tw-p-4 tw-font-medium tw-text-slate-700"],footer:["tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2 "]},variants:{size:{small:{},medium:{},large:{}}},defaultVariants:{size:"medium"}}),h=class{constructor(s){t(this,s),this.change=i(this,"bcm-attendance-actions-comment-change",3),this.lateMinutes=null,this.comment=null,this._id=n.UID(),this.size=r.Size.medium,this.disabled=!1,this.selectedKey=null,this.targetId=null,this.isShow=!1,this.isLate=!1,this.selectedItem=null}handleSave(t,i){this.change.emit({lateMinutes:t,comment:i}),this.hide()}async show(){const t=document.getElementById(this.targetId);c({ref:t,floating:this.el,placement:"bottom-end",offset:8,arrow:!0,arrowColor:"tw-bg-white"}),this.isShow=!0,await a(100),this.isLate?this.focusInput():this.focusTextarea()}focusInput(){const t=this.el.querySelector("bcm-input");null==t||t.onBcmSelect()}focusTextarea(){const t=this.el.querySelector("bcm-textarea");null==t||t.onBcmSelect()}async hide(){this.isShow&&this.el.remove()}handleClickOutside(t){n.findEventPath(t,this.el)||this.hide()}async formSubmit(){var t,i,s;const{lateMinutes:e,comment:o,isLate:n}=this;if(n&&e&&!(e>=0&&e<=200))return;const{isValid:a}=await(null===(t=this.el.querySelector("bcm-form"))||void 0===t?void 0:t.submit());a&&this.handleSave(e||(null===(i=this.selectedItem)||void 0===i?void 0:i.lateMin),o||(null===(s=this.selectedItem)||void 0===s?void 0:s.comment))}render(){var t,i;const{size:o}=this,{host:n,footer:a}=m({size:o});return s(e,{class:n(),onKeyDown:t=>{"Escape"===t.key&&this.hide()}},s("bcm-form",{validation:!0,style:{width:"256px"}},this.isLate?s("bcm-input",{label:"Minus Late",required:!0,name:"lateMin",id:this._id+"-input-dropdown-late-content-input",type:"number",size:this.size,autocomplete:!1,"no-margin":!0,min:0,max:200,value:null===(t=this.selectedItem)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late","onBcm-change":({detail:t})=>this.lateMinutes=t,onKeyDown:t=>{"Enter"===t.key&&this.formSubmit()}},s("i",{slot:"prefix",class:"far fa-clock"})):null,s("bcm-textarea",{name:"comment",value:null===(i=this.selectedItem)||void 0===i?void 0:i.comment,size:this.size,"onBcm-change":({detail:t})=>this.comment=t,label:"Description","no-caption":!0,rows:4,onKeyDown:t=>{"Enter"===t.key&&this.formSubmit()}}),s("footer",{class:a()},s("bcm-button",{class:"tw-order-2",icon:"fas fa-save","icon-position":"prefix",size:this.size,onClick:()=>this.formSubmit()},"Save"),s("bcm-button",{class:"tw-order-1",icon:"fas fa-times",kind:"ghost",size:this.size,"icon-position":"prefix",onClick:()=>this.hide()},"Close"))))}get el(){return o(this)}};export{h as bcm_attendance_actions_comment}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{v as r}from"./p-9f6bbc21.js";import{c as t}from"./p-034bbcdd.js";var n,e;function o(r,t){try{var n=r();return void 0===n?t:n}catch(r){if(r instanceof TypeError)return t;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(n||(n={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const c=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return c.includes(r)})()&&console.log(`%cbromcom ui%c version: ${r}-p `,"color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;"),function(){const r=document.querySelector("body");let t=localStorage.getItem("bcm-theme");!r.classList.contains("bcm-theme-*")&&t&&r.classList.add(`bcm-theme-${t}`)}(),function(){const r=document.querySelector("body");let t=document.querySelector("#bcm-overlay-container");t||(t=document.createElement("div"),t.id="bcm-overlay-container",t.classList.add("bcm-overlay-container"),r.appendChild(t))}();class i{static prettify(r){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t}static getTwColor(r){const{color:n,variable:e,tones:o}=r=Object.assign({variable:"--bcm-color-default",defaultTone:"600",tones:{50:{},100:{},200:{},300:{},400:{},500:{},600:{},700:{},800:{},900:{},950:{}}},r);if(!n||!t[n])return!1;const c={};return"string"==typeof t[n]?(c[e]=t[n],c):((Array.isArray(o)?o:Object.keys(o)).forEach((r=>{t[n][r]&&(Array.isArray(o[r])?o[r].forEach((o=>{c[`${e}-${o}`]=t[n][r]})):c[`${e}-${r}`]=t[n][r])})),c)}}i.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,i.getIconAttrWithStatusType=(r,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(r){case n.info:return{icon:"far fa-info-circle"};case n.error:return{icon:"far fa-times-circle"};case n.warning:return{icon:"far fa-exclamation-circle"};case n.success:return{icon:"far fa-check-circle"}}},i.domParser=r=>(new DOMParser).parseFromString(r,"text/html").body.innerText,i.createComponent=(r,t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{n[r]=t[r]})),document.getElementById("bcm-overlay-container").appendChild(n),n},i.createElement=(r="div",t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{"innerHTML"==r?n[r]=t[r]:n.setAttribute(r,t[r])})),document.body.appendChild(n),n},i.debounceInput=(r,t,n,e)=>{let o;return function(){let c=this,i=arguments;e&&e.apply(c,i);let u=function(){o=null,n||r.apply(c,i)},a=n&&!o;clearTimeout(o),o=setTimeout(u,t),a&&r.apply(c,i)}},i.flatArray=r=>r.reduce(((r,t)=>r.concat(Array.isArray(t)?i.flatArray(t):t)),[]),i.reverseNodeList=r=>{let t=[];for(let n=r.length-1;n>=0;n--)t.push(r[n]);return t},i.findEventPathWithKey=(r,t,n)=>{n=Array.isArray(n)?n:[n];let e=r.composedPath()||r.path;if(e)return void 0!==e.filter((r=>n.includes(r[t])))[0]},i.findEventPathHasAttribute=(r,t)=>{let n=r.composedPath()||r.path;if(n)return o((()=>!!n.find((r=>r.hasAttribute(t)))),!1)},i.findEventTarget=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.target||r.srcElement;if(n)return t.includes(n)},i.findEventPathWithNodeName=(r,t)=>{let n=r.composedPath()||r.path;if(n)return n.filter((r=>r.nodeName===t))[0]},i.findEventPath=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r)))[0]},i.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,i.convertIdsToNestedData=(r,t)=>{let n=[],e=[];return t.forEach((t=>{r&&r.indexOf(t.id.toString())>-1?n.push(t):t.items&&(e=i.convertIdsToNestedData(r,t.items),e.length>0&&(t.items=e,n.push(t)))})),n},i.nodeListToArray=r=>Array.prototype.slice.call(r),i.setAttributes=(r,t)=>{Object.keys(t).forEach((n=>{r.setAttribute(n,t[n])}))},i.computedStyle=(r,t)=>window.getComputedStyle(r,null).getPropertyValue(t),i.getAncestor=(r,t)=>{for(;(r=r.parentElement)&&!r.matches(t););return r},i.findParentElement=(r,t)=>{const n=t.charAt(0);if("*"===t)return r.parentElement;if("."===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.classList.contains(t))return r;r=r.parentElement}return null}(r.parentElement,n)}if("#"===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.id===t)return r;r=r.parentElement}return null}(r.parentElement,n)}if("["===n){const n=t.indexOf("]"),e=t.slice(1,n),o=t.slice(n+2,-1);return function(r,t,n){for(;null!==r;){if(r.hasAttribute(t)&&(void 0===n||r.getAttribute(t)===n))return r;r=r.parentElement}return null}(r.parentElement,e,o)}{const n=t.toLowerCase();return function(r,t){for(;null!==r;){if(r.tagName.toLowerCase()===t.toLowerCase())return r;r=r.parentElement}return null}(r.parentElement,n)}};export{i as G,n as S,e as T,o as s}
5
+ import{v as r}from"./p-c5c611d7.js";import{c as t}from"./p-034bbcdd.js";var n,e;function o(r,t){try{var n=r();return void 0===n?t:n}catch(r){if(r instanceof TypeError)return t;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(n||(n={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const c=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return c.includes(r)})()&&console.log(`%cbromcom ui%c version: ${r}-p `,"color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;"),function(){const r=document.querySelector("body");let t=localStorage.getItem("bcm-theme");!r.classList.contains("bcm-theme-*")&&t&&r.classList.add(`bcm-theme-${t}`)}(),function(){const r=document.querySelector("body");let t=document.querySelector("#bcm-overlay-container");t||(t=document.createElement("div"),t.id="bcm-overlay-container",t.classList.add("bcm-overlay-container"),r.appendChild(t))}();class i{static prettify(r){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t}static getTwColor(r){const{color:n,variable:e,tones:o}=r=Object.assign({variable:"--bcm-color-default",defaultTone:"600",tones:{50:{},100:{},200:{},300:{},400:{},500:{},600:{},700:{},800:{},900:{},950:{}}},r);if(!n||!t[n])return!1;const c={};return"string"==typeof t[n]?(c[e]=t[n],c):((Array.isArray(o)?o:Object.keys(o)).forEach((r=>{t[n][r]&&(Array.isArray(o[r])?o[r].forEach((o=>{c[`${e}-${o}`]=t[n][r]})):c[`${e}-${r}`]=t[n][r])})),c)}}i.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,i.getIconAttrWithStatusType=(r,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(r){case n.info:return{icon:"far fa-info-circle"};case n.error:return{icon:"far fa-times-circle"};case n.warning:return{icon:"far fa-exclamation-circle"};case n.success:return{icon:"far fa-check-circle"}}},i.domParser=r=>(new DOMParser).parseFromString(r,"text/html").body.innerText,i.createComponent=(r,t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{n[r]=t[r]})),document.getElementById("bcm-overlay-container").appendChild(n),n},i.createElement=(r="div",t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{"innerHTML"==r?n[r]=t[r]:n.setAttribute(r,t[r])})),document.body.appendChild(n),n},i.debounceInput=(r,t,n,e)=>{let o;return function(){let c=this,i=arguments;e&&e.apply(c,i);let u=function(){o=null,n||r.apply(c,i)},a=n&&!o;clearTimeout(o),o=setTimeout(u,t),a&&r.apply(c,i)}},i.flatArray=r=>r.reduce(((r,t)=>r.concat(Array.isArray(t)?i.flatArray(t):t)),[]),i.reverseNodeList=r=>{let t=[];for(let n=r.length-1;n>=0;n--)t.push(r[n]);return t},i.findEventPathWithKey=(r,t,n)=>{n=Array.isArray(n)?n:[n];let e=r.composedPath()||r.path;if(e)return void 0!==e.filter((r=>n.includes(r[t])))[0]},i.findEventPathHasAttribute=(r,t)=>{let n=r.composedPath()||r.path;if(n)return o((()=>!!n.find((r=>r.hasAttribute(t)))),!1)},i.findEventTarget=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.target||r.srcElement;if(n)return t.includes(n)},i.findEventPathWithNodeName=(r,t)=>{let n=r.composedPath()||r.path;if(n)return n.filter((r=>r.nodeName===t))[0]},i.findEventPath=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r)))[0]},i.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,i.convertIdsToNestedData=(r,t)=>{let n=[],e=[];return t.forEach((t=>{r&&r.indexOf(t.id.toString())>-1?n.push(t):t.items&&(e=i.convertIdsToNestedData(r,t.items),e.length>0&&(t.items=e,n.push(t)))})),n},i.nodeListToArray=r=>Array.prototype.slice.call(r),i.setAttributes=(r,t)=>{Object.keys(t).forEach((n=>{r.setAttribute(n,t[n])}))},i.computedStyle=(r,t)=>window.getComputedStyle(r,null).getPropertyValue(t),i.getAncestor=(r,t)=>{for(;(r=r.parentElement)&&!r.matches(t););return r},i.findParentElement=(r,t)=>{const n=t.charAt(0);if("*"===t)return r.parentElement;if("."===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.classList.contains(t))return r;r=r.parentElement}return null}(r.parentElement,n)}if("#"===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.id===t)return r;r=r.parentElement}return null}(r.parentElement,n)}if("["===n){const n=t.indexOf("]"),e=t.slice(1,n),o=t.slice(n+2,-1);return function(r,t,n){for(;null!==r;){if(r.hasAttribute(t)&&(void 0===n||r.getAttribute(t)===n))return r;r=r.parentElement}return null}(r.parentElement,e,o)}{const n=t.toLowerCase();return function(r,t){for(;null!==r;){if(r.tagName.toLowerCase()===t.toLowerCase())return r;r=r.parentElement}return null}(r.parentElement,n)}};export{i as G,n as S,e as T,o as s}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,h as i,H as o,g as r}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as s}from"./p-fe7e383d.js";import"./p-bcd599fd.js";import"./p-94554e42.js";import"./p-18665a1b.js";import"./p-5ae0a59b.js";import{B as n}from"./p-6369b73b.js";import{c as a}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9f6bbc21.js";const c=class{constructor(i){t(this,i),this.bcmBeforeOpen=e(this,"bcm-before-open",7),this.bcmBeforeClose=e(this,"bcm-before-close",7),this._id=s.UID(),this._title=void 0,this.position=n.Position.right,this.fullWidth=!1,this._open=!1,this._close=!1}async show(){this.bcmBeforeOpen.emit(!0)}async hide(){this.bcmBeforeClose.emit(!0),this._close=!0}_beforeOpen(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!0)}_beforeClose(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!1)}_openHandler(){this._open?document.body.classList.add("bcm-disable-scroll"):document.body.classList.remove("bcm-disable-scroll")}keyboardNavigation(t){(t.keyCode||0)==n.KeyCode.escape&&(t.preventDefault(),this.hide())}disconnectedCallback(){this._open=!1,document.body.classList.remove("bcm-disable-scroll"),this.el.remove()}render(){const t=a("bcm-drawer",{"bcm-drawer--open":this._open}),e=a("bcm-drawer__content",`bcm-drawer__content--position-${this.position}`,{"bcm-drawer__content--open":this._open,"bcm-drawer__content--close":this._close,"full-width":this.fullWidth}),r=a("bcm-drawer__overlay",{"bcm-drawer__overlay--open":this._open,"bcm-drawer__overlay--close":this._close});return i(o,{class:t},i("div",{class:r,onClick:()=>this.hide()}),i("div",{class:e},i("div",{class:"bcm-drawer__content-header"},i("bcm-text",{class:"bcm-drawer__content-header-title","font-size":"6",weight:"600",color:"slate-800"},this._title," ",i("slot",{name:"header"})),i("div",{class:"bcm-drawer__content-header-close size-4",onClick:()=>this.hide()},i("bcm-icon",{icon:"fal fa-times"}))),i("div",{style:{overflow:"auto",flex:"1"}},i("div",{class:"bcm-drawer__content-body"},i("slot",null))),i("div",{class:"bcm-drawer__content-footer"},i("slot",{name:"footer"}))))}get el(){return r(this)}static get watchers(){return{_open:["_openHandler"]}}};c.style='@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-drawer{user-select:none;position:absolute;width:100vw;height:100vh;top:-100%;left:-100%;overflow:hidden;visibility:hidden}.bcm-drawer--open{visibility:visible;top:0;left:0}.bcm-drawer__content{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;user-select:text;position:fixed;width:100%;height:100%;background-color:#f1f5f9;z-index:10350;transition:transform 0.2s ease-in-out;transform:translateX(-100%);visibility:hidden;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.bcm-drawer__content-body{padding:0 24px 24px 24px}.bcm-drawer__content.full-width{max-width:100%}.bcm-drawer__content-header{padding:24px 24px 0 24px;display:flex;justify-content:space-between;align-items:flex-start;color:var(--bcm-color-grey-8);margin-bottom:8px}.bcm-drawer__content-header-close{padding:4px 8px;margin-right:-4px;margin-top:-4px;color:var(--bcm-color-grey-7)}.bcm-drawer__content-header-close:hover{cursor:pointer;color:var(--bcm-color-grey-8)}.bcm-drawer__content-footer{padding:12px 24px}.bcm-drawer__content--position-left,.bcm-drawer__content--position-right{max-width:500px}.bcm-drawer__content--position-left.full-width,.bcm-drawer__content--position-right.full-width{max-width:100%}.bcm-drawer__content--position-top,.bcm-drawer__content--position-bottom{max-height:500px}.bcm-drawer__content--position-top.full-width,.bcm-drawer__content--position-bottom.full-width{max-height:100%}.bcm-drawer__content--position-left{transform:translateX(-100%);top:0;left:0}.bcm-drawer__content--position-top{transform:translateY(-100%);top:0;left:0}.bcm-drawer__content--position-right{transform:translateX(100%);top:0;right:0}.bcm-drawer__content--position-bottom{transform:translateY(100%);bottom:0;left:0}.bcm-drawer__content--open{transform:translateX(0);visibility:visible}.bcm-drawer__content--close{visibility:visible}.bcm-drawer__overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:10349;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out}.bcm-drawer__overlay--close{opacity:0;visibility:visible;transform:translateX(-100%)}.bcm-drawer__overlay--open{opacity:1;visibility:visible;transform:translateX(0)}';export{c as bcm_drawer}
5
+ import{r as t,c as e,h as i,H as o,g as r}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as s}from"./p-ce103c35.js";import"./p-10e5c340.js";import"./p-6b5ed4d8.js";import"./p-9d345104.js";import"./p-5ae0a59b.js";import{B as n}from"./p-a313fba6.js";import{c as a}from"./p-bed627ab.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-c5c611d7.js";const c=class{constructor(i){t(this,i),this.bcmBeforeOpen=e(this,"bcm-before-open",7),this.bcmBeforeClose=e(this,"bcm-before-close",7),this._id=s.UID(),this._title=void 0,this.position=n.Position.right,this.fullWidth=!1,this._open=!1,this._close=!1}async show(){this.bcmBeforeOpen.emit(!0)}async hide(){this.bcmBeforeClose.emit(!0),this._close=!0}_beforeOpen(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!0)}_beforeClose(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!1)}_openHandler(){this._open?document.body.classList.add("bcm-disable-scroll"):document.body.classList.remove("bcm-disable-scroll")}keyboardNavigation(t){(t.keyCode||0)==n.KeyCode.escape&&(t.preventDefault(),this.hide())}disconnectedCallback(){this._open=!1,document.body.classList.remove("bcm-disable-scroll"),this.el.remove()}render(){const t=a("bcm-drawer",{"bcm-drawer--open":this._open}),e=a("bcm-drawer__content",`bcm-drawer__content--position-${this.position}`,{"bcm-drawer__content--open":this._open,"bcm-drawer__content--close":this._close,"full-width":this.fullWidth}),r=a("bcm-drawer__overlay",{"bcm-drawer__overlay--open":this._open,"bcm-drawer__overlay--close":this._close});return i(o,{class:t},i("div",{class:r,onClick:()=>this.hide()}),i("div",{class:e},i("div",{class:"bcm-drawer__content-header"},i("bcm-text",{class:"bcm-drawer__content-header-title","font-size":"6",weight:"600",color:"slate-800"},this._title," ",i("slot",{name:"header"})),i("div",{class:"bcm-drawer__content-header-close size-4",onClick:()=>this.hide()},i("bcm-icon",{icon:"fal fa-times"}))),i("div",{style:{overflow:"auto",flex:"1"}},i("div",{class:"bcm-drawer__content-body"},i("slot",null))),i("div",{class:"bcm-drawer__content-footer"},i("slot",{name:"footer"}))))}get el(){return r(this)}static get watchers(){return{_open:["_openHandler"]}}};c.style='@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-drawer{user-select:none;position:absolute;width:100vw;height:100vh;top:-100%;left:-100%;overflow:hidden;visibility:hidden}.bcm-drawer--open{visibility:visible;top:0;left:0}.bcm-drawer__content{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;user-select:text;position:fixed;width:100%;height:100%;background-color:#f1f5f9;z-index:10350;transition:transform 0.2s ease-in-out;transform:translateX(-100%);visibility:hidden;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.bcm-drawer__content-body{padding:0 24px 24px 24px}.bcm-drawer__content.full-width{max-width:100%}.bcm-drawer__content-header{padding:24px 24px 0 24px;display:flex;justify-content:space-between;align-items:flex-start;color:var(--bcm-color-grey-8);margin-bottom:8px}.bcm-drawer__content-header-close{padding:4px 8px;margin-right:-4px;margin-top:-4px;color:var(--bcm-color-grey-7)}.bcm-drawer__content-header-close:hover{cursor:pointer;color:var(--bcm-color-grey-8)}.bcm-drawer__content-footer{padding:12px 24px}.bcm-drawer__content--position-left,.bcm-drawer__content--position-right{max-width:500px}.bcm-drawer__content--position-left.full-width,.bcm-drawer__content--position-right.full-width{max-width:100%}.bcm-drawer__content--position-top,.bcm-drawer__content--position-bottom{max-height:500px}.bcm-drawer__content--position-top.full-width,.bcm-drawer__content--position-bottom.full-width{max-height:100%}.bcm-drawer__content--position-left{transform:translateX(-100%);top:0;left:0}.bcm-drawer__content--position-top{transform:translateY(-100%);top:0;left:0}.bcm-drawer__content--position-right{transform:translateX(100%);top:0;right:0}.bcm-drawer__content--position-bottom{transform:translateY(100%);bottom:0;left:0}.bcm-drawer__content--open{transform:translateX(0);visibility:visible}.bcm-drawer__content--close{visibility:visible}.bcm-drawer__overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:10349;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out}.bcm-drawer__overlay--close{opacity:0;visibility:visible;transform:translateX(-100%)}.bcm-drawer__overlay--open{opacity:1;visibility:visible;transform:translateX(0)}';export{c as bcm_drawer}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as t,H as a,g as i}from"./p-e037ee2b.js";import{G as n}from"./p-fe7e383d.js";import"./p-9f6bbc21.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const r=class{constructor(t){e(this,t),this._id=n.UID(),this.data=[]}render(){const{data:e}=this,i="bcm-attendance";return t(a,{class:i},t("span",{hidden:!0},t("slot",null)),e.map((e=>{var a,n;return t("div",{class:`${i}__item`},t("bcm-tooltip",{trigger:"hover",message:`${e.weekday||null} / AM`},t("span",{class:`${i}__item-am ${i}__item-status-${null!==(a=e.am)&&void 0!==a?a:"default"}`})),t("bcm-tooltip",{trigger:"hover",message:`${e.weekday||null} / PM`},t("span",{class:`${i}__item-pm ${i}__item-status-${null!==(n=e.pm)&&void 0!==n?n:"default"}`})))})))}get el(){return i(this)}};r.style='@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)}';export{r as bcm_attendance}
5
+ import{r as e,h as t,H as a,g as i}from"./p-e037ee2b.js";import{G as n}from"./p-ce103c35.js";import"./p-c5c611d7.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const r=class{constructor(t){e(this,t),this._id=n.UID(),this.data=[]}render(){const{data:e}=this,i="bcm-attendance";return t(a,{class:i},t("span",{hidden:!0},t("slot",null)),e.map((e=>{var a,n;return t("div",{class:`${i}__item`},t("bcm-tooltip",{trigger:"hover",message:`${e.weekday||null} / AM`},t("span",{class:`${i}__item-am ${i}__item-status-${null!==(a=e.am)&&void 0!==a?a:"default"}`})),t("bcm-tooltip",{trigger:"hover",message:`${e.weekday||null} / PM`},t("span",{class:`${i}__item-pm ${i}__item-status-${null!==(n=e.pm)&&void 0!==n?n:"default"}`})))})))}get el(){return i(this)}};r.style='@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)}';export{r as bcm_attendance}