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

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 (218) 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-dac557b6.entry.js → p-05852df3.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-b7cc2017.entry.js → p-1b1f82cf.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-3567551d.entry.js → p-1c1f02a8.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-8b855df0.entry.js → p-1d591e1e.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  8. package/dist/bromcom-ui/{p-56106366.entry.js → p-23b6f1b6.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-419de710.entry.js → p-25e6e25d.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-d5a01b74.entry.js → p-2c93afb8.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-4127fc78.entry.js → p-2d1124ca.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-4d331d46.entry.js → p-50b59f5f.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-5358bb45.entry.js +5 -0
  14. package/dist/bromcom-ui/p-53658089.entry.js +13 -0
  15. package/dist/bromcom-ui/{p-c8e8b60e.entry.js → p-538a13af.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-7ba96cf2.js → p-594fbc80.js} +1 -1
  17. package/dist/bromcom-ui/p-59efe1da.js +5 -0
  18. package/dist/bromcom-ui/{p-7cf1f3de.entry.js → p-5bb7e3b7.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-f09dbef5.entry.js → p-5bf4d697.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-be825c0f.entry.js → p-5c718986.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-a5cd708f.entry.js → p-5e72a278.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-3c065d74.entry.js → p-63608aaa.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-cf31f51c.entry.js → p-6b988756.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-78258c6a.entry.js → p-6db0f8dd.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-bb7e043b.entry.js → p-6eefda1d.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-d8dc6cbc.entry.js → p-6f5bd54d.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-70d0ec99.entry.js → p-702a285b.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-7fca36fc.entry.js → p-70b210af.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-ba983d4d.js → p-75a2820f.js} +1 -1
  30. package/dist/bromcom-ui/{p-80961b1f.entry.js → p-76182c8b.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-5a828ce3.entry.js → p-78527fcd.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-8c25cbe7.entry.js → p-7baef152.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-cd5a2b60.entry.js → p-8aa4fee3.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-58122b12.js → p-8e7a489e.js} +1 -1
  35. package/dist/bromcom-ui/{p-2e29836f.entry.js → p-962fee18.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-7c3d76b0.entry.js → p-97e22a22.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-dd908a30.js → p-9bc739ac.js} +1 -1
  38. package/dist/bromcom-ui/{p-612462f9.entry.js → p-9c2f39ab.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-d47493db.entry.js → p-9d00bf3c.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-b707b27a.js → p-aea6f62f.js} +1 -1
  41. package/dist/bromcom-ui/{p-1a64f637.entry.js → p-af81e5fa.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-9bb0596c.entry.js → p-b1b64c8b.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-b95ef982.entry.js → p-b29766b2.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-889c98a7.entry.js → p-b4b06540.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-92a86fe4.entry.js → p-b685ca73.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-b8d63188.entry.js → p-b7919ac8.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-5f8993f5.entry.js → p-bae55354.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-ce7c5d82.entry.js → p-bbd80e20.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-ba6d4f9b.entry.js → p-c0bb9cfc.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-e3ea3b39.entry.js → p-c4e92744.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-32ce5b3d.entry.js → p-c863ba72.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-661f583b.entry.js → p-d019f179.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-1f7deee4.entry.js → p-d497bc00.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-db7096a8.entry.js → p-d9838751.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-d59d8968.entry.js → p-dd4c1650.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-e8e33954.js → p-e1119ff2.js} +1 -1
  57. package/dist/bromcom-ui/{p-d79a5538.entry.js → p-e1898d81.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-ea6c32e1.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-1e6a0c27.entry.js → p-f1eefc73.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-43f4cac9.entry.js → p-f2699133.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-103314ff.entry.js → p-f35d0fc2.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 +4 -4
  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-5564014f.js} +1 -1
  113. package/dist/cjs/index-906fb4e5.js +540 -0
  114. package/dist/cjs/{input-template-3af2733b.js → input-template-b8eb3568.js} +1 -1
  115. package/dist/cjs/{json-parse-decarator-97c404e9.js → json-parse-decarator-c9d01873.js} +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-724bd3c0.js → number-helper-57fc05a9.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-47bcb1a4.js} +1 -1
  121. package/dist/cjs/{tooltip-helper-dc91538e.js → tooltip-helper-4ca7648e.js} +3 -3
  122. package/dist/cjs/{validators-4277e26c.js → validators-f1b75654.js} +1 -1
  123. package/dist/collection/collection-manifest.json +3 -2
  124. package/dist/collection/components/organism/list/list.css +4 -3
  125. package/dist/collection/components/organism/list/list.js +171 -176
  126. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -1
  127. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  128. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  129. package/dist/components/bcm-alert.js +1 -1
  130. package/dist/components/bcm-checkbox-group.js +1 -1
  131. package/dist/components/bcm-list.js +153 -328
  132. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  133. package/dist/components/bcm-rc-overflow.js +10 -0
  134. package/dist/components/button.js +1 -1
  135. package/dist/components/colorful.js +2 -531
  136. package/dist/components/generate.js +1 -1
  137. package/dist/components/index.d.ts +2 -1
  138. package/dist/components/index.js +1 -0
  139. package/dist/components/index3.js +523 -177
  140. package/dist/components/index4.js +191 -0
  141. package/dist/components/rc-overflow.js +2238 -0
  142. package/dist/components/search.js +1 -1
  143. package/dist/components/step.js +1 -1
  144. package/dist/esm/bcm-accordion.entry.js +1 -1
  145. package/dist/esm/bcm-alert.entry.js +1 -1
  146. package/dist/esm/bcm-attendance.entry.js +1 -1
  147. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  148. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  149. package/dist/esm/bcm-button-group.entry.js +1 -1
  150. package/dist/esm/bcm-button_7.entry.js +4 -4
  151. package/dist/esm/bcm-card.entry.js +1 -1
  152. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  153. package/dist/esm/bcm-chip.entry.js +1 -1
  154. package/dist/esm/bcm-collapse.entry.js +1 -1
  155. package/dist/esm/bcm-color-input.entry.js +3 -3
  156. package/dist/esm/bcm-colorful_2.entry.js +5 -534
  157. package/dist/esm/bcm-date-picker.entry.js +1 -1
  158. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  159. package/dist/esm/bcm-default.entry.js +1 -1
  160. package/dist/esm/bcm-drawer.entry.js +3 -3
  161. package/dist/esm/bcm-dropdown.entry.js +2 -2
  162. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  163. package/dist/esm/bcm-form-2.entry.js +1 -1
  164. package/dist/esm/bcm-input-custom.entry.js +1 -1
  165. package/dist/esm/bcm-input.entry.js +4 -4
  166. package/dist/esm/bcm-item.entry.js +1 -1
  167. package/dist/esm/bcm-items.entry.js +1 -1
  168. package/dist/esm/bcm-list.entry.js +139 -327
  169. package/dist/esm/bcm-menu.entry.js +4 -4
  170. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  171. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  172. package/dist/esm/bcm-modal-2.entry.js +3 -3
  173. package/dist/esm/bcm-modal.entry.js +1 -1
  174. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  175. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  176. package/dist/esm/bcm-popover.entry.js +3 -3
  177. package/dist/esm/bcm-progress.entry.js +1 -1
  178. package/dist/esm/bcm-radio-group.entry.js +3 -3
  179. package/dist/esm/bcm-radio.entry.js +3 -3
  180. package/dist/esm/bcm-range.entry.js +1 -1
  181. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  182. package/dist/esm/bcm-skeleton.entry.js +1 -1
  183. package/dist/esm/bcm-step.entry.js +2 -2
  184. package/dist/esm/bcm-stepper.entry.js +4 -4
  185. package/dist/esm/bcm-switch.entry.js +1 -1
  186. package/dist/esm/bcm-tab-group.entry.js +3 -3
  187. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  188. package/dist/esm/bcm-tab-item.entry.js +3 -3
  189. package/dist/esm/bcm-tag.entry.js +2 -2
  190. package/dist/esm/bcm-textarea.entry.js +2 -2
  191. package/dist/esm/bcm-time-picker.entry.js +1 -1
  192. package/dist/esm/bcm-toast.entry.js +1 -1
  193. package/dist/esm/bromcom-ui.js +1 -1
  194. package/dist/esm/{generate-ae8dfae8.js → generate-5684c743.js} +1 -1
  195. package/dist/esm/index-6310a048.js +537 -0
  196. package/dist/esm/{input-template-56b65f6e.js → input-template-846cd4f3.js} +1 -1
  197. package/dist/esm/{json-parse-decarator-463c98c9.js → json-parse-decarator-5cdef266.js} +1 -1
  198. package/dist/esm/loader.js +1 -1
  199. package/dist/esm/{number-helper-8ae3f523.js → number-helper-3c971b4e.js} +1 -1
  200. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  201. package/dist/esm/old-bcm-popover.entry.js +1 -1
  202. package/dist/esm/{stepper-states-fd4a335e.js → stepper-states-2f1dd0bd.js} +1 -1
  203. package/dist/esm/{tooltip-helper-d3858d00.js → tooltip-helper-86b9b16e.js} +3 -3
  204. package/dist/esm/{validators-d4d1cbd1.js → validators-d6dd6432.js} +1 -1
  205. package/dist/types/components/organism/list/list.d.ts +9 -5
  206. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  207. package/dist/types/components.d.ts +26 -0
  208. package/package.json +2 -1
  209. package/dist/bromcom-ui/p-01a2410a.entry.js +0 -5
  210. package/dist/bromcom-ui/p-026a22c1.entry.js +0 -5
  211. package/dist/bromcom-ui/p-a53b91a2.entry.js +0 -10
  212. package/dist/bromcom-ui/p-b9d70b21.js +0 -5
  213. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  214. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  215. package/dist/esm/bcm-search.entry.js +0 -241
  216. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  217. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  218. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-39133086.js';
