bromcom-ui 2.8.1-rc.0 → 2.8.1-rc.10-0

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 (273) 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-2a93a5a2.entry.js → p-02a232a6.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-afc59b65.entry.js → p-033bc73e.entry.js} +1 -1
  5. package/dist/bromcom-ui/p-037a40a6.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-f66df7e2.entry.js → p-03db2686.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-2c6f2c6e.entry.js → p-04869d82.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-05069d60.entry.js +5 -0
  9. package/dist/bromcom-ui/{p-35d087b1.entry.js → p-0e247b5c.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-0c043993.entry.js → p-104a911e.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-985b830e.entry.js → p-134cb719.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  13. package/dist/bromcom-ui/p-1fac3b1b.entry.js +5 -0
  14. package/dist/bromcom-ui/p-2a8b1592.js +5 -0
  15. package/dist/bromcom-ui/p-2cd16cba.entry.js +5 -0
  16. package/dist/bromcom-ui/{p-233a1fb4.entry.js → p-2fb6a382.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-6e6cd7c5.entry.js → p-327e6b40.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-e9e1004b.entry.js → p-50a6e6ad.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-771ad3a6.entry.js → p-50dedc69.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-df70c965.entry.js → p-516a396f.entry.js} +1 -1
  21. package/dist/bromcom-ui/p-60db4bb4.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-edea9dfd.entry.js → p-6d54838e.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-36bac522.entry.js → p-811034bb.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-c0c5cb65.entry.js → p-83385ad0.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-f87163ff.entry.js → p-844ddccb.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-eeca9f6a.js → p-8496349d.js} +1 -1
  27. package/dist/bromcom-ui/{p-40bdc7f4.entry.js → p-851a15f4.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-1b334e60.entry.js → p-86ba62bc.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-88bde8d0.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-b8067e79.entry.js → p-8c2af9eb.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-82aff8b2.entry.js → p-92f92499.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-0bb029b9.entry.js → p-948c5685.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-6a2c25e7.js → p-95ac600e.js} +1 -1
  34. package/dist/bromcom-ui/{p-84e3a7c2.entry.js → p-95c94d6b.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-f58d8231.entry.js → p-98067117.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-9b2fbdbe.js +5 -0
  37. package/dist/bromcom-ui/{p-746e776f.entry.js → p-9b6b06b7.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-eaa0450d.entry.js → p-a32b3d70.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-15322ffb.js → p-a3d9a134.js} +1 -1
  40. package/dist/bromcom-ui/{p-dab9ce79.entry.js → p-a4129ba5.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-1622e5dd.entry.js → p-a46dbcbe.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-964e1b9d.entry.js → p-a61d0671.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-d6c9225c.entry.js → p-af2ce958.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-3f3e0704.entry.js → p-b655061c.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-ab3598c2.entry.js → p-bad48e36.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-34af5169.entry.js → p-c1326b6b.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-c6a39efd.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-f7dd4f41.entry.js → p-c7e477c2.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-8804713b.entry.js → p-c8ccc4e9.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-cbf609ed.entry.js +5 -0
  51. package/dist/bromcom-ui/p-ccf71804.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-31c05e88.entry.js → p-ce99fc13.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-5f594403.entry.js → p-e03a7e41.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-1ab0af09.entry.js → p-e1ec4ae0.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-e2660e43.entry.js +13 -0
  56. package/dist/bromcom-ui/{p-fb13a0d7.entry.js → p-e5f2263f.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-0d7bb78b.entry.js → p-e803d804.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-df7b3fed.js → p-f0082c91.js} +1 -1
  59. package/dist/bromcom-ui/{p-5b21f39a.js → p-f2c540cc.js} +1 -1
  60. package/dist/bromcom-ui/{p-a3d7bc84.entry.js → p-fcc88dea.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-ff944406.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-c91d78bb.entry.js → p-fff16d5e.entry.js} +1 -1
  63. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  64. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  67. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-button_7.cjs.entry.js +7 -4
  70. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  74. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  75. package/dist/cjs/bcm-colorful_2.cjs.entry.js +34 -549
  76. package/dist/cjs/bcm-content.cjs.entry.js +22 -0
  77. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +4 -7
  79. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  80. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  81. package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -10
  82. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  84. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  85. package/dist/cjs/bcm-input.cjs.entry.js +5 -5
  86. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-list.cjs.entry.js +158 -345
  89. package/dist/cjs/bcm-menu.cjs.entry.js +10 -7
  90. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  92. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-modal.cjs.entry.js +35 -11
  94. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  95. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-popover.cjs.entry.js +12 -5
  97. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  98. package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
  99. package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
  100. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +2443 -0
  102. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  103. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  104. package/dist/cjs/bcm-stepper.cjs.entry.js +23 -7
  105. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  106. package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
  107. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
  108. package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
  109. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  110. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  111. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  112. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  113. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  114. package/dist/cjs/{generate-411c1529.js → generate-fbd410e1.js} +10 -1
  115. package/dist/cjs/index-906fb4e5.js +540 -0
  116. package/dist/cjs/{input-template-741a1078.js → input-template-68bd0585.js} +1 -1
  117. package/dist/cjs/{json-parse-decarator-661924f2.js → json-parse-decarator-6a4b6957.js} +1 -1
  118. package/dist/cjs/loader.cjs.js +1 -1
  119. package/dist/cjs/{number-helper-91446798.js → number-helper-4d112085.js} +1 -1
  120. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  121. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  122. package/dist/cjs/{stepper-states-ee18b202.js → stepper-states-21ff9922.js} +1 -1
  123. package/dist/cjs/{tooltip-helper-dee255e9.js → tooltip-helper-e87e3189.js} +6 -4
  124. package/dist/cjs/{validators-c131b7c6.js → validators-d4b3d110.js} +1 -1
  125. package/dist/collection/collection-manifest.json +4 -2
  126. package/dist/collection/components/molecules/dropdown/dropdown.js +20 -8
  127. package/dist/collection/components/molecules/input/input.css +0 -4
  128. package/dist/collection/components/molecules/linked/linked.js +20 -6
  129. package/dist/collection/components/molecules/menu/menu.css +32 -10
  130. package/dist/collection/components/molecules/menu/menu.js +41 -2
  131. package/dist/collection/components/molecules/modal/modal.css +1 -1
  132. package/dist/collection/components/molecules/modal/modal.js +59 -17
  133. package/dist/collection/components/molecules/popover/popover.js +38 -15
  134. package/dist/collection/components/molecules/search/search.css +0 -4
  135. package/dist/collection/components/molecules/stepper/stepper.css +75 -43
  136. package/dist/collection/components/molecules/stepper/stepper.js +38 -2
  137. package/dist/collection/components/molecules/textarea/textarea.css +0 -4
  138. package/dist/collection/components/molecules/tooltip/tooltip.js +21 -0
  139. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +3 -6
  140. package/dist/collection/components/organism/list/list.css +4 -3
  141. package/dist/collection/components/organism/list/list.js +172 -177
  142. package/dist/collection/components/organism/states/bcm-list2.states.js +19 -18
  143. package/dist/collection/components/other/content/content.js +15 -0
  144. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -5
  145. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  146. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  147. package/dist/collection/helper/generate.js +9 -0
  148. package/dist/collection/helper/popover-helper.js +3 -1
  149. package/dist/collection/helper/tooltip-helper.js +3 -1
  150. package/dist/collection/templates/list-template.js +2 -2
  151. package/dist/components/bcm-alert.js +1 -1
  152. package/dist/components/bcm-checkbox-group.js +1 -1
  153. package/dist/components/bcm-content.d.ts +11 -0
  154. package/dist/components/bcm-content.js +35 -0
  155. package/dist/components/bcm-dropdown.js +3 -8
  156. package/dist/components/bcm-list.js +172 -346
  157. package/dist/components/bcm-modal.js +35 -11
  158. package/dist/components/bcm-popover.js +11 -3
  159. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  160. package/dist/components/bcm-rc-overflow.js +10 -0
  161. package/dist/components/bcm-stepper.js +20 -4
  162. package/dist/components/bcm-textarea.js +1 -1
  163. package/dist/components/button.js +1 -1
  164. package/dist/components/colorful.js +2 -531
  165. package/dist/components/datetime-picker.js +3 -6
  166. package/dist/components/generate.js +10 -1
  167. package/dist/components/index.d.ts +3 -1
  168. package/dist/components/index.js +2 -0
  169. package/dist/components/index3.js +523 -177
  170. package/dist/components/index4.js +191 -0
  171. package/dist/components/input.js +1 -1
  172. package/dist/components/linked.js +20 -6
  173. package/dist/components/menu.js +8 -3
  174. package/dist/components/rc-overflow.js +2238 -0
  175. package/dist/components/search.js +2 -2
  176. package/dist/components/step.js +1 -1
  177. package/dist/components/tooltip-helper.js +3 -1
  178. package/dist/components/tooltip.js +4 -0
  179. package/dist/esm/bcm-accordion.entry.js +1 -1
  180. package/dist/esm/bcm-alert.entry.js +1 -1
  181. package/dist/esm/bcm-attendance.entry.js +1 -1
  182. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  183. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  184. package/dist/esm/bcm-button-group.entry.js +1 -1
  185. package/dist/esm/bcm-button_7.entry.js +7 -4
  186. package/dist/esm/bcm-card.entry.js +1 -1
  187. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  188. package/dist/esm/bcm-chip.entry.js +1 -1
  189. package/dist/esm/bcm-collapse.entry.js +1 -1
  190. package/dist/esm/bcm-color-input.entry.js +3 -3
  191. package/dist/esm/bcm-colorful_2.entry.js +25 -540
  192. package/dist/esm/bcm-content.entry.js +18 -0
  193. package/dist/esm/bcm-date-picker.entry.js +1 -1
  194. package/dist/esm/bcm-datetime-picker.entry.js +4 -7
  195. package/dist/esm/bcm-default.entry.js +1 -1
  196. package/dist/esm/bcm-drawer.entry.js +3 -3
  197. package/dist/esm/bcm-dropdown.entry.js +4 -10
  198. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  199. package/dist/esm/bcm-form-2.entry.js +1 -1
  200. package/dist/esm/bcm-input-custom.entry.js +1 -1
  201. package/dist/esm/bcm-input.entry.js +5 -5
  202. package/dist/esm/bcm-item.entry.js +1 -1
  203. package/dist/esm/bcm-items.entry.js +1 -1
  204. package/dist/esm/bcm-list.entry.js +158 -345
  205. package/dist/esm/bcm-menu.entry.js +10 -7
  206. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  207. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  208. package/dist/esm/bcm-modal-2.entry.js +3 -3
  209. package/dist/esm/bcm-modal.entry.js +35 -11
  210. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  211. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  212. package/dist/esm/bcm-popover.entry.js +12 -5
  213. package/dist/esm/bcm-progress.entry.js +1 -1
  214. package/dist/esm/bcm-radio-group.entry.js +3 -3
  215. package/dist/esm/bcm-radio.entry.js +3 -3
  216. package/dist/esm/bcm-range.entry.js +1 -1
  217. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  218. package/dist/esm/bcm-skeleton.entry.js +1 -1
  219. package/dist/esm/bcm-step.entry.js +2 -2
  220. package/dist/esm/bcm-stepper.entry.js +23 -7
  221. package/dist/esm/bcm-switch.entry.js +1 -1
  222. package/dist/esm/bcm-tab-group.entry.js +3 -3
  223. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  224. package/dist/esm/bcm-tab-item.entry.js +3 -3
  225. package/dist/esm/bcm-tag.entry.js +2 -2
  226. package/dist/esm/bcm-textarea.entry.js +3 -3
  227. package/dist/esm/bcm-time-picker.entry.js +1 -1
  228. package/dist/esm/bcm-toast.entry.js +1 -1
  229. package/dist/esm/bromcom-ui.js +1 -1
  230. package/dist/esm/{generate-3e284764.js → generate-078b420f.js} +10 -1
  231. package/dist/esm/index-6310a048.js +537 -0
  232. package/dist/esm/{input-template-b0adc55c.js → input-template-2fa28387.js} +1 -1
  233. package/dist/esm/{json-parse-decarator-5f1e26d4.js → json-parse-decarator-22e8e247.js} +1 -1
  234. package/dist/esm/loader.js +1 -1
  235. package/dist/esm/{number-helper-ca1092d7.js → number-helper-ed541ffb.js} +1 -1
  236. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  237. package/dist/esm/old-bcm-popover.entry.js +1 -1
  238. package/dist/esm/{stepper-states-f8c0fb9b.js → stepper-states-d7a39df1.js} +1 -1
  239. package/dist/esm/{tooltip-helper-d4a37741.js → tooltip-helper-b0776da6.js} +6 -4
  240. package/dist/esm/{validators-c025ec38.js → validators-f8caf3b9.js} +1 -1
  241. package/dist/types/components/molecules/dropdown/dropdown.d.ts +1 -1
  242. package/dist/types/components/molecules/linked/linked.d.ts +3 -0
  243. package/dist/types/components/molecules/menu/menu.d.ts +2 -0
  244. package/dist/types/components/molecules/modal/modal.d.ts +10 -4
  245. package/dist/types/components/molecules/popover/popover.d.ts +2 -1
  246. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -0
  247. package/dist/types/components/molecules/tooltip/tooltip.d.ts +1 -0
  248. package/dist/types/components/organism/list/list.d.ts +9 -5
  249. package/dist/types/components/organism/states/bcm-list2.states.d.ts +1 -1
  250. package/dist/types/components/other/content/content.d.ts +6 -0
  251. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  252. package/dist/types/components.d.ts +54 -4
  253. package/dist/types/helper/popover-helper.d.ts +3 -1
  254. package/dist/types/helper/tooltip-helper.d.ts +3 -1
  255. package/package.json +2 -1
  256. package/dist/bromcom-ui/p-0f41f6e2.entry.js +0 -5
  257. package/dist/bromcom-ui/p-1362b17e.entry.js +0 -5
  258. package/dist/bromcom-ui/p-37a28587.js +0 -5
  259. package/dist/bromcom-ui/p-3bb952e7.entry.js +0 -5
  260. package/dist/bromcom-ui/p-748cb943.entry.js +0 -5
  261. package/dist/bromcom-ui/p-8a0128e6.entry.js +0 -5
  262. package/dist/bromcom-ui/p-98fe21a3.entry.js +0 -5
  263. package/dist/bromcom-ui/p-9f48d505.entry.js +0 -5
  264. package/dist/bromcom-ui/p-b4f02061.entry.js +0 -10
  265. package/dist/bromcom-ui/p-b52fe89c.entry.js +0 -5
  266. package/dist/bromcom-ui/p-feab9d90.entry.js +0 -5
  267. package/dist/bromcom-ui/p-ff408c78.js +0 -5
  268. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  269. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  270. package/dist/esm/bcm-search.entry.js +0 -241
  271. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  272. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  273. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -2,9 +2,9 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import { createStore } from '@stencil/store';
6
- import snq from 'snq';
7
- import { Generate } from '../../../helper/generate';
5
+ import { createStore } from "@stencil/store";
6
+ import snq from "snq";
7
+ import { Generate } from "../../../helper/generate";
8
8
  const { state } = createStore({
9
9
  value: new Map(),
10
10
  });
@@ -56,12 +56,12 @@ const setValue = val => {
56
56
  };
57
57
  state.value.set(data.id, data);
58
58
  };
59
- const recursive = (data, options, parentId, parentIndex = '0.') => {
59
+ const recursive = (data, options, parentId, parentIndex = "0.") => {
60
60
  let recData = [];
61
61
  if (data && data.length > 0) {
62
- recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: Object.assign(Object.assign({}, item), { _i: `${parentIndex}${index}` }) }, item), options), { parentId: snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
62
+ recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: item }, item), options), { parentId: snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
63
63
  ? { items: snq(() => recursive(item.items, options, item.id, `${parentIndex}${index}`), []) }
64
- : { items: [] }))));
64
+ : { items: [] })), { ct: `${parentIndex}${index}` })));
65
65
  }
