@aplus-frontend/ui 7.19.0-beta.0 → 7.19.0-beta.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 (157) hide show
  1. package/es/src/ag-grid/context.mjs +1 -1
  2. package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  3. package/es/src/ag-grid/editable/form-item.vue.mjs +1 -0
  4. package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
  5. package/es/src/ag-grid/editable/index.vue.mjs +9 -8
  6. package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
  7. package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
  8. package/es/src/ag-grid/index.vue.d.ts +2 -4
  9. package/es/src/ag-grid/index.vue.mjs +353 -335
  10. package/es/src/ag-grid/interface.d.ts +40 -1
  11. package/es/src/ag-grid/utils.d.ts +18 -0
  12. package/es/src/ag-grid/utils.mjs +39 -18
  13. package/es/src/ap-field/cascader/use-options.d.ts +4 -4
  14. package/es/src/ap-field/date/index.vue.d.ts +0 -1
  15. package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
  16. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  17. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  18. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  19. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  20. package/es/src/ap-form/context.mjs +1 -1
  21. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  22. package/es/src/ap-form/item/index.vue.d.ts +6 -6
  23. package/es/src/ap-form/item-group/helper.mjs +2 -2
  24. package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
  25. package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  26. package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
  27. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  28. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  29. package/es/src/ap-form/provider/context.mjs +1 -1
  30. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  31. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  32. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  33. package/es/src/ap-grid/index.vue.d.ts +2 -4
  34. package/es/src/ap-grid/utils/table.mjs +2 -2
  35. package/es/src/ap-list/index.vue.d.ts +2 -4
  36. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  37. package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
  38. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  39. package/es/src/ap-table/components/setting/context.d.ts +1 -1
  40. package/es/src/ap-table/components/setting/context.mjs +1 -1
  41. package/es/src/ap-table/components/setting/modal/index.vue.mjs +119 -109
  42. package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
  43. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  44. package/es/src/ap-table/constants.d.ts +20 -22
  45. package/es/src/ap-table/context.mjs +1 -1
  46. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
  47. package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  48. package/es/src/ap-table/hooks/use-table-template-storage.mjs +94 -88
  49. package/es/src/ap-table/utils.mjs +1 -1
  50. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
  51. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  52. package/es/src/business/ap-download/hooks/index.mjs +1 -1
  53. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  54. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
  55. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  56. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  57. package/es/src/business/ap-keep-alive/hook.mjs +1 -1
  58. package/es/src/business/ap-keep-alive/utils.mjs +1 -1
  59. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  60. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  61. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  62. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  63. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  64. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
  65. package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
  66. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  67. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  68. package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  69. package/es/src/business/ap-view/hooks/use-send-to-url.mjs +47 -32
  70. package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
  71. package/es/src/business/ap-view/index.d.ts +3 -3
  72. package/es/src/business/ap-view/interface.d.ts +7 -1
  73. package/es/src/check-card/context.mjs +1 -1
  74. package/es/src/config-provider/constants.mjs +1 -1
  75. package/es/src/config-provider/hooks/use-locale.mjs +1 -1
  76. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  77. package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
  78. package/es/src/config-provider/hooks/use-token.mjs +1 -1
  79. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  80. package/es/src/editable-table/index.vue.d.ts +2 -4
  81. package/es/src/editable-table/utils.mjs +1 -1
  82. package/es/src/scroll-view/index.vue.d.ts +5 -5
  83. package/es/src/tests/wrapper.d.ts +4 -4
  84. package/es/src/text/context.mjs +1 -1
  85. package/es/src/time-ago/useTimeAgo.mjs +1 -1
  86. package/es/src/type.d.ts +1 -0
  87. package/es/src/utils/slot.mjs +1 -1
  88. package/es/src/version.d.ts +1 -1
  89. package/es/src/version.mjs +1 -1
  90. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  91. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  92. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  93. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  94. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  95. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
  96. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  97. package/lib/src/ag-grid/index.vue.js +1 -1
  98. package/lib/src/ag-grid/interface.d.ts +40 -1
  99. package/lib/src/ag-grid/utils.d.ts +18 -0
  100. package/lib/src/ag-grid/utils.js +1 -1
  101. package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
  102. package/lib/src/ap-field/date/index.vue.d.ts +0 -1
  103. package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
  104. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  105. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  106. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  107. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  108. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  109. package/lib/src/ap-form/item/index.vue.d.ts +6 -6
  110. package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
  111. package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  112. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
  113. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  114. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  115. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  116. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  117. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  118. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  119. package/lib/src/ap-grid/utils/table.js +1 -1
  120. package/lib/src/ap-list/index.vue.d.ts +2 -4
  121. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  122. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  123. package/lib/src/ap-table/components/setting/context.d.ts +1 -1
  124. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
  125. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  126. package/lib/src/ap-table/constants.d.ts +20 -22
  127. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  128. package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  129. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
  130. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  131. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  132. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  133. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  134. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  135. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  136. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  137. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  138. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  139. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  140. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
  141. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  142. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  143. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  144. package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  145. package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
  146. package/lib/src/business/ap-view/index.d.ts +3 -3
  147. package/lib/src/business/ap-view/interface.d.ts +7 -1
  148. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  149. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  150. package/lib/src/editable-table/index.vue.d.ts +2 -4
  151. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  152. package/lib/src/tests/wrapper.d.ts +4 -4
  153. package/lib/src/time-ago/useTimeAgo.js +1 -1
  154. package/lib/src/type.d.ts +1 -0
  155. package/lib/src/version.d.ts +1 -1
  156. package/lib/src/version.js +1 -1
  157. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ref as me, reactive as J, unref as d, nextTick as Se, onMounted as ze, watch as Pe, computed as y, createVNode as x } from "vue";
