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

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 (1628) hide show
  1. package/README.md +35 -3
  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/magma-components.cjs.js +31 -4
  12. package/dist/cjs/mds-accordion-item.cjs.entry.js +7 -28
  13. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -17
  14. package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-accordion.cjs.entry.js +5 -22
  16. package/dist/cjs/mds-author.cjs.entry.js +9 -4
  17. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +2 -2
  18. package/dist/cjs/mds-avatar-stack.cjs.entry.js +5 -4
  19. package/dist/cjs/mds-avatar.cjs.entry.js +8 -21
  20. package/dist/cjs/mds-badge.cjs.entry.js +5 -26
  21. package/dist/cjs/mds-banner_3.cjs.entry.js +35 -70
  22. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
  23. package/dist/cjs/mds-bibliography.cjs.entry.js +2 -2
  24. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +3 -3
  25. package/dist/cjs/mds-breadcrumb.cjs.entry.js +7 -15
  26. package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
  27. package/dist/cjs/mds-button-group.cjs.entry.js +3 -3
  28. package/dist/cjs/mds-button_3.cjs.entry.js +10 -32
  29. package/dist/cjs/mds-calendar_2.cjs.entry.js +123 -102
  30. package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
  31. package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
  32. package/dist/cjs/mds-card-header.cjs.entry.js +9 -4
  33. package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
  34. package/dist/cjs/mds-card.cjs.entry.js +4 -21
  35. package/dist/cjs/mds-details.cjs.entry.js +8 -18
  36. package/dist/cjs/mds-dropdown.cjs.entry.js +184 -58
  37. package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
  38. package/dist/cjs/mds-entity.cjs.entry.js +11 -23
  39. package/dist/cjs/mds-file-preview.cjs.entry.js +8 -36
  40. package/dist/cjs/mds-file.cjs.entry.js +6 -34
  41. package/dist/cjs/mds-filter-item.cjs.entry.js +6 -25
  42. package/dist/cjs/mds-filter.cjs.entry.js +19 -32
  43. package/dist/cjs/mds-header-bar.cjs.entry.js +11 -27
  44. package/dist/cjs/mds-header.cjs.entry.js +8 -22
  45. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/mds-hr.cjs.entry.js +4 -17
  47. package/dist/cjs/mds-img.cjs.entry.js +8 -16
  48. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
  49. package/dist/cjs/mds-input-date-range.cjs.entry.js +57 -43
  50. package/dist/cjs/mds-input-date.cjs.entry.js +14 -44
  51. package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
  52. package/dist/cjs/mds-input-otp.cjs.entry.js +37 -3
  53. package/dist/cjs/mds-input-range.cjs.entry.js +9 -29
  54. package/dist/cjs/mds-input-select.cjs.entry.js +11 -41
  55. package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -55
  56. package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -40
  57. package/dist/cjs/mds-input-upload.cjs.entry.js +34 -36
  58. package/dist/cjs/mds-input.cjs.entry.js +23 -52
  59. package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
  60. package/dist/cjs/mds-keyboard.cjs.entry.js +5 -25
  61. package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -25
  62. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  63. package/dist/cjs/mds-label.cjs.entry.js +7 -29
  64. package/dist/cjs/mds-list-item.cjs.entry.js +4 -13
  65. package/dist/cjs/mds-list.cjs.entry.js +1 -1
  66. package/dist/cjs/mds-mention.cjs.entry.js +38 -4
  67. package/dist/cjs/mds-modal.cjs.entry.js +54 -47
  68. package/dist/cjs/mds-note.cjs.entry.js +7 -35
  69. package/dist/cjs/mds-notification.cjs.entry.js +12 -14
  70. package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -20
  71. package/dist/cjs/mds-paginator.cjs.entry.js +27 -32
  72. package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -15
  73. package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -23
  74. package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -23
  75. package/dist/cjs/mds-pref-contrast.cjs.entry.js +10 -24
  76. package/dist/cjs/mds-pref-language-item.cjs.entry.js +27 -15
  77. package/dist/cjs/mds-pref-language.cjs.entry.js +38 -28
  78. package/dist/cjs/mds-pref-mode.cjs.entry.js +273 -0
  79. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +43 -0
  80. package/dist/cjs/mds-pref-theme.cjs.entry.js +147 -230
  81. package/dist/cjs/mds-pref.cjs.entry.js +40 -17
  82. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -25
  83. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -25
  84. package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -25
  85. package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
  86. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
  87. package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -25
  88. package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-progress_2.cjs.entry.js +7 -33
  90. package/dist/cjs/mds-push-notification-item.cjs.entry.js +16 -39
  91. package/dist/cjs/mds-push-notification.cjs.entry.js +7 -20
  92. package/dist/cjs/mds-quote.cjs.entry.js +4 -13
  93. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
  94. package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -6
  95. package/dist/cjs/mds-separator.cjs.entry.js +4 -21
  96. package/dist/cjs/mds-status-bar.cjs.entry.js +4 -25
  97. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -25
  98. package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
  99. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -27
  100. package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -26
  101. package/dist/cjs/mds-tab_2.cjs.entry.js +14 -47
  102. package/dist/cjs/mds-table-body.cjs.entry.js +4 -13
  103. package/dist/cjs/mds-table-footer.cjs.entry.js +4 -13
  104. package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -13
  105. package/dist/cjs/mds-table-header.cjs.entry.js +19 -31
  106. package/dist/cjs/mds-table-row.cjs.entry.js +20 -29
  107. package/dist/cjs/mds-table.cjs.entry.js +60 -50
  108. package/dist/cjs/mds-text.cjs.entry.js +36 -21
  109. package/dist/cjs/mds-toast.cjs.entry.js +10 -27
  110. package/dist/cjs/mds-tooltip.cjs.entry.js +16 -27
  111. package/dist/cjs/mds-tree-item.cjs.entry.js +12 -14
  112. package/dist/cjs/mds-tree.cjs.entry.js +12 -6
  113. package/dist/cjs/mds-url-view.cjs.entry.js +21 -41
  114. package/dist/cjs/mds-usage.cjs.entry.js +5 -33
  115. package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
  116. package/dist/cjs/mds-zero.cjs.entry.js +4 -25
  117. package/dist/cjs/preference-eJcbLLAn.js +389 -0
  118. package/dist/cjs/slot-RmXfgH4P.js +69 -0
  119. package/dist/collection/collection-manifest.json +3 -3
  120. package/dist/collection/common/date.js +9 -1
  121. package/dist/collection/common/floating-controller.js +175 -9
  122. package/dist/collection/common/form.js +18 -0
  123. package/dist/collection/common/keyboard-manager.js +5 -5
  124. package/dist/collection/common/locale.js +9 -31
  125. package/dist/collection/common/preference.js +83 -59
  126. package/dist/collection/common/slot.js +14 -1
  127. package/dist/collection/common/yugop/random-text.js +12 -3
  128. package/dist/collection/components/mds-accordion/mds-accordion.css +9 -65
  129. package/dist/collection/components/mds-accordion/mds-accordion.js +3 -27
  130. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +63 -81
  131. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -31
  132. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -26
  133. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +50 -36
  134. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -16
  135. package/dist/collection/components/mds-author/mds-author.css +4 -0
  136. package/dist/collection/components/mds-author/mds-author.js +14 -2
  137. package/dist/collection/components/mds-avatar/mds-avatar.css +125 -111
  138. package/dist/collection/components/mds-avatar/mds-avatar.js +6 -21
  139. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +12 -84
  140. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +3 -2
  141. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -24
  142. package/dist/collection/components/mds-badge/mds-badge.css +168 -155
  143. package/dist/collection/components/mds-badge/mds-badge.js +2 -31
  144. package/dist/collection/components/mds-banner/mds-banner.css +149 -192
  145. package/dist/collection/components/mds-banner/mds-banner.js +10 -58
  146. package/dist/collection/components/mds-bibliography/mds-bibliography.css +6 -24
  147. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -70
  148. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -37
  149. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
  150. package/dist/collection/components/mds-button/mds-button.css +285 -333
  151. package/dist/collection/components/mds-button/mds-button.js +4 -24
  152. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +24 -34
  153. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
  154. package/dist/collection/components/mds-button-group/mds-button-group.css +13 -4
  155. package/dist/collection/components/mds-button-group/mds-button-group.js +2 -2
  156. package/dist/collection/components/mds-calendar/mds-calendar.css +13 -69
  157. package/dist/collection/components/mds-calendar/mds-calendar.js +150 -127
  158. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
  159. package/dist/collection/components/mds-card/mds-card.css +11 -35
  160. package/dist/collection/components/mds-card/mds-card.js +2 -22
  161. package/dist/collection/components/mds-card-content/mds-card-content.css +1 -0
  162. package/dist/collection/components/mds-card-footer/mds-card-footer.css +1 -0
  163. package/dist/collection/components/mds-card-header/mds-card-header.css +5 -0
  164. package/dist/collection/components/mds-card-header/mds-card-header.js +14 -2
  165. package/dist/collection/components/mds-card-media/mds-card-media.css +1 -1
  166. package/dist/collection/components/mds-chip/mds-chip.css +317 -278
  167. package/dist/collection/components/mds-chip/mds-chip.js +19 -61
  168. package/dist/collection/components/mds-details/mds-details.css +52 -28
  169. package/dist/collection/components/mds-details/mds-details.js +4 -16
  170. package/dist/collection/components/mds-dropdown/mds-dropdown.css +102 -121
  171. package/dist/collection/components/mds-dropdown/mds-dropdown.js +179 -59
  172. package/dist/collection/components/mds-emoji/asset/mia.svg +3 -3
  173. package/dist/collection/components/mds-emoji/mds-emoji.css +15 -179
  174. package/dist/collection/components/mds-emoji/mds-emoji.js +297 -177
  175. package/dist/collection/components/mds-entity/mds-entity.css +25 -76
  176. package/dist/collection/components/mds-entity/mds-entity.js +13 -24
  177. package/dist/collection/components/mds-file/mds-file.css +103 -79
  178. package/dist/collection/components/mds-file/mds-file.js +2 -56
  179. package/dist/collection/components/mds-file-preview/mds-file-preview.css +277 -218
  180. package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -62
  181. package/dist/collection/components/mds-filter/mds-filter.css +66 -78
  182. package/dist/collection/components/mds-filter/mds-filter.js +16 -33
  183. package/dist/collection/components/mds-filter-item/mds-filter-item.css +73 -53
  184. package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -29
  185. package/dist/collection/components/mds-header/mds-header.css +15 -68
  186. package/dist/collection/components/mds-header/mds-header.js +5 -22
  187. package/dist/collection/components/mds-header-bar/mds-header-bar.css +60 -31
  188. package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -28
  189. package/dist/collection/components/mds-help/mds-help.css +1 -19
  190. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +13 -104
  191. package/dist/collection/components/mds-hr/mds-hr.css +6 -18
  192. package/dist/collection/components/mds-hr/mds-hr.js +2 -21
  193. package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
  194. package/dist/collection/components/mds-img/mds-img.css +12 -48
  195. package/dist/collection/components/mds-img/mds-img.js +5 -36
  196. package/dist/collection/components/mds-input/mds-input.css +120 -158
  197. package/dist/collection/components/mds-input/mds-input.js +33 -65
  198. package/dist/collection/components/mds-input-date/mds-input-date.css +107 -124
  199. package/dist/collection/components/mds-input-date/mds-input-date.js +49 -62
  200. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +100 -90
  201. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +77 -62
  202. package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
  203. package/dist/collection/components/mds-input-field/mds-input-field.css +33 -45
  204. package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
  205. package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
  206. package/dist/collection/components/mds-input-range/mds-input-range.css +61 -19
  207. package/dist/collection/components/mds-input-range/mds-input-range.js +7 -31
  208. package/dist/collection/components/mds-input-select/mds-input-select.css +123 -156
  209. package/dist/collection/components/mds-input-select/mds-input-select.js +28 -61
  210. package/dist/collection/components/mds-input-switch/mds-input-switch.css +91 -250
  211. package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -63
  212. package/dist/collection/components/mds-input-tip/mds-input-tip.css +45 -31
  213. package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -16
  214. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +84 -56
  215. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -54
  216. package/dist/collection/components/mds-input-upload/mds-input-upload.css +26 -37
  217. package/dist/collection/components/mds-input-upload/mds-input-upload.js +30 -51
  218. package/dist/collection/components/mds-keyboard/mds-keyboard.css +32 -126
  219. package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -46
  220. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
  221. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
  222. package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
  223. package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +103 -40
  224. package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -27
  225. package/dist/collection/components/mds-label/mds-label.css +265 -354
  226. package/dist/collection/components/mds-label/mds-label.js +3 -54
  227. package/dist/collection/components/mds-list-item/mds-list-item.css +3 -9
  228. package/dist/collection/components/mds-list-item/mds-list-item.js +2 -16
  229. package/dist/collection/components/mds-mention/mds-mention.css +19 -10
  230. package/dist/collection/components/mds-mention/mds-mention.js +62 -2
  231. package/dist/collection/components/mds-modal/mds-modal.css +71 -101
  232. package/dist/collection/components/mds-modal/mds-modal.js +72 -45
  233. package/dist/collection/components/mds-note/mds-note.css +220 -198
  234. package/dist/collection/components/mds-note/mds-note.js +3 -61
  235. package/dist/collection/components/mds-notification/mds-notification.css +55 -89
  236. package/dist/collection/components/mds-notification/mds-notification.js +9 -16
  237. package/dist/collection/components/mds-paginator/mds-paginator.css +71 -35
  238. package/dist/collection/components/mds-paginator/mds-paginator.js +24 -37
  239. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +78 -96
  240. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -24
  241. package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +9 -9
  242. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -38
  243. package/dist/collection/components/mds-pref/mds-pref.js +40 -40
  244. package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +50 -6
  245. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -47
  246. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +12 -12
  247. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -47
  248. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +4 -4
  249. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +7 -48
  250. package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
  251. package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
  252. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
  253. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
  254. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
  255. package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
  256. package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
  257. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +183 -239
  258. package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
  259. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
  260. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
  261. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  262. package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +56 -47
  263. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -31
  264. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +71 -67
  265. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -31
  266. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +66 -42
  267. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +3 -28
  268. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  269. package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +63 -25
  270. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +3 -28
  271. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -31
  272. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  273. package/dist/collection/components/mds-progress/mds-progress.css +100 -94
  274. package/dist/collection/components/mds-progress/mds-progress.js +2 -27
  275. package/dist/collection/components/mds-push-notification/mds-push-notification.css +7 -37
  276. package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -21
  277. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +172 -136
  278. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +13 -60
  279. package/dist/collection/components/mds-quote/mds-quote.css +2 -2
  280. package/dist/collection/components/mds-quote/mds-quote.js +2 -16
  281. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
  282. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
  283. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
  284. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  285. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
  286. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
  287. package/dist/collection/components/mds-separator/mds-separator.css +12 -42
  288. package/dist/collection/components/mds-separator/mds-separator.js +2 -26
  289. package/dist/collection/components/mds-spinner/mds-spinner.css +3 -9
  290. package/dist/collection/components/mds-spinner/mds-spinner.js +2 -16
  291. package/dist/collection/components/mds-status-bar/mds-status-bar.css +13 -23
  292. package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -31
  293. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +8 -56
  294. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
  295. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +68 -120
  296. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -44
  297. package/dist/collection/components/mds-tab/mds-tab.css +85 -189
  298. package/dist/collection/components/mds-tab/mds-tab.js +5 -27
  299. package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +54 -10
  300. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -31
  301. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +62 -44
  302. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -27
  303. package/dist/collection/components/mds-tab-item/mds-tab-item.css +22 -37
  304. package/dist/collection/components/mds-tab-item/mds-tab-item.js +23 -22
  305. package/dist/collection/components/mds-table/mds-table.css +86 -130
  306. package/dist/collection/components/mds-table/mds-table.js +57 -52
  307. package/dist/collection/components/mds-table-body/mds-table-body.css +54 -40
  308. package/dist/collection/components/mds-table-body/mds-table-body.js +2 -16
  309. package/dist/collection/components/mds-table-cell/mds-table-cell.css +62 -32
  310. package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -16
  311. package/dist/collection/components/mds-table-footer/mds-table-footer.css +44 -0
  312. package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -16
  313. package/dist/collection/components/mds-table-header/mds-table-header.css +44 -0
  314. package/dist/collection/components/mds-table-header/mds-table-header.js +17 -48
  315. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +47 -7
  316. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +3 -13
  317. package/dist/collection/components/mds-table-row/mds-table-row.css +67 -49
  318. package/dist/collection/components/mds-table-row/mds-table-row.js +19 -50
  319. package/dist/collection/components/mds-text/mds-text.css +18 -38
  320. package/dist/collection/components/mds-text/mds-text.js +23 -22
  321. package/dist/collection/components/mds-toast/mds-toast.css +99 -90
  322. package/dist/collection/components/mds-toast/mds-toast.js +8 -28
  323. package/dist/collection/components/mds-tooltip/mds-tooltip.css +68 -85
  324. package/dist/collection/components/mds-tooltip/mds-tooltip.js +12 -31
  325. package/dist/collection/components/mds-tree/mds-tree.css +20 -212
  326. package/dist/collection/components/mds-tree/mds-tree.js +10 -4
  327. package/dist/collection/components/mds-tree-item/mds-tree-item.css +146 -267
  328. package/dist/collection/components/mds-tree-item/mds-tree-item.js +7 -28
  329. package/dist/collection/components/mds-url-view/mds-url-view.css +59 -33
  330. package/dist/collection/components/mds-url-view/mds-url-view.js +17 -67
  331. package/dist/collection/components/mds-usage/mds-usage.css +80 -95
  332. package/dist/collection/components/mds-usage/mds-usage.js +2 -60
  333. package/dist/collection/components/mds-video-wall/mds-video-wall.css +11 -26
  334. package/dist/collection/components/mds-video-wall/mds-video-wall.js +11 -2
  335. package/dist/collection/components/mds-zero/mds-zero.css +56 -18
  336. package/dist/collection/components/mds-zero/mds-zero.js +2 -31
  337. package/dist/collection/event-detail/theme.js +1 -0
  338. package/dist/collection/type/preference.js +22 -3
  339. package/dist/components/index.d.ts +230 -0
  340. package/dist/components/index.js +1 -1
  341. package/dist/components/mds-accordion-item.js +1 -1
  342. package/dist/components/mds-accordion-timer-item.js +1 -1
  343. package/dist/components/mds-accordion-timer.js +1 -1
  344. package/dist/components/mds-accordion.js +1 -1
  345. package/dist/components/mds-author.js +1 -1
  346. package/dist/components/mds-avatar-stack-item.js +1 -1
  347. package/dist/components/mds-avatar-stack.js +1 -1
  348. package/dist/components/mds-avatar.js +1 -1
  349. package/dist/components/mds-badge.js +1 -1
  350. package/dist/components/mds-banner.js +1 -1
  351. package/dist/components/mds-benchmark-bar.js +1 -1
  352. package/dist/components/mds-bibliography.js +1 -1
  353. package/dist/components/mds-breadcrumb-item.js +1 -1
  354. package/dist/components/mds-breadcrumb.js +1 -1
  355. package/dist/components/mds-button-dropdown.js +1 -1
  356. package/dist/components/mds-button-group.js +1 -1
  357. package/dist/components/mds-button.js +1 -1
  358. package/dist/components/mds-calendar-cell.js +1 -1
  359. package/dist/components/mds-calendar.js +1 -1
  360. package/dist/components/mds-card-content.js +1 -1
  361. package/dist/components/mds-card-footer.js +1 -1
  362. package/dist/components/mds-card-header.js +1 -1
  363. package/dist/components/mds-card-media.js +1 -1
  364. package/dist/components/mds-card.js +1 -1
  365. package/dist/components/mds-chip.js +1 -1
  366. package/dist/components/mds-details.js +1 -1
  367. package/dist/components/mds-dropdown.js +1 -1
  368. package/dist/components/mds-emoji.js +3 -3
  369. package/dist/components/mds-entity.js +1 -1
  370. package/dist/components/mds-file-preview.js +1 -1
  371. package/dist/components/mds-file.js +3 -3
  372. package/dist/components/mds-filter-item.js +1 -1
  373. package/dist/components/mds-filter.js +1 -1
  374. package/dist/components/mds-header-bar.js +1 -1
  375. package/dist/components/mds-header.js +1 -1
  376. package/dist/components/mds-help.js +1 -1
  377. package/dist/components/mds-horizontal-scroll.js +1 -1
  378. package/dist/components/mds-hr.js +1 -1
  379. package/dist/components/mds-icon.js +1 -1
  380. package/dist/components/mds-img.js +1 -1
  381. package/dist/components/mds-input-date-range-preselection.js +1 -1
  382. package/dist/components/mds-input-date-range.js +1 -1
  383. package/dist/components/mds-input-date.js +1 -1
  384. package/dist/components/mds-input-field.js +1 -1
  385. package/dist/components/mds-input-otp.js +1 -1
  386. package/dist/components/mds-input-range.js +1 -1
  387. package/dist/components/mds-input-select.js +1 -1
  388. package/dist/components/mds-input-switch.js +1 -1
  389. package/dist/components/mds-input-tip-item.js +1 -1
  390. package/dist/components/mds-input-tip.js +1 -1
  391. package/dist/components/mds-input-upload.js +1 -1
  392. package/dist/components/mds-input.js +1 -1
  393. package/dist/components/mds-keyboard-key.js +1 -1
  394. package/dist/components/mds-keyboard.js +1 -1
  395. package/dist/components/mds-kpi-item.js +1 -1
  396. package/dist/components/mds-kpi.js +1 -1
  397. package/dist/components/mds-label.js +1 -1
  398. package/dist/components/mds-list-item.js +1 -1
  399. package/dist/components/mds-list.js +1 -1
  400. package/dist/components/mds-mention.js +1 -1
  401. package/dist/components/mds-modal.js +1 -1
  402. package/dist/components/mds-note.js +1 -1
  403. package/dist/components/mds-notification.js +1 -1
  404. package/dist/components/mds-paginator-item.js +1 -1
  405. package/dist/components/mds-paginator.js +1 -1
  406. package/dist/components/mds-policy-ai.js +1 -1
  407. package/dist/components/mds-pref-animation.js +1 -1
  408. package/dist/components/mds-pref-consumption.js +1 -1
  409. package/dist/components/mds-pref-contrast.js +1 -1
  410. package/dist/components/mds-pref-language-item.js +1 -1
  411. package/dist/components/mds-pref-language.js +1 -1
  412. package/dist/components/mds-pref-mode.d.ts +11 -0
  413. package/dist/components/mds-pref-mode.js +1 -0
  414. package/dist/components/mds-pref-theme-item.d.ts +11 -0
  415. package/dist/components/mds-pref-theme-item.js +1 -0
  416. package/dist/components/mds-pref-theme.js +1 -1
  417. package/dist/components/mds-pref.js +1 -1
  418. package/dist/components/mds-price-table-features-cell.js +1 -1
  419. package/dist/components/mds-price-table-features-row.js +1 -1
  420. package/dist/components/mds-price-table-features.js +1 -1
  421. package/dist/components/mds-price-table-header.js +1 -1
  422. package/dist/components/mds-price-table-list-item.js +1 -1
  423. package/dist/components/mds-price-table-list.js +1 -1
  424. package/dist/components/mds-price-table.js +1 -1
  425. package/dist/components/mds-progress.js +1 -1
  426. package/dist/components/mds-push-notification-item.js +1 -1
  427. package/dist/components/mds-push-notification.js +1 -1
  428. package/dist/components/mds-quote.js +1 -1
  429. package/dist/components/mds-radial-menu-item.js +1 -1
  430. package/dist/components/mds-radial-menu.js +1 -1
  431. package/dist/components/mds-radial-progress.js +1 -1
  432. package/dist/components/mds-separator.js +1 -1
  433. package/dist/components/mds-spinner.js +1 -1
  434. package/dist/components/mds-status-bar.js +1 -1
  435. package/dist/components/mds-stepper-bar-item.js +1 -1
  436. package/dist/components/mds-stepper-bar.js +1 -1
  437. package/dist/components/mds-tab-bar-item.js +1 -1
  438. package/dist/components/mds-tab-bar.js +1 -1
  439. package/dist/components/mds-tab-item.js +1 -1
  440. package/dist/components/mds-tab.js +1 -1
  441. package/dist/components/mds-table-body.js +1 -1
  442. package/dist/components/mds-table-cell.js +1 -1
  443. package/dist/components/mds-table-footer.js +1 -1
  444. package/dist/components/mds-table-header-cell.js +1 -1
  445. package/dist/components/mds-table-header.js +1 -1
  446. package/dist/components/mds-table-row.js +1 -1
  447. package/dist/components/mds-table.js +1 -1
  448. package/dist/components/mds-text.js +1 -1
  449. package/dist/components/mds-toast.js +1 -1
  450. package/dist/components/mds-tooltip.js +1 -1
  451. package/dist/components/mds-tree-item.js +1 -1
  452. package/dist/components/mds-tree.js +1 -1
  453. package/dist/components/mds-url-view.js +1 -1
  454. package/dist/components/mds-usage.js +1 -1
  455. package/dist/components/mds-video-wall.js +1 -1
  456. package/dist/components/mds-zero.js +1 -1
  457. package/dist/components/p--8aaJX-p.js +1 -0
  458. package/dist/components/p-A9TZf0Ii.js +1 -0
  459. package/dist/components/p-B14Ci2fO.js +1 -0
  460. package/dist/components/p-B2A_hlV2.js +1 -0
  461. package/dist/components/p-B9DJLgwr.js +1 -0
  462. package/dist/components/p-BH3bWzRT.js +1 -0
  463. package/dist/components/p-BJNK4p33.js +1 -0
  464. package/dist/components/p-BNHXZ-JR.js +1 -0
  465. package/dist/components/p-BSxuG1vZ.js +1 -0
  466. package/dist/components/p-BTHR4xXu.js +1 -0
  467. package/dist/components/p-BhFTcUD0.js +3 -0
  468. package/dist/components/p-BouRLCYL.js +1 -0
  469. package/dist/components/p-Bss3F51Q.js +5 -0
  470. package/dist/components/p-Bt4xX5ww.js +1 -0
  471. package/dist/components/p-C03KYHGv.js +1 -0
  472. package/dist/components/p-C58NKMEE.js +1 -0
  473. package/dist/components/p-CACEYk42.js +1 -0
  474. package/dist/components/p-CBLAz3_J.js +1 -0
  475. package/dist/components/p-CHAGzQT-.js +1 -0
  476. package/dist/components/p-CVgKDZPF.js +1 -0
  477. package/dist/components/p-CVpjH8Un.js +1 -0
  478. package/dist/components/p-Caksrfcd.js +1 -0
  479. package/dist/components/p-CatD1iUY.js +1 -0
  480. package/dist/components/p-CbufYCNj.js +1 -0
  481. package/dist/components/p-Cehcn85x.js +1 -0
  482. package/dist/components/p-CsgCQiHG.js +1 -0
  483. package/dist/components/p-CvIFS8oA.js +1 -0
  484. package/dist/components/p-D3-GP4KF.js +1 -0
  485. package/dist/components/p-D8I1RblC.js +1 -0
  486. package/dist/components/p-DLE5TNTp.js +1 -0
  487. package/dist/components/p-DaI5QqNu.js +1 -0
  488. package/dist/components/p-Deh5Aia-.js +1 -0
  489. package/dist/components/p-Dj_oN194.js +1 -0
  490. package/dist/components/p-DmELzfvf.js +1 -0
  491. package/dist/components/p-DtxB7DYE.js +1 -0
  492. package/dist/components/p-KRu9I7dw.js +1 -0
  493. package/dist/components/p-cBZsPiMJ.js +1 -0
  494. package/dist/components/p-sUKtonkE.js +8 -0
  495. package/dist/components/p-sqRs6oj4.js +1 -0
  496. package/dist/components/p-wq6nWuWE.js +1 -0
  497. package/dist/documentation.json +750 -1137
  498. package/dist/esm/date-CACEYk42.js +22 -0
  499. package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
  500. package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
  501. package/dist/esm/form-A9TZf0Ii.js +19 -0
  502. package/dist/esm/index-DIiEV39g.js +5149 -0
  503. package/dist/esm/index.js +17 -0
  504. package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
  505. package/dist/esm/loader.js +3 -3
  506. package/dist/esm/locale-CbJbTW_c.js +814 -0
  507. package/dist/esm/magma-components.js +32 -5
  508. package/dist/esm/mds-accordion-item.entry.js +7 -28
  509. package/dist/esm/mds-accordion-timer-item.entry.js +8 -17
  510. package/dist/esm/mds-accordion-timer.entry.js +3 -3
  511. package/dist/esm/mds-accordion.entry.js +5 -22
  512. package/dist/esm/mds-author.entry.js +9 -4
  513. package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
  514. package/dist/esm/mds-avatar-stack.entry.js +5 -4
  515. package/dist/esm/mds-avatar.entry.js +8 -21
  516. package/dist/esm/mds-badge.entry.js +5 -26
  517. package/dist/esm/mds-banner_3.entry.js +35 -70
  518. package/dist/esm/mds-benchmark-bar.entry.js +2 -2
  519. package/dist/esm/mds-bibliography.entry.js +2 -2
  520. package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
  521. package/dist/esm/mds-breadcrumb.entry.js +7 -15
  522. package/dist/esm/mds-button-dropdown.entry.js +3 -3
  523. package/dist/esm/mds-button-group.entry.js +3 -3
  524. package/dist/esm/mds-button_3.entry.js +10 -32
  525. package/dist/esm/mds-calendar_2.entry.js +123 -102
  526. package/dist/esm/mds-card-content.entry.js +2 -2
  527. package/dist/esm/mds-card-footer.entry.js +2 -2
  528. package/dist/esm/mds-card-header.entry.js +9 -4
  529. package/dist/esm/mds-card-media.entry.js +2 -2
  530. package/dist/esm/mds-card.entry.js +4 -21
  531. package/dist/esm/mds-details.entry.js +8 -18
  532. package/dist/esm/mds-dropdown.entry.js +184 -58
  533. package/dist/esm/mds-emoji.entry.js +301 -181
  534. package/dist/esm/mds-entity.entry.js +11 -23
  535. package/dist/esm/mds-file-preview.entry.js +8 -36
  536. package/dist/esm/mds-file.entry.js +6 -34
  537. package/dist/esm/mds-filter-item.entry.js +6 -25
  538. package/dist/esm/mds-filter.entry.js +19 -32
  539. package/dist/esm/mds-header-bar.entry.js +11 -27
  540. package/dist/esm/mds-header.entry.js +8 -22
  541. package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
  542. package/dist/esm/mds-hr.entry.js +4 -17
  543. package/dist/esm/mds-img.entry.js +8 -16
  544. package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
  545. package/dist/esm/mds-input-date-range.entry.js +57 -43
  546. package/dist/esm/mds-input-date.entry.js +14 -44
  547. package/dist/esm/mds-input-field.entry.js +42 -6
  548. package/dist/esm/mds-input-otp.entry.js +37 -3
  549. package/dist/esm/mds-input-range.entry.js +9 -29
  550. package/dist/esm/mds-input-select.entry.js +11 -41
  551. package/dist/esm/mds-input-switch_2.entry.js +19 -55
  552. package/dist/esm/mds-input-tip_2.entry.js +8 -40
  553. package/dist/esm/mds-input-upload.entry.js +34 -36
  554. package/dist/esm/mds-input.entry.js +23 -52
  555. package/dist/esm/mds-keyboard-key.entry.js +5 -14
  556. package/dist/esm/mds-keyboard.entry.js +5 -25
  557. package/dist/esm/mds-kpi-item.entry.js +12 -25
  558. package/dist/esm/mds-kpi.entry.js +2 -2
  559. package/dist/esm/mds-label.entry.js +7 -29
  560. package/dist/esm/mds-list-item.entry.js +4 -13
  561. package/dist/esm/mds-list.entry.js +1 -1
  562. package/dist/esm/mds-mention.entry.js +38 -4
  563. package/dist/esm/mds-modal.entry.js +54 -47
  564. package/dist/esm/mds-note.entry.js +7 -35
  565. package/dist/esm/mds-notification.entry.js +12 -14
  566. package/dist/esm/mds-paginator-item.entry.js +5 -20
  567. package/dist/esm/mds-paginator.entry.js +27 -32
  568. package/dist/esm/mds-policy-ai.entry.js +5 -15
  569. package/dist/esm/mds-pref-animation.entry.js +7 -23
  570. package/dist/esm/mds-pref-consumption.entry.js +7 -23
  571. package/dist/esm/mds-pref-contrast.entry.js +10 -24
  572. package/dist/esm/mds-pref-language-item.entry.js +27 -15
  573. package/dist/esm/mds-pref-language.entry.js +38 -28
  574. package/dist/esm/mds-pref-mode.entry.js +271 -0
  575. package/dist/esm/mds-pref-theme-item.entry.js +41 -0
  576. package/dist/esm/mds-pref-theme.entry.js +147 -230
  577. package/dist/esm/mds-pref.entry.js +40 -17
  578. package/dist/esm/mds-price-table-features-cell.entry.js +4 -25
  579. package/dist/esm/mds-price-table-features-row.entry.js +4 -25
  580. package/dist/esm/mds-price-table-features.entry.js +4 -25
  581. package/dist/esm/mds-price-table-header.entry.js +2 -2
  582. package/dist/esm/mds-price-table-list-item.entry.js +3 -3
  583. package/dist/esm/mds-price-table-list.entry.js +4 -25
  584. package/dist/esm/mds-price-table.entry.js +2 -2
  585. package/dist/esm/mds-progress_2.entry.js +7 -33
  586. package/dist/esm/mds-push-notification-item.entry.js +16 -39
  587. package/dist/esm/mds-push-notification.entry.js +7 -20
  588. package/dist/esm/mds-quote.entry.js +4 -13
  589. package/dist/esm/mds-radial-menu-item.entry.js +3 -3
  590. package/dist/esm/mds-radial-menu.entry.js +7 -6
  591. package/dist/esm/mds-separator.entry.js +4 -21
  592. package/dist/esm/mds-status-bar.entry.js +4 -25
  593. package/dist/esm/mds-stepper-bar-item.entry.js +14 -25
  594. package/dist/esm/mds-stepper-bar.entry.js +21 -12
  595. package/dist/esm/mds-tab-bar-item.entry.js +6 -27
  596. package/dist/esm/mds-tab-bar.entry.js +5 -26
  597. package/dist/esm/mds-tab_2.entry.js +14 -47
  598. package/dist/esm/mds-table-body.entry.js +4 -13
  599. package/dist/esm/mds-table-footer.entry.js +4 -13
  600. package/dist/esm/mds-table-header-cell.entry.js +4 -13
  601. package/dist/esm/mds-table-header.entry.js +19 -31
  602. package/dist/esm/mds-table-row.entry.js +20 -29
  603. package/dist/esm/mds-table.entry.js +60 -50
  604. package/dist/esm/mds-text.entry.js +36 -21
  605. package/dist/esm/mds-toast.entry.js +10 -27
  606. package/dist/esm/mds-tooltip.entry.js +16 -27
  607. package/dist/esm/mds-tree-item.entry.js +12 -14
  608. package/dist/esm/mds-tree.entry.js +12 -6
  609. package/dist/esm/mds-url-view.entry.js +21 -41
  610. package/dist/esm/mds-usage.entry.js +5 -33
  611. package/dist/esm/mds-video-wall.entry.js +8 -4
  612. package/dist/esm/mds-zero.entry.js +4 -25
  613. package/dist/esm/preference-CKerJx2M.js +385 -0
  614. package/dist/esm/slot-C0o_l0td.js +61 -0
  615. package/dist/esm-es5/date-CACEYk42.js +6 -0
  616. package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
  617. package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
  618. package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
  619. package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
  620. package/dist/esm-es5/index-DIiEV39g.js +371 -0
  621. package/dist/esm-es5/index.js +79 -1
  622. package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
  623. package/dist/esm-es5/loader.js +1 -1
  624. package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
  625. package/dist/esm-es5/magma-components.js +4 -1
  626. package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
  627. package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
  628. package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
  629. package/dist/esm-es5/mds-accordion.entry.js +7 -1
  630. package/dist/esm-es5/mds-author.entry.js +1 -1
  631. package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
  632. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  633. package/dist/esm-es5/mds-avatar.entry.js +8 -1
  634. package/dist/esm-es5/mds-badge.entry.js +12 -1
  635. package/dist/esm-es5/mds-banner_3.entry.js +40 -1
  636. package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
  637. package/dist/esm-es5/mds-bibliography.entry.js +14 -1
  638. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  639. package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
  640. package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
  641. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  642. package/dist/esm-es5/mds-button_3.entry.js +42 -1
  643. package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
  644. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  645. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  646. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  647. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  648. package/dist/esm-es5/mds-card.entry.js +7 -1
  649. package/dist/esm-es5/mds-details.entry.js +4 -1
  650. package/dist/esm-es5/mds-dropdown.entry.js +102 -1
  651. package/dist/esm-es5/mds-emoji.entry.js +899 -3
  652. package/dist/esm-es5/mds-entity.entry.js +1 -1
  653. package/dist/esm-es5/mds-file-preview.entry.js +23 -2
  654. package/dist/esm-es5/mds-file.entry.js +2823 -3
  655. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  656. package/dist/esm-es5/mds-filter.entry.js +11 -1
  657. package/dist/esm-es5/mds-header-bar.entry.js +11 -1
  658. package/dist/esm-es5/mds-header.entry.js +30 -1
  659. package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
  660. package/dist/esm-es5/mds-hr.entry.js +1 -1
  661. package/dist/esm-es5/mds-img.entry.js +15 -1
  662. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  663. package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
  664. package/dist/esm-es5/mds-input-date.entry.js +50 -1
  665. package/dist/esm-es5/mds-input-field.entry.js +22 -1
  666. package/dist/esm-es5/mds-input-otp.entry.js +13 -1
  667. package/dist/esm-es5/mds-input-range.entry.js +24 -1
  668. package/dist/esm-es5/mds-input-select.entry.js +39 -1
  669. package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
  670. package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
  671. package/dist/esm-es5/mds-input-upload.entry.js +63 -1
  672. package/dist/esm-es5/mds-input.entry.js +134 -1
  673. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  674. package/dist/esm-es5/mds-keyboard.entry.js +11 -1
  675. package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
  676. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  677. package/dist/esm-es5/mds-label.entry.js +16 -1
  678. package/dist/esm-es5/mds-list-item.entry.js +7 -1
  679. package/dist/esm-es5/mds-list.entry.js +1 -1
  680. package/dist/esm-es5/mds-mention.entry.js +4 -1
  681. package/dist/esm-es5/mds-modal.entry.js +68 -1
  682. package/dist/esm-es5/mds-note.entry.js +7 -1
  683. package/dist/esm-es5/mds-notification.entry.js +13 -1
  684. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  685. package/dist/esm-es5/mds-paginator.entry.js +14 -1
  686. package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
  687. package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
  688. package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
  689. package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
  690. package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
  691. package/dist/esm-es5/mds-pref-language.entry.js +15 -1
  692. package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
  693. package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
  694. package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
  695. package/dist/esm-es5/mds-pref.entry.js +9 -1
  696. package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
  697. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  698. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  699. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  700. package/dist/esm-es5/mds-price-table-list-item.entry.js +7 -1
  701. package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
  702. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  703. package/dist/esm-es5/mds-progress_2.entry.js +32 -1
  704. package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
  705. package/dist/esm-es5/mds-push-notification.entry.js +49 -1
  706. package/dist/esm-es5/mds-quote.entry.js +7 -1
  707. package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
  708. package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
  709. package/dist/esm-es5/mds-separator.entry.js +1 -1
  710. package/dist/esm-es5/mds-status-bar.entry.js +10 -1
  711. package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
  712. package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
  713. package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
  714. package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
  715. package/dist/esm-es5/mds-tab_2.entry.js +26 -1
  716. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  717. package/dist/esm-es5/mds-table-footer.entry.js +1 -1
  718. package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
  719. package/dist/esm-es5/mds-table-header.entry.js +14 -1
  720. package/dist/esm-es5/mds-table-row.entry.js +8 -1
  721. package/dist/esm-es5/mds-table.entry.js +15 -1
  722. package/dist/esm-es5/mds-text.entry.js +27 -1
  723. package/dist/esm-es5/mds-toast.entry.js +15 -1
  724. package/dist/esm-es5/mds-tooltip.entry.js +37 -1
  725. package/dist/esm-es5/mds-tree-item.entry.js +16 -1
  726. package/dist/esm-es5/mds-tree.entry.js +20 -1
  727. package/dist/esm-es5/mds-url-view.entry.js +7 -1
  728. package/dist/esm-es5/mds-usage.entry.js +4 -1
  729. package/dist/esm-es5/mds-video-wall.entry.js +16 -1
  730. package/dist/esm-es5/mds-zero.entry.js +1 -1
  731. package/dist/esm-es5/preference-CKerJx2M.js +58 -0
  732. package/dist/esm-es5/slot-C0o_l0td.js +23 -0
  733. package/dist/hydrate/index.js +4268 -3165
  734. package/dist/hydrate/index.mjs +4268 -3165
  735. package/dist/magma-components/index.esm.js +1 -1
  736. package/dist/magma-components/magma-components.esm.js +1 -1
  737. package/dist/magma-components/magma-components.js +1 -1
  738. package/dist/magma-components/p-03be5c0c.entry.js +1 -0
  739. package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
  740. package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
  741. package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
  742. package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
  743. package/dist/magma-components/p-086fb3aa.entry.js +1 -0
  744. package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
  745. package/dist/magma-components/p-0a691082.entry.js +1 -0
  746. package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
  747. package/dist/magma-components/p-0af8d821.entry.js +1 -0
  748. package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
  749. package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
  750. package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
  751. package/dist/magma-components/p-10704ede.system.entry.js +4 -0
  752. package/dist/magma-components/p-15f63bf3.entry.js +1 -0
  753. package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
  754. package/dist/magma-components/p-1780b8ba.entry.js +1 -0
  755. package/dist/magma-components/p-181dfb04.entry.js +1 -0
  756. package/dist/magma-components/p-184720be.system.entry.js +1 -0
  757. package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
  758. package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
  759. package/dist/magma-components/p-1afc0452.entry.js +1 -0
  760. package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
  761. package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
  762. package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
  763. package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
  764. package/dist/magma-components/p-209063b6.system.entry.js +50 -0
  765. package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
  766. package/dist/magma-components/p-21891a24.entry.js +1 -0
  767. package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
  768. package/dist/magma-components/p-231505e8.entry.js +1 -0
  769. package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
  770. package/dist/magma-components/p-241dbf61.entry.js +1 -0
  771. package/dist/magma-components/p-25935d33.system.entry.js +1 -0
  772. package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
  773. package/dist/magma-components/p-29684655.system.entry.js +16 -0
  774. package/dist/magma-components/p-2b73fee6.entry.js +1 -0
  775. package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
  776. package/dist/magma-components/p-2de17848.entry.js +1 -0
  777. package/dist/magma-components/p-34482514.entry.js +1 -0
  778. package/dist/magma-components/p-34c0890e.entry.js +1 -0
  779. package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
  780. package/dist/magma-components/p-3b0c1202.entry.js +1 -0
  781. package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
  782. package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
  783. package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
  784. package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
  785. package/dist/magma-components/p-40563e33.entry.js +1 -0
  786. package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
  787. package/dist/magma-components/p-421a630e.entry.js +1 -0
  788. package/dist/magma-components/p-4297da23.system.entry.js +1 -0
  789. package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
  790. package/dist/magma-components/p-4543501c.entry.js +1 -0
  791. package/dist/magma-components/p-454c4774.entry.js +1 -0
  792. package/dist/magma-components/p-4616bc07.entry.js +1 -0
  793. package/dist/magma-components/p-46786d71.system.entry.js +14 -0
  794. package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
  795. package/dist/magma-components/p-481008e9.system.entry.js +13 -0
  796. package/dist/magma-components/p-48d37230.entry.js +1 -0
  797. package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
  798. package/dist/magma-components/p-4c8316a8.entry.js +1 -0
  799. package/dist/magma-components/p-4c95442e.entry.js +1 -0
  800. package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
  801. package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
  802. package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
  803. package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
  804. package/dist/magma-components/p-59de81ac.entry.js +1 -0
  805. package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
  806. package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
  807. package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
  808. package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
  809. package/dist/magma-components/p-636cc471.entry.js +1 -0
  810. package/dist/magma-components/p-66ce2dee.entry.js +1 -0
  811. package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
  812. package/dist/magma-components/p-6937f340.entry.js +1 -0
  813. package/dist/magma-components/p-69d1b815.entry.js +1 -0
  814. package/dist/magma-components/p-6b7e449f.entry.js +1 -0
  815. package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
  816. package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
  817. package/dist/magma-components/p-6ce60d59.entry.js +1 -0
  818. package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
  819. package/dist/magma-components/p-6dc27543.entry.js +1 -0
  820. package/dist/magma-components/p-6de37588.entry.js +1 -0
  821. package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
  822. package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
  823. package/dist/magma-components/p-7090184f.entry.js +1 -0
  824. package/dist/magma-components/p-716ad14c.entry.js +1 -0
  825. package/dist/magma-components/p-71804224.entry.js +1 -0
  826. package/dist/magma-components/p-735dc594.system.entry.js +1 -0
  827. package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
  828. package/dist/magma-components/p-74b0902a.entry.js +1 -0
  829. package/dist/magma-components/p-7530a2f2.entry.js +1 -0
  830. package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
  831. package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
  832. package/dist/magma-components/p-76ae22d6.entry.js +1 -0
  833. package/dist/magma-components/p-78248693.entry.js +1 -0
  834. package/dist/magma-components/p-78fef00a.entry.js +1 -0
  835. package/dist/magma-components/p-7c0d202c.entry.js +1 -0
  836. package/dist/magma-components/p-7d317ff0.entry.js +8 -0
  837. package/dist/magma-components/p-7f2e3b74.system.entry.js +2838 -0
  838. package/dist/magma-components/p-7fc29447.entry.js +1 -0
  839. package/dist/magma-components/p-8103d4d4.system.entry.js +30 -0
  840. package/dist/magma-components/p-81b72b6e.entry.js +1 -0
  841. package/dist/magma-components/p-859ab5a2.entry.js +18 -0
  842. package/dist/magma-components/p-896ae0ee.entry.js +1 -0
  843. package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
  844. package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
  845. package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
  846. package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
  847. package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
  848. package/dist/magma-components/p-92e1001f.entry.js +1 -0
  849. package/dist/magma-components/p-9378b373.system.entry.js +49 -0
  850. package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
  851. package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
  852. package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
  853. package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
  854. package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
  855. package/dist/magma-components/p-998721b9.system.entry.js +1 -0
  856. package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
  857. package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
  858. package/dist/magma-components/p-9be4a736.entry.js +1 -0
  859. package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
  860. package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
  861. package/dist/magma-components/p-9d9a947b.entry.js +18 -0
  862. package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
  863. package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
  864. package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
  865. package/dist/magma-components/p-A9TZf0Ii.js +1 -0
  866. package/dist/magma-components/p-BFnx_0hM.js +5 -0
  867. package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
  868. package/dist/magma-components/p-BbMKuVem.js +1 -0
  869. package/dist/magma-components/p-C0o_l0td.js +1 -0
  870. package/dist/magma-components/p-C2FHijr2.system.js +231 -0
  871. package/dist/magma-components/p-CACEYk42.js +1 -0
  872. package/dist/magma-components/p-CBam2PI8.system.js +79 -0
  873. package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
  874. package/dist/magma-components/p-CHAGzQT-.js +1 -0
  875. package/dist/magma-components/p-CI85vVs8.system.js +9 -0
  876. package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
  877. package/dist/magma-components/p-DB8Rm54c.js +1 -0
  878. package/dist/magma-components/p-DIiEV39g.js +3 -0
  879. package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
  880. package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
  881. package/dist/magma-components/p-KRu9I7dw.js +1 -0
  882. package/dist/magma-components/p-LerCJgfP.system.js +5 -0
  883. package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
  884. package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
  885. package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
  886. package/dist/magma-components/p-a3b0f586.entry.js +1 -0
  887. package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
  888. package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
  889. package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
  890. package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
  891. package/dist/magma-components/p-a93b2a39.entry.js +1 -0
  892. package/dist/magma-components/p-aa267e7b.entry.js +1 -0
  893. package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
  894. package/dist/magma-components/p-ac544ab1.entry.js +1 -0
  895. package/dist/magma-components/p-ace198e9.entry.js +1 -0
  896. package/dist/magma-components/p-ad3983b2.entry.js +1 -0
  897. package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
  898. package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
  899. package/dist/magma-components/p-b23a6c83.entry.js +1 -0
  900. package/dist/magma-components/p-b3a3578c.entry.js +1 -0
  901. package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
  902. package/dist/magma-components/p-b71e0d51.entry.js +1 -0
  903. package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
  904. package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
  905. package/dist/magma-components/p-ba035f90.entry.js +1 -0
  906. package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
  907. package/dist/magma-components/p-bd490a8e.entry.js +1 -0
  908. package/dist/magma-components/p-be198039.system.entry.js +4 -0
  909. package/dist/magma-components/p-be692266.system.entry.js +13 -0
  910. package/dist/magma-components/p-bf7168b4.entry.js +1 -0
  911. package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
  912. package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
  913. package/dist/magma-components/p-c4e58240.entry.js +1 -0
  914. package/dist/magma-components/p-c573de10.entry.js +1 -0
  915. package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
  916. package/dist/magma-components/p-c70d7159.entry.js +1 -0
  917. package/dist/magma-components/p-c7517884.system.entry.js +38 -0
  918. package/dist/magma-components/p-c9be79bd.entry.js +1 -0
  919. package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
  920. package/dist/magma-components/p-cb6a1908.entry.js +1 -0
  921. package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
  922. package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
  923. package/dist/magma-components/p-cd5866c8.entry.js +1 -0
  924. package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
  925. package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
  926. package/dist/magma-components/p-d3116844.entry.js +1 -0
  927. package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
  928. package/dist/magma-components/p-d3933a22.entry.js +1 -0
  929. package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
  930. package/dist/magma-components/p-d4a529ce.entry.js +1 -0
  931. package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
  932. package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
  933. package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
  934. package/dist/magma-components/p-d921d876.entry.js +1 -0
  935. package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
  936. package/dist/magma-components/p-ddbdce09.entry.js +1 -0
  937. package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
  938. package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
  939. package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
  940. package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
  941. package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
  942. package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
  943. package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
  944. package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
  945. package/dist/magma-components/p-e3e893c4.entry.js +1 -0
  946. package/dist/magma-components/p-e4868ade.entry.js +1 -0
  947. package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
  948. package/dist/magma-components/p-e5da7036.entry.js +1 -0
  949. package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
  950. package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
  951. package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
  952. package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
  953. package/dist/magma-components/p-ef8cb401.entry.js +1 -0
  954. package/dist/magma-components/p-efe8d359.entry.js +1 -0
  955. package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
  956. package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
  957. package/dist/magma-components/p-f1462410.system.entry.js +9 -0
  958. package/dist/magma-components/p-f23d4974.entry.js +1 -0
  959. package/dist/magma-components/p-f542246f.system.entry.js +1 -0
  960. package/dist/magma-components/p-f5c680dd.entry.js +1 -0
  961. package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
  962. package/dist/magma-components/p-f8369939.entry.js +1 -0
  963. package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
  964. package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
  965. package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
  966. package/dist/magma-components/p-ff133cbd.entry.js +1 -0
  967. package/dist/magma-components/p-fff44704.entry.js +1 -0
  968. package/dist/magma-components/p-opeIIa7t.system.js +7 -0
  969. package/dist/stats.json +5337 -7124
  970. package/dist/types/common/date.d.ts +5 -1
  971. package/dist/types/common/floating-controller.d.ts +56 -2
  972. package/dist/types/common/form.d.ts +10 -0
  973. package/dist/types/common/locale.d.ts +0 -5
  974. package/dist/types/common/preference.d.ts +48 -16
  975. package/dist/types/common/slot.d.ts +11 -1
  976. package/dist/types/common/yugop/random-text.d.ts +8 -0
  977. package/dist/types/components/mds-accordion/mds-accordion.d.ts +0 -8
  978. package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +0 -10
  979. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +0 -4
  980. package/dist/types/components/mds-author/mds-author.d.ts +2 -1
  981. package/dist/types/components/mds-avatar/mds-avatar.d.ts +0 -6
  982. package/dist/types/components/mds-badge/mds-badge.d.ts +0 -10
  983. package/dist/types/components/mds-banner/mds-banner.d.ts +2 -16
  984. package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -6
  985. package/dist/types/components/mds-button/mds-button.d.ts +0 -7
  986. package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
  987. package/dist/types/components/mds-calendar/mds-calendar.d.ts +27 -18
  988. package/dist/types/components/mds-card/mds-card.d.ts +0 -8
  989. package/dist/types/components/mds-card-header/mds-card-header.d.ts +2 -1
  990. package/dist/types/components/mds-chip/mds-chip.d.ts +0 -15
  991. package/dist/types/components/mds-details/mds-details.d.ts +0 -5
  992. package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +33 -12
  993. package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
  994. package/dist/types/components/mds-entity/mds-entity.d.ts +3 -10
  995. package/dist/types/components/mds-file/mds-file.d.ts +0 -15
  996. package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -15
  997. package/dist/types/components/mds-filter/mds-filter.d.ts +10 -10
  998. package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -9
  999. package/dist/types/components/mds-header/mds-header.d.ts +0 -7
  1000. package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -11
  1001. package/dist/types/components/mds-hr/mds-hr.d.ts +0 -6
  1002. package/dist/types/components/mds-img/mds-img.d.ts +1 -7
  1003. package/dist/types/components/mds-input/mds-input.d.ts +7 -15
  1004. package/dist/types/components/mds-input-date/mds-input-date.d.ts +9 -14
  1005. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +9 -12
  1006. package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
  1007. package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
  1008. package/dist/types/components/mds-input-range/mds-input-range.d.ts +0 -10
  1009. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -14
  1010. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -11
  1011. package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +0 -4
  1012. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -13
  1013. package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +2 -7
  1014. package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
  1015. package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +0 -11
  1016. package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
  1017. package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
  1018. package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -10
  1019. package/dist/types/components/mds-label/mds-label.d.ts +0 -12
  1020. package/dist/types/components/mds-list-item/mds-list-item.d.ts +0 -4
  1021. package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
  1022. package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
  1023. package/dist/types/components/mds-modal/mds-modal.d.ts +17 -16
  1024. package/dist/types/components/mds-note/mds-note.d.ts +0 -15
  1025. package/dist/types/components/mds-notification/mds-notification.d.ts +0 -3
  1026. package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -11
  1027. package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +0 -7
  1028. package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +0 -7
  1029. package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
  1030. package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +0 -10
  1031. package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +0 -10
  1032. package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +0 -10
  1033. package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
  1034. package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
  1035. package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
  1036. package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
  1037. package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -45
  1038. package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
  1039. package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
  1040. package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +0 -10
  1041. package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +0 -10
  1042. package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +0 -10
  1043. package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +0 -10
  1044. package/dist/types/components/mds-progress/mds-progress.d.ts +0 -10
  1045. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +0 -6
  1046. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -17
  1047. package/dist/types/components/mds-quote/mds-quote.d.ts +0 -4
  1048. package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
  1049. package/dist/types/components/mds-separator/mds-separator.d.ts +0 -8
  1050. package/dist/types/components/mds-spinner/mds-spinner.d.ts +0 -4
  1051. package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +0 -10
  1052. package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
  1053. package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -9
  1054. package/dist/types/components/mds-tab/mds-tab.d.ts +0 -9
  1055. package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +0 -10
  1056. package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +0 -10
  1057. package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +5 -8
  1058. package/dist/types/components/mds-table/mds-table.d.ts +10 -14
  1059. package/dist/types/components/mds-table-body/mds-table-body.d.ts +0 -4
  1060. package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +0 -4
  1061. package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +0 -4
  1062. package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -9
  1063. package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +0 -4
  1064. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -10
  1065. package/dist/types/components/mds-text/mds-text.d.ts +0 -4
  1066. package/dist/types/components/mds-toast/mds-toast.d.ts +2 -11
  1067. package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +0 -9
  1068. package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -5
  1069. package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -15
  1070. package/dist/types/components/mds-usage/mds-usage.d.ts +0 -16
  1071. package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
  1072. package/dist/types/components/mds-zero/mds-zero.d.ts +0 -10
  1073. package/dist/types/components.d.ts +243 -239
  1074. package/dist/types/event-detail/preference.d.ts +2 -2
  1075. package/dist/types/event-detail/theme.d.ts +5 -0
  1076. package/dist/types/stencil-public-runtime.d.ts +12 -0
  1077. package/dist/types/type/preference.d.ts +16 -3
  1078. package/loader/index.d.ts +1 -1
  1079. package/package.json +58 -64
  1080. package/dist/cjs/date-dnDGaLCn.js +0 -16
  1081. package/dist/cjs/floating-controller-CXEVR1wX.js +0 -203
  1082. package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
  1083. package/dist/cjs/index-CNuKb6Lv.js +0 -2896
  1084. package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
  1085. package/dist/cjs/locale-oGW3SvGJ.js +0 -837
  1086. package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
  1087. package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
  1088. package/dist/cjs/preference-BdpIXWLP.js +0 -81
  1089. package/dist/cjs/slot-CI0KpgtY.js +0 -52
  1090. package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -39
  1091. package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
  1092. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
  1093. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
  1094. package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
  1095. package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
  1096. package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
  1097. package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
  1098. package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
  1099. package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
  1100. package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
  1101. package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
  1102. package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
  1103. package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
  1104. package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
  1105. package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
  1106. package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
  1107. package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
  1108. package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
  1109. package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
  1110. package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
  1111. package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
  1112. package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
  1113. package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
  1114. package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
  1115. package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
  1116. package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
  1117. package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
  1118. package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
  1119. package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
  1120. package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
  1121. package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
  1122. package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
  1123. package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
  1124. package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
  1125. package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
  1126. package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
  1127. package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
  1128. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
  1129. package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
  1130. package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
  1131. package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
  1132. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
  1133. package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
  1134. package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
  1135. package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
  1136. package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
  1137. package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
  1138. package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
  1139. package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
  1140. package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
  1141. package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
  1142. package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
  1143. package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
  1144. package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
  1145. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -388
  1146. package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
  1147. package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
  1148. package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
  1149. package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
  1150. package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
  1151. package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
  1152. package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
  1153. package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
  1154. package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
  1155. package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
  1156. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
  1157. package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
  1158. package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
  1159. package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
  1160. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
  1161. package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
  1162. package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
  1163. package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
  1164. package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
  1165. package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
  1166. package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
  1167. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
  1168. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
  1169. package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
  1170. package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
  1171. package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
  1172. package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
  1173. package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
  1174. package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
  1175. package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
  1176. package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
  1177. package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
  1178. package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
  1179. package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
  1180. package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
  1181. package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
  1182. package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
  1183. package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
  1184. package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
  1185. package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
  1186. package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
  1187. package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
  1188. package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
  1189. package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
  1190. package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
  1191. package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
  1192. package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
  1193. package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
  1194. package/dist/collection/storybook/box-shadows.stories.js +0 -53
  1195. package/dist/collection/storybook/color-scale.stories.js +0 -465
  1196. package/dist/collection/storybook/components-preview.stories.js +0 -36
  1197. package/dist/collection/storybook/example-page.stories.js +0 -10
  1198. package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
  1199. package/dist/collection/storybook/input-form.stories.js +0 -40
  1200. package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
  1201. package/dist/collection/test/file.js +0 -53
  1202. package/dist/collection/test/mock.js +0 -19
  1203. package/dist/components/date.js +0 -1
  1204. package/dist/components/floating-controller.js +0 -1
  1205. package/dist/components/floating-ui.dom.js +0 -1
  1206. package/dist/components/icons-set.service.js +0 -1
  1207. package/dist/components/keyboard-manager.js +0 -1
  1208. package/dist/components/locale.it.js +0 -1
  1209. package/dist/components/locale.js +0 -5
  1210. package/dist/components/mds-avatar-stack-item2.js +0 -1
  1211. package/dist/components/mds-avatar2.js +0 -1
  1212. package/dist/components/mds-badge2.js +0 -1
  1213. package/dist/components/mds-banner2.js +0 -1
  1214. package/dist/components/mds-button2.js +0 -1
  1215. package/dist/components/mds-calendar-cell2.js +0 -1
  1216. package/dist/components/mds-calendar2.js +0 -1
  1217. package/dist/components/mds-chip2.js +0 -1
  1218. package/dist/components/mds-dropdown2.js +0 -1
  1219. package/dist/components/mds-file-preview2.js +0 -8
  1220. package/dist/components/mds-filter-item2.js +0 -1
  1221. package/dist/components/mds-help2.js +0 -1
  1222. package/dist/components/mds-icon2.js +0 -1
  1223. package/dist/components/mds-img2.js +0 -1
  1224. package/dist/components/mds-input-switch2.js +0 -1
  1225. package/dist/components/mds-input-tip-item2.js +0 -1
  1226. package/dist/components/mds-input-tip2.js +0 -1
  1227. package/dist/components/mds-input2.js +0 -1
  1228. package/dist/components/mds-modal2.js +0 -1
  1229. package/dist/components/mds-paginator-item2.js +0 -1
  1230. package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
  1231. package/dist/components/mds-pref-theme-variant-item.js +0 -1
  1232. package/dist/components/mds-pref-theme-variant.d.ts +0 -11
  1233. package/dist/components/mds-pref-theme-variant.js +0 -1
  1234. package/dist/components/mds-progress2.js +0 -1
  1235. package/dist/components/mds-radial-progress2.js +0 -1
  1236. package/dist/components/mds-separator2.js +0 -1
  1237. package/dist/components/mds-spinner2.js +0 -1
  1238. package/dist/components/mds-tab-item2.js +0 -1
  1239. package/dist/components/mds-tab2.js +0 -1
  1240. package/dist/components/mds-table-cell2.js +0 -1
  1241. package/dist/components/mds-table-header-cell2.js +0 -1
  1242. package/dist/components/mds-text2.js +0 -1
  1243. package/dist/components/mds-tooltip2.js +0 -1
  1244. package/dist/components/preference.js +0 -1
  1245. package/dist/components/slot.js +0 -1
  1246. package/dist/esm/date-C1oxPa_J.js +0 -14
  1247. package/dist/esm/floating-controller-D5eXU5Mk.js +0 -200
  1248. package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
  1249. package/dist/esm/index-CAd5312P.js +0 -2869
  1250. package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
  1251. package/dist/esm/locale-a4oAcjYG.js +0 -835
  1252. package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
  1253. package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
  1254. package/dist/esm/preference-fMwnXhio.js +0 -79
  1255. package/dist/esm/slot-ttrRC6OE.js +0 -48
  1256. package/dist/esm-es5/date-C1oxPa_J.js +0 -1
  1257. package/dist/esm-es5/floating-controller-D5eXU5Mk.js +0 -1
  1258. package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
  1259. package/dist/esm-es5/index-CAd5312P.js +0 -1
  1260. package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
  1261. package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
  1262. package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
  1263. package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
  1264. package/dist/esm-es5/preference-fMwnXhio.js +0 -1
  1265. package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
  1266. package/dist/magma-components/p-0105d7c7.entry.js +0 -8
  1267. package/dist/magma-components/p-022defe8.entry.js +0 -1
  1268. package/dist/magma-components/p-02d858d0.entry.js +0 -1
  1269. package/dist/magma-components/p-0607a2b3.entry.js +0 -1
  1270. package/dist/magma-components/p-0af4d0ef.entry.js +0 -1
  1271. package/dist/magma-components/p-0b91aae4.entry.js +0 -1
  1272. package/dist/magma-components/p-0bb29dbd.system.entry.js +0 -1
  1273. package/dist/magma-components/p-0c1a5df0.entry.js +0 -1
  1274. package/dist/magma-components/p-0e986d85.entry.js +0 -18
  1275. package/dist/magma-components/p-0ea42813.entry.js +0 -1
  1276. package/dist/magma-components/p-0fe5aeaf.system.entry.js +0 -1
  1277. package/dist/magma-components/p-10ddec99.system.entry.js +0 -1
  1278. package/dist/magma-components/p-11567740.entry.js +0 -1
  1279. package/dist/magma-components/p-116238cf.system.entry.js +0 -1
  1280. package/dist/magma-components/p-1239667c.system.entry.js +0 -1
  1281. package/dist/magma-components/p-1518fda3.system.entry.js +0 -1
  1282. package/dist/magma-components/p-16c94506.system.entry.js +0 -1
  1283. package/dist/magma-components/p-18823bfc.system.entry.js +0 -1
  1284. package/dist/magma-components/p-188e94ef.system.entry.js +0 -1
  1285. package/dist/magma-components/p-19446c9e.entry.js +0 -1
  1286. package/dist/magma-components/p-1a73c7b0.system.entry.js +0 -1
  1287. package/dist/magma-components/p-1ad03ee9.entry.js +0 -1
  1288. package/dist/magma-components/p-1c4038f7.system.entry.js +0 -1
  1289. package/dist/magma-components/p-2035564c.system.entry.js +0 -1
  1290. package/dist/magma-components/p-2128ce5a.system.entry.js +0 -1
  1291. package/dist/magma-components/p-21ee64ec.entry.js +0 -1
  1292. package/dist/magma-components/p-224d2f55.entry.js +0 -1
  1293. package/dist/magma-components/p-23791e85.system.entry.js +0 -1
  1294. package/dist/magma-components/p-248c1b2c.system.entry.js +0 -1
  1295. package/dist/magma-components/p-249b80a5.entry.js +0 -1
  1296. package/dist/magma-components/p-262daf4f.entry.js +0 -1
  1297. package/dist/magma-components/p-288ce251.entry.js +0 -1
  1298. package/dist/magma-components/p-2a804b82.entry.js +0 -1
  1299. package/dist/magma-components/p-2aff9851.system.entry.js +0 -1
  1300. package/dist/magma-components/p-2b0667f6.system.entry.js +0 -1
  1301. package/dist/magma-components/p-2bd03b3d.system.entry.js +0 -1
  1302. package/dist/magma-components/p-2bfa7ed9.system.entry.js +0 -1
  1303. package/dist/magma-components/p-2c6c80e8.entry.js +0 -1
  1304. package/dist/magma-components/p-2e88e014.system.entry.js +0 -1
  1305. package/dist/magma-components/p-2f5cc981.system.entry.js +0 -1
  1306. package/dist/magma-components/p-31403b12.entry.js +0 -1
  1307. package/dist/magma-components/p-31616d0b.entry.js +0 -1
  1308. package/dist/magma-components/p-33b03c17.system.entry.js +0 -1
  1309. package/dist/magma-components/p-353f30cc.system.entry.js +0 -1
  1310. package/dist/magma-components/p-35482f9d.system.entry.js +0 -1
  1311. package/dist/magma-components/p-35b5889a.system.entry.js +0 -1
  1312. package/dist/magma-components/p-36d9d329.system.entry.js +0 -1
  1313. package/dist/magma-components/p-36fd1ed7.system.entry.js +0 -1
  1314. package/dist/magma-components/p-377c94ee.system.entry.js +0 -1
  1315. package/dist/magma-components/p-385f395d.system.entry.js +0 -1
  1316. package/dist/magma-components/p-39c09a42.system.entry.js +0 -1
  1317. package/dist/magma-components/p-3_AKUQtJ.system.js +0 -1
  1318. package/dist/magma-components/p-3c306ed0.system.entry.js +0 -1
  1319. package/dist/magma-components/p-3de6fa18.entry.js +0 -1
  1320. package/dist/magma-components/p-41da539f.entry.js +0 -1
  1321. package/dist/magma-components/p-422bb9e2.system.entry.js +0 -1
  1322. package/dist/magma-components/p-447c2d1b.entry.js +0 -1
  1323. package/dist/magma-components/p-44e2965d.entry.js +0 -1
  1324. package/dist/magma-components/p-46266f27.entry.js +0 -1
  1325. package/dist/magma-components/p-4630472f.entry.js +0 -1
  1326. package/dist/magma-components/p-4671336c.entry.js +0 -1
  1327. package/dist/magma-components/p-4803d24f.system.entry.js +0 -1
  1328. package/dist/magma-components/p-4a929c1c.entry.js +0 -1
  1329. package/dist/magma-components/p-4bc7756a.system.entry.js +0 -1
  1330. package/dist/magma-components/p-4f8ae676.system.entry.js +0 -1
  1331. package/dist/magma-components/p-50c922ad.system.entry.js +0 -1
  1332. package/dist/magma-components/p-50cdb70c.system.entry.js +0 -1
  1333. package/dist/magma-components/p-52c10dbf.system.entry.js +0 -1
  1334. package/dist/magma-components/p-52e35c13.system.entry.js +0 -1
  1335. package/dist/magma-components/p-56a8f1d0.system.entry.js +0 -1
  1336. package/dist/magma-components/p-5724212b.entry.js +0 -1
  1337. package/dist/magma-components/p-5be1c273.entry.js +0 -1
  1338. package/dist/magma-components/p-5d05fa1a.entry.js +0 -1
  1339. package/dist/magma-components/p-5de4bf4f.entry.js +0 -1
  1340. package/dist/magma-components/p-5e626696.entry.js +0 -1
  1341. package/dist/magma-components/p-5f1532c0.system.entry.js +0 -1
  1342. package/dist/magma-components/p-5fe8c814.entry.js +0 -1
  1343. package/dist/magma-components/p-60e8812c.system.entry.js +0 -17
  1344. package/dist/magma-components/p-611fa0a4.entry.js +0 -1
  1345. package/dist/magma-components/p-61fefe1b.system.entry.js +0 -1
  1346. package/dist/magma-components/p-62c9216f.system.entry.js +0 -1
  1347. package/dist/magma-components/p-652b4e43.entry.js +0 -1
  1348. package/dist/magma-components/p-6a92f533.entry.js +0 -1
  1349. package/dist/magma-components/p-6b3569a0.entry.js +0 -1
  1350. package/dist/magma-components/p-6b9175f1.system.entry.js +0 -1
  1351. package/dist/magma-components/p-6ecfec17.entry.js +0 -1
  1352. package/dist/magma-components/p-6ed096d3.system.entry.js +0 -1
  1353. package/dist/magma-components/p-6ee86191.entry.js +0 -1
  1354. package/dist/magma-components/p-70719b58.entry.js +0 -1
  1355. package/dist/magma-components/p-70e1a436.entry.js +0 -1
  1356. package/dist/magma-components/p-725d9e09.entry.js +0 -1
  1357. package/dist/magma-components/p-726a76f0.entry.js +0 -1
  1358. package/dist/magma-components/p-72d91c6f.system.entry.js +0 -1
  1359. package/dist/magma-components/p-73926a10.entry.js +0 -1
  1360. package/dist/magma-components/p-7499262d.system.entry.js +0 -1
  1361. package/dist/magma-components/p-750214a3.entry.js +0 -1
  1362. package/dist/magma-components/p-7590a160.entry.js +0 -1
  1363. package/dist/magma-components/p-75fa7e6f.system.entry.js +0 -1
  1364. package/dist/magma-components/p-765447d4.system.entry.js +0 -1
  1365. package/dist/magma-components/p-76cb480d.entry.js +0 -1
  1366. package/dist/magma-components/p-79e12ac8.entry.js +0 -1
  1367. package/dist/magma-components/p-7b4b9b88.system.entry.js +0 -1
  1368. package/dist/magma-components/p-7c464f28.entry.js +0 -1
  1369. package/dist/magma-components/p-7d338f59.system.entry.js +0 -1
  1370. package/dist/magma-components/p-81e16f90.system.entry.js +0 -1
  1371. package/dist/magma-components/p-82c6cdb9.system.entry.js +0 -1
  1372. package/dist/magma-components/p-83b01f8e.system.entry.js +0 -1
  1373. package/dist/magma-components/p-8546f46f.system.entry.js +0 -1
  1374. package/dist/magma-components/p-85a2d99d.entry.js +0 -1
  1375. package/dist/magma-components/p-8620f425.entry.js +0 -1
  1376. package/dist/magma-components/p-89581b08.system.entry.js +0 -1
  1377. package/dist/magma-components/p-8964a9fe.entry.js +0 -1
  1378. package/dist/magma-components/p-899cd759.entry.js +0 -1
  1379. package/dist/magma-components/p-8RYXTPXs.js +0 -1
  1380. package/dist/magma-components/p-8b2408b2.entry.js +0 -1
  1381. package/dist/magma-components/p-8b9f6896.entry.js +0 -1
  1382. package/dist/magma-components/p-8bde0c42.entry.js +0 -1
  1383. package/dist/magma-components/p-8d5955ca.system.entry.js +0 -1
  1384. package/dist/magma-components/p-91a1d3d5.entry.js +0 -1
  1385. package/dist/magma-components/p-93538408.system.entry.js +0 -1
  1386. package/dist/magma-components/p-94ff105b.system.entry.js +0 -1
  1387. package/dist/magma-components/p-96f7ec63.entry.js +0 -1
  1388. package/dist/magma-components/p-97144490.entry.js +0 -1
  1389. package/dist/magma-components/p-999b0698.system.entry.js +0 -1
  1390. package/dist/magma-components/p-9e533765.system.entry.js +0 -18
  1391. package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
  1392. package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
  1393. package/dist/magma-components/p-BudfaWhu.js +0 -1
  1394. package/dist/magma-components/p-C1oxPa_J.js +0 -1
  1395. package/dist/magma-components/p-CAd5312P.js +0 -2
  1396. package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
  1397. package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
  1398. package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
  1399. package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
  1400. package/dist/magma-components/p-DssKRrAV.system.js +0 -1
  1401. package/dist/magma-components/p-MSUJeuJp.js +0 -1
  1402. package/dist/magma-components/p-a24d6d4a.system.entry.js +0 -1
  1403. package/dist/magma-components/p-a24dadaa.system.entry.js +0 -1
  1404. package/dist/magma-components/p-a2b84011.system.entry.js +0 -1
  1405. package/dist/magma-components/p-a2d761d6.entry.js +0 -1
  1406. package/dist/magma-components/p-a379adca.entry.js +0 -1
  1407. package/dist/magma-components/p-a46f7424.system.entry.js +0 -1
  1408. package/dist/magma-components/p-a47708f1.system.entry.js +0 -1
  1409. package/dist/magma-components/p-a4d11055.system.entry.js +0 -1
  1410. package/dist/magma-components/p-a4oAcjYG.js +0 -5
  1411. package/dist/magma-components/p-a5ef9d32.entry.js +0 -18
  1412. package/dist/magma-components/p-a6103622.entry.js +0 -1
  1413. package/dist/magma-components/p-a6b8b861.entry.js +0 -1
  1414. package/dist/magma-components/p-a6bdaa85.entry.js +0 -1
  1415. package/dist/magma-components/p-a716833c.system.entry.js +0 -1
  1416. package/dist/magma-components/p-a877906d.system.entry.js +0 -1
  1417. package/dist/magma-components/p-a8a2d90e.system.entry.js +0 -1
  1418. package/dist/magma-components/p-a92edada.entry.js +0 -1
  1419. package/dist/magma-components/p-aafec5fe.entry.js +0 -1
  1420. package/dist/magma-components/p-abce0c57.system.entry.js +0 -1
  1421. package/dist/magma-components/p-ac2ee475.entry.js +0 -1
  1422. package/dist/magma-components/p-ac5baffa.system.entry.js +0 -1
  1423. package/dist/magma-components/p-ad1ad433.system.entry.js +0 -1
  1424. package/dist/magma-components/p-ae433eb9.entry.js +0 -1
  1425. package/dist/magma-components/p-afaef9a1.entry.js +0 -1
  1426. package/dist/magma-components/p-b257222c.system.entry.js +0 -1
  1427. package/dist/magma-components/p-b472ed3c.entry.js +0 -1
  1428. package/dist/magma-components/p-b4fc19e9.entry.js +0 -1
  1429. package/dist/magma-components/p-b53ef2c1.entry.js +0 -1
  1430. package/dist/magma-components/p-b7dedc9f.entry.js +0 -1
  1431. package/dist/magma-components/p-b97edfb5.entry.js +0 -1
  1432. package/dist/magma-components/p-bc851caf.entry.js +0 -1
  1433. package/dist/magma-components/p-bc8ef479.system.entry.js +0 -9
  1434. package/dist/magma-components/p-bdc54840.system.entry.js +0 -1
  1435. package/dist/magma-components/p-bf29ca5a.entry.js +0 -1
  1436. package/dist/magma-components/p-bfc29d3b.system.entry.js +0 -1
  1437. package/dist/magma-components/p-bff1e84c.system.entry.js +0 -1
  1438. package/dist/magma-components/p-c01c49b6.entry.js +0 -1
  1439. package/dist/magma-components/p-c0296d86.system.entry.js +0 -1
  1440. package/dist/magma-components/p-c036f516.entry.js +0 -1
  1441. package/dist/magma-components/p-c3d8aa52.entry.js +0 -1
  1442. package/dist/magma-components/p-c4e7b103.system.entry.js +0 -1
  1443. package/dist/magma-components/p-c7a0a746.system.entry.js +0 -1
  1444. package/dist/magma-components/p-c92a772e.entry.js +0 -1
  1445. package/dist/magma-components/p-ca09ab1d.system.entry.js +0 -1
  1446. package/dist/magma-components/p-cc9212ce.system.entry.js +0 -1
  1447. package/dist/magma-components/p-cc95225c.system.entry.js +0 -1
  1448. package/dist/magma-components/p-cd49c455.entry.js +0 -1
  1449. package/dist/magma-components/p-d0542487.entry.js +0 -1
  1450. package/dist/magma-components/p-d0dfe659.entry.js +0 -1
  1451. package/dist/magma-components/p-d0eb94ea.system.entry.js +0 -1
  1452. package/dist/magma-components/p-d3e5c4eb.system.entry.js +0 -1
  1453. package/dist/magma-components/p-d4295773.entry.js +0 -1
  1454. package/dist/magma-components/p-d5700423.system.entry.js +0 -1
  1455. package/dist/magma-components/p-d838cb1c.system.entry.js +0 -1
  1456. package/dist/magma-components/p-d9605a5d.system.entry.js +0 -1
  1457. package/dist/magma-components/p-daa8f835.entry.js +0 -1
  1458. package/dist/magma-components/p-db4e2a0b.system.entry.js +0 -1
  1459. package/dist/magma-components/p-de0dac8f.entry.js +0 -1
  1460. package/dist/magma-components/p-de8204f9.entry.js +0 -1
  1461. package/dist/magma-components/p-e0b841e3.entry.js +0 -1
  1462. package/dist/magma-components/p-e35ab355.entry.js +0 -1
  1463. package/dist/magma-components/p-e44e2652.system.entry.js +0 -1
  1464. package/dist/magma-components/p-e48d23f4.system.entry.js +0 -1
  1465. package/dist/magma-components/p-e570aec5.system.entry.js +0 -1
  1466. package/dist/magma-components/p-e57698df.system.entry.js +0 -1
  1467. package/dist/magma-components/p-e669739e.entry.js +0 -1
  1468. package/dist/magma-components/p-e8fa7a07.entry.js +0 -1
  1469. package/dist/magma-components/p-ea2c8dd1.entry.js +0 -1
  1470. package/dist/magma-components/p-ea881c45.system.entry.js +0 -1
  1471. package/dist/magma-components/p-ebfb6963.system.entry.js +0 -1
  1472. package/dist/magma-components/p-eca8523b.system.entry.js +0 -1
  1473. package/dist/magma-components/p-ef142420.system.entry.js +0 -1
  1474. package/dist/magma-components/p-ef56af85.system.entry.js +0 -1
  1475. package/dist/magma-components/p-f0762290.entry.js +0 -1
  1476. package/dist/magma-components/p-f1832c1e.system.entry.js +0 -1
  1477. package/dist/magma-components/p-f4b1974a.entry.js +0 -1
  1478. package/dist/magma-components/p-f7cfc9a7.system.entry.js +0 -1
  1479. package/dist/magma-components/p-f83a9e08.entry.js +0 -1
  1480. package/dist/magma-components/p-f8ee5fec.system.entry.js +0 -1
  1481. package/dist/magma-components/p-f91dab2b.entry.js +0 -1
  1482. package/dist/magma-components/p-fMwnXhio.js +0 -1
  1483. package/dist/magma-components/p-fa61d03c.entry.js +0 -1
  1484. package/dist/magma-components/p-fbf423a7.system.entry.js +0 -1
  1485. package/dist/magma-components/p-fbfb589c.entry.js +0 -1
  1486. package/dist/magma-components/p-fc56d9ae.entry.js +0 -1
  1487. package/dist/magma-components/p-fc862fe2.system.entry.js +0 -1
  1488. package/dist/magma-components/p-fd574e21.entry.js +0 -1
  1489. package/dist/magma-components/p-fd649ac2.entry.js +0 -1
  1490. package/dist/magma-components/p-fed36619.entry.js +0 -1
  1491. package/dist/magma-components/p-oCzRm29V.system.js +0 -1
  1492. package/dist/magma-components/p-ttrRC6OE.js +0 -1
  1493. package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
  1494. package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -40
  1495. package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
  1496. package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
  1497. package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
  1498. package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
  1499. package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
  1500. package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
  1501. package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
  1502. package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
  1503. package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
  1504. package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
  1505. package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
  1506. package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
  1507. package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
  1508. package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
  1509. package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
  1510. package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
  1511. package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
  1512. package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
  1513. package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
  1514. package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
  1515. package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
  1516. package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
  1517. package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
  1518. package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
  1519. package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
  1520. package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
  1521. package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
  1522. package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
  1523. package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
  1524. package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
  1525. package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
  1526. package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
  1527. package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
  1528. package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
  1529. package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
  1530. package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
  1531. package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
  1532. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
  1533. package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
  1534. package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
  1535. package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
  1536. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
  1537. package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
  1538. package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
  1539. package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
  1540. package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
  1541. package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
  1542. package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
  1543. package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
  1544. package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
  1545. package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
  1546. package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
  1547. package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
  1548. package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
  1549. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -156
  1550. package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
  1551. package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
  1552. package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
  1553. package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
  1554. package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
  1555. package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
  1556. package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
  1557. package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
  1558. package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
  1559. package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
  1560. package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
  1561. package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
  1562. package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
  1563. package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
  1564. package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
  1565. package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
  1566. package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
  1567. package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
  1568. package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
  1569. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
  1570. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
  1571. package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
  1572. package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
  1573. package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
  1574. package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
  1575. package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
  1576. package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
  1577. package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
  1578. package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
  1579. package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
  1580. package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
  1581. package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
  1582. package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
  1583. package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
  1584. package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
  1585. package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
  1586. package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
  1587. package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
  1588. package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
  1589. package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
  1590. package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
  1591. package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
  1592. package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
  1593. package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
  1594. package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
  1595. package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
  1596. package/dist/types/event-detail/theme-variant.d.ts +0 -5
  1597. package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
  1598. package/dist/types/storybook/color-scale.stories.d.ts +0 -7
  1599. package/dist/types/storybook/components-preview.stories.d.ts +0 -33
  1600. package/dist/types/storybook/example-page.stories.d.ts +0 -7
  1601. package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
  1602. package/dist/types/storybook/input-form.stories.d.ts +0 -7
  1603. package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
  1604. package/dist/types/test/file.d.ts +0 -35
  1605. package/dist/types/test/mock.d.ts +0 -2
  1606. /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
  1607. /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
  1608. /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
  1609. /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
  1610. /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
  1611. /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
  1612. /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
  1613. /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
  1614. /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
  1615. /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
  1616. /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
  1617. /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
  1618. /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
  1619. /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
  1620. /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
  1621. /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
  1622. /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
  1623. /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
  1624. /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
  1625. /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
  1626. /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
  1627. /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
  1628. /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
@@ -1,2869 +0,0 @@
1
- const NAMESPACE = 'magma-components';
2
- const BUILD = /* magma-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
3
-
4
- /*
5
- Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
6
- */
7
-
8
- var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
9
- PrimitiveType2["Undefined"] = "undefined";
10
- PrimitiveType2["Null"] = "null";
11
- PrimitiveType2["String"] = "string";
12
- PrimitiveType2["Number"] = "number";
13
- PrimitiveType2["SpecialNumber"] = "number";
14
- PrimitiveType2["Boolean"] = "boolean";
15
- PrimitiveType2["BigInt"] = "bigint";
16
- return PrimitiveType2;
17
- })(PrimitiveType || {});
18
- var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
19
- NonPrimitiveType2["Array"] = "array";
20
- NonPrimitiveType2["Date"] = "date";
21
- NonPrimitiveType2["Map"] = "map";
22
- NonPrimitiveType2["Object"] = "object";
23
- NonPrimitiveType2["RegularExpression"] = "regexp";
24
- NonPrimitiveType2["Set"] = "set";
25
- NonPrimitiveType2["Channel"] = "channel";
26
- NonPrimitiveType2["Symbol"] = "symbol";
27
- return NonPrimitiveType2;
28
- })(NonPrimitiveType || {});
29
- var TYPE_CONSTANT = "type";
30
- var VALUE_CONSTANT = "value";
31
- var SERIALIZED_PREFIX = "serialized:";
32
-
33
- // src/utils/get-prop-descriptor.ts
34
- function getPropertyDescriptor(obj, memberName, getOnly) {
35
- const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
36
- while (obj && obj !== stopAt) {
37
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
38
- if (desc && (!getOnly || desc.get)) return desc;
39
- obj = Object.getPrototypeOf(obj);
40
- }
41
- return void 0;
42
- }
43
-
44
- // src/utils/es2022-rewire-class-members.ts
45
- var reWireGetterSetter = (instance, hostRef) => {
46
- var _a;
47
- const cmpMeta = hostRef.$cmpMeta$;
48
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
49
- members.map(([memberName, [memberFlags]]) => {
50
- if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
51
- const ogValue = instance[memberName];
52
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
53
- if (ogDescriptor) {
54
- Object.defineProperty(instance, memberName, {
55
- get() {
56
- return ogDescriptor.get.call(this);
57
- },
58
- set(newValue) {
59
- ogDescriptor.set.call(this, newValue);
60
- },
61
- configurable: true,
62
- enumerable: true
63
- });
64
- }
65
- if (hostRef.$instanceValues$.has(memberName)) {
66
- instance[memberName] = hostRef.$instanceValues$.get(memberName);
67
- } else if (ogValue !== void 0) {
68
- instance[memberName] = ogValue;
69
- }
70
- }
71
- });
72
- };
73
-
74
- // src/client/client-host-ref.ts
75
- var getHostRef = (ref) => {
76
- if (ref.__stencil__getHostRef) {
77
- return ref.__stencil__getHostRef();
78
- }
79
- return void 0;
80
- };
81
- var registerInstance = (lazyInstance, hostRef) => {
82
- if (!hostRef) return;
83
- lazyInstance.__stencil__getHostRef = () => hostRef;
84
- hostRef.$lazyInstance$ = lazyInstance;
85
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
86
- reWireGetterSetter(lazyInstance, hostRef);
87
- }
88
- };
89
- var registerHost = (hostElement, cmpMeta) => {
90
- const hostRef = {
91
- $flags$: 0,
92
- $hostElement$: hostElement,
93
- $cmpMeta$: cmpMeta,
94
- $instanceValues$: /* @__PURE__ */ new Map(),
95
- $serializerValues$: /* @__PURE__ */ new Map()
96
- };
97
- {
98
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
99
- }
100
- {
101
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
102
- hostElement["s-p"] = [];
103
- hostElement["s-rc"] = [];
104
- }
105
- {
106
- hostRef.$fetchedCbList$ = [];
107
- }
108
- const ref = hostRef;
109
- hostElement.__stencil__getHostRef = () => ref;
110
- return ref;
111
- };
112
- var isMemberInElement = (elm, memberName) => memberName in elm;
113
- var consoleError = (e, el) => (0, console.error)(e, el);
114
-
115
- // src/client/client-load-module.ts
116
- var cmpModules = /* @__PURE__ */ new Map();
117
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
118
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
119
- const bundleId = cmpMeta.$lazyBundleId$;
120
- if (!bundleId) {
121
- return void 0;
122
- }
123
- const module = cmpModules.get(bundleId) ;
124
- if (module) {
125
- return module[exportName];
126
- }
127
-
128
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
129
- const processMod = importedModule => {
130
- cmpModules.set(bundleId, importedModule);
131
- return importedModule[exportName];
132
- }
133
- switch(bundleId) {
134
-
135
- case 'mds-accordion':
136
- return import(
137
- /* webpackMode: "lazy" */
138
- './mds-accordion.entry.js').then(processMod, consoleError);
139
- case 'mds-accordion-item':
140
- return import(
141
- /* webpackMode: "lazy" */
142
- './mds-accordion-item.entry.js').then(processMod, consoleError);
143
- case 'mds-accordion-timer':
144
- return import(
145
- /* webpackMode: "lazy" */
146
- './mds-accordion-timer.entry.js').then(processMod, consoleError);
147
- case 'mds-accordion-timer-item':
148
- return import(
149
- /* webpackMode: "lazy" */
150
- './mds-accordion-timer-item.entry.js').then(processMod, consoleError);
151
- case 'mds-author':
152
- return import(
153
- /* webpackMode: "lazy" */
154
- './mds-author.entry.js').then(processMod, consoleError);
155
- case 'mds-avatar-stack':
156
- return import(
157
- /* webpackMode: "lazy" */
158
- './mds-avatar-stack.entry.js').then(processMod, consoleError);
159
- case 'mds-benchmark-bar':
160
- return import(
161
- /* webpackMode: "lazy" */
162
- './mds-benchmark-bar.entry.js').then(processMod, consoleError);
163
- case 'mds-bibliography':
164
- return import(
165
- /* webpackMode: "lazy" */
166
- './mds-bibliography.entry.js').then(processMod, consoleError);
167
- case 'mds-button-dropdown':
168
- return import(
169
- /* webpackMode: "lazy" */
170
- './mds-button-dropdown.entry.js').then(processMod, consoleError);
171
- case 'mds-button-group':
172
- return import(
173
- /* webpackMode: "lazy" */
174
- './mds-button-group.entry.js').then(processMod, consoleError);
175
- case 'mds-card':
176
- return import(
177
- /* webpackMode: "lazy" */
178
- './mds-card.entry.js').then(processMod, consoleError);
179
- case 'mds-card-content':
180
- return import(
181
- /* webpackMode: "lazy" */
182
- './mds-card-content.entry.js').then(processMod, consoleError);
183
- case 'mds-card-footer':
184
- return import(
185
- /* webpackMode: "lazy" */
186
- './mds-card-footer.entry.js').then(processMod, consoleError);
187
- case 'mds-card-header':
188
- return import(
189
- /* webpackMode: "lazy" */
190
- './mds-card-header.entry.js').then(processMod, consoleError);
191
- case 'mds-card-media':
192
- return import(
193
- /* webpackMode: "lazy" */
194
- './mds-card-media.entry.js').then(processMod, consoleError);
195
- case 'mds-details':
196
- return import(
197
- /* webpackMode: "lazy" */
198
- './mds-details.entry.js').then(processMod, consoleError);
199
- case 'mds-entity':
200
- return import(
201
- /* webpackMode: "lazy" */
202
- './mds-entity.entry.js').then(processMod, consoleError);
203
- case 'mds-filter':
204
- return import(
205
- /* webpackMode: "lazy" */
206
- './mds-filter.entry.js').then(processMod, consoleError);
207
- case 'mds-header':
208
- return import(
209
- /* webpackMode: "lazy" */
210
- './mds-header.entry.js').then(processMod, consoleError);
211
- case 'mds-horizontal-scroll':
212
- return import(
213
- /* webpackMode: "lazy" */
214
- './mds-horizontal-scroll.entry.js').then(processMod, consoleError);
215
- case 'mds-hr':
216
- return import(
217
- /* webpackMode: "lazy" */
218
- './mds-hr.entry.js').then(processMod, consoleError);
219
- case 'mds-input-date':
220
- return import(
221
- /* webpackMode: "lazy" */
222
- './mds-input-date.entry.js').then(processMod, consoleError);
223
- case 'mds-input-date-range-preselection':
224
- return import(
225
- /* webpackMode: "lazy" */
226
- './mds-input-date-range-preselection.entry.js').then(processMod, consoleError);
227
- case 'mds-input-field':
228
- return import(
229
- /* webpackMode: "lazy" */
230
- './mds-input-field.entry.js').then(processMod, consoleError);
231
- case 'mds-input-otp':
232
- return import(
233
- /* webpackMode: "lazy" */
234
- './mds-input-otp.entry.js').then(processMod, consoleError);
235
- case 'mds-input-range':
236
- return import(
237
- /* webpackMode: "lazy" */
238
- './mds-input-range.entry.js').then(processMod, consoleError);
239
- case 'mds-input-select':
240
- return import(
241
- /* webpackMode: "lazy" */
242
- './mds-input-select.entry.js').then(processMod, consoleError);
243
- case 'mds-kpi':
244
- return import(
245
- /* webpackMode: "lazy" */
246
- './mds-kpi.entry.js').then(processMod, consoleError);
247
- case 'mds-kpi-item':
248
- return import(
249
- /* webpackMode: "lazy" */
250
- './mds-kpi-item.entry.js').then(processMod, consoleError);
251
- case 'mds-list':
252
- return import(
253
- /* webpackMode: "lazy" */
254
- './mds-list.entry.js').then(processMod, consoleError);
255
- case 'mds-notification':
256
- return import(
257
- /* webpackMode: "lazy" */
258
- './mds-notification.entry.js').then(processMod, consoleError);
259
- case 'mds-paginator':
260
- return import(
261
- /* webpackMode: "lazy" */
262
- './mds-paginator.entry.js').then(processMod, consoleError);
263
- case 'mds-price-table':
264
- return import(
265
- /* webpackMode: "lazy" */
266
- './mds-price-table.entry.js').then(processMod, consoleError);
267
- case 'mds-price-table-features':
268
- return import(
269
- /* webpackMode: "lazy" */
270
- './mds-price-table-features.entry.js').then(processMod, consoleError);
271
- case 'mds-price-table-features-cell':
272
- return import(
273
- /* webpackMode: "lazy" */
274
- './mds-price-table-features-cell.entry.js').then(processMod, consoleError);
275
- case 'mds-price-table-features-row':
276
- return import(
277
- /* webpackMode: "lazy" */
278
- './mds-price-table-features-row.entry.js').then(processMod, consoleError);
279
- case 'mds-price-table-header':
280
- return import(
281
- /* webpackMode: "lazy" */
282
- './mds-price-table-header.entry.js').then(processMod, consoleError);
283
- case 'mds-price-table-list':
284
- return import(
285
- /* webpackMode: "lazy" */
286
- './mds-price-table-list.entry.js').then(processMod, consoleError);
287
- case 'mds-price-table-list-item':
288
- return import(
289
- /* webpackMode: "lazy" */
290
- './mds-price-table-list-item.entry.js').then(processMod, consoleError);
291
- case 'mds-push-notification':
292
- return import(
293
- /* webpackMode: "lazy" */
294
- './mds-push-notification.entry.js').then(processMod, consoleError);
295
- case 'mds-quote':
296
- return import(
297
- /* webpackMode: "lazy" */
298
- './mds-quote.entry.js').then(processMod, consoleError);
299
- case 'mds-radial-menu-item':
300
- return import(
301
- /* webpackMode: "lazy" */
302
- './mds-radial-menu-item.entry.js').then(processMod, consoleError);
303
- case 'mds-status-bar':
304
- return import(
305
- /* webpackMode: "lazy" */
306
- './mds-status-bar.entry.js').then(processMod, consoleError);
307
- case 'mds-stepper-bar':
308
- return import(
309
- /* webpackMode: "lazy" */
310
- './mds-stepper-bar.entry.js').then(processMod, consoleError);
311
- case 'mds-tab-bar':
312
- return import(
313
- /* webpackMode: "lazy" */
314
- './mds-tab-bar.entry.js').then(processMod, consoleError);
315
- case 'mds-tab-bar-item':
316
- return import(
317
- /* webpackMode: "lazy" */
318
- './mds-tab-bar-item.entry.js').then(processMod, consoleError);
319
- case 'mds-table-body':
320
- return import(
321
- /* webpackMode: "lazy" */
322
- './mds-table-body.entry.js').then(processMod, consoleError);
323
- case 'mds-table-footer':
324
- return import(
325
- /* webpackMode: "lazy" */
326
- './mds-table-footer.entry.js').then(processMod, consoleError);
327
- case 'mds-toast':
328
- return import(
329
- /* webpackMode: "lazy" */
330
- './mds-toast.entry.js').then(processMod, consoleError);
331
- case 'mds-tree':
332
- return import(
333
- /* webpackMode: "lazy" */
334
- './mds-tree.entry.js').then(processMod, consoleError);
335
- case 'mds-video-wall':
336
- return import(
337
- /* webpackMode: "lazy" */
338
- './mds-video-wall.entry.js').then(processMod, consoleError);
339
- case 'mds-zero':
340
- return import(
341
- /* webpackMode: "lazy" */
342
- './mds-zero.entry.js').then(processMod, consoleError);
343
- case 'mds-avatar-stack-item':
344
- return import(
345
- /* webpackMode: "lazy" */
346
- './mds-avatar-stack-item.entry.js').then(processMod, consoleError);
347
- case 'mds-filter-item':
348
- return import(
349
- /* webpackMode: "lazy" */
350
- './mds-filter-item.entry.js').then(processMod, consoleError);
351
- case 'mds-paginator-item':
352
- return import(
353
- /* webpackMode: "lazy" */
354
- './mds-paginator-item.entry.js').then(processMod, consoleError);
355
- case 'mds-separator':
356
- return import(
357
- /* webpackMode: "lazy" */
358
- './mds-separator.entry.js').then(processMod, consoleError);
359
- case 'mds-modal':
360
- return import(
361
- /* webpackMode: "lazy" */
362
- './mds-modal.entry.js').then(processMod, consoleError);
363
- case 'mds-badge':
364
- return import(
365
- /* webpackMode: "lazy" */
366
- './mds-badge.entry.js').then(processMod, consoleError);
367
- case 'mds-breadcrumb-item':
368
- return import(
369
- /* webpackMode: "lazy" */
370
- './mds-breadcrumb-item.entry.js').then(processMod, consoleError);
371
- case 'mds-header-bar':
372
- return import(
373
- /* webpackMode: "lazy" */
374
- './mds-header-bar.entry.js').then(processMod, consoleError);
375
- case 'mds-list-item':
376
- return import(
377
- /* webpackMode: "lazy" */
378
- './mds-list-item.entry.js').then(processMod, consoleError);
379
- case 'mds-mention':
380
- return import(
381
- /* webpackMode: "lazy" */
382
- './mds-mention.entry.js').then(processMod, consoleError);
383
- case 'mds-radial-menu':
384
- return import(
385
- /* webpackMode: "lazy" */
386
- './mds-radial-menu.entry.js').then(processMod, consoleError);
387
- case 'mds-table-header-cell':
388
- return import(
389
- /* webpackMode: "lazy" */
390
- './mds-table-header-cell.entry.js').then(processMod, consoleError);
391
- case 'mds-tooltip':
392
- return import(
393
- /* webpackMode: "lazy" */
394
- './mds-tooltip.entry.js').then(processMod, consoleError);
395
- case 'mds-dropdown':
396
- return import(
397
- /* webpackMode: "lazy" */
398
- './mds-dropdown.entry.js').then(processMod, consoleError);
399
- case 'mds-pref-theme-variant-item':
400
- return import(
401
- /* webpackMode: "lazy" */
402
- './mds-pref-theme-variant-item.entry.js').then(processMod, consoleError);
403
- case 'mds-progress_2':
404
- return import(
405
- /* webpackMode: "lazy" */
406
- './mds-progress_2.entry.js').then(processMod, consoleError);
407
- case 'mds-tab_2':
408
- return import(
409
- /* webpackMode: "lazy" */
410
- './mds-tab_2.entry.js').then(processMod, consoleError);
411
- case 'mds-label':
412
- return import(
413
- /* webpackMode: "lazy" */
414
- './mds-label.entry.js').then(processMod, consoleError);
415
- case 'mds-pref-language-item':
416
- return import(
417
- /* webpackMode: "lazy" */
418
- './mds-pref-language-item.entry.js').then(processMod, consoleError);
419
- case 'mds-breadcrumb':
420
- return import(
421
- /* webpackMode: "lazy" */
422
- './mds-breadcrumb.entry.js').then(processMod, consoleError);
423
- case 'mds-input-date-range':
424
- return import(
425
- /* webpackMode: "lazy" */
426
- './mds-input-date-range.entry.js').then(processMod, consoleError);
427
- case 'mds-note':
428
- return import(
429
- /* webpackMode: "lazy" */
430
- './mds-note.entry.js').then(processMod, consoleError);
431
- case 'mds-pref':
432
- return import(
433
- /* webpackMode: "lazy" */
434
- './mds-pref.entry.js').then(processMod, consoleError);
435
- case 'mds-pref-language':
436
- return import(
437
- /* webpackMode: "lazy" */
438
- './mds-pref-language.entry.js').then(processMod, consoleError);
439
- case 'mds-pref-theme-variant':
440
- return import(
441
- /* webpackMode: "lazy" */
442
- './mds-pref-theme-variant.entry.js').then(processMod, consoleError);
443
- case 'mds-stepper-bar-item':
444
- return import(
445
- /* webpackMode: "lazy" */
446
- './mds-stepper-bar-item.entry.js').then(processMod, consoleError);
447
- case 'mds-table':
448
- return import(
449
- /* webpackMode: "lazy" */
450
- './mds-table.entry.js').then(processMod, consoleError);
451
- case 'mds-table-header':
452
- return import(
453
- /* webpackMode: "lazy" */
454
- './mds-table-header.entry.js').then(processMod, consoleError);
455
- case 'mds-table-row':
456
- return import(
457
- /* webpackMode: "lazy" */
458
- './mds-table-row.entry.js').then(processMod, consoleError);
459
- case 'mds-usage':
460
- return import(
461
- /* webpackMode: "lazy" */
462
- './mds-usage.entry.js').then(processMod, consoleError);
463
- case 'mds-calendar_2':
464
- return import(
465
- /* webpackMode: "lazy" */
466
- './mds-calendar_2.entry.js').then(processMod, consoleError);
467
- case 'mds-img':
468
- return import(
469
- /* webpackMode: "lazy" */
470
- './mds-img.entry.js').then(processMod, consoleError);
471
- case 'mds-emoji':
472
- return import(
473
- /* webpackMode: "lazy" */
474
- './mds-emoji.entry.js').then(processMod, consoleError);
475
- case 'mds-keyboard':
476
- return import(
477
- /* webpackMode: "lazy" */
478
- './mds-keyboard.entry.js').then(processMod, consoleError);
479
- case 'mds-pref-animation':
480
- return import(
481
- /* webpackMode: "lazy" */
482
- './mds-pref-animation.entry.js').then(processMod, consoleError);
483
- case 'mds-url-view':
484
- return import(
485
- /* webpackMode: "lazy" */
486
- './mds-url-view.entry.js').then(processMod, consoleError);
487
- case 'mds-file-preview':
488
- return import(
489
- /* webpackMode: "lazy" */
490
- './mds-file-preview.entry.js').then(processMod, consoleError);
491
- case 'mds-avatar':
492
- return import(
493
- /* webpackMode: "lazy" */
494
- './mds-avatar.entry.js').then(processMod, consoleError);
495
- case 'mds-policy-ai':
496
- return import(
497
- /* webpackMode: "lazy" */
498
- './mds-policy-ai.entry.js').then(processMod, consoleError);
499
- case 'mds-input-tip_2':
500
- return import(
501
- /* webpackMode: "lazy" */
502
- './mds-input-tip_2.entry.js').then(processMod, consoleError);
503
- case 'mds-pref-consumption':
504
- return import(
505
- /* webpackMode: "lazy" */
506
- './mds-pref-consumption.entry.js').then(processMod, consoleError);
507
- case 'mds-pref-contrast':
508
- return import(
509
- /* webpackMode: "lazy" */
510
- './mds-pref-contrast.entry.js').then(processMod, consoleError);
511
- case 'mds-pref-theme':
512
- return import(
513
- /* webpackMode: "lazy" */
514
- './mds-pref-theme.entry.js').then(processMod, consoleError);
515
- case 'mds-tree-item':
516
- return import(
517
- /* webpackMode: "lazy" */
518
- './mds-tree-item.entry.js').then(processMod, consoleError);
519
- case 'mds-text':
520
- return import(
521
- /* webpackMode: "lazy" */
522
- './mds-text.entry.js').then(processMod, consoleError);
523
- case 'mds-button_3':
524
- return import(
525
- /* webpackMode: "lazy" */
526
- './mds-button_3.entry.js').then(processMod, consoleError);
527
- case 'mds-push-notification-item':
528
- return import(
529
- /* webpackMode: "lazy" */
530
- './mds-push-notification-item.entry.js').then(processMod, consoleError);
531
- case 'mds-input-upload':
532
- return import(
533
- /* webpackMode: "lazy" */
534
- './mds-input-upload.entry.js').then(processMod, consoleError);
535
- case 'mds-banner_3':
536
- return import(
537
- /* webpackMode: "lazy" */
538
- './mds-banner_3.entry.js').then(processMod, consoleError);
539
- case 'mds-input':
540
- return import(
541
- /* webpackMode: "lazy" */
542
- './mds-input.entry.js').then(processMod, consoleError);
543
- case 'mds-input-switch_2':
544
- return import(
545
- /* webpackMode: "lazy" */
546
- './mds-input-switch_2.entry.js').then(processMod, consoleError);
547
- case 'mds-keyboard-key':
548
- return import(
549
- /* webpackMode: "lazy" */
550
- './mds-keyboard-key.entry.js').then(processMod, consoleError);
551
- case 'mds-file':
552
- return import(
553
- /* webpackMode: "lazy" */
554
- './mds-file.entry.js').then(processMod, consoleError);
555
- }
556
- }
557
- return import(
558
- /* @vite-ignore */
559
- /* webpackInclude: /\.entry\.js$/ */
560
- /* webpackExclude: /\.system\.entry\.js$/ */
561
- /* webpackMode: "lazy" */
562
- `./${bundleId}.entry.js${""}`
563
- ).then(
564
- (importedModule) => {
565
- {
566
- cmpModules.set(bundleId, importedModule);
567
- }
568
- return importedModule[exportName];
569
- },
570
- (e) => {
571
- consoleError(e, hostRef.$hostElement$);
572
- }
573
- );
574
- };
575
-
576
- // src/client/client-style.ts
577
- var styles = /* @__PURE__ */ new Map();
578
-
579
- // src/runtime/runtime-constants.ts
580
- var CONTENT_REF_ID = "r";
581
- var ORG_LOCATION_ID = "o";
582
- var SLOT_NODE_ID = "s";
583
- var TEXT_NODE_ID = "t";
584
- var COMMENT_NODE_ID = "c";
585
- var HYDRATE_ID = "s-id";
586
- var HYDRATED_STYLE_ID = "sty-id";
587
- var HYDRATE_CHILD_ID = "c-id";
588
- var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
589
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
590
- var XLINK_NS = "http://www.w3.org/1999/xlink";
591
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
592
- "formAssociatedCallback",
593
- "formResetCallback",
594
- "formDisabledCallback",
595
- "formStateRestoreCallback"
596
- ];
597
- var win = typeof window !== "undefined" ? window : {};
598
- var plt = {
599
- $flags$: 0,
600
- $resourcesUrl$: "",
601
- jmp: (h2) => h2(),
602
- raf: (h2) => requestAnimationFrame(h2),
603
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
604
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
605
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
606
- };
607
- var supportsListenerOptions = /* @__PURE__ */ (() => {
608
- var _a;
609
- let supportsListenerOptions2 = false;
610
- try {
611
- (_a = win.document) == null ? void 0 : _a.addEventListener(
612
- "e",
613
- null,
614
- Object.defineProperty({}, "passive", {
615
- get() {
616
- supportsListenerOptions2 = true;
617
- }
618
- })
619
- );
620
- } catch (e) {
621
- }
622
- return supportsListenerOptions2;
623
- })();
624
- var promiseResolve = (v) => Promise.resolve(v);
625
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
626
- try {
627
- if (!win.document.adoptedStyleSheets) {
628
- return false;
629
- }
630
- new CSSStyleSheet();
631
- return typeof new CSSStyleSheet().replaceSync === "function";
632
- } catch (e) {
633
- }
634
- return false;
635
- })() ;
636
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
637
- var queuePending = false;
638
- var queueDomReads = [];
639
- var queueDomWrites = [];
640
- var queueTask = (queue, write) => (cb) => {
641
- queue.push(cb);
642
- if (!queuePending) {
643
- queuePending = true;
644
- if (write && plt.$flags$ & 4 /* queueSync */) {
645
- nextTick(flush);
646
- } else {
647
- plt.raf(flush);
648
- }
649
- }
650
- };
651
- var consume = (queue) => {
652
- for (let i2 = 0; i2 < queue.length; i2++) {
653
- try {
654
- queue[i2](performance.now());
655
- } catch (e) {
656
- consoleError(e);
657
- }
658
- }
659
- queue.length = 0;
660
- };
661
- var flush = () => {
662
- consume(queueDomReads);
663
- {
664
- consume(queueDomWrites);
665
- if (queuePending = queueDomReads.length > 0) {
666
- plt.raf(flush);
667
- }
668
- }
669
- };
670
- var nextTick = (cb) => promiseResolve().then(cb);
671
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
672
-
673
- // src/utils/style.ts
674
- function createStyleSheetIfNeededAndSupported(styles2) {
675
- return void 0;
676
- }
677
-
678
- // src/utils/shadow-root.ts
679
- var globalStyleSheet;
680
- function createShadowRoot(cmpMeta) {
681
- var _a;
682
- const opts = { mode: "open" };
683
- const shadowRoot = this.attachShadow(opts);
684
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
685
- if (globalStyleSheet) {
686
- if (supportsMutableAdoptedStyleSheets) {
687
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
688
- } else {
689
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
690
- }
691
- }
692
- }
693
- var getSlottedChildNodes = (childNodes) => {
694
- const result = [];
695
- for (let i2 = 0; i2 < childNodes.length; i2++) {
696
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
697
- if (slottedNode && slottedNode.isConnected) {
698
- result.push(slottedNode);
699
- }
700
- }
701
- return result;
702
- };
703
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
704
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
705
- return;
706
- }
707
- const slottedNodeLocation = document.createTextNode("");
708
- slottedNodeLocation["s-nr"] = newChild;
709
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
710
- const parent = slotNode["s-cr"].parentNode;
711
- const appendMethod = internalCall(parent, "appendChild");
712
- if (typeof position !== "undefined") {
713
- slottedNodeLocation["s-oo"] = position;
714
- const childNodes = internalCall(parent, "childNodes");
715
- const slotRelocateNodes = [slottedNodeLocation];
716
- childNodes.forEach((n) => {
717
- if (n["s-nr"]) slotRelocateNodes.push(n);
718
- });
719
- slotRelocateNodes.sort((a, b) => {
720
- if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
721
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
722
- return 0;
723
- });
724
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
725
- } else {
726
- appendMethod.call(parent, slottedNodeLocation);
727
- }
728
- newChild["s-ol"] = slottedNodeLocation;
729
- newChild["s-sh"] = slotNode["s-hn"];
730
- };
731
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
732
- function patchSlotNode(node) {
733
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
734
- const assignedFactory = (elementsOnly) => (function(opts) {
735
- const toReturn = [];
736
- const slotName = this["s-sn"];
737
- if (opts == null ? void 0 : opts.flatten) {
738
- console.error(`
739
- Flattening is not supported for Stencil non-shadow slots.
740
- You can use \`.childNodes\` to nested slot fallback content.
741
- If you have a particular use case, please open an issue on the Stencil repo.
742
- `);
743
- }
744
- const parent = this["s-cr"].parentElement;
745
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
746
- slottedNodes.forEach((n) => {
747
- if (slotName === getSlotName(n)) {
748
- toReturn.push(n);
749
- }
750
- });
751
- if (elementsOnly) {
752
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
753
- }
754
- return toReturn;
755
- }).bind(node);
756
- node.assignedElements = assignedFactory(true);
757
- node.assignedNodes = assignedFactory(false);
758
- }
759
- function internalCall(node, method) {
760
- if ("__" + method in node) {
761
- const toReturn = node["__" + method];
762
- if (typeof toReturn !== "function") return toReturn;
763
- return toReturn.bind(node);
764
- } else {
765
- if (typeof node[method] !== "function") return node[method];
766
- return node[method].bind(node);
767
- }
768
- }
769
- var createTime = (fnName, tagName = "") => {
770
- {
771
- return () => {
772
- return;
773
- };
774
- }
775
- };
776
- var uniqueTime = (key, measureText) => {
777
- {
778
- return () => {
779
- return;
780
- };
781
- }
782
- };
783
-
784
- // src/utils/query-nonce-meta-tag-content.ts
785
- function queryNonceMetaTagContent(doc) {
786
- var _a, _b, _c;
787
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
788
- }
789
-
790
- // src/runtime/styles.ts
791
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
792
- var registerStyle = (scopeId2, cssText, allowCS) => {
793
- let style = styles.get(scopeId2);
794
- if (supportsConstructableStylesheets && allowCS) {
795
- style = style || new CSSStyleSheet();
796
- if (typeof style === "string") {
797
- style = cssText;
798
- } else {
799
- style.replaceSync(cssText);
800
- }
801
- } else {
802
- style = cssText;
803
- }
804
- styles.set(scopeId2, style);
805
- };
806
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
807
- var _a, _b, _c;
808
- const scopeId2 = getScopeId(cmpMeta);
809
- const style = styles.get(scopeId2);
810
- if (!win.document) {
811
- return scopeId2;
812
- }
813
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
814
- if (style) {
815
- if (typeof style === "string") {
816
- styleContainerNode = styleContainerNode.head || styleContainerNode;
817
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
818
- let styleElm;
819
- if (!appliedStyles) {
820
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
821
- }
822
- const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
823
- if (existingStyleElm) {
824
- existingStyleElm.textContent = style;
825
- } else if (!appliedStyles.has(scopeId2)) {
826
- styleElm = win.document.createElement("style");
827
- styleElm.textContent = style;
828
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
829
- if (nonce != null) {
830
- styleElm.setAttribute("nonce", nonce);
831
- }
832
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
833
- if (styleContainerNode.nodeName === "HEAD") {
834
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
835
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
836
- styleContainerNode.insertBefore(
837
- styleElm,
838
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
839
- );
840
- } else if ("host" in styleContainerNode) {
841
- if (supportsConstructableStylesheets) {
842
- const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
843
- const stylesheet = new currentWindow.CSSStyleSheet();
844
- stylesheet.replaceSync(style);
845
- if (supportsMutableAdoptedStyleSheets) {
846
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
847
- } else {
848
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
849
- }
850
- } else {
851
- const existingStyleContainer = styleContainerNode.querySelector("style");
852
- if (existingStyleContainer && true) {
853
- existingStyleContainer.textContent = style + existingStyleContainer.textContent;
854
- } else {
855
- styleContainerNode.prepend(styleElm);
856
- }
857
- }
858
- } else {
859
- styleContainerNode.append(styleElm);
860
- }
861
- }
862
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
863
- styleContainerNode.insertBefore(styleElm, null);
864
- }
865
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
866
- styleElm.textContent += SLOT_FB_CSS;
867
- }
868
- if (appliedStyles) {
869
- appliedStyles.add(scopeId2);
870
- }
871
- }
872
- } else {
873
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
874
- if (!appliedStyles) {
875
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
876
- }
877
- if (!appliedStyles.has(scopeId2)) {
878
- const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
879
- let stylesheet;
880
- if (style.constructor === currentWindow.CSSStyleSheet) {
881
- stylesheet = style;
882
- } else {
883
- stylesheet = new currentWindow.CSSStyleSheet();
884
- for (let i2 = 0; i2 < style.cssRules.length; i2++) {
885
- stylesheet.insertRule(style.cssRules[i2].cssText, i2);
886
- }
887
- }
888
- if (supportsMutableAdoptedStyleSheets) {
889
- styleContainerNode.adoptedStyleSheets.push(stylesheet);
890
- } else {
891
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
892
- }
893
- appliedStyles.add(scopeId2);
894
- if ("host" in styleContainerNode) {
895
- const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
896
- if (ssrStyleElm) {
897
- writeTask(() => ssrStyleElm.remove());
898
- }
899
- }
900
- }
901
- }
902
- }
903
- return scopeId2;
904
- };
905
- var attachStyles = (hostRef) => {
906
- const cmpMeta = hostRef.$cmpMeta$;
907
- const elm = hostRef.$hostElement$;
908
- const flags = cmpMeta.$flags$;
909
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
910
- const scopeId2 = addStyle(
911
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
912
- cmpMeta);
913
- if (flags & 10 /* needsScopedEncapsulation */) {
914
- elm["s-sc"] = scopeId2;
915
- elm.classList.add(scopeId2 + "-h");
916
- }
917
- endAttachStyles();
918
- };
919
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
920
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
921
- var hydrateScopedToShadow = () => {
922
- if (!win.document) {
923
- return;
924
- }
925
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
926
- let i2 = 0;
927
- for (; i2 < styles2.length; i2++) {
928
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
929
- }
930
- };
931
- var isComplexType = (o) => {
932
- o = typeof o;
933
- return o === "object" || o === "function";
934
- };
935
-
936
- // src/runtime/vdom/h.ts
937
- var h = (nodeName, vnodeData, ...children) => {
938
- if (typeof nodeName === "string") {
939
- nodeName = transformTag(nodeName);
940
- }
941
- let child = null;
942
- let key = null;
943
- let simple = false;
944
- let lastSimple = false;
945
- const vNodeChildren = [];
946
- const walk = (c) => {
947
- for (let i2 = 0; i2 < c.length; i2++) {
948
- child = c[i2];
949
- if (Array.isArray(child)) {
950
- walk(child);
951
- } else if (child != null && typeof child !== "boolean") {
952
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
953
- child = String(child);
954
- }
955
- if (simple && lastSimple) {
956
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
957
- } else {
958
- vNodeChildren.push(simple ? newVNode(null, child) : child);
959
- }
960
- lastSimple = simple;
961
- }
962
- }
963
- };
964
- walk(children);
965
- if (vnodeData) {
966
- if (vnodeData.key) {
967
- key = vnodeData.key;
968
- }
969
- {
970
- const classData = vnodeData.className || vnodeData.class;
971
- if (classData) {
972
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
973
- }
974
- }
975
- }
976
- if (typeof nodeName === "function") {
977
- return nodeName(
978
- vnodeData === null ? {} : vnodeData,
979
- vNodeChildren,
980
- vdomFnUtils
981
- );
982
- }
983
- const vnode = newVNode(nodeName, null);
984
- vnode.$attrs$ = vnodeData;
985
- if (vNodeChildren.length > 0) {
986
- vnode.$children$ = vNodeChildren;
987
- }
988
- {
989
- vnode.$key$ = key;
990
- }
991
- return vnode;
992
- };
993
- var newVNode = (tag, text) => {
994
- const vnode = {
995
- $flags$: 0,
996
- $tag$: tag,
997
- // Normalize undefined to null to prevent rendering "undefined" as text
998
- $text$: text != null ? text : null,
999
- $elm$: null,
1000
- $children$: null
1001
- };
1002
- {
1003
- vnode.$attrs$ = null;
1004
- }
1005
- {
1006
- vnode.$key$ = null;
1007
- }
1008
- return vnode;
1009
- };
1010
- var Host = {};
1011
- var isHost = (node) => node && node.$tag$ === Host;
1012
- var vdomFnUtils = {
1013
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
1014
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
1015
- };
1016
- var convertToPublic = (node) => ({
1017
- vattrs: node.$attrs$,
1018
- vchildren: node.$children$,
1019
- vkey: node.$key$,
1020
- vname: node.$name$,
1021
- vtag: node.$tag$,
1022
- vtext: node.$text$
1023
- });
1024
- var convertToPrivate = (node) => {
1025
- if (typeof node.vtag === "function") {
1026
- const vnodeData = { ...node.vattrs };
1027
- if (node.vkey) {
1028
- vnodeData.key = node.vkey;
1029
- }
1030
- if (node.vname) {
1031
- vnodeData.name = node.vname;
1032
- }
1033
- return h(node.vtag, vnodeData, ...node.vchildren || []);
1034
- }
1035
- const vnode = newVNode(node.vtag, node.vtext);
1036
- vnode.$attrs$ = node.vattrs;
1037
- vnode.$children$ = node.vchildren;
1038
- vnode.$key$ = node.vkey;
1039
- vnode.$name$ = node.vname;
1040
- return vnode;
1041
- };
1042
-
1043
- // src/runtime/client-hydrate.ts
1044
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1045
- var _a, _b, _c, _d;
1046
- const endHydrate = createTime("hydrateClient", tagName);
1047
- const shadowRoot = hostElm.shadowRoot;
1048
- const childRenderNodes = [];
1049
- const slotNodes = [];
1050
- const slottedNodes = [];
1051
- const shadowRootNodes = shadowRoot ? [] : null;
1052
- const vnode = newVNode(tagName, null);
1053
- vnode.$elm$ = hostElm;
1054
- if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
1055
- initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1056
- }
1057
- hostElm[HYDRATE_ID] = hostId;
1058
- hostElm.removeAttribute(HYDRATE_ID);
1059
- hostRef.$vnode$ = clientHydrate(
1060
- vnode,
1061
- childRenderNodes,
1062
- slotNodes,
1063
- shadowRootNodes,
1064
- hostElm,
1065
- hostElm,
1066
- hostId,
1067
- slottedNodes
1068
- );
1069
- let crIndex = 0;
1070
- const crLength = childRenderNodes.length;
1071
- let childRenderNode;
1072
- for (crIndex; crIndex < crLength; crIndex++) {
1073
- childRenderNode = childRenderNodes[crIndex];
1074
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1075
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1076
- const node = childRenderNode.$elm$;
1077
- if (!shadowRoot) {
1078
- node["s-hn"] = transformTag(tagName).toUpperCase();
1079
- if (childRenderNode.$tag$ === "slot") {
1080
- node["s-cr"] = hostElm["s-cr"];
1081
- }
1082
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1083
- const cmpMeta = getHostRef(childRenderNode.$elm$);
1084
- if (cmpMeta) {
1085
- const scopeId3 = getScopeId(
1086
- cmpMeta.$cmpMeta$);
1087
- const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
1088
- if (styleSheet) {
1089
- shadowRootNodes.unshift(styleSheet.cloneNode(true));
1090
- }
1091
- }
1092
- }
1093
- if (childRenderNode.$tag$ === "slot") {
1094
- childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
1095
- if (childRenderNode.$children$) {
1096
- childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1097
- if (!childRenderNode.$elm$.childNodes.length) {
1098
- childRenderNode.$children$.forEach((c) => {
1099
- childRenderNode.$elm$.appendChild(c.$elm$);
1100
- });
1101
- }
1102
- } else {
1103
- childRenderNode.$flags$ |= 1 /* isSlotReference */;
1104
- }
1105
- }
1106
- if (orgLocationNode && orgLocationNode.isConnected) {
1107
- if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
1108
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1109
- }
1110
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1111
- if (!shadowRoot) {
1112
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1113
- }
1114
- }
1115
- if (orgLocationNode && !orgLocationNode["s-id"]) {
1116
- plt.$orgLocNodes$.delete(orgLocationId);
1117
- }
1118
- }
1119
- const hosts = [];
1120
- const snLen = slottedNodes.length;
1121
- let snIndex = 0;
1122
- let slotGroup;
1123
- let snGroupIdx;
1124
- let snGroupLen;
1125
- let slottedItem;
1126
- let currentPos = 0;
1127
- for (snIndex; snIndex < snLen; snIndex++) {
1128
- slotGroup = slottedNodes[snIndex];
1129
- if (!slotGroup || !slotGroup.length) continue;
1130
- snGroupLen = slotGroup.length;
1131
- snGroupIdx = 0;
1132
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1133
- slottedItem = slotGroup[snGroupIdx];
1134
- if (!hosts[slottedItem.hostId]) {
1135
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1136
- }
1137
- if (!hosts[slottedItem.hostId]) continue;
1138
- const hostEle = hosts[slottedItem.hostId];
1139
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1140
- hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
1141
- }
1142
- if (!hostEle.shadowRoot || !shadowRoot) {
1143
- if (!slottedItem.slot["s-cr"]) {
1144
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1145
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1146
- slottedItem.slot["s-cr"] = hostEle;
1147
- } else {
1148
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1149
- }
1150
- }
1151
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
1152
- if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
1153
- slottedItem.node.removeAttribute("slot");
1154
- }
1155
- }
1156
- currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
1157
- }
1158
- }
1159
- if (shadowRoot && !shadowRoot.childNodes.length) {
1160
- let rnIdex = 0;
1161
- const rnLen = shadowRootNodes.length;
1162
- if (rnLen) {
1163
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1164
- const node = shadowRootNodes[rnIdex];
1165
- if (node) {
1166
- shadowRoot.appendChild(node);
1167
- }
1168
- }
1169
- Array.from(hostElm.childNodes).forEach((node) => {
1170
- if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
1171
- if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
1172
- node.removeAttribute("hidden");
1173
- } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
1174
- node.parentNode.removeChild(node);
1175
- }
1176
- }
1177
- });
1178
- }
1179
- }
1180
- hostRef.$hostElement$ = hostElm;
1181
- endHydrate();
1182
- };
1183
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1184
- let childNodeType;
1185
- let childIdSplt;
1186
- let childVNode;
1187
- let i2;
1188
- if (node.nodeType === 1 /* ElementNode */) {
1189
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1190
- if (childNodeType) {
1191
- childIdSplt = childNodeType.split(".");
1192
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1193
- childVNode = createSimpleVNode({
1194
- $flags$: 0,
1195
- $hostId$: childIdSplt[0],
1196
- $nodeId$: childIdSplt[1],
1197
- $depth$: childIdSplt[2],
1198
- $index$: childIdSplt[3],
1199
- $tag$: node.tagName.toLowerCase(),
1200
- $elm$: node,
1201
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1202
- // won't try to reconcile them. Classes set on the node will be blown away.
1203
- $attrs$: { class: node.className || "" }
1204
- });
1205
- childRenderNodes.push(childVNode);
1206
- node.removeAttribute(HYDRATE_CHILD_ID);
1207
- if (!parentVNode.$children$) {
1208
- parentVNode.$children$ = [];
1209
- }
1210
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1211
- if (typeof slotName === "string") {
1212
- if (childVNode.$tag$ === "slot-fb") {
1213
- addSlot(
1214
- slotName,
1215
- childIdSplt[2],
1216
- childVNode,
1217
- node,
1218
- parentVNode,
1219
- childRenderNodes,
1220
- slotNodes,
1221
- shadowRootNodes,
1222
- slottedNodes
1223
- );
1224
- }
1225
- childVNode.$elm$["s-sn"] = slotName;
1226
- childVNode.$elm$.removeAttribute("s-sn");
1227
- }
1228
- if (childVNode.$index$ !== void 0) {
1229
- parentVNode.$children$[childVNode.$index$] = childVNode;
1230
- }
1231
- parentVNode = childVNode;
1232
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1233
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1234
- }
1235
- }
1236
- }
1237
- if (node.shadowRoot) {
1238
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1239
- clientHydrate(
1240
- parentVNode,
1241
- childRenderNodes,
1242
- slotNodes,
1243
- shadowRootNodes,
1244
- hostElm,
1245
- node.shadowRoot.childNodes[i2],
1246
- hostId,
1247
- slottedNodes
1248
- );
1249
- }
1250
- }
1251
- const nonShadowNodes = node.__childNodes || node.childNodes;
1252
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1253
- clientHydrate(
1254
- parentVNode,
1255
- childRenderNodes,
1256
- slotNodes,
1257
- shadowRootNodes,
1258
- hostElm,
1259
- nonShadowNodes[i2],
1260
- hostId,
1261
- slottedNodes
1262
- );
1263
- }
1264
- } else if (node.nodeType === 8 /* CommentNode */) {
1265
- childIdSplt = node.nodeValue.split(".");
1266
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1267
- childNodeType = childIdSplt[0];
1268
- childVNode = createSimpleVNode({
1269
- $hostId$: childIdSplt[1],
1270
- $nodeId$: childIdSplt[2],
1271
- $depth$: childIdSplt[3],
1272
- $index$: childIdSplt[4] || "0",
1273
- $elm$: node,
1274
- $attrs$: null,
1275
- $children$: null,
1276
- $key$: null,
1277
- $name$: null,
1278
- $tag$: null,
1279
- $text$: null
1280
- });
1281
- if (childNodeType === TEXT_NODE_ID) {
1282
- childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1283
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1284
- childVNode.$text$ = childVNode.$elm$.textContent;
1285
- childRenderNodes.push(childVNode);
1286
- node.remove();
1287
- if (hostId === childVNode.$hostId$) {
1288
- if (!parentVNode.$children$) {
1289
- parentVNode.$children$ = [];
1290
- }
1291
- parentVNode.$children$[childVNode.$index$] = childVNode;
1292
- }
1293
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1294
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1295
- }
1296
- }
1297
- } else if (childNodeType === COMMENT_NODE_ID) {
1298
- childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1299
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1300
- childRenderNodes.push(childVNode);
1301
- node.remove();
1302
- }
1303
- } else if (childVNode.$hostId$ === hostId) {
1304
- if (childNodeType === SLOT_NODE_ID) {
1305
- const slotName = node["s-sn"] = childIdSplt[5] || "";
1306
- addSlot(
1307
- slotName,
1308
- childIdSplt[2],
1309
- childVNode,
1310
- node,
1311
- parentVNode,
1312
- childRenderNodes,
1313
- slotNodes,
1314
- shadowRootNodes,
1315
- slottedNodes
1316
- );
1317
- } else if (childNodeType === CONTENT_REF_ID) {
1318
- if (shadowRootNodes) {
1319
- node.remove();
1320
- }
1321
- }
1322
- }
1323
- }
1324
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1325
- const vnode = newVNode(null, node.textContent);
1326
- vnode.$elm$ = node;
1327
- vnode.$index$ = "0";
1328
- parentVNode.$children$ = [vnode];
1329
- }
1330
- return parentVNode;
1331
- };
1332
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1333
- if (node.nodeType === 1 /* ElementNode */) {
1334
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1335
- if (componentId) {
1336
- orgLocNodes.set(componentId, node);
1337
- }
1338
- let i2 = 0;
1339
- if (node.shadowRoot) {
1340
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1341
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1342
- }
1343
- }
1344
- const nonShadowNodes = node.__childNodes || node.childNodes;
1345
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1346
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1347
- }
1348
- } else if (node.nodeType === 8 /* CommentNode */) {
1349
- const childIdSplt = node.nodeValue.split(".");
1350
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1351
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1352
- node.nodeValue = "";
1353
- node["s-en"] = childIdSplt[3];
1354
- }
1355
- }
1356
- };
1357
- var createSimpleVNode = (vnode) => {
1358
- const defaultVNode = {
1359
- $flags$: 0,
1360
- $hostId$: null,
1361
- $nodeId$: null,
1362
- $depth$: null,
1363
- $index$: "0",
1364
- $elm$: null,
1365
- $attrs$: null,
1366
- $children$: null,
1367
- $key$: null,
1368
- $name$: null,
1369
- $tag$: null,
1370
- $text$: null
1371
- };
1372
- return { ...defaultVNode, ...vnode };
1373
- };
1374
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1375
- node["s-sr"] = true;
1376
- childVNode.$name$ = slotName || null;
1377
- childVNode.$tag$ = "slot";
1378
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1379
- if (shadowRootNodes && win.document) {
1380
- const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1381
- if (childVNode.$name$) {
1382
- childVNode.$elm$.setAttribute("name", slotName);
1383
- }
1384
- if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1385
- internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1386
- } else {
1387
- internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1388
- }
1389
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1390
- node.remove();
1391
- if (childVNode.$depth$ === "0") {
1392
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1393
- }
1394
- } else {
1395
- const slot = childVNode.$elm$;
1396
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1397
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1398
- patchSlotNode(node);
1399
- if (shouldMove) {
1400
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1401
- }
1402
- }
1403
- childRenderNodes.push(childVNode);
1404
- slotNodes.push(childVNode);
1405
- if (!parentVNode.$children$) {
1406
- parentVNode.$children$ = [];
1407
- }
1408
- parentVNode.$children$[childVNode.$index$] = childVNode;
1409
- }
1410
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1411
- var _a, _b;
1412
- let slottedNode = slotNode.nextSibling;
1413
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1414
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1415
- do {
1416
- if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1417
- slottedNode["s-sn"] = slotName;
1418
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1419
- }
1420
- slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1421
- } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1422
- };
1423
- var findCorrespondingNode = (node, type) => {
1424
- let sibling = node;
1425
- do {
1426
- sibling = sibling.nextSibling;
1427
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1428
- return sibling;
1429
- };
1430
-
1431
- // src/runtime/normalize-watchers.ts
1432
- var normalizeWatchers = (raw) => {
1433
- if (!raw) return void 0;
1434
- const keys = Object.keys(raw);
1435
- if (keys.length === 0) return void 0;
1436
- let hasLegacy = false;
1437
- for (const propName of keys) {
1438
- if (hasLegacy) break;
1439
- for (const h2 of raw[propName]) {
1440
- if (typeof h2 === "string") {
1441
- hasLegacy = true;
1442
- break;
1443
- }
1444
- }
1445
- }
1446
- if (!hasLegacy) return raw;
1447
- const out = {};
1448
- for (const propName of keys) {
1449
- out[propName] = raw[propName].map(
1450
- (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
1451
- );
1452
- }
1453
- return out;
1454
- };
1455
-
1456
- // src/utils/remote-value.ts
1457
- var RemoteValue = class _RemoteValue {
1458
- /**
1459
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
1460
- *
1461
- * @param serialized The serialized LocalValue object
1462
- * @returns The original JavaScript value/object
1463
- */
1464
- static fromLocalValue(serialized) {
1465
- const type = serialized[TYPE_CONSTANT];
1466
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1467
- switch (type) {
1468
- case "string" /* String */:
1469
- return value;
1470
- case "boolean" /* Boolean */:
1471
- return value;
1472
- case "bigint" /* BigInt */:
1473
- return BigInt(value);
1474
- case "undefined" /* Undefined */:
1475
- return void 0;
1476
- case "null" /* Null */:
1477
- return null;
1478
- case "number" /* Number */:
1479
- if (value === "NaN") return NaN;
1480
- if (value === "-0") return -0;
1481
- if (value === "Infinity") return Infinity;
1482
- if (value === "-Infinity") return -Infinity;
1483
- return value;
1484
- case "array" /* Array */:
1485
- return value.map((item) => _RemoteValue.fromLocalValue(item));
1486
- case "date" /* Date */:
1487
- return new Date(value);
1488
- case "map" /* Map */:
1489
- const map = /* @__PURE__ */ new Map();
1490
- for (const [key, val] of value) {
1491
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1492
- const deserializedValue = _RemoteValue.fromLocalValue(val);
1493
- map.set(deserializedKey, deserializedValue);
1494
- }
1495
- return map;
1496
- case "object" /* Object */:
1497
- const obj = {};
1498
- for (const [key, val] of value) {
1499
- obj[key] = _RemoteValue.fromLocalValue(val);
1500
- }
1501
- return obj;
1502
- case "regexp" /* RegularExpression */:
1503
- const { pattern, flags } = value;
1504
- return new RegExp(pattern, flags);
1505
- case "set" /* Set */:
1506
- const set = /* @__PURE__ */ new Set();
1507
- for (const item of value) {
1508
- set.add(_RemoteValue.fromLocalValue(item));
1509
- }
1510
- return set;
1511
- case "symbol" /* Symbol */:
1512
- return Symbol(value);
1513
- default:
1514
- throw new Error(`Unsupported type: ${type}`);
1515
- }
1516
- }
1517
- /**
1518
- * Utility method to deserialize multiple LocalValues at once
1519
- *
1520
- * @param serializedValues Array of serialized LocalValue objects
1521
- * @returns Array of deserialized JavaScript values
1522
- */
1523
- static fromLocalValueArray(serializedValues) {
1524
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1525
- }
1526
- /**
1527
- * Verifies if the given object matches the structure of a serialized LocalValue
1528
- *
1529
- * @param obj Object to verify
1530
- * @returns boolean indicating if the object has LocalValue structure
1531
- */
1532
- static isLocalValueObject(obj) {
1533
- if (typeof obj !== "object" || obj === null) {
1534
- return false;
1535
- }
1536
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1537
- return false;
1538
- }
1539
- const type = obj[TYPE_CONSTANT];
1540
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1541
- if (!hasTypeProperty) {
1542
- return false;
1543
- }
1544
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1545
- return obj.hasOwnProperty(VALUE_CONSTANT);
1546
- }
1547
- return true;
1548
- }
1549
- };
1550
-
1551
- // src/utils/serialize.ts
1552
- function decodeBase64Unicode(base64) {
1553
- const binary = atob(base64);
1554
- const bytes = new Uint8Array(binary.length);
1555
- for (let i2 = 0; i2 < binary.length; i2++) {
1556
- bytes[i2] = binary.charCodeAt(i2);
1557
- }
1558
- return new TextDecoder().decode(bytes);
1559
- }
1560
- function deserializeProperty(value) {
1561
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1562
- return value;
1563
- }
1564
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
1565
- }
1566
-
1567
- // src/runtime/parse-property-value.ts
1568
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1569
- if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1570
- propValue = deserializeProperty(propValue);
1571
- return propValue;
1572
- }
1573
- if (propValue != null && !isComplexType(propValue)) {
1574
- if (propType & 4 /* Boolean */) {
1575
- if (isFormAssociated && typeof propValue === "string") {
1576
- return propValue === "" || !!propValue;
1577
- } else {
1578
- return propValue === "false" ? false : propValue === "" || !!propValue;
1579
- }
1580
- }
1581
- if (propType & 2 /* Number */) {
1582
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1583
- }
1584
- if (propType & 1 /* String */) {
1585
- return String(propValue);
1586
- }
1587
- return propValue;
1588
- }
1589
- return propValue;
1590
- };
1591
- var getElement = (ref) => {
1592
- var _a;
1593
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1594
- };
1595
-
1596
- // src/runtime/event-emitter.ts
1597
- var createEvent = (ref, name, flags) => {
1598
- const elm = getElement(ref);
1599
- return {
1600
- emit: (detail) => {
1601
- return emitEvent(elm, name, {
1602
- bubbles: true,
1603
- composed: true,
1604
- cancelable: true,
1605
- detail
1606
- });
1607
- }
1608
- };
1609
- };
1610
- var emitEvent = (elm, name, opts) => {
1611
- const ev = plt.ce(name, opts);
1612
- elm.dispatchEvent(ev);
1613
- return ev;
1614
- };
1615
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1616
- if (oldValue === newValue) {
1617
- return;
1618
- }
1619
- let isProp = isMemberInElement(elm, memberName);
1620
- let ln = memberName.toLowerCase();
1621
- if (memberName === "class") {
1622
- const classList = elm.classList;
1623
- const oldClasses = parseClassList(oldValue);
1624
- let newClasses = parseClassList(newValue);
1625
- if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1626
- const scopeId2 = elm["s-sc"] || elm["s-si"];
1627
- newClasses.push(scopeId2);
1628
- oldClasses.forEach((c) => {
1629
- if (c.startsWith(scopeId2)) newClasses.push(c);
1630
- });
1631
- newClasses = [...new Set(newClasses)].filter((c) => c);
1632
- classList.add(...newClasses);
1633
- } else {
1634
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1635
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1636
- }
1637
- } else if (memberName === "style") {
1638
- {
1639
- for (const prop in oldValue) {
1640
- if (!newValue || newValue[prop] == null) {
1641
- if (prop.includes("-")) {
1642
- elm.style.removeProperty(prop);
1643
- } else {
1644
- elm.style[prop] = "";
1645
- }
1646
- }
1647
- }
1648
- }
1649
- for (const prop in newValue) {
1650
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
1651
- if (prop.includes("-")) {
1652
- elm.style.setProperty(prop, newValue[prop]);
1653
- } else {
1654
- elm.style[prop] = newValue[prop];
1655
- }
1656
- }
1657
- }
1658
- } else if (memberName === "key") ; else if (memberName === "ref") {
1659
- if (newValue) {
1660
- queueRefAttachment(newValue, elm);
1661
- }
1662
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1663
- if (memberName[2] === "-") {
1664
- memberName = memberName.slice(3);
1665
- } else if (isMemberInElement(win, ln)) {
1666
- memberName = ln.slice(2);
1667
- } else {
1668
- memberName = ln[2] + memberName.slice(3);
1669
- }
1670
- if (oldValue || newValue) {
1671
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1672
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1673
- if (oldValue) {
1674
- plt.rel(elm, memberName, oldValue, capture);
1675
- }
1676
- if (newValue) {
1677
- plt.ael(elm, memberName, newValue, capture);
1678
- }
1679
- }
1680
- } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1681
- const propName = memberName.slice(5);
1682
- let attrName;
1683
- {
1684
- const hostRef = getHostRef(elm);
1685
- if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1686
- const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1687
- if (memberMeta && memberMeta[1]) {
1688
- attrName = memberMeta[1];
1689
- }
1690
- }
1691
- }
1692
- if (!attrName) {
1693
- attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1694
- }
1695
- if (newValue == null || newValue === false) {
1696
- if (newValue !== false || elm.getAttribute(attrName) === "") {
1697
- elm.removeAttribute(attrName);
1698
- }
1699
- } else {
1700
- elm.setAttribute(attrName, newValue === true ? "" : newValue);
1701
- }
1702
- return;
1703
- } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1704
- const propName = memberName.slice(5);
1705
- try {
1706
- elm[propName] = newValue;
1707
- } catch (e) {
1708
- }
1709
- return;
1710
- } else {
1711
- const isComplex = isComplexType(newValue);
1712
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
1713
- try {
1714
- if (!elm.tagName.includes("-")) {
1715
- const n = newValue == null ? "" : newValue;
1716
- if (memberName === "list") {
1717
- isProp = false;
1718
- } else if (oldValue == null || elm[memberName] !== n) {
1719
- if (typeof elm.__lookupSetter__(memberName) === "function") {
1720
- elm[memberName] = n;
1721
- } else {
1722
- elm.setAttribute(memberName, n);
1723
- }
1724
- }
1725
- } else if (elm[memberName] !== newValue) {
1726
- elm[memberName] = newValue;
1727
- }
1728
- } catch (e) {
1729
- }
1730
- }
1731
- let xlink = false;
1732
- {
1733
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1734
- memberName = ln;
1735
- xlink = true;
1736
- }
1737
- }
1738
- if (newValue == null || newValue === false) {
1739
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1740
- if (xlink) {
1741
- elm.removeAttributeNS(XLINK_NS, memberName);
1742
- } else {
1743
- elm.removeAttribute(memberName);
1744
- }
1745
- }
1746
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1747
- newValue = newValue === true ? "" : newValue;
1748
- if (xlink) {
1749
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
1750
- } else {
1751
- elm.setAttribute(memberName, newValue);
1752
- }
1753
- }
1754
- }
1755
- };
1756
- var parseClassListRegex = /\s/;
1757
- var parseClassList = (value) => {
1758
- if (typeof value === "object" && value && "baseVal" in value) {
1759
- value = value.baseVal;
1760
- }
1761
- if (!value || typeof value !== "string") {
1762
- return [];
1763
- }
1764
- return value.split(parseClassListRegex);
1765
- };
1766
- var CAPTURE_EVENT_SUFFIX = "Capture";
1767
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1768
-
1769
- // src/runtime/vdom/update-element.ts
1770
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1771
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1772
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1773
- const newVnodeAttrs = newVnode.$attrs$ || {};
1774
- {
1775
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1776
- if (!(memberName in newVnodeAttrs)) {
1777
- setAccessor(
1778
- elm,
1779
- memberName,
1780
- oldVnodeAttrs[memberName],
1781
- void 0,
1782
- isSvgMode2,
1783
- newVnode.$flags$,
1784
- isInitialRender
1785
- );
1786
- }
1787
- }
1788
- }
1789
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1790
- setAccessor(
1791
- elm,
1792
- memberName,
1793
- oldVnodeAttrs[memberName],
1794
- newVnodeAttrs[memberName],
1795
- isSvgMode2,
1796
- newVnode.$flags$,
1797
- isInitialRender
1798
- );
1799
- }
1800
- };
1801
- function sortedAttrNames(attrNames) {
1802
- return attrNames.includes("ref") ? (
1803
- // we need to sort these to ensure that `'ref'` is the last attr
1804
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1805
- ) : (
1806
- // no need to sort, return the original array
1807
- attrNames
1808
- );
1809
- }
1810
- var hostTagName;
1811
- var useNativeShadowDom = false;
1812
- var isSvgMode = false;
1813
- var refCallbacksToRemove = [];
1814
- var refCallbacksToAttach = [];
1815
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1816
- const newVNode2 = newParentVNode.$children$[childIndex];
1817
- let i2 = 0;
1818
- let elm;
1819
- let childNode;
1820
- if (newVNode2.$text$ != null) {
1821
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1822
- } else {
1823
- if (!win.document) {
1824
- throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1825
- }
1826
- elm = newVNode2.$elm$ = win.document.createElement(
1827
- newVNode2.$tag$
1828
- );
1829
- {
1830
- updateElement(null, newVNode2, isSvgMode);
1831
- }
1832
- if (newVNode2.$children$) {
1833
- const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1834
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1835
- childNode = createElm(oldParentVNode, newVNode2, i2);
1836
- if (childNode) {
1837
- appendTarget.appendChild(childNode);
1838
- }
1839
- }
1840
- }
1841
- }
1842
- elm["s-hn"] = hostTagName;
1843
- return elm;
1844
- };
1845
- var relocateToHostRoot = (parentElm) => {
1846
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1847
- const host = parentElm.closest(hostTagName.toLowerCase());
1848
- if (host != null) {
1849
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1850
- (ref) => ref["s-cr"]
1851
- );
1852
- const childNodeArray = Array.from(
1853
- parentElm.__childNodes || parentElm.childNodes
1854
- );
1855
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1856
- if (childNode["s-sh"] != null) {
1857
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1858
- childNode["s-sh"] = void 0;
1859
- }
1860
- }
1861
- }
1862
- plt.$flags$ &= -2 /* isTmpDisconnected */;
1863
- };
1864
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1865
- let containerElm = parentElm;
1866
- let childNode;
1867
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1868
- containerElm = containerElm.shadowRoot;
1869
- }
1870
- if (parentVNode.$tag$ === "template") {
1871
- containerElm = containerElm.content;
1872
- }
1873
- for (; startIdx <= endIdx; ++startIdx) {
1874
- if (vnodes[startIdx]) {
1875
- childNode = createElm(null, parentVNode, startIdx);
1876
- if (childNode) {
1877
- vnodes[startIdx].$elm$ = childNode;
1878
- insertBefore(containerElm, childNode, before);
1879
- }
1880
- }
1881
- }
1882
- };
1883
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1884
- for (let index = startIdx; index <= endIdx; ++index) {
1885
- const vnode = vnodes[index];
1886
- if (vnode) {
1887
- const elm = vnode.$elm$;
1888
- nullifyVNodeRefs(vnode);
1889
- if (elm) {
1890
- elm.remove();
1891
- }
1892
- }
1893
- }
1894
- };
1895
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1896
- let oldStartIdx = 0;
1897
- let newStartIdx = 0;
1898
- let idxInOld = 0;
1899
- let i2 = 0;
1900
- let oldEndIdx = oldCh.length - 1;
1901
- let oldStartVnode = oldCh[0];
1902
- let oldEndVnode = oldCh[oldEndIdx];
1903
- let newEndIdx = newCh.length - 1;
1904
- let newStartVnode = newCh[0];
1905
- let newEndVnode = newCh[newEndIdx];
1906
- let node;
1907
- let elmToMove;
1908
- const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1909
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1910
- if (oldStartVnode == null) {
1911
- oldStartVnode = oldCh[++oldStartIdx];
1912
- } else if (oldEndVnode == null) {
1913
- oldEndVnode = oldCh[--oldEndIdx];
1914
- } else if (newStartVnode == null) {
1915
- newStartVnode = newCh[++newStartIdx];
1916
- } else if (newEndVnode == null) {
1917
- newEndVnode = newCh[--newEndIdx];
1918
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1919
- patch(oldStartVnode, newStartVnode, isInitialRender);
1920
- oldStartVnode = oldCh[++oldStartIdx];
1921
- newStartVnode = newCh[++newStartIdx];
1922
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1923
- patch(oldEndVnode, newEndVnode, isInitialRender);
1924
- oldEndVnode = oldCh[--oldEndIdx];
1925
- newEndVnode = newCh[--newEndIdx];
1926
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1927
- patch(oldStartVnode, newEndVnode, isInitialRender);
1928
- insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1929
- oldStartVnode = oldCh[++oldStartIdx];
1930
- newEndVnode = newCh[--newEndIdx];
1931
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1932
- patch(oldEndVnode, newStartVnode, isInitialRender);
1933
- insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1934
- oldEndVnode = oldCh[--oldEndIdx];
1935
- newStartVnode = newCh[++newStartIdx];
1936
- } else {
1937
- idxInOld = -1;
1938
- {
1939
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1940
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1941
- idxInOld = i2;
1942
- break;
1943
- }
1944
- }
1945
- }
1946
- if (idxInOld >= 0) {
1947
- elmToMove = oldCh[idxInOld];
1948
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1949
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1950
- } else {
1951
- patch(elmToMove, newStartVnode, isInitialRender);
1952
- oldCh[idxInOld] = void 0;
1953
- node = elmToMove.$elm$;
1954
- }
1955
- newStartVnode = newCh[++newStartIdx];
1956
- } else {
1957
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1958
- newStartVnode = newCh[++newStartIdx];
1959
- }
1960
- if (node) {
1961
- {
1962
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1963
- }
1964
- }
1965
- }
1966
- }
1967
- if (oldStartIdx > oldEndIdx) {
1968
- addVnodes(
1969
- parentElm,
1970
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1971
- newVNode2,
1972
- newCh,
1973
- newStartIdx,
1974
- newEndIdx
1975
- );
1976
- } else if (newStartIdx > newEndIdx) {
1977
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1978
- }
1979
- };
1980
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1981
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1982
- if (!isInitialRender) {
1983
- return leftVNode.$key$ === rightVNode.$key$;
1984
- }
1985
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1986
- leftVNode.$key$ = rightVNode.$key$;
1987
- }
1988
- return true;
1989
- }
1990
- return false;
1991
- };
1992
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1993
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1994
- const oldChildren = oldVNode.$children$;
1995
- const newChildren = newVNode2.$children$;
1996
- const tag = newVNode2.$tag$;
1997
- const text = newVNode2.$text$;
1998
- if (text == null) {
1999
- {
2000
- if (tag === "slot" && !useNativeShadowDom) {
2001
- if (oldVNode.$name$ !== newVNode2.$name$) {
2002
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
2003
- relocateToHostRoot(newVNode2.$elm$.parentElement);
2004
- }
2005
- }
2006
- updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
2007
- }
2008
- if (oldChildren !== null && newChildren !== null) {
2009
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2010
- } else if (newChildren !== null) {
2011
- if (oldVNode.$text$ !== null) {
2012
- elm.textContent = "";
2013
- }
2014
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2015
- } else if (
2016
- // don't do this on initial render as it can cause non-hydrated content to be removed
2017
- !isInitialRender && BUILD.updatable && oldChildren !== null
2018
- ) {
2019
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
2020
- } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
2021
- newVNode2.$children$ = oldChildren;
2022
- }
2023
- } else if (oldVNode.$text$ !== text) {
2024
- elm.data = text;
2025
- }
2026
- };
2027
- var nullifyVNodeRefs = (vNode) => {
2028
- {
2029
- if (vNode.$attrs$ && vNode.$attrs$.ref) {
2030
- refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
2031
- }
2032
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2033
- }
2034
- };
2035
- var queueRefAttachment = (refCallback, elm) => {
2036
- {
2037
- refCallbacksToAttach.push(() => refCallback(elm));
2038
- }
2039
- };
2040
- var flushQueuedRefCallbacks = () => {
2041
- {
2042
- refCallbacksToRemove.forEach((cb) => cb());
2043
- refCallbacksToRemove.length = 0;
2044
- refCallbacksToAttach.forEach((cb) => cb());
2045
- refCallbacksToAttach.length = 0;
2046
- }
2047
- };
2048
- var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2049
- if (parent.__insertBefore) {
2050
- return parent.__insertBefore(newNode, reference);
2051
- } else {
2052
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2053
- }
2054
- };
2055
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2056
- const hostElm = hostRef.$hostElement$;
2057
- const cmpMeta = hostRef.$cmpMeta$;
2058
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2059
- const isHostElement = isHost(renderFnResults);
2060
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2061
- hostTagName = hostElm.tagName;
2062
- if (cmpMeta.$attrsToReflect$) {
2063
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2064
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2065
- {
2066
- rootVnode.$attrs$[attribute] = hostElm[propName];
2067
- }
2068
- });
2069
- }
2070
- if (isInitialLoad && rootVnode.$attrs$) {
2071
- for (const key of Object.keys(rootVnode.$attrs$)) {
2072
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2073
- rootVnode.$attrs$[key] = hostElm[key];
2074
- }
2075
- }
2076
- }
2077
- rootVnode.$tag$ = null;
2078
- rootVnode.$flags$ |= 4 /* isHost */;
2079
- hostRef.$vnode$ = rootVnode;
2080
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2081
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
2082
- patch(oldVNode, rootVnode, isInitialLoad);
2083
- flushQueuedRefCallbacks();
2084
- };
2085
-
2086
- // src/runtime/update-component.ts
2087
- var attachToAncestor = (hostRef, ancestorComponent) => {
2088
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2089
- const index = ancestorComponent["s-p"].push(
2090
- new Promise(
2091
- (r) => hostRef.$onRenderResolve$ = () => {
2092
- ancestorComponent["s-p"].splice(index - 1, 1);
2093
- r();
2094
- }
2095
- )
2096
- );
2097
- }
2098
- };
2099
- var scheduleUpdate = (hostRef, isInitialLoad) => {
2100
- {
2101
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2102
- }
2103
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2104
- hostRef.$flags$ |= 512 /* needsRerender */;
2105
- return;
2106
- }
2107
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2108
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2109
- if (isInitialLoad) {
2110
- queueMicrotask(() => {
2111
- dispatch();
2112
- });
2113
- return;
2114
- }
2115
- return writeTask(dispatch) ;
2116
- };
2117
- var dispatchHooks = (hostRef, isInitialLoad) => {
2118
- const elm = hostRef.$hostElement$;
2119
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2120
- const instance = hostRef.$lazyInstance$ ;
2121
- if (!instance) {
2122
- throw new Error(
2123
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
2124
- );
2125
- }
2126
- let maybePromise;
2127
- if (isInitialLoad) {
2128
- {
2129
- {
2130
- hostRef.$flags$ |= 256 /* isListenReady */;
2131
- if (hostRef.$queuedListeners$) {
2132
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2133
- hostRef.$queuedListeners$ = void 0;
2134
- }
2135
- }
2136
- if (hostRef.$fetchedCbList$.length) {
2137
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2138
- }
2139
- }
2140
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2141
- } else {
2142
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2143
- }
2144
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2145
- endSchedule();
2146
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2147
- };
2148
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2149
- console.error(err);
2150
- fn();
2151
- }) : fn();
2152
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2153
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
2154
- var _a;
2155
- const elm = hostRef.$hostElement$;
2156
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2157
- const rc = elm["s-rc"];
2158
- if (isInitialLoad) {
2159
- attachStyles(hostRef);
2160
- }
2161
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2162
- {
2163
- callRender(hostRef, instance, elm, isInitialLoad);
2164
- }
2165
- if (rc) {
2166
- rc.map((cb) => cb());
2167
- elm["s-rc"] = void 0;
2168
- }
2169
- endRender();
2170
- endUpdate();
2171
- {
2172
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2173
- const postUpdate = () => postUpdateComponent(hostRef);
2174
- if (childrenPromises.length === 0) {
2175
- postUpdate();
2176
- } else {
2177
- Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
2178
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2179
- childrenPromises.length = 0;
2180
- }
2181
- }
2182
- };
2183
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
2184
- try {
2185
- instance = instance.render() ;
2186
- {
2187
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2188
- }
2189
- {
2190
- hostRef.$flags$ |= 2 /* hasRendered */;
2191
- }
2192
- {
2193
- {
2194
- {
2195
- renderVdom(hostRef, instance, isInitialLoad);
2196
- }
2197
- }
2198
- }
2199
- } catch (e) {
2200
- consoleError(e, hostRef.$hostElement$);
2201
- }
2202
- return null;
2203
- };
2204
- var postUpdateComponent = (hostRef) => {
2205
- const tagName = hostRef.$cmpMeta$.$tagName$;
2206
- const elm = hostRef.$hostElement$;
2207
- const endPostUpdate = createTime("postUpdate", tagName);
2208
- const instance = hostRef.$lazyInstance$ ;
2209
- const ancestorComponent = hostRef.$ancestorComponent$;
2210
- safeCall(instance, "componentDidRender", void 0, elm);
2211
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2212
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2213
- {
2214
- addHydratedFlag(elm);
2215
- }
2216
- safeCall(instance, "componentDidLoad", void 0, elm);
2217
- endPostUpdate();
2218
- {
2219
- hostRef.$onReadyResolve$(elm);
2220
- if (!ancestorComponent) {
2221
- appDidLoad();
2222
- }
2223
- }
2224
- } else {
2225
- safeCall(instance, "componentDidUpdate", void 0, elm);
2226
- endPostUpdate();
2227
- }
2228
- {
2229
- hostRef.$onInstanceResolve$(elm);
2230
- }
2231
- {
2232
- if (hostRef.$onRenderResolve$) {
2233
- hostRef.$onRenderResolve$();
2234
- hostRef.$onRenderResolve$ = void 0;
2235
- }
2236
- if (hostRef.$flags$ & 512 /* needsRerender */) {
2237
- nextTick(() => scheduleUpdate(hostRef, false));
2238
- }
2239
- hostRef.$flags$ &= -517;
2240
- }
2241
- };
2242
- var appDidLoad = (who) => {
2243
- var _a;
2244
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2245
- {
2246
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2247
- plt.$orgLocNodes$.clear();
2248
- }
2249
- }
2250
- };
2251
- var safeCall = (instance, method, arg, elm) => {
2252
- if (instance && instance[method]) {
2253
- try {
2254
- return instance[method](arg);
2255
- } catch (e) {
2256
- consoleError(e, elm);
2257
- }
2258
- }
2259
- return void 0;
2260
- };
2261
- var addHydratedFlag = (elm) => {
2262
- var _b;
2263
- return elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") ;
2264
- };
2265
-
2266
- // src/runtime/set-value.ts
2267
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2268
- var setValue = (ref, propName, newVal, cmpMeta) => {
2269
- const hostRef = getHostRef(ref);
2270
- if (!hostRef) {
2271
- return;
2272
- }
2273
- if (!hostRef) {
2274
- throw new Error(
2275
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
2276
- );
2277
- }
2278
- const elm = hostRef.$hostElement$ ;
2279
- const oldVal = hostRef.$instanceValues$.get(propName);
2280
- const flags = hostRef.$flags$;
2281
- const instance = hostRef.$lazyInstance$ ;
2282
- newVal = parsePropertyValue(
2283
- newVal,
2284
- cmpMeta.$members$[propName][0],
2285
- !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2286
- );
2287
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2288
- const didValueChange = newVal !== oldVal && !areBothNaN;
2289
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2290
- hostRef.$instanceValues$.set(propName, newVal);
2291
- if (cmpMeta.$watchers$) {
2292
- const watchMethods = cmpMeta.$watchers$[propName];
2293
- if (watchMethods) {
2294
- watchMethods.map((watcher) => {
2295
- try {
2296
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2297
- if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
2298
- if (!instance) {
2299
- hostRef.$fetchedCbList$.push(() => {
2300
- hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
2301
- });
2302
- } else {
2303
- instance[watchMethodName](newVal, oldVal, propName);
2304
- }
2305
- }
2306
- } catch (e) {
2307
- consoleError(e, elm);
2308
- }
2309
- });
2310
- }
2311
- }
2312
- if (flags & 2 /* hasRendered */) {
2313
- if (instance.componentShouldUpdate) {
2314
- const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2315
- if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
2316
- return;
2317
- }
2318
- }
2319
- if (!(flags & 16 /* isQueuedForUpdate */)) {
2320
- scheduleUpdate(hostRef, false);
2321
- }
2322
- }
2323
- }
2324
- };
2325
-
2326
- // src/runtime/proxy-component.ts
2327
- var proxyComponent = (Cstr, cmpMeta, flags) => {
2328
- var _a, _b;
2329
- const prototype = Cstr.prototype;
2330
- if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2331
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2332
- Object.defineProperty(prototype, cbName, {
2333
- value(...args) {
2334
- var _a2;
2335
- const hostRef = getHostRef(this);
2336
- const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
2337
- if (!instance) {
2338
- (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
2339
- const cb = asyncInstance[cbName];
2340
- typeof cb === "function" && cb.call(asyncInstance, ...args);
2341
- });
2342
- } else {
2343
- const cb = instance[cbName] ;
2344
- typeof cb === "function" && cb.call(instance, ...args);
2345
- }
2346
- }
2347
- });
2348
- });
2349
- }
2350
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2351
- {
2352
- if (Cstr.watchers && !cmpMeta.$watchers$) {
2353
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2354
- }
2355
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2356
- cmpMeta.$deserializers$ = Cstr.deserializers;
2357
- }
2358
- if (Cstr.serializers && !cmpMeta.$serializers$) {
2359
- cmpMeta.$serializers$ = Cstr.serializers;
2360
- }
2361
- }
2362
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2363
- members.map(([memberName, [memberFlags]]) => {
2364
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2365
- const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
2366
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2367
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2368
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
2369
- Object.defineProperty(prototype, memberName, {
2370
- get() {
2371
- {
2372
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2373
- return getValue(this, memberName);
2374
- }
2375
- const ref = getHostRef(this);
2376
- const instance = ref ? ref.$lazyInstance$ : prototype;
2377
- if (!instance) return;
2378
- return instance[memberName];
2379
- }
2380
- },
2381
- configurable: true,
2382
- enumerable: true
2383
- });
2384
- }
2385
- Object.defineProperty(prototype, memberName, {
2386
- set(newValue) {
2387
- const ref = getHostRef(this);
2388
- if (!ref) {
2389
- return;
2390
- }
2391
- if (origSetter) {
2392
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2393
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2394
- newValue = ref.$instanceValues$.get(memberName);
2395
- }
2396
- origSetter.apply(this, [
2397
- parsePropertyValue(
2398
- newValue,
2399
- memberFlags,
2400
- !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2401
- )
2402
- ]);
2403
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2404
- setValue(this, memberName, newValue, cmpMeta);
2405
- return;
2406
- }
2407
- {
2408
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2409
- setValue(this, memberName, newValue, cmpMeta);
2410
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2411
- ref.$fetchedCbList$.push(() => {
2412
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2413
- ref.$lazyInstance$[memberName] = newValue;
2414
- }
2415
- });
2416
- }
2417
- return;
2418
- }
2419
- const setterSetVal = () => {
2420
- const currentValue = ref.$lazyInstance$[memberName];
2421
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2422
- ref.$instanceValues$.set(memberName, currentValue);
2423
- }
2424
- ref.$lazyInstance$[memberName] = parsePropertyValue(
2425
- newValue,
2426
- memberFlags,
2427
- !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2428
- );
2429
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2430
- };
2431
- if (ref.$lazyInstance$) {
2432
- setterSetVal();
2433
- } else {
2434
- ref.$fetchedCbList$.push(() => {
2435
- setterSetVal();
2436
- });
2437
- }
2438
- }
2439
- }
2440
- });
2441
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2442
- Object.defineProperty(prototype, memberName, {
2443
- value(...args) {
2444
- var _a2;
2445
- const ref = getHostRef(this);
2446
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2447
- var _a3;
2448
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2449
- });
2450
- }
2451
- });
2452
- }
2453
- });
2454
- if ((flags & 1 /* isElementConstructor */)) {
2455
- const attrNameToPropName = /* @__PURE__ */ new Map();
2456
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2457
- plt.jmp(() => {
2458
- var _a2;
2459
- const propName = attrNameToPropName.get(attrName);
2460
- const hostRef = getHostRef(this);
2461
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2462
- newValue = this[propName];
2463
- delete this[propName];
2464
- }
2465
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2466
- this[propName] == newValue) {
2467
- return;
2468
- } else if (propName == null) {
2469
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2470
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
2471
- const instance = hostRef.$lazyInstance$ ;
2472
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2473
- entry == null ? void 0 : entry.forEach((watcher) => {
2474
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2475
- if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2476
- instance[watchMethodName].call(instance, newValue, oldValue, attrName);
2477
- }
2478
- });
2479
- }
2480
- return;
2481
- }
2482
- const propFlags = members.find(([m]) => m === propName);
2483
- const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
2484
- const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
2485
- if (isBooleanTarget) {
2486
- newValue = newValue === null || newValue === "false" ? false : true;
2487
- }
2488
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2489
- if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2490
- this[propName] = newValue;
2491
- }
2492
- });
2493
- };
2494
- Cstr.observedAttributes = Array.from(
2495
- /* @__PURE__ */ new Set([
2496
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2497
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2498
- var _a2;
2499
- const attrName = m[1] || propName;
2500
- attrNameToPropName.set(attrName, propName);
2501
- if (m[0] & 512 /* ReflectAttr */) {
2502
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2503
- }
2504
- return attrName;
2505
- })
2506
- ])
2507
- );
2508
- }
2509
- }
2510
- return Cstr;
2511
- };
2512
-
2513
- // src/runtime/initialize-component.ts
2514
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2515
- let Cstr;
2516
- try {
2517
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2518
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2519
- const bundleId = cmpMeta.$lazyBundleId$;
2520
- if (bundleId) {
2521
- const CstrImport = loadModule(cmpMeta, hostRef);
2522
- if (CstrImport && "then" in CstrImport) {
2523
- const endLoad = uniqueTime();
2524
- Cstr = await CstrImport;
2525
- endLoad();
2526
- } else {
2527
- Cstr = CstrImport;
2528
- }
2529
- if (!Cstr) {
2530
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2531
- }
2532
- if (!Cstr.isProxied) {
2533
- {
2534
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2535
- cmpMeta.$serializers$ = Cstr.serializers;
2536
- cmpMeta.$deserializers$ = Cstr.deserializers;
2537
- }
2538
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2539
- Cstr.isProxied = true;
2540
- }
2541
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2542
- {
2543
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2544
- }
2545
- try {
2546
- new Cstr(hostRef);
2547
- } catch (e) {
2548
- consoleError(e, elm);
2549
- }
2550
- {
2551
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
2552
- }
2553
- {
2554
- hostRef.$flags$ |= 128 /* isWatchReady */;
2555
- }
2556
- endNewInstance();
2557
- {
2558
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2559
- }
2560
- } else {
2561
- Cstr = elm.constructor;
2562
- const cmpTag = elm.localName;
2563
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2564
- }
2565
- if (Cstr && Cstr.style) {
2566
- let style;
2567
- if (typeof Cstr.style === "string") {
2568
- style = Cstr.style;
2569
- }
2570
- const scopeId2 = getScopeId(cmpMeta);
2571
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2572
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2573
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2574
- endRegisterStyles();
2575
- }
2576
- }
2577
- }
2578
- const ancestorComponent = hostRef.$ancestorComponent$;
2579
- const schedule = () => scheduleUpdate(hostRef, true);
2580
- if (ancestorComponent && ancestorComponent["s-rc"]) {
2581
- ancestorComponent["s-rc"].push(schedule);
2582
- } else {
2583
- schedule();
2584
- }
2585
- } catch (e) {
2586
- consoleError(e, elm);
2587
- if (hostRef.$onRenderResolve$) {
2588
- hostRef.$onRenderResolve$();
2589
- hostRef.$onRenderResolve$ = void 0;
2590
- }
2591
- if (hostRef.$onReadyResolve$) {
2592
- hostRef.$onReadyResolve$(elm);
2593
- }
2594
- }
2595
- };
2596
- var fireConnectedCallback = (instance, elm) => {
2597
- {
2598
- safeCall(instance, "connectedCallback", void 0, elm);
2599
- }
2600
- };
2601
-
2602
- // src/runtime/connected-callback.ts
2603
- var connectedCallback = (elm) => {
2604
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2605
- const hostRef = getHostRef(elm);
2606
- if (!hostRef) {
2607
- return;
2608
- }
2609
- const cmpMeta = hostRef.$cmpMeta$;
2610
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2611
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2612
- hostRef.$flags$ |= 1 /* hasConnected */;
2613
- let hostId;
2614
- {
2615
- hostId = elm.getAttribute(HYDRATE_ID);
2616
- if (hostId) {
2617
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2618
- const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2619
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2620
- }
2621
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2622
- }
2623
- }
2624
- {
2625
- let ancestorComponent = elm;
2626
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2627
- if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2628
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2629
- break;
2630
- }
2631
- }
2632
- }
2633
- if (cmpMeta.$members$) {
2634
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2635
- if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2636
- const value = elm[memberName];
2637
- delete elm[memberName];
2638
- elm[memberName] = value;
2639
- }
2640
- });
2641
- }
2642
- {
2643
- initializeComponent(elm, hostRef, cmpMeta);
2644
- }
2645
- } else {
2646
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2647
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2648
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2649
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2650
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2651
- }
2652
- }
2653
- endConnected();
2654
- }
2655
- };
2656
- var disconnectInstance = (instance, elm) => {
2657
- {
2658
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2659
- }
2660
- };
2661
- var disconnectedCallback = async (elm) => {
2662
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2663
- const hostRef = getHostRef(elm);
2664
- {
2665
- if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2666
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2667
- hostRef.$rmListeners$ = void 0;
2668
- }
2669
- }
2670
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2671
- disconnectInstance(hostRef.$lazyInstance$, elm);
2672
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2673
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2674
- }
2675
- }
2676
- if (rootAppliedStyles.has(elm)) {
2677
- rootAppliedStyles.delete(elm);
2678
- }
2679
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2680
- rootAppliedStyles.delete(elm.shadowRoot);
2681
- }
2682
- };
2683
-
2684
- // src/runtime/bootstrap-lazy.ts
2685
- var bootstrapLazy = (lazyBundles, options = {}) => {
2686
- var _a;
2687
- if (!win.document) {
2688
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2689
- return;
2690
- }
2691
- const endBootstrap = createTime();
2692
- const cmpTags = [];
2693
- const exclude = options.exclude || [];
2694
- const customElements2 = win.customElements;
2695
- const head = win.document.head;
2696
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2697
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2698
- const deferredConnectedCallbacks = [];
2699
- let appLoadFallback;
2700
- let isBootstrapping = true;
2701
- Object.assign(plt, options);
2702
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2703
- {
2704
- plt.$flags$ |= 2 /* appLoaded */;
2705
- }
2706
- {
2707
- hydrateScopedToShadow();
2708
- }
2709
- lazyBundles.map((lazyBundle) => {
2710
- lazyBundle[1].map((compactMeta) => {
2711
- var _a2, _b;
2712
- const cmpMeta = {
2713
- $flags$: compactMeta[0],
2714
- $tagName$: compactMeta[1],
2715
- $members$: compactMeta[2],
2716
- $listeners$: compactMeta[3]
2717
- };
2718
- {
2719
- cmpMeta.$members$ = compactMeta[2];
2720
- }
2721
- {
2722
- cmpMeta.$listeners$ = compactMeta[3];
2723
- }
2724
- {
2725
- cmpMeta.$attrsToReflect$ = [];
2726
- }
2727
- {
2728
- cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
2729
- cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
2730
- cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
2731
- }
2732
- const tagName = transformTag(cmpMeta.$tagName$);
2733
- const HostElement = class extends HTMLElement {
2734
- ["s-p"];
2735
- ["s-rc"];
2736
- hasRegisteredEventListeners = false;
2737
- // StencilLazyHost
2738
- constructor(self) {
2739
- super(self);
2740
- self = this;
2741
- registerHost(self, cmpMeta);
2742
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2743
- {
2744
- if (!self.shadowRoot) {
2745
- createShadowRoot.call(self, cmpMeta);
2746
- } else {
2747
- if (self.shadowRoot.mode !== "open") {
2748
- throw new Error(
2749
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2750
- );
2751
- }
2752
- }
2753
- }
2754
- }
2755
- }
2756
- connectedCallback() {
2757
- const hostRef = getHostRef(this);
2758
- if (!hostRef) {
2759
- return;
2760
- }
2761
- if (!this.hasRegisteredEventListeners) {
2762
- this.hasRegisteredEventListeners = true;
2763
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2764
- }
2765
- if (appLoadFallback) {
2766
- clearTimeout(appLoadFallback);
2767
- appLoadFallback = null;
2768
- }
2769
- if (isBootstrapping) {
2770
- deferredConnectedCallbacks.push(this);
2771
- } else {
2772
- plt.jmp(() => connectedCallback(this));
2773
- }
2774
- }
2775
- disconnectedCallback() {
2776
- plt.jmp(() => disconnectedCallback(this));
2777
- plt.raf(() => {
2778
- var _a3;
2779
- const hostRef = getHostRef(this);
2780
- if (!hostRef) {
2781
- return;
2782
- }
2783
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2784
- if (i2 > -1) {
2785
- deferredConnectedCallbacks.splice(i2, 1);
2786
- }
2787
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2788
- delete hostRef.$vnode$.$elm$;
2789
- }
2790
- });
2791
- }
2792
- componentOnReady() {
2793
- var _a3;
2794
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2795
- }
2796
- };
2797
- if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2798
- HostElement.formAssociated = true;
2799
- }
2800
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2801
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2802
- cmpTags.push(tagName);
2803
- customElements2.define(
2804
- tagName,
2805
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2806
- );
2807
- }
2808
- });
2809
- });
2810
- if (cmpTags.length > 0) {
2811
- {
2812
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2813
- }
2814
- if (dataStyles.innerHTML.length) {
2815
- dataStyles.setAttribute("data-styles", "");
2816
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2817
- if (nonce != null) {
2818
- dataStyles.setAttribute("nonce", nonce);
2819
- }
2820
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2821
- }
2822
- }
2823
- isBootstrapping = false;
2824
- if (deferredConnectedCallbacks.length) {
2825
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2826
- } else {
2827
- {
2828
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2829
- }
2830
- }
2831
- endBootstrap();
2832
- };
2833
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2834
- if (listeners && win.document) {
2835
- listeners.map(([flags, name, method]) => {
2836
- const target = elm;
2837
- const handler = hostListenerProxy(hostRef, method);
2838
- const opts = hostListenerOpts(flags);
2839
- plt.ael(target, name, handler, opts);
2840
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2841
- });
2842
- }
2843
- };
2844
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2845
- var _a;
2846
- try {
2847
- {
2848
- if (hostRef.$flags$ & 256 /* isListenReady */) {
2849
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2850
- } else {
2851
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2852
- }
2853
- }
2854
- } catch (e) {
2855
- consoleError(e, hostRef.$hostElement$);
2856
- }
2857
- };
2858
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2859
- passive: (flags & 1 /* Passive */) !== 0,
2860
- capture: (flags & 2 /* Capture */) !== 0
2861
- } : (flags & 2 /* Capture */) !== 0;
2862
-
2863
- // src/runtime/nonce.ts
2864
- var setNonce = (nonce) => plt.$nonce$ = nonce;
2865
- function transformTag(tag) {
2866
- return tag;
2867
- }
2868
-
2869
- export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };