@aplus-frontend/ui 6.28.1 → 6.28.3

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 (36) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +72 -64
  2. package/es/src/ag-grid/index.vue.mjs +254 -244
  3. package/es/src/ag-grid/renderer/select.d.ts +4 -1
  4. package/es/src/ag-grid/renderer/select.mjs +11 -7
  5. package/es/src/ap-field/tree-select/index.vue.d.ts +20 -0
  6. package/es/src/ap-field/tree-select/index.vue.mjs +15 -14
  7. package/es/src/ap-field/tree-select/read.vue2.mjs +1 -0
  8. package/es/src/ap-form/items/tree-select/index.vue.d.ts +22 -0
  9. package/es/src/ap-table/constants.d.ts +11 -0
  10. package/es/src/ap-table/utils.mjs +51 -42
  11. package/es/src/version.d.ts +1 -1
  12. package/es/src/version.mjs +1 -1
  13. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  14. package/lib/src/ag-grid/index.vue.js +1 -1
  15. package/lib/src/ag-grid/renderer/select.d.ts +4 -1
  16. package/lib/src/ag-grid/renderer/select.js +1 -1
  17. package/lib/src/ap-field/tree-select/index.vue.d.ts +20 -0
  18. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  19. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  20. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +22 -0
  21. package/lib/src/ap-table/constants.d.ts +11 -0
  22. package/lib/src/ap-table/utils.js +1 -1
  23. package/lib/src/version.d.ts +1 -1
  24. package/lib/src/version.js +1 -1
  25. package/package.json +3 -3
  26. package/theme/ag-grid/index.css +10 -6
  27. package/theme/ag-grid/index.less +9 -6
  28. package/theme/ap-form/ap-form-item.css +3 -0
  29. package/theme/ap-form/ap-form-item.less +3 -0
  30. package/theme/ap-form/index.css +3 -0
  31. package/theme/ap-form/search-form.css +3 -0
  32. package/theme/ap-grid/index.css +3 -0
  33. package/theme/ap-table/ap-table.css +3 -0
  34. package/theme/ap-table-modal/index.css +3 -0
  35. package/theme/editable-table/index.css +3 -0
  36. package/theme/index.css +10 -6
@@ -1,30 +1,30 @@
1
- import { defineComponent as We, useSlots as je, ref as b, toRef as B, unref as t, computed as l, nextTick as Le, watch as P, createElementBlock as z, openBlock as h, normalizeStyle as E, normalizeClass as u, createCommentVNode as Q, createElementVNode as v, createVNode as I, mergeProps as V, createSlots as Ge, withCtx as X, Fragment as He, renderList as Ue, createBlock as Y, resolveDynamicComponent as $e, renderSlot as Z, withDirectives as qe, vShow as Je } from "vue";
2
- import { AgGridVue as Qe } from "ag-grid-vue3";
3
- import { ModuleRegistry as Xe, AllCommunityModule as Ye } from "ag-grid-community";
4
- import { Spin as Ze, Pagination as _e } from "@aplus-frontend/antdv";
5
- import { isUndefined as C, isFunction as eo } from "lodash-unified";
1
+ import { defineComponent as qe, useSlots as Je, ref as F, toRef as k, unref as t, computed as l, nextTick as Qe, watch as z, createElementBlock as E, openBlock as C, normalizeStyle as V, normalizeClass as m, createCommentVNode as ee, createElementVNode as R, createVNode as A, mergeProps as N, createSlots as Xe, withCtx as oe, Fragment as Ye, renderList as Ze, createBlock as te, resolveDynamicComponent as _e, renderSlot as re, withDirectives as eo, vShow as oo } from "vue";
2
+ import { AgGridVue as to } from "ag-grid-vue3";
3
+ import { ModuleRegistry as ro, AllCommunityModule as no } from "ag-grid-community";
4
+ import { Spin as ao, Pagination as lo } from "@aplus-frontend/antdv";
5
+ import { isUndefined as b, isFunction as so } from "lodash-unified";
6
6
  import "../config-provider/index.mjs";
