bkui-vue 0.0.1-beta.216 → 0.0.1-beta.218

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.
Files changed (40) hide show
  1. package/dist/index.cjs.js +40 -40
  2. package/dist/index.esm.js +453 -89
  3. package/dist/index.umd.js +54 -54
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/date-picker/base/date-table.d.ts +4 -4
  7. package/lib/date-picker/date-picker.css +5 -0
  8. package/lib/date-picker/date-picker.d.ts +2 -2
  9. package/lib/date-picker/date-picker.less +6 -0
  10. package/lib/date-picker/date-picker.variable.css +5 -0
  11. package/lib/date-picker/index.d.ts +4 -4
  12. package/lib/date-picker/index.js +1 -1
  13. package/lib/date-picker/interface.d.ts +3 -2
  14. package/lib/date-picker/panel/date-range.d.ts +39 -183
  15. package/lib/date-picker/panel/date.d.ts +20 -364
  16. package/lib/date-picker/panel/time-range.d.ts +489 -0
  17. package/lib/date-picker/panel/time.d.ts +1 -3
  18. package/lib/date-picker/props.d.ts +2 -2
  19. package/lib/date-picker/time-picker.d.ts +2 -2
  20. package/lib/select/index.d.ts +3 -0
  21. package/lib/select/index.js +1 -1
  22. package/lib/select/select.d.ts +1 -0
  23. package/lib/table/const.d.ts +2 -1
  24. package/lib/table/index.d.ts +16 -1
  25. package/lib/table/index.js +1 -1
  26. package/lib/table/plugins/head-filter.css +2 -3
  27. package/lib/table/plugins/head-filter.less +9 -10
  28. package/lib/table/plugins/head-filter.variable.css +2 -3
  29. package/lib/table/plugins/head-sort.css +6 -3
  30. package/lib/table/plugins/head-sort.less +6 -3
  31. package/lib/table/plugins/head-sort.variable.css +6 -3
  32. package/lib/table/props.d.ts +19 -0
  33. package/lib/table/table.css +8 -6
  34. package/lib/table/table.d.ts +7 -0
  35. package/lib/table/table.variable.css +8 -6
  36. package/lib/table/use-common.d.ts +1 -0
  37. package/lib/table/utils.d.ts +8 -0
  38. package/lib/table-column/index.js +1 -1
  39. package/lib/time-picker/index.d.ts +4 -4
  40. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
2
  import { PropType } from 'vue';
3
- import type { DatePickerShortcutsType, DatePickerValueType, DisableDateType, PickerTypeType, SelectionModeType } from '../interface';
3
+ import type { DatePickerShortcutsType, DatePickerValueType, DisabledDateType, PickerTypeType, SelectionModeType } from '../interface';
4
4
  declare const dateRangePanelProps: {
5
5
  readonly modelValue: {
6
6
  readonly type: PropType<DatePickerValueType>;
@@ -42,7 +42,7 @@ declare const dateRangePanelProps: {
42
42
  readonly type: BooleanConstructor;
43
43
  readonly default: false;
44
44
  };
45
- readonly disableDate: PropType<DisableDateType>;
45
+ readonly disabledDate: PropType<DisabledDateType>;
46
46
  readonly focusedDate: {
47
47
  readonly type: DateConstructor;
48
48
  readonly required: true;
@@ -51,6 +51,14 @@ declare const dateRangePanelProps: {
51
51
  readonly type: BooleanConstructor;
52
52
  readonly default: false;
53
53
  };
54
+ readonly format: {
55
+ readonly type: StringConstructor;
56
+ readonly default: "yyyy-MM-dd";
57
+ };
58
+ readonly timePickerOptions: {
59
+ readonly type: PropType<Record<string, any>>;
60
+ readonly default: () => {};
61
+ };
54
62
  };
55
63
  export declare type DateRangePanelProps = Readonly<ExtractPropTypes<typeof dateRangePanelProps>>;
56
64
  declare const _default: import("vue").DefineComponent<{
@@ -94,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
94
102
  readonly type: BooleanConstructor;
95
103
  readonly default: false;
96
104
  };
97
- readonly disableDate: PropType<DisableDateType>;
105
+ readonly disabledDate: PropType<DisabledDateType>;
98
106
  readonly focusedDate: {
99
107
  readonly type: DateConstructor;
100
108
  readonly required: true;
@@ -103,6 +111,14 @@ declare const _default: import("vue").DefineComponent<{
103
111
  readonly type: BooleanConstructor;
104
112
  readonly default: false;
105
113
  };
114
+ readonly format: {
115
+ readonly type: StringConstructor;
116
+ readonly default: "yyyy-MM-dd";
117
+ };
118
+ readonly timePickerOptions: {
119
+ readonly type: PropType<Record<string, any>>;
120
+ readonly default: () => {};
121
+ };
106
122
  }, {
107
123
  isTime: import("vue").ComputedRef<boolean>;
108
124
  hasShortcuts: import("vue").ComputedRef<number | import("vue").Slot>;
@@ -132,11 +148,16 @@ declare const _default: import("vue").DefineComponent<{
132
148
  left: (panelPosition: any, value: any) => void;
133
149
  right: (panelPosition: any, value: any) => void;
134
150
  }>;
151
+ timeDisabled: import("vue").ComputedRef<boolean>;
135
152
  handleShortcutClick: (shortcut: any, index: any) => boolean;
136
153
  reset: () => void;
137
154
  onToggleVisibility: (open: any) => void;
138
155
  handleRangePick: (val: any, type: any) => void;
139
156
  handleChangeRange: (val: any) => void;
157
+ handleToggleTime: () => void;
158
+ handlePickSuccess: () => void;
159
+ handlePickClear: () => void;
160
+ handlePickClick: () => void;
140
161
  currentView: import("vue").Ref<SelectionModeType>;
141
162
  leftPickerTable: import("vue").Ref<string>;
142
163
  rightPickerTable: import("vue").Ref<string>;
@@ -207,185 +228,8 @@ declare const _default: import("vue").DefineComponent<{
207
228
  selecting: boolean;
208
229
  }>;
209
230
  upToNowEnable: import("vue").Ref<boolean>;
210
- dates: import("vue").Ref<string | number | {
211
- toString: () => string;
212
- toDateString: () => string;
213
- toTimeString: () => string;
214
- toLocaleString: {
215
- (): string;
216
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
217
- };
218
- toLocaleDateString: {
219
- (): string;
220
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
221
- };
222
- toLocaleTimeString: {
223
- (): string;
224
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
225
- };
226
- valueOf: () => number;
227
- getTime: () => number;
228
- getFullYear: () => number;
229
- getUTCFullYear: () => number;
230
- getMonth: () => number;
231
- getUTCMonth: () => number;
232
- getDate: () => number;
233
- getUTCDate: () => number;
234
- getDay: () => number;
235
- getUTCDay: () => number;
236
- getHours: () => number;
237
- getUTCHours: () => number;
238
- getMinutes: () => number;
239
- getUTCMinutes: () => number;
240
- getSeconds: () => number;
241
- getUTCSeconds: () => number;
242
- getMilliseconds: () => number;
243
- getUTCMilliseconds: () => number;
244
- getTimezoneOffset: () => number;
245
- setTime: (time: number) => number;
246
- setMilliseconds: (ms: number) => number;
247
- setUTCMilliseconds: (ms: number) => number;
248
- setSeconds: (sec: number, ms?: number) => number;
249
- setUTCSeconds: (sec: number, ms?: number) => number;
250
- setMinutes: (min: number, sec?: number, ms?: number) => number;
251
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
252
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
253
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
254
- setDate: (date: number) => number;
255
- setUTCDate: (date: number) => number;
256
- setMonth: (month: number, date?: number) => number;
257
- setUTCMonth: (month: number, date?: number) => number;
258
- setFullYear: (year: number, month?: number, date?: number) => number;
259
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
260
- toUTCString: () => string;
261
- toISOString: () => string;
262
- toJSON: (key?: any) => string;
263
- [Symbol.toPrimitive]: {
264
- (hint: "default"): string;
265
- (hint: "string"): string;
266
- (hint: "number"): number;
267
- (hint: string): string | number;
268
- };
269
- } | [string | number | {
270
- toString: () => string;
271
- toDateString: () => string;
272
- toTimeString: () => string;
273
- toLocaleString: {
274
- (): string;
275
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
276
- };
277
- toLocaleDateString: {
278
- (): string;
279
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
280
- };
281
- toLocaleTimeString: {
282
- (): string;
283
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
284
- };
285
- valueOf: () => number;
286
- getTime: () => number;
287
- getFullYear: () => number;
288
- getUTCFullYear: () => number;
289
- getMonth: () => number;
290
- getUTCMonth: () => number;
291
- getDate: () => number;
292
- getUTCDate: () => number;
293
- getDay: () => number;
294
- getUTCDay: () => number;
295
- getHours: () => number;
296
- getUTCHours: () => number;
297
- getMinutes: () => number;
298
- getUTCMinutes: () => number;
299
- getSeconds: () => number;
300
- getUTCSeconds: () => number;
301
- getMilliseconds: () => number;
302
- getUTCMilliseconds: () => number;
303
- getTimezoneOffset: () => number;
304
- setTime: (time: number) => number;
305
- setMilliseconds: (ms: number) => number;
306
- setUTCMilliseconds: (ms: number) => number;
307
- setSeconds: (sec: number, ms?: number) => number;
308
- setUTCSeconds: (sec: number, ms?: number) => number;
309
- setMinutes: (min: number, sec?: number, ms?: number) => number;
310
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
311
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
312
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
313
- setDate: (date: number) => number;
314
- setUTCDate: (date: number) => number;
315
- setMonth: (month: number, date?: number) => number;
316
- setUTCMonth: (month: number, date?: number) => number;
317
- setFullYear: (year: number, month?: number, date?: number) => number;
318
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
319
- toUTCString: () => string;
320
- toISOString: () => string;
321
- toJSON: (key?: any) => string;
322
- [Symbol.toPrimitive]: {
323
- (hint: "default"): string;
324
- (hint: "string"): string;
325
- (hint: "number"): number;
326
- (hint: string): string | number;
327
- };
328
- }, string | number | {
329
- toString: () => string;
330
- toDateString: () => string;
331
- toTimeString: () => string;
332
- toLocaleString: {
333
- (): string;
334
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
335
- };
336
- toLocaleDateString: {
337
- (): string;
338
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
339
- };
340
- toLocaleTimeString: {
341
- (): string;
342
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
343
- };
344
- valueOf: () => number;
345
- getTime: () => number;
346
- getFullYear: () => number;
347
- getUTCFullYear: () => number;
348
- getMonth: () => number;
349
- getUTCMonth: () => number;
350
- getDate: () => number;
351
- getUTCDate: () => number;
352
- getDay: () => number;
353
- getUTCDay: () => number;
354
- getHours: () => number;
355
- getUTCHours: () => number;
356
- getMinutes: () => number;
357
- getUTCMinutes: () => number;
358
- getSeconds: () => number;
359
- getUTCSeconds: () => number;
360
- getMilliseconds: () => number;
361
- getUTCMilliseconds: () => number;
362
- getTimezoneOffset: () => number;
363
- setTime: (time: number) => number;
364
- setMilliseconds: (ms: number) => number;
365
- setUTCMilliseconds: (ms: number) => number;
366
- setSeconds: (sec: number, ms?: number) => number;
367
- setUTCSeconds: (sec: number, ms?: number) => number;
368
- setMinutes: (min: number, sec?: number, ms?: number) => number;
369
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
370
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
371
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
372
- setDate: (date: number) => number;
373
- setUTCDate: (date: number) => number;
374
- setMonth: (month: number, date?: number) => number;
375
- setUTCMonth: (month: number, date?: number) => number;
376
- setFullYear: (year: number, month?: number, date?: number) => number;
377
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
378
- toUTCString: () => string;
379
- toISOString: () => string;
380
- toJSON: (key?: any) => string;
381
- [Symbol.toPrimitive]: {
382
- (hint: "default"): string;
383
- (hint: "string"): string;
384
- (hint: "number"): number;
385
- (hint: string): string | number;
386
- };
387
- }]>;
388
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick-success" | "pick")[], "pick-success" | "pick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
231
+ dates: import("vue").Ref<any>;
232
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick-clear" | "pick-success" | "pick" | "pick-click")[], "pick-clear" | "pick-success" | "pick" | "pick-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
389
233
  readonly modelValue: {
390
234
  readonly type: PropType<DatePickerValueType>;
391
235
  };
@@ -426,7 +270,7 @@ declare const _default: import("vue").DefineComponent<{
426
270
  readonly type: BooleanConstructor;
427
271
  readonly default: false;
428
272
  };
429
- readonly disableDate: PropType<DisableDateType>;
273
+ readonly disabledDate: PropType<DisabledDateType>;
430
274
  readonly focusedDate: {
431
275
  readonly type: DateConstructor;
432
276
  readonly required: true;
@@ -435,12 +279,24 @@ declare const _default: import("vue").DefineComponent<{
435
279
  readonly type: BooleanConstructor;
436
280
  readonly default: false;
437
281
  };
282
+ readonly format: {
283
+ readonly type: StringConstructor;
284
+ readonly default: "yyyy-MM-dd";
285
+ };
286
+ readonly timePickerOptions: {
287
+ readonly type: PropType<Record<string, any>>;
288
+ readonly default: () => {};
289
+ };
438
290
  }>> & {
291
+ "onPick-clear"?: (...args: any[]) => any;
439
292
  "onPick-success"?: (...args: any[]) => any;
440
293
  onPick?: (...args: any[]) => any;
294
+ "onPick-click"?: (...args: any[]) => any;
441
295
  }, {
442
296
  type: PickerTypeType;
443
297
  clearable: boolean;
298
+ format: string;
299
+ timePickerOptions: {};
444
300
  splitPanels: boolean;
445
301
  shortcuts: DatePickerShortcutsType;
446
302
  shortcutClose: boolean;