bkui-vue 1.0.3-beta.7 → 1.0.3-beta.70

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 (230) hide show
  1. package/dist/index.cjs.js +148 -150
  2. package/dist/index.esm.js +17965 -16537
  3. package/dist/index.umd.js +148 -150
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.variable.css +3 -0
  26. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  27. package/lib/color-picker/color-picker.variable.css +3 -0
  28. package/lib/components.d.ts +1 -0
  29. package/lib/components.js +2 -5
  30. package/lib/config-provider/config-provider.d.ts +3 -0
  31. package/lib/config-provider/config-provider.variable.css +3 -0
  32. package/lib/config-provider/index.d.ts +4 -0
  33. package/lib/config-provider/token.d.ts +1 -0
  34. package/lib/container/container.variable.css +3 -0
  35. package/lib/date-picker/base/month-table.d.ts +2 -2
  36. package/lib/date-picker/date-picker.d.ts +1 -0
  37. package/lib/date-picker/date-picker.variable.css +3 -0
  38. package/lib/date-picker/index.d.ts +3 -0
  39. package/lib/date-picker/index.js +70 -32
  40. package/lib/date-picker/interface.d.ts +1 -1
  41. package/lib/date-picker/time-picker.d.ts +1 -0
  42. package/lib/date-picker/utils.d.ts +4 -0
  43. package/lib/dialog/dialog.css +93 -122
  44. package/lib/dialog/dialog.d.ts +39 -14
  45. package/lib/dialog/dialog.less +92 -98
  46. package/lib/dialog/dialog.variable.css +96 -122
  47. package/lib/dialog/index.d.ts +81 -30
  48. package/lib/dialog/index.js +146 -124
  49. package/lib/dialog/props.d.ts +18 -6
  50. package/lib/directives/index.js +0 -1
  51. package/lib/dist.index.js +0 -1
  52. package/lib/divider/divider.variable.css +3 -0
  53. package/lib/dropdown/dropdown.css +3 -1
  54. package/lib/dropdown/dropdown.variable.css +6 -1
  55. package/lib/exception/exception.variable.css +3 -0
  56. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  57. package/lib/form/form.variable.css +3 -0
  58. package/lib/form/index.js +3 -1
  59. package/lib/hooks.js +1 -8
  60. package/lib/icon/image-fill.js +82 -167
  61. package/lib/icon/img-error.js +82 -167
  62. package/lib/icon/img-placehoulder.js +82 -167
  63. package/lib/icon/index.d.ts +1 -0
  64. package/lib/icon/index.js +87 -2427
  65. package/lib/icon/info-line.js +82 -167
  66. package/lib/icon/info.js +82 -167
  67. package/lib/icon/left-shape.js +82 -167
  68. package/lib/icon/left-turn-line.js +82 -167
  69. package/lib/icon/loading.js +82 -167
  70. package/lib/icon/narrow-line.js +82 -167
  71. package/lib/icon/original.js +82 -167
  72. package/lib/icon/pdf-fill.js +82 -167
  73. package/lib/icon/play-shape.js +82 -167
  74. package/lib/icon/plus.js +82 -167
  75. package/lib/icon/ppt-fill.js +82 -167
  76. package/lib/icon/qq.js +82 -167
  77. package/lib/icon/right-shape.js +82 -167
  78. package/lib/icon/right-turn-line.js +82 -167
  79. package/lib/icon/search.js +82 -167
  80. package/lib/icon/share.js +82 -167
  81. package/lib/icon/spinner.js +82 -167
  82. package/lib/icon/success.js +82 -167
  83. package/lib/icon/switcher-loading.js +82 -167
  84. package/lib/icon/text-all.d.ts +4 -0
  85. package/lib/icon/text-all.js +191 -0
  86. package/lib/icon/text-file.js +82 -167
  87. package/lib/icon/text-fill.js +82 -167
  88. package/lib/icon/transfer.js +82 -167
  89. package/lib/icon/tree-application-shape.js +82 -167
  90. package/lib/icon/unfull-screen.js +82 -167
  91. package/lib/icon/unvisible.js +82 -167
  92. package/lib/icon/up-shape.js +82 -167
  93. package/lib/icon/upload.js +82 -167
  94. package/lib/icon/video-fill.js +82 -167
  95. package/lib/icon/warn.js +82 -167
  96. package/lib/icon/weixin-pro.js +82 -167
  97. package/lib/icon/weixin.js +82 -167
  98. package/lib/image/image-viewer.variable.css +3 -0
  99. package/lib/image/image.variable.css +3 -0
  100. package/lib/image/index.js +5 -2
  101. package/lib/index.js +0 -1
  102. package/lib/info-box/index.js +41 -455
  103. package/lib/info-box/info-box.css +6 -32
  104. package/lib/info-box/info-box.d.ts +1 -1
  105. package/lib/info-box/info-box.less +16 -47
  106. package/lib/info-box/info-box.variable.css +9 -32
  107. package/lib/input/index.js +5 -0
  108. package/lib/input/input.variable.css +3 -0
  109. package/lib/link/link.variable.css +3 -0
  110. package/lib/loading/loading.variable.css +3 -0
  111. package/lib/locale/index.js +4 -2
  112. package/lib/locale/lang/en.d.ts +1 -0
  113. package/lib/menu/menu.variable.css +3 -0
  114. package/lib/menu/submenu.variable.css +3 -0
  115. package/lib/message/message.variable.css +3 -0
  116. package/lib/modal/hooks.d.ts +6 -0
  117. package/lib/modal/index.d.ts +100 -52
  118. package/lib/modal/index.js +173 -74
  119. package/lib/modal/modal.css +41 -65
  120. package/lib/modal/modal.d.ts +40 -17
  121. package/lib/modal/modal.less +50 -57
  122. package/lib/modal/modal.variable.css +44 -65
  123. package/lib/modal/props.mixin.d.ts +12 -0
  124. package/lib/navigation/navigation.variable.css +3 -0
  125. package/lib/notify/notify.variable.css +3 -0
  126. package/lib/pagination/index.js +2 -1
  127. package/lib/pagination/pagination.variable.css +3 -0
  128. package/lib/plugin-popover/index.d.ts +1 -1
  129. package/lib/plugin-popover/index.js +45 -26
  130. package/lib/pop-confirm/index.js +8 -5
  131. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  132. package/lib/popover/content.d.ts +1 -1
  133. package/lib/popover/index.js +45 -26
  134. package/lib/popover/plugin-popover.d.ts +4 -1
  135. package/lib/popover/popover.css +3 -1
  136. package/lib/popover/popover.less +4 -1
  137. package/lib/popover/popover.variable.css +6 -1
  138. package/lib/preset.d.ts +2 -0
  139. package/lib/preset.js +14 -20
  140. package/lib/process/process.variable.css +3 -0
  141. package/lib/progress/progress.variable.css +3 -0
  142. package/lib/radio/index.js +5 -5
  143. package/lib/radio/radio.variable.css +3 -0
  144. package/lib/rate/rate.variable.css +3 -0
  145. package/lib/rate/star.variable.css +3 -0
  146. package/lib/resize-layout/index.js +1 -1
  147. package/lib/resize-layout/resize-layout.variable.css +3 -0
  148. package/lib/search-select/index.d.ts +375 -16
  149. package/lib/search-select/index.js +701 -366
  150. package/lib/search-select/input.d.ts +14 -5
  151. package/lib/search-select/search-select.css +20 -6
  152. package/lib/search-select/search-select.d.ts +129 -7
  153. package/lib/search-select/search-select.less +16 -12
  154. package/lib/search-select/search-select.variable.css +23 -6
  155. package/lib/search-select/selected.d.ts +116 -6
  156. package/lib/search-select/utils.d.ts +19 -6
  157. package/lib/select/index.d.ts +143 -6
  158. package/lib/select/index.js +1355 -78
  159. package/lib/select/option.d.ts +3 -1
  160. package/lib/select/pinyin/core.d.ts +14 -0
  161. package/lib/select/pinyin/dict.d.ts +34 -0
  162. package/lib/select/pinyin/index.d.ts +2 -0
  163. package/lib/select/select.css +55 -12
  164. package/lib/select/select.d.ts +59 -2
  165. package/lib/select/select.less +69 -19
  166. package/lib/select/select.variable.css +58 -12
  167. package/lib/select/selectTagInput.d.ts +7 -0
  168. package/lib/select/type.d.ts +2 -3
  169. package/lib/shared/index.js +67 -3
  170. package/lib/shared/utils.d.ts +12 -0
  171. package/lib/shared/vue-types.d.ts +5 -0
  172. package/lib/sideslider/index.d.ts +55 -9
  173. package/lib/sideslider/index.js +26 -25
  174. package/lib/sideslider/sideslider.css +51 -46
  175. package/lib/sideslider/sideslider.d.ts +25 -3
  176. package/lib/sideslider/sideslider.less +108 -104
  177. package/lib/sideslider/sideslider.variable.css +54 -46
  178. package/lib/slider/slider.variable.css +3 -0
  179. package/lib/steps/steps.variable.css +3 -0
  180. package/lib/styles/mixins/animate.variable.css +3 -0
  181. package/lib/styles/mixins/popper.variable.css +3 -0
  182. package/lib/styles/mixins/scroll.variable.css +3 -0
  183. package/lib/styles/reset.css +1 -3
  184. package/lib/styles/reset.less +3 -6
  185. package/lib/styles/reset.variable.css +4 -3
  186. package/lib/styles/themes/themes.less +5 -0
  187. package/lib/swiper/swiper.variable.css +3 -0
  188. package/lib/switcher/switcher.variable.css +3 -0
  189. package/lib/tab/tab.variable.css +3 -0
  190. package/lib/table/cache.d.ts +11 -3
  191. package/lib/table/components/table-column.d.ts +111 -5
  192. package/lib/table/index.d.ts +51 -5
  193. package/lib/table/index.js +504 -261
  194. package/lib/table/plugins/head-filter.variable.css +3 -0
  195. package/lib/table/plugins/head-sort.variable.css +3 -0
  196. package/lib/table/plugins/settings.variable.css +3 -0
  197. package/lib/table/plugins/use-draggable.d.ts +2 -2
  198. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  199. package/lib/table/props.d.ts +6 -4
  200. package/lib/table/table.css +6 -12
  201. package/lib/table/table.less +12 -9
  202. package/lib/table/table.variable.css +9 -12
  203. package/lib/table/use-attributes.d.ts +4 -42
  204. package/lib/table/utils.d.ts +2 -2
  205. package/lib/table-column/index.d.ts +235 -119
  206. package/lib/table-column/index.js +217 -30
  207. package/lib/tag/tag.variable.css +3 -0
  208. package/lib/tag-input/index.d.ts +4 -4
  209. package/lib/tag-input/tag-input.d.ts +2 -2
  210. package/lib/tag-input/tag-input.variable.css +3 -0
  211. package/lib/tag-input/tag-props.d.ts +1 -1
  212. package/lib/tag-input/tag-render.d.ts +1 -1
  213. package/lib/time-picker/index.d.ts +38 -35
  214. package/lib/time-picker/time-picker.variable.css +3 -0
  215. package/lib/timeline/index.d.ts +80 -44
  216. package/lib/timeline/index.js +54 -65
  217. package/lib/timeline/timeline.d.ts +46 -29
  218. package/lib/timeline/timeline.variable.css +3 -0
  219. package/lib/transfer/transfer.variable.css +3 -0
  220. package/lib/tree/tree.variable.css +3 -0
  221. package/lib/upload/index.d.ts +12 -0
  222. package/lib/upload/index.js +21 -30
  223. package/lib/upload/props.d.ts +3 -0
  224. package/lib/upload/upload-trigger.d.ts +6 -0
  225. package/lib/upload/upload.d.ts +6 -0
  226. package/lib/upload/upload.variable.css +3 -0
  227. package/lib/virtual-render/index.d.ts +9 -9
  228. package/lib/virtual-render/virtual-render.d.ts +3 -3
  229. package/lib/virtual-render/virtual-render.variable.css +3 -0
  230. package/package.json +3 -2
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-table-head-action {
128
131
  display: flex;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-head-cell-sort {
128
131
  display: flex;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-table-settings[data-bk-table-settings-theme='true'] {
128
131
  padding: 0;
@@ -6,12 +6,12 @@ declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: Setup
6
6
  onDragleave?: undefined;
7
7
  onDragstart?: undefined;
8
8
  onDragover?: undefined;
9
- onDrop?: undefined;
9
+ onDragend?: undefined;
10
10
  } | {
11
11
  onDragenter: (event: DragEvent) => void;
12
12
  onDragleave: (event: DragEvent) => void;
13
13
  onDragstart: (event: DragEvent) => void;
14
14
  onDragover: (event: DragEvent) => void;
15
- onDrop: (event: DragEvent) => void;
15
+ onDragend: (event: DragEvent) => void;
16
16
  };
17
17
  export default _default;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ declare const _default: (target: Ref<HTMLElement>, fn: any, args?: any[], immediate?: boolean) => {
3
+ instance: any;
4
+ };
5
+ export default _default;
@@ -17,7 +17,7 @@ export declare enum ColumnTypeEnum {
17
17
  SELECTION = "selection",
18
18
  INDEX = "index",
19
19
  EXPAND = "expand",
20
- NONE = "none"
20
+ NONE = "__COL_TYPE_NONE"
21
21
  }
22
22
  export declare enum TableAlignEnum {
23
23
  LEFT = "left",
@@ -25,7 +25,7 @@ export declare enum TableAlignEnum {
25
25
  CENTER = "center",
26
26
  NONE = ""
27
27
  }
28
- export declare const columnType: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
28
+ export declare const columnType: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
29
29
  export declare const TableAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
30
30
  export declare enum FullEnum {
31
31
  FULL = "full",
@@ -43,7 +43,7 @@ export declare enum FixedEnum {
43
43
  RIGHT = "right"
44
44
  }
45
45
  export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
46
- export type IOverflowTooltipProp = {
46
+ export type IOverflowTooltipOption = {
47
47
  content: string | Function;
48
48
  disabled?: (col: Column, row: any) => boolean | boolean;
49
49
  watchCellResize?: boolean;
@@ -51,7 +51,8 @@ export type IOverflowTooltipProp = {
51
51
  popoverOption?: any;
52
52
  resizerWay?: ResizerWay;
53
53
  showHead?: boolean;
54
- } | boolean;
54
+ };
55
+ export type IOverflowTooltipProp = IOverflowTooltipOption | boolean;
55
56
  export type IOverflowTooltip = IOverflowTooltipProp;
56
57
  export declare const IOverflowTooltipPropType: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
57
58
  export type ISortOption = {
@@ -103,6 +104,7 @@ export type Settings = {
103
104
  size?: string;
104
105
  sizeList?: SizeItem[];
105
106
  showLineHeight?: boolean;
107
+ extCls?: string;
106
108
  trigger: 'manual';
107
109
  };
108
110
  export type ISettingPropType = Settings | boolean;
@@ -736,7 +736,6 @@
736
736
  }
737
737
  .bk-popover.bk-pop2-content {
738
738
  position: absolute;
739
- display: none;
740
739
  padding: 12px;
741
740
  font-size: 12px;
742
741
  color: #fff;
@@ -744,6 +743,9 @@
744
743
  border-radius: 4px;
745
744
  box-sizing: border-box;
746
745
  }
746
+ .bk-popover.bk-pop2-content.hidden {
747
+ display: none;
748
+ }
747
749
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
748
750
  position: absolute;
749
751
  z-index: -1;
@@ -1285,17 +1287,9 @@
1285
1287
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
1286
1288
  background: #f5f7fa;
1287
1289
  }
1288
- .bk-table .bk-table-head table tbody tr.--drag-enter.--bottom,
1289
- .bk-table .bk-table-body table tbody tr.--drag-enter.--bottom {
1290
- border-bottom: solid 1px #3785ff;
1291
- }
1292
- .bk-table .bk-table-head table tbody tr.--drag-enter.--top,
1293
- .bk-table .bk-table-body table tbody tr.--drag-enter.--top {
1294
- border-top: solid 1px #3785ff;
1295
- }
1296
- .bk-table .bk-table-head table tbody tr.--drag-start,
1297
- .bk-table .bk-table-body table tbody tr.--drag-start {
1298
- background: #fff;
1290
+ .bk-table .bk-table-head table tbody tr.--drag-start td,
1291
+ .bk-table .bk-table-body table tbody tr.--drag-start td {
1292
+ background: #fff !important;
1299
1293
  }
1300
1294
  .bk-table .bk-table-head {
1301
1295
  position: relative;
@@ -313,18 +313,21 @@
313
313
  }
314
314
  }
315
315
 
316
- &.--drag-enter {
317
- &.--bottom {
318
- border-bottom: solid 1px #3785ff;
319
- }
316
+ // &.--drag-enter {
317
+ // &.--bottom {
318
+ // border-bottom: solid 1px #3785ff;
319
+ // }
320
320
 
321
- &.--top {
322
- border-top: solid 1px #3785ff;
323
- }
324
- }
321
+ // &.--top {
322
+ // border-top: solid 1px #3785ff;
323
+ // }
324
+ // }
325
325
 
326
326
  &.--drag-start {
327
- background: #fff;
327
+
328
+ td {
329
+ background: #fff!important;
330
+ }
328
331
  }
329
332
  }
330
333
  }
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-F-scroll-x {
128
131
  overflow-x: auto;
@@ -862,7 +865,6 @@
862
865
  }
863
866
  .bk-popover.bk-pop2-content {
864
867
  position: absolute;
865
- display: none;
866
868
  padding: 12px;
867
869
  font-size: 12px;
868
870
  color: #fff;
@@ -870,6 +872,9 @@
870
872
  border-radius: 4px;
871
873
  box-sizing: border-box;
872
874
  }
875
+ .bk-popover.bk-pop2-content.hidden {
876
+ display: none;
877
+ }
873
878
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
874
879
  position: absolute;
875
880
  z-index: -1;
@@ -1411,17 +1416,9 @@
1411
1416
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
1412
1417
  background: #f5f7fa;
1413
1418
  }
1414
- .bk-table .bk-table-head table tbody tr.--drag-enter.--bottom,
1415
- .bk-table .bk-table-body table tbody tr.--drag-enter.--bottom {
1416
- border-bottom: solid 1px #3785ff;
1417
- }
1418
- .bk-table .bk-table-head table tbody tr.--drag-enter.--top,
1419
- .bk-table .bk-table-body table tbody tr.--drag-enter.--top {
1420
- border-top: solid 1px #3785ff;
1421
- }
1422
- .bk-table .bk-table-head table tbody tr.--drag-start,
1423
- .bk-table .bk-table-body table tbody tr.--drag-start {
1424
- background: #fff;
1419
+ .bk-table .bk-table-head table tbody tr.--drag-start td,
1420
+ .bk-table .bk-table-body table tbody tr.--drag-start td {
1421
+ background: #fff !important;
1425
1422
  }
1426
1423
  .bk-table .bk-table-head {
1427
1424
  position: relative;
@@ -1,5 +1,5 @@
1
1
  import { IEmptyObject } from './const';
2
- import { Column, Field, Settings, SortScope, TablePropTypes } from './props';
2
+ import { Column, Field, Settings, TablePropTypes } from './props';
3
3
  export type ITableFormatData = {
4
4
  data: any[];
5
5
  dataSchema: WeakMap<object, any>;
@@ -18,46 +18,7 @@ export type ITableFormatData = {
18
18
  translateY: number;
19
19
  };
20
20
  };
21
- export type ITableResponse = {
22
- setIndexData: () => Promise<void>;
23
- formatColumns: (columns: Column[]) => void;
24
- formatDataSchema: (data: any[]) => void;
25
- setRowSelection: (row: any, isSelected: boolean) => void;
26
- setRowExpand: (row: any, isExpand: boolean) => void;
27
- setRowIndex: (row: any, index: number) => void;
28
- setColumnAttribute: (col: Column, attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
29
- setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
30
- setAllColumnAttribute: (attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
31
- getColumnAttribute: (col: Column, attributeName: string) => string | boolean | Record<string, any>;
32
- getColumnId: (col: Column) => string;
33
- getColumnOrderWidth: (column: Column, orders?: string[]) => number;
34
- isActiveColumn: (col: Column) => boolean;
35
- isHiddenColumn: (col: Column) => boolean;
36
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: SortScope) => void;
37
- resolveByDefColumns: () => void;
38
- resetStartEndIndex: () => void;
39
- toggleRowSelection: (row: any) => void;
40
- toggleAllSelection: (value?: boolean) => void;
41
- setAllRowExpand: (value?: boolean) => void;
42
- clearSelection: () => void;
43
- clearColumnSort: (reset?: boolean) => void;
44
- setColumnSortActive: (column: Column, active: boolean) => void;
45
- getRowAttribute: (row: any | IEmptyObject, attrName: string) => any;
46
- getRowSelection: () => any[];
47
- resolveColumnWidth: (root: HTMLElement, autoWidth?: any, offsetWidth?: any) => void;
48
- filter: () => void;
49
- sortData: (column: Column) => void;
50
- isCheckedAll: () => boolean;
51
- hasCheckedRow: () => boolean;
52
- setRowSelectionAll: (val: boolean) => void;
53
- setRowIndeterminate: () => void;
54
- updateSettings: (settings?: Settings, rowHeight?: number) => void;
55
- changePageRowIndex: (sourceIndex: number, targetIndex: number) => void;
56
- pageData: any[];
57
- localPagination: any;
58
- formatData: ITableFormatData;
59
- };
60
- declare const _default: (props: TablePropTypes) => {
21
+ declare const tableSchemaResponse: (props: TablePropTypes) => {
61
22
  formatColumns: (columns: Column[]) => void;
62
23
  formatDataSchema: (data: any[]) => void;
63
24
  setRowSelection: (row: any, isSelected: boolean) => void;
@@ -96,4 +57,5 @@ declare const _default: (props: TablePropTypes) => {
96
57
  formatData: ITableFormatData;
97
58
  setIndexData: () => Promise<void>;
98
59
  };
99
- export default _default;
60
+ export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
61
+ export default tableSchemaResponse;
@@ -97,7 +97,7 @@ export declare const getRowValue: (row: any, key: string) => any;
97
97
  export declare const formatPropAsArray: (prop: string | object | (() => any), args: any[]) => any;
98
98
  export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
99
99
  export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
100
- export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => any;
100
+ export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;
101
101
  export declare const hasRootScrollY: (root: any, querySelector: string, offsetHeight?: number) => boolean;
102
102
  export declare const getColumnClass: (column: Column, colIndex?: number, uuid?: string) => {
103
103
  column_fixed: boolean;
@@ -111,7 +111,7 @@ export declare const resolveCellSpan: (column: Column, colIndex: number, row: an
111
111
  colspan: any;
112
112
  rowspan: any;
113
113
  };
114
- export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => boolean;
114
+ export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => number | false;
115
115
  export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
116
116
  export declare const getNextSortType: (sortType: string) => string;
117
117
  export declare const resolveSort: (sort: ISortPropShape, column: any, format?: any[]) => ({