bromcom-ui 2.8.1-rc.2 → 2.8.1-rc.4

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 (222) 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-bb7e043b.entry.js → p-007e75cf.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-dd908a30.js → p-05e39d66.js} +1 -1
  5. package/dist/bromcom-ui/{p-d8dc6cbc.entry.js → p-060debda.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-d79a5538.entry.js → p-08fa028a.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-7c3d76b0.entry.js → p-090ace7a.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-78258c6a.entry.js → p-094de2bf.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-56106366.entry.js → p-0a4f8d28.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-8c25cbe7.entry.js → p-0f680a2d.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-e8e33954.js → p-12448ed2.js} +1 -1
  12. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  13. package/dist/bromcom-ui/{p-be825c0f.entry.js → p-222167f4.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-5a828ce3.entry.js → p-270db6a4.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-a5cd708f.entry.js → p-2ebab6dd.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-dac557b6.entry.js → p-2f2649ac.entry.js} +1 -1
  17. package/dist/bromcom-ui/p-423d6556.entry.js +5 -0
  18. package/dist/bromcom-ui/{p-b8d63188.entry.js → p-45345880.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-ba983d4d.js → p-4575ec44.js} +1 -1
  20. package/dist/bromcom-ui/{p-70d0ec99.entry.js → p-479d7ec8.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-80961b1f.entry.js → p-49152a26.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-2e29836f.entry.js → p-4c49bacb.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-b7cc2017.entry.js → p-521d0db6.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-db7096a8.entry.js → p-53fd7272.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-d5a01b74.entry.js → p-5d7af92d.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-671febaf.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-92a86fe4.entry.js → p-691340fe.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-d47493db.entry.js → p-69d1f3a9.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-6ab96c0d.entry.js +13 -0
  30. package/dist/bromcom-ui/{p-1a64f637.entry.js → p-7013ab26.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-4d331d46.entry.js → p-71735094.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-ce7c5d82.entry.js → p-71f11e80.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-e3ea3b39.entry.js → p-73d05a02.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-d59d8968.entry.js → p-88021108.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-419de710.entry.js → p-8c00238d.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-889c98a7.entry.js → p-8ee2ca71.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-661f583b.entry.js → p-941ba28a.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-8b855df0.entry.js → p-94e09cd5.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-58122b12.js → p-961cc5b6.js} +1 -1
  40. package/dist/bromcom-ui/{p-7cf1f3de.entry.js → p-9c3505da.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-3567551d.entry.js → p-ac3478fd.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-7ba96cf2.js → p-af0c9c25.js} +1 -1
  43. package/dist/bromcom-ui/{p-f09dbef5.entry.js → p-bf2bd4aa.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-32ce5b3d.entry.js → p-c6a997b5.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-7fca36fc.entry.js → p-caa7277a.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-c8e8b60e.entry.js → p-cf2242fa.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-1e6a0c27.entry.js → p-db1659d3.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-43f4cac9.entry.js → p-deac277e.entry.js} +1 -1
  49. package/dist/bromcom-ui/p-e046b9a3.entry.js +5 -0
  50. package/dist/bromcom-ui/{p-ba6d4f9b.entry.js → p-e16e7a85.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-b95ef982.entry.js → p-e4683d83.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-cf31f51c.entry.js → p-eb722cdb.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-b707b27a.js → p-ebdfee04.js} +1 -1
  54. package/dist/bromcom-ui/{p-b9d70b21.js → p-f1474f14.js} +1 -1
  55. package/dist/bromcom-ui/{p-612462f9.entry.js → p-f22d15c0.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-cd5a2b60.entry.js → p-f2c199a6.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-5f8993f5.entry.js → p-f4b761d9.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-1f7deee4.entry.js → p-f687b1cb.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-9bb0596c.entry.js → p-f6f175b5.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-103314ff.entry.js → p-fb798a68.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-4127fc78.entry.js → p-fc2f0545.entry.js} +1 -1
  62. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  66. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-button_7.cjs.entry.js +4 -4
  69. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  74. package/dist/cjs/bcm-colorful_2.cjs.entry.js +15 -544
  75. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  79. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  82. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-input.cjs.entry.js +4 -4
  84. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  85. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  86. package/dist/cjs/bcm-list.cjs.entry.js +139 -327
  87. package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
  88. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  90. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
  97. package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
  98. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +2443 -0
  100. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  102. package/dist/cjs/bcm-stepper.cjs.entry.js +23 -7
  103. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
  105. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
  106. package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
  107. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  111. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  112. package/dist/cjs/{generate-227da8fb.js → generate-63b8388c.js} +1 -1
  113. package/dist/cjs/index-906fb4e5.js +540 -0
  114. package/dist/cjs/{input-template-3af2733b.js → input-template-48c4195d.js} +1 -1
  115. package/dist/cjs/{json-parse-decarator-97c404e9.js → json-parse-decarator-1ffdcf04.js} +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-724bd3c0.js → number-helper-cffbdcd9.js} +1 -1
  118. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  119. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  120. package/dist/cjs/{stepper-states-c08457f9.js → stepper-states-2ebe3840.js} +1 -1
  121. package/dist/cjs/{tooltip-helper-dc91538e.js → tooltip-helper-f4775a73.js} +3 -3
  122. package/dist/cjs/{validators-4277e26c.js → validators-557ce8f8.js} +1 -1
  123. package/dist/collection/collection-manifest.json +3 -2
  124. package/dist/collection/components/molecules/stepper/stepper.css +75 -43
  125. package/dist/collection/components/molecules/stepper/stepper.js +38 -2
  126. package/dist/collection/components/organism/list/list.css +4 -3
  127. package/dist/collection/components/organism/list/list.js +171 -176
  128. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -1
  129. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  130. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  131. package/dist/components/bcm-alert.js +1 -1
  132. package/dist/components/bcm-checkbox-group.js +1 -1
  133. package/dist/components/bcm-list.js +153 -328
  134. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  135. package/dist/components/bcm-rc-overflow.js +10 -0
  136. package/dist/components/bcm-stepper.js +20 -4
  137. package/dist/components/button.js +1 -1
  138. package/dist/components/colorful.js +2 -531
  139. package/dist/components/generate.js +1 -1
  140. package/dist/components/index.d.ts +2 -1
  141. package/dist/components/index.js +1 -0
  142. package/dist/components/index3.js +523 -177
  143. package/dist/components/index4.js +191 -0
  144. package/dist/components/rc-overflow.js +2238 -0
  145. package/dist/components/search.js +1 -1
  146. package/dist/components/step.js +1 -1
  147. package/dist/esm/bcm-accordion.entry.js +1 -1
  148. package/dist/esm/bcm-alert.entry.js +1 -1
  149. package/dist/esm/bcm-attendance.entry.js +1 -1
  150. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  151. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  152. package/dist/esm/bcm-button-group.entry.js +1 -1
  153. package/dist/esm/bcm-button_7.entry.js +4 -4
  154. package/dist/esm/bcm-card.entry.js +1 -1
  155. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  156. package/dist/esm/bcm-chip.entry.js +1 -1
  157. package/dist/esm/bcm-collapse.entry.js +1 -1
  158. package/dist/esm/bcm-color-input.entry.js +3 -3
  159. package/dist/esm/bcm-colorful_2.entry.js +5 -534
  160. package/dist/esm/bcm-date-picker.entry.js +1 -1
  161. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  162. package/dist/esm/bcm-default.entry.js +1 -1
  163. package/dist/esm/bcm-drawer.entry.js +3 -3
  164. package/dist/esm/bcm-dropdown.entry.js +2 -2
  165. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  166. package/dist/esm/bcm-form-2.entry.js +1 -1
  167. package/dist/esm/bcm-input-custom.entry.js +1 -1
  168. package/dist/esm/bcm-input.entry.js +4 -4
  169. package/dist/esm/bcm-item.entry.js +1 -1
  170. package/dist/esm/bcm-items.entry.js +1 -1
  171. package/dist/esm/bcm-list.entry.js +139 -327
  172. package/dist/esm/bcm-menu.entry.js +4 -4
  173. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  174. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  175. package/dist/esm/bcm-modal-2.entry.js +3 -3
  176. package/dist/esm/bcm-modal.entry.js +1 -1
  177. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  178. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  179. package/dist/esm/bcm-popover.entry.js +3 -3
  180. package/dist/esm/bcm-progress.entry.js +1 -1
  181. package/dist/esm/bcm-radio-group.entry.js +3 -3
  182. package/dist/esm/bcm-radio.entry.js +3 -3
  183. package/dist/esm/bcm-range.entry.js +1 -1
  184. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  185. package/dist/esm/bcm-skeleton.entry.js +1 -1
  186. package/dist/esm/bcm-step.entry.js +2 -2
  187. package/dist/esm/bcm-stepper.entry.js +23 -7
  188. package/dist/esm/bcm-switch.entry.js +1 -1
  189. package/dist/esm/bcm-tab-group.entry.js +3 -3
  190. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  191. package/dist/esm/bcm-tab-item.entry.js +3 -3
  192. package/dist/esm/bcm-tag.entry.js +2 -2
  193. package/dist/esm/bcm-textarea.entry.js +2 -2
  194. package/dist/esm/bcm-time-picker.entry.js +1 -1
  195. package/dist/esm/bcm-toast.entry.js +1 -1
  196. package/dist/esm/bromcom-ui.js +1 -1
  197. package/dist/esm/{generate-ae8dfae8.js → generate-dab287b3.js} +1 -1
  198. package/dist/esm/index-6310a048.js +537 -0
  199. package/dist/esm/{input-template-56b65f6e.js → input-template-24404f0a.js} +1 -1
  200. package/dist/esm/{json-parse-decarator-463c98c9.js → json-parse-decarator-f52026c2.js} +1 -1
  201. package/dist/esm/loader.js +1 -1
  202. package/dist/esm/{number-helper-8ae3f523.js → number-helper-026bc937.js} +1 -1
  203. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  204. package/dist/esm/old-bcm-popover.entry.js +1 -1
  205. package/dist/esm/{stepper-states-fd4a335e.js → stepper-states-699bc7d9.js} +1 -1
  206. package/dist/esm/{tooltip-helper-d3858d00.js → tooltip-helper-6cbb0b45.js} +3 -3
  207. package/dist/esm/{validators-d4d1cbd1.js → validators-d525dbd6.js} +1 -1
  208. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -0
  209. package/dist/types/components/organism/list/list.d.ts +9 -5
  210. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  211. package/dist/types/components.d.ts +27 -0
  212. package/package.json +2 -1
  213. package/dist/bromcom-ui/p-01a2410a.entry.js +0 -5
  214. package/dist/bromcom-ui/p-026a22c1.entry.js +0 -5
  215. package/dist/bromcom-ui/p-3c065d74.entry.js +0 -5
  216. package/dist/bromcom-ui/p-a53b91a2.entry.js +0 -10
  217. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  218. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  219. package/dist/esm/bcm-search.entry.js +0 -241
  220. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  221. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  222. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -19,10 +19,11 @@ import { c as classnames } from './index2.js';
