@vc-shell/framework 1.0.236 → 1.0.238

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/core/composables/useSettings/index.ts +4 -2
  3. package/core/directives/loading/index.ts +8 -1
  4. package/core/directives/loading/styles.css +2 -3
  5. package/dist/core/composables/useSettings/index.d.ts +2 -0
  6. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  7. package/dist/core/directives/loading/index.d.ts.map +1 -1
  8. package/dist/framework.js +9852 -9837
  9. package/dist/index.css +1 -1
  10. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  11. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +24 -8
  12. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
  13. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  14. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +24 -8
  15. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
  16. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +24 -8
  17. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  18. package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +12 -0
  19. package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
  20. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -0
  21. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  22. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  23. package/package.json +4 -4
  24. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
  25. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +4 -3
  26. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +3 -1
  27. package/ui/components/molecules/vc-input/vc-input.vue +24 -8
  28. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -1
  29. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +3 -3
  30. package/ui/components/organisms/vc-app/vc-app.vue +2 -1
  31. package/ui/components/organisms/vc-table/vc-table.vue +12 -7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## [1.0.238](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.237...v1.0.238) (2024-06-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **navigation:** show router pages via RouterView only if it's not blades ([59d41a0](https://github.com/VirtoCommerce/vc-shell/commit/59d41a0059101350b230a7c07144b1641546f1f8))
7
+
8
+
9
+ ### Features
10
+
11
+ * improve loading directive with dynamic z-index support ([c3c8c63](https://github.com/VirtoCommerce/vc-shell/commit/c3c8c63fa48facf640e182405938bb83f5b5087b))
12
+ * **ui:** extend vc-input slots with focus prop ([e0d42b7](https://github.com/VirtoCommerce/vc-shell/commit/e0d42b790571ca8de220c857b67cf143e3d2d024))
13
+ * **ui:** update vc-breadcrumbs-item title style and truncate long titles ([9bd8729](https://github.com/VirtoCommerce/vc-shell/commit/9bd8729161a0e3188ae57acf10e95a301abbe8bb))
14
+ * **ui:** vm-1411 ([25a9096](https://github.com/VirtoCommerce/vc-shell/commit/25a909603c33dc0c0a05f76681a13eba46f3bab4))
15
+
16
+
17
+
18
+ ## [1.0.237](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.236...v1.0.237) (2024-06-17)
19
+
20
+
21
+ ### Features
22
+
23
+ * vm-1348 avatar for user ([9caf962](https://github.com/VirtoCommerce/vc-shell/commit/9caf962bd881611744ea1849155475b897049df6))
24
+
25
+
26
+
1
27
  ## [1.0.236](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.235...v1.0.236) (2024-06-17)
2
28
 
3
29
 
@@ -8,12 +8,13 @@ interface IUISetting {
8
8
  contrast_logo?: string;
9
9
  logo?: string;
10
10
  title?: string;
11
+ avatar?: string;
11
12
  }
12
13
 
13
14
  interface IUseSettings {
14
15
  readonly uiSettings: Ref<IUISetting>;
15
16
  readonly loading: ComputedRef<boolean>;
16
- applySettings: (args: { logo?: string; title?: string }) => void;
17
+ applySettings: (args: { logo?: string; title?: string; avatar?: string }) => void;
17
18
  }
18
19
 
19
20
  export function useSettings(): IUseSettings {
@@ -35,11 +36,12 @@ export function useSettings(): IUseSettings {
35
36
  }
36
37
  });
37
38
 
38
- function applySettings(args: { logo?: string; title?: string }) {
39
+ function applySettings(args: { logo?: string; title?: string; avatar?: string }) {
39
40
  uiSettings.value = {
40
41
  ...uiSettings.value,
41
42
  logo: args.logo,
42
43
  title: args.title,
44
+ avatar: args.avatar,
43
45
  };
44
46
  }
45
47
 
@@ -2,5 +2,12 @@ import { DirectiveBinding } from "vue";
2
2
  import "./styles.css";
3
3
 
4
4
  export const loading = (el: HTMLElement, binding: DirectiveBinding) => {
5
- el.classList[binding.value ? "add" : "remove"]("v-loading");
5
+ const zIndex = binding.arg ? parseInt(binding.arg, 10) : 9999;
6
+ if (binding.value) {
7
+ el.classList.add("v-loading");
8
+ el.style.setProperty("--v-loading-z-index", `${zIndex}`);
9
+ } else {
10
+ el.classList.remove("v-loading");
11
+ el.style.removeProperty("--v-loading-z-index");
12
+ }
6
13
  };
@@ -1,13 +1,12 @@
1
1
  .v-loading {
2
2
  position: relative;
3
- /* min-height: 30px; */
4
3
  cursor: wait;
5
4
  }
6
5
 
7
6
  .v-loading::before {
8
7
  content: "";
9
8
  position: absolute;
10
- z-index: 9998;
9
+ z-index: var(--v-loading-z-index, 9998); /* Default to 9998 if not set */
11
10
  top: 0;
12
11
  right: 0;
13
12
  bottom: 0;
@@ -19,7 +18,7 @@
19
18
  .v-loading::after {
20
19
  content: "";
21
20
  position: absolute;
22
- z-index: 9999;
21
+ z-index: calc(var(--v-loading-z-index, 9999) + 1); /* Default to 9999 + 1 if not set */
23
22
  width: 30px;
24
23
  height: 30px;
25
24
  border: 4px solid #319ed4;
@@ -3,6 +3,7 @@ interface IUISetting {
3
3
  contrast_logo?: string;
4
4
  logo?: string;
5
5
  title?: string;
6
+ avatar?: string;
6
7
  }
7
8
  interface IUseSettings {
8
9
  readonly uiSettings: Ref<IUISetting>;
@@ -10,6 +11,7 @@ interface IUseSettings {
10
11
  applySettings: (args: {
11
12
  logo?: string;
12
13
  title?: string;
14
+ avatar?: string;
13
15
  }) => void;
14
16
  }
15
17
  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;CAChB;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,CAAA;KAAE,KAAK,IAAI,CAAC;CAClE;AAED,wBAAgB,WAAW,IAAI,YAAY,CAsC1C"}
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;CACjB;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,CAAA;KAAE,KAAK,IAAI,CAAC;CACnF;AAED,wBAAgB,WAAW,IAAI,YAAY,CAuC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/directives/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,OAAO,OAAQ,WAAW,WAAW,gBAAgB,SAEjE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/directives/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,OAAO,OAAQ,WAAW,WAAW,gBAAgB,SASjE,CAAC"}