@ebrains/components 0.9.0-beta → 0.9.2-beta

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 (971) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/{collection/utils/analytics.js → components/analytics-e29fcd53.js} +8 -6
  4. package/dist/components/{color.js → color-47266964.js} +1 -1
  5. package/dist/{collection/eds-docs-ui/colors/color-palette/primary.js → components/color-primary-palette.entry.js} +8 -8
  6. package/dist/{collection/eds-docs-ui/colors/color-palette/secondary.js → components/color-secondary-palette.entry.js} +8 -29
  7. package/dist/{collection/eds-docs-ui/colors/color-palette/support.js → components/color-support-palette.entry.js} +8 -8
  8. package/dist/{esm → components}/components-section.entry.js +1 -1
  9. package/dist/components/components.esm.js +47 -1
  10. package/dist/{esm → components}/correct-use-of-colors.entry.js +1 -1
  11. package/dist/{esm → components}/docs-palettes.entry.js +1 -1
  12. package/dist/{esm → components}/docs-tokens.entry.js +1 -1
  13. package/dist/{esm → components}/eds-accordion.entry.js +7 -8
  14. package/dist/{esm → components}/eds-alert.entry.js +3 -4
  15. package/dist/{esm → components}/eds-app-root.entry.js +1 -1
  16. package/dist/components/{eds-avatar2.js → eds-avatar.entry.js} +9 -36
  17. package/dist/components/eds-block-break.entry.js +16 -0
  18. package/dist/{esm → components}/eds-breadcrumb.entry.js +17 -12
  19. package/dist/components/{eds-button2.js → eds-button.entry.js} +10 -46
  20. package/dist/components/{eds-card-desc2.js → eds-card-desc.entry.js} +7 -28
  21. package/dist/{esm → components}/eds-card-generic.entry.js +6 -7
  22. package/dist/{esm → components}/eds-card-project.entry.js +4 -4
  23. package/dist/{esm → components}/eds-card-section.entry.js +3 -4
  24. package/dist/{esm → components}/eds-card-tags.entry.js +2 -3
  25. package/dist/components/{eds-card-title2.js → eds-card-title.entry.js} +7 -30
  26. package/dist/{esm → components}/eds-card-tool.entry.js +3 -4
  27. package/dist/{esm → components}/eds-card-wrapper.entry.js +1 -1
  28. package/dist/{esm → components}/eds-code-block.entry.js +34 -4
  29. package/dist/{esm → components}/eds-cookies-preference.entry.js +2 -3
  30. package/dist/components/{eds-dropdown2.js → eds-dropdown.entry.js} +9 -48
  31. package/dist/{esm → components}/eds-feedback.entry.js +3 -4
  32. package/dist/components/{eds-footer2.js → eds-footer.entry.js} +7 -60
  33. package/dist/components/{eds-form.js → eds-form.entry.js} +66 -100
  34. package/dist/{esm → components}/eds-frame.entry.js +2 -3
  35. package/dist/components/{eds-fullscreen-menu.js → eds-fullscreen-menu.entry.js} +8 -81
  36. package/dist/components/{eds-header.js → eds-header.entry.js} +9 -60
  37. package/dist/{esm → components}/eds-icon-arrow-diagonal.entry.js +2 -2
  38. package/dist/{esm → components}/eds-icon-arrow-right.entry.js +2 -2
  39. package/dist/{esm → components}/eds-icon-bluesky.entry.js +2 -2
  40. package/dist/{esm → components}/eds-icon-bookmark.entry.js +2 -2
  41. package/dist/{esm → components}/eds-icon-chevron-down.entry.js +2 -2
  42. package/dist/{esm → components}/eds-icon-chevron-left.entry.js +2 -2
  43. package/dist/{esm → components}/eds-icon-chevron-right.entry.js +2 -2
  44. package/dist/{esm → components}/eds-icon-chevron-up.entry.js +2 -2
  45. package/dist/{esm → components}/eds-icon-close.entry.js +2 -2
  46. package/dist/{esm → components}/eds-icon-copy.entry.js +2 -2
  47. package/dist/{esm → components}/eds-icon-eu.entry.js +2 -2
  48. package/dist/{esm → components}/eds-icon-external.entry.js +2 -2
  49. package/dist/{esm → components}/eds-icon-facebook.entry.js +2 -2
  50. package/dist/{esm → components}/eds-icon-gitlab.entry.js +2 -2
  51. package/dist/{esm → components}/eds-icon-linkedin.entry.js +2 -2
  52. package/dist/{esm → components}/eds-icon-loader.entry.js +2 -2
  53. package/dist/{esm → components}/eds-icon-mastodon.entry.js +2 -2
  54. package/dist/{esm → components}/eds-icon-menu.entry.js +2 -2
  55. package/dist/{esm → components}/eds-icon-minus.entry.js +2 -2
  56. package/dist/{esm → components}/eds-icon-more.entry.js +2 -2
  57. package/dist/{esm → components}/eds-icon-paper.entry.js +2 -2
  58. package/dist/{esm → components}/eds-icon-plus.entry.js +2 -2
  59. package/dist/{esm → components}/eds-icon-portal.entry.js +2 -2
  60. package/dist/{esm → components}/eds-icon-private.entry.js +2 -2
  61. package/dist/{esm → components}/eds-icon-public.entry.js +2 -2
  62. package/dist/{esm → components}/eds-icon-search.entry.js +2 -2
  63. package/dist/{esm → components}/eds-icon-star.entry.js +2 -2
  64. package/dist/{esm → components}/eds-icon-success.entry.js +2 -2
  65. package/dist/{esm → components}/eds-icon-thumbs-down.entry.js +2 -2
  66. package/dist/{esm → components}/eds-icon-thumbs-up.entry.js +2 -2
  67. package/dist/{esm → components}/eds-icon-tutorial.entry.js +2 -2
  68. package/dist/{esm → components}/eds-icon-twitter.entry.js +2 -2
  69. package/dist/{esm → components}/eds-icon-unknown.entry.js +2 -2
  70. package/dist/{esm → components}/eds-icon-updown.entry.js +2 -2
  71. package/dist/{esm → components}/eds-icon-user.entry.js +2 -2
  72. package/dist/components/{eds-icon-wrapper2.js → eds-icon-wrapper.entry.js} +6 -26
  73. package/dist/{esm → components}/eds-icon-youtube.entry.js +2 -2
  74. package/dist/components/{eds-img2.js → eds-img.entry.js} +8 -36
  75. package/dist/components/{eds-input-field2.js → eds-input-field.entry.js} +8 -86
  76. package/dist/components/eds-input-footer.entry.js +17 -0
  77. package/dist/components/eds-input-label.entry.js +16 -0
  78. package/dist/components/{eds-input-range2.js → eds-input-range.entry.js} +7 -34
  79. package/dist/components/{eds-input-search2.js → eds-input-search.entry.js} +8 -38
  80. package/dist/components/{eds-input-select2.js → eds-input-select.entry.js} +7 -46
  81. package/dist/components/{eds-input2.js → eds-input.entry.js} +7 -46
  82. package/dist/components/{eds-link2.js → eds-link.entry.js} +11 -48
  83. package/dist/components/{eds-login2.js → eds-login.entry.js} +17 -41
  84. package/dist/components/{eds-logo2.js → eds-logo.entry.js} +10 -32
  85. package/dist/{esm → components}/eds-matomo-notice.entry.js +8 -9
  86. package/dist/{esm → components}/eds-modal.entry.js +8 -9
  87. package/dist/components/{eds-pagination2.js → eds-pagination.entry.js} +8 -51
  88. package/dist/{esm → components}/eds-progress-bar.entry.js +2 -3
  89. package/dist/{esm → components}/eds-rating.entry.js +2 -3
  90. package/dist/components/eds-section-core.entry.js +19 -0
  91. package/dist/{esm/eds-section-core_2.entry.js → components/eds-section-heading.entry.js} +4 -21
  92. package/dist/components/{eds-social-networks2.js → eds-social-networks.entry.js} +9 -39
  93. package/dist/{esm → components}/eds-spinner.entry.js +2 -3
  94. package/dist/components/{eds-splash-screen2.js → eds-splash-screen.entry.js} +7 -41
  95. package/dist/components/{eds-steps-v2.js → eds-steps-v2.entry.js} +9 -55
  96. package/dist/components/{eds-steps2.js → eds-steps.entry.js} +9 -43
  97. package/dist/{esm → components}/eds-switch.entry.js +4 -5
  98. package/dist/components/{eds-table2.js → eds-table.entry.js} +10 -105
  99. package/dist/{esm → components}/eds-tabs.entry.js +10 -11
  100. package/dist/components/eds-tag.entry.js +44 -0
  101. package/dist/{esm → components}/eds-timeline.entry.js +4 -5
  102. package/dist/{esm → components}/eds-toast-manager.entry.js +3 -4
  103. package/dist/{esm → components}/eds-toast.entry.js +3 -4
  104. package/dist/{esm → components}/eds-tooltip.entry.js +3 -4
  105. package/dist/{esm → components}/eds-trl.entry.js +1 -1
  106. package/dist/components/{eds-user.js → eds-user.entry.js} +9 -60
  107. package/dist/{collection/eds-docs-ui/colors/gradient-palette/primary.js → components/gradient-primary-palette.entry.js} +8 -8
  108. package/dist/{collection/eds-docs-ui/colors/gradient-palette/secondary.js → components/gradient-secondary-palette.entry.js} +8 -8
  109. package/dist/{collection/eds-docs-ui/colors/gradient-palette/support.js → components/gradient-support-palette.entry.js} +8 -8
  110. package/dist/{esm → components}/incorrect-use-of-colors.entry.js +1 -1
  111. package/dist/{cjs/logo-white-no-bg-4a0e0f4b.js → components/index-7281d120.js} +941 -10
  112. package/dist/{esm/index-8a71b9a7.js → components/index-9d277061.js} +1332 -511
  113. package/dist/components/index.esm.js +1 -0
  114. package/dist/{esm → components}/logo-space.entry.js +3 -4
  115. package/dist/components/{logo-variations-horizontal2.js → logo-variations-horizontal.entry.js} +7 -29
  116. package/dist/{esm → components}/logo-variations-tabs.entry.js +1 -1
  117. package/dist/components/{logo-variations-vertical2.js → logo-variations-vertical.entry.js} +7 -32
  118. package/dist/{esm → components}/logo-wrong-usage.entry.js +3 -4
  119. package/dist/components/shadow-css-423dab2c.js +332 -0
  120. package/dist/{collection/eds-docs-ui/svg-repository/svg-repository.js → components/svg-repository.entry.js} +14 -20
  121. package/dist/components/{token-list2.js → token-list.entry.js} +6 -34
  122. package/dist/{collection/eds-docs-ui/design-tokens/token-radii/token-radii.js → components/token-radii.entry.js} +18 -8
  123. package/dist/{esm → components}/token-ratios.entry.js +1 -1
  124. package/dist/{collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js → components/token-shadows.entry.js} +27 -8
  125. package/dist/{collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js → components/token-spacing.entry.js} +9 -7
  126. package/dist/{esm → components}/token-typography.entry.js +1 -1
  127. package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
  128. package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
  129. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
  130. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
  131. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
  132. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
  133. package/dist/types/components.d.ts +40 -64
  134. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
  135. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  136. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
  137. package/package.json +3 -3
  138. package/dist/cjs/analytics-d8fb3fdd.js +0 -60
  139. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  140. package/dist/cjs/arrow-diagonal-black-0eb8640e.js +0 -5
  141. package/dist/cjs/arrow-right-3e38e8a9.js +0 -7
  142. package/dist/cjs/bluesky-eb0d6051.js +0 -16
  143. package/dist/cjs/bookmark-c61853d9.js +0 -18
  144. package/dist/cjs/chevron-down-27344777.js +0 -14
  145. package/dist/cjs/chevron-left-6fc9c6ef.js +0 -13
  146. package/dist/cjs/chevron-right-6d95a117.js +0 -7
  147. package/dist/cjs/chevron-up-e37d7713.js +0 -14
  148. package/dist/cjs/close-51284af5.js +0 -7
  149. package/dist/cjs/color-c00146a8.js +0 -134
  150. package/dist/cjs/color-primary-palette_6.cjs.entry.js +0 -340
  151. package/dist/cjs/components-section.cjs.entry.js +0 -139
  152. package/dist/cjs/components.cjs.js +0 -25
  153. package/dist/cjs/copy-53102d0c.js +0 -7
  154. package/dist/cjs/correct-use-of-colors.cjs.entry.js +0 -68
  155. package/dist/cjs/docs-palettes.cjs.entry.js +0 -27
  156. package/dist/cjs/docs-tokens.cjs.entry.js +0 -35
  157. package/dist/cjs/eds-accordion.cjs.entry.js +0 -86
  158. package/dist/cjs/eds-alert.cjs.entry.js +0 -104
  159. package/dist/cjs/eds-app-root.cjs.entry.js +0 -37
  160. package/dist/cjs/eds-avatar_24.cjs.entry.js +0 -2100
  161. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
  162. package/dist/cjs/eds-card-desc_3.cjs.entry.js +0 -113
  163. package/dist/cjs/eds-card-generic.cjs.entry.js +0 -92
  164. package/dist/cjs/eds-card-project.cjs.entry.js +0 -68
  165. package/dist/cjs/eds-card-section.cjs.entry.js +0 -39
  166. package/dist/cjs/eds-card-tags.cjs.entry.js +0 -22
  167. package/dist/cjs/eds-card-tool.cjs.entry.js +0 -79
  168. package/dist/cjs/eds-card-wrapper.cjs.entry.js +0 -32
  169. package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
  170. package/dist/cjs/eds-cookies-preference.cjs.entry.js +0 -39
  171. package/dist/cjs/eds-feedback.cjs.entry.js +0 -66
  172. package/dist/cjs/eds-frame.cjs.entry.js +0 -85
  173. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +0 -18
  174. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +0 -18
  175. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +0 -18
  176. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +0 -18
  177. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +0 -18
  178. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +0 -18
  179. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +0 -18
  180. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +0 -18
  181. package/dist/cjs/eds-icon-close.cjs.entry.js +0 -18
  182. package/dist/cjs/eds-icon-copy.cjs.entry.js +0 -18
  183. package/dist/cjs/eds-icon-eu.cjs.entry.js +0 -18
  184. package/dist/cjs/eds-icon-external.cjs.entry.js +0 -18
  185. package/dist/cjs/eds-icon-facebook.cjs.entry.js +0 -18
  186. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +0 -18
  187. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +0 -18
  188. package/dist/cjs/eds-icon-loader.cjs.entry.js +0 -18
  189. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +0 -18
  190. package/dist/cjs/eds-icon-menu.cjs.entry.js +0 -18
  191. package/dist/cjs/eds-icon-minus.cjs.entry.js +0 -18
  192. package/dist/cjs/eds-icon-more.cjs.entry.js +0 -18
  193. package/dist/cjs/eds-icon-paper.cjs.entry.js +0 -18
  194. package/dist/cjs/eds-icon-plus.cjs.entry.js +0 -18
  195. package/dist/cjs/eds-icon-portal.cjs.entry.js +0 -18
  196. package/dist/cjs/eds-icon-private.cjs.entry.js +0 -18
  197. package/dist/cjs/eds-icon-public.cjs.entry.js +0 -18
  198. package/dist/cjs/eds-icon-search.cjs.entry.js +0 -18
  199. package/dist/cjs/eds-icon-star.cjs.entry.js +0 -18
  200. package/dist/cjs/eds-icon-success.cjs.entry.js +0 -18
  201. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +0 -18
  202. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +0 -18
  203. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +0 -18
  204. package/dist/cjs/eds-icon-twitter.cjs.entry.js +0 -18
  205. package/dist/cjs/eds-icon-unknown.cjs.entry.js +0 -18
  206. package/dist/cjs/eds-icon-updown.cjs.entry.js +0 -18
  207. package/dist/cjs/eds-icon-user.cjs.entry.js +0 -18
  208. package/dist/cjs/eds-icon-youtube.cjs.entry.js +0 -18
  209. package/dist/cjs/eds-login_2.cjs.entry.js +0 -2100
  210. package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -123
  211. package/dist/cjs/eds-modal.cjs.entry.js +0 -109
  212. package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -403
  213. package/dist/cjs/eds-progress-bar.cjs.entry.js +0 -29
  214. package/dist/cjs/eds-rating.cjs.entry.js +0 -64
  215. package/dist/cjs/eds-section-core_2.cjs.entry.js +0 -59
  216. package/dist/cjs/eds-spinner.cjs.entry.js +0 -54
  217. package/dist/cjs/eds-switch.cjs.entry.js +0 -38
  218. package/dist/cjs/eds-tabs.cjs.entry.js +0 -130
  219. package/dist/cjs/eds-timeline.cjs.entry.js +0 -63
  220. package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -46
  221. package/dist/cjs/eds-toast.cjs.entry.js +0 -76
  222. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -109
  223. package/dist/cjs/eds-trl.cjs.entry.js +0 -51
  224. package/dist/cjs/eu-b9665157.js +0 -32
  225. package/dist/cjs/facebook-7aa65e57.js +0 -16
  226. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +0 -50
  227. package/dist/cjs/index-2f63169d.js +0 -2231
  228. package/dist/cjs/index-ab9fbefe.js +0 -48
  229. package/dist/cjs/index.cjs.js +0 -2
  230. package/dist/cjs/linkedin-46b0dd56.js +0 -30
  231. package/dist/cjs/loader-72f9d178.js +0 -32
  232. package/dist/cjs/loader.cjs.js +0 -15
  233. package/dist/cjs/logo-color-6c787ac1.js +0 -117
  234. package/dist/cjs/logo-color-margins-b49c0f46.js +0 -120
  235. package/dist/cjs/logo-space.cjs.entry.js +0 -21
  236. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +0 -36
  237. package/dist/cjs/logo-variations-tabs.cjs.entry.js +0 -27
  238. package/dist/cjs/logo-wrong-usage.cjs.entry.js +0 -21
  239. package/dist/cjs/mastodon-20c5bb7d.js +0 -16
  240. package/dist/cjs/menu-7050a6d1.js +0 -13
  241. package/dist/cjs/minus-1da6a98a.js +0 -13
  242. package/dist/cjs/mono-2f3cd653.js +0 -13
  243. package/dist/cjs/more-1d3dd8bc.js +0 -15
  244. package/dist/cjs/paper-0d6302f6.js +0 -17
  245. package/dist/cjs/plus-d0e00ad0.js +0 -14
  246. package/dist/cjs/portal-46212559.js +0 -20
  247. package/dist/cjs/private-38835fe7.js +0 -27
  248. package/dist/cjs/public-b519b1f6.js +0 -18
  249. package/dist/cjs/search-5533d877.js +0 -14
  250. package/dist/cjs/sharedUtils-8e287250.js +0 -21
  251. package/dist/cjs/star-942eee9f.js +0 -7
  252. package/dist/cjs/success-ef661a11.js +0 -20
  253. package/dist/cjs/svg-repository.cjs.entry.js +0 -337
  254. package/dist/cjs/thumbs-down-714036b1.js +0 -7
  255. package/dist/cjs/thumbs-up-411babb8.js +0 -8
  256. package/dist/cjs/toastManager-4e9535f3.js +0 -33
  257. package/dist/cjs/token-list_3.cjs.entry.js +0 -300
  258. package/dist/cjs/token-ratios.cjs.entry.js +0 -29
  259. package/dist/cjs/token-typography.cjs.entry.js +0 -230
  260. package/dist/cjs/tutotial-7855df3c.js +0 -29
  261. package/dist/cjs/twitter-73956e9a.js +0 -16
  262. package/dist/cjs/unknown-6814e551.js +0 -24
  263. package/dist/cjs/up-and-down-d71df67d.js +0 -14
  264. package/dist/cjs/user-a3c2230f.js +0 -18
  265. package/dist/cjs/youtube-c238a461.js +0 -16
  266. package/dist/collection/collection-manifest.json +0 -128
  267. package/dist/collection/components/eds-accordion/eds-accordion.css +0 -264
  268. package/dist/collection/components/eds-accordion/eds-accordion.js +0 -222
  269. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +0 -87
  270. package/dist/collection/components/eds-alert/eds-alert.css +0 -739
  271. package/dist/collection/components/eds-alert/eds-alert.js +0 -230
  272. package/dist/collection/components/eds-alert/eds-alert.stories.js +0 -60
  273. package/dist/collection/components/eds-avatar/eds-avatar.css +0 -187
  274. package/dist/collection/components/eds-avatar/eds-avatar.js +0 -183
  275. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +0 -40
  276. package/dist/collection/components/eds-block-break/eds-block-break.css +0 -49
  277. package/dist/collection/components/eds-block-break/eds-block-break.js +0 -51
  278. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +0 -112
  279. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +0 -40
  280. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +0 -206
  281. package/dist/collection/components/eds-button/eds-button.css +0 -8904
  282. package/dist/collection/components/eds-button/eds-button.js +0 -487
  283. package/dist/collection/components/eds-button/eds-button.stories.js +0 -47
  284. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +0 -41
  285. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +0 -113
  286. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +0 -9
  287. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +0 -63
  288. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +0 -92
  289. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +0 -169
  290. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +0 -86
  291. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +0 -134
  292. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +0 -338
  293. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +0 -133
  294. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +0 -228
  295. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +0 -103
  296. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +0 -314
  297. package/dist/collection/components/eds-code-block/eds-code-block.css +0 -204
  298. package/dist/collection/components/eds-code-block/eds-code-block.js +0 -141
  299. package/dist/collection/components/eds-code-block/eds-code-block.stories.js +0 -78
  300. package/dist/collection/components/eds-dropdown/eds-dropdown.css +0 -117
  301. package/dist/collection/components/eds-dropdown/eds-dropdown.js +0 -369
  302. package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +0 -92
  303. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +0 -36
  304. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +0 -36
  305. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +0 -36
  306. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +0 -36
  307. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +0 -36
  308. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +0 -36
  309. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +0 -36
  310. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +0 -36
  311. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +0 -36
  312. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +0 -36
  313. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +0 -36
  314. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +0 -36
  315. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +0 -36
  316. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +0 -36
  317. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +0 -36
  318. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +0 -36
  319. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +0 -36
  320. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +0 -36
  321. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +0 -36
  322. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +0 -36
  323. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +0 -36
  324. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +0 -36
  325. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +0 -36
  326. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +0 -36
  327. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +0 -36
  328. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +0 -36
  329. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +0 -36
  330. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +0 -36
  331. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +0 -36
  332. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +0 -36
  333. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +0 -36
  334. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +0 -36
  335. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +0 -36
  336. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +0 -36
  337. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +0 -36
  338. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +0 -36
  339. package/dist/collection/components/eds-img/eds-img.css +0 -83
  340. package/dist/collection/components/eds-img/eds-img.js +0 -252
  341. package/dist/collection/components/eds-img/eds-img.stories.js +0 -101
  342. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +0 -317
  343. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +0 -105
  344. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +0 -90
  345. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +0 -252
  346. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +0 -263
  347. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +0 -343
  348. package/dist/collection/components/eds-input-field/eds-input-field.css +0 -7760
  349. package/dist/collection/components/eds-input-field/eds-input-field.js +0 -451
  350. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +0 -206
  351. package/dist/collection/components/eds-link/eds-link.css +0 -7101
  352. package/dist/collection/components/eds-link/eds-link.js +0 -492
  353. package/dist/collection/components/eds-link/eds-link.stories.js +0 -86
  354. package/dist/collection/components/eds-logo/eds-logo.css +0 -47
  355. package/dist/collection/components/eds-logo/eds-logo.js +0 -169
  356. package/dist/collection/components/eds-logo/eds-logo.stories.js +0 -38
  357. package/dist/collection/components/eds-modal/eds-modal.css +0 -258
  358. package/dist/collection/components/eds-modal/eds-modal.js +0 -276
  359. package/dist/collection/components/eds-modal/eds-modal.stories.js +0 -80
  360. package/dist/collection/components/eds-pagination/eds-pagination.css +0 -148
  361. package/dist/collection/components/eds-pagination/eds-pagination.js +0 -418
  362. package/dist/collection/components/eds-pagination/eds-pagination.stories.js +0 -135
  363. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +0 -62
  364. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +0 -79
  365. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +0 -25
  366. package/dist/collection/components/eds-rating/eds-rating.css +0 -79
  367. package/dist/collection/components/eds-rating/eds-rating.js +0 -126
  368. package/dist/collection/components/eds-rating/eds-rating.stories.js +0 -43
  369. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
  370. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +0 -91
  371. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +0 -75
  372. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +0 -137
  373. package/dist/collection/components/eds-spinner/eds-spinner.css +0 -17
  374. package/dist/collection/components/eds-spinner/eds-spinner.js +0 -166
  375. package/dist/collection/components/eds-spinner/eds-spinner.stories.js +0 -52
  376. package/dist/collection/components/eds-steps/eds-steps.css +0 -126
  377. package/dist/collection/components/eds-steps/eds-steps.js +0 -170
  378. package/dist/collection/components/eds-steps/eds-steps.stories.js +0 -35
  379. package/dist/collection/components/eds-switch/eds-switch.css +0 -58
  380. package/dist/collection/components/eds-switch/eds-switch.js +0 -131
  381. package/dist/collection/components/eds-switch/eds-switch.stories.js +0 -38
  382. package/dist/collection/components/eds-table/eds-table.css +0 -142
  383. package/dist/collection/components/eds-table/eds-table.js +0 -370
  384. package/dist/collection/components/eds-table/eds-table.stories.js +0 -99
  385. package/dist/collection/components/eds-tag/eds-tag.css +0 -56
  386. package/dist/collection/components/eds-tag/eds-tag.js +0 -84
  387. package/dist/collection/components/eds-tag/eds-tag.stories.js +0 -27
  388. package/dist/collection/components/eds-timeline/eds-timeline.css +0 -7776
  389. package/dist/collection/components/eds-timeline/eds-timeline.js +0 -93
  390. package/dist/collection/components/eds-timeline/eds-timeline.stories.js +0 -35
  391. package/dist/collection/components/eds-toast/eds-toast.css +0 -91
  392. package/dist/collection/components/eds-toast/eds-toast.js +0 -138
  393. package/dist/collection/components/eds-toast/eds-toast.stories.js +0 -38
  394. package/dist/collection/components/eds-tooltip/eds-tooltip.css +0 -94
  395. package/dist/collection/components/eds-tooltip/eds-tooltip.js +0 -179
  396. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +0 -21
  397. package/dist/collection/components/eds-trl/eds-trl.js +0 -68
  398. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +0 -66
  399. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +0 -44
  400. package/dist/collection/eds-docs-ui/components-section/components-section.js +0 -55
  401. package/dist/collection/eds-docs-ui/components-section/functional/angular.js +0 -2
  402. package/dist/collection/eds-docs-ui/components-section/functional/installation.js +0 -2
  403. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +0 -19
  404. package/dist/collection/eds-docs-ui/components-section/functional/react.js +0 -2
  405. package/dist/collection/eds-docs-ui/components-section/functional/usage.js +0 -2
  406. package/dist/collection/eds-docs-ui/components-section/functional/vue.js +0 -2
  407. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +0 -52
  408. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +0 -98
  409. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +0 -44
  410. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +0 -15
  411. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +0 -27
  412. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +0 -44
  413. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +0 -154
  414. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +0 -22
  415. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +0 -161
  416. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +0 -21
  417. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +0 -169
  418. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +0 -64
  419. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +0 -44
  420. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +0 -240
  421. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +0 -22
  422. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +0 -5
  423. package/dist/collection/index.js +0 -1
  424. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +0 -249
  425. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +0 -95
  426. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +0 -71
  427. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
  428. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +0 -86
  429. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +0 -31
  430. package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +0 -163
  431. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +0 -191
  432. package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +0 -121
  433. package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -226
  434. package/dist/collection/shared-ui/eds-footer/eds-footer.js +0 -189
  435. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +0 -44
  436. package/dist/collection/shared-ui/eds-form/eds-form.css +0 -3
  437. package/dist/collection/shared-ui/eds-form/eds-form.js +0 -441
  438. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +0 -73
  439. package/dist/collection/shared-ui/eds-frame/eds-frame.css +0 -116
  440. package/dist/collection/shared-ui/eds-frame/eds-frame.js +0 -234
  441. package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +0 -52
  442. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -120
  443. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +0 -192
  444. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +0 -77
  445. package/dist/collection/shared-ui/eds-header/eds-header.css +0 -138
  446. package/dist/collection/shared-ui/eds-header/eds-header.js +0 -202
  447. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +0 -40
  448. package/dist/collection/shared-ui/eds-login/eds-login.js +0 -190
  449. package/dist/collection/shared-ui/eds-login/eds-login.stories.js +0 -37
  450. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +0 -109
  451. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -230
  452. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +0 -36
  453. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -124
  454. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +0 -92
  455. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +0 -21
  456. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +0 -29
  457. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +0 -136
  458. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +0 -23
  459. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +0 -361
  460. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +0 -219
  461. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -7776
  462. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +0 -221
  463. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +0 -54
  464. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +0 -51
  465. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +0 -54
  466. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +0 -25
  467. package/dist/collection/shared-ui/eds-user/eds-user.css +0 -7776
  468. package/dist/collection/shared-ui/eds-user/eds-user.js +0 -77
  469. package/dist/collection/shared-ui/eds-user/eds-user.stories.js +0 -45
  470. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +0 -39
  471. package/dist/collection/utils/api.js +0 -27
  472. package/dist/collection/utils/color.js +0 -129
  473. package/dist/collection/utils/eds-form/formUtils.js +0 -65
  474. package/dist/collection/utils/eds-form/formValidators.js +0 -64
  475. package/dist/collection/utils/eds-form/individualValidator.js +0 -46
  476. package/dist/collection/utils/eds-form/validateInput.js +0 -23
  477. package/dist/collection/utils/global.js +0 -8
  478. package/dist/collection/utils/keycloak.js +0 -85
  479. package/dist/collection/utils/sharedUtils.js +0 -17
  480. package/dist/collection/utils/toastManager.js +0 -29
  481. package/dist/components/analytics.js +0 -56
  482. package/dist/components/arrow-diagonal-black.js +0 -3
  483. package/dist/components/arrow-right.js +0 -5
  484. package/dist/components/bluesky.js +0 -14
  485. package/dist/components/bookmark.js +0 -16
  486. package/dist/components/chevron-down.js +0 -12
  487. package/dist/components/chevron-left.js +0 -11
  488. package/dist/components/chevron-right.js +0 -5
  489. package/dist/components/chevron-up.js +0 -12
  490. package/dist/components/close.js +0 -5
  491. package/dist/components/color-primary-palette.d.ts +0 -11
  492. package/dist/components/color-primary-palette.js +0 -6
  493. package/dist/components/color-secondary-palette.d.ts +0 -11
  494. package/dist/components/color-secondary-palette.js +0 -6
  495. package/dist/components/color-support-palette.d.ts +0 -11
  496. package/dist/components/color-support-palette.js +0 -6
  497. package/dist/components/components-section.d.ts +0 -11
  498. package/dist/components/components-section.js +0 -202
  499. package/dist/components/components.css +0 -7776
  500. package/dist/components/copy.js +0 -5
  501. package/dist/components/correct-use-of-colors.d.ts +0 -11
  502. package/dist/components/correct-use-of-colors.js +0 -93
  503. package/dist/components/docs-palettes.d.ts +0 -11
  504. package/dist/components/docs-palettes.js +0 -96
  505. package/dist/components/docs-tokens.d.ts +0 -11
  506. package/dist/components/docs-tokens.js +0 -80
  507. package/dist/components/eds-accordion.d.ts +0 -11
  508. package/dist/components/eds-accordion.js +0 -6
  509. package/dist/components/eds-accordion2.js +0 -119
  510. package/dist/components/eds-alert.d.ts +0 -11
  511. package/dist/components/eds-alert.js +0 -6
  512. package/dist/components/eds-alert2.js +0 -135
  513. package/dist/components/eds-app-root.d.ts +0 -11
  514. package/dist/components/eds-app-root.js +0 -89
  515. package/dist/components/eds-avatar.d.ts +0 -11
  516. package/dist/components/eds-avatar.js +0 -6
  517. package/dist/components/eds-block-break.d.ts +0 -11
  518. package/dist/components/eds-block-break.js +0 -6
  519. package/dist/components/eds-block-break2.js +0 -34
  520. package/dist/components/eds-breadcrumb.d.ts +0 -11
  521. package/dist/components/eds-breadcrumb.js +0 -173
  522. package/dist/components/eds-button.d.ts +0 -11
  523. package/dist/components/eds-button.js +0 -6
  524. package/dist/components/eds-card-desc.d.ts +0 -11
  525. package/dist/components/eds-card-desc.js +0 -6
  526. package/dist/components/eds-card-generic.d.ts +0 -11
  527. package/dist/components/eds-card-generic.js +0 -6
  528. package/dist/components/eds-card-generic2.js +0 -147
  529. package/dist/components/eds-card-project.d.ts +0 -11
  530. package/dist/components/eds-card-project.js +0 -109
  531. package/dist/components/eds-card-section.d.ts +0 -11
  532. package/dist/components/eds-card-section.js +0 -92
  533. package/dist/components/eds-card-tags.d.ts +0 -11
  534. package/dist/components/eds-card-tags.js +0 -45
  535. package/dist/components/eds-card-title.d.ts +0 -11
  536. package/dist/components/eds-card-title.js +0 -6
  537. package/dist/components/eds-card-tool.d.ts +0 -11
  538. package/dist/components/eds-card-tool.js +0 -137
  539. package/dist/components/eds-card-wrapper.d.ts +0 -11
  540. package/dist/components/eds-card-wrapper.js +0 -49
  541. package/dist/components/eds-code-block.d.ts +0 -11
  542. package/dist/components/eds-code-block.js +0 -6
  543. package/dist/components/eds-code-block2.js +0 -2510
  544. package/dist/components/eds-cookies-preference.d.ts +0 -11
  545. package/dist/components/eds-cookies-preference.js +0 -87
  546. package/dist/components/eds-dropdown.d.ts +0 -11
  547. package/dist/components/eds-dropdown.js +0 -6
  548. package/dist/components/eds-feedback.d.ts +0 -11
  549. package/dist/components/eds-feedback.js +0 -105
  550. package/dist/components/eds-footer.d.ts +0 -11
  551. package/dist/components/eds-footer.js +0 -6
  552. package/dist/components/eds-form.d.ts +0 -11
  553. package/dist/components/eds-frame.d.ts +0 -11
  554. package/dist/components/eds-frame.js +0 -120
  555. package/dist/components/eds-fullscreen-menu.d.ts +0 -11
  556. package/dist/components/eds-header.d.ts +0 -11
  557. package/dist/components/eds-icon-arrow-diagonal.d.ts +0 -11
  558. package/dist/components/eds-icon-arrow-diagonal.js +0 -33
  559. package/dist/components/eds-icon-arrow-right.d.ts +0 -11
  560. package/dist/components/eds-icon-arrow-right.js +0 -33
  561. package/dist/components/eds-icon-bluesky.d.ts +0 -11
  562. package/dist/components/eds-icon-bluesky.js +0 -33
  563. package/dist/components/eds-icon-bookmark.d.ts +0 -11
  564. package/dist/components/eds-icon-bookmark.js +0 -33
  565. package/dist/components/eds-icon-chevron-down.d.ts +0 -11
  566. package/dist/components/eds-icon-chevron-down.js +0 -33
  567. package/dist/components/eds-icon-chevron-left.d.ts +0 -11
  568. package/dist/components/eds-icon-chevron-left.js +0 -33
  569. package/dist/components/eds-icon-chevron-right.d.ts +0 -11
  570. package/dist/components/eds-icon-chevron-right.js +0 -33
  571. package/dist/components/eds-icon-chevron-up.d.ts +0 -11
  572. package/dist/components/eds-icon-chevron-up.js +0 -33
  573. package/dist/components/eds-icon-close.d.ts +0 -11
  574. package/dist/components/eds-icon-close.js +0 -33
  575. package/dist/components/eds-icon-copy.d.ts +0 -11
  576. package/dist/components/eds-icon-copy.js +0 -33
  577. package/dist/components/eds-icon-eu.d.ts +0 -11
  578. package/dist/components/eds-icon-eu.js +0 -33
  579. package/dist/components/eds-icon-external.d.ts +0 -11
  580. package/dist/components/eds-icon-external.js +0 -33
  581. package/dist/components/eds-icon-facebook.d.ts +0 -11
  582. package/dist/components/eds-icon-facebook.js +0 -33
  583. package/dist/components/eds-icon-gitlab.d.ts +0 -11
  584. package/dist/components/eds-icon-gitlab.js +0 -33
  585. package/dist/components/eds-icon-linkedin.d.ts +0 -11
  586. package/dist/components/eds-icon-linkedin.js +0 -33
  587. package/dist/components/eds-icon-loader.d.ts +0 -11
  588. package/dist/components/eds-icon-loader.js +0 -33
  589. package/dist/components/eds-icon-mastodon.d.ts +0 -11
  590. package/dist/components/eds-icon-mastodon.js +0 -33
  591. package/dist/components/eds-icon-menu.d.ts +0 -11
  592. package/dist/components/eds-icon-menu.js +0 -33
  593. package/dist/components/eds-icon-minus.d.ts +0 -11
  594. package/dist/components/eds-icon-minus.js +0 -33
  595. package/dist/components/eds-icon-more.d.ts +0 -11
  596. package/dist/components/eds-icon-more.js +0 -33
  597. package/dist/components/eds-icon-paper.d.ts +0 -11
  598. package/dist/components/eds-icon-paper.js +0 -33
  599. package/dist/components/eds-icon-plus.d.ts +0 -11
  600. package/dist/components/eds-icon-plus.js +0 -33
  601. package/dist/components/eds-icon-portal.d.ts +0 -11
  602. package/dist/components/eds-icon-portal.js +0 -33
  603. package/dist/components/eds-icon-private.d.ts +0 -11
  604. package/dist/components/eds-icon-private.js +0 -33
  605. package/dist/components/eds-icon-public.d.ts +0 -11
  606. package/dist/components/eds-icon-public.js +0 -33
  607. package/dist/components/eds-icon-search.d.ts +0 -11
  608. package/dist/components/eds-icon-search.js +0 -33
  609. package/dist/components/eds-icon-star.d.ts +0 -11
  610. package/dist/components/eds-icon-star.js +0 -33
  611. package/dist/components/eds-icon-success.d.ts +0 -11
  612. package/dist/components/eds-icon-success.js +0 -33
  613. package/dist/components/eds-icon-thumbs-down.d.ts +0 -11
  614. package/dist/components/eds-icon-thumbs-down.js +0 -33
  615. package/dist/components/eds-icon-thumbs-up.d.ts +0 -11
  616. package/dist/components/eds-icon-thumbs-up.js +0 -33
  617. package/dist/components/eds-icon-tutorial.d.ts +0 -11
  618. package/dist/components/eds-icon-tutorial.js +0 -33
  619. package/dist/components/eds-icon-twitter.d.ts +0 -11
  620. package/dist/components/eds-icon-twitter.js +0 -33
  621. package/dist/components/eds-icon-unknown.d.ts +0 -11
  622. package/dist/components/eds-icon-unknown.js +0 -33
  623. package/dist/components/eds-icon-updown.d.ts +0 -11
  624. package/dist/components/eds-icon-updown.js +0 -33
  625. package/dist/components/eds-icon-user.d.ts +0 -11
  626. package/dist/components/eds-icon-user.js +0 -33
  627. package/dist/components/eds-icon-wrapper.d.ts +0 -11
  628. package/dist/components/eds-icon-wrapper.js +0 -6
  629. package/dist/components/eds-icon-youtube.d.ts +0 -11
  630. package/dist/components/eds-icon-youtube.js +0 -33
  631. package/dist/components/eds-img.d.ts +0 -11
  632. package/dist/components/eds-img.js +0 -6
  633. package/dist/components/eds-input-field.d.ts +0 -11
  634. package/dist/components/eds-input-field.js +0 -6
  635. package/dist/components/eds-input-footer.d.ts +0 -11
  636. package/dist/components/eds-input-footer.js +0 -6
  637. package/dist/components/eds-input-footer2.js +0 -43
  638. package/dist/components/eds-input-label.d.ts +0 -11
  639. package/dist/components/eds-input-label.js +0 -6
  640. package/dist/components/eds-input-label2.js +0 -35
  641. package/dist/components/eds-input-range.d.ts +0 -11
  642. package/dist/components/eds-input-range.js +0 -6
  643. package/dist/components/eds-input-search.d.ts +0 -11
  644. package/dist/components/eds-input-search.js +0 -6
  645. package/dist/components/eds-input-select.d.ts +0 -11
  646. package/dist/components/eds-input-select.js +0 -6
  647. package/dist/components/eds-input.d.ts +0 -11
  648. package/dist/components/eds-input.js +0 -6
  649. package/dist/components/eds-link.d.ts +0 -11
  650. package/dist/components/eds-link.js +0 -6
  651. package/dist/components/eds-login.d.ts +0 -11
  652. package/dist/components/eds-login.js +0 -6
  653. package/dist/components/eds-logo.d.ts +0 -11
  654. package/dist/components/eds-logo.js +0 -6
  655. package/dist/components/eds-matomo-notice.d.ts +0 -11
  656. package/dist/components/eds-matomo-notice.js +0 -6
  657. package/dist/components/eds-matomo-notice2.js +0 -158
  658. package/dist/components/eds-modal.d.ts +0 -11
  659. package/dist/components/eds-modal.js +0 -144
  660. package/dist/components/eds-pagination.d.ts +0 -11
  661. package/dist/components/eds-pagination.js +0 -6
  662. package/dist/components/eds-progress-bar.d.ts +0 -11
  663. package/dist/components/eds-progress-bar.js +0 -6
  664. package/dist/components/eds-progress-bar2.js +0 -43
  665. package/dist/components/eds-rating.d.ts +0 -11
  666. package/dist/components/eds-rating.js +0 -6
  667. package/dist/components/eds-rating2.js +0 -91
  668. package/dist/components/eds-section-core.d.ts +0 -11
  669. package/dist/components/eds-section-core.js +0 -6
  670. package/dist/components/eds-section-core2.js +0 -44
  671. package/dist/components/eds-section-heading.d.ts +0 -11
  672. package/dist/components/eds-section-heading.js +0 -6
  673. package/dist/components/eds-section-heading2.js +0 -57
  674. package/dist/components/eds-social-networks.d.ts +0 -11
  675. package/dist/components/eds-social-networks.js +0 -6
  676. package/dist/components/eds-spinner.d.ts +0 -11
  677. package/dist/components/eds-spinner.js +0 -6
  678. package/dist/components/eds-spinner2.js +0 -72
  679. package/dist/components/eds-splash-screen.d.ts +0 -11
  680. package/dist/components/eds-splash-screen.js +0 -6
  681. package/dist/components/eds-steps-v2.d.ts +0 -11
  682. package/dist/components/eds-steps.d.ts +0 -11
  683. package/dist/components/eds-steps.js +0 -6
  684. package/dist/components/eds-switch.d.ts +0 -11
  685. package/dist/components/eds-switch.js +0 -57
  686. package/dist/components/eds-table.d.ts +0 -11
  687. package/dist/components/eds-table.js +0 -6
  688. package/dist/components/eds-tabs.d.ts +0 -11
  689. package/dist/components/eds-tabs.js +0 -152
  690. package/dist/components/eds-tag.d.ts +0 -11
  691. package/dist/components/eds-tag.js +0 -6
  692. package/dist/components/eds-tag2.js +0 -55
  693. package/dist/components/eds-timeline.d.ts +0 -11
  694. package/dist/components/eds-timeline.js +0 -119
  695. package/dist/components/eds-toast-manager.d.ts +0 -11
  696. package/dist/components/eds-toast-manager.js +0 -80
  697. package/dist/components/eds-toast.d.ts +0 -11
  698. package/dist/components/eds-toast.js +0 -6
  699. package/dist/components/eds-toast2.js +0 -104
  700. package/dist/components/eds-tooltip.d.ts +0 -11
  701. package/dist/components/eds-tooltip.js +0 -129
  702. package/dist/components/eds-trl.d.ts +0 -11
  703. package/dist/components/eds-trl.js +0 -138
  704. package/dist/components/eds-user.d.ts +0 -11
  705. package/dist/components/eu.js +0 -30
  706. package/dist/components/facebook.js +0 -14
  707. package/dist/components/gradient-primary-palette.d.ts +0 -11
  708. package/dist/components/gradient-primary-palette.js +0 -6
  709. package/dist/components/gradient-secondary-palette.d.ts +0 -11
  710. package/dist/components/gradient-secondary-palette.js +0 -6
  711. package/dist/components/gradient-support-palette.d.ts +0 -11
  712. package/dist/components/gradient-support-palette.js +0 -6
  713. package/dist/components/incorrect-use-of-colors.d.ts +0 -11
  714. package/dist/components/incorrect-use-of-colors.js +0 -81
  715. package/dist/components/index.d.ts +0 -33
  716. package/dist/components/index.js +0 -1
  717. package/dist/components/linkedin.js +0 -28
  718. package/dist/components/loader.js +0 -30
  719. package/dist/components/logo-color-margins.js +0 -118
  720. package/dist/components/logo-color.js +0 -115
  721. package/dist/components/logo-space.d.ts +0 -11
  722. package/dist/components/logo-space.js +0 -101
  723. package/dist/components/logo-variations-horizontal.d.ts +0 -11
  724. package/dist/components/logo-variations-horizontal.js +0 -6
  725. package/dist/components/logo-variations-tabs.d.ts +0 -11
  726. package/dist/components/logo-variations-tabs.js +0 -60
  727. package/dist/components/logo-variations-vertical.d.ts +0 -11
  728. package/dist/components/logo-variations-vertical.js +0 -6
  729. package/dist/components/logo-white-no-bg.js +0 -1029
  730. package/dist/components/logo-wrong-usage.d.ts +0 -11
  731. package/dist/components/logo-wrong-usage.js +0 -35
  732. package/dist/components/mastodon.js +0 -14
  733. package/dist/components/menu.js +0 -11
  734. package/dist/components/minus.js +0 -11
  735. package/dist/components/mono.js +0 -11
  736. package/dist/components/more.js +0 -13
  737. package/dist/components/p-024c7937.js +0 -1
  738. package/dist/components/p-032f9f64.entry.js +0 -1
  739. package/dist/components/p-05754401.js +0 -1
  740. package/dist/components/p-058cf100.entry.js +0 -1
  741. package/dist/components/p-063b0683.entry.js +0 -1
  742. package/dist/components/p-0be28996.js +0 -1
  743. package/dist/components/p-0ce924b1.entry.js +0 -1
  744. package/dist/components/p-0e6d43c5.js +0 -1
  745. package/dist/components/p-112122d6.js +0 -1
  746. package/dist/components/p-13efafb9.js +0 -1
  747. package/dist/components/p-18eb23ff.entry.js +0 -1
  748. package/dist/components/p-1aab55cf.entry.js +0 -1
  749. package/dist/components/p-1b2913c8.js +0 -1
  750. package/dist/components/p-1b4e9576.entry.js +0 -1
  751. package/dist/components/p-1ded61bd.js +0 -1
  752. package/dist/components/p-2066b033.js +0 -1
  753. package/dist/components/p-20b3a999.entry.js +0 -1
  754. package/dist/components/p-20e9ae7f.entry.js +0 -1
  755. package/dist/components/p-2117611b.js +0 -1
  756. package/dist/components/p-21a746a4.entry.js +0 -9
  757. package/dist/components/p-22f9e720.js +0 -1
  758. package/dist/components/p-2692f93d.js +0 -1
  759. package/dist/components/p-29041952.js +0 -1
  760. package/dist/components/p-29e807f5.entry.js +0 -1
  761. package/dist/components/p-2c1be2bb.entry.js +0 -1
  762. package/dist/components/p-30a319d5.entry.js +0 -1
  763. package/dist/components/p-32e6c4df.js +0 -1
  764. package/dist/components/p-35ed7ebf.entry.js +0 -1
  765. package/dist/components/p-373119b3.js +0 -1
  766. package/dist/components/p-376b706b.entry.js +0 -1
  767. package/dist/components/p-3932d0af.entry.js +0 -1
  768. package/dist/components/p-3a7be9a7.entry.js +0 -1
  769. package/dist/components/p-3af94671.entry.js +0 -1
  770. package/dist/components/p-3f480c3c.entry.js +0 -1
  771. package/dist/components/p-41e89554.entry.js +0 -1
  772. package/dist/components/p-424ba743.entry.js +0 -1
  773. package/dist/components/p-435a8942.entry.js +0 -1
  774. package/dist/components/p-4587d0ef.js +0 -1
  775. package/dist/components/p-4687b64c.js +0 -1
  776. package/dist/components/p-46d0716d.js +0 -1
  777. package/dist/components/p-4c7852f8.entry.js +0 -1
  778. package/dist/components/p-4e8a317b.entry.js +0 -1
  779. package/dist/components/p-50e27321.js +0 -1
  780. package/dist/components/p-526cdc57.entry.js +0 -1
  781. package/dist/components/p-52913e2e.entry.js +0 -1
  782. package/dist/components/p-54b8f143.js +0 -1
  783. package/dist/components/p-59d963d1.entry.js +0 -1
  784. package/dist/components/p-5ab1d64a.js +0 -1
  785. package/dist/components/p-5d046674.js +0 -1
  786. package/dist/components/p-622dd2a1.entry.js +0 -1
  787. package/dist/components/p-6404e157.entry.js +0 -1
  788. package/dist/components/p-66bb44c9.entry.js +0 -1
  789. package/dist/components/p-694fc085.js +0 -1
  790. package/dist/components/p-69c5074b.js +0 -1
  791. package/dist/components/p-6dc26e53.entry.js +0 -1
  792. package/dist/components/p-7198c024.js +0 -1
  793. package/dist/components/p-78fa7132.entry.js +0 -1
  794. package/dist/components/p-7dce734a.entry.js +0 -1
  795. package/dist/components/p-7fa88255.entry.js +0 -1
  796. package/dist/components/p-81899237.js +0 -1
  797. package/dist/components/p-83936521.entry.js +0 -1
  798. package/dist/components/p-83ff4a95.js +0 -1
  799. package/dist/components/p-8527ef5f.entry.js +0 -1
  800. package/dist/components/p-85ad681a.entry.js +0 -1
  801. package/dist/components/p-8653bc36.entry.js +0 -1
  802. package/dist/components/p-86bb73dc.js +0 -1
  803. package/dist/components/p-8983de37.js +0 -1
  804. package/dist/components/p-8baa7e01.entry.js +0 -1
  805. package/dist/components/p-8e3c6c63.entry.js +0 -1
  806. package/dist/components/p-91440d2f.entry.js +0 -1
  807. package/dist/components/p-923f67b5.entry.js +0 -1
  808. package/dist/components/p-93093977.entry.js +0 -1
  809. package/dist/components/p-941240b5.entry.js +0 -1
  810. package/dist/components/p-97e95520.entry.js +0 -1
  811. package/dist/components/p-9873ebec.entry.js +0 -1
  812. package/dist/components/p-9a1a6df1.entry.js +0 -1
  813. package/dist/components/p-9c5a453b.js +0 -1
  814. package/dist/components/p-9cbcccf8.entry.js +0 -1
  815. package/dist/components/p-9dc879c9.entry.js +0 -1
  816. package/dist/components/p-a1d55013.entry.js +0 -1
  817. package/dist/components/p-a56f0579.entry.js +0 -1
  818. package/dist/components/p-a8b0fe92.entry.js +0 -1
  819. package/dist/components/p-acc4d234.entry.js +0 -1
  820. package/dist/components/p-aefcb641.js +0 -1
  821. package/dist/components/p-b0b37831.entry.js +0 -1
  822. package/dist/components/p-b299b89a.entry.js +0 -1
  823. package/dist/components/p-b2b46793.entry.js +0 -1
  824. package/dist/components/p-b47d115d.entry.js +0 -1
  825. package/dist/components/p-b55b0091.entry.js +0 -1
  826. package/dist/components/p-b73410de.js +0 -1
  827. package/dist/components/p-b76aa402.entry.js +0 -1
  828. package/dist/components/p-b822abb7.js +0 -1
  829. package/dist/components/p-b8ba7e5c.entry.js +0 -1
  830. package/dist/components/p-b96fc468.entry.js +0 -1
  831. package/dist/components/p-ba720bf3.js +0 -1
  832. package/dist/components/p-bab07ba6.entry.js +0 -1
  833. package/dist/components/p-bcbc7b7f.entry.js +0 -1
  834. package/dist/components/p-c1e4ef92.js +0 -1
  835. package/dist/components/p-c776b6f8.js +0 -1
  836. package/dist/components/p-c86243a3.entry.js +0 -1
  837. package/dist/components/p-c8abff96.entry.js +0 -1
  838. package/dist/components/p-c8e7c854.js +0 -1
  839. package/dist/components/p-c935aa46.entry.js +0 -1
  840. package/dist/components/p-cccacbd3.js +0 -2
  841. package/dist/components/p-cccff1e3.entry.js +0 -1
  842. package/dist/components/p-cd624044.entry.js +0 -1
  843. package/dist/components/p-cdc36ea8.entry.js +0 -1
  844. package/dist/components/p-cdf19579.js +0 -1
  845. package/dist/components/p-d525ed36.entry.js +0 -1
  846. package/dist/components/p-d94a44b9.entry.js +0 -1
  847. package/dist/components/p-d962849c.js +0 -1
  848. package/dist/components/p-dbcf1f0e.entry.js +0 -1
  849. package/dist/components/p-dcc08064.entry.js +0 -1
  850. package/dist/components/p-dcd4de1f.entry.js +0 -1
  851. package/dist/components/p-e1255160.js +0 -1
  852. package/dist/components/p-e2d5a487.js +0 -1
  853. package/dist/components/p-e64cd6f7.entry.js +0 -1
  854. package/dist/components/p-ea089f4e.entry.js +0 -1
  855. package/dist/components/p-eb0b93d5.js +0 -1
  856. package/dist/components/p-ecbb679f.js +0 -1
  857. package/dist/components/p-ece618b3.js +0 -1
  858. package/dist/components/p-eebf7ebf.entry.js +0 -1
  859. package/dist/components/p-efc73304.entry.js +0 -1
  860. package/dist/components/p-f13e9ab1.entry.js +0 -1
  861. package/dist/components/p-f48a4313.entry.js +0 -1
  862. package/dist/components/p-ff7acb55.entry.js +0 -1
  863. package/dist/components/paper.js +0 -15
  864. package/dist/components/plus.js +0 -12
  865. package/dist/components/portal.js +0 -18
  866. package/dist/components/primary.js +0 -65
  867. package/dist/components/primary2.js +0 -67
  868. package/dist/components/private.js +0 -25
  869. package/dist/components/public.js +0 -16
  870. package/dist/components/search.js +0 -12
  871. package/dist/components/secondary.js +0 -92
  872. package/dist/components/secondary2.js +0 -107
  873. package/dist/components/star.js +0 -5
  874. package/dist/components/success.js +0 -18
  875. package/dist/components/support.js +0 -94
  876. package/dist/components/support2.js +0 -85
  877. package/dist/components/svg-repository.d.ts +0 -11
  878. package/dist/components/svg-repository.js +0 -417
  879. package/dist/components/thumbs-down.js +0 -5
  880. package/dist/components/thumbs-up.js +0 -6
  881. package/dist/components/token-list.d.ts +0 -11
  882. package/dist/components/token-list.js +0 -6
  883. package/dist/components/token-radii.d.ts +0 -11
  884. package/dist/components/token-radii.js +0 -6
  885. package/dist/components/token-radii2.js +0 -47
  886. package/dist/components/token-ratios.d.ts +0 -11
  887. package/dist/components/token-ratios.js +0 -54
  888. package/dist/components/token-shadows.d.ts +0 -11
  889. package/dist/components/token-shadows.js +0 -6
  890. package/dist/components/token-shadows2.js +0 -56
  891. package/dist/components/token-spacing.d.ts +0 -11
  892. package/dist/components/token-spacing.js +0 -29
  893. package/dist/components/token-typography.d.ts +0 -11
  894. package/dist/components/token-typography.js +0 -255
  895. package/dist/components/tutotial.js +0 -27
  896. package/dist/components/twitter.js +0 -14
  897. package/dist/components/unknown.js +0 -22
  898. package/dist/components/up-and-down.js +0 -12
  899. package/dist/components/user.js +0 -16
  900. package/dist/components/youtube.js +0 -14
  901. package/dist/esm/analytics-44b1416b.js +0 -56
  902. package/dist/esm/arrow-diagonal-black-8f0494c3.js +0 -3
  903. package/dist/esm/arrow-right-9322ba8a.js +0 -5
  904. package/dist/esm/bluesky-cc5edd2d.js +0 -14
  905. package/dist/esm/bookmark-c200037c.js +0 -16
  906. package/dist/esm/chevron-down-6144c823.js +0 -12
  907. package/dist/esm/chevron-left-ca6c66e1.js +0 -11
  908. package/dist/esm/chevron-right-b88ed2d4.js +0 -5
  909. package/dist/esm/chevron-up-c66bd477.js +0 -12
  910. package/dist/esm/close-87fc0d63.js +0 -5
  911. package/dist/esm/color-2554aad6.js +0 -132
  912. package/dist/esm/color-primary-palette_6.entry.js +0 -331
  913. package/dist/esm/components.js +0 -20
  914. package/dist/esm/copy-03b72cb6.js +0 -5
  915. package/dist/esm/eds-avatar_24.entry.js +0 -2073
  916. package/dist/esm/eds-card-desc_3.entry.js +0 -107
  917. package/dist/esm/eds-login_2.entry.js +0 -2095
  918. package/dist/esm/eds-pagination_2.entry.js +0 -398
  919. package/dist/esm/eu-9ddde93a.js +0 -30
  920. package/dist/esm/facebook-9cb5c17f.js +0 -14
  921. package/dist/esm/index-39c58238.js +0 -46
  922. package/dist/esm/index.js +0 -1
  923. package/dist/esm/linkedin-e8650abb.js +0 -28
  924. package/dist/esm/loader-c9628637.js +0 -30
  925. package/dist/esm/loader.js +0 -11
  926. package/dist/esm/logo-color-7f1fd803.js +0 -115
  927. package/dist/esm/logo-color-margins-ff8ce71b.js +0 -118
  928. package/dist/esm/logo-variations-horizontal_2.entry.js +0 -31
  929. package/dist/esm/logo-white-no-bg-f382f86f.js +0 -1029
  930. package/dist/esm/mastodon-3703ec61.js +0 -14
  931. package/dist/esm/menu-340ea948.js +0 -11
  932. package/dist/esm/minus-b30a7c71.js +0 -11
  933. package/dist/esm/mono-53f70232.js +0 -11
  934. package/dist/esm/more-4449d549.js +0 -13
  935. package/dist/esm/paper-8e74ea31.js +0 -15
  936. package/dist/esm/plus-89c07be2.js +0 -12
  937. package/dist/esm/portal-d6c8ce56.js +0 -18
  938. package/dist/esm/private-1c25ff8e.js +0 -25
  939. package/dist/esm/public-d4d8c585.js +0 -16
  940. package/dist/esm/search-fbcd79c2.js +0 -12
  941. package/dist/esm/sharedUtils-a550989c.js +0 -19
  942. package/dist/esm/star-0da9b5e9.js +0 -5
  943. package/dist/esm/success-443809da.js +0 -18
  944. package/dist/esm/svg-repository.entry.js +0 -333
  945. package/dist/esm/thumbs-down-a18fd049.js +0 -5
  946. package/dist/esm/thumbs-up-c19a71bc.js +0 -6
  947. package/dist/esm/toastManager-d9eee791.js +0 -31
  948. package/dist/esm/token-list_3.entry.js +0 -294
  949. package/dist/esm/tutotial-150ee1fd.js +0 -27
  950. package/dist/esm/twitter-ac21b505.js +0 -14
  951. package/dist/esm/unknown-ed01a24c.js +0 -22
  952. package/dist/esm/up-and-down-d747abee.js +0 -12
  953. package/dist/esm/user-71ebdc15.js +0 -16
  954. package/dist/esm/youtube-efbfbdc4.js +0 -14
  955. package/dist/hydrate/index.d.ts +0 -242
  956. package/dist/hydrate/index.js +0 -32710
  957. package/dist/hydrate/index.mjs +0 -32702
  958. package/dist/hydrate/package.json +0 -12
  959. package/dist/index.cjs.js +0 -1
  960. package/dist/index.js +0 -1
  961. package/dist/stencil.config.js +0 -60
  962. package/loader/cdn.js +0 -1
  963. package/loader/index.cjs.js +0 -1
  964. package/loader/index.d.ts +0 -24
  965. package/loader/index.es2017.js +0 -1
  966. package/loader/index.js +0 -2
  967. package/loader/package.json +0 -11
  968. /package/dist/{esm → components}/app-globals-0f993ce5.js +0 -0
  969. /package/dist/components/{index2.js → index-144c9ae8.js} +0 -0
  970. /package/dist/components/{sharedUtils.js → sharedUtils-6a231dd4.js} +0 -0
  971. /package/dist/components/{toastManager.js → toastManager-b716afd8.js} +0 -0