6
6
  import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
7
- import { J as JsonParse } from './json-parse-decarator-463c98c9.js';
7
+ import { J as JsonParse } from './json-parse-decarator-5cdef266.js';
8
8
  import './color-helper-e8ce23d7.js';
9
9
  import './datetime-helper-df25808a.js';
10
- import { s as snq, G as Generate } from './generate-ae8dfae8.js';
11
- import { N as NumberHelper } from './number-helper-8ae3f523.js';
10
+ import { s as snq, G as Generate } from './generate-5684c743.js';
11
+ import { N as NumberHelper } from './number-helper-3c971b4e.js';
12
12
  import { S as StringHelper } from './string-helper-6bd24967.js';
13
- import { V as Validators } from './validators-d4d1cbd1.js';
13
+ import { V as Validators } from './validators-d6dd6432.js';
14
14
  import './element-dragger-89bb52fd.js';
15
15
  import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
16
16
  import { p as pluralize, d as delay } from './utils-57652744.js';
@@ -21,12 +21,10 @@ import './types-6f06fa1a.js';
21
21
  import { L as LabelTemplate } from './label-template-d74fe788.js';
22
22
  import './types-9493a7ed.js';
23
23
  import { c as createStore } from './index-93e36fdb.js';
24
- import { T as Tooltip } from './tooltip-helper-d3858d00.js';
25
24
  import './colors-1d7854ea.js';
