bromcom-ui 2.7.38-rc.12 → 2.7.38-rc.14

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 (316) 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-1a570aa8.entry.js → p-047c35b1.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-0fb362d7.entry.js +5 -0
  5. package/dist/bromcom-ui/p-16b50160.js +1 -1
  6. package/dist/bromcom-ui/p-1ff8838d.entry.js +5 -0
  7. package/dist/bromcom-ui/p-27429bb5.entry.js +5 -0
  8. package/dist/bromcom-ui/{p-449e5749.entry.js → p-29866cdb.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-2a1f44d8.entry.js +5 -0
  10. package/dist/bromcom-ui/p-2a5b5ecc.entry.js +5 -0
  11. package/dist/bromcom-ui/p-335dd2b5.entry.js +5 -0
  12. package/dist/bromcom-ui/p-3cbeb4dc.entry.js +5 -0
  13. package/dist/bromcom-ui/{p-4f019757.entry.js → p-3ed25f2b.entry.js} +2 -2
  14. package/dist/bromcom-ui/p-4487e8c2.js +1 -1
  15. package/dist/bromcom-ui/{p-379c63de.js → p-44f3ca76.js} +1 -1
  16. package/dist/bromcom-ui/p-468af02f.entry.js +5 -0
  17. package/dist/bromcom-ui/p-480024c3.js +5 -0
  18. package/dist/bromcom-ui/p-4b2852a8.entry.js +5 -0
  19. package/dist/bromcom-ui/p-4c91002a.js +5 -0
  20. package/dist/bromcom-ui/p-4debe197.entry.js +5 -0
  21. package/dist/bromcom-ui/p-4f5acd80.entry.js +5 -0
  22. package/dist/bromcom-ui/p-503a376b.entry.js +5 -0
  23. package/dist/bromcom-ui/p-56898932.js +1 -1
  24. package/dist/bromcom-ui/p-58c108a5.entry.js +5 -0
  25. package/dist/bromcom-ui/p-5b664dec.js +5 -0
  26. package/dist/bromcom-ui/p-5bf68f57.entry.js +5 -0
  27. package/dist/bromcom-ui/p-5d70f446.entry.js +5 -0
  28. package/dist/bromcom-ui/{p-a183a09f.entry.js → p-5de651cc.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-5ebfa466.entry.js +5 -0
  30. package/dist/bromcom-ui/p-60947a22.entry.js +5 -0
  31. package/dist/bromcom-ui/p-67e6f5fe.entry.js +5 -0
  32. package/dist/bromcom-ui/p-687f8d9c.entry.js +5 -0
  33. package/dist/bromcom-ui/p-6d7be2d1.entry.js +5 -0
  34. package/dist/bromcom-ui/p-6e9e2e3b.entry.js +5 -0
  35. package/dist/bromcom-ui/{p-93812e5a.js → p-74bac994.js} +1 -1
  36. package/dist/bromcom-ui/p-882f8cb1.entry.js +5 -0
  37. package/dist/bromcom-ui/p-8b9d2bb3.entry.js +5 -0
  38. package/dist/bromcom-ui/p-9799c72f.entry.js +5 -0
  39. package/dist/bromcom-ui/p-98af14a9.entry.js +5 -0
  40. package/dist/bromcom-ui/p-a1c843ae.entry.js +5 -0
  41. package/dist/bromcom-ui/p-a373d8b6.entry.js +5 -0
  42. package/dist/bromcom-ui/p-a3b9fc0c.js +5 -0
  43. package/dist/bromcom-ui/p-a429e85b.js +1 -1
  44. package/dist/bromcom-ui/p-ab6d3082.entry.js +5 -0
  45. package/dist/bromcom-ui/p-ac1f9851.entry.js +5 -0
  46. package/dist/bromcom-ui/p-aff12492.entry.js +5 -0
  47. package/dist/bromcom-ui/p-b963626d.js +5 -0
  48. package/dist/bromcom-ui/p-ba73ad6b.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-6a4cf91a.js → p-bd031390.js} +1 -1
  50. package/dist/bromcom-ui/p-bdb0dfda.entry.js +5 -0
  51. package/dist/bromcom-ui/p-bef9e2fe.entry.js +5 -0
  52. package/dist/bromcom-ui/p-c0f70afa.entry.js +5 -0
  53. package/dist/bromcom-ui/p-ce1f522e.entry.js +5 -0
  54. package/dist/bromcom-ui/p-cebefc96.entry.js +5 -0
  55. package/dist/bromcom-ui/p-d01e8312.entry.js +5 -0
  56. package/dist/bromcom-ui/p-d651e723.js +5 -0
  57. package/dist/bromcom-ui/p-d73e3d1d.entry.js +5 -0
  58. package/dist/bromcom-ui/p-d8fd3bbb.entry.js +5 -0
  59. package/dist/bromcom-ui/p-d9baf5e7.entry.js +5 -0
  60. package/dist/bromcom-ui/p-dda54e92.entry.js +5 -0
  61. package/dist/bromcom-ui/p-e34ad7a7.entry.js +5 -0
  62. package/dist/bromcom-ui/p-e38087d9.entry.js +5 -0
  63. package/dist/bromcom-ui/p-e3bfaffd.entry.js +5 -0
  64. package/dist/bromcom-ui/p-e74b4689.entry.js +5 -0
  65. package/dist/bromcom-ui/p-ea21c68d.entry.js +5 -0
  66. package/dist/bromcom-ui/p-ef787294.entry.js +5 -0
  67. package/dist/cjs/{bcm-ab921827.js → bcm-634604e3.js} +4 -4
  68. package/dist/cjs/bcm-accordion.cjs.entry.js +3 -1
  69. package/dist/cjs/bcm-alert.cjs.entry.js +4 -3
  70. package/dist/cjs/bcm-attendance.cjs.entry.js +3 -1
  71. package/dist/cjs/bcm-avatar_2.cjs.entry.js +12 -11
  72. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -1
  73. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -6
  74. package/dist/cjs/bcm-button.cjs.entry.js +13 -12
  75. package/dist/cjs/bcm-card.cjs.entry.js +6 -5
  76. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +25 -24
  77. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -5
  78. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +11 -10
  79. package/dist/cjs/bcm-chip.cjs.entry.js +3 -2
  80. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -1
  81. package/dist/cjs/bcm-color-input.cjs.entry.js +7 -6
  82. package/dist/cjs/bcm-colorful_2.cjs.entry.js +10 -9
  83. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -3
  84. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -8
  85. package/dist/cjs/bcm-default.cjs.entry.js +3 -1
  86. package/dist/cjs/bcm-drawer.cjs.entry.js +9 -8
  87. package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -6
  88. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +5 -4
  89. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -4
  90. package/dist/cjs/bcm-form.cjs.entry.js +2 -2
  91. package/dist/cjs/{bcm-list.cjs.entry.js → bcm-icon_3.cjs.entry.js} +386 -115
  92. package/dist/cjs/bcm-input-custom.cjs.entry.js +73 -0
  93. package/dist/cjs/bcm-input.cjs.entry.js +12 -11
  94. package/dist/cjs/bcm-item.cjs.entry.js +5 -4
  95. package/dist/cjs/bcm-items.cjs.entry.js +4 -3
  96. package/dist/cjs/bcm-label_2.cjs.entry.js +39 -15
  97. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-menu.cjs.entry.js +9 -8
  99. package/dist/cjs/bcm-modal.cjs.entry.js +7 -6
  100. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +6 -5
  101. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -4
  102. package/dist/cjs/bcm-popover.cjs.entry.js +88 -38
  103. package/dist/cjs/bcm-progress.cjs.entry.js +5 -4
  104. package/dist/cjs/bcm-radio-group.cjs.entry.js +77 -211
  105. package/dist/cjs/bcm-radio.cjs.entry.js +35 -76
  106. package/dist/cjs/bcm-range.cjs.entry.js +6 -5
  107. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-skeleton.cjs.entry.js +3 -1
  109. package/dist/cjs/bcm-step.cjs.entry.js +3 -2
  110. package/dist/cjs/bcm-stepper.cjs.entry.js +54 -27
  111. package/dist/cjs/bcm-switch.cjs.entry.js +9 -8
  112. package/dist/cjs/bcm-tab-group.cjs.entry.js +160 -0
  113. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +87 -0
  114. package/dist/cjs/bcm-tab-item.cjs.entry.js +104 -0
  115. package/dist/cjs/bcm-tag.cjs.entry.js +15 -14
  116. package/dist/cjs/bcm-text.cjs.entry.js +63 -0
  117. package/dist/cjs/bcm-textarea.cjs.entry.js +7 -6
  118. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -3
  119. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  120. package/dist/cjs/color-helper-0e3e8ce5.js +86 -0
  121. package/dist/cjs/{color-helper-c9882bd8.js → colors-25c96ed6.js} +4 -81
  122. package/dist/cjs/{floating-ui-0ca84e74.js → floating-ui-c23acc6c.js} +2 -2
  123. package/dist/cjs/{generate-e8354325.js → generate-9739666b.js} +38 -1
  124. package/dist/cjs/{input-template-0c520e17.js → input-template-8307182a.js} +6 -6
  125. package/dist/cjs/{json-parse-decarator-c7342a6f.js → json-parse-decarator-7a7415e0.js} +1 -1
  126. package/dist/cjs/{label-template-e83fc65c.js → label-template-098a30a4.js} +3 -3
  127. package/dist/cjs/loader.cjs.js +1 -1
  128. package/dist/cjs/{number-helper-da6fbfb4.js → number-helper-063f8c7b.js} +1 -1
  129. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -6
  130. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -4
  131. package/dist/cjs/{popover-placement-5db8811b.js → popover-placement-69d37a5f.js} +1 -1
  132. package/dist/cjs/{slot-template-175c51fb.js → slot-template-7a07f865.js} +1 -1
  133. package/dist/cjs/{stepper-states-012f44b4.js → stepper-states-7dd1eab4.js} +1 -1
  134. package/dist/cjs/{string-helper-087a8134.js → string-helper-71b10c53.js} +2 -2
  135. package/dist/cjs/{tooltip-helper-aa6e37cc.js → tooltip-helper-01c69059.js} +43 -13
  136. package/dist/cjs/{validators-21a28841.js → validators-861b4246.js} +1 -1
  137. package/dist/collection/collection-manifest.json +2 -1
  138. package/dist/collection/components/external-source/bcm-toast-helper.js +20 -0
  139. package/dist/collection/components/external-source/test.js/bcm-toast-helper.js +20 -0
  140. package/dist/collection/components/molecules/popover/popover.js +106 -1
  141. package/dist/collection/components/molecules/radio/{group.js → radio-group.js} +163 -246
  142. package/dist/collection/components/molecules/radio/radio.js +42 -132
  143. package/dist/collection/components/molecules/search/search.js +20 -1
  144. package/dist/collection/components/molecules/stepper/stepper.js +55 -35
  145. package/dist/collection/components/molecules/tooltip/tooltip.js +108 -1
  146. package/dist/collection/components/organism/list/list.js +21 -2
  147. package/dist/collection/components/organism/states/bcm-list2.states.js +1 -1
  148. package/dist/collection/components/other/input-custom/input-custom.js +249 -0
  149. package/dist/collection/helper/generate.js +36 -0
  150. package/dist/collection/helper/popover-helper.js +57 -29
  151. package/dist/collection/helper/tooltip-helper.js +33 -4
  152. package/dist/collection/templates/list-template.js +2 -2
  153. package/dist/components/bcm-input-custom.d.ts +11 -0
  154. package/dist/components/bcm-input-custom.js +114 -0
  155. package/dist/components/bcm-list.js +9 -7
  156. package/dist/components/bcm-popover.js +82 -29
  157. package/dist/components/bcm-radio-group.js +88 -230
  158. package/dist/components/bcm-stepper.js +51 -33
  159. package/dist/components/bcm-tab.js +1 -1
  160. package/dist/components/bcm-tabs-content.js +1 -1
  161. package/dist/components/bcm-tabs.js +1 -1
  162. package/dist/components/bcm-tag.js +1 -1
  163. package/dist/components/color-helper.js +1 -405
  164. package/dist/{esm/color-helper-b5e9aa56.js → components/colors2.js} +2 -79
  165. package/dist/components/generate.js +37 -1
  166. package/dist/components/index.d.ts +2 -1
  167. package/dist/components/index.js +1 -0
  168. package/dist/components/input-template.js +1 -14
  169. package/dist/components/radio.js +38 -82
  170. package/dist/components/search.js +3 -1
  171. package/dist/components/tooltip-helper.js +33 -3
  172. package/dist/components/tooltip.js +28 -2
  173. package/dist/components/types.js +14 -27
  174. package/dist/components/types2.js +25 -25
  175. package/dist/components/types3.js +32 -0
  176. package/dist/esm/bcm-9f50af9c.js +1 -1
  177. package/dist/esm/bcm-accordion.entry.js +3 -1
  178. package/dist/esm/bcm-alert.entry.js +2 -1
  179. package/dist/esm/bcm-attendance.entry.js +3 -1
  180. package/dist/esm/bcm-avatar_2.entry.js +6 -5
  181. package/dist/esm/bcm-breadcrumb.entry.js +2 -1
  182. package/dist/esm/bcm-button-group.entry.js +3 -2
  183. package/dist/esm/bcm-button.entry.js +4 -3
  184. package/dist/esm/bcm-card.entry.js +3 -2
  185. package/dist/esm/bcm-checkbox-group.entry.js +9 -8
  186. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -2
  187. package/dist/esm/bcm-checkbox_2.entry.js +4 -3
  188. package/dist/esm/bcm-chip.entry.js +3 -2
  189. package/dist/esm/bcm-collapse.entry.js +2 -1
  190. package/dist/esm/bcm-color-input.entry.js +5 -4
  191. package/dist/esm/bcm-colorful_2.entry.js +6 -5
  192. package/dist/esm/bcm-date-picker.entry.js +3 -2
  193. package/dist/esm/bcm-datetime-picker.entry.js +3 -2
  194. package/dist/esm/bcm-default.entry.js +3 -1
  195. package/dist/esm/bcm-drawer.entry.js +6 -5
  196. package/dist/esm/bcm-dropdown.entry.js +4 -3
  197. package/dist/esm/bcm-expansion-panel.entry.js +3 -2
  198. package/dist/esm/bcm-form-2.entry.js +3 -2
  199. package/dist/esm/{bcm-list.entry.js → bcm-icon_3.entry.js} +319 -50
  200. package/dist/esm/bcm-input-custom.entry.js +69 -0
  201. package/dist/esm/bcm-input.entry.js +6 -5
  202. package/dist/esm/bcm-item.entry.js +4 -3
  203. package/dist/esm/bcm-items.entry.js +3 -2
  204. package/dist/esm/bcm-label_2.entry.js +32 -8
  205. package/dist/esm/bcm-link.entry.js +1 -1
  206. package/dist/esm/bcm-menu.entry.js +6 -5
  207. package/dist/esm/bcm-modal.entry.js +3 -2
  208. package/dist/esm/bcm-popconfirm-box.entry.js +3 -2
  209. package/dist/esm/bcm-popconfirm.entry.js +3 -2
  210. package/dist/esm/bcm-popover.entry.js +85 -35
  211. package/dist/esm/bcm-progress.entry.js +4 -3
  212. package/dist/esm/bcm-radio-group.entry.js +72 -206
  213. package/dist/esm/bcm-radio.entry.js +35 -76
  214. package/dist/esm/bcm-range.entry.js +3 -2
  215. package/dist/esm/bcm-skeleton.entry.js +3 -1
  216. package/dist/esm/bcm-step.entry.js +3 -2
  217. package/dist/esm/bcm-stepper.entry.js +54 -27
  218. package/dist/esm/bcm-switch.entry.js +3 -2
  219. package/dist/esm/bcm-tab-group.entry.js +156 -0
  220. package/dist/esm/bcm-tab-item-header.entry.js +83 -0
  221. package/dist/esm/bcm-tab-item.entry.js +100 -0
  222. package/dist/esm/bcm-tag.entry.js +4 -3
  223. package/dist/esm/bcm-text.entry.js +59 -0
  224. package/dist/esm/bcm-textarea.entry.js +4 -3
  225. package/dist/esm/bcm-time-picker.entry.js +3 -2
  226. package/dist/esm/bromcom-ui.js +1 -1
  227. package/dist/esm/color-helper-0277e11a.js +84 -0
  228. package/dist/esm/colors-fabca483.js +411 -0
  229. package/dist/esm/floating-ui-4a49ea46.js +1 -1
  230. package/dist/esm/{generate-6eac28ac.js → generate-0dc9b243.js} +38 -1
  231. package/dist/esm/{input-template-9b4ba80a.js → input-template-de00be57.js} +2 -2
  232. package/dist/esm/{json-parse-decarator-3dd0097d.js → json-parse-decarator-5b16dfec.js} +1 -1
  233. package/dist/esm/label-template-eed2dd69.js +1 -1
  234. package/dist/esm/loader.js +1 -1
  235. package/dist/esm/{number-helper-fa11a9ce.js → number-helper-282f0beb.js} +1 -1
  236. package/dist/esm/old-bcm-popover-box.entry.js +3 -2
  237. package/dist/esm/old-bcm-popover.entry.js +3 -2
  238. package/dist/esm/{stepper-states-ee109bb5.js → stepper-states-fdf47afe.js} +1 -1
  239. package/dist/esm/string-helper-0fb7ff20.js +1 -1
  240. package/dist/esm/{tooltip-helper-e6320e27.js → tooltip-helper-4e2db0c0.js} +38 -8
  241. package/dist/esm/{validators-285ba427.js → validators-089d15b9.js} +1 -1
  242. package/dist/types/components/external-source/bcm-toast-helper.d.ts +12 -0
  243. package/dist/types/components/external-source/test.js/bcm-toast-helper.d.ts +12 -0
  244. package/dist/types/components/molecules/popover/popover.d.ts +10 -1
  245. package/dist/types/components/molecules/radio/{group.d.ts → radio-group.d.ts} +19 -27
  246. package/dist/types/components/molecules/radio/radio.d.ts +5 -11
  247. package/dist/types/components/molecules/search/search.d.ts +1 -0
  248. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -3
  249. package/dist/types/components/molecules/tooltip/tooltip.d.ts +10 -1
  250. package/dist/types/components/organism/list/list.d.ts +1 -0
  251. package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
  252. package/dist/types/components.d.ts +86 -39
  253. package/dist/types/helper/generate.d.ts +2 -0
  254. package/dist/types/helper/popover-helper.d.ts +13 -3
  255. package/dist/types/helper/tooltip-helper.d.ts +13 -3
  256. package/dist/types/templates/list-template.d.ts +1 -0
  257. package/package.json +1 -1
  258. package/dist/bromcom-ui/p-0a1803dc.entry.js +0 -5
  259. package/dist/bromcom-ui/p-0bc6e2f5.entry.js +0 -5
  260. package/dist/bromcom-ui/p-0fdfcace.entry.js +0 -5
  261. package/dist/bromcom-ui/p-137be1e1.entry.js +0 -5
  262. package/dist/bromcom-ui/p-14362c24.entry.js +0 -5
  263. package/dist/bromcom-ui/p-1a561023.entry.js +0 -5
  264. package/dist/bromcom-ui/p-1a70668b.entry.js +0 -5
  265. package/dist/bromcom-ui/p-1e26b3c2.entry.js +0 -5
  266. package/dist/bromcom-ui/p-2412bd5c.entry.js +0 -5
  267. package/dist/bromcom-ui/p-27b0f699.entry.js +0 -5
  268. package/dist/bromcom-ui/p-2b600fc7.entry.js +0 -5
  269. package/dist/bromcom-ui/p-2c41c19a.js +0 -5
  270. package/dist/bromcom-ui/p-2efec9cd.entry.js +0 -5
  271. package/dist/bromcom-ui/p-2f37531f.entry.js +0 -5
  272. package/dist/bromcom-ui/p-38b78279.entry.js +0 -5
  273. package/dist/bromcom-ui/p-3b792202.entry.js +0 -5
  274. package/dist/bromcom-ui/p-4404643e.entry.js +0 -5
  275. package/dist/bromcom-ui/p-46e84156.entry.js +0 -5
  276. package/dist/bromcom-ui/p-51a66321.entry.js +0 -5
  277. package/dist/bromcom-ui/p-591a3dc6.entry.js +0 -5
  278. package/dist/bromcom-ui/p-5ba939ca.entry.js +0 -5
  279. package/dist/bromcom-ui/p-5e1931dc.entry.js +0 -5
  280. package/dist/bromcom-ui/p-6af9e02c.entry.js +0 -5
  281. package/dist/bromcom-ui/p-6afcd65a.entry.js +0 -5
  282. package/dist/bromcom-ui/p-6ddfde20.entry.js +0 -5
  283. package/dist/bromcom-ui/p-789fc8e8.entry.js +0 -5
  284. package/dist/bromcom-ui/p-79bab05d.entry.js +0 -5
  285. package/dist/bromcom-ui/p-8fd763a3.entry.js +0 -5
  286. package/dist/bromcom-ui/p-9d53495c.entry.js +0 -5
  287. package/dist/bromcom-ui/p-9e703aee.entry.js +0 -5
  288. package/dist/bromcom-ui/p-a0a01753.entry.js +0 -5
  289. package/dist/bromcom-ui/p-a25c1b4d.entry.js +0 -5
  290. package/dist/bromcom-ui/p-a8d1397d.js +0 -5
  291. package/dist/bromcom-ui/p-bccbe379.entry.js +0 -5
  292. package/dist/bromcom-ui/p-bd743afa.entry.js +0 -5
  293. package/dist/bromcom-ui/p-bde01e0f.entry.js +0 -5
  294. package/dist/bromcom-ui/p-c5339964.entry.js +0 -5
  295. package/dist/bromcom-ui/p-c761de15.js +0 -5
  296. package/dist/bromcom-ui/p-cd9f99ce.entry.js +0 -5
  297. package/dist/bromcom-ui/p-cff1f0c2.entry.js +0 -5
  298. package/dist/bromcom-ui/p-d2449289.js +0 -5
  299. package/dist/bromcom-ui/p-d5f271e1.entry.js +0 -5
  300. package/dist/bromcom-ui/p-d76e5c47.entry.js +0 -5
  301. package/dist/bromcom-ui/p-d86f622a.entry.js +0 -5
  302. package/dist/bromcom-ui/p-d9d8f76b.entry.js +0 -5
  303. package/dist/bromcom-ui/p-e52a816b.js +0 -5
  304. package/dist/bromcom-ui/p-f30c13b4.entry.js +0 -5
  305. package/dist/bromcom-ui/p-fb24c0ec.entry.js +0 -5
  306. package/dist/bromcom-ui/p-fc1c823e.entry.js +0 -5
  307. package/dist/cjs/bcm-icon_5.cjs.entry.js +0 -378
  308. package/dist/cjs/bcm-search.cjs.entry.js +0 -257
  309. package/dist/collection/components/molecules/radio/group.css +0 -802
  310. package/dist/collection/components/molecules/radio/radio.css +0 -1287
  311. package/dist/collection/components/molecules/radio/types.js +0 -30
  312. package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
  313. package/dist/esm/bcm-icon_5.entry.js +0 -370
  314. package/dist/esm/bcm-search.entry.js +0 -253
  315. package/dist/types/components/molecules/radio/types.d.ts +0 -29
  316. package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
@@ -0,0 +1,114 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+ import { I as IsLoad } from './is-load-decorator.js';
7
+ import { G as Generate } from './generate.js';
8
+ import { c as classnames } from './index2.js';
9
+ import { d as defineCustomElement$4 } from './icon.js';
10
+ import { d as defineCustomElement$3 } from './label.js';
11
+ import { d as defineCustomElement$2 } from './tooltip.js';
12
+
13
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
16
+ r = Reflect.decorate(decorators, target, key, desc);
17
+ else
18
+ for (var i = decorators.length - 1; i >= 0; i--)
19
+ if (d = decorators[i])
20
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ const BcmInputCustom$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
24
+ constructor() {
25
+ super();
26
+ this.__registerHost();
27
+ this.handleFocus = () => {
28
+ this.hasFocus = true;
29
+ };
30
+ this.handleBlur = () => {
31
+ this.hasFocus = false;
32
+ };
33
+ this.handleChange = (e) => {
34
+ this.value = e.target.value;
35
+ console.log(e);
36
+ };
37
+ this.handleInput = (e) => {
38
+ // this.value = (e.target as HTMLInputElement).value;
39
+ console.log(e);
40
+ };
41
+ this._id = Generate.UID();
42
+ this.name = undefined;
43
+ this.value = undefined;
44
+ this.type = "text";
45
+ this.label = undefined;
46
+ this.required = false;
47
+ this.disabled = false;
48
+ this.readonly = false;
49
+ this.placeholder = undefined;
50
+ this.fullwidth = false;
51
+ this.hasFocus = false;
52
+ }
53
+ render() {
54
+ const { _id, type, name, value, label, required, fullwidth, placeholder, disabled, readonly } = this;
55
+ return (h(Host, { class: classnames("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col", {
56
+ "tw-max-w-full": fullwidth,
57
+ }) }, label && h("bcm-label", { value: label, required: required, htmlFor: _id }), h("div", { class: classnames("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600", {
58
+ "tw-cursor-not-allowed tw-bg-secondary-50": this.disabled,
59
+ "tw-cursor-text": !this.disabled,
60
+ "tw-cursor-default tw-bg-secondary-50": this.readonly,
61
+ "tw-border-primary-500 tw-bg-secondary-50": this.hasFocus,
62
+ "tw-border-secondary-300 tw-bg-white": !this.hasFocus,
63
+ }) }, h("input", { id: _id, name: name, type: type, value: value, "data-value": value, placeholder: placeholder, required: required, disabled: disabled, readonly: readonly, class: classnames("tw-text-overflow-ellipsis", "tw-rounded-none", "tw-flex-1", "tw-cursor-inherit", "tw-w-full", "tw-appearance-none", "tw-overflow-hidden", "tw-whitespace-nowrap", "tw-border-none", "tw-bg-transparent", "tw-p-2", "tw-text-secondary-600", "tw-placeholder-secondary-300", "tw-outline-none"), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: e => this.handleChange(e), onInput: this.handleInput }))));
64
+ }
65
+ get el() { return this; }
66
+ }, [0, "bcm-input-custom", {
67
+ "_id": [1537, "id"],
68
+ "name": [1],
69
+ "value": [1025],
70
+ "type": [1],
71
+ "label": [1],
72
+ "required": [4],
73
+ "disabled": [4],
74
+ "readonly": [4],
75
+ "placeholder": [1],
76
+ "fullwidth": [4],
77
+ "hasFocus": [32]
78
+ }]);
79
+ __decorate([
80
+ IsLoad()
81
+ ], BcmInputCustom$1.prototype, "el", void 0);
82
+ function defineCustomElement$1() {
83
+ if (typeof customElements === "undefined") {
84
+ return;
85
+ }
86
+ const components = ["bcm-input-custom", "bcm-icon", "bcm-label", "bcm-tooltip"];
87
+ components.forEach(tagName => { switch (tagName) {
88
+ case "bcm-input-custom":
89
+ if (!customElements.get(tagName)) {
90
+ customElements.define(tagName, BcmInputCustom$1);
91
+ }
92
+ break;
93
+ case "bcm-icon":
94
+ if (!customElements.get(tagName)) {
95
+ defineCustomElement$4();
96
+ }
97
+ break;
98
+ case "bcm-label":
99
+ if (!customElements.get(tagName)) {
100
+ defineCustomElement$3();
101
+ }
102
+ break;
103
+ case "bcm-tooltip":
104
+ if (!customElements.get(tagName)) {
105
+ defineCustomElement$2();
106
+ }
107
+ break;
108
+ } });
109
+ }
110
+
111
+ const BcmInputCustom = BcmInputCustom$1;
112
+ const defineCustomElement = defineCustomElement$1;
113
+
114
+ export { BcmInputCustom, defineCustomElement };
@@ -16,9 +16,9 @@ import { p as pluralize, d as delay } from './utils.js';
16
16
  import { B as Bcm, a as Bcm$1 } from './bcm.js';
