bromcom-ui 2.8.1-rc.1 → 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 (220) 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-70909443.entry.js → p-05852df3.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-02116d36.entry.js → p-1b1f82cf.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-63bff12e.entry.js → p-1c1f02a8.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-216c6fd5.entry.js → p-1d591e1e.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-1eabd5dc.js +10 -0
  8. package/dist/bromcom-ui/{p-b40bb51f.entry.js → p-23b6f1b6.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-a3109200.entry.js → p-25e6e25d.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-426b7889.entry.js → p-2c93afb8.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-a6b9ac13.entry.js → p-2d1124ca.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-495b54be.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-7a89e7ae.entry.js → p-538a13af.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-48e2d5e5.js → p-594fbc80.js} +1 -1
  17. package/dist/bromcom-ui/p-59efe1da.js +5 -0
  18. package/dist/bromcom-ui/{p-e0855669.entry.js → p-5bb7e3b7.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-ea763cf4.entry.js → p-5bf4d697.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-c3da137b.entry.js → p-5c718986.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-bda1709b.entry.js → p-5e72a278.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-57c71c1f.entry.js → p-63608aaa.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-67ff8aa3.entry.js → p-6b988756.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-18a5c6ab.entry.js → p-6db0f8dd.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-6eefda1d.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-7ad7c6d7.entry.js → p-6f5bd54d.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-4bbdd324.entry.js → p-702a285b.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-cab8c1e0.entry.js → p-70b210af.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-6755089b.js → p-75a2820f.js} +1 -1
  30. package/dist/bromcom-ui/{p-3f9d992a.entry.js → p-76182c8b.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-b2d87a12.entry.js → p-78527fcd.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-b9ba70c3.entry.js → p-7baef152.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-5098fca3.entry.js → p-8aa4fee3.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-940cbe01.js → p-8e7a489e.js} +1 -1
  35. package/dist/bromcom-ui/{p-e6afe8b6.entry.js → p-962fee18.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-bf523f14.entry.js → p-97e22a22.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-ffec0a2b.js → p-9bc739ac.js} +1 -1
  38. package/dist/bromcom-ui/{p-748cefe3.entry.js → p-9c2f39ab.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-3ee818a8.entry.js → p-9d00bf3c.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-81f1dd1f.js → p-aea6f62f.js} +1 -1
  41. package/dist/bromcom-ui/{p-6fc52a85.entry.js → p-af81e5fa.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-406785b9.entry.js → p-b1b64c8b.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-a58c6ceb.entry.js → p-b29766b2.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-5b2b1352.entry.js → p-b4b06540.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-95351a23.entry.js → p-b685ca73.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-481f4962.entry.js → p-b7919ac8.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-6d8f018f.entry.js → p-bae55354.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-6de2deb5.entry.js → p-bbd80e20.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-0ae7d5fb.entry.js → p-c0bb9cfc.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-ffdc6086.entry.js → p-c4e92744.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-1f0ce7fa.entry.js → p-c863ba72.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-c2210caa.entry.js → p-d019f179.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-e0991d3a.entry.js → p-d497bc00.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-a8c8c9cf.entry.js → p-d9838751.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-7af21a10.entry.js → p-dd4c1650.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-773d6818.js → p-e1119ff2.js} +1 -1
  57. package/dist/bromcom-ui/{p-677153b5.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-68868af9.entry.js → p-f1eefc73.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-44b18c6d.entry.js → p-f2699133.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-4b1cba4c.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 +140 -328
  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-493daefd.js → generate-5564014f.js} +1 -1
  113. package/dist/cjs/index-906fb4e5.js +540 -0
  114. package/dist/cjs/{input-template-96af0058.js → input-template-b8eb3568.js} +1 -1
  115. package/dist/cjs/{json-parse-decarator-b5b0b23d.js → json-parse-decarator-c9d01873.js} +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-051fe1ec.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-efee4ad7.js → stepper-states-47bcb1a4.js} +1 -1
  121. package/dist/cjs/{tooltip-helper-a8734616.js → tooltip-helper-4ca7648e.js} +3 -3
  122. package/dist/cjs/{validators-50fd1ad1.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/organism/states/bcm-list2.states.js +1 -1
  127. package/dist/collection/components/{molecules → third-parts}/colorful/colorful.css +1 -1
  128. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.css +138 -0
  129. package/dist/collection/components/third-parts/rc-overflow/rc-overflow.js +194 -0
  130. package/dist/components/bcm-alert.js +1 -1
  131. package/dist/components/bcm-checkbox-group.js +1 -1
  132. package/dist/components/bcm-list.js +154 -329
  133. package/dist/components/bcm-rc-overflow.d.ts +11 -0
  134. package/dist/components/bcm-rc-overflow.js +10 -0
  135. package/dist/components/button.js +1 -1
  136. package/dist/components/colorful.js +2 -531
  137. package/dist/components/generate.js +1 -1
  138. package/dist/components/index.d.ts +2 -1
  139. package/dist/components/index.js +1 -0
  140. package/dist/components/index3.js +523 -177
  141. package/dist/components/index4.js +191 -0
  142. package/dist/components/rc-overflow.js +2238 -0
  143. package/dist/components/search.js +1 -1
  144. package/dist/components/step.js +1 -1
  145. package/dist/esm/bcm-accordion.entry.js +1 -1
  146. package/dist/esm/bcm-alert.entry.js +1 -1
  147. package/dist/esm/bcm-attendance.entry.js +1 -1
  148. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  149. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  150. package/dist/esm/bcm-button-group.entry.js +1 -1
  151. package/dist/esm/bcm-button_7.entry.js +4 -4
  152. package/dist/esm/bcm-card.entry.js +1 -1
  153. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  154. package/dist/esm/bcm-chip.entry.js +1 -1
  155. package/dist/esm/bcm-collapse.entry.js +1 -1
  156. package/dist/esm/bcm-color-input.entry.js +3 -3
  157. package/dist/esm/bcm-colorful_2.entry.js +5 -534
  158. package/dist/esm/bcm-date-picker.entry.js +1 -1
  159. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  160. package/dist/esm/bcm-default.entry.js +1 -1
  161. package/dist/esm/bcm-drawer.entry.js +3 -3
  162. package/dist/esm/bcm-dropdown.entry.js +2 -2
  163. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  164. package/dist/esm/bcm-form-2.entry.js +1 -1
  165. package/dist/esm/bcm-input-custom.entry.js +1 -1
  166. package/dist/esm/bcm-input.entry.js +4 -4
  167. package/dist/esm/bcm-item.entry.js +1 -1
  168. package/dist/esm/bcm-items.entry.js +1 -1
  169. package/dist/esm/bcm-list.entry.js +140 -328
  170. package/dist/esm/bcm-menu.entry.js +4 -4
  171. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  172. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  173. package/dist/esm/bcm-modal-2.entry.js +3 -3
  174. package/dist/esm/bcm-modal.entry.js +1 -1
  175. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  176. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  177. package/dist/esm/bcm-popover.entry.js +3 -3
  178. package/dist/esm/bcm-progress.entry.js +1 -1
  179. package/dist/esm/bcm-radio-group.entry.js +3 -3
  180. package/dist/esm/bcm-radio.entry.js +3 -3
  181. package/dist/esm/bcm-range.entry.js +1 -1
  182. package/dist/esm/bcm-rc-overflow_2.entry.js +2438 -0
  183. package/dist/esm/bcm-skeleton.entry.js +1 -1
  184. package/dist/esm/bcm-step.entry.js +2 -2
  185. package/dist/esm/bcm-stepper.entry.js +4 -4
  186. package/dist/esm/bcm-switch.entry.js +1 -1
  187. package/dist/esm/bcm-tab-group.entry.js +3 -3
  188. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  189. package/dist/esm/bcm-tab-item.entry.js +3 -3
  190. package/dist/esm/bcm-tag.entry.js +2 -2
  191. package/dist/esm/bcm-textarea.entry.js +2 -2
  192. package/dist/esm/bcm-time-picker.entry.js +1 -1
  193. package/dist/esm/bcm-toast.entry.js +1 -1
  194. package/dist/esm/bromcom-ui.js +1 -1
  195. package/dist/esm/{generate-de5e04cf.js → generate-5684c743.js} +1 -1
  196. package/dist/esm/index-6310a048.js +537 -0
  197. package/dist/esm/{input-template-c5338e25.js → input-template-846cd4f3.js} +1 -1
  198. package/dist/esm/{json-parse-decarator-a417723b.js → json-parse-decarator-5cdef266.js} +1 -1
  199. package/dist/esm/loader.js +1 -1
  200. package/dist/esm/{number-helper-8de373ee.js → number-helper-3c971b4e.js} +1 -1
  201. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  202. package/dist/esm/old-bcm-popover.entry.js +1 -1
  203. package/dist/esm/{stepper-states-64ffef36.js → stepper-states-2f1dd0bd.js} +1 -1
  204. package/dist/esm/{tooltip-helper-096296d0.js → tooltip-helper-86b9b16e.js} +3 -3
  205. package/dist/esm/{validators-c8be2c83.js → validators-d6dd6432.js} +1 -1
  206. package/dist/types/components/organism/list/list.d.ts +9 -5
  207. package/dist/types/components/third-parts/rc-overflow/rc-overflow.d.ts +17 -0
  208. package/dist/types/components.d.ts +26 -0
  209. package/package.json +2 -1
  210. package/dist/bromcom-ui/p-2677dc60.entry.js +0 -10
  211. package/dist/bromcom-ui/p-6a842eb1.js +0 -5
  212. package/dist/bromcom-ui/p-a8b7d3cf.entry.js +0 -5
  213. package/dist/bromcom-ui/p-c0e58db2.entry.js +0 -5
  214. package/dist/bromcom-ui/p-efee3d33.entry.js +0 -5
  215. package/dist/cjs/bcm-search.cjs.entry.js +0 -245
  216. package/dist/collection/components/organism/list/list-tag-control.js +0 -173
  217. package/dist/esm/bcm-search.entry.js +0 -241
  218. package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
  219. /package/dist/collection/components/{molecules → third-parts}/colorful/colorful.js +0 -0
  220. /package/dist/types/components/{molecules → third-parts}/colorful/colorful.d.ts +0 -0
@@ -8,13 +8,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-ddfd6d8f.js');
10
10
  const isLoadDecorator = require('./is-load-decorator-137dded1.js');
11
- const jsonParseDecarator = require('./json-parse-decarator-b5b0b23d.js');
11
+ const jsonParseDecarator = require('./json-parse-decarator-c9d01873.js');
12
12
  require('./color-helper-d6d2028b.js');
13
13
  require('./datetime-helper-eaf4fadb.js');
14
- const generate = require('./generate-493daefd.js');
15
- const numberHelper = require('./number-helper-051fe1ec.js');
14
+ const generate = require('./generate-5564014f.js');
15
+ const numberHelper = require('./number-helper-57fc05a9.js');
16
16
  const stringHelper = require('./string-helper-45cffee0.js');
17
- const validators = require('./validators-50fd1ad1.js');
17
+ const validators = require('./validators-f1b75654.js');
18
18
  require('./element-dragger-a8562f82.js');
19
19
  const popoverPlacement = require('./popover-placement-3c8f3a72.js');
20
20
  const utils = require('./utils-fc077139.js');
@@ -25,12 +25,10 @@ require('./types-cc4adee7.js');
25
25
  const labelTemplate = require('./label-template-cc69bc21.js');
26
26
  require('./types-7523fd99.js');
27
27
  const index$2 = require('./index-4506fcd7.js');
28
- const tooltipHelper = require('./tooltip-helper-a8734616.js');
29
28
  require('./colors-56282b00.js');
30
29
  require('./colors-e1d142ad.js');
31
30
  require('./_commonjsHelpers-bd20f4c0.js');
32
31
  require('./slot-template-3e59d7d8.js');
33
- require('./floating-ui-74eb26d6.js');
34
32
 
35
33
  const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
36
34
  // if ( indeterminate ) {
@@ -204,7 +202,7 @@ const setValue = val => {
204
202
  const recursive = (data, options, parentId, parentIndex = "0.") => {
205
203
  let recData = [];
206
204
  if (data && data.length > 0) {
207
- recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: Object.assign(Object.assign({}, item), { _i: `${parentIndex}${index}` }) }, item), options), { parentId: generate.snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
205
+ recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: item }, item), options), { parentId: generate.snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
208
206
  ? { items: generate.snq(() => recursive(item.items, options, item.id, `${parentIndex}${index}`), []) }
209
207
  : { items: [] })), { ct: `${parentIndex}${index}` })));