26
25
  import './colors-44c95e7e.js';
27
26
  import './_commonjsHelpers-3016b722.js';
28
27
  import './slot-template-5b2db362.js';
29
- import './floating-ui-e7341329.js';
30
28
 
31
29
  const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
32
30
  // if ( indeterminate ) {
@@ -842,173 +840,7 @@ class ListKeyControl extends KeyControl {
842
840
  keyUp() { }
843
841
  }
844
842
 
845
- class ListTagControl {
846
- constructor(containerId, values, listId, selectedOtherTag, clearable) {
847
- this.clearable = false;
848
- this.containerId = containerId;
849
- this.values = values;
850
- this.listId = listId;
851
- this.selectedOtherTag = selectedOtherTag;
852
- this.clearable = clearable;
853
- }
854
- getTooltip(id, text) {
855
- return new Tooltip({ message: text, targetId: id, placement: 'bottom' });
856
- }
857
- tagHtmlTemplate(tag, isOtherTag = false, otherTagIsSingle = false) {
858
- return `<span class="bcm-tag__content dismissable ${!otherTagIsSingle && isOtherTag && (this.selectedOtherTag ? 'checkable checked' : '')}">
859
- <span class="value">${tag.text}</span>
860
- ${otherTagIsSingle
861
- ? ''
862
- : `
863
- <span class="right close-button" bcm-list-tag-dismiss >
864
- <bcm-icon icon="fal fa-times"></bcm-icon>
865
- </span>`}
866
- </span>`;
867
- }
868
- getContainer() {
869
- return document.getElementById(this.containerId);
870
- }
871
- getContainerWidth() {
872
- let tagContainerWidth = snq(() => document.getElementById(this.containerId).clientWidth, 0);
873
- tagContainerWidth = (this.clearable ? tagContainerWidth - 20 : tagContainerWidth) - 20;
874
- return [tagContainerWidth < 130 ? 130 : tagContainerWidth - 20, tagContainerWidth];
875
- }
876
- isClickDismiss(e) {
877
- const path = e.path || (e.composedPath && e.composedPath());
878
- const tag = path.find(element => element.attributes && element.attributes['bcm-list-tag-dismiss']);
879
- return !!tag;
880
- }
881
- onClickControl(e, id, isOtherTag = false) {
882
- const isDismiss = this.isClickDismiss(e);
883
- let tooltipId = '';
884
- if (isDismiss) {
885
- this.onClickDismiss(id);
886
- tooltipId = isOtherTag ? `bcm-list-input-tag-${this.listId}-other-tag` : `list-${this.listId}-${id}`;
887
- this.getTooltip(tooltipId, '').hide();
888
- }
889
- else {
890
- isOtherTag ? this.onClickOtherTag(id) : this.onClickTag(id);
891
- }
892
- }
893
- calculateTags() {
894
- const containerWidth = this.getContainerWidth();
895
- const virtualDom = this.getContainer();
896
- if (virtualDom) {
897
- if (this.values && this.values.length > 0) {
898
- if (containerWidth[0] > 0 && virtualDom) {
899
- virtualDom.innerHTML = '';
900
- this.values.slice(0, 50).map(value => {
901
- const tag = document.createElement('div');
902
- tag.classList.add('bcm-tag');
903
- tag.id = `list-${this.listId}-${value.id}`;
904
- // tag.title = value.tagTitle || value.text || '';
905
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').show();
906
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').hide();
907
- tag.dataset.id = value.id;
908
- tag.onclick = e => this.onClickControl(e, value.id);
909
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, value), { text: StringHelper.textLimitter(value.text, 10) }));
910
- virtualDom.appendChild(tag);
911
- });
912
- let tags = virtualDom.querySelectorAll('.bcm-tag');
913
- let otherTags = [];
914
- let visibleTags = [];
915
- const checkControl = () => {
916
- const virtualDomTags = virtualDom.querySelectorAll('.bcm-tag');
917
- if (visibleTags.length === 1 && (virtualDomTags === null || virtualDomTags === void 0 ? void 0 : virtualDomTags.length) === 1) {
918
- visibleTags[0].innerHTML = this.tagHtmlTemplate({ text: '+1' }, false, true);
919
- }
920
- };
921
- let tagsWidth = Array.from(tags).reduce((acc, tag) => {
922
- const tagClientWidth = tag.clientWidth > 50 ? tag.clientWidth : 50;
923
- if (tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0]) {
924
- acc += tagClientWidth + 10;
925
- visibleTags.push(tag);
926
- const checkFreeSpace = tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0];
927
- !checkFreeSpace && containerWidth[1] < 70 && checkControl();
928
- }
929
- else {
930
- otherTags.push(tag);
931
- tag.remove();
932
- }
933
- return acc;
934
- }, 0);
935
- const otherTagElement = this.values.slice(visibleTags.length);
936
- const virtualDomLastElements = virtualDom.lastElementChild;
937
- const otherTagTextControl = args => {
938
- const { count, width } = args;
939
- if (count > 999)
940
- return '999+' + pluralize('item', count);
941
- if (width >= 100)
942
- return `${count} ` + pluralize('item', count) + ' selected';
943
- if (width < 100)
944
- return `+${count < 10 ? count : '9'}`;
945
- };
946
- if (otherTags && otherTags.length > 0 && virtualDomLastElements && virtualDomLastElements.id !== `bcm-list-input-tag-${this.listId}-other-tag`) {
947
- otherTags.push(virtualDomLastElements);
948
- if (otherTags.length > 0) {
949
- const otherCounter = otherTagElement.length + 1;
950
- const createOthertagElement = {
951
- id: `bcm-list-input-tag-${this.listId}-other-tag`,
952
- text: otherTagTextControl({ count: otherCounter, width: containerWidth[1] }),
953
- title: snq(() => otherTags
954
- .map(tag => this.values.find(value => value.id == tag.dataset.id))
955
- .sort((a, b) => +a.ct - +b.ct)
956
- .slice(0, 15)
957
- .map(item => StringHelper.textLimitter(item.tagTitle || item.text, 40, true))
958
- .toString()
959
- .split(',')
960
- .join('\r\n') + (otherTags.length > 15 ? ('\r\n...') : ''), '...'),
961
- };
962
- virtualDomLastElements.remove();
963
- visibleTags = visibleTags.filter(tag => tag.id !== virtualDomLastElements.id);
964
- const hiddenTags = this.values.filter(value => !visibleTags.find(tag => tag.dataset.id == value.id)).map(value => value.id);
965
- const otherTag = document.createElement('div');
966
- const otherTagIds = hiddenTags.join(',');
967
- const otherTagIsSingle = visibleTags.length === 0;
968
- otherTag.classList.add('bcm-tag');
969
- !otherTagIsSingle && otherTag.classList.add('bcm-tag--other');
970
- otherTag.id = createOthertagElement.id;
971
- // otherTag.title = createOthertagElement.title || false;
972
- if (createOthertagElement.title) {
973
- otherTag.onmouseenter = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).show();
974
- otherTag.onmouseleave = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).hide();
975
- }
976
- otherTag.onclick = e => this.onClickControl(e, otherTagIds, otherTagIsSingle ? false : true);
977
- otherTag.innerHTML = this.tagHtmlTemplate(createOthertagElement, true, otherTagIsSingle);
978
- otherTag.dataset.ids = hiddenTags.join(',');
979
- virtualDom.appendChild(otherTag);
980
- }
981
- }
982
- const otherTag = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
983
- const otherTagWidth = otherTag ? (otherTag.clientWidth && otherTag.clientWidth < 50 ? 50 : otherTag.clientWidth) : 200;
984
- const tagsPerRow = Math.floor(containerWidth[0] - tagsWidth);
985
- if (tagsPerRow > otherTagWidth) {
986
- if (otherTag) {
987
- const findElement = this.values.find(value => value.id == otherTag.dataset.ids.split(',')[0]);
988
- const tag = document.createElement('div');
989
- tag.classList.add('bcm-tag');
990
- tag.id = `list-${this.listId}-${findElement.id}`;
991
- // tag.title = findElement?.title || '';
992
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').show();
993
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').hide();
994
- tag.dataset.id = findElement.id;
995
- tag.onclick = e => this.onClickControl(e, findElement === null || findElement === void 0 ? void 0 : findElement.id);
996
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, findElement), { text: StringHelper.textLimitter(findElement.text, 10) }));
997
- const otherTagElement = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
998
- otherTagElement.remove();
999
- virtualDom.appendChild(tag);
1000
- }
1001
- }
1002
- }
1003
- }
1004
- else {
1005
- virtualDom.innerHTML = '';
1006
- }
1007
- }
1008
- }
1009
- }
1010
-
1011
- 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}";
843
+ 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}";
1012
844
 