17
17
  import { C as CaptionTemplate } from './caption-template.js';
18
18
  import { c as classnames } from './index2.js';
19
- import './input-template.js';
20
- import { L as LabelTemplate } from './label-template.js';
21
19
  import './types.js';
20
+ import { L as LabelTemplate } from './label-template.js';
21
+ import './types2.js';
22
22
  import { c as createStore } from './index3.js';
23
23
  import { T as Tooltip } from './tooltip-helper.js';
24
24
  import { d as defineCustomElement$3 } from './icon.js';
@@ -111,7 +111,7 @@ const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selecte
111
111
  item.items.map((item) => (h(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
112
112
  };
113
113
 
114
- const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, data, width, height, size, searchPlaceholder, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, }) => {
114
+ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, }) => {
115
115
  const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
116
116
  const setScrollHeight = () => {
117
117
  const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
@@ -127,7 +127,7 @@ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, ch
127
127
  };
128
128
  return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
129
129
  data && searchable && (h("section", { class: "bcm-list__container-search" },
130
- h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, searchIsOnlyChilds: searchIsOnlyChilds }))),
130
+ h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
131
131
  h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } },
132
132
  h("div", { style: setScrollHeight() },
133
133
  checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" },
@@ -325,7 +325,7 @@ const findItem = (id, itemId, items) => {
325
325
  if (dataSource) {
326
326
  dataSource.forEach(item => {
327
327
  if (itemId.includes(item.id)) {
328
- checkedProcess(id, item, true);
328
+ checkedProcess(id, item);
329
329
  if (item.parentId) {
330
330
  indeterminateStatus(id, item.parentId);
331
331
  }
@@ -1061,6 +1061,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1061
1061
  this.placeholder = 'Choose an option';
1062
1062
  this.searchPlaceholder = 'Search';
1063
1063
  this.searchIsOnlyChilds = false;
1064
+ this.minSearchLength = 2;
1064
1065
  this.clearable = false;
1065
1066
  this.caption = undefined;
1066
1067
  this.noCaption = false;
@@ -1545,7 +1546,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1545
1546
  const checklist = (await this.getCheckedList()).nestedResult;
1546
1547
  const filter = Generate.convertIdsToNestedData(ids, checklist);
1547
1548
  this.returnFilterData = await listState.filterData(this._id, filter, null, true);
1548
- this.searchFound = ids.length || 0;
1549
+ this.searchFound = (ids === null || ids === void 0 ? void 0 : ids.length) || 0;
1549
1550
  this.limit = 500;
1550
1551
  this.searchGetParents = null;
1551
1552
  await delay(1000);
@@ -1762,7 +1763,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1762
1763
  '--min-height': openedType ? 'inherit' : this.minHeight,
1763
1764
  } }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == 'select' && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: classnames('bcm-list__input-container', { 'type-single': !checkboxes, 'value-empty': !this.value }) }, this.checkboxes && h("span", { id: `bcm-list-input-tag-container-${this._id}`, class: "bcm-list__input-tag-container" }), this.checkboxes && !this.value && h("span", { class: "bcm-list__input-placeholder" }, this.placeholder), !this.checkboxes && (this.value ? this.inputText : h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: classnames('bcm-list__input-buttons', {
1764
1765
  disabled: disabled,
1765
- }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (h("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == 'autocomplete' ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1766
+ }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (h("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == 'autocomplete' ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1766
1767
  }
1767
1768
  get el() { return this; }
1768
1769
  static get watchers() { return {
@@ -1806,6 +1807,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1806
1807
  "placeholder": [1025],
1807
1808
  "searchPlaceholder": [1025, "search-placeholder"],
1808
1809
  "searchIsOnlyChilds": [1028, "search-is-only-childs"],
1810
+ "minSearchLength": [2, "min-search-length"],
1809
1811
  "clearable": [1028],
1810
1812
  "caption": [1025],
1811
1813
  "noCaption": [1028, "no-caption"],
@@ -2,7 +2,7 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
6
6
  import { I as IsLoad } from './is-load-decorator.js';
7
7
  import { C as ColorHelper } from './color-helper.js';
8
8
  import './validators.js';
@@ -11,31 +11,39 @@ import './number-helper.js';
11
11
  import { S as StringHelper } from './string-helper.js';
12
12
  import './element-dragger.js';
13
13
  import { a as Bcm } from './bcm.js';
14
+ import { d as delay } from './utils.js';
14
15
  import { F as FloatingUI } from './floating-ui.js';
15
16
 
16
17
  class Popover {
17
- constructor({ content, message, targetId, placement = 'top', color = 'slate-700', trigger = 'none' }) {
18
+ constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { } }) {
19
+ this.destroy = () => {
20
+ this.el = document.getElementById(this.id);
21
+ if (this.el) {
22
+ this.el.remove();
23
+ this.emitHide();
24
+ }
25
+ this.removeListener();
26
+ };
18
27
  this.bgColor = () => ColorHelper.twColor(this.color, 700);
19
28
  this.exepcitonColors = {
20
- white: 'slate-300',
21
- black: 'slate-700',
29
+ white: "slate-300",
30
+ black: "slate-700",
22
31
  };
23
32
  this.target = () => document.getElementById(this.targetId);
24
33
  this.init = () => {
25
- console.log(this.content, this.message);
26
34
  const inner = `<div class="tw-z-[1] tw-rounded tw-py-2 tw-bg-${this.bgColor()}">
27
- ${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ''}
28
- ${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ''}
35
+ ${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ""}
36
+ ${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ""}
29
37
  </div>`;
30
- this.el = Generate.createElement('div', {
31
- 'id': `${this.targetId}-popover-box`,
32
- 'class': `
38
+ this.el = Generate.createElement("div", {
39
+ "id": `${this.targetId}-popover-box`,
40
+ "class": `
33
41
  tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
34
42
  tw-shadow`,
35
- 'role': 'popover',
36
- 'aria-hidden': 'true',
37
- 'style': `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
38
- 'innerHTML': inner,
43
+ "role": "popover",
44
+ "aria-hidden": "true",
45
+ "style": `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
46
+ "innerHTML": inner,
39
47
  });
40
48
  };
41
49
  this.update = () => {
@@ -46,26 +54,38 @@ class Popover {
46
54
  }
47
55
  };
48
56
  this.listener = () => {
49
- window.addEventListener('resize', this.calculatePosition.bind(this));
50
- window.addEventListener('scroll', this.calculatePosition.bind(this), true);
51
- window.addEventListener('wheel', this.calculatePosition.bind(this));
57
+ window.addEventListener("resize", this.calculatePosition.bind(this));
58
+ window.addEventListener("scroll", this.calculatePosition.bind(this), true);
59
+ window.addEventListener("wheel", this.calculatePosition.bind(this));
52
60
  if (this.trigger && this.target()) {
53
61
  switch (this.trigger) {
54
- case 'click':
55
- this.target().addEventListener('click', this.toggle.bind(this));
62
+ case "click":
63
+ this.target().addEventListener("click", this.toggle.bind(this));
56
64
  break;
57
- case 'hover':
58
- this.target().addEventListener('mouseenter', this.show.bind(this));
59
- this.target().addEventListener('mouseleave', this.hide.bind(this));
65
+ case "hover":
66
+ this.target().addEventListener("mouseenter", this.show.bind(this));
67
+ this.target().addEventListener("mouseleave", this.hide.bind(this));
60
68
  break;
61
- case 'focus':
62
- this.target().addEventListener('focus', this.show.bind(this), true);
63
- this.target().addEventListener('blur', this.hide.bind(this), true);
69
+ case "focus":
70
+ this.target().addEventListener("focus", this.show.bind(this), true);
71
+ this.target().addEventListener("blur", this.hide.bind(this), true);
64
72
  break;
65
73
  }
66
74
  }
67
75
  this.calculatePosition();
68
76
  };
77
+ this.removeListener = () => {
78
+ window.removeEventListener("resize", this.calculatePosition.bind(this));
79
+ window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
80
+ window.removeEventListener("wheel", this.calculatePosition.bind(this));
81
+ if (this.target()) {
82
+ this.target().removeEventListener("click", this.toggle.bind(this));
83
+ this.target().removeEventListener("mouseenter", this.show.bind(this));
84
+ this.target().removeEventListener("mouseleave", this.hide.bind(this));
85
+ this.target().removeEventListener("focus", this.show.bind(this), true);
86
+ this.target().removeEventListener("blur", this.hide.bind(this), true);
87
+ }
88
+ };
69
89
  this.calculatePosition = () => {
70
90
  this.el = document.getElementById(this.id);
71
91
  if (this.el) {
@@ -79,19 +99,23 @@ class Popover {
79
99
  });
80
100
  }
81
101
  };
82
- this.show = () => {
102
+ this.show = async () => {
83
103
  if (this.message) {
84
104
  this.init();
105
+ await delay(this.openDelay);
85
106
  this.calculatePosition();
107
+ this.emitShow();
86
108
  }
87
109
  else {
88
110
  this.hide();
89
111
  }
90
112
  };
91
- this.hide = () => {
113
+ this.hide = async () => {
92
114
  this.el = document.getElementById(this.id);
93
115
  if (this.el) {
116
+ await delay(this.closeDelay);
94
117
  this.el.remove();
118
+ this.emitHide();
95
119
  }
96
120
  };
97
121
  this.toggle = () => {
@@ -109,7 +133,12 @@ class Popover {
109
133
  this.placement = placement;
110
134
  this.color = color;
111
135
  this.trigger = trigger;
112
- this.id = targetId + '-popover-box';
136
+ this.id = targetId + "-popover-box";
137
+ this.openDelay = openDelay;
138
+ this.closeDelay = closeDelay;
139
+ this.emitShow = emitShow;
140
+ this.emitHide = emitHide;
141
+ Generate.observeElementRemoval(document.getElementById(this.targetId), this.destroy.bind(this));
113
142
  }
114
143
  }
115
144
 
@@ -127,6 +156,8 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
127
156
  constructor() {
128
157
  super();
129
158
  this.__registerHost();
159
+ this.bcmPopoverShow = createEvent(this, "bcmPopoverShow", 7);
160
+ this.bcmPopoverHide = createEvent(this, "bcmPopoverHide", 7);
130
161
  this._id = Generate.UID();
131
162
  this.message = "";
132
163
  this.content = "";
@@ -134,13 +165,29 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
134
165
  this.trigger = Bcm.TriggerType.click;
135
166
  this.open = false;
136
167
  this.color = "white";
168
+ this.targetId = undefined;
169
+ this.openDelay = 0;
170
+ this.closeDelay = 0;
171
+ this.popover = undefined;
172
+ }
173
+ emitShow() {
174
+ this.bcmPopoverShow.emit();
175
+ }
176
+ emitHide() {
177
+ this.bcmPopoverHide.emit();
178
+ }
179
+ componentWillLoad() {
137
180
  this.popover = new Popover({
138
- targetId: this._id,
181
+ targetId: this.targetId || this._id,
139
182
  content: this.content,
140
183
  message: this.message,
141
184
  placement: this.placement,
142
185
  color: this.color,
143
186
  trigger: this.trigger,
187
+ openDelay: this.openDelay,
188
+ closeDelay: this.closeDelay,
189
+ emitShow: () => this.emitShow(),
190
+ emitHide: () => this.emitHide(),
144
191
  });
145
192
  }
146
193
  componentDidLoad() {
@@ -155,6 +202,9 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
155
202
  this.popover.trigger = trigger;
156
203
  this.popover.update();
157
204
  }
205
+ disconnectedCallback() {
206
+ this.popover.destroy();
207
+ }
158
208
  async show() {
159
209
  this.popover.show();
160
210
  }
@@ -176,6 +226,9 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
176
226
  "trigger": [1],
177
227
  "open": [1028],
178
228
  "color": [1],
229
+ "targetId": [1, "target-id"],
230
+ "openDelay": [2, "open-delay"],
231
+ "closeDelay": [2, "close-delay"],
179
232
  "popover": [32],
180
233
  "show": [64],
181
234
  "hide": [64],