@aplus-frontend/ui 0.6.0-beta.1 → 0.6.0-beta.3

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 (116) hide show
  1. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  2. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +39 -34
  3. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  4. package/es/src/ap-grid/editable/form-item.vue.mjs +23 -20
  5. package/es/src/ap-grid/editable/index.vue.mjs +3 -0
  6. package/es/src/ap-grid/index.vue.mjs +146 -136
  7. package/es/src/ap-grid/interface.d.ts +1 -1
  8. package/es/src/ap-grid/utils/table.mjs +32 -32
  9. package/es/src/ap-table/ap-table.vue2.mjs +206 -199
  10. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  11. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
  12. package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
  13. package/es/src/ap-tag/interface.d.ts +4 -0
  14. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -12
  15. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  16. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +108 -99
  17. package/es/src/business/ap-export-group/index.d.ts +3 -0
  18. package/es/src/business/ap-export-group/interface.d.ts +7 -2
  19. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  20. package/es/src/business/ap-view/ap-view.vue2.mjs +72 -69
  21. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +49 -43
  22. package/es/src/business/ap-view/interface.d.ts +4 -0
  23. package/es/src/business/hooks/usePageListApGrid.mjs +2 -4
  24. package/es/src/config-provider/css-var.mjs +2 -2
  25. package/es/src/locale/lang/en.mjs +1 -1
  26. package/es/src/locale/lang/zh-cn.mjs +1 -1
  27. package/lib/src/ap-button/ap-button.vue.js +1 -1
  28. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  29. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  30. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  31. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  32. package/lib/src/ap-grid/index.vue.js +1 -1
  33. package/lib/src/ap-grid/interface.d.ts +1 -1
  34. package/lib/src/ap-grid/utils/table.js +1 -1
  35. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  36. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  37. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
  38. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  39. package/lib/src/ap-tag/interface.d.ts +4 -0
  40. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  41. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  42. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  43. package/lib/src/business/ap-export-group/index.d.ts +3 -0
  44. package/lib/src/business/ap-export-group/interface.d.ts +7 -2
  45. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  46. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  47. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  48. package/lib/src/business/ap-view/interface.d.ts +4 -0
  49. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  50. package/lib/src/config-provider/css-var.js +1 -1
  51. package/lib/src/locale/lang/en.js +1 -1
  52. package/lib/src/locale/lang/zh-cn.js +1 -1
  53. package/package.json +4 -4
  54. package/theme/antd-global-overwrite/admin/index.css +9 -25
  55. package/theme/antd-global-overwrite/admin/modal.css +6 -22
  56. package/theme/antd-global-overwrite/admin/modal.less +7 -22
  57. package/theme/antd-global-overwrite/admin/table.css +3 -3
  58. package/theme/antd-global-overwrite/admin/table.less +3 -3
  59. package/theme/antd-global-overwrite/aplus/index.css +9 -19
  60. package/theme/antd-global-overwrite/aplus/modal.css +6 -16
  61. package/theme/antd-global-overwrite/aplus/modal.less +7 -17
  62. package/theme/antd-global-overwrite/aplus/table.css +3 -3
  63. package/theme/antd-global-overwrite/aplus/table.less +3 -3
  64. package/theme/ap-appendix/ap-appendix.css +4 -2
  65. package/theme/ap-appendix/ap-appendix.less +4 -2
  66. package/theme/ap-attachment/ap-attachment.css +4 -4
  67. package/theme/ap-attachment/ap-attachment.less +4 -4
  68. package/theme/ap-batch-action/ap-batch-action.css +6 -3
  69. package/theme/ap-batch-action/ap-batch-action.less +6 -3
  70. package/theme/ap-descriptions/ap-descriptions.css +3 -5
  71. package/theme/ap-descriptions/ap-descriptions.less +3 -5
  72. package/theme/ap-download/ap-download.css +7 -10
  73. package/theme/ap-download/ap-download.less +8 -11
  74. package/theme/ap-expand-alert/ap-expand-alert.css +1 -1
  75. package/theme/ap-expand-alert/ap-expand-alert.less +3 -4
  76. package/theme/ap-form/ap-form-item.css +2 -2
  77. package/theme/ap-form/ap-form-item.less +2 -2
  78. package/theme/ap-form/index.css +5 -2
  79. package/theme/ap-form/search-form.css +5 -2
  80. package/theme/ap-form/search-form.less +3 -0
  81. package/theme/ap-grid/editable.less +3 -2
  82. package/theme/ap-grid/index.css +6 -3
  83. package/theme/ap-grid/index.less +6 -4
  84. package/theme/ap-ladder/ap-ladder.css +3 -3
  85. package/theme/ap-ladder/ap-ladder.less +3 -3
  86. package/theme/ap-select-layout/ap-select-layout.css +8 -8
  87. package/theme/ap-select-layout/ap-select-layout.less +8 -8
  88. package/theme/ap-status/ap-status.css +2 -3
  89. package/theme/ap-status/ap-status.less +2 -4
  90. package/theme/ap-summary/index.css +3 -3
  91. package/theme/ap-summary/index.less +3 -3
  92. package/theme/ap-table/ap-table-index.css +5 -5
  93. package/theme/ap-table/ap-table-index.less +5 -5
  94. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  95. package/theme/ap-table/ap-table.css +15 -14
  96. package/theme/ap-table/ap-table.less +2 -5
  97. package/theme/ap-table/setting/index.css +3 -3
  98. package/theme/ap-table/setting/modal.css +1 -2
  99. package/theme/ap-table/setting/modal.less +1 -2
  100. package/theme/ap-table/setting/select-group.css +2 -1
  101. package/theme/ap-table/setting/select-group.less +2 -1
  102. package/theme/ap-table-modal/index.css +15 -14
  103. package/theme/ap-tag/ap-tag-group.less +2 -2
  104. package/theme/ap-tag/ap-tag.css +24 -15
  105. package/theme/ap-tag/ap-tag.less +37 -24
  106. package/theme/ap-title/ap-title.css +2 -2
  107. package/theme/ap-title/ap-title.less +2 -2
  108. package/theme/ap-upload/index.css +3 -3
  109. package/theme/ap-upload/multiple-file.css +1 -1
  110. package/theme/ap-upload/multiple-file.less +1 -1
  111. package/theme/ap-upload/picture.css +2 -2
  112. package/theme/ap-upload/picture.less +2 -2
  113. package/theme/ap-view/ap-view.css +4 -0
  114. package/theme/ap-view/ap-view.less +4 -0
  115. package/theme/editable-table/index.css +5 -2
  116. package/theme/index.css +90 -77
