@94ai-plus/nf-date-picker 0.0.0-stage → 1.0.0-alpha.5
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/LICENSE +21 -0
- package/README.md +69 -2
- package/dist/browser/index.js +2355 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/index.umd.js +3 -0
- package/dist/browser/index.umd.js.map +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/es/index.mjs +785 -0
- package/dist/es/index.mjs.map +1 -0
- package/dist/readme/94logo.png +0 -0
- package/dist/readme/common-plus.svg +7 -0
- package/dist/readme/contributors-wall.svg +16 -0
- package/dist/readme/contributors.svg +27 -0
- package/dist/style/index.css +2 -0
- package/dist/types/date-picker.vue.d.ts +34 -0
- package/dist/types/global.d.ts +13 -0
- package/dist/types/half-year-picker.vue.d.ts +30 -0
- package/dist/types/half-year-range-picker.vue.d.ts +30 -0
- package/dist/types/index.d.ts +471 -0
- package/dist/types/model.d.ts +5 -0
- package/dist/types/types.d.ts +36 -0
- package/dist/types/week-range-picker.vue.d.ts +30 -0
- package/package.json +63 -4
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import './global';
|
|
3
|
+
import './style/index.scss';
|
|
4
|
+
export declare const NfHalfYearPicker: {
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
7
|
+
size?: "small" | "default" | "large" | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
clearable?: boolean | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
startPlaceholder?: string | undefined;
|
|
12
|
+
endPlaceholder?: string | undefined;
|
|
13
|
+
valueFormat?: string | undefined;
|
|
14
|
+
format?: string | undefined;
|
|
15
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
16
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
17
|
+
teleported?: boolean | undefined;
|
|
18
|
+
popperClass?: string | undefined;
|
|
19
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
20
|
+
}> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
22
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
23
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
24
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
25
|
+
onClear?: (() => any) | undefined;
|
|
26
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
27
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
focus: () => void | undefined;
|
|
30
|
+
blur: () => void | undefined;
|
|
31
|
+
handleOpen: () => void | undefined;
|
|
32
|
+
handleClose: () => void | undefined;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
35
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
36
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
37
|
+
"visible-change": (visible: boolean) => any;
|
|
38
|
+
clear: () => any;
|
|
39
|
+
focus: (event: FocusEvent) => any;
|
|
40
|
+
blur: (event: FocusEvent) => any;
|
|
41
|
+
}, import("vue").PublicProps, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
clearable: boolean;
|
|
44
|
+
teleported: boolean;
|
|
45
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<{
|
|
53
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
54
|
+
size?: "small" | "default" | "large" | undefined;
|
|
55
|
+
disabled?: boolean | undefined;
|
|
56
|
+
clearable?: boolean | undefined;
|
|
57
|
+
placeholder?: string | undefined;
|
|
58
|
+
startPlaceholder?: string | undefined;
|
|
59
|
+
endPlaceholder?: string | undefined;
|
|
60
|
+
valueFormat?: string | undefined;
|
|
61
|
+
format?: string | undefined;
|
|
62
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
63
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
64
|
+
teleported?: boolean | undefined;
|
|
65
|
+
popperClass?: string | undefined;
|
|
66
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
69
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
70
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
71
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
72
|
+
onClear?: (() => any) | undefined;
|
|
73
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
74
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
focus: () => void | undefined;
|
|
77
|
+
blur: () => void | undefined;
|
|
78
|
+
handleOpen: () => void | undefined;
|
|
79
|
+
handleClose: () => void | undefined;
|
|
80
|
+
}, {}, {}, {}, {
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
clearable: boolean;
|
|
83
|
+
teleported: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
__isFragment?: never;
|
|
86
|
+
__isTeleport?: never;
|
|
87
|
+
__isSuspense?: never;
|
|
88
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
89
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
90
|
+
size?: "small" | "default" | "large" | undefined;
|
|
91
|
+
disabled?: boolean | undefined;
|
|
92
|
+
clearable?: boolean | undefined;
|
|
93
|
+
placeholder?: string | undefined;
|
|
94
|
+
startPlaceholder?: string | undefined;
|
|
95
|
+
endPlaceholder?: string | undefined;
|
|
96
|
+
valueFormat?: string | undefined;
|
|
97
|
+
format?: string | undefined;
|
|
98
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
99
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
100
|
+
teleported?: boolean | undefined;
|
|
101
|
+
popperClass?: string | undefined;
|
|
102
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
103
|
+
}> & Readonly<{
|
|
104
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
105
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
106
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
107
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
108
|
+
onClear?: (() => any) | undefined;
|
|
109
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
110
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
111
|
+
}>, {
|
|
112
|
+
focus: () => void | undefined;
|
|
113
|
+
blur: () => void | undefined;
|
|
114
|
+
handleOpen: () => void | undefined;
|
|
115
|
+
handleClose: () => void | undefined;
|
|
116
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
117
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
118
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
119
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
120
|
+
"visible-change": (visible: boolean) => any;
|
|
121
|
+
clear: () => any;
|
|
122
|
+
focus: (event: FocusEvent) => any;
|
|
123
|
+
blur: (event: FocusEvent) => any;
|
|
124
|
+
}, string, {
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
clearable: boolean;
|
|
127
|
+
teleported: boolean;
|
|
128
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
129
|
+
install(app: App): void;
|
|
130
|
+
};
|
|
131
|
+
export declare const NfHalfYearRangePicker: {
|
|
132
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
133
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
134
|
+
size?: "small" | "default" | "large" | undefined;
|
|
135
|
+
disabled?: boolean | undefined;
|
|
136
|
+
clearable?: boolean | undefined;
|
|
137
|
+
placeholder?: string | undefined;
|
|
138
|
+
startPlaceholder?: string | undefined;
|
|
139
|
+
endPlaceholder?: string | undefined;
|
|
140
|
+
valueFormat?: string | undefined;
|
|
141
|
+
format?: string | undefined;
|
|
142
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
143
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
144
|
+
teleported?: boolean | undefined;
|
|
145
|
+
popperClass?: string | undefined;
|
|
146
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
147
|
+
}> & Readonly<{
|
|
148
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
149
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
150
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
151
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
152
|
+
onClear?: (() => any) | undefined;
|
|
153
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
154
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
155
|
+
}>, {
|
|
156
|
+
focus: () => void | undefined;
|
|
157
|
+
blur: () => void | undefined;
|
|
158
|
+
handleOpen: () => void | undefined;
|
|
159
|
+
handleClose: () => void | undefined;
|
|
160
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
161
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
162
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
163
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
164
|
+
"visible-change": (visible: boolean) => any;
|
|
165
|
+
clear: () => any;
|
|
166
|
+
focus: (event: FocusEvent) => any;
|
|
167
|
+
blur: (event: FocusEvent) => any;
|
|
168
|
+
}, import("vue").PublicProps, {
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
clearable: boolean;
|
|
171
|
+
teleported: boolean;
|
|
172
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
173
|
+
P: {};
|
|
174
|
+
B: {};
|
|
175
|
+
D: {};
|
|
176
|
+
C: {};
|
|
177
|
+
M: {};
|
|
178
|
+
Defaults: {};
|
|
179
|
+
}, Readonly<{
|
|
180
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
181
|
+
size?: "small" | "default" | "large" | undefined;
|
|
182
|
+
disabled?: boolean | undefined;
|
|
183
|
+
clearable?: boolean | undefined;
|
|
184
|
+
placeholder?: string | undefined;
|
|
185
|
+
startPlaceholder?: string | undefined;
|
|
186
|
+
endPlaceholder?: string | undefined;
|
|
187
|
+
valueFormat?: string | undefined;
|
|
188
|
+
format?: string | undefined;
|
|
189
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
190
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
191
|
+
teleported?: boolean | undefined;
|
|
192
|
+
popperClass?: string | undefined;
|
|
193
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
194
|
+
}> & Readonly<{
|
|
195
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
196
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
197
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
198
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
199
|
+
onClear?: (() => any) | undefined;
|
|
200
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
201
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
202
|
+
}>, {
|
|
203
|
+
focus: () => void | undefined;
|
|
204
|
+
blur: () => void | undefined;
|
|
205
|
+
handleOpen: () => void | undefined;
|
|
206
|
+
handleClose: () => void | undefined;
|
|
207
|
+
}, {}, {}, {}, {
|
|
208
|
+
disabled: boolean;
|
|
209
|
+
clearable: boolean;
|
|
210
|
+
teleported: boolean;
|
|
211
|
+
}>;
|
|
212
|
+
__isFragment?: never;
|
|
213
|
+
__isTeleport?: never;
|
|
214
|
+
__isSuspense?: never;
|
|
215
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
216
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
217
|
+
size?: "small" | "default" | "large" | undefined;
|
|
218
|
+
disabled?: boolean | undefined;
|
|
219
|
+
clearable?: boolean | undefined;
|
|
220
|
+
placeholder?: string | undefined;
|
|
221
|
+
startPlaceholder?: string | undefined;
|
|
222
|
+
endPlaceholder?: string | undefined;
|
|
223
|
+
valueFormat?: string | undefined;
|
|
224
|
+
format?: string | undefined;
|
|
225
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
226
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
227
|
+
teleported?: boolean | undefined;
|
|
228
|
+
popperClass?: string | undefined;
|
|
229
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
230
|
+
}> & Readonly<{
|
|
231
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
232
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
233
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
234
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
235
|
+
onClear?: (() => any) | undefined;
|
|
236
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
237
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
238
|
+
}>, {
|
|
239
|
+
focus: () => void | undefined;
|
|
240
|
+
blur: () => void | undefined;
|
|
241
|
+
handleOpen: () => void | undefined;
|
|
242
|
+
handleClose: () => void | undefined;
|
|
243
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
244
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
245
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
246
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
247
|
+
"visible-change": (visible: boolean) => any;
|
|
248
|
+
clear: () => any;
|
|
249
|
+
focus: (event: FocusEvent) => any;
|
|
250
|
+
blur: (event: FocusEvent) => any;
|
|
251
|
+
}, string, {
|
|
252
|
+
disabled: boolean;
|
|
253
|
+
clearable: boolean;
|
|
254
|
+
teleported: boolean;
|
|
255
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
256
|
+
install(app: App): void;
|
|
257
|
+
};
|
|
258
|
+
export declare const NfWeekRangePicker: {
|
|
259
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
260
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
261
|
+
size?: "small" | "default" | "large" | undefined;
|
|
262
|
+
disabled?: boolean | undefined;
|
|
263
|
+
clearable?: boolean | undefined;
|
|
264
|
+
placeholder?: string | undefined;
|
|
265
|
+
startPlaceholder?: string | undefined;
|
|
266
|
+
endPlaceholder?: string | undefined;
|
|
267
|
+
valueFormat?: string | undefined;
|
|
268
|
+
format?: string | undefined;
|
|
269
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
270
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
271
|
+
teleported?: boolean | undefined;
|
|
272
|
+
popperClass?: string | undefined;
|
|
273
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
274
|
+
}> & Readonly<{
|
|
275
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
276
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
277
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
278
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
279
|
+
onClear?: (() => any) | undefined;
|
|
280
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
281
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
282
|
+
}>, {
|
|
283
|
+
focus: () => void | undefined;
|
|
284
|
+
blur: () => void | undefined;
|
|
285
|
+
handleOpen: () => void | undefined;
|
|
286
|
+
handleClose: () => void | undefined;
|
|
287
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
288
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
289
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
290
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
291
|
+
"visible-change": (visible: boolean) => any;
|
|
292
|
+
clear: () => any;
|
|
293
|
+
focus: (event: FocusEvent) => any;
|
|
294
|
+
blur: (event: FocusEvent) => any;
|
|
295
|
+
}, import("vue").PublicProps, {
|
|
296
|
+
disabled: boolean;
|
|
297
|
+
clearable: boolean;
|
|
298
|
+
teleported: boolean;
|
|
299
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
300
|
+
P: {};
|
|
301
|
+
B: {};
|
|
302
|
+
D: {};
|
|
303
|
+
C: {};
|
|
304
|
+
M: {};
|
|
305
|
+
Defaults: {};
|
|
306
|
+
}, Readonly<{
|
|
307
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
308
|
+
size?: "small" | "default" | "large" | undefined;
|
|
309
|
+
disabled?: boolean | undefined;
|
|
310
|
+
clearable?: boolean | undefined;
|
|
311
|
+
placeholder?: string | undefined;
|
|
312
|
+
startPlaceholder?: string | undefined;
|
|
313
|
+
endPlaceholder?: string | undefined;
|
|
314
|
+
valueFormat?: string | undefined;
|
|
315
|
+
format?: string | undefined;
|
|
316
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
317
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
318
|
+
teleported?: boolean | undefined;
|
|
319
|
+
popperClass?: string | undefined;
|
|
320
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
321
|
+
}> & Readonly<{
|
|
322
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
323
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
324
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
325
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
326
|
+
onClear?: (() => any) | undefined;
|
|
327
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
328
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
329
|
+
}>, {
|
|
330
|
+
focus: () => void | undefined;
|
|
331
|
+
blur: () => void | undefined;
|
|
332
|
+
handleOpen: () => void | undefined;
|
|
333
|
+
handleClose: () => void | undefined;
|
|
334
|
+
}, {}, {}, {}, {
|
|
335
|
+
disabled: boolean;
|
|
336
|
+
clearable: boolean;
|
|
337
|
+
teleported: boolean;
|
|
338
|
+
}>;
|
|
339
|
+
__isFragment?: never;
|
|
340
|
+
__isTeleport?: never;
|
|
341
|
+
__isSuspense?: never;
|
|
342
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
343
|
+
modelValue?: import("./types").DatePickerModelValue | undefined;
|
|
344
|
+
size?: "small" | "default" | "large" | undefined;
|
|
345
|
+
disabled?: boolean | undefined;
|
|
346
|
+
clearable?: boolean | undefined;
|
|
347
|
+
placeholder?: string | undefined;
|
|
348
|
+
startPlaceholder?: string | undefined;
|
|
349
|
+
endPlaceholder?: string | undefined;
|
|
350
|
+
valueFormat?: string | undefined;
|
|
351
|
+
format?: string | undefined;
|
|
352
|
+
disabledDate?: ((date: Date) => boolean) | undefined;
|
|
353
|
+
defaultValue?: (Date | [Date, Date]) | undefined;
|
|
354
|
+
teleported?: boolean | undefined;
|
|
355
|
+
popperClass?: string | undefined;
|
|
356
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
357
|
+
}> & Readonly<{
|
|
358
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
359
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
360
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
361
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
362
|
+
onClear?: (() => any) | undefined;
|
|
363
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
364
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
365
|
+
}>, {
|
|
366
|
+
focus: () => void | undefined;
|
|
367
|
+
blur: () => void | undefined;
|
|
368
|
+
handleOpen: () => void | undefined;
|
|
369
|
+
handleClose: () => void | undefined;
|
|
370
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
371
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
372
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
373
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
374
|
+
"visible-change": (visible: boolean) => any;
|
|
375
|
+
clear: () => any;
|
|
376
|
+
focus: (event: FocusEvent) => any;
|
|
377
|
+
blur: (event: FocusEvent) => any;
|
|
378
|
+
}, string, {
|
|
379
|
+
disabled: boolean;
|
|
380
|
+
clearable: boolean;
|
|
381
|
+
teleported: boolean;
|
|
382
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
383
|
+
install(app: App): void;
|
|
384
|
+
};
|
|
385
|
+
export declare const NfDatePicker: {
|
|
386
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").NfDatePickerProps> & Readonly<{
|
|
387
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
388
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
389
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
390
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
391
|
+
onClear?: (() => any) | undefined;
|
|
392
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
393
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
394
|
+
}>, {
|
|
395
|
+
focus: () => void;
|
|
396
|
+
blur: () => void;
|
|
397
|
+
handleOpen: () => void;
|
|
398
|
+
handleClose: () => void;
|
|
399
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
400
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
401
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
402
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
403
|
+
"visible-change": (visible: boolean) => any;
|
|
404
|
+
clear: () => any;
|
|
405
|
+
focus: (event: FocusEvent) => any;
|
|
406
|
+
blur: (event: FocusEvent) => any;
|
|
407
|
+
}, import("vue").PublicProps, {
|
|
408
|
+
type: import("./types").DatePickerType;
|
|
409
|
+
disabled: boolean;
|
|
410
|
+
clearable: boolean;
|
|
411
|
+
teleported: boolean;
|
|
412
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
413
|
+
P: {};
|
|
414
|
+
B: {};
|
|
415
|
+
D: {};
|
|
416
|
+
C: {};
|
|
417
|
+
M: {};
|
|
418
|
+
Defaults: {};
|
|
419
|
+
}, Readonly<import("./types").NfDatePickerProps> & Readonly<{
|
|
420
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
421
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
422
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
423
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
424
|
+
onClear?: (() => any) | undefined;
|
|
425
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
426
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
427
|
+
}>, {
|
|
428
|
+
focus: () => void;
|
|
429
|
+
blur: () => void;
|
|
430
|
+
handleOpen: () => void;
|
|
431
|
+
handleClose: () => void;
|
|
432
|
+
}, {}, {}, {}, {
|
|
433
|
+
type: import("./types").DatePickerType;
|
|
434
|
+
disabled: boolean;
|
|
435
|
+
clearable: boolean;
|
|
436
|
+
teleported: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
__isFragment?: never;
|
|
439
|
+
__isTeleport?: never;
|
|
440
|
+
__isSuspense?: never;
|
|
441
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./types").NfDatePickerProps> & Readonly<{
|
|
442
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
443
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
444
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
445
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
446
|
+
onClear?: (() => any) | undefined;
|
|
447
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
448
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
449
|
+
}>, {
|
|
450
|
+
focus: () => void;
|
|
451
|
+
blur: () => void;
|
|
452
|
+
handleOpen: () => void;
|
|
453
|
+
handleClose: () => void;
|
|
454
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
455
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
456
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
457
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
458
|
+
"visible-change": (visible: boolean) => any;
|
|
459
|
+
clear: () => any;
|
|
460
|
+
focus: (event: FocusEvent) => any;
|
|
461
|
+
blur: (event: FocusEvent) => any;
|
|
462
|
+
}, string, {
|
|
463
|
+
type: import("./types").DatePickerType;
|
|
464
|
+
disabled: boolean;
|
|
465
|
+
clearable: boolean;
|
|
466
|
+
teleported: boolean;
|
|
467
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
468
|
+
install(app: App): void;
|
|
469
|
+
};
|
|
470
|
+
export type * from './types';
|
|
471
|
+
export default NfDatePicker;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DatePickerValue } from './types';
|
|
2
|
+
export declare function readDate(value: DatePickerValue | null | undefined, format?: string): Date | undefined;
|
|
3
|
+
export declare function halfYearStart(value: Date): Date;
|
|
4
|
+
export declare function normalizeWeekRange(values: Date[], locale: string, weekStartsOn?: number): [Date, Date];
|
|
5
|
+
export declare function writeDate(value: Date, format?: string): Date | string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type DatePickerValue = Date | string | number;
|
|
2
|
+
export type DatePickerModelValue = DatePickerValue | DatePickerValue[] | null;
|
|
3
|
+
export type DatePickerType = 'halfyear' | 'halfyearrange' | 'weekrange';
|
|
4
|
+
export interface NfDatePickerProps {
|
|
5
|
+
modelValue?: DatePickerModelValue;
|
|
6
|
+
type?: DatePickerType;
|
|
7
|
+
size?: 'small' | 'default' | 'large';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
clearable?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
startPlaceholder?: string;
|
|
12
|
+
endPlaceholder?: string;
|
|
13
|
+
valueFormat?: string;
|
|
14
|
+
format?: string;
|
|
15
|
+
disabledDate?: (date: Date) => boolean;
|
|
16
|
+
defaultValue?: Date | [Date, Date];
|
|
17
|
+
teleported?: boolean;
|
|
18
|
+
popperClass?: string;
|
|
19
|
+
/** Week start: 0=Sunday, 1=Monday, etc. Defaults to the Element Plus locale. */
|
|
20
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
21
|
+
}
|
|
22
|
+
export interface DatePickerInstance {
|
|
23
|
+
focus(): void;
|
|
24
|
+
blur(): void;
|
|
25
|
+
handleOpen(): void;
|
|
26
|
+
handleClose(): void;
|
|
27
|
+
}
|
|
28
|
+
export interface NfDatePickerEmits {
|
|
29
|
+
'update:modelValue': [value: DatePickerModelValue];
|
|
30
|
+
change: [value: DatePickerModelValue];
|
|
31
|
+
'calendar-change': [value: (Date | null)[]];
|
|
32
|
+
'visible-change': [visible: boolean];
|
|
33
|
+
clear: [];
|
|
34
|
+
focus: [event: FocusEvent];
|
|
35
|
+
blur: [event: FocusEvent];
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NfDatePickerProps } from './types';
|
|
2
|
+
type __VLS_Props = Omit<NfDatePickerProps, 'type'>;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
4
|
+
focus: () => void | undefined;
|
|
5
|
+
blur: () => void | undefined;
|
|
6
|
+
handleOpen: () => void | undefined;
|
|
7
|
+
handleClose: () => void | undefined;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: import("./types").DatePickerModelValue) => any;
|
|
10
|
+
change: (value: import("./types").DatePickerModelValue) => any;
|
|
11
|
+
"calendar-change": (value: (Date | null)[]) => any;
|
|
12
|
+
"visible-change": (visible: boolean) => any;
|
|
13
|
+
clear: () => any;
|
|
14
|
+
focus: (event: FocusEvent) => any;
|
|
15
|
+
blur: (event: FocusEvent) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
18
|
+
onChange?: ((value: import("./types").DatePickerModelValue) => any) | undefined;
|
|
19
|
+
"onCalendar-change"?: ((value: (Date | null)[]) => any) | undefined;
|
|
20
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
21
|
+
onClear?: (() => any) | undefined;
|
|
22
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
23
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
clearable: boolean;
|
|
27
|
+
teleported: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai-plus/nf-date-picker",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://oss.xccjh.top/common-ui-plus/index.html",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"vue3组件库",
|
|
8
|
+
"拥抱最新技术生态,面向AI,九四智能下一代公共组件库",
|
|
9
|
+
"九四智能组件库",
|
|
10
|
+
"94ai 组件库",
|
|
11
|
+
"teleai 组件库",
|
|
12
|
+
"94 Intelligent Technology Co., Ltd. Component Library"
|
|
13
|
+
],
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "http://gitlab.94ai.pro/ui/common-ui-plus/-/issues"
|
|
16
|
+
},
|
|
17
|
+
"description": "Half-year, half-year range and week-range date pickers for Vue 3 and Element Plus",
|
|
18
|
+
"type": "module",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+http://gitlab.94ai.pro/ui/common-ui-plus.git",
|
|
22
|
+
"directory": "packages/nf-date-picker"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/cjs/index.cjs",
|
|
25
|
+
"module": "./dist/es/index.mjs",
|
|
26
|
+
"browser": "./dist/browser/index.js",
|
|
27
|
+
"types": "./dist/types/index.d.ts",
|
|
28
|
+
"style": "./dist/style/index.css",
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"**/*.css",
|
|
36
|
+
"**/*.scss"
|
|
37
|
+
],
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./dist/types/index.d.ts",
|
|
41
|
+
"browser": "./dist/browser/index.js",
|
|
42
|
+
"import": "./dist/es/index.mjs",
|
|
43
|
+
"require": "./dist/cjs/index.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./browser": {
|
|
46
|
+
"import": "./dist/browser/index.js",
|
|
47
|
+
"require": "./dist/browser/index.umd.js"
|
|
48
|
+
},
|
|
49
|
+
"./style": "./dist/style/index.css",
|
|
50
|
+
"./style.css": "./dist/style/index.css",
|
|
51
|
+
"./global": "./dist/types/global.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@94ai-plus/common-locale": "^1.0.0-alpha.5",
|
|
55
|
+
"@94ai-plus/nf-theme-chalk": "^1.0.0-alpha.5"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"element-plus": "^2.14.7",
|
|
59
|
+
"vue": "^3.5.44"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "86e1f6bfb46296a729ca4309723da0b57a4e72ab"
|
|
65
|
+
}
|