19
19
  import './types.js';
20
20
  import { L as LabelTemplate } from './label-template.js';
21
21
  import './types2.js';
22
- import { c as createStore } from './index3.js';
23
- import { T as Tooltip } from './tooltip-helper.js';
24
- import { d as defineCustomElement$3 } from './icon.js';
25
- import { d as defineCustomElement$2 } from './search.js';
22
+ import { c as createStore } from './index4.js';
23
+ import { d as defineCustomElement$5 } from './icon.js';
24
+ import { d as defineCustomElement$4 } from './rc-overflow.js';
25
+ import { d as defineCustomElement$3 } from './search.js';
26
+ import { d as defineCustomElement$2 } from './tooltip.js';
26
27
 
27
28
  const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
28
29
  // if ( indeterminate ) {
@@ -838,173 +839,7 @@ class ListKeyControl extends KeyControl {
838
839
  keyUp() { }
839
840
  }
840
841
 
841
- class ListTagControl {
842
- constructor(containerId, values, listId, selectedOtherTag, clearable) {
843
- this.clearable = false;
844
- this.containerId = containerId;
845
- this.values = values;
846
- this.listId = listId;
847
- this.selectedOtherTag = selectedOtherTag;
848
- this.clearable = clearable;
849
- }
850
- getTooltip(id, text) {
851
- return new Tooltip({ message: text, targetId: id, placement: 'bottom' });
852
- }
853
- tagHtmlTemplate(tag, isOtherTag = false, otherTagIsSingle = false) {
854
- return `<span class="bcm-tag__content dismissable ${!otherTagIsSingle && isOtherTag && (this.selectedOtherTag ? 'checkable checked' : '')}">
855
- <span class="value">${tag.text}</span>
856
- ${otherTagIsSingle
857
- ? ''
858
- : `
859
- <span class="right close-button" bcm-list-tag-dismiss >
860
- <bcm-icon icon="fal fa-times"></bcm-icon>
861
- </span>`}
862
- </span>`;
863
- }
864
- getContainer() {
865
- return document.getElementById(this.containerId);
866
- }
867
- getContainerWidth() {
868
- let tagContainerWidth = snq(() => document.getElementById(this.containerId).clientWidth, 0);
869
- tagContainerWidth = (this.clearable ? tagContainerWidth - 20 : tagContainerWidth) - 20;
870
- return [tagContainerWidth < 130 ? 130 : tagContainerWidth - 20, tagContainerWidth];
871
- }
872
- isClickDismiss(e) {
873
- const path = e.path || (e.composedPath && e.composedPath());
874
- const tag = path.find(element => element.attributes && element.attributes['bcm-list-tag-dismiss']);
875
- return !!tag;
876
- }
877
- onClickControl(e, id, isOtherTag = false) {
878
- const isDismiss = this.isClickDismiss(e);
879
- let tooltipId = '';
880
- if (isDismiss) {
881
- this.onClickDismiss(id);
882
- tooltipId = isOtherTag ? `bcm-list-input-tag-${this.listId}-other-tag` : `list-${this.listId}-${id}`;
883
- this.getTooltip(tooltipId, '').hide();
884
- }
885
- else {
886
- isOtherTag ? this.onClickOtherTag(id) : this.onClickTag(id);
887
- }
888
- }
889
- calculateTags() {
890
- const containerWidth = this.getContainerWidth();
891
- const virtualDom = this.getContainer();
892
- if (virtualDom) {
893
- if (this.values && this.values.length > 0) {
894
- if (containerWidth[0] > 0 && virtualDom) {
895
- virtualDom.innerHTML = '';
896
- this.values.slice(0, 50).map(value => {
897
- const tag = document.createElement('div');
898
- tag.classList.add('bcm-tag');
899
- tag.id = `list-${this.listId}-${value.id}`;
900
- // tag.title = value.tagTitle || value.text || '';
901
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').show();
902
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').hide();
903
- tag.dataset.id = value.id;
904
- tag.onclick = e => this.onClickControl(e, value.id);
905
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, value), { text: StringHelper.textLimitter(value.text, 10) }));
906
- virtualDom.appendChild(tag);
907
- });
908
- let tags = virtualDom.querySelectorAll('.bcm-tag');
909
- let otherTags = [];
910
- let visibleTags = [];
911
- const checkControl = () => {
912
- const virtualDomTags = virtualDom.querySelectorAll('.bcm-tag');
913
- if (visibleTags.length === 1 && (virtualDomTags === null || virtualDomTags === void 0 ? void 0 : virtualDomTags.length) === 1) {
914
- visibleTags[0].innerHTML = this.tagHtmlTemplate({ text: '+1' }, false, true);
915
- }
916
- };
917
- let tagsWidth = Array.from(tags).reduce((acc, tag) => {
918
- const tagClientWidth = tag.clientWidth > 50 ? tag.clientWidth : 50;
919
- if (tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0]) {
920
- acc += tagClientWidth + 10;
921
- visibleTags.push(tag);
922
- const checkFreeSpace = tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0];
923
- !checkFreeSpace && containerWidth[1] < 70 && checkControl();
924
- }
925
- else {
926
- otherTags.push(tag);
927
- tag.remove();
928
- }
929
- return acc;
930
- }, 0);
931
- const otherTagElement = this.values.slice(visibleTags.length);
932
- const virtualDomLastElements = virtualDom.lastElementChild;
933
- const otherTagTextControl = args => {
934
- const { count, width } = args;
935
- if (count > 999)
936
- return '999+' + pluralize('item', count);
937
- if (width >= 100)
938
- return `${count} ` + pluralize('item', count) + ' selected';
939
- if (width < 100)
940
- return `+${count < 10 ? count : '9'}`;
941
- };
942
- if (otherTags && otherTags.length > 0 && virtualDomLastElements && virtualDomLastElements.id !== `bcm-list-input-tag-${this.listId}-other-tag`) {
943
- otherTags.push(virtualDomLastElements);
944
- if (otherTags.length > 0) {
945
- const otherCounter = otherTagElement.length + 1;
946
- const createOthertagElement = {
947
- id: `bcm-list-input-tag-${this.listId}-other-tag`,
948
- text: otherTagTextControl({ count: otherCounter, width: containerWidth[1] }),
949
- title: snq(() => otherTags
950
- .map(tag => this.values.find(value => value.id == tag.dataset.id))
951
- .sort((a, b) => +a.ct - +b.ct)
952
- .slice(0, 15)
953
- .map(item => StringHelper.textLimitter(item.tagTitle || item.text, 40, true))
954
- .toString()
955
- .split(',')
956
- .join('\r\n') + (otherTags.length > 15 ? ('\r\n...') : ''), '...'),
957
- };
958
- virtualDomLastElements.remove();
959
- visibleTags = visibleTags.filter(tag => tag.id !== virtualDomLastElements.id);
960
- const hiddenTags = this.values.filter(value => !visibleTags.find(tag => tag.dataset.id == value.id)).map(value => value.id);
961
- const otherTag = document.createElement('div');
962
- const otherTagIds = hiddenTags.join(',');
963
- const otherTagIsSingle = visibleTags.length === 0;
964
- otherTag.classList.add('bcm-tag');
965
- !otherTagIsSingle && otherTag.classList.add('bcm-tag--other');
966
- otherTag.id = createOthertagElement.id;
967
- // otherTag.title = createOthertagElement.title || false;
968
- if (createOthertagElement.title) {
969
- otherTag.onmouseenter = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).show();
970
- otherTag.onmouseleave = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).hide();
971
- }
972
- otherTag.onclick = e => this.onClickControl(e, otherTagIds, otherTagIsSingle ? false : true);
973
- otherTag.innerHTML = this.tagHtmlTemplate(createOthertagElement, true, otherTagIsSingle);
974
- otherTag.dataset.ids = hiddenTags.join(',');
975
- virtualDom.appendChild(otherTag);
976
- }
977
- }
978
- const otherTag = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
979
- const otherTagWidth = otherTag ? (otherTag.clientWidth && otherTag.clientWidth < 50 ? 50 : otherTag.clientWidth) : 200;
980
- const tagsPerRow = Math.floor(containerWidth[0] - tagsWidth);
981
- if (tagsPerRow > otherTagWidth) {
982
- if (otherTag) {
983
- const findElement = this.values.find(value => value.id == otherTag.dataset.ids.split(',')[0]);
984
- const tag = document.createElement('div');
985
- tag.classList.add('bcm-tag');
986
- tag.id = `list-${this.listId}-${findElement.id}`;
987
- // tag.title = findElement?.title || '';
988
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').show();
989
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').hide();
990
- tag.dataset.id = findElement.id;
991
- tag.onclick = e => this.onClickControl(e, findElement === null || findElement === void 0 ? void 0 : findElement.id);
992
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, findElement), { text: StringHelper.textLimitter(findElement.text, 10) }));
993
- const otherTagElement = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
994
- otherTagElement.remove();
995
- virtualDom.appendChild(tag);
996
- }
997
- }
998
- }
999
- }
1000
- else {
1001
- virtualDom.innerHTML = '';
1002
- }
1003
- }
1004
- }
1005
- }
1006
-
1007
- const listCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{scroll-behavior:smooth;padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{width:100%}.bcm-list__input-container.value-empty{color:var(--bcm-color-grey-6)}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-color-grey-6)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px;min-width:40px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-50);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);user-select:none;cursor:not-allowed}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--readonly:focus>.bcm-list__item-content:not(.disabled),.bcm-list__item--readonly.focused>.bcm-list__item-content:not(.disabled){color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}";
842
+ const listCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{scroll-behavior:smooth;padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{flex:1;display:block;overflow:hidden}.bcm-list__input-container.value-empty{color:var(--bcm-color-grey-6)}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-color-grey-6)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:4px 4px 0 4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-50);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);user-select:none;cursor:not-allowed}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--readonly:focus>.bcm-list__item-content:not(.disabled),.bcm-list__item--readonly.focused>.bcm-list__item-content:not(.disabled){color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}";
1008
843
 
