@aplus-frontend/ui 0.2.0-beta.2 → 0.2.0-beta.4

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 (113) hide show
  1. package/es/index.mjs +59 -52
  2. package/es/src/ap-field/interface.d.ts +6 -0
  3. package/es/src/ap-field/select/index.vue.mjs +14 -13
  4. package/es/src/ap-form/item/index.vue.mjs +58 -58
  5. package/es/src/ap-form/item-text/style/css.d.ts +0 -1
  6. package/es/src/ap-form/item-text/style/css.js +1 -1
  7. package/es/src/ap-form/item-text/style/index.d.ts +0 -1
  8. package/es/src/ap-form/item-text/style/index.js +1 -1
  9. package/es/src/ap-form/item-text-group/style/css.d.ts +0 -0
  10. package/es/src/ap-form/item-text-group/style/css.js +1 -0
  11. package/es/src/ap-form/item-text-group/style/index.d.ts +0 -0
  12. package/es/src/ap-form/item-text-group/style/index.js +1 -0
  13. package/es/src/ap-form/items/interface.d.ts +11 -0
  14. package/es/src/ap-form/items/text/group.vue.d.ts +42 -0
  15. package/es/src/ap-form/items/text/group.vue.mjs +4 -0
  16. package/es/src/ap-form/items/text/group.vue2.mjs +26 -0
  17. package/es/src/ap-form/items/text/index.d.ts +3 -1
  18. package/es/src/ap-form/items/text/index.mjs +10 -6
  19. package/es/src/ap-table/ap-table.vue.d.ts +2 -0
  20. package/es/src/ap-table/ap-table.vue.mjs +28 -27
  21. package/es/src/ap-table/constants.d.ts +20 -30
  22. package/es/src/ap-table/utils.d.ts +35 -3
  23. package/es/src/ap-table/utils.mjs +69 -69
  24. package/es/src/ap-upload/apUpload.vue.d.ts +17 -1
  25. package/es/src/ap-upload/apUpload.vue.mjs +54 -42
  26. package/es/src/ap-upload/apUploadTypes.d.ts +6 -1
  27. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
  28. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +98 -90
  29. package/es/src/ap-upload/components/Picture.vue.d.ts +4 -1
  30. package/es/src/ap-upload/components/Picture.vue2.mjs +146 -138
  31. package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
  32. package/es/src/ap-upload/components/SingleFile.vue2.mjs +84 -86
  33. package/es/src/business/ap-label/constans.d.ts +1 -1
  34. package/es/src/business/ap-label/interface.d.ts +2 -2
  35. package/es/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
  36. package/es/src/business/ap-summary/ap-summary.vue.mjs +4 -0
  37. package/es/src/business/ap-summary/ap-summary.vue2.mjs +68 -0
  38. package/es/src/business/ap-summary/index.d.ts +95 -0
  39. package/es/src/business/ap-summary/index.mjs +13 -0
  40. package/es/src/business/ap-summary/interface.d.ts +41 -0
  41. package/es/src/business/ap-summary/interface.mjs +1 -0
  42. package/es/src/business/ap-summary/style/css.d.ts +0 -0
  43. package/es/src/business/ap-summary/style/css.js +1 -0
  44. package/es/src/business/ap-summary/style/index.d.ts +0 -0
  45. package/es/src/business/ap-summary/style/index.js +1 -0
  46. package/es/src/business/ap-summary/utils.d.ts +12 -0
  47. package/es/src/business/ap-summary/utils.mjs +36 -0
  48. package/es/src/business/index.d.ts +1 -0
  49. package/es/src/business/index.mjs +16 -14
  50. package/es/src/editable-table/utils.mjs +51 -51
  51. package/es/src/hooks/useControllableValue.d.ts +8 -3
  52. package/es/src/hooks/useControllableValue.mjs +18 -13
  53. package/es/src/index.mjs +59 -52
  54. package/es/src/path-map.mjs +3 -1
  55. package/es/src/utils/slot.d.ts +9 -1
  56. package/es/src/utils/slot.mjs +10 -6
  57. package/lib/index.js +1 -1
  58. package/lib/src/ap-field/interface.d.ts +6 -0
  59. package/lib/src/ap-field/select/index.vue.js +1 -1
  60. package/lib/src/ap-form/item/index.vue.js +1 -1
  61. package/lib/src/ap-form/item-text/style/css.d.ts +0 -1
  62. package/lib/src/ap-form/item-text/style/css.js +1 -1
  63. package/lib/src/ap-form/item-text/style/index.d.ts +0 -1
  64. package/lib/src/ap-form/item-text/style/index.js +1 -1
  65. package/lib/src/ap-form/item-text-group/style/css.d.ts +0 -0
  66. package/lib/src/ap-form/item-text-group/style/css.js +1 -0
  67. package/lib/src/ap-form/item-text-group/style/index.d.ts +0 -0
  68. package/lib/src/ap-form/item-text-group/style/index.js +1 -0
  69. package/lib/src/ap-form/items/interface.d.ts +11 -0
  70. package/lib/src/ap-form/items/text/group.vue.d.ts +42 -0
  71. package/lib/src/ap-form/items/text/group.vue.js +1 -0
  72. package/lib/src/ap-form/items/text/group.vue2.js +1 -0
  73. package/lib/src/ap-form/items/text/index.d.ts +3 -1
  74. package/lib/src/ap-form/items/text/index.js +1 -1
  75. package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
  76. package/lib/src/ap-table/ap-table.vue.js +1 -1
  77. package/lib/src/ap-table/constants.d.ts +20 -30
  78. package/lib/src/ap-table/utils.d.ts +35 -3
  79. package/lib/src/ap-table/utils.js +1 -1
  80. package/lib/src/ap-upload/apUpload.vue.d.ts +17 -1
  81. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  82. package/lib/src/ap-upload/apUploadTypes.d.ts +6 -1
  83. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
  84. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  85. package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -1
  86. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  87. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
  88. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  89. package/lib/src/business/ap-label/constans.d.ts +1 -1
  90. package/lib/src/business/ap-label/interface.d.ts +2 -2
  91. package/lib/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
  92. package/lib/src/business/ap-summary/ap-summary.vue.js +1 -0
  93. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -0
  94. package/lib/src/business/ap-summary/index.d.ts +95 -0
  95. package/lib/src/business/ap-summary/index.js +1 -0
  96. package/lib/src/business/ap-summary/interface.d.ts +41 -0
  97. package/lib/src/business/ap-summary/interface.js +1 -0
  98. package/lib/src/business/ap-summary/style/css.d.ts +0 -0
  99. package/lib/src/business/ap-summary/style/css.js +1 -0
  100. package/lib/src/business/ap-summary/style/index.d.ts +0 -0
  101. package/lib/src/business/ap-summary/style/index.js +1 -0
  102. package/lib/src/business/ap-summary/utils.d.ts +12 -0
  103. package/lib/src/business/ap-summary/utils.js +1 -0
  104. package/lib/src/business/index.d.ts +1 -0
  105. package/lib/src/business/index.js +1 -1
  106. package/lib/src/editable-table/utils.js +1 -1
  107. package/lib/src/hooks/useControllableValue.d.ts +8 -3
  108. package/lib/src/hooks/useControllableValue.js +1 -1
  109. package/lib/src/index.js +1 -1
  110. package/lib/src/path-map.js +1 -1
  111. package/lib/src/utils/slot.d.ts +9 -1
  112. package/lib/src/utils/slot.js +1 -1
  113. package/package.json +4 -4