1013
845
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1014
846
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -1047,12 +879,12 @@ const BcmList = class {
1047
879
  this.required = false;
1048
880
  this.hidden = false;
1049
881
  this.fullWidth = false;
1050
- this.height = '256px';
1051
- this.maxHeight = '500px';
1052
- this.minHeight = '150px';
1053
- this.width = '256px';
882
+ this.height = "256px";
883
+ this.maxHeight = "500px";
884
+ this.minHeight = "150px";
885
+ this.width = "256px";
1054
886
  this.infoFooter = false;
1055
- this.variableText = 'item';
887
+ this.variableText = "item";
1056
888
  this.template = undefined;
1057
889
  this.allOpen = false;
1058
890
  this.keyControl = false;
@@ -1063,8 +895,8 @@ const BcmList = class {
1063
895
  this.calculatedViewport = false;
1064
896
  this.isSelectedOther = false;
1065
897
  this.isHaveOtherTag = false;
1066
- this.placeholder = 'Choose an option';
1067
- this.searchPlaceholder = 'Search';
898
+ this.placeholder = "Choose an option";
899
+ this.searchPlaceholder = "Search";
1068
900
  this.searchIsOnlyChilds = false;
1069
901
  this.minSearchLength = 2;
1070
902
  this.clearable = false;
@@ -1073,7 +905,7 @@ const BcmList = class {
1073
905
  this.captionType = Bcm$1.Status.default;
1074
906
  this.captionError = undefined;
1075
907
  this.emptyText = undefined;
1076
- this.emptyIcon = 'fad fa-folder-open';
908
+ this.emptyIcon = "fad fa-folder-open";
1077
909
  this.captionCache = undefined;
1078
910
  this.captionTypeCache = undefined;
1079
911
  this.tick = {};
@@ -1086,26 +918,26 @@ const BcmList = class {
1086
918
  this.returnFilterData = {};
1087
919
  this.returnOtherData = {};
1088
920
  this.options = {
1089
- rootMargin: '30px',
921
+ rootMargin: "30px",
1090
922
  };
1091
923
  this.tagContainerWidth = 0;
1092
924
  this.selectAllItem = {
1093
- id: 'select-all',
1094
- text: 'Select All',
1095
- value: 'select-all',
925
+ id: "select-all",
926
+ text: "Select All",
927
+ value: "select-all",
1096
928
  checked: false,
1097
929
  disabled: false,
1098
- icon: '',
930
+ icon: "",
1099
931
  status: Bcm$1.Status.default,
1100
- indeterminate: 'uncheck',
932
+ indeterminate: "uncheck",
1101
933
  };
1102
- this.placement = Bcm$1.Placement['bottom-start'];
934
+ this.placement = Bcm$1.Placement["bottom-start"];
1103
935
  this.data = [];
1104
936
  }
1105
937
  connectedCallback() {
1106
- if (this.height != '256px') {
1107
- if (this.height.indexOf('px') > -1) {
1108
- 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);
1109
941
  }
1110
942
  else {
1111
943
  this.limit = Math.floor(+(window.innerHeight / 10));
@@ -1124,69 +956,39 @@ const BcmList = class {
1124
956
  this.updateOptions();
1125
957
  }
1126
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
+ }
1127
976
  async componentDidLoad() {
1128
977
  await this.initState();
1129
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
978
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1130
979
  const list = this.el.querySelector(`#bcm-list-${this._id}`);
1131
980
  if (list) {
1132
981
  document.body.appendChild(list);
1133
982
  }
1134
983
  }
1135
984
  }
1136
- tagCalculator() {
1137
- if (this.checkboxes && (this.type == 'select' || this.type == 'autocomplete')) {
1138
- const tagCalculator = new ListTagControl(`bcm-list-input-tag-container-${this._id}`, this.value, this._id, this.isSelectedOther, this.clearable);
1139
- tagCalculator.calculateTags();
1140
- const arrayIds = id => (typeof id == 'string' ? id.split(',') : [id]);
1141
- const clearAutocomplete = () => {
1142
- if (this.type == 'autocomplete') {
1143
- const autocompleteInput = this.getAutoCompleteInput();
1144
- if (autocompleteInput) {
1145
- autocompleteInput.handleClear(false);
1146
- }
1147
- }
1148
- };
1149
- tagCalculator.onClickOtherTag = async (id) => {
1150
- if (!this.disabled) {
1151
- clearAutocomplete();
1152
- if (this.isSelectedOther) {
1153
- await this.unSelectOther();
1154
- }
1155
- else {
1156
- await this.onClearSearch();
1157
- this.isSelectedOther = true;
1158
- this.filterOtherList(arrayIds(id));
1159
- this.isOpen = true;
1160
- }
1161
- this.onSelectSearch();
1162
- }
1163
- };
1164
- tagCalculator.onClickTag = _ => {
1165
- // console.log(id);
1166
- clearAutocomplete();
1167
- this.onSelectSearch();
1168
- this.unSelectOther();
1169
- };
1170
- tagCalculator.onClickDismiss = async (id) => {
1171
- var _a;
1172
- if (!this.disabled) {
1173
- if (this.isSelectedOther) {
1174
- await this.unSelectOther();
1175
- }
1176
- arrayIds(id).length > 1 ? listState.removeOtherTags(this._id, arrayIds(id)) : listState.checkedItem(this._id, arrayIds(id)[0]);
1177
- this.value = (await this.getCheckedList()).checkedList;
1178
- this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1179
- }
1180
- };
1181
- }
1182
- }
1183
985
  disconnectedCallback() {
1184
986
  this.isOpen = false;
1185
987
  if (this.stopDeepClean)
1186
988
  return;
1187
989
  listState.removeState(this._id);
1188
- this.el.innerHTML = '';
1189
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
990
+ this.el.innerHTML = "";
991
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1190
992
  const list = document.querySelectorAll(`#bcm-list-${this._id}`);
1191
993
  if (list === null || list === void 0 ? void 0 : list.length) {
1192
994
  list.forEach(item => item.remove());
@@ -1215,7 +1017,6 @@ const BcmList = class {
1215
1017
  this.change.emit(this.value);
1216
1018
  }
1217
1019
  }
1218
- this.tagCalculator();
1219
1020
  }
1220
1021
  watchReturnFilterData(newVal) {
1221
1022
  var _a;
@@ -1227,18 +1028,6 @@ const BcmList = class {
1227
1028
  this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1228
1029
  }
1229
1030
  }
1230
- handleOtherSelected(newValue) {
1231
- var _a;
1232
- const tagContent = (_a = document.getElementById(`bcm-list-input-tag-${this._id}-other-tag`)) === null || _a === void 0 ? void 0 : _a.querySelector('.bcm-tag__content');
1233
- if (tagContent) {
1234
- if (newValue === true) {
1235
- tagContent.classList.add('checkable', 'checked');
1236
- }
1237
- else {
1238
- tagContent.classList.remove('checkable', 'checked');
1239
- }
1240
- }
1241
- }
1242
1031
  async handleOpen() {
1243
1032
  if (this.isOpen) {
1244
1033
  this.open.emit();
@@ -1255,7 +1044,7 @@ const BcmList = class {
1255
1044
  listScrollToTop() {
1256
1045
  const list = document.querySelector(`#bcm-list-${this._id}`);
1257
1046
  if (list) {
1258
- list.querySelector('.scrolling').scrollTop = 0;
1047
+ list.querySelector(".scrolling").scrollTop = 0;
1259
1048
  }
1260
1049
  }
1261
1050
  async dataChanged(newValue, oldValue) {
@@ -1289,7 +1078,7 @@ const BcmList = class {
1289
1078
  const list = document.querySelector(`#bcm-list-${this._id}`);
1290
1079
  const isClickInside = list && Generate.findEventPath(event, list);
1291
1080
  if (isClickInside) {
1292
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1081
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1293
1082
  this.calculateLocation();
1294
1083
  }
1295
1084
  }
@@ -1298,6 +1087,41 @@ const BcmList = class {
1298
1087
  }
1299
1088
  }
1300
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
+ }
1301
1125
  handleClick(event) {
1302
1126
  var _a;
1303
1127
  if (this.disabled)
@@ -1316,23 +1140,23 @@ const BcmList = class {
1316
1140
  }, 300);
1317
1141
  }
1318
1142
  if (!isClickInside) {
1319
- if (this.type == 'autocomplete') {
1143
+ if (this.type == "autocomplete") {
1320
1144
  const autocompleteInput = this.getAutoCompleteInput();
1321
1145
  if (autocompleteInput) {
1322
1146
  if (this.checkboxes) {
1323
- autocompleteInput.setValue('');
1147
+ autocompleteInput.setValue("");
1324
1148
  }
1325
1149
  else {
1326
- 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) || "");
1327
1151
  }
1328
1152
  }
1329
1153
  }
1330
1154
  }
1331
- const clickToTag = Generate.findEventPathWithKey(event, 'className', ['bcm-tag']);
1332
- const clickToOtherTag = Generate.findEventPathWithKey(event, 'className', ['bcm-tag bcm-tag--other']);
1333
- const clickToSelect = Generate.findEventPathWithKey(event, 'id', [`bcm-list-input-${this._id}`, `bcm-list-label-${this._id}`]);
1334
- const clickToTagDismiss = Generate.findEventPathWithKey(event, 'className', ['right close-button']);
1335
- 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") {
1336
1160
  this.isOpen = clickToTag || clickToOtherTag ? true : !this.isOpen;
1337
1161
  }
1338
1162
  if (list) {
@@ -1346,7 +1170,7 @@ const BcmList = class {
1346
1170
  }
1347
1171
  bcmOnSearchClear(event) {
1348
1172
  var _a, _b;
1349
- if (this.type == 'autocomplete') {
1173
+ if (this.type == "autocomplete") {
1350
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`) {
1351
1175
  if (event.detail) {
1352
1176
  this.setClear();
@@ -1364,16 +1188,13 @@ const BcmList = class {
1364
1188
  if (this.searchFound > 0 && this.highlight) {
1365
1189
  this.highlightText = (_f = event.detail) === null || _f === void 0 ? void 0 : _f.value;
1366
1190
  }
1367
- if (this.type == 'autocomplete') {
1191
+ if (this.type == "autocomplete") {
1368
1192
  this.isOpen = true;
1369
1193
  }
1370
1194
  if (!event.detail.result) {
1371
- if (this.type == 'autocomplete') {
1195
+ if (this.type == "autocomplete") {
1372
1196
  this.isOpen = false;
1373
1197
  }
1374
- if (this.isSelectedOther) {
1375
- this.filterOtherList(this.otherTagIds());
1376
- }
1377
1198
  else {
1378
1199
  this.returnFilterData = {};
1379
1200
  listState.filterData(this._id, null);
@@ -1413,9 +1234,9 @@ const BcmList = class {
1413
1234
  if (focusedList) {
1414
1235
  const list = document.getElementById(`bcm-list-${this._id}`);
1415
1236
  if (list) {
1416
- const items = list.querySelectorAll('.bcm-list__item.focused');
1237
+ const items = list.querySelectorAll(".bcm-list__item.focused");
1417
1238
  if (items.length > 0) {
1418
- const main = list.querySelector('main');
1239
+ const main = list.querySelector("main");
1419
1240
  const itemHeight = items[0].offsetHeight;
1420
1241
  const listHeight = main.offsetHeight;
1421
1242
  const itemTop = items[0].offsetTop;
@@ -1435,7 +1256,7 @@ const BcmList = class {
1435
1256
  if (Array.isArray(data)) {
1436
1257
  this.addChecked(data);
1437
1258
  }
1438
- if (typeof data === 'string' || typeof data === 'number') {
1259
+ if (typeof data === "string" || typeof data === "number") {
1439
1260
  this.selectedItem(data);
1440
1261
  }
1441
1262
  }
@@ -1478,10 +1299,9 @@ const BcmList = class {
1478
1299
  async setClear(e) {
1479
1300
  listState.setClear(this._id);
1480
1301
  this.value = null;
1481
- this.inputText = '';
1302
+ this.inputText = "";
1482
1303
  this.isOpen = false;
1483
- this.selectAllItem.indeterminate = 'uncheck';
1484
- this.tagCalculator();
1304
+ this.selectAllItem.indeterminate = "uncheck";
1485
1305
  this.markForCheck();
1486
1306
  if (e) {
1487
1307
  e.stopPropagation();
@@ -1510,10 +1330,9 @@ const BcmList = class {
1510
1330
  listState.updateOptions(this._id, this);
1511
1331
  }
1512
1332
  handleIndeterminate(checkeds, total) {
1513
- 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 });
1514
1334
  }
1515
1335
  listenResize() {
1516
- this.tagCalculator();
1517
1336
  this.calculateLocation();
1518
1337
  this.markForCheck();
1519
1338
  }
@@ -1541,12 +1360,6 @@ const BcmList = class {
1541
1360
  searchInput.onBcmSelect();
1542
1361
  }
1543
1362
  }
1544
- otherTagIds() {
1545
- const otherTag = document.querySelector(`#bcm-list-input-tag-${this._id}-other-tag`);
1546
- if (otherTag) {
1547
- return otherTag.getAttribute('data-ids').split(',');
1548
- }
1549
- }
1550
1363
  async filterOtherList(ids) {
1551
1364
  const checklist = (await this.getCheckedList()).nestedResult;
1552
1365
  const filter = Generate.convertIdsToNestedData(ids, checklist);
@@ -1562,7 +1375,7 @@ const BcmList = class {
1562
1375
  this.onClearSearch();
1563
1376
  await listState.setValue({
1564
1377
  id: this._id,
1565
- 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), []),
1566
1379
  options: this,
1567
1380
  });
1568
1381
  const { totalRoots, totalItems } = listState.getValue(this._id);
@@ -1594,7 +1407,7 @@ const BcmList = class {
1594
1407
  }
1595
1408
  getItems() {
1596
1409
  if (this.isSelectedOther) {
1597
- return this.returnFilterData['checkedItems'];
1410
+ return this.returnFilterData["checkedItems"];
1598
1411
  }
1599
1412
  return snq(() => listState.getData(this._id), []);
1600
1413
  }
@@ -1606,17 +1419,17 @@ const BcmList = class {
1606
1419
  this.markForCheck();
1607
1420
  }
1608
1421
  focusItem(e) {
1609
- if (e.target.classList.contains('bcm-list__item')) {
1422
+ if (e.target.classList.contains("bcm-list__item")) {
1610
1423
  const item = e.target;
1611
1424
  const list = document.getElementById(`bcm-list-${this._id}`);
1612
1425
  if (list) {
1613
- const items = list.querySelectorAll('.bcm-list__item');
1426
+ const items = list.querySelectorAll(".bcm-list__item");
1614
1427
  if (items.length > 0) {
1615
- const selectedItem = list.querySelector('.bcm-list__item.focused');
1428
+ const selectedItem = list.querySelector(".bcm-list__item.focused");
1616
1429
  if (selectedItem) {
1617
- selectedItem.classList.remove('focused');
1430
+ selectedItem.classList.remove("focused");
1618
1431
  }
1619
- item.classList.add('focused');
1432
+ item.classList.add("focused");
1620
1433
  }
1621
1434
  }
1622
1435
  }
@@ -1628,14 +1441,14 @@ const BcmList = class {
1628
1441
  this.inputText = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || null;
1629
1442
  this.isOpen = false;
1630
1443
  this.markForCheck();
1631
- if (this.type == 'autocomplete' && this.value) {
1444
+ if (this.type == "autocomplete" && this.value) {
1632
1445
  // await delay(100)
1633
1446
  // this.resetCaption()
1634
1447
  const autocompleteInput = this.getAutoCompleteInput();
1635
1448
  if (autocompleteInput) {
1636
1449
  setTimeout(() => {
1637
1450
  var _a;
1638
- 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) || "");
1639
1452
  this.isOpen = false;
1640
1453
  }, 100);
1641
1454
  }
@@ -1644,7 +1457,7 @@ const BcmList = class {
1644
1457
  return Promise.resolve(this.value);
1645
1458
  }
1646
1459
  async checkedItem(itemId) {
1647
- const isCheckSelectAll = itemId === 'select-all';
1460
+ const isCheckSelectAll = itemId === "select-all";
1648
1461
  if (!isCheckSelectAll) {
1649
1462
  listState.checkedItem(this._id, itemId);
1650
1463
  }
@@ -1682,7 +1495,7 @@ const BcmList = class {
1682
1495
  }
1683
1496
  async calculateLocation() {
1684
1497
  var _a, _b;
1685
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1498
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1686
1499
  const list = document.getElementById(`bcm-list-${this._id}`);
1687
1500
  // list && (list.style.height = '256px') //sebebi neydi ki!
1688
1501
  var placement = this.placement;
@@ -1697,85 +1510,84 @@ const BcmList = class {
1697
1510
  if (this.linkedComponent) {
1698
1511
  const linked = document.getElementById(this.linkedComponent);
1699
1512
  if (linked) {
1700
- if (!linked['noCaption']) {
1701
- 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");
1702
1515
  if (captionArea) {
1703
1516
  captionAreaHeight = captionArea.offsetHeight || captionArea.clientHeight;
1704
1517
  }
1705
1518
  }
1706
- 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");
1707
1520
  if (labelArea) {
1708
1521
  labelAreaHeight = labelArea.offsetHeight || labelArea.clientHeight;
1709
1522
  }
1710
1523
  }
1711
1524
  }
1712
1525
  if (this.fullWidth) {
1713
- list.style.width = targetElement.offsetWidth + 'px';
1526
+ list.style.width = targetElement.offsetWidth + "px";
1714
1527
  }
1715
1528
  else {
1716
- list.style.width = this.width || 'auto';
1529
+ list.style.width = this.width || "auto";
1717
1530
  }
1718
- if (this.height.indexOf('%') > -1) {
1719
- 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";
1720
1533
  }
1721
1534
  else {
1722
1535
  list.style.height = this.height;
1723
1536
  }
1724
1537
  list.style.minHeight = this.minHeight;
1725
1538
  // const calculatedMaxHeight = window.innerHeight - pos[0] - 50;
1726
- const calculatedMaxHeight = placement.split('-')[0] == 'top' ? window.innerHeight - (window.innerHeight - pos[0]) - 50 : window.innerHeight - pos[0] - 50;
1727
- if (this.maxHeight.indexOf('%') > -1) {
1728
- 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";
1729
1542
  }
1730
1543
  else {
1731
- 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";
1732
1545
  }
1733
1546
  getPlacement(list, targetElement, placement, (place) => (placement = place));
1734
1547
  await delay(10);
1735
1548
  pos = setPosition(placement, targetElement);
1736
- 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";
1737
1550
  // list.style.left = pos[1] + 'px';
1738
- list.style.left = placement.split('-')[1] == 'end' ? pos[1] - list.offsetWidth + 'px' : pos[1] + 'px';
1739
- 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");
1740
1553
  this.calculatedViewport = true;
1741
1554
  }
1742
1555
  }
1743
1556
  }
1744
1557
  render() {
1745
1558
  const { checkboxes, treeview, label, size, disabled, readonly, required, hidden, fullWidth, searchable } = this.getOptions();
1746
- const hostClasses = classnames('bcm-list', `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === 'large' ? 'size-3' : 'size-2', {
1747
- 'error': this.captionType == Bcm$1.Status.error,
1748
- 'full-width': fullWidth,
1749
- '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,
1750
1563
  hidden,
1751
1564
  readonly,
1752
1565
  disabled,
1753
1566
  });
1754
- const bcmListContainer = classnames('bcm-list__container', this.linkedComponent ? 'bcm-list__type-linked-component' : `bcm-list__type-${this.type}`, {
1755
- 'is-open': this.isOpen && this.calculatedViewport,
1756
- 'error': this.captionType == Bcm$1.Status.error,
1757
- '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,
1758
1571
  hidden,
1759
1572
  readonly,
1760
1573
  disabled,
1761
1574
  });
1762
- const bcmListInput = classnames('bcm-list__input');
1763
- 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;
1764
1577
  return (h(Host, { class: hostClasses, tabindex: "0", style: {
1765
- '--width': fullWidth ? '100%' : this.width,
1766
- '--height': openedType ? '100%' : this.height,
1767
- '--max-height': openedType ? 'inherit' : this.maxHeight,
1768
- '--min-height': openedType ? 'inherit' : this.minHeight,
1769
- } }, 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", {
1770
1583
  disabled: disabled,
1771
- }) }, 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 })));
1772
1585
  }
1773
1586
  get el() { return getElement(this); }
1774
1587
  static get watchers() { return {
1775
1588
  "_id": ["watchId"],
1776
1589
  "value": ["handleValueChange"],
1777
1590
  "returnFilterData": ["watchReturnFilterData"],
1778
- "isSelectedOther": ["handleOtherSelected"],
1779
1591
  "isOpen": ["handleOpen"],
1780
1592
  "data": ["dataChanged"]
1781
1593
  }; }
@@ -1784,7 +1596,7 @@ __decorate([
1784
1596
  IsLoad()
1785
1597
  ], BcmList.prototype, "el", void 0);
1786
1598
  __decorate([
1787
- JsonParse('data', true)
1599
+ JsonParse("data", true)
1788
1600
  ], BcmList.prototype, "dataChanged", null);
1789
1601
  BcmList.style = listCss;
1790
1602