@mozaic-ds/web-components 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (764) hide show
  1. package/README.md +4 -2
  2. package/package.json +22 -18
  3. package/public/ClickOutside-63071e7a.js.map +1 -1
  4. package/public/{EventForward-e61ea03d.js → EventForward-78ecc73b.js} +2 -2
  5. package/public/{EventForward-e61ea03d.js.map → EventForward-78ecc73b.js.map} +1 -1
  6. package/public/EventHandler-f7ee47ca.js.map +1 -1
  7. package/public/adeo/ClickOutside-63071e7a.js.map +1 -1
  8. package/public/{bricoman/EventForward-e61ea03d.js → adeo/EventForward-78ecc73b.js} +2 -2
  9. package/public/{bricoman/EventForward-e61ea03d.js.map → adeo/EventForward-78ecc73b.js.map} +1 -1
  10. package/public/adeo/EventHandler-f7ee47ca.js.map +1 -1
  11. package/public/adeo/band-d7a07d2c.js.map +1 -1
  12. package/public/adeo/components/accordion/Accordion.js +1 -1
  13. package/public/adeo/components/accordion/Accordion.js.map +1 -1
  14. package/public/adeo/components/accordion/Accordion.svelte +2 -2
  15. package/public/adeo/components/actionbar/ActionBar.js +1 -1
  16. package/public/adeo/components/actionbar/ActionBar.js.map +1 -1
  17. package/public/adeo/components/autocomplete/Autocomplete.js +1 -1
  18. package/public/adeo/components/badge/Badge.js +1 -1
  19. package/public/adeo/components/badge/Badge.nested.js +1 -1
  20. package/public/adeo/components/bottombar/BottomBar.js +1 -1
  21. package/public/adeo/components/breadcrumb/Breadcrumb.js +1 -1
  22. package/public/adeo/components/breadcrumb/Breadcrumb.nested.js +1 -1
  23. package/public/adeo/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  24. package/public/adeo/components/button/Button.js +1 -1
  25. package/public/adeo/components/button/Button.nested.js +1 -1
  26. package/public/adeo/components/button/Button.nested.js.map +1 -1
  27. package/public/adeo/components/card/Card.js +1 -1
  28. package/public/adeo/components/carousel/Carousel.js +1 -1
  29. package/public/adeo/components/carousel/CarouselCard.nested.js +1 -1
  30. package/public/adeo/components/chart/BarChart.js +1 -1
  31. package/public/adeo/components/chart/Donut.js +1 -1
  32. package/public/adeo/components/chart/Donut.js.map +1 -1
  33. package/public/adeo/components/chart/GroupedBarChart.js +1 -1
  34. package/public/adeo/components/chart/LineChart.js +1 -1
  35. package/public/adeo/components/chart/Radar.js +1 -1
  36. package/public/adeo/components/chart/Radar.js.map +1 -1
  37. package/public/adeo/components/chart/StackedBarChart.js +1 -1
  38. package/public/adeo/components/checkbox/Checkbox.js +1 -1
  39. package/public/adeo/components/checkboxgroup/checkboxGroup.js +1 -1
  40. package/public/adeo/components/datatable/DataTable.js +1 -1
  41. package/public/adeo/components/datatable/DataTable.js.map +1 -1
  42. package/public/adeo/components/datatable/DataTable.svelte +21 -8
  43. package/public/adeo/components/datatable/datatable-default-action.nested.js +1 -1
  44. package/public/adeo/components/datatable/datatable-default-action.nested.js.map +1 -1
  45. package/public/adeo/components/datatable/datatable-default-edtion.nested.js +1 -1
  46. package/public/adeo/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  47. package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  48. package/public/adeo/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  49. package/public/adeo/components/datatable/datatable-default-footer.nested.js +1 -1
  50. package/public/adeo/components/datatable/datatable-default-footer.nested.js.map +1 -1
  51. package/public/adeo/components/datatable/datatable-default-selection-label.nested.js +1 -1
  52. package/public/adeo/components/datatable/datatable-default-selection.nested.js +1 -1
  53. package/public/adeo/components/datatable/datatable.types.d.ts +1 -0
  54. package/public/adeo/components/datatable/datatable.types.d.ts.map +1 -1
  55. package/public/adeo/components/donut/Donut.svelte +6 -1
  56. package/public/adeo/components/dropdown/Dropdown.js +1 -1
  57. package/public/adeo/components/field/Field.js +1 -1
  58. package/public/adeo/components/fileuploader/FileUploader.js +1 -1
  59. package/public/adeo/components/fileuploader/FileUploader.js.map +1 -1
  60. package/public/adeo/components/fileuploader/FileUploader.svelte +28 -6
  61. package/public/adeo/components/fileuploader/fileuploader-result.js +1 -1
  62. package/public/adeo/components/fileuploader/fileuploader-result.nested.js +1 -1
  63. package/public/adeo/components/fileuploader/fileuploader-result.nested.js.map +1 -1
  64. package/public/adeo/components/flag/Flag.js +1 -1
  65. package/public/adeo/components/header/Header.js +1 -1
  66. package/public/adeo/components/hero/Hero.js +1 -1
  67. package/public/adeo/components/kpi/Kpi.js +1 -1
  68. package/public/adeo/components/layer/Layer.js +1 -1
  69. package/public/adeo/components/link/Link.js +1 -1
  70. package/public/adeo/components/link/Link.nested.js +1 -1
  71. package/public/adeo/components/link/Link.nested.js.map +1 -1
  72. package/public/adeo/components/listbox/Listbox.js +1 -1
  73. package/public/adeo/components/listbox/Listbox.nested.js +1 -1
  74. package/public/adeo/components/listbox/Listbox.nested.js.map +1 -1
  75. package/public/adeo/components/loader/Loader.js +1 -1
  76. package/public/adeo/components/loader/Loader.js.map +1 -1
  77. package/public/adeo/components/loader/Loader.nested.js +1 -1
  78. package/public/adeo/components/menu/Menu.js +1 -1
  79. package/public/adeo/components/modal/Modal.js +1 -1
  80. package/public/adeo/components/notification/Notification.js +1 -1
  81. package/public/adeo/components/optionbutton/OptionButton.js +1 -1
  82. package/public/adeo/components/overlay/Overlay.js +1 -1
  83. package/public/adeo/components/overlay/OverlayLoader.js +1 -1
  84. package/public/adeo/components/pagination/Pagination.js +1 -1
  85. package/public/adeo/components/passwordinput/PasswordInput.js +1 -1
  86. package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
  87. package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
  88. package/public/adeo/components/price/Price.js +1 -1
  89. package/public/adeo/components/progressbar/ProgressBar.js +1 -1
  90. package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
  91. package/public/adeo/components/radio/Radio.js +1 -1
  92. package/public/adeo/components/radiogroup/RadioGroup.js +1 -1
  93. package/public/adeo/components/ratings/StarsInput.js +1 -1
  94. package/public/adeo/components/ratings/StarsResult.js +1 -1
  95. package/public/adeo/components/segmentedcontrol/SegmentedControl.js +1 -1
  96. package/public/adeo/components/select/Select.js +1 -1
  97. package/public/adeo/components/select/Select.js.map +1 -1
  98. package/public/adeo/components/sidebar/Sidebar.js +1 -1
  99. package/public/adeo/components/sidebar/sidebar-feature-group.nested.js +1 -1
  100. package/public/adeo/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  101. package/public/adeo/components/sidebar/sidebar-feature.nested.js +1 -1
  102. package/public/adeo/components/sidebar/sidebar-feature.nested.js.map +1 -1
  103. package/public/adeo/components/sidebar/sidebar-section.nested.js +1 -1
  104. package/public/adeo/components/sidebar/sidebar-section.nested.js.map +1 -1
  105. package/public/adeo/components/sidebar/sidebar-segment.nested.js +1 -1
  106. package/public/adeo/components/sidebar/sidebar-segment.nested.js.map +1 -1
  107. package/public/adeo/components/sidebar/sidebar-segment.nested.svelte +2 -1
  108. package/public/adeo/components/sidebar/sidebar-separator.nested.js +1 -1
  109. package/public/adeo/components/sidebar/sidebar-separator.nested.js.map +1 -1
  110. package/public/adeo/components/sidebar/sidebar-sub-features.nested.js +1 -1
  111. package/public/adeo/components/sidebar/sidebar-user.nested.js +1 -1
  112. package/public/adeo/components/sidebar/sidebar-user.nested.js.map +1 -1
  113. package/public/adeo/components/stepper/Stepper.js +1 -1
  114. package/public/adeo/components/stepperbar/StepperBar.js +1 -1
  115. package/public/adeo/components/tabs/Tabs.js +1 -1
  116. package/public/adeo/components/tabs/Tabs.nested.js +1 -1
  117. package/public/adeo/components/tabs/Tabs.nested.js.map +1 -1
  118. package/public/adeo/components/tag/Tag.js +1 -1
  119. package/public/adeo/components/tag/Tag.js.map +1 -1
  120. package/public/adeo/components/tag/Tag.nested.js +1 -1
  121. package/public/adeo/components/tag/Tag.nested.js.map +1 -1
  122. package/public/adeo/components/taglist/TagList.js +1 -1
  123. package/public/adeo/components/textarea/Textarea.js +1 -1
  124. package/public/adeo/components/textinput/Textinput.js +1 -1
  125. package/public/adeo/components/textinput/Textinput.nested.js +1 -1
  126. package/public/adeo/components/textinput/Textinput.nested.js.map +1 -1
  127. package/public/adeo/components/toggle/Toggle.js +1 -1
  128. package/public/adeo/components/tooltip/Tooltip.js +1 -1
  129. package/public/adeo/index-48da6c1f.js +2 -0
  130. package/public/adeo/index-48da6c1f.js.map +1 -0
  131. package/public/adeo/index-64cccc06-4c960e34.js.map +1 -1
  132. package/public/adeo/path-1b5da959.js.map +1 -1
  133. package/public/adeo/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
  134. package/public/adeo/sidebar-service-e5d3eb89.js.map +1 -0
  135. package/public/adeo/symbol-b05a6e2b.js.map +1 -1
  136. package/public/adeo/transform-15d69d5d.js.map +1 -1
  137. package/public/adeo/utilities/ClickOutside.js.map +1 -1
  138. package/public/adeo/utilities/EventForward.js.map +1 -1
  139. package/public/adeo/utilities/components/datatable/datatable.types.d.ts +1 -0
  140. package/public/adeo/utilities/components/datatable/datatable.types.d.ts.map +1 -1
  141. package/public/adeo/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
  142. package/public/adeo/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
  143. package/public/band-d7a07d2c.js.map +1 -1
  144. package/public/bricoman/ClickOutside-63071e7a.js.map +1 -1
  145. package/public/{adeo/EventForward-e61ea03d.js → bricoman/EventForward-78ecc73b.js} +2 -2
  146. package/public/{adeo/EventForward-e61ea03d.js.map → bricoman/EventForward-78ecc73b.js.map} +1 -1
  147. package/public/bricoman/EventHandler-f7ee47ca.js.map +1 -1
  148. package/public/bricoman/band-d7a07d2c.js.map +1 -1
  149. package/public/bricoman/components/accordion/Accordion.js +1 -1
  150. package/public/bricoman/components/accordion/Accordion.js.map +1 -1
  151. package/public/bricoman/components/accordion/Accordion.svelte +2 -2
  152. package/public/bricoman/components/actionbar/ActionBar.js +1 -1
  153. package/public/bricoman/components/actionbar/ActionBar.js.map +1 -1
  154. package/public/bricoman/components/autocomplete/Autocomplete.js +1 -1
  155. package/public/bricoman/components/badge/Badge.js +1 -1
  156. package/public/bricoman/components/badge/Badge.nested.js +1 -1
  157. package/public/bricoman/components/bottombar/BottomBar.js +1 -1
  158. package/public/bricoman/components/breadcrumb/Breadcrumb.js +1 -1
  159. package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js +1 -1
  160. package/public/bricoman/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  161. package/public/bricoman/components/button/Button.js +1 -1
  162. package/public/bricoman/components/button/Button.nested.js +1 -1
  163. package/public/bricoman/components/button/Button.nested.js.map +1 -1
  164. package/public/bricoman/components/card/Card.js +1 -1
  165. package/public/bricoman/components/carousel/Carousel.js +1 -1
  166. package/public/bricoman/components/carousel/CarouselCard.nested.js +1 -1
  167. package/public/bricoman/components/chart/BarChart.js +1 -1
  168. package/public/bricoman/components/chart/Donut.js +1 -1
  169. package/public/bricoman/components/chart/Donut.js.map +1 -1
  170. package/public/bricoman/components/chart/GroupedBarChart.js +1 -1
  171. package/public/bricoman/components/chart/LineChart.js +1 -1
  172. package/public/bricoman/components/chart/Radar.js +1 -1
  173. package/public/bricoman/components/chart/Radar.js.map +1 -1
  174. package/public/bricoman/components/chart/StackedBarChart.js +1 -1
  175. package/public/bricoman/components/checkbox/Checkbox.js +1 -1
  176. package/public/bricoman/components/checkboxgroup/checkboxGroup.js +1 -1
  177. package/public/bricoman/components/datatable/DataTable.js +1 -1
  178. package/public/bricoman/components/datatable/DataTable.js.map +1 -1
  179. package/public/bricoman/components/datatable/DataTable.svelte +21 -8
  180. package/public/bricoman/components/datatable/datatable-default-action.nested.js +1 -1
  181. package/public/bricoman/components/datatable/datatable-default-action.nested.js.map +1 -1
  182. package/public/bricoman/components/datatable/datatable-default-edtion.nested.js +1 -1
  183. package/public/bricoman/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  184. package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  185. package/public/bricoman/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  186. package/public/bricoman/components/datatable/datatable-default-footer.nested.js +1 -1
  187. package/public/bricoman/components/datatable/datatable-default-footer.nested.js.map +1 -1
  188. package/public/bricoman/components/datatable/datatable-default-selection-label.nested.js +1 -1
  189. package/public/bricoman/components/datatable/datatable-default-selection.nested.js +1 -1
  190. package/public/bricoman/components/datatable/datatable.types.d.ts +1 -0
  191. package/public/bricoman/components/datatable/datatable.types.d.ts.map +1 -1
  192. package/public/bricoman/components/donut/Donut.svelte +6 -1
  193. package/public/bricoman/components/dropdown/Dropdown.js +1 -1
  194. package/public/bricoman/components/field/Field.js +1 -1
  195. package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
  196. package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
  197. package/public/bricoman/components/fileuploader/FileUploader.svelte +28 -6
  198. package/public/bricoman/components/fileuploader/fileuploader-result.js +1 -1
  199. package/public/bricoman/components/fileuploader/fileuploader-result.nested.js +1 -1
  200. package/public/bricoman/components/fileuploader/fileuploader-result.nested.js.map +1 -1
  201. package/public/bricoman/components/flag/Flag.js +1 -1
  202. package/public/bricoman/components/header/Header.js +1 -1
  203. package/public/bricoman/components/hero/Hero.js +1 -1
  204. package/public/bricoman/components/kpi/Kpi.js +1 -1
  205. package/public/bricoman/components/layer/Layer.js +1 -1
  206. package/public/bricoman/components/link/Link.js +1 -1
  207. package/public/bricoman/components/link/Link.nested.js +1 -1
  208. package/public/bricoman/components/link/Link.nested.js.map +1 -1
  209. package/public/bricoman/components/listbox/Listbox.js +1 -1
  210. package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
  211. package/public/bricoman/components/listbox/Listbox.nested.js.map +1 -1
  212. package/public/bricoman/components/loader/Loader.js +1 -1
  213. package/public/bricoman/components/loader/Loader.nested.js +1 -1
  214. package/public/bricoman/components/menu/Menu.js +1 -1
  215. package/public/bricoman/components/modal/Modal.js +1 -1
  216. package/public/bricoman/components/notification/Notification.js +1 -1
  217. package/public/bricoman/components/optionbutton/OptionButton.js +1 -1
  218. package/public/bricoman/components/overlay/Overlay.js +1 -1
  219. package/public/bricoman/components/overlay/OverlayLoader.js +1 -1
  220. package/public/bricoman/components/pagination/Pagination.js +1 -1
  221. package/public/bricoman/components/passwordinput/PasswordInput.js +1 -1
  222. package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
  223. package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
  224. package/public/bricoman/components/price/Price.js +1 -1
  225. package/public/bricoman/components/progressbar/ProgressBar.js +1 -1
  226. package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
  227. package/public/bricoman/components/radio/Radio.js +1 -1
  228. package/public/bricoman/components/radio/Radio.js.map +1 -1
  229. package/public/bricoman/components/radiogroup/RadioGroup.js +1 -1
  230. package/public/bricoman/components/ratings/StarsInput.js +1 -1
  231. package/public/bricoman/components/ratings/StarsResult.js +1 -1
  232. package/public/bricoman/components/segmentedcontrol/SegmentedControl.js +1 -1
  233. package/public/bricoman/components/select/Select.js +1 -1
  234. package/public/bricoman/components/select/Select.js.map +1 -1
  235. package/public/bricoman/components/sidebar/Sidebar.js +1 -1
  236. package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js +1 -1
  237. package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  238. package/public/bricoman/components/sidebar/sidebar-feature.nested.js +1 -1
  239. package/public/bricoman/components/sidebar/sidebar-feature.nested.js.map +1 -1
  240. package/public/bricoman/components/sidebar/sidebar-section.nested.js +1 -1
  241. package/public/bricoman/components/sidebar/sidebar-section.nested.js.map +1 -1
  242. package/public/bricoman/components/sidebar/sidebar-segment.nested.js +1 -1
  243. package/public/bricoman/components/sidebar/sidebar-segment.nested.js.map +1 -1
  244. package/public/bricoman/components/sidebar/sidebar-segment.nested.svelte +2 -1
  245. package/public/bricoman/components/sidebar/sidebar-separator.nested.js +1 -1
  246. package/public/bricoman/components/sidebar/sidebar-separator.nested.js.map +1 -1
  247. package/public/bricoman/components/sidebar/sidebar-sub-features.nested.js +1 -1
  248. package/public/bricoman/components/sidebar/sidebar-user.nested.js +1 -1
  249. package/public/bricoman/components/sidebar/sidebar-user.nested.js.map +1 -1
  250. package/public/bricoman/components/stepper/Stepper.js +1 -1
  251. package/public/bricoman/components/stepperbar/StepperBar.js +1 -1
  252. package/public/bricoman/components/tabs/Tabs.js +1 -1
  253. package/public/bricoman/components/tabs/Tabs.nested.js +1 -1
  254. package/public/bricoman/components/tabs/Tabs.nested.js.map +1 -1
  255. package/public/bricoman/components/tag/Tag.js +1 -1
  256. package/public/bricoman/components/tag/Tag.js.map +1 -1
  257. package/public/bricoman/components/tag/Tag.nested.js +1 -1
  258. package/public/bricoman/components/tag/Tag.nested.js.map +1 -1
  259. package/public/bricoman/components/taglist/TagList.js +1 -1
  260. package/public/bricoman/components/textarea/Textarea.js +1 -1
  261. package/public/bricoman/components/textarea/Textarea.js.map +1 -1
  262. package/public/bricoman/components/textinput/Textinput.js +1 -1
  263. package/public/bricoman/components/textinput/Textinput.nested.js +1 -1
  264. package/public/bricoman/components/textinput/Textinput.nested.js.map +1 -1
  265. package/public/bricoman/components/toggle/Toggle.js +1 -1
  266. package/public/bricoman/components/tooltip/Tooltip.js +1 -1
  267. package/public/bricoman/index-48da6c1f.js +2 -0
  268. package/public/bricoman/index-48da6c1f.js.map +1 -0
  269. package/public/bricoman/index-64cccc06-4c960e34.js.map +1 -1
  270. package/public/bricoman/path-1b5da959.js.map +1 -1
  271. package/public/bricoman/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
  272. package/public/bricoman/sidebar-service-e5d3eb89.js.map +1 -0
  273. package/public/bricoman/symbol-b05a6e2b.js.map +1 -1
  274. package/public/bricoman/transform-15d69d5d.js.map +1 -1
  275. package/public/bricoman/utilities/ClickOutside.js.map +1 -1
  276. package/public/bricoman/utilities/EventForward.js.map +1 -1
  277. package/public/bricoman/utilities/components/datatable/datatable.types.d.ts +1 -0
  278. package/public/bricoman/utilities/components/datatable/datatable.types.d.ts.map +1 -1
  279. package/public/bricoman/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
  280. package/public/bricoman/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
  281. package/public/components/accordion/Accordion.js +1 -1
  282. package/public/components/accordion/Accordion.js.map +1 -1
  283. package/public/components/accordion/Accordion.svelte +2 -2
  284. package/public/components/actionbar/ActionBar.js +1 -1
  285. package/public/components/actionbar/ActionBar.js.map +1 -1
  286. package/public/components/autocomplete/Autocomplete.js +1 -1
  287. package/public/components/badge/Badge.js +1 -1
  288. package/public/components/badge/Badge.nested.js +1 -1
  289. package/public/components/bottombar/BottomBar.js +1 -1
  290. package/public/components/breadcrumb/Breadcrumb.js +1 -1
  291. package/public/components/breadcrumb/Breadcrumb.nested.js +1 -1
  292. package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  293. package/public/components/button/Button.js +1 -1
  294. package/public/components/button/Button.nested.js +1 -1
  295. package/public/components/button/Button.nested.js.map +1 -1
  296. package/public/components/card/Card.js +1 -1
  297. package/public/components/carousel/Carousel.js +1 -1
  298. package/public/components/carousel/CarouselCard.nested.js +1 -1
  299. package/public/components/chart/BarChart.js +1 -1
  300. package/public/components/chart/Donut.js +1 -1
  301. package/public/components/chart/Donut.js.map +1 -1
  302. package/public/components/chart/GroupedBarChart.js +1 -1
  303. package/public/components/chart/LineChart.js +1 -1
  304. package/public/components/chart/Radar.js +1 -1
  305. package/public/components/chart/Radar.js.map +1 -1
  306. package/public/components/chart/StackedBarChart.js +1 -1
  307. package/public/components/checkbox/Checkbox.js +1 -1
  308. package/public/components/checkboxgroup/checkboxGroup.js +1 -1
  309. package/public/components/datatable/DataTable.js +1 -1
  310. package/public/components/datatable/DataTable.js.map +1 -1
  311. package/public/components/datatable/DataTable.svelte +21 -8
  312. package/public/components/datatable/datatable-default-action.nested.js +1 -1
  313. package/public/components/datatable/datatable-default-action.nested.js.map +1 -1
  314. package/public/components/datatable/datatable-default-edtion.nested.js +1 -1
  315. package/public/components/datatable/datatable-default-edtion.nested.js.map +1 -1
  316. package/public/components/datatable/datatable-default-filter-tags.nested.js +1 -1
  317. package/public/components/datatable/datatable-default-filter-tags.nested.js.map +1 -1
  318. package/public/components/datatable/datatable-default-footer.nested.js +1 -1
  319. package/public/components/datatable/datatable-default-footer.nested.js.map +1 -1
  320. package/public/components/datatable/datatable-default-selection-label.nested.js +1 -1
  321. package/public/components/datatable/datatable-default-selection.nested.js +1 -1
  322. package/public/components/datatable/datatable.types.d.ts +1 -0
  323. package/public/components/datatable/datatable.types.d.ts.map +1 -1
  324. package/public/components/donut/Donut.svelte +6 -1
  325. package/public/components/dropdown/Dropdown.js +1 -1
  326. package/public/components/field/Field.js +1 -1
  327. package/public/components/fileuploader/FileUploader.js +1 -1
  328. package/public/components/fileuploader/FileUploader.js.map +1 -1
  329. package/public/components/fileuploader/FileUploader.svelte +28 -6
  330. package/public/components/fileuploader/fileuploader-result.js +1 -1
  331. package/public/components/fileuploader/fileuploader-result.nested.js +1 -1
  332. package/public/components/fileuploader/fileuploader-result.nested.js.map +1 -1
  333. package/public/components/flag/Flag.js +1 -1
  334. package/public/components/header/Header.js +1 -1
  335. package/public/components/hero/Hero.js +1 -1
  336. package/public/components/kpi/Kpi.js +1 -1
  337. package/public/components/layer/Layer.js +1 -1
  338. package/public/components/link/Link.js +1 -1
  339. package/public/components/link/Link.nested.js +1 -1
  340. package/public/components/link/Link.nested.js.map +1 -1
  341. package/public/components/listbox/Listbox.js +1 -1
  342. package/public/components/listbox/Listbox.nested.js +1 -1
  343. package/public/components/listbox/Listbox.nested.js.map +1 -1
  344. package/public/components/loader/Loader.js +1 -1
  345. package/public/components/loader/Loader.nested.js +1 -1
  346. package/public/components/menu/Menu.js +1 -1
  347. package/public/components/modal/Modal.js +1 -1
  348. package/public/components/notification/Notification.js +1 -1
  349. package/public/components/optionbutton/OptionButton.js +1 -1
  350. package/public/components/overlay/Overlay.js +1 -1
  351. package/public/components/overlay/OverlayLoader.js +1 -1
  352. package/public/components/pagination/Pagination.js +1 -1
  353. package/public/components/passwordinput/PasswordInput.js +1 -1
  354. package/public/components/phonenumber/PhoneNumber.js +1 -1
  355. package/public/components/phonenumber/PhoneNumber.js.map +1 -1
  356. package/public/components/price/Price.js +1 -1
  357. package/public/components/progressbar/ProgressBar.js +1 -1
  358. package/public/components/quantityselector/QuantitySelector.js +1 -1
  359. package/public/components/radio/Radio.js +1 -1
  360. package/public/components/radio/Radio.js.map +1 -1
  361. package/public/components/radiogroup/RadioGroup.js +1 -1
  362. package/public/components/ratings/StarsInput.js +1 -1
  363. package/public/components/ratings/StarsResult.js +1 -1
  364. package/public/components/segmentedcontrol/SegmentedControl.js +1 -1
  365. package/public/components/select/Select.js +1 -1
  366. package/public/components/select/Select.js.map +1 -1
  367. package/public/components/sidebar/Sidebar.js +1 -1
  368. package/public/components/sidebar/sidebar-feature-group.nested.js +1 -1
  369. package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  370. package/public/components/sidebar/sidebar-feature.nested.js +1 -1
  371. package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
  372. package/public/components/sidebar/sidebar-section.nested.js +1 -1
  373. package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
  374. package/public/components/sidebar/sidebar-segment.nested.js +1 -1
  375. package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
  376. package/public/components/sidebar/sidebar-segment.nested.svelte +2 -1
  377. package/public/components/sidebar/sidebar-separator.nested.js +1 -1
  378. package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
  379. package/public/components/sidebar/sidebar-sub-features.nested.js +1 -1
  380. package/public/components/sidebar/sidebar-user.nested.js +1 -1
  381. package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
  382. package/public/components/stepper/Stepper.js +1 -1
  383. package/public/components/stepperbar/StepperBar.js +1 -1
  384. package/public/components/tabs/Tabs.js +1 -1
  385. package/public/components/tabs/Tabs.nested.js +1 -1
  386. package/public/components/tabs/Tabs.nested.js.map +1 -1
  387. package/public/components/tag/Tag.js +1 -1
  388. package/public/components/tag/Tag.js.map +1 -1
  389. package/public/components/tag/Tag.nested.js +1 -1
  390. package/public/components/tag/Tag.nested.js.map +1 -1
  391. package/public/components/taglist/TagList.js +1 -1
  392. package/public/components/textarea/Textarea.js +1 -1
  393. package/public/components/textarea/Textarea.js.map +1 -1
  394. package/public/components/textinput/Textinput.js +1 -1
  395. package/public/components/textinput/Textinput.nested.js +1 -1
  396. package/public/components/textinput/Textinput.nested.js.map +1 -1
  397. package/public/components/toggle/Toggle.js +1 -1
  398. package/public/components/tooltip/Tooltip.js +1 -1
  399. package/public/icons/index-64cccc06.js.map +1 -1
  400. package/public/index-48da6c1f.js +2 -0
  401. package/public/index-48da6c1f.js.map +1 -0
  402. package/public/index-64cccc06-4c960e34.js.map +1 -1
  403. package/public/path-1b5da959.js.map +1 -1
  404. package/public/{sidebar-service-be26885e.js → sidebar-service-e5d3eb89.js} +2 -2
  405. package/public/sidebar-service-e5d3eb89.js.map +1 -0
  406. package/public/symbol-b05a6e2b.js.map +1 -1
  407. package/public/transform-15d69d5d.js.map +1 -1
  408. package/public/utilities/ClickOutside.js.map +1 -1
  409. package/public/utilities/EventForward.js.map +1 -1
  410. package/public/utilities/components/datatable/datatable.types.d.ts +1 -0
  411. package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
  412. package/public/utilities/stories/accordion/Accordion.stories.d.ts +16 -11
  413. package/public/utilities/stories/accordion/Accordion.stories.d.ts.map +1 -1
  414. package/public/adeo/index-d12e76e8.js +0 -2
  415. package/public/adeo/index-d12e76e8.js.map +0 -1
  416. package/public/adeo/sidebar-service-be26885e.js.map +0 -1
  417. package/public/adeo/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
  418. package/public/adeo/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
  419. package/public/adeo/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
  420. package/public/adeo/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
  421. package/public/adeo/utilities/stories/badge/Badge.stories.d.ts +0 -5
  422. package/public/adeo/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
  423. package/public/adeo/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
  424. package/public/adeo/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
  425. package/public/adeo/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
  426. package/public/adeo/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  427. package/public/adeo/utilities/stories/button/Button.stories.d.ts +0 -10
  428. package/public/adeo/utilities/stories/button/Button.stories.d.ts.map +0 -1
  429. package/public/adeo/utilities/stories/card/Card.stories.d.ts +0 -7
  430. package/public/adeo/utilities/stories/card/Card.stories.d.ts.map +0 -1
  431. package/public/adeo/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
  432. package/public/adeo/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
  433. package/public/adeo/utilities/stories/chart/BarChart.stories.d.ts +0 -7
  434. package/public/adeo/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
  435. package/public/adeo/utilities/stories/chart/Donut.stories.d.ts +0 -7
  436. package/public/adeo/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
  437. package/public/adeo/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
  438. package/public/adeo/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
  439. package/public/adeo/utilities/stories/chart/LineChart.stories.d.ts +0 -5
  440. package/public/adeo/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
  441. package/public/adeo/utilities/stories/chart/Radar.stories.d.ts +0 -7
  442. package/public/adeo/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
  443. package/public/adeo/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
  444. package/public/adeo/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
  445. package/public/adeo/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -10
  446. package/public/adeo/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
  447. package/public/adeo/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
  448. package/public/adeo/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
  449. package/public/adeo/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
  450. package/public/adeo/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
  451. package/public/adeo/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
  452. package/public/adeo/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
  453. package/public/adeo/utilities/stories/field/Field.stories.d.ts +0 -10
  454. package/public/adeo/utilities/stories/field/Field.stories.d.ts.map +0 -1
  455. package/public/adeo/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
  456. package/public/adeo/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
  457. package/public/adeo/utilities/stories/flag/Flag.stories.d.ts +0 -6
  458. package/public/adeo/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
  459. package/public/adeo/utilities/stories/header/Header.stories.d.ts +0 -9
  460. package/public/adeo/utilities/stories/header/Header.stories.d.ts.map +0 -1
  461. package/public/adeo/utilities/stories/hero/Hero.stories.d.ts +0 -8
  462. package/public/adeo/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
  463. package/public/adeo/utilities/stories/icon/Icon.stories.d.ts +0 -6
  464. package/public/adeo/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
  465. package/public/adeo/utilities/stories/kpi/kpi.stories.d.ts +0 -7
  466. package/public/adeo/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
  467. package/public/adeo/utilities/stories/layer/Layer.stories.d.ts +0 -9
  468. package/public/adeo/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
  469. package/public/adeo/utilities/stories/link/Link.stories.d.ts +0 -7
  470. package/public/adeo/utilities/stories/link/Link.stories.d.ts.map +0 -1
  471. package/public/adeo/utilities/stories/listbox/Listbox.stories.d.ts +0 -5
  472. package/public/adeo/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
  473. package/public/adeo/utilities/stories/loader/Loader.stories.d.ts +0 -7
  474. package/public/adeo/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
  475. package/public/adeo/utilities/stories/menu/Menu.stories.d.ts +0 -5
  476. package/public/adeo/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
  477. package/public/adeo/utilities/stories/modal/Modal.stories.d.ts +0 -5
  478. package/public/adeo/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
  479. package/public/adeo/utilities/stories/notification/Notification.stories.d.ts +0 -13
  480. package/public/adeo/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
  481. package/public/adeo/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
  482. package/public/adeo/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
  483. package/public/adeo/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
  484. package/public/adeo/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
  485. package/public/adeo/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
  486. package/public/adeo/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
  487. package/public/adeo/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
  488. package/public/adeo/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
  489. package/public/adeo/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
  490. package/public/adeo/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
  491. package/public/adeo/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
  492. package/public/adeo/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
  493. package/public/adeo/utilities/stories/price/Price.stories.d.ts +0 -10
  494. package/public/adeo/utilities/stories/price/Price.stories.d.ts.map +0 -1
  495. package/public/adeo/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
  496. package/public/adeo/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
  497. package/public/adeo/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -6
  498. package/public/adeo/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
  499. package/public/adeo/utilities/stories/radio/Radio.stories.d.ts +0 -8
  500. package/public/adeo/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
  501. package/public/adeo/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -6
  502. package/public/adeo/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
  503. package/public/adeo/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
  504. package/public/adeo/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
  505. package/public/adeo/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
  506. package/public/adeo/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
  507. package/public/adeo/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
  508. package/public/adeo/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
  509. package/public/adeo/utilities/stories/select/Select.stories.d.ts +0 -6
  510. package/public/adeo/utilities/stories/select/Select.stories.d.ts.map +0 -1
  511. package/public/adeo/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
  512. package/public/adeo/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
  513. package/public/adeo/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
  514. package/public/adeo/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
  515. package/public/adeo/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
  516. package/public/adeo/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
  517. package/public/adeo/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
  518. package/public/adeo/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
  519. package/public/adeo/utilities/stories/tag/Tag.stories.d.ts +0 -8
  520. package/public/adeo/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
  521. package/public/adeo/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
  522. package/public/adeo/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
  523. package/public/adeo/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
  524. package/public/adeo/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
  525. package/public/adeo/utilities/stories/textinput/Textinput.stories.d.ts +0 -11
  526. package/public/adeo/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
  527. package/public/adeo/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
  528. package/public/adeo/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
  529. package/public/adeo/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
  530. package/public/adeo/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
  531. package/public/bricoman/index-d12e76e8.js +0 -2
  532. package/public/bricoman/index-d12e76e8.js.map +0 -1
  533. package/public/bricoman/sidebar-service-be26885e.js.map +0 -1
  534. package/public/bricoman/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
  535. package/public/bricoman/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
  536. package/public/bricoman/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
  537. package/public/bricoman/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
  538. package/public/bricoman/utilities/stories/badge/Badge.stories.d.ts +0 -5
  539. package/public/bricoman/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
  540. package/public/bricoman/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
  541. package/public/bricoman/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
  542. package/public/bricoman/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
  543. package/public/bricoman/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  544. package/public/bricoman/utilities/stories/button/Button.stories.d.ts +0 -10
  545. package/public/bricoman/utilities/stories/button/Button.stories.d.ts.map +0 -1
  546. package/public/bricoman/utilities/stories/card/Card.stories.d.ts +0 -7
  547. package/public/bricoman/utilities/stories/card/Card.stories.d.ts.map +0 -1
  548. package/public/bricoman/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
  549. package/public/bricoman/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
  550. package/public/bricoman/utilities/stories/chart/BarChart.stories.d.ts +0 -7
  551. package/public/bricoman/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
  552. package/public/bricoman/utilities/stories/chart/Donut.stories.d.ts +0 -7
  553. package/public/bricoman/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
  554. package/public/bricoman/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
  555. package/public/bricoman/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
  556. package/public/bricoman/utilities/stories/chart/LineChart.stories.d.ts +0 -5
  557. package/public/bricoman/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
  558. package/public/bricoman/utilities/stories/chart/Radar.stories.d.ts +0 -7
  559. package/public/bricoman/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
  560. package/public/bricoman/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
  561. package/public/bricoman/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
  562. package/public/bricoman/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -10
  563. package/public/bricoman/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
  564. package/public/bricoman/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
  565. package/public/bricoman/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
  566. package/public/bricoman/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
  567. package/public/bricoman/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
  568. package/public/bricoman/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
  569. package/public/bricoman/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
  570. package/public/bricoman/utilities/stories/field/Field.stories.d.ts +0 -10
  571. package/public/bricoman/utilities/stories/field/Field.stories.d.ts.map +0 -1
  572. package/public/bricoman/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
  573. package/public/bricoman/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
  574. package/public/bricoman/utilities/stories/flag/Flag.stories.d.ts +0 -6
  575. package/public/bricoman/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
  576. package/public/bricoman/utilities/stories/header/Header.stories.d.ts +0 -9
  577. package/public/bricoman/utilities/stories/header/Header.stories.d.ts.map +0 -1
  578. package/public/bricoman/utilities/stories/hero/Hero.stories.d.ts +0 -8
  579. package/public/bricoman/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
  580. package/public/bricoman/utilities/stories/icon/Icon.stories.d.ts +0 -6
  581. package/public/bricoman/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
  582. package/public/bricoman/utilities/stories/kpi/kpi.stories.d.ts +0 -7
  583. package/public/bricoman/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
  584. package/public/bricoman/utilities/stories/layer/Layer.stories.d.ts +0 -9
  585. package/public/bricoman/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
  586. package/public/bricoman/utilities/stories/link/Link.stories.d.ts +0 -7
  587. package/public/bricoman/utilities/stories/link/Link.stories.d.ts.map +0 -1
  588. package/public/bricoman/utilities/stories/listbox/Listbox.stories.d.ts +0 -5
  589. package/public/bricoman/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
  590. package/public/bricoman/utilities/stories/loader/Loader.stories.d.ts +0 -7
  591. package/public/bricoman/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
  592. package/public/bricoman/utilities/stories/menu/Menu.stories.d.ts +0 -5
  593. package/public/bricoman/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
  594. package/public/bricoman/utilities/stories/modal/Modal.stories.d.ts +0 -5
  595. package/public/bricoman/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
  596. package/public/bricoman/utilities/stories/notification/Notification.stories.d.ts +0 -13
  597. package/public/bricoman/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
  598. package/public/bricoman/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
  599. package/public/bricoman/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
  600. package/public/bricoman/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
  601. package/public/bricoman/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
  602. package/public/bricoman/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
  603. package/public/bricoman/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
  604. package/public/bricoman/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
  605. package/public/bricoman/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
  606. package/public/bricoman/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
  607. package/public/bricoman/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
  608. package/public/bricoman/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
  609. package/public/bricoman/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
  610. package/public/bricoman/utilities/stories/price/Price.stories.d.ts +0 -10
  611. package/public/bricoman/utilities/stories/price/Price.stories.d.ts.map +0 -1
  612. package/public/bricoman/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
  613. package/public/bricoman/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
  614. package/public/bricoman/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -6
  615. package/public/bricoman/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
  616. package/public/bricoman/utilities/stories/radio/Radio.stories.d.ts +0 -8
  617. package/public/bricoman/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
  618. package/public/bricoman/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -6
  619. package/public/bricoman/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
  620. package/public/bricoman/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
  621. package/public/bricoman/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
  622. package/public/bricoman/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
  623. package/public/bricoman/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
  624. package/public/bricoman/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
  625. package/public/bricoman/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
  626. package/public/bricoman/utilities/stories/select/Select.stories.d.ts +0 -6
  627. package/public/bricoman/utilities/stories/select/Select.stories.d.ts.map +0 -1
  628. package/public/bricoman/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
  629. package/public/bricoman/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
  630. package/public/bricoman/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
  631. package/public/bricoman/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
  632. package/public/bricoman/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
  633. package/public/bricoman/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
  634. package/public/bricoman/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
  635. package/public/bricoman/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
  636. package/public/bricoman/utilities/stories/tag/Tag.stories.d.ts +0 -8
  637. package/public/bricoman/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
  638. package/public/bricoman/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
  639. package/public/bricoman/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
  640. package/public/bricoman/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
  641. package/public/bricoman/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
  642. package/public/bricoman/utilities/stories/textinput/Textinput.stories.d.ts +0 -11
  643. package/public/bricoman/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
  644. package/public/bricoman/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
  645. package/public/bricoman/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
  646. package/public/bricoman/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
  647. package/public/bricoman/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
  648. package/public/index-d12e76e8.js +0 -2
  649. package/public/index-d12e76e8.js.map +0 -1
  650. package/public/sidebar-service-be26885e.js.map +0 -1
  651. package/public/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
  652. package/public/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
  653. package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
  654. package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
  655. package/public/utilities/stories/badge/Badge.stories.d.ts +0 -5
  656. package/public/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
  657. package/public/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
  658. package/public/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
  659. package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
  660. package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  661. package/public/utilities/stories/button/Button.stories.d.ts +0 -10
  662. package/public/utilities/stories/button/Button.stories.d.ts.map +0 -1
  663. package/public/utilities/stories/card/Card.stories.d.ts +0 -7
  664. package/public/utilities/stories/card/Card.stories.d.ts.map +0 -1
  665. package/public/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
  666. package/public/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
  667. package/public/utilities/stories/chart/BarChart.stories.d.ts +0 -7
  668. package/public/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
  669. package/public/utilities/stories/chart/Donut.stories.d.ts +0 -7
  670. package/public/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
  671. package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
  672. package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
  673. package/public/utilities/stories/chart/LineChart.stories.d.ts +0 -5
  674. package/public/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
  675. package/public/utilities/stories/chart/Radar.stories.d.ts +0 -7
  676. package/public/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
  677. package/public/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
  678. package/public/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
  679. package/public/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -10
  680. package/public/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
  681. package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -5
  682. package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
  683. package/public/utilities/stories/datatable/DataTable.stories.d.ts +0 -14
  684. package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
  685. package/public/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
  686. package/public/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
  687. package/public/utilities/stories/field/Field.stories.d.ts +0 -10
  688. package/public/utilities/stories/field/Field.stories.d.ts.map +0 -1
  689. package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
  690. package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
  691. package/public/utilities/stories/flag/Flag.stories.d.ts +0 -6
  692. package/public/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
  693. package/public/utilities/stories/header/Header.stories.d.ts +0 -9
  694. package/public/utilities/stories/header/Header.stories.d.ts.map +0 -1
  695. package/public/utilities/stories/hero/Hero.stories.d.ts +0 -8
  696. package/public/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
  697. package/public/utilities/stories/icon/Icon.stories.d.ts +0 -6
  698. package/public/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
  699. package/public/utilities/stories/kpi/kpi.stories.d.ts +0 -7
  700. package/public/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
  701. package/public/utilities/stories/layer/Layer.stories.d.ts +0 -9
  702. package/public/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
  703. package/public/utilities/stories/link/Link.stories.d.ts +0 -7
  704. package/public/utilities/stories/link/Link.stories.d.ts.map +0 -1
  705. package/public/utilities/stories/listbox/Listbox.stories.d.ts +0 -5
  706. package/public/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
  707. package/public/utilities/stories/loader/Loader.stories.d.ts +0 -7
  708. package/public/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
  709. package/public/utilities/stories/menu/Menu.stories.d.ts +0 -5
  710. package/public/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
  711. package/public/utilities/stories/modal/Modal.stories.d.ts +0 -5
  712. package/public/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
  713. package/public/utilities/stories/notification/Notification.stories.d.ts +0 -13
  714. package/public/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
  715. package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
  716. package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
  717. package/public/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
  718. package/public/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
  719. package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
  720. package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
  721. package/public/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
  722. package/public/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
  723. package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
  724. package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
  725. package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
  726. package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
  727. package/public/utilities/stories/price/Price.stories.d.ts +0 -10
  728. package/public/utilities/stories/price/Price.stories.d.ts.map +0 -1
  729. package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
  730. package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
  731. package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -6
  732. package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
  733. package/public/utilities/stories/radio/Radio.stories.d.ts +0 -8
  734. package/public/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
  735. package/public/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -6
  736. package/public/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
  737. package/public/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
  738. package/public/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
  739. package/public/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
  740. package/public/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
  741. package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
  742. package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
  743. package/public/utilities/stories/select/Select.stories.d.ts +0 -6
  744. package/public/utilities/stories/select/Select.stories.d.ts.map +0 -1
  745. package/public/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
  746. package/public/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
  747. package/public/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
  748. package/public/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
  749. package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
  750. package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
  751. package/public/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
  752. package/public/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
  753. package/public/utilities/stories/tag/Tag.stories.d.ts +0 -8
  754. package/public/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
  755. package/public/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
  756. package/public/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
  757. package/public/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
  758. package/public/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
  759. package/public/utilities/stories/textinput/Textinput.stories.d.ts +0 -11
  760. package/public/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
  761. package/public/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
  762. package/public/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
  763. package/public/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
  764. package/public/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- import{G as e,i as t,s as l,H as s,e as n,h as c,b as o,n as d,q as a,t as i,d as r,l as u,o as m,R as p}from"../../index-d12e76e8.js";function b(e){s(e,"svelte-o9e44d",".mc-datatable__topbar-selection.svelte-o9e44d.svelte-o9e44d{margin-left:1rem}.center-selection-label.svelte-o9e44d.svelte-o9e44d{text-align:center}.center-selection-label.svelte-o9e44d span.svelte-o9e44d{line-height:2;display:inline-block;vertical-align:middle}")}function v(e){let t;function l(e,t){return e[1]?.allSelected?f:S}let s=l(e),d=s(e);return{c(){t=n("div"),d.c(),c(t,"class","center-selection-label svelte-o9e44d")},m(e,l){o(e,t,l),d.m(t,null)},p(e,n){s===(s=l(e))&&d?d.p(e,n):(d.d(1),d=s(e),d&&(d.c(),d.m(t,null)))},d(e){e&&a(t),d.d()}}}function S(e){let t,l,s,d,p,b=e[1]?.idsSelected.length+"",v=(e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(b),d=r(),p=i(v),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s),u(l,d),u(l,p)},p(e,t){2&t&&b!==(b=e[1]?.idsSelected.length+"")&&m(s,b),2&t&&v!==(v=(e[1]?.selectedLabel||"selected")+"")&&m(p,v)},d(e){e&&a(t)}}}function f(e){let t;function l(e,t){return e[1]?.excludedIdsFromSelection.length>0?g:h}let s=l(e),n=s(e);return{c(){n.c(),t=p()},m(e,l){n.m(e,l),o(e,t,l)},p(e,c){s===(s=l(e))&&n?n.p(e,c):(n.d(1),n=s(e),n&&(n.c(),n.m(t.parentNode,t)))},d(e){n.d(e),e&&a(t)}}}function h(e){let t,l,s,d=(e[1]?.totalItems+" "+e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(d),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s)},p(e,t){2&t&&d!==(d=(e[1]?.totalItems+" "+e[1]?.selectedLabel||"selected")+"")&&m(s,d)},d(e){e&&a(t)}}}function g(e){let t,l,s,d,p,b=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"",v=(e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(b),d=r(),p=i(v),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s),u(l,d),u(l,p)},p(e,t){2&t&&b!==(b=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"")&&m(s,b),2&t&&v!==(v=(e[1]?.selectedLabel||"selected")+"")&&m(p,v)},d(e){e&&a(t)}}}function x(e){let t,l=e[0]&&e[2]&&null!=e[1]&&v(e);return{c(){t=n("div"),l&&l.c(),c(t,"class","mc-datatable__topbar-selection svelte-o9e44d")},m(e,s){o(e,t,s),l&&l.m(t,null)},p(e,[s]){e[0]&&e[2]&&null!=e[1]?l?l.p(e,s):(l=v(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},i:d,o:d,d(e){e&&a(t),l&&l.d()}}}function I(e,t,l){let{itemsSelection:s}=t,{selectionParams:n}=t,{showSelectionCount:c}=t;return e.$$set=e=>{"itemsSelection"in e&&l(0,s=e.itemsSelection),"selectionParams"in e&&l(1,n=e.selectionParams),"showSelectionCount"in e&&l(2,c=e.showSelectionCount)},[s,n,c]}class L extends e{constructor(e){super(),t(this,e,I,x,l,{itemsSelection:0,selectionParams:1,showSelectionCount:2},b)}}export{L as default};
1
+ import{G as e,i as t,s as l,H as s,e as n,h as c,b as o,n as a,q as d,t as i,d as r,l as u,o as m,R as p}from"../../index-48da6c1f.js";function b(e){s(e,"svelte-o9e44d",".mc-datatable__topbar-selection.svelte-o9e44d.svelte-o9e44d{margin-left:1rem}.center-selection-label.svelte-o9e44d.svelte-o9e44d{text-align:center}.center-selection-label.svelte-o9e44d span.svelte-o9e44d{line-height:2;display:inline-block;vertical-align:middle}")}function v(e){let t;function l(e,t){return e[1]?.allSelected?S:f}let s=l(e),a=s(e);return{c(){t=n("div"),a.c(),c(t,"class","center-selection-label svelte-o9e44d")},m(e,l){o(e,t,l),a.m(t,null)},p(e,n){s===(s=l(e))&&a?a.p(e,n):(a.d(1),a=s(e),a&&(a.c(),a.m(t,null)))},d(e){e&&d(t),a.d()}}}function f(e){let t,l,s,a,p,b=e[1]?.idsSelected.length+"",v=(e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(b),a=r(),p=i(v),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s),u(l,a),u(l,p)},p(e,t){2&t&&b!==(b=e[1]?.idsSelected.length+"")&&m(s,b),2&t&&v!==(v=(e[1]?.selectedLabel||"selected")+"")&&m(p,v)},d(e){e&&d(t)}}}function S(e){let t;function l(e,t){return e[1]?.excludedIdsFromSelection.length>0?g:h}let s=l(e),n=s(e);return{c(){n.c(),t=p()},m(e,l){n.m(e,l),o(e,t,l)},p(e,c){s===(s=l(e))&&n?n.p(e,c):(n.d(1),n=s(e),n&&(n.c(),n.m(t.parentNode,t)))},d(e){n.d(e),e&&d(t)}}}function h(e){let t,l,s,a=(e[1]?.totalItems+" "+e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(a),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s)},p(e,t){2&t&&a!==(a=(e[1]?.totalItems+" "+e[1]?.selectedLabel||"selected")+"")&&m(s,a)},d(e){e&&d(t)}}}function g(e){let t,l,s,a,p,b=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"",v=(e[1]?.selectedLabel||"selected")+"";return{c(){t=n("span"),l=n("b"),s=i(b),a=r(),p=i(v),c(t,"class","svelte-o9e44d")},m(e,n){o(e,t,n),u(t,l),u(l,s),u(l,a),u(l,p)},p(e,t){2&t&&b!==(b=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"")&&m(s,b),2&t&&v!==(v=(e[1]?.selectedLabel||"selected")+"")&&m(p,v)},d(e){e&&d(t)}}}function x(e){let t,l=e[0]&&e[2]&&null!=e[1]&&v(e);return{c(){t=n("div"),l&&l.c(),c(t,"class","mc-datatable__topbar-selection svelte-o9e44d")},m(e,s){o(e,t,s),l&&l.m(t,null)},p(e,[s]){e[0]&&e[2]&&null!=e[1]?l?l.p(e,s):(l=v(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},i:a,o:a,d(e){e&&d(t),l&&l.d()}}}function I(e,t,l){let{itemsSelection:s}=t,{selectionParams:n}=t,{showSelectionCount:c}=t;return e.$$set=e=>{"itemsSelection"in e&&l(0,s=e.itemsSelection),"selectionParams"in e&&l(1,n=e.selectionParams),"showSelectionCount"in e&&l(2,c=e.showSelectionCount)},[s,n,c]}class L extends e{constructor(e){super(),t(this,e,I,x,l,{itemsSelection:0,selectionParams:1,showSelectionCount:2},b)}}export{L as default};
2
2
  //# sourceMappingURL=datatable-default-selection-label.nested.js.map
@@ -1,2 +1,2 @@
1
- import{G as e,i as l,s as t,H as s,e as a,h as n,b as c,n as r,q as o,v as i,w as d,R as u,t as b,d as m,l as h,m as w,a2 as S,o as f}from"../../index-d12e76e8.js";import{E as p}from"../../EventHandler-f7ee47ca.js";function L(e){s(e,"svelte-r43jru",".mc-datatable__topbar-selection.svelte-r43jru.svelte-r43jru{width:100%;background-color:white;border-radius:4px}.center-selection-label.svelte-r43jru.svelte-r43jru{text-align:center}.center-selection-label.svelte-r43jru span.svelte-r43jru{line-height:2}")}function g(e){let l;function t(e,l){return e[1]?.idsSelected.length<e[1].totalItems&&e[3]&&!e[1]?.allSelected?j:e[1]?.allSelected?v:void 0}let s=t(e),r=s&&s(e);return{c(){l=a("div"),r&&r.c(),n(l,"class","center-selection-label svelte-r43jru")},m(e,t){c(e,l,t),r&&r.m(l,null)},p(e,a){s===(s=t(e))&&r?r.p(e,a):(r&&r.d(1),r=s&&s(e),r&&(r.c(),r.m(l,null)))},d(e){e&&o(l),r&&r.d()}}}function v(e){let l;function t(e,l){return e[1]?.excludedIdsFromSelection.length>0?x:I}let s=t(e),a=s(e);return{c(){a.c(),l=u()},m(e,t){a.m(e,t),c(e,l,t)},p(e,n){s===(s=t(e))&&a?a.p(e,n):(a.d(1),a=s(e),a&&(a.c(),a.m(l.parentNode,l)))},d(e){a.d(e),e&&o(l)}}}function j(e){let l,t,s,r,i,d,u,p,L,g,v,j,I,x,O,P,A=e[1]?.idsSelected.length+"",C=(e[1]?.selectedLabel||"selected")+"",k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"",T=(e[1]?.selectAllLabel||"Select all")+"",_=e[1]?.totalItems+"",F=(e[1]?.rowsOfTableLabel||"rows of the table")+"";return{c(){l=a("span"),t=a("b"),s=b(A),r=m(),i=b(C),d=m(),u=b(k),p=b("-\n "),L=a("a"),g=b(T),v=m(),j=b(_),I=m(),x=b(F),n(L,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(t,s),h(t,r),h(t,i),h(l,d),h(l,u),h(l,p),h(l,L),h(L,g),h(L,v),h(L,j),h(L,I),h(L,x),O||(P=w(L,"click",S(e[5])),O=!0)},p(e,l){2&l&&A!==(A=e[1]?.idsSelected.length+"")&&f(s,A),2&l&&C!==(C=(e[1]?.selectedLabel||"selected")+"")&&f(i,C),2&l&&k!==(k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"")&&f(u,k),2&l&&T!==(T=(e[1]?.selectAllLabel||"Select all")+"")&&f(g,T),2&l&&_!==(_=e[1]?.totalItems+"")&&f(j,_),2&l&&F!==(F=(e[1]?.rowsOfTableLabel||"rows of the table")+"")&&f(x,F)},d(e){e&&o(l),O=!1,P()}}}function I(e){let l,t,s,r,i,d,u,m=(e[1]?.rowsSelectedLabel||"All rows are selected in the table.")+"",p=(e[1]?.clearSelectionLabel||"Clear selection")+"";return{c(){l=a("span"),t=b(m),s=b(" -\n "),r=a("a"),i=b(p),n(r,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(l,s),h(l,r),h(r,i),d||(u=w(r,"click",S(e[7])),d=!0)},p(e,l){2&l&&m!==(m=(e[1]?.rowsSelectedLabel||"All rows are selected in the table.")+"")&&f(t,m),2&l&&p!==(p=(e[1]?.clearSelectionLabel||"Clear selection")+"")&&f(i,p)},d(e){e&&o(l),d=!1,u()}}}function x(e){let l,t,s,r,i,d,u,p,L,g,v,j,I,x,O,P,A=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"",C=(e[1]?.selectedLabel||"selected")+"",k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"",T=(e[1]?.selectAllLabel||"Select all")+"",_=e[1]?.totalItems+"",F=(e[1]?.rowsOfTableLabel||"rows of the table")+"";return{c(){l=a("span"),t=a("b"),s=b(A),r=m(),i=b(C),d=m(),u=b(k),p=b("-\n "),L=a("a"),g=b(T),v=m(),j=b(_),I=m(),x=b(F),n(L,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(t,s),h(t,r),h(t,i),h(l,d),h(l,u),h(l,p),h(l,L),h(L,g),h(L,v),h(L,j),h(L,I),h(L,x),O||(P=w(L,"click",S(e[6])),O=!0)},p(e,l){2&l&&A!==(A=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"")&&f(s,A),2&l&&C!==(C=(e[1]?.selectedLabel||"selected")+"")&&f(i,C),2&l&&k!==(k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"")&&f(u,k),2&l&&T!==(T=(e[1]?.selectAllLabel||"Select all")+"")&&f(g,T),2&l&&_!==(_=e[1]?.totalItems+"")&&f(j,_),2&l&&F!==(F=(e[1]?.rowsOfTableLabel||"rows of the table")+"")&&f(x,F)},d(e){e&&o(l),O=!1,P()}}}function O(e){let l,t=e[0]&&e[2]&&null!=e[1]&&(e[1]?.idsSelected.length||e[1]?.allSelected)&&g(e);return{c(){l=a("div"),t&&t.c(),n(l,"class","mc-datatable__topbar-selection svelte-r43jru")},m(e,s){c(e,l,s),t&&t.m(l,null)},p(e,[s]){e[0]&&e[2]&&null!=e[1]&&(e[1]?.idsSelected.length||e[1]?.allSelected)?t?t.p(e,s):(t=g(e),t.c(),t.m(l,null)):t&&(t.d(1),t=null)},i:r,o:r,d(e){e&&o(l),t&&t.d()}}}function P(e,l,t){let{itemsSelection:s}=l,{selectionParams:a}=l,{showSelectionCount:n}=l,{allItems:c}=l,r=new p(i(),d());function o(e,l){r.dispatch(e,l||{})}return e.$$set=e=>{"itemsSelection"in e&&t(0,s=e.itemsSelection),"selectionParams"in e&&t(1,a=e.selectionParams),"showSelectionCount"in e&&t(2,n=e.showSelectionCount),"allItems"in e&&t(3,c=e.allItems)},[s,a,n,c,o,()=>o("select-all"),()=>o("select-all"),()=>o("clear-selection")]}class A extends e{constructor(e){super(),l(this,e,P,O,t,{itemsSelection:0,selectionParams:1,showSelectionCount:2,allItems:3},L)}}export{A as default};
1
+ import{G as e,i as l,s as t,H as s,e as a,h as n,b as c,n as r,q as o,v as i,w as d,R as u,t as b,d as m,l as h,m as w,a2 as S,o as f}from"../../index-48da6c1f.js";import{E as p}from"../../EventHandler-f7ee47ca.js";function L(e){s(e,"svelte-r43jru",".mc-datatable__topbar-selection.svelte-r43jru.svelte-r43jru{width:100%;background-color:white;border-radius:4px}.center-selection-label.svelte-r43jru.svelte-r43jru{text-align:center}.center-selection-label.svelte-r43jru span.svelte-r43jru{line-height:2}")}function g(e){let l;function t(e,l){return e[1]?.idsSelected.length<e[1].totalItems&&e[3]&&!e[1]?.allSelected?j:e[1]?.allSelected?v:void 0}let s=t(e),r=s&&s(e);return{c(){l=a("div"),r&&r.c(),n(l,"class","center-selection-label svelte-r43jru")},m(e,t){c(e,l,t),r&&r.m(l,null)},p(e,a){s===(s=t(e))&&r?r.p(e,a):(r&&r.d(1),r=s&&s(e),r&&(r.c(),r.m(l,null)))},d(e){e&&o(l),r&&r.d()}}}function v(e){let l;function t(e,l){return e[1]?.excludedIdsFromSelection.length>0?x:I}let s=t(e),a=s(e);return{c(){a.c(),l=u()},m(e,t){a.m(e,t),c(e,l,t)},p(e,n){s===(s=t(e))&&a?a.p(e,n):(a.d(1),a=s(e),a&&(a.c(),a.m(l.parentNode,l)))},d(e){a.d(e),e&&o(l)}}}function j(e){let l,t,s,r,i,d,u,p,L,g,v,j,I,x,O,P,A=e[1]?.idsSelected.length+"",C=(e[1]?.selectedLabel||"selected")+"",k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"",T=(e[1]?.selectAllLabel||"Select all")+"",_=e[1]?.totalItems+"",F=(e[1]?.rowsOfTableLabel||"rows of the table")+"";return{c(){l=a("span"),t=a("b"),s=b(A),r=m(),i=b(C),d=m(),u=b(k),p=b("-\n "),L=a("a"),g=b(T),v=m(),j=b(_),I=m(),x=b(F),n(L,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(t,s),h(t,r),h(t,i),h(l,d),h(l,u),h(l,p),h(l,L),h(L,g),h(L,v),h(L,j),h(L,I),h(L,x),O||(P=w(L,"click",S(e[5])),O=!0)},p(e,l){2&l&&A!==(A=e[1]?.idsSelected.length+"")&&f(s,A),2&l&&C!==(C=(e[1]?.selectedLabel||"selected")+"")&&f(i,C),2&l&&k!==(k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"")&&f(u,k),2&l&&T!==(T=(e[1]?.selectAllLabel||"Select all")+"")&&f(g,T),2&l&&_!==(_=e[1]?.totalItems+"")&&f(j,_),2&l&&F!==(F=(e[1]?.rowsOfTableLabel||"rows of the table")+"")&&f(x,F)},d(e){e&&o(l),O=!1,P()}}}function I(e){let l,t,s,r,i,d,u,m=(e[1]?.rowsSelectedLabel||"All rows are selected in the table.")+"",p=(e[1]?.clearSelectionLabel||"Clear selection")+"";return{c(){l=a("span"),t=b(m),s=b(" -\n "),r=a("a"),i=b(p),n(r,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(l,s),h(l,r),h(r,i),d||(u=w(r,"click",S(e[7])),d=!0)},p(e,l){2&l&&m!==(m=(e[1]?.rowsSelectedLabel||"All rows are selected in the table.")+"")&&f(t,m),2&l&&p!==(p=(e[1]?.clearSelectionLabel||"Clear selection")+"")&&f(i,p)},d(e){e&&o(l),d=!1,u()}}}function x(e){let l,t,s,r,i,d,u,p,L,g,v,j,I,x,O,P,A=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"",C=(e[1]?.selectedLabel||"selected")+"",k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"",T=(e[1]?.selectAllLabel||"Select all")+"",_=e[1]?.totalItems+"",F=(e[1]?.rowsOfTableLabel||"rows of the table")+"";return{c(){l=a("span"),t=a("b"),s=b(A),r=m(),i=b(C),d=m(),u=b(k),p=b("-\n "),L=a("a"),g=b(T),v=m(),j=b(_),I=m(),x=b(F),n(L,"href","/"),n(l,"class","svelte-r43jru")},m(a,n){c(a,l,n),h(l,t),h(t,s),h(t,r),h(t,i),h(l,d),h(l,u),h(l,p),h(l,L),h(L,g),h(L,v),h(L,j),h(L,I),h(L,x),O||(P=w(L,"click",S(e[6])),O=!0)},p(e,l){2&l&&A!==(A=e[1]?.totalItems-e[1]?.excludedIdsFromSelection.length+"")&&f(s,A),2&l&&C!==(C=(e[1]?.selectedLabel||"selected")+"")&&f(i,C),2&l&&k!==(k=(e[1]?.rowsOnPageLabel||"rows on the page. ")+"")&&f(u,k),2&l&&T!==(T=(e[1]?.selectAllLabel||"Select all")+"")&&f(g,T),2&l&&_!==(_=e[1]?.totalItems+"")&&f(j,_),2&l&&F!==(F=(e[1]?.rowsOfTableLabel||"rows of the table")+"")&&f(x,F)},d(e){e&&o(l),O=!1,P()}}}function O(e){let l,t=e[0]&&e[2]&&null!=e[1]&&(e[1]?.idsSelected.length||e[1]?.allSelected)&&g(e);return{c(){l=a("div"),t&&t.c(),n(l,"class","mc-datatable__topbar-selection svelte-r43jru")},m(e,s){c(e,l,s),t&&t.m(l,null)},p(e,[s]){e[0]&&e[2]&&null!=e[1]&&(e[1]?.idsSelected.length||e[1]?.allSelected)?t?t.p(e,s):(t=g(e),t.c(),t.m(l,null)):t&&(t.d(1),t=null)},i:r,o:r,d(e){e&&o(l),t&&t.d()}}}function P(e,l,t){let{itemsSelection:s}=l,{selectionParams:a}=l,{showSelectionCount:n}=l,{allItems:c}=l,r=new p(i(),d());function o(e,l){r.dispatch(e,l||{})}return e.$$set=e=>{"itemsSelection"in e&&t(0,s=e.itemsSelection),"selectionParams"in e&&t(1,a=e.selectionParams),"showSelectionCount"in e&&t(2,n=e.showSelectionCount),"allItems"in e&&t(3,c=e.allItems)},[s,a,n,c,o,()=>o("select-all"),()=>o("select-all"),()=>o("clear-selection")]}class A extends e{constructor(e){super(),l(this,e,P,O,t,{itemsSelection:0,selectionParams:1,showSelectionCount:2,allItems:3},L)}}export{A as default};
2
2
  //# sourceMappingURL=datatable-default-selection.nested.js.map
@@ -16,6 +16,7 @@ export type TableOptions = {
16
16
  showItemsCount?: boolean;
17
17
  useOnePageSorting?: boolean;
18
18
  optionsButton?: boolean;
19
+ hideOptionsButton?: Array<string>;
19
20
  e2eAttributeSuffix?: string;
20
21
  sortedParams?: SortParams;
21
22
  heightToBeRemoved?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"datatable.types.d.ts","sourceRoot":"","sources":["../../../src/components/datatable/datatable.types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"datatable.types.d.ts","sourceRoot":"","sources":["../../../src/components/datatable/datatable.types.ts"],"names":[],"mappings":"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"}
@@ -30,6 +30,11 @@
30
30
  ? JSON.parse(colors)
31
31
  : ['#605F9D', '#D9F0F3', '#EAEDEF', '#0B96CC', '#EA7315', '#EA302D'];
32
32
 
33
+ export let strokes: string;
34
+ $: parsedStrokes = strokes
35
+ ? JSON.parse(strokes)
36
+ : ['#605F9D', '#D9F0F3', '#EAEDEF', '#0B96CC', '#EA7315', '#EA302D'];
37
+
33
38
  export let title: string;
34
39
  export let legendseparator = ',';
35
40
  export let legendseparatorcount = '(';
@@ -112,7 +117,7 @@
112
117
  .append('path')
113
118
  .attr('class', 'chart__arc')
114
119
  .attr('title', (d) => d.data.name)
115
- .attr('stroke', (d) => `${parsedColors[d.index]}`)
120
+ .attr('stroke', (d) => `${parsedStrokes[d.index]}`)
116
121
  .attr('stroke-width', '4px')
117
122
  .style('fill', (d) => {
118
123
  if (parsedSvgs.length > 0) {
@@ -1,2 +1,2 @@
1
- import{S as e,i as t,a,b as l,f as i,s,J as r,K as n,c as o,e as c,d,t as m,D as g,n as p,h,k as x,L as u,j as w,l as b,E as f,m as $,M as v,A as y,y as M,z as k,o as I,N as _,p as A,q as z,F as D,O as E,r as C,v as j,w as S,x as N,P as T,Q as L,R as P,C as B,B as G,T as O}from"../../index-d12e76e8.js";import{E as Q}from"../../EventHandler-f7ee47ca.js";import{c as W}from"../../ClickOutside-63071e7a.js";import R from"../tag/Tag.nested.js";import Y from"../loader/Loader.nested.js";import H from"../listbox/Listbox.nested.js";function Z(e,t,a){const l=e.slice();return l[62]=t[a],l}function J(e,t,a){const l=e.slice();return l[62]=t[a],l[66]=a,l}function V(e){let t,a,l={id:e[1]?e[1]:`autocompleteTag-${e[30]}`,class:"mc-dropdown__tag",label:e[29](),size:"s",type:"removable",dark:!1,disabled:!1,href:"",name:"",selected:!1,value:""};return t=new R({props:l}),e[46](t),t.$on("tag-removed",e[31]),{c(){g(t.$$.fragment)},m(e,l){f(t,e,l),a=!0},p(e,a){const l={};2&a[0]&&(l.id=e[1]?e[1]:`autocompleteTag-${e[30]}`),536870912&a[0]&&(l.label=e[29]()),t.$set(l)},i(e){a||(y(t.$$.fragment,e),a=!0)},o(e){M(t.$$.fragment,e),a=!1},d(a){e[46](null),D(t,a)}}}function F(e){let t,a,i;return{c(){t=c("button"),t.innerHTML="<navigation-control-tag--cross-24px></navigation-control-tag--cross-24px>",h(t,"class","mc-dropdown__clear"),h(t,"type","button")},m(s,r){l(s,t,r),a||(i=$(t,"click",T(e[47])),a=!0)},p:p,d(e){e&&z(t),a=!1,i()}}}function X(e){let t,a;return t=new Y({props:{size:"s",theme:"primary",text:"",class:"mc-dropdown__loader"}}),{c(){g(t.$$.fragment)},m(e,l){f(t,e,l),a=!0},i(e){a||(y(t.$$.fragment,e),a=!0)},o(e){M(t.$$.fragment,e),a=!1},d(e){D(t,e)}}}function q(e){let t,a,i=e[26],s=[];for(let t=0;t<i.length;t+=1)s[t]=U(J(e,i,t));let r=e[19].length>e[15]&&ee(e);return{c(){t=c("div");for(let e=0;e<s.length;e+=1)s[e].c();a=d(),r&&r.c(),h(t,"class","tags-selected")},m(e,i){l(e,t,i);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,null);b(t,a),r&&r.m(t,null)},p(e,l){if(67141632&l[0]|2&l[1]){let r;for(i=e[26],r=0;r<i.length;r+=1){const n=J(e,i,r);s[r]?s[r].p(n,l):(s[r]=U(n),s[r].c(),s[r].m(t,a))}for(;r<s.length;r+=1)s[r].d(1);s.length=i.length}e[19].length>e[15]?r?r.p(e,l):(r=ee(e),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(e){e&&z(t),L(s,e),r&&r.d()}}}function K(e){let t,a,i,s,r,n;function o(){return e[50](e[62])}return{c(){t=c("div"),a=c("m-tag"),B(a,"id",i=e[62].id),B(a,"label",s=e[62].label),B(a,"size","s"),B(a,"type","removable"),h(t,"class","tag-selected")},m(e,i){l(e,t,i),b(t,a),r||(n=$(a,"tag-removed",o),r=!0)},p(t,l){e=t,67108864&l[0]&&i!==(i=e[62].id)&&B(a,"id",i),67108864&l[0]&&s!==(s=e[62].label)&&B(a,"label",s)},d(e){e&&z(t),r=!1,n()}}}function U(e){let t,a=e[66]<e[15]&&K(e);return{c(){a&&a.c(),t=P()},m(e,i){a&&a.m(e,i),l(e,t,i)},p(e,l){e[66]<e[15]?a?a.p(e,l):(a=K(e),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&z(t)}}}function ee(e){let t,a,i,s,r;return{c(){t=c("div"),a=c("m-tag"),B(a,"id","id-tag"),B(a,"label",i="("+e[19].length+") "+e[14]+" "),B(a,"size","s"),B(a,"type","link"),h(t,"class","tag-selected")},m(i,n){l(i,t,n),b(t,a),s||(r=$(a,"tag-selected",e[51]),s=!0)},p(e,t){540672&t[0]&&i!==(i="("+e[19].length+") "+e[14]+" ")&&B(a,"label",i)},d(e){e&&z(t),s=!1,r()}}}function te(e){let t,a,i,s,r,n,o=e[26],d=[];for(let t=0;t<o.length;t+=1)d[t]=ae(Z(e,o,t));return{c(){t=c("div"),a=c("m-layer"),i=c("small"),s=c("div");for(let e=0;e<d.length;e+=1)d[e].c();h(s,"class","tags-selected"),h(i,"slot","content"),B(a,"title",e[13]),B(a,"layertitletag","h3"),B(a,"isopen",e[27])},m(o,c){l(o,t,c),b(t,a),b(a,i),b(i,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);r||(n=$(a,"layer-closed",e[53]),r=!0)},p(e,t){if(67108864&t[0]|2&t[1]){let a;for(o=e[26],a=0;a<o.length;a+=1){const l=Z(e,o,a);d[a]?d[a].p(l,t):(d[a]=ae(l),d[a].c(),d[a].m(s,null))}for(;a<d.length;a+=1)d[a].d(1);d.length=o.length}8192&t[0]&&B(a,"title",e[13]),134217728&t[0]&&B(a,"isopen",e[27])},d(e){e&&z(t),L(d,e),r=!1,n()}}}function ae(e){let t,a,i,s,r,n,o;function m(){return e[52](e[62])}return{c(){t=c("div"),a=c("m-tag"),r=d(),B(a,"id",i=e[62].id),B(a,"label",s=e[62].label),B(a,"size","s"),B(a,"type","removable"),h(t,"class","tag-selected")},m(e,i){l(e,t,i),b(t,a),b(t,r),n||(o=$(a,"tag-removed",m),n=!0)},p(t,l){e=t,67108864&l[0]&&i!==(i=e[62].id)&&B(a,"id",i),67108864&l[0]&&s!==(s=e[62].label)&&B(a,"label",s)},d(e){e&&z(t),n=!1,o()}}}function le(e){let t,a,i,s,C,j,S,N,T,L,P,B,O,Q,R,Y,Z,J,K,U,ee,ae,le,se=(e[25]?e[25]:e[2])+"",re=e[8]&&e[19].length>0&&!e[16]&&V(e),ne=!e[8]&&e[25]&&e[12]&&F(e),oe=e[7]&&X();function ce(t){e[49](t)}let de={items:JSON.stringify(e[28]),open:e[20],multiple:e[8],isfiltered:ie,emptysearchlabel:e[9],maxwidth:e[0],datatextexpr:e[10],datavalueexpr:e[11],selectall:e[17],labelselectall:e[18]};void 0!==e[19]&&(de.value=e[19]),L=new H({props:de}),r.push((()=>n(L,"value",ce))),L.$on("change",e[36]),L.$on("scrollend",e[37]),L.$on("select-all",e[38]);let me=e[8]&&e[16]&&q(e),ge=e[8]&&e[16]&&te(e),pe=[{class:"mc-dropdown"},{style:U="--dropdown-tag-width: "+e[24]+"; --dropdown-width: "+e[0]+";"},e[21]],he={};for(let e=0;e<pe.length;e+=1)he=o(he,pe[e]);return{c(){t=c("div"),a=c("div"),re&&re.c(),i=d(),s=c("button"),C=m(se),j=d(),ne&&ne.c(),S=d(),N=c("div"),oe&&oe.c(),T=d(),g(L.$$.fragment),B=d(),me&&me.c(),O=d(),Q=c("span"),R=d(),Y=c("span"),Z=d(),J=c("span"),K=d(),ge&&ge.c(),this.c=p,h(s,"type","button"),h(s,"class","mc-select mc-dropdown__trigger"),s.disabled=e[3],x(s,"is-open",e[20]),x(s,"is-valid",e[5]),x(s,"is-invalid",e[6]),x(s,"mc-select--s","s"===e[4]),h(N,"class","mc-dropdown__tools"),h(a,"class","mc-dropdown__main"),h(Q,"class","mc-dropdown__tag"),u(Q,"display","none"),h(Y,"class","mc-dropdown__loader"),u(Y,"display","none"),h(J,"class","mc-text-input mc-dropdown__trigger"),u(J,"display","none"),w(t,he),x(t,"mc-dropdown--multi",e[8])},m(r,n){l(r,t,n),b(t,a),re&&re.m(a,null),b(a,i),b(a,s),b(s,C),b(s,j),ne&&ne.m(s,null),b(a,S),b(a,N),oe&&oe.m(N,null),b(t,T),f(L,t,null),b(t,B),me&&me.m(t,null),b(t,O),b(t,Q),b(t,R),b(t,Y),b(t,Z),b(t,J),b(t,K),ge&&ge.m(t,null),e[54](t),ee=!0,ae||(le=[$(s,"click",e[48]),v(W.call(null,t)),$(t,"outclick",e[35])],ae=!0)},p(e,l){e[8]&&e[19].length>0&&!e[16]?re?(re.p(e,l),590080&l[0]&&y(re,1)):(re=V(e),re.c(),y(re,1),re.m(a,i)):re&&(G(),M(re,1,1,(()=>{re=null})),k()),(!ee||33554436&l[0])&&se!==(se=(e[25]?e[25]:e[2])+"")&&I(C,se),!e[8]&&e[25]&&e[12]?ne?ne.p(e,l):(ne=F(e),ne.c(),ne.m(s,null)):ne&&(ne.d(1),ne=null),(!ee||8&l[0])&&(s.disabled=e[3]),(!ee||1048576&l[0])&&x(s,"is-open",e[20]),(!ee||32&l[0])&&x(s,"is-valid",e[5]),(!ee||64&l[0])&&x(s,"is-invalid",e[6]),(!ee||16&l[0])&&x(s,"mc-select--s","s"===e[4]),e[7]?oe?128&l[0]&&y(oe,1):(oe=X(),oe.c(),y(oe,1),oe.m(N,null)):oe&&(G(),M(oe,1,1,(()=>{oe=null})),k());const r={};268435456&l[0]&&(r.items=JSON.stringify(e[28])),1048576&l[0]&&(r.open=e[20]),256&l[0]&&(r.multiple=e[8]),512&l[0]&&(r.emptysearchlabel=e[9]),1&l[0]&&(r.maxwidth=e[0]),1024&l[0]&&(r.datatextexpr=e[10]),2048&l[0]&&(r.datavalueexpr=e[11]),131072&l[0]&&(r.selectall=e[17]),262144&l[0]&&(r.labelselectall=e[18]),!P&&524288&l[0]&&(P=!0,r.value=e[19],_((()=>P=!1))),L.$set(r),e[8]&&e[16]?me?me.p(e,l):(me=q(e),me.c(),me.m(t,O)):me&&(me.d(1),me=null),e[8]&&e[16]?ge?ge.p(e,l):(ge=te(e),ge.c(),ge.m(t,null)):ge&&(ge.d(1),ge=null),w(t,he=A(pe,[{class:"mc-dropdown"},(!ee||16777217&l[0]&&U!==(U="--dropdown-tag-width: "+e[24]+"; --dropdown-width: "+e[0]+";"))&&{style:U},2097152&l[0]&&e[21]])),x(t,"mc-dropdown--multi",e[8])},i(e){ee||(y(re),y(oe),y(L.$$.fragment,e),ee=!0)},o(e){M(re),M(oe),M(L.$$.fragment,e),ee=!1},d(a){a&&z(t),re&&re.d(),ne&&ne.d(),oe&&oe.d(),D(L),me&&me.d(),ge&&ge.d(),e[54](null),ae=!1,E(le)}}}let ie=!1;function se(e,t,a){let l,i,s,n,c,d;const m=["maxwidth","tagid","taglabel","placeholder","disabled","size","isvalid","isinvalid","loading","items","value","open","multiple","emptysearchlabel","datatextexpr","datavalueexpr","nosort","clearfield","layertitle","showmoretagslabel","maxnumbertoshowtags","alltags","selectall","labelselectall"];let g,p=C(t,m),{maxwidth:h="100%"}=t,{tagid:x}=t,{taglabel:u=""}=t,{placeholder:w="-- Placeholder --"}=t,{disabled:b=!1}=t,{size:f="m"}=t,{isvalid:$}=t,{isinvalid:v}=t,{loading:y=!1}=t,{items:M}=t,{value:k}=t,{open:I=!1}=t,{multiple:_=!1}=t,{emptysearchlabel:A="No results found"}=t,{datatextexpr:z="label"}=t,{datavalueexpr:D="value"}=t,{nosort:E=!1}=t,{clearfield:T=!1}=t,{layertitle:L="Title layer"}=t,{showmoretagslabel:P="Show more"}=t,{maxnumbertoshowtags:B=12}=t,{alltags:G=!1}=t,{selectall:W=!1}=t,{labelselectall:R="Select all"}=t;const Y=Math.random();let H,Z,J,V,F=new Q(j(),S()),X="0px",q=[],K=null;function U(){a(19,s=_?[]:""),le(),F.dispatch("clear",!0)}function ee(e){a(19,s=s.filter((t=>t!==e))),F.dispatch("onchange",s)}function te(){a(27,K=!0)}function ae(){a(27,K=null)}function le(){a(20,c=!1),_&&!E?function(){V=l;const e=ie();V.sort(((t,a)=>{const l=e.includes(t),i=e.includes(a);return l===i?t[D]-a[D]:l<i?1:-1})),a(28,i=V)}():a(28,i=l)}function ie(e){const t=e||s;return l.filter((e=>_?t.includes(e[D]):t===e[D]))}return e.$$set=e=>{t=o(o({},t),N(e)),a(61,p=C(t,m)),"maxwidth"in e&&a(0,h=e.maxwidth),"tagid"in e&&a(1,x=e.tagid),"taglabel"in e&&a(39,u=e.taglabel),"placeholder"in e&&a(2,w=e.placeholder),"disabled"in e&&a(3,b=e.disabled),"size"in e&&a(4,f=e.size),"isvalid"in e&&a(5,$=e.isvalid),"isinvalid"in e&&a(6,v=e.isinvalid),"loading"in e&&a(7,y=e.loading),"items"in e&&a(40,M=e.items),"value"in e&&a(41,k=e.value),"open"in e&&a(42,I=e.open),"multiple"in e&&a(8,_=e.multiple),"emptysearchlabel"in e&&a(9,A=e.emptysearchlabel),"datatextexpr"in e&&a(10,z=e.datatextexpr),"datavalueexpr"in e&&a(11,D=e.datavalueexpr),"nosort"in e&&a(43,E=e.nosort),"clearfield"in e&&a(12,T=e.clearfield),"layertitle"in e&&a(13,L=e.layertitle),"showmoretagslabel"in e&&a(14,P=e.showmoretagslabel),"maxnumbertoshowtags"in e&&a(15,B=e.maxnumbertoshowtags),"alltags"in e&&a(16,G=e.alltags),"selectall"in e&&a(17,W=e.selectall),"labelselectall"in e&&a(18,R=e.labelselectall)},e.$$.update=()=>{if(512&e.$$.dirty[1]&&a(45,l=M?JSON.parse(M):[]),16384&e.$$.dirty[1]&&a(28,i=l),256&e.$$.dirty[0]|1024&e.$$.dirty[1]&&a(19,s=!k&&_?[]:k?JSON.parse(k):k),524288&e.$$.dirty[0]|256&e.$$.dirty[1]&&a(29,n=()=>s.length.toString()+" "+u),524288&e.$$.dirty[0]&&async function(e){await O(),a(26,q=ie(e));const t=q.map((e=>e[z]));a(25,J=t.join(", ")),_&&a(44,Z=e)}(s),8192&e.$$.dirty[1]&&async function(e){var t,l;await O(),a(24,X=H&&e&&e.length?`${null!==(l=null===(t=null==g?void 0:g.querySelector(".mc-tag-removable"))||void 0===t?void 0:t.clientWidth)&&void 0!==l?l:8}px`:"0px")}(Z),2048&e.$$.dirty[1]&&a(20,c=I),1048576&e.$$.dirty[0]){const e=c?"open":"close";F.dispatch(e,c)}a(21,d=Object.assign({},p)),2097152&e.$$.dirty[0]&&delete d.class},[h,x,w,b,f,$,v,y,_,A,z,D,T,L,P,B,G,W,R,s,c,d,g,H,X,J,q,K,i,n,Y,U,ee,te,ae,le,function(){F.dispatch("onchange",s),_||le()},function(){F.dispatch("scrollend",!0)},function(e){F.dispatch("select-all",e.detail)},u,M,k,I,E,Z,l,function(e){r[e?"unshift":"push"]((()=>{H=e,a(23,H)}))},()=>{U()},()=>a(20,c=!c),function(e){s=e,a(19,s),a(41,k),a(8,_)},e=>ee(e.id),()=>te(),e=>ee(e.id),()=>ae(),function(e){r[e?"unshift":"push"]((()=>{g=e,a(22,g)}))}]}class re extends e{constructor(e){super();const r=document.createElement("style");r.textContent=".mc-select{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\");background-color:#ffffff;background-repeat:no-repeat;background-size:1rem 1rem, 1.5rem 1.5rem;border:1px solid #666666;border-radius:4px;color:#191919;-webkit-transition:border-color 200ms ease, -webkit-box-shadow 200ms ease;transition:border-color 200ms ease, -webkit-box-shadow 200ms ease;-o-transition:border-color 200ms ease, box-shadow 200ms ease;transition:border-color 200ms ease, box-shadow 200ms ease;transition:border-color 200ms ease, box-shadow 200ms ease, -webkit-box-shadow 200ms ease;width:100%}.mc-select[type=number]::-webkit-inner-spin-button,.mc-select[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.mc-select[type=number]{-moz-appearance:textfield}.mc-select[type=search]::-webkit-search-decoration:hover,.mc-select[type=search]::-webkit-search-cancel-button:hover{cursor:pointer}.mc-select::-ms-expand{display:none}.mc-select.is-hover,.mc-select:hover{border-color:#191919}.mc-select.is-focus,.mc-select:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-select:disabled{background-color:#e6e6e6;border-color:#e6e6e6;color:#666666;cursor:not-allowed;opacity:1}.mc-select.is-invalid{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\"), url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjExMTIiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTEyIDdhMSAxIDAgMDAtMSAxdjQuMzhhMSAxIDAgMDAyIDBWOGExIDEgMCAwMC0xLTF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxNiIgcj0iMSIvPjwvc3ZnPg==\");border-color:#c61112}.mc-select.is-valid{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\"), url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiBmaWxsPSIjNDZhNjEwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMiA0YTggOCAwIDExLTggOCA4IDggMCAwMTgtOG0wLTJhMTAgMTAgMCAxMDEwIDEwQTEwIDEwIDAgMDAxMiAyeiIvPjxwYXRoIGQ9Ik0xMC43MyAxNS43NWExIDEgMCAwMS0uNjgtLjI2bC0zLTIuNzRhMSAxIDAgMDExLjM2LTEuNDdsMi4yNSAyLjA4IDQuMzYtNC40MmExIDEgMCAxMTEuNDIgMS40MWwtNSA1LjFhMSAxIDAgMDEtLjcxLjN6Ii8+PC9zdmc+\");border-color:#46a610}.mc-select--s{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}@media screen and (min-width: 680px){.mc-select--s\\@from-m{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-m{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1024px){.mc-select--s\\@from-l{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-l{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1280px){.mc-select--s\\@from-xl{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-xl{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1920px){.mc-select--s\\@from-xxl{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-xxl{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}.mc-dropdown{-ms-flex-item-align:start;align-self:start;position:relative;min-width:18rem;max-width:var(--dropdown-width, auto);width:100%}.mc-dropdown__tag,.mc-dropdown__tools{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);z-index:2}.mc-dropdown__tag{left:0.75rem}.mc-dropdown__trigger{display:block;overflow:hidden;text-align:left;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.mc-dropdown__trigger.is-open{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M2 10.5a1 1 0 01.29-.71l5-5a1 1 0 011.42 0l5 5a1 1 0 01-1.42 1.42L8 6.91l-4.29 4.3a1 1 0 01-1.42 0A1 1 0 012 10.5z'/%3E%3C/svg%3E\")}.mc-dropdown__tools{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0.5rem;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;right:2.5rem}.is-valid+.mc-dropdown__tools,.is-invalid+.mc-dropdown__tools{right:4.5rem}.mc-dropdown__clear{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;-webkit-transition:-webkit-box-shadow 150ms ease;transition:-webkit-box-shadow 150ms ease;-o-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease;transition:box-shadow 150ms ease, -webkit-box-shadow 150ms ease;background:none;border-radius:50%}.mc-dropdown__clear:focus{-webkit-box-shadow:0 0 0 2px #0b96cc;box-shadow:0 0 0 2px #0b96cc}.mc-dropdown__clear,.mc-dropdown__clear-icon{height:1.5rem;width:1.5rem}.mc-dropdown__clear-icon{fill:#666666}.mc-dropdown__clear-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.mc-dropdown--multi .mc-dropdown__trigger{padding-left:calc(0.75rem + var(--dropdown-tag-width, 0px))}.mc-dropdown{min-width:auto}.mc-dropdown__tag{position:absolute !important}.mc-dropdown--multi .mc-dropdown__trigger{padding-left:calc(0.75rem + var(--dropdown-tag-width)) !important}.tags-selected{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.tag-selected{margin-top:1em;margin-left:5px;margin-right:5px}",this.shadowRoot.appendChild(r),t(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},se,le,s,{maxwidth:0,tagid:1,taglabel:39,placeholder:2,disabled:3,size:4,isvalid:5,isinvalid:6,loading:7,items:40,value:41,open:42,multiple:8,emptysearchlabel:9,datatextexpr:10,datavalueexpr:11,nosort:43,clearfield:12,layertitle:13,showmoretagslabel:14,maxnumbertoshowtags:15,alltags:16,selectall:17,labelselectall:18},null,[-1,-1,-1]),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),i()))}static get observedAttributes(){return["maxwidth","tagid","taglabel","placeholder","disabled","size","isvalid","isinvalid","loading","items","value","open","multiple","emptysearchlabel","datatextexpr","datavalueexpr","nosort","clearfield","layertitle","showmoretagslabel","maxnumbertoshowtags","alltags","selectall","labelselectall"]}get maxwidth(){return this.$$.ctx[0]}set maxwidth(e){this.$$set({maxwidth:e}),i()}get tagid(){return this.$$.ctx[1]}set tagid(e){this.$$set({tagid:e}),i()}get taglabel(){return this.$$.ctx[39]}set taglabel(e){this.$$set({taglabel:e}),i()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),i()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),i()}get size(){return this.$$.ctx[4]}set size(e){this.$$set({size:e}),i()}get isvalid(){return this.$$.ctx[5]}set isvalid(e){this.$$set({isvalid:e}),i()}get isinvalid(){return this.$$.ctx[6]}set isinvalid(e){this.$$set({isinvalid:e}),i()}get loading(){return this.$$.ctx[7]}set loading(e){this.$$set({loading:e}),i()}get items(){return this.$$.ctx[40]}set items(e){this.$$set({items:e}),i()}get value(){return this.$$.ctx[41]}set value(e){this.$$set({value:e}),i()}get open(){return this.$$.ctx[42]}set open(e){this.$$set({open:e}),i()}get multiple(){return this.$$.ctx[8]}set multiple(e){this.$$set({multiple:e}),i()}get emptysearchlabel(){return this.$$.ctx[9]}set emptysearchlabel(e){this.$$set({emptysearchlabel:e}),i()}get datatextexpr(){return this.$$.ctx[10]}set datatextexpr(e){this.$$set({datatextexpr:e}),i()}get datavalueexpr(){return this.$$.ctx[11]}set datavalueexpr(e){this.$$set({datavalueexpr:e}),i()}get nosort(){return this.$$.ctx[43]}set nosort(e){this.$$set({nosort:e}),i()}get clearfield(){return this.$$.ctx[12]}set clearfield(e){this.$$set({clearfield:e}),i()}get layertitle(){return this.$$.ctx[13]}set layertitle(e){this.$$set({layertitle:e}),i()}get showmoretagslabel(){return this.$$.ctx[14]}set showmoretagslabel(e){this.$$set({showmoretagslabel:e}),i()}get maxnumbertoshowtags(){return this.$$.ctx[15]}set maxnumbertoshowtags(e){this.$$set({maxnumbertoshowtags:e}),i()}get alltags(){return this.$$.ctx[16]}set alltags(e){this.$$set({alltags:e}),i()}get selectall(){return this.$$.ctx[17]}set selectall(e){this.$$set({selectall:e}),i()}get labelselectall(){return this.$$.ctx[18]}set labelselectall(e){this.$$set({labelselectall:e}),i()}}export{re as default};
1
+ import{S as e,i as t,a,b as l,f as i,s,J as r,K as n,c as o,e as c,d,t as m,D as g,n as p,h,k as x,L as u,j as w,l as b,E as f,m as $,M as v,A as y,y as M,z as k,o as I,N as _,p as A,q as z,F as D,O as E,r as C,v as j,w as S,x as N,P as T,Q as L,R as P,C as B,B as G,T as O}from"../../index-48da6c1f.js";import{E as Q}from"../../EventHandler-f7ee47ca.js";import{c as W}from"../../ClickOutside-63071e7a.js";import R from"../tag/Tag.nested.js";import Y from"../loader/Loader.nested.js";import H from"../listbox/Listbox.nested.js";function Z(e,t,a){const l=e.slice();return l[62]=t[a],l}function J(e,t,a){const l=e.slice();return l[62]=t[a],l[66]=a,l}function V(e){let t,a,l={id:e[1]?e[1]:`autocompleteTag-${e[30]}`,class:"mc-dropdown__tag",label:e[29](),size:"s",type:"removable",dark:!1,disabled:!1,href:"",name:"",selected:!1,value:""};return t=new R({props:l}),e[46](t),t.$on("tag-removed",e[31]),{c(){g(t.$$.fragment)},m(e,l){f(t,e,l),a=!0},p(e,a){const l={};2&a[0]&&(l.id=e[1]?e[1]:`autocompleteTag-${e[30]}`),536870912&a[0]&&(l.label=e[29]()),t.$set(l)},i(e){a||(y(t.$$.fragment,e),a=!0)},o(e){M(t.$$.fragment,e),a=!1},d(a){e[46](null),D(t,a)}}}function F(e){let t,a,i;return{c(){t=c("button"),t.innerHTML="<navigation-control-tag--cross-24px></navigation-control-tag--cross-24px>",h(t,"class","mc-dropdown__clear"),h(t,"type","button")},m(s,r){l(s,t,r),a||(i=$(t,"click",T(e[47])),a=!0)},p:p,d(e){e&&z(t),a=!1,i()}}}function X(e){let t,a;return t=new Y({props:{size:"s",theme:"primary",text:"",class:"mc-dropdown__loader"}}),{c(){g(t.$$.fragment)},m(e,l){f(t,e,l),a=!0},i(e){a||(y(t.$$.fragment,e),a=!0)},o(e){M(t.$$.fragment,e),a=!1},d(e){D(t,e)}}}function q(e){let t,a,i=e[26],s=[];for(let t=0;t<i.length;t+=1)s[t]=U(J(e,i,t));let r=e[19].length>e[15]&&ee(e);return{c(){t=c("div");for(let e=0;e<s.length;e+=1)s[e].c();a=d(),r&&r.c(),h(t,"class","tags-selected")},m(e,i){l(e,t,i);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,null);b(t,a),r&&r.m(t,null)},p(e,l){if(67141632&l[0]|2&l[1]){let r;for(i=e[26],r=0;r<i.length;r+=1){const n=J(e,i,r);s[r]?s[r].p(n,l):(s[r]=U(n),s[r].c(),s[r].m(t,a))}for(;r<s.length;r+=1)s[r].d(1);s.length=i.length}e[19].length>e[15]?r?r.p(e,l):(r=ee(e),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(e){e&&z(t),L(s,e),r&&r.d()}}}function K(e){let t,a,i,s,r,n;function o(){return e[50](e[62])}return{c(){t=c("div"),a=c("m-tag"),B(a,"id",i=e[62].id),B(a,"label",s=e[62].label),B(a,"size","s"),B(a,"type","removable"),h(t,"class","tag-selected")},m(e,i){l(e,t,i),b(t,a),r||(n=$(a,"tag-removed",o),r=!0)},p(t,l){e=t,67108864&l[0]&&i!==(i=e[62].id)&&B(a,"id",i),67108864&l[0]&&s!==(s=e[62].label)&&B(a,"label",s)},d(e){e&&z(t),r=!1,n()}}}function U(e){let t,a=e[66]<e[15]&&K(e);return{c(){a&&a.c(),t=P()},m(e,i){a&&a.m(e,i),l(e,t,i)},p(e,l){e[66]<e[15]?a?a.p(e,l):(a=K(e),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&z(t)}}}function ee(e){let t,a,i,s,r;return{c(){t=c("div"),a=c("m-tag"),B(a,"id","id-tag"),B(a,"label",i="("+e[19].length+") "+e[14]+" "),B(a,"size","s"),B(a,"type","link"),h(t,"class","tag-selected")},m(i,n){l(i,t,n),b(t,a),s||(r=$(a,"tag-selected",e[51]),s=!0)},p(e,t){540672&t[0]&&i!==(i="("+e[19].length+") "+e[14]+" ")&&B(a,"label",i)},d(e){e&&z(t),s=!1,r()}}}function te(e){let t,a,i,s,r,n,o=e[26],d=[];for(let t=0;t<o.length;t+=1)d[t]=ae(Z(e,o,t));return{c(){t=c("div"),a=c("m-layer"),i=c("small"),s=c("div");for(let e=0;e<d.length;e+=1)d[e].c();h(s,"class","tags-selected"),h(i,"slot","content"),B(a,"title",e[13]),B(a,"layertitletag","h3"),B(a,"isopen",e[27])},m(o,c){l(o,t,c),b(t,a),b(a,i),b(i,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);r||(n=$(a,"layer-closed",e[53]),r=!0)},p(e,t){if(67108864&t[0]|2&t[1]){let a;for(o=e[26],a=0;a<o.length;a+=1){const l=Z(e,o,a);d[a]?d[a].p(l,t):(d[a]=ae(l),d[a].c(),d[a].m(s,null))}for(;a<d.length;a+=1)d[a].d(1);d.length=o.length}8192&t[0]&&B(a,"title",e[13]),134217728&t[0]&&B(a,"isopen",e[27])},d(e){e&&z(t),L(d,e),r=!1,n()}}}function ae(e){let t,a,i,s,r,n,o;function m(){return e[52](e[62])}return{c(){t=c("div"),a=c("m-tag"),r=d(),B(a,"id",i=e[62].id),B(a,"label",s=e[62].label),B(a,"size","s"),B(a,"type","removable"),h(t,"class","tag-selected")},m(e,i){l(e,t,i),b(t,a),b(t,r),n||(o=$(a,"tag-removed",m),n=!0)},p(t,l){e=t,67108864&l[0]&&i!==(i=e[62].id)&&B(a,"id",i),67108864&l[0]&&s!==(s=e[62].label)&&B(a,"label",s)},d(e){e&&z(t),n=!1,o()}}}function le(e){let t,a,i,s,C,j,S,N,T,L,P,B,O,Q,R,Y,Z,J,K,U,ee,ae,le,se=(e[25]?e[25]:e[2])+"",re=e[8]&&e[19].length>0&&!e[16]&&V(e),ne=!e[8]&&e[25]&&e[12]&&F(e),oe=e[7]&&X();function ce(t){e[49](t)}let de={items:JSON.stringify(e[28]),open:e[20],multiple:e[8],isfiltered:ie,emptysearchlabel:e[9],maxwidth:e[0],datatextexpr:e[10],datavalueexpr:e[11],selectall:e[17],labelselectall:e[18]};void 0!==e[19]&&(de.value=e[19]),L=new H({props:de}),r.push((()=>n(L,"value",ce))),L.$on("change",e[36]),L.$on("scrollend",e[37]),L.$on("select-all",e[38]);let me=e[8]&&e[16]&&q(e),ge=e[8]&&e[16]&&te(e),pe=[{class:"mc-dropdown"},{style:U="--dropdown-tag-width: "+e[24]+"; --dropdown-width: "+e[0]+";"},e[21]],he={};for(let e=0;e<pe.length;e+=1)he=o(he,pe[e]);return{c(){t=c("div"),a=c("div"),re&&re.c(),i=d(),s=c("button"),C=m(se),j=d(),ne&&ne.c(),S=d(),N=c("div"),oe&&oe.c(),T=d(),g(L.$$.fragment),B=d(),me&&me.c(),O=d(),Q=c("span"),R=d(),Y=c("span"),Z=d(),J=c("span"),K=d(),ge&&ge.c(),this.c=p,h(s,"type","button"),h(s,"class","mc-select mc-dropdown__trigger"),s.disabled=e[3],x(s,"is-open",e[20]),x(s,"is-valid",e[5]),x(s,"is-invalid",e[6]),x(s,"mc-select--s","s"===e[4]),h(N,"class","mc-dropdown__tools"),h(a,"class","mc-dropdown__main"),h(Q,"class","mc-dropdown__tag"),u(Q,"display","none"),h(Y,"class","mc-dropdown__loader"),u(Y,"display","none"),h(J,"class","mc-text-input mc-dropdown__trigger"),u(J,"display","none"),w(t,he),x(t,"mc-dropdown--multi",e[8])},m(r,n){l(r,t,n),b(t,a),re&&re.m(a,null),b(a,i),b(a,s),b(s,C),b(s,j),ne&&ne.m(s,null),b(a,S),b(a,N),oe&&oe.m(N,null),b(t,T),f(L,t,null),b(t,B),me&&me.m(t,null),b(t,O),b(t,Q),b(t,R),b(t,Y),b(t,Z),b(t,J),b(t,K),ge&&ge.m(t,null),e[54](t),ee=!0,ae||(le=[$(s,"click",e[48]),v(W.call(null,t)),$(t,"outclick",e[35])],ae=!0)},p(e,l){e[8]&&e[19].length>0&&!e[16]?re?(re.p(e,l),590080&l[0]&&y(re,1)):(re=V(e),re.c(),y(re,1),re.m(a,i)):re&&(G(),M(re,1,1,(()=>{re=null})),k()),(!ee||33554436&l[0])&&se!==(se=(e[25]?e[25]:e[2])+"")&&I(C,se),!e[8]&&e[25]&&e[12]?ne?ne.p(e,l):(ne=F(e),ne.c(),ne.m(s,null)):ne&&(ne.d(1),ne=null),(!ee||8&l[0])&&(s.disabled=e[3]),(!ee||1048576&l[0])&&x(s,"is-open",e[20]),(!ee||32&l[0])&&x(s,"is-valid",e[5]),(!ee||64&l[0])&&x(s,"is-invalid",e[6]),(!ee||16&l[0])&&x(s,"mc-select--s","s"===e[4]),e[7]?oe?128&l[0]&&y(oe,1):(oe=X(),oe.c(),y(oe,1),oe.m(N,null)):oe&&(G(),M(oe,1,1,(()=>{oe=null})),k());const r={};268435456&l[0]&&(r.items=JSON.stringify(e[28])),1048576&l[0]&&(r.open=e[20]),256&l[0]&&(r.multiple=e[8]),512&l[0]&&(r.emptysearchlabel=e[9]),1&l[0]&&(r.maxwidth=e[0]),1024&l[0]&&(r.datatextexpr=e[10]),2048&l[0]&&(r.datavalueexpr=e[11]),131072&l[0]&&(r.selectall=e[17]),262144&l[0]&&(r.labelselectall=e[18]),!P&&524288&l[0]&&(P=!0,r.value=e[19],_((()=>P=!1))),L.$set(r),e[8]&&e[16]?me?me.p(e,l):(me=q(e),me.c(),me.m(t,O)):me&&(me.d(1),me=null),e[8]&&e[16]?ge?ge.p(e,l):(ge=te(e),ge.c(),ge.m(t,null)):ge&&(ge.d(1),ge=null),w(t,he=A(pe,[{class:"mc-dropdown"},(!ee||16777217&l[0]&&U!==(U="--dropdown-tag-width: "+e[24]+"; --dropdown-width: "+e[0]+";"))&&{style:U},2097152&l[0]&&e[21]])),x(t,"mc-dropdown--multi",e[8])},i(e){ee||(y(re),y(oe),y(L.$$.fragment,e),ee=!0)},o(e){M(re),M(oe),M(L.$$.fragment,e),ee=!1},d(a){a&&z(t),re&&re.d(),ne&&ne.d(),oe&&oe.d(),D(L),me&&me.d(),ge&&ge.d(),e[54](null),ae=!1,E(le)}}}let ie=!1;function se(e,t,a){let l,i,s,n,c,d;const m=["maxwidth","tagid","taglabel","placeholder","disabled","size","isvalid","isinvalid","loading","items","value","open","multiple","emptysearchlabel","datatextexpr","datavalueexpr","nosort","clearfield","layertitle","showmoretagslabel","maxnumbertoshowtags","alltags","selectall","labelselectall"];let g,p=C(t,m),{maxwidth:h="100%"}=t,{tagid:x}=t,{taglabel:u=""}=t,{placeholder:w="-- Placeholder --"}=t,{disabled:b=!1}=t,{size:f="m"}=t,{isvalid:$}=t,{isinvalid:v}=t,{loading:y=!1}=t,{items:M}=t,{value:k}=t,{open:I=!1}=t,{multiple:_=!1}=t,{emptysearchlabel:A="No results found"}=t,{datatextexpr:z="label"}=t,{datavalueexpr:D="value"}=t,{nosort:E=!1}=t,{clearfield:T=!1}=t,{layertitle:L="Title layer"}=t,{showmoretagslabel:P="Show more"}=t,{maxnumbertoshowtags:B=12}=t,{alltags:G=!1}=t,{selectall:W=!1}=t,{labelselectall:R="Select all"}=t;const Y=Math.random();let H,Z,J,V,F=new Q(j(),S()),X="0px",q=[],K=null;function U(){a(19,s=_?[]:""),le(),F.dispatch("clear",!0)}function ee(e){a(19,s=s.filter((t=>t!==e))),F.dispatch("onchange",s)}function te(){a(27,K=!0)}function ae(){a(27,K=null)}function le(){a(20,c=!1),_&&!E?function(){V=l;const e=ie();V.sort(((t,a)=>{const l=e.includes(t),i=e.includes(a);return l===i?t[D]-a[D]:l<i?1:-1})),a(28,i=V)}():a(28,i=l)}function ie(e){const t=e||s;return l.filter((e=>_?t.includes(e[D]):t===e[D]))}return e.$$set=e=>{t=o(o({},t),N(e)),a(61,p=C(t,m)),"maxwidth"in e&&a(0,h=e.maxwidth),"tagid"in e&&a(1,x=e.tagid),"taglabel"in e&&a(39,u=e.taglabel),"placeholder"in e&&a(2,w=e.placeholder),"disabled"in e&&a(3,b=e.disabled),"size"in e&&a(4,f=e.size),"isvalid"in e&&a(5,$=e.isvalid),"isinvalid"in e&&a(6,v=e.isinvalid),"loading"in e&&a(7,y=e.loading),"items"in e&&a(40,M=e.items),"value"in e&&a(41,k=e.value),"open"in e&&a(42,I=e.open),"multiple"in e&&a(8,_=e.multiple),"emptysearchlabel"in e&&a(9,A=e.emptysearchlabel),"datatextexpr"in e&&a(10,z=e.datatextexpr),"datavalueexpr"in e&&a(11,D=e.datavalueexpr),"nosort"in e&&a(43,E=e.nosort),"clearfield"in e&&a(12,T=e.clearfield),"layertitle"in e&&a(13,L=e.layertitle),"showmoretagslabel"in e&&a(14,P=e.showmoretagslabel),"maxnumbertoshowtags"in e&&a(15,B=e.maxnumbertoshowtags),"alltags"in e&&a(16,G=e.alltags),"selectall"in e&&a(17,W=e.selectall),"labelselectall"in e&&a(18,R=e.labelselectall)},e.$$.update=()=>{if(512&e.$$.dirty[1]&&a(45,l=M?JSON.parse(M):[]),16384&e.$$.dirty[1]&&a(28,i=l),256&e.$$.dirty[0]|1024&e.$$.dirty[1]&&a(19,s=!k&&_?[]:k?JSON.parse(k):k),524288&e.$$.dirty[0]|256&e.$$.dirty[1]&&a(29,n=()=>s.length.toString()+" "+u),524288&e.$$.dirty[0]&&async function(e){await O(),a(26,q=ie(e));const t=q.map((e=>e[z]));a(25,J=t.join(", ")),_&&a(44,Z=e)}(s),8192&e.$$.dirty[1]&&async function(e){var t,l;await O(),a(24,X=H&&e&&e.length?`${null!==(l=null===(t=null==g?void 0:g.querySelector(".mc-tag-removable"))||void 0===t?void 0:t.clientWidth)&&void 0!==l?l:8}px`:"0px")}(Z),2048&e.$$.dirty[1]&&a(20,c=I),1048576&e.$$.dirty[0]){const e=c?"open":"close";F.dispatch(e,c)}a(21,d=Object.assign({},p)),2097152&e.$$.dirty[0]&&delete d.class},[h,x,w,b,f,$,v,y,_,A,z,D,T,L,P,B,G,W,R,s,c,d,g,H,X,J,q,K,i,n,Y,U,ee,te,ae,le,function(){F.dispatch("onchange",s),_||le()},function(){F.dispatch("scrollend",!0)},function(e){F.dispatch("select-all",e.detail)},u,M,k,I,E,Z,l,function(e){r[e?"unshift":"push"]((()=>{H=e,a(23,H)}))},()=>{U()},()=>a(20,c=!c),function(e){s=e,a(19,s),a(41,k),a(8,_)},e=>ee(e.id),()=>te(),e=>ee(e.id),()=>ae(),function(e){r[e?"unshift":"push"]((()=>{g=e,a(22,g)}))}]}class re extends e{constructor(e){super();const r=document.createElement("style");r.textContent=".mc-select{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;margin:0;-webkit-box-shadow:none;box-shadow:none;border:none;font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\");background-color:#ffffff;background-repeat:no-repeat;background-size:1rem 1rem, 1.5rem 1.5rem;border:1px solid #666666;border-radius:4px;color:#191919;-webkit-transition:border-color 200ms ease, -webkit-box-shadow 200ms ease;transition:border-color 200ms ease, -webkit-box-shadow 200ms ease;transition:border-color 200ms ease, box-shadow 200ms ease;transition:border-color 200ms ease, box-shadow 200ms ease, -webkit-box-shadow 200ms ease;width:100%}.mc-select[type=number]::-webkit-inner-spin-button,.mc-select[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.mc-select[type=number]{-moz-appearance:textfield}.mc-select[type=search]::-webkit-search-decoration:hover,.mc-select[type=search]::-webkit-search-cancel-button:hover{cursor:pointer}.mc-select::-ms-expand{display:none}.mc-select.is-hover,.mc-select:hover{border-color:#191919}.mc-select.is-focus,.mc-select:focus{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-select:disabled{background-color:#e6e6e6;border-color:#e6e6e6;color:#666666;cursor:not-allowed;opacity:1}.mc-select.is-invalid{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\"), url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjExMTIiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTEyIDdhMSAxIDAgMDAtMSAxdjQuMzhhMSAxIDAgMDAyIDBWOGExIDEgMCAwMC0xLTF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxNiIgcj0iMSIvPjwvc3ZnPg==\");border-color:#c61112}.mc-select.is-valid{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23191919' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E\"), url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiBmaWxsPSIjNDZhNjEwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMiA0YTggOCAwIDExLTggOCA4IDggMCAwMTgtOG0wLTJhMTAgMTAgMCAxMDEwIDEwQTEwIDEwIDAgMDAxMiAyeiIvPjxwYXRoIGQ9Ik0xMC43MyAxNS43NWExIDEgMCAwMS0uNjgtLjI2bC0zLTIuNzRhMSAxIDAgMDExLjM2LTEuNDdsMi4yNSAyLjA4IDQuMzYtNC40MmExIDEgMCAxMTEuNDIgMS40MWwtNSA1LjFhMSAxIDAgMDEtLjcxLjN6Ii8+PC9zdmc+\");border-color:#46a610}.mc-select--s{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}@media screen and (min-width: 680px){.mc-select--s\\@from-m{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-m{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1024px){.mc-select--s\\@from-l{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-l{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1280px){.mc-select--s\\@from-xl{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-xl{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}@media screen and (min-width: 1920px){.mc-select--s\\@from-xxl{font-size:0.875rem;line-height:1.1428571429;background-position:right 0.5rem center, right 2rem center;padding:calc(0.5rem - 1px) 2rem calc(0.5rem - 1px) calc(0.5rem - 1px)}.mc-select--m\\@from-xxl{font-size:1rem;line-height:1.125;background-position:right 1rem center, right 2.5rem center;padding:calc(0.9375rem - 1px) 3rem calc(0.9375rem - 1px) calc(0.75rem - 1px)}}.mc-dropdown{-ms-flex-item-align:start;align-self:start;position:relative;min-width:18rem;max-width:var(--dropdown-width, auto);width:100%}.mc-dropdown__tag,.mc-dropdown__tools{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);z-index:2}.mc-dropdown__tag{left:0.75rem}.mc-dropdown__trigger{display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.mc-dropdown__trigger.is-open{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1rem' width='1rem' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M2 10.5a1 1 0 01.29-.71l5-5a1 1 0 011.42 0l5 5a1 1 0 01-1.42 1.42L8 6.91l-4.29 4.3a1 1 0 01-1.42 0A1 1 0 012 10.5z'/%3E%3C/svg%3E\")}.mc-dropdown__tools{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0.5rem;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;right:2.5rem}.is-valid+.mc-dropdown__tools,.is-invalid+.mc-dropdown__tools{right:4.5rem}.mc-dropdown__clear{margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;border:none;cursor:pointer;padding:0;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;-webkit-transition:-webkit-box-shadow 150ms ease;transition:-webkit-box-shadow 150ms ease;transition:box-shadow 150ms ease;transition:box-shadow 150ms ease, -webkit-box-shadow 150ms ease;background:none;border-radius:50%}.mc-dropdown__clear:focus{-webkit-box-shadow:0 0 0 2px #0b96cc;box-shadow:0 0 0 2px #0b96cc}.mc-dropdown__clear,.mc-dropdown__clear-icon{height:1.5rem;width:1.5rem}.mc-dropdown__clear-icon{fill:#666666}.mc-dropdown__clear-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.mc-dropdown--multi .mc-dropdown__trigger{padding-left:calc(0.75rem + var(--dropdown-tag-width, 0px))}.mc-dropdown{min-width:auto}.mc-dropdown__tag{position:absolute !important}.mc-dropdown--multi .mc-dropdown__trigger{padding-left:calc(0.75rem + var(--dropdown-tag-width)) !important}.tags-selected{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.tag-selected{margin-top:1em;margin-left:5px;margin-right:5px}",this.shadowRoot.appendChild(r),t(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},se,le,s,{maxwidth:0,tagid:1,taglabel:39,placeholder:2,disabled:3,size:4,isvalid:5,isinvalid:6,loading:7,items:40,value:41,open:42,multiple:8,emptysearchlabel:9,datatextexpr:10,datavalueexpr:11,nosort:43,clearfield:12,layertitle:13,showmoretagslabel:14,maxnumbertoshowtags:15,alltags:16,selectall:17,labelselectall:18},null,[-1,-1,-1]),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),i()))}static get observedAttributes(){return["maxwidth","tagid","taglabel","placeholder","disabled","size","isvalid","isinvalid","loading","items","value","open","multiple","emptysearchlabel","datatextexpr","datavalueexpr","nosort","clearfield","layertitle","showmoretagslabel","maxnumbertoshowtags","alltags","selectall","labelselectall"]}get maxwidth(){return this.$$.ctx[0]}set maxwidth(e){this.$$set({maxwidth:e}),i()}get tagid(){return this.$$.ctx[1]}set tagid(e){this.$$set({tagid:e}),i()}get taglabel(){return this.$$.ctx[39]}set taglabel(e){this.$$set({taglabel:e}),i()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),i()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),i()}get size(){return this.$$.ctx[4]}set size(e){this.$$set({size:e}),i()}get isvalid(){return this.$$.ctx[5]}set isvalid(e){this.$$set({isvalid:e}),i()}get isinvalid(){return this.$$.ctx[6]}set isinvalid(e){this.$$set({isinvalid:e}),i()}get loading(){return this.$$.ctx[7]}set loading(e){this.$$set({loading:e}),i()}get items(){return this.$$.ctx[40]}set items(e){this.$$set({items:e}),i()}get value(){return this.$$.ctx[41]}set value(e){this.$$set({value:e}),i()}get open(){return this.$$.ctx[42]}set open(e){this.$$set({open:e}),i()}get multiple(){return this.$$.ctx[8]}set multiple(e){this.$$set({multiple:e}),i()}get emptysearchlabel(){return this.$$.ctx[9]}set emptysearchlabel(e){this.$$set({emptysearchlabel:e}),i()}get datatextexpr(){return this.$$.ctx[10]}set datatextexpr(e){this.$$set({datatextexpr:e}),i()}get datavalueexpr(){return this.$$.ctx[11]}set datavalueexpr(e){this.$$set({datavalueexpr:e}),i()}get nosort(){return this.$$.ctx[43]}set nosort(e){this.$$set({nosort:e}),i()}get clearfield(){return this.$$.ctx[12]}set clearfield(e){this.$$set({clearfield:e}),i()}get layertitle(){return this.$$.ctx[13]}set layertitle(e){this.$$set({layertitle:e}),i()}get showmoretagslabel(){return this.$$.ctx[14]}set showmoretagslabel(e){this.$$set({showmoretagslabel:e}),i()}get maxnumbertoshowtags(){return this.$$.ctx[15]}set maxnumbertoshowtags(e){this.$$set({maxnumbertoshowtags:e}),i()}get alltags(){return this.$$.ctx[16]}set alltags(e){this.$$set({alltags:e}),i()}get selectall(){return this.$$.ctx[17]}set selectall(e){this.$$set({selectall:e}),i()}get labelselectall(){return this.$$.ctx[18]}set labelselectall(e){this.$$set({labelselectall:e}),i()}}export{re as default};
2
2
  //# sourceMappingURL=Dropdown.js.map
@@ -1,2 +1,2 @@
1
- import{S as e,i as t,a as i,b as r,f as s,s as l,c as n,e as d,t as a,d as m,n as o,h as c,j as h,l as p,o as u,p as g,q as f,r as $,x}from"../../index-d12e76e8.js";function _(e){let t,i;return{c(){t=d("span"),i=a(e[2]),c(t,"class","mc-field__requirement"),c(t,"aria-hidden","true")},m(e,s){r(e,t,s),p(t,i)},p(e,t){4&t&&u(i,e[2])},d(e){e&&f(t)}}}function b(e){let t,i;return{c(){t=d("span"),i=a(e[4]),c(t,"id",e[3]),c(t,"class","mc-field__help")},m(e,s){r(e,t,s),p(t,i)},p(e,r){16&r&&u(i,e[4]),8&r&&c(t,"id",e[3])},d(e){e&&f(t)}}}function q(e){let t,i;return{c(){t=d("span"),i=a(e[6]),c(t,"id",e[5]),c(t,"class","mc-field__error-message")},m(e,s){r(e,t,s),p(t,i)},p(e,r){64&r&&u(i,e[6]),32&r&&c(t,"id",e[5])},d(e){e&&f(t)}}}function v(e){let t,i,s,l,$,x,v,w,y=e[2]&&_(e),j=e[3]&&e[4]&&b(e),k=e[7]&&q(e),z=[{class:"mc-field"},e[8]],C={};for(let e=0;e<z.length;e+=1)C=n(C,z[e]);return{c(){t=d("div"),i=d("label"),s=a(e[1]),l=m(),y&&y.c(),$=m(),j&&j.c(),x=m(),v=d("slot"),w=m(),k&&k.c(),this.c=o,c(i,"for",e[0]),c(i,"class","mc-field__label"),h(t,C)},m(e,n){r(e,t,n),p(t,i),p(i,s),p(i,l),y&&y.m(i,null),p(t,$),j&&j.m(t,null),p(t,x),p(t,v),p(t,w),k&&k.m(t,null)},p(e,[r]){2&r&&u(s,e[1]),e[2]?y?y.p(e,r):(y=_(e),y.c(),y.m(i,null)):y&&(y.d(1),y=null),1&r&&c(i,"for",e[0]),e[3]&&e[4]?j?j.p(e,r):(j=b(e),j.c(),j.m(t,x)):j&&(j.d(1),j=null),e[7]?k?k.p(e,r):(k=q(e),k.c(),k.m(t,null)):k&&(k.d(1),k=null),h(t,C=g(z,[{class:"mc-field"},256&r&&e[8]]))},i:o,o:o,d(e){e&&f(t),y&&y.d(),j&&j.d(),k&&k.d()}}}function w(e,t,i){let r;const s=["id","label","requirementtext","helpid","helptext","errorid","errormessage","isinvalid"];let l=$(t,s),{id:d}=t,{label:a}=t,{requirementtext:m}=t,{helpid:o}=t,{helptext:c}=t,{errorid:h}=t,{errormessage:p}=t,{isinvalid:u=!1}=t;return e.$$set=e=>{t=n(n({},t),x(e)),i(9,l=$(t,s)),"id"in e&&i(0,d=e.id),"label"in e&&i(1,a=e.label),"requirementtext"in e&&i(2,m=e.requirementtext),"helpid"in e&&i(3,o=e.helpid),"helptext"in e&&i(4,c=e.helptext),"errorid"in e&&i(5,h=e.errorid),"errormessage"in e&&i(6,p=e.errormessage),"isinvalid"in e&&i(7,u=e.isinvalid)},e.$$.update=()=>{i(8,r=Object.assign({},l)),256&e.$$.dirty&&delete r.class},[d,a,m,o,c,h,p,u,r]}class y extends e{constructor(e){super();const n=document.createElement("style");n.textContent='@charset "UTF-8";.mc-field__label,.mc-field__legend{font-size:0.875rem;line-height:1.2857142857;font-weight:400;color:#333333}.mc-field__legend{padding-left:0;padding-right:0}.mc-field__requirement,.mc-field__help{font-size:0.75rem;line-height:1.3333333333;font-weight:400;color:#666666}.mc-field__requirement::before{content:" - "}.mc-field__help{display:block;margin-top:0.125rem}@media screen and (min-width: 769px){.mc-field__container--inline,.mc-field__element--inline{display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width: 769px){}@media screen and (min-width: 1024px){}.mc-field__item:not(:last-child){margin-bottom:1rem}.mc-field__error-message{font-size:0.875rem;line-height:1.2857142857;color:#c61112;display:inline-block;margin-top:0.25rem}.mc-field--group{border:none;margin-left:0;margin-right:0;padding:0}.mc-field--group .mc-field__error-message{margin-top:0.5rem}',this.shadowRoot.appendChild(n),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},w,v,l,{id:0,label:1,requirementtext:2,helpid:3,helptext:4,errorid:5,errormessage:6,isinvalid:7},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),s()))}static get observedAttributes(){return["id","label","requirementtext","helpid","helptext","errorid","errormessage","isinvalid"]}get id(){return this.$$.ctx[0]}set id(e){this.$$set({id:e}),s()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),s()}get requirementtext(){return this.$$.ctx[2]}set requirementtext(e){this.$$set({requirementtext:e}),s()}get helpid(){return this.$$.ctx[3]}set helpid(e){this.$$set({helpid:e}),s()}get helptext(){return this.$$.ctx[4]}set helptext(e){this.$$set({helptext:e}),s()}get errorid(){return this.$$.ctx[5]}set errorid(e){this.$$set({errorid:e}),s()}get errormessage(){return this.$$.ctx[6]}set errormessage(e){this.$$set({errormessage:e}),s()}get isinvalid(){return this.$$.ctx[7]}set isinvalid(e){this.$$set({isinvalid:e}),s()}}export{y as default};
1
+ import{S as e,i as t,a as i,b as r,f as s,s as l,c as n,e as d,t as a,d as m,n as o,h as c,j as h,l as p,o as u,p as g,q as f,r as $,x}from"../../index-48da6c1f.js";function _(e){let t,i;return{c(){t=d("span"),i=a(e[2]),c(t,"class","mc-field__requirement"),c(t,"aria-hidden","true")},m(e,s){r(e,t,s),p(t,i)},p(e,t){4&t&&u(i,e[2])},d(e){e&&f(t)}}}function b(e){let t,i;return{c(){t=d("span"),i=a(e[4]),c(t,"id",e[3]),c(t,"class","mc-field__help")},m(e,s){r(e,t,s),p(t,i)},p(e,r){16&r&&u(i,e[4]),8&r&&c(t,"id",e[3])},d(e){e&&f(t)}}}function q(e){let t,i;return{c(){t=d("span"),i=a(e[6]),c(t,"id",e[5]),c(t,"class","mc-field__error-message")},m(e,s){r(e,t,s),p(t,i)},p(e,r){64&r&&u(i,e[6]),32&r&&c(t,"id",e[5])},d(e){e&&f(t)}}}function v(e){let t,i,s,l,$,x,v,w,y=e[2]&&_(e),j=e[3]&&e[4]&&b(e),k=e[7]&&q(e),z=[{class:"mc-field"},e[8]],C={};for(let e=0;e<z.length;e+=1)C=n(C,z[e]);return{c(){t=d("div"),i=d("label"),s=a(e[1]),l=m(),y&&y.c(),$=m(),j&&j.c(),x=m(),v=d("slot"),w=m(),k&&k.c(),this.c=o,c(i,"for",e[0]),c(i,"class","mc-field__label"),h(t,C)},m(e,n){r(e,t,n),p(t,i),p(i,s),p(i,l),y&&y.m(i,null),p(t,$),j&&j.m(t,null),p(t,x),p(t,v),p(t,w),k&&k.m(t,null)},p(e,[r]){2&r&&u(s,e[1]),e[2]?y?y.p(e,r):(y=_(e),y.c(),y.m(i,null)):y&&(y.d(1),y=null),1&r&&c(i,"for",e[0]),e[3]&&e[4]?j?j.p(e,r):(j=b(e),j.c(),j.m(t,x)):j&&(j.d(1),j=null),e[7]?k?k.p(e,r):(k=q(e),k.c(),k.m(t,null)):k&&(k.d(1),k=null),h(t,C=g(z,[{class:"mc-field"},256&r&&e[8]]))},i:o,o:o,d(e){e&&f(t),y&&y.d(),j&&j.d(),k&&k.d()}}}function w(e,t,i){let r;const s=["id","label","requirementtext","helpid","helptext","errorid","errormessage","isinvalid"];let l=$(t,s),{id:d}=t,{label:a}=t,{requirementtext:m}=t,{helpid:o}=t,{helptext:c}=t,{errorid:h}=t,{errormessage:p}=t,{isinvalid:u=!1}=t;return e.$$set=e=>{t=n(n({},t),x(e)),i(9,l=$(t,s)),"id"in e&&i(0,d=e.id),"label"in e&&i(1,a=e.label),"requirementtext"in e&&i(2,m=e.requirementtext),"helpid"in e&&i(3,o=e.helpid),"helptext"in e&&i(4,c=e.helptext),"errorid"in e&&i(5,h=e.errorid),"errormessage"in e&&i(6,p=e.errormessage),"isinvalid"in e&&i(7,u=e.isinvalid)},e.$$.update=()=>{i(8,r=Object.assign({},l)),256&e.$$.dirty&&delete r.class},[d,a,m,o,c,h,p,u,r]}class y extends e{constructor(e){super();const n=document.createElement("style");n.textContent='@charset "UTF-8";.mc-field__label,.mc-field__legend{font-size:0.875rem;line-height:1.2857142857;font-weight:400;color:#333333}.mc-field__legend{padding-left:0;padding-right:0}.mc-field__requirement,.mc-field__help{font-size:0.75rem;line-height:1.3333333333;font-weight:400;color:#666666}.mc-field__requirement::before{content:" - "}.mc-field__help{display:block;margin-top:0.125rem}@media screen and (min-width: 769px){.mc-field__container--inline,.mc-field__element--inline{display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width: 769px){}@media screen and (min-width: 1024px){}.mc-field__item:not(:last-child){margin-bottom:1rem}.mc-field__error-message{font-size:0.875rem;line-height:1.2857142857;color:#c61112;display:inline-block;margin-top:0.25rem}.mc-field--group{border:none;margin-left:0;margin-right:0;padding:0}.mc-field--group .mc-field__error-message{margin-top:0.5rem}',this.shadowRoot.appendChild(n),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},w,v,l,{id:0,label:1,requirementtext:2,helpid:3,helptext:4,errorid:5,errormessage:6,isinvalid:7},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),s()))}static get observedAttributes(){return["id","label","requirementtext","helpid","helptext","errorid","errormessage","isinvalid"]}get id(){return this.$$.ctx[0]}set id(e){this.$$set({id:e}),s()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),s()}get requirementtext(){return this.$$.ctx[2]}set requirementtext(e){this.$$set({requirementtext:e}),s()}get helpid(){return this.$$.ctx[3]}set helpid(e){this.$$set({helpid:e}),s()}get helptext(){return this.$$.ctx[4]}set helptext(e){this.$$set({helptext:e}),s()}get errorid(){return this.$$.ctx[5]}set errorid(e){this.$$set({errorid:e}),s()}get errormessage(){return this.$$.ctx[6]}set errormessage(e){this.$$set({errormessage:e}),s()}get isinvalid(){return this.$$.ctx[7]}set isinvalid(e){this.$$set({isinvalid:e}),s()}}export{y as default};
2
2
  //# sourceMappingURL=Field.js.map
@@ -1,2 +1,2 @@
1
- import{S as e,i as l,a as t,b as i,f as s,s as a,e as r,d as o,t as n,n as d,h as c,l as m,m as p,o as f,A as u,y as b,z as h,q as $,v as x,w as g,D as w,E as v,F as _,B as y,J as k}from"../../index-d12e76e8.js";import{E}from"../../EventHandler-f7ee47ca.js";import z from"./fileuploader-result.nested.js";function C(e){let l,t;return l=new z({props:{files:e[8],allowedExtensions:e[11],disabled:e[6],maxSize:e[12],removelabel:e[7],errorLabels:e[13]}}),l.$on("file-removed",e[15]),{c(){w(l.$$.fragment)},m(e,i){v(l,e,i),t=!0},p(e,t){const i={};256&t&&(i.files=e[8]),2048&t&&(i.allowedExtensions=e[11]),64&t&&(i.disabled=e[6]),4096&t&&(i.maxSize=e[12]),128&t&&(i.removelabel=e[7]),8192&t&&(i.errorLabels=e[13]),l.$set(i)},i(e){t||(u(l.$$.fragment,e),t=!0)},o(e){b(l.$$.fragment,e),t=!1},d(e){_(l,e)}}}function S(e){let l,t;return l=new z({props:{files:e[10],allowedExtensions:e[11],disabled:e[6],maxSize:e[12],removelabel:e[7],errorLabels:e[13]}}),l.$on("file-removed",e[16]),{c(){w(l.$$.fragment)},m(e,i){v(l,e,i),t=!0},p(e,t){const i={};1024&t&&(i.files=e[10]),2048&t&&(i.allowedExtensions=e[11]),64&t&&(i.disabled=e[6]),4096&t&&(i.maxSize=e[12]),128&t&&(i.removelabel=e[7]),8192&t&&(i.errorLabels=e[13]),l.$set(i)},i(e){t||(u(l.$$.fragment,e),t=!0)},o(e){b(l.$$.fragment,e),t=!1},d(e){_(l,e)}}}function A(e){let l,t,s,a,x,g,w,v,_,k,E,z=e[0]&&e[8]&&e[8].length>0&&C(e),A=e[10].length>0&&S(e);return{c(){l=r("div"),t=r("input"),s=o(),a=r("label"),x=r("span"),g=n(e[3]),w=o(),z&&z.c(),v=o(),A&&A.c(),this.c=d,c(t,"id",e[1]),c(t,"name",e[2]),c(t,"type","file"),c(t,"class","mc-fileuploader__input"),c(t,"accept",e[4]),t.multiple=e[5],t.disabled=e[6],c(x,"class","mc-fileuploader__label--center"),c(a,"for",e[1]),c(a,"class","mc-fileuploader__label"),c(l,"class","mc-fileuploader")},m(r,o){i(r,l,o),m(l,t),m(l,s),m(l,a),m(a,x),m(x,g),m(l,w),z&&z.m(l,null),m(l,v),A&&A.m(l,null),e[22](l),_=!0,k||(E=p(t,"change",e[14]),k=!0)},p(e,[i]){(!_||2&i)&&c(t,"id",e[1]),(!_||4&i)&&c(t,"name",e[2]),(!_||16&i)&&c(t,"accept",e[4]),(!_||32&i)&&(t.multiple=e[5]),(!_||64&i)&&(t.disabled=e[6]),(!_||8&i)&&f(g,e[3]),(!_||2&i)&&c(a,"for",e[1]),e[0]&&e[8]&&e[8].length>0?z?(z.p(e,i),257&i&&u(z,1)):(z=C(e),z.c(),u(z,1),z.m(l,v)):z&&(y(),b(z,1,1,(()=>{z=null})),h()),e[10].length>0?A?(A.p(e,i),1024&i&&u(A,1)):(A=S(e),A.c(),u(A,1),A.m(l,null)):A&&(y(),b(A,1,1,(()=>{A=null})),h())},i(e){_||(u(z),u(A),_=!0)},o(e){b(z),b(A),_=!1},d(t){t&&$(l),z&&z.d(),A&&A.d(),e[22](null),k=!1,E()}}}function M(e,l){const t=Array.from(e),i=t.indexOf(l);return-1!==i&&t.splice(i,1),t}function L(e,l,t){let i,s,a,r,o,n,{id:d}=l,{name:c}=l,{label:m}=l,{accept:p}=l,{multiple:f=!0}=l,{allowedextensions:u}=l,{maxsize:b}=l,{displayfileslist:h=!1}=l,{disabled:$=!1}=l,{removelabel:w="Remove"}=l,{uploadedfiles:v}=l,{errorlabels:_}=l,{stateless:y}=l,z=new E(x(),g());return e.$$set=e=>{"id"in e&&t(1,d=e.id),"name"in e&&t(2,c=e.name),"label"in e&&t(3,m=e.label),"accept"in e&&t(4,p=e.accept),"multiple"in e&&t(5,f=e.multiple),"allowedextensions"in e&&t(17,u=e.allowedextensions),"maxsize"in e&&t(18,b=e.maxsize),"displayfileslist"in e&&t(0,h=e.displayfileslist),"disabled"in e&&t(6,$=e.disabled),"removelabel"in e&&t(7,w=e.removelabel),"uploadedfiles"in e&&t(19,v=e.uploadedfiles),"errorlabels"in e&&t(20,_=e.errorlabels),"stateless"in e&&t(21,y=e.stateless)},e.$$.update=()=>{131072&e.$$.dirty&&t(11,i=u?JSON.parse(u):[]),524288&e.$$.dirty&&t(10,s=v?JSON.parse(v):[]),e.$$.dirty,262144&e.$$.dirty&&t(12,a=b||void 0),1048576&e.$$.dirty&&t(13,r=_?JSON.parse(_):[])},[h,d,c,m,p,f,$,w,o,n,s,i,a,r,function(e){const l=e.target;t(8,o=l.files),t(0,h=!0);const s=[];if([...o].forEach(((e,l)=>{const t=e.name,r=e.size,o=function(e){if(i&&i.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(i&&!i.includes(String(l)))return!1}return!0}(t),n=function(e){return!(a&&e/1024/1024>a)}(r);let d="";o||(d="invalid-extension"),n||(d="invalid-size"),o&&n||s.push({index:l,fileName:t,fileSize:r,errorType:d})})),s.length>0&&z.dispatch(x(),"invalid-files",s),z.dispatch("change",o),y){n.querySelector(".mc-fileuploader__input").value=""}},function(e){t(8,o=M(o,e.detail)),n.querySelector(".mc-fileuploader__input").value="",z.dispatch("file-removed",e.detail)},function(e){const l=M(s,e.detail);t(10,s=l),z.dispatch("uploaded-file-removed",e.detail)},u,b,v,_,y,function(e){k[e?"unshift":"push"]((()=>{n=e,t(9,n)}))}]}class O extends e{constructor(e){super();const r=document.createElement("style");r.textContent=".mc-fileuploader{position:relative;display:block}.mc-fileuploader__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;-o-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}:focus+.mc-fileuploader__label{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}:hover+.mc-fileuploader__label{color:#006902;background-color:#ebf5de}:disabled+.mc-fileuploader__label{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}:disabled+.mc-fileuploader__label::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}",this.shadowRoot.appendChild(r),l(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},L,A,a,{id:1,name:2,label:3,accept:4,multiple:5,allowedextensions:17,maxsize:18,displayfileslist:0,disabled:6,removelabel:7,uploadedfiles:19,errorlabels:20,stateless:21},null),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),s()))}static get observedAttributes(){return["id","name","label","accept","multiple","allowedextensions","maxsize","displayfileslist","disabled","removelabel","uploadedfiles","errorlabels","stateless"]}get id(){return this.$$.ctx[1]}set id(e){this.$$set({id:e}),s()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),s()}get label(){return this.$$.ctx[3]}set label(e){this.$$set({label:e}),s()}get accept(){return this.$$.ctx[4]}set accept(e){this.$$set({accept:e}),s()}get multiple(){return this.$$.ctx[5]}set multiple(e){this.$$set({multiple:e}),s()}get allowedextensions(){return this.$$.ctx[17]}set allowedextensions(e){this.$$set({allowedextensions:e}),s()}get maxsize(){return this.$$.ctx[18]}set maxsize(e){this.$$set({maxsize:e}),s()}get displayfileslist(){return this.$$.ctx[0]}set displayfileslist(e){this.$$set({displayfileslist:e}),s()}get disabled(){return this.$$.ctx[6]}set disabled(e){this.$$set({disabled:e}),s()}get removelabel(){return this.$$.ctx[7]}set removelabel(e){this.$$set({removelabel:e}),s()}get uploadedfiles(){return this.$$.ctx[19]}set uploadedfiles(e){this.$$set({uploadedfiles:e}),s()}get errorlabels(){return this.$$.ctx[20]}set errorlabels(e){this.$$set({errorlabels:e}),s()}get stateless(){return this.$$.ctx[21]}set stateless(e){this.$$set({stateless:e}),s()}}export{O as default};
1
+ import{S as e,i as l,a as t,b as s,f as i,s as a,e as r,d as o,t as n,n as d,h as c,l as p,m,o as f,A as u,y as b,z as h,q as $,v as x,w as g,D as v,E as w,F as _,B as y,J as k}from"../../index-48da6c1f.js";import{E}from"../../EventHandler-f7ee47ca.js";import z from"./fileuploader-result.nested.js";function C(e){let l,t;return l=new z({props:{files:e[8],allowedExtensions:e[11],disabled:e[6],maxSize:e[12],removelabel:e[7],errorLabels:e[13]}}),l.$on("file-removed",e[15]),{c(){v(l.$$.fragment)},m(e,s){w(l,e,s),t=!0},p(e,t){const s={};256&t&&(s.files=e[8]),2048&t&&(s.allowedExtensions=e[11]),64&t&&(s.disabled=e[6]),4096&t&&(s.maxSize=e[12]),128&t&&(s.removelabel=e[7]),8192&t&&(s.errorLabels=e[13]),l.$set(s)},i(e){t||(u(l.$$.fragment,e),t=!0)},o(e){b(l.$$.fragment,e),t=!1},d(e){_(l,e)}}}function S(e){let l,t;return l=new z({props:{files:e[10],allowedExtensions:e[11],disabled:e[6],maxSize:e[12],removelabel:e[7],errorLabels:e[13]}}),l.$on("file-removed",e[16]),{c(){v(l.$$.fragment)},m(e,s){w(l,e,s),t=!0},p(e,t){const s={};1024&t&&(s.files=e[10]),2048&t&&(s.allowedExtensions=e[11]),64&t&&(s.disabled=e[6]),4096&t&&(s.maxSize=e[12]),128&t&&(s.removelabel=e[7]),8192&t&&(s.errorLabels=e[13]),l.$set(s)},i(e){t||(u(l.$$.fragment,e),t=!0)},o(e){b(l.$$.fragment,e),t=!1},d(e){_(l,e)}}}function P(e){let l,t,i,a,x,g,v,w,_,k,E,z=e[0]&&e[8]&&e[8].length>0&&C(e),P=e[10].length>0&&S(e);return{c(){l=r("div"),t=r("input"),i=o(),a=r("label"),x=r("span"),g=n(e[3]),v=o(),z&&z.c(),w=o(),P&&P.c(),this.c=d,c(t,"id",e[1]),c(t,"name",e[2]),c(t,"type","file"),c(t,"class","mc-fileuploader__input"),c(t,"accept",e[4]),t.multiple=e[5],t.disabled=e[6],c(x,"class","mc-fileuploader__label--center"),c(a,"for",e[1]),c(a,"class","mc-fileuploader__label"),c(l,"class","mc-fileuploader")},m(r,o){s(r,l,o),p(l,t),p(l,i),p(l,a),p(a,x),p(x,g),p(l,v),z&&z.m(l,null),p(l,w),P&&P.m(l,null),e[23](l),_=!0,k||(E=m(t,"change",e[14]),k=!0)},p(e,[s]){(!_||2&s)&&c(t,"id",e[1]),(!_||4&s)&&c(t,"name",e[2]),(!_||16&s)&&c(t,"accept",e[4]),(!_||32&s)&&(t.multiple=e[5]),(!_||64&s)&&(t.disabled=e[6]),(!_||8&s)&&f(g,e[3]),(!_||2&s)&&c(a,"for",e[1]),e[0]&&e[8]&&e[8].length>0?z?(z.p(e,s),257&s&&u(z,1)):(z=C(e),z.c(),u(z,1),z.m(l,w)):z&&(y(),b(z,1,1,(()=>{z=null})),h()),e[10].length>0?P?(P.p(e,s),1024&s&&u(P,1)):(P=S(e),P.c(),u(P,1),P.m(l,null)):P&&(y(),b(P,1,1,(()=>{P=null})),h())},i(e){_||(u(z),u(P),_=!0)},o(e){b(z),b(P),_=!1},d(t){t&&$(l),z&&z.d(),P&&P.d(),e[23](null),k=!1,E()}}}function A(e,l){const t=Array.from(e),s=t.indexOf(l);-1!==s&&t.splice(s,1);const i=new DataTransfer;return t.forEach((e=>i.items.add(e))),i.files}function M(e,l,t){let s,i,a,r,o,n,{id:d}=l,{name:c}=l,{label:p}=l,{accept:m}=l,{multiple:f=!0}=l,{allowedextensions:u}=l,{maxsize:b}=l,{displayfileslist:h=!1}=l,{disabled:$=!1}=l,{removelabel:v="Remove"}=l,{uploadedfiles:w}=l,{errorlabels:_}=l,{stateless:y}=l,{keepPrevious:z}=l,C=new E(x(),g());return e.$$set=e=>{"id"in e&&t(1,d=e.id),"name"in e&&t(2,c=e.name),"label"in e&&t(3,p=e.label),"accept"in e&&t(4,m=e.accept),"multiple"in e&&t(5,f=e.multiple),"allowedextensions"in e&&t(17,u=e.allowedextensions),"maxsize"in e&&t(18,b=e.maxsize),"displayfileslist"in e&&t(0,h=e.displayfileslist),"disabled"in e&&t(6,$=e.disabled),"removelabel"in e&&t(7,v=e.removelabel),"uploadedfiles"in e&&t(19,w=e.uploadedfiles),"errorlabels"in e&&t(20,_=e.errorlabels),"stateless"in e&&t(21,y=e.stateless),"keepPrevious"in e&&t(22,z=e.keepPrevious)},e.$$.update=()=>{131072&e.$$.dirty&&t(11,s=u?JSON.parse(u):[]),524288&e.$$.dirty&&t(10,i=w?JSON.parse(w):[]),e.$$.dirty,262144&e.$$.dirty&&t(12,a=b||void 0),1048576&e.$$.dirty&&t(13,r=_?JSON.parse(_):[])},[h,d,c,p,m,f,$,v,o,n,i,s,a,r,function(e){const l=e.target;if(z&&(null==o?void 0:o.length)>0){const e=[...o],s=[...l.files],i=new DataTransfer;e.forEach((e=>i.items.add(e))),s.forEach((e=>i.items.add(e))),t(8,o=i.files)}else t(8,o=l.files);t(0,h=!0);const i=[];[...o].forEach(((e,l)=>{const t=e.name,r=e.size,o=function(e){if(s&&s.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(s&&!s.includes(String(l)))return!1}return!0}(t),n=function(e){return!(a&&e/1024/1024>a)}(r);let d="";o||(d="invalid-extension"),n||(d="invalid-size"),o&&n||i.push({index:l,fileName:t,fileSize:r,errorType:d})})),i.length>0&&C.dispatch(x(),"invalid-files",i),C.dispatch("change",o);const r=n.querySelector(".mc-fileuploader__input");y?r.value="":r.files=o},function(e){t(8,o=A(o,e.detail)),n.querySelector(".mc-fileuploader__input").files=o,C.dispatch("file-removed",e.detail)},function(e){const l=A(i,e.detail);t(10,i=l),C.dispatch("uploaded-file-removed",e.detail)},u,b,w,_,y,z,function(e){k[e?"unshift":"push"]((()=>{n=e,t(9,n)}))}]}class L extends e{constructor(e){super();const r=document.createElement("style");r.textContent=".mc-fileuploader{position:relative;display:block}.mc-fileuploader__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}:focus+.mc-fileuploader__label{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}:hover+.mc-fileuploader__label{color:#006902;background-color:#ebf5de}:disabled+.mc-fileuploader__label{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}:disabled+.mc-fileuploader__label::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}",this.shadowRoot.appendChild(r),l(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},M,P,a,{id:1,name:2,label:3,accept:4,multiple:5,allowedextensions:17,maxsize:18,displayfileslist:0,disabled:6,removelabel:7,uploadedfiles:19,errorlabels:20,stateless:21,keepPrevious:22},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),i()))}static get observedAttributes(){return["id","name","label","accept","multiple","allowedextensions","maxsize","displayfileslist","disabled","removelabel","uploadedfiles","errorlabels","stateless","keepPrevious"]}get id(){return this.$$.ctx[1]}set id(e){this.$$set({id:e}),i()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),i()}get label(){return this.$$.ctx[3]}set label(e){this.$$set({label:e}),i()}get accept(){return this.$$.ctx[4]}set accept(e){this.$$set({accept:e}),i()}get multiple(){return this.$$.ctx[5]}set multiple(e){this.$$set({multiple:e}),i()}get allowedextensions(){return this.$$.ctx[17]}set allowedextensions(e){this.$$set({allowedextensions:e}),i()}get maxsize(){return this.$$.ctx[18]}set maxsize(e){this.$$set({maxsize:e}),i()}get displayfileslist(){return this.$$.ctx[0]}set displayfileslist(e){this.$$set({displayfileslist:e}),i()}get disabled(){return this.$$.ctx[6]}set disabled(e){this.$$set({disabled:e}),i()}get removelabel(){return this.$$.ctx[7]}set removelabel(e){this.$$set({removelabel:e}),i()}get uploadedfiles(){return this.$$.ctx[19]}set uploadedfiles(e){this.$$set({uploadedfiles:e}),i()}get errorlabels(){return this.$$.ctx[20]}set errorlabels(e){this.$$set({errorlabels:e}),i()}get stateless(){return this.$$.ctx[21]}set stateless(e){this.$$set({stateless:e}),i()}get keepPrevious(){return this.$$.ctx[22]}set keepPrevious(e){this.$$set({keepPrevious:e}),i()}}export{L as default};
2
2
  //# sourceMappingURL=FileUploader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploader.js","sources":["../../../src/components/fileuploader/FileUploader.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n // @ts-nocheck\n import {\n get_current_component,\n createEventDispatcher,\n } from 'svelte/internal';\n import { EventHandler } from '../../utilities/EventHandler';\n import ResultFile from './fileuploader-result.nested.svelte';\n\n export let id: string;\n export let name: string;\n export let label: string;\n export let accept: string;\n export let multiple = true;\n export let allowedextensions: string;\n export let maxsize: number;\n export let displayfileslist = false;\n export let disabled = false;\n export let removelabel = 'Remove';\n export let uploadedfiles: string;\n export let errorlabels: string;\n export let stateless: false;\n\n let files: FileList;\n let root: HTMLElement;\n let eventHandler = new EventHandler(\n get_current_component(),\n createEventDispatcher(),\n );\n\n $: allowedExtensions = allowedextensions ? JSON.parse(allowedextensions) : [];\n $: uploadedFiles = uploadedfiles ? JSON.parse(uploadedfiles) : [];\n $: files;\n $: maxSize = maxsize ? maxsize : undefined;\n $: errorLabels = errorlabels ? JSON.parse(errorlabels) : [];\n\n function checkFileSize(fileSize: number): boolean {\n const fileSizeMB = fileSize / 1024 / 1024; // in MB\n if (maxSize && fileSizeMB > maxSize) {\n return false; // invalid\n }\n\n return true; // valid\n }\n function checkFileExtension(fileName: string): boolean {\n if (allowedExtensions && allowedExtensions.length > 0) {\n const extension: string = fileName.slice(\n ((fileName.lastIndexOf('.') - 1) >>> 0) + 2,\n );\n if (allowedExtensions && !allowedExtensions.includes(String(extension))) {\n return false; // invalid\n }\n }\n\n return true; // valid\n }\n function handleChange(e: Event): void {\n const target = e.target as HTMLInputElement;\n files = target.files as FileList;\n displayfileslist = true;\n const invalidFiles: Array<any> = [];\n const fileList = [...files];\n fileList.forEach((file, index) => {\n const fileName = file.name;\n const fileSize = file.size;\n const validExtension = checkFileExtension(fileName);\n const validSize = checkFileSize(fileSize);\n let errorType = '';\n\n if (!validExtension) {\n errorType = 'invalid-extension';\n }\n\n if (!validSize) {\n errorType = 'invalid-size';\n }\n\n if (!validExtension || !validSize) {\n invalidFiles.push({\n index: index,\n fileName: fileName,\n fileSize: fileSize,\n errorType: errorType,\n });\n }\n });\n\n if (invalidFiles.length > 0) {\n eventHandler.dispatch(\n get_current_component(),\n 'invalid-files',\n invalidFiles,\n );\n }\n eventHandler.dispatch('change', files);\n if (stateless) {\n const fileuploader = root.querySelector(\n '.mc-fileuploader__input',\n ) as HTMLInputElement;\n fileuploader.value = '';\n }\n }\n\n function removeFromArray(fileList: FileList, value: File): FileList {\n const array = Array.from(fileList);\n const idx = array.indexOf(value);\n if (idx !== -1) {\n array.splice(idx, 1);\n }\n return array as FileList;\n }\n\n function deleteFile(e: CustomEvent): void {\n files = removeFromArray(files, e.detail);\n const fileuploader = root.querySelector(\n '.mc-fileuploader__input',\n ) as HTMLInputElement;\n fileuploader.value = '';\n eventHandler.dispatch('file-removed', e.detail);\n }\n\n function deleteUploadedFile(e: CustomEvent): void {\n const files = removeFromArray(uploadedFiles, e.detail);\n uploadedFiles = files;\n eventHandler.dispatch('uploaded-file-removed', e.detail);\n }\n\n function hasInvalidFiles(e: CustomEvent): void {\n eventHandler.dispatch('invalid-files', e.detail);\n }\n</script>\n\n<div class=\"mc-fileuploader\" bind:this={root}>\n <input\n {id}\n {name}\n type=\"file\"\n class=\"mc-fileuploader__input\"\n {accept}\n {multiple}\n {disabled}\n on:change={handleChange}\n />\n <label for={id} class=\"mc-fileuploader__label\">\n <span class=\"mc-fileuploader__label--center\">\n {label}\n </span>\n </label>\n {#if displayfileslist && files && files.length > 0}\n <ResultFile\n {files}\n {allowedExtensions}\n {disabled}\n {maxSize}\n {removelabel}\n {errorLabels}\n on:file-removed={deleteFile}\n />\n {/if}\n {#if uploadedFiles.length > 0}\n <ResultFile\n files={uploadedFiles}\n {allowedExtensions}\n {disabled}\n {maxSize}\n {removelabel}\n {errorLabels}\n on:file-removed={deleteUploadedFile}\n />\n {/if}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.file-uploader';\n</style>\n"],"names":["ctx","if_block0","length","create_if_block_1","create_if_block","insert","target","div","anchor","append","input","label_1","span","removeFromArray","fileList","value","array","Array","from","idx","indexOf","splice","files","root","id","$$props","name","label","accept","multiple","allowedextensions","maxsize","displayfileslist","disabled","removelabel","uploadedfiles","errorlabels","stateless","eventHandler","EventHandler","get_current_component","createEventDispatcher","$$invalidate","allowedExtensions","JSON","parse","uploadedFiles","maxSize","undefined","errorLabels","e","invalidFiles","forEach","file","index","fileName","fileSize","size","validExtension","extension","slice","lastIndexOf","includes","String","checkFileExtension","validSize","checkFileSize","errorType","push","dispatch","querySelector","detail","$$value"],"mappings":"wdA8JuBA,EAAU,uXAKpBA,EAAa,mHAMHA,EAAkB,qFAN5BA,EAAa,uRAbnBC,EAAAD,MAAoBA,EAAK,IAAIA,EAAM,GAAAE,OAAS,GAACC,EAAAH,KAW7CA,EAAa,IAACE,OAAS,GAACE,EAAAJ,yEAdxBA,EAAK,+OAFEA,EAAE,iFAXhBK,EAsCKC,EAAAC,EAAAC,GArCHC,EASCF,EAAAG,UACDD,EAIOF,EAAAI,GAHLF,EAEME,EAAAC,uFALKZ,EAAY,qLAIpBA,EAAK,yBAFEA,EAAE,IAKTA,MAAoBA,EAAK,IAAIA,EAAM,GAAAE,OAAS,iGAW5CF,EAAa,IAACE,OAAS,oNAxDnBW,EAAgBC,EAAoBC,GACrC,MAAAC,EAAQC,MAAMC,KAAKJ,GACnBK,EAAMH,EAAMI,QAAQL,UACb,IAATI,GACFH,EAAMK,OAAOF,EAAK,GAEbH,gCAtFLM,EACAC,MAfOC,GAAUC,QACVC,GAAYD,SACZE,GAAaF,UACbG,GAAcH,GACdI,SAAAA,GAAW,GAAIJ,qBACfK,GAAyBL,WACzBM,GAAeN,GACfO,iBAAAA,GAAmB,GAAKP,GACxBQ,SAAAA,GAAW,GAAKR,GAChBS,YAAAA,EAAc,UAAQT,iBACtBU,GAAqBV,eACrBW,GAAmBX,aACnBY,GAAgBZ,EAIvBa,EAAmB,IAAAC,EACrBC,IACAC,shBAGDC,EAAA,GAAEC,EAAoBb,EAAoBc,KAAKC,MAAMf,GAAiB,uBACtEY,EAAA,GAAEI,EAAgBX,EAAgBS,KAAKC,MAAMV,GAAa,uCAExDY,EAAUhB,QAAoBiB,uBAChCN,EAAA,GAAEO,EAAcb,EAAcQ,KAAKC,MAAMT,GAAW,kCAsB5C,SAAac,SACd5C,EAAS4C,EAAE5C,WACjBgB,EAAQhB,EAAOgB,OACfoB,EAAA,EAAAV,GAAmB,SACbmB,EAAY,UACG7B,GACZ8B,SAAS,CAAAC,EAAMC,WAChBC,EAAWF,EAAK3B,KAChB8B,EAAWH,EAAKI,KAChBC,EArBD,SAAmBH,GACtB,GAAAZ,GAAqBA,EAAkBzC,OAAS,EAAC,CAC7C,MAAAyD,EAAoBJ,EAASK,MACS,GAAxCL,EAASM,YAAY,KAAO,IAAO,IAEnC,GAAAlB,IAAsBA,EAAkBmB,SAASC,OAAOJ,WACnD,SAIJ,EAWkBK,CAAmBT,GACpCU,EA9BD,SAAcT,WAEjBT,GADeS,EAAW,KAAO,KACTT,GA4BRmB,CAAcV,GAC5B,IAAAW,EAAY,GAEXT,IACHS,EAAY,qBAGTF,IACHE,EAAY,gBAGTT,GAAmBO,GACtBd,EAAaiB,KACJ,CAAAd,QACGC,WACAC,WACCW,iBAKbhB,EAAajD,OAAS,GACxBoC,EAAa+B,SACX7B,IACA,gBACAW,GAGJb,EAAa+B,SAAS,SAAU/C,GAC5Be,EAAS,CACUd,EAAK+C,cACxB,2BAEWvD,MAAQ,KAahB,SAAWmC,GAClBR,EAAA,EAAApB,EAAQT,EAAgBS,EAAO4B,EAAEqB,SACZhD,EAAK+C,cACxB,2BAEWvD,MAAQ,GACrBuB,EAAa+B,SAAS,eAAgBnB,EAAEqB,SAGjC,SAAmBrB,GACpB,MAAA5B,EAAQT,EAAgBiC,EAAeI,EAAEqB,QAC/C7B,EAAA,GAAAI,EAAgBxB,GAChBgB,EAAa+B,SAAS,wBAAyBnB,EAAEqB,2DAQbhD,EAAIiD"}
