@aplus-frontend/ui 6.35.2 → 6.36.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 (119) hide show
  1. package/es/src/ap-field/date/index.vue.mjs +6 -5
  2. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  3. package/es/src/ap-field/date-range/index.vue.mjs +20 -17
  4. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  5. package/es/src/ap-field/index.d.ts +3 -3
  6. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  8. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  9. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  10. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  11. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  12. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  13. package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  14. package/es/src/ap-form/interface.d.ts +12 -1
  15. package/es/src/ap-form/item/index.vue.d.ts +34 -34
  16. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  17. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  18. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  19. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  20. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
  21. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  22. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  23. package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
  24. package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
  25. package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  26. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  27. package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
  28. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
  31. package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
  32. package/es/src/ap-form/search-form/index.vue.mjs +94 -88
  33. package/es/src/ap-modal/utils/createModal.mjs +38 -35
  34. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  35. package/es/src/ap-table/constants.d.ts +77 -77
  36. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
  37. package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  38. package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
  39. package/es/src/business/ap-attachment/constans.d.ts +4 -0
  40. package/es/src/business/ap-attachment/constans.mjs +4 -0
  41. package/es/src/business/ap-attachment/index.d.ts +15 -0
  42. package/es/src/business/ap-attachment/interface.d.ts +1 -0
  43. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
  44. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  45. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  46. package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  47. package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
  48. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  49. package/es/src/config-provider/config-provider.d.ts +10 -1
  50. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  51. package/es/src/config-provider/index.d.ts +16 -1
  52. package/es/src/utils/config-provider-preset.d.ts +3 -1
  53. package/es/src/version.d.ts +1 -1
  54. package/es/src/version.mjs +1 -1
  55. package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  56. package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
  57. package/lib/src/ap-field/date/index.vue.js +1 -1
  58. package/lib/src/ap-field/date/read.vue2.js +1 -1
  59. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  60. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  61. package/lib/src/ap-field/index.d.ts +3 -3
  62. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  63. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  64. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  65. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  66. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  67. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  68. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  69. package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  70. package/lib/src/ap-form/interface.d.ts +12 -1
  71. package/lib/src/ap-form/item/index.vue.d.ts +34 -34
  72. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  74. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  76. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
  77. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  78. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  79. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
  80. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
  81. package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  82. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  83. package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
  84. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  85. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  86. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  87. package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
  88. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  89. package/lib/src/ap-modal/utils/createModal.js +1 -1
  90. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  91. package/lib/src/ap-table/constants.d.ts +77 -77
  92. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  93. package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  94. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  95. package/lib/src/business/ap-attachment/constans.d.ts +4 -0
  96. package/lib/src/business/ap-attachment/constans.js +1 -1
  97. package/lib/src/business/ap-attachment/index.d.ts +15 -0
  98. package/lib/src/business/ap-attachment/interface.d.ts +1 -0
  99. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  100. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  101. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  102. package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  103. package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
  104. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  105. package/lib/src/config-provider/config-provider.d.ts +10 -1
  106. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  107. package/lib/src/config-provider/index.d.ts +16 -1
  108. package/lib/src/utils/config-provider-preset.d.ts +3 -1
  109. package/lib/src/version.d.ts +1 -1
  110. package/lib/src/version.js +1 -1
  111. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  112. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  113. package/package.json +3 -3
  114. package/theme/ap-attachment/ap-attachment.css +8 -4
  115. package/theme/ap-attachment/ap-attachment.less +8 -4
  116. package/theme/ap-upload/index.css +6 -0
  117. package/theme/ap-upload/multiple-file.css +6 -0
  118. package/theme/ap-upload/multiple-file.less +7 -0
  119. package/theme/index.css +14 -4
