@aplus-frontend/ui 7.7.3 → 7.7.5

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 (131) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -0
  2. package/es/src/ap-action/group/index.vue.mjs +28 -28
  3. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
  4. package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
  5. package/es/src/ap-button/ap-button.vue.d.ts +2 -1
  6. package/es/src/ap-field/checkbox/index.vue.mjs +18 -8
  7. package/es/src/ap-field/number/index.vue.d.ts +20 -0
  8. package/es/src/ap-field/number/index.vue.mjs +24 -23
  9. package/es/src/ap-field/number/read.vue2.mjs +3 -2
  10. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  11. package/es/src/ap-field/rate/index.vue.mjs +10 -10
  12. package/es/src/ap-field/select/index.vue.d.ts +12 -4
  13. package/es/src/ap-field/select/index.vue.mjs +74 -71
  14. package/es/src/ap-field/slider/index.vue.d.ts +4 -2
  15. package/es/src/ap-field/slider/index.vue.mjs +12 -12
  16. package/es/src/ap-field/switch/index.vue.mjs +20 -20
  17. package/es/src/ap-field/text/index.vue2.mjs +23 -23
  18. package/es/src/ap-field/text/password.vue.mjs +9 -9
  19. package/es/src/ap-field/text-area/index.vue.mjs +24 -20
  20. package/es/src/ap-field/tree-select/index.vue.d.ts +2 -0
  21. package/es/src/ap-field/tree-select/index.vue.mjs +17 -17
  22. package/es/src/ap-form/ap-form.vue2.mjs +64 -64
  23. package/es/src/ap-form/drawer-form/index.vue.mjs +41 -41
  24. package/es/src/ap-form/item/index.vue.mjs +64 -64
  25. package/es/src/ap-form/items/number/index.vue.d.ts +22 -0
  26. package/es/src/ap-form/items/number/index.vue.mjs +10 -10
  27. package/es/src/ap-form/items/radio/index.vue.mjs +3 -3
  28. package/es/src/ap-form/items/select/index.vue.d.ts +18 -6
  29. package/es/src/ap-form/items/select/index.vue.mjs +5 -5
  30. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  31. package/es/src/ap-form/items/text/index.vue2.mjs +6 -6
  32. package/es/src/ap-form/items/text/password.vue.mjs +7 -7
  33. package/es/src/ap-form/items/text-area/index.vue.mjs +5 -5
  34. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
  35. package/es/src/ap-form/items/tree-select/index.vue.mjs +7 -7
  36. package/es/src/ap-form/modal-form/index.vue.d.ts +25 -1
  37. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
  38. package/es/src/ap-form/search-form/index.vue.mjs +63 -63
  39. package/es/src/ap-form/style/item.mjs +8 -7
  40. package/es/src/ap-list/index.vue.mjs +6 -6
  41. package/es/src/ap-table/constants.d.ts +23 -4
  42. package/es/src/business/ap-batch-action-group/index.d.ts +34 -4
  43. package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
  44. package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +58 -79
  45. package/es/src/business/ap-descriptions/interface.d.ts +2 -3
  46. package/es/src/business/ap-upload/apUpload.vue.d.ts +9 -0
  47. package/es/src/business/ap-upload/apUpload.vue.mjs +33 -29
  48. package/es/src/business/ap-upload/apUploadTypes.d.ts +4 -0
  49. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +50 -49
  50. package/es/src/business/ap-upload/components/Picture.vue2.mjs +66 -65
  51. package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +95 -94
  52. package/es/src/business/ap-upload/hooks/useOss.d.ts +2 -1
  53. package/es/src/business/ap-upload/hooks/useOss.mjs +26 -24
  54. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  55. package/es/src/editable-table/form-item.vue.mjs +64 -64
  56. package/es/src/editable-table/index.vue.mjs +66 -66
  57. package/es/src/scroll-bar/index.vue.d.ts +7 -7
  58. package/es/src/scroll-bar/index.vue.mjs +21 -21
  59. package/es/src/scroll-bar/internal.vue.d.ts +4 -4
  60. package/es/src/scroll-bar/internal.vue.mjs +20 -20
  61. package/es/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
  62. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +13 -13
  63. package/es/src/scroll-view/index.vue.d.ts +25 -25
  64. package/es/src/version.d.ts +1 -1
  65. package/es/src/version.mjs +1 -1
  66. package/lib/src/ap-action/group/index.vue.d.ts +1 -0
  67. package/lib/src/ap-action/group/index.vue.js +1 -1
  68. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
  69. package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
  70. package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
  71. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  72. package/lib/src/ap-field/number/index.vue.d.ts +20 -0
  73. package/lib/src/ap-field/number/index.vue.js +1 -1
  74. package/lib/src/ap-field/number/read.vue2.js +1 -1
  75. package/lib/src/ap-field/radio/index.vue.js +1 -1
  76. package/lib/src/ap-field/rate/index.vue.js +1 -1
  77. package/lib/src/ap-field/select/index.vue.d.ts +12 -4
  78. package/lib/src/ap-field/select/index.vue.js +1 -1
  79. package/lib/src/ap-field/slider/index.vue.d.ts +4 -2
  80. package/lib/src/ap-field/slider/index.vue.js +1 -1
  81. package/lib/src/ap-field/switch/index.vue.js +1 -1
  82. package/lib/src/ap-field/text/index.vue2.js +1 -1
  83. package/lib/src/ap-field/text/password.vue.js +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  85. package/lib/src/ap-field/tree-select/index.vue.d.ts +2 -0
  86. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  87. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  88. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/item/index.vue.js +1 -1
  90. package/lib/src/ap-form/items/number/index.vue.d.ts +22 -0
  91. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  92. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  93. package/lib/src/ap-form/items/select/index.vue.d.ts +18 -6
  94. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  95. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  96. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  97. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  98. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  99. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
  100. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  101. package/lib/src/ap-form/modal-form/index.vue.d.ts +25 -1
  102. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
  103. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  104. package/lib/src/ap-form/style/item.js +1 -1
  105. package/lib/src/ap-list/index.vue.js +1 -1
  106. package/lib/src/ap-table/constants.d.ts +23 -4
  107. package/lib/src/business/ap-batch-action-group/index.d.ts +34 -4
  108. package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
  109. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
  110. package/lib/src/business/ap-descriptions/interface.d.ts +2 -3
  111. package/lib/src/business/ap-upload/apUpload.vue.d.ts +9 -0
  112. package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
  113. package/lib/src/business/ap-upload/apUploadTypes.d.ts +4 -0
  114. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  115. package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
  116. package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
  117. package/lib/src/business/ap-upload/hooks/useOss.d.ts +2 -1
  118. package/lib/src/business/ap-upload/hooks/useOss.js +1 -1
  119. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  120. package/lib/src/editable-table/form-item.vue.js +1 -1
  121. package/lib/src/editable-table/index.vue.js +1 -1
  122. package/lib/src/scroll-bar/index.vue.d.ts +7 -7
  123. package/lib/src/scroll-bar/index.vue.js +1 -1
  124. package/lib/src/scroll-bar/internal.vue.d.ts +4 -4
  125. package/lib/src/scroll-bar/internal.vue.js +1 -1
  126. package/lib/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
  127. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  128. package/lib/src/scroll-view/index.vue.d.ts +25 -25
  129. package/lib/src/version.d.ts +1 -1
  130. package/lib/src/version.js +1 -1
  131. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { ApFormModalFormProps } from '../interface';
