@vc-shell/framework 1.0.170 → 1.0.172
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 +25 -0
- package/core/composables/useNotifications/index.ts +12 -5
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/framework.js +20946 -19814
- package/dist/index.css +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +29 -0
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -0
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +32 -0
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +4 -4
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -28
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +8 -8
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +52 -42
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/package.json +5 -4
- package/shared/components/change-password/change-password.vue +17 -11
- package/shared/components/common/popup/vc-popup-error.vue +44 -0
- package/shared/components/common/popup/vc-popup-warning.vue +47 -0
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +1 -0
- package/shared/components/popup-handler/composables/usePopup/index.ts +7 -8
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +1 -0
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +21 -2
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +0 -1
- package/ui/components/atoms/vc-container/vc-container.vue +1 -0
- package/ui/components/atoms/vc-icon/index.ts +1 -3
- package/ui/components/molecules/vc-slider/vc-slider.vue +4 -4
- package/ui/components/organisms/vc-blade/vc-blade.vue +4 -5
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +59 -45
- package/ui/components/organisms/vc-popup/vc-popup.vue +173 -141
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +0 -17
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +0 -20
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +0 -1
- package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +0 -31
- package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [1.0.172](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.171...v1.0.172) (2024-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [1.0.171](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.170...v1.0.171) (2024-03-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **core:** fixed old push display after page refresh ([2155a6e](https://github.com/VirtoCommerce/vc-shell/commit/2155a6e8bd6e0bcd3c90d4a4233130302255cf3e))
|
|
11
|
+
* **ui:** user-dropdown-button auto width when disabled ([1249bbf](https://github.com/VirtoCommerce/vc-shell/commit/1249bbfac96943ede03064adbf268b9abba35481))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **dynamic:** add useNotifications and notification component to form blade ([578bb19](https://github.com/VirtoCommerce/vc-shell/commit/578bb192c8edac55054ca5b72d74f0c900e5dadf))
|
|
17
|
+
* updated popups and VcPopup component ([35a2102](https://github.com/VirtoCommerce/vc-shell/commit/35a21022ec7acbf2ab7a5356a9407f74f9c9af13))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* VcPopup now uses 'header', 'content' and 'footer' slots instead of a single 'default' slot. Props have also been changed
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
1
26
|
## [1.0.170](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.169...v1.0.170) (2024-02-27)
|
|
2
27
|
|
|
3
28
|
|
|
@@ -68,26 +68,33 @@ export function useNotifications(notifyType?: string | string[]): INotifications
|
|
|
68
68
|
|
|
69
69
|
async function markAllAsRead() {
|
|
70
70
|
try {
|
|
71
|
-
await notificationsClient.markAllAsRead();
|
|
72
71
|
notifications.value = notifications.value.map((x) => {
|
|
73
72
|
if (x.isNew) {
|
|
74
73
|
x.isNew = false;
|
|
75
74
|
}
|
|
76
75
|
return x;
|
|
77
76
|
});
|
|
77
|
+
pushNotifications.value = pushNotifications.value.map((x) => {
|
|
78
|
+
if (x.isNew) {
|
|
79
|
+
x.isNew = false;
|
|
80
|
+
}
|
|
81
|
+
return x;
|
|
82
|
+
});
|
|
83
|
+
await notificationsClient.markAllAsRead();
|
|
78
84
|
} catch (e) {
|
|
79
85
|
console.error(e);
|
|
80
86
|
throw e;
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
const moduleNotifications = computed(
|
|
85
|
-
(
|
|
90
|
+
const moduleNotifications = computed(() => {
|
|
91
|
+
return (
|
|
86
92
|
pushNotifications.value.filter(
|
|
87
93
|
(item: PushNotification) =>
|
|
88
94
|
item.isNew && !!item.notifyType && !!notifyType && notifyType.includes(item.notifyType),
|
|
89
|
-
) ?? []
|
|
90
|
-
|
|
95
|
+
) ?? []
|
|
96
|
+
);
|
|
97
|
+
});
|
|
91
98
|
|
|
92
99
|
return {
|
|
93
100
|
notifications: computed(() => _.orderBy(notifications.value, ["created"], ["desc"])),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useNotifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAY,WAAW,EAAO,MAAM,KAAK,CAAC;AAKjD,UAAU,cAAc;IACtB,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACxD,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC9D,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5C,aAAa,IAAI,IAAI,CAAC;CACvB;AAKD,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useNotifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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