@maggioli-design-system/magma 2.0.0-beta.5 → 2.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 (346) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/index.cjs.js +64 -22
  3. package/dist/cjs/{locale.it-D-rxNDkm.js → locale.it-CfUV2hxK.js} +13 -10
  4. package/dist/cjs/mds-avatar.cjs.entry.js +27 -32
  5. package/dist/cjs/mds-badge.cjs.entry.js +3 -2
  6. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -2
  7. package/dist/cjs/mds-bibliography.cjs.entry.js +4 -3
  8. package/dist/cjs/mds-button_3.cjs.entry.js +36 -10
  9. package/dist/cjs/mds-dropdown.cjs.entry.js +4 -3
  10. package/dist/cjs/mds-entity.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-file-preview.cjs.entry.js +18 -18
  12. package/dist/cjs/mds-file.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-header.cjs.entry.js +17 -8
  14. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-input-date-range.cjs.entry.js +7 -5
  16. package/dist/cjs/mds-input-select.cjs.entry.js +10 -8
  17. package/dist/cjs/mds-input-upload.cjs.entry.js +10 -6
  18. package/dist/cjs/mds-input.cjs.entry.js +4 -4
  19. package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
  20. package/dist/cjs/mds-keyboard.cjs.entry.js +6 -3
  21. package/dist/cjs/mds-mention.cjs.entry.js +3 -2
  22. package/dist/cjs/mds-notification.cjs.entry.js +11 -8
  23. package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -2
  24. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +3 -2
  25. package/dist/cjs/mds-push-notification-item.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-stepper-bar.cjs.entry.js +5 -3
  27. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +3 -2
  28. package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
  29. package/dist/cjs/mds-text.cjs.entry.js +2 -1
  30. package/dist/cjs/mds-toast.cjs.entry.js +9 -3
  31. package/dist/cjs/mds-tooltip.cjs.entry.js +4 -4
  32. package/dist/collection/common/file.js +13 -10
  33. package/dist/collection/components/mds-avatar/mds-avatar.js +27 -32
  34. package/dist/collection/components/mds-badge/mds-badge.js +3 -2
  35. package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +3 -2
  36. package/dist/collection/components/mds-bibliography/mds-bibliography.js +4 -3
  37. package/dist/collection/components/mds-button/mds-button.js +7 -6
  38. package/dist/collection/components/mds-dropdown/mds-dropdown.js +4 -3
  39. package/dist/collection/components/mds-file-preview/mds-file-preview.js +6 -7
  40. package/dist/collection/components/mds-header/mds-header.js +17 -8
  41. package/dist/collection/components/mds-icon/mds-icon.js +29 -4
  42. package/dist/collection/components/mds-icon/services/icons-set.service.js +47 -18
  43. package/dist/collection/components/mds-img/mds-img.js +3 -3
  44. package/dist/collection/components/mds-input/mds-input.js +4 -4
  45. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +7 -5
  46. package/dist/collection/components/mds-input-select/mds-input-select.js +10 -8
  47. package/dist/collection/components/mds-input-upload/mds-input-upload.js +10 -6
  48. package/dist/collection/components/mds-keyboard/mds-keyboard.js +6 -3
  49. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +8 -5
  50. package/dist/collection/components/mds-mention/mds-mention.js +3 -2
  51. package/dist/collection/components/mds-notification/mds-notification.js +11 -8
  52. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +3 -2
  53. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +3 -2
  54. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +5 -3
  55. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +3 -2
  56. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -2
  57. package/dist/collection/components/mds-text/mds-text.js +2 -1
  58. package/dist/collection/components/mds-toast/mds-toast.js +9 -3
  59. package/dist/collection/components/mds-tooltip/mds-tooltip.js +4 -4
  60. package/dist/collection/dictionary/icon.js +1 -1
  61. package/dist/components/index.js +1 -1
  62. package/dist/components/mds-accordion-item.js +1 -1
  63. package/dist/components/mds-accordion-timer-item.js +1 -1
  64. package/dist/components/mds-avatar-stack-item.js +1 -1
  65. package/dist/components/mds-avatar-stack.js +1 -1
  66. package/dist/components/mds-avatar.js +1 -1
  67. package/dist/components/mds-badge.js +1 -1
  68. package/dist/components/mds-banner.js +1 -1
  69. package/dist/components/mds-benchmark-bar.js +1 -1
  70. package/dist/components/mds-bibliography.js +1 -1
  71. package/dist/components/mds-breadcrumb-item.js +1 -1
  72. package/dist/components/mds-breadcrumb.js +1 -1
  73. package/dist/components/mds-button-dropdown.js +1 -1
  74. package/dist/components/mds-button.js +1 -1
  75. package/dist/components/mds-calendar-cell.js +1 -1
  76. package/dist/components/mds-calendar.js +1 -1
  77. package/dist/components/mds-chip.js +1 -1
  78. package/dist/components/mds-dropdown.js +1 -1
  79. package/dist/components/mds-entity.js +1 -1
  80. package/dist/components/mds-file-preview.js +1 -1
  81. package/dist/components/mds-file.js +3 -3
  82. package/dist/components/mds-filter-item.js +1 -1
  83. package/dist/components/mds-filter.js +1 -1
  84. package/dist/components/mds-header-bar.js +1 -1
  85. package/dist/components/mds-header.js +1 -1
  86. package/dist/components/mds-help.js +1 -1
  87. package/dist/components/mds-horizontal-scroll.js +1 -1
  88. package/dist/components/mds-icon.js +1 -1
  89. package/dist/components/mds-img.js +1 -1
  90. package/dist/components/mds-input-date-range-preselection.js +1 -1
  91. package/dist/components/mds-input-date-range.js +1 -1
  92. package/dist/components/mds-input-date.js +1 -1
  93. package/dist/components/mds-input-field.js +1 -1
  94. package/dist/components/mds-input-otp.js +1 -1
  95. package/dist/components/mds-input-range.js +1 -1
  96. package/dist/components/mds-input-select.js +1 -1
  97. package/dist/components/mds-input-switch.js +1 -1
  98. package/dist/components/mds-input-tip-item.js +1 -1
  99. package/dist/components/mds-input-upload.js +1 -1
  100. package/dist/components/mds-input.js +1 -1
  101. package/dist/components/mds-keyboard-key.js +1 -1
  102. package/dist/components/mds-keyboard.js +1 -1
  103. package/dist/components/mds-kpi-item.js +1 -1
  104. package/dist/components/mds-label.js +1 -1
  105. package/dist/components/mds-list-item.js +1 -1
  106. package/dist/components/mds-mention.js +1 -1
  107. package/dist/components/mds-modal.js +1 -1
  108. package/dist/components/mds-note.js +1 -1
  109. package/dist/components/mds-notification.js +1 -1
  110. package/dist/components/mds-paginator-item.js +1 -1
  111. package/dist/components/mds-paginator.js +1 -1
  112. package/dist/components/mds-policy-ai.js +1 -1
  113. package/dist/components/mds-pref-animation.js +1 -1
  114. package/dist/components/mds-pref-consumption.js +1 -1
  115. package/dist/components/mds-pref-contrast.js +1 -1
  116. package/dist/components/mds-pref-language-item.js +1 -1
  117. package/dist/components/mds-pref-language.js +1 -1
  118. package/dist/components/mds-pref-mode.js +1 -1
  119. package/dist/components/mds-pref-theme-item.js +1 -1
  120. package/dist/components/mds-pref-theme.js +1 -1
  121. package/dist/components/mds-pref.js +1 -1
  122. package/dist/components/mds-price-table-features-cell.js +1 -1
  123. package/dist/components/mds-price-table-features.js +1 -1
  124. package/dist/components/mds-price-table-list-item.js +1 -1
  125. package/dist/components/mds-progress.js +1 -1
  126. package/dist/components/mds-push-notification-item.js +1 -1
  127. package/dist/components/mds-push-notification.js +1 -1
  128. package/dist/components/mds-quote.js +1 -1
  129. package/dist/components/mds-radial-menu-item.js +1 -1
  130. package/dist/components/mds-radial-menu.js +1 -1
  131. package/dist/components/mds-radial-progress.js +1 -1
  132. package/dist/components/mds-status-bar.js +1 -1
  133. package/dist/components/mds-stepper-bar-item.js +1 -1
  134. package/dist/components/mds-stepper-bar.js +1 -1
  135. package/dist/components/mds-tab-bar-item.js +1 -1
  136. package/dist/components/mds-tab-item.js +1 -1
  137. package/dist/components/mds-table-header-cell.js +1 -1
  138. package/dist/components/mds-table-header.js +1 -1
  139. package/dist/components/mds-table-row.js +1 -1
  140. package/dist/components/mds-table.js +1 -1
  141. package/dist/components/mds-text.js +1 -1
  142. package/dist/components/mds-toast.js +1 -1
  143. package/dist/components/mds-tooltip.js +1 -1
  144. package/dist/components/mds-tree-item.js +1 -1
  145. package/dist/components/mds-url-view.js +1 -1
  146. package/dist/components/mds-usage.js +1 -1
  147. package/dist/components/{p-D3-GP4KF.js → p-6K9sFzLr.js} +1 -1
  148. package/dist/components/p-BBhbQT2f.js +1 -0
  149. package/dist/components/{p-B2A_hlV2.js → p-BFpRu7yD.js} +1 -1
  150. package/dist/components/p-BL63WAAq.js +8 -0
  151. package/dist/components/{p-Deh5Aia-.js → p-BShLEry5.js} +1 -1
  152. package/dist/components/{p-BJNK4p33.js → p-BYxxgEE_.js} +1 -1
  153. package/dist/components/p-BZFyAX-6.js +1 -0
  154. package/dist/components/p-BtMdmkID.js +1 -0
  155. package/dist/components/{p-Caksrfcd.js → p-ByaUOMp0.js} +1 -1
  156. package/dist/components/p-C1xZO_fq.js +1 -0
  157. package/dist/components/{p-cBZsPiMJ.js → p-C6Q4zFh6.js} +1 -1
  158. package/dist/components/{p-DLE5TNTp.js → p-CUQ7WIXh.js} +1 -1
  159. package/dist/components/p-Cd_8zD_I.js +1 -0
  160. package/dist/components/{p-DtxB7DYE.js → p-CnAeawmf.js} +1 -1
  161. package/dist/components/{p-Bt4xX5ww.js → p-DCrjf0F0.js} +1 -1
  162. package/dist/components/p-DlHJvYE7.js +1 -0
  163. package/dist/components/{p-BH3bWzRT.js → p-DlaJNPdd.js} +1 -1
  164. package/dist/components/{p-sqRs6oj4.js → p-DnrQaRnh.js} +1 -1
  165. package/dist/components/{p-CBLAz3_J.js → p-OPg_Naue.js} +1 -1
  166. package/dist/components/{p-C03KYHGv.js → p-RS4yyl41.js} +1 -1
  167. package/dist/components/{p--8aaJX-p.js → p-gv3eu44S.js} +1 -1
  168. package/dist/components/p-kff6xSdW.js +1 -0
  169. package/dist/components/p-pys1EQ60.js +1 -0
  170. package/dist/components/p-qketFgr0.js +1 -0
  171. package/dist/components/{p-B14Ci2fO.js → p-s2Gu6hY7.js} +1 -1
  172. package/dist/components/p-zml3K7nx.js +1 -0
  173. package/dist/documentation.json +5 -5
  174. package/dist/esm/index.js +64 -22
  175. package/dist/esm/{locale.it-Dj8sWDfj.js → locale.it-Cvxh7La5.js} +13 -10
  176. package/dist/esm/mds-avatar.entry.js +27 -32
  177. package/dist/esm/mds-badge.entry.js +3 -2
  178. package/dist/esm/mds-benchmark-bar.entry.js +3 -2
  179. package/dist/esm/mds-bibliography.entry.js +4 -3
  180. package/dist/esm/mds-button_3.entry.js +36 -10
  181. package/dist/esm/mds-dropdown.entry.js +4 -3
  182. package/dist/esm/mds-entity.entry.js +1 -1
  183. package/dist/esm/mds-file-preview.entry.js +18 -18
  184. package/dist/esm/mds-file.entry.js +1 -1
  185. package/dist/esm/mds-header.entry.js +17 -8
  186. package/dist/esm/mds-img.entry.js +3 -3
  187. package/dist/esm/mds-input-date-range.entry.js +7 -5
  188. package/dist/esm/mds-input-select.entry.js +10 -8
  189. package/dist/esm/mds-input-upload.entry.js +10 -6
  190. package/dist/esm/mds-input.entry.js +4 -4
  191. package/dist/esm/mds-keyboard-key.entry.js +8 -5
  192. package/dist/esm/mds-keyboard.entry.js +6 -3
  193. package/dist/esm/mds-mention.entry.js +3 -2
  194. package/dist/esm/mds-notification.entry.js +11 -8
  195. package/dist/esm/mds-pref-language-item.entry.js +3 -2
  196. package/dist/esm/mds-pref-theme-item.entry.js +3 -2
  197. package/dist/esm/mds-push-notification-item.entry.js +1 -1
  198. package/dist/esm/mds-stepper-bar.entry.js +5 -3
  199. package/dist/esm/mds-tab-bar-item.entry.js +3 -2
  200. package/dist/esm/mds-table-header-cell.entry.js +2 -2
  201. package/dist/esm/mds-text.entry.js +2 -1
  202. package/dist/esm/mds-toast.entry.js +9 -3
  203. package/dist/esm/mds-tooltip.entry.js +4 -4
  204. package/dist/esm-es5/index.js +37 -26
  205. package/dist/esm-es5/locale.it-Cvxh7La5.js +6 -0
  206. package/dist/esm-es5/mds-avatar.entry.js +4 -2
  207. package/dist/esm-es5/mds-badge.entry.js +2 -3
  208. package/dist/esm-es5/mds-benchmark-bar.entry.js +2 -3
  209. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  210. package/dist/esm-es5/mds-button_3.entry.js +14 -9
  211. package/dist/esm-es5/mds-dropdown.entry.js +2 -2
  212. package/dist/esm-es5/mds-entity.entry.js +1 -1
  213. package/dist/esm-es5/mds-file-preview.entry.js +13 -11
  214. package/dist/esm-es5/mds-file.entry.js +6 -6
  215. package/dist/esm-es5/mds-header.entry.js +8 -6
  216. package/dist/esm-es5/mds-img.entry.js +1 -1
  217. package/dist/esm-es5/mds-input-date-range.entry.js +5 -3
  218. package/dist/esm-es5/mds-input-select.entry.js +8 -6
  219. package/dist/esm-es5/mds-input-upload.entry.js +3 -1
  220. package/dist/esm-es5/mds-input.entry.js +3 -3
  221. package/dist/esm-es5/mds-keyboard-key.entry.js +3 -1
  222. package/dist/esm-es5/mds-keyboard.entry.js +4 -2
  223. package/dist/esm-es5/mds-mention.entry.js +1 -1
  224. package/dist/esm-es5/mds-notification.entry.js +4 -2
  225. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  226. package/dist/esm-es5/mds-pref-theme-item.entry.js +2 -2
  227. package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
  228. package/dist/esm-es5/mds-stepper-bar.entry.js +4 -4
  229. package/dist/esm-es5/mds-tab-bar-item.entry.js +3 -4
  230. package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
  231. package/dist/esm-es5/mds-text.entry.js +1 -1
  232. package/dist/esm-es5/mds-toast.entry.js +4 -2
  233. package/dist/esm-es5/mds-tooltip.entry.js +2 -2
  234. package/dist/hydrate/index.js +283 -174
  235. package/dist/hydrate/index.mjs +283 -174
  236. package/dist/magma-components/index.esm.js +1 -1
  237. package/dist/magma-components/magma-components.esm.js +1 -1
  238. package/dist/magma-components/p-005172ba.entry.js +1 -0
  239. package/dist/magma-components/{p-9ca7932d.system.entry.js → p-05fa40aa.system.entry.js} +5 -3
  240. package/dist/magma-components/p-0827a5bd.entry.js +1 -0
  241. package/dist/magma-components/{p-1a8c5086.system.entry.js → p-15c77a98.system.entry.js} +2 -2
  242. package/dist/magma-components/p-18473d2f.entry.js +1 -0
  243. package/dist/magma-components/{p-f0a168f4.system.entry.js → p-18667ae7.system.entry.js} +3 -3
  244. package/dist/magma-components/p-19adde9d.entry.js +1 -0
  245. package/dist/magma-components/p-2217a7be.entry.js +1 -0
  246. package/dist/magma-components/{p-5a7ead55.system.entry.js → p-2386f0d6.system.entry.js} +2 -2
  247. package/dist/magma-components/p-2b56fc14.entry.js +1 -0
  248. package/dist/magma-components/p-3f747a63.system.entry.js +1 -0
  249. package/dist/magma-components/p-3ff30842.system.entry.js +16 -0
  250. package/dist/magma-components/{p-be692266.system.entry.js → p-49b120cb.system.entry.js} +2 -2
  251. package/dist/magma-components/{p-6cd7cfe3.entry.js → p-4af76eb3.entry.js} +1 -1
  252. package/dist/magma-components/p-4ba6cb3f.entry.js +1 -0
  253. package/dist/magma-components/p-4cadbd49.entry.js +1 -0
  254. package/dist/magma-components/{p-7f2e3b74.system.entry.js → p-4f107cb2.system.entry.js} +31 -31
  255. package/dist/magma-components/p-4oB0woT9.system.js +6 -0
  256. package/dist/magma-components/p-518b55f3.entry.js +1 -0
  257. package/dist/magma-components/{p-960dc9b5.system.entry.js → p-5eec629c.system.entry.js} +4 -2
  258. package/dist/magma-components/{p-a8ec3080.system.entry.js → p-646034cb.system.entry.js} +1 -1
  259. package/dist/magma-components/{p-ce4e1a41.system.entry.js → p-677ab154.system.entry.js} +3 -1
  260. package/dist/magma-components/p-759133b3.entry.js +1 -0
  261. package/dist/magma-components/{p-cd5866c8.entry.js → p-7912f877.entry.js} +1 -1
  262. package/dist/magma-components/{p-3d8e63a2.system.entry.js → p-7d304fd4.system.entry.js} +3 -1
  263. package/dist/magma-components/{p-07fde74d.system.entry.js → p-7f6d708c.system.entry.js} +6 -4
  264. package/dist/magma-components/{p-6edc4f16.system.entry.js → p-88564e9b.system.entry.js} +1 -1
  265. package/dist/magma-components/{p-8103d4d4.system.entry.js → p-8b1abf81.system.entry.js} +12 -10
  266. package/dist/magma-components/p-8bbee38d.entry.js +1 -0
  267. package/dist/magma-components/{p-481008e9.system.entry.js → p-8bf680d6.system.entry.js} +5 -3
  268. package/dist/magma-components/{p-ce0ecc75.system.entry.js → p-8cb3a071.system.entry.js} +2 -2
  269. package/dist/magma-components/p-8f229eaf.entry.js +1 -0
  270. package/dist/magma-components/{p-3f7d3060.system.entry.js → p-94fa3396.system.entry.js} +14 -9
  271. package/dist/magma-components/{p-0ad3b4da.system.entry.js → p-9bbd4193.system.entry.js} +6 -6
  272. package/dist/magma-components/p-9caffe14.entry.js +1 -0
  273. package/dist/magma-components/p-9de1ac7f.entry.js +1 -0
  274. package/dist/magma-components/p-B6mQg6yQ.js +1 -0
  275. package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
  276. package/dist/magma-components/{p-CBam2PI8.system.js → p-DVd2EM-q.system.js} +29 -18
  277. package/dist/magma-components/{p-f1462410.system.entry.js → p-a15da479.system.entry.js} +3 -4
  278. package/dist/magma-components/{p-e05d2df8.system.entry.js → p-ab997243.system.entry.js} +2 -2
  279. package/dist/magma-components/{p-efe8d359.entry.js → p-aea6081f.entry.js} +1 -1
  280. package/dist/magma-components/{p-1c0a7e24.system.entry.js → p-b0539d61.system.entry.js} +7 -5
  281. package/dist/magma-components/{p-9d9a947b.entry.js → p-b35c26f8.entry.js} +2 -2
  282. package/dist/magma-components/p-cc033985.system.entry.js +14 -0
  283. package/dist/magma-components/{p-a3fc2ea4.system.entry.js → p-cd84a264.system.entry.js} +7 -5
  284. package/dist/magma-components/p-d0457835.entry.js +1 -0
  285. package/dist/magma-components/p-d64311e2.entry.js +1 -0
  286. package/dist/magma-components/{p-54b995c2.system.entry.js → p-da4dc390.system.entry.js} +1 -1
  287. package/dist/magma-components/p-dda7a33b.entry.js +1 -0
  288. package/dist/magma-components/p-e375c8b1.entry.js +1 -0
  289. package/dist/magma-components/p-e3fce8ca.entry.js +1 -0
  290. package/dist/magma-components/{p-9626eaff.system.entry.js → p-e9a16f22.system.entry.js} +3 -3
  291. package/dist/magma-components/p-ea0091b6.entry.js +1 -0
  292. package/dist/magma-components/{p-a3279a73.system.entry.js → p-ec00defc.system.entry.js} +6 -4
  293. package/dist/magma-components/p-edfb0d7a.entry.js +1 -0
  294. package/dist/magma-components/{p-0715a2cb.system.entry.js → p-f9d9cf7c.system.entry.js} +2 -3
  295. package/dist/magma-components/p-fa163e86.entry.js +1 -0
  296. package/dist/magma-components/p-fe19080a.entry.js +8 -0
  297. package/dist/magma-components/p-ff49fb35.entry.js +1 -0
  298. package/dist/stats.json +411 -411
  299. package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
  300. package/dist/types/components/mds-header/mds-header.d.ts +1 -0
  301. package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
  302. package/dist/types/components/mds-icon/services/icons-set.service.d.ts +10 -9
  303. package/dist/types/components/mds-input-select/mds-input-select.d.ts +1 -0
  304. package/dist/types/components/mds-toast/mds-toast.d.ts +1 -0
  305. package/package.json +11 -11
  306. package/dist/components/p-B9DJLgwr.js +0 -1
  307. package/dist/components/p-BouRLCYL.js +0 -1
  308. package/dist/components/p-CVgKDZPF.js +0 -1
  309. package/dist/components/p-CatD1iUY.js +0 -1
  310. package/dist/components/p-CbufYCNj.js +0 -1
  311. package/dist/components/p-Cehcn85x.js +0 -1
  312. package/dist/components/p-D8I1RblC.js +0 -1
  313. package/dist/components/p-DaI5QqNu.js +0 -1
  314. package/dist/components/p-Dj_oN194.js +0 -1
  315. package/dist/components/p-DmELzfvf.js +0 -1
  316. package/dist/components/p-sUKtonkE.js +0 -8
  317. package/dist/esm-es5/locale.it-Dj8sWDfj.js +0 -1
  318. package/dist/magma-components/p-03be5c0c.entry.js +0 -1
  319. package/dist/magma-components/p-0af8d821.entry.js +0 -1
  320. package/dist/magma-components/p-1780b8ba.entry.js +0 -1
  321. package/dist/magma-components/p-1dcfb13e.entry.js +0 -1
  322. package/dist/magma-components/p-241dbf61.entry.js +0 -1
  323. package/dist/magma-components/p-4297da23.system.entry.js +0 -1
  324. package/dist/magma-components/p-454c4774.entry.js +0 -1
  325. package/dist/magma-components/p-59de81ac.entry.js +0 -1
  326. package/dist/magma-components/p-5e43274a.system.entry.js +0 -15
  327. package/dist/magma-components/p-66ce2dee.entry.js +0 -1
  328. package/dist/magma-components/p-69d1b815.entry.js +0 -1
  329. package/dist/magma-components/p-75fcf1a4.entry.js +0 -1
  330. package/dist/magma-components/p-78fef00a.entry.js +0 -1
  331. package/dist/magma-components/p-7d317ff0.entry.js +0 -8
  332. package/dist/magma-components/p-7fc29447.entry.js +0 -1
  333. package/dist/magma-components/p-8b7fa8d7.entry.js +0 -1
  334. package/dist/magma-components/p-9b2ee3fe.entry.js +0 -1
  335. package/dist/magma-components/p-CSb7Iu19.js +0 -1
  336. package/dist/magma-components/p-a5ac5e0b.entry.js +0 -1
  337. package/dist/magma-components/p-a906a02f.system.entry.js +0 -16
  338. package/dist/magma-components/p-ac544ab1.entry.js +0 -1
  339. package/dist/magma-components/p-b23a6c83.entry.js +0 -1
  340. package/dist/magma-components/p-b9fecfd5.entry.js +0 -1
  341. package/dist/magma-components/p-c1fb2eb7.entry.js +0 -1
  342. package/dist/magma-components/p-c70d7159.entry.js +0 -1
  343. package/dist/magma-components/p-ddbdce09.entry.js +0 -1
  344. package/dist/magma-components/p-e3e893c4.entry.js +0 -1
  345. package/dist/magma-components/p-e4868ade.entry.js +0 -1
  346. package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
