@aplus-frontend/ui 7.0.0-beta.3 → 7.0.1

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 (254) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
  3. package/es/src/ag-grid/index.vue.mjs +1 -0
  4. package/es/src/ag-grid/interface.d.ts +1 -0
  5. package/es/src/ag-grid/style/custom-header.d.ts +2 -2
  6. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  7. package/es/src/ag-grid/style/editable.d.ts +2 -2
  8. package/es/src/ag-grid/style/index.d.ts +2 -2
  9. package/es/src/ag-grid/style/index.mjs +0 -1
  10. package/es/src/ap-action/item-dropdown/index.vue.mjs +19 -18
  11. package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
  12. package/es/src/ap-action/style/index.d.ts +2 -2
  13. package/es/src/ap-button/style/index.d.ts +2 -2
  14. package/es/src/ap-button/utils/index.mjs +16 -16
  15. package/es/src/ap-descriptions/style/index.d.ts +2 -2
  16. package/es/src/ap-download/ap-download.vue.d.ts +4 -4
  17. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  18. package/es/src/ap-download/interface.d.ts +4 -0
  19. package/es/src/ap-download/style/index.d.ts +2 -2
  20. package/es/src/ap-drawer/style/index.d.ts +2 -2
  21. package/es/src/ap-field/style/index.d.ts +2 -2
  22. package/es/src/ap-form/style/drawer-form.d.ts +2 -2
  23. package/es/src/ap-form/style/item-group.d.ts +2 -2
  24. package/es/src/ap-form/style/item-text-group.d.ts +2 -2
  25. package/es/src/ap-form/style/item.d.ts +2 -2
  26. package/es/src/ap-form/style/item.mjs +5 -4
  27. package/es/src/ap-form/style/modal-form.d.ts +2 -2
  28. package/es/src/ap-form/style/modal-form.mjs +11 -11
  29. package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
  30. package/es/src/ap-form/style/search-form-sorter.mjs +16 -12
  31. package/es/src/ap-form/style/search-form.d.ts +2 -2
  32. package/es/src/ap-form/style/token.d.ts +4 -0
  33. package/es/src/ap-grid/style/editable.d.ts +2 -2
  34. package/es/src/ap-grid/style/index.d.ts +2 -2
  35. package/es/src/ap-grid/utils/col.mjs +33 -33
  36. package/es/src/ap-list/style/index.d.ts +2 -2
  37. package/es/src/ap-modal/interface.d.ts +31 -11
  38. package/es/src/ap-modal/utils/createModal.mjs +52 -45
  39. package/es/src/ap-pro-card/style/divider.d.ts +2 -2
  40. package/es/src/ap-pro-card/style/index.d.ts +2 -2
  41. package/es/src/ap-pro-card/style/operation.d.ts +2 -2
  42. package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
  43. package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  44. package/es/src/ap-pro-card/style/title.d.ts +2 -2
  45. package/es/src/ap-table/style/ellipsis.d.ts +2 -2
  46. package/es/src/ap-table/style/index-comp.d.ts +2 -2
  47. package/es/src/ap-table/style/index.d.ts +2 -2
  48. package/es/src/ap-table/style/setting.d.ts +2 -2
  49. package/es/src/ap-tag/style/group.d.ts +2 -2
  50. package/es/src/ap-tag/style/index.d.ts +2 -2
  51. package/es/src/ap-upload/apUpload.vue.mjs +32 -31
  52. package/es/src/ap-upload/style/index.d.ts +2 -2
  53. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  54. package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
  55. package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  56. package/es/src/business/ag-grid-modal/utils.mjs +23 -23
  57. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  58. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  59. package/es/src/business/ap-appendix/style/index.d.ts +3 -3
  60. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  61. package/es/src/business/ap-attachment/ApAttachment.mjs +70 -66
  62. package/es/src/business/ap-attachment/style/index.d.ts +2 -2
  63. package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
  64. package/es/src/business/ap-batch-action/style/index.mjs +1 -1
  65. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
  66. package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  67. package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
  68. package/es/src/business/ap-card/style/index.d.ts +3 -3
  69. package/es/src/business/ap-card/style/index.mjs +8 -8
  70. package/es/src/business/ap-copy/style/index.d.ts +2 -2
  71. package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  72. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  73. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
  74. package/es/src/business/ap-expand-alert/index.d.ts +5 -2
  75. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  76. package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
  77. package/es/src/business/ap-image/style/index.d.ts +3 -3
  78. package/es/src/business/ap-image/style/index.mjs +6 -6
  79. package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
  80. package/es/src/business/ap-label/style/index.d.ts +2 -2
  81. package/es/src/business/ap-ladder/style/index.d.ts +2 -2
  82. package/es/src/business/ap-ladder/style/index.mjs +2 -5
  83. package/es/src/business/ap-product-info/style/index.d.ts +2 -2
  84. package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
  85. package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
  86. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  87. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  88. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  89. package/es/src/business/ap-size-input/constans.mjs +9 -1
  90. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  91. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  92. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  93. package/es/src/business/ap-size-input/index.d.ts +33 -8
  94. package/es/src/business/ap-size-input/index.mjs +3 -2
  95. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  96. package/es/src/business/ap-size-input/style/index.d.ts +2 -2
  97. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  98. package/es/src/business/ap-status/style/index.d.ts +2 -2
  99. package/es/src/business/ap-summary/style/index.d.ts +2 -2
  100. package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
  101. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
  102. package/es/src/business/ap-title/style/index.d.ts +2 -2
  103. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  104. package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
  105. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  106. package/es/src/business/ap-view/style/index.d.ts +3 -3
  107. package/es/src/business/ap-view/style/index.mjs +2 -2
  108. package/es/src/business/batch-input-group/style/index.d.ts +2 -2
  109. package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
  110. package/es/src/check-card/style/index.d.ts +2 -2
  111. package/es/src/check-card/style/index.mjs +46 -51
  112. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  113. package/es/src/design-token/interface.d.ts +24 -1
  114. package/es/src/editable-table/style/index.d.ts +2 -2
  115. package/es/src/full-screen/style/index.d.ts +2 -2
  116. package/es/src/index.mjs +95 -93
  117. package/es/src/mask/style/index.d.ts +2 -2
  118. package/es/src/scroll-bar/style/index.d.ts +2 -2
  119. package/es/src/scroll-view/style/index.d.ts +2 -2
  120. package/es/src/splitter/style/index.d.ts +2 -2
  121. package/es/src/text/style/group.d.ts +2 -2
  122. package/es/src/text/style/index.d.ts +2 -2
  123. package/es/src/utils/cssinjs/index.d.ts +2 -2
  124. package/es/src/utils/cssinjs/index.mjs +54 -48
  125. package/es/src/utils/cssinjs/plugin-specificity.mjs +13 -0
  126. package/es/src/version.d.ts +1 -1
  127. package/es/src/version.mjs +1 -1
  128. package/lib/index.js +1 -1
  129. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  130. package/lib/src/ag-grid/index.vue.js +1 -1
  131. package/lib/src/ag-grid/interface.d.ts +1 -0
  132. package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
  133. package/lib/src/ag-grid/style/custom-header.js +1 -1
  134. package/lib/src/ag-grid/style/editable.d.ts +2 -2
  135. package/lib/src/ag-grid/style/index.d.ts +2 -2
  136. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  137. package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
  138. package/lib/src/ap-action/style/index.d.ts +2 -2
  139. package/lib/src/ap-button/style/index.d.ts +2 -2
  140. package/lib/src/ap-button/utils/index.js +1 -1
  141. package/lib/src/ap-descriptions/style/index.d.ts +2 -2
  142. package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
  143. package/lib/src/ap-download/ap-download.vue.js +1 -1
  144. package/lib/src/ap-download/interface.d.ts +4 -0
  145. package/lib/src/ap-download/style/index.d.ts +2 -2
  146. package/lib/src/ap-drawer/style/index.d.ts +2 -2
  147. package/lib/src/ap-field/style/index.d.ts +2 -2
  148. package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
  149. package/lib/src/ap-form/style/item-group.d.ts +2 -2
  150. package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
  151. package/lib/src/ap-form/style/item.d.ts +2 -2
  152. package/lib/src/ap-form/style/item.js +1 -1
  153. package/lib/src/ap-form/style/modal-form.d.ts +2 -2
  154. package/lib/src/ap-form/style/modal-form.js +1 -1
  155. package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
  156. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  157. package/lib/src/ap-form/style/search-form.d.ts +2 -2
  158. package/lib/src/ap-form/style/token.d.ts +4 -0
  159. package/lib/src/ap-grid/style/editable.d.ts +2 -2
  160. package/lib/src/ap-grid/style/index.d.ts +2 -2
  161. package/lib/src/ap-grid/utils/col.js +1 -1
  162. package/lib/src/ap-list/style/index.d.ts +2 -2
  163. package/lib/src/ap-modal/interface.d.ts +31 -11
  164. package/lib/src/ap-modal/utils/createModal.js +1 -1
  165. package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
  166. package/lib/src/ap-pro-card/style/index.d.ts +2 -2
  167. package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
  168. package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
  169. package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  170. package/lib/src/ap-pro-card/style/title.d.ts +2 -2
  171. package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
  172. package/lib/src/ap-table/style/index-comp.d.ts +2 -2
  173. package/lib/src/ap-table/style/index.d.ts +2 -2
  174. package/lib/src/ap-table/style/setting.d.ts +2 -2
  175. package/lib/src/ap-tag/style/group.d.ts +2 -2
  176. package/lib/src/ap-tag/style/index.d.ts +2 -2
  177. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  178. package/lib/src/ap-upload/style/index.d.ts +2 -2
  179. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  180. package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
  181. package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  182. package/lib/src/business/ag-grid-modal/utils.js +1 -1
  183. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  184. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  185. package/lib/src/business/ap-appendix/style/index.d.ts +3 -3
  186. package/lib/src/business/ap-appendix/style/index.js +1 -1
  187. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  188. package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
  189. package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
  190. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  191. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  192. package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  193. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  194. package/lib/src/business/ap-card/style/index.d.ts +3 -3
  195. package/lib/src/business/ap-card/style/index.js +1 -1
  196. package/lib/src/business/ap-copy/style/index.d.ts +2 -2
  197. package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  198. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  199. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  200. package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
  201. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  202. package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
  203. package/lib/src/business/ap-image/style/index.d.ts +3 -3
  204. package/lib/src/business/ap-image/style/index.js +1 -1
  205. package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
  206. package/lib/src/business/ap-label/style/index.d.ts +2 -2
  207. package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
  208. package/lib/src/business/ap-ladder/style/index.js +1 -1
  209. package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
  210. package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
  211. package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
  212. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  213. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  214. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  215. package/lib/src/business/ap-size-input/constans.js +1 -1
  216. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  217. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  218. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  219. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  220. package/lib/src/business/ap-size-input/index.js +1 -1
  221. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  222. package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
  223. package/lib/src/business/ap-size-input/style/index.js +1 -1
  224. package/lib/src/business/ap-status/style/index.d.ts +2 -2
  225. package/lib/src/business/ap-summary/style/index.d.ts +2 -2
  226. package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
  227. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  228. package/lib/src/business/ap-title/style/index.d.ts +2 -2
  229. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  230. package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
  231. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  232. package/lib/src/business/ap-view/style/index.d.ts +3 -3
  233. package/lib/src/business/ap-view/style/index.js +1 -1
  234. package/lib/src/business/batch-input-group/style/index.d.ts +2 -2
  235. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  236. package/lib/src/check-card/style/index.d.ts +2 -2
  237. package/lib/src/check-card/style/index.js +1 -1
  238. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  239. package/lib/src/design-token/interface.d.ts +24 -1
  240. package/lib/src/editable-table/style/index.d.ts +2 -2
  241. package/lib/src/full-screen/style/index.d.ts +2 -2
  242. package/lib/src/index.js +1 -1
  243. package/lib/src/mask/style/index.d.ts +2 -2
  244. package/lib/src/scroll-bar/style/index.d.ts +2 -2
  245. package/lib/src/scroll-view/style/index.d.ts +2 -2
  246. package/lib/src/splitter/style/index.d.ts +2 -2
  247. package/lib/src/text/style/group.d.ts +2 -2
  248. package/lib/src/text/style/index.d.ts +2 -2
  249. package/lib/src/utils/cssinjs/index.d.ts +2 -2
  250. package/lib/src/utils/cssinjs/index.js +1 -1
  251. package/lib/src/utils/cssinjs/plugin-specificity.js +1 -0
  252. package/lib/src/version.d.ts +1 -1
  253. package/lib/src/version.js +1 -1
  254. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ import { defineComponent as r, createBlock as i, openBlock as p, unref as e, normalizeProps as l, guardReactiveProps as t, withCtx as d, createVNode as n } from "vue";
