@vc-shell/framework 1.1.61 → 1.1.63
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/CHANGELOG.md +8 -0
- package/core/composables/useLanguages/index.ts +16 -73
- package/core/services/index.ts +1 -0
- package/core/services/language-service.ts +88 -0
- package/core/services/menu-service.ts +9 -20
- package/core/types/index.ts +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +4 -15
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +1 -0
- package/dist/core/services/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts +15 -0
- package/dist/core/services/language-service.d.ts.map +1 -0
- package/dist/core/services/menu-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +12621 -9109
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
- package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
- package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
- package/dist/vendor-core-js-DFA7rceR.js +1206 -0
- package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
- package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
- package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
- package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
- package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
- package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
- package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
- package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
- package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
- package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
- package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
- package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
- package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
- package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
- package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
- package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
- package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
- package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
- package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
- package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
- package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
- package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
- package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
- package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
- package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
- package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
- package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
- package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
- package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
- package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
- package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
- package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
- package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
- package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
- package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
- package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
- package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
- package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
- package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
- package/package.json +5 -5
- package/shared/components/language-selector/language-selector.vue +16 -8
- package/shared/components/theme-selector/theme-selector.vue +5 -10
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
- package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
- package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
- package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
- package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
- package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
- package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
- package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
- package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as j, t as x, f as Le, c as $,
|
|
1
|
+
import { n as j, t as x, f as Le, c as $, j as tt, m as At, a as Z, i as Ae, e as G, b as Ie, o as Pt, k as Ct, l as be, h as z, p as K, q as Ke, r as Rt, s as Dt, v as nt, w as le, x as rt, y as ie, z as at, A as ye, B as Je, C as Lt, D as It, g as ot, E as Mt, u as Nt, F as Pe, G as Vt, H as $t, I as lt, J as ge, K as Wt, L as Ut, M as Bt, N as Oe, O as jt, P as Ht, Q as zt, R as qt, S as Cn, T as ft, U as vt, V as Rn, W as Dn, X as Ln, Y as dt, Z as In, _ as Ue, $ as mt, d as Mn, a0 as Nn, a1 as Vn, a2 as $n, a3 as Wn, a4 as Un, a5 as Bn, a6 as jn, a7 as Hn, a8 as zn, a9 as qn, aa as Gn, ab as Yn, ac as Xn, ad as Kn, ae as Jn, af as Qn, ag as Zn, ah as Be, ai as er, aj as tr, ak as nr, al as rr, am as ar, an as pt, ao as or, ap as lr, aq as ur, ar as sr, as as ir, at as cr, au as fr, av as vr, aw as dr, ax as mr, ay as pr, az as hr, aA as yr, aB as gr, aC as wr, aD as br, aE as Sr, aF as Er, aG as xr, aH as Tr, aI as _r, aJ as kr, aK as Or, aL as Fr, aM as Ar, aN as Pr, aO as Cr, aP as Rr, aQ as Dr } from "./vendor-vueuse-shared-B_uDJJ6V.js";
|
|
2
2
|
import { ref as g, getCurrentInstance as Me, onMounted as Gt, computed as O, watch as R, isRef as oe, shallowRef as B, watchEffect as we, inject as je, defineComponent as Qe, customRef as Lr, onUpdated as Yt, shallowReactive as Ce, reactive as q, getCurrentScope as Ir, readonly as te, isReadonly as Ze, onBeforeUpdate as Mr, nextTick as Se, h as ht, TransitionGroup as Nr, markRaw as Vr, Fragment as $r, unref as Wr } from "vue";
|
|
3
3
|
function yt(e, t, n) {
|
|
4
4
|
let a;
|
|
@@ -300,7 +300,8 @@ function Xt() {
|
|
|
300
300
|
}, t), e;
|
|
301
301
|
}
|
|
302
302
|
function V(e) {
|
|
303
|
-
|
|
303
|
+
const t = Xt();
|
|
304
|
+
return O(() => (t.value, !!e()));
|
|
304
305
|
}
|
|
305
306
|
function ce(e, t, n = {}) {
|
|
306
307
|
const { window: a = D, ...o } = n;
|
|
@@ -824,7 +825,7 @@ const da = {
|
|
|
824
825
|
function Ea(e, t = {}) {
|
|
825
826
|
function n(c, f) {
|
|
826
827
|
let d = x(e[x(c)]);
|
|
827
|
-
return f != null && (d =
|
|
828
|
+
return f != null && (d = Wt(d, f)), typeof d == "number" && (d = `${d}px`), d;
|
|
828
829
|
}
|
|
829
830
|
const { window: a = D, strategy: o = "min-width" } = t;
|
|
830
831
|
function r(c) {
|
|
@@ -949,7 +950,7 @@ function Re(e, t = {}) {
|
|
|
949
950
|
let r;
|
|
950
951
|
const l = typeof e == "string" ? { name: e } : e, u = g(), s = () => {
|
|
951
952
|
r && (u.value = r.state);
|
|
952
|
-
}, i =
|
|
953
|
+
}, i = Lt(async () => {
|
|
953
954
|
if (o.value) {
|
|
954
955
|
if (!r)
|
|
955
956
|
try {
|
|
@@ -1423,7 +1424,7 @@ function it(e, t = {}) {
|
|
|
1423
1424
|
pause: l,
|
|
1424
1425
|
resume: u,
|
|
1425
1426
|
isActive: s
|
|
1426
|
-
} =
|
|
1427
|
+
} = It(o), {
|
|
1427
1428
|
ignoreUpdates: i,
|
|
1428
1429
|
ignorePrevAsyncUpdates: c,
|
|
1429
1430
|
stop: f
|
|
@@ -1465,7 +1466,7 @@ function it(e, t = {}) {
|
|
|
1465
1466
|
};
|
|
1466
1467
|
}
|
|
1467
1468
|
function Na(e, t = {}) {
|
|
1468
|
-
const n = t.debounce ?
|
|
1469
|
+
const n = t.debounce ? Rt(t.debounce) : void 0;
|
|
1469
1470
|
return {
|
|
1470
1471
|
...it(e, { ...t, eventFilter: n })
|
|
1471
1472
|
};
|
|
@@ -1473,7 +1474,7 @@ function Na(e, t = {}) {
|
|
|
1473
1474
|
function Va(e = {}) {
|
|
1474
1475
|
const {
|
|
1475
1476
|
window: t = D,
|
|
1476
|
-
eventFilter: n =
|
|
1477
|
+
eventFilter: n = Dt
|
|
1477
1478
|
} = e, a = g({ x: null, y: null, z: null }), o = g({ alpha: null, beta: null, gamma: null }), r = g(0), l = g({
|
|
1478
1479
|
x: null,
|
|
1479
1480
|
y: null,
|
|
@@ -1984,7 +1985,7 @@ const Za = {
|
|
|
1984
1985
|
text: "text/plain"
|
|
1985
1986
|
};
|
|
1986
1987
|
function De(e) {
|
|
1987
|
-
return e &&
|
|
1988
|
+
return e && Ut(e, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch", "updateDataOnError");
|
|
1988
1989
|
}
|
|
1989
1990
|
const eo = /^(?:[a-z][a-z\d+\-.]*:)?\/\//i;
|
|
1990
1991
|
function to(e) {
|
|
@@ -2226,7 +2227,7 @@ function oo(e = {}) {
|
|
|
2226
2227
|
...e,
|
|
2227
2228
|
...s
|
|
2228
2229
|
};
|
|
2229
|
-
r.multiple = i.multiple, r.accept = i.accept, r.webkitdirectory = i.directory,
|
|
2230
|
+
r.multiple = i.multiple, r.accept = i.accept, r.webkitdirectory = i.directory, Bt(i, "capture") && (r.capture = i.capture), i.reset && l(), r.click();
|
|
2230
2231
|
};
|
|
2231
2232
|
return {
|
|
2232
2233
|
files: te(n),
|
|
@@ -2693,7 +2694,7 @@ function fn(e, t = {}) {
|
|
|
2693
2694
|
return _(
|
|
2694
2695
|
e,
|
|
2695
2696
|
"scroll",
|
|
2696
|
-
n ?
|
|
2697
|
+
n ? Nt(C, n, !0, !1) : C,
|
|
2697
2698
|
u
|
|
2698
2699
|
), G(() => {
|
|
2699
2700
|
try {
|
|
@@ -3330,7 +3331,7 @@ function Uo(e = {}) {
|
|
|
3330
3331
|
} = e, n = g(!1), a = g(e.initialValue || {});
|
|
3331
3332
|
Object.assign(a.value, gn, a.value);
|
|
3332
3333
|
const o = (r) => {
|
|
3333
|
-
n.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(r.pointerType)) && (a.value =
|
|
3334
|
+
n.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(r.pointerType)) && (a.value = jt(r, Wo, !1));
|
|
3334
3335
|
};
|
|
3335
3336
|
if (t) {
|
|
3336
3337
|
const r = { passive: !0 };
|
|
@@ -3508,7 +3509,7 @@ function Ko(e, t = j, n = {}) {
|
|
|
3508
3509
|
const y = f.querySelector(`script[src="${x(e)}"]`);
|
|
3509
3510
|
y && f.head.removeChild(y);
|
|
3510
3511
|
};
|
|
3511
|
-
return a && !o && G(h), o ||
|
|
3512
|
+
return a && !o && G(h), o || Mt(p), { scriptTag: v, load: h, unload: p };
|
|
3512
3513
|
}
|
|
3513
3514
|
function wn(e) {
|
|
3514
3515
|
const t = window.getComputedStyle(e);
|
|
@@ -3783,7 +3784,7 @@ function ll(e, t, n, a = {}) {
|
|
|
3783
3784
|
v(k);
|
|
3784
3785
|
}
|
|
3785
3786
|
}
|
|
3786
|
-
return y(), f && u && _(f, "storage", (b) => Promise.resolve().then(() => y(b))), n &&
|
|
3787
|
+
return y(), f && u && _(f, "storage", (b) => Promise.resolve().then(() => y(b))), n && Vt(
|
|
3787
3788
|
h,
|
|
3788
3789
|
async () => {
|
|
3789
3790
|
try {
|
|
@@ -4096,7 +4097,7 @@ function xl(e = null, t = {}) {
|
|
|
4096
4097
|
r && r.title !== s.value && (s.value = c(r.title));
|
|
4097
4098
|
},
|
|
4098
4099
|
{ childList: !0 }
|
|
4099
|
-
),
|
|
4100
|
+
), $t(() => {
|
|
4100
4101
|
if (l) {
|
|
4101
4102
|
const f = l(u, s.value || "");
|
|
4102
4103
|
f != null && r && (r.title = f);
|
|
@@ -4338,7 +4339,7 @@ function En(e, t, n, a = {}) {
|
|
|
4338
4339
|
} = a, v = Me(), m = n || v?.emit || ((o = v?.$emit) == null ? void 0 : o.bind(v)) || ((l = (r = v?.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(v?.proxy));
|
|
4339
4340
|
let w = i;
|
|
4340
4341
|
t || (t = "modelValue"), w = w || `update:${t.toString()}`;
|
|
4341
|
-
const h = (b) => u ? typeof u == "function" ? u(b) : Ee(b) : b, p = () =>
|
|
4342
|
+
const h = (b) => u ? typeof u == "function" ? u(b) : Ee(b) : b, p = () => Ht(e[t]) ? h(e[t]) : f, y = (b) => {
|
|
4342
4343
|
d ? d(b) && m(w, b) : m(w, b);
|
|
4343
4344
|
};
|
|
4344
4345
|
if (s) {
|
|
@@ -4665,7 +4666,7 @@ function Vl(e, t = {}) {
|
|
|
4665
4666
|
}
|
|
4666
4667
|
u && (Z && _("beforeunload", () => T()), $(T));
|
|
4667
4668
|
const P = () => {
|
|
4668
|
-
!Z && !
|
|
4669
|
+
!Z && !zt || (T(), w = !1, h = 0, S());
|
|
4669
4670
|
};
|
|
4670
4671
|
return l && P(), R(d, P), {
|
|
4671
4672
|
data: i,
|
|
@@ -4843,7 +4844,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4843
4844
|
breakpointsVuetify: ha,
|
|
4844
4845
|
breakpointsVuetifyV2: Qt,
|
|
4845
4846
|
breakpointsVuetifyV3: pa,
|
|
4846
|
-
bypassFilter:
|
|
4847
|
+
bypassFilter: Dt,
|
|
4847
4848
|
camelize: qt,
|
|
4848
4849
|
clamp: Oe,
|
|
4849
4850
|
cloneFnJSON: Ee,
|
|
@@ -4851,7 +4852,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4851
4852
|
computedEager: vt,
|
|
4852
4853
|
computedInject: Ur,
|
|
4853
4854
|
computedWithControl: Ke,
|
|
4854
|
-
containsProp:
|
|
4855
|
+
containsProp: Ut,
|
|
4855
4856
|
controlledComputed: Ke,
|
|
4856
4857
|
controlledRef: Rn,
|
|
4857
4858
|
createEventHook: K,
|
|
@@ -4862,11 +4863,11 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4862
4863
|
createReactiveFn: dt,
|
|
4863
4864
|
createReusableTemplate: Br,
|
|
4864
4865
|
createSharedComposable: In,
|
|
4865
|
-
createSingletonPromise:
|
|
4866
|
+
createSingletonPromise: Lt,
|
|
4866
4867
|
createTemplatePromise: Hr,
|
|
4867
4868
|
createUnrefFn: zr,
|
|
4868
4869
|
customStorageEventName: et,
|
|
4869
|
-
debounceFilter:
|
|
4870
|
+
debounceFilter: Rt,
|
|
4870
4871
|
debouncedRef: Ue,
|
|
4871
4872
|
debouncedWatch: mt,
|
|
4872
4873
|
defaultDocument: J,
|
|
@@ -4882,19 +4883,19 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4882
4883
|
get: $n,
|
|
4883
4884
|
getLifeCycleTarget: Wn,
|
|
4884
4885
|
getSSRHandler: Ve,
|
|
4885
|
-
hasOwn:
|
|
4886
|
+
hasOwn: Bt,
|
|
4886
4887
|
hyphenate: Un,
|
|
4887
4888
|
identity: tt,
|
|
4888
4889
|
ignorableWatch: ye,
|
|
4889
|
-
increaseWithUnit:
|
|
4890
|
+
increaseWithUnit: Wt,
|
|
4890
4891
|
injectLocal: Bn,
|
|
4891
4892
|
invoke: jn,
|
|
4892
4893
|
isClient: Z,
|
|
4893
|
-
isDef:
|
|
4894
|
+
isDef: Ht,
|
|
4894
4895
|
isDefined: Hn,
|
|
4895
4896
|
isIOS: Ae,
|
|
4896
4897
|
isObject: Ie,
|
|
4897
|
-
isWorker:
|
|
4898
|
+
isWorker: zt,
|
|
4898
4899
|
makeDestructurable: At,
|
|
4899
4900
|
mapGamepadToXbox360Controller: fo,
|
|
4900
4901
|
noop: j,
|
|
@@ -4903,7 +4904,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4903
4904
|
now: qn,
|
|
4904
4905
|
objectEntries: Ct,
|
|
4905
4906
|
objectOmit: Pt,
|
|
4906
|
-
objectPick:
|
|
4907
|
+
objectPick: jt,
|
|
4907
4908
|
onClickOutside: Gr,
|
|
4908
4909
|
onKeyDown: Xr,
|
|
4909
4910
|
onKeyPressed: Kr,
|
|
@@ -4911,7 +4912,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4911
4912
|
onKeyUp: Jr,
|
|
4912
4913
|
onLongPress: ea,
|
|
4913
4914
|
onStartTyping: ra,
|
|
4914
|
-
pausableFilter:
|
|
4915
|
+
pausableFilter: It,
|
|
4915
4916
|
pausableWatch: Pe,
|
|
4916
4917
|
promiseTimeout: lt,
|
|
4917
4918
|
provideLocal: Gn,
|
|
@@ -4942,10 +4943,10 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4942
4943
|
toRefs: nt,
|
|
4943
4944
|
toValue: x,
|
|
4944
4945
|
tryOnBeforeMount: lr,
|
|
4945
|
-
tryOnBeforeUnmount:
|
|
4946
|
+
tryOnBeforeUnmount: $t,
|
|
4946
4947
|
tryOnMounted: G,
|
|
4947
4948
|
tryOnScopeDispose: $,
|
|
4948
|
-
tryOnUnmounted:
|
|
4949
|
+
tryOnUnmounted: Mt,
|
|
4949
4950
|
unrefElement: N,
|
|
4950
4951
|
until: ge,
|
|
4951
4952
|
useActiveElement: Kt,
|
|
@@ -5076,7 +5077,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5076
5077
|
useTextSelection: ml,
|
|
5077
5078
|
useTextareaAutosize: pl,
|
|
5078
5079
|
useThrottle: Be,
|
|
5079
|
-
useThrottleFn:
|
|
5080
|
+
useThrottleFn: Nt,
|
|
5080
5081
|
useThrottledRefHistory: hl,
|
|
5081
5082
|
useTimeAgo: bl,
|
|
5082
5083
|
useTimeout: xr,
|
|
@@ -5112,7 +5113,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5112
5113
|
watchPausable: Pe,
|
|
5113
5114
|
watchThrottled: pt,
|
|
5114
5115
|
watchTriggerable: Rr,
|
|
5115
|
-
watchWithFilter:
|
|
5116
|
+
watchWithFilter: Vt,
|
|
5116
5117
|
whenever: Dr
|
|
5117
5118
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5118
5119
|
export {
|
|
@@ -1060,23 +1060,23 @@ function fn(e, t, n) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
export {
|
|
1062
1062
|
on as $,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1063
|
+
Be as A,
|
|
1064
|
+
Et as B,
|
|
1065
|
+
vt as C,
|
|
1066
|
+
be as D,
|
|
1067
|
+
kt as E,
|
|
1068
|
+
G as F,
|
|
1069
|
+
j as G,
|
|
1070
|
+
xt as H,
|
|
1071
|
+
Y as I,
|
|
1072
|
+
Nt as J,
|
|
1073
|
+
ht as K,
|
|
1074
|
+
Ae as L,
|
|
1075
|
+
it as M,
|
|
1076
|
+
at as N,
|
|
1077
|
+
yt as O,
|
|
1078
|
+
nt as P,
|
|
1079
|
+
tt as Q,
|
|
1080
1080
|
dt as R,
|
|
1081
1081
|
ot as S,
|
|
1082
1082
|
St as T,
|
|
@@ -1144,26 +1144,26 @@ export {
|
|
|
1144
1144
|
ye as b,
|
|
1145
1145
|
T as c,
|
|
1146
1146
|
lt as d,
|
|
1147
|
-
|
|
1147
|
+
Ct as e,
|
|
1148
1148
|
rt as f,
|
|
1149
|
-
|
|
1150
|
-
|
|
1149
|
+
Me as g,
|
|
1150
|
+
K as h,
|
|
1151
1151
|
ct as i,
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1152
|
+
mt as j,
|
|
1153
|
+
wt as k,
|
|
1154
|
+
Re as l,
|
|
1155
1155
|
Ke as m,
|
|
1156
1156
|
E as n,
|
|
1157
1157
|
gt as o,
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1158
|
+
Ge as p,
|
|
1159
|
+
Ye as q,
|
|
1160
|
+
q as r,
|
|
1161
|
+
U as s,
|
|
1162
1162
|
i as t,
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1163
|
+
Pe as u,
|
|
1164
|
+
It as v,
|
|
1165
|
+
je as w,
|
|
1166
|
+
Z as x,
|
|
1167
|
+
ge as y,
|
|
1168
|
+
N as z
|
|
1169
1169
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"vee-validate": "^4.12.4",
|
|
76
76
|
"vue": "^3.5.13",
|
|
77
77
|
"vue-currency-input": "^3.0.5",
|
|
78
|
-
"vue-i18n": "^11.1.
|
|
78
|
+
"vue-i18n": "^11.1.11",
|
|
79
79
|
"vue-router": "^4.2.5",
|
|
80
80
|
"vue3-application-insights": "^1.1.0",
|
|
81
81
|
"vue3-touch-events": "^4.1.8",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
86
86
|
"@laynezh/vite-plugin-lib-assets": "v1.1.0",
|
|
87
87
|
"@types/dompurify": "^3.0.5",
|
|
88
|
-
"@vc-shell/api-client-generator": "^1.1.
|
|
89
|
-
"@vc-shell/config-generator": "^1.1.
|
|
90
|
-
"@vc-shell/ts-config": "^1.1.
|
|
88
|
+
"@vc-shell/api-client-generator": "^1.1.63",
|
|
89
|
+
"@vc-shell/config-generator": "^1.1.63",
|
|
90
|
+
"@vc-shell/ts-config": "^1.1.63",
|
|
91
91
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
92
92
|
"@vue/test-utils": "^2.4.5",
|
|
93
93
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
<template #trigger>
|
|
4
4
|
<div class="vc-language-selector__trigger">
|
|
5
5
|
<VcImage
|
|
6
|
+
v-if="currLocaleFlag"
|
|
6
7
|
:src="currLocaleFlag"
|
|
7
|
-
empty-icon="material-language"
|
|
8
8
|
class="vc-language-selector__flag"
|
|
9
9
|
/>
|
|
10
|
+
<VcIcon
|
|
11
|
+
v-else
|
|
12
|
+
icon="material-language"
|
|
13
|
+
class="vc-language-selector__flag"
|
|
14
|
+
size="m"
|
|
15
|
+
/>
|
|
10
16
|
<span class="vc-language-selector__title">
|
|
11
17
|
{{ $t("COMPONENTS.LANGUAGE_SELECTOR.TITLE") }}
|
|
12
18
|
</span>
|
|
@@ -17,13 +23,13 @@
|
|
|
17
23
|
<GenericDropdown
|
|
18
24
|
:opened="opened"
|
|
19
25
|
:items="languageItems"
|
|
20
|
-
:is-item-active="(lang) => lang.lang ===
|
|
26
|
+
:is-item-active="(lang) => lang.lang === currentLocale"
|
|
21
27
|
@item-click="handleLanguageSelect"
|
|
22
28
|
>
|
|
23
29
|
<template #item="{ item: lang, click }">
|
|
24
30
|
<div
|
|
25
31
|
class="vc-language-selector__item"
|
|
26
|
-
:class="{ 'vc-language-selector__item--active': lang.lang ===
|
|
32
|
+
:class="{ 'vc-language-selector__item--active': lang.lang === currentLocale }"
|
|
27
33
|
@click="click"
|
|
28
34
|
>
|
|
29
35
|
<VcImage
|
|
@@ -54,7 +60,7 @@ interface ILanguage {
|
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
const { availableLocales, getLocaleMessage, locale } = useI18n({ useScope: "global" });
|
|
57
|
-
const { setLocale, getFlag } = useLanguages();
|
|
63
|
+
const { setLocale, getFlag, currentLocale } = useLanguages();
|
|
58
64
|
|
|
59
65
|
const opened = ref(false);
|
|
60
66
|
const currLocaleFlag = ref<string>();
|
|
@@ -63,8 +69,8 @@ const languageItems: ILanguage[] = availableLocales
|
|
|
63
69
|
.map((locale: string) => ({
|
|
64
70
|
lang: locale,
|
|
65
71
|
title: (getLocaleMessage(locale) as { language_name: string }).language_name,
|
|
66
|
-
clickHandler(lang: string) {
|
|
67
|
-
setLocale(lang);
|
|
72
|
+
async clickHandler(lang: string) {
|
|
73
|
+
await setLocale(lang);
|
|
68
74
|
},
|
|
69
75
|
flag: "",
|
|
70
76
|
}))
|
|
@@ -77,12 +83,14 @@ const handleLanguageSelect = (lang: ILanguage) => {
|
|
|
77
83
|
opened.value = false;
|
|
78
84
|
};
|
|
79
85
|
|
|
86
|
+
// Watch both i18n locale and currentLocale from language service
|
|
80
87
|
watch(
|
|
81
|
-
[() => languageItems, () => locale.value],
|
|
88
|
+
[() => languageItems, () => locale.value, () => currentLocale.value],
|
|
82
89
|
async ([newValLangItem]) => {
|
|
83
90
|
for (const lang of newValLangItem) {
|
|
84
91
|
lang.flag = await getFlag(lang.lang);
|
|
85
|
-
|
|
92
|
+
// Use currentLocale from language service for consistency
|
|
93
|
+
if (lang.lang === currentLocale.value) {
|
|
86
94
|
currLocaleFlag.value = lang.flag;
|
|
87
95
|
}
|
|
88
96
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<script lang="ts" setup>
|
|
37
37
|
import { GenericDropdown } from "../generic-dropdown";
|
|
38
38
|
import { useTheme } from "../../../core/composables/useTheme";
|
|
39
|
-
import { ref
|
|
39
|
+
import { ref } from "vue";
|
|
40
40
|
import { notification } from "..";
|
|
41
41
|
import { SettingsMenuItem } from "../settings-menu-item";
|
|
42
42
|
import { VcIcon } from "../../../ui/components";
|
|
@@ -47,16 +47,11 @@ const opened = ref(false);
|
|
|
47
47
|
const handleThemeSelect = (theme: { key: string; name: string }) => {
|
|
48
48
|
setTheme(theme.key);
|
|
49
49
|
opened.value = false;
|
|
50
|
-
};
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
notification(newLocalizedName);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
);
|
|
51
|
+
if (currentLocalizedName.value) {
|
|
52
|
+
notification(currentLocalizedName.value);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
60
55
|
</script>
|
|
61
56
|
|
|
62
57
|
<style lang="scss">
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<template
|
|
8
8
|
v-if="!expand"
|
|
9
9
|
#tooltip
|
|
10
|
-
>{{ title }}</template
|
|
10
|
+
>{{ $t(title ?? "") }}</template
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
13
|
class="vc-app-menu-link__item"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
class="vc-app-menu-link__title"
|
|
44
44
|
>
|
|
45
45
|
<div class="vc-app-menu-link__title-truncate">
|
|
46
|
-
{{ title }}
|
|
46
|
+
{{ $t(title ?? "") }}
|
|
47
47
|
</div>
|
|
48
48
|
<div
|
|
49
49
|
v-if="(!!children?.length && expand) || false"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<template
|
|
77
77
|
v-if="!expand"
|
|
78
78
|
#tooltip
|
|
79
|
-
>{{ nested.title }}</template
|
|
79
|
+
>{{ $t(nested.title) }}</template
|
|
80
80
|
>
|
|
81
81
|
<router-link
|
|
82
82
|
v-if="$hasAccess(nested.permissions!) && nested.url"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
'vc-app-menu-link__child-item-title--no-icon': !nested.icon,
|
|
127
127
|
}"
|
|
128
128
|
>
|
|
129
|
-
{{ nested.title }}
|
|
129
|
+
{{ $t(nested.title) }}
|
|
130
130
|
</p>
|
|
131
131
|
</Transition>
|
|
132
132
|
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
-
}
|
|
4
|
-
var r, t;
|
|
5
|
-
function u() {
|
|
6
|
-
return t || (t = 1, r = {
|
|
7
|
-
trueFunc: function() {
|
|
8
|
-
return !0;
|
|
9
|
-
},
|
|
10
|
-
falseFunc: function() {
|
|
11
|
-
return !1;
|
|
12
|
-
}
|
|
13
|
-
}), r;
|
|
14
|
-
}
|
|
15
|
-
var a = /* @__PURE__ */ u();
|
|
16
|
-
const n = /* @__PURE__ */ o(a);
|
|
17
|
-
export {
|
|
18
|
-
n as a,
|
|
19
|
-
a as b,
|
|
20
|
-
o as g
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|