@aplus-frontend/ui 7.13.6 → 7.13.8

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 (215) hide show
  1. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
  2. package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
  3. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
  4. package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
  5. package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
  6. package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
  7. package/es/src/ag-grid/editable/index.vue.mjs +27 -27
  8. package/es/src/ag-grid/index.vue.mjs +249 -249
  9. package/es/src/ap-action/group/index.vue.mjs +15 -15
  10. package/es/src/ap-action/item/index.vue2.mjs +28 -28
  11. package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
  12. package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
  13. package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
  14. package/es/src/ap-field/date/index.vue.mjs +50 -50
  15. package/es/src/ap-field/date/read.vue2.mjs +7 -7
  16. package/es/src/ap-field/date-range/index.vue.mjs +30 -30
  17. package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
  18. package/es/src/ap-field/number/index.vue.mjs +24 -24
  19. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  20. package/es/src/ap-field/second/index.vue.mjs +15 -15
  21. package/es/src/ap-field/second/read.vue2.mjs +7 -7
  22. package/es/src/ap-field/segmented/index.vue.mjs +24 -24
  23. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  24. package/es/src/ap-field/select/index.vue.mjs +246 -206
  25. package/es/src/ap-field/select/read.vue2.mjs +6 -6
  26. package/es/src/ap-field/slider/index.vue.mjs +11 -11
  27. package/es/src/ap-field/style/select.mjs +17 -4
  28. package/es/src/ap-field/switch/index.vue.mjs +45 -45
  29. package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
  30. package/es/src/ap-field/text/read.vue2.mjs +3 -3
  31. package/es/src/ap-field/text-area/index.vue.mjs +29 -29
  32. package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
  33. package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
  34. package/es/src/ap-form/ap-form.vue2.mjs +46 -46
  35. package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
  36. package/es/src/ap-form/item/index.vue.mjs +75 -75
  37. package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
  38. package/es/src/ap-form/items/number/index.vue.mjs +17 -17
  39. package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
  40. package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
  41. package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
  42. package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
  43. package/es/src/ap-form/items/text/password.vue.mjs +19 -19
  44. package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
  45. package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
  46. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
  47. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
  48. package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
  49. package/es/src/ap-grid/editable/index.vue.mjs +19 -19
  50. package/es/src/ap-grid/index.vue.mjs +212 -212
  51. package/es/src/ap-list/index.vue.mjs +116 -116
  52. package/es/src/ap-table/ap-table.vue2.mjs +217 -217
  53. package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
  54. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -42
  55. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
  56. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
  57. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
  58. package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +22 -22
  59. package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
  60. package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
  61. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
  62. package/es/src/ap-table/constants.d.ts +2 -2
  63. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
  64. package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
  65. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
  66. package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
  67. package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
  68. package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
  69. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
  70. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +168 -157
  71. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
  72. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
  73. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
  74. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
  75. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
  76. package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
  77. package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
  78. package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
  79. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  80. package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
  81. package/es/src/business/batch-input-group/index.vue.mjs +60 -60
  82. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
  83. package/es/src/editable-table/form-item.vue.mjs +35 -35
  84. package/es/src/editable-table/index.vue.mjs +19 -19
  85. package/es/src/full-screen/index.vue.mjs +46 -46
  86. package/es/src/mask/index.vue.mjs +48 -48
  87. package/es/src/portal/index.vue.mjs +5 -5
  88. package/es/src/scroll-bar/internal.vue.mjs +62 -62
  89. package/es/src/scroll-view/index.vue.mjs +66 -66
  90. package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
  91. package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
  92. package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
  93. package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
  94. package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
  95. package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
  96. package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
  97. package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
  98. package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
  99. package/es/src/skeleton/descriptions.vue2.mjs +15 -15
  100. package/es/src/skeleton/list-page.vue2.mjs +12 -12
  101. package/es/src/splitter/Panel.vue2.mjs +11 -11
  102. package/es/src/splitter/SplitBar.vue2.mjs +79 -79
  103. package/es/src/splitter/Splitter.vue2.mjs +50 -50
  104. package/es/src/text/group.vue.mjs +8 -8
  105. package/es/src/text/index.vue.mjs +48 -48
  106. package/es/src/version.d.ts +1 -1
  107. package/es/src/version.mjs +1 -1
  108. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
  109. package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
  110. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  111. package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
  112. package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
  113. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  114. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  115. package/lib/src/ag-grid/index.vue.js +1 -1
  116. package/lib/src/ap-action/group/index.vue.js +1 -1
  117. package/lib/src/ap-action/item/index.vue2.js +1 -1
  118. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  119. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  120. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  121. package/lib/src/ap-field/date/index.vue.js +1 -1
  122. package/lib/src/ap-field/date/read.vue2.js +1 -1
  123. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  124. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  125. package/lib/src/ap-field/number/index.vue.js +1 -1
  126. package/lib/src/ap-field/radio/index.vue.js +1 -1
  127. package/lib/src/ap-field/second/index.vue.js +1 -1
  128. package/lib/src/ap-field/second/read.vue2.js +1 -1
  129. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  130. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  131. package/lib/src/ap-field/select/index.vue.js +1 -1
  132. package/lib/src/ap-field/select/read.vue2.js +1 -1
  133. package/lib/src/ap-field/slider/index.vue.js +1 -1
  134. package/lib/src/ap-field/style/select.js +1 -1
  135. package/lib/src/ap-field/switch/index.vue.js +1 -1
  136. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  137. package/lib/src/ap-field/text/read.vue2.js +1 -1
  138. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  139. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  140. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  141. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  142. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  143. package/lib/src/ap-form/item/index.vue.js +1 -1
  144. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  145. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  146. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  147. package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
  148. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  149. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  150. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  151. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  152. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  153. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  154. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  155. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  156. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  157. package/lib/src/ap-grid/index.vue.js +1 -1
  158. package/lib/src/ap-list/index.vue.js +1 -1
  159. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  160. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  161. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  162. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  163. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  164. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  165. package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
  166. package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
  167. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  168. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  169. package/lib/src/ap-table/constants.d.ts +2 -2
  170. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  171. package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
  172. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  173. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
  174. package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
  175. package/lib/src/business/ap-download/ap-download.vue.js +1 -1
  176. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
  177. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  178. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  179. package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
  180. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  181. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  182. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  183. package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
  184. package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
  185. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  186. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  187. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  188. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  189. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  190. package/lib/src/editable-table/form-item.vue.js +1 -1
  191. package/lib/src/editable-table/index.vue.js +1 -1
  192. package/lib/src/full-screen/index.vue.js +1 -1
  193. package/lib/src/mask/index.vue.js +1 -1
  194. package/lib/src/portal/index.vue.js +1 -1
  195. package/lib/src/scroll-bar/internal.vue.js +1 -1
  196. package/lib/src/scroll-view/index.vue.js +1 -1
  197. package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
  198. package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
  199. package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
  200. package/lib/src/skeleton/components/list/index.vue2.js +1 -1
  201. package/lib/src/skeleton/components/list/item.vue2.js +1 -1
  202. package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
  203. package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
  204. package/lib/src/skeleton/components/table/index.vue2.js +1 -1
  205. package/lib/src/skeleton/components/table/item.vue2.js +1 -1
  206. package/lib/src/skeleton/descriptions.vue2.js +1 -1
  207. package/lib/src/skeleton/list-page.vue2.js +1 -1
  208. package/lib/src/splitter/Panel.vue2.js +1 -1
  209. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  210. package/lib/src/splitter/Splitter.vue2.js +1 -1
  211. package/lib/src/text/group.vue.js +1 -1
  212. package/lib/src/text/index.vue.js +1 -1
  213. package/lib/src/version.d.ts +1 -1
  214. package/lib/src/version.js +1 -1
  215. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as pe, ref as v, computed as ce, toRef as me, useSlots as de, createVNode as l, cloneVNode as fe, unref as e, watch as E, createElementBlock as P, openBlock as S, Fragment as ve, createBlock as x, createCommentVNode as j, resolveDynamicComponent as w, withCtx as o, withDirectives as ge, createElementVNode as c, normalizeClass as u, toDisplayString as g, createTextVNode as h, isRef as ye, vShow as Se } from "vue";
