fast-crud-ui3 1.5.16 → 1.5.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 (168) hide show
  1. package/lib/assets/fonts/iconfont.d.ts +0 -0
  2. package/lib/components/checkbox-group/index.d.ts +2 -0
  3. package/lib/components/checkbox-group/src/fast-checkbox-group.d.ts +72 -0
  4. package/lib/components/content-dialog/index.d.ts +2 -0
  5. package/lib/components/content-dialog/src/fast-cell-content.d.ts +83 -0
  6. package/lib/components/json-viewer/index.d.ts +2 -0
  7. package/lib/components/json-viewer/src/fast-json-viewer.d.ts +48 -0
  8. package/lib/components/mapping.d.ts +5 -0
  9. package/lib/components/object-picker/index.d.ts +2 -0
  10. package/lib/components/object-picker/src/fast-object-picker.d.ts +132 -0
  11. package/lib/components/select/index.d.ts +2 -0
  12. package/lib/components/select/src/fast-select.d.ts +83 -0
  13. package/lib/components/table/index.d.ts +2 -0
  14. package/lib/components/table/src/RowConfirm.d.ts +39 -0
  15. package/lib/components/table/src/dynamic-filter-form.d.ts +118 -0
  16. package/lib/components/table/src/dynamic-filter-list.d.ts +57 -0
  17. package/lib/components/table/src/easy-filter.d.ts +118 -0
  18. package/lib/components/table/src/export-confirm.d.ts +12 -0
  19. package/lib/components/table/src/quick-filter-form.d.ts +42 -0
  20. package/lib/components/table/src/row-form.d.ts +33 -0
  21. package/lib/components/table/src/stored-filter-manager.d.ts +55 -0
  22. package/lib/components/table/src/stored-filter.d.ts +37 -0
  23. package/lib/components/table/src/table-head-cell.d.ts +9 -0
  24. package/lib/components/table/src/table.d.ts +507 -0
  25. package/lib/components/table/src/util.d.ts +77 -0
  26. package/lib/components/table-column/config.d.ts +5 -0
  27. package/lib/components/table-column/index.d.ts +2 -0
  28. package/lib/components/table-column/src/table-column.d.ts +256 -0
  29. package/lib/components/table-column-date-picker/config.d.ts +5 -0
  30. package/lib/components/table-column-date-picker/index.d.ts +2 -0
  31. package/lib/components/table-column-date-picker/src/table-column-date-picker.d.ts +173 -0
  32. package/lib/components/table-column-file/config.d.ts +5 -0
  33. package/lib/components/table-column-file/index.d.ts +2 -0
  34. package/lib/components/table-column-file/src/table-column-file.d.ts +285 -0
  35. package/lib/components/table-column-img/config.d.ts +5 -0
  36. package/lib/components/table-column-img/index.d.ts +2 -0
  37. package/lib/components/table-column-img/src/table-column-img.d.ts +285 -0
  38. package/lib/components/table-column-input/config.d.ts +5 -0
  39. package/lib/components/table-column-input/index.d.ts +2 -0
  40. package/lib/components/table-column-input/src/table-column-input.d.ts +173 -0
  41. package/lib/components/table-column-number/config.d.ts +5 -0
  42. package/lib/components/table-column-number/index.d.ts +2 -0
  43. package/lib/components/table-column-number/src/table-column-number.d.ts +173 -0
  44. package/lib/components/table-column-object/config.d.ts +5 -0
  45. package/lib/components/table-column-object/index.d.ts +2 -0
  46. package/lib/components/table-column-object/src/table-column-object.d.ts +315 -0
  47. package/lib/components/table-column-select/config.d.ts +5 -0
  48. package/lib/components/table-column-select/index.d.ts +2 -0
  49. package/lib/components/table-column-select/src/table-column-select.d.ts +276 -0
  50. package/lib/components/table-column-switch/config.d.ts +5 -0
  51. package/lib/components/table-column-switch/index.d.ts +2 -0
  52. package/lib/components/table-column-switch/src/table-column-switch.d.ts +175 -0
  53. package/lib/components/table-column-textarea/config.d.ts +5 -0
  54. package/lib/components/table-column-textarea/index.d.ts +2 -0
  55. package/lib/components/table-column-textarea/src/table-column-textarea.d.ts +173 -0
  56. package/lib/components/table-column-time-picker/config.d.ts +5 -0
  57. package/lib/components/table-column-time-picker/index.d.ts +2 -0
  58. package/lib/components/table-column-time-picker/src/table-column-time-picker.d.ts +173 -0
  59. package/lib/components/upload/index.d.ts +2 -0
  60. package/lib/components/upload/src/fast-upload.d.ts +120 -0
  61. package/lib/fast-crud-ui3.cjs.js +44 -17
  62. package/lib/fast-crud-ui3.es.js +9978 -5939
  63. package/lib/fast-crud-ui3.umd.js +44 -17
  64. package/lib/global.d.ts +42 -0
  65. package/lib/index.d.ts +56 -0
  66. package/lib/mixins/table-column.d.ts +104 -0
  67. package/lib/mixins/upload.d.ts +15 -0
  68. package/lib/model/cond.d.ts +48 -0
  69. package/lib/model/editComponentConfig.d.ts +25 -0
  70. package/lib/model/fastTableOption.d.ts +510 -0
  71. package/lib/model/filterComponentConfig.d.ts +55 -0
  72. package/lib/model/opt.d.ts +20 -0
  73. package/lib/model/order.d.ts +28 -0
  74. package/lib/model/pageQuery.d.ts +43 -0
  75. package/lib/model/query.d.ts +101 -0
  76. package/lib/model/rel.d.ts +5 -0
  77. package/lib/style.css +1 -1
  78. package/lib/util/cache.d.ts +17 -0
  79. package/lib/util/dialog.d.ts +49 -0
  80. package/lib/util/escape.d.ts +7 -0
  81. package/lib/util/http.d.ts +8 -0
  82. package/lib/util/pick.d.ts +9 -0
  83. package/lib/util/util.d.ts +311 -0
  84. package/package.json +19 -5
  85. package/packages/assets/fonts/iconfont.css +163 -0
  86. package/packages/assets/fonts/iconfont.js +1 -0
  87. package/packages/assets/fonts/iconfont.ttf +0 -0
  88. package/packages/assets/fonts/iconfont.woff +0 -0
  89. package/packages/assets/fonts/iconfont.woff2 +0 -0
  90. package/packages/components/checkbox-group/index.js +7 -0
  91. package/packages/components/checkbox-group/src/fast-checkbox-group.vue +83 -0
  92. package/packages/components/content-dialog/index.js +7 -0
  93. package/packages/components/content-dialog/src/fast-cell-content.vue +115 -0
  94. package/packages/components/json-viewer/index.js +7 -0
  95. package/packages/components/json-viewer/src/fast-json-viewer.vue +54 -0
  96. package/packages/components/mapping.js +95 -0
  97. package/packages/components/object-picker/index.js +7 -0
  98. package/packages/components/object-picker/src/fast-object-picker.vue +170 -0
  99. package/packages/components/select/index.js +7 -0
  100. package/packages/components/select/src/fast-select.vue +89 -0
  101. package/packages/components/table/index.js +7 -0
  102. package/packages/components/table/src/RowConfirm.vue +87 -0
  103. package/packages/components/table/src/dynamic-filter-form.vue +253 -0
  104. package/packages/components/table/src/dynamic-filter-list.vue +172 -0
  105. package/packages/components/table/src/easy-filter.vue +129 -0
  106. package/packages/components/table/src/export-confirm.vue +55 -0
  107. package/packages/components/table/src/quick-filter-form.vue +140 -0
  108. package/packages/components/table/src/row-form.vue +137 -0
  109. package/packages/components/table/src/stored-filter-manager.vue +240 -0
  110. package/packages/components/table/src/stored-filter.vue +180 -0
  111. package/packages/components/table/src/table-head-cell.vue +41 -0
  112. package/packages/components/table/src/table.vue +1309 -0
  113. package/packages/components/table/src/util.js +496 -0
  114. package/packages/components/table-column/config.js +64 -0
  115. package/packages/components/table-column/index.js +7 -0
  116. package/packages/components/table-column/src/table-column.vue +44 -0
  117. package/packages/components/table-column-date-picker/config.js +139 -0
  118. package/packages/components/table-column-date-picker/index.js +7 -0
  119. package/packages/components/table-column-date-picker/src/table-column-date-picker.vue +54 -0
  120. package/packages/components/table-column-file/config.js +83 -0
  121. package/packages/components/table-column-file/index.js +7 -0
  122. package/packages/components/table-column-file/src/table-column-file.vue +79 -0
  123. package/packages/components/table-column-img/config.js +83 -0
  124. package/packages/components/table-column-img/index.js +7 -0
  125. package/packages/components/table-column-img/src/table-column-img.vue +82 -0
  126. package/packages/components/table-column-input/config.js +77 -0
  127. package/packages/components/table-column-input/index.js +7 -0
  128. package/packages/components/table-column-input/src/table-column-input.vue +60 -0
  129. package/packages/components/table-column-number/config.js +89 -0
  130. package/packages/components/table-column-number/index.js +7 -0
  131. package/packages/components/table-column-number/src/table-column-number.vue +54 -0
  132. package/packages/components/table-column-object/config.js +66 -0
  133. package/packages/components/table-column-object/index.js +7 -0
  134. package/packages/components/table-column-object/src/table-column-object.vue +75 -0
  135. package/packages/components/table-column-select/config.js +66 -0
  136. package/packages/components/table-column-select/index.js +7 -0
  137. package/packages/components/table-column-select/src/table-column-select.vue +101 -0
  138. package/packages/components/table-column-switch/config.js +55 -0
  139. package/packages/components/table-column-switch/index.js +7 -0
  140. package/packages/components/table-column-switch/src/table-column-switch.vue +82 -0
  141. package/packages/components/table-column-textarea/config.js +77 -0
  142. package/packages/components/table-column-textarea/index.js +7 -0
  143. package/packages/components/table-column-textarea/src/table-column-textarea.vue +56 -0
  144. package/packages/components/table-column-time-picker/config.js +62 -0
  145. package/packages/components/table-column-time-picker/index.js +7 -0
  146. package/packages/components/table-column-time-picker/src/table-column-time-picker.vue +53 -0
  147. package/packages/components/upload/index.js +7 -0
  148. package/packages/components/upload/src/fast-upload.vue +272 -0
  149. package/packages/global.d.ts +42 -0
  150. package/packages/index.js +145 -0
  151. package/packages/mixins/table-column.js +133 -0
  152. package/packages/mixins/upload.js +14 -0
  153. package/packages/model/cond.js +74 -0
  154. package/packages/model/editComponentConfig.js +72 -0
  155. package/packages/model/fastTableOption.js +761 -0
  156. package/packages/model/filterComponentConfig.js +191 -0
  157. package/packages/model/opt.js +21 -0
  158. package/packages/model/order.js +37 -0
  159. package/packages/model/pageQuery.js +52 -0
  160. package/packages/model/query.js +161 -0
  161. package/packages/model/rel.js +5 -0
  162. package/packages/style.scss +5 -0
  163. package/packages/util/cache.js +92 -0
  164. package/packages/util/dialog.js +133 -0
  165. package/packages/util/escape.js +34 -0
  166. package/packages/util/http.js +18 -0
  167. package/packages/util/pick.js +92 -0
  168. package/packages/util/util.js +892 -0
