@maggioli-design-system/magma 2.0.0-beta.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1639) hide show
  1. package/README.md +37 -4
  2. package/dist/cjs/date-B28IitWe.js +24 -0
  3. package/dist/cjs/floating-controller-Cd_vNLLD.js +369 -0
  4. package/dist/cjs/floating-ui.dom-DflSHZIo.js +1688 -0
  5. package/dist/cjs/form-DTCBh5WK.js +22 -0
  6. package/dist/cjs/index--6wz7eWi.js +5183 -0
  7. package/dist/cjs/index.cjs.js +17 -0
  8. package/dist/cjs/keyboard-manager-C_Eaxw-C.js +52 -0
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/locale-CB5_Z7PE.js +816 -0
  11. package/dist/cjs/locale.it-CfUV2hxK.js +515 -0
  12. package/dist/cjs/magma-components.cjs.js +31 -4
  13. package/dist/cjs/mds-accordion-item.cjs.entry.js +7 -28
  14. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -17
  15. package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
  16. package/dist/cjs/mds-accordion.cjs.entry.js +5 -22
  17. package/dist/cjs/mds-author.cjs.entry.js +9 -4
  18. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +2 -2
  19. package/dist/cjs/mds-avatar-stack.cjs.entry.js +5 -4
  20. package/dist/cjs/mds-avatar.cjs.entry.js +8 -21
  21. package/dist/cjs/mds-badge.cjs.entry.js +5 -26
  22. package/dist/cjs/mds-banner_3.cjs.entry.js +35 -70
  23. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
  24. package/dist/cjs/mds-bibliography.cjs.entry.js +2 -2
  25. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +3 -3
  26. package/dist/cjs/mds-breadcrumb.cjs.entry.js +7 -15
  27. package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
  28. package/dist/cjs/mds-button-group.cjs.entry.js +3 -3
  29. package/dist/cjs/mds-button_3.cjs.entry.js +10 -32
  30. package/dist/cjs/mds-calendar_2.cjs.entry.js +123 -102
  31. package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
  32. package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
  33. package/dist/cjs/mds-card-header.cjs.entry.js +9 -4
  34. package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
  35. package/dist/cjs/mds-card.cjs.entry.js +4 -21
  36. package/dist/cjs/mds-details.cjs.entry.js +8 -18
  37. package/dist/cjs/mds-dropdown.cjs.entry.js +184 -58
  38. package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
  39. package/dist/cjs/mds-entity.cjs.entry.js +11 -23
  40. package/dist/cjs/mds-file-preview.cjs.entry.js +9 -37
  41. package/dist/cjs/mds-file.cjs.entry.js +7 -35
  42. package/dist/cjs/mds-filter-item.cjs.entry.js +6 -25
  43. package/dist/cjs/mds-filter.cjs.entry.js +19 -32
  44. package/dist/cjs/mds-header-bar.cjs.entry.js +11 -27
  45. package/dist/cjs/mds-header.cjs.entry.js +8 -22
  46. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  47. package/dist/cjs/mds-hr.cjs.entry.js +4 -17
  48. package/dist/cjs/mds-img.cjs.entry.js +8 -16
  49. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
  50. package/dist/cjs/mds-input-date-range.cjs.entry.js +57 -43
  51. package/dist/cjs/mds-input-date.cjs.entry.js +14 -44
  52. package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
  53. package/dist/cjs/mds-input-otp.cjs.entry.js +37 -3
  54. package/dist/cjs/mds-input-range.cjs.entry.js +9 -29
  55. package/dist/cjs/mds-input-select.cjs.entry.js +11 -41
  56. package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -55
  57. package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -40
  58. package/dist/cjs/mds-input-upload.cjs.entry.js +34 -36
  59. package/dist/cjs/mds-input.cjs.entry.js +23 -52
  60. package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
  61. package/dist/cjs/mds-keyboard.cjs.entry.js +5 -25
  62. package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -25
  63. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  64. package/dist/cjs/mds-label.cjs.entry.js +7 -29
  65. package/dist/cjs/mds-list-item.cjs.entry.js +4 -13
  66. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  67. package/dist/cjs/mds-mention.cjs.entry.js +38 -4
  68. package/dist/cjs/mds-modal.cjs.entry.js +54 -47
  69. package/dist/cjs/mds-note.cjs.entry.js +7 -35
  70. package/dist/cjs/mds-notification.cjs.entry.js +12 -14
  71. package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -20
  72. package/dist/cjs/mds-paginator.cjs.entry.js +27 -32
  73. package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -15
  74. package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -23
  75. package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -23
  76. package/dist/cjs/mds-pref-contrast.cjs.entry.js +10 -24
  77. package/dist/cjs/mds-pref-language-item.cjs.entry.js +27 -15
  78. package/dist/cjs/mds-pref-language.cjs.entry.js +38 -28
  79. package/dist/cjs/mds-pref-mode.cjs.entry.js +273 -0
  80. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +43 -0
  81. package/dist/cjs/mds-pref-theme.cjs.entry.js +147 -230
  82. package/dist/cjs/mds-pref.cjs.entry.js +40 -17
  83. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -25
  84. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -25
  85. package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -25
  86. package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
  87. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
  88. package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -25
  89. package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
  90. package/dist/cjs/mds-progress_2.cjs.entry.js +7 -33
  91. package/dist/cjs/mds-push-notification-item.cjs.entry.js +16 -39
  92. package/dist/cjs/mds-push-notification.cjs.entry.js +7 -20
  93. package/dist/cjs/mds-quote.cjs.entry.js +4 -13
  94. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
  95. package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -6
  96. package/dist/cjs/mds-separator.cjs.entry.js +4 -21
  97. package/dist/cjs/mds-status-bar.cjs.entry.js +4 -25
  98. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -25
  99. package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
  100. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -27
  101. package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -26
  102. package/dist/cjs/mds-tab_2.cjs.entry.js +14 -47
  103. package/dist/cjs/mds-table-body.cjs.entry.js +4 -13
  104. package/dist/cjs/mds-table-footer.cjs.entry.js +4 -13
  105. package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -13
  106. package/dist/cjs/mds-table-header.cjs.entry.js +19 -31
  107. package/dist/cjs/mds-table-row.cjs.entry.js +20 -29
  108. package/dist/cjs/mds-table.cjs.entry.js +60 -50
  109. package/dist/cjs/mds-text.cjs.entry.js +36 -21
  110. package/dist/cjs/mds-toast.cjs.entry.js +10 -27
  111. package/dist/cjs/mds-tooltip.cjs.entry.js +16 -27
  112. package/dist/cjs/mds-tree-item.cjs.entry.js +12 -14
  113. package/dist/cjs/mds-tree.cjs.entry.js +12 -6
  114. package/dist/cjs/mds-url-view.cjs.entry.js +21 -41
  115. package/dist/cjs/mds-usage.cjs.entry.js +5 -33
  116. package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
  117. package/dist/cjs/mds-zero.cjs.entry.js +4 -25
  118. package/dist/cjs/preference-eJcbLLAn.js +389 -0
  119. package/dist/cjs/slot-RmXfgH4P.js +69 -0
  120. package/dist/collection/collection-manifest.json +3 -3
  121. package/dist/collection/common/date.js +9 -1
  122. package/dist/collection/common/file.js +13 -10
  123. package/dist/collection/common/floating-controller.js +175 -9
  124. package/dist/collection/common/form.js +18 -0
  125. package/dist/collection/common/keyboard-manager.js +5 -5
  126. package/dist/collection/common/locale.js +9 -31
  127. package/dist/collection/common/preference.js +83 -59
  128. package/dist/collection/common/slot.js +14 -1
  129. package/dist/collection/common/yugop/random-text.js +12 -3
  130. package/dist/collection/components/mds-accordion/mds-accordion.css +9 -65
  131. package/dist/collection/components/mds-accordion/mds-accordion.js +3 -27
  132. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +63 -81
  133. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -31
  134. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -26
  135. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +50 -36
  136. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -16
  137. package/dist/collection/components/mds-author/mds-author.css +4 -0
  138. package/dist/collection/components/mds-author/mds-author.js +14 -2
  139. package/dist/collection/components/mds-avatar/mds-avatar.css +125 -111
  140. package/dist/collection/components/mds-avatar/mds-avatar.js +6 -21
  141. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +12 -84
  142. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +3 -2
  143. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -24
  144. package/dist/collection/components/mds-badge/mds-badge.css +168 -155
  145. package/dist/collection/components/mds-badge/mds-badge.js +2 -31
  146. package/dist/collection/components/mds-banner/mds-banner.css +149 -192
  147. package/dist/collection/components/mds-banner/mds-banner.js +10 -58
  148. package/dist/collection/components/mds-bibliography/mds-bibliography.css +6 -24
  149. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -70
  150. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -37
  151. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
  152. package/dist/collection/components/mds-button/mds-button.css +285 -333
  153. package/dist/collection/components/mds-button/mds-button.js +4 -24
  154. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +24 -34
  155. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
  156. package/dist/collection/components/mds-button-group/mds-button-group.css +13 -4
  157. package/dist/collection/components/mds-button-group/mds-button-group.js +2 -2
  158. package/dist/collection/components/mds-calendar/mds-calendar.css +13 -69
  159. package/dist/collection/components/mds-calendar/mds-calendar.js +150 -127
  160. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
  161. package/dist/collection/components/mds-card/mds-card.css +11 -35
  162. package/dist/collection/components/mds-card/mds-card.js +2 -22
  163. package/dist/collection/components/mds-card-content/mds-card-content.css +1 -0
  164. package/dist/collection/components/mds-card-footer/mds-card-footer.css +1 -0
  165. package/dist/collection/components/mds-card-header/mds-card-header.css +5 -0
  166. package/dist/collection/components/mds-card-header/mds-card-header.js +14 -2
  167. package/dist/collection/components/mds-card-media/mds-card-media.css +1 -1
  168. package/dist/collection/components/mds-chip/mds-chip.css +317 -278
  169. package/dist/collection/components/mds-chip/mds-chip.js +19 -61
  170. package/dist/collection/components/mds-details/mds-details.css +52 -28
  171. package/dist/collection/components/mds-details/mds-details.js +4 -16
  172. package/dist/collection/components/mds-dropdown/mds-dropdown.css +102 -121
  173. package/dist/collection/components/mds-dropdown/mds-dropdown.js +179 -59
  174. package/dist/collection/components/mds-emoji/asset/mia.svg +3 -3
  175. package/dist/collection/components/mds-emoji/mds-emoji.css +15 -179
  176. package/dist/collection/components/mds-emoji/mds-emoji.js +297 -177
  177. package/dist/collection/components/mds-entity/mds-entity.css +25 -76
  178. package/dist/collection/components/mds-entity/mds-entity.js +13 -24
  179. package/dist/collection/components/mds-file/mds-file.css +103 -79
  180. package/dist/collection/components/mds-file/mds-file.js +2 -56
  181. package/dist/collection/components/mds-file-preview/mds-file-preview.css +277 -218
  182. package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -62
  183. package/dist/collection/components/mds-filter/mds-filter.css +66 -78
  184. package/dist/collection/components/mds-filter/mds-filter.js +16 -33
  185. package/dist/collection/components/mds-filter-item/mds-filter-item.css +73 -53
  186. package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -29
  187. package/dist/collection/components/mds-header/mds-header.css +15 -68
  188. package/dist/collection/components/mds-header/mds-header.js +5 -22
  189. package/dist/collection/components/mds-header-bar/mds-header-bar.css +60 -31
  190. package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -28
  191. package/dist/collection/components/mds-help/mds-help.css +1 -19
  192. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +13 -104
  193. package/dist/collection/components/mds-hr/mds-hr.css +6 -18
  194. package/dist/collection/components/mds-hr/mds-hr.js +2 -21
  195. package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
  196. package/dist/collection/components/mds-img/mds-img.css +12 -48
  197. package/dist/collection/components/mds-img/mds-img.js +5 -36
  198. package/dist/collection/components/mds-input/mds-input.css +120 -158
  199. package/dist/collection/components/mds-input/mds-input.js +33 -65
  200. package/dist/collection/components/mds-input-date/mds-input-date.css +107 -124
  201. package/dist/collection/components/mds-input-date/mds-input-date.js +49 -62
  202. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +100 -90
  203. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +77 -62
  204. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
  205. package/dist/collection/components/mds-input-field/mds-input-field.css +33 -45
  206. package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
  207. package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
  208. package/dist/collection/components/mds-input-range/mds-input-range.css +61 -19
  209. package/dist/collection/components/mds-input-range/mds-input-range.js +7 -31
  210. package/dist/collection/components/mds-input-select/mds-input-select.css +123 -156
  211. package/dist/collection/components/mds-input-select/mds-input-select.js +28 -61
  212. package/dist/collection/components/mds-input-switch/mds-input-switch.css +91 -250
  213. package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -63
  214. package/dist/collection/components/mds-input-tip/mds-input-tip.css +45 -31
  215. package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -16
  216. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +84 -56
  217. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -54
  218. package/dist/collection/components/mds-input-upload/mds-input-upload.css +26 -37
  219. package/dist/collection/components/mds-input-upload/mds-input-upload.js +30 -51
  220. package/dist/collection/components/mds-keyboard/mds-keyboard.css +32 -126
  221. package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -46
  222. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
  223. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
  224. package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
  225. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +103 -40
  226. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -27
  227. package/dist/collection/components/mds-label/mds-label.css +265 -354
  228. package/dist/collection/components/mds-label/mds-label.js +3 -54
  229. package/dist/collection/components/mds-list-item/mds-list-item.css +3 -9
  230. package/dist/collection/components/mds-list-item/mds-list-item.js +2 -16
  231. package/dist/collection/components/mds-mention/mds-mention.css +19 -10
  232. package/dist/collection/components/mds-mention/mds-mention.js +62 -2
  233. package/dist/collection/components/mds-modal/mds-modal.css +71 -101
  234. package/dist/collection/components/mds-modal/mds-modal.js +72 -45
  235. package/dist/collection/components/mds-note/mds-note.css +220 -198
  236. package/dist/collection/components/mds-note/mds-note.js +3 -61
  237. package/dist/collection/components/mds-notification/mds-notification.css +55 -89
  238. package/dist/collection/components/mds-notification/mds-notification.js +9 -16
  239. package/dist/collection/components/mds-paginator/mds-paginator.css +71 -35
  240. package/dist/collection/components/mds-paginator/mds-paginator.js +24 -37
  241. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +78 -96
  242. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -24
  243. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +9 -9
  244. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -38
  245. package/dist/collection/components/mds-pref/mds-pref.js +40 -40
  246. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +50 -6
  247. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -47
  248. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +12 -12
  249. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -47
  250. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +4 -4
  251. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +7 -48
  252. package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
  253. package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
  254. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
  255. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
  256. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
  257. package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
  258. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
  259. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +183 -239
  260. package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
  261. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
  262. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
  263. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  264. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +56 -47
  265. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -31
  266. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +71 -67
  267. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -31
  268. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +66 -42
  269. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +3 -28
  270. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  271. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +63 -25
  272. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +3 -28
  273. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -31
  274. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  275. package/dist/collection/components/mds-progress/mds-progress.css +100 -94
  276. package/dist/collection/components/mds-progress/mds-progress.js +2 -27
  277. package/dist/collection/components/mds-push-notification/mds-push-notification.css +7 -37
  278. package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -21
  279. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +172 -136
  280. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +13 -60
  281. package/dist/collection/components/mds-quote/mds-quote.css +2 -2
  282. package/dist/collection/components/mds-quote/mds-quote.js +2 -16
  283. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
  284. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
  285. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
  286. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  287. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
  288. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
  289. package/dist/collection/components/mds-separator/mds-separator.css +12 -42
  290. package/dist/collection/components/mds-separator/mds-separator.js +2 -26
  291. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -9
  292. package/dist/collection/components/mds-spinner/mds-spinner.js +2 -16
  293. package/dist/collection/components/mds-status-bar/mds-status-bar.css +13 -23
  294. package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -31
  295. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +8 -56
  296. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
  297. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +68 -120
  298. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -44
  299. package/dist/collection/components/mds-tab/mds-tab.css +85 -189
  300. package/dist/collection/components/mds-tab/mds-tab.js +5 -27
  301. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +54 -10
  302. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -31
  303. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +62 -44
  304. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -27
  305. package/dist/collection/components/mds-tab-item/mds-tab-item.css +22 -37
  306. package/dist/collection/components/mds-tab-item/mds-tab-item.js +23 -22
  307. package/dist/collection/components/mds-table/mds-table.css +86 -130
  308. package/dist/collection/components/mds-table/mds-table.js +57 -52
  309. package/dist/collection/components/mds-table-body/mds-table-body.css +54 -40
  310. package/dist/collection/components/mds-table-body/mds-table-body.js +2 -16
  311. package/dist/collection/components/mds-table-cell/mds-table-cell.css +62 -32
  312. package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -16
  313. package/dist/collection/components/mds-table-footer/mds-table-footer.css +44 -0
  314. package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -16
  315. package/dist/collection/components/mds-table-header/mds-table-header.css +44 -0
  316. package/dist/collection/components/mds-table-header/mds-table-header.js +17 -48
  317. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +47 -7
  318. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +3 -13
  319. package/dist/collection/components/mds-table-row/mds-table-row.css +67 -49
  320. package/dist/collection/components/mds-table-row/mds-table-row.js +19 -50
  321. package/dist/collection/components/mds-text/mds-text.css +18 -38
  322. package/dist/collection/components/mds-text/mds-text.js +23 -22
  323. package/dist/collection/components/mds-toast/mds-toast.css +99 -90
  324. package/dist/collection/components/mds-toast/mds-toast.js +8 -28
  325. package/dist/collection/components/mds-tooltip/mds-tooltip.css +68 -85
  326. package/dist/collection/components/mds-tooltip/mds-tooltip.js +12 -31
  327. package/dist/collection/components/mds-tree/mds-tree.css +20 -212
  328. package/dist/collection/components/mds-tree/mds-tree.js +10 -4
  329. package/dist/collection/components/mds-tree-item/mds-tree-item.css +146 -267
  330. package/dist/collection/components/mds-tree-item/mds-tree-item.js +7 -28
  331. package/dist/collection/components/mds-url-view/mds-url-view.css +59 -33
  332. package/dist/collection/components/mds-url-view/mds-url-view.js +17 -67
  333. package/dist/collection/components/mds-usage/mds-usage.css +80 -95
  334. package/dist/collection/components/mds-usage/mds-usage.js +2 -60
  335. package/dist/collection/components/mds-video-wall/mds-video-wall.css +11 -26
  336. package/dist/collection/components/mds-video-wall/mds-video-wall.js +11 -2
  337. package/dist/collection/components/mds-zero/mds-zero.css +56 -18
  338. package/dist/collection/components/mds-zero/mds-zero.js +2 -31
  339. package/dist/collection/event-detail/theme.js +1 -0
  340. package/dist/collection/type/preference.js +22 -3
  341. package/dist/components/index.d.ts +230 -0
  342. package/dist/components/index.js +1 -1
  343. package/dist/components/mds-accordion-item.js +1 -1
  344. package/dist/components/mds-accordion-timer-item.js +1 -1
  345. package/dist/components/mds-accordion-timer.js +1 -1
  346. package/dist/components/mds-accordion.js +1 -1
  347. package/dist/components/mds-author.js +1 -1
  348. package/dist/components/mds-avatar-stack-item.js +1 -1
  349. package/dist/components/mds-avatar-stack.js +1 -1
  350. package/dist/components/mds-avatar.js +1 -1
  351. package/dist/components/mds-badge.js +1 -1
  352. package/dist/components/mds-banner.js +1 -1
  353. package/dist/components/mds-benchmark-bar.js +1 -1
  354. package/dist/components/mds-bibliography.js +1 -1
  355. package/dist/components/mds-breadcrumb-item.js +1 -1
  356. package/dist/components/mds-breadcrumb.js +1 -1
  357. package/dist/components/mds-button-dropdown.js +1 -1
  358. package/dist/components/mds-button-group.js +1 -1
  359. package/dist/components/mds-button.js +1 -1
  360. package/dist/components/mds-calendar-cell.js +1 -1
  361. package/dist/components/mds-calendar.js +1 -1
  362. package/dist/components/mds-card-content.js +1 -1
  363. package/dist/components/mds-card-footer.js +1 -1
  364. package/dist/components/mds-card-header.js +1 -1
  365. package/dist/components/mds-card-media.js +1 -1
  366. package/dist/components/mds-card.js +1 -1
  367. package/dist/components/mds-chip.js +1 -1
  368. package/dist/components/mds-details.js +1 -1
  369. package/dist/components/mds-dropdown.js +1 -1
  370. package/dist/components/mds-emoji.js +3 -3
  371. package/dist/components/mds-entity.js +1 -1
  372. package/dist/components/mds-file-preview.js +1 -1
  373. package/dist/components/mds-file.js +3 -3
  374. package/dist/components/mds-filter-item.js +1 -1
  375. package/dist/components/mds-filter.js +1 -1
  376. package/dist/components/mds-header-bar.js +1 -1
  377. package/dist/components/mds-header.js +1 -1
  378. package/dist/components/mds-help.js +1 -1
  379. package/dist/components/mds-horizontal-scroll.js +1 -1
  380. package/dist/components/mds-hr.js +1 -1
  381. package/dist/components/mds-icon.js +1 -1
  382. package/dist/components/mds-img.js +1 -1
  383. package/dist/components/mds-input-date-range-preselection.js +1 -1
  384. package/dist/components/mds-input-date-range.js +1 -1
  385. package/dist/components/mds-input-date.js +1 -1
  386. package/dist/components/mds-input-field.js +1 -1
  387. package/dist/components/mds-input-otp.js +1 -1
  388. package/dist/components/mds-input-range.js +1 -1
  389. package/dist/components/mds-input-select.js +1 -1
  390. package/dist/components/mds-input-switch.js +1 -1
  391. package/dist/components/mds-input-tip-item.js +1 -1
  392. package/dist/components/mds-input-tip.js +1 -1
  393. package/dist/components/mds-input-upload.js +1 -1
  394. package/dist/components/mds-input.js +1 -1
  395. package/dist/components/mds-keyboard-key.js +1 -1
  396. package/dist/components/mds-keyboard.js +1 -1
  397. package/dist/components/mds-kpi-item.js +1 -1
  398. package/dist/components/mds-kpi.js +1 -1
  399. package/dist/components/mds-label.js +1 -1
  400. package/dist/components/mds-list-item.js +1 -1
  401. package/dist/components/mds-list.js +1 -1
  402. package/dist/components/mds-mention.js +1 -1
  403. package/dist/components/mds-modal.js +1 -1
  404. package/dist/components/mds-note.js +1 -1
  405. package/dist/components/mds-notification.js +1 -1
  406. package/dist/components/mds-paginator-item.js +1 -1
  407. package/dist/components/mds-paginator.js +1 -1
  408. package/dist/components/mds-policy-ai.js +1 -1
  409. package/dist/components/mds-pref-animation.js +1 -1
  410. package/dist/components/mds-pref-consumption.js +1 -1
  411. package/dist/components/mds-pref-contrast.js +1 -1
  412. package/dist/components/mds-pref-language-item.js +1 -1
  413. package/dist/components/mds-pref-language.js +1 -1
  414. package/dist/components/mds-pref-mode.d.ts +11 -0
  415. package/dist/components/mds-pref-mode.js +1 -0
  416. package/dist/components/mds-pref-theme-item.d.ts +11 -0
  417. package/dist/components/mds-pref-theme-item.js +1 -0
  418. package/dist/components/mds-pref-theme.js +1 -1
  419. package/dist/components/mds-pref.js +1 -1
  420. package/dist/components/mds-price-table-features-cell.js +1 -1
  421. package/dist/components/mds-price-table-features-row.js +1 -1
  422. package/dist/components/mds-price-table-features.js +1 -1
  423. package/dist/components/mds-price-table-header.js +1 -1
  424. package/dist/components/mds-price-table-list-item.js +1 -1
  425. package/dist/components/mds-price-table-list.js +1 -1
  426. package/dist/components/mds-price-table.js +1 -1
  427. package/dist/components/mds-progress.js +1 -1
  428. package/dist/components/mds-push-notification-item.js +1 -1
  429. package/dist/components/mds-push-notification.js +1 -1
  430. package/dist/components/mds-quote.js +1 -1
  431. package/dist/components/mds-radial-menu-item.js +1 -1
  432. package/dist/components/mds-radial-menu.js +1 -1
  433. package/dist/components/mds-radial-progress.js +1 -1
  434. package/dist/components/mds-separator.js +1 -1
  435. package/dist/components/mds-spinner.js +1 -1
  436. package/dist/components/mds-status-bar.js +1 -1
  437. package/dist/components/mds-stepper-bar-item.js +1 -1
  438. package/dist/components/mds-stepper-bar.js +1 -1
  439. package/dist/components/mds-tab-bar-item.js +1 -1
  440. package/dist/components/mds-tab-bar.js +1 -1
  441. package/dist/components/mds-tab-item.js +1 -1
  442. package/dist/components/mds-tab.js +1 -1
  443. package/dist/components/mds-table-body.js +1 -1
  444. package/dist/components/mds-table-cell.js +1 -1
  445. package/dist/components/mds-table-footer.js +1 -1
  446. package/dist/components/mds-table-header-cell.js +1 -1
  447. package/dist/components/mds-table-header.js +1 -1
  448. package/dist/components/mds-table-row.js +1 -1
  449. package/dist/components/mds-table.js +1 -1
  450. package/dist/components/mds-text.js +1 -1
  451. package/dist/components/mds-toast.js +1 -1
  452. package/dist/components/mds-tooltip.js +1 -1
  453. package/dist/components/mds-tree-item.js +1 -1
  454. package/dist/components/mds-tree.js +1 -1
  455. package/dist/components/mds-url-view.js +1 -1
  456. package/dist/components/mds-usage.js +1 -1
  457. package/dist/components/mds-video-wall.js +1 -1
  458. package/dist/components/mds-zero.js +1 -1
  459. package/dist/components/p--8aaJX-p.js +1 -0
  460. package/dist/components/p-A9TZf0Ii.js +1 -0
  461. package/dist/components/p-B2A_hlV2.js +1 -0
  462. package/dist/components/p-B9DJLgwr.js +1 -0
  463. package/dist/components/p-BH3bWzRT.js +1 -0
  464. package/dist/components/p-BJNK4p33.js +1 -0
  465. package/dist/components/p-BNHXZ-JR.js +1 -0
  466. package/dist/components/p-BSxuG1vZ.js +1 -0
  467. package/dist/components/p-BTHR4xXu.js +1 -0
  468. package/dist/components/p-BhFTcUD0.js +3 -0
  469. package/dist/components/p-BouRLCYL.js +1 -0
  470. package/dist/components/p-Bss3F51Q.js +5 -0
  471. package/dist/components/p-Bt4xX5ww.js +1 -0
  472. package/dist/components/p-C03KYHGv.js +1 -0
  473. package/dist/components/p-C58NKMEE.js +1 -0
  474. package/dist/components/p-CACEYk42.js +1 -0
  475. package/dist/components/p-CBLAz3_J.js +1 -0
  476. package/dist/components/p-CHAGzQT-.js +1 -0
  477. package/dist/components/p-CVgKDZPF.js +1 -0
  478. package/dist/components/p-CVpjH8Un.js +1 -0
  479. package/dist/components/p-Caksrfcd.js +1 -0
  480. package/dist/components/p-CatD1iUY.js +1 -0
  481. package/dist/components/p-CbufYCNj.js +1 -0
  482. package/dist/components/p-Cehcn85x.js +1 -0
  483. package/dist/components/p-ClKNADBg.js +8 -0
  484. package/dist/components/p-CsgCQiHG.js +1 -0
  485. package/dist/components/p-CvIFS8oA.js +1 -0
  486. package/dist/components/p-D3-GP4KF.js +1 -0
  487. package/dist/components/p-D8I1RblC.js +1 -0
  488. package/dist/components/p-DLE5TNTp.js +1 -0
  489. package/dist/components/p-DaI5QqNu.js +1 -0
  490. package/dist/components/p-Deh5Aia-.js +1 -0
  491. package/dist/components/p-Dj_oN194.js +1 -0
  492. package/dist/components/p-DmELzfvf.js +1 -0
  493. package/dist/components/p-DtxB7DYE.js +1 -0
  494. package/dist/components/p-KRu9I7dw.js +1 -0
  495. package/dist/components/p-cBZsPiMJ.js +1 -0
  496. package/dist/components/p-s2Gu6hY7.js +1 -0
  497. package/dist/components/p-sqRs6oj4.js +1 -0
  498. package/dist/components/p-wq6nWuWE.js +1 -0
  499. package/dist/documentation.json +751 -1138
  500. package/dist/esm/date-CACEYk42.js +22 -0
  501. package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
  502. package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
  503. package/dist/esm/form-A9TZf0Ii.js +19 -0
  504. package/dist/esm/index-DIiEV39g.js +5149 -0
  505. package/dist/esm/index.js +17 -0
  506. package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
  507. package/dist/esm/loader.js +3 -3
  508. package/dist/esm/locale-CbJbTW_c.js +814 -0
  509. package/dist/esm/locale.it-Cvxh7La5.js +506 -0
  510. package/dist/esm/magma-components.js +32 -5
  511. package/dist/esm/mds-accordion-item.entry.js +7 -28
  512. package/dist/esm/mds-accordion-timer-item.entry.js +8 -17
  513. package/dist/esm/mds-accordion-timer.entry.js +3 -3
  514. package/dist/esm/mds-accordion.entry.js +5 -22
  515. package/dist/esm/mds-author.entry.js +9 -4
  516. package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
  517. package/dist/esm/mds-avatar-stack.entry.js +5 -4
  518. package/dist/esm/mds-avatar.entry.js +8 -21
  519. package/dist/esm/mds-badge.entry.js +5 -26
  520. package/dist/esm/mds-banner_3.entry.js +35 -70
  521. package/dist/esm/mds-benchmark-bar.entry.js +2 -2
  522. package/dist/esm/mds-bibliography.entry.js +2 -2
  523. package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
  524. package/dist/esm/mds-breadcrumb.entry.js +7 -15
  525. package/dist/esm/mds-button-dropdown.entry.js +3 -3
  526. package/dist/esm/mds-button-group.entry.js +3 -3
  527. package/dist/esm/mds-button_3.entry.js +10 -32
  528. package/dist/esm/mds-calendar_2.entry.js +123 -102
  529. package/dist/esm/mds-card-content.entry.js +2 -2
  530. package/dist/esm/mds-card-footer.entry.js +2 -2
  531. package/dist/esm/mds-card-header.entry.js +9 -4
  532. package/dist/esm/mds-card-media.entry.js +2 -2
  533. package/dist/esm/mds-card.entry.js +4 -21
  534. package/dist/esm/mds-details.entry.js +8 -18
  535. package/dist/esm/mds-dropdown.entry.js +184 -58
  536. package/dist/esm/mds-emoji.entry.js +301 -181
  537. package/dist/esm/mds-entity.entry.js +11 -23
  538. package/dist/esm/mds-file-preview.entry.js +9 -37
  539. package/dist/esm/mds-file.entry.js +7 -35
  540. package/dist/esm/mds-filter-item.entry.js +6 -25
  541. package/dist/esm/mds-filter.entry.js +19 -32
  542. package/dist/esm/mds-header-bar.entry.js +11 -27
  543. package/dist/esm/mds-header.entry.js +8 -22
  544. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  545. package/dist/esm/mds-hr.entry.js +4 -17
  546. package/dist/esm/mds-img.entry.js +8 -16
  547. package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
  548. package/dist/esm/mds-input-date-range.entry.js +57 -43
  549. package/dist/esm/mds-input-date.entry.js +14 -44
  550. package/dist/esm/mds-input-field.entry.js +42 -6
  551. package/dist/esm/mds-input-otp.entry.js +37 -3
  552. package/dist/esm/mds-input-range.entry.js +9 -29
  553. package/dist/esm/mds-input-select.entry.js +11 -41
  554. package/dist/esm/mds-input-switch_2.entry.js +19 -55
  555. package/dist/esm/mds-input-tip_2.entry.js +8 -40
  556. package/dist/esm/mds-input-upload.entry.js +34 -36
  557. package/dist/esm/mds-input.entry.js +23 -52
  558. package/dist/esm/mds-keyboard-key.entry.js +5 -14
  559. package/dist/esm/mds-keyboard.entry.js +5 -25
  560. package/dist/esm/mds-kpi-item.entry.js +12 -25
  561. package/dist/esm/mds-kpi.entry.js +2 -2
  562. package/dist/esm/mds-label.entry.js +7 -29
  563. package/dist/esm/mds-list-item.entry.js +4 -13
  564. package/dist/esm/mds-list.entry.js +1 -1
  565. package/dist/esm/mds-mention.entry.js +38 -4
  566. package/dist/esm/mds-modal.entry.js +54 -47
  567. package/dist/esm/mds-note.entry.js +7 -35
  568. package/dist/esm/mds-notification.entry.js +12 -14
  569. package/dist/esm/mds-paginator-item.entry.js +5 -20
  570. package/dist/esm/mds-paginator.entry.js +27 -32
  571. package/dist/esm/mds-policy-ai.entry.js +5 -15
  572. package/dist/esm/mds-pref-animation.entry.js +7 -23
  573. package/dist/esm/mds-pref-consumption.entry.js +7 -23
  574. package/dist/esm/mds-pref-contrast.entry.js +10 -24
  575. package/dist/esm/mds-pref-language-item.entry.js +27 -15
  576. package/dist/esm/mds-pref-language.entry.js +38 -28
  577. package/dist/esm/mds-pref-mode.entry.js +271 -0
  578. package/dist/esm/mds-pref-theme-item.entry.js +41 -0
  579. package/dist/esm/mds-pref-theme.entry.js +147 -230
  580. package/dist/esm/mds-pref.entry.js +40 -17
  581. package/dist/esm/mds-price-table-features-cell.entry.js +4 -25
  582. package/dist/esm/mds-price-table-features-row.entry.js +4 -25
  583. package/dist/esm/mds-price-table-features.entry.js +4 -25
  584. package/dist/esm/mds-price-table-header.entry.js +2 -2
  585. package/dist/esm/mds-price-table-list-item.entry.js +3 -3
  586. package/dist/esm/mds-price-table-list.entry.js +4 -25
  587. package/dist/esm/mds-price-table.entry.js +2 -2
  588. package/dist/esm/mds-progress_2.entry.js +7 -33
  589. package/dist/esm/mds-push-notification-item.entry.js +16 -39
  590. package/dist/esm/mds-push-notification.entry.js +7 -20
  591. package/dist/esm/mds-quote.entry.js +4 -13
  592. package/dist/esm/mds-radial-menu-item.entry.js +3 -3
  593. package/dist/esm/mds-radial-menu.entry.js +7 -6
  594. package/dist/esm/mds-separator.entry.js +4 -21
  595. package/dist/esm/mds-status-bar.entry.js +4 -25
  596. package/dist/esm/mds-stepper-bar-item.entry.js +14 -25
  597. package/dist/esm/mds-stepper-bar.entry.js +21 -12
  598. package/dist/esm/mds-tab-bar-item.entry.js +6 -27
  599. package/dist/esm/mds-tab-bar.entry.js +5 -26
  600. package/dist/esm/mds-tab_2.entry.js +14 -47
  601. package/dist/esm/mds-table-body.entry.js +4 -13
  602. package/dist/esm/mds-table-footer.entry.js +4 -13
  603. package/dist/esm/mds-table-header-cell.entry.js +4 -13
  604. package/dist/esm/mds-table-header.entry.js +19 -31
  605. package/dist/esm/mds-table-row.entry.js +20 -29
  606. package/dist/esm/mds-table.entry.js +60 -50
  607. package/dist/esm/mds-text.entry.js +36 -21
  608. package/dist/esm/mds-toast.entry.js +10 -27
  609. package/dist/esm/mds-tooltip.entry.js +16 -27
  610. package/dist/esm/mds-tree-item.entry.js +12 -14
  611. package/dist/esm/mds-tree.entry.js +12 -6
  612. package/dist/esm/mds-url-view.entry.js +21 -41
  613. package/dist/esm/mds-usage.entry.js +5 -33
  614. package/dist/esm/mds-video-wall.entry.js +8 -4
  615. package/dist/esm/mds-zero.entry.js +4 -25
  616. package/dist/esm/preference-CKerJx2M.js +385 -0
  617. package/dist/esm/slot-C0o_l0td.js +61 -0
  618. package/dist/esm-es5/date-CACEYk42.js +6 -0
  619. package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
  620. package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
  621. package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
  622. package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
  623. package/dist/esm-es5/index-DIiEV39g.js +371 -0
  624. package/dist/esm-es5/index.js +79 -1
  625. package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
  626. package/dist/esm-es5/loader.js +1 -1
  627. package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
  628. package/dist/esm-es5/locale.it-Cvxh7La5.js +6 -0
  629. package/dist/esm-es5/magma-components.js +4 -1
  630. package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
  631. package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
  632. package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
  633. package/dist/esm-es5/mds-accordion.entry.js +7 -1
  634. package/dist/esm-es5/mds-author.entry.js +1 -1
  635. package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
  636. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  637. package/dist/esm-es5/mds-avatar.entry.js +8 -1
  638. package/dist/esm-es5/mds-badge.entry.js +12 -1
  639. package/dist/esm-es5/mds-banner_3.entry.js +40 -1
  640. package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
  641. package/dist/esm-es5/mds-bibliography.entry.js +14 -1
  642. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  643. package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
  644. package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
  645. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  646. package/dist/esm-es5/mds-button_3.entry.js +42 -1
  647. package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
  648. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  649. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  650. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  651. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  652. package/dist/esm-es5/mds-card.entry.js +7 -1
  653. package/dist/esm-es5/mds-details.entry.js +4 -1
  654. package/dist/esm-es5/mds-dropdown.entry.js +102 -1
  655. package/dist/esm-es5/mds-emoji.entry.js +899 -3
  656. package/dist/esm-es5/mds-entity.entry.js +1 -1
  657. package/dist/esm-es5/mds-file-preview.entry.js +23 -2
  658. package/dist/esm-es5/mds-file.entry.js +2823 -3
  659. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  660. package/dist/esm-es5/mds-filter.entry.js +11 -1
  661. package/dist/esm-es5/mds-header-bar.entry.js +11 -1
  662. package/dist/esm-es5/mds-header.entry.js +30 -1
  663. package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
  664. package/dist/esm-es5/mds-hr.entry.js +1 -1
  665. package/dist/esm-es5/mds-img.entry.js +15 -1
  666. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  667. package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
  668. package/dist/esm-es5/mds-input-date.entry.js +50 -1
  669. package/dist/esm-es5/mds-input-field.entry.js +22 -1
  670. package/dist/esm-es5/mds-input-otp.entry.js +13 -1
  671. package/dist/esm-es5/mds-input-range.entry.js +24 -1
  672. package/dist/esm-es5/mds-input-select.entry.js +39 -1
  673. package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
  674. package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
  675. package/dist/esm-es5/mds-input-upload.entry.js +63 -1
  676. package/dist/esm-es5/mds-input.entry.js +134 -1
  677. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  678. package/dist/esm-es5/mds-keyboard.entry.js +11 -1
  679. package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
  680. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  681. package/dist/esm-es5/mds-label.entry.js +16 -1
  682. package/dist/esm-es5/mds-list-item.entry.js +7 -1
  683. package/dist/esm-es5/mds-list.entry.js +1 -1
  684. package/dist/esm-es5/mds-mention.entry.js +4 -1
  685. package/dist/esm-es5/mds-modal.entry.js +68 -1
  686. package/dist/esm-es5/mds-note.entry.js +7 -1
  687. package/dist/esm-es5/mds-notification.entry.js +13 -1
  688. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  689. package/dist/esm-es5/mds-paginator.entry.js +14 -1
  690. package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
  691. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  692. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  693. package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
  694. package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
  695. package/dist/esm-es5/mds-pref-language.entry.js +15 -1
  696. package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
  697. package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
  698. package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
  699. package/dist/esm-es5/mds-pref.entry.js +9 -1
  700. package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
  701. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  702. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  703. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  704. package/dist/esm-es5/mds-price-table-list-item.entry.js +7 -1
  705. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  706. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  707. package/dist/esm-es5/mds-progress_2.entry.js +32 -1
  708. package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
  709. package/dist/esm-es5/mds-push-notification.entry.js +49 -1
  710. package/dist/esm-es5/mds-quote.entry.js +7 -1
  711. package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
  712. package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
  713. package/dist/esm-es5/mds-separator.entry.js +1 -1
  714. package/dist/esm-es5/mds-status-bar.entry.js +10 -1
  715. package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
  716. package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
  717. package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
  718. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  719. package/dist/esm-es5/mds-tab_2.entry.js +26 -1
  720. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  721. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  722. package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
  723. package/dist/esm-es5/mds-table-header.entry.js +14 -1
  724. package/dist/esm-es5/mds-table-row.entry.js +8 -1
  725. package/dist/esm-es5/mds-table.entry.js +15 -1
  726. package/dist/esm-es5/mds-text.entry.js +27 -1
  727. package/dist/esm-es5/mds-toast.entry.js +15 -1
  728. package/dist/esm-es5/mds-tooltip.entry.js +37 -1
  729. package/dist/esm-es5/mds-tree-item.entry.js +16 -1
  730. package/dist/esm-es5/mds-tree.entry.js +20 -1
  731. package/dist/esm-es5/mds-url-view.entry.js +7 -1
  732. package/dist/esm-es5/mds-usage.entry.js +4 -1
  733. package/dist/esm-es5/mds-video-wall.entry.js +16 -1
  734. package/dist/esm-es5/mds-zero.entry.js +1 -1
  735. package/dist/esm-es5/preference-CKerJx2M.js +58 -0
  736. package/dist/esm-es5/slot-C0o_l0td.js +23 -0
  737. package/dist/hydrate/index.js +4281 -3175
  738. package/dist/hydrate/index.mjs +4281 -3175
  739. package/dist/magma-components/index.esm.js +1 -1
  740. package/dist/magma-components/magma-components.esm.js +1 -1
  741. package/dist/magma-components/magma-components.js +1 -1
  742. package/dist/magma-components/p-03be5c0c.entry.js +1 -0
  743. package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
  744. package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
  745. package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
  746. package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
  747. package/dist/magma-components/p-086fb3aa.entry.js +1 -0
  748. package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
  749. package/dist/magma-components/p-0a691082.entry.js +1 -0
  750. package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
  751. package/dist/magma-components/p-0af8d821.entry.js +1 -0
  752. package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
  753. package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
  754. package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
  755. package/dist/magma-components/p-10704ede.system.entry.js +4 -0
  756. package/dist/magma-components/p-15f63bf3.entry.js +1 -0
  757. package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
  758. package/dist/magma-components/p-1780b8ba.entry.js +1 -0
  759. package/dist/magma-components/p-181dfb04.entry.js +1 -0
  760. package/dist/magma-components/p-184720be.system.entry.js +1 -0
  761. package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
  762. package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
  763. package/dist/magma-components/p-1afc0452.entry.js +1 -0
  764. package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
  765. package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
  766. package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
  767. package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
  768. package/dist/magma-components/p-209063b6.system.entry.js +50 -0
  769. package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
  770. package/dist/magma-components/p-21891a24.entry.js +1 -0
  771. package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
  772. package/dist/magma-components/p-231505e8.entry.js +1 -0
  773. package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
  774. package/dist/magma-components/p-241dbf61.entry.js +1 -0
  775. package/dist/magma-components/p-25935d33.system.entry.js +1 -0
  776. package/dist/magma-components/p-27ea99ee.entry.js +8 -0
  777. package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
  778. package/dist/magma-components/p-29684655.system.entry.js +16 -0
  779. package/dist/magma-components/p-2b73fee6.entry.js +1 -0
  780. package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
  781. package/dist/magma-components/p-2de17848.entry.js +1 -0
  782. package/dist/magma-components/p-34482514.entry.js +1 -0
  783. package/dist/magma-components/p-34c0890e.entry.js +1 -0
  784. package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
  785. package/dist/magma-components/p-3b0c1202.entry.js +1 -0
  786. package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
  787. package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
  788. package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
  789. package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
  790. package/dist/magma-components/p-40563e33.entry.js +1 -0
  791. package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
  792. package/dist/magma-components/p-421a630e.entry.js +1 -0
  793. package/dist/magma-components/p-4297da23.system.entry.js +1 -0
  794. package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
  795. package/dist/magma-components/p-4543501c.entry.js +1 -0
  796. package/dist/magma-components/p-454c4774.entry.js +1 -0
  797. package/dist/magma-components/p-4616bc07.entry.js +1 -0
  798. package/dist/magma-components/p-46786d71.system.entry.js +14 -0
  799. package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
  800. package/dist/magma-components/p-481008e9.system.entry.js +13 -0
  801. package/dist/magma-components/p-48d37230.entry.js +1 -0
  802. package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
  803. package/dist/magma-components/p-4c8316a8.entry.js +1 -0
  804. package/dist/magma-components/p-4c95442e.entry.js +1 -0
  805. package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
  806. package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
  807. package/dist/magma-components/p-4f107cb2.system.entry.js +2838 -0
  808. package/dist/magma-components/p-4oB0woT9.system.js +6 -0
  809. package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
  810. package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
  811. package/dist/magma-components/p-59de81ac.entry.js +1 -0
  812. package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
  813. package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
  814. package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
  815. package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
  816. package/dist/magma-components/p-636cc471.entry.js +1 -0
  817. package/dist/magma-components/p-66ce2dee.entry.js +1 -0
  818. package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
  819. package/dist/magma-components/p-6937f340.entry.js +1 -0
  820. package/dist/magma-components/p-69d1b815.entry.js +1 -0
  821. package/dist/magma-components/p-6b7e449f.entry.js +1 -0
  822. package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
  823. package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
  824. package/dist/magma-components/p-6ce60d59.entry.js +1 -0
  825. package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
  826. package/dist/magma-components/p-6dc27543.entry.js +1 -0
  827. package/dist/magma-components/p-6de37588.entry.js +1 -0
  828. package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
  829. package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
  830. package/dist/magma-components/p-7090184f.entry.js +1 -0
  831. package/dist/magma-components/p-716ad14c.entry.js +1 -0
  832. package/dist/magma-components/p-71804224.entry.js +1 -0
  833. package/dist/magma-components/p-735dc594.system.entry.js +1 -0
  834. package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
  835. package/dist/magma-components/p-74b0902a.entry.js +1 -0
  836. package/dist/magma-components/p-7530a2f2.entry.js +1 -0
  837. package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
  838. package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
  839. package/dist/magma-components/p-76ae22d6.entry.js +1 -0
  840. package/dist/magma-components/p-78248693.entry.js +1 -0
  841. package/dist/magma-components/p-78fef00a.entry.js +1 -0
  842. package/dist/magma-components/p-7c0d202c.entry.js +1 -0
  843. package/dist/magma-components/p-7fc29447.entry.js +1 -0
  844. package/dist/magma-components/p-81b72b6e.entry.js +1 -0
  845. package/dist/magma-components/p-859ab5a2.entry.js +18 -0
  846. package/dist/magma-components/p-896ae0ee.entry.js +1 -0
  847. package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
  848. package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
  849. package/dist/magma-components/p-8c4fb7ec.system.entry.js +30 -0
  850. package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
  851. package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
  852. package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
  853. package/dist/magma-components/p-92e1001f.entry.js +1 -0
  854. package/dist/magma-components/p-9378b373.system.entry.js +49 -0
  855. package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
  856. package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
  857. package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
  858. package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
  859. package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
  860. package/dist/magma-components/p-998721b9.system.entry.js +1 -0
  861. package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
  862. package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
  863. package/dist/magma-components/p-9be4a736.entry.js +1 -0
  864. package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
  865. package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
  866. package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
  867. package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
  868. package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
  869. package/dist/magma-components/p-A9TZf0Ii.js +1 -0
  870. package/dist/magma-components/p-B6mQg6yQ.js +1 -0
  871. package/dist/magma-components/p-BFnx_0hM.js +5 -0
  872. package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
  873. package/dist/magma-components/p-BbMKuVem.js +1 -0
  874. package/dist/magma-components/p-C0o_l0td.js +1 -0
  875. package/dist/magma-components/p-C2FHijr2.system.js +231 -0
  876. package/dist/magma-components/p-CACEYk42.js +1 -0
  877. package/dist/magma-components/p-CBam2PI8.system.js +79 -0
  878. package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
  879. package/dist/magma-components/p-CHAGzQT-.js +1 -0
  880. package/dist/magma-components/p-CI85vVs8.system.js +9 -0
  881. package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
  882. package/dist/magma-components/p-DB8Rm54c.js +1 -0
  883. package/dist/magma-components/p-DIiEV39g.js +3 -0
  884. package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
  885. package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
  886. package/dist/magma-components/p-KRu9I7dw.js +1 -0
  887. package/dist/magma-components/p-LerCJgfP.system.js +5 -0
  888. package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
  889. package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
  890. package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
  891. package/dist/magma-components/p-a3b0f586.entry.js +1 -0
  892. package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
  893. package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
  894. package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
  895. package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
  896. package/dist/magma-components/p-a93b2a39.entry.js +1 -0
  897. package/dist/magma-components/p-aa267e7b.entry.js +1 -0
  898. package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
  899. package/dist/magma-components/p-ac544ab1.entry.js +1 -0
  900. package/dist/magma-components/p-ace198e9.entry.js +1 -0
  901. package/dist/magma-components/p-ad3983b2.entry.js +1 -0
  902. package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
  903. package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
  904. package/dist/magma-components/p-b23a6c83.entry.js +1 -0
  905. package/dist/magma-components/p-b35c26f8.entry.js +18 -0
  906. package/dist/magma-components/p-b3a3578c.entry.js +1 -0
  907. package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
  908. package/dist/magma-components/p-b71e0d51.entry.js +1 -0
  909. package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
  910. package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
  911. package/dist/magma-components/p-ba035f90.entry.js +1 -0
  912. package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
  913. package/dist/magma-components/p-bd490a8e.entry.js +1 -0
  914. package/dist/magma-components/p-be198039.system.entry.js +4 -0
  915. package/dist/magma-components/p-be692266.system.entry.js +13 -0
  916. package/dist/magma-components/p-bf7168b4.entry.js +1 -0
  917. package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
  918. package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
  919. package/dist/magma-components/p-c4e58240.entry.js +1 -0
  920. package/dist/magma-components/p-c573de10.entry.js +1 -0
  921. package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
  922. package/dist/magma-components/p-c70d7159.entry.js +1 -0
  923. package/dist/magma-components/p-c7517884.system.entry.js +38 -0
  924. package/dist/magma-components/p-c9be79bd.entry.js +1 -0
  925. package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
  926. package/dist/magma-components/p-cb6a1908.entry.js +1 -0
  927. package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
  928. package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
  929. package/dist/magma-components/p-cd5866c8.entry.js +1 -0
  930. package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
  931. package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
  932. package/dist/magma-components/p-d3116844.entry.js +1 -0
  933. package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
  934. package/dist/magma-components/p-d3933a22.entry.js +1 -0
  935. package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
  936. package/dist/magma-components/p-d4a529ce.entry.js +1 -0
  937. package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
  938. package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
  939. package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
  940. package/dist/magma-components/p-d921d876.entry.js +1 -0
  941. package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
  942. package/dist/magma-components/p-ddbdce09.entry.js +1 -0
  943. package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
  944. package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
  945. package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
  946. package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
  947. package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
  948. package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
  949. package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
  950. package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
  951. package/dist/magma-components/p-e3e893c4.entry.js +1 -0
  952. package/dist/magma-components/p-e4868ade.entry.js +1 -0
  953. package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
  954. package/dist/magma-components/p-e5da7036.entry.js +1 -0
  955. package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
  956. package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
  957. package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
  958. package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
  959. package/dist/magma-components/p-ef8cb401.entry.js +1 -0
  960. package/dist/magma-components/p-efe8d359.entry.js +1 -0
  961. package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
  962. package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
  963. package/dist/magma-components/p-f1462410.system.entry.js +9 -0
  964. package/dist/magma-components/p-f23d4974.entry.js +1 -0
  965. package/dist/magma-components/p-f542246f.system.entry.js +1 -0
  966. package/dist/magma-components/p-f5c680dd.entry.js +1 -0
  967. package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
  968. package/dist/magma-components/p-f8369939.entry.js +1 -0
  969. package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
  970. package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
  971. package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
  972. package/dist/magma-components/p-ff133cbd.entry.js +1 -0
  973. package/dist/magma-components/p-fff44704.entry.js +1 -0
  974. package/dist/magma-components/p-opeIIa7t.system.js +7 -0
  975. package/dist/stats.json +5356 -7143
  976. package/dist/types/common/date.d.ts +5 -1
  977. package/dist/types/common/floating-controller.d.ts +56 -2
  978. package/dist/types/common/form.d.ts +10 -0
  979. package/dist/types/common/locale.d.ts +0 -5
  980. package/dist/types/common/preference.d.ts +48 -16
  981. package/dist/types/common/slot.d.ts +11 -1
  982. package/dist/types/common/yugop/random-text.d.ts +8 -0
  983. package/dist/types/components/mds-accordion/mds-accordion.d.ts +0 -8
  984. package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +0 -10
  985. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +0 -4
  986. package/dist/types/components/mds-author/mds-author.d.ts +2 -1
  987. package/dist/types/components/mds-avatar/mds-avatar.d.ts +0 -6
  988. package/dist/types/components/mds-badge/mds-badge.d.ts +0 -10
  989. package/dist/types/components/mds-banner/mds-banner.d.ts +2 -16
  990. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -6
  991. package/dist/types/components/mds-button/mds-button.d.ts +0 -7
  992. package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
  993. package/dist/types/components/mds-calendar/mds-calendar.d.ts +27 -18
  994. package/dist/types/components/mds-card/mds-card.d.ts +0 -8
  995. package/dist/types/components/mds-card-header/mds-card-header.d.ts +2 -1
  996. package/dist/types/components/mds-chip/mds-chip.d.ts +0 -15
  997. package/dist/types/components/mds-details/mds-details.d.ts +0 -5
  998. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +33 -12
  999. package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
  1000. package/dist/types/components/mds-entity/mds-entity.d.ts +3 -10
  1001. package/dist/types/components/mds-file/mds-file.d.ts +0 -15
  1002. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -15
  1003. package/dist/types/components/mds-filter/mds-filter.d.ts +10 -10
  1004. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -9
  1005. package/dist/types/components/mds-header/mds-header.d.ts +0 -7
  1006. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -11
  1007. package/dist/types/components/mds-hr/mds-hr.d.ts +0 -6
  1008. package/dist/types/components/mds-img/mds-img.d.ts +1 -7
  1009. package/dist/types/components/mds-input/mds-input.d.ts +7 -15
  1010. package/dist/types/components/mds-input-date/mds-input-date.d.ts +9 -14
  1011. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +9 -12
  1012. package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
  1013. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
  1014. package/dist/types/components/mds-input-range/mds-input-range.d.ts +0 -10
  1015. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -14
  1016. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -11
  1017. package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +0 -4
  1018. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -13
  1019. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +2 -7
  1020. package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
  1021. package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +0 -11
  1022. package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
  1023. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1024. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -10
  1025. package/dist/types/components/mds-label/mds-label.d.ts +0 -12
  1026. package/dist/types/components/mds-list-item/mds-list-item.d.ts +0 -4
  1027. package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
  1028. package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
  1029. package/dist/types/components/mds-modal/mds-modal.d.ts +17 -16
  1030. package/dist/types/components/mds-note/mds-note.d.ts +0 -15
  1031. package/dist/types/components/mds-notification/mds-notification.d.ts +0 -3
  1032. package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -11
  1033. package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +0 -7
  1034. package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +0 -7
  1035. package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
  1036. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +0 -10
  1037. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +0 -10
  1038. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +0 -10
  1039. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
  1040. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
  1041. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
  1042. package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
  1043. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -45
  1044. package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
  1045. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
  1046. package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +0 -10
  1047. package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +0 -10
  1048. package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +0 -10
  1049. package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +0 -10
  1050. package/dist/types/components/mds-progress/mds-progress.d.ts +0 -10
  1051. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +0 -6
  1052. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -17
  1053. package/dist/types/components/mds-quote/mds-quote.d.ts +0 -4
  1054. package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
  1055. package/dist/types/components/mds-separator/mds-separator.d.ts +0 -8
  1056. package/dist/types/components/mds-spinner/mds-spinner.d.ts +0 -4
  1057. package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +0 -10
  1058. package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
  1059. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -9
  1060. package/dist/types/components/mds-tab/mds-tab.d.ts +0 -9
  1061. package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +0 -10
  1062. package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +0 -10
  1063. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +5 -8
  1064. package/dist/types/components/mds-table/mds-table.d.ts +10 -14
  1065. package/dist/types/components/mds-table-body/mds-table-body.d.ts +0 -4
  1066. package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +0 -4
  1067. package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +0 -4
  1068. package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -9
  1069. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +0 -4
  1070. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -10
  1071. package/dist/types/components/mds-text/mds-text.d.ts +0 -4
  1072. package/dist/types/components/mds-toast/mds-toast.d.ts +2 -11
  1073. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +0 -9
  1074. package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -5
  1075. package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -15
  1076. package/dist/types/components/mds-usage/mds-usage.d.ts +0 -16
  1077. package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
  1078. package/dist/types/components/mds-zero/mds-zero.d.ts +0 -10
  1079. package/dist/types/components.d.ts +243 -239
  1080. package/dist/types/event-detail/preference.d.ts +2 -2
  1081. package/dist/types/event-detail/theme.d.ts +5 -0
  1082. package/dist/types/stencil-public-runtime.d.ts +12 -0
  1083. package/dist/types/type/preference.d.ts +16 -3
  1084. package/loader/index.d.ts +1 -1
  1085. package/package.json +60 -66
  1086. package/dist/cjs/date-dnDGaLCn.js +0 -16
  1087. package/dist/cjs/floating-controller-CXEVR1wX.js +0 -203
  1088. package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
  1089. package/dist/cjs/index-CNuKb6Lv.js +0 -2896
  1090. package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
  1091. package/dist/cjs/locale-oGW3SvGJ.js +0 -837
  1092. package/dist/cjs/locale.it-D-rxNDkm.js +0 -512
  1093. package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
  1094. package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
  1095. package/dist/cjs/preference-BdpIXWLP.js +0 -81
  1096. package/dist/cjs/slot-CI0KpgtY.js +0 -52
  1097. package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -39
  1098. package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
  1099. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
  1100. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
  1101. package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
  1102. package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
  1103. package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
  1104. package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
  1105. package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
  1106. package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
  1107. package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
  1108. package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
  1109. package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
  1110. package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
  1111. package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
  1112. package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
  1113. package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
  1114. package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
  1115. package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
  1116. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
  1117. package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
  1118. package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
  1119. package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
  1120. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
  1121. package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
  1122. package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
  1123. package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
  1124. package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
  1125. package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
  1126. package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
  1127. package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
  1128. package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
  1129. package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
  1130. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
  1131. package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
  1132. package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
  1133. package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
  1134. package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
  1135. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
  1136. package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
  1137. package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
  1138. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
  1139. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
  1140. package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
  1141. package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
  1142. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
  1143. package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
  1144. package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
  1145. package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
  1146. package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
  1147. package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
  1148. package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
  1149. package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
  1150. package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
  1151. package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
  1152. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -388
  1153. package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
  1154. package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
  1155. package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
  1156. package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
  1157. package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
  1158. package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
  1159. package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
  1160. package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
  1161. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
  1162. package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
  1163. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
  1164. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
  1165. package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
  1166. package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
  1167. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
  1168. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
  1169. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
  1170. package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
  1171. package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
  1172. package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
  1173. package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
  1174. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
  1175. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
  1176. package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
  1177. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
  1178. package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
  1179. package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
  1180. package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
  1181. package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
  1182. package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
  1183. package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
  1184. package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
  1185. package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
  1186. package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
  1187. package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
  1188. package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
  1189. package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
  1190. package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
  1191. package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
  1192. package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
  1193. package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
  1194. package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
  1195. package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
  1196. package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
  1197. package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
  1198. package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
  1199. package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
  1200. package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
  1201. package/dist/collection/storybook/box-shadows.stories.js +0 -53
  1202. package/dist/collection/storybook/color-scale.stories.js +0 -465
  1203. package/dist/collection/storybook/components-preview.stories.js +0 -36
  1204. package/dist/collection/storybook/example-page.stories.js +0 -10
  1205. package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
  1206. package/dist/collection/storybook/input-form.stories.js +0 -40
  1207. package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
  1208. package/dist/collection/test/file.js +0 -53
  1209. package/dist/collection/test/mock.js +0 -19
  1210. package/dist/components/date.js +0 -1
  1211. package/dist/components/floating-controller.js +0 -1
  1212. package/dist/components/floating-ui.dom.js +0 -1
  1213. package/dist/components/icons-set.service.js +0 -1
  1214. package/dist/components/keyboard-manager.js +0 -1
  1215. package/dist/components/locale.it.js +0 -1
  1216. package/dist/components/locale.js +0 -5
  1217. package/dist/components/mds-avatar-stack-item2.js +0 -1
  1218. package/dist/components/mds-avatar2.js +0 -1
  1219. package/dist/components/mds-badge2.js +0 -1
  1220. package/dist/components/mds-banner2.js +0 -1
  1221. package/dist/components/mds-button2.js +0 -1
  1222. package/dist/components/mds-calendar-cell2.js +0 -1
  1223. package/dist/components/mds-calendar2.js +0 -1
  1224. package/dist/components/mds-chip2.js +0 -1
  1225. package/dist/components/mds-dropdown2.js +0 -1
  1226. package/dist/components/mds-file-preview2.js +0 -8
  1227. package/dist/components/mds-filter-item2.js +0 -1
  1228. package/dist/components/mds-help2.js +0 -1
  1229. package/dist/components/mds-icon2.js +0 -1
  1230. package/dist/components/mds-img2.js +0 -1
  1231. package/dist/components/mds-input-switch2.js +0 -1
  1232. package/dist/components/mds-input-tip-item2.js +0 -1
  1233. package/dist/components/mds-input-tip2.js +0 -1
  1234. package/dist/components/mds-input2.js +0 -1
  1235. package/dist/components/mds-modal2.js +0 -1
  1236. package/dist/components/mds-paginator-item2.js +0 -1
  1237. package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
  1238. package/dist/components/mds-pref-theme-variant-item.js +0 -1
  1239. package/dist/components/mds-pref-theme-variant.d.ts +0 -11
  1240. package/dist/components/mds-pref-theme-variant.js +0 -1
  1241. package/dist/components/mds-progress2.js +0 -1
  1242. package/dist/components/mds-radial-progress2.js +0 -1
  1243. package/dist/components/mds-separator2.js +0 -1
  1244. package/dist/components/mds-spinner2.js +0 -1
  1245. package/dist/components/mds-tab-item2.js +0 -1
  1246. package/dist/components/mds-tab2.js +0 -1
  1247. package/dist/components/mds-table-cell2.js +0 -1
  1248. package/dist/components/mds-table-header-cell2.js +0 -1
  1249. package/dist/components/mds-text2.js +0 -1
  1250. package/dist/components/mds-tooltip2.js +0 -1
  1251. package/dist/components/preference.js +0 -1
  1252. package/dist/components/slot.js +0 -1
  1253. package/dist/esm/date-C1oxPa_J.js +0 -14
  1254. package/dist/esm/floating-controller-D5eXU5Mk.js +0 -200
  1255. package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
  1256. package/dist/esm/index-CAd5312P.js +0 -2869
  1257. package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
  1258. package/dist/esm/locale-a4oAcjYG.js +0 -835
  1259. package/dist/esm/locale.it-Dj8sWDfj.js +0 -503
  1260. package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
  1261. package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
  1262. package/dist/esm/preference-fMwnXhio.js +0 -79
  1263. package/dist/esm/slot-ttrRC6OE.js +0 -48
  1264. package/dist/esm-es5/date-C1oxPa_J.js +0 -1
  1265. package/dist/esm-es5/floating-controller-D5eXU5Mk.js +0 -1
  1266. package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
  1267. package/dist/esm-es5/index-CAd5312P.js +0 -1
  1268. package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
  1269. package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
  1270. package/dist/esm-es5/locale.it-Dj8sWDfj.js +0 -1
  1271. package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
  1272. package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
  1273. package/dist/esm-es5/preference-fMwnXhio.js +0 -1
  1274. package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
  1275. package/dist/magma-components/p-0105d7c7.entry.js +0 -8
  1276. package/dist/magma-components/p-022defe8.entry.js +0 -1
  1277. package/dist/magma-components/p-02d858d0.entry.js +0 -1
  1278. package/dist/magma-components/p-0607a2b3.entry.js +0 -1
  1279. package/dist/magma-components/p-0af4d0ef.entry.js +0 -1
  1280. package/dist/magma-components/p-0b91aae4.entry.js +0 -1
  1281. package/dist/magma-components/p-0bb29dbd.system.entry.js +0 -1
  1282. package/dist/magma-components/p-0c1a5df0.entry.js +0 -1
  1283. package/dist/magma-components/p-0e986d85.entry.js +0 -18
  1284. package/dist/magma-components/p-0ea42813.entry.js +0 -1
  1285. package/dist/magma-components/p-0fe5aeaf.system.entry.js +0 -1
  1286. package/dist/magma-components/p-10ddec99.system.entry.js +0 -1
  1287. package/dist/magma-components/p-11567740.entry.js +0 -1
  1288. package/dist/magma-components/p-116238cf.system.entry.js +0 -1
  1289. package/dist/magma-components/p-1239667c.system.entry.js +0 -1
  1290. package/dist/magma-components/p-1518fda3.system.entry.js +0 -1
  1291. package/dist/magma-components/p-16c94506.system.entry.js +0 -1
  1292. package/dist/magma-components/p-18823bfc.system.entry.js +0 -1
  1293. package/dist/magma-components/p-188e94ef.system.entry.js +0 -1
  1294. package/dist/magma-components/p-19446c9e.entry.js +0 -1
  1295. package/dist/magma-components/p-1a73c7b0.system.entry.js +0 -1
  1296. package/dist/magma-components/p-1ad03ee9.entry.js +0 -1
  1297. package/dist/magma-components/p-1c4038f7.system.entry.js +0 -1
  1298. package/dist/magma-components/p-2035564c.system.entry.js +0 -1
  1299. package/dist/magma-components/p-2128ce5a.system.entry.js +0 -1
  1300. package/dist/magma-components/p-21ee64ec.entry.js +0 -1
  1301. package/dist/magma-components/p-224d2f55.entry.js +0 -1
  1302. package/dist/magma-components/p-23791e85.system.entry.js +0 -1
  1303. package/dist/magma-components/p-248c1b2c.system.entry.js +0 -1
  1304. package/dist/magma-components/p-249b80a5.entry.js +0 -1
  1305. package/dist/magma-components/p-262daf4f.entry.js +0 -1
  1306. package/dist/magma-components/p-288ce251.entry.js +0 -1
  1307. package/dist/magma-components/p-2a804b82.entry.js +0 -1
  1308. package/dist/magma-components/p-2aff9851.system.entry.js +0 -1
  1309. package/dist/magma-components/p-2b0667f6.system.entry.js +0 -1
  1310. package/dist/magma-components/p-2bd03b3d.system.entry.js +0 -1
  1311. package/dist/magma-components/p-2bfa7ed9.system.entry.js +0 -1
  1312. package/dist/magma-components/p-2c6c80e8.entry.js +0 -1
  1313. package/dist/magma-components/p-2e88e014.system.entry.js +0 -1
  1314. package/dist/magma-components/p-2f5cc981.system.entry.js +0 -1
  1315. package/dist/magma-components/p-31403b12.entry.js +0 -1
  1316. package/dist/magma-components/p-31616d0b.entry.js +0 -1
  1317. package/dist/magma-components/p-33b03c17.system.entry.js +0 -1
  1318. package/dist/magma-components/p-353f30cc.system.entry.js +0 -1
  1319. package/dist/magma-components/p-35482f9d.system.entry.js +0 -1
  1320. package/dist/magma-components/p-35b5889a.system.entry.js +0 -1
  1321. package/dist/magma-components/p-36d9d329.system.entry.js +0 -1
  1322. package/dist/magma-components/p-36fd1ed7.system.entry.js +0 -1
  1323. package/dist/magma-components/p-377c94ee.system.entry.js +0 -1
  1324. package/dist/magma-components/p-385f395d.system.entry.js +0 -1
  1325. package/dist/magma-components/p-39c09a42.system.entry.js +0 -1
  1326. package/dist/magma-components/p-3_AKUQtJ.system.js +0 -1
  1327. package/dist/magma-components/p-3c306ed0.system.entry.js +0 -1
  1328. package/dist/magma-components/p-3de6fa18.entry.js +0 -1
  1329. package/dist/magma-components/p-41da539f.entry.js +0 -1
  1330. package/dist/magma-components/p-422bb9e2.system.entry.js +0 -1
  1331. package/dist/magma-components/p-447c2d1b.entry.js +0 -1
  1332. package/dist/magma-components/p-44e2965d.entry.js +0 -1
  1333. package/dist/magma-components/p-46266f27.entry.js +0 -1
  1334. package/dist/magma-components/p-4630472f.entry.js +0 -1
  1335. package/dist/magma-components/p-4671336c.entry.js +0 -1
  1336. package/dist/magma-components/p-4803d24f.system.entry.js +0 -1
  1337. package/dist/magma-components/p-4a929c1c.entry.js +0 -1
  1338. package/dist/magma-components/p-4bc7756a.system.entry.js +0 -1
  1339. package/dist/magma-components/p-4f8ae676.system.entry.js +0 -1
  1340. package/dist/magma-components/p-50c922ad.system.entry.js +0 -1
  1341. package/dist/magma-components/p-50cdb70c.system.entry.js +0 -1
  1342. package/dist/magma-components/p-52c10dbf.system.entry.js +0 -1
  1343. package/dist/magma-components/p-52e35c13.system.entry.js +0 -1
  1344. package/dist/magma-components/p-56a8f1d0.system.entry.js +0 -1
  1345. package/dist/magma-components/p-5724212b.entry.js +0 -1
  1346. package/dist/magma-components/p-5be1c273.entry.js +0 -1
  1347. package/dist/magma-components/p-5d05fa1a.entry.js +0 -1
  1348. package/dist/magma-components/p-5de4bf4f.entry.js +0 -1
  1349. package/dist/magma-components/p-5e626696.entry.js +0 -1
  1350. package/dist/magma-components/p-5f1532c0.system.entry.js +0 -1
  1351. package/dist/magma-components/p-5fe8c814.entry.js +0 -1
  1352. package/dist/magma-components/p-60e8812c.system.entry.js +0 -17
  1353. package/dist/magma-components/p-611fa0a4.entry.js +0 -1
  1354. package/dist/magma-components/p-61fefe1b.system.entry.js +0 -1
  1355. package/dist/magma-components/p-62c9216f.system.entry.js +0 -1
  1356. package/dist/magma-components/p-652b4e43.entry.js +0 -1
  1357. package/dist/magma-components/p-6a92f533.entry.js +0 -1
  1358. package/dist/magma-components/p-6b3569a0.entry.js +0 -1
  1359. package/dist/magma-components/p-6b9175f1.system.entry.js +0 -1
  1360. package/dist/magma-components/p-6ecfec17.entry.js +0 -1
  1361. package/dist/magma-components/p-6ed096d3.system.entry.js +0 -1
  1362. package/dist/magma-components/p-6ee86191.entry.js +0 -1
  1363. package/dist/magma-components/p-70719b58.entry.js +0 -1
  1364. package/dist/magma-components/p-70e1a436.entry.js +0 -1
  1365. package/dist/magma-components/p-725d9e09.entry.js +0 -1
  1366. package/dist/magma-components/p-726a76f0.entry.js +0 -1
  1367. package/dist/magma-components/p-72d91c6f.system.entry.js +0 -1
  1368. package/dist/magma-components/p-73926a10.entry.js +0 -1
  1369. package/dist/magma-components/p-7499262d.system.entry.js +0 -1
  1370. package/dist/magma-components/p-750214a3.entry.js +0 -1
  1371. package/dist/magma-components/p-7590a160.entry.js +0 -1
  1372. package/dist/magma-components/p-75fa7e6f.system.entry.js +0 -1
  1373. package/dist/magma-components/p-765447d4.system.entry.js +0 -1
  1374. package/dist/magma-components/p-76cb480d.entry.js +0 -1
  1375. package/dist/magma-components/p-79e12ac8.entry.js +0 -1
  1376. package/dist/magma-components/p-7b4b9b88.system.entry.js +0 -1
  1377. package/dist/magma-components/p-7c464f28.entry.js +0 -1
  1378. package/dist/magma-components/p-7d338f59.system.entry.js +0 -1
  1379. package/dist/magma-components/p-81e16f90.system.entry.js +0 -1
  1380. package/dist/magma-components/p-82c6cdb9.system.entry.js +0 -1
  1381. package/dist/magma-components/p-83b01f8e.system.entry.js +0 -1
  1382. package/dist/magma-components/p-8546f46f.system.entry.js +0 -1
  1383. package/dist/magma-components/p-85a2d99d.entry.js +0 -1
  1384. package/dist/magma-components/p-8620f425.entry.js +0 -1
  1385. package/dist/magma-components/p-89581b08.system.entry.js +0 -1
  1386. package/dist/magma-components/p-8964a9fe.entry.js +0 -1
  1387. package/dist/magma-components/p-899cd759.entry.js +0 -1
  1388. package/dist/magma-components/p-8RYXTPXs.js +0 -1
  1389. package/dist/magma-components/p-8b2408b2.entry.js +0 -1
  1390. package/dist/magma-components/p-8b9f6896.entry.js +0 -1
  1391. package/dist/magma-components/p-8bde0c42.entry.js +0 -1
  1392. package/dist/magma-components/p-8d5955ca.system.entry.js +0 -1
  1393. package/dist/magma-components/p-91a1d3d5.entry.js +0 -1
  1394. package/dist/magma-components/p-93538408.system.entry.js +0 -1
  1395. package/dist/magma-components/p-94ff105b.system.entry.js +0 -1
  1396. package/dist/magma-components/p-96f7ec63.entry.js +0 -1
  1397. package/dist/magma-components/p-97144490.entry.js +0 -1
  1398. package/dist/magma-components/p-999b0698.system.entry.js +0 -1
  1399. package/dist/magma-components/p-9e533765.system.entry.js +0 -18
  1400. package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
  1401. package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
  1402. package/dist/magma-components/p-BudfaWhu.js +0 -1
  1403. package/dist/magma-components/p-C1oxPa_J.js +0 -1
  1404. package/dist/magma-components/p-CAd5312P.js +0 -2
  1405. package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
  1406. package/dist/magma-components/p-CSb7Iu19.js +0 -1
  1407. package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
  1408. package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
  1409. package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
  1410. package/dist/magma-components/p-DssKRrAV.system.js +0 -1
  1411. package/dist/magma-components/p-MSUJeuJp.js +0 -1
  1412. package/dist/magma-components/p-a24d6d4a.system.entry.js +0 -1
  1413. package/dist/magma-components/p-a24dadaa.system.entry.js +0 -1
  1414. package/dist/magma-components/p-a2b84011.system.entry.js +0 -1
  1415. package/dist/magma-components/p-a2d761d6.entry.js +0 -1
  1416. package/dist/magma-components/p-a379adca.entry.js +0 -1
  1417. package/dist/magma-components/p-a46f7424.system.entry.js +0 -1
  1418. package/dist/magma-components/p-a47708f1.system.entry.js +0 -1
  1419. package/dist/magma-components/p-a4d11055.system.entry.js +0 -1
  1420. package/dist/magma-components/p-a4oAcjYG.js +0 -5
  1421. package/dist/magma-components/p-a5ef9d32.entry.js +0 -18
  1422. package/dist/magma-components/p-a6103622.entry.js +0 -1
  1423. package/dist/magma-components/p-a6b8b861.entry.js +0 -1
  1424. package/dist/magma-components/p-a6bdaa85.entry.js +0 -1
  1425. package/dist/magma-components/p-a716833c.system.entry.js +0 -1
  1426. package/dist/magma-components/p-a877906d.system.entry.js +0 -1
  1427. package/dist/magma-components/p-a8a2d90e.system.entry.js +0 -1
  1428. package/dist/magma-components/p-a92edada.entry.js +0 -1
  1429. package/dist/magma-components/p-aafec5fe.entry.js +0 -1
  1430. package/dist/magma-components/p-abce0c57.system.entry.js +0 -1
  1431. package/dist/magma-components/p-ac2ee475.entry.js +0 -1
  1432. package/dist/magma-components/p-ac5baffa.system.entry.js +0 -1
  1433. package/dist/magma-components/p-ad1ad433.system.entry.js +0 -1
  1434. package/dist/magma-components/p-ae433eb9.entry.js +0 -1
  1435. package/dist/magma-components/p-afaef9a1.entry.js +0 -1
  1436. package/dist/magma-components/p-b257222c.system.entry.js +0 -1
  1437. package/dist/magma-components/p-b472ed3c.entry.js +0 -1
  1438. package/dist/magma-components/p-b4fc19e9.entry.js +0 -1
  1439. package/dist/magma-components/p-b53ef2c1.entry.js +0 -1
  1440. package/dist/magma-components/p-b7dedc9f.entry.js +0 -1
  1441. package/dist/magma-components/p-b97edfb5.entry.js +0 -1
  1442. package/dist/magma-components/p-bc851caf.entry.js +0 -1
  1443. package/dist/magma-components/p-bc8ef479.system.entry.js +0 -9
  1444. package/dist/magma-components/p-bdc54840.system.entry.js +0 -1
  1445. package/dist/magma-components/p-bf29ca5a.entry.js +0 -1
  1446. package/dist/magma-components/p-bfc29d3b.system.entry.js +0 -1
  1447. package/dist/magma-components/p-bff1e84c.system.entry.js +0 -1
  1448. package/dist/magma-components/p-c01c49b6.entry.js +0 -1
  1449. package/dist/magma-components/p-c0296d86.system.entry.js +0 -1
  1450. package/dist/magma-components/p-c036f516.entry.js +0 -1
  1451. package/dist/magma-components/p-c3d8aa52.entry.js +0 -1
  1452. package/dist/magma-components/p-c4e7b103.system.entry.js +0 -1
  1453. package/dist/magma-components/p-c7a0a746.system.entry.js +0 -1
  1454. package/dist/magma-components/p-c92a772e.entry.js +0 -1
  1455. package/dist/magma-components/p-ca09ab1d.system.entry.js +0 -1
  1456. package/dist/magma-components/p-cc9212ce.system.entry.js +0 -1
  1457. package/dist/magma-components/p-cc95225c.system.entry.js +0 -1
  1458. package/dist/magma-components/p-cd49c455.entry.js +0 -1
  1459. package/dist/magma-components/p-d0542487.entry.js +0 -1
  1460. package/dist/magma-components/p-d0dfe659.entry.js +0 -1
  1461. package/dist/magma-components/p-d0eb94ea.system.entry.js +0 -1
  1462. package/dist/magma-components/p-d3e5c4eb.system.entry.js +0 -1
  1463. package/dist/magma-components/p-d4295773.entry.js +0 -1
  1464. package/dist/magma-components/p-d5700423.system.entry.js +0 -1
  1465. package/dist/magma-components/p-d838cb1c.system.entry.js +0 -1
  1466. package/dist/magma-components/p-d9605a5d.system.entry.js +0 -1
  1467. package/dist/magma-components/p-daa8f835.entry.js +0 -1
  1468. package/dist/magma-components/p-db4e2a0b.system.entry.js +0 -1
  1469. package/dist/magma-components/p-de0dac8f.entry.js +0 -1
  1470. package/dist/magma-components/p-de8204f9.entry.js +0 -1
  1471. package/dist/magma-components/p-e0b841e3.entry.js +0 -1
  1472. package/dist/magma-components/p-e35ab355.entry.js +0 -1
  1473. package/dist/magma-components/p-e44e2652.system.entry.js +0 -1
  1474. package/dist/magma-components/p-e48d23f4.system.entry.js +0 -1
  1475. package/dist/magma-components/p-e570aec5.system.entry.js +0 -1
  1476. package/dist/magma-components/p-e57698df.system.entry.js +0 -1
  1477. package/dist/magma-components/p-e669739e.entry.js +0 -1
  1478. package/dist/magma-components/p-e8fa7a07.entry.js +0 -1
  1479. package/dist/magma-components/p-ea2c8dd1.entry.js +0 -1
  1480. package/dist/magma-components/p-ea881c45.system.entry.js +0 -1
  1481. package/dist/magma-components/p-ebfb6963.system.entry.js +0 -1
  1482. package/dist/magma-components/p-eca8523b.system.entry.js +0 -1
  1483. package/dist/magma-components/p-ef142420.system.entry.js +0 -1
  1484. package/dist/magma-components/p-ef56af85.system.entry.js +0 -1
  1485. package/dist/magma-components/p-f0762290.entry.js +0 -1
  1486. package/dist/magma-components/p-f1832c1e.system.entry.js +0 -1
  1487. package/dist/magma-components/p-f4b1974a.entry.js +0 -1
  1488. package/dist/magma-components/p-f7cfc9a7.system.entry.js +0 -1
  1489. package/dist/magma-components/p-f83a9e08.entry.js +0 -1
  1490. package/dist/magma-components/p-f8ee5fec.system.entry.js +0 -1
  1491. package/dist/magma-components/p-f91dab2b.entry.js +0 -1
  1492. package/dist/magma-components/p-fMwnXhio.js +0 -1
  1493. package/dist/magma-components/p-fa61d03c.entry.js +0 -1
  1494. package/dist/magma-components/p-fbf423a7.system.entry.js +0 -1
  1495. package/dist/magma-components/p-fbfb589c.entry.js +0 -1
  1496. package/dist/magma-components/p-fc56d9ae.entry.js +0 -1
  1497. package/dist/magma-components/p-fc862fe2.system.entry.js +0 -1
  1498. package/dist/magma-components/p-fd574e21.entry.js +0 -1
  1499. package/dist/magma-components/p-fd649ac2.entry.js +0 -1
  1500. package/dist/magma-components/p-fed36619.entry.js +0 -1
  1501. package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
  1502. package/dist/magma-components/p-oCzRm29V.system.js +0 -1
  1503. package/dist/magma-components/p-ttrRC6OE.js +0 -1
  1504. package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
  1505. package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -40
  1506. package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
  1507. package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
  1508. package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
  1509. package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
  1510. package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
  1511. package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
  1512. package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
  1513. package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
  1514. package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
  1515. package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
  1516. package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
  1517. package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
  1518. package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
  1519. package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
  1520. package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
  1521. package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
  1522. package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
  1523. package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
  1524. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
  1525. package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
  1526. package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
  1527. package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
  1528. package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
  1529. package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
  1530. package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
  1531. package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
  1532. package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
  1533. package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
  1534. package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
  1535. package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
  1536. package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
  1537. package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
  1538. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
  1539. package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
  1540. package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
  1541. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
  1542. package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
  1543. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
  1544. package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
  1545. package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
  1546. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
  1547. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
  1548. package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
  1549. package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
  1550. package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
  1551. package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
  1552. package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
  1553. package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
  1554. package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
  1555. package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
  1556. package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
  1557. package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
  1558. package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
  1559. package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
  1560. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -156
  1561. package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
  1562. package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
  1563. package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
  1564. package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
  1565. package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
  1566. package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
  1567. package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
  1568. package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
  1569. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
  1570. package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
  1571. package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
  1572. package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
  1573. package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
  1574. package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
  1575. package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
  1576. package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
  1577. package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
  1578. package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
  1579. package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
  1580. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
  1581. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
  1582. package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
  1583. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
  1584. package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
  1585. package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
  1586. package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
  1587. package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
  1588. package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
  1589. package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
  1590. package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
  1591. package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
  1592. package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
  1593. package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
  1594. package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
  1595. package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
  1596. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
  1597. package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
  1598. package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
  1599. package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
  1600. package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
  1601. package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
  1602. package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
  1603. package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
  1604. package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
  1605. package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
  1606. package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
  1607. package/dist/types/event-detail/theme-variant.d.ts +0 -5
  1608. package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
  1609. package/dist/types/storybook/color-scale.stories.d.ts +0 -7
  1610. package/dist/types/storybook/components-preview.stories.d.ts +0 -33
  1611. package/dist/types/storybook/example-page.stories.d.ts +0 -7
  1612. package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
  1613. package/dist/types/storybook/input-form.stories.d.ts +0 -7
  1614. package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
  1615. package/dist/types/test/file.d.ts +0 -35
  1616. package/dist/types/test/mock.d.ts +0 -2
  1617. /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
  1618. /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
  1619. /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
  1620. /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
  1621. /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
  1622. /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
  1623. /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
  1624. /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
  1625. /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
  1626. /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
  1627. /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
  1628. /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
  1629. /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
  1630. /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
  1631. /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
  1632. /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
  1633. /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
  1634. /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
  1635. /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
  1636. /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
  1637. /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
  1638. /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
  1639. /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
