bkui-vue 0.0.1-beta.16 → 0.0.1-beta.17

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 (153) hide show
  1. package/dist/bkui-vue.cjs.js +796 -139
  2. package/dist/bkui-vue.esm.js +841 -186
  3. package/dist/bkui-vue.umd.js +796 -139
  4. package/dist/style.css +287 -13
  5. package/lib/alert/alert.d.ts +24 -15
  6. package/lib/alert/alert.variable.css +6 -0
  7. package/lib/alert/index.d.ts +96 -60
  8. package/lib/animate-number/animate-number.d.ts +12 -7
  9. package/lib/animate-number/index.d.ts +48 -28
  10. package/lib/backtop/backtop.d.ts +27 -13
  11. package/lib/backtop/backtop.variable.css +6 -0
  12. package/lib/backtop/index.d.ts +108 -52
  13. package/lib/badge/badge.d.ts +40 -19
  14. package/lib/badge/badge.variable.css +6 -0
  15. package/lib/badge/index.d.ts +144 -76
  16. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  17. package/lib/breadcrumb/breadcrumb.d.ts +21 -13
  18. package/lib/breadcrumb/breadcrumb.variable.css +6 -0
  19. package/lib/breadcrumb/index.d.ts +97 -61
  20. package/lib/button/button-group.d.ts +3 -5
  21. package/lib/button/button.d.ts +27 -22
  22. package/lib/button/button.variable.css +6 -0
  23. package/lib/button/index.d.ts +111 -93
  24. package/lib/card/card.d.ts +30 -15
  25. package/lib/card/card.variable.css +6 -0
  26. package/lib/card/index.d.ts +120 -60
  27. package/lib/checkbox/checkbox-group.d.ts +13 -9
  28. package/lib/checkbox/checkbox.d.ts +31 -22
  29. package/lib/checkbox/checkbox.variable.css +6 -0
  30. package/lib/checkbox/index.d.ts +137 -97
  31. package/lib/collapse/collapse.d.ts +50 -18
  32. package/lib/collapse/index.d.ts +108 -72
  33. package/lib/components.d.ts +2 -0
  34. package/lib/date-picker/date-picker.d.ts +110 -63
  35. package/lib/date-picker/date-picker.variable.css +6 -0
  36. package/lib/date-picker/index.d.ts +437 -249
  37. package/lib/dialog/dialog.d.ts +44 -23
  38. package/lib/dialog/index.d.ts +176 -92
  39. package/lib/divider/divider.d.ts +21 -13
  40. package/lib/divider/divider.variable.css +6 -0
  41. package/lib/divider/index.d.ts +84 -52
  42. package/lib/dropdown/dropdown-item.d.ts +6 -5
  43. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  44. package/lib/dropdown/dropdown.d.ts +25 -13
  45. package/lib/dropdown/dropdown.variable.css +6 -0
  46. package/lib/dropdown/index.d.ts +94 -62
  47. package/lib/exception/exception.d.ts +11 -9
  48. package/lib/exception/exception.variable.css +6 -0
  49. package/lib/exception/index.d.ts +44 -36
  50. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  51. package/lib/fixed-navbar/fixed-navbar.variable.css +6 -0
  52. package/lib/fixed-navbar/index.d.ts +60 -36
  53. package/lib/form/form-item.d.ts +46 -27
  54. package/lib/form/form.d.ts +21 -13
  55. package/lib/input/index.d.ts +240 -160
  56. package/lib/input/input.d.ts +60 -40
  57. package/lib/input/input.variable.css +6 -0
  58. package/lib/link/index.d.ts +100 -52
  59. package/lib/link/link.d.ts +25 -13
  60. package/lib/link/link.variable.css +6 -0
  61. package/lib/loading/index.d.ts +64 -64
  62. package/lib/loading/loading.d.ts +16 -16
  63. package/lib/loading/loading.variable.css +6 -0
  64. package/lib/menu/index.d.ts +90 -71
  65. package/lib/menu/menu-group.d.ts +6 -5
  66. package/lib/menu/menu-item.d.ts +6 -5
  67. package/lib/menu/menu.d.ts +18 -14
  68. package/lib/menu/menu.variable.css +6 -0
  69. package/lib/menu/submenu.d.ts +6 -5
  70. package/lib/menu/submenu.variable.css +6 -0
  71. package/lib/message/message.variable.css +6 -0
  72. package/lib/message/messageConstructor.d.ts +28 -16
  73. package/lib/modal/index.d.ts +88 -52
  74. package/lib/modal/modal.d.ts +22 -13
  75. package/lib/navigation/navigation-title.d.ts +10 -7
  76. package/lib/navigation/navigation.d.ts +40 -23
  77. package/lib/navigation/navigation.variable.css +6 -0
  78. package/lib/notify/notify.variable.css +6 -0
  79. package/lib/notify/notifyConstructor.d.ts +36 -20
  80. package/lib/popover/index.d.ts +207 -177
  81. package/lib/popover/popover.d.ts +52 -30
  82. package/lib/popover/popover.variable.css +6 -0
  83. package/lib/process/index.d.ts +120 -60
  84. package/lib/process/process.css +2 -3
  85. package/lib/process/process.d.ts +30 -15
  86. package/lib/process/process.less +2 -3
  87. package/lib/process/process.variable.css +8 -3
  88. package/lib/progress/index.d.ts +284 -136
  89. package/lib/progress/progress.d.ts +71 -34
  90. package/lib/progress/progress.variable.css +6 -0
  91. package/lib/radio/index.d.ts +127 -78
  92. package/lib/radio/radio-button.d.ts +24 -16
  93. package/lib/radio/radio-group.d.ts +11 -10
  94. package/lib/radio/radio.d.ts +23 -13
  95. package/lib/radio/radio.variable.css +6 -0
  96. package/lib/rate/index.d.ts +52 -40
  97. package/lib/rate/rate.d.ts +13 -10
  98. package/lib/rate/star.d.ts +32 -15
  99. package/lib/select/index.d.ts +396 -327
  100. package/lib/select/option.d.ts +9 -10
  101. package/lib/select/optionGroup.d.ts +49 -41
  102. package/lib/select/select.d.ts +98 -84
  103. package/lib/select/select.variable.css +6 -0
  104. package/lib/sideslider/index.d.ts +108 -60
  105. package/lib/sideslider/sideslider.d.ts +27 -15
  106. package/lib/sideslider/sideslider.variable.css +6 -0
  107. package/lib/slider/slider-button.d.ts +10 -7
  108. package/lib/slider/slider.d.ts +70 -40
  109. package/lib/slider/slider.variable.css +6 -0
  110. package/lib/steps/index.d.ts +156 -104
  111. package/lib/steps/steps.css +3 -0
  112. package/lib/steps/steps.d.ts +39 -26
  113. package/lib/steps/steps.less +4 -0
  114. package/lib/steps/steps.variable.css +9 -0
  115. package/lib/styles/index.d.ts +1 -0
  116. package/lib/styles/index.js +1 -1
  117. package/lib/styles/themes/themes.less +10 -0
  118. package/lib/switcher/index.d.ts +192 -128
  119. package/lib/switcher/switcher.d.ts +48 -32
  120. package/lib/switcher/switcher.variable.css +6 -0
  121. package/lib/tab/index.d.ts +344 -208
  122. package/lib/tab/tab-nav.d.ts +74 -38
  123. package/lib/tab/tab-panel.d.ts +22 -20
  124. package/lib/tab/tab.d.ts +64 -32
  125. package/lib/tab/tab.variable.css +6 -0
  126. package/lib/table/const.d.ts +4 -0
  127. package/lib/table/index.d.ts +154 -130
  128. package/lib/table/index.js +1 -1
  129. package/lib/table/props.d.ts +18 -0
  130. package/lib/table/render.d.ts +18 -2
  131. package/lib/table/table.css +47 -10
  132. package/lib/table/table.d.ts +47 -22
  133. package/lib/table/table.less +61 -17
  134. package/lib/table/table.variable.css +55 -12
  135. package/lib/table/utils.d.ts +26 -1
  136. package/lib/tag/index.d.ts +10 -286
  137. package/lib/tag/tag.d.ts +2 -48
  138. package/lib/tag/tag.variable.css +6 -0
  139. package/lib/timeline/index.d.ts +129 -0
  140. package/lib/timeline/index.js +1 -0
  141. package/lib/timeline/timeline.css +235 -0
  142. package/lib/timeline/timeline.d.ts +81 -0
  143. package/lib/timeline/timeline.less +239 -0
  144. package/lib/timeline/timeline.variable.css +327 -0
  145. package/lib/tree/index.d.ts +140 -75
  146. package/lib/tree/index.js +1 -1
  147. package/lib/tree/props.d.ts +19 -1
  148. package/lib/tree/tree.d.ts +42 -20
  149. package/lib/virtual-render/index.d.ts +406 -260
  150. package/lib/virtual-render/index.js +1 -1
  151. package/lib/virtual-render/props.d.ts +1 -0
  152. package/lib/virtual-render/virtual-render.d.ts +104 -43
  153. package/package.json +1 -1
@@ -244,13 +244,13 @@ declare const _default: import("vue").DefineComponent<{
244
244
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
245
245
  showClose: import("vue").Ref<boolean>;
246
246
  visible: import("vue").Ref<boolean>;
247
- internalValue: any;
247
+ internalValue: import("vue").Ref<any>;
248
248
  disableClickOutSide: import("vue").Ref<boolean>;
249
249
  disableCloseUnderTransfer: import("vue").Ref<boolean>;
250
250
  selectionMode: import("vue").Ref<SelectionModeType>;
251
251
  forceInputRerender: import("vue").Ref<number>;
252
252
  isFocused: import("vue").Ref<boolean>;
253
- focusedDate: any;
253
+ focusedDate: import("vue").Ref<any>;
254
254
  focusedTime: import("vue").Ref<{
255
255
  column: number;
256
256
  picker: number;
@@ -259,68 +259,115 @@ declare const _default: import("vue").DefineComponent<{
259
259
  }>;
260
260
  internalFocus: import("vue").Ref<boolean>;
261
261
  timeEnterMode: import("vue").Ref<boolean>;
262
- shortcut: any;
262
+ shortcut: import("vue").Ref<any>;
263
263
  onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
264
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
265
- readonly type?: unknown;
266
- readonly extPopoverCls?: unknown;
267
- readonly format?: unknown;
268
- readonly readonly?: unknown;
269
- readonly disabled?: unknown;
270
- readonly editable?: unknown;
271
- readonly clearable?: unknown;
272
- readonly open?: unknown;
273
- readonly multiple?: unknown;
274
- readonly timePickerOptions?: unknown;
275
- readonly splitPanels?: unknown;
276
- readonly startDate?: unknown;
277
- readonly placeholder?: unknown;
278
- readonly placement?: unknown;
279
- readonly transfer?: unknown;
280
- readonly appendToBody?: unknown;
281
- readonly shortcuts?: unknown;
282
- readonly shortcutClose?: unknown;
283
- readonly modelValue?: unknown;
284
- readonly options?: unknown;
285
- readonly fontSize?: unknown;
286
- readonly upToNow?: unknown;
287
- readonly useShortcutText?: unknown;
288
- readonly shortcutSelectedIndex?: unknown;
289
- readonly footerSlotCls?: unknown;
290
- readonly allowCrossDay?: unknown;
291
- readonly behavior?: unknown;
292
- readonly disableDate?: unknown;
293
- } & {
294
- placement: import("@popperjs/core").ComputedPlacement;
295
- options: Record<string, any>;
296
- placeholder: string;
297
- multiple: boolean;
298
- disabled: boolean;
299
- type: PickerTypeType;
300
- extPopoverCls: string;
301
- readonly: boolean;
302
- editable: boolean;
303
- clearable: boolean;
304
- timePickerOptions: {};
305
- splitPanels: boolean;
306
- transfer: boolean;
307
- appendToBody: boolean;
308
- shortcuts: DatePickerShortcutsType;
309
- shortcutClose: boolean;
310
- fontSize: "large" | "normal" | "medium";
311
- upToNow: boolean;
312
- useShortcutText: boolean;
313
- shortcutSelectedIndex: number;
314
- footerSlotCls: string;
315
- allowCrossDay: boolean;
316
- behavior: "normal" | "simplicity";
317
- } & {
318
- open?: boolean;
319
- modelValue?: DatePickerValueType;
320
- format?: string;
321
- startDate?: Date;
322
- disableDate?: DisableDateType;
323
- }> & {
264
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
265
+ readonly type: {
266
+ readonly type: PropType<PickerTypeType>;
267
+ readonly default: "date";
268
+ readonly validator: (value: any) => boolean;
269
+ };
270
+ readonly extPopoverCls: {
271
+ readonly type: StringConstructor;
272
+ readonly default: "";
273
+ };
274
+ readonly format: StringConstructor;
275
+ readonly readonly: {
276
+ readonly type: BooleanConstructor;
277
+ readonly default: false;
278
+ };
279
+ readonly disabled: {
280
+ readonly type: BooleanConstructor;
281
+ readonly default: false;
282
+ };
283
+ readonly editable: {
284
+ readonly type: BooleanConstructor;
285
+ readonly default: true;
286
+ };
287
+ readonly clearable: {
288
+ readonly type: BooleanConstructor;
289
+ readonly default: true;
290
+ };
291
+ readonly open: {
292
+ readonly type: BooleanConstructor;
293
+ readonly default: any;
294
+ };
295
+ readonly multiple: {
296
+ readonly type: BooleanConstructor;
297
+ readonly default: false;
298
+ };
299
+ readonly timePickerOptions: {
300
+ readonly type: PropType<Record<string, any>>;
301
+ readonly default: () => {};
302
+ };
303
+ readonly splitPanels: {
304
+ readonly type: BooleanConstructor;
305
+ readonly default: true;
306
+ };
307
+ readonly startDate: DateConstructor;
308
+ readonly placeholder: {
309
+ readonly type: StringConstructor;
310
+ readonly default: "";
311
+ };
312
+ readonly placement: {
313
+ readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
314
+ readonly default: "bottom-start";
315
+ readonly validator: (value: any) => boolean;
316
+ };
317
+ readonly transfer: {
318
+ readonly type: BooleanConstructor;
319
+ readonly default: false;
320
+ };
321
+ readonly appendToBody: {
322
+ readonly type: BooleanConstructor;
323
+ readonly default: false;
324
+ };
325
+ readonly shortcuts: {
326
+ readonly type: PropType<DatePickerShortcutsType>;
327
+ readonly default: () => any[];
328
+ };
329
+ readonly shortcutClose: {
330
+ readonly type: BooleanConstructor;
331
+ readonly default: false;
332
+ };
333
+ readonly modelValue: {
334
+ readonly type: PropType<DatePickerValueType>;
335
+ };
336
+ readonly options: {
337
+ readonly type: ObjectConstructor;
338
+ readonly default: () => {};
339
+ };
340
+ readonly fontSize: {
341
+ readonly type: PropType<"large" | "normal" | "medium">;
342
+ readonly default: "normal";
343
+ };
344
+ readonly upToNow: {
345
+ readonly type: BooleanConstructor;
346
+ readonly default: false;
347
+ };
348
+ readonly useShortcutText: {
349
+ readonly type: BooleanConstructor;
350
+ readonly default: false;
351
+ };
352
+ readonly shortcutSelectedIndex: {
353
+ readonly type: NumberConstructor;
354
+ readonly default: -1;
355
+ };
356
+ readonly footerSlotCls: {
357
+ readonly type: StringConstructor;
358
+ readonly default: "";
359
+ };
360
+ readonly allowCrossDay: {
361
+ readonly type: BooleanConstructor;
362
+ readonly default: false;
363
+ };
364
+ readonly behavior: {
365
+ readonly type: PropType<"normal" | "simplicity">;
366
+ readonly default: "normal";
367
+ readonly validator: (v: any) => boolean;
368
+ };
369
+ readonly disableDate: PropType<DisableDateType>;
370
+ }>> & {
324
371
  onChange?: (...args: any[]) => any;
325
372
  onInput?: (...args: any[]) => any;
326
373
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -83,6 +83,12 @@
83
83
  --date-picker-disabled-bg: #fafbfd;
84
84
  --date-picker-dropdown-mb: 4px;
85
85
  --date-picker-dropdown-bg: #fff;
86
+ --table-bg-color: var(--white-color);
87
+ --table-border-color: #dcdee5;
88
+ --table-head-bg-color: #fafbfd;
89
+ --table-head-font-color: #313238;
90
+ --table-body-font-color: #575961;
91
+ --table-row-hover-bg-color: #f5f7fa;
86
92
  }
87
93
  .bk-date-picker {
88
94
  display: inline-block;