@@ -6,7 +6,7 @@ import { omit as F } from "lodash-unified";
6
6
  import { transferOpacityColor as O, isAsynchronous as j } from "./utils/index.mjs";
7
7
  import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
8
8
  import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
9
- const q = 88, E = 300, Y = /* @__PURE__ */ W({
9
+ const q = 72, E = 300, Y = /* @__PURE__ */ W({
10
10
  __name: "ap-button",
11
11
  props: {
12
12
  prefixCls: {},
@@ -1,13 +1,14 @@
1
- import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as C } from "vue";
2
- import { Popover as N, Tooltip as D, Button as u, Flex as y, Divider as L } from "@aplus-frontend/antdv";
1
+ import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as y } from "vue";
2
+ import { Popover as S, Tooltip as D, Button as v, Flex as C, Divider as L } from "@aplus-frontend/antdv";
3
3
  import { IconApLayoutOutlined as P } from "@aplus-frontend/icon";
4
4
  import "../../../../config-provider/index.mjs";
5
- import S from "vuedraggable";
5
+ import V from "vuedraggable";
6
6
  import "./sortable-item.vue.mjs";
7
- import { useNamespace as _ } from "../../../../config-provider/hooks/use-namespace.mjs";
8
- import { useLocale as V } from "../../../../config-provider/hooks/use-locale.mjs";
9
- import j from "./sortable-item.vue2.mjs";
10
- const G = /* @__PURE__ */ T({
7
+ import { getStringName as j } from "../../../item-group/helper.mjs";
8
+ import { useNamespace as g } from "../../../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as A } from "../../../../config-provider/hooks/use-locale.mjs";
10
+ import I from "./sortable-item.vue2.mjs";
11
+ const J = /* @__PURE__ */ T({
11
12
  name: "ApFormSearchFormPopoverSorter",
12
13
  __name: "index",
13
14
  props: {
@@ -15,22 +16,25 @@ const G = /* @__PURE__ */ T({
15
16
  onClickConfirm: { type: Function }
16
17
  },
17
18
  setup(k) {
18
- const d = k, c = h(d.children);
19
- let g = [...d.children];
20
- const { e: p } = _("ap-form-search-form"), { b: a } = _("search-form-sorter"), { t: s } = V(), i = h(!1);
21
- function F(v) {
22
- return v.closest(".ant-form") || document.body;
19
+ const d = k, p = h(d.children);
20
+ let _ = [...d.children];
21
+ const { e: c } = g("ap-form-search-form"), { b: a } = g("search-form-sorter"), { t: s } = A(), i = h(!1);
22
+ function F(m) {
23
+ return m.closest(".ant-form") || document.body;
23
24
  }
24
25
  function b() {
25
- i.value = !1, console.log(e(c)), d.onClickConfirm(e(c));
26
+ i.value = !1, console.log(e(p)), d.onClickConfirm(e(p));
26
27
  }
27
28
  function x() {
28
- c.value = [...g];
29
+ p.value = [..._];
29
30
  }
30
- return (v, m) => (B(), w(e(N), {
31
+ function N(m) {
32
+ return j(m.props.name);
33
+ }
34
+ return (m, f) => (B(), w(e(S), {
31
35
  open: i.value,
32
- "onUpdate:open": m[1] || (m[1] = (f) => i.value = f),
33
- "overlay-class-name": e(p)("popover"),
36
+ "onUpdate:open": f[1] || (f[1] = (u) => i.value = u),
37
+ "overlay-class-name": e(c)("popover"),
34
38
  trigger: "click",
35
39
  placement: "bottom",
36
40
  mask: "",
@@ -44,7 +48,7 @@ const G = /* @__PURE__ */ T({
44
48
  n("span", {
45
49
  class: r(e(a)("header-title"))
46
50
  }, l(e(s)("ap.apForm.search.sorterTitle")), 3),
47
- o(e(y), { justify: "space-between" }, {
51
+ o(e(C), { justify: "space-between" }, {
48
52
  default: t(() => [
49
53
  n("span", {
50
54
  class: r(e(a)("header-desc"))
@@ -62,39 +66,40 @@ const G = /* @__PURE__ */ T({
62
66
  })
63
67
  ], 2),
64
68
  n("div", {
65
- class: r([e(p)("popover-content"), e(a)("content")])
69
+ class: r([e(c)("popover-content"), e(a)("content")])
66
70
  }, [
67
- o(e(S), {
68
- list: c.value,
69
- class: r(e(a)("sorter-wrapper"))
71
+ o(e(V), {
72
+ list: p.value,
73
+ class: r(e(a)("sorter-wrapper")),
74
+ "item-key": N
70
75
  }, {
71
- item: t(({ element: f }) => [
72
- o(j, { item: f }, null, 8, ["item"])
76
+ item: t(({ element: u }) => [
77
+ o(I, { item: u }, null, 8, ["item"])
73
78
  ]),
74
79
  _: 1
75
80
  }, 8, ["list", "class"])
76
81
  ], 2),
77
82
  o(e(L), { style: { margin: "0" } }),
78
83
  n("div", {
79
- class: r(e(p)("popover-footer"))
84
+ class: r(e(c)("popover-footer"))
80
85
  }, [
81
- o(e(y), { justify: "end" }, {
86
+ o(e(C), { justify: "end" }, {
82
87
  default: t(() => [
83
- o(e(u), {
84
- onClick: m[0] || (m[0] = (f) => i.value = !1)
88
+ o(e(v), {
89
+ onClick: f[0] || (f[0] = (u) => i.value = !1)
85
90
  }, {
86
91
  default: t(() => [
87
- C(l(e(s)("ap.common.cancelText")), 1)
92
+ y(l(e(s)("ap.common.cancelText")), 1)
88
93
  ]),
89
94
  _: 1
90
95
  }),
91
- o(e(u), {
92
- class: r(e(p)("popover-footer-confirm-btn")),
96
+ o(e(v), {
97
+ class: r(e(c)("popover-footer-confirm-btn")),
93
98
  type: "primary",
94
99
  onClick: b
95
100
  }, {
96
101
  default: t(() => [
97
- C(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
102
+ y(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
98
103
  ]),
99
104
  _: 1
100
105
  }, 8, ["class"])
@@ -109,7 +114,7 @@ const G = /* @__PURE__ */ T({
109
114
  placement: "top"
110
115
  }, {
111
116
  default: t(() => [
112
- o(e(u), null, {
117
+ o(e(v), null, {
113
118
  icon: t(() => [
114
119
  o(e(P))
115
120
  ]),
@@ -124,5 +129,5 @@ const G = /* @__PURE__ */ T({
124
129
  }
125
130
  });
126
131
  export {
127
- G as default
132
+ J as default
128
133
  };
@@ -235,7 +235,7 @@ const s = 24, Le = /* @__PURE__ */ te({
235
235
  class: n(m)()
236
236
  }, n(ce)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
237
237
  default: F(() => [(d(), x(A(l.value.hideNode))), t(n(se), {
238
- gutter: 16
238
+ gutter: 8
239
239
  }, {
240
240
  default: F(() => [(d(!0), le(w, null, re(l.value.nodes, (r) => (d(), x(n(R), {
241
241
  key: r.key,
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as g, withCtx as y, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
1
+ import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
2
  import { ApForm as C } from "../../ap-form/index.mjs";
3
3
  import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -9,7 +9,7 @@ import { useInjectForm as te } from "../../ap-form/context.mjs";
9
9
  import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import ne from "../index.vue.mjs";
12
- const ye = /* @__PURE__ */ P({
12
+ const ge = /* @__PURE__ */ P({
13
13
  name: "EditableGrid",
14
14
  __name: "form-item",
15
15
  props: {
@@ -108,6 +108,9 @@ const ye = /* @__PURE__ */ P({
108
108
  loadingConfig: {},
109
109
  headerCellConfig: {},
110
110
  footerCellConfig: {},
111
+ round: {
112
+ type: Boolean
113
+ },
111
114
  rowSelection: {
112
115
  type: Boolean,
113
116
  default: void 0
@@ -182,32 +185,32 @@ const ye = /* @__PURE__ */ P({
182
185
  const a = {
183
186
  ...e || {}
184
187
  };
185
- t == null || t.setFieldValue(l.name, a, !0, (r, f) => {
186
- if (!r[f]) {
187
- r[f] = [a];
188
+ t == null || t.setFieldValue(l.name, a, !0, (f, r) => {
189
+ if (!f[r]) {
190
+ f[r] = [a];
188
191
  return;
189
192
  }
190
- I(o) ? r[f].push(a) : r[f].splice(o, 0, a);
193
+ I(o) ? f[r].push(a) : f[r].splice(o, 0, a);
191
194
  });
192
195
  }
193
196
  function L(e, o = "suffix") {
194
- var r;
195
- const n = ((r = u(d)) == null ? void 0 : r.length) || 0, a = m(e) ? e : e.length;
197
+ var f;
198
+ const n = ((f = u(d)) == null ? void 0 : f.length) || 0, a = m(e) ? e : e.length;
196
199
  if (w(l.maxLength) && n + a > l.maxLength)
197
200
  return;
198
201
  const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
199
- t == null || t.setFieldValue(l.name, s, !0, (f, i) => {
200
- if (!f[i]) {
201
- f[i] = [...s];
202
+ t == null || t.setFieldValue(l.name, s, !0, (r, i) => {
203
+ if (!r[i]) {
204
+ r[i] = [...s];
202
205
  return;
203
206
  }
204
- o === "suffix" ? f[i].push(...s) : f[i].unshift(...s);
207
+ o === "suffix" ? r[i].push(...s) : r[i].unshift(...s);
205
208
  });
206
209
  }
207
210
  function V(e) {
208
211
  const o = new Set(m(e) ? [e] : e);
209
212
  t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
210
- n[a] = n[a].filter((s, r) => !o.has(r));
213
+ n[a] = n[a].filter((s, f) => !o.has(f));
211
214
  });
212
215
  }
213
216
  function T() {
@@ -221,9 +224,9 @@ const ye = /* @__PURE__ */ P({
221
224
  t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
222
225
  if (!(!a[s] || !a[s][e])) {
223
226
  if (!n) {
224
- const r = Object.keys(a[s][e]);
225
- for (const f of r)
226
- f !== l.rowKey && delete a[s][e][f];
227
+ const f = Object.keys(a[s][e]);
228
+ for (const r of f)
229
+ r !== l.rowKey && delete a[s][e][r];
227
230
  }
228
231
  Object.assign(a[s][e], {
229
232
  ...o
@@ -253,11 +256,11 @@ const ye = /* @__PURE__ */ P({
253
256
  scrollTo: O,
254
257
  setTableData: E,
255
258
  clear: z
256
- }), (e, o) => (U(), G(u(C).FormItem, g(e.formItem, {
259
+ }), (e, o) => (U(), G(u(C).FormItem, y(e.formItem, {
257
260
  name: e.name,
258
261
  label: e.label
259
262
  }), {
260
- default: y(() => [$(ne, g(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
263
+ default: g(() => [$(ne, y(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
261
264
  ref_key: "tableRef",
262
265
  ref: c,
263
266
  class: u(B)(),
@@ -268,12 +271,12 @@ const ye = /* @__PURE__ */ P({
268
271
  _: 2
269
272
  }, [J(R, (n, a) => ({
270
273
  name: a,
271
- fn: y((s) => [Q(e.$slots, a, X(Y(s || {})))])
274
+ fn: g((s) => [Q(e.$slots, a, X(Y(s || {})))])
272
275
  }))]), 1040, ["class", "columns", "data-source"])]),
273
276
  _: 3
274
277
  }, 16, ["name", "label"]));
275
278
  }
276
279
  });
277
280
  export {
278
- ye as default
281
+ ge as default
279
282
  };
@@ -109,6 +109,9 @@ const be = /* @__PURE__ */ U({
109
109
  loadingConfig: {},
110
110
  headerCellConfig: {},
111
111
  footerCellConfig: {},
112
+ round: {
113
+ type: Boolean
114
+ },
112
115
  rowSelection: {
113
116
  type: Boolean,
114
117
  default: void 0