cosey 0.7.16 → 0.8.0
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/components.d.ts +3 -1
- package/components/components.js +1 -0
- package/components/field/components/date/date.d.ts +1 -0
- package/components/field/components/week/week.vue.js +1 -1
- package/components/field/components/week-range/week-range.d.ts +5 -0
- package/components/field/components/week-range/week-range.js +1 -0
- package/components/field/components/week-range/week-range.vue.d.ts +4 -0
- package/components/field/components/week-range/week-range.vue.js +34 -0
- package/components/field/field.api.d.ts +3 -0
- package/components/field/field.api.js +72 -70
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/table/table-query/table-query.js +2 -1
- package/components/week-range-picker/index.d.ts +865 -0
- package/components/week-range-picker/index.js +7 -0
- package/components/week-range-picker/panel-week-range.api.d.ts +32 -0
- package/components/week-range-picker/panel-week-range.api.js +15 -0
- package/components/week-range-picker/panel-week-range.d.ts +25 -0
- package/components/week-range-picker/panel-week-range.js +207 -0
- package/components/week-range-picker/panel-week-range.style.d.ts +4 -0
- package/components/week-range-picker/panel-week-range.style.js +94 -0
- package/components/week-range-picker/week-range-picker.api.d.ts +269 -0
- package/components/week-range-picker/week-range-picker.api.js +16 -0
- package/components/week-range-picker/week-range-picker.d.ts +540 -0
- package/components/week-range-picker/week-range-picker.js +44 -0
- package/components/week-range-picker/week-range-picker.style.d.ts +4 -0
- package/components/week-range-picker/week-range-picker.style.js +12 -0
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/ar.js +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/en.js +2 -1
- package/locale/lang/zh-cn.d.ts +1 -0
- package/locale/lang/zh-cn.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<Date[]>;
|
|
4
|
+
};
|
|
5
|
+
showNow: {
|
|
6
|
+
readonly type: import("vue").PropType<boolean>;
|
|
7
|
+
readonly required: false;
|
|
8
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
|
+
__epPropKey: true;
|
|
10
|
+
} & {
|
|
11
|
+
readonly default: true;
|
|
12
|
+
};
|
|
13
|
+
showConfirm: {
|
|
14
|
+
readonly type: import("vue").PropType<boolean>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
} & {
|
|
19
|
+
readonly default: true;
|
|
20
|
+
};
|
|
21
|
+
showFooter: {
|
|
22
|
+
readonly type: import("vue").PropType<boolean>;
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
+
__epPropKey: true;
|
|
26
|
+
} & {
|
|
27
|
+
readonly default: true;
|
|
28
|
+
};
|
|
29
|
+
showWeekNumber: BooleanConstructor;
|
|
30
|
+
ariaLabel: StringConstructor;
|
|
31
|
+
emptyValues: ArrayConstructor;
|
|
32
|
+
valueOnClear: {
|
|
33
|
+
readonly type: import("vue").PropType<string | number | boolean | Function | null>;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly default: undefined;
|
|
39
|
+
};
|
|
40
|
+
disabledDate: {
|
|
41
|
+
readonly type: import("vue").PropType<Function>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
46
|
+
cellClassName: {
|
|
47
|
+
readonly type: import("vue").PropType<Function>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
};
|
|
52
|
+
shortcuts: {
|
|
53
|
+
readonly type: import("vue").PropType<unknown[]>;
|
|
54
|
+
readonly required: false;
|
|
55
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
|
+
__epPropKey: true;
|
|
57
|
+
} & {
|
|
58
|
+
readonly default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
arrowControl: BooleanConstructor;
|
|
61
|
+
tabindex: {
|
|
62
|
+
readonly type: import("vue").PropType<string | number>;
|
|
63
|
+
readonly required: false;
|
|
64
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
|
+
__epPropKey: true;
|
|
66
|
+
} & {
|
|
67
|
+
readonly default: 0;
|
|
68
|
+
};
|
|
69
|
+
validateEvent: {
|
|
70
|
+
readonly type: import("vue").PropType<boolean>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
} & {
|
|
75
|
+
readonly default: true;
|
|
76
|
+
};
|
|
77
|
+
unlinkPanels: BooleanConstructor;
|
|
78
|
+
placement: {
|
|
79
|
+
readonly type: import("vue").PropType<any>;
|
|
80
|
+
readonly required: false;
|
|
81
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
+
__epPropKey: true;
|
|
83
|
+
} & {
|
|
84
|
+
readonly default: "bottom";
|
|
85
|
+
};
|
|
86
|
+
fallbackPlacements: {
|
|
87
|
+
readonly type: import("vue").PropType<Placement[]>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
} & {
|
|
92
|
+
readonly default: readonly ["bottom", "top", "right", "left"];
|
|
93
|
+
};
|
|
94
|
+
disabledHours: {
|
|
95
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledHours>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
};
|
|
100
|
+
disabledMinutes: {
|
|
101
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledMinutes>;
|
|
102
|
+
readonly required: false;
|
|
103
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
|
+
__epPropKey: true;
|
|
105
|
+
};
|
|
106
|
+
disabledSeconds: {
|
|
107
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledSeconds>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
};
|
|
112
|
+
automaticDropdown: {
|
|
113
|
+
readonly type: import("vue").PropType<boolean>;
|
|
114
|
+
readonly required: false;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
} & {
|
|
118
|
+
readonly default: true;
|
|
119
|
+
};
|
|
120
|
+
id: {
|
|
121
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<string>>;
|
|
122
|
+
readonly required: false;
|
|
123
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
+
__epPropKey: true;
|
|
125
|
+
};
|
|
126
|
+
name: {
|
|
127
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<string>>;
|
|
128
|
+
readonly required: false;
|
|
129
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
|
+
__epPropKey: true;
|
|
131
|
+
};
|
|
132
|
+
popperClass: {
|
|
133
|
+
readonly type: import("vue").PropType<string | {
|
|
134
|
+
[x: string]: boolean;
|
|
135
|
+
} | (string | {
|
|
136
|
+
[x: string]: boolean;
|
|
137
|
+
} | (string | {
|
|
138
|
+
[x: string]: boolean;
|
|
139
|
+
} | (string | {
|
|
140
|
+
[x: string]: boolean;
|
|
141
|
+
} | (string | {
|
|
142
|
+
[x: string]: boolean;
|
|
143
|
+
} | (string | {
|
|
144
|
+
[x: string]: boolean;
|
|
145
|
+
} | (string | {
|
|
146
|
+
[x: string]: boolean;
|
|
147
|
+
} | (string | {
|
|
148
|
+
[x: string]: boolean;
|
|
149
|
+
} | (string | {
|
|
150
|
+
[x: string]: boolean;
|
|
151
|
+
} | (string | {
|
|
152
|
+
[x: string]: boolean;
|
|
153
|
+
} | (string | any[] | {
|
|
154
|
+
[x: string]: boolean;
|
|
155
|
+
})[])[])[])[])[])[])[])[])[])[]>;
|
|
156
|
+
readonly required: false;
|
|
157
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
158
|
+
__epPropKey: true;
|
|
159
|
+
};
|
|
160
|
+
popperStyle: {
|
|
161
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
162
|
+
readonly required: false;
|
|
163
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
164
|
+
__epPropKey: true;
|
|
165
|
+
};
|
|
166
|
+
format: StringConstructor;
|
|
167
|
+
valueFormat: StringConstructor;
|
|
168
|
+
dateFormat: StringConstructor;
|
|
169
|
+
timeFormat: StringConstructor;
|
|
170
|
+
type: {
|
|
171
|
+
readonly type: import("vue").PropType<string>;
|
|
172
|
+
readonly required: false;
|
|
173
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
174
|
+
__epPropKey: true;
|
|
175
|
+
} & {
|
|
176
|
+
readonly default: "";
|
|
177
|
+
};
|
|
178
|
+
clearable: {
|
|
179
|
+
readonly type: import("vue").PropType<boolean>;
|
|
180
|
+
readonly required: false;
|
|
181
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
182
|
+
__epPropKey: true;
|
|
183
|
+
} & {
|
|
184
|
+
readonly default: true;
|
|
185
|
+
};
|
|
186
|
+
clearIcon: {
|
|
187
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
188
|
+
readonly required: false;
|
|
189
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
190
|
+
__epPropKey: true;
|
|
191
|
+
};
|
|
192
|
+
editable: {
|
|
193
|
+
readonly type: import("vue").PropType<boolean>;
|
|
194
|
+
readonly required: false;
|
|
195
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
196
|
+
__epPropKey: true;
|
|
197
|
+
} & {
|
|
198
|
+
readonly default: true;
|
|
199
|
+
};
|
|
200
|
+
prefixIcon: {
|
|
201
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
202
|
+
readonly required: false;
|
|
203
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
204
|
+
__epPropKey: true;
|
|
205
|
+
} & {
|
|
206
|
+
readonly default: "";
|
|
207
|
+
};
|
|
208
|
+
size: {
|
|
209
|
+
readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
|
|
210
|
+
readonly required: false;
|
|
211
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
212
|
+
__epPropKey: true;
|
|
213
|
+
};
|
|
214
|
+
readonly: BooleanConstructor;
|
|
215
|
+
disabled: BooleanConstructor;
|
|
216
|
+
placeholder: {
|
|
217
|
+
readonly type: import("vue").PropType<string>;
|
|
218
|
+
readonly required: false;
|
|
219
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
220
|
+
__epPropKey: true;
|
|
221
|
+
} & {
|
|
222
|
+
readonly default: "";
|
|
223
|
+
};
|
|
224
|
+
popperOptions: {
|
|
225
|
+
readonly type: import("vue").PropType<any>;
|
|
226
|
+
readonly required: false;
|
|
227
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
228
|
+
__epPropKey: true;
|
|
229
|
+
} & {
|
|
230
|
+
readonly default: () => {};
|
|
231
|
+
};
|
|
232
|
+
rangeSeparator: {
|
|
233
|
+
readonly type: import("vue").PropType<string>;
|
|
234
|
+
readonly required: false;
|
|
235
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
236
|
+
__epPropKey: true;
|
|
237
|
+
} & {
|
|
238
|
+
readonly default: "-";
|
|
239
|
+
};
|
|
240
|
+
startPlaceholder: StringConstructor;
|
|
241
|
+
endPlaceholder: StringConstructor;
|
|
242
|
+
defaultValue: {
|
|
243
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<Date>>;
|
|
244
|
+
readonly required: false;
|
|
245
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
246
|
+
__epPropKey: true;
|
|
247
|
+
};
|
|
248
|
+
defaultTime: {
|
|
249
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<Date>>;
|
|
250
|
+
readonly required: false;
|
|
251
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
252
|
+
__epPropKey: true;
|
|
253
|
+
};
|
|
254
|
+
isRange: BooleanConstructor;
|
|
255
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
256
|
+
'update:modelValue': (value: Date[] | undefined | null) => boolean;
|
|
257
|
+
change: (value: Date[] | undefined | null) => boolean;
|
|
258
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
259
|
+
modelValue: {
|
|
260
|
+
type: import("vue").PropType<Date[]>;
|
|
261
|
+
};
|
|
262
|
+
showNow: {
|
|
263
|
+
readonly type: import("vue").PropType<boolean>;
|
|
264
|
+
readonly required: false;
|
|
265
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
266
|
+
__epPropKey: true;
|
|
267
|
+
} & {
|
|
268
|
+
readonly default: true;
|
|
269
|
+
};
|
|
270
|
+
showConfirm: {
|
|
271
|
+
readonly type: import("vue").PropType<boolean>;
|
|
272
|
+
readonly required: false;
|
|
273
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
274
|
+
__epPropKey: true;
|
|
275
|
+
} & {
|
|
276
|
+
readonly default: true;
|
|
277
|
+
};
|
|
278
|
+
showFooter: {
|
|
279
|
+
readonly type: import("vue").PropType<boolean>;
|
|
280
|
+
readonly required: false;
|
|
281
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
282
|
+
__epPropKey: true;
|
|
283
|
+
} & {
|
|
284
|
+
readonly default: true;
|
|
285
|
+
};
|
|
286
|
+
showWeekNumber: BooleanConstructor;
|
|
287
|
+
ariaLabel: StringConstructor;
|
|
288
|
+
emptyValues: ArrayConstructor;
|
|
289
|
+
valueOnClear: {
|
|
290
|
+
readonly type: import("vue").PropType<string | number | boolean | Function | null>;
|
|
291
|
+
readonly required: false;
|
|
292
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
293
|
+
__epPropKey: true;
|
|
294
|
+
} & {
|
|
295
|
+
readonly default: undefined;
|
|
296
|
+
};
|
|
297
|
+
disabledDate: {
|
|
298
|
+
readonly type: import("vue").PropType<Function>;
|
|
299
|
+
readonly required: false;
|
|
300
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
301
|
+
__epPropKey: true;
|
|
302
|
+
};
|
|
303
|
+
cellClassName: {
|
|
304
|
+
readonly type: import("vue").PropType<Function>;
|
|
305
|
+
readonly required: false;
|
|
306
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
307
|
+
__epPropKey: true;
|
|
308
|
+
};
|
|
309
|
+
shortcuts: {
|
|
310
|
+
readonly type: import("vue").PropType<unknown[]>;
|
|
311
|
+
readonly required: false;
|
|
312
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
313
|
+
__epPropKey: true;
|
|
314
|
+
} & {
|
|
315
|
+
readonly default: () => never[];
|
|
316
|
+
};
|
|
317
|
+
arrowControl: BooleanConstructor;
|
|
318
|
+
tabindex: {
|
|
319
|
+
readonly type: import("vue").PropType<string | number>;
|
|
320
|
+
readonly required: false;
|
|
321
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
322
|
+
__epPropKey: true;
|
|
323
|
+
} & {
|
|
324
|
+
readonly default: 0;
|
|
325
|
+
};
|
|
326
|
+
validateEvent: {
|
|
327
|
+
readonly type: import("vue").PropType<boolean>;
|
|
328
|
+
readonly required: false;
|
|
329
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
330
|
+
__epPropKey: true;
|
|
331
|
+
} & {
|
|
332
|
+
readonly default: true;
|
|
333
|
+
};
|
|
334
|
+
unlinkPanels: BooleanConstructor;
|
|
335
|
+
placement: {
|
|
336
|
+
readonly type: import("vue").PropType<any>;
|
|
337
|
+
readonly required: false;
|
|
338
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
339
|
+
__epPropKey: true;
|
|
340
|
+
} & {
|
|
341
|
+
readonly default: "bottom";
|
|
342
|
+
};
|
|
343
|
+
fallbackPlacements: {
|
|
344
|
+
readonly type: import("vue").PropType<Placement[]>;
|
|
345
|
+
readonly required: false;
|
|
346
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
347
|
+
__epPropKey: true;
|
|
348
|
+
} & {
|
|
349
|
+
readonly default: readonly ["bottom", "top", "right", "left"];
|
|
350
|
+
};
|
|
351
|
+
disabledHours: {
|
|
352
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledHours>;
|
|
353
|
+
readonly required: false;
|
|
354
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
355
|
+
__epPropKey: true;
|
|
356
|
+
};
|
|
357
|
+
disabledMinutes: {
|
|
358
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledMinutes>;
|
|
359
|
+
readonly required: false;
|
|
360
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
361
|
+
__epPropKey: true;
|
|
362
|
+
};
|
|
363
|
+
disabledSeconds: {
|
|
364
|
+
readonly type: import("vue").PropType<import("element-plus").GetDisabledSeconds>;
|
|
365
|
+
readonly required: false;
|
|
366
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
367
|
+
__epPropKey: true;
|
|
368
|
+
};
|
|
369
|
+
automaticDropdown: {
|
|
370
|
+
readonly type: import("vue").PropType<boolean>;
|
|
371
|
+
readonly required: false;
|
|
372
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
373
|
+
__epPropKey: true;
|
|
374
|
+
} & {
|
|
375
|
+
readonly default: true;
|
|
376
|
+
};
|
|
377
|
+
id: {
|
|
378
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<string>>;
|
|
379
|
+
readonly required: false;
|
|
380
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
381
|
+
__epPropKey: true;
|
|
382
|
+
};
|
|
383
|
+
name: {
|
|
384
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<string>>;
|
|
385
|
+
readonly required: false;
|
|
386
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
387
|
+
__epPropKey: true;
|
|
388
|
+
};
|
|
389
|
+
popperClass: {
|
|
390
|
+
readonly type: import("vue").PropType<string | {
|
|
391
|
+
[x: string]: boolean;
|
|
392
|
+
} | (string | {
|
|
393
|
+
[x: string]: boolean;
|
|
394
|
+
} | (string | {
|
|
395
|
+
[x: string]: boolean;
|
|
396
|
+
} | (string | {
|
|
397
|
+
[x: string]: boolean;
|
|
398
|
+
} | (string | {
|
|
399
|
+
[x: string]: boolean;
|
|
400
|
+
} | (string | {
|
|
401
|
+
[x: string]: boolean;
|
|
402
|
+
} | (string | {
|
|
403
|
+
[x: string]: boolean;
|
|
404
|
+
} | (string | {
|
|
405
|
+
[x: string]: boolean;
|
|
406
|
+
} | (string | {
|
|
407
|
+
[x: string]: boolean;
|
|
408
|
+
} | (string | {
|
|
409
|
+
[x: string]: boolean;
|
|
410
|
+
} | (string | any[] | {
|
|
411
|
+
[x: string]: boolean;
|
|
412
|
+
})[])[])[])[])[])[])[])[])[])[]>;
|
|
413
|
+
readonly required: false;
|
|
414
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
415
|
+
__epPropKey: true;
|
|
416
|
+
};
|
|
417
|
+
popperStyle: {
|
|
418
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
419
|
+
readonly required: false;
|
|
420
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
421
|
+
__epPropKey: true;
|
|
422
|
+
};
|
|
423
|
+
format: StringConstructor;
|
|
424
|
+
valueFormat: StringConstructor;
|
|
425
|
+
dateFormat: StringConstructor;
|
|
426
|
+
timeFormat: StringConstructor;
|
|
427
|
+
type: {
|
|
428
|
+
readonly type: import("vue").PropType<string>;
|
|
429
|
+
readonly required: false;
|
|
430
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
431
|
+
__epPropKey: true;
|
|
432
|
+
} & {
|
|
433
|
+
readonly default: "";
|
|
434
|
+
};
|
|
435
|
+
clearable: {
|
|
436
|
+
readonly type: import("vue").PropType<boolean>;
|
|
437
|
+
readonly required: false;
|
|
438
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
439
|
+
__epPropKey: true;
|
|
440
|
+
} & {
|
|
441
|
+
readonly default: true;
|
|
442
|
+
};
|
|
443
|
+
clearIcon: {
|
|
444
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
445
|
+
readonly required: false;
|
|
446
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
447
|
+
__epPropKey: true;
|
|
448
|
+
};
|
|
449
|
+
editable: {
|
|
450
|
+
readonly type: import("vue").PropType<boolean>;
|
|
451
|
+
readonly required: false;
|
|
452
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
453
|
+
__epPropKey: true;
|
|
454
|
+
} & {
|
|
455
|
+
readonly default: true;
|
|
456
|
+
};
|
|
457
|
+
prefixIcon: {
|
|
458
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
459
|
+
readonly required: false;
|
|
460
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
461
|
+
__epPropKey: true;
|
|
462
|
+
} & {
|
|
463
|
+
readonly default: "";
|
|
464
|
+
};
|
|
465
|
+
size: {
|
|
466
|
+
readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
|
|
467
|
+
readonly required: false;
|
|
468
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
469
|
+
__epPropKey: true;
|
|
470
|
+
};
|
|
471
|
+
readonly: BooleanConstructor;
|
|
472
|
+
disabled: BooleanConstructor;
|
|
473
|
+
placeholder: {
|
|
474
|
+
readonly type: import("vue").PropType<string>;
|
|
475
|
+
readonly required: false;
|
|
476
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
477
|
+
__epPropKey: true;
|
|
478
|
+
} & {
|
|
479
|
+
readonly default: "";
|
|
480
|
+
};
|
|
481
|
+
popperOptions: {
|
|
482
|
+
readonly type: import("vue").PropType<any>;
|
|
483
|
+
readonly required: false;
|
|
484
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
485
|
+
__epPropKey: true;
|
|
486
|
+
} & {
|
|
487
|
+
readonly default: () => {};
|
|
488
|
+
};
|
|
489
|
+
rangeSeparator: {
|
|
490
|
+
readonly type: import("vue").PropType<string>;
|
|
491
|
+
readonly required: false;
|
|
492
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
493
|
+
__epPropKey: true;
|
|
494
|
+
} & {
|
|
495
|
+
readonly default: "-";
|
|
496
|
+
};
|
|
497
|
+
startPlaceholder: StringConstructor;
|
|
498
|
+
endPlaceholder: StringConstructor;
|
|
499
|
+
defaultValue: {
|
|
500
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<Date>>;
|
|
501
|
+
readonly required: false;
|
|
502
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
503
|
+
__epPropKey: true;
|
|
504
|
+
};
|
|
505
|
+
defaultTime: {
|
|
506
|
+
readonly type: import("vue").PropType<import("element-plus").SingleOrRange<Date>>;
|
|
507
|
+
readonly required: false;
|
|
508
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
509
|
+
__epPropKey: true;
|
|
510
|
+
};
|
|
511
|
+
isRange: BooleanConstructor;
|
|
512
|
+
}>> & Readonly<{
|
|
513
|
+
onChange?: ((value: Date[] | null | undefined) => any) | undefined;
|
|
514
|
+
"onUpdate:modelValue"?: ((value: Date[] | null | undefined) => any) | undefined;
|
|
515
|
+
}>, {
|
|
516
|
+
disabled: boolean;
|
|
517
|
+
type: string;
|
|
518
|
+
placeholder: string;
|
|
519
|
+
placement: any;
|
|
520
|
+
fallbackPlacements: Placement[];
|
|
521
|
+
popperOptions: any;
|
|
522
|
+
tabindex: string | number;
|
|
523
|
+
validateEvent: boolean;
|
|
524
|
+
readonly: boolean;
|
|
525
|
+
clearable: boolean;
|
|
526
|
+
prefixIcon: string | import("vue").Component;
|
|
527
|
+
valueOnClear: string | number | boolean | Function | null;
|
|
528
|
+
showNow: boolean;
|
|
529
|
+
showConfirm: boolean;
|
|
530
|
+
showFooter: boolean;
|
|
531
|
+
showWeekNumber: boolean;
|
|
532
|
+
shortcuts: unknown[];
|
|
533
|
+
arrowControl: boolean;
|
|
534
|
+
unlinkPanels: boolean;
|
|
535
|
+
automaticDropdown: boolean;
|
|
536
|
+
editable: boolean;
|
|
537
|
+
rangeSeparator: string;
|
|
538
|
+
isRange: boolean;
|
|
539
|
+
}, import("vue").SlotsType<import("./week-range-picker.api").WeekRangePickerSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
540
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { weekRangePickerEmits, weekRangePickerSlots, weekRangePickerProps } from './week-range-picker.api.js';
|
|
3
|
+
import { CommonPicker, UPDATE_MODEL_EVENT } from 'element-plus';
|
|
4
|
+
import stdin_default$2 from './panel-week-range.js';
|
|
5
|
+
import stdin_default$1 from './week-range-picker.style.js';
|
|
6
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
7
|
+
|
|
8
|
+
var stdin_default = defineComponent({
|
|
9
|
+
name: "CoWeekRangePicker",
|
|
10
|
+
props: weekRangePickerProps,
|
|
11
|
+
slots: weekRangePickerSlots,
|
|
12
|
+
emits: weekRangePickerEmits,
|
|
13
|
+
setup(props, {
|
|
14
|
+
slots,
|
|
15
|
+
emit,
|
|
16
|
+
expose
|
|
17
|
+
}) {
|
|
18
|
+
const {
|
|
19
|
+
prefixCls
|
|
20
|
+
} = useComponentConfig("week-range-picker", props);
|
|
21
|
+
const {
|
|
22
|
+
hashId
|
|
23
|
+
} = stdin_default$1(prefixCls);
|
|
24
|
+
expose();
|
|
25
|
+
const onModelValueUpdated = val => {
|
|
26
|
+
emit(UPDATE_MODEL_EVENT, val);
|
|
27
|
+
};
|
|
28
|
+
return () => {
|
|
29
|
+
return createVNode(CommonPicker, mergeProps(props, {
|
|
30
|
+
"type": "weekrange",
|
|
31
|
+
"editable": false,
|
|
32
|
+
"class": [hashId.value, prefixCls.value],
|
|
33
|
+
"onUpdate:modelValue": onModelValueUpdated
|
|
34
|
+
}), {
|
|
35
|
+
default: props2 => {
|
|
36
|
+
return createVNode(stdin_default$2, props2, null);
|
|
37
|
+
},
|
|
38
|
+
"range-separator": slots["range-separator"]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
2
|
+
|
|
3
|
+
var stdin_default = getSimpleStyleHook("CoWeekRangePicker", (token) => {
|
|
4
|
+
const { componentCls } = token;
|
|
5
|
+
return {
|
|
6
|
+
[`${componentCls}`]: {
|
|
7
|
+
"--el-date-editor-width": 300
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { stdin_default as default };
|
package/locale/lang/ar.d.ts
CHANGED
package/locale/lang/ar.js
CHANGED
|
@@ -27,6 +27,7 @@ var stdin_default = {
|
|
|
27
27
|
},
|
|
28
28
|
form: {
|
|
29
29
|
weekOfYear: "\u0627\u0644\u0623\u0633\u0628\u0648\u0639 w \u0645\u0646 \u0633\u0646\u0629 YYYY",
|
|
30
|
+
week: "\u0627\u0644\u0623\u0633\u0628\u0648\u0639 {w}",
|
|
30
31
|
submit: "\u0625\u0631\u0633\u0627\u0644",
|
|
31
32
|
reset: "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",
|
|
32
33
|
search: "\u0628\u062D\u062B",
|
package/locale/lang/en.d.ts
CHANGED
package/locale/lang/en.js
CHANGED
package/locale/lang/zh-cn.d.ts
CHANGED
package/locale/lang/zh-cn.js
CHANGED