@vc-shell/framework 1.0.266 → 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 +18 -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 +19 -8
- package/dist/index.css +1 -1
- package/dist/locales/en.json +5 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +0 -4
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +0 -3
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -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/molecules/vc-pagination/vc-pagination.vue +9 -5
- package/ui/components/organisms/vc-app/vc-app.vue +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
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
|
+
|
|
10
|
+
## [1.0.267](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.266...v1.0.267) (2024-08-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **ui:** vc-pagination show jump if pages > 5 ([1523282](https://github.com/VirtoCommerce/vc-shell/commit/1523282abd92d4af4a346b2529f2437172a22e00))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.266](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.265...v1.0.266) (2024-08-02)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -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
|
@@ -26746,9 +26746,10 @@ const Cae = ["onClick"], Iae = ["disabled", "placeholder"], LI = /* @__PURE__ */
|
|
|
26746
26746
|
currentPage: { default: 1 },
|
|
26747
26747
|
variant: { default: "default" }
|
|
26748
26748
|
},
|
|
26749
|
-
emits: ["itemClick"
|
|
26749
|
+
emits: ["itemClick"],
|
|
26750
26750
|
setup(t, { emit: e }) {
|
|
26751
|
-
const n = t, r = e, i = Q(n.currentPage), a = Q(
|
|
26751
|
+
const n = t, r = e, i = Q(n.currentPage), a = Q(), o = (u) => {
|
|
26752
|
+
if (typeof u > "u" || typeof u == "number" && isNaN(u)) return;
|
|
26752
26753
|
const d = typeof u == "string" ? parseInt(u) : u;
|
|
26753
26754
|
d < 1 || d > n.pages || u === "..." || (i.value = d, r("itemClick", d));
|
|
26754
26755
|
}, s = (u) => {
|
|
@@ -26756,7 +26757,8 @@ const Cae = ["onClick"], Iae = ["disabled", "placeholder"], LI = /* @__PURE__ */
|
|
|
26756
26757
|
f > n.pages ? f = n.pages : f < 1 && (f = 1), a.value = f;
|
|
26757
26758
|
};
|
|
26758
26759
|
function l(u) {
|
|
26759
|
-
|
|
26760
|
+
const d = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
26761
|
+
(!/^\d$/.test(u.key) && !d.includes(u.key) || a.value >= n.pages && u.key !== "Backspace" && u.key !== "Delete") && u.preventDefault();
|
|
26760
26762
|
}
|
|
26761
26763
|
const c = ne(() => {
|
|
26762
26764
|
const u = [];
|
|
@@ -26799,7 +26801,7 @@ const Cae = ["onClick"], Iae = ["disabled", "placeholder"], LI = /* @__PURE__ */
|
|
|
26799
26801
|
icon: "fas fa-arrow-right"
|
|
26800
26802
|
})
|
|
26801
26803
|
], 2),
|
|
26802
|
-
u.variant === "default" ? (B(), K("div", Mae, [
|
|
26804
|
+
u.variant === "default" && u.pages > 5 ? (B(), K("div", Mae, [
|
|
26803
26805
|
se("p", $ae, Oe(u.$t("COMPONENTS.MOLECULES.VC_PAGINATION.JUMP")), 1),
|
|
26804
26806
|
we(R(Ai), {
|
|
26805
26807
|
type: "number",
|
|
@@ -39271,7 +39273,8 @@ function wB() {
|
|
|
39271
39273
|
...e.value,
|
|
39272
39274
|
logo: o.logo,
|
|
39273
39275
|
title: o.title,
|
|
39274
|
-
avatar: o.avatar
|
|
39276
|
+
avatar: o.avatar,
|
|
39277
|
+
role: o.role
|
|
39275
39278
|
};
|
|
39276
39279
|
}
|
|
39277
39280
|
return Nt(async () => {
|
|
@@ -63390,7 +63393,8 @@ const MNe = (t) => function() {
|
|
|
63390
63393
|
version: {},
|
|
63391
63394
|
title: {},
|
|
63392
63395
|
avatar: {},
|
|
63393
|
-
disableMenu: { type: Boolean }
|
|
63396
|
+
disableMenu: { type: Boolean },
|
|
63397
|
+
role: {}
|
|
63394
63398
|
},
|
|
63395
63399
|
setup(t) {
|
|
63396
63400
|
const e = t;
|
|
@@ -63463,7 +63467,10 @@ const MNe = (t) => function() {
|
|
|
63463
63467
|
key: 1,
|
|
63464
63468
|
userDropdown: R(Hm)
|
|
63465
63469
|
}, () => [
|
|
63466
|
-
we(R(Hm), {
|
|
63470
|
+
we(R(Hm), {
|
|
63471
|
+
"avatar-url": y.avatar,
|
|
63472
|
+
role: y.role
|
|
63473
|
+
}, null, 8, ["avatar-url", "role"])
|
|
63467
63474
|
]) : fe("", !0)
|
|
63468
63475
|
])
|
|
63469
63476
|
]),
|
|
@@ -76221,7 +76228,11 @@ var u3e = function() {
|
|
|
76221
76228
|
const cV = {
|
|
76222
76229
|
USER: {
|
|
76223
76230
|
ROLE: {
|
|
76224
|
-
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"
|
|
76225
76236
|
}
|
|
76226
76237
|
},
|
|
76227
76238
|
ACCOUNT: {
|