@nside/wefa 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/LegalConsent-BxOWAO0s.js +126 -0
- package/dist/LegalConsent-ChW-GYBv.cjs +1 -0
- package/dist/LegalDocument-BM4HLw9A.js +1580 -0
- package/dist/LegalDocument-hhYW9BBO.cjs +114 -0
- package/dist/LoginView-BpDNpbMQ.cjs +1 -0
- package/dist/LoginView-bUKvV6JV.js +17 -0
- package/dist/LogoutView-BrAt0b2J.js +16 -0
- package/dist/LogoutView-D7D3LcfL.cjs +1 -0
- package/dist/angledown-DgMf_Vjv.cjs +2 -0
- package/dist/angledown-igq2UW-u.js +46 -0
- package/dist/badge-2r_VjcsG.js +102 -0
- package/dist/badge-DPwocFJ8.cjs +76 -0
- package/dist/basecomponent-CGerMr_k.cjs +146 -0
- package/dist/basecomponent-CRTLSsqZ.js +1278 -0
- package/dist/baseeditableholder-BEn83TQE.js +126 -0
- package/dist/baseeditableholder-Q1_XheNU.cjs +1 -0
- package/dist/baseicon-Ct8wtBEp.cjs +34 -0
- package/dist/baseicon-DdvhP0UT.js +90 -0
- package/dist/baseinput-B6KUYtrd.js +37 -0
- package/dist/baseinput-D8710HSg.cjs +1 -0
- package/dist/bff/openapi.yaml +7 -0
- package/dist/button-M3QREAcT.cjs +651 -0
- package/dist/button-xI3Wu15Z.js +311 -0
- package/dist/calendar-B8nJAQne.js +2891 -0
- package/dist/calendar-CW9WbT3C.cjs +477 -0
- package/dist/card-BXosepCe.js +57 -0
- package/dist/card-Db30JagR.cjs +32 -0
- package/dist/check-BYTdkWQh.js +46 -0
- package/dist/check-D4kxzECF.cjs +2 -0
- package/dist/checkbox-BIDoCr_X.cjs +142 -0
- package/dist/checkbox-TAWN7HJG.js +323 -0
- package/dist/chevrondown-DLIH6sRy.cjs +2 -0
- package/dist/chevrondown-v3qKRLEG.js +46 -0
- package/dist/chevronleft-DMbyAEgw.cjs +2 -0
- package/dist/chevronleft-dQlHS1Vs.js +46 -0
- package/dist/chevronright-B3qtGWZb.js +46 -0
- package/dist/chevronright-BisalZVe.cjs +2 -0
- package/dist/chip-CBoKYRL5.js +107 -0
- package/dist/chip-CLwNi1p_.cjs +54 -0
- package/dist/chunk-BK-Lzi7j.cjs +1 -0
- package/dist/chunk-DgQ9yJBH.js +17 -0
- package/dist/classnames-4RuV7Ryo.js +19 -0
- package/dist/classnames-DqVQ5xbt.cjs +1 -0
- package/dist/containers.cjs +23 -26
- package/dist/containers.d.ts +0 -116
- package/dist/containers.js +4476 -5541
- package/dist/focustrap-BhHF6zvb.js +558 -0
- package/dist/focustrap-C_v0dFmU.cjs +152 -0
- package/dist/inputnumber-CvuB8fHc.cjs +195 -0
- package/dist/inputnumber-UfGZdwk2.js +983 -0
- package/dist/inputtext-B-iUN1cV.js +108 -0
- package/dist/inputtext-D2Ay4aYr.cjs +79 -0
- package/dist/legalConsent-B3erdrHX.cjs +1 -0
- package/dist/legalConsent-kc_KWyR6.js +66 -0
- package/dist/lib.cjs +1331 -1
- package/dist/lib.d.ts +0 -728
- package/dist/lib.js +22977 -35
- package/dist/locales-4eL4-K7f.js +3168 -0
- package/dist/locales-DzyBr_JU.cjs +5 -0
- package/dist/markdown-Cb6J3R4j.js +28 -0
- package/dist/markdown-Dxqg6Ggd.cjs +1 -0
- package/dist/network-DD_yGfK6.js +2404 -0
- package/dist/network-uPe9-HeS.cjs +9 -0
- package/dist/network.cjs +1 -1
- package/dist/network.d.ts +0 -103
- package/dist/network.js +2 -48
- package/dist/portal-BbZw4bN9.js +265 -0
- package/dist/portal-pIcEXWz1.cjs +2 -0
- package/dist/{index-EDm9-cRY.cjs → progressbar-BPR5tRX7.cjs} +2 -2
- package/dist/progressbar-CzckKCUr.js +96 -0
- package/dist/rating-DsIxcJXU.js +332 -0
- package/dist/rating-HfRWRXuI.cjs +61 -0
- package/dist/ripple-CoTE8rF8.js +501 -0
- package/dist/ripple-UYfqtU0m.cjs +24 -0
- package/dist/router-CR-sxf1q.js +34 -0
- package/dist/router-qXH6kffG.cjs +1 -0
- package/dist/router.cjs +1 -1
- package/dist/router.d.ts +0 -54
- package/dist/router.js +2 -16
- package/dist/select-C05BBcmi.js +2357 -0
- package/dist/select-CZouTpLB.cjs +360 -0
- package/dist/stores-BAbCgIKW.cjs +1 -0
- package/dist/stores-C5CUNzM_.js +203 -0
- package/dist/textarea-DUmMHVXf.cjs +84 -0
- package/dist/textarea-f6-j7m1N.js +131 -0
- package/dist/times--t6-zeg6.js +46 -0
- package/dist/times-GcOHYs3E.cjs +2 -0
- package/dist/timescircle-CHGzPrwL.cjs +2 -0
- package/dist/timescircle-_NJIsGD1.js +48 -0
- package/dist/wefa.css +2 -1
- package/package.json +36 -34
- package/src/components/DashboardComponent/DashboardGroupComponent.vue +1 -1
- package/src/components/NetworkButton/__tests__/ApiMutationButton.test.ts +12 -3
- package/src/components/NetworkButton/__tests__/ApiQueryButton.test.ts +12 -3
- package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +1 -1
- package/src/containers/SideMenuContainer/SideMenuContainer.vue +14 -3
- package/src/containers/helpers.ts +1 -1
- package/src/router/guards.ts +2 -2
- package/src/stores/__tests__/backend/jwt.test.ts +6 -6
- package/src/stores/__tests__/backend/oauth.test.ts +1 -1
- package/src/stores/__tests__/backend/token.test.ts +5 -5
- package/src/stores/backend/schemes/jwt.ts +3 -3
- package/src/stores/backend/schemes/token.ts +6 -7
- package/dist/LegalConsent-DQ7fkgVc.cjs +0 -1
- package/dist/LegalConsent-OLyvuzRY.js +0 -151
- package/dist/LegalDocument-B-nntRW7.cjs +0 -109
- package/dist/LegalDocument-BKebNzIK.js +0 -1330
- package/dist/LoginView-DUPa_PsC.js +0 -24
- package/dist/LoginView-Dihs8n_X.cjs +0 -1
- package/dist/LogoutView-DAh7MrFi.js +0 -19
- package/dist/LogoutView-Fl3nfeJ0.cjs +0 -1
- package/dist/apiClient-BHDjT0dU.js +0 -928
- package/dist/apiClient-Cr0IvG5Z.cjs +0 -1
- package/dist/axios-CZvsFspN.js +0 -1887
- package/dist/axios-DMqeKDaq.cjs +0 -6
- package/dist/index--_rUTrqU.js +0 -1414
- package/dist/index-05ASaj7N.cjs +0 -477
- package/dist/index-B7hJ2pku.cjs +0 -61
- package/dist/index-BHSxFTgZ.js +0 -49
- package/dist/index-BaA_oL1s.cjs +0 -32
- package/dist/index-Be5h48vc.js +0 -3530
- package/dist/index-Becfy0pF.cjs +0 -2
- package/dist/index-CPv4agmV.js +0 -400
- package/dist/index-CgAb-gZi.js +0 -89
- package/dist/index-DFSkcsx-.cjs +0 -943
- package/dist/index-DGUVQqZw.js +0 -208
- package/dist/index-DRozw3P8.js +0 -167
- package/dist/index-DfCQoHSf.cjs +0 -146
- package/dist/index-DkuJMEY1.js +0 -6731
- package/dist/index-Dv6jyKbT.js +0 -47
- package/dist/index-IGN7_cyg.cjs +0 -2
- package/dist/index-lFl6UsTa.js +0 -212
- package/dist/index-lQmq7gxp.cjs +0 -54
- package/dist/index-t0sdL3f2.cjs +0 -84
- package/dist/lib-DZzubLGt.js +0 -26376
- package/dist/lib-lTzD7ltX.cjs +0 -2104
- package/dist/libRoutes-B-H3e9wZ.js +0 -22
- package/dist/libRoutes-Cl3TklhN.cjs +0 -1
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ From the `vue/` directory:
|
|
|
155
155
|
| `npm run lint` / `npm run lint-check` | Auto-fix or check ESLint rules |
|
|
156
156
|
| `npm run format` / `npm run format-check` | Run Prettier in write/check mode |
|
|
157
157
|
|
|
158
|
-
The project
|
|
158
|
+
The project supports Node.js `^20.19.0 || ^22.13.0 || >=24.0.0`. Use the included `.node-version` or `.nvmrc` to align with CI; the repository currently pins `24.9.0`.
|
|
159
159
|
|
|
160
160
|
## Testing and quality gates
|
|
161
161
|
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { i as e } from "./locales-4eL4-K7f.js";
|
|
2
|
+
import { t } from "./button-xI3Wu15Z.js";
|
|
3
|
+
import { t as n } from "./card-BXosepCe.js";
|
|
4
|
+
import { n as r } from "./checkbox-TAWN7HJG.js";
|
|
5
|
+
import { n as i } from "./stores-C5CUNzM_.js";
|
|
6
|
+
import { a } from "./legalConsent-kc_KWyR6.js";
|
|
7
|
+
import { createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, openBlock as f, ref as p, resolveComponent as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
8
|
+
import { useRouter as v } from "vue-router";
|
|
9
|
+
import { createPinia as y } from "pinia";
|
|
10
|
+
//#region node_modules/primevue/usetoast/index.mjs
|
|
11
|
+
var b = Symbol();
|
|
12
|
+
function x() {
|
|
13
|
+
var e = d(b);
|
|
14
|
+
if (!e) throw Error("No PrimeVue Toast provided!");
|
|
15
|
+
return e;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/primevue/useconfirm/index.mjs
|
|
19
|
+
var S = Symbol();
|
|
20
|
+
function C() {
|
|
21
|
+
var e = d(S);
|
|
22
|
+
if (!e) throw Error("No PrimeVue Confirmation provided!");
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/demo/backendStore.ts
|
|
27
|
+
var w = i({ authenticationType: "TOKEN" }, y()), T = { class: "text-center" }, E = { class: "text-2xl font-bold text-gray-900 dark:text-gray-100 mb-2" }, D = { class: "space-y-4" }, O = { class: "text-gray-700 dark:text-gray-300 text-center" }, k = { class: "text-center space-y-2" }, A = { class: "flex items-center gap-3 p-3 border border-gray-200 dark:border-gray-700 rounded-lg" }, j = {
|
|
28
|
+
for: "consent-checkbox",
|
|
29
|
+
class: "text-sm text-gray-700 dark:text-gray-300 cursor-pointer"
|
|
30
|
+
}, M = { class: "flex gap-3 pt-4" }, N = /* @__PURE__ */ u({
|
|
31
|
+
__name: "LegalConsent",
|
|
32
|
+
setup(i) {
|
|
33
|
+
let u = v(), d = u.currentRoute.value.redirectedFrom, y = a(), b = x(), S = C(), N = p(!1), { t: P } = e(), F = async () => {
|
|
34
|
+
try {
|
|
35
|
+
await y.acceptLegalConsent();
|
|
36
|
+
let e = d ? { path: d.path } : "/";
|
|
37
|
+
u.push(e).then(() => {
|
|
38
|
+
b.add({
|
|
39
|
+
severity: "success",
|
|
40
|
+
summary: P("legal_consent.toast_accept_summary"),
|
|
41
|
+
detail: P("legal_consent.toast_accept_detail"),
|
|
42
|
+
life: 5e3
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.error("Failed to accept legal consent:", e), b.add({
|
|
47
|
+
severity: "error",
|
|
48
|
+
summary: P("legal_consent.error_summary"),
|
|
49
|
+
detail: P("legal_consent.error_detail"),
|
|
50
|
+
life: 5e3
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}, I = () => {
|
|
54
|
+
S.require({
|
|
55
|
+
message: P("legal_consent.confirm_message"),
|
|
56
|
+
header: P("legal_consent.confirm_header"),
|
|
57
|
+
icon: "pi pi-exclamation-triangle",
|
|
58
|
+
rejectProps: {
|
|
59
|
+
label: P("legal_consent.reject_label"),
|
|
60
|
+
severity: "secondary",
|
|
61
|
+
outlined: !0
|
|
62
|
+
},
|
|
63
|
+
acceptProps: {
|
|
64
|
+
label: P("legal_consent.accept_label"),
|
|
65
|
+
severity: "danger"
|
|
66
|
+
},
|
|
67
|
+
accept: () => {
|
|
68
|
+
b.add({
|
|
69
|
+
severity: "warn",
|
|
70
|
+
summary: P("legal_consent.disconnected_summary"),
|
|
71
|
+
detail: P("legal_consent.disconnected_detail"),
|
|
72
|
+
life: 5e3
|
|
73
|
+
}), w.logout();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return (e, i) => {
|
|
78
|
+
let a = m("router-link");
|
|
79
|
+
return f(), o("section", null, [l(g(n), { class: "w-full max-w-md" }, {
|
|
80
|
+
title: _(() => [s("div", T, [s("h1", E, h(g(P)("legal_consent.title")), 1)])]),
|
|
81
|
+
content: _(() => [s("div", D, [
|
|
82
|
+
s("p", O, h(g(P)("legal_consent.intro")), 1),
|
|
83
|
+
s("div", k, [s("div", null, [l(a, {
|
|
84
|
+
to: "/terms-of-use",
|
|
85
|
+
class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",
|
|
86
|
+
target: "_blank"
|
|
87
|
+
}, {
|
|
88
|
+
default: _(() => [c(h(g(P)("legal_consent.terms_of_use")), 1)]),
|
|
89
|
+
_: 1
|
|
90
|
+
})]), s("div", null, [l(a, {
|
|
91
|
+
to: "/privacy-notice",
|
|
92
|
+
class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",
|
|
93
|
+
target: "_blank"
|
|
94
|
+
}, {
|
|
95
|
+
default: _(() => [c(h(g(P)("legal_consent.privacy_notice")), 1)]),
|
|
96
|
+
_: 1
|
|
97
|
+
})])]),
|
|
98
|
+
s("div", A, [l(g(r), {
|
|
99
|
+
modelValue: N.value,
|
|
100
|
+
"onUpdate:modelValue": i[0] ||= (e) => N.value = e,
|
|
101
|
+
"input-id": "consent-checkbox",
|
|
102
|
+
binary: !0
|
|
103
|
+
}, null, 8, ["modelValue"]), s("label", j, h(g(P)("legal_consent.checkbox_label")), 1)]),
|
|
104
|
+
s("div", M, [l(g(t), {
|
|
105
|
+
label: g(P)("legal_consent.accept"),
|
|
106
|
+
icon: "pi pi-check",
|
|
107
|
+
disabled: !N.value,
|
|
108
|
+
class: "flex-1",
|
|
109
|
+
severity: "success",
|
|
110
|
+
onClick: F
|
|
111
|
+
}, null, 8, ["label", "disabled"]), l(g(t), {
|
|
112
|
+
label: g(P)("legal_consent.cancel"),
|
|
113
|
+
icon: "pi pi-times",
|
|
114
|
+
severity: "secondary",
|
|
115
|
+
outlined: "",
|
|
116
|
+
class: "flex-1",
|
|
117
|
+
onClick: I
|
|
118
|
+
}, null, 8, ["label"])])
|
|
119
|
+
])]),
|
|
120
|
+
_: 1
|
|
121
|
+
})]);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
//#endregion
|
|
126
|
+
export { N as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-BK-Lzi7j.cjs`);const e=require(`./locales-DzyBr_JU.cjs`),t=require(`./button-M3QREAcT.cjs`),n=require(`./card-Db30JagR.cjs`),r=require(`./checkbox-BIDoCr_X.cjs`),i=require(`./stores-BAbCgIKW.cjs`),a=require(`./legalConsent-B3erdrHX.cjs`);let o=require(`vue`),s=require(`vue-router`),c=require(`pinia`);var l=Symbol();function u(){var e=(0,o.inject)(l);if(!e)throw Error(`No PrimeVue Toast provided!`);return e}var d=Symbol();function f(){var e=(0,o.inject)(d);if(!e)throw Error(`No PrimeVue Confirmation provided!`);return e}var p=(0,c.createPinia)(),m=i.n({authenticationType:`TOKEN`},p),h={class:`text-center`},g={class:`text-2xl font-bold text-gray-900 dark:text-gray-100 mb-2`},_={class:`space-y-4`},v={class:`text-gray-700 dark:text-gray-300 text-center`},y={class:`text-center space-y-2`},b={class:`flex items-center gap-3 p-3 border border-gray-200 dark:border-gray-700 rounded-lg`},x={for:`consent-checkbox`,class:`text-sm text-gray-700 dark:text-gray-300 cursor-pointer`},S={class:`flex gap-3 pt-4`},C=(0,o.defineComponent)({__name:`LegalConsent`,setup(i){let c=(0,s.useRouter)(),l=c.currentRoute.value.redirectedFrom,d=a.a(),p=u(),C=f(),w=(0,o.ref)(!1),{t:T}=e.i(),E=async()=>{try{await d.acceptLegalConsent();let e=l?{path:l.path}:`/`;c.push(e).then(()=>{p.add({severity:`success`,summary:T(`legal_consent.toast_accept_summary`),detail:T(`legal_consent.toast_accept_detail`),life:5e3})})}catch(e){console.error(`Failed to accept legal consent:`,e),p.add({severity:`error`,summary:T(`legal_consent.error_summary`),detail:T(`legal_consent.error_detail`),life:5e3})}},D=()=>{C.require({message:T(`legal_consent.confirm_message`),header:T(`legal_consent.confirm_header`),icon:`pi pi-exclamation-triangle`,rejectProps:{label:T(`legal_consent.reject_label`),severity:`secondary`,outlined:!0},acceptProps:{label:T(`legal_consent.accept_label`),severity:`danger`},accept:()=>{p.add({severity:`warn`,summary:T(`legal_consent.disconnected_summary`),detail:T(`legal_consent.disconnected_detail`),life:5e3}),m.logout()}})};return(e,i)=>{let a=(0,o.resolveComponent)(`router-link`);return(0,o.openBlock)(),(0,o.createElementBlock)(`section`,null,[(0,o.createVNode)((0,o.unref)(n.t),{class:`w-full max-w-md`},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,h,[(0,o.createElementVNode)(`h1`,g,(0,o.toDisplayString)((0,o.unref)(T)(`legal_consent.title`)),1)])]),content:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,_,[(0,o.createElementVNode)(`p`,v,(0,o.toDisplayString)((0,o.unref)(T)(`legal_consent.intro`)),1),(0,o.createElementVNode)(`div`,y,[(0,o.createElementVNode)(`div`,null,[(0,o.createVNode)(a,{to:`/terms-of-use`,class:`text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline`,target:`_blank`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(T)(`legal_consent.terms_of_use`)),1)]),_:1})]),(0,o.createElementVNode)(`div`,null,[(0,o.createVNode)(a,{to:`/privacy-notice`,class:`text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline`,target:`_blank`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(T)(`legal_consent.privacy_notice`)),1)]),_:1})])]),(0,o.createElementVNode)(`div`,b,[(0,o.createVNode)((0,o.unref)(r.n),{modelValue:w.value,"onUpdate:modelValue":i[0]||=e=>w.value=e,"input-id":`consent-checkbox`,binary:!0},null,8,[`modelValue`]),(0,o.createElementVNode)(`label`,x,(0,o.toDisplayString)((0,o.unref)(T)(`legal_consent.checkbox_label`)),1)]),(0,o.createElementVNode)(`div`,S,[(0,o.createVNode)((0,o.unref)(t.t),{label:(0,o.unref)(T)(`legal_consent.accept`),icon:`pi pi-check`,disabled:!w.value,class:`flex-1`,severity:`success`,onClick:E},null,8,[`label`,`disabled`]),(0,o.createVNode)((0,o.unref)(t.t),{label:(0,o.unref)(T)(`legal_consent.cancel`),icon:`pi pi-times`,severity:`secondary`,outlined:``,class:`flex-1`,onClick:D},null,8,[`label`])])])]),_:1})])}}});exports.default=C;
|