210
208
  }
@@ -846,173 +844,7 @@ class ListKeyControl extends KeyControl {
846
844
  keyUp() { }
847
845
  }
848
846
 
849
- class ListTagControl {
850
- constructor(containerId, values, listId, selectedOtherTag, clearable) {
851
- this.clearable = false;
852
- this.containerId = containerId;
853
- this.values = values;
854
- this.listId = listId;
855
- this.selectedOtherTag = selectedOtherTag;
856
- this.clearable = clearable;
857
- }
858
- getTooltip(id, text) {
859
- return new tooltipHelper.Tooltip({ message: text, targetId: id, placement: 'bottom' });
860
- }
861
- tagHtmlTemplate(tag, isOtherTag = false, otherTagIsSingle = false) {
862
- return `<span class="bcm-tag__content dismissable ${!otherTagIsSingle && isOtherTag && (this.selectedOtherTag ? 'checkable checked' : '')}">
863
- <span class="value">${tag.text}</span>
864
- ${otherTagIsSingle
865
- ? ''
866
- : `
867
- <span class="right close-button" bcm-list-tag-dismiss >
868
- <bcm-icon icon="fal fa-times"></bcm-icon>
869
- </span>`}
870
- </span>`;
871
- }
872
- getContainer() {
873
- return document.getElementById(this.containerId);
874
- }
875
- getContainerWidth() {
876
- let tagContainerWidth = generate.snq(() => document.getElementById(this.containerId).clientWidth, 0);
877
- tagContainerWidth = (this.clearable ? tagContainerWidth - 20 : tagContainerWidth) - 20;
878
- return [tagContainerWidth < 130 ? 130 : tagContainerWidth - 20, tagContainerWidth];
879
- }
880
- isClickDismiss(e) {
881
- const path = e.path || (e.composedPath && e.composedPath());
882
- const tag = path.find(element => element.attributes && element.attributes['bcm-list-tag-dismiss']);
883
- return !!tag;
884
- }
885
- onClickControl(e, id, isOtherTag = false) {
886
- const isDismiss = this.isClickDismiss(e);
887
- let tooltipId = '';
888
- if (isDismiss) {
889
- this.onClickDismiss(id);
890
- tooltipId = isOtherTag ? `bcm-list-input-tag-${this.listId}-other-tag` : `list-${this.listId}-${id}`;
891
- this.getTooltip(tooltipId, '').hide();
892
- }
893
- else {
894
- isOtherTag ? this.onClickOtherTag(id) : this.onClickTag(id);
895
- }
896
- }
897
- calculateTags() {
898
- const containerWidth = this.getContainerWidth();
899
- const virtualDom = this.getContainer();
900
- if (virtualDom) {
901
- if (this.values && this.values.length > 0) {
902
- if (containerWidth[0] > 0 && virtualDom) {
903
- virtualDom.innerHTML = '';
904
- this.values.slice(0, 50).map(value => {
905
- const tag = document.createElement('div');
906
- tag.classList.add('bcm-tag');
907
- tag.id = `list-${this.listId}-${value.id}`;
908
- // tag.title = value.tagTitle || value.text || '';
909
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').show();
910
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${value.id}`, value.tagTitle || value.text || '').hide();
911
- tag.dataset.id = value.id;
912
- tag.onclick = e => this.onClickControl(e, value.id);
913
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, value), { text: stringHelper.StringHelper.textLimitter(value.text, 10) }));
914
- virtualDom.appendChild(tag);
915
- });
916
- let tags = virtualDom.querySelectorAll('.bcm-tag');
917
- let otherTags = [];
918
- let visibleTags = [];
919
- const checkControl = () => {
920
- const virtualDomTags = virtualDom.querySelectorAll('.bcm-tag');
921
- if (visibleTags.length === 1 && (virtualDomTags === null || virtualDomTags === void 0 ? void 0 : virtualDomTags.length) === 1) {
922
- visibleTags[0].innerHTML = this.tagHtmlTemplate({ text: '+1' }, false, true);
923
- }
924
- };
925
- let tagsWidth = Array.from(tags).reduce((acc, tag) => {
926
- const tagClientWidth = tag.clientWidth > 50 ? tag.clientWidth : 50;
927
- if (tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0]) {
928
- acc += tagClientWidth + 10;
929
- visibleTags.push(tag);
930
- const checkFreeSpace = tagClientWidth > 0 && acc + tagClientWidth + 10 < containerWidth[0];
931
- !checkFreeSpace && containerWidth[1] < 70 && checkControl();
932
- }
933
- else {
934
- otherTags.push(tag);
935
- tag.remove();
936
- }
937
- return acc;
938
- }, 0);
939
- const otherTagElement = this.values.slice(visibleTags.length);
940
- const virtualDomLastElements = virtualDom.lastElementChild;
941
- const otherTagTextControl = args => {
942
- const { count, width } = args;
943
- if (count > 999)
944
- return '999+' + utils.pluralize('item', count);
945
- if (width >= 100)
946
- return `${count} ` + utils.pluralize('item', count) + ' selected';
947
- if (width < 100)
948
- return `+${count < 10 ? count : '9'}`;
949
- };
950
- if (otherTags && otherTags.length > 0 && virtualDomLastElements && virtualDomLastElements.id !== `bcm-list-input-tag-${this.listId}-other-tag`) {
951
- otherTags.push(virtualDomLastElements);
952
- if (otherTags.length > 0) {
953
- const otherCounter = otherTagElement.length + 1;
954
- const createOthertagElement = {
955
- id: `bcm-list-input-tag-${this.listId}-other-tag`,
956
- text: otherTagTextControl({ count: otherCounter, width: containerWidth[1] }),
957
- title: generate.snq(() => otherTags
958
- .map(tag => this.values.find(value => value.id == tag.dataset.id))
959
- .sort((a, b) => +a.ct - +b.ct)
960
- .slice(0, 15)
961
- .map(item => stringHelper.StringHelper.textLimitter(item.tagTitle || item.text, 40, true))
962
- .toString()
963
- .split(',')
964
- .join('\r\n') + (otherTags.length > 15 ? ('\r\n...') : ''), '...'),
965
- };
966
- virtualDomLastElements.remove();
967
- visibleTags = visibleTags.filter(tag => tag.id !== virtualDomLastElements.id);
968
- const hiddenTags = this.values.filter(value => !visibleTags.find(tag => tag.dataset.id == value.id)).map(value => value.id);
969
- const otherTag = document.createElement('div');
970
- const otherTagIds = hiddenTags.join(',');
971
- const otherTagIsSingle = visibleTags.length === 0;
972
- otherTag.classList.add('bcm-tag');
973
- !otherTagIsSingle && otherTag.classList.add('bcm-tag--other');
974
- otherTag.id = createOthertagElement.id;
975
- // otherTag.title = createOthertagElement.title || false;
976
- if (createOthertagElement.title) {
977
- otherTag.onmouseenter = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).show();
978
- otherTag.onmouseleave = () => this.getTooltip(createOthertagElement.id, createOthertagElement.title).hide();
979
- }
980
- otherTag.onclick = e => this.onClickControl(e, otherTagIds, otherTagIsSingle ? false : true);
981
- otherTag.innerHTML = this.tagHtmlTemplate(createOthertagElement, true, otherTagIsSingle);
982
- otherTag.dataset.ids = hiddenTags.join(',');
983
- virtualDom.appendChild(otherTag);
984
- }
985
- }
986
- const otherTag = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
987
- const otherTagWidth = otherTag ? (otherTag.clientWidth && otherTag.clientWidth < 50 ? 50 : otherTag.clientWidth) : 200;
988
- const tagsPerRow = Math.floor(containerWidth[0] - tagsWidth);
989
- if (tagsPerRow > otherTagWidth) {
990
- if (otherTag) {
991
- const findElement = this.values.find(value => value.id == otherTag.dataset.ids.split(',')[0]);
992
- const tag = document.createElement('div');
993
- tag.classList.add('bcm-tag');
994
- tag.id = `list-${this.listId}-${findElement.id}`;
995
- // tag.title = findElement?.title || '';
996
- tag.onmouseenter = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').show();
997
- tag.onmouseleave = () => this.getTooltip(`list-${this.listId}-${findElement.id}`, (findElement === null || findElement === void 0 ? void 0 : findElement.title) || '').hide();
998
- tag.dataset.id = findElement.id;
999
- tag.onclick = e => this.onClickControl(e, findElement === null || findElement === void 0 ? void 0 : findElement.id);
1000
- tag.innerHTML = this.tagHtmlTemplate(Object.assign(Object.assign({}, findElement), { text: stringHelper.StringHelper.textLimitter(findElement.text, 10) }));
1001
- const otherTagElement = document.getElementById(`bcm-list-input-tag-${this.listId}-other-tag`);
1002
- otherTagElement.remove();
1003
- virtualDom.appendChild(tag);
1004
- }
1005
- }
1006
- }
1007
- }
1008
- else {
1009
- virtualDom.innerHTML = '';
1010
- }
1011
- }
1012
- }
1013
- }
1014
-
1015
- 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}";
847
+ 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}";
1016
848
 
1017
849
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1018
850
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -1051,12 +883,12 @@ const BcmList = class {
1051
883
  this.required = false;
1052
884
  this.hidden = false;
1053
885
  this.fullWidth = false;
1054
- this.height = '256px';
1055
- this.maxHeight = '500px';
1056
- this.minHeight = '150px';
1057
- this.width = '256px';
886
+ this.height = "256px";
887
+ this.maxHeight = "500px";
888
+ this.minHeight = "150px";
889
+ this.width = "256px";
1058
890
  this.infoFooter = false;
1059
- this.variableText = 'item';
891
+ this.variableText = "item";
1060
892
  this.template = undefined;
1061
893
  this.allOpen = false;
1062
894
  this.keyControl = false;
@@ -1067,8 +899,8 @@ const BcmList = class {
1067
899
  this.calculatedViewport = false;
1068
900
  this.isSelectedOther = false;
1069
901
  this.isHaveOtherTag = false;
1070
- this.placeholder = 'Choose an option';
1071
- this.searchPlaceholder = 'Search';
902
+ this.placeholder = "Choose an option";
903
+ this.searchPlaceholder = "Search";
1072
904
  this.searchIsOnlyChilds = false;
1073
905
  this.minSearchLength = 2;
1074
906
  this.clearable = false;
@@ -1077,7 +909,7 @@ const BcmList = class {
1077
909
  this.captionType = bcm.Bcm$1.Status.default;
1078
910
  this.captionError = undefined;
1079
911
  this.emptyText = undefined;
1080
- this.emptyIcon = 'fad fa-folder-open';
912
+ this.emptyIcon = "fad fa-folder-open";
1081
913
  this.captionCache = undefined;
1082
914
  this.captionTypeCache = undefined;
1083
915
  this.tick = {};
@@ -1090,26 +922,26 @@ const BcmList = class {
1090
922
  this.returnFilterData = {};
1091
923
  this.returnOtherData = {};
1092
924
  this.options = {
1093
- rootMargin: '30px',
925
+ rootMargin: "30px",
1094
926
  };
1095
927
  this.tagContainerWidth = 0;
1096
928
  this.selectAllItem = {
1097
- id: 'select-all',
1098
- text: 'Select All',
1099
- value: 'select-all',
929
+ id: "select-all",
930
+ text: "Select All",
931
+ value: "select-all",
1100
932
  checked: false,
1101
933
  disabled: false,
1102
- icon: '',
934
+ icon: "",
1103
935
  status: bcm.Bcm$1.Status.default,
1104
- indeterminate: 'uncheck',
936
+ indeterminate: "uncheck",
1105
937
  };
1106
- this.placement = bcm.Bcm$1.Placement['bottom-start'];
938
+ this.placement = bcm.Bcm$1.Placement["bottom-start"];
1107
939
  this.data = [];
1108
940
  }
1109
941
  connectedCallback() {
1110
- if (this.height != '256px') {
1111
- if (this.height.indexOf('px') > -1) {
1112
- this.limit = Math.floor(+this.height.replace('px', '') / 10);
942
+ if (this.height != "256px") {
943
+ if (this.height.indexOf("px") > -1) {
944
+ this.limit = Math.floor(+this.height.replace("px", "") / 10);
1113
945
  }
1114
946
  else {
1115
947
  this.limit = Math.floor(+(window.innerHeight / 10));
@@ -1128,69 +960,39 @@ const BcmList = class {
1128
960
  this.updateOptions();
1129
961
  }
1130
962
  }
963
+ get containerWidth() {
964
+ var _a, _b;
965
+ return (_b = (_a = this.el) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width;
966
+ }
967
+ get tagCount() {
968
+ return this.containerWidth > 0 ? Math.floor(+(this.containerWidth - 100) / 85) : 0;
969
+ }
970
+ get tagData() {
971
+ return generate.snq(() => {
972
+ var _a;
973
+ return (_a = this.value) === null || _a === void 0 ? void 0 : _a.map(item => ({
974
+ value: item.id,
975
+ label: stringHelper.StringHelper.textLimitter(item.text, 7),
976
+ text: item.tooltipMessage || item.tagTitle || item.text,
977
+ }));
978
+ }, []);
979
+ }
1131
980
  async componentDidLoad() {
1132
981
  await this.initState();
1133
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
982
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1134
983
  const list = this.el.querySelector(`#bcm-list-${this._id}`);
1135
984
  if (list) {
1136
985
  document.body.appendChild(list);
1137
986
  }
1138
987
  }
1139
988
  }
1140
- tagCalculator() {
1141
- if (this.checkboxes && (this.type == 'select' || this.type == 'autocomplete')) {
1142
- const tagCalculator = new ListTagControl(`bcm-list-input-tag-container-${this._id}`, this.value, this._id, this.isSelectedOther, this.clearable);
1143
- tagCalculator.calculateTags();
1144
- const arrayIds = id => (typeof id == 'string' ? id.split(',') : [id]);
1145
- const clearAutocomplete = () => {
1146
- if (this.type == 'autocomplete') {
1147
- const autocompleteInput = this.getAutoCompleteInput();
1148
- if (autocompleteInput) {
1149
- autocompleteInput.handleClear(false);
1150
- }
1151
- }
1152
- };
1153
- tagCalculator.onClickOtherTag = async (id) => {
1154
- if (!this.disabled) {
1155
- clearAutocomplete();
1156
- if (this.isSelectedOther) {
1157
- await this.unSelectOther();
1158
- }
1159
- else {
1160
- await this.onClearSearch();
1161
- this.isSelectedOther = true;
1162
- this.filterOtherList(arrayIds(id));
1163
- this.isOpen = true;
1164
- }
1165
- this.onSelectSearch();
1166
- }
1167
- };
1168
- tagCalculator.onClickTag = _ => {
1169
- // console.log(id);
1170
- clearAutocomplete();
1171
- this.onSelectSearch();
1172
- this.unSelectOther();
1173
- };
1174
- tagCalculator.onClickDismiss = async (id) => {
1175
- var _a;
1176
- if (!this.disabled) {
1177
- if (this.isSelectedOther) {
1178
- await this.unSelectOther();
1179
- }
1180
- arrayIds(id).length > 1 ? listState.removeOtherTags(this._id, arrayIds(id)) : listState.checkedItem(this._id, arrayIds(id)[0]);
1181
- this.value = (await this.getCheckedList()).checkedList;
1182
- this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1183
- }
1184
- };
1185
- }
1186
- }
1187
989
  disconnectedCallback() {
1188
990
  this.isOpen = false;
1189
991
  if (this.stopDeepClean)
1190
992
  return;
1191
993
  listState.removeState(this._id);
1192
- this.el.innerHTML = '';
1193
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
994
+ this.el.innerHTML = "";
995
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1194
996
  const list = document.querySelectorAll(`#bcm-list-${this._id}`);
1195
997
  if (list === null || list === void 0 ? void 0 : list.length) {
1196
998
  list.forEach(item => item.remove());
@@ -1219,7 +1021,6 @@ const BcmList = class {
1219
1021
  this.change.emit(this.value);
1220
1022
  }
1221
1023
  }
1222
- this.tagCalculator();
1223
1024
  }
1224
1025
  watchReturnFilterData(newVal) {
1225
1026
  var _a;
@@ -1231,18 +1032,6 @@ const BcmList = class {
1231
1032
  this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1232
1033
  }
1233
1034
  }
1234
- handleOtherSelected(newValue) {
1235
- var _a;
1236
- const tagContent = (_a = document.getElementById(`bcm-list-input-tag-${this._id}-other-tag`)) === null || _a === void 0 ? void 0 : _a.querySelector('.bcm-tag__content');
1237
- if (tagContent) {
1238
- if (newValue === true) {
1239
- tagContent.classList.add('checkable', 'checked');
1240
- }
1241
- else {
1242
- tagContent.classList.remove('checkable', 'checked');
1243
- }
1244
- }
1245
- }
1246
1035
  async handleOpen() {
1247
1036
  if (this.isOpen) {
1248
1037
  this.open.emit();
@@ -1259,7 +1048,7 @@ const BcmList = class {
1259
1048
  listScrollToTop() {
1260
1049
  const list = document.querySelector(`#bcm-list-${this._id}`);
1261
1050
  if (list) {
1262
- list.querySelector('.scrolling').scrollTop = 0;
1051
+ list.querySelector(".scrolling").scrollTop = 0;
1263
1052
  }
1264
1053
  }
1265
1054
  async dataChanged(newValue, oldValue) {
@@ -1293,7 +1082,7 @@ const BcmList = class {
1293
1082
  const list = document.querySelector(`#bcm-list-${this._id}`);
1294
1083
  const isClickInside = list && generate.Generate.findEventPath(event, list);
1295
1084
  if (isClickInside) {
1296
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1085
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1297
1086
  this.calculateLocation();
1298
1087
  }
1299
1088
  }
@@ -1302,6 +1091,41 @@ const BcmList = class {
1302
1091
  }
1303
1092
  }
1304
1093
  }
1094
+ clearAutocomplete() {
1095
+ if (this.type == "autocomplete") {
1096
+ const autocompleteInput = this.getAutoCompleteInput();
1097
+ if (autocompleteInput) {
1098
+ autocompleteInput.handleClear(false);
1099
+ }
1100
+ }
1101
+ }
1102
+ async handleSelectOtherTag(e) {
1103
+ if (this.disabled)
1104
+ return;
1105
+ const { id, checked } = e.detail;
1106
+ this.isSelectedOther = checked;
1107
+ if (id) {
1108
+ checked ? this.filterOtherList(id) : this.unSelectOther();
1109
+ this.isOpen = true;
1110
+ }
1111
+ }
1112
+ async handleDeleteTag(e) {
1113
+ var _a;
1114
+ if (this.disabled)
1115
+ return;
1116
+ const { id } = e.detail;
1117
+ this.isSelectedOther && this.unSelectOther();
1118
+ Array.isArray(id) ? listState.removeOtherTags(this._id, id) : listState.checkedItem(this._id, id);
1119
+ this.value = (await this.getCheckedList()).checkedList;
1120
+ this.handleIndeterminate(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0, this.totalData);
1121
+ }
1122
+ async handleSelectTag(_) {
1123
+ if (this.disabled)
1124
+ return;
1125
+ this.clearAutocomplete();
1126
+ this.onSelectSearch();
1127
+ this.unSelectOther();
1128
+ }
1305
1129
  handleClick(event) {
1306
1130
  var _a;
1307
1131
  if (this.disabled)
@@ -1320,23 +1144,23 @@ const BcmList = class {
1320
1144
  }, 300);
1321
1145
  }
1322
1146
  if (!isClickInside) {
1323
- if (this.type == 'autocomplete') {
1147
+ if (this.type == "autocomplete") {
1324
1148
  const autocompleteInput = this.getAutoCompleteInput();
1325
1149
  if (autocompleteInput) {
1326
1150
  if (this.checkboxes) {
1327
- autocompleteInput.setValue('');
1151
+ autocompleteInput.setValue("");
1328
1152
  }
1329
1153
  else {
1330
- autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || '');
1154
+ autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || "");
1331
1155
  }
1332
1156
  }
1333
1157
  }
1334
1158
  }
1335
- const clickToTag = generate.Generate.findEventPathWithKey(event, 'className', ['bcm-tag']);
1336
- const clickToOtherTag = generate.Generate.findEventPathWithKey(event, 'className', ['bcm-tag bcm-tag--other']);
1337
- const clickToSelect = generate.Generate.findEventPathWithKey(event, 'id', [`bcm-list-input-${this._id}`, `bcm-list-label-${this._id}`]);
1338
- const clickToTagDismiss = generate.Generate.findEventPathWithKey(event, 'className', ['right close-button']);
1339
- if (clickToSelect && !clickToTagDismiss && this.type != 'autocomplete') {
1159
+ const clickToTag = generate.Generate.findEventPathWithKey(event, "className", ["bcm-tag"]);
1160
+ const clickToOtherTag = generate.Generate.findEventPathWithKey(event, "className", ["bcm-tag bcm-tag--other"]);
1161
+ const clickToSelect = generate.Generate.findEventPathWithKey(event, "id", [`bcm-list-input-${this._id}`, `bcm-list-label-${this._id}`]);
1162
+ const clickToTagDismiss = generate.Generate.findEventPathWithKey(event, "className", ["right close-button"]);
1163
+ if (clickToSelect && !clickToTagDismiss && this.type != "autocomplete") {
1340
1164
  this.isOpen = clickToTag || clickToOtherTag ? true : !this.isOpen;
1341
1165
  }
1342
1166
  if (list) {
@@ -1350,7 +1174,7 @@ const BcmList = class {
1350
1174
  }
1351
1175
  bcmOnSearchClear(event) {
1352
1176
  var _a, _b;
1353
- if (this.type == 'autocomplete') {
1177
+ if (this.type == "autocomplete") {
1354
1178
  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`) {
1355
1179
  if (event.detail) {
1356
1180
  this.setClear();
@@ -1368,16 +1192,13 @@ const BcmList = class {
1368
1192
  if (this.searchFound > 0 && this.highlight) {
1369
1193
  this.highlightText = (_f = event.detail) === null || _f === void 0 ? void 0 : _f.value;
1370
1194
  }
1371
- if (this.type == 'autocomplete') {
1195
+ if (this.type == "autocomplete") {
1372
1196
  this.isOpen = true;
1373
1197
  }
1374
1198
  if (!event.detail.result) {
1375
- if (this.type == 'autocomplete') {
1199
+ if (this.type == "autocomplete") {
1376
1200
  this.isOpen = false;
1377
1201
  }
1378
- if (this.isSelectedOther) {
1379
- this.filterOtherList(this.otherTagIds());
1380
- }
1381
1202
  else {
1382
1203
  this.returnFilterData = {};
1383
1204
  listState.filterData(this._id, null);
@@ -1417,9 +1238,9 @@ const BcmList = class {
1417
1238
  if (focusedList) {
1418
1239
  const list = document.getElementById(`bcm-list-${this._id}`);
1419
1240
  if (list) {
1420
- const items = list.querySelectorAll('.bcm-list__item.focused');
1241
+ const items = list.querySelectorAll(".bcm-list__item.focused");
1421
1242
  if (items.length > 0) {
1422
- const main = list.querySelector('main');
1243
+ const main = list.querySelector("main");
1423
1244
  const itemHeight = items[0].offsetHeight;
1424
1245
  const listHeight = main.offsetHeight;
1425
1246
  const itemTop = items[0].offsetTop;
@@ -1439,7 +1260,7 @@ const BcmList = class {
1439
1260
  if (Array.isArray(data)) {
1440
1261
  this.addChecked(data);
1441
1262
  }
1442
- if (typeof data === 'string' || typeof data === 'number') {
1263
+ if (typeof data === "string" || typeof data === "number") {
1443
1264
  this.selectedItem(data);
1444
1265
  }
1445
1266
  }
@@ -1482,10 +1303,9 @@ const BcmList = class {
1482
1303
  async setClear(e) {
1483
1304
  listState.setClear(this._id);
1484
1305
  this.value = null;
1485
- this.inputText = '';
1306
+ this.inputText = "";
1486
1307
  this.isOpen = false;
1487
- this.selectAllItem.indeterminate = 'uncheck';
1488
- this.tagCalculator();
1308
+ this.selectAllItem.indeterminate = "uncheck";
1489
1309
  this.markForCheck();
1490
1310
  if (e) {
1491
1311
  e.stopPropagation();
@@ -1514,10 +1334,9 @@ const BcmList = class {
1514
1334
  listState.updateOptions(this._id, this);
1515
1335
  }
1516
1336
  handleIndeterminate(checkeds, total) {
1517
- 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 });
1337
+ 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 });
1518
1338
  }
1519
1339
  listenResize() {
1520
- this.tagCalculator();
1521
1340
  this.calculateLocation();
1522
1341
  this.markForCheck();
1523
1342
  }
@@ -1545,12 +1364,6 @@ const BcmList = class {
1545
1364
  searchInput.onBcmSelect();
1546
1365
  }
1547
1366
  }
1548
- otherTagIds() {
1549
- const otherTag = document.querySelector(`#bcm-list-input-tag-${this._id}-other-tag`);
1550
- if (otherTag) {
1551
- return otherTag.getAttribute('data-ids').split(',');
1552
- }
1553
- }
1554
1367
  async filterOtherList(ids) {
1555
1368
  const checklist = (await this.getCheckedList()).nestedResult;
1556
1369
  const filter = generate.Generate.convertIdsToNestedData(ids, checklist);
@@ -1566,7 +1379,7 @@ const BcmList = class {
1566
1379
  this.onClearSearch();
1567
1380
  await listState.setValue({
1568
1381
  id: this._id,
1569
- dataSource: this.data && generate.snq(() => (typeof this.data == 'string' ? JSON.parse(this.data) : this.data), []),
1382
+ dataSource: this.data && generate.snq(() => (typeof this.data == "string" ? JSON.parse(this.data) : this.data), []),
1570
1383
  options: this,
1571
1384
  });
1572
1385
  const { totalRoots, totalItems } = listState.getValue(this._id);
@@ -1598,7 +1411,7 @@ const BcmList = class {
1598
1411
  }
1599
1412
  getItems() {
1600
1413
  if (this.isSelectedOther) {
1601
- return this.returnFilterData['checkedItems'];
1414
+ return this.returnFilterData["checkedItems"];
1602
1415
  }
1603
1416
  return generate.snq(() => listState.getData(this._id), []);
1604
1417
  }
@@ -1610,17 +1423,17 @@ const BcmList = class {
1610
1423
  this.markForCheck();
1611
1424
  }
1612
1425
  focusItem(e) {
1613
- if (e.target.classList.contains('bcm-list__item')) {
1426
+ if (e.target.classList.contains("bcm-list__item")) {
1614
1427
  const item = e.target;
1615
1428
  const list = document.getElementById(`bcm-list-${this._id}`);
1616
1429
  if (list) {
1617
- const items = list.querySelectorAll('.bcm-list__item');
1430
+ const items = list.querySelectorAll(".bcm-list__item");
1618
1431
  if (items.length > 0) {
1619
- const selectedItem = list.querySelector('.bcm-list__item.focused');
1432
+ const selectedItem = list.querySelector(".bcm-list__item.focused");
1620
1433
  if (selectedItem) {
1621
- selectedItem.classList.remove('focused');
1434
+ selectedItem.classList.remove("focused");
1622
1435
  }
1623
- item.classList.add('focused');
1436
+ item.classList.add("focused");
1624
1437
  }
1625
1438
  }
1626
1439
  }
@@ -1632,14 +1445,14 @@ const BcmList = class {
1632
1445
  this.inputText = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || null;
1633
1446
  this.isOpen = false;
1634
1447
  this.markForCheck();
1635
- if (this.type == 'autocomplete' && this.value) {
1448
+ if (this.type == "autocomplete" && this.value) {
1636
1449
  // await delay(100)
1637
1450
  // this.resetCaption()
1638
1451
  const autocompleteInput = this.getAutoCompleteInput();
1639
1452
  if (autocompleteInput) {
1640
1453
  setTimeout(() => {
1641
1454
  var _a;
1642
- autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || '');
1455
+ autocompleteInput.setValue(((_a = this.value) === null || _a === void 0 ? void 0 : _a.text) || "");
1643
1456
  this.isOpen = false;
1644
1457
  }, 100);
1645
1458
  }
@@ -1648,7 +1461,7 @@ const BcmList = class {
1648
1461
  return Promise.resolve(this.value);
1649
1462
  }
1650
1463
  async checkedItem(itemId) {
1651
- const isCheckSelectAll = itemId === 'select-all';
1464
+ const isCheckSelectAll = itemId === "select-all";
1652
1465
  if (!isCheckSelectAll) {
1653
1466
  listState.checkedItem(this._id, itemId);
1654
1467
  }
@@ -1686,7 +1499,7 @@ const BcmList = class {
1686
1499
  }
1687
1500
  async calculateLocation() {
1688
1501
  var _a, _b;
1689
- if (this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent) {
1502
+ if (this.type == "select" || this.type == "autocomplete" || this.linkedComponent) {
1690
1503
  const list = document.getElementById(`bcm-list-${this._id}`);
1691
1504
  // list && (list.style.height = '256px') //sebebi neydi ki!
1692
1505
  var placement = this.placement;
@@ -1701,85 +1514,84 @@ const BcmList = class {
1701
1514
  if (this.linkedComponent) {
1702
1515
  const linked = document.getElementById(this.linkedComponent);
1703
1516
  if (linked) {
1704
- if (!linked['noCaption']) {
1705
- const captionArea = ((_a = linked.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.bcm-caption-area')) || linked.querySelector('.bcm-caption-area');
1517
+ if (!linked["noCaption"]) {
1518
+ const captionArea = ((_a = linked.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".bcm-caption-area")) || linked.querySelector(".bcm-caption-area");
1706
1519
  if (captionArea) {
1707
1520
  captionAreaHeight = captionArea.offsetHeight || captionArea.clientHeight;
1708
1521
  }
1709
1522
  }
1710
- const labelArea = ((_b = linked.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.bcm-label')) || linked.querySelector('.bcm-label');
1523
+ const labelArea = ((_b = linked.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(".bcm-label")) || linked.querySelector(".bcm-label");
1711
1524
  if (labelArea) {
1712
1525
  labelAreaHeight = labelArea.offsetHeight || labelArea.clientHeight;
1713
1526
  }
1714
1527
  }
1715
1528
  }
1716
1529
  if (this.fullWidth) {
1717
- list.style.width = targetElement.offsetWidth + 'px';
1530
+ list.style.width = targetElement.offsetWidth + "px";
1718
1531
  }
1719
1532
  else {
1720
- list.style.width = this.width || 'auto';
1533
+ list.style.width = this.width || "auto";
1721
1534
  }
1722
- if (this.height.indexOf('%') > -1) {
1723
- list.style.height = numberHelper.NumberHelper.toNumber(this.height) * 0.01 * window.innerHeight - pos[0] - 50 + 'px';
1535
+ if (this.height.indexOf("%") > -1) {
1536
+ list.style.height = numberHelper.NumberHelper.toNumber(this.height) * 0.01 * window.innerHeight - pos[0] - 50 + "px";
1724
1537
  }
1725
1538
  else {
1726
1539
  list.style.height = this.height;
1727
1540
  }
1728
1541
  list.style.minHeight = this.minHeight;
1729
1542
  // const calculatedMaxHeight = window.innerHeight - pos[0] - 50;
1730
- const calculatedMaxHeight = placement.split('-')[0] == 'top' ? window.innerHeight - (window.innerHeight - pos[0]) - 50 : window.innerHeight - pos[0] - 50;
1731
- if (this.maxHeight.indexOf('%') > -1) {
1732
- list.style.maxHeight = numberHelper.NumberHelper.toNumber(this.maxHeight) * 0.01 * calculatedMaxHeight + 'px';
1543
+ const calculatedMaxHeight = placement.split("-")[0] == "top" ? window.innerHeight - (window.innerHeight - pos[0]) - 50 : window.innerHeight - pos[0] - 50;
1544
+ if (this.maxHeight.indexOf("%") > -1) {
1545
+ list.style.maxHeight = numberHelper.NumberHelper.toNumber(this.maxHeight) * 0.01 * calculatedMaxHeight + "px";
1733
1546
  }
1734
1547
  else {
1735
- list.style.maxHeight = numberHelper.NumberHelper.toNumber(this.maxHeight) < calculatedMaxHeight ? this.maxHeight : calculatedMaxHeight + 'px';
1548
+ list.style.maxHeight = numberHelper.NumberHelper.toNumber(this.maxHeight) < calculatedMaxHeight ? this.maxHeight : calculatedMaxHeight + "px";
1736
1549
  }
1737
1550
  popoverPlacement.getPlacement(list, targetElement, placement, (place) => (placement = place));
1738
1551
  await utils.delay(10);
1739
1552
  pos = popoverPlacement.setPosition(placement, targetElement);
1740
- list.style.top = (placement.split('-')[0] == 'top' ? pos[0] - list.offsetHeight + labelAreaHeight : pos[0] - captionAreaHeight) + 'px';
1553
+ list.style.top = (placement.split("-")[0] == "top" ? pos[0] - list.offsetHeight + labelAreaHeight : pos[0] - captionAreaHeight) + "px";
1741
1554
  // list.style.left = pos[1] + 'px';
1742
- list.style.left = placement.split('-')[1] == 'end' ? pos[1] - list.offsetWidth + 'px' : pos[1] + 'px';
1743
- list.classList.toggle('bcm-list--top', placement.split('-')[0] == 'top');
1555
+ list.style.left = placement.split("-")[1] == "end" ? pos[1] - list.offsetWidth + "px" : pos[1] + "px";
1556
+ list.classList.toggle("bcm-list--top", placement.split("-")[0] == "top");
1744
1557
  this.calculatedViewport = true;
1745
1558
  }
1746
1559
  }
1747
1560
  }
1748
1561
  render() {
1749
1562
  const { checkboxes, treeview, label, size, disabled, readonly, required, hidden, fullWidth, searchable } = this.getOptions();
1750
- const hostClasses = index.classnames('bcm-list', `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === 'large' ? 'size-3' : 'size-2', {
1751
- 'error': this.captionType == bcm.Bcm$1.Status.error,
1752
- 'full-width': fullWidth,
1753
- 'bcm-list__linked': this.linkedComponent,
1563
+ const hostClasses = index.classnames("bcm-list", `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === "large" ? "size-3" : "size-2", {
1564
+ "error": this.captionType == bcm.Bcm$1.Status.error,
1565
+ "full-width": fullWidth,
1566
+ "bcm-list__linked": this.linkedComponent,
1754
1567
  hidden,
1755
1568
  readonly,
1756
1569
  disabled,
1757
1570
  });
1758
- const bcmListContainer = index.classnames('bcm-list__container', this.linkedComponent ? 'bcm-list__type-linked-component' : `bcm-list__type-${this.type}`, {
1759
- 'is-open': this.isOpen && this.calculatedViewport,
1760
- 'error': this.captionType == bcm.Bcm$1.Status.error,
1761
- 'full-width': fullWidth,
1571
+ const bcmListContainer = index.classnames("bcm-list__container", this.linkedComponent ? "bcm-list__type-linked-component" : `bcm-list__type-${this.type}`, {
1572
+ "is-open": this.isOpen && this.calculatedViewport,
1573
+ "error": this.captionType == bcm.Bcm$1.Status.error,
1574
+ "full-width": fullWidth,
1762
1575
  hidden,
1763
1576
  readonly,
1764
1577
  disabled,
1765
1578
  });
1766
- const bcmListInput = index.classnames('bcm-list__input');
1767
- const openedType = this.type == 'select' || this.type == 'autocomplete' || this.linkedComponent;
1579
+ const bcmListInput = index.classnames("bcm-list__input");
1580
+ const openedType = this.type == "select" || this.type == "autocomplete" || this.linkedComponent;
1768
1581
  return (index$1.h(index$1.Host, { class: hostClasses, tabindex: "0", style: {
1769
- '--width': fullWidth ? '100%' : this.width,
1770
- '--height': openedType ? '100%' : this.height,
1771
- '--max-height': openedType ? 'inherit' : this.maxHeight,
1772
- '--min-height': openedType ? 'inherit' : this.minHeight,
1773
- } }, index$1.h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (index$1.h("div", null, index$1.h(labelTemplate.LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == 'select' && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, index$1.h("span", { class: index.classnames('bcm-list__input-container', { 'type-single': !checkboxes, 'value-empty': !this.value }) }, this.checkboxes && index$1.h("span", { id: `bcm-list-input-tag-container-${this._id}`, class: "bcm-list__input-tag-container" }), this.checkboxes && !this.value && index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder), !this.checkboxes && (this.value ? this.inputText : index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), index$1.h("span", { class: index.classnames('bcm-list__input-buttons', {
1582
+ "--width": fullWidth ? "100%" : this.width,
1583
+ "--height": openedType ? "100%" : this.height,
1584
+ "--max-height": openedType ? "inherit" : this.maxHeight,
1585
+ "--min-height": openedType ? "inherit" : this.minHeight,
1586
+ } }, index$1.h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (index$1.h("div", null, index$1.h(labelTemplate.LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, index$1.h("span", { class: index.classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (index$1.h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), index$1.h("span", { class: index.classnames("bcm-list__input-buttons", {
1774
1587
  disabled: disabled,
1775
- }) }, this.clearable && this.value && (index$1.h("div", { class: "bcm-list__input-buttons-button" }, index$1.h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), index$1.h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, index$1.h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: index.classnames(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, index$1.h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && index$1.h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), index$1.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 })))), index$1.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 }), index$1.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1588
+ }) }, this.clearable && this.value && (index$1.h("div", { class: "bcm-list__input-buttons-button" }, index$1.h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), index$1.h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, index$1.h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: index.classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, index$1.h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && index$1.h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), index$1.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 })))), index$1.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 }), index$1.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1776
1589
  }
1777
1590
  get el() { return index$1.getElement(this); }
1778
1591
  static get watchers() { return {
1779
1592
  "_id": ["watchId"],
1780
1593
  "value": ["handleValueChange"],
1781
1594
  "returnFilterData": ["watchReturnFilterData"],
1782
- "isSelectedOther": ["handleOtherSelected"],
1783
1595
  "isOpen": ["handleOpen"],
1784
1596
  "data": ["dataChanged"]
1785
1597
  }; }
@@ -1788,7 +1600,7 @@ __decorate([
1788
1600
  isLoadDecorator.IsLoad()
1789
1601
  ], BcmList.prototype, "el", void 0);
1790
1602
  __decorate([
1791
- jsonParseDecarator.JsonParse('data', true)
1603
+ jsonParseDecarator.JsonParse("data", true)
1792
1604
  ], BcmList.prototype, "dataChanged", null);
1793
1605
  BcmList.style = listCss;
1794
1606