bkui-vue 2.0.1-beta.15 → 2.0.1-beta.15.table.1

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 (195) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.esm.js +15152 -15326
  3. package/dist/index.umd.js +63 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +129 -0
  7. package/lib/affix/affix.variable.css +258 -0
  8. package/lib/alert/alert.css +132 -3
  9. package/lib/alert/alert.variable.css +258 -0
  10. package/lib/backtop/backtop.css +132 -3
  11. package/lib/backtop/backtop.variable.css +390 -3
  12. package/lib/badge/badge.css +155 -26
  13. package/lib/badge/badge.variable.css +258 -0
  14. package/lib/breadcrumb/breadcrumb.css +134 -5
  15. package/lib/breadcrumb/breadcrumb.variable.css +392 -5
  16. package/lib/button/button.css +272 -143
  17. package/lib/button/button.variable.css +258 -0
  18. package/lib/button/index.js +0 -1
  19. package/lib/card/card.css +133 -4
  20. package/lib/card/card.variable.css +391 -4
  21. package/lib/cascader/cascader.css +152 -23
  22. package/lib/cascader/cascader.variable.css +410 -23
  23. package/lib/checkbox/checkbox.css +138 -9
  24. package/lib/checkbox/checkbox.variable.css +258 -0
  25. package/lib/code-diff/code-diff.css +129 -0
  26. package/lib/code-diff/code-diff.variable.css +258 -0
  27. package/lib/collapse/collapse.css +130 -1
  28. package/lib/collapse/collapse.variable.css +258 -0
  29. package/lib/collapse-transition/collapse-transition.css +129 -0
  30. package/lib/collapse-transition/collapse-transition.variable.css +258 -0
  31. package/lib/color-picker/color-picker.css +129 -0
  32. package/lib/color-picker/color-picker.variable.css +258 -0
  33. package/lib/config-provider/config-provider.css +129 -0
  34. package/lib/config-provider/config-provider.variable.css +258 -0
  35. package/lib/container/container.css +129 -0
  36. package/lib/container/container.variable.css +387 -0
  37. package/lib/container/index.js +0 -1
  38. package/lib/date-picker/date-picker.css +146 -17
  39. package/lib/date-picker/date-picker.variable.css +258 -0
  40. package/lib/date-picker/index.js +1 -0
  41. package/lib/date-picker/panel/date-range.d.ts +4 -4
  42. package/lib/dialog/dialog.css +137 -8
  43. package/lib/dialog/dialog.variable.css +395 -8
  44. package/lib/divider/divider.css +132 -3
  45. package/lib/divider/divider.variable.css +258 -0
  46. package/lib/dropdown/dropdown.css +129 -0
  47. package/lib/dropdown/dropdown.variable.css +387 -0
  48. package/lib/exception/exception.css +129 -0
  49. package/lib/exception/exception.variable.css +258 -0
  50. package/lib/fixed-navbar/fixed-navbar.css +133 -4
  51. package/lib/fixed-navbar/fixed-navbar.variable.css +258 -0
  52. package/lib/form/form.css +129 -0
  53. package/lib/form/form.variable.css +258 -0
  54. package/lib/form/index.js +0 -1
  55. package/lib/image/image-viewer.css +129 -0
  56. package/lib/image/image-viewer.variable.css +258 -0
  57. package/lib/image/image.css +129 -0
  58. package/lib/image/image.variable.css +387 -0
  59. package/lib/image/index.js +0 -1
  60. package/lib/index.js +1 -1
  61. package/lib/info-box/info-box.css +133 -4
  62. package/lib/info-box/info-box.variable.css +258 -0
  63. package/lib/input/index.js +0 -1
  64. package/lib/input/input.css +201 -72
  65. package/lib/input/input.variable.css +459 -72
  66. package/lib/link/link.css +145 -16
  67. package/lib/link/link.variable.css +258 -0
  68. package/lib/loading/loading.css +145 -16
  69. package/lib/loading/loading.variable.css +403 -16
  70. package/lib/menu/menu.css +147 -18
  71. package/lib/menu/menu.variable.css +405 -18
  72. package/lib/menu/submenu.css +129 -0
  73. package/lib/menu/submenu.variable.css +258 -0
  74. package/lib/message/message.css +150 -21
  75. package/lib/message/message.variable.css +258 -0
  76. package/lib/modal/modal.css +133 -4
  77. package/lib/modal/modal.variable.css +391 -4
  78. package/lib/navigation/navigation.css +131 -2
  79. package/lib/navigation/navigation.variable.css +258 -0
  80. package/lib/notify/notify.css +136 -7
  81. package/lib/notify/notify.variable.css +258 -0
  82. package/lib/pagination/pagination.css +130 -1
  83. package/lib/pagination/pagination.variable.css +258 -0
  84. package/lib/plugin-popover/index.js +0 -1
  85. package/lib/pop-confirm/pop-confirm.css +129 -0
  86. package/lib/pop-confirm/pop-confirm.variable.css +258 -0
  87. package/lib/popover/index.js +0 -1
  88. package/lib/popover/popover.css +129 -0
  89. package/lib/popover/popover.variable.css +258 -0
  90. package/lib/process/process.css +142 -13
  91. package/lib/process/process.variable.css +258 -0
  92. package/lib/progress/index.js +0 -1
  93. package/lib/progress/progress.css +133 -4
  94. package/lib/progress/progress.variable.css +391 -4
  95. package/lib/radio/radio.css +171 -42
  96. package/lib/radio/radio.variable.css +258 -0
  97. package/lib/rate/rate.css +129 -0
  98. package/lib/rate/rate.variable.css +258 -0
  99. package/lib/resize-layout/resize-layout.css +129 -0
  100. package/lib/resize-layout/resize-layout.variable.css +258 -0
  101. package/lib/scrollbar/scrollbar.css +129 -0
  102. package/lib/scrollbar/scrollbar.variable.css +258 -0
  103. package/lib/search-select/search-select.css +162 -33
  104. package/lib/search-select/search-select.variable.css +420 -33
  105. package/lib/select/index.js +0 -2
  106. package/lib/select/select.css +168 -39
  107. package/lib/select/select.variable.css +426 -39
  108. package/lib/sideslider/sideslider.css +130 -1
  109. package/lib/sideslider/sideslider.variable.css +258 -0
  110. package/lib/slider/slider.css +134 -5
  111. package/lib/slider/slider.variable.css +258 -0
  112. package/lib/steps/steps.css +167 -38
  113. package/lib/steps/steps.variable.css +258 -0
  114. package/lib/styles/mixins/animate.css +129 -0
  115. package/lib/styles/mixins/animate.variable.css +258 -0
  116. package/lib/styles/mixins/mixins.css +129 -0
  117. package/lib/styles/mixins/mixins.variable.css +129 -0
  118. package/lib/styles/mixins/popper.css +129 -0
  119. package/lib/styles/mixins/popper.variable.css +258 -0
  120. package/lib/styles/mixins/scroll.css +129 -0
  121. package/lib/styles/mixins/scroll.variable.css +258 -0
  122. package/lib/styles/reset.css +129 -0
  123. package/lib/styles/reset.variable.css +258 -0
  124. package/lib/styles/themes/themes.css +129 -0
  125. package/lib/styles/themes/themes.less +306 -127
  126. package/lib/styles/themes/themes.variable.css +129 -0
  127. package/lib/swiper/swiper.css +129 -0
  128. package/lib/swiper/swiper.variable.css +258 -0
  129. package/lib/switcher/switcher.css +146 -17
  130. package/lib/switcher/switcher.variable.css +404 -17
  131. package/lib/tab/tab.css +146 -17
  132. package/lib/tab/tab.variable.css +258 -0
  133. package/lib/table/const.d.ts +12 -0
  134. package/lib/table/events.d.ts +2 -98
  135. package/lib/table/hooks/use-column-resize.d.ts +5 -0
  136. package/lib/table/{plugins → hooks}/use-column-template.d.ts +1 -2
  137. package/lib/table/hooks/use-columns.d.ts +53 -0
  138. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  139. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  140. package/lib/table/hooks/use-head.d.ts +15 -0
  141. package/lib/table/hooks/use-layout.d.ts +20 -0
  142. package/lib/table/hooks/use-pagination.d.ts +16 -0
  143. package/lib/table/hooks/use-render.d.ts +23 -0
  144. package/lib/table/hooks/use-rows.d.ts +25 -0
  145. package/lib/table/hooks/use-settings.d.ts +23 -0
  146. package/lib/table/index.d.ts +27 -502
  147. package/lib/table/index.js +3125 -3524
  148. package/lib/table/plugins/head-filter.css +129 -0
  149. package/lib/table/plugins/head-filter.d.ts +2 -1
  150. package/lib/table/plugins/head-filter.variable.css +258 -0
  151. package/lib/table/plugins/head-sort.css +129 -0
  152. package/lib/table/plugins/head-sort.variable.css +258 -0
  153. package/lib/table/plugins/settings.css +130 -0
  154. package/lib/table/plugins/settings.less +1 -0
  155. package/lib/table/plugins/settings.variable.css +259 -0
  156. package/lib/table/props.d.ts +17 -8
  157. package/lib/table/table.css +321 -191
  158. package/lib/table/table.d.ts +18 -174
  159. package/lib/table/table.less +24 -22
  160. package/lib/table/table.variable.css +579 -191
  161. package/lib/table/utils.d.ts +24 -3
  162. package/lib/table-column/index.js +18 -2
  163. package/lib/tag/tag.css +134 -5
  164. package/lib/tag/tag.variable.css +258 -0
  165. package/lib/tag-input/tag-input.css +147 -18
  166. package/lib/tag-input/tag-input.variable.css +258 -0
  167. package/lib/time-picker/time-picker.css +129 -0
  168. package/lib/time-picker/time-picker.variable.css +258 -0
  169. package/lib/timeline/timeline.css +148 -19
  170. package/lib/timeline/timeline.variable.css +258 -0
  171. package/lib/transfer/transfer.css +148 -19
  172. package/lib/transfer/transfer.variable.css +258 -0
  173. package/lib/tree/tree.css +138 -9
  174. package/lib/tree/tree.variable.css +396 -9
  175. package/lib/upload/upload.css +156 -27
  176. package/lib/upload/upload.variable.css +414 -27
  177. package/lib/virtual-render/index.js +1 -1
  178. package/lib/virtual-render/virtual-render.css +129 -0
  179. package/lib/virtual-render/virtual-render.variable.css +387 -0
  180. package/package.json +1 -1
  181. package/lib/table/plugins/col-group.d.ts +0 -38
  182. package/lib/table/plugins/settings.d.ts +0 -16
  183. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  184. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  185. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  186. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  187. package/lib/table/plugins/use-pagination.d.ts +0 -23
  188. package/lib/table/use-attributes.d.ts +0 -62
  189. package/lib/table/use-column.d.ts +0 -155
  190. package/lib/table/use-common.d.ts +0 -1679
  191. package/lib/table/use-render.d.ts +0 -11
  192. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  193. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  194. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
  195. /package/lib/table/{plugins → hooks}/use-shift-key.d.ts +0 -0
