@aplus-frontend/ui 0.1.28 → 0.1.29

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 (39) hide show
  1. package/es/src/ap-field/date-range/index.vue.mjs +154 -109
  2. package/es/src/ap-field/interface.d.ts +4 -0
  3. package/es/src/ap-field/select/index.vue.mjs +4 -2
  4. package/es/src/ap-form/style/ap-form-item.css +2 -0
  5. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +72 -97
  6. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +37 -33
  7. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +91 -87
  8. package/es/src/ap-table/components/setting/utils.d.ts +7 -1
  9. package/es/src/ap-table/components/setting/utils.mjs +37 -22
  10. package/es/src/ap-table/constants.d.ts +12 -0
  11. package/es/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  12. package/es/src/ap-table/hooks/use-table-column-state.mjs +101 -33
  13. package/es/src/ap-table/interface.d.ts +8 -1
  14. package/es/src/editable-table/form-item.vue.d.ts +1 -0
  15. package/es/src/editable-table/form-item.vue.mjs +63 -59
  16. package/es/src/editable-table/index.vue.d.ts +1 -0
  17. package/es/src/editable-table/index.vue.mjs +77 -72
  18. package/es/src/editable-table/interface.d.ts +6 -0
  19. package/es/src/theme/ap-form/ap-form-item.css +2 -0
  20. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  21. package/lib/src/ap-field/interface.d.ts +4 -0
  22. package/lib/src/ap-field/select/index.vue.js +1 -1
  23. package/lib/src/ap-form/style/ap-form-item.css +2 -0
  24. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  25. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  26. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  27. package/lib/src/ap-table/components/setting/utils.d.ts +7 -1
  28. package/lib/src/ap-table/components/setting/utils.js +1 -1
  29. package/lib/src/ap-table/constants.d.ts +12 -0
  30. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  31. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  32. package/lib/src/ap-table/interface.d.ts +8 -1
  33. package/lib/src/editable-table/form-item.vue.d.ts +1 -0
  34. package/lib/src/editable-table/form-item.vue.js +1 -1
  35. package/lib/src/editable-table/index.vue.d.ts +1 -0
  36. package/lib/src/editable-table/index.vue.js +1 -1
  37. package/lib/src/editable-table/interface.d.ts +6 -0
  38. package/lib/src/theme/ap-form/ap-form-item.css +2 -0
  39. package/package.json +1 -1
@@ -1,82 +1,86 @@
1
- import { defineComponent as N, ref as E, computed as p, unref as r, watch as P, openBlock as s, createElementBlock as f, createElementVNode as v, normalizeClass as U, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as V, renderList as D, mergeProps as L } from "vue";
2
- import { Checkbox as w, Row as j, Col as z } from "ant-design-vue";
1
+ import { defineComponent as E, ref as P, computed as p, unref as r, watch as U, openBlock as a, createElementBlock as f, createElementVNode as v, normalizeClass as x, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as D, renderList as L, mergeProps as j } from "vue";
2
+ import { Checkbox as w, Row as z, Col as F } from "ant-design-vue";
3
3
  import "../../style/setting/select-group.css";
4
4
  import "../../../../config-provider/index.mjs";
5
- import { useInjectApTable as F } from "../../../context.mjs";
5
+ import { useInjectApTable as I } from "../../../context.mjs";
6
6
  import { cloneLabelNode as b } from "../utils.mjs";
