@aplus-frontend/ui 0.6.8 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/es/index.mjs +187 -193
  2. package/es/src/ap-descriptions/formatter/index.d.ts +5 -0
  3. package/es/src/ap-descriptions/formatter/index.mjs +39 -38
  4. package/es/src/ap-descriptions/interface.d.ts +7 -1
  5. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  6. package/es/src/ap-form/interface.d.ts +6 -5
  7. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +42 -36
  8. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
  9. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +39 -0
  10. package/es/src/ap-grid/hooks/use-row-selection.mjs +57 -62
  11. package/es/src/ap-grid/utils/renderer.mjs +9 -9
  12. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  13. package/es/src/business/ap-label/index.d.ts +3 -3
  14. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
  15. package/es/src/business/ap-view/ap-view.vue2.mjs +122 -118
  16. package/es/src/business/ap-view/index.d.ts +3 -0
  17. package/es/src/business/ap-view/interface.d.ts +4 -0
  18. package/es/src/business/hooks/usePageListApGrid.mjs +23 -30
  19. package/es/src/business/index.d.ts +0 -1
  20. package/es/src/business/index.mjs +42 -46
  21. package/es/src/index.d.ts +0 -1
  22. package/es/src/index.mjs +274 -281
  23. package/es/src/locale/lang/en.mjs +0 -7
  24. package/es/src/locale/lang/zh-cn.mjs +0 -7
  25. package/es/src/path-map.mjs +0 -2
  26. package/es/src/version.d.ts +1 -1
  27. package/es/src/version.mjs +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/src/ap-descriptions/formatter/index.d.ts +5 -0
  30. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  31. package/lib/src/ap-descriptions/interface.d.ts +7 -1
  32. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  33. package/lib/src/ap-form/interface.d.ts +6 -5
  34. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  35. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
  36. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -0
  37. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  38. package/lib/src/ap-grid/utils/renderer.js +1 -1
  39. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  40. package/lib/src/business/ap-label/index.d.ts +3 -3
  41. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
  42. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  43. package/lib/src/business/ap-view/index.d.ts +3 -0
  44. package/lib/src/business/ap-view/interface.d.ts +4 -0
  45. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  46. package/lib/src/business/index.d.ts +0 -1
  47. package/lib/src/business/index.js +1 -1
  48. package/lib/src/index.d.ts +0 -1
  49. package/lib/src/index.js +1 -1
  50. package/lib/src/locale/lang/en.js +1 -1
  51. package/lib/src/locale/lang/zh-cn.js +1 -1
  52. package/lib/src/path-map.js +1 -1
  53. package/lib/src/version.d.ts +1 -1
  54. package/lib/src/version.js +1 -1
  55. package/package.json +5 -10
  56. package/theme/ap-form/index.css +16 -0
  57. package/theme/ap-form/search-form.css +16 -0
  58. package/theme/ap-form/search-form.less +16 -0
  59. package/theme/ap-grid/index.css +24 -0
  60. package/theme/ap-grid/index.less +8 -0
  61. package/theme/ap-table/ap-table.css +16 -0
  62. package/theme/ap-table-modal/index.css +16 -0
  63. package/theme/editable-table/index.css +16 -0
  64. package/theme/index.css +24 -0
  65. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
  66. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +0 -46
  67. package/es/src/ap-info-layout/ApInfoLayout.vue2.mjs +0 -4
  68. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
  69. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +0 -4
  70. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +0 -41
  71. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
  72. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +0 -4
  73. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +0 -71
  74. package/es/src/ap-info-layout/index.d.ts +0 -3
  75. package/es/src/ap-info-layout/index.mjs +0 -2
  76. package/es/src/ap-info-layout/interface.d.ts +0 -10
  77. package/es/src/ap-info-layout/interface.mjs +0 -1
  78. package/es/src/ap-info-layout/style/css.d.ts +0 -0
  79. package/es/src/ap-info-layout/style/css.js +0 -1
  80. package/es/src/ap-info-layout/style/index.d.ts +0 -0
  81. package/es/src/ap-info-layout/style/index.js +0 -1
  82. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
  83. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +0 -4
  84. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +0 -202
  85. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
  86. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +0 -4
  87. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +0 -135
  88. package/es/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
  89. package/es/src/business/ap-group-search/extension-select/style/css.js +0 -1
  90. package/es/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
  91. package/es/src/business/ap-group-search/extension-select/style/index.js +0 -1
  92. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
  93. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +0 -28
  94. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
  95. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +0 -45
  96. package/es/src/business/ap-group-search/index.d.ts +0 -1536
  97. package/es/src/business/ap-group-search/index.mjs +0 -14
  98. package/es/src/business/ap-group-search/interface.d.ts +0 -11
  99. package/es/src/business/ap-group-search/interface.mjs +0 -1
  100. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
  101. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +0 -4
  102. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +0 -193
  103. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  104. package/es/src/business/ap-group-search/popover-select/style/css.js +0 -1
  105. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  106. package/es/src/business/ap-group-search/popover-select/style/index.js +0 -1
  107. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  108. package/es/src/business/ap-group-search/style/css.js +0 -1
  109. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  110. package/es/src/business/ap-group-search/style/index.js +0 -1
  111. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
  112. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +0 -1
  113. package/lib/src/ap-info-layout/ApInfoLayout.vue2.js +0 -1
  114. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
  115. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +0 -1
  116. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +0 -1
  117. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
  118. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.js +0 -1
  119. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +0 -1
  120. package/lib/src/ap-info-layout/index.d.ts +0 -3
  121. package/lib/src/ap-info-layout/index.js +0 -1
  122. package/lib/src/ap-info-layout/interface.d.ts +0 -10
  123. package/lib/src/ap-info-layout/interface.js +0 -1
  124. package/lib/src/ap-info-layout/style/css.cjs +0 -1
  125. package/lib/src/ap-info-layout/style/css.d.ts +0 -0
  126. package/lib/src/ap-info-layout/style/index.cjs +0 -1
  127. package/lib/src/ap-info-layout/style/index.d.ts +0 -0
  128. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
  129. package/lib/src/business/ap-group-search/ap-group-search.vue.js +0 -1
  130. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +0 -1
  131. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
  132. package/lib/src/business/ap-group-search/extension-select/index.vue.js +0 -1
  133. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +0 -1
  134. package/lib/src/business/ap-group-search/extension-select/style/css.cjs +0 -1
  135. package/lib/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
  136. package/lib/src/business/ap-group-search/extension-select/style/index.cjs +0 -1
  137. package/lib/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
  138. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
  139. package/lib/src/business/ap-group-search/images/icon-down.vue.js +0 -1
  140. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
  141. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +0 -1
  142. package/lib/src/business/ap-group-search/index.d.ts +0 -1536
  143. package/lib/src/business/ap-group-search/index.js +0 -1
  144. package/lib/src/business/ap-group-search/interface.d.ts +0 -11
  145. package/lib/src/business/ap-group-search/interface.js +0 -1
  146. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
  147. package/lib/src/business/ap-group-search/popover-select/index.vue.js +0 -1
  148. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +0 -2
  149. package/lib/src/business/ap-group-search/popover-select/style/css.cjs +0 -1
  150. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  151. package/lib/src/business/ap-group-search/popover-select/style/index.cjs +0 -1
  152. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  153. package/lib/src/business/ap-group-search/style/css.cjs +0 -1
  154. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  155. package/lib/src/business/ap-group-search/style/index.cjs +0 -1
  156. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
