bromcom-ui 2.9.0-rc.11 → 2.9.0-rc.12

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 (255) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-5dc1d0fc.entry.js → p-02fc6c76.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-08c75801.js +5 -0
  5. package/dist/bromcom-ui/{p-56317397.entry.js → p-0bc35a82.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-c8a64f05.entry.js → p-0d0fc47b.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-1701ff2a.entry.js → p-13070661.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-9519a9e4.entry.js → p-1ad5b7dd.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-068d918e.entry.js → p-1fc491fc.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-203c8e37.entry.js +5 -0
  11. package/dist/bromcom-ui/{p-37084b52.entry.js → p-20422d81.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-bdec3fa0.entry.js → p-23a805b2.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-9bf657da.entry.js → p-26da70f2.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-cbb2de64.entry.js → p-29722bff.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-d2670b77.entry.js → p-3a83e2ed.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-104a32ce.entry.js → p-3c2db0c1.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-45ca98b5.entry.js → p-3d983699.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-0ce0079c.entry.js → p-416f6233.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-e1689f47.js → p-43a16ce4.js} +1 -1
  20. package/dist/bromcom-ui/{p-49bb8e10.js → p-44407faa.js} +1 -1
  21. package/dist/bromcom-ui/{p-b4caa7af.entry.js → p-4772e438.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-49f37d54.js +5 -0
  23. package/dist/bromcom-ui/{p-eaaf03db.js → p-509cfa99.js} +1 -1
  24. package/dist/bromcom-ui/{p-0a7f3cd6.entry.js → p-55931686.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-f0061666.entry.js → p-5c27d09b.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-82671aa3.entry.js → p-5f11b62c.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-2ba8bfb9.js → p-64096fe2.js} +1 -1
  28. package/dist/bromcom-ui/{p-ce3b1f49.entry.js → p-6abc4fdf.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-76595c93.js → p-6b60a4d3.js} +1 -1
  30. package/dist/bromcom-ui/{p-78f57233.entry.js → p-6c878da5.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-2d4a0a66.entry.js → p-6e592196.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-74798533.entry.js → p-70994ba0.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-62eb13d4.entry.js → p-78e70a44.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-8403e81f.entry.js → p-7e10f626.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-4c21b17f.js → p-8507df31.js} +1 -1
  36. package/dist/bromcom-ui/p-8abe303b.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-cff8ef93.js → p-91246af3.js} +1 -1
  38. package/dist/bromcom-ui/{p-4707aa4d.entry.js → p-94a9bd14.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-0ff006e8.entry.js → p-965703ec.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-d896a91f.entry.js → p-98afbb62.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-0b0ff7ee.entry.js → p-9a21398e.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-8b6dbd63.entry.js → p-9d911ba3.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-cea71a01.entry.js → p-a2ab6adb.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-6cff5185.entry.js → p-a31e475a.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-a799b910.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-19c7cea5.entry.js → p-a7a5da82.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-a81644d6.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-5101acb3.js → p-a89cff9b.js} +1 -1
  49. package/dist/bromcom-ui/p-ab53fd56.entry.js +5 -0
  50. package/dist/bromcom-ui/{p-cb522ae0.js → p-ab7bd6e1.js} +1 -1
  51. package/dist/bromcom-ui/{p-6e577849.entry.js → p-ac385400.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-8eb5ed81.entry.js → p-aedc59f3.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-5fbb57f6.entry.js → p-b9cfa2c6.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-0976ff0f.entry.js → p-bcef2201.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-324bf5e5.entry.js → p-c0a62a71.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-12304c2d.entry.js → p-c9212343.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-3db7cc9b.entry.js → p-cb3bc0f4.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-d3d07c8c.js +5 -0
  59. package/dist/bromcom-ui/{p-bdf80844.entry.js → p-d57f3587.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-63337aa3.entry.js → p-d61af652.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-2c21b28a.entry.js → p-e6f888b3.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-f8a91bd5.js → p-e7cbc79a.js} +1 -1
  63. package/dist/bromcom-ui/{p-941b7517.entry.js → p-eb279a80.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-1b96dbbf.entry.js → p-ebe49b26.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-a4e3b170.entry.js → p-eefcd035.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-3bd27fdd.js → p-f394a316.js} +1 -1
  67. package/dist/bromcom-ui/{p-e59b1f37.entry.js → p-f4634124.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-c8d647c1.entry.js → p-f533a1b5.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-fa9e6264.entry.js +5 -0
  70. package/dist/bromcom-ui/p-faad6962.entry.js +5 -0
  71. package/dist/bromcom-ui/{p-94f43ce3.entry.js → p-fb36ab9c.entry.js} +1 -1
  72. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  73. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  74. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-avatar_2.cjs.entry.js +17 -2580
  76. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
  78. package/dist/cjs/{bcm-button_8.cjs.entry.js → bcm-button_9.cjs.entry.js} +338 -137
  79. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  80. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +5 -5
  81. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
  83. package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
  84. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-color-input.cjs.entry.js +5 -5
  87. package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
  88. package/dist/cjs/bcm-date.cjs.entry.js +7 -7
  89. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +10 -8
  90. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  91. package/dist/cjs/bcm-drawer.cjs.entry.js +5 -5
  92. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
  94. package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-form.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  97. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-items.cjs.entry.js +3 -3
  99. package/dist/cjs/bcm-list_3.cjs.entry.js +11 -11
  100. package/dist/cjs/bcm-menu.cjs.entry.js +6 -6
  101. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  102. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  103. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  104. package/dist/cjs/bcm-modal.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
  106. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  108. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-radio-group.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
  111. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
  114. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  115. package/dist/cjs/bcm-stepper.cjs.entry.js +6 -6
  116. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  117. package/dist/cjs/bcm-tab-group.cjs.entry.js +5 -5
  118. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +5 -5
  119. package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
  120. package/dist/cjs/bcm-table.cjs.entry.js +5 -5
  121. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  122. package/dist/cjs/bcm-text.cjs.entry.js +2 -2
  123. package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
  124. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  125. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  126. package/dist/cjs/{generate-84a14c1a.js → generate-4911eaae.js} +1 -1
  127. package/dist/cjs/{global-5e41fa4e.js → global-efef2bd1.js} +1 -1
  128. package/dist/cjs/index-5279dea2.js +2571 -0
  129. package/dist/cjs/{input-template-b5038151.js → input-template-11d547bd.js} +1 -1
  130. package/dist/cjs/{json-parse-decarator-c18e611d.js → json-parse-decarator-fdcd20df.js} +1 -1
  131. package/dist/cjs/{label-template-8d34230f.js → label-template-15c3c0ed.js} +1 -1
  132. package/dist/cjs/loader.cjs.js +3 -3
  133. package/dist/cjs/{number-helper-59448c42.js → number-helper-72d5f146.js} +1 -1
  134. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
  135. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  136. package/dist/cjs/{package-fe10d578.js → package-70273fae.js} +1 -1
  137. package/dist/cjs/{popover-placement-86ece590.js → popover-placement-8866eab1.js} +1 -1
  138. package/dist/cjs/{slot-template-758beb71.js → slot-template-de6a91b1.js} +1 -1
  139. package/dist/cjs/{stepper-states-deb53239.js → stepper-states-56e660a4.js} +1 -1
  140. package/dist/cjs/{string-helper-b89a9828.js → string-helper-9b392049.js} +2 -2
  141. package/dist/cjs/{tooltip-helper-5b2ee66d.js → tooltip-helper-3b8b977f.js} +4 -4
  142. package/dist/cjs/{validators-d89fdce5.js → validators-c43fa1d0.js} +1 -1
  143. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +9 -2
  144. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +200 -149
  145. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
  146. package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
  147. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  148. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
  149. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
  150. package/dist/collection/components/organism/list/list.css +1 -1
  151. package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
  152. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  153. package/dist/collection/helper/string-helper.js +2 -2
  154. package/dist/components/avatar.js +2 -1
  155. package/dist/components/badge.js +2 -2565
  156. package/dist/components/bcm-date-picker.js +4 -2
  157. package/dist/components/bcm-input-dropdown.js +214 -149
  158. package/dist/components/bcm-textarea.js +1 -214
  159. package/dist/components/bcm-time-picker.js +4 -2
  160. package/dist/components/datetime-picker.js +5 -2
  161. package/dist/components/generate.js +1 -1
  162. package/dist/components/index.d.ts +1 -1
  163. package/dist/components/index5.js +2569 -0
  164. package/dist/components/list.js +1 -1
  165. package/dist/components/string-helper.js +2 -2
  166. package/dist/{esm/bcm-textarea.entry.js → components/textarea.js} +80 -19
  167. package/dist/esm/bcm-accordion.entry.js +2 -2
  168. package/dist/esm/bcm-alert.entry.js +3 -3
  169. package/dist/esm/bcm-attendance.entry.js +2 -2
  170. package/dist/esm/bcm-avatar_2.entry.js +6 -2569
  171. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  172. package/dist/esm/bcm-button-group.entry.js +3 -3
  173. package/dist/esm/{bcm-button_8.entry.js → bcm-button_9.entry.js} +339 -139
  174. package/dist/esm/bcm-card.entry.js +4 -4
  175. package/dist/esm/bcm-checkbox-group.entry.js +5 -5
  176. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  177. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  178. package/dist/esm/bcm-chip-group.entry.js +7 -7
  179. package/dist/esm/bcm-chip.entry.js +2 -2
  180. package/dist/esm/bcm-collapse.entry.js +2 -2
  181. package/dist/esm/bcm-color-input.entry.js +5 -5
  182. package/dist/esm/bcm-date-picker.entry.js +5 -4
  183. package/dist/esm/bcm-date.entry.js +7 -7
  184. package/dist/esm/bcm-datetime-picker.entry.js +10 -8
  185. package/dist/esm/bcm-default.entry.js +2 -2
  186. package/dist/esm/bcm-drawer.entry.js +5 -5
  187. package/dist/esm/bcm-dropdown.entry.js +3 -3
  188. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  189. package/dist/esm/bcm-form-2.entry.js +3 -3
  190. package/dist/esm/bcm-form.entry.js +1 -1
  191. package/dist/esm/bcm-input-custom.entry.js +2 -2
  192. package/dist/esm/bcm-item.entry.js +2 -2
  193. package/dist/esm/bcm-items.entry.js +3 -3
  194. package/dist/esm/bcm-list_3.entry.js +11 -11
  195. package/dist/esm/bcm-menu.entry.js +6 -6
  196. package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
  197. package/dist/esm/bcm-modal-2-header.entry.js +5 -5
  198. package/dist/esm/bcm-modal-2.entry.js +5 -5
  199. package/dist/esm/bcm-modal.entry.js +4 -4
  200. package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
  201. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  202. package/dist/esm/bcm-popover.entry.js +5 -5
  203. package/dist/esm/bcm-progress.entry.js +2 -2
  204. package/dist/esm/bcm-radio-group.entry.js +5 -5
  205. package/dist/esm/bcm-radio.entry.js +5 -5
  206. package/dist/esm/bcm-range.entry.js +2 -2
  207. package/dist/esm/bcm-select.entry.js +1 -1
  208. package/dist/esm/bcm-skeleton.entry.js +2 -2
  209. package/dist/esm/bcm-step.entry.js +3 -3
  210. package/dist/esm/bcm-stepper.entry.js +6 -6
  211. package/dist/esm/bcm-switch.entry.js +2 -2
  212. package/dist/esm/bcm-tab-group.entry.js +5 -5
  213. package/dist/esm/bcm-tab-item-header.entry.js +5 -5
  214. package/dist/esm/bcm-tab-item.entry.js +5 -5
  215. package/dist/esm/bcm-table.entry.js +5 -5
  216. package/dist/esm/bcm-tag.entry.js +3 -3
  217. package/dist/esm/bcm-text.entry.js +2 -2
  218. package/dist/esm/bcm-time-picker.entry.js +5 -4
  219. package/dist/esm/bcm-toast.entry.js +3 -3
  220. package/dist/esm/bromcom-ui.js +3 -3
  221. package/dist/esm/{generate-77bbe272.js → generate-c890c880.js} +1 -1
  222. package/dist/esm/{global-1b5f8bb5.js → global-80f07324.js} +1 -1
  223. package/dist/esm/index-3bc8c6e3.js +2569 -0
  224. package/dist/esm/{input-template-bf10f00a.js → input-template-7f96e7e6.js} +1 -1
  225. package/dist/esm/{json-parse-decarator-7a13e271.js → json-parse-decarator-2c6f525f.js} +1 -1
  226. package/dist/esm/{label-template-f156f33f.js → label-template-62e49c38.js} +1 -1
  227. package/dist/esm/loader.js +3 -3
  228. package/dist/esm/{number-helper-787aa192.js → number-helper-1ae23de5.js} +1 -1
  229. package/dist/esm/old-bcm-popover-box.entry.js +5 -5
  230. package/dist/esm/old-bcm-popover.entry.js +2 -2
  231. package/dist/esm/{package-42b4a30f.js → package-22f4a05f.js} +1 -1
  232. package/dist/esm/{popover-placement-018109c4.js → popover-placement-7cce412f.js} +1 -1
  233. package/dist/esm/{slot-template-46035685.js → slot-template-7447145d.js} +1 -1
  234. package/dist/esm/{stepper-states-9f10dd4d.js → stepper-states-46d8bf00.js} +1 -1
  235. package/dist/esm/{string-helper-4a28f775.js → string-helper-5ef67a66.js} +2 -2
  236. package/dist/esm/{tooltip-helper-a6101f5d.js → tooltip-helper-a72d4674.js} +4 -4
  237. package/dist/esm/{validators-0ba6d217.js → validators-0601fa22.js} +1 -1
  238. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +25 -17
  239. package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
  240. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  241. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  242. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  243. package/dist/types/components.d.ts +19 -7
  244. package/package.json +1 -1
  245. package/dist/bromcom-ui/p-042efd5e.entry.js +0 -5
  246. package/dist/bromcom-ui/p-132d4301.entry.js +0 -5
  247. package/dist/bromcom-ui/p-2608b100.entry.js +0 -5
  248. package/dist/bromcom-ui/p-2a9053d8.js +0 -5
  249. package/dist/bromcom-ui/p-4ae97c02.entry.js +0 -5
  250. package/dist/bromcom-ui/p-5600c817.js +0 -5
  251. package/dist/bromcom-ui/p-57a08b2c.entry.js +0 -5
  252. package/dist/bromcom-ui/p-7014cade.entry.js +0 -5
  253. package/dist/bromcom-ui/p-bebbec89.entry.js +0 -5
  254. package/dist/bromcom-ui/p-edfa7c7b.entry.js +0 -5
  255. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
@@ -2,30 +2,31 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import { h as h$1, r as registerInstance, c as createEvent, H as Host, g as getElement, a as getAssetPath } from './index-0615c2b8.js';
6
- import { s as snq, G as Generate } from './generate-77bbe272.js';
5
+ import { h as h$1, r as registerInstance, c as createEvent, H as Host, g as getElement, a as getAssetPath, f as forceUpdate, F as Fragment } from './index-0615c2b8.js';
6
+ import { s as snq, G as Generate } from './generate-c890c880.js';
7
7
  import { B as Bcm, a as Bcm$1 } from './bcm-ac17222c.js';
8
8
  import { c as classnames } from './index-b84bc8c9.js';
9
9
  import { c as createStore } from './index-7e71bbc8.js';
10
- import { S as SlotTemplate } from './slot-template-46035685.js';
10
+ import { S as SlotTemplate } from './slot-template-7447145d.js';
11
11
  import { C as ColorHelper } from './color-helper-c4fa9ebc.js';
12
12
  import { r as react, a as reactDom } from './index-a6d9d0af.js';
13
13
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-be0d4ec8.js';
14
- import { N as NumberHelper } from './number-helper-787aa192.js';
15
- import { S as StringHelper } from './string-helper-4a28f775.js';
16
- import { V as Validators } from './validators-0ba6d217.js';
14
+ import { N as NumberHelper } from './number-helper-1ae23de5.js';
15
+ import { S as StringHelper } from './string-helper-5ef67a66.js';
16
+ import { V as Validators } from './validators-0601fa22.js';
17
17
  import { C as CaptionTemplate } from './caption-template-e973a48c.js';
18
- import { I as InputTemplate } from './input-template-bf10f00a.js';
19
- import { d as delay, p as pluralize } from './utils-b3338faf.js';
18
+ import { I as InputTemplate } from './input-template-7f96e7e6.js';
19
+ import { d as delay } from './utils-b3338faf.js';
20
20
  import { I as IsLoad } from './is-load-decorator-6784aa87.js';
21
21
  import './datetime-helper-df25808a.js';
22
22
  import './element-dragger-7ea06c76.js';
23
23
  import './types-6f06fa1a.js';
24
24
  import './types-9493a7ed.js';
25
- import { L as LabelTemplate } from './label-template-f156f33f.js';
25
+ import { c as ce } from './index-3bc8c6e3.js';
26
+ import { L as LabelTemplate } from './label-template-62e49c38.js';
26
27
  import { F as FloatingUI } from './floating-ui-54c52eaa.js';
27
- import { T as Tooltip } from './tooltip-helper-a6101f5d.js';
28
- import './package-42b4a30f.js';
28
+ import { T as Tooltip } from './tooltip-helper-a72d4674.js';
29
+ import './package-22f4a05f.js';
29
30
  import './colors-e1c31f79.js';
30
31
  import './colors-1d7854ea.js';
31
32
 
@@ -17622,7 +17623,7 @@ BcmIcon.style = iconCss;
17622
17623
 
17623
17624
  const inputCss = "@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\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @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-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
17624
17625
 
17625
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17626
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17626
17627
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17627
17628
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17628
17629
  r = Reflect.decorate(decorators, target, key, desc);
@@ -17961,14 +17962,83 @@ const BcmInput = class {
17961
17962
  "value": ["watchValue"]
17962
17963
  }; }
17963
17964
  };
17964
- __decorate([
17965
+ __decorate$1([
17965
17966
  IsLoad()
17966
17967
  ], BcmInput.prototype, "inputElement", void 0);
17967
17968
  BcmInput.style = inputCss;
17968
17969
 
17969
- const inputDropdownCss = "@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\"); @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-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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}.bcm-input-dropdown .dropdown-input-button i{transition:transform 0.2s ease-in-out}.bcm-input-dropdown .dropdown-input-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}";
17970
+ const inputDropdownStyle = ce({
17971
+ slots: {
17972
+ base: "tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",
17973
+ content: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",
17974
+ 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",
17975
+ 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",
17976
+ button: [
17977
+ "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",
17978
+ "tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600",
17979
+ "hover:tw-border-slate-400 hover:tw-bg-slate-200",
17980
+ "tw-min-w-[32px]",
17981
+ "tw-cursor-pointer",
17982
+ "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none",
17983
+ "readonly:tw-text-slate-700 readonly:tw-cursor-text",
17984
+ ],
17985
+ 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",
17986
+ 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",
17987
+ 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",
17988
+ 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",
17989
+ commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2",
17990
+ },
17991
+ variants: {
17992
+ size: {
17993
+ small: {
17994
+ button: "tw-h-[18px] tw-text-1 tw-leading-none",
17995
+ },
17996
+ medium: {
17997
+ button: "tw-h-[24px] tw-text-2",
17998
+ inputArea: "tw-p-0.5",
17999
+ input: "tw-text-4",
18000
+ },
18001
+ large: {
18002
+ button: "tw-h-[30px] tw-text-2",
18003
+ inputArea: "tw-p-1",
18004
+ input: "tw-text-6",
18005
+ },
18006
+ },
18007
+ invalid: {
18008
+ true: {
18009
+ inputArea: "tw-border-red-600 tw-bg-red-50",
18010
+ input: "tw-text-red-500",
18011
+ },
18012
+ },
18013
+ disabled: {
18014
+ true: {
18015
+ base: "tw-opacity-50 tw-cursor-not-allowed",
18016
+ input: "tw-cursor-not-allowed",
18017
+ },
18018
+ },
18019
+ hideComment: {
18020
+ true: {
18021
+ base: "tw-min-w-[98px]",
18022
+ },
18023
+ false: {
18024
+ base: "tw-min-w-[128px] ",
18025
+ },
18026
+ },
18027
+ label: {
18028
+ true: "",
18029
+ },
18030
+ },
18031
+ defaultVariants: {
18032
+ size: "medium",
18033
+ invalid: false,
18034
+ hideComment: false,
18035
+ disabled: false,
18036
+ },
18037
+ });
17970
18038
 
17971
- const InputDropdown = class {
18039
+ const inputDropdownCss = "@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\"); @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-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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}";
18040
+
18041
+ const BcmInputDropdown = class {
17972
18042
  constructor(hostRef) {
17973
18043
  registerInstance(this, hostRef);
17974
18044
  this.change = createEvent(this, "bcm-change", 7);
@@ -17980,31 +18050,25 @@ const InputDropdown = class {
17980
18050
  return;
17981
18051
  }
17982
18052
  };
17983
- this.onClickSave = () => {
17984
- const lateMin = +this.lateMinutes;
17985
- if (lateMin > 0) {
17986
- this.value = Object.assign(Object.assign({}, this.value), { late: lateMin });
17987
- this.onChangeDropdown.emit(this.value);
17988
- this.onCloseLateContent();
17989
- }
17990
- };
17991
18053
  this._id = Generate.UID();
17992
18054
  this.value = undefined;
17993
- this.defaultValue = undefined;
17994
- this.lateKey = "L";
18055
+ this.defaultValue = {};
18056
+ this.lateKeys = "L";
17995
18057
  this.maxCharacterLimit = 1;
17996
18058
  this.size = Bcm$1.Size.medium;
17997
18059
  this.label = undefined;
17998
18060
  this.placeholder = undefined;
18061
+ this.name = undefined;
17999
18062
  this.fullWidth = false;
18063
+ this.hideComment = false;
18064
+ this.hideCaption = true;
18000
18065
  this.disabled = false;
18001
18066
  this.required = false;
18002
18067
  this.readonly = false;
18003
- this.componentIsActive = false;
18004
18068
  this.data = [
18005
18069
  { key: "/", value: "Present", color: "#00b050" },
18006
18070
  { key: "B", value: "Educated off site (NOT dual registration)", color: "#ffc000" },
18007
- { key: "C", value: "Other authorised circumstance", color: "#ff0000" },
18071
+ { key: "C", value: "Other authorised circumstance", color: "#ffc000" },
18008
18072
  { key: "D", value: "Dual registration", color: "#0070c0" },
18009
18073
  { key: "E", value: "Excluded", color: "#ff0000" },
18010
18074
  { key: "F", value: "Free Study", color: "#ffc000" },
@@ -18017,36 +18081,67 @@ const InputDropdown = class {
18017
18081
  this.captionType = Bcm$1.Status.default;
18018
18082
  this.captionError = undefined;
18019
18083
  this.customErrorMessage = undefined;
18020
- this.invalid = false;
18021
18084
  this.captionCache = undefined;
18022
18085
  this.captionTypeCache = undefined;
18023
- this.activeSaveButton = true;
18024
- this.lateMinutes = 0;
18025
- }
18026
- get content() {
18027
- return document.getElementById(this._id + "-input-dropdown-main-content");
18086
+ this.isOpenMenu = false;
18087
+ this.invalid = false;
18028
18088
  }
18029
- get lateContent() {
18030
- return document.getElementById(this._id + "-input-dropdown-late-content");
18089
+ get overlayContainer() {
18090
+ return document.getElementById("bcm-overlay-container");
18031
18091
  }
18032
- get isLate() {
18033
- return () => { var _a; return StringHelper.lowercase((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == StringHelper.lowercase(this.lateKey); };
18092
+ get menuContent() {
18093
+ var _a, _b;
18094
+ return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-menu-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-menu-${this._id}`);
18034
18095
  }
18035
- onCloseMainContent() {
18036
- this.content && this.content.hide();
18096
+ get keys() {
18097
+ return this.lateKeys.toLocaleLowerCase().split(",");
18037
18098
  }
18038
- onCloseLateContent() {
18039
- this.lateContent && this.lateContent.hide();
18099
+ get isLate() {
18100
+ var _a, _b, _c, _d, _e, _f;
18101
+ return (this.keys.includes((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) ||
18102
+ ((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _d === void 0 ? void 0 : _d.isLate) ||
18103
+ ((_f = (_e = this.data) === null || _e === void 0 ? void 0 : _e.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _f === void 0 ? void 0 : _f.lateMin) > 0);
18040
18104
  }
18041
- connectedCallback() {
18105
+ componentWillLoad() {
18106
+ var _a, _b;
18042
18107
  this.captionCache = this.caption;
18043
18108
  this.captionTypeCache = this.captionType;
18109
+ if (((_a = Object.keys(this.defaultValue)) === null || _a === void 0 ? void 0 : _a.length) > 0) {
18110
+ this.watchDefaultValueHandler(this.defaultValue);
18111
+ }
18112
+ else {
18113
+ this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item.selected);
18114
+ }
18044
18115
  }
18045
- componentWillLoad() {
18046
- if (this.defaultValue) {
18047
- this.value = {
18048
- key: this.defaultValue,
18049
- };
18116
+ get commentContent() {
18117
+ var _a, _b;
18118
+ return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-comment-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-comment-${this._id}`);
18119
+ }
18120
+ clickListener(e) {
18121
+ var _a, _b;
18122
+ const isSelf = Generate.findEventPath(e, this.el);
18123
+ const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
18124
+ if (!isSelf && !isLinked && !this.keys.includes((_a = this.value) === null || _a === void 0 ? void 0 : _a.key)) {
18125
+ (_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.hide();
18126
+ return;
18127
+ }
18128
+ }
18129
+ watchDefaultValueHandler(newValue) {
18130
+ var _a, _b;
18131
+ if (newValue) {
18132
+ this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => { var _a, _b; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = newValue.key) === null || _b === void 0 ? void 0 : _b.toLowerCase()); });
18133
+ this.data = this.data.map(data => {
18134
+ if (data.key === (newValue === null || newValue === void 0 ? void 0 : newValue.key)) {
18135
+ data = newValue;
18136
+ data.selected = true;
18137
+ }
18138
+ else {
18139
+ data.selected = false;
18140
+ }
18141
+ return data;
18142
+ });
18143
+ this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item === null || item === void 0 ? void 0 : item.selected);
18144
+ forceUpdate(this.el);
18050
18145
  }
18051
18146
  }
18052
18147
  async set(data) {
@@ -18056,7 +18151,7 @@ const InputDropdown = class {
18056
18151
  return this.value;
18057
18152
  }
18058
18153
  async setClear() {
18059
- this.value = "";
18154
+ this.value = null;
18060
18155
  return Promise.resolve();
18061
18156
  }
18062
18157
  async resetCaption() {
@@ -18066,128 +18161,92 @@ const InputDropdown = class {
18066
18161
  this.invalid = false;
18067
18162
  return Promise.resolve();
18068
18163
  }
18069
- clickListener(e) {
18070
- var _a, _b;
18071
- const isSelf = Generate.findEventPath(e, this.el);
18072
- const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
18073
- if (!isSelf && !isLinked && ((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLowerCase()) != this.lateKey.toLowerCase()) {
18074
- this.onCloseLateContent();
18075
- return;
18076
- }
18164
+ onSelectItem(item) {
18165
+ var _a;
18166
+ this.invalid = false;
18167
+ this.data = this.data.map(data => (Object.assign(Object.assign({}, data), { selected: data.key === item.key })));
18168
+ this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => item === null || item === void 0 ? void 0 : item.selected);
18169
+ this.onChangeDropdown.emit(this.value);
18170
+ this.change.emit();
18077
18171
  }
18078
18172
  async handleInput(e) {
18079
- var _a, _b, _c, _d;
18173
+ var _a, _b, _c, _d, _e, _f, _g;
18080
18174
  const value = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
18175
+ this.isOpenMenu = true;
18081
18176
  const maxLengthExceeded = (value === null || value === void 0 ? void 0 : value.length) >= +this.maxCharacterLimit;
18082
18177
  if (maxLengthExceeded) {
18083
18178
  const item = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === value.toLowerCase(); });
18084
18179
  if (item) {
18085
- this.value = item;
18086
- this._input.style.color = item.color;
18087
- this.invalid = false;
18088
- if (this.isLate()) {
18089
- (_c = this.lateContent) === null || _c === void 0 ? void 0 : _c.show();
18090
- await delay(60);
18091
- document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
18180
+ await ((_c = this.menuContent) === null || _c === void 0 ? void 0 : _c.hide());
18181
+ if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
18182
+ (_d = this.commentContent) === null || _d === void 0 ? void 0 : _d.show();
18092
18183
  }
18093
- else {
18094
- (_d = this.lateContent) === null || _d === void 0 ? void 0 : _d.hide();
18095
- }
18096
- this.onChangeDropdown.emit(item);
18184
+ this.onSelectItem(item);
18097
18185
  }
18098
18186
  else {
18187
+ this.invalid = true;
18099
18188
  this.value = e.target.value;
18100
- this.content && this.content.show();
18189
+ await ((_e = this.menuContent) === null || _e === void 0 ? void 0 : _e.show());
18101
18190
  this._input.style.color = "#ff0000";
18102
- this.invalid = true;
18103
18191
  }
18104
18192
  }
18105
18193
  else {
18106
- this.onCloseMainContent();
18194
+ (_f = this.commentContent) === null || _f === void 0 ? void 0 : _f.hide();
18195
+ (_g = this.menuContent) === null || _g === void 0 ? void 0 : _g.hide();
18107
18196
  this.value = null;
18108
18197
  this._input.style.color = "#000000";
18109
18198
  this.invalid = false;
18110
18199
  }
18111
18200
  this.change.emit();
18112
18201
  }
18202
+ onClickSave() {
18203
+ var _a;
18204
+ (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide();
18205
+ this.data = this.data.map(data => (Object.assign(Object.assign({}, data), (data.key === this.value.key && {
18206
+ lateMin: this.value.lateMin,
18207
+ comment: this.value.comment,
18208
+ }))));
18209
+ forceUpdate(this.el);
18210
+ this.onChangeDropdown.emit(this.value);
18211
+ this.change.emit();
18212
+ }
18113
18213
  async onClick(item) {
18114
18214
  var _a, _b;
18115
- this.value = item;
18116
- this.invalid = false;
18117
- this._input.style.color = item.color;
18118
- this.onCloseMainContent();
18119
- if (this.isLate()) {
18120
- (_a = this.lateContent) === null || _a === void 0 ? void 0 : _a.show();
18121
- await delay(60);
18122
- document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
18123
- }
18124
- else {
18125
- (_b = this.lateContent) === null || _b === void 0 ? void 0 : _b.hide();
18215
+ if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
18216
+ (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.show();
18126
18217
  }
18127
- this.onChangeDropdown.emit(item);
18128
- this.change.emit();
18218
+ await ((_b = this.menuContent) === null || _b === void 0 ? void 0 : _b.hide());
18219
+ this.onSelectItem(item);
18129
18220
  }
18130
18221
  render() {
18131
- const { label, size, noCaption, captionType, captionError, caption, required, invalid, disabled, readonly, value, fullWidth, lateMinutes } = this;
18132
- const color = invalid || captionType === "error" ? "red" : "primary";
18133
- const theme = Generate.getTwColor({ color });
18134
- const iconSizes = {
18135
- [Bcm$1.Size.small]: "tw-text-2",
18136
- [Bcm$1.Size.medium]: "tw-text-3 ",
18137
- [Bcm$1.Size.large]: "tw-text-4 ",
18138
- }[size];
18139
- const fontSizes = {
18140
- [Bcm$1.Size.small]: "tw-text-2",
18141
- [Bcm$1.Size.medium]: "tw-text-3",
18142
- [Bcm$1.Size.large]: "tw-text-4",
18143
- }[size];
18144
- const isError = invalid || captionType === "error";
18145
- const RenderMainContent = () => {
18222
+ var _a, _b, _c, _d, _e;
18223
+ const { size, label, placeholder, required, disabled, readonly, _id, invalid, hideComment, noCaption, customErrorMessage, caption, captionType, captionError, hideCaption } = this;
18224
+ const { base, inputArea, input, button, menu, menuItem, commentArea, disabledItem, content, selectedItem } = inputDropdownStyle({ size, invalid, hideComment, disabled });
18225
+ const MenuTemplates = () => {
18146
18226
  var _a;
18147
- return (h$1("bcm-linked", { id: this._id + "-input-dropdown-main-content", "target-id": this._id + "-dropdown-input-button", placement: "bottom-end" }, this.componentIsActive ? (h$1("div", { class: `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 ${fontSizes}` }, this.invalid && (h$1("li", { class: classnames("tw-flex tw-w-full tw-flex-row tw-items-center tw-gap-3 tw-rounded tw-bg-red-100 tw-px-4 tw-py-2") }, h$1("span", { class: "tw-text-red-900" }, h$1("i", { class: iconSizes + " far fa-exclamation-circle" })), h$1("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
18148
- _a.map(item => {
18149
- var _a;
18150
- return (h$1("li", { onClick: () => this.onClick(item), class: classnames("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", {
18151
- "tw-bg-primary-200": ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == item.key,
18152
- }) }, h$1("span", null, " ", item.key), " - ", h$1("span", null, item.value)));
18153
- }))) : null));
18227
+ return (h$1(Fragment, null, this.isOpenMenu ? (h$1("div", { class: menu() }, this.invalid && (h$1("li", { class: menuItem() + " tw-bg-red-100 hover:tw-bg-red-100" }, h$1("span", { class: "tw-text-red-900" }, h$1("i", { class: "far fa-exclamation-circle" })), h$1("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
18228
+ _a.map((item) => (h$1(Fragment, null, !(item === null || item === void 0 ? void 0 : item.disabled) ? (h$1("li", { class: (item === null || item === void 0 ? void 0 : item.selected) ? selectedItem() : menuItem(), onClick: () => this.onClick(item) }, h$1("span", null, item.key), " - ", h$1("span", null, item.value))) : (h$1("li", { class: disabledItem() }, h$1("span", null, item.key), " - ", h$1("span", null, item.value)))))))) : null));
18154
18229
  };
18155
- const RenderLateContent = () => {
18156
- var _a;
18157
- return (h$1("bcm-linked", { id: this._id + "-input-dropdown-late-content", "target-id": this._id, trigger: "custom", placement: "right", "onBcm-open": ({ detail }) => {
18158
- var _a;
18159
- if (detail) {
18160
- (_a = this.el.querySelector("#" + this._id + "-input-dropdown-late-content-input")) === null || _a === void 0 ? void 0 : _a.onBcmFocus();
18161
- }
18162
- else {
18163
- this._input.focus();
18164
- }
18165
- } }, this.componentIsActive ? (h$1("div", { class: "tw-flex tw-h-fit tw-w-full !tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-4 tw-rounded tw-p-4 tw-shadow-2" }, h$1("div", { class: "tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-3" }, h$1("header", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between" }, h$1("div", { class: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2" }, h$1("i", { class: "tw-text-size-4 fas fa-clock tw-text-amber-600" }), h$1("bcm-label", { class: "!tw-mb-0", size: "large", value: "Minutes Late", required: true })), h$1("div", { class: " tw-flex tw-h-4 tw-w-4 tw-flex-row tw-items-center tw-justify-center", onClick: () => this.onCloseLateContent() }, h$1("i", { class: "tw-text-size-4 fas fa-times tw-text-slate-600" }))), h$1("bcm-input", { id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.late, placeholder: "Enter Minus Late", required: true, "onBcm-change": (e) => (this.lateMinutes = +e.detail), onKeyDown: e => {
18166
- if (e.key === "Enter") {
18167
- this.onClickSave();
18168
- }
18169
- } })), h$1("section", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end" }, h$1("bcm-button", { size: "small", variant: "save", color: "blue", disabled: +lateMinutes < 1, onClick: () => this.onClickSave() }, "Save")))) : null));
18230
+ const CommentTemplate = () => {
18231
+ var _a, _b, _c;
18232
+ return (h$1(Fragment, null, this.isOpenMenu ? (h$1("div", { class: commentArea() }, this.isLate ? (h$1(Fragment, null, h$1("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, autocomplete: false, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h$1("i", { slot: "prefix", class: "far fa-clock" })))) : null, h$1("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h$1("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h$1("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h$1("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
18170
18233
  };
18171
- return (h$1(Host, { class: classnames("bcm-ui-element bcm-ui-inputs bcm-input-dropdown tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-1", {
18172
- "tw-max-w-[86px]": size == Bcm$1.Size.small,
18173
- "tw-max-w-[92px]": size == Bcm$1.Size.medium,
18174
- "tw-max-w-[108px]": !fullWidth,
18175
- "tw-max-w-none": fullWidth,
18176
- }), onClick: () => (this.componentIsActive = true), onFocus: () => (this._input.focus(), (this.componentIsActive = true)) }, label && h$1("bcm-label", { htmlFor: this._id + "-dropdown-input", size: size, value: label, required: required }), h$1("div", { "aria-disabled": disabled ? "true" : "false", "aria-readonly": readonly ? "true" : "false", "aria-invalid": isError ? "true" : "false", tabIndex: disabled || readonly ? -1 : 0, onFocus: () => (this._input.focus(), (this.componentIsActive = true)), style: Object.assign({}, theme), class: classnames("tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-font-medium", "aria-disabled:tw-cursor-not-allowed aria-disabled:tw-bg-slate-100", "aria-readonly:tw-cursor-text aria-readonly:tw-bg-slate-100", "aria-invalid:tw-border-default-600 aria-invalid:tw-bg-default-50", {
18177
- "tw-h-6 tw-pr-0.5 tw-py-0.5 tw-pl-1 tw-gap-1": size == Bcm$1.Size.small,
18178
- "tw-h-7 tw-pr-0.5 tw-py-0.5 tw-pl-2 tw-gap-2": size == Bcm$1.Size.medium,
18179
- "tw-h-10 tw-pr-[4px] tw-py-1 tw-pl-3 tw-gap-3": size == Bcm$1.Size.large,
18180
- "hover:tw-border-default-600 hover:tw-bg-default-50": !disabled && !readonly && !isError,
18181
- "tw-outline-none focus:tw-ring-2 focus:tw-ring-default-400": !disabled && !readonly && !isError,
18182
- }) }, h$1("div", { class: " tw-flex tw-w-full tw-min-w-[42px] tw-flex-row tw-items-center tw-justify-center" }, value && (value === null || value === void 0 ? void 0 : value.late) && (h$1("bcm-tooltip", { message: `${lateMinutes} ${pluralize("Minute", lateMinutes)} Late`, trigger: "hover" }, h$1("i", { class: iconSizes + " fas fa-clock", onClick: () => this.lateContent.show() }))), captionType == Bcm$1.Status.error && h$1("i", { class: iconSizes + " tw-text-default-500" + " fas fa-exclamation-circle" }), h$1("input", { class: classnames("tw-font-sans", "tw-h-full tw-w-full tw-bg-transparent tw-text-center tw-font-semibold !tw-uppercase tw-outline-none ", "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400", "readonly:tw-text-slate-700 readonly:tw-cursor-text", `${fontSizes}`), id: this._id + "-dropdown-input", type: "text", tabIndex: -1, disabled: disabled, placeholder: this.placeholder, value: value === null || value === void 0 ? void 0 : value.key, required: this.required, readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el), onFocus: () => this._input.select() })), h$1("button", { id: this._id + "-dropdown-input-button", class: classnames("dropdown-input-button", "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none", "tw-border tw-border-solid tw-border-slate-300 tw-bg-slate-50 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", "readonly:tw-text-slate-700 readonly:tw-cursor-text", {
18183
- "tw-h-[18px] tw-text-1 tw-leading-none": size == Bcm$1.Size.small,
18184
- "tw-h-[22px] tw-text-2": size == Bcm$1.Size.medium,
18185
- "tw-h-[30px] tw-text-2": size == Bcm$1.Size.large,
18186
- }), "aria-label": "dropdown", "aria-haspopup": "true", "aria-expanded": "false", disabled: disabled || readonly, tabIndex: -1 }, h$1("i", { class: "fas fa-chevron-down" })), h$1(RenderMainContent, null), h$1(RenderLateContent, null)), h$1(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage })));
18234
+ return (h$1(Host, { class: base() }, label && h$1("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h$1("div", { class: content() }, h$1("div", { class: inputArea() }, h$1("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), h$1("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h$1("i", { class: "fas fa-chevron-down" })), h$1("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, h$1(MenuTemplates, null)), h$1("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h$1(CommentTemplate, null))), !this.hideComment ? (h$1("span", { onClick: () => {
18235
+ var _a, _b;
18236
+ if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) {
18237
+ this.isOpenMenu = true;
18238
+ (_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.show();
18239
+ }
18240
+ }, class: classnames(((_c = this.value) === null || _c === void 0 ? void 0 : _c.comment) || ((_d = this.value) === null || _d === void 0 ? void 0 : _d.lateMin) > 0 ? "tw-text-slate-600" : "tw-text-slate-400", {
18241
+ "tw-cursor-pointer": (_e = this.value) === null || _e === void 0 ? void 0 : _e.key,
18242
+ }) }, h$1("i", { class: "fas fa-comment" }))) : null), !hideCaption && h$1(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
18187
18243
  }
18188
18244
  get el() { return getElement(this); }
18245
+ static get watchers() { return {
18246
+ "defaultValue": ["watchDefaultValueHandler"]
18247
+ }; }
18189
18248
  };
18190
- InputDropdown.style = inputDropdownCss;
18249
+ BcmInputDropdown.style = inputDropdownCss;
18191
18250
 
18192
18251
  const labelCss = "@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-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}";
18193
18252
 
@@ -18414,6 +18473,147 @@ const BcmLinked = class {
18414
18473
  }; }
18415
18474
  };
18416
18475
 
18476
+ var ResizeType;
18477
+ (function (ResizeType) {
18478
+ ResizeType["none"] = "none";
18479
+ ResizeType["both"] = "both";
18480
+ ResizeType["horizontal"] = "horizontal";
18481
+ ResizeType["vertical"] = "vertical";
18482
+ ResizeType["initial"] = "initial";
18483
+ ResizeType["inherit"] = "inherit";
18484
+ })(ResizeType || (ResizeType = {}));
18485
+
18486
+ const textareaCss = "@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\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @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-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 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}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
18487
+
18488
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
18489
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18490
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
18491
+ r = Reflect.decorate(decorators, target, key, desc);
18492
+ else
18493
+ for (var i = decorators.length - 1; i >= 0; i--)
18494
+ if (d = decorators[i])
18495
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18496
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18497
+ };
18498
+ const BcmTextarea = class {
18499
+ constructor(hostRef) {
18500
+ registerInstance(this, hostRef);
18501
+ this.focus = createEvent(this, "bcm-focus", 7);
18502
+ this.blur = createEvent(this, "bcm-blur", 7);
18503
+ this.clear = createEvent(this, "bcm-clear", 7);
18504
+ this.change = createEvent(this, "bcm-change", 7);
18505
+ this.input = createEvent(this, "bcm-input", 7);
18506
+ this._id = Generate.UID();
18507
+ this._internal_id = Generate.UID();
18508
+ this.hidden = false;
18509
+ this.value = undefined;
18510
+ this.placeholder = undefined;
18511
+ this.label = undefined;
18512
+ this.name = undefined;
18513
+ this.required = false;
18514
+ this.caption = undefined;
18515
+ this.noCaption = false;
18516
+ this.captionError = undefined;
18517
+ this.captionType = Bcm.Status.default;
18518
+ this.rows = 3;
18519
+ this.size = Bcm.Size.medium;
18520
+ this.disabled = undefined;
18521
+ this.readonly = false;
18522
+ this.clearable = undefined;
18523
+ this.resize = ResizeType.vertical;
18524
+ this.fullWidth = false;
18525
+ this.maxLength = undefined;
18526
+ this.focused = false;
18527
+ this.captionCache = undefined;
18528
+ this.captionTypeCache = undefined;
18529
+ }
18530
+ connectedCallback() {
18531
+ this.captionCache = this.caption;
18532
+ this.captionTypeCache = this.captionType;
18533
+ }
18534
+ async onBcmFocus() {
18535
+ this.textarea.focus();
18536
+ }
18537
+ async onBcmBlur() {
18538
+ this.textarea.blur();
18539
+ }
18540
+ async onBcmSelect() {
18541
+ this.textarea.select();
18542
+ }
18543
+ async set(data) {
18544
+ await this.setValue(data);
18545
+ }
18546
+ async get() {
18547
+ return this.value || null;
18548
+ }
18549
+ async setValue(value) {
18550
+ this.textarea.value = value;
18551
+ this.value = value;
18552
+ this.handleChange();
18553
+ return value;
18554
+ }
18555
+ async setClear() {
18556
+ this.textarea.value = '';
18557
+ this.value = '';
18558
+ await delay(10);
18559
+ return Promise.resolve();
18560
+ }
18561
+ async resetCaption() {
18562
+ await delay(10);
18563
+ this.caption = this.captionCache;
18564
+ this.captionType = this.captionTypeCache;
18565
+ this.captionError = null;
18566
+ await delay(10);
18567
+ return Promise.resolve();
18568
+ }
18569
+ async getValue() {
18570
+ return this.value;
18571
+ }
18572
+ watchValue(newValue) {
18573
+ this.textarea.value = newValue;
18574
+ this.handleChange();
18575
+ }
18576
+ handleFocus() {
18577
+ this.focused = true;
18578
+ this.focus.emit();
18579
+ }
18580
+ handleBlur() {
18581
+ this.focused = false;
18582
+ this.blur.emit();
18583
+ }
18584
+ handleChange() {
18585
+ this.value = this.textarea.value;
18586
+ this.change.emit(this.value);
18587
+ }
18588
+ handleInput() {
18589
+ this.value = this.textarea.value;
18590
+ this.input.emit(this.value);
18591
+ }
18592
+ handleClear(e) {
18593
+ this.textarea.value = '';
18594
+ this.value = '';
18595
+ this.clear.emit();
18596
+ this.textarea.focus();
18597
+ e.stopPropagation();
18598
+ }
18599
+ render() {
18600
+ const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
18601
+ const hostClasses = classnames('bcm-input', {
18602
+ hidden,
18603
+ 'full-width': fullWidth,
18604
+ });
18605
+ return (h$1(Host, { class: hostClasses }, label && h$1("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), h$1(InputTemplate, { elementType: Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), h$1(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
18606
+ }
18607
+ get el() { return getElement(this); }
18608
+ static get watchers() { return {
18609
+ "value": ["watchValue"]
18610
+ }; }
18611
+ };
18612
+ __decorate([
18613
+ IsLoad()
18614
+ ], BcmTextarea.prototype, "el", void 0);
18615
+ BcmTextarea.style = textareaCss;
18616
+
18417
18617
  const BcmTooltip = class {
18418
18618
  constructor(hostRef) {
18419
18619
  registerInstance(this, hostRef);
@@ -18485,4 +18685,4 @@ const BcmTooltip = class {
18485
18685
  get el() { return getElement(this); }
18486
18686
  };
18487
18687
 
18488
- export { BcmButton as bcm_button, BcmColorful as bcm_colorful, BcmIcon as bcm_icon, BcmInput as bcm_input, InputDropdown as bcm_input_dropdown, BcmLabel as bcm_label, BcmLinked as bcm_linked, BcmTooltip as bcm_tooltip };
18688
+ export { BcmButton as bcm_button, BcmColorful as bcm_colorful, BcmIcon as bcm_icon, BcmInput as bcm_input, BcmInputDropdown as bcm_input_dropdown, BcmLabel as bcm_label, BcmLinked as bcm_linked, BcmTextarea as bcm_textarea, BcmTooltip as bcm_tooltip };