@vc-shell/framework 1.0.130 → 1.0.132
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 +23 -0
- package/core/composables/useAssets/index.ts +0 -1
- package/core/composables/useAsync/index.ts +1 -1
- package/core/composables/useNotifications/index.ts +0 -1
- package/core/composables/useUser/index.ts +2 -2
- package/core/interceptors/index.ts +3 -3
- package/core/plugins/modularity/index.ts +1 -3
- package/core/plugins/moment/humanize.ts +8 -7
- package/core/plugins/validation/rules.ts +1 -1
- package/core/types/index.ts +1 -1
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +1959 -1948
- package/dist/index.css +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/types/index.d.ts +3 -3
- package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/index.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-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +4 -4
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +12 -12
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +12 -12
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +6 -6
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +37 -37
- package/dist/ui/components/molecules/vc-slider/index.d.ts +12 -12
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +67 -3
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +6 -6
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +18 -18
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -1
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +1 -1
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +2 -15
- package/shared/components/popup-handler/types/index.ts +4 -7
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +0 -2
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +1 -1
- package/shared/modules/dynamic/components/SchemaRender.ts +5 -5
- package/shared/modules/dynamic/components/fields/Checkbox.ts +1 -1
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +12 -11
- package/shared/modules/dynamic/components/fields/EditorField.ts +1 -1
- package/shared/modules/dynamic/components/fields/Fieldset.ts +4 -4
- package/shared/modules/dynamic/components/fields/InputField.ts +18 -15
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +12 -9
- package/shared/modules/dynamic/components/fields/SelectField.ts +12 -9
- package/shared/modules/dynamic/components/fields/TextareaField.ts +1 -1
- package/shared/modules/dynamic/components/fields/ValidationField.ts +6 -5
- package/shared/modules/dynamic/components/fields/props.ts +7 -7
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +4 -4
- package/shared/modules/dynamic/factories/base/useListFactory.ts +1 -1
- package/shared/modules/dynamic/factories/types/index.ts +5 -2
- package/shared/modules/dynamic/helpers/getters.ts +1 -1
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +7 -8
- package/shared/modules/dynamic/helpers/override.ts +1 -1
- package/shared/modules/dynamic/helpers/toolbarReducer.ts +1 -1
- package/shared/modules/dynamic/index.ts +33 -37
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -1
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +0 -1
- package/shared/modules/dynamic/types/models.ts +1 -1
- package/shared/pages/LoginPage/components/login/Login.vue +1 -1
- package/ui/components/atoms/vc-label/vc-label.vue +2 -2
- package/ui/components/atoms/vc-progress/vc-progress.vue +8 -4
- package/ui/components/molecules/vc-editor/vc-editor.vue +0 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +1 -1
- package/ui/components/molecules/vc-input/vc-input.vue +5 -3
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +0 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +2 -2
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +1 -1
- package/ui/components/molecules/vc-select/vc-select.vue +15 -15
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -1
- package/ui/components/organisms/vc-app/vc-app.vue +6 -3
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -1
- package/ui/components/organisms/vc-blade/vc-blade.vue +1 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +3 -3
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +1 -1
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +2 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +2 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface Props {
|
|
2
2
|
isReady: boolean;
|
|
3
|
-
logo
|
|
3
|
+
logo?: string;
|
|
4
4
|
version?: string;
|
|
5
5
|
theme?: "light" | "dark";
|
|
6
6
|
title?: string;
|
|
@@ -11,7 +11,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
"toolbar:prepend": void;
|
|
12
12
|
"toolbar:language-selector": void;
|
|
13
13
|
"toolbar:notifications-dropdown": void;
|
|
14
|
-
"toolbar:user-dropdown":
|
|
14
|
+
"toolbar:user-dropdown": (props: {
|
|
15
|
+
userDropdown: import("vue").DefineComponent<{
|
|
16
|
+
name: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
menuItems: {
|
|
20
|
+
type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
avatarUrl: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
role: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
};
|
|
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
|
+
menuItems: {
|
|
34
|
+
type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
avatarUrl: {
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
39
|
+
};
|
|
40
|
+
role: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
};
|
|
43
|
+
}>>, {
|
|
44
|
+
menuItems: import("../../../../core/types").BladeMenu<import("vue").Component>[];
|
|
45
|
+
}, {}>;
|
|
46
|
+
}) => void;
|
|
15
47
|
"blade-navigation": void;
|
|
16
48
|
}> & {
|
|
17
49
|
"app-switcher": void;
|
|
@@ -19,7 +51,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
51
|
"toolbar:prepend": void;
|
|
20
52
|
"toolbar:language-selector": void;
|
|
21
53
|
"toolbar:notifications-dropdown": void;
|
|
22
|
-
"toolbar:user-dropdown":
|
|
54
|
+
"toolbar:user-dropdown": (props: {
|
|
55
|
+
userDropdown: import("vue").DefineComponent<{
|
|
56
|
+
name: {
|
|
57
|
+
type: import("vue").PropType<string>;
|
|
58
|
+
};
|
|
59
|
+
menuItems: {
|
|
60
|
+
type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
avatarUrl: {
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
65
|
+
};
|
|
66
|
+
role: {
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
68
|
+
};
|
|
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
|
+
menuItems: {
|
|
74
|
+
type: import("vue").PropType<import("../../../../core/types").BladeMenu<import("vue").Component>[]>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
avatarUrl: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
};
|
|
80
|
+
role: {
|
|
81
|
+
type: import("vue").PropType<string>;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
menuItems: import("../../../../core/types").BladeMenu<import("vue").Component>[];
|
|
85
|
+
}, {}>;
|
|
86
|
+
}) => void;
|
|
23
87
|
"blade-navigation": void;
|
|
24
88
|
}>;
|
|
25
89
|
export default _default;
|
|
@@ -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,EAAE,MAAM,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,OAAO,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyaD,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"}
|
|
@@ -20,9 +20,9 @@ declare const _default: <T extends {
|
|
|
20
20
|
readonly dictionary?: any[] | undefined;
|
|
21
21
|
readonly locale?: string | undefined;
|
|
22
22
|
}) => any) | undefined;
|
|
23
|
+
multivalue?: boolean | undefined;
|
|
23
24
|
property: T;
|
|
24
25
|
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
25
|
-
multivalue?: boolean | undefined;
|
|
26
26
|
valueType: string;
|
|
27
27
|
dictionary?: boolean | undefined;
|
|
28
28
|
optionsValue?: string | undefined;
|
|
@@ -60,9 +60,9 @@ declare const _default: <T extends {
|
|
|
60
60
|
readonly dictionary?: any[] | undefined;
|
|
61
61
|
readonly locale?: string | undefined;
|
|
62
62
|
}) => any) | undefined;
|
|
63
|
+
multivalue?: boolean | undefined;
|
|
63
64
|
property: T;
|
|
64
65
|
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
65
|
-
multivalue?: boolean | undefined;
|
|
66
66
|
valueType: string;
|
|
67
67
|
dictionary?: boolean | undefined;
|
|
68
68
|
optionsValue?: string | undefined;
|
|
@@ -104,9 +104,9 @@ declare const _default: <T extends {
|
|
|
104
104
|
readonly dictionary?: any[] | undefined;
|
|
105
105
|
readonly locale?: string | undefined;
|
|
106
106
|
}) => any) | undefined;
|
|
107
|
+
multivalue?: boolean | undefined;
|
|
107
108
|
property: T;
|
|
108
109
|
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
109
|
-
multivalue?: boolean | undefined;
|
|
110
110
|
valueType: string;
|
|
111
111
|
dictionary?: boolean | undefined;
|
|
112
112
|
optionsValue?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;UAyZU,MAAM;gBARA,GAAG;cAEL,OAAO;;;;;;;;;;;wBA3V6B,GAAG
|
|
1
|
+
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;UAyZU,MAAM;gBARA,GAAG;cAEL,OAAO;;;;;;;;;;;wBA3V6B,GAAG;;;;;;2CA0VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE;eAK9E,MAAM;;;;;;;;;WAuBd,GAAG;;;;wBAtXwC,GAAG;;;;yCAqXrC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;cApB/C,MAAM;oBARA,GAAG;kBAEL,OAAO;;;;;;;;;;;4BA3V6B,GAAG;;;;;;+CA0VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE;mBAK9E,MAAM;;;;;;;;;oBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;wBAtXwC,GAAG;;;;;;;;;;kBAiW3C,MAAM;wBARA,GAAG;sBAEL,OAAO;;;;;;;;;;;gCA3V6B,GAAG;;;;;;mDA0VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE;uBAK9E,MAAM;;;;;;;;;wBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;;4BAtXwC,GAAG;;;;;;AAhDrD,wBA2a2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -26,12 +26,12 @@ export declare const VcGallery: import("vue").DefineComponent<{
|
|
|
26
26
|
loading: {
|
|
27
27
|
type: import("vue").PropType<boolean>;
|
|
28
28
|
};
|
|
29
|
-
rules: {
|
|
30
|
-
type: import("vue").PropType<string | Record<string, unknown>>;
|
|
31
|
-
};
|
|
32
29
|
multiple: {
|
|
33
30
|
type: import("vue").PropType<boolean>;
|
|
34
31
|
};
|
|
32
|
+
rules: {
|
|
33
|
+
type: import("vue").PropType<string | Record<string, unknown>>;
|
|
34
|
+
};
|
|
35
35
|
images: {
|
|
36
36
|
type: import("vue").PropType<import("../../../..").ICommonAsset[]>;
|
|
37
37
|
default: () => never[];
|
|
@@ -88,12 +88,12 @@ export declare const VcGallery: import("vue").DefineComponent<{
|
|
|
88
88
|
loading: {
|
|
89
89
|
type: import("vue").PropType<boolean>;
|
|
90
90
|
};
|
|
91
|
-
rules: {
|
|
92
|
-
type: import("vue").PropType<string | Record<string, unknown>>;
|
|
93
|
-
};
|
|
94
91
|
multiple: {
|
|
95
92
|
type: import("vue").PropType<boolean>;
|
|
96
93
|
};
|
|
94
|
+
rules: {
|
|
95
|
+
type: import("vue").PropType<string | Record<string, unknown>>;
|
|
96
|
+
};
|
|
97
97
|
images: {
|
|
98
98
|
type: import("vue").PropType<import("../../../..").ICommonAsset[]>;
|
|
99
99
|
default: () => never[];
|
|
@@ -17,11 +17,13 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
17
17
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
18
18
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
19
19
|
items: T[];
|
|
20
|
-
pages?: number | undefined;
|
|
21
|
-
expanded?: boolean | undefined;
|
|
22
20
|
loading?: MaybeRef<boolean> | undefined;
|
|
23
|
-
|
|
21
|
+
totalCount?: number | undefined;
|
|
22
|
+
expanded?: boolean | undefined;
|
|
23
|
+
pages?: number | undefined;
|
|
24
|
+
currentPage?: number | undefined;
|
|
24
25
|
onItemClick?: ((item: T) => any) | undefined;
|
|
26
|
+
columns: ITableColumns[];
|
|
25
27
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
26
28
|
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
27
29
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
@@ -35,8 +37,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
35
37
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
36
38
|
multiselect?: boolean | undefined;
|
|
37
39
|
totalLabel?: string | undefined;
|
|
38
|
-
totalCount?: number | undefined;
|
|
39
|
-
currentPage?: number | undefined;
|
|
40
40
|
searchPlaceholder?: string | undefined;
|
|
41
41
|
searchValue?: string | undefined;
|
|
42
42
|
empty?: StatusImage | undefined;
|
|
@@ -84,7 +84,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
84
84
|
empty: (props: any) => any;
|
|
85
85
|
footer: (props: any) => any;
|
|
86
86
|
};
|
|
87
|
-
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "
|
|
87
|
+
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
88
88
|
dragIndex: number;
|
|
89
89
|
dropIndex: number;
|
|
90
90
|
value: T[];
|
|
@@ -97,11 +97,13 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
97
97
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
98
98
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
99
99
|
items: T[];
|
|
100
|
-
pages?: number | undefined;
|
|
101
|
-
expanded?: boolean | undefined;
|
|
102
100
|
loading?: MaybeRef<boolean> | undefined;
|
|
103
|
-
|
|
101
|
+
totalCount?: number | undefined;
|
|
102
|
+
expanded?: boolean | undefined;
|
|
103
|
+
pages?: number | undefined;
|
|
104
|
+
currentPage?: number | undefined;
|
|
104
105
|
onItemClick?: ((item: T) => any) | undefined;
|
|
106
|
+
columns: ITableColumns[];
|
|
105
107
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
106
108
|
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
107
109
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
@@ -115,8 +117,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
115
117
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
116
118
|
multiselect?: boolean | undefined;
|
|
117
119
|
totalLabel?: string | undefined;
|
|
118
|
-
totalCount?: number | undefined;
|
|
119
|
-
currentPage?: number | undefined;
|
|
120
120
|
searchPlaceholder?: string | undefined;
|
|
121
121
|
searchValue?: string | undefined;
|
|
122
122
|
empty?: StatusImage | undefined;
|
|
@@ -165,7 +165,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
165
165
|
empty: (props: any) => any;
|
|
166
166
|
footer: (props: any) => any;
|
|
167
167
|
};
|
|
168
|
-
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "
|
|
168
|
+
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
169
169
|
dragIndex: number;
|
|
170
170
|
dropIndex: number;
|
|
171
171
|
value: T[];
|
|
@@ -181,11 +181,13 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
181
181
|
onHeaderClick?: ((item: ITableColumns) => any) | undefined;
|
|
182
182
|
"onScroll:ptr"?: (() => any) | undefined;
|
|
183
183
|
items: T[];
|
|
184
|
-
pages?: number | undefined;
|
|
185
|
-
expanded?: boolean | undefined;
|
|
186
184
|
loading?: MaybeRef<boolean> | undefined;
|
|
187
|
-
|
|
185
|
+
totalCount?: number | undefined;
|
|
186
|
+
expanded?: boolean | undefined;
|
|
187
|
+
pages?: number | undefined;
|
|
188
|
+
currentPage?: number | undefined;
|
|
188
189
|
onItemClick?: ((item: T) => any) | undefined;
|
|
190
|
+
columns: ITableColumns[];
|
|
189
191
|
onSelectionChanged?: ((values: T[]) => any) | undefined;
|
|
190
192
|
onValue?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
191
193
|
onPaginationClick?: ((page: number) => any) | undefined;
|
|
@@ -199,8 +201,6 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
199
201
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[]) | undefined;
|
|
200
202
|
multiselect?: boolean | undefined;
|
|
201
203
|
totalLabel?: string | undefined;
|
|
202
|
-
totalCount?: number | undefined;
|
|
203
|
-
currentPage?: number | undefined;
|
|
204
204
|
searchPlaceholder?: string | undefined;
|
|
205
205
|
searchValue?: string | undefined;
|
|
206
206
|
empty?: StatusImage | undefined;
|
|
@@ -249,7 +249,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
249
249
|
empty: (props: any) => any;
|
|
250
250
|
footer: (props: any) => any;
|
|
251
251
|
};
|
|
252
|
-
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "
|
|
252
|
+
emit: ((evt: "value", args_0: Record<string, unknown>) => void) & ((evt: "scroll:ptr") => void) & ((evt: "itemClick", item: T) => void) & ((evt: "paginationClick", page: number) => void) & ((evt: "selectionChanged", values: T[]) => void) & ((evt: "search:change", value: string | number | Date | null) => void) & ((evt: "headerClick", item: ITableColumns) => void) & ((evt: "row:reorder", args: {
|
|
253
253
|
dragIndex: number;
|
|
254
254
|
dropIndex: number;
|
|
255
255
|
value: T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAWL,QAAQ,EAET,MAAM,KAAK,CAAC;AAOb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAWL,QAAQ,EAET,MAAM,KAAK,CAAC;AAOb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC;;;;;;;;;;;;;;aAg9DY,aAAa,EAAE;;;;;;mBA53DS,MAAM;mBAAa,MAAM;;;;sCA83DzB,oBAAoB,EAAE;;;;;;;;;;;;;cAqB7C,MAAM;;;WASb,GAAG;;2CAn+D2B,GAAG,KAAK,GAAG;;;kBACG,aAAa;cAAO,GAAG;wBAJxD,GAAG,KAAK,GAAG;wBACX;YAAE,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,GAAG;;;cACZ,GAAG;0BAGvB,GAAG,KAAK,GAAG;uBACd,GAAG,KAAK,GAAG;wBACV,GAAG,KAAK,GAAG;;2CAJQ,GAAG,KAAK,GAAG;;;kBACG,aAAa;cAAO,GAAG;wBAJxD,GAAG,KAAK,GAAG;wBACX;YAAE,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,GAAG;;;cACZ,GAAG;0BAGvB,GAAG,KAAK,GAAG;uBACd,GAAG,KAAK,GAAG;wBACV,GAAG,KAAK,GAAG;;;mBAmEQ,MAAM;mBAAa,MAAM;;;yCA25D9C,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;;;;;;iBA/B5C,aAAa,EAAE;;;;;;uBA53DS,MAAM;uBAAa,MAAM;;;;0CA83DzB,oBAAoB,EAAE;;;;;;;;;;;;;kBAqB7C,MAAM;;;oBAQJ,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;2CAn+D2B,GAAG,KAAK,GAAG;;;kBACG,aAAa;cAAO,GAAG;wBAJxD,GAAG,KAAK,GAAG;wBACX;YAAE,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,GAAG;;;cACZ,GAAG;0BAGvB,GAAG,KAAK,GAAG;uBACd,GAAG,KAAK,GAAG;wBACV,GAAG,KAAK,GAAG;;2CAJQ,GAAG,KAAK,GAAG;;;kBACG,aAAa;cAAO,GAAG;wBAJxD,GAAG,KAAK,GAAG;wBACX;YAAE,UAAU,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,GAAG;;;cACZ,GAAG;0BAGvB,GAAG,KAAK,GAAG;uBACd,GAAG,KAAK,GAAG;wBACV,GAAG,KAAK,GAAG;;;mBAmEQ,MAAM;mBAAa,MAAM;;;;;;;;;;;;;;;;;;;;qBA43DjD,aAAa,EAAE;;;;;;2BA53DS,MAAM;2BAAa,MAAM;;;;8CA83DzB,oBAAoB,EAAE;;;;;;;;;;;;;sBAqB7C,MAAM;;;wBAQJ,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+CAn+D2B,GAAG,KAAK,GAAG;;;sBACG,aAAa;kBAAO,GAAG;4BAJxD,GAAG,KAAK,GAAG;4BACX;gBAAE,UAAU,EAAE,MAAM,IAAI,CAAA;aAAE,KAAK,GAAG;;;kBACZ,GAAG;8BAGvB,GAAG,KAAK,GAAG;2BACd,GAAG,KAAK,GAAG;4BACV,GAAG,KAAK,GAAG;;+CAJQ,GAAG,KAAK,GAAG;;;sBACG,aAAa;kBAAO,GAAG;4BAJxD,GAAG,KAAK,GAAG;4BACX;gBAAE,UAAU,EAAE,MAAM,IAAI,CAAA;aAAE,KAAK,GAAG;;;kBACZ,GAAG;8BAGvB,GAAG,KAAK,GAAG;2BACd,GAAG,KAAK,GAAG;4BACV,GAAG,KAAK,GAAG;;;uBAmEQ,MAAM;uBAAa,MAAM;;;;;AAjF9D,wBAk/D2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,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.132",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"whatwg-fetch": "^3.6.19"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
57
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
-
"@vc-shell/ts-config": "^1.0.
|
|
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
59
|
"@vitejs/plugin-vue": "^4.5.1",
|
|
60
60
|
"sass": "^1.69.5",
|
|
61
61
|
"typescript": "5.3.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Ref, ref } from "vue";
|
|
2
2
|
import { AppDescriptor, AppsClient } from "../../../../../core/api/platform";
|
|
3
|
-
import {
|
|
3
|
+
import { usePermissions } from "../../../../../core/composables";
|
|
4
4
|
import { notification } from "./../../../notifications";
|
|
5
5
|
|
|
6
6
|
interface IUseAppSwitcher {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Slot, defineComponent, h, provide, ref,
|
|
1
|
+
import { Slot, defineComponent, h, provide, ref, VNode, PropType, Component } from "vue";
|
|
2
2
|
import { navigationViewLocation } from "./../../injectionKeys";
|
|
3
3
|
import { BladeVNode } from "../../types";
|
|
4
4
|
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { reactiveComputed } from "@vueuse/core";
|
|
2
|
-
import { nextTick } from "vue";
|
|
3
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
Ref,
|
|
7
|
-
getCurrentInstance,
|
|
8
|
-
inject,
|
|
9
|
-
warn,
|
|
10
|
-
Component,
|
|
11
|
-
watch,
|
|
12
|
-
isVNode,
|
|
13
|
-
h,
|
|
14
|
-
shallowRef,
|
|
15
|
-
ComputedRef,
|
|
16
|
-
} from "vue";
|
|
2
|
+
import { reactiveComputed } from "@vueuse/core";
|
|
3
|
+
import { computed, getCurrentInstance, inject, warn, Component, watch, isVNode, h, shallowRef, ComputedRef } from "vue";
|
|
17
4
|
import * as _ from "lodash-es";
|
|
18
5
|
import { RouteLocationNormalized, useRoute, RouteRecordNormalized, NavigationFailure } from "vue-router";
|
|
19
6
|
import { bladeNavigationInstance } from "../../plugin";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, DefineComponent, Slot as VueSlot } from "vue";
|
|
2
2
|
import { ComponentPublicInstanceConstructor } from "../../../utilities/vueUtils";
|
|
3
3
|
|
|
4
|
-
export type RawProps<T extends ComponentPublicInstanceConstructor
|
|
5
|
-
|
|
6
|
-
`on${string}`
|
|
7
|
-
>;
|
|
8
|
-
export type RawEmits<T extends ComponentPublicInstanceConstructor<any>> = Pick<
|
|
4
|
+
export type RawProps<T extends ComponentPublicInstanceConstructor> = Omit<InstanceType<T>["$props"], `on${string}`>;
|
|
5
|
+
export type RawEmits<T extends ComponentPublicInstanceConstructor> = Pick<
|
|
9
6
|
InstanceType<T>["$props"],
|
|
10
7
|
Extract<keyof InstanceType<T>["$props"], `on${string}`>
|
|
11
8
|
>;
|
|
@@ -21,7 +18,7 @@ export interface PopupPlugin {
|
|
|
21
18
|
popups: Partial<UsePopupProps<DefineComponent> & UsePopupInternal>[];
|
|
22
19
|
}
|
|
23
20
|
|
|
24
|
-
export interface UsePopupProps<T extends ComponentPublicInstanceConstructor
|
|
21
|
+
export interface UsePopupProps<T extends ComponentPublicInstanceConstructor> {
|
|
25
22
|
component: T;
|
|
26
23
|
emits?: RawEmits<T>;
|
|
27
24
|
props?: RawProps<T>;
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
import { Ref, computed, inject, ref } from "vue";
|
|
58
58
|
import { vOnClickOutside } from "@vueuse/components";
|
|
59
59
|
import { useUser } from "../../../core/composables";
|
|
60
|
-
import { useBladeNavigation } from "../blade-navigation";
|
|
61
60
|
import { useRouter } from "vue-router";
|
|
62
61
|
import { useI18n } from "vue-i18n";
|
|
63
62
|
import { VcIcon } from "../../../ui/components";
|
|
@@ -78,7 +77,6 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
78
77
|
const isMobile = inject("isMobile") as Ref<boolean>;
|
|
79
78
|
|
|
80
79
|
const { user, signOut } = useUser();
|
|
81
|
-
const { closeBlade } = useBladeNavigation();
|
|
82
80
|
const router = useRouter();
|
|
83
81
|
const { t } = useI18n({ useScope: "global" });
|
|
84
82
|
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
|
|
144
144
|
<script setup lang="ts">
|
|
145
145
|
import { ICommonAsset, IActionBuilderResult, IBladeToolbar, ITableColumns } from "../../../../../core/types";
|
|
146
|
-
import { ref, computed, onMounted, unref, watch,
|
|
146
|
+
import { ref, computed, onMounted, unref, watch, Ref } from "vue";
|
|
147
147
|
import { useI18n } from "vue-i18n";
|
|
148
148
|
import moment from "moment";
|
|
149
149
|
import { isImage, getFileThumbnail, readableSize } from "./../../../../utilities/assets";
|
|
@@ -8,7 +8,7 @@ import { nodeBuilder } from "../helpers/nodeBuilder";
|
|
|
8
8
|
const schemeRenderProps = {
|
|
9
9
|
context: {
|
|
10
10
|
type: Object as PropType<UnwrapNestedRefs<DetailsBladeContext>>,
|
|
11
|
-
default: () => ({} as DetailsBladeContext
|
|
11
|
+
default: () => ({}) as DetailsBladeContext,
|
|
12
12
|
},
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: Object as PropType<Record<string, any>>,
|
|
@@ -41,7 +41,7 @@ export default defineComponent({
|
|
|
41
41
|
internalFormData.value = newVal;
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
{ deep: true, immediate: true }
|
|
44
|
+
{ deep: true, immediate: true },
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
watch(
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
51
51
|
emitChange(newVal);
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
{ deep: true }
|
|
54
|
+
{ deep: true },
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
function emitChange(newVal: unknown) {
|
|
@@ -74,8 +74,8 @@ export default defineComponent({
|
|
|
74
74
|
formData: internalFormData,
|
|
75
75
|
}),
|
|
76
76
|
],
|
|
77
|
-
[] as VNode[]
|
|
78
|
-
)
|
|
77
|
+
[] as VNode[],
|
|
78
|
+
),
|
|
79
79
|
);
|
|
80
80
|
},
|
|
81
81
|
});
|
|
@@ -36,8 +36,8 @@ export default {
|
|
|
36
36
|
`There is no DynamicProperties config provided in blade scope: ${JSON.stringify(
|
|
37
37
|
props.bladeContext.scope,
|
|
38
38
|
null,
|
|
39
|
-
2
|
|
40
|
-
)}
|
|
39
|
+
2,
|
|
40
|
+
)}`,
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -50,7 +50,7 @@ export default {
|
|
|
50
50
|
internalModel.value = _.cloneDeep(newVal);
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
{ deep: true, immediate: true }
|
|
53
|
+
{ deep: true, immediate: true },
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
const filteredProps = reactify(
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
return null;
|
|
66
|
-
}
|
|
66
|
+
},
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
const dynamicProps = filteredProps(internalModel, {
|
|
@@ -78,16 +78,17 @@ export default {
|
|
|
78
78
|
disabled:
|
|
79
79
|
props.bladeContext.scope && "disabled" in props.bladeContext.scope && props.bladeContext.scope.disabled,
|
|
80
80
|
property: prop,
|
|
81
|
-
modelValue: computed(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
modelValue: computed(
|
|
82
|
+
() =>
|
|
83
|
+
props.bladeContext.scope?.dynamicProperties?.getPropertyValue(
|
|
84
|
+
prop,
|
|
85
|
+
toValue(props.currentLocale ?? "en-US"),
|
|
86
|
+
),
|
|
86
87
|
),
|
|
87
88
|
optionsGetter: props.bladeContext.scope?.dynamicProperties?.loadDictionaries as (
|
|
88
89
|
property: Record<string, any>,
|
|
89
90
|
keyword?: string | undefined,
|
|
90
|
-
locale?: string | undefined
|
|
91
|
+
locale?: string | undefined,
|
|
91
92
|
) => Promise<Record<string, any>[]>,
|
|
92
93
|
"onUpdate:model-value": (args: {
|
|
93
94
|
property: Record<string, any>;
|
|
@@ -116,7 +117,7 @@ export default {
|
|
|
116
117
|
currentLanguage: props.currentLocale,
|
|
117
118
|
},
|
|
118
119
|
options: props.baseOptions,
|
|
119
|
-
})
|
|
120
|
+
}),
|
|
120
121
|
);
|
|
121
122
|
});
|
|
122
123
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref, h, inject,
|
|
1
|
+
import { Ref, h, inject, toRefs, ExtractPropTypes, toValue } from "vue";
|
|
2
2
|
import componentProps from "./props";
|
|
3
3
|
import * as _ from "lodash-es";
|
|
4
4
|
import { VcButton, VcCol, VcRow } from "../../../../../ui/components";
|
|
@@ -56,10 +56,10 @@ export default {
|
|
|
56
56
|
key: `item-${itemIndex}-${colIndex}-${index}`,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
},
|
|
60
60
|
);
|
|
61
61
|
}),
|
|
62
|
-
]
|
|
62
|
+
],
|
|
63
63
|
);
|
|
64
64
|
}),
|
|
65
65
|
]),
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
})
|
|
81
81
|
: undefined,
|
|
82
|
-
]
|
|
82
|
+
],
|
|
83
83
|
);
|
|
84
84
|
})
|
|
85
85
|
: null;
|
|
@@ -25,20 +25,23 @@ export default {
|
|
|
25
25
|
clearable: props.element.clearable || false,
|
|
26
26
|
},
|
|
27
27
|
options: props.baseOptions,
|
|
28
|
-
slots: Object.entries(slotsMap).reduce(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
slots: Object.entries(slotsMap).reduce(
|
|
29
|
+
(acc, [key, value]) => {
|
|
30
|
+
if (props.element[key as keyof InputSchema]) {
|
|
31
|
+
acc[value as keyof InputSchema] = () =>
|
|
32
|
+
nodeBuilder({
|
|
33
|
+
controlSchema: props.element[key as keyof InputSchema] as ControlSchema,
|
|
34
|
+
parentId: `${(props.element[key as keyof InputSchema] as ControlSchema).id}`,
|
|
35
|
+
internalContext: props.fieldContext ?? {},
|
|
36
|
+
bladeContext: props.bladeContext,
|
|
37
|
+
currentLocale: props.currentLocale ?? "en-US",
|
|
38
|
+
formData: props.formData,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return acc;
|
|
42
|
+
},
|
|
43
|
+
{} as Record<keyof InputSchema, () => VNode | false>,
|
|
44
|
+
),
|
|
42
45
|
});
|
|
43
46
|
|
|
44
47
|
const render = h(field.component as Component, field.props, field.slots);
|
|
@@ -53,7 +56,7 @@ export default {
|
|
|
53
56
|
rows: props.rows,
|
|
54
57
|
key: `${String(field.props.key)}_validation`,
|
|
55
58
|
},
|
|
56
|
-
() => render
|
|
59
|
+
() => render,
|
|
57
60
|
)
|
|
58
61
|
: null;
|
|
59
62
|
} else {
|
|
@@ -29,14 +29,17 @@ export default {
|
|
|
29
29
|
|
|
30
30
|
slots:
|
|
31
31
|
props.element.customTemplate &&
|
|
32
|
-
["item"].reduce(
|
|
33
|
-
obj
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
["item"].reduce(
|
|
33
|
+
(obj, slot) => {
|
|
34
|
+
obj[slot] = (scope: TScope) =>
|
|
35
|
+
h(resolveComponent(props.element.customTemplate?.component as string), {
|
|
36
|
+
context: scope,
|
|
37
|
+
slotName: slot,
|
|
38
|
+
});
|
|
39
|
+
return obj;
|
|
40
|
+
},
|
|
41
|
+
{} as Record<string, (scope: TScope) => VNode>,
|
|
42
|
+
),
|
|
40
43
|
});
|
|
41
44
|
|
|
42
45
|
const render = h(field.component as unknown as Component, field.props, field.slots);
|
|
@@ -51,7 +54,7 @@ export default {
|
|
|
51
54
|
rows: props.rows,
|
|
52
55
|
key: `${String(field.props.key)}_validation`,
|
|
53
56
|
},
|
|
54
|
-
() => render
|
|
57
|
+
() => render,
|
|
55
58
|
)
|
|
56
59
|
: null;
|
|
57
60
|
} else {
|