@@ -1,18 +1,18 @@
1
1
  import { createVNode as f } from "vue";
2
- import { getTimeFormatToZone as g } from "@aplus-frontend/utils";
3
- import { isBoolean as h, merge as p, get as l, debounce as Y } from "lodash-unified";
4
- import { formatString as A } from "./utils.mjs";
5
- import { toDecimalMark as b } from "@fruits-chain/utils";
6
- import { TypographyParagraph as M } from "@aplus-frontend/antdv";
2
+ import { getTimeFormatToZone as g, toThousand as h } from "@aplus-frontend/utils";
3
+ import { isBoolean as Y, merge as p, get as l, debounce as A } from "lodash-unified";
4
+ import { formatString as b } from "./utils.mjs";
5
+ import { TypographyParagraph as d } from "@aplus-frontend/antdv";
6
+ import { toDecimalMark as M } from "@fruits-chain/utils";
7
7
  function S({
8
8
  value: t
9
9
  }, n) {
10
10
  if (!(n != null && n.ellipsis))
11
11
  return t;
12
- const r = {
12
+ const i = {
13
13
  ...n,
14
14
  content: t,
15
- ellipsis: n.ellipsis ? h(n.ellipsis) ? {
15
+ ellipsis: n.ellipsis ? Y(n.ellipsis) ? {
16
16
  tooltip: t,
17
17
  rows: 1
18
18
  } : {
@@ -20,61 +20,61 @@ function S({
20
20
  tooltip: t
21
21
  } : !1
22
22
  };
23
- return f(M, r, null);
23
+ return f(d, i, null);
24
24
  }
25
25
  function D({
26
26
  value: t
27
27
  }, n) {
28
28
  var o;
29
29
  const {
30
- joinSymbol: r
30
+ joinSymbol: i
31
31
  } = p({
32
32
  joinSymbol: " "
33
33
  }, n);
34
- return (o = t == null ? void 0 : t.join) == null ? void 0 : o.call(t, r);
34
+ return (o = t == null ? void 0 : t.join) == null ? void 0 : o.call(t, i);
35
35
  }
36
36
  function u({
37
37
  value: t
38
38
  }, n) {
39
39
  const {
40
- zoneAlias: r,
40
+ zoneAlias: i,
41
41
  format: o
42
42
  } = p({
43
43
  zoneAlias: "LA",
44
44
  format: "YYYY-MM-DD HH:mm:ss"
45
45
  }, n);
46
- return g(t, r, o);
46
+ return g(t, i, o);
47
47
  }
48
48
  function y({
49
49
  value: t,
50
50
  record: n
51
- }, r) {
51
+ }, i) {
52
52
  const {
53
53
  fieldList: o,
54
- templateString: i = "{0}",
55
- formatter: e
56
- } = r, s = (o == null ? void 0 : o.map((m, a) => {
54
+ templateString: e = "{0}",
55
+ formatter: r
56
+ } = i, s = (o == null ? void 0 : o.map((m, a) => {
57
57
  const c = l(n, m);
58
- return e ? e(c, a) : c;
58
+ return r ? r(c, a) : c;
59
59
  })) || [];
60
- return s.length === 0 && s.push(t), A(i, s);
60
+ return s.length === 0 && s.push(t), b(e, s);
61
61
  }
62
62
  function j({
63
63
  value: t,
64
64
  record: n
65
- }, r) {
65
+ }, i) {
66
66
  const {
67
67
  fieldList: o,
68
- format: i = "YYYY-MM-DD HH:mm:ss",
69
- joinSymbol: e = "~",
68
+ format: e = "YYYY-MM-DD HH:mm:ss",
69
+ joinSymbol: r = "~",
70
70
  zoneAlias: s = "LA"
71
- } = r, m = Array.isArray(i) ? i : [i, i];
71
+ } = i, m = Array.isArray(e) ? e : [e, e];
72
72
  return y({
73
73
  value: t,
74
74
  record: n
75
75
  }, {
76
76
  fieldList: o,
77
- templateString: `{0} ${e} {1}`,
77
+ templateString: `{0} ${r} {1}`,
78
78
  formatter(a, c) {
79
79
  return u({
80
80
  value: a,
@@ -90,16 +90,16 @@ function k({
90
90
  record: t
91
91
  }, n) {
92
92
  const {
93
- urlPath: r = "url",
93
+ urlPath: i = "url",
94
94
  namePath: o = "name",
95
- style: i,
96
- downloadFile: e,
95
+ style: e,
96
+ downloadFile: r,
97
97
  className: s
98
- } = n, m = l(t, o), a = l(t, r), c = Y(() => {
99
- e == null || e(a, m);
98
+ } = n, m = l(t, o), a = l(t, i), c = A(() => {
99
+ r == null || r(a, m);
100
100
  }, 500);
101
101
  return f("span", {
102
- style: i,
102
+ style: e,
103
103
  class: [s, "ap-descriptions-item-content__link "],
104
104
  onClick: c
105
105
  }, [m]);
@@ -108,21 +108,22 @@ function H({
108
108
  value: t
109
109
  }, n) {
110
110
  const {
111
- style: r = {},
112
- precision: o
111
+ style: i = {},
112
+ precision: o,
113
+ isFixed: e = !0
113
114
  } = n;
114
- let i = "";
115
+ let r = "";
115
116
  try {
116
- i = b(t, o);
117
+ e ? r = h(t, o, "fixed") : r = M(t, o);
117
118
  } catch {
118
- i = t;
119
+ r = t;
119
120
  }
120
121
  return f("span", {
121
- style: r,
122
+ style: i,
122
123
  class: "ap-descriptions-item-content__number"
123
- }, [i]);
124
+ }, [r]);
124
125
  }
125
- const N = {
126
+ const B = {
126
127
  text: S,
127
128
  array: D,
128
129
  date: u,
@@ -136,7 +137,7 @@ export {
136
137
  k as attachment,
137
138
  u as date,
138
139
  j as dateRange,
139
- N as formatterMap,
140
+ B as formatterMap,
140
141
  H as number,
141
142
  y as template,
142
143
  S as text
@@ -12,10 +12,16 @@ type MixObjectPropertyType<O, key extends keyof O> = key extends keyof O ? {
12
12
  } : never;
13
13
  export type TransformOptionType = MixObjectPropertyType<FormatterMapType, FormatterValueType>;
14
14
  type Recordable = Record<string, any>;
15
+ type AllKeys<T, P extends string = '', Level extends unknown[] = []> = Level['length'] extends 5 ? never : T extends object ? {
16
+ [K in keyof T]: `${P}${K extends string ? K : never}` | (T[K] extends object ? AllKeys<T[K], `${P}${K extends string ? K : never}.`, [
17
+ ...Level,
18
+ unknown
19
+ ]> : never);
20
+ }[keyof T] : never;
15
21
  /** 基本描述类型 */
16
22
  export interface ItemSchema<T extends Recordable = Recordable> {
17
23
  label: VNodeChild | VNode;
18
- field: keyof T | (string & {}) | string[];
24
+ field: Extract<AllKeys<T>, string> | string[];
19
25
  span?: number;
20
26
  prefix?: VNodeChild | VNode;
21
27
  suffix?: VNodeChild | VNode;
@@ -108,8 +108,8 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
108
108
  mode: FieldMode;
109
109
  disabled: boolean;
110
110
  autofocus: boolean;
111
- allowClear: boolean;
112
111
  count: number;
112
+ allowClear: boolean;
113
113
  allowHalf: boolean;
114
114
  character: any;
115
115
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -171,12 +171,13 @@ export type ApFormSearchFormProps = ApFormProps & {
171
171
  */
172
172
  loadingDelay?: number;
173
173
  };
174
+ export type SearchFormRenderNodeConfig = {
175
+ node: VNode;
176
+ key: string;
177
+ span: number;
178
+ };
174
179
  export type ApFormSearchFormPopoverFilterProps = {
175
- config: Array<{
176
- node: VNode;
177
- key: string;
178
- span: number;
179
- }>;
180
+ config: SearchFormRenderNodeConfig[];
180
181
  onSubmit: () => void;
181
182
  submitLoading: boolean;
182
183
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as C, ref as d, createBlock as m, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as s, createElementVNode as g, createElementBlock as F, Fragment as _, renderList as B, resolveDynamicComponent as x, createTextVNode as v, toDisplayString as y } from "vue";
2
- import { Popover as h, Tooltip as L, Button as u, Row as N, Col as S, Divider as w, Flex as D } from "@aplus-frontend/antdv";
3
- import { IconApFilterOutlined as P } from "@aplus-frontend/icon";
1
+ import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as g, vShow as R, createElementBlock as S, Fragment as D, renderList as L, resolveDynamicComponent as N, createTextVNode as b } from "vue";
2
+ import { Popover as P, Tooltip as T, Button as d, Row as V, Col as z, Divider as A, Flex as E } from "@aplus-frontend/antdv";
3
+ import { IconApFilterOutlined as I } from "@aplus-frontend/icon";
4
4
  import "../../../config-provider/index.mjs";
5
- import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
6
- import { useLocale as T } from "../../../config-provider/hooks/use-locale.mjs";
7
- const U = /* @__PURE__ */ C({
5
+ import { useCollapseInputCount as j } from "../hooks/use-collapse-input-count.mjs";
6
+ import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ import { useLocale as U } from "../../../config-provider/hooks/use-locale.mjs";
8
+ const Q = /* @__PURE__ */ h({
8
9
  name: "ApFormSearchFormPopoverFilter",
9
10
  __name: "popover-filter",
10
11
  props: {
@@ -12,35 +13,35 @@ const U = /* @__PURE__ */ C({
12
13
  onSubmit: { type: Function },
13
14
  submitLoading: { type: Boolean }
14
15
  },
15
- setup(V) {
16
- const k = d(), { e: a, b: f } = R("ap-form-search-form"), { t: c } = T(), l = d(!1);
17
- function b(r) {
16
+ setup(k) {
17
+ const C = k, F = y(), { e: i, b: c } = O("ap-form-search-form"), { t: m } = U(), p = y(!1), B = w(() => C.config), { count: v } = j(B);
18
+ function _(r) {
18
19
  return (r == null ? void 0 : r.closest(".ant-form")) || document.body;
19
20
  }
20
- return (r, p) => (i(), m(e(h), {
21
- open: l.value,
22
- "onUpdate:open": p[1] || (p[1] = (n) => l.value = n),
23
- "overlay-class-name": e(a)("popover"),
21
+ return (r, l) => (s(), u(e(P), {
22
+ open: p.value,
23
+ "onUpdate:open": l[1] || (l[1] = (n) => p.value = n),
24
+ "overlay-class-name": e(i)("popover"),
24
25
  trigger: "click",
25
26
  placement: "bottom",
26
27
  mask: "",
27
28
  "mask-style": { backgroundColor: "transparent" },
28
- "get-popup-container": b,
29
+ "get-popup-container": _,
29
30
  "force-render": !0
30
31
  }, {
31
32
  content: o(() => [
32
- g("div", {
33
- class: s([e(a)("popover-content")]),
33
+ f("div", {
34
+ class: a([e(i)("popover-content")]),
34
35
  style: { paddingBottom: "4px", width: "825px" }
35
36
  }, [
36
- t(e(N), { gutter: 8 }, {
37
+ t(e(V), { gutter: 8 }, {
37
38
  default: o(() => [
38
- (i(!0), F(_, null, B(r.config, (n) => (i(), m(e(S), {
39
+ (s(!0), S(D, null, L(r.config, (n) => (s(), u(e(z), {
39
40
  key: n.key,
40
41
  span: 8
41
42
  }, {
42
43
  default: o(() => [
43
- (i(), m(x(n.node)))
44
+ (s(), u(N(n.node)))
44
45
  ]),
45
46
  _: 2
46
47
  }, 1024))), 128))
@@ -48,28 +49,28 @@ const U = /* @__PURE__ */ C({
48
49
  _: 1
49
50
  })
50
51
  ], 2),
51
- t(e(w), { style: { margin: "0" } }),
52
- g("div", {
53
- class: s(e(a)("popover-footer"))
52
+ t(e(A), { style: { margin: "0" } }),
53
+ f("div", {
54
+ class: a(e(i)("popover-footer"))
54
55
  }, [
55
- t(e(D), { justify: "end" }, {
56
+ t(e(E), { justify: "end" }, {
56
57
  default: o(() => [
57
- t(e(u), {
58
- onClick: p[0] || (p[0] = (n) => l.value = !1)
58
+ t(e(d), {
59
+ onClick: l[0] || (l[0] = (n) => p.value = !1)
59
60
  }, {
60
61
  default: o(() => [
61
- v(y(e(c)("ap.common.cancelText")), 1)
62
+ b(g(e(m)("ap.common.cancelText")), 1)
62
63
  ]),
63
64
  _: 1
64
65
  }),
65
- t(e(u), {
66
- class: s(e(a)("popover-footer-confirm-btn")),
66
+ t(e(d), {
67
+ class: a(e(i)("popover-footer-confirm-btn")),
67
68
  type: "primary",
68
69
  loading: r.submitLoading,
69
70
  onClick: r.onSubmit
70
71
  }, {
71
72
  default: o(() => [
72
- v(y(e(c)("ap.apForm.search.search")), 1)
73
+ b(g(e(m)("ap.apForm.search.search")), 1)
73
74
  ]),
74
75
  _: 1
75
76
  }, 8, ["class", "loading", "onClick"])
@@ -79,18 +80,23 @@ const U = /* @__PURE__ */ C({
79
80
  ], 2)
80
81
  ]),
81
82
  default: o(() => [
82
- t(e(L), {
83
- title: e(c)("ap.apForm.search.moreFilter"),
83
+ t(e(T), {
84
+ title: e(m)("ap.apForm.search.moreFilter"),
84
85
  placement: "top"
85
86
  }, {
86
87
  default: o(() => [
87
- t(e(u), {
88
+ t(e(d), {
88
89
  ref_key: "triggerBtnRef",
89
- ref: k,
90
- class: s([e(f)("trigger-btn"), { [e(f)("trigger-btn-active")]: l.value }])
90
+ ref: F,
91
+ class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: p.value }])
91
92
  }, {
92
93
  icon: o(() => [
93
- t(e(P), { size: 14 })
94
+ x(f("sup", {
95
+ class: a(e(c)("trigger-btn-badge"))
96
+ }, g(e(v)), 3), [
97
+ [R, e(v) !== 0]
98
+ ]),
99
+ t(e(I), { size: 14 })
94
100
  ]),
95
101
  _: 1
96
102
  }, 8, ["class"])
@@ -103,5 +109,5 @@ const U = /* @__PURE__ */ C({
103
109
  }
104
110
  });
105
111
  export {
106
- U as default
112
+ Q as default
107
113
  };
@@ -0,0 +1,5 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+ import { SearchFormRenderNodeConfig } from '../../interface';
3
+ export declare const useCollapseInputCount: (config: Ref<SearchFormRenderNodeConfig[]>) => {
4
+ count: ComputedRef<number>;
5
+ };
@@ -0,0 +1,39 @@
1
+ import { computed as u } from "vue";
2
+ import { useInjectForm as l } from "../../context.mjs";
3
+ import { isArray as o, isObject as d } from "lodash-unified";
4
+ function a(t, r) {
5
+ return o(r) ? r.reduce((n, e) => n == null ? void 0 : n[e], t) : t == null ? void 0 : t[r];
6
+ }
7
+ function i(t) {
8
+ if (t == null)
9
+ return !1;
10
+ if (typeof t == "string")
11
+ return t.trim() !== "";
12
+ if (o(t))
13
+ return t.some((n) => i(n));
14
+ if (d(t)) {
15
+ const r = Object.keys(t);
16
+ if (r.length === 0)
17
+ return !1;
18
+ for (const n of r)
19
+ if (i(t[n]))
20
+ return !0;
21
+ return !1;
22
+ }
23
+ return !0;
24
+ }
25
+ const y = (t) => {
26
+ const { model: r } = l();
27
+ return {
28
+ count: u(() => {
29
+ let e = 0;
30
+ return t.value.forEach((s) => {
31
+ const c = [s.node.props.name].flat(1), f = a(r == null ? void 0 : r.value, c);
32
+ i(f) && (e += 1);
33
+ }), e;
34
+ })
35
+ };
36
+ };
37
+ export {
38
+ y as useCollapseInputCount
39
+ };
@@ -1,115 +1,110 @@
1
- import { ref as k, computed as v, unref as a } from "vue";
2
- import { isFunction as i, cloneDeep as M } from "lodash-unified";
3
- function m(u, c) {
4
- return !(c != null && c.length) || i(u) ? [] : c.map((f) => ({ [u]: f }));
1
+ import { ref as I, computed as v, unref as o } from "vue";
2
+ import { isFunction as i, cloneDeep as _ } from "lodash-unified";
3
+ function b(a, c) {
4
+ return !(c != null && c.length) || i(a) ? [] : c.map((f) => ({ [a]: f }));
5
5
  }
6
- const T = (u) => {
7
- u.defaultSelectedRowKeys;
8
- const c = k(
9
- m(u.rowKey, u.defaultSelectedRowKeys)
6
+ const F = (a) => {
7
+ a.defaultSelectedRowKeys;
8
+ const c = I(
9
+ b(a.rowKey, a.defaultSelectedRowKeys)
10
10
  );
11
11
  function f(e, t) {
12
12
  c.value = t;
13
13
  }
14
- const l = (e) => i(u.rowKey) ? u.rowKey(e) : e[u.rowKey], s = v(() => {
14
+ const l = (e) => i(a.rowKey) ? a.rowKey(e) : e[a.rowKey], s = v(() => {
15
15
  const e = /* @__PURE__ */ new Map();
16
- return a(c).forEach((t) => {
16
+ return o(c).forEach((t) => {
17
17
  e.set(l(t), t);
18
18
  }), e;
19
19
  });
20
- function g(e) {
21
- return a(s).has(l(e));
20
+ function M(e) {
21
+ return o(s).has(l(e));
22
22
  }
23
- function h(e) {
24
- const t = a(s);
23
+ function g(e) {
24
+ const t = o(s);
25
25
  t.set(l(e), e), c.value = [...t.values()];
26
26
  }
27
- function x(e) {
28
- const t = a(s);
27
+ function h(e) {
28
+ const t = o(s);
29
29
  for (const n of e)
30
30
  t.set(l(n), n);
31
31
  c.value = [...t.values()];
32
32
  }
33
33
  function w(e) {
34
- if (i(u.rowKey))
34
+ if (i(a.rowKey))
35
35
  return;
36
- const t = a(s);
36
+ const t = o(s);
37
37
  for (const n of e) {
38
- const o = a(u.dataSource).find(
39
- (d) => l(d) === n
40
- ), S = { [u.rowKey]: n };
41
- t.set(String(n), o || S);
38
+ const u = o(a.dataSource).find(
39
+ (r) => l(r) === n
40
+ ), S = { [a.rowKey]: n };
41
+ t.set(String(n), u || S);
42
42
  }
43
43
  c.value = [...t.values()];
44
44
  }
45
- function y(e) {
46
- const t = a(s);
45
+ function x(e) {
46
+ const t = o(s);
47
47
  t.delete(l(e)), c.value = [...t.values()];
48
48
  }
49
- function E(e) {
50
- const t = a(s);
49
+ function y(e) {
50
+ const t = o(s);
51
51
  for (const n of e)
52
52
  t.delete(l(n));
53
53
  c.value = [...t.values()];
54
54
  }
55
- function r(e, t) {
55
+ function d(e, t) {
56
56
  const n = e;
57
- for (const o of t)
58
- n.set(l(o), o);
57
+ for (const u of t)
58
+ n.set(l(u), u);
59
59
  return n;
60
60
  }
61
61
  function K(e, t, n) {
62
- const o = a(s);
63
- t ? o.set(l(e), e) : o.delete(l(e)), r(o, n), c.value = [...o.values()];
62
+ const u = o(s);
63
+ t ? u.set(l(e), e) : u.delete(l(e)), d(u, n), c.value = [...u.values()];
64
64
  }
65
65
  function A(e, t) {
66
- const n = M(a(s));
67
- e ? a(u.dataSource).forEach((o) => {
68
- n.set(l(o), o);
69
- }) : a(u.dataSource).forEach((o) => {
70
- n.delete(l(o));
71
- }), r(n, t), c.value = [...n.values()];
66
+ c.value = [...t];
72
67
  }
73
68
  function C(e, t) {
74
- const n = M(a(s));
75
- a(u.dataSource).forEach((o) => {
76
- e.find((d) => l(d) === l(o)) ? n.set(l(o), o) : n.delete(l(o));
77
- }), r(n, t), c.value = [...n.values()];
69
+ const n = _(o(s));
70
+ o(a.dataSource).forEach((u) => {
71
+ e.find((r) => l(r) === l(u)) ? n.set(l(u), u) : n.delete(l(u));
72
+ }), d(n, t), c.value = [...n.values()];
78
73
  }
79
- function R() {
80
- const e = a(s);
81
- a(u.dataSource).forEach((t) => {
74
+ function E() {
75
+ const e = o(s);
76
+ o(a.dataSource).forEach((t) => {
82
77
  e.set(l(t), t);
83
78
  }), c.value = [...e.values()];
84
79
  }
85
- function D(e) {
86
- const t = a(s), n = l(e);
80
+ function R(e) {
81
+ const t = o(s), n = l(e);
87
82
  t.has(n) ? t.delete(n) : t.set(n, e), c.value = [...t.values()];
88
83
  }
89
- function I() {
90
- const e = a(s);
91
- a(u.dataSource).forEach((t) => {
84
+ function D() {
85
+ const e = o(s);
86
+ o(a.dataSource).forEach((t) => {
92
87
  e.delete(l(t));
93
88
  }), c.value = [...e.values()];
94
89
  }
95
- function b() {
90
+ function m() {
96
91
  c.value = [];
97
92
  }
98
93
  return {
99
- select: h,
100
- unSelect: y,
101
- isSelected: g,
102
- selectAll: R,
103
- unSelectAll: I,
104
- clearAll: b,
105
- toggleSelect: D,
94
+ select: g,
95
+ unSelect: x,
96
+ isSelected: M,
97
+ selectAll: E,
98
+ unSelectAll: D,
99
+ clearAll: m,
100
+ toggleSelect: R,
106
101
  selectedRows: c,
107
- selectMulti: x,
108
- unSelectMulti: E,
102
+ selectMulti: h,
103
+ unSelectMulti: y,
109
104
  rowSelection: v(() => ({
110
- ...u,
105
+ ...a,
111
106
  onChange: f,
112
- selectedRowKeys: a(c).map((e) => l(e))
107
+ selectedRowKeys: o(c).map((e) => l(e))
113
108
  })),
114
109
  selectChange: K,
115
110
  selectAllChange: A,
@@ -118,5 +113,5 @@ const T = (u) => {
118
113
  };
119
114
  };
120
115
  export {
121
- T as default
116
+ F as default
122
117
  };
@@ -1,20 +1,20 @@
1
- import { createVNode as l } from "vue";
1
+ import { createVNode as m } from "vue";
2
2
  import { VxeColumn as u, VxeColgroup as p } from "vxe-table";
3
- import { transformCol as s } from "./col.mjs";
3
+ import { transformCol as d } from "./col.mjs";
4
4
  function n(r) {
5
5
  var e;
6
- return (e = r.children) != null && e.length ? l(p, r, {
6
+ return (e = r.children) != null && e.length ? m(p, r, {
7
7
  ...r.slots || {},
8
8
  default: () => {
9
- var o;
10
- return (o = r.children) == null ? void 0 : o.map((t) => n(t));
9
+ var t;
10
+ return (t = r.children) == null ? void 0 : t.map((o) => n(o));
11
11
  }
12
- }) : (console.log("config", r), l(u, r, {
12
+ }) : m(u, r, {
13
13
  ...r.slots || {}
14
- }));
14
+ });
15
15
  }
16
- function C(r, e, o, t) {
17
- return r.map((m) => n(s(m, e, o, t)));
16
+ function C(r, e, t, o) {
17
+ return r.map((l) => n(d(l, e, t, o)));
18
18
  }
19
19
  export {
20
20
  C as renderWithColumns
@@ -128,8 +128,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
128
128
  placement: TooltipPlacement;
129
129
  show: boolean;
130
130
  dot: boolean;
131
- iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
132
131
  count: any;
132
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
133
133
  showZero: boolean;
134
134
  overflowCount: number;
135
135
  numberStyle: CSSProperties;
@@ -70,8 +70,8 @@ declare const ApLabel: {
70
70
  placement: TooltipPlacement;
71
71
  show: boolean;
72
72
  dot: boolean;
73
- iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
74
73
  count: any;
74
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
75
75
  showZero: boolean;
76
76
  overflowCount: number;
77
77
  numberStyle: CSSProperties;
@@ -152,8 +152,8 @@ declare const ApLabel: {
152
152
  placement: TooltipPlacement;
153
153
  show: boolean;
154
154
  dot: boolean;
155
- iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
156
155
  count: any;
156
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
157
157
  showZero: boolean;
158
158
  overflowCount: number;
159
159
  numberStyle: CSSProperties;
@@ -231,8 +231,8 @@ declare const ApLabel: {
231
231
  placement: TooltipPlacement;
232
232
  show: boolean;
233
233
  dot: boolean;
234
- iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
235
234
  count: any;
235
+ iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
236
236
  showZero: boolean;
237
237
  overflowCount: number;
238
238
  numberStyle: CSSProperties;
@@ -3,6 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  declare const _default: DefineComponent<ApViewProps, {
4
4
  setFirstDefaultSystemView: (value: boolean) => void;
5
5
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
6
+ manual: boolean;
6
7
  maxViewNum: number;
7
8
  isDefaultSystemView: boolean;
8
9
  isFirstDefaultSystemView: boolean;