@aplus-frontend/ui 0.2.14 → 0.2.16

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.
@@ -1,163 +1,173 @@
1
- import { ref as x, nextTick as I, unref as o, onMounted as k, computed as V, createVNode as P } from "vue";
2
- import { parseFieldValue as ee, dataIndexToStr as te } from "../utils.mjs";
3
- import { isArray as B } from "lodash-unified";
1
+ import { ref as P, nextTick as at, unref as o, onMounted as ot, computed as V, createVNode as b } from "vue";
2
+ import { parseFieldValue as nt, dataIndexToStr as rt, isEqualCustom as st } from "../utils.mjs";
3
+ import { isArray as q, isEqualWith as it } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { useLocale as ae } from "../../config-provider/hooks/use-locale.mjs";
6
- import { useNamespace as oe } from "../../config-provider/hooks/use-namespace.mjs";
7
- const ue = ({
8
- manual: E = !1,
9
- defaultCurrent: M = 1,
10
- defaultPageSize: w = 10,
11
- request: N,
12
- defaultParams: $ = {},
13
- defaultData: q = [],
14
- formatParams: y,
15
- paramsValueTypeMap: C,
5
+ import { useTableSortedAndFiltered as lt } from "./use-sorted-filtered.mjs";
6
+ import { useLocale as ct } from "../../config-provider/hooks/use-locale.mjs";
7
+ import { useNamespace as ut } from "../../config-provider/hooks/use-namespace.mjs";
8
+ const Ft = ({
9
+ manual: B = !1,
10
+ defaultCurrent: K = 1,
11
+ defaultPageSize: y = 10,
12
+ request: M,
13
+ defaultParams: N = {},
14
+ defaultData: $ = [],
15
+ formatParams: w,
16
+ paramsValueTypeMap: A,
16
17
  resetFieldsIgnores: D,
17
18
  filterFields: J,
18
- sortFields: K,
19
- showLessItems: b = !1,
20
- showTotal: L = !0
19
+ sortFields: L,
20
+ showLessItems: z = !1,
21
+ showTotal: Q = !0
21
22
  }) => {
22
- let z = 0, f = {};
23
- const Q = (e) => y ? y(e) : e, c = x(), l = x(M), p = x(w), {
23
+ let C = 0, s = {};
24
+ const W = (t) => w ? w(t) : t, u = P(), c = P(K), p = P(y), {
25
+ getColumnSFConfig: G,
26
+ setSF: H,
27
+ clearAll: U
28
+ } = lt(), {
24
29
  t: F
25
- } = ae(), {
30
+ } = ct(), {
26
31
  b: S
27
- } = oe("ap-table"), n = x({
32
+ } = ut("ap-table"), n = P({
28
33
  total: 0,
29
- records: q,
34
+ records: $,
30
35
  loading: !1
31
- }), O = async (e) => {
36
+ }), E = async (t) => {
32
37
  var r;
33
- const a = Q(e), t = Date.now();
34
- z = t, n.value.loading = !0;
38
+ const a = W(t), e = Date.now();
39
+ C = e, n.value.loading = !0;
35
40
  try {
36
- const s = await N({
37
- ...$,
41
+ const i = await M({
42
+ ...N,
38
43
  ...a
39
44
  });
40
- z === t && (n.value.total = s.total || ((r = s.data) == null ? void 0 : r.length) || 0, n.value.records = [...s.data || []]);
45
+ C === e && (n.value.total = i.total || ((r = i.data) == null ? void 0 : r.length) || 0, n.value.records = [...i.data || []]);
41
46
  } catch {
42
- z === t && (n.value.records = [], n.value.total = 0);
47
+ C === e && (n.value.records = [], n.value.total = 0);
43
48
  } finally {
44
49
  n.value.loading = !1;
45
50
  }
46
- }, R = (e) => {
51
+ }, O = (t) => {
47
52
  const a = {};
48
- return Object.entries(e).forEach(([t, r]) => {
49
- if (a[t] = r, C && r) {
50
- const s = C[t];
51
- s && (a[t] = ee(s, r));
53
+ return Object.entries(t).forEach(([e, r]) => {
54
+ if (a[e] = r, A && r) {
55
+ const i = A[e];
56
+ i && (a[e] = nt(i, r));
52
57
  }
53
58
  }), a;
54
- }, G = async (e) => {
55
- var r, s, g, d, m, u, h;
56
- const a = ((s = (r = c.value) == null ? void 0 : r.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
57
- Object.entries(a).forEach(([v, i]) => {
58
- D && D.indexOf(v) > -1 && (t[v] = i);
59
- }), await ((d = (g = c.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (u = (m = c.value) == null ? void 0 : m.apForm) == null ? void 0 : u.setFieldsValue) == null || h.call(u, t), I(() => {
60
- e == null || e();
59
+ }, X = async (t) => {
60
+ var r, i, g, d, m, f, h;
61
+ const a = ((i = (r = u.value) == null ? void 0 : r.apForm) == null ? void 0 : i.getFieldsValue()) || {}, e = {};
62
+ Object.entries(a).forEach(([v, x]) => {
63
+ D && D.indexOf(v) > -1 && (e[v] = x);
64
+ }), await ((d = (g = u.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.setFieldsValue) == null || h.call(f, e), at(() => {
65
+ t == null || t();
61
66
  });
62
- }, T = (e) => {
63
- f = e;
64
- const a = R(e);
65
- O(a);
66
- }, H = (e) => {
67
+ }, T = (t) => {
68
+ s = t;
69
+ const a = O(t);
70
+ E(a);
71
+ }, Y = (t) => {
67
72
  T({
68
- ...f,
69
- ...e
73
+ ...s,
74
+ ...t
70
75
  });
71
- }, j = () => {
72
- var a, t;
73
- const e = ((t = (a = c.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
74
- l.value = 1, T({
75
- ...e,
76
+ }, R = () => {
77
+ var a, e;
78
+ const t = ((e = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : e.getFieldsValue(!0)) || {};
79
+ c.value = 1, T({
80
+ ...t,
81
+ filter: s.filter,
82
+ sort: s.sort,
76
83
  current: 1,
77
- pageSize: f.pageSize || w
84
+ pageSize: s.pageSize || y
78
85
  });
79
- }, U = () => {
80
- G(j);
81
- }, W = () => {
82
- T(f);
83
- }, X = (e) => {
84
- const a = o(n).total - e, t = Math.ceil(a / o(p)), r = o(l) > t ? t : o(l);
85
- H({
86
+ }, Z = () => {
87
+ U(), s.sort = {}, s.filter = {}, X(R);
88
+ }, _ = () => {
89
+ T(s);
90
+ }, I = (t) => {
91
+ const a = o(n).total - t, e = Math.ceil(a / o(p)), r = o(c) > e ? e : o(c);
92
+ Y({
86
93
  current: r > 0 ? r : 1
87
94
  });
88
- }, A = (e, a, t) => {
89
- var m, u, h, v;
90
- console.log("filters", a);
91
- const r = ((u = (m = c.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
92
- l.value = e.current, p.value = e.pageSize;
93
- const s = B(t) ? [...t] : [t], g = {};
94
- for (const i of s)
95
- (h = o(K)) != null && h.includes(i.columnKey || i.field) && (g[te(i.field)] = i.order);
95
+ }, j = (t, a, e) => {
96
+ var f, h, v, x;
97
+ const r = ((h = (f = u.value) == null ? void 0 : f.apForm) == null ? void 0 : h.getFieldsValue(!0)) || {};
98
+ c.value = t.current, p.value = t.pageSize, H(a, e);
99
+ const i = q(e) ? [...e] : [e], g = {};
100
+ for (const l of i)
101
+ (v = o(L)) != null && v.includes(l.columnKey || l.field) && (g[rt(l.columnKey || l.field)] = l.order);
96
102
  const d = {};
97
- for (const i of Object.keys(a))
98
- (v = o(J)) != null && v.includes(i) && (d[i] = a[i]);
99
- T({
103
+ for (const l of Object.keys(a))
104
+ (x = o(J)) != null && x.includes(l) && (d[l] = a[l]);
105
+ const m = {
100
106
  ...r,
101
107
  filter: d,
102
108
  sort: g,
103
- current: e.current,
104
- pageSize: e.pageSize
105
- });
109
+ current: t.current,
110
+ pageSize: t.pageSize
111
+ };
112
+ it(s, m, st) || T(m);
106
113
  };
107
- k(() => {
108
- var a, t;
109
- const e = ((t = (a = c.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
110
- if (f = {
111
- current: o(l),
114
+ ot(() => {
115
+ var a, e;
116
+ const t = ((e = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : e.getFieldsValue(!0)) || {};
117
+ if (s = {
118
+ current: o(c),
112
119
  pageSize: o(p),
113
- ...e
114
- }, !E) {
115
- const r = R(f);
116
- O(r);
120
+ filter: {},
121
+ sort: {},
122
+ ...t
123
+ }, !B) {
124
+ const r = O(s);
125
+ E(r);
117
126
  }
118
127
  });
119
- const Y = V(() => o(n).total === 0 ? "-" : `${o(l.value)}/${Math.ceil(o(n).total / o(p))}`);
120
- function Z(e) {
121
- B(e) && (n.value.records = e, n.value.total = e.length);
128
+ const k = V(() => o(n).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(n).total / o(p))}`);
129
+ function tt(t) {
130
+ q(t) && (n.value.records = t, n.value.total = t.length);
122
131
  }
123
- const _ = V(() => ({
132
+ const et = V(() => ({
124
133
  loading: o(n).loading,
125
134
  pagination: {
126
- current: o(l),
135
+ current: o(c),
127
136
  pageSize: o(p),
128
137
  total: o(n).total,
129
- showSizeChanger: !b,
130
- showQuickJumper: !b,
131
- showLessItems: b,
138
+ showSizeChanger: !z,
139
+ showQuickJumper: !z,
140
+ showLessItems: z,
132
141
  size: "default",
133
- showTotal: L ? (e) => P("span", {
142
+ showTotal: Q ? (t) => b("span", {
134
143
  class: S("pagination-total-wrapper")
135
- }, [F("ap.apTable.pagination.totalLeftPrefix"), " ", P("span", {
144
+ }, [F("ap.apTable.pagination.totalLeftPrefix"), " ", b("span", {
136
145
  class: S("pagination-count-text")
137
- }, [e]), " ", F("ap.apTable.pagination.totalLeftSuffix"), P("span", {
146
+ }, [t]), " ", F("ap.apTable.pagination.totalLeftSuffix"), b("span", {
138
147
  class: S("pagination--total-right")
139
- }, [F("ap.apTable.pagination.totalRightPrefix"), " ", P("span", {
148
+ }, [F("ap.apTable.pagination.totalRightPrefix"), " ", b("span", {
140
149
  class: S("pagination-count-text")
141
- }, [o(Y)]), " ", F("ap.apTable.pagination.totalRightSuffix")])]) : void 0
150
+ }, [o(k)]), " ", F("ap.apTable.pagination.totalRightSuffix")])]) : void 0
142
151
  },
143
- onChange: A,
152
+ onChange: j,
144
153
  dataSource: o(n).records
145
154
  }));
146
155
  return {
147
- formRef: c,
148
- submit: j,
149
- reset: U,
150
- refresh: W,
151
- refreshByDelete: X,
156
+ formRef: u,
157
+ submit: R,
158
+ reset: Z,
159
+ refresh: _,
160
+ refreshByDelete: I,
152
161
  data: n,
153
- current: l,
162
+ current: c,
154
163
  pageSize: p,
155
- handleTableChange: A,
156
- tableProps: _,
164
+ handleTableChange: j,
165
+ tableProps: et,
157
166
  dataSource: V(() => o(n).records),
158
- setDataSource: Z
167
+ setDataSource: tt,
168
+ getColumnSFConfig: G
159
169
  };
160
170
  };
161
171
  export {
162
- ue as useTablePaging
172
+ Ft as useTablePaging
163
173
  };
@@ -8546,4 +8546,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
8546
8546
  [key: string]: any;
8547
8547
  }> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
8548
8548
  export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
8549
+ export declare function isEqualCustom(value: any, other: any): boolean | undefined;
8549
8550
  export {};
@@ -1,32 +1,32 @@
1
- import { isVNode as b, createVNode as u, mergeProps as a, cloneVNode as T, Fragment as h } from "vue";
2
- import { isObject as f, isArray as p, isUndefined as g, isFunction as d, omit as j, isBoolean as O, isString as E } from "lodash-unified";
3
- import { apTableRenderItemMap as F, apTableFormItemMap as N } from "./constants.mjs";
4
- import { isType as S } from "@fruits-chain/utils";
1
+ import { isVNode as g, createVNode as u, mergeProps as m, cloneVNode as h, Fragment as j } from "vue";
2
+ import { isObject as a, isArray as l, isUndefined as E, isFunction as y, omit as O, isBoolean as F, isString as N, isEqual as S, sortBy as p, isPlainObject as d, every as I, isEmpty as v } from "lodash-unified";
3
+ import { apTableRenderItemMap as C, apTableFormItemMap as P } from "./constants.mjs";
4
+ import { isType as V } from "@fruits-chain/utils";
5
5
  import "../ap-form/index.mjs";
6
- import { Tooltip as v } from "@aplus-frontend/antdv";
7
- import { QuestionCircleOutlined as I } from "@ant-design/icons-vue";
8
- import C from "../ap-form/item/index.vue.mjs";
9
- function V(t) {
10
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
6
+ import { Tooltip as w } from "@aplus-frontend/antdv";
7
+ import { QuestionCircleOutlined as A } from "@ant-design/icons-vue";
8
+ import x from "../ap-form/item/index.vue.mjs";
9
+ function _(t) {
10
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !g(t);
11
11
  }
12
- const w = (t, e, n) => {
13
- let i = {};
14
- return f(t) ? Object.keys(t).forEach((o) => {
15
- f(t[o]) ? i[o] = w(t[o], e[o], n) : i[o] = n(t[o], e);
16
- }) : i = n(t, e), i;
17
- }, Q = (t, e) => {
12
+ const q = (t, e, n) => {
13
+ let o = {};
14
+ return a(t) ? Object.keys(t).forEach((r) => {
15
+ a(t[r]) ? o[r] = q(t[r], e[r], n) : o[r] = n(t[r], e);
16
+ }) : o = n(t, e), o;
17
+ }, X = (t, e) => {
18
18
  switch (t) {
19
19
  case "dayjs":
20
20
  return e.valueOf();
21
21
  case "dayjsRange":
22
22
  return e.map((n) => n.valueOf());
23
23
  case "dayjsDayRange": {
24
- const [n, i] = e;
25
- return [n.startOf("day").valueOf(), i.endOf("day").valueOf()];
24
+ const [n, o] = e;
25
+ return [n.startOf("day").valueOf(), o.endOf("day").valueOf()];
26
26
  }
27
27
  case "multiple":
28
28
  case "multipleNumber":
29
- return p(e) ? e : [e];
29
+ return l(e) ? e : [e];
30
30
  case "boolean":
31
31
  return e;
32
32
  case "object":
@@ -35,103 +35,103 @@ const w = (t, e, n) => {
35
35
  return e;
36
36
  }
37
37
  };
38
- function U(t) {
39
- return p(t) ? t.join(".") : t;
38
+ function Y(t) {
39
+ return l(t) ? t.join(".") : t;
40
40
  }
41
- function A(t) {
41
+ function W(t) {
42
42
  const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
43
43
  return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
44
44
  }
45
- const P = (t) => A(t) === "map" ? t : new Map(Object.entries(t || {})), m = (t) => {
46
- const e = [], n = P(t);
47
- return n.forEach((i, o) => {
48
- const r = n.get(o) || n.get(`${o}`);
49
- if (r) {
50
- if (typeof r == "object" && (r != null && r.text)) {
45
+ const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), b = (t) => {
46
+ const e = [], n = B(t);
47
+ return n.forEach((o, r) => {
48
+ const i = n.get(r) || n.get(`${r}`);
49
+ if (i) {
50
+ if (typeof i == "object" && (i != null && i.text)) {
51
51
  e.push({
52
- text: r == null ? void 0 : r.text,
53
- value: o,
54
- label: r == null ? void 0 : r.text,
55
- disabled: r.disabled
52
+ text: i == null ? void 0 : i.text,
53
+ value: r,
54
+ label: i == null ? void 0 : i.text,
55
+ disabled: i.disabled
56
56
  });
57
57
  return;
58
58
  }
59
59
  e.push({
60
- text: r,
61
- label: r,
62
- value: o
60
+ text: i,
61
+ label: i,
62
+ value: r
63
63
  });
64
64
  }
65
65
  }), e;
66
- }, z = (t) => g(t) || t < 0 ? 0 : t;
67
- function x(t, e) {
68
- return !t || !d(t) ? t : t(e);
66
+ }, Z = (t) => E(t) || t < 0 ? 0 : t;
67
+ function R(t, e) {
68
+ return !t || !y(t) ? t : t(e);
69
69
  }
70
- function G(t) {
70
+ function k(t) {
71
71
  let e = t.valueType || "text";
72
72
  return t.valueEnum && (e = "status"), e;
73
73
  }
74
- function K(t, e, n, i) {
74
+ function H(t, e, n, o) {
75
75
  var s;
76
- const o = F[t];
77
- if (o)
78
- return u(o, a(e, {
76
+ const r = C[t];
77
+ if (r)
78
+ return u(r, m(e, {
79
79
  mode: "read"
80
80
  }), null);
81
- const r = i == null ? void 0 : i[t];
82
- return ((s = r == null ? void 0 : r.render) == null ? void 0 : s.call(r, e.value, n, e)) || e.value;
81
+ const i = o == null ? void 0 : o[t];
82
+ return ((s = i == null ? void 0 : i.render) == null ? void 0 : s.call(i, e.value, n, e)) || e.value;
83
83
  }
84
- function X(t, e) {
84
+ function M(t, e) {
85
85
  if (t.customRenderFormItem)
86
86
  return () => {
87
- const o = t.customRenderFormItem(t);
88
- return T(o, {
87
+ const r = t.customRenderFormItem(t);
88
+ return h(r, {
89
89
  ...t.fieldProps,
90
90
  span: t.span,
91
- ...o.props || {}
91
+ ...r.props || {}
92
92
  });
93
93
  };
94
- const n = N[t.valueType];
94
+ const n = P[t.valueType];
95
95
  if (n)
96
96
  return n;
97
- const i = e == null ? void 0 : e[t.valueType];
97
+ const o = e == null ? void 0 : e[t.valueType];
98
98
  return () => {
99
- var r;
100
- const o = (r = i == null ? void 0 : i.renderFormItem) == null ? void 0 : r.call(i, t.fieldProps.field);
101
- return o ? u(C, a(t.fieldProps, {
99
+ var i;
100
+ const r = (i = o == null ? void 0 : o.renderFormItem) == null ? void 0 : i.call(o, t.fieldProps.field);
101
+ return r ? u(x, m(t.fieldProps, {
102
102
  span: t.span
103
- }), V(o) ? o : {
104
- default: () => [o]
103
+ }), _(r) ? r : {
104
+ default: () => [r]
105
105
  }) : null;
106
106
  };
107
107
  }
108
- function Y(t, e) {
109
- const n = x(t.fieldProps, e), i = (n == null ? void 0 : n.field) || n || {}, o = t.valueType === "switch", r = t.valueType === "index", s = o ? {
108
+ function tt(t, e) {
109
+ const n = R(t.fieldProps, e), o = (n == null ? void 0 : n.field) || n || {}, r = t.valueType === "switch", i = t.valueType === "index", s = r ? {
110
110
  checked: e.value
111
111
  } : {
112
- value: r ? e.index + 1 : e.value
112
+ value: i ? e.index + 1 : e.value
113
113
  };
114
- return t.valueEnum && (i.valueEnum = t.valueEnum), {
115
- ...j(i, ["request"]),
114
+ return t.valueEnum && (o.valueEnum = t.valueEnum), {
115
+ ...O(o, ["request"]),
116
116
  ...s
117
117
  };
118
118
  }
119
- function Z(t) {
119
+ function et(t) {
120
120
  const e = {
121
121
  ...t
122
122
  };
123
- return O(t.filters) && t.filters && t.valueEnum && (e.filters = m(t.valueEnum)), e;
123
+ return F(t.filters) && t.filters && t.valueEnum && (e.filters = b(t.valueEnum)), e;
124
124
  }
125
- function k(t, e) {
126
- var i;
125
+ function nt(t, e) {
126
+ var o;
127
127
  const n = e || {};
128
- return t.valueEnum && !((i = n.field) != null && i.options) && (n.field = {
128
+ return t.valueEnum && !((o = n.field) != null && o.options) && (n.field = {
129
129
  ...n.field,
130
- options: m(t.valueEnum)
130
+ options: b(t.valueEnum)
131
131
  }), n;
132
132
  }
133
- function H(t) {
134
- if (!S("Object")(t))
133
+ function rt(t) {
134
+ if (!V("Object")(t))
135
135
  return t;
136
136
  try {
137
137
  return JSON.stringify(t);
@@ -139,60 +139,70 @@ function H(t) {
139
139
  return t;
140
140
  }
141
141
  }
142
- function M(t, e, n, i) {
143
- const o = n == null ? void 0 : n({
142
+ function ot(t, e, n, o) {
143
+ const r = n == null ? void 0 : n({
144
144
  title: t.title,
145
145
  column: t
146
- }), r = (o == null ? void 0 : o.filter((y) => y.type !== Symbol.for("v-cmt"))) || [];
147
- if (o && r.length > 0)
148
- return o;
149
- const l = E(t.title) ? u("span", {
146
+ }), i = (r == null ? void 0 : r.filter((T) => T.type !== Symbol.for("v-cmt"))) || [];
147
+ if (r && i.length > 0)
148
+ return r;
149
+ const c = N(t.title) ? u("span", {
150
150
  class: e,
151
151
  title: t.title
152
- }, [t.title]) : t.title, c = t.tooltip ? d(t.tooltip) ? t.tooltip(t) : u(h, null, [t.tooltip]) : null;
153
- return c ? u("span", {
152
+ }, [t.title]) : t.title, f = t.tooltip ? y(t.tooltip) ? t.tooltip(t) : u(j, null, [t.tooltip]) : null;
153
+ return f ? u("span", {
154
154
  style: {
155
155
  display: "inline-flex",
156
156
  alignItems: "center",
157
157
  maxWidth: "100%"
158
158
  }
159
- }, [l, u(v, {
160
- title: c,
159
+ }, [c, u(w, {
160
+ title: f,
161
161
  placement: "bottom"
162
162
  }, {
163
- default: () => [u(I, {
163
+ default: () => [u(A, {
164
164
  style: {
165
165
  padding: "4px",
166
- color: i,
166
+ color: o,
167
167
  verticalAlign: "middle"
168
168
  }
169
169
  }, null)]
170
- })]) : l;
170
+ })]) : c;
171
171
  }
172
- function tt(t, e) {
172
+ function it(t, e) {
173
173
  const n = [];
174
- function i(o) {
175
- var r;
176
- for (const s of o)
177
- (r = s.children) != null && r.length ? i(s.children) : n.push(e(s));
174
+ function o(r) {
175
+ var i;
176
+ for (const s of r)
177
+ (i = s.children) != null && i.length ? o(s.children) : n.push(e(s));
178
+ }
179
+ return o(t), n;
180
+ }
181
+ function st(t, e) {
182
+ if (l(t) && l(e))
183
+ return S(p(t), p(e));
184
+ if (d(t) && d(e)) {
185
+ const n = (o) => I(o, (r) => r == null) || v(o);
186
+ if (n(t) && n(e))
187
+ return !0;
178
188
  }
179
- return i(t), n;
180
189
  }
181
190
  export {
182
- Z as apColumnToColumn,
183
- U as dataIndexToStr,
184
- w as formatParamsValueType,
185
- z as getColumnOrder,
186
- x as getFieldProps,
187
- X as getSearchFormItemRenderNode,
188
- K as getTableCellRenderNode,
189
- Y as getTableRenderProps,
190
- G as getTableRenderType,
191
- M as getTableTitle,
192
- P as objectToMap,
193
- H as objectToString,
194
- Q as parseFieldValue,
195
- tt as recursionApColumns,
196
- k as updateFormProps,
197
- m as valueEnumToArray
191
+ et as apColumnToColumn,
192
+ Y as dataIndexToStr,
193
+ q as formatParamsValueType,
194
+ Z as getColumnOrder,
195
+ R as getFieldProps,
196
+ M as getSearchFormItemRenderNode,
197
+ H as getTableCellRenderNode,
198
+ tt as getTableRenderProps,
199
+ k as getTableRenderType,
200
+ ot as getTableTitle,
201
+ st as isEqualCustom,
202
+ B as objectToMap,
203
+ rt as objectToString,
204
+ X as parseFieldValue,
205
+ it as recursionApColumns,
206
+ nt as updateFormProps,
207
+ b as valueEnumToArray
198
208
  };