@vc-shell/framework 1.0.267 → 1.0.268
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/core/composables/useSettings/index.ts +4 -2
- package/dist/core/composables/useSettings/index.d.ts +2 -0
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/framework.js +13 -4
- package/dist/locales/en.json +5 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +12 -0
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-app/vc-app.vue +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.0.268](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.267...v1.0.268) (2024-08-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* vm-763 display user role ([6d98e13](https://github.com/VirtoCommerce/vc-shell/commit/6d98e1364d003156d71db73a12ce2ee529d41eee))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.0.267](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.266...v1.0.267) (2024-08-02)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -9,12 +9,13 @@ interface IUISetting {
|
|
|
9
9
|
logo?: string;
|
|
10
10
|
title?: string;
|
|
11
11
|
avatar?: string;
|
|
12
|
+
role?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
interface IUseSettings {
|
|
15
16
|
readonly uiSettings: Ref<IUISetting>;
|
|
16
17
|
readonly loading: ComputedRef<boolean>;
|
|
17
|
-
applySettings: (args: { logo?: string; title?: string; avatar?: string }) => void;
|
|
18
|
+
applySettings: (args: { logo?: string; title?: string; avatar?: string; role?: string }) => void;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export function useSettings(): IUseSettings {
|
|
@@ -36,12 +37,13 @@ export function useSettings(): IUseSettings {
|
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
39
|
|
|
39
|
-
function applySettings(args: { logo?: string; title?: string; avatar?: string }) {
|
|
40
|
+
function applySettings(args: { logo?: string; title?: string; avatar?: string; role?: string }) {
|
|
40
41
|
uiSettings.value = {
|
|
41
42
|
...uiSettings.value,
|
|
42
43
|
logo: args.logo,
|
|
43
44
|
title: args.title,
|
|
44
45
|
avatar: args.avatar,
|
|
46
|
+
role: args.role,
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -4,6 +4,7 @@ interface IUISetting {
|
|
|
4
4
|
logo?: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
avatar?: string;
|
|
7
|
+
role?: string;
|
|
7
8
|
}
|
|
8
9
|
interface IUseSettings {
|
|
9
10
|
readonly uiSettings: Ref<IUISetting>;
|
|
@@ -12,6 +13,7 @@ interface IUseSettings {
|
|
|
12
13
|
logo?: string;
|
|
13
14
|
title?: string;
|
|
14
15
|
avatar?: string;
|
|
16
|
+
role?: string;
|
|
15
17
|
}) => void;
|
|
16
18
|
}
|
|
17
19
|
export declare function useSettings(): IUseSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,GAAG,EAAO,WAAW,EAAa,MAAM,KAAK,CAAC;AAIzE,UAAU,UAAU;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,GAAG,EAAO,WAAW,EAAa,MAAM,KAAK,CAAC;AAIzE,UAAU,UAAU;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,YAAY;IACpB,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAClG;AAED,wBAAgB,WAAW,IAAI,YAAY,CAwC1C"}
|
package/dist/framework.js
CHANGED
|
@@ -39273,7 +39273,8 @@ function wB() {
|
|
|
39273
39273
|
...e.value,
|
|
39274
39274
|
logo: o.logo,
|
|
39275
39275
|
title: o.title,
|
|
39276
|
-
avatar: o.avatar
|
|
39276
|
+
avatar: o.avatar,
|
|
39277
|
+
role: o.role
|
|
39277
39278
|
};
|
|
39278
39279
|
}
|
|
39279
39280
|
return Nt(async () => {
|
|
@@ -63392,7 +63393,8 @@ const MNe = (t) => function() {
|
|
|
63392
63393
|
version: {},
|
|
63393
63394
|
title: {},
|
|
63394
63395
|
avatar: {},
|
|
63395
|
-
disableMenu: { type: Boolean }
|
|
63396
|
+
disableMenu: { type: Boolean },
|
|
63397
|
+
role: {}
|
|
63396
63398
|
},
|
|
63397
63399
|
setup(t) {
|
|
63398
63400
|
const e = t;
|
|
@@ -63465,7 +63467,10 @@ const MNe = (t) => function() {
|
|
|
63465
63467
|
key: 1,
|
|
63466
63468
|
userDropdown: R(Hm)
|
|
63467
63469
|
}, () => [
|
|
63468
|
-
we(R(Hm), {
|
|
63470
|
+
we(R(Hm), {
|
|
63471
|
+
"avatar-url": y.avatar,
|
|
63472
|
+
role: y.role
|
|
63473
|
+
}, null, 8, ["avatar-url", "role"])
|
|
63469
63474
|
]) : fe("", !0)
|
|
63470
63475
|
])
|
|
63471
63476
|
]),
|
|
@@ -76223,7 +76228,11 @@ var u3e = function() {
|
|
|
76223
76228
|
const cV = {
|
|
76224
76229
|
USER: {
|
|
76225
76230
|
ROLE: {
|
|
76226
|
-
ADMINISTRATOR: "Administrator"
|
|
76231
|
+
ADMINISTRATOR: "Administrator",
|
|
76232
|
+
"vcmp-admin-role": "Admin",
|
|
76233
|
+
"vcmp-agent-role": "Agent",
|
|
76234
|
+
"vcmp-operator-role": "Operator",
|
|
76235
|
+
"vcmp-owner-role": "Owner"
|
|
76227
76236
|
}
|
|
76228
76237
|
},
|
|
76229
76238
|
ACCOUNT: {
|
package/dist/locales/en.json
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
"SHELL": {
|
|
3
3
|
"USER": {
|
|
4
4
|
"ROLE": {
|
|
5
|
-
"ADMINISTRATOR": "Administrator"
|
|
5
|
+
"ADMINISTRATOR": "Administrator",
|
|
6
|
+
"vcmp-admin-role": "Admin",
|
|
7
|
+
"vcmp-agent-role": "Agent",
|
|
8
|
+
"vcmp-operator-role": "Operator",
|
|
9
|
+
"vcmp-owner-role": "Owner"
|
|
6
10
|
}
|
|
7
11
|
},
|
|
8
12
|
"ACCOUNT": {
|
|
@@ -23,6 +23,9 @@ declare const _default: {
|
|
|
23
23
|
disableMenu: {
|
|
24
24
|
type: import("vue").PropType<boolean>;
|
|
25
25
|
};
|
|
26
|
+
role: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
};
|
|
26
29
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
27
30
|
isReady: {
|
|
28
31
|
type: import("vue").PropType<boolean>;
|
|
@@ -43,6 +46,9 @@ declare const _default: {
|
|
|
43
46
|
disableMenu: {
|
|
44
47
|
type: import("vue").PropType<boolean>;
|
|
45
48
|
};
|
|
49
|
+
role: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
};
|
|
46
52
|
}>>, {}, true, {}, {}, {
|
|
47
53
|
P: {};
|
|
48
54
|
B: {};
|
|
@@ -70,6 +76,9 @@ declare const _default: {
|
|
|
70
76
|
disableMenu: {
|
|
71
77
|
type: import("vue").PropType<boolean>;
|
|
72
78
|
};
|
|
79
|
+
role: {
|
|
80
|
+
type: import("vue").PropType<string>;
|
|
81
|
+
};
|
|
73
82
|
}>>, {}, {}, {}, {}, {}>;
|
|
74
83
|
__isFragment?: undefined;
|
|
75
84
|
__isTeleport?: undefined;
|
|
@@ -94,6 +103,9 @@ declare const _default: {
|
|
|
94
103
|
disableMenu: {
|
|
95
104
|
type: import("vue").PropType<boolean>;
|
|
96
105
|
};
|
|
106
|
+
role: {
|
|
107
|
+
type: import("vue").PropType<string>;
|
|
108
|
+
};
|
|
97
109
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
98
110
|
$slots: Readonly<{
|
|
99
111
|
"app-switcher": void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-app.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"vc-app.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK3B,wBAmB+B;AAE/B,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,KAAK,CAgBxC,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OAAO,KAAK,CAYtD,CAAC;AAUH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,OAAO,KAAK,CAsBlD,CAAC;AAUH,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,OAAO,KAAK,CAYzD,CAAC;AAUH,eAAO,MAAM,iCAAiC,EAAE,OAAO,CAAC,OAAO,KAAK,CAqBlE,CAAC;AAUH,eAAO,MAAM,+BAA+B,EAAE,OAAO,CAAC,OAAO,KAAK,CAqBhE,CAAC;AAWH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,OAAO,KAAK,CAqB7D,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface Props {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
avatar?: string;
|
|
7
7
|
disableMenu?: boolean;
|
|
8
|
+
role?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, Readonly<{
|
|
10
11
|
"app-switcher": void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-app.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.vue.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"vc-app.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.vue.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2cD,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.268",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/dompurify": "^3.0.5",
|
|
63
63
|
"@types/quill": "^2.0.14",
|
|
64
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
65
|
-
"@vc-shell/config-generator": "^1.0.
|
|
66
|
-
"@vc-shell/ts-config": "^1.0.
|
|
64
|
+
"@vc-shell/api-client-generator": "^1.0.268",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.268",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.268",
|
|
67
67
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
68
68
|
"cypress-signalr-mock": "^1.5.0",
|
|
69
69
|
"sass": "^1.69.6",
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
name="toolbar:user-dropdown"
|
|
61
61
|
:user-dropdown="UserDropdownButton"
|
|
62
62
|
>
|
|
63
|
-
<UserDropdownButton
|
|
63
|
+
<UserDropdownButton
|
|
64
|
+
:avatar-url="avatar"
|
|
65
|
+
:role="role"
|
|
66
|
+
/>
|
|
64
67
|
</slot>
|
|
65
68
|
</template>
|
|
66
69
|
</slot>
|
|
@@ -122,6 +125,7 @@ export interface Props {
|
|
|
122
125
|
title?: string;
|
|
123
126
|
avatar?: string;
|
|
124
127
|
disableMenu?: boolean;
|
|
128
|
+
role?: string;
|
|
125
129
|
}
|
|
126
130
|
|
|
127
131
|
defineOptions({
|