@aplus-frontend/ui 0.3.11 → 0.3.12

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 (43) hide show
  1. package/es/index.mjs +175 -173
  2. package/es/src/ap-form/ap-form.vue.d.ts +12 -31
  3. package/es/src/ap-form/ap-form.vue2.mjs +135 -118
  4. package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -40
  5. package/es/src/ap-form/drawer-form/index.vue.mjs +3 -3
  6. package/es/src/ap-form/index.d.ts +3 -1
  7. package/es/src/ap-form/index.mjs +26 -22
  8. package/es/src/ap-form/interface.d.ts +3 -1
  9. package/es/src/ap-form/modal-form/index.vue.d.ts +23 -41
  10. package/es/src/ap-form/modal-form/index.vue.mjs +64 -58
  11. package/es/src/ap-form/provider/context.d.ts +3 -0
  12. package/es/src/ap-form/provider/context.mjs +17 -0
  13. package/es/src/ap-form/provider/index.vue.d.ts +19 -0
  14. package/es/src/ap-form/provider/index.vue.mjs +39 -0
  15. package/es/src/ap-form/provider/index.vue2.mjs +4 -0
  16. package/es/src/ap-form/provider/interface.d.ts +22 -0
  17. package/es/src/ap-form/search-form/index.vue.d.ts +22 -40
  18. package/es/src/business/ap-table-modal/interface.d.ts +2 -0
  19. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +50 -48
  20. package/es/src/index.mjs +152 -150
  21. package/es/src/utils/slot.mjs +6 -8
  22. package/lib/index.js +1 -1
  23. package/lib/src/ap-form/ap-form.vue.d.ts +12 -31
  24. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  25. package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -40
  26. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  27. package/lib/src/ap-form/index.d.ts +3 -1
  28. package/lib/src/ap-form/index.js +1 -1
  29. package/lib/src/ap-form/interface.d.ts +3 -1
  30. package/lib/src/ap-form/modal-form/index.vue.d.ts +23 -41
  31. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  32. package/lib/src/ap-form/provider/context.d.ts +3 -0
  33. package/lib/src/ap-form/provider/context.js +1 -0
  34. package/lib/src/ap-form/provider/index.vue.d.ts +19 -0
  35. package/lib/src/ap-form/provider/index.vue.js +1 -0
  36. package/lib/src/ap-form/provider/index.vue2.js +1 -0
  37. package/lib/src/ap-form/provider/interface.d.ts +22 -0
  38. package/lib/src/ap-form/search-form/index.vue.d.ts +22 -40
  39. package/lib/src/business/ap-table-modal/interface.d.ts +2 -0
  40. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  41. package/lib/src/index.js +1 -1
  42. package/lib/src/utils/slot.js +1 -1
  43. package/package.json +3 -3
@@ -1,17 +1,17 @@
1
- import { defineComponent as F, ref as m, unref as s, computed as U, h as q, openBlock as $, createBlock as z, mergeProps as b, withCtx as k, createVNode as T } from "vue";
2
- import { message as h, Modal as H } from "@aplus-frontend/antdv";
1
+ import { defineComponent as U, ref as m, unref as s, computed as q, h as V, openBlock as k, createBlock as T, mergeProps as y, withCtx as h, resolveDynamicComponent as $, createCommentVNode as z, createVNode as S } from "vue";
2
+ import { message as B, Modal as W } from "@aplus-frontend/antdv";
3
3
  import "../../index.mjs";
4
- import { cloneDeep as V, omit as S } from "lodash-unified";
5
- import { transformTableParams as W } from "@aplus-frontend/utils";
4
+ import { cloneDeep as Y, omit as R } from "lodash-unified";
5
+ import { transformTableParams as J } from "@aplus-frontend/utils";
6
6
  import "./modal-title.vue.mjs";
7
- import { AsyncOpenResultError as x } from "./interface.mjs";
7
+ import { AsyncOpenResultError as b } from "./interface.mjs";
8
8
  import "./table-layout/index.vue.mjs";
