@aplus-frontend/ui 7.13.0 → 7.13.2

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 (55) hide show
  1. package/es/src/ag-grid/components/empty/index.vue.d.ts +4 -1
  2. package/es/src/ag-grid/components/empty/index.vue2.mjs +20 -10
  3. package/es/src/ag-grid/editable/form-item.vue.mjs +9 -8
  4. package/es/src/ag-grid/editable/index.vue.mjs +1 -0
  5. package/es/src/ag-grid/index.vue.mjs +47 -45
  6. package/es/src/ag-grid/interface.d.ts +4 -0
  7. package/es/src/ag-grid/style/index.mjs +5 -5
  8. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +140 -130
  9. package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -39
  10. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
  11. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +296 -161
  12. package/es/src/business/ap-export-group/index.d.ts +4 -1
  13. package/es/src/business/ap-export-group/interface.d.ts +31 -0
  14. package/es/src/business/ap-export-group/style/index.d.ts +5 -0
  15. package/es/src/business/ap-export-group/style/index.mjs +17 -0
  16. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +21 -21
  17. package/es/src/business/ap-view/style/index.mjs +3 -2
  18. package/es/src/config-provider/config-provider-props.d.ts +7 -6
  19. package/es/src/config-provider/config-provider-props.mjs +4 -4
  20. package/es/src/config-provider/config-provider.d.ts +35 -11
  21. package/es/src/config-provider/config-provider.mjs +24 -24
  22. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -6
  23. package/es/src/config-provider/index.d.ts +65 -17
  24. package/es/src/locale/lang/en.mjs +5 -2
  25. package/es/src/locale/lang/zh-cn.mjs +4 -1
  26. package/es/src/version.d.ts +1 -1
  27. package/es/src/version.mjs +1 -1
  28. package/lib/src/ag-grid/components/empty/index.vue.d.ts +4 -1
  29. package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
  30. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  31. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  32. package/lib/src/ag-grid/index.vue.js +1 -1
  33. package/lib/src/ag-grid/interface.d.ts +4 -0
  34. package/lib/src/ag-grid/style/index.js +1 -1
  35. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  36. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  37. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
  38. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  39. package/lib/src/business/ap-export-group/index.d.ts +4 -1
  40. package/lib/src/business/ap-export-group/interface.d.ts +31 -0
  41. package/lib/src/business/ap-export-group/style/index.d.ts +5 -0
  42. package/lib/src/business/ap-export-group/style/index.js +1 -0
  43. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  44. package/lib/src/business/ap-view/style/index.js +1 -1
  45. package/lib/src/config-provider/config-provider-props.d.ts +7 -6
  46. package/lib/src/config-provider/config-provider-props.js +1 -1
  47. package/lib/src/config-provider/config-provider.d.ts +35 -11
  48. package/lib/src/config-provider/config-provider.js +1 -1
  49. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -6
  50. package/lib/src/config-provider/index.d.ts +65 -17
  51. package/lib/src/locale/lang/en.js +1 -1
  52. package/lib/src/locale/lang/zh-cn.js +1 -1
  53. package/lib/src/version.d.ts +1 -1
  54. package/lib/src/version.js +1 -1
  55. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- import { defineComponent as re, ref as v, computed as pe, toRef as ue, useSlots as ce, createVNode as l, cloneVNode as me, unref as e, watch as O, createElementBlock as U, openBlock as S, Fragment as de, createBlock as w, createCommentVNode as E, resolveDynamicComponent as A, withCtx as o, withDirectives as fe, createElementVNode as c, normalizeClass as p, toDisplayString as g, createTextVNode as C, isRef as ve, vShow as ge } from "vue";