1
+ {"version":3,"file":"FileUploader.js","sources":["../../../src/components/fileuploader/FileUploader.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n // @ts-nocheck\n import {\n get_current_component,\n createEventDispatcher,\n } from 'svelte/internal';\n import { EventHandler } from '../../utilities/EventHandler';\n import ResultFile from './fileuploader-result.nested.svelte';\n\n export let id: string;\n export let name: string;\n export let label: string;\n export let accept: string;\n export let multiple = true;\n export let allowedextensions: string;\n export let maxsize: number;\n export let displayfileslist = false;\n export let disabled = false;\n export let removelabel = 'Remove';\n export let uploadedfiles: string;\n export let errorlabels: string;\n export let stateless: false;\n export let keepPrevious: boolean;\n\n let files: FileList;\n let root: HTMLElement;\n let eventHandler = new EventHandler(\n get_current_component(),\n createEventDispatcher(),\n );\n\n $: allowedExtensions = allowedextensions ? JSON.parse(allowedextensions) : [];\n $: uploadedFiles = uploadedfiles ? JSON.parse(uploadedfiles) : [];\n $: files;\n $: maxSize = maxsize ? maxsize : undefined;\n $: errorLabels = errorlabels ? JSON.parse(errorlabels) : [];\n\n function checkFileSize(fileSize: number): boolean {\n const fileSizeMB = fileSize / 1024 / 1024; // in MB\n if (maxSize && fileSizeMB > maxSize) {\n return false; // invalid\n }\n\n return true; // valid\n }\n function checkFileExtension(fileName: string): boolean {\n if (allowedExtensions && allowedExtensions.length > 0) {\n const extension: string = fileName.slice(\n ((fileName.lastIndexOf('.') - 1) >>> 0) + 2,\n );\n if (allowedExtensions && !allowedExtensions.includes(String(extension))) {\n return false; // invalid\n }\n }\n\n return true; // valid\n }\n function handleChange(e: Event): void {\n const target = e.target as HTMLInputElement;\n\n if(keepPrevious && files?.length > 0){\n const previousSelection: File[] = [...files]\n const newSelection: File[] = [...target.files as FileList]\n const dataTransfer: DataTransfer = new DataTransfer()\n previousSelection.forEach((item) => dataTransfer.items.add(item))\n newSelection.forEach((item) => dataTransfer.items.add(item))\n\n files = dataTransfer.files\n\n } else {\n files = target.files as FileList;\n }\n\n displayfileslist = true;\n const invalidFiles: Array<any> = [];\n const fileList = [...files];\n\n fileList.forEach((file, index) => {\n const fileName = file.name;\n const fileSize = file.size;\n const validExtension = checkFileExtension(fileName);\n const validSize = checkFileSize(fileSize);\n let errorType = '';\n\n if (!validExtension) {\n errorType = 'invalid-extension';\n }\n\n if (!validSize) {\n errorType = 'invalid-size';\n }\n\n if (!validExtension || !validSize) {\n invalidFiles.push({\n index: index,\n fileName: fileName,\n fileSize: fileSize,\n errorType: errorType,\n });\n }\n });\n\n if (invalidFiles.length > 0) {\n eventHandler.dispatch(\n get_current_component(),\n 'invalid-files',\n invalidFiles,\n );\n }\n eventHandler.dispatch('change', files);\n\n const fileuploader = root.querySelector(\n '.mc-fileuploader__input',\n ) as HTMLInputElement;\n if (stateless) {\n fileuploader.value = '';\n } else {\n fileuploader.files = files\n }\n }\n\n function removeFromArray(fileList: FileList, value: File): FileList {\n const array = Array.from(fileList);\n const idx = array.indexOf(value);\n if (idx !== -1) {\n array.splice(idx, 1);\n }\n\n const dataTransfer: DataTransfer = new DataTransfer()\n array.forEach((item) => dataTransfer.items.add(item))\n\n return dataTransfer.files\n }\n\n function deleteFile(e: CustomEvent): void {\n files = removeFromArray(files, e.detail);\n const fileuploader = root.querySelector(\n '.mc-fileuploader__input',\n ) as HTMLInputElement;\n fileuploader.files = files;\n eventHandler.dispatch('file-removed', e.detail);\n }\n\n function deleteUploadedFile(e: CustomEvent): void {\n const files = removeFromArray(uploadedFiles, e.detail);\n uploadedFiles = files;\n eventHandler.dispatch('uploaded-file-removed', e.detail);\n }\n\n function hasInvalidFiles(e: CustomEvent): void {\n eventHandler.dispatch('invalid-files', e.detail);\n }\n</script>\n\n<div class=\"mc-fileuploader\" bind:this={root}>\n <input\n {id}\n {name}\n type=\"file\"\n class=\"mc-fileuploader__input\"\n {accept}\n {multiple}\n {disabled}\n on:change={handleChange}\n />\n <label for={id} class=\"mc-fileuploader__label\">\n <span class=\"mc-fileuploader__label--center\">\n {label}\n </span>\n </label>\n {#if displayfileslist && files && files.length > 0}\n <ResultFile\n {files}\n {allowedExtensions}\n {disabled}\n {maxSize}\n {removelabel}\n {errorLabels}\n on:file-removed={deleteFile}\n />\n {/if}\n {#if uploadedFiles.length > 0}\n <ResultFile\n files={uploadedFiles}\n {allowedExtensions}\n {disabled}\n {maxSize}\n {removelabel}\n {errorLabels}\n on:file-removed={deleteUploadedFile}\n />\n {/if}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.file-uploader';\n</style>\n"],"names":["ctx","if_block0","length","create_if_block_1","create_if_block","insert","target","div","anchor","append","input","label_1","span","removeFromArray","fileList","value","array","Array","from","idx","indexOf","splice","dataTransfer","DataTransfer","forEach","item","items","add","files","root","id","$$props","name","label","accept","multiple","allowedextensions","maxsize","displayfileslist","disabled","removelabel","uploadedfiles","errorlabels","stateless","keepPrevious","eventHandler","EventHandler","get_current_component","createEventDispatcher","$$invalidate","allowedExtensions","JSON","parse","uploadedFiles","maxSize","undefined","errorLabels","e","previousSelection","newSelection","invalidFiles","file","index","fileName","fileSize","size","validExtension","extension","slice","lastIndexOf","includes","String","checkFileExtension","validSize","checkFileSize","errorType","push","dispatch","fileuploader","querySelector","detail","$$value"],"mappings":"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"}
@@ -22,6 +22,7 @@
22
22
  export let uploadedfiles: string;
