@aplus-frontend/ui 7.17.3 → 7.18.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 (103) hide show
  1. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +1 -1
  2. package/es/src/ag-grid/index.vue.mjs +183 -180
  3. package/es/src/ap-field/cascader/index.vue.mjs +9 -8
  4. package/es/src/ap-field/cascader/read.vue2.mjs +3 -2
  5. package/es/src/ap-field/checkbox/index.vue.mjs +12 -11
  6. package/es/src/ap-field/checkbox/read.vue2.mjs +5 -4
  7. package/es/src/ap-field/date/index.vue.mjs +83 -73
  8. package/es/src/ap-field/date/read.vue2.mjs +1 -0
  9. package/es/src/ap-field/date-range/index.vue.mjs +80 -70
  10. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  11. package/es/src/ap-field/hooks/use-read-mode-render.d.ts +9 -0
  12. package/es/src/ap-field/hooks/use-read-mode-render.mjs +6 -0
  13. package/es/src/ap-field/interface.d.ts +8 -0
  14. package/es/src/ap-field/number/index.vue.mjs +57 -46
  15. package/es/src/ap-field/number/read.vue2.mjs +1 -0
  16. package/es/src/ap-field/radio/index.vue.mjs +17 -16
  17. package/es/src/ap-field/radio/read.vue2.mjs +1 -0
  18. package/es/src/ap-field/rate/index.vue.mjs +6 -5
  19. package/es/src/ap-field/second/index.vue.mjs +35 -20
  20. package/es/src/ap-field/second/read.vue2.mjs +1 -0
  21. package/es/src/ap-field/segmented/index.vue.mjs +15 -14
  22. package/es/src/ap-field/select/index.vue.mjs +53 -52
  23. package/es/src/ap-field/select/read.vue2.mjs +1 -0
  24. package/es/src/ap-field/slider/index.vue.mjs +11 -10
  25. package/es/src/ap-field/switch/index.vue.mjs +20 -19
  26. package/es/src/ap-field/switch/read.vue2.mjs +5 -4
  27. package/es/src/ap-field/text/index.vue2.mjs +35 -31
  28. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  29. package/es/src/ap-field/text/password.vue.mjs +57 -48
  30. package/es/src/ap-field/text/read-password.vue2.mjs +6 -5
  31. package/es/src/ap-field/text/read.vue2.mjs +3 -2
  32. package/es/src/ap-field/text-area/index.vue.mjs +46 -36
  33. package/es/src/ap-field/text-area/read.vue2.mjs +1 -0
  34. package/es/src/ap-field/tree-select/index.vue.mjs +9 -8
  35. package/es/src/ap-field/tree-select/read.vue2.mjs +1 -0
  36. package/es/src/ap-form/items/cascader/index.vue.d.ts +3 -1
  37. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -1
  38. package/es/src/ap-form/items/date/index.vue.d.ts +3 -1
  39. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -1
  40. package/es/src/ap-form/items/number/index.vue.d.ts +3 -1
  41. package/es/src/ap-form/items/select/index.vue.d.ts +3 -1
  42. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -1
  43. package/es/src/ap-form/items/text/index.vue.d.ts +3 -1
  44. package/es/src/ap-form/items/text/password.vue.d.ts +3 -1
  45. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -1
  46. package/es/src/ap-table/constants.d.ts +11 -1
  47. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +109 -98
  48. package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
  49. package/es/src/business/batch-input-group/index.vue.mjs +11 -10
  50. package/es/src/version.d.ts +1 -1
  51. package/es/src/version.mjs +1 -1
  52. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  53. package/lib/src/ag-grid/index.vue.js +1 -1
  54. package/lib/src/ap-field/cascader/index.vue.js +1 -1
  55. package/lib/src/ap-field/cascader/read.vue2.js +1 -1
  56. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  57. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  58. package/lib/src/ap-field/date/index.vue.js +1 -1
  59. package/lib/src/ap-field/date/read.vue2.js +1 -1
  60. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  61. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  62. package/lib/src/ap-field/hooks/use-read-mode-render.d.ts +9 -0
  63. package/lib/src/ap-field/hooks/use-read-mode-render.js +1 -0
  64. package/lib/src/ap-field/interface.d.ts +8 -0
  65. package/lib/src/ap-field/number/index.vue.js +1 -1
  66. package/lib/src/ap-field/number/read.vue2.js +1 -1
  67. package/lib/src/ap-field/radio/index.vue.js +1 -1
  68. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  69. package/lib/src/ap-field/rate/index.vue.js +1 -1
  70. package/lib/src/ap-field/second/index.vue.js +1 -1
  71. package/lib/src/ap-field/second/read.vue2.js +1 -1
  72. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  73. package/lib/src/ap-field/select/index.vue.js +1 -1
  74. package/lib/src/ap-field/select/read.vue2.js +1 -1
  75. package/lib/src/ap-field/slider/index.vue.js +1 -1
  76. package/lib/src/ap-field/switch/index.vue.js +1 -1
  77. package/lib/src/ap-field/switch/read.vue2.js +1 -1
  78. package/lib/src/ap-field/text/index.vue2.js +1 -1
  79. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  80. package/lib/src/ap-field/text/password.vue.js +1 -1
  81. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  82. package/lib/src/ap-field/text/read.vue2.js +1 -1
  83. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  84. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  85. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  86. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  87. package/lib/src/ap-form/items/cascader/index.vue.d.ts +3 -1
  88. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -1
  89. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -1
  90. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -1
  91. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -1
  92. package/lib/src/ap-form/items/select/index.vue.d.ts +3 -1
  93. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -1
  94. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -1
  95. package/lib/src/ap-form/items/text/password.vue.d.ts +3 -1
  96. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -1
  97. package/lib/src/ap-table/constants.d.ts +11 -1
  98. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  99. package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
  100. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  101. package/lib/src/version.d.ts +1 -1
  102. package/lib/src/version.js +1 -1
  103. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { LegacyDataNode, FieldNames, Key } from '@aplus-frontend/antdv/es/vc-tree-select/interface';
2
2
  import { ApFormItemSlots } from '../../interface';
3
3
  import { ApFormItemTreeSelectProps } from '../interface';
4
- import { ComponentInternalInstance, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
4
+ import { ComponentInternalInstance, VNode, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
5
5
  import { FieldMode, ApFieldTreeSelectProps } from '../../../ap-field';
6
6
  import { ChangeEventExtra, FieldNames, DefaultOptionType, BaseOptionType, SimpleModeConfig, LegacyDataNode } from '@aplus-frontend/antdv/es/vc-tree-select/TreeSelect';
7
7
  import { SelectHandler } from '@aplus-frontend/antdv/es/vc-select/Select';
@@ -52,6 +52,7 @@ declare function __VLS_template(): {
52
52
  readonly class?: unknown;
53
53
  readonly style?: unknown;
54
54
  readonly emptyText?: string | undefined;
55
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
55
56
  readonly size?: "small" | "large" | "middle" | undefined;
56
57
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
57
58
  readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
@@ -856,6 +857,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
856
857
  readonly class?: unknown;
857
858
  readonly style?: unknown;
858
859
  readonly emptyText?: string | undefined;
860
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
859
861
  readonly size?: "small" | "large" | "middle" | undefined;
860
862
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
861
863
  readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
@@ -1,5 +1,5 @@
1
1
  import { ApTableValueFields } from './interface';
2
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, VNode, RendererNode, RendererElement, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
2
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNode, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, RendererNode, RendererElement, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
3
3
  import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps, ApFormItemCascaderProps } from '../ap-form/items/interface';
4
4
  import { ApFieldDateProps, FieldMode, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldSwitchConfirmConfig, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps, ApFieldCascaderProps } from '../ap-field';
5
5
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
@@ -67,6 +67,7 @@ export declare const apTableFormItemMap: {
67
67
  readonly class?: unknown;
68
68
  readonly style?: unknown;
69
69
  readonly emptyText?: string | undefined;
70
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
70
71
  readonly size?: ButtonSize;
71
72
  readonly onBlur?: FocusEventHandler | undefined;
72
73
  readonly onClick?: MouseEventHandler | undefined;
@@ -876,6 +877,7 @@ export declare const apTableFormItemMap: {
876
877
  readonly class?: unknown;
877
878
  readonly style?: unknown;
878
879
  readonly emptyText?: string | undefined;
880
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
879
881
  readonly size?: ButtonSize;
880
882
  readonly onBlur?: FocusEventHandler | undefined;
881
883
  readonly onClick?: MouseEventHandler | undefined;
@@ -1738,6 +1740,7 @@ export declare const apTableFormItemMap: {
1738
1740
  readonly class?: unknown;
1739
1741
  readonly style?: unknown;
1740
1742
  readonly emptyText?: string | undefined;
1743
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
1741
1744
  readonly size?: "small" | "large" | "middle" | undefined;
1742
1745
  readonly type?: string | undefined;
1743
1746
  readonly step?: ValueType | undefined;
@@ -2494,6 +2497,7 @@ export declare const apTableFormItemMap: {
2494
2497
  readonly class?: unknown;
2495
2498
  readonly style?: unknown;
2496
2499
  readonly emptyText?: string | undefined;
2500
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
2497
2501
  readonly size?: "small" | "large" | "middle" | undefined;
2498
2502
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
2499
2503
  readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
@@ -3220,6 +3224,7 @@ export declare const apTableFormItemMap: {
3220
3224
  readonly class?: unknown;
3221
3225
  readonly style?: unknown;
3222
3226
  readonly emptyText?: string | undefined;
3227
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
3223
3228
  readonly size?: "small" | "default" | undefined;
3224
3229
  readonly onBlur?: FocusEventHandler | undefined;
3225
3230
  readonly onChange?: ((checked: string | number | boolean, e: Event) => void) | undefined;
@@ -3493,6 +3498,7 @@ export declare const apTableFormItemMap: {
3493
3498
  readonly class?: unknown;
3494
3499
  readonly style?: unknown;
3495
3500
  readonly emptyText?: string | undefined;
3501
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
3496
3502
  readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "url" | "email" | "datetime-local" | "file" | "password" | "tel" | undefined;
3497
3503
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
3498
3504
  readonly lazy?: boolean | undefined;
@@ -4308,6 +4314,7 @@ export declare const apTableFormItemMap: {
4308
4314
  readonly class?: unknown;
4309
4315
  readonly style?: unknown;
4310
4316
  readonly emptyText?: string | undefined;
4317
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
4311
4318
  readonly onChange?: ((checkedValue: Array< CheckboxValueType>) => void) | undefined;
4312
4319
  readonly value?: CheckboxValueType[] | undefined;
4313
4320
  readonly disabled?: boolean | undefined;
@@ -4446,6 +4453,7 @@ export declare const apTableFormItemMap: {
4446
4453
  readonly class?: unknown;
4447
4454
  readonly style?: unknown;
4448
4455
  readonly emptyText?: string | undefined;
4456
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
4449
4457
  readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "url" | "email" | "datetime-local" | "file" | "password" | "tel" | undefined;
4450
4458
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
4451
4459
  readonly lazy?: boolean | undefined;
@@ -4928,6 +4936,7 @@ export declare const apTableFormItemMap: {
4928
4936
  readonly class?: unknown;
4929
4937
  readonly style?: unknown;
4930
4938
  readonly emptyText?: string | undefined;
4939
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
4931
4940
  readonly size?: "small" | "large" | "middle" | undefined;
4932
4941
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
4933
4942
  readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
@@ -5791,6 +5800,7 @@ export declare const apTableFormItemMap: {
5791
5800
  readonly class?: unknown;
5792
5801
  readonly style?: unknown;
5793
5802
  readonly emptyText?: string | undefined;
5803
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
5794
5804
  readonly size?: ButtonSize;
5795
5805
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
5796
5806
  readonly onChange?: ((value: ValueType, selectOptions: DefaultOptionType[] | DefaultOptionType[][]) => void) | undefined;
@@ -1,171 +1,171 @@
1
- import { ref as me, reactive as B, unref as g, nextTick as Se, onMounted as ze, watch as Pe, computed as y, createVNode as x } from "vue";
2
- import { cloneDeep as Te, isArray as J, isEqualWith as be, isUndefined as Ce } from "lodash-unified";
1
+ import { ref as me, reactive as J, unref as d, nextTick as Se, onMounted as ze, watch as Pe, computed as y, createVNode as x } from "vue";
2
+ import { cloneDeep as Te, isArray as K, isEqualWith as Ce, isUndefined as be } from "lodash-unified";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "../../utils/index.mjs";
5
5
  import { parseFieldValue as xe, dataIndexToStr as Fe, isEqualCustom as we } from "../utils.mjs";
6
6
  import { useTableSortedAndFiltered as De } from "./use-sorted-filtered.mjs";
7
7
  import { useLocale as Ee } from "../../config-provider/hooks/use-locale.mjs";
8
8
  import { useNamespace as ve } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { isDef as K } from "../../utils/is.mjs";
10
- const d = 1, R = 20, Q = {
11
- defaultCurrent: d,
12
- defaultPageSize: R,
9
+ import { isDef as Q } from "../../utils/is.mjs";
10
+ const p = 1, M = 20, W = {
11
+ defaultCurrent: p,
12
+ defaultPageSize: M,
13
13
  showLessItems: !1,
14
14
  showTotal: !0
15
15
  };
16
16
  function Ae(i) {
17
- return i === !1 ? {} : i == null || i === !0 ? Q : {
18
- ...Q,
17
+ return i === !1 ? {} : i == null || i === !0 ? W : {
18
+ ...W,
19
19
  ...i
20
20
  };
21
21
  }
22
22
  function Le(i) {
23
23
  const f = {};
24
- return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize = R) : (f.current = i.defaultCurrent || d, f.pageSize = i.defaultPageSize || R)), f;
24
+ return i === !1 || (i === !0 || i == null ? (f.current = p, f.pageSize = M) : (f.current = i.defaultCurrent || p, f.pageSize = i.defaultPageSize || M)), f;
25
25
  }
26
26
  const qe = ({
27
27
  manual: i = !1,
28
28
  request: f,
29
- params: I = {},
30
- defaultData: M = [],
29
+ params: R = {},
30
+ defaultData: I = [],
31
31
  formatParams: N,
32
32
  paramsValueTypeMap: O,
33
33
  resetFieldsIgnores: V,
34
- filterFields: W,
35
- sortFields: $,
36
- namespace: G = "ap-table",
37
- pagination: p,
38
- onClickReset: Z,
39
- onAfterRequest: H,
34
+ filterFields: $,
35
+ sortFields: G,
36
+ namespace: Z = "ap-table",
37
+ pagination: g,
38
+ onClickReset: H,
39
+ onAfterRequest: X,
40
40
  defaultSortOrder: h
41
41
  }) => {
42
- let F = 0, s = {};
43
- const X = Ae(p), Y = (e) => N ? N(e) : e, m = me(), c = B(Le(p)), {
44
- getColumnSFConfig: ee,
45
- setSF: te,
46
- clearAll: ne,
42
+ let F = 0, c = {};
43
+ const Y = Ae(g), ee = (e) => N ? N(e) : e, m = me(), o = J(Le(g)), {
44
+ getColumnSFConfig: te,
45
+ setSF: ne,
46
+ clearAll: re,
47
47
  sortedInfo: j,
48
48
  filteredInfo: U
49
49
  } = De(h), {
50
50
  t: S
51
51
  } = Ee(), {
52
52
  b: z
53
- } = ve(G), a = B({
54
- total: M.length,
55
- records: M,
53
+ } = ve(Z), a = J({
54
+ total: I.length,
55
+ records: I,
56
56
  loading: !1
57
57
  }), P = () => m.value?.apForm?.getFieldsValueTransformed(!0) || {}, w = async (e, t) => {
58
- const n = Y(e), r = Date.now(), o = t?.cache;
58
+ const n = ee(e), r = Date.now(), s = t?.cache;
59
59
  F = r, a.loading = !0;
60
60
  try {
61
61
  const u = await f({
62
- ...g(I),
62
+ ...d(R),
63
63
  ...n
64
64
  });
65
65
  if (F === r) {
66
- a.total = u.total || u.data?.length || 0, o ? a.records.push(...u.data || []) : a.records = [...u.data || []];
67
- const C = a.records.length < a.total;
68
- t?.onSuccess?.(e, C), a.loading = !1;
66
+ a.total = u.total || u.data?.length || 0, s ? a.records.push(...u.data || []) : a.records = [...u.data || []];
67
+ const b = a.records.length < a.total;
68
+ t?.onSuccess?.(e, b), a.loading = !1;
69
69
  }
70
70
  } catch {
71
- F === r && !o && (a.records = [], a.total = 0), a.loading = !1;
71
+ F === r && !s && (a.records = [], a.total = 0), a.loading = !1;
72
72
  } finally {
73
- H?.(a.records);
73
+ X?.(a.records);
74
74
  }
75
75
  }, D = (e) => {
76
76
  const t = {};
77
77
  return Object.entries(e).forEach(([n, r]) => {
78
78
  if (t[n] = r, O && r) {
79
- const o = O[n];
80
- o && (t[n] = xe(o, r));
79
+ const s = O[n];
80
+ s && (t[n] = xe(s, r));
81
81
  }
82
82
  }), t;
83
- }, re = async (e) => {
83
+ }, ae = async (e) => {
84
84
  const t = P(), n = {};
85
- Object.entries(t).forEach(([r, o]) => {
86
- V && V.indexOf(r) > -1 && (n[r] = o);
85
+ Object.entries(t).forEach(([r, s]) => {
86
+ V && V.indexOf(r) > -1 && (n[r] = s);
87
87
  }), await m.value?.apForm?.resetFields(), m.value?.apForm?.setFieldsValue?.(n), Se(() => {
88
88
  e?.();
89
89
  });
90
90
  }, T = (e) => {
91
- s = e;
91
+ c = e;
92
92
  const t = D(e);
93
93
  w(t);
94
- }, ae = (e) => {
94
+ }, oe = (e) => {
95
95
  T({
96
- ...s,
96
+ ...c,
97
97
  ...e
98
98
  });
99
99
  };
100
- let b, E = !0;
100
+ let C, E = !0;
101
101
  function q() {
102
- b = void 0, E = !0;
102
+ C = void 0, E = !0;
103
103
  }
104
- const oe = () => {
104
+ const se = () => {
105
105
  if (!E)
106
106
  return;
107
- const e = b ? b + 1 : 2, t = {
108
- ...s,
107
+ const e = C ? C + 1 : 2, t = {
108
+ ...c,
109
109
  current: e
110
110
  };
111
- s = t;
111
+ c = t;
112
112
  const n = D(t);
113
113
  w(n, {
114
114
  cache: !0,
115
- onSuccess(r, o) {
116
- b = r.current, E = o;
115
+ onSuccess(r, s) {
116
+ C = r.current, E = s;
117
117
  }
118
118
  });
119
- }, se = () => Te(s), v = () => {
119
+ }, ce = () => Te(c), v = () => {
120
120
  _(!0), q();
121
121
  }, _ = (e = !1) => {
122
- const t = P(), n = p !== !1;
123
- n && e && (c.current = d), T({
122
+ const t = P(), n = g !== !1;
123
+ n && e && (o.current = p), T({
124
124
  ...t,
125
- filter: s.filter,
126
- sort: s.sort,
127
- current: n ? e ? d : s.current || c.current : void 0,
128
- pageSize: n ? s.pageSize || c.pageSize : void 0
125
+ filter: c.filter,
126
+ sort: c.sort,
127
+ current: n ? e ? p : c.current || o.current : void 0,
128
+ pageSize: n ? c.pageSize || o.pageSize : void 0
129
129
  });
130
- }, ce = () => {
131
- ne(), s.sort = {}, s.filter = {}, Z?.(), re(v), q();
130
+ }, ie = () => {
131
+ re(), c.sort = {}, c.filter = {}, H?.(), ae(v), q();
132
132
  }, A = () => {
133
- T(s);
134
- }, ie = (e) => {
135
- if (p === !1)
133
+ T(c);
134
+ }, ue = (e) => {
135
+ if (g === !1)
136
136
  A();
137
137
  else {
138
138
  const {
139
139
  current: t,
140
140
  pageSize: n
141
- } = c, r = a.total - e, o = Math.ceil(r / n), u = t > o ? o : t;
142
- ae({
141
+ } = o, r = a.total - e, s = Math.ceil(r / n), u = t > s ? s : t;
142
+ oe({
143
143
  current: u > 0 ? u : 1
144
144
  });
145
145
  }
146
146
  }, L = (e, t, n) => {
147
147
  const r = P();
148
- c.current = e.current, c.pageSize = e.pageSize, te(t, n);
149
- const o = J(n) ? [...n] : [n], u = {};
150
- for (const l of o)
151
- g($)?.includes(l.columnKey || l.field) && l.order && (u[Fe(l.columnKey || l.field)] = l.order);
152
- const C = {};
148
+ o.current = e.current, o.pageSize = e.pageSize, ne(t, n);
149
+ const s = K(n) ? [...n] : [n], u = {};
150
+ for (const l of s)
151
+ d(G)?.includes(l.columnKey || l.field) && l.order && (u[Fe(l.columnKey || l.field)] = l.order);
152
+ const b = {};
153
153
  for (const l of Object.keys(t))
154
- g(W)?.includes(l) && t[l] && (C[l] = t[l]);
155
- const k = {
154
+ d($)?.includes(l) && t[l] && (b[l] = t[l]);
155
+ const B = {
156
156
  ...r,
157
- filter: C,
157
+ filter: b,
158
158
  sort: u,
159
159
  current: e.current,
160
160
  pageSize: e.pageSize
161
161
  };
162
- be(s, k, we) || T(k);
163
- }, ue = (e, t = U.value || {}, n = j.value || {}) => {
164
- const r = e?.current ?? c.current, o = e?.pageSize ?? c.pageSize;
162
+ Ce(c, B, we) || T(B);
163
+ }, k = (e, t = U.value || {}, n = j.value || {}) => {
164
+ const r = e?.current ?? o.current, s = e?.pageSize ?? o.pageSize;
165
165
  L(
166
166
  {
167
167
  current: r,
168
- pageSize: o
168
+ pageSize: s
169
169
  },
170
170
  t,
171
171
  n,
@@ -185,18 +185,18 @@ const qe = ({
185
185
  const e = P(), {
186
186
  current: t,
187
187
  pageSize: n
188
- } = c;
189
- if (s = {
188
+ } = o;
189
+ if (c = {
190
190
  current: t,
191
191
  pageSize: n,
192
192
  filter: {},
193
193
  sort: le(),
194
194
  ...e
195
195
  }, !i) {
196
- const r = D(s);
196
+ const r = D(c);
197
197
  w(r);
198
198
  }
199
- }), Pe(() => g(I), () => {
199
+ }), Pe(() => d(R), () => {
200
200
  v();
201
201
  }, {
202
202
  deep: !0
@@ -207,11 +207,22 @@ const qe = ({
207
207
  const {
208
208
  current: e,
209
209
  pageSize: t
210
- } = c;
210
+ } = o;
211
211
  return `${e}/${Math.ceil(a.total / t)}`;
212
212
  });
213
213
  function ge(e) {
214
- J(e) && (a.records = e, a.total = e.length);
214
+ if (K(e)) {
215
+ if (g !== !1) {
216
+ const t = o.pageSize * (o.current - 1);
217
+ a.records = e.slice(t, t + o.pageSize) || [];
218
+ const n = Math.ceil(e.length / o.pageSize);
219
+ n < o.current && k({
220
+ current: n
221
+ });
222
+ } else
223
+ a.records = e;
224
+ a.total = e.length;
225
+ }
215
226
  }
216
227
  const de = y(() => {
217
228
  const {
@@ -219,19 +230,19 @@ const qe = ({
219
230
  showTotal: t,
220
231
  showQuickJumper: n,
221
232
  showSizeChanger: r,
222
- pageSizeOptions: o
223
- } = X;
233
+ pageSizeOptions: s
234
+ } = Y;
224
235
  return {
225
236
  loading: a.loading,
226
237
  pagination: {
227
- current: c.current,
228
- pageSize: c.pageSize,
238
+ current: o.current,
239
+ pageSize: o.pageSize,
229
240
  total: a.total,
230
- showSizeChanger: K(r) ? r : !e,
231
- showQuickJumper: K(n) ? n : !e,
241
+ showSizeChanger: Q(r) ? r : !e,
242
+ showQuickJumper: Q(n) ? n : !e,
232
243
  showLessItems: e,
233
244
  size: "default",
234
- pageSizeOptions: Ce(o) ? ["10", "20", "50", "100"] : o,
245
+ pageSizeOptions: be(s) ? ["10", "20", "50", "100"] : s,
235
246
  showTotal: t ? (u) => x("span", {
236
247
  class: z("pagination-total-wrapper")
237
248
  }, [S("ap.apTable.pagination.totalLeftPrefix"), " ", x("span", {
@@ -240,44 +251,44 @@ const qe = ({
240
251
  class: z("pagination--total-right")
241
252
  }, [S("ap.apTable.pagination.totalRightPrefix"), " ", x("span", {
242
253
  class: z("pagination-count-text")
243
- }, [g(fe)]), " ", S("ap.apTable.pagination.totalRightSuffix")])]) : void 0
254
+ }, [d(fe)]), " ", S("ap.apTable.pagination.totalRightSuffix")])]) : void 0
244
255
  },
245
256
  onChange: L,
246
257
  dataSource: a.records
247
258
  };
248
259
  });
249
260
  function pe(e, t = !0) {
250
- Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t && A();
261
+ Object.assign(o, e), c.current = e.current, c.pageSize = e.pageSize, t && A();
251
262
  }
252
263
  function he() {
253
264
  return {
254
- ...c
265
+ ...o
255
266
  };
256
267
  }
257
268
  return {
258
269
  formRef: m,
259
270
  submit: v,
260
- reset: ce,
271
+ reset: ie,
261
272
  refresh: A,
262
- refreshByDelete: ie,
273
+ refreshByDelete: ue,
263
274
  data: a,
264
275
  handleTableChange: L,
265
- handleTableChangeOptional: ue,
276
+ handleTableChangeOptional: k,
266
277
  tableProps: de,
267
278
  dataSource: y(() => a.records),
268
279
  setDataSource: ge,
269
- getColumnSFConfig: ee,
280
+ getColumnSFConfig: te,
270
281
  sortedInfo: j,
271
282
  filteredInfo: U,
272
283
  getPaging: he,
273
284
  setPaging: pe,
274
285
  submitWith: _,
275
- fetchNextPageAndCache: oe,
276
- getLastParams: se
286
+ fetchNextPageAndCache: se,
287
+ getLastParams: ce
277
288
  };
278
289
  };
279
290
  export {
280
- d as DEFAULT_CURRENT,
281
- R as DEFAULT_PAGE_SIZE,
291
+ p as DEFAULT_CURRENT,
292
+ M as DEFAULT_PAGE_SIZE,
282
293
  qe as useTablePaging
283
294
  };
@@ -1,5 +1,5 @@
1
1
  import { BatchInputGroupProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNode, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { FieldMode, ApFieldTextProps } from '../../ap-field';
4
4
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
5
5
  import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
@@ -32,6 +32,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
32
32
  readonly class?: unknown;
33
33
  readonly style?: unknown;
34
34
  readonly emptyText?: string | undefined;
35
+ readonly customReadMode?: ((originalNode: any, val?: any) => VNode) | undefined;
35
36
  readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "url" | "email" | "datetime-local" | "file" | "password" | "tel" | undefined;
36
37
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
37
38
  readonly lazy?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, ref as g, computed as u, unref as t, createElementBlock as T, openBlock as B, normalizeClass as C, createVNode as d, withCtx as b, createBlock as _, createCommentVNode as K, normalizeStyle as M, mergeProps as $ } from "vue";
1
+ import { defineComponent as z, ref as g, computed as u, unref as t, createElementBlock as T, openBlock as B, normalizeClass as C, createVNode as d, withCtx as b, createBlock as _, createCommentVNode as M, normalizeStyle as K, mergeProps as $ } from "vue";
2
2
  import { Form as D, Space as G } from "@aplus-frontend/antdv";
3
3
  import { omit as q } from "lodash-unified";
4
4
  import "../../ap-field/index.mjs";
@@ -32,6 +32,7 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
32
32
  mode: { default: "edit" },
33
33
  class: {},
34
34
  emptyText: { default: "--" },
35
+ customReadMode: {},
35
36
  variant: {},
36
37
  size: {},
37
38
  name: {},
@@ -82,7 +83,7 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
82
83
  const o = A, V = H("Text", o), x = I, { value: a, updateValue: r } = Q(
83
84
  o,
84
85
  x
85
- ), s = g(), f = g(), { t: S } = W(), { b: k } = X("batch-input-group"), v = Y("batch-input-group"), p = D.useInjectFormItemContext(), F = u(() => o.options ? o.options.length > 1 && o.hasAll ? [
86
+ ), i = g(), f = g(), { t: S } = W(), { b: k } = X("batch-input-group"), v = Y("batch-input-group"), p = D.useInjectFormItemContext(), F = u(() => o.options ? o.options.length > 1 && o.hasAll ? [
86
87
  { value: c, label: S("ap.common.all") },
87
88
  ...o.options
88
89
  ] : o.options : []), U = u(() => o.options ? o.options.map((e) => e.value) : []), w = u(() => t(a)?.value?.length ? t(a).value.join(",") : ""), P = u(() => t(a)?.value?.length ? t(a).value.join(`
@@ -108,10 +109,10 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
108
109
  const h = f.value?.$el?.querySelector("input");
109
110
  h && (h.value = m);
110
111
  }
111
- let i = m.split(",");
112
- i.length === 1 && i[0] === "" && (i = []), r({
112
+ let s = m.split(",");
113
+ s.length === 1 && s[0] === "" && (s = []), r({
113
114
  ...l,
114
- value: i
115
+ value: s
115
116
  }), p.onFieldChange();
116
117
  }
117
118
  function N(e) {
@@ -134,7 +135,7 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
134
135
  }
135
136
  return (e, l) => (B(), T("div", {
136
137
  ref_key: "containerRef",
137
- ref: s,
138
+ ref: i,
138
139
  class: C([t(k)(), t(v)]),
139
140
  onFocus: l[0] || (l[0] = //@ts-ignore
140
141
  (...n) => e.onFocus && e.onFocus(...n)),
@@ -145,15 +146,15 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
145
146
  default: b(() => [
146
147
  e.options?.length ? (B(), _(t(ee), {
147
148
  key: 0,
148
- style: M(e.style),
149
+ style: K(e.style),
149
150
  options: F.value,
150
151
  value: R.value,
151
152
  "allow-clear": !1,
152
153
  "dropdown-match-select-width": !1,
153
154
  disabled: e.disabled,
154
- "get-popup-container": () => s.value,
155
+ "get-popup-container": () => i.value,
155
156
  "onUpdate:value": E
156
- }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : K("", !0),
157
+ }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : M("", !0),
157
158
  d(t(te), $(
158
159
  t(q)(o, [
159
160
  "style",
@@ -176,7 +177,7 @@ const c = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ z({
176
177
  ), {
177
178
  suffix: b(() => [
178
179
  d(oe, {
179
- _parent: s.value,
180
+ _parent: i.value,
180
181
  value: P.value,
181
182
  disabled: e.disabled,
182
183
  placement: o.popoverPlacement,
@@ -1,2 +1,2 @@
1
- declare const _default: "7.17.3";
1
+ declare const _default: "7.18.0";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.17.3";
1
+ const e = "7.18.0";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("lodash-unified"),F=require("vue");require("../../utils/index.js");const y=require("../editable/utils.js"),x=require("../../utils/is.js");let B=0;function V(){return`_ag_grid${B++}`}const S=(l,c,n,w)=>{const h=F.shallowRef([]);function I(i,f){const g=F.unref(n)?.length||0;if(x.isDef(l.maxLength)&&g>=l.maxLength||!i&&v.isFunction(l.rowKey))return;const t={...i||{[l.rowKey]:V()}};c?.setFieldValue(w,t,!1,(r,s)=>{const e=y.getRowKey(t,void 0,l.rowKey);r[s]?r[s][e]=t:r[s]={[e]:t},n.value?v.isUndefined(f)?n.value.push(t):(h.value=n.value.map((u,o)=>o<f?null:y.getRowKey(u,o,l.rowKey)).filter(Boolean),n.value.splice(f,0,t)):n.value=[t],c?.setFieldValue(l.name,t,!0,(u,o)=>{if(!u[o]){u[o]=[t];return}v.isUndefined(f)?u[o].push(t):u[o].splice(f,0,t)})})}function R(i,f="suffix",g=!1){if(!i)return;const t=F.unref(n)?.length||0,r=v.isNumber(i)?i:i.length;if(x.isDef(l.maxLength)&&t+r>l.maxLength||v.isNumber(i)&&v.isFunction(l.rowKey))return;const s=v.isNumber(i)?new Array(i).fill(0).map(()=>({[l.rowKey]:V()})):v.cloneDeep(i),e=y.arrayToObject(s,l.rowKey);c?.setFieldValue(w,e,!1,(u,o)=>{u[o]?Object.assign(u[o],e):u[o]=e,n.value?f==="suffix"?n.value.push(...s):(h.value=n.value.map((K,d)=>y.getRowKey(K,d,l.rowKey)),n.value.unshift(...s)):n.value=[...s],c?.setFieldValue(l.name,s,!0,(K,d)=>{if(!K[d]||g){K[d]=[...s];return}f==="suffix"?K[d].push(...s):K[d].unshift(...s)})})}function j(i,f="suffix"){R(i,f,!1)}function O(i){const f=v.isArray(i)?i:[i];c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f){const u=y.getRowKey(e,void 0,l.rowKey);delete g[t][u]}const r=n.value.filter(e=>!f.includes(e)),s=n.value.findIndex(e=>f.includes(e));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=r})})}function T(i){const f=new Set(v.isArray(i)?i:[i]);f.size!==0&&c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f)delete g[t][e];const r=n.value.filter((e,u)=>!f.has(y.getRowKey(e,u,l.rowKey))),s=n.value.findIndex((e,u)=>f.has(y.getRowKey(e,u,l.rowKey)));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=r})})}function k(i){return F.unref(n)?.[i]}function q(){return F.unref(n)}function L(i,f,g=!0){c?.setFieldValue?.(w,void 0,!1,(t,r)=>{const s=n.value.findIndex((u,o)=>i===o);if(!~s)return;const e=y.getRowKey(n.value[s],s,l.rowKey);if(e&&!(!t[r]||!t[r][e])){if(!g){const u=Object.keys(t[r][e]);for(const o of u)o!==l.rowKey&&delete t[r][e][o]}Object.assign(t[r][e],{...f})}})}function _(){c?.setFieldValue(w,{}),c?.setFieldValue(l.name,[])}return{add:I,addMultiple:j,__addMultiple:R,remove:O,removeByKey:T,getRowData:k,getRowsData:q,setRowData:L,clear:_,refreshRowIds:h}};exports.useEditableFormItemApi=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("lodash-unified"),F=require("vue");require("../../utils/index.js");const y=require("../editable/utils.js"),x=require("../../utils/is.js");let B=0;function V(){return`_ag_grid${B++}`}const S=(l,c,n,w)=>{const h=F.shallowRef([]);function I(i,f){const g=F.unref(n)?.length||0;if(x.isDef(l.maxLength)&&g>=l.maxLength||!i&&v.isFunction(l.rowKey))return;const t={...i||{[l.rowKey]:V()}};c?.setFieldValue(w,t,!1,(r,s)=>{const e=y.getRowKey(t,void 0,l.rowKey);r[s]?r[s][e]=t:r[s]={[e]:t},n.value?v.isUndefined(f)?n.value.push(t):(h.value=n.value.map((u,o)=>o<f?null:y.getRowKey(u,o,l.rowKey)).filter(Boolean),n.value.splice(f,0,t)):n.value=[t],c?.setFieldValue(l.name,t,!0,(u,o)=>{if(!u[o]){u[o]=[t];return}v.isUndefined(f)?u[o].push(t):u[o].splice(f,0,t)})})}function R(i,f="suffix",g=!1){if(!i)return;const t=F.unref(n)?.length||0,r=v.isNumber(i)?i:i.length;if(x.isDef(l.maxLength)&&t+r>l.maxLength||v.isNumber(i)&&v.isFunction(l.rowKey))return;const s=v.isNumber(i)?new Array(i).fill(0).map(()=>({[l.rowKey]:V()})):v.cloneDeep(i),e=y.arrayToObject(s,l.rowKey);c?.setFieldValue(w,e,!1,(u,o)=>{u[o]?Object.assign(u[o],e):u[o]=e,n.value?f==="suffix"?n.value.push(...s):(h.value=n.value.map((K,d)=>y.getRowKey(K,d,l.rowKey)),n.value.unshift(...s)):n.value=[...s],c?.setFieldValue(l.name,s,!0,(K,d)=>{if(!K[d]||g){K[d]=[...s];return}f==="suffix"?K[d].push(...s):K[d].unshift(...s)})})}function j(i,f="suffix"){R(i,f,!1)}function O(i){const f=v.isArray(i)?i:[i];c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f){const u=y.getRowKey(e,void 0,l.rowKey);delete g[t][u]}const r=n.value.filter(e=>!f.includes(e)),s=n.value.findIndex(e=>f.includes(e));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=[...r]})})}function T(i){const f=new Set(v.isArray(i)?i:[i]);f.size!==0&&c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f)delete g[t][e];const r=n.value.filter((e,u)=>!f.has(y.getRowKey(e,u,l.rowKey))),s=n.value.findIndex((e,u)=>f.has(y.getRowKey(e,u,l.rowKey)));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=r})})}function k(i){return F.unref(n)?.[i]}function q(){return F.unref(n)}function L(i,f,g=!0){c?.setFieldValue?.(w,void 0,!1,(t,r)=>{const s=n.value.findIndex((u,o)=>i===o);if(!~s)return;const e=y.getRowKey(n.value[s],s,l.rowKey);if(e&&!(!t[r]||!t[r][e])){if(!g){const u=Object.keys(t[r][e]);for(const o of u)o!==l.rowKey&&delete t[r][e][o]}Object.assign(t[r][e],{...f})}})}function _(){c?.setFieldValue(w,{}),c?.setFieldValue(l.name,[])}return{add:I,addMultiple:j,__addMultiple:R,remove:O,removeByKey:T,getRowData:k,getRowsData:q,setRowData:L,clear:_,refreshRowIds:h}};exports.useEditableFormItemApi=S;