@aplus-frontend/ui 6.26.3 → 6.26.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 (78) hide show
  1. package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  2. package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
  3. package/es/src/ag-grid/index.vue.mjs +225 -206
  4. package/es/src/ag-grid/interface.d.ts +22 -1
  5. package/es/src/ag-grid/theme.mjs +4 -3
  6. package/es/src/ap-field/select/index.vue.d.ts +51 -21
  7. package/es/src/ap-field/select/index.vue.mjs +51 -49
  8. package/es/src/ap-field/select/read.vue2.mjs +4 -1
  9. package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
  10. package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
  11. package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
  12. package/es/src/ap-form/ap-form.vue.d.ts +28 -2
  13. package/es/src/ap-form/ap-form.vue2.mjs +8 -7
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  15. package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
  16. package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
  19. package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
  20. package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
  21. package/es/src/ap-form/search-form/index.vue.mjs +72 -68
  22. package/es/src/ap-modal/interface.d.ts +10 -3
  23. package/es/src/ap-modal/utils/createModalStream.mjs +67 -58
  24. package/es/src/ap-table/constants.d.ts +52 -28
  25. package/es/src/business/ap-value-select-card/index.vue2.mjs +81 -90
  26. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  27. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  28. package/es/src/config-provider/config-provider-props.d.ts +14 -1
  29. package/es/src/config-provider/config-provider.d.ts +31 -1
  30. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
  31. package/es/src/config-provider/index.d.ts +52 -1
  32. package/es/src/utils/config-provider-preset.d.ts +11 -1
  33. package/es/src/version.d.ts +1 -1
  34. package/es/src/version.mjs +1 -1
  35. package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  36. package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  37. package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
  38. package/lib/src/ag-grid/index.vue.js +1 -1
  39. package/lib/src/ag-grid/interface.d.ts +22 -1
  40. package/lib/src/ag-grid/theme.js +1 -1
  41. package/lib/src/ap-field/select/index.vue.d.ts +51 -21
  42. package/lib/src/ap-field/select/index.vue.js +1 -1
  43. package/lib/src/ap-field/select/read.vue2.js +1 -1
  44. package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
  45. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  46. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  47. package/lib/src/ap-form/ap-form.vue.d.ts +28 -2
  48. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  49. package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  50. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  51. package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
  52. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  53. package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
  54. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  55. package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
  56. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  57. package/lib/src/ap-modal/interface.d.ts +10 -3
  58. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  59. package/lib/src/ap-table/constants.d.ts +52 -28
  60. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  61. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  62. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  63. package/lib/src/config-provider/config-provider-props.d.ts +14 -1
  64. package/lib/src/config-provider/config-provider.d.ts +31 -1
  65. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
  66. package/lib/src/config-provider/index.d.ts +52 -1
  67. package/lib/src/utils/config-provider-preset.d.ts +11 -1
  68. package/lib/src/version.d.ts +1 -1
  69. package/lib/src/version.js +1 -1
  70. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  71. package/package.json +3 -3
  72. package/theme/ag-grid/index.css +5 -0
  73. package/theme/ag-grid/index.less +12 -0
  74. package/theme/ap-pro-card/index.css +5 -5
  75. package/theme/ap-pro-card/index.less +5 -5
  76. package/theme/ap-value-select-card/index.css +1 -1
  77. package/theme/ap-value-select-card/index.less +2 -1
  78. package/theme/index.css +11 -6
@@ -4,7 +4,7 @@ import "../../hooks/index.mjs";
4
4
  import { isArray as J, omit as Q } from "lodash-unified";
5
5
  import { useRequest as X } from "./use-request.mjs";
6
6
  import { useControllableValue as Y } from "../../hooks/useControllableValue.mjs";
