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

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 (259) 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-5b2b1352.entry.js → p-02c42184.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-037a40a6.entry.js +5 -0
  5. package/dist/bromcom-ui/{p-0ae7d5fb.entry.js → p-06a45faf.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-748cefe3.entry.js → p-089069a9.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-09c105f8.js +5 -0
  8. package/dist/bromcom-ui/{p-70909443.entry.js → p-09e8d92e.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-e0991d3a.entry.js → p-09fbb3b8.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-c2210caa.entry.js → p-0d1e483d.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-cab8c1e0.entry.js → p-0dfca6d7.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-5098fca3.entry.js → p-0fa13944.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-6755089b.js → p-11d582b5.js} +1 -1
  14. package/dist/bromcom-ui/p-148f83a6.entry.js +5 -0
  15. package/dist/bromcom-ui/p-19476cc8.entry.js +5 -0
  16. package/dist/bromcom-ui/{p-6de2deb5.entry.js → p-1a4ec3c9.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-bf523f14.entry.js → p-1a918f69.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-6fc52a85.entry.js → p-1e9d406f.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  20. package/dist/bromcom-ui/{p-bda1709b.entry.js → p-23bda383.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-a8c8c9cf.entry.js → p-243b178e.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-67ff8aa3.entry.js → p-295d7119.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-2a123374.entry.js +5 -0
  24. package/dist/bromcom-ui/{p-02116d36.entry.js → p-2b00934e.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-940cbe01.js → p-34b8ec60.js} +1 -1
  26. package/dist/bromcom-ui/{p-c3da137b.entry.js → p-3661e4d1.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-ffdc6086.entry.js → p-4886e703.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-e6afe8b6.entry.js → p-53712b34.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-65d74e36.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-a58c6ceb.entry.js → p-6ade0512.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-216c6fd5.entry.js → p-6e9c67c4.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-95351a23.entry.js → p-721c9f7d.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-a3109200.entry.js → p-7259beea.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-759ed536.entry.js +5 -0
  35. package/dist/bromcom-ui/{p-6d8f018f.entry.js → p-818d7779.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-ffec0a2b.js → p-86221bd5.js} +1 -1
  37. package/dist/bromcom-ui/{p-481f4962.entry.js → p-885f5588.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-b40bb51f.entry.js → p-90426981.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-91d43275.entry.js +13 -0
  40. package/dist/bromcom-ui/{p-677153b5.entry.js → p-95b7a1ae.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-3f9d992a.entry.js → p-99a858ed.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-b9ba70c3.entry.js → p-9a067c18.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-7ad7c6d7.entry.js → p-9d0a5fa5.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-406785b9.entry.js → p-9d60c905.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-a6b9ac13.entry.js → p-a1aa14b8.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-18a5c6ab.entry.js → p-a23fbb1b.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-426b7889.entry.js → p-ac73dc85.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-ad5d5452.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-44b18c6d.entry.js → p-b45f1818.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-babbf589.js +5 -0
  51. package/dist/bromcom-ui/{p-68868af9.entry.js → p-bd50f5c7.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-7af21a10.entry.js → p-be88442c.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-495b54be.entry.js → p-c9d15e14.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-773d6818.js → p-d002a5ca.js} +1 -1
  55. package/dist/bromcom-ui/{p-1f0ce7fa.entry.js → p-d10b2420.entry.js} +1 -1
  56. package/dist/bromcom-ui/p-d52bdae8.entry.js +5 -0
  57. package/dist/bromcom-ui/p-e291a70c.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-63bff12e.entry.js → p-e63cd734.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-e0855669.entry.js → p-ea808b98.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-4b1cba4c.entry.js → p-f9ef85d4.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-fa958e3a.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-81f1dd1f.js → p-ff2f2303.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 +4 -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 +17 -546
  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 +143 -331
  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 +34 -10
  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 +3 -3
  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-493daefd.js → generate-a326693e.js} +10 -1
  115. package/dist/cjs/index-906fb4e5.js +540 -0
  116. package/dist/cjs/{input-template-96af0058.js → input-template-f4d1834d.js} +1 -1
  117. package/dist/cjs/{json-parse-decarator-b5b0b23d.js → json-parse-decarator-a72e223c.js} +1 -1
  118. package/dist/cjs/loader.cjs.js +1 -1
  119. package/dist/cjs/{number-helper-051fe1ec.js → number-helper-ca12966b.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-efee4ad7.js → stepper-states-2e52f5b2.js} +1 -1
  123. package/dist/cjs/{tooltip-helper-a8734616.js → tooltip-helper-a11a36cc.js} +3 -3
  124. package/dist/cjs/{validators-50fd1ad1.js → validators-3697c8dc.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 +2 -2
  129. package/dist/collection/components/molecules/menu/menu.css +23 -1
  130. package/dist/collection/components/molecules/menu/menu.js +41 -2
  131. package/dist/collection/components/molecules/modal/modal.js +59 -17
  132. package/dist/collection/components/molecules/search/search.css +0 -4
  133. package/dist/collection/components/molecules/stepper/stepper.css +75 -43
  134. package/dist/collection/components/molecules/stepper/stepper.js +38 -2
  135. package/dist/collection/components/molecules/textarea/textarea.css +0 -4
  136. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +3 -6
  137. package/dist/collection/components/organism/list/list.css +4 -3
  138. package/dist/collection/components/organism/list/list.js +172 -177
  139. package/dist/collection/components/organism/states/bcm-list2.states.js +1 -1
  140. package/dist/collection/components/other/content/content.js +15 -0
  141. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -5
  142. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  143. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  144. package/dist/collection/helper/generate.js +9 -0
  145. package/dist/collection/templates/list-template.js +2 -2
  146. package/dist/components/bcm-alert.js +1 -1
  147. package/dist/components/bcm-checkbox-group.js +1 -1
  148. package/dist/components/bcm-content.d.ts +11 -0
  149. package/dist/components/bcm-content.js +35 -0
  150. package/dist/components/bcm-dropdown.js +3 -8
  151. package/dist/components/bcm-list.js +157 -332
  152. package/dist/components/bcm-modal.js +34 -10
  153. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  154. package/dist/components/bcm-rc-overflow.js +10 -0
  155. package/dist/components/bcm-stepper.js +20 -4
  156. package/dist/components/bcm-textarea.js +1 -1
  157. package/dist/components/button.js +1 -1
  158. package/dist/components/colorful.js +2 -531
  159. package/dist/components/datetime-picker.js +3 -6
  160. package/dist/components/generate.js +10 -1
  161. package/dist/components/index.d.ts +3 -1
  162. package/dist/components/index.js +2 -0
  163. package/dist/components/index3.js +523 -177
  164. package/dist/components/index4.js +191 -0
  165. package/dist/components/input.js +1 -1
  166. package/dist/components/linked.js +2 -2
  167. package/dist/components/menu.js +8 -3
  168. package/dist/components/rc-overflow.js +2238 -0
  169. package/dist/components/search.js +2 -2
  170. package/dist/components/step.js +1 -1
  171. package/dist/esm/bcm-accordion.entry.js +1 -1
  172. package/dist/esm/bcm-alert.entry.js +1 -1
  173. package/dist/esm/bcm-attendance.entry.js +1 -1
  174. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  175. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  176. package/dist/esm/bcm-button-group.entry.js +1 -1
  177. package/dist/esm/bcm-button_7.entry.js +4 -4
  178. package/dist/esm/bcm-card.entry.js +1 -1
  179. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  180. package/dist/esm/bcm-chip.entry.js +1 -1
  181. package/dist/esm/bcm-collapse.entry.js +1 -1
  182. package/dist/esm/bcm-color-input.entry.js +3 -3
  183. package/dist/esm/bcm-colorful_2.entry.js +7 -536
  184. package/dist/esm/bcm-content.entry.js +18 -0
  185. package/dist/esm/bcm-date-picker.entry.js +1 -1
  186. package/dist/esm/bcm-datetime-picker.entry.js +4 -7
  187. package/dist/esm/bcm-default.entry.js +1 -1
  188. package/dist/esm/bcm-drawer.entry.js +3 -3
  189. package/dist/esm/bcm-dropdown.entry.js +4 -10
  190. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  191. package/dist/esm/bcm-form-2.entry.js +1 -1
  192. package/dist/esm/bcm-input-custom.entry.js +1 -1
  193. package/dist/esm/bcm-input.entry.js +5 -5
  194. package/dist/esm/bcm-item.entry.js +1 -1
  195. package/dist/esm/bcm-items.entry.js +1 -1
  196. package/dist/esm/bcm-list.entry.js +143 -331
  197. package/dist/esm/bcm-menu.entry.js +10 -7
  198. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  199. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  200. package/dist/esm/bcm-modal-2.entry.js +3 -3
  201. package/dist/esm/bcm-modal.entry.js +34 -10
  202. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  203. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  204. package/dist/esm/bcm-popover.entry.js +3 -3
  205. package/dist/esm/bcm-progress.entry.js +1 -1
  206. package/dist/esm/bcm-radio-group.entry.js +3 -3
  207. package/dist/esm/bcm-radio.entry.js +3 -3
  208. package/dist/esm/bcm-range.entry.js +1 -1
  209. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  210. package/dist/esm/bcm-skeleton.entry.js +1 -1
  211. package/dist/esm/bcm-step.entry.js +2 -2
  212. package/dist/esm/bcm-stepper.entry.js +23 -7
  213. package/dist/esm/bcm-switch.entry.js +1 -1
  214. package/dist/esm/bcm-tab-group.entry.js +3 -3
  215. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  216. package/dist/esm/bcm-tab-item.entry.js +3 -3
  217. package/dist/esm/bcm-tag.entry.js +2 -2
  218. package/dist/esm/bcm-textarea.entry.js +3 -3
  219. package/dist/esm/bcm-time-picker.entry.js +1 -1
  220. package/dist/esm/bcm-toast.entry.js +1 -1
  221. package/dist/esm/bromcom-ui.js +1 -1
  222. package/dist/esm/{generate-de5e04cf.js → generate-21bf7157.js} +10 -1
  223. package/dist/esm/index-6310a048.js +537 -0
  224. package/dist/esm/{input-template-c5338e25.js → input-template-1c1d8658.js} +1 -1
  225. package/dist/esm/{json-parse-decarator-a417723b.js → json-parse-decarator-8bbed2b0.js} +1 -1
  226. package/dist/esm/loader.js +1 -1
  227. package/dist/esm/{number-helper-8de373ee.js → number-helper-53aabc3d.js} +1 -1
  228. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  229. package/dist/esm/old-bcm-popover.entry.js +1 -1
  230. package/dist/esm/{stepper-states-64ffef36.js → stepper-states-aba688ef.js} +1 -1
  231. package/dist/esm/{tooltip-helper-096296d0.js → tooltip-helper-2b15bcb1.js} +3 -3
  232. package/dist/esm/{validators-c8be2c83.js → validators-db449fed.js} +1 -1
  233. package/dist/types/components/molecules/dropdown/dropdown.d.ts +1 -1
  234. package/dist/types/components/molecules/menu/menu.d.ts +2 -0
  235. package/dist/types/components/molecules/modal/modal.d.ts +10 -4
  236. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -0
  237. package/dist/types/components/organism/list/list.d.ts +9 -5
  238. package/dist/types/components/other/content/content.d.ts +6 -0
  239. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  240. package/dist/types/components.d.ts +50 -4
  241. package/package.json +2 -1
  242. package/dist/bromcom-ui/p-2677dc60.entry.js +0 -10
  243. package/dist/bromcom-ui/p-3ee818a8.entry.js +0 -5
  244. package/dist/bromcom-ui/p-48e2d5e5.js +0 -5
  245. package/dist/bromcom-ui/p-4bbdd324.entry.js +0 -5
  246. package/dist/bromcom-ui/p-57c71c1f.entry.js +0 -5
  247. package/dist/bromcom-ui/p-6a842eb1.js +0 -5
  248. package/dist/bromcom-ui/p-7a89e7ae.entry.js +0 -5
  249. package/dist/bromcom-ui/p-a8b7d3cf.entry.js +0 -5
  250. package/dist/bromcom-ui/p-b2d87a12.entry.js +0 -5
  251. package/dist/bromcom-ui/p-c0e58db2.entry.js +0 -5
  252. package/dist/bromcom-ui/p-ea763cf4.entry.js +0 -5
  253. package/dist/bromcom-ui/p-efee3d33.entry.js +0 -5
  254. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  255. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  256. package/dist/esm/bcm-search.entry.js +0 -241
  257. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  258. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  259. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -59,7 +59,7 @@ const setValue = val => {
59
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(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
64
  : { items: [] })), { ct: `${parentIndex}${index}` })));
65
65
  }
@@ -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]) {
@@ -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],