@@ -1,37 +1,39 @@
1
1
  import { default as t } from "./ap-table-modal/index.mjs";
2
- import { ApAttachment as A } from "./ap-attachment/index.mjs";
3
- import { ApBatchAction as m } from "./ap-batch-action/index.mjs";
2
+ import { ApAttachment as m } from "./ap-attachment/index.mjs";
3
+ import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
4
4
  import { ApBatchActionGroup as x } from "./ap-batch-action-group/index.mjs";
5
5
  import { ApButtonGroup as l } from "./ap-button-group/index.mjs";
6
6
  import { ApCard as n } from "./ap-card/index.mjs";
7
7
  import { ApExpandAlert as i } from "./ap-expand-alert/index.mjs";
8
8
  import { ApExportGroup as s } from "./ap-export-group/index.mjs";
9
- import { ApImage as b } from "./ap-image/index.mjs";
10
- import { ApInputRadio as B } from "./ap-input-radio/index.mjs";
11
- import { ApLabel as T, ApLabelGroup as E } from "./ap-label/index.mjs";
12
- import { ApLadder as g } from "./ap-ladder/index.mjs";
9
+ import { ApImage as S } from "./ap-image/index.mjs";
10
+ import { ApInputRadio as h } from "./ap-input-radio/index.mjs";
11
+ import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
12
+ import { ApLadder as I } from "./ap-ladder/index.mjs";
13
13
  import { ApSelectLayout as C } from "./ap-select-layout/index.mjs";
14
14
  import { ApStatus as H, ApStatusGroup as M } from "./ap-status/index.mjs";
15
15
  import { ApTitle as j } from "./ap-title/index.mjs";
16
16
  import "./hooks/index.mjs";
