@maggioli-design-system/magma 1.0.0-beta → 1.0.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 (907) hide show
  1. package/README.md +44 -226
  2. package/dist/cjs/{_commonjsHelpers-0192c5b3.js → _commonjsHelpers-e6ff1d6e.js} +0 -5
  3. package/dist/cjs/{aria-8237fdab.js → aria-0b8ae8a3.js} +18 -2
  4. package/dist/cjs/file-extensions-cd2fa955.js +126 -0
  5. package/dist/cjs/{floating-ui.dom.esm-58e05c82.js → floating-ui.dom.esm-4d912aff.js} +484 -40
  6. package/dist/cjs/{index-9808fc83.js → index-eccfa195.js} +24 -297
  7. package/dist/cjs/{keyboard-manager-fa9d665b.js → keyboard-manager-952eef32.js} +2 -2
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/locale-9add6645.js +845 -0
  10. package/dist/cjs/locale.it-e5e117c5.js +466 -0
  11. package/dist/cjs/magma-components.cjs.js +3 -3
  12. package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
  14. package/dist/cjs/mds-accordion-timer.cjs.entry.js +17 -13
  15. package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
  16. package/dist/cjs/mds-author.cjs.entry.js +1 -1
  17. package/dist/cjs/mds-avatar.cjs.entry.js +3 -3
  18. package/dist/cjs/mds-badge.cjs.entry.js +2 -2
  19. package/dist/cjs/mds-banner.cjs.entry.js +24 -8
  20. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  21. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +4 -4
  23. package/dist/cjs/mds-breadcrumb.cjs.entry.js +39 -4
  24. package/dist/cjs/mds-button_3.cjs.entry.js +53 -20
  25. package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
  27. package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
  28. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-card.cjs.entry.js +1 -1
  30. package/dist/cjs/mds-chip.cjs.entry.js +83 -28
  31. package/dist/cjs/mds-details.cjs.entry.js +3 -3
  32. package/dist/cjs/{mds-dropdown_2.cjs.entry.js → mds-dropdown.cjs.entry.js} +12 -890
  33. package/dist/cjs/mds-entity.cjs.entry.js +5 -5
  34. package/dist/cjs/mds-file-preview.cjs.entry.js +44 -11
  35. package/dist/cjs/mds-file.cjs.entry.js +44 -13
  36. package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
  37. package/dist/cjs/mds-filter.cjs.entry.js +2 -2
  38. package/dist/cjs/mds-header-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/mds-header.cjs.entry.js +5 -3
  40. package/dist/cjs/mds-help.cjs.entry.js +4 -4
  41. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
  42. package/dist/cjs/mds-hr.cjs.entry.js +1 -1
  43. package/dist/cjs/mds-img.cjs.entry.js +23 -7
  44. package/dist/cjs/mds-input-field.cjs.entry.js +3 -3
  45. package/dist/cjs/mds-input-range.cjs.entry.js +6 -5
  46. package/dist/cjs/mds-input-select.cjs.entry.js +8 -8
  47. package/dist/cjs/mds-input-switch.cjs.entry.js +9 -8
  48. package/dist/cjs/mds-input-tip_2.cjs.entry.js +36 -12
  49. package/dist/cjs/mds-input-upload.cjs.entry.js +159 -31
  50. package/dist/cjs/mds-input.cjs.entry.js +44 -16
  51. package/dist/cjs/mds-kpi-item.cjs.entry.js +6 -4
  52. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  53. package/dist/cjs/mds-label.cjs.entry.js +33 -5
  54. package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
  55. package/dist/cjs/mds-list.cjs.entry.js +2 -2
  56. package/dist/cjs/mds-modal.cjs.entry.js +6 -4
  57. package/dist/cjs/mds-note.cjs.entry.js +38 -3
  58. package/dist/cjs/mds-notification.cjs.entry.js +4 -3
  59. package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -5
  60. package/dist/cjs/mds-paginator.cjs.entry.js +3 -3
  61. package/dist/cjs/mds-pref-animation.cjs.entry.js +9 -7
  62. package/dist/cjs/mds-pref-consumption.cjs.entry.js +9 -7
  63. package/dist/cjs/mds-pref-contrast.cjs.entry.js +9 -7
  64. package/dist/cjs/mds-pref-language-item.cjs.entry.js +11 -4
  65. package/dist/cjs/mds-pref-language.cjs.entry.js +855 -12
  66. package/dist/cjs/mds-pref-theme.cjs.entry.js +14 -8
  67. package/dist/cjs/mds-pref.cjs.entry.js +8 -4
  68. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +1 -1
  69. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +1 -1
  70. package/dist/cjs/mds-price-table-features.cjs.entry.js +1 -1
  71. package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
  72. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
  73. package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
  74. package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
  75. package/dist/cjs/mds-progress.cjs.entry.js +10 -4
  76. package/dist/cjs/mds-push-notification.cjs.entry.js +87 -19
  77. package/dist/cjs/mds-push-notifications.cjs.entry.js +1 -1
  78. package/dist/cjs/mds-quote.cjs.entry.js +3 -2
  79. package/dist/cjs/mds-separator.cjs.entry.js +2 -2
  80. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
  81. package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
  82. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +2 -2
  83. package/dist/cjs/mds-tab-bar.cjs.entry.js +1 -1
  84. package/dist/cjs/mds-tab_2.cjs.entry.js +2 -2
  85. package/dist/cjs/mds-table-body.cjs.entry.js +1 -1
  86. package/dist/cjs/mds-table-cell.cjs.entry.js +2 -2
  87. package/dist/cjs/mds-table-footer.cjs.entry.js +1 -1
  88. package/dist/cjs/mds-table-header-cell.cjs.entry.js +8 -8
  89. package/dist/cjs/mds-table-header.cjs.entry.js +1 -1
  90. package/dist/cjs/mds-table-row.cjs.entry.js +16 -3
  91. package/dist/cjs/mds-table.cjs.entry.js +18 -3
  92. package/dist/cjs/mds-text.cjs.entry.js +4 -2
  93. package/dist/cjs/mds-toast.cjs.entry.js +8 -4
  94. package/dist/cjs/mds-tooltip.cjs.entry.js +10 -11
  95. package/dist/cjs/mds-url-view.cjs.entry.js +55 -4
  96. package/dist/cjs/mds-usage.cjs.entry.js +3 -13
  97. package/dist/cjs/mds-video-wall.cjs.entry.js +5 -5
  98. package/dist/cjs/mds-zero.cjs.entry.js +2 -2
  99. package/dist/collection/collection-manifest.json +2 -3
  100. package/dist/collection/common/aria.js +17 -1
  101. package/dist/collection/common/device.js +6 -0
  102. package/dist/collection/common/keyboard-manager.js +2 -2
  103. package/dist/collection/common/locale.js +17 -5
  104. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
  105. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  106. package/dist/collection/components/mds-avatar/mds-avatar.css +6 -6
  107. package/dist/collection/components/mds-badge/mds-badge.css +70 -72
  108. package/dist/collection/components/mds-banner/mds-banner.css +5 -5
  109. package/dist/collection/components/mds-banner/mds-banner.js +36 -2
  110. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +46 -2
  111. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +3 -0
  112. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
  113. package/dist/collection/components/mds-button/mds-button.css +147 -133
  114. package/dist/collection/components/mds-button/mds-button.js +4 -2
  115. package/dist/collection/components/mds-chip/mds-chip.css +231 -33
  116. package/dist/collection/components/mds-chip/mds-chip.js +167 -48
  117. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +27 -8
  118. package/dist/collection/components/mds-details/mds-details.css +4 -3
  119. package/dist/collection/components/mds-dropdown/mds-dropdown.js +9 -7
  120. package/dist/collection/components/mds-entity/mds-entity.js +4 -4
  121. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +3 -3
  122. package/dist/collection/components/mds-file/mds-file.js +45 -22
  123. package/dist/collection/components/mds-file-preview/mds-file-preview.css +126 -82
  124. package/dist/collection/components/mds-file-preview/mds-file-preview.js +49 -3
  125. package/dist/collection/components/mds-filter/mds-filter.js +1 -1
  126. package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
  127. package/dist/collection/components/mds-header/mds-header.js +4 -2
  128. package/dist/collection/components/mds-help/mds-help.css +4 -9
  129. package/dist/collection/components/mds-help/mds-help.js +2 -1
  130. package/dist/collection/components/mds-icon/mds-icon.js +2 -4
  131. package/dist/collection/components/mds-icon/services/icons-set.service.js +42 -9
  132. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +15 -0
  133. package/dist/collection/components/mds-img/mds-img.css +3 -3
  134. package/dist/collection/components/mds-img/mds-img.js +32 -2
  135. package/dist/collection/components/mds-input/mds-input.css +4 -4
  136. package/dist/collection/components/mds-input/mds-input.js +40 -15
  137. package/dist/collection/components/mds-input/test/mds-input.stories.js +16 -7
  138. package/dist/collection/components/mds-input-field/mds-input-field.js +9 -9
  139. package/dist/collection/components/mds-input-range/mds-input-range.css +6 -6
  140. package/dist/collection/components/mds-input-range/mds-input-range.js +4 -3
  141. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +4 -4
  142. package/dist/collection/components/mds-input-select/mds-input-select.css +12 -12
  143. package/dist/collection/components/mds-input-select/mds-input-select.js +11 -11
  144. package/dist/collection/components/mds-input-switch/mds-input-switch.css +2 -2
  145. package/dist/collection/components/mds-input-switch/mds-input-switch.js +6 -5
  146. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +41 -7
  147. package/dist/collection/components/mds-input-upload/mds-input-upload.css +1 -1
  148. package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -7
  149. package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
  150. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +4 -4
  151. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +5 -3
  152. package/dist/collection/components/mds-label/mds-label.css +2 -9
  153. package/dist/collection/components/mds-label/mds-label.js +44 -2
  154. package/dist/collection/components/mds-list/mds-list.js +1 -1
  155. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
  156. package/dist/collection/components/mds-modal/mds-modal.js +5 -3
  157. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +8 -4
  158. package/dist/collection/components/mds-note/mds-note.js +45 -1
  159. package/dist/collection/components/mds-notification/mds-notification.js +2 -1
  160. package/dist/collection/components/mds-paginator/mds-paginator.js +2 -2
  161. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +3 -3
  162. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -2
  163. package/dist/collection/components/mds-pref/mds-pref.js +28 -2
  164. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +32 -4
  165. package/dist/collection/components/mds-pref-animation/meta/dictionary.js +2 -2
  166. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +32 -4
  167. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +32 -4
  168. package/dist/collection/components/mds-pref-language/mds-pref-language.css +20 -2
  169. package/dist/collection/components/mds-pref-language/mds-pref-language.js +47 -19
  170. package/dist/collection/components/mds-pref-language/meta/dictionary.js +2 -0
  171. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +1 -1
  172. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +38 -11
  173. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +37 -5
  174. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +1 -1
  175. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -0
  176. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +4 -4
  177. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
  178. package/dist/collection/components/mds-progress/mds-progress.css +16 -16
  179. package/dist/collection/components/mds-progress/mds-progress.js +8 -2
  180. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +1 -1
  181. package/dist/collection/components/mds-push-notification/mds-push-notification.css +6 -6
  182. package/dist/collection/components/mds-push-notification/mds-push-notification.js +36 -2
  183. package/dist/collection/components/mds-quote/mds-quote.js +26 -1
  184. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +11 -0
  185. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -3
  186. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +1 -1
  187. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  188. package/dist/collection/components/mds-tab/mds-tab.css +1 -1
  189. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +8 -8
  190. package/dist/collection/components/mds-table/mds-table.css +3 -3
  191. package/dist/collection/components/mds-table/mds-table.js +16 -1
  192. package/dist/collection/components/mds-table/test/mds-table.stories.js +5 -0
  193. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  194. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +2 -6
  195. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +7 -7
  196. package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
  197. package/dist/collection/components/mds-table-row/mds-table-row.js +26 -1
  198. package/dist/collection/components/mds-text/mds-text.js +6 -4
  199. package/dist/collection/components/mds-text/test/mds-text.stories.js +1 -1
  200. package/dist/collection/components/mds-toast/mds-toast.js +7 -3
  201. package/dist/collection/components/mds-tooltip/mds-tooltip.js +8 -9
  202. package/dist/collection/components/mds-url-view/mds-url-view.js +45 -1
  203. package/dist/collection/components/mds-usage/mds-usage.css +14 -14
  204. package/dist/collection/components/mds-usage/mds-usage.js +1 -11
  205. package/dist/collection/components/mds-video-wall/mds-video-wall.css +19 -3
  206. package/dist/collection/components/mds-video-wall/mds-video-wall.js +3 -3
  207. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  208. package/dist/collection/dictionary/file-extensions.js +114 -56
  209. package/dist/collection/dictionary/text.js +60 -1
  210. package/dist/collection/dictionary/variant.js +10 -1
  211. package/dist/components/aria.js +17 -2
  212. package/dist/components/floating-ui.dom.esm.js +484 -40
  213. package/dist/components/keyboard-manager.js +2 -2
  214. package/dist/components/locale.it.js +578 -0
  215. package/dist/components/locale.js +668 -4615
  216. package/dist/components/mds-accordion-timer-item.js +1 -1
  217. package/dist/components/mds-accordion-timer.js +16 -12
  218. package/dist/components/mds-avatar2.js +2 -2
  219. package/dist/components/mds-badge2.js +1 -1
  220. package/dist/components/mds-banner.js +23 -5
  221. package/dist/components/mds-breadcrumb-item.js +2 -2
  222. package/dist/components/mds-breadcrumb.js +39 -3
  223. package/dist/components/mds-button2.js +5 -3
  224. package/dist/components/mds-chip.js +91 -29
  225. package/dist/components/mds-details.js +1 -1
  226. package/dist/components/mds-dropdown2.js +9 -7
  227. package/dist/components/mds-entity.js +4 -4
  228. package/dist/components/mds-file-preview2.js +40 -6
  229. package/dist/components/mds-file.js +39 -8
  230. package/dist/components/mds-filter-item2.js +1 -1
  231. package/dist/components/mds-filter.js +1 -1
  232. package/dist/components/mds-header.js +4 -2
  233. package/dist/components/mds-help.js +5 -4
  234. package/dist/components/mds-icon2.js +44 -13
  235. package/dist/components/mds-img2.js +22 -4
  236. package/dist/components/mds-input-field.js +2 -2
  237. package/dist/components/mds-input-range.js +5 -4
  238. package/dist/components/mds-input-select.js +7 -7
  239. package/dist/components/mds-input-switch.js +7 -6
  240. package/dist/components/mds-input-tip-item2.js +36 -10
  241. package/dist/components/mds-input-upload.js +158 -28
  242. package/dist/components/mds-input2.js +42 -13
  243. package/dist/components/mds-kpi-item.js +5 -3
  244. package/dist/components/mds-kpi.js +1 -1
  245. package/dist/components/mds-label.js +33 -4
  246. package/dist/components/mds-list-item.js +1 -1
  247. package/dist/components/mds-list.js +1 -1
  248. package/dist/components/mds-modal2.js +5 -3
  249. package/dist/components/mds-note.js +38 -2
  250. package/dist/components/mds-notification.js +2 -1
  251. package/dist/components/mds-paginator-item2.js +3 -3
  252. package/dist/components/mds-paginator.js +2 -2
  253. package/dist/components/mds-pref-animation.js +9 -5
  254. package/dist/components/mds-pref-consumption.js +9 -5
  255. package/dist/components/mds-pref-contrast.js +9 -5
  256. package/dist/components/mds-pref-language-item.js +11 -2
  257. package/dist/components/mds-pref-language.js +863 -23
  258. package/dist/components/mds-pref-theme.js +14 -6
  259. package/dist/components/mds-pref.js +8 -2
  260. package/dist/components/mds-price-table-list.js +3 -3
  261. package/dist/components/mds-progress2.js +9 -3
  262. package/dist/components/mds-push-notification.js +89 -20
  263. package/dist/components/mds-quote.js +4 -2
  264. package/dist/components/mds-spinner2.js +1 -1
  265. package/dist/components/mds-stepper-bar-item.js +2 -2
  266. package/dist/components/mds-tab-bar-item.js +1 -1
  267. package/dist/components/mds-tab2.js +1 -1
  268. package/dist/components/mds-table-cell.js +1 -1
  269. package/dist/components/mds-table-header-cell.js +7 -7
  270. package/dist/components/mds-table-row.js +17 -3
  271. package/dist/components/mds-table.js +17 -2
  272. package/dist/components/mds-text2.js +3 -1
  273. package/dist/components/mds-toast.js +7 -3
  274. package/dist/components/mds-tooltip2.js +8 -9
  275. package/dist/components/mds-url-view.js +54 -2
  276. package/dist/components/mds-usage.js +2 -12
  277. package/dist/components/mds-video-wall.js +4 -4
  278. package/dist/components/mds-zero.js +1 -1
  279. package/dist/documentation.json +929 -484
  280. package/dist/{components/_commonjsHelpers.js → esm/_commonjsHelpers-bdec4bbd.js} +1 -5
  281. package/dist/esm/{aria-0e390d9c.js → aria-ed9d415d.js} +17 -2
  282. package/dist/esm/file-extensions-97006435.js +123 -0
  283. package/dist/esm/{floating-ui.dom.esm-f7b7f919.js → floating-ui.dom.esm-b6d2205c.js} +484 -40
  284. package/dist/esm/{index-f08bac5f.js → index-44fd80a1.js} +24 -297
  285. package/dist/esm/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +2 -2
  286. package/dist/esm/loader.js +3 -3
  287. package/dist/esm/locale-149207d6.js +843 -0
  288. package/dist/esm/locale.it-94429e24.js +457 -0
  289. package/dist/esm/magma-components.js +4 -4
  290. package/dist/esm/mds-accordion-item.entry.js +1 -1
  291. package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
  292. package/dist/esm/mds-accordion-timer.entry.js +17 -13
  293. package/dist/esm/mds-accordion.entry.js +1 -1
  294. package/dist/esm/mds-author.entry.js +1 -1
  295. package/dist/esm/mds-avatar.entry.js +3 -3
  296. package/dist/esm/mds-badge.entry.js +2 -2
  297. package/dist/esm/mds-banner.entry.js +24 -8
  298. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  299. package/dist/esm/mds-bibliography.entry.js +1 -1
  300. package/dist/esm/mds-breadcrumb-item.entry.js +4 -4
  301. package/dist/esm/mds-breadcrumb.entry.js +39 -4
  302. package/dist/esm/mds-button_3.entry.js +53 -20
  303. package/dist/esm/mds-card-content.entry.js +1 -1
  304. package/dist/esm/mds-card-footer.entry.js +1 -1
  305. package/dist/esm/mds-card-header.entry.js +1 -1
  306. package/dist/esm/mds-card-media.entry.js +1 -1
  307. package/dist/esm/mds-card.entry.js +1 -1
  308. package/dist/esm/mds-chip.entry.js +83 -28
  309. package/dist/esm/mds-details.entry.js +3 -3
  310. package/dist/esm/{mds-dropdown_2.entry.js → mds-dropdown.entry.js} +13 -890
  311. package/dist/esm/mds-entity.entry.js +5 -5
  312. package/dist/esm/mds-file-preview.entry.js +40 -7
  313. package/dist/esm/mds-file.entry.js +39 -8
  314. package/dist/esm/mds-filter-item.entry.js +3 -3
  315. package/dist/esm/mds-filter.entry.js +2 -2
  316. package/dist/esm/mds-header-bar.entry.js +1 -1
  317. package/dist/esm/mds-header.entry.js +5 -3
  318. package/dist/esm/mds-help.entry.js +4 -4
  319. package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
  320. package/dist/esm/mds-hr.entry.js +1 -1
  321. package/dist/esm/mds-img.entry.js +23 -7
  322. package/dist/esm/mds-input-field.entry.js +3 -3
  323. package/dist/esm/mds-input-range.entry.js +6 -5
  324. package/dist/esm/mds-input-select.entry.js +8 -8
  325. package/dist/esm/mds-input-switch.entry.js +9 -8
  326. package/dist/esm/mds-input-tip_2.entry.js +36 -12
  327. package/dist/esm/mds-input-upload.entry.js +159 -31
  328. package/dist/esm/mds-input.entry.js +44 -16
  329. package/dist/esm/mds-kpi-item.entry.js +6 -4
  330. package/dist/esm/mds-kpi.entry.js +2 -2
  331. package/dist/esm/mds-label.entry.js +33 -5
  332. package/dist/esm/mds-list-item.entry.js +2 -2
  333. package/dist/esm/mds-list.entry.js +2 -2
  334. package/dist/esm/mds-modal.entry.js +6 -4
  335. package/dist/esm/mds-note.entry.js +38 -3
  336. package/dist/esm/mds-notification.entry.js +4 -3
  337. package/dist/esm/mds-paginator-item.entry.js +5 -5
  338. package/dist/esm/mds-paginator.entry.js +3 -3
  339. package/dist/esm/mds-pref-animation.entry.js +9 -7
  340. package/dist/esm/mds-pref-consumption.entry.js +9 -7
  341. package/dist/esm/mds-pref-contrast.entry.js +9 -7
  342. package/dist/esm/mds-pref-language-item.entry.js +11 -4
  343. package/dist/esm/mds-pref-language.entry.js +855 -12
  344. package/dist/esm/mds-pref-theme.entry.js +14 -8
  345. package/dist/esm/mds-pref.entry.js +8 -4
  346. package/dist/esm/mds-price-table-features-cell.entry.js +1 -1
  347. package/dist/esm/mds-price-table-features-row.entry.js +1 -1
  348. package/dist/esm/mds-price-table-features.entry.js +1 -1
  349. package/dist/esm/mds-price-table-header.entry.js +1 -1
  350. package/dist/esm/mds-price-table-list-item.entry.js +1 -1
  351. package/dist/esm/mds-price-table-list.entry.js +4 -4
  352. package/dist/esm/mds-price-table.entry.js +1 -1
  353. package/dist/esm/mds-progress.entry.js +10 -4
  354. package/dist/esm/mds-push-notification.entry.js +87 -19
  355. package/dist/esm/mds-push-notifications.entry.js +1 -1
  356. package/dist/esm/mds-quote.entry.js +3 -2
  357. package/dist/esm/mds-separator.entry.js +2 -2
  358. package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
  359. package/dist/esm/mds-stepper-bar.entry.js +1 -1
  360. package/dist/esm/mds-tab-bar-item.entry.js +2 -2
  361. package/dist/esm/mds-tab-bar.entry.js +1 -1
  362. package/dist/esm/mds-tab_2.entry.js +2 -2
  363. package/dist/esm/mds-table-body.entry.js +1 -1
  364. package/dist/esm/mds-table-cell.entry.js +2 -2
  365. package/dist/esm/mds-table-footer.entry.js +1 -1
  366. package/dist/esm/mds-table-header-cell.entry.js +8 -8
  367. package/dist/esm/mds-table-header.entry.js +1 -1
  368. package/dist/esm/mds-table-row.entry.js +16 -3
  369. package/dist/esm/mds-table.entry.js +18 -3
  370. package/dist/esm/mds-text.entry.js +4 -2
  371. package/dist/esm/mds-toast.entry.js +8 -4
  372. package/dist/esm/mds-tooltip.entry.js +10 -11
  373. package/dist/esm/mds-url-view.entry.js +54 -3
  374. package/dist/esm/mds-usage.entry.js +3 -13
  375. package/dist/esm/mds-video-wall.entry.js +5 -5
  376. package/dist/esm/mds-zero.entry.js +2 -2
  377. package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js +1 -0
  378. package/dist/esm-es5/aria-ed9d415d.js +1 -0
  379. package/dist/esm-es5/file-extensions-97006435.js +1 -0
  380. package/dist/esm-es5/floating-ui.dom.esm-b6d2205c.js +1 -0
  381. package/dist/esm-es5/index-44fd80a1.js +1 -0
  382. package/dist/esm-es5/{keyboard-manager-f3d273fc.js → keyboard-manager-9f287ab7.js} +1 -1
  383. package/dist/esm-es5/loader.js +1 -1
  384. package/dist/esm-es5/locale-149207d6.js +6 -0
  385. package/dist/esm-es5/locale.it-94429e24.js +1 -0
  386. package/dist/esm-es5/magma-components.js +1 -1
  387. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  388. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  389. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  390. package/dist/esm-es5/mds-accordion.entry.js +1 -1
  391. package/dist/esm-es5/mds-author.entry.js +1 -1
  392. package/dist/esm-es5/mds-avatar.entry.js +1 -1
  393. package/dist/esm-es5/mds-badge.entry.js +1 -1
  394. package/dist/esm-es5/mds-banner.entry.js +1 -1
  395. package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
  396. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  397. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  398. package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
  399. package/dist/esm-es5/mds-button_3.entry.js +1 -1
  400. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  401. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  402. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  403. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  404. package/dist/esm-es5/mds-card.entry.js +1 -1
  405. package/dist/esm-es5/mds-chip.entry.js +1 -1
  406. package/dist/esm-es5/mds-details.entry.js +1 -1
  407. package/dist/esm-es5/mds-dropdown.entry.js +1 -0
  408. package/dist/esm-es5/mds-entity.entry.js +1 -1
  409. package/dist/esm-es5/mds-file-preview.entry.js +2 -2
  410. package/dist/esm-es5/mds-file.entry.js +3 -3
  411. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  412. package/dist/esm-es5/mds-filter.entry.js +1 -1
  413. package/dist/esm-es5/mds-header-bar.entry.js +1 -1
  414. package/dist/esm-es5/mds-header.entry.js +1 -1
  415. package/dist/esm-es5/mds-help.entry.js +1 -1
  416. package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
  417. package/dist/esm-es5/mds-hr.entry.js +1 -1
  418. package/dist/esm-es5/mds-img.entry.js +1 -1
  419. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  420. package/dist/esm-es5/mds-input-range.entry.js +1 -1
  421. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  422. package/dist/esm-es5/mds-input-switch.entry.js +1 -1
  423. package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
  424. package/dist/esm-es5/mds-input-upload.entry.js +1 -1
  425. package/dist/esm-es5/mds-input.entry.js +1 -1
  426. package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
  427. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  428. package/dist/esm-es5/mds-label.entry.js +1 -1
  429. package/dist/esm-es5/mds-list-item.entry.js +1 -1
  430. package/dist/esm-es5/mds-list.entry.js +1 -1
  431. package/dist/esm-es5/mds-modal.entry.js +1 -1
  432. package/dist/esm-es5/mds-note.entry.js +1 -1
  433. package/dist/esm-es5/mds-notification.entry.js +1 -1
  434. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  435. package/dist/esm-es5/mds-paginator.entry.js +1 -1
  436. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  437. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  438. package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
  439. package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
  440. package/dist/esm-es5/mds-pref-language.entry.js +1 -1
  441. package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
  442. package/dist/esm-es5/mds-pref.entry.js +1 -1
  443. package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
  444. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  445. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  446. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  447. package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
  448. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  449. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  450. package/dist/esm-es5/mds-progress.entry.js +1 -1
  451. package/dist/esm-es5/mds-push-notification.entry.js +1 -1
  452. package/dist/esm-es5/mds-push-notifications.entry.js +1 -1
  453. package/dist/esm-es5/mds-quote.entry.js +1 -1
  454. package/dist/esm-es5/mds-separator.entry.js +1 -1
  455. package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
  456. package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
  457. package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
  458. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  459. package/dist/esm-es5/mds-tab_2.entry.js +1 -1
  460. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  461. package/dist/esm-es5/mds-table-cell.entry.js +1 -1
  462. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  463. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  464. package/dist/esm-es5/mds-table-header.entry.js +1 -1
  465. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  466. package/dist/esm-es5/mds-table.entry.js +1 -1
  467. package/dist/esm-es5/mds-text.entry.js +1 -1
  468. package/dist/esm-es5/mds-toast.entry.js +1 -1
  469. package/dist/esm-es5/mds-tooltip.entry.js +1 -1
  470. package/dist/esm-es5/mds-url-view.entry.js +1 -1
  471. package/dist/esm-es5/mds-usage.entry.js +1 -1
  472. package/dist/esm-es5/mds-video-wall.entry.js +1 -1
  473. package/dist/esm-es5/mds-zero.entry.js +1 -1
  474. package/dist/hydrate/index.d.ts +6 -0
  475. package/dist/hydrate/index.js +3705 -5972
  476. package/dist/hydrate/index.mjs +3705 -5972
  477. package/dist/magma-components/magma-components.esm.js +1 -1
  478. package/dist/magma-components/magma-components.js +1 -1
  479. package/dist/magma-components/p-03c13bdf.system.entry.js +1 -0
  480. package/dist/magma-components/p-0492e275.entry.js +1 -0
  481. package/dist/magma-components/p-04c61fa1.system.entry.js +1 -0
  482. package/dist/magma-components/p-05bf15c7.entry.js +1 -0
  483. package/dist/magma-components/{p-5f0f0448.system.entry.js → p-07253a21.system.entry.js} +1 -1
  484. package/dist/magma-components/p-086c8147.entry.js +1 -0
  485. package/dist/magma-components/p-0b2a9068.entry.js +1 -0
  486. package/dist/magma-components/p-0b6b57fb.js +1 -0
  487. package/dist/magma-components/p-0b77bb1c.system.entry.js +1 -0
  488. package/dist/magma-components/p-0f3e17bc.js +1 -0
  489. package/dist/magma-components/{p-7d460c08.system.entry.js → p-0f6c6757.system.entry.js} +1 -1
  490. package/dist/magma-components/p-13c6c73b.entry.js +1 -0
  491. package/dist/magma-components/p-13ce8757.system.entry.js +1 -0
  492. package/dist/magma-components/p-1400e3c3.system.entry.js +1 -0
  493. package/dist/magma-components/p-1581b10e.system.entry.js +1 -0
  494. package/dist/magma-components/{p-8980cf86.system.entry.js → p-17d63927.system.entry.js} +1 -1
  495. package/dist/magma-components/{p-ae612034.system.entry.js → p-19114f13.system.entry.js} +1 -1
  496. package/dist/magma-components/{p-53f8a981.entry.js → p-19c55d3e.entry.js} +1 -1
  497. package/dist/magma-components/{p-5258907f.system.entry.js → p-1b436c7c.system.entry.js} +1 -1
  498. package/dist/magma-components/{p-2f7dd737.system.entry.js → p-1bb949c2.system.entry.js} +1 -1
  499. package/dist/magma-components/p-217aed60.system.entry.js +1 -0
  500. package/dist/magma-components/p-21b1acec.system.js +1 -0
  501. package/dist/magma-components/{p-f62b4856.entry.js → p-22954bd0.entry.js} +1 -1
  502. package/dist/magma-components/{p-67f8aea1.entry.js → p-23c0e5bb.entry.js} +1 -1
  503. package/dist/magma-components/p-247e25c9.entry.js +1 -0
  504. package/dist/magma-components/p-2547e1c5.entry.js +1 -0
  505. package/dist/magma-components/p-25602048.system.entry.js +1 -0
  506. package/dist/magma-components/{p-dbde7f2c.system.entry.js → p-27923d25.system.entry.js} +1 -1
  507. package/dist/magma-components/p-2a0bffc8.entry.js +1 -0
  508. package/dist/magma-components/p-2bedaf5f.system.entry.js +1 -0
  509. package/dist/magma-components/p-2d5135c7.entry.js +1 -0
  510. package/dist/magma-components/p-2d58b5b8.system.entry.js +1 -0
  511. package/dist/magma-components/{p-b4c84e8e.entry.js → p-2e3e7ae9.entry.js} +1 -1
  512. package/dist/magma-components/{p-12c9e7c1.system.entry.js → p-30326380.system.entry.js} +1 -1
  513. package/dist/magma-components/p-304b1738.entry.js +1 -0
  514. package/dist/magma-components/{p-c7267a25.system.entry.js → p-30671bb6.system.entry.js} +1 -1
  515. package/dist/magma-components/p-31ad7005.entry.js +1 -0
  516. package/dist/magma-components/p-3213bed3.js +1 -0
  517. package/dist/magma-components/{p-06bbdfbc.system.js → p-32f55263.system.js} +1 -1
  518. package/dist/magma-components/{p-3ebb87fd.system.entry.js → p-332ef4c5.system.entry.js} +1 -1
  519. package/dist/magma-components/p-340717b1.entry.js +1 -0
  520. package/dist/magma-components/{p-19ffbf29.system.entry.js → p-3545d28a.system.entry.js} +1 -1
  521. package/dist/magma-components/p-3759b1b2.system.js +6 -0
  522. package/dist/magma-components/{p-57e85f09.entry.js → p-3c4114a1.entry.js} +1 -1
  523. package/dist/magma-components/{p-e1ae3377.entry.js → p-3c7584e0.entry.js} +1 -1
  524. package/dist/magma-components/p-3d9b24ed.system.entry.js +1 -0
  525. package/dist/magma-components/p-3dcee09b.entry.js +1 -0
  526. package/dist/magma-components/p-413e1924.entry.js +8 -0
  527. package/dist/magma-components/{p-7ff9ee47.system.entry.js → p-41b0013f.system.entry.js} +1 -1
  528. package/dist/magma-components/p-42aaebea.entry.js +1 -0
  529. package/dist/magma-components/p-42c66e40.entry.js +1 -0
  530. package/dist/magma-components/{p-eba07611.system.entry.js → p-438c83a4.system.entry.js} +1 -1
  531. package/dist/magma-components/p-4509e5dd.entry.js +1 -0
  532. package/dist/magma-components/{p-8b576fd8.entry.js → p-46df472e.entry.js} +1 -1
  533. package/dist/magma-components/{p-12a6692f.entry.js → p-47044832.entry.js} +1 -1
  534. package/dist/magma-components/{p-1a2e5af9.entry.js → p-4a57c918.entry.js} +1 -1
  535. package/dist/magma-components/p-4d469a01.entry.js +1 -0
  536. package/dist/magma-components/{p-d41cdc56.entry.js → p-4e0c9d47.entry.js} +1 -1
  537. package/dist/magma-components/{p-d219007f.system.entry.js → p-4f52b15e.system.entry.js} +1 -1
  538. package/dist/magma-components/p-5100bf68.system.entry.js +1 -0
  539. package/dist/magma-components/p-55842900.entry.js +1 -0
  540. package/dist/magma-components/{p-8f8fd8f5.entry.js → p-5629c1f5.entry.js} +1 -1
  541. package/dist/magma-components/p-5818b17b.system.entry.js +1 -0
  542. package/dist/magma-components/p-5a2c6a26.system.entry.js +1 -0
  543. package/dist/magma-components/p-5af31a47.system.js +1 -0
  544. package/dist/magma-components/{p-0e54cbdd.entry.js → p-5d39c94f.entry.js} +1 -1
  545. package/dist/magma-components/{p-8c185de1.system.entry.js → p-5e063b6a.system.entry.js} +1 -1
  546. package/dist/magma-components/{p-32c2e662.system.entry.js → p-5fbe3d63.system.entry.js} +1 -1
  547. package/dist/magma-components/{p-eb1dcb87.system.entry.js → p-600f012f.system.entry.js} +1 -1
  548. package/dist/magma-components/{p-3013e2cb.entry.js → p-605913ba.entry.js} +1 -1
  549. package/dist/magma-components/p-60ab906d.entry.js +1 -0
  550. package/dist/magma-components/{p-945820db.system.entry.js → p-62ac240e.system.entry.js} +1 -1
  551. package/dist/magma-components/{p-00c6b918.system.entry.js → p-63e3f820.system.entry.js} +1 -1
  552. package/dist/magma-components/p-65ba0450.entry.js +1 -0
  553. package/dist/magma-components/p-6617f185.entry.js +1 -0
  554. package/dist/magma-components/p-665f05ca.system.entry.js +1 -0
  555. package/dist/magma-components/p-66ef6f68.system.entry.js +1 -0
  556. package/dist/magma-components/{p-d1f52b0b.system.js → p-6803cf8d.system.js} +1 -1
  557. package/dist/magma-components/p-694ac497.entry.js +1 -0
  558. package/dist/magma-components/p-6a2ec000.entry.js +1 -0
  559. package/dist/magma-components/p-6aed6b97.system.entry.js +1 -0
  560. package/dist/magma-components/p-6c4c3d44.system.entry.js +1 -0
  561. package/dist/magma-components/{p-f43e59d4.entry.js → p-6dc71639.entry.js} +1 -1
  562. package/dist/magma-components/{p-63e8bc17.system.entry.js → p-6f15b2d9.system.entry.js} +1 -1
  563. package/dist/magma-components/{p-7f235611.system.entry.js → p-71601583.system.entry.js} +1 -1
  564. package/dist/magma-components/p-759c9af3.entry.js +1 -0
  565. package/dist/magma-components/{p-b5f501d2.system.entry.js → p-782313bb.system.entry.js} +1 -1
  566. package/dist/magma-components/p-7a7220e5.entry.js +1 -0
  567. package/dist/magma-components/p-7ad5eeb3.system.entry.js +1 -0
  568. package/dist/magma-components/p-7affff90.system.entry.js +1 -0
  569. package/dist/magma-components/p-810ba60f.system.entry.js +1 -0
  570. package/dist/magma-components/{p-5ddef57f.entry.js → p-813176b0.entry.js} +1 -1
  571. package/dist/magma-components/p-84a3bc2b.system.entry.js +1 -0
  572. package/dist/magma-components/p-85aa8e05.js +1 -0
  573. package/dist/magma-components/p-85e7baee.entry.js +1 -0
  574. package/dist/magma-components/{p-20143ec9.entry.js → p-892e949c.entry.js} +1 -1
  575. package/dist/magma-components/p-893a87dc.system.entry.js +1 -0
  576. package/dist/magma-components/p-89f9e0d2.entry.js +1 -0
  577. package/dist/magma-components/{p-0349e303.system.entry.js → p-8fe9a0a2.system.entry.js} +1 -1
  578. package/dist/magma-components/p-917ba0e2.entry.js +1 -0
  579. package/dist/magma-components/p-94db8071.system.js +1 -0
  580. package/dist/magma-components/p-96afff9f.system.entry.js +1 -0
  581. package/dist/magma-components/p-96d07c9f.system.entry.js +1 -0
  582. package/dist/magma-components/p-96e60eca.system.entry.js +1 -0
  583. package/dist/magma-components/{p-c4b093c4.entry.js → p-9bd6657b.entry.js} +1 -1
  584. package/dist/magma-components/p-9bd9e612.system.entry.js +1 -0
  585. package/dist/magma-components/p-9c7039f0.entry.js +1 -0
  586. package/dist/magma-components/p-9d991391.entry.js +1 -0
  587. package/dist/magma-components/p-9df056cb.entry.js +1 -0
  588. package/dist/magma-components/p-a191a987.entry.js +1 -0
  589. package/dist/magma-components/{p-99678cdd.system.entry.js → p-a1f69741.system.entry.js} +1 -1
  590. package/dist/magma-components/{p-36c13a31.entry.js → p-a306ff28.entry.js} +1 -1
  591. package/dist/magma-components/p-a44d3db9.entry.js +1 -0
  592. package/dist/magma-components/p-a47aae12.entry.js +1 -0
  593. package/dist/magma-components/p-a4fc1b0b.entry.js +1 -0
  594. package/dist/magma-components/p-a557bad7.system.entry.js +1 -0
  595. package/dist/magma-components/p-a9432fee.system.entry.js +1 -0
  596. package/dist/magma-components/p-a9f8f986.system.entry.js +9 -0
  597. package/dist/magma-components/p-aa133f48.entry.js +1 -0
  598. package/dist/magma-components/p-aa24e213.system.entry.js +1 -0
  599. package/dist/magma-components/{p-e49f99c2.entry.js → p-aa8999ba.entry.js} +1 -1
  600. package/dist/magma-components/p-ac7403b5.system.js +1 -0
  601. package/dist/magma-components/{p-8321c0d3.entry.js → p-ac97dd43.entry.js} +1 -1
  602. package/dist/magma-components/p-ae0b6dcb.system.entry.js +1 -0
  603. package/dist/magma-components/{p-2a670d3c.system.entry.js → p-ae0c3e38.system.entry.js} +1 -1
  604. package/dist/magma-components/{p-8323a952.system.entry.js → p-aead7eab.system.entry.js} +1 -1
  605. package/dist/magma-components/p-b0868749.entry.js +1 -0
  606. package/dist/magma-components/p-b0bb702b.entry.js +1 -0
  607. package/dist/magma-components/p-b44f3e19.entry.js +1 -0
  608. package/dist/magma-components/{p-3d741487.entry.js → p-b458a7b7.entry.js} +1 -1
  609. package/dist/magma-components/p-b5551799.system.entry.js +1 -0
  610. package/dist/magma-components/p-b5a65fcd.system.js +1 -0
  611. package/dist/magma-components/p-b62d164b.system.entry.js +1 -0
  612. package/dist/magma-components/{p-efdb9fda.entry.js → p-b6cc1d20.entry.js} +1 -1
  613. package/dist/magma-components/p-b7889230.system.entry.js +1 -0
  614. package/dist/magma-components/{p-ec8975f3.entry.js → p-b8fcf897.entry.js} +1 -1
  615. package/dist/magma-components/{p-73ccc008.entry.js → p-bbe19d86.entry.js} +1 -1
  616. package/dist/magma-components/p-bd7c0f2b.entry.js +1 -0
  617. package/dist/magma-components/p-c0611d00.system.entry.js +1 -0
  618. package/dist/magma-components/{p-cd60481a.system.entry.js → p-c2291312.system.entry.js} +1 -1
  619. package/dist/magma-components/{p-0b471b37.system.entry.js → p-c2c1ca38.system.entry.js} +1 -1
  620. package/dist/magma-components/p-c310b41f.js +6 -0
  621. package/dist/magma-components/p-c3b57b65.entry.js +1 -0
  622. package/dist/magma-components/{p-f0bf8d7e.entry.js → p-c55796f6.entry.js} +1 -1
  623. package/dist/magma-components/p-c6616cf4.entry.js +1 -0
  624. package/dist/magma-components/p-c6f72257.entry.js +1 -0
  625. package/dist/magma-components/p-c7d97a3c.entry.js +1 -0
  626. package/dist/magma-components/p-c94628eb.system.js +2 -0
  627. package/dist/magma-components/p-d06b650f.entry.js +1 -0
  628. package/dist/magma-components/{p-bebaf8c9.system.entry.js → p-d239736c.system.entry.js} +1 -1
  629. package/dist/magma-components/p-d3f2a762.system.entry.js +1 -0
  630. package/dist/magma-components/p-d4a14ac6.entry.js +1 -0
  631. package/dist/magma-components/{p-adafaeb1.system.entry.js → p-d4ad6446.system.entry.js} +1 -1
  632. package/dist/magma-components/{p-5f3b296e.system.entry.js → p-d4f60172.system.entry.js} +1 -1
  633. package/dist/magma-components/p-d7fe5fb4.entry.js +1 -0
  634. package/dist/magma-components/p-dd0f6f83.entry.js +1 -0
  635. package/dist/magma-components/{p-0a4fcd1d.system.entry.js → p-dd7b49e7.system.entry.js} +1 -1
  636. package/dist/magma-components/p-ddb91a8e.system.entry.js +1 -0
  637. package/dist/magma-components/p-de21d32b.system.entry.js +1 -0
  638. package/dist/magma-components/p-dea5d36c.entry.js +1 -0
  639. package/dist/magma-components/{p-bf66db4f.entry.js → p-df55c1ea.entry.js} +1 -1
  640. package/dist/magma-components/{p-56132185.system.entry.js → p-e0288f0c.system.entry.js} +1 -1
  641. package/dist/magma-components/p-e03788d9.entry.js +1 -0
  642. package/dist/magma-components/p-e290055a.entry.js +18 -0
  643. package/dist/magma-components/p-e3423b24.entry.js +1 -0
  644. package/dist/magma-components/{p-d60d99ac.entry.js → p-e3b9a60f.entry.js} +1 -1
  645. package/dist/magma-components/p-e420031e.js +1 -0
  646. package/dist/magma-components/{p-ac5f1e42.system.entry.js → p-e5c3a802.system.entry.js} +1 -1
  647. package/dist/magma-components/p-e6e67992.entry.js +1 -0
  648. package/dist/magma-components/p-e82d486e.system.entry.js +18 -0
  649. package/dist/magma-components/p-e95f01d6.system.entry.js +1 -0
  650. package/dist/magma-components/{p-c2938231.system.entry.js → p-e9940be7.system.entry.js} +1 -1
  651. package/dist/magma-components/p-eab621a7.js +2 -0
  652. package/dist/magma-components/{p-9a878d34.entry.js → p-eae957b3.entry.js} +1 -1
  653. package/dist/magma-components/p-eb4bc264.system.entry.js +1 -0
  654. package/dist/magma-components/p-eb8bbb53.entry.js +1 -0
  655. package/dist/magma-components/{p-a09946ab.entry.js → p-edbaf4ab.entry.js} +1 -1
  656. package/dist/magma-components/p-ee536517.entry.js +1 -0
  657. package/dist/magma-components/{p-c2a42118.system.entry.js → p-eef53c2a.system.entry.js} +1 -1
  658. package/dist/magma-components/p-f0027ed8.system.entry.js +1 -0
  659. package/dist/magma-components/p-f00c93f4.js +1 -0
  660. package/dist/magma-components/p-f060e8cc.system.entry.js +1 -0
  661. package/dist/magma-components/p-f142ee72.entry.js +1 -0
  662. package/dist/magma-components/{p-efa3471a.entry.js → p-f1d7b5ea.entry.js} +1 -1
  663. package/dist/magma-components/{p-a5183c20.system.entry.js → p-f63148da.system.entry.js} +1 -1
  664. package/dist/magma-components/{p-44aaca66.system.entry.js → p-f94593f9.system.entry.js} +1 -1
  665. package/dist/magma-components/{p-c4cf09ea.system.entry.js → p-fa5fb4be.system.entry.js} +1 -1
  666. package/dist/magma-components/p-fc8bce99.system.entry.js +1 -0
  667. package/dist/magma-components/p-fe13fac9.system.entry.js +1 -0
  668. package/dist/magma-components/{p-12a225e3.system.entry.js → p-feadfe43.system.entry.js} +1 -1
  669. package/dist/magma-components/{p-bf242a75.system.entry.js → p-ffa94d0f.system.entry.js} +1 -1
  670. package/dist/stats.json +3575 -2712
  671. package/dist/types/common/aria.d.ts +3 -1
  672. package/dist/types/common/date.d.ts +1 -1
  673. package/dist/types/common/device.d.ts +2 -0
  674. package/dist/types/common/file.d.ts +2 -2
  675. package/dist/types/common/locale.d.ts +3 -1
  676. package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
  677. package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
  678. package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
  679. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
  680. package/dist/types/components/mds-avatar/mds-avatar.d.ts +1 -1
  681. package/dist/types/components/mds-badge/mds-badge.d.ts +2 -2
  682. package/dist/types/components/mds-banner/mds-banner.d.ts +3 -1
  683. package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
  684. package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +1 -1
  685. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +5 -1
  686. package/dist/types/components/mds-button/mds-button.d.ts +2 -2
  687. package/dist/types/components/mds-chip/mds-chip.d.ts +22 -7
  688. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +30 -4
  689. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +1 -1
  690. package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
  691. package/dist/types/components/mds-file/mds-file.d.ts +4 -5
  692. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +7 -4
  693. package/dist/types/components/mds-file-preview/meta/event-detail.d.ts +1 -1
  694. package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
  695. package/dist/types/components/mds-header/mds-header.d.ts +1 -1
  696. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +1 -1
  697. package/dist/types/components/mds-help/mds-help.d.ts +1 -1
  698. package/dist/types/components/mds-icon/services/icons-set.service.d.ts +20 -4
  699. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +1 -0
  700. package/dist/types/components/mds-img/mds-img.d.ts +3 -1
  701. package/dist/types/components/mds-input/mds-input.d.ts +6 -7
  702. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +1 -0
  703. package/dist/types/components/mds-input-field/mds-input-field.d.ts +5 -6
  704. package/dist/types/components/mds-input-range/mds-input-range.d.ts +1 -0
  705. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -4
  706. package/dist/types/components/mds-input-select/mds-input-select.d.ts +3 -3
  707. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +2 -1
  708. package/dist/types/components/mds-input-switch/meta/interfaces.d.ts +1 -1
  709. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +3 -1
  710. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +13 -10
  711. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +1 -1
  712. package/dist/types/components/mds-label/mds-label.d.ts +6 -3
  713. package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
  714. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +1 -2
  715. package/dist/types/components/mds-note/mds-note.d.ts +5 -1
  716. package/dist/types/components/mds-pref/mds-pref.d.ts +2 -0
  717. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +9 -8
  718. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +10 -9
  719. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +11 -10
  720. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +20 -15
  721. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +1 -1
  722. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +5 -4
  723. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -12
  724. package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -1
  725. package/dist/types/components/mds-progress/mds-progress.d.ts +2 -1
  726. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -2
  727. package/dist/types/components/mds-quote/mds-quote.d.ts +6 -1
  728. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +7 -0
  729. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +1 -1
  730. package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
  731. package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +1 -1
  732. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +1 -1
  733. package/dist/types/components/mds-table/mds-table.d.ts +1 -0
  734. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +1 -0
  735. package/dist/types/components/mds-table-header-cell/meta/types.d.ts +1 -1
  736. package/dist/types/components/mds-table-row/mds-table-row.d.ts +4 -0
  737. package/dist/types/components/mds-text/mds-text.d.ts +4 -3
  738. package/dist/types/components/mds-text/meta/types.d.ts +0 -1
  739. package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
  740. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +2 -2
  741. package/dist/types/components/mds-url-view/mds-url-view.d.ts +5 -1
  742. package/dist/types/components/mds-usage/mds-usage.d.ts +0 -2
  743. package/dist/types/components.d.ts +99 -117
  744. package/dist/types/dictionary/file-extensions.d.ts +1 -1
  745. package/dist/types/dictionary/text.d.ts +3 -1
  746. package/dist/types/dictionary/variant.d.ts +2 -1
  747. package/dist/types/event-detail/language.d.ts +1 -2
  748. package/dist/types/event-detail/preference.d.ts +2 -2
  749. package/dist/types/stencil-public-runtime.d.ts +6 -0
  750. package/dist/types/type/autocomplete.d.ts +1 -1
  751. package/dist/types/type/input.d.ts +3 -0
  752. package/dist/types/type/text.d.ts +2 -0
  753. package/dist/types/type/variant-file-format.d.ts +1 -1
  754. package/dist/types/type/variant.d.ts +2 -1
  755. package/loader/cdn.js +2 -0
  756. package/loader/index.cjs.js +2 -0
  757. package/loader/index.d.ts +24 -0
  758. package/loader/index.es2017.js +2 -0
  759. package/loader/index.js +3 -0
  760. package/loader/package.json +11 -0
  761. package/package.json +17 -13
  762. package/dist/cjs/file-0d013422.js +0 -154
  763. package/dist/cjs/file-extensions-b57dcf2c.js +0 -68
  764. package/dist/cjs/locale-c6c02a3a.js +0 -4796
  765. package/dist/collection/components/mds-input/meta/event-detail.js +0 -1
  766. package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.css +0 -28
  767. package/dist/collection/components/mds-pref-language-nav/mds-pref-language-nav.js +0 -118
  768. package/dist/collection/interface/input-value.js +0 -1
  769. package/dist/collection/type/language.js +0 -1
  770. package/dist/components/file.js +0 -212
  771. package/dist/components/mds-pref-language-nav.d.ts +0 -11
  772. package/dist/components/mds-pref-language-nav.js +0 -6
  773. package/dist/components/mds-pref-language-nav2.js +0 -936
  774. package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -11
  775. package/dist/esm/file-4e952d4d.js +0 -149
  776. package/dist/esm/file-extensions-e7320b03.js +0 -65
  777. package/dist/esm/locale-a730711f.js +0 -4794
  778. package/dist/esm-es5/_commonjsHelpers-e557d4a5.js +0 -1
  779. package/dist/esm-es5/aria-0e390d9c.js +0 -1
  780. package/dist/esm-es5/file-4e952d4d.js +0 -1
  781. package/dist/esm-es5/file-extensions-e7320b03.js +0 -1
  782. package/dist/esm-es5/floating-ui.dom.esm-f7b7f919.js +0 -1
  783. package/dist/esm-es5/index-f08bac5f.js +0 -1
  784. package/dist/esm-es5/locale-a730711f.js +0 -1
  785. package/dist/esm-es5/mds-dropdown_2.entry.js +0 -1
  786. package/dist/magma-components/p-00f83b1c.entry.js +0 -1
  787. package/dist/magma-components/p-02d1e968.entry.js +0 -1
  788. package/dist/magma-components/p-06adda46.system.entry.js +0 -1
  789. package/dist/magma-components/p-0d867719.entry.js +0 -1
  790. package/dist/magma-components/p-0e2ba962.entry.js +0 -1
  791. package/dist/magma-components/p-0fb85a5b.entry.js +0 -1
  792. package/dist/magma-components/p-19d5cfd1.system.entry.js +0 -1
  793. package/dist/magma-components/p-1a8bb922.system.entry.js +0 -1
  794. package/dist/magma-components/p-1c618541.entry.js +0 -1
  795. package/dist/magma-components/p-1ebc919c.system.entry.js +0 -1
  796. package/dist/magma-components/p-239398e3.entry.js +0 -1
  797. package/dist/magma-components/p-30c59b63.entry.js +0 -1
  798. package/dist/magma-components/p-348bfa69.system.entry.js +0 -1
  799. package/dist/magma-components/p-34b6dae4.entry.js +0 -1
  800. package/dist/magma-components/p-35010f4f.system.entry.js +0 -1
  801. package/dist/magma-components/p-369fc037.system.js +0 -2
  802. package/dist/magma-components/p-39379806.js +0 -1
  803. package/dist/magma-components/p-39f3c979.entry.js +0 -1
  804. package/dist/magma-components/p-3a1212f7.system.js +0 -1
  805. package/dist/magma-components/p-3b821237.entry.js +0 -1
  806. package/dist/magma-components/p-3bce2736.entry.js +0 -1
  807. package/dist/magma-components/p-3bd5921c.entry.js +0 -1
  808. package/dist/magma-components/p-3bd829b2.system.entry.js +0 -1
  809. package/dist/magma-components/p-3c7dd9e6.entry.js +0 -1
  810. package/dist/magma-components/p-3d6026a7.entry.js +0 -1
  811. package/dist/magma-components/p-40444810.entry.js +0 -1
  812. package/dist/magma-components/p-456e8f90.entry.js +0 -1
  813. package/dist/magma-components/p-45840cb9.js +0 -1
  814. package/dist/magma-components/p-4818acd8.entry.js +0 -1
  815. package/dist/magma-components/p-4852095e.system.entry.js +0 -1
  816. package/dist/magma-components/p-49457689.entry.js +0 -1
  817. package/dist/magma-components/p-498d8d1f.system.entry.js +0 -1
  818. package/dist/magma-components/p-4a21d75f.entry.js +0 -1
  819. package/dist/magma-components/p-4ba3ec43.entry.js +0 -1
  820. package/dist/magma-components/p-4bb672d5.system.entry.js +0 -1
  821. package/dist/magma-components/p-4cd1cddc.js +0 -1
  822. package/dist/magma-components/p-4cf59911.system.entry.js +0 -1
  823. package/dist/magma-components/p-5251fc6b.entry.js +0 -18
  824. package/dist/magma-components/p-53b343a8.js +0 -1
  825. package/dist/magma-components/p-56e687bd.entry.js +0 -1
  826. package/dist/magma-components/p-5958cf43.entry.js +0 -1
  827. package/dist/magma-components/p-5de2329f.entry.js +0 -1
  828. package/dist/magma-components/p-5ff768d2.system.entry.js +0 -1
  829. package/dist/magma-components/p-606200e3.entry.js +0 -1
  830. package/dist/magma-components/p-61fd38ea.system.entry.js +0 -1
  831. package/dist/magma-components/p-62358ead.entry.js +0 -1
  832. package/dist/magma-components/p-62bf3a83.system.entry.js +0 -1
  833. package/dist/magma-components/p-63f0d264.entry.js +0 -1
  834. package/dist/magma-components/p-66056cdc.system.js +0 -1
  835. package/dist/magma-components/p-663bb379.system.entry.js +0 -1
  836. package/dist/magma-components/p-66976b79.entry.js +0 -1
  837. package/dist/magma-components/p-66f540ac.system.entry.js +0 -1
  838. package/dist/magma-components/p-676db22b.entry.js +0 -1
  839. package/dist/magma-components/p-6810a806.system.entry.js +0 -1
  840. package/dist/magma-components/p-6c14d91c.entry.js +0 -1
  841. package/dist/magma-components/p-6e2784c9.entry.js +0 -1
  842. package/dist/magma-components/p-6eecbc9e.system.entry.js +0 -1
  843. package/dist/magma-components/p-71f86ae7.system.entry.js +0 -1
  844. package/dist/magma-components/p-728cf2dc.entry.js +0 -1
  845. package/dist/magma-components/p-763ed882.entry.js +0 -1
  846. package/dist/magma-components/p-7776a592.entry.js +0 -1
  847. package/dist/magma-components/p-7a41c057.system.entry.js +0 -1
  848. package/dist/magma-components/p-7cae0221.system.entry.js +0 -1
  849. package/dist/magma-components/p-7d19a7c6.entry.js +0 -1
  850. package/dist/magma-components/p-7d45974f.entry.js +0 -1
  851. package/dist/magma-components/p-7ff9abda.system.entry.js +0 -1
  852. package/dist/magma-components/p-82c83671.system.entry.js +0 -1
  853. package/dist/magma-components/p-846bafa4.system.js +0 -1
  854. package/dist/magma-components/p-85efbd11.entry.js +0 -1
  855. package/dist/magma-components/p-8a3e4d1f.system.entry.js +0 -1
  856. package/dist/magma-components/p-8ab85f10.entry.js +0 -1
  857. package/dist/magma-components/p-8c9bba00.system.entry.js +0 -1
  858. package/dist/magma-components/p-8ddbf6c1.system.entry.js +0 -1
  859. package/dist/magma-components/p-91391486.entry.js +0 -1
  860. package/dist/magma-components/p-91deec04.system.entry.js +0 -1
  861. package/dist/magma-components/p-934a4af6.system.entry.js +0 -18
  862. package/dist/magma-components/p-9381402f.entry.js +0 -1
  863. package/dist/magma-components/p-94bbfe16.entry.js +0 -1
  864. package/dist/magma-components/p-95e2abb6.js +0 -1
  865. package/dist/magma-components/p-9dfb1723.system.js +0 -1
  866. package/dist/magma-components/p-9f4b5a49.entry.js +0 -1
  867. package/dist/magma-components/p-9f80f36c.system.entry.js +0 -1
  868. package/dist/magma-components/p-9fefae6a.system.entry.js +0 -1
  869. package/dist/magma-components/p-a56a4fe4.entry.js +0 -1
  870. package/dist/magma-components/p-ac2a7c27.js +0 -1
  871. package/dist/magma-components/p-aebd1b47.entry.js +0 -1
  872. package/dist/magma-components/p-af75f100.entry.js +0 -1
  873. package/dist/magma-components/p-b3afbdcd.system.js +0 -1
  874. package/dist/magma-components/p-b3db90c1.entry.js +0 -1
  875. package/dist/magma-components/p-b435daa4.system.entry.js +0 -1
  876. package/dist/magma-components/p-b4395edb.system.entry.js +0 -1
  877. package/dist/magma-components/p-b4ce85d6.system.entry.js +0 -1
  878. package/dist/magma-components/p-b4ee4798.entry.js +0 -1
  879. package/dist/magma-components/p-b53e817c.system.entry.js +0 -1
  880. package/dist/magma-components/p-b6defcb6.js +0 -2
  881. package/dist/magma-components/p-b975c42a.js +0 -1
  882. package/dist/magma-components/p-bc867380.entry.js +0 -1
  883. package/dist/magma-components/p-bf08086c.system.entry.js +0 -1
  884. package/dist/magma-components/p-c6c8c32d.system.entry.js +0 -1
  885. package/dist/magma-components/p-c7343c40.system.entry.js +0 -9
  886. package/dist/magma-components/p-c852e0cb.entry.js +0 -8
  887. package/dist/magma-components/p-ca5f0f4d.entry.js +0 -1
  888. package/dist/magma-components/p-caf2dd9c.system.entry.js +0 -1
  889. package/dist/magma-components/p-cd9191a7.system.entry.js +0 -1
  890. package/dist/magma-components/p-d2cf0fd3.entry.js +0 -1
  891. package/dist/magma-components/p-dcc96bdb.entry.js +0 -1
  892. package/dist/magma-components/p-e203fbb0.system.entry.js +0 -1
  893. package/dist/magma-components/p-e249cc64.system.js +0 -1
  894. package/dist/magma-components/p-e307af8d.system.entry.js +0 -1
  895. package/dist/magma-components/p-e3b16a3f.entry.js +0 -1
  896. package/dist/magma-components/p-e72c4889.system.entry.js +0 -1
  897. package/dist/magma-components/p-e9042c7c.system.entry.js +0 -1
  898. package/dist/magma-components/p-eaade5d2.entry.js +0 -1
  899. package/dist/magma-components/p-ebfe7149.entry.js +0 -1
  900. package/dist/magma-components/p-ec231a39.system.entry.js +0 -1
  901. package/dist/magma-components/p-ee6d48f2.system.entry.js +0 -1
  902. package/dist/magma-components/p-f4bbd91e.system.entry.js +0 -1
  903. package/dist/magma-components/p-f855cdc0.entry.js +0 -1
  904. package/dist/types/components/mds-input/meta/event-detail.d.ts +0 -3
  905. package/dist/types/components/mds-pref-language-nav/mds-pref-language-nav.d.ts +0 -23
  906. package/dist/types/interface/input-value.d.ts +0 -4
  907. package/dist/types/type/language.d.ts +0 -2