7
- function w(r) {
7
+ function x(r) {
8
8
  return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !F(r);
9
9
  }
10
10
  const de = /* @__PURE__ */ L({
@@ -92,7 +92,9 @@ const de = /* @__PURE__ */ L({
92
92
  id: {},
93
93
  clearIcon: {},
94
94
  notFoundContent: {},
95
+ maxCount: {},
95
96
  onDeselect: {},
97
+ prefix: {},
96
98
  onSearch: {},
97
99
  fieldNames: {},
98
100
  dropdownStyle: {},
@@ -121,10 +123,6 @@ const de = /* @__PURE__ */ L({
121
123
  onClear: {},
122
124
  onDropdownVisibleChange: {},
123
125
  getRawInputElement: {},
124
- showArrow: {
125
- type: Boolean,
126
- default: void 0
127
- },
128
126
  onPopupScroll: {},
129
127
  listItemHeight: {},
130
128
  inputValue: {},
@@ -136,6 +134,10 @@ const de = /* @__PURE__ */ L({
136
134
  type: Boolean,
137
135
  default: void 0
138
136
  },
137
+ showArrow: {
138
+ type: Boolean,
139
+ default: void 0
140
+ },
139
141
  showCheckedStrategy: {},
140
142
  treeExpandAction: {},
141
143
  treeDefaultExpandAll: {
@@ -171,9 +173,9 @@ const de = /* @__PURE__ */ L({
171
173
  emits: ["update:value"],
172
174
  setup(r, {
173
175
  expose: C,
174
- emit: x
176
+ emit: w
175
177
  }) {
176
- const o = r, N = R(), T = x, p = _(), {
178
+ const o = r, N = R(), T = w, p = _(), {
177
179
  value: f,
178
180
  updateValue: b
179
181
  } = Y(o, T), {
@@ -195,10 +197,10 @@ const de = /* @__PURE__ */ L({
195
197
  }
196
198
  return h(e(c)), n.length ? n.length === 1 ? d("span", null, [n[0]]) : d($, {
197
199
  size: 4
198
- }, w(t = n.map((a, l) => d(H, {
200
+ }, x(t = n.map((a, l) => d(H, {
199
201
  style: "margin-right: 0px",
200
202
  key: `${a}-${l}`
201
- }, w(a) ? a : {
203
+ }, x(a) ? a : {
202
204
  default: () => [a]
203
205
  }))) ? t : {
204
206
  default: () => [t]
@@ -1,4 +1,4 @@
1
- import { isVNode as h, defineComponent as g, computed as B, createVNode as l, Fragment as c, createBlock as w, openBlock as x, resolveDynamicComponent as C } from "vue";
1
+ import { isVNode as h, defineComponent as g, computed as B, createVNode as l, Fragment as c, createBlock as x, openBlock as w, resolveDynamicComponent as C } from "vue";
2
2
  import { isArray as N } from "lodash-unified";
3
3
  import { Space as S, Tag as T } from "@aplus-frontend/antdv";
4
4
  function s(a) {
@@ -78,7 +78,9 @@ const I = /* @__PURE__ */ g({
78
78
  id: {},
79
79
  clearIcon: {},
80
80
  notFoundContent: {},
81
+ maxCount: {},
81
82
  onDeselect: {},
83
+ prefix: {},
82
84
  onSearch: {},
83
85
  fieldNames: {},
84
86
  dropdownStyle: {},
@@ -105,9 +107,6 @@ const I = /* @__PURE__ */ g({
105
107
  onClear: {},
106
108
  onDropdownVisibleChange: {},
107
109
  getRawInputElement: {},
108
- showArrow: {
109
- type: Boolean
110
- },
111
110
  onPopupScroll: {},
112
111
  listItemHeight: {},
113
112
  inputValue: {},
@@ -117,6 +116,9 @@ const I = /* @__PURE__ */ g({
117
116
  labelInValue: {
118
117
  type: Boolean
119
118
  },
119
+ showArrow: {
120
+ type: Boolean
121
+ },
120
122
  showCheckedStrategy: {},
121
123
  treeExpandAction: {},
122
124
  treeDefaultExpandAll: {
@@ -172,7 +174,7 @@ const I = /* @__PURE__ */ g({
172
174
  default: () => [r]
173
175
  }) : l(c, null, [e.emptyText]);
174
176
  });
175
- return (r, p) => (x(), w(C(u.value)));
177
+ return (r, p) => (w(), x(C(u.value)));
176
178
  }
177
179
  });
178
180
  export {
@@ -238,11 +238,16 @@ declare function __VLS_template(): {
238
238
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
239
239
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
240
240
  };
241
+ variant: {
242
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
243
+ default: "filled" | "outlined" | "borderless" | "underlined";
244
+ };
241
245
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
242
246
  size: ButtonSize;
243
247
  onSubmit: (e: Event) => void;
244
248
  disabled: boolean;
245
249
  validateTrigger: string | string[];
250
+ variant: "filled" | "outlined" | "borderless" | "underlined";
246
251
  onFinish: (values: any) => void;
247
252
  validateMessages: ValidateMessages;
248
253
  requiredMark: "" | RequiredMark;
@@ -354,7 +359,10 @@ declare function __VLS_template(): {
354
359
  };
355
360
  md: {
356
361
  type: PropType<string | number | ColSize>;
357
- default: string | number | ColSize;
362
+ default: string | number | **
363
+ * 注册表单项
364
+ * @param field
365
+ */).ColSize;
358
366
  };
359
367
  lg: {
360
368
  type: PropType<string | number | ColSize>;
@@ -558,11 +566,16 @@ declare function __VLS_template(): {
558
566
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
559
567
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
560
568
  };
569
+ variant: {
570
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
571
+ default: "filled" | "outlined" | "borderless" | "underlined";
572
+ };
561
573
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
562
574
  size: ButtonSize;
563
575
  onSubmit: (e: Event) => void;
564
576
  disabled: boolean;
565
577
  validateTrigger: string | string[];
578
+ variant: "filled" | "outlined" | "borderless" | "underlined";
566
579
  onFinish: (values: any) => void;
567
580
  validateMessages: ValidateMessages;
568
581
  requiredMark: "" | RequiredMark;
@@ -898,11 +911,16 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
898
911
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
899
912
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
900
913
  };
914
+ variant: {
915
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
916
+ default: "filled" | "outlined" | "borderless" | "underlined";
917
+ };
901
918
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
902
919
  size: ButtonSize;
903
920
  onSubmit: (e: Event) => void;
904
921
  disabled: boolean;
905
922
  validateTrigger: string | string[];
923
+ variant: "filled" | "outlined" | "borderless" | "underlined";
906
924
  onFinish: (values: any) => void;
907
925
  validateMessages: ValidateMessages;
908
926
  requiredMark: "" | RequiredMark;
@@ -1014,7 +1032,10 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
1014
1032
  };
1015
1033
  md: {
1016
1034
  type: PropType<string | number | ColSize>;
1017
- default: string | number | ColSize;
1035
+ default: string | number | **
1036
+ * 注册表单项
1037
+ * @param field
1038
+ */).ColSize;
1018
1039
  };
1019
1040
  lg: {
1020
1041
  type: PropType<string | number | ColSize>;
@@ -1218,11 +1239,16 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
1218
1239
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1219
1240
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1220
1241
  };
1242
+ variant: {
1243
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1244
+ default: "filled" | "outlined" | "borderless" | "underlined";
1245
+ };
1221
1246
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1222
1247
  size: ButtonSize;
1223
1248
  onSubmit: (e: Event) => void;
1224
1249
  disabled: boolean;
1225
1250
  validateTrigger: string | string[];
1251
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1226
1252
  onFinish: (values: any) => void;
1227
1253
  validateMessages: ValidateMessages;
1228
1254
  requiredMark: "" | RequiredMark;
@@ -35,6 +35,7 @@ const we = /* @__PURE__ */ z({
35
35
  onFinish: {},
36
36
  onFinishFailed: {},
37
37
  onValidate: {},
38
+ variant: {},
38
39
  initialValues: {},
39
40
  onValuesChange: {},
40
41
  syncToUrl: { type: [Boolean, Function], default: !1 },
@@ -57,8 +58,8 @@ const we = /* @__PURE__ */ z({
57
58
  }
58
59
  y();
59
60
  }
60
- const s = j(), C = me(Fe()), F = Te(), v = j(
61
- n.syncToUrl ? B(n.syncToUrl, C, "get") : {}
61
+ const s = j(), v = me(Fe()), F = Te(), C = j(
62
+ n.syncToUrl ? B(n.syncToUrl, v, "get") : {}
62
63
  );
63
64
  let d = de(_()), g = {};
64
65
  const l = ee(_());
@@ -67,20 +68,20 @@ const we = /* @__PURE__ */ z({
67
68
  const e = n.initialValues || {};
68
69
  return n.syncToUrlPriority ? {
69
70
  ...e,
70
- ...h(v)
71
+ ...h(C)
71
72
  } : {
72
- ...h(v),
73
+ ...h(C),
73
74
  ...e
74
75
  };
75
76
  }
76
77
  function W(e) {
77
78
  const t = m(e, g);
78
- F.triggerFormFinish(n.name, e), n.syncToUrl && A(C, B(n.syncToUrl, t, "set")), n.onFinish?.(t);
79
+ F.triggerFormFinish(n.name, e), n.syncToUrl && A(v, B(n.syncToUrl, t, "set")), n.onFinish?.(t);
79
80
  }
80
81
  const q = async () => {
81
82
  s.value?.resetFields(), await te(() => {
82
83
  Object.keys(l).forEach((e) => delete l[e]), Object.assign(l, d), y(), n.syncToUrl && A(
83
- C,
84
+ v,
84
85
  B(
85
86
  n.syncToUrl,
86
87
  m(d, g),
@@ -126,7 +127,7 @@ const we = /* @__PURE__ */ z({
126
127
  const r = x(d, t);
127
128
  if (ge(r, e))
128
129
  return;
129
- const o = x(h(v), t);
130
+ const o = x(h(C), t);
130
131
  T(o) && n.syncToUrlPriority || (V(t, e, !1), J(t, e));
131
132
  }
132
133
  function X(e, t) {
@@ -115,6 +115,7 @@ declare function __VLS_template(): {
115
115
  readonly onFinish?: ((values: any) => void) | undefined;
116
116
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
117
117
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
118
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
118
119
  readonly initialValues?: Recordable | undefined;
119
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
120
121
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -349,11 +350,16 @@ declare function __VLS_template(): {
349
350
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
350
351
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
351
352
  };
353
+ variant: {
354
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
355
+ default: "filled" | "outlined" | "borderless" | "underlined";
356
+ };
352
357
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
353
358
  size: ButtonSize;
354
359
  onSubmit: (e: Event) => void;
355
360
  disabled: boolean;
356
361
  validateTrigger: string | string[];
362
+ variant: "filled" | "outlined" | "borderless" | "underlined";
357
363
  onFinish: (values: any) => void;
358
364
  validateMessages: ValidateMessages;
359
365
  requiredMark: "" | RequiredMark;
@@ -669,11 +675,16 @@ declare function __VLS_template(): {
669
675
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
670
676
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
671
677
  };
678
+ variant: {
679
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
680
+ default: "filled" | "outlined" | "borderless" | "underlined";
681
+ };
672
682
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
673
683
  size: ButtonSize;
674
684
  onSubmit: (e: Event) => void;
675
685
  disabled: boolean;
676
686
  validateTrigger: string | string[];
687
+ variant: "filled" | "outlined" | "borderless" | "underlined";
677
688
  onFinish: (values: any) => void;
678
689
  validateMessages: ValidateMessages;
679
690
  requiredMark: "" | RequiredMark;
@@ -1063,6 +1074,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1063
1074
  readonly onFinish?: ((values: any) => void) | undefined;
1064
1075
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
1065
1076
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1077
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
1066
1078
  readonly initialValues?: Recordable | undefined;
1067
1079
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1068
1080
  readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
@@ -1297,11 +1309,16 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1297
1309
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1298
1310
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1299
1311
  };
1312
+ variant: {
1313
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1314
+ default: "filled" | "outlined" | "borderless" | "underlined";
1315
+ };
1300
1316
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1301
1317
  size: ButtonSize;
1302
1318
  onSubmit: (e: Event) => void;
1303
1319
  disabled: boolean;
1304
1320
  validateTrigger: string | string[];
1321
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1305
1322
  onFinish: (values: any) => void;
1306
1323
  validateMessages: ValidateMessages;
1307
1324
  requiredMark: "" | RequiredMark;
@@ -1617,11 +1634,16 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1617
1634
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
1618
1635
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1619
1636
  };
1637
+ variant: {
1638
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
1639
+ default: "filled" | "outlined" | "borderless" | "underlined";
1640
+ };
1620
1641
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1621
1642
  size: ButtonSize;
1622
1643
  onSubmit: (e: Event) => void;
1623
1644
  disabled: boolean;
1624
1645
  validateTrigger: string | string[];
1646
+ variant: "filled" | "outlined" | "borderless" | "underlined";
1625
1647
  onFinish: (values: any) => void;
1626
1648
  validateMessages: ValidateMessages;
1627
1649
  requiredMark: "" | RequiredMark;
@@ -57,6 +57,7 @@ const Le = /* @__PURE__ */ K({
57
57
  onFieldsChange: {},
58
58
  onFinishFailed: {},
59
59
  onValidate: {},
60
+ variant: {},
60
61
  initialValues: {},
61
62
  onValuesChange: {},
62
63
  syncToUrl: {