bromcom-ui 2.9.0-rc.10 → 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 (277) 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/global/global.js +1 -1
  4. package/dist/bromcom-ui/{p-d2ff474a.entry.js → p-02fc6c76.entry.js} +1 -1
  5. package/dist/bromcom-ui/p-08c75801.js +5 -0
  6. package/dist/bromcom-ui/{p-2b3610b4.entry.js → p-0bc35a82.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-6a7c6ef2.entry.js → p-0d0fc47b.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-535eae03.entry.js → p-13070661.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c537f73b.entry.js → p-1ad5b7dd.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-30b43b3a.entry.js → p-1fc491fc.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-fd03e308.entry.js → p-203c8e37.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-5559362d.entry.js → p-20422d81.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-2e506b7c.entry.js → p-23a805b2.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-280736e0.entry.js → p-26da70f2.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-d9f26a59.entry.js → p-29722bff.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-2baa0a6b.entry.js → p-3a83e2ed.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-f3424c60.entry.js → p-3c2db0c1.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-2e080bdf.entry.js → p-3d983699.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-416f6233.entry.js +5 -0
  20. package/dist/bromcom-ui/{p-e1689f47.js → p-43a16ce4.js} +1 -1
  21. package/dist/bromcom-ui/{p-5caf6360.js → p-44407faa.js} +1 -1
  22. package/dist/bromcom-ui/{p-2c43873c.entry.js → p-4772e438.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-49f37d54.js +5 -0
  24. package/dist/bromcom-ui/{p-48b925ad.js → p-509cfa99.js} +1 -1
  25. package/dist/bromcom-ui/p-55931686.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-53d6a137.entry.js → p-5c27d09b.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-1df4d111.entry.js → p-5f11b62c.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-412732f4.js → p-64096fe2.js} +1 -1
  29. package/dist/bromcom-ui/{p-fe83aac0.entry.js → p-6abc4fdf.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-1b94d494.js → p-6b60a4d3.js} +1 -1
  31. package/dist/bromcom-ui/{p-2d2ff5fc.entry.js → p-6c878da5.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-2d4a0a66.entry.js → p-6e592196.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-b1613d12.entry.js → p-70994ba0.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-e4bc863b.entry.js → p-78e70a44.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-2f4c8c67.entry.js → p-7e10f626.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-8507df31.js +5 -0
  37. package/dist/bromcom-ui/p-8abe303b.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-cff8ef93.js → p-91246af3.js} +1 -1
  39. package/dist/bromcom-ui/{p-a54a47ed.entry.js → p-94a9bd14.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-965703ec.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-1c17fbd6.entry.js → p-98afbb62.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-edcc8c69.entry.js → p-9a21398e.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-52c6d2e5.entry.js → p-9d911ba3.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-cea71a01.entry.js → p-a2ab6adb.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-37c48622.entry.js → p-a31e475a.entry.js} +1 -1
  46. package/dist/bromcom-ui/p-a799b910.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-2f81dd36.entry.js → p-a7a5da82.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-a81644d6.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-cca6e9c5.js → p-a89cff9b.js} +1 -1
  50. package/dist/bromcom-ui/p-a9eb0321.js +315 -0
  51. package/dist/bromcom-ui/p-ab53fd56.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-167e1654.js → p-ab7bd6e1.js} +1 -1
  53. package/dist/bromcom-ui/{p-f521cbb4.entry.js → p-ac385400.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-1286e447.entry.js → p-aedc59f3.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-b9cfa2c6.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-e304d0f8.entry.js → p-bcef2201.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-9dec497d.entry.js → p-c0a62a71.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-74dc0103.entry.js → p-c9212343.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-e0271c48.entry.js → p-cb3bc0f4.entry.js} +1 -1
  60. package/dist/bromcom-ui/p-d3d07c8c.js +5 -0
  61. package/dist/bromcom-ui/{p-21cd7ad3.entry.js → p-d57f3587.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-9c6f8cf6.entry.js → p-d61af652.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-778529e9.entry.js → p-e6f888b3.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-e7cbc79a.js +5 -0
  65. package/dist/bromcom-ui/{p-d479398d.entry.js → p-eb279a80.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-1b96dbbf.entry.js → p-ebe49b26.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-4fc0c9db.entry.js → p-eefcd035.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-b426546b.js → p-f394a316.js} +1 -1
  69. package/dist/bromcom-ui/{p-af4c2c90.entry.js → p-f4634124.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-6909817b.entry.js → p-f533a1b5.entry.js} +1 -1
  71. package/dist/bromcom-ui/p-fa9e6264.entry.js +5 -0
  72. package/dist/bromcom-ui/{p-0e99fd08.entry.js → p-faad6962.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-42616ae0.entry.js → p-fb36ab9c.entry.js} +1 -1
  74. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  76. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-avatar_2.cjs.entry.js +17 -2580
  78. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
  80. package/dist/cjs/{bcm-button_8.cjs.entry.js → bcm-button_9.cjs.entry.js} +338 -137
  81. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +5 -5
  83. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  84. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
  85. package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
  86. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  87. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  88. package/dist/cjs/bcm-color-input.cjs.entry.js +5 -5
  89. package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
  90. package/dist/cjs/bcm-date.cjs.entry.js +7 -7
  91. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +10 -8
  92. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-drawer.cjs.entry.js +5 -5
  94. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
  96. package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
  97. package/dist/cjs/bcm-form.cjs.entry.js +1 -1
  98. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  99. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-items.cjs.entry.js +3 -3
  101. package/dist/cjs/bcm-list_3.cjs.entry.js +14 -13
  102. package/dist/cjs/bcm-menu.cjs.entry.js +6 -6
  103. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  104. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  105. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  106. package/dist/cjs/bcm-modal.cjs.entry.js +4 -4
  107. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
  108. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  111. package/dist/cjs/bcm-radio-group.cjs.entry.js +5 -5
  112. package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
  113. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  114. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  115. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
  116. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  117. package/dist/cjs/bcm-stepper.cjs.entry.js +6 -6
  118. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  119. package/dist/cjs/bcm-tab-group.cjs.entry.js +5 -5
  120. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +5 -5
  121. package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
  122. package/dist/cjs/bcm-table.cjs.entry.js +7421 -8
  123. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  124. package/dist/cjs/bcm-text.cjs.entry.js +2 -2
  125. package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
  126. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  127. package/dist/cjs/bromcom-ui.cjs.js +4 -4
  128. package/dist/cjs/{generate-225c30c9.js → generate-4911eaae.js} +1 -1
  129. package/dist/cjs/{global-d30014b0.js → global-efef2bd1.js} +3 -3
  130. package/dist/cjs/index-5279dea2.js +2571 -0
  131. package/dist/cjs/{input-template-27576361.js → input-template-11d547bd.js} +1 -1
  132. package/dist/cjs/{json-parse-decarator-c7dda47d.js → json-parse-decarator-fdcd20df.js} +1 -1
  133. package/dist/cjs/{label-template-8d34230f.js → label-template-15c3c0ed.js} +1 -1
  134. package/dist/cjs/loader.cjs.js +4 -4
  135. package/dist/cjs/{number-helper-2b3bd61e.js → number-helper-72d5f146.js} +1 -1
  136. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
  137. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  138. package/dist/cjs/{package-e7a4d8ef.js → package-70273fae.js} +1 -1
  139. package/dist/cjs/{popover-placement-86ece590.js → popover-placement-8866eab1.js} +1 -1
  140. package/dist/cjs/{slot-template-758beb71.js → slot-template-de6a91b1.js} +1 -1
  141. package/dist/cjs/{stepper-states-b56fbad9.js → stepper-states-56e660a4.js} +1 -1
  142. package/dist/cjs/{string-helper-b89a9828.js → string-helper-9b392049.js} +2 -2
  143. package/dist/cjs/{tooltip-helper-85b4c726.js → tooltip-helper-3b8b977f.js} +4 -4
  144. package/dist/cjs/{validators-9e7f7995.js → validators-c43fa1d0.js} +1 -1
  145. package/dist/cjs/watermark-2c23c8f1.js +47499 -0
  146. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +9 -2
  147. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +200 -149
  148. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
  149. package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
  150. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  151. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
  152. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
  153. package/dist/collection/components/organism/list/list.css +1 -1
  154. package/dist/collection/components/organism/list/list.js +21 -2
  155. package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
  156. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  157. package/dist/collection/components/third-parts/table/table.css +1 -7034
  158. package/dist/collection/components/third-parts/table/table.js +6 -2
  159. package/dist/collection/decorators/event-decorator.js +31 -0
  160. package/dist/collection/decorators/index.js +1 -1
  161. package/dist/collection/global/global.js +1 -1
  162. package/dist/collection/helper/string-helper.js +2 -2
  163. package/dist/components/avatar.js +2 -1
  164. package/dist/components/badge.js +2 -2565
  165. package/dist/components/bcm-date-picker.js +4 -2
  166. package/dist/components/bcm-input-dropdown.js +214 -149
  167. package/dist/components/bcm-table.js +8436 -65181
  168. package/dist/components/bcm-textarea.js +1 -214
  169. package/dist/components/bcm-time-picker.js +4 -2
  170. package/dist/components/datetime-picker.js +5 -2
  171. package/dist/components/generate.js +1 -1
  172. package/dist/components/index.d.ts +1 -1
  173. package/dist/components/index5.js +2569 -0
  174. package/dist/components/list.js +5 -3
  175. package/dist/components/string-helper.js +2 -2
  176. package/dist/{esm/bcm-textarea.entry.js → components/textarea.js} +80 -19
  177. package/dist/esm/bcm-accordion.entry.js +2 -2
  178. package/dist/esm/bcm-alert.entry.js +3 -3
  179. package/dist/esm/bcm-attendance.entry.js +2 -2
  180. package/dist/esm/bcm-avatar_2.entry.js +6 -2569
  181. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  182. package/dist/esm/bcm-button-group.entry.js +3 -3
  183. package/dist/esm/{bcm-button_8.entry.js → bcm-button_9.entry.js} +339 -139
  184. package/dist/esm/bcm-card.entry.js +4 -4
  185. package/dist/esm/bcm-checkbox-group.entry.js +5 -5
  186. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  187. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  188. package/dist/esm/bcm-chip-group.entry.js +7 -7
  189. package/dist/esm/bcm-chip.entry.js +2 -2
  190. package/dist/esm/bcm-collapse.entry.js +2 -2
  191. package/dist/esm/bcm-color-input.entry.js +5 -5
  192. package/dist/esm/bcm-date-picker.entry.js +5 -4
  193. package/dist/esm/bcm-date.entry.js +7 -7
  194. package/dist/esm/bcm-datetime-picker.entry.js +10 -8
  195. package/dist/esm/bcm-default.entry.js +2 -2
  196. package/dist/esm/bcm-drawer.entry.js +5 -5
  197. package/dist/esm/bcm-dropdown.entry.js +3 -3
  198. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  199. package/dist/esm/bcm-form-2.entry.js +3 -3
  200. package/dist/esm/bcm-form.entry.js +1 -1
  201. package/dist/esm/bcm-input-custom.entry.js +2 -2
  202. package/dist/esm/bcm-item.entry.js +2 -2
  203. package/dist/esm/bcm-items.entry.js +3 -3
  204. package/dist/esm/bcm-list_3.entry.js +14 -13
  205. package/dist/esm/bcm-menu.entry.js +6 -6
  206. package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
  207. package/dist/esm/bcm-modal-2-header.entry.js +5 -5
  208. package/dist/esm/bcm-modal-2.entry.js +5 -5
  209. package/dist/esm/bcm-modal.entry.js +4 -4
  210. package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
  211. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  212. package/dist/esm/bcm-popover.entry.js +5 -5
  213. package/dist/esm/bcm-progress.entry.js +2 -2
  214. package/dist/esm/bcm-radio-group.entry.js +5 -5
  215. package/dist/esm/bcm-radio.entry.js +5 -5
  216. package/dist/esm/bcm-range.entry.js +2 -2
  217. package/dist/esm/bcm-select.entry.js +1 -1
  218. package/dist/esm/bcm-skeleton.entry.js +2 -2
  219. package/dist/esm/bcm-step.entry.js +3 -3
  220. package/dist/esm/bcm-stepper.entry.js +6 -6
  221. package/dist/esm/bcm-switch.entry.js +2 -2
  222. package/dist/esm/bcm-tab-group.entry.js +5 -5
  223. package/dist/esm/bcm-tab-item-header.entry.js +5 -5
  224. package/dist/esm/bcm-tab-item.entry.js +5 -5
  225. package/dist/esm/bcm-table.entry.js +7420 -7
  226. package/dist/esm/bcm-tag.entry.js +3 -3
  227. package/dist/esm/bcm-text.entry.js +2 -2
  228. package/dist/esm/bcm-time-picker.entry.js +5 -4
  229. package/dist/esm/bcm-toast.entry.js +3 -3
  230. package/dist/esm/bromcom-ui.js +4 -4
  231. package/dist/esm/{generate-93b8bdf9.js → generate-c890c880.js} +1 -1
  232. package/dist/esm/{global-d82f2bc7.js → global-80f07324.js} +2 -2
  233. package/dist/esm/index-3bc8c6e3.js +2569 -0
  234. package/dist/esm/{input-template-f7c67bc9.js → input-template-7f96e7e6.js} +1 -1
  235. package/dist/esm/{json-parse-decarator-1e5367cd.js → json-parse-decarator-2c6f525f.js} +1 -1
  236. package/dist/esm/{label-template-f156f33f.js → label-template-62e49c38.js} +1 -1
  237. package/dist/esm/loader.js +4 -4
  238. package/dist/esm/{number-helper-ff29314e.js → number-helper-1ae23de5.js} +1 -1
  239. package/dist/esm/old-bcm-popover-box.entry.js +5 -5
  240. package/dist/esm/old-bcm-popover.entry.js +2 -2
  241. package/dist/esm/{package-64966ec6.js → package-22f4a05f.js} +1 -1
  242. package/dist/esm/{popover-placement-018109c4.js → popover-placement-7cce412f.js} +1 -1
  243. package/dist/esm/{slot-template-46035685.js → slot-template-7447145d.js} +1 -1
  244. package/dist/esm/{stepper-states-7c75d904.js → stepper-states-46d8bf00.js} +1 -1
  245. package/dist/esm/{string-helper-4a28f775.js → string-helper-5ef67a66.js} +2 -2
  246. package/dist/esm/{tooltip-helper-6154996e.js → tooltip-helper-a72d4674.js} +4 -4
  247. package/dist/esm/{validators-2956054d.js → validators-0601fa22.js} +1 -1
  248. package/dist/esm/watermark-f2c6a1f9.js +47477 -0
  249. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +25 -17
  250. package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
  251. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  252. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  253. package/dist/types/components/organism/list/list.d.ts +1 -0
  254. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  255. package/dist/types/components/third-parts/table/table.d.ts +1 -1
  256. package/dist/types/components.d.ts +22 -8
  257. package/dist/types/decorators/event-decorator.d.ts +2 -0
  258. package/dist/types/decorators/index.d.ts +1 -1
  259. package/package.json +5 -3
  260. package/dist/bromcom-ui/p-0523863a.entry.js +0 -5
  261. package/dist/bromcom-ui/p-07ff085d.entry.js +0 -5
  262. package/dist/bromcom-ui/p-14c7e2a8.js +0 -297
  263. package/dist/bromcom-ui/p-2a9053d8.js +0 -5
  264. package/dist/bromcom-ui/p-30abd87e.entry.js +0 -5
  265. package/dist/bromcom-ui/p-324b9364.js +0 -5
  266. package/dist/bromcom-ui/p-5600c817.js +0 -5
  267. package/dist/bromcom-ui/p-637fb9e8.entry.js +0 -5
  268. package/dist/bromcom-ui/p-a1412b63.js +0 -5
  269. package/dist/bromcom-ui/p-dc97634a.entry.js +0 -5
  270. package/dist/bromcom-ui/p-dd65dec9.entry.js +0 -5
  271. package/dist/bromcom-ui/p-e3a66478.entry.js +0 -5
  272. package/dist/bromcom-ui/p-eed0258a.entry.js +0 -5
  273. package/dist/bromcom-ui/p-fd87349e.entry.js +0 -5
  274. package/dist/bromcom-ui/p-fd93d2a4.entry.js +0 -5
  275. package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +0 -111638
  276. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
  277. package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +0 -111635
@@ -15,7 +15,7 @@ import { d as defineCustomElement$4 } from './label.js';
15
15
  import { d as defineCustomElement$3 } from './old-input.js';
16
16
  import { d as defineCustomElement$2 } from './tooltip.js';
17
17
 
18
- const datePickerCss = "@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-block;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
18
+ const datePickerCss = "@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}";
19
19
 
20
20
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
21
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -45,6 +45,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
45
45
  this.placeholder = undefined;
46
46
  this.disabledDates = '';
47
47
  this.disabled = false;
48
+ this.noMargin = false;
48
49
  this.noCaption = false;
49
50
  this.caption = '';
50
51
  this.captionError = undefined;
@@ -165,7 +166,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
165
166
  'full-width': this.fullWidth,
166
167
  'linked-component': this.linkedComponent,
167
168
  });
