@aplus-frontend/ui 0.1.32 → 0.1.34

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 (103) hide show
  1. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  2. package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
  3. package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
  4. package/es/src/ap-form/ap-form.vue.d.ts +3 -1
  5. package/es/src/ap-form/ap-form.vue2.mjs +130 -80
  6. package/es/src/ap-form/interface.d.ts +51 -1
  7. package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
  8. package/es/src/ap-form/items/date/index.vue.mjs +10 -9
  9. package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
  10. package/es/src/ap-form/items/number/index.vue.mjs +12 -11
  11. package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
  12. package/es/src/ap-form/items/select/index.vue.mjs +1 -0
  13. package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
  14. package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
  15. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  16. package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
  17. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
  18. package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
  19. package/es/src/ap-form/utils/get.d.ts +1 -0
  20. package/es/src/ap-form/utils/get.mjs +12 -0
  21. package/es/src/ap-form/utils/set.d.ts +6 -0
  22. package/es/src/ap-form/utils/set.mjs +41 -0
  23. package/es/src/ap-list/index.vue.d.ts +3 -0
  24. package/es/src/ap-list/index.vue.mjs +51 -49
  25. package/es/src/ap-table/ap-table.vue.d.ts +4 -1
  26. package/es/src/ap-table/ap-table.vue.mjs +65 -59
  27. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +8 -8
  28. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -11
  29. package/es/src/ap-table/components/setting/utils.mjs +29 -29
  30. package/es/src/ap-table/constants.d.ts +121 -1
  31. package/es/src/ap-table/interface.d.ts +6 -1
  32. package/es/src/ap-table/utils.d.ts +121 -1
  33. package/es/src/business/ap-card/ApCard.vue2.mjs +31 -26
  34. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  35. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
  36. package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
  37. package/es/src/business/ap-expand-alert/style.css +9 -0
  38. package/es/src/business/ap-title/style.css +4 -4
  39. package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
  40. package/es/src/business/index.d.ts +53 -187
  41. package/es/src/check-card/group.vue.d.ts +7 -1
  42. package/es/src/check-card/group.vue.mjs +26 -22
  43. package/es/src/check-card/index.vue.d.ts +5 -2
  44. package/es/src/check-card/index.vue2.mjs +69 -60
  45. package/es/src/check-card/interface.d.ts +12 -0
  46. package/es/src/check-card/style/index.css +9 -5
  47. package/es/src/locale/lang/en.mjs +4 -0
  48. package/es/src/locale/lang/zh-cn.mjs +4 -0
  49. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  50. package/es/src/theme/ap-title/ap-title.css +4 -4
  51. package/es/src/theme/check-card/index.css +9 -5
  52. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  53. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  54. package/lib/src/ap-form/ap-form-list.vue.js +1 -1
  55. package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
  56. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  57. package/lib/src/ap-form/interface.d.ts +51 -1
  58. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  59. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  60. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  61. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  62. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  63. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  64. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  65. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  66. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  67. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  68. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
  69. package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
  70. package/lib/src/ap-form/utils/get.d.ts +1 -0
  71. package/lib/src/ap-form/utils/get.js +1 -0
  72. package/lib/src/ap-form/utils/set.d.ts +6 -0
  73. package/lib/src/ap-form/utils/set.js +1 -0
  74. package/lib/src/ap-list/index.vue.d.ts +3 -0
  75. package/lib/src/ap-list/index.vue.js +1 -1
  76. package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
  77. package/lib/src/ap-table/ap-table.vue.js +1 -1
  78. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  79. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  80. package/lib/src/ap-table/components/setting/utils.js +1 -1
  81. package/lib/src/ap-table/constants.d.ts +121 -1
  82. package/lib/src/ap-table/interface.d.ts +6 -1
  83. package/lib/src/ap-table/utils.d.ts +121 -1
  84. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  85. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  86. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  87. package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
  88. package/lib/src/business/ap-expand-alert/style.css +9 -0
  89. package/lib/src/business/ap-title/style.css +4 -4
  90. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
  91. package/lib/src/business/index.d.ts +53 -187
  92. package/lib/src/check-card/group.vue.d.ts +7 -1
  93. package/lib/src/check-card/group.vue.js +1 -1
  94. package/lib/src/check-card/index.vue.d.ts +5 -2
  95. package/lib/src/check-card/index.vue2.js +1 -1
  96. package/lib/src/check-card/interface.d.ts +12 -0
  97. package/lib/src/check-card/style/index.css +9 -5
  98. package/lib/src/locale/lang/en.js +1 -1
  99. package/lib/src/locale/lang/zh-cn.js +1 -1
  100. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  101. package/lib/src/theme/ap-title/ap-title.css +4 -4
  102. package/lib/src/theme/check-card/index.css +9 -5
  103. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as x, renderSlot as y } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { omit as i } from "lodash-unified";
