@vc-shell/framework 1.0.320 → 1.0.321
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 +9 -0
- package/dist/{azuread-DkJALKeY.js → azuread-CAS6-LZ8.js} +2 -2
- package/dist/{external-provider-BfhXfWct.js → external-provider-GN6-W0Vp.js} +1 -1
- package/dist/{external-provider.vue_vue_type_script_setup_true_lang-DnfCYH2u.js → external-provider.vue_vue_type_script_setup_true_lang-BbfyjhC6.js} +1 -1
- package/dist/external-providers-4Exx3Utp.js +4 -0
- package/dist/framework.js +1 -1
- package/dist/{index-BFdnt4xk.js → index-BEfb-PEM.js} +1 -1
- package/dist/{index-a7HiHYrT.js → index-BLlEMPR3.js} +1 -1
- package/dist/{index-Dkh5IMF7.js → index-BPhdi5Ej.js} +1 -1
- package/dist/{index-tIxFQ1Ps.js → index-BVoz_bAG.js} +1 -1
- package/dist/{index-B93I3Agz.js → index-Bkjwqgxw.js} +1 -1
- package/dist/{index-B1dqCnPS.js → index-ByTxBRrq.js} +1 -1
- package/dist/{index-DMRj0aJ8.js → index-C22X_X8w.js} +1 -1
- package/dist/{index-Bf_KENtH.js → index-C8bm-AN_.js} +1 -1
- package/dist/{index-C1ubuqpz.js → index-CTzDbvMY.js} +1 -1
- package/dist/{index-Cp7h8UBT.js → index-DT2i8Joc.js} +1 -1
- package/dist/{index-Rnb_pp-E.js → index-DWszlgBe.js} +1 -1
- package/dist/{index-DY4Xi8u8.js → index-VATZ4UqK.js} +1 -1
- package/dist/{index-BXSEbnel.js → index-WToNZGUu.js} +1 -1
- package/dist/{index-CuqIbypI.js → index-ae9GsWP0.js} +264 -260
- package/dist/{index-kvc5Uc7s.js → index-geG-GZqw.js} +1 -1
- package/dist/{index-Byl_hvr6.js → index-k-CWh9ED.js} +1 -1
- package/dist/{index-p2XOxNI9.js → index-vt-o0w7Q.js} +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +13 -12
- package/dist/external-providers-Dd3QYSAe.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as te, c as ae, f as re, s as ne, t as i, L as ie, d as se, E as oe, e as le, g as ce, h as de, j as me } from "./index-
|
|
1
|
+
import { i as te, c as ae, f as re, s as ne, t as i, L as ie, d as se, E as oe, e as le, g as ce, h as de, j as me } from "./index-ae9GsWP0.js";
|
|
2
2
|
const ue = 36, X = 1, fe = 2, b = 3, C = 4, pe = 5, ge = 6, he = 7, _e = 8, be = 9, ve = 10, ye = 11, ke = 12, xe = 13, Oe = 14, we = 15, Qe = 16, Ce = 17, I = 18, Se = 19, A = 20, E = 21, R = 22, Pe = 23, qe = 24;
|
|
3
3
|
function P(t) {
|
|
4
4
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as r, t as O, e, L as s, i as X, c as $, k as l, l as Y, f as S, m as o, d as t } from "./index-
|
|
1
|
+
import { s as r, t as O, e, L as s, i as X, c as $, k as l, l as Y, f as S, m as o, d as t } from "./index-ae9GsWP0.js";
|
|
2
2
|
const Z = r({
|
|
3
3
|
null: O.null,
|
|
4
4
|
instanceof: O.operatorKeyword,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Y, s as S, t as Q, e as l, L as o, i as n, c as i, k as s, l as W, f as c, m as f, d as x } from "./index-
|
|
1
|
+
import { E as Y, s as S, t as Q, e as l, L as o, i as n, c as i, k as s, l as W, f as c, m as f, d as x } from "./index-ae9GsWP0.js";
|
|
2
2
|
const r = 1, Z = 2, V = 3, u = 82, p = 76, w = 117, q = 85, T = 97, y = 122, z = 65, b = 90, j = 95, a = 48, P = 34, v = 40, U = 41, d = 32, t = 62, _ = new Y((O) => {
|
|
3
3
|
if (O.next == p || O.next == q ? O.advance() : O.next == w && (O.advance(), O.next == a + 8 && O.advance()), O.next != u || (O.advance(), O.next != P)) return;
|
|
4
4
|
O.advance();
|
package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../shared/components/blade-navigation/composables/useBladeNavigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,SAAS,EAA0B,WAAW,EAAS,MAAM,KAAK,CAAC;AAIxH,OAAO,EACL,uBAAuB,EAEvB,iBAAiB,EACjB,eAAe,EACf,WAAW,EAGZ,MAAM,YAAY,CAAC;AAEpB,OAAO,EAGL,UAAU,EACV,WAAW,EACX,eAAe,EACf,wBAAwB,EAGzB,MAAM,aAAa,CAAC;AAIrB,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAG9C,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3C,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACpF,SAAS,EAAE,CAAC,KAAK,SAAS,SAAS,EACjC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,EACnF,WAAW,CAAC,EAAE,OAAO,KAClB,OAAO,CAAC,IAAI,GAAG,iBAAiB,CAAC,CAAC;IACvC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,YAAY,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACzF,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC;IAChE,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,wBAAwB,CAAC;IAC/D,aAAa,EAAE,CAAC,EAAE,EAAE,uBAAuB,KACvC,OAAO,CACH;QACE,IAAI,EAAE,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,EAAE,WAAW,CAAC;KACrB,GACD,SAAS,CACZ,GACD,SAAS,CAAC;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CACvE;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../shared/components/blade-navigation/composables/useBladeNavigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,SAAS,EAA0B,WAAW,EAAS,MAAM,KAAK,CAAC;AAIxH,OAAO,EACL,uBAAuB,EAEvB,iBAAiB,EACjB,eAAe,EACf,WAAW,EAGZ,MAAM,YAAY,CAAC;AAEpB,OAAO,EAGL,UAAU,EACV,WAAW,EACX,eAAe,EACf,wBAAwB,EAGzB,MAAM,aAAa,CAAC;AAIrB,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAG9C,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3C,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACpF,SAAS,EAAE,CAAC,KAAK,SAAS,SAAS,EACjC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,EACnF,WAAW,CAAC,EAAE,OAAO,KAClB,OAAO,CAAC,IAAI,GAAG,iBAAiB,CAAC,CAAC;IACvC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,YAAY,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACzF,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC;IAChE,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,wBAAwB,CAAC;IAC/D,aAAa,EAAE,CAAC,EAAE,EAAE,uBAAuB,KACvC,OAAO,CACH;QACE,IAAI,EAAE,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,EAAE,WAAW,CAAC;KACrB,GACD,SAAS,CACZ,GACD,SAAS,CAAC;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CACvE;AA6OD,wBAAgB,kBAAkB,IAAI,mBAAmB,CA6WxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.321",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
63
|
-
"@vc-shell/config-generator": "^1.0.
|
|
64
|
-
"@vc-shell/ts-config": "^1.0.
|
|
62
|
+
"@vc-shell/api-client-generator": "^1.0.321",
|
|
63
|
+
"@vc-shell/config-generator": "^1.0.321",
|
|
64
|
+
"@vc-shell/ts-config": "^1.0.321",
|
|
65
65
|
"@vitejs/plugin-vue": "5.0.3",
|
|
66
66
|
"cypress-signalr-mock": "^1.5.0",
|
|
67
67
|
"sass": "^1.69.6",
|
|
@@ -244,12 +244,6 @@ const useBladeNavigationSingleton = createSharedComposable(() => {
|
|
|
244
244
|
for (let i = 0; i < children.length; i++) {
|
|
245
245
|
const element = children[i];
|
|
246
246
|
|
|
247
|
-
const position = navigationInstance.blades.value.findIndex((x) => x.type.name === element.type.name);
|
|
248
|
-
|
|
249
|
-
if (navigationInstance.blades.value[position - 1]) {
|
|
250
|
-
navigationInstance.blades.value[position - 1].props.param = undefined;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
247
|
if (element.props?.navigation?.onBeforeClose) {
|
|
254
248
|
const result = await element.props.navigation.onBeforeClose();
|
|
255
249
|
|
|
@@ -263,9 +257,19 @@ const useBladeNavigationSingleton = createSharedComposable(() => {
|
|
|
263
257
|
}
|
|
264
258
|
|
|
265
259
|
if (!isPrevented) {
|
|
266
|
-
|
|
267
|
-
|
|
260
|
+
const prevBlade = navigationInstance.blades.value[index - 1];
|
|
261
|
+
|
|
262
|
+
if (index > 0 && prevBlade?.props?.navigation?.isVisible === false) {
|
|
263
|
+
prevBlade.props.navigation.isVisible = true;
|
|
268
264
|
}
|
|
265
|
+
|
|
266
|
+
if (
|
|
267
|
+
prevBlade &&
|
|
268
|
+
toValue(prevBlade.props?.param) === toValue(navigationInstance.blades.value[index]?.props?.param)
|
|
269
|
+
) {
|
|
270
|
+
prevBlade.props.param = undefined;
|
|
271
|
+
}
|
|
272
|
+
|
|
269
273
|
navigationInstance.blades.value.splice(index);
|
|
270
274
|
}
|
|
271
275
|
|
|
@@ -547,10 +551,7 @@ export function useBladeNavigation(): IUseBladeNavigation {
|
|
|
547
551
|
reactifyObject({
|
|
548
552
|
blade: registeredWorkspaceComponent as unknown as BladeInstanceConstructor,
|
|
549
553
|
param: computed(() => {
|
|
550
|
-
if (
|
|
551
|
-
navigationInstance.blades.value.length > 1 &&
|
|
552
|
-
registeredRouteComponent?.type.moduleUid === registeredWorkspaceComponent.type.moduleUid
|
|
553
|
-
) {
|
|
554
|
+
if (registeredRouteComponent?.type.moduleUid === registeredWorkspaceComponent.type.moduleUid) {
|
|
554
555
|
return param;
|
|
555
556
|
}
|
|
556
557
|
return undefined;
|