168
- return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
169
+ return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement, noMargin: this.noMargin })));
169
170
  }
170
171
  get el() { return this; }
171
172
  static get watchers() { return {
@@ -187,6 +188,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
187
188
  "placeholder": [1025],
188
189
  "disabledDates": [1032, "disableddates"],
189
190
  "disabled": [1028],
191
+ "noMargin": [1028, "no-margin"],
190
192
  "noCaption": [1028, "no-caption"],
191
193
  "caption": [1025],
192
194
  "captionError": [1025, "caption-error"],
@@ -2,30 +2,100 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
5
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host, Fragment } from '@stencil/core/internal/client';
6
6
  import './color-helper.js';
7
7
  import './validators.js';
8
8
  import { G as Generate } from './generate.js';
9
9
  import './number-helper.js';
10
- import { S as StringHelper } from './string-helper.js';
10
+ import './string-helper.js';
11
11
  import './element-dragger.js';
12
- import { d as delay, p as pluralize } from './utils.js';
13
12
  import { a as Bcm } from './bcm.js';
14
13
  import { C as CaptionTemplate } from './caption-template.js';
15
14
  import { c as classnames } from './index2.js';
16
15
  import './types.js';
17
16
  import './types2.js';
18
- import { d as defineCustomElement$8 } from './button.js';
19
- import { d as defineCustomElement$7 } from './colorful.js';
20
- import { d as defineCustomElement$6 } from './icon.js';
21
- import { d as defineCustomElement$5 } from './input.js';
22
- import { d as defineCustomElement$4 } from './label.js';
23
- import { d as defineCustomElement$3 } from './linked.js';
17
+ import { c as ce } from './index5.js';
18
+ import { d as defineCustomElement$9 } from './button.js';
19
+ import { d as defineCustomElement$8 } from './colorful.js';
20
+ import { d as defineCustomElement$7 } from './icon.js';
21
+ import { d as defineCustomElement$6 } from './input.js';
22
+ import { d as defineCustomElement$5 } from './label.js';
23
+ import { d as defineCustomElement$4 } from './linked.js';
24
+ import { d as defineCustomElement$3 } from './textarea.js';
24
25
  import { d as defineCustomElement$2 } from './tooltip.js';
25
26
 
26
- 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}";
27
+ const inputDropdownStyle = ce({
28
+ slots: {
29
+ base: "tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",
30
+ content: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",
31
+ 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",
32
+ 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",
33
+ button: [
34
+ "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",
35
+ "tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600",
36
+ "hover:tw-border-slate-400 hover:tw-bg-slate-200",
37
+ "tw-min-w-[32px]",
38
+ "tw-cursor-pointer",
39
+ "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none",
40
+ "readonly:tw-text-slate-700 readonly:tw-cursor-text",
41
+ ],
42
+ 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",
43
+ 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",
44
+ 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",
45
+ 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",
46
+ 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",
47
+ },
48
+ variants: {
49
+ size: {
50
+ small: {
51
+ button: "tw-h-[18px] tw-text-1 tw-leading-none",
52
+ },
53
+ medium: {
54
+ button: "tw-h-[24px] tw-text-2",
55
+ inputArea: "tw-p-0.5",
56
+ input: "tw-text-4",
57
+ },
58
+ large: {
59
+ button: "tw-h-[30px] tw-text-2",
60
+ inputArea: "tw-p-1",
61
+ input: "tw-text-6",
62
+ },
63
+ },
64
+ invalid: {
65
+ true: {
66
+ inputArea: "tw-border-red-600 tw-bg-red-50",
67
+ input: "tw-text-red-500",
68
+ },
69
+ },
70
+ disabled: {
71
+ true: {
72
+ base: "tw-opacity-50 tw-cursor-not-allowed",
73
+ input: "tw-cursor-not-allowed",
74
+ },
75
+ },
76
+ hideComment: {
77
+ true: {
78
+ base: "tw-min-w-[98px]",
79
+ },
80
+ false: {
81
+ base: "tw-min-w-[128px] ",
82
+ },
83
+ },
84
+ label: {
85
+ true: "",
86
+ },
87
+ },
88
+ defaultVariants: {
89
+ size: "medium",
90
+ invalid: false,
91
+ hideComment: false,
92
+ disabled: false,
93
+ },
94
+ });
27
95
 