2
- import { SettingOutlined as ye, SaveOutlined as Se } from "@ant-design/icons-vue";
3
- import { Button as P, Modal as Te, Divider as B, RadioGroup as be, RadioButton as j, Flex as ke, Space as F, Popover as Ce } from "@aplus-frontend/antdv";
1
+ import { defineComponent as pe, ref as v, computed as ce, toRef as me, useSlots as de, createVNode as l, cloneVNode as fe, unref as e, watch as E, createElementBlock as P, openBlock as S, Fragment as ve, createBlock as x, createCommentVNode as j, resolveDynamicComponent as w, withCtx as o, withDirectives as ge, createElementVNode as c, normalizeClass as u, toDisplayString as g, createTextVNode as h, isRef as ye, vShow as Se } from "vue";
2
+ import { SettingOutlined as Te, SaveOutlined as be } from "@ant-design/icons-vue";
3
+ import { Button as F, Modal as Ce, Divider as A, RadioGroup as he, RadioButton as M, Flex as ke, Space as q, Popover as _e } from "@aplus-frontend/antdv";
4
4
  import "../../../../ap-button/index.mjs";
5
- import { randomStr as he } from "../../../../utils/index.mjs";
5
+ import { randomStr as ze } from "../../../../utils/index.mjs";
6
6
  import "../../../../config-provider/index.mjs";
7
- import { getSingleVNode as _e } from "../../../../utils/slot.mjs";
8
- import { useInjectApTable as ze } from "../../../context.mjs";
9
- import { useTableColumnState as xe } from "../../../hooks/use-table-column-state.mjs";
10
- import { useTableTemplateStorage as we } from "../../../hooks/use-table-template-storage.mjs";
11
- import Ae from "../../../style/setting.mjs";
12
- import { useProvideApColumnSetting as Be } from "../context.mjs";
7
+ import { getSingleVNode as xe } from "../../../../utils/slot.mjs";
8
+ import { useInjectApTable as we } from "../../../context.mjs";
9
+ import { useTableColumnState as Ae } from "../../../hooks/use-table-column-state.mjs";
10
+ import { useTableTemplateStorage as Be } from "../../../hooks/use-table-template-storage.mjs";
11
+ import Ne from "../../../style/setting.mjs";
12
+ import { useProvideApColumnSetting as Ke } from "../context.mjs";
13
13
  import "../sorter/index.vue.mjs";
14
14
  import "../template/edit-form.vue.mjs";
15
15
  import "../template/index.vue.mjs";
16
16
  import "../tree-select/index.vue.mjs";