7
- import { ApForm as oo } from "../ap-form/index.mjs";
8
- import { recursionApColumns as to } from "../ap-table/utils.mjs";
9
- import { useTablePaging as ro } from "../ap-table/hooks/use-table-paging-ng.mjs";
10
- import ao from "./hooks/use-row-selection.mjs";
11
- import { useProvideSorter as no } from "./context.mjs";
12
- import { useProvideApTable as lo } from "../ap-table/context.mjs";
13
- import { sizeReverseMap as so, sizeMap as io } from "../ap-grid/constants.mjs";
14
- import { useToken as co } from "@aplus-frontend/antdv/es/theme/internal";
15
- import { useTheme as uo } from "./theme.mjs";
16
- import { useColumns as mo } from "./hooks/use-columns.mjs";
17
- import { useColumnsDef as po } from "./hooks/use-columns-def.mjs";
18
- import { isDef as fo } from "../utils/index.mjs";
19
- import { getValidVNodeList as So } from "../utils/slot.mjs";
20
- import { useSearchForm as go } from "./hooks/use-search-form.mjs";
7
+ import { ApForm as io } from "../ap-form/index.mjs";
8
+ import { recursionApColumns as co } from "../ap-table/utils.mjs";
9
+ import { useTablePaging as uo } from "../ap-table/hooks/use-table-paging-ng.mjs";
10
+ import mo from "./hooks/use-row-selection.mjs";
11
+ import { useProvideSorter as po } from "./context.mjs";
12
+ import { useProvideApTable as fo } from "../ap-table/context.mjs";
13
+ import { sizeReverseMap as go, sizeMap as So } from "../ap-grid/constants.mjs";
14
+ import { useToken as wo } from "@aplus-frontend/antdv/es/theme/internal";
15
+ import { useTheme as yo } from "./theme.mjs";
16
+ import { useColumns as ho } from "./hooks/use-columns.mjs";
17
+ import { useColumnsDef as vo } from "./hooks/use-columns-def.mjs";
18
+ import { isDef as Co } from "../utils/index.mjs";
19
+ import { getValidVNodeList as Ro } from "../utils/slot.mjs";
20
+ import { useSearchForm as bo } from "./hooks/use-search-form.mjs";
21
21
  import "./components/empty/index.vue.mjs";