28
- const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
96
+ 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}";
97
+
98
+ const BcmInputDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
29
99
  constructor() {
30
100
  super();
31
101
  this.__registerHost();
@@ -38,31 +108,25 @@ const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
38
108
  return;
39
109
  }
40
110
  };
41
- this.onClickSave = () => {
42
- const lateMin = +this.lateMinutes;
43
- if (lateMin > 0) {
44
- this.value = Object.assign(Object.assign({}, this.value), { late: lateMin });
45
- this.onChangeDropdown.emit(this.value);
46
- this.onCloseLateContent();
47
- }
48
- };
49
111
  this._id = Generate.UID();
50
112
  this.value = undefined;
51
- this.defaultValue = undefined;
52
- this.lateKey = "L";
113
+ this.defaultValue = {};
114
+ this.lateKeys = "L";
53
115
  this.maxCharacterLimit = 1;
54
116
  this.size = Bcm.Size.medium;
55
117
  this.label = undefined;
56
118
  this.placeholder = undefined;
119
+ this.name = undefined;
57
120
  this.fullWidth = false;
121
+ this.hideComment = false;
122
+ this.hideCaption = true;
58
123
  this.disabled = false;
59
124
  this.required = false;
60
125
  this.readonly = false;
61
- this.componentIsActive = false;
62
126
  this.data = [
63
127
  { key: "/", value: "Present", color: "#00b050" },
64
128
  { key: "B", value: "Educated off site (NOT dual registration)", color: "#ffc000" },
65
- { key: "C", value: "Other authorised circumstance", color: "#ff0000" },
129
+ { key: "C", value: "Other authorised circumstance", color: "#ffc000" },
66
130
  { key: "D", value: "Dual registration", color: "#0070c0" },
67
131
  { key: "E", value: "Excluded", color: "#ff0000" },
68
132
  { key: "F", value: "Free Study", color: "#ffc000" },
@@ -75,36 +139,67 @@ const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
75
139
  this.captionType = Bcm.Status.default;
76
140
  this.captionError = undefined;
77
141
  this.customErrorMessage = undefined;
78
- this.invalid = false;
79
142
  this.captionCache = undefined;
80
143
  this.captionTypeCache = undefined;
81
- this.activeSaveButton = true;
82
- this.lateMinutes = 0;
83
- }
84
- get content() {
85
- return document.getElementById(this._id + "-input-dropdown-main-content");
144
+ this.isOpenMenu = false;
145
+ this.invalid = false;
86
146
  }
