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

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-C2cU7aS9.js +2 -0
  3. package/public/attributes-C2cU7aS9.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 +64 -47
  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 +27 -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 +23 -23
  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 +20 -12
  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 +9 -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 +39 -25
  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 -38
  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-C0xaDU2s.js +2 -0
  63. package/public/custom-element-C0xaDU2s.js.map +1 -0
  64. package/public/each-6TetsjSv.js +2 -0
  65. package/public/each-6TetsjSv.js.map +1 -0
  66. package/public/html-h1-V2s6a.js +2 -0
  67. package/public/html-h1-V2s6a.js.map +1 -0
  68. package/public/if-B_xe8pYW.js +2 -0
  69. package/public/if-B_xe8pYW.js.map +1 -0
  70. package/public/input-B-lhkJUW.js +2 -0
  71. package/public/input-B-lhkJUW.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-DQF0Tqfq.js +2 -0
  75. package/public/slot-DQF0Tqfq.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/web-components",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "description": "Web component Mozaic DS implementation",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -14,7 +14,10 @@
14
14
  "files": [
15
15
  "public"
16
16
  ],
17
+ "type": "module",
17
18
  "scripts": {
19
+ "dev": "vite",
20
+ "preview": "vite preview",
18
21
  "clean": "rm -rf public/",
19
22
  "start": "npm-run-all --parallel build:watch storybook",
20
23
  "build": "rollup -c",
@@ -35,7 +38,7 @@
35
38
  "package": "svelte-kit package",
36
39
  "release": "release-it",
37
40
  "release:beta": "release-it --preRelease=beta",
38
- "release:alpha": "release-it premajor --preReleaseId=alpha --npm.tag=alpha --github.preRelease",
41
+ "release:alpha": "release-it --preReleaseId=alpha --npm.tag=alpha --github.preRelease",
39
42
  "prepublishOnly": "npm run build:lib",
40
43
  "npm:publish": "npm publish --access public",
41
44
  "npm:publishBeta": "npm publish --tag beta --access public",
@@ -60,28 +63,27 @@
60
63
  "@commitlint/config-conventional": "^12.1.4",
61
64
  "@geometricpanda/storybook-addon-badges": "^2.0.5",
62
65
  "@release-it/conventional-changelog": "^8.0.1",
63
- "@rollup/plugin-commonjs": "^26.0.1",
66
+ "@rollup/plugin-commonjs": "^28.0.2",
64
67
  "@rollup/plugin-json": "^6.1.0",
65
68
  "@rollup/plugin-node-resolve": "^15.2.3",
66
69
  "@rollup/plugin-typescript": "^11.1.6",
67
- "@storybook/addon-a11y": "^8.3.5",
68
- "@storybook/addon-actions": "^8.3.5",
69
- "@storybook/addon-docs": "^8.3.5",
70
- "@storybook/addon-essentials": "^8.3.5",
71
- "@storybook/addon-interactions": "^8.3.5",
72
- "@storybook/addon-links": "^8.3.5",
73
- "@storybook/addon-mdx-gfm": "^8.3.5",
70
+ "@storybook/addon-a11y": "^8.4.2",
71
+ "@storybook/addon-actions": "^8.4.2",
72
+ "@storybook/addon-docs": "^8.4.2",
73
+ "@storybook/addon-essentials": "^8.4.2",
74
+ "@storybook/addon-interactions": "^8.4.2",
75
+ "@storybook/addon-links": "^8.4.2",
76
+ "@storybook/addon-mdx-gfm": "^8.4.2",
74
77
  "@storybook/addon-themes": "8.3.4",
75
- "@storybook/addon-viewport": "^8.3.5",
78
+ "@storybook/addon-viewport": "^8.4.2",
76
79
  "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
77
- "@storybook/cli": "^8.3.5",
78
- "@storybook/html": "^8.3.5",
79
- "@storybook/html-webpack5": "^8.3.5",
80
- "@storybook/test": "^8.3.5",
81
- "@storybook/theming": "^8.3.5",
82
- "@sveltejs/vite-plugin-svelte": "^3.0.0",
80
+ "@storybook/cli": "^8.4.2",
81
+ "@storybook/html": "^8.4.2",
82
+ "@storybook/html-webpack5": "^8.4.2",
83
+ "@storybook/test": "^8.4.2",
84
+ "@storybook/theming": "^8.4.2",
85
+ "@sveltejs/vite-plugin-svelte": "^4.0.4",
83
86
  "@tsconfig/svelte": "^5.0.4",
84
- "@types/d3": "^7.4.3",
85
87
  "@typescript-eslint/eslint-plugin": "^7.18.0",
86
88
  "@typescript-eslint/parser": "^7.18.0",
87
89
  "@whitespace/storybook-addon-html": "^6.1.1",
@@ -89,10 +91,9 @@
89
91
  "babel-loader": "^8.3.0",
90
92
  "chromatic": "^6.3.3",
91
93
  "css-loader": "^5.2.7",
92
- "d3": "^7.9.0",
93
94
  "eslint": "^8.57.0",
94
95
  "eslint-plugin-storybook": "^0.9.0",
95
- "eslint-plugin-svelte": "^2.37.0",
96
+ "eslint-plugin-svelte": "^2.45.1",
96
97
  "husky": "^6.0.0",
97
98
  "lint-staged": "^11.2.6",
98
99
  "mdx-mermaid": "^1.3.2",
@@ -105,26 +106,24 @@
105
106
  "prettier-eslint-cli": "^8.0.1",
106
107
  "prettier-plugin-svelte": "^3.2.7",
107
108
  "release-it": "^17.1.1",
108
- "rollup": "^2.79.1",
109
+ "rollup": "^4.34.9",
109
110
  "rollup-plugin-copy": "^3.5.0",
110
- "rollup-plugin-copy-assets": "^2.0.3",
111
- "rollup-plugin-css-only": "^3.1.0",
112
- "rollup-plugin-livereload": "^2.0.5",
113
- "rollup-plugin-multi-input": "^1.4.1",
114
- "rollup-plugin-svelte": "^7.2.0",
115
- "rollup-plugin-terser": "^7.0.2",
116
- "sass": "^1.74.1",
117
- "sass-loader": "^10.5.2",
118
- "storybook": "^8.3.5",
119
- "style-loader": "^2.0.0",
120
- "svelte": "^4.0.0",
121
- "svelte-check": "^4.0.0",
122
- "svelte-kit": "^1.2.0",
111
+ "rollup-plugin-multi-input": "^1.5.0",
112
+ "rollup-plugin-svelte": "^7.2.2",
113
+ "@rollup/plugin-terser": "^0.4.4",
114
+ "sass": "^1.85.1",
115
+ "sass-loader": "^16.0.5",
116
+ "storybook": "^8.4.2",
117
+ "style-loader": "4.0.0",
118
+ "svelte": "^5.0.0",
119
+ "svelte-check": "^4.1.4",
120
+ "@sveltejs/kit": "^2.17.3",
123
121
  "svelte-loader": "^3.2.3",
124
122
  "svelte-preprocess": "^6.0.2",
125
123
  "ts-dedent": "^2.2.0",
126
124
  "tsconfig-paths-webpack-plugin": "^4.1.0",
127
- "typescript": "5.4.5"
125
+ "typescript": "^5.5.0",
126
+ "vite": "^5.4.14"
128
127
  },