66
66
  return recData;
67
67
  };
@@ -72,10 +72,10 @@ const getValue = id => snq(() => state.value.get(id), {});
72
72
  const calculateTotalItems = (dataSource, treeview) => {
73
73
  let total = 0;
74
74
  dataSource.forEach(item => {
75
- if (treeview || (!treeview && item.type != 'group')) {
75
+ if (treeview || (!treeview && item.type != "group")) {
76
76
  total += 1;
77
77
  }
78
- if ((treeview || (!treeview && item.type == 'group')) && item.items) {
78
+ if ((treeview || (!treeview && item.type == "group")) && item.items) {
79
79
  total += calculateTotalItems(item.items, treeview);
80
80
  }
81
81
  });
@@ -205,7 +205,7 @@ const checkedProcess = (id, item, status) => {
205
205
  const treeview = value.options.treeview;
206
206
  if (item) {
207
207
  // && !item.hidden => select all bastığımızda hidden olanları seçmemesi içindi
208
- if (treeview || (!treeview && item.type != 'group')) {
208
+ if (treeview || (!treeview && item.type != "group")) {
209
209
  if (!item.disabled) {
210
210
  if (status != undefined) {
211
211
  item.checked = status;
@@ -214,7 +214,7 @@ const checkedProcess = (id, item, status) => {
214
214
  item.checked = !item.checked;
215
215
  }
216
216
  item.itemObject.checked = item.checked;
217
- item.indeterminate = item.checked ? 'determinate' : 'uncheck';
217
+ item.indeterminate = item.checked ? "determinate" : "uncheck";
218
218
  }
219
219
  }
220
220
  if (item.items) {
@@ -241,13 +241,13 @@ const indeterminateStatus = (id, itemId, items) => {
241
241
  let allUnchecked = true;
242
242
  if (item.items) {
243
243
  item.items.map(child => {
244
- (child.checked || child.indeterminate === 'indeterminate') && (allUnchecked = false);
244
+ (child.checked || child.indeterminate === "indeterminate") && (allUnchecked = false);
245
245
  !child.checked && (allChecked = false);
246
246
  });
247
247
  }
248
- const indeterminateState = !allChecked && !allUnchecked ? 'indeterminate' : allChecked ? 'determinate' : 'uncheck';
248
+ const indeterminateState = !allChecked && !allUnchecked ? "indeterminate" : allChecked ? "determinate" : "uncheck";
249
249
  item.indeterminate = indeterminateState;
250
- item.checked = indeterminateState == 'determinate' ? true : false;
250
+ item.checked = indeterminateState == "determinate" ? true : false;
251
251
  item.itemObject.checked = item.checked;
252
252
  if (item.parentId) {
253
253
  indeterminateStatus(id, item.parentId);
@@ -399,11 +399,12 @@ const getCheckedList = (id, items) => {
399
399
  if (dataSource) {
400
400
  dataSource.forEach(item => {
401
401
  var _a;
402
+ const newItem = Object.assign(Object.assign({}, item.itemObject), { ct: item.ct });
402
403
  let foundChild = [];
403
404
  let foundItem = [];
404
405
  if (item.checked) {
405
- checkedList.push(item.itemObject);
406
- foundItem.push(Object.assign(Object.assign({}, item.itemObject), { items: [] }));
406
+ checkedList.push(newItem);
407
+ foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
407
408
  }
408
409
  if (item.items) {
409
410
  const found = getCheckedList(id, item.items);
@@ -416,7 +417,7 @@ const getCheckedList = (id, items) => {
416
417
  }
417
418
  if (foundChild.length > 0) {
418
419
  if (foundItem.length == 0) {
419
- foundItem.push(Object.assign(Object.assign({}, item.itemObject), { items: [] }));
420
+ foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
420
421
  }
421
422
  foundItem[0].items = foundChild;
422
423
  nestedResult.push(foundItem[0]);
@@ -484,10 +485,10 @@ const setClear = (id, items) => {
484
485
  var _a, _b, _c;
485
486
  item.checked && (item.checked = false);
486
487
  item.selected && (item.selected = false);
487
- item.indeterminate && (item.indeterminate = 'uncheck');
488
+ item.indeterminate && (item.indeterminate = "uncheck");
488
489
  ((_a = item.itemObject) === null || _a === void 0 ? void 0 : _a.checked) && (item.itemObject.checked = false);
489
490
  ((_b = item.itemObject) === null || _b === void 0 ? void 0 : _b.selected) && (item.itemObject.selected = false);
490
- ((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate = 'uncheck');
491
+ ((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate = "uncheck");
491
492
  if (item.items) {
492
493
  setClear(id, item.items);
493
494
  }
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ export class BcmContent {
7
+ constructor() {
8
+ this.el.slot = "content";
9
+ }
10
+ render() {
11
+ return (h(Host, null, h("slot", null)));
12
+ }
13
+ static get is() { return "bcm-content"; }
14
+ static get elementRef() { return "el"; }
15
+ }
@@ -356,7 +356,6 @@
356
356
  -moz-appearance: none;
357
357
  appearance: none;
358
358
  outline: none;
359
- white-space: nowrap;
360
359
  overflow: hidden;
361
360
  text-overflow: ellipsis;
362
361
  }
@@ -446,9 +445,6 @@
446
445
  .bcm-input__container--large {
447
446
  font-size: 16px;
448
447
  }
449
- .bcm-input__textarea .bcm-input-element {
450
- white-space: normal;
451
- }
452
448
  .bcm-input__textarea.clearable .bcm-input-element {
453
449
  padding-right: 24px;
454
450
  }
@@ -463,7 +459,7 @@ bcm-colorful {
463
459
  flex-direction: column;
464
460
  width: 256px;
465
461
  padding: 8px;
466
- background-color: var(--bcm-new-ds-color-white);
462
+ background-color: #fff;
467
463
  border-radius: 4px;
468
464
  }
469
465
 
@@ -0,0 +1,138 @@
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
2
+ .size-1 {
3
+ font-size: 12px;
4
+ line-height: 20px;
5
+ }
6
+
7
+ .size-2 {
8
+ font-size: 14px;
9
+ line-height: 22px;
10
+ }
11
+
12
+ .size-3 {
13
+ font-size: 16px;
14
+ line-height: 24px;
15
+ }
16
+
17
+ .size-4 {
18
+ font-size: 20px;
19
+ line-height: 28px;
20
+ }
21
+
22
+ .size-5 {
23
+ font-size: 24px;
24
+ line-height: 32px;
25
+ }
26
+
27
+ .size-6 {
28
+ font-size: 30px;
29
+ line-height: 38px;
30
+ }
31
+
32
+ .size-7 {
33
+ font-size: 38px;
34
+ line-height: 46px;
35
+ }
36
+
37
+ .size-8 {
38
+ font-size: 46px;
39
+ line-height: 54px;
40
+ }
41
+
42
+ .size-9 {
43
+ font-size: 56px;
44
+ line-height: 64px;
45
+ }
46
+
47
+ .weight-regular {
48
+ font-weight: 400;
49
+ }
50
+
51
+ .weight-semibold {
52
+ font-weight: 500;
53
+ }
54
+
55
+ /**
56
+ * Generator
57
+ */
58
+ .input-size-large {
59
+ height: 40px;
60
+ }
61
+
62
+ .input-size-medium {
63
+ height: 32px;
64
+ }
65
+
66
+ .input-size-small {
67
+ height: 24px;
68
+ }
69
+
70
+ .resize-none textarea {
71
+ resize: none;
72
+ }
73
+
74
+ .resize-vertical textarea {
75
+ resize: vertical;
76
+ }
77
+
78
+ .resize-auto textarea {
79
+ height: auto;
80
+ resize: none;
81
+ }
82
+
83
+ .textarea-size-large {
84
+ padding: 4px 0 0 4px;
85
+ min-height: 40px;
86
+ }
87
+ .textarea-size-large .bcm-input-element {
88
+ min-height: calc((40px - 8px) + 2px);
89
+ }
90
+ .textarea-size-large .input-clear-button {
91
+ height: calc( 40px - 16px );
92
+ top: 8px;
93
+ padding: 0;
94
+ margin-right: 8px;
95
+ }
96
+
97
+ .textarea-size-medium {
98
+ padding: 4px 0 0 4px;
99
+ min-height: 32px;
100
+ }
101
+ .textarea-size-medium .bcm-input-element {
102
+ min-height: calc((32px - 8px) + 2px);
103
+ }
104
+ .textarea-size-medium .input-clear-button {
105
+ height: calc( 32px - 16px );
106
+ top: 8px;
107
+ padding: 0;
108
+ margin-right: 8px;
109
+ }
110
+
111
+ .textarea-size-small {
112
+ padding: 0px 0 0 4px;
113
+ min-height: 24px;
114
+ }
115
+ .textarea-size-small .bcm-input-element {
116
+ min-height: calc((24px - 8px) + 2px);
117
+ }
118
+ .textarea-size-small .input-clear-button {
119
+ height: calc( 24px - 16px );
120
+ top: 8px;
121
+ padding: 0;
122
+ margin-right: 8px;
123
+ }
124
+
125
+ .rc-overflow {
126
+ display: flex;
127
+ flex-direction: row;
128
+ flex-wrap: nowrap;
129
+ width: 100%;
130
+ }
131
+
132
+ .rc-overflow-item {
133
+ transition: all 0.3s ease;
134
+ padding: 0 2px;
135
+ display: flex;
136
+ align-items: center;
137
+ justify-content: center;
138
+ }
@@ -0,0 +1,194 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { Generate, StringHelper } from "@bcm/helpers";
6
+ import Overflow from "rc-overflow";
7
+ import React from "react";
8
+ import ReactDOM from "react-dom";
9
+ export class BcmRcOverflow {
10
+ constructor() {
11
+ this.renderItem = item => {
12
+ return React.createElement("bcm-tooltip", {
13
+ placement: "bottom",
14
+ message: item.text,
15
+ trigger: "hover",
16
+ }, React.createElement("div", {
17
+ id: item.value + "-tag",
18
+ className: "bcm-tag",
19
+ onClick: ({ target }) => this.onClickControl(target, item, false),
20
+ }, React.createElement("span", { className: "bcm-tag__content dismissable" },
21
+ // .bcm-tag__content span {
22
+ // display: block;
23
+ // max-width: 38px;
24
+ // white-space: nowrap;
25
+ // overflow: hidden;
26
+ // text-overflow: ellipsis;
27
+ React.createElement("div", { className: "value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap" }, item.text), React.createElement("span", {
28
+ className: "right close-button",
29
+ }, React.createElement("bcm-icon", {
30
+ icon: "fa fa-times",
31
+ })))));
32
+ };
33
+ this.renderRest = items => {
34
+ const titles = (items === null || items === void 0 ? void 0 : items.sort((a, b) => +a.ct - +b.ct).slice(0, 15).map(item => StringHelper.textLimitter(item.text, 40, true)).toString().split(",").join("\r\n")) + (items.length > 15 ? "\r\n..." : "");
35
+ return React.createElement("bcm-tooltip", {
36
+ placement: "bottom",
37
+ message: titles,
38
+ trigger: "hover",
39
+ }, React.createElement("div", {
40
+ className: "bcm-tag bcm-tag--other",
41
+ onClick: ({ target }) => this.onClickControl(target, items, true),
42
+ }, React.createElement("span", { className: `bcm-tag__content dismissable ${this.checked ? "checkable checked" : ""}` }, React.createElement("span", { className: "value" }, `+${items === null || items === void 0 ? void 0 : items.length}`), React.createElement("span", { className: "right close-button" }, React.createElement("bcm-icon", {
43
+ icon: "fa fa-times",
44
+ })))));
45
+ };
46
+ this._id = Generate.UID();
47
+ this.maxCount = 1;
48
+ this.data = [];
49
+ this.checked = false;
50
+ }
51
+ isClickDismiss(e) {
52
+ return e["s-hn"] === "BCM-ICON";
53
+ }
54
+ onClickControl(e, item, isOtherTag = false) {
55
+ const isClickClose = this.isClickDismiss(e);
56
+ isClickClose && this.deleteTag.emit({ id: Array.isArray(item) ? item.map(i => i.value) : item.value }) && this.checked && (this.checked = false);
57
+ !isOtherTag && this.selectTag.emit({ id: item.value }) && this.checked && (this.checked = false);
58
+ if (isOtherTag && !isClickClose) {
59
+ this.checked = !this.checked;
60
+ this.selectOtherTag.emit({ id: item === null || item === void 0 ? void 0 : item.map(i => i.value), checked: this.checked });
61
+ }
62
+ }
63
+ componentWillRender() {
64
+ const { data, renderItem, renderRest, maxCount } = this;
65
+ this.overflowInstance = React.createElement(Overflow, {
66
+ data,
67
+ renderItem,
68
+ renderRest,
69
+ maxCount,
70
+ });
71
+ ReactDOM.render(this.overflowInstance, this.el);
72
+ }
73
+ static get is() { return "bcm-rc-overflow"; }
74
+ static get originalStyleUrls() {
75
+ return {
76
+ "$": ["rc-overflow.scss"]
77
+ };
78
+ }
79
+ static get styleUrls() {
80
+ return {
81
+ "$": ["rc-overflow.css"]
82
+ };
83
+ }
84
+ static get properties() {
85
+ return {
86
+ "_id": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": ""
99
+ },
100
+ "attribute": "id",
101
+ "reflect": true,
102
+ "defaultValue": "Generate.UID()"
103
+ },
104
+ "maxCount": {
105
+ "type": "any",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "number | \"responsive\" | \"invalidate\"",
109
+ "resolved": "\"invalidate\" | \"responsive\" | number",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "attribute": "max-count",
119
+ "reflect": false,
120
+ "defaultValue": "1"
121
+ },
122
+ "data": {
123
+ "type": "unknown",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "[]",
127
+ "resolved": "[]",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "defaultValue": "[]"
137
+ }
138
+ };
139
+ }
140
+ static get states() {
141
+ return {
142
+ "checked": {}
143
+ };
144
+ }
145
+ static get events() {
146
+ return [{
147
+ "method": "selectOtherTag",
148
+ "name": "bcm-select-other-tag",
149
+ "bubbles": true,
150
+ "cancelable": true,
151
+ "composed": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "complexType": {
157
+ "original": "any",
158
+ "resolved": "any",
159
+ "references": {}
160
+ }
161
+ }, {
162
+ "method": "selectTag",
163
+ "name": "bcm-select-tag",
164
+ "bubbles": true,
165
+ "cancelable": true,
166
+ "composed": true,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "complexType": {
172
+ "original": "any",
173
+ "resolved": "any",
174
+ "references": {}
175
+ }
176
+ }, {
177
+ "method": "deleteTag",
178
+ "name": "bcm-delete-tag",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "complexType": {
187
+ "original": "any",
188
+ "resolved": "any",
189
+ "references": {}
190
+ }
191
+ }];
192
+ }
193
+ static get elementRef() { return "el"; }
194
+ }
@@ -23,6 +23,15 @@ if (isAllowedDomain()) {
23
23
  body.classList.add(`bcm-theme-${theme}`);
24
24
  }
25
25
  })();
26
+ (function checkOverlayContainer() {
27
+ const body = document.querySelector("body");
28
+ let overlayContainer = document.querySelector("#bcm-overlay-container");
29
+ if (!overlayContainer) {
30
+ overlayContainer = document.createElement("div");
31
+ overlayContainer.id = "bcm-overlay-container";
32
+ body.appendChild(overlayContainer);
33
+ }
34
+ })();
26
35
  export class Generate {
27
36
  static getTwColor(color, variable = "--bcm-color-default") {
28
37
  if (!color || !colors[color]) {
@@ -5,7 +5,7 @@
5
5
  import { delay, FloatingUI } from "@bcm/utils";
6
6
  import { ColorHelper, Generate, StringHelper } from "@bcm/helpers";
7
7
  export class Popover {
8
- constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { } }) {
8
+ constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
9
9
  this.destroy = () => {
10
10
  this.el = document.getElementById(this.id);
11
11
  if (this.el) {
@@ -51,6 +51,7 @@ export class Popover {
51
51
  switch (this.trigger) {
52
52
  case "click":
53
53
  this.target().addEventListener("click", this.toggle.bind(this));
54
+ this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
54
55
  break;
55
56
  case "hover":
56
57
  this.target().addEventListener("mouseenter", this.show.bind(this));
@@ -128,6 +129,7 @@ export class Popover {
128
129
  this.id = targetId + "-popover-box";
129
130
  this.openDelay = openDelay;
130
131
  this.closeDelay = closeDelay;
132
+ this.autoHide = autoHide;
131
133
  this.emitShow = emitShow;
132
134
  this.emitHide = emitHide;
133
135
  }
@@ -6,7 +6,7 @@ import { delay, FloatingUI } from "@bcm/utils";
6
6
  import { ColorHelper, Generate, StringHelper } from "@bcm/helpers";
7
7
  import { Bcm } from "@bcm/model";
8
8
  export class Tooltip {
9
- constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { }, }) {
9
+ constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { }, }) {
10
10
  this.destroy = () => {
11
11
  this.el = document.getElementById(this.id);
12
12
  if (this.el) {
@@ -55,6 +55,7 @@ export class Tooltip {
55
55
  switch (this.trigger) {
56
56
  case "click":
57
57
  this.target().addEventListener("click", this.toggle.bind(this));
58
+ this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
58
59
  break;
59
60
  case "hover":
60
61
  this.target().addEventListener("mouseenter", this.show.bind(this));
@@ -132,6 +133,7 @@ export class Tooltip {
132
133
  this.size = size;
133
134
  this.openDelay = openDelay;
134
135
  this.closeDelay = closeDelay;
136
+ this.autoHide = autoHide;
135
137
  this.emitShow = emitShow;
136
138
  this.emitHide = emitHide;
137
139
  }
@@ -9,8 +9,8 @@ export const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treev
9
9
  const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
10
10
  const setScrollHeight = () => {
11
11
  const itemHeight = size === 'small' ? 28 : size === 'medium' ? 36 : 48;
12
- const itemCount = searchFound >= 0 || (treeview ? items.length : totalData);
13
- let scrollHeight = itemCount * itemHeight || 0;
12
+ const itemCount = searchFound == null ? (treeview ? items.length : totalData) : searchFound;
13
+ const scrollHeight = itemCount * itemHeight || 0;
14
14
  return {
15
15
  'min-height': `${scrollHeight}px`,
16
16
  'overscroll-behavior': 'none',
@@ -5,7 +5,7 @@
5
5
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
6
6
  import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate.js';
7
7
  import { c as classnames } from './index2.js';
8
- import { c as createStore } from './index3.js';
8
+ import { c as createStore } from './index4.js';
9
9
  import { S as StringHelper } from './string-helper.js';
10
10
  import { d as defineCustomElement$2 } from './icon.js';
11
11
 
@@ -7,7 +7,7 @@ import { c as classnames } from './index2.js';
7
7
  import { G as Generate, s as snq } from './generate.js';
8
8
  import { B as Bcm } from './bcm.js';
9
9
  import { d as delay, g as getChildElements } from './utils.js';
10
- import { c as createStore } from './index3.js';
10
+ import { c as createStore } from './index4.js';
11
11
  import { L as LabelTemplate } from './label-template.js';
12
12
  import { I as IsLoad } from './is-load-decorator.js';
13
13
  import { d as defineCustomElement$5 } from './checkbox.js';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BcmContent extends Components.BcmContent, HTMLElement {}
4
+ export const BcmContent: {
5
+ prototype: BcmContent;
6
+ new (): BcmContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+
7
+ const BcmContent$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.el.slot = "content";
12
+ }
13
+ render() {
14
+ return (h(Host, null, h("slot", null)));
15
+ }
16
+ get el() { return this; }
17
+ }, [4, "bcm-content"]);
18
+ function defineCustomElement$1() {
19
+ if (typeof customElements === "undefined") {
20
+ return;
21
+ }
22
+ const components = ["bcm-content"];
23
+ components.forEach(tagName => { switch (tagName) {
24
+ case "bcm-content":
25
+ if (!customElements.get(tagName)) {
26
+ customElements.define(tagName, BcmContent$1);
27
+ }
28
+ break;
29
+ } });
30
+ }
31
+
32
+ const BcmContent = BcmContent$1;
33
+ const defineCustomElement = defineCustomElement$1;
34
+
35
+ export { BcmContent, defineCustomElement };
@@ -57,6 +57,7 @@ const BcmDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
57
57
  this.minHeight = '50px';
58
58
  this.stopDeepClean = false;
59
59
  this.selectable = true;
60
+ this.gap = '4px';
60
61
  this.color = undefined;
61
62
  this.activeItem = null;
62
63
  this.data = [];
@@ -79,13 +80,6 @@ const BcmDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
79
80
  handleSlotItems({ detail }) {
80
81
  this.data = detail;
81
82
  }
82
- componentDidLoad() {
83
- var _a;
84
- const bcmContent = this.el.querySelector('bcm-content');
85
- if (bcmContent) {
86
- (_a = document.getElementById(this.menuId)) === null || _a === void 0 ? void 0 : _a.appendChild(bcmContent);
87
- }
88
- }
89
83
  setActiveAttribute(e) {
90
84
  if (e.detail) {
91
85
  this.bcmDropdownChange.emit(e.detail);
@@ -105,7 +99,7 @@ const BcmDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
105
99
  'bcm-dropdown__icon--open': isOpen,
106
100
  });
107
101
  const dropdownIcon = (h("span", { class: iconClasses }, h("bcm-icon", { icon: this.dropdownIcon })));
108
- return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), this.noStyle && h("slot", null), !this.noStyle && (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 })), h("slot", null), type === 'dropdown' && dropdownIcon)), !this.noStyle && type === 'split' && (h("bcm-button", Object.assign({ id: `${this._id}-button-split`, class: "split-button" }, attributes), dropdownIcon)), 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 && 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) }))));
102
+ return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), this.noStyle && h("slot", null), !this.noStyle && (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 })), h("slot", null), type === 'dropdown' && dropdownIcon)), !this.noStyle && type === 'split' && (h("bcm-button", Object.assign({ id: `${this._id}-button-split`, class: "split-button" }, attributes), dropdownIcon)), 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 && 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 }), h("slot", { name: "content" }))));
109
103
  }
110
104
  get el() { return this; }
111
105
  static get watchers() { return {
@@ -139,6 +133,7 @@ const BcmDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
139
133
  "minHeight": [1, "min-height"],
140
134
  "stopDeepClean": [4, "stop-deep-clean"],
141
135
  "selectable": [4],
136
+ "gap": [1],
142
137
  "color": [8],
143
138
  "data": [1032],
144
139
  "activeItem": [32],