@vunk/form 0.0.0-alpha.5 → 0.0.0-alpha.6
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/confirm-input/index.css +9 -9
- package/components/date-picker/index.d.ts +4 -0
- package/components/date-picker/index.js +81 -0
- package/components/date-picker/src/ctx.d.ts +163 -0
- package/components/date-picker/src/index.vue.d.ts +407 -0
- package/components/date-picker/src/types.d.ts +14 -0
- package/components/form/index.js +16 -1
- package/components/ground/index.css +53 -53
- package/components/ground/index.js +25 -18
- package/components/ground/src/ground-main/src/index.vue.d.ts +5 -1
- package/components/ground/src/index.vue.d.ts +18 -7
- package/full-entry/main.d.ts +1 -0
- package/index.css +62 -62
- package/index.d.ts +2 -0
- package/index.esm.js +1 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx/index.d.ts +2 -0
- package/shared/element-plus/ctx/index.js +22 -2
- package/shared/element-plus/instances/date-picker.d.ts +126 -0
- package/shared/element-plus/instances/date-picker.js +21 -0
- package/shared/types/form-item/date-picker.d.ts +8 -0
- package/shared/types/form-item/date-picker.js +1 -0
- package/shared/types/form-item/index.d.ts +1 -0
- package/shared/types/index.d.ts +2 -2
- package/types/components/date-picker/index.d.ts +4 -0
- package/types/components/date-picker/src/ctx.d.ts +163 -0
- package/types/components/date-picker/src/index.vue.d.ts +407 -0
- package/types/components/date-picker/src/types.d.ts +14 -0
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +5 -1
- package/types/components/ground/src/index.vue.d.ts +18 -7
- package/types/full-entry/main.d.ts +1 -0
- package/types/shared/element-plus/ctx/index.d.ts +2 -0
- package/types/shared/element-plus/instances/date-picker.d.ts +126 -0
- package/types/shared/types/form-item/date-picker.d.ts +8 -0
- package/types/shared/types/form-item/index.d.ts +1 -0
- package/types/shared/types/index.d.ts +2 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const datePickerProps: {
|
|
3
|
+
type: {
|
|
4
|
+
type: PropType<"year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
id: {
|
|
8
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
popperClass: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
format: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
valueFormat: {
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
};
|
|
24
|
+
clearable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
clearIcon: {
|
|
29
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
30
|
+
default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
31
|
+
};
|
|
32
|
+
editable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
prefixIcon: {
|
|
37
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
42
|
+
validator: (val: string) => val is "" | "default" | "small" | "large";
|
|
43
|
+
};
|
|
44
|
+
readonly: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
placeholder: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
popperOptions: {
|
|
57
|
+
type: PropType<Partial<import("element-plus").Options>>;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
modelValue: {
|
|
61
|
+
type: PropType<string | number | Date | (string | number | Date)[]>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
rangeSeparator: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
startPlaceholder: StringConstructor;
|
|
69
|
+
endPlaceholder: StringConstructor;
|
|
70
|
+
defaultValue: {
|
|
71
|
+
type: PropType<Date | Date[]>;
|
|
72
|
+
};
|
|
73
|
+
defaultTime: {
|
|
74
|
+
type: PropType<Date | Date[]>;
|
|
75
|
+
};
|
|
76
|
+
isRange: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
disabledHours: {
|
|
81
|
+
type: FunctionConstructor;
|
|
82
|
+
};
|
|
83
|
+
disabledMinutes: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
};
|
|
86
|
+
disabledSeconds: {
|
|
87
|
+
type: FunctionConstructor;
|
|
88
|
+
};
|
|
89
|
+
disabledDate: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
};
|
|
92
|
+
cellClassName: {
|
|
93
|
+
type: FunctionConstructor;
|
|
94
|
+
};
|
|
95
|
+
shortcuts: {
|
|
96
|
+
type: ArrayConstructor;
|
|
97
|
+
default: () => never[];
|
|
98
|
+
};
|
|
99
|
+
arrowControl: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
label: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
tabindex: {
|
|
108
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
109
|
+
default: number;
|
|
110
|
+
};
|
|
111
|
+
validateEvent: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
unlinkPanels: BooleanConstructor;
|
|
116
|
+
};
|
|
117
|
+
export declare const datePickerEmits: {
|
|
118
|
+
'update:modelValue': null;
|
|
119
|
+
change: null;
|
|
120
|
+
focus: null;
|
|
121
|
+
blur: null;
|
|
122
|
+
'calendar-change': null;
|
|
123
|
+
'panel-change': null;
|
|
124
|
+
'visible-change': null;
|
|
125
|
+
keydown: null;
|
|
126
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { timePickerDefaultProps } from 'element-plus';
|
|
2
|
+
|
|
3
|
+
const datePickerProps = {
|
|
4
|
+
...timePickerDefaultProps,
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "date"
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const datePickerEmits = {
|
|
11
|
+
"update:modelValue": null,
|
|
12
|
+
"change": null,
|
|
13
|
+
"focus": null,
|
|
14
|
+
"blur": null,
|
|
15
|
+
"calendar-change": null,
|
|
16
|
+
"panel-change": null,
|
|
17
|
+
"visible-change": null,
|
|
18
|
+
"keydown": null
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { datePickerEmits, datePickerProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
2
|
+
import { VueComponentPropsType } from 'vunk/shared/types';
|
|
3
|
+
import { Replace } from '../shared';
|
|
4
|
+
export declare type VkfDatePickerProps<T = undefined> = Replace<VueComponentPropsType<typeof VkfDatePicker>, T>;
|
|
5
|
+
export declare type VkfDatePickerSource<P = string> = VkfDatePickerProps<{
|
|
6
|
+
prop: P;
|
|
7
|
+
templateType: 'VkfDatePicker';
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/shared/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VkfInputSource, VkfSwitchSource, VkfSelectSource } from './form-item';
|
|
1
|
+
import { VkfInputSource, VkfSwitchSource, VkfSelectSource, VkfDatePickerSource } from './form-item';
|
|
2
2
|
export * from './shared';
|
|
3
|
-
export declare type FormItemRendererSource<P = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P>;
|
|
3
|
+
export declare type FormItemRendererSource<P = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P>;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DatePickerSlots } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
datePickerSlots: {
|
|
5
|
+
type: PropType<DatePickerSlots>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: PropType<"date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
id: {
|
|
13
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
name: {
|
|
16
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
popperClass: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
format: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
valueFormat: {
|
|
27
|
+
type: PropType<string>;
|
|
28
|
+
};
|
|
29
|
+
clearable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
clearIcon: {
|
|
34
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
35
|
+
default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
36
|
+
};
|
|
37
|
+
editable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
prefixIcon: {
|
|
42
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
type: PropType<"" | "small" | "default" | "large">;
|
|
47
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
48
|
+
};
|
|
49
|
+
readonly: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
placeholder: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
popperOptions: {
|
|
62
|
+
type: PropType<Partial<import("element-plus").Options>>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: PropType<string | number | Date | (string | number | Date)[]>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
rangeSeparator: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
startPlaceholder: StringConstructor;
|
|
74
|
+
endPlaceholder: StringConstructor;
|
|
75
|
+
defaultValue: {
|
|
76
|
+
type: PropType<Date | Date[]>;
|
|
77
|
+
};
|
|
78
|
+
defaultTime: {
|
|
79
|
+
type: PropType<Date | Date[]>;
|
|
80
|
+
};
|
|
81
|
+
isRange: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
disabledHours: {
|
|
86
|
+
type: FunctionConstructor;
|
|
87
|
+
};
|
|
88
|
+
disabledMinutes: {
|
|
89
|
+
type: FunctionConstructor;
|
|
90
|
+
};
|
|
91
|
+
disabledSeconds: {
|
|
92
|
+
type: FunctionConstructor;
|
|
93
|
+
};
|
|
94
|
+
disabledDate: {
|
|
95
|
+
type: FunctionConstructor;
|
|
96
|
+
};
|
|
97
|
+
cellClassName: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
};
|
|
100
|
+
shortcuts: {
|
|
101
|
+
type: ArrayConstructor;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
arrowControl: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
label: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
tabindex: {
|
|
113
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
validateEvent: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
unlinkPanels: BooleanConstructor;
|
|
121
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
122
|
+
rules: {
|
|
123
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
};
|
|
128
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
129
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
130
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
131
|
+
prop: {
|
|
132
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
133
|
+
readonly required: false;
|
|
134
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
|
+
__epPropKey: true;
|
|
136
|
+
};
|
|
137
|
+
error: StringConstructor;
|
|
138
|
+
validateStatus: {
|
|
139
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
140
|
+
readonly required: false;
|
|
141
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
|
+
__epPropKey: true;
|
|
143
|
+
};
|
|
144
|
+
for: StringConstructor;
|
|
145
|
+
formItemSize: {
|
|
146
|
+
type: PropType<"small" | "default" | "large">;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
formItemSlots: {
|
|
150
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare const emits: {
|
|
155
|
+
'update:modelValue': null;
|
|
156
|
+
change: null;
|
|
157
|
+
focus: null;
|
|
158
|
+
blur: null;
|
|
159
|
+
'calendar-change': null;
|
|
160
|
+
'panel-change': null;
|
|
161
|
+
'visible-change': null;
|
|
162
|
+
keydown: null;
|
|
163
|
+
};
|