bromcom-ui 2.9.0-rc.3 → 2.9.0-rc.5

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 (274) 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-0543a86f.js +5 -0
  4. package/dist/bromcom-ui/p-0a528362.entry.js +5 -0
  5. package/dist/bromcom-ui/{p-04410e89.entry.js → p-0c549bd0.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-161864f8.entry.js → p-0d4372c9.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-8c9d109c.entry.js → p-15758356.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-259ede50.entry.js → p-179af180.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-1a04159f.entry.js +5 -0
  10. package/dist/bromcom-ui/{p-9e64286c.entry.js → p-1a405289.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-5648b456.entry.js → p-1b1f4b44.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  13. package/dist/bromcom-ui/p-24cffc16.entry.js +13 -0
  14. package/dist/bromcom-ui/{p-2db9415f.entry.js → p-25f9928a.entry.js} +1 -1
  15. package/dist/bromcom-ui/p-285722ad.entry.js +5 -0
  16. package/dist/bromcom-ui/{p-d9dfbdae.entry.js → p-29a12785.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-cfddaef7.entry.js → p-2a02b473.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-2fc584c4.js +5 -0
  19. package/dist/bromcom-ui/{p-dfb4b928.entry.js → p-365eec45.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-73dc124b.js → p-38972c46.js} +1 -1
  21. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  22. package/dist/bromcom-ui/{p-159e5357.js → p-53448351.js} +1 -1
  23. package/dist/bromcom-ui/{p-276638cd.entry.js → p-546f5f82.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-13d9bcdb.entry.js → p-5855b125.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  26. package/dist/bromcom-ui/{p-4cd8a7c8.entry.js → p-5c3e9ac9.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-c0a97e15.entry.js → p-61172e12.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-e74a2576.entry.js → p-65318f25.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-663766cf.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-30788121.entry.js → p-6c3e9e10.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-a471cdb2.entry.js → p-721e0cb5.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-02ee5833.entry.js → p-7bff7371.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-b198b3d5.entry.js → p-8260eda6.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-1647559e.entry.js → p-8bcfe3b3.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-4a8c583d.entry.js → p-8e2e77ca.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-90e5c655.js +5 -0
  37. package/dist/bromcom-ui/p-947c78e3.js +5 -0
  38. package/dist/bromcom-ui/{p-4876c706.entry.js → p-96614f57.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-2989694b.entry.js → p-9d98d32d.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-b45a0db2.entry.js → p-9e05f845.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-baa25b34.entry.js → p-a02c333f.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-9e1fa716.entry.js → p-a1335bd5.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-400dcae2.entry.js → p-a3b54a22.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-454b49ef.entry.js → p-a4731c71.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-a5953ecd.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-3d5631ec.js → p-a8aaa382.js} +1 -1
  47. package/dist/bromcom-ui/{p-30a3320f.entry.js → p-b1c83bb8.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-dea8dd34.entry.js → p-ba89e3c7.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-ee3c724a.entry.js → p-c1de1367.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-feb06aca.entry.js → p-ca32c1b9.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-cf0ab7f0.entry.js +5 -0
  52. package/dist/bromcom-ui/p-d37379d4.entry.js +5 -0
  53. package/dist/bromcom-ui/{p-61092688.entry.js → p-d58107e2.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-dd422dd1.js +5 -0
  55. package/dist/bromcom-ui/{p-750ae53a.entry.js → p-e92d9879.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-7a1e7141.entry.js → p-e9c963b3.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-dc9466d6.entry.js → p-ebee9f45.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-178b60e4.entry.js → p-ef8bbaf3.entry.js} +1 -1
  59. package/dist/bromcom-ui/p-f0350c0c.entry.js +5 -0
  60. package/dist/bromcom-ui/p-f302cbdf.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-68abefd2.entry.js → p-f331e009.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-290645b8.entry.js → p-f3b546c6.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-ef14e4b5.entry.js → p-f532862e.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-342bc96d.entry.js → p-f889d1b6.entry.js} +1 -1
  65. package/dist/bromcom-ui/p-f8bf531f.entry.js +5 -0
  66. package/dist/bromcom-ui/{p-d18f5ae5.entry.js → p-f8cbdade.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-139ee01e.entry.js → p-fb22bc06.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-fceaf172.entry.js +5 -0
  69. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-avatar.cjs.entry.js +126 -0
  73. package/dist/cjs/bcm-badge_15.cjs.entry.js +1738 -0
  74. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +17 -17
  78. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  79. package/dist/cjs/{bcm-checkbox_2.cjs.entry.js → bcm-checkbox.cjs.entry.js} +2 -13
  80. package/dist/cjs/bcm-chip-group.cjs.entry.js +128 -0
  81. package/dist/cjs/bcm-chip.cjs.entry.js +90 -0
  82. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  84. package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-colorful.cjs.entry.js} +3 -6320
  85. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  86. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  89. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  91. package/dist/cjs/bcm-form.cjs.entry.js +488 -0
  92. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-input.cjs.entry.js +370 -0
  94. package/dist/cjs/bcm-label.cjs.entry.js +44 -0
  95. package/dist/cjs/bcm-list_3.cjs.entry.js +4025 -0
  96. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  97. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  98. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  100. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  103. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  106. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  107. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  109. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  111. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  114. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  115. package/dist/cjs/{color-helper-d6d2028b.js → color-helper-7ab15732.js} +27 -1
  116. package/dist/cjs/{generate-28ac852f.js → generate-d0470117.js} +55 -5
  117. package/dist/cjs/index-906fb4e5.js +540 -0
  118. package/dist/cjs/index-b08b037a.js +52 -0
  119. package/dist/cjs/{input-template-bcaa86c5.js → input-template-e1d297ed.js} +1 -1
  120. package/dist/cjs/{json-parse-decarator-0b5727ab.js → json-parse-decarator-026354f1.js} +1 -1
  121. package/dist/cjs/loader.cjs.js +1 -1
  122. package/dist/cjs/{number-helper-2fafa94f.js → number-helper-b3d57233.js} +1 -1
  123. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  124. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  125. package/dist/cjs/{stepper-states-66d5d6c4.js → stepper-states-09cd4bed.js} +1 -1
  126. package/dist/cjs/{validators-b22310ad.js → validators-39ca1c93.js} +1 -1
  127. package/dist/collection/components/atoms/avatar/avatar.js +95 -80
  128. package/dist/collection/components/atoms/avatar/avatar.style.js +39 -0
  129. package/dist/collection/components/atoms/badge/badge.js +29 -90
  130. package/dist/collection/components/atoms/badge/badge.style.js +39 -0
  131. package/dist/collection/components/molecules/items/items.js +1 -1
  132. package/dist/collection/components/molecules/linked/linked.js +12 -0
  133. package/dist/collection/components/molecules/menu/menu.js +1 -0
  134. package/dist/collection/components/molecules/popover/popover.js +1 -1
  135. package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
  136. package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
  137. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  138. package/dist/collection/components/other/typography/typography.js +1 -1
  139. package/dist/collection/helper/color-helper.js +27 -1
  140. package/dist/collection/helper/generate.js +54 -4
  141. package/dist/collection/helper/popover-helper.js +13 -9
  142. package/dist/collection/helper/tooltip-helper.js +12 -4
  143. package/dist/components/avatar.js +91 -52
  144. package/dist/components/badge.js +109 -46
  145. package/dist/components/bcm-items.js +1 -1
  146. package/dist/components/bcm-popover.js +14 -10
  147. package/dist/components/bcm-tab-group.js +5 -1
  148. package/dist/components/bcm-tab-item-header.js +11 -26
  149. package/dist/components/color-helper.js +27 -1
  150. package/dist/components/generate.js +55 -5
  151. package/dist/components/linked.js +12 -0
  152. package/dist/components/menu.js +1 -0
  153. package/dist/components/tooltip-helper.js +12 -4
  154. package/dist/components/tooltip.js +1 -1
  155. package/dist/components/typography.js +1 -1
  156. package/dist/esm/bcm-accordion.entry.js +1 -1
  157. package/dist/esm/bcm-alert.entry.js +1 -1
  158. package/dist/esm/bcm-attendance.entry.js +1 -1
  159. package/dist/esm/bcm-avatar.entry.js +122 -0
  160. package/dist/esm/bcm-badge_15.entry.js +1720 -0
  161. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  162. package/dist/esm/bcm-button-group.entry.js +1 -1
  163. package/dist/esm/bcm-card.entry.js +3 -3
  164. package/dist/esm/bcm-checkbox-group.entry.js +8 -8
  165. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  166. package/dist/esm/{bcm-checkbox_2.entry.js → bcm-checkbox.entry.js} +4 -14
  167. package/dist/esm/bcm-chip-group.entry.js +124 -0
  168. package/dist/esm/bcm-chip.entry.js +86 -0
  169. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  170. package/dist/esm/bcm-collapse.entry.js +1 -1
  171. package/dist/esm/bcm-color-input.entry.js +6 -6
  172. package/dist/esm/{bcm-avatar_15.entry.js → bcm-colorful.entry.js} +4 -6307
  173. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  174. package/dist/esm/bcm-date-picker.entry.js +2 -2
  175. package/dist/esm/bcm-datetime-picker.entry.js +3 -3
  176. package/dist/esm/bcm-default.entry.js +1 -1
  177. package/dist/esm/bcm-drawer.entry.js +6 -6
  178. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  179. package/dist/esm/bcm-form-2.entry.js +1 -1
  180. package/dist/esm/bcm-form.entry.js +484 -0
  181. package/dist/esm/bcm-input-custom.entry.js +1 -1
  182. package/dist/esm/bcm-input.entry.js +366 -0
  183. package/dist/esm/bcm-label.entry.js +40 -0
  184. package/dist/esm/bcm-list_3.entry.js +4019 -0
  185. package/dist/esm/bcm-modal-2-footer.entry.js +6 -6
  186. package/dist/esm/bcm-modal-2-header.entry.js +6 -6
  187. package/dist/esm/bcm-modal-2.entry.js +6 -6
  188. package/dist/esm/bcm-modal.entry.js +1 -1
  189. package/dist/esm/bcm-old-input.entry.js +1 -1
  190. package/dist/esm/bcm-old-tag_2.entry.js +1 -1
  191. package/dist/esm/bcm-popconfirm-box.entry.js +3 -3
  192. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  193. package/dist/esm/bcm-progress.entry.js +3 -3
  194. package/dist/esm/bcm-radio-group.entry.js +6 -6
  195. package/dist/esm/bcm-radio.entry.js +6 -6
  196. package/dist/esm/bcm-range.entry.js +2 -2
  197. package/dist/esm/bcm-select.entry.js +1 -1
  198. package/dist/esm/bcm-skeleton.entry.js +1 -1
  199. package/dist/esm/bcm-step.entry.js +2 -2
  200. package/dist/esm/bcm-stepper.entry.js +7 -7
  201. package/dist/esm/bcm-switch.entry.js +2 -2
  202. package/dist/esm/bcm-table.entry.js +1 -1
  203. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  204. package/dist/esm/bcm-tabs.entry.js +1 -1
  205. package/dist/esm/bcm-tag.entry.js +3 -3
  206. package/dist/esm/bcm-textarea.entry.js +3 -3
  207. package/dist/esm/bcm-time-picker.entry.js +2 -2
  208. package/dist/esm/bcm-toast.entry.js +2 -2
  209. package/dist/esm/bromcom-ui.js +1 -1
  210. package/dist/esm/{color-helper-e8ce23d7.js → color-helper-116755ed.js} +28 -2
  211. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  212. package/dist/esm/{generate-ce54344e.js → generate-abec36e5.js} +55 -5
  213. package/dist/esm/index-6310a048.js +537 -0
  214. package/dist/esm/index-962dec74.js +50 -0
  215. package/dist/esm/{input-template-c94b6b1f.js → input-template-a02d00ff.js} +1 -1
  216. package/dist/esm/{json-parse-decarator-1ef87c07.js → json-parse-decarator-268fe3de.js} +1 -1
  217. package/dist/esm/loader.js +1 -1
  218. package/dist/esm/{number-helper-ec5c12ef.js → number-helper-cf26accd.js} +1 -1
  219. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  220. package/dist/esm/old-bcm-popover.entry.js +1 -1
  221. package/dist/esm/{stepper-states-cbe1d076.js → stepper-states-cf443480.js} +1 -1
  222. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  223. package/dist/esm/{validators-c4976054.js → validators-63753298.js} +1 -1
  224. package/dist/types/components/atoms/avatar/avatar.d.ts +8 -10
  225. package/dist/types/components/atoms/avatar/avatar.style.d.ts +5 -0
  226. package/dist/types/components/atoms/badge/badge.d.ts +3 -7
  227. package/dist/types/components/atoms/badge/badge.style.d.ts +4 -0
  228. package/dist/types/components/molecules/linked/linked.d.ts +1 -0
  229. package/dist/types/components.d.ts +11 -13
  230. package/dist/types/helper/color-helper.d.ts +22 -2
  231. package/dist/types/helper/generate.d.ts +21 -1
  232. package/dist/types/helper/popover-helper.d.ts +0 -5
  233. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  234. package/package.json +7 -4
  235. package/dist/bromcom-ui/p-294186b9.js +0 -5
  236. package/dist/bromcom-ui/p-327138ea.entry.js +0 -5
  237. package/dist/bromcom-ui/p-36a1427f.entry.js +0 -5
  238. package/dist/bromcom-ui/p-4a3ce7f3.entry.js +0 -5
  239. package/dist/bromcom-ui/p-5f63beda.js +0 -5
  240. package/dist/bromcom-ui/p-62e84379.js +0 -5
  241. package/dist/bromcom-ui/p-843905c8.js +0 -5
  242. package/dist/bromcom-ui/p-8a162271.entry.js +0 -5
  243. package/dist/bromcom-ui/p-8e66297f.entry.js +0 -5
  244. package/dist/bromcom-ui/p-96eeadc0.entry.js +0 -5
  245. package/dist/bromcom-ui/p-9c90a235.entry.js +0 -19
  246. package/dist/bromcom-ui/p-c165837c.entry.js +0 -5
  247. package/dist/bromcom-ui/p-c30f52d8.entry.js +0 -5
  248. package/dist/bromcom-ui/p-c7f37d7a.entry.js +0 -5
  249. package/dist/bromcom-ui/p-ccc60ce1.js +0 -5
  250. package/dist/bromcom-ui/p-d230907f.entry.js +0 -5
  251. package/dist/bromcom-ui/p-d832cf50.entry.js +0 -5
  252. package/dist/bromcom-ui/p-e9aaa98b.entry.js +0 -5
  253. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -118
  254. package/dist/cjs/bcm-item.cjs.entry.js +0 -71
  255. package/dist/cjs/bcm-items.cjs.entry.js +0 -48
  256. package/dist/cjs/bcm-menu.cjs.entry.js +0 -149
  257. package/dist/cjs/bcm-popover.cjs.entry.js +0 -225
  258. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -205
  259. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -73
  260. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -90
  261. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  262. package/dist/cjs/tooltip-helper-9fc8df71.js +0 -150
  263. package/dist/collection/components/atoms/avatar/avatar.css +0 -198
  264. package/dist/collection/components/atoms/badge/badge.css +0 -231
  265. package/dist/esm/bcm-dropdown.entry.js +0 -114
  266. package/dist/esm/bcm-item.entry.js +0 -67
  267. package/dist/esm/bcm-items.entry.js +0 -44
  268. package/dist/esm/bcm-menu.entry.js +0 -145
  269. package/dist/esm/bcm-popover.entry.js +0 -221
  270. package/dist/esm/bcm-tab-group.entry.js +0 -201
  271. package/dist/esm/bcm-tab-item-header.entry.js +0 -69
  272. package/dist/esm/bcm-tab-item.entry.js +0 -86
  273. package/dist/esm/bcm-text.entry.js +0 -45
  274. package/dist/esm/tooltip-helper-92eb0102.js +0 -148
@@ -0,0 +1,1738 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ Object.defineProperty(exports, '__esModule', { value: true });
8
+
9
+ const index$1 = require('./index-ddfd6d8f.js');
10
+ const colorHelper = require('./color-helper-7ab15732.js');
11
+ require('./datetime-helper-eaf4fadb.js');
12
+ const generate = require('./generate-d0470117.js');
13
+ require('./number-helper-b3d57233.js');
14
+ const stringHelper = require('./string-helper-d681e5c7.js');
15
+ require('./validators-39ca1c93.js');
16
+ require('./element-dragger-a8562f82.js');
17
+ const bcm = require('./bcm-ab921827.js');
18
+ const index = require('./index-b08b037a.js');
19
+ const index$3 = require('./index-fdbf5226.js');
20
+ const index$2 = require('./index-4506fcd7.js');
21
+ const slotTemplate = require('./slot-template-d70ea082.js');
22
+ const isLoadDecorator = require('./is-load-decorator-137dded1.js');
23
+ const jsonParseDecarator = require('./json-parse-decarator-026354f1.js');
24
+ const utils = require('./utils-fc077139.js');
25
+ const floatingUi = require('./floating-ui-c9fc2202.js');
26
+ require('./colors-56282b00.js');
27
+ require('./colors-e1d142ad.js');
28
+ require('./_commonjsHelpers-bd20f4c0.js');
29
+
30
+ class Tooltip {
31
+ constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { }, }) {
32
+ this.destroy = () => {
33
+ this.el = document.getElementById(this.id);
34
+ if (this.el) {
35
+ this.el.remove();
36
+ this.emitHide();
37
+ }
38
+ this.removeListener();
39
+ };
40
+ this.target = () => document.getElementById(this.targetId);
41
+ this.sizeClass = () => {
42
+ switch (this.size) {
43
+ case bcm.Bcm.Size.small:
44
+ return "tw-text-1";
45
+ case bcm.Bcm.Size.medium:
46
+ return "tw-text-2";
47
+ case bcm.Bcm.Size.large:
48
+ return "tw-text-3";
49
+ default:
50
+ return "tw-text-2";
51
+ }
52
+ };
53
+ this.init = () => {
54
+ const { tone, colorName } = colorHelper.ColorHelper.parseColor(this.color, 700);
55
+ const dc = generate.Generate.getTwColor({
56
+ color: colorName,
57
+ tones: {
58
+ [tone]: ["bg"],
59
+ },
60
+ variable: "--bcm-tooltip",
61
+ });
62
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-tooltip-bg"] && { "--bcm-tooltip-text": colorHelper.ColorHelper.reverseColor(dc["--bcm-tooltip-bg"]) }));
63
+ this.el = generate.Generate.createElement("div", {
64
+ "id": `${this.targetId}-tooltip-box`,
65
+ "class": `
66
+ tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,
67
+ "role": "tooltip",
68
+ "aria-hidden": "true",
69
+ "style": colorHelper.ColorHelper.generateStyleString(style),
70
+ "innerHTML": stringHelper.StringHelper.trim(this.message),
71
+ });
72
+ };
73
+ this.update = () => {
74
+ this.el = document.getElementById(this.id);
75
+ if (this.el) {
76
+ this.hide();
77
+ this.show();
78
+ }
79
+ };
80
+ this.listener = () => {
81
+ window.addEventListener("resize", this.calculatePosition.bind(this));
82
+ window.addEventListener("scroll", this.calculatePosition.bind(this), true);
83
+ window.addEventListener("wheel", this.calculatePosition.bind(this));
84
+ if (this.trigger && this.target()) {
85
+ switch (this.trigger) {
86
+ case "click":
87
+ this.target().addEventListener("click", this.toggle.bind(this));
88
+ this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
89
+ break;
90
+ case "hover":
91
+ this.target().addEventListener("mouseenter", this.show.bind(this));
92
+ this.target().addEventListener("mouseleave", this.hide.bind(this));
93
+ break;
94
+ case "focus":
95
+ this.target().addEventListener("focus", this.show.bind(this), true);
96
+ this.target().addEventListener("blur", this.hide.bind(this), true);
97
+ break;
98
+ }
99
+ }
100
+ this.calculatePosition();
101
+ };
102
+ this.removeListener = () => {
103
+ window.removeEventListener("resize", this.calculatePosition.bind(this));
104
+ window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
105
+ window.removeEventListener("wheel", this.calculatePosition.bind(this));
106
+ if (this.target()) {
107
+ this.target().removeEventListener("click", this.toggle.bind(this));
108
+ this.target().removeEventListener("mouseenter", this.show.bind(this));
109
+ this.target().removeEventListener("mouseleave", this.hide.bind(this));
110
+ this.target().removeEventListener("focus", this.show.bind(this), true);
111
+ this.target().removeEventListener("blur", this.hide.bind(this), true);
112
+ }
113
+ };
114
+ this.calculatePosition = () => {
115
+ this.el = document.getElementById(this.id);
116
+ if (this.el) {
117
+ floatingUi.FloatingUI({
118
+ ref: this.target(),
119
+ floating: this.el,
120
+ placement: this.placement,
121
+ offset: 8,
122
+ arrow: true,
123
+ arrowColor: `tw-bg-[--bcm-tooltip-bg]`,
124
+ });
125
+ }
126
+ };
127
+ this.show = async () => {
128
+ if (this.message) {
129
+ this.init();
130
+ await utils.delay(this.openDelay);
131
+ this.calculatePosition();
132
+ this.emitShow();
133
+ }
134
+ else {
135
+ this.hide();
136
+ }
137
+ };
138
+ this.hide = async () => {
139
+ this.el = document.getElementById(this.id);
140
+ if (this.el) {
141
+ await utils.delay(this.closeDelay);
142
+ this.el && this.el.remove();
143
+ this.emitHide();
144
+ }
145
+ };
146
+ this.toggle = () => {
147
+ this.el = document.getElementById(this.id);
148
+ if (this.el) {
149
+ this.hide();
150
+ }
151
+ else {
152
+ this.show();
153
+ }
154
+ };
155
+ this.message = message;
156
+ this.targetId = targetId;
157
+ this.placement = placement;
158
+ this.color = color;
159
+ this.id = targetId + "-tooltip-box";
160
+ this.trigger = trigger;
161
+ this.size = size;
162
+ this.openDelay = openDelay;
163
+ this.closeDelay = closeDelay;
164
+ this.autoHide = autoHide;
165
+ this.emitShow = emitShow;
166
+ this.emitHide = emitHide;
167
+ }
168
+ }
169
+
170
+ class Popover {
171
+ constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
172
+ this.destroy = () => {
173
+ this.el = document.getElementById(this.id);
174
+ if (this.el) {
175
+ this.el.remove();
176
+ this.emitHide();
177
+ }
178
+ this.removeListener();
179
+ };
180
+ this.target = () => document.getElementById(this.targetId);
181
+ this.init = () => {
182
+ const { tone, colorName } = colorHelper.ColorHelper.parseColor(this.color, 700);
183
+ const dc = generate.Generate.getTwColor({
184
+ color: colorName,
185
+ tones: {
186
+ [tone]: ["bg"],
187
+ },
188
+ variable: "--bcm-popover",
189
+ });
190
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-popover-bg"] && { "--bcm-popover-text": colorHelper.ColorHelper.reverseColor(dc["--bcm-popover-bg"]) }));
191
+ const inner = `<div class="tw-z-[1] tw-rounded tw-py-2">
192
+ ${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${stringHelper.StringHelper.trim(this.message)}</div>` : ""}
193
+ ${this.content ? `<div class="tw-font-normal tw-px-4">${stringHelper.StringHelper.trim(this.content)}</div>` : ""}
194
+ </div>`;
195
+ this.el = generate.Generate.createElement("div", {
196
+ "id": `${this.targetId}-popover-box`,
197
+ "class": `
198
+ tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-[--bcm-popover-bg] tw-text-[--bcm-popover-text] tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
199
+ tw-shadow`,
200
+ "role": "popover",
201
+ "aria-hidden": "true",
202
+ "style": colorHelper.ColorHelper.generateStyleString(style),
203
+ "innerHTML": inner,
204
+ });
205
+ };
206
+ this.update = () => {
207
+ this.el = document.getElementById(this.id);
208
+ if (this.el) {
209
+ this.hide();
210
+ this.show();
211
+ }
212
+ };
213
+ this.listener = () => {
214
+ window.addEventListener("resize", this.calculatePosition.bind(this));
215
+ window.addEventListener("scroll", this.calculatePosition.bind(this), true);
216
+ window.addEventListener("wheel", this.calculatePosition.bind(this));
217
+ if (this.trigger && this.target()) {
218
+ switch (this.trigger) {
219
+ case "click":
220
+ this.target().addEventListener("click", this.toggle.bind(this));
221
+ this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
222
+ break;
223
+ case "hover":
224
+ this.target().addEventListener("mouseenter", this.show.bind(this));
225
+ this.target().addEventListener("mouseleave", this.hide.bind(this));
226
+ break;
227
+ case "focus":
228
+ this.target().addEventListener("focus", this.show.bind(this), true);
229
+ this.target().addEventListener("blur", this.hide.bind(this), true);
230
+ break;
231
+ }
232
+ }
233
+ this.calculatePosition();
234
+ };
235
+ this.removeListener = () => {
236
+ window.removeEventListener("resize", this.calculatePosition.bind(this));
237
+ window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
238
+ window.removeEventListener("wheel", this.calculatePosition.bind(this));
239
+ if (this.target()) {
240
+ this.target().removeEventListener("click", this.toggle.bind(this));
241
+ this.target().removeEventListener("mouseenter", this.show.bind(this));
242
+ this.target().removeEventListener("mouseleave", this.hide.bind(this));
243
+ this.target().removeEventListener("focus", this.show.bind(this), true);
244
+ this.target().removeEventListener("blur", this.hide.bind(this), true);
245
+ }
246
+ };
247
+ this.calculatePosition = () => {
248
+ this.el = document.getElementById(this.id);
249
+ if (this.el) {
250
+ floatingUi.FloatingUI({
251
+ ref: this.target(),
252
+ floating: this.el,
253
+ placement: this.placement,
254
+ offset: 8,
255
+ arrow: true,
256
+ arrowColor: `tw-bg-[--bcm-popover-bg]`,
257
+ });
258
+ }
259
+ };
260
+ this.show = async () => {
261
+ if (this.message) {
262
+ this.init();
263
+ await utils.delay(this.openDelay);
264
+ this.calculatePosition();
265
+ this.emitShow();
266
+ }
267
+ else {
268
+ this.hide();
269
+ }
270
+ };
271
+ this.hide = async () => {
272
+ this.el = document.getElementById(this.id);
273
+ if (this.el) {
274
+ await utils.delay(this.closeDelay);
275
+ this.el.remove();
276
+ this.emitHide();
277
+ }
278
+ };
279
+ this.toggle = () => {
280
+ this.el = document.getElementById(this.id);
281
+ if (this.el) {
282
+ this.hide();
283
+ }
284
+ else {
285
+ this.show();
286
+ }
287
+ };
288
+ this.content = content;
289
+ this.message = message;
290
+ this.targetId = targetId;
291
+ this.placement = placement;
292
+ this.color = color;
293
+ this.trigger = trigger;
294
+ this.id = targetId + "-popover-box";
295
+ this.openDelay = openDelay;
296
+ this.closeDelay = closeDelay;
297
+ this.autoHide = autoHide;
298
+ this.emitShow = emitShow;
299
+ this.emitHide = emitHide;
300
+ }
301
+ }
302
+
303
+ const badgeStyle = index.cva([
304
+ "bcm-badge__dot bcm-ui-element bcm-ui-content-display",
305
+ "tw-flex tw-items-center tw-justify-center tw-flex-row",
306
+ "tw-rounded-full tw-text-center",
307
+ "tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
308
+ " tw-whitespace-nowrap [&>*:empty]:tw-hidden",
309
+ ], {
310
+ variants: {
311
+ size: {
312
+ small: ["bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5 [&>*]:tw-px-1.5 [&>*]:tw-min-w-4"],
313
+ medium: ["bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2 [&>*]:tw-px-1.5 [&>*]:tw-min-w-5"],
314
+ large: ["bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5 [&>*]:tw-px-2 [&>*]:tw-min-w-6"], //10
315
+ },
316
+ blink: {
317
+ true: [
318
+ "bcm-badge__dot-blink tw-relative",
319
+ "after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
320
+ "after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
321
+ "after:tw-animate-blink after:tw-pointer-events-none"
322
+ ],
323
+ },
324
+ },
325
+ compoundVariants: [
326
+ {
327
+ size: "medium",
328
+ blink: false,
329
+ class: "",
330
+ },
331
+ ],
332
+ defaultVariants: {
333
+ size: "medium",
334
+ blink: false,
335
+ },
336
+ });
337
+
338
+ const BcmBadge = class {
339
+ constructor(hostRef) {
340
+ index$1.registerInstance(this, hostRef);
341
+ this.statusColors = {
342
+ info: "blue",
343
+ error: "red",
344
+ warning: "amber",
345
+ success: "emerald",
346
+ };
347
+ this._id = generate.Generate.UID();
348
+ this.blink = false;
349
+ this.value = undefined;
350
+ this.color = undefined;
351
+ this.size = bcm.Bcm.Size.medium;
352
+ this.status = undefined;
353
+ }
354
+ render() {
355
+ const { blink, value, size, color, status } = this;
356
+ const _color = this.statusColors[status] || color;
357
+ const { tone, colorName } = colorHelper.ColorHelper.parseColor(_color);
358
+ const dc = generate.Generate.getTwColor({
359
+ color: colorName,
360
+ tones: {
361
+ [tone]: ["bg"],
362
+ },
363
+ variable: "--bcm-badge",
364
+ });
365
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": colorHelper.ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
366
+ return (index$1.h(index$1.Host, { class: "bcm-badge tw-inline-flex tw-items-center tw-justify-center", role: "status", "aria-live": "polite" }, index$1.h("div", { class: badgeStyle({ size, blink }), style: style }, index$1.h("span", { class: "bcm-badge__dot-text", role: "presentation", "aria-hidden": "true" }, index$1.h("slot", null, value)), index$1.h("span", { class: "tw-sr-only" }, value))));
367
+ }
368
+ get el() { return index$1.getElement(this); }
369
+ };
370
+
371
+ const variantOptions = {
372
+ save: {
373
+ text: 'Save',
374
+ color: 'emerald',
375
+ icon: 'far fa-save',
376
+ iconPosition: 'prefix',
377
+ },
378
+ ok: {
379
+ text: 'Ok',
380
+ color: 'emerald',
381
+ icon: 'far fa-check',
382
+ iconPosition: 'prefix',
383
+ },
384
+ new: {
385
+ text: 'New',
386
+ color: 'emerald',
387
+ icon: 'far fa-plus',
388
+ iconPosition: 'prefix',
389
+ },
390
+ add: {
391
+ text: 'Add',
392
+ color: 'emerald',
393
+ icon: 'far fa-plus',
394
+ iconPosition: 'prefix',
395
+ },
396
+ create: {
397
+ text: 'Create',
398
+ color: 'emerald',
399
+ icon: 'far fa-plus',
400
+ iconPosition: 'prefix',
401
+ },
402
+ prev: {
403
+ text: 'Prev',
404
+ color: '',
405
+ icon: 'far fa-arrow-left',
406
+ iconPosition: 'prefix',
407
+ },
408
+ next: {
409
+ text: 'Next',
410
+ color: '',
411
+ icon: 'far fa-arrow-right',
412
+ iconPosition: 'suffix',
413
+ },
414
+ apply: {
415
+ text: 'Apply',
416
+ color: '',
417
+ icon: 'far fa-check-circle',
418
+ iconPosition: 'prefix',
419
+ },
420
+ submit: {
421
+ text: 'Submit',
422
+ color: '',
423
+ icon: 'far fa-save',
424
+ iconPosition: 'prefix',
425
+ },
426
+ send: {
427
+ text: 'Send',
428
+ color: 'emerald',
429
+ icon: 'far fa-paper-plane',
430
+ iconPosition: 'prefix',
431
+ },
432
+ delete: {
433
+ text: 'Delete',
434
+ color: 'red',
435
+ icon: 'far fa-trash',
436
+ iconPosition: 'prefix',
437
+ },
438
+ cancel: {
439
+ text: 'Cancel',
440
+ color: 'red',
441
+ icon: 'far fa-times',
442
+ iconPosition: 'prefix',
443
+ },
444
+ decline: {
445
+ text: 'Decline',
446
+ color: 'red',
447
+ icon: 'far fa-ban',
448
+ iconPosition: 'prefix',
449
+ },
450
+ close: {
451
+ text: 'Close',
452
+ color: 'red',
453
+ icon: 'far fa-times-circle',
454
+ iconPosition: 'prefix',
455
+ },
456
+ archive: {
457
+ text: 'Archive',
458
+ color: 'red',
459
+ icon: 'far fa-folder-open',
460
+ iconPosition: 'prefix',
461
+ },
462
+ remove: {
463
+ text: 'Remove',
464
+ color: 'red',
465
+ icon: 'far fa-minus-circle',
466
+ iconPosition: 'prefix',
467
+ },
468
+ edit: {
469
+ text: 'Edit',
470
+ color: '',
471
+ icon: 'far fa-edit',
472
+ iconPosition: 'prefix',
473
+ },
474
+ export: {
475
+ text: 'Export',
476
+ color: '',
477
+ icon: 'far fa-sign-out',
478
+ iconPosition: 'prefix',
479
+ },
480
+ import: {
481
+ text: 'Import',
482
+ color: '',
483
+ icon: 'far fa-sign-in',
484
+ iconPosition: 'prefix',
485
+ },
486
+ filter: {
487
+ text: 'Filter',
488
+ color: '',
489
+ icon: 'far fa-filter',
490
+ iconPosition: 'prefix',
491
+ },
492
+ update: {
493
+ text: 'Update',
494
+ color: '',
495
+ icon: 'far fa-sync',
496
+ iconPosition: 'prefix',
497
+ },
498
+ reset: {
499
+ text: "Reset",
500
+ color: "",
501
+ icon: 'far fa-sync',
502
+ iconPosition: "prefix",
503
+ },
504
+ download: {
505
+ text: 'Download',
506
+ color: '',
507
+ icon: 'far fa-download',
508
+ iconPosition: 'prefix',
509
+ },
510
+ };
511
+ var VariantProps;
512
+ (function (VariantProps) {
513
+ VariantProps["save"] = "save";
514
+ VariantProps["submit"] = "submit";
515
+ VariantProps["ok"] = "ok";
516
+ VariantProps["new"] = "new";
517
+ VariantProps["add"] = "add";
518
+ VariantProps["create"] = "create";
519
+ VariantProps["apply"] = "apply";
520
+ VariantProps["prev"] = "prev";
521
+ VariantProps["next"] = "next";
522
+ VariantProps["send"] = "send";
523
+ VariantProps["delete"] = "delete";
524
+ VariantProps["cancel"] = "cancel";
525
+ VariantProps["decline"] = "decline";
526
+ VariantProps["close"] = "close";
527
+ VariantProps["archive"] = "archive";
528
+ VariantProps["remove"] = "remove";
529
+ VariantProps["edit"] = "edit";
530
+ VariantProps["export"] = "export";
531
+ VariantProps["import"] = "import";
532
+ VariantProps["filter"] = "filter";
533
+ VariantProps["update"] = "update";
534
+ VariantProps["reset"] = "Reset";
535
+ VariantProps["download"] = "download";
536
+ })(VariantProps || (VariantProps = {}));
537
+
538
+ const { state } = index$2.createStore({
539
+ value: new Map(),
540
+ setData: {},
541
+ removeData: {}
542
+ });
543
+ const setValue = (val) => {
544
+ const data = Object.assign(Object.assign({}, val), (variantOptions[val.variant] && {
545
+ icon: variantOptions[val.variant].icon,
546
+ value: variantOptions[val.variant].text,
547
+ iconPosition: bcm.Bcm$1.IconPosition[variantOptions[val.variant].iconPosition],
548
+ variantColor: variantOptions[val.variant].color
549
+ }));
550
+ state.value.set(data.id, data);
551
+ };
552
+ const removeValue = (_id) => {
553
+ state.value.delete(_id);
554
+ };
555
+ const getValue = (id) => generate.snq(() => state.value.get(id), {});
556
+ const buttonState = {
557
+ setValue,
558
+ removeValue,
559
+ getValue
560
+ };
561
+
562
+ const ButtonTemplate = ({ value, type, componentClass, disabled, href, target, loading, isIconOnly, icon, iconPosition, id }) => {
563
+ const ButtonTagType = (href) ? bcm.Bcm$1.HtmlElementType.a : bcm.Bcm$1.HtmlElementType.button;
564
+ return (index$1.h(ButtonTagType, Object.assign({ id: id }, (type == bcm.Bcm$1.HtmlElementType.button && { type }), { class: componentClass, disabled: disabled, href: href, target: target, tabindex: "0" }),
565
+ index$1.h("span", { hidden: true },
566
+ index$1.h("slot", null)),
567
+ loading && index$1.h("span", { class: "bcm-button__container-loading" },
568
+ " ",
569
+ index$1.h("span", { class: "bcm-button__container-icon" },
570
+ index$1.h("i", { class: "far fa-spinner-third fa-spin" }),
571
+ " ")),
572
+ icon && index$1.h("span", { class: `${iconPosition} bcm-button__container-icon` },
573
+ index$1.h("i", { class: `${icon}` })),
574
+ !isIconOnly && (index$1.h(slotTemplate.SlotTemplate, { className: "bcm-button__container-text", value: value })),
575
+ index$1.h("slot", { name: "suffix" })));
576
+ };
577
+
578
+ const buttonCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button{display:inline-flex;width:fit-content;height:fit-content;--bcm-button-solid-color-default:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-border-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-color-hover:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-border-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-border-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-color-active:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-border-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-color-disabled:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-solid-border-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-default:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-default:var(--bcm-new-ds-color-slate-100);--bcm-button-ghost-border-default:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-color-hover:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-border-hover:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-focus-visible:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-border-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-color-active:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-border-active:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-background-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-button-ghost-border-disabled:var(--bcm-new-ds-color-slate-200);--bcm-button-link-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-link-background-color-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-disabled:var(--bcm-new-ds-color-transparent)}.bcm-button.full-width{width:100%}.bcm-button.full-width .bcm-button__container{width:100%}.bcm-button:after,.bcm-button:before{content:\"\";clear:both}.bcm-button__container{border:none;color:inherit;background-color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;outline:none;text-decoration:none;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 12px;outline:none;border-radius:4px;transition:background-color 0.1s ease-in-out;position:relative;min-width:40px;border-width:1px;border-style:solid;border-color:initial}.bcm-button__container:hover,.bcm-button__container:focus,.bcm-button__container:active{outline:none;text-decoration:none}.bcm-button__container-loading{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center}.bcm-button__container-kind-solid{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-solid:hover{color:var(--bcm-button-solid-color-hover);background-color:var(--bcm-button-solid-background-color-hover);border-color:var(--bcm-button-solid-border-hover)}.bcm-button__container-kind-solid:focus-visible{color:var(--bcm-button-solid-color-focus-visible);background-color:var(--bcm-button-solid-background-color-focus-visible);border-color:var(--bcm-button-solid-border-focus-visible)}.bcm-button__container-kind-solid:active{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid:disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid.checked{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid.disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid .bcm-button__container-loading{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-ghost{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-ghost:not([disabled]) .bcm-icon{color:var(--bcm-new-ds-color-slate-500)}.bcm-button__container-kind-ghost:hover{color:var(--bcm-button-ghost-color-hover);background-color:var(--bcm-button-ghost-background-color-hover);border-color:var(--bcm-button-ghost-border-hover)}.bcm-button__container-kind-ghost:focus-visible{color:var(--bcm-button-ghost-color-focus-visible);background-color:var(--bcm-button-ghost-background-color-focus-visible);border-color:var(--bcm-button-ghost-border-focus-visible)}.bcm-button__container-kind-ghost:active{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost:disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost.checked{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost.disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost .bcm-button__container-loading{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-link{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-link:hover{color:var(--bcm-button-link-color-hover);background-color:var(--bcm-button-link-background-color-hover);border-color:var(--bcm-button-link-border-hover)}.bcm-button__container-kind-link:focus-visible{color:var(--bcm-button-link-color-focus-visible);background-color:var(--bcm-button-link-background-color-focus-visible);border-color:var(--bcm-button-link-border-focus-visible)}.bcm-button__container-kind-link:active{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link:disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link.checked{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link.disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link .bcm-button__container-loading{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container[disabled]{cursor:not-allowed}.bcm-button__container-text{order:3;display:flex;align-items:center;gap:8px;white-space:nowrap}.bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-icon.prefix{order:2}.bcm-button__container-icon.suffix{order:4}.bcm-button__container-size-small{font-size:12px;line-height:calc(12px + 8px);padding:calc(4px - 3px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px - 2px)) * 2)}.bcm-button__container-size-small .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-medium{font-size:calc(12px + 1px);line-height:calc(12px + 8px);padding:calc(4px + 1px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px + 2px)) * 2)}.bcm-button__container-size-medium .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-large{font-size:16px;line-height:calc(16px + 8px);padding:calc(8px - 1px) 12px;min-height:calc(calc(16px + 8px) + (calc(8px) * 2))}.bcm-button__container-size-large .bcm-button__container-icon{min-height:calc(16px + 8px)}";
579
+
580
+ const BcmButton = class {
581
+ constructor(hostRef) {
582
+ index$1.registerInstance(this, hostRef);
583
+ this.bcmClick = index$1.createEvent(this, "bcm-click", 7);
584
+ this._id = generate.Generate.UID();
585
+ this.hidden = false;
586
+ this.type = bcm.Bcm$1.ButtonType.button;
587
+ this.size = bcm.Bcm$1.Size.medium;
588
+ this.disabled = false;
589
+ this.kind = bcm.Bcm$1.Kind.solid;
590
+ this.outline = false;
591
+ this.icon = undefined;
592
+ this.href = undefined;
593
+ this.target = undefined;
594
+ this.value = undefined;
595
+ this.loading = false;
596
+ this.variant = undefined;
597
+ this.dataDismiss = false;
598
+ this.fullWidth = false;
599
+ this.iconPosition = bcm.Bcm$1.IconPosition.prefix;
600
+ this.color = undefined;
601
+ this.checked = false;
602
+ }
603
+ handleOnClick(e) {
604
+ if (this.disabled) {
605
+ e.preventDefault();
606
+ e.stopPropagation();
607
+ return false;
608
+ }
609
+ }
610
+ componentWillRender() {
611
+ const { size, kind, icon, iconPosition, disabled, outline, href, type, target, loading, variant, fullWidth, hidden, value } = this;
612
+ buttonState.setValue({
613
+ id: this._id,
614
+ size,
615
+ type,
616
+ kind,
617
+ icon,
618
+ iconPosition,
619
+ disabled,
620
+ outline,
621
+ href,
622
+ target,
623
+ loading,
624
+ variant,
625
+ fullWidth,
626
+ hidden,
627
+ value,
628
+ isIconOnly: !!(this.isHaveChildNodes() && this.icon),
629
+ });
630
+ }
631
+ getStateData() {
632
+ return buttonState.getValue(this._id);
633
+ }
634
+ isHaveChildNodes() {
635
+ const childNodes = Array.from(this.el.childNodes);
636
+ return childNodes.find(node => node.nodeType === Node.TEXT_NODE) === undefined;
637
+ }
638
+ setColor(color = this.color) {
639
+ if (!color)
640
+ return;
641
+ const { kind } = this;
642
+ const prefix = `--bcm-button-${kind}`;
643
+ if (kind === 'solid') {
644
+ return {
645
+ [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('white'),
646
+ [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('white'),
647
+ [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('white'),
648
+ [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('white'),
649
+ [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
650
+ [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
651
+ [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
652
+ [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
653
+ [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
654
+ [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
655
+ [`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
656
+ [`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
657
+ [`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
658
+ [`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
659
+ [`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor('slate-400')
660
+ };
661
+ }
662
+ else if (kind == 'link') {
663
+ return {
664
+ [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
665
+ [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
666
+ [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-800'),
667
+ [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor(color + '-700'),
668
+ [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
669
+ [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor('transparent'),
670
+ [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor('transparent'),
671
+ [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
672
+ [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
673
+ [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('transparent'),
674
+ [`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor('transparent'),
675
+ [`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor('transparent'),
676
+ [`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
677
+ [`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
678
+ [`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor('transparent')
679
+ };
680
+ }
681
+ else if (kind == 'ghost') {
682
+ return {
683
+ [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor(color + '-600'),
684
+ [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
685
+ [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-600'),
686
+ [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor(color + '-600'),
687
+ [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor(color + '-300'),
688
+ [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-100'),
689
+ [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-200'),
690
+ [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-400'),
691
+ [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-300'),
692
+ [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor(color + '-50'),
693
+ [`${prefix}-border-default`]: colorHelper.ColorHelper.dsColor(color + '-300'),
694
+ [`${prefix}-border-hover`]: colorHelper.ColorHelper.dsColor(color + '-400'),
695
+ [`${prefix}-border-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-600'),
696
+ [`${prefix}-border-active`]: colorHelper.ColorHelper.dsColor(color + '-500'),
697
+ [`${prefix}-border-disabled`]: colorHelper.ColorHelper.dsColor(color + '-200'),
698
+ };
699
+ }
700
+ return;
701
+ }
702
+ render() {
703
+ const { size, kind, disabled, outline, type, href, target, loading, variantColor, fullWidth, hidden, icon, iconPosition, value, isIconOnly, iconSize } = this.getStateData();
704
+ const classPrefix = 'bcm-button';
705
+ let componentClass = index$3.classnames('bcm-button__container', `bcm-button__container-size-${size}`, `bcm-button__container-kind-${outline ? 'ghost' : kind}`, {
706
+ 'full-width': fullWidth,
707
+ 'checked': this.checked,
708
+ 'disabled': disabled,
709
+ });
710
+ const hostClasses = index$3.classnames(`${classPrefix}`, {
711
+ hidden,
712
+ 'full-width': fullWidth,
713
+ });
714
+ return (index$1.h(index$1.Host, { class: hostClasses, style: this.setColor(variantColor), onClick: () => !disabled && this.bcmClick.emit(this.el) }, index$1.h(ButtonTemplate, { type: type, value: value, componentClass: componentClass, disabled: disabled, href: href, target: target, icon: icon, loading: loading, iconSize: iconSize, isIconOnly: isIconOnly, iconPosition: iconPosition })));
715
+ }
716
+ get el() { return index$1.getElement(this); }
717
+ };
718
+ BcmButton.style = buttonCss;
719
+
720
+ const dropdownCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-dropdown{width:fit-content;display:inline-flex;flex-direction:row}.bcm-dropdown.hidden{display:none}.bcm-dropdown.no-style{cursor:pointer}.bcm-dropdown.full-width{width:100%}.bcm-dropdown.full-width .bcm-button__container-text{flex:1;justify-content:space-between}.bcm-dropdown__type-split .main-button .bcm-button__container{border-top-right-radius:0;border-bottom-right-radius:0}.bcm-dropdown__type-split .split-button .bcm-button__container{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;min-width:auto}.bcm-dropdown__icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;transform:rotate(0deg);transition:transform 0.2s ease}.bcm-dropdown__icon--open{transform:rotate(180deg)}";
721
+
722
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
723
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
724
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
725
+ r = Reflect.decorate(decorators, target, key, desc);
726
+ else
727
+ for (var i = decorators.length - 1; i >= 0; i--)
728
+ if (d = decorators[i])
729
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
730
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
731
+ };
732
+ const BcmDropdown = class {
733
+ constructor(hostRef) {
734
+ index$1.registerInstance(this, hostRef);
735
+ this.bcmClick = index$1.createEvent(this, "bcm-click", 7);
736
+ this.bcmDropdownChange = index$1.createEvent(this, "bcm-dropdown-change", 7);
737
+ this.isOpen = undefined;
738
+ this._id = generate.Generate.UID();
739
+ this.menuId = generate.Generate.UID();
740
+ this.hidden = false;
741
+ this.type = 'dropdown';
742
+ this.size = bcm.Bcm$1.Size.medium;
743
+ this.disabled = false;
744
+ this.kind = bcm.Bcm$1.Kind.solid;
745
+ this.icon = undefined;
746
+ this.href = undefined;
747
+ this.target = undefined;
748
+ this.value = undefined;
749
+ this.noStyle = false;
750
+ this.dropdownIcon = 'fas fa-angle-down';
751
+ this.linkedComponent = undefined;
752
+ this.loading = false;
753
+ this.variant = undefined;
754
+ this.dataDismiss = false;
755
+ this.fullWidth = false;
756
+ this.iconPosition = bcm.Bcm$1.IconPosition.prefix;
757
+ this.placement = undefined;
758
+ this.height = undefined;
759
+ this.maxHeight = '500px';
760
+ this.minHeight = '50px';
761
+ this.stopDeepClean = false;
762
+ this.selectable = true;
763
+ this.gap = '4px';
764
+ this.color = undefined;
765
+ this.activeItem = null;
766
+ this.data = [];
767
+ }
768
+ async dataChanged(newValue) {
769
+ if (newValue) {
770
+ this.data = newValue;
771
+ }
772
+ }
773
+ async setActive(id = null) {
774
+ var _a, _b;
775
+ (_b = (_a = document
776
+ .getElementById(`${this.menuId}`)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('bcm-menu')) === null || _b === void 0 ? void 0 : _b.forEach(item => {
777
+ item.setActive(id);
778
+ });
779
+ }
780
+ async getActive() {
781
+ return this.activeItem;
782
+ }
783
+ handleSlotItems({ detail }) {
784
+ this.data = detail;
785
+ }
786
+ setActiveAttribute(e) {
787
+ if (e.detail) {
788
+ this.bcmDropdownChange.emit(e.detail);
789
+ this.activeItem = e.detail;
790
+ }
791
+ }
792
+ ;
793
+ render() {
794
+ const { size, kind, disabled, icon, color, href, target, loading, type, variant, fullWidth, isOpen } = this;
795
+ const hostClasses = index$3.classnames('bcm-dropdown', 'bcm-dropdown__type-' + type, {
796
+ 'full-width': fullWidth,
797
+ 'no-style': this.noStyle,
798
+ 'hidden': this.hidden || this.linkedComponent,
799
+ });
800
+ const attributes = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (disabled && { disabled })), (loading && { loading })), (kind && { kind })), (size && { size })), (variant && { variant })), (color && { color })), (this.menuId && { 'menu-id': this.menuId }));
801
+ const iconClasses = index$3.classnames('bcm-dropdown__icon', {
802
+ 'bcm-dropdown__icon--open': isOpen,
803
+ });
804
+ const dropdownIcon = (index$1.h("span", { class: iconClasses }, index$1.h("bcm-icon", { icon: this.dropdownIcon })));
805
+ return (index$1.h(index$1.Host, { class: hostClasses }, index$1.h("span", { hidden: true }, index$1.h("slot", null)), this.noStyle && index$1.h("slot", null), !this.noStyle && (index$1.h("bcm-button", Object.assign({ class: "main-button", id: `${this._id}-button` }, attributes, (icon && { icon }), (href && type === 'split' && { href }), (target && type === 'split' && { target }), (fullWidth && { fullWidth })), index$1.h("slot", null), type === 'dropdown' && dropdownIcon)), !this.noStyle && type === 'split' && (index$1.h("bcm-button", Object.assign({ id: `${this._id}-button-split`, class: "split-button" }, attributes), dropdownIcon)), index$1.h("bcm-linked", { id: `${this.menuId}`, "target-id": `${this._id}-button${type === 'split' ? '-split' : ''}`, placement: this.placement || (type === 'dropdown' ? 'bottom-start' : 'bottom-end'), "max-height": this.maxHeight, "min-height": this.minHeight, height: this.height, "on-bcm-open": e => { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.id) == this.menuId && (this.isOpen = e.detail); } }, this.data && this.data.length > 0 && index$1.h("bcm-menu", { data: this.data, selectable: this.selectable, "on-bcm-click": e => this.bcmClick.emit(e.detail), "onBcm-menu-change": e => this.setActiveAttribute(e), gap: this.gap, dropdown: true }), index$1.h("slot", { name: "content" }))));
806
+ }
807
+ get el() { return index$1.getElement(this); }
808
+ static get watchers() { return {
809
+ "data": ["dataChanged"]
810
+ }; }
811
+ };
812
+ __decorate$1([
813
+ isLoadDecorator.IsLoad()
814
+ ], BcmDropdown.prototype, "el", void 0);
815
+ __decorate$1([
816
+ jsonParseDecarator.JsonParse('data', true)
817
+ ], BcmDropdown.prototype, "dataChanged", null);
818
+ BcmDropdown.style = dropdownCss;
819
+
820
+ const iconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-icon.hidden{display:none}";
821
+
822
+ const customIconList = {
823
+ "message-bot": "message-bot.svg",
824
+ };
825
+ const BcmIcon = class {
826
+ constructor(hostRef) {
827
+ index$1.registerInstance(this, hostRef);
828
+ this.hidden = false;
829
+ this.icon = undefined;
830
+ }
831
+ getIcon() {
832
+ const { icon } = this;
833
+ if (icon in customIconList) {
834
+ const _icon = index$1.getAssetPath("./static/" + customIconList[icon]);
835
+ return (index$1.h("div", { class: "tw-flex tw-h-fit tw-w-fit tw-items-center tw-justify-center" }, index$1.h("img", { src: `${_icon}`, alt: icon, class: "tw-h-fit tw-w-fit" })));
836
+ }
837
+ return index$1.h("i", { class: `${icon}` });
838
+ }
839
+ render() {
840
+ const { /*icon,*/ hidden } = this;
841
+ return index$1.h(index$1.Host, { class: `bcm-icon fa ${hidden ? "hidden" : ""}` }, this.getIcon());
842
+ }
843
+ static get assetsDirs() { return ["static"]; }
844
+ get el() { return index$1.getElement(this); }
845
+ };
846
+ BcmIcon.style = iconCss;
847
+
848
+ const itemCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-item{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;--bcm-item-color-default:var(--bcm-new-ds-color-white);--bcm-item-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-item-color-hover:var(--bcm-new-ds-color-white);--bcm-item-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-item-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-item-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-item-color-active:var(--bcm-new-ds-color-white);--bcm-item-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-item-color-disabled:var(--bcm-new-ds-color-white);--bcm-item-background-color-disabled:var(--bcm-new-ds-color-slate-400);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;border-radius:4px;outline:none;color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item-size-small{font-size:12px;line-height:calc(12px + 8px);padding:2px 12px;min-height:calc(calc(12px + 8px) + calc(2px) * 2)}.bcm-item-size-medium{font-size:14px;line-height:calc(14px + 8px);padding:5px 12px;min-height:calc(calc(14px + 8px) + calc(5px) * 2)}.bcm-item-size-large{font-size:16px;line-height:calc(16px + 8px);padding:8px 12px;min-height:calc(calc(16px + 8px) + calc(8px) * 2)}.bcm-item:default{color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item:hover{color:var(--bcm-item-color-hover);background-color:var(--bcm-item-background-color-hover)}.bcm-item:focus-visible{color:var(--bcm-item-color-focus-visible);background-color:var(--bcm-item-background-color-focus-visible)}.bcm-item:active{color:var(--bcm-item-color-active);background-color:var(--bcm-item-background-color-active)}.bcm-item:disabled{color:var(--bcm-item-color-disabled);background-color:var(--bcm-item-background-color-disabled)}.bcm-item:not(.static):hover{cursor:pointer}";
849
+
850
+ const BcmItem = class {
851
+ constructor(hostRef) {
852
+ index$1.registerInstance(this, hostRef);
853
+ this._id = generate.Generate.UID();
854
+ this.size = bcm.Bcm$1.Size.medium;
855
+ this.color = undefined;
856
+ this.static = false;
857
+ }
858
+ setColor(color = this.color) {
859
+ if (!color)
860
+ return;
861
+ const prefix = `--bcm-item`;
862
+ if (color == "white") {
863
+ return {
864
+ [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('slate-600'),
865
+ [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('slate-600'),
866
+ [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-600'),
867
+ [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('slate-600'),
868
+ [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
869
+ [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'white'),
870
+ [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-100'),
871
+ [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-200'),
872
+ [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-300'),
873
+ [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
874
+ };
875
+ }
876
+ return {
877
+ [`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('white'),
878
+ [`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('white'),
879
+ [`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('white'),
880
+ [`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('white'),
881
+ [`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
882
+ [`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
883
+ [`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
884
+ [`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
885
+ [`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
886
+ [`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
887
+ };
888
+ }
889
+ disconnectedCallback() {
890
+ // this.el.remove()
891
+ }
892
+ render() {
893
+ const hostClasses = index$3.classnames('bcm-item', `bcm-item-size-${this.size}`);
894
+ return (index$1.h(index$1.Host, { class: hostClasses, style: this.setColor() }, index$1.h("slot", null)));
895
+ }
896
+ get el() { return index$1.getElement(this); }
897
+ };
898
+ BcmItem.style = itemCss;
899
+
900
+ const BcmItems = class {
901
+ constructor(hostRef) {
902
+ index$1.registerInstance(this, hostRef);
903
+ this.bcmItems = index$1.createEvent(this, "bcm-items", 7);
904
+ this._id = generate.Generate.UID();
905
+ }
906
+ connectedCallback() {
907
+ if (this.el.children && this.el.children.length > 0) {
908
+ let slots = this.nestedItems(this.el);
909
+ this.bcmItems.emit(slots);
910
+ this.el.remove();
911
+ }
912
+ }
913
+ mapItems(element) {
914
+ var _a;
915
+ const item = element;
916
+ const textContent = (_a = item === null || item === void 0 ? void 0 : item.innerHTML) === null || _a === void 0 ? void 0 : _a.replace(/<bcm-item>.*<\/bcm-item>/g, '').replace(/<bcm-item .*>.*<\/bcm-item>/g, '').replace(/<!--(.|\s)*?-->/g, '').trim();
917
+ const checkAttr = (attr) => stringHelper.StringHelper.elementBooleanCheck(element.getAttribute(attr));
918
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || generate.Generate.UID(), text: element.getAttribute('text') || textContent }, (element.innerHTML.trim() && { isHtmlContent: element.textContent.length > 0 ? (element.innerHTML.trim()) : null })), (checkAttr('disabled') && { disabled: checkAttr('disabled') })), (checkAttr('selected') && { selected: checkAttr('selected') })), (checkAttr('hidden') && { hidden: checkAttr('hidden') })), (checkAttr('checked') && { checked: checkAttr('checked') })), (checkAttr('readonly') && { readonly: checkAttr('readonly') })), (checkAttr('active') && { active: checkAttr('active') })), (checkAttr('icon') && { icon: element.getAttribute('icon') })), (checkAttr('link') && { link: element.getAttribute('link') }));
919
+ }
920
+ nestedItems(element) {
921
+ return generate.snq(() => Array.from(element === null || element === void 0 ? void 0 : element.children).map((child) => {
922
+ var _a;
923
+ return (Object.assign(Object.assign({}, (((_a = child === null || child === void 0 ? void 0 : child.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'bcm-item' && this.mapItems(child))), { items: this.nestedItems(child) }));
924
+ }), []);
925
+ }
926
+ render() {
927
+ return index$1.h("slot", null);
928
+ }
929
+ get el() { return index$1.getElement(this); }
930
+ };
931
+
932
+ const BcmLinked = class {
933
+ constructor(hostRef) {
934
+ index$1.registerInstance(this, hostRef);
935
+ this.bcmOpen = index$1.createEvent(this, "bcm-open", 7);
936
+ this._id = generate.Generate.UID();
937
+ this.placement = bcm.Bcm.Placement["bottom-start"];
938
+ this.trigger = bcm.Bcm.TriggerType.click;
939
+ this.targetId = "";
940
+ this.height = undefined;
941
+ this.maxHeight = undefined;
942
+ this.minHeight = "50px";
943
+ this.isOpen = false;
944
+ this.hideDelay = 500;
945
+ this.isMouseOverLink = false;
946
+ }
947
+ target() {
948
+ const target = document.querySelectorAll(`[id="${this.targetId}"]`);
949
+ if (target.length > 0) {
950
+ target.length > 1 && console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`);
951
+ return target[0];
952
+ }
953
+ else {
954
+ // console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" could not be found.`);
955
+ this.el.remove();
956
+ return null;
957
+ }
958
+ }
959
+ detectClone() {
960
+ const linked = document.querySelectorAll(`[target-id="${this.targetId}"]`);
961
+ if (linked.length > 0) {
962
+ linked.forEach((item) => {
963
+ if (item.id !== this._id) {
964
+ console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`);
965
+ item.remove();
966
+ }
967
+ });
968
+ }
969
+ }
970
+ dismissEvent() {
971
+ document.dispatchEvent(new CustomEvent("linked-data-dismiss", { detail: { id: this._id } }));
972
+ }
973
+ checkDataDismiss(e) {
974
+ generate.Generate.findEventPathHasAttribute(e, "data-dismiss") && this.dismissEvent();
975
+ }
976
+ hideChildLinked() {
977
+ this.el.querySelectorAll("[is-linked][linked-is-open]").forEach(item => {
978
+ var _a;
979
+ (_a = document.querySelector(`#${item.getAttribute("is-linked")}[is-open]`)) === null || _a === void 0 ? void 0 : _a.hide(false);
980
+ });
981
+ }
982
+ calculatePosition() {
983
+ const el = this.el;
984
+ if (el && this.target()) {
985
+ if (this.isOpen) {
986
+ floatingUi.FloatingUI({
987
+ ref: this.target(),
988
+ floating: el,
989
+ placement: this.placement,
990
+ offset: 4,
991
+ autoHidden: el.getAttribute("main-linked") === "true" ? false : true,
992
+ autoSize: true,
993
+ style: {
994
+ height: this.height,
995
+ maxHeight: this.maxHeight,
996
+ minHeight: this.minHeight,
997
+ },
998
+ });
999
+ }
1000
+ else {
1001
+ el.style.visibility = "hidden";
1002
+ el.style.opacity = "0";
1003
+ }
1004
+ }
1005
+ }
1006
+ init() {
1007
+ const target = this.target();
1008
+ this.trigger === bcm.Bcm.TriggerType.hover && this.listenMouseOver();
1009
+ if (target) {
1010
+ target.setAttribute("is-linked", this.el.id);
1011
+ if (!generate.Generate.getAncestor(target, "bcm-linked")) {
1012
+ this.el.setAttribute("main-linked", "true");
1013
+ }
1014
+ else {
1015
+ this.el.removeAttribute("main-linked");
1016
+ }
1017
+ }
1018
+ }
1019
+ componentDidLoad() {
1020
+ this.init();
1021
+ }
1022
+ triggerWatch(newValue) {
1023
+ if (newValue === bcm.Bcm.TriggerType.hover) {
1024
+ this.listenMouseOver();
1025
+ }
1026
+ }
1027
+ watchIsOpen() {
1028
+ this.bcmOpen.emit(this.isOpen);
1029
+ }
1030
+ onLinkedDataDismis() {
1031
+ this.hide(false);
1032
+ }
1033
+ onBcmFloatingIsHide(e) {
1034
+ if (e.detail.id === this._id) {
1035
+ this.hide(false);
1036
+ }
1037
+ }
1038
+ async show(wait = true) {
1039
+ wait && (await utils.delay(50));
1040
+ this.detectClone();
1041
+ const target = this.target();
1042
+ if (target) {
1043
+ const bcmOverlayContainer = document.querySelector("#bcm-overlay-container");
1044
+ bcmOverlayContainer.appendChild(this.el);
1045
+ target.setAttribute("linked-is-open", "true");
1046
+ this.isOpen = true;
1047
+ this.calculatePosition();
1048
+ }
1049
+ else {
1050
+ this.hide(false);
1051
+ }
1052
+ return this.isOpen;
1053
+ }
1054
+ async hide(wait = true) {
1055
+ wait && (await utils.delay(50));
1056
+ const target = this.target();
1057
+ this.isMouseOverLink = false;
1058
+ if (target) {
1059
+ target.removeAttribute("linked-is-open");
1060
+ this.hideChildLinked();
1061
+ this.isOpen = false;
1062
+ }
1063
+ return this.isOpen;
1064
+ }
1065
+ async toggle(wait = true) {
1066
+ return this.isOpen ? await this.hide(wait) : await this.show(wait);
1067
+ }
1068
+ clickListener(e) {
1069
+ if (!this.target())
1070
+ return;
1071
+ if (this.trigger === bcm.Bcm.TriggerType.hover)
1072
+ return;
1073
+ const isTarget = generate.Generate.findEventPath(e, this.target());
1074
+ const isSelf = generate.Generate.findEventPath(e, this.el);
1075
+ const isLinked = generate.Generate.findEventPathWithNodeName(e, "BCM-LINKED");
1076
+ if (!isTarget && !isSelf && !isLinked) {
1077
+ this.hide();
1078
+ this.bcmOpen.emit(this.isOpen);
1079
+ return;
1080
+ }
1081
+ if (this.isOpen) {
1082
+ isTarget && this.hide(false);
1083
+ isSelf && this.checkDataDismiss(e);
1084
+ if (this.el.getAttribute("main-linked") === "true" && !isTarget && !isSelf && !isLinked) {
1085
+ this.dismissEvent();
1086
+ }
1087
+ }
1088
+ else {
1089
+ isTarget && this.show(false);
1090
+ }
1091
+ }
1092
+ resizeListener() {
1093
+ this.calculatePosition();
1094
+ }
1095
+ scrollListener() {
1096
+ this.calculatePosition();
1097
+ }
1098
+ wheelListener() {
1099
+ this.calculatePosition();
1100
+ }
1101
+ listenMouseOver() {
1102
+ var _a, _b;
1103
+ this.el.addEventListener("mouseover", () => (this.isMouseOverLink = true));
1104
+ this.el.addEventListener("mouseleave", () => {
1105
+ this.isMouseOverLink = false;
1106
+ this.handleMouseLeave();
1107
+ });
1108
+ (_a = this.target()) === null || _a === void 0 ? void 0 : _a.addEventListener("mouseenter", this.handleMouseEnter.bind(this));
1109
+ (_b = this.target()) === null || _b === void 0 ? void 0 : _b.addEventListener("mouseleave", this.handleMouseLeave.bind(this));
1110
+ }
1111
+ handleMouseLeave() {
1112
+ setTimeout(() => {
1113
+ !this.isMouseOverLink && this.hide();
1114
+ }, this.hideDelay);
1115
+ }
1116
+ handleMouseEnter() {
1117
+ clearTimeout(this.timeoutId);
1118
+ this.isMouseOverLink = false;
1119
+ this.show();
1120
+ }
1121
+ render() {
1122
+ const openStyle = this.isOpen ? { visibility: "visible", opacity: "1" } : { visibility: "hidden", opacity: "0" };
1123
+ return (index$1.h(index$1.Host, { class: "tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100", style: Object.assign(Object.assign({}, openStyle), { overflow: "auto" }) }, index$1.h("slot", null)));
1124
+ }
1125
+ get el() { return index$1.getElement(this); }
1126
+ static get watchers() { return {
1127
+ "trigger": ["triggerWatch"],
1128
+ "isOpen": ["watchIsOpen"]
1129
+ }; }
1130
+ };
1131
+
1132
+ const menuCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-menu{--bcm-menu-color-default:var(--bcm-new-ds-color-slate-700);--bcm-menu-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-menu-icon-color-default:var(--bcm-new-ds-color-slate-600);--bcm-menu-color-hover:var(--bcm-new-ds-color-slate-800);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-menu-icon-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-menu-color-active:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active:var(--bcm-color-primary-500);--bcm-menu-icon-color-active:var(--bcm-new-ds-color-white);--bcm-menu-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-background-color-focus-visible:var(--bcm-color-primary-600);--bcm-menu-icon-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-menu-background-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-menu-icon-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-menu-color-dropdownDisabled:var(--bcm-new-ds-color-slate-400);--bcm-menu-background-color-dropdownDisabled:var(--bcm-new-ds-color-transparent);--bcm-menu-icon-color-dropdownDisabled:var(--bcm-new-ds-color-slate-400);--bcm-menu-color-active-hover:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-hover:var(--bcm-color-primary-400);--bcm-menu-icon-color-active-hover:var(--bcm-new-ds-color-white);--bcm-menu-color-active-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-focus-visible:var(--bcm-color-primary-700);--bcm-menu-icon-color-active-focus-visible:var(--bcm-new-ds-color-white);--bcm-menu-color-active-active:var(--bcm-new-ds-color-white);--bcm-menu-background-color-active-active:var(--bcm-color-primary-800);--bcm-menu-icon-color-active-active:var(--bcm-new-ds-color-white);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;position:relative;width:210px;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);transition:background-color 0.1s ease-in-out, width 0.3s ease-in-out}.bcm-menu__container{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap}.bcm-menu__item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;font:inherit;cursor:pointer;color:inherit;background-color:inherit;padding:0;margin:0;border:none;outline:none;text-decoration:none}.bcm-menu__item:hover,.bcm-menu__item:focus,.bcm-menu__item:active{outline:none;text-decoration:none}.bcm-menu__item--is-sub{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover);border-radius:4px}.bcm-menu__item--is-sub .bcm-menu__item-link-icon,.bcm-menu__item--is-sub .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-hover)}.bcm-menu__item-link{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;padding:4px 8px;border-radius:4px;transition:background-color 0.1s ease-in-out, padding 0.3s ease-in-out;color:var(--bcm-menu-color-default);background-color:var(--bcm-menu-background-color-default)}.bcm-menu__item-link-icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;min-width:24px;max-width:24px}.bcm-menu__item-link-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.bcm-menu__item-link-text--collapse{opacity:0}.bcm-menu__item-link-toggle{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;font-size:10px;height:100%;order:0;width:24px;transform:rotate(0deg);transition:transform 0.2s ease-in-out;margin-right:-8px}.bcm-menu__item-link-toggle--collapse{transform:rotate(-180deg)}.bcm-menu__item-link .bcm-menu__item-link-icon,.bcm-menu__item-link .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-default)}.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:hover:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-hover)}.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:active:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active)}.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:focus-visible:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-focus-visible)}.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:disabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active){color:var(--bcm-menu-color-dropdownDisabled);background-color:var(--bcm-menu-background-color-dropdownDisabled)}.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-icon,.bcm-menu__item-link:dropdownDisabled:not(.bcm-menu__item-link--disabled):not(.bcm-menu__item-link--active) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-dropdownDisabled)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled){color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled) .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled) .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover{color:var(--bcm-menu-color-active-hover);background-color:var(--bcm-menu-background-color-active-hover)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):hover .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-hover)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible{color:var(--bcm-menu-color-active-focus-visible);background-color:var(--bcm-menu-background-color-active-focus-visible)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):focus-visible .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-focus-visible)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active{color:var(--bcm-menu-color-active-active);background-color:var(--bcm-menu-background-color-active-active)}.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active .bcm-menu__item-link-icon,.bcm-menu__item-link--active:not(.bcm-menu__item-link--disabled):active .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-active-active)}.bcm-menu__item-link--disabled{cursor:not-allowed;color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu__item-submenu{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px;padding:12px;display:none}.bcm-menu__item-submenu .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-white);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu__item-submenu--open{display:flex}.bcm-menu__size-small{padding:8px;font-size:12px;line-height:calc(14px + 8px)}.bcm-menu__size-medium{padding:16px;font-size:14px;line-height:calc(16px + 8px)}.bcm-menu__size-large{padding:16px;font-size:16px;line-height:calc(18px + 8px)}.bcm-menu__collapse-button{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active);display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;font-size:14px;border-radius:100px;position:absolute;top:23px;right:-8px;width:18px;height:18px;cursor:pointer;transition:background-color 0.1s ease-in-out, transform 0.3s ease}.bcm-menu__collapse-button:hover{color:var(--bcm-menu-color-active-hover);background-color:var(--bcm-menu-background-color-active-hover)}.bcm-menu__collapse-button:focus-visible{color:var(--bcm-menu-color-active-focus-visible);background-color:var(--bcm-menu-background-color-active-focus-visible)}.bcm-menu__collapse-button:active{color:var(--bcm-menu-color-active-active);background-color:var(--bcm-menu-background-color-active-active)}.bcm-menu__collapse-button--collapsed{transform:rotate(-180deg)}.bcm-menu__collapse{width:64px}.bcm-menu__collapse .bcm-menu__item-link{padding:4px}.bcm-menu--linked{position:absolute;z-index:10800;top:0;left:0;opacity:0;visibility:hidden;width:fit-content;min-height:50px;max-height:500px;height:auto;overflow-y:auto;padding:12px}.bcm-menu--linked.bcm-menu__open{opacity:1;visibility:visible}.bcm-menu--linked .bcm-menu__container{gap:4px}.bcm-menu--linked .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-slate-50);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu--linked .bcm-menu__item .bcm-menu__item-submenu .bcm-menu__item-link{--bcm-menu-background-color-default:var(--bcm-new-ds-color-white);--bcm-menu-background-color-hover:var(--bcm-new-ds-color-slate-100)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active){background-color:var(--bcm-menu-background-color-default)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):hover{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):focus-visible{color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active):active{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled{cursor:not-allowed;color:var(--bcm-menu-color-disabled);background-color:var(--bcm-menu-background-color-disabled)}.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu--linked .bcm-menu__item-submenu-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-submenu-link:not(.bcm-menu--linked .bcm-menu__item-submenu-link--active) .bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-disabled)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active){background-color:var(--bcm-menu-background-color-default)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):hover{color:var(--bcm-menu-color-hover);background-color:var(--bcm-menu-background-color-hover)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):focus-visible{color:var(--bcm-menu-color-focus-visible);background-color:var(--bcm-menu-background-color-focus-visible)}.bcm-menu--linked .bcm-menu__item-link:not(:disabled) .bcm-menu--linked .bcm-menu__item-link:not(.bcm-menu--linked .bcm-menu__item-link--active):active{color:var(--bcm-menu-color-active);background-color:var(--bcm-menu-background-color-active)}.bcm-menu__dropdown{width:auto;max-width:210px}.bcm-menu__dropdown .bcm-menu__item-link--disabled{color:var(--bcm-menu-color-dropdownDisabled);background-color:var(--bcm-menu-background-color-dropdownDisabled)}.bcm-menu__dropdown .bcm-menu__item-link--disabled .bcm-menu__item-link-icon,.bcm-menu__dropdown .bcm-menu__item-link--disabled .bcm-menu__item-link-toggle{color:var(--bcm-menu-icon-color-dropdownDisabled)}";
1133
+
1134
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1135
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1136
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1137
+ r = Reflect.decorate(decorators, target, key, desc);
1138
+ else
1139
+ for (var i = decorators.length - 1; i >= 0; i--)
1140
+ if (d = decorators[i])
1141
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1142
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1143
+ };
1144
+ const BcmMenu = class {
1145
+ constructor(hostRef) {
1146
+ index$1.registerInstance(this, hostRef);
1147
+ this.bcmClick = index$1.createEvent(this, "bcm-click", 7);
1148
+ this.bcmExpanded = index$1.createEvent(this, "bcm-expanded", 7);
1149
+ this.bcmMenuChange = index$1.createEvent(this, "bcm-menu-change", 7);
1150
+ this._id = generate.Generate.UID();
1151
+ this.size = 'medium';
1152
+ this.collapsible = false;
1153
+ this.collapse = false;
1154
+ this.mode = 'inline';
1155
+ this.disabled = false;
1156
+ this.hidden = false;
1157
+ this.linkedComponent = undefined;
1158
+ this.height = 'auto';
1159
+ this.maxHeight = '500px';
1160
+ this.minHeight = '150px';
1161
+ this.selectable = true;
1162
+ this.gap = "16px";
1163
+ this.dropdown = false;
1164
+ this.placement = 'bottom-start';
1165
+ this.activeItemId = undefined;
1166
+ this.data = [];
1167
+ }
1168
+ async setActive(param) {
1169
+ this.activeItemId = null;
1170
+ const recursive = (data) => {
1171
+ data.forEach(item => {
1172
+ if (item.id == param) {
1173
+ item.active = true;
1174
+ this.activeItemId = item.id;
1175
+ this.bcmClick.emit(item);
1176
+ }
1177
+ else {
1178
+ item.active = false;
1179
+ if (item.items) {
1180
+ recursive(item.items);
1181
+ }
1182
+ }
1183
+ });
1184
+ };
1185
+ recursive(this.data);
1186
+ }
1187
+ async getActive() {
1188
+ return this.activeItem;
1189
+ }
1190
+ handleSlotItems({ detail }) {
1191
+ this.data = detail;
1192
+ }
1193
+ handleClickItem(item) {
1194
+ if (item.items && item.items.length > 0) {
1195
+ item.isOpen = !item.isOpen;
1196
+ index$1.forceUpdate(this);
1197
+ }
1198
+ else {
1199
+ this.activeItemId = item.id;
1200
+ document.dispatchEvent(new CustomEvent('linked-data-dismiss', { detail: { id: this._id } }));
1201
+ }
1202
+ // this.data = this.data.map(menuItem => ({ ...menuItem, active: menuItem.id === item.id }));
1203
+ this.bcmClick.emit(item);
1204
+ }
1205
+ getTooltip(id, text) {
1206
+ return new Tooltip({ message: text, targetId: 'bcm-menu__item-' + this._id + '-' + id, placement: 'right' });
1207
+ }
1208
+ render() {
1209
+ const { data, collapsible, collapse } = this;
1210
+ const hostClasses = index$3.classnames('bcm-menu', `bcm-menu__size-${this.size}`, {
1211
+ 'bcm-menu__collapse': collapse,
1212
+ 'bcm-menu__dropdown': this.dropdown,
1213
+ });
1214
+ const MenuLinkTemplate = (item, index) => {
1215
+ if (!item.text)
1216
+ return;
1217
+ if (!item.id)
1218
+ item.id = generate.Generate.UID();
1219
+ const subItems = !!(item.items && item.items.length);
1220
+ if (this.selectable && (this.activeItemId ? this.activeItemId === item.id : item.active)) {
1221
+ this.bcmMenuChange.emit(item);
1222
+ this.activeItem = item;
1223
+ }
1224
+ return (index$1.h("a", { id: 'bcm-menu__item-' + this._id + '-' + item.id, onMouseEnter: () => this.collapse && this.getTooltip(item.id, item.text).show(), onMouseLeave: () => this.collapse && this.getTooltip(item.id, item.text).hide(), key: index, href: !item.disabled ? item.link || 'javascript:void(0)' : 'javascript:void(0)', tabindex: item.disabled ? '-1' : '0', class: index$3.classnames('bcm-menu__item', {
1225
+ 'bcm-menu__item--is-sub': subItems && item.isOpen,
1226
+ 'hidden tw-hidden': item.hidden,
1227
+ }) }, index$1.h("span", { class: index$3.classnames('bcm-menu__item-link', `bcm-menu__item-link--${this.mode}`, {
1228
+ 'bcm-menu__item-link--active': this.selectable && (this.activeItemId ? this.activeItemId === item.id : item.active),
1229
+ 'bcm-menu__item-link--disabled': item.disabled,
1230
+ }), onClick: () => {
1231
+ !this.disabled && !item.disabled && this.handleClickItem(item);
1232
+ } }, item.icon && (index$1.h("span", { class: "bcm-menu__item-link-icon" }, index$1.h("i", { class: item.icon || 'far fa-angle-left' }))), index$1.h("span", { class: index$3.classnames('bcm-menu__item-link-text', {
1233
+ 'bcm-menu__item-link-text--collapse': collapse,
1234
+ }), innerHTML: item.text }), subItems && (index$1.h("div", { class: index$3.classnames('bcm-menu__item-link-toggle', {
1235
+ 'bcm-menu__item-link-toggle--collapse': item.isOpen,
1236
+ }) }, index$1.h("i", { class: "fas fa-chevron-down" })))), subItems && (index$1.h("div", { class: index$3.classnames('bcm-menu__item-submenu', {
1237
+ 'bcm-menu__item-submenu--collapse': collapse,
1238
+ 'bcm-menu__item-submenu--open': item.isOpen,
1239
+ }) }, item.items.map((subItem, subIndex) => MenuLinkTemplate(subItem, subIndex))))));
1240
+ };
1241
+ return (index$1.h(index$1.Host, { class: hostClasses, disabled: this.disabled }, index$1.h("div", { class: "bcm-menu__container", style: { gap: this.gap } }, index$1.h("slot", null), (data === null || data === void 0 ? void 0 : data.length) > 0 && data.map((item, index) => MenuLinkTemplate(item, index)), collapsible && (index$1.h("div", { class: index$3.classnames('bcm-menu__collapse-button', {
1242
+ 'bcm-menu__collapse-button--collapsed': collapse,
1243
+ }), onClick: () => {
1244
+ this.collapse = !collapse;
1245
+ collapsible && this.bcmExpanded.emit(collapse);
1246
+ } }, index$1.h("i", { class: "far fa-angle-left" }))))));
1247
+ }
1248
+ get el() { return index$1.getElement(this); }
1249
+ };
1250
+ __decorate([
1251
+ isLoadDecorator.IsLoad()
1252
+ ], BcmMenu.prototype, "el", void 0);
1253
+ BcmMenu.style = menuCss;
1254
+
1255
+ const BcmPopover = class {
1256
+ constructor(hostRef) {
1257
+ index$1.registerInstance(this, hostRef);
1258
+ this.bcmPopoverShow = index$1.createEvent(this, "bcmPopoverShow", 7);
1259
+ this.bcmPopoverHide = index$1.createEvent(this, "bcmPopoverHide", 7);
1260
+ this._id = generate.Generate.UID();
1261
+ this.message = "";
1262
+ this.content = "";
1263
+ this.placement = bcm.Bcm.Placement.top;
1264
+ this.trigger = bcm.Bcm.TriggerType.click;
1265
+ this.open = false;
1266
+ this.color = "white";
1267
+ this.openDelay = 0;
1268
+ this.closeDelay = 0;
1269
+ this.autoHide = false;
1270
+ this.targetId = undefined;
1271
+ this.popover = undefined;
1272
+ }
1273
+ emitShow() {
1274
+ this.bcmPopoverShow.emit();
1275
+ }
1276
+ emitHide() {
1277
+ this.bcmPopoverHide.emit();
1278
+ }
1279
+ connectedCallback() {
1280
+ this.popover = new Popover({
1281
+ targetId: this.targetId || this._id,
1282
+ content: this.content,
1283
+ message: this.message,
1284
+ placement: this.placement,
1285
+ color: this.color,
1286
+ trigger: this.trigger,
1287
+ openDelay: this.openDelay,
1288
+ closeDelay: this.closeDelay,
1289
+ autoHide: this.autoHide,
1290
+ emitShow: () => this.emitShow(),
1291
+ emitHide: () => this.emitHide(),
1292
+ });
1293
+ }
1294
+ componentDidLoad() {
1295
+ this.popover.listener();
1296
+ }
1297
+ componentDidRender() {
1298
+ const { content, message, placement, color, trigger } = this;
1299
+ this.popover.content = content;
1300
+ this.popover.message = message;
1301
+ this.popover.placement = placement;
1302
+ this.popover.color = color;
1303
+ this.popover.trigger = trigger;
1304
+ this.popover.openDelay = this.openDelay;
1305
+ this.popover.closeDelay = this.closeDelay;
1306
+ this.popover.autoHide = this.autoHide;
1307
+ this.popover.update();
1308
+ }
1309
+ disconnectedCallback() {
1310
+ this.popover.destroy();
1311
+ }
1312
+ async show() {
1313
+ this.popover.show();
1314
+ }
1315
+ async hide() {
1316
+ this.popover.hide();
1317
+ }
1318
+ async toggle() {
1319
+ this.popover.toggle();
1320
+ }
1321
+ render() {
1322
+ return (index$1.h(index$1.Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, index$1.h("slot", null)));
1323
+ }
1324
+ get el() { return index$1.getElement(this); }
1325
+ };
1326
+
1327
+ const BcmTabGroup = class {
1328
+ constructor(hostRef) {
1329
+ index$1.registerInstance(this, hostRef);
1330
+ this.tabChange = index$1.createEvent(this, "bcm-tab-change", 7);
1331
+ this._id = generate.Generate.UID();
1332
+ this.active = "1";
1333
+ this.color = "blue";
1334
+ this.size = bcm.Bcm.Size.medium;
1335
+ }
1336
+ get tabItems() {
1337
+ return this.el.querySelectorAll("bcm-tab-item");
1338
+ }
1339
+ get tabItemHeaders() {
1340
+ return this.el.querySelectorAll("bcm-tab-item-header");
1341
+ }
1342
+ setTabAttributes() {
1343
+ this.tabItems.forEach((tab, index) => {
1344
+ const itemActive = tab.hasAttribute("active") ? true : false;
1345
+ const itemDisabled = tab.hasAttribute("disabled") ? true : false;
1346
+ const itemIndex = index + 1;
1347
+ tab.setAttribute("index", `${itemIndex}`);
1348
+ tab.setAttribute("size", this.size);
1349
+ tab.setAttribute("color", this.color);
1350
+ tab.removeAttribute("active");
1351
+ tab.removeAttribute("disabled");
1352
+ if (itemActive) {
1353
+ tab.setAttribute("active", "");
1354
+ this.active = itemIndex.toString();
1355
+ }
1356
+ if (itemDisabled) {
1357
+ tab.setAttribute("disabled", "");
1358
+ }
1359
+ // const headerElement = tab.querySelector("bcm-tab-item-header");
1360
+ // if (headerElement) {
1361
+ // this.setHeaderTabAttributes(headerElement, tab);
1362
+ // }
1363
+ });
1364
+ const isHasActiveTab = Array.from(this.tabItems).some((tab) => tab.hasAttribute("active"));
1365
+ if (!isHasActiveTab) {
1366
+ this.tabItems[0].setAttribute("active", "");
1367
+ }
1368
+ }
1369
+ componentWillLoad() {
1370
+ this.setTabAttributes();
1371
+ }
1372
+ handleTabClick(index) {
1373
+ var _a, _b;
1374
+ if (index) {
1375
+ this.active = index.toString();
1376
+ }
1377
+ if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
1378
+ this.tabItems.forEach(tab => {
1379
+ tab.removeAttribute("active");
1380
+ tab.setAttribute("size", this.size);
1381
+ tab.setAttribute("color", this.color);
1382
+ if (tab.getAttribute("index") == this.active) {
1383
+ tab.setAttribute("active", "");
1384
+ }
1385
+ });
1386
+ }
1387
+ if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
1388
+ this.tabItemHeaders.forEach(tabHeader => {
1389
+ tabHeader.removeAttribute("active");
1390
+ tabHeader.setAttribute("size", this.size);
1391
+ tabHeader.setAttribute("color", this.color);
1392
+ if (tabHeader.getAttribute("index") == this.active) {
1393
+ tabHeader.setAttribute("active", "");
1394
+ // tabHeader.scrollIntoView({
1395
+ // behavior: "smooth",
1396
+ // block: "start",
1397
+ // inline: "center",
1398
+ // });
1399
+ }
1400
+ });
1401
+ }
1402
+ this.tabChange.emit(this.active);
1403
+ }
1404
+ componentDidRender() {
1405
+ this.inkBarControl();
1406
+ this.handleTabClick();
1407
+ }
1408
+ componentDidLoad() {
1409
+ this.inkBarControl();
1410
+ this.observeTabItem();
1411
+ }
1412
+ async setActive(index) {
1413
+ if (index > 0 && index <= this.tabItems.length && index != +this.active) {
1414
+ this.handleTabClick(index);
1415
+ }
1416
+ }
1417
+ async refresh() {
1418
+ await utils.delay(100);
1419
+ index$1.forceUpdate(this);
1420
+ }
1421
+ inkBarControl() {
1422
+ var _a;
1423
+ const inkBar = this.el.querySelector("#ink-bar");
1424
+ if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
1425
+ return;
1426
+ for (let i = 0; i < this.tabItemHeaders.length; i++) {
1427
+ const tab = this.tabItemHeaders[i];
1428
+ const tabIndex = tab.getAttribute("index");
1429
+ if (tabIndex === this.active) {
1430
+ inkBar.style.width = `${tab.offsetWidth}px`;
1431
+ // inkBar.style.top = `${tab.offsetHeight}px`;
1432
+ inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
1433
+ }
1434
+ }
1435
+ }
1436
+ activeChanged(newVal, _oldVal) {
1437
+ var _a;
1438
+ if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
1439
+ return;
1440
+ const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
1441
+ if (!isHasActiveTab) {
1442
+ this.active = "1";
1443
+ }
1444
+ }
1445
+ observeTabItem() {
1446
+ const callback = (mutationsList, _observer) => {
1447
+ for (const mutation of mutationsList) {
1448
+ if (mutation.type === "childList") {
1449
+ // for (const node of mutation.addedNodes) {
1450
+ // if (node.nodeName === "BCM-TAB-ITEM") {
1451
+ // // Do something when a bcm-tab-item is added
1452
+ // }
1453
+ // }
1454
+ for (const node of mutation.removedNodes) {
1455
+ if (node.nodeName === "BCM-TAB-ITEM") {
1456
+ // Do something when a bcm-tab-item is removed
1457
+ // console.log("A bcm-tab-item was removed.", node);
1458
+ if (node === null || node === void 0 ? void 0 : node.active) {
1459
+ this.active = "1";
1460
+ }
1461
+ this.tabProcess();
1462
+ }
1463
+ }
1464
+ }
1465
+ }
1466
+ };
1467
+ this.observer = new MutationObserver(callback);
1468
+ this.observer.observe(this.el, { childList: true });
1469
+ }
1470
+ tabProcess() {
1471
+ this.updateTabHeaders();
1472
+ this.regenerateIndex();
1473
+ this.refresh();
1474
+ this.inkBarControl();
1475
+ }
1476
+ updateTabHeaders() {
1477
+ const tabIds = Array.from(this.tabItems).map(tab => tab.getAttribute("id"));
1478
+ const tabHeaderElements = Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));
1479
+ if (tabIds.length !== tabHeaderElements.length) {
1480
+ tabHeaderElements.forEach(tabHeader => {
1481
+ const tabId = tabHeader.getAttribute("tab-id");
1482
+ if (!tabIds.includes(tabId)) {
1483
+ tabHeader.remove();
1484
+ }
1485
+ });
1486
+ }
1487
+ }
1488
+ regenerateIndex() {
1489
+ this.tabItems.forEach((tab, index) => {
1490
+ const itemIndex = index + 1;
1491
+ tab.setAttribute("index", `${itemIndex}`);
1492
+ const headerElement = this.el.querySelector(`bcm-tab-item-header[tab-id="${tab.getAttribute("id")}"]`);
1493
+ if (headerElement) {
1494
+ headerElement.setAttribute("index", `${itemIndex}`);
1495
+ headerElement.style.order = `${itemIndex}`;
1496
+ }
1497
+ });
1498
+ }
1499
+ render() {
1500
+ const { color } = this;
1501
+ const dc = generate.Generate.getTwColor({
1502
+ color: color,
1503
+ tones: [500]
1504
+ });
1505
+ return (index$1.h(index$1.Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, index$1.h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, index$1.h("div", { id: "ink-bar", class: `tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), index$1.h("slot", null)));
1506
+ }
1507
+ get el() { return index$1.getElement(this); }
1508
+ static get watchers() { return {
1509
+ "active": ["activeChanged"]
1510
+ }; }
1511
+ };
1512
+
1513
+ const BcmTabItem = class {
1514
+ constructor(hostRef) {
1515
+ index$1.registerInstance(this, hostRef);
1516
+ this._id = generate.Generate.UID();
1517
+ this.active = false;
1518
+ this.disabled = false;
1519
+ this.index = undefined;
1520
+ }
1521
+ componentWillLoad() {
1522
+ this.indexControl();
1523
+ }
1524
+ componentDidRender() {
1525
+ this.headerMove();
1526
+ }
1527
+ getHeaderItem() {
1528
+ const headerItem = this.el.querySelector("bcm-tab-item-header");
1529
+ if (headerItem) {
1530
+ headerItem.setAttribute("index", `${this.index}`);
1531
+ headerItem.setAttribute("active", `${this.active}`);
1532
+ headerItem.setAttribute("disabled", `${this.disabled}`);
1533
+ headerItem.setAttribute("tab-id", `${this._id}`);
1534
+ headerItem.style.order = `${this.index}`;
1535
+ }
1536
+ return headerItem;
1537
+ }
1538
+ getParentTabGroup() {
1539
+ return generate.Generate.findParentElement(this.el, "bcm-tab-group");
1540
+ }
1541
+ getFindHeaderItem() {
1542
+ var _a, _b;
1543
+ return (_b = (_a = this.getParentTabGroup()) === null || _a === void 0 ? void 0 : _a.querySelector("#tab-header")) === null || _b === void 0 ? void 0 : _b.querySelector(`bcm-tab-item-header[tab-id="${this._id}"]`);
1544
+ }
1545
+ headerMove() {
1546
+ var _a, _b, _c, _d;
1547
+ if (this.getHeaderItem()) {
1548
+ (_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
1549
+ (_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
1550
+ (_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
1551
+ }
1552
+ }
1553
+ indexControl() {
1554
+ var _a;
1555
+ if (!this.index) {
1556
+ (_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
1557
+ if (item === this.el) {
1558
+ item.setAttribute("index", `${index + 1}`);
1559
+ }
1560
+ });
1561
+ }
1562
+ }
1563
+ componentDidLoad() {
1564
+ const observer = new MutationObserver(() => {
1565
+ this.headerMove();
1566
+ });
1567
+ observer.observe(this.el, { childList: true, subtree: true });
1568
+ }
1569
+ render() {
1570
+ return (index$1.h(index$1.Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: {
1571
+ "tw-block": this.active,
1572
+ "tw-hidden": !this.active,
1573
+ "tw-opacity-50": this.disabled,
1574
+ "tw-w-full": true,
1575
+ } }, index$1.h("slot", null)));
1576
+ }
1577
+ get el() { return index$1.getElement(this); }
1578
+ };
1579
+
1580
+ const BcmTabItemHeader = class {
1581
+ constructor(hostRef) {
1582
+ index$1.registerInstance(this, hostRef);
1583
+ this._id = generate.Generate.UID();
1584
+ this.active = false;
1585
+ this.disabled = false;
1586
+ this.index = undefined;
1587
+ this.color = "blue";
1588
+ this.size = bcm.Bcm.Size.medium;
1589
+ }
1590
+ handleClick() {
1591
+ var _a;
1592
+ if (!this.disabled) {
1593
+ (_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
1594
+ }
1595
+ }
1596
+ render() {
1597
+ const { color, size, active, disabled } = this;
1598
+ const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
1599
+ const dc = generate.Generate.getTwColor({
1600
+ color: color,
1601
+ tones: [500, 600, 700, 800]
1602
+ });
1603
+ return (index$1.h(index$1.Host, { onClick: () => this.handleClick(), class: index$3.classnames(`tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none`, {
1604
+ "tw-text-2 tw-py-1 tw-gap-2": size === bcm.Bcm.Size.small,
1605
+ "tw-text-3 tw-py-2 tw-gap-3": size === bcm.Bcm.Size.medium,
1606
+ "tw-text-4 tw-py-3 tw-gap-4": size === bcm.Bcm.Size.large,
1607
+ }, disabled ? disabledClass : "tw-cursor-pointer", active
1608
+ ? `tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800`
1609
+ : "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"), style: dc }));
1610
+ }
1611
+ get el() { return index$1.getElement(this); }
1612
+ };
1613
+
1614
+ const textCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-text{display:inline;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}";
1615
+
1616
+ const BcmText = class {
1617
+ constructor(hostRef) {
1618
+ index$1.registerInstance(this, hostRef);
1619
+ this.hidden = false;
1620
+ this.scale = undefined;
1621
+ this.weight = "400";
1622
+ this.color = "slate";
1623
+ this.text = undefined;
1624
+ this.fontSize = 4;
1625
+ }
1626
+ render() {
1627
+ const { hidden, scale, weight, color, fontSize } = this;
1628
+ const hostClasses = index$3.classnames('bcm-text', {
1629
+ hidden
1630
+ });
1631
+ const classes = index$3.classnames('bcm-text__paragraph', `bcm-text__font-size-${fontSize}`, scale);
1632
+ const fontWeight = +weight || 400;
1633
+ const style = {
1634
+ color: colorHelper.ColorHelper.dsColor(color),
1635
+ fontWeight
1636
+ };
1637
+ return (index$1.h(index$1.Host, { class: hostClasses }, index$1.h("span", { hidden: true }, index$1.h("slot", null)), index$1.h("p", { class: classes, style: Object.assign({}, style) }, index$1.h(slotTemplate.SlotTemplate, { value: this.text }))));
1638
+ }
1639
+ get el() { return index$1.getElement(this); }
1640
+ };
1641
+ BcmText.style = textCss;
1642
+
1643
+ const BcmTooltip = class {
1644
+ constructor(hostRef) {
1645
+ index$1.registerInstance(this, hostRef);
1646
+ this.bcmTooltipShow = index$1.createEvent(this, "bcmTooltipShow", 7);
1647
+ this.bcmTooltipHide = index$1.createEvent(this, "bcmTooltipHide", 7);
1648
+ this._id = generate.Generate.UID();
1649
+ this.message = "";
1650
+ this.placement = bcm.Bcm.Placement.top;
1651
+ this.trigger = bcm.Bcm.TriggerType.click;
1652
+ this.open = false;
1653
+ this.color = "slate";
1654
+ this.size = bcm.Bcm.Size.medium;
1655
+ this.openDelay = 0;
1656
+ this.closeDelay = 0;
1657
+ this.autoHide = false;
1658
+ this.targetId = undefined;
1659
+ this.tooltip = undefined;
1660
+ }
1661
+ emitShow() {
1662
+ this.bcmTooltipShow.emit();
1663
+ }
1664
+ emitHide() {
1665
+ this.bcmTooltipHide.emit();
1666
+ }
1667
+ connectedCallback() {
1668
+ this.tooltip = new Tooltip({
1669
+ targetId: this.targetId || this._id,
1670
+ message: this.message,
1671
+ placement: this.placement,
1672
+ color: this.color,
1673
+ trigger: this.trigger,
1674
+ size: this.size,
1675
+ openDelay: this.openDelay,
1676
+ closeDelay: this.closeDelay,
1677
+ autoHide: this.autoHide,
1678
+ emitShow: () => this.emitShow(),
1679
+ emitHide: () => this.emitHide(),
1680
+ });
1681
+ }
1682
+ componentDidLoad() {
1683
+ this.tooltip.listener();
1684
+ }
1685
+ componentDidRender() {
1686
+ this.tooltip.message = this.message;
1687
+ this.tooltip.placement = this.placement;
1688
+ this.tooltip.color = this.color;
1689
+ this.tooltip.trigger = this.trigger;
1690
+ this.tooltip.size = this.size;
1691
+ this.tooltip.openDelay = this.openDelay;
1692
+ this.tooltip.closeDelay = this.closeDelay;
1693
+ this.tooltip.autoHide = this.autoHide;
1694
+ this.tooltip.update();
1695
+ }
1696
+ disconnectedCallback() {
1697
+ this.tooltip.destroy();
1698
+ }
1699
+ async show() {
1700
+ this.tooltip.show();
1701
+ }
1702
+ async hide() {
1703
+ this.tooltip.hide();
1704
+ }
1705
+ async toggle() {
1706
+ this.tooltip.toggle();
1707
+ }
1708
+ render() {
1709
+ return (index$1.h(index$1.Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, index$1.h("slot", null)));
1710
+ }
1711
+ get el() { return index$1.getElement(this); }
1712
+ };
1713
+
1714
+ const BcmTypography = class {
1715
+ constructor(hostRef) {
1716
+ index$1.registerInstance(this, hostRef);
1717
+ }
1718
+ render() {
1719
+ return (index$1.h(index$1.Host, { class: "bcm-ui-element bcm-ui-content-display" }, index$1.h("slot", null)));
1720
+ }
1721
+ get el() { return index$1.getElement(this); }
1722
+ };
1723
+
1724
+ exports.bcm_badge = BcmBadge;
1725
+ exports.bcm_button = BcmButton;
1726
+ exports.bcm_dropdown = BcmDropdown;
1727
+ exports.bcm_icon = BcmIcon;
1728
+ exports.bcm_item = BcmItem;
1729
+ exports.bcm_items = BcmItems;
1730
+ exports.bcm_linked = BcmLinked;
1731
+ exports.bcm_menu = BcmMenu;
1732
+ exports.bcm_popover = BcmPopover;
1733
+ exports.bcm_tab_group = BcmTabGroup;
1734
+ exports.bcm_tab_item = BcmTabItem;
1735
+ exports.bcm_tab_item_header = BcmTabItemHeader;
1736
+ exports.bcm_text = BcmText;
1737
+ exports.bcm_tooltip = BcmTooltip;
1738
+ exports.bcm_typography = BcmTypography;