23
23
  export let errorlabels: string;
24
24
  export let stateless: false;
25
+ export let keepPrevious: boolean;
25
26
 
26
27
  let files: FileList;
27
28
  let root: HTMLElement;
@@ -58,10 +59,24 @@
58
59
  }
59
60
  function handleChange(e: Event): void {
60
61
  const target = e.target as HTMLInputElement;
61
- files = target.files as FileList;
62
+
63
+ if(keepPrevious && files?.length > 0){
64
+ const previousSelection: File[] = [...files]
65
+ const newSelection: File[] = [...target.files as FileList]
66
+ const dataTransfer: DataTransfer = new DataTransfer()
67
+ previousSelection.forEach((item) => dataTransfer.items.add(item))
68
+ newSelection.forEach((item) => dataTransfer.items.add(item))
69
+
70
+ files = dataTransfer.files
71
+
72
+ } else {
73
+ files = target.files as FileList;
74
+ }
75
+
62
76
  displayfileslist = true;
63
77
  const invalidFiles: Array<any> = [];
64
78
  const fileList = [...files];
79
+
65
80
  fileList.forEach((file, index) => {
66
81
  const fileName = file.name;
67
82
  const fileSize = file.size;
@@ -95,11 +110,14 @@
95
110
  );
96
111
  }
97
112
  eventHandler.dispatch('change', files);
113
+
114
+ const fileuploader = root.querySelector(
115
+ '.mc-fileuploader__input',
116
+ ) as HTMLInputElement;
98
117
  if (stateless) {
99
- const fileuploader = root.querySelector(
100
- '.mc-fileuploader__input',
101
- ) as HTMLInputElement;
102
118
  fileuploader.value = '';
119
+ } else {
120
+ fileuploader.files = files
103
121
  }
104
122
  }