1
+ import { defineComponent as pe, ref as v, computed as ce, toRef as me, useSlots as de, createVNode as l, cloneVNode as fe, unref as e, watch as P, createElementBlock as j, openBlock as S, Fragment as ve, createBlock as x, createCommentVNode as F, resolveDynamicComponent as w, withCtx as o, withDirectives as ge, createElementVNode as c, normalizeClass as u, toDisplayString as g, createTextVNode as h, isRef as ye, vShow as Se } from "vue";
2
2
  import { SettingOutlined as Te, SaveOutlined as be } from "@ant-design/icons-vue";
3
- import { Button as F, Modal as Ce, Divider as A, RadioGroup as he, RadioButton as M, Flex as ke, Space as q, Popover as _e } from "@aplus-frontend/antdv";
3
+ import { Button as M, Modal as Ce, Divider as A, RadioGroup as he, RadioButton as q, Flex as ke, Space as G, Popover as _e } from "@aplus-frontend/antdv";
4
4
  import "../../../../ap-button/index.mjs";
5
5
  import { randomStr as ze } from "../../../../utils/index.mjs";
6
6
  import "../../../../config-provider/index.mjs";
@@ -16,7 +16,7 @@ import "../template/index.vue.mjs";
16
16
  import "../tree-select/index.vue.mjs";
17
17
  import $e, { customCloneColumnStates as B, isEqualColumnStateIgnoreLabel as Ie } from "../utils.mjs";
18
18
  import { useLocale as Le } from "../../../../config-provider/hooks/use-locale.mjs";