2
+ import m from "./ApSizeInput.mjs";
3
+ import { ApForm as s } from "../../ap-form/index.mjs";
4
+ import { omit as u } from "lodash-unified";
5
+ const _ = /* @__PURE__ */ r({
6
+ name: "ApFormItemSizeInput",
7
+ __name: "form-item",
8
+ props: {
9
+ field: {},
10
+ htmlFor: {},
11
+ prefixCls: {},
12
+ label: {},
13
+ help: {},
14
+ extra: {},
15
+ labelCol: {},
16
+ wrapperCol: {},
17
+ hasFeedback: { type: Boolean, default: void 0 },
18
+ colon: { type: Boolean, default: void 0 },
19
+ labelAlign: {},
20
+ prop: {},
21
+ name: {},
22
+ rules: {},
23
+ autoLink: { type: Boolean, default: void 0 },
24
+ required: { type: Boolean, default: void 0 },
25
+ validateFirst: { type: Boolean, default: void 0 },
26
+ validateStatus: {},
27
+ validateTrigger: {},
28
+ messageVariables: {},
29
+ hidden: { type: Boolean, default: void 0 },
30
+ noStyle: { type: Boolean, default: void 0 },
31
+ tooltip: {},
32
+ span: {},
33
+ order: {},
34
+ offset: {},
35
+ push: {},
36
+ pull: {},
37
+ xs: {},
38
+ sm: {},
39
+ md: {},
40
+ lg: {},
41
+ xl: {},
42
+ xxl: {},
43
+ flex: {},
44
+ bordered: { type: Boolean, default: void 0 },
45
+ valuePropName: {},
46
+ initialValue: {},
47
+ _signal: {},
48
+ transform: {},
49
+ description: {},
50
+ customFilled: {},
51
+ disabled: { type: Boolean }
52
+ },
53
+ setup(a) {
54
+ const o = a;
55
+ return (f, c) => (p(), i(e(s).FormItem, l(t(e(u)(o, ["field"]))), {
56
+ default: d(() => [
57
+ n(e(m), l(t(o.field || {})), null, 16)
58
+ ]),
59
+ _: 1
60
+ }, 16));
61
+ }
62
+ });
63
+ export {
64
+ _ as default
65
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./form-item.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,5 @@
1
- import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { default as ApFormItemSizeInput } from './form-item.vue';
2
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, StyleValue, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
3
  export * from './interface';
3
4
  declare const ApSizeInput: {
4
5
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -27,7 +28,7 @@ declare const ApSizeInput: {
27
28
  };
28
29
  min: {
29
30
  type: NumberConstructor;
30
- default: number;
31
+ required: boolean;
31
32
  };
32
33
  max: {
33
34
  type: NumberConstructor;
@@ -37,11 +38,19 @@ declare const ApSizeInput: {
37
38
  type: NumberConstructor;
38
39
  default: number;
39
40
  };
41
+ disabled: {
42
+ type: BooleanConstructor;
43
+ required: boolean;
44
+ };
45
+ style: {
46
+ type: PropType<StyleValue>;
47
+ required: boolean;
48
+ };
40
49
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
41
50
  step: number;
42
51
  value: (string | number)[];
52
+ disabled: boolean;
43
53
  placeholder: string[];
44
- min: number;
45
54
  max: number;
46
55
  precision: number;
47
56
  editable: boolean;
@@ -79,7 +88,7 @@ declare const ApSizeInput: {
79
88
  };
80
89
  min: {
81
90
  type: NumberConstructor;
82
- default: number;
91
+ required: boolean;
83
92
  };
84
93
  max: {
85
94
  type: NumberConstructor;
@@ -89,11 +98,19 @@ declare const ApSizeInput: {
89
98
  type: NumberConstructor;
90
99
  default: number;
91
100
  };
101
+ disabled: {
102
+ type: BooleanConstructor;
103
+ required: boolean;
104
+ };
105
+ style: {
106
+ type: PropType<StyleValue>;
107
+ required: boolean;
108
+ };
92
109
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
93
110
  step: number;
94
111
  value: (string | number)[];
112
+ disabled: boolean;
95
113
  placeholder: string[];
96
- min: number;
97
114
  max: number;
98
115
  precision: number;
99
116
  editable: boolean;
@@ -128,7 +145,7 @@ declare const ApSizeInput: {
128
145
  };
129
146
  min: {
130
147
  type: NumberConstructor;
131
- default: number;
148
+ required: boolean;
132
149
  };
133
150
  max: {
134
151
  type: NumberConstructor;
@@ -138,11 +155,19 @@ declare const ApSizeInput: {
138
155
  type: NumberConstructor;
139
156
  default: number;
140
157
  };
158
+ disabled: {
159
+ type: BooleanConstructor;
160
+ required: boolean;
161
+ };
162
+ style: {
163
+ type: PropType<StyleValue>;
164
+ required: boolean;
165
+ };
141
166
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
167
  step: number;
143
168
  value: (string | number)[];
169
+ disabled: boolean;
144
170
  placeholder: string[];
145
- min: number;
146
171
  max: number;
147
172
  precision: number;
148
173
  editable: boolean;
@@ -152,4 +177,4 @@ declare const ApSizeInput: {
152
177
  onClick?: () => void;
153
178
  };
154
179
  }));
155
- export { ApSizeInput };
180
+ export { ApSizeInput, ApFormItemSizeInput };
@@ -1,7 +1,8 @@
1
1
  import t from "./ApSizeInput.mjs";
2
2
  import { withInstall as p } from "@aplus-frontend/utils";
3
+ import "./form-item.vue2.mjs";
3
4
  import "./interface.mjs";
4
- const m = p(t);
5
+ const n = p(t);
5
6
  export {
6
- m as ApSizeInput
7
+ n as ApSizeInput
7
8
  };
@@ -1,3 +1,5 @@
1
+ import { StyleValue } from 'vue';
2
+ import { ApFormItemProps } from '../../ap-form';
1
3
  export type ApSizeInputProps = {
2
4
  value?: Array<string | number>;
3
5
  placeholder?: Array<string>;
@@ -8,4 +10,9 @@ export type ApSizeInputProps = {
8
10
  min?: number;
9
11
  max?: number;
10
12
  precision?: number;
13
+ disabled?: boolean;
14
+ style?: StyleValue;
11
15
  };
16
+ export interface ApFormItemSizeInputProps extends ApFormItemProps {
17
+ field?: ApSizeInputProps;
18
+ }
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -2,7 +2,8 @@ import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
2
  const n = (e) => ({
3
3
  [e.componentCls]: {
4
4
  display: "flex",
5
- alignItems: "center"
5
+ alignItems: "center",
6
+ gap: "8px"
6
7
  }
7
8
  }), p = t("ApSizeInput", (e) => [
8
9
  n(e)
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genApTableModalStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as q, createVNode as h, resolveDynamicComponent as V } from "vue";
2
- import { message as R, Modal as j } from "@aplus-frontend/antdv";
1
+ import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as j, createVNode as h, resolveDynamicComponent as q } from "vue";
2
+ import { message as R, Modal as V } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { ApTable as z } from "../../ap-table/index.mjs";
5
5
  import { cloneDeep as W, omit as T } from "lodash-unified";
@@ -67,24 +67,24 @@ const ye = /* @__PURE__ */ G({
67
67
  },
68
68
  emits: ["finish"],
69
69
  setup(S, { expose: B, emit: P }) {
70
- const e = S, M = P, s = d(!1), v = d({}), i = d(null), a = d([]), b = d();
71
- let f = null, u = null;
70
+ const e = S, M = P, i = d(!1), v = d({}), u = d(null), a = d([]), b = d();
71
+ let f = null, c = null;
72
72
  const { b: K } = X("ap-table-modal"), I = Q("ap-table-modal"), { t: C } = Y(), O = async (t = [], o = {}) => {
73
- switch (a.value = [...t], s.value = !0, v.value = o?.extraParams, b.value = o.apTableDataSources || e.apTableProps?.dataSource, o.refreshMode || "reset") {
73
+ switch (a.value = [...t], i.value = !0, v.value = o?.extraParams, b.value = o.apTableDataSources || e.apTableProps?.dataSource, o.refreshMode || "reset") {
74
74
  case "reset":
75
- i.value?.reset();
75
+ u.value?.reset();
76
76
  break;
77
77
  case "submit":
78
- i.value?.submit();
78
+ u.value?.submit();
79
79
  break;
80
80
  case "none":
81
81
  break;
82
82
  }
83
83
  return new Promise((n, l) => {
84
- f = n, u = l;
84
+ f = n, c = (s) => l("Ignored Reject: " + s);
85
85
  });
86
86
  }, x = () => {
87
- s.value = !1, f = null, u?.(y.ModalCancel), u = null;
87
+ i.value = !1, f = null, c?.(y.ModalCancel), c = null;
88
88
  }, _ = async (t) => {
89
89
  t = J({
90
90
  ...t,
@@ -97,7 +97,7 @@ const ye = /* @__PURE__ */ G({
97
97
  };
98
98
  }, N = async () => {
99
99
  if (a.value.length > e.maxCount) {
100
- u?.(y.ExceedMaxCount);
100
+ c?.(y.ExceedMaxCount);
101
101
  return;
102
102
  }
103
103
  if (e.getRowKey) {
@@ -109,10 +109,10 @@ const ye = /* @__PURE__ */ G({
109
109
  return;
110
110
  M("finish", o, t), f?.({ keys: o, rows: t });
111
111
  } else {
112
- u?.(y.NotFineGetRowKey);
112
+ c?.(y.NotFineGetRowKey);
113
113
  return;
114
114
  }
115
- s.value = !1;
115
+ i.value = !1;
116
116
  }, D = H(() => {
117
117
  if (!e.getRowKey) return;
118
118
  const t = e.getRowKey;
@@ -130,12 +130,12 @@ const ye = /* @__PURE__ */ G({
130
130
  );
131
131
  return;
132
132
  }
133
- const l = i.value?.dataSource;
133
+ const l = u.value?.dataSource;
134
134
  if (o) {
135
- const c = r(l).filter((p) => !a.value.some((E) => t(E) === t(p)));
136
- a.value = a.value.concat(c);
135
+ const s = r(l).filter((p) => !a.value.some((E) => t(E) === t(p)));
136
+ a.value = a.value.concat(s);
137
137
  } else
138
- a.value = a.value?.filter((c) => !l.some((p) => t(p) === t(c)));
138
+ a.value = a.value?.filter((s) => !l.some((p) => t(p) === t(s)));
139
139
  },
140
140
  onSelect(o, n) {
141
141
  if (n) {
@@ -150,7 +150,7 @@ const ye = /* @__PURE__ */ G({
150
150
  e.rowSelection?.type === "radio" ? a.value = [o] : a.value.push(o);
151
151
  } else {
152
152
  const l = a.value.findIndex(
153
- (c) => t(o) === t(c)
153
+ (s) => t(o) === t(s)
154
154
  );
155
155
  a.value.splice(l, 1);
156
156
  }
@@ -171,7 +171,7 @@ const ye = /* @__PURE__ */ G({
171
171
  {
172
172
  default: e.renderModalTitleSuffix ?? void 0
173
173
  }
174
- ) : e.title, A = () => i.value, F = () => {
174
+ ) : e.title, A = () => u.value, F = () => {
175
175
  a.value = [];
176
176
  }, $ = (t) => {
177
177
  const o = e.getRowKey;
@@ -185,10 +185,10 @@ const ye = /* @__PURE__ */ G({
185
185
  open: O,
186
186
  close: x,
187
187
  getApTableInstance: A
188
- }), (t, o) => (g(), w(r(j), m(
188
+ }), (t, o) => (g(), w(r(V), m(
189
189
  {
190
- open: s.value,
191
- "onUpdate:open": o[0] || (o[0] = (n) => s.value = n)
190
+ open: i.value,
191
+ "onUpdate:open": o[0] || (o[0] = (n) => i.value = n)
192
192
  },
193
193
  r(T)(e, [
194
194
  "api",
@@ -213,7 +213,7 @@ const ye = /* @__PURE__ */ G({
213
213
  }
214
214
  ), {
215
215
  default: k(() => [
216
- e.renderHeader ? (g(), w(V(e.renderHeader), { key: 0 })) : q("", !0),
216
+ e.renderHeader ? (g(), w(q(e.renderHeader), { key: 0 })) : j("", !0),
217
217
  h(ee, m(e.tableLayoutConfig || {}, {
218
218
  "selected-list": a.value,
219
219
  onClear: F,
@@ -222,7 +222,7 @@ const ye = /* @__PURE__ */ G({
222
222
  default: k(() => [
223
223
  h(r(z), m({
224
224
  ref_key: "apTableRef",
225
- ref: i,
225
+ ref: u,
226
226
  scroll: { y: 450 },
227
227
  style: { padding: "0px" },
228
228
  columns: t.columns,
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genApTitleStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,105 +1,102 @@
1
- import { defineComponent as R, ref as y, watch as $, createElementBlock as l, openBlock as c, normalizeClass as C, unref as e, createElementVNode as a, createCommentVNode as w, toDisplayString as m, createVNode as i, withModifiers as T, withCtx as r } from "vue";
1
+ import { defineComponent as T, ref as y, watch as $, createElementBlock as l, openBlock as m, normalizeClass as V, unref as e, createElementVNode as o, createCommentVNode as f, toDisplayString as c, createVNode as i, withModifiers as b, withCtx as r } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useViewInject as B } from "../hooks/use-view-provide.mjs";
4
- import { SYSTEM_VIEW_KEY as V } from "../utils/enum.mjs";
5
- import { Space as h, Popconfirm as F } from "@aplus-frontend/antdv";
4
+ import { SYSTEM_VIEW_KEY as h } from "../utils/enum.mjs";
5
+ import { Space as C, Popconfirm as F } from "@aplus-frontend/antdv";
6
6
  import L from "../icons/line-delete.vue.mjs";
7
7
  import "../../../ap-tag/index.mjs";
8
8
  import "../../../ap-form/ap-form.vue.mjs";
9
- import { ApField as Y } from "../../../ap-field/index.mjs";
10
- import j from "../style/index.mjs";
11
- import { useNamespace as A } from "../../../config-provider/hooks/use-namespace.mjs";
12
- import { useLocale as G } from "../../../config-provider/hooks/use-locale.mjs";
13
- import { useGlobalConfig as O } from "../../../config-provider/hooks/use-global-config.mjs";
14
- import P from "../../../ap-tag/ap-tag.vue.mjs";
9
+ import { ApField as M } from "../../../ap-field/index.mjs";
10
+ import P from "../style/index.mjs";
11
+ import { useToken as Y } from "../../../config-provider/hooks/use-token.mjs";
12
+ import { useNamespace as j } from "../../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
14
+ import O from "../../../ap-tag/ap-tag.vue.mjs";
15
15
  import x from "../../../ap-form/ap-form.vue2.mjs";
16
16
  const U = { class: "menu-list-content-name" }, W = ["title"], q = {
17
17
  key: 0,
18
18
  class: "menu-list-content-default"
19
- }, H = { class: "menu-list-content-action-delete" }, J = { class: "menu-list-content-edit" }, ve = /* @__PURE__ */ R({
19
+ }, G = { class: "menu-list-content-action-delete" }, H = { class: "menu-list-content-edit" }, ve = /* @__PURE__ */ T({
20
20
  __name: "menu-list-content",
21
21
  props: {
22
22
  view: {}
23
23
  },
24
24
  setup(N) {
25
- const { b: u } = A("ap-view"), d = j("ap-view"), { t: n } = G(), t = N, K = {
26
- aplus: "#2ed1a3",
27
- admin: "#34b77c"
28
- }, D = O("uiMode"), {
29
- currentViewKey: S,
30
- changeCurrentViewKey: g,
25
+ const { b: v } = j("ap-view"), d = P("ap-view"), { token: K } = Y(), { t: n } = A(), t = N, {
26
+ currentViewKey: D,
27
+ changeCurrentViewKey: S,
31
28
  viewListCRUD: p,
32
- tableKey: f,
29
+ tableKey: w,
33
30
  menuOpen: _
34
- } = B(), s = y(!1), k = y(), E = () => {
35
- g(t.view.viewKey), _.value = !1;
36
- }, I = () => {
31
+ } = B(), s = y(!1), k = y(), g = () => {
32
+ S(t.view.viewKey), _.value = !1;
33
+ }, E = () => {
37
34
  p?.changeView?.({
38
35
  ...t.view,
39
- tableKey: f,
36
+ tableKey: w,
40
37
  isDefault: !0
41
38
  });
42
- }, M = () => {
39
+ }, I = () => {
43
40
  p?.removeView?.({
44
- tableKey: f,
41
+ tableKey: w,
45
42
  viewKey: t.view.viewKey
46
43
  });
47
- }, b = async () => {
48
- const v = await k.value?.validate?.();
44
+ }, z = async () => {
45
+ const u = await k.value?.validate?.();
49
46
  p?.changeView?.({
50
47
  ...t.view,
51
- tableKey: f,
52
- viewName: v?.viewName || t.view.viewName
48
+ tableKey: w,
49
+ viewName: u?.viewName || t.view.viewName
53
50
  }), s.value = !1;
54
51
  };
55
52
  return $(
56
53
  () => _.value,
57
- (v) => {
58
- v && (s.value = !1);
54
+ (u) => {
55
+ u && (s.value = !1);
59
56
  }
60
- ), (v, o) => s.value === !1 ? (c(), l("div", {
57
+ ), (u, a) => s.value === !1 ? (m(), l("div", {
61
58
  key: 0,
62
- class: C({
63
- [e(u)("menu-list-content")]: !0,
64
- [e(u)("menu-list-content-active")]: t.view?.viewKey === e(S),
59
+ class: V({
60
+ [e(v)("menu-list-content")]: !0,
61
+ [e(v)("menu-list-content-active")]: t.view?.viewKey === e(D),
65
62
  hashId: e(d)
66
63
  }),
67
- onClick: E
64
+ onClick: g
68
65
  }, [
69
- a("div", U, [
70
- a("span", {
66
+ o("div", U, [
67
+ o("span", {
71
68
  title: t.view?.viewName
72
- }, m(t.view?.viewName), 9, W)
69
+ }, c(t.view?.viewName), 9, W)
73
70
  ]),
74
- t.view?.viewKey !== e(V) && t.view?.isDefault ? (c(), l("div", q, [
75
- i(e(P), {
71
+ t.view?.viewKey !== e(h) && t.view?.isDefault ? (m(), l("div", q, [
72
+ i(e(O), {
76
73
  text: e(n)("ap.apView.default"),
77
74
  size: "small",
78
- color: K[e(D) ?? "aplus"]
75
+ color: e(K).colorPrimary
79
76
  }, null, 8, ["text", "color"])
80
- ])) : w("", !0),
81
- t.view?.viewKey !== e(V) ? (c(), l("div", {
77
+ ])) : f("", !0),
78
+ t.view?.viewKey !== e(h) ? (m(), l("div", {
82
79
  key: 1,
83
80
  class: "menu-list-content-action",
84
- onClick: o[1] || (o[1] = T(() => {
81
+ onClick: a[1] || (a[1] = b(() => {
85
82
  }, ["stop"]))
86
83
  }, [
87
- i(e(h), { size: 8 }, {
84
+ i(e(C), { size: 8 }, {
88
85
  default: r(() => [
89
- a("div", {
86
+ o("div", {
90
87
  class: "menu-list-content-action-text",
91
- onClick: o[0] || (o[0] = (z) => s.value = !0)
92
- }, m(e(n)("ap.apView.rename")), 1),
93
- t.view?.isDefault ? w("", !0) : (c(), l("div", {
88
+ onClick: a[0] || (a[0] = (R) => s.value = !0)
89
+ }, c(e(n)("ap.apView.rename")), 1),
90
+ t.view?.isDefault ? f("", !0) : (m(), l("div", {
94
91
  key: 0,
95
92
  class: "menu-list-content-action-text",
96
- onClick: I
97
- }, m(e(n)("ap.apView.setDefault")), 1)),
98
- a("div", H, [
93
+ onClick: E
94
+ }, c(e(n)("ap.apView.setDefault")), 1)),
95
+ o("div", G, [
99
96
  i(e(F), {
100
97
  title: e(n)("ap.apView.deleteTip"),
101
98
  "ok-text": e(n)("ap.apView.ok"),
102
- onConfirm: M
99
+ onConfirm: I
103
100
  }, {
104
101
  default: r(() => [
105
102
  i(L)
@@ -110,10 +107,10 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
110
107
  ]),
111
108
  _: 1
112
109
  })
113
- ])) : w("", !0)
114
- ], 2)) : (c(), l("div", {
110
+ ])) : f("", !0)
111
+ ], 2)) : (m(), l("div", {
115
112
  key: 1,
116
- class: C([e(u)("menu-list-content"), e(u)("menu-list-content-edit"), e(d)])
113
+ class: V([e(v)("menu-list-content"), e(v)("menu-list-content-edit"), e(d)])
117
114
  }, [
118
115
  i(x, {
119
116
  ref_key: "formRef",
@@ -123,23 +120,23 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
123
120
  }
124
121
  }, {
125
122
  default: r(() => [
126
- a("div", J, [
127
- i(e(h), { size: 8 }, {
123
+ o("div", H, [
124
+ i(e(C), { size: 8 }, {
128
125
  default: r(() => [
129
126
  i(x.FormItem, { name: "viewName" }, {
130
127
  default: r(() => [
131
- i(e(Y).Text, { maxlength: 20 })
128
+ i(e(M).Text, { maxlength: 20 })
132
129
  ]),
133
130
  _: 1
134
131
  }),
135
- a("div", {
132
+ o("div", {
136
133
  class: "menu-list-content-action-text",
137
- onClick: b
138
- }, m(e(n)("ap.apView.save")), 1),
139
- a("div", {
134
+ onClick: z
135
+ }, c(e(n)("ap.apView.save")), 1),
136
+ o("div", {
140
137
  class: "menu-list-content-action-text",
141
- onClick: o[2] || (o[2] = (z) => s.value = !1)
142
- }, m(e(n)("ap.apView.cancel")), 1)
138
+ onClick: a[2] || (a[2] = (R) => s.value = !1)
139
+ }, c(e(n)("ap.apView.cancel")), 1)
143
140
  ]),
144
141
  _: 1
145
142
  })
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApViewStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -120,7 +120,7 @@ const o = (t) => {
120
120
  cursor: "default"
121
121
  },
122
122
  "&:hover": {
123
- background: t.colorBg1,
123
+ background: t.colorBg3,
124
124
  ".menu-list-content-action": {
125
125
  display: "block"
126
126
  }
@@ -138,5 +138,5 @@ const o = (t) => {
138
138
  ]);
139
139
  export {
140
140
  r as default,
141
- o as genProCardStyle
141
+ o as genApViewStyle
142
142
  };
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type BatchInputGroupToken = {
3
3
  batchInputGroupTriggerColorDisabled: string;
4
4
  };
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;