87
- get lateContent() {
88
- return document.getElementById(this._id + "-input-dropdown-late-content");
147
+ get overlayContainer() {
148
+ return document.getElementById("bcm-overlay-container");
89
149
  }
90
- get isLate() {
91
- return () => { var _a; return StringHelper.lowercase((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == StringHelper.lowercase(this.lateKey); };
150
+ get menuContent() {
151
+ var _a, _b;
152
+ 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}`);
92
153
  }
93
- onCloseMainContent() {
94
- this.content && this.content.hide();
154
+ get keys() {
155
+ return this.lateKeys.toLocaleLowerCase().split(",");
95
156
  }
96
- onCloseLateContent() {
97
- this.lateContent && this.lateContent.hide();
157
+ get isLate() {
158
+ var _a, _b, _c, _d, _e, _f;
159
+ return (this.keys.includes((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) ||
160
+ ((_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) ||
161
+ ((_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);
98
162
  }
99
- connectedCallback() {
163
+ componentWillLoad() {
164
+ var _a, _b;
100
165
  this.captionCache = this.caption;
101
166
  this.captionTypeCache = this.captionType;
167
+ if (((_a = Object.keys(this.defaultValue)) === null || _a === void 0 ? void 0 : _a.length) > 0) {
168
+ this.watchDefaultValueHandler(this.defaultValue);
169
+ }
170
+ else {
171
+ this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item.selected);
172
+ }
102
173
  }
103
- componentWillLoad() {
104
- if (this.defaultValue) {
105
- this.value = {
106
- key: this.defaultValue,
107
- };
174
+ get commentContent() {
175
+ var _a, _b;
176
+ 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}`);
177
+ }
178
+ clickListener(e) {
179
+ var _a, _b;
180
+ const isSelf = Generate.findEventPath(e, this.el);
181
+ const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
182
+ if (!isSelf && !isLinked && !this.keys.includes((_a = this.value) === null || _a === void 0 ? void 0 : _a.key)) {
183
+ (_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.hide();
184
+ return;
185
+ }
186
+ }
187
+ watchDefaultValueHandler(newValue) {
188
+ var _a, _b;
189
+ if (newValue) {
190
+ 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()); });
191
+ this.data = this.data.map(data => {
192
+ if (data.key === (newValue === null || newValue === void 0 ? void 0 : newValue.key)) {
193
+ data = newValue;
194
+ data.selected = true;
195
+ }
196
+ else {
197
+ data.selected = false;
198
+ }
199
+ return data;
200
+ });
201
+ this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item === null || item === void 0 ? void 0 : item.selected);
202
+ forceUpdate(this.el);
108
203
  }
