@aplus-frontend/ui 6.12.0 → 6.13.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 (72) hide show
  1. package/es/src/ap-descriptions/interface.d.ts +1 -1
  2. package/es/src/ap-form/ap-form.vue2.mjs +118 -108
  3. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  4. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  5. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  6. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  7. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  8. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
  9. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -18
  10. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +31 -30
  11. package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
  12. package/es/src/ap-form/search-form/index.vue.mjs +35 -35
  13. package/es/src/ap-grid/index.vue.mjs +221 -225
  14. package/es/src/ap-modal/interface.d.ts +8 -0
  15. package/es/src/ap-modal/utils/createModalStream.mjs +69 -66
  16. package/es/src/ap-table/ap-table.vue2.mjs +107 -111
  17. package/es/src/ap-table/constants.d.ts +5 -5
  18. package/es/src/ap-table/context.d.ts +1 -0
  19. package/es/src/ap-table/context.mjs +6 -5
  20. package/es/src/ap-table/utils.d.ts +5 -3247
  21. package/es/src/ap-table/utils.mjs +107 -121
  22. package/es/src/business/ap-view/ap-view.vue2.mjs +76 -74
  23. package/es/src/business/ap-view/interface.d.ts +1 -0
  24. package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
  25. package/es/src/business/batch-input-group/index.vue.mjs +56 -52
  26. package/es/src/business/batch-input-group/interface.d.ts +5 -0
  27. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +36 -32
  28. package/es/src/business/batch-input-group/utils.d.ts +8 -0
  29. package/es/src/business/batch-input-group/utils.mjs +10 -0
  30. package/es/src/version.d.ts +1 -1
  31. package/es/src/version.mjs +1 -1
  32. package/lib/src/ap-descriptions/interface.d.ts +1 -1
  33. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  34. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  35. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  36. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  37. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  38. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  39. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
  40. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  41. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  42. package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
  43. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  44. package/lib/src/ap-grid/index.vue.js +1 -1
  45. package/lib/src/ap-modal/interface.d.ts +8 -0
  46. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  47. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  48. package/lib/src/ap-table/constants.d.ts +5 -5
  49. package/lib/src/ap-table/context.d.ts +1 -0
  50. package/lib/src/ap-table/context.js +1 -1
  51. package/lib/src/ap-table/utils.d.ts +5 -3247
  52. package/lib/src/ap-table/utils.js +1 -1
  53. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  54. package/lib/src/business/ap-view/interface.d.ts +1 -0
  55. package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
  56. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  57. package/lib/src/business/batch-input-group/interface.d.ts +5 -0
  58. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
  59. package/lib/src/business/batch-input-group/utils.d.ts +8 -0
  60. package/lib/src/business/batch-input-group/utils.js +1 -0
  61. package/lib/src/version.d.ts +1 -1
  62. package/lib/src/version.js +1 -1
  63. package/package.json +1 -1
  64. package/theme/ap-grid/index.css +3 -0
  65. package/theme/ap-grid/index.less +3 -4
  66. package/theme/index.css +3 -0
  67. package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
  68. package/es/src/ap-table/components/dynamic-component/index.vue.mjs +0 -4
  69. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +0 -15
  70. package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
  71. package/lib/src/ap-table/components/dynamic-component/index.vue.js +0 -1
  72. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +0 -1
@@ -1,26 +1,26 @@
1
- import { isVNode as le, defineComponent as re, useSlots as se, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, createBlock as g, openBlock as d, mergeProps as ie, withCtx as B, resolveDynamicComponent as I, createElementBlock as ue, renderList as ce } from "vue";
2
- import { Col as w, Flex as N, Button as M, Row as pe } from "@aplus-frontend/antdv";
1
+ import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, createBlock as g, openBlock as d, mergeProps as se, withCtx as B, resolveDynamicComponent as I, createElementBlock as ie, renderList as ue } from "vue";
2
+ import { Col as w, Flex as N, Button as M, Row as ce } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
5
  import { genRealChildren as z } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isArray as de, isBoolean as fe, omit as me } from "lodash-unified";
7
+ import { isArray as pe, isBoolean as de, omit as fe } from "lodash-unified";
8
8
  import { isDef as q } from "../../utils/index.mjs";
9
- import { execFunc as H, diffFormItem as he } from "./utils.mjs";
9
+ import { execFunc as H, diffFormItem as me } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
- import { useCountPerRow as xe } from "./hooks/use-count-per-row.mjs";
11
+ import { useCountPerRow as he } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
13
- import { useSorter as ge } from "./hooks/use-sorter.mjs";
14
- import { useNamespace as ye } from "../../config-provider/hooks/use-namespace.mjs";
15
- import { useLocale as ve } from "../../config-provider/hooks/use-locale.mjs";
13
+ import { useSorter as xe } from "./hooks/use-sorter.mjs";
14
+ import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
15
+ import { useLocale as ye } from "../../config-provider/hooks/use-locale.mjs";
16
16
  import G from "../item/index.vue.mjs";
17
- import Ce from "./components/popover-filter.vue2.mjs";
18
- import Se from "./components/popover-sorter/index.vue2.mjs";
19
- import _e from "../ap-form.vue2.mjs";
20
- function we(f) {
21
- return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !le(f);
17
+ import ve from "./components/popover-filter.vue2.mjs";
18
+ import Ce from "./components/popover-sorter/index.vue2.mjs";
19
+ import Se from "../ap-form.vue2.mjs";
20
+ function _e(f) {
21
+ return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !ne(f);
22
22
  }
23
- const s = 24, ze = /* @__PURE__ */ re({
23
+ const s = 24, Me = /* @__PURE__ */ le({
24
24
  name: "ApFormSearchForm",
25
25
  __name: "index",
26
26
  props: {
@@ -119,11 +119,11 @@ const s = 24, ze = /* @__PURE__ */ re({
119
119
  expose: J
120
120
  }) {
121
121
  var L;
122
- const i = se(), t = f, {
122
+ const i = re(), t = f, {
123
123
  b: m
124
- } = ye("ap-form-search-form"), {
124
+ } = ge("ap-form-search-form"), {
125
125
  t: k
126
- } = ve(), K = xe(t), y = D(), Q = D();
126
+ } = ye(), K = he(t), y = D(), Q = D();
127
127
  function T() {
128
128
  var a;
129
129
  const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
@@ -133,15 +133,15 @@ const s = 24, ze = /* @__PURE__ */ re({
133
133
  var e, a;
134
134
  t.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), H(t.onReset);
135
135
  }
136
- const Y = (e) => q(e) ? (de(e) ? e : [e]).join("") : Date.now();
136
+ const Y = (e) => q(e) ? (pe(e) ? e : [e]).join("") : Date.now();
137
137
  let E = [];
138
138
  const h = U(z(i.default())), c = U((L = i.extra) == null ? void 0 : L.call(i)), P = S(() => Math.floor(s / n(K))), {
139
139
  items: R,
140
140
  sorted: O,
141
141
  handleClickConfirm: b
142
- } = ge(h);
142
+ } = xe(h);
143
143
  W(() => i.default(), (e) => {
144
- E = h.value, h.value = he(E, z(e)), O.value = !1;
144
+ E = h.value, h.value = me(E, z(e)), O.value = !1;
145
145
  }), W(() => {
146
146
  var e;
147
147
  return (e = i.extra) == null ? void 0 : e.call(i);
@@ -152,21 +152,21 @@ const s = 24, ze = /* @__PURE__ */ re({
152
152
  const e = h.value, a = [], r = [], x = [], u = n(P);
153
153
  let v = 0, F = 0;
154
154
  const te = s * t.maxRows - u * (n(c) && !t.extraInAction ? 2 : 1);
155
- e.forEach((A, ne) => {
155
+ e.forEach((A) => {
156
156
  const p = A.props;
157
- if (fe(p.hidden) ? !!p.hidden : q(p.hidden))
157
+ if (de(p.hidden) ? !!p.hidden : q(p.hidden))
158
158
  a.push(A);
159
159
  else {
160
160
  let C = p.span || u;
161
- const j = {
161
+ const V = {
162
162
  node: A,
163
163
  span: C,
164
- key: `ApFormSearchFormItem-${ne}-${Y(p.name)}-${p._signal}`
165
- }, V = s - v % s;
166
- V < C && (C += V), v += C, v > te ? r.push(j) : (F = v, x.push(j));
164
+ key: `ApFormSearchFormItem-${Y(p.name)}-${p._signal}`
165
+ }, $ = s - v % s;
166
+ $ < C && (C += $), v += C, v > te ? r.push(V) : (F = v, x.push(V));
167
167
  }
168
168
  });
169
- const $ = s - (F + u) % s, oe = F % s < u, ae = $ < u ? s : $;
169
+ const j = s - (F + u) % s, oe = F % s < u, ae = j < u ? s : j;
170
170
  return {
171
171
  hideNode: o(_, null, [a]),
172
172
  nodes: x,
@@ -191,11 +191,11 @@ const s = 24, ze = /* @__PURE__ */ re({
191
191
  }, {
192
192
  default: () => [a ? o("div", {
193
193
  class: m("column-setting-trigger-wrapper")
194
- }, [l.value.collapseNodes.length ? o(Ce, {
194
+ }, [l.value.collapseNodes.length ? o(ve, {
195
195
  onSubmit: T,
196
196
  config: l.value.collapseNodes,
197
197
  submitLoading: t.submitLoading
198
- }, null) : null, t.sortable && R.value.length ? o(Se, {
198
+ }, null) : null, t.sortable && R.value.length ? o(Ce, {
199
199
  ref: "sorterIns",
200
200
  items: R.value,
201
201
  onClickConfirm: b,
@@ -227,7 +227,7 @@ const s = 24, ze = /* @__PURE__ */ re({
227
227
  default: () => [o(G, null, {
228
228
  default: () => [o(N, {
229
229
  justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
230
- }, we(e = n(c)) ? e : {
230
+ }, _e(e = n(c)) ? e : {
231
231
  default: () => [e]
232
232
  })]
233
233
  })]
@@ -246,15 +246,15 @@ const s = 24, ze = /* @__PURE__ */ re({
246
246
  getSorterItems: () => R.value,
247
247
  setSorterItems: b,
248
248
  resetSorterItems: ee
249
- }), (e, a) => (d(), g(_e, ie({
249
+ }), (e, a) => (d(), g(Se, se({
250
250
  ref_key: "apForm",
251
251
  ref: y,
252
252
  class: n(m)()
253
- }, n(me)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
254
- default: B(() => [(d(), g(I(l.value.hideNode))), o(n(pe), {
253
+ }, n(fe)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
254
+ default: B(() => [(d(), g(I(l.value.hideNode))), o(n(ce), {
255
255
  gutter: 8
256
256
  }, {
257
- default: B(() => [(d(!0), ue(_, null, ce(l.value.nodes, (r) => (d(), g(n(w), {
257
+ default: B(() => [(d(!0), ie(_, null, ue(l.value.nodes, (r) => (d(), g(n(w), {
258
258
  key: r.key,
259
259
  span: r.span
260
260
  }, {
@@ -268,5 +268,5 @@ const s = 24, ze = /* @__PURE__ */ re({
268
268
  }
269
269
  });
270
270
  export {
271
- ze as default
271
+ Me as default
272
272
  };