129
128
  "lint-staged": {
130
129
  "src/**/*.{js,ts,svelte}": [
@@ -0,0 +1,2 @@
1
+ import{e,s as t,aC as a,aD as l,O as s,aE as n,aF as r,aG as u,aH as i,aI as c,aJ as o,x as f,aK as v,aL as d,as as _,D as h,aM as m}from"./custom-element-C0xaDU2s.js";const b=Symbol("class");function p(e){if(f){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var a=e.value;A(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var l=e.checked;A(e,"checked",null),e.checked=l}}};e.__on_r=a,v(a),d()}}function y(e,t){var a=e.__attributes??={};a.checked!==(a.checked=t??void 0)&&(e.checked=t)}function k(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function A(e,t,a,l){var s=e.__attributes??={};f&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)?function(e,t,a){if(!h)return;if("srcset"===t&&function(e,t){var a=N(e.srcset),l=N(t);return l.length===a.length&&l.every((([e,t],l)=>t===a[l][1]&&(I(a[l][0],e)||I(e,a[l][0]))))}(e,a))return;if(I(e.getAttribute(t)??"",a))return;m(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(a))}(e,t,a??""):s[t]!==(s[t]=a)&&("style"===t&&"__styles"in e&&(e.__styles={}),"loading"===t&&(e[i]=a),null==a?e.removeAttribute(t):"string"!=typeof a&&w(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function g(u,i,o,v,d=!1,h=!1,m=!1){let p=f&&h;p&&_(!1);var y=i||{},g="OPTION"===u.tagName;for(var L in i)L in o||(o[L]=null);o.class?o.class=e(o.class):o.class=null;var I=w(u),N=u.__attributes??={};for(const C in o){let H=o[C];if(g&&"value"===C&&null==H)u.value=u.__value="",y[C]=H;else if("class"!==C){var $=y[C];if(H!==$){y[C]=H;var M=C[0]+C[1];if("$$"!==M){if("on"===M){const E={},O="$$"+C;let V=C.slice(2);var R=c(V);if(a(V)&&(V=V.slice(0,-7),E.capture=!0),!R&&$){if(null!=H)continue;u.removeEventListener(V,y[O],E),y[O]=null}if(null!=H)if(R)u[`__${V}`]=H,s([V]);else{function B(e){y[C].call(this,e)}y[O]=l(V,u,B,E)}else R&&(u[`__${V}`]=void 0)}else if("style"===C&&null!=H)u.style.cssText=H+"";else if("autofocus"===C)n(u,Boolean(H));else if(h||"__value"!==C&&("value"!==C||null==H))if("selected"===C&&g)k(u,H);else{var T=C;d||(T=r(T));var U="defaultValue"===T||"defaultChecked"===T;if(null!=H||h||U)U||I.includes(T)&&(h||"string"!=typeof H)?u[T]=H:"function"!=typeof H&&A(u,T,H);else if(N[C]=null,"value"===T||"checked"===T){let D=u;const K=void 0===i;if("value"===T){let S=D.defaultValue;D.removeAttribute(T),D.defaultValue=S,D.value=D.__value=K?S:null}else{let j=D.defaultChecked;D.removeAttribute(T),D.defaultChecked=j,D.checked=!!K&&j}}else u.removeAttribute(C)}else u.value=u.__value=H;"style"===C&&"__styles"in u&&(u.__styles={})}}}else{var x="http://www.w3.org/1999/xhtml"===u.namespaceURI;t(u,x,H,v,i?.[b],o[b]),y[C]=H,y[b]=o[b]}}return p&&_(!0),y}var L=new Map;function w(e){var t,a=L.get(e.nodeName);if(a)return a;L.set(e.nodeName,a=[]);for(var l=e,s=Element.prototype;s!==l;){for(var n in t=o(l))t[n].set&&a.push(n);l=u(l)}return a}function I(e,t){return e===t||new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function N(e){return e.split(",").map((e=>e.trim().split(" ").filter(Boolean)))}export{y as a,g as b,p as r,A as s};
2
+ //# sourceMappingURL=attributes-C2cU7aS9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes-C2cU7aS9.js","sources":["../node_modules/svelte/src/internal/client/dom/elements/attributes.js"],"sourcesContent":["import { DEV } from 'esm-env';\nimport { hydrating, set_hydrating } from '../hydration.js';\nimport { get_descriptors, get_prototype_of } from '../../../shared/utils.js';\nimport { create_event, delegate } from './events.js';\nimport { add_form_reset_listener, autofocus } from './misc.js';\nimport * as w from '../../warnings.js';\nimport { LOADING_ATTR_SYMBOL } from '../../constants.js';\nimport { queue_idle_task } from '../task.js';\nimport { is_capture_event, is_delegated, normalize_attribute } from '../../../../utils.js';\nimport {\n\tactive_effect,\n\tactive_reaction,\n\tset_active_effect,\n\tset_active_reaction\n} from '../../runtime.js';\nimport { clsx } from '../../../shared/attributes.js';\nimport { set_class } from './class.js';\n\nexport const CLASS = Symbol('class');\nexport const STYLE = Symbol('style');\n\n/**\n * The value/checked attribute in the template actually corresponds to the defaultValue property, so we need\n * to remove it upon hydration to avoid a bug when someone resets the form value.\n * @param {HTMLInputElement} input\n * @returns {void}\n */\nexport function remove_input_defaults(input) {\n\tif (!hydrating) return;\n\n\tvar already_removed = false;\n\n\t// We try and remove the default attributes later, rather than sync during hydration.\n\t// Doing it sync during hydration has a negative impact on performance, but deferring the\n\t// work in an idle task alleviates this greatly. If a form reset event comes in before\n\t// the idle callback, then we ensure the input defaults are cleared just before.\n\tvar remove_defaults = () => {\n\t\tif (already_removed) return;\n\t\talready_removed = true;\n\n\t\t// Remove the attributes but preserve the values\n\t\tif (input.hasAttribute('value')) {\n\t\t\tvar value = input.value;\n\t\t\tset_attribute(input, 'value', null);\n\t\t\tinput.value = value;\n\t\t}\n\n\t\tif (input.hasAttribute('checked')) {\n\t\t\tvar checked = input.checked;\n\t\t\tset_attribute(input, 'checked', null);\n\t\t\tinput.checked = checked;\n\t\t}\n\t};\n\n\t// @ts-expect-error\n\tinput.__on_r = remove_defaults;\n\tqueue_idle_task(remove_defaults);\n\tadd_form_reset_listener();\n}\n\n/**\n * @param {Element} element\n * @param {any} value\n */\nexport function set_value(element, value) {\n\t// @ts-expect-error\n\tvar attributes = (element.__attributes ??= {});\n\n\tif (\n\t\tattributes.value ===\n\t\t\t(attributes.value =\n\t\t\t\t// treat null and undefined the same for the initial value\n\t\t\t\tvalue ?? undefined) ||\n\t\t// @ts-expect-error\n\t\t// `progress` elements always need their value set when it's `0`\n\t\t(element.value === value && (value !== 0 || element.nodeName !== 'PROGRESS'))\n\t) {\n\t\treturn;\n\t}\n\n\t// @ts-expect-error\n\telement.value = value ?? '';\n}\n\n/**\n * @param {Element} element\n * @param {boolean} checked\n */\nexport function set_checked(element, checked) {\n\t// @ts-expect-error\n\tvar attributes = (element.__attributes ??= {});\n\n\tif (\n\t\tattributes.checked ===\n\t\t(attributes.checked =\n\t\t\t// treat null and undefined the same for the initial value\n\t\t\tchecked ?? undefined)\n\t) {\n\t\treturn;\n\t}\n\n\t// @ts-expect-error\n\telement.checked = checked;\n}\n\n/**\n * Sets the `selected` attribute on an `option` element.\n * Not set through the property because that doesn't reflect to the DOM,\n * which means it wouldn't be taken into account when a form is reset.\n * @param {HTMLOptionElement} element\n * @param {boolean} selected\n */\nexport function set_selected(element, selected) {\n\tif (selected) {\n\t\t// The selected option could've changed via user selection, and\n\t\t// setting the value without this check would set it back.\n\t\tif (!element.hasAttribute('selected')) {\n\t\t\telement.setAttribute('selected', '');\n\t\t}\n\t} else {\n\t\telement.removeAttribute('selected');\n\t}\n}\n\n/**\n * Applies the default checked property without influencing the current checked property.\n * @param {HTMLInputElement} element\n * @param {boolean} checked\n */\nexport function set_default_checked(element, checked) {\n\tconst existing_value = element.checked;\n\telement.defaultChecked = checked;\n\telement.checked = existing_value;\n}\n\n/**\n * Applies the default value property without influencing the current value property.\n * @param {HTMLInputElement | HTMLTextAreaElement} element\n * @param {string} value\n */\nexport function set_default_value(element, value) {\n\tconst existing_value = element.value;\n\telement.defaultValue = value;\n\telement.value = existing_value;\n}\n\n/**\n * @param {Element} element\n * @param {string} attribute\n * @param {string | null} value\n * @param {boolean} [skip_warning]\n */\nexport function set_attribute(element, attribute, value, skip_warning) {\n\t// @ts-expect-error\n\tvar attributes = (element.__attributes ??= {});\n\n\tif (hydrating) {\n\t\tattributes[attribute] = element.getAttribute(attribute);\n\n\t\tif (\n\t\t\tattribute === 'src' ||\n\t\t\tattribute === 'srcset' ||\n\t\t\t(attribute === 'href' && element.nodeName === 'LINK')\n\t\t) {\n\t\t\tif (!skip_warning) {\n\t\t\t\tcheck_src_in_dev_hydration(element, attribute, value ?? '');\n\t\t\t}\n\n\t\t\t// If we reset these attributes, they would result in another network request, which we want to avoid.\n\t\t\t// We assume they are the same between client and server as checking if they are equal is expensive\n\t\t\t// (we can't just compare the strings as they can be different between client and server but result in the\n\t\t\t// same url, so we would need to create hidden anchor elements to compare them)\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (attributes[attribute] === (attributes[attribute] = value)) return;\n\n\tif (attribute === 'style' && '__styles' in element) {\n\t\t// reset styles to force style: directive to update\n\t\telement.__styles = {};\n\t}\n\n\tif (attribute === 'loading') {\n\t\t// @ts-expect-error\n\t\telement[LOADING_ATTR_SYMBOL] = value;\n\t}\n\n\tif (value == null) {\n\t\telement.removeAttribute(attribute);\n\t} else if (typeof value !== 'string' && get_setters(element).includes(attribute)) {\n\t\t// @ts-ignore\n\t\telement[attribute] = value;\n\t} else {\n\t\telement.setAttribute(attribute, value);\n\t}\n}\n\n/**\n * @param {Element} dom\n * @param {string} attribute\n * @param {string} value\n */\nexport function set_xlink_attribute(dom, attribute, value) {\n\tdom.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\n\n/**\n * @param {HTMLElement} node\n * @param {string} prop\n * @param {any} value\n */\nexport function set_custom_element_data(node, prop, value) {\n\t// We need to ensure that setting custom element props, which can\n\t// invoke lifecycle methods on other custom elements, does not also\n\t// associate those lifecycle methods with the current active reaction\n\t// or effect\n\tvar previous_reaction = active_reaction;\n\tvar previous_effect = active_effect;\n\t// If we're hydrating but the custom element is from Svelte, and it already scaffolded,\n\t// then it might run block logic in hydration mode, which we have to prevent.\n\tlet was_hydrating = hydrating;\n\tif (hydrating) {\n\t\tset_hydrating(false);\n\t}\n\n\tset_active_reaction(null);\n\tset_active_effect(null);\n\ttry {\n\t\tif (\n\t\t\t// Don't compute setters for custom elements while they aren't registered yet,\n\t\t\t// because during their upgrade/instantiation they might add more setters.\n\t\t\t// Instead, fall back to a simple \"an object, then set as property\" heuristic.\n\t\t\tsetters_cache.has(node.nodeName) ||\n\t\t\t// customElements may not be available in browser extension contexts\n\t\t\t!customElements ||\n\t\t\tcustomElements.get(node.tagName.toLowerCase())\n\t\t\t\t? get_setters(node).includes(prop)\n\t\t\t\t: value && typeof value === 'object'\n\t\t) {\n\t\t\t// @ts-expect-error\n\t\t\tnode[prop] = value;\n\t\t} else {\n\t\t\t// We did getters etc checks already, stringify before passing to set_attribute\n\t\t\t// to ensure it doesn't invoke the same logic again, and potentially populating\n\t\t\t// the setters cache too early.\n\t\t\tset_attribute(node, prop, value == null ? value : String(value));\n\t\t}\n\t} finally {\n\t\tset_active_reaction(previous_reaction);\n\t\tset_active_effect(previous_effect);\n\t\tif (was_hydrating) {\n\t\t\tset_hydrating(true);\n\t\t}\n\t}\n}\n\n/**\n * Spreads attributes onto a DOM element, taking into account the currently set attributes\n * @param {Element & ElementCSSInlineStyle} element\n * @param {Record<string | symbol, any> | undefined} prev\n * @param {Record<string | symbol, any>} next New attributes - this function mutates this object\n * @param {string} [css_hash]\n * @param {boolean} [preserve_attribute_case]\n * @param {boolean} [is_custom_element]\n * @param {boolean} [skip_warning]\n * @returns {Record<string, any>}\n */\nexport function set_attributes(\n\telement,\n\tprev,\n\tnext,\n\tcss_hash,\n\tpreserve_attribute_case = false,\n\tis_custom_element = false,\n\tskip_warning = false\n) {\n\t// If we're hydrating but the custom element is from Svelte, and it already scaffolded,\n\t// then it might run block logic in hydration mode, which we have to prevent.\n\tlet is_hydrating_custom_element = hydrating && is_custom_element;\n\tif (is_hydrating_custom_element) {\n\t\tset_hydrating(false);\n\t}\n\n\tvar current = prev || {};\n\tvar is_option_element = element.tagName === 'OPTION';\n\n\tfor (var key in prev) {\n\t\tif (!(key in next)) {\n\t\t\tnext[key] = null;\n\t\t}\n\t}\n\n\tif (next.class) {\n\t\tnext.class = clsx(next.class);\n\t} else if (css_hash || next[CLASS]) {\n\t\tnext.class = null; /* force call to set_class() */\n\t}\n\n\tvar setters = get_setters(element);\n\n\t// @ts-expect-error\n\tvar attributes = /** @type {Record<string, unknown>} **/ (element.__attributes ??= {});\n\n\t// since key is captured we use const\n\tfor (const key in next) {\n\t\t// let instead of var because referenced in a closure\n\t\tlet value = next[key];\n\n\t\t// Up here because we want to do this for the initial value, too, even if it's undefined,\n\t\t// and this wouldn't be reached in case of undefined because of the equality check below\n\t\tif (is_option_element && key === 'value' && value == null) {\n\t\t\t// The <option> element is a special case because removing the value attribute means\n\t\t\t// the value is set to the text content of the option element, and setting the value\n\t\t\t// to null or undefined means the value is set to the string \"null\" or \"undefined\".\n\t\t\t// To align with how we handle this case in non-spread-scenarios, this logic is needed.\n\t\t\t// There's a super-edge-case bug here that is left in in favor of smaller code size:\n\t\t\t// Because of the \"set missing props to null\" logic above, we can't differentiate\n\t\t\t// between a missing value and an explicitly set value of null or undefined. That means\n\t\t\t// that once set, the value attribute of an <option> element can't be removed. This is\n\t\t\t// a very rare edge case, and removing the attribute altogether isn't possible either\n\t\t\t// for the <option value={undefined}> case, so we're not losing any functionality here.\n\t\t\t// @ts-ignore\n\t\t\telement.value = element.__value = '';\n\t\t\tcurrent[key] = value;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (key === 'class') {\n\t\t\tvar is_html = element.namespaceURI === 'http://www.w3.org/1999/xhtml';\n\t\t\tset_class(element, is_html, value, css_hash, prev?.[CLASS], next[CLASS]);\n\t\t\tcurrent[key] = value;\n\t\t\tcurrent[CLASS] = next[CLASS];\n\t\t\tcontinue;\n\t\t}\n\n\t\tvar prev_value = current[key];\n\t\tif (value === prev_value) continue;\n\n\t\tcurrent[key] = value;\n\n\t\tvar prefix = key[0] + key[1]; // this is faster than key.slice(0, 2)\n\t\tif (prefix === '$$') continue;\n\n\t\tif (prefix === 'on') {\n\t\t\t/** @type {{ capture?: true }} */\n\t\t\tconst opts = {};\n\t\t\tconst event_handle_key = '$$' + key;\n\t\t\tlet event_name = key.slice(2);\n\t\t\tvar delegated = is_delegated(event_name);\n\n\t\t\tif (is_capture_event(event_name)) {\n\t\t\t\tevent_name = event_name.slice(0, -7);\n\t\t\t\topts.capture = true;\n\t\t\t}\n\n\t\t\tif (!delegated && prev_value) {\n\t\t\t\t// Listening to same event but different handler -> our handle function below takes care of this\n\t\t\t\t// If we were to remove and add listeners in this case, it could happen that the event is \"swallowed\"\n\t\t\t\t// (the browser seems to not know yet that a new one exists now) and doesn't reach the handler\n\t\t\t\t// https://github.com/sveltejs/svelte/issues/11903\n\t\t\t\tif (value != null) continue;\n\n\t\t\t\telement.removeEventListener(event_name, current[event_handle_key], opts);\n\t\t\t\tcurrent[event_handle_key] = null;\n\t\t\t}\n\n\t\t\tif (value != null) {\n\t\t\t\tif (!delegated) {\n\t\t\t\t\t/**\n\t\t\t\t\t * @this {any}\n\t\t\t\t\t * @param {Event} evt\n\t\t\t\t\t */\n\t\t\t\t\tfunction handle(evt) {\n\t\t\t\t\t\tcurrent[key].call(this, evt);\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrent[event_handle_key] = create_event(event_name, element, handle, opts);\n\t\t\t\t} else {\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\telement[`__${event_name}`] = value;\n\t\t\t\t\tdelegate([event_name]);\n\t\t\t\t}\n\t\t\t} else if (delegated) {\n\t\t\t\t// @ts-ignore\n\t\t\t\telement[`__${event_name}`] = undefined;\n\t\t\t}\n\t\t} else if (key === 'style' && value != null) {\n\t\t\telement.style.cssText = value + '';\n\t\t} else if (key === 'autofocus') {\n\t\t\tautofocus(/** @type {HTMLElement} */ (element), Boolean(value));\n\t\t} else if (!is_custom_element && (key === '__value' || (key === 'value' && value != null))) {\n\t\t\t// @ts-ignore We're not running this for custom elements because __value is actually\n\t\t\t// how Lit stores the current value on the element, and messing with that would break things.\n\t\t\telement.value = element.__value = value;\n\t\t} else if (key === 'selected' && is_option_element) {\n\t\t\tset_selected(/** @type {HTMLOptionElement} */ (element), value);\n\t\t} else {\n\t\t\tvar name = key;\n\t\t\tif (!preserve_attribute_case) {\n\t\t\t\tname = normalize_attribute(name);\n\t\t\t}\n\n\t\t\tvar is_default = name === 'defaultValue' || name === 'defaultChecked';\n\n\t\t\tif (value == null && !is_custom_element && !is_default) {\n\t\t\t\tattributes[key] = null;\n\n\t\t\t\tif (name === 'value' || name === 'checked') {\n\t\t\t\t\t// removing value/checked also removes defaultValue/defaultChecked — preserve\n\t\t\t\t\tlet input = /** @type {HTMLInputElement} */ (element);\n\t\t\t\t\tconst use_default = prev === undefined;\n\t\t\t\t\tif (name === 'value') {\n\t\t\t\t\t\tlet previous = input.defaultValue;\n\t\t\t\t\t\tinput.removeAttribute(name);\n\t\t\t\t\t\tinput.defaultValue = previous;\n\t\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t\tinput.value = input.__value = use_default ? previous : null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlet previous = input.defaultChecked;\n\t\t\t\t\t\tinput.removeAttribute(name);\n\t\t\t\t\t\tinput.defaultChecked = previous;\n\t\t\t\t\t\tinput.checked = use_default ? previous : false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\telement.removeAttribute(key);\n\t\t\t\t}\n\t\t\t} else if (\n\t\t\t\tis_default ||\n\t\t\t\t(setters.includes(name) && (is_custom_element || typeof value !== 'string'))\n\t\t\t) {\n\t\t\t\t// @ts-ignore\n\t\t\t\telement[name] = value;\n\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\tset_attribute(element, name, value);\n\t\t\t}\n\t\t}\n\t\tif (key === 'style' && '__styles' in element) {\n\t\t\t// reset styles to force style: directive to update\n\t\t\telement.__styles = {};\n\t\t}\n\t}\n\n\tif (is_hydrating_custom_element) {\n\t\tset_hydrating(true);\n\t}\n\n\treturn current;\n}\n\n/** @type {Map<string, string[]>} */\nvar setters_cache = new Map();\n\n/** @param {Element} element */\nfunction get_setters(element) {\n\tvar setters = setters_cache.get(element.nodeName);\n\tif (setters) return setters;\n\tsetters_cache.set(element.nodeName, (setters = []));\n\n\tvar descriptors;\n\tvar proto = element; // In the case of custom elements there might be setters on the instance\n\tvar element_proto = Element.prototype;\n\n\t// Stop at Element, from there on there's only unnecessary setters we're not interested in\n\t// Do not use contructor.name here as that's unreliable in some browser environments\n\twhile (element_proto !== proto) {\n\t\tdescriptors = get_descriptors(proto);\n\n\t\tfor (var key in descriptors) {\n\t\t\tif (descriptors[key].set) {\n\t\t\t\tsetters.push(key);\n\t\t\t}\n\t\t}\n\n\t\tproto = get_prototype_of(proto);\n\t}\n\n\treturn setters;\n}\n\n/**\n * @param {any} element\n * @param {string} attribute\n * @param {string} value\n */\nfunction check_src_in_dev_hydration(element, attribute, value) {\n\tif (!DEV) return;\n\tif (attribute === 'srcset' && srcset_url_equal(element, value)) return;\n\tif (src_url_equal(element.getAttribute(attribute) ?? '', value)) return;\n\n\tw.hydration_attribute_changed(\n\t\tattribute,\n\t\telement.outerHTML.replace(element.innerHTML, element.innerHTML && '...'),\n\t\tString(value)\n\t);\n}\n\n/**\n * @param {string} element_src\n * @param {string} url\n * @returns {boolean}\n */\nfunction src_url_equal(element_src, url) {\n\tif (element_src === url) return true;\n\treturn new URL(element_src, document.baseURI).href === new URL(url, document.baseURI).href;\n}\n\n/** @param {string} srcset */\nfunction split_srcset(srcset) {\n\treturn srcset.split(',').map((src) => src.trim().split(' ').filter(Boolean));\n}\n\n/**\n * @param {HTMLSourceElement | HTMLImageElement} element\n * @param {string} srcset\n * @returns {boolean}\n */\nfunction srcset_url_equal(element, srcset) {\n\tvar element_urls = split_srcset(element.srcset);\n\tvar urls = split_srcset(srcset);\n\n\treturn (\n\t\turls.length === element_urls.length &&\n\t\turls.every(\n\t\t\t([url, width], i) =>\n\t\t\t\twidth === element_urls[i][1] &&\n\t\t\t\t// We need to test both ways because Vite will create an a full URL with\n\t\t\t\t// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the\n\t\t\t\t// relative URLs inside srcset are not automatically resolved to absolute URLs by\n\t\t\t\t// browsers (in contrast to img.src). This means both SSR and DOM code could\n\t\t\t\t// contain relative or absolute URLs.\n\t\t\t\t(src_url_equal(element_urls[i][0], url) || src_url_equal(url, element_urls[i][0]))\n\t\t)\n\t);\n}\n"],"names":["CLASS","Symbol","remove_input_defaults","input","hydrating","already_removed","remove_defaults","hasAttribute","value","set_attribute","checked","__on_r","queue_idle_task","add_form_reset_listener","set_checked","element","attributes","__attributes","undefined","set_selected","selected","setAttribute","removeAttribute","attribute","skip_warning","getAttribute","nodeName","DEV","srcset","element_urls","split_srcset","urls","length","every","url","width","i","src_url_equal","srcset_url_equal","w.hydration_attribute_changed","outerHTML","replace","innerHTML","String","check_src_in_dev_hydration","__styles","LOADING_ATTR_SYMBOL","get_setters","includes","set_attributes","prev","next","css_hash","preserve_attribute_case","is_custom_element","is_hydrating_custom_element","set_hydrating","current","is_option_element","tagName","key","class","clsx","setters","__value","prev_value","prefix","opts","event_handle_key","event_name","slice","delegated","is_delegated","is_capture_event","capture","removeEventListener","delegate","handle","evt","call","this","create_event","style","cssText","autofocus","Boolean","name","normalize_attribute","is_default","use_default","previous","defaultValue","defaultChecked","is_html","namespaceURI","set_class","setters_cache","Map","descriptors","get","set","proto","element_proto","Element","prototype","get_descriptors","push","get_prototype_of","element_src","URL","document","baseURI","href","split","map","src","trim","filter"],"mappings":"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","x_google_ignoreList":[0]}
package/public/bundle.js CHANGED
@@ -1,299 +1,31 @@
1
- // import Accordion from './components/accordion/Accordion.js';
2
- // import Autocomplete from './components/autocomplete/Autocomplete.js';
1
+
3
2
  import Button from './components/button/Button.js';
4
3
  import IconButton from './components/button/IconButton.js';
5
- // import Card from './components/card/Card.js';
6
- // import Breadcrumb from './components/breadcrumb/Breadcrumb.js';
4
+
7
5
  import Checkbox from './components/checkbox/Checkbox.js';
8
6
  import CheckboxGroup from './components/checkboxgroup/checkboxGroup.js';
9
7
  import Textarea from './components/textarea/Textarea.js';
10
8
  import Select from './components/select/Select.js';
11
- // import Price from './components/price/Price.js';
9
+
12
10
  import Toggle from './components/toggle/Toggle.js';
13
- // import FileUploader from './components/fileuploader/FileUploader.js';
14
- // import Dropdown from './components/dropdown/Dropdown.js';
11
+
15
12
  import Field from './components/field/Field.js';
16
- // import Flag from './components/flag/Flag.js';
13
+
17
14
  import Link from './components/link/Link.js';
18
- // import Listbox from './components/listbox/Listbox.js';
15
+
19
16
  import Loader from './components/loader/Loader.js';
20
- // import ProgressBar from './components/progressbar/ProgressBar.js';
17
+
21
18
  import Textinput from './components/textinput/Textinput.js';
22
- // import Notification from './components/notification/Notification.js';
19
+
23
20
  import Overlay from './components/overlay/Overlay.js';
24
21
  import OverlayLoader from './components/overlay/OverlayLoader.js';
25
- // import Hero from './components/hero/Hero.js';
22
+
26
23
  import Radio from './components/radio/Radio.js';
27
24
  import RadioGroup from './components/radiogroup/RadioGroup.js';
28
- // import Tabs from './components/tabs/Tabs.js';
29
- // import Tag from './components/tag/Tag.js';
30
- // import Tooltip from './components/tooltip/Tooltip.js';
25
+
31
26
  import QuantitySelector from './components/quantityselector/QuantitySelector.js';
32
- // import Layer from './components/layer/Layer.js';
33
- // import Modal from './components/modal/Modal.js';
34
- // import Pagination from './components/pagination/Pagination.js';
35
- // import PasswordInput from './components/passwordinput/PasswordInput.js';
36
- // import Stepper from './components/stepper/Stepper.js';
27
+
37
28
  import Badge from './components/badge/Badge.js';
38
29
  import StatusBadge from './components/statusbadge/StatusBadge.js';
39
30
  import StatusDot from './components/statusbadge/StatusDot.js';
40
- // import Donut from './components/chart/Donut.js';
41
- // import Radar from './components/chart/Radar.js';
42
- // import StarsResult from './components/ratings/StarsResult.js';
43
- // import StarsInput from './components/ratings/StarsInput.js';
44
- // import DataTable from './components/datatable/DataTable.js';
45
- // import GroupedBarChart from './components/chart/GroupedBarChart.js';
46
- // import PhoneNumber from './components/phonenumber/PhoneNumber.js';
47
- // import BarChart from './components/chart/BarChart.js';
48
- // import StackedBarChart from './components/chart/StackedBarChart.js';
49
- // import LineChart from './components/chart/LineChart.js';
50
- // import Sidebar from './components/sidebar/Sidebar.js';
51
- // import OptionButton from './components/optionbutton/OptionButton.js';
52
- // import Header from './components/header/Header.js';
53
- // import TagList from './components/taglist/TagList.js';
54
- // import Kpi from './components/kpi/Kpi.js';
55
- // import Carousel from './components/carousel/Carousel.js';
56
- // import SegmentedControl from './components/segmentedcontrol/SegmentedControl.js';
57
- // import Menu from './components/menu/Menu.js';
58
- // import BottomBar from './components/bottombar/BottomBar.js';
59
- // import ActionBar from './components/actionbar/ActionBar.js';
60
- // import StepperBar from './components/stepperbar/StepperBar.js';
61
-
62
- // if (!customElements.get('m-carousel')) {
63
- // customElements.define('m-carousel', Carousel.element);
64
- // }
65
-
66
- // if (!customElements.get('m-accordion')) {
67
- // customElements.define('m-accordion', Accordion.element);
68
- // }
69
-
70
- // if (!customElements.get('m-autocomplete')) {
71
- // customElements.define('m-autocomplete', Autocomplete.element);
72
- // }
73
-
74
- if (!customElements.get('m-button')) {
75
- customElements.define('m-button', Button.element);
76
- }
77
-
78
- if (!customElements.get('m-icon-button')) {
79
- customElements.define('m-icon-button', IconButton.element);
80
- }
81
-
82
- // if (!customElements.get('m-card')) {
83
- // customElements.define('m-card', Card.element);
84
- // }
85
-
86
- // if (!customElements.get('m-breadcrumb')) {
87
- // customElements.define('m-breadcrumb', Breadcrumb.element);
88
- // }
89
-
90
- if (!customElements.get('m-checkbox')) {
91
- customElements.define('m-checkbox', Checkbox.element);
92
- }
93
-
94
- if (!customElements.get('m-checkbox-group')) {
95
- customElements.define('m-checkbox-group', CheckboxGroup.element);
96
- }
97
-
98
- if (!customElements.get('m-textarea')) {
99
- customElements.define('m-textarea', Textarea.element);
100
- }
101
-
102
- if (!customElements.get('m-select')) {
103
- customElements.define('m-select', Select.element);
104
- }
105
-
106
- // if (!customElements.get('m-stars-input')) {
107
- // customElements.define('m-stars-input', StarsInput.element);
108
- // }
109
- // if (!customElements.get('m-price')) {
110
- // customElements.define('m-price', Price.element);
111
- // }
112
-
113
- if (!customElements.get('m-toggle')) {
114
- customElements.define('m-toggle', Toggle.element);
115
- }
116
-
117
- // if (!customElements.get('m-fileuploader')) {
118
- // customElements.define('m-fileuploader', FileUploader.element);
119
- // }
120
-
121
- if (!customElements.get('m-field')) {
122
- customElements.define('m-field', Field.element);
123
- }
124
-
125
- // if (!customElements.get('m-dropdown')) {
126
- // customElements.define('m-dropdown', Dropdown.element);
127
- // }
128
-
129
- // if (!customElements.get('m-flag')) {
130
- // customElements.define('m-flag', Flag.element);
131
- // }
132
-
133
- if (!customElements.get('m-link')) {
134
- customElements.define('m-link', Link.element);
135
- }
136
-
137
- // if (!customElements.get('m-listbox')) {
138
- // customElements.define('m-listbox', Listbox.element);
139
- // }
140
-
141
- if (!customElements.get('m-loader')) {
142
- customElements.define('m-loader', Loader.element);
143
- }
144
-
145
- // if (!customElements.get('m-progressbar')) {
146
- // customElements.define('m-progressbar', ProgressBar.element);
147
- // }
148
-
149
- if (!customElements.get('m-textinput')) {
150
- customElements.define('m-textinput', Textinput.element);
151
- }
152
-
153
- // if (!customElements.get('m-notification')) {
154
- // customElements.define('m-notification', Notification.element);
155
- // }
156
-
157
- if (!customElements.get('m-overlay')) {
158
- customElements.define('m-overlay', Overlay.element);
159
- }
160
-
161
- if (!customElements.get('m-overlay-loader')) {
162
- customElements.define('m-overlay-loader', OverlayLoader.element);
163
- }
164
-
165
- // if (!customElements.get('m-hero')) {
166
- // customElements.define('m-hero', Hero.element);
167
- // }
168
-
169
- if (!customElements.get('m-radio')) {
170
- customElements.define('m-radio', Radio.element);
171
- }
172
-
173
- if (!customElements.get('m-radio-group')) {
174
- customElements.define('m-radio-group', RadioGroup.element);
175
- }
176
-
177
- // if (!customElements.get('m-tabs')) {
178
- // customElements.define('m-tabs', Tabs.element);
179
- // }
180
-
181
- // if (!customElements.get('m-tag')) {
182
- // customElements.define('m-tag', Tag.element);
183
- // }
184
-
185
- // if (!customElements.get('m-tooltip')) {
186
- // customElements.define('m-tooltip', Tooltip.element);
187
- // }
188
-
189
- if (!customElements.get('m-qty-selector')) {
190
- customElements.define('m-qty-selector', QuantitySelector.element);
191
- }
192
-
193
- // if (!customElements.get('m-layer')) {
194
- // customElements.define('m-layer', Layer.element);
195
- // }
196
-
197
- // if (!customElements.get('m-modal')) {
198
- // customElements.define('m-modal', Modal.element);
199
- // }
200
-
201
- // if (!customElements.get('m-pagination')) {
202
- // customElements.define('m-pagination', Pagination.element);
203
- // }
204
-
205
- // if (!customElements.get('m-password-input')) {
206
- // customElements.define('m-password-input', PasswordInput.element);
207
- // }
208
-
209
- // if (!customElements.get('m-stepper')) {
210
- // customElements.define('m-stepper', Stepper.element);
211
- // }
212
-
213
- if (!customElements.get('m-badge')) {
214
- customElements.define('m-badge', Badge.element);
215
- }
216
-
217
- if (!customElements.get('m-status-badge')) {
218
- customElements.define('m-status-badge', StatusBadge.element);
219
- }
220
-
221
- if (!customElements.get('m-status-dot')) {
222
- customElements.define('m-status-dot', StatusDot.element);
223
- }
224
-
225
- // if (!customElements.get('m-donut')) {
226
- // customElements.define('m-donut', Donut.element);
227
- // }
228
-
229
- // if (!customElements.get('m-radar')) {
230
- // customElements.define('m-radar', Radar.element);
231
- // }
232
-
233
- // if (!customElements.get('m-stars-result')) {
234
- // customElements.define('m-stars-result', StarsResult.element);
235
- // }
236
-
237
- // if (!customElements.get('m-datatable')) {
238
- // customElements.define('m-datatable', DataTable.element);
239
- // }
240
-
241
- // if (!customElements.get('m-grouped-bar-chart')) {
242
- // customElements.define('m-grouped-bar-chart', GroupedBarChart.element);
243
- // }
244
-
245
- // if (!customElements.get('m-phone-number')) {
246
- // customElements.define('m-phone-number', PhoneNumber.element);
247
- // }
248
-
249
- // if (!customElements.get('m-bar-chart')) {
250
- // customElements.define('m-bar-chart', BarChart.element);
251
- // }
252
-
253
- // if (!customElements.get('m-stacked-bar-chart')) {
254
- // customElements.define('m-stacked-bar-chart', StackedBarChart.element);
255
- // }
256
-
257
- // if (!customElements.get('m-line-chart')) {
258
- // customElements.define('m-line-chart', LineChart.element);
259
- // }
260
-
261
- // if (!customElements.get('m-sidebar')) {
262
- // customElements.define('m-sidebar', Sidebar.element);
263
- // }
264
-
265
- // if (!customElements.get('m-option-button')) {
266
- // customElements.define('m-option-button', OptionButton.element);
267
- // }
268
-
269
- // if (!customElements.get('m-header')) {
270
- // customElements.define('m-header', Header.element);
271
- // }
272
-
273
- // if (!customElements.get('m-taglist')) {
274
- // customElements.define('m-taglist', TagList.element);
275
- // }
276
-
277
- // if (!customElements.get('m-kpi')) {
278
- // customElements.define('m-kpi', Kpi.element);
279
- // }
280
-
281
- // if (!customElements.get('m-segmented-control')) {
282
- // customElements.define('m-segmented-control', SegmentedControl.element);
283
- // }
284
-
285
- // if (!customElements.get('m-menu')) {
286
- // customElements.define('m-menu', Menu.element);
287
- // }
288
-
289
- // if (!customElements.get('m-bottom-bar')) {
290
- // customElements.define('m-bottom-bar', BottomBar.element);
291
- // }
292
-
293
- // if (!customElements.get('m-action-bar')) {
294
- // customElements.define('m-action-bar', ActionBar.element);
295
- // }
296
31
 
297
- // if (!customElements.get('m-stepper-bar')) {
298
- // customElements.define('m-stepper-bar', StepperBar.element);
299
- // }
@@ -1,2 +1,2 @@
1
- import{c as e,S as t,i as a,f as s,s as r,a as l,p as o,e as c,F as n,E as i,t as d,g as f,h as b,I as g,J as u,y as m,m as h,n as v,K as $,q as p}from"../../index-c0bfe08f.js";import{g as x}from"../../spread-ed04f539.js";import{c as y}from"../../EventForward-bb916157.js";function w(e){l(e,"svelte-1hwtfua",".mc-badge.svelte-1hwtfua{color:var(--badge-color-text-standard, #ffffff);background-color:var(--badge-color-background-standard, #464e63);height:1rem;min-width:1rem;padding:0 0.125rem;font-size:0.625rem;border-radius:1rem;font-weight:600;display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center}.mc-badge--m.svelte-1hwtfua{height:1.5rem;min-width:1.5rem;padding:0 0.25rem;font-size:0.75rem}.mc-badge--accent.svelte-1hwtfua{color:var(--badge-color-text-accent, #ffffff);background-color:var(--badge-color-background-accent, #117f03)}.mc-badge--danger.svelte-1hwtfua{color:var(--badge-color-text-danger, #ffffff);background-color:var(--badge-color-background-danger, #c61112)}.mc-badge--inverse.svelte-1hwtfua{color:var(--badge-color-text-inverse, #464e63);background-color:var(--badge-color-background-inverse, #ffffff)}")}function z(e){let t,a,s,r,l,v=[{class:s=e[5](e[1])+" "+e[3]},e[2]],$={};for(let e=0;e<v.length;e+=1)$=o($,v[e]);return{c(){t=c("div"),a=n(e[0]),i(t,$),d(t,"svelte-1hwtfua",!0)},m(s,o){f(s,t,o),b(t,a),r||(l=g(e[4].call(null,t)),r=!0)},p(e,[r]){1&r&&u(a,e[0],$.contenteditable),i(t,$=x(v,[10&r&&s!==(s=e[5](e[1])+" "+e[3])&&{class:s},4&r&&e[2]])),d(t,"svelte-1hwtfua",!0)},i:m,o:m,d(e){e&&h(t),r=!1,l()}}}function k(e,t,a){let s,r;const l=["label","style","size"];let c=v(t,l),{label:n}=t,{style:i}=t,{size:d}=t;const f=y($());return e.$$set=e=>{a(8,t=o(o({},t),p(e))),a(7,c=v(t,l)),"label"in e&&a(0,n=e.label),"style"in e&&a(1,i=e.style),"size"in e&&a(6,d=e.size)},e.$$.update=()=>{a(3,s=t.class),a(2,r=Object.assign({},c)),4&e.$$.dirty&&delete r.class},t=p(t),[n,i,r,s,f,function(e){const t=["mc-badge"];return e&&t.push(`mc-badge--${e}`),d&&t.push(`mc-badge--${d}`),t.join(" ")},d]}class j extends t{constructor(e){super(),a(this,e,k,z,r,{label:0,style:1,size:6},w)}get label(){return this.$$.ctx[0]}set label(e){this.$$set({label:e}),s()}get style(){return this.$$.ctx[1]}set style(e){this.$$set({style:e}),s()}get size(){return this.$$.ctx[6]}set size(e){this.$$set({size:e}),s()}}e(j,{label:{},style:{},size:{}},[],[],!1);export{j as default};
1
+ import{c as e,p as a,a as t,b as r,t as o,d as s,s as d,e as n,f as c,g as l,h as f,i as g,j as i,r as b}from"../../custom-element-C0xaDU2s.js";var u=o("<div> </div>");const m={hash:"svelte-1hwtfua",code:"/**\n * Do not edit directly, this file was auto-generated.\n */.mc-badge.svelte-1hwtfua {color:var(--badge-color-text-standard, #ffffff);background-color:var(--badge-color-background-standard, #464e63);height:1rem;min-width:1rem;padding:0 0.125rem;font-size:0.625rem;border-radius:1rem;font-weight:600;display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;}.mc-badge--m.svelte-1hwtfua {height:1.5rem;min-width:1.5rem;padding:0 0.25rem;font-size:0.75rem;}.mc-badge--accent.svelte-1hwtfua {color:var(--badge-color-text-accent, #ffffff);background-color:var(--badge-color-background-accent, #117f03);}.mc-badge--danger.svelte-1hwtfua {color:var(--badge-color-text-danger, #ffffff);background-color:var(--badge-color-background-danger, #c61112);}.mc-badge--inverse.svelte-1hwtfua {color:var(--badge-color-text-inverse, #464e63);background-color:var(--badge-color-background-inverse, #ffffff);}"};function v(e,o){a(o,!0),t(e,m);let v=r(o,"label",7,""),h=r(o,"style",7,"standard"),w=r(o,"size",7,"s");var k=u(),p=l(k,!0);return b(k),s((e=>{d(k,1,n(e),"svelte-1hwtfua"),c(p,v())}),[()=>function(e){const a=["mc-badge"];return e&&a.push(`mc-badge--${e}`),w()&&a.push(`mc-badge--${w()}`),a.join(" ")}(h())]),f(e,k),g({get label(){return v()},set label(e=""){v(e),i()},get style(){return h()},set style(e="standard"){h(e),i()},get size(){return w()},set size(e="s"){w(e),i()}})}customElements.define("m-badge",e(v,{label:{},style:{},size:{}},[],[],!1));export{v as default};
2
2
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/badge/Badge.svelte"],"sourcesContent":["<svelte:options customElement={{ tag: '', shadow: 'none' }} />\n\n<script lang=\"ts\">\n import type { BadgeStyle, BadgeSize } from './badge.types';\n import { createEventForwarder } from '../../utilities/EventForward';\n // @ts-ignore Need to use internal Svelte function\n import { get_current_component } from 'svelte/internal';\n export let label: string;\n export let style: BadgeStyle;\n export let size: BadgeSize;\n const forwardEvents = createEventForwarder(get_current_component());\n $: userClass = $$props.class;\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n\n function setClasses(style: BadgeStyle) {\n const classes = ['mc-badge'];\n\n if (style) {\n classes.push(`mc-badge--${style}`);\n }\n\n if (size) {\n classes.push(`mc-badge--${size}`);\n }\n\n return classes.join(' ');\n }\n</script>\n\n<div use:forwardEvents class=\"{setClasses(style)} {userClass}\" {...attributes}>\n {label}\n</div>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/badge';\n</style>\n"],"names":["ctx","insert","target","div","anchor","div_data","class","div_class_value","label","$$props","style","size","forwardEvents","createEventForwarder","get_current_component","$$invalidate","userClass","attributes","Object","assign","$$restProps","classes","push","join"],"mappings":"8qCA8B+BA,EAAU,GAACA,EAAK,IAAA,IAAIA,EAAS,IAAOA,EAAU,2EAC1EA,EAAK,4CADRC,EAEKC,EAAAC,EAAAC,8DADFJ,EAAK,GAAAK,EAAA,yCADuBL,EAAU,GAACA,EAAK,IAAA,IAAIA,EAAS,KAAA,CAAAM,MAAAC,QAAOP,EAAU,+IAvBhEQ,GAAaC,SACbC,GAAiBD,QACjBE,GAAeF,QACpBG,EAAgBC,EAAqBC,iKACxCC,EAAA,EAAAC,EAAYP,EAAQH,OACtBS,EAAA,EAAEE,EAAUC,OAAAC,OAAA,CAAA,EAAQC,yBACXH,EAAWX,yBAEZ,SAAWI,GACZ,MAAAW,GAAW,mBAEbX,GACFW,EAAQC,KAAI,aAAcZ,KAGxBC,GACFU,EAAQC,KAAI,aAAcX,KAGrBU,EAAQE,KAAK"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../src/components/badge/Badge.svelte"],"sourcesContent":["<svelte:options customElement={{ tag: 'm-badge', shadow: 'none' }} />\n\n<script lang=\"ts\">\n import type { BadgeStyle, BadgeSize } from './badge.types';\n interface Props {\n label: string;\n style: BadgeStyle;\n size: BadgeSize;\n }\n\n let { label = '', style = 'standard', size = 's' }: Props = $props();\n\n function setClasses(style: BadgeStyle) {\n const classes = ['mc-badge'];\n\n if (style) {\n classes.push(`mc-badge--${style}`);\n }\n\n if (size) {\n classes.push(`mc-badge--${size}`);\n }\n\n return classes.join(' ');\n }\n</script>\n\n<div class={setClasses(style)}>\n {label}\n</div>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/badge';\n</style>\n"],"names":["label","style","size","classes","push","join","setClasses"],"mappings":"uoCAUQ,IAAAA,gBAAQ,IAAIC,gBAAQ,YAAYC,eAAO,6EAkB5CF,IAAK,GADI,CAAA,IAfD,SAAWC,GACZ,MAAAE,GAAW,mBAEbF,GACFE,EAAQC,KAAI,aAAcH,KAGxBC,KACFC,EAAQC,KAAI,aAAcF,OAGrBC,EAAQE,KAAK,IACtB,CAGUC,CAAWL,qDAjBP,kDAAY,wDAAmB"}
@@ -1,17 +1,14 @@
1
- <svelte:options customElement={{ tag: '', shadow: 'none' }} />
1
+ <svelte:options customElement={{ tag: 'm-badge', shadow: 'none' }} />
2
2
 
3
3
  <script lang="ts">
4
4
  import type { BadgeStyle, BadgeSize } from './badge.types';
5
- import { createEventForwarder } from '../../utilities/EventForward';
6
- // @ts-ignore Need to use internal Svelte function
7
- import { get_current_component } from 'svelte/internal';
8
- export let label: string;
9
- export let style: BadgeStyle;
10
- export let size: BadgeSize;
11
- const forwardEvents = createEventForwarder(get_current_component());
12
- $: userClass = $$props.class;
13
- $: attributes = { ...$$restProps };
14
- $: delete attributes.class;
5
+ interface Props {
6
+ label: string;
7
+ style: BadgeStyle;
8
+ size: BadgeSize;
9
+ }
10
+
11
+ let { label = '', style = 'standard', size = 's' }: Props = $props();
15
12
 
16
13
  function setClasses(style: BadgeStyle) {
17
14
  const classes = ['mc-badge'];
@@ -28,7 +25,7 @@
28
25
  }
29
26
  </script>
30
27
 
31
- <div use:forwardEvents class="{setClasses(style)} {userClass}" {...attributes}>
28
+ <div class={setClasses(style)}>
32
29
  {label}
33
30
  </div>
34
31