@mozaic-ds/web-components 1.0.0-alpha.0 → 1.0.0-alpha.2

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 (446) hide show
  1. package/package.json +34 -35
  2. package/public/attributes-Dd-ZbJDt.js +2 -0
  3. package/public/attributes-Dd-ZbJDt.js.map +1 -0
  4. package/public/bundle.js +11 -279
  5. package/public/components/badge/Badge.js +1 -1
  6. package/public/components/badge/Badge.js.map +1 -1
  7. package/public/components/badge/Badge.svelte +9 -12
  8. package/public/components/button/Button.js +1 -1
  9. package/public/components/button/Button.js.map +1 -1
  10. package/public/components/button/Button.svelte +70 -49
  11. package/public/components/button/IconButton.js +1 -1
  12. package/public/components/button/IconButton.js.map +1 -1
  13. package/public/components/checkbox/Checkbox.js +1 -1
  14. package/public/components/checkbox/Checkbox.js.map +1 -1
  15. package/public/components/checkbox/Checkbox.svelte +29 -31
  16. package/public/components/checkboxgroup/checkboxGroup.js +1 -1
  17. package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
  18. package/public/components/checkboxgroup/checkboxGroup.svelte +25 -35
  19. package/public/components/field/Field.js +1 -1
  20. package/public/components/field/Field.js.map +1 -1
  21. package/public/components/field/Field.svelte +31 -13
  22. package/public/components/iconbutton/IconButton.svelte +23 -13
  23. package/public/components/link/Link.js +1 -1
  24. package/public/components/link/Link.js.map +1 -1
  25. package/public/components/link/Link.svelte +1 -7
  26. package/public/components/loader/Loader.js +1 -1
  27. package/public/components/loader/Loader.js.map +1 -1
  28. package/public/components/loader/Loader.svelte +10 -5
  29. package/public/components/overlay/Overlay.js +1 -1
  30. package/public/components/overlay/Overlay.js.map +1 -1
  31. package/public/components/overlay/Overlay.svelte +8 -4
  32. package/public/components/overlay/OverlayLoader.js +1 -1
  33. package/public/components/overlay/OverlayLoader.js.map +1 -1
  34. package/public/components/overlayloader/OverlayLoader.svelte +8 -4
  35. package/public/components/quantityselector/QuantitySelector.js +1 -1
  36. package/public/components/quantityselector/QuantitySelector.js.map +1 -1
  37. package/public/components/quantityselector/QuantitySelector.svelte +47 -34
  38. package/public/components/radio/Radio.js +1 -1
  39. package/public/components/radio/Radio.js.map +1 -1
  40. package/public/components/radio/Radio.svelte +11 -22
  41. package/public/components/radiogroup/RadioGroup.js +1 -1
  42. package/public/components/radiogroup/RadioGroup.js.map +1 -1
  43. package/public/components/radiogroup/RadioGroup.svelte +25 -28
  44. package/public/components/select/Select.js +1 -1
  45. package/public/components/select/Select.js.map +1 -1
  46. package/public/components/select/Select.svelte +34 -30
  47. package/public/components/statusbadge/StatusBadge.js +1 -1
  48. package/public/components/statusbadge/StatusBadge.js.map +1 -1
  49. package/public/components/statusbadge/StatusBadge.svelte +6 -2
  50. package/public/components/statusbadge/StatusDot.js +1 -1
  51. package/public/components/statusbadge/StatusDot.js.map +1 -1
  52. package/public/components/statusdot/StatusDot.svelte +7 -3
  53. package/public/components/textarea/Textarea.js +1 -1
  54. package/public/components/textarea/Textarea.js.map +1 -1
  55. package/public/components/textarea/Textarea.svelte +30 -28
  56. package/public/components/textinput/Textinput.js +1 -1
  57. package/public/components/textinput/Textinput.js.map +1 -1
  58. package/public/components/textinput/Textinput.svelte +48 -50
  59. package/public/components/toggle/Toggle.js +1 -1
  60. package/public/components/toggle/Toggle.js.map +1 -1
  61. package/public/components/toggle/Toggle.svelte +19 -24
  62. package/public/custom-element-D6iR2OWc.js +2 -0
  63. package/public/custom-element-D6iR2OWc.js.map +1 -0
  64. package/public/each-BEbHCKXS.js +2 -0
  65. package/public/each-BEbHCKXS.js.map +1 -0
  66. package/public/html-BTWDDGk7.js +2 -0
  67. package/public/html-BTWDDGk7.js.map +1 -0
  68. package/public/if-CxjAhvpF.js +2 -0
  69. package/public/if-CxjAhvpF.js.map +1 -0
  70. package/public/input-D1i5U2EE.js +2 -0
  71. package/public/input-D1i5U2EE.js.map +1 -0
  72. package/public/main.d.ts +22 -56
  73. package/public/main.d.ts.map +1 -1
  74. package/public/slot-snFjRYH3.js +2 -0
  75. package/public/slot-snFjRYH3.js.map +1 -0
  76. package/public/utilities/ClickOutside.d.ts +0 -1
  77. package/public/utilities/ClickOutside.d.ts.map +1 -1
  78. package/public/utilities/EventForward.d.ts.map +1 -1
  79. package/public/EventForward-bb916157.js +0 -2
  80. package/public/EventForward-bb916157.js.map +0 -1
  81. package/public/EventHandler-f7ee47ca.js +0 -2
  82. package/public/EventHandler-f7ee47ca.js.map +0 -1
  83. package/public/components/accordion/Accordion.svelte +0 -98
  84. package/public/components/accordion/accordion.types.d.ts +0 -2
  85. package/public/components/accordion/accordion.types.d.ts.map +0 -1
  86. package/public/components/actionbar/ActionBar.svelte +0 -97
  87. package/public/components/autocomplete/Autocomplete.svelte +0 -442
  88. package/public/components/autocomplete/autocomplete.types.d.ts +0 -3
  89. package/public/components/autocomplete/autocomplete.types.d.ts.map +0 -1
  90. package/public/components/barchart/BarChart.svelte +0 -318
  91. package/public/components/bottombar/BottomBar.svelte +0 -18
  92. package/public/components/breadcrumb/Breadcrumb.svelte +0 -63
  93. package/public/components/breadcrumb/breadcrumb.types.d.ts +0 -7
  94. package/public/components/breadcrumb/breadcrumb.types.d.ts.map +0 -1
  95. package/public/components/card/Card.svelte +0 -56
  96. package/public/components/card/card.types.d.ts +0 -4
  97. package/public/components/card/card.types.d.ts.map +0 -1
  98. package/public/components/carousel/Carousel.svelte +0 -419
  99. package/public/components/carousel/carousel.types.d.ts +0 -19
  100. package/public/components/carousel/carousel.types.d.ts.map +0 -1
  101. package/public/components/chart/bar-chart.types.d.ts +0 -26
  102. package/public/components/chart/bar-chart.types.d.ts.map +0 -1
  103. package/public/components/chart/donut.types.d.ts +0 -13
  104. package/public/components/chart/donut.types.d.ts.map +0 -1
  105. package/public/components/chart/grouped-bar-chart.types.d.ts +0 -25
  106. package/public/components/chart/grouped-bar-chart.types.d.ts.map +0 -1
  107. package/public/components/chart/line-chart.types.d.ts +0 -14
  108. package/public/components/chart/line-chart.types.d.ts.map +0 -1
  109. package/public/components/chart/radar.types.d.ts +0 -10
  110. package/public/components/chart/radar.types.d.ts.map +0 -1
  111. package/public/components/datatable/DataTable.svelte +0 -935
  112. package/public/components/datatable/data.d.ts +0 -9
  113. package/public/components/datatable/data.d.ts.map +0 -1
  114. package/public/components/datatable/datatable-default-action.nested.svelte +0 -341
  115. package/public/components/datatable/datatable-default-edtion.nested.svelte +0 -64
  116. package/public/components/datatable/datatable-default-filter-tags.nested.svelte +0 -117
  117. package/public/components/datatable/datatable-default-footer.nested.svelte +0 -136
  118. package/public/components/datatable/datatable-default-selection-label.nested.svelte +0 -56
  119. package/public/components/datatable/datatable-default-selection.nested.svelte +0 -85
  120. package/public/components/datatable/datatable.types.d.ts +0 -170
  121. package/public/components/datatable/datatable.types.d.ts.map +0 -1
  122. package/public/components/donut/Donut.svelte +0 -439
  123. package/public/components/dropdown/Dropdown.svelte +0 -355
  124. package/public/components/fileuploader/FileUploader.svelte +0 -201
  125. package/public/components/fileuploader/fileuploader-result.nested.svelte +0 -118
  126. package/public/components/fileuploader-result/fileuploader-result.svelte +0 -118
  127. package/public/components/flag/Flag.svelte +0 -45
  128. package/public/components/flag/flag.types.d.ts +0 -2
  129. package/public/components/flag/flag.types.d.ts.map +0 -1
  130. package/public/components/groupedbarchart/GroupedBarChart.svelte +0 -446
  131. package/public/components/header/Header.svelte +0 -194
  132. package/public/components/header/Header.types.d.ts +0 -5
  133. package/public/components/header/Header.types.d.ts.map +0 -1
  134. package/public/components/hero/Hero.svelte +0 -58
  135. package/public/components/hero/hero.type.d.ts +0 -7
  136. package/public/components/hero/hero.type.d.ts.map +0 -1
  137. package/public/components/kpi/Kpi.svelte +0 -237
  138. package/public/components/layer/Layer.svelte +0 -121
  139. package/public/components/layer/layer.types.d.ts +0 -2
  140. package/public/components/layer/layer.types.d.ts.map +0 -1
  141. package/public/components/linechart/LineChart.svelte +0 -327
  142. package/public/components/listbox/Listbox.nested.svelte +0 -157
  143. package/public/components/listbox/Listbox.svelte +0 -101
  144. package/public/components/listbox/listbox.types.d.ts +0 -8
  145. package/public/components/listbox/listbox.types.d.ts.map +0 -1
  146. package/public/components/menu/Menu.svelte +0 -66
  147. package/public/components/menu/menu.types.d.ts +0 -9
  148. package/public/components/menu/menu.types.d.ts.map +0 -1
  149. package/public/components/modal/Modal.svelte +0 -92
  150. package/public/components/notification/Notification.svelte +0 -97
  151. package/public/components/notification/notification.types.d.ts +0 -14
  152. package/public/components/notification/notification.types.d.ts.map +0 -1
  153. package/public/components/optionbutton/OptionButton.svelte +0 -64
  154. package/public/components/optionbutton/optionbutton.types.d.ts +0 -10
  155. package/public/components/optionbutton/optionbutton.types.d.ts.map +0 -1
  156. package/public/components/pagination/Pagination.svelte +0 -125
  157. package/public/components/pagination/pagination.types.d.ts +0 -2
  158. package/public/components/pagination/pagination.types.d.ts.map +0 -1
  159. package/public/components/passwordinput/PasswordInput.svelte +0 -65
  160. package/public/components/passwordinput/passwordinput.types.d.ts +0 -6
  161. package/public/components/passwordinput/passwordinput.types.d.ts.map +0 -1
  162. package/public/components/phonenumber/PhoneNumber.svelte +0 -337
  163. package/public/components/phonenumber/phonenumber.types.d.ts +0 -15
  164. package/public/components/phonenumber/phonenumber.types.d.ts.map +0 -1
  165. package/public/components/price/Price.svelte +0 -224
  166. package/public/components/price/price.types.d.ts +0 -2
  167. package/public/components/price/price.types.d.ts.map +0 -1
  168. package/public/components/progressbar/ProgressBar.svelte +0 -53
  169. package/public/components/progressbar/progressbar.types.d.ts +0 -2
  170. package/public/components/progressbar/progressbar.types.d.ts.map +0 -1
  171. package/public/components/radar/Radar.svelte +0 -386
  172. package/public/components/ratings/ratings.types.d.ts +0 -2
  173. package/public/components/ratings/ratings.types.d.ts.map +0 -1
  174. package/public/components/segmentedcontrol/SegmentedControl.svelte +0 -61
  175. package/public/components/segmentedcontrol/segmentedControl.types.d.ts +0 -9
  176. package/public/components/segmentedcontrol/segmentedControl.types.d.ts.map +0 -1
  177. package/public/components/sidebar/Sidebar.svelte +0 -282
  178. package/public/components/sidebar/sidebar-feature-group.nested.svelte +0 -311
  179. package/public/components/sidebar/sidebar-feature.nested.svelte +0 -249
  180. package/public/components/sidebar/sidebar-section.nested.svelte +0 -138
  181. package/public/components/sidebar/sidebar-segment.nested.svelte +0 -136
  182. package/public/components/sidebar/sidebar-separator.nested.svelte +0 -30
  183. package/public/components/sidebar/sidebar-service.d.ts +0 -20
  184. package/public/components/sidebar/sidebar-service.d.ts.map +0 -1
  185. package/public/components/sidebar/sidebar-sub-features.nested.svelte +0 -118
  186. package/public/components/sidebar/sidebar-user.nested.svelte +0 -292
  187. package/public/components/sidebar/sidebar.types.d.ts +0 -44
  188. package/public/components/sidebar/sidebar.types.d.ts.map +0 -1
  189. package/public/components/stackedbarchart/StackedBarChart.svelte +0 -348
  190. package/public/components/starsinput/StarsInput.svelte +0 -77
  191. package/public/components/starsresult/StarsResult.svelte +0 -85
  192. package/public/components/stepper/Stepper.svelte +0 -97
  193. package/public/components/stepper/stepper.types.d.ts +0 -6
  194. package/public/components/stepper/stepper.types.d.ts.map +0 -1
  195. package/public/components/stepperbar/StepperBar.svelte +0 -101
  196. package/public/components/tabs/Tabs.svelte +0 -170
  197. package/public/components/tabs/tabs.types.d.ts +0 -14
  198. package/public/components/tabs/tabs.types.d.ts.map +0 -1
  199. package/public/components/tag/Tag.svelte +0 -118
  200. package/public/components/tag/tag.types.d.ts +0 -9
  201. package/public/components/tag/tag.types.d.ts.map +0 -1
  202. package/public/components/taglist/TagList.svelte +0 -84
  203. package/public/components/tooltip/Tooltip.svelte +0 -36
  204. package/public/components/tooltip/tooltip.types.d.ts +0 -2
  205. package/public/components/tooltip/tooltip.types.d.ts.map +0 -1
  206. package/public/each-45e2db5c.js +0 -2
  207. package/public/each-45e2db5c.js.map +0 -1
  208. package/public/index-c0bfe08f.js +0 -2
  209. package/public/index-c0bfe08f.js.map +0 -1
  210. package/public/spread-ed04f539.js +0 -2
  211. package/public/spread-ed04f539.js.map +0 -1
  212. package/public/stories/carousel/items.d.ts +0 -3
  213. package/public/stories/carousel/items.d.ts.map +0 -1
  214. package/public/utilities/ClickOutside.js +0 -2
  215. package/public/utilities/ClickOutside.js.map +0 -1
  216. package/public/utilities/DataTableUtilities.d.ts +0 -19
  217. package/public/utilities/DataTableUtilities.d.ts.map +0 -1
  218. package/public/utilities/DataTableUtilities.ts +0 -507
  219. package/public/utilities/EventForward.js +0 -2
  220. package/public/utilities/EventForward.js.map +0 -1
  221. package/public/utilities/additional-svelte-jsx.d.ts +0 -9
  222. package/public/utilities/components/accordion/accordion.types.d.ts +0 -2
  223. package/public/utilities/components/accordion/accordion.types.d.ts.map +0 -1
  224. package/public/utilities/components/autocomplete/autocomplete.types.d.ts +0 -3
  225. package/public/utilities/components/autocomplete/autocomplete.types.d.ts.map +0 -1
  226. package/public/utilities/components/badge/badge.types.d.ts +0 -3
  227. package/public/utilities/components/badge/badge.types.d.ts.map +0 -1
  228. package/public/utilities/components/breadcrumb/breadcrumb.types.d.ts +0 -7
  229. package/public/utilities/components/breadcrumb/breadcrumb.types.d.ts.map +0 -1
  230. package/public/utilities/components/button/button.types.d.ts +0 -13
  231. package/public/utilities/components/button/button.types.d.ts.map +0 -1
  232. package/public/utilities/components/card/card.types.d.ts +0 -4
  233. package/public/utilities/components/card/card.types.d.ts.map +0 -1
  234. package/public/utilities/components/carousel/carousel.types.d.ts +0 -19
  235. package/public/utilities/components/carousel/carousel.types.d.ts.map +0 -1
  236. package/public/utilities/components/chart/bar-chart.types.d.ts +0 -26
  237. package/public/utilities/components/chart/bar-chart.types.d.ts.map +0 -1
  238. package/public/utilities/components/chart/donut.types.d.ts +0 -13
  239. package/public/utilities/components/chart/donut.types.d.ts.map +0 -1
  240. package/public/utilities/components/chart/grouped-bar-chart.types.d.ts +0 -25
  241. package/public/utilities/components/chart/grouped-bar-chart.types.d.ts.map +0 -1
  242. package/public/utilities/components/chart/line-chart.types.d.ts +0 -14
  243. package/public/utilities/components/chart/line-chart.types.d.ts.map +0 -1
  244. package/public/utilities/components/chart/radar.types.d.ts +0 -10
  245. package/public/utilities/components/chart/radar.types.d.ts.map +0 -1
  246. package/public/utilities/components/checkboxgroup/checkboxgroup.types.d.ts +0 -11
  247. package/public/utilities/components/checkboxgroup/checkboxgroup.types.d.ts.map +0 -1
  248. package/public/utilities/components/datatable/data.d.ts +0 -9
  249. package/public/utilities/components/datatable/data.d.ts.map +0 -1
  250. package/public/utilities/components/datatable/datatable.types.d.ts +0 -170
  251. package/public/utilities/components/datatable/datatable.types.d.ts.map +0 -1
  252. package/public/utilities/components/flag/flag.types.d.ts +0 -2
  253. package/public/utilities/components/flag/flag.types.d.ts.map +0 -1
  254. package/public/utilities/components/header/Header.types.d.ts +0 -5
  255. package/public/utilities/components/header/Header.types.d.ts.map +0 -1
  256. package/public/utilities/components/hero/hero.type.d.ts +0 -7
  257. package/public/utilities/components/hero/hero.type.d.ts.map +0 -1
  258. package/public/utilities/components/layer/layer.types.d.ts +0 -2
  259. package/public/utilities/components/layer/layer.types.d.ts.map +0 -1
  260. package/public/utilities/components/link/link.types.d.ts +0 -4
  261. package/public/utilities/components/link/link.types.d.ts.map +0 -1
  262. package/public/utilities/components/listbox/listbox.types.d.ts +0 -8
  263. package/public/utilities/components/listbox/listbox.types.d.ts.map +0 -1
  264. package/public/utilities/components/loader/loader.types.d.ts +0 -3
  265. package/public/utilities/components/loader/loader.types.d.ts.map +0 -1
  266. package/public/utilities/components/menu/menu.types.d.ts +0 -9
  267. package/public/utilities/components/menu/menu.types.d.ts.map +0 -1
  268. package/public/utilities/components/notification/notification.types.d.ts +0 -14
  269. package/public/utilities/components/notification/notification.types.d.ts.map +0 -1
  270. package/public/utilities/components/optionbutton/optionbutton.types.d.ts +0 -10
  271. package/public/utilities/components/optionbutton/optionbutton.types.d.ts.map +0 -1
  272. package/public/utilities/components/pagination/pagination.types.d.ts +0 -2
  273. package/public/utilities/components/pagination/pagination.types.d.ts.map +0 -1
  274. package/public/utilities/components/passwordinput/passwordinput.types.d.ts +0 -6
  275. package/public/utilities/components/passwordinput/passwordinput.types.d.ts.map +0 -1
  276. package/public/utilities/components/phonenumber/phonenumber.types.d.ts +0 -15
  277. package/public/utilities/components/phonenumber/phonenumber.types.d.ts.map +0 -1
  278. package/public/utilities/components/price/price.types.d.ts +0 -2
  279. package/public/utilities/components/price/price.types.d.ts.map +0 -1
  280. package/public/utilities/components/progressbar/progressbar.types.d.ts +0 -2
  281. package/public/utilities/components/progressbar/progressbar.types.d.ts.map +0 -1
  282. package/public/utilities/components/radiogroup/radioGroup.types.d.ts +0 -9
  283. package/public/utilities/components/radiogroup/radioGroup.types.d.ts.map +0 -1
  284. package/public/utilities/components/ratings/ratings.types.d.ts +0 -2
  285. package/public/utilities/components/ratings/ratings.types.d.ts.map +0 -1
  286. package/public/utilities/components/segmentedcontrol/segmentedControl.types.d.ts +0 -9
  287. package/public/utilities/components/segmentedcontrol/segmentedControl.types.d.ts.map +0 -1
  288. package/public/utilities/components/select/select.types.d.ts +0 -9
  289. package/public/utilities/components/select/select.types.d.ts.map +0 -1
  290. package/public/utilities/components/sidebar/sidebar-service.d.ts +0 -20
  291. package/public/utilities/components/sidebar/sidebar-service.d.ts.map +0 -1
  292. package/public/utilities/components/sidebar/sidebar.types.d.ts +0 -44
  293. package/public/utilities/components/sidebar/sidebar.types.d.ts.map +0 -1
  294. package/public/utilities/components/statusbadge/badge.types.d.ts +0 -3
  295. package/public/utilities/components/statusbadge/badge.types.d.ts.map +0 -1
  296. package/public/utilities/components/stepper/stepper.types.d.ts +0 -6
  297. package/public/utilities/components/stepper/stepper.types.d.ts.map +0 -1
  298. package/public/utilities/components/tabs/tabs.types.d.ts +0 -14
  299. package/public/utilities/components/tabs/tabs.types.d.ts.map +0 -1
  300. package/public/utilities/components/tag/tag.types.d.ts +0 -9
  301. package/public/utilities/components/tag/tag.types.d.ts.map +0 -1
  302. package/public/utilities/components/textinput/textinput.types.d.ts +0 -3
  303. package/public/utilities/components/textinput/textinput.types.d.ts.map +0 -1
  304. package/public/utilities/components/toggle/toggle.types.d.ts +0 -2
  305. package/public/utilities/components/toggle/toggle.types.d.ts.map +0 -1
  306. package/public/utilities/components/tooltip/tooltip.types.d.ts +0 -2
  307. package/public/utilities/components/tooltip/tooltip.types.d.ts.map +0 -1
  308. package/public/utilities/main.d.ts +0 -60
  309. package/public/utilities/main.d.ts.map +0 -1
  310. package/public/utilities/sidebar-service.d.ts +0 -9
  311. package/public/utilities/sidebar-service.d.ts.map +0 -1
  312. package/public/utilities/sidebar-service.ts +0 -93
  313. package/public/utilities/stories/accordion/Accordion.stories.d.ts +0 -17
  314. package/public/utilities/stories/accordion/Accordion.stories.d.ts.map +0 -1
  315. package/public/utilities/stories/actionbar/ActionBar.stories.d.ts +0 -7
  316. package/public/utilities/stories/actionbar/ActionBar.stories.d.ts.map +0 -1
  317. package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts +0 -10
  318. package/public/utilities/stories/autocomplete/Autocomplete.stories.d.ts.map +0 -1
  319. package/public/utilities/stories/badge/Badge.stories.d.ts +0 -8
  320. package/public/utilities/stories/badge/Badge.stories.d.ts.map +0 -1
  321. package/public/utilities/stories/bottombar/BottomBar.stories.d.ts +0 -6
  322. package/public/utilities/stories/bottombar/BottomBar.stories.d.ts.map +0 -1
  323. package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts +0 -7
  324. package/public/utilities/stories/breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  325. package/public/utilities/stories/button/Button.stories.d.ts +0 -8
  326. package/public/utilities/stories/button/Button.stories.d.ts.map +0 -1
  327. package/public/utilities/stories/button/IconButton.stories.d.ts +0 -7
  328. package/public/utilities/stories/button/IconButton.stories.d.ts.map +0 -1
  329. package/public/utilities/stories/card/Card.stories.d.ts +0 -7
  330. package/public/utilities/stories/card/Card.stories.d.ts.map +0 -1
  331. package/public/utilities/stories/carousel/Carousel.stories.d.ts +0 -8
  332. package/public/utilities/stories/carousel/Carousel.stories.d.ts.map +0 -1
  333. package/public/utilities/stories/carousel/items.d.ts +0 -3
  334. package/public/utilities/stories/carousel/items.d.ts.map +0 -1
  335. package/public/utilities/stories/chart/BarChart.stories.d.ts +0 -7
  336. package/public/utilities/stories/chart/BarChart.stories.d.ts.map +0 -1
  337. package/public/utilities/stories/chart/Donut.stories.d.ts +0 -7
  338. package/public/utilities/stories/chart/Donut.stories.d.ts.map +0 -1
  339. package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts +0 -6
  340. package/public/utilities/stories/chart/GroupedBarChart.stories.d.ts.map +0 -1
  341. package/public/utilities/stories/chart/LineChart.stories.d.ts +0 -5
  342. package/public/utilities/stories/chart/LineChart.stories.d.ts.map +0 -1
  343. package/public/utilities/stories/chart/Radar.stories.d.ts +0 -7
  344. package/public/utilities/stories/chart/Radar.stories.d.ts.map +0 -1
  345. package/public/utilities/stories/chart/StackedBarChart.stories.d.ts +0 -6
  346. package/public/utilities/stories/chart/StackedBarChart.stories.d.ts.map +0 -1
  347. package/public/utilities/stories/checkbox/Checkbox.stories.d.ts +0 -9
  348. package/public/utilities/stories/checkbox/Checkbox.stories.d.ts.map +0 -1
  349. package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts +0 -7
  350. package/public/utilities/stories/checkbox-group/Checkbox-group.stories.d.ts.map +0 -1
  351. package/public/utilities/stories/datatable/DataTable.stories.d.ts +0 -15
  352. package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +0 -1
  353. package/public/utilities/stories/dropdown/Dropdown.stories.d.ts +0 -9
  354. package/public/utilities/stories/dropdown/Dropdown.stories.d.ts.map +0 -1
  355. package/public/utilities/stories/field/Field.stories.d.ts +0 -10
  356. package/public/utilities/stories/field/Field.stories.d.ts.map +0 -1
  357. package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts +0 -11
  358. package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +0 -1
  359. package/public/utilities/stories/flag/Flag.stories.d.ts +0 -6
  360. package/public/utilities/stories/flag/Flag.stories.d.ts.map +0 -1
  361. package/public/utilities/stories/header/Header.stories.d.ts +0 -9
  362. package/public/utilities/stories/header/Header.stories.d.ts.map +0 -1
  363. package/public/utilities/stories/hero/Hero.stories.d.ts +0 -8
  364. package/public/utilities/stories/hero/Hero.stories.d.ts.map +0 -1
  365. package/public/utilities/stories/icon/Icon.stories.d.ts +0 -6
  366. package/public/utilities/stories/icon/Icon.stories.d.ts.map +0 -1
  367. package/public/utilities/stories/kpi/kpi.stories.d.ts +0 -7
  368. package/public/utilities/stories/kpi/kpi.stories.d.ts.map +0 -1
  369. package/public/utilities/stories/layer/Layer.stories.d.ts +0 -9
  370. package/public/utilities/stories/layer/Layer.stories.d.ts.map +0 -1
  371. package/public/utilities/stories/link/Link.stories.d.ts +0 -7
  372. package/public/utilities/stories/link/Link.stories.d.ts.map +0 -1
  373. package/public/utilities/stories/listbox/Listbox.stories.d.ts +0 -6
  374. package/public/utilities/stories/listbox/Listbox.stories.d.ts.map +0 -1
  375. package/public/utilities/stories/loader/Loader.stories.d.ts +0 -7
  376. package/public/utilities/stories/loader/Loader.stories.d.ts.map +0 -1
  377. package/public/utilities/stories/menu/Menu.stories.d.ts +0 -5
  378. package/public/utilities/stories/menu/Menu.stories.d.ts.map +0 -1
  379. package/public/utilities/stories/modal/Modal.stories.d.ts +0 -5
  380. package/public/utilities/stories/modal/Modal.stories.d.ts.map +0 -1
  381. package/public/utilities/stories/notification/Notification.stories.d.ts +0 -13
  382. package/public/utilities/stories/notification/Notification.stories.d.ts.map +0 -1
  383. package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts +0 -6
  384. package/public/utilities/stories/optionbutton/OptionButton.stories.d.ts.map +0 -1
  385. package/public/utilities/stories/overlay/Overlay.stories.d.ts +0 -5
  386. package/public/utilities/stories/overlay/Overlay.stories.d.ts.map +0 -1
  387. package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts +0 -5
  388. package/public/utilities/stories/overlay/OverlayLoader.stories.d.ts.map +0 -1
  389. package/public/utilities/stories/pagination/Pagination.stories.d.ts +0 -6
  390. package/public/utilities/stories/pagination/Pagination.stories.d.ts.map +0 -1
  391. package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts +0 -5
  392. package/public/utilities/stories/passwordinput/PasswordInput.stories.d.ts.map +0 -1
  393. package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts +0 -7
  394. package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +0 -1
  395. package/public/utilities/stories/price/Price.stories.d.ts +0 -10
  396. package/public/utilities/stories/price/Price.stories.d.ts.map +0 -1
  397. package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts +0 -10
  398. package/public/utilities/stories/progressbar/ProgressBar.stories.d.ts.map +0 -1
  399. package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts +0 -7
  400. package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +0 -1
  401. package/public/utilities/stories/radio/Radio.stories.d.ts +0 -8
  402. package/public/utilities/stories/radio/Radio.stories.d.ts.map +0 -1
  403. package/public/utilities/stories/radio-group/Radio-group.stories.d.ts +0 -7
  404. package/public/utilities/stories/radio-group/Radio-group.stories.d.ts.map +0 -1
  405. package/public/utilities/stories/ratings/StarsInput.stories.d.ts +0 -5
  406. package/public/utilities/stories/ratings/StarsInput.stories.d.ts.map +0 -1
  407. package/public/utilities/stories/ratings/StarsResult.stories.d.ts +0 -5
  408. package/public/utilities/stories/ratings/StarsResult.stories.d.ts.map +0 -1
  409. package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts +0 -5
  410. package/public/utilities/stories/segmentedcontrol/segmentedcontrol.stories.d.ts.map +0 -1
  411. package/public/utilities/stories/select/Select.stories.d.ts +0 -8
  412. package/public/utilities/stories/select/Select.stories.d.ts.map +0 -1
  413. package/public/utilities/stories/sidebar/Sidebar.stories.d.ts +0 -5
  414. package/public/utilities/stories/sidebar/Sidebar.stories.d.ts.map +0 -1
  415. package/public/utilities/stories/status-badge/StatusBadge.stories.d.ts +0 -8
  416. package/public/utilities/stories/status-badge/StatusBadge.stories.d.ts.map +0 -1
  417. package/public/utilities/stories/status-dot/StatusDot.stories.d.ts +0 -9
  418. package/public/utilities/stories/status-dot/StatusDot.stories.d.ts.map +0 -1
  419. package/public/utilities/stories/stepper/Stepper.stories.d.ts +0 -6
  420. package/public/utilities/stories/stepper/Stepper.stories.d.ts.map +0 -1
  421. package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts +0 -7
  422. package/public/utilities/stories/stepperbar/StepperBar.stories.d.ts.map +0 -1
  423. package/public/utilities/stories/tabs/Tabs.stories.d.ts +0 -9
  424. package/public/utilities/stories/tabs/Tabs.stories.d.ts.map +0 -1
  425. package/public/utilities/stories/tag/Tag.stories.d.ts +0 -8
  426. package/public/utilities/stories/tag/Tag.stories.d.ts.map +0 -1
  427. package/public/utilities/stories/taglist/Taglist.stories.d.ts +0 -6
  428. package/public/utilities/stories/taglist/Taglist.stories.d.ts.map +0 -1
  429. package/public/utilities/stories/textarea/Textarea.stories.d.ts +0 -8
  430. package/public/utilities/stories/textarea/Textarea.stories.d.ts.map +0 -1
  431. package/public/utilities/stories/textinput/Textinput.stories.d.ts +0 -7
  432. package/public/utilities/stories/textinput/Textinput.stories.d.ts.map +0 -1
  433. package/public/utilities/stories/toggle/Toggle.stories.d.ts +0 -8
  434. package/public/utilities/stories/toggle/Toggle.stories.d.ts.map +0 -1
  435. package/public/utilities/stories/tooltip/Tooltip.stories.d.ts +0 -5
  436. package/public/utilities/stories/tooltip/Tooltip.stories.d.ts.map +0 -1
  437. package/public/utilities/utilities/ClickOutside.d.ts +0 -4
  438. package/public/utilities/utilities/ClickOutside.d.ts.map +0 -1
  439. package/public/utilities/utilities/DataTableUtilities.d.ts +0 -19
  440. package/public/utilities/utilities/DataTableUtilities.d.ts.map +0 -1
  441. package/public/utilities/utilities/EventForward.d.ts +0 -10
  442. package/public/utilities/utilities/EventForward.d.ts.map +0 -1
  443. package/public/utilities/utilities/EventHandler.d.ts +0 -8
  444. package/public/utilities/utilities/EventHandler.d.ts.map +0 -1
  445. package/public/utilities/utilities/sidebar-service.d.ts +0 -9
  446. package/public/utilities/utilities/sidebar-service.d.ts.map +0 -1
