@aplus-frontend/ui 6.11.0 → 6.12.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 (35) hide show
  1. package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
  2. package/es/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
  3. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +25 -22
  4. package/es/src/ap-table/constants.d.ts +4 -4
  5. package/es/src/ap-table/utils.d.ts +4 -4
  6. package/es/src/business/ap-card/ApCard.vue2.mjs +17 -17
  7. package/es/src/business/ap-summary/interface.d.ts +1 -1
  8. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  9. package/es/src/config-provider/config-provider-props.mjs +4 -0
  10. package/es/src/config-provider/config-provider.d.ts +14 -5
  11. package/es/src/config-provider/config-provider.mjs +19 -18
  12. package/es/src/config-provider/constants.d.ts +3 -0
  13. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  14. package/es/src/config-provider/index.d.ts +28 -13
  15. package/es/src/utils/config-provider-preset.d.ts +6 -6
  16. package/es/src/version.d.ts +1 -1
  17. package/es/src/version.mjs +1 -1
  18. package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
  19. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
  20. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  21. package/lib/src/ap-table/constants.d.ts +4 -4
  22. package/lib/src/ap-table/utils.d.ts +4 -4
  23. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  24. package/lib/src/business/ap-summary/interface.d.ts +1 -1
  25. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  26. package/lib/src/config-provider/config-provider-props.js +1 -1
  27. package/lib/src/config-provider/config-provider.d.ts +14 -5
  28. package/lib/src/config-provider/config-provider.js +1 -1
  29. package/lib/src/config-provider/constants.d.ts +3 -0
  30. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  31. package/lib/src/config-provider/index.d.ts +28 -13
  32. package/lib/src/utils/config-provider-preset.d.ts +6 -6
  33. package/lib/src/version.d.ts +1 -1
  34. package/lib/src/version.js +1 -1
  35. package/package.json +3 -3