19
- import { useNamespace as G } from "../../../../config-provider/hooks/use-namespace.mjs";
19
+ import { useNamespace as H } from "../../../../config-provider/hooks/use-namespace.mjs";
20
20
  import Re from "../template/index.vue2.mjs";
21
21
  import Ve from "../tree-select/index.vue2.mjs";
22
22
  import De from "../sorter/index.vue2.mjs";
@@ -36,8 +36,8 @@ const Ee = {
36
36
  })
37
37
  }
38
38
  },
39
- setup(H) {
40
- const T = H, {
39
+ setup(N) {
40
+ const T = N, {
41
41
  columnsBackup: J,
42
42
  updateSize: Q,
43
43
  updateColumns: W
@@ -45,21 +45,21 @@ const Ee = {
45
45
  basicTemplate: X,
46
46
  customizeTemplateList: d,
47
47
  addTemplate: Y,
48
- deleteTemplate: N,
48
+ deleteTemplate: K,
49
49
  updateTemplate: Z
50
50
  } = Be(T.config, k), {
51
51
  columnState: p,
52
- setColumnState: K,
52
+ setColumnState: $,
53
53
  isAllSelected: ee,
54
54
  toggleSelectAll: te
55
- } = Ae([]), $ = `${k.value}__active_key`;
56
- function I(a) {
57
- localStorage.setItem($, a);
55
+ } = Ae([]), I = `${k.value}__active_key`;
56
+ function L(a) {
57
+ localStorage.setItem(I, a);
58
58
  }
59
- function L() {
60
- return localStorage.getItem($);
59
+ function R() {
60
+ return localStorage.getItem(I);
61
61
  }
62
- const i = v(L() ?? d.value?.[0].key);
62
+ const i = v(R() ?? d.value?.[0].key);
63
63
  Ke({
64
64
  activeKey: i,
65
65
  cacheConfig: me(T, "config"),
@@ -70,29 +70,29 @@ const Ee = {
70
70
  } = Le(), {
71
71
  b: f,
72
72
  be: C
73
- } = G("ap-column-setting"), {
73
+ } = H("ap-column-setting"), {
74
74
  b: ae
75
- } = G("ap-table"), le = Ne("ap-column-setting"), y = v(!1), R = v(!1), ne = de(), V = xe(ne.trigger) || l(F, {
75
+ } = H("ap-table"), le = Ne("ap-column-setting"), y = v(!1), V = v(!1), ne = de(), D = xe(ne.trigger) || l(M, {
76
76
  icon: l(Te, null, null),
77
77
  class: ae("setting-trigger-button")
78
- }, null), D = V ? fe(V, {
78
+ }, null), O = D ? fe(D, {
79
79
  onClick: () => {
80
80
  y.value = !0;
81
81
  }
82
82
  }) : null;
83
83
  function oe() {
84
- K(B(e(X).columnState));
84
+ $(B(e(X).columnState));
85
85
  }
86
- function O(a, t) {
86
+ function U(a, t) {
87
87
  W?.($e(e(J), a)), Q?.(t);
88
88
  }
89
89
  function ie() {
90
- O(e(p), e(m)), y.value = !1;
90
+ U(e(p), e(m)), y.value = !1;
91
91
  const a = B(p.value), t = Z(i.value, {
92
92
  columnState: a,
93
93
  size: m.value
94
94
  });
95
- I(i.value), T.config?.onChange?.(a, t);
95
+ L(i.value), T.config?.onChange?.(a, t);
96
96
  }
97
97
  function se(a) {
98
98
  const t = ze();
@@ -103,46 +103,46 @@ const Ee = {
103
103
  size: m.value
104
104
  }), b.value = !1, i.value = t;
105
105
  }
106
- function U(a) {
106
+ function E(a) {
107
107
  const t = [...d.value].find((n) => n?.key === a);
108
- t && (K(B(t.columnState)), m.value = t.size);
108
+ t && ($(B(t.columnState)), m.value = t.size);
109
109
  }
110
110
  function re(a) {
111
111
  if (a !== i.value) {
112
- N(a);
112
+ K(a);
113
113
  return;
114
114
  }
115
115
  const t = d.value, n = t.findIndex((z) => z.key === a), s = t[n + 1]?.key ?? t[n - 1]?.key;
116
- N(a), i.value = s, I(s);
116
+ K(a), i.value = s, L(s);
117
117
  }
118
118
  function ue(a) {
119
- if (R.value = a, !a) {
120
- const t = L();
119
+ if (V.value = a, !a) {
120
+ const t = R();
121
121
  t && t !== i.value && (i.value = t);
122
122
  }
123
123
  }
124
- E(() => i.value, (a, t) => {
124
+ P(() => i.value, (a, t) => {
125
125
  if (!t && a) {
126
126
  const n = [...d.value].find((s) => s?.key === a);
127
127
  if (!n)
128
128
  return;
129
- O(n.columnState, n.size);
129
+ U(n.columnState, n.size);
130
130
  }
131
- U(a);
131
+ E(a);
132
132
  }, {
133
133
  immediate: !0
134
134
  });
135
135
  const _ = v(!1);
136
- return E([m, p, y], ([a, t, n]) => {
136
+ return P([m, p, y], ([a, t, n]) => {
137
137
  if (!n)
138
138
  return;
139
139
  const s = d.value.find((z) => z.key === i.value);
140
140
  s && (s.size !== a || !Ie(t, s.columnState)) ? _.value = !0 : _.value = !1;
141
141
  }, {
142
142
  deep: !0
143
- }), (a, t) => (S(), P(ve, null, [e(D) ? (S(), x(w(e(D)), {
143
+ }), (a, t) => (S(), j(ve, null, [e(O) ? (S(), x(w(e(O)), {
144
144
  key: 0
145
- })) : j("", !0), l(e(Ce), {
145
+ })) : F("", !0), l(e(Ce), {
146
146
  open: y.value,
147
147
  "onUpdate:open": t[4] || (t[4] = (n) => y.value = n),
148
148
  title: e(r)("ap.apTable.setting.title"),
@@ -162,7 +162,7 @@ const Ee = {
162
162
  }) => [l(e(ke), {
163
163
  justify: "space-between"
164
164
  }, {
165
- default: o(() => [l(e(q), {
165
+ default: o(() => [l(e(G), {
166
166
  size: 12
167
167
  }, {
168
168
  default: o(() => [l(e(_e), {
@@ -179,19 +179,19 @@ const Ee = {
179
179
  })]),
180
180
  default: o(() => [l(e(Oe), {
181
181
  type: "borderLink",
182
- disabled: !a.config.persistenceKey
182
+ disabled: !N.config.persistenceKey
183
183
  }, {
184
184
  icon: o(() => [l(e(be))]),
185
185
  default: o(() => [h(g(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
186
186
  _: 1
187
187
  }, 8, ["disabled"])]),
188
188
  _: 1
189
- }, 8, ["open"]), _.value ? (S(), P("span", {
189
+ }, 8, ["open"]), _.value ? (S(), j("span", {
190
190
  key: 0,
191
191
  class: u(e(f)("modify-tip"))
192
- }, g(e(r)("ap.apTable.setting.modifyNotification")), 3)) : j("", !0)]),
192
+ }, g(e(r)("ap.apTable.setting.modifyNotification")), 3)) : F("", !0)]),
193
193
  _: 1
194
- }), l(e(q), {
194
+ }), l(e(G), {
195
195
  size: 10
196
196
  }, {
197
197
  default: o(() => [(S(), x(w(n.cancelBtn))), (S(), x(w(n.okBtn)))]),
@@ -206,7 +206,7 @@ const Ee = {
206
206
  }, [l(Re, {
207
207
  "customize-template-list": e(d),
208
208
  "persistence-key": k.value,
209
- onActiveChange: U
209
+ onActiveChange: E
210
210
  }, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e(A), {
211
211
  type: "vertical",
212
212
  style: {
@@ -221,7 +221,7 @@ const Ee = {
221
221
  class: u(e(C)("center", "tip-wrapper"))
222
222
  }, [c("span", {
223
223
  class: u(e(C)("center", "header-tips"))
224
- }, g(e(r)("ap.apTable.setting.selectAllTip")), 3), l(e(F), {
224
+ }, g(e(r)("ap.apTable.setting.selectAllTip")), 3), l(e(M), {
225
225
  type: "link",
226
226
  size: "small",
227
227
  onClick: e(te)
@@ -232,12 +232,12 @@ const Ee = {
232
232
  value: m.value,
233
233
  "onUpdate:value": t[0] || (t[0] = (n) => m.value = n)
234
234
  }, {
235
- default: o(() => [l(e(M), {
235
+ default: o(() => [l(e(q), {
236
236
  value: "small"
237
237
  }, {
238
238
  default: o(() => [h(g(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
239
239
  _: 1
240
- }), l(e(M), {
240
+ }), l(e(q), {
241
241
  value: "middle"
242
242
  }, {
243
243
  default: o(() => [h(g(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
@@ -264,7 +264,7 @@ const Ee = {
264
264
  value: e(p),
265
265
  "onUpdate:value": t[1] || (t[1] = (n) => ye(p) ? p.value = n : null),
266
266
  onReset: oe
267
- }, null, 8, ["value"])], 2)], 2), [[Se, R.value]])]),
267
+ }, null, 8, ["value"])], 2)], 2), [[Se, V.value]])]),
268
268
  _: 1
269
269
  }, 8, ["open", "title", "wrap-class-name", "ok-text"])], 64));
270
270
  }
@@ -1,16 +1,16 @@
1
- import { defineComponent as U, ref as x, computed as v, unref as n, watch as D, createElementBlock as k, openBlock as s, normalizeClass as w, createElementVNode as b, createVNode as i, withCtx as d, createBlock as u, resolveDynamicComponent as C, Fragment as L, renderList as j, mergeProps as z } from "vue";
2
- import { Checkbox as g, Row as F, Col as I } from "@aplus-frontend/antdv";
1
+ import { defineComponent as P, ref as U, computed as k, unref as n, watch as D, createElementBlock as w, openBlock as s, normalizeClass as b, createElementVNode as C, createVNode as i, withCtx as d, createBlock as u, resolveDynamicComponent as g, Fragment as L, renderList as j, mergeProps as z } from "vue";
2
+ import { Checkbox as y, Row as F, Col as I } from "@aplus-frontend/antdv";
3
3
  import "../../../../config-provider/index.mjs";
4
4
  import { useInjectApTable as R } from "../../../context.mjs";
5
- import { getLabelNode as y } from "../utils.mjs";
5
+ import { getLabelNode as _ } from "../utils.mjs";
6
6
  import { useNamespace as T } from "../../../../config-provider/hooks/use-namespace.mjs";
7
- const M = /* @__PURE__ */ U({
7
+ const M = /* @__PURE__ */ P({
8
8
  __name: "index",
9
9
  props: {
10
10
  value: {}
11
11
  },
12
- setup(_) {
13
- const r = _, { b: h } = T("ap-column-setting-select-group"), c = x(!1), { columnsBackup: S, renderConfig: m } = R(), f = v(() => n(S)?.find(
12
+ setup(h) {
13
+ const r = h, { b: m } = T("ap-column-setting-select-group"), c = U(!1), { columnsBackup: S, renderConfig: f } = R(), p = k(() => n(S)?.find(
14
14
  (t) => t.key === r.value?.key
15
15
  ));
16
16
  function A(e) {
@@ -29,10 +29,10 @@ const M = /* @__PURE__ */ U({
29
29
  if (!a)
30
30
  return;
31
31
  a.show = t;
32
- const p = o.children.every((l) => l.show), P = o.children.some((l) => l.show);
33
- o.show = p, c.value = P && !p;
32
+ const v = o.children.every((l) => l.show), E = o.children.some((l) => l.show);
33
+ o.show = v, c.value = E && !v;
34
34
  }
35
- const E = v(() => r.value.disabled || r.value.children.every((e) => e.disabled));
35
+ const x = k(() => r.value.disabled || r.value.children.every((e) => e.disabled));
36
36
  return D(
37
37
  () => r.value,
38
38
  (e) => {
@@ -43,37 +43,37 @@ const M = /* @__PURE__ */ U({
43
43
  deep: !0,
44
44
  immediate: !0
45
45
  }
46
- ), (e, t) => (s(), k("div", {
47
- class: w(n(h)())
46
+ ), (e, t) => (s(), w("div", {
47
+ class: b(n(m)())
48
48
  }, [
49
- b("div", {
50
- class: w(n(h)("header"))
49
+ C("div", {
50
+ class: b(n(m)("header"))
51
51
  }, [
52
- i(n(g), {
52
+ i(n(y), {
53
53
  indeterminate: c.value,
54
- checked: e.value?.show,
55
- disabled: E.value,
54
+ checked: h.value?.show,
55
+ disabled: x.value,
56
56
  "onUpdate:checked": B
57
57
  }, {
58
58
  default: d(() => [
59
- (s(), u(C(n(y)(f.value, n(m)))))
59
+ (s(), u(g(n(_)(p.value, n(f)))))
60
60
  ]),
61
61
  _: 1
62
62
  }, 8, ["indeterminate", "checked", "disabled"])
63
63
  ], 2),
64
- b("div", null, [
64
+ C("div", null, [
65
65
  i(n(F), { align: "middle" }, {
66
66
  default: d(() => [
67
- (s(!0), k(L, null, j(f.value.children, (o) => (s(), u(n(I), {
67
+ (s(!0), w(L, null, j(p.value.children, (o) => (s(), u(n(I), {
68
68
  key: o.key,
69
69
  span: 8
70
70
  }, {
71
71
  default: d(() => [
72
- i(n(g), z({ ref_for: !0 }, A(o), {
72
+ i(n(y), z({ ref_for: !0 }, A(o), {
73
73
  "onUpdate:checked": (a) => N(o.key, a)
74
74
  }), {
75
75
  default: d(() => [
76
- (s(), u(C(n(y)(o, n(m)))))
76
+ (s(), u(g(n(_)(o, n(f)))))
77
77
  ]),
78
78
  _: 2
79
79
  }, 1040, ["onUpdate:checked"])
@@ -1,36 +1,36 @@
1
- import { defineComponent as v, ref as c, createElementBlock as r, openBlock as n, normalizeClass as u, unref as t, createVNode as m, createCommentVNode as i, withCtx as f, createBlock as k } from "vue";
1
+ import { defineComponent as v, ref as c, createElementBlock as u, openBlock as o, normalizeClass as r, unref as n, createVNode as m, createCommentVNode as i, withCtx as f, createBlock as k } from "vue";
2
2
  import y from "vuedraggable";
3
3
  import "../../../../config-provider/index.mjs";
4
4
  import "./item.vue.mjs";
5
5
  import { useNamespace as V } from "../../../../config-provider/hooks/use-namespace.mjs";
6
- import p from "./item.vue2.mjs";
7
- const _ = /* @__PURE__ */ v({
6
+ import d from "./item.vue2.mjs";
7
+ const U = /* @__PURE__ */ v({
8
8
  __name: "index",
9
9
  props: {
10
10
  value: {},
11
11
  "onUpdate:value": { type: Function }
12
12
  },
13
- setup(g) {
14
- const { b: s, is: d } = V("ap-column-setting-sortable-item"), a = c(!1);
15
- return (l, o) => (n(), r("div", {
16
- class: u(t(s)())
13
+ setup(l) {
14
+ const { b: s, is: p } = V("ap-column-setting-sortable-item"), a = c(!1);
15
+ return (g, t) => (o(), u("div", {
16
+ class: r(n(s)())
17
17
  }, [
18
- m(p, {
18
+ m(d, {
19
19
  open: a.value,
20
- "onUpdate:open": o[0] || (o[0] = (e) => a.value = e),
20
+ "onUpdate:open": t[0] || (t[0] = (e) => a.value = e),
21
21
  value: l.value
22
22
  }, null, 8, ["open", "value"]),
23
- l.value.children?.length ? (n(), r("div", {
23
+ l.value.children?.length ? (o(), u("div", {
24
24
  key: 0,
25
- class: u(t(d)("hidden", a.value))
25
+ class: r(n(p)("hidden", a.value))
26
26
  }, [
27
- m(t(y), {
27
+ m(n(y), {
28
28
  modelValue: l.value.children,
29
- "onUpdate:modelValue": o[1] || (o[1] = (e) => l.value.children = e),
29
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => l.value.children = e),
30
30
  "item-key": "key"
31
31
  }, {
32
32
  item: f(({ element: e }) => [
33
- e.show ? (n(), k(p, {
33
+ e.show ? (o(), k(d, {
34
34
  key: 0,
35
35
  value: e,
36
36
  level: 2
@@ -43,5 +43,5 @@ const _ = /* @__PURE__ */ v({
43
43
  }
44
44
  });
45
45
  export {
46
- _ as default
46
+ U as default
47
47
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as B, createElementBlock as v, openBlock as n, normalizeClass as t, unref as e, createElementVNode as p, createVNode as s, createCommentVNode as c, createBlock as r, resolveDynamicComponent as E, withCtx as u } from "vue";
2
- import { HolderOutlined as I, VerticalAlignTopOutlined as g, VerticalAlignMiddleOutlined as O, DeleteOutlined as D } from "@ant-design/icons-vue";
3
- import { Space as z, Tooltip as f } from "@aplus-frontend/antdv";
1
+ import { defineComponent as E, createElementBlock as x, openBlock as i, normalizeClass as l, unref as e, createElementVNode as m, createVNode as s, createCommentVNode as r, createBlock as u, resolveDynamicComponent as I, withCtx as d } from "vue";
2
+ import { HolderOutlined as O, VerticalAlignTopOutlined as g, VerticalAlignMiddleOutlined as D, DeleteOutlined as z } from "@ant-design/icons-vue";
3
+ import { Space as A, Tooltip as p } from "@aplus-frontend/antdv";
4
4
  import "../../../../config-provider/index.mjs";
5
- import A from "../images/icon_carst_down.svg.mjs";
6
- import M from "../images/icon_fill_right.svg.mjs";
7
- import { useInjectSorterMethods as S } from "../sorter/context.mjs";
8
- import { getLabelRenderNode as U } from "../utils.mjs";
9
- import { useNamespace as j } from "../../../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as H } from "../../../../config-provider/hooks/use-locale.mjs";
11
- const q = ["src"], ee = /* @__PURE__ */ B({
5
+ import M from "../images/icon_carst_down.svg.mjs";
6
+ import S from "../images/icon_fill_right.svg.mjs";
7
+ import { useInjectSorterMethods as U } from "../sorter/context.mjs";
8
+ import { getLabelRenderNode as j } from "../utils.mjs";
9
+ import { useNamespace as H } from "../../../../config-provider/hooks/use-namespace.mjs";
10
+ import { useLocale as _ } from "../../../../config-provider/hooks/use-locale.mjs";
11
+ const q = ["src"], ee = /* @__PURE__ */ E({
12
12
  __name: "item",
13
13
  props: {
14
14
  value: {},
@@ -17,107 +17,107 @@ const q = ["src"], ee = /* @__PURE__ */ B({
17
17
  open: { type: Boolean }
18
18
  },
19
19
  emits: ["update:open", "update:value"],
20
- setup(k, { emit: b }) {
21
- const o = k, x = b, { b: a, be: m, is: C } = j("ap-column-setting-sortable-item-meta"), { fixedToLeft: T, fixedToRight: w, unFixed: V } = S(), { t: d } = H();
22
- function h(l) {
23
- const i = o.value;
24
- return i.fixed = l, i.children?.forEach((N) => N.fixed = l), i;
20
+ setup(n, { emit: k }) {
21
+ const a = n, b = k, { b: o, be: h, is: C } = H("ap-column-setting-sortable-item-meta"), { fixedToLeft: T, fixedToRight: w, unFixed: V } = U(), { t: f } = _();
22
+ function v(t) {
23
+ const c = a.value;
24
+ return c.fixed = t, c.children?.forEach((B) => B.fixed = t), c;
25
25
  }
26
26
  function y() {
27
- const l = h("left");
28
- T(l);
29
- }
30
- function _() {
31
- const l = h("right");
32
- w(l);
27
+ const t = v("left");
28
+ T(t);
33
29
  }
34
30
  function R() {
35
- const l = h(void 0);
36
- V(l);
31
+ const t = v("right");
32
+ w(t);
37
33
  }
38
34
  function F() {
39
- x("update:open", !o.open);
35
+ const t = v(void 0);
36
+ V(t);
40
37
  }
41
38
  function L() {
42
- const l = o.value;
43
- l.show = !1, l.children?.forEach((i) => i.show = !1);
39
+ b("update:open", !a.open);
40
+ }
41
+ function N() {
42
+ const t = a.value;
43
+ t.show = !1, t.children?.forEach((c) => c.show = !1);
44
44
  }
45
- return (l, i) => (n(), v("div", {
46
- class: t(e(a)())
45
+ return (t, c) => (i(), x("div", {
46
+ class: l(e(o)())
47
47
  }, [
48
- p("span", {
49
- class: t(e(a)("left"))
48
+ m("span", {
49
+ class: l(e(o)("left"))
50
50
  }, [
51
- s(e(I), {
52
- class: t(e(m)("left", "holder")),
51
+ s(e(O), {
52
+ class: l(e(h)("left", "holder")),
53
53
  style: { "font-size": "16px", color: "#abb7cc" }
54
54
  }, null, 8, ["class"]),
55
- p("span", {
56
- class: t(e(m)("left", "indicator")),
57
- onClick: F
55
+ m("span", {
56
+ class: l(e(h)("left", "indicator")),
57
+ onClick: L
58
58
  }, [
59
- l.value.children?.length ? (n(), v("img", {
59
+ n.value.children?.length ? (i(), x("img", {
60
60
  key: 0,
61
- src: o.open ? e(M) : e(A)
62
- }, null, 8, q)) : c("", !0)
61
+ src: a.open ? e(S) : e(M)
62
+ }, null, 8, q)) : r("", !0)
63
63
  ], 2),
64
- p("span", {
65
- class: t([e(m)("left", "label-wrapper"), e(C)("level2", o.level === 2)])
64
+ m("span", {
65
+ class: l([e(h)("left", "label-wrapper"), e(C)("level2", a.level === 2)])
66
66
  }, [
67
- (n(), r(E(e(U)(l.value.label))))
67
+ (i(), u(I(e(j)(n.value.label))))
68
68
  ], 2)
69
69
  ], 2),
70
- p("span", {
71
- class: t(e(a)("right"))
70
+ m("span", {
71
+ class: l(e(o)("right"))
72
72
  }, [
73
- s(e(z), null, {
74
- default: u(() => [
75
- o.level !== 2 && l.value.fixed !== "left" ? (n(), r(e(f), {
73
+ s(e(A), null, {
74
+ default: d(() => [
75
+ a.level !== 2 && n.value.fixed !== "left" ? (i(), u(e(p), {
76
76
  key: 0,
77
- title: e(d)("ap.apTable.setting.fixToLeft")
77
+ title: e(f)("ap.apTable.setting.fixToLeft")
78
78
  }, {
79
- default: u(() => [
79
+ default: d(() => [
80
80
  s(e(g), {
81
81
  rotate: 270,
82
- class: t(e(a)("action-icon")),
82
+ class: l(e(o)("action-icon")),
83
83
  onClick: y
84
84
  }, null, 8, ["class"])
85
85
  ]),
86
86
  _: 1
87
- }, 8, ["title"])) : c("", !0),
88
- o.level !== 2 && l.value.fixed ? (n(), r(e(f), {
87
+ }, 8, ["title"])) : r("", !0),
88
+ a.level !== 2 && n.value.fixed ? (i(), u(e(p), {
89
89
  key: 1,
90
- title: e(d)("ap.apTable.setting.unFixed")
90
+ title: e(f)("ap.apTable.setting.unFixed")
91
91
  }, {
92
- default: u(() => [
93
- s(e(O), {
94
- class: t(e(a)("action-icon")),
95
- onClick: R
92
+ default: d(() => [
93
+ s(e(D), {
94
+ class: l(e(o)("action-icon")),
95
+ onClick: F
96
96
  }, null, 8, ["class"])
97
97
  ]),
98
98
  _: 1
99
- }, 8, ["title"])) : c("", !0),
100
- o.level !== 2 && l.value.fixed !== "right" ? (n(), r(e(f), {
99
+ }, 8, ["title"])) : r("", !0),
100
+ a.level !== 2 && n.value.fixed !== "right" ? (i(), u(e(p), {
101
101
  key: 2,
102
- title: e(d)("ap.apTable.setting.fixToRight")
102
+ title: e(f)("ap.apTable.setting.fixToRight")
103
103
  }, {
104
- default: u(() => [
104
+ default: d(() => [
105
105
  s(e(g), {
106
106
  rotate: 90,
107
- class: t(e(a)("action-icon")),
108
- onClick: _
107
+ class: l(e(o)("action-icon")),
108
+ onClick: R
109
109
  }, null, 8, ["class"])
110
110
  ]),
111
111
  _: 1
112
- }, 8, ["title"])) : c("", !0),
113
- l.value.disabled ? c("", !0) : (n(), r(e(f), {
112
+ }, 8, ["title"])) : r("", !0),
113
+ n.value.disabled ? r("", !0) : (i(), u(e(p), {
114
114
  key: 3,
115
- title: e(d)("ap.apTable.setting.delete")
115
+ title: e(f)("ap.apTable.setting.delete")
116
116
  }, {
117
- default: u(() => [
118
- s(e(D), {
119
- class: t(e(a)("action-icon")),
120
- onClick: L
117
+ default: d(() => [
118
+ s(e(z), {
119
+ class: l(e(o)("action-icon")),
120
+ onClick: N
121
121
  }, null, 8, ["class"])
122
122
  ]),
123
123
  _: 1
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, ref as u, createElementBlock as d, openBlock as y, createVNode as t, unref as e, withCtx as o, createTextVNode as i, toDisplayString as r } from "vue";
2
- import { Flex as C, Button as m } from "@aplus-frontend/antdv";
3
- import { ApForm as _ } from "../../../../ap-form/index.mjs";
1
+ import { defineComponent as f, ref as u, createElementBlock as d, openBlock as y, createVNode as t, unref as e, withCtx as l, createTextVNode as r, toDisplayString as m } from "vue";
2
+ import { Flex as x, Button as c } from "@aplus-frontend/antdv";
3
+ import { ApForm as C } from "../../../../ap-form/index.mjs";
4
4
  import "../../../../config-provider/index.mjs";
5
5
  import { useLocale as h } from "../../../../config-provider/hooks/use-locale.mjs";
6
6
  import { ApFormItemText as b } from "../../../../ap-form/items/text/index.mjs";
@@ -11,21 +11,21 @@ const V = /* @__PURE__ */ f({
11
11
  onCancel: { type: Function },
12
12
  initialValues: {}
13
13
  },
14
- setup(p) {
15
- const s = p, { t: a } = h(), n = u();
16
- async function c() {
17
- const l = await n.value?.validateFields();
18
- s.onConfirm(l?.label);
14
+ setup(o) {
15
+ const p = o, { t: a } = h(), n = u();
16
+ async function s() {
17
+ const i = await n.value?.validateFields();
18
+ p.onConfirm(i?.label);
19
19
  }
20
- return (l, g) => (y(), d("div", null, [
21
- t(e(_), {
20
+ return (i, g) => (y(), d("div", null, [
21
+ t(e(C), {
22
22
  ref_key: "formRef",
23
23
  ref: n,
24
24
  colon: !1,
25
25
  "label-col": { span: 24 },
26
- "initial-values": l.initialValues
26
+ "initial-values": o.initialValues
27
27
  }, {
28
- default: o(() => [
28
+ default: l(() => [
29
29
  t(e(b), {
30
30
  rules: [
31
31
  {
@@ -39,27 +39,27 @@ const V = /* @__PURE__ */ f({
39
39
  ]),
40
40
  _: 1
41
41
  }, 8, ["initial-values"]),
42
- t(e(C), {
42
+ t(e(x), {
43
43
  justify: "end",
44
44
  gap: 8
45
45
  }, {
46
- default: o(() => [
47
- t(e(m), {
46
+ default: l(() => [
47
+ t(e(c), {
48
48
  style: { height: "24px" },
49
- onClick: l.onCancel
49
+ onClick: o.onCancel
50
50
  }, {
51
- default: o(() => [
52
- i(r(e(a)("ap.common.cancelText")), 1)
51
+ default: l(() => [
52
+ r(m(e(a)("ap.common.cancelText")), 1)
53
53
  ]),
54
54
  _: 1
55
55
  }, 8, ["onClick"]),
56
- t(e(m), {
56
+ t(e(c), {
57
57
  style: { height: "24px" },
58
58
  type: "primary",
59
- onClick: c
59
+ onClick: s
60
60
  }, {
61
- default: o(() => [
62
- i(r(e(a)("ap.common.save")), 1)
61
+ default: l(() => [
62
+ r(m(e(a)("ap.common.save")), 1)
63
63
  ]),
64
64
  _: 1
65
65
  })