109
204
  }
110
205
  async set(data) {
@@ -114,7 +209,7 @@ const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
114
209
  return this.value;
115
210
  }
116
211
  async setClear() {
117
- this.value = "";
212
+ this.value = null;
118
213
  return Promise.resolve();
119
214
  }
120
215
  async resetCaption() {
@@ -124,152 +219,117 @@ const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
124
219
  this.invalid = false;
125
220
  return Promise.resolve();
126
221
  }
127
- clickListener(e) {
128
- var _a, _b;
129
- const isSelf = Generate.findEventPath(e, this.el);
130
- const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
131
- 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()) {
132
- this.onCloseLateContent();
133
- return;
134
- }
222
+ onSelectItem(item) {
223
+ var _a;
224
+ this.invalid = false;
225
+ this.data = this.data.map(data => (Object.assign(Object.assign({}, data), { selected: data.key === item.key })));
226
+ this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => item === null || item === void 0 ? void 0 : item.selected);
227
+ this.onChangeDropdown.emit(this.value);
228
+ this.change.emit();
135
229
  }
136
230
  async handleInput(e) {
137
- var _a, _b, _c, _d;
231
+ var _a, _b, _c, _d, _e, _f, _g;
138
232
  const value = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
233
+ this.isOpenMenu = true;
139
234
  const maxLengthExceeded = (value === null || value === void 0 ? void 0 : value.length) >= +this.maxCharacterLimit;
140
235
  if (maxLengthExceeded) {
141
236
  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(); });