17
- import { ApTransformDataHelper as q } from "../utils/ap-trans-data/index.mjs";
17
+ import { ApSummary as q } from "./ap-summary/index.mjs";
18
+ import { ApTransformDataHelper as w } from "../utils/ap-trans-data/index.mjs";
18
19
  export {
19
- A as ApAttachment,
20
- m as ApBatchAction,
20
+ m as ApAttachment,
21
+ a as ApBatchAction,
21
22
  x as ApBatchActionGroup,
22
23
  l as ApButtonGroup,
23
24
  n as ApCard,
24
25
  i as ApExpandAlert,
25
26
  s as ApExportGroup,
26
- b as ApImage,
27
- B as ApInputRadio,
27
+ S as ApImage,
28
+ h as ApInputRadio,
28
29
  T as ApLabel,
29
- E as ApLabelGroup,
30
- g as ApLadder,
30
+ y as ApLabelGroup,
31
+ I as ApLadder,
31
32
  C as ApSelectLayout,
32
33
  H as ApStatus,
33
34
  M as ApStatusGroup,
35
+ q as ApSummary,
34
36
  t as ApTableModal,
35
37
  j as ApTitle,
36
- q as ApTransformDataHelper
38
+ w as ApTransformDataHelper
37
39
  };
@@ -1,19 +1,19 @@
1
- import { isVNode as h, createVNode as s, mergeProps as I, createTextVNode as F, Fragment as S } from "vue";
2
- import { isFunction as m, isArray as g, isBoolean as w, omit as P, isString as V } from "lodash-unified";
3
- import { apTableFormItemMap as q, noRenderAsFormItemValueList as v, apTableRenderItemMap as C } from "../ap-table/constants.mjs";
1
+ import { isVNode as I, createVNode as r, mergeProps as S, createTextVNode as F, Fragment as w } from "vue";
2
+ import { isFunction as m, isArray as g, isBoolean as P, omit as V, isString as q } from "lodash-unified";
3
+ import { apTableFormItemMap as v, noRenderAsFormItemValueList as C, apTableRenderItemMap as N } from "../ap-table/constants.mjs";
4
4
  import { isDef as j } from "../utils/index.mjs";
5
5
  import { getValueStr as A } from "../ap-field/number/helper.mjs";
6
- import N from "scroll-into-view-if-needed";
7
- import { Typography as O, Tooltip as W } from "ant-design-vue";
6
+ import O from "scroll-into-view-if-needed";
7
+ import { Typography as W, Tooltip as _ } from "ant-design-vue";
8
8
  import "../ap-form/index.mjs";
9
- import { objectToString as _ } from "../ap-table/utils.mjs";
10
- import { QuestionCircleOutlined as D } from "@ant-design/icons-vue";
9
+ import { objectToString as D } from "../ap-table/utils.mjs";
10
+ import { QuestionCircleOutlined as E } from "@ant-design/icons-vue";
11
11
  import T from "../ap-form/item/index.vue.mjs";
12
12
  function b(t) {
13
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !h(t);
13
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !I(t);
14
14
  }