@@ -1,2095 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-8a71b9a7.js';
2
- import { t as toast } from './toastManager-d9eee791.js';
3
-
4
- /*
5
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
6
- * and other contributors as indicated by the @author tags.
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- */
20
- function Keycloak (config) {
21
- if (!(this instanceof Keycloak)) {
22
- throw new Error("The 'Keycloak' constructor must be invoked with 'new'.")
23
- }
24
-
25
- if (typeof config !== 'string' && !isObject(config)) {
26
- throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");
27
- }
28
-
29
- if (isObject(config)) {
30
- const requiredProperties = 'oidcProvider' in config
31
- ? ['clientId']
32
- : ['url', 'realm', 'clientId'];
33
-
34
- for (const property of requiredProperties) {
35
- if (!config[property]) {
36
- throw new Error(`The configuration object is missing the required '${property}' property.`);
37
- }
38
- }
39
- }
40
-
41
- var kc = this;
42
- var adapter;
43
- var refreshQueue = [];
44
- var callbackStorage;
45
-
46
- var loginIframe = {
47
- enable: true,
48
- callbackList: [],
49
- interval: 5
50
- };
51
-
52
- kc.didInitialize = false;
53
-
54
- var useNonce = true;
55
- var logInfo = createLogger(console.info);
56
- var logWarn = createLogger(console.warn);
57
-
58
- if (!globalThis.isSecureContext) {
59
- logWarn(
60
- "[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\n" +
61
- "Continuing to run your application insecurely will lead to unexpected behavior and breakage.\n\n" +
62
- "For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"
63
- );
64
- }
65
-
66
- kc.init = function (initOptions = {}) {
67
- if (kc.didInitialize) {
68
- throw new Error("A 'Keycloak' instance can only be initialized once.");
69
- }
70
-
71
- kc.didInitialize = true;
72
-
73
- kc.authenticated = false;
74
-
75
- callbackStorage = createCallbackStorage();
76
- var adapters = ['default', 'cordova', 'cordova-native'];
77
-
78
- if (adapters.indexOf(initOptions.adapter) > -1) {
79
- adapter = loadAdapter(initOptions.adapter);
80
- } else if (typeof initOptions.adapter === "object") {
81
- adapter = initOptions.adapter;
82
- } else {
83
- if (window.Cordova || window.cordova) {
84
- adapter = loadAdapter('cordova');
85
- } else {
86
- adapter = loadAdapter();
87
- }
88
- }
89
-
90
- if (typeof initOptions.useNonce !== 'undefined') {
91
- useNonce = initOptions.useNonce;
92
- }
93
-
94
- if (typeof initOptions.checkLoginIframe !== 'undefined') {
95
- loginIframe.enable = initOptions.checkLoginIframe;
96
- }
97
-
98
- if (initOptions.checkLoginIframeInterval) {
99
- loginIframe.interval = initOptions.checkLoginIframeInterval;
100
- }
101
-
102
- if (initOptions.onLoad === 'login-required') {
103
- kc.loginRequired = true;
104
- }
105
-
106
- if (initOptions.responseMode) {
107
- if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
108
- kc.responseMode = initOptions.responseMode;
109
- } else {
110
- throw 'Invalid value for responseMode';
111
- }
112
- }
113
-
114
- if (initOptions.flow) {
115
- switch (initOptions.flow) {
116
- case 'standard':
117
- kc.responseType = 'code';
118
- break;
119
- case 'implicit':
120
- kc.responseType = 'id_token token';
121
- break;
122
- case 'hybrid':
123
- kc.responseType = 'code id_token token';
124
- break;
125
- default:
126
- throw 'Invalid value for flow';
127
- }
128
- kc.flow = initOptions.flow;
129
- }
130
-
131
- if (initOptions.timeSkew != null) {
132
- kc.timeSkew = initOptions.timeSkew;
133
- }
134
-
135
- if(initOptions.redirectUri) {
136
- kc.redirectUri = initOptions.redirectUri;
137
- }
138
-
139
- if (initOptions.silentCheckSsoRedirectUri) {
140
- kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
141
- }
142
-
143
- if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
144
- kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
145
- } else {
146
- kc.silentCheckSsoFallback = true;
147
- }
148
-
149
- if (typeof initOptions.pkceMethod !== "undefined") {
150
- if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
151
- throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
152
- }
153
-
154
- kc.pkceMethod = initOptions.pkceMethod;
155
- } else {
156
- kc.pkceMethod = "S256";
157
- }
158
-
159
- if (typeof initOptions.enableLogging === 'boolean') {
160
- kc.enableLogging = initOptions.enableLogging;
161
- } else {
162
- kc.enableLogging = false;
163
- }
164
-
165
- if (initOptions.logoutMethod === 'POST') {
166
- kc.logoutMethod = 'POST';
167
- } else {
168
- kc.logoutMethod = 'GET';
169
- }
170
-
171
- if (typeof initOptions.scope === 'string') {
172
- kc.scope = initOptions.scope;
173
- }
174
-
175
- if (typeof initOptions.acrValues === 'string') {
176
- kc.acrValues = initOptions.acrValues;
177
- }
178
-
179
- if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
180
- kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
181
- } else {
182
- kc.messageReceiveTimeout = 10000;
183
- }
184
-
185
- if (!kc.responseMode) {
186
- kc.responseMode = 'fragment';
187
- }
188
- if (!kc.responseType) {
189
- kc.responseType = 'code';
190
- kc.flow = 'standard';
191
- }
192
-
193
- var promise = createPromise();
194
-
195
- var initPromise = createPromise();
196
- initPromise.promise.then(function() {
197
- kc.onReady && kc.onReady(kc.authenticated);
198
- promise.setSuccess(kc.authenticated);
199
- }).catch(function(error) {
200
- promise.setError(error);
201
- });
202
-
203
- var configPromise = loadConfig();
204
-
205
- function onLoad() {
206
- var doLogin = function(prompt) {
207
- if (!prompt) {
208
- options.prompt = 'none';
209
- }
210
-
211
- if (initOptions.locale) {
212
- options.locale = initOptions.locale;
213
- }
214
- kc.login(options).then(function () {
215
- initPromise.setSuccess();
216
- }).catch(function (error) {
217
- initPromise.setError(error);
218
- });
219
- };
220
-
221
- var checkSsoSilently = async function() {
222
- var ifrm = document.createElement("iframe");
223
- var src = await kc.createLoginUrl({prompt: 'none', redirectUri: kc.silentCheckSsoRedirectUri});
224
- ifrm.setAttribute("src", src);
225
- ifrm.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin");
226
- ifrm.setAttribute("title", "keycloak-silent-check-sso");
227
- ifrm.style.display = "none";
228
- document.body.appendChild(ifrm);
229
-
230
- var messageCallback = function(event) {
231
- if (event.origin !== window.location.origin || ifrm.contentWindow !== event.source) {
232
- return;
233
- }
234
-
235
- var oauth = parseCallback(event.data);
236
- processCallback(oauth, initPromise);
237
-
238
- document.body.removeChild(ifrm);
239
- window.removeEventListener("message", messageCallback);
240
- };
241
-
242
- window.addEventListener("message", messageCallback);
243
- };
244
-
245
- var options = {};
246
- switch (initOptions.onLoad) {
247
- case 'check-sso':
248
- if (loginIframe.enable) {
249
- setupCheckLoginIframe().then(function() {
250
- checkLoginIframe().then(function (unchanged) {
251
- if (!unchanged) {
252
- kc.silentCheckSsoRedirectUri ? checkSsoSilently() : doLogin(false);
253
- } else {
254
- initPromise.setSuccess();
255
- }
256
- }).catch(function (error) {
257
- initPromise.setError(error);
258
- });
259
- });
260
- } else {
261
- kc.silentCheckSsoRedirectUri ? checkSsoSilently() : doLogin(false);
262
- }
263
- break;
264
- case 'login-required':
265
- doLogin(true);
266
- break;
267
- default:
268
- throw 'Invalid value for onLoad';
269
- }
270
- }
271
-
272
- function processInit() {
273
- var callback = parseCallback(window.location.href);
274
-
275
- if (callback) {
276
- window.history.replaceState(window.history.state, null, callback.newUrl);
277
- }
278
-
279
- if (callback && callback.valid) {
280
- return setupCheckLoginIframe().then(function() {
281
- processCallback(callback, initPromise);
282
- }).catch(function (error) {
283
- initPromise.setError(error);
284
- });
285
- }
286
-
287
- if (initOptions.token && initOptions.refreshToken) {
288
- setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
289
-
290
- if (loginIframe.enable) {
291
- setupCheckLoginIframe().then(function() {
292
- checkLoginIframe().then(function (unchanged) {
293
- if (unchanged) {
294
- kc.onAuthSuccess && kc.onAuthSuccess();
295
- initPromise.setSuccess();
296
- scheduleCheckIframe();
297
- } else {
298
- initPromise.setSuccess();
299
- }
300
- }).catch(function (error) {
301
- initPromise.setError(error);
302
- });
303
- });
304
- } else {
305
- kc.updateToken(-1).then(function() {
306
- kc.onAuthSuccess && kc.onAuthSuccess();
307
- initPromise.setSuccess();
308
- }).catch(function(error) {
309
- kc.onAuthError && kc.onAuthError();
310
- if (initOptions.onLoad) {
311
- onLoad();
312
- } else {
313
- initPromise.setError(error);
314
- }
315
- });
316
- }
317
- } else if (initOptions.onLoad) {
318
- onLoad();
319
- } else {
320
- initPromise.setSuccess();
321
- }
322
- }
323
-
324
- configPromise.then(function () {
325
- check3pCookiesSupported()
326
- .then(processInit)
327
- .catch(function (error) {
328
- promise.setError(error);
329
- });
330
- });
331
- configPromise.catch(function (error) {
332
- promise.setError(error);
333
- });
334
-
335
- return promise.promise;
336
- };
337
-
338
- kc.login = function (options) {
339
- return adapter.login(options);
340
- };
341
-
342
- function generateRandomData(len) {
343
- if (typeof crypto === "undefined" || typeof crypto.getRandomValues === "undefined") {
344
- throw new Error("Web Crypto API is not available.");
345
- }
346
-
347
- return crypto.getRandomValues(new Uint8Array(len));
348
- }
349
-
350
- function generateCodeVerifier(len) {
351
- return generateRandomString(len, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
352
- }
353
-
354
- function generateRandomString(len, alphabet){
355
- var randomData = generateRandomData(len);
356
- var chars = new Array(len);
357
- for (var i = 0; i < len; i++) {
358
- chars[i] = alphabet.charCodeAt(randomData[i] % alphabet.length);
359
- }
360
- return String.fromCharCode.apply(null, chars);
361
- }
362
-
363
- async function generatePkceChallenge(pkceMethod, codeVerifier) {
364
- if (pkceMethod !== "S256") {
365
- throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${pkceMethod}'.`);
366
- }
367
-
368
- // hash codeVerifier, then encode as url-safe base64 without padding
369
- const hashBytes = new Uint8Array(await sha256Digest(codeVerifier));
370
- const encodedHash = bytesToBase64(hashBytes)
371
- .replace(/\+/g, '-')
372
- .replace(/\//g, '_')
373
- .replace(/\=/g, '');
374
-
375
- return encodedHash;
376
- }
377
-
378
- function buildClaimsParameter(requestedAcr){
379
- var claims = {
380
- id_token: {
381
- acr: requestedAcr
382
- }
383
- };
384
- return JSON.stringify(claims);
385
- }
386
-
387
- kc.createLoginUrl = async function(options) {
388
- var state = createUUID();
389
- var nonce = createUUID();
390
-
391
- var redirectUri = adapter.redirectUri(options);
392
-
393
- var callbackState = {
394
- state: state,
395
- nonce: nonce,
396
- redirectUri: encodeURIComponent(redirectUri),
397
- loginOptions: options
398
- };
399
-
400
- if (options && options.prompt) {
401
- callbackState.prompt = options.prompt;
402
- }
403
-
404
- var baseUrl;
405
- if (options && options.action == 'register') {
406
- baseUrl = kc.endpoints.register();
407
- } else {
408
- baseUrl = kc.endpoints.authorize();
409
- }
410
-
411
- var scope = options && options.scope || kc.scope;
412
- if (!scope) {
413
- // if scope is not set, default to "openid"
414
- scope = "openid";
415
- } else if (scope.indexOf("openid") === -1) {
416
- // if openid scope is missing, prefix the given scopes with it
417
- scope = "openid " + scope;
418
- }
419
-
420
- var url = baseUrl
421
- + '?client_id=' + encodeURIComponent(kc.clientId)
422
- + '&redirect_uri=' + encodeURIComponent(redirectUri)
423
- + '&state=' + encodeURIComponent(state)
424
- + '&response_mode=' + encodeURIComponent(kc.responseMode)
425
- + '&response_type=' + encodeURIComponent(kc.responseType)
426
- + '&scope=' + encodeURIComponent(scope);
427
- if (useNonce) {
428
- url = url + '&nonce=' + encodeURIComponent(nonce);
429
- }
430
-
431
- if (options && options.prompt) {
432
- url += '&prompt=' + encodeURIComponent(options.prompt);
433
- }
434
-
435
- if (options && typeof options.maxAge === 'number') {
436
- url += '&max_age=' + encodeURIComponent(options.maxAge);
437
- }
438
-
439
- if (options && options.loginHint) {
440
- url += '&login_hint=' + encodeURIComponent(options.loginHint);
441
- }
442
-
443
- if (options && options.idpHint) {
444
- url += '&kc_idp_hint=' + encodeURIComponent(options.idpHint);
445
- }
446
-
447
- if (options && options.action && options.action != 'register') {
448
- url += '&kc_action=' + encodeURIComponent(options.action);
449
- }
450
-
451
- if (options && options.locale) {
452
- url += '&ui_locales=' + encodeURIComponent(options.locale);
453
- }
454
-
455
- if (options && options.acr) {
456
- var claimsParameter = buildClaimsParameter(options.acr);
457
- url += '&claims=' + encodeURIComponent(claimsParameter);
458
- }
459
-
460
- if ((options && options.acrValues) || kc.acrValues) {
461
- url += '&acr_values=' + encodeURIComponent(options.acrValues || kc.acrValues);
462
- }
463
-
464
- if (kc.pkceMethod) {
465
- try {
466
- const codeVerifier = generateCodeVerifier(96);
467
- const pkceChallenge = await generatePkceChallenge(kc.pkceMethod, codeVerifier);
468
-
469
- callbackState.pkceCodeVerifier = codeVerifier;
470
-
471
- url += '&code_challenge=' + pkceChallenge;
472
- url += '&code_challenge_method=' + kc.pkceMethod;
473
- } catch (error) {
474
- throw new Error("Failed to generate PKCE challenge.", { cause: error });
475
- }
476
- }
477
-
478
- callbackStorage.add(callbackState);
479
-
480
- return url;
481
- };
482
-
483
- kc.logout = function(options) {
484
- return adapter.logout(options);
485
- };
486
-
487
- kc.createLogoutUrl = function(options) {
488
-
489
- const logoutMethod = options?.logoutMethod ?? kc.logoutMethod;
490
- if (logoutMethod === 'POST') {
491
- return kc.endpoints.logout();
492
- }
493
-
494
- var url = kc.endpoints.logout()
495
- + '?client_id=' + encodeURIComponent(kc.clientId)
496
- + '&post_logout_redirect_uri=' + encodeURIComponent(adapter.redirectUri(options, false));
497
-
498
- if (kc.idToken) {
499
- url += '&id_token_hint=' + encodeURIComponent(kc.idToken);
500
- }
501
-
502
- return url;
503
- };
504
-
505
- kc.register = function (options) {
506
- return adapter.register(options);
507
- };
508
-
509
- kc.createRegisterUrl = async function(options) {
510
- if (!options) {
511
- options = {};
512
- }
513
- options.action = 'register';
514
- return await kc.createLoginUrl(options);
515
- };
516
-
517
- kc.createAccountUrl = function(options) {
518
- var realm = getRealmUrl();
519
- var url = undefined;
520
- if (typeof realm !== 'undefined') {
521
- url = realm
522
- + '/account'
523
- + '?referrer=' + encodeURIComponent(kc.clientId)
524
- + '&referrer_uri=' + encodeURIComponent(adapter.redirectUri(options));
525
- }
526
- return url;
527
- };
528
-
529
- kc.accountManagement = function() {
530
- return adapter.accountManagement();
531
- };
532
-
533
- kc.hasRealmRole = function (role) {
534
- var access = kc.realmAccess;
535
- return !!access && access.roles.indexOf(role) >= 0;
536
- };
537
-
538
- kc.hasResourceRole = function(role, resource) {
539
- if (!kc.resourceAccess) {
540
- return false;
541
- }
542
-
543
- var access = kc.resourceAccess[resource || kc.clientId];
544
- return !!access && access.roles.indexOf(role) >= 0;
545
- };
546
-
547
- kc.loadUserProfile = function() {
548
- var url = getRealmUrl() + '/account';
549
- var req = new XMLHttpRequest();
550
- req.open('GET', url, true);
551
- req.setRequestHeader('Accept', 'application/json');
552
- req.setRequestHeader('Authorization', 'bearer ' + kc.token);
553
-
554
- var promise = createPromise();
555
-
556
- req.onreadystatechange = function () {
557
- if (req.readyState == 4) {
558
- if (req.status == 200) {
559
- kc.profile = JSON.parse(req.responseText);
560
- promise.setSuccess(kc.profile);
561
- } else {
562
- promise.setError();
563
- }
564
- }
565
- };
566
-
567
- req.send();
568
-
569
- return promise.promise;
570
- };
571
-
572
- kc.loadUserInfo = function() {
573
- var url = kc.endpoints.userinfo();
574
- var req = new XMLHttpRequest();
575
- req.open('GET', url, true);
576
- req.setRequestHeader('Accept', 'application/json');
577
- req.setRequestHeader('Authorization', 'bearer ' + kc.token);
578
-
579
- var promise = createPromise();
580
-
581
- req.onreadystatechange = function () {
582
- if (req.readyState == 4) {
583
- if (req.status == 200) {
584
- kc.userInfo = JSON.parse(req.responseText);
585
- promise.setSuccess(kc.userInfo);
586
- } else {
587
- promise.setError();
588
- }
589
- }
590
- };
591
-
592
- req.send();
593
-
594
- return promise.promise;
595
- };
596
-
597
- kc.isTokenExpired = function(minValidity) {
598
- if (!kc.tokenParsed || (!kc.refreshToken && kc.flow != 'implicit' )) {
599
- throw 'Not authenticated';
600
- }
601
-
602
- if (kc.timeSkew == null) {
603
- logInfo('[KEYCLOAK] Unable to determine if token is expired as timeskew is not set');
604
- return true;
605
- }
606
-
607
- var expiresIn = kc.tokenParsed['exp'] - Math.ceil(new Date().getTime() / 1000) + kc.timeSkew;
608
- if (minValidity) {
609
- if (isNaN(minValidity)) {
610
- throw 'Invalid minValidity';
611
- }
612
- expiresIn -= minValidity;
613
- }
614
- return expiresIn < 0;
615
- };
616
-
617
- kc.updateToken = function(minValidity) {
618
- var promise = createPromise();
619
-
620
- if (!kc.refreshToken) {
621
- promise.setError();
622
- return promise.promise;
623
- }
624
-
625
- minValidity = minValidity || 5;
626
-
627
- var exec = function() {
628
- var refreshToken = false;
629
- if (minValidity == -1) {
630
- refreshToken = true;
631
- logInfo('[KEYCLOAK] Refreshing token: forced refresh');
632
- } else if (!kc.tokenParsed || kc.isTokenExpired(minValidity)) {
633
- refreshToken = true;
634
- logInfo('[KEYCLOAK] Refreshing token: token expired');
635
- }
636
-
637
- if (!refreshToken) {
638
- promise.setSuccess(false);
639
- } else {
640
- var params = 'grant_type=refresh_token&' + 'refresh_token=' + kc.refreshToken;
641
- var url = kc.endpoints.token();
642
-
643
- refreshQueue.push(promise);
644
-
645
- if (refreshQueue.length == 1) {
646
- var req = new XMLHttpRequest();
647
- req.open('POST', url, true);
648
- req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
649
- req.withCredentials = true;
650
-
651
- params += '&client_id=' + encodeURIComponent(kc.clientId);
652
-
653
- var timeLocal = new Date().getTime();
654
-
655
- req.onreadystatechange = function () {
656
- if (req.readyState == 4) {
657
- if (req.status == 200) {
658
- logInfo('[KEYCLOAK] Token refreshed');
659
-
660
- timeLocal = (timeLocal + new Date().getTime()) / 2;
661
-
662
- var tokenResponse = JSON.parse(req.responseText);
663
-
664
- setToken(tokenResponse['access_token'], tokenResponse['refresh_token'], tokenResponse['id_token'], timeLocal);
665
-
666
- kc.onAuthRefreshSuccess && kc.onAuthRefreshSuccess();
667
- for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
668
- p.setSuccess(true);
669
- }
670
- } else {
671
- logWarn('[KEYCLOAK] Failed to refresh token');
672
-
673
- if (req.status == 400) {
674
- kc.clearToken();
675
- }
676
-
677
- kc.onAuthRefreshError && kc.onAuthRefreshError();
678
- for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
679
- p.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
680
- }
681
- }
682
- }
683
- };
684
-
685
- req.send(params);
686
- }
687
- }
688
- };
689
-
690
- if (loginIframe.enable) {
691
- var iframePromise = checkLoginIframe();
692
- iframePromise.then(function() {
693
- exec();
694
- }).catch(function(error) {
695
- promise.setError(error);
696
- });
697
- } else {
698
- exec();
699
- }
700
-
701
- return promise.promise;
702
- };
703
-
704
- kc.clearToken = function() {
705
- if (kc.token) {
706
- setToken(null, null, null);
707
- kc.onAuthLogout && kc.onAuthLogout();
708
- if (kc.loginRequired) {
709
- kc.login();
710
- }
711
- }
712
- };
713
-
714
- function getRealmUrl() {
715
- if (typeof kc.authServerUrl !== 'undefined') {
716
- if (kc.authServerUrl.charAt(kc.authServerUrl.length - 1) == '/') {
717
- return kc.authServerUrl + 'realms/' + encodeURIComponent(kc.realm);
718
- } else {
719
- return kc.authServerUrl + '/realms/' + encodeURIComponent(kc.realm);
720
- }
721
- } else {
722
- return undefined;
723
- }
724
- }
725
-
726
- function getOrigin() {
727
- if (!window.location.origin) {
728
- return window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
729
- } else {
730
- return window.location.origin;
731
- }
732
- }
733
-
734
- function processCallback(oauth, promise) {
735
- var code = oauth.code;
736
- var error = oauth.error;
737
- var prompt = oauth.prompt;
738
-
739
- var timeLocal = new Date().getTime();
740
-
741
- if (oauth['kc_action_status']) {
742
- kc.onActionUpdate && kc.onActionUpdate(oauth['kc_action_status'], oauth['kc_action']);
743
- }
744
-
745
- if (error) {
746
- if (prompt != 'none') {
747
- if (oauth.error_description && oauth.error_description === "authentication_expired") {
748
- kc.login(oauth.loginOptions);
749
- } else {
750
- var errorData = { error: error, error_description: oauth.error_description };
751
- kc.onAuthError && kc.onAuthError(errorData);
752
- promise && promise.setError(errorData);
753
- }
754
- } else {
755
- promise && promise.setSuccess();
756
- }
757
- return;
758
- } else if ((kc.flow != 'standard') && (oauth.access_token || oauth.id_token)) {
759
- authSuccess(oauth.access_token, null, oauth.id_token, true);
760
- }
761
-
762
- if ((kc.flow != 'implicit') && code) {
763
- var params = 'code=' + code + '&grant_type=authorization_code';
764
- var url = kc.endpoints.token();
765
-
766
- var req = new XMLHttpRequest();
767
- req.open('POST', url, true);
768
- req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
769
-
770
- params += '&client_id=' + encodeURIComponent(kc.clientId);
771
- params += '&redirect_uri=' + oauth.redirectUri;
772
-
773
- if (oauth.pkceCodeVerifier) {
774
- params += '&code_verifier=' + oauth.pkceCodeVerifier;
775
- }
776
-
777
- req.withCredentials = true;
778
-
779
- req.onreadystatechange = function() {
780
- if (req.readyState == 4) {
781
- if (req.status == 200) {
782
-
783
- var tokenResponse = JSON.parse(req.responseText);
784
- authSuccess(tokenResponse['access_token'], tokenResponse['refresh_token'], tokenResponse['id_token'], kc.flow === 'standard');
785
- scheduleCheckIframe();
786
- } else {
787
- kc.onAuthError && kc.onAuthError();
788
- promise && promise.setError();
789
- }
790
- }
791
- };
792
-
793
- req.send(params);
794
- }
795
-
796
- function authSuccess(accessToken, refreshToken, idToken, fulfillPromise) {
797
- timeLocal = (timeLocal + new Date().getTime()) / 2;
798
-
799
- setToken(accessToken, refreshToken, idToken, timeLocal);
800
-
801
- if (useNonce && (kc.idTokenParsed && kc.idTokenParsed.nonce != oauth.storedNonce)) {
802
- logInfo('[KEYCLOAK] Invalid nonce, clearing token');
803
- kc.clearToken();
804
- promise && promise.setError();
805
- } else {
806
- if (fulfillPromise) {
807
- kc.onAuthSuccess && kc.onAuthSuccess();
808
- promise && promise.setSuccess();
809
- }
810
- }
811
- }
812
-
813
- }
814
-
815
- function loadConfig() {
816
- var promise = createPromise();
817
- var configUrl;
818
-
819
- if (typeof config === 'string') {
820
- configUrl = config;
821
- }
822
-
823
- function setupOidcEndoints(oidcConfiguration) {
824
- if (! oidcConfiguration) {
825
- kc.endpoints = {
826
- authorize: function() {
827
- return getRealmUrl() + '/protocol/openid-connect/auth';
828
- },
829
- token: function() {
830
- return getRealmUrl() + '/protocol/openid-connect/token';
831
- },
832
- logout: function() {
833
- return getRealmUrl() + '/protocol/openid-connect/logout';
834
- },
835
- checkSessionIframe: function() {
836
- return getRealmUrl() + '/protocol/openid-connect/login-status-iframe.html';
837
- },
838
- thirdPartyCookiesIframe: function() {
839
- return getRealmUrl() + '/protocol/openid-connect/3p-cookies/step1.html';
840
- },
841
- register: function() {
842
- return getRealmUrl() + '/protocol/openid-connect/registrations';
843
- },
844
- userinfo: function() {
845
- return getRealmUrl() + '/protocol/openid-connect/userinfo';
846
- }
847
- };
848
- } else {
849
- kc.endpoints = {
850
- authorize: function() {
851
- return oidcConfiguration.authorization_endpoint;
852
- },
853
- token: function() {
854
- return oidcConfiguration.token_endpoint;
855
- },
856
- logout: function() {
857
- if (!oidcConfiguration.end_session_endpoint) {
858
- throw "Not supported by the OIDC server";
859
- }
860
- return oidcConfiguration.end_session_endpoint;
861
- },
862
- checkSessionIframe: function() {
863
- if (!oidcConfiguration.check_session_iframe) {
864
- throw "Not supported by the OIDC server";
865
- }
866
- return oidcConfiguration.check_session_iframe;
867
- },
868
- register: function() {
869
- throw 'Redirection to "Register user" page not supported in standard OIDC mode';
870
- },
871
- userinfo: function() {
872
- if (!oidcConfiguration.userinfo_endpoint) {
873
- throw "Not supported by the OIDC server";
874
- }
875
- return oidcConfiguration.userinfo_endpoint;
876
- }
877
- };
878
- }
879
- }
880
-
881
- if (configUrl) {
882
- var req = new XMLHttpRequest();
883
- req.open('GET', configUrl, true);
884
- req.setRequestHeader('Accept', 'application/json');
885
-
886
- req.onreadystatechange = function () {
887
- if (req.readyState == 4) {
888
- if (req.status == 200 || fileLoaded(req)) {
889
- var config = JSON.parse(req.responseText);
890
-
891
- kc.authServerUrl = config['auth-server-url'];
892
- kc.realm = config['realm'];
893
- kc.clientId = config['resource'];
894
- setupOidcEndoints(null);
895
- promise.setSuccess();
896
- } else {
897
- promise.setError();
898
- }
899
- }
900
- };
901
-
902
- req.send();
903
- } else {
904
- kc.clientId = config.clientId;
905
-
906
- var oidcProvider = config['oidcProvider'];
907
- if (!oidcProvider) {
908
- kc.authServerUrl = config.url;
909
- kc.realm = config.realm;
910
- setupOidcEndoints(null);
911
- promise.setSuccess();
912
- } else {
913
- if (typeof oidcProvider === 'string') {
914
- var oidcProviderConfigUrl;
915
- if (oidcProvider.charAt(oidcProvider.length - 1) == '/') {
916
- oidcProviderConfigUrl = oidcProvider + '.well-known/openid-configuration';
917
- } else {
918
- oidcProviderConfigUrl = oidcProvider + '/.well-known/openid-configuration';
919
- }
920
- var req = new XMLHttpRequest();
921
- req.open('GET', oidcProviderConfigUrl, true);
922
- req.setRequestHeader('Accept', 'application/json');
923
-
924
- req.onreadystatechange = function () {
925
- if (req.readyState == 4) {
926
- if (req.status == 200 || fileLoaded(req)) {
927
- var oidcProviderConfig = JSON.parse(req.responseText);
928
- setupOidcEndoints(oidcProviderConfig);
929
- promise.setSuccess();
930
- } else {
931
- promise.setError();
932
- }
933
- }
934
- };
935
-
936
- req.send();
937
- } else {
938
- setupOidcEndoints(oidcProvider);
939
- promise.setSuccess();
940
- }
941
- }
942
- }
943
-
944
- return promise.promise;
945
- }
946
-
947
- function fileLoaded(xhr) {
948
- return xhr.status == 0 && xhr.responseText && xhr.responseURL.startsWith('file:');
949
- }
950
-
951
- function setToken(token, refreshToken, idToken, timeLocal) {
952
- if (kc.tokenTimeoutHandle) {
953
- clearTimeout(kc.tokenTimeoutHandle);
954
- kc.tokenTimeoutHandle = null;
955
- }
956
-
957
- if (refreshToken) {
958
- kc.refreshToken = refreshToken;
959
- kc.refreshTokenParsed = decodeToken(refreshToken);
960
- } else {
961
- delete kc.refreshToken;
962
- delete kc.refreshTokenParsed;
963
- }
964
-
965
- if (idToken) {
966
- kc.idToken = idToken;
967
- kc.idTokenParsed = decodeToken(idToken);
968
- } else {
969
- delete kc.idToken;
970
- delete kc.idTokenParsed;
971
- }
972
-
973
- if (token) {
974
- kc.token = token;
975
- kc.tokenParsed = decodeToken(token);
976
- kc.sessionId = kc.tokenParsed.sid;
977
- kc.authenticated = true;
978
- kc.subject = kc.tokenParsed.sub;
979
- kc.realmAccess = kc.tokenParsed.realm_access;
980
- kc.resourceAccess = kc.tokenParsed.resource_access;
981
-
982
- if (timeLocal) {
983
- kc.timeSkew = Math.floor(timeLocal / 1000) - kc.tokenParsed.iat;
984
- }
985
-
986
- if (kc.timeSkew != null) {
987
- logInfo('[KEYCLOAK] Estimated time difference between browser and server is ' + kc.timeSkew + ' seconds');
988
-
989
- if (kc.onTokenExpired) {
990
- var expiresIn = (kc.tokenParsed['exp'] - (new Date().getTime() / 1000) + kc.timeSkew) * 1000;
991
- logInfo('[KEYCLOAK] Token expires in ' + Math.round(expiresIn / 1000) + ' s');
992
- if (expiresIn <= 0) {
993
- kc.onTokenExpired();
994
- } else {
995
- kc.tokenTimeoutHandle = setTimeout(kc.onTokenExpired, expiresIn);
996
- }
997
- }
998
- }
999
- } else {
1000
- delete kc.token;
1001
- delete kc.tokenParsed;
1002
- delete kc.subject;
1003
- delete kc.realmAccess;
1004
- delete kc.resourceAccess;
1005
-
1006
- kc.authenticated = false;
1007
- }
1008
- }
1009
-
1010
- function createUUID() {
1011
- if (typeof crypto === "undefined" || typeof crypto.randomUUID === "undefined") {
1012
- throw new Error("Web Crypto API is not available.");
1013
- }
1014
-
1015
- return crypto.randomUUID();
1016
- }
1017
-
1018
- function parseCallback(url) {
1019
- var oauth = parseCallbackUrl(url);
1020
- if (!oauth) {
1021
- return;
1022
- }
1023
-
1024
- var oauthState = callbackStorage.get(oauth.state);
1025
-
1026
- if (oauthState) {
1027
- oauth.valid = true;
1028
- oauth.redirectUri = oauthState.redirectUri;
1029
- oauth.storedNonce = oauthState.nonce;
1030
- oauth.prompt = oauthState.prompt;
1031
- oauth.pkceCodeVerifier = oauthState.pkceCodeVerifier;
1032
- oauth.loginOptions = oauthState.loginOptions;
1033
- }
1034
-
1035
- return oauth;
1036
- }
1037
-
1038
- function parseCallbackUrl(url) {
1039
- var supportedParams;
1040
- switch (kc.flow) {
1041
- case 'standard':
1042
- supportedParams = ['code', 'state', 'session_state', 'kc_action_status', 'kc_action', 'iss'];
1043
- break;
1044
- case 'implicit':
1045
- supportedParams = ['access_token', 'token_type', 'id_token', 'state', 'session_state', 'expires_in', 'kc_action_status', 'kc_action', 'iss'];
1046
- break;
1047
- case 'hybrid':
1048
- supportedParams = ['access_token', 'token_type', 'id_token', 'code', 'state', 'session_state', 'expires_in', 'kc_action_status', 'kc_action', 'iss'];
1049
- break;
1050
- }
1051
-
1052
- supportedParams.push('error');
1053
- supportedParams.push('error_description');
1054
- supportedParams.push('error_uri');
1055
-
1056
- var queryIndex = url.indexOf('?');
1057
- var fragmentIndex = url.indexOf('#');
1058
-
1059
- var newUrl;
1060
- var parsed;
1061
-
1062
- if (kc.responseMode === 'query' && queryIndex !== -1) {
1063
- newUrl = url.substring(0, queryIndex);
1064
- parsed = parseCallbackParams(url.substring(queryIndex + 1, fragmentIndex !== -1 ? fragmentIndex : url.length), supportedParams);
1065
- if (parsed.paramsString !== '') {
1066
- newUrl += '?' + parsed.paramsString;
1067
- }
1068
- if (fragmentIndex !== -1) {
1069
- newUrl += url.substring(fragmentIndex);
1070
- }
1071
- } else if (kc.responseMode === 'fragment' && fragmentIndex !== -1) {
1072
- newUrl = url.substring(0, fragmentIndex);
1073
- parsed = parseCallbackParams(url.substring(fragmentIndex + 1), supportedParams);
1074
- if (parsed.paramsString !== '') {
1075
- newUrl += '#' + parsed.paramsString;
1076
- }
1077
- }
1078
-
1079
- if (parsed && parsed.oauthParams) {
1080
- if (kc.flow === 'standard' || kc.flow === 'hybrid') {
1081
- if ((parsed.oauthParams.code || parsed.oauthParams.error) && parsed.oauthParams.state) {
1082
- parsed.oauthParams.newUrl = newUrl;
1083
- return parsed.oauthParams;
1084
- }
1085
- } else if (kc.flow === 'implicit') {
1086
- if ((parsed.oauthParams.access_token || parsed.oauthParams.error) && parsed.oauthParams.state) {
1087
- parsed.oauthParams.newUrl = newUrl;
1088
- return parsed.oauthParams;
1089
- }
1090
- }
1091
- }
1092
- }
1093
-
1094
- function parseCallbackParams(paramsString, supportedParams) {
1095
- var p = paramsString.split('&');
1096
- var result = {
1097
- paramsString: '',
1098
- oauthParams: {}
1099
- };
1100
- for (var i = 0; i < p.length; i++) {
1101
- var split = p[i].indexOf("=");
1102
- var key = p[i].slice(0, split);
1103
- if (supportedParams.indexOf(key) !== -1) {
1104
- result.oauthParams[key] = p[i].slice(split + 1);
1105
- } else {
1106
- if (result.paramsString !== '') {
1107
- result.paramsString += '&';
1108
- }
1109
- result.paramsString += p[i];
1110
- }
1111
- }
1112
- return result;
1113
- }
1114
-
1115
- function createPromise() {
1116
- // Need to create a native Promise which also preserves the
1117
- // interface of the custom promise type previously used by the API
1118
- var p = {
1119
- setSuccess: function(result) {
1120
- p.resolve(result);
1121
- },
1122
-
1123
- setError: function(result) {
1124
- p.reject(result);
1125
- }
1126
- };
1127
- p.promise = new Promise(function(resolve, reject) {
1128
- p.resolve = resolve;
1129
- p.reject = reject;
1130
- });
1131
-
1132
- return p;
1133
- }
1134
-
1135
- // Function to extend existing native Promise with timeout
1136
- function applyTimeoutToPromise(promise, timeout, errorMessage) {
1137
- var timeoutHandle = null;
1138
- var timeoutPromise = new Promise(function (resolve, reject) {
1139
- timeoutHandle = setTimeout(function () {
1140
- reject({ "error": errorMessage || "Promise is not settled within timeout of " + timeout + "ms" });
1141
- }, timeout);
1142
- });
1143
-
1144
- return Promise.race([promise, timeoutPromise]).finally(function () {
1145
- clearTimeout(timeoutHandle);
1146
- });
1147
- }
1148
-
1149
- function setupCheckLoginIframe() {
1150
- var promise = createPromise();
1151
-
1152
- if (!loginIframe.enable) {
1153
- promise.setSuccess();
1154
- return promise.promise;
1155
- }
1156
-
1157
- if (loginIframe.iframe) {
1158
- promise.setSuccess();
1159
- return promise.promise;
1160
- }
1161
-
1162
- var iframe = document.createElement('iframe');
1163
- loginIframe.iframe = iframe;
1164
-
1165
- iframe.onload = function() {
1166
- var authUrl = kc.endpoints.authorize();
1167
- if (authUrl.charAt(0) === '/') {
1168
- loginIframe.iframeOrigin = getOrigin();
1169
- } else {
1170
- loginIframe.iframeOrigin = authUrl.substring(0, authUrl.indexOf('/', 8));
1171
- }
1172
- promise.setSuccess();
1173
- };
1174
-
1175
- var src = kc.endpoints.checkSessionIframe();
1176
- iframe.setAttribute('src', src );
1177
- iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
1178
- iframe.setAttribute('title', 'keycloak-session-iframe' );
1179
- iframe.style.display = 'none';
1180
- document.body.appendChild(iframe);
1181
-
1182
- var messageCallback = function(event) {
1183
- if ((event.origin !== loginIframe.iframeOrigin) || (loginIframe.iframe.contentWindow !== event.source)) {
1184
- return;
1185
- }
1186
-
1187
- if (!(event.data == 'unchanged' || event.data == 'changed' || event.data == 'error')) {
1188
- return;
1189
- }
1190
-
1191
-
1192
- if (event.data != 'unchanged') {
1193
- kc.clearToken();
1194
- }
1195
-
1196
- var callbacks = loginIframe.callbackList.splice(0, loginIframe.callbackList.length);
1197
-
1198
- for (var i = callbacks.length - 1; i >= 0; --i) {
1199
- var promise = callbacks[i];
1200
- if (event.data == 'error') {
1201
- promise.setError();
1202
- } else {
1203
- promise.setSuccess(event.data == 'unchanged');
1204
- }
1205
- }
1206
- };
1207
-
1208
- window.addEventListener('message', messageCallback, false);
1209
-
1210
- return promise.promise;
1211
- }
1212
-
1213
- function scheduleCheckIframe() {
1214
- if (loginIframe.enable) {
1215
- if (kc.token) {
1216
- setTimeout(function() {
1217
- checkLoginIframe().then(function(unchanged) {
1218
- if (unchanged) {
1219
- scheduleCheckIframe();
1220
- }
1221
- });
1222
- }, loginIframe.interval * 1000);
1223
- }
1224
- }
1225
- }
1226
-
1227
- function checkLoginIframe() {
1228
- var promise = createPromise();
1229
-
1230
- if (loginIframe.iframe && loginIframe.iframeOrigin ) {
1231
- var msg = kc.clientId + ' ' + (kc.sessionId ? kc.sessionId : '');
1232
- loginIframe.callbackList.push(promise);
1233
- var origin = loginIframe.iframeOrigin;
1234
- if (loginIframe.callbackList.length == 1) {
1235
- loginIframe.iframe.contentWindow.postMessage(msg, origin);
1236
- }
1237
- } else {
1238
- promise.setSuccess();
1239
- }
1240
-
1241
- return promise.promise;
1242
- }
1243
-
1244
- function check3pCookiesSupported() {
1245
- var promise = createPromise();
1246
-
1247
- if ((loginIframe.enable || kc.silentCheckSsoRedirectUri) && typeof kc.endpoints.thirdPartyCookiesIframe === 'function') {
1248
- var iframe = document.createElement('iframe');
1249
- iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
1250
- iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
1251
- iframe.setAttribute('title', 'keycloak-3p-check-iframe' );
1252
- iframe.style.display = 'none';
1253
- document.body.appendChild(iframe);
1254
-
1255
- var messageCallback = function(event) {
1256
- if (iframe.contentWindow !== event.source) {
1257
- return;
1258
- }
1259
-
1260
- if (event.data !== "supported" && event.data !== "unsupported") {
1261
- return;
1262
- } else if (event.data === "unsupported") {
1263
- logWarn(
1264
- "[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
1265
- " - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
1266
- " - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
1267
- "For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"
1268
- );
1269
-
1270
- loginIframe.enable = false;
1271
- if (kc.silentCheckSsoFallback) {
1272
- kc.silentCheckSsoRedirectUri = false;
1273
- }
1274
- }
1275
-
1276
- document.body.removeChild(iframe);
1277
- window.removeEventListener("message", messageCallback);
1278
- promise.setSuccess();
1279
- };
1280
-
1281
- window.addEventListener('message', messageCallback, false);
1282
- } else {
1283
- promise.setSuccess();
1284
- }
1285
-
1286
- return applyTimeoutToPromise(promise.promise, kc.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
1287
- }
1288
-
1289
- function loadAdapter(type) {
1290
- if (!type || type == 'default') {
1291
- return {
1292
- login: async function(options) {
1293
- window.location.assign(await kc.createLoginUrl(options));
1294
- return createPromise().promise;
1295
- },
1296
-
1297
- logout: async function(options) {
1298
-
1299
- const logoutMethod = options?.logoutMethod ?? kc.logoutMethod;
1300
- if (logoutMethod === "GET") {
1301
- window.location.replace(kc.createLogoutUrl(options));
1302
- return;
1303
- }
1304
-
1305
- // Create form to send POST request.
1306
- const form = document.createElement("form");
1307
-
1308
- form.setAttribute("method", "POST");
1309
- form.setAttribute("action", kc.createLogoutUrl(options));
1310
- form.style.display = "none";
1311
-
1312
- // Add data to form as hidden input fields.
1313
- const data = {
1314
- id_token_hint: kc.idToken,
1315
- client_id: kc.clientId,
1316
- post_logout_redirect_uri: adapter.redirectUri(options, false)
1317
- };
1318
-
1319
- for (const [name, value] of Object.entries(data)) {
1320
- const input = document.createElement("input");
1321
-
1322
- input.setAttribute("type", "hidden");
1323
- input.setAttribute("name", name);
1324
- input.setAttribute("value", value);
1325
-
1326
- form.appendChild(input);
1327
- }
1328
-
1329
- // Append form to page and submit it to perform logout and redirect.
1330
- document.body.appendChild(form);
1331
- form.submit();
1332
- },
1333
-
1334
- register: async function(options) {
1335
- window.location.assign(await kc.createRegisterUrl(options));
1336
- return createPromise().promise;
1337
- },
1338
-
1339
- accountManagement : function() {
1340
- var accountUrl = kc.createAccountUrl();
1341
- if (typeof accountUrl !== 'undefined') {
1342
- window.location.href = accountUrl;
1343
- } else {
1344
- throw "Not supported by the OIDC server";
1345
- }
1346
- return createPromise().promise;
1347
- },
1348
-
1349
- redirectUri: function(options, encodeHash) {
1350
-
1351
- if (options && options.redirectUri) {
1352
- return options.redirectUri;
1353
- } else if (kc.redirectUri) {
1354
- return kc.redirectUri;
1355
- } else {
1356
- return location.href;
1357
- }
1358
- }
1359
- };
1360
- }
1361
-
1362
- if (type == 'cordova') {
1363
- loginIframe.enable = false;
1364
- var cordovaOpenWindowWrapper = function(loginUrl, target, options) {
1365
- if (window.cordova && window.cordova.InAppBrowser) {
1366
- // Use inappbrowser for IOS and Android if available
1367
- return window.cordova.InAppBrowser.open(loginUrl, target, options);
1368
- } else {
1369
- return window.open(loginUrl, target, options);
1370
- }
1371
- };
1372
-
1373
- var shallowCloneCordovaOptions = function (userOptions) {
1374
- if (userOptions && userOptions.cordovaOptions) {
1375
- return Object.keys(userOptions.cordovaOptions).reduce(function (options, optionName) {
1376
- options[optionName] = userOptions.cordovaOptions[optionName];
1377
- return options;
1378
- }, {});
1379
- } else {
1380
- return {};
1381
- }
1382
- };
1383
-
1384
- var formatCordovaOptions = function (cordovaOptions) {
1385
- return Object.keys(cordovaOptions).reduce(function (options, optionName) {
1386
- options.push(optionName+"="+cordovaOptions[optionName]);
1387
- return options;
1388
- }, []).join(",");
1389
- };
1390
-
1391
- var createCordovaOptions = function (userOptions) {
1392
- var cordovaOptions = shallowCloneCordovaOptions(userOptions);
1393
- cordovaOptions.location = 'no';
1394
- if (userOptions && userOptions.prompt == 'none') {
1395
- cordovaOptions.hidden = 'yes';
1396
- }
1397
- return formatCordovaOptions(cordovaOptions);
1398
- };
1399
-
1400
- var getCordovaRedirectUri = function() {
1401
- return kc.redirectUri || 'http://localhost';
1402
- };
1403
-
1404
- return {
1405
- login: async function(options) {
1406
- var promise = createPromise();
1407
-
1408
- var cordovaOptions = createCordovaOptions(options);
1409
- var loginUrl = await kc.createLoginUrl(options);
1410
- var ref = cordovaOpenWindowWrapper(loginUrl, '_blank', cordovaOptions);
1411
- var completed = false;
1412
-
1413
- var closed = false;
1414
- var closeBrowser = function() {
1415
- closed = true;
1416
- ref.close();
1417
- };
1418
-
1419
- ref.addEventListener('loadstart', function(event) {
1420
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1421
- var callback = parseCallback(event.url);
1422
- processCallback(callback, promise);
1423
- closeBrowser();
1424
- completed = true;
1425
- }
1426
- });
1427
-
1428
- ref.addEventListener('loaderror', function(event) {
1429
- if (!completed) {
1430
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1431
- var callback = parseCallback(event.url);
1432
- processCallback(callback, promise);
1433
- closeBrowser();
1434
- completed = true;
1435
- } else {
1436
- promise.setError();
1437
- closeBrowser();
1438
- }
1439
- }
1440
- });
1441
-
1442
- ref.addEventListener('exit', function(event) {
1443
- if (!closed) {
1444
- promise.setError({
1445
- reason: "closed_by_user"
1446
- });
1447
- }
1448
- });
1449
-
1450
- return promise.promise;
1451
- },
1452
-
1453
- logout: function(options) {
1454
- var promise = createPromise();
1455
-
1456
- var logoutUrl = kc.createLogoutUrl(options);
1457
- var ref = cordovaOpenWindowWrapper(logoutUrl, '_blank', 'location=no,hidden=yes,clearcache=yes');
1458
-
1459
- var error;
1460
-
1461
- ref.addEventListener('loadstart', function(event) {
1462
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1463
- ref.close();
1464
- }
1465
- });
1466
-
1467
- ref.addEventListener('loaderror', function(event) {
1468
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1469
- ref.close();
1470
- } else {
1471
- error = true;
1472
- ref.close();
1473
- }
1474
- });
1475
-
1476
- ref.addEventListener('exit', function(event) {
1477
- if (error) {
1478
- promise.setError();
1479
- } else {
1480
- kc.clearToken();
1481
- promise.setSuccess();
1482
- }
1483
- });
1484
-
1485
- return promise.promise;
1486
- },
1487
-
1488
- register : async function(options) {
1489
- var promise = createPromise();
1490
- var registerUrl = await kc.createRegisterUrl();
1491
- var cordovaOptions = createCordovaOptions(options);
1492
- var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
1493
- ref.addEventListener('loadstart', function(event) {
1494
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1495
- ref.close();
1496
- var oauth = parseCallback(event.url);
1497
- processCallback(oauth, promise);
1498
- }
1499
- });
1500
- return promise.promise;
1501
- },
1502
-
1503
- accountManagement : function() {
1504
- var accountUrl = kc.createAccountUrl();
1505
- if (typeof accountUrl !== 'undefined') {
1506
- var ref = cordovaOpenWindowWrapper(accountUrl, '_blank', 'location=no');
1507
- ref.addEventListener('loadstart', function(event) {
1508
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
1509
- ref.close();
1510
- }
1511
- });
1512
- } else {
1513
- throw "Not supported by the OIDC server";
1514
- }
1515
- },
1516
-
1517
- redirectUri: function(options) {
1518
- return getCordovaRedirectUri();
1519
- }
1520
- }
1521
- }
1522
-
1523
- if (type == 'cordova-native') {
1524
- loginIframe.enable = false;
1525
-
1526
- return {
1527
- login: async function(options) {
1528
- var promise = createPromise();
1529
- var loginUrl = await kc.createLoginUrl(options);
1530
-
1531
- universalLinks.subscribe('keycloak', function(event) {
1532
- universalLinks.unsubscribe('keycloak');
1533
- window.cordova.plugins.browsertab.close();
1534
- var oauth = parseCallback(event.url);
1535
- processCallback(oauth, promise);
1536
- });
1537
-
1538
- window.cordova.plugins.browsertab.openUrl(loginUrl);
1539
- return promise.promise;
1540
- },
1541
-
1542
- logout: function(options) {
1543
- var promise = createPromise();
1544
- var logoutUrl = kc.createLogoutUrl(options);
1545
-
1546
- universalLinks.subscribe('keycloak', function(event) {
1547
- universalLinks.unsubscribe('keycloak');
1548
- window.cordova.plugins.browsertab.close();
1549
- kc.clearToken();
1550
- promise.setSuccess();
1551
- });
1552
-
1553
- window.cordova.plugins.browsertab.openUrl(logoutUrl);
1554
- return promise.promise;
1555
- },
1556
-
1557
- register : async function(options) {
1558
- var promise = createPromise();
1559
- var registerUrl = await kc.createRegisterUrl(options);
1560
- universalLinks.subscribe('keycloak' , function(event) {
1561
- universalLinks.unsubscribe('keycloak');
1562
- window.cordova.plugins.browsertab.close();
1563
- var oauth = parseCallback(event.url);
1564
- processCallback(oauth, promise);
1565
- });
1566
- window.cordova.plugins.browsertab.openUrl(registerUrl);
1567
- return promise.promise;
1568
-
1569
- },
1570
-
1571
- accountManagement : function() {
1572
- var accountUrl = kc.createAccountUrl();
1573
- if (typeof accountUrl !== 'undefined') {
1574
- window.cordova.plugins.browsertab.openUrl(accountUrl);
1575
- } else {
1576
- throw "Not supported by the OIDC server";
1577
- }
1578
- },
1579
-
1580
- redirectUri: function(options) {
1581
- if (options && options.redirectUri) {
1582
- return options.redirectUri;
1583
- } else if (kc.redirectUri) {
1584
- return kc.redirectUri;
1585
- } else {
1586
- return "http://localhost";
1587
- }
1588
- }
1589
- }
1590
- }
1591
-
1592
- throw 'invalid adapter type: ' + type;
1593
- }
1594
-
1595
- const STORAGE_KEY_PREFIX = 'kc-callback-';
1596
-
1597
- var LocalStorage = function() {
1598
- if (!(this instanceof LocalStorage)) {
1599
- return new LocalStorage();
1600
- }
1601
-
1602
- localStorage.setItem('kc-test', 'test');
1603
- localStorage.removeItem('kc-test');
1604
-
1605
- var cs = this;
1606
-
1607
- /**
1608
- * Clears all values from local storage that are no longer valid.
1609
- */
1610
- function clearInvalidValues() {
1611
- const currentTime = Date.now();
1612
-
1613
- for (const [key, value] of getStoredEntries()) {
1614
- // Attempt to parse the expiry time from the value.
1615
- const expiry = parseExpiry(value);
1616
-
1617
- // Discard the value if it is malformed or expired.
1618
- if (expiry === null || expiry < currentTime) {
1619
- localStorage.removeItem(key);
1620
- }
1621
- }
1622
- }
1623
-
1624
- /**
1625
- * Clears all known values from local storage.
1626
- */
1627
- function clearAllValues() {
1628
- for (const [key] of getStoredEntries()) {
1629
- localStorage.removeItem(key);
1630
- }
1631
- }
1632
-
1633
- /**
1634
- * Gets all entries stored in local storage that are known to be managed by this class.
1635
- * @returns {Array<[string, unknown]>} An array of key-value pairs.
1636
- */
1637
- function getStoredEntries() {
1638
- return Object.entries(localStorage).filter(([key]) => key.startsWith(STORAGE_KEY_PREFIX));
1639
- }
1640
-
1641
- /**
1642
- * Parses the expiry time from a value stored in local storage.
1643
- * @param {unknown} value
1644
- * @returns {number | null} The expiry time in milliseconds, or `null` if the value is malformed.
1645
- */
1646
- function parseExpiry(value) {
1647
- let parsedValue;
1648
-
1649
- // Attempt to parse the value as JSON.
1650
- try {
1651
- parsedValue = JSON.parse(value);
1652
- } catch (error) {
1653
- return null;
1654
- }
1655
-
1656
- // Attempt to extract the 'expires' property.
1657
- if (isObject(parsedValue) && 'expires' in parsedValue && typeof parsedValue.expires === 'number') {
1658
- return parsedValue.expires;
1659
- }
1660
-
1661
- return null;
1662
- }
1663
-
1664
- cs.get = function(state) {
1665
- if (!state) {
1666
- return;
1667
- }
1668
-
1669
- var key = STORAGE_KEY_PREFIX + state;
1670
- var value = localStorage.getItem(key);
1671
- if (value) {
1672
- localStorage.removeItem(key);
1673
- value = JSON.parse(value);
1674
- }
1675
-
1676
- clearInvalidValues();
1677
- return value;
1678
- };
1679
-
1680
- cs.add = function(state) {
1681
- clearInvalidValues();
1682
-
1683
- const key = STORAGE_KEY_PREFIX + state.state;
1684
- const value = JSON.stringify({
1685
- ...state,
1686
- // Set the expiry time to 1 hour from now.
1687
- expires: Date.now() + (60 * 60 * 1000)
1688
- });
1689
-
1690
- try {
1691
- localStorage.setItem(key, value);
1692
- } catch (error) {
1693
- // If the storage is full, clear all known values and try again.
1694
- clearAllValues();
1695
- localStorage.setItem(key, value);
1696
- }
1697
- };
1698
- };
1699
-
1700
- var CookieStorage = function() {
1701
- if (!(this instanceof CookieStorage)) {
1702
- return new CookieStorage();
1703
- }
1704
-
1705
- var cs = this;
1706
-
1707
- cs.get = function(state) {
1708
- if (!state) {
1709
- return;
1710
- }
1711
-
1712
- var value = getCookie(STORAGE_KEY_PREFIX + state);
1713
- setCookie(STORAGE_KEY_PREFIX + state, '', cookieExpiration(-100));
1714
- if (value) {
1715
- return JSON.parse(value);
1716
- }
1717
- };
1718
-
1719
- cs.add = function(state) {
1720
- setCookie(STORAGE_KEY_PREFIX + state.state, JSON.stringify(state), cookieExpiration(60));
1721
- };
1722
-
1723
- cs.removeItem = function(key) {
1724
- setCookie(key, '', cookieExpiration(-100));
1725
- };
1726
-
1727
- var cookieExpiration = function (minutes) {
1728
- var exp = new Date();
1729
- exp.setTime(exp.getTime() + (minutes*60*1000));
1730
- return exp;
1731
- };
1732
-
1733
- var getCookie = function (key) {
1734
- var name = key + '=';
1735
- var ca = document.cookie.split(';');
1736
- for (var i = 0; i < ca.length; i++) {
1737
- var c = ca[i];
1738
- while (c.charAt(0) == ' ') {
1739
- c = c.substring(1);
1740
- }
1741
- if (c.indexOf(name) == 0) {
1742
- return c.substring(name.length, c.length);
1743
- }
1744
- }
1745
- return '';
1746
- };
1747
-
1748
- var setCookie = function (key, value, expirationDate) {
1749
- var cookie = key + '=' + value + '; '
1750
- + 'expires=' + expirationDate.toUTCString() + '; ';
1751
- document.cookie = cookie;
1752
- };
1753
- };
1754
-
1755
- function createCallbackStorage() {
1756
- try {
1757
- return new LocalStorage();
1758
- } catch (err) {
1759
- }
1760
-
1761
- return new CookieStorage();
1762
- }
1763
-
1764
- function createLogger(fn) {
1765
- return function() {
1766
- if (kc.enableLogging) {
1767
- fn.apply(console, Array.prototype.slice.call(arguments));
1768
- }
1769
- };
1770
- }
1771
- }
1772
-
1773
- /**
1774
- * @param {ArrayBuffer} bytes
1775
- * @see https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
1776
- */
1777
- function bytesToBase64(bytes) {
1778
- const binString = String.fromCodePoint(...bytes);
1779
- return btoa(binString);
1780
- }
1781
-
1782
- /**
1783
- * @param {string} message
1784
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#basic_example
1785
- */
1786
- async function sha256Digest(message) {
1787
- const encoder = new TextEncoder();
1788
- const data = encoder.encode(message);
1789
-
1790
- if (typeof crypto === "undefined" || typeof crypto.subtle === "undefined") {
1791
- throw new Error("Web Crypto API is not available.");
1792
- }
1793
-
1794
- return await crypto.subtle.digest("SHA-256", data);
1795
- }
1796
-
1797
- /**
1798
- * @param {string} token
1799
- */
1800
- function decodeToken(token) {
1801
- const [header, payload] = token.split(".");
1802
-
1803
- if (typeof payload !== "string") {
1804
- throw new Error("Unable to decode token, payload not found.");
1805
- }
1806
-
1807
- let decoded;
1808
-
1809
- try {
1810
- decoded = base64UrlDecode(payload);
1811
- } catch (error) {
1812
- throw new Error("Unable to decode token, payload is not a valid Base64URL value.", { cause: error });
1813
- }
1814
-
1815
- try {
1816
- return JSON.parse(decoded);
1817
- } catch (error) {
1818
- throw new Error("Unable to decode token, payload is not a valid JSON value.", { cause: error });
1819
- }
1820
- }
1821
-
1822
- /**
1823
- * @param {string} input
1824
- */
1825
- function base64UrlDecode(input) {
1826
- let output = input
1827
- .replaceAll("-", "+")
1828
- .replaceAll("_", "/");
1829
-
1830
- switch (output.length % 4) {
1831
- case 0:
1832
- break;
1833
- case 2:
1834
- output += "==";
1835
- break;
1836
- case 3:
1837
- output += "=";
1838
- break;
1839
- default:
1840
- throw new Error("Input is not of the correct length.");
1841
- }
1842
-
1843
- try {
1844
- return b64DecodeUnicode(output);
1845
- } catch (error) {
1846
- return atob(output);
1847
- }
1848
- }
1849
-
1850
- /**
1851
- * @param {string} input
1852
- */
1853
- function b64DecodeUnicode(input) {
1854
- return decodeURIComponent(atob(input).replace(/(.)/g, (m, p) => {
1855
- let code = p.charCodeAt(0).toString(16).toUpperCase();
1856
-
1857
- if (code.length < 2) {
1858
- code = "0" + code;
1859
- }
1860
-
1861
- return "%" + code;
1862
- }));
1863
- }
1864
-
1865
- /**
1866
- * Check if the input is an object that can be operated on.
1867
- * @param {unknown} input
1868
- */
1869
- function isObject(input) {
1870
- return typeof input === 'object' && input !== null;
1871
- }
1872
-
1873
- let keycloak = null;
1874
- let keycloakInitPromise = null;
1875
- // Initialize Keycloak with an optional silent check
1876
- function initKeycloak(config, silentCheck = true) {
1877
- // If already initializing or initialized, return the cached promise
1878
- if (keycloakInitPromise) {
1879
- // eslint-disable-next-line
1880
- console.log('Keycloak already initialized, returning from cache');
1881
- return keycloakInitPromise;
1882
- }
1883
- if (!keycloak) {
1884
- keycloak = new Keycloak({
1885
- url: config.url,
1886
- realm: config.realm,
1887
- clientId: config.clientId
1888
- });
1889
- }
1890
- keycloakInitPromise = keycloak
1891
- .init({
1892
- onLoad: silentCheck ? 'check-sso' : 'login-required',
1893
- checkLoginIframe: false
1894
- //silentCheckSsoRedirectUri: `${window.location.origin}/silent-check-sso.html`, // Ensure this file is set up
1895
- })
1896
- .then((authenticated) => authenticated)
1897
- .catch((error) => {
1898
- // eslint-disable-next-line
1899
- console.error('Failed to initialize Keycloak:', error);
1900
- return false;
1901
- });
1902
- return keycloakInitPromise;
1903
- }
1904
- function getUser() {
1905
- if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
1906
- return {
1907
- fullname: keycloak.idTokenParsed.name,
1908
- email: keycloak.idTokenParsed.email,
1909
- lastname: keycloak.idTokenParsed.family_name,
1910
- firstname: keycloak.idTokenParsed.given_name,
1911
- username: keycloak.idTokenParsed.preferred_username,
1912
- background: 'grey', // Optional custom value
1913
- token: keycloak.token,
1914
- sub: keycloak.idTokenParsed.sub
1915
- };
1916
- }
1917
- return {};
1918
- }
1919
- // Log in the user
1920
- function login() {
1921
- if (keycloak) {
1922
- keycloak.login();
1923
- }
1924
- else {
1925
- throw new Error('Keycloak is not initialized.');
1926
- }
1927
- }
1928
- // Log out the user
1929
- function logout() {
1930
- if (keycloak) {
1931
- keycloak.logout();
1932
- }
1933
- else {
1934
- throw new Error('Keycloak is not initialized.');
1935
- }
1936
- }
1937
- // Check if the user is authenticated
1938
- function isAuthenticated() {
1939
- return !!(keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated);
1940
- }
1941
- async function checkServerAvailability(url) {
1942
- try {
1943
- const response = await fetch(url, { method: 'HEAD', mode: 'no-cors' });
1944
- return response.ok || response.type === 'opaque';
1945
- }
1946
- catch (_a) {
1947
- return false;
1948
- }
1949
- }
1950
-
1951
- const EdsLogin = class {
1952
- constructor(hostRef) {
1953
- registerInstance(this, hostRef);
1954
- this.keycloak = createEvent(this, "keycloak", 7);
1955
- this.auth = createEvent(this, "auth", 7);
1956
- /**
1957
- * Handles user login by invoking the Keycloak `login` function.
1958
- * Only triggers login if the user is not already authenticated.
1959
- */
1960
- this.handleLogin = async () => {
1961
- if (!this.authenticated) {
1962
- try {
1963
- await login();
1964
- }
1965
- catch (error) {
1966
- toast.show(error.message, 'error');
1967
- }
1968
- }
1969
- };
1970
- /**
1971
- * Handles user logout by invoking the Keycloak `logout` function.
1972
- * Resets the `authenticated` state to `false` after logout.
1973
- */
1974
- this.handleLogout = async () => {
1975
- try {
1976
- await logout();
1977
- }
1978
- catch (error) {
1979
- toast.show(error.message, 'error');
1980
- }
1981
- this.authenticated = false;
1982
- this.user = null;
1983
- };
1984
- this.keycloakUrl = undefined;
1985
- this.keycloakRealm = undefined;
1986
- this.keycloakClientId = undefined;
1987
- this.authenticated = false;
1988
- this.user = null;
1989
- this.serverAvailable = false;
1990
- }
1991
- /**
1992
- * Lifecycle method that runs when the component is about to load.
1993
- * It initializes authentication by calling the `initAuth` method.
1994
- */
1995
- async componentWillLoad() {
1996
- // Check if required props are provided (optional check)
1997
- if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
1998
- // eslint-disable-next-line
1999
- console.error('Keycloak configuration props are missing.');
2000
- return;
2001
- }
2002
- this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
2003
- if (!this.serverAvailable) {
2004
- toast.show('Keycloak server is unavailable.', 'error');
2005
- return; // Do not proceed further
2006
- }
2007
- await this.initAuth();
2008
- }
2009
- /**
2010
- * Initializes the Keycloak authentication by configuring Keycloak with the provided props.
2011
- * Sets the `authenticated` state and `user` data if the user is authenticated.
2012
- * Emits `authStatusChanged` event with the authentication status.
2013
- */
2014
- async initAuth() {
2015
- try {
2016
- const res = await initKeycloak({
2017
- url: this.keycloakUrl,
2018
- realm: this.keycloakRealm,
2019
- clientId: this.keycloakClientId
2020
- }, true);
2021
- this.keycloak.emit({
2022
- init: res
2023
- });
2024
- if (isAuthenticated()) {
2025
- this.user = getUser();
2026
- this.authenticated = true;
2027
- this.auth.emit({
2028
- authenticated: this.authenticated,
2029
- user: this.user
2030
- }); // Emit auth status change
2031
- }
2032
- }
2033
- catch (error) {
2034
- toast.show(error.message, 'error');
2035
- }
2036
- }
2037
- render() {
2038
- return (h("div", { key: 'ac10895096f36f2fb3a79622972d5a8c519685eb', class: "block" }, !this.authenticated && (h("eds-button", { key: '55aab5ee63214d6a1ccdefc303273df99aa309cf', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
2039
- }
2040
- };
2041
-
2042
- const edsSplashScreenCss = ".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";
2043
- const EdsSplashScreenStyle0 = edsSplashScreenCss;
2044
-
2045
- const EdsSplashScreen = class {
2046
- constructor(hostRef) {
2047
- registerInstance(this, hostRef);
2048
- this.splash = createEvent(this, "splash", 7);
2049
- this.inverse = false;
2050
- this.initPromise = undefined;
2051
- this.isVisible = true;
2052
- }
2053
- // When the component loads, check if there is a promise.
2054
- componentWillLoad() {
2055
- if (this.initPromise) {
2056
- this.handleInitPromise(this.initPromise);
2057
- }
2058
- }
2059
- // Watch for changes on initPromise.
2060
- async watchInitPromise(newPromise) {
2061
- if (newPromise) {
2062
- this.handleInitPromise(newPromise);
2063
- }
2064
- }
2065
- async handleInitPromise(promise) {
2066
- try {
2067
- await promise;
2068
- //console.log('Promises resolved');
2069
- this.hideSplash();
2070
- }
2071
- catch (error) {
2072
- //console.error('Initialization error:', error);
2073
- this.splash.emit({ type: 'error', message: error.message || 'Unknown error' });
2074
- }
2075
- }
2076
- handleHideSplash() {
2077
- this.hideSplash();
2078
- }
2079
- hideSplash() {
2080
- this.isVisible = false;
2081
- this.splash.emit({ type: 'hidden', message: 'Splash screen hidden successfully' });
2082
- }
2083
- render() {
2084
- if (!this.isVisible) {
2085
- return null;
2086
- }
2087
- return (h(Host, null, h("div", { class: "splash-overlay", style: { background: this.inverse ? 'black' : 'var(--grey-200)' } }, h("div", { class: "logo-container" }, this.inverse ? (h("eds-logo", { orientation: "vertical", type: "color-white" })) : (h("eds-logo", { orientation: "vertical", type: "color" }))), h("div", { class: "content-container" }, h("eds-spinner", { size: "1rem", thickness: "3px", "border-color": "var(--grey-400)", "bottom-color": "var(--grey-900)", background: "none", fullscreen: false })))));
2088
- }
2089
- static get watchers() { return {
2090
- "initPromise": ["watchInitPromise"]
2091
- }; }
2092
- };
2093
- EdsSplashScreen.style = EdsSplashScreenStyle0;
2094
-
2095
- export { EdsLogin as eds_login, EdsSplashScreen as eds_splash_screen };