@aplus-frontend/ui 7.19.0-beta.1 → 7.19.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 (165) 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 +88 -77
  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/editable/interface.d.ts +15 -1
  7. package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
  8. package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
  9. package/es/src/ag-grid/index.vue.d.ts +2 -4
  10. package/es/src/ag-grid/index.vue.mjs +353 -335
  11. package/es/src/ag-grid/interface.d.ts +40 -1
  12. package/es/src/ag-grid/utils.d.ts +18 -0
  13. package/es/src/ag-grid/utils.mjs +39 -18
  14. package/es/src/ap-field/cascader/use-options.d.ts +4 -4
  15. package/es/src/ap-field/date/index.vue.d.ts +0 -1
  16. package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
  17. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  18. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  19. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  20. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  21. package/es/src/ap-form/ap-form.vue2.mjs +63 -61
  22. package/es/src/ap-form/context.mjs +1 -1
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  24. package/es/src/ap-form/interface.d.ts +4 -0
  25. package/es/src/ap-form/item/index.vue.d.ts +6 -6
  26. package/es/src/ap-form/item-group/helper.mjs +2 -2
  27. package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
  28. package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  29. package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
  30. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  31. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  32. package/es/src/ap-form/provider/context.mjs +1 -1
  33. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  34. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  35. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  36. package/es/src/ap-grid/index.vue.d.ts +2 -4
  37. package/es/src/ap-grid/utils/table.mjs +2 -2
  38. package/es/src/ap-list/index.vue.d.ts +2 -4
  39. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  40. package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
  41. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  42. package/es/src/ap-table/components/setting/context.d.ts +1 -1
  43. package/es/src/ap-table/components/setting/context.mjs +1 -1
  44. package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
  45. package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
  46. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  47. package/es/src/ap-table/constants.d.ts +20 -22
  48. package/es/src/ap-table/context.mjs +1 -1
  49. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
  50. package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  51. package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
  52. package/es/src/ap-table/utils.mjs +1 -1
  53. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
  54. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  55. package/es/src/business/ap-download/hooks/index.mjs +1 -1
  56. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  57. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
  58. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  59. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  60. package/es/src/business/ap-keep-alive/hook.mjs +1 -1
  61. package/es/src/business/ap-keep-alive/utils.mjs +1 -1
  62. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  63. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  64. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  65. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  66. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
  67. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  68. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
  69. package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
  70. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  71. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  72. package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  73. package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
  74. package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
  75. package/es/src/business/ap-view/index.d.ts +3 -3
  76. package/es/src/business/ap-view/interface.d.ts +7 -1
  77. package/es/src/check-card/context.mjs +1 -1
  78. package/es/src/config-provider/constants.mjs +1 -1
  79. package/es/src/config-provider/hooks/use-locale.mjs +1 -1
  80. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  81. package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
  82. package/es/src/config-provider/hooks/use-token.mjs +1 -1
  83. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  84. package/es/src/editable-table/index.vue.d.ts +2 -4
  85. package/es/src/editable-table/utils.mjs +1 -1
  86. package/es/src/scroll-view/index.vue.d.ts +5 -5
  87. package/es/src/tests/wrapper.d.ts +4 -4
  88. package/es/src/text/context.mjs +1 -1
  89. package/es/src/time-ago/useTimeAgo.mjs +1 -1
  90. package/es/src/type.d.ts +1 -0
  91. package/es/src/utils/slot.mjs +1 -1
  92. package/es/src/version.d.ts +1 -1
  93. package/es/src/version.mjs +1 -1
  94. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  95. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  96. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  97. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  98. package/lib/src/ag-grid/editable/interface.d.ts +15 -1
  99. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  100. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
  101. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  102. package/lib/src/ag-grid/index.vue.js +1 -1
  103. package/lib/src/ag-grid/interface.d.ts +40 -1
  104. package/lib/src/ag-grid/utils.d.ts +18 -0
  105. package/lib/src/ag-grid/utils.js +1 -1
  106. package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
  107. package/lib/src/ap-field/date/index.vue.d.ts +0 -1
  108. package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
  109. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  110. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  111. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  112. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  113. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  114. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  115. package/lib/src/ap-form/interface.d.ts +4 -0
  116. package/lib/src/ap-form/item/index.vue.d.ts +6 -6
  117. package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
  118. package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  119. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
  120. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  121. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  122. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  123. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  124. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  125. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  126. package/lib/src/ap-grid/utils/table.js +1 -1
  127. package/lib/src/ap-list/index.vue.d.ts +2 -4
  128. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  129. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  130. package/lib/src/ap-table/components/setting/context.d.ts +1 -1
  131. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
  132. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  133. package/lib/src/ap-table/constants.d.ts +20 -22
  134. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  135. package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  136. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
  137. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  138. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  139. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  140. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  141. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  142. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  143. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  144. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  145. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  146. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  147. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  148. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
  149. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  150. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  151. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  152. package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  153. package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
  154. package/lib/src/business/ap-view/index.d.ts +3 -3
  155. package/lib/src/business/ap-view/interface.d.ts +7 -1
  156. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  157. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  158. package/lib/src/editable-table/index.vue.d.ts +2 -4
  159. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  160. package/lib/src/tests/wrapper.d.ts +4 -4
  161. package/lib/src/time-ago/useTimeAgo.js +1 -1
  162. package/lib/src/type.d.ts +1 -0
  163. package/lib/src/version.d.ts +1 -1
  164. package/lib/src/version.js +1 -1
  165. 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,78 @@
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 b, isObject as y, mergeWith as E, omit as R, isString as U } from "lodash-unified";
3
+ import { ref as k, watch as d, unref as v } from "vue";
4
4
  import "../../config-provider/index.mjs";
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;
5
+ import { randomStr as N } from "../../utils/index.mjs";
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
- 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;
14
+ const A = Number.MAX_SAFE_INTEGER, I = N();
15
+ function V(r, e) {
16
+ const o = b(r.order) ? r.order : A;
17
+ let a = b(e.order) ? e.order : A;
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 z(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 _(r, e) {
33
+ if (y(r) && y(e))
34
+ return E({}, r, e, _);
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
- )
41
- );
42
- v(
43
- [a, d],
44
- ([r, i]) => {
45
- r && (s.value = {
36
+ const ue = (r, e, o) => {
37
+ const { columnsBackup: a, size: s } = X(), { t: L } = D(), { be: O } = H("ap-table"), [Z, B] = G(), m = k(), n = k([]);
38
+ let g;
39
+ g = d(
40
+ () => a?.value,
41
+ (t, i) => {
42
+ t?.length && !i?.length && (n.value = T(
43
+ z(localStorage, v(e))
44
+ ), g?.());
45
+ },
46
+ {
47
+ immediate: !0
48
+ }
49
+ ), d(
50
+ [a, s],
51
+ ([t, i]) => {
52
+ t && (m.value = {
46
53
  label: "basic_template",
47
- columnState: f(r),
48
- key: A,
54
+ columnState: f(t),
55
+ key: I,
49
56
  size: i
50
57
  });
51
58
  },
52
59
  { immediate: !0, deep: !0 }
53
- ), v(
60
+ ), d(
54
61
  () => e.value,
55
- (r) => {
62
+ (t) => {
56
63
  const i = T(
57
- I(localStorage, r)
64
+ z(localStorage, t)
58
65
  );
59
- l.value = i, s.value = {
66
+ n.value = i, m.value = {
60
67
  label: "basic_template",
61
68
  columnState: f(a?.value || []),
62
- key: A,
63
- size: d?.value
69
+ key: I,
70
+ size: s?.value
64
71
  }, o(i ?? []);
65
72
  }
66
73
  );
67
- function T(r) {
68
- return r.length ? r.map((i) => ({
74
+ function T(t) {
75
+ return t.length ? t.map((i) => ({
69
76
  ...i,
70
77
  columnState: f(
71
78
  a.value,
@@ -74,91 +81,91 @@ const le = (t, e, o) => {
74
81
  )
75
82
  })) : [
76
83
  {
77
- label: _("ap.apTable.setting.defaultTemplate"),
78
- key: t.getActiveKey?.("DEFAULT_TEMPLATE") ?? E(),
79
- size: d?.value,
84
+ label: L("ap.apTable.setting.defaultTemplate"),
85
+ key: r.getActiveKey?.("DEFAULT_TEMPLATE") ?? N(),
86
+ size: s?.value,
80
87
  columnState: f(a?.value || [])
81
88
  }
82
89
  ];
83
90
  }
84
- function f(r, i = {}, n = !0) {
85
- const c = z(
91
+ function f(t, i = {}, l = !0) {
92
+ const c = E(
86
93
  {},
87
- n ? t.defaultValue || {} : {},
94
+ l ? r.defaultValue || {} : {},
88
95
  i,
89
- N
96
+ _
90
97
  );
91
- function x(J, M, j) {
92
- return J.map((u) => {
93
- const S = M?.[u.key] || {}, m = {
98
+ function h(M, j, C) {
99
+ return M.map((u) => {
100
+ const S = j?.[u.key] || {}, p = {
94
101
  key: u.key,
95
- label: R(u.title) ? X(
102
+ label: U(u.title) ? q(
96
103
  u,
97
- L("table-header", "title"),
104
+ O("table-header", "title"),
98
105
  void 0,
99
- O.value.colorTextTertiary
106
+ B.value.colorTextTertiary
100
107
  ) : u.title,
101
108
  show: !0,
102
- fixed: H(
109
+ fixed: Q(
103
110
  u,
104
111
  i[u.key],
105
- n ? t.defaultValue?.[u.key] : void 0,
106
- j
112
+ l ? r.defaultValue?.[u.key] : void 0,
113
+ C
107
114
  ),
108
115
  disabled: !1,
109
- ...P(S, ["children", "fixed"])
116
+ ...R(S, ["children", "fixed"])
110
117
  };
111
- return m.children = u.children?.length ? x(
118
+ return p.children = u.children?.length ? h(
112
119
  u.children,
113
120
  S.children,
114
- m
115
- ) : void 0, m;
116
- }).sort(Q);
121
+ p
122
+ ) : void 0, p;
123
+ }).sort(V);
117
124
  }
118
- return x(r || [], c);
125
+ return h(t || [], c);
119
126
  }
120
- function g(r) {
121
- if (p(e)) {
122
- const i = r.map((n) => ({
123
- ...n,
124
- columnState: U(n.columnState)
127
+ function x(t) {
128
+ if (v(e)) {
129
+ const i = t.map((l) => ({
130
+ ...l,
131
+ columnState: W(l.columnState)
125
132
  }));
126
- localStorage.setItem(p(e), JSON.stringify(i));
133
+ localStorage.setItem(v(e), JSON.stringify(i));
127
134
  }
128
135
  }
129
- function B(r) {
130
- l.value.push(r);
136
+ function F(t) {
137
+ n.value.push(t);
131
138
  }
132
- function F(r) {
133
- const i = l.value.findIndex(
134
- (n) => n.key === r
139
+ function w(t) {
140
+ const i = n.value.findIndex(
141
+ (l) => l.key === t
135
142
  );
136
- l.value.splice(i, 1);
143
+ n.value.splice(i, 1);
137
144
  }
138
- function w(r, i) {
139
- const n = l.value.findIndex(
140
- (c) => c.key === r
145
+ function J(t, i) {
146
+ const l = n.value.findIndex(
147
+ (c) => c.key === t
141
148
  );
142
- return l.value[n] = {
143
- ...l.value[n],
149
+ return n.value[l] = {
150
+ ...n.value[l],
144
151
  ...i
145
- }, l.value[n];
152
+ }, n.value[l];
146
153
  }
147
- return v(
148
- () => l.value,
149
- (r) => {
150
- g(r);
154
+ return d(
155
+ () => n.value,
156
+ (t) => {
157
+ t.length && x(t);
151
158
  },
152
159
  { deep: !0, immediate: !0 }
153
160
  ), {
154
- basicTemplate: s,
155
- customizeTemplateList: l,
156
- syncTemplateListToStorage: g,
157
- addTemplate: B,
158
- deleteTemplate: F,
159
- updateTemplate: w
161
+ basicTemplate: m,
162
+ customizeTemplateList: n,
163
+ syncTemplateListToStorage: x,
164
+ addTemplate: F,
165
+ deleteTemplate: w,
166
+ updateTemplate: J
160
167
  };
161
168
  };
162
169
  export {
163
- le as useTableTemplateStorage
170
+ ue as useTableTemplateStorage
164
171
  };
@@ -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;