@@ -1,23 +0,0 @@
1
- import { Column, SortScope, TablePropTypes } from '../props';
2
- /**
3
- * 处理 Prop中的分页配置
4
- * prop中的配置会覆盖本地的配置
5
- * @param propPagination 用户传入的配置
6
- * @param defVal 默认配置
7
- * @returns 返回值
8
- */
9
- export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
10
- declare const _default: (props: TablePropTypes) => {
11
- pageData: any[];
12
- indexData: any[];
13
- localPagination: import("vue").Ref<any>;
14
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
- resolveIndexData: () => Promise<void>;
16
- resolvePageDataBySortList: (multiCol?: any) => void;
17
- handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
18
- resetStartEndIndex: () => void;
19
- getCurrentPageData: () => any[];
20
- multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
21
- sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
22
- };
23
- export default _default;
@@ -1,62 +0,0 @@
1
- import { IEmptyObject } from './const';
2
- import { Column, Field, Settings, TablePropTypes } from './props';
3
- export type ITableFormatData = {
4
- data: any[];
5
- dataSchema: WeakMap<object, any>;
6
- columnSchema: WeakMap<object, any>;
7
- columns: Column[];
8
- settings: {
9
- size: string;
10
- height: number;
11
- fields: Field[];
12
- checked: string[];
13
- };
14
- layout: {
15
- bottom: number;
16
- hasScrollY: boolean;
17
- translateX: number;
18
- translateY: number;
19
- };
20
- };
21
- declare const tableSchemaResponse: (props: TablePropTypes) => {
22
- formatColumns: (columns: Column[]) => void;
23
- formatDataSchema: (data: any[]) => void;
24
- setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
25
- setRowExpand: (row: any, isExpand: boolean) => void;
26
- setRowIndex: (row: any, index: number) => void;
27
- setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
28
- setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
29
- setColumnSortActive: (column: Column, active: boolean) => void;
30
- setRowSelectionAll: (val: boolean) => void;
31
- setRowIndeterminate: () => void;
32
- setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
33
- getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
34
- getColumnId: (col: Column) => any;
35
- getColumnOrderWidth: (col: Column, orders?: string[]) => number;
36
- getRowSelection: () => any[];
37
- resolveColumnWidth: (root: HTMLElement, autoWidth?: number, offsetWidth?: number) => void;
38
- isActiveColumn: (col: Column) => any;
39
- isHiddenColumn: (col: Column) => any;
40
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
41
- resolveByDefColumns: () => void;
42
- resetStartEndIndex: () => void;
43
- toggleAllSelection: (value?: boolean) => void;
44
- setAllRowExpand: (value?: boolean) => void;
45
- clearSelection: () => void;
46
- clearColumnSort: (reset?: boolean) => void;
47
- toggleRowSelection: (row: any) => void;
48
- getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
49
- filter: () => void;
50
- sortData: (column: Column) => void;
51
- isCheckedAll: () => boolean;
52
- hasCheckedRow: () => boolean;
53
- updateSettings: (settings?: Settings, rowHeight?: number) => void;
54
- changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
55
- pageData: any[];
56
- localPagination: import("vue").Ref<any>;
57
- formatData: ITableFormatData;
58
- setIndexData: () => Promise<void>;
59
- getFilterFnList: () => any[];
60
- };
61
- export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
62
- export default tableSchemaResponse;
@@ -1,155 +0,0 @@
1
- import { SORT_OPTION } from './const';
2
- import { TablePropTypes } from './props';
3
- /**
4
- * 渲染column settings
5
- * @param props: TablePropTypes
6
- * @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
7
- */
8
- declare const _default: (props: TablePropTypes) => {
9
- initColumns: (tableInstance: any) => void;
10
- getColumns: () => {
11
- label: import("./props").LabelFunctionString;
12
- field?: import("./props").LabelFunctionString;
13
- render?: import("./props").RenderFunctionString;
14
- renderHead?: import("./props").RenderFunctionString;
15
- width?: string | number;
16
- minWidth?: string | number;
17
- columnKey?: string;
18
- showOverflowTooltip?: boolean | {
19
- content: string | ((col: import("./props").Column, row: any) => string);
20
- disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
21
- watchCellResize?: boolean;
22
- mode?: "auto" | "static";
23
- popoverOption?: any;
24
- resizerWay?: import("./props").ResizerWay;
25
- showHead?: boolean;
26
- };
27
- type?: string;
28
- fixed?: string | boolean;
29
- resizable?: boolean;
30
- sort?: string | boolean | {
31
- sortFn?: Function;
32
- sortScope?: import("./props").SortScope;
33
- value?: SORT_OPTION;
34
- };
35
- filter?: string | boolean | {
36
- list: any[];
37
- filterFn?: Function;
38
- match?: import("./props").FullEnum;
39
- checked?: any[];
40
- filterScope?: import("./props").SortScope;
41
- btnSave?: string | boolean;
42
- btnReset?: string | boolean;
43
- height?: number;
44
- maxHeight?: number;
45
- };
46
- colspan?: import("./props").SpanFunctionString;
47
- rowspan?: import("./props").SpanFunctionString;
48
- textAlign?: string;
49
- className?: import("./props").RowClassFunctionString;
50
- align?: string;
51
- prop?: import("./props").LabelFunctionString;
52
- index?: number;
53
- explain?: boolean | {
54
- content: import("./props").LabelFunctionString;
55
- head: import("./props").LabelFunctionString;
56
- };
57
- }[];
58
- getActiveColumn: () => {
59
- label: import("./props").LabelFunctionString;
60
- field?: import("./props").LabelFunctionString;
61
- render?: import("./props").RenderFunctionString;
62
- renderHead?: import("./props").RenderFunctionString;
63
- width?: string | number;
64
- minWidth?: string | number;
65
- columnKey?: string;
66
- showOverflowTooltip?: boolean | {
67
- content: string | ((col: import("./props").Column, row: any) => string);
68
- disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
69
- watchCellResize?: boolean;
70
- mode?: "auto" | "static";
71
- popoverOption?: any;
72
- resizerWay?: import("./props").ResizerWay;
73
- showHead?: boolean;
74
- };
75
- type?: string;
76
- fixed?: string | boolean;
77
- resizable?: boolean;
78
- sort?: string | boolean | {
79
- sortFn?: Function;
80
- sortScope?: import("./props").SortScope;
81
- value?: SORT_OPTION;
82
- };
83
- filter?: string | boolean | {
84
- list: any[];
85
- filterFn?: Function;
86
- match?: import("./props").FullEnum;
87
- checked?: any[];
88
- filterScope?: import("./props").SortScope;
89
- btnSave?: string | boolean;
90
- btnReset?: string | boolean;
91
- height?: number;
92
- maxHeight?: number;
93
- };
94
- colspan?: import("./props").SpanFunctionString;
95
- rowspan?: import("./props").SpanFunctionString;
96
- textAlign?: string;
97
- className?: import("./props").RowClassFunctionString;
98
- align?: string;
99
- prop?: import("./props").LabelFunctionString;
100
- index?: number;
101
- explain?: boolean | {
102
- content: import("./props").LabelFunctionString;
103
- head: import("./props").LabelFunctionString;
104
- };
105
- };
106
- columns: {
107
- label: import("./props").LabelFunctionString;
108
- field?: import("./props").LabelFunctionString;
109
- render?: import("./props").RenderFunctionString;
110
- renderHead?: import("./props").RenderFunctionString;
111
- width?: string | number;
112
- minWidth?: string | number;
113
- columnKey?: string;
114
- showOverflowTooltip?: boolean | {
115
- content: string | ((col: import("./props").Column, row: any) => string);
116
- disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
117
- watchCellResize?: boolean;
118
- mode?: "auto" | "static";
119
- popoverOption?: any;
120
- resizerWay?: import("./props").ResizerWay;
121
- showHead?: boolean;
122
- };
123
- type?: string;
124
- fixed?: string | boolean;
125
- resizable?: boolean;
126
- sort?: string | boolean | {
127
- sortFn?: Function;
128
- sortScope?: import("./props").SortScope;
129
- value?: SORT_OPTION;
130
- };
131
- filter?: string | boolean | {
132
- list: any[];
133
- filterFn?: Function;
134
- match?: import("./props").FullEnum;
135
- checked?: any[];
136
- filterScope?: import("./props").SortScope;
137
- btnSave?: string | boolean;
138
- btnReset?: string | boolean;
139
- height?: number;
140
- maxHeight?: number;
141
- };
142
- colspan?: import("./props").SpanFunctionString;
143
- rowspan?: import("./props").SpanFunctionString;
144
- textAlign?: string;
145
- className?: import("./props").RowClassFunctionString;
146
- align?: string;
147
- prop?: import("./props").LabelFunctionString;
148
- index?: number;
149
- explain?: boolean | {
150
- content: import("./props").LabelFunctionString;
151
- head: import("./props").LabelFunctionString;
152
- };
153
- }[];
154
- };
155
- export default _default;