@@ -0,0 +1,507 @@
1
+ import { default as FastTableOption } from '../../../model/fastTableOption.js';
2
+ import { default as PageQuery } from '../../../model/pageQuery.js';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ option: {
5
+ type: typeof FastTableOption;
6
+ required: true;
7
+ };
8
+ data: {
9
+ type: ArrayConstructor;
10
+ default: () => any[];
11
+ validator: (value: unknown) => any;
12
+ };
13
+ }>, {}, {
14
+ heightObserver: ResizeObserver;
15
+ tableKey: number;
16
+ loading: boolean;
17
+ choseRow: any;
18
+ checkedRows: any[];
19
+ pageQuery: PageQuery;
20
+ columnConfig: {};
21
+ quickFilters: any[];
22
+ easyFilters: any[];
23
+ dynamicFilters: any[];
24
+ storedLabels: any[];
25
+ list: unknown[];
26
+ total: number;
27
+ tableFlexHeight: any;
28
+ }, {
29
+ RefreshLeft(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ Search(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ showTitle(): any;
32
+ queryable(): any;
33
+ insertable(): any;
34
+ updatable(): any;
35
+ deletable(): any;
36
+ exportable(): any;
37
+ enableDblClickEdit(): any;
38
+ enableMulti(): any;
39
+ enableIndex(): any;
40
+ enableColumnFilter(): any;
41
+ enableFilterCache(): any;
42
+ lazyLoad(): any;
43
+ status(): "normal" | "insert" | "update";
44
+ quickFilterWrapperStyle(): {
45
+ display: string;
46
+ };
47
+ indexWith(): number;
48
+ rowStyle(): {
49
+ height: string;
50
+ };
51
+ heightTable(): any;
52
+ scopeParam(): {
53
+ query: {
54
+ current: number;
55
+ size: number;
56
+ setSize: (size: any) => PageQuery;
57
+ toJson: () => {
58
+ current: number;
59
+ size: number;
60
+ conds: any;
61
+ extra: {
62
+ [p: string]: null | any;
63
+ };
64
+ distinct: any;
65
+ orders: any;
66
+ cols: any;
67
+ };
68
+ cols: [];
69
+ conds: {
70
+ col: string;
71
+ opt: import('../../../model/cond').OptValue;
72
+ val: object;
73
+ setOpt: (opt: string) => Cond;
74
+ setVal: (val: object) => Cond;
75
+ }[];
76
+ distinct: boolean;
77
+ orders: {
78
+ col: string;
79
+ asc: boolean;
80
+ setAsc: (asc: any) => Order;
81
+ }[];
82
+ extra: {};
83
+ setCols: (cols: string[]) => Query;
84
+ addCond: (cond: import('../../..').Cond, repeatable?: boolean) => Query;
85
+ removeCond: (col: string) => Query;
86
+ setConds: (conds: any) => Query;
87
+ getConds: (col: string) => import('../../..').Cond[];
88
+ setDistinct: () => Query;
89
+ addOrder: (col: string, asc: boolean) => Query;
90
+ removeOrder: (col: string) => Query;
91
+ getOrder: (col: string) => import('../../..').Order;
92
+ };
93
+ size: string;
94
+ choseRow: any;
95
+ checkedRows: any[];
96
+ editRows: unknown[];
97
+ };
98
+ showMoreBtn(): any;
99
+ moreButtons(): [];
100
+ editRows(): unknown[];
101
+ }, {
102
+ /**
103
+ * 添加到编辑行: 编辑行改为computed自动计算, 无需添加, 保留此方法便于触发针对新增的编辑行的校验
104
+ * @param fatRows
105
+ */
106
+ addToEditRows(fatRows: any): void;
107
+ /**
108
+ * 重新渲染table,提供给外部是用
109
+ */
110
+ reRender(): void;
111
+ /**
112
+ * 解析FastTable下的vnodes, 得到列配置和列中组件配置。核心方法(important!)
113
+ */
114
+ buildComponentConfig(): void;
115
+ /**
116
+ * 暂只支持单列排序, 原因: 1.通过option指定的默认排序不好回显在表头; 2.多字段排序会导致操作比较繁琐
117
+ * @param col
118
+ * @param asc
119
+ */
120
+ buildOrder(col: any, asc: any): void;
121
+ /**
122
+ * 分页加载请求
123
+ * @param page 第几页, 可不传(默认为当前页码)
124
+ */
125
+ pageLoad(page: any): void;
126
+ /**
127
+ * 重置筛选条件值
128
+ */
129
+ resetFilter(): void;
130
+ /**
131
+ * insert前校验
132
+ */
133
+ toInsert(): void;
134
+ /**
135
+ * 弹窗表单新增
136
+ */
137
+ addForm(row?: {}): void;
138
+ /**
139
+ * 增加一个新增编辑状态的行
140
+ */
141
+ addRow(row?: {}): void;
142
+ /**
143
+ * 增加多个新增状态的行
144
+ * @param rows
145
+ */
146
+ addRows(rows?: any[]): void;
147
+ /**
148
+ * 删除行(多选模式下,删除checkedRows; 非多选模式下, 删除choseRow)
149
+ */
150
+ deleteRow(): void;
151
+ /**
152
+ * 打开动筛面板: 构造动筛组件配置, 动态创建面板并弹出。由于动筛是动态的,不能在mounted阶段构造好。
153
+ * @param column
154
+ */
155
+ openDynamicFilterForm(column: any): void;
156
+ handleCurrentChange(row: any): void;
157
+ /**
158
+ * 选中指定行
159
+ * @param index 不传默认是0
160
+ */
161
+ setChoseRow(index?: number): void;
162
+ getChoseRow(): any;
163
+ getCheckedRows(): any[];
164
+ handleSelect(rows: any, row: any): void;
165
+ handleSelectionChange(newRows: any): void;
166
+ handleSelectAll(rows: any): void;
167
+ handleRowClick(row: any, column: any, event: any): void;
168
+ handleRowDblclick(row: any, column: any, event: any): void;
169
+ /**
170
+ * 表单更新一行
171
+ * @param fatRow
172
+ */
173
+ updateForm(fatRow: any): void;
174
+ updateRow(fatRow: any): void;
175
+ /**
176
+ * 激活批量编辑
177
+ */
178
+ activeBatchEdit(): void;
179
+ /**
180
+ * 取消编辑状态: 包括新增、更新状态。会将编辑状态的行状态重置为'normal', 并清空编辑行数组editRows, 同时将表格状态重置为'normal'
181
+ */
182
+ cancelEditStatus(): void;
183
+ exitEditStatus(): void;
184
+ /**
185
+ * 同步行的选中状态
186
+ */
187
+ syncRowSelection(): void;
188
+ /**
189
+ * 查看勾选的数据
190
+ */
191
+ viewCheckedRows(): void;
192
+ /**
193
+ * 清空勾选
194
+ */
195
+ clearCheckedRows(): void;
196
+ /**
197
+ * 移除新建的行
198
+ */
199
+ removeNewRows(): void;
200
+ /**
201
+ * 保存编辑的行: 包括新增或更新状态的行。内部会将保存成功的记录的行状态置为normal
202
+ * @return 返回Promise。不存在需要保存的行 或 保存成功则返回resolve, 否则返回reject。
203
+ */
204
+ saveEditRows(): Promise<void>;
205
+ /**
206
+ * 批量更新记录
207
+ */
208
+ activeBatchUpdate(): void;
209
+ /**
210
+ * 导出数据
211
+ */
212
+ exportData(): void;
213
+ /**
214
+ * 自定义表格
215
+ */
216
+ customTable(): void;
217
+ /**
218
+ * 计算表格自适高度: tableFlexHeight
219
+ */
220
+ calTableHeight(): void;
221
+ getBoolVal(boolValOrFun: any, defaultVal?: boolean): any;
222
+ executeInContext(fn: any): any;
223
+ /**
224
+ * 从缓存中加载搜索数据, 更新quickFilters、easyFilters、dynamicFilters、storedFilters里,以便实现缓存生效
225
+ */
226
+ popStashFilter(): Promise<void>;
227
+ /**
228
+ * 将筛选条件缓存起来
229
+ */
230
+ stashFilter(): void;
231
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "currentChange" | "selectionChange" | "selectAll" | "rowClick" | "rowDblclick")[], "select" | "currentChange" | "selectionChange" | "selectAll" | "rowClick" | "rowDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
232
+ option: {
233
+ type: typeof FastTableOption;
234
+ required: true;
235
+ };
236
+ data: {
237
+ type: ArrayConstructor;
238
+ default: () => any[];
239
+ validator: (value: unknown) => any;
240
+ };
241
+ }>> & Readonly<{
242
+ onSelect?: (...args: any[]) => any;
243
+ onCurrentChange?: (...args: any[]) => any;
244
+ onSelectionChange?: (...args: any[]) => any;
245
+ onSelectAll?: (...args: any[]) => any;
246
+ onRowClick?: (...args: any[]) => any;
247
+ onRowDblclick?: (...args: any[]) => any;
248
+ }>, {
249
+ data: unknown[];
250
+ }, {}, {
251
+ ArrowDown: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
252
+ Download: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
253
+ Edit: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
254
+ QuickFilterForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
255
+ option: typeof FastTableOption;
256
+ filters: {
257
+ type: ArrayConstructor;
258
+ default: () => any[];
259
+ };
260
+ }>, {}, {
261
+ showNum: number;
262
+ showFormItems: any[];
263
+ }, {
264
+ visibleFilters(): any[];
265
+ formStyle(): {
266
+ display: string;
267
+ gridTemplateColumns: string;
268
+ gridTemplateAreas: string;
269
+ gap: string;
270
+ };
271
+ formItemBlockStyle(): {
272
+ gridColumn: string;
273
+ };
274
+ formModel(): {};
275
+ }, {
276
+ handleChange(filter: any): void;
277
+ handleClick(filter: any): void;
278
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
279
+ option: typeof FastTableOption;
280
+ filters: {
281
+ type: ArrayConstructor;
282
+ default: () => any[];
283
+ };
284
+ }>> & Readonly<{}>, {
285
+ filters: unknown[];
286
+ }, {}, {
287
+ ArrowDown: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
288
+ ArrowUp: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
289
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
290
+ EasyFilter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
291
+ filters: {
292
+ type: ArrayConstructor;
293
+ default: () => any[];
294
+ };
295
+ size: {
296
+ type: StringConstructor;
297
+ default: () => string;
298
+ };
299
+ }>, {}, {
300
+ activeFilterCol: any;
301
+ }, {
302
+ RefreshLeft(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
303
+ Search(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
304
+ activeFilter(): unknown;
305
+ }, {
306
+ initActiveFilterCol(): void;
307
+ changeField(): void;
308
+ handleClear(): void;
309
+ handleEnter(): void;
310
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "search"[], "search", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
311
+ filters: {
312
+ type: ArrayConstructor;
313
+ default: () => any[];
314
+ };
315
+ size: {
316
+ type: StringConstructor;
317
+ default: () => string;
318
+ };
319
+ }>> & Readonly<{
320
+ onSearch?: (...args: any[]) => any;
321
+ }>, {
322
+ size: string;
323
+ filters: unknown[];
324
+ }, {}, {
325
+ FastSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
326
+ modelValue: {
327
+ required: true;
328
+ };
329
+ options: {
330
+ type: (ArrayConstructor | typeof FastTableOption)[];
331
+ default: () => any[];
332
+ };
333
+ labelKey: {
334
+ type: StringConstructor;
335
+ default: () => string;
336
+ };
337
+ valKey: {
338
+ type: StringConstructor;
339
+ default: () => string;
340
+ };
341
+ multiple: {
342
+ type: BooleanConstructor;
343
+ default: () => boolean;
344
+ };
345
+ disableVal: {
346
+ type: ArrayConstructor;
347
+ default: () => any[];
348
+ };
349
+ size: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
353
+ }>, {}, {
354
+ nativeOptions: unknown[] | FastTableOption;
355
+ }, {
356
+ value: {
357
+ get(): unknown;
358
+ set(val: any): void;
359
+ };
360
+ }, {
361
+ buildSelectOptions(): void;
362
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "change" | "focus" | "update:modelValue" | "clear" | "visibleChange" | "removeTag")[], "blur" | "change" | "focus" | "update:modelValue" | "clear" | "visibleChange" | "removeTag", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
363
+ modelValue: {
364
+ required: true;
365
+ };
366
+ options: {
367
+ type: (ArrayConstructor | typeof FastTableOption)[];
368
+ default: () => any[];
369
+ };
370
+ labelKey: {
371
+ type: StringConstructor;
372
+ default: () => string;
373
+ };
374
+ valKey: {
375
+ type: StringConstructor;
376
+ default: () => string;
377
+ };
378
+ multiple: {
379
+ type: BooleanConstructor;
380
+ default: () => boolean;
381
+ };
382
+ disableVal: {
383
+ type: ArrayConstructor;
384
+ default: () => any[];
385
+ };
386
+ size: {
387
+ type: StringConstructor;
388
+ default: string;
389
+ };
390
+ }>> & Readonly<{
391
+ onChange?: (...args: any[]) => any;
392
+ "onUpdate:modelValue"?: (...args: any[]) => any;
393
+ onBlur?: (...args: any[]) => any;
394
+ onFocus?: (...args: any[]) => any;
395
+ onClear?: (...args: any[]) => any;
396
+ onVisibleChange?: (...args: any[]) => any;
397
+ onRemoveTag?: (...args: any[]) => any;
398
+ }>, {
399
+ size: string;
400
+ options: unknown[] | FastTableOption;
401
+ labelKey: string;
402
+ valKey: string;
403
+ disableVal: unknown[];
404
+ multiple: boolean;
405
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
406
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
407
+ StoredFilter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
408
+ groupLabels: ArrayConstructor;
409
+ size: StringConstructor;
410
+ tableOption: typeof FastTableOption;
411
+ columnConfig: ObjectConstructor;
412
+ }>, {}, {
413
+ storeGroups: any[];
414
+ }, {
415
+ showLabel(): string;
416
+ }, {
417
+ init(): void;
418
+ initCreateTimeFilter(): void;
419
+ initDevCustomFilter(): void;
420
+ initUserCustomFilter(): void;
421
+ handleClick(group: any, e: any): void;
422
+ toCustom(): void;
423
+ clear(): void;
424
+ getStoreFilters(): any[];
425
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
426
+ groupLabels: ArrayConstructor;
427
+ size: StringConstructor;
428
+ tableOption: typeof FastTableOption;
429
+ columnConfig: ObjectConstructor;
430
+ }>> & Readonly<{
431
+ onChange?: (...args: any[]) => any;
432
+ "onUpdate:modelValue"?: (...args: any[]) => any;
433
+ }>, {}, {}, {
434
+ ArrowDown: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
435
+ Star: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
436
+ Select: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
437
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
438
+ DynamicFilterList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
439
+ filters: {
440
+ type: ArrayConstructor;
441
+ default: () => any[];
442
+ };
443
+ size: {
444
+ type: StringConstructor;
445
+ default: () => string;
446
+ };
447
+ }>, {}, {
448
+ Opt: Readonly<{
449
+ EQ: "=";
450
+ NE: "!=";
451
+ GT: ">";
452
+ GE: ">=";
453
+ LT: "<";
454
+ LE: "<=";
455
+ IN: "in";
456
+ NIN: "nin";
457
+ LIKE: "like";
458
+ LLIKE: "llike";
459
+ RLIKE: "rlike";
460
+ NLIKE: "nlike";
461
+ NULL: "null";
462
+ NNULL: "nnull";
463
+ EMPTY: "empty";
464
+ NEMPTY: "nempty";
465
+ BTW: "between";
466
+ }>;
467
+ }, {
468
+ Search(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
469
+ Close(): import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
470
+ allDisabled(): boolean;
471
+ }, {
472
+ ellipsis: (val: any, len: any) => string | any;
473
+ delConfig(index: any): void;
474
+ confirm(): void;
475
+ toggleFilter(filter: any): void;
476
+ clearFilters(): void;
477
+ toggleAllFilters(): void;
478
+ onChange(filter: any): void;
479
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "search"[], "search", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
480
+ filters: {
481
+ type: ArrayConstructor;
482
+ default: () => any[];
483
+ };
484
+ size: {
485
+ type: StringConstructor;
486
+ default: () => string;
487
+ };
488
+ }>> & Readonly<{
489
+ onSearch?: (...args: any[]) => any;
490
+ }>, {
491
+ size: string;
492
+ filters: unknown[];
493
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
494
+ }, {}, string, () => {
495
+ openDynamicFilterForm: (column: any) => void;
496
+ tableStyle: {
497
+ flexHeight: boolean;
498
+ quickFilterGridGap: string;
499
+ formLabelWidth: string;
500
+ formLayout: null;
501
+ quickFilterSpan: number;
502
+ bodyRowHeight: string;
503
+ size: string;
504
+ };
505
+ context: import('../../../model/fastTableOption.js').ComponentInstance;
506
+ }, true, {}, any>;
507
+ export default _default;
@@ -0,0 +1,77 @@
1
+ /**
2
+ * 单个col值校验, 校验失败会添加class: valid-error并reject(errors), 成功则会移除可能存在的valid-error,并resolve
3
+ * @param editRow 当前单元格所在行数据
4
+ * @param config col完整的config配置
5
+ * @returns {Promise<unknown>} 若校验通过resolve, 否则reject(errors)
6
+ */
7
+ export function colValid(editRow: any, config: any): Promise<unknown>;
8
+ /**
9
+ * 多行(整行)校验, 校验失败会为每个col配置添加class: valid-error并reject(errors), 成功则会移除每个col可能存在的valid-error,并resolve。
10
+ * @param fatRows 完整的行记录
11
+ * @param tableOption tableOption
12
+ * @return 返回Promise, 校验通过走then; 校验失败走catch(errors)
13
+ */
14
+ export function rowValid(fatRows: any, tableOption: any): Promise<any[]>;
15
+ /**
16
+ * 将行数据转换为table-row格式
17
+ * @param row
18
+ * @param columnConfig
19
+ * @param status 表格状态
20
+ * @prop editType
21
+ * @returns {{editRow: *, row: *, status: string}}
22
+ */
23
+ export function toTableRow(row: any, columnConfig: any, status: string, editType: any): {
24
+ editRow: any;
25
+ row: any;
26
+ status: string;
27
+ };
28
+ export function isFatRow(row: any): any;
29
+ /**
30
+ * 构建组件配置
31
+ * @param tableColumnVNodes fast-table-column-* 组成的节点数组,蕴含fast-table-column-*组件节点上的信息(也可能是ElTableColumn)
32
+ * @param tableOption 表格配置
33
+ * @param callback 针对每个table-column解析的回调函数
34
+ */
35
+ export function iterBuildComponentConfig(tableColumnVNodes: any, tableOption: any, callback: any): void;
36
+ /**
37
+ * 判断单元格是否可编辑
38
+ * @param editRow 当前编辑行
39
+ * @param status 当前编辑状态(normal、insert、update)
40
+ * @param config 当前列的配置
41
+ * @param col 当前列属性
42
+ */
43
+ export function colEditable(fatRow: any, col: any): any;
44
+ /**
45
+ * 构建导出请求参数
46
+ * @param columnConfigs
47
+ * @returns {*}
48
+ */
49
+ export function buildParamForExport(columnConfigs: any): any;
50
+ /**
51
+ * 设置自定义存筛,保存到localStorage, 只存条件
52
+ */
53
+ export function setCustomFilterGroups(tableOption: any, filterGroups: any): void;
54
+ /**
55
+ * 从localStorage中获取自定义存筛
56
+ * @param tableOption tableOption
57
+ * @param columnConfig localStorage中只存条件, 需要借助columnConfig进行重建
58
+ */
59
+ export function getCustomFilterGroups(tableOption: any, columnConfig: any): any[];
60
+ /**
61
+ * 根据条件组创建筛选组
62
+ * @param tableOption tableOption
63
+ * @param columnConfig 列配置
64
+ * @param condGroups 条件组
65
+ * @param buildIn 是否为内建筛选组
66
+ * @return {*[]}
67
+ */
68
+ export function buildFilterGroups(tableOption: any, columnConfig: any, condGroups: any, buildIn: any): any[];
69
+ /**
70
+ * 从columnConfig中针对指定col构造一个Filter, 返回null表示
71
+ * @param col
72
+ * @param columnConfig
73
+ * @param tableOption
74
+ * @return FilterComponentConfig
75
+ */
76
+ export function buildStoredFilterComponent(col: any, columnConfig: any, tableOption: any): import('../../../model/filterComponentConfig').default;
77
+ export function getEditConfig(columnConfig: any, editType: any): {};
@@ -0,0 +1,5 @@
1
+ declare namespace _default {
2
+ function query(config: any, type: any): any;
3
+ function edit(config: any, type: any): any;
4
+ }
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as FastTableColumn } from './src/table-column';
2
+ export default FastTableColumn;