@vunk/form 2.12.0 → 2.12.2
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/components/dialog-input-collection/index.cjs +129 -106
- package/components/dialog-input-collection/index.mjs +128 -105
- package/components/dialog-input-collection/src/ctx.d.ts +6 -3
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1184 -49
- package/components/dialog-input-collection/src/index.vue.d.ts +1365 -223
- package/components/dialog-input-collection/src/layout.vue.d.ts +27 -27
- package/components/dialog-input-collection/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.cjs +5 -3
- package/components/form-item-renderer/index.mjs +5 -3
- package/package.json +1 -1
|
@@ -4,33 +4,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}>, {
|
|
7
|
-
readonly VkfRendererData: {
|
|
8
|
-
new (...args: any[]): any;
|
|
9
|
-
__isFragment?: never;
|
|
10
|
-
__isTeleport?: never;
|
|
11
|
-
__isSuspense?: never;
|
|
12
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
[x: symbol]: any;
|
|
15
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
16
|
-
install(app: import("vue").App): void;
|
|
17
|
-
};
|
|
18
|
-
readonly VkfTemplateInstancesProvider: {
|
|
19
|
-
new (...args: any[]): any;
|
|
20
|
-
__isFragment?: never;
|
|
21
|
-
__isTeleport?: never;
|
|
22
|
-
__isSuspense?: never;
|
|
23
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
24
|
-
[x: string]: any;
|
|
25
|
-
[x: symbol]: any;
|
|
26
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
27
|
-
install(app: import("vue").App): void;
|
|
28
|
-
};
|
|
29
|
-
readonly VkfInformationTemplates: import("vue").DefineComponent<{}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}>[]) | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}>[][]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
7
|
readonly VkfInformationData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
35
8
|
data: {
|
|
36
9
|
type: import("vue").PropType<import("packages/entry").NormalObject>;
|
|
@@ -50,6 +23,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
50
23
|
}>, {
|
|
51
24
|
data: import("packages/entry").NormalObject;
|
|
52
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
readonly VkfInformationTemplates: import("vue").DefineComponent<{}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>[]) | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>[][]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
31
|
readonly VkfInformationTemplatesDefault: {
|
|
54
32
|
new (...args: any[]): any;
|
|
55
33
|
__isFragment?: never;
|
|
@@ -61,6 +39,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
39
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
62
40
|
install(app: import("vue").App): void;
|
|
63
41
|
};
|
|
42
|
+
readonly VkfRendererData: {
|
|
43
|
+
new (...args: any[]): any;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
[x: symbol]: any;
|
|
50
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
51
|
+
install(app: import("vue").App): void;
|
|
52
|
+
};
|
|
53
|
+
readonly VkfTemplateInstancesProvider: {
|
|
54
|
+
new (...args: any[]): any;
|
|
55
|
+
__isFragment?: never;
|
|
56
|
+
__isTeleport?: never;
|
|
57
|
+
__isSuspense?: never;
|
|
58
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
[x: symbol]: any;
|
|
61
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
62
|
+
install(app: import("vue").App): void;
|
|
63
|
+
};
|
|
64
64
|
readonly VkfTemplatesDefault: {
|
|
65
65
|
new (...args: any[]): any;
|
|
66
66
|
__isFragment?: never;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { __VkfInformationCollection } from '@vunk/form/components/information-collection';
|
|
1
2
|
import type { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
3
|
import type { BasicSource } from '@vunk/form/shared';
|
|
3
4
|
import type { __VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
4
5
|
import type { AnyFunc, Keyof, NormalObject, VueComponentPropsType } from '@vunk/shared';
|
|
5
6
|
import type { TableColumnCtx } from 'element-plus';
|
|
6
7
|
import type Core from './index.vue';
|
|
7
|
-
import type { __VkfInformationCollection } from '@vunk/form/components/information-collection';
|
|
8
8
|
export type Modules = 'operations:add';
|
|
9
9
|
export interface Source<P extends string = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
10
10
|
prop?: P | P[];
|
|
@@ -70,14 +70,16 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
if (c.templateType && getTemplateInstance(c.templateType)) {
|
|
73
|
-
const templateIf = form.genTemplateIfFunc(c.templateIf);
|
|
74
|
-
const preTemplateVisible = rendererData ? templateIf(rendererData.value) : true;
|
|
75
|
-
if (!preTemplateVisible) return a;
|
|
76
73
|
const slotData = { ...c };
|
|
77
74
|
Object.assign(
|
|
78
75
|
slotData,
|
|
79
76
|
_function.isCallable(c.templateProps) ? c.templateProps(rendererData?.value) : c.templateProps
|
|
80
77
|
);
|
|
78
|
+
const templateIf = form.genTemplateIfFunc(
|
|
79
|
+
slotData.templateIf
|
|
80
|
+
);
|
|
81
|
+
const preTemplateVisible = rendererData ? templateIf(rendererData.value) : true;
|
|
82
|
+
if (!preTemplateVisible) return a;
|
|
81
83
|
const informationProps = _function.isCallable(slotData.informationProps) ? slotData.informationProps(rendererData?.value) : slotData.informationProps;
|
|
82
84
|
const inputEffect = genInputEffectFunc(slotData.inputEffect);
|
|
83
85
|
Reflect.deleteProperty(slotData, "templateType");
|
|
@@ -66,14 +66,16 @@ const VkfFormItemRenderer$1 = defineComponent({
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
if (c.templateType && getTemplateInstance(c.templateType)) {
|
|
69
|
-
const templateIf = genTemplateIfFunc(c.templateIf);
|
|
70
|
-
const preTemplateVisible = rendererData ? templateIf(rendererData.value) : true;
|
|
71
|
-
if (!preTemplateVisible) return a;
|
|
72
69
|
const slotData = { ...c };
|
|
73
70
|
Object.assign(
|
|
74
71
|
slotData,
|
|
75
72
|
isCallable(c.templateProps) ? c.templateProps(rendererData?.value) : c.templateProps
|
|
76
73
|
);
|
|
74
|
+
const templateIf = genTemplateIfFunc(
|
|
75
|
+
slotData.templateIf
|
|
76
|
+
);
|
|
77
|
+
const preTemplateVisible = rendererData ? templateIf(rendererData.value) : true;
|
|
78
|
+
if (!preTemplateVisible) return a;
|
|
77
79
|
const informationProps = isCallable(slotData.informationProps) ? slotData.informationProps(rendererData?.value) : slotData.informationProps;
|
|
78
80
|
const inputEffect = genInputEffectFunc(slotData.inputEffect);
|
|
79
81
|
Reflect.deleteProperty(slotData, "templateType");
|