@@ -1 +1,134 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,i){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):n(t.value).then(a,s)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(i=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];n=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineRemove}from"./remove-D17B058a.js";import{m as miBaselineDone}from"./done-CvUz9jjh.js";import{L as Locale}from"./locale-a4oAcjYG.js";import{h as hashRandomValue}from"./aria-CSCy6TMW.js";import{s as subscribePreference}from"./preference-fMwnXhio.js";var mggAiChatbotOutline='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M10 11H8V8h2zM16 11h-2V8h2z"/>\n <path fill-rule="evenodd" d="M21.544 10.436a3 3 0 0 1 0 3.128l-3.667 6A3 3 0 0 1 15.317 21H8.683a3 3 0 0 1-2.56-1.436l-3.666-6a3 3 0 0 1 0-3.128l3.667-6A3 3 0 0 1 8.683 3h6.635a3 3 0 0 1 2.56 1.436zM4.162 11.479a1 1 0 0 0 0 1.043l3.668 6a1 1 0 0 0 .853.478h6.634a1 1 0 0 0 .853-.479l3.667-6a1 1 0 0 0 0-1.042l-3.667-6A1 1 0 0 0 15.317 5H8.683a1 1 0 0 0-.853.479z" clip-rule="evenodd"/>\n <path d="M16.707 14.707C15.477 15.937 13.698 16.5 12 16.5s-3.477-.563-4.707-1.793l1.414-1.414c.77.77 1.991 1.207 3.293 1.207s2.523-.437 3.293-1.207z"/>\n</svg>\n';var miBaselineAdd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>';var miBaselineVisible='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>';var miBaselineVisibleOff='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>';var miOutlineMic='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/></svg>';var miOutlineMicOff='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.8 4.9c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 3.91L15 10.6V5c0-1.66-1.34-3-3-3c-1.54 0-2.79 1.16-2.96 2.65l1.76 1.76V4.9zM19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3 4.27l6 6V11c0 1.66 1.34 3 3 3c.23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52c-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2l1.41-1.41L4.41 2.86z"/></svg>';var decrease$3="Μείωση";var hidePassword$3="Απόκρυψη κωδικού";var increase$3="Αύξηση";var showPassword$3="Εμφάνιση κωδικού";var speechToTextError$3="Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";var speechToTextOff$3="Διακοπή φωνητικής υπαγόρευσης";var speechToTextOn$3="Έναρξη φωνητικής υπαγόρευσης";var localeEl={decrease:decrease$3,hidePassword:hidePassword$3,increase:increase$3,showPassword:showPassword$3,speechToTextError:speechToTextError$3,speechToTextOff:speechToTextOff$3,speechToTextOn:speechToTextOn$3};var decrease$2="Decrease";var hidePassword$2="Hide password";var increase$2="Increase";var showPassword$2="Show password";var speechToTextError$2="Voice dictation is not supported by this browser";var speechToTextOff$2="Stop voice dictation";var speechToTextOn$2="Start voice dictation";var localeEn={decrease:decrease$2,hidePassword:hidePassword$2,increase:increase$2,showPassword:showPassword$2,speechToTextError:speechToTextError$2,speechToTextOff:speechToTextOff$2,speechToTextOn:speechToTextOn$2};var decrease$1="Disminuir";var hidePassword$1="Ocultar contraseña";var increase$1="Aumentar";var showPassword$1="Mostrar contraseña";var speechToTextError$1="El dictado por voz no es compatible con este navegador";var speechToTextOff$1="Detener dictado por voz";var speechToTextOn$1="Iniciar dictado por voz";var localeEs={decrease:decrease$1,hidePassword:hidePassword$1,increase:increase$1,showPassword:showPassword$1,speechToTextError:speechToTextError$1,speechToTextOff:speechToTextOff$1,speechToTextOn:speechToTextOn$1};var decrease="Diminuisci";var hidePassword="Nascondi password";var increase="Aumenta";var showPassword="Visualizza password";var speechToTextError="Dettatura vocale non supportata da questo browser";var speechToTextOff="Ferma dettatura vocale";var speechToTextOn="Inizia dettatura vocale";var localeIt={decrease:decrease,hidePassword:hidePassword,increase:increase,showPassword:showPassword,speechToTextError:speechToTextError,speechToTextOff:speechToTextOff,speechToTextOn:speechToTextOn};var NullValidator=function(){return null};var requiredValidor=function(t){return t.length>0?null:{required:""}};var maxValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r>t?{max:"valore massimo ".concat(t)}:null}};var minValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r<t?{min:"valore minimo ".concat(t)}:null}};var maxLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length>t?{minLenght:"La lunghezza massima accettata è ".concat(t)}:null}};var minLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length<t?{minLenght:"La lunghezza minima accettata è ".concat(t)}:null}};var isbnValidatorFn=function(t){if(t==="")return null;if(Number.isNaN(t.slice(0,-1))||t.length!==10&&t.length!==13)return{"isbn-error":"formato isbn non correto"};var e=t.split("").map((function(t){return t==="X"?10:Number(t)}));var r=0;if(t.length===10){var i=e.reduce((function(t,e,r){return t+(10-r)*e}),0);r=i%11}else{var i=e.reduce((function(t,e,r){var i=r%2===0?1:3;return t+e*i}),0);r=i%10}return r===0?null:{"isbn-error":"codice isbn non valido"}};var Validator=function(){function t(){this._validators=[];this._errors=null;this.isValid=true}t.prototype.addValidator=function(t){var e;if(Array.isArray(t)){(e=this._validators).push.apply(e,t)}else{this._validators.push(t)}};t.prototype._hasValidator=function(t,e){return Array.isArray(t)?t.includes(e):t===e};t.prototype.hasValidator=function(t){return t?this._hasValidator(this._validators,t):this._validators.length>0};t.prototype.removeValidator=function(t){var e=this;this._validators=this._validators.filter((function(r){return!e._hasValidator(t,r)}))};t.prototype.validate=function(t){var e=this._validators.map((function(e){return e(t)})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}),NullValidator);this._errors=Object.keys(e).length===0?null:e;this.isValid=!this._errors};Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:false,configurable:true});return t}();var InputMaskPattern=function(){function t(){}return t}();InputMaskPattern.CF_Regex=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i;InputMaskPattern.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A";InputMaskPattern.CC_MASK="9999-9999-9999-9999";var InputValidationManager=function(){function t(t){this.validator=new Validator;this.pattern=t}t.prototype.mask=function(t){if(!this.pattern){throw new Error("no pattern found, set pattern before mask")}};t.prototype.isValid=function(t){this.validator.validate(t);return this.validator.isValid};return t}();function createInputValidationManager(t){var e;switch(t){case"tel":e=new InputValidationManager("");break;case"url":e=new InputValidationManager("");break;case"cc":e=new InputValidationManager(InputMaskPattern.CC_MASK);break;case"cf":e=new InputValidationManager(InputMaskPattern.CF_MASK);e.validator.addValidator((function(t){if(t==="")return null;return InputMaskPattern.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"}}));e.validator.addValidator((function(t){if(t==="")return null;return t.length===16?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}}));break;case"isbn":e=new InputValidationManager;e.validator.addValidator(isbnValidatorFn);break;case"piva":e=new InputValidationManager("");break;default:e=new InputValidationManager("")}return e}var mdsInputCss=function(){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{--mds-input-background:rgb(var(--tone-neutral,0 0 0));--mds-input-placeholder-default-color:rgb(var(--tone-neutral-06,158 158 158));--mds-input-placeholder-focus-color:rgb(var(--tone-neutral-07,134 134 134));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));--mds-input-tip-background:rgb(var(--tone-neutral-03,233 233 233));--mds-input-icon-color:var(--mds-input-variant-color-rgb,0 0 0);--mds-input-variant-color-rgb:0 0 0;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:calc(var(--spacing,.0025rem)*6400);--mds-input-textarea-min-height:calc(var(--spacing,.0025rem)*2400);--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-textarea-field-sizing:content}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-input-tip,mds-input-tip-item,mds-spinner):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}@property --mds-input-variant-color-rgb{syntax:"<integer>+";inherits:false;initial-value:0 0 0}@property --mds-input-textarea-resize{syntax:"none|vertical";inherits:false;initial-value:none}@property --mds-input-textarea-field-sizing{syntax:"content|fixed";inherits:false;initial-value:content}:host{--mds-input-background:rgb(var(--tone-neutral,0 0 0));--mds-input-icon-color:rgb(var(--variant-primary-03,211 226 255));--mds-input-placeholder-default-color:rgb(var(--tone-neutral-06,158 158 158));--mds-input-placeholder-focus-color:rgb(var(--tone-neutral-07,134 134 134));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));--mds-input-ring:0 0 0 1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1);--mds-input-shadow:0 1px 3px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06);--mds-input-textarea-field-sizing:content;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:calc(var(--spacing,.0025rem)*6400);--mds-input-textarea-min-height:calc(var(--spacing,.0025rem)*2400);--mds-input-tip-background:rgb(var(--tone-neutral-03,233 233 233));--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-variant-color-rgb:var(--variant-primary-03,211 226 255);--mds-input-border-radius:var(--radius-xl,20px);--mds-input-transition-duration:var(--duration-300,.3s);--mds-input-controls-border:2px solid rgb(var(--tone-neutral-09,76 76 76));--mds-input-controls-color:rgb(var(--tone-neutral-03,233 233 233));--private-input-transition-duration:var(--mds-input-transition-duration);border-radius:var(--mds-input-border-radius);corner-shape:var(--magma-corner-shape,round);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));gap:calc(var(--spacing,.0025rem)*200);line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;container-type:inline-size;display:flex;position:relative;--mds-input-icon-color:rgb(var(--variant-primary-04,184 208 255));--mds-input-variant-color-rgb:0 0 0}:host([typography=detail]) .input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=snippet]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-background,rgb(var(--tone-neutral,0 0 0)));border-radius:inherit;-webkit-box-shadow:var(--mds-input-ring),var(--mds-input-shadow);box-shadow:var(--mds-input-ring),var(--mds-input-shadow);box-sizing:border-box;color:rgb(var(--tone-neutral-02,244 244 244));corner-shape:inherit;border:0;margin:0;max-width:100%;min-height:3rem;overflow:hidden;padding:calc(var(--spacing,.0025rem)*300) calc(var(--spacing,.0025rem)*400);text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-transition-duration);transition-duration:var(--private-input-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-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));width:100%}.input::-webkit-input-placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color;-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))}.input:-ms-placeholder-shown{color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::-moz-placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158)));-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color;-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))}.input:hover::placeholder{color:var(--mds-input-placeholder-hover-color,var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158))))}.input:hover:-ms-placeholder-shown{color:var(--mds-input-placeholder-hover-color,var(--mds-input-placeholder-default-color,rgb(var(--tone-neutral-06,158 158 158))))}.input:focus::placeholder{color:var(--mds-input-placeholder-focus-color,rgb(var(--tone-neutral-07,134 134 134)))}.input:focus:-ms-placeholder-shown{color:var(--mds-input-placeholder-focus-color,rgb(var(--tone-neutral-07,134 134 134)))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}:host textarea.input,:host([typography]) textarea.input{border-radius:var(--mds-input-border-radius);field-sizing:var(--mds-input-textarea-field-sizing,content);max-height:var(--mds-input-textarea-max-height,calc(var(--spacing,.0025rem)*6400));min-height:var(--mds-input-textarea-min-height,calc(var(--spacing,.0025rem)*2400));overflow:auto;resize:var(--mds-input-textarea-resize,none)}@container style(--mds-input-textarea-resize:none){:host textarea.input,:host([typography]) textarea.input{border-bottom-right-radius:0}}.input:focus{--tw-outline-style:none;outline-style:none;--mds-input-ring:0 0 0 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/1);--mds-input-shadow:0 4px 6px 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06)}.input:disabled{background-color:rgb(var(--tone-neutral-10,60 60 60))}.input:disabled::placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05,197 197 197))}.input.has-icon{padding-left:calc(var(--spacing,.0025rem)*1100)}.input.has-right-icon{padding-right:calc(var(--spacing,.0025rem)*1100)}.await,.icon{fill:var(--mds-input-icon-color,var(--mds-input-variant-color-rgb,0 0 0));left:calc(var(--spacing,.0025rem)*300);position:absolute;top:calc(var(--spacing,.0025rem)*300)}.await{color:var(--mds-input-icon-color,var(--mds-input-variant-color-rgb,0 0 0));height:24px;width:24px}.counter{border-left:var(--mds-input-controls-border);display:flex;flex-direction:column;gap:0;position:absolute;right:0}.counter-button{aspect-ratio:unset;border:0;border-radius:var(--mds-input-border-radius);fill:var(--mds-input-controls-color);height:calc(var(--spacing,.0025rem)*600);min-height:0;width:calc(var(--spacing,.0025rem)*700)}.counter .counter-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mds-input-border-radius)}.counter .counter-button:last-child{border-bottom-left-radius:0;border-bottom-right-radius:var(--mds-input-border-radius);border-top-left-radius:0;border-top-right-radius:0}.counter-button--horizontal{bottom:0;height:calc(var(--spacing,.0025rem)*1200);position:absolute;top:0;width:calc(var(--spacing,.0025rem)*1200)}.counter-button--decrease{border-bottom-right-radius:0;border-right:var(--mds-input-controls-border);border-top-right-radius:0;left:0}.counter-button--increase{border-bottom-left-radius:0;border-left:var(--mds-input-controls-border);border-top-left-radius:0;right:0}.mic-toggle-button,.password-toggle-button{fill:var(--mds-input-controls-color);position:absolute;right:calc(var(--spacing,.0025rem)*150);top:calc(var(--spacing,.0025rem)*150)}.toggle-button--error{cursor:help;fill:rgb(var(--tone-neutral-06,158 158 158))}.mic-toggle-button--recording{animation:var(--animate-pulse,pulse 2s cubic-bezier(.4,0,.6,1) infinite)}:host([type=number]) .input{-moz-appearance:textfield;padding-right:calc(var(--spacing,.0025rem)*800)}:host([type=number][controls-layout=horizontal]) .input{padding-left:calc(var(--spacing,.0025rem)*1400);padding-right:calc(var(--spacing,.0025rem)*1400);text-align:center}:host([type=number][controls-layout=horizontal][icon]) .input{padding-left:calc(var(--spacing,.0025rem)*2400);text-align:left}:host([type=number][controls-layout=horizontal]) .icon{left:calc(var(--spacing,.0025rem)*1500)}:host([type=password]) .input{padding-right:calc(var(--spacing,.0025rem)*1000)}:host([type=password]) .input[type=text]:not(:-moz-placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=password]) .input[type=text]:not(:-ms-placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=password]) .input[type=text]:not(:placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=cf]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host(:focus){--mds-input-icon-color:rgb(var(--variant-primary-05,152 188 255));--mds-input-variant-color-rgb:var(--variant-primary-04,184 208 255)}:host([variant=ai]){--mds-input-icon-color:rgb(var(--variant-ai-04,218 199 253));--mds-input-tip-background:rgb(var(--variant-ai-05,202 174 251));--mds-input-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-icon-color:rgb(var(--variant-ai-05,202 174 251));--mds-input-variant-color-rgb:var(--variant-ai-04,218 199 253)}:host([variant=info]){--mds-input-icon-color:rgb(var(--status-info-04,159 216 241));--mds-input-tip-background:rgb(var(--status-info-05,112 198 234));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-icon-color:rgb(var(--status-info-05,112 198 234));--mds-input-variant-color-rgb:var(--status-info-04,159 216 241)}:host([variant=success]){--mds-input-icon-color:rgb(var(--status-success-04,158 222 181));--mds-input-tip-background:rgb(var(--status-success-05,107 206 147));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-icon-color:rgb(var(--status-success-05,107 206 147));--mds-input-variant-color-rgb:var(--status-success-04,158 222 181)}:host([variant=warning]){--mds-input-icon-color:rgb(var(--status-warning-04,255 200 33));--mds-input-tip-background:rgb(var(--status-warning-05,237 177 0));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-icon-color:rgb(var(--status-warning-05,237 177 0));--mds-input-variant-color-rgb:var(--status-warning-04,255 200 33)}:host([variant=error]){--mds-input-icon-color:rgb(var(--status-error-04,254 193 189));--mds-input-tip-background:rgb(var(--status-error-05,250 165 160));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-icon-color:rgb(var(--status-error-05,250 165 160));--mds-input-variant-color-rgb:var(--status-error-04,254 193 189)}:host([pref-animation=reduce]){--private-input-transition-duration:0s}:host([pref-contrast=more]){--mds-input-ring:var(--shadow-outline-strong-50);--mds-input-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}:host([pref-theme=dark]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-outline-50);--mds-input-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:host([pref-theme=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}.password-mask{align-items:center;background-color:var(--mds-input-background,rgb(var(--tone-neutral,0 0 0)));border-radius:var(--radius-xs,8px);bottom:0;display:flex;gap:calc(var(--spacing,.0025rem)*50);height:100%;justify-content:start;left:0;overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*500);pointer-events:none;position:absolute;right:calc(var(--spacing,.0025rem)*1200);top:0}.password-mask:before{background-image:-webkit-gradient(linear,left top,right top,from(#0000),to(var(--mds-input-background,rgb(var(--tone-neutral,0 0 0)))));background-image:linear-gradient(to right,#0000,var(--mds-input-background,rgb(var(--tone-neutral,0 0 0))));bottom:0;content:"";display:inline-flex;position:absolute;right:0;top:0;width:calc(var(--spacing,.0025rem)*600)}.password-mask-items{background-color:rgb(var(--tone-neutral-08,107 107 107)/0);display:inline-flex;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*100)}.password-mask-item,.password-mask-items{border-radius:1000px;-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color;-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))}.password-mask-item{background-color:rgb(var(--tone-neutral-03,233 233 233));height:calc(var(--spacing,.0025rem)*200);width:calc(var(--spacing,.0025rem)*200)}:host(:focus-within) .password-mask-items{background-color:rgb(var(--tone-neutral-08,107 107 107))}@keyframes pulse{50%{opacity:.5}}@media (forced-colors:active){.input:focus{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-ring:var(--shadow-outline-strong-50);--mds-input-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05,197 197 197))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--tone-neutral-03,233 233 233))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--tone-neutral-03,233 233 233))}}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-outline-50);--mds-input-background:rgb(var(--tone-neutral-09,76 76 76));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06,158 158 158))}:is(:host([pref-theme=system]:not([pref-theme-scheme=light])),:host(:not([pref-theme]))) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08,107 107 107))}}'};var MdsInput=function(){function t(t){var e=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputChange");this.keyDownEvent=createEvent(this,"mdsInputKeydown");this.blurEvent=createEvent(this,"mdsInputBlur");this.focusEvent=createEvent(this,"mdsInputFocus");this.speechEvent=createEvent(this,"mdsInputSpeechEnd");this.validationEvent=createEvent(this,"mdsInputValidation");if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.speechToTextIcon=miOutlineMic;this.hasFocus=false;this.isRecording=false;this.countVariant="count-empty";this.isPasswordVisible=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.autocomplete="off";this.autofocus=false;this.await=false;this.controlsLayout="vertical";this.controlsIcon="arrow";this.disabled=false;this.readonly=false;this.required=false;this.variant="primary";this.type="text";this.typography="detail";this.value="";this.countMaxLength=function(){var t,r,i;if(e.maxlength===undefined||e.maxlength===0||Number.isNaN(e.maxlength))return;if(e.value===undefined)return;e.currentLengthLabel="".concat((r=(t=e.value)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0," / ").concat(e.maxlength);var n=Math.round(e.value.length*100/e.maxlength);if(((i=e.value)===null||i===void 0?void 0:i.length)===e.maxlength){e.countVariant="count-full";return}if(n>=100){e.countVariant="count-full";return}if(n>=75){e.countVariant="count-almost-full";return}if(n>=50){e.countVariant="count-almost";return}if(n>=25){e.countVariant="count-incomplete";return}e.countVariant="count-empty"};this.onInput=function(t){var r=t.target;if(r){e.value=r.value;e.internals.setFormValue(e.value)}e.keyDownEvent.emit(t)};this.onBlur=function(){e.hasFocus=false;e.validateInput();e.blurEvent.emit()};this.onFocus=function(t){var r=t.target;e.hasFocus=true;e.focusEvent.emit();if(e.readonly){setTimeout((function(){r.select()}),10)}};this.stepUp=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepUp();e.value=e.nativeInput.value}};this.stepDown=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepDown();e.value=e.nativeInput.value}};this.toggleTextRecognition=function(){e.isRecording=!e.isRecording;if(!e.isRecording){e.speechToTextLabel=e.t.get("speechToTextOn");e.speechToTextIcon=miOutlineMic;e.stopRecognition();return}e.speechToTextLabel=e.t.get("speechToTextOff");e.speechToTextIcon=miBaselineDone;e.startRecognition()};this.handlePasswordToggleClick=function(){e.isPasswordVisible=!e.isPasswordVisible};this.onSpeechRecognitionError=function(){console.error("SpeechRecognition API may not work properly on Chrome based browsers.");e.speechButton.classList.remove("mic-toggle-button--recording");e.speechButton.classList.add("toggle-button--error");e.isRecording=false;e.speechToTextLabel=e.t.get("speechToTextError");e.speechToTextIcon=miOutlineMicOff};this.startRecognition=function(){var t,r,i;if(e.speechButton==null){e.speechButton=(r=(t=e.el)===null||t===void 0?void 0:t.shadowRoot)===null||r===void 0?void 0:r.querySelector(".mic-toggle-button")}var n=(i=window.SpeechRecognition)!==null&&i!==void 0?i:window.webkitSpeechRecognition;e.value="";if(!n){e.onSpeechRecognitionError();return}e.recognition=new n;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var o="";var a=0;e.recognition.onresult=function(t){var r=t.results;var i=r[a];if(i.isFinal){o+=i[0].transcript;e.value=o;a+=1;return}e.value=o+i[0].transcript};e.recognition.onerror=function(t){console.error("SpeechRecognition API error:",t.error);e.onSpeechRecognitionError()};e.recognition.start()};this.stopRecognition=function(){if(e.recognition){e.recognition.stop();e.speechEvent.emit()}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.el);this.t.update();return[2]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.connectedCallback=function(){var t=this;this.unsubscribePrefAnimation=subscribePreference("animation",(function(e){t.prefAnimation=e}));this.unsubscribePrefContrast=subscribePreference("contrast",(function(e){t.prefContrast=e}));this.unsubscribePrefTheme=subscribePreference("theme",(function(e){t.prefTheme=e}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(e){t.prefThemeScheme=e}));this.datalistId="datalist-".concat(hashRandomValue())};t.prototype.disconnectedCallback=function(){var t,e,r,i;(t=this.unsubscribePrefAnimation)===null||t===void 0?void 0:t.call(this);(e=this.unsubscribePrefContrast)===null||e===void 0?void 0:e.call(this);(r=this.unsubscribePrefTheme)===null||r===void 0?void 0:r.call(this);(i=this.unsubscribePrefThemeScheme)===null||i===void 0?void 0:i.call(this)};t.prototype.componentWillLoad=function(){var t;this.language=this.t.lang(this.el);this.speechToTextLabel=this.t.get("speechToTextOn");if(this.el.hasAttribute("tabindex")){var e=this.el.getAttribute("tabindex");this.tabindex=e!==null?parseInt(e):undefined;this.el.removeAttribute("tabindex")}this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);this.maxLengthChanged(this.maxlength);this.isValid=!(this.required&&this.value==="")};t.prototype.componentDidLoad=function(){var t,e,r;this.inputValidation=createInputValidationManager(this.type);this.setValidators();(t=this.nativeInput)===null||t===void 0?void 0:t.setAttribute("pattern",String(this.inputValidation.pattern));if(this.autofocus){(e=this.nativeInput)===null||e===void 0?void 0:e.focus()}this.variantChanged((r=this.variant)!==null&&r!==void 0?r:"primary")};t.prototype.setValidators=function(){if(this.required)this.inputValidation.validator.addValidator(requiredValidor);if(this.max!==""&&Number(this.max)!==0&&!Number.isNaN(Number(this.max)))this.inputValidation.validator.addValidator(maxValidator(Number(this.max)));if(this.min!==""&&Number(this.min)!==0&&!Number.isNaN(Number(this.min)))this.inputValidation.validator.addValidator(minValidator(Number(this.max)));if(this.maxlength!==undefined&&this.maxlength!==0&&!Number.isNaN(this.maxlength))this.inputValidation.validator.addValidator(maxLenghtValidator(this.maxlength));if(this.minlength!==undefined&&this.minlength!==0&&!Number.isNaN(this.minlength))this.inputValidation.validator.addValidator(minLenghtValidator(this.minlength))};t.prototype.valueChanged=function(){var t;this.changeEvent.emit({value:this.value});this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);if(this.maxlength!==undefined){this.countMaxLength()}if(this.value==="")return;if(!this.isValid)this.validateInput()};t.prototype.variantChanged=function(t){if(t==="ai"&&this.icon===undefined){this.icon=mggAiChatbotOutline}};t.prototype.maxLengthChanged=function(t){if(t===undefined)return;if(t<=0){this.maxlength=undefined;return}this.countMaxLength()};t.prototype.addValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.addValidator(t);return[2,Promise.resolve()]}))}))};t.prototype.removeValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.removeValidator(t);return[2]}))}))};t.prototype.hasValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.inputValidation.validator.hasValidator(t)]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.inputValidation.validator.errors)]}))}))};t.prototype.validateInput=function(){if(this.inputValidation.validator.hasValidator()){this.isValid=this.inputValidation.isValid(this.value);if(this.value===""&&!this.required)this.variant="primary";else this.variant=this.isValid?"success":"error";this.validationEvent.emit(this.isValid)}return this.isValid};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.componentWillRender=function(){this.t.lang(this.el)};t.prototype.render=function(){var t=this;var e,r,i;return h(Host,{key:"0d7460db7aad441110cd7f4d47764c2d9e791108","pref-animation":this.prefAnimation,"pref-contrast":this.prefContrast,"pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"c172027bf96b0c93dbf96d248a1c88b301039e45",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",tone:"text",part:"counter-button-decrease"}),this.type==="textarea"?h("textarea",{class:clsx("input",((e=this.icon)!==null&&e!==void 0?e:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoFocus:this.autofocus,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,tabIndex:this.tabindex,value:this.value}):h("input",{class:clsx("input",((r=this.icon)!==null&&r!==void 0?r:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoComplete:this.autocomplete,autoFocus:this.autofocus,disabled:this.disabled,max:this.max,maxLength:this.maxlength,min:this.min,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,pattern:this.pattern,list:this.datalistId,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,step:this.step,tabIndex:this.tabindex,type:this.type==="password"&&this.isPasswordVisible?"text":this.type,value:this.value}),this.type==="number"&&this.controlsLayout==="vertical"&&h("div",{key:"f3a88361f0941911d29d0c6d705d0960857a336b",class:"counter counter--vertical"},h("mds-button",{key:"0843bbc7172058eab2b159c3886f196f64220f82",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),variant:"dark",size:"sm",tone:"text",part:"counter-button-increase"}),h("mds-button",{key:"3e820603b927109d00d1619f9767543ce99cb0d4",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",size:"sm",tone:"text",part:"counter-button-decrease"})),this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"eb607c83b10df8828ad70794795a098fc6b14105",class:"counter-button counter-button--horizontal counter-button--increase",variant:"dark",tone:"text",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"94118a6d845831badad930088ff46643c3247d9f",class:"password-toggle-button",variant:"dark",tone:"text",icon:this.isPasswordVisible?miBaselineVisibleOff:miBaselineVisible,onClick:this.handlePasswordToggleClick,tabindex:"0",title:this.isPasswordVisible?this.t.get("hidePassword"):this.t.get("showPassword"),part:"password-toggle-button"}),this.type==="password"&&!this.isPasswordVisible&&((i=this.value)===null||i===void 0?void 0:i.length)>0&&h("div",{key:"4026d3f3e1fef4cb7ed4f8f5ba6e5da8ebc0909d",class:"password-mask"},h("div",{key:"c7cebe84657042702702c76d9e60e57423ca4350",class:"password-mask-items",part:"password-mask-items"},Array.from({length:this.value.length}).map((function(t,e){return h("div",{key:e,class:"password-mask-item",part:"password-mask-item"})})))),this.mic&&h("mds-button",{key:"7c2c2928717675d31808a25d3f42b3ebb1d3470a",class:clsx("mic-toggle-button",this.isRecording&&"mic-toggle-button--recording"),icon:this.speechToTextIcon,onClick:this.toggleTextRecognition,tabindex:"0",title:this.speechToTextLabel,variant:"dark",tone:"text",part:"mic-toggle-button"}),h("mds-input-tip",{key:"5f0cb96e29178d3b1ab54c3172cec7123aab665a",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"d0bd26011d9831b88c3e3d5cbe4aacb7e7d5f1f9",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"7f36c1740c4ce9835e361b423a6e569d0d9b9c1d",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"e9208eb5f269492e0700196bf2837fd00a7558c2",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"faa8b92c6f881b6945923162b6f3a9ffb14311cf",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"dbb4cd6b9525f2e27e685886d158848fc9fc3096",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"4be41bf4d722fb252bb55bb9a6f069277ba50b23",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"18f5d2db217e70e0e96769550630eb21e41fa4fd",id:this.datalistId,class:"datalist"},this.datalist.map((function(t,e){return h("option",{key:e,value:t})}))),this.icon&&!this.await&&h("mds-icon",{key:"be8705af2bfacf0b7b36b2e3d4c2b0267f2d9875",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"c3644543256d040a5f9538c2ab60ec07feed04fe",running:this.await,class:clsx("await",this.variant)}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{valueChanged:0}],variant:[{variantChanged:0}],maxlength:[{maxLengthChanged:0}],disabled:[{disabledChanged:0}]}},enumerable:false,configurable:true});return t}();MdsInput.style=mdsInputCss();export{MdsInput as mds_input};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?a(t.value):i(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(r=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;i=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(s[0]===6&&a.label<n[1]){a.label=n[1];n=s;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(s);break}if(n[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];i=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineRemove}from"./remove-D17B058a.js";import{m as miBaselineDone}from"./done-CvUz9jjh.js";import{s as setFormValue}from"./form-A9TZf0Ii.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{h as hashRandomValue}from"./aria-CSCy6TMW.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";var mggAiChatbotOutline='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M10 11H8V8h2zM16 11h-2V8h2z"/>\n <path fill-rule="evenodd" d="M21.544 10.436a3 3 0 0 1 0 3.128l-3.667 6A3 3 0 0 1 15.317 21H8.683a3 3 0 0 1-2.56-1.436l-3.666-6a3 3 0 0 1 0-3.128l3.667-6A3 3 0 0 1 8.683 3h6.635a3 3 0 0 1 2.56 1.436zM4.162 11.479a1 1 0 0 0 0 1.043l3.668 6a1 1 0 0 0 .853.478h6.634a1 1 0 0 0 .853-.479l3.667-6a1 1 0 0 0 0-1.042l-3.667-6A1 1 0 0 0 15.317 5H8.683a1 1 0 0 0-.853.479z" clip-rule="evenodd"/>\n <path d="M16.707 14.707C15.477 15.937 13.698 16.5 12 16.5s-3.477-.563-4.707-1.793l1.414-1.414c.77.77 1.991 1.207 3.293 1.207s2.523-.437 3.293-1.207z"/>\n</svg>\n';var miBaselineAdd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>';var miBaselineVisible='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>';var miBaselineVisibleOff='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>';var miOutlineMic='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/></svg>';var miOutlineMicOff='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.8 4.9c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 3.91L15 10.6V5c0-1.66-1.34-3-3-3c-1.54 0-2.79 1.16-2.96 2.65l1.76 1.76V4.9zM19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3 4.27l6 6V11c0 1.66 1.34 3 3 3c.23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52c-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2l1.41-1.41L4.41 2.86z"/></svg>';var decrease$3="Μείωση";var hidePassword$3="Απόκρυψη κωδικού";var increase$3="Αύξηση";var showPassword$3="Εμφάνιση κωδικού";var speechToTextError$3="Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";var speechToTextOff$3="Διακοπή φωνητικής υπαγόρευσης";var speechToTextOn$3="Έναρξη φωνητικής υπαγόρευσης";var localeEl={decrease:decrease$3,hidePassword:hidePassword$3,increase:increase$3,showPassword:showPassword$3,speechToTextError:speechToTextError$3,speechToTextOff:speechToTextOff$3,speechToTextOn:speechToTextOn$3};var decrease$2="Decrease";var hidePassword$2="Hide password";var increase$2="Increase";var showPassword$2="Show password";var speechToTextError$2="Voice dictation is not supported by this browser";var speechToTextOff$2="Stop voice dictation";var speechToTextOn$2="Start voice dictation";var localeEn={decrease:decrease$2,hidePassword:hidePassword$2,increase:increase$2,showPassword:showPassword$2,speechToTextError:speechToTextError$2,speechToTextOff:speechToTextOff$2,speechToTextOn:speechToTextOn$2};var decrease$1="Disminuir";var hidePassword$1="Ocultar contraseña";var increase$1="Aumentar";var showPassword$1="Mostrar contraseña";var speechToTextError$1="El dictado por voz no es compatible con este navegador";var speechToTextOff$1="Detener dictado por voz";var speechToTextOn$1="Iniciar dictado por voz";var localeEs={decrease:decrease$1,hidePassword:hidePassword$1,increase:increase$1,showPassword:showPassword$1,speechToTextError:speechToTextError$1,speechToTextOff:speechToTextOff$1,speechToTextOn:speechToTextOn$1};var decrease="Diminuisci";var hidePassword="Nascondi password";var increase="Aumenta";var showPassword="Visualizza password";var speechToTextError="Dettatura vocale non supportata da questo browser";var speechToTextOff="Ferma dettatura vocale";var speechToTextOn="Inizia dettatura vocale";var localeIt={decrease:decrease,hidePassword:hidePassword,increase:increase,showPassword:showPassword,speechToTextError:speechToTextError,speechToTextOff:speechToTextOff,speechToTextOn:speechToTextOn};var NullValidator=function(){return null};var requiredValidor=function(t){return t.length>0?null:{required:""}};var maxValidator=function(t){return function(e){if(e===""||t===null){return null;// don't validate empty values to allow optional controls
2
+ }var a=parseFloat(e);
3
+ // Controls with NaN values after parsing should be treated as not having a
4
+ // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
5
+ return!isNaN(a)&&a>t?{max:"valore massimo ".concat(t)}:null}};var minValidator=function(t){return function(e){if(e===""||t===null){return null;// don't validate empty values to allow optional controls
6
+ }var a=parseFloat(e);
7
+ // Controls with NaN values after parsing should be treated as not having a
8
+ // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
9
+ return!isNaN(a)&&a<t?{min:"valore minimo ".concat(t)}:null}};var maxLenghtValidator=function(t){return function(e){if(e===""||t===null){return null;// don't validate empty values to allow optional controls
10
+ }return e.length>t?{minLenght:"La lunghezza massima accettata è ".concat(t)}:null}};var minLenghtValidator=function(t){return function(e){if(e===""||t===null){return null;// don't validate empty values to allow optional controls
11
+ }return e.length<t?{minLenght:"La lunghezza minima accettata è ".concat(t)}:null}};var isbnValidatorFn=function(t){if(t==="")return null;// don't validate empty values to allow optional controls
12
+ if(Number.isNaN(t.slice(0,-1))||t.length!==10&&t.length!==13)return{"isbn-error":"formato isbn non correto"};var e=t.split("").map((function(t){return t==="X"?10:Number(t)}));var a=0;
13
+ // check isbn-10
14
+ if(t.length===10){var r=e.reduce((function(t,e,a){return t+(10-a)*e}),0);a=r%11}else{
15
+ // check isbn-13
16
+ var r=e.reduce((function(t,e,a){var r=a%2===0?1:3;return t+e*r}),0);a=r%10}return a===0?null:{"isbn-error":"codice isbn non valido"}};var Validator=/** @class */function(){function t(){this._validators=[];this._errors=null;this.isValid=true}t.prototype.addValidator=function(t){var e;if(Array.isArray(t)){(e=this._validators).push.apply(e,t)}else{this._validators.push(t)}};t.prototype._hasValidator=function(t,e){return Array.isArray(t)?t.includes(e):t===e};t.prototype.hasValidator=function(t){return t?this._hasValidator(this._validators,t):this._validators.length>0};t.prototype.removeValidator=function(t){var e=this;this._validators=this._validators.filter((function(a){return!e._hasValidator(t,a)}))};t.prototype.validate=function(t){var e=this._validators.map((function(e){return e(t)})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}),NullValidator);this._errors=Object.keys(e).length===0?null:e;this.isValid=!this._errors};Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:false,configurable:true});return t}();var InputMaskPattern=/** @class */function(){function t(){}return t}();InputMaskPattern.CF_Regex=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i;InputMaskPattern.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A";InputMaskPattern.CC_MASK="9999-9999-9999-9999";
17
+ // TODO use input mask when it will be supported by shadow dom
18
+ // https://github.com/RobinHerbots/Inputmask/pull/2753
19
+ // import InputMask from 'inputmask'
20
+ var InputValidationManager=/** @class */function(){
21
+ // private _inputMask: InputMask.Instance
22
+ function t(t){this.validator=new Validator;this.pattern=t;
23
+ // this._inputMask = new InputMask()
24
+ }
25
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
+ t.prototype.mask=function(t){if(!this.pattern){throw new Error("no pattern found, set pattern before mask")}
27
+ // const inputMaskOptions : InputMask.Options = {
28
+ // mask: this.pattern,
29
+ // }
30
+ // this._inputMask = new InputMask(inputMaskOptions)
31
+ // if (!nativeInput) throw new Error('input undefined or null')
32
+ // this._inputMask.mask(nativeInput)
33
+ };t.prototype.isValid=function(t){this.validator.validate(t);
34
+ // if (this.pattern) {
35
+ // return this._inputMask.isValid() && this.validator.isValid
36
+ // }
37
+ return this.validator.isValid};return t}();function createInputValidationManager(t){var e;switch(t){case"tel":e=new InputValidationManager("");break;case"url":e=new InputValidationManager("");break;case"cc":e=new InputValidationManager(InputMaskPattern.CC_MASK);break;case"cf":e=new InputValidationManager(InputMaskPattern.CF_MASK);e.validator.addValidator((function(t){if(t==="")return null;// don't validate empty values to allow optional controls
38
+ return InputMaskPattern.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"}}));e.validator.addValidator((function(t){if(t==="")return null;// don't validate empty values to allow optional controls
39
+ return t.length===16?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}}));break;case"isbn":e=new InputValidationManager;e.validator.addValidator(isbnValidatorFn);break;case"piva":e=new InputValidationManager("");break;default:e=new InputValidationManager("")}return e}var mdsInputCss=function(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-input-tip,mds-input-tip-item,mds-spinner):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-input-background:rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-input-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-placeholder-default-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-input-placeholder-focus-color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));--mds-input-ring:0 0 0 1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1);--mds-input-shadow:0 1px 3px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06);--mds-input-textarea-field-sizing:content;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:calc(var(--spacing,.0025rem)*6400);--mds-input-textarea-min-height:calc(var(--spacing,.0025rem)*2400);--mds-input-tip-background:rgb(var(--magma-surface-inverse-muted,var(--magma-tint-scale-03,var(--tone-neutral-03,73 73 73))));--mds-input-tip-horizontal-offset-focused:calc(var(--spacing,.0025rem)*100);--mds-input-tip-horizontal-offset:calc(var(--spacing,.0025rem)*100);--mds-input-tip-vertical-offset:calc(var(--spacing,.0025rem)*100);--mds-input-variant-color-rgb:var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));--mds-input-transition-duration:var(--duration-300,.3s);--mds-input-controls-border:2px solid rgb(var(--magma-border-muted,var(--magma-tint-border-muted,var(--border-neutral-muted,219 219 219))));--mds-input-controls-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--private-input-transition-duration:var(--mds-input-transition-duration);border-radius:var(--mds-input-border-radius);corner-shape:var(--magma-corner-shape,squircle);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));gap:calc(var(--spacing,.0025rem)*200);line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;container-type:inline-size;display:flex;position:relative;--mds-input-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))));--mds-input-variant-color-rgb:0 0 0}:host([typography=detail]) .input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography=snippet]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input{font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-radius:inherit;-webkit-box-shadow:var(--mds-input-ring),var(--mds-input-shadow);box-shadow:var(--mds-input-ring),var(--mds-input-shadow);box-sizing:border-box;color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));corner-shape:inherit;border:0;margin:0;max-width:100%;min-height:3rem;overflow:hidden;padding:calc(var(--spacing,.0025rem)*300) calc(var(--spacing,.0025rem)*400);text-overflow:ellipsis;-webkit-transition-duration:var(--private-input-transition-duration);transition-duration:var(--private-input-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;-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));width:100%}.input::-webkit-input-placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color;-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))}.input:-ms-placeholder-shown{color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::-moz-placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));transition-duration:var(--duration-300,.3s);transition-property:color;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input::placeholder{color:var(--mds-input-placeholder-default-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))));-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:color;-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))}.input:hover::placeholder{color:var(--mds-input-placeholder-hover-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}.input:hover:-ms-placeholder-shown{color:var(--mds-input-placeholder-hover-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}.input:focus::placeholder{color:var(--mds-input-placeholder-focus-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}.input:focus:-ms-placeholder-shown{color:var(--mds-input-placeholder-focus-color,rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119)))))}.input::-webkit-inner-spin-button,.input::-webkit-outer-spin-button{appearance:none;display:none;margin:0}:host textarea.input,:host([typography]) textarea.input{border-radius:var(--mds-input-border-radius);field-sizing:var(--mds-input-textarea-field-sizing,content);max-height:var(--mds-input-textarea-max-height,calc(var(--spacing,.0025rem)*6400));min-height:var(--mds-input-textarea-min-height,calc(var(--spacing,.0025rem)*2400));overflow:auto;resize:var(--mds-input-textarea-resize,none)}@container style(--mds-input-textarea-resize:none){:host textarea.input,:host([typography]) textarea.input{border-bottom-right-radius:0}}.input:focus{--tw-outline-style:none;outline-style:none;--mds-input-ring:0 0 0 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/1);--mds-input-shadow:0 4px 6px 3px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-variant-color-rgb,0 0 0)/.06)}.input:disabled{background-color:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled:-ms-placeholder-shown{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled::-moz-placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.input.has-icon{padding-left:calc(var(--spacing,.0025rem)*1100)}.input.has-right-icon{padding-right:calc(var(--spacing,.0025rem)*1100)}.await,.icon{fill:var(--mds-input-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));left:calc(var(--spacing,.0025rem)*300);position:absolute;top:calc(var(--spacing,.0025rem)*300)}.await{color:var(--mds-input-icon-color,rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))));height:24px;width:24px}.counter{border-left:var(--mds-input-controls-border);display:flex;flex-direction:column;gap:0;position:absolute;right:0}.counter-button{aspect-ratio:unset;border:0;border-radius:var(--mds-input-border-radius);fill:var(--mds-input-controls-color);height:calc(var(--spacing,.0025rem)*600);min-height:0;width:calc(var(--spacing,.0025rem)*700)}.counter .counter-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mds-input-border-radius)}.counter .counter-button:last-child{border-bottom-left-radius:0;border-bottom-right-radius:var(--mds-input-border-radius);border-top-left-radius:0;border-top-right-radius:0}.counter-button--horizontal{bottom:0;height:calc(var(--spacing,.0025rem)*1200);position:absolute;top:0;width:calc(var(--spacing,.0025rem)*1200)}.counter-button--decrease{border-bottom-right-radius:0;border-right:var(--mds-input-controls-border);border-top-right-radius:0;left:0}.counter-button--increase{border-bottom-left-radius:0;border-left:var(--mds-input-controls-border);border-top-left-radius:0;right:0}.mic-toggle-button,.password-toggle-button{fill:var(--mds-input-controls-color);position:absolute;right:calc(var(--spacing,.0025rem)*150);top:calc(var(--spacing,.0025rem)*150)}.toggle-button--error{cursor:help;fill:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))))}.mic-toggle-button--recording{animation:var(--animate-pulse,pulse 2s cubic-bezier(.4,0,.6,1) infinite)}:host([type=number]) .input{-moz-appearance:textfield;padding-right:calc(var(--spacing,.0025rem)*800)}:host([type=number][controls-layout=horizontal]) .input{padding-left:calc(var(--spacing,.0025rem)*1400);padding-right:calc(var(--spacing,.0025rem)*1400);text-align:center}:host([type=number][controls-layout=horizontal][icon]) .input{padding-left:calc(var(--spacing,.0025rem)*2400);text-align:left}:host([type=number][controls-layout=horizontal]) .icon{left:calc(var(--spacing,.0025rem)*1500)}:host([type=password]) .input{padding-right:calc(var(--spacing,.0025rem)*1000)}:host([type=password]) .input[type=text]:not(:-moz-placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=password]) .input[type=text]:not(:-ms-placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=password]) .input[type=text]:not(:placeholder-shown){font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type=cf]) .input{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-snippet,1rem);font-weight:var(--tw-font-weight,var(--text-size-code-snippet--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-snippet--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase}mds-input-tip{--mds-input-tip-horizontal-offset:inherit;--mds-input-tip-horizontal-offset-focused:inherit;--mds-input-tip-vertical-offset:inherit;--mds-input-tip-background:inherit}:host(:focus){--mds-input-icon-color:rgb(var(--magma-accent-fg,var(--magma-tint-accent-fg,var(--variant-primary-03,7 76 204))));--mds-input-variant-color-rgb:var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231)))}:host([variant=ai]){--mds-input-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245))));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-variant-color-rgb:0 0 0}:host([variant=ai]:focus){--mds-input-icon-color:rgb(var(--magma-accent-ai-fg,var(--magma-tint-accent-ai-fg,var(--variant-ai-03,87 20 242))));--mds-input-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--magma-tint-accent-ai-emphasis,var(--variant-ai-04,126 73 245)))}:host([variant=info]){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:0 0 0}:host([variant=info]:focus){--mds-input-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:0 0 0}:host([variant=success]:focus){--mds-input-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:0 0 0}:host([variant=warning]:focus){--mds-input-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:0 0 0}:host([variant=error]:focus){--mds-input-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}: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-input-transition-duration:0s}:host([pref-contrast=more]){--mds-input-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-contrast=more]) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}.password-mask{background-color:var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))));border-bottom-left-radius:inherit;border-bottom-right-radius:0;border-top-left-radius:inherit;corner-shape:inherit;align-items:center;border-top-right-radius:0;bottom:0;display:flex;gap:calc(var(--spacing,.0025rem)*50);height:100%;justify-content:start;left:0;overflow:hidden;padding-left:calc(var(--spacing,.0025rem)*500);pointer-events:none;position:absolute;right:calc(var(--spacing,.0025rem)*1200);top:0}.password-mask:before{background-image:-webkit-gradient(linear,left top,right top,from(#0000),to(var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255)))))));background-image:linear-gradient(to right,#0000,var(--mds-input-background,rgb(var(--magma-surface-overlay,var(--magma-tint-overlay,var(--surface-neutral-overlay,255 255 255))))));bottom:0;content:"";display:inline-flex;position:absolute;right:0;top:0;width:calc(var(--spacing,.0025rem)*600)}.password-mask-items{background-color:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208)))/0);display:inline-flex;gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*100)}.password-mask-item,.password-mask-items{border-radius:var(--radius-full,1000px);-webkit-transition-duration:var(--duration-300,.3s);transition-duration:var(--duration-300,.3s);transition-property:background-color;-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))}.password-mask-item{background-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));height:calc(var(--spacing,.0025rem)*200);width:calc(var(--spacing,.0025rem)*200)}:host(:focus-within) .password-mask-items{background-color:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}@keyframes pulse{50%{opacity:.5}}@media (forced-colors:active){.input:focus{outline:2px solid #0000;outline-offset:2px}}@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-input-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-background:rgb(var(--magma-wash-base,var(--magma-tint-scale-09,var(--tone-neutral-09,225 225 225))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::-webkit-input-placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input:-ms-placeholder-shown{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--magma-tint-scale-08,var(--tone-neutral-08,208 208 208))))}}'};var MdsInput=/** @class */function(){function t(t){var e=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputChange",7);this.keyDownEvent=createEvent(this,"mdsInputKeydown",7);this.blurEvent=createEvent(this,"mdsInputBlur",7);this.focusEvent=createEvent(this,"mdsInputFocus",7);this.speechEvent=createEvent(this,"mdsInputSpeechEnd",7);this.validationEvent=createEvent(this,"mdsInputValidation",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.speechToTextLabelKey="speechToTextOn";this.speechToTextIcon=miOutlineMic;this.hasFocus=false;this.isRecording=false;this.countVariant="count-empty";this.isPasswordVisible=false;
40
+ // private valuePristine?: string
41
+ this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});
42
+ /**
43
+ * Specifies whether the element should have autocomplete enabled
44
+ */this.autocomplete="off";
45
+ /**
46
+ * Specifies that the element should automatically get focus when the page loads
47
+ */this.autofocus=false;
48
+ /**
49
+ * Specifies if the spinner icon is shown, replacing the icon if present
50
+ */this.await=false;
51
+ /**
52
+ * Specifies the layout of the counter button when the input type is set to `number`
53
+ */this.controlsLayout="vertical";
54
+ /**
55
+ * Specifies the icon type of the counter button when the input type is set to `number`
56
+ */this.controlsIcon="arrow";
57
+ /**
58
+ * If true, the element is displayed as disabled
59
+ */this.disabled=false;
60
+ /**
61
+ * Specifies that the element is read-only
62
+ */this.readonly=false;
63
+ /**
64
+ * Specifies that the element must be filled out before submitting the form
65
+ */this.required=false;
66
+ /**
67
+ * Sets the variant of the input field
68
+ */this.variant="primary";
69
+ /**
70
+ * Specifies the type of input element
71
+ */this.type="text";
72
+ /**
73
+ * Specifies the typography of input element
74
+ */this.typography="detail";
75
+ /**
76
+ * Specifies the value of the input element
77
+ */this.value="";this.countMaxLength=function(){var t,a,r;if(e.maxlength===undefined||e.maxlength===0||Number.isNaN(e.maxlength))return;if(e.value===undefined)return;e.currentLengthLabel="".concat((a=(t=e.value)===null||t===void 0?void 0:t.length)!==null&&a!==void 0?a:0," / ").concat(e.maxlength);var i=Math.round(e.value.length*100/e.maxlength);if(((r=e.value)===null||r===void 0?void 0:r.length)===e.maxlength){e.countVariant="count-full";return}if(i>=100){e.countVariant="count-full";return}if(i>=75){e.countVariant="count-almost-full";return}if(i>=50){e.countVariant="count-almost";return}if(i>=25){e.countVariant="count-incomplete";return}e.countVariant="count-empty"};this.onInput=function(t){var a=t.target;if(a){e.value=a.value;setFormValue(e.internals,e.value)}e.keyDownEvent.emit(t)};this.onBlur=function(){e.hasFocus=false;e.validateInput();e.blurEvent.emit();
78
+ // this.isValidInput = this.validateInput()
79
+ };this.onFocus=function(t){var a=t.target;e.hasFocus=true;e.focusEvent.emit();if(e.readonly){
80
+ // setTimeout to avoid Safari 14.1.2
81
+ // to unselect text when mouse is clicked slowly
82
+ setTimeout((function(){a.select()}),10)}};this.stepUp=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepUp();e.value=e.nativeInput.value}};this.stepDown=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepDown();e.value=e.nativeInput.value}};this.toggleTextRecognition=function(){e.isRecording=!e.isRecording;if(!e.isRecording){e.speechToTextLabelKey="speechToTextOn";e.speechToTextIcon=miOutlineMic;e.stopRecognition();return}e.speechToTextLabelKey="speechToTextOff";e.speechToTextIcon=miBaselineDone;e.startRecognition()};this.handlePasswordToggleClick=function(){e.isPasswordVisible=!e.isPasswordVisible};this.onSpeechRecognitionError=function(){console.error("SpeechRecognition API may not work properly on Chrome based browsers.");e.speechButton.classList.remove("mic-toggle-button--recording");e.speechButton.classList.add("toggle-button--error");e.isRecording=false;e.speechToTextLabelKey="speechToTextError";e.speechToTextIcon=miOutlineMicOff};this.startRecognition=function(){var t,a,r;if(e.speechButton==null){e.speechButton=(a=(t=e.el)===null||t===void 0?void 0:t.shadowRoot)===null||a===void 0?void 0:a.querySelector(".mic-toggle-button")}var i=
83
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
+ (r=window.SpeechRecognition)!==null&&r!==void 0?r:window.webkitSpeechRecognition;e.value="";if(!i){e.onSpeechRecognitionError();return}e.recognition=new i;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var n="";var o=0;// need to save position progress on speech results
85
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
86
+ e.recognition.onresult=function(t){var a=t.results;var r=a[o];if(r.isFinal){n+=r[0].transcript;e.value=n;o+=1;return}e.value=n+r[0].transcript};
87
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
88
+ e.recognition.onerror=function(t){console.error("SpeechRecognition API error:",t.error);e.onSpeechRecognitionError()};e.recognition.start()};this.stopRecognition=function(){if(e.recognition){e.recognition.stop();e.speechEvent.emit()}}}t.prototype.formResetCallback=function(){setFormValue(this.internals,"")};t.prototype.connectedCallback=function(){this.datalistId="datalist-".concat(hashRandomValue())};t.prototype.componentWillLoad=function(){
89
+ // this.valuePristine = this.value
90
+ var t;
91
+ // If the mds-input has a tabindex attribute we get the value
92
+ // and pass it down to the native input, then remove it from the
93
+ // mds-input to avoid causing tabbing twice on the same element
94
+ if(this.el.hasAttribute("tabindex")){var e=this.el.getAttribute("tabindex");this.tabindex=e!==null?parseInt(e):undefined;this.el.removeAttribute("tabindex")}setFormValue(this.internals,(t=this.value)!==null&&t!==void 0?t:null);this.maxLengthChanged(this.maxlength);this.isValid=!(this.required&&this.value==="")};t.prototype.componentDidLoad=function(){var t,e,a;this.inputValidation=createInputValidationManager(this.type);this.setValidators();(t=this.nativeInput)===null||t===void 0?void 0:t.setAttribute("pattern",String(this.inputValidation.pattern));if(this.autofocus){(e=this.nativeInput)===null||e===void 0?void 0:e.focus()}this.variantChanged((a=this.variant)!==null&&a!==void 0?a:"primary")};t.prototype.setValidators=function(){if(this.required)this.inputValidation.validator.addValidator(requiredValidor);if(this.max!==""&&Number(this.max)!==0&&!Number.isNaN(Number(this.max)))this.inputValidation.validator.addValidator(maxValidator(Number(this.max)));if(this.min!==""&&Number(this.min)!==0&&!Number.isNaN(Number(this.min)))this.inputValidation.validator.addValidator(minValidator(Number(this.max)));if(this.maxlength!==undefined&&this.maxlength!==0&&!Number.isNaN(this.maxlength))this.inputValidation.validator.addValidator(maxLenghtValidator(this.maxlength));if(this.minlength!==undefined&&this.minlength!==0&&!Number.isNaN(this.minlength))this.inputValidation.validator.addValidator(minLenghtValidator(this.minlength))};
95
+ /**
96
+ * Emits the change event when the component value changes
97
+ */t.prototype.valueChanged=function(){var t;this.changeEvent.emit({value:this.value});setFormValue(this.internals,(t=this.value)!==null&&t!==void 0?t:null);if(this.maxlength!==undefined){this.countMaxLength()}
98
+ // if is necessary for skip validation when reset input to retype correct value, validation is always onBlur
99
+ if(this.value==="")return;if(!this.isValid)this.validateInput()};t.prototype.variantChanged=function(t){if(t==="ai"&&this.icon===undefined){this.icon=mggAiChatbotOutline}};t.prototype.maxLengthChanged=function(t){if(t===undefined)return;if(t<=0){this.maxlength=undefined;return}this.countMaxLength()};
100
+ /**
101
+ * Adds a validator to the input.
102
+ * @param validator the validator function to add
103
+ */t.prototype.addValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.addValidator(t);return[2/*return*/,Promise.resolve()]}))}))};
104
+ /**
105
+ * Removes a previously added validator from the input.
106
+ * @param validator the validator function to remove
107
+ */t.prototype.removeValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.removeValidator(t);return[2/*return*/]}))}))};
108
+ /**
109
+ * Returns if validator is presen
110
+ * @param validator validator to check if it is present
111
+ * @returns if a validator is present or not, if no validator given, return if there are at least one validator
112
+ */t.prototype.hasValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2/*return*/,this.inputValidation.validator.hasValidator(t)]}))}))};
113
+ /**
114
+ * Returns the current validation errors, or `null` if the value is valid.
115
+ * @returns the validation errors, or `null` when valid
116
+ */t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2/*return*/,Promise.resolve(this.inputValidation.validator.errors)]}))}))};t.prototype.validateInput=function(){
117
+ // validate input only when atleast one validator is present
118
+ if(this.inputValidation.validator.hasValidator()){this.isValid=this.inputValidation.isValid(this.value);
119
+ // set variant attribute
120
+ if(this.value===""&&!this.required)this.variant="primary";else this.variant=this.isValid?"success":"error";this.validationEvent.emit(this.isValid)}return this.isValid};t.prototype.disabledChanged=function(t){
121
+ /**
122
+ * This is related to ALL disabled attributes set on Magma input components
123
+ * if solved, please check mds-button, mds-input, mds-input-*
124
+ * https://github.com/ionic-team/stencil/issues/5461
125
+ */
126
+ if(t){setFormValue(this.internals,null)}};
127
+ /**
128
+ * Sets focus on the specified `my-input`.
129
+ * Use this method instead
130
+ * of the global `input.focus()`.
131
+ */t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus()}return[2/*return*/]}))}))};
132
+ /**
133
+ * Returns the native `<input>` element used under the hood.
134
+ */t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.render=function(){var t=this;var e,a,r;return h(Host,{key:"d5cb1993ef8dc636decfd98fe40c11ca5ead80b5","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"7489e9436bf3d4d3c7c64d363c90cca1ef742681",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",tone:"text",part:"counter-button-decrease"}),this.type==="textarea"?h("textarea",{"aria-label":this.accessibleName,class:clsx("input",((e=this.icon)!==null&&e!==void 0?e:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoFocus:this.autofocus,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,tabIndex:this.tabindex,value:this.value}):h("input",{"aria-label":this.accessibleName,class:clsx("input",((a=this.icon)!==null&&a!==void 0?a:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoComplete:this.autocomplete,autoFocus:this.autofocus,disabled:this.disabled,max:this.max,maxLength:this.maxlength,min:this.min,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,pattern:this.pattern,list:this.datalistId,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,step:this.step,tabIndex:this.tabindex,type:this.type==="password"&&this.isPasswordVisible?"text":this.type,value:this.value}),this.type==="number"&&this.controlsLayout==="vertical"&&h("div",{key:"5ec4c32ddf38d0d0d21e248c417f0aaa544f0fdd",class:"counter counter--vertical"},h("mds-button",{key:"6ba7a4966bd9b251ac88383b2ee35eedef227b51",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),variant:"dark",size:"sm",tone:"text",part:"counter-button-increase"}),h("mds-button",{key:"4214a635b2c36e540ed236db7aeec28573b72417",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),variant:"dark",size:"sm",tone:"text",part:"counter-button-decrease"})),this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"5881e589300af8b7e7bcaaf9431ceedd548dc569",class:"counter-button counter-button--horizontal counter-button--increase",variant:"dark",tone:"text",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"4a0d54eb936783121616057e69de1d2f3c512a63",class:"password-toggle-button",variant:"dark",tone:"text",icon:this.isPasswordVisible?miBaselineVisibleOff:miBaselineVisible,onClick:this.handlePasswordToggleClick,tabindex:"0",title:this.isPasswordVisible?this.t.get("hidePassword"):this.t.get("showPassword"),part:"password-toggle-button"}),this.type==="password"&&!this.isPasswordVisible&&((r=this.value)===null||r===void 0?void 0:r.length)>0&&h("div",{key:"0254dd0ee9093d872b5151b63317b18cf0ecb324",class:"password-mask"},h("div",{key:"5e76f0773a27c1af16898fa32d4e5f8a5fd52b27",class:"password-mask-items",part:"password-mask-items"},Array.from({length:this.value.length}).map((function(t,e){return h("div",{key:e,class:"password-mask-item",part:"password-mask-item"})})))),this.mic&&h("mds-button",{key:"c8d5eb731302b2ce7066e2399004cbaf68750372",class:clsx("mic-toggle-button",this.isRecording&&"mic-toggle-button--recording"),icon:this.speechToTextIcon,onClick:this.toggleTextRecognition,tabindex:"0",title:this.t.get(this.speechToTextLabelKey),variant:"dark",tone:"text",part:"mic-toggle-button"}),h("mds-input-tip",{key:"0302e0c8ed7f9ef2d23d79b7d233b839ad6d4846",position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"43859d4bab0a03af8c314d44b98484f221f3eae7",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"23a46a6d493476c0a3eba8d4a27a64002f8ad11f",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"a2d7405948372ebd86f548b134cc433cc43ec666",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"535b4b714af5376f2a5d525bcaa6347a97415411",position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"f6c0d41fdf1a0abf55b6a34023846f4fef8b3016",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"ce680bf5a5693e4203a6827851abab1d24a5d67a",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"a52dbc0541033e86a84a455c0830ae8b7f2b7ebf",id:this.datalistId,class:"datalist"},this.datalist.map((function(t,e){return h("option",{key:e,value:t})}))),this.icon&&!this.await&&h("mds-icon",{key:"4a6014e3b245f8fe513acd4e6269e7afa606343d",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"bff5454113674d2c8497dd0ed658544b17dafbb1",running:this.await,class:clsx("await",this.variant)}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:[{valueChanged:0}],variant:[{variantChanged:0}],maxlength:[{maxLengthChanged:0}],disabled:[{disabledChanged:0}]}},enumerable:false,configurable:true});return t}();MdsInput.style=mdsInputCss();export{MdsInput as mds_input};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(a,e,r,i){function o(a){return a instanceof r?a:new r((function(e){e(a)}))}return new(r||(r=Promise))((function(r,t){function n(a){try{c(i.next(a))}catch(a){t(a)}}function s(a){try{c(i["throw"](a))}catch(a){t(a)}}function c(a){a.done?r(a.value):o(a.value).then(n,s)}c((i=i.apply(a,e||[])).next())}))};var __generator=this&&this.__generator||function(a,e){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,o,t,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=s(0),n["throw"]=s(1),n["return"]=s(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(a){return function(e){return c([a,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(r=0)),r)try{if(i=1,o&&(t=s[0]&2?o["return"]:s[0]?o["throw"]||((t=o["return"])&&t.call(o),0):o.next)&&!(t=t.call(o,s[1])).done)return t;if(o=0,t)s=[s[0]&2,t.value];switch(s[0]){case 0:case 1:t=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(t=r.trys,t=t.length>0&&t[t.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!t||s[1]>t[0]&&s[1]<t[3])){r.label=s[1];break}if(s[0]===6&&r.label<t[1]){r.label=t[1];t=s;break}if(t&&r.label<t[2]){r.label=t[2];r.ops.push(s);break}if(t[2])r.ops.pop();r.trys.pop();continue}s=e.call(a,r)}catch(a){s=[6,a];o=0}finally{i=t=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{k as keyboardKeysData}from"./keys-C4ckbXOl.js";import{L as Locale}from"./locale-a4oAcjYG.js";import{m as miBaselineBrokenImage}from"./broken-image-0FAG3rkw.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineKeyboardArrowRight}from"./keyboard-arrow-right-DFyAGAnn.js";var keyCharacter$3="Αλφαβητικός χαρακτήρας {{ character }} που χρησιμοποιείται συνήθως για τη δημιουργία συντομεύσεων πληκτρολογίου";var keyFunction$3="Πλήκτρο λειτουργίας {{ character }} που χρησιμοποιείται συχνά για καθολικές λειτουργίες ανάλογα με το λειτουργικό σύστημα και την έκδοσή του";var keyNumber$3="Αριθμητικός χαρακτήρας {{ character }} που χρησιμοποιείται συνήθως για τη δημιουργία συντομεύσεων πληκτρολογίου";var modAlt$3="Πλήκτρο τροποποίησης Alt{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}} (εναλλακτικό), που χρησιμοποιείται συχνά για συντομεύσεις συστήματος";var modControl$3="Πλήκτρο τροποποίησης Control ή Ctrl{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, που χρησιμοποιείται σε πολλές συντομεύσεις";var modMeta$3="Πλήκτρο τροποποίησης Meta{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, πλήκτρο Windows ⊞ στα Windows ή Command ⌘ στο macOS";var modShift$3="Πλήκτρο τροποποίησης Shift{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, που χρησιμοποιείται για κεφαλαία γράμματα";var navArrowDown$3="Πλήκτρο πλοήγησης Κάτω βέλος";var navArrowLeft$3="Πλήκτρο πλοήγησης Αριστερό βέλος";var navArrowRight$3="Πλήκτρο πλοήγησης Δεξί βέλος";var navArrowUp$3="Πλήκτρο πλοήγησης Πάνω βέλος";var navEnd$3="Πλήκτρο πλοήγησης Μετάβαση στο τέλος";var navHome$3="Πλήκτρο πλοήγησης Μετάβαση στην αρχή";var navPageDown$3="Πλήκτρο πλοήγησης Κύλιση προς τα κάτω";var navPageUp$3="Πλήκτρο πλοήγησης Κύλιση προς τα πάνω";var numPadEnter$3="Πλήκτρο Enter αριθμητικού πληκτρολογίου για επιβεβαίωση ενέργειας";var specBackspace$3="Ειδικό πλήκτρο Διαγραφή χαρακτήρα";var specCapsLock$3="Ειδικό πλήκτρο Caps Lock (συνήθως αποφεύγεται στις συντομεύσεις πληκτρολογίου)";var specDelete$3="Ειδικό πλήκτρο Διαγραφή επιλεγμένου στοιχείου";var specEnter$3="Ειδικό πλήκτρο Enter για επιβεβαίωση ενέργειας";var specEscape$3="Ειδικό πλήκτρο Έξοδος ή ακύρωση";var specSpace$3="Ειδικό πλήκτρο Διάστημα";var specTab$3="Ειδικό πλήκτρο Tab για εναλλαγή εστίασης μεταξύ στοιχείων";var localeEl={keyCharacter:keyCharacter$3,keyFunction:keyFunction$3,keyNumber:keyNumber$3,modAlt:modAlt$3,modControl:modControl$3,modMeta:modMeta$3,modShift:modShift$3,navArrowDown:navArrowDown$3,navArrowLeft:navArrowLeft$3,navArrowRight:navArrowRight$3,navArrowUp:navArrowUp$3,navEnd:navEnd$3,navHome:navHome$3,navPageDown:navPageDown$3,navPageUp:navPageUp$3,numPadEnter:numPadEnter$3,specBackspace:specBackspace$3,specCapsLock:specCapsLock$3,specDelete:specDelete$3,specEnter:specEnter$3,specEscape:specEscape$3,specSpace:specSpace$3,specTab:specTab$3};var keyCharacter$2="Alphabetic character {{ character }} typically used for composing keyboard shortcuts";var keyFunction$2="Function key {{ character }} often used for global functions depending on the operating system and its version";var keyNumber$2="Numeric character {{ character }} typically used for composing keyboard shortcuts";var modAlt$2="Modifier key Alt{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}} (alternative), often used for system shortcuts";var modControl$2="Modifier key Control or Ctrl{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, used in many shortcuts";var modMeta$2="Modifier key Meta{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, Windows ⊞ key on Windows or Command ⌘ on macOS";var modShift$2="Modifier key Shift{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, used for uppercase letters";var navArrowDown$2="Navigation key Down Arrow";var navArrowLeft$2="Navigation key Left Arrow";var navArrowRight$2="Navigation key Right Arrow";var navArrowUp$2="Navigation key Up Arrow";var navEnd$2="Navigation key Go to End";var navHome$2="Navigation key Go to Home";var navPageDown$2="Navigation key Scroll Down";var navPageUp$2="Navigation key Scroll Up";var numPadEnter$2="Keypad Enter key to confirm an action";var specBackspace$2="Special key Delete character";var specCapsLock$2="Special key Caps Lock (generally avoided in keyboard shortcuts)";var specDelete$2="Special key Delete selected item";var specEnter$2="Special key Enter to confirm an action";var specEscape$2="Special key Exit or cancel";var specSpace$2="Special key Space bar";var specTab$2="Special key Tab to change focus between elements";var localeEn={keyCharacter:keyCharacter$2,keyFunction:keyFunction$2,keyNumber:keyNumber$2,modAlt:modAlt$2,modControl:modControl$2,modMeta:modMeta$2,modShift:modShift$2,navArrowDown:navArrowDown$2,navArrowLeft:navArrowLeft$2,navArrowRight:navArrowRight$2,navArrowUp:navArrowUp$2,navEnd:navEnd$2,navHome:navHome$2,navPageDown:navPageDown$2,navPageUp:navPageUp$2,numPadEnter:numPadEnter$2,specBackspace:specBackspace$2,specCapsLock:specCapsLock$2,specDelete:specDelete$2,specEnter:specEnter$2,specEscape:specEscape$2,specSpace:specSpace$2,specTab:specTab$2};var keyCharacter$1="Carácter alfabético {{ character }} típicamente usado para componer atajos de teclado";var keyFunction$1="Tecla de función {{ character }} a menudo utilizada para funciones globales según el sistema operativo y su versión";var keyNumber$1="Carácter numérico {{ character }} típicamente usado para componer atajos de teclado";var modAlt$1="Tecla modificadora Alt{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}} (alternativa), a menudo usada para atajos de sistema";var modControl$1="Tecla modificadora Control o Ctrl{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, utilizada en muchos atajos";var modMeta$1="Tecla modificadora Meta{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, tecla Windows ⊞ en Windows o Command ⌘ en macOS";var modShift$1="Tecla modificadora Shift{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, utilizada para letras mayúsculas";var navArrowDown$1="Tecla de navegación Flecha abajo";var navArrowLeft$1="Tecla de navegación Flecha izquierda";var navArrowRight$1="Tecla de navegación Flecha derecha";var navArrowUp$1="Tecla de navegación Flecha arriba";var navEnd$1="Tecla de navegación Ir al final";var navHome$1="Tecla de navegación Ir al inicio";var navPageDown$1="Tecla de navegación Desplazar hacia abajo";var navPageUp$1="Tecla de navegación Desplazar hacia arriba";var numPadEnter$1="Tecla Enter del teclado numérico para confirmar una acción";var specBackspace$1="Tecla especial Borrar carácter";var specCapsLock$1="Tecla especial Bloq Mayús (generalmente evitada en atajos de teclado)";var specDelete$1="Tecla especial Eliminar elemento seleccionado";var specEnter$1="Tecla especial Enter para confirmar una acción";var specEscape$1="Tecla especial Salir o cancelar";var specSpace$1="Tecla especial Barra espaciadora";var specTab$1="Tecla especial Tab para cambiar el foco entre elementos";var localeEs={keyCharacter:keyCharacter$1,keyFunction:keyFunction$1,keyNumber:keyNumber$1,modAlt:modAlt$1,modControl:modControl$1,modMeta:modMeta$1,modShift:modShift$1,navArrowDown:navArrowDown$1,navArrowLeft:navArrowLeft$1,navArrowRight:navArrowRight$1,navArrowUp:navArrowUp$1,navEnd:navEnd$1,navHome:navHome$1,navPageDown:navPageDown$1,navPageUp:navPageUp$1,numPadEnter:numPadEnter$1,specBackspace:specBackspace$1,specCapsLock:specCapsLock$1,specDelete:specDelete$1,specEnter:specEnter$1,specEscape:specEscape$1,specSpace:specSpace$1,specTab:specTab$1};var keyCharacter="Carattere alfabetico {{ character }} tipicamente usato per comporre le scorciatoie da tastiera";var keyFunction="Tasto funzione {{ character }} spesso usato per funzioni globali a seconda del sistema operativo e della sua versione";var keyNumber="Carattere numerico {{ character }} tipicamente usato per comporre le scorciatoie da tastiera";var modAlt="Tasto modificatore Alt{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}} (alternativo), spesso usato per shortcut di sistema";var modControl="Tasto modificatore Control o Ctrl{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, usato in molte scorciatoie";var modMeta="Tasto modificatore meta{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, Finestra ⊞ su Windows o Command ⌘ su macOS";var modShift="Tasto modificatore Shift{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, usato per maiuscole";var navArrowDown="Tasto navigazione Freccia giù";var navArrowLeft="Tasto navigazione Freccia sinistra";var navArrowRight="Tasto navigazione Freccia destra";var navArrowUp="Tasto navigazione Freccia su";var navEnd="Tasto navigazione Vai alla fine";var navHome="Tasto navigazione Vai all'inizio";var navPageDown="Tasto navigazione Scorri in giù";var navPageUp="Tasto navigazione Scorri in su";var numPadEnter="Tasto Invio per confermare una azione dal tastierino numerico";var specBackspace="Tasto speciale Cancella carattere";var specCapsLock="Tasto speciale Blocco maiuscole (generalmente evitato nelle scorciatoie da tastiera)";var specDelete="Tasto speciale Cancella elemento selezionato";var specEnter="Tasto speciale Invio per confermare una azione";var specEscape="Tasto speciale Esci o annulla";var specSpace="Tasto speciale Barra spaziatrice";var specTab="Tasto speciale Tab per cambiare focus tra elementi";var localeIt={keyCharacter:keyCharacter,keyFunction:keyFunction,keyNumber:keyNumber,modAlt:modAlt,modControl:modControl,modMeta:modMeta,modShift:modShift,navArrowDown:navArrowDown,navArrowLeft:navArrowLeft,navArrowRight:navArrowRight,navArrowUp:navArrowUp,navEnd:navEnd,navHome:navHome,navPageDown:navPageDown,navPageUp:navPageUp,numPadEnter:numPadEnter,specBackspace:specBackspace,specCapsLock:specCapsLock,specDelete:specDelete,specEnter:specEnter,specEscape:specEscape,specSpace:specSpace,specTab:specTab};var miBaselineKeyboardReturn='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6l6 6l1.41-1.41L5.83 13H21V7z"/></svg>';var miBaselineKeyboardArrowLeft='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.41z"/></svg>';var miBaselineKeyboardTab='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6l-6-6l-1.41 1.41zM20 6v12h2V6h-2z"/></svg>';var miBaselineKeyboardCommandKey='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.5 3C15.57 3 14 4.57 14 6.5V8h-4V6.5C10 4.57 8.43 3 6.5 3S3 4.57 3 6.5S4.57 10 6.5 10H8v4H6.5C4.57 14 3 15.57 3 17.5S4.57 21 6.5 21s3.5-1.57 3.5-3.5V16h4v1.5c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5s-1.57-3.5-3.5-3.5H16v-4h1.5c1.93 0 3.5-1.57 3.5-3.5S19.43 3 17.5 3zM16 8V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S18.33 8 17.5 8H16zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5S8 5.67 8 6.5V8H6.5zm3.5 6v-4h4v4h-4zm7.5 5c-.83 0-1.5-.67-1.5-1.5V16h1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5zm-11 0c-.83 0-1.5-.67-1.5-1.5S5.67 16 6.5 16H8v1.5c0 .83-.67 1.5-1.5 1.5z"/></svg>';var miBaselineKeyboardOptionKey='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 5h6v2h-6zM9 5H3v2h4.85l6.92 12H21v-2h-5.07z"/></svg>';var miSharpWindow='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z"/></svg>';var miOutlineBackspace='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41L17.59 17L19 15.59L15.41 12L19 8.41L17.59 7L14 10.59L10.41 7L9 8.41L12.59 12L9 15.59z"/></svg>';var miBaselineKeyboardCapslock='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8.41L16.59 13L18 11.59l-6-6l-6 6L7.41 13L12 8.41zM6 18h12v-2H6v2z"/></svg>';var mdiKeyboardSpace='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-keyboard-space" viewBox="0 0 24 24"><path d="M3 15H5V19H19V15H21V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V15Z" /></svg>';var miBaselineNorth='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 9l1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7l-7 7z"/></svg>';var miBaselineSouth='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 15l-1.41-1.41L13 18.17V2h-2v16.17l-4.59-4.59L5 15l7 7l7-7z"/></svg>';var mdiKeyboardShift='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple-keyboard-shift" viewBox="0 0 24 24"><path d="M15,18V12H17.17L12,6.83L6.83,12H9V18H15M12,4L22,14H17V20H7V14H2L12,4Z" /></svg>';var miBaselineVerticalAlignTop='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z"/></svg>';var miBaselineVerticalAlignBottom='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z"/></svg>';var icons=new Map;icons.set("arrowdown",miBaselineKeyboardArrowDown);icons.set("arrowleft",miBaselineKeyboardArrowLeft);icons.set("arrowright",miBaselineKeyboardArrowRight);icons.set("arrowup",miBaselineKeyboardArrowUp);icons.set("command",miBaselineKeyboardCommandKey);icons.set("commandleft",miBaselineKeyboardCommandKey);icons.set("commandright",miBaselineKeyboardCommandKey);icons.set("delete",miOutlineBackspace);icons.set("capslock",miBaselineKeyboardCapslock);icons.set("backspace",miOutlineBackspace);icons.set("enter",miBaselineKeyboardReturn);icons.set("home",miBaselineVerticalAlignTop);icons.set("end",miBaselineVerticalAlignBottom);icons.set("option",miBaselineKeyboardOptionKey);icons.set("optionleft",miBaselineKeyboardOptionKey);icons.set("optionright",miBaselineKeyboardOptionKey);icons.set("pagedown",miBaselineSouth);icons.set("pageup",miBaselineNorth);icons.set("shift",mdiKeyboardShift);icons.set("shiftleft",mdiKeyboardShift);icons.set("shiftright",mdiKeyboardShift);icons.set("space",mdiKeyboardSpace);icons.set("tab",miBaselineKeyboardTab);icons.set("windows",miSharpWindow);icons.set("windowsleft",miSharpWindow);icons.set("windowsright",miSharpWindow);var mdsKeyboardKeyCss=function(){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{--mds-keyboard-key-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-key-illumination-light-size:calc(var(--spacing,.0025rem)*50);--mds-keyboard-key-padding:calc(var(--spacing,.0025rem)*100);--mds-keyboard-key-transition-duration:.3s}}}: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}@property --mds-keyboard-key-transition-duration{syntax:"<time>";inherits:false;initial-value:.3s}:host{--mds-keyboard-key-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-key-illumination-light-size:calc(var(--spacing,.0025rem)*50);--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-key-illumination-dark-opacity,.05)) inset;--mds-keyboard-key-illumination-light:0 var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem)*50)) 0 0 rgb(255 255 255/var(--mds-keyboard-key-illumination-light-opacity,.5)) inset;--mds-keyboard-key-padding:calc(var(--spacing,.0025rem)*100);--mds-keyboard-key-transition-duration:.3s;--icon-size:calc(var(--spacing,.0025rem)*600);--key-size-default:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)));--key-size-pressed:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * 2));corner-shape:var(--magma-corner-shape,round);align-items:flex-end;display:inline-flex;min-height:var(--key-size-default);min-width:var(--key-size-default)}.physical-key{background-color:var(--mds-keyboard-key-background,rgb(var(--tone-bisque-08,121 103 97)));border-radius:var(--radius-lg,16px);-webkit-box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-sizing:border-box;corner-shape:inherit;align-items:baseline;display:inline-flex;flex-grow:1;flex-shrink:0;height:var(--key-size-default);justify-content:center;min-width:calc(var(--spacing,.0025rem)*1000);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100));position:relative;text-align:center;-webkit-transition-duration:var(--mds-keyboard-key-transition-duration,.3s);transition-duration:var(--mds-keyboard-key-transition-duration,.3s);transition-property:box-shadow,padding,height;-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));-webkit-user-select:none;user-select:none}:host(:active) .physical-key,:host([pressed]:not([pressed=false])) .physical-key{--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-key-illumination-dark-opacity,.075)) inset;-webkit-box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);height:var(--key-size-pressed);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))}:host([code=space]) .physical-key{min-width:calc(var(--key-size-default)*2)}mds-badge{background-color:#0000;color:currentColor;margin-left:calc(var(--spacing,.0025rem)*50);padding:0;white-space:nowrap}.shortcut-icon{fill:currentColor}.shortcut-text{color:currentColor;text-transform:capitalize;white-space:nowrap}'};var MdsKeyboardKey=function(){function a(a){var e=this;registerInstance(this,a);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.keyboardKeys=keyboardKeysData;this.getTitle=function(){if(e.name!==undefined){return e.t.get(e.keyboardKeys[e.name.toLowerCase()].description,{character:e.keyboardKeys[e.name.toLowerCase()].alias,keyboardPosition:e.keyboardKeys[e.name.toLowerCase()].keyboardPosition})}return undefined}}a.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.language=this.t.lang(this.host);return[2]}))}))};a.prototype.componentWillLoad=function(){this.t.lang(this.host)};a.prototype.render=function(){var a,e,r,i;return h(Host,{key:"cb83531c55004919cc5c55d48053369d7d90c659",title:this.getTitle()},h("div",{key:"e096caf23accb54d1364d9c78bc6896d02fac267",class:"physical-key"},this.name&&icons.has(this.name)?h("mds-icon",{name:(a=icons.get(this.name))!==null&&a!==void 0?a:miBaselineBrokenImage,class:"shortcut-icon"}):h("mds-text",{class:"shortcut-text",typography:"detail"},this.name&&h("b",null,this.keyboardKeys[this.name].alias)),this.name&&((e=this.keyboardKeys[this.name])===null||e===void 0?void 0:e.keyboardPosition)&&h("mds-text",{key:"cf5210c595b02e51e32722d9ef7ed53d21a44045",typography:"label"},((r=this.keyboardKeys[this.name].keyboardPosition)===null||r===void 0?void 0:r.left)&&"l",((i=this.keyboardKeys[this.name].keyboardPosition)===null||i===void 0?void 0:i.right)&&"r")))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();MdsKeyboardKey.style=mdsKeyboardKeyCss();export{MdsKeyboardKey as mds_keyboard_key};
1
+ import{r as registerInstance,h,e as Host}from"./index-DIiEV39g.js";import{k as keyboardKeysData}from"./keys-C4ckbXOl.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{m as miBaselineBrokenImage}from"./broken-image-0FAG3rkw.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-DiWN48aq.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-Ccz0jCNB.js";import{m as miBaselineKeyboardArrowRight}from"./keyboard-arrow-right-DFyAGAnn.js";import"./preference-CKerJx2M.js";var keyCharacter$3="Αλφαβητικός χαρακτήρας {{ character }} που χρησιμοποιείται συνήθως για τη δημιουργία συντομεύσεων πληκτρολογίου";var keyFunction$3="Πλήκτρο λειτουργίας {{ character }} που χρησιμοποιείται συχνά για καθολικές λειτουργίες ανάλογα με το λειτουργικό σύστημα και την έκδοσή του";var keyNumber$3="Αριθμητικός χαρακτήρας {{ character }} που χρησιμοποιείται συνήθως για τη δημιουργία συντομεύσεων πληκτρολογίου";var modAlt$3="Πλήκτρο τροποποίησης Alt{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}} (εναλλακτικό), που χρησιμοποιείται συχνά για συντομεύσεις συστήματος";var modControl$3="Πλήκτρο τροποποίησης Control ή Ctrl{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, που χρησιμοποιείται σε πολλές συντομεύσεις";var modMeta$3="Πλήκτρο τροποποίησης Meta{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, πλήκτρο Windows ⊞ στα Windows ή Command ⌘ στο macOS";var modShift$3="Πλήκτρο τροποποίησης Shift{{#keyboardPosition}}{{#left}} αριστερό{{/left}}{{#right}} δεξιό{{/right}}{{/keyboardPosition}}, που χρησιμοποιείται για κεφαλαία γράμματα";var navArrowDown$3="Πλήκτρο πλοήγησης Κάτω βέλος";var navArrowLeft$3="Πλήκτρο πλοήγησης Αριστερό βέλος";var navArrowRight$3="Πλήκτρο πλοήγησης Δεξί βέλος";var navArrowUp$3="Πλήκτρο πλοήγησης Πάνω βέλος";var navEnd$3="Πλήκτρο πλοήγησης Μετάβαση στο τέλος";var navHome$3="Πλήκτρο πλοήγησης Μετάβαση στην αρχή";var navPageDown$3="Πλήκτρο πλοήγησης Κύλιση προς τα κάτω";var navPageUp$3="Πλήκτρο πλοήγησης Κύλιση προς τα πάνω";var numPadEnter$3="Πλήκτρο Enter αριθμητικού πληκτρολογίου για επιβεβαίωση ενέργειας";var specBackspace$3="Ειδικό πλήκτρο Διαγραφή χαρακτήρα";var specCapsLock$3="Ειδικό πλήκτρο Caps Lock (συνήθως αποφεύγεται στις συντομεύσεις πληκτρολογίου)";var specDelete$3="Ειδικό πλήκτρο Διαγραφή επιλεγμένου στοιχείου";var specEnter$3="Ειδικό πλήκτρο Enter για επιβεβαίωση ενέργειας";var specEscape$3="Ειδικό πλήκτρο Έξοδος ή ακύρωση";var specSpace$3="Ειδικό πλήκτρο Διάστημα";var specTab$3="Ειδικό πλήκτρο Tab για εναλλαγή εστίασης μεταξύ στοιχείων";var localeEl={keyCharacter:keyCharacter$3,keyFunction:keyFunction$3,keyNumber:keyNumber$3,modAlt:modAlt$3,modControl:modControl$3,modMeta:modMeta$3,modShift:modShift$3,navArrowDown:navArrowDown$3,navArrowLeft:navArrowLeft$3,navArrowRight:navArrowRight$3,navArrowUp:navArrowUp$3,navEnd:navEnd$3,navHome:navHome$3,navPageDown:navPageDown$3,navPageUp:navPageUp$3,numPadEnter:numPadEnter$3,specBackspace:specBackspace$3,specCapsLock:specCapsLock$3,specDelete:specDelete$3,specEnter:specEnter$3,specEscape:specEscape$3,specSpace:specSpace$3,specTab:specTab$3};var keyCharacter$2="Alphabetic character {{ character }} typically used for composing keyboard shortcuts";var keyFunction$2="Function key {{ character }} often used for global functions depending on the operating system and its version";var keyNumber$2="Numeric character {{ character }} typically used for composing keyboard shortcuts";var modAlt$2="Modifier key Alt{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}} (alternative), often used for system shortcuts";var modControl$2="Modifier key Control or Ctrl{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, used in many shortcuts";var modMeta$2="Modifier key Meta{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, Windows ⊞ key on Windows or Command ⌘ on macOS";var modShift$2="Modifier key Shift{{#keyboardPosition}}{{#left}} left{{/left}}{{#right}} right{{/right}}{{/keyboardPosition}}, used for uppercase letters";var navArrowDown$2="Navigation key Down Arrow";var navArrowLeft$2="Navigation key Left Arrow";var navArrowRight$2="Navigation key Right Arrow";var navArrowUp$2="Navigation key Up Arrow";var navEnd$2="Navigation key Go to End";var navHome$2="Navigation key Go to Home";var navPageDown$2="Navigation key Scroll Down";var navPageUp$2="Navigation key Scroll Up";var numPadEnter$2="Keypad Enter key to confirm an action";var specBackspace$2="Special key Delete character";var specCapsLock$2="Special key Caps Lock (generally avoided in keyboard shortcuts)";var specDelete$2="Special key Delete selected item";var specEnter$2="Special key Enter to confirm an action";var specEscape$2="Special key Exit or cancel";var specSpace$2="Special key Space bar";var specTab$2="Special key Tab to change focus between elements";var localeEn={keyCharacter:keyCharacter$2,keyFunction:keyFunction$2,keyNumber:keyNumber$2,modAlt:modAlt$2,modControl:modControl$2,modMeta:modMeta$2,modShift:modShift$2,navArrowDown:navArrowDown$2,navArrowLeft:navArrowLeft$2,navArrowRight:navArrowRight$2,navArrowUp:navArrowUp$2,navEnd:navEnd$2,navHome:navHome$2,navPageDown:navPageDown$2,navPageUp:navPageUp$2,numPadEnter:numPadEnter$2,specBackspace:specBackspace$2,specCapsLock:specCapsLock$2,specDelete:specDelete$2,specEnter:specEnter$2,specEscape:specEscape$2,specSpace:specSpace$2,specTab:specTab$2};var keyCharacter$1="Carácter alfabético {{ character }} típicamente usado para componer atajos de teclado";var keyFunction$1="Tecla de función {{ character }} a menudo utilizada para funciones globales según el sistema operativo y su versión";var keyNumber$1="Carácter numérico {{ character }} típicamente usado para componer atajos de teclado";var modAlt$1="Tecla modificadora Alt{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}} (alternativa), a menudo usada para atajos de sistema";var modControl$1="Tecla modificadora Control o Ctrl{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, utilizada en muchos atajos";var modMeta$1="Tecla modificadora Meta{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, tecla Windows ⊞ en Windows o Command ⌘ en macOS";var modShift$1="Tecla modificadora Shift{{#keyboardPosition}}{{#left}} izquierda{{/left}}{{#right}} derecha{{/right}}{{/keyboardPosition}}, utilizada para letras mayúsculas";var navArrowDown$1="Tecla de navegación Flecha abajo";var navArrowLeft$1="Tecla de navegación Flecha izquierda";var navArrowRight$1="Tecla de navegación Flecha derecha";var navArrowUp$1="Tecla de navegación Flecha arriba";var navEnd$1="Tecla de navegación Ir al final";var navHome$1="Tecla de navegación Ir al inicio";var navPageDown$1="Tecla de navegación Desplazar hacia abajo";var navPageUp$1="Tecla de navegación Desplazar hacia arriba";var numPadEnter$1="Tecla Enter del teclado numérico para confirmar una acción";var specBackspace$1="Tecla especial Borrar carácter";var specCapsLock$1="Tecla especial Bloq Mayús (generalmente evitada en atajos de teclado)";var specDelete$1="Tecla especial Eliminar elemento seleccionado";var specEnter$1="Tecla especial Enter para confirmar una acción";var specEscape$1="Tecla especial Salir o cancelar";var specSpace$1="Tecla especial Barra espaciadora";var specTab$1="Tecla especial Tab para cambiar el foco entre elementos";var localeEs={keyCharacter:keyCharacter$1,keyFunction:keyFunction$1,keyNumber:keyNumber$1,modAlt:modAlt$1,modControl:modControl$1,modMeta:modMeta$1,modShift:modShift$1,navArrowDown:navArrowDown$1,navArrowLeft:navArrowLeft$1,navArrowRight:navArrowRight$1,navArrowUp:navArrowUp$1,navEnd:navEnd$1,navHome:navHome$1,navPageDown:navPageDown$1,navPageUp:navPageUp$1,numPadEnter:numPadEnter$1,specBackspace:specBackspace$1,specCapsLock:specCapsLock$1,specDelete:specDelete$1,specEnter:specEnter$1,specEscape:specEscape$1,specSpace:specSpace$1,specTab:specTab$1};var keyCharacter="Carattere alfabetico {{ character }} tipicamente usato per comporre le scorciatoie da tastiera";var keyFunction="Tasto funzione {{ character }} spesso usato per funzioni globali a seconda del sistema operativo e della sua versione";var keyNumber="Carattere numerico {{ character }} tipicamente usato per comporre le scorciatoie da tastiera";var modAlt="Tasto modificatore Alt{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}} (alternativo), spesso usato per shortcut di sistema";var modControl="Tasto modificatore Control o Ctrl{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, usato in molte scorciatoie";var modMeta="Tasto modificatore meta{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, Finestra ⊞ su Windows o Command ⌘ su macOS";var modShift="Tasto modificatore Shift{{#keyboardPosition}}{{#left}} sinistro{{/left}}{{#right}} destro{{/right}}{{/keyboardPosition}}, usato per maiuscole";var navArrowDown="Tasto navigazione Freccia giù";var navArrowLeft="Tasto navigazione Freccia sinistra";var navArrowRight="Tasto navigazione Freccia destra";var navArrowUp="Tasto navigazione Freccia su";var navEnd="Tasto navigazione Vai alla fine";var navHome="Tasto navigazione Vai all'inizio";var navPageDown="Tasto navigazione Scorri in giù";var navPageUp="Tasto navigazione Scorri in su";var numPadEnter="Tasto Invio per confermare una azione dal tastierino numerico";var specBackspace="Tasto speciale Cancella carattere";var specCapsLock="Tasto speciale Blocco maiuscole (generalmente evitato nelle scorciatoie da tastiera)";var specDelete="Tasto speciale Cancella elemento selezionato";var specEnter="Tasto speciale Invio per confermare una azione";var specEscape="Tasto speciale Esci o annulla";var specSpace="Tasto speciale Barra spaziatrice";var specTab="Tasto speciale Tab per cambiare focus tra elementi";var localeIt={keyCharacter:keyCharacter,keyFunction:keyFunction,keyNumber:keyNumber,modAlt:modAlt,modControl:modControl,modMeta:modMeta,modShift:modShift,navArrowDown:navArrowDown,navArrowLeft:navArrowLeft,navArrowRight:navArrowRight,navArrowUp:navArrowUp,navEnd:navEnd,navHome:navHome,navPageDown:navPageDown,navPageUp:navPageUp,numPadEnter:numPadEnter,specBackspace:specBackspace,specCapsLock:specCapsLock,specDelete:specDelete,specEnter:specEnter,specEscape:specEscape,specSpace:specSpace,specTab:specTab};var miBaselineKeyboardReturn='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6l6 6l1.41-1.41L5.83 13H21V7z"/></svg>';var miBaselineKeyboardArrowLeft='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.41z"/></svg>';var miBaselineKeyboardTab='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6l-6-6l-1.41 1.41zM20 6v12h2V6h-2z"/></svg>';var miBaselineKeyboardCommandKey='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.5 3C15.57 3 14 4.57 14 6.5V8h-4V6.5C10 4.57 8.43 3 6.5 3S3 4.57 3 6.5S4.57 10 6.5 10H8v4H6.5C4.57 14 3 15.57 3 17.5S4.57 21 6.5 21s3.5-1.57 3.5-3.5V16h4v1.5c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5s-1.57-3.5-3.5-3.5H16v-4h1.5c1.93 0 3.5-1.57 3.5-3.5S19.43 3 17.5 3zM16 8V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S18.33 8 17.5 8H16zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5S8 5.67 8 6.5V8H6.5zm3.5 6v-4h4v4h-4zm7.5 5c-.83 0-1.5-.67-1.5-1.5V16h1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5zm-11 0c-.83 0-1.5-.67-1.5-1.5S5.67 16 6.5 16H8v1.5c0 .83-.67 1.5-1.5 1.5z"/></svg>';var miBaselineKeyboardOptionKey='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 5h6v2h-6zM9 5H3v2h4.85l6.92 12H21v-2h-5.07z"/></svg>';var miSharpWindow='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z"/></svg>';var miOutlineBackspace='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41L17.59 17L19 15.59L15.41 12L19 8.41L17.59 7L14 10.59L10.41 7L9 8.41L12.59 12L9 15.59z"/></svg>';var miBaselineKeyboardCapslock='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8.41L16.59 13L18 11.59l-6-6l-6 6L7.41 13L12 8.41zM6 18h12v-2H6v2z"/></svg>';var mdiKeyboardSpace='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-keyboard-space" viewBox="0 0 24 24"><path d="M3 15H5V19H19V15H21V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V15Z" /></svg>';var miBaselineNorth='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 9l1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7l-7 7z"/></svg>';var miBaselineSouth='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 15l-1.41-1.41L13 18.17V2h-2v16.17l-4.59-4.59L5 15l7 7l7-7z"/></svg>';var mdiKeyboardShift='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple-keyboard-shift" viewBox="0 0 24 24"><path d="M15,18V12H17.17L12,6.83L6.83,12H9V18H15M12,4L22,14H17V20H7V14H2L12,4Z" /></svg>';var miBaselineVerticalAlignTop='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z"/></svg>';var miBaselineVerticalAlignBottom='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z"/></svg>';var icons=new Map;icons.set("arrowdown",miBaselineKeyboardArrowDown);icons.set("arrowleft",miBaselineKeyboardArrowLeft);icons.set("arrowright",miBaselineKeyboardArrowRight);icons.set("arrowup",miBaselineKeyboardArrowUp);icons.set("command",miBaselineKeyboardCommandKey);icons.set("commandleft",miBaselineKeyboardCommandKey);icons.set("commandright",miBaselineKeyboardCommandKey);icons.set("delete",miOutlineBackspace);icons.set("capslock",miBaselineKeyboardCapslock);icons.set("backspace",miOutlineBackspace);icons.set("enter",miBaselineKeyboardReturn);icons.set("home",miBaselineVerticalAlignTop);icons.set("end",miBaselineVerticalAlignBottom);icons.set("option",miBaselineKeyboardOptionKey);icons.set("optionleft",miBaselineKeyboardOptionKey);icons.set("optionright",miBaselineKeyboardOptionKey);icons.set("pagedown",miBaselineSouth);icons.set("pageup",miBaselineNorth);icons.set("shift",mdiKeyboardShift);icons.set("shiftleft",mdiKeyboardShift);icons.set("shiftright",mdiKeyboardShift);icons.set("space",mdiKeyboardSpace);icons.set("tab",miBaselineKeyboardTab);icons.set("windows",miSharpWindow);icons.set("windowsleft",miSharpWindow);icons.set("windowsright",miSharpWindow);var mdsKeyboardKeyCss=function(){return"@layer reset,vendor,theme,base,components,utilities;: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-keyboard-key-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-key-illumination-light-size:calc(var(--spacing,.0025rem)*50);--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-key-illumination-dark-opacity,.05)) inset;--mds-keyboard-key-illumination-light:0 var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem)*50)) 0 0 rgb(255 255 255/var(--mds-keyboard-key-illumination-light-opacity,.5)) inset;--mds-keyboard-key-padding:calc(var(--spacing,.0025rem)*100);--mds-keyboard-key-transition-duration:.3s;--icon-size:calc(var(--spacing,.0025rem)*600);--key-size-default:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)));--key-size-pressed:calc(var(--icon-size) + calc(var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) * 2) + calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * 2));corner-shape:var(--magma-corner-shape,squircle);align-items:flex-end;display:inline-flex;min-height:var(--key-size-default);min-width:var(--key-size-default)}.physical-key{background-color:var(--mds-keyboard-key-background,rgb(var(--tone-bisque-08,214 206 204)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));-webkit-box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-sizing:border-box;corner-shape:inherit;align-items:baseline;display:inline-flex;flex-grow:1;flex-shrink:0;height:var(--key-size-default);justify-content:center;min-width:calc(var(--spacing,.0025rem)*1000);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100));position:relative;text-align:center;-webkit-transition-duration:var(--mds-keyboard-key-transition-duration,.3s);transition-duration:var(--mds-keyboard-key-transition-duration,.3s);transition-property:box-shadow,padding,height;-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));-webkit-user-select:none;user-select:none}:host(:active) .physical-key,:host([pressed]:not([pressed=false])) .physical-key{--mds-keyboard-key-illumination-dark:0 calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-key-illumination-dark-opacity)) inset;-webkit-box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);box-shadow:var(--mds-keyboard-key-illumination-light),var(--mds-keyboard-key-illumination-dark),var(--mds-keyboard-key-illumination-shadow);height:var(--key-size-pressed);padding:calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100)) calc(var(--mds-keyboard-key-illumination-light-size,calc(var(--spacing,.0025rem) * 50)) + var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))) var(--mds-keyboard-key-padding,calc(var(--spacing,.0025rem) * 100))}:host([code=space]) .physical-key{min-width:calc(var(--key-size-default)*2)}mds-badge{background-color:#0000;color:currentColor;margin-left:calc(var(--spacing,.0025rem)*50);padding:0;white-space:nowrap}.shortcut-icon{fill:currentColor}.shortcut-text{color:currentColor;text-transform:capitalize;white-space:nowrap}"};var MdsKeyboardKey=/** @class */function(){function a(a){var e=this;registerInstance(this,a);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.keyboardKeys=keyboardKeysData;this.getTitle=function(){if(e.name!==undefined){return e.t.get(e.keyboardKeys[e.name.toLowerCase()].description,{character:e.keyboardKeys[e.name.toLowerCase()].alias,keyboardPosition:e.keyboardKeys[e.name.toLowerCase()].keyboardPosition})}return undefined}}a.prototype.render=function(){var a,e,r,i;return h(Host,{key:"e76fe5d7d65f26b88f909798b85b1b21d480840a",title:this.getTitle()},h("div",{key:"a237a895ec3c2b5a92e54daa814cbb2c3528a5e2",class:"physical-key"},this.name&&icons.has(this.name)?h("mds-icon",{name:(a=icons.get(this.name))!==null&&a!==void 0?a:miBaselineBrokenImage,class:"shortcut-icon"}):h("mds-text",{class:"shortcut-text",typography:"detail"},this.name&&h("b",null,this.keyboardKeys[this.name].alias)),this.name&&((e=this.keyboardKeys[this.name])===null||e===void 0?void 0:e.keyboardPosition)&&h("mds-text",{key:"55480170f7746a1d11c570dccf618cd581d4f3f0",typography:"label"},((r=this.keyboardKeys[this.name].keyboardPosition)===null||r===void 0?void 0:r.left)&&"l",((i=this.keyboardKeys[this.name].keyboardPosition)===null||i===void 0?void 0:i.right)&&"r")))};return a}();MdsKeyboardKey.style=mdsKeyboardKeyCss();export{MdsKeyboardKey as mds_keyboard_key};
@@ -1 +1,11 @@
1
- var __awaiter=this&&this.__awaiter||function(e,a,r,i){function t(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,o){function n(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i["throw"](e))}catch(e){o(e)}}function d(e){e.done?r(e.value):t(e.value).then(n,s)}d((i=i.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,t,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=s(0),n["throw"]=s(1),n["return"]=s(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(a){return d([e,a])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(r=0)),r)try{if(i=1,t&&(o=s[0]&2?t["return"]:s[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,s[1])).done)return o;if(t=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;t=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=a.call(e,r)}catch(e){s=[6,e];t=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,a,r){if(r||arguments.length===2)for(var i=0,t=a.length,o;i<t;i++){if(o||!(i in a)){if(!o)o=Array.prototype.slice.call(a,0,i);o[i]=a[i]}}return e.concat(o||Array.prototype.slice.call(a))};import{r as registerInstance,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{m as miBaselineDone}from"./done-CvUz9jjh.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{L as Locale}from"./locale-a4oAcjYG.js";import{s as subscribePreference}from"./preference-fMwnXhio.js";import{k as keyboardKeysData}from"./keys-C4ckbXOl.js";var miBaselineKeyboard='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></svg>';var testKeyCombination$3="Κάντε κλικ για να δοκιμάσετε τον συνδυασμό πληκτρολογώντας στο πληκτρολόγιο";var testPassed$3="Ο συνδυασμός είναι σωστός";var wrongKeysCombination$3="Ο συνδυασμός που πληκτρολογήσατε δεν φαίνεται να είναι σωστός. Δοκιμάστε ξανά.";var localeEl={testKeyCombination:testKeyCombination$3,testPassed:testPassed$3,wrongKeysCombination:wrongKeysCombination$3};var testKeyCombination$2="Click to test the combination by typing on the keyboard";var testPassed$2="The combination is correct";var wrongKeysCombination$2="The combination you entered does not seem to be correct. Please try again.";var localeEn={testKeyCombination:testKeyCombination$2,testPassed:testPassed$2,wrongKeysCombination:wrongKeysCombination$2};var testKeyCombination$1="Haz clic para probar la combinación escribiendo en el teclado";var testPassed$1="La combinación es correcta";var wrongKeysCombination$1="La combinación que introdujiste no parece ser correcta. Inténtalo de nuevo.";var localeEs={testKeyCombination:testKeyCombination$1,testPassed:testPassed$1,wrongKeysCombination:wrongKeysCombination$1};var testKeyCombination="Clicca per provare la combinazione digitando da tastiera";var testPassed="La combinazione è corretta";var wrongKeysCombination="La combinazione che hai digitato non sembra essere corretta, riprova.";var localeIt={testKeyCombination:testKeyCombination,testPassed:testPassed,wrongKeysCombination:wrongKeysCombination};var mdsKeyboardCss=function(){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{--mds-keyboard-background-default:rgb(var(--tone-porcelain-08,89 107 134));--mds-keyboard-background-fail:rgb(var(--status-error-09,135 0 14));--mds-keyboard-background-pass:rgb(var(--status-success-09,0 82 9));--mds-keyboard-background:rgb(var(--tone-porcelain-08,89 107 134));--mds-keyboard-color:rgb(var(--tone-neutral-04,218 218 218));--mds-keyboard-fill-fail:rgb(var(--status-error-06,239 108 105));--mds-keyboard-fill-pass:rgb(var(--status-success-06,0 171 97));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-key-background:rgb(var(--tone-porcelain-10,51 62 77));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:1s}}}:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,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}@property --mds-keyboard-illumination-dark-opacity{syntax:"<number>";inherits:false;initial-value:.05}@property --mds-keyboard-illumination-light-opacity{syntax:"<number>";inherits:false;initial-value:.075}@property --mds-keyboard-key-illumination-dark-opacity{syntax:"<number>";inherits:false;initial-value:.075}@property --mds-keyboard-key-illumination-light-opacity{syntax:"<number>";inherits:false;initial-value:.5}@property --mds-keyboard-spinner-duration{syntax:"<time>";inherits:false;initial-value:1s}:host{--mds-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--tone-porcelain-08,89 107 134)));--mds-keyboard-background-fail:rgb(var(--status-error-09,135 0 14));--mds-keyboard-background-pass:rgb(var(--status-success-09,0 82 9));--mds-keyboard-background:rgb(var(--tone-porcelain-08,89 107 134));--mds-keyboard-color:rgb(var(--tone-neutral-04,218 218 218));--mds-keyboard-fill-fail:rgb(var(--status-error-06,239 108 105));--mds-keyboard-fill-pass:rgb(var(--status-success-06,0 171 97));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-illumination-dark-opacity,.05)) inset;--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-illumination-light:0 var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem)*25)) 0 0 rgb(255 255 255/var(--mds-keyboard-illumination-light-opacity,.075)) inset;--mds-keyboard-illumination-shadow:0 0 1px 0 #0000;--mds-keyboard-key-background:rgb(var(--tone-porcelain-10,51 62 77));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-key-illumination-shadow:var(--shadow-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:1s;background-color:var(--mds-keyboard-background-default,rgb(var(--tone-porcelain-08,89 107 134)));border-radius:var(--radius-2xl,24px);-webkit-box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);color:var(--mds-keyboard-color,rgb(var(--tone-neutral-04,218 218 218)));corner-shape:var(--magma-corner-shape,round);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem) * 25)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200)) calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200));transition-duration:.2s;transition-property:background-color;-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}.errors{display:grid}.errors,.shortcuts{gap:calc(var(--spacing,.0025rem)*100)}.shortcuts{align-items:center;display:inline-flex;outline:0}:host(:focus-within){--mds-keyboard-background:rgb(var(--tone-porcelain-07,117 137 164))}mds-tooltip{--mds-tooltip-delay:0}.combination-checker{--mds-button-await-duration:var(--mds-keyboard-spinner-duration,1s);border-radius:100px}::slotted(mds-keyboard-key){align-self:flex-end}:host([test=pass]){--mds-keyboard-background-default:var(--mds-keyboard-background-pass,rgb(var(--status-success-09,0 82 9)))}:host([test=fail]){--mds-keyboard-background-default:var(--mds-keyboard-background-fail,rgb(var(--status-error-09,135 0 14)))}:host([test=pass]) .combination-checker{background-color:var(--mds-keyboard-background-pass,rgb(var(--status-success-09,0 82 9)));fill:var(--mds-keyboard-fill-pass,rgb(var(--status-success-06,0 171 97)))}:host([test=fail]) .combination-checker{background-color:var(--mds-keyboard-background-fail,rgb(var(--status-error-09,135 0 14)));fill:var(--mds-keyboard-fill-fail,rgb(var(--status-error-06,239 108 105)))}:host([pref-theme=dark]:not([pref-theme-scheme=light])){--mds-keyboard-color:rgb(var(--tone-porcelain-01,255 255 255));--mds-keyboard-background:rgb(var(--tone-porcelain-07,117 137 164));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 3px 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--tone-porcelain-06,144 159 181));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]:not([pref-theme-scheme=light])){--mds-keyboard-color:rgb(var(--tone-porcelain-01,255 255 255));--mds-keyboard-background:rgb(var(--tone-porcelain-07,117 137 164));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 3px 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--tone-porcelain-06,144 159 181));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}}'};var MdsKeyboard=function(){function e(e){var a=this;registerInstance(this,e);this.errors=new Set;this.keyEls=[];this.testInit=false;this.pressedKeys=new Set;this.keyCombination=new Set;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.testPassed=undefined;this.initKeyboardTest=function(){var e,r;if(a.testInit){return}a.testInit=true;a.updateElements();a.shortcutsEl=(e=a.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(".shortcuts");a.buttonTrigger=(r=a.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".combination-checker");a.buttonTrigger.removeAttribute("title")};this.separateKeys=function(){a.filteredNodes.forEach((function(e,r){if(r<a.filteredNodes.length-1){var i=document.createElement("mds-text");i.typography="detail";i.innerHTML="<b>+</b>";e.after(i)}}))};this.updateElements=function(){a.filteredNodes.forEach((function(e){if(e.name!==undefined){a.keyEls.push(e);a.keyCombination.add(a.keyCodes(e.name.toLowerCase()).toString())}}))};this.checkTest=function(){if(a.testPassed===true){return"pass"}if(a.testPassed===false){return"fail"}return undefined};this.checkKeyboardShortcut=function(){a.stopKeyboardShortcutTest();a.testPassed=a.areEquivalent(a.keyCombination,a.pressedKeys);a.test=a.checkTest();a.keyEls.forEach((function(e){e.removeAttribute("pressed")}))};this.keyCodes=function(e){return keyboardKeysData[e.toLowerCase()].keyCodes};this.hasKeyCode=function(e,a){return keyboardKeysData[e.toLowerCase()].keyCodes.includes(a)};this.areEquivalent=function(e,r){var i=Array.from(e);var t=Array.from(r);var o=true;if(i.length!==t.length){a.errors.add("wrongKeysCombination");return false}o=i.every((function(e,a){var r=e.split(",");return r.includes(t[a])}));if(!o){a.errors.add("wrongKeysCombination")}return o};this.addKeyboardShortcut=function(e){if(typeof document==="undefined"){return}e.stopPropagation();e.preventDefault();var r=e.code;a.pressedKeys.add(r);a.keyEls.forEach((function(e){if(a.hasKeyCode(e.name,r)){e.pressed=true}}))};this.startKeyboardShortcutTest=function(){a.pressedKeys.clear();a.testPassed=undefined;a.test=a.testPassed;a.buttonTrigger.blur();a.buttonTrigger.await=true;a.buttonTrigger.removeAttribute("tabindex");a.shortcutsEl.setAttribute("tabindex","0");a.shortcutsEl.focus();a.shortcutsEl.addEventListener("blur",a.stopKeyboardShortcutTest);a.shortcutsEl.addEventListener("keydown",a.addKeyboardShortcut);a.shortcutsEl.addEventListener("keyup",a.checkKeyboardShortcut)};this.stopKeyboardShortcutTest=function(){a.buttonTrigger.await=false;a.buttonTrigger.setAttribute("tabindex","0");a.shortcutsEl.removeAttribute("tabindex");a.shortcutsEl.removeEventListener("blur",a.stopKeyboardShortcutTest);a.shortcutsEl.removeEventListener("keydown",a.addKeyboardShortcut);a.shortcutsEl.removeEventListener("keyup",a.checkKeyboardShortcut)};this.getButtonIcon=function(){if(a.test==="pass"){return miBaselineDone}if(a.test==="fail"){return miBaselineClose}return miBaselineKeyboard}}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.connectedCallback=function(){var e=this;this.unsubscribePrefTheme=subscribePreference("theme",(function(a){e.prefTheme=a}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(a){e.prefThemeScheme=a}))};e.prototype.disconnectedCallback=function(){var e,a;(e=this.unsubscribePrefTheme)===null||e===void 0?void 0:e.call(this);(a=this.unsubscribePrefThemeScheme)===null||a===void 0?void 0:a.call(this);if(this.testInit){this.stopKeyboardShortcutTest()}};e.prototype.componentWillLoad=function(){this.t.lang(this.host)};e.prototype.handleTryProperty=function(e){if(e){this.initKeyboardTest()}};e.prototype.componentDidLoad=function(){var e,a;this.nodes=(a=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("slot")[0])===null||a===void 0?void 0:a.assignedNodes();this.filteredNodes=this.nodes.filter((function(e){return e.nodeType===1}));this.separateKeys();if(this.try){this.initKeyboardTest()}};e.prototype.render=function(){var e=this;return h(Host,{key:"04b53f45038a5462ecd3a5389bd5f39ef461d43b","pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},h("div",{key:"0105a25f75d267bb2497307b0a0983cdde8ce8ad",class:"shortcuts"},h("slot",{key:"25e462272a3dd4bc5fcb6915957614ed8921ad09"})),this.try&&h("mds-button",{key:"376a9691e6ae3dada84a653e00d6aeaccdbe65ec",icon:this.getButtonIcon(),"aria-title":this.t.get("testKeyCombination"),class:"combination-checker",variant:"dark",tone:"text",onClick:this.startKeyboardShortcutTest}),this.try&&h("mds-tooltip",{key:"0e8201759ef326e1ab52b26ec6b71efd73400637",target:".combination-checker"},this.testPassed===undefined&&this.t.get("testKeyCombination"),this.testPassed===true&&this.t.get("testPassed"),this.testPassed===false&&h("div",{key:"ec7f97f898c005f8a0e0ee92ee0ae3aab21b0cd2",class:"errors"},__spreadArray([],this.errors,true).map((function(a){return h("mds-text",{typography:"tip"},e.t.get(a))})))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{try:[{handleTryProperty:0}]}},enumerable:false,configurable:true});return e}();MdsKeyboard.style=mdsKeyboardCss();export{MdsKeyboard as mds_keyboard};
1
+ var __spreadArray=this&&this.__spreadArray||function(a,e,r){if(r||arguments.length===2)for(var t=0,i=e.length,o;t<i;t++){if(o||!(t in e)){if(!o)o=Array.prototype.slice.call(e,0,t);o[t]=e[t]}}return a.concat(o||Array.prototype.slice.call(e))};import{r as registerInstance,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{m as miBaselineDone}from"./done-CvUz9jjh.js";import{m as miBaselineClose}from"./close-J-ikDhyq.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import{k as keyboardKeysData}from"./keys-C4ckbXOl.js";var miBaselineKeyboard='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></svg>';var testKeyCombination$3="Κάντε κλικ για να δοκιμάσετε τον συνδυασμό πληκτρολογώντας στο πληκτρολόγιο";var testPassed$3="Ο συνδυασμός είναι σωστός";var wrongKeysCombination$3="Ο συνδυασμός που πληκτρολογήσατε δεν φαίνεται να είναι σωστός. Δοκιμάστε ξανά.";var localeEl={testKeyCombination:testKeyCombination$3,testPassed:testPassed$3,wrongKeysCombination:wrongKeysCombination$3};var testKeyCombination$2="Click to test the combination by typing on the keyboard";var testPassed$2="The combination is correct";var wrongKeysCombination$2="The combination you entered does not seem to be correct. Please try again.";var localeEn={testKeyCombination:testKeyCombination$2,testPassed:testPassed$2,wrongKeysCombination:wrongKeysCombination$2};var testKeyCombination$1="Haz clic para probar la combinación escribiendo en el teclado";var testPassed$1="La combinación es correcta";var wrongKeysCombination$1="La combinación que introdujiste no parece ser correcta. Inténtalo de nuevo.";var localeEs={testKeyCombination:testKeyCombination$1,testPassed:testPassed$1,wrongKeysCombination:wrongKeysCombination$1};var testKeyCombination="Clicca per provare la combinazione digitando da tastiera";var testPassed="La combinazione è corretta";var wrongKeysCombination="La combinazione che hai digitato non sembra essere corretta, riprova.";var localeIt={testKeyCombination:testKeyCombination,testPassed:testPassed,wrongKeysCombination:wrongKeysCombination};var mdsKeyboardCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-text,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-keyboard-background-default:var(--mds-keyboard-background,rgb(var(--tone-porcelain-08,201 208 219)));--mds-keyboard-background-fail:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-keyboard-background-pass:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-keyboard-background:rgb(var(--tone-porcelain-08,201 208 219));--mds-keyboard-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-keyboard-fill-fail:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-keyboard-fill-pass:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-keyboard-illumination-dark-opacity:.05;--mds-keyboard-illumination-dark-size:calc(var(--spacing,.0025rem)*150);--mds-keyboard-illumination-dark:0 calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) * -1) 0 0 rgb(0 0 0/var(--mds-keyboard-illumination-dark-opacity,.05)) inset;--mds-keyboard-illumination-light-opacity:.075;--mds-keyboard-illumination-light-size:calc(var(--spacing,.0025rem)*25);--mds-keyboard-illumination-light:0 var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem)*25)) 0 0 rgb(255 255 255/var(--mds-keyboard-illumination-light-opacity,.075)) inset;--mds-keyboard-illumination-shadow:0 0 1px 0 #0000;--mds-keyboard-key-background:rgb(var(--tone-porcelain-10,235 237 241));--mds-keyboard-key-illumination-dark-opacity:.075;--mds-keyboard-key-illumination-light-opacity:.5;--mds-keyboard-key-illumination-shadow:var(--shadow-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-keyboard-padding:calc(var(--spacing,.0025rem)*200);--mds-keyboard-spinner-duration:1s;background-color:var(--mds-keyboard-background-default,rgb(var(--tone-porcelain-08,201 208 219)));border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));-webkit-box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);box-shadow:var(--mds-keyboard-illumination-light),var(--mds-keyboard-illumination-dark),var(--mds-keyboard-illumination-shadow);color:var(--mds-keyboard-color,rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99)))));corner-shape:var(--magma-corner-shape,squircle);align-items:center;align-self:flex-start;display:inline-flex;gap:calc(var(--spacing,.0025rem)*200);justify-self:flex-start;padding:calc(var(--mds-keyboard-illumination-light-size,calc(var(--spacing,.0025rem) * 25)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200)) calc(var(--mds-keyboard-illumination-dark-size,calc(var(--spacing,.0025rem) * 150)) + var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200))) var(--mds-keyboard-padding,calc(var(--spacing,.0025rem) * 200));transition-duration:.2s;transition-property:background-color;-webkit-transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));transition-timing-function:var(--ease-out-quad,cubic-bezier(.25,.46,.45,.94));-webkit-user-select:none;user-select:none}.errors{display:grid}.errors,.shortcuts{gap:calc(var(--spacing,.0025rem)*100)}.shortcuts{align-items:center;display:inline-flex;outline:0}:host(:focus-within){--mds-keyboard-background:rgb(var(--tone-porcelain-07,179 189 204))}mds-tooltip{--mds-tooltip-delay:0}.combination-checker{--mds-button-await-duration:var(--mds-keyboard-spinner-duration,1s);border-radius:var(--radius-full,1000px)}::slotted(mds-keyboard-key){align-self:flex-end}:host([test=pass]){--mds-keyboard-background-default:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))))}:host([test=fail]){--mds-keyboard-background-default:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))))}:host([test=pass]) .combination-checker{background-color:var(--mds-keyboard-background-pass,rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205))));fill:var(--mds-keyboard-fill-pass,rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0))))}:host([test=fail]) .combination-checker{background-color:var(--mds-keyboard-background-fail,rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211))));fill:var(--mds-keyboard-fill-fail,rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0))))}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-keyboard-color:rgb(var(--tone-porcelain-01,4 5 6));--mds-keyboard-background:rgb(var(--tone-porcelain-07,179 189 204));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 3px 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--tone-porcelain-06,153 168 187));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-keyboard-color:rgb(var(--tone-porcelain-01,4 5 6));--mds-keyboard-background:rgb(var(--tone-porcelain-07,179 189 204));--mds-keyboard-illumination-dark-opacity:.5;--mds-keyboard-illumination-light-opacity:.15;--mds-keyboard-illumination-shadow:0 0 3px 0 #ffffff80;--mds-keyboard-key-background:rgb(var(--tone-porcelain-06,153 168 187));--mds-keyboard-key-illumination-dark-opacity:.5;--mds-keyboard-key-illumination-light-opacity:.15;--mds-keyboard-key-illumination-shadow:0 0 1px 0 #ffffff80}}"};var MdsKeyboard=/** @class */function(){function a(a){var e=this;registerInstance(this,a);this.errors=new Set;this.keyEls=[];this.testInit=false;this.pressedKeys=new Set;this.keyCombination=new Set;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.testPassed=undefined;this.initKeyboardTest=function(){var a,r;if(e.testInit){return}e.testInit=true;e.updateElements();e.shortcutsEl=(a=e.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".shortcuts");e.buttonTrigger=(r=e.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".combination-checker");e.buttonTrigger.removeAttribute("title")};this.separateKeys=function(){e.filteredNodes.forEach((function(a,r){if(r<e.filteredNodes.length-1){var t=document.createElement("mds-text");t.typography="detail";t.innerHTML="<b>+</b>";a.after(t)}}))};this.updateElements=function(){e.filteredNodes.forEach((function(a){if(a.name!==undefined){e.keyEls.push(a);e.keyCombination.add(e.keyCodes(a.name.toLowerCase()).toString())}}))};this.checkTest=function(){if(e.testPassed===true){return"pass"}if(e.testPassed===false){return"fail"}return undefined};this.checkKeyboardShortcut=function(){e.stopKeyboardShortcutTest();
2
+ // console.log('json keys x', this.keyCombination)
3
+ // console.log('os output x', this.pressedKeys)
4
+ e.testPassed=e.areEquivalent(e.keyCombination,e.pressedKeys);e.test=e.checkTest();e.keyEls.forEach((function(a){a.removeAttribute("pressed")}))};this.keyCodes=function(a){return keyboardKeysData[a.toLowerCase()].keyCodes};this.hasKeyCode=function(a,e){return keyboardKeysData[a.toLowerCase()].keyCodes.includes(e)};this.areEquivalent=function(a,r){var t=Array.from(a);var i=Array.from(r);var o=true;if(t.length!==i.length){e.errors.add("wrongKeysCombination");return false}o=t.every((function(a,e){var r=a.split(",");return r.includes(i[e])}));if(!o){e.errors.add("wrongKeysCombination")}return o};this.addKeyboardShortcut=function(a){if(typeof document==="undefined"){return}a.stopPropagation();a.preventDefault();var r=a.code;e.pressedKeys.add(r);e.keyEls.forEach((function(a){if(e.hasKeyCode(a.name,r)){a.pressed=true}}))};this.startKeyboardShortcutTest=function(){e.pressedKeys.clear();e.testPassed=undefined;e.test=e.testPassed;e.buttonTrigger.blur();e.buttonTrigger.await=true;e.buttonTrigger.removeAttribute("tabindex");e.shortcutsEl.setAttribute("tabindex","0");e.shortcutsEl.focus();
5
+ // Attach for this run; stopKeyboardShortcutTest detaches. The handlers are
6
+ // stable arrow refs, so re-adding is idempotent and removal matches.
7
+ e.shortcutsEl.addEventListener("blur",e.stopKeyboardShortcutTest);e.shortcutsEl.addEventListener("keydown",e.addKeyboardShortcut);e.shortcutsEl.addEventListener("keyup",e.checkKeyboardShortcut)};this.stopKeyboardShortcutTest=function(){e.buttonTrigger.await=false;e.buttonTrigger.setAttribute("tabindex","0");e.shortcutsEl.removeAttribute("tabindex");e.shortcutsEl.removeEventListener("blur",e.stopKeyboardShortcutTest);e.shortcutsEl.removeEventListener("keydown",e.addKeyboardShortcut);e.shortcutsEl.removeEventListener("keyup",e.checkKeyboardShortcut)};this.getButtonIcon=function(){if(e.test==="pass"){return miBaselineDone}if(e.test==="fail"){return miBaselineClose}return miBaselineKeyboard}}a.prototype.disconnectedCallback=function(){
8
+ // Tear down the keyboard test only if it was initialized; otherwise
9
+ // buttonTrigger/shortcutsEl are undefined and this would throw. (This used
10
+ // to live in a misspelled `discottectedCallback`, so it never ran.)
11
+ if(this.testInit){this.stopKeyboardShortcutTest()}};a.prototype.handleTryProperty=function(a){if(a){this.initKeyboardTest()}};a.prototype.componentDidLoad=function(){var a,e;this.nodes=(e=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("slot")[0])===null||e===void 0?void 0:e.assignedNodes();this.filteredNodes=this.nodes.filter((function(a){return a.nodeType===1}));this.separateKeys();if(this.try){this.initKeyboardTest()}};a.prototype.render=function(){var a=this;return h(Host,{key:"2428b02400771f84bf5bec6a04d9ee79b58214e6","pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"21bcbcb3751df1686a532ba45ecf70247772d980",class:"shortcuts"},h("slot",{key:"8c5e6a0061fba55e4b40de59a1a44fd9e83e3552"})),this.try&&h("mds-button",{key:"ad306361f059bfe504f2e5017c937ba1ffa46357",icon:this.getButtonIcon(),"aria-label":this.t.get("testKeyCombination"),class:"combination-checker",variant:"dark",tone:"text",onClick:this.startKeyboardShortcutTest}),this.try&&h("mds-tooltip",{key:"36bfe040249307ac3cd51552964822d17c6e6d6d",target:".combination-checker"},this.testPassed===undefined&&this.t.get("testKeyCombination"),this.testPassed===true&&this.t.get("testPassed"),this.testPassed===false&&h("div",{key:"2c2f2860b83297a3110432247d69d9a5ef2a622a",class:"errors"},__spreadArray([],this.errors,true).map((function(e){return h("mds-text",{typography:"tip"},a.t.get(e))})))))};Object.defineProperty(a.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{try:[{handleTryProperty:0}]}},enumerable:false,configurable:true});return a}();MdsKeyboard.style=mdsKeyboardCss();export{MdsKeyboard as mds_keyboard};