@@ -1,507 +0,0 @@
1
- // import { createElement } from 'react';
2
- import type {
3
- CustomText,
4
- HeadData,
5
- CellValue,
6
- Badge,
7
- Image,
8
- BodyData,
9
- SortDirection,
10
- CellsFormat,
11
- Link,
12
- SelectionParams,
13
- ProgressBar,
14
- Button,
15
- FileFormat,
16
- InputText,
17
- } from '../components/datatable/datatable.types';
18
-
19
- const customTextFormatter = (customText: CustomText): string => {
20
- let customTextHtml = '';
21
- customText.map(
22
- (item) =>
23
- (customTextHtml += `<div class="custom-text" ${
24
- item.style ? `style="${item.style}"` : ''
25
- }> ${item.text}</div>`),
26
- );
27
- return customTextHtml;
28
- };
29
- const customNumberFormatter = (number: Number): string => {
30
- return number !== null && number !== undefined
31
- ? `<span style="display: flex; justify-content: end;"> ${Number(
32
- number,
33
- )} </span>`
34
- : '';
35
- };
36
- const imageFormatter = (image: Image): string =>
37
- `<img style="${
38
- image.style || 'width: 35px; height: 35px; margin-right: 8px;'
39
- }" src="${image.src || '/assets/no-picture.svg'}"/>`;
40
- const badgeFormatter = (badge: Badge): string =>
41
- `<div class="mc-badge mc-badge--${badge.theme || 'info'}">${
42
- badge.content
43
- }</div>`;
44
- const linkFormatter = (link: Link): string =>
45
- `<a class="mc-link" href=${link.href} >${link.text}</a>`;
46
-
47
- const fileFormatter = (file: FileFormat, id: string): string =>
48
- `<div class="mc-tooltip mc-tooltip--top">
49
- <span id="tooltipTop" class="mc-tooltip__content" role="tooltip">
50
- ${file.documentNameTooltip}
51
- </span>
52
- <span class="mc-link" id=cell-file-${id} style="${file.style}"> ${file.documentName}</span>
53
- </div>`;
54
- const linkWithoutRedirectFormatter = (link: Link, id: string): string =>
55
- `<a class="mc-link" id=cell-link-${id} href=${link.href} onclick="return false;">${link.text}</a>`;
56
- const progressBarFormatter = (progressBar: ProgressBar): string => {
57
- if (progressBar.labelOnLeft) {
58
- return `<div style="float: left;"><span>${progressBar.value}%</span></div>
59
- <div style="margin-top: 0.4em;margin-left: 2.7em;"><m-progressbar value=${progressBar.value} size='m'></m-progressbar></div>`;
60
- }
61
- return `<m-progressbar value=${progressBar.value} displaypercentage=${progressBar.displaypercentage} size='${progressBar.size}'></m-progressbar>`;
62
- };
63
- const progressBarFormatterBranded = (progressBar: ProgressBar): string => {
64
- if (progressBar.labelOnLeft) {
65
- return `<div style="float: left;"><span>${progressBar.value}%</span></div>
66
- <div style="margin-top: 0.4em;margin-left: 2.7em;"><m-progressbar value=${progressBar.value} size='m' branded=${progressBar.branded}></m-progressbar></div>`;
67
- }
68
- return `<m-progressbar value=${progressBar.value} displaypercentage=${progressBar.displaypercentage} size='${progressBar.size}' branded=${progressBar.branded}></m-progressbar>`;
69
- };
70
- const buttonFormatterBranded = (button: Button, id: string): string => {
71
- let buttonText = `<m-button
72
- id=cell-button-${id}
73
- label="${button.label}"
74
- theme=${button.theme}
75
- iconname=${button.iconname}
76
- iconmode=${button.iconmode}
77
- size=${button.size} `;
78
- if (button.bordered) {
79
- buttonText += `bordered=${button.bordered} `;
80
- }
81
- if (button.disabled) {
82
- buttonText += `disabled=${button.disabled}`;
83
- }
84
- buttonText += `></m-button>`;
85
- return buttonText;
86
- };
87
-
88
- const inputFormatter = (input: InputText, id: string): string => {
89
- const myInput = document.createElement('m-textinput');
90
- myInput.setAttribute('id', `cell-input-${id}`);
91
- myInput.setAttribute('size', 's');
92
- myInput.setAttribute('placeholder', `${input.placeholder}`);
93
- myInput.setAttribute('type', input.type ? `${input.type}` : 'text');
94
- myInput.setAttribute('value', input.value ? `${input.value}` : '');
95
- if (input.min) {
96
- myInput.setAttribute('min', `${input.min}`);
97
- }
98
- if (input.max) {
99
- myInput.setAttribute('max', `${input.max}`);
100
- }
101
- if (input.rightalign) {
102
- myInput.setAttribute('rightalign', `${input.rightalign}`);
103
- }
104
- if (input.isvalid) {
105
- myInput.setAttribute('isvalid', `${input.isvalid}`);
106
- }
107
- if (input.isinvalid) {
108
- myInput.setAttribute('isinvalid', `${input.isinvalid}`);
109
- }
110
- if (input.disabled) {
111
- myInput.setAttribute('disabled', `${input.disabled}`);
112
- }
113
- return myInput.outerHTML;
114
- };
115
-
116
- const getFormattedCell = (
117
- headerFormat: string,
118
- cellValue: CellValue,
119
- id: string,
120
- ): string => {
121
- switch (headerFormat) {
122
- case 'Text':
123
- return cellValue as string;
124
- case 'CustomText':
125
- return customTextFormatter(cellValue as CustomText);
126
- case 'Number':
127
- return customNumberFormatter(cellValue as Number);
128
- case 'Image':
129
- return imageFormatter(cellValue as Image);
130
- case 'Badge':
131
- return badgeFormatter(cellValue as Badge);
132
- case 'Link':
133
- return linkFormatter(cellValue as Link);
134
- case 'FileFormat':
135
- return fileFormatter(cellValue as FileFormat, id);
136
- case 'LinkWithoutRedirect':
137
- return linkWithoutRedirectFormatter(cellValue as Link, id);
138
- case 'ProgressBar':
139
- if ((cellValue as ProgressBar).branded === true) {
140
- return progressBarFormatterBranded(cellValue as ProgressBar);
141
- }
142
- return progressBarFormatter(cellValue as ProgressBar);
143
- case 'Button':
144
- return buttonFormatterBranded(cellValue as Button, id);
145
- case 'InputText':
146
- return inputFormatter(cellValue as InputText, id);
147
- default:
148
- return cellValue as string;
149
- }
150
- };
151
- export const getCellContent = (
152
- headData: HeadData,
153
- bodyData: BodyData,
154
- ): string => {
155
- const cellValue = bodyData?.cells[headData.id];
156
-
157
- return cellValue || Number(cellValue) === 0
158
- ? getFormattedCell(headData.cellsFormat, cellValue, bodyData.id)
159
- : '';
160
- };
161
-
162
- export const getDataAttribute = (
163
- attributeSuffix: string | undefined,
164
- value: string,
165
- ): { [key: string]: string } => {
166
- const key = `data-${attributeSuffix ? attributeSuffix : ''}`;
167
- return attributeSuffix
168
- ? {
169
- [key]: value,
170
- }
171
- : {};
172
- };
173
- export const areAllItemsSelected = (items: BodyData[]): boolean => {
174
- const selectedItems = items
175
- .filter((item) => !item.disableSelection)
176
- .filter((item) => item.selected === true);
177
- return (
178
- selectedItems.length ===
179
- items.filter((item) => !item.disableSelection).length &&
180
- items.filter((item) => !item.disableSelection).length > 0
181
- );
182
- };
183
- export const checkSubRow = (items: BodyData[]): boolean => {
184
- let result = false;
185
- items.forEach((item) => {
186
- if ('subRow' in item) {
187
- result = true;
188
- }
189
- });
190
- return result;
191
- };
192
-
193
- export const getSortDirection = (
194
- initialSortDirection: SortDirection,
195
- ): SortDirection => {
196
- let sortDirection: SortDirection;
197
- switch (initialSortDirection) {
198
- case 'na':
199
- sortDirection = 'desc';
200
- break;
201
- case 'desc':
202
- default:
203
- sortDirection = 'asc';
204
- break;
205
- case 'asc':
206
- sortDirection = 'na';
207
- break;
208
- }
209
- return sortDirection;
210
- };
211
-
212
- export const onePageSort = (
213
- items: BodyData[],
214
- columnId: string,
215
- cellsFormat: CellsFormat,
216
- sortDirection: SortDirection,
217
- ): BodyData[] => {
218
- let compareFunction;
219
-
220
- switch (cellsFormat) {
221
- default:
222
- case 'Text' || 'Number':
223
- if (sortDirection === 'asc') {
224
- compareFunction = (a: BodyData, b: BodyData) =>
225
- a.cells[columnId] > b.cells[columnId] ? 1 : -1;
226
- } else if (sortDirection === 'desc') {
227
- compareFunction = (a: BodyData, b: BodyData) =>
228
- a.cells[columnId] > b.cells[columnId] ? -1 : 1;
229
- }
230
- break;
231
- case 'Badge':
232
- if (sortDirection === 'asc') {
233
- compareFunction = (a: BodyData, b: BodyData) =>
234
- ((a.cells[columnId] as Badge)?.content || '0') >
235
- ((b.cells[columnId] as Badge)?.content || '0')
236
- ? 1
237
- : -1;
238
- } else if (sortDirection === 'desc') {
239
- compareFunction = (a: BodyData, b: BodyData) =>
240
- ((a.cells[columnId] as Badge)?.content || '0') >
241
- ((b.cells[columnId] as Badge)?.content || '0')
242
- ? -1
243
- : 1;
244
- }
245
- break;
246
- case 'Link':
247
- if (sortDirection === 'asc') {
248
- compareFunction = (a: BodyData, b: BodyData) =>
249
- ((a.cells[columnId] as Link)?.text || '0') >
250
- ((b.cells[columnId] as Link)?.text || '0')
251
- ? 1
252
- : -1;
253
- } else if (sortDirection === 'desc') {
254
- compareFunction = (a: BodyData, b: BodyData) =>
255
- ((a.cells[columnId] as Link)?.text || '0') >
256
- ((b.cells[columnId] as Link)?.text || '0')
257
- ? -1
258
- : 1;
259
- }
260
- break;
261
- case 'CustomText':
262
- if (sortDirection === 'asc') {
263
- compareFunction = (a: BodyData, b: BodyData) =>
264
- ((a.cells[columnId] as CustomText)[0].text || '0') >
265
- ((b.cells[columnId] as CustomText)[0].text || '0')
266
- ? 1
267
- : -1;
268
- } else if (sortDirection === 'desc') {
269
- compareFunction = (a: BodyData, b: BodyData) =>
270
- ((a.cells[columnId] as CustomText)[0].text || '0') >
271
- ((b.cells[columnId] as CustomText)[0].text || '0')
272
- ? -1
273
- : 1;
274
- }
275
- break;
276
- }
277
- const sortedItems = items.sort(compareFunction);
278
- return sortedItems;
279
- };
280
-
281
- export const getPageSelectOptionsArray = (
282
- totalPages: number,
283
- currentPage: number,
284
- showAllPages: boolean,
285
- ): number[] => {
286
- if (totalPages <= 10 || showAllPages) {
287
- return Array.from({ length: totalPages }, (_, i) => i + 1);
288
- } else {
289
- const pagesArray = [1, 2, 3];
290
- if (!pagesArray.includes(currentPage - 1) && currentPage - 1 != 0) {
291
- pagesArray.push(currentPage - 1);
292
- }
293
- if (!pagesArray.includes(currentPage)) {
294
- pagesArray.push(currentPage);
295
- }
296
- if (!pagesArray.includes(currentPage + 1) && currentPage != totalPages) {
297
- pagesArray.push(currentPage + 1);
298
- }
299
- pagesArray.push(totalPages - 2, totalPages - 1, totalPages);
300
- const optionsArray = [...new Set(pagesArray)];
301
- optionsArray.sort((a: number, b: number): number => a - b);
302
- return optionsArray;
303
- }
304
- };
305
-
306
- export const handleCountItemSelection = (
307
- item: BodyData,
308
- selectionParams: SelectionParams | undefined,
309
- showSelectionCount: boolean,
310
- ): SelectionParams | undefined => {
311
- if (showSelectionCount && selectionParams != null) {
312
- if (selectionParams.allSelected) {
313
- if (!item.selected) {
314
- selectionParams.excludedIdsFromSelection = [
315
- ...selectionParams.excludedIdsFromSelection.filter(
316
- (itemDeselected) => {
317
- return itemDeselected !== item.id;
318
- },
319
- ),
320
- ];
321
- } else {
322
- selectionParams.excludedIdsFromSelection = [
323
- ...selectionParams.excludedIdsFromSelection,
324
- item.id,
325
- ];
326
- if (
327
- selectionParams.excludedIdsFromSelection.length ===
328
- selectionParams.totalItems
329
- ) {
330
- selectionParams.excludedIdsFromSelection = [];
331
- selectionParams.allSelected = false;
332
- }
333
- }
334
- } else {
335
- if (!item.selected) {
336
- selectionParams.idsSelected = [...selectionParams.idsSelected, item.id];
337
- if (selectionParams.idsSelected.length === selectionParams.totalItems) {
338
- selectionParams.idsSelected = [];
339
- selectionParams.allSelected = true;
340
- }
341
- } else {
342
- selectionParams.idsSelected = [
343
- ...selectionParams.idsSelected.filter((idSelected) => {
344
- return idSelected !== item.id;
345
- }),
346
- ];
347
- }
348
- }
349
- }
350
- return selectionParams;
351
- };
352
-
353
- export const handleCountAllSelection = (
354
- items: BodyData[],
355
- selectionParams: SelectionParams | undefined,
356
- showSelectionCount: boolean,
357
- indeterminate: boolean,
358
- allItems: boolean,
359
- ): SelectionParams | undefined => {
360
- if (showSelectionCount && selectionParams != undefined) {
361
- if (selectionParams?.allSelected) {
362
- if (indeterminate) {
363
- items
364
- .filter((item) => !item.disableSelection)
365
- .filter(
366
- (item) => !(selectionParams?.idsSelected || []).includes(item.id),
367
- )
368
- .forEach((item) => {
369
- if (selectionParams != undefined) {
370
- selectionParams.idsSelected = [
371
- ...selectionParams.idsSelected,
372
- item.id,
373
- ];
374
- }
375
- });
376
- items
377
- .filter((item) => !item.disableSelection)
378
- .forEach((item) => {
379
- if (selectionParams != undefined) {
380
- const index = selectionParams.excludedIdsFromSelection.indexOf(
381
- item.id,
382
- 0,
383
- );
384
- if (index > -1) {
385
- selectionParams.excludedIdsFromSelection.splice(index, 1);
386
- selectionParams.excludedIdsFromSelection = [
387
- ...selectionParams.excludedIdsFromSelection,
388
- ];
389
- }
390
- }
391
- });
392
- if (selectionParams.idsSelected.length === selectionParams.totalItems) {
393
- selectionParams.allSelected = true;
394
- selectionParams.idsSelected = [];
395
- }
396
- } else {
397
- selectionParams.excludedIdsFromSelection = [
398
- ...selectionParams.excludedIdsFromSelection,
399
- ...items
400
- .filter((item) => !item.disableSelection)
401
- .map((item) => item.id),
402
- ];
403
- if (
404
- selectionParams.excludedIdsFromSelection.length ===
405
- selectionParams.totalItems
406
- ) {
407
- selectionParams.allSelected = false;
408
- selectionParams.idsSelected = [];
409
- selectionParams.excludedIdsFromSelection = [];
410
- }
411
- }
412
- } else {
413
- if (allItems) {
414
- items
415
- .filter((item) => !item.disableSelection)
416
- .filter(
417
- (item) => !(selectionParams?.idsSelected || []).includes(item.id),
418
- )
419
- .forEach((item) => {
420
- if (selectionParams != undefined) {
421
- selectionParams.idsSelected = [
422
- ...selectionParams.idsSelected,
423
- item.id,
424
- ];
425
- }
426
- });
427
- if (selectionParams.idsSelected.length === selectionParams.totalItems) {
428
- selectionParams.allSelected = true;
429
- selectionParams.idsSelected = [];
430
- }
431
- } else {
432
- items
433
- .filter((item) => !item.disableSelection)
434
- .forEach((item) => {
435
- if (selectionParams != undefined) {
436
- selectionParams.idsSelected = [
437
- ...selectionParams.idsSelected.filter((idSelected) => {
438
- return idSelected !== item.id;
439
- }),
440
- ];
441
- }
442
- });
443
- }
444
- }
445
- }
446
- return selectionParams;
447
- };
448
-
449
- export const clearSelection = (
450
- selectionParams: SelectionParams | undefined,
451
- ): SelectionParams | undefined => {
452
- if (selectionParams != undefined) {
453
- selectionParams.excludedIdsFromSelection = [];
454
- selectionParams.idsSelected = [];
455
- selectionParams.allSelected = false;
456
- }
457
- return selectionParams;
458
- };
459
-
460
- export const selectAll = (
461
- selectionParams: SelectionParams | undefined,
462
- ): SelectionParams | undefined => {
463
- if (selectionParams != undefined) {
464
- selectionParams.excludedIdsFromSelection = [];
465
- selectionParams.idsSelected = [];
466
- selectionParams.allSelected = true;
467
- }
468
- return selectionParams;
469
- };
470
-
471
- export const isHeaderSelectCheckboxIndeterminate = (
472
- items: BodyData[],
473
- selectionParams: SelectionParams | undefined,
474
- indeterminate: boolean,
475
- ): boolean => {
476
- if (selectionParams != undefined && indeterminate != undefined) {
477
- if (
478
- (!selectionParams.allSelected &&
479
- items
480
- .filter((item) => !item.disableSelection)
481
- .map((item) => {
482
- return item.id;
483
- })
484
- .every((item) =>
485
- (selectionParams?.idsSelected || []).includes(item),
486
- )) ||
487
- (!selectionParams.allSelected &&
488
- selectionParams.idsSelected.length === 0) ||
489
- (selectionParams.allSelected &&
490
- !items
491
- .map((item) => item.id)
492
- .some((id) =>
493
- (selectionParams?.excludedIdsFromSelection || []).includes(id),
494
- )) ||
495
- (selectionParams.allSelected &&
496
- selectionParams.excludedIdsFromSelection.length === 0)
497
- ) {
498
- return false;
499
- }
500
- return true;
501
- }
502
- return false;
503
- };
504
-
505
- export enum keyboardsKeys {
506
- ENTER = 'Enter',
507
- }
@@ -1,2 +0,0 @@
1
- const t=new RegExp("^[^!]+(?:!(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$");function e(e,o=[]){let s;const c=[];function r(t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e.call(this,t)))}return e.$on=(t,n)=>{const r=t;let i=()=>{};for(const t of o){if("string"==typeof t&&t===r){const t=e.$$.callbacks[r]||(e.$$.callbacks[r]=[]);return t.push(n),()=>{const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}if("object"==typeof t&&t.name===r){const e=n;n=(...n)=>{"object"==typeof t&&t.shouldExclude()||e(...n)}}}return s?i=s(r,n):c.push([r,n]),()=>{i()}},e=>{const o=[],i={};s=(s,c)=>{let a=s,l=c,p=!1;if(a.match(t)){const t=a.split("!");a=t[0];const e=t.slice(1).reduce(((t,e)=>(t[e]=!0,t)),{});e.passive&&(p=p||{},p.passive=!0),e.nonpassive&&(p=p||{},p.passive=!1),e.capture&&(p=p||{},p.capture=!0),e.once&&(p=p||{},p.once=!0),e.preventDefault&&(u=l,l=function(t){return t.preventDefault(),u.call(this,t)}),e.stopPropagation&&(l=function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}(l))}var u;const f=n(e,a,l,p),v=()=>{f();const t=o.indexOf(v);t>-1&&o.splice(t,1)};return o.push(v),a in i||(i[a]=n(e,a,r)),v};for(let t=0;t<c.length;t++)s(c[t][0],c[t][1]);return{destroy:()=>{for(let t=0;t<o.length;t++)o[t]();for(const t of Object.entries(i))t[1]()}}}}function n(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}export{e as createEventForwarder};
2
- //# sourceMappingURL=EventForward.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventForward.js","sources":["../../src/utilities/EventForward.ts"],"sourcesContent":[null],"names":["modifierRegex","RegExp","createEventForwarder","component","except","$on","events","bubble","e","callbacks","$$","type","slice","forEach","fn","call","this","fullEventType","callback","eventType","destructor","exception","push","index","indexOf","splice","oldCallback","props","node","destructors","forwardDestructors","handler","options","match","parts","split","eventOptions","reduce","obj","mod","passive","nonpassive","capture","once","preventDefault","event","stopPropagation","stop_propagation","off","listen","idx","i","length","destroy","entry","Object","entries","addEventListener","removeEventListener"],"mappings":"AAYA,MACMA,EAAgB,IAAIC,OACxB,iGAIcC,EACdC,EACAC,EAA6B,IAG7B,IAAIC,EAEJ,MAAMC,EAA2C,GAyCjD,SAASC,EAAOC,GAEd,MAAMC,EAAYN,EAAUO,GAAGD,UAAUD,EAAEG,MACvCF,GAEFA,EAAUG,QAAQC,SAASC,GAAOA,EAAGC,KAAKC,KAAMR,IAEnD,CAED,OA/CAL,EAAUE,IAAM,CAACY,EAAuBC,KACtC,MAAMC,EAAYF,EAClB,IAAIG,EAAa,OACjB,IAAK,MAAMC,KAAajB,EAAQ,CAC9B,GAAyB,iBAAdiB,GAA0BA,IAAcF,EAAW,CAE5D,MAAMV,EACJN,EAAUO,GAAGD,UAAUU,KACtBhB,EAAUO,GAAGD,UAAUU,GAAa,IAEvC,OADAV,EAAUa,KAAKJ,GACR,KACL,MAAMK,EAAQd,EAAUe,QAAQN,IACjB,IAAXK,GAAcd,EAAUgB,OAAOF,EAAO,EAAE,CAE/C,CACD,GAAyB,iBAAdF,GAA0BA,EAAgB,OAAMF,EAAW,CACpE,MAAMO,EAAcR,EACpBA,EAAW,IAAIS,KAEY,iBAAdN,GAA0BA,EAAyB,iBAE5DK,KAAeC,EAChB,CAEJ,CACF,CAQD,OAPItB,EAEFe,EAAaf,EAAIc,EAAWD,GAG5BZ,EAAOgB,KAAK,CAACH,EAAWD,IAEnB,KACLE,GAAY,CACb,EAYKQ,IACN,MAAMC,EAA8B,GAC9BC,EAAkD,CAAA,EAIxDzB,EAAM,CAACY,EAAeC,KACpB,IAAIC,EAAYF,EACZc,EAAUb,EAEVc,GAA6C,EAEjD,GADsBb,EAAUc,MAAMjC,GACnB,CASjB,MAAMkC,EAAQf,EAAUgB,MApFP,KAqFjBhB,EAAYe,EAAM,GAClB,MAAME,EAOFF,EAAMtB,MAAM,GAAGyB,QACjB,CAACC,EAAKC,KACJD,EAAIC,IAAO,EACJD,IAET,CAA8B,GAE5BF,EAAaI,UACfR,EAAUA,GAAY,GACtBA,EAAQQ,SAAU,GAEhBJ,EAAaK,aACfT,EAAUA,GAAY,GACtBA,EAAQQ,SAAU,GAEhBJ,EAAaM,UACfV,EAAUA,GAAY,GACtBA,EAAQU,SAAU,GAEhBN,EAAaO,OACfX,EAAUA,GAAY,GACtBA,EAAQW,MAAO,GAEbP,EAAaQ,iBA4DoB9B,EA3DTiB,EAA1BA,EA4DD,SAAUc,GAGf,OAFAA,EAAMD,iBAEC9B,EAAGC,KAAKC,KAAM6B,EACvB,GA9DUT,EAAaU,kBACff,EAgEV,SAA8CjB,GAC5C,OAAO,SAAU+B,GAGf,OAFAA,EAAMC,kBAEChC,EAAGC,KAAKC,KAAM6B,EACvB,CACF,CAtEoBE,CAAiBhB,GAE9B,CAsDP,IAA6CjB,EAnDvC,MAAMkC,EAAMC,EAAOrB,EAAMT,EAAWY,EAASC,GACvCZ,EAAa,KACjB4B,IACA,MAAME,EAAMrB,EAAYL,QAAQJ,GAC5B8B,GAAO,GACTrB,EAAYJ,OAAOyB,EAAK,EACzB,EAUH,OAPArB,EAAYP,KAAKF,GAGXD,KAAaW,IACjBA,EAAmBX,GAAa8B,EAAOrB,EAAMT,EAAWZ,IAGnDa,CAAU,EAGnB,IAAK,IAAI+B,EAAI,EAAGA,EAAI7C,EAAO8C,OAAQD,IAEjC9C,EAAIC,EAAO6C,GAAG,GAAI7C,EAAO6C,GAAG,IAG9B,MAAO,CACLE,QAAS,KAEP,IAAK,IAAIF,EAAI,EAAGA,EAAItB,EAAYuB,OAAQD,IACtCtB,EAAYsB,KAId,IAAK,MAAMG,KAASC,OAAOC,QAAQ1B,GACjCwB,EAAM,IACP,EAEJ,CAEL,CAGA,SAASL,EACPrB,EACAiB,EACAd,EACAC,GAGA,OADAJ,EAAK6B,iBAAiBZ,EAAOd,EAASC,GAC/B,IAAMJ,EAAK8B,oBAAoBb,EAAOd,EAASC,EACxD"}
@@ -1,9 +0,0 @@
1
- // This file is based on the following documenations:
2
- // => https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/typescript.md#im-using-an-attributeevent-on-a-dom-element-and-it-throws-a-type-error
3
- // => https://github.com/sveltejs/language-tools/issues/431
4
-
5
- declare namespace svelteHTML {
6
- interface HTMLAttributes<T> {
7
- 'on:outclick'?: (event: CustomEvent<any> & { target: EventTarget & T }) => any;
8
- }
9
- }
@@ -1,2 +0,0 @@
1
- export type AccordionSize = 's' | 'm';
2
- //# sourceMappingURL=accordion.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accordion.types.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,CAAC"}
@@ -1,3 +0,0 @@
1
- export interface AutocompleteProps {
2
- }
3
- //# sourceMappingURL=autocomplete.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;CAAG"}
@@ -1,3 +0,0 @@
1
- export type BadgeStyle = 'danger' | 'accent' | 'inverse' | 'standard';
2
- export type BadgeSize = 's' | 'm';
3
- //# sourceMappingURL=badge.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge.types.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AACtE,MAAM,MAAM,SAAS,GAAG,GAAG,GAAG,GAAG,CAAC"}
@@ -1,7 +0,0 @@
1
- export interface BreadcrumbItems {
2
- id: string | undefined;
3
- text: string;
4
- href: string;
5
- isActive: boolean | undefined;
6
- }
7
- //# sourceMappingURL=breadcrumb.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb.types.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/breadcrumb.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B"}
@@ -1,13 +0,0 @@
1
- export type ButtonStyle = 'standard' | 'accent' | 'danger' | 'inverse' | undefined;
2
- export type ButtonSize = 's' | 'm' | 'l';
3
- export type ButtonResponsiveSize = 's@from-m' | 's@from-l' | 's@from-xl' | 's@from-xxl' | 'm@from-m' | 'm@from-l' | 'm@from-xl' | 'm@from-xxl' | 'l@from-m' | 'l@from-l' | 'l@from-xl' | 'l@from-xxl' | undefined;
4
- export type ButtonResponsiveWidth = 'fit@from-m' | 'fit@from-l' | 'fit@from-xl' | 'fit@from-xxl' | 'full' | 'full@from-m' | 'full@from-l' | 'full@from-xl' | 'full@from-xxl' | undefined;
5
- export type ButtonIconMode = 'left' | 'right' | 'only' | undefined;
6
- export type ButtonType = 'button' | 'reset' | 'submit' | null | undefined;
7
- export type LoaderTheme = 'primary' | 'dark' | 'light' | undefined;
8
- export type ButtonLoader = {
9
- enabled: boolean;
10
- position: 'left' | 'right' | undefined;
11
- theme: LoaderTheme;
12
- };
13
- //# sourceMappingURL=button.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AACd,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACzC,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,CAAC;AACd,MAAM,MAAM,qBAAqB,GAC7B,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,cAAc,GACd,MAAM,GACN,aAAa,GACb,aAAa,GACb,cAAc,GACd,eAAe,GACf,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AACnE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC"}
@@ -1,4 +0,0 @@
1
- export type CardTitleTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
2
- export type CardSubtitleTag = 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
3
- export type CardRatio = '1x1' | '4x3' | '16x9';
4
- //# sourceMappingURL=card.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card.types.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACnE,MAAM,MAAM,eAAe,GACvB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,KAAK,GACL,MAAM,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC"}
@@ -1,19 +0,0 @@
1
- export type CarouselTitleTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
2
- export type CarouselDevice = 's' | 'm' | 'xl';
3
- export type CarouselOptions = {
4
- s: ItemOptions;
5
- m: ItemOptions;
6
- xl: ItemOptions;
7
- };
8
- type ItemOptions = {
9
- itemsVisible: number;
10
- hasHalfItemVisible?: boolean;
11
- };
12
- export type CarouselItem = {
13
- id?: string;
14
- title: string;
15
- imgSrc: string;
16
- imgAlt: string;
17
- };
18
- export {};
19
- //# sourceMappingURL=carousel.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"carousel.types.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/carousel.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAE,WAAW,CAAC;IACf,CAAC,EAAE,WAAW,CAAC;IACf,EAAE,EAAE,WAAW,CAAC;CACjB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,26 +0,0 @@
1
- export type BarData = {
2
- group: string;
3
- } & {
4
- [key: string]: {
5
- value: string;
6
- customtooltip: string;
7
- };
8
- };
9
- export type StackedBarData = {
10
- group: string;
11
- } & {
12
- [key: string]: number;
13
- };
14
- export type BarKeyValue = {
15
- key: string;
16
- value: string;
17
- customtooltip: string;
18
- };
19
- export interface BarMargin {
20
- top: number;
21
- right: number;
22
- bottom: number;
23
- left: number;
24
- xAxis: number;
25
- }
26
- //# sourceMappingURL=bar-chart.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bar-chart.types.d.ts","sourceRoot":"","sources":["../../../src/components/chart/bar-chart.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,13 +0,0 @@
1
- import type { PieArcDatum } from 'd3';
2
- export type DonutData = {
3
- name: string;
4
- total: number;
5
- patternId: string;
6
- checked?: boolean;
7
- customTooltip?: string;
8
- };
9
- export type LegendPosition = 'top' | 'right' | 'bottom' | 'left' | undefined;
10
- export interface ChartContext extends Element {
11
- _current: PieArcDatum<DonutData>;
12
- }
13
- //# sourceMappingURL=donut.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"donut.types.d.ts","sourceRoot":"","sources":["../../../src/components/chart/donut.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAEtC,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7E,MAAM,WAAW,YAAa,SAAQ,OAAO;IAC3C,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC"}