@aplus-frontend/ui 6.26.4 → 6.27.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 (102) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +29 -29
  3. package/es/src/ag-grid/hooks/use-columns.d.ts +1 -1
  4. package/es/src/ag-grid/hooks/use-columns.mjs +8 -8
  5. package/es/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
  6. package/es/src/ag-grid/hooks/use-pinned-row.mjs +32 -0
  7. package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  8. package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
  9. package/es/src/ag-grid/index.vue.mjs +274 -232
  10. package/es/src/ag-grid/interface.d.ts +25 -2
  11. package/es/src/ap-field/select/index.vue.d.ts +51 -21
  12. package/es/src/ap-field/select/index.vue.mjs +51 -49
  13. package/es/src/ap-field/select/read.vue2.mjs +4 -1
  14. package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
  15. package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
  16. package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
  17. package/es/src/ap-form/ap-form.vue.d.ts +20 -0
  18. package/es/src/ap-form/ap-form.vue2.mjs +11 -10
  19. package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  20. package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
  21. package/es/src/ap-form/hooks/use-watch.mjs +25 -28
  22. package/es/src/ap-form/interface.d.ts +1 -1
  23. package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
  24. package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  25. package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
  26. package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
  27. package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
  28. package/es/src/ap-form/search-form/index.vue.mjs +72 -68
  29. package/es/src/ap-table/constants.d.ts +52 -28
  30. package/es/src/ap-upload/apUpload.vue.d.ts +9 -0
  31. package/es/src/ap-upload/apUpload.vue.mjs +38 -34
  32. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +59 -59
  33. package/es/src/ap-upload/components/Picture.vue2.mjs +74 -74
  34. package/es/src/ap-upload/components/SingleFile.vue2.mjs +95 -95
  35. package/es/src/business/ap-value-select-card/index.vue2.mjs +120 -123
  36. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  37. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  38. package/es/src/business/hooks/usePageListAgGrid.d.ts +1 -1
  39. package/es/src/business/hooks/usePageListAgGrid.mjs +4 -4
  40. package/es/src/business/hooks/usePageListApGrid.mjs +14 -14
  41. package/es/src/config-provider/config-provider-props.d.ts +14 -1
  42. package/es/src/config-provider/config-provider.d.ts +31 -1
  43. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
  44. package/es/src/config-provider/index.d.ts +52 -1
  45. package/es/src/utils/config-provider-preset.d.ts +11 -1
  46. package/es/src/version.d.ts +1 -1
  47. package/es/src/version.mjs +1 -1
  48. package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  49. package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  50. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  51. package/lib/src/ag-grid/hooks/use-columns.d.ts +1 -1
  52. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  53. package/lib/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
  54. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -0
  55. package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  56. package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
  57. package/lib/src/ag-grid/index.vue.js +1 -1
  58. package/lib/src/ag-grid/interface.d.ts +25 -2
  59. package/lib/src/ap-field/select/index.vue.d.ts +51 -21
  60. package/lib/src/ap-field/select/index.vue.js +1 -1
  61. package/lib/src/ap-field/select/read.vue2.js +1 -1
  62. package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
  63. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  64. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  65. package/lib/src/ap-form/ap-form.vue.d.ts +20 -0
  66. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  67. package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  68. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  69. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  70. package/lib/src/ap-form/interface.d.ts +1 -1
  71. package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
  72. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  73. package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
  74. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  75. package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
  76. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  77. package/lib/src/ap-table/constants.d.ts +52 -28
  78. package/lib/src/ap-upload/apUpload.vue.d.ts +9 -0
  79. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  80. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  81. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  82. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  83. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  84. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  85. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  86. package/lib/src/business/hooks/usePageListAgGrid.d.ts +1 -1
  87. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  88. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  89. package/lib/src/config-provider/config-provider-props.d.ts +14 -1
  90. package/lib/src/config-provider/config-provider.d.ts +31 -1
  91. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
  92. package/lib/src/config-provider/index.d.ts +52 -1
  93. package/lib/src/utils/config-provider-preset.d.ts +11 -1
  94. package/lib/src/version.d.ts +1 -1
  95. package/lib/src/version.js +1 -1
  96. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  97. package/package.json +3 -3
  98. package/theme/ap-pro-card/index.css +5 -5
  99. package/theme/ap-pro-card/index.less +5 -5
  100. package/theme/ap-value-select-card/index.css +3 -4
  101. package/theme/ap-value-select-card/index.less +3 -4
  102. package/theme/index.css +8 -9