9
- import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
10
- import { useLocale as J } from "../../config-provider/hooks/use-locale.mjs";
11
- import Q from "./modal-title.vue2.mjs";
12
- import X from "./table-layout/index.vue2.mjs";
13
- import { ApTable as Z } from "../../ap-table/index.mjs";
14
- const fe = /* @__PURE__ */ F({
9
+ import { useGlobalConfig as Q } from "../../config-provider/hooks/use-global-config.mjs";
10
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
11
+ import Z from "./modal-title.vue2.mjs";
12
+ import j from "./table-layout/index.vue2.mjs";
13
+ import { ApTable as ee } from "../../ap-table/index.mjs";
14
+ const pe = /* @__PURE__ */ U({
15
15
  __name: "table-modal",
16
16
  props: {
17
17
  columns: {},
@@ -24,6 +24,7 @@ const fe = /* @__PURE__ */ F({
24
24
  disabledCheckbox: { type: [Boolean, Function] },
25
25
  rowSelection: {},
26
26
  tableLayoutConfig: {},
27
+ renderHeader: {},
27
28
  prefixCls: {},
28
29
  confirmLoading: { type: Boolean, default: void 0 },
29
30
  title: {},
@@ -61,12 +62,12 @@ const fe = /* @__PURE__ */ F({
61
62
  mousePosition: {}
62
63
  },
63
64
  emits: ["finish"],
64
- setup(B, { expose: R, emit: M }) {
65
- const e = B, P = M, i = m(!1), y = m({}), d = m(null), a = m([]), C = m();
65
+ setup(M, { expose: P, emit: K }) {
66
+ const e = M, _ = K, i = m(!1), x = m({}), d = m(null), a = m([]), C = m();
66
67
  let c = null, n = null;
67
- const K = Y("uiMode", "admin"), { t: g } = J(), _ = async (o = [], t = {}) => {
68
+ const I = Q("uiMode", "admin"), { t: g } = X(), D = async (o = [], t = {}) => {
68
69
  var l, r, u;
69
- switch (a.value = [...o], i.value = !0, y.value = t == null ? void 0 : t.extraParams, C.value = t.apTableDataSources || ((l = e.apTableProps) == null ? void 0 : l.dataSource), t.refreshMode || "reset") {
70
+ switch (a.value = [...o], i.value = !0, x.value = t == null ? void 0 : t.extraParams, C.value = t.apTableDataSources || ((l = e.apTableProps) == null ? void 0 : l.dataSource), t.refreshMode || "reset") {
70
71
  case "reset":
71
72
  (r = d.value) == null || r.reset();
72
73
  break;
@@ -80,31 +81,31 @@ const fe = /* @__PURE__ */ F({
80
81
  c = p, n = f;
81
82
  });
82
83
  }, w = () => {
83
- i.value = !1, c = null, n == null || n(x.ModalCancel), n = null;
84
- }, I = async (o) => {
85
- o = W({
84
+ i.value = !1, c = null, n == null || n(b.ModalCancel), n = null;
85
+ }, L = async (o) => {
86
+ o = J({
86
87
  ...o,
87
- ...y.value
88
+ ...x.value
88
89
  });
89
90
  const t = e.api, { records: l, total: r } = await t(o);
90
91
  return {
91
92
  data: l,
92
93
  total: r
93
94
  };
94
- }, L = () => {
95
+ }, N = () => {
95
96
  if (a.value.length > e.maxCount) {
96
- n == null || n(x.ExceedMaxCount);
97
+ n == null || n(b.ExceedMaxCount);
97
98
  return;
98
99
  }
99
100
  if (e.getRowKey) {
100
- const o = V(s(a)), t = o.map(e.getRowKey);
101
- P("finish", t, o), c == null || c({ keys: t, rows: o });
101
+ const o = Y(s(a)), t = o.map(e.getRowKey);
102
+ _("finish", t, o), c == null || c({ keys: t, rows: o });
102
103
  } else {
103
- n == null || n(x.NotFineGetRowKey);
104
+ n == null || n(b.NotFineGetRowKey);
104
105
  return;
105
106
  }
106
107
  i.value = !1;
107
- }, A = U(() => {
108
+ }, A = q(() => {
108
109
  if (!e.getRowKey) return;
109
110
  const o = e.getRowKey;
110
111
  return {
@@ -115,14 +116,14 @@ const fe = /* @__PURE__ */ F({
115
116
  onSelectAll(t, l) {
116
117
  var u, p;
117
118
  if (l.length > e.maxCount) {
118
- h.warning(
119
+ B.warning(
119
120
  g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
120
121
  );
121
122
  return;
122
123
  }
123
124
  const r = (u = d.value) == null ? void 0 : u.dataSource;
124
125
  if (t) {
125
- const f = s(r).filter((v) => !a.value.some((E) => o(E) === o(v)));
126
+ const f = s(r).filter((v) => !a.value.some((F) => o(F) === o(v)));
126
127
  a.value = a.value.concat(f);
127
128
  } else
128
129
  a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) => o(v) === o(f)));
@@ -130,7 +131,7 @@ const fe = /* @__PURE__ */ F({
130
131
  onSelect(t, l) {
131
132
  if (l) {
132
133
  if (a.value.length >= e.maxCount) {
133
- h.warning(
134
+ B.warning(
134
135
  g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
135
136
  );
136
137
  return;
@@ -149,8 +150,8 @@ const fe = /* @__PURE__ */ F({
149
150
  }),
150
151
  ...e.rowSelection || {}
151
152
  };
152
- }), D = () => e.isRenderModalTitleSuffix ? q(
153
- Q,
153
+ }), O = () => e.isRenderModalTitleSuffix ? V(
154
+ Z,
154
155
  {
155
156
  title: e.title,
156
157
  count: a.value.length || 0,
@@ -159,9 +160,9 @@ const fe = /* @__PURE__ */ F({
159
160
  {
160
161
  default: e.renderModalTitleSuffix ?? void 0
161
162
  }
162
- ) : e.title, N = () => d.value, O = () => {
163
+ ) : e.title, G = () => d.value, H = () => {
163
164
  a.value = [];
164
- }, G = (o) => {
165
+ }, E = (o) => {
165
166
  const t = e.getRowKey;
166
167
  if (!t) return;
167
168
  const l = a.value.findIndex(
@@ -169,16 +170,16 @@ const fe = /* @__PURE__ */ F({
169
170
  );
170
171
  a.value.splice(l, 1);
171
172
  };
172
- return R({
173
- open: _,
173
+ return P({
174
+ open: D,
174
175
  close: w,
175
- getApTableInstance: N
176
- }), (o, t) => ($(), z(s(H), b(
176
+ getApTableInstance: G
177
+ }), (o, t) => (k(), T(s(W), y(
177
178
  {
178
179
  open: i.value,
179
180
  "onUpdate:open": t[0] || (t[0] = (l) => i.value = l)
180
181
  },
181
- s(S)(e, [
182
+ s(R)(e, [
182
183
  "api",
183
184
  "getRowKey",
184
185
  "centered",
@@ -193,30 +194,31 @@ const fe = /* @__PURE__ */ F({
193
194
  "tableLayoutConfig"
194
195
  ]),
195
196
  {
196
- title: D(),
197
+ title: O(),
197
198
  "body-style": { maxHeight: "calc(100vh - 205px)", overflowY: "scroll" },
198
199
  centered: e.centered ?? !0,
199
- onOk: L,
200
+ onOk: N,
200
201
  onCancel: w
201
202
  }
202
203
  ), {
203
- default: k(() => [
204
- T(X, b(e.tableLayoutConfig || {}, {
204
+ default: h(() => [
205
+ e.renderHeader ? (k(), T($(e.renderHeader), { key: 0 })) : z("", !0),
206
+ S(j, y(e.tableLayoutConfig || {}, {
205
207
  "selected-list": a.value,
206
- onClear: O,
207
- onDeleteItem: G
208
+ onClear: H,
209
+ onDeleteItem: E
208
210
  }), {
209
- default: k(() => [
210
- T(s(Z), b(s(S)(e.apTableProps, "dataSource"), {
211
+ default: h(() => [
212
+ S(s(ee), y(s(R)(e.apTableProps, "dataSource"), {
211
213
  ref_key: "apTableRef",
212
214
  ref: d,
213
215
  scroll: { y: "100%" },
214
216
  style: { padding: "0px" },
215
217
  columns: o.columns,
216
- request: I,
218
+ request: L,
217
219
  "row-key": o.getRowKey,
218
220
  "row-selection": A.value,
219
- bordered: s(K) === "admin",
221
+ bordered: s(I) === "admin",
220
222
  "data-source": C.value
221
223
  }), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
222
224
  ]),
@@ -228,5 +230,5 @@ const fe = /* @__PURE__ */ F({
228
230
  }
229
231
  });
230
232
  export {
231
- fe as default
233
+ pe as default
232
234
  };
package/es/src/index.mjs CHANGED
@@ -12,9 +12,9 @@ import { CheckCard as S } from "./check-card/index.mjs";
12
12
  import { ApModal as h } from "./ap-modal/index.mjs";
13
13
  import "./ap-list/index.mjs";
14
14
  import "./ap-button/index.mjs";
15
- import { ApDrawer as E } from "./ap-drawer/index.mjs";
15
+ import { ApDrawer as P } from "./ap-drawer/index.mjs";
16
16
  import "./business/index.mjs";
17
- import { ApTable as N } from "./ap-table/index.mjs";
17
+ import { ApTable as L } from "./ap-table/index.mjs";
18
18
  import "./editable-table/index.mjs";
19
19
  import "./ap-descriptions/index.mjs";
20
20
  import { ApScrollBar as y } from "./ap-scroll-bar/index.mjs";
@@ -36,118 +36,119 @@ import { default as bo } from "./ap-form/items/checkbox/index.vue.mjs";
36
36
  import { default as Co } from "./ap-form/items/text/password.vue.mjs";
37
37
  import { default as go } from "./ap-form/item/index.vue.mjs";
38
38
  import { default as Go } from "./ap-form/item-group/index.vue.mjs";
39
- import { default as Lo } from "./ap-form/list/index.vue.mjs";
40
- import { default as Po } from "./ap-form/search-form/index.vue.mjs";
39
+ import { default as Eo } from "./ap-form/list/index.vue.mjs";
40
+ import { default as No } from "./ap-form/search-form/index.vue.mjs";
41
41
  import { default as Mo } from "./ap-form/modal-form/index.vue.mjs";
42
42
  import { default as Ro } from "./ap-form/dependency/index.vue.mjs";
43
43
  import { default as vo } from "./ap-form/set/index.vue.mjs";
44
44
  import { default as Ko } from "./ap-form/drawer-form/index.vue.mjs";
45
45
  import { default as Oo } from "./ap-form/render/control.vue.mjs";
46
46
  import { default as _o } from "./ap-form/render/item.vue.mjs";
47
- import { ApFieldText as Ho } from "./ap-field/text/index.mjs";
48
- import { default as qo } from "./ap-field/checkbox/index.vue.mjs";
49
- import { default as Qo } from "./ap-field/date/index.vue.mjs";
50
- import { default as Xo } from "./ap-field/number/index.vue.mjs";
51
- import { default as Zo } from "./ap-field/radio/index.vue.mjs";
52
- import { default as oe } from "./ap-field/switch/index.vue.mjs";
53
- import { default as re } from "./ap-field/text-area/index.vue.mjs";
54
- import { default as pe } from "./ap-field/date-range/index.vue.mjs";
55
- import { default as me } from "./ap-field/select/index.vue.mjs";
56
- import { default as le } from "./ap-field/text/password.vue.mjs";
57
- import { default as de } from "./ap-field/slider/index.vue.mjs";
58
- import { default as ue } from "./ap-field/segmented/index.vue.mjs";
59
- import { default as ie } from "./ap-field/rate/index.vue.mjs";
60
- import { default as ce } from "./ap-action/item-modal/index.vue.mjs";
61
- import { default as Ie } from "./ap-action/item-popconfirm/index.vue.mjs";
62
- import { default as be } from "./ap-action/item-dropdown/index.vue.mjs";
63
- import { default as Ce } from "./ap-action/group/index.vue.mjs";
64
- import { DictCode as ge, langMap as he } from "./work-order-modal/interfaces.mjs";
65
- import { createWorkOrderModal as Ee } from "./work-order-modal/createWorkOrder.mjs";
66
- import { default as Ne } from "./work-order-modal/work-order-modal.vue.mjs";
67
- import { default as ye } from "./ap-tag/ap-tag.vue.mjs";
68
- import { default as we } from "./ap-tag/ap-tag-group.vue.mjs";
69
- import { default as ke } from "./ap-info-layout/ApInfoLayout.vue.mjs";
70
- import { NeedNameKeyDefault as Be } from "./ap-upload/apUploadTypes.mjs";
71
- import { default as Ue } from "./ap-upload/apUpload.vue.mjs";
72
- import { ApDownLoadNeedNameKeyDefault as We } from "./ap-download/interface.mjs";
73
- import { default as ze } from "./ap-download/ap-download.vue.mjs";
74
- import { default as je } from "./check-card/group.vue.mjs";
75
- import { default as Je } from "./ap-list/index.vue.mjs";
76
- import { default as Ve } from "./ap-button/ap-button.vue.mjs";
77
- import { default as Ye } from "./ap-button/ap-action-button.vue.mjs";
78
- import { ApTransformDataHelper as $e } from "./utils/ap-trans-data/index.mjs";
79
- import { default as er } from "./business/ap-table-modal/index.mjs";
80
- import { useTableModal as tr } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
81
- import { useTableSelectModal as ar } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
82
- import { ApAttachment as fr } from "./business/ap-attachment/index.mjs";
83
- import { ApBatchAction as xr } from "./business/ap-batch-action/index.mjs";
84
- import { ApBatchActionGroup as Ar } from "./business/ap-batch-action-group/index.mjs";
85
- import { ApButtonGroup as sr } from "./business/ap-button-group/index.mjs";
86
- import { ApCard as nr } from "./business/ap-card/index.mjs";
87
- import { ApExpandAlert as Fr } from "./business/ap-expand-alert/index.mjs";
88
- import { ApExportGroupActionType as Tr } from "./business/ap-export-group/interface.mjs";
89
- import { ApExportGroup as Dr } from "./business/ap-export-group/index.mjs";
90
- import { handleExportDownload as Sr } from "./business/ap-export-group/handleExportDownload.mjs";
91
- import { convertExportField as hr } from "./business/ap-export-group/convertExportField.mjs";
92
- import { ApImage as Er } from "./business/ap-image/index.mjs";
93
- import { ApInputRadio as Nr } from "./business/ap-input-radio/index.mjs";
94
- import { ApLabel as yr, ApLabelGroup as Mr } from "./business/ap-label/index.mjs";
95
- import { locales as Rr } from "./business/ap-ladder/interface.mjs";
96
- import { ApLadder as vr } from "./business/ap-ladder/index.mjs";
97
- import { ApSelectLayout as Kr } from "./business/ap-select-layout/index.mjs";
98
- import { ApStatus as Or, ApStatusGroup as Wr } from "./business/ap-status/index.mjs";
99
- import { ApTitle as zr } from "./business/ap-title/index.mjs";
100
- import { usePageListApTable as jr } from "./business/hooks/usePageListApTable.mjs";
101
- import { useTableRefresh as Jr } from "./business/hooks/useTableRefresh.mjs";
102
- import { computedRecords as Vr, flattenColumns as Xr, formatDataIndex as Yr, formatNumber as Zr } from "./business/ap-summary/utils.mjs";
103
- import { ApSummary as ot } from "./business/ap-summary/index.mjs";
104
- import { ApNeedNameKeyDefault as rt } from "./business/ap-appendix/interface.mjs";
105
- import { ApAppendix as pt } from "./business/ap-appendix/index.mjs";
106
- import { ApExtensionSelect as mt, ApGroupSearch as ft, ApPopoverSelect as lt } from "./business/ap-group-search/index.mjs";
107
- import { default as dt } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
108
- import { default as ut } from "./business/batch-input-group/index.vue.mjs";
109
- import { ApSizeInput as it } from "./business/ap-size-input/index.mjs";
110
- import { useTablePaging as ct } from "./ap-table/hooks/use-table-paging.mjs";
111
- import { default as It } from "./editable-table/index.vue.mjs";
112
- import { default as bt } from "./editable-table/form-item.vue.mjs";
113
- import { default as Ct } from "./ap-descriptions/ap-descriptions.vue.mjs";
47
+ import { default as Ho } from "./ap-form/provider/index.vue.mjs";
48
+ import { ApFieldText as qo } from "./ap-field/text/index.mjs";
49
+ import { default as Qo } from "./ap-field/checkbox/index.vue.mjs";
50
+ import { default as Xo } from "./ap-field/date/index.vue.mjs";
51
+ import { default as Zo } from "./ap-field/number/index.vue.mjs";
52
+ import { default as oe } from "./ap-field/radio/index.vue.mjs";
53
+ import { default as re } from "./ap-field/switch/index.vue.mjs";
54
+ import { default as pe } from "./ap-field/text-area/index.vue.mjs";
55
+ import { default as me } from "./ap-field/date-range/index.vue.mjs";
56
+ import { default as le } from "./ap-field/select/index.vue.mjs";
57
+ import { default as de } from "./ap-field/text/password.vue.mjs";
58
+ import { default as ue } from "./ap-field/slider/index.vue.mjs";
59
+ import { default as ie } from "./ap-field/segmented/index.vue.mjs";
60
+ import { default as ce } from "./ap-field/rate/index.vue.mjs";
61
+ import { default as Ie } from "./ap-action/item-modal/index.vue.mjs";
62
+ import { default as be } from "./ap-action/item-popconfirm/index.vue.mjs";
63
+ import { default as Ce } from "./ap-action/item-dropdown/index.vue.mjs";
64
+ import { default as ge } from "./ap-action/group/index.vue.mjs";
65
+ import { DictCode as Ge, langMap as Pe } from "./work-order-modal/interfaces.mjs";
66
+ import { createWorkOrderModal as Le } from "./work-order-modal/createWorkOrder.mjs";
67
+ import { default as ye } from "./work-order-modal/work-order-modal.vue.mjs";
68
+ import { default as we } from "./ap-tag/ap-tag.vue.mjs";
69
+ import { default as ke } from "./ap-tag/ap-tag-group.vue.mjs";
70
+ import { default as Be } from "./ap-info-layout/ApInfoLayout.vue.mjs";
71
+ import { NeedNameKeyDefault as Ue } from "./ap-upload/apUploadTypes.mjs";
72
+ import { default as We } from "./ap-upload/apUpload.vue.mjs";
73
+ import { ApDownLoadNeedNameKeyDefault as ze } from "./ap-download/interface.mjs";
74
+ import { default as je } from "./ap-download/ap-download.vue.mjs";
75
+ import { default as Je } from "./check-card/group.vue.mjs";
76
+ import { default as Ve } from "./ap-list/index.vue.mjs";
77
+ import { default as Ye } from "./ap-button/ap-button.vue.mjs";
78
+ import { default as $e } from "./ap-button/ap-action-button.vue.mjs";
79
+ import { ApTransformDataHelper as er } from "./utils/ap-trans-data/index.mjs";
80
+ import { default as tr } from "./business/ap-table-modal/index.mjs";
81
+ import { useTableModal as ar } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
82
+ import { useTableSelectModal as fr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
83
+ import { ApAttachment as xr } from "./business/ap-attachment/index.mjs";
84
+ import { ApBatchAction as Ar } from "./business/ap-batch-action/index.mjs";
85
+ import { ApBatchActionGroup as sr } from "./business/ap-batch-action-group/index.mjs";
86
+ import { ApButtonGroup as nr } from "./business/ap-button-group/index.mjs";
87
+ import { ApCard as Fr } from "./business/ap-card/index.mjs";
88
+ import { ApExpandAlert as Tr } from "./business/ap-expand-alert/index.mjs";
89
+ import { ApExportGroupActionType as Dr } from "./business/ap-export-group/interface.mjs";
90
+ import { ApExportGroup as Sr } from "./business/ap-export-group/index.mjs";
91
+ import { handleExportDownload as hr } from "./business/ap-export-group/handleExportDownload.mjs";
92
+ import { convertExportField as Pr } from "./business/ap-export-group/convertExportField.mjs";
93
+ import { ApImage as Lr } from "./business/ap-image/index.mjs";
94
+ import { ApInputRadio as yr } from "./business/ap-input-radio/index.mjs";
95
+ import { ApLabel as wr, ApLabelGroup as Rr } from "./business/ap-label/index.mjs";
96
+ import { locales as vr } from "./business/ap-ladder/interface.mjs";
97
+ import { ApLadder as Kr } from "./business/ap-ladder/index.mjs";
98
+ import { ApSelectLayout as Or } from "./business/ap-select-layout/index.mjs";
99
+ import { ApStatus as _r, ApStatusGroup as zr } from "./business/ap-status/index.mjs";
100
+ import { ApTitle as jr } from "./business/ap-title/index.mjs";
101
+ import { usePageListApTable as Jr } from "./business/hooks/usePageListApTable.mjs";
102
+ import { useTableRefresh as Vr } from "./business/hooks/useTableRefresh.mjs";
103
+ import { computedRecords as Yr, flattenColumns as Zr, formatDataIndex as $r, formatNumber as ot } from "./business/ap-summary/utils.mjs";
104
+ import { ApSummary as rt } from "./business/ap-summary/index.mjs";
105
+ import { ApNeedNameKeyDefault as pt } from "./business/ap-appendix/interface.mjs";
106
+ import { ApAppendix as mt } from "./business/ap-appendix/index.mjs";
107
+ import { ApExtensionSelect as lt, ApGroupSearch as xt, ApPopoverSelect as dt } from "./business/ap-group-search/index.mjs";
108
+ import { default as ut } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
109
+ import { default as it } from "./business/batch-input-group/index.vue.mjs";
110
+ import { ApSizeInput as ct } from "./business/ap-size-input/index.mjs";
111
+ import { useTablePaging as It } from "./ap-table/hooks/use-table-paging.mjs";
112
+ import { default as bt } from "./editable-table/index.vue.mjs";
113
+ import { default as Ct } from "./editable-table/form-item.vue.mjs";
114
+ import { default as gt } from "./ap-descriptions/ap-descriptions.vue.mjs";
114
115
  export {
115
116
  u as APConfigProvider,
116
- Ye as ApActionButton,
117
- Ce as ApActionGroup,
117
+ $e as ApActionButton,
118
+ ge as ApActionGroup,
118
119
  D as ApActionItem,
119
- be as ApActionItemDropdown,
120
- ce as ApActionItemModal,
121
- Ie as ApActionItemPopconfirm,
122
- pt as ApAppendix,
123
- fr as ApAttachment,
124
- xr as ApBatchAction,
125
- Ar as ApBatchActionGroup,
126
- Ve as ApButton,
127
- sr as ApButtonGroup,
128
- nr as ApCard,
129
- Ct as ApDescriptions,
130
- We as ApDownLoadNeedNameKeyDefault,
131
- ze as ApDownload,
132
- E as ApDrawer,
133
- Fr as ApExpandAlert,
134
- Dr as ApExportGroup,
135
- Tr as ApExportGroupActionType,
136
- mt as ApExtensionSelect,
120
+ Ce as ApActionItemDropdown,
121
+ Ie as ApActionItemModal,
122
+ be as ApActionItemPopconfirm,
123
+ mt as ApAppendix,
124
+ xr as ApAttachment,
125
+ Ar as ApBatchAction,
126
+ sr as ApBatchActionGroup,
127
+ Ye as ApButton,
128
+ nr as ApButtonGroup,
129
+ Fr as ApCard,
130
+ gt as ApDescriptions,
131
+ ze as ApDownLoadNeedNameKeyDefault,
132
+ je as ApDownload,
133
+ P as ApDrawer,
134
+ Tr as ApExpandAlert,
135
+ Sr as ApExportGroup,
136
+ Dr as ApExportGroupActionType,
137
+ lt as ApExtensionSelect,
137
138
  c as ApField,
138
- qo as ApFieldCheckbox,
139
- Qo as ApFieldDate,
140
- pe as ApFieldDateRange,
141
- Xo as ApFieldNumber,
142
- le as ApFieldPassword,
143
- Zo as ApFieldRadio,
144
- ie as ApFieldRate,
145
- ue as ApFieldSegmented,
146
- me as ApFieldSelect,
147
- de as ApFieldSlider,
148
- oe as ApFieldSwitch,
149
- Ho as ApFieldText,
150
- re as ApFieldTextArea,
139
+ Qo as ApFieldCheckbox,
140
+ Xo as ApFieldDate,
141
+ me as ApFieldDateRange,
142
+ Zo as ApFieldNumber,
143
+ de as ApFieldPassword,
144
+ oe as ApFieldRadio,
145
+ ce as ApFieldRate,
146
+ ie as ApFieldSegmented,
147
+ le as ApFieldSelect,
148
+ ue as ApFieldSlider,
149
+ re as ApFieldSwitch,
150
+ qo as ApFieldText,
151
+ pe as ApFieldTextArea,
151
152
  i as ApForm,
152
153
  Oo as ApFormControlRender,
153
154
  Ro as ApFormDependency,
@@ -165,65 +166,66 @@ export {
165
166
  to as ApFormItemText,
166
167
  ao as ApFormItemTextArea,
167
168
  Co as ApFormItemTextPassword,
168
- Lo as ApFormList,
169
+ Eo as ApFormList,
169
170
  Mo as ApFormModalForm,
170
- Po as ApFormSearchForm,
171
+ Ho as ApFormProvider,
172
+ No as ApFormSearchForm,
171
173
  vo as ApFormSet,
172
- ft as ApGroupSearch,
173
- Er as ApImage,
174
- ke as ApInfoLayout,
175
- Nr as ApInputRadio,
176
- yr as ApLabel,
177
- Mr as ApLabelGroup,
178
- vr as ApLadder,
179
- Je as ApList,
174
+ xt as ApGroupSearch,
175
+ Lr as ApImage,
176
+ Be as ApInfoLayout,
177
+ yr as ApInputRadio,
178
+ wr as ApLabel,
179
+ Rr as ApLabelGroup,
180
+ Kr as ApLadder,
181
+ Ve as ApList,
180
182
  h as ApModal,
181
- rt as ApNeedNameKeyDefault,
182
- lt as ApPopoverSelect,
183
+ pt as ApNeedNameKeyDefault,
184
+ dt as ApPopoverSelect,
183
185
  y as ApScrollBar,
184
- Kr as ApSelectLayout,
185
- it as ApSizeInput,
186
- Or as ApStatus,
187
- Wr as ApStatusGroup,
188
- ot as ApSummary,
189
- N as ApTable,
190
- er as ApTableModal,
191
- ye as ApTag,
192
- we as ApTagGroup,
193
- zr as ApTitle,
194
- $e as ApTransformDataHelper,
195
- Ue as ApUpload,
196
- dt as ApUploadSingle,
197
- ut as BatchInputGroup,
186
+ Or as ApSelectLayout,
187
+ ct as ApSizeInput,
188
+ _r as ApStatus,
189
+ zr as ApStatusGroup,
190
+ rt as ApSummary,
191
+ L as ApTable,
192
+ tr as ApTableModal,
193
+ we as ApTag,
194
+ ke as ApTagGroup,
195
+ jr as ApTitle,
196
+ er as ApTransformDataHelper,
197
+ We as ApUpload,
198
+ ut as ApUploadSingle,
199
+ it as BatchInputGroup,
198
200
  S as CheckCard,
199
- je as CheckCardGroup,
201
+ Je as CheckCardGroup,
200
202
  oo as ConfigProvider,
201
203
  k as DEFAULT_NAMESPACE,
202
204
  v as DEFAULT_UIMODE,
203
- ge as DictCode,
204
- It as EditableTable,
205
- bt as EditableTableFormItem,
206
- Be as NeedNameKeyDefault,
207
- Ne as WorkOrderModal,
205
+ Ge as DictCode,
206
+ bt as EditableTable,
207
+ Ct as EditableTableFormItem,
208
+ Ue as NeedNameKeyDefault,
209
+ ye as WorkOrderModal,
208
210
  I as adminToken,
209
211
  T as aplusToken,
210
212
  z as buildLocaleContext,
211
213
  H as buildTranslator,
212
- Vr as computedRecords,
214
+ Yr as computedRecords,
213
215
  B as configProviderContextKey,
214
216
  w as configProviderProps,
215
- hr as convertExportField,
216
- Ee as createWorkOrderModal,
217
+ Pr as convertExportField,
218
+ Le as createWorkOrderModal,
217
219
  V as defaultNamespace,
218
- Xr as flattenColumns,
219
- Yr as formatDataIndex,
220
- Zr as formatNumber,
220
+ Zr as flattenColumns,
221
+ $r as formatDataIndex,
222
+ ot as formatNumber,
221
223
  eo as globalConfigCached,
222
- Sr as handleExportDownload,
224
+ hr as handleExportDownload,
223
225
  U as keysOf,
224
- he as langMap,
226
+ Pe as langMap,
225
227
  j as localeContextKey,
226
- Rr as locales,
228
+ vr as locales,
227
229
  X as namespaceContextKey,
228
230
  O as provideGlobalConfig,
229
231
  q as translate,
@@ -231,9 +233,9 @@ export {
231
233
  W as useGlobalConfig,
232
234
  J as useLocale,
233
235
  Z as useNamespace,
234
- jr as usePageListApTable,
235
- tr as useTableModal,
236
- ct as useTablePaging,
237
- Jr as useTableRefresh,
238
- ar as useTableSelectModal
236
+ Jr as usePageListApTable,
237
+ ar as useTableModal,
238
+ It as useTablePaging,
239
+ Vr as useTableRefresh,
240
+ fr as useTableSelectModal
239
241
  };
@@ -1,17 +1,15 @@
1
- import { isFunction as n } from "@fruits-chain/utils";
2
- import { isArray as e } from "lodash-unified";
1
+ import { isFunction as e } from "@fruits-chain/utils";
2
+ import { isArray as i } from "lodash-unified";
3
3
  function u(r) {
4
- if (!r || !n(r)) {
5
- console.error(`${r} is not a function!`);
4
+ if (!r || !e(r))
6
5
  return;
7
- }
8
6
  const t = r();
9
- return e(t) ? i(t)[0] : t;
7
+ return i(t) ? n(t)[0] : t;
10
8
  }
11
- function i(r) {
9
+ function n(r) {
12
10
  return (r || []).filter((t) => t.type !== Symbol.for("v-cmt"));
13
11
  }
14
12
  export {
15
13
  u as getSingleVNode,
16
- i as getValidVNodeList
14
+ n as getValidVNodeList
17
15
  };