@ebrains/vue 0.9.3-beta → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/README.md +4 -4
  2. package/analytics-d99780e3-Bay18Oil.mjs +28 -0
  3. package/analytics-d99780e3-DgvAss6l.js +1 -0
  4. package/{color-primary-palette_6.entry-CloKiAKI.mjs → color-primary-palette_6.entry-ATs14_8N.mjs} +15 -15
  5. package/color-primary-palette_6.entry-DEKKtdmx.js +1 -0
  6. package/{components-section.entry-BZl-upvI.js → components-section.entry-BeJviBek.js} +6 -6
  7. package/{components-section.entry-DEtf0V8r.mjs → components-section.entry-CIhTwzGP.mjs} +29 -20
  8. package/{correct-use-of-colors.entry-ajROARV6.js → correct-use-of-colors.entry-B7OZy6GP.js} +1 -1
  9. package/{correct-use-of-colors.entry-CvrVVhIA.mjs → correct-use-of-colors.entry-DUWE69EP.mjs} +2 -2
  10. package/{docs-palettes.entry-OWUmgE8-.mjs → docs-palettes.entry-h64S6-A4.mjs} +2 -2
  11. package/{docs-palettes.entry-CegYRhKo.js → docs-palettes.entry-mgW1Rez8.js} +1 -1
  12. package/{docs-tokens.entry-D720jRIB.mjs → docs-tokens.entry-8fIdMfiG.mjs} +2 -2
  13. package/{docs-tokens.entry-BIwcLv8t.js → docs-tokens.entry-lcA48bSL.js} +1 -1
  14. package/{eds-accordion.entry-Ct4upGzD.mjs → eds-accordion.entry-DUOVoYgQ.mjs} +7 -7
  15. package/{eds-accordion.entry-D5Qn9bWB.js → eds-accordion.entry-DcBD8nlx.js} +2 -2
  16. package/eds-alert.entry-D5Itlbb1.mjs +251 -0
  17. package/eds-alert.entry-DEUTt8yK.js +165 -0
  18. package/{eds-app-root.entry-C-CwU-8Y.js → eds-app-root.entry-CIXLfod1.js} +1 -1
  19. package/{eds-app-root.entry-DPM5X6uN.mjs → eds-app-root.entry-DdTcthz6.mjs} +2 -2
  20. package/{eds-timeline.entry-MDj5oqZG.js → eds-avatar_28.entry-B8onWfVW.js} +5133 -2723
  21. package/{eds-tabs.entry-DRJv1vVW.mjs → eds-avatar_28.entry-D_qLn5o3.mjs} +7300 -3116
  22. package/eds-breadcrumb.entry-BW9K7V4U.js +1 -0
  23. package/eds-breadcrumb.entry-DsdlQ4_L.mjs +104 -0
  24. package/eds-card-desc_2.entry-D5DCz71U.js +1 -0
  25. package/{eds-card-desc_2.entry-1GoZmzeQ.mjs → eds-card-desc_2.entry-DEWio8dP.mjs} +5 -5
  26. package/eds-card-generic.entry-DkEya266.js +1 -0
  27. package/{eds-card-generic.entry-CT7jqo3p.mjs → eds-card-generic.entry-SEl8JEp_.mjs} +4 -4
  28. package/eds-card-project.entry-Cq22ABZF.js +1 -0
  29. package/eds-card-project.entry-ZOpSBoyz.mjs +170 -0
  30. package/{eds-card-section.entry-CXFOGMeJ.mjs → eds-card-section.entry-BzylTLQC.mjs} +1 -1
  31. package/{eds-card-section.entry-BWDrARpV.js → eds-card-section.entry-DdYM8rV8.js} +1 -1
  32. package/eds-card-tags.entry-C_n1ZNm3.mjs +13 -0
  33. package/eds-card-tags.entry-CfH7Q4BG.js +1 -0
  34. package/{eds-card-tool.entry-CXluEgpO.mjs → eds-card-tool.entry-DTHdLwQI.mjs} +3 -3
  35. package/{eds-card-tool.entry-kxsYfCOl.js → eds-card-tool.entry-KOKAvEvo.js} +1 -1
  36. package/{eds-code-block.entry-BIGwear1.mjs → eds-code-block.entry-B604OhvT.mjs} +2 -2
  37. package/{eds-code-block.entry-B2tVEczx.js → eds-code-block.entry-VCJIU7ou.js} +2 -2
  38. package/{eds-cookies-preference.entry-BwTBWuc7.mjs → eds-cookies-preference.entry-3tfZ_O1U.mjs} +2 -2
  39. package/{eds-cookies-preference.entry-mbjVkbaf.js → eds-cookies-preference.entry-CLKoQPVj.js} +1 -1
  40. package/{eds-feedback.entry-DQZP2iFN.mjs → eds-feedback.entry-BmC2Ql0i.mjs} +10 -9
  41. package/{eds-feedback.entry-CxE8Mda2.js → eds-feedback.entry-D6nkFFjs.js} +1 -1
  42. package/eds-frame.entry-CoBQEpyT.js +1 -0
  43. package/eds-frame.entry-VlvwsJlk.mjs +67 -0
  44. package/eds-gauge.entry-CZlEaAkz.js +1 -0
  45. package/eds-gauge.entry-fM54L3uu.mjs +30 -0
  46. package/{eds-icon-arrow-diagonal.entry-BzMthIH3.js → eds-icon-arrow-diagonal.entry-CQ-h4bY9.js} +1 -1
  47. package/eds-icon-arrow-diagonal.entry-Du9_EV8C.mjs +13 -0
  48. package/eds-icon-arrow-right.entry-CCfGtNQc.mjs +13 -0
  49. package/eds-icon-arrow-right.entry-Cu5oN4py.js +1 -0
  50. package/eds-icon-bluesky.entry-B91N_152.mjs +13 -0
  51. package/eds-icon-bluesky.entry-lZNwdb9E.js +1 -0
  52. package/eds-icon-bookmark.entry-BCcsJWsc.mjs +13 -0
  53. package/{eds-icon-bookmark.entry-vBTnOEht.js → eds-icon-bookmark.entry-_mceTW12.js} +1 -1
  54. package/eds-icon-chevron-down.entry-CjfP9NnS.mjs +13 -0
  55. package/eds-icon-chevron-down.entry-M9t2pnrD.js +1 -0
  56. package/eds-icon-chevron-left.entry-Bvja7t_t.js +1 -0
  57. package/eds-icon-chevron-left.entry-CG50CLXP.mjs +13 -0
  58. package/eds-icon-chevron-right.entry-CkA3V-M-.js +1 -0
  59. package/eds-icon-chevron-right.entry-YwtfBuIX.mjs +13 -0
  60. package/eds-icon-chevron-up.entry-CAhyMgfW.mjs +13 -0
  61. package/eds-icon-chevron-up.entry-_PFTVNT0.js +1 -0
  62. package/{eds-icon-close.entry-4xYgUnOY.js → eds-icon-close.entry-BDiHqI23.js} +1 -1
  63. package/eds-icon-close.entry-DSXs_vI6.mjs +13 -0
  64. package/{eds-icon-copy.entry-C7-kaujN.mjs → eds-icon-copy.entry-DCo1IOIr.mjs} +2 -2
  65. package/eds-icon-copy.entry-DPbGeiC5.js +1 -0
  66. package/eds-icon-eu.entry-B5cE_Fue.js +1 -0
  67. package/eds-icon-eu.entry-CzrkQ6Me.mjs +13 -0
  68. package/eds-icon-external.entry-DXS_Rz4h.mjs +13 -0
  69. package/eds-icon-external.entry-DetBI23k.js +1 -0
  70. package/eds-icon-facebook.entry-BDTGMONJ.mjs +13 -0
  71. package/{eds-icon-facebook.entry-Do2GEkmS.js → eds-icon-facebook.entry-BgGom0CH.js} +1 -1
  72. package/{eds-icon-gitlab.entry-D7FC3Vn4.mjs → eds-icon-gitlab.entry-CAYVpbnU.mjs} +2 -2
  73. package/eds-icon-gitlab.entry-DoShP9Zc.js +1 -0
  74. package/{eds-icon-linkedin.entry-BYQGxGkX.js → eds-icon-linkedin.entry-Cf2HMi5t.js} +1 -1
  75. package/eds-icon-linkedin.entry-jAyFClAF.mjs +13 -0
  76. package/{eds-icon-loader.entry-C8zfXt5G.mjs → eds-icon-loader.entry-D0l-e0cS.mjs} +2 -2
  77. package/eds-icon-loader.entry-D57WH0m_.js +1 -0
  78. package/eds-icon-mastodon.entry-Bt1D0FBe.mjs +13 -0
  79. package/{eds-icon-mastodon.entry-C_TXVQJB.js → eds-icon-mastodon.entry-CTYew7dL.js} +1 -1
  80. package/{eds-icon-menu.entry-BtdrFvM4.js → eds-icon-menu.entry-CcgZSSE5.js} +1 -1
  81. package/{eds-icon-menu.entry-Dl7Xqhc3.mjs → eds-icon-menu.entry-un5QM8-4.mjs} +2 -2
  82. package/eds-icon-minus.entry-C4EDT_8I.mjs +13 -0
  83. package/eds-icon-minus.entry-CN9gFN8A.js +1 -0
  84. package/eds-icon-more.entry-DvmRVLUt.js +1 -0
  85. package/eds-icon-more.entry-n_HcRvbF.mjs +13 -0
  86. package/eds-icon-paper.entry-BXchbSEg.mjs +13 -0
  87. package/eds-icon-paper.entry-yNSQkPEw.js +1 -0
  88. package/eds-icon-plus.entry-CbFpTIFR.mjs +13 -0
  89. package/eds-icon-plus.entry-DA1W65Qr.js +1 -0
  90. package/eds-icon-portal.entry-BN5WoQXI.mjs +13 -0
  91. package/{eds-icon-portal.entry-DgJxnehb.js → eds-icon-portal.entry-CCwAGN8Y.js} +1 -1
  92. package/{eds-icon-private.entry-BtxnzDjj.js → eds-icon-private.entry-B-VFqlkY.js} +1 -1
  93. package/eds-icon-private.entry-S7EUOHaT.mjs +13 -0
  94. package/{eds-icon-public.entry-BKL5QMPS.js → eds-icon-public.entry-DdW8hTxZ.js} +1 -1
  95. package/eds-icon-public.entry-DjmRvwR8.mjs +13 -0
  96. package/eds-icon-search.entry-C9kA0DSl.mjs +13 -0
  97. package/{eds-icon-search.entry-BPeHLF3h.js → eds-icon-search.entry-JuKSX7FE.js} +1 -1
  98. package/{eds-icon-star.entry-DSHqvj6t.js → eds-icon-star.entry-CEQNjR66.js} +1 -1
  99. package/{eds-icon-star.entry-BP6oBKRH.mjs → eds-icon-star.entry-Dqsszfn7.mjs} +2 -2
  100. package/{eds-icon-success.entry-DoaW0KlM.js → eds-icon-success.entry-D6aLYU4C.js} +1 -1
  101. package/eds-icon-success.entry-Dri28PkX.mjs +13 -0
  102. package/{eds-icon-thumbs-down.entry-CFMyu-CY.js → eds-icon-thumbs-down.entry-CDXhZNp6.js} +1 -1
  103. package/eds-icon-thumbs-down.entry-CnyeXIZm.mjs +13 -0
  104. package/eds-icon-thumbs-up.entry-CJWAhbDc.js +1 -0
  105. package/eds-icon-thumbs-up.entry-DNZkUwSh.mjs +13 -0
  106. package/eds-icon-tutorial.entry-CQOwwW0X.mjs +13 -0
  107. package/eds-icon-tutorial.entry-vatT873n.js +1 -0
  108. package/{eds-icon-twitter.entry-Da3X1sWO.mjs → eds-icon-twitter.entry-BCdKEOgq.mjs} +2 -2
  109. package/{eds-icon-twitter.entry-BLvpOiN-.js → eds-icon-twitter.entry-dKILV47U.js} +1 -1
  110. package/eds-icon-unknown.entry-CkTGu7ZD.js +1 -0
  111. package/eds-icon-unknown.entry-HyqP4dn1.mjs +13 -0
  112. package/eds-icon-updown.entry-Kv06cvHM.js +1 -0
  113. package/eds-icon-updown.entry-Xfv3Iuwk.mjs +13 -0
  114. package/{eds-icon-user.entry-yNOw7Z1J.js → eds-icon-user.entry-CGdD_hJn.js} +1 -1
  115. package/eds-icon-user.entry-DlsBz1zY.mjs +13 -0
  116. package/{eds-icon-youtube.entry-CNH9Mxfw.js → eds-icon-youtube.entry-CZGYh2Vx.js} +1 -1
  117. package/eds-icon-youtube.entry-DzXnQlFA.mjs +13 -0
  118. package/{eds-matomo-notice.entry-DD0R8UUN.mjs → eds-matomo-notice.entry-CEN9eMlC.mjs} +26 -24
  119. package/{eds-matomo-notice.entry-cucI3F6F.js → eds-matomo-notice.entry-CWfk1H5v.js} +1 -1
  120. package/eds-pie.entry-B3U4X-HZ.mjs +68 -0
  121. package/eds-pie.entry-SAGUUq-x.js +1 -0
  122. package/eds-progress-bar.entry-B40FKDIY.mjs +39 -0
  123. package/eds-progress-bar.entry-CdtZMWRD.js +1 -0
  124. package/{eds-rating.entry-BJZaV3ft.js → eds-rating.entry-DPORnYP5.js} +1 -1
  125. package/{eds-rating.entry-BaneuoOA.mjs → eds-rating.entry-DXy8z13n.mjs} +2 -2
  126. package/eds-section-core_2.entry-CAghqI04.js +1 -0
  127. package/{eds-section-core_2.entry-dmjdE4gJ.mjs → eds-section-core_2.entry-pr5jOFIr.mjs} +9 -9
  128. package/{eds-spinner.entry-BwIR2ZO2.mjs → eds-spinner.entry-DS_0ySXR.mjs} +5 -5
  129. package/{eds-spinner.entry-Cdu4PTNJ.js → eds-spinner.entry-ZSmgjLeQ.js} +1 -1
  130. package/eds-splash-screen.entry-CAlwA7CE.js +1 -0
  131. package/eds-splash-screen.entry-CGIsWPg3.mjs +39 -0
  132. package/eds-switch.entry-BPvEdy6K.js +1 -0
  133. package/eds-switch.entry-C8_6uBOS.mjs +29 -0
  134. package/eds-timeline.entry-CaCmJ2Fh.mjs +46 -0
  135. package/eds-timeline.entry-OAW2pkRt.js +1 -0
  136. package/eds-toast-manager.entry-DUxqFVKY.js +1 -0
  137. package/eds-toast-manager.entry-DtpmGj_R.mjs +61 -0
  138. package/{eds-toast.entry-B1RS9m4v.js → eds-toast.entry-B1DPCLvR.js} +2 -2
  139. package/{eds-toast.entry-BNYlJ84c.mjs → eds-toast.entry-DiJpUvbs.mjs} +6 -6
  140. package/eds-tooltip.entry-Cbr9FQqk.mjs +31 -0
  141. package/eds-tooltip.entry-D6WNPimK.js +6 -0
  142. package/eds-trl.entry-B-_Wzeov.mjs +34 -0
  143. package/eds-trl.entry-BZ3G8aVz.js +1 -0
  144. package/generated/components.d.ts +2 -2
  145. package/incorrect-use-of-colors.entry-BMQ4bUVe.mjs +42 -0
  146. package/incorrect-use-of-colors.entry-C2WUenLf.js +1 -0
  147. package/index-BLX1G7Jb.js +21 -0
  148. package/index-BLyMQVPx.mjs +3520 -0
  149. package/index.js +1 -1
  150. package/index.mjs +18 -18
  151. package/{logo-space.entry-DxZ7v-wS.js → logo-space.entry-B9810IFA.js} +2 -2
  152. package/{logo-space.entry-GOUZQmu9.mjs → logo-space.entry-Dwb40YEh.mjs} +5 -5
  153. package/{logo-variations-horizontal_2.entry-CRdycvC5.js → logo-variations-horizontal_2.entry-BHbTdGyz.js} +3 -3
  154. package/{logo-variations-horizontal_2.entry-DimbU2IU.mjs → logo-variations-horizontal_2.entry-BjqUR-w3.mjs} +10 -10
  155. package/{logo-variations-tabs.entry-Uc3TLufg.mjs → logo-variations-tabs.entry-7OA38Lpm.mjs} +3 -3
  156. package/{logo-variations-tabs.entry-5kLk6tXo.js → logo-variations-tabs.entry-Dl2DbP8q.js} +1 -1
  157. package/{logo-wrong-usage.entry-13RSC-bu.js → logo-wrong-usage.entry-C3pp-83N.js} +1 -1
  158. package/{logo-wrong-usage.entry-CYcqaVbn.mjs → logo-wrong-usage.entry-Duywjfj_.mjs} +5 -5
  159. package/package.json +1 -1
  160. package/{svg-repository.entry-IIRiiFbB.mjs → svg-repository.entry-7M1slWVL.mjs} +11 -11
  161. package/{svg-repository.entry-Ck1z1CpA.js → svg-repository.entry-BqMp75Pt.js} +2 -2
  162. package/{token-list_3.entry-CLlUT7ge.js → token-list_3.entry-CaP5VVjM.js} +1 -1
  163. package/{token-list_3.entry-CQ9aUIVd.mjs → token-list_3.entry-CkO70Jcu.mjs} +4 -4
  164. package/token-ratios.entry-C2w-OpPQ.js +1 -0
  165. package/{token-ratios.entry-DkgSpwqw.mjs → token-ratios.entry-llhdL8NX.mjs} +5 -5
  166. package/token-spacing.entry-CK8RirEP.js +1 -0
  167. package/token-spacing.entry-DHyuHRXC.mjs +12 -0
  168. package/{token-typography.entry-CgJdJgCR.js → token-typography.entry-Bqw5oeKI.js} +1 -1
  169. package/{token-typography.entry-CrMCS1R0.mjs → token-typography.entry-DyzkmiA4.mjs} +2 -2
  170. package/analytics-44b1416b-3vYuu4Xs.mjs +0 -28
  171. package/analytics-44b1416b-ol77SdQE.js +0 -1
  172. package/color-2554aad6-CCcV5UJZ.mjs +0 -131
  173. package/color-2554aad6-D1hFGX4H.js +0 -1
  174. package/color-primary-palette_6.entry-DnBuZqiu.js +0 -1
  175. package/eds-alert.entry-D9ClanEp.js +0 -739
  176. package/eds-alert.entry-D9R2BeLM.mjs +0 -825
  177. package/eds-avatar_27.entry-7vAHtj7m.mjs +0 -33545
  178. package/eds-avatar_27.entry-CnmtSNAS.js +0 -31838
  179. package/eds-card-desc_2.entry-BfOXVZi0.js +0 -1
  180. package/eds-card-generic.entry-BKpFgWlR.js +0 -1
  181. package/eds-card-project.entry-BbLZfxAE.js +0 -1
  182. package/eds-card-project.entry-O11d3day.mjs +0 -44
  183. package/eds-card-tags.entry-Debtxwjy.mjs +0 -13
  184. package/eds-card-tags.entry-Do7oGWtS.js +0 -1
  185. package/eds-card-wrapper.entry-DnHxiCgs.js +0 -1
  186. package/eds-card-wrapper.entry-Dyrfqp6K.mjs +0 -24
  187. package/eds-frame.entry-BzGgy3Ya.mjs +0 -67
  188. package/eds-frame.entry-CGFInzxQ.js +0 -1
  189. package/eds-icon-arrow-diagonal.entry-D0nObc1G.mjs +0 -13
  190. package/eds-icon-arrow-right.entry-BGLDpWIT.mjs +0 -13
  191. package/eds-icon-arrow-right.entry-DPLcd0Dg.js +0 -1
  192. package/eds-icon-bluesky.entry-ZXTtFyYw.mjs +0 -13
  193. package/eds-icon-bluesky.entry-bnwTCSoD.js +0 -1
  194. package/eds-icon-bookmark.entry-BV8nKCLz.mjs +0 -13
  195. package/eds-icon-chevron-down.entry-9YeZRA_B.mjs +0 -13
  196. package/eds-icon-chevron-down.entry-BNSIoEMh.js +0 -1
  197. package/eds-icon-chevron-left.entry-BBKqN2RH.js +0 -1
  198. package/eds-icon-chevron-left.entry-Bm5LaJAt.mjs +0 -13
  199. package/eds-icon-chevron-right.entry-ChbDkmms.mjs +0 -13
  200. package/eds-icon-chevron-right.entry-CieI-tuC.js +0 -1
  201. package/eds-icon-chevron-up.entry-BqkKRoL-.js +0 -1
  202. package/eds-icon-chevron-up.entry-D3DkXrLO.mjs +0 -13
  203. package/eds-icon-close.entry-DQv18xqh.mjs +0 -13
  204. package/eds-icon-copy.entry-DQl13_LK.js +0 -1
  205. package/eds-icon-eu.entry-B8fNjCUv.js +0 -1
  206. package/eds-icon-eu.entry-DR5lezcj.mjs +0 -13
  207. package/eds-icon-external.entry-BaIofxzF.js +0 -1
  208. package/eds-icon-external.entry-DvY_6Ld0.mjs +0 -13
  209. package/eds-icon-facebook.entry-D7FANZCQ.mjs +0 -13
  210. package/eds-icon-gitlab.entry-p78Zzlxs.js +0 -1
  211. package/eds-icon-linkedin.entry-CchbiOIO.mjs +0 -13
  212. package/eds-icon-loader.entry-Cw7oYrm3.js +0 -1
  213. package/eds-icon-mastodon.entry-BOgFKnbj.mjs +0 -13
  214. package/eds-icon-minus.entry-BA5Al4_F.js +0 -1
  215. package/eds-icon-minus.entry-Bfm78Q48.mjs +0 -13
  216. package/eds-icon-more.entry-CHzRpt-L.mjs +0 -13
  217. package/eds-icon-more.entry-mAUgJoHF.js +0 -1
  218. package/eds-icon-paper.entry-DEiOlvnw.mjs +0 -13
  219. package/eds-icon-paper.entry-DtE79_lg.js +0 -1
  220. package/eds-icon-plus.entry-BCc2gk-Y.js +0 -1
  221. package/eds-icon-plus.entry-DxdfImnp.mjs +0 -13
  222. package/eds-icon-portal.entry-DygPWj8q.mjs +0 -13
  223. package/eds-icon-private.entry-ClDqtUa4.mjs +0 -13
  224. package/eds-icon-public.entry-D0qOA8dF.mjs +0 -13
  225. package/eds-icon-search.entry-iegCSWzH.mjs +0 -13
  226. package/eds-icon-success.entry-B2vqFpAU.mjs +0 -13
  227. package/eds-icon-thumbs-down.entry-CmV8Km2F.mjs +0 -13
  228. package/eds-icon-thumbs-up.entry-8RPnzfnW.js +0 -1
  229. package/eds-icon-thumbs-up.entry-DhfFxKPT.mjs +0 -13
  230. package/eds-icon-tutorial.entry-B3NRKCnl.mjs +0 -13
  231. package/eds-icon-tutorial.entry-ImfBSV9b.js +0 -1
  232. package/eds-icon-unknown.entry--9_uerA-.js +0 -1
  233. package/eds-icon-unknown.entry-DH3YcJSO.mjs +0 -13
  234. package/eds-icon-updown.entry-BU4FzzAC.js +0 -1
  235. package/eds-icon-updown.entry-D6t6TWtG.mjs +0 -13
  236. package/eds-icon-user.entry-pb-JM7tE.mjs +0 -13
  237. package/eds-icon-youtube.entry-CIx5D-1i.mjs +0 -13
  238. package/eds-login_2.entry-shWfmpH4.mjs +0 -981
  239. package/eds-login_2.entry-swrZnwUp.js +0 -9
  240. package/eds-pagination_2.entry-Cmqe9RbB.mjs +0 -258
  241. package/eds-pagination_2.entry-DFO92YFs.js +0 -1
  242. package/eds-progress-bar.entry-CIkJEHf9.mjs +0 -21
  243. package/eds-progress-bar.entry-CUoQ0OmO.js +0 -1
  244. package/eds-section-core_2.entry-wnSqKsfm.js +0 -1
  245. package/eds-switch.entry-8g9JkW0c.js +0 -1
  246. package/eds-switch.entry-BOxsYeYC.mjs +0 -20
  247. package/eds-tabs.entry-CdlLmrmB.js +0 -7794
  248. package/eds-timeline.entry-AsApD57a.mjs +0 -7839
  249. package/eds-toast-manager.entry-Bri3h_MP.mjs +0 -36
  250. package/eds-toast-manager.entry-zrDxthPz.js +0 -1
  251. package/eds-tooltip.entry-B6UpJ0wf.js +0 -1
  252. package/eds-tooltip.entry-Ci5te9B_.mjs +0 -77
  253. package/eds-trl.entry-CuUDfGYw.js +0 -1
  254. package/eds-trl.entry-Dz7LP4G1.mjs +0 -34
  255. package/incorrect-use-of-colors.entry-CYXsk3TR.mjs +0 -42
  256. package/incorrect-use-of-colors.entry-CfmdbA7l.js +0 -1
  257. package/index-7ljGsgwC.js +0 -21
  258. package/index-l365C9dI.mjs +0 -3617
  259. package/toastManager-d9eee791-CEYNwx25.mjs +0 -30
  260. package/toastManager-d9eee791-DvR_vUPI.js +0 -1
  261. package/token-ratios.entry-Dtrkv16c.js +0 -1
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-7ljGsgwC.js"),R=require("./toastManager-d9eee791-DvR_vUPI.js");function G(u){if(!(this instanceof G))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if(typeof u!="string"&&!V(u))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(V(u)){const r="oidcProvider"in u?["clientId"]:["url","realm","clientId"];for(const t of r)if(!u[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var e=this,p,w=[],I,h={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;var P=!0,_=q(console.info),M=q(console.warn);globalThis.isSecureContext||M(`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.
2
- Continuing to run your application insecurely will lead to unexpected behavior and breakage.
3
-
4
- For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),e.init=function(r={}){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,I=ae();var t=["default","cordova","cordova-native"];if(t.indexOf(r.adapter)>-1?p=N(r.adapter):typeof r.adapter=="object"?p=r.adapter:window.Cordova||window.cordova?p=N("cordova"):p=N(),typeof r.useNonce<"u"&&(P=r.useNonce),typeof r.checkLoginIframe<"u"&&(h.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(h.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof r.pkceMethod<"u"){if(r.pkceMethod!=="S256"&&r.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);e.pkceMethod=r.pkceMethod}else e.pkceMethod="S256";typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,r.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4,e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var s=g(),i=g();i.promise.then(function(){e.onReady&&e.onReady(e.authenticated),s.setSuccess(e.authenticated)}).catch(function(o){s.setError(o)});var a=re();function c(){var o=function(d){d||(f.prompt="none"),r.locale&&(f.locale=r.locale),e.login(f).then(function(){i.setSuccess()}).catch(function(m){i.setError(m)})},l=async function(){var d=document.createElement("iframe"),m=await e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});d.setAttribute("src",m),d.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),d.setAttribute("title","keycloak-silent-check-sso"),d.style.display="none",document.body.appendChild(d);var y=function(U){if(!(U.origin!==window.location.origin||d.contentWindow!==U.source)){var b=E(U.data);T(b,i),document.body.removeChild(d),window.removeEventListener("message",y)}};window.addEventListener("message",y)},f={};switch(r.onLoad){case"check-sso":h.enable?K().then(function(){L().then(function(d){d?i.setSuccess():e.silentCheckSsoRedirectUri?l():o(!1)}).catch(function(d){i.setError(d)})}):e.silentCheckSsoRedirectUri?l():o(!1);break;case"login-required":o(!0);break;default:throw"Invalid value for onLoad"}}function n(){var o=E(window.location.href);if(o&&window.history.replaceState(window.history.state,null,o.newUrl),o&&o.valid)return K().then(function(){T(o,i)}).catch(function(l){i.setError(l)});r.token&&r.refreshToken?(C(r.token,r.refreshToken,r.idToken),h.enable?K().then(function(){L().then(function(l){l?(e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess(),H()):i.setSuccess()}).catch(function(l){i.setError(l)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess()}).catch(function(l){e.onAuthError&&e.onAuthError(),r.onLoad?c():i.setError(l)})):r.onLoad?c():i.setSuccess()}return a.then(function(){oe().then(n).catch(function(o){s.setError(o)})}),a.catch(function(o){s.setError(o)}),s.promise},e.login=function(r){return p.login(r)};function X(r){if(typeof crypto>"u"||typeof crypto.getRandomValues>"u")throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(r))}function B(r){return $(r,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function $(r,t){for(var s=X(r),i=new Array(r),a=0;a<r;a++)i[a]=t.charCodeAt(s[a]%t.length);return String.fromCharCode.apply(null,i)}async function Q(r,t){if(r!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${r}'.`);const s=new Uint8Array(await se(t));return ie(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function Z(r){var t={id_token:{acr:r}};return JSON.stringify(t)}e.createLoginUrl=async function(r){var t=F(),s=F(),i=p.redirectUri(r),a={state:t,nonce:s,redirectUri:encodeURIComponent(i),loginOptions:r};r&&r.prompt&&(a.prompt=r.prompt);var c;r&&r.action=="register"?c=e.endpoints.register():c=e.endpoints.authorize();var n=r&&r.scope||e.scope;n?n.indexOf("openid")===-1&&(n="openid "+n):n="openid";var o=c+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(i)+"&state="+encodeURIComponent(t)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(n);if(P&&(o=o+"&nonce="+encodeURIComponent(s)),r&&r.prompt&&(o+="&prompt="+encodeURIComponent(r.prompt)),r&&typeof r.maxAge=="number"&&(o+="&max_age="+encodeURIComponent(r.maxAge)),r&&r.loginHint&&(o+="&login_hint="+encodeURIComponent(r.loginHint)),r&&r.idpHint&&(o+="&kc_idp_hint="+encodeURIComponent(r.idpHint)),r&&r.action&&r.action!="register"&&(o+="&kc_action="+encodeURIComponent(r.action)),r&&r.locale&&(o+="&ui_locales="+encodeURIComponent(r.locale)),r&&r.acr){var l=Z(r.acr);o+="&claims="+encodeURIComponent(l)}if((r&&r.acrValues||e.acrValues)&&(o+="&acr_values="+encodeURIComponent(r.acrValues||e.acrValues)),e.pkceMethod)try{const f=B(96),d=await Q(e.pkceMethod,f);a.pkceCodeVerifier=f,o+="&code_challenge="+d,o+="&code_challenge_method="+e.pkceMethod}catch(f){throw new Error("Failed to generate PKCE challenge.",{cause:f})}return I.add(a),o},e.logout=function(r){return p.logout(r)},e.createLogoutUrl=function(r){if(((r==null?void 0:r.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var s=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(p.redirectUri(r,!1));return e.idToken&&(s+="&id_token_hint="+encodeURIComponent(e.idToken)),s},e.register=function(r){return p.register(r)},e.createRegisterUrl=async function(r){return r||(r={}),r.action="register",await e.createLoginUrl(r)},e.createAccountUrl=function(r){var t=S(),s=void 0;return typeof t<"u"&&(s=t+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(p.redirectUri(r))),s},e.accountManagement=function(){return p.accountManagement()},e.hasRealmRole=function(r){var t=e.realmAccess;return!!t&&t.roles.indexOf(r)>=0},e.hasResourceRole=function(r,t){if(!e.resourceAccess)return!1;var s=e.resourceAccess[t||e.clientId];return!!s&&s.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=S()+"/account",t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.profile=JSON.parse(t.responseText),s.setSuccess(e.profile)):s.setError())},t.send(),s.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.userInfo=JSON.parse(t.responseText),s.setSuccess(e.userInfo)):s.setError())},t.send(),s.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return _("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";t-=r}return t<0},e.updateToken=function(r){var t=g();if(!e.refreshToken)return t.setError(),t.promise;r=r||5;var s=function(){var a=!1;if(r==-1?(a=!0,_("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(a=!0,_("[KEYCLOAK] Refreshing token: token expired")),!a)t.setSuccess(!1);else{var c="grant_type=refresh_token&refresh_token="+e.refreshToken,n=e.endpoints.token();if(w.push(t),w.length==1){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,c+="&client_id="+encodeURIComponent(e.clientId);var l=new Date().getTime();o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200){_("[KEYCLOAK] Token refreshed"),l=(l+new Date().getTime())/2;var f=JSON.parse(o.responseText);C(f.access_token,f.refresh_token,f.id_token,l),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var d=w.pop();d!=null;d=w.pop())d.setSuccess(!0)}else{M("[KEYCLOAK] Failed to refresh token"),o.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var d=w.pop();d!=null;d=w.pop())d.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")}},o.send(c)}}};if(h.enable){var i=L();i.then(function(){s()}).catch(function(a){t.setError(a)})}else s();return t.promise},e.clearToken=function(){e.token&&(C(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function S(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function ee(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function T(r,t){var s=r.code,i=r.error,a=r.prompt,c=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status,r.kc_action),i){if(a!="none")if(r.error_description&&r.error_description==="authentication_expired")e.login(r.loginOptions);else{var n={error:i,error_description:r.error_description};e.onAuthError&&e.onAuthError(n),t&&t.setError(n)}else t&&t.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&d(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&s){var o="code="+s+"&grant_type=authorization_code",l=e.endpoints.token(),f=new XMLHttpRequest;f.open("POST",l,!0),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o+="&client_id="+encodeURIComponent(e.clientId),o+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(o+="&code_verifier="+r.pkceCodeVerifier),f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState==4)if(f.status==200){var m=JSON.parse(f.responseText);d(m.access_token,m.refresh_token,m.id_token,e.flow==="standard"),H()}else e.onAuthError&&e.onAuthError(),t&&t.setError()},f.send(o)}function d(m,y,U,b){c=(c+new Date().getTime())/2,C(m,y,U,c),P&&e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce?(_("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),t&&t.setError()):b&&(e.onAuthSuccess&&e.onAuthSuccess(),t&&t.setSuccess())}}function re(){var r=g(),t;typeof u=="string"&&(t=u);function s(n){n?e.endpoints={authorize:function(){return n.authorization_endpoint},token:function(){return n.token_endpoint},logout:function(){if(!n.end_session_endpoint)throw"Not supported by the OIDC server";return n.end_session_endpoint},checkSessionIframe:function(){if(!n.check_session_iframe)throw"Not supported by the OIDC server";return n.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!n.userinfo_endpoint)throw"Not supported by the OIDC server";return n.userinfo_endpoint}}:e.endpoints={authorize:function(){return S()+"/protocol/openid-connect/auth"},token:function(){return S()+"/protocol/openid-connect/token"},logout:function(){return S()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return S()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return S()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return S()+"/protocol/openid-connect/registrations"},userinfo:function(){return S()+"/protocol/openid-connect/userinfo"}}}if(t){var i=new XMLHttpRequest;i.open("GET",t,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||J(i)){var n=JSON.parse(i.responseText);e.authServerUrl=n["auth-server-url"],e.realm=n.realm,e.clientId=n.resource,s(null),r.setSuccess()}else r.setError()},i.send()}else{e.clientId=u.clientId;var a=u.oidcProvider;if(!a)e.authServerUrl=u.url,e.realm=u.realm,s(null),r.setSuccess();else if(typeof a=="string"){var c;a.charAt(a.length-1)=="/"?c=a+".well-known/openid-configuration":c=a+"/.well-known/openid-configuration";var i=new XMLHttpRequest;i.open("GET",c,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||J(i)){var o=JSON.parse(i.responseText);s(o),r.setSuccess()}else r.setError()},i.send()}else s(a),r.setSuccess()}return r.promise}function J(r){return r.status==0&&r.responseText&&r.responseURL.startsWith("file:")}function C(r,t,s,i){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),t?(e.refreshToken=t,e.refreshTokenParsed=O(t)):(delete e.refreshToken,delete e.refreshTokenParsed),s?(e.idToken=s,e.idTokenParsed=O(s)):(delete e.idToken,delete e.idTokenParsed),r){if(e.token=r,e.tokenParsed=O(r),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,i&&(e.timeSkew=Math.floor(i/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(_("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var a=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;_("[KEYCLOAK] Token expires in "+Math.round(a/1e3)+" s"),a<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,a)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function F(){if(typeof crypto>"u"||typeof crypto.randomUUID>"u")throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function E(r){var t=te(r);if(t){var s=I.get(t.state);return s&&(t.valid=!0,t.redirectUri=s.redirectUri,t.storedNonce=s.nonce,t.prompt=s.prompt,t.pkceCodeVerifier=s.pkceCodeVerifier,t.loginOptions=s.loginOptions),t}}function te(r){var t;switch(e.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");var s=r.indexOf("?"),i=r.indexOf("#"),a,c;if(e.responseMode==="query"&&s!==-1?(a=r.substring(0,s),c=Y(r.substring(s+1,i!==-1?i:r.length),t),c.paramsString!==""&&(a+="?"+c.paramsString),i!==-1&&(a+=r.substring(i))):e.responseMode==="fragment"&&i!==-1&&(a=r.substring(0,i),c=Y(r.substring(i+1),t),c.paramsString!==""&&(a+="#"+c.paramsString)),c&&c.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((c.oauthParams.code||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}else if(e.flow==="implicit"&&(c.oauthParams.access_token||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}}function Y(r,t){for(var s=r.split("&"),i={paramsString:"",oauthParams:{}},a=0;a<s.length;a++){var c=s[a].indexOf("="),n=s[a].slice(0,c);t.indexOf(n)!==-1?i.oauthParams[n]=s[a].slice(c+1):(i.paramsString!==""&&(i.paramsString+="&"),i.paramsString+=s[a])}return i}function g(){var r={setSuccess:function(t){r.resolve(t)},setError:function(t){r.reject(t)}};return r.promise=new Promise(function(t,s){r.resolve=t,r.reject=s}),r}function ne(r,t,s){var i=null,a=new Promise(function(c,n){i=setTimeout(function(){n({error:s})},t)});return Promise.race([r,a]).finally(function(){clearTimeout(i)})}function K(){var r=g();if(!h.enable||h.iframe)return r.setSuccess(),r.promise;var t=document.createElement("iframe");h.iframe=t,t.onload=function(){var a=e.endpoints.authorize();a.charAt(0)==="/"?h.iframeOrigin=ee():h.iframeOrigin=a.substring(0,a.indexOf("/",8)),r.setSuccess()};var s=e.endpoints.checkSessionIframe();t.setAttribute("src",s),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(a){if(!(a.origin!==h.iframeOrigin||h.iframe.contentWindow!==a.source)&&(a.data=="unchanged"||a.data=="changed"||a.data=="error")){a.data!="unchanged"&&e.clearToken();for(var c=h.callbackList.splice(0,h.callbackList.length),n=c.length-1;n>=0;--n){var o=c[n];a.data=="error"?o.setError():o.setSuccess(a.data=="unchanged")}}};return window.addEventListener("message",i,!1),r.promise}function H(){h.enable&&e.token&&setTimeout(function(){L().then(function(r){r&&H()})},h.interval*1e3)}function L(){var r=g();if(h.iframe&&h.iframeOrigin){var t=e.clientId+" "+(e.sessionId?e.sessionId:"");h.callbackList.push(r);var s=h.iframeOrigin;h.callbackList.length==1&&h.iframe.contentWindow.postMessage(t,s)}else r.setSuccess();return r.promise}function oe(){var r=g();if((h.enable||e.silentCheckSsoRedirectUri)&&typeof e.endpoints.thirdPartyCookiesIframe=="function"){var t=document.createElement("iframe");t.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var s=function(i){t.contentWindow===i.source&&(i.data!=="supported"&&i.data!=="unsupported"||(i.data==="unsupported"&&(M(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
5
-
6
- - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
7
- - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
8
-
9
- For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers`),h.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",s),r.setSuccess()))};window.addEventListener("message",s,!1)}else r.setSuccess();return ne(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function N(r){if(!r||r=="default")return{login:async function(n){return window.location.assign(await e.createLoginUrl(n)),g().promise},logout:async function(n){if(((n==null?void 0:n.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(n));return}const l=document.createElement("form");l.setAttribute("method","POST"),l.setAttribute("action",e.createLogoutUrl(n)),l.style.display="none";const f={id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:p.redirectUri(n,!1)};for(const[d,m]of Object.entries(f)){const y=document.createElement("input");y.setAttribute("type","hidden"),y.setAttribute("name",d),y.setAttribute("value",m),l.appendChild(y)}document.body.appendChild(l),l.submit()},register:async function(n){return window.location.assign(await e.createRegisterUrl(n)),g().promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.location.href=n;else throw"Not supported by the OIDC server";return g().promise},redirectUri:function(n,o){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){h.enable=!1;var t=function(n,o,l){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(n,o,l):window.open(n,o,l)},s=function(n){return n&&n.cordovaOptions?Object.keys(n.cordovaOptions).reduce(function(o,l){return o[l]=n.cordovaOptions[l],o},{}):{}},i=function(n){return Object.keys(n).reduce(function(o,l){return o.push(l+"="+n[l]),o},[]).join(",")},a=function(n){var o=s(n);return o.location="no",n&&n.prompt=="none"&&(o.hidden="yes"),i(o)},c=function(){return e.redirectUri||"http://localhost"};return{login:async function(n){var o=g(),l=a(n),f=await e.createLoginUrl(n),d=t(f,"_blank",l),m=!1,y=!1,U=function(){y=!0,d.close()};return d.addEventListener("loadstart",function(b){if(b.url.indexOf(c())==0){var z=E(b.url);T(z,o),U(),m=!0}}),d.addEventListener("loaderror",function(b){if(!m)if(b.url.indexOf(c())==0){var z=E(b.url);T(z,o),U(),m=!0}else o.setError(),U()}),d.addEventListener("exit",function(b){y||o.setError({reason:"closed_by_user"})}),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n),f=t(l,"_blank","location=no,hidden=yes,clearcache=yes"),d;return f.addEventListener("loadstart",function(m){m.url.indexOf(c())==0&&f.close()}),f.addEventListener("loaderror",function(m){m.url.indexOf(c())==0||(d=!0),f.close()}),f.addEventListener("exit",function(m){d?o.setError():(e.clearToken(),o.setSuccess())}),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(),f=a(n),d=t(l,"_blank",f);return d.addEventListener("loadstart",function(m){if(m.url.indexOf(c())==0){d.close();var y=E(m.url);T(y,o)}}),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u"){var o=t(n,"_blank","location=no");o.addEventListener("loadstart",function(l){l.url.indexOf(c())==0&&o.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(n){return c()}}}if(r=="cordova-native")return h.enable=!1,{login:async function(n){var o=g(),l=await e.createLoginUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var d=E(f.url);T(d,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),o.setSuccess()}),window.cordova.plugins.browsertab.openUrl(l),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var d=E(f.url);T(d,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.cordova.plugins.browsertab.openUrl(n);else throw"Not supported by the OIDC server"},redirectUri:function(n){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}const A="kc-callback-";var D=function(){if(!(this instanceof D))return new D;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){const c=Date.now();for(const[n,o]of i()){const l=a(o);(l===null||l<c)&&localStorage.removeItem(n)}}function s(){for(const[c]of i())localStorage.removeItem(c)}function i(){return Object.entries(localStorage).filter(([c])=>c.startsWith(A))}function a(c){let n;try{n=JSON.parse(c)}catch{return null}return V(n)&&"expires"in n&&typeof n.expires=="number"?n.expires:null}r.get=function(c){if(c){var n=A+c,o=localStorage.getItem(n);return o&&(localStorage.removeItem(n),o=JSON.parse(o)),t(),o}},r.add=function(c){t();const n=A+c.state,o=JSON.stringify({...c,expires:Date.now()+60*60*1e3});try{localStorage.setItem(n,o)}catch{s(),localStorage.setItem(n,o)}}},j=function(){if(!(this instanceof j))return new j;var r=this;r.get=function(a){if(a){var c=s(A+a);if(i(A+a,"",t(-100)),c)return JSON.parse(c)}},r.add=function(a){i(A+a.state,JSON.stringify(a),t(60))},r.removeItem=function(a){i(a,"",t(-100))};var t=function(a){var c=new Date;return c.setTime(c.getTime()+a*60*1e3),c},s=function(a){for(var c=a+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var l=n[o];l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(c)==0)return l.substring(c.length,l.length)}return""},i=function(a,c,n){var o=a+"="+c+"; expires="+n.toUTCString()+"; ";document.cookie=o}};function ae(){try{return new D}catch{}return new j}function q(r){return function(){e.enableLogging&&r.apply(console,Array.prototype.slice.call(arguments))}}}function ie(u){const e=String.fromCodePoint(...u);return btoa(e)}async function se(u){const p=new TextEncoder().encode(u);if(typeof crypto>"u"||typeof crypto.subtle>"u")throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",p)}function O(u){const[e,p]=u.split(".");if(typeof p!="string")throw new Error("Unable to decode token, payload not found.");let w;try{w=ce(p)}catch(I){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:I})}try{return JSON.parse(w)}catch(I){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:I})}}function ce(u){let e=u.replaceAll("-","+").replaceAll("_","/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Input is not of the correct length.")}try{return le(e)}catch{return atob(e)}}function le(u){return decodeURIComponent(atob(u).replace(/(.)/g,(e,p)=>{let w=p.charCodeAt(0).toString(16).toUpperCase();return w.length<2&&(w="0"+w),"%"+w}))}function V(u){return typeof u=="object"&&u!==null}let k=null,x=null;function ue(u,e=!0){return x?(console.log("Keycloak already initialized, returning from cache"),x):(k||(k=new G({url:u.url,realm:u.realm,clientId:u.clientId})),x=k.init({onLoad:e?"check-sso":"login-required",checkLoginIframe:!1}).then(p=>p).catch(p=>(console.error("Failed to initialize Keycloak:",p),!1)),x)}function de(){return k!=null&&k.authenticated&&(k!=null&&k.idTokenParsed)?{fullname:k.idTokenParsed.name,email:k.idTokenParsed.email,lastname:k.idTokenParsed.family_name,firstname:k.idTokenParsed.given_name,username:k.idTokenParsed.preferred_username,background:"grey",token:k.token,sub:k.idTokenParsed.sub}:{}}function fe(){if(k)k.login();else throw new Error("Keycloak is not initialized.")}function he(){if(k)k.logout();else throw new Error("Keycloak is not initialized.")}function pe(){return!!(k!=null&&k.authenticated)}async function me(u){try{const e=await fetch(u,{method:"HEAD",mode:"no-cors"});return e.ok||e.type==="opaque"}catch{return!1}}const ke=class{constructor(u){v.registerInstance(this,u),this.keycloak=v.createEvent(this,"keycloak",7),this.auth=v.createEvent(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await fe()}catch(e){R.toast.show(e.message,"error")}},this.handleLogout=async()=>{try{await he()}catch(e){R.toast.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){if(!this.keycloakUrl||!this.keycloakRealm||!this.keycloakClientId){console.error("Keycloak configuration props are missing.");return}if(this.serverAvailable=await me(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),!this.serverAvailable){R.toast.show("Keycloak server is unavailable.","error");return}await this.initAuth()}async initAuth(){try{const u=await ue({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:u}),pe()&&(this.user=de(),this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(u){R.toast.show(u.message,"error")}}render(){return v.h("div",{key:"041846174aaad541acce03588a087793d10daa1e",class:"block"},!this.authenticated&&v.h("eds-button",{key:"360a84ec79a15c9293e3898b77df649c469d9529",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},ge=".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}",ve=ge,W=class{constructor(u){v.registerInstance(this,u),this.splash=v.createEvent(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(u){u&&this.handleInitPromise(u)}async handleInitPromise(u){try{await u,this.hideSplash()}catch(e){this.splash.emit({type:"error",message:e.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?v.h(v.Host,null,v.h("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},v.h("div",{class:"logo-container"},this.inverse?v.h("eds-logo",{orientation:"vertical",type:"color-white"}):v.h("eds-logo",{orientation:"vertical",type:"color"})),v.h("div",{class:"content-container"},v.h("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};W.style=ve;exports.eds_login=ke;exports.eds_splash_screen=W;
@@ -1,258 +0,0 @@
1
- import { r as h, h as i, g as d } from "./index-l365C9dI.mjs";
2
- import { s as g } from "./analytics-44b1416b-3vYuu4Xs.mjs";
3
- import { p as c } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
4
- const f = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", u = f, p = class {
5
- constructor(t) {
6
- h(this, t), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
7
- }
8
- /** Lifecycle hook to generate pagination links on component load */
9
- componentWillLoad() {
10
- this.mode === "default" && this.generateLinks();
11
- }
12
- componentDidLoad() {
13
- this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
14
- this.emitContext(e);
15
- });
16
- }
17
- /**
18
- * Emits a custom event called `parentContext` for a given link element.
19
- * This event provides context information about the breadcrumb component.
20
- *
21
- * @param linkElement - The link element to which the event will be dispatched.
22
- */
23
- emitContext(t) {
24
- const e = new CustomEvent("parentContext", {
25
- detail: {
26
- componentName: this.hostEl.tagName.toLowerCase(),
27
- identifier: null
28
- }
29
- });
30
- t.dispatchEvent(e);
31
- }
32
- onPageOrLastPageChange() {
33
- this.mode === "default" && this.generateLinks();
34
- }
35
- /**
36
- * Checks if the current page is the first page
37
- * @returns {boolean} - true if current page is the first page
38
- */
39
- isFirstPage() {
40
- return this.currentPage === 1;
41
- }
42
- /**
43
- * Checks if the current page is the last page
44
- * @returns {boolean} - true if current page is the last page
45
- */
46
- isLastPage() {
47
- return this.currentPage === this.lastPage;
48
- }
49
- /**
50
- * Generates a pagination link object
51
- * @param {number} page - Page number for the link
52
- * @returns {Link} - Link object with page details
53
- */
54
- generateLink(t) {
55
- const e = this.url.includes("?");
56
- return {
57
- ariaLabel: `Page ${t}`,
58
- url: `${this.url}${e ? "&" : "?"}page=${t}`,
59
- label: t.toString(),
60
- current: this.currentPage === t,
61
- disabled: !1
62
- };
63
- }
64
- /** Generates pagination links based on the last page and current page */
65
- generateLinks() {
66
- this.lastPage && this.lastPage > 5 ? this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((t) => typeof t == "number" ? this.generateLink(t) : t) : this.lastPage && (this.links = Array.from({ length: this.lastPage }).map((t, e) => this.generateLink(e + 1)));
67
- }
68
- /**
69
- * Creates a pagination range based on delta, current, and total pages
70
- * @param {number} current - Current page number
71
- * @param {number} total - Total number of pages
72
- * @param {number} delta - Range of pages to display around the current page
73
- * @returns {(number | string)[]} - Range of page numbers or ellipses
74
- */
75
- getPaginationGenerator(t, e) {
76
- const a = [];
77
- if (e <= 5)
78
- for (let n = 1; n <= e; n++)
79
- a.push(n);
80
- else {
81
- a.push(1), t - 1 > 2 && a.push("...");
82
- for (let n = Math.max(2, t - 1); n <= Math.min(e - 1, t + 1); n++)
83
- a.push(n);
84
- t + 1 < e - 1 && a.push("..."), a.push(e);
85
- }
86
- return a;
87
- }
88
- /**
89
- * Formats the current page results information for display
90
- * @returns {string} - Formatted page result information
91
- */
92
- pageResults() {
93
- return this.total > 0 ? this.total > this.perPage ? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}` : `${this.total}` : "";
94
- }
95
- /**
96
- * Handles a page click event, updating the current page and dispatching an event
97
- * @param {MouseEvent} event - Click event
98
- * @param {number} newPage - New page number
99
- */
100
- handlePageClick(t, e) {
101
- if (this.mode !== "navigator" && (t.preventDefault(), e !== this.currentPage)) {
102
- this.links = this.links.map((a) => typeof a == "object" ? Object.assign(Object.assign({}, a), { current: parseInt(a.label) === e }) : a);
103
- const s = new CustomEvent("page", {
104
- detail: e,
105
- bubbles: !0,
106
- composed: !0
107
- });
108
- this.hostEl.dispatchEvent(s), this.currentPage = e;
109
- }
110
- }
111
- render() {
112
- return i("div", { key: "1d53f69179791434224f152503c0b81c4cfc7cd3" }, this.total > 0 && this.mode === "default" && i("p", { key: "00ae324b49d62a74feee9d1cde21d67cd726ecf0", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "dedf2ce2700eae9d1386b305ec1d1904b133f992", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (t) => {
113
- this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
114
- } })), this.mode === "default" && this.links.map((t, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof t == "string" ? i("span", { class: "flex items-center justify-center" }, t) : i("eds-link", { url: t.url, "aria-label": t.ariaLabel, label: t.label, current: t.current, size: "small", class: "!p-8", intent: t.current ? "secondary" : "ghost", onClick: (s) => this.handlePageClick(s, parseInt(t.label)) }))), i("li", { class: "ml-auto" }, i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (t) => {
115
- this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
116
- } })))) : null);
117
- }
118
- get hostEl() {
119
- return d(this);
120
- }
121
- static get watchers() {
122
- return {
123
- currentPage: ["onPageOrLastPageChange"],
124
- lastPage: ["onPageOrLastPageChange"]
125
- };
126
- }
127
- };
128
- p.style = u;
129
- const m = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}", b = m, v = class {
130
- constructor(t) {
131
- h(this, t), this.handleResize = () => {
132
- this.updateContainerWidth();
133
- }, this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.tbData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "", this.containerWidth = 0;
134
- }
135
- handleDataChange() {
136
- this.parseData();
137
- }
138
- handleConfigChange() {
139
- this.parseConfig();
140
- }
141
- componentWillLoad() {
142
- this.parseConfig(), this.data ? this.parseData() : this.endpoint && this.fetchData();
143
- }
144
- componentDidLoad() {
145
- this.updateContainerWidth(), window.addEventListener("resize", this.handleResize), this.setupPaginationListener();
146
- }
147
- componentDidUpdate() {
148
- this.setupPaginationListener();
149
- }
150
- disconnectedCallback() {
151
- window.removeEventListener("resize", this.handleResize);
152
- }
153
- updateContainerWidth() {
154
- this.hostWidth && this.hostWidth.trim() !== "" ? this.containerWidth = Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.containerWidth = this.hostEl.parentElement.getBoundingClientRect().width : this.containerWidth = 400;
155
- }
156
- parseData() {
157
- try {
158
- this.tbData = c(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
159
- } catch (t) {
160
- console.error("Failed to parse data:", t), this.tbData = [];
161
- }
162
- }
163
- parseConfig() {
164
- try {
165
- this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
166
- } catch (t) {
167
- console.error("Failed to parse config:", t), this.parsedConfig = {};
168
- }
169
- }
170
- async fetchData() {
171
- try {
172
- const e = await (await fetch(this.endpoint)).json();
173
- this.data = e;
174
- } catch (t) {
175
- console.error("Failed to fetch data:", t);
176
- }
177
- }
178
- setupPaginationListener() {
179
- if (!this.shouldEnablePagination())
180
- return;
181
- const t = this.hostEl.shadowRoot.querySelector("eds-pagination");
182
- t && !t.hasAttribute("listener-attached") && (t.addEventListener("page", (e) => this.handlePageChange(e.detail)), t.setAttribute("listener-attached", "true"));
183
- }
184
- getFilteredRows() {
185
- return this.tbData.filter((t) => Object.values(t).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
186
- }
187
- getPaginatedRows() {
188
- const t = this.getFilteredRows();
189
- this.totalRows = t.length;
190
- const e = (this.currentPage - 1) * this.rowsPerPage;
191
- return t.slice(e, e + this.rowsPerPage);
192
- }
193
- handlePageChange(t) {
194
- this.currentPage = t, g({
195
- category: "ui-component",
196
- parentContext: null,
197
- tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
198
- name: `${t}` || "",
199
- action: "page"
200
- });
201
- }
202
- handleSearch(t) {
203
- this.searchQuery = t.target.value, this.currentPage = 1;
204
- }
205
- renderCell(t, e) {
206
- var s;
207
- const a = (s = this.parsedConfig[e]) === null || s === void 0 ? void 0 : s.format;
208
- return a === "uppercase" ? t == null ? void 0 : t.toString().toUpperCase() : a === "svg" ? i("div", { innerHTML: t }) : a === "bold" ? i("strong", null, t) : a === "code" ? i("code", null, t) : t;
209
- }
210
- shouldEnablePagination() {
211
- return this.paginationEnabled && this.totalRows > this.rowsPerPage;
212
- }
213
- updateColumns() {
214
- this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
215
- }
216
- getVisibleColumnsCount() {
217
- return this.columns.filter((t) => {
218
- var e;
219
- return !(!((e = this.parsedConfig[t]) === null || e === void 0) && e.hidden);
220
- }).length;
221
- }
222
- divisionFactor() {
223
- let t = 1;
224
- return this.columnSize === "medium" ? t = 2 : this.columnSize === "large" && (t = 4), t;
225
- }
226
- render() {
227
- const t = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(), s = e > 0 ? Math.floor(t / e * this.divisionFactor()) : 100, a = this.getPaginatedRows(), n = Math.ceil(this.totalRows / this.rowsPerPage);
228
- return i("div", { key: "9ac7ad4f02237c02eaf5d3b351ded21bce29bd6c" }, this.searchEnabled && i("div", { key: "1cecf9a9089391c3bce72dd53a6f5ffa92692661" }, i("eds-input-field", {
229
- key: 1,
230
- name: "search",
231
- "aria-label": "Search",
232
- type: "text",
233
- placeholder: "Search...",
234
- // @ts-ignore
235
- onInput: (o) => this.handleSearch(o)
236
- })), i("div", { key: "435bbfd0a4dd3ddd0a7766863cdd8c2eaf41eb8f", class: "mt-20" }, i("table", { key: "4785490532015b7069be068e80135220f37c3955", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "8a99a961cf350bca26b1f73b8ffd6c8e1c48378f" }, i("tr", { key: "a4ee04e342687830e905a3bd5217e53e513f0167", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
237
- var r;
238
- return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${s - 4}px` } }, o);
239
- }))), i("tbody", { key: "3c764ac7137d1b21f45003c6df5324e7d0db749f" }, a.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
240
- var l;
241
- return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${s - 4}px` } }, this.renderCell(o[r], r));
242
- })))))), this.shouldEnablePagination() && i("div", { key: "98a1179b45fbc1b2f079825c899410ef4faf8c45", class: "mt-20" }, i("eds-pagination", { key: "662c479139658ea7f3d2a3955c77e24d44dd6e74", currentPage: this.currentPage, lastPage: n, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
243
- }
244
- get hostEl() {
245
- return d(this);
246
- }
247
- static get watchers() {
248
- return {
249
- data: ["handleDataChange", "parseData"],
250
- config: ["handleConfigChange"]
251
- };
252
- }
253
- };
254
- v.style = b;
255
- export {
256
- p as eds_pagination,
257
- v as eds_table
258
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-7ljGsgwC.js"),g=require("./analytics-44b1416b-ol77SdQE.js"),c=require("./sharedUtils-a550989c-m4pF1Vqy.js"),u="ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}",f=u,h=class{constructor(t){i.registerInstance(this,t),this.currentPage=void 0,this.lastPage=void 0,this.perPage=10,this.total=0,this.url="",this.mode="default",this.prevLabel="Prev",this.nextLabel="Next",this.prevUrl="",this.nextUrl="",this.links=[]}componentWillLoad(){this.mode==="default"&&this.generateLinks()}componentDidLoad(){this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.hostEl.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}onPageOrLastPageChange(){this.mode==="default"&&this.generateLinks()}isFirstPage(){return this.currentPage===1}isLastPage(){return this.currentPage===this.lastPage}generateLink(t){const e=this.url.includes("?");return{ariaLabel:`Page ${t}`,url:`${this.url}${e?"&":"?"}page=${t}`,label:t.toString(),current:this.currentPage===t,disabled:!1}}generateLinks(){this.lastPage&&this.lastPage>5?this.links=this.getPaginationGenerator(this.currentPage||1,this.lastPage).map(t=>typeof t=="number"?this.generateLink(t):t):this.lastPage&&(this.links=Array.from({length:this.lastPage}).map((t,e)=>this.generateLink(e+1)))}getPaginationGenerator(t,e){const a=[];if(e<=5)for(let n=1;n<=e;n++)a.push(n);else{a.push(1),t-1>2&&a.push("...");for(let n=Math.max(2,t-1);n<=Math.min(e-1,t+1);n++)a.push(n);t+1<e-1&&a.push("..."),a.push(e)}return a}pageResults(){return this.total>0?this.total>this.perPage?`${this.perPage*((this.currentPage||1)-1)+1} - ${this.perPage*(this.currentPage||1)>=this.total?this.total:this.perPage*(this.currentPage||1)} of ${this.total}`:`${this.total}`:""}handlePageClick(t,e){if(this.mode!=="navigator"&&(t.preventDefault(),e!==this.currentPage)){this.links=this.links.map(a=>typeof a=="object"?Object.assign(Object.assign({},a),{current:parseInt(a.label)===e}):a);const s=new CustomEvent("page",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"1d53f69179791434224f152503c0b81c4cfc7cd3"},this.total>0&&this.mode==="default"&&i.h("p",{key:"00ae324b49d62a74feee9d1cde21d67cd726ecf0",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"dedf2ce2700eae9d1386b305ec1d1904b133f992",class:"sr-only"},"Results:"),this.pageResults()),this.mode==="navigator"||this.lastPage&&this.lastPage>1?i.h("nav",{"aria-label":"Pagination"},i.h("ul",{class:"flex items-center justify-center gap-x-8"},i.h("li",{class:"mr-auto"},i.h("eds-link",{label:this.prevLabel,url:this.mode==="navigator"?this.prevUrl||"#":this.isFirstPage()?"#":this.generateLink(this.currentPage-1).url,disabled:this.mode==="navigator"?!this.prevUrl:this.isFirstPage(),"aria-label":"Previous page",icon:"chevron-left","icon-pos":"left",size:"small","icon-small":"true",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pr-12",onClick:t=>{this.mode==="default"&&(this.isFirstPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)-1))}})),this.mode==="default"&&this.links.map((t,e)=>i.h("li",{key:e,class:"f-ui-02 flex h-36 items-center justify-center"},typeof t=="string"?i.h("span",{class:"flex items-center justify-center"},t):i.h("eds-link",{url:t.url,"aria-label":t.ariaLabel,label:t.label,current:t.current,size:"small",class:"!p-8",intent:t.current?"secondary":"ghost",onClick:s=>this.handlePageClick(s,parseInt(t.label))}))),i.h("li",{class:"ml-auto"},i.h("eds-link",{label:this.nextLabel,url:this.mode==="navigator"?this.nextUrl||"#":this.isLastPage()?"#":this.generateLink(this.currentPage+1).url,disabled:this.mode==="navigator"?!this.nextUrl:this.isLastPage(),"aria-label":"Next page",size:"small","icon-small":"true",icon:"chevron-right",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors",onClick:t=>{this.mode==="default"&&(this.isLastPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)+1))}})))):null)}get hostEl(){return i.getElement(this)}static get watchers(){return{currentPage:["onPageOrLastPageChange"],lastPage:["onPageOrLastPageChange"]}}};h.style=f;const p="table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}",m=p,d=class{constructor(t){i.registerInstance(this,t),this.handleResize=()=>{this.updateContainerWidth()},this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.hostWidth=void 0,this.columnSize="default",this.tbData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery="",this.containerWidth=0}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.updateContainerWidth(),window.addEventListener("resize",this.handleResize),this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateContainerWidth(){this.hostWidth&&this.hostWidth.trim()!==""?this.containerWidth=Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.containerWidth=this.hostEl.parentElement.getBoundingClientRect().width:this.containerWidth=400}parseData(){try{this.tbData=c.parseData(this.data),this.totalRows=this.tbData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tbData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(t){console.error("Failed to parse config:",t),this.parsedConfig={}}}async fetchData(){try{const e=await(await fetch(this.endpoint)).json();this.data=e}catch(t){console.error("Failed to fetch data:",t)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const t=this.hostEl.shadowRoot.querySelector("eds-pagination");t&&!t.hasAttribute("listener-attached")&&(t.addEventListener("page",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tbData.filter(t=>Object.values(t).some(e=>e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const t=this.getFilteredRows();this.totalRows=t.length;const e=(this.currentPage-1)*this.rowsPerPage;return t.slice(e,e+this.rowsPerPage)}handlePageChange(t){this.currentPage=t,g.sendAnalytics({category:"ui-component",parentContext:null,tag:`${this.hostEl.tagName.toLowerCase()}/eds-pagination`,name:`${t}`||"",action:"page"})}handleSearch(t){this.searchQuery=t.target.value,this.currentPage=1}renderCell(t,e){var s;const a=(s=this.parsedConfig[e])===null||s===void 0?void 0:s.format;return a==="uppercase"?t==null?void 0:t.toString().toUpperCase():a==="svg"?i.h("div",{innerHTML:t}):a==="bold"?i.h("strong",null,t):a==="code"?i.h("code",null,t):t}shouldEnablePagination(){return this.paginationEnabled&&this.totalRows>this.rowsPerPage}updateColumns(){this.columns=this.tbData.length>0?Object.keys(this.tbData[0]):[]}getVisibleColumnsCount(){return this.columns.filter(t=>{var e;return!(!((e=this.parsedConfig[t])===null||e===void 0)&&e.hidden)}).length}divisionFactor(){let t=1;return this.columnSize==="medium"?t=2:this.columnSize==="large"&&(t=4),t}render(){const t=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.containerWidth||400,e=this.getVisibleColumnsCount(),s=e>0?Math.floor(t/e*this.divisionFactor()):100,a=this.getPaginatedRows(),n=Math.ceil(this.totalRows/this.rowsPerPage);return i.h("div",{key:"9ac7ad4f02237c02eaf5d3b351ded21bce29bd6c"},this.searchEnabled&&i.h("div",{key:"1cecf9a9089391c3bce72dd53a6f5ffa92692661"},i.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:o=>this.handleSearch(o)})),i.h("div",{key:"435bbfd0a4dd3ddd0a7766863cdd8c2eaf41eb8f",class:"mt-20"},i.h("table",{key:"4785490532015b7069be068e80135220f37c3955",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"8a99a961cf350bca26b1f73b8ffd6c8e1c48378f"},i.h("tr",{key:"a4ee04e342687830e905a3bd5217e53e513f0167",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(o=>{var r;return!(!((r=this.parsedConfig[o])===null||r===void 0)&&r.hidden)&&i.h("th",{class:"m-0 py-8 border border-softer f-ui-02 break-words",style:{minWidth:`${s-4}px`}},o)}))),i.h("tbody",{key:"3c764ac7137d1b21f45003c6df5324e7d0db749f"},a.map(o=>i.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var l;return!(!((l=this.parsedConfig[r])===null||l===void 0)&&l.hidden)&&i.h("td",{class:"text-center border border-softer m-0 py-8 f-ui-2 break-words",style:{minWidth:`${s-4}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"98a1179b45fbc1b2f079825c899410ef4faf8c45",class:"mt-20"},i.h("eds-pagination",{key:"662c479139658ea7f3d2a3955c77e24d44dd6e74",currentPage:this.currentPage,lastPage:n,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};d.style=m;exports.eds_pagination=h;exports.eds_table=d;
@@ -1,21 +0,0 @@
1
- import { r as t, h as r } from "./index-l365C9dI.mjs";
2
- const a = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}", o = a, i = class {
3
- constructor(e) {
4
- t(this, e), this.value = 0;
5
- }
6
- /**
7
- * Method to update the progress value externally.
8
- * @param newValue The new progress value (0-100).
9
- */
10
- async updateValue(e) {
11
- this.value = Math.min(100, Math.max(0, e));
12
- }
13
- render() {
14
- const e = this.value;
15
- return r("div", { key: "0f47fedbf9d44887f65b399e184215f0937b1df1", role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, r("div", { key: "a2d095d778842c969832ea6b1ba7f7ef917d1390", class: "inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02", style: { width: `${e}%` } }, e, "%"));
16
- }
17
- };
18
- i.style = o;
19
- export {
20
- i as eds_progress_bar
21
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-7ljGsgwC.js"),a=".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}",o=a,t=class{constructor(e){r.registerInstance(this,e),this.value=0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=this.value;return r.h("div",{key:"0f47fedbf9d44887f65b399e184215f0937b1df1",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e,"aria-valuetext":`${e}%`,class:"outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"},r.h("div",{key:"a2d095d778842c969832ea6b1ba7f7ef917d1390",class:"inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02",style:{width:`${e}%`}},e,"%"))}};t.style=o;exports.eds_progress_bar=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-7ljGsgwC.js"),n="",a=n,s=class{constructor(e){t.registerInstance(this,e),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){const e=this.tag;return t.h(e,{key:"f07162204271dca0f1ec8a3d309ab9d38a9fff4f"},t.h("eds-section-heading",{key:"c4db2a67151fcec22306f624b071725518292e65",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"e610f4777f1b334e20482862504085f5317a63df"}))}};s.style=a;const h=class{constructor(e){t.registerInstance(this,e),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){const e=this.tag,i=this.headingLevel;return t.h(e,{key:"efa6dd7e228db2b86961efdff9b5dd9729a1a24b",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"dd50f0fe3baf084c71dc4c8fa745484645a58f76",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=h;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7ljGsgwC.js"),i=":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}",c=i,s=class{constructor(t){e.registerInstance(this,t),this.toggle=e.createEvent(this,"toggle",7),this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked,this.toggle.emit(this.checked))},this.checked=!1,this.disabled=!1,this.labelOn="",this.labelOff=""}render(){const t=this.labelOn||this.labelOff?this.checked?this.labelOn:this.labelOff:"Toggle switch";return e.h("div",{key:"ef70db7a5ed4f8e8db7e1a9e94334a3686ec1d0e",class:"switch-container"},this.labelOff&&e.h("span",{key:"4a18de129ba0b4e643a0929b6fc797b7bc35cb4c",class:"switch-label switch-label--off"},this.labelOff),e.h("button",{key:"2d75656fadf36a38269d361fef176e243e1291c2",type:"button",role:"switch","aria-checked":this.checked?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":t,class:{switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled},onClick:this.toggleSwitch,disabled:this.disabled},e.h("span",{key:"71bd3c8c042ac337c1392977c27e8f4ccde5e79f",class:"switch-handle"})),this.labelOn&&e.h("span",{key:"7cfa0b1f805271c9281853a872cedf93db7e07d8",class:"switch-label switch-label--on"},this.labelOn))}};s.style=c;exports.eds_switch=s;
@@ -1,20 +0,0 @@
1
- import { r as s, c as i, h as e } from "./index-l365C9dI.mjs";
2
- const c = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}", a = c, l = class {
3
- constructor(t) {
4
- s(this, t), this.toggle = i(this, "toggle", 7), this.toggleSwitch = () => {
5
- this.disabled || (this.checked = !this.checked, this.toggle.emit(this.checked));
6
- }, this.checked = !1, this.disabled = !1, this.labelOn = "", this.labelOff = "";
7
- }
8
- render() {
9
- const t = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : "Toggle switch";
10
- return e("div", { key: "ef70db7a5ed4f8e8db7e1a9e94334a3686ec1d0e", class: "switch-container" }, this.labelOff && e("span", { key: "4a18de129ba0b4e643a0929b6fc797b7bc35cb4c", class: "switch-label switch-label--off" }, this.labelOff), e("button", { key: "2d75656fadf36a38269d361fef176e243e1291c2", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", "aria-disabled": this.disabled ? "true" : "false", "aria-label": t, class: {
11
- switch: !0,
12
- "switch--checked": this.checked,
13
- "switch--disabled": this.disabled
14
- }, onClick: this.toggleSwitch, disabled: this.disabled }, e("span", { key: "71bd3c8c042ac337c1392977c27e8f4ccde5e79f", class: "switch-handle" })), this.labelOn && e("span", { key: "7cfa0b1f805271c9281853a872cedf93db7e07d8", class: "switch-label switch-label--on" }, this.labelOn));
15
- }
16
- };
17
- l.style = a;
18
- export {
19
- l as eds_switch
20
- };