fast-crud-ui3 1.5.15-beta1 → 1.5.16-tsc-beta

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 +497 -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 +7 -7
  62. package/lib/fast-crud-ui3.es.js +1310 -1269
  63. package/lib/fast-crud-ui3.umd.js +7 -7
  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 +25 -0
  69. package/lib/model/editComponentConfig.d.ts +25 -0
  70. package/lib/model/fastTableOption.d.ts +355 -0
  71. package/lib/model/filterComponentConfig.d.ts +57 -0
  72. package/lib/model/opt.d.ts +20 -0
  73. package/lib/model/order.d.ts +7 -0
  74. package/lib/model/pageQuery.d.ts +23 -0
  75. package/lib/model/query.d.ts +33 -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 +14 -0
  83. package/lib/util/util.d.ts +252 -0
  84. package/package.json +18 -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 +65 -0
  154. package/packages/model/editComponentConfig.js +72 -0
  155. package/packages/model/fastTableOption.js +538 -0
  156. package/packages/model/filterComponentConfig.js +185 -0
  157. package/packages/model/opt.js +21 -0
  158. package/packages/model/order.js +16 -0
  159. package/packages/model/pageQuery.js +31 -0
  160. package/packages/model/query.js +93 -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 +833 -0
@@ -0,0 +1,497 @@
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
+ cols: any[];
61
+ conds: import('../../..').Cond[];
62
+ orders: import('../../..').Order[];
63
+ distinct: boolean;
64
+ extra: {
65
+ [k: string]: any;
66
+ };
67
+ };
68
+ cols: any[];
69
+ conds: any[];
70
+ distinct: boolean;
71
+ orders: any[];
72
+ extra: {};
73
+ setCols: (cols: any) => PageQuery;
74
+ addCond: (cond: any, repeatable?: boolean) => Query;
75
+ removeCond: (col: any) => PageQuery;
76
+ setConds: (conds: any) => PageQuery;
77
+ getCond: (col: any) => any;
78
+ setDistinct: () => PageQuery;
79
+ addOrder: (col: any, asc: any) => PageQuery;
80
+ removeOrder: (col: any) => PageQuery;
81
+ getOrder: (col: any) => any;
82
+ };
83
+ size: string;
84
+ choseRow: any;
85
+ checkedRows: any[];
86
+ editRows: unknown[];
87
+ };
88
+ showMoreBtn(): any;
89
+ moreButtons(): any[];
90
+ editRows(): unknown[];
91
+ }, {
92
+ /**
93
+ * 添加到编辑行: 编辑行改为computed自动计算, 无需添加, 保留此方法便于触发针对新增的编辑行的校验
94
+ * @param fatRows
95
+ */
96
+ addToEditRows(fatRows: any): void;
97
+ /**
98
+ * 重新渲染table,提供给外部是用
99
+ */
100
+ reRender(): void;
101
+ /**
102
+ * 解析FastTable下的vnodes, 得到列配置和列中组件配置。核心方法(important!)
103
+ */
104
+ buildComponentConfig(): void;
105
+ /**
106
+ * 暂只支持单列排序, 原因: 1.通过option指定的默认排序不好回显在表头; 2.多字段排序会导致操作比较繁琐
107
+ * @param col
108
+ * @param asc
109
+ */
110
+ buildOrder(col: any, asc: any): void;
111
+ /**
112
+ * 分页加载请求
113
+ * @param page 第几页, 可不传(默认为当前页码)
114
+ */
115
+ pageLoad(page: any): void;
116
+ /**
117
+ * 重置筛选条件值
118
+ */
119
+ resetFilter(): void;
120
+ /**
121
+ * insert前校验
122
+ */
123
+ toInsert(): void;
124
+ /**
125
+ * 弹窗表单新增
126
+ */
127
+ addForm(row?: {}): void;
128
+ /**
129
+ * 增加一个新增编辑状态的行
130
+ */
131
+ addRow(row?: {}): void;
132
+ /**
133
+ * 增加多个新增状态的行
134
+ * @param rows
135
+ */
136
+ addRows(rows?: any[]): void;
137
+ /**
138
+ * 删除行(多选模式下,删除checkedRows; 非多选模式下, 删除choseRow)
139
+ */
140
+ deleteRow(): void;
141
+ /**
142
+ * 打开动筛面板: 构造动筛组件配置, 动态创建面板并弹出。由于动筛是动态的,不能在mounted阶段构造好。
143
+ * @param column
144
+ */
145
+ openDynamicFilterForm(column: any): void;
146
+ handleCurrentChange(row: any): void;
147
+ /**
148
+ * 选中指定行
149
+ * @param index 不传默认是0
150
+ */
151
+ setChoseRow(index?: number): void;
152
+ getChoseRow(): any;
153
+ getCheckedRows(): any[];
154
+ handleSelect(rows: any, row: any): void;
155
+ handleSelectionChange(newRows: any): void;
156
+ handleSelectAll(rows: any): void;
157
+ handleRowClick(row: any, column: any, event: any): void;
158
+ handleRowDblclick(row: any, column: any, event: any): void;
159
+ /**
160
+ * 表单更新一行
161
+ * @param fatRow
162
+ */
163
+ updateForm(fatRow: any): void;
164
+ updateRow(fatRow: any): void;
165
+ /**
166
+ * 激活批量编辑
167
+ */
168
+ activeBatchEdit(): void;
169
+ /**
170
+ * 取消编辑状态: 包括新增、更新状态。会将编辑状态的行状态重置为'normal', 并清空编辑行数组editRows, 同时将表格状态重置为'normal'
171
+ */
172
+ cancelEditStatus(): void;
173
+ exitEditStatus(): void;
174
+ /**
175
+ * 同步行的选中状态
176
+ */
177
+ syncRowSelection(): void;
178
+ /**
179
+ * 查看勾选的数据
180
+ */
181
+ viewCheckedRows(): void;
182
+ /**
183
+ * 清空勾选
184
+ */
185
+ clearCheckedRows(): void;
186
+ /**
187
+ * 移除新建的行
188
+ */
189
+ removeNewRows(): void;
190
+ /**
191
+ * 保存编辑的行: 包括新增或更新状态的行。内部会将保存成功的记录的行状态置为normal
192
+ * @return 返回Promise。不存在需要保存的行 或 保存成功则返回resolve, 否则返回reject。
193
+ */
194
+ saveEditRows(): Promise<void>;
195
+ /**
196
+ * 批量更新记录
197
+ */
198
+ activeBatchUpdate(): void;
199
+ /**
200
+ * 导出数据
201
+ */
202
+ exportData(): void;
203
+ /**
204
+ * 自定义表格
205
+ */
206
+ customTable(): void;
207
+ /**
208
+ * 计算表格自适高度: tableFlexHeight
209
+ */
210
+ calTableHeight(): void;
211
+ getBoolVal(boolValOrFun: any, defaultVal?: boolean): any;
212
+ executeInContext(fn: any): any;
213
+ /**
214
+ * 从缓存中加载搜索数据, 更新quickFilters、easyFilters、dynamicFilters、storedFilters里,以便实现缓存生效
215
+ */
216
+ popStashFilter(): Promise<void>;
217
+ /**
218
+ * 将筛选条件缓存起来
219
+ */
220
+ stashFilter(): void;
221
+ }, 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<{
222
+ option: {
223
+ type: typeof FastTableOption;
224
+ required: true;
225
+ };
226
+ data: {
227
+ type: ArrayConstructor;
228
+ default: () => any[];
229
+ validator: (value: unknown) => any;
230
+ };
231
+ }>> & Readonly<{
232
+ onSelect?: (...args: any[]) => any;
233
+ onCurrentChange?: (...args: any[]) => any;
234
+ onSelectionChange?: (...args: any[]) => any;
235
+ onSelectAll?: (...args: any[]) => any;
236
+ onRowClick?: (...args: any[]) => any;
237
+ onRowDblclick?: (...args: any[]) => any;
238
+ }>, {
239
+ data: unknown[];
240
+ }, {}, {
241
+ 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>;
242
+ 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>;
243
+ 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>;
244
+ QuickFilterForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
245
+ option: typeof FastTableOption;
246
+ filters: {
247
+ type: ArrayConstructor;
248
+ default: () => any[];
249
+ };
250
+ }>, {}, {
251
+ showNum: number;
252
+ showFormItems: any[];
253
+ }, {
254
+ visibleFilters(): any[];
255
+ formStyle(): {
256
+ display: string;
257
+ gridTemplateColumns: string;
258
+ gridTemplateAreas: string;
259
+ gap: string;
260
+ };
261
+ formItemBlockStyle(): {
262
+ gridColumn: string;
263
+ };
264
+ formModel(): {};
265
+ }, {
266
+ handleChange(filter: any): void;
267
+ handleClick(filter: any): void;
268
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
269
+ option: typeof FastTableOption;
270
+ filters: {
271
+ type: ArrayConstructor;
272
+ default: () => any[];
273
+ };
274
+ }>> & Readonly<{}>, {
275
+ filters: unknown[];
276
+ }, {}, {
277
+ 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>;
278
+ 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>;
279
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
280
+ EasyFilter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
281
+ filters: {
282
+ type: ArrayConstructor;
283
+ default: () => any[];
284
+ };
285
+ size: {
286
+ type: StringConstructor;
287
+ default: () => string;
288
+ };
289
+ }>, {}, {
290
+ activeFilterCol: any;
291
+ }, {
292
+ 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>;
293
+ 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>;
294
+ activeFilter(): unknown;
295
+ }, {
296
+ initActiveFilterCol(): void;
297
+ changeField(): void;
298
+ handleClear(): void;
299
+ handleEnter(): void;
300
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "search"[], "search", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
301
+ filters: {
302
+ type: ArrayConstructor;
303
+ default: () => any[];
304
+ };
305
+ size: {
306
+ type: StringConstructor;
307
+ default: () => string;
308
+ };
309
+ }>> & Readonly<{
310
+ onSearch?: (...args: any[]) => any;
311
+ }>, {
312
+ size: string;
313
+ filters: unknown[];
314
+ }, {}, {
315
+ FastSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
316
+ modelValue: {
317
+ required: true;
318
+ };
319
+ options: {
320
+ type: (ArrayConstructor | typeof FastTableOption)[];
321
+ default: () => any[];
322
+ };
323
+ labelKey: {
324
+ type: StringConstructor;
325
+ default: () => string;
326
+ };
327
+ valKey: {
328
+ type: StringConstructor;
329
+ default: () => string;
330
+ };
331
+ multiple: {
332
+ type: BooleanConstructor;
333
+ default: () => boolean;
334
+ };
335
+ disableVal: {
336
+ type: ArrayConstructor;
337
+ default: () => any[];
338
+ };
339
+ size: {
340
+ type: StringConstructor;
341
+ default: string;
342
+ };
343
+ }>, {}, {
344
+ nativeOptions: unknown[] | FastTableOption;
345
+ }, {
346
+ value: {
347
+ get(): unknown;
348
+ set(val: any): void;
349
+ };
350
+ }, {
351
+ buildSelectOptions(): void;
352
+ }, 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<{
353
+ modelValue: {
354
+ required: true;
355
+ };
356
+ options: {
357
+ type: (ArrayConstructor | typeof FastTableOption)[];
358
+ default: () => any[];
359
+ };
360
+ labelKey: {
361
+ type: StringConstructor;
362
+ default: () => string;
363
+ };
364
+ valKey: {
365
+ type: StringConstructor;
366
+ default: () => string;
367
+ };
368
+ multiple: {
369
+ type: BooleanConstructor;
370
+ default: () => boolean;
371
+ };
372
+ disableVal: {
373
+ type: ArrayConstructor;
374
+ default: () => any[];
375
+ };
376
+ size: {
377
+ type: StringConstructor;
378
+ default: string;
379
+ };
380
+ }>> & Readonly<{
381
+ onChange?: (...args: any[]) => any;
382
+ "onUpdate:modelValue"?: (...args: any[]) => any;
383
+ onBlur?: (...args: any[]) => any;
384
+ onFocus?: (...args: any[]) => any;
385
+ onClear?: (...args: any[]) => any;
386
+ onVisibleChange?: (...args: any[]) => any;
387
+ onRemoveTag?: (...args: any[]) => any;
388
+ }>, {
389
+ size: string;
390
+ options: unknown[] | FastTableOption;
391
+ labelKey: string;
392
+ valKey: string;
393
+ disableVal: unknown[];
394
+ multiple: boolean;
395
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
396
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
397
+ StoredFilter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
398
+ groupLabels: ArrayConstructor;
399
+ size: StringConstructor;
400
+ tableOption: typeof FastTableOption;
401
+ columnConfig: ObjectConstructor;
402
+ }>, {}, {
403
+ storeGroups: any[];
404
+ }, {
405
+ showLabel(): string;
406
+ }, {
407
+ init(): void;
408
+ initCreateTimeFilter(): void;
409
+ initDevCustomFilter(): void;
410
+ initUserCustomFilter(): void;
411
+ handleClick(group: any, e: any): void;
412
+ toCustom(): void;
413
+ clear(): void;
414
+ getStoreFilters(): any[];
415
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
416
+ groupLabels: ArrayConstructor;
417
+ size: StringConstructor;
418
+ tableOption: typeof FastTableOption;
419
+ columnConfig: ObjectConstructor;
420
+ }>> & Readonly<{
421
+ onChange?: (...args: any[]) => any;
422
+ "onUpdate:modelValue"?: (...args: any[]) => any;
423
+ }>, {}, {}, {
424
+ 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>;
425
+ 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>;
426
+ 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>;
427
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
428
+ DynamicFilterList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
429
+ filters: {
430
+ type: ArrayConstructor;
431
+ default: () => any[];
432
+ };
433
+ size: {
434
+ type: StringConstructor;
435
+ default: () => string;
436
+ };
437
+ }>, {}, {
438
+ Opt: Readonly<{
439
+ EQ: "=";
440
+ NE: "!=";
441
+ GT: ">";
442
+ GE: ">=";
443
+ LT: "<";
444
+ LE: "<=";
445
+ IN: "in";
446
+ NIN: "nin";
447
+ LIKE: "like";
448
+ LLIKE: "llike";
449
+ RLIKE: "rlike";
450
+ NLIKE: "nlike";
451
+ NULL: "null";
452
+ NNULL: "nnull";
453
+ EMPTY: "empty";
454
+ NEMPTY: "nempty";
455
+ BTW: "between";
456
+ }>;
457
+ }, {
458
+ 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>;
459
+ 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>;
460
+ allDisabled(): boolean;
461
+ }, {
462
+ ellipsis: (val: any, len: any) => string | any;
463
+ delConfig(index: any): void;
464
+ confirm(): void;
465
+ toggleFilter(filter: any): void;
466
+ clearFilters(): void;
467
+ toggleAllFilters(): void;
468
+ onChange(filter: any): void;
469
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "search"[], "search", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
470
+ filters: {
471
+ type: ArrayConstructor;
472
+ default: () => any[];
473
+ };
474
+ size: {
475
+ type: StringConstructor;
476
+ default: () => string;
477
+ };
478
+ }>> & Readonly<{
479
+ onSearch?: (...args: any[]) => any;
480
+ }>, {
481
+ size: string;
482
+ filters: unknown[];
483
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
484
+ }, {}, string, () => {
485
+ openDynamicFilterForm: (column: any) => void;
486
+ tableStyle: {
487
+ flexHeight: boolean;
488
+ bodyRowHeight: string;
489
+ size: string;
490
+ formLabelWidth: string;
491
+ formLayout: any;
492
+ quickFilterSpan: number;
493
+ quickFilterGridGap: string;
494
+ };
495
+ context: typeof import("vue");
496
+ }, true, {}, any>;
497
+ 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;