1009
844
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1010
845
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -1044,12 +879,12 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1044
879
  this.required = false;
1045
880
  this.hidden = false;
1046
881
  this.fullWidth = false;
1047
- this.height = '256px';
1048
- this.maxHeight = '500px';
1049
- this.minHeight = '150px';
1050
- this.width = '256px';
882
+ this.height = "256px";
883
+ this.maxHeight = "500px";
884
+ this.minHeight = "150px";
885
+ this.width = "256px";
1051
886
  this.infoFooter = false;
1052
- this.variableText = 'item';
887
+ this.variableText = "item";
1053
888
  this.template = undefined;
1054
889
  this.allOpen = false;
1055
890
  this.keyControl = false;
@@ -1060,8 +895,8 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1060
895
  this.calculatedViewport = false;
1061
896
  this.isSelectedOther = false;
1062
897
  this.isHaveOtherTag = false;
1063
- this.placeholder = 'Choose an option';
1064
- this.searchPlaceholder = 'Search';
898
+ this.placeholder = "Choose an option";
899
+ this.searchPlaceholder = "Search";
1065
900
  this.searchIsOnlyChilds = false;
1066
901
  this.minSearchLength = 2;
1067
902
  this.clearable = false;
@@ -1070,7 +905,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1070
905
  this.captionType = Bcm$1.Status.default;