17
- import Ne, { customCloneColumnStates as N, isEqualColumnStateIgnoreLabel as Ie } from "../utils.mjs";
18
- import { useLocale as $e } from "../../../../config-provider/hooks/use-locale.mjs";
19
- import { useNamespace as M } from "../../../../config-provider/hooks/use-namespace.mjs";
20
- import Le from "../template/index.vue2.mjs";
21
- import Re from "../tree-select/index.vue2.mjs";
22
- import Ve from "../sorter/index.vue2.mjs";
23
- import De from "../../../../ap-button/ap-button.vue.mjs";
24
- import Ke from "../template/edit-form.vue2.mjs";
25
- const Oe = {
17
+ import $e, { customCloneColumnStates as B, isEqualColumnStateIgnoreLabel as Ie } from "../utils.mjs";
18
+ import { useLocale as Le } from "../../../../config-provider/hooks/use-locale.mjs";
19
+ import { useNamespace as G } from "../../../../config-provider/hooks/use-namespace.mjs";
20
+ import Re from "../template/index.vue2.mjs";
21
+ import Ve from "../tree-select/index.vue2.mjs";
22
+ import De from "../sorter/index.vue2.mjs";
23
+ import Oe from "../../../../ap-button/ap-button.vue.mjs";
24
+ import Ue from "../template/edit-form.vue2.mjs";
25
+ const Ee = {
26
26
  style: {
27
27
  "padding-inline": "8px"
28
28
  }
29
- }, pt = /* @__PURE__ */ re({
29
+ }, ct = /* @__PURE__ */ pe({
30
30
  name: "ApTableSetting",
31
31
  __name: "index",
32
32
  props: {
@@ -36,229 +36,239 @@ const Oe = {
36
36
  })
37
37
  }
38
38
  },
39
- setup(q) {
40
- const T = q, {
41
- columnsBackup: G,
42
- updateSize: H,
43
- updateColumns: J
44
- } = ze(), m = v(), h = pe(() => T.config.persistenceKey), _ = `${h.value}__active_key`, b = v(!1), {
45
- basicTemplate: Q,
39
+ setup(H) {
40
+ const T = H, {
41
+ columnsBackup: J,
42
+ updateSize: Q,
43
+ updateColumns: W
44
+ } = we(), m = v(), k = ce(() => T.config.persistenceKey), b = v(!1), {
45
+ basicTemplate: X,
46
46
  customizeTemplateList: d,
47
- addTemplate: W,
48
- deleteTemplate: I,
49
- updateTemplate: X
50
- } = we(T.config, h), {
51
- columnState: u,
52
- setColumnState: $,
53
- isAllSelected: Y,
54
- toggleSelectAll: Z
55
- } = xe([]), i = v(localStorage.getItem(_) ?? d.value?.[0].key);
56
- Be({
47
+ addTemplate: Y,
48
+ deleteTemplate: N,
49
+ updateTemplate: Z
50
+ } = Be(T.config, k), {
51
+ columnState: p,
52
+ setColumnState: K,
53
+ isAllSelected: ee,
54
+ toggleSelectAll: te
55
+ } = Ae([]), $ = `${k.value}__active_key`;
56
+ function I(a) {
57
+ localStorage.setItem($, a);
58
+ }
59
+ function L() {
60
+ return localStorage.getItem($);
61
+ }
62
+ const i = v(L() ?? d.value?.[0].key);
63
+ Ke({
57
64
  activeKey: i,
58
- cacheConfig: ue(T, "config"),
59
- deleteTemplate: ie
65
+ cacheConfig: me(T, "config"),
66
+ deleteTemplate: re
60
67
  });
61
68
  const {
62
- t: s
63
- } = $e(), {
69
+ t: r
70
+ } = Le(), {
64
71
  b: f,
65
- be: k
66
- } = M("ap-column-setting"), {
67
- b: ee
68
- } = M("ap-table"), te = Ae("ap-column-setting"), y = v(!1), L = v(!1), ae = ce(), R = _e(ae.trigger) || l(P, {
69
- icon: l(ye, null, null),
70
- class: ee("setting-trigger-button")
71
- }, null), V = R ? me(R, {
72
+ be: C
73
+ } = G("ap-column-setting"), {
74
+ b: ae
75
+ } = G("ap-table"), le = Ne("ap-column-setting"), y = v(!1), R = v(!1), ne = de(), V = xe(ne.trigger) || l(F, {
76
+ icon: l(Te, null, null),
77
+ class: ae("setting-trigger-button")
78
+ }, null), D = V ? fe(V, {
72
79
  onClick: () => {
73
80
  y.value = !0;
74
81
  }
75
82
  }) : null;
76
- function le() {
77
- $(N(e(Q).columnState));
83
+ function oe() {
84
+ K(B(e(X).columnState));
78
85
  }
79
- function D(a, t) {
80
- J?.(Ne(e(G), a)), H?.(t);
86
+ function O(a, t) {
87
+ W?.($e(e(J), a)), Q?.(t);
81
88
  }
82
- function ne() {
83
- D(e(u), e(m)), y.value = !1;
84
- const a = N(u.value), t = X(i.value, {
89
+ function ie() {
90
+ O(e(p), e(m)), y.value = !1;
91
+ const a = B(p.value), t = Z(i.value, {
85
92
  columnState: a,
86
93
  size: m.value
87
94
  });
88
- localStorage.setItem(_, i.value), T.config?.onChange?.(a, t);
95
+ I(i.value), T.config?.onChange?.(a, t);
89
96
  }
90
- function oe(a) {
91
- const t = he();
92
- W({
97
+ function se(a) {
98
+ const t = ze();
99
+ Y({
93
100
  key: t,
94
101
  label: a,
95
- columnState: u.value,
102
+ columnState: p.value,
96
103
  size: m.value
97
104
  }), b.value = !1, i.value = t;
98
105
  }
99
- function K(a) {
106
+ function U(a) {
100
107
  const t = [...d.value].find((n) => n?.key === a);
101
- t && ($(N(t.columnState)), m.value = t.size);
108
+ t && (K(B(t.columnState)), m.value = t.size);
102
109
  }
103
- function ie(a) {
110
+ function re(a) {
104
111
  if (a !== i.value) {
105
- I(a);
112
+ N(a);
106
113
  return;
107
114
  }
108
- const t = d.value, n = t.findIndex((x) => x.key === a), r = t[n + 1]?.key ?? t[n - 1]?.key;
109
- I(a), i.value = r;
115
+ const t = d.value, n = t.findIndex((z) => z.key === a), s = t[n + 1]?.key ?? t[n - 1]?.key;
116
+ N(a), i.value = s, I(s);
110
117
  }
111
- function se(a) {
112
- if (L.value = a, !a) {
113
- const t = localStorage.getItem(_);
118
+ function ue(a) {
119
+ if (R.value = a, !a) {
120
+ const t = L();
114
121
  t && t !== i.value && (i.value = t);
115
122
  }
116
123
  }
117
- O(() => i.value, (a, t) => {
124
+ E(() => i.value, (a, t) => {
118
125
  if (!t && a) {
119
- const n = [...d.value].find((r) => r?.key === a);
120
- D(n.columnState, n.size);
126
+ const n = [...d.value].find((s) => s?.key === a);
127
+ if (!n)
128
+ return;
129
+ O(n.columnState, n.size);
121
130
  }
122
- K(a);
131
+ U(a);
123
132
  }, {
124
133
  immediate: !0
125
134
  });
126
- const z = v(!1);
127
- return O([m, u, y], ([a, t, n]) => {
135
+ const _ = v(!1);
136
+ return E([m, p, y], ([a, t, n]) => {
128
137
  if (!n)
129
138
  return;
130
- const r = d.value.find((x) => x.key === i.value);
131
- r && (r.size !== a || !Ie(t, r.columnState)) ? z.value = !0 : z.value = !1;
139
+ const s = d.value.find((z) => z.key === i.value);
140
+ s && (s.size !== a || !Ie(t, s.columnState)) ? _.value = !0 : _.value = !1;
132
141
  }, {
133
142
  deep: !0
134
- }), (a, t) => (S(), U(de, null, [e(V) ? (S(), w(A(e(V)), {
143
+ }), (a, t) => (S(), P(ve, null, [e(D) ? (S(), x(w(e(D)), {
135
144
  key: 0
136
- })) : E("", !0), l(e(Te), {
145
+ })) : j("", !0), l(e(Ce), {
137
146
  open: y.value,
138
147
  "onUpdate:open": t[4] || (t[4] = (n) => y.value = n),
139
- title: e(s)("ap.apTable.setting.title"),
148
+ title: e(r)("ap.apTable.setting.title"),
140
149
  width: 1e3,
141
150
  centered: !0,
142
151
  "body-style": {
143
152
  padding: "0px !important",
144
153
  height: "516px"
145
154
  },
146
- "after-open-change": se,
147
- "wrap-class-name": `${e(f)()} ${e(te)}`,
148
- "ok-text": e(s)("ap.apTable.setting.saveAndApply"),
149
- onOk: ne
155
+ "after-open-change": ue,
156
+ "wrap-class-name": `${e(f)()} ${e(le)}`,
157
+ "ok-text": e(r)("ap.apTable.setting.saveAndApply"),
158
+ onOk: ie
150
159
  }, {
151
160
  footer: o(({
152
161
  extra: n
153
162
  }) => [l(e(ke), {
154
163
  justify: "space-between"
155
164
  }, {
156
- default: o(() => [l(e(F), {
165
+ default: o(() => [l(e(q), {
157
166
  size: 12
158
167
  }, {
159
- default: o(() => [l(e(Ce), {
168
+ default: o(() => [l(e(_e), {
160
169
  open: b.value,
161
- "onUpdate:open": t[3] || (t[3] = (r) => b.value = r),
170
+ "onUpdate:open": t[3] || (t[3] = (s) => b.value = s),
162
171
  trigger: "click",
163
172
  arrow: !1,
164
173
  placement: "topLeft",
165
174
  "destroy-tooltip-on-hide": ""
166
175
  }, {
167
- content: o(() => [l(Ke, {
168
- onConfirm: oe,
176
+ content: o(() => [l(Ue, {
177
+ onConfirm: se,
169
178
  onCancel: t[2] || (t[2] = () => b.value = !1)
170
179
  })]),
171
- default: o(() => [l(e(De), {
172
- type: "borderLink"
180
+ default: o(() => [l(e(Oe), {
181
+ type: "borderLink",
182
+ disabled: !a.config.persistenceKey
173
183
  }, {
174
- icon: o(() => [l(e(Se))]),
175
- default: o(() => [C(g(e(s)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
184
+ icon: o(() => [l(e(be))]),
185
+ default: o(() => [h(g(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
176
186
  _: 1
177
- })]),
187
+ }, 8, ["disabled"])]),
178
188
  _: 1
179
- }, 8, ["open"]), z.value ? (S(), U("span", {
189
+ }, 8, ["open"]), _.value ? (S(), P("span", {
180
190
  key: 0,
181
- class: p(e(f)("modify-tip"))
182
- }, g(e(s)("ap.apTable.setting.modifyNotification")), 3)) : E("", !0)]),
191
+ class: u(e(f)("modify-tip"))
192
+ }, g(e(r)("ap.apTable.setting.modifyNotification")), 3)) : j("", !0)]),
183
193
  _: 1
184
- }), l(e(F), {
194
+ }), l(e(q), {
185
195
  size: 10
186
196
  }, {
187
- default: o(() => [(S(), w(A(n.cancelBtn))), (S(), w(A(n.okBtn)))]),
197
+ default: o(() => [(S(), x(w(n.cancelBtn))), (S(), x(w(n.okBtn)))]),
188
198
  _: 2
189
199
  }, 1024)]),
190
200
  _: 2
191
201
  }, 1024)]),
192
- default: o(() => [fe(c("div", {
193
- class: p(e(f)("wrapper"))
202
+ default: o(() => [ge(c("div", {
203
+ class: u(e(f)("wrapper"))
194
204
  }, [c("div", {
195
- class: p(e(f)("left"))
196
- }, [l(Le, {
205
+ class: u(e(f)("left"))
206
+ }, [l(Re, {
197
207
  "customize-template-list": e(d),
198
- "persistence-key": h.value,
199
- onActiveChange: K
200
- }, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e(B), {
208
+ "persistence-key": k.value,
209
+ onActiveChange: U
210
+ }, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e(A), {
201
211
  type: "vertical",
202
212
  style: {
203
213
  height: "100%",
204
214
  margin: "0px"
205
215
  }
206
216
  }), c("div", {
207
- class: p(e(f)("center"))
217
+ class: u(e(f)("center"))
208
218
  }, [c("div", {
209
- class: p(e(k)("center", "header"))
219
+ class: u(e(C)("center", "header"))
210
220
  }, [c("div", {
211
- class: p(e(k)("center", "tip-wrapper"))
221
+ class: u(e(C)("center", "tip-wrapper"))
212
222
  }, [c("span", {
213
- class: p(e(k)("center", "header-tips"))
214
- }, g(e(s)("ap.apTable.setting.selectAllTip")), 3), l(e(P), {
223
+ class: u(e(C)("center", "header-tips"))
224
+ }, g(e(r)("ap.apTable.setting.selectAllTip")), 3), l(e(F), {
215
225
  type: "link",
216
226
  size: "small",
217
- onClick: e(Z)
227
+ onClick: e(te)
218
228
  }, {
219
- default: o(() => [C(g(e(Y) ? e(s)("ap.apTable.setting.unSelectAll") : e(s)("ap.apTable.setting.selectAll")), 1)]),
229
+ default: o(() => [h(g(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
220
230
  _: 1
221
- }, 8, ["onClick"])], 2), l(e(be), {
231
+ }, 8, ["onClick"])], 2), l(e(he), {
222
232
  value: m.value,
223
233
  "onUpdate:value": t[0] || (t[0] = (n) => m.value = n)
224
234
  }, {
225
- default: o(() => [l(e(j), {
235
+ default: o(() => [l(e(M), {
226
236
  value: "small"
227
237
  }, {
228
- default: o(() => [C(g(e(s)("ap.apTable.setting.sizeSmall")), 1)]),
238
+ default: o(() => [h(g(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
229
239
  _: 1
230
- }), l(e(j), {
240
+ }), l(e(M), {
231
241
  value: "middle"
232
242
  }, {
233
- default: o(() => [C(g(e(s)("ap.apTable.setting.sizeNormal")), 1)]),
243
+ default: o(() => [h(g(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
234
244
  _: 1
235
245
  })]),
236
246
  _: 1
237
- }, 8, ["value"])], 2), c("div", Oe, [l(e(B), {
247
+ }, 8, ["value"])], 2), c("div", Ee, [l(e(A), {
238
248
  dashed: "",
239
249
  style: {
240
250
  margin: "0px"
241
251
  }
242
- })]), l(Re, {
243
- class: p(e(k)("center", "content")),
244
- value: e(u)
245
- }, null, 8, ["class", "value"])], 2), l(e(B), {
252
+ })]), l(Ve, {
253
+ class: u(e(C)("center", "content")),
254
+ value: e(p)
255
+ }, null, 8, ["class", "value"])], 2), l(e(A), {
246
256
  type: "vertical",
247
257
  style: {
248
258
  height: "100%",
249
259
  margin: "0px"
250
260
  }
251
261
  }), c("div", {
252
- class: p(e(f)("right"))
253
- }, [l(Ve, {
254
- value: e(u),
255
- "onUpdate:value": t[1] || (t[1] = (n) => ve(u) ? u.value = n : null),
256
- onReset: le
257
- }, null, 8, ["value"])], 2)], 2), [[ge, L.value]])]),
262
+ class: u(e(f)("right"))
263
+ }, [l(De, {
264
+ value: e(p),
265
+ "onUpdate:value": t[1] || (t[1] = (n) => ye(p) ? p.value = n : null),
266
+ onReset: oe
267
+ }, null, 8, ["value"])], 2)], 2), [[Se, R.value]])]),
258
268
  _: 1
259
269
  }, 8, ["open", "title", "wrap-class-name", "ok-text"])], 64));
260
270
  }
261
271
  });
262
272
  export {
263
- pt as default
273
+ ct as default
264
274
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as k, ref as b, createElementBlock as m, openBlock as u, normalizeClass as n, unref as t, createElementVNode as c, createVNode as a, toDisplayString as y, withCtx as s, createCommentVNode as g, withModifiers as f } from "vue";
2
- import { EditOutlined as w, DeleteOutlined as B } from "@ant-design/icons-vue";
3
- import { Flex as N, Popover as A } from "@aplus-frontend/antdv";
1
+ import { defineComponent as b, ref as g, createElementBlock as u, openBlock as s, normalizeClass as n, unref as e, createElementVNode as c, createBlock as w, createCommentVNode as f, toDisplayString as B, withCtx as r, createVNode as i, withModifiers as v } from "vue";
2
+ import { EditOutlined as N, DeleteOutlined as A } from "@ant-design/icons-vue";
3
+ import { Flex as D, Popover as E } from "@aplus-frontend/antdv";
4
4
  import "../../../../config-provider/index.mjs";
5
- import { useInjectApColumnSetting as D } from "../context.mjs";
5
+ import { useInjectApColumnSetting as V } from "../context.mjs";
6
6
  import "./edit-form.vue.mjs";
7
- import { useNamespace as E } from "../../../../config-provider/hooks/use-namespace.mjs";
8
- import V from "./edit-form.vue2.mjs";
9
- const I = /* @__PURE__ */ k({
7
+ import { useNamespace as F } from "../../../../config-provider/hooks/use-namespace.mjs";
8
+ import O from "./edit-form.vue2.mjs";
9
+ const M = /* @__PURE__ */ b({
10
10
  __name: "item",
11
11
  props: {
12
12
  value: {},
@@ -14,64 +14,65 @@ const I = /* @__PURE__ */ k({
14
14
  onClick: { type: Function },
15
15
  shouldRemove: { type: Boolean }
16
16
  },
17
- setup(v) {
18
- const r = v, { b: l } = E("ap-column-setting-template-item"), i = b(!1), { deleteTemplate: d } = D();
19
- function C(e) {
20
- if (!e || e === r.value.label)
17
+ setup(d) {
18
+ const p = d, { b: l } = F("ap-column-setting-template-item"), a = g(!1), { deleteTemplate: C, cacheConfig: k } = V();
19
+ function y(t) {
20
+ if (!t || t === p.value.label)
21
21
  return;
22
- const o = r.value;
23
- o.label = e, i.value = !1;
22
+ const o = p.value;
23
+ o.label = t, a.value = !1;
24
24
  }
25
- return (e, o) => (u(), m("div", {
26
- class: n([t(l)(), { [t(l)("active")]: e.isActive }]),
25
+ return (t, o) => (s(), u("div", {
26
+ class: n([e(l)(), { [e(l)("active")]: t.isActive }]),
27
27
  onClick: o[3] || (o[3] = //@ts-ignore
28
- (...p) => e.onClick && e.onClick(...p))
28
+ (...m) => t.onClick && t.onClick(...m))
29
29
  }, [
30
30
  c("span", {
31
- class: n(t(l)("label"))
32
- }, y(e.value.label), 3),
33
- a(t(N), {
31
+ class: n(e(l)("label"))
32
+ }, B(t.value.label), 3),
33
+ e(k).persistenceKey ? (s(), w(e(D), {
34
+ key: 0,
34
35
  gap: 8,
35
- class: n(t(l)("action-wrapper"))
36
+ class: n(e(l)("action-wrapper"))
36
37
  }, {
37
- default: s(() => [
38
- a(t(A), {
39
- open: i.value,
38
+ default: r(() => [
39
+ i(e(E), {
40
+ open: a.value,
40
41
  trigger: "click",
41
42
  arrow: !1,
42
43
  placement: "bottom",
43
44
  "destroy-tooltip-on-hide": ""
44
45
  }, {
45
- content: s(() => [
46
- a(V, {
47
- "initial-values": { label: e.value.label },
48
- onConfirm: C,
49
- onCancel: o[1] || (o[1] = () => i.value = !1)
46
+ content: r(() => [
47
+ i(O, {
48
+ "initial-values": { label: t.value.label },
49
+ onConfirm: y,
50
+ onCancel: o[1] || (o[1] = () => a.value = !1)
50
51
  }, null, 8, ["initial-values"])
51
52
  ]),
52
- default: s(() => [
53
+ default: r(() => [
53
54
  c("span", {
54
- class: n(t(l)("icon-wrapper")),
55
- onClick: o[0] || (o[0] = f((p) => i.value = !0, ["stop"]))
55
+ class: n(e(l)("icon-wrapper")),
56
+ onClick: o[0] || (o[0] = v((m) => a.value = !0, ["stop"]))
56
57
  }, [
57
- a(t(w))
58
+ i(e(N))
58
59
  ], 2)
59
60
  ]),
60
61
  _: 1
61
62
  }, 8, ["open"]),
62
- e.shouldRemove ? (u(), m("span", {
63
+ t.shouldRemove ? (s(), u("span", {
63
64
  key: 0,
64
- class: n(t(l)("icon-wrapper")),
65
- onClick: o[2] || (o[2] = f(() => t(d)(e.value.key), ["stop"]))
65
+ class: n(e(l)("icon-wrapper")),
66
+ onClick: o[2] || (o[2] = v(() => e(C)(t.value.key), ["stop"]))
66
67
  }, [
67
- a(t(B))
68
- ], 2)) : g("", !0)
68
+ i(e(A))
69
+ ], 2)) : f("", !0)
69
70
  ]),
70
71
  _: 1
71
- }, 8, ["class"])
72
+ }, 8, ["class"])) : f("", !0)
72
73
  ], 2));
73
74
  }
74
75
  });
75
76
  export {
76
- I as default
77
+ M as default
77
78
  };
@@ -1,7 +1,8 @@
1
- import { ApExportGroupProps } from './interface';
1
+ import { ApExportGroupDateValidate, ApExportGroupProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApExportGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApExportGroupProps> & Readonly<{}>, {
4
4
  type: "button" | "dropdown" | "group";
5
+ dateValidate: ApExportGroupDateValidate;
5
6
  exportField: boolean | {
6
7
  key?: string;
7
8
  convertField?: {