@ebrains/components 0.9.2-beta → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1035) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/analytics-28713bf7.js +60 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  4. package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
  5. package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
  6. package/dist/cjs/bluesky-eb0d6051.js +16 -0
  7. package/dist/cjs/bookmark-c61853d9.js +18 -0
  8. package/dist/cjs/chevron-down-27344777.js +14 -0
  9. package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
  10. package/dist/cjs/chevron-right-6d95a117.js +7 -0
  11. package/dist/cjs/chevron-up-e37d7713.js +14 -0
  12. package/dist/cjs/close-51284af5.js +7 -0
  13. package/dist/cjs/color-primary-palette_6.cjs.entry.js +340 -0
  14. package/dist/cjs/components-section.cjs.entry.js +145 -0
  15. package/dist/cjs/components.cjs.js +25 -0
  16. package/dist/cjs/copy-53102d0c.js +7 -0
  17. package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
  18. package/dist/cjs/docs-palettes.cjs.entry.js +27 -0
  19. package/dist/cjs/docs-tokens.cjs.entry.js +35 -0
  20. package/dist/cjs/eds-accordion.cjs.entry.js +86 -0
  21. package/dist/cjs/eds-alert.cjs.entry.js +104 -0
  22. package/dist/cjs/eds-app-root.cjs.entry.js +37 -0
  23. package/dist/cjs/eds-avatar_34.cjs.entry.js +2731 -0
  24. package/dist/cjs/eds-card-project.cjs.entry.js +196 -0
  25. package/dist/cjs/eds-card-section.cjs.entry.js +39 -0
  26. package/dist/cjs/eds-card-tags.cjs.entry.js +22 -0
  27. package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
  28. package/dist/cjs/eds-code-block.cjs.entry.js +2489 -0
  29. package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
  30. package/dist/cjs/eds-feedback.cjs.entry.js +71 -0
  31. package/dist/cjs/eds-frame.cjs.entry.js +85 -0
  32. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
  33. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
  34. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
  35. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +18 -0
  36. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
  37. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
  38. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
  39. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
  40. package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
  41. package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
  42. package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
  43. package/dist/cjs/eds-icon-external.cjs.entry.js +18 -0
  44. package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
  47. package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
  48. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
  49. package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
  50. package/dist/cjs/eds-icon-minus.cjs.entry.js +18 -0
  51. package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
  52. package/dist/cjs/eds-icon-paper.cjs.entry.js +18 -0
  53. package/dist/cjs/eds-icon-plus.cjs.entry.js +18 -0
  54. package/dist/cjs/eds-icon-portal.cjs.entry.js +18 -0
  55. package/dist/cjs/eds-icon-private.cjs.entry.js +18 -0
  56. package/dist/cjs/eds-icon-public.cjs.entry.js +18 -0
  57. package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
  58. package/dist/cjs/eds-icon-star.cjs.entry.js +18 -0
  59. package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
  60. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +18 -0
  61. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +18 -0
  62. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +18 -0
  63. package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
  64. package/dist/cjs/eds-icon-unknown.cjs.entry.js +18 -0
  65. package/dist/cjs/eds-icon-updown.cjs.entry.js +18 -0
  66. package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
  67. package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
  68. package/dist/cjs/eds-matomo-notice.cjs.entry.js +125 -0
  69. package/dist/cjs/eds-pagination_2.cjs.entry.js +403 -0
  70. package/dist/cjs/eds-progress-bar.cjs.entry.js +56 -0
  71. package/dist/cjs/eds-rating.cjs.entry.js +64 -0
  72. package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
  73. package/dist/cjs/eds-spinner.cjs.entry.js +54 -0
  74. package/dist/cjs/eds-splash-screen.cjs.entry.js +60 -0
  75. package/dist/cjs/eds-switch.cjs.entry.js +46 -0
  76. package/dist/cjs/eds-timeline.cjs.entry.js +63 -0
  77. package/dist/cjs/eds-toast-manager.cjs.entry.js +75 -0
  78. package/dist/cjs/eds-toast.cjs.entry.js +77 -0
  79. package/dist/cjs/eds-trl.cjs.entry.js +51 -0
  80. package/dist/cjs/eu-b9665157.js +32 -0
  81. package/dist/cjs/facebook-7aa65e57.js +16 -0
  82. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
  83. package/dist/cjs/index-88c8039f.js +1941 -0
  84. package/dist/cjs/index-ab9fbefe.js +48 -0
  85. package/dist/cjs/index.cjs.js +2 -0
  86. package/dist/cjs/linkedin-46b0dd56.js +30 -0
  87. package/dist/cjs/loader-72f9d178.js +32 -0
  88. package/dist/cjs/loader.cjs.js +15 -0
  89. package/dist/cjs/logo-color-6c787ac1.js +117 -0
  90. package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
  91. package/dist/cjs/logo-space.cjs.entry.js +21 -0
  92. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  93. package/dist/cjs/logo-variations-tabs.cjs.entry.js +27 -0
  94. package/dist/{components/index-7281d120.js → cjs/logo-white-no-bg-4a0e0f4b.js} +10 -941
  95. package/dist/cjs/logo-wrong-usage.cjs.entry.js +21 -0
  96. package/dist/cjs/mastodon-20c5bb7d.js +16 -0
  97. package/dist/cjs/menu-7050a6d1.js +13 -0
  98. package/dist/cjs/minus-1da6a98a.js +13 -0
  99. package/dist/cjs/mono-2f3cd653.js +13 -0
  100. package/dist/cjs/more-1d3dd8bc.js +15 -0
  101. package/dist/cjs/paper-0d6302f6.js +17 -0
  102. package/dist/cjs/plus-d0e00ad0.js +14 -0
  103. package/dist/cjs/portal-46212559.js +20 -0
  104. package/dist/cjs/private-38835fe7.js +27 -0
  105. package/dist/cjs/public-b519b1f6.js +18 -0
  106. package/dist/cjs/search-5533d877.js +14 -0
  107. package/dist/cjs/sharedUtils-8e287250.js +21 -0
  108. package/dist/cjs/star-942eee9f.js +7 -0
  109. package/dist/cjs/success-ef661a11.js +20 -0
  110. package/dist/cjs/svg-repository.cjs.entry.js +337 -0
  111. package/dist/cjs/thumbs-down-714036b1.js +7 -0
  112. package/dist/cjs/thumbs-up-411babb8.js +8 -0
  113. package/dist/cjs/token-list_3.cjs.entry.js +300 -0
  114. package/dist/cjs/token-ratios.cjs.entry.js +29 -0
  115. package/dist/cjs/token-typography.cjs.entry.js +230 -0
  116. package/dist/cjs/tutotial-7855df3c.js +29 -0
  117. package/dist/cjs/twitter-73956e9a.js +16 -0
  118. package/dist/cjs/unknown-6814e551.js +24 -0
  119. package/dist/cjs/up-and-down-d71df67d.js +14 -0
  120. package/dist/cjs/user-a3c2230f.js +18 -0
  121. package/dist/cjs/youtube-c238a461.js +16 -0
  122. package/dist/collection/collection-manifest.json +128 -0
  123. package/dist/collection/components/eds-accordion/eds-accordion.css +256 -0
  124. package/dist/collection/components/eds-accordion/eds-accordion.js +222 -0
  125. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
  126. package/dist/collection/components/eds-alert/eds-alert.css +165 -0
  127. package/dist/collection/components/eds-alert/eds-alert.js +230 -0
  128. package/dist/collection/components/eds-alert/eds-alert.stories.js +62 -0
  129. package/dist/collection/components/eds-avatar/eds-avatar.css +202 -0
  130. package/dist/collection/components/eds-avatar/eds-avatar.js +173 -0
  131. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +43 -0
  132. package/dist/collection/components/eds-block-break/eds-block-break.css +24 -0
  133. package/dist/collection/components/eds-block-break/eds-block-break.js +46 -0
  134. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +112 -0
  135. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +40 -0
  136. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +212 -0
  137. package/dist/collection/components/eds-button/eds-button.css +910 -0
  138. package/dist/collection/components/eds-button/eds-button.js +433 -0
  139. package/dist/collection/components/eds-button/eds-button.stories.js +50 -0
  140. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +39 -0
  141. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +94 -0
  142. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
  143. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
  144. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
  145. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
  146. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +148 -0
  147. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +338 -0
  148. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +133 -0
  149. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +228 -0
  150. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
  151. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
  152. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.css +58 -0
  153. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +172 -0
  154. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.stories.js +57 -0
  155. package/dist/collection/components/eds-charts/eds-pie/eds-pie.css +135 -0
  156. package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +229 -0
  157. package/dist/collection/components/eds-charts/eds-pie/eds-pie.stories.js +76 -0
  158. package/dist/collection/components/eds-code-block/eds-code-block.css +204 -0
  159. package/dist/collection/components/eds-code-block/eds-code-block.js +141 -0
  160. package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
  161. package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
  162. package/dist/collection/components/eds-dropdown/eds-dropdown.js +369 -0
  163. package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
  164. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
  165. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
  166. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
  167. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
  168. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
  169. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
  170. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +36 -0
  171. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
  172. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
  173. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
  174. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +36 -0
  175. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
  176. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
  177. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
  178. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +36 -0
  179. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
  180. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +36 -0
  181. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +36 -0
  182. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +36 -0
  183. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +36 -0
  184. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +36 -0
  185. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
  186. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +36 -0
  187. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +36 -0
  188. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +36 -0
  189. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +36 -0
  190. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +36 -0
  191. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +36 -0
  192. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +36 -0
  193. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
  194. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
  195. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
  196. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
  197. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
  198. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
  199. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
  200. package/dist/collection/components/eds-img/eds-img.css +83 -0
  201. package/dist/collection/components/eds-img/eds-img.js +252 -0
  202. package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
  203. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +317 -0
  204. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
  205. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
  206. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +252 -0
  207. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +263 -0
  208. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +220 -0
  209. package/dist/collection/components/eds-input-field/eds-input-field.css +7760 -0
  210. package/dist/collection/components/eds-input-field/eds-input-field.js +478 -0
  211. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +206 -0
  212. package/dist/collection/components/eds-link/eds-link.css +1238 -0
  213. package/dist/collection/components/eds-link/eds-link.js +493 -0
  214. package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
  215. package/dist/collection/components/eds-logo/eds-logo.css +47 -0
  216. package/dist/collection/components/eds-logo/eds-logo.js +169 -0
  217. package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
  218. package/dist/collection/components/eds-modal/eds-modal.css +304 -0
  219. package/dist/collection/components/eds-modal/eds-modal.js +298 -0
  220. package/dist/collection/components/eds-modal/eds-modal.stories.js +89 -0
  221. package/dist/collection/components/eds-pagination/eds-pagination.css +148 -0
  222. package/dist/collection/components/eds-pagination/eds-pagination.js +418 -0
  223. package/dist/collection/components/eds-pagination/eds-pagination.stories.js +135 -0
  224. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +97 -0
  225. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +124 -0
  226. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +24 -0
  227. package/dist/collection/components/eds-rating/eds-rating.css +79 -0
  228. package/dist/collection/components/eds-rating/eds-rating.js +126 -0
  229. package/dist/collection/components/eds-rating/eds-rating.stories.js +43 -0
  230. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
  231. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.donotstories.js +75 -0
  232. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +95 -0
  233. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +140 -0
  234. package/dist/collection/components/eds-spinner/eds-spinner.css +17 -0
  235. package/dist/collection/components/eds-spinner/eds-spinner.js +166 -0
  236. package/dist/collection/components/eds-spinner/eds-spinner.stories.js +52 -0
  237. package/dist/collection/components/eds-switch/eds-switch.css +69 -0
  238. package/dist/collection/components/eds-switch/eds-switch.js +139 -0
  239. package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
  240. package/dist/collection/components/eds-table/eds-table.css +142 -0
  241. package/dist/collection/components/eds-table/eds-table.js +370 -0
  242. package/dist/collection/components/eds-table/eds-table.stories.js +89 -0
  243. package/dist/collection/components/eds-tag/eds-tag.css +111 -0
  244. package/dist/collection/components/eds-tag/eds-tag.js +110 -0
  245. package/dist/collection/components/eds-tag/eds-tag.stories.js +34 -0
  246. package/dist/collection/components/eds-timeline/eds-timeline.css +84 -0
  247. package/dist/collection/components/eds-timeline/eds-timeline.donot-stories.js +35 -0
  248. package/dist/collection/components/eds-timeline/eds-timeline.js +96 -0
  249. package/dist/collection/components/eds-toast/eds-toast.css +91 -0
  250. package/dist/collection/components/eds-toast/eds-toast.js +138 -0
  251. package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
  252. package/dist/collection/components/eds-tooltip/eds-tooltip.css +90 -0
  253. package/dist/collection/components/eds-tooltip/eds-tooltip.js +65 -0
  254. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +23 -0
  255. package/dist/collection/components/eds-trl/eds-trl.js +68 -0
  256. package/dist/{components/color-primary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/primary.js} +9 -9
  257. package/dist/{components/color-secondary-palette.entry.js → collection/eds-docs-ui/colors/color-palette/secondary.js} +30 -9
  258. package/dist/{components/color-support-palette.entry.js → collection/eds-docs-ui/colors/color-palette/support.js} +9 -9
  259. package/dist/{components/gradient-primary-palette.entry.js → collection/eds-docs-ui/colors/gradient-palette/primary.js} +9 -9
  260. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
  261. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
  262. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
  263. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +44 -0
  264. package/dist/collection/eds-docs-ui/components-section/components-section.js +55 -0
  265. package/dist/collection/eds-docs-ui/components-section/functional/angular.js +2 -0
  266. package/dist/collection/eds-docs-ui/components-section/functional/installation.js +2 -0
  267. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +19 -0
  268. package/dist/collection/eds-docs-ui/components-section/functional/react.js +2 -0
  269. package/dist/collection/eds-docs-ui/components-section/functional/usage.js +2 -0
  270. package/dist/collection/eds-docs-ui/components-section/functional/vue.js +2 -0
  271. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +52 -0
  272. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
  273. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
  274. package/dist/{components/token-radii.entry.js → collection/eds-docs-ui/design-tokens/token-radii/token-radii.js} +9 -19
  275. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
  276. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
  277. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
  278. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
  279. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +44 -0
  280. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +154 -0
  281. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
  282. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +161 -0
  283. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +21 -0
  284. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +169 -0
  285. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +64 -0
  286. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +44 -0
  287. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +240 -0
  288. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
  289. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +5 -0
  290. package/dist/{components/svg-repository.entry.js → collection/eds-docs-ui/svg-repository/svg-repository.js} +21 -15
  291. package/dist/collection/index.js +1 -0
  292. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +249 -0
  293. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +95 -0
  294. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +71 -0
  295. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
  296. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +86 -0
  297. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
  298. package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +163 -0
  299. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +214 -0
  300. package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +129 -0
  301. package/dist/collection/shared-ui/eds-footer/eds-footer.css +230 -0
  302. package/dist/collection/shared-ui/eds-footer/eds-footer.js +233 -0
  303. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +65 -0
  304. package/dist/collection/shared-ui/eds-form/eds-form.css +3 -0
  305. package/dist/collection/shared-ui/eds-form/eds-form.js +473 -0
  306. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +82 -0
  307. package/dist/collection/shared-ui/eds-frame/eds-frame.css +148 -0
  308. package/dist/collection/shared-ui/eds-frame/eds-frame.js +234 -0
  309. package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +52 -0
  310. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +152 -0
  311. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +192 -0
  312. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  313. package/dist/collection/shared-ui/eds-header/eds-header.css +184 -0
  314. package/dist/collection/shared-ui/eds-header/eds-header.js +183 -0
  315. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +42 -0
  316. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +109 -0
  317. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +232 -0
  318. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +31 -0
  319. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +124 -0
  320. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
  321. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  322. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +29 -0
  323. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +136 -0
  324. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +23 -0
  325. package/dist/collection/shared-ui/eds-steps/eds-steps.css +93 -0
  326. package/dist/collection/shared-ui/eds-steps/eds-steps.js +170 -0
  327. package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +35 -0
  328. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +261 -0
  329. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +219 -0
  330. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +79 -0
  331. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +375 -0
  332. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +221 -0
  333. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +64 -0
  334. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +51 -0
  335. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +54 -0
  336. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
  337. package/dist/collection/shared-ui/eds-user/eds-user.css +71 -0
  338. package/dist/collection/shared-ui/eds-user/eds-user.js +77 -0
  339. package/dist/collection/shared-ui/eds-user/eds-user.stories.js +45 -0
  340. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +39 -0
  341. package/dist/{components/analytics-e29fcd53.js → collection/utils/analytics.js} +8 -10
  342. package/dist/collection/utils/api.js +27 -0
  343. package/dist/{components/color-47266964.js → collection/utils/color.js} +11 -14
  344. package/dist/collection/utils/eds-form/formUtils.js +65 -0
  345. package/dist/collection/utils/eds-form/formValidators.js +64 -0
  346. package/dist/collection/utils/eds-form/individualValidator.js +46 -0
  347. package/dist/collection/utils/eds-form/validateInput.js +23 -0
  348. package/dist/collection/utils/global.js +8 -0
  349. package/dist/collection/utils/keycloak.js +85 -0
  350. package/dist/collection/utils/sharedUtils.js +17 -0
  351. package/dist/{components/toastManager-b716afd8.js → collection/utils/toastManager.js} +1 -3
  352. package/dist/components/analytics.js +56 -0
  353. package/dist/components/arrow-diagonal-black.js +3 -0
  354. package/dist/components/arrow-right.js +5 -0
  355. package/dist/components/bluesky.js +14 -0
  356. package/dist/components/bookmark.js +16 -0
  357. package/dist/components/chevron-down.js +12 -0
  358. package/dist/components/chevron-left.js +11 -0
  359. package/dist/components/chevron-right.js +5 -0
  360. package/dist/components/chevron-up.js +12 -0
  361. package/dist/components/close.js +5 -0
  362. package/dist/components/color-primary-palette.d.ts +11 -0
  363. package/dist/components/color-primary-palette.js +6 -0
  364. package/dist/components/color-secondary-palette.d.ts +11 -0
  365. package/dist/components/color-secondary-palette.js +6 -0
  366. package/dist/components/color-support-palette.d.ts +11 -0
  367. package/dist/components/color-support-palette.js +6 -0
  368. package/dist/components/components-section.d.ts +11 -0
  369. package/dist/components/components-section.js +208 -0
  370. package/dist/components/components.css +7311 -0
  371. package/dist/components/components.esm.js +1 -47
  372. package/dist/components/copy.js +5 -0
  373. package/dist/components/correct-use-of-colors.d.ts +11 -0
  374. package/dist/components/correct-use-of-colors.js +93 -0
  375. package/dist/components/docs-palettes.d.ts +11 -0
  376. package/dist/components/docs-palettes.js +96 -0
  377. package/dist/components/docs-tokens.d.ts +11 -0
  378. package/dist/components/docs-tokens.js +80 -0
  379. package/dist/components/eds-accordion.d.ts +11 -0
  380. package/dist/components/eds-accordion.js +6 -0
  381. package/dist/components/eds-accordion2.js +119 -0
  382. package/dist/components/eds-alert.d.ts +11 -0
  383. package/dist/components/eds-alert.js +6 -0
  384. package/dist/components/eds-alert2.js +135 -0
  385. package/dist/components/eds-app-root.d.ts +11 -0
  386. package/dist/components/eds-app-root.js +71 -0
  387. package/dist/components/eds-avatar.d.ts +11 -0
  388. package/dist/components/eds-avatar.js +6 -0
  389. package/dist/components/eds-avatar2.js +92 -0
  390. package/dist/components/eds-block-break.d.ts +11 -0
  391. package/dist/components/eds-block-break.js +6 -0
  392. package/dist/components/eds-block-break2.js +34 -0
  393. package/dist/components/eds-breadcrumb.d.ts +11 -0
  394. package/dist/components/{eds-breadcrumb.entry.js → eds-breadcrumb.js} +49 -10
  395. package/dist/components/eds-button.d.ts +11 -0
  396. package/dist/components/eds-button.js +6 -0
  397. package/dist/components/eds-button2.js +210 -0
  398. package/dist/components/eds-card-desc.d.ts +11 -0
  399. package/dist/components/eds-card-desc.js +6 -0
  400. package/dist/components/eds-card-desc2.js +41 -0
  401. package/dist/components/eds-card-generic.d.ts +11 -0
  402. package/dist/components/eds-card-generic.js +6 -0
  403. package/dist/components/{eds-card-generic.entry.js → eds-card-generic2.js} +72 -12
  404. package/dist/components/eds-card-project.d.ts +11 -0
  405. package/dist/components/eds-card-project.js +238 -0
  406. package/dist/components/eds-card-section.d.ts +11 -0
  407. package/dist/components/eds-card-section.js +92 -0
  408. package/dist/components/eds-card-tags.d.ts +11 -0
  409. package/dist/components/eds-card-tags.js +45 -0
  410. package/dist/components/eds-card-title.d.ts +11 -0
  411. package/dist/components/eds-card-title.js +6 -0
  412. package/dist/components/{eds-card-title.entry.js → eds-card-title2.js} +31 -8
  413. package/dist/components/eds-card-tool.d.ts +11 -0
  414. package/dist/components/eds-card-tool.js +137 -0
  415. package/dist/components/eds-code-block.d.ts +11 -0
  416. package/dist/components/eds-code-block.js +6 -0
  417. package/dist/components/eds-code-block2.js +2510 -0
  418. package/dist/components/eds-cookies-preference.d.ts +11 -0
  419. package/dist/components/eds-cookies-preference.js +87 -0
  420. package/dist/components/eds-dropdown.d.ts +11 -0
  421. package/dist/components/eds-dropdown.js +6 -0
  422. package/dist/components/{eds-dropdown.entry.js → eds-dropdown2.js} +50 -11
  423. package/dist/components/eds-feedback.d.ts +11 -0
  424. package/dist/components/eds-feedback.js +111 -0
  425. package/dist/components/eds-footer.d.ts +11 -0
  426. package/dist/components/eds-footer.js +6 -0
  427. package/dist/components/eds-footer2.js +99 -0
  428. package/dist/components/eds-form.d.ts +11 -0
  429. package/dist/components/{eds-form.entry.js → eds-form.js} +114 -72
  430. package/dist/components/eds-frame.d.ts +11 -0
  431. package/dist/components/eds-frame.js +120 -0
  432. package/dist/components/eds-fullscreen-menu.d.ts +11 -0
  433. package/dist/components/{eds-fullscreen-menu.entry.js → eds-fullscreen-menu.js} +82 -9
  434. package/dist/components/eds-gauge.d.ts +11 -0
  435. package/dist/components/eds-gauge.js +81 -0
  436. package/dist/components/eds-header.d.ts +11 -0
  437. package/dist/components/eds-header.js +108 -0
  438. package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
  439. package/dist/components/eds-icon-arrow-diagonal.js +33 -0
  440. package/dist/components/eds-icon-arrow-right.d.ts +11 -0
  441. package/dist/components/eds-icon-arrow-right.js +33 -0
  442. package/dist/components/eds-icon-bluesky.d.ts +11 -0
  443. package/dist/components/eds-icon-bluesky.js +33 -0
  444. package/dist/components/eds-icon-bookmark.d.ts +11 -0
  445. package/dist/components/eds-icon-bookmark.js +33 -0
  446. package/dist/components/eds-icon-chevron-down.d.ts +11 -0
  447. package/dist/components/eds-icon-chevron-down.js +33 -0
  448. package/dist/components/eds-icon-chevron-left.d.ts +11 -0
  449. package/dist/components/eds-icon-chevron-left.js +33 -0
  450. package/dist/components/eds-icon-chevron-right.d.ts +11 -0
  451. package/dist/components/eds-icon-chevron-right.js +33 -0
  452. package/dist/components/eds-icon-chevron-up.d.ts +11 -0
  453. package/dist/components/eds-icon-chevron-up.js +33 -0
  454. package/dist/components/eds-icon-close.d.ts +11 -0
  455. package/dist/components/eds-icon-close.js +33 -0
  456. package/dist/components/eds-icon-copy.d.ts +11 -0
  457. package/dist/components/eds-icon-copy.js +33 -0
  458. package/dist/components/eds-icon-eu.d.ts +11 -0
  459. package/dist/components/eds-icon-eu.js +33 -0
  460. package/dist/components/eds-icon-external.d.ts +11 -0
  461. package/dist/components/eds-icon-external.js +33 -0
  462. package/dist/components/eds-icon-facebook.d.ts +11 -0
  463. package/dist/components/eds-icon-facebook.js +33 -0
  464. package/dist/components/eds-icon-gitlab.d.ts +11 -0
  465. package/dist/components/eds-icon-gitlab.js +33 -0
  466. package/dist/components/eds-icon-linkedin.d.ts +11 -0
  467. package/dist/components/eds-icon-linkedin.js +33 -0
  468. package/dist/components/eds-icon-loader.d.ts +11 -0
  469. package/dist/components/eds-icon-loader.js +33 -0
  470. package/dist/components/eds-icon-mastodon.d.ts +11 -0
  471. package/dist/components/eds-icon-mastodon.js +33 -0
  472. package/dist/components/eds-icon-menu.d.ts +11 -0
  473. package/dist/components/eds-icon-menu.js +33 -0
  474. package/dist/components/eds-icon-minus.d.ts +11 -0
  475. package/dist/components/eds-icon-minus.js +33 -0
  476. package/dist/components/eds-icon-more.d.ts +11 -0
  477. package/dist/components/eds-icon-more.js +33 -0
  478. package/dist/components/eds-icon-paper.d.ts +11 -0
  479. package/dist/components/eds-icon-paper.js +33 -0
  480. package/dist/components/eds-icon-plus.d.ts +11 -0
  481. package/dist/components/eds-icon-plus.js +33 -0
  482. package/dist/components/eds-icon-portal.d.ts +11 -0
  483. package/dist/components/eds-icon-portal.js +33 -0
  484. package/dist/components/eds-icon-private.d.ts +11 -0
  485. package/dist/components/eds-icon-private.js +33 -0
  486. package/dist/components/eds-icon-public.d.ts +11 -0
  487. package/dist/components/eds-icon-public.js +33 -0
  488. package/dist/components/eds-icon-search.d.ts +11 -0
  489. package/dist/components/eds-icon-search.js +33 -0
  490. package/dist/components/eds-icon-star.d.ts +11 -0
  491. package/dist/components/eds-icon-star.js +33 -0
  492. package/dist/components/eds-icon-success.d.ts +11 -0
  493. package/dist/components/eds-icon-success.js +33 -0
  494. package/dist/components/eds-icon-thumbs-down.d.ts +11 -0
  495. package/dist/components/eds-icon-thumbs-down.js +33 -0
  496. package/dist/components/eds-icon-thumbs-up.d.ts +11 -0
  497. package/dist/components/eds-icon-thumbs-up.js +33 -0
  498. package/dist/components/eds-icon-tutorial.d.ts +11 -0
  499. package/dist/components/eds-icon-tutorial.js +33 -0
  500. package/dist/components/eds-icon-twitter.d.ts +11 -0
  501. package/dist/components/eds-icon-twitter.js +33 -0
  502. package/dist/components/eds-icon-unknown.d.ts +11 -0
  503. package/dist/components/eds-icon-unknown.js +33 -0
  504. package/dist/components/eds-icon-updown.d.ts +11 -0
  505. package/dist/components/eds-icon-updown.js +33 -0
  506. package/dist/components/eds-icon-user.d.ts +11 -0
  507. package/dist/components/eds-icon-user.js +33 -0
  508. package/dist/components/eds-icon-wrapper.d.ts +11 -0
  509. package/dist/components/eds-icon-wrapper.js +6 -0
  510. package/dist/components/{eds-icon-wrapper.entry.js → eds-icon-wrapper2.js} +26 -6
  511. package/dist/components/eds-icon-youtube.d.ts +11 -0
  512. package/dist/components/eds-icon-youtube.js +33 -0
  513. package/dist/components/eds-img.d.ts +11 -0
  514. package/dist/components/eds-img.js +6 -0
  515. package/dist/components/{eds-img.entry.js → eds-img2.js} +38 -10
  516. package/dist/components/eds-input-field.d.ts +11 -0
  517. package/dist/components/eds-input-field.js +6 -0
  518. package/dist/components/{eds-input-field.entry.js → eds-input-field2.js} +111 -23
  519. package/dist/components/eds-input-footer.d.ts +11 -0
  520. package/dist/components/eds-input-footer.js +6 -0
  521. package/dist/components/eds-input-footer2.js +43 -0
  522. package/dist/components/eds-input-label.d.ts +11 -0
  523. package/dist/components/eds-input-label.js +6 -0
  524. package/dist/components/eds-input-label2.js +35 -0
  525. package/dist/components/eds-input-range.d.ts +11 -0
  526. package/dist/components/eds-input-range.js +6 -0
  527. package/dist/components/{eds-input-range.entry.js → eds-input-range2.js} +35 -8
  528. package/dist/components/eds-input-search.d.ts +11 -0
  529. package/dist/components/eds-input-search.js +6 -0
  530. package/dist/components/{eds-input-search.entry.js → eds-input-search2.js} +39 -9
  531. package/dist/components/eds-input-select.d.ts +11 -0
  532. package/dist/components/eds-input-select.js +6 -0
  533. package/dist/components/eds-input-select2.js +64 -0
  534. package/dist/components/eds-input.d.ts +11 -0
  535. package/dist/components/eds-input.js +6 -0
  536. package/dist/components/{eds-input.entry.js → eds-input2.js} +48 -9
  537. package/dist/components/eds-link.d.ts +11 -0
  538. package/dist/components/eds-link.js +6 -0
  539. package/dist/components/eds-link2.js +255 -0
  540. package/dist/components/eds-logo.d.ts +11 -0
  541. package/dist/components/eds-logo.js +6 -0
  542. package/dist/components/{eds-logo.entry.js → eds-logo2.js} +33 -11
  543. package/dist/components/eds-matomo-notice.d.ts +11 -0
  544. package/dist/components/eds-matomo-notice.js +6 -0
  545. package/dist/components/eds-matomo-notice2.js +160 -0
  546. package/dist/components/eds-modal.d.ts +11 -0
  547. package/dist/components/eds-modal.js +166 -0
  548. package/dist/components/eds-pagination.d.ts +11 -0
  549. package/dist/components/eds-pagination.js +6 -0
  550. package/dist/components/{eds-pagination.entry.js → eds-pagination2.js} +52 -9
  551. package/dist/components/eds-pie.d.ts +11 -0
  552. package/dist/components/eds-pie.js +127 -0
  553. package/dist/components/eds-progress-bar.d.ts +11 -0
  554. package/dist/components/eds-progress-bar.js +6 -0
  555. package/dist/components/eds-progress-bar2.js +71 -0
  556. package/dist/components/eds-rating.d.ts +11 -0
  557. package/dist/components/eds-rating.js +6 -0
  558. package/dist/components/eds-rating2.js +91 -0
  559. package/dist/components/eds-section-core.d.ts +11 -0
  560. package/dist/components/eds-section-core.js +6 -0
  561. package/dist/components/eds-section-core2.js +45 -0
  562. package/dist/components/eds-section-heading.d.ts +11 -0
  563. package/dist/components/eds-section-heading.js +6 -0
  564. package/dist/components/eds-section-heading2.js +57 -0
  565. package/dist/components/eds-social-networks.d.ts +11 -0
  566. package/dist/components/eds-social-networks.js +6 -0
  567. package/dist/components/{eds-social-networks.entry.js → eds-social-networks2.js} +38 -8
  568. package/dist/components/eds-spinner.d.ts +11 -0
  569. package/dist/components/eds-spinner.js +6 -0
  570. package/dist/components/eds-spinner2.js +72 -0
  571. package/dist/components/eds-splash-screen.d.ts +11 -0
  572. package/dist/components/eds-splash-screen.js +6 -0
  573. package/dist/components/eds-splash-screen2.js +89 -0
  574. package/dist/components/eds-steps-v2.d.ts +11 -0
  575. package/dist/components/eds-steps-v2.js +137 -0
  576. package/dist/components/eds-steps.d.ts +11 -0
  577. package/dist/components/eds-steps.js +6 -0
  578. package/dist/components/{eds-steps.entry.js → eds-steps2.js} +44 -10
  579. package/dist/components/eds-switch.d.ts +11 -0
  580. package/dist/components/eds-switch.js +65 -0
  581. package/dist/components/eds-table.d.ts +11 -0
  582. package/dist/components/eds-table.js +6 -0
  583. package/dist/components/{eds-table.entry.js → eds-table2.js} +109 -14
  584. package/dist/components/eds-tabs.d.ts +11 -0
  585. package/dist/components/eds-tabs.js +152 -0
  586. package/dist/components/eds-tag.d.ts +11 -0
  587. package/dist/components/eds-tag.js +6 -0
  588. package/dist/components/eds-tag2.js +64 -0
  589. package/dist/components/eds-timeline.d.ts +11 -0
  590. package/dist/components/eds-timeline.js +119 -0
  591. package/dist/components/eds-toast-manager.d.ts +11 -0
  592. package/dist/components/eds-toast-manager.js +109 -0
  593. package/dist/components/eds-toast.d.ts +11 -0
  594. package/dist/components/eds-toast.js +6 -0
  595. package/dist/components/eds-toast2.js +105 -0
  596. package/dist/components/eds-tooltip.d.ts +11 -0
  597. package/dist/components/eds-tooltip.js +48 -0
  598. package/dist/components/eds-trl.d.ts +11 -0
  599. package/dist/components/eds-trl.js +138 -0
  600. package/dist/components/eds-user.d.ts +11 -0
  601. package/dist/components/eds-user.js +97 -0
  602. package/dist/components/eu.js +30 -0
  603. package/dist/components/facebook.js +14 -0
  604. package/dist/components/gradient-primary-palette.d.ts +11 -0
  605. package/dist/components/gradient-primary-palette.js +6 -0
  606. package/dist/components/gradient-secondary-palette.d.ts +11 -0
  607. package/dist/components/gradient-secondary-palette.js +6 -0
  608. package/dist/components/gradient-support-palette.d.ts +11 -0
  609. package/dist/components/gradient-support-palette.js +6 -0
  610. package/dist/components/incorrect-use-of-colors.d.ts +11 -0
  611. package/dist/components/incorrect-use-of-colors.js +81 -0
  612. package/dist/components/index.d.ts +33 -0
  613. package/dist/components/index.esm.js +0 -1
  614. package/dist/components/index.js +1 -0
  615. package/dist/components/linkedin.js +28 -0
  616. package/dist/components/loader.js +30 -0
  617. package/dist/components/logo-color-margins.js +118 -0
  618. package/dist/components/logo-color.js +115 -0
  619. package/dist/components/logo-space.d.ts +11 -0
  620. package/dist/components/logo-space.js +101 -0
  621. package/dist/components/logo-variations-horizontal.d.ts +11 -0
  622. package/dist/components/logo-variations-horizontal.js +6 -0
  623. package/dist/components/{logo-variations-horizontal.entry.js → logo-variations-horizontal2.js} +30 -8
  624. package/dist/components/logo-variations-tabs.d.ts +11 -0
  625. package/dist/components/logo-variations-tabs.js +60 -0
  626. package/dist/components/logo-variations-vertical.d.ts +11 -0
  627. package/dist/components/logo-variations-vertical.js +6 -0
  628. package/dist/components/{logo-variations-vertical.entry.js → logo-variations-vertical2.js} +33 -8
  629. package/dist/components/logo-white-no-bg.js +1029 -0
  630. package/dist/components/logo-wrong-usage.d.ts +11 -0
  631. package/dist/components/logo-wrong-usage.js +35 -0
  632. package/dist/components/mastodon.js +14 -0
  633. package/dist/components/menu.js +11 -0
  634. package/dist/components/minus.js +11 -0
  635. package/dist/components/mono.js +11 -0
  636. package/dist/components/more.js +13 -0
  637. package/dist/components/p-019555e2.entry.js +1 -0
  638. package/dist/components/p-024c7937.js +1 -0
  639. package/dist/components/p-04b4e9d0.entry.js +1 -0
  640. package/dist/components/p-05754401.js +1 -0
  641. package/dist/components/p-0863352c.entry.js +1 -0
  642. package/dist/components/p-0be28996.js +1 -0
  643. package/dist/components/p-0d6434e1.entry.js +1 -0
  644. package/dist/components/p-0e6d43c5.js +1 -0
  645. package/dist/components/p-0e94a89f.entry.js +1 -0
  646. package/dist/components/p-0ed92872.entry.js +1 -0
  647. package/dist/components/p-0eeddc13.entry.js +1 -0
  648. package/dist/components/p-100909ce.entry.js +1 -0
  649. package/dist/components/p-10db551c.entry.js +1 -0
  650. package/dist/components/p-112122d6.js +1 -0
  651. package/dist/components/p-124b8747.entry.js +1 -0
  652. package/dist/components/p-14a223fe.entry.js +1 -0
  653. package/dist/components/p-1661f33c.entry.js +1 -0
  654. package/dist/components/p-18ceadd2.entry.js +1 -0
  655. package/dist/components/p-1b2913c8.js +1 -0
  656. package/dist/components/p-1ded61bd.js +1 -0
  657. package/dist/components/p-2066b033.js +1 -0
  658. package/dist/components/p-2117611b.js +1 -0
  659. package/dist/components/p-223ba66e.entry.js +1 -0
  660. package/dist/components/p-24dab785.entry.js +1 -0
  661. package/dist/components/p-2692f93d.js +1 -0
  662. package/dist/components/p-26d6679b.entry.js +1 -0
  663. package/dist/components/p-2810d568.entry.js +1 -0
  664. package/dist/components/p-28ae3f3a.js +2 -0
  665. package/dist/components/p-29041952.js +1 -0
  666. package/dist/components/p-2b1b2026.entry.js +1 -0
  667. package/dist/components/p-2c571550.entry.js +1 -0
  668. package/dist/components/p-326d9e55.entry.js +1 -0
  669. package/dist/components/p-32e6c4df.js +1 -0
  670. package/dist/components/p-36d6134f.entry.js +1 -0
  671. package/dist/components/p-373119b3.js +1 -0
  672. package/dist/components/p-3c642a30.entry.js +1 -0
  673. package/dist/components/p-4587d0ef.js +1 -0
  674. package/dist/components/p-46619042.entry.js +1 -0
  675. package/dist/components/p-4687b64c.js +1 -0
  676. package/dist/components/p-46a6ab04.entry.js +1 -0
  677. package/dist/components/p-46d0716d.js +1 -0
  678. package/dist/components/p-50e27321.js +1 -0
  679. package/dist/components/p-50ea5b07.entry.js +1 -0
  680. package/dist/components/p-511b23ec.entry.js +1 -0
  681. package/dist/components/p-5462923d.entry.js +1 -0
  682. package/dist/components/p-54b8f143.js +1 -0
  683. package/dist/components/p-5ab1d64a.js +1 -0
  684. package/dist/components/p-5d046674.js +1 -0
  685. package/dist/components/p-6199b8c0.entry.js +1 -0
  686. package/dist/components/p-624e653e.entry.js +1 -0
  687. package/dist/components/p-682f7376.entry.js +1 -0
  688. package/dist/components/p-6907a47c.entry.js +1 -0
  689. package/dist/components/p-694fc085.js +1 -0
  690. package/dist/components/p-69c5074b.js +1 -0
  691. package/dist/components/p-6ba42d02.entry.js +1 -0
  692. package/dist/components/p-6e929acb.entry.js +1 -0
  693. package/dist/components/p-6ede7101.entry.js +1 -0
  694. package/dist/components/p-70bac015.entry.js +1 -0
  695. package/dist/components/p-7198c024.js +1 -0
  696. package/dist/components/p-7af6b832.entry.js +1 -0
  697. package/dist/components/p-7f31622d.entry.js +1 -0
  698. package/dist/components/p-81899237.js +1 -0
  699. package/dist/components/p-822ac246.entry.js +1 -0
  700. package/dist/components/p-83ff4a95.js +1 -0
  701. package/dist/components/p-848506b8.entry.js +1 -0
  702. package/dist/components/p-84fd3e40.entry.js +1 -0
  703. package/dist/components/p-85634ad2.entry.js +1 -0
  704. package/dist/components/p-86bb73dc.js +1 -0
  705. package/dist/components/p-8983de37.js +1 -0
  706. package/dist/components/p-8ad05566.entry.js +1 -0
  707. package/dist/components/p-8b016d76.entry.js +1 -0
  708. package/dist/components/p-8bdf5841.entry.js +1 -0
  709. package/dist/components/p-8ff39cef.entry.js +1 -0
  710. package/dist/components/p-9c5a453b.js +1 -0
  711. package/dist/components/p-a4f552b2.entry.js +1 -0
  712. package/dist/components/p-a81cba86.entry.js +1 -0
  713. package/dist/components/p-abb2ad00.entry.js +1 -0
  714. package/dist/components/p-adbd0d7b.entry.js +1 -0
  715. package/dist/components/p-aefcb641.js +1 -0
  716. package/dist/components/p-affe2b55.entry.js +1 -0
  717. package/dist/components/p-b31591db.entry.js +1 -0
  718. package/dist/components/p-b4abff90.entry.js +1 -0
  719. package/dist/components/p-b50fc0d7.entry.js +1 -0
  720. package/dist/components/p-b73410de.js +1 -0
  721. package/dist/components/p-b7efd666.entry.js +1 -0
  722. package/dist/components/p-b822abb7.js +1 -0
  723. package/dist/components/p-ba720bf3.js +1 -0
  724. package/dist/components/p-ba784274.entry.js +1 -0
  725. package/dist/components/p-bb9af709.entry.js +1 -0
  726. package/dist/components/p-bfc62d3e.entry.js +1 -0
  727. package/dist/components/p-c0b22803.entry.js +1 -0
  728. package/dist/components/p-c1e4ef92.js +1 -0
  729. package/dist/components/p-c776b6f8.js +1 -0
  730. package/dist/components/p-c8e7c854.js +1 -0
  731. package/dist/components/p-cdd491f5.entry.js +1 -0
  732. package/dist/components/p-cde3d7a4.entry.js +1 -0
  733. package/dist/components/p-cdf19579.js +1 -0
  734. package/dist/components/p-cfccddc3.entry.js +1 -0
  735. package/dist/components/p-d15065c3.js +1 -0
  736. package/dist/components/p-d268c96b.entry.js +1 -0
  737. package/dist/components/p-d437bae2.entry.js +1 -0
  738. package/dist/components/p-d456e649.entry.js +1 -0
  739. package/dist/components/p-d962849c.js +1 -0
  740. package/dist/components/p-dae8f66a.entry.js +1 -0
  741. package/dist/components/p-e1255160.js +1 -0
  742. package/dist/components/p-e1791844.entry.js +1 -0
  743. package/dist/components/p-e2d5a487.js +1 -0
  744. package/dist/components/p-e82edd4a.entry.js +1 -0
  745. package/dist/components/p-e9f608a8.entry.js +1 -0
  746. package/dist/components/p-ea97a94e.entry.js +9 -0
  747. package/dist/components/p-eac593ee.entry.js +1 -0
  748. package/dist/components/p-ecbb679f.js +1 -0
  749. package/dist/components/p-ece618b3.js +1 -0
  750. package/dist/components/p-f26fd186.entry.js +1 -0
  751. package/dist/components/p-f2c23162.entry.js +1 -0
  752. package/dist/components/p-fc4edb18.entry.js +1 -0
  753. package/dist/components/p-fe1cba17.entry.js +1 -0
  754. package/dist/components/paper.js +15 -0
  755. package/dist/components/plus.js +12 -0
  756. package/dist/components/portal.js +18 -0
  757. package/dist/components/primary.js +65 -0
  758. package/dist/components/primary2.js +67 -0
  759. package/dist/components/private.js +25 -0
  760. package/dist/components/public.js +16 -0
  761. package/dist/components/search.js +12 -0
  762. package/dist/components/secondary.js +92 -0
  763. package/dist/components/secondary2.js +107 -0
  764. package/dist/components/star.js +5 -0
  765. package/dist/components/success.js +18 -0
  766. package/dist/components/support.js +94 -0
  767. package/dist/components/support2.js +85 -0
  768. package/dist/components/svg-repository.d.ts +11 -0
  769. package/dist/components/svg-repository.js +417 -0
  770. package/dist/components/thumbs-down.js +5 -0
  771. package/dist/components/thumbs-up.js +6 -0
  772. package/dist/components/token-list.d.ts +11 -0
  773. package/dist/components/token-list.js +6 -0
  774. package/dist/components/{token-list.entry.js → token-list2.js} +35 -7
  775. package/dist/components/token-radii.d.ts +11 -0
  776. package/dist/components/token-radii.js +6 -0
  777. package/dist/components/token-radii2.js +47 -0
  778. package/dist/components/token-ratios.d.ts +11 -0
  779. package/dist/components/token-ratios.js +54 -0
  780. package/dist/components/token-shadows.d.ts +11 -0
  781. package/dist/components/token-shadows.js +6 -0
  782. package/dist/components/token-shadows2.js +56 -0
  783. package/dist/components/token-spacing.d.ts +11 -0
  784. package/dist/components/token-spacing.js +29 -0
  785. package/dist/components/token-typography.d.ts +11 -0
  786. package/dist/components/token-typography.js +255 -0
  787. package/dist/components/tutotial.js +27 -0
  788. package/dist/components/twitter.js +14 -0
  789. package/dist/components/unknown.js +22 -0
  790. package/dist/components/up-and-down.js +12 -0
  791. package/dist/components/user.js +16 -0
  792. package/dist/components/youtube.js +14 -0
  793. package/dist/esm/analytics-d99780e3.js +56 -0
  794. package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
  795. package/dist/esm/arrow-right-9322ba8a.js +5 -0
  796. package/dist/esm/bluesky-cc5edd2d.js +14 -0
  797. package/dist/esm/bookmark-c200037c.js +16 -0
  798. package/dist/esm/chevron-down-6144c823.js +12 -0
  799. package/dist/esm/chevron-left-ca6c66e1.js +11 -0
  800. package/dist/esm/chevron-right-b88ed2d4.js +5 -0
  801. package/dist/esm/chevron-up-c66bd477.js +12 -0
  802. package/dist/esm/close-87fc0d63.js +5 -0
  803. package/dist/esm/color-primary-palette_6.entry.js +331 -0
  804. package/dist/{components → esm}/components-section.entry.js +23 -17
  805. package/dist/esm/components.js +20 -0
  806. package/dist/esm/copy-03b72cb6.js +5 -0
  807. package/dist/{components → esm}/correct-use-of-colors.entry.js +2 -2
  808. package/dist/{components → esm}/docs-palettes.entry.js +2 -2
  809. package/dist/{components → esm}/docs-tokens.entry.js +2 -2
  810. package/dist/{components → esm}/eds-accordion.entry.js +7 -6
  811. package/dist/esm/eds-alert.entry.js +100 -0
  812. package/dist/{components → esm}/eds-app-root.entry.js +2 -2
  813. package/dist/esm/eds-avatar_34.entry.js +2694 -0
  814. package/dist/esm/eds-card-project.entry.js +192 -0
  815. package/dist/{components → esm}/eds-card-section.entry.js +4 -3
  816. package/dist/{components → esm}/eds-card-tags.entry.js +4 -3
  817. package/dist/{components → esm}/eds-card-tool.entry.js +5 -4
  818. package/dist/{components → esm}/eds-code-block.entry.js +5 -35
  819. package/dist/{components → esm}/eds-cookies-preference.entry.js +4 -3
  820. package/dist/{components → esm}/eds-feedback.entry.js +10 -4
  821. package/dist/{components → esm}/eds-frame.entry.js +5 -4
  822. package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
  823. package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
  824. package/dist/esm/eds-icon-bluesky.entry.js +14 -0
  825. package/dist/esm/eds-icon-bookmark.entry.js +14 -0
  826. package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
  827. package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
  828. package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
  829. package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
  830. package/dist/esm/eds-icon-close.entry.js +14 -0
  831. package/dist/esm/eds-icon-copy.entry.js +14 -0
  832. package/dist/esm/eds-icon-eu.entry.js +14 -0
  833. package/dist/esm/eds-icon-external.entry.js +14 -0
  834. package/dist/esm/eds-icon-facebook.entry.js +14 -0
  835. package/dist/esm/eds-icon-gitlab.entry.js +14 -0
  836. package/dist/esm/eds-icon-linkedin.entry.js +14 -0
  837. package/dist/esm/eds-icon-loader.entry.js +14 -0
  838. package/dist/esm/eds-icon-mastodon.entry.js +14 -0
  839. package/dist/esm/eds-icon-menu.entry.js +14 -0
  840. package/dist/esm/eds-icon-minus.entry.js +14 -0
  841. package/dist/esm/eds-icon-more.entry.js +14 -0
  842. package/dist/esm/eds-icon-paper.entry.js +14 -0
  843. package/dist/esm/eds-icon-plus.entry.js +14 -0
  844. package/dist/esm/eds-icon-portal.entry.js +14 -0
  845. package/dist/esm/eds-icon-private.entry.js +14 -0
  846. package/dist/esm/eds-icon-public.entry.js +14 -0
  847. package/dist/esm/eds-icon-search.entry.js +14 -0
  848. package/dist/esm/eds-icon-star.entry.js +14 -0
  849. package/dist/esm/eds-icon-success.entry.js +14 -0
  850. package/dist/esm/eds-icon-thumbs-down.entry.js +14 -0
  851. package/dist/esm/eds-icon-thumbs-up.entry.js +14 -0
  852. package/dist/esm/eds-icon-tutorial.entry.js +14 -0
  853. package/dist/esm/eds-icon-twitter.entry.js +14 -0
  854. package/dist/esm/eds-icon-unknown.entry.js +14 -0
  855. package/dist/esm/eds-icon-updown.entry.js +14 -0
  856. package/dist/esm/eds-icon-user.entry.js +14 -0
  857. package/dist/esm/eds-icon-youtube.entry.js +14 -0
  858. package/dist/{components → esm}/eds-matomo-notice.entry.js +12 -9
  859. package/dist/esm/eds-pagination_2.entry.js +398 -0
  860. package/dist/esm/eds-progress-bar.entry.js +52 -0
  861. package/dist/{components → esm}/eds-rating.entry.js +4 -3
  862. package/dist/{components/eds-section-heading.entry.js → esm/eds-section-core_2.entry.js} +21 -4
  863. package/dist/{components → esm}/eds-spinner.entry.js +4 -3
  864. package/dist/{components → esm}/eds-splash-screen.entry.js +3 -2
  865. package/dist/esm/eds-switch.entry.js +42 -0
  866. package/dist/esm/eds-timeline.entry.js +59 -0
  867. package/dist/{components → esm}/eds-toast-manager.entry.js +34 -4
  868. package/dist/{components → esm}/eds-toast.entry.js +8 -6
  869. package/dist/{components → esm}/eds-trl.entry.js +2 -2
  870. package/dist/esm/eu-9ddde93a.js +30 -0
  871. package/dist/esm/facebook-9cb5c17f.js +14 -0
  872. package/dist/esm/incorrect-use-of-colors.entry.js +46 -0
  873. package/dist/esm/index-39c58238.js +46 -0
  874. package/dist/esm/index-fdb33359.js +1912 -0
  875. package/dist/esm/index.js +1 -0
  876. package/dist/esm/linkedin-e8650abb.js +28 -0
  877. package/dist/esm/loader-c9628637.js +30 -0
  878. package/dist/esm/loader.js +11 -0
  879. package/dist/esm/logo-color-7f1fd803.js +115 -0
  880. package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
  881. package/dist/{components → esm}/logo-space.entry.js +5 -4
  882. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  883. package/dist/{components → esm}/logo-variations-tabs.entry.js +2 -2
  884. package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
  885. package/dist/{components → esm}/logo-wrong-usage.entry.js +5 -4
  886. package/dist/esm/mastodon-3703ec61.js +14 -0
  887. package/dist/esm/menu-340ea948.js +11 -0
  888. package/dist/esm/minus-b30a7c71.js +11 -0
  889. package/dist/esm/mono-53f70232.js +11 -0
  890. package/dist/esm/more-4449d549.js +13 -0
  891. package/dist/esm/paper-8e74ea31.js +15 -0
  892. package/dist/esm/plus-89c07be2.js +12 -0
  893. package/dist/esm/portal-d6c8ce56.js +18 -0
  894. package/dist/esm/private-1c25ff8e.js +25 -0
  895. package/dist/esm/public-d4d8c585.js +16 -0
  896. package/dist/esm/search-fbcd79c2.js +12 -0
  897. package/dist/esm/sharedUtils-a550989c.js +19 -0
  898. package/dist/esm/star-0da9b5e9.js +5 -0
  899. package/dist/esm/success-443809da.js +18 -0
  900. package/dist/esm/svg-repository.entry.js +333 -0
  901. package/dist/esm/thumbs-down-a18fd049.js +5 -0
  902. package/dist/esm/thumbs-up-c19a71bc.js +6 -0
  903. package/dist/esm/token-list_3.entry.js +294 -0
  904. package/dist/{components → esm}/token-ratios.entry.js +2 -2
  905. package/dist/{components → esm}/token-typography.entry.js +2 -2
  906. package/dist/esm/tutotial-150ee1fd.js +27 -0
  907. package/dist/esm/twitter-ac21b505.js +14 -0
  908. package/dist/esm/unknown-ed01a24c.js +22 -0
  909. package/dist/esm/up-and-down-d747abee.js +12 -0
  910. package/dist/esm/user-71ebdc15.js +16 -0
  911. package/dist/esm/youtube-efbfbdc4.js +14 -0
  912. package/dist/hydrate/index.d.ts +242 -0
  913. package/dist/hydrate/index.js +30683 -0
  914. package/dist/hydrate/index.mjs +30675 -0
  915. package/dist/hydrate/package.json +12 -0
  916. package/dist/index.cjs.js +1 -0
  917. package/dist/index.js +1 -0
  918. package/dist/stencil.config.js +75 -0
  919. package/dist/types/components/eds-avatar/eds-avatar.d.ts +3 -4
  920. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +2 -1
  921. package/dist/types/components/eds-block-break/eds-block-break.d.ts +2 -7
  922. package/dist/types/components/eds-button/eds-button.d.ts +0 -1
  923. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +0 -5
  924. package/dist/types/components/eds-charts/eds-gauge/eds-gauge.d.ts +14 -0
  925. package/dist/types/components/eds-charts/eds-gauge/eds-gauge.stories.d.ts +52 -0
  926. package/dist/types/components/eds-charts/eds-pie/eds-pie.d.ts +28 -0
  927. package/dist/types/components/eds-charts/eds-pie/eds-pie.stories.d.ts +60 -0
  928. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +18 -116
  929. package/dist/types/components/eds-input-field/eds-input-field.d.ts +6 -0
  930. package/dist/types/components/eds-modal/eds-modal.d.ts +12 -12
  931. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +17 -0
  932. package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +3 -3
  933. package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +3 -0
  934. package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +3 -0
  935. package/dist/types/components/eds-switch/eds-switch.d.ts +2 -1
  936. package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -8
  937. package/dist/types/components/eds-timeline/eds-timeline.d.ts +3 -0
  938. package/dist/types/components/eds-toast/eds-toast.d.ts +3 -2
  939. package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +2 -36
  940. package/dist/types/components.d.ts +226 -256
  941. package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +4 -0
  942. package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +8 -4
  943. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +10 -0
  944. package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +10 -0
  945. package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -1
  946. package/dist/types/shared-ui/eds-header/eds-header.d.ts +6 -25
  947. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +6 -3
  948. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -1
  949. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -5
  950. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +48 -0
  951. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +0 -1
  952. package/loader/cdn.js +1 -0
  953. package/loader/index.cjs.js +1 -0
  954. package/loader/index.d.ts +24 -0
  955. package/loader/index.es2017.js +1 -0
  956. package/loader/index.js +2 -0
  957. package/loader/package.json +11 -0
  958. package/package.json +14 -4
  959. package/dist/components/eds-alert.entry.js +0 -99
  960. package/dist/components/eds-avatar.entry.js +0 -76
  961. package/dist/components/eds-block-break.entry.js +0 -16
  962. package/dist/components/eds-button.entry.js +0 -228
  963. package/dist/components/eds-card-desc.entry.js +0 -22
  964. package/dist/components/eds-card-project.entry.js +0 -64
  965. package/dist/components/eds-card-wrapper.entry.js +0 -28
  966. package/dist/components/eds-footer.entry.js +0 -42
  967. package/dist/components/eds-header.entry.js +0 -76
  968. package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
  969. package/dist/components/eds-icon-arrow-right.entry.js +0 -14
  970. package/dist/components/eds-icon-bluesky.entry.js +0 -14
  971. package/dist/components/eds-icon-bookmark.entry.js +0 -14
  972. package/dist/components/eds-icon-chevron-down.entry.js +0 -14
  973. package/dist/components/eds-icon-chevron-left.entry.js +0 -14
  974. package/dist/components/eds-icon-chevron-right.entry.js +0 -14
  975. package/dist/components/eds-icon-chevron-up.entry.js +0 -14
  976. package/dist/components/eds-icon-close.entry.js +0 -14
  977. package/dist/components/eds-icon-copy.entry.js +0 -14
  978. package/dist/components/eds-icon-eu.entry.js +0 -14
  979. package/dist/components/eds-icon-external.entry.js +0 -14
  980. package/dist/components/eds-icon-facebook.entry.js +0 -14
  981. package/dist/components/eds-icon-gitlab.entry.js +0 -14
  982. package/dist/components/eds-icon-linkedin.entry.js +0 -14
  983. package/dist/components/eds-icon-loader.entry.js +0 -14
  984. package/dist/components/eds-icon-mastodon.entry.js +0 -14
  985. package/dist/components/eds-icon-menu.entry.js +0 -14
  986. package/dist/components/eds-icon-minus.entry.js +0 -14
  987. package/dist/components/eds-icon-more.entry.js +0 -14
  988. package/dist/components/eds-icon-paper.entry.js +0 -14
  989. package/dist/components/eds-icon-plus.entry.js +0 -14
  990. package/dist/components/eds-icon-portal.entry.js +0 -14
  991. package/dist/components/eds-icon-private.entry.js +0 -14
  992. package/dist/components/eds-icon-public.entry.js +0 -14
  993. package/dist/components/eds-icon-search.entry.js +0 -14
  994. package/dist/components/eds-icon-star.entry.js +0 -14
  995. package/dist/components/eds-icon-success.entry.js +0 -14
  996. package/dist/components/eds-icon-thumbs-down.entry.js +0 -14
  997. package/dist/components/eds-icon-thumbs-up.entry.js +0 -14
  998. package/dist/components/eds-icon-tutorial.entry.js +0 -14
  999. package/dist/components/eds-icon-twitter.entry.js +0 -14
  1000. package/dist/components/eds-icon-unknown.entry.js +0 -14
  1001. package/dist/components/eds-icon-updown.entry.js +0 -14
  1002. package/dist/components/eds-icon-user.entry.js +0 -14
  1003. package/dist/components/eds-icon-youtube.entry.js +0 -14
  1004. package/dist/components/eds-input-footer.entry.js +0 -17
  1005. package/dist/components/eds-input-label.entry.js +0 -16
  1006. package/dist/components/eds-input-select.entry.js +0 -97
  1007. package/dist/components/eds-link.entry.js +0 -217
  1008. package/dist/components/eds-login.entry.js +0 -2052
  1009. package/dist/components/eds-modal.entry.js +0 -104
  1010. package/dist/components/eds-progress-bar.entry.js +0 -24
  1011. package/dist/components/eds-section-core.entry.js +0 -19
  1012. package/dist/components/eds-steps-v2.entry.js +0 -91
  1013. package/dist/components/eds-switch.entry.js +0 -33
  1014. package/dist/components/eds-tabs.entry.js +0 -125
  1015. package/dist/components/eds-tag.entry.js +0 -44
  1016. package/dist/components/eds-timeline.entry.js +0 -58
  1017. package/dist/components/eds-tooltip.entry.js +0 -104
  1018. package/dist/components/eds-user.entry.js +0 -40
  1019. package/dist/components/gradient-secondary-palette.entry.js +0 -75
  1020. package/dist/components/gradient-support-palette.entry.js +0 -59
  1021. package/dist/components/incorrect-use-of-colors.entry.js +0 -46
  1022. package/dist/components/index-9d277061.js +0 -3023
  1023. package/dist/components/shadow-css-423dab2c.js +0 -332
  1024. package/dist/components/token-shadows.entry.js +0 -30
  1025. package/dist/components/token-spacing.entry.js +0 -12
  1026. package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +0 -23
  1027. package/dist/types/shared-ui/eds-login/eds-login.d.ts +0 -67
  1028. package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +0 -33
  1029. /package/dist/components/{index-144c9ae8.js → index2.js} +0 -0
  1030. /package/dist/components/{sharedUtils-6a231dd4.js → sharedUtils.js} +0 -0
  1031. /package/dist/{components → esm}/app-globals-0f993ce5.js +0 -0
  1032. /package/dist/types/components/eds-section/eds-section-core/{eds-section-core.stories.d.ts → eds-section-core.donotstories.d.ts} +0 -0
  1033. /package/dist/types/components/eds-timeline/{eds-timeline.stories.d.ts → eds-timeline.donot-stories.d.ts} +0 -0
  1034. /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.d.ts +0 -0
  1035. /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.stories.d.ts +0 -0
@@ -1,3023 +0,0 @@
1
- const NAMESPACE = 'components';
2
- const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: true, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: true, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
3
- const Env = /* components */ {};
4
-
5
- /*
6
- Stencil Client Platform v4.22.0 | MIT Licensed | https://stenciljs.com
7
- */
8
- var __defProp = Object.defineProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var Build = {
14
- isDev: BUILD.isDev ? true : false,
15
- isBrowser: true,
16
- isServer: false,
17
- isTesting: BUILD.isTesting ? true : false
18
- };
19
- var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
20
- var getHostRef = (ref) => hostRefs.get(ref);
21
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
- var registerHost = (hostElement, cmpMeta) => {
23
- const hostRef = {
24
- $flags$: 0,
25
- $hostElement$: hostElement,
26
- $cmpMeta$: cmpMeta,
27
- $instanceValues$: /* @__PURE__ */ new Map()
28
- };
29
- if (BUILD.isDev) {
30
- hostRef.$renderCount$ = 0;
31
- }
32
- if (BUILD.method && BUILD.lazyLoad) {
33
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
34
- }
35
- if (BUILD.asyncLoading) {
36
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
37
- hostElement["s-p"] = [];
38
- hostElement["s-rc"] = [];
39
- }
40
- return hostRefs.set(hostElement, hostRef);
41
- };
42
- var isMemberInElement = (elm, memberName) => memberName in elm;
43
- var customError;
44
- var consoleError = (e, el) => (customError || console.error)(e, el);
45
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
46
- "%cstencil",
47
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
48
- ];
49
- var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
50
- var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
51
- var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
52
- var setErrorHandler = (handler) => customError = handler;
53
-
54
- // src/client/client-load-module.ts
55
- var cmpModules = /* @__PURE__ */ new Map();
56
- var MODULE_IMPORT_PREFIX = "./";
57
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
58
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
59
- const bundleId = cmpMeta.$lazyBundleId$;
60
- if (BUILD.isDev && typeof bundleId !== "string") {
61
- consoleDevError(
62
- `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
63
- );
64
- return void 0;
65
- } else if (!bundleId) {
66
- return void 0;
67
- }
68
- const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
69
- if (module) {
70
- return module[exportName];
71
- }
72
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
73
- return import(
74
- /* @vite-ignore */
75
- /* webpackInclude: /\.entry\.js$/ */
76
- /* webpackExclude: /\.system\.entry\.js$/ */
77
- /* webpackMode: "lazy" */
78
- `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
79
- ).then((importedModule) => {
80
- if (!BUILD.hotModuleReplacement) {
81
- cmpModules.set(bundleId, importedModule);
82
- }
83
- return importedModule[exportName];
84
- }, consoleError);
85
- };
86
-
87
- // src/client/client-style.ts
88
- var styles = /* @__PURE__ */ new Map();
89
- var modeResolutionChain = [];
90
-
91
- // src/runtime/runtime-constants.ts
92
- var CONTENT_REF_ID = "r";
93
- var ORG_LOCATION_ID = "o";
94
- var SLOT_NODE_ID = "s";
95
- var TEXT_NODE_ID = "t";
96
- var HYDRATE_ID = "s-id";
97
- var HYDRATED_STYLE_ID = "sty-id";
98
- var HYDRATE_CHILD_ID = "c-id";
99
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
100
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
101
- var XLINK_NS = "http://www.w3.org/1999/xlink";
102
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
103
- "formAssociatedCallback",
104
- "formResetCallback",
105
- "formDisabledCallback",
106
- "formStateRestoreCallback"
107
- ];
108
- var win = typeof window !== "undefined" ? window : {};
109
- var doc = win.document || { head: {} };
110
- var H = win.HTMLElement || class {
111
- };
112
- var plt = {
113
- $flags$: 0,
114
- $resourcesUrl$: "",
115
- jmp: (h2) => h2(),
116
- raf: (h2) => requestAnimationFrame(h2),
117
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
118
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
119
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
120
- };
121
- var setPlatformHelpers = (helpers) => {
122
- Object.assign(plt, helpers);
123
- };
124
- var supportsShadow = BUILD.shadowDom;
125
- var supportsListenerOptions = /* @__PURE__ */ (() => {
126
- let supportsListenerOptions2 = false;
127
- try {
128
- doc.addEventListener(
129
- "e",
130
- null,
131
- Object.defineProperty({}, "passive", {
132
- get() {
133
- supportsListenerOptions2 = true;
134
- }
135
- })
136
- );
137
- } catch (e) {
138
- }
139
- return supportsListenerOptions2;
140
- })();
141
- var promiseResolve = (v) => Promise.resolve(v);
142
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
143
- try {
144
- new CSSStyleSheet();
145
- return typeof new CSSStyleSheet().replaceSync === "function";
146
- } catch (e) {
147
- }
148
- return false;
149
- })() : false;
150
-
151
- // src/client/client-task-queue.ts
152
- var queueCongestion = 0;
153
- var queuePending = false;
154
- var queueDomReads = [];
155
- var queueDomWrites = [];
156
- var queueDomWritesLow = [];
157
- var queueTask = (queue, write) => (cb) => {
158
- queue.push(cb);
159
- if (!queuePending) {
160
- queuePending = true;
161
- if (write && plt.$flags$ & 4 /* queueSync */) {
162
- nextTick(flush);
163
- } else {
164
- plt.raf(flush);
165
- }
166
- }
167
- };
168
- var consume = (queue) => {
169
- for (let i2 = 0; i2 < queue.length; i2++) {
170
- try {
171
- queue[i2](performance.now());
172
- } catch (e) {
173
- consoleError(e);
174
- }
175
- }
176
- queue.length = 0;
177
- };
178
- var consumeTimeout = (queue, timeout) => {
179
- let i2 = 0;
180
- let ts = 0;
181
- while (i2 < queue.length && (ts = performance.now()) < timeout) {
182
- try {
183
- queue[i2++](ts);
184
- } catch (e) {
185
- consoleError(e);
186
- }
187
- }
188
- if (i2 === queue.length) {
189
- queue.length = 0;
190
- } else if (i2 !== 0) {
191
- queue.splice(0, i2);
192
- }
193
- };
194
- var flush = () => {
195
- if (BUILD.asyncQueue) {
196
- queueCongestion++;
197
- }
198
- consume(queueDomReads);
199
- if (BUILD.asyncQueue) {
200
- const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
201
- consumeTimeout(queueDomWrites, timeout);
202
- consumeTimeout(queueDomWritesLow, timeout);
203
- if (queueDomWrites.length > 0) {
204
- queueDomWritesLow.push(...queueDomWrites);
205
- queueDomWrites.length = 0;
206
- }
207
- if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
208
- plt.raf(flush);
209
- } else {
210
- queueCongestion = 0;
211
- }
212
- } else {
213
- consume(queueDomWrites);
214
- if (queuePending = queueDomReads.length > 0) {
215
- plt.raf(flush);
216
- }
217
- }
218
- };
219
- var nextTick = (cb) => promiseResolve().then(cb);
220
- var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
221
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
222
-
223
- // src/runtime/asset-path.ts
224
- var getAssetPath = (path) => {
225
- const assetUrl = new URL(path, plt.$resourcesUrl$);
226
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
227
- };
228
- var setAssetPath = (path) => plt.$resourcesUrl$ = path;
229
-
230
- // src/utils/constants.ts
231
- var EMPTY_OBJ = {};
232
- var SVG_NS = "http://www.w3.org/2000/svg";
233
- var HTML_NS = "http://www.w3.org/1999/xhtml";
234
-
235
- // src/utils/helpers.ts
236
- var isDef = (v) => v != null;
237
- var isComplexType = (o) => {
238
- o = typeof o;
239
- return o === "object" || o === "function";
240
- };
241
-
242
- // src/utils/query-nonce-meta-tag-content.ts
243
- function queryNonceMetaTagContent(doc2) {
244
- var _a, _b, _c;
245
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
246
- }
247
-
248
- // src/utils/result.ts
249
- var result_exports = {};
250
- __export(result_exports, {
251
- err: () => err,
252
- map: () => map,
253
- ok: () => ok,
254
- unwrap: () => unwrap,
255
- unwrapErr: () => unwrapErr
256
- });
257
- var ok = (value) => ({
258
- isOk: true,
259
- isErr: false,
260
- value
261
- });
262
- var err = (value) => ({
263
- isOk: false,
264
- isErr: true,
265
- value
266
- });
267
- function map(result, fn) {
268
- if (result.isOk) {
269
- const val = fn(result.value);
270
- if (val instanceof Promise) {
271
- return val.then((newVal) => ok(newVal));
272
- } else {
273
- return ok(val);
274
- }
275
- }
276
- if (result.isErr) {
277
- const value = result.value;
278
- return err(value);
279
- }
280
- throw "should never get here";
281
- }
282
- var unwrap = (result) => {
283
- if (result.isOk) {
284
- return result.value;
285
- } else {
286
- throw result.value;
287
- }
288
- };
289
- var unwrapErr = (result) => {
290
- if (result.isErr) {
291
- return result.value;
292
- } else {
293
- throw result.value;
294
- }
295
- };
296
- var i = 0;
297
- var createTime = (fnName, tagName = "") => {
298
- if (BUILD.profile && performance.mark) {
299
- const key = `st:${fnName}:${tagName}:${i++}`;
300
- performance.mark(key);
301
- return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
302
- } else {
303
- return () => {
304
- return;
305
- };
306
- }
307
- };
308
- var uniqueTime = (key, measureText) => {
309
- if (BUILD.profile && performance.mark) {
310
- if (performance.getEntriesByName(key, "mark").length === 0) {
311
- performance.mark(key);
312
- }
313
- return () => {
314
- if (performance.getEntriesByName(measureText, "measure").length === 0) {
315
- performance.measure(measureText, key);
316
- }
317
- };
318
- } else {
319
- return () => {
320
- return;
321
- };
322
- }
323
- };
324
- var inspect = (ref) => {
325
- const hostRef = getHostRef(ref);
326
- if (!hostRef) {
327
- return void 0;
328
- }
329
- const flags = hostRef.$flags$;
330
- const hostElement = hostRef.$hostElement$;
331
- return {
332
- renderCount: hostRef.$renderCount$,
333
- flags: {
334
- hasRendered: !!(flags & 2 /* hasRendered */),
335
- hasConnected: !!(flags & 1 /* hasConnected */),
336
- isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
337
- isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
338
- isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
339
- hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
340
- hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
341
- isWatchReady: !!(flags & 128 /* isWatchReady */),
342
- isListenReady: !!(flags & 256 /* isListenReady */),
343
- needsRerender: !!(flags & 512 /* needsRerender */)
344
- },
345
- instanceValues: hostRef.$instanceValues$,
346
- ancestorComponent: hostRef.$ancestorComponent$,
347
- hostElement,
348
- lazyInstance: hostRef.$lazyInstance$,
349
- vnode: hostRef.$vnode$,
350
- modeName: hostRef.$modeName$,
351
- onReadyPromise: hostRef.$onReadyPromise$,
352
- onReadyResolve: hostRef.$onReadyResolve$,
353
- onInstancePromise: hostRef.$onInstancePromise$,
354
- onInstanceResolve: hostRef.$onInstanceResolve$,
355
- onRenderResolve: hostRef.$onRenderResolve$,
356
- queuedListeners: hostRef.$queuedListeners$,
357
- rmListeners: hostRef.$rmListeners$,
358
- ["s-id"]: hostElement["s-id"],
359
- ["s-cr"]: hostElement["s-cr"],
360
- ["s-lr"]: hostElement["s-lr"],
361
- ["s-p"]: hostElement["s-p"],
362
- ["s-rc"]: hostElement["s-rc"],
363
- ["s-sc"]: hostElement["s-sc"]
364
- };
365
- };
366
- var installDevTools = () => {
367
- if (BUILD.devTools) {
368
- const stencil = win.stencil = win.stencil || {};
369
- const originalInspect = stencil.inspect;
370
- stencil.inspect = (ref) => {
371
- let result = inspect(ref);
372
- if (!result && typeof originalInspect === "function") {
373
- result = originalInspect(ref);
374
- }
375
- return result;
376
- };
377
- }
378
- };
379
- var h = (nodeName, vnodeData, ...children) => {
380
- let child = null;
381
- let key = null;
382
- let slotName = null;
383
- let simple = false;
384
- let lastSimple = false;
385
- const vNodeChildren = [];
386
- const walk = (c) => {
387
- for (let i2 = 0; i2 < c.length; i2++) {
388
- child = c[i2];
389
- if (Array.isArray(child)) {
390
- walk(child);
391
- } else if (child != null && typeof child !== "boolean") {
392
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
393
- child = String(child);
394
- } else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
395
- consoleDevError(`vNode passed as children has unexpected type.
396
- Make sure it's using the correct h() function.
397
- Empty objects can also be the cause, look for JSX comments that became objects.`);
398
- }
399
- if (simple && lastSimple) {
400
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
401
- } else {
402
- vNodeChildren.push(simple ? newVNode(null, child) : child);
403
- }
404
- lastSimple = simple;
405
- }
406
- }
407
- };
408
- walk(children);
409
- if (vnodeData) {
410
- if (BUILD.isDev && nodeName === "input") {
411
- validateInputProperties(vnodeData);
412
- }
413
- if (BUILD.vdomKey && vnodeData.key) {
414
- key = vnodeData.key;
415
- }
416
- if (BUILD.slotRelocation && vnodeData.name) {
417
- slotName = vnodeData.name;
418
- }
419
- if (BUILD.vdomClass) {
420
- const classData = vnodeData.className || vnodeData.class;
421
- if (classData) {
422
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
423
- }
424
- }
425
- }
426
- if (BUILD.isDev && vNodeChildren.some(isHost)) {
427
- consoleDevError(`The <Host> must be the single root component. Make sure:
428
- - You are NOT using hostData() and <Host> in the same component.
429
- - <Host> is used once, and it's the single root component of the render() function.`);
430
- }
431
- if (BUILD.vdomFunctional && typeof nodeName === "function") {
432
- return nodeName(
433
- vnodeData === null ? {} : vnodeData,
434
- vNodeChildren,
435
- vdomFnUtils
436
- );
437
- }
438
- const vnode = newVNode(nodeName, null);
439
- vnode.$attrs$ = vnodeData;
440
- if (vNodeChildren.length > 0) {
441
- vnode.$children$ = vNodeChildren;
442
- }
443
- if (BUILD.vdomKey) {
444
- vnode.$key$ = key;
445
- }
446
- if (BUILD.slotRelocation) {
447
- vnode.$name$ = slotName;
448
- }
449
- return vnode;
450
- };
451
- var newVNode = (tag, text) => {
452
- const vnode = {
453
- $flags$: 0,
454
- $tag$: tag,
455
- $text$: text,
456
- $elm$: null,
457
- $children$: null
458
- };
459
- if (BUILD.vdomAttribute) {
460
- vnode.$attrs$ = null;
461
- }
462
- if (BUILD.vdomKey) {
463
- vnode.$key$ = null;
464
- }
465
- if (BUILD.slotRelocation) {
466
- vnode.$name$ = null;
467
- }
468
- return vnode;
469
- };
470
- var Host = {};
471
- var isHost = (node) => node && node.$tag$ === Host;
472
- var vdomFnUtils = {
473
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
474
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
475
- };
476
- var convertToPublic = (node) => ({
477
- vattrs: node.$attrs$,
478
- vchildren: node.$children$,
479
- vkey: node.$key$,
480
- vname: node.$name$,
481
- vtag: node.$tag$,
482
- vtext: node.$text$
483
- });
484
- var convertToPrivate = (node) => {
485
- if (typeof node.vtag === "function") {
486
- const vnodeData = { ...node.vattrs };
487
- if (node.vkey) {
488
- vnodeData.key = node.vkey;
489
- }
490
- if (node.vname) {
491
- vnodeData.name = node.vname;
492
- }
493
- return h(node.vtag, vnodeData, ...node.vchildren || []);
494
- }
495
- const vnode = newVNode(node.vtag, node.vtext);
496
- vnode.$attrs$ = node.vattrs;
497
- vnode.$children$ = node.vchildren;
498
- vnode.$key$ = node.vkey;
499
- vnode.$name$ = node.vname;
500
- return vnode;
501
- };
502
- var validateInputProperties = (inputElm) => {
503
- const props = Object.keys(inputElm);
504
- const value = props.indexOf("value");
505
- if (value === -1) {
506
- return;
507
- }
508
- const typeIndex = props.indexOf("type");
509
- const minIndex = props.indexOf("min");
510
- const maxIndex = props.indexOf("max");
511
- const stepIndex = props.indexOf("step");
512
- if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
513
- consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
514
- }
515
- };
516
-
517
- // src/runtime/client-hydrate.ts
518
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
519
- const endHydrate = createTime("hydrateClient", tagName);
520
- const shadowRoot = hostElm.shadowRoot;
521
- const childRenderNodes = [];
522
- const slotNodes = [];
523
- const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
524
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
525
- if (!plt.$orgLocNodes$) {
526
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
527
- }
528
- hostElm[HYDRATE_ID] = hostId;
529
- hostElm.removeAttribute(HYDRATE_ID);
530
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
531
- childRenderNodes.map((c) => {
532
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
533
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
534
- const node = c.$elm$;
535
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
536
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
537
- }
538
- if (!shadowRoot) {
539
- node["s-hn"] = tagName;
540
- if (orgLocationNode) {
541
- node["s-ol"] = orgLocationNode;
542
- node["s-ol"]["s-nr"] = node;
543
- }
544
- }
545
- plt.$orgLocNodes$.delete(orgLocationId);
546
- });
547
- if (BUILD.shadowDom && shadowRoot) {
548
- shadowRootNodes.map((shadowRootNode) => {
549
- if (shadowRootNode) {
550
- shadowRoot.appendChild(shadowRootNode);
551
- }
552
- });
553
- }
554
- endHydrate();
555
- };
556
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
557
- let childNodeType;
558
- let childIdSplt;
559
- let childVNode;
560
- let i2;
561
- if (node.nodeType === 1 /* ElementNode */) {
562
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
563
- if (childNodeType) {
564
- childIdSplt = childNodeType.split(".");
565
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
566
- childVNode = {
567
- $flags$: 0,
568
- $hostId$: childIdSplt[0],
569
- $nodeId$: childIdSplt[1],
570
- $depth$: childIdSplt[2],
571
- $index$: childIdSplt[3],
572
- $tag$: node.tagName.toLowerCase(),
573
- $elm$: node,
574
- $attrs$: null,
575
- $children$: null,
576
- $key$: null,
577
- $name$: null,
578
- $text$: null
579
- };
580
- childRenderNodes.push(childVNode);
581
- node.removeAttribute(HYDRATE_CHILD_ID);
582
- if (!parentVNode.$children$) {
583
- parentVNode.$children$ = [];
584
- }
585
- parentVNode.$children$[childVNode.$index$] = childVNode;
586
- parentVNode = childVNode;
587
- if (shadowRootNodes && childVNode.$depth$ === "0") {
588
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
589
- }
590
- }
591
- }
592
- if (node.shadowRoot) {
593
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
594
- clientHydrate(
595
- parentVNode,
596
- childRenderNodes,
597
- slotNodes,
598
- shadowRootNodes,
599
- hostElm,
600
- node.shadowRoot.childNodes[i2],
601
- hostId
602
- );
603
- }
604
- }
605
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
606
- clientHydrate(
607
- parentVNode,
608
- childRenderNodes,
609
- slotNodes,
610
- shadowRootNodes,
611
- hostElm,
612
- node.childNodes[i2],
613
- hostId
614
- );
615
- }
616
- } else if (node.nodeType === 8 /* CommentNode */) {
617
- childIdSplt = node.nodeValue.split(".");
618
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
619
- childNodeType = childIdSplt[0];
620
- childVNode = {
621
- $flags$: 0,
622
- $hostId$: childIdSplt[1],
623
- $nodeId$: childIdSplt[2],
624
- $depth$: childIdSplt[3],
625
- $index$: childIdSplt[4],
626
- $elm$: node,
627
- $attrs$: null,
628
- $children$: null,
629
- $key$: null,
630
- $name$: null,
631
- $tag$: null,
632
- $text$: null
633
- };
634
- if (childNodeType === TEXT_NODE_ID) {
635
- childVNode.$elm$ = node.nextSibling;
636
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
637
- childVNode.$text$ = childVNode.$elm$.textContent;
638
- childRenderNodes.push(childVNode);
639
- node.remove();
640
- if (!parentVNode.$children$) {
641
- parentVNode.$children$ = [];
642
- }
643
- parentVNode.$children$[childVNode.$index$] = childVNode;
644
- if (shadowRootNodes && childVNode.$depth$ === "0") {
645
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
646
- }
647
- }
648
- } else if (childVNode.$hostId$ === hostId) {
649
- if (childNodeType === SLOT_NODE_ID) {
650
- childVNode.$tag$ = "slot";
651
- if (childIdSplt[5]) {
652
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
653
- } else {
654
- node["s-sn"] = "";
655
- }
656
- node["s-sr"] = true;
657
- if (BUILD.shadowDom && shadowRootNodes) {
658
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
659
- if (childVNode.$name$) {
660
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
661
- }
662
- node.parentNode.insertBefore(childVNode.$elm$, node);
663
- node.remove();
664
- if (childVNode.$depth$ === "0") {
665
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
666
- }
667
- }
668
- slotNodes.push(childVNode);
669
- if (!parentVNode.$children$) {
670
- parentVNode.$children$ = [];
671
- }
672
- parentVNode.$children$[childVNode.$index$] = childVNode;
673
- } else if (childNodeType === CONTENT_REF_ID) {
674
- if (BUILD.shadowDom && shadowRootNodes) {
675
- node.remove();
676
- } else if (BUILD.slotRelocation) {
677
- hostElm["s-cr"] = node;
678
- node["s-cn"] = true;
679
- }
680
- }
681
- }
682
- }
683
- } else if (parentVNode && parentVNode.$tag$ === "style") {
684
- const vnode = newVNode(null, node.textContent);
685
- vnode.$elm$ = node;
686
- vnode.$index$ = "0";
687
- parentVNode.$children$ = [vnode];
688
- }
689
- };
690
- var initializeDocumentHydrate = (node, orgLocNodes) => {
691
- if (node.nodeType === 1 /* ElementNode */) {
692
- let i2 = 0;
693
- if (node.shadowRoot) {
694
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
695
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
696
- }
697
- }
698
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
699
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
700
- }
701
- } else if (node.nodeType === 8 /* CommentNode */) {
702
- const childIdSplt = node.nodeValue.split(".");
703
- if (childIdSplt[0] === ORG_LOCATION_ID) {
704
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
705
- node.nodeValue = "";
706
- node["s-en"] = childIdSplt[3];
707
- }
708
- }
709
- };
710
-
711
- // src/runtime/mode.ts
712
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
713
- var setMode = (handler) => modeResolutionChain.push(handler);
714
- var getMode = (ref) => getHostRef(ref).$modeName$;
715
- var parsePropertyValue = (propValue, propType) => {
716
- if (propValue != null && !isComplexType(propValue)) {
717
- if (BUILD.propBoolean && propType & 4 /* Boolean */) {
718
- return propValue === "false" ? false : propValue === "" || !!propValue;
719
- }
720
- if (BUILD.propNumber && propType & 2 /* Number */) {
721
- return parseFloat(propValue);
722
- }
723
- if (BUILD.propString && propType & 1 /* String */) {
724
- return String(propValue);
725
- }
726
- return propValue;
727
- }
728
- return propValue;
729
- };
730
- var getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
731
-
732
- // src/runtime/event-emitter.ts
733
- var createEvent = (ref, name, flags) => {
734
- const elm = getElement(ref);
735
- return {
736
- emit: (detail) => {
737
- if (BUILD.isDev && !elm.isConnected) {
738
- consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
739
- }
740
- return emitEvent(elm, name, {
741
- bubbles: !!(flags & 4 /* Bubbles */),
742
- composed: !!(flags & 2 /* Composed */),
743
- cancelable: !!(flags & 1 /* Cancellable */),
744
- detail
745
- });
746
- }
747
- };
748
- };
749
- var emitEvent = (elm, name, opts) => {
750
- const ev = plt.ce(name, opts);
751
- elm.dispatchEvent(ev);
752
- return ev;
753
- };
754
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
755
- var registerStyle = (scopeId2, cssText, allowCS) => {
756
- let style = styles.get(scopeId2);
757
- if (supportsConstructableStylesheets && allowCS) {
758
- style = style || new CSSStyleSheet();
759
- if (typeof style === "string") {
760
- style = cssText;
761
- } else {
762
- style.replaceSync(cssText);
763
- }
764
- } else {
765
- style = cssText;
766
- }
767
- styles.set(scopeId2, style);
768
- };
769
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
770
- var _a;
771
- const scopeId2 = getScopeId(cmpMeta, mode);
772
- const style = styles.get(scopeId2);
773
- if (!BUILD.attachStyles) {
774
- return scopeId2;
775
- }
776
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
777
- if (style) {
778
- if (typeof style === "string") {
779
- styleContainerNode = styleContainerNode.head || styleContainerNode;
780
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
781
- let styleElm;
782
- if (!appliedStyles) {
783
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
784
- }
785
- if (!appliedStyles.has(scopeId2)) {
786
- if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
787
- styleElm.innerHTML = style;
788
- } else {
789
- styleElm = doc.createElement("style");
790
- styleElm.innerHTML = style;
791
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
792
- if (nonce != null) {
793
- styleElm.setAttribute("nonce", nonce);
794
- }
795
- if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
796
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
797
- }
798
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
799
- if (styleContainerNode.nodeName === "HEAD") {
800
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
801
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
802
- styleContainerNode.insertBefore(styleElm, referenceNode2);
803
- } else if ("host" in styleContainerNode) {
804
- styleContainerNode.prepend(styleElm);
805
- } else {
806
- styleContainerNode.append(styleElm);
807
- }
808
- }
809
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
810
- styleContainerNode.insertBefore(styleElm, null);
811
- }
812
- }
813
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
814
- styleElm.innerHTML += SLOT_FB_CSS;
815
- }
816
- if (appliedStyles) {
817
- appliedStyles.add(scopeId2);
818
- }
819
- }
820
- } else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
821
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
822
- }
823
- }
824
- return scopeId2;
825
- };
826
- var attachStyles = (hostRef) => {
827
- const cmpMeta = hostRef.$cmpMeta$;
828
- const elm = hostRef.$hostElement$;
829
- const flags = cmpMeta.$flags$;
830
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
831
- const scopeId2 = addStyle(
832
- BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
833
- cmpMeta,
834
- hostRef.$modeName$
835
- );
836
- if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
837
- elm["s-sc"] = scopeId2;
838
- elm.classList.add(scopeId2 + "-h");
839
- if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
840
- elm.classList.add(scopeId2 + "-s");
841
- }
842
- }
843
- endAttachStyles();
844
- };
845
- var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
846
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
847
- if (oldValue !== newValue) {
848
- let isProp = isMemberInElement(elm, memberName);
849
- let ln = memberName.toLowerCase();
850
- if (BUILD.vdomClass && memberName === "class") {
851
- const classList = elm.classList;
852
- const oldClasses = parseClassList(oldValue);
853
- const newClasses = parseClassList(newValue);
854
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
855
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
856
- } else if (BUILD.vdomStyle && memberName === "style") {
857
- if (BUILD.updatable) {
858
- for (const prop in oldValue) {
859
- if (!newValue || newValue[prop] == null) {
860
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
861
- elm.style.removeProperty(prop);
862
- } else {
863
- elm.style[prop] = "";
864
- }
865
- }
866
- }
867
- }
868
- for (const prop in newValue) {
869
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
870
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
871
- elm.style.setProperty(prop, newValue[prop]);
872
- } else {
873
- elm.style[prop] = newValue[prop];
874
- }
875
- }
876
- }
877
- } else if (BUILD.vdomKey && memberName === "key") {
878
- } else if (BUILD.vdomRef && memberName === "ref") {
879
- if (newValue) {
880
- newValue(elm);
881
- }
882
- } else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
883
- if (memberName[2] === "-") {
884
- memberName = memberName.slice(3);
885
- } else if (isMemberInElement(win, ln)) {
886
- memberName = ln.slice(2);
887
- } else {
888
- memberName = ln[2] + memberName.slice(3);
889
- }
890
- if (oldValue || newValue) {
891
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
892
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
893
- if (oldValue) {
894
- plt.rel(elm, memberName, oldValue, capture);
895
- }
896
- if (newValue) {
897
- plt.ael(elm, memberName, newValue, capture);
898
- }
899
- }
900
- } else if (BUILD.vdomPropOrAttr) {
901
- const isComplex = isComplexType(newValue);
902
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
903
- try {
904
- if (!elm.tagName.includes("-")) {
905
- const n = newValue == null ? "" : newValue;
906
- if (memberName === "list") {
907
- isProp = false;
908
- } else if (oldValue == null || elm[memberName] != n) {
909
- if (typeof elm.__lookupSetter__(memberName) === "function") {
910
- elm[memberName] = n;
911
- } else {
912
- elm.setAttribute(memberName, n);
913
- }
914
- }
915
- } else {
916
- elm[memberName] = newValue;
917
- }
918
- } catch (e) {
919
- }
920
- }
921
- let xlink = false;
922
- if (BUILD.vdomXlink) {
923
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
924
- memberName = ln;
925
- xlink = true;
926
- }
927
- }
928
- if (newValue == null || newValue === false) {
929
- if (newValue !== false || elm.getAttribute(memberName) === "") {
930
- if (BUILD.vdomXlink && xlink) {
931
- elm.removeAttributeNS(XLINK_NS, memberName);
932
- } else {
933
- elm.removeAttribute(memberName);
934
- }
935
- }
936
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
937
- newValue = newValue === true ? "" : newValue;
938
- if (BUILD.vdomXlink && xlink) {
939
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
940
- } else {
941
- elm.setAttribute(memberName, newValue);
942
- }
943
- }
944
- }
945
- }
946
- };
947
- var parseClassListRegex = /\s/;
948
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
949
- var CAPTURE_EVENT_SUFFIX = "Capture";
950
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
951
-
952
- // src/runtime/vdom/update-element.ts
953
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
954
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
955
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
956
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
957
- if (BUILD.updatable) {
958
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
959
- if (!(memberName in newVnodeAttrs)) {
960
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
961
- }
962
- }
963
- }
964
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
965
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
966
- }
967
- };
968
- function sortedAttrNames(attrNames) {
969
- return attrNames.includes("ref") ? (
970
- // we need to sort these to ensure that `'ref'` is the last attr
971
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
972
- ) : (
973
- // no need to sort, return the original array
974
- attrNames
975
- );
976
- }
977
-
978
- // src/runtime/vdom/vdom-render.ts
979
- var scopeId;
980
- var contentRef;
981
- var hostTagName;
982
- var useNativeShadowDom = false;
983
- var checkSlotFallbackVisibility = false;
984
- var checkSlotRelocate = false;
985
- var isSvgMode = false;
986
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
987
- var _a;
988
- const newVNode2 = newParentVNode.$children$[childIndex];
989
- let i2 = 0;
990
- let elm;
991
- let childNode;
992
- let oldVNode;
993
- if (BUILD.slotRelocation && !useNativeShadowDom) {
994
- checkSlotRelocate = true;
995
- if (newVNode2.$tag$ === "slot") {
996
- if (scopeId) {
997
- parentElm.classList.add(scopeId + "-s");
998
- }
999
- newVNode2.$flags$ |= newVNode2.$children$ ? (
1000
- // slot element has fallback content
1001
- // still create an element that "mocks" the slot element
1002
- 2 /* isSlotFallback */
1003
- ) : (
1004
- // slot element does not have fallback content
1005
- // create an html comment we'll use to always reference
1006
- // where actual slot content should sit next to
1007
- 1 /* isSlotReference */
1008
- );
1009
- }
1010
- }
1011
- if (BUILD.isDev && newVNode2.$elm$) {
1012
- consoleDevError(
1013
- `The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
1014
- );
1015
- }
1016
- if (BUILD.vdomText && newVNode2.$text$ !== null) {
1017
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
1018
- } else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
1019
- elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : doc.createTextNode("");
1020
- } else {
1021
- if (BUILD.svg && !isSvgMode) {
1022
- isSvgMode = newVNode2.$tag$ === "svg";
1023
- }
1024
- elm = newVNode2.$elm$ = BUILD.svg ? doc.createElementNS(
1025
- isSvgMode ? SVG_NS : HTML_NS,
1026
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1027
- ) : doc.createElement(
1028
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1029
- );
1030
- if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
1031
- isSvgMode = false;
1032
- }
1033
- if (BUILD.vdomAttribute) {
1034
- updateElement(null, newVNode2, isSvgMode);
1035
- }
1036
- const rootNode = elm.getRootNode();
1037
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
1038
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
1039
- elm.classList.add(elm["s-si"] = scopeId);
1040
- }
1041
- if (BUILD.scoped) {
1042
- updateElementScopeIds(elm, parentElm);
1043
- }
1044
- if (newVNode2.$children$) {
1045
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1046
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
1047
- if (childNode) {
1048
- elm.appendChild(childNode);
1049
- }
1050
- }
1051
- }
1052
- if (BUILD.svg) {
1053
- if (newVNode2.$tag$ === "svg") {
1054
- isSvgMode = false;
1055
- } else if (elm.tagName === "foreignObject") {
1056
- isSvgMode = true;
1057
- }
1058
- }
1059
- }
1060
- elm["s-hn"] = hostTagName;
1061
- if (BUILD.slotRelocation) {
1062
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1063
- elm["s-sr"] = true;
1064
- elm["s-cr"] = contentRef;
1065
- elm["s-sn"] = newVNode2.$name$ || "";
1066
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1067
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1068
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1069
- if (BUILD.experimentalSlotFixes) {
1070
- relocateToHostRoot(oldParentVNode.$elm$);
1071
- } else {
1072
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
1073
- }
1074
- }
1075
- }
1076
- }
1077
- return elm;
1078
- };
1079
- var relocateToHostRoot = (parentElm) => {
1080
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1081
- const host = parentElm.closest(hostTagName.toLowerCase());
1082
- if (host != null) {
1083
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
1084
- const childNodeArray = Array.from(parentElm.childNodes);
1085
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1086
- if (childNode["s-sh"] != null) {
1087
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1088
- childNode["s-sh"] = void 0;
1089
- checkSlotRelocate = true;
1090
- }
1091
- }
1092
- }
1093
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1094
- };
1095
- var putBackInOriginalLocation = (parentElm, recursive) => {
1096
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1097
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
1098
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
1099
- let node = parentElm;
1100
- while (node = node.nextSibling) {
1101
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1102
- oldSlotChildNodes.push(node);
1103
- }
1104
- }
1105
- }
1106
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1107
- const childNode = oldSlotChildNodes[i2];
1108
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1109
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
1110
- childNode["s-ol"].remove();
1111
- childNode["s-ol"] = void 0;
1112
- childNode["s-sh"] = void 0;
1113
- checkSlotRelocate = true;
1114
- }
1115
- if (recursive) {
1116
- putBackInOriginalLocation(childNode, recursive);
1117
- }
1118
- }
1119
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1120
- };
1121
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1122
- let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1123
- let childNode;
1124
- if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1125
- containerElm = containerElm.shadowRoot;
1126
- }
1127
- for (; startIdx <= endIdx; ++startIdx) {
1128
- if (vnodes[startIdx]) {
1129
- childNode = createElm(null, parentVNode, startIdx, parentElm);
1130
- if (childNode) {
1131
- vnodes[startIdx].$elm$ = childNode;
1132
- insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
1133
- }
1134
- }
1135
- }
1136
- };
1137
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1138
- for (let index = startIdx; index <= endIdx; ++index) {
1139
- const vnode = vnodes[index];
1140
- if (vnode) {
1141
- const elm = vnode.$elm$;
1142
- nullifyVNodeRefs(vnode);
1143
- if (elm) {
1144
- if (BUILD.slotRelocation) {
1145
- checkSlotFallbackVisibility = true;
1146
- if (elm["s-ol"]) {
1147
- elm["s-ol"].remove();
1148
- } else {
1149
- putBackInOriginalLocation(elm, true);
1150
- }
1151
- }
1152
- elm.remove();
1153
- }
1154
- }
1155
- }
1156
- };
1157
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1158
- let oldStartIdx = 0;
1159
- let newStartIdx = 0;
1160
- let idxInOld = 0;
1161
- let i2 = 0;
1162
- let oldEndIdx = oldCh.length - 1;
1163
- let oldStartVnode = oldCh[0];
1164
- let oldEndVnode = oldCh[oldEndIdx];
1165
- let newEndIdx = newCh.length - 1;
1166
- let newStartVnode = newCh[0];
1167
- let newEndVnode = newCh[newEndIdx];
1168
- let node;
1169
- let elmToMove;
1170
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1171
- if (oldStartVnode == null) {
1172
- oldStartVnode = oldCh[++oldStartIdx];
1173
- } else if (oldEndVnode == null) {
1174
- oldEndVnode = oldCh[--oldEndIdx];
1175
- } else if (newStartVnode == null) {
1176
- newStartVnode = newCh[++newStartIdx];
1177
- } else if (newEndVnode == null) {
1178
- newEndVnode = newCh[--newEndIdx];
1179
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1180
- patch(oldStartVnode, newStartVnode, isInitialRender);
1181
- oldStartVnode = oldCh[++oldStartIdx];
1182
- newStartVnode = newCh[++newStartIdx];
1183
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1184
- patch(oldEndVnode, newEndVnode, isInitialRender);
1185
- oldEndVnode = oldCh[--oldEndIdx];
1186
- newEndVnode = newCh[--newEndIdx];
1187
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1188
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1189
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1190
- }
1191
- patch(oldStartVnode, newEndVnode, isInitialRender);
1192
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1193
- oldStartVnode = oldCh[++oldStartIdx];
1194
- newEndVnode = newCh[--newEndIdx];
1195
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1196
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1197
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1198
- }
1199
- patch(oldEndVnode, newStartVnode, isInitialRender);
1200
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1201
- oldEndVnode = oldCh[--oldEndIdx];
1202
- newStartVnode = newCh[++newStartIdx];
1203
- } else {
1204
- idxInOld = -1;
1205
- if (BUILD.vdomKey) {
1206
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1207
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1208
- idxInOld = i2;
1209
- break;
1210
- }
1211
- }
1212
- }
1213
- if (BUILD.vdomKey && idxInOld >= 0) {
1214
- elmToMove = oldCh[idxInOld];
1215
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1216
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
1217
- } else {
1218
- patch(elmToMove, newStartVnode, isInitialRender);
1219
- oldCh[idxInOld] = void 0;
1220
- node = elmToMove.$elm$;
1221
- }
1222
- newStartVnode = newCh[++newStartIdx];
1223
- } else {
1224
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
1225
- newStartVnode = newCh[++newStartIdx];
1226
- }
1227
- if (node) {
1228
- if (BUILD.slotRelocation) {
1229
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
1230
- } else {
1231
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1232
- }
1233
- }
1234
- }
1235
- }
1236
- if (oldStartIdx > oldEndIdx) {
1237
- addVnodes(
1238
- parentElm,
1239
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1240
- newVNode2,
1241
- newCh,
1242
- newStartIdx,
1243
- newEndIdx
1244
- );
1245
- } else if (BUILD.updatable && newStartIdx > newEndIdx) {
1246
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1247
- }
1248
- };
1249
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1250
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1251
- if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
1252
- if (
1253
- // The component gets hydrated and no VDOM has been initialized.
1254
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
1255
- "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
1256
- // hydration comments to be removed
1257
- leftVNode.$elm$.nodeType !== 8
1258
- ) {
1259
- return false;
1260
- }
1261
- return leftVNode.$name$ === rightVNode.$name$;
1262
- }
1263
- if (BUILD.vdomKey && !isInitialRender) {
1264
- return leftVNode.$key$ === rightVNode.$key$;
1265
- }
1266
- return true;
1267
- }
1268
- return false;
1269
- };
1270
- var referenceNode = (node) => {
1271
- return node && node["s-ol"] || node;
1272
- };
1273
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
1274
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1275
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1276
- const oldChildren = oldVNode.$children$;
1277
- const newChildren = newVNode2.$children$;
1278
- const tag = newVNode2.$tag$;
1279
- const text = newVNode2.$text$;
1280
- let defaultHolder;
1281
- if (!BUILD.vdomText || text === null) {
1282
- if (BUILD.svg) {
1283
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1284
- }
1285
- if (BUILD.vdomAttribute || BUILD.reflect) {
1286
- if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
1287
- if (BUILD.experimentalSlotFixes && oldVNode.$name$ !== newVNode2.$name$) {
1288
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1289
- relocateToHostRoot(newVNode2.$elm$.parentElement);
1290
- }
1291
- } else {
1292
- updateElement(oldVNode, newVNode2, isSvgMode);
1293
- }
1294
- }
1295
- if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
1296
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1297
- } else if (newChildren !== null) {
1298
- if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
1299
- elm.textContent = "";
1300
- }
1301
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1302
- } else if (
1303
- // don't do this on initial render as it can cause non-hydrated content to be removed
1304
- !isInitialRender && BUILD.updatable && oldChildren !== null
1305
- ) {
1306
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1307
- }
1308
- if (BUILD.svg && isSvgMode && tag === "svg") {
1309
- isSvgMode = false;
1310
- }
1311
- } else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
1312
- defaultHolder.parentNode.textContent = text;
1313
- } else if (BUILD.vdomText && oldVNode.$text$ !== text) {
1314
- elm.data = text;
1315
- }
1316
- };
1317
- var updateFallbackSlotVisibility = (elm) => {
1318
- const childNodes = elm.childNodes;
1319
- for (const childNode of childNodes) {
1320
- if (childNode.nodeType === 1 /* ElementNode */) {
1321
- if (childNode["s-sr"]) {
1322
- const slotName = childNode["s-sn"];
1323
- childNode.hidden = false;
1324
- for (const siblingNode of childNodes) {
1325
- if (siblingNode !== childNode) {
1326
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1327
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1328
- childNode.hidden = true;
1329
- break;
1330
- }
1331
- } else {
1332
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1333
- childNode.hidden = true;
1334
- break;
1335
- }
1336
- }
1337
- }
1338
- }
1339
- }
1340
- updateFallbackSlotVisibility(childNode);
1341
- }
1342
- }
1343
- };
1344
- var relocateNodes = [];
1345
- var markSlotContentForRelocation = (elm) => {
1346
- let node;
1347
- let hostContentNodes;
1348
- let j;
1349
- for (const childNode of elm.childNodes) {
1350
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1351
- hostContentNodes = node.parentNode.childNodes;
1352
- const slotName = childNode["s-sn"];
1353
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1354
- node = hostContentNodes[j];
1355
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes || !node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1356
- if (isNodeLocatedInSlot(node, slotName)) {
1357
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1358
- checkSlotFallbackVisibility = true;
1359
- node["s-sn"] = node["s-sn"] || slotName;
1360
- if (relocateNodeData) {
1361
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1362
- relocateNodeData.$slotRefNode$ = childNode;
1363
- } else {
1364
- node["s-sh"] = childNode["s-hn"];
1365
- relocateNodes.push({
1366
- $slotRefNode$: childNode,
1367
- $nodeToRelocate$: node
1368
- });
1369
- }
1370
- if (node["s-sr"]) {
1371
- relocateNodes.map((relocateNode) => {
1372
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1373
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1374
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1375
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1376
- }
1377
- }
1378
- });
1379
- }
1380
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1381
- relocateNodes.push({
1382
- $nodeToRelocate$: node
1383
- });
1384
- }
1385
- }
1386
- }
1387
- }
1388
- if (childNode.nodeType === 1 /* ElementNode */) {
1389
- markSlotContentForRelocation(childNode);
1390
- }
1391
- }
1392
- };
1393
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1394
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1395
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1396
- return true;
1397
- }
1398
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1399
- return true;
1400
- }
1401
- return false;
1402
- }
1403
- if (nodeToRelocate["s-sn"] === slotName) {
1404
- return true;
1405
- }
1406
- return slotName === "";
1407
- };
1408
- var nullifyVNodeRefs = (vNode) => {
1409
- if (BUILD.vdomRef) {
1410
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1411
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1412
- }
1413
- };
1414
- var insertBefore = (parent, newNode, reference) => {
1415
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1416
- if (BUILD.scoped) {
1417
- updateElementScopeIds(newNode, parent);
1418
- }
1419
- return inserted;
1420
- };
1421
- var findScopeIds = (element) => {
1422
- const scopeIds = [];
1423
- if (element) {
1424
- scopeIds.push(
1425
- ...element["s-scs"] || [],
1426
- element["s-si"],
1427
- element["s-sc"],
1428
- ...findScopeIds(element.parentElement)
1429
- );
1430
- }
1431
- return scopeIds;
1432
- };
1433
- var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1434
- var _a;
1435
- if (element && parent && element.nodeType === 1 /* ElementNode */) {
1436
- const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1437
- if (scopeIds.size) {
1438
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
1439
- if (element["s-ol"] || iterateChildNodes) {
1440
- for (const childNode of Array.from(element.childNodes)) {
1441
- updateElementScopeIds(childNode, element, true);
1442
- }
1443
- }
1444
- }
1445
- }
1446
- };
1447
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1448
- var _a, _b, _c, _d, _e;
1449
- const hostElm = hostRef.$hostElement$;
1450
- const cmpMeta = hostRef.$cmpMeta$;
1451
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1452
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1453
- hostTagName = hostElm.tagName;
1454
- if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
1455
- throw new Error(`The <Host> must be the single root component.
1456
- Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
1457
-
1458
- The render() function should look like this instead:
1459
-
1460
- render() {
1461
- // Do not return an array
1462
- return (
1463
- <Host>{content}</Host>
1464
- );
1465
- }
1466
- `);
1467
- }
1468
- if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
1469
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1470
- cmpMeta.$attrsToReflect$.map(
1471
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1472
- );
1473
- }
1474
- if (isInitialLoad && rootVnode.$attrs$) {
1475
- for (const key of Object.keys(rootVnode.$attrs$)) {
1476
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1477
- rootVnode.$attrs$[key] = hostElm[key];
1478
- }
1479
- }
1480
- }
1481
- rootVnode.$tag$ = null;
1482
- rootVnode.$flags$ |= 4 /* isHost */;
1483
- hostRef.$vnode$ = rootVnode;
1484
- rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
1485
- if (BUILD.scoped || BUILD.shadowDom) {
1486
- scopeId = hostElm["s-sc"];
1487
- }
1488
- useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1489
- if (BUILD.slotRelocation) {
1490
- contentRef = hostElm["s-cr"];
1491
- checkSlotFallbackVisibility = false;
1492
- }
1493
- patch(oldVNode, rootVnode, isInitialLoad);
1494
- if (BUILD.slotRelocation) {
1495
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1496
- if (checkSlotRelocate) {
1497
- markSlotContentForRelocation(rootVnode.$elm$);
1498
- for (const relocateData of relocateNodes) {
1499
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1500
- if (!nodeToRelocate["s-ol"]) {
1501
- const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode("");
1502
- orgLocationNode["s-nr"] = nodeToRelocate;
1503
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1504
- }
1505
- }
1506
- for (const relocateData of relocateNodes) {
1507
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1508
- const slotRefNode = relocateData.$slotRefNode$;
1509
- if (slotRefNode) {
1510
- const parentNodeRef = slotRefNode.parentNode;
1511
- let insertBeforeNode = slotRefNode.nextSibling;
1512
- if (!BUILD.experimentalSlotFixes || insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1513
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1514
- while (orgLocationNode) {
1515
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1516
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1517
- refNode = refNode.nextSibling;
1518
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1519
- refNode = refNode == null ? void 0 : refNode.nextSibling;
1520
- }
1521
- if (!refNode || !refNode["s-nr"]) {
1522
- insertBeforeNode = refNode;
1523
- break;
1524
- }
1525
- }
1526
- orgLocationNode = orgLocationNode.previousSibling;
1527
- }
1528
- }
1529
- if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1530
- if (nodeToRelocate !== insertBeforeNode) {
1531
- if (!BUILD.experimentalSlotFixes && !nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1532
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1533
- }
1534
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1535
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1536
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1537
- }
1538
- }
1539
- }
1540
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1541
- } else {
1542
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1543
- if (isInitialLoad) {
1544
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1545
- }
1546
- nodeToRelocate.hidden = true;
1547
- }
1548
- }
1549
- }
1550
- }
1551
- if (checkSlotFallbackVisibility) {
1552
- updateFallbackSlotVisibility(rootVnode.$elm$);
1553
- }
1554
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1555
- relocateNodes.length = 0;
1556
- }
1557
- if (BUILD.experimentalScopedSlotChanges && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1558
- for (const childNode of rootVnode.$elm$.childNodes) {
1559
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1560
- if (isInitialLoad && childNode["s-ih"] == null) {
1561
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1562
- }
1563
- childNode.hidden = true;
1564
- }
1565
- }
1566
- }
1567
- contentRef = void 0;
1568
- };
1569
- var slotReferenceDebugNode = (slotVNode) => doc.createComment(
1570
- `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
1571
- );
1572
- var originalLocationDebugNode = (nodeToRelocate) => doc.createComment(
1573
- `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
1574
- );
1575
-
1576
- // src/runtime/update-component.ts
1577
- var attachToAncestor = (hostRef, ancestorComponent) => {
1578
- if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1579
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1580
- }
1581
- };
1582
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1583
- if (BUILD.taskQueue && BUILD.updatable) {
1584
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1585
- }
1586
- if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1587
- hostRef.$flags$ |= 512 /* needsRerender */;
1588
- return;
1589
- }
1590
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1591
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1592
- return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
1593
- };
1594
- var dispatchHooks = (hostRef, isInitialLoad) => {
1595
- const elm = hostRef.$hostElement$;
1596
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1597
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1598
- if (!instance) {
1599
- throw new Error(
1600
- `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`
1601
- );
1602
- }
1603
- let maybePromise;
1604
- if (isInitialLoad) {
1605
- if (BUILD.lazyLoad && BUILD.hostListener) {
1606
- hostRef.$flags$ |= 256 /* isListenReady */;
1607
- if (hostRef.$queuedListeners$) {
1608
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1609
- hostRef.$queuedListeners$ = void 0;
1610
- }
1611
- }
1612
- emitLifecycleEvent(elm, "componentWillLoad");
1613
- if (BUILD.cmpWillLoad) {
1614
- maybePromise = safeCall(instance, "componentWillLoad");
1615
- }
1616
- } else {
1617
- emitLifecycleEvent(elm, "componentWillUpdate");
1618
- if (BUILD.cmpWillUpdate) {
1619
- maybePromise = safeCall(instance, "componentWillUpdate");
1620
- }
1621
- }
1622
- emitLifecycleEvent(elm, "componentWillRender");
1623
- if (BUILD.cmpWillRender) {
1624
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
1625
- }
1626
- endSchedule();
1627
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1628
- };
1629
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1630
- console.error(err2);
1631
- fn();
1632
- }) : fn();
1633
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1634
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
1635
- var _a;
1636
- const elm = hostRef.$hostElement$;
1637
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1638
- const rc = elm["s-rc"];
1639
- if (BUILD.style && isInitialLoad) {
1640
- attachStyles(hostRef);
1641
- }
1642
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1643
- if (BUILD.isDev) {
1644
- hostRef.$flags$ |= 1024 /* devOnRender */;
1645
- }
1646
- if (BUILD.hydrateServerSide) {
1647
- await callRender(hostRef, instance, elm, isInitialLoad);
1648
- } else {
1649
- callRender(hostRef, instance, elm, isInitialLoad);
1650
- }
1651
- if (BUILD.isDev) {
1652
- hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
1653
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1654
- }
1655
- if (BUILD.hydrateServerSide) {
1656
- try {
1657
- serverSideConnected(elm);
1658
- if (isInitialLoad) {
1659
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1660
- elm["s-en"] = "";
1661
- } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
1662
- elm["s-en"] = "c";
1663
- }
1664
- }
1665
- } catch (e) {
1666
- consoleError(e, elm);
1667
- }
1668
- }
1669
- if (BUILD.asyncLoading && rc) {
1670
- rc.map((cb) => cb());
1671
- elm["s-rc"] = void 0;
1672
- }
1673
- endRender();
1674
- endUpdate();
1675
- if (BUILD.asyncLoading) {
1676
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1677
- const postUpdate = () => postUpdateComponent(hostRef);
1678
- if (childrenPromises.length === 0) {
1679
- postUpdate();
1680
- } else {
1681
- Promise.all(childrenPromises).then(postUpdate);
1682
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1683
- childrenPromises.length = 0;
1684
- }
1685
- } else {
1686
- postUpdateComponent(hostRef);
1687
- }
1688
- };
1689
- var renderingRef = null;
1690
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1691
- const allRenderFn = BUILD.allRenderFn ? true : false;
1692
- const lazyLoad = BUILD.lazyLoad ? true : false;
1693
- const taskQueue = BUILD.taskQueue ? true : false;
1694
- const updatable = BUILD.updatable ? true : false;
1695
- try {
1696
- renderingRef = instance;
1697
- instance = allRenderFn ? instance.render() : instance.render && instance.render();
1698
- if (updatable && taskQueue) {
1699
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1700
- }
1701
- if (updatable || lazyLoad) {
1702
- hostRef.$flags$ |= 2 /* hasRendered */;
1703
- }
1704
- if (BUILD.hasRenderFn || BUILD.reflect) {
1705
- if (BUILD.vdomRender || BUILD.reflect) {
1706
- if (BUILD.hydrateServerSide) {
1707
- return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
1708
- } else {
1709
- renderVdom(hostRef, instance, isInitialLoad);
1710
- }
1711
- } else {
1712
- const shadowRoot = elm.shadowRoot;
1713
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1714
- shadowRoot.textContent = instance;
1715
- } else {
1716
- elm.textContent = instance;
1717
- }
1718
- }
1719
- }
1720
- } catch (e) {
1721
- consoleError(e, hostRef.$hostElement$);
1722
- }
1723
- renderingRef = null;
1724
- return null;
1725
- };
1726
- var getRenderingRef = () => renderingRef;
1727
- var postUpdateComponent = (hostRef) => {
1728
- const tagName = hostRef.$cmpMeta$.$tagName$;
1729
- const elm = hostRef.$hostElement$;
1730
- const endPostUpdate = createTime("postUpdate", tagName);
1731
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1732
- const ancestorComponent = hostRef.$ancestorComponent$;
1733
- if (BUILD.cmpDidRender) {
1734
- if (BUILD.isDev) {
1735
- hostRef.$flags$ |= 1024 /* devOnRender */;
1736
- }
1737
- safeCall(instance, "componentDidRender");
1738
- if (BUILD.isDev) {
1739
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1740
- }
1741
- }
1742
- emitLifecycleEvent(elm, "componentDidRender");
1743
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1744
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1745
- if (BUILD.asyncLoading && BUILD.cssAnnotations) {
1746
- addHydratedFlag(elm);
1747
- }
1748
- if (BUILD.cmpDidLoad) {
1749
- if (BUILD.isDev) {
1750
- hostRef.$flags$ |= 2048 /* devOnDidLoad */;
1751
- }
1752
- safeCall(instance, "componentDidLoad");
1753
- if (BUILD.isDev) {
1754
- hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
1755
- }
1756
- }
1757
- emitLifecycleEvent(elm, "componentDidLoad");
1758
- endPostUpdate();
1759
- if (BUILD.asyncLoading) {
1760
- hostRef.$onReadyResolve$(elm);
1761
- if (!ancestorComponent) {
1762
- appDidLoad(tagName);
1763
- }
1764
- }
1765
- } else {
1766
- if (BUILD.cmpDidUpdate) {
1767
- if (BUILD.isDev) {
1768
- hostRef.$flags$ |= 1024 /* devOnRender */;
1769
- }
1770
- safeCall(instance, "componentDidUpdate");
1771
- if (BUILD.isDev) {
1772
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1773
- }
1774
- }
1775
- emitLifecycleEvent(elm, "componentDidUpdate");
1776
- endPostUpdate();
1777
- }
1778
- if (BUILD.method && BUILD.lazyLoad) {
1779
- hostRef.$onInstanceResolve$(elm);
1780
- }
1781
- if (BUILD.asyncLoading) {
1782
- if (hostRef.$onRenderResolve$) {
1783
- hostRef.$onRenderResolve$();
1784
- hostRef.$onRenderResolve$ = void 0;
1785
- }
1786
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1787
- nextTick(() => scheduleUpdate(hostRef, false));
1788
- }
1789
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1790
- }
1791
- };
1792
- var forceUpdate = (ref) => {
1793
- if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
1794
- const hostRef = getHostRef(ref);
1795
- const isConnected = hostRef.$hostElement$.isConnected;
1796
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1797
- scheduleUpdate(hostRef, false);
1798
- }
1799
- return isConnected;
1800
- }
1801
- return false;
1802
- };
1803
- var appDidLoad = (who) => {
1804
- if (BUILD.cssAnnotations) {
1805
- addHydratedFlag(doc.documentElement);
1806
- }
1807
- if (BUILD.asyncQueue) {
1808
- plt.$flags$ |= 2 /* appLoaded */;
1809
- }
1810
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1811
- if (BUILD.profile && performance.measure) {
1812
- performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
1813
- }
1814
- };
1815
- var safeCall = (instance, method, arg) => {
1816
- if (instance && instance[method]) {
1817
- try {
1818
- return instance[method](arg);
1819
- } catch (e) {
1820
- consoleError(e);
1821
- }
1822
- }
1823
- return void 0;
1824
- };
1825
- var emitLifecycleEvent = (elm, lifecycleName) => {
1826
- if (BUILD.lifecycleDOMEvents) {
1827
- emitEvent(elm, "stencil_" + lifecycleName, {
1828
- bubbles: true,
1829
- composed: true,
1830
- detail: {
1831
- namespace: NAMESPACE
1832
- }
1833
- });
1834
- }
1835
- };
1836
- var addHydratedFlag = (elm) => {
1837
- var _a, _b;
1838
- return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
1839
- };
1840
- var serverSideConnected = (elm) => {
1841
- const children = elm.children;
1842
- if (children != null) {
1843
- for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
1844
- const childElm = children[i2];
1845
- if (typeof childElm.connectedCallback === "function") {
1846
- childElm.connectedCallback();
1847
- }
1848
- serverSideConnected(childElm);
1849
- }
1850
- }
1851
- };
1852
-
1853
- // src/runtime/set-value.ts
1854
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1855
- var setValue = (ref, propName, newVal, cmpMeta) => {
1856
- const hostRef = getHostRef(ref);
1857
- if (BUILD.lazyLoad && !hostRef) {
1858
- throw new Error(
1859
- `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/ionic-team/stencil/issues/5457).`
1860
- );
1861
- }
1862
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
1863
- const oldVal = hostRef.$instanceValues$.get(propName);
1864
- const flags = hostRef.$flags$;
1865
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1866
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1867
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1868
- const didValueChange = newVal !== oldVal && !areBothNaN;
1869
- if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1870
- hostRef.$instanceValues$.set(propName, newVal);
1871
- if (BUILD.isDev) {
1872
- if (hostRef.$flags$ & 1024 /* devOnRender */) {
1873
- consoleDevWarn(
1874
- `The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
1875
- "\nElement",
1876
- elm,
1877
- "\nNew value",
1878
- newVal,
1879
- "\nOld value",
1880
- oldVal
1881
- );
1882
- } else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
1883
- consoleDevWarn(
1884
- `The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
1885
- "\nElement",
1886
- elm,
1887
- "\nNew value",
1888
- newVal,
1889
- "\nOld value",
1890
- oldVal
1891
- );
1892
- }
1893
- }
1894
- if (!BUILD.lazyLoad || instance) {
1895
- if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1896
- const watchMethods = cmpMeta.$watchers$[propName];
1897
- if (watchMethods) {
1898
- watchMethods.map((watchMethodName) => {
1899
- try {
1900
- instance[watchMethodName](newVal, oldVal, propName);
1901
- } catch (e) {
1902
- consoleError(e, elm);
1903
- }
1904
- });
1905
- }
1906
- }
1907
- if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1908
- if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
1909
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1910
- return;
1911
- }
1912
- }
1913
- scheduleUpdate(hostRef, false);
1914
- }
1915
- }
1916
- }
1917
- };
1918
-
1919
- // src/runtime/proxy-component.ts
1920
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1921
- var _a, _b;
1922
- const prototype = Cstr.prototype;
1923
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1924
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
1925
- (cbName) => Object.defineProperty(prototype, cbName, {
1926
- value(...args) {
1927
- const hostRef = getHostRef(this);
1928
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
1929
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1930
- if (!instance) {
1931
- hostRef.$onReadyPromise$.then((instance2) => {
1932
- const cb = instance2[cbName];
1933
- typeof cb === "function" && cb.call(instance2, ...args);
1934
- });
1935
- } else {
1936
- const cb = instance[cbName];
1937
- typeof cb === "function" && cb.call(instance, ...args);
1938
- }
1939
- }
1940
- })
1941
- );
1942
- }
1943
- if (BUILD.member && cmpMeta.$members$ || BUILD.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
1944
- if (BUILD.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
1945
- cmpMeta.$watchers$ = Cstr.watchers;
1946
- }
1947
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1948
- members.map(([memberName, [memberFlags]]) => {
1949
- if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1950
- Object.defineProperty(prototype, memberName, {
1951
- get() {
1952
- return getValue(this, memberName);
1953
- },
1954
- set(newValue) {
1955
- if (BUILD.isDev) {
1956
- const ref = getHostRef(this);
1957
- if (
1958
- // we are proxying the instance (not element)
1959
- (flags & 1 /* isElementConstructor */) === 0 && // the element is not constructing
1960
- (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
1961
- (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
1962
- (memberFlags & 1024 /* Mutable */) === 0
1963
- ) {
1964
- consoleDevWarn(
1965
- `@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
1966
- More information: https://stenciljs.com/docs/properties#prop-mutability`
1967
- );
1968
- }
1969
- }
1970
- setValue(this, memberName, newValue, cmpMeta);
1971
- },
1972
- configurable: true,
1973
- enumerable: true
1974
- });
1975
- } else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1976
- Object.defineProperty(prototype, memberName, {
1977
- value(...args) {
1978
- var _a2;
1979
- const ref = getHostRef(this);
1980
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1981
- var _a3;
1982
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1983
- });
1984
- }
1985
- });
1986
- }
1987
- });
1988
- if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
1989
- const attrNameToPropName = /* @__PURE__ */ new Map();
1990
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1991
- plt.jmp(() => {
1992
- var _a2;
1993
- const propName = attrNameToPropName.get(attrName);
1994
- if (this.hasOwnProperty(propName)) {
1995
- newValue = this[propName];
1996
- delete this[propName];
1997
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1998
- this[propName] == newValue) {
1999
- return;
2000
- } else if (propName == null) {
2001
- const hostRef = getHostRef(this);
2002
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2003
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2004
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
2005
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
2006
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2007
- entry == null ? void 0 : entry.forEach((callbackName) => {
2008
- if (instance[callbackName] != null) {
2009
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2010
- }
2011
- });
2012
- }
2013
- return;
2014
- }
2015
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2016
- });
2017
- };
2018
- Cstr.observedAttributes = Array.from(
2019
- /* @__PURE__ */ new Set([
2020
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2021
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2022
- var _a2;
2023
- const attrName = m[1] || propName;
2024
- attrNameToPropName.set(attrName, propName);
2025
- if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
2026
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2027
- }
2028
- return attrName;
2029
- })
2030
- ])
2031
- );
2032
- }
2033
- }
2034
- return Cstr;
2035
- };
2036
-
2037
- // src/runtime/initialize-component.ts
2038
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2039
- let Cstr;
2040
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2041
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2042
- const bundleId = cmpMeta.$lazyBundleId$;
2043
- if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) {
2044
- const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
2045
- if (CstrImport && "then" in CstrImport) {
2046
- const endLoad = uniqueTime(
2047
- `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
2048
- `[Stencil] Load module for <${cmpMeta.$tagName$}>`
2049
- );
2050
- Cstr = await CstrImport;
2051
- endLoad();
2052
- } else {
2053
- Cstr = CstrImport;
2054
- }
2055
- if (!Cstr) {
2056
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2057
- }
2058
- if (BUILD.member && !Cstr.isProxied) {
2059
- if (BUILD.watchCallback) {
2060
- cmpMeta.$watchers$ = Cstr.watchers;
2061
- }
2062
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2063
- Cstr.isProxied = true;
2064
- }
2065
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2066
- if (BUILD.member) {
2067
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2068
- }
2069
- try {
2070
- new Cstr(hostRef);
2071
- } catch (e) {
2072
- consoleError(e);
2073
- }
2074
- if (BUILD.member) {
2075
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
2076
- }
2077
- if (BUILD.watchCallback) {
2078
- hostRef.$flags$ |= 128 /* isWatchReady */;
2079
- }
2080
- endNewInstance();
2081
- fireConnectedCallback(hostRef.$lazyInstance$);
2082
- } else {
2083
- Cstr = elm.constructor;
2084
- const cmpTag = elm.localName;
2085
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2086
- }
2087
- if (BUILD.style && Cstr && Cstr.style) {
2088
- let style;
2089
- if (typeof Cstr.style === "string") {
2090
- style = Cstr.style;
2091
- } else if (BUILD.mode && typeof Cstr.style !== "string") {
2092
- hostRef.$modeName$ = computeMode(elm);
2093
- if (hostRef.$modeName$) {
2094
- style = Cstr.style[hostRef.$modeName$];
2095
- }
2096
- if (BUILD.hydrateServerSide && hostRef.$modeName$) {
2097
- elm.setAttribute("s-mode", hostRef.$modeName$);
2098
- }
2099
- }
2100
- const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
2101
- if (!styles.has(scopeId2)) {
2102
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2103
- if (!BUILD.hydrateServerSide && BUILD.shadowDom && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2104
- BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2105
- style = await import('./shadow-css-423dab2c.js').then((m) => m.scopeCss(style, scopeId2));
2106
- }
2107
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2108
- endRegisterStyles();
2109
- }
2110
- }
2111
- }
2112
- const ancestorComponent = hostRef.$ancestorComponent$;
2113
- const schedule = () => scheduleUpdate(hostRef, true);
2114
- if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
2115
- ancestorComponent["s-rc"].push(schedule);
2116
- } else {
2117
- schedule();
2118
- }
2119
- };
2120
- var fireConnectedCallback = (instance) => {
2121
- if (BUILD.lazyLoad && BUILD.connectedCallback) {
2122
- safeCall(instance, "connectedCallback");
2123
- }
2124
- };
2125
-
2126
- // src/runtime/connected-callback.ts
2127
- var connectedCallback = (elm) => {
2128
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2129
- const hostRef = getHostRef(elm);
2130
- const cmpMeta = hostRef.$cmpMeta$;
2131
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2132
- if (BUILD.hostListenerTargetParent) {
2133
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
2134
- }
2135
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2136
- hostRef.$flags$ |= 1 /* hasConnected */;
2137
- let hostId;
2138
- if (BUILD.hydrateClientSide) {
2139
- hostId = elm.getAttribute(HYDRATE_ID);
2140
- if (hostId) {
2141
- if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2142
- const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
2143
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2144
- }
2145
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2146
- }
2147
- }
2148
- if (BUILD.slotRelocation && !hostId) {
2149
- if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2150
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2151
- setContentReference(elm);
2152
- }
2153
- }
2154
- if (BUILD.asyncLoading) {
2155
- let ancestorComponent = elm;
2156
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2157
- if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2158
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2159
- break;
2160
- }
2161
- }
2162
- }
2163
- if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
2164
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2165
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2166
- const value = elm[memberName];
2167
- delete elm[memberName];
2168
- elm[memberName] = value;
2169
- }
2170
- });
2171
- }
2172
- if (BUILD.initializeNextTick) {
2173
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2174
- } else {
2175
- initializeComponent(elm, hostRef, cmpMeta);
2176
- }
2177
- } else {
2178
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
2179
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2180
- fireConnectedCallback(hostRef.$lazyInstance$);
2181
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2182
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2183
- }
2184
- }
2185
- endConnected();
2186
- }
2187
- };
2188
- var setContentReference = (elm) => {
2189
- const contentRefElm = elm["s-cr"] = doc.createComment(
2190
- BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
2191
- );
2192
- contentRefElm["s-cn"] = true;
2193
- insertBefore(elm, contentRefElm, elm.firstChild);
2194
- };
2195
- var disconnectInstance = (instance) => {
2196
- if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
2197
- safeCall(instance, "disconnectedCallback");
2198
- }
2199
- if (BUILD.cmpDidUnload) {
2200
- safeCall(instance, "componentDidUnload");
2201
- }
2202
- };
2203
- var disconnectedCallback = async (elm) => {
2204
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2205
- const hostRef = getHostRef(elm);
2206
- if (BUILD.hostListener) {
2207
- if (hostRef.$rmListeners$) {
2208
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2209
- hostRef.$rmListeners$ = void 0;
2210
- }
2211
- }
2212
- if (!BUILD.lazyLoad) {
2213
- disconnectInstance(elm);
2214
- } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2215
- disconnectInstance(hostRef.$lazyInstance$);
2216
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2217
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2218
- }
2219
- }
2220
- };
2221
- var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
2222
- patchCloneNode(hostElementPrototype);
2223
- patchSlotAppendChild(hostElementPrototype);
2224
- patchSlotAppend(hostElementPrototype);
2225
- patchSlotPrepend(hostElementPrototype);
2226
- patchSlotInsertAdjacentElement(hostElementPrototype);
2227
- patchSlotInsertAdjacentHTML(hostElementPrototype);
2228
- patchSlotInsertAdjacentText(hostElementPrototype);
2229
- patchTextContent(hostElementPrototype);
2230
- patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
2231
- patchSlotRemoveChild(hostElementPrototype);
2232
- };
2233
- var patchCloneNode = (HostElementPrototype) => {
2234
- const orgCloneNode = HostElementPrototype.cloneNode;
2235
- HostElementPrototype.cloneNode = function(deep) {
2236
- const srcNode = this;
2237
- const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
2238
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
2239
- if (BUILD.slot && !isShadowDom && deep) {
2240
- let i2 = 0;
2241
- let slotted, nonStencilNode;
2242
- const stencilPrivates = [
2243
- "s-id",
2244
- "s-cr",
2245
- "s-lr",
2246
- "s-rc",
2247
- "s-sc",
2248
- "s-p",
2249
- "s-cn",
2250
- "s-sr",
2251
- "s-sn",
2252
- "s-hn",
2253
- "s-ol",
2254
- "s-nr",
2255
- "s-si",
2256
- "s-rf",
2257
- "s-scs"
2258
- ];
2259
- for (; i2 < srcNode.childNodes.length; i2++) {
2260
- slotted = srcNode.childNodes[i2]["s-nr"];
2261
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
2262
- if (slotted) {
2263
- if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
2264
- clonedNode.__appendChild(slotted.cloneNode(true));
2265
- } else {
2266
- clonedNode.appendChild(slotted.cloneNode(true));
2267
- }
2268
- }
2269
- if (nonStencilNode) {
2270
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
2271
- }
2272
- }
2273
- }
2274
- return clonedNode;
2275
- };
2276
- };
2277
- var patchSlotAppendChild = (HostElementPrototype) => {
2278
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2279
- HostElementPrototype.appendChild = function(newChild) {
2280
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2281
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2282
- if (slotNode) {
2283
- const slotPlaceholder = document.createTextNode("");
2284
- slotPlaceholder["s-nr"] = newChild;
2285
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
2286
- newChild["s-ol"] = slotPlaceholder;
2287
- newChild["s-sh"] = slotNode["s-hn"];
2288
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2289
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2290
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2291
- updateFallbackSlotVisibility(this);
2292
- return insertedNode;
2293
- }
2294
- return this.__appendChild(newChild);
2295
- };
2296
- };
2297
- var patchSlotRemoveChild = (ElementPrototype) => {
2298
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
2299
- ElementPrototype.removeChild = function(toRemove) {
2300
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
2301
- const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
2302
- if (slotNode) {
2303
- const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
2304
- const existingNode = slotChildNodes.find((n) => n === toRemove);
2305
- if (existingNode) {
2306
- existingNode.remove();
2307
- updateFallbackSlotVisibility(this);
2308
- return;
2309
- }
2310
- }
2311
- }
2312
- return this.__removeChild(toRemove);
2313
- };
2314
- };
2315
- var patchSlotPrepend = (HostElementPrototype) => {
2316
- const originalPrepend = HostElementPrototype.prepend;
2317
- HostElementPrototype.prepend = function(...newChildren) {
2318
- newChildren.forEach((newChild) => {
2319
- if (typeof newChild === "string") {
2320
- newChild = this.ownerDocument.createTextNode(newChild);
2321
- }
2322
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2323
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2324
- if (slotNode) {
2325
- const slotPlaceholder = document.createTextNode("");
2326
- slotPlaceholder["s-nr"] = newChild;
2327
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
2328
- newChild["s-ol"] = slotPlaceholder;
2329
- newChild["s-sh"] = slotNode["s-hn"];
2330
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2331
- const appendAfter = slotChildNodes[0];
2332
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2333
- }
2334
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
2335
- newChild.hidden = true;
2336
- }
2337
- return originalPrepend.call(this, newChild);
2338
- });
2339
- };
2340
- };
2341
- var patchSlotAppend = (HostElementPrototype) => {
2342
- HostElementPrototype.append = function(...newChildren) {
2343
- newChildren.forEach((newChild) => {
2344
- if (typeof newChild === "string") {
2345
- newChild = this.ownerDocument.createTextNode(newChild);
2346
- }
2347
- this.appendChild(newChild);
2348
- });
2349
- };
2350
- };
2351
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
2352
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
2353
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
2354
- if (position !== "afterbegin" && position !== "beforeend") {
2355
- return originalInsertAdjacentHtml.call(this, position, text);
2356
- }
2357
- const container = this.ownerDocument.createElement("_");
2358
- let node;
2359
- container.innerHTML = text;
2360
- if (position === "afterbegin") {
2361
- while (node = container.firstChild) {
2362
- this.prepend(node);
2363
- }
2364
- } else if (position === "beforeend") {
2365
- while (node = container.firstChild) {
2366
- this.append(node);
2367
- }
2368
- }
2369
- };
2370
- };
2371
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2372
- HostElementPrototype.insertAdjacentText = function(position, text) {
2373
- this.insertAdjacentHTML(position, text);
2374
- };
2375
- };
2376
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2377
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2378
- HostElementPrototype.insertAdjacentElement = function(position, element) {
2379
- if (position !== "afterbegin" && position !== "beforeend") {
2380
- return originalInsertAdjacentElement.call(this, position, element);
2381
- }
2382
- if (position === "afterbegin") {
2383
- this.prepend(element);
2384
- return element;
2385
- } else if (position === "beforeend") {
2386
- this.append(element);
2387
- return element;
2388
- }
2389
- return element;
2390
- };
2391
- };
2392
- var patchTextContent = (hostElementPrototype) => {
2393
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2394
- Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2395
- if (BUILD.experimentalScopedSlotChanges) {
2396
- Object.defineProperty(hostElementPrototype, "textContent", {
2397
- // To mimic shadow root behavior, we need to return the text content of all
2398
- // nodes in a slot reference node
2399
- get() {
2400
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2401
- const textContent = slotRefNodes.map((node) => {
2402
- var _a, _b;
2403
- const text = [];
2404
- let slotContent = node.nextSibling;
2405
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2406
- if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2407
- text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2408
- }
2409
- slotContent = slotContent.nextSibling;
2410
- }
2411
- return text.filter((ref) => ref !== "").join(" ");
2412
- }).filter((text) => text !== "").join(" ");
2413
- return " " + textContent + " ";
2414
- },
2415
- // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2416
- // reference node. If a default slot reference node exists, the text content will be
2417
- // placed there. Otherwise, the new text node will be hidden
2418
- set(value) {
2419
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2420
- slotRefNodes.forEach((node) => {
2421
- let slotContent = node.nextSibling;
2422
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2423
- const tmp = slotContent;
2424
- slotContent = slotContent.nextSibling;
2425
- tmp.remove();
2426
- }
2427
- if (node["s-sn"] === "") {
2428
- const textNode = this.ownerDocument.createTextNode(value);
2429
- textNode["s-sn"] = "";
2430
- insertBefore(node.parentElement, textNode, node.nextSibling);
2431
- } else {
2432
- node.remove();
2433
- }
2434
- });
2435
- }
2436
- });
2437
- } else {
2438
- Object.defineProperty(hostElementPrototype, "textContent", {
2439
- get() {
2440
- var _a;
2441
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2442
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2443
- return slotNode.nextSibling.textContent;
2444
- } else if (slotNode) {
2445
- return slotNode.textContent;
2446
- } else {
2447
- return this.__textContent;
2448
- }
2449
- },
2450
- set(value) {
2451
- var _a;
2452
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2453
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2454
- slotNode.nextSibling.textContent = value;
2455
- } else if (slotNode) {
2456
- slotNode.textContent = value;
2457
- } else {
2458
- this.__textContent = value;
2459
- const contentRefElm = this["s-cr"];
2460
- if (contentRefElm) {
2461
- insertBefore(this, contentRefElm, this.firstChild);
2462
- }
2463
- }
2464
- }
2465
- });
2466
- }
2467
- };
2468
- var patchChildSlotNodes = (elm, cmpMeta) => {
2469
- class FakeNodeList extends Array {
2470
- item(n) {
2471
- return this[n];
2472
- }
2473
- }
2474
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2475
- const childNodesFn = elm.__lookupGetter__("childNodes");
2476
- Object.defineProperty(elm, "children", {
2477
- get() {
2478
- return this.childNodes.map((n) => n.nodeType === 1);
2479
- }
2480
- });
2481
- Object.defineProperty(elm, "childElementCount", {
2482
- get() {
2483
- return elm.children.length;
2484
- }
2485
- });
2486
- Object.defineProperty(elm, "childNodes", {
2487
- get() {
2488
- const childNodes = childNodesFn.call(this);
2489
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2490
- const result = new FakeNodeList();
2491
- for (let i2 = 0; i2 < childNodes.length; i2++) {
2492
- const slot = childNodes[i2]["s-nr"];
2493
- if (slot) {
2494
- result.push(slot);
2495
- }
2496
- }
2497
- return result;
2498
- }
2499
- return FakeNodeList.from(childNodes);
2500
- }
2501
- });
2502
- }
2503
- };
2504
- var getAllChildSlotNodes = (childNodes) => {
2505
- const slotRefNodes = [];
2506
- for (const childNode of Array.from(childNodes)) {
2507
- if (childNode["s-sr"]) {
2508
- slotRefNodes.push(childNode);
2509
- }
2510
- slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2511
- }
2512
- return slotRefNodes;
2513
- };
2514
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2515
- var getHostSlotNode = (childNodes, slotName, hostName) => {
2516
- let i2 = 0;
2517
- let childNode;
2518
- for (; i2 < childNodes.length; i2++) {
2519
- childNode = childNodes[i2];
2520
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2521
- return childNode;
2522
- }
2523
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2524
- if (childNode) {
2525
- return childNode;
2526
- }
2527
- }
2528
- return null;
2529
- };
2530
- var getHostSlotChildNodes = (n, slotName) => {
2531
- const childNodes = [n];
2532
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2533
- childNodes.push(n);
2534
- }
2535
- return childNodes;
2536
- };
2537
-
2538
- // src/runtime/bootstrap-custom-element.ts
2539
- var defineCustomElement = (Cstr, compactMeta) => {
2540
- customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
2541
- };
2542
- var proxyCustomElement = (Cstr, compactMeta) => {
2543
- const cmpMeta = {
2544
- $flags$: compactMeta[0],
2545
- $tagName$: compactMeta[1]
2546
- };
2547
- if (BUILD.member) {
2548
- cmpMeta.$members$ = compactMeta[2];
2549
- }
2550
- if (BUILD.hostListener) {
2551
- cmpMeta.$listeners$ = compactMeta[3];
2552
- }
2553
- if (BUILD.watchCallback) {
2554
- cmpMeta.$watchers$ = Cstr.$watchers$;
2555
- }
2556
- if (BUILD.reflect) {
2557
- cmpMeta.$attrsToReflect$ = [];
2558
- }
2559
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2560
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2561
- }
2562
- if (BUILD.experimentalSlotFixes) {
2563
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2564
- patchPseudoShadowDom(Cstr.prototype, cmpMeta);
2565
- }
2566
- } else {
2567
- if (BUILD.slotChildNodesFix) {
2568
- patchChildSlotNodes(Cstr.prototype, cmpMeta);
2569
- }
2570
- if (BUILD.cloneNodeFix) {
2571
- patchCloneNode(Cstr.prototype);
2572
- }
2573
- if (BUILD.appendChildSlotFix) {
2574
- patchSlotAppendChild(Cstr.prototype);
2575
- }
2576
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2577
- patchTextContent(Cstr.prototype);
2578
- }
2579
- }
2580
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
2581
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2582
- Object.assign(Cstr.prototype, {
2583
- __registerHost() {
2584
- registerHost(this, cmpMeta);
2585
- },
2586
- connectedCallback() {
2587
- const hostRef = getHostRef(this);
2588
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2589
- connectedCallback(this);
2590
- if (BUILD.connectedCallback && originalConnectedCallback) {
2591
- originalConnectedCallback.call(this);
2592
- }
2593
- },
2594
- disconnectedCallback() {
2595
- disconnectedCallback(this);
2596
- if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
2597
- originalDisconnectedCallback.call(this);
2598
- }
2599
- },
2600
- __attachShadow() {
2601
- if (supportsShadow) {
2602
- if (!this.shadowRoot) {
2603
- if (BUILD.shadowDelegatesFocus) {
2604
- this.attachShadow({
2605
- mode: "open",
2606
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2607
- });
2608
- } else {
2609
- this.attachShadow({ mode: "open" });
2610
- }
2611
- } else {
2612
- if (this.shadowRoot.mode !== "open") {
2613
- throw new Error(
2614
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
2615
- );
2616
- }
2617
- }
2618
- } else {
2619
- this.shadowRoot = this;
2620
- }
2621
- }
2622
- });
2623
- Cstr.is = cmpMeta.$tagName$;
2624
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2625
- };
2626
- var forceModeUpdate = (elm) => {
2627
- if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
2628
- const mode = computeMode(elm);
2629
- const hostRef = getHostRef(elm);
2630
- if (hostRef.$modeName$ !== mode) {
2631
- const cmpMeta = hostRef.$cmpMeta$;
2632
- const oldScopeId = elm["s-sc"];
2633
- const scopeId2 = getScopeId(cmpMeta, mode);
2634
- const style = elm.constructor.style[mode];
2635
- const flags = cmpMeta.$flags$;
2636
- if (style) {
2637
- if (!styles.has(scopeId2)) {
2638
- registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
2639
- }
2640
- hostRef.$modeName$ = mode;
2641
- elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
2642
- attachStyles(hostRef);
2643
- forceUpdate(elm);
2644
- }
2645
- }
2646
- }
2647
- };
2648
-
2649
- // src/runtime/hmr-component.ts
2650
- var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
2651
- const hostRef = getHostRef(hostElement);
2652
- hostRef.$flags$ = 1 /* hasConnected */;
2653
- initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
2654
- };
2655
-
2656
- // src/runtime/bootstrap-lazy.ts
2657
- var bootstrapLazy = (lazyBundles, options = {}) => {
2658
- var _a;
2659
- if (BUILD.profile && performance.mark) {
2660
- performance.mark("st:app:start");
2661
- }
2662
- installDevTools();
2663
- const endBootstrap = createTime("bootstrapLazy");
2664
- const cmpTags = [];
2665
- const exclude = options.exclude || [];
2666
- const customElements2 = win.customElements;
2667
- const head = doc.head;
2668
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2669
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
2670
- const deferredConnectedCallbacks = [];
2671
- let appLoadFallback;
2672
- let isBootstrapping = true;
2673
- Object.assign(plt, options);
2674
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2675
- if (BUILD.asyncQueue) {
2676
- if (options.syncQueue) {
2677
- plt.$flags$ |= 4 /* queueSync */;
2678
- }
2679
- }
2680
- if (BUILD.hydrateClientSide) {
2681
- plt.$flags$ |= 2 /* appLoaded */;
2682
- }
2683
- let hasSlotRelocation = false;
2684
- lazyBundles.map((lazyBundle) => {
2685
- lazyBundle[1].map((compactMeta) => {
2686
- var _a2;
2687
- const cmpMeta = {
2688
- $flags$: compactMeta[0],
2689
- $tagName$: compactMeta[1],
2690
- $members$: compactMeta[2],
2691
- $listeners$: compactMeta[3]
2692
- };
2693
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2694
- hasSlotRelocation = true;
2695
- }
2696
- if (BUILD.member) {
2697
- cmpMeta.$members$ = compactMeta[2];
2698
- }
2699
- if (BUILD.hostListener) {
2700
- cmpMeta.$listeners$ = compactMeta[3];
2701
- }
2702
- if (BUILD.reflect) {
2703
- cmpMeta.$attrsToReflect$ = [];
2704
- }
2705
- if (BUILD.watchCallback) {
2706
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2707
- }
2708
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2709
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2710
- }
2711
- const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
2712
- const HostElement = class extends HTMLElement {
2713
- // StencilLazyHost
2714
- constructor(self) {
2715
- super(self);
2716
- this.hasRegisteredEventListeners = false;
2717
- self = this;
2718
- registerHost(self, cmpMeta);
2719
- if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2720
- if (supportsShadow) {
2721
- if (!self.shadowRoot) {
2722
- if (BUILD.shadowDelegatesFocus) {
2723
- self.attachShadow({
2724
- mode: "open",
2725
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2726
- });
2727
- } else {
2728
- self.attachShadow({ mode: "open" });
2729
- }
2730
- } else {
2731
- if (self.shadowRoot.mode !== "open") {
2732
- throw new Error(
2733
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2734
- );
2735
- }
2736
- }
2737
- } else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
2738
- self.shadowRoot = self;
2739
- }
2740
- }
2741
- }
2742
- connectedCallback() {
2743
- const hostRef = getHostRef(this);
2744
- if (!this.hasRegisteredEventListeners) {
2745
- this.hasRegisteredEventListeners = true;
2746
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2747
- }
2748
- if (appLoadFallback) {
2749
- clearTimeout(appLoadFallback);
2750
- appLoadFallback = null;
2751
- }
2752
- if (isBootstrapping) {
2753
- deferredConnectedCallbacks.push(this);
2754
- } else {
2755
- plt.jmp(() => connectedCallback(this));
2756
- }
2757
- }
2758
- disconnectedCallback() {
2759
- plt.jmp(() => disconnectedCallback(this));
2760
- }
2761
- componentOnReady() {
2762
- return getHostRef(this).$onReadyPromise$;
2763
- }
2764
- };
2765
- if (BUILD.experimentalSlotFixes) {
2766
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2767
- patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2768
- }
2769
- } else {
2770
- if (BUILD.slotChildNodesFix) {
2771
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2772
- }
2773
- if (BUILD.cloneNodeFix) {
2774
- patchCloneNode(HostElement.prototype);
2775
- }
2776
- if (BUILD.appendChildSlotFix) {
2777
- patchSlotAppendChild(HostElement.prototype);
2778
- }
2779
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2780
- patchTextContent(HostElement.prototype);
2781
- }
2782
- }
2783
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
2784
- HostElement.formAssociated = true;
2785
- }
2786
- if (BUILD.hotModuleReplacement) {
2787
- HostElement.prototype["s-hmr"] = function(hmrVersionId) {
2788
- hmrStart(this, cmpMeta, hmrVersionId);
2789
- };
2790
- }
2791
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2792
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2793
- cmpTags.push(tagName);
2794
- customElements2.define(
2795
- tagName,
2796
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2797
- );
2798
- }
2799
- });
2800
- });
2801
- if (cmpTags.length > 0) {
2802
- if (hasSlotRelocation) {
2803
- dataStyles.textContent += SLOT_FB_CSS;
2804
- }
2805
- if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
2806
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2807
- }
2808
- if (dataStyles.innerHTML.length) {
2809
- dataStyles.setAttribute("data-styles", "");
2810
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2811
- if (nonce != null) {
2812
- dataStyles.setAttribute("nonce", nonce);
2813
- }
2814
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2815
- }
2816
- }
2817
- isBootstrapping = false;
2818
- if (deferredConnectedCallbacks.length) {
2819
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2820
- } else {
2821
- if (BUILD.profile) {
2822
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
2823
- } else {
2824
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2825
- }
2826
- }
2827
- endBootstrap();
2828
- };
2829
-
2830
- // src/runtime/fragment.ts
2831
- var Fragment = (_, children) => children;
2832
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2833
- if (BUILD.hostListener && listeners) {
2834
- if (BUILD.hostListenerTargetParent) {
2835
- if (attachParentListeners) {
2836
- listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
2837
- } else {
2838
- listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
2839
- }
2840
- }
2841
- listeners.map(([flags, name, method]) => {
2842
- const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
2843
- const handler = hostListenerProxy(hostRef, method);
2844
- const opts = hostListenerOpts(flags);
2845
- plt.ael(target, name, handler, opts);
2846
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2847
- });
2848
- }
2849
- };
2850
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2851
- var _a;
2852
- try {
2853
- if (BUILD.lazyLoad) {
2854
- if (hostRef.$flags$ & 256 /* isListenReady */) {
2855
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2856
- } else {
2857
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2858
- }
2859
- } else {
2860
- hostRef.$hostElement$[methodName](ev);
2861
- }
2862
- } catch (e) {
2863
- consoleError(e);
2864
- }
2865
- };
2866
- var getHostListenerTarget = (elm, flags) => {
2867
- if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
2868
- if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
2869
- if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
2870
- if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
2871
- return elm.parentElement;
2872
- return elm;
2873
- };
2874
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2875
- passive: (flags & 1 /* Passive */) !== 0,
2876
- capture: (flags & 2 /* Capture */) !== 0
2877
- } : (flags & 2 /* Capture */) !== 0;
2878
-
2879
- // src/runtime/nonce.ts
2880
- var setNonce = (nonce) => plt.$nonce$ = nonce;
2881
-
2882
- // src/runtime/platform-options.ts
2883
- var setPlatformOptions = (opts) => Object.assign(plt, opts);
2884
-
2885
- // src/runtime/vdom/vdom-annotations.ts
2886
- var insertVdomAnnotations = (doc2, staticComponents) => {
2887
- if (doc2 != null) {
2888
- const docData = {
2889
- hostIds: 0,
2890
- rootLevelIds: 0,
2891
- staticComponents: new Set(staticComponents)
2892
- };
2893
- const orgLocationNodes = [];
2894
- parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
2895
- orgLocationNodes.forEach((orgLocationNode) => {
2896
- var _a;
2897
- if (orgLocationNode != null && orgLocationNode["s-nr"]) {
2898
- const nodeRef = orgLocationNode["s-nr"];
2899
- let hostId = nodeRef["s-host-id"];
2900
- let nodeId = nodeRef["s-node-id"];
2901
- let childId = `${hostId}.${nodeId}`;
2902
- if (hostId == null) {
2903
- hostId = 0;
2904
- docData.rootLevelIds++;
2905
- nodeId = docData.rootLevelIds;
2906
- childId = `${hostId}.${nodeId}`;
2907
- if (nodeRef.nodeType === 1 /* ElementNode */) {
2908
- nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2909
- } else if (nodeRef.nodeType === 3 /* TextNode */) {
2910
- if (hostId === 0) {
2911
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
2912
- if (textContent === "") {
2913
- orgLocationNode.remove();
2914
- return;
2915
- }
2916
- }
2917
- const commentBeforeTextNode = doc2.createComment(childId);
2918
- commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2919
- insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
2920
- }
2921
- }
2922
- let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
2923
- const orgLocationParentNode = orgLocationNode.parentElement;
2924
- if (orgLocationParentNode) {
2925
- if (orgLocationParentNode["s-en"] === "") {
2926
- orgLocationNodeId += `.`;
2927
- } else if (orgLocationParentNode["s-en"] === "c") {
2928
- orgLocationNodeId += `.c`;
2929
- }
2930
- }
2931
- orgLocationNode.nodeValue = orgLocationNodeId;
2932
- }
2933
- });
2934
- }
2935
- };
2936
- var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
2937
- var _a;
2938
- if (node == null) {
2939
- return;
2940
- }
2941
- if (node["s-nr"] != null) {
2942
- orgLocationNodes.push(node);
2943
- }
2944
- if (node.nodeType === 1 /* ElementNode */) {
2945
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
2946
- childNodes.forEach((childNode) => {
2947
- const hostRef = getHostRef(childNode);
2948
- if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
2949
- const cmpData = {
2950
- nodeIds: 0
2951
- };
2952
- insertVNodeAnnotations(doc2, childNode, hostRef.$vnode$, docData, cmpData);
2953
- }
2954
- parseVNodeAnnotations(doc2, childNode, docData, orgLocationNodes);
2955
- });
2956
- }
2957
- };
2958
- var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
2959
- if (vnode != null) {
2960
- const hostId = ++docData.hostIds;
2961
- hostElm.setAttribute(HYDRATE_ID, hostId);
2962
- if (hostElm["s-cr"] != null) {
2963
- hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
2964
- }
2965
- if (vnode.$children$ != null) {
2966
- const depth = 0;
2967
- vnode.$children$.forEach((vnodeChild, index) => {
2968
- insertChildVNodeAnnotations(doc2, vnodeChild, cmpData, hostId, depth, index);
2969
- });
2970
- }
2971
- if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
2972
- const parent = hostElm.parentElement;
2973
- if (parent && parent.childNodes) {
2974
- const parentChildNodes = Array.from(parent.childNodes);
2975
- const comment = parentChildNodes.find(
2976
- (node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
2977
- );
2978
- if (comment) {
2979
- const index = parentChildNodes.indexOf(hostElm) - 1;
2980
- vnode.$elm$.setAttribute(
2981
- HYDRATE_CHILD_ID,
2982
- `${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
2983
- );
2984
- }
2985
- }
2986
- }
2987
- }
2988
- };
2989
- var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, index) => {
2990
- const childElm = vnodeChild.$elm$;
2991
- if (childElm == null) {
2992
- return;
2993
- }
2994
- const nodeId = cmpData.nodeIds++;
2995
- const childId = `${hostId}.${nodeId}.${depth}.${index}`;
2996
- childElm["s-host-id"] = hostId;
2997
- childElm["s-node-id"] = nodeId;
2998
- if (childElm.nodeType === 1 /* ElementNode */) {
2999
- childElm.setAttribute(HYDRATE_CHILD_ID, childId);
3000
- } else if (childElm.nodeType === 3 /* TextNode */) {
3001
- const parentNode = childElm.parentNode;
3002
- const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
3003
- if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
3004
- const textNodeId = `${TEXT_NODE_ID}.${childId}`;
3005
- const commentBeforeTextNode = doc2.createComment(textNodeId);
3006
- insertBefore(parentNode, commentBeforeTextNode, childElm);
3007
- }
3008
- } else if (childElm.nodeType === 8 /* CommentNode */) {
3009
- if (childElm["s-sr"]) {
3010
- const slotName = childElm["s-sn"] || "";
3011
- const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
3012
- childElm.nodeValue = slotNodeId;
3013
- }
3014
- }
3015
- if (vnodeChild.$children$ != null) {
3016
- const childDepth = depth + 1;
3017
- vnodeChild.$children$.forEach((vnode, index2) => {
3018
- insertChildVNodeAnnotations(doc2, vnode, cmpData, hostId, childDepth, index2);
3019
- });
3020
- }
3021
- };
3022
-
3023
- export { BUILD as B, H, NAMESPACE as N, createEvent as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, Host as e, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };