@vc-shell/framework 1.0.118 → 1.0.119
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/dist/framework.mjs +8577 -8473
- package/dist/index.css +1 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +13 -9
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +8 -4
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +9 -5
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +5 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts +1 -0
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +1 -80
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +1 -52
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/components/factories.ts +2 -1
- package/shared/modules/dynamic/components/fields/EditorField.ts +3 -6
- package/shared/modules/dynamic/components/fields/Fieldset.ts +12 -5
- package/shared/modules/dynamic/components/fields/GalleryField.ts +8 -5
- package/shared/modules/dynamic/components/fields/InputField.ts +25 -3
- package/shared/modules/dynamic/components/fields/props.ts +5 -5
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +15 -11
- package/shared/modules/dynamic/types/index.ts +5 -0
- package/shared/modules/dynamic/types/models.ts +1 -0
- package/ui/components/atoms/vc-col/index.ts +1 -10
- package/ui/components/atoms/vc-col/vc-col.vue +10 -5
- package/ui/components/atoms/vc-image/vc-image.vue +1 -1
- package/ui/components/atoms/vc-label/vc-label.vue +1 -1
- package/ui/components/atoms/vc-row/index.ts +1 -10
- package/ui/components/atoms/vc-row/vc-row.vue +8 -1
- package/ui/components/molecules/vc-field/vc-field.vue +15 -15
- package/ui/components/organisms/vc-popup/vc-popup.vue +5 -0
|
@@ -1,81 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const VcCol: {
|
|
3
|
-
new (...args: any[]): {
|
|
4
|
-
$: import("vue").ComponentInternalInstance;
|
|
5
|
-
$data: {};
|
|
6
|
-
$props: Partial<{
|
|
7
|
-
size: string;
|
|
8
|
-
}> & Omit<{
|
|
9
|
-
readonly size: string;
|
|
10
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
size: {
|
|
12
|
-
type: import("vue").PropType<string>;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
}>>, "size">;
|
|
16
|
-
$attrs: {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
$refs: {
|
|
20
|
-
[x: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
$slots: Readonly<{
|
|
23
|
-
[name: string]: import("vue").Slot<any>;
|
|
24
|
-
}>;
|
|
25
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
26
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
27
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
-
$el: any;
|
|
29
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
size: {
|
|
31
|
-
type: import("vue").PropType<string>;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
35
|
-
size: string;
|
|
36
|
-
}, {}, string, {}> & {
|
|
37
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
38
|
-
created?: (() => void) | (() => void)[];
|
|
39
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
40
|
-
mounted?: (() => void) | (() => void)[];
|
|
41
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
42
|
-
updated?: (() => void) | (() => void)[];
|
|
43
|
-
activated?: (() => void) | (() => void)[];
|
|
44
|
-
deactivated?: (() => void) | (() => void)[];
|
|
45
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
46
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
47
|
-
destroyed?: (() => void) | (() => void)[];
|
|
48
|
-
unmounted?: (() => void) | (() => void)[];
|
|
49
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
50
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
51
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
|
52
|
-
};
|
|
53
|
-
$forceUpdate: () => void;
|
|
54
|
-
$nextTick: typeof import("vue").nextTick;
|
|
55
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
56
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
size: {
|
|
58
|
-
type: import("vue").PropType<string>;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
62
|
-
__isFragment?: never;
|
|
63
|
-
__isTeleport?: never;
|
|
64
|
-
__isSuspense?: never;
|
|
65
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
-
size: {
|
|
67
|
-
type: import("vue").PropType<string>;
|
|
68
|
-
default: string;
|
|
69
|
-
};
|
|
70
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
71
|
-
size: string;
|
|
72
|
-
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
73
|
-
$slots: {
|
|
74
|
-
default?(_: {}): any;
|
|
75
|
-
};
|
|
76
|
-
}) & (new () => {
|
|
77
|
-
$slots: {
|
|
78
|
-
default: () => VNode[];
|
|
79
|
-
};
|
|
80
|
-
});
|
|
1
|
+
export { default as VcCol } from "./vc-col.vue";
|
|
81
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-col/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-col/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -7,9 +7,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
size: string;
|
|
8
8
|
}>>>, {
|
|
9
9
|
size: string;
|
|
10
|
-
}, {}>, {
|
|
11
|
-
default
|
|
12
|
-
}
|
|
10
|
+
}, {}>, Readonly<{
|
|
11
|
+
default: (props: any) => any;
|
|
12
|
+
}>>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-col.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-col/vc-col.vue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-col.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-col/vc-col.vue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;;;;;;;;;;AAwED,wBAAwG;AAGxG,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,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const VcRow: {
|
|
3
|
-
new (...args: any[]): {
|
|
4
|
-
$: import("vue").ComponentInternalInstance;
|
|
5
|
-
$data: {};
|
|
6
|
-
$props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, never>;
|
|
7
|
-
$attrs: {
|
|
8
|
-
[x: string]: unknown;
|
|
9
|
-
};
|
|
10
|
-
$refs: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
$slots: Readonly<{
|
|
14
|
-
[name: string]: import("vue").Slot<any>;
|
|
15
|
-
}>;
|
|
16
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
17
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
18
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
19
|
-
$el: any;
|
|
20
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
21
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
22
|
-
created?: (() => void) | (() => void)[];
|
|
23
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
24
|
-
mounted?: (() => void) | (() => void)[];
|
|
25
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
26
|
-
updated?: (() => void) | (() => void)[];
|
|
27
|
-
activated?: (() => void) | (() => void)[];
|
|
28
|
-
deactivated?: (() => void) | (() => void)[];
|
|
29
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
30
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
31
|
-
destroyed?: (() => void) | (() => void)[];
|
|
32
|
-
unmounted?: (() => void) | (() => void)[];
|
|
33
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
34
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
35
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
|
36
|
-
};
|
|
37
|
-
$forceUpdate: () => void;
|
|
38
|
-
$nextTick: typeof import("vue").nextTick;
|
|
39
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
40
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
41
|
-
__isFragment?: never;
|
|
42
|
-
__isTeleport?: never;
|
|
43
|
-
__isSuspense?: never;
|
|
44
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
45
|
-
$slots: {
|
|
46
|
-
default?(_: {}): any;
|
|
47
|
-
};
|
|
48
|
-
}) & (new () => {
|
|
49
|
-
$slots: {
|
|
50
|
-
default: () => VNode[];
|
|
51
|
-
};
|
|
52
|
-
});
|
|
1
|
+
export { default as VcRow } from "./vc-row.vue";
|
|
53
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-row/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-row/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
-
default
|
|
3
|
-
}
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<{
|
|
2
|
+
default: (props: any) => any;
|
|
3
|
+
}>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
6
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-row.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-row/vc-row.vue.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vc-row.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-row/vc-row.vue.ts"],"names":[],"mappings":";;;AA6DA,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7C;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7C;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;AA6ID,wBAMG;AAGH,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,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-popup.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-popup/vc-popup.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,QAAQ,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD,
|
|
1
|
+
{"version":3,"file":"vc-popup.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-popup/vc-popup.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,QAAQ,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD,wBAyBG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.119",
|
|
4
4
|
"main": "./dist/framework.mjs",
|
|
5
5
|
"module": "./dist/framework.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"whatwg-fetch": "^3.6.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
60
|
-
"@vc-shell/config-generator": "^1.0.
|
|
61
|
-
"@vc-shell/ts-config": "^1.0.
|
|
59
|
+
"@vc-shell/api-client-generator": "^1.0.119",
|
|
60
|
+
"@vc-shell/config-generator": "^1.0.119",
|
|
61
|
+
"@vc-shell/ts-config": "^1.0.119",
|
|
62
62
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
63
63
|
"sass": "^1.62.1",
|
|
64
64
|
"typescript": "^5.2.2",
|
|
@@ -82,13 +82,14 @@ export const StatusField = ({ props, slots, options }: Partial<IStatusField>): I
|
|
|
82
82
|
slots,
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
export const InputField = ({ props, options }: Partial<IInputField>): IInputField => ({
|
|
85
|
+
export const InputField = ({ props, options, slots }: Partial<IInputField>): IInputField => ({
|
|
86
86
|
component: markRaw(VcInput),
|
|
87
87
|
props: {
|
|
88
88
|
...ControlBaseProps(props),
|
|
89
89
|
...props,
|
|
90
90
|
},
|
|
91
91
|
options: ControlBase(options),
|
|
92
|
+
slots,
|
|
92
93
|
});
|
|
93
94
|
|
|
94
95
|
export const ContentField = ({ props, options }: Partial<IContentField>): IContentField => ({
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { h, ExtractPropTypes } from "vue";
|
|
1
|
+
import { h, ExtractPropTypes, Component, unref } from "vue";
|
|
3
2
|
import { EditorField } from "../factories";
|
|
4
3
|
import componentProps from "./props";
|
|
5
4
|
import ValidationField from "./ValidationField";
|
|
6
|
-
import { unrefNested } from "../../helpers/unrefNested";
|
|
7
|
-
import { getModel } from "../../helpers/getters";
|
|
8
5
|
|
|
9
6
|
export default {
|
|
10
7
|
name: "EditorField",
|
|
@@ -15,12 +12,12 @@ export default {
|
|
|
15
12
|
props: {
|
|
16
13
|
...props.baseProps,
|
|
17
14
|
currentLanguage: props.currentLocale,
|
|
18
|
-
assetsFolder: props.formData.id || props.formData.categoryId,
|
|
15
|
+
assetsFolder: unref(props.formData).id || unref(props.formData).categoryId,
|
|
19
16
|
},
|
|
20
17
|
options: props.baseOptions,
|
|
21
18
|
});
|
|
22
19
|
|
|
23
|
-
const render = h(field.component as
|
|
20
|
+
const render = h(field.component as Component, field.props);
|
|
24
21
|
|
|
25
22
|
if (field.props.rules) {
|
|
26
23
|
return props.baseOptions.visibility
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref, h, inject, nextTick, toRefs, ExtractPropTypes } from "vue";
|
|
1
|
+
import { Ref, h, inject, nextTick, 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";
|
|
@@ -14,23 +14,28 @@ export default {
|
|
|
14
14
|
|
|
15
15
|
return () =>
|
|
16
16
|
props.baseOptions.visibility
|
|
17
|
-
? fieldsetFields.value.map((fields, index, arr) => {
|
|
17
|
+
? toValue(fieldsetFields.value).map((fields, index, arr) => {
|
|
18
18
|
const divideByCols = Array.isArray(fields) && _.chunk(fields, props.element.columns || 1);
|
|
19
19
|
|
|
20
20
|
return h(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
class: "tw-flex tw-row tw-relative",
|
|
23
|
+
class: "tw-flex tw-row tw-relative test ",
|
|
24
24
|
key: `fieldset-${index}`,
|
|
25
25
|
},
|
|
26
26
|
[
|
|
27
|
-
h("div", { class: "tw-flex-1 tw-gap-4 tw-flex tw-flex-col" }, [
|
|
27
|
+
h("div", { class: "tw-flex-1 tw-gap-4 tw-flex tw-flex-col tw-min-w-0" }, [
|
|
28
28
|
divideByCols.map((itemsArr, colIndex) => {
|
|
29
29
|
return h(
|
|
30
30
|
VcRow,
|
|
31
31
|
{
|
|
32
32
|
key: `col-${colIndex}-${index}`,
|
|
33
|
-
class:
|
|
33
|
+
class: {
|
|
34
|
+
"tw-relative": true,
|
|
35
|
+
"tw-gap-4": true,
|
|
36
|
+
"!tw-flex-wrap": true,
|
|
37
|
+
"!tw-flex !tw-flex-row": !!props.element.aspectRatio,
|
|
38
|
+
},
|
|
34
39
|
},
|
|
35
40
|
() => [
|
|
36
41
|
...itemsArr.map((item, itemIndex) => {
|
|
@@ -38,6 +43,8 @@ export default {
|
|
|
38
43
|
VcCol,
|
|
39
44
|
{
|
|
40
45
|
key: `col-${itemIndex}-${colIndex}-${index}`,
|
|
46
|
+
size:
|
|
47
|
+
"aspectRatio" in props.element ? props.element.aspectRatio[itemIndex].toString() : "1",
|
|
41
48
|
},
|
|
42
49
|
() => {
|
|
43
50
|
if (typeof item === "object") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, computed, h, markRaw, reactive, ref, toRefs, toValue, watch } from "vue";
|
|
1
|
+
import { ExtractPropTypes, computed, h, markRaw, reactive, ref, toRefs, toValue, unref, watch } from "vue";
|
|
2
2
|
import { Gallery } from "../factories";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import { IImage } from "../../../../../core/types";
|
|
@@ -45,14 +45,17 @@ export default {
|
|
|
45
45
|
const imageHandlers = {
|
|
46
46
|
loading,
|
|
47
47
|
async edit(image: IImage) {
|
|
48
|
-
internalModel.value[props.element.property] = await edit.value(
|
|
48
|
+
internalModel.value[props.element.property] = await edit.value(
|
|
49
|
+
unref(props.formData)[props.element.property] as IImage[],
|
|
50
|
+
image
|
|
51
|
+
);
|
|
49
52
|
await editImages(internalModel.value[props.element.property]);
|
|
50
53
|
},
|
|
51
54
|
async upload(files: FileList) {
|
|
52
55
|
internalModel.value[props.element.property] = await upload.value(
|
|
53
56
|
files,
|
|
54
|
-
props.formData[props.element.property],
|
|
55
|
-
props.formData.id || props.formData.categoryId,
|
|
57
|
+
unref(props.formData)[props.element.property] as IImage[],
|
|
58
|
+
(unref(props.formData).id as string) || (unref(props.formData).categoryId as string),
|
|
56
59
|
props.element.uploadFolder
|
|
57
60
|
);
|
|
58
61
|
|
|
@@ -75,7 +78,7 @@ export default {
|
|
|
75
78
|
)
|
|
76
79
|
) {
|
|
77
80
|
internalModel.value[props.element.property] = await remove.value(
|
|
78
|
-
props.formData[props.element.property],
|
|
81
|
+
unref(props.formData)[props.element.property] as IImage[],
|
|
79
82
|
image
|
|
80
83
|
);
|
|
81
84
|
await editImages(internalModel.value[props.element.property]);
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { ExtractPropTypes, h } from "vue";
|
|
1
|
+
import { ExtractPropTypes, h, VNode } from "vue";
|
|
2
2
|
import { InputField } from "../factories";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import ValidationField from "./ValidationField";
|
|
5
|
-
import { InputSchema } from "../../types";
|
|
5
|
+
import { InputSchema, ControlSchema } from "../../types";
|
|
6
|
+
import { nodeBuilder } from "../../helpers/nodeBuilder";
|
|
7
|
+
|
|
8
|
+
const slotsMap = {
|
|
9
|
+
append: "append",
|
|
10
|
+
prepend: "prepend",
|
|
11
|
+
appendInner: "append-inner",
|
|
12
|
+
prependInner: "prepend-inner",
|
|
13
|
+
};
|
|
6
14
|
|
|
7
15
|
export default {
|
|
8
16
|
name: "InputField",
|
|
@@ -17,9 +25,23 @@ export default {
|
|
|
17
25
|
clearable: props.element.clearable || false,
|
|
18
26
|
},
|
|
19
27
|
options: props.baseOptions,
|
|
28
|
+
slots: Object.entries(slotsMap).reduce((acc, [key, value]: [keyof InputSchema, keyof InputSchema]) => {
|
|
29
|
+
if (props.element[key]) {
|
|
30
|
+
acc[value] = () =>
|
|
31
|
+
nodeBuilder({
|
|
32
|
+
controlSchema: props.element[key] as ControlSchema,
|
|
33
|
+
parentId: `${(props.element[key] as ControlSchema).id}`,
|
|
34
|
+
internalContext: props.fieldContext,
|
|
35
|
+
bladeContext: props.bladeContext,
|
|
36
|
+
currentLocale: props.currentLocale,
|
|
37
|
+
formData: props.formData,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return acc;
|
|
41
|
+
}, {} as Record<keyof InputSchema, () => VNode | false>),
|
|
20
42
|
});
|
|
21
43
|
|
|
22
|
-
const render = h(field.component, field.props);
|
|
44
|
+
const render = h(field.component, field.props, field.slots);
|
|
23
45
|
|
|
24
46
|
if (field.props.rules) {
|
|
25
47
|
return props.baseOptions.visibility
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, PropType, UnwrapNestedRefs, VNodeArrayChildren } from "vue";
|
|
1
|
+
import { ComputedRef, MaybeRef, PropType, UnwrapNestedRefs, VNode, VNodeArrayChildren } from "vue";
|
|
2
2
|
import { DetailsBladeContext } from "../../factories";
|
|
3
3
|
import { IControlBaseOptions, IControlBaseProps } from "../../types/models";
|
|
4
4
|
import { ControlSchema } from "../../types";
|
|
@@ -21,12 +21,12 @@ export default {
|
|
|
21
21
|
default: () => ({} as DetailsBladeContext),
|
|
22
22
|
},
|
|
23
23
|
fields: {
|
|
24
|
-
type: Object as PropType<ComputedRef<
|
|
25
|
-
default: () => ({} as ComputedRef<
|
|
24
|
+
type: Object as PropType<ComputedRef<VNode[][]>>,
|
|
25
|
+
default: () => ({} as ComputedRef<VNode[][]>),
|
|
26
26
|
},
|
|
27
27
|
formData: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default: () => ({}),
|
|
28
|
+
type: Object as PropType<MaybeRef<Record<string, unknown>>>,
|
|
29
|
+
default: () => ({} as MaybeRef<Record<string, unknown>>),
|
|
30
30
|
},
|
|
31
31
|
fieldContext: {
|
|
32
32
|
type: Object,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { unref, computed, toValue, h, UnwrapNestedRefs, MaybeRef, reactive,
|
|
1
|
+
import { unref, computed, toValue, h, UnwrapNestedRefs, MaybeRef, reactive, VNode } from "vue";
|
|
2
2
|
import FIELD_MAP from "../components/FIELD_MAP";
|
|
3
3
|
import { ControlSchema } from "../types";
|
|
4
4
|
import { IControlBaseProps, IControlBaseOptions } from "../types/models";
|
|
@@ -7,7 +7,6 @@ import { setModel } from "./setters";
|
|
|
7
7
|
import { unwrapInterpolation } from "./unwrapInterpolation";
|
|
8
8
|
import { DetailsBladeContext } from "../factories";
|
|
9
9
|
import * as _ from "lodash-es";
|
|
10
|
-
import { unrefNested } from "./unrefNested";
|
|
11
10
|
|
|
12
11
|
function disabledHandler(
|
|
13
12
|
disabled: { method?: string } | boolean,
|
|
@@ -20,7 +19,11 @@ function disabledHandler(
|
|
|
20
19
|
return false;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
function nodeBuilder<
|
|
22
|
+
function nodeBuilder<
|
|
23
|
+
Context extends Record<string, unknown>,
|
|
24
|
+
BContext extends UnwrapNestedRefs<DetailsBladeContext>,
|
|
25
|
+
FormData
|
|
26
|
+
>(args: {
|
|
24
27
|
controlSchema: ControlSchema;
|
|
25
28
|
parentId: string | number;
|
|
26
29
|
internalContext: MaybeRef<Context>;
|
|
@@ -42,7 +45,7 @@ function nodeBuilder<Context, BContext extends UnwrapNestedRefs<DetailsBladeCont
|
|
|
42
45
|
placeholder: controlSchema.placeholder,
|
|
43
46
|
required: controlSchema.rules?.required,
|
|
44
47
|
modelValue: getModel(controlSchema.property, toValue(internalContext)),
|
|
45
|
-
"onUpdate:modelValue": (e) => {
|
|
48
|
+
"onUpdate:modelValue": (e: unknown) => {
|
|
46
49
|
setModel({ property: controlSchema.property, value: e, context: toValue(internalContext) });
|
|
47
50
|
|
|
48
51
|
if (_.has(controlSchema, "update.method")) {
|
|
@@ -58,7 +61,7 @@ function nodeBuilder<Context, BContext extends UnwrapNestedRefs<DetailsBladeCont
|
|
|
58
61
|
|
|
59
62
|
const baseOptions = reactive<IControlBaseOptions>({
|
|
60
63
|
visibility: computed(() =>
|
|
61
|
-
controlSchema.visibility?.method ?
|
|
64
|
+
controlSchema.visibility?.method ? bladeContext.scope[controlSchema.visibility?.method] : true
|
|
62
65
|
),
|
|
63
66
|
});
|
|
64
67
|
|
|
@@ -68,8 +71,9 @@ function nodeBuilder<Context, BContext extends UnwrapNestedRefs<DetailsBladeCont
|
|
|
68
71
|
if (!("fields" in controlSchema)) return null;
|
|
69
72
|
const fieldsModel = getModel(controlSchema.property, toValue(internalContext));
|
|
70
73
|
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
const model = toValue(fieldsModel);
|
|
75
|
+
if (model && Array.isArray(model)) {
|
|
76
|
+
return model.map((model: { [x: string]: unknown; id: string }) =>
|
|
73
77
|
controlSchema.fields.map((fieldItem) =>
|
|
74
78
|
nodeBuilder({
|
|
75
79
|
controlSchema: fieldItem,
|
|
@@ -87,7 +91,7 @@ function nodeBuilder<Context, BContext extends UnwrapNestedRefs<DetailsBladeCont
|
|
|
87
91
|
nodeBuilder({
|
|
88
92
|
controlSchema: field,
|
|
89
93
|
parentId: `fieldset-${parentId}-${field.id}`,
|
|
90
|
-
internalContext,
|
|
94
|
+
internalContext: reactive(unref(internalContext)),
|
|
91
95
|
bladeContext,
|
|
92
96
|
currentLocale,
|
|
93
97
|
formData,
|
|
@@ -101,13 +105,13 @@ function nodeBuilder<Context, BContext extends UnwrapNestedRefs<DetailsBladeCont
|
|
|
101
105
|
baseOptions,
|
|
102
106
|
bladeContext,
|
|
103
107
|
element: controlSchema,
|
|
104
|
-
currentLocale,
|
|
108
|
+
currentLocale: unref(currentLocale),
|
|
105
109
|
fields: fieldsHandler,
|
|
106
110
|
formData,
|
|
107
|
-
fieldContext: internalContext,
|
|
111
|
+
fieldContext: reactive(unref(internalContext)),
|
|
108
112
|
};
|
|
109
113
|
|
|
110
|
-
return h(component,
|
|
114
|
+
return h(component, elProps);
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
export { nodeBuilder };
|
|
@@ -149,6 +149,10 @@ export interface InputSchema extends SchemaBase {
|
|
|
149
149
|
component: "vc-input";
|
|
150
150
|
variant?: ComponentProps<typeof VcInput>["type"];
|
|
151
151
|
clearable?: boolean;
|
|
152
|
+
prepend?: ControlSchema;
|
|
153
|
+
append?: ControlSchema;
|
|
154
|
+
appendInner?: ControlSchema;
|
|
155
|
+
prependInner?: ControlSchema;
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
export interface VideoSchema extends SchemaBase {
|
|
@@ -234,6 +238,7 @@ export interface CheckboxSchema extends SchemaBase {
|
|
|
234
238
|
export interface FieldsetSchema extends SchemaBase {
|
|
235
239
|
component: "vc-fieldset";
|
|
236
240
|
columns?: number;
|
|
241
|
+
aspectRatio?: number[];
|
|
237
242
|
fields: Exclude<ControlSchema[], FieldsetSchema>;
|
|
238
243
|
remove?: {
|
|
239
244
|
method: string;
|
|
@@ -95,6 +95,7 @@ export type IStatusField = {
|
|
|
95
95
|
export type IInputField = {
|
|
96
96
|
props: ComponentProps<typeof VcInput> | IControlBaseProps;
|
|
97
97
|
options: IControlBaseOptions;
|
|
98
|
+
slots?: Partial<Pick<ComponentSlots<typeof VcInput>, "append" | "prepend" | "append-inner" | "prepend-inner">>;
|
|
98
99
|
} & FieldOpts<typeof VcInput>;
|
|
99
100
|
|
|
100
101
|
export type IContentField = {
|
|
@@ -15,12 +15,17 @@ export interface Props {
|
|
|
15
15
|
withDefaults(defineProps<Props>(), {
|
|
16
16
|
size: "1",
|
|
17
17
|
});
|
|
18
|
+
|
|
19
|
+
defineSlots<{
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
+
default: (props: any) => any;
|
|
22
|
+
}>();
|
|
18
23
|
</script>
|
|
19
24
|
|
|
20
25
|
<style lang="scss">
|
|
21
|
-
.vc-col {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
+
// .vc-col {
|
|
27
|
+
// .vc-app_mobile & {
|
|
28
|
+
// @apply tw-grow #{!important};
|
|
29
|
+
// }
|
|
30
|
+
// }
|
|
26
31
|
</style>
|
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
defineSlots<{
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
|
+
default: (props: any) => any;
|
|
11
|
+
}>();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
7
14
|
<style lang="scss">
|
|
8
15
|
.vc-row {
|
|
9
16
|
.vc-app_mobile & {
|
|
10
|
-
display:
|
|
17
|
+
display: grid;
|
|
11
18
|
}
|
|
12
19
|
}
|
|
13
20
|
</style>
|