@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,4 +1,4 @@
1
- import { defineComponent as S, ref as y, toRef as w, createBlock as u, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as l, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as k } from "vue";
1
+ import { defineComponent as S, ref as k, toRef as w, createBlock as u, openBlock as l, unref as e, withCtx as t, createVNode as o, normalizeClass as p, withDirectives as R, createElementVNode as f, toDisplayString as d, vShow as _, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as b } from "vue";
2
2
  import { Popover as P, Tooltip as T, Button as g, Row as V, Col as $, Divider as z, Flex as A } from "@aplus-frontend/antdv";
3
3
  import { IconApFilterOutlined as E } from "@aplus-frontend/icon";
4
4
  import "../../../config-provider/index.mjs";
@@ -14,35 +14,35 @@ const Y = /* @__PURE__ */ S({
14
14
  onSubmit: { type: Function },
15
15
  submitLoading: { type: Boolean }
16
16
  },
17
- setup(b) {
18
- const C = b, F = y(), { e: s, b: c } = U("ap-form-search-form"), h = j("ap-form-search-form"), { t: m } = q(), a = y(!1), B = w(() => C.config), { count: v } = O(B);
19
- function _(r) {
20
- return r?.closest(".ant-form") || document.body;
17
+ setup(n) {
18
+ const C = n, F = k(), { e: s, b: c } = U("ap-form-search-form"), h = j("ap-form-search-form"), { t: m } = q(), a = k(!1), x = w(() => C.config), { count: v } = O(x);
19
+ function B(y) {
20
+ return y?.closest(".ant-form") || document.body;
21
21
  }
22
- return (r, p) => (i(), u(e(P), {
22
+ return (y, i) => (l(), u(e(P), {
23
23
  open: a.value,
24
- "onUpdate:open": p[1] || (p[1] = (n) => a.value = n),
24
+ "onUpdate:open": i[1] || (i[1] = (r) => a.value = r),
25
25
  "overlay-class-name": `${e(s)("popover")} ${e(h)}`,
26
26
  trigger: "click",
27
27
  placement: "bottom",
28
28
  mask: "",
29
29
  "mask-style": { backgroundColor: "transparent" },
30
- "get-popup-container": _,
30
+ "get-popup-container": B,
31
31
  "force-render": !0
32
32
  }, {
33
- content: o(() => [
33
+ content: t(() => [
34
34
  f("div", {
35
- class: l([e(s)("popover-content")]),
35
+ class: p([e(s)("popover-content")]),
36
36
  style: { paddingBottom: "4px", width: "825px" }
37
37
  }, [
38
- t(e(V), { gutter: 8 }, {
39
- default: o(() => [
40
- (i(!0), D(L, null, N(r.config, (n) => (i(), u(e($), {
41
- key: n.key,
38
+ o(e(V), { gutter: 8 }, {
39
+ default: t(() => [
40
+ (l(!0), D(L, null, N(n.config, (r) => (l(), u(e($), {
41
+ key: r.key,
42
42
  span: 8
43
43
  }, {
44
- default: o(() => [
45
- (i(), u(I(n.node)))
44
+ default: t(() => [
45
+ (l(), u(I(r.node)))
46
46
  ]),
47
47
  _: 2
48
48
  }, 1024))), 128))
@@ -50,30 +50,30 @@ const Y = /* @__PURE__ */ S({
50
50
  _: 1
51
51
  })
52
52
  ], 2),
53
- t(e(z), { style: { margin: "0" } }),
53
+ o(e(z), { style: { margin: "0" } }),
54
54
  f("div", {
55
- class: l(e(s)("popover-footer"))
55
+ class: p(e(s)("popover-footer"))
56
56
  }, [
57
- t(e(A), {
57
+ o(e(A), {
58
58
  justify: "end",
59
59
  gap: 10
60
60
  }, {
61
- default: o(() => [
62
- t(e(g), {
63
- onClick: p[0] || (p[0] = (n) => a.value = !1)
61
+ default: t(() => [
62
+ o(e(g), {
63
+ onClick: i[0] || (i[0] = (r) => a.value = !1)
64
64
  }, {
65
- default: o(() => [
66
- k(d(e(m)("ap.common.cancelText")), 1)
65
+ default: t(() => [
66
+ b(d(e(m)("ap.common.cancelText")), 1)
67
67
  ]),
68
68
  _: 1
69
69
  }),
70
- t(e(g), {
70
+ o(e(g), {
71
71
  type: "primary",
72
- loading: r.submitLoading,
73
- onClick: r.onSubmit
72
+ loading: n.submitLoading,
73
+ onClick: n.onSubmit
74
74
  }, {
75
- default: o(() => [
76
- k(d(e(m)("ap.apForm.search.search")), 1)
75
+ default: t(() => [
76
+ b(d(e(m)("ap.apForm.search.search")), 1)
77
77
  ]),
78
78
  _: 1
79
79
  }, 8, ["loading", "onClick"])
@@ -82,24 +82,24 @@ const Y = /* @__PURE__ */ S({
82
82
  })
83
83
  ], 2)
84
84
  ]),
85
- default: o(() => [
86
- t(e(T), {
85
+ default: t(() => [
86
+ o(e(T), {
87
87
  title: e(m)("ap.apForm.search.moreFilter"),
88
88
  placement: "top"
89
89
  }, {
90
- default: o(() => [
91
- t(e(g), {
90
+ default: t(() => [
91
+ o(e(g), {
92
92
  ref_key: "triggerBtnRef",
93
93
  ref: F,
94
- class: l([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: a.value }])
94
+ class: p([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: a.value }])
95
95
  }, {
96
- icon: o(() => [
97
- x(f("sup", {
98
- class: l(e(c)("trigger-btn-badge"))
96
+ icon: t(() => [
97
+ R(f("sup", {
98
+ class: p(e(c)("trigger-btn-badge"))
99
99
  }, d(e(v)), 3), [
100
- [R, e(v) !== 0]
100
+ [_, e(v) !== 0]
101
101
  ]),
102
- t(e(E), { size: 14 })
102
+ o(e(E), { size: 14 })
103
103
  ]),
104
104
  _: 1
105
105
  }, 8, ["class"])
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as i, createElementBlock as l, openBlock as m, normalizeClass as o, unref as e, createElementVNode as s, createVNode as a, toDisplayString as n } from "vue";
2
2
  import { HolderOutlined as c } from "@ant-design/icons-vue";
3
3
  import "../../../../config-provider/index.mjs";
4
- import { useNamespace as p } from "../../../../config-provider/hooks/use-namespace.mjs";
5
- const d = ["title"], N = /* @__PURE__ */ i({
4
+ import { useNamespace as d } from "../../../../config-provider/hooks/use-namespace.mjs";
5
+ const p = ["title"], v = /* @__PURE__ */ i({
6
6
  name: "ApFormSearchFormPopoverSorterItem",
7
7
  __name: "sortable-item",
8
8
  props: {
9
9
  item: {}
10
10
  },
11
- setup(f) {
12
- const { b: t } = p("search-form-sorter");
13
- return (r, u) => (m(), l("div", {
11
+ setup(r) {
12
+ const { b: t } = d("search-form-sorter");
13
+ return (f, u) => (m(), l("div", {
14
14
  class: o([e(t)("sorter-item"), { [e(t)("sorter-item--hidden")]: r.item.isHidden }])
15
15
  }, [
16
16
  s("div", null, [
@@ -21,11 +21,11 @@ const d = ["title"], N = /* @__PURE__ */ i({
21
21
  s("span", {
22
22
  class: o(e(t)("sorter-item-text")),
23
23
  title: r.item.label
24
- }, n(r.item.label), 11, d)
24
+ }, n(r.item.label), 11, p)
25
25
  ])
26
26
  ], 2));
27
27
  }
28
28
  });
29
29
  export {
30
- N as default
30
+ v as default
31
31
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as z, useSlots as G, toRef as H, ref as c, unref as s, watch as K, nextTick as P, createBlock as A, openBlock as W, mergeProps as g, withCtx as h, createVNode as U, createSlots as $, renderList as q, renderSlot as J, normalizeProps as Q, guardReactiveProps as X } from "vue";
2
- import { isUndefined as Y, isNumber as d, cloneDeep as Z, isArray as M, omit as ee } from "lodash-unified";
3
- import { ApForm as y } from "../../ap-form/index.mjs";
1
+ import { defineComponent as G, useSlots as H, toRef as K, ref as g, unref as s, watch as P, nextTick as _, createBlock as A, openBlock as W, mergeProps as h, withCtx as y, createVNode as U, createSlots as $, renderList as q, renderSlot as J, normalizeProps as Q, guardReactiveProps as X } from "vue";
2
+ import { isUndefined as Y, isNumber as m, cloneDeep as Z, isArray as M, omit as ee } from "lodash-unified";
3
+ import { ApForm as C } from "../../ap-form/index.mjs";
4
4
  import { useInjectForm as te } from "../../ap-form/context.mjs";
5
- import { getModelValue as oe } from "../../ap-form/utils/get.mjs";
5
+ import { getModelValue as ae } from "../../ap-form/utils/get.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import "../../utils/index.mjs";
8
- import { useDevWarning as ae } from "../../utils/warning.mjs";
8
+ import { useDevWarning as oe } from "../../utils/warning.mjs";
9
9
  import { useGetEditableColumns as le } from "../hooks/use-editable-columns.mjs";
10
10
  import "../index.vue2.mjs";
11
11
  import ne from "../style/editable.mjs";
12
12
  import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
13
13
  import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
14
- import { isDef as C } from "../../utils/is.mjs";
14
+ import { isDef as w } from "../../utils/is.mjs";
15
15
  import ie from "../index.vue.mjs";
16
- const ve = /* @__PURE__ */ z({
16
+ const ve = /* @__PURE__ */ G({
17
17
  name: "EditableGridFormItem",
18
18
  __name: "form-item",
19
19
  props: {
@@ -169,61 +169,61 @@ const ve = /* @__PURE__ */ z({
169
169
  default: () => ({})
170
170
  }
171
171
  },
172
- setup(w, {
172
+ setup(d, {
173
173
  expose: b
174
174
  }) {
175
- const x = G(), a = w;
176
- ae("EditableGridFormItem")(!1, "breaking", "EditableGridFormItem has been EOL, Please use EditableAgGridFormItem(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
175
+ const x = H(), o = d;
176
+ oe("EditableGridFormItem")(!1, "breaking", "EditableGridFormItem has been EOL, Please use EditableAgGridFormItem(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
177
177
  const {
178
178
  b: R
179
179
  } = re("editable-grid"), B = ne("editable-grid"), {
180
180
  internalInstance: i,
181
181
  model: S
182
- } = te(), m = H(a.name), f = c(oe(s(S), m.value) || []), v = y.useWatch(m);
183
- K(() => v.value, async (e) => {
184
- await P(), f.value = e, a.onChange?.(e);
182
+ } = te(), p = K(o.name), f = g(ae(s(S), p.value) || []), v = C.useWatch(p);
183
+ P(() => v.value, async (e) => {
184
+ await _(), f.value = e, o.onChange?.(e);
185
185
  }, {
186
186
  deep: !0
187
187
  });
188
- const p = c(), F = se("valueTypeMap"), I = le(a, F);
188
+ const c = g(), F = se("valueTypeMap"), I = le(o, F);
189
189
  function N(e, l) {
190
190
  const r = s(f)?.length || 0;
191
- if (C(a.maxLength) && r >= a.maxLength)
191
+ if (w(o.maxLength) && r >= o.maxLength)
192
192
  return;
193
193
  const t = {
194
194
  ...e || {}
195
195
  };
196
- i?.setFieldValue(a.name, t, !0, (o, n) => {
197
- if (!o[n]) {
198
- o[n] = [t];
196
+ i?.setFieldValue(o.name, t, !0, (a, n) => {
197
+ if (!a[n]) {
198
+ a[n] = [t];
199
199
  return;
200
200
  }
201
- Y(l) ? o[n].push(t) : o[n].splice(l, 0, t);
201
+ Y(l) ? a[n].push(t) : a[n].splice(l, 0, t);
202
202
  });
203
203
  }
204
204
  function D(e, l = "suffix") {
205
- const r = s(f)?.length || 0, t = d(e) ? e : e.length;
206
- if (C(a.maxLength) && r + t > a.maxLength)
205
+ const r = s(f)?.length || 0, t = m(e) ? e : e.length;
206
+ if (w(o.maxLength) && r + t > o.maxLength)
207
207
  return;
208
- const o = d(e) ? new Array(e).fill(0).map(() => ({})) : Z(e);
209
- i?.setFieldValue(a.name, o, !0, (n, u) => {
208
+ const a = m(e) ? new Array(e).fill(0).map(() => ({})) : Z(e);
209
+ i?.setFieldValue(o.name, a, !0, (n, u) => {
210
210
  if (!n[u]) {
211
- n[u] = [...o];
211
+ n[u] = [...a];
212
212
  return;
213
213
  }
214
- l === "suffix" ? n[u].push(...o) : n[u].unshift(...o);
214
+ l === "suffix" ? n[u].push(...a) : n[u].unshift(...a);
215
215
  });
216
216
  }
217
217
  function E(e) {
218
- const l = new Set(d(e) ? [e] : e);
219
- i?.setFieldValue(a.name, void 0, !0, (r, t) => {
220
- r[t] = r[t].filter((o, n) => !l.has(n));
218
+ const l = new Set(m(e) ? [e] : e);
219
+ i?.setFieldValue(o.name, void 0, !0, (r, t) => {
220
+ r[t] = r[t].filter((a, n) => !l.has(n));
221
221
  });
222
222
  }
223
223
  function k(e) {
224
224
  const l = new Set(M(e) ? e : [e]);
225
- l.size !== 0 && i?.setFieldValue?.(a.name, void 0, !0, (r, t) => {
226
- r[t] = r[t].filter((o) => !l.has(o[a.rowKey]));
225
+ l.size !== 0 && i?.setFieldValue?.(o.name, void 0, !0, (r, t) => {
226
+ r[t] = r[t].filter((a) => !l.has(a[o.rowKey]));
227
227
  });
228
228
  }
229
229
  function L() {
@@ -233,28 +233,28 @@ const ve = /* @__PURE__ */ z({
233
233
  return s(f)?.[e];
234
234
  }
235
235
  function T(e, l, r = !0) {
236
- i?.setFieldValue(a.name, void 0, !0, (t, o) => {
237
- if (!(!t[o] || !t[o][e])) {
236
+ i?.setFieldValue(o.name, void 0, !0, (t, a) => {
237
+ if (!(!t[a] || !t[a][e])) {
238
238
  if (!r) {
239
- const n = Object.keys(t[o][e]);
239
+ const n = Object.keys(t[a][e]);
240
240
  for (const u of n)
241
- u !== a.rowKey && delete t[o][e][u];
241
+ u !== o.rowKey && delete t[a][e][u];
242
242
  }
243
- Object.assign(t[o][e], {
243
+ Object.assign(t[a][e], {
244
244
  ...l
245
245
  });
246
246
  }
247
247
  });
248
248
  }
249
249
  function j(e) {
250
- i?.setFieldValue(a.name, e);
250
+ i?.setFieldValue(o.name, e);
251
251
  }
252
252
  function O(e) {
253
253
  const l = e === "end" ? f.value.length - 1 : e;
254
- p.value?.scrollToRow(l);
254
+ c.value?.scrollToRow(l);
255
255
  }
256
- function _() {
257
- i?.setFieldValue?.(a.name, []);
256
+ function z() {
257
+ i?.setFieldValue?.(o.name, []);
258
258
  }
259
259
  return b({
260
260
  add: N,
@@ -265,15 +265,15 @@ const ve = /* @__PURE__ */ z({
265
265
  addMultiple: D,
266
266
  scrollTo: O,
267
267
  setTableData: j,
268
- clear: _,
268
+ clear: z,
269
269
  removeByKey: k
270
- }), (e, l) => (W(), A(s(y).FormItem, g(e.formItem, {
271
- name: e.name,
272
- label: e.label
270
+ }), (e, l) => (W(), A(s(C).FormItem, h(d.formItem, {
271
+ name: d.name,
272
+ label: d.label
273
273
  }), {
274
- default: h(() => [U(ie, g(s(ee)(a, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
274
+ default: y(() => [U(ie, h(s(ee)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
275
275
  ref_key: "tableRef",
276
- ref: p,
276
+ ref: c,
277
277
  class: [s(R)(), s(B)],
278
278
  columns: s(I),
279
279
  "data-source": f.value,
@@ -282,7 +282,7 @@ const ve = /* @__PURE__ */ z({
282
282
  _: 2
283
283
  }, [q(x, (r, t) => ({
284
284
  name: t,
285
- fn: h((o) => [J(e.$slots, t, Q(X(o || {})))])
285
+ fn: y((a) => [J(e.$slots, t, Q(X(a || {})))])
286
286
  }))]), 1040, ["class", "columns", "data-source"])]),
287
287
  _: 3
288
288
  }, 16, ["name", "label"]));
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, useSlots as U, ref as y, watch as C, unref as r, createBlock as $, openBlock as q, withCtx as p, createVNode as w, mergeProps as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as M } from "vue";
1
+ import { defineComponent as W, useSlots as U, ref as C, watch as w, unref as r, createBlock as $, openBlock as q, withCtx as p, createVNode as b, mergeProps as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as M } from "vue";
2
2
  import { isEqual as ee, isArray as m, isUndefined as te, isNumber as c, cloneDeep as ae, omit as oe } from "lodash-unified";
3
3
  import { ApForm as g } from "../../ap-form/index.mjs";
4
4
  import "../../config-provider/index.mjs";
@@ -11,7 +11,7 @@ import re from "../style/editable.mjs";
11
11
  import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
12
12
  import { useControllableValue as ie } from "../../hooks/useControllableValue.mjs";
13
13
  import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
14
- import { isDef as b } from "../../utils/is.mjs";
14
+ import { isDef as v } from "../../utils/is.mjs";
15
15
  import de from "../index.vue.mjs";
16
16
  const Ee = /* @__PURE__ */ W({
17
17
  name: "EditableGrid",
@@ -168,24 +168,24 @@ const Ee = /* @__PURE__ */ W({
168
168
  onFieldChange: {}
169
169
  },
170
170
  emits: ["update:value"],
171
- setup(v, {
171
+ setup(h, {
172
172
  expose: x,
173
173
  emit: R
174
174
  }) {
175
- const B = U(), t = v, {
175
+ const B = U(), t = h, {
176
176
  b: S
177
177
  } = se("editable-grid"), F = re("editable-grid"), E = R;
178
178
  le("EditableGrid")(!1, "breaking", "EditableGrid has been EOL, Please use EditableAgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/editable/) instead.");
179
- const h = y(), {
179
+ const y = C(), {
180
180
  value: u,
181
181
  updateValue: N
182
- } = ie(t, E), i = y(), V = ue("valueTypeMap"), f = g.useWatch(t.name, i);
183
- C(() => f.value, (e) => {
182
+ } = ie(t, E), i = C(), V = ue("valueTypeMap"), f = g.useWatch(t.name, i);
183
+ w(() => f.value, (e) => {
184
184
  N(e), t.onChange?.(e);
185
185
  }, {
186
186
  deep: !0,
187
187
  flush: "post"
188
- }), C(u, (e) => {
188
+ }), w(u, (e) => {
189
189
  e !== r(f) && (ee(e, r(f)) || i.value?.setFieldValue(t.name, e));
190
190
  }, {
191
191
  deep: !0
@@ -194,15 +194,15 @@ const Ee = /* @__PURE__ */ W({
194
194
  function L() {
195
195
  i.value?.resetFields();
196
196
  }
197
- function _(e) {
197
+ function D(e) {
198
198
  return e ? (m(e) ? e : [e]).map((n) => m(n) ? [t.name, ...n] : [t.name, n]) : void 0;
199
199
  }
200
- async function D(e, l) {
201
- return (await i.value?.validateFields(_(e), l))?.[t.name];
200
+ async function _(e, l) {
201
+ return (await i.value?.validateFields(D(e), l))?.[t.name];
202
202
  }
203
203
  function O(e, l) {
204
204
  const n = r(u)?.length || 0;
205
- if (b(t.maxLength) && n >= t.maxLength)
205
+ if (v(t.maxLength) && n >= t.maxLength)
206
206
  return;
207
207
  const a = {
208
208
  ...e || {}
@@ -217,7 +217,7 @@ const Ee = /* @__PURE__ */ W({
217
217
  }
218
218
  function T(e, l = "suffix") {
219
219
  const n = r(u)?.length || 0, a = c(e) ? e : e.length;
220
- if (b(t.maxLength) && n + a > t.maxLength)
220
+ if (v(t.maxLength) && n + a > t.maxLength)
221
221
  return;
222
222
  const o = c(e) ? new Array(e).fill(0).map(() => ({})) : ae(e);
223
223
  i.value?.setFieldValue?.(t.name, o, !0, (s, d) => {
@@ -265,14 +265,14 @@ const Ee = /* @__PURE__ */ W({
265
265
  }
266
266
  function K(e) {
267
267
  const l = e === "end" ? u.value.length - 1 : e;
268
- h.value?.scrollToRow(l);
268
+ y.value?.scrollToRow(l);
269
269
  }
270
270
  function P() {
271
271
  i.value?.setFieldValue?.(t.name, []);
272
272
  }
273
273
  return x({
274
274
  resetFields: L,
275
- validateFields: D,
275
+ validateFields: _,
276
276
  add: O,
277
277
  remove: j,
278
278
  getRowData: H,
@@ -293,13 +293,13 @@ const Ee = /* @__PURE__ */ W({
293
293
  height: "100%"
294
294
  }
295
295
  }, {
296
- default: p(() => [w(r(g).FormItem, {
297
- name: e.name,
296
+ default: p(() => [b(r(g).FormItem, {
297
+ name: h.name,
298
298
  "no-style": ""
299
299
  }, {
300
- default: p(() => [w(de, J(r(oe)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
300
+ default: p(() => [b(de, J(r(oe)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
301
301
  ref_key: "tableRef",
302
- ref: h,
302
+ ref: y,
303
303
  class: [r(S)(), r(F)],
304
304
  columns: r(k),
305
305
  "data-source": r(u),