105
123
 
@@ -109,7 +127,11 @@
109
127
  if (idx !== -1) {
110
128
  array.splice(idx, 1);
111
129
  }
112
- return array as FileList;
130
+
131
+ const dataTransfer: DataTransfer = new DataTransfer()
132
+ array.forEach((item) => dataTransfer.items.add(item))
133
+
134
+ return dataTransfer.files
113
135
  }
114
136
 
115
137
  function deleteFile(e: CustomEvent): void {
@@ -117,7 +139,7 @@
117
139
  const fileuploader = root.querySelector(
118
140
  '.mc-fileuploader__input',
119
141
  ) as HTMLInputElement;
120
- fileuploader.value = '';
142
+ fileuploader.files = files;
121
143
  eventHandler.dispatch('file-removed', e.detail);
122
144
  }
123
145
 
@@ -1,2 +1,2 @@
1
- import{S as e,i as l,a as i,b as r,f as a,s as o,e as t,n as s,h as n,q as d,Q as c,v as m,w as f,c as b,x as p,t as u,d as h,l as g,m as x,o as w}from"../../index-d12e76e8.js";import{E as _}from"../../EventHandler-f7ee47ca.js";function v(e,l,i){const r=e.slice();return r[15]=l[i],r[17]=i,r}function k(e){let l,i,a=e[3][e[15].errorType]+"";return{c(){l=t("div"),i=u(a),n(l,"class","mc-fileuploader__file-message")},m(e,a){r(e,l,a),g(l,i)},p(e,l){9&l&&a!==(a=e[3][e[15].errorType]+"")&&w(i,a)},d(e){e&&d(l)}}}function E(e){let l,i,a,o,s,c,m,f,b,p,_,v,E=e[15].name+"";function z(){return e[9](e[15])}let y=e[15].errorType&&k(e);return{c(){l=t("li"),i=t("span"),a=u(E),o=h(),s=t("span"),s.textContent=" ",c=h(),m=t("button"),f=h(),y&&y.c(),b=h(),n(i,"class","mc-fileuploader__file-name"),n(s,"class","mc-fileuploader__file-icon"),n(m,"type","button"),n(m,"class","mc-fileuploader__delete"),n(m,"aria-label",e[2]),m.disabled=e[1],n(l,"id",`file-${e[17]}`),n(l,"class",p=e[4](e[15])+" "+e[6].class)},m(e,t){r(e,l,t),g(l,i),g(i,a),g(l,o),g(l,s),g(l,c),g(l,m),g(l,f),y&&y.m(l,null),g(l,b),_||(v=x(m,"click",z),_=!0)},p(i,r){e=i,1&r&&E!==(E=e[15].name+"")&&w(a,E),4&r&&n(m,"aria-label",e[2]),2&r&&(m.disabled=e[1]),e[15].errorType?y?y.p(e,r):(y=k(e),y.c(),y.m(l,b)):y&&(y.d(1),y=null),65&r&&p!==(p=e[4](e[15])+" "+e[6].class)&&n(l,"class",p)},d(e){e&&d(l),y&&y.d(),_=!1,v()}}}function z(e){let l,i=e[0],a=[];for(let l=0;l<i.length;l+=1)a[l]=E(v(e,i,l));return{c(){l=t("ul");for(let e=0;e<a.length;e+=1)a[e].c();this.c=s,n(l,"id","file_uploaded"),n(l,"class","mc-fileuploader__files")},m(e,i){r(e,l,i);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(l,null)},p(e,[r]){if(127&r){let o;for(i=e[0],o=0;o<i.length;o+=1){const t=v(e,i,o);a[o]?a[o].p(t,r):(a[o]=E(t),a[o].c(),a[o].m(l,null))}for(;o<a.length;o+=1)a[o].d(1);a.length=i.length}},i:s,o:s,d(e){e&&d(l),c(a,e)}}}function y(e,l,i){let{allowedExtensions:r}=l,{maxSize:a}=l,{disabled:o=!1}=l,{files:t}=l,{removelabel:s="Remove"}=l,{errorLabels:n}=l,d=new _(m(),f());function c(e){if(r&&r.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(r&&!r.includes(String(l)))return!1}return!0}function u(e){return!(a&&e/1024/1024>a)}function h(e){d.dispatch("file-removed",e)}return e.$$set=e=>{i(6,l=b(b({},l),p(e))),"allowedExtensions"in e&&i(8,r=e.allowedExtensions),"maxSize"in e&&i(7,a=e.maxSize),"disabled"in e&&i(1,o=e.disabled),"files"in e&&i(0,t=e.files),"removelabel"in e&&i(2,s=e.removelabel),"errorLabels"in e&&i(3,n=e.errorLabels)},e.$$.update=()=>{1&e.$$.dirty&&i(0,t=t?function(e){let l=[...e];return l.forEach(((e,l)=>{const i=c(e.name),r=u(e.size);let a="";i||(a="invalid-extension"),r||(a="invalid-size"),e.errorType&&(a=e.errorType),i&&r&&!e.errorType||(e.errorType=a)})),l}(t):[]),128&e.$$.dirty&&i(7,a=a||void 0)},l=p(l),[t,o,s,n,function(e){let l=["mc-fileuploader__file"];return!function(e){const l=!r||c(e.name),i=u(e.size);if(!l||!i)return!1;return!0}(e)||e.errorType?l.push("mc-fileuploader__file--is-invalid"):l.push("mc-fileuploader__file--is-valid"),l.join(" ")},h,l,a,r,e=>h(e)]}class C extends e{constructor(e){super();const t=document.createElement("style");t.textContent=".mc-fileuploader{position:relative;display:block}.mc-fileuploader__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;-o-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label.is-hover,.mc-fileuploader__label:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label.is-active,.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.is-active,.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:disabled,.mc-fileuploader__label.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}.is-focus+.mc-fileuploader__label,:focus+.mc-fileuploader__label{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.is-hover+.mc-fileuploader__label,:hover+.mc-fileuploader__label{color:#006902;background-color:#ebf5de}.is-disabled+.mc-fileuploader__label,:disabled+.mc-fileuploader__label{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}.is-disabled+.mc-fileuploader__label::before,:disabled+.mc-fileuploader__label::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}.mc-fileuploader__files{list-style:none;padding:0;margin:1rem 0 0 0}.mc-fileuploader__file{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#e6e6e6;-webkit-box-sizing:content-box;box-sizing:content-box;color:#000000;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.mc-fileuploader__file:not(:last-child){margin-bottom:0.25rem}.mc-fileuploader__file-name{font-size:1rem;line-height:1.375;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 7.5rem)}.mc-fileuploader__file-icon{background-color:transparent;background-position:center right;background-repeat:no-repeat;background-size:1.5rem;display:block;height:1.5rem;margin-left:1rem;margin-right:1rem;width:1.5rem}.mc-fileuploader__file--is-valid .mc-fileuploader__file-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8m0-2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z'/%3E%3Cpath d='M10.59 16.12a1 1 0 0 1-.68-.26l-3.84-3.55a1 1 0 0 1 1.36-1.47l3.13 2.89L16 8.17a1 1 0 0 1 1.43 1.41l-6.13 6.25a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid .mc-fileuploader__file-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23c61112' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z'/%3E%3Cpath d='M12 7a1 1 0 0 0-1 1v4.38a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid .mc-fileuploader__file-message{font-size:0.875rem;line-height:1.2857142857;background:#ffffff;color:#c61112;-ms-flex-preferred-size:100%;flex-basis:100%;padding-top:0.25rem}.mc-fileuploader__delete{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#cccccc;border:none;cursor:pointer;padding:0.5rem}.mc-fileuploader__delete::before{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;top:-0.125rem;right:-0.125rem;bottom:-0.125rem;left:-0.125rem}.mc-fileuploader__delete::after{content:\"\";width:1.5rem;height:1.5rem;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23000000' viewBox='0 0 24 24'%3E%3Cpath d='M18.08 8a1 1 0 0 0-1.08.92L16.08 20H7.92L7 8.92a1 1 0 1 0-2 .16l1 12A1 1 0 0 0 7 22h10a1 1 0 0 0 1-.92l1-12A1 1 0 0 0 18.08 8z'/%3E%3Cpath d='M19 5h-3.77l-.65-2.27a1 1 0 0 0-1-.73h-3.2a1 1 0 0 0-1 .73L8.77 5H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2zm-8.62-2h3.24l.57 2H9.81zM12.5 18v-8a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0zM14.25 18.5a.5.5 0 0 0 .5-.47l.5-8a.5.5 0 0 0-.47-.53.49.49 0 0 0-.53.47l-.5 8a.5.5 0 0 0 .47.53zM9.75 18.5a.5.5 0 0 0 .47-.53l-.5-8a.49.49 0 0 0-.53-.47.5.5 0 0 0-.47.53l.5 8a.5.5 0 0 0 .53.47z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;display:block}.mc-fileuploader__delete:focus{outline:none}.mc-fileuploader__delete:focus::before{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}",this.shadowRoot.appendChild(t),l(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},y,z,o,{allowedExtensions:8,maxSize:7,disabled:1,files:0,removelabel:2,errorLabels:3},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),a()))}static get observedAttributes(){return["allowedExtensions","maxSize","disabled","files","removelabel","errorLabels"]}get allowedExtensions(){return this.$$.ctx[8]}set allowedExtensions(e){this.$$set({allowedExtensions:e}),a()}get maxSize(){return this.$$.ctx[7]}set maxSize(e){this.$$set({maxSize:e}),a()}get disabled(){return this.$$.ctx[1]}set disabled(e){this.$$set({disabled:e}),a()}get files(){return this.$$.ctx[0]}set files(e){this.$$set({files:e}),a()}get removelabel(){return this.$$.ctx[2]}set removelabel(e){this.$$set({removelabel:e}),a()}get errorLabels(){return this.$$.ctx[3]}set errorLabels(e){this.$$set({errorLabels:e}),a()}}export{C as default};
1
+ import{S as e,i as l,a as i,b as r,f as a,s as o,e as t,n as s,h as n,q as d,Q as c,v as m,w as f,c as b,x as p,t as u,d as g,l as h,m as x,o as w}from"../../index-48da6c1f.js";import{E as _}from"../../EventHandler-f7ee47ca.js";function v(e,l,i){const r=e.slice();return r[15]=l[i],r[17]=i,r}function k(e){let l,i,a=e[3][e[15].errorType]+"";return{c(){l=t("div"),i=u(a),n(l,"class","mc-fileuploader__file-message")},m(e,a){r(e,l,a),h(l,i)},p(e,l){9&l&&a!==(a=e[3][e[15].errorType]+"")&&w(i,a)},d(e){e&&d(l)}}}function E(e){let l,i,a,o,s,c,m,f,b,p,_,v,E=e[15].name+"";function z(){return e[9](e[15])}let y=e[15].errorType&&k(e);return{c(){l=t("li"),i=t("span"),a=u(E),o=g(),s=t("span"),s.textContent=" ",c=g(),m=t("button"),f=g(),y&&y.c(),b=g(),n(i,"class","mc-fileuploader__file-name"),n(s,"class","mc-fileuploader__file-icon"),n(m,"type","button"),n(m,"class","mc-fileuploader__delete"),n(m,"aria-label",e[2]),m.disabled=e[1],n(l,"id",`file-${e[17]}`),n(l,"class",p=e[4](e[15])+" "+e[6].class)},m(e,t){r(e,l,t),h(l,i),h(i,a),h(l,o),h(l,s),h(l,c),h(l,m),h(l,f),y&&y.m(l,null),h(l,b),_||(v=x(m,"click",z),_=!0)},p(i,r){e=i,1&r&&E!==(E=e[15].name+"")&&w(a,E),4&r&&n(m,"aria-label",e[2]),2&r&&(m.disabled=e[1]),e[15].errorType?y?y.p(e,r):(y=k(e),y.c(),y.m(l,b)):y&&(y.d(1),y=null),65&r&&p!==(p=e[4](e[15])+" "+e[6].class)&&n(l,"class",p)},d(e){e&&d(l),y&&y.d(),_=!1,v()}}}function z(e){let l,i=e[0],a=[];for(let l=0;l<i.length;l+=1)a[l]=E(v(e,i,l));return{c(){l=t("ul");for(let e=0;e<a.length;e+=1)a[e].c();this.c=s,n(l,"id","file_uploaded"),n(l,"class","mc-fileuploader__files")},m(e,i){r(e,l,i);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(l,null)},p(e,[r]){if(127&r){let o;for(i=e[0],o=0;o<i.length;o+=1){const t=v(e,i,o);a[o]?a[o].p(t,r):(a[o]=E(t),a[o].c(),a[o].m(l,null))}for(;o<a.length;o+=1)a[o].d(1);a.length=i.length}},i:s,o:s,d(e){e&&d(l),c(a,e)}}}function y(e,l,i){let{allowedExtensions:r}=l,{maxSize:a}=l,{disabled:o=!1}=l,{files:t}=l,{removelabel:s="Remove"}=l,{errorLabels:n}=l,d=new _(m(),f());function c(e){if(r&&r.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(r&&!r.includes(String(l)))return!1}return!0}function u(e){return!(a&&e/1024/1024>a)}function g(e){d.dispatch("file-removed",e)}return e.$$set=e=>{i(6,l=b(b({},l),p(e))),"allowedExtensions"in e&&i(8,r=e.allowedExtensions),"maxSize"in e&&i(7,a=e.maxSize),"disabled"in e&&i(1,o=e.disabled),"files"in e&&i(0,t=e.files),"removelabel"in e&&i(2,s=e.removelabel),"errorLabels"in e&&i(3,n=e.errorLabels)},e.$$.update=()=>{1&e.$$.dirty&&i(0,t=t?function(e){let l=[...e];return l.forEach(((e,l)=>{const i=c(e.name),r=u(e.size);let a="";i||(a="invalid-extension"),r||(a="invalid-size"),e.errorType&&(a=e.errorType),i&&r&&!e.errorType||(e.errorType=a)})),l}(t):[]),128&e.$$.dirty&&i(7,a=a||void 0)},l=p(l),[t,o,s,n,function(e){let l=["mc-fileuploader__file"];return!function(e){const l=!r||c(e.name),i=u(e.size);if(!l||!i)return!1;return!0}(e)||e.errorType?l.push("mc-fileuploader__file--is-invalid"):l.push("mc-fileuploader__file--is-valid"),l.join(" ")},g,l,a,r,e=>g(e)]}class C extends e{constructor(e){super();const t=document.createElement("style");t.textContent=".mc-fileuploader{position:relative;display:block}.mc-fileuploader__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label.is-hover,.mc-fileuploader__label:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label.is-active,.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.is-active,.mc-fileuploader__label:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label:disabled,.mc-fileuploader__label.is-disabled{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}.is-focus+.mc-fileuploader__label,:focus+.mc-fileuploader__label{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.is-hover+.mc-fileuploader__label,:hover+.mc-fileuploader__label{color:#006902;background-color:#ebf5de}.is-disabled+.mc-fileuploader__label,:disabled+.mc-fileuploader__label{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}.is-disabled+.mc-fileuploader__label::before,:disabled+.mc-fileuploader__label::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}.mc-fileuploader__files{list-style:none;padding:0;margin:1rem 0 0 0}.mc-fileuploader__file{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#e6e6e6;-webkit-box-sizing:content-box;box-sizing:content-box;color:#000000;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.mc-fileuploader__file:not(:last-child){margin-bottom:0.25rem}.mc-fileuploader__file-name{font-size:1rem;line-height:1.375;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 7.5rem)}.mc-fileuploader__file-icon{background-color:transparent;background-position:center right;background-repeat:no-repeat;background-size:1.5rem;display:block;height:1.5rem;margin-left:1rem;margin-right:1rem;width:1.5rem}.mc-fileuploader__file--is-valid .mc-fileuploader__file-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8m0-2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z'/%3E%3Cpath d='M10.59 16.12a1 1 0 0 1-.68-.26l-3.84-3.55a1 1 0 0 1 1.36-1.47l3.13 2.89L16 8.17a1 1 0 0 1 1.43 1.41l-6.13 6.25a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid .mc-fileuploader__file-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23c61112' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z'/%3E%3Cpath d='M12 7a1 1 0 0 0-1 1v4.38a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid .mc-fileuploader__file-message{font-size:0.875rem;line-height:1.2857142857;background:#ffffff;color:#c61112;-ms-flex-preferred-size:100%;flex-basis:100%;padding-top:0.25rem}.mc-fileuploader__delete{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#cccccc;border:none;cursor:pointer;padding:0.5rem}.mc-fileuploader__delete::before{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;top:-0.125rem;right:-0.125rem;bottom:-0.125rem;left:-0.125rem}.mc-fileuploader__delete::after{content:\"\";width:1.5rem;height:1.5rem;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23000000' viewBox='0 0 24 24'%3E%3Cpath d='M18.08 8a1 1 0 0 0-1.08.92L16.08 20H7.92L7 8.92a1 1 0 1 0-2 .16l1 12A1 1 0 0 0 7 22h10a1 1 0 0 0 1-.92l1-12A1 1 0 0 0 18.08 8z'/%3E%3Cpath d='M19 5h-3.77l-.65-2.27a1 1 0 0 0-1-.73h-3.2a1 1 0 0 0-1 .73L8.77 5H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2zm-8.62-2h3.24l.57 2H9.81zM12.5 18v-8a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0zM14.25 18.5a.5.5 0 0 0 .5-.47l.5-8a.5.5 0 0 0-.47-.53.49.49 0 0 0-.53.47l-.5 8a.5.5 0 0 0 .47.53zM9.75 18.5a.5.5 0 0 0 .47-.53l-.5-8a.49.49 0 0 0-.53-.47.5.5 0 0 0-.47.53l.5 8a.5.5 0 0 0 .53.47z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;display:block}.mc-fileuploader__delete:focus{outline:none}.mc-fileuploader__delete:focus::before{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}",this.shadowRoot.appendChild(t),l(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},y,z,o,{allowedExtensions:8,maxSize:7,disabled:1,files:0,removelabel:2,errorLabels:3},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),a()))}static get observedAttributes(){return["allowedExtensions","maxSize","disabled","files","removelabel","errorLabels"]}get allowedExtensions(){return this.$$.ctx[8]}set allowedExtensions(e){this.$$set({allowedExtensions:e}),a()}get maxSize(){return this.$$.ctx[7]}set maxSize(e){this.$$set({maxSize:e}),a()}get disabled(){return this.$$.ctx[1]}set disabled(e){this.$$set({disabled:e}),a()}get files(){return this.$$.ctx[0]}set files(e){this.$$set({files:e}),a()}get removelabel(){return this.$$.ctx[2]}set removelabel(e){this.$$set({removelabel:e}),a()}get errorLabels(){return this.$$.ctx[3]}set errorLabels(e){this.$$set({errorLabels:e}),a()}}export{C as default};
2
2
  //# sourceMappingURL=fileuploader-result.js.map