4
+ import { omit as s } from "lodash-unified";
5
5
  import g from "../../ap-form-item.vue.mjs";
6
6
  import h from "../../../ap-field/checkbox/index.vue.mjs";
7
7
  const w = /* @__PURE__ */ f({
@@ -45,18 +45,19 @@ const w = /* @__PURE__ */ f({
45
45
  valuePropName: {},
46
46
  initialValue: {},
47
47
  _signal: {},
48
+ transform: {},
48
49
  field: { default: () => ({}) },
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(s) {
52
- const d = s, n = m();
53
- return (e, v) => (u(), c(g, a(t(l(i)(d, ["field", "disabled"]))), b({
52
+ setup(i) {
53
+ const d = i, n = m();
54
+ return (e, v) => (u(), c(g, a(t(l(s)(d, ["field", "disabled"]))), b({
54
55
  default: r(() => [
55
56
  B(l(h), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
56
57
  ]),
57
58
  _: 2
58
59
  }, [
59
- x(l(i)(n, "default"), (C, o) => ({
60
+ x(l(s)(n, "default"), (C, o) => ({
60
61
  name: o,
61
62
  fn: r((p) => [
62
63
  y(e.$slots, o, a(t(p || {})))
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
1
+ import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as i, withCtx as n, createVNode as g, renderList as p, renderSlot as f } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/date/index.vue2.mjs";
4
4
  import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
@@ -47,12 +47,13 @@ const L = /* @__PURE__ */ h({
47
47
  valuePropName: {},
48
48
  initialValue: {},
49
49
  _signal: {},
50
+ transform: {},
50
51
  field: { default: () => ({}) },
51
52
  placeholder: {},
52
53
  disabled: { type: Boolean, default: !1 }
53
54
  },
54
55
  setup(c) {
55
- const e = c, n = B(), b = y(() => {
56
+ const e = c, s = B(), b = y(() => {
56
57
  var o;
57
58
  return {
58
59
  placeholder: e.placeholder,
@@ -61,12 +62,12 @@ const L = /* @__PURE__ */ h({
61
62
  bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
62
63
  };
63
64
  });
64
- return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), s({
65
- default: i(() => [
66
- g(C, r(t(b.value)), s({ _: 2 }, [
67
- p(a(m)(n, a(u)), (_, l) => ({
65
+ return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), i({
66
+ default: n(() => [
67
+ g(C, r(t(b.value)), i({ _: 2 }, [
68
+ p(a(m)(s, a(u)), (_, l) => ({
68
69
  name: l,
69
- fn: i((d) => [
70
+ fn: n((d) => [
70
71
  f(o.$slots, l, r(t(d || {})))
71
72
  ])
72
73
  }))
@@ -74,9 +75,9 @@ const L = /* @__PURE__ */ h({
74
75
  ]),
75
76
  _: 2
76
77
  }, [
77
- p(a(S)(n, a(u)), (_, l) => ({
78
+ p(a(S)(s, a(u)), (_, l) => ({
78
79
  name: l,
79
- fn: i((d) => [
80
+ fn: n((d) => [
80
81
  f(o.$slots, l, r(t(d || {})))
81
82
  ])
82
83
  }))
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as i, createVNode as F, renderList as f, renderSlot as m } from "vue";
1
+ import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as s, createVNode as F, renderList as f, renderSlot as m } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
@@ -47,12 +47,13 @@ const I = /* @__PURE__ */ B({
47
47
  valuePropName: {},
48
48
  initialValue: {},
49
49
  _signal: {},
50
+ transform: {},
50
51
  field: { default: () => ({}) },
51
52
  placeholder: {},
52
53
  disabled: { type: Boolean, default: !1 }
53
54
  },
54
55
  setup(b) {
55
- const e = b, s = g(), _ = y(() => {
56
+ const e = b, i = g(), _ = y(() => {
56
57
  var l, d;
57
58
  return {
58
59
  placeholder: e.placeholder,
@@ -62,11 +63,11 @@ const I = /* @__PURE__ */ B({
62
63
  };
63
64
  });
64
65
  return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
65
- default: i(() => [
66
+ default: s(() => [
66
67
  F(o(P), r(t(_.value)), p({ _: 2 }, [
67
- f(o(u)(s, o(c)), (h, a) => ({
68
+ f(o(u)(i, o(c)), (h, a) => ({
68
69
  name: a,
69
- fn: i((n) => [
70
+ fn: s((n) => [
70
71
  m(l.$slots, a, r(t(n || {})))
71
72
  ])
72
73
  }))
@@ -74,9 +75,9 @@ const I = /* @__PURE__ */ B({
74
75
  ]),
75
76
  _: 2
76
77
  }, [
77
- f(o(k)(s, o(c)), (h, a) => ({
78
+ f(o(k)(i, o(c)), (h, a) => ({
78
79
  name: a,
79
- fn: i((n) => [
80
+ fn: s((n) => [
80
81
  m(l.$slots, a, r(t(n || {})))
81
82
  ])
82
83
  }))
@@ -1,7 +1,7 @@
1
- import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as p, createVNode as k, mergeProps as N, renderList as i, renderSlot as u } from "vue";
1
+ import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as N, renderList as i, renderSlot as f } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/number/index.vue2.mjs";
4
- import { omit as f, pick as S } from "lodash-unified";
4
+ import { omit as u, pick as S } from "lodash-unified";
5
5
  import { apFormItemSlotNames as m } from "../../constant.mjs";
6
6
  import C from "../../ap-form-item.vue.mjs";
7
7
  import F from "../../../ap-field/number/index.vue.mjs";
@@ -47,12 +47,13 @@ const T = /* @__PURE__ */ B({
47
47
  valuePropName: {},
48
48
  initialValue: {},
49
49
  _signal: {},
50
+ transform: {},
50
51
  field: { default: () => ({}) },
51
52
  placeholder: {},
52
53
  disabled: { type: Boolean, default: !1 }
53
54
  },
54
55
  setup(c, { expose: b }) {
55
- const h = c, n = _(), a = v();
56
+ const h = c, p = _(), a = v();
56
57
  return b({
57
58
  focus: () => {
58
59
  var e;
@@ -62,28 +63,28 @@ const T = /* @__PURE__ */ B({
62
63
  var e;
63
64
  (e = a.value) == null || e.blur();
64
65
  }
65
- }), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
66
- default: p(() => [
66
+ }), (e, R) => (g(), x(C, t(s(l(u)(h, ["field", "placeholder", "disabled"]))), d({
67
+ default: n(() => [
67
68
  k(F, N({
68
69
  ref_key: "inputNumberRef",
69
70
  ref: a,
70
71
  placeholder: e.placeholder,
71
72
  disabled: e.disabled
72
73
  }, e.field), d({ _: 2 }, [
73
- i(l(f)(n, l(m)), (y, o) => ({
74
+ i(l(u)(p, l(m)), (y, o) => ({
74
75
  name: o,
75
- fn: p((r) => [
76
- u(e.$slots, o, t(s(r || {})))
76
+ fn: n((r) => [
77
+ f(e.$slots, o, t(s(r || {})))
77
78
  ])
78
79
  }))
79
80
  ]), 1040, ["placeholder", "disabled"])
80
81
  ]),
81
82
  _: 2
82
83
  }, [
83
- i(l(S)(n, l(m)), (y, o) => ({
84
+ i(l(S)(p, l(m)), (y, o) => ({
84
85
  name: o,
85
- fn: p((r) => [
86
- u(e.$slots, o, t(s(r || {})))
86
+ fn: n((r) => [
87
+ f(e.$slots, o, t(s(r || {})))
87
88
  ])
88
89
  }))
89
90
  ]), 1040));
@@ -45,12 +45,13 @@ const q = /* @__PURE__ */ u({
45
45
  valuePropName: {},
46
46
  initialValue: {},
47
47
  _signal: {},
48
+ transform: {},
48
49
  field: { default: () => ({}) },
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(i, { expose: d }) {
52
- const n = i, p = m(), o = c();
53
- return d({
52
+ setup(i, { expose: n }) {
53
+ const d = i, p = m(), o = c();
54
+ return n({
54
55
  focus: () => {
55
56
  var e;
56
57
  (e = o.value) == null || e.focus();
@@ -59,7 +60,7 @@ const q = /* @__PURE__ */ u({
59
60
  var e;
60
61
  (e = o.value) == null || e.blur();
61
62
  }
62
- }), (e, P) => (b(), _(k, a(t(r(h)(n, ["field", "disabled"]))), v({
63
+ }), (e, P) => (b(), _(k, a(t(r(h)(d, ["field", "disabled"]))), v({
63
64
  default: s(() => [
64
65
  y(r(C), B({
65
66
  ref_key: "radioRef",
@@ -47,6 +47,7 @@ const j = /* @__PURE__ */ x({
47
47
  valuePropName: {},
48
48
  initialValue: {},
49
49
  _signal: {},
50
+ transform: {},
50
51
  field: { default: () => ({}) },
51
52
  placeholder: {},
52
53
  disabled: { type: Boolean, default: !1 }
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as s, createVNode as g, mergeProps as v, renderList as n, renderSlot as p } from "vue";
1
+ import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as n, withCtx as s, createVNode as g, mergeProps as v, renderList as d, renderSlot as p } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/switch/index.vue2.mjs";
4
4
  import { omit as m, pick as x } from "lodash-unified";
@@ -46,28 +46,29 @@ const I = /* @__PURE__ */ b({
46
46
  valuePropName: { default: "checked" },
47
47
  initialValue: {},
48
48
  _signal: {},
49
+ transform: {},
49
50
  field: { default: () => ({}) },
50
51
  disabled: { type: Boolean, default: !1 }
51
52
  },
52
53
  setup(u) {
53
54
  const c = u, i = B();
54
- return (l, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), d({
55
+ return (a, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), n({
55
56
  default: s(() => [
56
- g(k, v({ disabled: l.disabled }, l.field), d({ _: 2 }, [
57
- n(o(m)(i, o(f)), (_, e) => ({
57
+ g(k, v({ disabled: a.disabled }, a.field), n({ _: 2 }, [
58
+ d(o(m)(i, o(f)), (_, e) => ({
58
59
  name: e,
59
- fn: s((a) => [
60
- p(l.$slots, e, t(r(a || {})))
60
+ fn: s((l) => [
61
+ p(a.$slots, e, t(r(l || {})))
61
62
  ])
62
63
  }))
63
64
  ]), 1040, ["disabled"])
64
65
  ]),
65
66
  _: 2
66
67
  }, [
67
- n(o(x)(i, o(f)), (_, e) => ({
68
+ d(o(x)(i, o(f)), (_, e) => ({
68
69
  name: e,
69
- fn: s((a) => [
70
- p(l.$slots, e, t(r(a || {})))
70
+ fn: s((l) => [
71
+ p(a.$slots, e, t(r(l || {})))
71
72
  ])
72
73
  }))
73
74
  ]), 1040));
@@ -46,6 +46,7 @@ const E = /* @__PURE__ */ B({
46
46
  valuePropName: {},
47
47
  initialValue: {},
48
48
  _signal: {},
49
+ transform: {},
49
50
  field: { default: () => ({}) },
50
51
  placeholder: {},
51
52
  disabled: { type: Boolean, default: !1 }
@@ -46,6 +46,7 @@ const z = /* @__PURE__ */ v({
46
46
  valuePropName: {},
47
47
  initialValue: {},
48
48
  _signal: {},
49
+ transform: {},
49
50
  field: { default: () => ({}) },
50
51
  placeholder: {},
51
52
  disabled: { type: Boolean, default: !1 }
@@ -44,13 +44,14 @@ const $ = /* @__PURE__ */ c({
44
44
  valuePropName: {},
45
45
  initialValue: {},
46
46
  _signal: {},
47
+ transform: {},
47
48
  field: { default: () => ({}) },
48
49
  placeholder: {},
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(p, { expose: i }) {
52
- const { TextArea: n } = C, u = b(), f = p, l = x();
53
- return i({
52
+ setup(n, { expose: p }) {
53
+ const { TextArea: i } = C, f = b(), u = n, l = x();
54
+ return p({
54
55
  focus: (e) => {
55
56
  var a;
56
57
  (a = l.value) == null || a.focus(e);
@@ -63,9 +64,9 @@ const $ = /* @__PURE__ */ c({
63
64
  var e;
64
65
  return (e = l.value) == null ? void 0 : e.resizableTextArea;
65
66
  })
66
- }), (e, a) => (v(), y(S, r(t(s(F)(f, ["field", "disabled", "placeholder"]))), B({
67
+ }), (e, a) => (v(), y(S, r(t(s(F)(u, ["field", "disabled", "placeholder"]))), B({
67
68
  default: d(() => [
68
- A(s(n), g({
69
+ A(s(i), g({
69
70
  ref_key: "textAreaRef",
70
71
  ref: l,
71
72
  disabled: e.disabled,
@@ -74,7 +75,7 @@ const $ = /* @__PURE__ */ c({
74
75
  ]),
75
76
  _: 2
76
77
  }, [
77
- _(u, (z, o) => ({
78
+ _(f, (z, o) => ({
78
79
  name: o,
79
80
  fn: d((m) => [
80
81
  k(e.$slots, o, r(t(m || {})))
@@ -442,8 +442,10 @@ declare function __VLS_template(): {
442
442
  setFieldsValue: (values: Record<string, any>) => void;
443
443
  setFieldValue: (name: NamePath, newValue: any) => void;
444
444
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
445
+ validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
446
+ getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
445
447
  getInternalInstance: (mark: string) => {
446
- registerField: ({ initialValue, name }: RegistedFieldType) => void;
448
+ registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
447
449
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
448
450
  } | undefined;
449
451
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
@@ -618,7 +620,7 @@ declare function __VLS_template(): {
618
620
  initialValues: {
619
621
  type: PropType<Recordable>;
620
622
  };
621
- }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
623
+ }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
622
624
  resetFields: () => Promise<void>;
623
625
  clearValidate: (name?: NamePath | NamePath[]) => void;
624
626
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
@@ -634,8 +636,10 @@ declare function __VLS_template(): {
634
636
  setFieldsValue: (values: Record<string, any>) => void;
635
637
  setFieldValue: (name: NamePath, newValue: any) => void;
636
638
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
639
+ validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
640
+ getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
637
641
  getInternalInstance: (mark: string) => {
638
- registerField: ({ initialValue, name }: RegistedFieldType) => void;
642
+ registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
639
643
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
640
644
  } | undefined;
641
645
  }> & {} & ComponentCustomProperties & {} & {
@@ -437,8 +437,10 @@ declare function __VLS_template(): {
437
437
  setFieldsValue: (values: Record<string, any>) => void;
438
438
  setFieldValue: (name: NamePath, newValue: any) => void;
439
439
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
440
+ validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
441
+ getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
440
442
  getInternalInstance: (mark: string) => {
441
- registerField: ({ initialValue, name }: RegistedFieldType) => void;
443
+ registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
442
444
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
443
445
  } | undefined;
444
446
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
@@ -613,7 +615,7 @@ declare function __VLS_template(): {
613
615
  initialValues: {
614
616
  type: PropType<Recordable>;
615
617
  };
616
- }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
618
+ }>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
617
619
  resetFields: () => Promise<void>;
618
620
  clearValidate: (name?: NamePath | NamePath[]) => void;
619
621
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
@@ -629,8 +631,10 @@ declare function __VLS_template(): {
629
631
  setFieldsValue: (values: Record<string, any>) => void;
630
632
  setFieldValue: (name: NamePath, newValue: any) => void;
631
633
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
634
+ validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
635
+ getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
632
636
  getInternalInstance: (mark: string) => {
633
- registerField: ({ initialValue, name }: RegistedFieldType) => void;
637
+ registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
634
638
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
635
639
  } | undefined;
636
640
  }> & {} & ComponentCustomProperties & {} & {
@@ -0,0 +1 @@
1
+ export default function get(entity: any, path: (string | number | symbol)[] | readonly (string | number | symbol)[]): any;
@@ -0,0 +1,12 @@
1
+ function l(n, r) {
2
+ let e = n;
3
+ for (let t = 0; t < r.length; t += 1) {
4
+ if (e == null)
5
+ return;
6
+ e = e[r[t]];
7
+ }
8
+ return e;
9
+ }
10
+ export {
11
+ l as default
12
+ };
@@ -0,0 +1,6 @@
1
+ export type Path = (string | number | symbol)[];
2
+ export default function set<Entity = any, Output = Entity, Value = any>(entity: Entity, paths: Path, value: Value, removeIfUndefined?: boolean): Output;
3
+ /**
4
+ * Merge objects which will create
5
+ */
6
+ export declare function merge<T extends object>(...sources: T[]): T;
@@ -0,0 +1,41 @@
1
+ import s from "./get.mjs";
2
+ function g(e, r, o, c) {
3
+ if (!r.length)
4
+ return o;
5
+ const [t, ...i] = r;
6
+ let n;
7
+ return !e && typeof t == "number" ? n = [] : Array.isArray(e) ? n = [...e] : n = { ...e }, c && o === void 0 && i.length === 1 ? delete n[t][i[0]] : n[t] = g(n[t], i, o, c), n;
8
+ }
9
+ function l(e, r, o, c = !1) {
10
+ return r.length && c && o === void 0 && !s(e, r.slice(0, -1)) ? e : g(e, r, o, c);
11
+ }
12
+ function b(e) {
13
+ return typeof e == "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
14
+ }
15
+ function a(e) {
16
+ return Array.isArray(e) ? [] : {};
17
+ }
18
+ const O = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
19
+ function j(...e) {
20
+ let r = a(e[0]);
21
+ return e.forEach((o) => {
22
+ function c(t, i) {
23
+ const n = new Set(i), f = s(o, t), u = Array.isArray(f);
24
+ if (u || b(f)) {
25
+ if (!n.has(f)) {
26
+ n.add(f);
27
+ const y = s(r, t);
28
+ u ? r = l(r, t, []) : (!y || typeof y != "object") && (r = l(r, t, a(f))), O(f).forEach((A) => {
29
+ c([...t, A], n);
30
+ });
31
+ }
32
+ } else
33
+ r = l(r, t, f);
34
+ }
35
+ c([]);
36
+ }), r;
37
+ }
38
+ export {
39
+ l as default,
40
+ j as merge
41
+ };
@@ -20,6 +20,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
20
20
  submit: () => void;
21
21
  reset: () => void;
22
22
  }): any;
23
+ empty?(_: {
24
+ loading: boolean;
25
+ }): any;
23
26
  renderContent?(_: {
24
27
  dataSource: RecordType[];
25
28
  }): any;
@@ -1,11 +1,11 @@
1
- import { defineComponent as F, ref as M, unref as e, computed as l, watch as W, openBlock as r, createBlock as C, normalizeClass as s, withCtx as j, createElementVNode as A, normalizeStyle as P, renderSlot as c, createElementBlock as m, Fragment as G, renderList as U, createVNode as x, mergeProps as H, createCommentVNode as J } from "vue";
2
- import { Empty as D, Spin as K, Pagination as Q } from "ant-design-vue";
1
+ import { defineComponent as F, ref as M, unref as e, computed as i, watch as W, openBlock as l, createBlock as j, normalizeClass as s, withCtx as A, createElementVNode as G, normalizeStyle as C, renderSlot as u, createVNode as P, createElementBlock as d, Fragment as U, renderList as H, mergeProps as J, createCommentVNode as K } from "vue";
2
+ import { Empty as D, Spin as Q, Pagination as X } from "ant-design-vue";
3
3
  import "../ap-table/index.mjs";
4
4
  import "../config-provider/index.mjs";
5
- import { isUndefined as k, omit as X } from "lodash-unified";
6
- import { useOfflineList as Y } from "./hooks/use-offline-list.mjs";
5
+ import { isUndefined as k, omit as Y } from "lodash-unified";
6
+ import { useOfflineList as Z } from "./hooks/use-offline-list.mjs";
7
7
  import "./style/index.css";
8
- import { useNamespace as Z } from "../config-provider/hooks/use-namespace.mjs";
8
+ import { useNamespace as x } from "../config-provider/hooks/use-namespace.mjs";
9
9
  import { useTablePaging as ee } from "../ap-table/hooks/use-table-paging.mjs";
10
10
  const fe = /* @__PURE__ */ F({
11
11
  __name: "index",
@@ -24,15 +24,15 @@ const fe = /* @__PURE__ */ F({
24
24
  footerWarpperStyle: {}
25
25
  },
26
26
  setup(B, { expose: E }) {
27
- const w = D.PRESENTED_IMAGE_SIMPLE, t = B, { b: d, e: g } = Z("ap-list"), p = M(), {
27
+ const w = D.PRESENTED_IMAGE_SIMPLE, t = B, { b: g, e: p } = x("ap-list"), S = M(), {
28
28
  formRef: I,
29
- submit: S,
30
- reset: h,
29
+ submit: h,
30
+ reset: y,
31
31
  handleTableChange: L,
32
- data: u,
32
+ data: f,
33
33
  refresh: z,
34
34
  refreshByDelete: N,
35
- tableProps: y
35
+ tableProps: v
36
36
  } = ee({
37
37
  async request(a) {
38
38
  var o;
@@ -49,13 +49,13 @@ const fe = /* @__PURE__ */ F({
49
49
  defaultPageSize: t.pagination ? t.pagination.defaultPageSize : void 0,
50
50
  formatParams: t.beforeSearchSubmit
51
51
  }), R = { form: I }, {
52
- pagination: v,
52
+ pagination: b,
53
53
  dataSource: T,
54
- onChange: _
55
- } = Y(t);
56
- function q(a, n) {
57
- if (e(i)) {
58
- _(a, n);
54
+ onChange: q
55
+ } = Z(t);
56
+ function O(a, n) {
57
+ if (e(r)) {
58
+ q(a, n);
59
59
  return;
60
60
  }
61
61
  L(
@@ -65,67 +65,69 @@ const fe = /* @__PURE__ */ F({
65
65
  { currentDataSource: [], action: "paginate" }
66
66
  );
67
67
  }
68
- const f = l(() => e(i) ? e(T) : e(u).records), b = l(() => k(t.loading) ? e(u).loading : t.loading), O = l(() => {
68
+ const c = i(() => e(r) ? e(T) : e(f).records), m = i(() => k(t.loading) ? e(f).loading : t.loading), V = i(() => {
69
69
  var a, n;
70
- return t.pagination === !1 ? !1 : ((a = t.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : e(i) ? (((n = t.dataSource) == null ? void 0 : n.length) || 0) > e(v).pageSize : e(u).total > e(y).pagination.pageSize;
71
- }), i = l(() => !k(t.dataSource));
70
+ return t.pagination === !1 ? !1 : ((a = t.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : e(r) ? (((n = t.dataSource) == null ? void 0 : n.length) || 0) > e(b).pageSize : e(f).total > e(v).pagination.pageSize;
71
+ }), r = i(() => !k(t.dataSource));
72
72
  W(
73
- () => e(b),
73
+ () => e(m),
74
74
  (a) => {
75
75
  var n;
76
76
  (n = t.onLoadingChange) == null || n.call(t, a);
77
77
  }
78
78
  );
79
- function V(a) {
79
+ function _(a) {
80
80
  var n, o;
81
- (o = (n = p.value) == null ? void 0 : n.querySelector(a || ":first-child")) == null || o.scrollIntoView({ behavior: "smooth", block: "center" });
81
+ (o = (n = S.value) == null ? void 0 : n.querySelector(a || ":first-child")) == null || o.scrollIntoView({ behavior: "smooth", block: "center" });
82
82
  }
83
83
  return E({
84
- submit: () => S(),
85
- reset: () => h(),
84
+ submit: () => h(),
85
+ reset: () => y(),
86
86
  refresh: () => z(),
87
87
  refreshByDelete: (a) => N(a),
88
- scrollToFirstRow: V
89
- }), (a, n) => (r(), C(e(K), {
90
- spinning: b.value,
91
- class: s(e(d)("spin"))
88
+ scrollToFirstRow: _
89
+ }), (a, n) => (l(), j(e(Q), {
90
+ spinning: m.value,
91
+ class: s(e(g)("spin"))
92
92
  }, {
93
- default: j(() => [
94
- A("div", {
95
- class: s(e(d)()),
96
- style: P(a.containerStyle)
93
+ default: A(() => [
94
+ G("div", {
95
+ class: s(e(g)()),
96
+ style: C(a.containerStyle)
97
97
  }, [
98
- c(a.$slots, "header", {
98
+ u(a.$slots, "header", {
99
99
  formIns: R,
100
- submit: e(S),
101
- reset: e(h)
100
+ submit: e(h),
101
+ reset: e(y)
102
102
  }),
103
- f.value.length === 0 ? (r(), C(e(D), {
103
+ c.value.length === 0 ? u(a.$slots, "empty", {
104
104
  key: 0,
105
- image: e(w)
106
- }, null, 8, ["image"])) : (r(), m("div", {
105
+ loading: m.value
106
+ }, () => [
107
+ P(e(D), { image: e(w) }, null, 8, ["image"])
108
+ ]) : (l(), d("div", {
107
109
  key: 1,
108
110
  ref_key: "contentRef",
109
- ref: p,
110
- class: s(e(g)("content"))
111
+ ref: S,
112
+ class: s(e(p)("content"))
111
113
  }, [
112
- c(a.$slots, "renderContent", { dataSource: f.value }, () => [
113
- (r(!0), m(G, null, U(f.value, (o, $) => c(a.$slots, "renderItem", {
114
+ u(a.$slots, "renderContent", { dataSource: c.value }, () => [
115
+ (l(!0), d(U, null, H(c.value, (o, $) => u(a.$slots, "renderItem", {
114
116
  item: o,
115
117
  index: $
116
118
  })), 256))
117
119
  ])
118
120
  ], 2)),
119
- O.value ? (r(), m("div", {
121
+ V.value ? (l(), d("div", {
120
122
  key: 2,
121
- class: s(e(g)("footer")),
122
- style: P(a.footerWarpperStyle)
123
+ class: s(e(p)("footer")),
124
+ style: C(a.footerWarpperStyle)
123
125
  }, [
124
- x(e(Q), H(
125
- i.value ? e(v) : e(X)(e(y).pagination, ["showTotal"]),
126
- { onChange: q }
126
+ P(e(X), J(
127
+ r.value ? e(b) : e(Y)(e(v).pagination, ["showTotal"]),
128
+ { onChange: O }
127
129
  ), null, 16)
128
- ], 6)) : J("", !0)
130
+ ], 6)) : K("", !0)
129
131
  ], 6)
130
132
  ]),
131
133
  _: 3