22
- import wo from "./hooks/use-virtual-config.mjs";
23
- import { usePinnedRow as yo } from "./hooks/use-pinned-row.mjs";
24
- import ho from "./hooks/use-selection-col-def.mjs";
25
- import { useNamespace as vo } from "../config-provider/hooks/use-namespace.mjs";
26
- import Co from "./components/empty/index.vue2.mjs";
27
- const Jo = /* @__PURE__ */ We({
22
+ import Bo from "./hooks/use-virtual-config.mjs";
23
+ import { usePinnedRow as Fo } from "./hooks/use-pinned-row.mjs";
24
+ import ko from "./hooks/use-selection-col-def.mjs";
25
+ import { useNamespace as xo } from "../config-provider/hooks/use-namespace.mjs";
26
+ import Io from "./components/empty/index.vue2.mjs";
27
+ const ot = /* @__PURE__ */ qe({
28
28
  name: "AgGrid",
29
29
  __name: "index",
30
30
  props: {
@@ -93,69 +93,69 @@ const Jo = /* @__PURE__ */ We({
93
93
  onRowClicked: {},
94
94
  onScrollEnd: {}
95
95
  },
96
- setup(_, { expose: ee }) {
97
- Xe.registerModules([Ye]);
98
- const o = _, A = je();
99
- function oe(...e) {
100
- return e.reduce((r, a) => ({ ...r, ...a }), {});
96
+ setup(ne, { expose: ae }) {
97
+ ro.registerModules([no]);
98
+ const o = ne, M = Je();
99
+ function le(...e) {
100
+ return e.reduce((r, n) => ({ ...r, ...n }), {});
101
101
  }
102
- const { e: R, b: i, be: te } = vo("ag-grid"), y = b(o.size), re = uo(y, B(o, "rowHeight")), ae = wo(B(o, "virtual")), { rowPinnedGridConfig: ne, getRowPinnedCellClass: le } = yo(
103
- B(o, "summary")
104
- ), d = b(), [, se] = co();
105
- let m = !!o.dataSource;
106
- const N = go(o), { shownColumns: p, columns: M, columnKeys: ie } = mo(o), { defaultColDef: de, columnDefs: ce } = po(
107
- M,
102
+ const { e: B, b: c, be: se } = xo("ag-grid"), y = F(o.size), ie = yo(y, k(o, "rowHeight")), ce = Bo(k(o, "virtual")), { rowPinnedGridConfig: de, getRowPinnedCellClass: ue } = Fo(
103
+ k(o, "summary")
104
+ ), d = F(), [, me] = wo();
105
+ let p = !!o.dataSource;
106
+ const O = bo(o), { shownColumns: f, columns: W, columnKeys: pe } = ho(o), { defaultColDef: fe, columnDefs: ge } = vo(
107
+ W,
108
108
  o,
109
- le
110
- ), F = b({});
111
- no({
112
- sorter: F,
109
+ ue
110
+ ), x = F({});
111
+ po({
112
+ sorter: x,
113
113
  setSorter(e) {
114
- F.value = e;
114
+ x.value = e;
115
115
  }
116
116
  });
117
- const ue = {
117
+ const Se = {
118
118
  asc: "ascend",
119
119
  desc: "descend"
120
120
  };
121
- function me() {
122
- const e = d.value.getColumns()?.filter((s) => s.getSort() !== void 0), r = t(F) || {};
123
- let a = e?.[0];
124
- const c = Object.keys(r);
125
- if (c.length && c.every((s) => r[s] === null)) {
121
+ function we() {
122
+ const e = d.value.getColumns()?.filter((s) => s.getSort() !== void 0), r = t(x) || {};
123
+ let n = e?.[0];
124
+ const u = Object.keys(r);
125
+ if (u.length && u.every((s) => r[s] === null)) {
126
126
  const s = Object.keys(r)[0];
127
- s && (a = d.value?.getColumn(s));
127
+ s && (n = d.value?.getColumn(s));
128
128
  }
129
- if (!a)
129
+ if (!n)
130
130
  return;
131
- const w = a.getColDef(), n = a.getSort();
132
- W(void 0, void 0, {
133
- column: w,
134
- field: w.field,
135
- order: n ? ue[n] : null
131
+ const i = n.getColDef(), w = n.getSort();
132
+ L(void 0, void 0, {
133
+ column: i,
134
+ field: i.field,
135
+ order: w ? Se[w] : null
136
136
  });
137
137
  }
138
- const pe = l(() => to(t(p), (e) => {
138
+ const ye = l(() => co(t(f), (e) => {
139
139
  if (e.sorter === !0)
140
140
  return e.key || e.dataIndex;
141
- }).filter(Boolean)), fe = l(() => fo(o.manual) ? o.manual : So(A.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
142
- formRef: f,
143
- submit: k,
144
- reset: x,
141
+ }).filter(Boolean)), he = l(() => Co(o.manual) ? o.manual : Ro(M.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
142
+ formRef: g,
143
+ submit: I,
144
+ reset: T,
145
145
  data: S,
146
- tableProps: O,
147
- handleTableChangeOptional: W,
148
- submitWith: j,
149
- refresh: L,
150
- getPaging: Se,
151
- setPaging: ge,
152
- setDataSource: we
153
- } = ro({
146
+ tableProps: j,
147
+ handleTableChangeOptional: L,
148
+ submitWith: G,
149
+ refresh: H,
150
+ getPaging: ve,
151
+ setPaging: Ce,
152
+ setDataSource: Re
153
+ } = uo({
154
154
  async request(e) {
155
- if (m = !1, !ve.value && C(o.dataSource) && K(), !C(o.dataSource)) {
156
- const a = e.pageSize * (e.current - 1);
155
+ if (p = !1, !Fe.value && b(o.dataSource) && P(), !b(o.dataSource)) {
156
+ const n = e.pageSize * (e.current - 1);
157
157
  return {
158
- data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(a, a + e.pageSize)) || [],
158
+ data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(n, n + e.pageSize)) || [],
159
159
  total: o.dataSource.length || 0
160
160
  };
161
161
  }
@@ -166,291 +166,301 @@ const Jo = /* @__PURE__ */ We({
166
166
  };
167
167
  },
168
168
  namespace: "ap-grid",
169
- filterFields: b([]),
170
- params: B(o, "params"),
169
+ filterFields: F([]),
170
+ params: k(o, "params"),
171
171
  defaultData: o.defaultData,
172
- manual: t(fe),
172
+ manual: t(he),
173
173
  formatParams: o.beforeSearchSubmit,
174
174
  pagination: o.pagination,
175
- sortFields: pe
176
- }), ye = ho(o, p), he = l(
177
- () => C(o.dataSource) ? S.records : o.dataSource
178
- ), ve = l(() => {
175
+ sortFields: ye
176
+ }), be = ko(o, f), Be = l(
177
+ () => b(o.dataSource) ? S.records : o.dataSource
178
+ ), Fe = l(() => {
179
179
  const e = o.rowSelection === !0 ? {} : o.rowSelection;
180
180
  return e ? e.preserveSelectedRowKeys !== !1 : !1;
181
181
  }), {
182
- select: Ce,
183
- unSelect: Re,
184
- selectedRows: T,
185
- selectedRowKeys: be,
186
- clearAll: Be,
187
- selectMultiByKeys: Fe
188
- } = ao({
182
+ select: ke,
183
+ unSelect: xe,
184
+ selectedRows: D,
185
+ selectedRowKeys: Ie,
186
+ clearAll: Te,
187
+ selectMultiByKeys: De
188
+ } = mo({
189
189
  ...o.rowSelection === !0 ? {} : o.rowSelection,
190
- dataSource: he,
190
+ dataSource: Be,
191
191
  rowKey: o.rowKey
192
- }), ke = {
192
+ }), Ke = {
193
193
  checkbox: "multiRow",
194
194
  radio: "singleRow"
195
- }, xe = l(() => {
195
+ }, Pe = l(() => {
196
196
  if (!o.rowSelection)
197
197
  return;
198
198
  const { type: e = "checkbox", disabled: r } = o.rowSelection === !0 ? {} : o.rowSelection;
199
199
  return {
200
- mode: ke[e],
201
- isRowSelectable: (a) => r ? !r(a.data) : !0
200
+ mode: Ke[e],
201
+ isRowSelectable: (n) => r ? !r(n.data) : !0
202
202
  };
203
203
  });
204
- function D(e) {
205
- return eo(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
204
+ function K(e) {
205
+ return so(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
206
206
  }
207
- const G = ({
207
+ const U = ({
208
208
  api: e = d.value
209
209
  }) => {
210
210
  if (!o.rowSelection)
211
211
  return;
212
- const r = T.value;
212
+ const r = D.value;
213
213
  if (!r.length) {
214
214
  setTimeout(() => {
215
- m = !0;
215
+ p = !0;
216
216
  }, 0);
217
217
  return;
218
218
  }
219
- m = !1;
220
- const a = [];
221
- e.forEachNode((c) => {
222
- const g = c.data, w = D(g);
223
- r.find((n) => D(n) === w) && a.push(c);
224
- }), e.setNodesSelected({ nodes: a, newValue: !0 }), setTimeout(() => {
225
- m = !0;
219
+ p = !1;
220
+ const n = [];
221
+ e.forEachNode((u) => {
222
+ const h = u.data, i = K(h);
223
+ r.find((w) => K(w) === i) && n.push(u);
224
+ }), e.setNodesSelected({ nodes: n, newValue: !0 }), setTimeout(() => {
225
+ p = !0;
226
226
  }, 0);
227
- }, Te = (e) => {
228
- m && (e.node.isSelected() ? Ce(e.data) : Re(e.data));
229
- }, De = () => {
230
- m = !0;
231
- }, K = () => {
232
- Be(), d.value?.deselectAll();
227
+ }, ze = (e) => {
228
+ p && (e.node.isSelected() ? ke(e.data) : xe(e.data));
229
+ }, Ee = () => {
230
+ p = !0;
231
+ }, P = () => {
232
+ Te(), d.value?.deselectAll();
233
233
  };
234
- function Ke(e) {
235
- Fe(e), Le(() => {
236
- G({});
234
+ function Ve(e) {
235
+ De(e), Qe(() => {
236
+ U({});
237
237
  });
238
238
  }
239
- function H(e = !1) {
239
+ function $(e = !1) {
240
240
  const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
241
- return f.value?.apForm?.[r]?.(!0);
242
- }
243
- function U(e) {
244
- f.value?.apForm?.setFieldsValue?.(e);
245
- }
246
- function $() {
247
- return f.value?.getSorterItems() || [];
241
+ return g.value?.apForm?.[r]?.(!0);
248
242
  }
249
243
  function q(e) {
250
- f.value?.setSorterItems(e);
244
+ g.value?.apForm?.setFieldsValue?.(e);
251
245
  }
252
246
  function J() {
253
- f.value?.resetSorterItems();
247
+ return g.value?.getSorterItems() || [];
248
+ }
249
+ function Q(e) {
250
+ g.value?.setSorterItems(e);
251
+ }
252
+ function X() {
253
+ g.value?.resetSorterItems();
254
+ }
255
+ function Y(e) {
256
+ return e && String(e);
254
257
  }
255
- function Pe(e) {
258
+ function Ae(e) {
256
259
  const r = d.value;
257
260
  if (!r)
258
261
  return;
259
- const a = r.getColumnState() || [], c = e.map((n) => n.key ? String(n.key) : n.key).filter(Boolean);
260
- let g = !1;
261
- const w = a.map((n) => {
262
- if (!ie.value.includes(n.colId))
263
- return n;
264
- const s = !c.includes(n.colId);
265
- return !g && s !== n.hide && (g = !0), {
266
- ...n,
267
- hide: s
268
- };
269
- });
270
- g && r.applyColumnState({
271
- state: w,
262
+ const n = r.getColumnState() || [], u = e.map((a) => a.key ? String(a.key) : a.key).filter(Boolean), h = n.map((a) => {
263
+ if (!pe.value.includes(a.colId))
264
+ return a;
265
+ const v = !u.includes(a.colId), Z = {
266
+ ...a,
267
+ hide: v
268
+ }, _ = e.find(
269
+ ($e) => Y($e.key) === a.colId
270
+ );
271
+ return _ && (Z.pinned = _.fixed || null), Z;
272
+ }), i = new Map(
273
+ e.map((a, v) => [Y(a.key), v])
274
+ ), w = h.filter((a) => i.has(a.colId)).sort(
275
+ (a, v) => i.get(a.colId) - i.get(v.colId)
276
+ ), s = [];
277
+ let Ue = 0;
278
+ for (const a of h)
279
+ i.has(a.colId) ? s.push(w[Ue++]) : s.push(a);
280
+ r.applyColumnState({
281
+ state: s,
272
282
  applyOrder: !0
273
283
  });
274
284
  }
275
- lo({
276
- columns: l(() => p.value),
277
- columnsBackup: l(() => M.value),
278
- size: l(() => io[y.value]),
285
+ fo({
286
+ columns: l(() => f.value),
287
+ columnsBackup: l(() => W.value),
288
+ size: l(() => So[y.value]),
279
289
  updateColumns(e) {
280
- p.value = e, o.onShownColumnsChange?.(e), Pe(e);
290
+ console.log("run reset", e), f.value = e, o.onShownColumnsChange?.(e), Ae(e);
281
291
  },
282
292
  updateSize(e) {
283
- y.value = so[e];
293
+ y.value = go[e];
284
294
  },
285
295
  renderConfig: l(() => ({
286
- className: te("table-header", "title"),
287
- color: se.value.colorTextTertiary
296
+ className: se("table-header", "title"),
297
+ color: me.value.colorTextTertiary
288
298
  })),
289
299
  dataSource: l(() => t(S).records),
290
- getSearchFormValues: H,
291
- setSearchFormValues: U,
292
- submit: k,
293
- submitWith: j,
294
- reset: x,
295
- refresh: L,
296
- getSearchFormSorterItems: $,
297
- setSearchFormSorterItems: q,
298
- resetSearchFormSorterItems: J
300
+ getSearchFormValues: $,
301
+ setSearchFormValues: q,
302
+ submit: I,
303
+ submitWith: G,
304
+ reset: T,
305
+ refresh: H,
306
+ getSearchFormSorterItems: J,
307
+ setSearchFormSorterItems: Q,
308
+ resetSearchFormSorterItems: X
299
309
  });
300
- const ze = l(
301
- () => C(o.loading) ? S.loading : o.loading
302
- ), Ee = l(() => [
303
- i(),
304
- o.card ? null : i("wrapper"),
305
- i("adaptive"),
306
- i(`size-${y.value}`)
307
- ].filter(Boolean)), Ie = l(() => ({
310
+ const Ne = l(
311
+ () => b(o.loading) ? S.loading : o.loading
312
+ ), Me = l(() => [
313
+ c(),
314
+ o.card ? null : c("wrapper"),
315
+ c("adaptive"),
316
+ c(`size-${y.value}`)
317
+ ].filter(Boolean)), Oe = l(() => ({
308
318
  height: "100%",
309
319
  ...o.tableStyle || {}
310
- })), Ve = (e, r) => {
311
- W({ current: e, pageSize: r });
320
+ })), We = (e, r) => {
321
+ L({ current: e, pageSize: r });
312
322
  };
313
- function Ae(e) {
323
+ function je(e) {
314
324
  const r = e.data;
315
- return D(r);
325
+ return K(r);
316
326
  }
317
- function Ne(e, r) {
327
+ function Le(e, r) {
318
328
  d.value?.ensureIndexVisible(e, r);
319
329
  }
320
- function Me(e) {
330
+ function Ge(e) {
321
331
  o.onRowClicked?.(e.data);
322
332
  }
323
- function Oe(e) {
333
+ function He(e) {
324
334
  o.onScrollEnd?.(e.direction);
325
335
  }
326
- return P(
336
+ return z(
327
337
  () => o.dataSource,
328
338
  (e) => {
329
- we(e);
339
+ Re(e);
330
340
  },
331
341
  { immediate: !0, deep: !0 }
332
- ), P(
342
+ ), z(
333
343
  () => o.size,
334
344
  (e) => {
335
345
  y.value = e;
336
346
  }
337
- ), P(
347
+ ), z(
338
348
  () => t(S).loading,
339
349
  (e) => {
340
350
  o.onLoadingChange?.(e);
341
351
  }
342
- ), ee({
343
- submit: k,
344
- reset: x,
345
- refresh: L,
346
- submitWith: j,
347
- setSearchFormValues: U,
348
- getSearchFormValues: H,
349
- getShowColumns: () => t(p),
352
+ ), ae({
353
+ submit: I,
354
+ reset: T,
355
+ refresh: H,
356
+ submitWith: G,
357
+ setSearchFormValues: q,
358
+ getSearchFormValues: $,
359
+ getShowColumns: () => t(f),
350
360
  rowSelection: {
351
- selectedRows: l(() => T.value),
352
- setSelectedRowKeys: Ke,
353
- clearAll: K
361
+ selectedRows: l(() => D.value),
362
+ setSelectedRowKeys: Ve,
363
+ clearAll: P
354
364
  },
355
- scrollToRow: Ne,
365
+ scrollToRow: Le,
356
366
  getDataSource: () => t(S.records),
357
- getPaging: Se,
358
- setPaging: ge,
359
- getSearchFormSorterItems: $,
360
- setSearchFormSorterItems: q,
361
- resetSearchFormSorterItems: J
362
- }), (e, r) => (h(), z("div", {
363
- class: u(Ee.value),
364
- style: E(e.wrapperStyle)
367
+ getPaging: ve,
368
+ setPaging: Ce,
369
+ getSearchFormSorterItems: J,
370
+ setSearchFormSorterItems: Q,
371
+ resetSearchFormSorterItems: X
372
+ }), (e, r) => (C(), E("div", {
373
+ class: m(Me.value),
374
+ style: V(e.wrapperStyle)
365
375
  }, [
366
- t(C)(e.dataSource) && e.searchForm !== !1 && t(N).length > 0 ? (h(), z("div", {
376
+ t(b)(e.dataSource) && e.searchForm !== !1 && t(O).length > 0 ? (C(), E("div", {
367
377
  key: 0,
368
- class: u(e.card ? t(R)("search-wrapper") : null),
369
- style: E(e.searchFormWrapperStyle)
378
+ class: m(e.card ? t(B)("search-wrapper") : null),
379
+ style: V(e.searchFormWrapperStyle)
370
380
  }, [
371
- I(t(oo).SearchForm, V(e.searchForm || {}, {
381
+ A(t(io).SearchForm, N(e.searchForm || {}, {
372
382
  ref_key: "formRef",
373
- ref: f,
383
+ ref: g,
374
384
  "custom-reset": "",
375
- "submit-loading": t(O).loading,
376
- onSubmit: t(k),
377
- onReset: t(x)
378
- }), Ge({
379
- default: X(() => [
380
- (h(!0), z(He, null, Ue(t(N), (a) => (h(), Y($e(a.renderNode), {
381
- key: a.dataIndex
385
+ "submit-loading": t(j).loading,
386
+ onSubmit: t(I),
387
+ onReset: t(T)
388
+ }), Xe({
389
+ default: oe(() => [
390
+ (C(!0), E(Ye, null, Ze(t(O), (n) => (C(), te(_e(n.renderNode), {
391
+ key: n.dataIndex
382
392
  }))), 128))
383
393
  ]),
384
394
  _: 2
385
395
  }, [
386
- A.searchFormExtra ? {
396
+ M.searchFormExtra ? {
387
397
  name: "extra",
388
- fn: X(() => [
389
- Z(e.$slots, "searchFormExtra")
398
+ fn: oe(() => [
399
+ re(e.$slots, "searchFormExtra")
390
400
  ]),
391
401
  key: "0"
392
402
  } : void 0
393
403
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
394
- ], 6)) : Q("", !0),
395
- v("div", {
396
- class: u([t(R)("table-wrapper"), e.card ? t(R)("table-wrapper-card") : null]),
397
- style: E(e.tableWrapperStyle)
404
+ ], 6)) : ee("", !0),
405
+ R("div", {
406
+ class: m([t(B)("table-wrapper"), e.card ? t(B)("table-wrapper-card") : null]),
407
+ style: V(e.tableWrapperStyle)
398
408
  }, [
399
- v("div", {
400
- class: u(t(i)("header-wrapper"))
409
+ R("div", {
410
+ class: m(t(c)("header-wrapper"))
401
411
  }, [
402
- Z(e.$slots, "title", {
403
- selectedRows: t(T),
404
- selectedRowKeys: t(be),
405
- shownColumns: t(p),
406
- clearAll: K
412
+ re(e.$slots, "title", {
413
+ selectedRows: t(D),
414
+ selectedRowKeys: t(Ie),
415
+ shownColumns: t(f),
416
+ clearAll: P
407
417
  })
408
418
  ], 2),
409
- v("div", {
410
- class: u(t(i)("grid-wrapper"))
419
+ R("div", {
420
+ class: m(t(c)("grid-wrapper"))
411
421
  }, [
412
- I(t(Qe), V(oe(t(ae), t(ne)), {
413
- style: Ie.value,
422
+ A(t(to), N(le(t(ce), t(de)), {
423
+ style: Oe.value,
414
424
  "row-data": t(S).records,
415
- "column-defs": t(ce),
416
- "default-col-def": t(de),
425
+ "column-defs": t(ge),
426
+ "default-col-def": t(fe),
417
427
  "suppress-loading-overlay": "",
418
- "row-selection": xe.value,
419
- "selection-column-def": t(ye),
420
- "get-row-id": Ae,
421
- theme: t(re),
428
+ "row-selection": Pe.value,
429
+ "selection-column-def": t(be),
430
+ "get-row-id": je,
431
+ theme: t(ie),
422
432
  "tooltip-show-delay": 500,
423
433
  "enable-browser-tooltips": e.browserTooltips,
424
434
  "tooltip-interaction": "",
425
- "no-rows-overlay-component": Co,
426
- onSortChanged: me,
427
- onGridReady: r[0] || (r[0] = (a) => d.value = a.api),
428
- onRowDataUpdated: G,
429
- onRowSelected: Te,
430
- onFirstDataRendered: De,
431
- onRowClicked: Me,
432
- onBodyScrollEnd: Oe
435
+ "no-rows-overlay-component": Io,
436
+ onSortChanged: we,
437
+ onGridReady: r[0] || (r[0] = (n) => d.value = n.api),
438
+ onRowDataUpdated: U,
439
+ onRowSelected: ze,
440
+ onFirstDataRendered: Ee,
441
+ onRowClicked: Ge,
442
+ onBodyScrollEnd: He
433
443
  }), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "theme", "enable-browser-tooltips"]),
434
- qe(v("div", {
435
- class: u(t(R)("table-loading-wrapper"))
444
+ eo(R("div", {
445
+ class: m(t(B)("table-loading-wrapper"))
436
446
  }, [
437
- I(t(Ze), { delay: 300 })
447
+ A(t(ao), { delay: 300 })
438
448
  ], 2), [
439
- [Je, ze.value]
449
+ [oo, Ne.value]
440
450
  ])
441
451
  ], 2),
442
- v("div", {
443
- class: u(t(i)("pagination-wrapper"))
452
+ R("div", {
453
+ class: m(t(c)("pagination-wrapper"))
444
454
  }, [
445
- e.pagination !== !1 ? (h(), Y(t(_e), V({
455
+ e.pagination !== !1 ? (C(), te(t(lo), N({
446
456
  key: 0,
447
- class: t(i)("pagination")
448
- }, t(O).pagination, { onChange: Ve }), null, 16, ["class"])) : Q("", !0)
457
+ class: t(c)("pagination")
458
+ }, t(j).pagination, { onChange: We }), null, 16, ["class"])) : ee("", !0)
449
459
  ], 2)
450
460
  ], 6)
451
461
  ], 6));
452
462
  }
453
463
  });
454
464
  export {
455
- Jo as default
465
+ ot as default
456
466
  };
@@ -1,2 +1,5 @@
1
1
  import { ApFieldSelectProps } from '../../ap-field';
2
- export declare function selectRenderer(props: ApFieldSelectProps): any;
2
+ import { ValueEnum } from '../../ap-table';
3
+ export declare function selectRenderer(props: ApFieldSelectProps & {
4
+ valueEnum?: ValueEnum;
5
+ }): any;