@@ -1 +1 @@
1
- import{p as i,H as t,d as s,h as e,c as o,t as a}from"./p-BhFTcUD0.js";import{a as n,c as r}from"./p-D8eZRaSQ.js";import{p as d}from"./p-CvIFS8oA.js";import{d as c}from"./p-CVgKDZPF.js";import{d as m}from"./p-CatD1iUY.js";import{d as h}from"./p-C58NKMEE.js";import{d as p}from"./p-B9DJLgwr.js";const l=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.changedEvent=s(this,"mdsPushNotificationChange",7),this.shownEvent=s(this,"mdsPushNotificationShow",7),this.hiddenEvent=s(this,"mdsPushNotificationHide",7),this.behavior="auto",this.introItem=i=>(i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,new Promise((t=>{setTimeout((()=>{i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,setTimeout((()=>{i.style.visibility="visible",i.style.position="relative",i.style.transform="translate(0, 0)",i.style.marginBottom="0px",t()}),r(this.cssItemsIntroDuration))}),15)}))),this.outroItem=i=>(this.slotNotifications.assignedNodes().length<=1&&this.hide(),i.style.marginBottom="0px",new Promise((t=>{setTimeout((()=>{i.style.marginBottom="0px",setTimeout((()=>{i.addEventListener("transitionend",(()=>{i.remove()})),i.style.removeProperty("transform"),i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,t()}),r(this.cssItemsOutroDuration))}),15)}))),this.handleSlotChange=()=>{const i=this.slotNotifications.assignedElements().map((i=>i)).filter((i=>""===i.style.visibility));0!==i.length&&(i.forEach((async i=>{i.addEventListener("mdsPushNotificationItemClose",(()=>this.outroItem(i))),await this.introItem(i)})),"auto"===this.behavior&&this.show())},this.updateCSSCustomProps=()=>{var i,t,s;const e=window.getComputedStyle(this.host);this.cssItemsGap=null!==(i=e.getPropertyValue("--mds-push-notification-items-gap"))&&void 0!==i?i:"0.5rem",this.cssItemsIntroDuration=null!==(t=e.getPropertyValue("--mds-push-notification-items-intro-delay"))&&void 0!==t?t:"200ms",this.cssItemsOutroDuration=null!==(s=e.getPropertyValue("--mds-push-notification-items-outro-delay"))&&void 0!==s?s:"0ms"},this.clear=()=>{this.slotNotifications.assignedElements().forEach((i=>this.outroItem(i))),this.hide()}}show(){return this.visible=!0,Promise.resolve()}hide(){return this.visible=void 0,Promise.resolve()}removeNotification(i){return Array.isArray(i)?i.forEach(this.outroItem):this.outroItem(i),Promise.resolve()}componentDidLoad(){this.updateCSSCustomProps(),this.slotNotifications.addEventListener("slotchange",this.handleSlotChange),this.handleSlotChange()}visibleChanged(i){return i?(this.changedEvent.emit({visible:!0}),void this.shownEvent.emit()):void 0===i?(this.changedEvent.emit({visible:!1}),void this.hiddenEvent.emit()):void(this.visible=void 0)}render(){return e(o,{key:"9d65944b4f7db0db6f32c2b74c5edc7b01ec9e8f","pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},e("mds-button",{key:"8df131a27d484c74819b222ec8891a87badb29bb",variant:"dark",onClick:this.clear,label:"Cancella notifiche"}),e("div",{key:"86d096874d7c4c4e0e5ad1ec83e912fa1ea65a19",class:"notifications",part:"notifications"},e("slot",{key:"fe487f0de52a2b0a2ba1c7f7a760936218b7bcd5",ref:i=>this.slotNotifications=i})))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-fadeout-delay:0s;--mds-push-notification-gap:calc(var(--spacing,.0025rem)*200);--mds-push-notification-items-intro-delay:.3s;--mds-push-notification-items-outro-delay:0s;--mds-push-notification-items-duration:.3s;--mds-push-notification-items-gap:var(--mds-push-notification-gap,calc(var(--spacing,.0025rem)*200));--mds-push-notification-items-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-push-notification-background:linear-gradient(90deg,#dcdcdc00 0%,#dcdcdcd9);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));background:var(--mds-push-notification-background);bottom:0;box-sizing:initial!important;display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*200);max-width:360px;min-width:calc(var(--spacing,.0025rem)*7200);overflow-x:hidden;padding:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*2400);position:fixed;right:0;top:0;transform:translate(100%);-webkit-transition-delay:var(--mds-push-notification-fadeout-delay,0s);transition-delay:var(--mds-push-notification-fadeout-delay,0s);-webkit-transition-duration:var(--duration-500,.5s);transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));z-index:var(--magma-notification-z-index,2000)}:host::-webkit-scrollbar{display:none}.notifications{display:flex;flex-direction:column-reverse;gap:var(--mds-push-notification-items-gap)}.notifications ::slotted(mds-push-notification-item){--mds-push-notification-item-duration:var(--mds-push-notification-items-duration,.3s);--mds-push-notification-item-timing-function:var(--mds-push-notification-items-timing-function);position:absolute;-webkit-transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));visibility:hidden}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(90deg,#0000 0%,#00000080 20%,#000000d9)}:host([visible]){transform:translate(0);transition-delay:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(90deg,#0000 0%,#00000080 20%,#000000d9)}}'}},[257,"mds-push-notification",{visible:[1540],behavior:[1],show:[64],hide:[64],removeNotification:[64]},void 0,{visible:[{visibleChanged:0}]}]),u=l,f=function(){"undefined"!=typeof customElements&&["mds-push-notification","mds-button","mds-icon","mds-spinner","mds-text"].forEach((i=>{switch(i){case"mds-push-notification":customElements.get(a(i))||customElements.define(a(i),l);break;case"mds-button":customElements.get(a(i))||c();break;case"mds-icon":customElements.get(a(i))||m();break;case"mds-spinner":customElements.get(a(i))||h();break;case"mds-text":customElements.get(a(i))||p()}}))};export{u as MdsPushNotification,f as defineCustomElement}
1
+ import{p as i,H as t,d as s,h as e,c as o,t as a}from"./p-BhFTcUD0.js";import{a as n,c as r}from"./p-D8eZRaSQ.js";import{p as d}from"./p-CvIFS8oA.js";import{d as c}from"./p-kff6xSdW.js";import{d as m}from"./p-qketFgr0.js";import{d as h}from"./p-C58NKMEE.js";import{d as p}from"./p-BZFyAX-6.js";const l=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.changedEvent=s(this,"mdsPushNotificationChange",7),this.shownEvent=s(this,"mdsPushNotificationShow",7),this.hiddenEvent=s(this,"mdsPushNotificationHide",7),this.behavior="auto",this.introItem=i=>(i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,new Promise((t=>{setTimeout((()=>{i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,setTimeout((()=>{i.style.visibility="visible",i.style.position="relative",i.style.transform="translate(0, 0)",i.style.marginBottom="0px",t()}),r(this.cssItemsIntroDuration))}),15)}))),this.outroItem=i=>(this.slotNotifications.assignedNodes().length<=1&&this.hide(),i.style.marginBottom="0px",new Promise((t=>{setTimeout((()=>{i.style.marginBottom="0px",setTimeout((()=>{i.addEventListener("transitionend",(()=>{i.remove()})),i.style.removeProperty("transform"),i.style.marginBottom=`-${i.offsetHeight+n(this.cssItemsGap)}px`,t()}),r(this.cssItemsOutroDuration))}),15)}))),this.handleSlotChange=()=>{const i=this.slotNotifications.assignedElements().map((i=>i)).filter((i=>""===i.style.visibility));0!==i.length&&(i.forEach((async i=>{i.addEventListener("mdsPushNotificationItemClose",(()=>this.outroItem(i))),await this.introItem(i)})),"auto"===this.behavior&&this.show())},this.updateCSSCustomProps=()=>{var i,t,s;const e=window.getComputedStyle(this.host);this.cssItemsGap=null!==(i=e.getPropertyValue("--mds-push-notification-items-gap"))&&void 0!==i?i:"0.5rem",this.cssItemsIntroDuration=null!==(t=e.getPropertyValue("--mds-push-notification-items-intro-delay"))&&void 0!==t?t:"200ms",this.cssItemsOutroDuration=null!==(s=e.getPropertyValue("--mds-push-notification-items-outro-delay"))&&void 0!==s?s:"0ms"},this.clear=()=>{this.slotNotifications.assignedElements().forEach((i=>this.outroItem(i))),this.hide()}}show(){return this.visible=!0,Promise.resolve()}hide(){return this.visible=void 0,Promise.resolve()}removeNotification(i){return Array.isArray(i)?i.forEach(this.outroItem):this.outroItem(i),Promise.resolve()}componentDidLoad(){this.updateCSSCustomProps(),this.slotNotifications.addEventListener("slotchange",this.handleSlotChange),this.handleSlotChange()}visibleChanged(i){return i?(this.changedEvent.emit({visible:!0}),void this.shownEvent.emit()):void 0===i?(this.changedEvent.emit({visible:!1}),void this.hiddenEvent.emit()):void(this.visible=void 0)}render(){return e(o,{key:"9d65944b4f7db0db6f32c2b74c5edc7b01ec9e8f","pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},e("mds-button",{key:"8df131a27d484c74819b222ec8891a87badb29bb",variant:"dark",onClick:this.clear,label:"Cancella notifiche"}),e("div",{key:"86d096874d7c4c4e0e5ad1ec83e912fa1ea65a19",class:"notifications",part:"notifications"},e("slot",{key:"fe487f0de52a2b0a2ba1c7f7a760936218b7bcd5",ref:i=>this.slotNotifications=i})))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-push-notification-fadeout-delay:0s;--mds-push-notification-gap:calc(var(--spacing,.0025rem)*200);--mds-push-notification-items-intro-delay:.3s;--mds-push-notification-items-outro-delay:0s;--mds-push-notification-items-duration:.3s;--mds-push-notification-items-gap:var(--mds-push-notification-gap,calc(var(--spacing,.0025rem)*200));--mds-push-notification-items-timing-function:var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1));--mds-push-notification-background:linear-gradient(90deg,#dcdcdc00 0%,#dcdcdcd9);-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));background:var(--mds-push-notification-background);bottom:0;box-sizing:initial!important;display:flex;flex-direction:column;gap:calc(var(--spacing,.0025rem)*200);max-width:360px;min-width:calc(var(--spacing,.0025rem)*7200);overflow-x:hidden;padding:calc(var(--spacing,.0025rem)*400);padding-left:calc(var(--spacing,.0025rem)*2400);position:fixed;right:0;top:0;transform:translate(100%);-webkit-transition-delay:var(--mds-push-notification-fadeout-delay,0s);transition-delay:var(--mds-push-notification-fadeout-delay,0s);-webkit-transition-duration:var(--duration-500,.5s);transition-duration:var(--duration-500,.5s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));z-index:var(--magma-notification-z-index,2000)}:host::-webkit-scrollbar{display:none}.notifications{display:flex;flex-direction:column-reverse;gap:var(--mds-push-notification-items-gap)}.notifications ::slotted(mds-push-notification-item){--mds-push-notification-item-duration:var(--mds-push-notification-items-duration,.3s);--mds-push-notification-item-timing-function:var(--mds-push-notification-items-timing-function);position:absolute;-webkit-transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));transform:translate(calc(100% + calc(var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)) + var(--mds-push-notification-gap,calc(var(--spacing,.0025rem) * 200)))));visibility:hidden}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(90deg,#0000 0%,#00000080 20%,#000000d9)}:host([visible]){transform:translate(0);transition-delay:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-push-notification-background:linear-gradient(90deg,#0000 0%,#00000080 20%,#000000d9)}}'}},[257,"mds-push-notification",{visible:[1540],behavior:[1],show:[64],hide:[64],removeNotification:[64]},void 0,{visible:[{visibleChanged:0}]}]),u=l,f=function(){"undefined"!=typeof customElements&&["mds-push-notification","mds-button","mds-icon","mds-spinner","mds-text"].forEach((i=>{switch(i){case"mds-push-notification":customElements.get(a(i))||customElements.define(a(i),l);break;case"mds-button":customElements.get(a(i))||c();break;case"mds-icon":customElements.get(a(i))||m();break;case"mds-spinner":customElements.get(a(i))||h();break;case"mds-text":customElements.get(a(i))||p()}}))};export{u as MdsPushNotification,f as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as a,c as s,t as o}from"./p-BhFTcUD0.js";import{p as r}from"./p-CvIFS8oA.js";import{d}from"./p-B9DJLgwr.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.typography="h3",this.tag="h3"}render(){return a(s,{key:"cfb336faa76b4ab2a68b2d8ca9dc75edfe55aeb6","pref-contrast":r.state.contrast},a("mds-text",{key:"117265de0b62d6e7bfcc6126eb7712a93bba5153",class:"open-quote",tag:"div",typography:this.typography},a("span",{key:"7a8dc8cf4e993d66cfb006bf6208e21ea08e4098"},a("i",{key:"82d9b40c020e8f35a3bc1ba54c2494b5ba5f4991"},"❝ "))),a("div",{key:"87584eea395128b4d65437b575cefb66c9a93891",class:"quote"},a("mds-text",{key:"d630290e2eb5408ed612b3268b92355bcc49da47",tag:this.tag,typography:this.typography},a("i",{key:"6f26b293a426f5ab93873cb46a8abee7c52429fb"},a("slot",{key:"a09ce2ef7bfaa42a21be184d3aa2fc4994509d3a"}),a("span",{key:"c0d0181b85d0d033f0ef00522792675379b42ac1"}," ❞"))),a("slot",{key:"00f4fcf39ffd58d65a7bca5be6ddf04695b0a0fe",name:"author"})))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:inline-flex}.open-quote{flex-shrink:0}.quote{display:grid;gap:calc(var(--spacing,.0025rem)*400);-webkit-user-select:all;user-select:all}span{-webkit-user-select:none;user-select:none}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"}},[257,"mds-quote",{typography:[1],tag:[1]}]),n=c,i=function(){"undefined"!=typeof customElements&&["mds-quote","mds-text"].forEach((e=>{switch(e){case"mds-quote":customElements.get(o(e))||customElements.define(o(e),c);break;case"mds-text":customElements.get(o(e))||d()}}))};export{n as MdsQuote,i as defineCustomElement}
1
+ import{p as e,H as t,h as a,c as s,t as o}from"./p-BhFTcUD0.js";import{p as r}from"./p-CvIFS8oA.js";import{d}from"./p-BZFyAX-6.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.typography="h3",this.tag="h3"}render(){return a(s,{key:"cfb336faa76b4ab2a68b2d8ca9dc75edfe55aeb6","pref-contrast":r.state.contrast},a("mds-text",{key:"117265de0b62d6e7bfcc6126eb7712a93bba5153",class:"open-quote",tag:"div",typography:this.typography},a("span",{key:"7a8dc8cf4e993d66cfb006bf6208e21ea08e4098"},a("i",{key:"82d9b40c020e8f35a3bc1ba54c2494b5ba5f4991"},"❝ "))),a("div",{key:"87584eea395128b4d65437b575cefb66c9a93891",class:"quote"},a("mds-text",{key:"d630290e2eb5408ed612b3268b92355bcc49da47",tag:this.tag,typography:this.typography},a("i",{key:"6f26b293a426f5ab93873cb46a8abee7c52429fb"},a("slot",{key:"a09ce2ef7bfaa42a21be184d3aa2fc4994509d3a"}),a("span",{key:"c0d0181b85d0d033f0ef00522792675379b42ac1"}," ❞"))),a("slot",{key:"00f4fcf39ffd58d65a7bca5be6ddf04695b0a0fe",name:"author"})))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{display:inline-flex}.open-quote{flex-shrink:0}.quote{display:grid;gap:calc(var(--spacing,.0025rem)*400);-webkit-user-select:all;user-select:all}span{-webkit-user-select:none;user-select:none}:host([pref-contrast=more]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}"}},[257,"mds-quote",{typography:[1],tag:[1]}]),n=c,i=function(){"undefined"!=typeof customElements&&["mds-quote","mds-text"].forEach((e=>{switch(e){case"mds-quote":customElements.get(o(e))||customElements.define(o(e),c);break;case"mds-text":customElements.get(o(e))||d()}}))};export{n as MdsQuote,i as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,c as s,t as n}from"./p-BhFTcUD0.js";import{d as a}from"./p-CVgKDZPF.js";import{d as o}from"./p-CatD1iUY.js";import{d as r}from"./p-C58NKMEE.js";import{d as m}from"./p-B9DJLgwr.js";import{d}from"./p-D8I1RblC.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tone="weak",this.variant="dark",this.size="lg"}render(){return e(s,{key:"4807333d10e3bf1114b507a271709087ef2843ae",slot:"item"},e("mds-button",{key:"1b3112032c24e630f304e64a2ac91cd65dee3d79","aria-label":this.tooltip,class:"button",icon:this.icon,variant:this.variant,tone:this.tone,size:this.size}),this.tooltip&&e("mds-tooltip",{key:"cf983d3a00805a284ab51baee79407abfbc80fc9",class:"tooltip",target:".button",placement:"top",disableAutoPlacement:!0},this.tooltip))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-menu-item-transition-duration:var(--mds-radial-menu-transition-duration,.5s);--mds-radial-menu-item-transition-timing-function:var(--mds-radial-menu-transition-timing-function,var(--ease-out-expo,cubic-bezier(.19,1,.22,1)));--mds-radial-menu-item-delay:0;--mds-radial-menu-item-index:0;display:inline-flex;inset:0;pointer-events:none;position:absolute;transform:scale(0);-webkit-transition-delay:var(--mds-radial-menu-item-delay);transition-delay:var(--mds-radial-menu-item-delay);-webkit-transition-duration:var(--mds-radial-menu-item-transition-duration,.5s);transition-duration:var(--mds-radial-menu-item-transition-duration,.5s);transition-property:translate,transform;-webkit-transition-timing-function:var(--mds-radial-menu-item-transition-timing-function);transition-timing-function:var(--mds-radial-menu-item-transition-timing-function);translate:var(--mds-radial-menu-item-translate)}:host(:hover){z-index:1}.button{border-radius:100%}.tooltip{--mds-tooltip-delay:0;min-width:max-content;width:min-content}"}},[1,"mds-radial-menu-item",{tooltip:[513],icon:[1537],tone:[513],variant:[513],size:[513]}]),u=l,c=function(){"undefined"!=typeof customElements&&["mds-radial-menu-item","mds-button","mds-icon","mds-spinner","mds-text","mds-tooltip"].forEach((t=>{switch(t){case"mds-radial-menu-item":customElements.get(n(t))||customElements.define(n(t),l);break;case"mds-button":customElements.get(n(t))||a();break;case"mds-icon":customElements.get(n(t))||o();break;case"mds-spinner":customElements.get(n(t))||r();break;case"mds-text":customElements.get(n(t))||m();break;case"mds-tooltip":customElements.get(n(t))||d()}}))};export{u as MdsRadialMenuItem,c as defineCustomElement}
1
+ import{p as t,H as i,h as e,c as s,t as n}from"./p-BhFTcUD0.js";import{d as a}from"./p-kff6xSdW.js";import{d as o}from"./p-qketFgr0.js";import{d as r}from"./p-C58NKMEE.js";import{d as m}from"./p-BZFyAX-6.js";import{d}from"./p-DlHJvYE7.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tone="weak",this.variant="dark",this.size="lg"}render(){return e(s,{key:"4807333d10e3bf1114b507a271709087ef2843ae",slot:"item"},e("mds-button",{key:"1b3112032c24e630f304e64a2ac91cd65dee3d79","aria-label":this.tooltip,class:"button",icon:this.icon,variant:this.variant,tone:this.tone,size:this.size}),this.tooltip&&e("mds-tooltip",{key:"cf983d3a00805a284ab51baee79407abfbc80fc9",class:"tooltip",target:".button",placement:"top",disableAutoPlacement:!0},this.tooltip))}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-tooltip):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-menu-item-transition-duration:var(--mds-radial-menu-transition-duration,.5s);--mds-radial-menu-item-transition-timing-function:var(--mds-radial-menu-transition-timing-function,var(--ease-out-expo,cubic-bezier(.19,1,.22,1)));--mds-radial-menu-item-delay:0;--mds-radial-menu-item-index:0;display:inline-flex;inset:0;pointer-events:none;position:absolute;transform:scale(0);-webkit-transition-delay:var(--mds-radial-menu-item-delay);transition-delay:var(--mds-radial-menu-item-delay);-webkit-transition-duration:var(--mds-radial-menu-item-transition-duration,.5s);transition-duration:var(--mds-radial-menu-item-transition-duration,.5s);transition-property:translate,transform;-webkit-transition-timing-function:var(--mds-radial-menu-item-transition-timing-function);transition-timing-function:var(--mds-radial-menu-item-transition-timing-function);translate:var(--mds-radial-menu-item-translate)}:host(:hover){z-index:1}.button{border-radius:100%}.tooltip{--mds-tooltip-delay:0;min-width:max-content;width:min-content}"}},[1,"mds-radial-menu-item",{tooltip:[513],icon:[1537],tone:[513],variant:[513],size:[513]}]),u=l,c=function(){"undefined"!=typeof customElements&&["mds-radial-menu-item","mds-button","mds-icon","mds-spinner","mds-text","mds-tooltip"].forEach((t=>{switch(t){case"mds-radial-menu-item":customElements.get(n(t))||customElements.define(n(t),l);break;case"mds-button":customElements.get(n(t))||a();break;case"mds-icon":customElements.get(n(t))||o();break;case"mds-spinner":customElements.get(n(t))||r();break;case"mds-text":customElements.get(n(t))||m();break;case"mds-tooltip":customElements.get(n(t))||d()}}))};export{u as MdsRadialMenuItem,c as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as i,h as n,c as t,t as e}from"./p-BhFTcUD0.js";import{q as s}from"./p-CsgCQiHG.js";import{m as d}from"./p-J-ikDhyq.js";import{c as r}from"./p-ChV9xqsO.js";import{B as m}from"./p-CVpjH8Un.js";import{d as o}from"./p-CVgKDZPF.js";import{d as l}from"./p-CatD1iUY.js";import{d as u}from"./p-C58NKMEE.js";import{d as c}from"./p-B9DJLgwr.js";const h=a(class extends i{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.backdropController=new m("mds-radial-menu-backdrop"),this.angleStart=0,this.angleEnd=360,this.radius=5,this.direction="clockwise",this.backdrop=!1,this.interaction="click",this.variant="dark",this.tone="strong",this.size="lg",this.toggleMenu=()=>{this.opened=!0!==this.opened||void 0},this.setItemSize=()=>{var a;null===(a=this.items)||void 0===a||a.forEach((a=>{a.size=this.size}))},this.setItemIndex=()=>{this.items.forEach(((a,i)=>{a.style.setProperty("--mds-radial-menu-item-index",""+i)}))},this.setIsFullCircle=()=>{this.hostElement.style.setProperty("--mds-radial-menu-is-full-circle",this.angleEnd-this.angleStart==360?"1":"0")},this.setIsStartGreaterThanEnd=()=>{this.hostElement.style.setProperty("--mds-radial-menu-is-start-greater-than-end",this.angleStart>this.angleEnd?"-1":"1")},this.updateItems=()=>{this.items=s(this.hostElement,"item"),this.setItemSize(),this.setItemIndex(),this.hostElement.style.setProperty("--mds-radial-menu-nth-siblings",""+(this.items.length-1))},this.toggleRightClickMenu=a=>{a.preventDefault(),this.hostElement.style.top=a.clientY-this.hostElement.offsetHeight/2+"px",this.hostElement.style.left=a.clientX-this.hostElement.offsetWidth/2+"px",this.toggleMenu()},this.handleBackdrop=()=>{this.backdrop&&this.opened?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop()}}componentWillLoad(){var a;this.icon=null!==(a=this.icon)&&void 0!==a?a:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>',this.onAngleStartChange(this.angleStart),this.onAngleEndChange(this.angleEnd),this.onRadiusChange(this.radius),this.onSizeChange()}componentDidLoad(){this.updateItems(),this.setIsFullCircle(),this.setIsStartGreaterThanEnd(),this.onOpenedChange(this.opened),this.onInteractionChange(this.interaction)}disconnectedCallback(){"undefined"!=typeof document&&document.removeEventListener("contextmenu",this.toggleRightClickMenu)}onDiscChanged(a){!1===a&&(this.disc=void 0)}backdropChanged(a){!1===a&&(this.backdrop=void 0),this.handleBackdrop()}onInteractionChange(a){"undefined"!=typeof document&&("rightclick"!==a?document.removeEventListener("contextmenu",this.toggleRightClickMenu):document.addEventListener("contextmenu",this.toggleRightClickMenu))}onAngleStartChange(a){this.hostElement.style.setProperty("--mds-radial-menu-angle-start",a+"deg"),this.setIsFullCircle(),this.setIsStartGreaterThanEnd()}onAngleEndChange(a){this.hostElement.style.setProperty("--mds-radial-menu-angle-end",a+"deg"),this.setIsFullCircle(),this.setIsStartGreaterThanEnd()}onRadiusChange(a){this.hostElement.style.setProperty("--mds-radial-menu-radius",a+"rem")}onSizeChange(){this.setItemSize()}onOpenedChange(a){!1===a&&(this.opened=void 0),this.handleBackdrop()}render(){return n(t,{key:"46b347e91d0b2cb61e36ab2bf46aacf0490379f6"},n("mds-button",{key:"efd73fd021d94786979105080a6ff51a3e87ea4b",class:r("menu-button","click"!==this.interaction&&"menu-button--hidden"),icon:this.opened?d:this.icon,tone:this.tone,variant:this.variant,size:this.size,onClick:this.toggleMenu}),n("div",{key:"fd3226de96a1b5ea1431cb3aa2022add4d9dfee6",class:"radial-menu",part:"radial-menu"},n("slot",{key:"aba412d874a62a9c86b74ac2a3b1352cf73c1b79",name:"item",onSlotchange:this.updateItems})),n("div",{key:"b81700bf5e3389032080e1fa5d0a8d90edb25747",class:"disc"}))}get hostElement(){return this}static get watchers(){return{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-menu-angle-start:0deg;--mds-radial-menu-angle-end:360deg;--mds-radial-menu-context-menu-z-index:var(--magma-context-menu-z-index,8000);--mds-radial-menu-delay:10ms;--mds-radial-menu-direction:-1;--mds-radial-menu-disc-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))/.5);--mds-radial-menu-disc-filter:blur(8px);--mds-radial-menu-disc-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-radial-menu-disc-size:calc(var(--mds-radial-menu-radius,5rem)*2);--mds-radial-menu-radius:5rem;--mds-radial-menu-transition-duration:.5s;--mds-radial-menu-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-radial-menu-nth-siblings:0;--mds-radial-menu-disc-delay:0s;--mds-radial-menu-disc-scale:0;--mds-radial-menu-radius-current:0;--mds-radial-menu-is-full-circle:1;--mds-radial-menu-is-start-greater-than-end:1;display:inline-flex;position:relative;-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:top,left;-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:var(--magma-dropdown-z-index,5000)}:host([direction=clockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*-1)}:host([direction=counterclockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*1)}.menu-button{border-radius:100%;position:relative;transform:scale(1);-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:2}:host(:not([opened])) .menu-button--hidden{transform:scale(0)}.radial-menu{inset:0;pointer-events:none;position:absolute;-webkit-transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-property:z-index;z-index:3}:host(:not([opened])) .radial-menu{transition-delay:0s;z-index:1}:host(:not([opened])){--mds-radial-menu-radius-current:0}:host([opened]){--mds-radial-menu-radius-current:var(--mds-radial-menu-radius,5rem)}:host([opened]) ::slotted(mds-radial-menu-item){pointer-events:auto;transform:scale(1)}::slotted(mds-radial-menu-item){--mds-radial-menu-item-offset-per-child:calc((var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg))/(var(--mds-radial-menu-nth-siblings) + var(--mds-radial-menu-is-full-circle)));--mds-radial-menu-item-angle-offset:calc(var(--mds-radial-menu-direction,-1)*var(--mds-radial-menu-item-index)*var(--mds-radial-menu-item-offset-per-child));--mds-radial-menu-item-delay:calc((var(--mds-radial-menu-item-index) + 1)*var(--mds-radial-menu-delay,10ms));--mds-radial-menu-item-translate:calc(cos((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current)) calc(sin((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current) * -1)}.disc{--size:calc(var(--mds-radial-menu-disc-size,calc(5rem * 2)) + var(--mds-radial-menu-radius,5rem));-webkit-backdrop-filter:var(--mds-radial-menu-disc-filter);backdrop-filter:var(--mds-radial-menu-disc-filter);background-color:var(--mds-radial-menu-disc-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))/.5));border-radius:100%;-webkit-box-shadow:var(--mds-radial-menu-disc-shadow);box-shadow:var(--mds-radial-menu-disc-shadow);display:inline-flex;height:var(--size);inset:50%;position:absolute;-webkit-transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));-webkit-transition-delay:var(--mds-radial-menu-disc-delay);transition-delay:var(--mds-radial-menu-disc-delay);-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:height,transform,width;-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);width:var(--size);z-index:0}:host(:not([opened][disc])){--mds-radial-menu-disc-scale:0;--mds-radial-menu-disc-delay:calc((var(--mds-radial-menu-nth-siblings) + 1)*var(--mds-radial-menu-delay,10ms))}:host([opened][disc]){--mds-radial-menu-disc-scale:1;--mds-radial-menu-disc-delay:0s}:host([interaction=rightclick]){position:fixed;z-index:var(--mds-radial-menu-context-menu-z-index,var(--magma-context-menu-z-index,8000))}"}},[257,"mds-radial-menu",{angleStart:[514,"angle-start"],angleEnd:[514,"angle-end"],radius:[514],direction:[513],opened:[1540],disc:[1540],backdrop:[516],interaction:[513],icon:[1537],variant:[513],tone:[513],size:[513]},void 0,{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}]),g=h,v=function(){"undefined"!=typeof customElements&&["mds-radial-menu","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-radial-menu":customElements.get(e(a))||customElements.define(e(a),h);break;case"mds-button":customElements.get(e(a))||o();break;case"mds-icon":customElements.get(e(a))||l();break;case"mds-spinner":customElements.get(e(a))||u();break;case"mds-text":customElements.get(e(a))||c()}}))};export{g as MdsRadialMenu,v as defineCustomElement}
1
+ import{p as a,H as i,h as n,c as t,t as e}from"./p-BhFTcUD0.js";import{q as s}from"./p-CsgCQiHG.js";import{m as d}from"./p-J-ikDhyq.js";import{c as r}from"./p-ChV9xqsO.js";import{B as m}from"./p-CVpjH8Un.js";import{d as o}from"./p-kff6xSdW.js";import{d as l}from"./p-qketFgr0.js";import{d as u}from"./p-C58NKMEE.js";import{d as c}from"./p-BZFyAX-6.js";const h=a(class extends i{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.backdropController=new m("mds-radial-menu-backdrop"),this.angleStart=0,this.angleEnd=360,this.radius=5,this.direction="clockwise",this.backdrop=!1,this.interaction="click",this.variant="dark",this.tone="strong",this.size="lg",this.toggleMenu=()=>{this.opened=!0!==this.opened||void 0},this.setItemSize=()=>{var a;null===(a=this.items)||void 0===a||a.forEach((a=>{a.size=this.size}))},this.setItemIndex=()=>{this.items.forEach(((a,i)=>{a.style.setProperty("--mds-radial-menu-item-index",""+i)}))},this.setIsFullCircle=()=>{this.hostElement.style.setProperty("--mds-radial-menu-is-full-circle",this.angleEnd-this.angleStart==360?"1":"0")},this.setIsStartGreaterThanEnd=()=>{this.hostElement.style.setProperty("--mds-radial-menu-is-start-greater-than-end",this.angleStart>this.angleEnd?"-1":"1")},this.updateItems=()=>{this.items=s(this.hostElement,"item"),this.setItemSize(),this.setItemIndex(),this.hostElement.style.setProperty("--mds-radial-menu-nth-siblings",""+(this.items.length-1))},this.toggleRightClickMenu=a=>{a.preventDefault(),this.hostElement.style.top=a.clientY-this.hostElement.offsetHeight/2+"px",this.hostElement.style.left=a.clientX-this.hostElement.offsetWidth/2+"px",this.toggleMenu()},this.handleBackdrop=()=>{this.backdrop&&this.opened?this.backdropController.attachBackdrop():this.backdropController.detachBackdrop()}}componentWillLoad(){var a;this.icon=null!==(a=this.icon)&&void 0!==a?a:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>',this.onAngleStartChange(this.angleStart),this.onAngleEndChange(this.angleEnd),this.onRadiusChange(this.radius),this.onSizeChange()}componentDidLoad(){this.updateItems(),this.setIsFullCircle(),this.setIsStartGreaterThanEnd(),this.onOpenedChange(this.opened),this.onInteractionChange(this.interaction)}disconnectedCallback(){"undefined"!=typeof document&&document.removeEventListener("contextmenu",this.toggleRightClickMenu)}onDiscChanged(a){!1===a&&(this.disc=void 0)}backdropChanged(a){!1===a&&(this.backdrop=void 0),this.handleBackdrop()}onInteractionChange(a){"undefined"!=typeof document&&("rightclick"!==a?document.removeEventListener("contextmenu",this.toggleRightClickMenu):document.addEventListener("contextmenu",this.toggleRightClickMenu))}onAngleStartChange(a){this.hostElement.style.setProperty("--mds-radial-menu-angle-start",a+"deg"),this.setIsFullCircle(),this.setIsStartGreaterThanEnd()}onAngleEndChange(a){this.hostElement.style.setProperty("--mds-radial-menu-angle-end",a+"deg"),this.setIsFullCircle(),this.setIsStartGreaterThanEnd()}onRadiusChange(a){this.hostElement.style.setProperty("--mds-radial-menu-radius",a+"rem")}onSizeChange(){this.setItemSize()}onOpenedChange(a){!1===a&&(this.opened=void 0),this.handleBackdrop()}render(){return n(t,{key:"46b347e91d0b2cb61e36ab2bf46aacf0490379f6"},n("mds-button",{key:"efd73fd021d94786979105080a6ff51a3e87ea4b",class:r("menu-button","click"!==this.interaction&&"menu-button--hidden"),icon:this.opened?d:this.icon,tone:this.tone,variant:this.variant,size:this.size,onClick:this.toggleMenu}),n("div",{key:"fd3226de96a1b5ea1431cb3aa2022add4d9dfee6",class:"radial-menu",part:"radial-menu"},n("slot",{key:"aba412d874a62a9c86b74ac2a3b1352cf73c1b79",name:"item",onSlotchange:this.updateItems})),n("div",{key:"b81700bf5e3389032080e1fa5d0a8d90edb25747",class:"disc"}))}get hostElement(){return this}static get watchers(){return{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-radial-menu-angle-start:0deg;--mds-radial-menu-angle-end:360deg;--mds-radial-menu-context-menu-z-index:var(--magma-context-menu-z-index,8000);--mds-radial-menu-delay:10ms;--mds-radial-menu-direction:-1;--mds-radial-menu-disc-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))/.5);--mds-radial-menu-disc-filter:blur(8px);--mds-radial-menu-disc-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-radial-menu-disc-size:calc(var(--mds-radial-menu-radius,5rem)*2);--mds-radial-menu-radius:5rem;--mds-radial-menu-transition-duration:.5s;--mds-radial-menu-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-radial-menu-nth-siblings:0;--mds-radial-menu-disc-delay:0s;--mds-radial-menu-disc-scale:0;--mds-radial-menu-radius-current:0;--mds-radial-menu-is-full-circle:1;--mds-radial-menu-is-start-greater-than-end:1;display:inline-flex;position:relative;-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:top,left;-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:var(--magma-dropdown-z-index,5000)}:host([direction=clockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*-1)}:host([direction=counterclockwise]){--mds-radial-menu-direction:calc(var(--mds-radial-menu-is-start-greater-than-end)*1)}.menu-button{border-radius:100%;position:relative;transform:scale(1);-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);z-index:2}:host(:not([opened])) .menu-button--hidden{transform:scale(0)}.radial-menu{inset:0;pointer-events:none;position:absolute;-webkit-transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-delay:calc((var(--mds-radial-menu-nth-siblings)*2)*var(--mds-radial-menu-delay,10ms));transition-property:z-index;z-index:3}:host(:not([opened])) .radial-menu{transition-delay:0s;z-index:1}:host(:not([opened])){--mds-radial-menu-radius-current:0}:host([opened]){--mds-radial-menu-radius-current:var(--mds-radial-menu-radius,5rem)}:host([opened]) ::slotted(mds-radial-menu-item){pointer-events:auto;transform:scale(1)}::slotted(mds-radial-menu-item){--mds-radial-menu-item-offset-per-child:calc((var(--mds-radial-menu-angle-end,360deg) - var(--mds-radial-menu-angle-start,0deg))/(var(--mds-radial-menu-nth-siblings) + var(--mds-radial-menu-is-full-circle)));--mds-radial-menu-item-angle-offset:calc(var(--mds-radial-menu-direction,-1)*var(--mds-radial-menu-item-index)*var(--mds-radial-menu-item-offset-per-child));--mds-radial-menu-item-delay:calc((var(--mds-radial-menu-item-index) + 1)*var(--mds-radial-menu-delay,10ms));--mds-radial-menu-item-translate:calc(cos((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current)) calc(sin((var(--mds-radial-menu-angle-start,0deg) + var(--mds-radial-menu-item-angle-offset))) * var(--mds-radial-menu-radius-current) * -1)}.disc{--size:calc(var(--mds-radial-menu-disc-size,calc(5rem * 2)) + var(--mds-radial-menu-radius,5rem));-webkit-backdrop-filter:var(--mds-radial-menu-disc-filter);backdrop-filter:var(--mds-radial-menu-disc-filter);background-color:var(--mds-radial-menu-disc-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))/.5));border-radius:100%;-webkit-box-shadow:var(--mds-radial-menu-disc-shadow);box-shadow:var(--mds-radial-menu-disc-shadow);display:inline-flex;height:var(--size);inset:50%;position:absolute;-webkit-transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));transform:translate(-50%,-50%) scale(var(--mds-radial-menu-disc-scale));-webkit-transition-delay:var(--mds-radial-menu-disc-delay);transition-delay:var(--mds-radial-menu-disc-delay);-webkit-transition-duration:var(--mds-radial-menu-transition-duration);transition-duration:var(--mds-radial-menu-transition-duration);transition-property:height,transform,width;-webkit-transition-timing-function:var(--mds-radial-menu-transition-timing-function);transition-timing-function:var(--mds-radial-menu-transition-timing-function);width:var(--size);z-index:0}:host(:not([opened][disc])){--mds-radial-menu-disc-scale:0;--mds-radial-menu-disc-delay:calc((var(--mds-radial-menu-nth-siblings) + 1)*var(--mds-radial-menu-delay,10ms))}:host([opened][disc]){--mds-radial-menu-disc-scale:1;--mds-radial-menu-disc-delay:0s}:host([interaction=rightclick]){position:fixed;z-index:var(--mds-radial-menu-context-menu-z-index,var(--magma-context-menu-z-index,8000))}"}},[257,"mds-radial-menu",{angleStart:[514,"angle-start"],angleEnd:[514,"angle-end"],radius:[514],direction:[513],opened:[1540],disc:[1540],backdrop:[516],interaction:[513],icon:[1537],variant:[513],tone:[513],size:[513]},void 0,{disc:[{onDiscChanged:0}],backdrop:[{backdropChanged:0}],interaction:[{onInteractionChange:0}],angleStart:[{onAngleStartChange:0}],angleEnd:[{onAngleEndChange:0}],radius:[{onRadiusChange:0}],size:[{onSizeChange:0}],opened:[{onOpenedChange:0}]}]),g=h,v=function(){"undefined"!=typeof customElements&&["mds-radial-menu","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-radial-menu":customElements.get(e(a))||customElements.define(e(a),h);break;case"mds-button":customElements.get(e(a))||o();break;case"mds-icon":customElements.get(e(a))||l();break;case"mds-spinner":customElements.get(e(a))||u();break;case"mds-text":customElements.get(e(a))||c()}}))};export{g as MdsRadialMenu,v as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as p}from"./p-DLE5TNTp.js";const s=o,r=p;export{s as MdsRadialProgress,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-CUQ7WIXh.js";const p=o,r=s;export{p as MdsRadialProgress,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as s,h as t,c as r,t as e}from"./p-BhFTcUD0.js";import{p as o}from"./p-CvIFS8oA.js";import{d as i}from"./p-CVgKDZPF.js";import{d}from"./p-CatD1iUY.js";import{d as m}from"./p-Deh5Aia-.js";import{d as c}from"./p-C58NKMEE.js";import{d as n}from"./p-B9DJLgwr.js";const p=a(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.overflow="manual",this.position="bottom-right"}componentDidLoad(){var a;this.modal=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal"),this.modal.hideBackdrop=!0}handleVisbilityProp(a){!1===a&&(this.visible=void 0)}async hide(){this.visible=void 0}render(){return t(r,{key:"b936d4e3fc3c636b8e8999cd91dc8b2abf8d1484","pref-consumption":o.state.consumption,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},t("mds-modal",{key:"f25d2a41d034098a702507b12c05aa49c3726cb1",class:"modal",opened:this.visible,position:this.position,animation:"custom",overflow:this.overflow},t("div",{key:"02bf4147fb7ba9e8bacea3c9ce3f69ce7c69be02",class:"status-bar-area",part:"status-bar-area",slot:"window"},t("div",{key:"5eb1822ac0b4d308f17ca2a38f4055c23083cff3",class:"status-bar",part:"status-bar"},this.description&&t("mds-text",{key:"aaf2d243d81c374f7bde3b062bd1a742f2b0411c",typography:"caption",class:"description"},this.description),t("div",{key:"ff7122e6c36f3694e9563e6665704932c56ce1cf",class:"actions",part:"actions"},t("slot",{key:"f417fd05a17ec9e0d3da7bcecd6c81d9c82321ac"}))))))}get host(){return this}static get watchers(){return{visible:[{handleVisbilityProp:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-status-bar-max-width:500px;--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.1);--mds-status-bar-backdrop-filter:blur(10px);display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.1));border-radius:var(--radius-xl,20px) var(--radius-xl,20px) 0 0;margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{align-items:flex-start;background-color:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);max-width:var(--mds-status-bar-max-width,500px);padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}"}},[257,"mds-status-bar",{description:[513],overflow:[513],position:[513],visible:[1540],hide:[64]},void 0,{visible:[{handleVisbilityProp:0}]}]),l=p,b=function(){"undefined"!=typeof customElements&&["mds-status-bar","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-status-bar":customElements.get(e(a))||customElements.define(e(a),p);break;case"mds-button":customElements.get(e(a))||i();break;case"mds-icon":customElements.get(e(a))||d();break;case"mds-modal":customElements.get(e(a))||m();break;case"mds-spinner":customElements.get(e(a))||c();break;case"mds-text":customElements.get(e(a))||n()}}))};export{l as MdsStatusBar,b as defineCustomElement}
1
+ import{p as a,H as s,h as t,c as r,t as e}from"./p-BhFTcUD0.js";import{p as o}from"./p-CvIFS8oA.js";import{d as i}from"./p-kff6xSdW.js";import{d}from"./p-qketFgr0.js";import{d as m}from"./p-BShLEry5.js";import{d as c}from"./p-C58NKMEE.js";import{d as n}from"./p-BZFyAX-6.js";const p=a(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.overflow="manual",this.position="bottom-right"}componentDidLoad(){var a;this.modal=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal"),this.modal.hideBackdrop=!0}handleVisbilityProp(a){!1===a&&(this.visible=void 0)}async hide(){this.visible=void 0}render(){return t(r,{key:"b936d4e3fc3c636b8e8999cd91dc8b2abf8d1484","pref-consumption":o.state.consumption,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},t("mds-modal",{key:"f25d2a41d034098a702507b12c05aa49c3726cb1",class:"modal",opened:this.visible,position:this.position,animation:"custom",overflow:this.overflow},t("div",{key:"02bf4147fb7ba9e8bacea3c9ce3f69ce7c69be02",class:"status-bar-area",part:"status-bar-area",slot:"window"},t("div",{key:"5eb1822ac0b4d308f17ca2a38f4055c23083cff3",class:"status-bar",part:"status-bar"},this.description&&t("mds-text",{key:"aaf2d243d81c374f7bde3b062bd1a742f2b0411c",typography:"caption",class:"description"},this.description),t("div",{key:"ff7122e6c36f3694e9563e6665704932c56ce1cf",class:"actions",part:"actions"},t("slot",{key:"f417fd05a17ec9e0d3da7bcecd6c81d9c82321ac"}))))))}get host(){return this}static get watchers(){return{visible:[{handleVisbilityProp:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-modal,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-status-bar-max-width:500px;--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.1);--mds-status-bar-backdrop-filter:blur(10px);display:block}mds-modal{--mds-modal-custom-window-distance:0;--mds-modal-custom-closed-transform:translateY(100%)}.status-bar-area{-webkit-backdrop-filter:var(--mds-status-bar-backdrop-filter);backdrop-filter:var(--mds-status-bar-backdrop-filter);background-color:var(--mds-status-bar-backdrop,rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.1));border-radius:var(--radius-xl,20px) var(--radius-xl,20px) 0 0;margin-left:calc(var(--spacing,.0025rem)*600);margin-right:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*200) calc(var(--spacing,.0025rem)*600);transition-property:background-color,transform,opacity}.status-bar{align-items:flex-start;background-color:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);box-shadow:var(--shadow-md,0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a);max-width:var(--mds-status-bar-max-width,500px);padding:calc(var(--spacing,.0025rem)*600)}.actions,.status-bar{display:inline-flex;flex-wrap:wrap;gap:calc(var(--spacing,.0025rem)*400)}.actions{flex-grow:1}:host([pref-consumption=medium]){--mds-status-bar-backdrop-filter:none}:host([pref-contrast=more]){--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .status-bar{-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}@media (max-width:480px){.status-bar-area{border-radius:0;margin-left:0;margin-right:0;padding:calc(var(--spacing,.0025rem)*400);width:100%}.status-bar{width:100%}.actions{gap:calc(var(--spacing,.0025rem)*200)}::slotted(*){flex-grow:1}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-status-bar-backdrop:rgb(var(--magma-shadow-ink,var(--magma-tint-scale-01,var(--tone-neutral-01,5 5 5)))/.3)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .status-bar{-webkit-box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15));box-shadow:var(--shadow-ring-weak,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.15))}}"}},[257,"mds-status-bar",{description:[513],overflow:[513],position:[513],visible:[1540],hide:[64]},void 0,{visible:[{handleVisbilityProp:0}]}]),l=p,b=function(){"undefined"!=typeof customElements&&["mds-status-bar","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-status-bar":customElements.get(e(a))||customElements.define(e(a),p);break;case"mds-button":customElements.get(e(a))||i();break;case"mds-icon":customElements.get(e(a))||d();break;case"mds-modal":customElements.get(e(a))||m();break;case"mds-spinner":customElements.get(e(a))||c();break;case"mds-text":customElements.get(e(a))||n()}}))};export{l as MdsStatusBar,b as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,d as a,h as r,c as s,t as i}from"./p-BhFTcUD0.js";import{c as n}from"./p-ChV9xqsO.js";import{K as o}from"./p-KRu9I7dw.js";import{L as m}from"./p-Bss3F51Q.js";import{p}from"./p-CvIFS8oA.js";import{d}from"./p-DaI5QqNu.js";import{d as c}from"./p-CatD1iUY.js";import{d as b}from"./p-Bt4xX5ww.js";import{d as u}from"./p-DLE5TNTp.js";import{d as g}from"./p-B9DJLgwr.js";var l={badgeDone:"Ολοκληρώθηκε",badgeCurrent:"Καθημερινή",badgeQueued:"Σε αναμονή",step:"Βήμα {{ index }}"},v={badgeDone:"Done",badgeCurrent:"Current",badgeQueued:"Queued",step:"Step {{ index }}"},h={badgeDone:"Completado",badgeCurrent:"En curso",badgeQueued:"En cola",step:"Paso {{ index }}"},f={badgeDone:"Completato",badgeCurrent:"In corso",badgeQueued:"In coda",step:"Step {{ index }}"};const x=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.doneEvent=a(this,"mdsStepperBarItemDone",7),this.km=new o,this.t=new m({el:l,en:v,es:h,it:f}),this.iconChecked=this.icon,this.done=!1,this.current=!1,this.typography="h6",this.showBadge=()=>this.isDone?r("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},this.t.get("badgeDone")):this.isCurrent?r("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},this.t.get("badgeCurrent")):r("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},this.t.get("badgeQueued"))}componentWillLoad(){this.isCurrent=this.current,this.isDone=this.done;const e=this.host.parentElement;e&&(this.index=Array.from(e.children).filter((e=>e.tagName===this.host.tagName)).indexOf(this.host))}componentDidLoad(){this.km.addElement(this.host),this.km.attachClickBehavior()}disconnectedCallback(){this.km.detachClickBehavior()}selectedHandler(e){this.isDone=e}currentHandler(e){this.isCurrent=e}render(){return r(s,{key:"76613b70e079b98f95f090b5dae2a8fcc284bd00","pref-animation":p.state.animation},r("div",{key:"203b989ddfe1c7210f5a3fa58ad0531ff16f0ceb",class:"header"},r("mds-icon",{key:"eb2ac2c896f449884532144204240be3b9762b5c",class:"icon",name:n(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),r("mds-progress",{key:"e1b9592f8f8e0a4d11149040c544a395219abfe9","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),r("div",{key:"d1b155a6f87d4ae4378cc5f74fe634ef8c55e96f",class:"infos"},this.step&&r("mds-text",{key:"bf08860ae9f87eef75122e68f10c905f9c99ef90",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&r("mds-text",{key:"f2e3370be74e7b104d64e1618e0a400e2cd50a37",class:"text",typography:this.typography},this.label),this.badge&&r("div",{key:"1b8a2d7a15e6aba58e1b264c8e6dbc217b0c7a5c",part:"badge"},this.showBadge())))}get host(){return this}static get watchers(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);align-items:flex-start;border-radius:var(--radius-xl,20px);display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){-ms-flex-preferred-size:calc(var(--spacing,.0025rem)*100);flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));-webkit-transition-delay:calc(var(--private-stepper-bar-item-duaration)/2);transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;border-radius:var(--radius-md,12px);display:flex;gap:var(--mds-stepper-bar-item-header-gap);-webkit-transition-duration:var(--private-stepper-bar-item-transition-duration);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));pointer-events:none;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--radius-full,1000px);pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'}},[1,"mds-stepper-bar-item",{label:[1],step:[4],badge:[1540],icon:[1],iconChecked:[1,"icon-checked"],done:[516],current:[1540],value:[513],typography:[1],isDone:[32],isCurrent:[32],index:[32]},void 0,{done:[{selectedHandler:0}],current:[{currentHandler:0}]}]),y=x,k=function(){"undefined"!=typeof customElements&&["mds-stepper-bar-item","mds-badge","mds-icon","mds-progress","mds-radial-progress","mds-text"].forEach((e=>{switch(e){case"mds-stepper-bar-item":customElements.get(i(e))||customElements.define(i(e),x);break;case"mds-badge":customElements.get(i(e))||d();break;case"mds-icon":customElements.get(i(e))||c();break;case"mds-progress":customElements.get(i(e))||b();break;case"mds-radial-progress":customElements.get(i(e))||u();break;case"mds-text":customElements.get(i(e))||g()}}))};export{y as MdsStepperBarItem,k as defineCustomElement}
1
+ import{p as e,H as t,d as a,h as r,c as s,t as i}from"./p-BhFTcUD0.js";import{c as n}from"./p-ChV9xqsO.js";import{K as o}from"./p-KRu9I7dw.js";import{L as m}from"./p-Bss3F51Q.js";import{p}from"./p-CvIFS8oA.js";import{d}from"./p-C1xZO_fq.js";import{d as c}from"./p-qketFgr0.js";import{d as b}from"./p-DCrjf0F0.js";import{d as u}from"./p-CUQ7WIXh.js";import{d as g}from"./p-BZFyAX-6.js";var l={badgeDone:"Ολοκληρώθηκε",badgeCurrent:"Καθημερινή",badgeQueued:"Σε αναμονή",step:"Βήμα {{ index }}"},v={badgeDone:"Done",badgeCurrent:"Current",badgeQueued:"Queued",step:"Step {{ index }}"},h={badgeDone:"Completado",badgeCurrent:"En curso",badgeQueued:"En cola",step:"Paso {{ index }}"},f={badgeDone:"Completato",badgeCurrent:"In corso",badgeQueued:"In coda",step:"Step {{ index }}"};const x=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.doneEvent=a(this,"mdsStepperBarItemDone",7),this.km=new o,this.t=new m({el:l,en:v,es:h,it:f}),this.iconChecked=this.icon,this.done=!1,this.current=!1,this.typography="h6",this.showBadge=()=>this.isDone?r("mds-badge",{class:"badge",variant:"success",tone:"weak",typography:"option"},this.t.get("badgeDone")):this.isCurrent?r("mds-badge",{class:"badge",variant:"info",tone:"weak",typography:"option"},this.t.get("badgeCurrent")):r("mds-badge",{class:"badge",variant:"dark",tone:"weak",typography:"option"},this.t.get("badgeQueued"))}componentWillLoad(){this.isCurrent=this.current,this.isDone=this.done;const e=this.host.parentElement;e&&(this.index=Array.from(e.children).filter((e=>e.tagName===this.host.tagName)).indexOf(this.host))}componentDidLoad(){this.km.addElement(this.host),this.km.attachClickBehavior()}disconnectedCallback(){this.km.detachClickBehavior()}selectedHandler(e){this.isDone=e}currentHandler(e){this.isCurrent=e}render(){return r(s,{key:"76613b70e079b98f95f090b5dae2a8fcc284bd00","pref-animation":p.state.animation},r("div",{key:"203b989ddfe1c7210f5a3fa58ad0531ff16f0ceb",class:"header"},r("mds-icon",{key:"eb2ac2c896f449884532144204240be3b9762b5c",class:"icon",name:n(this.isDone&&!this.isCurrent?this.iconChecked:this.icon)}),r("mds-progress",{key:"e1b9592f8f8e0a4d11149040c544a395219abfe9","aria-hidden":"true",class:"progress",progress:this.isDone?1:0})),r("div",{key:"d1b155a6f87d4ae4378cc5f74fe634ef8c55e96f",class:"infos"},this.step&&r("mds-text",{key:"bf08860ae9f87eef75122e68f10c905f9c99ef90",class:"step",typography:"option"},this.t.get("step",{index:this.index+1})),this.label&&r("mds-text",{key:"f2e3370be74e7b104d64e1618e0a400e2cd50a37",class:"text",typography:this.typography},this.label),this.badge&&r("div",{key:"1b8a2d7a15e6aba58e1b264c8e6dbc217b0c7a5c",part:"badge"},this.showBadge())))}get host(){return this}static get watchers(){return{done:[{selectedHandler:0}],current:[{currentHandler:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host{--mds-stepper-bar-item-header-gap:var(--mds-stepper-bar-gap,calc(var(--spacing,.0025rem)*50));--mds-stepper-bar-item-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-stepper-bar-item-duration:.25s;--private-stepper-bar-item-duaration:var(--mds-stepper-bar-item-duration,.25s);--mds-stepper-bar-item-transition-duration:var(--duration-200,.2s);--private-stepper-bar-item-transition-duration:var(--mds-stepper-bar-item-transition-duration);--mds-stepper-bar-item-icon-background-done:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-icon-background-current:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-stepper-bar-item-icon-color-done:rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color-current:rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-stepper-bar-item-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-stepper-bar-item-min-width:180px;--mds-stepper-bar-item-progress-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-stepper-bar-item-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-stepper-bar-item-progress-thickness:calc(var(--spacing,.0025rem)*200);align-items:flex-start;border-radius:var(--radius-xl,20px);display:grid;flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*400);min-width:var(--mds-stepper-bar-item-min-width,180px);position:relative;scroll-snap-align:center;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:outline,outline-offset,background-color}:host(:last-of-type){-ms-flex-preferred-size:calc(var(--spacing,.0025rem)*100);flex-basis:calc(var(--spacing,.0025rem)*100)}:host(:last-of-type) .progress{display:none}:host([done]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-done,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-done,rgb(var(--magma-success-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));transition-delay:0s}:host([current]) .icon{--mds-stepper-bar-item-icon-background:var(--mds-stepper-bar-item-icon-background-current,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));--mds-stepper-bar-item-icon-color:var(--mds-stepper-bar-item-icon-color-current,rgb(var(--magma-text-on-emphasis,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));-webkit-transition-delay:calc(var(--private-stepper-bar-item-duaration)/2);transition-delay:calc(var(--private-stepper-bar-item-duaration)/2)}.header{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;border-radius:var(--radius-md,12px);display:flex;gap:var(--mds-stepper-bar-item-header-gap);-webkit-transition-duration:var(--private-stepper-bar-item-transition-duration);transition-duration:var(--private-stepper-bar-item-transition-duration);transition-property:outline,outline-offset;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));width:100%}.icon{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-stepper-bar-item-icon-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--radius-full,1000px);display:flex;fill:var(--mds-stepper-bar-item-icon-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex-shrink:0;padding:calc(var(--spacing,.0025rem)*200);position:relative;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.progress{--mds-progress-background:var(--mds-stepper-bar-item-progress-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));--mds-progress-color:var(--mds-stepper-bar-item-progress-color,rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57))));--mds-progress-thickness:var(--mds-stepper-bar-item-progress-thickness,calc(var(--spacing,.0025rem)*200));--mds-progress-radius:0;flex-grow:1}.infos{display:grid;gap:calc(var(--spacing,.0025rem)*100);padding-left:calc(var(--spacing,.0025rem)*100)}.text{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));color:var(--mds-stepper-bar-item-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));pointer-events:none;-webkit-transition-duration:var(--private-stepper-bar-item-duaration);transition-duration:var(--private-stepper-bar-item-duaration);transition-property:color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.badge,.step{border-radius:var(--radius-full,1000px);pointer-events:none}.step{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-stepper-bar-item-duaration:0s;--private-stepper-bar-item-transition-duration:0s}}'}},[1,"mds-stepper-bar-item",{label:[1],step:[4],badge:[1540],icon:[1],iconChecked:[1,"icon-checked"],done:[516],current:[1540],value:[513],typography:[1],isDone:[32],isCurrent:[32],index:[32]},void 0,{done:[{selectedHandler:0}],current:[{currentHandler:0}]}]),y=x,k=function(){"undefined"!=typeof customElements&&["mds-stepper-bar-item","mds-badge","mds-icon","mds-progress","mds-radial-progress","mds-text"].forEach((e=>{switch(e){case"mds-stepper-bar-item":customElements.get(i(e))||customElements.define(i(e),x);break;case"mds-badge":customElements.get(i(e))||d();break;case"mds-icon":customElements.get(i(e))||c();break;case"mds-progress":customElements.get(i(e))||b();break;case"mds-radial-progress":customElements.get(i(e))||u();break;case"mds-text":customElements.get(i(e))||g()}}))};export{y as MdsStepperBarItem,k as defineCustomElement}
@@ -1 +1 @@
1
- import{p as r,H as t,d as s,h as e,c as a,t as o}from"./p-BhFTcUD0.js";const i=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.changedEvent=s(this,"mdsStepperBarChange",7),this.currentItem=0,this.itemsDone=1,this.navigation="none",this.queryItems=()=>this.element.querySelectorAll("mds-stepper-bar-item"),this.queryContentItems=()=>this.element.querySelectorAll("[slot=content]"),this.minmax=(r,t,s)=>Math.min(Math.max(r,t),s),this.setCurrent=r=>{this.items=this.queryItems(),this.currentItem=r-1;const t=[];this.items.forEach(((r,s)=>{r.done=!1,s<this.currentItem&&(r.done=!0,void 0!==r.value&&""!==r.value&&t.push(r.value)),r.current=!1,s===this.currentItem&&(r.current=!0,this.currentItem=s)})),this.changedEvent.emit({value:""+t,step:this.currentItem}),this.scrollItems(),this.setCurrentContent()},this.setCurrentContent=()=>{this.contentItems.forEach(((r,t)=>{r.classList.add("hidden"),t===this.currentItem&&r.classList.remove("hidden")}))},this.scrollItems=()=>{var r;const t=null===(r=this.element.shadowRoot)||void 0===r?void 0:r.querySelector(".items"),s=this.queryItems(),e=this.minmax(this.currentItem,0,this.items.length-1);if(!t)throw Error("No mds-stepper-bar-items found");e<=0?t.scrollLeft=0:e>=s.length?this.scrollToItem(t,s[s.length-1],"start"):this.scrollToItem(t,s[e],"centre")},this.scrollToItem=(r,t,s)=>{const e=r.getBoundingClientRect(),a=t.getBoundingClientRect();r.scrollLeft+=a.left-e.left-("centre"===s?(e.width-a.width)/2:0)}}componentWillLoad(){this.items=this.queryItems(),this.items.forEach(((r,t)=>{r.id="mds-stepper-bar-item-"+t}))}componentDidLoad(){this.contentItems=this.queryContentItems(),this.setCurrent(this.itemsDone)}itemDone(r){this.setCurrent(r)}changeEventHandler(r){this.items=this.queryItems(),this.items.forEach(((t,s)=>{t.done=!1,"mds-stepper-bar-item-"+s===r.detail&&(t.current=!0,this.currentItem=s)}))}render(){return e(a,{key:"4ffedeb2ab33ae57a268f8f95e454a51112a1ea4"},e("div",{key:"2f2e83f385debce8a01cdd1b3d7f31033b53408b",class:"items",part:"items"},e("slot",{key:"1f8690320efe4ddf44946ec5cd6ff3893c9c4bc2"})),e("div",{key:"89fcbd11b441dae79f33b9d2d6f95cc794a4ae8f",class:"contents",part:"contents"},e("slot",{key:"d746b7f1c2ad3a26996550b84d153c90e62019b0",name:"content"})))}get element(){return this}static get watchers(){return{itemsDone:[{itemDone:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-stepper-bar-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-gap:calc(var(--spacing,.0025rem)*50);--mds-stepper-bar-offset-margin:0;--mds-stepper-bar-scroll-behavior:smooth;--mds-stepper-bar-scrollbar-margin:0;--mds-stepper-bar-scrollbar-radius:0;--mds-stepper-bar-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-stepper-bar-scrollbar-thumb-background:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-stepper-bar-scrollbar-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));display:grid;gap:calc(var(--spacing,.0025rem)*600);position:relative}.items{align-items:start;display:flex;flex-grow:1;gap:var(--mds-stepper-bar-gap);margin:0 calc(var(--mds-stepper-bar-offset-margin,0)*-1);overflow:auto;padding:0 var(--mds-stepper-bar-offset-margin,0);position:relative;scroll-behavior:var(--mds-stepper-bar-scroll-behavior,smooth);-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;width:100%;z-index:10}:host([linear=true]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=false]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:flex;flex-direction:column;width:100%}:host(:not([navigation=scrollbar])) .items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .items::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .items::-webkit-scrollbar{height:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .items::-webkit-scrollbar-track{background-color:var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0);margin-block:var(--mds-stepper-bar-scrollbar-margin,0);margin-inline:var(--mds-stepper-bar-scrollbar-margin,0)}:host([navigation=scrollbar]) .items::-webkit-scrollbar-thumb{background-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.items{scrollbar-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))))) var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));scrollbar-width:thin}}@media (prefers-reduced-motion:reduce){:host{--mds-stepper-bar-scroll-behavior:auto}}"}},[257,"mds-stepper-bar",{itemsDone:[2,"items-done"],navigation:[513],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:[{itemDone:0}]}]),n=i,l=function(){"undefined"!=typeof customElements&&["mds-stepper-bar"].forEach((r=>{"mds-stepper-bar"===r&&(customElements.get(o(r))||customElements.define(o(r),i))}))};export{n as MdsStepperBar,l as defineCustomElement}
1
+ import{p as r,H as t,d as s,h as e,c as a,t as o}from"./p-BhFTcUD0.js";const i=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.changedEvent=s(this,"mdsStepperBarChange",7),this.currentItem=0,this.itemsDone=1,this.navigation="none",this.queryItems=()=>this.element.querySelectorAll("mds-stepper-bar-item"),this.queryContentItems=()=>this.element.querySelectorAll("[slot=content]"),this.minmax=(r,t,s)=>Math.min(Math.max(r,t),s),this.setCurrent=r=>{this.items=this.queryItems(),this.currentItem=r-1;const t=[];this.items.forEach(((r,s)=>{var e;if(r.done=!1,s<this.currentItem){r.done=!0;const s=null!==(e=r.value)&&void 0!==e?e:"";""!==s&&t.push(s)}r.current=!1,s===this.currentItem&&(r.current=!0,this.currentItem=s)})),this.changedEvent.emit({value:""+t,step:this.currentItem}),this.scrollItems(),this.setCurrentContent()},this.setCurrentContent=()=>{this.contentItems.forEach(((r,t)=>{r.classList.add("hidden"),t===this.currentItem&&r.classList.remove("hidden")}))},this.scrollItems=()=>{var r;const t=null===(r=this.element.shadowRoot)||void 0===r?void 0:r.querySelector(".items"),s=this.queryItems(),e=this.minmax(this.currentItem,0,this.items.length-1);if(!t)throw Error("No mds-stepper-bar-items found");e<=0?t.scrollLeft=0:e>=s.length?this.scrollToItem(t,s[s.length-1],"start"):this.scrollToItem(t,s[e],"centre")},this.scrollToItem=(r,t,s)=>{const e=r.getBoundingClientRect(),a=t.getBoundingClientRect();r.scrollLeft+=a.left-e.left-("centre"===s?(e.width-a.width)/2:0)}}componentWillLoad(){this.items=this.queryItems(),this.items.forEach(((r,t)=>{r.id="mds-stepper-bar-item-"+t}))}componentDidLoad(){this.contentItems=this.queryContentItems(),this.setCurrent(this.itemsDone)}itemDone(r){this.setCurrent(r)}changeEventHandler(r){this.items=this.queryItems(),this.items.forEach(((t,s)=>{t.done=!1,"mds-stepper-bar-item-"+s===r.detail&&(t.current=!0,this.currentItem=s)}))}render(){return e(a,{key:"35f536c577499c237e0a5b1865c2dcfaa5735d72"},e("div",{key:"5c204cc4ca343076982d3357e7645cc8770a22be",class:"items",part:"items"},e("slot",{key:"69c3b461ada662e58051b875411781a862ff565d"})),e("div",{key:"7fb5381e1126a5227b50ecc202154e44928aab5e",class:"contents",part:"contents"},e("slot",{key:"535d40033b20590f72e9fef336bda3ed7b06cead",name:"content"})))}get element(){return this}static get watchers(){return{itemsDone:[{itemDone:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-progress,mds-stepper-bar-item):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-stepper-bar-gap:calc(var(--spacing,.0025rem)*50);--mds-stepper-bar-offset-margin:0;--mds-stepper-bar-scroll-behavior:smooth;--mds-stepper-bar-scrollbar-margin:0;--mds-stepper-bar-scrollbar-radius:0;--mds-stepper-bar-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-stepper-bar-scrollbar-thumb-background:rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))));--mds-stepper-bar-scrollbar-track-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));display:grid;gap:calc(var(--spacing,.0025rem)*600);position:relative}.items{align-items:start;display:flex;flex-grow:1;gap:var(--mds-stepper-bar-gap);margin:0 calc(var(--mds-stepper-bar-offset-margin,0)*-1);overflow:auto;padding:0 var(--mds-stepper-bar-offset-margin,0);position:relative;scroll-behavior:var(--mds-stepper-bar-scroll-behavior,smooth);-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;width:100%;z-index:10}:host([linear=true]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=false]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:flex;flex-direction:column;width:100%}:host(:not([navigation=scrollbar])) .items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .items::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .items::-webkit-scrollbar{height:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-stepper-bar-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .items::-webkit-scrollbar-track{background-color:var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0);margin-block:var(--mds-stepper-bar-scrollbar-margin,0);margin-inline:var(--mds-stepper-bar-scrollbar-margin,0)}:host([navigation=scrollbar]) .items::-webkit-scrollbar-thumb{background-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140)))));border-radius:var(--mds-stepper-bar-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.items{scrollbar-color:var(--mds-stepper-bar-scrollbar-thumb-background,rgb(var(--magma-border-strong,var(--magma-tint-border-strong,var(--border-neutral-strong,140 140 140))))) var(--mds-stepper-bar-scrollbar-track-background,rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))));scrollbar-width:thin}}@media (prefers-reduced-motion:reduce){:host{--mds-stepper-bar-scroll-behavior:auto}}"}},[257,"mds-stepper-bar",{itemsDone:[2,"items-done"],navigation:[513],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:[{itemDone:0}]}]),n=i,l=function(){"undefined"!=typeof customElements&&["mds-stepper-bar"].forEach((r=>{"mds-stepper-bar"===r&&(customElements.get(o(r))||customElements.define(o(r),i))}))};export{n as MdsStepperBar,l as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as e,h as r,c as i,t as s}from"./p-BhFTcUD0.js";import{r as o,s as n}from"./p-CsgCQiHG.js";import{p as m}from"./p-CvIFS8oA.js";import{d as c}from"./p-CatD1iUY.js";import{d}from"./p-B9DJLgwr.js";const b=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectedEvent=e(this,"mdsTabBarItemSelect",7),this.icon="",this.typography="tip",this.select=()=>{this.isSelected=!this.isSelected,this.isSelected&&this.selectedEvent.emit(this.element.id)},this.onSlotChangeHandler=()=>{void 0!==this.label&&""!==this.label||(this.label=o(this.element))}}componentWillLoad(){this.isSelected=this.selected}validateSelected(t){this.isSelected=t}labelChanged(t){this.label=n(t)}render(){return r(i,{key:"0939e8df4c3f7e1c452bc5be3717d8871d7c1175",onClick:this.select,"pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},r("mds-icon",{key:"2316255b48511920535cbe9e6c07a603107c7362",name:this.icon}),r("mds-text",{key:"4f1973a0a8f280612e6924ea7c386ed1b4fc62f0",typography:this.typography},this.label||r("slot",{key:"bac800ae686b2ac8b95d0c452953b460af70c245",onSlotchange:this.onSlotChangeHandler})))}get element(){return this}static get watchers(){return{selected:[{validateSelected:0}],label:[{labelChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-item-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-tab-bar-item-background-selected:#0000;--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-tab-bar-item-transition-duration:var(--duration-200,.2s);--private-tab-bar-item-transition-duration:var(--mds-tab-bar-item-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-tab-bar-item-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));color:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));cursor:pointer;display:flex;fill:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*200);text-align:center;-webkit-transition-duration:var(--private-tab-bar-item-transition-duration);transition-duration:var(--private-tab-bar-item-transition-duration);transition-property:color,background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([selected]:not([selected=false])){background-color:var(--mds-tab-bar-item-background-selected,#0000);color:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))));fill:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-bar-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-bar-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'}},[257,"mds-tab-bar-item",{icon:[1],label:[1537],selected:[1540],typography:[1],isSelected:[32]},void 0,{selected:[{validateSelected:0}],label:[{labelChanged:0}]}]),l=b,p=function(){"undefined"!=typeof customElements&&["mds-tab-bar-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-tab-bar-item":customElements.get(s(t))||customElements.define(s(t),b);break;case"mds-icon":customElements.get(s(t))||c();break;case"mds-text":customElements.get(s(t))||d()}}))};export{l as MdsTabBarItem,p as defineCustomElement}
1
+ import{p as t,H as a,d as e,h as r,c as i,t as s}from"./p-BhFTcUD0.js";import{r as o,s as n}from"./p-CsgCQiHG.js";import{p as m}from"./p-CvIFS8oA.js";import{d as c}from"./p-qketFgr0.js";import{d}from"./p-BZFyAX-6.js";const b=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectedEvent=e(this,"mdsTabBarItemSelect",7),this.icon="",this.typography="tip",this.select=()=>{this.isSelected=!this.isSelected,this.isSelected&&this.selectedEvent.emit(this.element.id)},this.onSlotChangeHandler=()=>{var t;""===(null!==(t=this.label)&&void 0!==t?t:"")&&(this.label=o(this.element))}}componentWillLoad(){this.isSelected=this.selected}validateSelected(t){this.isSelected=t}labelChanged(t){this.label=n(t)}render(){return r(i,{key:"6e2c08fad0e04d0725ab7ef827c654cf9edecb51",onClick:this.select,"pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},r("mds-icon",{key:"cc8cc878d899d20532b1582ae7eb2aa459a82078",name:this.icon}),r("mds-text",{key:"ea6030247b5999f34cd64a6a3ea8b15de66ba5ab",typography:this.typography},this.label||r("slot",{key:"b922dbfe1b35997ac2c9e9d384e22505838a6994",onSlotchange:this.onSlotChangeHandler})))}get element(){return this}static get watchers(){return{selected:[{validateSelected:0}],label:[{labelChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-tab-bar-item-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-tab-bar-item-background-selected:#0000;--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-tab-bar-item-transition-duration:var(--duration-200,.2s);--private-tab-bar-item-transition-duration:var(--mds-tab-bar-item-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));align-items:center;background-color:var(--mds-tab-bar-item-background,rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237)))));color:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));cursor:pointer;display:flex;fill:var(--mds-tab-bar-item-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));flex:1 0 0;flex-direction:column;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*200);text-align:center;-webkit-transition-duration:var(--private-tab-bar-item-transition-duration);transition-duration:var(--private-tab-bar-item-transition-duration);transition-property:color,background-color,fill;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([selected]:not([selected=false])){background-color:var(--mds-tab-bar-item-background-selected,#0000);color:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))));fill:var(--mds-tab-bar-item-color-selected,rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)))))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-tab-bar-item-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-tab-bar-item-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-tab-bar-item-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-tab-bar-item-color-selected:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}}'}},[257,"mds-tab-bar-item",{icon:[1],label:[1537],selected:[1540],typography:[1],isSelected:[32]},void 0,{selected:[{validateSelected:0}],label:[{labelChanged:0}]}]),l=b,p=function(){"undefined"!=typeof customElements&&["mds-tab-bar-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-tab-bar-item":customElements.get(s(t))||customElements.define(s(t),b);break;case"mds-icon":customElements.get(s(t))||c();break;case"mds-text":customElements.get(s(t))||d()}}))};export{l as MdsTabBarItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-D3-GP4KF.js";const p=o,r=s;export{p as MdsTabItem,r as defineCustomElement}
1
+ import{M as s,d as o}from"./p-6K9sFzLr.js";const r=s,p=o;export{r as MdsTabItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-DmELzfvf.js";const f=o,m=s;export{f as MdsTableHeaderCell,m as defineCustomElement}
1
+ import{M as o,d as s}from"./p-BBhbQT2f.js";const p=o,r=s;export{p as MdsTableHeaderCell,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as s,c as i,t as a}from"./p-BhFTcUD0.js";import{L as o}from"./p-Bss3F51Q.js";import{p as r}from"./p-CvIFS8oA.js";import{d as n}from"./p-CVgKDZPF.js";import{d as l}from"./p-CatD1iUY.js";import{d as c}from"./p-CBLAz3_J.js";import{d}from"./p-C58NKMEE.js";import{d as m}from"./p-BSxuG1vZ.js";import{d as h}from"./p-DmELzfvf.js";import{d as p}from"./p-B9DJLgwr.js";var b={actions:"Ενέργεια",selectAllRows:"Επιλογή όλων των γραμμών",selectNoneRows:"Αποεπιλογή όλων των γραμμών"},u={actions:"Action",selectAllRows:"Select all rows",selectNoneRows:"Deselect all rows"},f={actions:"Acción",selectAllRows:"Seleccionar todas las filas",selectNoneRows:"Deseleccionar todas las filas"},v={actions:"Azione",selectAllRows:"Seleziona tutte le righe",selectNoneRows:"Deseleziona tutte le righe"};const w=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectAll=!1,this.hasActions=!1,this.indeterminate=!1,this.hasSelection=!1,this.t=new o({el:b,en:u,es:f,it:v}),this.handleSelectAllChange=e=>{var t,s;this.selectAll=!!this.indeterminate||null!==(t=e.detail.checked)&&void 0!==t&&t,this.indeterminate=!1,null===(s=this.table)||void 0===s||s.selectAll(this.selectAll)}}async setSelection(e,t){var s,i;this.indeterminate=0!==e&&e!==t,null!==(s=this.checkboxEl)&&void 0!==s||(this.checkboxEl=null===(i=this.host.shadowRoot)||void 0===i?void 0:i.querySelector(".checkbox")),this.checkboxEl&&(this.checkboxEl.checked=t>0&&e===t)}componentWillLoad(){var e;this.table=this.host.closest("mds-table"),this.hasActions=null!=(null===(e=this.table)||void 0===e?void 0:e.querySelector('mds-table-row > [slot="action"]'))}render(){return s(i,{key:"baddc3d097dcd80328e41f6e6ce8e0b2715d9106",role:"row","pref-animation":r.state.animation},this.selectable&&s("mds-table-cell",{key:"8a41dc518880eacc33c2ffb28b0fef809dbfe4aa",class:"selection",role:"columnheader"},s("div",{key:"4c4a38797cb22651e9f5b0b12a82e89685bf0425",class:"checkbox-wrapper"},s("mds-input-switch",{key:"7d7bc20272297d092e1a40781c87716a352da40d",class:"checkbox",title:this.t.get(this.selectAll?"selectNoneRows":"selectAllRows"),type:"checkbox",onMdsInputSwitchChange:this.handleSelectAllChange,indeterminate:this.indeterminate}))),s("slot",{key:"2599339021e0e24c57252cbcb772efcfb1366907"}),this.hasActions&&s("mds-table-header-cell",{key:"6dbca32874f7ea85c0d21f3e0e4b433f5a0d3553",part:"actions",class:"actions",label:this.t.get("actions")}))}get host(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell,mds-table-header-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-transition-duration:var(--duration-200,.2s);--private-table-header-transition-duration:var(--mds-table-header-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;-webkit-transition-duration:var(--private-table-header-transition-duration);transition-duration:var(--private-table-header-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.actions{text-align:right}.selection{vertical-align:middle}.checkbox-wrapper{display:flex}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-transition-duration:0s}}'}},[257,"mds-table-header",{selectable:[4],selectAll:[32],hasActions:[32],indeterminate:[32],hasSelection:[32],setSelection:[64]}]),y=w,k=function(){"undefined"!=typeof customElements&&["mds-table-header","mds-button","mds-icon","mds-input-switch","mds-spinner","mds-table-cell","mds-table-header-cell","mds-text"].forEach((e=>{switch(e){case"mds-table-header":customElements.get(a(e))||customElements.define(a(e),w);break;case"mds-button":customElements.get(a(e))||n();break;case"mds-icon":customElements.get(a(e))||l();break;case"mds-input-switch":customElements.get(a(e))||c();break;case"mds-spinner":customElements.get(a(e))||d();break;case"mds-table-cell":customElements.get(a(e))||m();break;case"mds-table-header-cell":customElements.get(a(e))||h();break;case"mds-text":customElements.get(a(e))||p()}}))};export{y as MdsTableHeader,k as defineCustomElement}
1
+ import{p as e,H as t,h as s,c as i,t as a}from"./p-BhFTcUD0.js";import{L as o}from"./p-Bss3F51Q.js";import{p as r}from"./p-CvIFS8oA.js";import{d as n}from"./p-kff6xSdW.js";import{d as l}from"./p-qketFgr0.js";import{d}from"./p-OPg_Naue.js";import{d as c}from"./p-C58NKMEE.js";import{d as m}from"./p-BSxuG1vZ.js";import{d as h}from"./p-BBhbQT2f.js";import{d as p}from"./p-BZFyAX-6.js";var b={actions:"Ενέργεια",selectAllRows:"Επιλογή όλων των γραμμών",selectNoneRows:"Αποεπιλογή όλων των γραμμών"},u={actions:"Action",selectAllRows:"Select all rows",selectNoneRows:"Deselect all rows"},f={actions:"Acción",selectAllRows:"Seleccionar todas las filas",selectNoneRows:"Deseleccionar todas las filas"},v={actions:"Azione",selectAllRows:"Seleziona tutte le righe",selectNoneRows:"Deseleziona tutte le righe"};const w=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectAll=!1,this.hasActions=!1,this.indeterminate=!1,this.hasSelection=!1,this.t=new o({el:b,en:u,es:f,it:v}),this.handleSelectAllChange=e=>{var t,s;this.selectAll=!!this.indeterminate||null!==(t=e.detail.checked)&&void 0!==t&&t,this.indeterminate=!1,null===(s=this.table)||void 0===s||s.selectAll(this.selectAll)}}async setSelection(e,t){var s,i;this.indeterminate=0!==e&&e!==t,null!==(s=this.checkboxEl)&&void 0!==s||(this.checkboxEl=null===(i=this.host.shadowRoot)||void 0===i?void 0:i.querySelector(".checkbox")),this.checkboxEl&&(this.checkboxEl.checked=t>0&&e===t)}componentWillLoad(){var e;this.table=this.host.closest("mds-table"),this.hasActions=null!=(null===(e=this.table)||void 0===e?void 0:e.querySelector('mds-table-row > [slot="action"]'))}render(){return s(i,{key:"baddc3d097dcd80328e41f6e6ce8e0b2715d9106",role:"row","pref-animation":r.state.animation},this.selectable&&s("mds-table-cell",{key:"8a41dc518880eacc33c2ffb28b0fef809dbfe4aa",class:"selection",role:"columnheader"},s("div",{key:"4c4a38797cb22651e9f5b0b12a82e89685bf0425",class:"checkbox-wrapper"},s("mds-input-switch",{key:"7d7bc20272297d092e1a40781c87716a352da40d",class:"checkbox",title:this.t.get(this.selectAll?"selectNoneRows":"selectAllRows"),type:"checkbox",onMdsInputSwitchChange:this.handleSelectAllChange,indeterminate:this.indeterminate}))),s("slot",{key:"2599339021e0e24c57252cbcb772efcfb1366907"}),this.hasActions&&s("mds-table-header-cell",{key:"6dbca32874f7ea85c0d21f3e0e4b433f5a0d3553",part:"actions",class:"actions",label:this.t.get("actions")}))}get host(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell,mds-table-header-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-header-transition-duration:var(--duration-200,.2s);--private-table-header-transition-duration:var(--mds-table-header-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));border-bottom:var(--private-cell-border-width) solid var(--private-cell-border-color);display:table-row;overflow:hidden;-webkit-transition-duration:var(--private-table-header-transition-duration);transition-duration:var(--private-table-header-transition-duration);transition-property:border-color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.actions{text-align:right}.selection{vertical-align:middle}.checkbox-wrapper{display:flex}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-header-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-header-transition-duration:0s}}'}},[257,"mds-table-header",{selectable:[4],selectAll:[32],hasActions:[32],indeterminate:[32],hasSelection:[32],setSelection:[64]}]),y=w,k=function(){"undefined"!=typeof customElements&&["mds-table-header","mds-button","mds-icon","mds-input-switch","mds-spinner","mds-table-cell","mds-table-header-cell","mds-text"].forEach((e=>{switch(e){case"mds-table-header":customElements.get(a(e))||customElements.define(a(e),w);break;case"mds-button":customElements.get(a(e))||n();break;case"mds-icon":customElements.get(a(e))||l();break;case"mds-input-switch":customElements.get(a(e))||d();break;case"mds-spinner":customElements.get(a(e))||c();break;case"mds-table-cell":customElements.get(a(e))||m();break;case"mds-table-header-cell":customElements.get(a(e))||h();break;case"mds-text":customElements.get(a(e))||p()}}))};export{y as MdsTableHeader,k as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as t,h as e,c as r,t as o}from"./p-BhFTcUD0.js";import{h as s}from"./p-CsgCQiHG.js";import{c as i}from"./p-ChV9xqsO.js";import{L as n}from"./p-Bss3F51Q.js";import{i as l}from"./p-Dje8Mggf.js";import{p as d}from"./p-CvIFS8oA.js";import{d as c}from"./p-CatD1iUY.js";import{d as m}from"./p-CBLAz3_J.js";import{d as b}from"./p-BSxuG1vZ.js";import{d as u}from"./p-B9DJLgwr.js";var f={selectRow:"Επιλογή γραμμής",unselectRow:"Αποεπιλογή γραμμής"},v={selectRow:"Select row",unselectRow:"Deselect row"},h={selectRow:"Seleccionar fila",unselectRow:"Deseleccionar fila"},p={selectRow:"Seleziona riga",unselectRow:"Deseleziona riga"};const g=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new n({el:f,en:v,es:h,it:p}),this.selectable=void 0,this.onActionSlotChange=()=>{this.hasActions=s(this.host,"action")},this.handleSelectionChange=a=>{var t;this.selected=a.detail.checked,null===(t=this.host.closest("mds-table"))||void 0===t||t.updateSelection()}}componentWillLoad(){this.hasActions=s(this.host,"action")}componentDidLoad(){this.actions&&this.initObserver(this.actions)}initObserver(a){this.observer=new ResizeObserver((a=>{var t,e,r;this.sizerWidth=(null!==(r=null===(e=null===(t=a[0].borderBoxSize)||void 0===t?void 0:t[0])||void 0===e?void 0:e.inlineSize)&&void 0!==r?r:0)+"px"})),this.observer.observe(a)}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){return e(r,{key:"91445d614b5efaca4be25d8dc8d8bb0538cd5593",role:"row","pref-animation":d.state.animation},this.selectable&&e("mds-table-cell",{key:"1131e129c560711e9ff07047c25d466f90d9dcca",class:"selection-cell"},e("div",{key:"9fa11c1034e8af890d46ee3892e0bfada6ea991d",class:"checkbox-wrapper"},e("mds-input-switch",{key:"4eb0ddb0aa7fad9988f7dc86faffa5a3a0c55ec1",title:this.t.get(this.selected?"unselectRow":"selectRow"),type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),e("slot",{key:"2a5b127a0807c8e8157b1ff852a9b8b1be05201b"}),l()&&e("mds-table-cell",{key:"cf667906f594fb43281494e87a0fe9ffeb2e8322",class:i("actions-cell","actions-cell--disable",!this.hasActions&&"actions-cell--hidden")},e("div",{key:"7b503843294bd545da0d99096cae7690108fdb1e",class:"actions"},e("slot",{key:"061c720ef290863dee361420a79787ffb41fe7d6",name:"action",onSlotchange:this.onActionSlotChange}))),!l()&&e("mds-table-cell",{key:"77820da87b9db6696b1d32f648f0a68241e72193",class:i("actions-cell",!this.hasActions&&"actions-cell--hidden")},e("div",{key:"0f0f584f8de818d31adb371ed6c294aef182b301",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),e("div",{key:"18505dd8b6199426bd08b5944336bd1405cdad3c",class:"actions-view"},e("div",{key:"8f61f4a774ca45f304d5fb3db75ff442d6336881",class:"actions",ref:a=>this.actions=a,style:{marginRight:`calc(${this.sizerWidth} + var(--mds-table-cell-padding))`}},e("slot",{key:"903ab2118cf6c450e9065a5d9ae5773ab6f3f96e",name:"action",onSlotchange:this.onActionSlotChange})))))}get host(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-row-color-hover:var(--mds-table-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-background-hover:var(--mds-table-background,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background-alt:var(--mds-table-background-alt,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-actions-gap:var(--mds-table-actions-gap,calc(var(--spacing,.0025rem)*400));--mds-table-row-transition-duration:var(--duration-200,.2s);--private-table-row-transition-duration:var(--mds-table-row-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-duration:var(--private-table-row-transition-duration);transition-duration:var(--private-table-row-transition-duration);transition-property:color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.actions-view{display:flex;justify-content:end;pointer-events:none;position:absolute}.actions,.actions-view{align-items:center;inset:0}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);border-top-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);display:inline-flex;gap:var(--mds-table-row-actions-gap,calc(var(--spacing,.0025rem)*400));margin-right:100%;padding:calc(var(--mds-table-border-width)*2);padding-right:0;pointer-events:auto;position:sticky;transform:translate(100%);transition-duration:.5s;transition-property:transform,background-color,padding-right;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:hover) .actions{transform:translate(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);transform:translate(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);transform:translate(0)}:host(:not([interactive]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))))}:host([selection]:not([interactive]):not([selected]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static!important}.actions-cell--disable .actions{margin-right:0!important;transform:translate(0)!important}.actions-cell--hidden{display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-row-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-row-transition-duration:0s}}'}},[257,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],selection:[516],value:[520],hasActions:[32],sizerWidth:[32]}]),w=g,k=function(){"undefined"!=typeof customElements&&["mds-table-row","mds-icon","mds-input-switch","mds-table-cell","mds-text"].forEach((a=>{switch(a){case"mds-table-row":customElements.get(o(a))||customElements.define(o(a),g);break;case"mds-icon":customElements.get(o(a))||c();break;case"mds-input-switch":customElements.get(o(a))||m();break;case"mds-table-cell":customElements.get(o(a))||b();break;case"mds-text":customElements.get(o(a))||u()}}))};export{w as MdsTableRow,k as defineCustomElement}
1
+ import{p as a,H as t,h as e,c as r,t as o}from"./p-BhFTcUD0.js";import{h as s}from"./p-CsgCQiHG.js";import{c as i}from"./p-ChV9xqsO.js";import{L as n}from"./p-Bss3F51Q.js";import{i as l}from"./p-Dje8Mggf.js";import{p as d}from"./p-CvIFS8oA.js";import{d as c}from"./p-qketFgr0.js";import{d as m}from"./p-OPg_Naue.js";import{d as b}from"./p-BSxuG1vZ.js";import{d as u}from"./p-BZFyAX-6.js";var f={selectRow:"Επιλογή γραμμής",unselectRow:"Αποεπιλογή γραμμής"},v={selectRow:"Select row",unselectRow:"Deselect row"},h={selectRow:"Seleccionar fila",unselectRow:"Deseleccionar fila"},p={selectRow:"Seleziona riga",unselectRow:"Deseleziona riga"};const g=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new n({el:f,en:v,es:h,it:p}),this.selectable=void 0,this.onActionSlotChange=()=>{this.hasActions=s(this.host,"action")},this.handleSelectionChange=a=>{var t;this.selected=a.detail.checked,null===(t=this.host.closest("mds-table"))||void 0===t||t.updateSelection()}}componentWillLoad(){this.hasActions=s(this.host,"action")}componentDidLoad(){this.actions&&this.initObserver(this.actions)}initObserver(a){this.observer=new ResizeObserver((a=>{var t,e,r;this.sizerWidth=(null!==(r=null===(e=null===(t=a[0].borderBoxSize)||void 0===t?void 0:t[0])||void 0===e?void 0:e.inlineSize)&&void 0!==r?r:0)+"px"})),this.observer.observe(a)}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){return e(r,{key:"91445d614b5efaca4be25d8dc8d8bb0538cd5593",role:"row","pref-animation":d.state.animation},this.selectable&&e("mds-table-cell",{key:"1131e129c560711e9ff07047c25d466f90d9dcca",class:"selection-cell"},e("div",{key:"9fa11c1034e8af890d46ee3892e0bfada6ea991d",class:"checkbox-wrapper"},e("mds-input-switch",{key:"4eb0ddb0aa7fad9988f7dc86faffa5a3a0c55ec1",title:this.t.get(this.selected?"unselectRow":"selectRow"),type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),e("slot",{key:"2a5b127a0807c8e8157b1ff852a9b8b1be05201b"}),l()&&e("mds-table-cell",{key:"cf667906f594fb43281494e87a0fe9ffeb2e8322",class:i("actions-cell","actions-cell--disable",!this.hasActions&&"actions-cell--hidden")},e("div",{key:"7b503843294bd545da0d99096cae7690108fdb1e",class:"actions"},e("slot",{key:"061c720ef290863dee361420a79787ffb41fe7d6",name:"action",onSlotchange:this.onActionSlotChange}))),!l()&&e("mds-table-cell",{key:"77820da87b9db6696b1d32f648f0a68241e72193",class:i("actions-cell",!this.hasActions&&"actions-cell--hidden")},e("div",{key:"0f0f584f8de818d31adb371ed6c294aef182b301",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),e("div",{key:"18505dd8b6199426bd08b5944336bd1405cdad3c",class:"actions-view"},e("div",{key:"8f61f4a774ca45f304d5fb3db75ff442d6336881",class:"actions",ref:a=>this.actions=a,style:{marginRight:`calc(${this.sizerWidth} + var(--mds-table-cell-padding))`}},e("slot",{key:"903ab2118cf6c450e9065a5d9ae5773ab6f3f96e",name:"action",onSlotchange:this.onActionSlotChange})))))}get host(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-input-switch,mds-table-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-row-color-hover:var(--mds-table-color,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-color-alt:var(--mds-table-color-alt,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))));--mds-table-row-background-hover:var(--mds-table-background,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background-alt:var(--mds-table-background-alt,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-actions-gap:var(--mds-table-actions-gap,calc(var(--spacing,.0025rem)*400));--mds-table-row-transition-duration:var(--duration-200,.2s);--private-table-row-transition-duration:var(--mds-table-row-transition-duration);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-duration:var(--private-table-row-transition-duration);transition-duration:var(--private-table-row-transition-duration);transition-property:color;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))));--mds-table-row-color:var(--mds-table-row-color-hover,rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5)))))}.actions-view{display:flex;justify-content:end;pointer-events:none;position:absolute}.actions,.actions-view{align-items:center;inset:0}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);border-top-left-radius:calc(var(--radius-lg,16px) + var(--mds-table-border-width)*2);display:inline-flex;gap:var(--mds-table-row-actions-gap,calc(var(--spacing,.0025rem)*400));margin-right:100%;padding:calc(var(--mds-table-border-width)*2);padding-right:0;pointer-events:auto;position:sticky;transform:translate(100%);transition-duration:.5s;transition-property:transform,background-color,padding-right;-webkit-transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}:host(:hover) .actions{transform:translate(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);transform:translate(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);transform:translate(0)}:host(:not([interactive]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover,rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242)))))}:host([selection]:not([interactive]):not([selected]):hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static!important}.actions-cell--disable .actions{margin-right:0!important;transform:translate(0)!important}.actions-cell--hidden{display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-row-transition-duration:0s}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-row-transition-duration:0s}}'}},[257,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],selection:[516],value:[520],hasActions:[32],sizerWidth:[32]}]),w=g,k=function(){"undefined"!=typeof customElements&&["mds-table-row","mds-icon","mds-input-switch","mds-table-cell","mds-text"].forEach((a=>{switch(a){case"mds-table-row":customElements.get(o(a))||customElements.define(o(a),g);break;case"mds-icon":customElements.get(o(a))||c();break;case"mds-input-switch":customElements.get(o(a))||m();break;case"mds-table-cell":customElements.get(o(a))||b();break;case"mds-text":customElements.get(o(a))||u()}}))};export{w as MdsTableRow,k as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as e,h as r,c as s,t as i}from"./p-BhFTcUD0.js";import{c as o}from"./p-ChV9xqsO.js";import{L as n}from"./p-Bss3F51Q.js";import{p as d}from"./p-CvIFS8oA.js";import{d as l}from"./p-DaI5QqNu.js";import{d as c}from"./p-B9DJLgwr.js";var m={batchActions:"Επιλεγμένα στοιχεία"},b={batchActions:"Selected items"},h={batchActions:"Elementos seleccionados"},u={batchActions:"Elementi selezionati"};const v=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectionEvent=e(this,"mdsTableSelectionChange",7),this.hasBatchActions=!1,this.cellsWidth=0,this.selectedRows=[],this.t=new n({el:m,en:b,es:h,it:u}),this.updateInteractive=()=>{var t;this.body&&(this.body.interactive=this.interactive),null===(t=this.rows)||void 0===t||t.forEach((t=>{t.interactive=this.interactive}))},this.updateCellsSize=()=>{var t,a;const e=null===(t=this.rows)||void 0===t?void 0:t[0];if(!e)return;const r=e.querySelectorAll("mds-table-cell"),s=null===(a=e.shadowRoot)||void 0===a?void 0:a.querySelector(".selection-cell");this.cellsWidth=null!=s?s.offsetWidth:0,r.forEach((t=>{this.cellsWidth+=t.offsetWidth}))},this.hasActions=()=>(this.updateCellsSize(),null!==this.host.querySelector('mds-table-row > [slot="action"]')),this.handleSelection=()=>{var t;null===(t=this.rows)||void 0===t||t.forEach((t=>{t.selectable=this.selectable}))},this.handleActions=()=>{var t;this.updateCellsSize();const a=this.scrollWrapper.offsetWidth+this.scrollWrapper.scrollLeft<this.cellsWidth;null===(t=this.rows)||void 0===t||t.forEach((t=>{t.overlayActions=a}))},this.querySlottedElements=()=>{var t;this.body=this.host.querySelector("mds-table-body"),this.header=this.host.querySelector("mds-table-header"),this.rows=this.host.querySelectorAll("mds-table-row"),this.body&&(null===(t=this.tableBodyObserver)||void 0===t||t.observe(this.body,{childList:!0}))},this.updateSlottedElements=()=>{this.querySlottedElements(),this.updateInteractive(),this.handleSelection()}}onTableInteractive(){this.updateInteractive()}onTableSelectable(t){this.handleSelection(),this.header&&(this.header.selectable=t)}async updateSelection(){var t;this.selectable&&this.rows&&(this.selectedRows=[],this.rows.forEach(((t,a)=>{t.selected&&this.selectedRows.push({index:a,value:t.value})})),this.selectionEvent.emit({rows:this.selectedRows}),null===(t=this.header)||void 0===t||t.setSelection(this.selectedRows.length,this.rows.length),this.selection=this.selectedRows.length>0,this.body&&(this.body.selection=this.selection),this.rows.forEach((t=>{t.selection=this.selection})))}async selectAll(t=!0){this.selectable&&this.rows&&(this.rows.forEach((a=>{a.selected=t})),this.updateSelection())}componentWillLoad(){this.hasBatchActions=Array.from(this.host.children).some((t=>"batch-action"===t.getAttribute("slot"))),"undefined"!=typeof MutationObserver&&(this.tableBodyObserver=new MutationObserver((()=>{this.updateSlottedElements()}))),this.querySlottedElements()}componentDidLoad(){var t;if(this.header&&(this.header.selectable=this.selectable),this.hasActions()){const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".table-wrapper");if(!a)throw Error("Table element table-wrapper not found");this.scrollWrapper=a,this.scrollWrapper.addEventListener("scroll",this.handleActions),this.resizeObserver=new ResizeObserver(this.handleActions),this.resizeObserver.observe(this.host),this.handleActions()}}disconnectedCallback(){var t,a;this.host.removeEventListener("scroll",this.handleActions),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(a=this.tableBodyObserver)||void 0===a||a.disconnect()}render(){return r(s,{key:"b9434d7670ce2cf0a80864b9f04355d0928aebc0","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("div",{key:"e624db0d0988b9cb11139658af6f15b6837da8dc",class:"table-wrapper",part:"table-wrapper"},r("table",{key:"b88d9f50ded8f0d359c76ab1430f906e29954477",class:o("table",this.interactive&&"table--interactive"),role:"table",part:"table"},r("slot",{key:"007e17645485c21337c033b3ab83dcb23b538950",onSlotchange:this.updateSlottedElements}))),this.selectable&&this.hasBatchActions&&r("div",{key:"9ed14501086fa19aac40c1f1f2f5fc259d91f932",class:o("batch-actions-wrapper",this.selectedRows.length>0?"batch-actions-wrapper--has-selected-rows":""),part:"batch-actions-wrapper"},r("div",{key:"b95712f69a1a666d0b82375da4b9a126de76a745",class:"batch-actions",part:"batch-actions"},r("div",{key:"16db165f1cea1c36d25607894445e8bff51c453a",class:"batch-actions-header"},r("mds-text",{key:"a4c1f4baafcf80d6c33430cd52f101328b87169a",class:"batch-actions-label",typography:"label"},this.t.get("batchActions")),r("mds-badge",{key:"3274e721adcca4d74cedd0ea68d8706c310ebd06",label:""+this.selectedRows.length,variant:"dark",tone:"outline",typography:"label"})),r("slot",{key:"06c76052c4c5cab416f95fc6b10425d9ae54060d",name:"batch-action"}))))}get host(){return this}static get watchers(){return{interactive:[{onTableInteractive:0}],selectable:[{onTableSelectable:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-table-body,mds-table-footer,mds-table-header):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-transition-duration:var(--duration-300,.3s);--private-table-transition-duration:var(--mds-table-transition-duration);--mds-table-actions-gap:calc(var(--spacing,.0025rem)*200);--mds-table-background-alt:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-table-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-table-border-color:rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196))));--mds-table-border-width:2px;--mds-table-cell-padding:calc(var(--spacing,.0025rem)*400);--mds-table-color-alt:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-table-batch-actions-width:calc(var(--spacing,.0025rem)*4800);--private-cell-border-color:var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));--private-cell-border-width:var(--mds-table-border-width);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background-alt);border-color:var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);border:var(--mds-table-border-width) solid var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))))!important;display:flex;overflow:hidden;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,color}.table-wrapper{background-color:var(--mds-table-background);corner-shape:inherit;display:flex;overflow:auto;width:100%}.table{border-collapse:initial;border-spacing:0;width:100%}.batch-actions-wrapper{corner-shape:inherit;display:flex;flex-shrink:0;max-width:0;-webkit-transition-duration:var(--private-table-transition-duration);transition-duration:var(--private-table-transition-duration);transition-property:max-width;-webkit-transition-timing-function:var(--ease-in-out-circ,cubic-bezier(.785,.135,.15,.86));transition-timing-function:var(--ease-in-out-circ,cubic-bezier(.785,.135,.15,.86));width:100%}.batch-actions-wrapper--has-selected-rows{max-width:var(--mds-table-batch-actions-width)}.batch-actions-header{align-items:center;display:flex;justify-content:space-between;padding:calc(var(--spacing,.0025rem)*300)}.batch-actions{background-color:var(--mds-table-background);border-left:var(--mds-table-border-width) solid var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));box-sizing:border-box;display:grid;flex-grow:1;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content;grid-template-columns:repeat(1,minmax(1px,100%));min-width:var(--mds-table-batch-actions-width);padding:calc(var(--mds-table-cell-padding)/2);width:100%}::slotted([slot=batch-action]){justify-content:start;width:100%}:host([selection]:not([selection=false])){--mds-table-body-background:var(--mds-table-body-background-hover)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-transition-duration:0s}:host([pref-contrast=more][pref-mode=dark]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-transition-duration:0s}}@media (prefers-contrast:more){:host([pref-contrast=system][pref-mode=dark]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}@media (prefers-color-scheme:dark){:host([pref-contrast=more][pref-mode=system]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[257,"mds-table",{interactive:[4],selectable:[4],selection:[1540],selectedRows:[32],updateSelection:[64],selectAll:[64]},void 0,{interactive:[{onTableInteractive:0}],selectable:[{onTableSelectable:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["mds-table","mds-badge","mds-text"].forEach((t=>{switch(t){case"mds-table":customElements.get(i(t))||customElements.define(i(t),v);break;case"mds-badge":customElements.get(i(t))||l();break;case"mds-text":customElements.get(i(t))||c()}}))};export{f as MdsTable,p as defineCustomElement}
1
+ import{p as t,H as a,d as e,h as r,c as s,t as i}from"./p-BhFTcUD0.js";import{c as o}from"./p-ChV9xqsO.js";import{L as n}from"./p-Bss3F51Q.js";import{p as d}from"./p-CvIFS8oA.js";import{d as l}from"./p-C1xZO_fq.js";import{d as c}from"./p-BZFyAX-6.js";var m={batchActions:"Επιλεγμένα στοιχεία"},b={batchActions:"Selected items"},h={batchActions:"Elementos seleccionados"},u={batchActions:"Elementi selezionati"};const v=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.selectionEvent=e(this,"mdsTableSelectionChange",7),this.hasBatchActions=!1,this.cellsWidth=0,this.selectedRows=[],this.t=new n({el:m,en:b,es:h,it:u}),this.updateInteractive=()=>{var t;this.body&&(this.body.interactive=this.interactive),null===(t=this.rows)||void 0===t||t.forEach((t=>{t.interactive=this.interactive}))},this.updateCellsSize=()=>{var t,a;const e=null===(t=this.rows)||void 0===t?void 0:t[0];if(!e)return;const r=e.querySelectorAll("mds-table-cell"),s=null===(a=e.shadowRoot)||void 0===a?void 0:a.querySelector(".selection-cell");this.cellsWidth=null!=s?s.offsetWidth:0,r.forEach((t=>{this.cellsWidth+=t.offsetWidth}))},this.hasActions=()=>(this.updateCellsSize(),null!==this.host.querySelector('mds-table-row > [slot="action"]')),this.handleSelection=()=>{var t;null===(t=this.rows)||void 0===t||t.forEach((t=>{t.selectable=this.selectable}))},this.handleActions=()=>{var t;this.updateCellsSize();const a=this.scrollWrapper.offsetWidth+this.scrollWrapper.scrollLeft<this.cellsWidth;null===(t=this.rows)||void 0===t||t.forEach((t=>{t.overlayActions=a}))},this.querySlottedElements=()=>{var t;this.body=this.host.querySelector("mds-table-body"),this.header=this.host.querySelector("mds-table-header"),this.rows=this.host.querySelectorAll("mds-table-row"),this.body&&(null===(t=this.tableBodyObserver)||void 0===t||t.observe(this.body,{childList:!0}))},this.updateSlottedElements=()=>{this.querySlottedElements(),this.updateInteractive(),this.handleSelection()}}onTableInteractive(){this.updateInteractive()}onTableSelectable(t){this.handleSelection(),this.header&&(this.header.selectable=t)}async updateSelection(){var t;this.selectable&&this.rows&&(this.selectedRows=[],this.rows.forEach(((t,a)=>{t.selected&&this.selectedRows.push({index:a,value:t.value})})),this.selectionEvent.emit({rows:this.selectedRows}),null===(t=this.header)||void 0===t||t.setSelection(this.selectedRows.length,this.rows.length),this.selection=this.selectedRows.length>0,this.body&&(this.body.selection=this.selection),this.rows.forEach((t=>{t.selection=this.selection})))}async selectAll(t=!0){this.selectable&&this.rows&&(this.rows.forEach((a=>{a.selected=t})),this.updateSelection())}componentWillLoad(){this.hasBatchActions=Array.from(this.host.children).some((t=>"batch-action"===t.getAttribute("slot"))),"undefined"!=typeof MutationObserver&&(this.tableBodyObserver=new MutationObserver((()=>{this.updateSlottedElements()}))),this.querySlottedElements()}componentDidLoad(){var t;if(this.header&&(this.header.selectable=this.selectable),this.hasActions()){const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".table-wrapper");if(!a)throw Error("Table element table-wrapper not found");this.scrollWrapper=a,this.scrollWrapper.addEventListener("scroll",this.handleActions),this.resizeObserver=new ResizeObserver(this.handleActions),this.resizeObserver.observe(this.host),this.handleActions()}}disconnectedCallback(){var t,a;this.host.removeEventListener("scroll",this.handleActions),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(a=this.tableBodyObserver)||void 0===a||a.disconnect()}render(){return r(s,{key:"b9434d7670ce2cf0a80864b9f04355d0928aebc0","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("div",{key:"e624db0d0988b9cb11139658af6f15b6837da8dc",class:"table-wrapper",part:"table-wrapper"},r("table",{key:"b88d9f50ded8f0d359c76ab1430f906e29954477",class:o("table",this.interactive&&"table--interactive"),role:"table",part:"table"},r("slot",{key:"007e17645485c21337c033b3ab83dcb23b538950",onSlotchange:this.updateSlottedElements}))),this.selectable&&this.hasBatchActions&&r("div",{key:"9ed14501086fa19aac40c1f1f2f5fc259d91f932",class:o("batch-actions-wrapper",this.selectedRows.length>0?"batch-actions-wrapper--has-selected-rows":""),part:"batch-actions-wrapper"},r("div",{key:"b95712f69a1a666d0b82375da4b9a126de76a745",class:"batch-actions",part:"batch-actions"},r("div",{key:"16db165f1cea1c36d25607894445e8bff51c453a",class:"batch-actions-header"},r("mds-text",{key:"a4c1f4baafcf80d6c33430cd52f101328b87169a",class:"batch-actions-label",typography:"label"},this.t.get("batchActions")),r("mds-badge",{key:"3274e721adcca4d74cedd0ea68d8706c310ebd06",label:""+this.selectedRows.length,variant:"dark",tone:"outline",typography:"label"})),r("slot",{key:"06c76052c4c5cab416f95fc6b10425d9ae54060d",name:"batch-action"}))))}get host(){return this}static get watchers(){return{interactive:[{onTableInteractive:0}],selectable:[{onTableSelectable:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-table-body,mds-table-footer,mds-table-header):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-table-transition-duration:var(--duration-300,.3s);--private-table-transition-duration:var(--mds-table-transition-duration);--mds-table-actions-gap:calc(var(--spacing,.0025rem)*200);--mds-table-background-alt:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-table-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-table-border-color:rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196))));--mds-table-border-width:2px;--mds-table-cell-padding:calc(var(--spacing,.0025rem)*400);--mds-table-color-alt:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-table-batch-actions-width:calc(var(--spacing,.0025rem)*4800);--private-cell-border-color:var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));--private-cell-border-width:var(--mds-table-border-width);--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:var(--mds-table-background-alt);border-color:var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);border:var(--mds-table-border-width) solid var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))))!important;display:flex;overflow:hidden;-webkit-transition-duration:var(--duration-200,.2s);transition-duration:var(--duration-200,.2s);transition-property:background-color,border-color,color}.table-wrapper{background-color:var(--mds-table-background);corner-shape:inherit;display:flex;overflow:auto;width:100%}.table{border-collapse:initial;border-spacing:0;width:100%}.batch-actions-wrapper{corner-shape:inherit;display:flex;flex-shrink:0;max-width:0;-webkit-transition-duration:var(--private-table-transition-duration);transition-duration:var(--private-table-transition-duration);transition-property:max-width;-webkit-transition-timing-function:var(--ease-in-out-circ,cubic-bezier(.785,.135,.15,.86));transition-timing-function:var(--ease-in-out-circ,cubic-bezier(.785,.135,.15,.86));width:100%}.batch-actions-wrapper--has-selected-rows{max-width:var(--mds-table-batch-actions-width)}.batch-actions-header{align-items:center;display:flex;justify-content:space-between;padding:calc(var(--spacing,.0025rem)*300)}.batch-actions{background-color:var(--mds-table-background);border-left:var(--mds-table-border-width) solid var(--mds-table-border-color,rgb(var(--magma-border-default,var(--magma-tint-border-default,var(--border-neutral-default,196 196 196)))));box-sizing:border-box;display:grid;flex-grow:1;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content;grid-template-columns:repeat(1,minmax(1px,100%));min-width:var(--mds-table-batch-actions-width);padding:calc(var(--mds-table-cell-padding)/2);width:100%}::slotted([slot=batch-action]){justify-content:start;width:100%}:host([selection]:not([selection=false])){--mds-table-body-background:var(--mds-table-body-background-hover)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-table-transition-duration:0s}:host([pref-contrast=more][pref-mode=dark]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-table-transition-duration:0s}}@media (prefers-contrast:more){:host([pref-contrast=system][pref-mode=dark]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}@media (prefers-color-scheme:dark){:host([pref-contrast=more][pref-mode=system]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-table-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))));--mds-table-body-background-hover:rgb(var(--magma-surface-default,var(--magma-tint-default,var(--surface-neutral-default,242 242 242))));--mds-table-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}}'}},[257,"mds-table",{interactive:[4],selectable:[4],selection:[1540],selectedRows:[32],updateSelection:[64],selectAll:[64]},void 0,{interactive:[{onTableInteractive:0}],selectable:[{onTableSelectable:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["mds-table","mds-badge","mds-text"].forEach((t=>{switch(t){case"mds-table":customElements.get(i(t))||customElements.define(i(t),v);break;case"mds-badge":customElements.get(i(t))||l();break;case"mds-text":customElements.get(i(t))||c()}}))};export{f as MdsTable,p as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as r}from"./p-B9DJLgwr.js";const s=o,p=r;export{s as MdsText,p as defineCustomElement}
1
+ import{M as o,d as s}from"./p-BZFyAX-6.js";const p=o,r=s;export{p as MdsText,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as o,h as r,c as s,t as e}from"./p-BhFTcUD0.js";import{c as i}from"./p-D8eZRaSQ.js";import{p as n}from"./p-CvIFS8oA.js";import{h as d}from"./p-CsgCQiHG.js";import{c as m}from"./p-ChV9xqsO.js";import{d as c}from"./p-B9DJLgwr.js";const p=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=o(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.reloadTimeListeners=t=>{"undefined"!=typeof window&&(void 0===this.duration||0===this.duration||Number.isNaN(this.duration)||t&&(this.removeTimeListener(),this.addTimeListener()))},this.removeTimeListener=()=>{window.clearInterval(this.timer),this.timer=0},this.addTimeListener=()=>{this.timer=window.setInterval((()=>{this.visible=!1,this.timerToastDismiss=window.setInterval((()=>{this.closedEvent.emit(),window.clearInterval(this.timerToastDismiss),this.timerToastDismiss=0}),this.cssDismissAnimationDuration)}),this.duration)},this.onActionSlotChange=()=>{this.hasActions=d(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=i(t.getPropertyValue("--mds-tab-duration"))}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=d(this.hostElement,"action"),void 0===this.duration||0===this.duration||Number.isNaN(this.duration)||this.visible&&this.addTimeListener()}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t){this.reloadTimeListeners(t)}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){return r(s,{key:"8bdaf6b4880eade87650f72ad2cf02d8d5be4724","pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},r("div",{key:"9d5d8972d21dbc40e265317256e2f28241af48e3",class:m("dialog",this.position&&"to-"+this.position,this.visible&&"dialog--visible")},r("slot",{key:"f256f3a18b80991a3d3286310b0cd5df0020f88f",name:"icon"}),this.hasText&&r("mds-text",{key:"f52eba42e9bd4c0c3e3010ea401616bc44b5ac10",typography:"caption"},r("slot",{key:"f0b92de1ea1fe9227d5f2c04cf2bead2b925a2fd"})),r("div",{key:"56f387b1d634e5703f9f263e3655437d3725d76e",class:m("actions",!this.hasActions&&"actions--hidden")},r("slot",{key:"7bb9ad600b6768b0b3edb21846f6e472825de9c9",name:"action",onSlotchange:this.onActionSlotChange}))))}get hostElement(){return this}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));align-items:center;background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))));border-radius:var(--radius-xl,20px);-webkit-box-shadow:var(--mds-toast-shadow);box-shadow:var(--mds-toast-shadow);display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;-webkit-transition-duration:var(--private-toast-transition-duration);transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));flex-shrink:0;-webkit-transition-duration:var(--private-toast-transition-duration-icon);transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'}},[257,"mds-toast",{duration:[1538],visible:[1540],variant:[513],tone:[513],position:[1537],hasActions:[32]},void 0,{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}]),v=p,g=function(){"undefined"!=typeof customElements&&["mds-toast","mds-text"].forEach((t=>{switch(t){case"mds-toast":customElements.get(e(t))||customElements.define(e(t),p);break;case"mds-text":customElements.get(e(t))||c()}}))};export{v as MdsToast,g as defineCustomElement}
1
+ import{p as t,H as a,d as o,h as r,c as s,t as e}from"./p-BhFTcUD0.js";import{c as i}from"./p-D8eZRaSQ.js";import{p as n}from"./p-CvIFS8oA.js";import{h as d}from"./p-CsgCQiHG.js";import{c as m}from"./p-ChV9xqsO.js";import{d as c}from"./p-BZFyAX-6.js";const p=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=o(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.hasDuration=()=>{var t;const a=null!==(t=this.duration)&&void 0!==t?t:0;return 0!==a&&!Number.isNaN(a)},this.reloadTimeListeners=t=>{"undefined"!=typeof window&&this.hasDuration()&&t&&(this.removeTimeListener(),this.addTimeListener())},this.removeTimeListener=()=>{window.clearInterval(this.timer),this.timer=0},this.addTimeListener=()=>{this.timer=window.setInterval((()=>{this.visible=!1,this.timerToastDismiss=window.setInterval((()=>{this.closedEvent.emit(),window.clearInterval(this.timerToastDismiss),this.timerToastDismiss=0}),this.cssDismissAnimationDuration)}),this.duration)},this.onActionSlotChange=()=>{this.hasActions=d(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=i(t.getPropertyValue("--mds-tab-duration"))}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=d(this.hostElement,"action"),this.hasDuration()&&this.visible&&this.addTimeListener()}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t){this.reloadTimeListeners(t)}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){return r(s,{key:"d043662b287519f10abe2a4568d2f3458b89857e","pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},r("div",{key:"5f8945ad6b39700172920d34c405d616c685de61",class:m("dialog",this.position&&"to-"+this.position,this.visible&&"dialog--visible")},r("slot",{key:"ad778db94450394931cfb554357e91cbf192fe66",name:"icon"}),this.hasText&&r("mds-text",{key:"43ac2cbcd4101ade9b03ec137ec36d512b9fd87e",typography:"caption"},r("slot",{key:"4ede3cb3db5c6f096fe66ed87f05a1e2deab2b24"})),r("div",{key:"d811c95881d28ccba3be66605efb8197235bc1ef",class:m("actions",!this.hasActions&&"actions--hidden")},r("slot",{key:"08e8d1cb3e62bf1eb104a3de3d473ca57a6991e9",name:"action",onSlotchange:this.onActionSlotChange}))))}get hostElement(){return this}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-duration:.3s;--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,.3s);--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));align-items:center;background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42)))));border-radius:var(--radius-xl,20px);-webkit-box-shadow:var(--mds-toast-shadow);box-shadow:var(--mds-toast-shadow);display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;-webkit-transition-duration:var(--private-toast-transition-duration);transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255)))));flex-shrink:0;-webkit-transition-duration:var(--private-toast-transition-duration-icon);transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--magma-tint-scale-02,var(--tone-neutral-02,42 42 42))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-toast-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--magma-tint-text-on-emphasis,var(--tone-neutral-seed,255 255 255))))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-toast-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,.3s));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'}},[257,"mds-toast",{duration:[1538],visible:[1540],variant:[513],tone:[513],position:[1537],hasActions:[32]},void 0,{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}]),v=p,u=function(){"undefined"!=typeof customElements&&["mds-toast","mds-text"].forEach((t=>{switch(t){case"mds-toast":customElements.get(e(t))||customElements.define(e(t),p);break;case"mds-text":customElements.get(e(t))||c()}}))};export{v as MdsToast,u as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-D8I1RblC.js";const p=o,r=s;export{p as MdsTooltip,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-DlHJvYE7.js";const p=o,r=s;export{p as MdsTooltip,r as defineCustomElement}