@aplus-frontend/ui 6.33.0 → 6.35.0

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 (70) hide show
  1. package/es/src/ag-grid/components/tooltip/index.vue.d.ts +6 -0
  2. package/es/src/ag-grid/components/tooltip/index.vue.mjs +4 -0
  3. package/es/src/ag-grid/components/tooltip/index.vue2.mjs +29 -0
  4. package/es/src/ag-grid/hooks/use-columns-def.d.ts +1 -0
  5. package/es/src/ag-grid/hooks/use-columns-def.mjs +94 -87
  6. package/es/src/ag-grid/hooks/use-selection-col-def.mjs +28 -22
  7. package/es/src/ag-grid/index.vue.mjs +164 -161
  8. package/es/src/ag-grid/interface.d.ts +5 -1
  9. package/es/src/ap-download/ap-download.vue.mjs +31 -25
  10. package/es/src/ap-form/ap-form.vue.d.ts +2 -6
  11. package/es/src/ap-form/ap-form.vue2.mjs +71 -69
  12. package/es/src/ap-grid/editable/form-item.vue.mjs +74 -71
  13. package/es/src/ap-grid/editable/index.vue.mjs +94 -91
  14. package/es/src/ap-grid/index.vue.mjs +74 -69
  15. package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +1 -1
  16. package/es/src/ap-table/ap-table.vue2.mjs +72 -69
  17. package/es/src/ap-tag/ap-tag-group.vue.mjs +33 -30
  18. package/es/src/ap-upload/components/SingleFile.vue2.mjs +103 -103
  19. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +21 -18
  20. package/es/src/business/ap-attachment/ApAttachment.mjs +16 -15
  21. package/es/src/business/ap-copy/ApCopy.mjs +5 -6
  22. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +176 -175
  23. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -4
  24. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  25. package/es/src/business/ap-label/index.d.ts +3 -3
  26. package/es/src/business/hooks/usePageListApTable.mjs +10 -9
  27. package/es/src/editable-table/form-item.vue.mjs +75 -72
  28. package/es/src/editable-table/hooks/use-get-columns.mjs +35 -34
  29. package/es/src/editable-table/index.vue.mjs +68 -65
  30. package/es/src/utils/warning.d.ts +25 -0
  31. package/es/src/utils/warning.mjs +74 -0
  32. package/es/src/version.d.ts +1 -1
  33. package/es/src/version.mjs +1 -1
  34. package/lib/src/ag-grid/components/tooltip/index.vue.d.ts +6 -0
  35. package/lib/src/ag-grid/components/tooltip/index.vue.js +1 -0
  36. package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -0
  37. package/lib/src/ag-grid/hooks/use-columns-def.d.ts +1 -0
  38. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  39. package/lib/src/ag-grid/hooks/use-selection-col-def.js +1 -1
  40. package/lib/src/ag-grid/index.vue.js +1 -1
  41. package/lib/src/ag-grid/interface.d.ts +5 -1
  42. package/lib/src/ap-download/ap-download.vue.js +1 -1
  43. package/lib/src/ap-form/ap-form.vue.d.ts +2 -6
  44. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  45. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  46. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  47. package/lib/src/ap-grid/index.vue.js +1 -1
  48. package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +1 -1
  49. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  50. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  51. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  52. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  53. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  54. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  55. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  56. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  57. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  58. package/lib/src/business/ap-label/index.d.ts +3 -3
  59. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  60. package/lib/src/editable-table/form-item.vue.js +1 -1
  61. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  62. package/lib/src/editable-table/index.vue.js +1 -1
  63. package/lib/src/utils/warning.d.ts +25 -0
  64. package/lib/src/utils/warning.js +1 -0
  65. package/lib/src/version.d.ts +1 -1
  66. package/lib/src/version.js +1 -1
  67. package/package.json +1 -1
  68. package/theme/ag-grid/index.css +5 -1
  69. package/theme/ag-grid/index.less +5 -1
  70. package/theme/index.css +5 -1