7
- import { useNamespace as I } from "../../../../config-provider/hooks/use-namespace.mjs";
8
- const M = /* @__PURE__ */ N({
7
+ import { useNamespace as R } from "../../../../config-provider/hooks/use-namespace.mjs";
8
+ const M = /* @__PURE__ */ E({
9
9
  __name: "index",
10
10
  props: {
11
11
  value: {}
12
12
  },
13
13
  setup(y) {
14
- const t = y, { b: C } = I("select-group"), c = E(!1), { columnsBackup: _ } = F(), m = p(() => {
14
+ const t = y, { b: C } = R("select-group"), c = P(!1), { columnsBackup: _ } = I(), m = p(() => {
15
15
  var e;
16
16
  return (e = r(_)) == null ? void 0 : e.find(
17
- (o) => {
17
+ (n) => {
18
18
  var l;
19
- return o.key === ((l = t.value) == null ? void 0 : l.key);
19
+ return n.key === ((l = t.value) == null ? void 0 : l.key);
20
20
  }
21
21
  );
22
22
  });
23
- function S(n) {
24
- const e = t.value.children.find((o) => o.key === n.key);
23
+ function S(o) {
24
+ const e = t.value.children.find((n) => n.key === o.key);
25
25
  return {
26
26
  checked: e == null ? void 0 : e.show,
27
27
  disabled: t.value.disabled || (e == null ? void 0 : e.disabled)
28
28
  };
29
29
  }
30
- function g(n) {
30
+ function g(o) {
31
31
  const e = t.value;
32
- e.children.forEach((o) => o.show = n), e.show = n, c.value = !1;
32
+ e.children.forEach((n) => n.show = o), e.show = o, c.value = !1;
33
33
  }
34
- function x(n, e) {
35
- const o = t.value, l = o.children.find((a) => a.key === n);
34
+ function A(o, e) {
35
+ const n = t.value, l = n.children.find((s) => s.key === o);
36
36
  if (!l)
37
37
  return;
38
38
  l.show = e;
39
- const d = o.children.every((a) => a.show), B = o.children.some((a) => a.show);
40
- o.show = d, c.value = B && !d;
39
+ const d = n.children.every((s) => s.show), N = n.children.some((s) => s.show);
40
+ n.show = d, c.value = N && !d;
41
41
  }
42
- const A = p(() => t.value.disabled || t.value.children.every((n) => n.disabled));
43
- return P(
42
+ const B = p(() => t.value.disabled || t.value.children.every((o) => o.disabled));
43
+ return U(
44
44
  () => t.value,
45
- (n) => {
46
- const e = n.children.every((l) => l.show), o = n.children.some((l) => l.show);
47
- c.value = o && !e;
45
+ (o) => {
46
+ const e = o.children.every((l) => l.show), n = o.children.some((l) => l.show);
47
+ c.value = n && !e, o.show !== e && (o.show = e);
48
+ },
49
+ {
50
+ deep: !0,
51
+ immediate: !0
48
52
  }
49
- ), (n, e) => {
50
- var o;
51
- return s(), f("div", null, [
53
+ ), (o, e) => {
54
+ var n;
55
+ return a(), f("div", null, [
52
56
  v("div", {
53
- class: U(r(C)("header"))
57
+ class: x(r(C)("header"))
54
58
  }, [
55
59
  u(r(w), {
56
60
  indeterminate: c.value,
57
- checked: (o = n.value) == null ? void 0 : o.show,
61
+ checked: (n = o.value) == null ? void 0 : n.show,
58
62
  "onUpdate:checked": g,
59
- disabled: A.value
63
+ disabled: B.value
60
64
  }, {
61
65
  default: i(() => [
62
- (s(), h(k(r(b)(m.value.title))))
66
+ (a(), h(k(r(b)(m.value.title))))
63
67
  ]),
64
68
  _: 1
65
69
  }, 8, ["indeterminate", "checked", "disabled"])
66
70
  ], 2),
67
71
  v("div", null, [
68
- u(r(j), null, {
72
+ u(r(z), null, {
69
73
  default: i(() => [
70
- (s(!0), f(V, null, D(m.value.children, (l) => (s(), h(r(z), {
74
+ (a(!0), f(D, null, L(m.value.children, (l) => (a(), h(r(F), {
71
75
  key: l.key,
72
76
  span: 8
73
77
  }, {
74
78
  default: i(() => [
75
- u(r(w), L({ ref_for: !0 }, S(l), {
76
- "onUpdate:checked": (d) => x(l.key, d)
79
+ u(r(w), j({ ref_for: !0 }, S(l), {
80
+ "onUpdate:checked": (d) => A(l.key, d)
77
81
  }), {
78
82
  default: i(() => [
79
- (s(), h(k(r(b)(l.title))))
83
+ (a(), h(k(r(b)(l.title))))
80
84
  ]),
81
85
  _: 2
82
86
  }, 1040, ["onUpdate:checked"])
@@ -1,14 +1,14 @@
1
- import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
2
- import { Flex as G, Button as H, Divider as J } from "ant-design-vue";
3
- import N from "vuedraggable";
1
+ import { defineComponent as O, ref as x, unref as n, computed as $, watch as q, onMounted as G, openBlock as i, createElementBlock as _, normalizeClass as f, createVNode as N, withCtx as h, createElementVNode as g, toDisplayString as k, createTextVNode as H, createBlock as p, createCommentVNode as s } from "vue";
2
+ import { Flex as J, Button as K, Divider as P } from "ant-design-vue";
3
+ import M from "vuedraggable";
4
4
  import "../sortable/index.vue.mjs";
5
5
  import "../../../../config-provider/index.mjs";
6
6
  import "../../style/setting/sorter.css";
7
- import { useProvideSorterMethods as K } from "./context.mjs";
8
- import { useNamespace as P } from "../../../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as Q } from "../../../../config-provider/hooks/use-locale.mjs";
7
+ import { useProvideSorterMethods as Q } from "./context.mjs";
8
+ import { useNamespace as W } from "../../../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as X } from "../../../../config-provider/hooks/use-locale.mjs";
10
10
  import R from "../sortable/index.vue2.mjs";
11
- const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
11
+ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
12
12
  __name: "index",
13
13
  props: {
14
14
  value: {},
@@ -16,11 +16,11 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
16
16
  },
17
17
  emits: ["update:value"],
18
18
  setup(V, { emit: B }) {
19
- const i = L([]), s = L([]), r = L([]), { b: u } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
20
- K({
19
+ const u = x([]), r = x([]), c = x([]), y = x(!1), { b: d } = W("column-setting-sorter"), { t: v } = X(), C = V, S = B;
20
+ Q({
21
21
  fixedToLeft: I,
22
- fixedToRight: M,
23
- unFixed: U
22
+ fixedToRight: U,
23
+ unFixed: z
24
24
  });
25
25
  function F(e, t) {
26
26
  const o = t[0].findIndex(
@@ -35,8 +35,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
35
35
  t[1].splice(a, 1);
36
36
  }
37
37
  }
38
- function _(e, t) {
39
- const o = [...n(i.value)], a = [...n(r.value)], l = [...n(s.value)], w = {
38
+ function T(e, t) {
39
+ const o = [...n(u.value)], a = [...n(c.value)], l = [...n(r.value)], b = {
40
40
  left: {
41
41
  target: o,
42
42
  search: [l, a]
@@ -50,150 +50,154 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
50
50
  search: [o, a]
51
51
  }
52
52
  }[t];
53
- return t === "right" ? w.target.unshift(e) : w.target.push(e), F(
53
+ return t === "right" ? b.target.unshift(e) : b.target.push(e), F(
54
54
  e,
55
- w.search
55
+ b.search
56
56
  ), [...o, ...l, ...a];
57
57
  }
58
58
  function I(e) {
59
- const t = _(e, "left");
60
- f(t);
61
- }
62
- function M(e) {
63
- const t = _(e, "right");
64
- f(t);
59
+ const t = T(e, "left");
60
+ m(t);
65
61
  }
66
62
  function U(e) {
67
- const t = _(e, "normal");
68
- f(t);
63
+ const t = T(e, "right");
64
+ m(t);
69
65
  }
70
- function C(e) {
66
+ function z(e) {
67
+ const t = T(e, "normal");
68
+ m(t);
69
+ }
70
+ function w(e) {
71
71
  var t;
72
72
  return (t = e.children) != null && t.length ? e.children.some((o) => o.show) : e.show;
73
73
  }
74
- function T(e, t) {
74
+ function L(e, t) {
75
75
  e.value ? e.value.push(t) : e.value = [t];
76
76
  }
77
- const z = O(() => {
77
+ const D = $(() => {
78
78
  let e = 0;
79
79
  function t(o) {
80
80
  var a;
81
81
  for (const l of o)
82
82
  (a = l.children) != null && a.length ? t(l.children) : l.show && (e += 1);
83
83
  }
84
- return t(x.value), e;
84
+ return t(C.value), e;
85
85
  });
86
- function D(e) {
87
- f([...e, ...n(s), ...n(r)]);
88
- }
89
86
  function E(e) {
90
- f([...n(i), ...e, ...n(r)]);
87
+ m([...e, ...n(r), ...n(c)]);
91
88
  }
92
89
  function j(e) {
93
- f([...n(i), ...n(s), ...e]);
90
+ m([...n(u), ...e, ...n(c)]);
91
+ }
92
+ function A(e) {
93
+ m([...n(u), ...n(r), ...e]);
94
+ }
95
+ function m(e) {
96
+ S("update:value", e);
94
97
  }
95
- $(
96
- () => x.value,
98
+ return q(
99
+ () => C.value,
97
100
  (e) => {
98
101
  if (e) {
99
- i.value = [], s.value = [], r.value = [];
102
+ u.value = [], r.value = [], c.value = [];
100
103
  for (const t of e)
101
- t.fixed === "left" ? T(i, t) : t.fixed === "right" ? T(r, t) : T(s, t);
104
+ t.fixed === "left" ? L(u, t) : t.fixed === "right" ? L(c, t) : L(r, t);
102
105
  }
103
106
  },
104
107
  { immediate: !0 }
105
- );
106
- function f(e) {
107
- S("update:value", e);
108
- }
109
- return (e, t) => (c(), y("div", {
110
- class: d(n(u)())
108
+ ), G(() => {
109
+ y.value = !0;
110
+ }), (e, t) => (i(), _("div", {
111
+ class: f(n(d)())
111
112
  }, [
112
- m(n(G), {
113
- class: d(n(u)("header")),
113
+ N(n(J), {
114
+ class: f(n(d)("header")),
114
115
  align: "center",
115
116
  justify: "space-between"
116
117
  }, {
117
- default: v(() => [
118
+ default: h(() => [
118
119
  g("span", {
119
- class: d(n(u)("header-title"))
120
- }, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
121
- m(n(H), {
120
+ class: f(n(d)("header-title"))
121
+ }, k(n(v)("ap.apTable.setting.selectCount", { count: D.value })), 3),
122
+ N(n(K), {
122
123
  type: "link",
123
124
  size: "small",
124
125
  style: { padding: "0" },
125
- onClick: x.onReset
126
+ onClick: C.onReset
126
127
  }, {
127
- default: v(() => [
128
- q(k(n(h)("ap.apTable.setting.reset")), 1)
128
+ default: h(() => [
129
+ H(k(n(v)("ap.apTable.setting.reset")), 1)
129
130
  ]),
130
131
  _: 1
131
132
  }, 8, ["onClick"])
132
133
  ]),
133
134
  _: 1
134
135
  }, 8, ["class"]),
135
- m(n(J), { style: { margin: "0px" } }),
136
+ N(n(P), { style: { margin: "0px" } }),
136
137
  g("div", {
137
- class: d(n(u)("content"))
138
+ class: f(n(d)("content"))
138
139
  }, [
139
- i.value.length ? (c(), y("div", W, [
140
+ u.value.length ? (i(), _("div", Y, [
140
141
  g("span", {
141
- class: d(n(u)("section-title"))
142
- }, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
143
- m(n(N), {
144
- "model-value": i.value,
145
- "onUpdate:modelValue": D,
142
+ class: f(n(d)("section-title"))
143
+ }, k(n(v)("ap.apTable.setting.fixToLeft")), 3),
144
+ y.value ? (i(), p(n(M), {
145
+ key: 0,
146
+ "model-value": u.value,
147
+ "onUpdate:modelValue": E,
146
148
  "item-key": "key"
147
149
  }, {
148
- item: v(({ element: o }) => [
149
- C(o) ? (c(), b(R, {
150
+ item: h(({ element: o }) => [
151
+ w(o) ? (i(), p(R, {
150
152
  key: 0,
151
153
  value: o
152
- }, null, 8, ["value"])) : p("", !0)
154
+ }, null, 8, ["value"])) : s("", !0)
153
155
  ]),
154
156
  _: 1
155
- }, 8, ["model-value"])
156
- ])) : p("", !0),
157
- s.value.length ? (c(), y("div", X, [
157
+ }, 8, ["model-value"])) : s("", !0)
158
+ ])) : s("", !0),
159
+ r.value.length ? (i(), _("div", Z, [
158
160
  g("span", {
159
- class: d(n(u)("section-title"))
160
- }, k(n(h)("ap.apTable.setting.unFixed")), 3),
161
- m(n(N), {
162
- "model-value": s.value,
163
- "onUpdate:modelValue": E,
161
+ class: f(n(d)("section-title"))
162
+ }, k(n(v)("ap.apTable.setting.unFixed")), 3),
163
+ y.value ? (i(), p(n(M), {
164
+ key: 0,
165
+ "model-value": r.value,
166
+ "onUpdate:modelValue": j,
164
167
  "item-key": "key"
165
168
  }, {
166
- item: v(({ element: o }) => [
167
- C(o) ? (c(), b(R, {
169
+ item: h(({ element: o }) => [
170
+ w(o) ? (i(), p(R, {
168
171
  key: 0,
169
172
  value: o
170
- }, null, 8, ["value"])) : p("", !0)
173
+ }, null, 8, ["value"])) : s("", !0)
171
174
  ]),
172
175
  _: 1
173
- }, 8, ["model-value"])
174
- ])) : p("", !0),
175
- r.value.length ? (c(), y("div", Y, [
176
+ }, 8, ["model-value"])) : s("", !0)
177
+ ])) : s("", !0),
178
+ c.value.length ? (i(), _("div", ee, [
176
179
  g("span", {
177
- class: d(n(u)("section-title"))
178
- }, k(n(h)("ap.apTable.setting.fixToRight")), 3),
179
- m(n(N), {
180
- "model-value": r.value,
181
- "onUpdate:modelValue": j,
180
+ class: f(n(d)("section-title"))
181
+ }, k(n(v)("ap.apTable.setting.fixToRight")), 3),
182
+ y.value ? (i(), p(n(M), {
183
+ key: 0,
184
+ "model-value": c.value,
185
+ "onUpdate:modelValue": A,
182
186
  "item-key": "key"
183
187
  }, {
184
- item: v(({ element: o }) => [
185
- C(o) ? (c(), b(R, {
188
+ item: h(({ element: o }) => [
189
+ w(o) ? (i(), p(R, {
186
190
  key: 0,
187
191
  value: o
188
- }, null, 8, ["value"])) : p("", !0)
192
+ }, null, 8, ["value"])) : s("", !0)
189
193
  ]),
190
194
  _: 1
191
- }, 8, ["model-value"])
192
- ])) : p("", !0)
195
+ }, 8, ["model-value"])) : s("", !0)
196
+ ])) : s("", !0)
193
197
  ], 2)
194
198
  ], 2));
195
199
  }
196
200
  });
197
201
  export {
198
- ce as default
202
+ fe as default
199
203
  };
@@ -1,5 +1,5 @@
1
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
- import { ApColumnState } from '../../interface';
2
+ import { ApColumnState, ApTableSettingDefaultValueType } from '../../interface';
3
3
  /**
4
4
  * 根据列状态重新生成表格列配置
5
5
  * @param columns 表格列数组
@@ -15,3 +15,9 @@ export declare function customCloneColumnStates<T extends ApColumnState | ApColu
15
15
  * @returns
16
16
  */
17
17
  export declare function cloneLabelNode(node: any): any;
18
+ /**
19
+ * 生成可用于缓存的列状态对象
20
+ * @param columnStates
21
+ * @returns
22
+ */
23
+ export declare function getColumnStateString(columnStates: ApColumnState[]): ApTableSettingDefaultValueType;
@@ -1,32 +1,32 @@
1
- import { cloneDeepWith as s } from "lodash-unified";
2
- import { isVNode as u, cloneVNode as c } from "vue";
3
- function f(e, i) {
4
- var r;
1
+ import { cloneDeepWith as s, omit as u } from "lodash-unified";
2
+ import { isVNode as c, cloneVNode as f } from "vue";
3
+ function d(t, o) {
4
+ var i;
5
5
  const n = [];
6
- for (const t of i) {
7
- const l = e.find((o) => o.key === t.key);
8
- if ((r = t.children) != null && r.length) {
9
- const o = f(
6
+ for (const e of o) {
7
+ const l = t.find((r) => r.key === e.key);
8
+ if ((i = e.children) != null && i.length) {
9
+ const r = d(
10
10
  l.children,
11
- t.children
11
+ e.children
12
12
  );
13
- o.length && n.push({
13
+ r.length && n.push({
14
14
  ...l,
15
- fixed: t.fixed,
16
- children: o
15
+ fixed: e.fixed,
16
+ children: r
17
17
  });
18
18
  } else {
19
- if (!t.show)
19
+ if (!e.show)
20
20
  continue;
21
- n.push({ ...l, fixed: t.fixed });
21
+ n.push({ ...l, fixed: e.fixed });
22
22
  }
23
23
  }
24
24
  return n;
25
25
  }
26
- function h(e) {
27
- return s(e, (i, n) => {
26
+ function p(t) {
27
+ return s(t, (o, n) => {
28
28
  if (n === "label")
29
- return i;
29
+ return o;
30
30
  });
31
31
  }
32
32
  const a = {
@@ -38,11 +38,26 @@ const a = {
38
38
  "white-space": "unset",
39
39
  wordBreak: "unset"
40
40
  };
41
- function p(e) {
42
- return u(e) ? c(e, { style: a }) : e;
41
+ function y(t) {
42
+ return c(t) ? f(t, { style: a }) : t;
43
+ }
44
+ function b(t) {
45
+ function o(n) {
46
+ const i = {};
47
+ return n.forEach((e, l) => {
48
+ var r;
49
+ i[e.key] = {
50
+ ...u(e, ["label", "key", "children"]),
51
+ order: l,
52
+ children: (r = e.children) != null && r.length ? o(e.children) : void 0
53
+ };
54
+ }), i;
55
+ }
56
+ return o(t);
43
57
  }
44
58
  export {
45
- p as cloneLabelNode,
46
- h as customCloneColumnStates,
47
- f as default
59
+ y as cloneLabelNode,
60
+ p as customCloneColumnStates,
61
+ d as default,
62
+ b as getColumnStateString
48
63
  };
@@ -9528,6 +9528,9 @@ export declare const apTableRenderItemMap: {
9528
9528
  timezone: {
9529
9529
  type: PropType<"RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS">;
9530
9530
  };
9531
+ readModeSeparator: {
9532
+ type: PropType<any>;
9533
+ };
9531
9534
  }>> & {
9532
9535
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9533
9536
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -9741,6 +9744,9 @@ export declare const apTableRenderItemMap: {
9741
9744
  timezone: {
9742
9745
  type: PropType<"RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS">;
9743
9746
  };
9747
+ readModeSeparator: {
9748
+ type: PropType<any>;
9749
+ };
9744
9750
  }>> & {
9745
9751
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9746
9752
  }, {
@@ -9991,6 +9997,9 @@ export declare const apTableRenderItemMap: {
9991
9997
  timezone: {
9992
9998
  type: PropType<"RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS">;
9993
9999
  };
10000
+ readModeSeparator: {
10001
+ type: PropType<any>;
10002
+ };
9994
10003
  }>> & {
9995
10004
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9996
10005
  }, {}, {}, {}, {}, {
@@ -10238,6 +10247,9 @@ export declare const apTableRenderItemMap: {
10238
10247
  timezone: {
10239
10248
  type: PropType<"RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS">;
10240
10249
  };
10250
+ readModeSeparator: {
10251
+ type: PropType<any>;
10252
+ };
10241
10253
  }>> & {
10242
10254
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
10243
10255
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1,6 +1,6 @@
1
- import { ApColumnState } from '../interface';
1
+ import { ApColumnState, ApTableSettingType } from '../interface';
2
2
  import { Ref, ComputedRef } from 'vue';
3
- export declare const useTableColumnState: (initialColumnState: ApColumnState[]) => {
3
+ export declare const useTableColumnState: (columnSetting: ApTableSettingType, initialColumnState: ApColumnState[]) => {
4
4
  columnState: Ref<{
5
5
  key: string | number;
6
6
  show?: boolean | undefined;
@@ -8,6 +8,7 @@ export declare const useTableColumnState: (initialColumnState: ApColumnState[])
8
8
  disabled?: boolean | undefined;
9
9
  label?: any;
10
10
  children?: any[] | undefined;
11
+ order?: number | undefined;
11
12
  }[]>;
12
13
  selectAll: () => void;
13
14
  unSelectAll: () => void;
@@ -15,4 +16,7 @@ export declare const useTableColumnState: (initialColumnState: ApColumnState[])
15
16
  setColumnState: (nextColumnState: ApColumnState[]) => void;
16
17
  isAllSelected: ComputedRef<boolean>;
17
18
  toggleSelectAll: () => void;
19
+ columnStateBackup: ApColumnState[];
20
+ setColumnStateBackup: (nextBackup: ApColumnState[]) => void;
21
+ cacheColumnStateIfNeeded: (nextColumnState: ApColumnState[]) => void;
18
22
  };