@@ -30,7 +30,7 @@ declare function __VLS_template(): {
30
30
  readonly mode?: FieldMode | undefined;
31
31
  readonly class?: unknown;
32
32
  readonly style?: unknown;
33
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
33
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
34
34
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
35
35
  readonly lazy?: boolean | undefined;
36
36
  readonly size?: ButtonSize;
@@ -103,7 +103,7 @@ declare function __VLS_template(): {
103
103
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
104
104
  "update:value": (...args: any[]) => void;
105
105
  }, string, {
106
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
106
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
107
107
  mode: FieldMode;
108
108
  disabled: boolean;
109
109
  bordered: boolean;
@@ -131,7 +131,7 @@ declare function __VLS_template(): {
131
131
  $nextTick: nextTick;
132
132
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
133
133
  } & Readonly<{
134
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
134
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
135
135
  mode: FieldMode;
136
136
  disabled: boolean;
137
137
  bordered: boolean;
@@ -173,10 +173,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
173
173
  select: () => void;
174
174
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextProps> & Readonly<{}>, {
175
175
  disabled: boolean;
176
- hasFeedback: boolean;
177
176
  colon: boolean;
178
- autoLink: boolean;
179
177
  required: boolean;
178
+ hasFeedback: boolean;
179
+ autoLink: boolean;
180
180
  validateFirst: boolean;
181
181
  field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
182
182
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -187,7 +187,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
187
187
  readonly mode?: FieldMode | undefined;
188
188
  readonly class?: unknown;
189
189
  readonly style?: unknown;
190
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
190
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
191
191
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
192
192
  readonly lazy?: boolean | undefined;
193
193
  readonly size?: ButtonSize;
@@ -260,7 +260,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
260
260
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
261
261
  "update:value": (...args: any[]) => void;
262
262
  }, string, {
263
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
263
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
264
264
  mode: FieldMode;
265
265
  disabled: boolean;
266
266
  bordered: boolean;
@@ -288,7 +288,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
288
288
  $nextTick: nextTick;
289
289
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
290
290
  } & Readonly<{
291
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
291
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
292
292
  mode: FieldMode;
293
293
  disabled: boolean;
294
294
  bordered: boolean;
@@ -31,7 +31,7 @@ declare function __VLS_template(): {
31
31
  readonly mode?: FieldMode | undefined;
32
32
  readonly class?: unknown;
33
33
  readonly style?: unknown;
34
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
34
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
35
35
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
36
36
  readonly lazy?: boolean | undefined;
37
37
  readonly size?: ButtonSize;
@@ -107,7 +107,7 @@ declare function __VLS_template(): {
107
107
  "update:value": (...args: any[]) => void;
108
108
  "update:visible": (...args: any[]) => void;
109
109
  }, string, {
110
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
110
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
111
111
  mode: FieldMode;
112
112
  visible: boolean;
113
113
  disabled: boolean;
@@ -138,7 +138,7 @@ declare function __VLS_template(): {
138
138
  $nextTick: nextTick;
139
139
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
140
140
  } & Readonly<{
141
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
141
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
142
142
  mode: FieldMode;
143
143
  visible: boolean;
144
144
  disabled: boolean;
@@ -180,10 +180,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
180
180
  blur: () => void;
181
181
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextPasswordProps> & Readonly<{}>, {
182
182
  disabled: boolean;
183
- hasFeedback: boolean;
184
183
  colon: boolean;
185
- autoLink: boolean;
186
184
  required: boolean;
185
+ hasFeedback: boolean;
186
+ autoLink: boolean;
187
187
  validateFirst: boolean;
188
188
  field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
189
189
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -194,7 +194,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
194
194
  readonly mode?: FieldMode | undefined;
195
195
  readonly class?: unknown;
196
196
  readonly style?: unknown;
197
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
197
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
198
198
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
199
199
  readonly lazy?: boolean | undefined;
200
200
  readonly size?: ButtonSize;
@@ -270,7 +270,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
270
270
  "update:value": (...args: any[]) => void;
271
271
  "update:visible": (...args: any[]) => void;
272
272
  }, string, {
273
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
273
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
274
274
  mode: FieldMode;
275
275
  visible: boolean;
276
276
  disabled: boolean;
@@ -301,7 +301,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
301
301
  $nextTick: nextTick;
302
302
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
303
303
  } & Readonly<{
304
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
304
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
305
305
  mode: FieldMode;
306
306
  visible: boolean;
307
307
  disabled: boolean;
@@ -23,7 +23,7 @@ declare function __VLS_template(): {
23
23
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
24
  "update:value": (...args: any[]) => void;
25
25
  }, PublicProps, {
26
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
26
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
27
27
  mode: FieldMode;
28
28
  disabled: boolean;
29
29
  bordered: boolean;
@@ -313,7 +313,7 @@ declare function __VLS_template(): {
313
313
  blur: () => void;
314
314
  resizableTextArea: any;
315
315
  }, {}, {}, {}, {
316
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
316
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
317
317
  mode: FieldMode;
318
318
  disabled: boolean;
319
319
  bordered: boolean;
@@ -331,10 +331,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
331
331
  resizableTextArea: any;
332
332
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextAreaProps> & Readonly<{}>, {
333
333
  disabled: boolean;
334
- hasFeedback: boolean;
335
334
  colon: boolean;
336
- autoLink: boolean;
337
335
  required: boolean;
336
+ hasFeedback: boolean;
337
+ autoLink: boolean;
338
338
  validateFirst: boolean;
339
339
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
340
340
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -347,7 +347,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
347
347
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
348
348
  "update:value": (...args: any[]) => void;
349
349
  }, PublicProps, {
350
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
350
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
351
351
  mode: FieldMode;
352
352
  disabled: boolean;
353
353
  bordered: boolean;
@@ -637,7 +637,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
637
637
  blur: () => void;
638
638
  resizableTextArea: any;
639
639
  }, {}, {}, {}, {
640
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
640
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
641
641
  mode: FieldMode;
642
642
  disabled: boolean;
643
643
  bordered: boolean;
@@ -828,10 +828,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
828
828
  request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
829
829
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTreeSelectProps> & Readonly<{}>, {
830
830
  disabled: boolean;
831
- hasFeedback: boolean;
832
831
  colon: boolean;
833
- autoLink: boolean;
834
832
  required: boolean;
833
+ hasFeedback: boolean;
834
+ autoLink: boolean;
835
835
  validateFirst: boolean;
836
836
  field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
837
837
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -3,14 +3,15 @@ import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttri
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';
6
- import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
6
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
7
+ import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
10
10
  import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
11
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
13
13
  import { OnCleanup } from '@vue/reactivity';
14
+ import { Breakpoint } from '@aplus-frontend/antdv/es/_util/responsiveObserve';
14
15
  import { LegacyButtonType, ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
15
16
  import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
16
17
  type ApModalFormSlots = {
@@ -31,7 +32,6 @@ declare function __VLS_template(): {
31
32
  readonly onSubmit?: ((e: Event) => void) | undefined;
32
33
  readonly layout?: string | undefined;
33
34
  readonly disabled?: boolean | undefined;
34
- readonly prefixCls?: string | undefined;
35
35
  readonly labelCol?: (Partial< ExtractPropTypes<{
36
36
  span: (StringConstructor | NumberConstructor)[];
37
37
  order: (StringConstructor | NumberConstructor)[];
@@ -100,17 +100,18 @@ declare function __VLS_template(): {
100
100
  }>> & HTMLAttributes) | undefined;
101
101
  readonly colon?: boolean | undefined;
102
102
  readonly labelAlign?: FormLabelAlign | undefined;
103
- readonly name?: string | undefined;
104
- readonly rules?: {
105
- [k: string]: RuleObject | RuleObject[];
106
- } | undefined;
107
- readonly validateTrigger?: string | string[] | undefined;
108
103
  readonly labelWrap?: boolean | undefined;
104
+ readonly prefixCls?: string | undefined;
109
105
  readonly requiredMark?: "" | RequiredMark | undefined;
110
106
  readonly hideRequiredMark?: boolean | undefined;
107
+ readonly rules?: {
108
+ [k: string]: RuleObject | RuleObject[];
109
+ } | undefined;
111
110
  readonly validateMessages?: ValidateMessages | undefined;
112
111
  readonly validateOnRuleChange?: boolean | undefined;
113
112
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
113
+ readonly name?: string | undefined;
114
+ readonly validateTrigger?: string | string[] | undefined;
114
115
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
115
116
  readonly onFinish?: ((values: any) => void) | undefined;
116
117
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
@@ -797,9 +798,9 @@ declare function __VLS_template(): {
797
798
  layout: string;
798
799
  colon: boolean;
799
800
  labelAlign: FormLabelAlign;
800
- validateTrigger: string | string[];
801
801
  hideRequiredMark: boolean;
802
802
  validateOnRuleChange: boolean;
803
+ validateTrigger: string | string[];
803
804
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
804
805
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
805
806
  beforeCreate?: (() => void) | (() => void)[];
@@ -825,11 +826,11 @@ declare function __VLS_template(): {
825
826
  layout: string;
826
827
  colon: boolean;
827
828
  labelAlign: FormLabelAlign;
828
- validateTrigger: string | string[];
829
829
  hideRequiredMark: boolean;
830
830
  validateOnRuleChange: boolean;
831
+ validateTrigger: string | string[];
831
832
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
832
- }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
833
+ }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
833
834
  setFieldsValue: (fields: Partial<any>) => void;
834
835
  setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
835
836
  resetFields: () => Promise<void>;
@@ -873,9 +874,9 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
873
874
  open: boolean;
874
875
  colon: boolean;
875
876
  labelAlign: FormLabelAlign;
876
- validateTrigger: string | string[];
877
877
  hideRequiredMark: boolean;
878
878
  validateOnRuleChange: boolean;
879
+ validateTrigger: string | string[];
879
880
  modalProps: Omit<Partial< ExtractPropTypes<{
880
881
  prefixCls: StringConstructor;
881
882
  visible: {
@@ -902,11 +903,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
902
903
  'onUpdate:open': PropType<(open: boolean) => void>;
903
904
  onChange: PropType<(open: boolean) => void>;
904
905
  afterClose: PropType<() => void>;
906
+ afterOpenChange: PropType<(open: boolean) => void>;
905
907
  centered: {
906
908
  type: BooleanConstructor;
907
909
  default: any;
908
910
  };
909
- width: (StringConstructor | NumberConstructor)[];
911
+ width: {
912
+ type: PropType<string | number | Partial<Record< Breakpoint, string | number>>>;
913
+ default: string | number | Partial<Record< Breakpoint, string | number>>;
914
+ };
910
915
  footer: VueTypeValidableDef<any>;
911
916
  okText: VueTypeValidableDef<any>;
912
917
  okType: PropType<LegacyButtonType>;
@@ -1190,6 +1195,10 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1190
1195
  y: number;
1191
1196
  };
1192
1197
  };
1198
+ loading: {
1199
+ type: BooleanConstructor;
1200
+ default: boolean;
1201
+ };
1193
1202
  }>>, "visible" | "open" | "onUpdate:open">;
1194
1203
  submitter: false | ApFormSubmitterConfig;
1195
1204
  showCancel: boolean;
@@ -1202,7 +1211,6 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1202
1211
  readonly onSubmit?: ((e: Event) => void) | undefined;
1203
1212
  readonly layout?: string | undefined;
1204
1213
  readonly disabled?: boolean | undefined;
1205
- readonly prefixCls?: string | undefined;
1206
1214
  readonly labelCol?: (Partial< ExtractPropTypes<{
1207
1215
  span: (StringConstructor | NumberConstructor)[];
1208
1216
  order: (StringConstructor | NumberConstructor)[];
@@ -1271,17 +1279,18 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1271
1279
  }>> & HTMLAttributes) | undefined;
1272
1280
  readonly colon?: boolean | undefined;
1273
1281
  readonly labelAlign?: FormLabelAlign | undefined;
1274
- readonly name?: string | undefined;
1275
- readonly rules?: {
1276
- [k: string]: RuleObject | RuleObject[];
1277
- } | undefined;
1278
- readonly validateTrigger?: string | string[] | undefined;
1279
1282
  readonly labelWrap?: boolean | undefined;
1283
+ readonly prefixCls?: string | undefined;
1280
1284
  readonly requiredMark?: "" | RequiredMark | undefined;
1281
1285
  readonly hideRequiredMark?: boolean | undefined;
1286
+ readonly rules?: {
1287
+ [k: string]: RuleObject | RuleObject[];
1288
+ } | undefined;
1282
1289
  readonly validateMessages?: ValidateMessages | undefined;
1283
1290
  readonly validateOnRuleChange?: boolean | undefined;
1284
1291
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
1292
+ readonly name?: string | undefined;
1293
+ readonly validateTrigger?: string | string[] | undefined;
1285
1294
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
1286
1295
  readonly onFinish?: ((values: any) => void) | undefined;
1287
1296
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
@@ -1968,9 +1977,9 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1968
1977
  layout: string;
1969
1978
  colon: boolean;
1970
1979
  labelAlign: FormLabelAlign;
1971
- validateTrigger: string | string[];
1972
1980
  hideRequiredMark: boolean;
1973
1981
  validateOnRuleChange: boolean;
1982
+ validateTrigger: string | string[];
1974
1983
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
1975
1984
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1976
1985
  beforeCreate?: (() => void) | (() => void)[];
@@ -1996,11 +2005,11 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1996
2005
  layout: string;
1997
2006
  colon: boolean;
1998
2007
  labelAlign: FormLabelAlign;
1999
- validateTrigger: string | string[];
2000
2008
  hideRequiredMark: boolean;
2001
2009
  validateOnRuleChange: boolean;
2010
+ validateTrigger: string | string[];
2002
2011
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
2003
- }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
2012
+ }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
2004
2013
  setFieldsValue: (fields: Partial<any>) => void;
2005
2014
  setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
2006
2015
  resetFields: () => Promise<void>;
@@ -14,10 +14,10 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: DefineComponent<ApFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFormItemProps> & Readonly<{}>, {
17
- hasFeedback: boolean;
18
17
  colon: boolean;
19
- autoLink: boolean;
20
18
  required: boolean;
19
+ hasFeedback: boolean;
20
+ autoLink: boolean;
21
21
  validateFirst: boolean;
22
22
  bordered: boolean;
23
23
  valuePropName: string;
@@ -1,3 +1,14 @@
1
1
  import { ApFormSearchFormProps } from '../../../ap-form/interface';
2
- import { ComputedRef } from 'vue';
3
- export declare const useCountPerRow: (props: ApFormSearchFormProps) => ComputedRef<number>;
2
+ import { Ref, ComputedRef } from 'vue';
3
+ declare const defaultBreakPoint: {
4
+ readonly xs: 0;
5
+ readonly sm: 768;
6
+ readonly md: 1280;
7
+ readonly lg: 1728;
8
+ };
9
+ type BreakPointNameType = keyof typeof defaultBreakPoint;
10
+ export type BreakPointType = {
11
+ [T in BreakPointNameType]: number;
12
+ };
13
+ export declare const useCountPerRow: (props: ApFormSearchFormProps, wrapperRef: Ref) => ComputedRef<number>;
14
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),l=require("@vueuse/core"),f=require("lodash-unified"),g={xs:0,sm:768,md:1280,lg:1728},w=Object.entries(g).sort((t,n)=>n[1]-t[1]),h=t=>{const n=o.ref(0);o.watch(()=>t.resizeTarget,(e,r,c)=>{const u=f.isUndefined(t.resizeTarget)?document.documentElement:t.resizeTarget,{stop:i}=l.useResizeObserver(u,a=>{const d=a[0],{width:m}=d.contentRect;n.value=m});c(()=>{i()})},{flush:"post",immediate:!0});const s=o.computed(()=>{for(const[e,r]of w)if(o.unref(n)>r)return e;return"md"});return o.computed(()=>{const e=t.countPerRow,r={xs:e-2,sm:e-1,md:e,lg:e+1};return Math.max(1,r[s.value])})};exports.useCountPerRow=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),P=require("@vueuse/core"),v={xs:0,sm:768,md:1280,lg:1728};function w(n){return Object.entries(n).sort((u,o)=>o[1]-u[1])}const R=(n,u)=>{const o=t.ref(0),c=t.computed(()=>{const{resize:e,resizeTarget:r}=n;return e?.target?e.target==="document"?document.documentElement:e.target==="form"?u.value?.$el:e.target:r??document.documentElement}),i=t.computed(()=>{const e=n.resize?.breakPoint??v;return w(e)});t.watch(()=>c.value,(e,r,m)=>{const s=typeof e=="string"?document.querySelector(e):e;if(!s)return;const{stop:d}=P.useResizeObserver(s,l=>{const f=l[0],{width:g}=f.contentRect;o.value=g});m(()=>{d()})},{flush:"post",immediate:!0});const a=t.computed(()=>{for(const[e,r]of i.value)if(t.unref(o)>r)return e;return"md"});return t.computed(()=>{const e=n.countPerRow,r={xs:e-2,sm:e-1,md:e,lg:e+1};return Math.max(1,r[a.value])})};exports.useCountPerRow=R;