1071
906
  this.captionError = undefined;
1072
907
  this.emptyText = undefined;
1073
- this.emptyIcon = 'fad fa-folder-open';
908
+ this.emptyIcon = "fad fa-folder-open";
1074
909
  this.captionCache = undefined;
1075
910
  this.captionTypeCache = undefined;
1076
911
  this.tick = {};
@@ -1083,26 +918,26 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1083
918
  this.returnFilterData = {};
1084
919
  this.returnOtherData = {};
1085
920
  this.options = {
1086
- rootMargin: '30px',
921
+ rootMargin: "30px",
1087
922
  };
1088
923
  this.tagContainerWidth = 0;
1089
924
  this.selectAllItem = {
1090
- id: 'select-all',
1091
- text: 'Select All',
1092
- value: 'select-all',
925
+ id: "select-all",
926
+ text: "Select All",
927
+ value: "select-all",
1093
928
  checked: false,
1094
929
  disabled: false,
1095
- icon: '',
930
+ icon: "",
1096
931
  status: Bcm$1.Status.default,
1097
- indeterminate: 'uncheck',
932
+ indeterminate: "uncheck",
1098
933
  };
1099
- this.placement = Bcm$1.Placement['bottom-start'];
934
+ this.placement = Bcm$1.Placement["bottom-start"];
1100
935
  this.data = [];
1101
936
  }