@@ -1,16 +1,17 @@
1
- import { defineComponent as W, useSlots as G, ref as g, watch as C, unref as r, createBlock as U, openBlock as $, withCtx as p, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
1
+ import { defineComponent as I, useSlots as W, ref as y, watch as C, unref as r, createBlock as U, openBlock as $, withCtx as p, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
2
  import { ApForm as m } from "../../ap-form/index.mjs";
3
- import { isEqual as M, isArray as c, isUndefined as ee, isNumber as h, cloneDeep as te, omit as ae } from "lodash-unified";
3
+ import { isEqual as M, isArray as c, isUndefined as ee, isNumber as g, cloneDeep as ae, omit as te } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { isDef as v } from "../../utils/index.mjs";
6
+ import { isDef as b } from "../../utils/index.mjs";
7
7
  import { useGetEditableColumns as oe } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
+ import { useDevWarning as ne } from "../../utils/warning.mjs";
9
10
  import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
11
- import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
12
- import re from "../index.vue.mjs";
13
- const ve = /* @__PURE__ */ W({
11
+ import { useControllableValue as se } from "../../hooks/useControllableValue.mjs";
12
+ import { useGlobalConfig as re } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import ie from "../index.vue.mjs";
14
+ const Re = /* @__PURE__ */ I({
14
15
  name: "EditableGrid",
15
16
  __name: "index",
16
17
  props: {
@@ -162,124 +163,126 @@ const ve = /* @__PURE__ */ W({
162
163
  onFieldChange: {}
163
164
  },
164
165
  emits: ["update:value"],
165
- setup(x, {
166
- expose: b,
166
+ setup(v, {
167
+ expose: x,
167
168
  emit: R
168
169
  }) {
169
- const B = G(), t = x, {
170
+ const B = W(), a = v, {
170
171
  b: F
171
- } = le("editable-grid"), S = R, y = g(), {
172
- value: i,
173
- updateValue: N
174
- } = ne(t, S), u = g(), V = se("valueTypeMap"), d = m.useWatch(t.name, u);
175
- C(() => d.value, (e) => {
176
- N(e), t.onChange?.(e);
172
+ } = le("editable-grid"), S = R;
173
+ ne("EditableGrid")(!1, "breaking", "EditableGrid has been EOL, Please use EditableAgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
174
+ const h = y(), {
175
+ value: u,
176
+ updateValue: E
177
+ } = se(a, S), i = y(), N = re("valueTypeMap"), f = m.useWatch(a.name, i);
178
+ C(() => f.value, (e) => {
179
+ E(e), a.onChange?.(e);
177
180
  }, {
178
181
  deep: !0,
179
182
  flush: "post"
180
- }), C(i, (e) => {
181
- e !== r(d) && (M(e, r(d)) || u.value?.setFieldValue(t.name, e));
183
+ }), C(u, (e) => {
184
+ e !== r(f) && (M(e, r(f)) || i.value?.setFieldValue(a.name, e));
182
185
  }, {
183
186
  deep: !0
184
187
  });
185
- const _ = oe(t, V);
186
- function L() {
187
- u.value?.resetFields();
188
+ const V = oe(a, N);
189
+ function k() {
190
+ i.value?.resetFields();
188
191
  }
189
- function k(e) {
190
- return e ? (c(e) ? e : [e]).map((n) => c(n) ? [t.name, ...n] : [t.name, n]) : void 0;
192
+ function L(e) {
193
+ return e ? (c(e) ? e : [e]).map((l) => c(l) ? [a.name, ...l] : [a.name, l]) : void 0;
191
194
  }
192
- async function D(e, l) {
193
- return (await u.value?.validateFields(k(e), l))?.[t.name];
195
+ async function _(e, n) {
196
+ return (await i.value?.validateFields(L(e), n))?.[a.name];
194
197
  }
195
- function E(e, l) {
196
- const n = r(i)?.length || 0;
197
- if (v(t.maxLength) && n >= t.maxLength)
198
+ function D(e, n) {
199
+ const l = r(u)?.length || 0;
200
+ if (b(a.maxLength) && l >= a.maxLength)
198
201
  return;
199
- const a = {
202
+ const t = {
200
203
  ...e || {}
201
204
  };
202
- u.value?.setFieldValue?.(t.name, a, !0, (o, s) => {
205
+ i.value?.setFieldValue?.(a.name, t, !0, (o, s) => {
203
206
  if (!o[s]) {
204
- o[s] = [a];
207
+ o[s] = [t];
205
208
  return;
206
209
  }
207
- ee(l) ? o[s].push(a) : o[s].splice(l, 0, a);
210
+ ee(n) ? o[s].push(t) : o[s].splice(n, 0, t);
208
211
  });
209
212
  }
210
- function T(e, l = "suffix") {
211
- const n = r(i)?.length || 0, a = h(e) ? e : e.length;
212
- if (v(t.maxLength) && n + a > t.maxLength)
213
+ function T(e, n = "suffix") {
214
+ const l = r(u)?.length || 0, t = g(e) ? e : e.length;
215
+ if (b(a.maxLength) && l + t > a.maxLength)
213
216
  return;
214
- const o = h(e) ? new Array(e).fill(0).map(() => ({})) : te(e);
215
- u.value?.setFieldValue?.(t.name, o, !0, (s, f) => {
216
- if (!s[f]) {
217
- s[f] = [...o];
217
+ const o = g(e) ? new Array(e).fill(0).map(() => ({})) : ae(e);
218
+ i.value?.setFieldValue?.(a.name, o, !0, (s, d) => {
219
+ if (!s[d]) {
220
+ s[d] = [...o];
218
221
  return;
219
222
  }
220
- l === "suffix" ? s[f].push(...o) : s[f].unshift(...o);
223
+ n === "suffix" ? s[d].push(...o) : s[d].unshift(...o);
221
224
  });
222
225
  }
223
- function j(e) {
224
- const l = new Set(h(e) ? [e] : e);
225
- u.value?.setFieldValue?.(t.name, void 0, !0, (n, a) => {
226
- n[a] = n[a].filter((o, s) => !l.has(s));
226
+ function O(e) {
227
+ const n = new Set(g(e) ? [e] : e);
228
+ i.value?.setFieldValue?.(a.name, void 0, !0, (l, t) => {
229
+ l[t] = l[t].filter((o, s) => !n.has(s));
227
230
  });
228
231
  }
229
- function O(e) {
230
- const l = new Set(c(e) ? e : [e]);
231
- l.size !== 0 && u.value?.setFieldValue?.(t.name, void 0, !0, (n, a) => {
232
- n[a] = n[a].filter((o) => !l.has(o[t.rowKey]));
232
+ function j(e) {
233
+ const n = new Set(c(e) ? e : [e]);
234
+ n.size !== 0 && i.value?.setFieldValue?.(a.name, void 0, !0, (l, t) => {
235
+ l[t] = l[t].filter((o) => !n.has(o[a.rowKey]));
233
236
  });
234
237
  }
235
- function z() {
236
- return r(i);
238
+ function A() {
239
+ return r(u);
237
240
  }
238
- function A(e) {
239
- u.value?.setFieldValue(t.name, e);
241
+ function z(e) {
242
+ i.value?.setFieldValue(a.name, e);
240
243
  }
241
- function K(e) {
242
- return r(i)?.[e];
244
+ function G(e) {
245
+ return r(u)?.[e];
243
246
  }
244
- function H(e, l, n = !0) {
245
- u.value?.setFieldValue?.(t.name, void 0, !0, (a, o) => {
246
- if (!(!a[o] || !a[o][e])) {
247
- if (!n) {
248
- const s = Object.keys(a[o][e]);
249
- for (const f of s)
250
- f !== t.rowKey && delete a[o][e][f];
247
+ function K(e, n, l = !0) {
248
+ i.value?.setFieldValue?.(a.name, void 0, !0, (t, o) => {
249
+ if (!(!t[o] || !t[o][e])) {
250
+ if (!l) {
251
+ const s = Object.keys(t[o][e]);
252
+ for (const d of s)
253
+ d !== a.rowKey && delete t[o][e][d];
251
254
  }
252
- Object.assign(a[o][e], {
253
- ...l
255
+ Object.assign(t[o][e], {
256
+ ...n
254
257
  });
255
258
  }
256
259
  });
257
260
  }
258
- function I(e) {
259
- const l = e === "end" ? i.value.length - 1 : e;
260
- y.value?.scrollToRow(l);
261
+ function P(e) {
262
+ const n = e === "end" ? u.value.length - 1 : e;
263
+ h.value?.scrollToRow(n);
261
264
  }
262
- function P() {
263
- u.value?.setFieldValue?.(t.name, []);
265
+ function H() {
266
+ i.value?.setFieldValue?.(a.name, []);
264
267
  }
265
- return b({
266
- resetFields: L,
267
- validateFields: D,
268
- add: E,
269
- remove: j,
270
- getRowData: K,
271
- getRowsData: z,
272
- setRowData: H,
268
+ return x({
269
+ resetFields: k,
270
+ validateFields: _,
271
+ add: D,
272
+ remove: O,
273
+ getRowData: G,
274
+ getRowsData: A,
275
+ setRowData: K,
273
276
  addMultiple: T,
274
- scrollTo: I,
275
- clear: P,
276
- setTableData: A,
277
- removeByKey: O
278
- }), (e, l) => ($(), U(r(m), {
277
+ scrollTo: P,
278
+ clear: H,
279
+ setTableData: z,
280
+ removeByKey: j
281
+ }), (e, n) => ($(), U(r(m), {
279
282
  ref_key: "formRef",
280
- ref: u,
283
+ ref: i,
281
284
  "initial-values": {
282
- [t.name]: r(i)
285
+ [a.name]: r(u)
283
286
  },
284
287
  style: {
285
288
  height: "100%"
@@ -289,18 +292,18 @@ const ve = /* @__PURE__ */ W({
289
292
  name: e.name,
290
293
  "no-style": ""
291
294
  }, {
292
- default: p(() => [w(re, q(r(ae)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
295
+ default: p(() => [w(ie, q(r(te)(a, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
293
296
  ref_key: "tableRef",
294
- ref: y,
297
+ ref: h,
295
298
  class: r(F)(),
296
- columns: r(_),
297
- "data-source": r(i),
299
+ columns: r(V),
300
+ "data-source": r(u),
298
301
  "search-form": !1
299
302
  }), J({
300
303
  _: 2
301
- }, [Q(B, (n, a) => ({
302
- name: a,
303
- fn: p((o) => [X(e.$slots, a, Y(Z(o || {})))])
304
+ }, [Q(B, (l, t) => ({
305
+ name: t,
306
+ fn: p((o) => [X(e.$slots, t, Y(Z(o || {})))])
304
307
  }))]), 1040, ["class", "columns", "data-source"])]),
305
308
  _: 3
306
309
  }, 8, ["name"])]),
@@ -309,5 +312,5 @@ const ve = /* @__PURE__ */ W({
309
312
  }
310
313
  });
311
314
  export {
312
- ve as default
315
+ Re as default
313
316
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Xe, useSlots as Je, getCurrentInstance as Qe, ref as F, computed as n, unref as t, toRef as Ye, nextTick as oe, watch as E, createElementBlock as I, openBlock as s, normalizeStyle as _, normalizeClass as m, createCommentVNode as v, createElementVNode as w, createVNode as K, mergeProps as R, createSlots as V, withCtx as c, Fragment as ae, renderList as L, createBlock as d, resolveDynamicComponent as B, renderSlot as O, normalizeProps as Ze, guardReactiveProps as et } from "vue";
1
+ import { defineComponent as Xe, useSlots as Je, getCurrentInstance as Qe, ref as F, computed as n, unref as t, toRef as Ye, nextTick as oe, watch as E, createElementBlock as I, openBlock as s, normalizeStyle as _, normalizeClass as m, createCommentVNode as y, createElementVNode as w, createVNode as K, mergeProps as R, createSlots as L, withCtx as c, Fragment as ae, renderList as V, createBlock as d, resolveDynamicComponent as B, renderSlot as O, normalizeProps as Ze, guardReactiveProps as et } from "vue";
2
2
  import { VxeUI as re, VxeTable as tt, VxeColumn as ne } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import { isUndefined as S, isFunction as D, isArray as ot, omit as at } from "lodash-unified";
@@ -12,18 +12,19 @@ import { useInnerParams as pt } from "./hooks/use-inner-params.mjs";
12
12
  import { toVxeProps as ft, getRowExpandProps as mt, getRowSelectionProps as gt } from "./utils/table.mjs";
13
13
  import ht from "./hooks/use-row-selection.mjs";
14
14
  import { useProvideApTable as Ct } from "../ap-table/context.mjs";
15
- import { DEFAULT_ROW_SELECTION_CONFIG as de, sizeReverseMap as yt, sizeMap as vt, ROW_SELECTION_FIELD as wt } from "./constants.mjs";
15
+ import { DEFAULT_ROW_SELECTION_CONFIG as de, sizeReverseMap as vt, sizeMap as yt, ROW_SELECTION_FIELD as wt } from "./constants.mjs";
16
16
  import { useRenderColumns as Rt } from "./hooks/use-render-columns.mjs";
17
17
  import { useToken as St } from "@aplus-frontend/antdv/es/theme/internal";
18
18
  import "../scroll-bar/index.mjs";
19
19
  import { isDef as bt } from "../utils/index.mjs";
20
20
  import { getValidVNodeList as xt } from "../utils/slot.mjs";
21
21
  import { useTableStyle as kt } from "./hooks/use-table-style.mjs";
22
- import { useNamespace as Ft } from "../config-provider/hooks/use-namespace.mjs";
22
+ import { useDevWarning as Ft } from "../utils/warning.mjs";
23
+ import { useNamespace as Et } from "../config-provider/hooks/use-namespace.mjs";
23
24
  import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
24
- import { useLocale as Et } from "../config-provider/hooks/use-locale.mjs";
25
- import It from "../scroll-bar/index.vue.mjs";
26
- const eo = /* @__PURE__ */ Xe({
25
+ import { useLocale as It } from "../config-provider/hooks/use-locale.mjs";
26
+ import Bt from "../scroll-bar/index.vue.mjs";
27
+ const ao = /* @__PURE__ */ Xe({
27
28
  name: "ApGrid",
28
29
  __name: "index",
29
30
  props: {
@@ -117,12 +118,16 @@ const eo = /* @__PURE__ */ Xe({
117
118
  },
118
119
  setup(ce, { expose: pe }) {
119
120
  const T = Je(), o = ce, b = Qe()?.appContext.app;
120
- b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(re), b.__VXE_PC_UI_INSTALLED__ = !0);
121
- const { e: x, b: u, be: fe } = Ft("ap-grid"), me = ue("valueTypeMap"), ge = ue("apGrid"), i = F([]), $ = F([]), l = F(), k = F(o.size), he = kt(), [, Ce] = St(), { t: ye } = Et();
121
+ b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(re), b.__VXE_PC_UI_INSTALLED__ = !0), Ft("ApGrid")(
122
+ !1,
123
+ "breaking",
124
+ "AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
125
+ );
126
+ const { e: x, b: u, be: fe } = Et("ap-grid"), me = ue("valueTypeMap"), ge = ue("apGrid"), i = F([]), $ = F([]), l = F(), k = F(o.size), he = kt(), [, Ce] = St(), { t: ve } = It();
122
127
  re.setConfig({
123
- i18n: (e, a) => ye(`ap.${e}`, a)
128
+ i18n: (e, a) => ve(`ap.${e}`, a)
124
129
  });
125
- const { renderConfig: ve, updateSignal: we } = Rt(i);
130
+ const { renderConfig: ye, updateSignal: we } = Rt(i);
126
131
  let W = 0;
127
132
  const C = n(() => {
128
133
  let e = o.rowSelection || ge.value?.rowSelection;
@@ -136,7 +141,7 @@ const eo = /* @__PURE__ */ Xe({
136
141
  return l.value.$el.querySelector(
137
142
  ".vxe-table--header-inner-wrapper"
138
143
  );
139
- }), M = n(() => (W++, o.columns?.filter(
144
+ }), G = n(() => (W++, o.columns?.filter(
140
145
  (e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !nt.includes(e.valueType)
141
146
  )?.sort((e, a) => {
142
147
  let r = le(e.order);
@@ -166,19 +171,19 @@ const eo = /* @__PURE__ */ Xe({
166
171
  o.card ? null : u("wrapper"),
167
172
  o.adaptive ? u("adaptive") : null,
168
173
  o.sticky ? u("sticky") : null
169
- ].filter(Boolean)), j = n(() => se(t(i), (e) => {
174
+ ].filter(Boolean)), M = n(() => se(t(i), (e) => {
170
175
  if (e.sorter === !0)
171
176
  return e.key || e.dataIndex;
172
- }).filter(Boolean)), q = n(() => se(t(i), (e) => {
177
+ }).filter(Boolean)), j = n(() => se(t(i), (e) => {
173
178
  if (e.filters && !e.onFilter)
174
179
  return e.key || e.dataIndex;
175
180
  }).filter(Boolean)), {
176
181
  formRef: g,
177
182
  submit: N,
178
183
  reset: P,
179
- refresh: H,
184
+ refresh: q,
180
185
  data: p,
181
- tableProps: G,
186
+ tableProps: H,
182
187
  setDataSource: xe,
183
188
  handleTableChangeOptional: ke,
184
189
  getPaging: Fe,
@@ -186,7 +191,7 @@ const eo = /* @__PURE__ */ Xe({
186
191
  submitWith: U
187
192
  } = dt({
188
193
  async request(e) {
189
- if (C.value && !C.value.preserveSelectedRowKeys && S(o.dataSource) && A(), !S(o.dataSource)) {
194
+ if (C.value && !C.value.preserveSelectedRowKeys && S(o.dataSource) && z(), !S(o.dataSource)) {
190
195
  const r = e.pageSize * (e.current - 1);
191
196
  return {
192
197
  data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(r, r + e.pageSize)) || [],
@@ -200,25 +205,25 @@ const eo = /* @__PURE__ */ Xe({
200
205
  };
201
206
  },
202
207
  namespace: "ap-grid",
203
- filterFields: q,
204
- sortFields: j,
208
+ filterFields: j,
209
+ sortFields: M,
205
210
  params: Ye(o, "params"),
206
211
  defaultData: o.defaultData,
207
212
  manual: t(Se),
208
213
  formatParams: o.beforeSearchSubmit,
209
214
  pagination: o.pagination,
210
215
  onClickReset: We,
211
- onAfterRequest: Me
216
+ onAfterRequest: Ge
212
217
  }), { sortChangeEvent: Ie, filterChangeEvent: Be, paginationChangeEvent: Te } = pt(ke);
213
218
  Ct({
214
219
  columns: n(() => i.value),
215
220
  columnsBackup: n(() => $.value),
216
- size: n(() => vt[k.value]),
221
+ size: n(() => yt[k.value]),
217
222
  updateColumns(e) {
218
223
  i.value = e, o.onShownColumnsChange?.(e);
219
224
  },
220
225
  updateSize(e) {
221
- k.value = yt[e];
226
+ k.value = vt[e];
222
227
  },
223
228
  renderConfig: n(() => ({
224
229
  className: fe("table-header", "title"),
@@ -230,7 +235,7 @@ const eo = /* @__PURE__ */ Xe({
230
235
  submit: N,
231
236
  submitWith: U,
232
237
  reset: P,
233
- refresh: H,
238
+ refresh: q,
234
239
  getSearchFormSorterItems: Q,
235
240
  setSearchFormSorterItems: Y,
236
241
  resetSearchFormSorterItems: Z
@@ -241,17 +246,17 @@ const eo = /* @__PURE__ */ Xe({
241
246
  ) ? "left" : void 0
242
247
  ), Pe = n(
243
248
  () => S(o.loading) ? p.loading : o.loading
244
- ), ze = n(
249
+ ), Ae = n(
245
250
  () => S(o.dataSource) ? p.records : o.dataSource
246
- ), { selectedRows: z, rowSelection: h, ...y } = ht({
251
+ ), { selectedRows: A, rowSelection: h, ...v } = ht({
247
252
  ...C.value,
248
- dataSource: ze,
253
+ dataSource: Ae,
249
254
  rowKey: o.rowKey
250
- }), Ae = ({
255
+ }), ze = ({
251
256
  checked: e
252
257
  }) => {
253
258
  const a = l.value;
254
- a && a && y.selectChange(
259
+ a && a && v.selectChange(
255
260
  e,
256
261
  a.getCheckboxRecords(),
257
262
  a.getCheckboxReserveRecords()
@@ -260,20 +265,20 @@ const eo = /* @__PURE__ */ Xe({
260
265
  checked: e
261
266
  }) => {
262
267
  const a = l.value;
263
- a && y.selectAllChange(e, [
268
+ a && v.selectAllChange(e, [
264
269
  ...a.getCheckboxReserveRecords(),
265
270
  ...a.getCheckboxRecords()
266
271
  ]);
267
272
  }, Ke = () => {
268
273
  const e = l.value;
269
- e && y.selectRangeChange(e.getCheckboxRecords(), [
274
+ e && v.selectRangeChange(e.getCheckboxRecords(), [
270
275
  ...e.getCheckboxReserveRecords(),
271
276
  ...e.getCheckboxRecords()
272
277
  ]);
273
- }, Ve = () => {
278
+ }, Le = () => {
274
279
  const e = l.value;
275
- e && (z.value = [e.getRadioRecord()]);
276
- }, Le = ({
280
+ e && (A.value = [e.getRadioRecord()]);
281
+ }, Ve = ({
277
282
  row: e
278
283
  }) => {
279
284
  const a = o.rowHighlightable;
@@ -298,13 +303,13 @@ const eo = /* @__PURE__ */ Xe({
298
303
  function Z() {
299
304
  g.value?.resetSorterItems();
300
305
  }
301
- function A() {
302
- y.clearAll();
306
+ function z() {
307
+ v.clearAll();
303
308
  const e = l.value;
304
309
  e && (h.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
305
310
  }
306
311
  function De(e) {
307
- D(o.rowKey) || (y.selectMultiByKeys(e), ee());
312
+ D(o.rowKey) || (v.selectMultiByKeys(e), ee());
308
313
  }
309
314
  function $e(e) {
310
315
  const a = l.value;
@@ -325,25 +330,25 @@ const eo = /* @__PURE__ */ Xe({
325
330
  );
326
331
  });
327
332
  }
328
- function Me(e) {
333
+ function Ge(e) {
329
334
  ee(), o.onReady && oe(() => {
330
335
  o.onReady(e);
331
336
  });
332
337
  }
333
- async function je(e, a) {
338
+ async function Me(e, a) {
334
339
  const r = p.records[e];
335
340
  if (r)
336
341
  return l.value?.scrollToRow(r, a);
337
342
  }
338
- const qe = (e) => D(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
339
- async function He(e, a = !0) {
343
+ const je = (e) => D(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
344
+ async function qe(e, a = !0) {
340
345
  const r = l.value;
341
346
  if (!r)
342
347
  return;
343
- const f = ot(e) ? e : [e], Ge = (r.getData() || []).filter(
344
- (Ue) => f.includes(qe(Ue))
348
+ const f = ot(e) ? e : [e], He = (r.getData() || []).filter(
349
+ (Ue) => f.includes(je(Ue))
345
350
  );
346
- r.setRowExpand(Ge, a);
351
+ r.setRowExpand(He, a);
347
352
  }
348
353
  return E(
349
354
  () => [o.columnResizable, o.columns],
@@ -374,17 +379,17 @@ const eo = /* @__PURE__ */ Xe({
374
379
  ), pe({
375
380
  submit: N,
376
381
  reset: P,
377
- refresh: H,
382
+ refresh: q,
378
383
  submitWith: U,
379
384
  setSearchFormValues: X,
380
385
  getSearchFormValues: J,
381
386
  getShowColumns: () => t(i),
382
387
  rowSelection: {
383
- selectedRows: n(() => z.value),
388
+ selectedRows: n(() => A.value),
384
389
  setSelectedRowKeys: De,
385
- clearAll: A
390
+ clearAll: z
386
391
  },
387
- scrollToRow: je,
392
+ scrollToRow: Me,
388
393
  getDataSource: () => t(p.records),
389
394
  setCurrentRow: $e,
390
395
  getPaging: Fe,
@@ -392,12 +397,12 @@ const eo = /* @__PURE__ */ Xe({
392
397
  getSearchFormSorterItems: Q,
393
398
  setSearchFormSorterItems: Y,
394
399
  resetSearchFormSorterItems: Z,
395
- setRowExpand: He
400
+ setRowExpand: qe
396
401
  }), (e, a) => (s(), I("div", {
397
402
  class: m(be.value),
398
403
  style: _(e.wrapperStyle)
399
404
  }, [
400
- t(S)(e.dataSource) && e.searchForm !== !1 && M.value.length > 0 ? (s(), I("div", {
405
+ t(S)(e.dataSource) && e.searchForm !== !1 && G.value.length > 0 ? (s(), I("div", {
401
406
  key: 0,
402
407
  class: m(e.card ? t(x)("search-wrapper") : null),
403
408
  style: _(e.searchFormWrapperStyle)
@@ -406,12 +411,12 @@ const eo = /* @__PURE__ */ Xe({
406
411
  ref_key: "formRef",
407
412
  ref: g,
408
413
  "custom-reset": "",
409
- "submit-loading": t(G).loading,
414
+ "submit-loading": t(H).loading,
410
415
  onSubmit: t(N),
411
416
  onReset: t(P)
412
- }), V({
417
+ }), L({
413
418
  default: c(() => [
414
- (s(!0), I(ae, null, L(M.value, (r) => (s(), d(B(r.renderNode), {
419
+ (s(!0), I(ae, null, V(G.value, (r) => (s(), d(B(r.renderNode), {
415
420
  key: r.dataIndex
416
421
  }))), 128))
417
422
  ]),
@@ -425,7 +430,7 @@ const eo = /* @__PURE__ */ Xe({
425
430
  key: "0"
426
431
  } : void 0
427
432
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
428
- ], 6)) : v("", !0),
433
+ ], 6)) : y("", !0),
429
434
  w("div", {
430
435
  class: m([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
431
436
  style: _(e.tableWrapperStyle)
@@ -434,10 +439,10 @@ const eo = /* @__PURE__ */ Xe({
434
439
  class: m(t(u)("header-wrapper"))
435
440
  }, [
436
441
  O(e.$slots, "title", {
437
- selectedRows: t(z),
442
+ selectedRows: t(A),
438
443
  selectedRowKeys: t(h).selectedRowKeys,
439
444
  shownColumns: i.value,
440
- clearAll: A
445
+ clearAll: z
441
446
  })
442
447
  ], 2),
443
448
  w("div", {
@@ -449,23 +454,23 @@ const eo = /* @__PURE__ */ Xe({
449
454
  key: t(we),
450
455
  data: t(p).records,
451
456
  "sort-config": {
452
- remote: j.value.length > 0,
457
+ remote: M.value.length > 0,
453
458
  trigger: "cell"
454
459
  },
455
460
  "filter-config": {
456
- remote: q.value.length > 0
461
+ remote: j.value.length > 0
457
462
  },
458
463
  loading: Pe.value,
459
464
  style: t(he),
460
465
  size: k.value,
461
466
  onSortChange: t(Ie),
462
467
  onFilterChange: t(Be),
463
- onCheckboxChange: Ae,
468
+ onCheckboxChange: ze,
464
469
  onCheckboxRangeChange: Ke,
465
470
  onCheckboxAll: _e,
466
- onRadioChange: Ve,
467
- onCurrentRowChange: Le
468
- }), V({
471
+ onRadioChange: Le,
472
+ onCurrentRowChange: Ve
473
+ }), L({
469
474
  empty: c(() => [
470
475
  K(t(ie), {
471
476
  image: t(ie).PRESENTED_IMAGE_SIMPLE
@@ -479,7 +484,7 @@ const eo = /* @__PURE__ */ Xe({
479
484
  ], 2)
480
485
  ]),
481
486
  default: c(() => [
482
- o.expandable && i.value.length ? (s(), d(t(ne), R({ key: 0 }, t(mt)(e.expandable), { fixed: Ne.value }), V({
487
+ o.expandable && i.value.length ? (s(), d(t(ne), R({ key: 0 }, t(mt)(e.expandable), { fixed: Ne.value }), L({
483
488
  content: c((r) => [
484
489
  (s(), d(B(o.expandable.renderContent(r))))
485
490
  ]),
@@ -497,7 +502,7 @@ const eo = /* @__PURE__ */ Xe({
497
502
  ]),
498
503
  key: "0"
499
504
  } : void 0
500
- ]), 1040, ["fixed"])) : v("", !0),
505
+ ]), 1040, ["fixed"])) : y("", !0),
501
506
  C.value && i.value.length ? (s(), d(t(ne), R(
502
507
  { key: 1 },
503
508
  t(gt)(t(h), i.value, o.size),
@@ -505,14 +510,14 @@ const eo = /* @__PURE__ */ Xe({
505
510
  resizable: !1,
506
511
  field: t(wt)
507
512
  }
508
- ), null, 16, ["field"])) : v("", !0),
509
- (s(!0), I(ae, null, L(t(ve), (r) => (s(), d(B(r), {
513
+ ), null, 16, ["field"])) : y("", !0),
514
+ (s(!0), I(ae, null, V(t(ye), (r) => (s(), d(B(r), {
510
515
  key: r.props.colId
511
516
  }))), 128))
512
517
  ]),
513
518
  _: 2
514
519
  }, [
515
- L(t(at)(T, ["searchFormExtra"]), (r, f) => ({
520
+ V(t(at)(T, ["searchFormExtra"]), (r, f) => ({
516
521
  name: f,
517
522
  fn: c((te) => [
518
523
  O(e.$slots, f, Ze(et(te || {})))
@@ -523,23 +528,23 @@ const eo = /* @__PURE__ */ Xe({
523
528
  w("div", {
524
529
  class: m(t(u)("pagination-wrapper"))
525
530
  }, [
526
- e.sticky ? (s(), d(t(It), {
531
+ e.sticky ? (s(), d(t(Bt), {
527
532
  key: 0,
528
533
  direction: "horizontal",
529
534
  "scroll-container": Re.value,
530
535
  "extra-size": -4.2,
531
536
  "bar-color": "var(--ap-scrollbar-thumb-color-base)",
532
537
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
533
- }, null, 8, ["scroll-container"])) : v("", !0),
538
+ }, null, 8, ["scroll-container"])) : y("", !0),
534
539
  e.pagination !== !1 ? (s(), d(t(ct), R({
535
540
  key: 1,
536
541
  class: t(u)("pagination")
537
- }, t(G).pagination, { onChange: t(Te) }), null, 16, ["class", "onChange"])) : v("", !0)
542
+ }, t(H).pagination, { onChange: t(Te) }), null, 16, ["class", "onChange"])) : y("", !0)
538
543
  ], 2)
539
544
  ], 6)
540
545
  ], 6));
541
546
  }
542
547
  });
543
548
  export {
544
- eo as default
549
+ ao as default
545
550
  };
@@ -30,7 +30,7 @@ declare const __VLS_component: DefineComponent<ApProCardStatisticProps, {}, {},
30
30
  }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
31
31
  [key: string]: any;
32
32
  }> | null;
33
- status: "error" | "default" | "success" | "warning" | "processing";
33
+ status: "error" | "default" | "warning" | "success" | "processing";
34
34
  prefix: string | number | boolean | void | VNode<RendererNode, RendererElement, {
35
35
  [key: string]: any;
36
36
  }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {