@vc-shell/framework 1.0.132 → 1.0.134

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 (131) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/core/composables/useMenuService/index.ts +9 -10
  3. package/core/composables/useUser/index.ts +2 -2
  4. package/core/interceptors/index.ts +13 -9
  5. package/core/plugins/modularity/index.ts +2 -6
  6. package/core/types/index.ts +29 -6
  7. package/dist/core/composables/useMenuService/index.d.ts +2 -7
  8. package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
  9. package/dist/core/interceptors/index.d.ts.map +1 -1
  10. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  11. package/dist/core/types/index.d.ts +27 -6
  12. package/dist/core/types/index.d.ts.map +1 -1
  13. package/dist/framework.js +8093 -8251
  14. package/dist/index.css +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
  17. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -1
  18. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +1 -1
  19. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  20. package/dist/shared/components/blade-navigation/types/index.d.ts +1 -21
  21. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  22. package/dist/shared/components/change-password/change-password.vue.d.ts +1 -1
  23. package/dist/shared/components/change-password/index.d.ts +1 -1
  24. package/dist/shared/components/error-interceptor/interceptor.d.ts +1 -1
  25. package/dist/shared/components/language-selector/index.d.ts +1 -1
  26. package/dist/shared/components/language-selector/index.d.ts.map +1 -1
  27. package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -1
  28. package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +1 -1
  29. package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
  30. package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -1
  31. package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +1 -1
  32. package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
  33. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  34. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
  35. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -1
  36. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +1 -1
  37. package/dist/shared/components/user-dropdown-button/index.d.ts +8 -8
  38. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +1 -1
  39. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -1
  40. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -1
  41. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
  42. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +1 -1
  43. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +1 -1
  44. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +1 -1
  45. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +1 -1
  46. package/dist/shared/modules/dynamic/types/index.d.ts +1 -2
  47. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  48. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  49. package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
  50. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -1
  51. package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
  52. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  53. package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
  54. package/dist/tsconfig.tsbuildinfo +1 -1
  55. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  56. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
  57. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +1 -1
  58. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
  59. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +1 -1
  60. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +1 -1
  61. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +1 -1
  62. package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -1
  63. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  64. package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
  65. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +1 -1
  66. package/dist/ui/components/atoms/vc-info-row/index.d.ts +1 -1
  67. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +1 -1
  68. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +1 -1
  69. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +1 -1
  70. package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
  71. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
  72. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  73. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +1 -1
  74. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +1 -1
  75. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
  76. package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
  77. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
  78. package/dist/ui/components/atoms/vc-video/index.d.ts +1 -1
  79. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +1 -1
  80. package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
  81. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
  82. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +1 -1
  83. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
  84. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
  85. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +1 -1
  86. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +1 -1
  87. package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +1 -1
  88. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +1 -1
  89. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
  90. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +1 -1
  91. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
  92. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  93. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
  94. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  95. package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
  96. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  97. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  98. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +1 -1
  99. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
  100. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +1 -1
  101. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +1 -1
  102. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  103. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  104. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  105. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +1 -1
  106. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +17 -17
  107. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +1 -1
  108. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  109. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +1 -1
  110. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  111. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
  112. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  113. package/dist/ui/components/organisms/vc-gallery/index.d.ts +1 -1
  114. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
  115. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
  116. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +1 -1
  117. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +1 -1
  118. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  119. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
  120. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +1 -1
  121. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  122. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +1 -1
  123. package/package.json +19 -20
  124. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +3 -0
  125. package/shared/components/blade-navigation/types/index.ts +1 -22
  126. package/shared/modules/dynamic/types/index.ts +1 -2
  127. package/ui/components/molecules/vc-notification/vc-notification.vue +34 -8
  128. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +3 -2
  129. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +2 -0
  130. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +1 -1
  131. package/ui/components/organisms/vc-app/vc-app.vue +1 -1
@@ -5,7 +5,7 @@ export interface Props {
5
5
  theme?: "light" | "dark";
6
6
  title?: string;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, Readonly<{
8
+ 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<{
9
9
  "app-switcher": void;
10
10
  toolbar: void;
11
11
  "toolbar:prepend": void;
@@ -16,30 +16,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  name: {
17
17
  type: import("vue").PropType<string>;
18
18
  };
19
- menuItems: {
20
- type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
21
- default: () => never[];
22
- };
23
19
  avatarUrl: {
24
20
  type: import("vue").PropType<string>;
25
21
  };
26
22
  role: {
27
23
  type: import("vue").PropType<string>;
28
24
  };
29
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
- name: {
31
- type: import("vue").PropType<string>;
32
- };
33
25
  menuItems: {
34
26
  type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
35
27
  default: () => never[];
36
28
  };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
+ name: {
31
+ type: import("vue").PropType<string>;
32
+ };
37
33
  avatarUrl: {
38
34
  type: import("vue").PropType<string>;
39
35
  };
40
36
  role: {
41
37
  type: import("vue").PropType<string>;
42
38
  };
39
+ menuItems: {
40
+ type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
41
+ default: () => never[];
42
+ };
43
43
  }>>, {
44
44
  menuItems: import("../../../../core/types").BladeMenu<import("vue").Component>[];
45
45
  }, {}>;
@@ -56,30 +56,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
56
56
  name: {
57
57
  type: import("vue").PropType<string>;
58
58
  };
59
- menuItems: {
60
- type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
61
- default: () => never[];
62
- };
63
59
  avatarUrl: {
64
60
  type: import("vue").PropType<string>;
65
61
  };
66
62
  role: {
67
63
  type: import("vue").PropType<string>;
68
64
  };
69
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
- name: {
71
- type: import("vue").PropType<string>;
72
- };
73
65
  menuItems: {
74
66
  type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
75
67
  default: () => never[];
76
68
  };
69
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
+ name: {
71
+ type: import("vue").PropType<string>;
72
+ };
77
73
  avatarUrl: {
78
74
  type: import("vue").PropType<string>;
79
75
  };
80
76
  role: {
81
77
  type: import("vue").PropType<string>;
82
78
  };
79
+ menuItems: {
80
+ type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
81
+ default: () => never[];
82
+ };
83
83
  }>>, {
84
84
  menuItems: import("../../../../core/types").BladeMenu<import("vue").Component>[];
85
85
  }, {}>;
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
10
10
  close: (...args: any[]) => void;
11
11
  expand: (...args: any[]) => void;
12
12
  collapse: (...args: any[]) => void;
13
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
14
14
  onClose?: ((...args: any[]) => any) | undefined;
15
15
  onExpand?: ((...args: any[]) => any) | undefined;
16
16
  onCollapse?: ((...args: any[]) => any) | undefined;
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  clickHandler: undefined;
21
21
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
22
  click: () => void;
23
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
24
24
  disabled: boolean;
25
25
  isExpanded: boolean;
26
26
  icon: string;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
6
  items: () => never[];
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
8
  items: () => never[];
9
9
  }>>>, {
10
10
  items: IBladeToolbar<import("vue").ComponentPublicInstance>[];
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  close: () => void;
24
24
  expand: () => void;
25
25
  collapse: () => void;
26
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
27
  width: string;
28
28
  closable: boolean;
29
29
  expandable: boolean;
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
23
  edit: (...args: any[]) => void;
24
24
  remove: (...args: any[]) => void;
25
25
  preview: (...args: any[]) => void;
26
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
27
  image: () => ICommonAsset;
28
28
  readonly: boolean;
29
29
  actions: () => {
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  index: number;
12
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  close: () => void;
14
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
15
  images: () => never[];
16
16
  index: number;
17
17
  }>>> & {
@@ -60,7 +60,7 @@ export declare const VcGallery: import("vue").DefineComponent<{
60
60
  sort: (sorted: import("../../../..").ICommonAsset[]) => void;
61
61
  edit: (image: import("../../../..").ICommonAsset) => void;
62
62
  remove: (image: import("../../../..").ICommonAsset) => void;
63
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
63
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
64
  disabled: {
65
65
  type: import("vue").PropType<boolean>;
66
66
  };
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
41
41
  sort: (sorted: ICommonAsset[]) => void;
42
42
  edit: (image: ICommonAsset) => void;
43
43
  remove: (image: ICommonAsset) => void;
44
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
44
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
45
45
  images: () => never[];
46
46
  tooltipIcon: string;
47
47
  uploadIcon: string;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  }
6
6
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
7
  title: string;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
9
  title: string;
10
10
  }>>>, {
11
11
  title: string;
@@ -3,7 +3,7 @@ export interface Emits {
3
3
  }
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  close: () => void;
6
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
7
7
  onClose?: (() => any) | undefined;
8
8
  }, {}, {}>, {
9
9
  default?(_: {}): any;
@@ -5,7 +5,7 @@ export interface Emits {
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  close: () => void;
7
7
  confirm: () => void;
8
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
9
9
  onClose?: (() => any) | undefined;
10
10
  onConfirm?: (() => any) | undefined;
11
11
  }, {}, {}>, {
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  type: PropType<"default" | "warning" | "success" | "error">;
17
17
  default: string;
18
18
  };
19
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "confirm")[], "close" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "confirm")[], "close" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  title: {
21
21
  type: StringConstructor;
22
22
  default: string;
@@ -3,7 +3,7 @@ export interface Props {
3
3
  cell: ITableColumns;
4
4
  item: Record<string, unknown>;
5
5
  }
6
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
6
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -7,7 +7,7 @@ export interface Emits {
7
7
  }
8
8
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  change: (value: ITableColumns) => void;
10
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
11
11
  onChange?: ((value: ITableColumns) => any) | undefined;
12
12
  }, {}, {}>;
13
13
  export default _default;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
6
  label: string;
7
7
  value: number;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
9
  label: string;
10
10
  value: number;
11
11
  }>>>, {
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  title: undefined;
9
9
  counter: number;
10
10
  parentExpanded: boolean;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
12
  title: undefined;
13
13
  counter: number;
14
14
  parentExpanded: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -28,40 +28,39 @@
28
28
  "type-check": "vue-tsc --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@floating-ui/vue": "^1.0.0",
31
+ "@floating-ui/vue": "^1.0.2",
32
32
  "@microsoft/signalr": "^8.0.0",
33
- "@vee-validate/i18n": "^4.9.4",
34
- "@vee-validate/rules": "^4.11.8",
33
+ "@vee-validate/i18n": "^4.12.4",
34
+ "@vee-validate/rules": "^4.12.4",
35
35
  "@vueup/vue-quill": "^1.2.0",
36
- "@vueuse/components": "^10.7.0",
37
- "@vueuse/core": "^10.7.0",
38
- "@vueuse/integrations": "^10.7.0",
39
- "ace-builds": "^1.32.0",
40
- "core-js": "^3.33.3",
41
- "moment": "^2.29.4",
36
+ "@vueuse/components": "^10.7.1",
37
+ "@vueuse/core": "^10.7.1",
38
+ "@vueuse/integrations": "^10.7.1",
39
+ "ace-builds": "^1.32.2",
40
+ "core-js": "^3.35.0",
41
+ "moment": "^2.30.1",
42
42
  "normalize.css": "^8.0.1",
43
43
  "quill": "^1.3.7",
44
44
  "quill-image-uploader": "^1.3.0",
45
45
  "swiper": "^6.8.4",
46
- "vee-validate": "^4.11.8",
47
- "vue": "3.3.13",
46
+ "vee-validate": "^4.12.4",
47
+ "vue": "3.4.0",
48
48
  "vue-currency-input": "^3.0.5",
49
49
  "vue-i18n": "^9.8.0",
50
50
  "vue-router": "^4.2.5",
51
51
  "vue3-ace-editor": "^2.2.4",
52
- "vue3-touch-events": "^4.1.8",
53
52
  "whatwg-fetch": "^3.6.19"
54
53
  },
55
54
  "devDependencies": {
56
- "@vc-shell/api-client-generator": "^1.0.132",
57
- "@vc-shell/config-generator": "^1.0.132",
58
- "@vc-shell/ts-config": "^1.0.132",
59
- "@vitejs/plugin-vue": "^4.5.1",
60
- "sass": "^1.69.5",
55
+ "@vc-shell/api-client-generator": "^1.0.134",
56
+ "@vc-shell/config-generator": "^1.0.134",
57
+ "@vc-shell/ts-config": "^1.0.134",
58
+ "@vitejs/plugin-vue": "^5.0.0",
59
+ "sass": "^1.69.6",
61
60
  "typescript": "5.3.3",
62
61
  "vite": "4.5.0",
63
- "vue-component-type-helpers": "^1.8.24",
64
- "vue-tsc": "^1.8.25"
62
+ "vue-component-type-helpers": "^1.8.27",
63
+ "vue-tsc": "^1.8.27"
65
64
  },
66
65
  "publishConfig": {
67
66
  "access": "public",
@@ -84,6 +84,9 @@ export function useBladeNavigation(): IUseBladeNavigation {
84
84
  components: {
85
85
  default: createdComponent,
86
86
  },
87
+ meta: {
88
+ permissions: createdComponent.type?.permissions,
89
+ },
87
90
  });
88
91
 
89
92
  return await router.push({ path: createdComponent.type?.url as string });
@@ -11,6 +11,7 @@ import {
11
11
  ComponentPublicInstance,
12
12
  } from "vue";
13
13
  import { ComponentPublicInstanceConstructor } from "../../../utilities/vueUtils";
14
+ import { MenuItemConfig } from "../../../../core/types";
14
15
 
15
16
  export type CoreBladeComponentProps = {
16
17
  expanded?: boolean;
@@ -24,28 +25,6 @@ export type CoreDynamicBladeComponentProps = {
24
25
  composables?: any;
25
26
  };
26
27
 
27
- export interface MenuItemConfig {
28
- id?: string;
29
- /**
30
- * Menu item title.
31
- */
32
- title: string;
33
- /**
34
- * Menu item icon.
35
- */
36
- icon: string;
37
- /**
38
- * Menu item group. Is used to group menu items with it's provided name.
39
- *
40
- * If the path is not specified, the menu item is added to the root of the menu.
41
- */
42
- group?: string;
43
- /**
44
- * Position priority.
45
- */
46
- priority: number;
47
- }
48
-
49
28
  export type CoreBladeAdditionalSettings = {
50
29
  url?: `/${string}`;
51
30
  permissions?: string | string[];
@@ -8,9 +8,8 @@ import {
8
8
  VcStatus,
9
9
  VcVideo,
10
10
  } from "./../../../../ui/components";
11
- import { ITableColumns, IValidationRules } from "../../../../core/types";
11
+ import { ITableColumns, IValidationRules, MenuItemConfig } from "../../../../core/types";
12
12
  import type { ComponentProps } from "./../../../utilities/vueUtils";
13
- import { MenuItemConfig } from "../../../components/blade-navigation/types";
14
13
 
15
14
  export type KeysOfUnion<T> = T extends T ? keyof T : never;
16
15
 
@@ -6,14 +6,18 @@
6
6
  @mouseenter="onMouseEnter"
7
7
  @mouseleave="onMouseLeave"
8
8
  >
9
- <VcIcon
10
- :icon="types[type ?? 'default']?.icon"
11
- :style="{ color: types[type ?? 'default']?.color }"
12
- size="l"
13
- class="tw-mr-2"
14
- ></VcIcon>
15
- <div class="tw-text-[color:var(--notification-content-color)] tw-whitespace-pre-line">
16
- {{ content }}
9
+ <div class="tw-flex tw-flex-row tw-items-center">
10
+ <VcIcon
11
+ :icon="types[type ?? 'default']?.icon"
12
+ :style="{ color: types[type ?? 'default']?.color }"
13
+ size="l"
14
+ class="tw-mr-2"
15
+ ></VcIcon>
16
+ <div
17
+ class="vc-notification__content tw-text-[color:var(--notification-content-color)] tw-whitespace-pre-line tw-overflow-auto tw-max-h-[100px]"
18
+ >
19
+ {{ content }}
20
+ </div>
17
21
  </div>
18
22
  <VcIcon
19
23
  icon="fas fa-times"
@@ -125,6 +129,11 @@ function onMouseLeave() {
125
129
  --notification-error: #ef796f;
126
130
  --notification-success: #87b563;
127
131
  --notification-info: #bdd1df;
132
+
133
+ --notification-scroll-color: #e1eff9;
134
+ --notification-scroll-color-hover: #cce4f5;
135
+ --notification-scroll-width: 8px;
136
+ --notification-scroll-shadow: 0 3px 2px rgba(0, 0, 0, 0.1) inset, 0 -3px 2px rgba(0, 0, 0, 0.1) inset;
128
137
  }
129
138
 
130
139
  .vc-notification {
@@ -133,5 +142,22 @@ function onMouseLeave() {
133
142
  .vc-app_mobile {
134
143
  @apply tw-max-w-[80%];
135
144
  }
145
+
146
+ &__content {
147
+ &::-webkit-scrollbar {
148
+ @apply tw-w-[var(--notification-scroll-width)] tw-bg-transparent;
149
+ }
150
+
151
+ &::-webkit-scrollbar-track {
152
+ @apply tw-bg-transparent;
153
+ }
154
+
155
+ &::-webkit-scrollbar-thumb {
156
+ @apply tw-bg-[color:var(--notification-scroll-color)]
157
+ tw-rounded-[calc(var(--notification-scroll-width)/2)]
158
+ tw-overflow-x-hidden
159
+ hover:tw-bg-[color:var(--notification-scroll-color-hover)];
160
+ }
161
+ }
136
162
  }
137
163
  </style>
@@ -48,14 +48,15 @@
48
48
  :key="i"
49
49
  >
50
50
  <router-link
51
- :to="nested.url"
51
+ v-if="$hasAccess(nested.permissions!)"
52
+ :to="nested.url!"
52
53
  custom
53
54
  >
54
55
  <div
55
56
  :key="i"
56
57
  :class="[
57
58
  {
58
- 'vc-app-menu-item__child-item_active': isActive(nested.url),
59
+ 'vc-app-menu-item__child-item_active': isActive(nested.url!),
59
60
  },
60
61
  'vc-app-menu-item__child-item',
61
62
  ]"
@@ -6,6 +6,7 @@
6
6
  custom
7
7
  >
8
8
  <vc-app-menu-link
9
+ v-if="isVisible"
9
10
  :sticky="sticky"
10
11
  :icon="icon ?? ''"
11
12
  :title="title ?? ''"
@@ -16,6 +17,7 @@
16
17
  </template>
17
18
  <template v-else>
18
19
  <vc-app-menu-link
20
+ v-if="isVisible"
19
21
  :children="children"
20
22
  :sticky="sticky"
21
23
  :icon="icon ?? ''"
@@ -41,7 +41,7 @@
41
41
  <VcAppMenuItem
42
42
  v-for="item in menuItems"
43
43
  :key="item?.id"
44
- :is-visible="true"
44
+ :is-visible="$hasAccess(item.permissions!)"
45
45
  :url="item.url"
46
46
  :icon="item.icon"
47
47
  :title="item.title as string"
@@ -156,7 +156,7 @@ const onMenuItemClick = function (item: MenuItem) {
156
156
  },
157
157
  true,
158
158
  );
159
- } else {
159
+ } else if (!item.routeId && item.url) {
160
160
  router.push(item.url);
161
161
  }
162
162
  };