1102
937
  connectedCallback() {
1103
- if (this.height != '256px') {
1104
- if (this.height.indexOf('px') > -1) {
1105
- this.limit = Math.floor(+this.height.replace('px', '') / 10);
938
+ if (this.height != "256px") {
939
+ if (this.height.indexOf("px") > -1) {
940
+ this.limit = Math.floor(+this.height.replace("px", "") / 10);
1106
941
  }
1107
942
  else {
1108
943
  this.limit = Math.floor(+(window.innerHeight / 10));
@@ -1121,69 +956,39 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1121
956
  this.updateOptions();
1122
957
  }
1123
958
  }
959
+ get containerWidth() {
960
+ var _a, _b;
961
+ return (_b = (_a = this.el) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width;
962
+ }
963
+ get tagCount() {
964
+ return this.containerWidth > 0 ? Math.floor(+(this.containerWidth - 100) / 85) : 0;
965
+ }
966
+ get tagData() {
967
+ return snq(() => {
968
+ var _a;
969
+ return (_a = this.value) === null || _a === void 0 ? void 0 : _a.map(item => ({
970
+ value: item.id,
971
+ label: StringHelper.textLimitter(item.text, 7),
972
+ text: item.tooltipMessage || item.tagTitle || item.text,
973
+ }));
974
+ }, []);
975
+ }
1124
976
  async componentDidLoad() {
1125
977
  await this.initState();
1126
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
978
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1127
979
  const list = this.el.querySelector(`#bcm-list-${this._id}`);
1128
980
  if (list) {
1129
981
  document.body.appendChild(list);
1130
982
  }
1131
983
  }
1132
984
  }
1133
- tagCalculator() {
1134
- if (this.checkboxes && (this.type == 'select' || this.type == 'autocomplete')) {
1135
- const tagCalculator = new ListTagControl(`bcm-list-input-tag-container-${this._id}`, this.value, this._id, this.isSelectedOther, this.clearable);
1136
- tagCalculator.calculateTags();
1137
- const arrayIds = id => (typeof id == 'string' ? id.split(',') : [id]);
1138
- const clearAutocomplete = () => {
1139
- if (this.type == 'autocomplete') {
1140
- const autocompleteInput = this.getAutoCompleteInput();
1141
- if (autocompleteInput) {
1142
- autocompleteInput.handleClear(false);
1143
- }
1144
- }
1145
- };
1146
- tagCalculator.onClickOtherTag = async (id) => {
1147
- if (!this.disabled) {
1148
- clearAutocomplete();
1149
- if (this.isSelectedOther) {
1150
- await this.unSelectOther();
1151
- }
1152
- else {
1153
- await this.onClearSearch();
1154
- this.isSelectedOther = true;
1155
- this.filterOtherList(arrayIds(id));
1156
- this.isOpen = true;
1157
- }
1158
- this.onSelectSearch();
1159
- }
1160
- };
1161
- tagCalculator.onClickTag = _ => {
1162
- // console.log(id);
1163
- clearAutocomplete();
1164
- this.onSelectSearch();
1165
- this.unSelectOther();
1166
- };
1167
- tagCalculator.onClickDismiss = async (id) => {
1168
- var _a;
1169
- if (!this.disabled) {
1170
- if (this.isSelectedOther) {
1171
- await this.unSelectOther();
1172
- }
1173
- arrayIds(id).length > 1 ? listState.removeOtherTags(this._id, arrayIds(id)) : listState.checkedItem(this._id, arrayIds(id)[0]);
1174
- this.value = (await this.getCheckedList()).checkedList;
1175
- this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1176
- }
1177
- };
1178
- }
1179
- }
1180
985
  disconnectedCallback() {
1181
986
  this.isOpen = false;
1182
987
  if (this.stopDeepClean)
1183
988
  return;
1184
989
  listState.removeState(this._id);
1185
- this.el.innerHTML = '';
1186
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
990
+ this.el.innerHTML = "";
991
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1187
992
  const list = document.querySelectorAll(`#bcm-list-${this._id}`);
1188
993
  if (list === null || list === void 0 ? void 0 : list.length) {
1189
994
  list.forEach(item => item.remove());
@@ -1212,7 +1017,6 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1212
1017
  this.change.emit(this.value);
1213
1018
  }
1214
1019
  }
1215
- this.tagCalculator();
1216
1020
  }
1217
1021
  watchReturnFilterData(newVal) {
1218
1022
  var _a;
@@ -1224,18 +1028,6 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1224
1028
  this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1225
1029
  }
1226
1030
  }
1227
- handleOtherSelected(newValue) {
1228
- var _a;
1229
- const tagContent = (_a = document.getElementById(`bcm-list-input-tag-${this._id}-other-tag`)) === null || _a === void 0 ? void 0 : _a.querySelector('.bcm-tag__content');
1230
- if (tagContent) {
1231
- if (newValue === true) {
1232
- tagContent.classList.add('checkable', 'checked');
1233
- }
1234
- else {
1235
- tagContent.classList.remove('checkable', 'checked');
1236
- }
1237
- }
1238
- }
1239
1031
  async handleOpen() {
1240
1032
  if (this.isOpen) {
1241
1033
  this.open.emit();
@@ -1252,7 +1044,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1252
1044
  listScrollToTop() {
1253
1045
  const list = document.querySelector(`#bcm-list-${this._id}`);
1254
1046
  if (list) {
1255
- list.querySelector('.scrolling').scrollTop = 0;
1047
+ list.querySelector(".scrolling").scrollTop = 0;
1256
1048
  }
1257
1049
  }
1258
1050
  async dataChanged(newValue, oldValue) {
@@ -1286,7 +1078,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1286
1078
  const list = document.querySelector(`#bcm-list-${this._id}`);
1287
1079
  const isClickInside = list && Generate.findEventPath(event, list);
1288
1080
  if (isClickInside) {
1289
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1081
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1290
1082
  this.calculateLocation();
1291
1083
  }
1292
1084
  }
@@ -1295,6 +1087,41 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1295
1087
  }
1296
1088
  }
1297
1089
  }
1090
+ clearAutocomplete() {
1091
+ if (this.type == "autocomplete") {
1092
+ const autocompleteInput = this.getAutoCompleteInput();
1093
+ if (autocompleteInput) {
1094
+ autocompleteInput.handleClear(false);
1095
+ }
1096
+ }
1097
+ }
1098
+ async handleSelectOtherTag(e) {
1099
+ if (this.disabled)
1100
+ return;
1101
+ const { id, checked } = e.detail;
1102
+ this.isSelectedOther = checked;
1103
+ if (id) {
1104
+ checked ? this.filterOtherList(id) : this.unSelectOther();
1105
+ this.isOpen = true;
1106
+ }
1107
+ }
1108
+ async handleDeleteTag(e) {
1109
+ var _a;
1110
+ if (this.disabled)
1111
+ return;
1112
+ const { id } = e.detail;
1113
+ this.isSelectedOther && this.unSelectOther();
1114
+ Array.isArray(id) ? listState.removeOtherTags(this._id, id) : listState.checkedItem(this._id, id);
1115
+ this.value = (await this.getCheckedList()).checkedList;
1116
+ this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1117
+ }
1118
+ async handleSelectTag(_) {
1119
+ if (this.disabled)
1120
+ return;
1121
+ this.clearAutocomplete();
1122
+ this.onSelectSearch();
1123
+ this.unSelectOther();
1124
+ }
1298
1125
  handleClick(event) {
1299
1126
  var _a;
1300
1127
  if (this.disabled)
@@ -1313,23 +1140,23 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1313
1140
  }, 300);
1314
1141
  }
1315
1142
  if (!isClickInside) {
1316
- if (this.type == 'autocomplete') {
1143
+ if (this.type == "autocomplete") {
1317
1144
  const autocompleteInput = this.getAutoCompleteInput();
1318
1145
  if (autocompleteInput) {
1319
1146
  if (this.checkboxes) {
1320
- autocompleteInput.setValue('');
1147
+ autocompleteInput.setValue("");
1321
1148
  }
1322
1149
  else {
1323
- autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || '');
1150
+ autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || "");
1324
1151
  }
1325
1152
  }
1326
1153
  }
1327
1154
  }
