bkui-vue 0.0.2-beta.3 → 0.0.2-beta.31

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 (235) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.cjs.source.js +45938 -0
  3. package/dist/index.esm.js +16922 -16471
  4. package/dist/index.esm.source.js +45938 -0
  5. package/dist/index.umd.js +61 -61
  6. package/dist/index.umd.source.js +45941 -0
  7. package/dist/style.css +1 -1
  8. package/dist/style.variable.css +1 -1
  9. package/lib/affix/affix.d.ts +1 -1
  10. package/lib/affix/index.d.ts +4 -4
  11. package/lib/affix/index.js +1 -1
  12. package/lib/alert/alert.css +1 -0
  13. package/lib/alert/alert.less +119 -119
  14. package/lib/alert/alert.variable.css +1 -0
  15. package/lib/alert/index.d.ts +1 -1
  16. package/lib/animate-number/index.d.ts +1 -1
  17. package/lib/backtop/index.d.ts +1 -1
  18. package/lib/backtop/index.js +1 -1
  19. package/lib/badge/badge.d.ts +3 -2
  20. package/lib/badge/index.d.ts +10 -7
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  23. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  24. package/lib/breadcrumb/index.d.ts +5 -5
  25. package/lib/button/button-group.d.ts +2 -2
  26. package/lib/button/index.d.ts +3 -3
  27. package/lib/button/index.js +1 -1
  28. package/lib/card/card.d.ts +1 -1
  29. package/lib/card/index.d.ts +4 -4
  30. package/lib/cascader/cascader-panel.d.ts +1 -0
  31. package/lib/cascader/cascader.d.ts +2 -12
  32. package/lib/cascader/cascader.less +4 -4
  33. package/lib/cascader/index.d.ts +8 -19
  34. package/lib/cascader/index.js +1 -1
  35. package/lib/checkbox/checkbox-group.d.ts +3 -1
  36. package/lib/checkbox/checkbox.d.ts +8 -8
  37. package/lib/checkbox/index.d.ts +16 -14
  38. package/lib/checkbox/index.js +1 -1
  39. package/lib/code-diff/index.d.ts +1 -1
  40. package/lib/collapse/index.d.ts +1 -1
  41. package/lib/collapse-transition/collapse-transition.d.ts +1 -0
  42. package/lib/collapse-transition/index.js +1 -1
  43. package/lib/color-picker/color-picker.d.ts +1 -1
  44. package/lib/color-picker/index.d.ts +4 -4
  45. package/lib/color-picker/index.js +1 -1
  46. package/lib/components.d.ts +1 -1
  47. package/lib/config-provider/index.d.ts +1 -1
  48. package/lib/container/index.d.ts +1 -1
  49. package/lib/container/index.js +1 -1
  50. package/lib/date-picker/base/confirm.d.ts +1 -0
  51. package/lib/date-picker/base/date-table.d.ts +1 -0
  52. package/lib/date-picker/base/month-table.d.ts +1 -0
  53. package/lib/date-picker/base/picker-dropdown.d.ts +1 -0
  54. package/lib/date-picker/base/time-spinner.d.ts +2 -1
  55. package/lib/date-picker/base/year-table.d.ts +1 -0
  56. package/lib/date-picker/date-picker.d.ts +3 -2
  57. package/lib/date-picker/index.d.ts +10 -7
  58. package/lib/date-picker/index.js +1 -1
  59. package/lib/date-picker/panel/date-range.d.ts +1 -0
  60. package/lib/date-picker/panel/date.d.ts +1 -0
  61. package/lib/date-picker/panel/time-range.d.ts +3 -2
  62. package/lib/date-picker/panel/time.d.ts +3 -2
  63. package/lib/date-picker/time-picker.d.ts +3 -2
  64. package/lib/dialog/dialog.d.ts +4 -3
  65. package/lib/dialog/index.d.ts +11 -8
  66. package/lib/dialog/index.js +1 -1
  67. package/lib/dialog/props.d.ts +1 -1
  68. package/lib/directives/index.js +1 -1
  69. package/lib/directives/tooltips.d.ts +3 -2
  70. package/lib/divider/divider.less +3 -4
  71. package/lib/divider/index.d.ts +1 -1
  72. package/lib/divider/index.js +1 -1
  73. package/lib/dropdown/dropdown.d.ts +1 -1
  74. package/lib/dropdown/index.d.ts +6 -6
  75. package/lib/exception/index.d.ts +1 -1
  76. package/lib/fixed-navbar/index.d.ts +1 -1
  77. package/lib/fixed-navbar/index.js +1 -1
  78. package/lib/form/index.d.ts +1 -1
  79. package/lib/icon/assistant.d.ts +4 -0
  80. package/lib/icon/assistant.js +1 -0
  81. package/lib/icon/index.d.ts +1 -0
  82. package/lib/icon/index.js +1 -1
  83. package/lib/image/image-viewer.less +5 -3
  84. package/lib/image/image-viewer.variable.css +122 -0
  85. package/lib/image/image.css +142 -0
  86. package/lib/image/image.d.ts +0 -1
  87. package/lib/image/image.less +4 -1
  88. package/lib/image/image.variable.css +264 -0
  89. package/lib/image/index.d.ts +1 -1
  90. package/lib/image/index.js +1 -1
  91. package/lib/info-box/index.js +1 -1
  92. package/lib/input/index.d.ts +93 -57
  93. package/lib/input/index.js +1 -1
  94. package/lib/input/input.css +12 -0
  95. package/lib/input/input.d.ts +48 -15
  96. package/lib/input/input.less +26 -5
  97. package/lib/input/input.variable.css +12 -0
  98. package/lib/link/index.d.ts +7 -4
  99. package/lib/link/index.js +1 -1
  100. package/lib/link/link.d.ts +2 -1
  101. package/lib/loading/index.d.ts +1 -1
  102. package/lib/loading/index.js +1 -1
  103. package/lib/menu/index.d.ts +1 -1
  104. package/lib/message/index.js +1 -1
  105. package/lib/message/message.css +18 -8
  106. package/lib/message/message.less +68 -56
  107. package/lib/message/message.variable.css +18 -8
  108. package/lib/message/messageConstructor.d.ts +33 -8
  109. package/lib/modal/index.d.ts +9 -9
  110. package/lib/modal/index.js +1 -1
  111. package/lib/modal/modal.d.ts +3 -3
  112. package/lib/modal/props.mixin.d.ts +1 -1
  113. package/lib/navigation/index.d.ts +4 -1
  114. package/lib/navigation/index.js +1 -1
  115. package/lib/navigation/navigation.d.ts +1 -0
  116. package/lib/notify/index.js +1 -1
  117. package/lib/notify/notifyConstructor.d.ts +1 -1
  118. package/lib/overflow-title/index.d.ts +1 -1
  119. package/lib/pagination/index.d.ts +8 -8
  120. package/lib/pagination/index.js +1 -1
  121. package/lib/pagination/pagination.d.ts +4 -4
  122. package/lib/plugin-popover/index.js +1 -1
  123. package/lib/pop-confirm/index.d.ts +1 -1
  124. package/lib/pop-confirm/index.js +1 -1
  125. package/lib/pop-confirm/pop-confirm.less +9 -8
  126. package/lib/popover/const.d.ts +22 -9
  127. package/lib/popover/content.d.ts +25 -0
  128. package/lib/popover/index.d.ts +131 -61
  129. package/lib/popover/index.js +1 -1
  130. package/lib/popover/popover.d.ts +52 -24
  131. package/lib/popover/props.d.ts +23 -5
  132. package/lib/popover/use-floating.d.ts +2 -2
  133. package/lib/popover/use-popover-init.d.ts +1 -1
  134. package/lib/popover2/index.d.ts +1 -1
  135. package/lib/process/index.d.ts +1 -1
  136. package/lib/progress/index.d.ts +8 -8
  137. package/lib/progress/progress.d.ts +4 -4
  138. package/lib/radio/index.d.ts +4 -4
  139. package/lib/radio/radio-button.d.ts +3 -3
  140. package/lib/radio/radio-group.d.ts +1 -1
  141. package/lib/radio/radio.less +1 -1
  142. package/lib/rate/index.d.ts +12 -8
  143. package/lib/rate/index.js +1 -1
  144. package/lib/rate/rate.d.ts +4 -3
  145. package/lib/rate/rate.less +5 -3
  146. package/lib/rate/rate.variable.css +122 -0
  147. package/lib/rate/star.less +6 -4
  148. package/lib/rate/star.variable.css +122 -0
  149. package/lib/resize-layout/index.d.ts +1 -1
  150. package/lib/resize-layout/index.js +1 -1
  151. package/lib/resize-layout/resize-layout.css +12 -0
  152. package/lib/resize-layout/resize-layout.less +12 -0
  153. package/lib/resize-layout/resize-layout.variable.css +12 -0
  154. package/lib/search-select/index.d.ts +4 -1
  155. package/lib/search-select/index.js +1 -1
  156. package/lib/search-select/search-select.d.ts +1 -0
  157. package/lib/search-select/utils.d.ts +1 -0
  158. package/lib/select/index.d.ts +126 -61
  159. package/lib/select/index.js +1 -1
  160. package/lib/select/option.d.ts +1 -0
  161. package/lib/select/optionGroup.d.ts +1 -0
  162. package/lib/select/select.d.ts +57 -31
  163. package/lib/select/selectTagInput.d.ts +4 -0
  164. package/lib/shared/index.js +1 -1
  165. package/lib/shared/mask-manager.d.ts +3 -4
  166. package/lib/shared/pop-manager.d.ts +6 -2
  167. package/lib/shared/vue-types.d.ts +2 -2
  168. package/lib/sideslider/index.d.ts +8 -8
  169. package/lib/sideslider/index.js +1 -1
  170. package/lib/sideslider/sideslider.d.ts +3 -3
  171. package/lib/slider/index.d.ts +1 -1
  172. package/lib/slider/index.js +1 -1
  173. package/lib/slider/slider.less +6 -6
  174. package/lib/steps/index.d.ts +8 -8
  175. package/lib/steps/index.js +1 -1
  176. package/lib/steps/steps.d.ts +4 -4
  177. package/lib/styles/index.d.ts +2 -0
  178. package/lib/styles/mixins/popper.less +6 -5
  179. package/lib/styles/reset.less +4 -2
  180. package/lib/styles/reset.variable.css +122 -0
  181. package/lib/swiper/index.d.ts +1 -1
  182. package/lib/switcher/index.d.ts +5 -5
  183. package/lib/switcher/index.js +1 -1
  184. package/lib/switcher/switcher.d.ts +2 -2
  185. package/lib/tab/index.d.ts +5 -2
  186. package/lib/tab/index.js +1 -1
  187. package/lib/tab/tab-nav.d.ts +1 -0
  188. package/lib/tab/tab-panel.d.ts +1 -1
  189. package/lib/tab/tab.d.ts +1 -0
  190. package/lib/table/components/table-cell.d.ts +43 -11
  191. package/lib/table/components/table-column.d.ts +184 -208
  192. package/lib/table/const.d.ts +16 -54
  193. package/lib/table/events.d.ts +180 -0
  194. package/lib/table/index.d.ts +740 -421
  195. package/lib/table/index.js +1 -1
  196. package/lib/table/plugins/head-filter.d.ts +6 -5
  197. package/lib/table/plugins/head-filter.less +5 -7
  198. package/lib/table/plugins/head-sort.d.ts +6 -5
  199. package/lib/table/plugins/settings.d.ts +13 -21
  200. package/lib/table/plugins/settings.less +3 -3
  201. package/lib/table/plugins/use-fixed-column.d.ts +3 -2
  202. package/lib/table/props.d.ts +205 -170
  203. package/lib/table/render.d.ts +6 -4
  204. package/lib/table/table.css +28 -4
  205. package/lib/table/table.d.ts +206 -91
  206. package/lib/table/table.less +39 -5
  207. package/lib/table/table.variable.css +28 -4
  208. package/lib/table/use-column.d.ts +63 -1
  209. package/lib/table/use-common.d.ts +15 -9
  210. package/lib/table/utils.d.ts +1 -0
  211. package/lib/table-column/index.d.ts +255 -503
  212. package/lib/table-column/index.js +1 -1
  213. package/lib/tag/index.d.ts +1 -1
  214. package/lib/tag-input/index.d.ts +49 -28
  215. package/lib/tag-input/index.js +1 -1
  216. package/lib/tag-input/tag-input.css +1 -1
  217. package/lib/tag-input/tag-input.d.ts +30 -16
  218. package/lib/tag-input/tag-input.less +4 -4
  219. package/lib/tag-input/tag-input.variable.css +1 -1
  220. package/lib/tag-input/tag-props.d.ts +14 -7
  221. package/lib/time-picker/index.d.ts +10 -7
  222. package/lib/time-picker/time-picker.less +39 -39
  223. package/lib/timeline/index.d.ts +1 -1
  224. package/lib/transfer/index.d.ts +1 -1
  225. package/lib/tree/index.d.ts +4 -4
  226. package/lib/tree/index.js +1 -1
  227. package/lib/tree/tree.d.ts +11 -1
  228. package/lib/tree/use-node-attribute.d.ts +1 -1
  229. package/lib/upload/index.d.ts +1 -1
  230. package/lib/virtual-render/index.d.ts +19 -1
  231. package/lib/virtual-render/index.js +1 -1
  232. package/lib/virtual-render/props.d.ts +8 -0
  233. package/lib/virtual-render/virtual-render.d.ts +11 -0
  234. package/lib/virtual-render/virtual-render.less +5 -6
  235. package/package.json +2 -2