1
+ import { ref as me, reactive as J, unref as d, nextTick as Se, onMounted as ze, watch as Pe, computed as M, createVNode as x } from "vue";
2
2
  import { cloneDeep as Te, isArray as K, isEqualWith as Ce, isUndefined as be } from "lodash-unified";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "../../utils/index.mjs";
@@ -7,9 +7,9 @@ import { useTableSortedAndFiltered as De } from "./use-sorted-filtered.mjs";
7
7
  import { useLocale as Ee } from "../../config-provider/hooks/use-locale.mjs";
8
8
  import { useNamespace as ve } from "../../config-provider/hooks/use-namespace.mjs";
9
9
  import { isDef as Q } from "../../utils/is.mjs";
10
- const p = 1, M = 20, W = {
10
+ const p = 1, y = 20, W = {
11
11
  defaultCurrent: p,
12
- defaultPageSize: M,
12
+ defaultPageSize: y,
13
13
  showLessItems: !1,
14
14
  showTotal: !0
15
15
  };
@@ -21,7 +21,7 @@ function Ae(i) {
21
21
  }
22
22
  function Le(i) {
23
23
  const f = {};
24
- return i === !1 || (i === !0 || i == null ? (f.current = p, f.pageSize = M) : (f.current = i.defaultCurrent || p, f.pageSize = i.defaultPageSize || M)), f;
24
+ return i === !1 || (i === !0 || i == null ? (f.current = p, f.pageSize = y) : (f.current = i.defaultCurrent || p, f.pageSize = i.defaultPageSize || y)), f;
25
25
  }
26
26
  const qe = ({
27
27
  manual: i = !1,
@@ -201,7 +201,7 @@ const qe = ({
201
201
  }, {
202
202
  deep: !0
203
203
  });
204
- const fe = y(() => {
204
+ const fe = M(() => {
205
205
  if (a.total === 0)
206
206
  return "-";
207
207
  const {
@@ -215,7 +215,7 @@ const qe = ({
215
215
  if (g !== !1 && t) {
216
216
  const n = o.pageSize * (o.current - 1);
217
217
  a.records = e.slice(n, n + o.pageSize) || [];
218
- const r = Math.ceil(e.length / o.pageSize);
218
+ const r = Math.max(Math.ceil(e.length / o.pageSize), 1);
219
219
  r < o.current && k({
220
220
  current: r
221
221
  });
@@ -224,7 +224,7 @@ const qe = ({
224
224
  a.total = e.length;
225
225
  }
226
226
  }
227
- const de = y(() => {
227
+ const de = M(() => {
228
228
  const {
229
229
  showLessItems: e,
230
230
  showTotal: t,
@@ -275,7 +275,7 @@ const qe = ({
275
275
  handleTableChange: L,
276
276
  handleTableChangeOptional: k,
277
277
  tableProps: de,
278
- dataSource: y(() => a.records),
278
+ dataSource: M(() => a.records),
279
279
  setDataSource: ge,
280
280
  getColumnSFConfig: te,
281
281
  sortedInfo: j,
@@ -289,6 +289,6 @@ const qe = ({
289
289
  };
290
290
  export {
291
291
  p as DEFAULT_CURRENT,
292
- M as DEFAULT_PAGE_SIZE,
292
+ y as DEFAULT_PAGE_SIZE,
293
293
  qe as useTablePaging
294
294
  };
@@ -6,28 +6,28 @@ export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType
6
6
  columnState: {
7
7
  key: string | number;
8
8
  show?: boolean | undefined;
9
- fixed?: ("left" | "right") | undefined;
9
+ fixed?: "left" | "right" | undefined;
10
10
  disabled?: boolean | undefined;
11
11
  label?: any;
12
- children?: any[] | undefined;
12
+ children?: /*elided*/ any[] | undefined;
13
13
  order?: number | undefined;
14
14
  }[];
15
15
  label: string;
16
16
  key: string;
17
- size?: ("middle" | "small") | undefined;
17
+ size?: "middle" | "small" | undefined;
18
18
  }[], ApColumnTemplate[] | {
19
19
  columnState: {
20
20
  key: string | number;
21
21
  show?: boolean | undefined;
22
- fixed?: ("left" | "right") | undefined;
22
+ fixed?: "left" | "right" | undefined;
23
23
  disabled?: boolean | undefined;
24
24
  label?: any;
25
- children?: any[] | undefined;
25
+ children?: /*elided*/ any[] | undefined;
26
26
  order?: number | undefined;
27
27
  }[];
28
28
  label: string;
29
29
  key: string;
30
- size?: ("middle" | "small") | undefined;
30
+ size?: "middle" | "small" | undefined;
31
31
  }[]>;
32
32
  syncTemplateListToStorage: (nextTemplateList: ApColumnTemplate[]) => void;
33
33
  addTemplate: (template: ApColumnTemplate) => void;
@@ -36,14 +36,14 @@ export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType
36
36
  columnState: {
37
37
  key: string | number;
38
38
  show?: boolean | undefined;
39
- fixed?: ("left" | "right") | undefined;
39
+ fixed?: "left" | "right" | undefined;
40
40
  disabled?: boolean | undefined;
41
41
  label?: any;
42
- children?: any[] | undefined;
42
+ children?: /*elided*/ any[] | undefined;
43
43
  order?: number | undefined;
44
44
  }[];
45
45
  label: string;
46
46
  key: string;
47
- size?: ("middle" | "small") | undefined;
47
+ size?: "middle" | "small" | undefined;
48
48
  };
49
49
  };
@@ -1,71 +1,77 @@
1
- import { useToken as C } from "@aplus-frontend/antdv/es/theme/internal";
2
- import { isBoolean as G, isNumber as h, isObject as b, mergeWith as z, omit as P, isString as R } from "lodash-unified";
3
- import { ref as y, unref as p, watch as v } from "vue";
1
+ import { useToken as G } from "@aplus-frontend/antdv/es/theme/internal";
2
+ import { isBoolean as P, isNumber as S, isObject as b, mergeWith as z, omit as R, isString as U } from "lodash-unified";
3
+ import { ref as y, watch as d, unref as v } from "vue";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { randomStr as E } from "../../utils/index.mjs";
6
- import { getColumnStateString as U } from "../components/setting/utils.mjs";
7
- import { useInjectApTable as W } from "../context.mjs";
8
- import { getTableTitle as X } from "../utils.mjs";
9
- import { useLocale as q } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
11
- function H(t, e, o, a) {
12
- return a ? a.fixed : e ? e.fixed : o && "fixed" in o ? o.fixed : G(t.fixed) ? t.fixed ? "left" : void 0 : t.fixed;
6
+ import { getColumnStateString as W } from "../components/setting/utils.mjs";
7
+ import { useInjectApTable as X } from "../context.mjs";
8
+ import { getTableTitle as q } from "../utils.mjs";
9
+ import { useLocale as D } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
11
+ function Q(r, e, o, a) {
12
+ return a ? a.fixed : e ? e.fixed : o && "fixed" in o ? o.fixed : P(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
13
13
  }
14
14
  const k = Number.MAX_SAFE_INTEGER, A = E();
15
- function Q(t, e) {
16
- const o = h(t.order) ? t.order : k;
17
- let a = h(e.order) ? e.order : k;
18
- return t.fixed === "right" && e.fixed !== "right" && (a = o - 1), e.fixed === "left" && t.fixed !== "left" && (a = o - 1), o - a;
15
+ function V(r, e) {
16
+ const o = S(r.order) ? r.order : k;
17
+ let a = S(e.order) ? e.order : k;
18
+ return r.fixed === "right" && e.fixed !== "right" && (a = o - 1), e.fixed === "left" && r.fixed !== "left" && (a = o - 1), o - a;
19
19
  }
20
- function V(t, e) {
21
- e && t.removeItem(e);
20
+ function Y(r, e) {
21
+ e && r.removeItem(e);
22
22
  }
23
- function I(t, e) {
23
+ function I(r, e) {
24
24
  if (!e)
25
25
  return [];
26
- const o = t.getItem(e);
26
+ const o = r.getItem(e);
27
27
  if (!o)
28
28
  return [];
29
29
  const a = JSON.parse(o);
30
- return Array.isArray(a) ? a : (V(t, e), []);
30
+ return Array.isArray(a) ? a : (Y(r, e), []);
31
31
  }
32
- function N(t, e) {
33
- if (b(t) && b(e))
34
- return z({}, t, e, N);
32
+ function N(r, e) {
33
+ if (b(r) && b(e))
34
+ return z({}, r, e, N);
35
35
  }
36
- const le = (t, e, o) => {
37
- const { columnsBackup: a, size: d } = W(), { t: _ } = q(), { be: L } = D("ap-table"), [Y, O] = C(), s = y(), l = y(
38
- T(
39
- I(localStorage, p(e))
40
- )
36
+ const ue = (r, e, o) => {
37
+ const { columnsBackup: a, size: s } = X(), { t: _ } = D(), { be: L } = H("ap-table"), [Z, O] = G(), c = y(), n = y([]), B = d(
38
+ () => a?.value,
39
+ (t, i) => {
40
+ t?.length && !i?.length && (n.value = g(
41
+ I(localStorage, v(e))
42
+ ), B?.());
43
+ },
44
+ {
45
+ immediate: !0
46
+ }
41
47
  );
42
- v(
43
- [a, d],
44
- ([r, i]) => {
45
- r && (s.value = {
48
+ d(
49
+ [a, s],
50
+ ([t, i]) => {
51
+ t && (c.value = {
46
52
  label: "basic_template",
47
- columnState: f(r),
53
+ columnState: f(t),
48
54
  key: A,
49
55
  size: i
50
56
  });
51
57
  },
52
58
  { immediate: !0, deep: !0 }
53
- ), v(
59
+ ), d(
54
60
  () => e.value,
55
- (r) => {
56
- const i = T(
57
- I(localStorage, r)
61
+ (t) => {
62
+ const i = g(
63
+ I(localStorage, t)
58
64
  );
59
- l.value = i, s.value = {
65
+ n.value = i, c.value = {
60
66
  label: "basic_template",
61
67
  columnState: f(a?.value || []),
62
68
  key: A,
63
- size: d?.value
69
+ size: s?.value
64
70
  }, o(i ?? []);
65
71
  }
66
72
  );
67
- function T(r) {
68
- return r.length ? r.map((i) => ({
73
+ function g(t) {
74
+ return t.length ? t.map((i) => ({
69
75
  ...i,
70
76
  columnState: f(
71
77
  a.value,
@@ -75,90 +81,90 @@ const le = (t, e, o) => {
75
81
  })) : [
76
82
  {
77
83
  label: _("ap.apTable.setting.defaultTemplate"),
78
- key: t.getActiveKey?.("DEFAULT_TEMPLATE") ?? E(),
79
- size: d?.value,
84
+ key: r.getActiveKey?.("DEFAULT_TEMPLATE") ?? E(),
85
+ size: s?.value,
80
86
  columnState: f(a?.value || [])
81
87
  }
82
88
  ];
83
89
  }
84
- function f(r, i = {}, n = !0) {
85
- const c = z(
90
+ function f(t, i = {}, l = !0) {
91
+ const m = z(
86
92
  {},
87
- n ? t.defaultValue || {} : {},
93
+ l ? r.defaultValue || {} : {},
88
94
  i,
89
95
  N
90
96
  );
91
- function x(J, M, j) {
92
- return J.map((u) => {
93
- const S = M?.[u.key] || {}, m = {
97
+ function x(M, j, C) {
98
+ return M.map((u) => {
99
+ const h = j?.[u.key] || {}, p = {
94
100
  key: u.key,
95
- label: R(u.title) ? X(
101
+ label: U(u.title) ? q(
96
102
  u,
97
103
  L("table-header", "title"),
98
104
  void 0,
99
105
  O.value.colorTextTertiary
100
106
  ) : u.title,
101
107
  show: !0,
102
- fixed: H(
108
+ fixed: Q(
103
109
  u,
104
110
  i[u.key],
105
- n ? t.defaultValue?.[u.key] : void 0,
106
- j
111
+ l ? r.defaultValue?.[u.key] : void 0,
112
+ C
107
113
  ),
108
114
  disabled: !1,
109
- ...P(S, ["children", "fixed"])
115
+ ...R(h, ["children", "fixed"])
110
116
  };
111
- return m.children = u.children?.length ? x(
117
+ return p.children = u.children?.length ? x(
112
118
  u.children,
113
- S.children,
114
- m
115
- ) : void 0, m;
116
- }).sort(Q);
119
+ h.children,
120
+ p
121
+ ) : void 0, p;
122
+ }).sort(V);
117
123
  }
118
- return x(r || [], c);
124
+ return x(t || [], m);
119
125
  }
120
- function g(r) {
121
- if (p(e)) {
122
- const i = r.map((n) => ({
123
- ...n,
124
- columnState: U(n.columnState)
126
+ function T(t) {
127
+ if (v(e)) {
128
+ const i = t.map((l) => ({
129
+ ...l,
130
+ columnState: W(l.columnState)
125
131
  }));
126
- localStorage.setItem(p(e), JSON.stringify(i));
132
+ localStorage.setItem(v(e), JSON.stringify(i));
127
133
  }
128
134
  }
129
- function B(r) {
130
- l.value.push(r);
135
+ function F(t) {
136
+ n.value.push(t);
131
137
  }
132
- function F(r) {
133
- const i = l.value.findIndex(
134
- (n) => n.key === r
138
+ function w(t) {
139
+ const i = n.value.findIndex(
140
+ (l) => l.key === t
135
141
  );
136
- l.value.splice(i, 1);
142
+ n.value.splice(i, 1);
137
143
  }
138
- function w(r, i) {
139
- const n = l.value.findIndex(
140
- (c) => c.key === r
144
+ function J(t, i) {
145
+ const l = n.value.findIndex(
146
+ (m) => m.key === t
141
147
  );
142
- return l.value[n] = {
143
- ...l.value[n],
148
+ return n.value[l] = {
149
+ ...n.value[l],
144
150
  ...i
145
- }, l.value[n];
151
+ }, n.value[l];
146
152
  }
147
- return v(
148
- () => l.value,
149
- (r) => {
150
- g(r);
153
+ return d(
154
+ () => n.value,
155
+ (t) => {
156
+ t.length && T(t);
151
157
  },
152
158
  { deep: !0, immediate: !0 }
153
159
  ), {
154
- basicTemplate: s,
155
- customizeTemplateList: l,
156
- syncTemplateListToStorage: g,
157
- addTemplate: B,
158
- deleteTemplate: F,
159
- updateTemplate: w
160
+ basicTemplate: c,
161
+ customizeTemplateList: n,
162
+ syncTemplateListToStorage: T,
163
+ addTemplate: F,
164
+ deleteTemplate: w,
165
+ updateTemplate: J
160
166
  };
161
167
  };
162
168
  export {
163
- le as useTableTemplateStorage
169
+ ue as useTableTemplateStorage
164
170
  };
@@ -147,7 +147,7 @@ function re(e, t, n, o) {
147
147
  const r = n?.({
148
148
  title: e.title,
149
149
  column: e
150
- }), i = r?.filter((l) => l.type !== Symbol.for("v-cmt")) || [];
150
+ }), i = r?.filter((l) => l.type !== /* @__PURE__ */ Symbol.for("v-cmt")) || [];
151
151
  if (r && i.length > 0)
152
152
  return r;
153
153
  const p = N(e.title) ? s("span", {
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as A } from "lodash-unified";
2
2
  import { ref as o, watch as r, defineComponent as h, provide as I, toRef as a, inject as y } from "vue";
3
- const u = Symbol("ag-grid-provider-key");
3
+ const u = /* @__PURE__ */ Symbol("ag-grid-provider-key");
4
4
  function L(n) {
5
5
  const t = o(), c = o(), l = o(0), d = (e) => {
6
6
  t.value = e;
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
3
3
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
- import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
7
6
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
+ import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
8
8
  import { Key } from '@aplus-frontend/antdv/es/_util/type';
9
9
  import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
10
10
  import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler, PopupRender } from '@aplus-frontend/antdv/es/menu/src/interface';
@@ -72,7 +72,7 @@ declare const ApBatchActionGroup: {
72
72
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
73
73
  variant: PropType<ButtonVariantType>;
74
74
  }>>, "type" | "onClick"> & {
75
- type?: ButtonProps["type"] | "borderLink";
75
+ type?: ( ButtonType | undefined) | "borderLink";
76
76
  borderLinkColor?: string;
77
77
  minWidth?: boolean | number | string;
78
78
  lazy?: boolean | number;
@@ -394,7 +394,7 @@ declare const ApBatchActionGroup: {
394
394
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
395
395
  variant: PropType<ButtonVariantType>;
396
396
  }>>, "type" | "onClick"> & {
397
- type?: ButtonProps["type"] | "borderLink";
397
+ type?: ( ButtonType | undefined) | "borderLink";
398
398
  borderLinkColor?: string;
399
399
  minWidth?: boolean | number | string;
400
400
  lazy?: boolean | number;
@@ -1,5 +1,5 @@
1
1
  import { client as a } from "@aplus-frontend/oss";
2
- const s = /* @__PURE__ */ new Map(), n = Symbol("ossInstance");
2
+ const s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ Symbol("ossInstance");
3
3
  async function c(t, r) {
4
4
  if (!t)
5
5
  throw new Error("请传入getOssAccess");
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  span: number;
11
11
  row: number;
12
12
  col: number;
13
- showHeight?: (number | string) | undefined;
13
+ showHeight?: number | string | undefined;
14
14
  height: number | string;
15
15
  module: string;
16
16
  };
@@ -225,9 +225,7 @@ const Ee = ["data-span", "data-index", "data-row", "data-col", "data-height", "d
225
225
  },
226
226
  getGridItems: () => JSON.parse(JSON.stringify(S.value)),
227
227
  refreshGrid: () => {
228
- (async () => {
229
- await J();
230
- })();
228
+ (async () => await J())();
231
229
  }
232
230
  }), (e, a) => (R(), ge(D(ye), { spinning: G.value }, {
233
231
  default: me(() => [
@@ -172,7 +172,7 @@ declare const ApDraggableGrid: {
172
172
  span: number;
173
173
  row: number;
174
174
  col: number;
175
- showHeight?: (number | string) | undefined;
175
+ showHeight?: number | string | undefined;
176
176
  height: number | string;
177
177
  module: string;
178
178
  };
@@ -1,5 +1,5 @@
1
1
  import { ApExpandAlertProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
@@ -24,9 +24,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
24
24
  }): any;
25
25
  };
26
26
  emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
27
- }>) => VNode<RendererNode, RendererElement, {
28
- [key: string]: any;
29
- }> & {
27
+ }>) => VNode & {
30
28
  __ctx?: Awaited<typeof __VLS_setup>;
31
29
  };
32
30
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { provide as p, nextTick as r, inject as v } from "vue";
2
- const i = Symbol("ApKeepAliveProvideKey"), g = (t, s) => {
2
+ const i = /* @__PURE__ */ Symbol("ApKeepAliveProvideKey"), g = (t, s) => {
3
3
  p(i, {
4
4
  getter: async (e) => {
5
5
  await r();
@@ -4,7 +4,7 @@ const o = (r) => {
4
4
  if (typeof e == "string") return;
5
5
  const n = Array.isArray(e) ? e : null;
6
6
  if (n)
7
- return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != Symbol.for("v-cmt") : !1);
7
+ return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != /* @__PURE__ */ Symbol.for("v-cmt") : !1);
8
8
  }, l = (r) => {
9
9
  if (r) {
10
10
  if (r.length > 1)
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem } from './interface';
2
- import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
2
+ import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
3
3
  export * from './interface';
4
4
  declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
5
5
  attrs: any;
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
38
38
  (event: "afterEnter", el: Element): void;
39
39
  (event: "afterLeave", el: Element): void;
40
40
  };
41
- }>) => VNode<RendererNode, RendererElement, {
42
- [key: string]: any;
43
- }> & {
41
+ }>) => VNode & {
44
42
  __ctx?: Awaited<typeof __VLS_setup>;
45
43
  }) & ( Plugin & (new (...args: any[]) => {
46
44
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem, ApSelectLayoutProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
19
19
  (event: "afterEnter", el: Element): void;
20
20
  (event: "afterLeave", el: Element): void;
21
21
  };
22
- }>) => VNode<RendererNode, RendererElement, {
23
- [key: string]: any;
24
- }> & {
22
+ }>) => VNode & {
25
23
  __ctx?: Awaited<typeof __VLS_setup>;
26
24
  };
27
25
  export default _default;
@@ -4,9 +4,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
7
- import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
8
7
  import { ApFormSearchFormPopoverSorterItem } from '../..';
9
8
  import { MaskType } from '@aplus-frontend/antdv/es/_util/hooks/useMergedMask';
9
+ import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
10
10
  /**
11
11
  *
12
12
  */
@@ -44,8 +44,14 @@ declare const ApTableModal: {
44
44
  };
45
45
  y: undefined;
46
46
  };
47
- getPaging: () => InternalPagingType;
48
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
47
+ getPaging: () => Partial<{
48
+ current: number;
49
+ pageSize: number;
50
+ }>;
51
+ setPaging: (nextPaging: Partial<{
52
+ current: number;
53
+ pageSize: number;
54
+ }>, refreshImmediately?: boolean) => void;
49
55
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
50
56
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
51
57
  resetSearchFormSorterItems: () => void;
@@ -150,8 +156,14 @@ declare const ApTableModal: {
150
156
  };
151
157
  y: undefined;
152
158
  };
153
- getPaging: () => InternalPagingType;
154
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
159
+ getPaging: () => Partial<{
160
+ current: number;
161
+ pageSize: number;
162
+ }>;
163
+ setPaging: (nextPaging: Partial<{
164
+ current: number;
165
+ pageSize: number;
166
+ }>, refreshImmediately?: boolean) => void;
155
167
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
156
168
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
157
169
  resetSearchFormSorterItems: () => void;
@@ -1,6 +1,6 @@
1
1
  import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
4
  import { AcceptConfig, UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
5
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
@@ -1,5 +1,5 @@
1
1
  import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
@@ -45,9 +45,7 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
45
45
  (e: "remove", key: string | number): void;
46
46
  (e: "highlight", keys: (string | number)[]): void;
47
47
  };
48
- }>) => VNode<RendererNode, RendererElement, {
49
- [key: string]: any;
50
- }> & {
48
+ }>) => VNode & {
51
49
  __ctx?: Awaited<typeof __VLS_setup>;
52
50
  };
53
51
  export default _default;
@@ -4,7 +4,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
4
4
  declare const _default: DefineComponent<ApViewProps, {
5
5
  setFirstDefaultSystemView: (value: boolean) => void;
6
6
  setInitToUrl: (value: boolean) => void;
7
- mountedData: Recordable;
7
+ getMountedData: () => Recordable;
8
8
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
9
9
  manual: boolean;
10
10
  maxViewNum: number;