@@ -116,6 +116,7 @@ declare function __VLS_template(): {
116
116
  readonly onFinish?: ((values: any) => void) | undefined;
117
117
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
118
118
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
119
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
119
120
  readonly initialValues?: Recordable | undefined;
120
121
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
121
122
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -350,11 +351,16 @@ declare function __VLS_template(): {
350
351
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
351
352
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
352
353
  };
354
+ variant: {
355
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
356
+ default: "filled" | "outlined" | "borderless" | "underlined";
357
+ };
353
358
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
354
359
  size: ButtonSize;
355
360
  onSubmit: (e: Event) => void;
356
361
  disabled: boolean;
357
362
  validateTrigger: string | string[];
363
+ variant: "filled" | "outlined" | "borderless" | "underlined";
358
364
  onFinish: (values: any) => void;
359
365
  validateMessages: ValidateMessages;
360
366
  requiredMark: "" | RequiredMark;
@@ -670,11 +676,16 @@ declare function __VLS_template(): {
670
676
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
671
677
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
672
678
  };
679
+ variant: {
680
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
681
+ default: "filled" | "outlined" | "borderless" | "underlined";
682
+ };
673
683
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
674
684
  size: ButtonSize;
675
685
  onSubmit: (e: Event) => void;
676
686
  disabled: boolean;
677
687
  validateTrigger: string | string[];
688
+ variant: "filled" | "outlined" | "borderless" | "underlined";
678
689
  onFinish: (values: any) => void;
679
690
  validateMessages: ValidateMessages;
680
691
  requiredMark: "" | RequiredMark;
@@ -1276,6 +1287,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1276
1287
  readonly onFinish?: ((values: any) => void) | undefined;
1277
1288
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
1278
1289
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1290
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
1279
1291
  readonly initialValues?: Recordable | undefined;
1280
1292
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1281
1293
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -1510,11 +1522,16 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1510
1522
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1511
1523
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1512
1524
  };
1525
+ variant: {
1526
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1527
+ default: "filled" | "outlined" | "borderless" | "underlined";
1528
+ };
1513
1529
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1514
1530
  size: ButtonSize;
1515
1531
  onSubmit: (e: Event) => void;
1516
1532
  disabled: boolean;
1517
1533
  validateTrigger: string | string[];
1534
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1518
1535
  onFinish: (values: any) => void;
1519
1536
  validateMessages: ValidateMessages;
1520
1537
  requiredMark: "" | RequiredMark;
@@ -1830,11 +1847,16 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1830
1847
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1831
1848
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1832
1849
  };
1850
+ variant: {
1851
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1852
+ default: "filled" | "outlined" | "borderless" | "underlined";
1853
+ };
1833
1854
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1834
1855
  size: ButtonSize;
1835
1856
  onSubmit: (e: Event) => void;
1836
1857
  disabled: boolean;
1837
1858
  validateTrigger: string | string[];
1859
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1838
1860
  onFinish: (values: any) => void;
1839
1861
  validateMessages: ValidateMessages;
1840
1862
  requiredMark: "" | RequiredMark;
@@ -1,4 +1,4 @@
1
- import { isVNode as O, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as n, mergeProps as m, unref as a, createElementBlock as D, openBlock as b, Fragment as L, createBlock as T, createCommentVNode as G, withCtx as v, createElementVNode as K, normalizeClass as W, normalizeStyle as H, renderSlot as C, resolveDynamicComponent as B, createTextVNode as J, toDisplayString as Q } from "vue";
1
+ import { isVNode as O, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as n, mergeProps as m, unref as o, createElementBlock as D, openBlock as b, Fragment as L, createBlock as T, createCommentVNode as G, withCtx as v, createElementVNode as K, normalizeClass as W, normalizeStyle as H, renderSlot as C, resolveDynamicComponent as B, createTextVNode as J, toDisplayString as Q } from "vue";
2
2
  import { Button as y, Flex as X, Space as Y, Modal as Z } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
@@ -6,8 +6,8 @@ import { getSingleVNode as ee } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { omit as te } from "lodash-unified";
8
8
  import { useControllableValue as le } from "../../hooks/useControllableValue.mjs";
9
- import { useLocale as oe } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useLocale as ae } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useGlobalConfig as oe } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
12
12
  import ne from "../ap-form.vue2.mjs";
13
13
  function k(i) {
@@ -57,6 +57,7 @@ const Se = /* @__PURE__ */ z({
57
57
  onFieldsChange: {},
58
58
  onFinishFailed: {},
59
59
  onValidate: {},
60
+ variant: {},
60
61
  initialValues: {},
61
62
  onValuesChange: {},
62
63
  syncToUrl: {
@@ -95,7 +96,7 @@ const Se = /* @__PURE__ */ z({
95
96
  expose: P,
96
97
  emit: w
97
98
  }) {
98
- const t = i, c = E(), N = w, o = d(), F = d(0), r = d(), s = d(!1), {
99
+ const t = i, c = E(), N = w, a = d(), F = d(0), r = d(), s = d(!1), {
99
100
  value: S,
100
101
  updateValue: u
101
102
  } = le(t, N, {
@@ -106,11 +107,11 @@ const Se = /* @__PURE__ */ z({
106
107
  }
107
108
  }), {
108
109
  t: f
109
- } = oe(), x = ae("uiMode", "aplus"), {
110
+ } = ae(), x = oe("uiMode", "aplus"), {
110
111
  b: M,
111
112
  e: p
112
113
  } = se("ap-form-modal-form");
113
- $(() => o.value, (e) => {
114
+ $(() => a.value, (e) => {
114
115
  e && r.value && (e.setFieldsValue?.(r.value), r.value = void 0);
115
116
  });
116
117
  const g = ee(c.trigger), h = g ? q(g, {
@@ -147,8 +148,8 @@ const Se = /* @__PURE__ */ z({
147
148
  default: () => [t.submitter?.submitText || f("ap.common.okText")]
148
149
  })), n(X, {
149
150
  justify: "flex-end",
150
- key: a(F),
151
- class: [p("footer"), a(x) === "admin" ? p("footer-admin") : null]
151
+ key: o(F),
152
+ class: [p("footer"), o(x) === "admin" ? p("footer-admin") : null]
152
153
  }, {
153
154
  default: () => [c.submitter ? c.submitter(e) : n(Y, null, k(e) ? e : {
154
155
  default: () => [e]
@@ -156,7 +157,7 @@ const Se = /* @__PURE__ */ z({
156
157
  });
157
158
  });
158
159
  function _() {
159
- t.submitter !== !1 && (o.value?.resetFields(), t.submitter?.onReset?.());
160
+ t.submitter !== !1 && (a.value?.resetFields(), t.submitter?.onReset?.());
160
161
  }
161
162
  async function U(e) {
162
163
  if (t.submitter !== !1)
@@ -175,46 +176,46 @@ const Se = /* @__PURE__ */ z({
175
176
  }
176
177
  }
177
178
  function V() {
178
- a(s) || u(!1);
179
+ o(s) || u(!1);
179
180
  }
180
181
  function j(e) {
181
- !e && a(s) || u(e);
182
+ !e && o(s) || u(e);
182
183
  }
183
184
  return P({
184
185
  resetFields: async () => {
185
- o.value?.resetFields();
186
+ a.value?.resetFields();
186
187
  },
187
188
  clearValidate: (e) => {
188
- o.value?.clearValidate(e);
189
+ a.value?.clearValidate(e);
189
190
  },
190
- validateFields: (e, l) => o.value?.validateFields(e, l),
191
- getFieldsValue: (e) => o.value?.getFieldsValue(e),
192
- validate: (e, l) => o.value?.validate(e, l),
191
+ validateFields: (e, l) => a.value?.validateFields(e, l),
192
+ getFieldsValue: (e) => a.value?.getFieldsValue(e),
193
+ validate: (e, l) => a.value?.validate(e, l),
193
194
  scrollToField: (e, l = {}) => {
194
- o.value?.scrollToField(e, l);
195
+ a.value?.scrollToField(e, l);
195
196
  },
196
197
  setFieldValue: (e, l) => {
197
- o.value?.setFieldValue?.(e, l);
198
+ a.value?.setFieldValue?.(e, l);
198
199
  },
199
200
  setFieldsValue: (e) => {
200
- if (!o.value) {
201
+ if (!a.value) {
201
202
  r.value = e;
202
203
  return;
203
204
  }
204
- o.value?.setFieldsValue?.(e);
205
+ a.value?.setFieldsValue?.(e);
205
206
  },
206
- getInternalInstance: (e) => o.value?.getInternalInstance(e),
207
+ getInternalInstance: (e) => a.value?.getInternalInstance(e),
207
208
  getFieldsValueTransformed(e) {
208
- return o.value?.getFieldsValueTransformed(e);
209
+ return a.value?.getFieldsValueTransformed(e);
209
210
  },
210
211
  validateFieldsReturnTransformed(e, l) {
211
- return o.value?.validateFieldsReturnTransformed(e, l);
212
+ return a.value?.validateFieldsReturnTransformed(e, l);
212
213
  }
213
- }), (e, l) => (b(), D(L, null, [n(a(Z), m(e.modalProps, {
214
- open: a(S),
214
+ }), (e, l) => (b(), D(L, null, [n(o(Z), m(e.modalProps, {
215
+ open: o(S),
215
216
  footer: null,
216
217
  width: e.width,
217
- class: a(M)(),
218
+ class: o(M)(),
218
219
  "body-style": {
219
220
  padding: "0px !important"
220
221
  },
@@ -224,18 +225,18 @@ const Se = /* @__PURE__ */ z({
224
225
  title: v(() => [C(e.$slots, "title", {}, () => [J(Q(t.title), 1)])]),
225
226
  default: v(() => [n(ne, m({
226
227
  ref_key: "formRef",
227
- ref: o
228
- }, a(te)(t, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
228
+ ref: a
229
+ }, o(te)(t, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
229
230
  onFinish: U
230
231
  }), {
231
232
  default: v(() => [K("div", {
232
233
  style: H(e.modalProps?.bodyStyle),
233
- class: W(a(p)("content"))
234
+ class: W(o(p)("content"))
234
235
  }, [C(e.$slots, "default")], 6), (b(), T(B(R.value)))]),
235
236
  _: 3
236
237
  }, 16)]),
237
238
  _: 3
238
- }, 16, ["open", "width", "class"]), a(h) ? (b(), T(B(a(h)), {
239
+ }, 16, ["open", "width", "class"]), o(h) ? (b(), T(B(o(h)), {
239
240
  key: 0
240
241
  })) : G("", !0)], 64));
241
242
  }
@@ -113,6 +113,7 @@ declare function __VLS_template(): {
113
113
  readonly onFinish?: ((values: any) => void) | undefined;
114
114
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
115
115
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
116
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
116
117
  readonly initialValues?: Recordable | undefined;
117
118
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
118
119
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -347,11 +348,16 @@ declare function __VLS_template(): {
347
348
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
348
349
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
349
350
  };
351
+ variant: {
352
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
353
+ default: "filled" | "outlined" | "borderless" | "underlined";
354
+ };
350
355
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
351
356
  size: ButtonSize;
352
357
  onSubmit: (e: Event) => void;
353
358
  disabled: boolean;
354
359
  validateTrigger: string | string[];
360
+ variant: "filled" | "outlined" | "borderless" | "underlined";
355
361
  onFinish: (values: any) => void;
356
362
  validateMessages: ValidateMessages;
357
363
  requiredMark: "" | RequiredMark;
@@ -515,7 +521,7 @@ declare function __VLS_template(): {
515
521
  }>> & HTMLAttributes;
516
522
  };
517
523
  wrapperCol: {
518
- type: PropType<Partial< ExtractPropTypes<{
524
+ type: ** @type { [typeof ApForm, typeof ApForm, ] } */).PropType<Partial< ExtractPropTypes<{
519
525
  span: (StringConstructor | NumberConstructor)[];
520
526
  order: (StringConstructor | NumberConstructor)[];
521
527
  offset: (StringConstructor | NumberConstructor)[];
@@ -667,11 +673,16 @@ declare function __VLS_template(): {
667
673
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
668
674
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
669
675
  };
676
+ variant: {
677
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
678
+ default: "filled" | "outlined" | "borderless" | "underlined";
679
+ };
670
680
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
671
681
  size: ButtonSize;
672
682
  onSubmit: (e: Event) => void;
673
683
  disabled: boolean;
674
684
  validateTrigger: string | string[];
685
+ variant: "filled" | "outlined" | "borderless" | "underlined";
675
686
  onFinish: (values: any) => void;
676
687
  validateMessages: ValidateMessages;
677
688
  requiredMark: "" | RequiredMark;
@@ -952,6 +963,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
952
963
  readonly onFinish?: ((values: any) => void) | undefined;
953
964
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
954
965
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
966
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
955
967
  readonly initialValues?: Recordable | undefined;
956
968
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
957
969
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -1186,11 +1198,16 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1186
1198
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1187
1199
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1188
1200
  };
1201
+ variant: {
1202
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1203
+ default: "filled" | "outlined" | "borderless" | "underlined";
1204
+ };
1189
1205
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1190
1206
  size: ButtonSize;
1191
1207
  onSubmit: (e: Event) => void;
1192
1208
  disabled: boolean;
1193
1209
  validateTrigger: string | string[];
1210
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1194
1211
  onFinish: (values: any) => void;
1195
1212
  validateMessages: ValidateMessages;
1196
1213
  requiredMark: "" | RequiredMark;
@@ -1354,7 +1371,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1354
1371
  }>> & HTMLAttributes;
1355
1372
  };
1356
1373
  wrapperCol: {
1357
- type: PropType<Partial< ExtractPropTypes<{
1374
+ type: ** @type { [typeof ApForm, typeof ApForm, ] } */).PropType<Partial< ExtractPropTypes<{
1358
1375
  span: (StringConstructor | NumberConstructor)[];
1359
1376
  order: (StringConstructor | NumberConstructor)[];
1360
1377
  offset: (StringConstructor | NumberConstructor)[];
@@ -1506,11 +1523,16 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1506
1523
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1507
1524
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1508
1525
  };
1526
+ variant: {
1527
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1528
+ default: "filled" | "outlined" | "borderless" | "underlined";
1529
+ };
1509
1530
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1510
1531
  size: ButtonSize;
1511
1532
  onSubmit: (e: Event) => void;
1512
1533
  disabled: boolean;
1513
1534
  validateTrigger: string | string[];
1535
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1514
1536
  onFinish: (values: any) => void;
1515
1537
  validateMessages: ValidateMessages;
1516
1538
  requiredMark: "" | RequiredMark;
@@ -1,28 +1,28 @@
1
- import { isVNode as re, defineComponent as se, useSlots as ie, ref as V, shallowRef as D, computed as _, unref as a, watch as U, createVNode as o, Fragment as w, createBlock as y, openBlock as p, mergeProps as ue, withCtx as B, resolveDynamicComponent as I, createElementBlock as ce, renderList as pe, normalizeStyle as de } from "vue";
2
- import { Col as R, Flex as k, Button as z, Row as fe } from "@aplus-frontend/antdv";
1
+ import { isVNode as se, defineComponent as ie, useSlots as ue, ref as D, shallowRef as U, computed as _, unref as a, watch as z, createVNode as o, Fragment as w, createBlock as y, openBlock as p, mergeProps as ce, withCtx as B, resolveDynamicComponent as I, createElementBlock as pe, renderList as de, normalizeStyle as fe } from "vue";
2
+ import { Col as R, Flex as k, Button as M, Row as me } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import { genRealChildren as M } from "../item-group/helper.mjs";
5
+ import { genRealChildren as q } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isArray as me, isBoolean as he, omit as xe } from "lodash-unified";
8
- import { isDef as q } from "../../utils/index.mjs";
9
- import { execFunc as H, diffFormItem as ye } from "./utils.mjs";
7
+ import { isArray as he, isBoolean as xe, omit as ye } from "lodash-unified";
8
+ import { isDef as H } from "../../utils/index.mjs";
9
+ import { execFunc as G, diffFormItem as ge } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
- import { useCountPerRow as ge } from "./hooks/use-count-per-row.mjs";
11
+ import { useCountPerRow as ve } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
13
- import { useSorter as ve } from "./hooks/use-sorter.mjs";
14
- import { getTargetNode as Ce } from "./hooks/use-collapse-input-count.mjs";
15
- import { floorWith as G } from "@fruits-chain/utils";
16
- import { useNamespace as Se } from "../../config-provider/hooks/use-namespace.mjs";
17
- import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
18
- import J from "../item/index.vue.mjs";
19
- import we from "./components/popover-filter.vue2.mjs";
20
- import Re from "./components/popover-sorter/index.vue2.mjs";
21
- import be from "../ap-form.vue2.mjs";
22
- function Fe(d) {
23
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !re(d);
13
+ import { useSorter as Ce } from "./hooks/use-sorter.mjs";
14
+ import { getTargetNode as Se } from "./hooks/use-collapse-input-count.mjs";
15
+ import { floorWith as J } from "@fruits-chain/utils";
16
+ import { useNamespace as _e } from "../../config-provider/hooks/use-namespace.mjs";
17
+ import { useLocale as we } from "../../config-provider/hooks/use-locale.mjs";
18
+ import K from "../item/index.vue.mjs";
19
+ import Re from "./components/popover-filter.vue2.mjs";
20
+ import be from "./components/popover-sorter/index.vue2.mjs";
21
+ import Fe from "../ap-form.vue2.mjs";
22
+ function Ae(d) {
23
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !se(d);
24
24
  }
25
- const r = 100, Qe = /* @__PURE__ */ se({
25
+ const r = 100, Qe = /* @__PURE__ */ ie({
26
26
  name: "ApFormSearchForm",
27
27
  __name: "index",
28
28
  props: {
@@ -67,6 +67,7 @@ const r = 100, Qe = /* @__PURE__ */ se({
67
67
  onFinish: {},
68
68
  onFinishFailed: {},
69
69
  onValidate: {},
70
+ variant: {},
70
71
  initialValues: {},
71
72
  onValuesChange: {},
72
73
  syncToUrl: {
@@ -118,68 +119,71 @@ const r = 100, Qe = /* @__PURE__ */ se({
118
119
  }
119
120
  },
120
121
  setup(d, {
121
- expose: K
122
+ expose: Q
122
123
  }) {
123
- const g = ie(), t = d, {
124
+ const g = ue(), t = d, {
124
125
  b: f
125
- } = Se("ap-form-search-form"), {
126
+ } = _e("ap-form-search-form"), {
126
127
  t: T
127
- } = _e(), Q = ge(t), v = V(), X = V();
128
+ } = we(), X = ve(t), v = D(), Y = D();
128
129
  function P() {
129
130
  const e = v.value?.getFieldsValueTransformed(!0);
130
- H(t.onSubmit, e);
131
+ G(t.onSubmit, e);
131
132
  }
132
- function Y() {
133
- t.customReset || v.value?.resetFields?.(), H(t.onReset);
133
+ function Z() {
134
+ t.customReset || v.value?.resetFields?.(), G(t.onReset);
134
135
  }
135
- const Z = (e) => q(e) ? (me(e) ? e : [e]).join("") : Date.now();
136
+ const ee = (e) => H(e) ? (he(e) ? e : [e]).join("") : Date.now();
136
137
  let E = [];
137
- const m = D(M(g.default())), u = D(g.extra?.()), O = _(() => G(r / a(Q), 4)), {
138
+ const m = U(q(g.default())), u = U(g.extra?.()), O = _(() => J(r / a(X), 4)), {
138
139
  items: b,
139
140
  sorted: L,
140
141
  handleClickConfirm: F
141
- } = ve(m);
142
- U(() => g.default(), (e) => {
143
- E = m.value, m.value = ye(E, M(e)), L.value = !1;
144
- }), U(() => g.extra?.(), (e) => {
142
+ } = Ce(m);
143
+ z(() => g.default(), (e) => {
144
+ E = m.value, m.value = ge(E, q(e)), L.value = !1;
145
+ }), z(() => g.extra?.(), (e) => {
145
146
  u.value = e;
146
147
  });
147
- function ee(e) {
148
- return G(e * (r / 24), 4);
148
+ function te(e) {
149
+ return J(e * (r / 24), 4);
149
150
  }
150
151
  const n = _(() => {
151
152
  const e = m.value, c = [], l = [], x = [], s = a(O);
152
- let C = 0, N = 0;
153
- const ae = r * t.maxRows - s * (a(u) && !t.extraInAction ? 2 : 1);
154
- e.forEach((A) => {
155
- const i = Ce(A).props;
156
- if (he(i.hidden) ? !!i.hidden : q(i.hidden))
157
- c.push(A);
153
+ let C = 0, A = 0;
154
+ const ne = r * t.maxRows - s * (a(u) && !t.extraInAction ? 2 : 1);
155
+ e.forEach((N) => {
156
+ const $ = Se(N);
157
+ if (!$)
158
+ return;
159
+ const i = $.props;
160
+ if (xe(i.hidden) ? !!i.hidden : H(i.hidden))
161
+ c.push(N);
158
162
  else {
159
- let S = i.span ? ee(i.span) : s;
160
- const $ = {
161
- node: A,
163
+ let S = i.span ? te(i.span) : s;
164
+ const j = {
165
+ node: N,
162
166
  span: S,
163
- key: `ApFormSearchFormItem-${Z(i.name)}-${i._signal}`
164
- }, j = r - C % r;
165
- j < S && (S += j), C += S, C > ae ? l.push($) : (N = C, x.push($));
167
+ key: `ApFormSearchFormItem-${ee(i.name)}-${i._signal}`
168
+ }, V = r - C % r;
169
+ V < S && (S += V), C += S, C > ne ? l.push(j) : (A = C, x.push(j));
166
170
  }
167
171
  });
168
- const W = r - (N + s) % r, ne = Math.ceil(N) % r < s, le = W < s ? r : W;
172
+ const W = r - (A + s) % r, le = Math.ceil(A) % r < s, re = W < s ? r : W;
169
173
  return {
170
174
  hideNode: o(w, null, [c]),
171
175
  nodes: x,
172
176
  collapseNodes: l,
173
- extraSpan: le,
174
- lastRowOnlyIncludeActionAndExtra: ne
177
+ extraSpan: re,
178
+ lastRowOnlyIncludeActionAndExtra: le
175
179
  };
176
- }), h = (e) => `${e}%`, te = _(() => {
180
+ }), h = (e) => `${e}%`, oe = _(() => {
177
181
  let e;
178
182
  const c = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(R, {
179
183
  flex: h(a(O)),
180
184
  key: "actionWrapper"
181
185
  }, {
182
- default: () => [o(J, null, {
186
+ default: () => [o(K, null, {
183
187
  default: () => [o(k, {
184
188
  wrap: "wrap",
185
189
  justify: n.value.lastRowOnlyIncludeActionAndExtra && !(a(u) && t.extraInAction) ? "flex-end" : "space-between"
@@ -190,16 +194,16 @@ const r = 100, Qe = /* @__PURE__ */ se({
190
194
  }, {
191
195
  default: () => [c ? o("div", {
192
196
  class: f("column-setting-trigger-wrapper")
193
- }, [n.value.collapseNodes.length ? o(we, {
197
+ }, [n.value.collapseNodes.length ? o(Re, {
194
198
  onSubmit: P,
195
199
  config: n.value.collapseNodes,
196
200
  submitLoading: t.submitLoading
197
- }, null) : null, t.sortable && b.value.length ? o(Re, {
201
+ }, null) : null, t.sortable && b.value.length ? o(be, {
198
202
  ref: "sorterIns",
199
203
  items: b.value,
200
204
  onClickConfirm: F,
201
205
  sorted: L.value
202
- }, null) : null]) : null, o(z, {
206
+ }, null) : null]) : null, o(M, {
203
207
  type: "primary",
204
208
  onClick: P,
205
209
  loading: t.submitLoading ? {
@@ -209,8 +213,8 @@ const r = 100, Qe = /* @__PURE__ */ se({
209
213
  class: f("action-btn")
210
214
  }, {
211
215
  default: () => [t.searchText || T("ap.apForm.search.search")]
212
- }), o(z, {
213
- onClick: Y,
216
+ }), o(M, {
217
+ onClick: Z,
214
218
  type: "text",
215
219
  class: [f("action-btn"), f("action-btn-reset")]
216
220
  }, {
@@ -223,10 +227,10 @@ const r = 100, Qe = /* @__PURE__ */ se({
223
227
  flex: h(n.value.extraSpan),
224
228
  key: "extraNode"
225
229
  }, {
226
- default: () => [o(J, null, {
230
+ default: () => [o(K, null, {
227
231
  default: () => [o(k, {
228
232
  justify: n.value.extraSpan === r || n.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
229
- }, Fe(e = a(u)) ? e : {
233
+ }, Ae(e = a(u)) ? e : {
230
234
  default: () => [e]
231
235
  })]
232
236
  })]
@@ -235,33 +239,33 @@ const r = 100, Qe = /* @__PURE__ */ se({
235
239
  }, null);
236
240
  return n.value.lastRowOnlyIncludeActionAndExtra ? o(w, null, [x || s, l]) : o(w, null, [l, x]);
237
241
  });
238
- function oe() {
239
- const e = X.value?.getCachedList();
242
+ function ae() {
243
+ const e = Y.value?.getCachedList();
240
244
  F(e);
241
245
  }
242
- return K({
246
+ return Q({
243
247
  apForm: _(() => a(v)),
244
248
  getSorterItems: () => b.value,
245
249
  setSorterItems: F,
246
- resetSorterItems: oe
247
- }), (e, c) => (p(), y(be, ue({
250
+ resetSorterItems: ae
251
+ }), (e, c) => (p(), y(Fe, ce({
248
252
  ref_key: "apForm",
249
253
  ref: v,
250
254
  class: a(f)()
251
- }, a(xe)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
252
- default: B(() => [(p(), y(I(n.value.hideNode))), o(a(fe), {
255
+ }, a(ye)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
256
+ default: B(() => [(p(), y(I(n.value.hideNode))), o(a(me), {
253
257
  gutter: 8
254
258
  }, {
255
- default: B(() => [(p(!0), ce(w, null, pe(n.value.nodes, (l) => (p(), y(a(R), {
259
+ default: B(() => [(p(!0), pe(w, null, de(n.value.nodes, (l) => (p(), y(a(R), {
256
260
  key: l.key,
257
261
  flex: h(l.span),
258
- style: de({
262
+ style: fe({
259
263
  maxWidth: h(l.span)
260
264
  })
261
265
  }, {
262
266
  default: B(() => [(p(), y(I(l.node)))]),
263
267
  _: 2
264
- }, 1032, ["flex", "style"]))), 128)), (p(), y(I(te.value)))]),
268
+ }, 1032, ["flex", "style"]))), 128)), (p(), y(I(oe.value)))]),
265
269
  _: 1
266
270
  })]),
267
271
  _: 1