142
237
  if (item) {
143
- this.value = item;
144
- this._input.style.color = item.color;
145
- this.invalid = false;
146
- if (this.isLate()) {
147
- (_c = this.lateContent) === null || _c === void 0 ? void 0 : _c.show();
148
- await delay(60);
149
- document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
238
+ await ((_c = this.menuContent) === null || _c === void 0 ? void 0 : _c.hide());
239
+ if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
240
+ (_d = this.commentContent) === null || _d === void 0 ? void 0 : _d.show();
150
241
  }
151
- else {
152
- (_d = this.lateContent) === null || _d === void 0 ? void 0 : _d.hide();
153
- }
154
- this.onChangeDropdown.emit(item);
242
+ this.onSelectItem(item);
155
243
  }
156
244
  else {
245
+ this.invalid = true;
157
246
  this.value = e.target.value;
158
- this.content && this.content.show();
247
+ await ((_e = this.menuContent) === null || _e === void 0 ? void 0 : _e.show());
159
248
  this._input.style.color = "#ff0000";
160
- this.invalid = true;
161
249
  }
162
250
  }
163
251
  else {
164
- this.onCloseMainContent();
252
+ (_f = this.commentContent) === null || _f === void 0 ? void 0 : _f.hide();
253
+ (_g = this.menuContent) === null || _g === void 0 ? void 0 : _g.hide();
165
254
  this.value = null;
166
255
  this._input.style.color = "#000000";
167
256
  this.invalid = false;
168
257
  }
169
258
  this.change.emit();
170
259
  }