@@ -0,0 +1 @@
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-44fd80a1.js";import{s as setAttributeIfEmpty}from"./aria-ed9d415d.js";import{K as KeyboardManager}from"./keyboard-manager-9f287ab7.js";import{c as cssDurationToMilliseconds}from"./unit-dc091397.js";import{b as autoPlacement,o as offset,f as flip,s as shift,d as arrow,c as computePosition,a as autoUpdate}from"./floating-ui.dom.esm-b6d2205c.js";var arrowSvg='<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n';var mdsDropdownCss='@tailwind utilities;\n\n/**\n * @prop --mds-dropdown-arrow-background: Sets the fill color of the arrow.\n * @prop --mds-dropdown-background: Sets the background-color of the dropdown.\n * @prop --mds-dropdown-backdrop-duration: Sets the transition duration of the backdrop, used by component\'s code too.\n * @prop --mds-dropdown-backdrop-z-indx: Sets the backdrop z-index, used by component\'s code too.\n * @prop --mds-dropdown-drop-shadow: Sets the drop-shadow of the dropdown.\n * @prop --mds-dropdown-mouseover-delay: Sets the delay duration of the component when the caller trigger mouseover event, it\'s used by the javascript code.\n * @prop --mds-dropdown-duration: Sets the duration of the dropdown animation.\n * @prop --mds-dropdown-ease: Sets the easing of the dropdown animation.\n * @prop --mds-dropdown-transform-from: Sets the from animation transform of the dropdown.\n * @prop --mds-dropdown-transform-to: Sets the to animation transform of the dropdown.\n * @prop --mds-dropdown-z-index: Sets the z-index of the component.\n */\n\n:host {\n\n --mds-dropdown-arrow-background: var(--mds-dropdown-background);\n --mds-dropdown-backdrop-duration: 200ms;\n --mds-dropdown-backdrop-z-index: var(--magma-backdrop-z-index, 3000);\n --mds-dropdown-background: rgb(var(--tone-neutral));\n --mds-dropdown-mouseover-delay: 0.5s;\n --mds-dropdown-drop-shadow-color: var(--tone-neutral-01, 0 0 0);\n --mds-dropdown-drop-shadow: drop-shadow(0 10px 8px rgb(var(--mds-dropdown-drop-shadow-color) / 0.05)) drop-shadow(0 4px 3px rgb(var(--mds-dropdown-drop-shadow-color) / 0.15)) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color) / 0.15));\n --mds-dropdown-duration: 0.5s;\n --mds-dropdown-ease: cubic-bezier(0.19, 1, 0.22, 1);\n --mds-dropdown-transform-from: scale(0.9) translateY(-3%);\n --mds-dropdown-transform-to: scale(1) translate(0, 0);\n --mds-dropdown-z-index: var(--magma-dropdown-z-index, 4000);\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1.5rem;\n opacity: 0;\n\n background-color: var(--mds-dropdown-background);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: grid;\n -webkit-filter: var(--mds-dropdown-drop-shadow);\n filter: var(--mds-dropdown-drop-shadow);\n pointer-events: none;\n position: fixed;\n -webkit-transform: var(--mds-dropdown-transform-from);\n transform: var(--mds-dropdown-transform-from);\n -webkit-transition-duration: var(--mds-dropdown-duration);\n transition-duration: var(--mds-dropdown-duration);\n -webkit-transition-property: opacity, -webkit-transform, -webkit-transform-origin;\n transition-property: opacity, -webkit-transform, -webkit-transform-origin;\n transition-property: opacity, transform, transform-origin;\n transition-property: opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;\n -webkit-transition-timing-function: var(--mds-dropdown-ease);\n transition-timing-function: var(--mds-dropdown-ease);\n z-index: var(--mds-dropdown-z-index);\n}\n\n:host( [visible]:not([visible="false"]) ){\n\n opacity: 1;\n\n pointer-events: auto;\n -webkit-transform: var(--mds-dropdown-transform-to);\n transform: var(--mds-dropdown-transform-to);\n}\n\n:host( [smooth]:not([smooth="false"]) ) {\n -webkit-transition-property: bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;\n transition-property: bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;\n transition-property: bottom, left, opacity, right, top, transform, transform-origin;\n transition-property: bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin;\n}\n\n.arrow{\n\n top: -1rem;\n\n display: -ms-flexbox;\n\n display: flex;\n fill: var(--mds-dropdown-arrow-background);\n pointer-events: none;\n position: fixed;\n -webkit-transition-duration: var(--mds-dropdown-duration);\n transition-duration: var(--mds-dropdown-duration);\n -webkit-transition-property: bottom, left, right, top, -webkit-transform, -webkit-transform-origin;\n transition-property: bottom, left, right, top, -webkit-transform, -webkit-transform-origin;\n transition-property: bottom, left, right, top, transform, transform-origin;\n transition-property: bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin;\n}\n\n:host( [arrow]:not([arrow="false"])[visible]:not([visible="false"]) ) .arrow {\n -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);\n transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);\n}\n\n:host( [arrow]:not([arrow="false"], [visible], [visible="true"])) .arrow {\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n::slotted( * ){\n\n z-index: 10;\n\n position: relative;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-dropdown-backdrop-duration: 0s;\n --mds-dropdown-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-dropdown-backdrop-duration: 0s;\n --mds-dropdown-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.05)) drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.3)) drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.3));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n \n --mds-dropdown-drop-shadow: drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.05)) drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.3)) drop-shadow(0 0 2px rgb(var(--tone-neutral-01) / 0.3));\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.05)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.3)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.3));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.05)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.3)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.3));\n }\n }\n}\n\n/* contrast + dark */\n\n@container style(--magma-pref-contrast: more) and style(--magma-pref-theme: dark) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.075)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45));\n }\n}\n\n@container style(--magma-pref-contrast: system) and style(--magma-pref-theme: dark) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.075)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45));\n }\n }\n}\n\n@container style(--magma-pref-contrast: system) and style(--magma-pref-theme: system) {\n\n @media (prefers-contrast: more) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-dropdown-drop-shadow: drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.075)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45)) drop-shadow(0 0 4px rgb(var(--tone-neutral-01) / 0.45));\n }\n }\n }\n}\n\n\n';var MdsDropdownStyle0=mdsDropdownCss;var MdsDropdown=function(){function t(t){var n=this;registerInstance(this,t);this.visibleEvent=createEvent(this,"mdsDropdownVisible",7);this.hiddenEvent=createEvent(this,"mdsDropdownHide",7);this.changedEvent=createEvent(this,"mdsDropdownChange",7);this.backdropBackgroundVisible="rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))";this.backdropBackgroundHidden="rgba(var(--magma-backdrop-color, 0 0 0) / 0)";this.backdropId="mds-dropdown-backdrop";this.km=new KeyboardManager;this.handleCloseDropdown=function(t){if(!n.visible){return}if(!n.host.contains(t.target)&&t.target!==n.caller){n.handleVisibility(false)}};this.handleVisibility=function(t){n.visible=t;n.changedEvent.emit({caller:n.caller,visible:n.visible});if(n.visible){n.visibleEvent.emit({caller:n.caller,visible:true});return}n.hiddenEvent.emit({caller:n.caller,visible:false});n.updatePosition()};this.callerOnClick=function(){n.handleVisibility(!n.visible)};this.callerOnMouseOver=function(){n.mouseoverTimer=setTimeout((function(){clearTimeout(n.mouseoverTimer);n.handleVisibility(true)}),cssDurationToMilliseconds(n.cssMouseOverDelayDuration))};this.closeDropdownMouseLeave=function(){n.handleVisibility(false);n.host.removeEventListener("mouseleave",n.closeDropdownMouseLeave.bind(n));n.host.addEventListener("mouseover",n.handleCloseDropdownMouseLeave.bind(n))};this.handleCloseDropdownMouseLeave=function(){n.host.removeEventListener("mouseover",n.handleCloseDropdownMouseLeave.bind(n));n.host.addEventListener("mouseleave",n.closeDropdownMouseLeave.bind(n))};this.arrowInset=function(t,n){var o=t.arrow;var r={bottom:"",left:"",right:"",top:""};if(o===undefined){return{}}switch(n){case"bottom":r.left=o.x!==null?"".concat(o.x,"px"):"";r.top="100%";break;case"left":r.right="100%";r.top=o.y!==null?"".concat(o.y,"px"):"";break;case"right":r.left="100%";r.top=o.y!==null?"".concat(o.y,"px"):"";break;case"top":r.left=o.x!==null?"".concat(o.x,"px"):"";r.top="";break}return r};this.arrowTransform=function(t){var o=n.arrow&&n.visible?"scale(1)":"scale(0)";switch(t){case"bottom":o="rotate(180deg) ".concat(o," translate(0, -100%)");break;case"left":o="rotate(-90deg) ".concat(o," translate(50%, -50%)");break;case"right":o="rotate(90deg) ".concat(o," translate(-50%, -50%)");break;case"top":o="rotate(0deg) ".concat(o," translate(0, 0)");break}return{transform:o}};this.arrowTransformOrigin=function(t){switch(t){case"bottom":return{transformOrigin:"center top"};case"left":return{transformOrigin:"right center"};case"right":return{transformOrigin:"left center"};case"top":return{transformOrigin:"center bottom"};default:return{transformOrigin:"center top"}}};this.updatePosition=function(){if(!n.caller)return;var t=new Array;var o={};if(n.shiftPadding){o.padding=n.shiftPadding}if(n.autoPlacement){t.push(autoPlacement())}if(n.offset){t.push(offset(n.offset))}if(!n.autoPlacement&&n.flip){t.push(flip(o))}if(n.shift){t.push(shift(o))}if(n.arrow){t.push(arrow({element:n.arrowEl,padding:n.arrowPadding}))}computePosition(n.caller,n.host,{middleware:t,placement:n.placement,strategy:n.strategy}).then((function(t){var o=t.x,r=t.y,e=t.placement,i=t.middlewareData;Object.assign(n.host.style,{left:"".concat(o,"px"),top:"".concat(r,"px")});var a={};var s={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(s){Object.assign(a,n.arrowTransform(s));Object.assign(a,n.arrowInset(i,s));Object.assign(a,n.arrowTransformOrigin(s));Object.assign(n.arrowEl.style,a)}}))};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(n.host);n.cssBackdropDuration=t.getPropertyValue("--mds-dropdown-backdrop-duration");n.cssBackdropZIndex=t.getPropertyValue("--mds-dropdown-backdrop-z-index");n.cssMouseOverDelayDuration=t.getPropertyValue("--mds-dropdown-mouseover-delay")};this.setInteractionBehaviour=function(){if(n.interaction==="none"){return}if(n.interaction==="click"){n.caller.addEventListener("click",n.callerOnClick.bind(n))}if(n.interaction==="mouseover"){n.caller.addEventListener("mouseover",n.callerOnMouseOver.bind(n));n.host.addEventListener("mouseover",n.handleCloseDropdownMouseLeave.bind(n))}};this.arrow=true;this.arrowPadding=24;this.autoPlacement=false;this.backdrop=false;this.flip=false;this.interaction="click";this.target=undefined;this.offset=24;this.placement="bottom";this.shift=true;this.shiftPadding=24;this.smooth=true;this.strategy="fixed";this.visible=false;this.zIndex=undefined}t.prototype.attachBackdrop=function(){var t=this;if(!this.backdropEl){this.backdropEl=document.createElement("div");this.backdropEl.className=this.backdropId;this.backdropEl.style.inset="0";this.backdropEl.style.pointerEvents="none";this.backdropEl.style.position="fixed";this.backdropEl.style.transition="background-color ".concat(this.cssBackdropDuration," ease-out");this.backdropEl.style.zIndex=this.cssBackdropZIndex}this.backdropEl.style.backgroundColor=this.backdropBackgroundHidden;document.body.appendChild(this.backdropEl);clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.style.backgroundColor=t.backdropBackgroundVisible}),1)};t.prototype.detachBackdrop=function(){var t=this;if(!this.backdropEl){return}this.backdropEl.style.backgroundColor="transparent";clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.remove()}),cssDurationToMilliseconds(this.cssBackdropDuration))};t.prototype.arrowChanged=function(){this.updatePosition()};t.prototype.arrowPaddingChanged=function(){this.updatePosition()};t.prototype.autoPlacementChanged=function(){this.updatePosition()};t.prototype.backdropChanged=function(t){if(!this.visible){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.flipChanged=function(){this.updatePosition()};t.prototype.offsetChanged=function(){this.updatePosition()};t.prototype.placementChanged=function(){this.updatePosition()};t.prototype.shiftChanged=function(){this.updatePosition()};t.prototype.shiftPaddingChanged=function(){this.updatePosition()};t.prototype.strategyChanged=function(){this.updatePosition()};t.prototype.visibleChanged=function(t){this.updatePosition();if(!this.backdrop){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.zIndexChanged=function(t){if(t){this.host.style.setProperty("z-index",t.toString())}};t.prototype.componentWillLoad=function(){Array.from(document.getElementsByClassName(this.backdropId)).forEach((function(t){t.remove()}));this.zIndexChanged(this.zIndex)};t.prototype.setAriaAttributes=function(){setAttributeIfEmpty(this.caller,"aria-haspopup","true");setAttributeIfEmpty(this.caller,"aria-controls",this.target);setAttributeIfEmpty(this.host,"role","menu");setAttributeIfEmpty(this.host,"aria-labelledby",this.target)};t.prototype.componentDidLoad=function(){var t=this;var n,o,r,e;this.updateCSSCustomProps();document.addEventListener("click",this.handleCloseDropdown);this.arrowEl=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.querySelector(".arrow");var i=(e=(r=(o=this.host.parentElement)===null||o===void 0?void 0:o.shadowRoot)===null||r===void 0?void 0:r.querySelector(this.target))!==null&&e!==void 0?e:this.host.getRootNode().querySelector(this.target);if(!i){throw Error("Target not found: ".concat(this.target))}this.caller=i;this.setAriaAttributes();this.km.addElement(this.host);this.km.attachEscapeBehavior((function(){return t.handleVisibility(false)}));this.backdropChanged(this.backdrop);this.updatePosition();this.setInteractionBehaviour();if(!this.cleanupAutoUpdate){this.cleanupAutoUpdate=autoUpdate(this.caller,this.host,this.updatePosition)}};t.prototype.disconnectedCallback=function(){this.detachBackdrop();this.km.detachEscapeBehavior();this.cleanupAutoUpdate=function(){return}};t.prototype.render=function(){return h(Host,{key:"aee79e7c76205417090673bbbe9d875065764eb3"},h("div",{key:"9b310fb9655866a581df3ecd043e24da86fabd6c",class:"arrow",innerHTML:arrowSvg}),h("slot",{key:"206e6aff41805e57c06fbccab2aa9ca595c312ae"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{arrow:["arrowChanged"],arrowPadding:["arrowPaddingChanged"],autoPlacement:["autoPlacementChanged"],backdrop:["backdropChanged"],flip:["flipChanged"],offset:["offsetChanged"],placement:["placementChanged"],shift:["shiftChanged"],shiftPadding:["shiftPaddingChanged"],strategy:["strategyChanged"],visible:["visibleChanged"],zIndex:["zIndexChanged"]}},enumerable:false,configurable:true});return t}();MdsDropdown.style=MdsDropdownStyle0;export{MdsDropdown as mds_dropdown};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-f08bac5f.js";var mdsEntityCss='@tailwind utilities;\n\n/**\n * @prop --mds-entity-background: The background-color of the entity\n * @prop --mds-entity-color: The color of the entity name\n * @prop --mds-entity-detail-color: The color of the text details\n * @prop --mds-entity-icon-background: The background-color of the icon\n * @prop --mds-entity-icon-color: The color of the icon\n * @prop --mds-entity-shadow: The box-shadow od the component\n */\n\n:host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-02));\n --mds-entity-detail-color: rgb(var(--tone-neutral-03));\n --mds-entity-icon-background: rgb(var(--label-blue-09));\n --mds-entity-icon-radius: 0.25rem;\n --mds-entity-icon-color: rgb(var(--label-blue-04));\n --mds-entity-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n gap: 0.5rem;\n border-radius: 0.5rem;\n padding: 0.5rem;\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-entity-background);\n -webkit-box-shadow: var(--mds-entity-shadow);\n box-shadow: var(--mds-entity-shadow);\n color: var(--mds-entity-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.spinner,\n.preview,\n.delete{\n\n width: 2.75rem;\n\n border-radius: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n}\n\n.spinner,\n.preview{\n\n aspect-ratio: 1/1;\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-entity-icon-background);\n border-radius: var(--mds-entity-icon-radius);\n display: -ms-inline-flexbox;\n display: inline-flex;\n fill: var(--mds-entity-icon-color);\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.preview {\n\n --mds-avatar-radius: var(--mds-entity-icon-radius);\n}\n\n.spinner {\n background-color: transparent;\n display: none;\n fill: var(--mds-entity-icon-color);\n}\n\n:host([await]:not([await="false"])) .spinner {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\nmds-spinner{\n\n height: 2.25rem;\n\n width: 2.25rem;\n}\n\n.infos{\n\n min-width: 0rem;\n\n gap: 0rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-pack: center;\n justify-content: center;\n white-space: nowrap;\n}\n\n.details{\n\n gap: 0.25rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n color: var(--mds-entity-detail-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n::slotted( [slot="action"] ){\n\n aspect-ratio: 1/1;\n\n width: 2.75rem;\n\n height: auto;\n}\n\n::slotted( * ){\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n}\n\n.title{\n\n min-width: 0rem;\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-entity-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-entity-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n';var MdsEntityStyle0=mdsEntityCss;var MdsEntity=function(){function n(n){registerInstance(this,n);this.await=undefined;this.icon=undefined;this.src=undefined;this.initials=undefined;this.tone=undefined;this.variant=undefined}n.prototype.checkAvatar=function(){var n=false;if(this.src!==undefined){n=true}if(this.icon!==undefined){n=true}if(this.initials!==undefined){n=true}if(this.await){return false}return n};n.prototype.componentWillLoad=function(){this.details=this.hostElement.querySelector('[slot="detail"]')!==null;this.actions=this.hostElement.querySelector('[slot="action"]')!==null};n.prototype.render=function(){return h(Host,{key:"01450fc640fd689dd077e452f1440bd2ca42b3fa"},h("div",{key:"2da1bfb8261436830c03c2e0ef2fc3f64601c86d",class:"spinner"},h("mds-spinner",{key:"7edcea6a4cd7acb38c55b0cdbb30c4380a499014",running:true})),this.checkAvatar()&&h("mds-avatar",{key:"30ffe987e664e045ea6c1209fdd364577cfb1968",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant}),h("div",{key:"0b514397256ab2f7007b1777b1f75f4ab04af6bd",class:"infos"},h("slot",{key:"734f2c4afc519b8d256ee7039d9961581f291016"}),this.details&&h("div",{key:"88e8b8f03c66e0dbf911faf08b9e89bc44b5d324",class:"details"},h("slot",{key:"68f396fd9453b47f6062f2b8c4dea7cd564b959b",name:"detail"}))),this.actions&&h("div",{key:"cc227d492271e5d1f1c5c4817ebfc68a1a28862f",class:"actions"},h("slot",{key:"0c2fc6b7bf1909a95b8094fd20c0c6a0ef89eff2",name:"action"})))};Object.defineProperty(n.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return n}();MdsEntity.style=MdsEntityStyle0;export{MdsEntity as mds_entity};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-44fd80a1.js";var mdsEntityCss='@tailwind utilities;\n\n/**\n * @prop --mds-entity-background: The background-color of the entity\n * @prop --mds-entity-color: The color of the entity name\n * @prop --mds-entity-detail-color: The color of the text details\n * @prop --mds-entity-icon-background: The background-color of the icon\n * @prop --mds-entity-icon-color: The color of the icon\n * @prop --mds-entity-shadow: The box-shadow od the component\n */\n\n:host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-02));\n --mds-entity-detail-color: rgb(var(--tone-neutral-03));\n --mds-entity-icon-background: rgb(var(--label-blue-09));\n --mds-entity-icon-radius: 0.25rem;\n --mds-entity-icon-color: rgb(var(--label-blue-04));\n --mds-entity-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n gap: 0.5rem;\n border-radius: 0.5rem;\n padding: 0.5rem;\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-entity-background);\n -webkit-box-shadow: var(--mds-entity-shadow);\n box-shadow: var(--mds-entity-shadow);\n color: var(--mds-entity-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.spinner,\n.preview,\n.delete{\n\n width: 2.75rem;\n\n border-radius: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n}\n\n.spinner,\n.preview{\n\n aspect-ratio: 1/1;\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-entity-icon-background);\n border-radius: var(--mds-entity-icon-radius);\n display: -ms-inline-flexbox;\n display: inline-flex;\n fill: var(--mds-entity-icon-color);\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.preview {\n\n --mds-avatar-radius: var(--mds-entity-icon-radius);\n}\n\n.spinner {\n background-color: transparent;\n display: none;\n fill: var(--mds-entity-icon-color);\n}\n\n:host([await]:not([await="false"])) .spinner {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\nmds-spinner{\n\n height: 2.25rem;\n\n width: 2.25rem;\n}\n\n.infos{\n\n min-width: 0rem;\n\n gap: 0rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-pack: center;\n justify-content: center;\n white-space: nowrap;\n}\n\n.details{\n\n gap: 0.25rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n color: var(--mds-entity-detail-color);\n display: -ms-flexbox;\n display: flex;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n::slotted( [slot="action"] ){\n\n aspect-ratio: 1/1;\n\n width: 2.75rem;\n\n height: auto;\n}\n\n::slotted( * ){\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n}\n\n.title{\n\n min-width: 0rem;\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n\n white-space: nowrap;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-entity-background: rgb(var(--tone-neutral));\n --mds-entity-color: rgb(var(--tone-neutral-01));\n --mds-entity-detail-color: rgb(var(--tone-neutral-02));\n --mds-entity-icon-background: rgb(var(--label-blue-08));\n --mds-entity-icon-color: rgb(var(--label-blue-03));\n --mds-entity-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-entity-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-entity-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n';var MdsEntityStyle0=mdsEntityCss;var MdsEntity=function(){function n(n){registerInstance(this,n);this.await=undefined;this.icon=undefined;this.src=undefined;this.initials=undefined;this.tone=undefined;this.variant=undefined}n.prototype.checkAvatar=function(){var n=false;if(this.src!==undefined){n=true}if(this.icon!==undefined){n=true}if(this.initials!==undefined){n=true}if(this.await){return false}return n};n.prototype.componentWillLoad=function(){this.details=this.hostElement.querySelector('[slot="detail"]')!==null;this.actions=this.hostElement.querySelector('[slot="action"]')!==null};n.prototype.render=function(){return h(Host,{key:"9391672c7ecfde903e03798d210760e52370c90b"},h("div",{key:"fab671cb638c283a8ea3648aee9c9188512e8fa0",class:"spinner"},h("mds-spinner",{key:"baed37a926e1f606b41fb85b24be7728f671ab54",running:true})),this.checkAvatar()&&h("mds-avatar",{key:"380ed5fdef281b9e9338e4beeecffa4ef9bae7b5",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant}),h("div",{key:"d876fe0ce1f53eec1cc1062e5c38b82d67b3bd89",class:"infos"},h("slot",{key:"949113bb0e3dbf092e6604358544630440a43740"}),this.details&&h("div",{key:"7635a1805fa615b2907e3b89fffa250db9b71dce",class:"details"},h("slot",{key:"a6b8ff76384000ebc4b1684b3b888d7dd60cafd3",name:"deuploadtail"}))),this.actions&&h("div",{key:"11c50375bc0e9ea56989d7549e95b99a6db191c7",class:"actions"},h("slot",{key:"653e308b14d27197b9c945269190030984ac2ebd",name:"action"})))};Object.defineProperty(n.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return n}();MdsEntity.style=MdsEntityStyle0;export{MdsEntity as mds_entity};
@@ -1,8 +1,8 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f08bac5f.js";import{m as miBaselineCancel}from"./cancel-8698c6fc.js";import{c as clsx}from"./clsx-297c1ffe.js";import{g as getExtensionInfos,a as getSuffix,c as getFormatsVariant}from"./file-4e952d4d.js";import"./file-extensions-e7320b03.js";import"./panorama-7a041ab0.js";
1
+ var __awaiter=this&&this.__awaiter||function(e,r,n,i){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,o){function l(e){try{t(i.next(e))}catch(e){o(e)}}function s(e){try{t(i["throw"](e))}catch(e){o(e)}}function t(e){e.done?n(e.value):a(e.value).then(l,s)}t((i=i.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(r){return t([e,r])}}function t(s){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,s[0]&&(n=0)),n)try{if(i=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=r.call(e,n)}catch(e){s=[6,e];a=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-44fd80a1.js";import{m as miBaselineCancel}from"./cancel-8698c6fc.js";import{c as clsx}from"./clsx-297c1ffe.js";import{f as fileDescriptionLocaleEl,a as fileDescriptionLocaleEn,b as fileDescriptionLocaleEs,c as fileDescriptionLocaleIt,g as getExtensionInfos,d as getSuffix,h as getFormatsVariant}from"./locale.it-94429e24.js";import{L as Locale}from"./locale-149207d6.js";import"./file-extensions-97006435.js";import"./panorama-7a041ab0.js";import"./_commonjsHelpers-bdec4bbd.js";
2
2
  /**
3
3
  * filesize
4
4
  *
5
5
  * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
6
6
  * @license BSD-3-Clause
7
7
  * @version 10.1.0
8
- */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function filesize(e,n){var r=n===void 0?{}:n,i=r.bits,a=i===void 0?false:i,o=r.pad,s=o===void 0?false:o,l=r.base,t=l===void 0?-1:l,c=r.round,v=c===void 0?2:c,b=r.locale,d=b===void 0?EMPTY:b,g=r.localeOptions,m=g===void 0?{}:g,f=r.separator,p=f===void 0?EMPTY:f,u=r.spacer,h=u===void 0?SPACE:u,w=r.symbols,k=w===void 0?{}:w,x=r.standard,y=x===void 0?EMPTY:x,E=r.output,I=E===void 0?STRING:E,B=r.fullform,T=B===void 0?false:B,N=r.fullforms,M=N===void 0?[]:N,P=r.exponent,R=P===void 0?-1:P,Y=r.roundingMethod,C=Y===void 0?ROUND:Y,D=r.precision,j=D===void 0?0:D;var O=R,F=Number(e),q=[],z=0,A=EMPTY;if(y===SI){t=10;y=JEDEC}else if(y===IEC||y===JEDEC){t=2}else if(t===2){y=IEC}else{t=10;y=JEDEC}var G=t===10?1e3:1024,_=T===true,K=F<0,U=Math[C];if(typeof e!=="bigint"&&isNaN(e)){throw new TypeError(INVALID_NUMBER)}if(typeof U!==FUNCTION){throw new TypeError(INVALID_ROUND)}if(K){F=-F}if(O===-1||isNaN(O)){O=Math.floor(Math.log(F)/Math.log(G));if(O<0){O=0}}if(O>8){if(j>0){j+=8-O}O=8}if(I===EXPONENT){return O}if(F===0){q[0]=0;A=q[1]=STRINGS.symbol[y][a?BITS:BYTES][O]}else{z=F/(t===2?Math.pow(2,O*10):Math.pow(1e3,O));if(a){z=z*8;if(z>=G&&O<8){z=z/G;O++}}var V=Math.pow(10,O>0?v:0);q[0]=U(z*V)/V;if(q[0]===G&&O<8&&R===-1){q[0]=1;O++}A=q[1]=t===10&&O===1?a?SI_KBIT:SI_KBYTE:STRINGS.symbol[y][a?BITS:BYTES][O]}if(K){q[0]=-q[0]}if(j>0){q[0]=q[0].toPrecision(j)}q[1]=k[q[1]]||q[1];if(d===true){q[0]=q[0].toLocaleString()}else if(d.length>0){q[0]=q[0].toLocaleString(d,m)}else if(p.length>0){q[0]=q[0].toString().replace(PERIOD,p)}if(s&&Number.isInteger(q[0])===false&&v>0){var J=p||PERIOD,Z=q[0].toString().split(J),L=Z[1]||EMPTY,H=L.length,X=v-H;q[0]="".concat(Z[0]).concat(J).concat(L.padEnd(H+X,ZERO))}if(_){q[1]=M[O]?M[O]:STRINGS.fullform[y][O]+(a?BIT:BYTE)+(q[0]===1?EMPTY:S)}return I===ARRAY?q:I===OBJECT?{value:q[0],symbol:q[1],exponent:O,unit:A}:q.join(h)}var mdsFilePreviewCss='@tailwind utilities;\n\n:host {\n\n --mds-file-preview-background-color: rgb(var(--tone-neutral));\n --mds-file-preview-border-radius: 0.5rem;\n --mds-file-preview-color: rgb(var(--tone-neutral-03));\n --mds-file-preview-icon-background: inherit;\n --mds-file-preview-icon-color: var(--mds-file-preview-color);\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-file-preview-background-color);\n border-radius: var(--mds-file-preview-border-radius);\n -webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n display: -ms-flexbox;\n display: flex;\n fill: var(--mds-file-preview-color);\n -ms-flex-pack: stretch;\n justify-content: stretch;\n position: relative;\n}\n\n.card{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n gap: 0.5rem;\n\n padding: 1rem;\n\n border-radius: var(--mds-file-preview-border-radius);\n display: grid;\n width: 100%;\n}\n\n.preview{\n\n aspect-ratio: 1/1;\n\n background-color: var(--mds-file-preview-icon-bacground);\n border-radius: 0.25rem;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-file-preview-color);\n fill: var(--mds-file-preview-icon-color);\n width: 100%;\n}\n\n.preview--image {\n -webkit-filter: brightness(0.975);\n filter: brightness(0.975);\n padding: 0 !important;\n}\n\n.preview--icon,\n.preview--status {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.preview--status{\n\n gap: 0.5rem;\n\n padding: 1rem;\n}\n\n.icon{\n\n height: 3rem;\n\n width: 3rem;\n}\n\n.message {\n text-align: center;\n}\n\n.action-delete {\n background-color: var(--mds-file-preview-background-color);\n fill: var(--mds-file-preview-color);\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n\n.infos{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.suffix {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.infos--has-file-size {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.file-name {\n\n --mds-text-line-clamp: 2;\n}\n\n:host([format="archive"]),\n:host([format="executable"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-amaranth-10));\n}\n\n:host([format="attachment"]) {\n\n --mds-file-preview-icon-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-icon-bacground: rgb(var(--tone-neutral-10));\n}\n\n:host([format="audio"]),\n:host([format="video"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n --mds-file-preview-color: rgb(var(--label-violet-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-violet-10));\n}\n\n:host([format="code"]),\n:host([format="data"]),\n:host([format="markup"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n --mds-file-preview-color: rgb(var(--label-yellow-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-yellow-10));\n}\n\n:host([format="document"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n --mds-file-preview-color: rgb(var(--label-orange-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orange-10));\n}\n\n:host([format="email"]),\n:host([format="text"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n --mds-file-preview-color: rgb(var(--label-blue-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-blue-10));\n}\n\n:host([format="image"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n --mds-file-preview-color: rgb(var(--label-green-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-green-10));\n}\n\n:host([format="slide"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n --mds-file-preview-color: rgb(var(--label-orchid-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-orchid-10));\n}\n\n:host([format="spreadsheet"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n --mds-file-preview-color: rgb(var(--label-lime-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-lime-10));\n}\n\n:host([format="vector"]) {\n\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n --mds-file-preview-color: rgb(var(--label-aqua-04));\n --mds-file-preview-icon-bacground: rgb(var(--label-aqua-10));\n}\n\n@tailwind utilities;\n\n:host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-09));\n --mds-file-preview-icon-color: rgb(var(--status-info-04));\n}\n\n:host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-09));\n --mds-file-preview-icon-color: rgb(var(--status-success-04));\n}\n\n:host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-09));\n --mds-file-preview-icon-color: rgb(var(--status-warning-04));\n}\n\n:host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-09));\n --mds-file-preview-icon-color: rgb(var(--status-error-04));\n}\n\n\n:host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n}\n\n:host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-09));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n}\n\n\n:host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-09));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n}\n\n:host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-09));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n}\n\n:host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-09));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n}\n\n:host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-09));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n}\n\n:host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-09));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n}\n\n:host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-09));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-04));\n}\n\n:host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-09));\n --mds-file-preview-icon-color: rgb(var(--label-sky-04));\n}\n\n:host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-09));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n}\n\n:host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-09));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n}\n\n@container style(--magma-pref-contrast: more) {\n :host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n }\n\n :host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n }\n\n :host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n }\n\n :host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n }\n\n\n :host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n }\n\n :host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n }\n\n\n :host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n }\n\n :host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n }\n\n :host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n }\n\n :host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n }\n\n :host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n }\n\n :host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-10));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-02));\n }\n\n :host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n }\n\n :host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n }\n\n :host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n }\n\n :host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n }\n\n :host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n }\n\n :host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n }\n\n\n :host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n }\n\n :host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n }\n\n\n :host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n }\n\n :host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n }\n\n :host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n }\n\n :host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n }\n\n :host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n }\n\n :host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--brand-maggioli-10));\n --mds-file-preview-icon-color: rgb(var(--brand-maggioli-02));\n }\n\n :host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n }\n\n :host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n }\n\n :host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background-color: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .preview {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .preview {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n\n';var MdsFilePreviewStyle0=mdsFilePreviewCss;var MdsFilePreview=function(){function e(e){var n=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.deletedEvent=createEvent(this,"mdsFileDelete",7);this.getDefaultDescription=function(){return getExtensionInfos(n.filename,n.suffix).description};this.onClickDeletedEvent=function(){n.deletedEvent.emit({target:n.host,filename:n.filename,extension:getSuffix(n.filename,n.suffix)})};this.onClickDownloadEvent=function(){n.downloadedEvent.emit({target:n.host,filename:n.filename,extension:getSuffix(n.filename,n.suffix)})};this.deletable=undefined;this.downloadable=undefined;this.description=undefined;this.filename=undefined;this.filesize=undefined;this.message=undefined;this.truncate="word";this.src=undefined;this.suffix=undefined;this.icon=undefined;this.variant=undefined;this.format=undefined}e.prototype.componentWillLoad=function(){this.format=getExtensionInfos(this.filename,this.suffix).format};e.prototype.componentDidLoad=function(){this.handleDownloadable(this.downloadable)};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format};e.prototype.handleDownloadable=function(e,n){var r;if(e===n)return;var i=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".card");if(e){i===null||i===void 0?void 0:i.addEventListener("click",this.onClickDownloadEvent);return}i===null||i===void 0?void 0:i.removeEventListener("click",this.onClickDownloadEvent)};e.prototype.render=function(){var e,n,r;return h(Host,{key:"3e22f95a410b9587d25c1360c3a83ba4fbb49265"},this.deletable&&h("mds-button",{key:"69ae6f4de44d37eb587c7c88cb854cd198f058b4",class:"action-delete",icon:miBaselineCancel,variant:"light",onClick:this.onClickDeletedEvent}),h("div",{key:"172674682f4e217dc3f385b420df9449b0ef686d",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src&&!this.message&&getExtensionInfos(this.filename,this.suffix).preview?h("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):h("div",{class:clsx("preview",!this.message?"preview--icon":"preview--status")},this.icon?h("mds-icon",{class:"icon",name:this.icon}):h("mds-icon",{class:"icon",name:getFormatsVariant(this.filename,this.suffix).icon}),this.message&&h("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),h("mds-text",{key:"1186dbc3b2e1efa2e3c89e2dd58709f3c0bd3d73",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),h("footer",{key:"3b31040cdfa14434df1dcbf39b09ba38ee36579e",class:clsx("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&h("mds-text",{key:"46b176c04ee6a7fe9d305caf18ec6fecdd75d5f7",class:"file-size",truncate:"word",typography:"caption",variant:"info"},filesize(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&h("mds-text",{key:"0b7c0caa88e1ddd877c8fb3b3c912eae7952ace9",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"8408bc6bf58b09c086140616adc2badd81a2142f",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:(e=this.description)!==null&&e!==void 0?e:this.getDefaultDescription()},getSuffix(this.filename,this.suffix)),!this.filesize&&h("mds-text",{key:"bf57ea88022bc53569b2453f2be6394ec086713e",class:"description",truncate:"word",typography:"caption",variant:"info",title:(n=this.description)!==null&&n!==void 0?n:this.getDefaultDescription()},(r=this.description)!==null&&r!==void 0?r:this.getDefaultDescription()))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:["handleFilename"],downloadable:["handleDownloadable"]}},enumerable:false,configurable:true});return e}();MdsFilePreview.style=MdsFilePreviewStyle0;export{MdsFilePreview as mds_file_preview};
8
+ */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function filesize(e,r){var n=r===void 0?{}:r,i=n.bits,a=i===void 0?false:i,o=n.pad,l=o===void 0?false:o,s=n.base,t=s===void 0?-1:s,c=n.round,v=c===void 0?2:c,b=n.locale,d=b===void 0?EMPTY:b,m=n.localeOptions,f=m===void 0?{}:m,g=n.separator,p=g===void 0?EMPTY:g,u=n.spacer,w=u===void 0?SPACE:u,h=n.symbols,k=h===void 0?{}:h,y=n.standard,x=y===void 0?EMPTY:y,E=n.output,I=E===void 0?STRING:E,T=n.fullform,B=T===void 0?false:T,N=n.fullforms,j=N===void 0?[]:N,D=n.exponent,P=D===void 0?-1:D,M=n.roundingMethod,O=M===void 0?ROUND:M,R=n.precision,Y=R===void 0?0:R;var C=P,_=Number(e),q=[],F=0,L=EMPTY;if(x===SI){t=10;x=JEDEC}else if(x===IEC||x===JEDEC){t=2}else if(t===2){x=IEC}else{t=10;x=JEDEC}var z=t===10?1e3:1024,G=B===true,A=_<0,K=Math[O];if(typeof e!=="bigint"&&isNaN(e)){throw new TypeError(INVALID_NUMBER)}if(typeof K!==FUNCTION){throw new TypeError(INVALID_ROUND)}if(A){_=-_}if(C===-1||isNaN(C)){C=Math.floor(Math.log(_)/Math.log(z));if(C<0){C=0}}if(C>8){if(Y>0){Y+=8-C}C=8}if(I===EXPONENT){return C}if(_===0){q[0]=0;L=q[1]=STRINGS.symbol[x][a?BITS:BYTES][C]}else{F=_/(t===2?Math.pow(2,C*10):Math.pow(1e3,C));if(a){F=F*8;if(F>=z&&C<8){F=F/z;C++}}var U=Math.pow(10,C>0?v:0);q[0]=K(F*U)/U;if(q[0]===z&&C<8&&P===-1){q[0]=1;C++}L=q[1]=t===10&&C===1?a?SI_KBIT:SI_KBYTE:STRINGS.symbol[x][a?BITS:BYTES][C]}if(A){q[0]=-q[0]}if(Y>0){q[0]=q[0].toPrecision(Y)}q[1]=k[q[1]]||q[1];if(d===true){q[0]=q[0].toLocaleString()}else if(d.length>0){q[0]=q[0].toLocaleString(d,f)}else if(p.length>0){q[0]=q[0].toString().replace(PERIOD,p)}if(l&&Number.isInteger(q[0])===false&&v>0){var V=p||PERIOD,J=q[0].toString().split(V),Z=J[1]||EMPTY,$=Z.length,H=v-$;q[0]="".concat(J[0]).concat(V).concat(Z.padEnd($+H,ZERO))}if(G){q[1]=j[C]?j[C]:STRINGS.fullform[x][C]+(a?BIT:BYTE)+(q[0]===1?EMPTY:S)}return I===ARRAY?q:I===OBJECT?{value:q[0],symbol:q[1],exponent:C,unit:L}:q.join(w)}var remove$3="Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης";var localeEl={remove:remove$3};var remove$2="Remove file from upload queue";var localeEn={remove:remove$2};var remove$1="Eliminar archivo de la cola de carga";var localeEs={remove:remove$1};var remove="Rimuovi file dalla coda di upload";var localeIt={remove:remove};var mdsFilePreviewCss='@tailwind utilities;\n\n:host {\n\n --mds-file-preview-background-color: rgb(var(--tone-neutral));\n --mds-file-preview-border-radius: 0.5rem;\n --mds-file-preview-color: rgb(var(--tone-neutral-03));\n --mds-file-preview-icon-background: inherit;\n --mds-file-preview-icon-color: var(--mds-file-preview-color);\n\n -ms-flex-align: stretch;\n\n align-items: stretch;\n background-color: var(--mds-file-preview-background-color);\n border-radius: var(--mds-file-preview-border-radius);\n -webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n display: -ms-flexbox;\n display: flex;\n fill: var(--mds-file-preview-color);\n -ms-flex-pack: stretch;\n justify-content: stretch;\n position: relative;\n}\n\n.card{\n\n grid-template-columns: repeat(auto-fit, minmax(1px, 100%));\n\n gap: 0.5rem;\n\n padding: 1rem;\n\n border-radius: var(--mds-file-preview-border-radius);\n display: grid;\n width: 100%;\n}\n\n.preview{\n\n aspect-ratio: 1/1;\n\n background-color: var(--mds-file-preview-icon-background);\n border-radius: 0.25rem;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-file-preview-color);\n fill: var(--mds-file-preview-icon-color);\n width: 100%;\n}\n\n.preview--image {\n -webkit-filter: brightness(0.975);\n filter: brightness(0.975);\n padding: 0 !important;\n}\n\n.preview--icon,\n.preview--status {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.preview--status{\n\n gap: 0.5rem;\n\n padding: 1rem;\n}\n\n.icon{\n\n height: 3rem;\n\n width: 3rem;\n}\n\n.message {\n text-align: center;\n}\n\n.action-delete {\n background-color: var(--mds-file-preview-background-color);\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n\n.infos{\n\n gap: 0.5rem;\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n}\n\n.suffix {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.infos--has-file-size {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.file-name {\n\n --mds-text-line-clamp: 2;\n}\n\n:host([format="archive"]),\n:host([format="executable"]) {\n\n --mds-file-preview-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n}\n\n:host([format="attachment"]) {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-04));\n --mds-file-preview-icon-background: rgb(var(--tone-neutral-10));\n --mds-file-preview-icon-color: rgb(var(--tone-neutral-04));\n}\n\n:host([format="audio"]),\n:host([format="video"]) {\n\n --mds-file-preview-color: rgb(var(--label-violet-04));\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n}\n\n:host([format="code"]),\n:host([format="data"]),\n:host([format="markup"]) {\n\n --mds-file-preview-color: rgb(var(--label-yellow-04));\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n}\n\n:host([format="document"]) {\n\n --mds-file-preview-color: rgb(var(--label-orange-04));\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n}\n\n:host([format="email"]),\n:host([format="text"]) {\n\n --mds-file-preview-color: rgb(var(--label-blue-04));\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n}\n\n:host([format="image"]) {\n\n --mds-file-preview-color: rgb(var(--label-green-04));\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n}\n\n:host([format="slide"]) {\n\n --mds-file-preview-color: rgb(var(--label-orchid-04));\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n}\n\n:host([format="spreadsheet"]) {\n\n --mds-file-preview-color: rgb(var(--label-lime-04));\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n}\n\n:host([format="vector"]) {\n\n --mds-file-preview-color: rgb(var(--label-aqua-04));\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n}\n\n@tailwind utilities;\n\n:host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-09));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-04));\n}\n\n:host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-09));\n --mds-file-preview-icon-color: rgb(var(--status-info-04));\n --mds-file-preview-color: rgb(var(--status-info-03));\n}\n\n:host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-09));\n --mds-file-preview-icon-color: rgb(var(--status-success-04));\n --mds-file-preview-color: rgb(var(--status-success-03));\n}\n\n:host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-09));\n --mds-file-preview-icon-color: rgb(var(--status-warning-04));\n --mds-file-preview-color: rgb(var(--status-warning-03));\n}\n\n:host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-09));\n --mds-file-preview-icon-color: rgb(var(--status-error-04));\n --mds-file-preview-color: rgb(var(--status-error-03));\n}\n\n\n:host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-09));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-04));\n --mds-file-preview-color: rgb(var(--label-amaranth-03));\n}\n\n:host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-09));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-04));\n --mds-file-preview-color: rgb(var(--label-aqua-03));\n}\n\n\n:host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-09));\n --mds-file-preview-icon-color: rgb(var(--label-blue-04));\n --mds-file-preview-color: rgb(var(--label-blue-03));\n}\n\n:host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-09));\n --mds-file-preview-icon-color: rgb(var(--label-green-04));\n --mds-file-preview-color: rgb(var(--label-green-03));\n}\n\n:host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-09));\n --mds-file-preview-icon-color: rgb(var(--label-lime-04));\n --mds-file-preview-color: rgb(var(--label-lime-03));\n}\n\n:host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-09));\n --mds-file-preview-icon-color: rgb(var(--label-orange-04));\n --mds-file-preview-color: rgb(var(--label-orange-03));\n}\n\n:host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-09));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-04));\n --mds-file-preview-color: rgb(var(--label-orchid-03));\n}\n\n:host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-09));\n --mds-file-preview-icon-color: rgb(var(--label-sky-04));\n --mds-file-preview-color: rgb(var(--label-sky-03));\n}\n\n:host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-09));\n --mds-file-preview-icon-color: rgb(var(--label-violet-04));\n --mds-file-preview-color: rgb(var(--label-violet-03));\n}\n\n:host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-09));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-04));\n --mds-file-preview-color: rgb(var(--label-yellow-03));\n}\n\n@container style(--magma-pref-contrast: more) {\n\n :host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-02));\n --mds-file-preview-color: rgb(var(--variant-primary-01));\n }\n\n :host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n --mds-file-preview-color: rgb(var(--status-info-01));\n }\n\n :host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n --mds-file-preview-color: rgb(var(--status-success-01));\n }\n\n :host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n --mds-file-preview-color: rgb(var(--status-warning-01));\n }\n\n :host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n --mds-file-preview-color: rgb(var(--status-error-01));\n }\n\n\n :host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n --mds-file-preview-color: rgb(var(--label-amaranth-01));\n }\n\n :host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n --mds-file-preview-color: rgb(var(--label-aqua-01));\n }\n\n\n :host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n --mds-file-preview-color: rgb(var(--label-blue-01));\n }\n\n :host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n --mds-file-preview-color: rgb(var(--label-green-01));\n }\n\n :host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n --mds-file-preview-color: rgb(var(--label-lime-01));\n }\n\n :host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n --mds-file-preview-color: rgb(var(--label-orange-01));\n }\n\n :host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n --mds-file-preview-color: rgb(var(--label-orchid-01));\n }\n\n :host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n --mds-file-preview-color: rgb(var(--label-sky-01));\n }\n\n :host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n --mds-file-preview-color: rgb(var(--label-violet-01));\n }\n\n :host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n --mds-file-preview-color: rgb(var(--label-yellow-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host( [variant="primary"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-02));\n --mds-file-preview-color: rgb(var(--variant-primary-01));\n }\n\n :host( [variant="info"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-info-10));\n --mds-file-preview-icon-color: rgb(var(--status-info-02));\n --mds-file-preview-color: rgb(var(--status-info-01));\n }\n\n :host( [variant="success"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-success-10));\n --mds-file-preview-icon-color: rgb(var(--status-success-02));\n --mds-file-preview-color: rgb(var(--status-success-01));\n }\n\n :host( [variant="warning"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-warning-10));\n --mds-file-preview-icon-color: rgb(var(--status-warning-02));\n --mds-file-preview-color: rgb(var(--status-warning-01));\n }\n\n :host( [variant="error"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--status-error-10));\n --mds-file-preview-icon-color: rgb(var(--status-error-02));\n --mds-file-preview-color: rgb(var(--status-error-01));\n }\n\n\n :host( [variant="amaranth"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-amaranth-10));\n --mds-file-preview-icon-color: rgb(var(--label-amaranth-02));\n --mds-file-preview-color: rgb(var(--label-amaranth-01));\n }\n\n :host( [variant="aqua"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-aqua-10));\n --mds-file-preview-icon-color: rgb(var(--label-aqua-02));\n --mds-file-preview-color: rgb(var(--label-aqua-01));\n }\n\n\n :host( [variant="blue"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-blue-10));\n --mds-file-preview-icon-color: rgb(var(--label-blue-02));\n --mds-file-preview-color: rgb(var(--label-blue-01));\n }\n\n :host( [variant="green"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-green-10));\n --mds-file-preview-icon-color: rgb(var(--label-green-02));\n --mds-file-preview-color: rgb(var(--label-green-01));\n }\n\n :host( [variant="lime"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-lime-10));\n --mds-file-preview-icon-color: rgb(var(--label-lime-02));\n --mds-file-preview-color: rgb(var(--label-lime-01));\n }\n\n :host( [variant="orange"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orange-10));\n --mds-file-preview-icon-color: rgb(var(--label-orange-02));\n --mds-file-preview-color: rgb(var(--label-orange-01));\n }\n\n :host( [variant="orchid"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-orchid-10));\n --mds-file-preview-icon-color: rgb(var(--label-orchid-02));\n --mds-file-preview-color: rgb(var(--label-orchid-01));\n }\n\n :host( [variant="sky"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-sky-10));\n --mds-file-preview-icon-color: rgb(var(--label-sky-02));\n --mds-file-preview-color: rgb(var(--label-sky-01));\n }\n\n :host( [variant="violet"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-violet-10));\n --mds-file-preview-icon-color: rgb(var(--label-violet-02));\n --mds-file-preview-color: rgb(var(--label-violet-01));\n }\n\n :host( [variant="yellow"][message] ) {\n\n --mds-file-preview-icon-background: rgb(var(--label-yellow-10));\n --mds-file-preview-icon-color: rgb(var(--label-yellow-02));\n --mds-file-preview-color: rgb(var(--label-yellow-01));\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .preview {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .preview {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n -webkit-box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-file-preview-color: rgb(var(--tone-neutral-01));\n\n -webkit-box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n\n box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);\n }\n }\n}\n\n\n';var MdsFilePreviewStyle0=mdsFilePreviewCss;var MdsFilePreview=function(){function e(e){var r=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.deletedEvent=createEvent(this,"mdsFileDelete",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});this.getDefaultKeyDescription=function(){return getExtensionInfos(r.filename,r.suffix).description};this.onClickDeletedEvent=function(){r.deletedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})};this.onClickDownloadEvent=function(){r.downloadedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})};this.language=undefined;this.deletable=undefined;this.downloadable=undefined;this.description=undefined;this.filename=undefined;this.filesize=undefined;this.message=undefined;this.truncate="word";this.src=undefined;this.suffix=undefined;this.icon=undefined;this.variant=undefined;this.format=undefined}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.componentWillLoad=function(){this.t.lang(this.host);this.format=getExtensionInfos(this.filename,this.suffix).format};e.prototype.componentDidLoad=function(){this.handleDownloadable(this.downloadable)};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format};e.prototype.handleDownloadable=function(e,r){var n;if(e===r)return;var i=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.querySelector(".card");if(e){i===null||i===void 0?void 0:i.addEventListener("click",this.onClickDownloadEvent);return}i===null||i===void 0?void 0:i.removeEventListener("click",this.onClickDownloadEvent)};e.prototype.render=function(){var e,r,n;return h(Host,{key:"a7dda123874919af0842b36f88f84de14e9dc85a"},this.deletable&&h("mds-button",{key:"7e36d34ac76dd06d03ea07ff5d1be37bbec7a19d",title:this.t.get("remove"),class:"action-delete",icon:miBaselineCancel,variant:"light",onClick:this.onClickDeletedEvent}),h("div",{key:"5f43336b09414404595fd96b0f885fea892401fd",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src&&!this.message&&getExtensionInfos(this.filename,this.suffix).preview?h("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):h("div",{class:clsx("preview",!this.message?"preview--icon":"preview--status")},this.icon?h("mds-icon",{class:"icon",name:this.icon}):h("mds-icon",{class:"icon",name:getFormatsVariant(this.filename,this.suffix).icon}),this.message&&h("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),h("mds-text",{key:"fb4b233d9d7b2c53404865013102c349b1b97400",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),h("footer",{key:"00b1ba509692b5de8dc88ce8d480b96a0c7c8344",class:clsx("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&h("mds-text",{key:"2f2db2eb690b1c47de551a05618c495382bedf1b",class:"file-size",truncate:"word",typography:"caption",variant:"info"},filesize(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&h("mds-text",{key:"4fe83b584365b422f7fa31c91ddfb5168a7a213b",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"e40bb98da46ed616f9c67223ecbed54d76a38454",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultKeyDescription())},getSuffix(this.filename,this.suffix)),!this.filesize&&h("mds-text",{key:"299abc283bed28e4410249d5140b1fbeec9b2eb5",class:"description",truncate:"word",typography:"caption",variant:"info",title:(r=this.description)!==null&&r!==void 0?r:this.t.get(this.getDefaultKeyDescription())},(n=this.description)!==null&&n!==void 0?n:this.t.get(this.getDefaultKeyDescription())))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:["handleFilename"],downloadable:["handleDownloadable"]}},enumerable:false,configurable:true});return e}();MdsFilePreview.style=MdsFilePreviewStyle0;export{MdsFilePreview as mds_file_preview};