@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,32 +1,32 @@
1
- import { defineComponent as me, ref as g, computed as U, toRef as fe, useSlots as de, createVNode as n, cloneVNode as ve, unref as e, watch as w, createElementBlock as E, openBlock as T, Fragment as ge, createBlock as K, createCommentVNode as j, resolveDynamicComponent as B, withCtx as o, withDirectives as ye, createElementVNode as m, normalizeClass as u, toDisplayString as y, createTextVNode as h, isRef as Se, vShow as Te } from "vue";
1
+ import { defineComponent as fe, ref as g, computed as U, watch as z, toRef as de, useSlots as ve, createVNode as l, cloneVNode as ge, unref as e, createElementBlock as E, openBlock as T, Fragment as ye, createBlock as B, createCommentVNode as j, resolveDynamicComponent as N, withCtx as s, withDirectives as Se, createElementVNode as m, normalizeClass as u, toDisplayString as y, createTextVNode as x, isRef as he, vShow as Te } from "vue";
2
2
  import { SettingOutlined as Ce, SaveOutlined as be } from "@ant-design/icons-vue";
3
- import { Button as F, Modal as he, Divider as N, RadioGroup as ke, RadioButton as M, Flex as _e, Space as q, Popover as ze } from "@aplus-frontend/antdv";
3
+ import { Button as F, Modal as ke, Divider as $, RadioGroup as _e, RadioButton as M, Flex as ze, Space as q, Popover as xe } from "@aplus-frontend/antdv";
4
4
  import "../../../../ap-button/index.mjs";
5
- import { randomStr as xe } from "../../../../utils/index.mjs";
5
+ import { randomStr as Ae } from "../../../../utils/index.mjs";
6
6
  import "../../../../config-provider/index.mjs";
7
- import { getSingleVNode as Ae } from "../../../../utils/slot.mjs";
8
- import { useInjectApTable as we } from "../../../context.mjs";
9
- import { useTableColumnState as Ke } from "../../../hooks/use-table-column-state.mjs";
10
- import { useTableTemplateStorage as Be } from "../../../hooks/use-table-template-storage.mjs";
11
- import Ne from "../../../style/setting.mjs";
12
- import { useProvideApColumnSetting as $e } from "../context.mjs";
7
+ import { getSingleVNode as we } from "../../../../utils/slot.mjs";
8
+ import { useInjectApTable as Ke } from "../../../context.mjs";
9
+ import { useTableColumnState as Be } from "../../../hooks/use-table-column-state.mjs";
10
+ import { useTableTemplateStorage as Ne } from "../../../hooks/use-table-template-storage.mjs";
11
+ import $e from "../../../style/setting.mjs";
12
+ import { useProvideApColumnSetting as Ie } from "../context.mjs";
13
13
  import "../sorter/index.vue.mjs";
14
14
  import "../template/edit-form.vue.mjs";
15
15
  import "../template/index.vue.mjs";
16
16
  import "../tree-select/index.vue.mjs";
17
- import Ie, { customCloneColumnStates as $, isEqualColumnStateIgnoreLabel as Re } from "../utils.mjs";
18
- import { useLocale as Ve } from "../../../../config-provider/hooks/use-locale.mjs";
17
+ import Re, { customCloneColumnStates as I, isEqualColumnStateIgnoreLabel as Ve } from "../utils.mjs";
18
+ import { useLocale as De } from "../../../../config-provider/hooks/use-locale.mjs";
19
19
  import { useNamespace as G } from "../../../../config-provider/hooks/use-namespace.mjs";
20
- import De from "../template/index.vue2.mjs";
21
- import Le from "../tree-select/index.vue2.mjs";
22
- import Oe from "../sorter/index.vue2.mjs";
23
- import Pe from "../../../../ap-button/ap-button.vue.mjs";
24
- import Ue from "../template/edit-form.vue2.mjs";
25
- const Ee = {
20
+ import Le from "../template/index.vue2.mjs";
21
+ import Oe from "../tree-select/index.vue2.mjs";
22
+ import Pe from "../sorter/index.vue2.mjs";
23
+ import Ue from "../../../../ap-button/ap-button.vue.mjs";
24
+ import Ee from "../template/edit-form.vue2.mjs";
25
+ const je = {
26
26
  style: {
27
27
  "padding-inline": "8px"
28
28
  }
29
- }, mt = /* @__PURE__ */ me({
29
+ }, ft = /* @__PURE__ */ fe({
30
30
  name: "ApTableSetting",
31
31
  __name: "index",
32
32
  props: {
@@ -41,120 +41,130 @@ const Ee = {
41
41
  columnsBackup: J,
42
42
  updateSize: Q,
43
43
  updateColumns: W
44
- } = we(), f = g(), k = U(() => c.config.persistenceKey), C = g(!1), {
44
+ } = Ke(), f = g(), C = U(() => c.config.persistenceKey), b = g(!1), {
45
45
  basicTemplate: X,
46
- customizeTemplateList: d,
46
+ customizeTemplateList: S,
47
47
  addTemplate: Y,
48
- deleteTemplate: I,
48
+ deleteTemplate: R,
49
49
  updateTemplate: Z
50
- } = Be(c.config, k, pe), {
50
+ } = Ne(c.config, C, pe), {
51
51
  columnState: p,
52
- setColumnState: R,
52
+ setColumnState: V,
53
53
  isAllSelected: ee,
54
54
  toggleSelectAll: te
55
- } = Ke([]), V = U(() => `${k.value}__active_key`);
55
+ } = Be([]), k = U(() => C.value && `${C.value}__active_key`);
56
56
  function D(a) {
57
- localStorage.setItem(V.value, a);
57
+ k.value && localStorage.setItem(k.value, a);
58
58
  }
59
- function _() {
60
- return localStorage.getItem(V.value);
59
+ function A() {
60
+ if (k.value)
61
+ return localStorage.getItem(k.value);
61
62
  }
62
- const i = g(c.config.defaultActiveKey ?? _() ?? d.value?.[0].key);
63
- $e({
64
- activeKey: i,
65
- cacheConfig: fe(c, "config"),
63
+ const o = g(c.config.defaultActiveKey ?? A());
64
+ z(() => S.value, (a) => {
65
+ a.length && !o.value && (o.value = a[0]?.key);
66
+ }, {
67
+ immediate: !0
68
+ }), Ie({
69
+ activeKey: o,
70
+ cacheConfig: de(c, "config"),
66
71
  deleteTemplate: ue
67
72
  });
68
73
  const {
69
74
  t: r
70
- } = Ve(), {
75
+ } = De(), {
71
76
  b: v,
72
- be: b
77
+ be: _
73
78
  } = G("ap-column-setting"), {
74
79
  b: ae
75
- } = G("ap-table"), le = Ne("ap-column-setting"), S = g(!1), L = g(!1), ne = de(), O = Ae(ne.trigger) || n(F, {
76
- icon: n(Ce, null, null),
80
+ } = G("ap-table"), ne = $e("ap-column-setting"), h = g(!1), L = g(!1), le = ve(), O = we(le.trigger) || l(F, {
81
+ icon: l(Ce, null, null),
77
82
  class: ae("setting-trigger-button")
78
- }, null), P = O ? ve(O, {
83
+ }, null), P = O ? ge(O, {
79
84
  onClick: () => {
80
- S.value = !0;
85
+ h.value = !0;
81
86
  }
82
87
  }) : null;
83
88
  function oe() {
84
- R($(e(X).columnState));
89
+ V(I(e(X).columnState));
85
90
  }
86
- function z(a, t) {
87
- W?.(Ie(e(J), a)), Q?.(t);
91
+ function w(a, t) {
92
+ W?.(Re(e(J), a)), Q?.(t);
88
93
  }
89
94
  function ie() {
90
- z(e(p), e(f)), S.value = !1;
91
- const a = $(p.value), t = Z(i.value, {
95
+ w(e(p), e(f)), h.value = !1;
96
+ const a = I(p.value), t = Z(o.value, {
92
97
  columnState: a,
93
98
  size: f.value
94
99
  });
95
- D(i.value), c.config?.onChange?.(a, t);
100
+ D(o.value), c.config?.onChange?.(a, t);
96
101
  }
97
102
  function se(a) {
98
- const t = c.config.getActiveKey?.(a) ?? xe(), l = {
103
+ const t = c.config.getActiveKey?.(a) ?? Ae(), n = {
99
104
  key: t,
100
105
  label: a,
101
106
  columnState: p.value,
102
107
  size: f.value
103
108
  };
104
- Y(l), C.value = !1, i.value = t, c.config.onChange?.(l.columnState, l);
109
+ Y(n), b.value = !1, o.value = t, c.config.onChange?.(n.columnState, n);
105
110
  }
106
- function re(a) {
107
- const t = [...d.value].find((l) => l?.key === a);
108
- t && (R($(t.columnState)), f.value = t.size);
111
+ function re(a, t) {
112
+ const n = [...t].find((i) => i?.key === a);
113
+ n && (V(I(n.columnState)), f.value = n.size);
109
114
  }
110
115
  function ue(a) {
111
- if (a !== i.value) {
112
- I(a);
116
+ if (a !== o.value) {
117
+ R(a);
113
118
  return;
114
119
  }
115
- const t = d.value, l = t.findIndex((A) => A.key === a), s = t[l + 1]?.key ?? t[l - 1]?.key;
116
- I(a), i.value = s, D(s);
120
+ const t = S.value, n = t.findIndex((d) => d.key === a), i = t[n + 1]?.key ?? t[n - 1]?.key;
121
+ R(a), o.value = i, D(i);
117
122
  }
118
123
  function ce(a) {
119
124
  if (L.value = a, !a) {
120
- const t = _();
121
- t && t !== i.value && (i.value = t);
125
+ const t = A();
126
+ t && t !== o.value && (o.value = t);
122
127
  }
123
128
  }
124
129
  function pe(a) {
125
- const t = _() ?? a[0].key;
126
- i.value = t;
127
- const l = [...a].find((s) => s?.key === t);
128
- l && z(l.columnState, l.size);
130
+ const t = A() ?? a[0].key;
131
+ o.value = t;
132
+ const n = [...a].find((i) => i?.key === t);
133
+ n && w(n.columnState, n.size);
129
134
  }
130
- w(() => i.value, (a, t) => {
131
- if (!t && a) {
132
- const l = [...d.value].find((s) => s?.key === a);
133
- if (!l)
134
- return;
135
- z(l.columnState, l.size);
135
+ z(
136
+ [o, S],
137
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
138
+ ([a, t], [n, i]) => {
139
+ if (t.length && !i?.length && a) {
140
+ const d = [...t].find((me) => me.key === a);
141
+ if (!d)
142
+ return;
143
+ w(d.columnState, d.size);
144
+ }
145
+ re(a, t);
146
+ },
147
+ {
148
+ immediate: !0
136
149
  }
137
- re(a);
138
- }, {
139
- immediate: !0
140
- });
141
- const x = g(!1);
142
- return w([f, p, S], ([a, t, l]) => {
143
- if (!l)
150
+ );
151
+ const K = g(!1);
152
+ return z([f, p, h], ([a, t, n]) => {
153
+ if (!n)
144
154
  return;
145
- const s = d.value.find((A) => A.key === i.value);
146
- s && (s.size !== a || !Re(t, s.columnState)) ? x.value = !0 : x.value = !1;
155
+ const i = S.value.find((d) => d.key === o.value);
156
+ i && (i.size !== a || !Ve(t, i.columnState)) ? K.value = !0 : K.value = !1;
147
157
  }, {
148
158
  deep: !0
149
- }), w(() => i.value, (a) => {
159
+ }), z(() => o.value, (a) => {
150
160
  c.config.onActiveChange?.(a);
151
161
  }, {
152
162
  immediate: !0
153
- }), (a, t) => (T(), E(ge, null, [e(P) ? (T(), K(B(e(P)), {
163
+ }), (a, t) => (T(), E(ye, null, [e(P) ? (T(), B(N(e(P)), {
154
164
  key: 0
155
- })) : j("", !0), n(e(he), {
156
- open: S.value,
157
- "onUpdate:open": t[4] || (t[4] = (l) => S.value = l),
165
+ })) : j("", !0), l(e(ke), {
166
+ open: h.value,
167
+ "onUpdate:open": t[4] || (t[4] = (n) => h.value = n),
158
168
  title: e(r)("ap.apTable.setting.title"),
159
169
  width: 1e3,
160
170
  centered: !0,
@@ -163,61 +173,61 @@ const Ee = {
163
173
  height: "516px"
164
174
  },
165
175
  "after-open-change": ce,
166
- "wrap-class-name": `${e(v)()} ${e(le)}`,
176
+ "wrap-class-name": `${e(v)()} ${e(ne)}`,
167
177
  "ok-text": e(r)("ap.apTable.setting.saveAndApply"),
168
178
  "mask-closable": !1,
169
179
  onOk: ie
170
180
  }, {
171
- footer: o(({
172
- extra: l
173
- }) => [n(e(_e), {
181
+ footer: s(({
182
+ extra: n
183
+ }) => [l(e(ze), {
174
184
  justify: "space-between"
175
185
  }, {
176
- default: o(() => [n(e(q), {
186
+ default: s(() => [l(e(q), {
177
187
  size: 12
178
188
  }, {
179
- default: o(() => [n(e(ze), {
180
- open: C.value,
181
- "onUpdate:open": t[3] || (t[3] = (s) => C.value = s),
189
+ default: s(() => [l(e(xe), {
190
+ open: b.value,
191
+ "onUpdate:open": t[3] || (t[3] = (i) => b.value = i),
182
192
  trigger: "click",
183
193
  arrow: !1,
184
194
  placement: "topLeft",
185
195
  "destroy-tooltip-on-hide": ""
186
196
  }, {
187
- content: o(() => [n(Ue, {
197
+ content: s(() => [l(Ee, {
188
198
  onConfirm: se,
189
- onCancel: t[2] || (t[2] = () => C.value = !1)
199
+ onCancel: t[2] || (t[2] = () => b.value = !1)
190
200
  })]),
191
- default: o(() => [n(e(Pe), {
201
+ default: s(() => [l(e(Ue), {
192
202
  type: "borderLink",
193
203
  disabled: !a.config.persistenceKey
194
204
  }, {
195
- icon: o(() => [n(e(be))]),
196
- default: o(() => [h(y(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
205
+ icon: s(() => [l(e(be))]),
206
+ default: s(() => [x(y(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
197
207
  _: 1
198
208
  }, 8, ["disabled"])]),
199
209
  _: 1
200
- }, 8, ["open"]), x.value ? (T(), E("span", {
210
+ }, 8, ["open"]), K.value ? (T(), E("span", {
201
211
  key: 0,
202
212
  class: u(e(v)("modify-tip"))
203
213
  }, y(e(r)("ap.apTable.setting.modifyNotification")), 3)) : j("", !0)]),
204
214
  _: 1
205
- }), n(e(q), {
215
+ }), l(e(q), {
206
216
  size: 10
207
217
  }, {
208
- default: o(() => [(T(), K(B(l.cancelBtn))), (T(), K(B(l.okBtn)))]),
218
+ default: s(() => [(T(), B(N(n.cancelBtn))), (T(), B(N(n.okBtn)))]),
209
219
  _: 2
210
220
  }, 1024)]),
211
221
  _: 2
212
222
  }, 1024)]),
213
- default: o(() => [ye(m("div", {
223
+ default: s(() => [Se(m("div", {
214
224
  class: u(e(v)("wrapper"))
215
225
  }, [m("div", {
216
226
  class: u(e(v)("left"))
217
- }, [n(De, {
218
- "customize-template-list": e(d),
219
- "persistence-key": k.value
220
- }, null, 8, ["customize-template-list", "persistence-key"])], 2), n(e(N), {
227
+ }, [l(Le, {
228
+ "customize-template-list": e(S),
229
+ "persistence-key": C.value
230
+ }, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e($), {
221
231
  type: "vertical",
222
232
  style: {
223
233
  height: "100%",
@@ -226,43 +236,43 @@ const Ee = {
226
236
  }), m("div", {
227
237
  class: u(e(v)("center"))
228
238
  }, [m("div", {
229
- class: u(e(b)("center", "header"))
239
+ class: u(e(_)("center", "header"))
230
240
  }, [m("div", {
231
- class: u(e(b)("center", "tip-wrapper"))
241
+ class: u(e(_)("center", "tip-wrapper"))
232
242
  }, [m("span", {
233
- class: u(e(b)("center", "header-tips"))
234
- }, y(e(r)("ap.apTable.setting.selectAllTip")), 3), n(e(F), {
243
+ class: u(e(_)("center", "header-tips"))
244
+ }, y(e(r)("ap.apTable.setting.selectAllTip")), 3), l(e(F), {
235
245
  type: "link",
236
246
  size: "small",
237
247
  onClick: e(te)
238
248
  }, {
239
- default: o(() => [h(y(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
249
+ default: s(() => [x(y(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
240
250
  _: 1
241
- }, 8, ["onClick"])], 2), n(e(ke), {
251
+ }, 8, ["onClick"])], 2), l(e(_e), {
242
252
  value: f.value,
243
- "onUpdate:value": t[0] || (t[0] = (l) => f.value = l)
253
+ "onUpdate:value": t[0] || (t[0] = (n) => f.value = n)
244
254
  }, {
245
- default: o(() => [n(e(M), {
255
+ default: s(() => [l(e(M), {
246
256
  value: "small"
247
257
  }, {
248
- default: o(() => [h(y(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
258
+ default: s(() => [x(y(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
249
259
  _: 1
250
- }), n(e(M), {
260
+ }), l(e(M), {
251
261
  value: "middle"
252
262
  }, {
253
- default: o(() => [h(y(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
263
+ default: s(() => [x(y(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
254
264
  _: 1
255
265
  })]),
256
266
  _: 1
257
- }, 8, ["value"])], 2), m("div", Ee, [n(e(N), {
267
+ }, 8, ["value"])], 2), m("div", je, [l(e($), {
258
268
  dashed: "",
259
269
  style: {
260
270
  margin: "0px"
261
271
  }
262
- })]), n(Le, {
263
- class: u(e(b)("center", "content")),
272
+ })]), l(Oe, {
273
+ class: u(e(_)("center", "content")),
264
274
  value: e(p)
265
- }, null, 8, ["class", "value"])], 2), n(e(N), {
275
+ }, null, 8, ["class", "value"])], 2), l(e($), {
266
276
  type: "vertical",
267
277
  style: {
268
278
  height: "100%",
@@ -270,9 +280,9 @@ const Ee = {
270
280
  }
271
281
  }), m("div", {
272
282
  class: u(e(v)("right"))
273
- }, [n(Oe, {
283
+ }, [l(Pe, {
274
284
  value: e(p),
275
- "onUpdate:value": t[1] || (t[1] = (l) => Se(p) ? p.value = l : null),
285
+ "onUpdate:value": t[1] || (t[1] = (n) => he(p) ? p.value = n : null),
276
286
  onReset: oe
277
287
  }, null, 8, ["value"])], 2)], 2), [[Te, L.value]])]),
278
288
  _: 1
@@ -280,5 +290,5 @@ const Ee = {
280
290
  }
281
291
  });
282
292
  export {
283
- mt as default
293
+ ft as default
284
294
  };
@@ -1,5 +1,5 @@
1
1
  import { provide as o, inject as r } from "vue";
2
- const e = Symbol("apTableSorterContextKey");
2
+ const e = /* @__PURE__ */ Symbol("apTableSorterContextKey");
3
3
  function i(t) {
4
4
  o(e, t);
5
5
  }
@@ -1,12 +1,11 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
2
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
3
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
5
5
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
6
6
  import { Options } from '../../../../../node_modules/scroll-into-view-if-needed';
7
7
  import { Recordable } from '../../../../type';
8
8
  import { VueTypeDef, VueTypeValidableDef } from '../../../../../node_modules/vue-types';
9
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
10
9
  import { SizeType } from '@aplus-frontend/antdv/es/button';
11
10
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
11
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../../ap-form';
@@ -113,7 +112,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
113
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
114
113
  readonly initialValues?: Recordable | undefined;
115
114
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
116
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
115
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
117
116
  readonly syncToUrlPriority?: boolean | undefined;
118
117
  readonly autoFocusFirstInput?: boolean | undefined;
119
118
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -11,21 +11,19 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
11
11
  import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
12
12
  import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
13
13
  import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
14
- import { PanelMode, RangeValue, OnPanelChange, PresetDate, DisabledTime, CustomFormat, PickerMode, EventValue, DisabledTimes } from '@aplus-frontend/antdv/es/vc-picker/interface';
14
+ import { PanelMode, RangeValue, OnPanelChange, PresetDate, CustomFormat, DisabledTimes, DisabledTime, PickerMode, EventValue } from '@aplus-frontend/antdv/es/vc-picker/interface';
15
15
  import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
16
16
  import { LiteralUnion, Recordable } from '../type';
17
17
  import { ApFormatPresetType } from '../ap-field/date/interface';
18
- import { DatePickerProps, InputNumberProps, RadioChangeEvent, SelectProps, CheckboxOptionType, CheckboxGroupProps, TreeSelectProps, CascaderProps } from '@aplus-frontend/antdv';
19
18
  import { ZoneAlias } from '@aplus-frontend/utils';
20
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
21
19
  import { OnCleanup } from '@vue/reactivity';
22
20
  import { ApFormItemSlots, ApFormItemTextPassword, ApActionGroupProps, GroupActionTypes } from '..';
23
21
  import { RangeDateRender, RangeType, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
24
- import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker';
25
22
  import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
26
23
  import { VueTypeValidableDef, VueTypeDef } from '../../node_modules/vue-types';
27
24
  import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
28
25
  import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
26
+ import { RadioChangeEvent, CheckboxOptionType, TreeSelectProps, CascaderProps } from '@aplus-frontend/antdv';
29
27
  import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
30
28
  import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
31
29
  import { RenderDOMFunc, CustomTagProps, DropdownRender, DisplayValueType, Placement } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
@@ -83,7 +81,7 @@ export declare const apTableFormItemMap: {
83
81
  readonly onSelect?: ((value: Dayjs) => void) | undefined;
84
82
  readonly open?: boolean | undefined;
85
83
  readonly disabled?: boolean | undefined;
86
- readonly direction?: ("ltr" | "rtl") | undefined;
84
+ readonly direction?: "ltr" | "rtl" | undefined;
87
85
  readonly placeholder?: string | undefined;
88
86
  readonly id?: string | undefined;
89
87
  readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
@@ -120,19 +118,19 @@ export declare const apTableFormItemMap: {
120
118
  readonly showToday?: boolean | undefined;
121
119
  readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
122
120
  readonly valueFormat?: string | undefined;
123
- readonly value?: (number | null) | undefined;
121
+ readonly value?: number | null | undefined;
124
122
  readonly defaultValue?: number | undefined;
125
123
  readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
126
124
  readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
127
125
  readonly onOk?: ((ts: number | null) => void) | undefined;
128
126
  readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
129
- readonly shownFormat?: DatePickerProps["format"];
127
+ readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
130
128
  readonly formatBegins?: boolean | undefined;
131
129
  readonly timezone?: ( ZoneAlias | {
132
130
  label?: string;
133
131
  value: ZoneAlias;
134
132
  }[]) | undefined;
135
- readonly disabledTime?: SharedTimeProps<Dayjs>["disabledTime"];
133
+ readonly disabledTime?: ((date: Dayjs) => DisabledTimes) | undefined;
136
134
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
137
135
  $attrs: {
138
136
  [x: string]: unknown;
@@ -892,8 +890,8 @@ export declare const apTableFormItemMap: {
892
890
  readonly onMouseup?: MouseEventHandler | undefined;
893
891
  readonly open?: boolean | undefined;
894
892
  readonly separator?: VueNode;
895
- readonly disabled?: (boolean | [boolean, boolean]) | undefined;
896
- readonly direction?: ("ltr" | "rtl") | undefined;
893
+ readonly disabled?: boolean | [boolean, boolean] | undefined;
894
+ readonly direction?: "ltr" | "rtl" | undefined;
897
895
  readonly placeholder?: [string, string] | undefined;
898
896
  readonly id?: string | undefined;
899
897
  readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
@@ -928,7 +926,7 @@ export declare const apTableFormItemMap: {
928
926
  readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
929
927
  readonly allowEmpty?: [boolean, boolean] | undefined;
930
928
  readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
931
- readonly activePickerIndex?: (0 | 1) | undefined;
929
+ readonly activePickerIndex?: 0 | 1 | undefined;
932
930
  readonly valueFormat?: string | undefined;
933
931
  readonly value?: ( RangeValue<number> | null) | undefined;
934
932
  readonly defaultValue?: RangeValue<number> | undefined;
@@ -936,13 +934,13 @@ export declare const apTableFormItemMap: {
936
934
  readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
937
935
  readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
938
936
  readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
939
- readonly shownFormat?: RangePickerProps["format"];
937
+ readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
940
938
  readonly timezone?: ( ZoneAlias | {
941
939
  label?: string;
942
940
  value: ZoneAlias;
943
941
  }[]) | undefined;
944
942
  readonly readModeSeparator?: any;
945
- readonly presets?: RangePickerProps["presets"] | true | {
943
+ readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
946
944
  thisWeek?: boolean;
947
945
  lastWeek?: boolean;
948
946
  last7Days?: boolean;
@@ -954,7 +952,7 @@ export declare const apTableFormItemMap: {
954
952
  lastQuarter?: boolean;
955
953
  thisYear?: boolean;
956
954
  lastYear?: boolean;
957
- };
955
+ } | undefined;
958
956
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
959
957
  $attrs: {
960
958
  [x: string]: unknown;
@@ -1788,7 +1786,7 @@ export declare const apTableFormItemMap: {
1788
1786
  offset: ValueType;
1789
1787
  type: "up" | "down";
1790
1788
  }) => void) | undefined;
1791
- readonly inputMode?: InputNumberProps["mode"];
1789
+ readonly inputMode?: "input" | "spinner" | undefined;
1792
1790
  readonly thousands?: boolean | undefined;
1793
1791
  readonly limitDecimalsRetain?: boolean | undefined;
1794
1792
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -2578,16 +2576,16 @@ export declare const apTableFormItemMap: {
2578
2576
  readonly showAction?: ("click" | "focus")[] | undefined;
2579
2577
  readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
2580
2578
  readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
2581
- readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
2579
+ readonly request?: ((value?: string, extraParams?: Recordable) => Promise< DefaultOptionType[] | undefined>) | undefined;
2582
2580
  readonly multiple?: boolean | undefined;
2583
- readonly value?: SelectProps["value"];
2581
+ readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
2584
2582
  readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
2585
- readonly searchMode?: ("filter" | "request") | undefined;
2583
+ readonly searchMode?: "filter" | "request" | undefined;
2586
2584
  readonly refetchOnFocus?: boolean | undefined;
2587
2585
  readonly fetchOnFocus?: boolean | undefined;
2588
2586
  readonly fetchOnOpen?: boolean | undefined;
2589
- readonly lazy?: (boolean | "first-focus" | "first-open") | undefined;
2590
- readonly addAll?: (boolean | number) | undefined;
2587
+ readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
2588
+ readonly addAll?: boolean | number | undefined;
2591
2589
  readonly params?: Recordable | undefined;
2592
2590
  readonly searchDelay?: number | undefined;
2593
2591
  readonly allowOnlySelect?: boolean | undefined;
@@ -3246,7 +3244,7 @@ export declare const apTableFormItemMap: {
3246
3244
  readonly unCheckedValue?: string | number | boolean | undefined;
3247
3245
  readonly 'onUpdate:checked'?: (((checked: string | number | boolean) => void) & ((...args: any[]) => any)) | undefined;
3248
3246
  readonly onAction?: ((checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>) | undefined;
3249
- readonly confirm?: ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig) | undefined;
3247
+ readonly confirm?: ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig) | ApFieldSwitchConfirmConfig;
3250
3248
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
3251
3249
  $attrs: {
3252
3250
  [x: string]: unknown;
@@ -4326,7 +4324,7 @@ export declare const apTableFormItemMap: {
4326
4324
  readonly id?: string | undefined;
4327
4325
  readonly prefixCls?: string | undefined;
4328
4326
  readonly name?: string | undefined;
4329
- readonly request?: (() => Promise< CheckboxGroupProps["options"]>) | undefined;
4327
+ readonly request?: (() => Promise<(string | number | CheckboxOptionType)[] | undefined>) | undefined;
4330
4328
  readonly vertical?: boolean | undefined;
4331
4329
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
4332
4330
  $attrs: {
@@ -1,5 +1,5 @@
1
1
  import { provide as s, inject as a, computed as t } from "vue";
2
- const r = Symbol("apTableContextKey");
2
+ const r = /* @__PURE__ */ Symbol("apTableContextKey");
3
3
  function n(o) {
4
4
  s(r, o);
5
5
  }