260
+ onClickSave() {
261
+ var _a;
262
+ (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide();
263
+ this.data = this.data.map(data => (Object.assign(Object.assign({}, data), (data.key === this.value.key && {
264
+ lateMin: this.value.lateMin,
265
+ comment: this.value.comment,
266
+ }))));
267
+ forceUpdate(this.el);
268
+ this.onChangeDropdown.emit(this.value);
269
+ this.change.emit();
270
+ }
171
271
  async onClick(item) {
172
272
  var _a, _b;
173
- this.value = item;
174
- this.invalid = false;
175
- this._input.style.color = item.color;
176
- this.onCloseMainContent();
177
- if (this.isLate()) {
178
- (_a = this.lateContent) === null || _a === void 0 ? void 0 : _a.show();
179
- await delay(60);
180
- document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
181
- }
182
- else {
183
- (_b = this.lateContent) === null || _b === void 0 ? void 0 : _b.hide();
273
+ if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
274
+ (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.show();
184
275
  }
185
- this.onChangeDropdown.emit(item);
186
- this.change.emit();
276
+ await ((_b = this.menuContent) === null || _b === void 0 ? void 0 : _b.hide());
277
+ this.onSelectItem(item);
187
278
  }
188
279
  render() {
189
- const { label, size, noCaption, captionType, captionError, caption, required, invalid, disabled, readonly, value, fullWidth, lateMinutes } = this;
190
- const color = invalid || captionType === "error" ? "red" : "primary";
191
- const theme = Generate.getTwColor({ color });
192
- const iconSizes = {
193
- [Bcm.Size.small]: "tw-text-2",
194
- [Bcm.Size.medium]: "tw-text-3 ",
195
- [Bcm.Size.large]: "tw-text-4 ",
196
- }[size];
197
- const fontSizes = {
198
- [Bcm.Size.small]: "tw-text-2",
199
- [Bcm.Size.medium]: "tw-text-3",
200
- [Bcm.Size.large]: "tw-text-4",
201
- }[size];
202
- const isError = invalid || captionType === "error";
203
- const RenderMainContent = () => {
280
+ var _a, _b, _c, _d, _e;
281
+ const { size, label, placeholder, required, disabled, readonly, _id, invalid, hideComment, noCaption, customErrorMessage, caption, captionType, captionError, hideCaption } = this;
282
+ const { base, inputArea, input, button, menu, menuItem, commentArea, disabledItem, content, selectedItem } = inputDropdownStyle({ size, invalid, hideComment, disabled });
283
+ const MenuTemplates = () => {
204
284
  var _a;
205
- return (h("bcm-linked", { id: this._id + "-input-dropdown-main-content", "target-id": this._id + "-dropdown-input-button", placement: "bottom-end" }, this.componentIsActive ? (h("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("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("span", { class: "tw-text-red-900" }, h("i", { class: iconSizes + " far fa-exclamation-circle" })), h("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
206
- _a.map(item => {
207
- var _a;
208
- return (h("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", {
209
- "tw-bg-primary-200": ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == item.key,
210
- }) }, h("span", null, " ", item.key), " - ", h("span", null, item.value)));
211
- }))) : null));
285
+ return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: menu() }, this.invalid && (h("li", { class: menuItem() + " tw-bg-red-100 hover:tw-bg-red-100" }, h("span", { class: "tw-text-red-900" }, h("i", { class: "far fa-exclamation-circle" })), h("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
286
+ _a.map((item) => (h(Fragment, null, !(item === null || item === void 0 ? void 0 : item.disabled) ? (h("li", { class: (item === null || item === void 0 ? void 0 : item.selected) ? selectedItem() : menuItem(), onClick: () => this.onClick(item) }, h("span", null, item.key), " - ", h("span", null, item.value))) : (h("li", { class: disabledItem() }, h("span", null, item.key), " - ", h("span", null, item.value)))))))) : null));
212
287
  };
213
- const RenderLateContent = () => {
214
- var _a;
215
- return (h("bcm-linked", { id: this._id + "-input-dropdown-late-content", "target-id": this._id, trigger: "custom", placement: "right", "onBcm-open": ({ detail }) => {
216
- var _a;
217
- if (detail) {
218
- (_a = this.el.querySelector("#" + this._id + "-input-dropdown-late-content-input")) === null || _a === void 0 ? void 0 : _a.onBcmFocus();
219
- }
220
- else {
221
- this._input.focus();
222
- }
223
- } }, this.componentIsActive ? (h("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("div", { class: "tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-3" }, h("header", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between" }, h("div", { class: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2" }, h("i", { class: "tw-text-size-4 fas fa-clock tw-text-amber-600" }), h("bcm-label", { class: "!tw-mb-0", size: "large", value: "Minutes Late", required: true })), h("div", { class: " tw-flex tw-h-4 tw-w-4 tw-flex-row tw-items-center tw-justify-center", onClick: () => this.onCloseLateContent() }, h("i", { class: "tw-text-size-4 fas fa-times tw-text-slate-600" }))), h("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 => {
224
- if (e.key === "Enter") {
225
- this.onClickSave();
226
- }
227
- } })), h("section", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end" }, h("bcm-button", { size: "small", variant: "save", color: "blue", disabled: +lateMinutes < 1, onClick: () => this.onClickSave() }, "Save")))) : null));
288
+ const CommentTemplate = () => {
289
+ var _a, _b, _c;
290
+ return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("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("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("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("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("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("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
228
291
  };
229
- return (h(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", {
230
- "tw-max-w-[86px]": size == Bcm.Size.small,
231
- "tw-max-w-[92px]": size == Bcm.Size.medium,
232
- "tw-max-w-[108px]": !fullWidth,
233
- "tw-max-w-none": fullWidth,
234
- }), onClick: () => (this.componentIsActive = true), onFocus: () => (this._input.focus(), (this.componentIsActive = true)) }, label && h("bcm-label", { htmlFor: this._id + "-dropdown-input", size: size, value: label, required: required }), h("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", {
235
- "tw-h-6 tw-pr-0.5 tw-py-0.5 tw-pl-1 tw-gap-1": size == Bcm.Size.small,
236
- "tw-h-7 tw-pr-0.5 tw-py-0.5 tw-pl-2 tw-gap-2": size == Bcm.Size.medium,
237
- "tw-h-10 tw-pr-[4px] tw-py-1 tw-pl-3 tw-gap-3": size == Bcm.Size.large,
238
- "hover:tw-border-default-600 hover:tw-bg-default-50": !disabled && !readonly && !isError,
239
- "tw-outline-none focus:tw-ring-2 focus:tw-ring-default-400": !disabled && !readonly && !isError,
240
- }) }, h("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("bcm-tooltip", { message: `${lateMinutes} ${pluralize("Minute", lateMinutes)} Late`, trigger: "hover" }, h("i", { class: iconSizes + " fas fa-clock", onClick: () => this.lateContent.show() }))), captionType == Bcm.Status.error && h("i", { class: iconSizes + " tw-text-default-500" + " fas fa-exclamation-circle" }), h("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("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", {
241
- "tw-h-[18px] tw-text-1 tw-leading-none": size == Bcm.Size.small,
242
- "tw-h-[22px] tw-text-2": size == Bcm.Size.medium,
243
- "tw-h-[30px] tw-text-2": size == Bcm.Size.large,
244
- }), "aria-label": "dropdown", "aria-haspopup": "true", "aria-expanded": "false", disabled: disabled || readonly, tabIndex: -1 }, h("i", { class: "fas fa-chevron-down" })), h(RenderMainContent, null), h(RenderLateContent, null)), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage })));
292
+ return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, h("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("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), h("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(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
293
+ var _a, _b;
294
+ if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) {
295
+ this.isOpenMenu = true;
296
+ (_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.show();
297
+ }
298
+ }, 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", {
299
+ "tw-cursor-pointer": (_e = this.value) === null || _e === void 0 ? void 0 : _e.key,
300
+ }) }, h("i", { class: "fas fa-comment" }))) : null), !hideCaption && h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
245
301
  }
246
302
  get el() { return this; }
303
+ static get watchers() { return {
304
+ "defaultValue": ["watchDefaultValueHandler"]
305
+ }; }
247
306
  static get style() { return inputDropdownCss; }
248
307
  }, [0, "bcm-input-dropdown", {
249
308
  "_id": [513, "id"],
250
- "value": [1032],
251
- "defaultValue": [1032, "default-value"],
252
- "lateKey": [1025, "late-key"],
309
+ "value": [1040],
310
+ "defaultValue": [1040],
311
+ "lateKeys": [1025, "late-keys"],
253
312
  "maxCharacterLimit": [1026, "max-character-limit"],
254
313
  "size": [1],
255
314
  "label": [1],
256
315
  "placeholder": [1],
316
+ "name": [1],
257
317
  "fullWidth": [516, "full-width"],
318
+ "hideComment": [516, "hide-comment"],
319
+ "hideCaption": [4, "hide-caption"],
258
320
  "disabled": [4],
259
321
  "required": [4],
260
322
  "readonly": [4],
261
- "data": [16],
323
+ "data": [1040],
262
324
  "caption": [1025],
263
325
  "noCaption": [1028, "no-caption"],
264
326
  "captionType": [1025, "caption-type"],
265
327
  "captionError": [1025, "caption-error"],
266
328
  "customErrorMessage": [1025, "custom-error-message"],
267
- "componentIsActive": [32],
268
- "invalid": [32],
269
329
  "captionCache": [32],
270
330
  "captionTypeCache": [32],
271
- "activeSaveButton": [32],
272
- "lateMinutes": [32],
331
+ "isOpenMenu": [32],
332
+ "invalid": [32],
273
333
  "set": [64],
274
334
  "get": [64],
275
335
  "setClear": [64],
@@ -279,39 +339,44 @@ function defineCustomElement$1() {
279
339
  if (typeof customElements === "undefined") {
280
340
  return;
281
341
  }
282
- const components = ["bcm-input-dropdown", "bcm-button", "bcm-colorful", "bcm-icon", "bcm-input", "bcm-label", "bcm-linked", "bcm-tooltip"];
342
+ const components = ["bcm-input-dropdown", "bcm-button", "bcm-colorful", "bcm-icon", "bcm-input", "bcm-label", "bcm-linked", "bcm-textarea", "bcm-tooltip"];
283
343
  components.forEach(tagName => { switch (tagName) {
284
344
  case "bcm-input-dropdown":
285
345
  if (!customElements.get(tagName)) {
286
- customElements.define(tagName, InputDropdown);
346
+ customElements.define(tagName, BcmInputDropdown$1);
287
347
  }
288
348
  break;
289
349
  case "bcm-button":
290
350
  if (!customElements.get(tagName)) {
291
- defineCustomElement$8();
351
+ defineCustomElement$9();
292
352
  }
293
353
  break;
294
354
  case "bcm-colorful":
295
355
  if (!customElements.get(tagName)) {
296
- defineCustomElement$7();
356
+ defineCustomElement$8();
297
357
  }
298
358
  break;
299
359
  case "bcm-icon":
300
360
  if (!customElements.get(tagName)) {
301
- defineCustomElement$6();
361
+ defineCustomElement$7();
302
362
  }
303
363
  break;
304
364
  case "bcm-input":
305
365
  if (!customElements.get(tagName)) {
306
- defineCustomElement$5();
366
+ defineCustomElement$6();
307
367
  }
308
368
  break;
309
369
  case "bcm-label":
310
370
  if (!customElements.get(tagName)) {
311
- defineCustomElement$4();
371
+ defineCustomElement$5();
312
372
  }
313
373
  break;
314
374
  case "bcm-linked":
375
+ if (!customElements.get(tagName)) {
376
+ defineCustomElement$4();
377
+ }
378
+ break;
379
+ case "bcm-textarea":
315
380
  if (!customElements.get(tagName)) {
316
381
  defineCustomElement$3();
317
382
  }
@@ -324,7 +389,7 @@ function defineCustomElement$1() {
324
389
  } });
325
390
  }
326
391
 
327
- const BcmInputDropdown = InputDropdown;
392
+ const BcmInputDropdown = BcmInputDropdown$1;
328
393
  const defineCustomElement = defineCustomElement$1;
329
394
 
330
395
  export { BcmInputDropdown, defineCustomElement };