@@ -0,0 +1,180 @@
1
+ import { SORT_OPTION } from './const';
2
+ import { Column, IColumnActive } from './props';
3
+ export declare const enum EVENTS {
4
+ /** 点击排序事件 */
5
+ ON_SORT_BY_CLICK = "onSortByClick",
6
+ ON_FILTER_CLICK = "onFilterClick",
7
+ ON_SETTING_CHANGE = "onSettingChange",
8
+ ON_ROW_EXPAND_CLICK = "onRowExpandClick",
9
+ ON_ROW_CHECK = "onRowCheck"
10
+ }
11
+ export declare const enum EMIT_EVENTS {
12
+ COLUMN_PICK = "columnPick",
13
+ COLUMN_SORT = "columnSort",
14
+ COLUMN_FILTER = "columnFilter",
15
+ COLUMN_FILTER_SAVE = "colFilterSave",
16
+ ROW_CLICK = "rowClick",
17
+ ROW_DBL_CLICK = "rowDblclick",
18
+ ROW_EXPAND_CLICK = "rowExpand",
19
+ ROW_MOUSE_ENTER = "rowMouseEnter",
20
+ ROW_MOUSE_LEAVE = "rowMouseLeave",
21
+ PAGE_LIMIT_CHANGE = "pageLimitChange",
22
+ PAGE_VALUE_CHANGE = "pageValueChange",
23
+ SETTING_CHANGE = "settingChange",
24
+ SCROLL_BOTTOM = "scrollBottom",
25
+ ROW_SELECT = "select",
26
+ ROW_SELECT_ALL = "selectAll",
27
+ ROW_SELECT_CHANGE = "selectionChange",
28
+ CELL_CLICK = "cellClick",
29
+ CELL_DBL_CLICK = "cellDblclick",
30
+ NATIVE_CLICK = "click",
31
+ NATIVE_DBL_CLICK = "dblclick"
32
+ }
33
+ export declare const EVENT_COL_PICK: (_cols: IColumnActive[]) => boolean;
34
+ export declare const EVENT_COL_FILTER: (_args: {
35
+ checked: string[];
36
+ column: Column;
37
+ index: number;
38
+ }) => boolean;
39
+ export declare const EVENT_COL_FILTER_SAVE: (_args: {
40
+ column: Column;
41
+ values: Record<string, any>[];
42
+ }) => boolean;
43
+ export declare const EVENT_COL_SORT: (_args: {
44
+ column: Column;
45
+ index: number;
46
+ type: SORT_OPTION;
47
+ }) => boolean;
48
+ export declare const EVENT_MOUSE_FN: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
49
+ export declare const EVENT_EXPAND_FN: (_args: {
50
+ row: Record<string, any>;
51
+ column: Column;
52
+ index: Number;
53
+ rows: Record<string, any>[];
54
+ e: MouseEvent;
55
+ }) => boolean;
56
+ export declare const EVENT_ROW_SELECT_FN: (_args: {
57
+ row: Record<string, any>;
58
+ index: Number;
59
+ checked: string;
60
+ data: Array<Record<string, any>>;
61
+ }) => boolean;
62
+ export declare const EVENT_ROW_SELECT_ALL_FN: (_args: {
63
+ checked: string;
64
+ data: Array<Record<string, any>>;
65
+ }) => boolean;
66
+ export declare const EVENT_ROW_SELECT_CHANGE_FN: (_args: {
67
+ row: Record<string, any>;
68
+ index: Number;
69
+ checked: string;
70
+ data: Array<Record<string, any>>;
71
+ isAll: boolean;
72
+ }) => boolean;
73
+ export declare const EVENT_PAGE_FN: (_arg: number) => boolean;
74
+ export declare const EVENT_SETTING_FN: (_args: {
75
+ checked: string[];
76
+ size: string;
77
+ height: number;
78
+ fields: Array<Record<string, any>>;
79
+ }) => boolean;
80
+ export declare const EVENT_CELL_FN: (_args: {
81
+ event: MouseEvent;
82
+ row: Record<string, any>;
83
+ column: Column;
84
+ cell: {
85
+ getValue: () => string;
86
+ };
87
+ rowIndex: number;
88
+ columnIndex: number;
89
+ }) => boolean;
90
+ export declare const EVENT_SCROLL_FN: (_args: {
91
+ translateX: number;
92
+ translateY: number;
93
+ scrollTop: number;
94
+ scrollLeft: number;
95
+ bottom: number;
96
+ }) => boolean;
97
+ export declare const EMIT_EVENT_TYPES: {
98
+ columnPick: (_cols: IColumnActive[]) => boolean;
99
+ columnFilter: (_args: {
100
+ checked: string[];
101
+ column: Column;
102
+ index: number;
103
+ }) => boolean;
104
+ columnSort: (_args: {
105
+ column: Column;
106
+ index: number;
107
+ type: SORT_OPTION;
108
+ }) => boolean;
109
+ colFilterSave: (_args: {
110
+ column: Column;
111
+ values: Record<string, any>[];
112
+ }) => boolean;
113
+ rowClick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
114
+ rowDblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
115
+ rowExpand: (_args: {
116
+ row: Record<string, any>;
117
+ column: Column;
118
+ index: Number;
119
+ rows: Record<string, any>[];
120
+ e: MouseEvent;
121
+ }) => boolean;
122
+ select: (_args: {
123
+ row: Record<string, any>;
124
+ index: Number;
125
+ checked: string;
126
+ data: Array<Record<string, any>>;
127
+ }) => boolean;
128
+ selectAll: (_args: {
129
+ checked: string;
130
+ data: Array<Record<string, any>>;
131
+ }) => boolean;
132
+ selectionChange: (_args: {
133
+ row: Record<string, any>;
134
+ index: Number;
135
+ checked: string;
136
+ data: Array<Record<string, any>>;
137
+ isAll: boolean;
138
+ }) => boolean;
139
+ pageLimitChange: (_arg: number) => boolean;
140
+ pageValueChange: (_arg: number) => boolean;
141
+ settingChange: (_args: {
142
+ checked: string[];
143
+ size: string;
144
+ height: number;
145
+ fields: Array<Record<string, any>>;
146
+ }) => boolean;
147
+ scrollBottom: (_args: {
148
+ translateX: number;
149
+ translateY: number;
150
+ scrollTop: number;
151
+ scrollLeft: number;
152
+ bottom: number;
153
+ }) => boolean;
154
+ cellClick: (_args: {
155
+ event: MouseEvent;
156
+ row: Record<string, any>;
157
+ column: Column;
158
+ cell: {
159
+ getValue: () => string;
160
+ };
161
+ rowIndex: number;
162
+ columnIndex: number;
163
+ }) => boolean;
164
+ cellDblclick: (_args: {
165
+ event: MouseEvent;
166
+ row: Record<string, any>;
167
+ column: Column;
168
+ cell: {
169
+ getValue: () => string;
170
+ };
171
+ rowIndex: number;
172
+ columnIndex: number;
173
+ }) => boolean;
174
+ rowMouseEnter: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
175
+ rowMouseLeave: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
176
+ };
177
+ export declare const CELL_EVENT_TYPES: {
178
+ click: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
179
+ dblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
180
+ };