2
- import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
2
+ import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
3
3
  import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { Recordable } from '../../type';
5
5
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
@@ -942,9 +942,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
942
942
  loading: {
943
943
  type: PropType<boolean | {
944
944
  delay?: number;
945
+ icon?: VNode<RendererNode, RendererElement, {
946
+ [key: string]: any;
947
+ }>;
945
948
  }>;
946
949
  default: () => boolean | {
947
950
  delay?: number;
951
+ icon?: VNode<RendererNode, RendererElement, {
952
+ [key: string]: any;
953
+ }>;
948
954
  };
949
955
  };
950
956
  disabled: {
@@ -997,9 +1003,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
997
1003
  loading: {
998
1004
  type: PropType<boolean | {
999
1005
  delay?: number;
1006
+ icon?: VNode<RendererNode, RendererElement, {
1007
+ [key: string]: any;
1008
+ }>;
1000
1009
  }>;
1001
1010
  default: () => boolean | {
1002
1011
  delay?: number;
1012
+ icon?: VNode<RendererNode, RendererElement, {
1013
+ [key: string]: any;
1014
+ }>;
1003
1015
  };
1004
1016
  };
1005
1017
  disabled: {
@@ -1054,9 +1066,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1054
1066
  loading: {
1055
1067
  type: PropType<boolean | {
1056
1068
  delay?: number;
1069
+ icon?: VNode<RendererNode, RendererElement, {
1070
+ [key: string]: any;
1071
+ }>;
1057
1072
  }>;
1058
1073
  default: () => boolean | {
1059
1074
  delay?: number;
1075
+ icon?: VNode<RendererNode, RendererElement, {
1076
+ [key: string]: any;
1077
+ }>;
1060
1078
  };
1061
1079
  };
1062
1080
  disabled: {
@@ -1109,9 +1127,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1109
1127
  loading: {
1110
1128
  type: PropType<boolean | {
1111
1129
  delay?: number;
1130
+ icon?: VNode<RendererNode, RendererElement, {
1131
+ [key: string]: any;
1132
+ }>;
1112
1133
  }>;
1113
1134
  default: () => boolean | {
1114
1135
  delay?: number;
1136
+ icon?: VNode<RendererNode, RendererElement, {
1137
+ [key: string]: any;
1138
+ }>;
1115
1139
  };
1116
1140
  };
1117
1141
  disabled: {
@@ -1,5 +1,5 @@
1
1
  import { ApFormSearchFormPopoverFilterProps } from '../../interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives } from 'vue';
3
3
  import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
4
4
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
5
5
  import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
@@ -22,9 +22,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
22
22
  loading: {
23
23
  type: PropType<boolean | {
24
24
  delay?: number;
25
+ icon?: VNode<RendererNode, RendererElement, {
26
+ [key: string]: any;
27
+ }>;
25
28
  }>;
26
29
  default: () => boolean | {
27
30
  delay?: number;
31
+ icon?: VNode<RendererNode, RendererElement, {
32
+ [key: string]: any;
33
+ }>;
28
34
  };
29
35
  };
30
36
  disabled: {
@@ -66,6 +72,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
66
72
  autoInsertSpace: boolean;
67
73
  loading: boolean | {
68
74
  delay?: number;
75
+ icon?: VNode<RendererNode, RendererElement, {
76
+ [key: string]: any;
77
+ }>;
69
78
  };
70
79
  danger: boolean;
71
80
  htmlType: ButtonHTMLType;
@@ -97,9 +106,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
97
106
  loading: {
98
107
  type: PropType<boolean | {
99
108
  delay?: number;
109
+ icon?: VNode<RendererNode, RendererElement, {
110
+ [key: string]: any;
111
+ }>;
100
112
  }>;
101
113
  default: () => boolean | {
102
114
  delay?: number;
115
+ icon?: VNode<RendererNode, RendererElement, {
116
+ [key: string]: any;
117
+ }>;
103
118
  };
104
119
  };
105
120
  disabled: {
@@ -141,6 +156,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
141
156
  autoInsertSpace: boolean;
142
157
  loading: boolean | {
143
158
  delay?: number;
159
+ icon?: VNode<RendererNode, RendererElement, {
160
+ [key: string]: any;
161
+ }>;
144
162
  };
145
163
  danger: boolean;
146
164
  htmlType: ButtonHTMLType;
@@ -1,12 +1,12 @@
1
- import { isVNode as ce, defineComponent as ue, useSlots as pe, ref as B, shallowRef as M, computed as w, unref as a, watch as q, createVNode as o, Fragment as R, createBlock as x, openBlock as p, mergeProps as de, withCtx as I, resolveDynamicComponent as T, createElementBlock as fe, renderList as me, normalizeStyle as he } from "vue";
2
- import { Col as _, Flex as k, Button as H, Row as ge } from "@aplus-frontend/antdv";
1
+ import { isVNode as ie, defineComponent as ce, useSlots as ue, ref as pe, shallowRef as w, computed as R, unref as a, watch as M, createVNode as o, Fragment as _, createBlock as x, openBlock as p, mergeProps as de, withCtx as I, resolveDynamicComponent as T, createElementBlock as fe, renderList as me, normalizeStyle as he } from "vue";
2
+ import { Col as b, Flex as k, Button as q, Row as ge } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import { genRealChildren as G } from "../item-group/helper.mjs";
5
+ import { genRealChildren as H } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
8
8
  import "../../utils/index.mjs";
9
- import { execFunc as J, diffFormItem as Se } from "./utils.mjs";
9
+ import { execFunc as G, diffFormItem as Se } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
11
  import { useCountPerRow as Ce } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
@@ -14,18 +14,18 @@ import { useSorter as we } from "./hooks/use-sorter.mjs";
14
14
  import { getTargetNode as Re } from "./hooks/use-collapse-input-count.mjs";
15
15
  import { useDevWarning as _e } from "../../utils/warning.mjs";
16
16
  import be from "../style/search-form.mjs";
17
- import { floorWith as K } from "../../utils/format.mjs";
17
+ import { floorWith as J } from "../../utils/format.mjs";
18
18
  import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
19
19
  import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
20
- import { isDef as Q } from "../../utils/is.mjs";
21
- import X from "../item/index.vue.mjs";
20
+ import { isDef as K } from "../../utils/is.mjs";
21
+ import Q from "../item/index.vue.mjs";
22
22
  import Ne from "./components/popover-filter.vue2.mjs";
23
23
  import Be from "./components/popover-sorter/index.vue2.mjs";
24
24
  import Ie from "../ap-form.vue2.mjs";
25
25
  function Te(d) {
26
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ce(d);
26
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ie(d);
27
27
  }
28
- const r = 100, nt = /* @__PURE__ */ ue({
28
+ const r = 100, nt = /* @__PURE__ */ ce({
29
29
  name: "ApFormSearchForm",
30
30
  __name: "index",
31
31
  props: {
@@ -123,73 +123,73 @@ const r = 100, nt = /* @__PURE__ */ ue({
123
123
  }
124
124
  },
125
125
  setup(d, {
126
- expose: Y
126
+ expose: X
127
127
  }) {
128
- const y = pe(), t = d;
128
+ const y = ue(), t = d;
129
129
  _e("SearchForm").deprecated(typeof t.resizeTarget < "u", "resizeTarget", "resize.target");
130
- const Z = be("ap-form-search-form"), {
130
+ const Y = be("ap-form-search-form"), {
131
131
  b: f
132
132
  } = Fe("ap-form-search-form"), {
133
133
  t: P
134
- } = Ae(), v = B(), E = B(), ee = Ce(t, E), W = B();
134
+ } = Ae(), v = pe(), E = w(), Z = Ce(t, E), W = w();
135
135
  function z() {
136
136
  const e = v.value?.getFieldsValueTransformed(!0);
137
- J(t.onSubmit, e);
137
+ G(t.onSubmit, e);
138
138
  }
139
- function te() {
140
- t.customReset || v.value?.resetFields?.(), J(t.onReset);
139
+ function ee() {
140
+ t.customReset || v.value?.resetFields?.(), G(t.onReset);
141
141
  }
142
- const oe = (e) => Q(e) ? (xe(e) ? e : [e]).join("") : Date.now();
142
+ const te = (e) => K(e) ? (xe(e) ? e : [e]).join("") : Date.now();
143
143
  let O = [];
144
- const m = M(G(y.default())), c = M(y.extra?.()), L = w(() => K(r / a(ee), 4)), {
145
- items: b,
144
+ const m = w(H(y.default())), c = w(y.extra?.()), L = R(() => J(r / a(Z), 4)), {
145
+ items: F,
146
146
  sorted: $,
147
- handleClickConfirm: F
147
+ handleClickConfirm: A
148
148
  } = we(m);
149
- q(() => y.default(), (e) => {
150
- O = m.value, m.value = Se(O, G(e)), $.value = !1;
151
- }), q(() => y.extra?.(), (e) => {
149
+ M(() => y.default(), (e) => {
150
+ O = m.value, m.value = Se(O, H(e)), $.value = !1;
151
+ }), M(() => y.extra?.(), (e) => {
152
152
  c.value = e;
153
153
  });
154
- function ae(e) {
155
- return K(e * (r / 24), 4);
154
+ function oe(e) {
155
+ return J(e * (r / 24), 4);
156
156
  }
157
- const n = w(() => {
157
+ const n = R(() => {
158
158
  const e = m.value, u = [], l = [], g = [], s = a(L);
159
- let S = 0, A = 0;
160
- const re = r * t.maxRows - s * (a(c) && !t.extraInAction ? 2 : 1);
161
- e.forEach((N) => {
162
- const D = Re(N);
159
+ let S = 0, N = 0;
160
+ const le = r * t.maxRows - s * (a(c) && !t.extraInAction ? 2 : 1);
161
+ e.forEach((B) => {
162
+ const D = Re(B);
163
163
  if (!D)
164
164
  return;
165
165
  const i = D.props;
166
- if (ye(i.hidden) ? !!i.hidden : Q(i.hidden))
167
- u.push(N);
166
+ if (ye(i.hidden) ? !!i.hidden : K(i.hidden))
167
+ u.push(B);
168
168
  else {
169
- let C = i.span ? ae(i.span) : s;
169
+ let C = i.span ? oe(i.span) : s;
170
170
  const V = {
171
- node: N,
171
+ node: B,
172
172
  span: C,
173
- key: `ApFormSearchFormItem-${oe(i.name)}-${i._signal}`
173
+ key: `ApFormSearchFormItem-${te(i.name)}-${i._signal}`
174
174
  }, U = r - S % r;
175
- U < C && (C += U), S += C, S > re ? l.push(V) : (A = S, g.push(V));
175
+ U < C && (C += U), S += C, S > le ? l.push(V) : (N = S, g.push(V));
176
176
  }
177
177
  });
178
- const j = r - (A + s) % r, se = Math.ceil(A) % r < s, ie = j < s ? r : j;
178
+ const j = r - (N + s) % r, re = Math.ceil(N) % r < s, se = j < s ? r : j;
179
179
  return {
180
- hideNode: o(R, null, [u]),
180
+ hideNode: o(_, null, [u]),
181
181
  nodes: g,
182
182
  collapseNodes: l,
183
- extraSpan: ie,
184
- lastRowOnlyIncludeActionAndExtra: se
183
+ extraSpan: se,
184
+ lastRowOnlyIncludeActionAndExtra: re
185
185
  };
186
- }), h = (e) => `${e}%`, ne = w(() => {
186
+ }), h = (e) => `${e}%`, ae = R(() => {
187
187
  let e;
188
- const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(_, {
188
+ const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(b, {
189
189
  flex: h(a(L)),
190
190
  key: "actionWrapper"
191
191
  }, {
192
- default: () => [o(X, null, {
192
+ default: () => [o(Q, null, {
193
193
  default: () => [o(k, {
194
194
  wrap: "wrap",
195
195
  justify: n.value.lastRowOnlyIncludeActionAndExtra && !(a(c) && t.extraInAction) ? "flex-end" : "space-between"
@@ -204,12 +204,12 @@ const r = 100, nt = /* @__PURE__ */ ue({
204
204
  onSubmit: z,
205
205
  config: n.value.collapseNodes,
206
206
  submitLoading: t.submitLoading
207
- }, null) : null, t.sortable && b.value.length ? o(Be, {
207
+ }, null) : null, t.sortable && F.value.length ? o(Be, {
208
208
  ref: W,
209
- items: b.value,
210
- onClickConfirm: F,
209
+ items: F.value,
210
+ onClickConfirm: A,
211
211
  sorted: $.value
212
- }, null) : null]) : null, o(H, {
212
+ }, null) : null]) : null, o(q, {
213
213
  type: "primary",
214
214
  onClick: z,
215
215
  loading: t.submitLoading ? {
@@ -219,8 +219,8 @@ const r = 100, nt = /* @__PURE__ */ ue({
219
219
  class: f("action-btn")
220
220
  }, {
221
221
  default: () => [t.searchText || P("ap.apForm.search.search")]
222
- }), o(H, {
223
- onClick: te,
222
+ }), o(q, {
223
+ onClick: ee,
224
224
  type: "text",
225
225
  class: [f("action-btn"), f("action-btn-reset")]
226
226
  }, {
@@ -229,42 +229,42 @@ const r = 100, nt = /* @__PURE__ */ ue({
229
229
  }), t.extraInAction ? a(c) : null]
230
230
  })]
231
231
  })]
232
- }), g = !t.extraInAction && a(c) ? o(_, {
232
+ }), g = !t.extraInAction && a(c) ? o(b, {
233
233
  flex: h(n.value.extraSpan),
234
234
  key: "extraNode"
235
235
  }, {
236
- default: () => [o(X, null, {
236
+ default: () => [o(Q, null, {
237
237
  default: () => [o(k, {
238
238
  justify: n.value.extraSpan === r || n.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
239
239
  }, Te(e = a(c)) ? e : {
240
240
  default: () => [e]
241
241
  })]
242
242
  })]
243
- }) : null, s = o(_, {
243
+ }) : null, s = o(b, {
244
244
  flex: h(n.value.extraSpan)
245
245
  }, null);
246
- return n.value.lastRowOnlyIncludeActionAndExtra ? o(R, null, [g || s, l]) : o(R, null, [l, g]);
246
+ return n.value.lastRowOnlyIncludeActionAndExtra ? o(_, null, [g || s, l]) : o(_, null, [l, g]);
247
247
  });
248
- function le() {
248
+ function ne() {
249
249
  const e = W.value?.getCachedList();
250
- F(e);
250
+ A(e);
251
251
  }
252
- return Y({
253
- apForm: w(() => a(v)),
254
- getSorterItems: () => b.value,
255
- setSorterItems: F,
256
- resetSorterItems: le
252
+ return X({
253
+ apForm: R(() => a(v)),
254
+ getSorterItems: () => F.value,
255
+ setSorterItems: A,
256
+ resetSorterItems: ne
257
257
  }), (e, u) => (p(), x(Ie, de({
258
258
  ref_key: "apForm",
259
259
  ref: v,
260
- class: [a(f)(), a(Z)]
260
+ class: [a(f)(), a(Y)]
261
261
  }, a(ve)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
262
262
  default: I(() => [(p(), x(T(n.value.hideNode))), o(a(ge), {
263
263
  ref_key: "contentWrapperRef",
264
264
  ref: E,
265
265
  gutter: 8
266
266
  }, {
267
- default: I(() => [(p(!0), fe(R, null, me(n.value.nodes, (l) => (p(), x(a(_), {
267
+ default: I(() => [(p(!0), fe(_, null, me(n.value.nodes, (l) => (p(), x(a(b), {
268
268
  key: l.key,
269
269
  flex: h(l.span),
270
270
  style: he({
@@ -273,7 +273,7 @@ const r = 100, nt = /* @__PURE__ */ ue({
273
273
  }, {
274
274
  default: I(() => [(p(), x(T(l.node)))]),
275
275
  _: 2
276
- }, 1032, ["flex", "style"]))), 128)), (p(), x(T(ne.value)))]),
276
+ }, 1032, ["flex", "style"]))), 128)), (p(), x(T(ae.value)))]),
277
277
  _: 1
278
278
  }, 512)]),
279
279
  _: 1
@@ -1,6 +1,6 @@
1
- import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
2
- const i = (n) => {
3
- const { componentCls: a, namespace: t } = n;
1
+ import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
+ const r = (n) => {
3
+ const { componentCls: a, namespace: t } = n, e = `${a}--disabled`;
4
4
  return {
5
5
  [a]: {
6
6
  // bordered
@@ -83,7 +83,7 @@ const i = (n) => {
83
83
  height: "unset"
84
84
  }
85
85
  },
86
- "&:hover": {
86
+ [`&:hover:not(${e})`]: {
87
87
  borderColor: n.hoverColorBase
88
88
  },
89
89
  "&:focus": {
@@ -96,6 +96,7 @@ const i = (n) => {
96
96
  },
97
97
  // disabled
98
98
  "&--disabled": {
99
+ cursor: "not-allowed",
99
100
  backgroundColor: n.colorBgDisabled,
100
101
  ".ant-select-selector": {
101
102
  backgroundColor: "transparent !important"
@@ -131,8 +132,8 @@ const i = (n) => {
131
132
  }
132
133
  }
133
134
  };
134
- }, o = e("ApForm", (n) => [i(n)]);
135
+ }, p = i("ApForm", (n) => [r(n)]);
135
136
  export {
136
- o as default,
137
- i as genApFormItemStyle
137
+ p as default,
138
+ r as genApFormItemStyle
138
139
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, ref as _, toRef as x, unref as e, computed as p, watch as ee, createElementBlock as s, openBlock as o, normalizeStyle as h, normalizeClass as i, renderSlot as u, createElementVNode as te, createCommentVNode as P, createVNode as g, Fragment as z, createBlock as C, withCtx as b, renderList as ae, mergeProps as ne } from "vue";
1
+ import { defineComponent as Z, shallowRef as _, toRef as x, unref as e, computed as p, watch as ee, createElementBlock as s, openBlock as o, normalizeStyle as h, normalizeClass as i, renderSlot as u, createElementVNode as te, createCommentVNode as P, createVNode as g, Fragment as z, createBlock as C, withCtx as b, renderList as ae, mergeProps as ne } from "vue";
2
2
  import { Empty as F, Spin as re, Pagination as oe } from "@aplus-frontend/antdv";
3
3
  import { useTablePaging as ie } from "../ap-table/hooks/use-table-paging-ng.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -29,8 +29,8 @@ const De = /* @__PURE__ */ Z({
29
29
  rowKey: {},
30
30
  adaptive: { type: Boolean, default: !1 }
31
31
  },
32
- setup(E, { expose: L }) {
33
- const O = F.PRESENTED_IMAGE_SIMPLE, a = E, { b: d, e: y, bm: R, m: N } = pe("ap-list"), T = fe("ap-list"), k = _(), {
32
+ setup(E, { expose: R }) {
33
+ const L = F.PRESENTED_IMAGE_SIMPLE, a = E, { b: d, e: y, bm: O, m: N } = pe("ap-list"), T = fe("ap-list"), k = _(), {
34
34
  formRef: S,
35
35
  submit: I,
36
36
  reset: w,
@@ -88,7 +88,7 @@ const De = /* @__PURE__ */ Z({
88
88
  function X(t) {
89
89
  S.value?.apForm?.setFieldsValue?.(t);
90
90
  }
91
- return L({
91
+ return R({
92
92
  submit: () => I(),
93
93
  reset: () => w(),
94
94
  refresh: () => A(),
@@ -110,7 +110,7 @@ const De = /* @__PURE__ */ Z({
110
110
  te("div", {
111
111
  class: i([
112
112
  e(d)("content-container"),
113
- { [e(R)("content-container", "spinning")]: c.value }
113
+ { [e(O)("content-container", "spinning")]: c.value }
114
114
  ])
115
115
  }, [
116
116
  c.value ? (o(), s("div", {
@@ -123,7 +123,7 @@ const De = /* @__PURE__ */ Z({
123
123
  key: 1,
124
124
  loading: c.value
125
125
  }, () => [
126
- g(e(F), { image: e(O) }, null, 8, ["image"])
126
+ g(e(F), { image: e(L) }, null, 8, ["image"])
127
127
  ]) : (o(), s("div", {
128
128
  key: 2,
129
129
  ref_key: "contentRef",
@@ -195,6 +195,7 @@ export declare const apTableFormItemMap: {
195
195
  readonly status?: "" | "error" | "warning" | undefined;
196
196
  readonly defaultValue?: ValueType | undefined;
197
197
  readonly changeOnWheel?: boolean | undefined;
198
+ readonly changeOnBlur?: boolean | undefined;
198
199
  readonly stringMode?: boolean | undefined;
199
200
  readonly min?: ValueType | undefined;
200
201
  readonly max?: ValueType | undefined;
@@ -264,6 +265,10 @@ export declare const apTableFormItemMap: {
264
265
  type: BooleanConstructor;
265
266
  default: boolean;
266
267
  };
268
+ changeOnBlur: {
269
+ type: BooleanConstructor;
270
+ default: boolean;
271
+ };
267
272
  stringMode: {
268
273
  type: BooleanConstructor;
269
274
  default: boolean;
@@ -380,6 +385,7 @@ export declare const apTableFormItemMap: {
380
385
  defaultValue: ValueType;
381
386
  step: ValueType;
382
387
  changeOnWheel: boolean;
388
+ changeOnBlur: boolean;
383
389
  stringMode: boolean;
384
390
  controls: boolean;
385
391
  keyboard: boolean;
@@ -441,6 +447,10 @@ export declare const apTableFormItemMap: {
441
447
  type: BooleanConstructor;
442
448
  default: boolean;
443
449
  };
450
+ changeOnBlur: {
451
+ type: BooleanConstructor;
452
+ default: boolean;
453
+ };
444
454
  stringMode: {
445
455
  type: BooleanConstructor;
446
456
  default: boolean;
@@ -557,6 +567,7 @@ export declare const apTableFormItemMap: {
557
567
  defaultValue: ValueType;
558
568
  step: ValueType;
559
569
  changeOnWheel: boolean;
570
+ changeOnBlur: boolean;
560
571
  stringMode: boolean;
561
572
  controls: boolean;
562
573
  keyboard: boolean;
@@ -950,7 +961,9 @@ export declare const apTableFormItemMap: {
950
961
  readonly autoClearSearchValue?: boolean | undefined;
951
962
  readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
952
963
  readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
953
- readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType) => number) | undefined;
964
+ readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
965
+ searchValue: string;
966
+ }) => number) | undefined;
954
967
  readonly optionFilterProp?: string | undefined;
955
968
  readonly optionLabelProp?: string | undefined;
956
969
  readonly options?: DefaultOptionType[] | undefined;
@@ -1113,7 +1126,9 @@ export declare const apTableFormItemMap: {
1113
1126
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
1114
1127
  default: any;
1115
1128
  };
1116
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
1129
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
1130
+ searchValue: string;
1131
+ }) => number>;
1117
1132
  optionFilterProp: StringConstructor;
1118
1133
  optionLabelProp: StringConstructor;
1119
1134
  options: PropType< DefaultOptionType[]>;
@@ -1332,7 +1347,9 @@ export declare const apTableFormItemMap: {
1332
1347
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
1333
1348
  default: any;
1334
1349
  };
1335
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
1350
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
1351
+ searchValue: string;
1352
+ }) => number>;
1336
1353
  optionFilterProp: StringConstructor;
1337
1354
  optionLabelProp: StringConstructor;
1338
1355
  options: PropType< DefaultOptionType[]>;
@@ -1773,7 +1790,7 @@ export declare const apTableFormItemMap: {
1773
1790
  allowClear: boolean;
1774
1791
  }> & Omit<Readonly< ApFieldTextProps> & Readonly<{
1775
1792
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1776
- }>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear") | "setSelectionRange"> & ShallowUnwrapRef<{
1793
+ }>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
1777
1794
  focus: (options?: InputFocusOptions) => void;
1778
1795
  blur: () => void;
1779
1796
  input: any;
@@ -2880,6 +2897,7 @@ export declare const apTableFormItemMap: {
2880
2897
  leafIcon?: any;
2881
2898
  tagRender?: any;
2882
2899
  suffixIcon?: any;
2900
+ clearIcon?: any;
2883
2901
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2884
2902
  P: {};
2885
2903
  B: {};
@@ -3411,6 +3429,7 @@ export declare const apTableRenderItemMap: {
3411
3429
  actions: GroupActionTypes[];
3412
3430
  trigger: Trigger | Trigger[];
3413
3431
  count: number;
3432
+ iconFirst: boolean;
3414
3433
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3415
3434
  index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
3416
3435
  bordered: boolean;