1328
- const clickToTag = Generate.findEventPathWithKey(event, 'className', ['bcm-tag']);
1329
- const clickToOtherTag = Generate.findEventPathWithKey(event, 'className', ['bcm-tag bcm-tag--other']);
1330
- const clickToSelect = Generate.findEventPathWithKey(event, 'id', [`bcm-list-input-${this._id}`, `bcm-list-label-${this._id}`]);
1331
- const clickToTagDismiss = Generate.findEventPathWithKey(event, 'className', ['right close-button']);
1332
- if (clickToSelect && !clickToTagDismiss && this.type != 'autocomplete') {
1155
+ const clickToTag = Generate.findEventPathWithKey(event, "className", ["bcm-tag"]);
1156
+ const clickToOtherTag = Generate.findEventPathWithKey(event, "className", ["bcm-tag bcm-tag--other"]);
1157
+ const clickToSelect = Generate.findEventPathWithKey(event, "id", [`bcm-list-input-${this._id}`, `bcm-list-label-${this._id}`]);
1158
+ const clickToTagDismiss = Generate.findEventPathWithKey(event, "className", ["right close-button"]);
1159
+ if (clickToSelect && !clickToTagDismiss && this.type != "autocomplete") {
1333
1160
  this.isOpen = clickToTag || clickToOtherTag ? true : !this.isOpen;
1334
1161
  }
1335
1162
  if (list) {
@@ -1343,7 +1170,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1343
1170
  }
1344
1171
  bcmOnSearchClear(event) {
1345
1172
  var _a, _b;
1346
- if (this.type == 'autocomplete') {
1173
+ if (this.type == "autocomplete") {
1347
1174
  if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.id) === `bcm-list-${this._id}-search` || ((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.id) === `bcm-list-input-tag-container-${this._id}-autocomplete-input`) {
1348
1175
  if (event.detail) {
1349
1176
  this.setClear();
@@ -1361,16 +1188,13 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1361
1188
  if (this.searchFound > 0 && this.highlight) {
1362
1189
  this.highlightText = (_f = event.detail) === null || _f === void 0 ? void 0 : _f.value;
1363
1190
  }
1364
- if (this.type == 'autocomplete') {
1191
+ if (this.type == "autocomplete") {
1365
1192
  this.isOpen = true;
1366
1193
  }
1367
1194
  if (!event.detail.result) {
1368
- if (this.type == 'autocomplete') {
1195
+ if (this.type == "autocomplete") {
1369
1196
  this.isOpen = false;
1370
1197
  }
1371
- if (this.isSelectedOther) {
1372
- this.filterOtherList(this.otherTagIds());
1373
- }
1374
1198
  else {
1375
1199
  this.returnFilterData = {};
1376
1200
  listState.filterData(this._id, null);
@@ -1410,9 +1234,9 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1410
1234
  if (focusedList) {
1411
1235
  const list = document.getElementById(`bcm-list-${this._id}`);
1412
1236
  if (list) {
1413
- const items = list.querySelectorAll('.bcm-list__item.focused');
1237
+ const items = list.querySelectorAll(".bcm-list__item.focused");
1414
1238
  if (items.length > 0) {
1415
- const main = list.querySelector('main');
1239
+ const main = list.querySelector("main");
1416
1240
  const itemHeight = items[0].offsetHeight;
1417
1241
  const listHeight = main.offsetHeight;
1418
1242
  const itemTop = items[0].offsetTop;
@@ -1432,7 +1256,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1432
1256
  if (Array.isArray(data)) {
1433
1257
  this.addChecked(data);
1434
1258
  }
1435
- if (typeof data === 'string' || typeof data === 'number') {
1259
+ if (typeof data === "string" || typeof data === "number") {
1436
1260
  this.selectedItem(data);
1437
1261
  }
1438
1262
  }
@@ -1475,10 +1299,9 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1475
1299
  async setClear(e) {
1476
1300
  listState.setClear(this._id);
1477
1301
  this.value = null;
1478
- this.inputText = '';
1302
+ this.inputText = "";
1479
1303
  this.isOpen = false;
1480
- this.selectAllItem.indeterminate = 'uncheck';
1481
- this.tagCalculator();
1304
+ this.selectAllItem.indeterminate = "uncheck";
1482
1305
  this.markForCheck();
1483
1306
  if (e) {
1484
1307
  e.stopPropagation();
@@ -1507,10 +1330,9 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1507
1330
  listState.updateOptions(this._id, this);
1508
1331
  }
1509
1332
  handleIndeterminate(checkeds, total) {
1510
- this.selectAllItem = Object.assign(Object.assign({}, this.selectAllItem), { indeterminate: this.checkboxes && checkeds > 0 ? (checkeds === total ? 'check' : 'indeterminate') : 'uncheck', checked: this.checkboxes && checkeds > 0 ? (checkeds === total ? true : false) : false });
1333
+ this.selectAllItem = Object.assign(Object.assign({}, this.selectAllItem), { indeterminate: this.checkboxes && checkeds > 0 ? (checkeds === total ? "check" : "indeterminate") : "uncheck", checked: this.checkboxes && checkeds > 0 ? (checkeds === total ? true : false) : false });
1511
1334
  }
1512
1335
  listenResize() {
1513
- this.tagCalculator();
1514
1336
  this.calculateLocation();
1515
1337
  this.markForCheck();
1516
1338
  }
@@ -1538,12 +1360,6 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1538
1360
  searchInput.onBcmSelect();
1539
1361
  }
1540
1362
  }
1541
- otherTagIds() {
1542
- const otherTag = document.querySelector(`#bcm-list-input-tag-${this._id}-other-tag`);
1543
- if (otherTag) {
1544
- return otherTag.getAttribute('data-ids').split(',');
1545
- }
1546
- }
1547
1363
  async filterOtherList(ids) {
1548
1364
  const checklist = (await this.getCheckedList()).nestedResult;
1549
1365
  const filter = Generate.convertIdsToNestedData(ids, checklist);
@@ -1559,7 +1375,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1559
1375
  this.onClearSearch();
1560
1376
  await listState.setValue({
1561
1377
  id: this._id,
1562
- dataSource: this.data && snq(() => (typeof this.data == 'string' ? JSON.parse(this.data) : this.data), []),
1378
+ dataSource: this.data && snq(() => (typeof this.data == "string" ? JSON.parse(this.data) : this.data), []),
1563
1379
  options: this,
1564
1380
  });
1565
1381
  const { totalRoots, totalItems } = listState.getValue(this._id);
@@ -1591,7 +1407,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1591
1407
  }
1592
1408
  getItems() {
1593
1409
  if (this.isSelectedOther) {
1594
- return this.returnFilterData['checkedItems'];
1410
+ return this.returnFilterData["checkedItems"];
1595
1411
  }
1596
1412
  return snq(() => listState.getData(this._id), []);
1597
1413
  }
@@ -1603,17 +1419,17 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1603
1419
  this.markForCheck();
1604
1420
  }
1605
1421
  focusItem(e) {
1606
- if (e.target.classList.contains('bcm-list__item')) {
1422
+ if (e.target.classList.contains("bcm-list__item")) {
1607
1423
  const item = e.target;
1608
1424
  const list = document.getElementById(`bcm-list-${this._id}`);
1609
1425
  if (list) {
1610
- const items = list.querySelectorAll('.bcm-list__item');
1426
+ const items = list.querySelectorAll(".bcm-list__item");
1611
1427
  if (items.length > 0) {
1612
- const selectedItem = list.querySelector('.bcm-list__item.focused');
1428
+ const selectedItem = list.querySelector(".bcm-list__item.focused");
1613
1429
  if (selectedItem) {
1614
- selectedItem.classList.remove('focused');
1430
+ selectedItem.classList.remove("focused");
1615
1431
  }
1616
- item.classList.add('focused');
1432
+ item.classList.add("focused");
1617
1433
  }
1618
1434
  }
1619
1435
  }
@@ -1625,14 +1441,14 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1625
1441
  this.inputText = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || null;
1626
1442
  this.isOpen = false;
1627
1443
  this.markForCheck();
1628
- if (this.type == 'autocomplete' && this.value) {
1444
+ if (this.type == "autocomplete" && this.value) {
1629
1445
  // await delay(100)
1630
1446
  // this.resetCaption()
1631
1447
  const autocompleteInput = this.getAutoCompleteInput();
1632
1448
  if (autocompleteInput) {
1633
1449
  setTimeout(() => {
1634
1450
  var _a;
1635
- autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || '');
1451
+ autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || "");
1636
1452
  this.isOpen = false;
1637
1453
  }, 100);
1638
1454
  }
@@ -1641,7 +1457,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1641
1457
  return Promise.resolve(this.value);
1642
1458
  }
1643
1459
  async checkedItem(itemId) {
1644
- const isCheckSelectAll = itemId === 'select-all';
1460
+ const isCheckSelectAll = itemId === "select-all";
1645
1461
  if (!isCheckSelectAll) {
1646
1462
  listState.checkedItem(this._id, itemId);
1647
1463
  }
@@ -1679,7 +1495,7 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1679
1495
  }
1680
1496
  async calculateLocation() {
1681
1497
  var _a, _b;
1682
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1498
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1683
1499
  const list = document.getElementById(`bcm-list-${this._id}`);
1684
1500
  // list && (list.style.height = '256px') //sebebi neydi ki!
1685
1501
  var placement = this.placement;
@@ -1694,85 +1510,84 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1694
1510
  if (this.linkedComponent) {
1695
1511
  const linked = document.getElementById(this.linkedComponent);
1696
1512
  if (linked) {
1697
- if (!linked['noCaption']) {
1698
- const captionArea = ((_a = linked.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.bcm-caption-area')) || linked.querySelector('.bcm-caption-area');
1513
+ if (!linked["noCaption"]) {
1514
+ const captionArea = ((_a = linked.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".bcm-caption-area")) || linked.querySelector(".bcm-caption-area");
1699
1515
  if (captionArea) {
1700
1516
  captionAreaHeight = captionArea.offsetHeight || captionArea.clientHeight;
1701
1517
  }
1702
1518
  }
1703
- const labelArea = ((_b = linked.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.bcm-label')) || linked.querySelector('.bcm-label');
1519
+ const labelArea = ((_b = linked.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(".bcm-label")) || linked.querySelector(".bcm-label");
1704
1520
  if (labelArea) {
1705
1521
  labelAreaHeight = labelArea.offsetHeight || labelArea.clientHeight;
1706
1522
  }
1707
1523
  }
1708
1524
  }
1709
1525
  if (this.fullWidth) {
1710
- list.style.width = targetElement.offsetWidth + 'px';
1526
+ list.style.width = targetElement.offsetWidth + "px";
1711
1527
  }
1712
1528
  else {
1713
- list.style.width = this.width || 'auto';
1529
+ list.style.width = this.width || "auto";
1714
1530
  }
1715
- if (this.height.indexOf('%') > -1) {
1716
- list.style.height = NumberHelper.toNumber(this.height) * 0.01 * window.innerHeight - pos[0] - 50 + 'px';
1531
+ if (this.height.indexOf("%") > -1) {
1532
+ list.style.height = NumberHelper.toNumber(this.height) * 0.01 * window.innerHeight - pos[0] - 50 + "px";
1717
1533
  }
1718
1534
  else {
1719
1535
  list.style.height = this.height;
1720
1536
  }
1721
1537
  list.style.minHeight = this.minHeight;
1722
1538
  // const calculatedMaxHeight = window.innerHeight - pos[0] - 50;
1723
- const calculatedMaxHeight = placement.split('-')[0] == 'top' ? window.innerHeight - (window.innerHeight - pos[0]) - 50 : window.innerHeight - pos[0] - 50;
1724
- if (this.maxHeight.indexOf('%') > -1) {
1725
- list.style.maxHeight = NumberHelper.toNumber(this.maxHeight) * 0.01 * calculatedMaxHeight + 'px';
1539
+ const calculatedMaxHeight = placement.split("-")[0] == "top" ? window.innerHeight - (window.innerHeight - pos[0]) - 50 : window.innerHeight - pos[0] - 50;
1540
+ if (this.maxHeight.indexOf("%") > -1) {
1541
+ list.style.maxHeight = NumberHelper.toNumber(this.maxHeight) * 0.01 * calculatedMaxHeight + "px";
1726
1542
  }
1727
1543
  else {
1728
- list.style.maxHeight = NumberHelper.toNumber(this.maxHeight) < calculatedMaxHeight ? this.maxHeight : calculatedMaxHeight + 'px';
1544
+ list.style.maxHeight = NumberHelper.toNumber(this.maxHeight) < calculatedMaxHeight ? this.maxHeight : calculatedMaxHeight + "px";
1729
1545
  }
1730
1546
  getPlacement(list, targetElement, placement, (place) => (placement = place));
1731
1547
  await delay(10);
1732
1548
  pos = setPosition(placement, targetElement);
1733
- list.style.top = (placement.split('-')[0] == 'top' ? pos[0] - list.offsetHeight + labelAreaHeight : pos[0] - captionAreaHeight) + 'px';
1549
+ list.style.top = (placement.split("-")[0] == "top" ? pos[0] - list.offsetHeight + labelAreaHeight : pos[0] - captionAreaHeight) + "px";
1734
1550
  // list.style.left = pos[1] + 'px';
1735
- list.style.left = placement.split('-')[1] == 'end' ? pos[1] - list.offsetWidth + 'px' : pos[1] + 'px';
1736
- list.classList.toggle('bcm-list--top', placement.split('-')[0] == 'top');
1551
+ list.style.left = placement.split("-")[1] == "end" ? pos[1] - list.offsetWidth + "px" : pos[1] + "px";
1552
+ list.classList.toggle("bcm-list--top", placement.split("-")[0] == "top");
1737
1553
  this.calculatedViewport = true;
1738
1554
  }
1739
1555
  }
1740
1556
  }
1741
1557
  render() {
1742
1558
  const { checkboxes, treeview, label, size, disabled, readonly, required, hidden, fullWidth, searchable } = this.getOptions();
1743
- const hostClasses = classnames('bcm-list', `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === 'large' ? 'size-3' : 'size-2', {
1744
- 'error': this.captionType == Bcm$1.Status.error,
1745
- 'full-width': fullWidth,
1746
- 'bcm-list__linked': this.linkedComponent,
1559
+ const hostClasses = classnames("bcm-list", `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === "large" ? "size-3" : "size-2", {
1560
+ "error": this.captionType == Bcm$1.Status.error,
1561
+ "full-width": fullWidth,
1562
+ "bcm-list__linked": this.linkedComponent,
1747
1563
  hidden,
1748
1564
  readonly,
1749
1565
  disabled,
1750
1566
  });
1751
- const bcmListContainer = classnames('bcm-list__container', this.linkedComponent ? 'bcm-list__type-linked-component' : `bcm-list__type-${this.type}`, {
1752
- 'is-open': this.isOpen && this.calculatedViewport,
1753
- 'error': this.captionType == Bcm$1.Status.error,
1754
- 'full-width': fullWidth,
1567
+ const bcmListContainer = classnames("bcm-list__container", this.linkedComponent ? "bcm-list__type-linked-component" : `bcm-list__type-${this.type}`, {
1568
+ "is-open": this.isOpen && this.calculatedViewport,
1569
+ "error": this.captionType == Bcm$1.Status.error,
1570
+ "full-width": fullWidth,
1755
1571
  hidden,
1756
1572
  readonly,
1757
1573
  disabled,
1758
1574
  });
1759
- const bcmListInput = classnames('bcm-list__input');
1760
- const openedType = this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent;
1575
+ const bcmListInput = classnames("bcm-list__input");
1576
+ const openedType = this.type == "select" || this.type == "autocomplete" || this.linkedComponent;
1761
1577
  return (h(Host, { class: hostClasses, tabindex: "0", style: {
1762
- '--width': fullWidth ? '100%' : this.width,
1763
- '--height': openedType ? '100%' : this.height,
1764
- '--max-height': openedType ? 'inherit' : this.maxHeight,
1765
- '--min-height': openedType ? 'inherit' : this.minHeight,
1766
- } }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == 'select' && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: classnames('bcm-list__input-container', { 'type-single': !checkboxes, 'value-empty': !this.value }) }, this.checkboxes && h("span", { id: `bcm-list-input-tag-container-${this._id}`, class: "bcm-list__input-tag-container" }), this.checkboxes && !this.value && h("span", { class: "bcm-list__input-placeholder" }, this.placeholder), !this.checkboxes && (this.value ? this.inputText : h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: classnames('bcm-list__input-buttons', {
1578
+ "--width": fullWidth ? "100%" : this.width,
1579
+ "--height": openedType ? "100%" : this.height,
1580
+ "--max-height": openedType ? "inherit" : this.maxHeight,
1581
+ "--min-height": openedType ? "inherit" : this.minHeight,
1582
+ } }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: classnames("bcm-list__input-buttons", {
1767
1583
  disabled: disabled,
1768
- }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (h("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == 'autocomplete' ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1584
+ }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (h("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == "autocomplete" ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1769
1585
  }
1770
1586
  get el() { return this; }
1771
1587
  static get watchers() { return {
1772
1588
  "_id": ["watchId"],
1773
1589
  "value": ["handleValueChange"],
1774
1590
  "returnFilterData": ["watchReturnFilterData"],
1775
- "isSelectedOther": ["handleOtherSelected"],
1776
1591
  "isOpen": ["handleOpen"],
1777
1592
  "data": ["dataChanged"]
1778
1593
  }; }
@@ -1849,18 +1664,18 @@ const BcmList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1849
1664
  "resetCaption": [64],
1850
1665
  "show": [64],
1851
1666
  "hide": [64]
1852
- }, [[2, "bcm-is-intersecting", "isIntersecting"], [2, "bcm-items", "handleSlotItems"], [0, "bcm-change", "handleChange"], [9, "resize", "handleResize"], [7, "scroll", "handleWheel"], [4, "wheel", "handleWheel"], [10, "click", "handleClick"], [10, "bcm-on-search-clear", "bcmOnSearchClear"], [10, "bcm-on-search", "bcmOnSearch"], [10, "keydown", "handleKeyDown"], [10, "keyup", "handleKeyUp"]]]);
1667
+ }, [[2, "bcm-is-intersecting", "isIntersecting"], [2, "bcm-items", "handleSlotItems"], [0, "bcm-change", "handleChange"], [9, "resize", "handleResize"], [7, "scroll", "handleWheel"], [4, "wheel", "handleWheel"], [0, "bcm-select-other-tag", "handleSelectOtherTag"], [0, "bcm-delete-tag", "handleDeleteTag"], [0, "bcm-select-tag", "handleSelectTag"], [10, "click", "handleClick"], [10, "bcm-on-search-clear", "bcmOnSearchClear"], [10, "bcm-on-search", "bcmOnSearch"], [10, "keydown", "handleKeyDown"], [10, "keyup", "handleKeyUp"]]]);
1853
1668
  __decorate([
1854
1669
  IsLoad()
1855
1670
  ], BcmList$1.prototype, "el", void 0);
1856
1671
  __decorate([
1857
- JsonParse('data', true)
1672
+ JsonParse("data", true)
1858
1673
  ], BcmList$1.prototype, "dataChanged", null);
1859
1674
  function defineCustomElement$1() {
1860
1675
  if (typeof customElements === "undefined") {
1861
1676
  return;
1862
1677
  }
1863
- const components = ["bcm-list", "bcm-icon", "bcm-search"];
1678
+ const components = ["bcm-list", "bcm-icon", "bcm-rc-overflow", "bcm-search", "bcm-tooltip"];
1864
1679
  components.forEach(tagName => { switch (tagName) {
1865
1680
  case "bcm-list":
1866
1681
  if (!customElements.get(tagName)) {
@@ -1869,10 +1684,20 @@ function defineCustomElement$1() {
1869
1684
  break;
1870
1685
  case "bcm-icon":
1871
1686
  if (!customElements.get(tagName)) {
1872
- defineCustomElement$3();
1687
+ defineCustomElement$5();
1688
+ }
1689
+ break;
1690
+ case "bcm-rc-overflow":
1691
+ if (!customElements.get(tagName)) {
1692
+ defineCustomElement$4();
1873
1693
  }
1874
1694
  break;
1875
1695
  case "bcm-search":
1696
+ if (!customElements.get(tagName)) {
1697
+ defineCustomElement$3();
1698
+ }
1699
+ break;
1700
+ case "bcm-tooltip":
1876
1701
  if (!customElements.get(tagName)) {
1877
1702
  defineCustomElement$2();
1878
1703
  }