@@ -72,10 +72,10 @@ declare function __VLS_template(): {
72
72
  readonly autofocus?: boolean | undefined;
73
73
  readonly bordered?: boolean | undefined;
74
74
  readonly getPopupContainer?: RenderDOMFunc | undefined;
75
- readonly placeholder?: any;
76
- readonly defaultValue?: SelectValue;
77
75
  readonly virtual?: boolean | undefined;
78
76
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
77
+ readonly placeholder?: any;
78
+ readonly defaultValue?: SelectValue;
79
79
  readonly id?: string | undefined;
80
80
  readonly status?: "" | "error" | "warning" | undefined;
81
81
  readonly clearIcon?: any;
@@ -703,10 +703,10 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
703
703
  readonly autofocus?: boolean | undefined;
704
704
  readonly bordered?: boolean | undefined;
705
705
  readonly getPopupContainer?: RenderDOMFunc | undefined;
706
- readonly placeholder?: any;
707
- readonly defaultValue?: SelectValue;
708
706
  readonly virtual?: boolean | undefined;
709
707
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
708
+ readonly placeholder?: any;
709
+ readonly defaultValue?: SelectValue;
710
710
  readonly id?: string | undefined;
711
711
  readonly status?: "" | "error" | "warning" | undefined;
712
712
  readonly clearIcon?: any;
@@ -77,10 +77,10 @@ declare function __VLS_template(): {
77
77
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
78
78
  readonly bordered?: boolean | undefined;
79
79
  readonly getPopupContainer?: RenderDOMFunc | undefined;
80
- readonly placeholder?: any;
81
- readonly defaultValue?: unknown;
82
80
  readonly virtual?: boolean | undefined;
83
81
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
82
+ readonly placeholder?: any;
83
+ readonly defaultValue?: unknown;
84
84
  readonly id?: string | undefined;
85
85
  readonly status?: "" | "error" | "warning" | undefined;
86
86
  readonly clearIcon?: any;
@@ -851,10 +851,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
851
851
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
852
852
  readonly bordered?: boolean | undefined;
853
853
  readonly getPopupContainer?: RenderDOMFunc | undefined;
854
- readonly placeholder?: any;
855
- readonly defaultValue?: unknown;
856
854
  readonly virtual?: boolean | undefined;
857
855
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
856
+ readonly placeholder?: any;
857
+ readonly defaultValue?: unknown;
858
858
  readonly id?: string | undefined;
859
859
  readonly status?: "" | "error" | "warning" | undefined;
860
860
  readonly clearIcon?: any;
@@ -1,39 +1,42 @@
1
- import { computed as d } from "vue";
2
- import { useInjectForm as p } from "../../context.mjs";
3
- import { isArray as s, isObject as F } from "lodash-unified";
4
- function a(t, r) {
5
- return s(r) ? r.reduce((n, o) => n == null ? void 0 : n[o], t) : t == null ? void 0 : t[r];
1
+ import { computed as F } from "vue";
2
+ import { useInjectForm as a } from "../../context.mjs";
3
+ import { isArray as d, isObject as m } from "lodash-unified";
4
+ import "../../../config-provider/index.mjs";
5
+ import { useGlobalConfig as h } from "../../../config-provider/hooks/use-global-config.mjs";
6
+ function g(t, o) {
7
+ return d(o) ? o.reduce((n, i) => n == null ? void 0 : n[i], t) : t == null ? void 0 : t[o];
6
8
  }
7
- function i(t) {
9
+ function c(t) {
8
10
  if (t == null)
9
11
  return !1;
10
12
  if (typeof t == "string")
11
13
  return t.trim() !== "";
12
- if (s(t))
13
- return t.some((n) => i(n));
14
- if (F(t)) {
15
- const r = Object.keys(t);
16
- if (r.length === 0)
14
+ if (d(t))
15
+ return t.some((n) => c(n));
16
+ if (m(t)) {
17
+ const o = Object.keys(t);
18
+ if (o.length === 0)
17
19
  return !1;
18
- for (const n of r)
19
- if (i(t[n]))
20
+ for (const n of o)
21
+ if (c(t[n]))
20
22
  return !0;
21
23
  return !1;
22
24
  }
23
25
  return !0;
24
26
  }
25
- const g = (t) => {
26
- const { model: r } = p();
27
+ const O = (t) => {
28
+ const { model: o } = a(), n = h("searchForm");
27
29
  return {
28
- count: d(() => {
29
- let o = 0;
30
- return t.value.forEach((e) => {
31
- const c = e.node.props.name, f = e.node.props.customFilled || e.node.props["custom-filled"] || i, u = [c].flat(1), l = a(r == null ? void 0 : r.value, u);
32
- f(l) && (o += 1);
33
- }), o;
30
+ count: F(() => {
31
+ let s = 0;
32
+ return t.value.forEach((r) => {
33
+ var u;
34
+ const p = [r.node.props.name].flat(1), l = g(o == null ? void 0 : o.value, p), f = r.node.props.customFilled || r.node.props["custom-filled"], e = (u = n.value) == null ? void 0 : u.customFilled;
35
+ !f && e ? e != null && e(r.node, l) && (s += 1) : (f || c)(l) && (s += 1);
36
+ }), s;
34
37
  })
35
38
  };
36
39
  };
37
40
  export {
38
- g as useCollapseInputCount
41
+ O as useCollapseInputCount
39
42
  };
@@ -900,10 +900,10 @@ export declare const apTableFormItemMap: {
900
900
  readonly autofocus?: boolean | undefined;
901
901
  readonly bordered?: boolean | undefined;
902
902
  readonly getPopupContainer?: RenderDOMFunc | undefined;
903
- readonly placeholder?: any;
904
- readonly defaultValue?: SelectValue;
905
903
  readonly virtual?: boolean | undefined;
906
904
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
905
+ readonly placeholder?: any;
906
+ readonly defaultValue?: SelectValue;
907
907
  readonly id?: string | undefined;
908
908
  readonly status?: "" | "error" | "warning" | undefined;
909
909
  readonly clearIcon?: any;
@@ -2468,10 +2468,10 @@ export declare const apTableFormItemMap: {
2468
2468
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
2469
2469
  readonly bordered?: boolean | undefined;
2470
2470
  readonly getPopupContainer?: RenderDOMFunc | undefined;
2471
- readonly placeholder?: any;
2472
- readonly defaultValue?: unknown;
2473
2471
  readonly virtual?: boolean | undefined;
2474
2472
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
2473
+ readonly placeholder?: any;
2474
+ readonly defaultValue?: unknown;
2475
2475
  readonly id?: string | undefined;
2476
2476
  readonly status?: "" | "error" | "warning" | undefined;
2477
2477
  readonly clearIcon?: any;
@@ -1733,10 +1733,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
1733
1733
  readonly autofocus?: boolean | undefined;
1734
1734
  readonly bordered?: boolean | undefined;
1735
1735
  readonly getPopupContainer?: RenderDOMFunc | undefined;
1736
- readonly placeholder?: any;
1737
- readonly defaultValue?: SelectValue;
1738
1736
  readonly virtual?: boolean | undefined;
1739
1737
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
1738
+ readonly placeholder?: any;
1739
+ readonly defaultValue?: SelectValue;
1740
1740
  readonly id?: string | undefined;
1741
1741
  readonly status?: "" | "error" | "warning" | undefined;
1742
1742
  readonly clearIcon?: any;
@@ -2522,10 +2522,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
2522
2522
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
2523
2523
  readonly bordered?: boolean | undefined;
2524
2524
  readonly getPopupContainer?: RenderDOMFunc | undefined;
2525
- readonly placeholder?: any;
2526
- readonly defaultValue?: unknown;
2527
2525
  readonly virtual?: boolean | undefined;
2528
2526
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
2527
+ readonly placeholder?: any;
2528
+ readonly defaultValue?: unknown;
2529
2529
  readonly id?: string | undefined;
2530
2530
  readonly status?: "" | "error" | "warning" | undefined;
2531
2531
  readonly clearIcon?: any;
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useSlots as $, computed as o, createElementBlock as a, openBlock as r, normalizeStyle as B, normalizeClass as N, unref as x, createBlock as s, createCommentVNode as P, renderSlot as m, mergeProps as b, createSlots as z, withCtx as y, isVNode as k, resolveDynamicComponent as _, toDisplayString as v } from "vue";
1
+ import { defineComponent as h, useSlots as $, computed as l, createElementBlock as o, openBlock as r, normalizeStyle as B, normalizeClass as N, unref as s, createBlock as c, createCommentVNode as P, renderSlot as d, mergeProps as b, createSlots as z, withCtx as y, isVNode as k, resolveDynamicComponent as v, toDisplayString as _ } from "vue";
2
2
  import "../ap-title/ApTitle.vue.mjs";
3
3
  import { omit as D } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -11,49 +11,49 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
11
11
  padding: {}
12
12
  },
13
13
  setup(S) {
14
- const e = S, t = $(), { b: c } = V("ap-card"), g = o(
14
+ const e = S, t = $(), { b: m } = V("ap-card"), g = l(
15
15
  () => D((e == null ? void 0 : e.titleProps) || {}, ["prefix", "suffix"])
16
- ), p = o(() => {
16
+ ), p = l(() => {
17
17
  var i;
18
18
  return (i = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : i.length;
19
- }), C = o(() => e.padding ?? "12px 16px");
19
+ }), C = l(() => e.padding ?? "var(--ap-card-padding, 12px 16px)");
20
20
  return (i, E) => {
21
- var u, d;
22
- return r(), a("div", {
23
- class: N([x(c)()]),
21
+ var u, x;
22
+ return r(), o("div", {
23
+ class: N([s(m)()]),
24
24
  style: B({
25
25
  padding: C.value
26
26
  })
27
27
  }, [
28
- p.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (r(), s(j, b({
28
+ p.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (r(), c(j, b({
29
29
  key: 0,
30
- class: [`${x(c)()}-title`]
30
+ class: [`${s(m)()}-title`]
31
31
  }, {
32
32
  ...g.value
33
33
  }), z({ _: 2 }, [
34
- (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
34
+ t != null && t.titleSuffix || (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
35
35
  name: "suffix",
36
36
  fn: y(() => {
37
- var f, l, n;
37
+ var f, n, a;
38
38
  return [
39
- t != null && t.titleSuffix ? m(i.$slots, "titleSuffix", { key: 0 }) : k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), s(_((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.suffix), { key: 1 })) : (r(), a("div", w, v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), 1))
39
+ t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) : k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), { key: 1 })) : (r(), o("div", w, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.suffix), 1))
40
40
  ];
41
41
  }),
42
42
  key: "0"
43
43
  } : void 0,
44
- (d = e == null ? void 0 : e.titleProps) != null && d.prefix ? {
44
+ t != null && t.titlePrefix || (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
45
45
  name: "prefix",
46
46
  fn: y(() => {
47
- var f, l, n;
47
+ var f, n, a;
48
48
  return [
49
- t != null && t.titlePrefix ? m(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
50
- k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), s(_((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.prefix), { key: 1 })) : (r(), a("div", A, v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), 1))
49
+ t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
50
+ k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
51
51
  ];
52
52
  }),
53
53
  key: "1"
54
54
  } : void 0
55
55
  ]), 1040, ["class"])) : P("", !0),
56
- m(i.$slots, "default")
56
+ d(i.$slots, "default")
57
57
  ], 6);
58
58
  };
59
59
  }
@@ -2,7 +2,7 @@ import { ColumnsType } from '@aplus-frontend/antdv/es/table';
2
2
  import { AlignType, DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
3
3
  import { ApColumnType } from '../../ap-table';
4
4
  import { ApGridColumnType } from '../../ap-grid';
5
- export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType;
5
+ export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType | any[];
6
6
  export type ValueType = {
7
7
  [key in string]: any;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
3
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
4
4
  import { ViewCacheOption } from '../business';
5
5
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
6
6
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
@@ -166,5 +166,9 @@ export declare const configProviderProps: () => {
166
166
  type: PropType<ViewCacheOption>;
167
167
  default: () => {};
168
168
  };
169
+ searchForm: {
170
+ type: PropType<SearchFormGlobalConfig>;
171
+ default: () => {};
172
+ };
169
173
  };
170
174
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -43,6 +43,10 @@ const p = () => ({
43
43
  type: Object,
44
44
  default: () => ({})
45
45
  },
46
+ searchForm: {
47
+ type: Object,
48
+ default: () => ({})
49
+ },
46
50
  ...e()
47
51
  });
48
52
  export {
@@ -9,7 +9,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
9
9
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
10
10
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
11
11
  import { LocaleType } from '../locale';
12
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
12
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
13
13
  import { ViewCacheOption } from '..';
14
14
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
15
15
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
@@ -165,6 +165,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
165
165
  type: PropType<ViewCacheOption>;
166
166
  default: () => {};
167
167
  };
168
+ searchForm: {
169
+ type: PropType<SearchFormGlobalConfig>;
170
+ default: () => {};
171
+ };
168
172
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
169
173
  iconPrefixCls: StringConstructor;
170
174
  getTargetContainer: {
@@ -318,6 +322,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
318
322
  type: PropType<ViewCacheOption>;
319
323
  default: () => {};
320
324
  };
325
+ searchForm: {
326
+ type: PropType<SearchFormGlobalConfig>;
327
+ default: () => {};
328
+ };
321
329
  }>> & Readonly<{}>, {
322
330
  input: {
323
331
  autocomplete?: string;
@@ -334,10 +342,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
334
342
  size?: ButtonSize | number;
335
343
  };
336
344
  direction: "ltr" | "rtl";
337
- pagination: {
338
- showSizeChanger?: boolean;
339
- };
340
- apUpload: ApUploadConfig;
345
+ searchForm: SearchFormGlobalConfig;
341
346
  csp: CSPConfig;
342
347
  autoInsertSpaceInButton: boolean;
343
348
  locale: Locale;
@@ -347,11 +352,15 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
347
352
  componentDisabled: boolean;
348
353
  virtual: boolean;
349
354
  dropdownMatchSelectWidth: number | boolean;
355
+ pagination: {
356
+ showSizeChanger?: boolean;
357
+ };
350
358
  theme: ThemeConfig;
351
359
  wave: {
352
360
  disabled?: boolean;
353
361
  };
354
362
  api: ApiType;
363
+ apUpload: ApUploadConfig;
355
364
  apDescriptions: ApDescriptionsConfig;
356
365
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
357
366
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -1,43 +1,44 @@
1
- import { isVNode as p, ref as C, defineComponent as s, computed as i, unref as t, watch as c, createVNode as v, renderSlot as M } from "vue";
1
+ import { isVNode as p, ref as s, defineComponent as C, computed as i, unref as t, watch as u, createVNode as v, renderSlot as M } from "vue";
2
2
  import { ConfigProvider as P } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as l, provideGlobalConfig as U } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as w } from "./config-provider-props.mjs";
5
- import { mergeAntdProviderConfigWithCache as A, mergeAntdProvideConfig as D } from "../utils/config-provider-preset.mjs";
6
- import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as b } from "./constants.mjs";
7
- function h(e) {
3
+ import { useGlobalConfig as l, provideGlobalConfig as h } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as U } from "./config-provider-props.mjs";
5
+ import { mergeAntdProviderConfigWithCache as w, mergeAntdProvideConfig as A } from "../utils/config-provider-preset.mjs";
6
+ import { DEFAULT_NAMESPACE as D, DEFAULT_UIMODE as N } from "./constants.mjs";
7
+ function b(e) {
8
8
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
9
9
  }
10
- const n = C({}), S = /* @__PURE__ */ s({
10
+ const n = s({}), S = /* @__PURE__ */ C({
11
11
  name: "AplusConfigProvider",
12
- props: w(),
12
+ props: U(),
13
13
  setup(e, {
14
- slots: f
14
+ slots: m
15
15
  }) {
16
- const a = l("namespace"), d = l("uiMode"), m = i(() => e.namespace ? e.namespace : t(a) ? t(a) : N), u = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : b), g = i(() => ({
17
- namespace: t(m),
16
+ const a = l("namespace"), d = l("uiMode"), f = i(() => e.namespace ? e.namespace : t(a) ? t(a) : D), c = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : N), g = i(() => ({
17
+ namespace: t(f),
18
18
  aplusLocale: e.aplusLocale,
19
19
  api: e.api,
20
- uiMode: t(u),
20
+ uiMode: t(c),
21
21
  apUpload: e.apUpload,
22
22
  apDescriptions: e.apDescriptions,
23
23
  valueTypeMap: e.valueTypeMap,
24
24
  downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
25
25
  exportField: e.exportField,
26
26
  scrollYDomName: e.scrollYDomName,
27
- viewCacheOption: e.viewCacheOption
28
- })), r = U(g);
29
- return c(() => e, (o) => {
30
- n.value = A(D(o), n.value);
27
+ viewCacheOption: e.viewCacheOption,
28
+ searchForm: e.searchForm
29
+ })), r = h(g);
30
+ return u(() => e, (o) => {
31
+ n.value = w(A(o), n.value);
31
32
  }, {
32
33
  deep: !0,
33
34
  immediate: !0
34
- }), typeof window < "u" && c(() => t(u), (o) => {
35
+ }), typeof window < "u" && u(() => t(c), (o) => {
35
36
  document.documentElement.dataset.aplusUiMode = o;
36
37
  }, {
37
38
  immediate: !0
38
39
  }), () => {
39
40
  let o;
40
- return v(P, n.value, h(o = M(f, "default", {
41
+ return v(P, n.value, b(o = M(m, "default", {
41
42
  config: r == null ? void 0 : r.value
42
43
  })) ? o : {
43
44
  default: () => [o]
@@ -41,6 +41,9 @@ export type downloadCenterTriggerConfigParams = {
41
41
  export type downloadCenterTriggerConfig = {
42
42
  trigger: (fileList: downloadCenterTriggerConfigParams[]) => Promise<any>;
43
43
  };
44
+ export type SearchFormGlobalConfig = {
45
+ customFilled?: (node: VNode, value: any) => boolean;
46
+ };
44
47
  export type ExportField = boolean | {
45
48
  key?: string;
46
49
  convertField?: {
@@ -10,7 +10,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
10
10
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
11
11
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
12
  import { LocaleType } from '../../locale';
13
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
13
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
14
14
  import { ViewCacheOption } from '../..';
15
15
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
16
16
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -168,4 +168,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
168
168
  type: PropType<ViewCacheOption>;
169
169
  default: () => {};
170
170
  };
171
+ searchForm: {
172
+ type: PropType<SearchFormGlobalConfig>;
173
+ default: () => {};
174
+ };
171
175
  }>>>> | undefined;
@@ -8,7 +8,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
8
8
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
9
9
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { LocaleType } from '../locale';
11
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
11
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
12
12
  import { ViewCacheOption } from '..';
13
13
  export * from './config-provider-props';
14
14
  export * from './constants';
@@ -170,6 +170,10 @@ export declare const APConfigProvider: {
170
170
  type: PropType<ViewCacheOption>;
171
171
  default: () => {};
172
172
  };
173
+ searchForm: {
174
+ type: PropType<SearchFormGlobalConfig>;
175
+ default: () => {};
176
+ };
173
177
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
174
178
  input: {
175
179
  autocomplete?: string;
@@ -186,10 +190,7 @@ export declare const APConfigProvider: {
186
190
  size?: ButtonSize | number;
187
191
  };
188
192
  direction: "ltr" | "rtl";
189
- pagination: {
190
- showSizeChanger?: boolean;
191
- };
192
- apUpload: ApUploadConfig;
193
+ searchForm: SearchFormGlobalConfig;
193
194
  csp: CSPConfig;
194
195
  autoInsertSpaceInButton: boolean;
195
196
  locale: Locale;
@@ -199,11 +200,15 @@ export declare const APConfigProvider: {
199
200
  componentDisabled: boolean;
200
201
  virtual: boolean;
201
202
  dropdownMatchSelectWidth: number | boolean;
203
+ pagination: {
204
+ showSizeChanger?: boolean;
205
+ };
202
206
  theme: ThemeConfig;
203
207
  wave: {
204
208
  disabled?: boolean;
205
209
  };
206
210
  api: ApiType;
211
+ apUpload: ApUploadConfig;
207
212
  apDescriptions: ApDescriptionsConfig;
208
213
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
209
214
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -369,6 +374,10 @@ export declare const APConfigProvider: {
369
374
  type: PropType<ViewCacheOption>;
370
375
  default: () => {};
371
376
  };
377
+ searchForm: {
378
+ type: PropType<SearchFormGlobalConfig>;
379
+ default: () => {};
380
+ };
372
381
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
373
382
  input: {
374
383
  autocomplete?: string;
@@ -385,10 +394,7 @@ export declare const APConfigProvider: {
385
394
  size?: ButtonSize | number;
386
395
  };
387
396
  direction: "ltr" | "rtl";
388
- pagination: {
389
- showSizeChanger?: boolean;
390
- };
391
- apUpload: ApUploadConfig;
397
+ searchForm: SearchFormGlobalConfig;
392
398
  csp: CSPConfig;
393
399
  autoInsertSpaceInButton: boolean;
394
400
  locale: Locale;
@@ -398,11 +404,15 @@ export declare const APConfigProvider: {
398
404
  componentDisabled: boolean;
399
405
  virtual: boolean;
400
406
  dropdownMatchSelectWidth: number | boolean;
407
+ pagination: {
408
+ showSizeChanger?: boolean;
409
+ };
401
410
  theme: ThemeConfig;
402
411
  wave: {
403
412
  disabled?: boolean;
404
413
  };
405
414
  api: ApiType;
415
+ apUpload: ApUploadConfig;
406
416
  apDescriptions: ApDescriptionsConfig;
407
417
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
408
418
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -565,6 +575,10 @@ export declare const APConfigProvider: {
565
575
  type: PropType<ViewCacheOption>;
566
576
  default: () => {};
567
577
  };
578
+ searchForm: {
579
+ type: PropType<SearchFormGlobalConfig>;
580
+ default: () => {};
581
+ };
568
582
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
569
583
  input: {
570
584
  autocomplete?: string;
@@ -581,10 +595,7 @@ export declare const APConfigProvider: {
581
595
  size?: ButtonSize | number;
582
596
  };
583
597
  direction: "ltr" | "rtl";
584
- pagination: {
585
- showSizeChanger?: boolean;
586
- };
587
- apUpload: ApUploadConfig;
598
+ searchForm: SearchFormGlobalConfig;
588
599
  csp: CSPConfig;
589
600
  autoInsertSpaceInButton: boolean;
590
601
  locale: Locale;
@@ -594,11 +605,15 @@ export declare const APConfigProvider: {
594
605
  componentDisabled: boolean;
595
606
  virtual: boolean;
596
607
  dropdownMatchSelectWidth: number | boolean;
608
+ pagination: {
609
+ showSizeChanger?: boolean;
610
+ };
597
611
  theme: ThemeConfig;
598
612
  wave: {
599
613
  disabled?: boolean;
600
614
  };
601
615
  api: ApiType;
616
+ apUpload: ApUploadConfig;
602
617
  apDescriptions: ApDescriptionsConfig;
603
618
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
604
619
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -51,15 +51,15 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
51
51
  size?: ButtonSize | number;
52
52
  } | undefined;
53
53
  direction?: "ltr" | "rtl" | undefined;
54
- pagination?: {
55
- showSizeChanger?: boolean;
56
- } | undefined;
57
54
  csp?: CSPConfig | undefined;
58
55
  locale?: Locale | undefined;
59
56
  pageHeader?: {
60
57
  ghost?: boolean;
61
58
  } | undefined;
62
59
  dropdownMatchSelectWidth?: number | boolean | undefined;
60
+ pagination?: {
61
+ showSizeChanger?: boolean;
62
+ } | undefined;
63
63
  theme?: ThemeConfig | undefined;
64
64
  wave?: {
65
65
  disabled?: boolean;
@@ -92,15 +92,15 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
92
92
  size?: ButtonSize | number;
93
93
  } | undefined;
94
94
  direction?: "ltr" | "rtl" | undefined;
95
- pagination?: {
96
- showSizeChanger?: boolean;
97
- } | undefined;
98
95
  csp?: CSPConfig | undefined;
99
96
  locale?: Locale | undefined;
100
97
  pageHeader?: {
101
98
  ghost?: boolean;
102
99
  } | undefined;
103
100
  dropdownMatchSelectWidth?: number | boolean | undefined;
101
+ pagination?: {
102
+ showSizeChanger?: boolean;
103
+ } | undefined;
104
104
  theme?: ThemeConfig | undefined;
105
105
  wave?: {
106
106
  disabled?: boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: "6.11.0";
1
+ declare const _default: "6.12.0";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "6.11.0";
1
+ const e = "6.12.0";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -72,10 +72,10 @@ declare function __VLS_template(): {
72
72
  readonly autofocus?: boolean | undefined;
73
73
  readonly bordered?: boolean | undefined;
74
74
  readonly getPopupContainer?: RenderDOMFunc | undefined;
75
- readonly placeholder?: any;
76
- readonly defaultValue?: SelectValue;
77
75
  readonly virtual?: boolean | undefined;
78
76
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
77
+ readonly placeholder?: any;
78
+ readonly defaultValue?: SelectValue;
79
79
  readonly id?: string | undefined;
80
80
  readonly status?: "" | "error" | "warning" | undefined;
81
81
  readonly clearIcon?: any;
@@ -703,10 +703,10 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
703
703
  readonly autofocus?: boolean | undefined;
704
704
  readonly bordered?: boolean | undefined;
705
705
  readonly getPopupContainer?: RenderDOMFunc | undefined;
706
- readonly placeholder?: any;
707
- readonly defaultValue?: SelectValue;
708
706
  readonly virtual?: boolean | undefined;
709
707
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
708
+ readonly placeholder?: any;
709
+ readonly defaultValue?: SelectValue;
710
710
  readonly id?: string | undefined;
711
711
  readonly status?: "" | "error" | "warning" | undefined;
712
712
  readonly clearIcon?: any;
@@ -77,10 +77,10 @@ declare function __VLS_template(): {
77
77
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
78
78
  readonly bordered?: boolean | undefined;
79
79
  readonly getPopupContainer?: RenderDOMFunc | undefined;
80
- readonly placeholder?: any;
81
- readonly defaultValue?: unknown;
82
80
  readonly virtual?: boolean | undefined;
83
81
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
82
+ readonly placeholder?: any;
83
+ readonly defaultValue?: unknown;
84
84
  readonly id?: string | undefined;
85
85
  readonly status?: "" | "error" | "warning" | undefined;
86
86
  readonly clearIcon?: any;
@@ -851,10 +851,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
851
851
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
852
852
  readonly bordered?: boolean | undefined;
853
853
  readonly getPopupContainer?: RenderDOMFunc | undefined;
854
- readonly placeholder?: any;
855
- readonly defaultValue?: unknown;
856
854
  readonly virtual?: boolean | undefined;
857
855
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
856
+ readonly placeholder?: any;
857
+ readonly defaultValue?: unknown;
858
858
  readonly id?: string | undefined;
859
859
  readonly status?: "" | "error" | "warning" | undefined;
860
860
  readonly clearIcon?: any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("vue"),a=require("../../context.js"),s=require("lodash-unified");function p(t,e){return s.isArray(e)?e.reduce((n,r)=>n==null?void 0:n[r],t):t==null?void 0:t[e]}function i(t){if(t==null)return!1;if(typeof t=="string")return t.trim()!=="";if(s.isArray(t))return t.some(n=>i(n));if(s.isObject(t)){const e=Object.keys(t);if(e.length===0)return!1;for(const n of e)if(i(t[n]))return!0;return!1}return!0}const y=t=>{const{model:e}=a.useInjectForm();return{count:d.computed(()=>{let r=0;return t.value.forEach(o=>{const u=o.node.props.name,c=o.node.props.customFilled||o.node.props["custom-filled"]||i,l=[u].flat(1),f=p(e==null?void 0:e.value,l);c(f)&&(r+=1)}),r})}};exports.useCollapseInputCount=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("vue"),p=require("../../context.js"),c=require("lodash-unified");require("../../../config-provider/index.js");const g=require("../../../config-provider/hooks/use-global-config.js");function h(e,t){return c.isArray(t)?t.reduce((n,s)=>n==null?void 0:n[s],e):e==null?void 0:e[t]}function u(e){if(e==null)return!1;if(typeof e=="string")return e.trim()!=="";if(c.isArray(e))return e.some(n=>u(n));if(c.isObject(e)){const t=Object.keys(e);if(t.length===0)return!1;for(const n of t)if(u(e[n]))return!0;return!1}return!0}const C=e=>{const{model:t}=p.useInjectForm(),n=g.useGlobalConfig("searchForm");return{count:F.computed(()=>{let i=0;return e.value.forEach(r=>{var a;const d=[r.node.props.name].flat(1),l=h(t==null?void 0:t.value,d),f=r.node.props.customFilled||r.node.props["custom-filled"],o=(a=n.value)==null?void 0:a.customFilled;!f&&o?o!=null&&o(r.node,l)&&(i+=1):(f||u)(l)&&(i+=1)}),i})}};exports.useCollapseInputCount=C;
@@ -900,10 +900,10 @@ export declare const apTableFormItemMap: {
900
900
  readonly autofocus?: boolean | undefined;
901
901
  readonly bordered?: boolean | undefined;
902
902
  readonly getPopupContainer?: RenderDOMFunc | undefined;
903
- readonly placeholder?: any;
904
- readonly defaultValue?: SelectValue;
905
903
  readonly virtual?: boolean | undefined;
906
904
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
905
+ readonly placeholder?: any;
906
+ readonly defaultValue?: SelectValue;
907
907
  readonly id?: string | undefined;
908
908
  readonly status?: "" | "error" | "warning" | undefined;
909
909
  readonly clearIcon?: any;
@@ -2468,10 +2468,10 @@ export declare const apTableFormItemMap: {
2468
2468
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
2469
2469
  readonly bordered?: boolean | undefined;
2470
2470
  readonly getPopupContainer?: RenderDOMFunc | undefined;
2471
- readonly placeholder?: any;
2472
- readonly defaultValue?: unknown;
2473
2471
  readonly virtual?: boolean | undefined;
2474
2472
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
2473
+ readonly placeholder?: any;
2474
+ readonly defaultValue?: unknown;
2475
2475
  readonly id?: string | undefined;
2476
2476
  readonly status?: "" | "error" | "warning" | undefined;
2477
2477
  readonly clearIcon?: any;
@@ -1733,10 +1733,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
1733
1733
  readonly autofocus?: boolean | undefined;
1734
1734
  readonly bordered?: boolean | undefined;
1735
1735
  readonly getPopupContainer?: RenderDOMFunc | undefined;
1736
- readonly placeholder?: any;
1737
- readonly defaultValue?: SelectValue;
1738
1736
  readonly virtual?: boolean | undefined;
1739
1737
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
1738
+ readonly placeholder?: any;
1739
+ readonly defaultValue?: SelectValue;
1740
1740
  readonly id?: string | undefined;
1741
1741
  readonly status?: "" | "error" | "warning" | undefined;
1742
1742
  readonly clearIcon?: any;
@@ -2522,10 +2522,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
2522
2522
  readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
2523
2523
  readonly bordered?: boolean | undefined;
2524
2524
  readonly getPopupContainer?: RenderDOMFunc | undefined;
2525
- readonly placeholder?: any;
2526
- readonly defaultValue?: unknown;
2527
2525
  readonly virtual?: boolean | undefined;
2528
2526
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
2527
+ readonly placeholder?: any;
2528
+ readonly defaultValue?: unknown;
2529
2529
  readonly id?: string | undefined;
2530
2530
  readonly status?: "" | "error" | "warning" | undefined;
2531
2531
  readonly clearIcon?: any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const k=require("lodash-unified");require("../../config-provider/index.js");const x=require("../../config-provider/hooks/use-namespace.js"),y=require("../ap-title/ApTitle.vue2.js"),P={key:2},_={key:2},v=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(s){const t=s,i=e.useSlots(),{b:c}=x.useNamespace("ap-card"),f=e.computed(()=>k.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),d=e.computed(()=>{var l;return(l=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:l.length}),m=e.computed(()=>t.padding??"12px 16px");return(l,p)=>{var u,a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()]),style:e.normalizeStyle({padding:m.value})},[d.value||i!=null&&i.titlePrefix||i!=null&&i.titleSuffix?(e.openBlock(),e.createBlock(y.default,e.mergeProps({key:0,class:[`${e.unref(c)()}-title`]},{...f.value}),e.createSlots({_:2},[(u=t==null?void 0:t.titleProps)!=null&&u.suffix?{name:"suffix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titleSuffix?e.renderSlot(l.$slots,"titleSuffix",{key:0}):e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),{key:1})):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.suffix),1))]}),key:"0"}:void 0,(a=t==null?void 0:t.titleProps)!=null&&a.prefix?{name:"prefix",fn:e.withCtx(()=>{var n,o,r;return[i!=null&&i.titlePrefix?e.renderSlot(l.$slots,"titlePrefix",{key:0}):e.createCommentVNode("",!0),e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),{key:1})):(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString((r=t==null?void 0:t.titleProps)==null?void 0:r.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")],6)}}});exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const k=require("lodash-unified");require("../../config-provider/index.js");const x=require("../../config-provider/hooks/use-namespace.js"),P=require("../ap-title/ApTitle.vue2.js"),y={key:2},_={key:2},p=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(f){const t=f,i=e.useSlots(),{b:c}=x.useNamespace("ap-card"),d=e.computed(()=>k.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),s=e.computed(()=>{var r;return(r=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:r.length}),m=e.computed(()=>t.padding??"var(--ap-card-padding, 12px 16px)");return(r,v)=>{var a,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()]),style:e.normalizeStyle({padding:m.value})},[s.value||i!=null&&i.titlePrefix||i!=null&&i.titleSuffix?(e.openBlock(),e.createBlock(P.default,e.mergeProps({key:0,class:[`${e.unref(c)()}-title`]},{...d.value}),e.createSlots({_:2},[i!=null&&i.titleSuffix||(a=t==null?void 0:t.titleProps)!=null&&a.suffix?{name:"suffix",fn:e.withCtx(()=>{var n,l,o;return[i!=null&&i.titleSuffix?e.renderSlot(r.$slots,"titleSuffix",{key:0}):e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.suffix),{key:1})):(e.openBlock(),e.createElementBlock("div",y,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),1))]}),key:"0"}:void 0,i!=null&&i.titlePrefix||(u=t==null?void 0:t.titleProps)!=null&&u.prefix?{name:"prefix",fn:e.withCtx(()=>{var n,l,o;return[i!=null&&i.titlePrefix?e.renderSlot(r.$slots,"titlePrefix",{key:0}):e.createCommentVNode("",!0),e.isVNode((n=t==null?void 0:t.titleProps)==null?void 0:n.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.prefix),{key:1})):(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")],6)}}});exports.default=p;
@@ -2,7 +2,7 @@ import { ColumnsType } from '@aplus-frontend/antdv/es/table';
2
2
  import { AlignType, DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
3
3
  import { ApColumnType } from '../../ap-table';
4
4
  import { ApGridColumnType } from '../../ap-grid';
5
- export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType;
5
+ export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType | any[];
6
6
  export type ValueType = {
7
7
  [key in string]: any;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
3
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
4
4
  import { ViewCacheOption } from '../business';
5
5
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
6
6
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
@@ -166,5 +166,9 @@ export declare const configProviderProps: () => {
166
166
  type: PropType<ViewCacheOption>;
167
167
  default: () => {};
168
168
  };
169
+ searchForm: {
170
+ type: PropType<SearchFormGlobalConfig>;
171
+ default: () => {};
172
+ };
169
173
  };
170
174
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},exportField:{type:[Object,Boolean],default:!1},scrollYDomName:{type:String},viewCacheOption:{type:Object,default:()=>({})},...e.configProviderProps()});exports.configProviderProps=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},exportField:{type:[Object,Boolean],default:!1},scrollYDomName:{type:String},viewCacheOption:{type:Object,default:()=>({})},searchForm:{type:Object,default:()=>({})},...e.configProviderProps()});exports.configProviderProps=t;
@@ -9,7 +9,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
9
9
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
10
10
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
11
11
  import { LocaleType } from '../locale';
12
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
12
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
13
13
  import { ViewCacheOption } from '..';
14
14
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
15
15
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
@@ -165,6 +165,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
165
165
  type: PropType<ViewCacheOption>;
166
166
  default: () => {};
167
167
  };
168
+ searchForm: {
169
+ type: PropType<SearchFormGlobalConfig>;
170
+ default: () => {};
171
+ };
168
172
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
169
173
  iconPrefixCls: StringConstructor;
170
174
  getTargetContainer: {
@@ -318,6 +322,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
318
322
  type: PropType<ViewCacheOption>;
319
323
  default: () => {};
320
324
  };
325
+ searchForm: {
326
+ type: PropType<SearchFormGlobalConfig>;
327
+ default: () => {};
328
+ };
321
329
  }>> & Readonly<{}>, {
322
330
  input: {
323
331
  autocomplete?: string;
@@ -334,10 +342,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
334
342
  size?: ButtonSize | number;
335
343
  };
336
344
  direction: "ltr" | "rtl";
337
- pagination: {
338
- showSizeChanger?: boolean;
339
- };
340
- apUpload: ApUploadConfig;
345
+ searchForm: SearchFormGlobalConfig;
341
346
  csp: CSPConfig;
342
347
  autoInsertSpaceInButton: boolean;
343
348
  locale: Locale;
@@ -347,11 +352,15 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
347
352
  componentDisabled: boolean;
348
353
  virtual: boolean;
349
354
  dropdownMatchSelectWidth: number | boolean;
355
+ pagination: {
356
+ showSizeChanger?: boolean;
357
+ };
350
358
  theme: ThemeConfig;
351
359
  wave: {
352
360
  disabled?: boolean;
353
361
  };
354
362
  api: ApiType;
363
+ apUpload: ApUploadConfig;
355
364
  apDescriptions: ApDescriptionsConfig;
356
365
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
357
366
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),m=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),C=require("./config-provider-props.js"),d=require("../utils/config-provider-preset.js"),l=require("./constants.js");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const t=o.ref({}),p=o.defineComponent({name:"AplusConfigProvider",props:C.configProviderProps(),setup(e,{slots:f}){const a=i.useGlobalConfig("namespace"),u=i.useGlobalConfig("uiMode"),s=o.computed(()=>e.namespace?e.namespace:o.unref(a)?o.unref(a):l.DEFAULT_NAMESPACE),c=o.computed(()=>e.uiMode?e.uiMode:o.unref(u)?o.unref(u):l.DEFAULT_UIMODE),g=o.computed(()=>({namespace:o.unref(s),aplusLocale:e.aplusLocale,api:e.api,uiMode:o.unref(c),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName,viewCacheOption:e.viewCacheOption})),r=i.provideGlobalConfig(g);return o.watch(()=>e,n=>{t.value=d.mergeAntdProviderConfigWithCache(d.mergeAntdProvideConfig(n),t.value)},{deep:!0,immediate:!0}),typeof window<"u"&&o.watch(()=>o.unref(c),n=>{document.documentElement.dataset.aplusUiMode=n},{immediate:!0}),()=>{let n;return o.createVNode(m.ConfigProvider,t.value,v(n=o.renderSlot(f,"default",{config:r==null?void 0:r.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=p;exports.globalConfigCached=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),m=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),C=require("./config-provider-props.js"),d=require("../utils/config-provider-preset.js"),l=require("./constants.js");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const r=o.ref({}),p=o.defineComponent({name:"AplusConfigProvider",props:C.configProviderProps(),setup(e,{slots:f}){const a=i.useGlobalConfig("namespace"),u=i.useGlobalConfig("uiMode"),s=o.computed(()=>e.namespace?e.namespace:o.unref(a)?o.unref(a):l.DEFAULT_NAMESPACE),c=o.computed(()=>e.uiMode?e.uiMode:o.unref(u)?o.unref(u):l.DEFAULT_UIMODE),g=o.computed(()=>({namespace:o.unref(s),aplusLocale:e.aplusLocale,api:e.api,uiMode:o.unref(c),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName,viewCacheOption:e.viewCacheOption,searchForm:e.searchForm})),t=i.provideGlobalConfig(g);return o.watch(()=>e,n=>{r.value=d.mergeAntdProviderConfigWithCache(d.mergeAntdProvideConfig(n),r.value)},{deep:!0,immediate:!0}),typeof window<"u"&&o.watch(()=>o.unref(c),n=>{document.documentElement.dataset.aplusUiMode=n},{immediate:!0}),()=>{let n;return o.createVNode(m.ConfigProvider,r.value,v(n=o.renderSlot(f,"default",{config:t==null?void 0:t.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=p;exports.globalConfigCached=r;
@@ -41,6 +41,9 @@ export type downloadCenterTriggerConfigParams = {
41
41
  export type downloadCenterTriggerConfig = {
42
42
  trigger: (fileList: downloadCenterTriggerConfigParams[]) => Promise<any>;
43
43
  };
44
+ export type SearchFormGlobalConfig = {
45
+ customFilled?: (node: VNode, value: any) => boolean;
46
+ };
44
47
  export type ExportField = boolean | {
45
48
  key?: string;
46
49
  convertField?: {
@@ -10,7 +10,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
10
10
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
11
11
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
12
  import { LocaleType } from '../../locale';
13
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
13
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
14
14
  import { ViewCacheOption } from '../..';
15
15
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
16
16
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -168,4 +168,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
168
168
  type: PropType<ViewCacheOption>;
169
169
  default: () => {};
170
170
  };
171
+ searchForm: {
172
+ type: PropType<SearchFormGlobalConfig>;
173
+ default: () => {};
174
+ };
171
175
  }>>>> | undefined;
@@ -8,7 +8,7 @@ import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
8
8
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
9
9
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { LocaleType } from '../locale';
11
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
11
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
12
12
  import { ViewCacheOption } from '..';
13
13
  export * from './config-provider-props';
14
14
  export * from './constants';
@@ -170,6 +170,10 @@ export declare const APConfigProvider: {
170
170
  type: PropType<ViewCacheOption>;
171
171
  default: () => {};
172
172
  };
173
+ searchForm: {
174
+ type: PropType<SearchFormGlobalConfig>;
175
+ default: () => {};
176
+ };
173
177
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
174
178
  input: {
175
179
  autocomplete?: string;
@@ -186,10 +190,7 @@ export declare const APConfigProvider: {
186
190
  size?: ButtonSize | number;
187
191
  };
188
192
  direction: "ltr" | "rtl";
189
- pagination: {
190
- showSizeChanger?: boolean;
191
- };
192
- apUpload: ApUploadConfig;
193
+ searchForm: SearchFormGlobalConfig;
193
194
  csp: CSPConfig;
194
195
  autoInsertSpaceInButton: boolean;
195
196
  locale: Locale;
@@ -199,11 +200,15 @@ export declare const APConfigProvider: {
199
200
  componentDisabled: boolean;
200
201
  virtual: boolean;
201
202
  dropdownMatchSelectWidth: number | boolean;
203
+ pagination: {
204
+ showSizeChanger?: boolean;
205
+ };
202
206
  theme: ThemeConfig;
203
207
  wave: {
204
208
  disabled?: boolean;
205
209
  };
206
210
  api: ApiType;
211
+ apUpload: ApUploadConfig;
207
212
  apDescriptions: ApDescriptionsConfig;
208
213
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
209
214
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -369,6 +374,10 @@ export declare const APConfigProvider: {
369
374
  type: PropType<ViewCacheOption>;
370
375
  default: () => {};
371
376
  };
377
+ searchForm: {
378
+ type: PropType<SearchFormGlobalConfig>;
379
+ default: () => {};
380
+ };
372
381
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
373
382
  input: {
374
383
  autocomplete?: string;
@@ -385,10 +394,7 @@ export declare const APConfigProvider: {
385
394
  size?: ButtonSize | number;
386
395
  };
387
396
  direction: "ltr" | "rtl";
388
- pagination: {
389
- showSizeChanger?: boolean;
390
- };
391
- apUpload: ApUploadConfig;
397
+ searchForm: SearchFormGlobalConfig;
392
398
  csp: CSPConfig;
393
399
  autoInsertSpaceInButton: boolean;
394
400
  locale: Locale;
@@ -398,11 +404,15 @@ export declare const APConfigProvider: {
398
404
  componentDisabled: boolean;
399
405
  virtual: boolean;
400
406
  dropdownMatchSelectWidth: number | boolean;
407
+ pagination: {
408
+ showSizeChanger?: boolean;
409
+ };
401
410
  theme: ThemeConfig;
402
411
  wave: {
403
412
  disabled?: boolean;
404
413
  };
405
414
  api: ApiType;
415
+ apUpload: ApUploadConfig;
406
416
  apDescriptions: ApDescriptionsConfig;
407
417
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
408
418
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -565,6 +575,10 @@ export declare const APConfigProvider: {
565
575
  type: PropType<ViewCacheOption>;
566
576
  default: () => {};
567
577
  };
578
+ searchForm: {
579
+ type: PropType<SearchFormGlobalConfig>;
580
+ default: () => {};
581
+ };
568
582
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
569
583
  input: {
570
584
  autocomplete?: string;
@@ -581,10 +595,7 @@ export declare const APConfigProvider: {
581
595
  size?: ButtonSize | number;
582
596
  };
583
597
  direction: "ltr" | "rtl";
584
- pagination: {
585
- showSizeChanger?: boolean;
586
- };
587
- apUpload: ApUploadConfig;
598
+ searchForm: SearchFormGlobalConfig;
588
599
  csp: CSPConfig;
589
600
  autoInsertSpaceInButton: boolean;
590
601
  locale: Locale;
@@ -594,11 +605,15 @@ export declare const APConfigProvider: {
594
605
  componentDisabled: boolean;
595
606
  virtual: boolean;
596
607
  dropdownMatchSelectWidth: number | boolean;
608
+ pagination: {
609
+ showSizeChanger?: boolean;
610
+ };
597
611
  theme: ThemeConfig;
598
612
  wave: {
599
613
  disabled?: boolean;
600
614
  };
601
615
  api: ApiType;
616
+ apUpload: ApUploadConfig;
602
617
  apDescriptions: ApDescriptionsConfig;
603
618
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
604
619
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
@@ -51,15 +51,15 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
51
51
  size?: ButtonSize | number;
52
52
  } | undefined;
53
53
  direction?: "ltr" | "rtl" | undefined;
54
- pagination?: {
55
- showSizeChanger?: boolean;
56
- } | undefined;
57
54
  csp?: CSPConfig | undefined;
58
55
  locale?: Locale | undefined;
59
56
  pageHeader?: {
60
57
  ghost?: boolean;
61
58
  } | undefined;
62
59
  dropdownMatchSelectWidth?: number | boolean | undefined;
60
+ pagination?: {
61
+ showSizeChanger?: boolean;
62
+ } | undefined;
63
63
  theme?: ThemeConfig | undefined;
64
64
  wave?: {
65
65
  disabled?: boolean;
@@ -92,15 +92,15 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
92
92
  size?: ButtonSize | number;
93
93
  } | undefined;
94
94
  direction?: "ltr" | "rtl" | undefined;
95
- pagination?: {
96
- showSizeChanger?: boolean;
97
- } | undefined;
98
95
  csp?: CSPConfig | undefined;
99
96
  locale?: Locale | undefined;
100
97
  pageHeader?: {
101
98
  ghost?: boolean;
102
99
  } | undefined;
103
100
  dropdownMatchSelectWidth?: number | boolean | undefined;
101
+ pagination?: {
102
+ showSizeChanger?: boolean;
103
+ } | undefined;
104
104
  theme?: ThemeConfig | undefined;
105
105
  wave?: {
106
106
  disabled?: boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: "6.11.0";
1
+ declare const _default: "6.12.0";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.11.0";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.12.0";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "6.11.0",
3
+ "version": "6.12.0",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -61,8 +61,8 @@
61
61
  "scroll-into-view-if-needed": "^3.1.0",
62
62
  "vue-virtual-scroller": "2.0.0-beta.8",
63
63
  "vuedraggable": "^4.1.0",
64
- "@aplus-frontend/hooks": "1.0.7",
65
- "@aplus-frontend/utils": "1.0.61"
64
+ "@aplus-frontend/utils": "1.0.61",
65
+ "@aplus-frontend/hooks": "1.0.7"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@aplus-frontend/antdv": "^1.1.12",