15
- function E(t) {
16
- return q[t];
15
+ function R(t) {
16
+ return v[t];
17
17
  }
18
18
  function k(t) {
19
19
  if (!t.fieldProps)
@@ -28,9 +28,9 @@ function B(t, e) {
28
28
  const i = t.fieldProps ? m(t.fieldProps) ? t.fieldProps({}) : t.fieldProps : {};
29
29
  return A(e, i) || "--";
30
30
  }
31
- return _(e);
31
+ return D(e);
32
32
  }
33
- function Z(t, e) {
33
+ function H(t, e) {
34
34
  const i = [t];
35
35
  if (e) {
36
36
  const o = g(e) ? e : [e];
@@ -38,22 +38,22 @@ function Z(t, e) {
38
38
  }
39
39
  return i.join(" ");
40
40
  }
41
- function $(t, e = document.body, i = {}) {
41
+ function M(t, e = document.body, i = {}) {
42
42
  const o = e.querySelectorAll("tr.ant-table-row")[t];
43
- o && N(o, {
43
+ o && O(o, {
44
44
  scrollMode: "if-needed",
45
45
  block: "nearest",
46
46
  behavior: "smooth",
47
47
  ...i
48
48
  });
49
49
  }
50
- function H(t, e, i) {
51
- return v.includes(t.valueType) ? i : t.copyable || t.ellipsis ? s(O.Paragraph, {
50
+ function L(t, e, i) {
51
+ return C.includes(t.valueType) ? i : t.copyable || t.ellipsis ? r(W.Paragraph, {
52
52
  copyable: t.copyable ? {
53
53
  text: e,
54
54
  tooltip: !1
55
55
  } : !1,
56
- ellipsis: t.ellipsis ? w(t.ellipsis) ? {
56
+ ellipsis: t.ellipsis ? P(t.ellipsis) ? {
57
57
  tooltip: e
58
58
  } : {
59
59
  ...t.ellipsis,
@@ -62,73 +62,73 @@ function H(t, e, i) {
62
62
  content: t.ellipsis ? B(t, e) : i
63
63
  }, null) : i;
64
64
  }
65
- function M(t, e, i, o, d, l) {
66
- var c, a;
65
+ function tt(t, e, i, o, d, l) {
66
+ var u, y;
67
67
  if (e) {
68
68
  if (t.customRenderFormItem) {
69
- const y = t.customRenderFormItem(t, i.field, e, d);
70
- return s(T, P(i, ["field"]), b(y) ? y : {
71
- default: () => [y]
69
+ const a = t.customRenderFormItem(t, i.field, e, d);
70
+ return r(T, V(i, ["field"]), b(a) ? a : {
71
+ default: () => [a]
72
72
  });
73
73
  }
74
- const r = E(t.valueType);
75
- if (r)
76
- return s(r, i, null);
77
- const n = l == null ? void 0 : l[t.valueType], f = (c = n == null ? void 0 : n.renderFormItem) == null ? void 0 : c.call(n, i.field);
78
- return f ? s(T, i, b(f) ? f : {
79
- default: () => [f]
74
+ const s = R(t.valueType);
75
+ if (s)
76
+ return r(s, i, null);
77
+ const n = l == null ? void 0 : l[t.valueType], p = (u = n == null ? void 0 : n.renderFormItem) == null ? void 0 : u.call(n, i.field);
78
+ return p ? r(T, i, b(p) ? p : {
79
+ default: () => [p]
80
80
  }) : null;
81
81
  }
82
- let p;
83
- const u = C[t.valueType];
84
- if (u)
85
- p = s(u, I(i.field, {
82
+ let f;
83
+ const c = N[t.valueType];
84
+ if (c)
85
+ f = r(c, S(i.field, {
86
86
  mode: "read"
87
87
  }), null);
88
88
  else {
89
- const r = l == null ? void 0 : l[t.valueType];
90
- p = (a = r == null ? void 0 : r.render) == null ? void 0 : a.call(r, o, d, i.field);
89
+ const s = l == null ? void 0 : l[t.valueType];
90
+ f = (y = s == null ? void 0 : s.render) == null ? void 0 : y.call(s, o, d, i.field);
91
91
  }
92
- return p ? H(t, o, p) : null;
92
+ return f ? L(t, o, f) : null;
93
93
  }
94
- function tt(t, e, i, o, d) {
94
+ function et(t, e, i, o, d) {
95
95
  const l = o == null ? void 0 : o({
96
96
  title: t.title,
97
97
  column: t
98
- });
99
- if (l && (l.length > 1 || l[0].children && l[0].children !== "v-if"))
98
+ }), f = (l == null ? void 0 : l.filter((h) => h.type !== Symbol.for("v-cmt"))) || [];
99
+ if (l && f.length > 0)
100
100
  return l;
101
- const u = k(t), a = V(t.title) ? {
101
+ const u = k(t), s = q(t.title) ? {
102
102
  class: e,
103
103
  title: t.title
104
- } : {}, r = s("div", a, [u ? s("span", {
104
+ } : {}, n = r("div", s, [u ? r("span", {
105
105
  class: i
106
- }, [F("*")]) : null, t.title]), n = t.tooltip ? m(t.tooltip) ? t.tooltip(t) : s(S, null, [t.tooltip]) : null;
107
- return n ? s("span", {
106
+ }, [F("*")]) : null, t.title]), p = t.tooltip ? m(t.tooltip) ? t.tooltip(t) : r(w, null, [t.tooltip]) : null;
107
+ return p ? r("span", {
108
108
  style: {
109
109
  display: "inline-flex",
110
110
  alignItems: "center",
111
111
  maxWidth: "100%"
112
112
  }
113
- }, [r, s(W, {
114
- title: n,
113
+ }, [n, r(_, {
114
+ title: p,
115
115
  placement: "bottom"
116
116
  }, {
117
- default: () => [s(D, {
117
+ default: () => [r(E, {
118
118
  style: {
119
119
  padding: "4px",
120
120
  color: d,
121
121
  verticalAlign: "middle"
122
122
  }
123
123
  }, null)]
124
- })]) : r;
124
+ })]) : n;
125
125
  }
126
126
  export {
127
127
  k as getColumnIsRequired,
128
- E as getEditableComponent,
129
- tt as getEditableTableTitle,
130
- M as getFinalNode,
128
+ R as getEditableComponent,
129
+ et as getEditableTableTitle,
130
+ tt as getFinalNode,
131
131
  B as getRawDisplayValue,
132
- Z as mergeClass,
133
- $ as scrollToRowIndex
132
+ H as mergeClass,
133
+ M as scrollToRowIndex
134
134
  };
@@ -1,12 +1,17 @@
1
1
  import { Ref } from 'vue';
2
2
  import { Recordable } from '../type';
3
- type Options = {
4
- defaultValue?: any;
3
+ type Options<ValueType = any> = {
4
+ defaultValue?: ValueType;
5
5
  defaultValuePropName?: string;
6
6
  valuePropName?: string;
7
+ /**
8
+ * 在更新值之前执行,返回false将不更新值,支持异步
9
+ * @returns
10
+ */
11
+ beforeUpdateValue?: (nextVal: ValueType) => boolean | Promise<boolean>;
7
12
  };
8
13
  export declare function useControllableValue<ValueType = any>(props: Recordable, emit: (event: any, ...args: any[]) => void, options?: Options): {
9
14
  value: Ref<ValueType>;
10
- updateValue: (newValue: any) => void;
15
+ updateValue: (newValue: any) => Promise<void>;
11
16
  };
12
17
  export {};
@@ -1,26 +1,31 @@
1
- import { ref as v, watch as V } from "vue";
1
+ import { ref as V, nextTick as n, watch as N } from "vue";
2
2
  import { isUndefined as d } from "lodash-unified";
3
- function P(u, t, e) {
4
- const f = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue", a = (e == null ? void 0 : e.valuePropName) || "value", r = v(c());
5
- function m(l) {
6
- u[a] === void 0 && (r.value = l), t(`update:${a}`, l);
3
+ function g(a, t, e) {
4
+ const f = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue", l = (e == null ? void 0 : e.valuePropName) || "value", u = V(m());
5
+ async function v(r) {
6
+ e != null && e.beforeUpdateValue && (c(), !await e.beforeUpdateValue(r)) || (a[l] === void 0 && (u.value = r), t(`update:${l}`, r));
7
7
  }
8
8
  function c() {
9
- return d(u[a]) ? d(u[f]) ? e == null ? void 0 : e.defaultValue : u[f] : u[a];
9
+ u.value === void 0 && (u.value = "", n(() => {
10
+ u.value = void 0;
11
+ }));
10
12
  }
11
- return V(
12
- () => u[a],
13
- (l) => {
14
- r.value = l;
13
+ function m() {
14
+ return d(a[l]) ? d(a[f]) ? e == null ? void 0 : e.defaultValue : a[f] : a[l];
15
+ }
16
+ return N(
17
+ () => a[l],
18
+ (r) => {
19
+ u.value = r;
15
20
  },
16
21
  {
17
22
  deep: !0
18
23
  }
19
24
  ), {
20
- value: r,
21
- updateValue: m
25
+ value: u,
26
+ updateValue: v
22
27
  };
23
28
  }
24
29
  export {
25
- P as useControllableValue
30
+ g as useControllableValue
26
31
  };
package/es/src/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { APConfigProvider as s } from "./config-provider/index.mjs";
2
2
  import { ApForm as n } from "./ap-form/index.mjs";
3
3
  import { ApField as F } from "./ap-field/index.mjs";
4
4
  import { adminToken as T, aplusToken as I } from "./design-token/index.mjs";
5
- import { ApActionItem as C } from "./ap-action/index.mjs";
5
+ import { ApActionItem as g } from "./ap-action/index.mjs";
6
6
  import "./work-order-modal/index.mjs";
7
7
  import "./ap-tag/index.mjs";
8
8
  import "./ap-info-layout/index.mjs";
@@ -16,9 +16,9 @@ import "./business/index.mjs";
16
16
  import "./ap-table/index.mjs";
17
17
  import "./editable-table/index.mjs";
18
18
  import "./ap-descriptions/index.mjs";
19
- import { configProviderProps as P } from "./config-provider/config-provider-props.mjs";
20
- import { configProviderContextKey as k } from "./config-provider/constants.mjs";
21
- import { keysOf as M, provideGlobalConfig as N, useGlobalConfig as R } from "./config-provider/hooks/use-global-config.mjs";
19
+ import { configProviderProps as L } from "./config-provider/config-provider-props.mjs";
20
+ import { configProviderContextKey as N } from "./config-provider/constants.mjs";
21
+ import { keysOf as w, provideGlobalConfig as M, useGlobalConfig as R } from "./config-provider/hooks/use-global-config.mjs";
22
22
  import { buildLocaleContext as E, buildTranslator as B, localeContextKey as K, translate as O, useLocale as W } from "./config-provider/hooks/use-locale.mjs";
23
23
  import { defaultNamespace as U, namespaceContextKey as j, useGetDerivedNamespace as q, useNamespace as z } from "./config-provider/hooks/use-namespace.mjs";
24
24
  import { ConfigProvider as Q, globalConfigCached as V } from "./config-provider/config-provider.mjs";
@@ -29,18 +29,18 @@ import { default as ro } from "./ap-form/items/date/index.vue.mjs";
29
29
  import { default as po } from "./ap-form/items/date-range/index.vue.mjs";
30
30
  import { default as mo } from "./ap-form/items/radio/index.vue.mjs";
31
31
  import { default as lo } from "./ap-form/items/select/index.vue.mjs";
32
- import { default as Ao } from "./ap-form/items/switch/index.vue.mjs";
32
+ import { default as uo } from "./ap-form/items/switch/index.vue.mjs";
33
33
  import { default as so } from "./ap-form/items/checkbox/index.vue.mjs";
34
34
  import { default as no } from "./ap-form/items/text/password.vue.mjs";
35
35
  import { default as Fo } from "./ap-form/item/index.vue.mjs";
36
36
  import { default as To } from "./ap-form/item-group/index.vue.mjs";
37
- import { default as go } from "./ap-form/list/index.vue.mjs";
37
+ import { default as Co } from "./ap-form/list/index.vue.mjs";
38
38
  import { default as Do } from "./ap-form/search-form/index.vue.mjs";
39
39
  import { default as Go } from "./ap-form/modal-form/index.vue.mjs";
40
- import { default as Lo } from "./ap-form/dependency/index.vue.mjs";
41
- import { default as yo } from "./ap-form/set/index.vue.mjs";
42
- import { default as wo } from "./ap-form/drawer-form/index.vue.mjs";
43
- import { ApFieldText as No } from "./ap-field/text/index.mjs";
40
+ import { default as yo } from "./ap-form/dependency/index.vue.mjs";
41
+ import { default as Po } from "./ap-form/set/index.vue.mjs";
42
+ import { default as ko } from "./ap-form/drawer-form/index.vue.mjs";
43
+ import { ApFieldText as Mo } from "./ap-field/text/index.mjs";
44
44
  import { default as vo } from "./ap-field/checkbox/index.vue.mjs";
45
45
  import { default as Bo } from "./ap-field/date/index.vue.mjs";
46
46
  import { default as Oo } from "./ap-field/number/index.vue.mjs";
@@ -56,17 +56,17 @@ import { default as te } from "./ap-field/rate/index.vue.mjs";
56
56
  import { default as ae } from "./ap-action/item-modal/index.vue.mjs";
57
57
  import { default as fe } from "./ap-action/item-popconfirm/index.vue.mjs";
58
58
  import { default as de } from "./ap-action/item-dropdown/index.vue.mjs";
59
- import { default as Ae } from "./ap-action/group/index.vue.mjs";
59
+ import { default as ue } from "./ap-action/group/index.vue.mjs";
60
60
  import { DictCode as se, langMap as ie } from "./work-order-modal/interfaces.mjs";
61
61
  import { createWorkOrderModal as ce } from "./work-order-modal/createWorkOrder.mjs";
62
62
  import { default as be } from "./work-order-modal/work-order-modal.vue.mjs";
63
63
  import { default as Ie } from "./ap-tag/ap-tag.vue.mjs";
64
- import { default as Ce } from "./ap-tag/ap-tag-group.vue.mjs";
64
+ import { default as ge } from "./ap-tag/ap-tag-group.vue.mjs";
65
65
  import { default as he } from "./ap-info-layout/ApInfoLayout.vue.mjs";
66
66
  import { NeedNameKeyDefault as Se } from "./ap-upload/apUploadTypes.mjs";
67
- import { default as Pe } from "./ap-upload/apUpload.vue.mjs";
68
- import { ApDownLoadNeedNameKeyDefault as ke } from "./ap-download/interface.mjs";
69
- import { default as Me } from "./ap-download/ap-download.vue.mjs";
67
+ import { default as Le } from "./ap-upload/apUpload.vue.mjs";
68
+ import { ApDownLoadNeedNameKeyDefault as Ne } from "./ap-download/interface.mjs";
69
+ import { default as we } from "./ap-download/ap-download.vue.mjs";
70
70
  import { default as Re } from "./check-card/group.vue.mjs";
71
71
  import { default as Ee } from "./ap-list/index.vue.mjs";
72
72
  import { default as Ke } from "./ap-button/ap-button.vue.mjs";
@@ -83,27 +83,29 @@ import { ApCard as pr } from "./business/ap-card/index.mjs";
83
83
  import { ApExpandAlert as mr } from "./business/ap-expand-alert/index.mjs";
84
84
  import { ApExportGroupActionType as lr } from "./business/ap-export-group/interface.mjs";
85
85
  import { ApExportGroup as xr } from "./business/ap-export-group/index.mjs";
86
- import { handleExportDownload as ur } from "./business/ap-export-group/handleExportDownload.mjs";
86
+ import { handleExportDownload as Ar } from "./business/ap-export-group/handleExportDownload.mjs";
87
87
  import { ApImage as ir } from "./business/ap-image/index.mjs";
88
88
  import { ApInputRadio as cr } from "./business/ap-input-radio/index.mjs";
89
89
  import { ApLabel as br, ApLabelGroup as Tr } from "./business/ap-label/index.mjs";
90
- import { locales as gr } from "./business/ap-ladder/interface.mjs";
90
+ import { locales as Cr } from "./business/ap-ladder/interface.mjs";
91
91
  import { ApLadder as Dr } from "./business/ap-ladder/index.mjs";
92
92
  import { ApSelectLayout as Gr } from "./business/ap-select-layout/index.mjs";
93
- import { ApStatus as Lr, ApStatusGroup as Pr } from "./business/ap-status/index.mjs";
94
- import { ApTitle as kr } from "./business/ap-title/index.mjs";
95
- import { usePageListApTable as Mr } from "./business/hooks/usePageListApTable.mjs";
93
+ import { ApStatus as yr, ApStatusGroup as Lr } from "./business/ap-status/index.mjs";
94
+ import { ApTitle as Nr } from "./business/ap-title/index.mjs";
95
+ import { usePageListApTable as wr } from "./business/hooks/usePageListApTable.mjs";
96
96
  import { useTableRefresh as Rr } from "./business/hooks/useTableRefresh.mjs";
97
- import { useTablePaging as Er } from "./ap-table/hooks/use-table-paging.mjs";
98
- import { default as Kr } from "./ap-table/ap-table.vue.mjs";
99
- import { default as Wr } from "./editable-table/index.vue.mjs";
100
- import { default as Ur } from "./editable-table/form-item.vue.mjs";
101
- import { default as qr } from "./ap-descriptions/ap-descriptions.vue.mjs";
97
+ import { computedRecords as Er, flattenColumns as Br, formatDataIndex as Kr, formatNumber as Or } from "./business/ap-summary/utils.mjs";
98
+ import { ApSummary as Hr } from "./business/ap-summary/index.mjs";
99
+ import { useTablePaging as jr } from "./ap-table/hooks/use-table-paging.mjs";
100
+ import { default as zr } from "./ap-table/ap-table.vue.mjs";
101
+ import { default as Qr } from "./editable-table/index.vue.mjs";
102
+ import { default as Xr } from "./editable-table/form-item.vue.mjs";
103
+ import { default as Zr } from "./ap-descriptions/ap-descriptions.vue.mjs";
102
104
  export {
103
105
  s as APConfigProvider,
104
106
  We as ApActionButton,
105
- Ae as ApActionGroup,
106
- C as ApActionItem,
107
+ ue as ApActionGroup,
108
+ g as ApActionItem,
107
109
  de as ApActionItemDropdown,
108
110
  ae as ApActionItemModal,
109
111
  fe as ApActionItemPopconfirm,
@@ -113,9 +115,9 @@ export {
113
115
  Ke as ApButton,
114
116
  rr as ApButtonGroup,
115
117
  pr as ApCard,
116
- qr as ApDescriptions,
117
- ke as ApDownLoadNeedNameKeyDefault,
118
- Me as ApDownload,
118
+ Zr as ApDescriptions,
119
+ Ne as ApDownLoadNeedNameKeyDefault,
120
+ we as ApDownload,
119
121
  mr as ApExpandAlert,
120
122
  xr as ApExportGroup,
121
123
  lr as ApExportGroupActionType,
@@ -131,11 +133,11 @@ export {
131
133
  Xo as ApFieldSelect,
132
134
  $o as ApFieldSlider,
133
135
  jo as ApFieldSwitch,
134
- No as ApFieldText,
136
+ Mo as ApFieldText,
135
137
  zo as ApFieldTextArea,
136
138
  n as ApForm,
137
- Lo as ApFormDependency,
138
- wo as ApFormDrawerForm,
139
+ yo as ApFormDependency,
140
+ ko as ApFormDrawerForm,
139
141
  Fo as ApFormItem,
140
142
  so as ApFormItemCheckbox,
141
143
  ro as ApFormItemDate,
@@ -144,14 +146,14 @@ export {
144
146
  oo as ApFormItemNumber,
145
147
  mo as ApFormItemRadio,
146
148
  lo as ApFormItemSelect,
147
- Ao as ApFormItemSwitch,
149
+ uo as ApFormItemSwitch,
148
150
  Y as ApFormItemText,
149
151
  _ as ApFormItemTextArea,
150
152
  no as ApFormItemTextPassword,
151
- go as ApFormList,
153
+ Co as ApFormList,
152
154
  Go as ApFormModalForm,
153
155
  Do as ApFormSearchForm,
154
- yo as ApFormSet,
156
+ Po as ApFormSet,
155
157
  ir as ApImage,
156
158
  he as ApInfoLayout,
157
159
  cr as ApInputRadio,
@@ -161,47 +163,52 @@ export {
161
163
  Ee as ApList,
162
164
  S as ApModal,
163
165
  Gr as ApSelectLayout,
164
- Lr as ApStatus,
165
- Pr as ApStatusGroup,
166
- Kr as ApTable,
166
+ yr as ApStatus,
167
+ Lr as ApStatusGroup,
168
+ Hr as ApSummary,
169
+ zr as ApTable,
167
170
  qe as ApTableModal,
168
171
  Ie as ApTag,
169
- Ce as ApTagGroup,
170
- kr as ApTitle,
172
+ ge as ApTagGroup,
173
+ Nr as ApTitle,
171
174
  Ue as ApTransformDataHelper,
172
- Pe as ApUpload,
175
+ Le as ApUpload,
173
176
  h as CheckCard,
174
177
  Re as CheckCardGroup,
175
178
  Q as ConfigProvider,
176
179
  se as DictCode,
177
- Wr as EditableTable,
178
- Ur as EditableTableFormItem,
180
+ Qr as EditableTable,
181
+ Xr as EditableTableFormItem,
179
182
  Se as NeedNameKeyDefault,
180
183
  be as WorkOrderModal,
181
184
  T as adminToken,
182
185
  I as aplusToken,
183
186
  E as buildLocaleContext,
184
187
  B as buildTranslator,
185
- k as configProviderContextKey,
186
- P as configProviderProps,
188
+ Er as computedRecords,
189
+ N as configProviderContextKey,
190
+ L as configProviderProps,
187
191
  ce as createWorkOrderModal,
188
192
  U as defaultNamespace,
193
+ Br as flattenColumns,
194
+ Kr as formatDataIndex,
195
+ Or as formatNumber,
189
196
  V as globalConfigCached,
190
- ur as handleExportDownload,
191
- M as keysOf,
197
+ Ar as handleExportDownload,
198
+ w as keysOf,
192
199
  ie as langMap,
193
200
  K as localeContextKey,
194
- gr as locales,
201
+ Cr as locales,
195
202
  j as namespaceContextKey,
196
- N as provideGlobalConfig,
203
+ M as provideGlobalConfig,
197
204
  O as translate,
198
205
  q as useGetDerivedNamespace,
199
206
  R as useGlobalConfig,
200
207
  W as useLocale,
201
208
  z as useNamespace,
202
- Mr as usePageListApTable,
209
+ wr as usePageListApTable,
203
210
  Je as useTableModal,
204
- Er as useTablePaging,
211
+ jr as useTablePaging,
205
212
  Rr as useTableRefresh,
206
213
  Ve as useTableSelectModal
207
214
  };
@@ -41,6 +41,7 @@ const e = {
41
41
  ApFormItemSwitch: ["ap-form", "item-switch"],
42
42
  ApFormItemCheckbox: ["ap-form", "item-checkbox"],
43
43
  ApFormItemTextPassword: ["ap-form", "item-text-password"],
44
+ ApFormItemTextGroup: ["ap-form", "item-text-group"],
44
45
  ApInfoLayout: ["ap-info-layout"],
45
46
  ApList: ["ap-list"],
46
47
  ApModal: ["ap-modal"],
@@ -70,7 +71,8 @@ const e = {
70
71
  ApStatus: ["business", "ap-status"],
71
72
  ApStatusGroup: ["business", "ap-status", "group"],
72
73
  ApTableModal: ["business", "ap-table-modal"],
73
- ApTitle: ["business", "ap-title"]
74
+ ApTitle: ["business", "ap-title"],
75
+ ApSummary: ["business", "ap-summary"]
74
76
  };
75
77
  export {
76
78
  e as default
@@ -1,7 +1,15 @@
1
- import { VNode } from 'vue';
1
+ import { VNode, RendererNode, RendererElement } from 'vue';
2
2
  /**
3
3
  * 获取某个插槽下的唯一VNode
4
4
  * @param slot
5
5
  * @returns
6
6
  */
7
7
  export declare function getSingleVNode(slot: any): VNode | undefined;
8
+ /**
9
+ * 获取正常渲染的节点(排出注释节点)
10
+ * @param nodeList
11
+ * @returns
12
+ */
13
+ export declare function getValidVNodeList(nodeList: VNode[]): VNode< RendererNode, RendererElement, {
14
+ [key: string]: any;
15
+ }>[];
@@ -1,13 +1,17 @@
1
- import { isFunction as i } from "@fruits-chain/utils";
2
- import { isArray as o } from "lodash-unified";
1
+ import { isFunction as n } from "@fruits-chain/utils";
2
+ import { isArray as e } from "lodash-unified";
3
3
  function u(r) {
4
- if (!r || !i(r)) {
4
+ if (!r || !n(r)) {
5
5
  console.error(`${r} is not a function!`);
6
6
  return;
7
7
  }
8
- const n = r();
9
- return o(n) ? n[0] : n;
8
+ const t = r();
9
+ return e(t) ? i(t)[0] : t;
10
+ }
11
+ function i(r) {
12
+ return (r || []).filter((t) => t.type !== Symbol.for("v-cmt"));
10
13
  }
11
14
  export {
12
- u as getSingleVNode
15
+ u as getSingleVNode,
16
+ i as getValidVNodeList
13
17
  };