@@ -1,2 +1,2 @@
1
- import{G as e,i as l,s as i,H as t,e as a,h as r,b as o,n as s,q as n,Q as c,v as d,w as u,c as f,x as m,t as p,d as b,l as v,m as g,o as h}from"../../index-d12e76e8.js";import{E as w}from"../../EventHandler-f7ee47ca.js";function x(e){t(e,"svelte-10140ui",".mc-fileuploader.svelte-10140ui.svelte-10140ui{position:relative;display:block}.mc-fileuploader__input.svelte-10140ui.svelte-10140ui{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label.svelte-10140ui.svelte-10140ui{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;-o-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label.is-hover.svelte-10140ui.svelte-10140ui,.mc-fileuploader__label.svelte-10140ui.svelte-10140ui:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label.is-active.svelte-10140ui.svelte-10140ui,.mc-fileuploader__label.svelte-10140ui.svelte-10140ui:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.is-active.svelte-10140ui.svelte-10140ui,.mc-fileuploader__label.svelte-10140ui.svelte-10140ui:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.svelte-10140ui.svelte-10140ui:disabled,.mc-fileuploader__label.is-disabled.svelte-10140ui.svelte-10140ui{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label.svelte-10140ui.svelte-10140ui::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}.is-focus.svelte-10140ui+.mc-fileuploader__label.svelte-10140ui,.svelte-10140ui:focus+.mc-fileuploader__label.svelte-10140ui{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.is-hover.svelte-10140ui+.mc-fileuploader__label.svelte-10140ui,.svelte-10140ui:hover+.mc-fileuploader__label.svelte-10140ui{color:#006902;background-color:#ebf5de}.is-disabled.svelte-10140ui+.mc-fileuploader__label.svelte-10140ui,.svelte-10140ui:disabled+.mc-fileuploader__label.svelte-10140ui{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}.is-disabled.svelte-10140ui+.mc-fileuploader__label.svelte-10140ui::before,.svelte-10140ui:disabled+.mc-fileuploader__label.svelte-10140ui::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}.mc-fileuploader__files.svelte-10140ui.svelte-10140ui{list-style:none;padding:0;margin:1rem 0 0 0}.mc-fileuploader__file.svelte-10140ui.svelte-10140ui{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#e6e6e6;-webkit-box-sizing:content-box;box-sizing:content-box;color:#000000;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.mc-fileuploader__file.svelte-10140ui.svelte-10140ui:not(:last-child){margin-bottom:0.25rem}.mc-fileuploader__file-name.svelte-10140ui.svelte-10140ui{font-size:1rem;line-height:1.375;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 7.5rem)}.mc-fileuploader__file-icon.svelte-10140ui.svelte-10140ui{background-color:transparent;background-position:center right;background-repeat:no-repeat;background-size:1.5rem;display:block;height:1.5rem;margin-left:1rem;margin-right:1rem;width:1.5rem}.mc-fileuploader__file--is-valid.svelte-10140ui .mc-fileuploader__file-icon.svelte-10140ui{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8m0-2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z'/%3E%3Cpath d='M10.59 16.12a1 1 0 0 1-.68-.26l-3.84-3.55a1 1 0 0 1 1.36-1.47l3.13 2.89L16 8.17a1 1 0 0 1 1.43 1.41l-6.13 6.25a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid.svelte-10140ui .mc-fileuploader__file-icon.svelte-10140ui{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23c61112' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z'/%3E%3Cpath d='M12 7a1 1 0 0 0-1 1v4.38a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid.svelte-10140ui .mc-fileuploader__file-message.svelte-10140ui{font-size:0.875rem;line-height:1.2857142857;background:#ffffff;color:#c61112;-ms-flex-preferred-size:100%;flex-basis:100%;padding-top:0.25rem}.mc-fileuploader__delete.svelte-10140ui.svelte-10140ui{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#cccccc;border:none;cursor:pointer;padding:0.5rem}.mc-fileuploader__delete.svelte-10140ui.svelte-10140ui::before{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;top:-0.125rem;right:-0.125rem;bottom:-0.125rem;left:-0.125rem}.mc-fileuploader__delete.svelte-10140ui.svelte-10140ui::after{content:\"\";width:1.5rem;height:1.5rem;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23000000' viewBox='0 0 24 24'%3E%3Cpath d='M18.08 8a1 1 0 0 0-1.08.92L16.08 20H7.92L7 8.92a1 1 0 1 0-2 .16l1 12A1 1 0 0 0 7 22h10a1 1 0 0 0 1-.92l1-12A1 1 0 0 0 18.08 8z'/%3E%3Cpath d='M19 5h-3.77l-.65-2.27a1 1 0 0 0-1-.73h-3.2a1 1 0 0 0-1 .73L8.77 5H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2zm-8.62-2h3.24l.57 2H9.81zM12.5 18v-8a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0zM14.25 18.5a.5.5 0 0 0 .5-.47l.5-8a.5.5 0 0 0-.47-.53.49.49 0 0 0-.53.47l-.5 8a.5.5 0 0 0 .47.53zM9.75 18.5a.5.5 0 0 0 .47-.53l-.5-8a.49.49 0 0 0-.53-.47.5.5 0 0 0-.47.53l.5 8a.5.5 0 0 0 .53.47z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;display:block}.mc-fileuploader__delete.svelte-10140ui.svelte-10140ui:focus{outline:none}.mc-fileuploader__delete.svelte-10140ui.svelte-10140ui:focus::before{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}")}function _(e,l,i){const t=e.slice();return t[15]=l[i],t[17]=i,t}function k(e){let l,i,t=e[3][e[15].errorType]+"";return{c(){l=a("div"),i=p(t),r(l,"class","mc-fileuploader__file-message svelte-10140ui")},m(e,t){o(e,l,t),v(l,i)},p(e,l){9&l&&t!==(t=e[3][e[15].errorType]+"")&&h(i,t)},d(e){e&&n(l)}}}function y(e){let l,i,t,s,c,d,u,f,m,w,x,_,y=e[15].name+"";function C(){return e[9](e[15])}let E=e[15].errorType&&k(e);return{c(){l=a("li"),i=a("span"),t=p(y),s=b(),c=a("span"),c.textContent=" ",d=b(),u=a("button"),f=b(),E&&E.c(),m=b(),r(i,"class","mc-fileuploader__file-name svelte-10140ui"),r(c,"class","mc-fileuploader__file-icon svelte-10140ui"),r(u,"type","button"),r(u,"class","mc-fileuploader__delete svelte-10140ui"),r(u,"aria-label",e[2]),u.disabled=e[1],r(l,"id",`file-${e[17]}`),r(l,"class",w=e[4](e[15])+" "+e[6].class+" svelte-10140ui")},m(e,a){o(e,l,a),v(l,i),v(i,t),v(l,s),v(l,c),v(l,d),v(l,u),v(l,f),E&&E.m(l,null),v(l,m),x||(_=g(u,"click",C),x=!0)},p(i,a){e=i,1&a&&y!==(y=e[15].name+"")&&h(t,y),4&a&&r(u,"aria-label",e[2]),2&a&&(u.disabled=e[1]),e[15].errorType?E?E.p(e,a):(E=k(e),E.c(),E.m(l,m)):E&&(E.d(1),E=null),65&a&&w!==(w=e[4](e[15])+" "+e[6].class+" svelte-10140ui")&&r(l,"class",w)},d(e){e&&n(l),E&&E.d(),x=!1,_()}}}function C(e){let l,i=e[0],t=[];for(let l=0;l<i.length;l+=1)t[l]=y(_(e,i,l));return{c(){l=a("ul");for(let e=0;e<t.length;e+=1)t[e].c();r(l,"id","file_uploaded"),r(l,"class","mc-fileuploader__files svelte-10140ui")},m(e,i){o(e,l,i);for(let e=0;e<t.length;e+=1)t[e]&&t[e].m(l,null)},p(e,[a]){if(127&a){let r;for(i=e[0],r=0;r<i.length;r+=1){const o=_(e,i,r);t[r]?t[r].p(o,a):(t[r]=y(o),t[r].c(),t[r].m(l,null))}for(;r<t.length;r+=1)t[r].d(1);t.length=i.length}},i:s,o:s,d(e){e&&n(l),c(t,e)}}}function E(e,l,i){let{allowedExtensions:t}=l,{maxSize:a}=l,{disabled:r=!1}=l,{files:o}=l,{removelabel:s="Remove"}=l,{errorLabels:n}=l,c=new w(d(),u());function p(e){if(t&&t.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(t&&!t.includes(String(l)))return!1}return!0}function b(e){return!(a&&e/1024/1024>a)}function v(e){c.dispatch("file-removed",e)}return e.$$set=e=>{i(6,l=f(f({},l),m(e))),"allowedExtensions"in e&&i(8,t=e.allowedExtensions),"maxSize"in e&&i(7,a=e.maxSize),"disabled"in e&&i(1,r=e.disabled),"files"in e&&i(0,o=e.files),"removelabel"in e&&i(2,s=e.removelabel),"errorLabels"in e&&i(3,n=e.errorLabels)},e.$$.update=()=>{1&e.$$.dirty&&i(0,o=o?function(e){let l=[...e];return l.forEach(((e,l)=>{const i=p(e.name),t=b(e.size);let a="";i||(a="invalid-extension"),t||(a="invalid-size"),e.errorType&&(a=e.errorType),i&&t&&!e.errorType||(e.errorType=a)})),l}(o):[]),128&e.$$.dirty&&i(7,a=a||void 0)},l=m(l),[o,r,s,n,function(e){let l=["mc-fileuploader__file"];return!function(e){const l=!t||p(e.name),i=b(e.size);if(!l||!i)return!1;return!0}(e)||e.errorType?l.push("mc-fileuploader__file--is-invalid"):l.push("mc-fileuploader__file--is-valid"),l.join(" ")},v,l,a,t,e=>v(e)]}class z extends e{constructor(e){super(),l(this,e,E,C,i,{allowedExtensions:8,maxSize:7,disabled:1,files:0,removelabel:2,errorLabels:3},x)}}export{z as default};
1
+ import{G as e,i as l,s,H as i,e as t,h as a,b as r,n as o,q as n,Q as c,v as d,w as v,c as u,x as f,t as m,d as p,l as b,m as g,o as h}from"../../index-48da6c1f.js";import{E as w}from"../../EventHandler-f7ee47ca.js";function x(e){i(e,"svelte-10v3us",".mc-fileuploader.svelte-10v3us.svelte-10v3us{position:relative;display:block}.mc-fileuploader__input.svelte-10v3us.svelte-10v3us{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-fileuploader__label.svelte-10v3us.svelte-10v3us{font-family:\"LeroyMerlin\", sans-serif;font-weight:600;cursor:pointer;border-radius:4px;text-align:center;border:2px solid transparent;-webkit-transition:all ease 200ms;transition:all ease 200ms;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;font-size:1rem;line-height:1.375;padding:0.6875rem 1.5rem;min-height:3rem;min-width:3rem;color:#188803;border-color:#188803;background-color:#ffffff;margin:0;-webkit-box-shadow:none;box-shadow:none;text-decoration:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.mc-fileuploader__label.is-hover.svelte-10v3us.svelte-10v3us,.mc-fileuploader__label.svelte-10v3us.svelte-10v3us:hover{background-color:#ebf5de;color:#006902}.mc-fileuploader__label.is-active.svelte-10v3us.svelte-10v3us,.mc-fileuploader__label.svelte-10v3us.svelte-10v3us:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.is-active.svelte-10v3us.svelte-10v3us,.mc-fileuploader__label.svelte-10v3us.svelte-10v3us:active{background-color:#c5e39e;color:#035010}.mc-fileuploader__label.svelte-10v3us.svelte-10v3us:disabled,.mc-fileuploader__label.is-disabled.svelte-10v3us.svelte-10v3us{background-color:#cccccc;border-color:transparent;color:#666666;cursor:not-allowed}.mc-fileuploader__label.svelte-10v3us.svelte-10v3us::before{content:\"\";width:1.5rem;height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23188803' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;margin-right:0.5rem;margin-left:-0.5rem}.is-focus.svelte-10v3us+.mc-fileuploader__label.svelte-10v3us,.svelte-10v3us:focus+.mc-fileuploader__label.svelte-10v3us{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.is-hover.svelte-10v3us+.mc-fileuploader__label.svelte-10v3us,.svelte-10v3us:hover+.mc-fileuploader__label.svelte-10v3us{color:#006902;background-color:#ebf5de}.is-disabled.svelte-10v3us+.mc-fileuploader__label.svelte-10v3us,.svelte-10v3us:disabled+.mc-fileuploader__label.svelte-10v3us{color:#666666;background-color:#cccccc;border-color:transparent;cursor:not-allowed}.is-disabled.svelte-10v3us+.mc-fileuploader__label.svelte-10v3us::before,.svelte-10v3us:disabled+.mc-fileuploader__label.svelte-10v3us::before{background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23666666' viewBox='0 0 24 24'%3E%3Ctitle%3EMedia_Upload_24px%3C/title%3E%3Cpath d='M8.71,7.71,11,5.41V16a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-1.42,0l-4,4A1,1,0,1,0,8.71,7.71Z'/%3E%3Cpath d='M16.22,12.44a1,1,0,0,0-1.2.77,1,1,0,0,0,.76,1.19C18.55,15,20,16.17,20,17c0,1.22-3.12,3-8,3s-8-1.78-8-3c0-.83,1.45-2,4.22-2.6A1,1,0,0,0,9,13.21a1,1,0,0,0-1.2-.77C4.16,13.25,2,15,2,17c0,2.85,4.3,5,10,5s10-2.15,10-5C22,15,19.84,13.25,16.22,12.44Z'/%3E%3C/svg%3E\") no-repeat}.mc-fileuploader__files.svelte-10v3us.svelte-10v3us{list-style:none;padding:0;margin:1rem 0 0 0}.mc-fileuploader__file.svelte-10v3us.svelte-10v3us{font-family:\"LeroyMerlin\", sans-serif;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#e6e6e6;-webkit-box-sizing:content-box;box-sizing:content-box;color:#000000;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.mc-fileuploader__file.svelte-10v3us.svelte-10v3us:not(:last-child){margin-bottom:0.25rem}.mc-fileuploader__file-name.svelte-10v3us.svelte-10v3us{font-size:1rem;line-height:1.375;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 7.5rem)}.mc-fileuploader__file-icon.svelte-10v3us.svelte-10v3us{background-color:transparent;background-position:center right;background-repeat:no-repeat;background-size:1.5rem;display:block;height:1.5rem;margin-left:1rem;margin-right:1rem;width:1.5rem}.mc-fileuploader__file--is-valid.svelte-10v3us .mc-fileuploader__file-icon.svelte-10v3us{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%2346a610' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8m0-2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z'/%3E%3Cpath d='M10.59 16.12a1 1 0 0 1-.68-.26l-3.84-3.55a1 1 0 0 1 1.36-1.47l3.13 2.89L16 8.17a1 1 0 0 1 1.43 1.41l-6.13 6.25a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid.svelte-10v3us .mc-fileuploader__file-icon.svelte-10v3us{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23c61112' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z'/%3E%3Cpath d='M12 7a1 1 0 0 0-1 1v4.38a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E\")}.mc-fileuploader__file--is-invalid.svelte-10v3us .mc-fileuploader__file-message.svelte-10v3us{font-size:0.875rem;line-height:1.2857142857;background:#ffffff;color:#c61112;-ms-flex-preferred-size:100%;flex-basis:100%;padding-top:0.25rem}.mc-fileuploader__delete.svelte-10v3us.svelte-10v3us{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#cccccc;border:none;cursor:pointer;padding:0.5rem}.mc-fileuploader__delete.svelte-10v3us.svelte-10v3us::before{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:\"\";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;top:-0.125rem;right:-0.125rem;bottom:-0.125rem;left:-0.125rem}.mc-fileuploader__delete.svelte-10v3us.svelte-10v3us::after{content:\"\";width:1.5rem;height:1.5rem;background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.5rem' width='1.5rem' fill='%23000000' viewBox='0 0 24 24'%3E%3Cpath d='M18.08 8a1 1 0 0 0-1.08.92L16.08 20H7.92L7 8.92a1 1 0 1 0-2 .16l1 12A1 1 0 0 0 7 22h10a1 1 0 0 0 1-.92l1-12A1 1 0 0 0 18.08 8z'/%3E%3Cpath d='M19 5h-3.77l-.65-2.27a1 1 0 0 0-1-.73h-3.2a1 1 0 0 0-1 .73L8.77 5H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2zm-8.62-2h3.24l.57 2H9.81zM12.5 18v-8a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0zM14.25 18.5a.5.5 0 0 0 .5-.47l.5-8a.5.5 0 0 0-.47-.53.49.49 0 0 0-.53.47l-.5 8a.5.5 0 0 0 .47.53zM9.75 18.5a.5.5 0 0 0 .47-.53l-.5-8a.49.49 0 0 0-.53-.47.5.5 0 0 0-.47.53l.5 8a.5.5 0 0 0 .53.47z'/%3E%3C/svg%3E\") no-repeat;background-size:1.5rem;display:block}.mc-fileuploader__delete.svelte-10v3us.svelte-10v3us:focus{outline:none}.mc-fileuploader__delete.svelte-10v3us.svelte-10v3us:focus::before{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}")}function _(e,l,s){const i=e.slice();return i[15]=l[s],i[17]=s,i}function k(e){let l,s,i=e[3][e[15].errorType]+"";return{c(){l=t("div"),s=m(i),a(l,"class","mc-fileuploader__file-message svelte-10v3us")},m(e,i){r(e,l,i),b(l,s)},p(e,l){9&l&&i!==(i=e[3][e[15].errorType]+"")&&h(s,i)},d(e){e&&n(l)}}}function y(e){let l,s,i,o,c,d,v,u,f,w,x,_,y=e[15].name+"";function C(){return e[9](e[15])}let E=e[15].errorType&&k(e);return{c(){l=t("li"),s=t("span"),i=m(y),o=p(),c=t("span"),c.textContent=" ",d=p(),v=t("button"),u=p(),E&&E.c(),f=p(),a(s,"class","mc-fileuploader__file-name svelte-10v3us"),a(c,"class","mc-fileuploader__file-icon svelte-10v3us"),a(v,"type","button"),a(v,"class","mc-fileuploader__delete svelte-10v3us"),a(v,"aria-label",e[2]),v.disabled=e[1],a(l,"id",`file-${e[17]}`),a(l,"class",w=e[4](e[15])+" "+e[6].class+" svelte-10v3us")},m(e,t){r(e,l,t),b(l,s),b(s,i),b(l,o),b(l,c),b(l,d),b(l,v),b(l,u),E&&E.m(l,null),b(l,f),x||(_=g(v,"click",C),x=!0)},p(s,t){e=s,1&t&&y!==(y=e[15].name+"")&&h(i,y),4&t&&a(v,"aria-label",e[2]),2&t&&(v.disabled=e[1]),e[15].errorType?E?E.p(e,t):(E=k(e),E.c(),E.m(l,f)):E&&(E.d(1),E=null),65&t&&w!==(w=e[4](e[15])+" "+e[6].class+" svelte-10v3us")&&a(l,"class",w)},d(e){e&&n(l),E&&E.d(),x=!1,_()}}}function C(e){let l,s=e[0],i=[];for(let l=0;l<s.length;l+=1)i[l]=y(_(e,s,l));return{c(){l=t("ul");for(let e=0;e<i.length;e+=1)i[e].c();a(l,"id","file_uploaded"),a(l,"class","mc-fileuploader__files svelte-10v3us")},m(e,s){r(e,l,s);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(l,null)},p(e,[t]){if(127&t){let a;for(s=e[0],a=0;a<s.length;a+=1){const r=_(e,s,a);i[a]?i[a].p(r,t):(i[a]=y(r),i[a].c(),i[a].m(l,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=s.length}},i:o,o:o,d(e){e&&n(l),c(i,e)}}}function E(e,l,s){let{allowedExtensions:i}=l,{maxSize:t}=l,{disabled:a=!1}=l,{files:r}=l,{removelabel:o="Remove"}=l,{errorLabels:n}=l,c=new w(d(),v());function m(e){if(i&&i.length>0){const l=e.slice(2+(e.lastIndexOf(".")-1>>>0));if(i&&!i.includes(String(l)))return!1}return!0}function p(e){return!(t&&e/1024/1024>t)}function b(e){c.dispatch("file-removed",e)}return e.$$set=e=>{s(6,l=u(u({},l),f(e))),"allowedExtensions"in e&&s(8,i=e.allowedExtensions),"maxSize"in e&&s(7,t=e.maxSize),"disabled"in e&&s(1,a=e.disabled),"files"in e&&s(0,r=e.files),"removelabel"in e&&s(2,o=e.removelabel),"errorLabels"in e&&s(3,n=e.errorLabels)},e.$$.update=()=>{1&e.$$.dirty&&s(0,r=r?function(e){let l=[...e];return l.forEach(((e,l)=>{const s=m(e.name),i=p(e.size);let t="";s||(t="invalid-extension"),i||(t="invalid-size"),e.errorType&&(t=e.errorType),s&&i&&!e.errorType||(e.errorType=t)})),l}(r):[]),128&e.$$.dirty&&s(7,t=t||void 0)},l=f(l),[r,a,o,n,function(e){let l=["mc-fileuploader__file"];return!function(e){const l=!i||m(e.name),s=p(e.size);if(!l||!s)return!1;return!0}(e)||e.errorType?l.push("mc-fileuploader__file--is-invalid"):l.push("mc-fileuploader__file--is-valid"),l.join(" ")},b,l,t,i,e=>b(e)]}class z extends e{constructor(e){super(),l(this,e,E,C,s,{allowedExtensions:8,maxSize:7,disabled:1,files:0,removelabel:2,errorLabels:3},x)}}export{z as default};
2
2
  //# sourceMappingURL=fileuploader-result.nested.js.map