@aplus-frontend/ui 7.0.0 → 7.1.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 (156) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  3. package/es/src/ag-grid/style/index.mjs +0 -1
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +12 -12
  5. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  6. package/es/src/ap-descriptions/style/index.mjs +16 -43
  7. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  8. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  9. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  10. package/es/src/ap-download/style/index.mjs +6 -13
  11. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  12. package/es/src/ap-form/style/item.mjs +5 -4
  13. package/es/src/ap-form/style/modal-form.mjs +11 -12
  14. package/es/src/ap-form/style/search-form-sorter.mjs +31 -27
  15. package/es/src/ap-form/style/token.d.ts +8 -0
  16. package/es/src/ap-grid/style/index.mjs +3 -3
  17. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  18. package/es/src/ap-pro-card/style/token.mjs +1 -1
  19. package/es/src/ap-table/style/index.mjs +2 -2
  20. package/es/src/ap-table/style/setting.mjs +2 -2
  21. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  22. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  23. package/es/src/ap-tag/style/group.mjs +2 -8
  24. package/es/src/ap-tag/style/index.mjs +14 -23
  25. package/es/src/ap-upload/apUpload.vue.mjs +42 -41
  26. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  27. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  28. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  29. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  30. package/es/src/ap-upload/style/picture.mjs +12 -30
  31. package/es/src/ap-upload/style/single-file.mjs +5 -16
  32. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  33. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  34. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  35. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  36. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  37. package/es/src/business/ap-copy/style/index.mjs +1 -1
  38. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  39. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  40. package/es/src/business/ap-ladder/style/index.mjs +11 -39
  41. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  42. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  43. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  45. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  46. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  47. package/es/src/business/ap-size-input/constans.mjs +9 -1
  48. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  49. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  50. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  51. package/es/src/business/ap-size-input/index.d.ts +33 -8
  52. package/es/src/business/ap-size-input/index.mjs +3 -2
  53. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  54. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  55. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  56. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  57. package/es/src/business/ap-title/style/index.mjs +1 -1
  58. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  59. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  60. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  61. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  62. package/es/src/business/ap-view/style/index.mjs +1 -1
  63. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  64. package/es/src/check-card/style/index.mjs +46 -51
  65. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  66. package/es/src/design-token/constants.mjs +4 -2
  67. package/es/src/design-token/interface.d.ts +39 -19
  68. package/es/src/index.mjs +95 -93
  69. package/es/src/scroll-bar/style/index.mjs +12 -12
  70. package/es/src/splitter/style/index.mjs +6 -6
  71. package/es/src/style/index.mjs +1 -1
  72. package/es/src/text/style/index.mjs +1 -1
  73. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  74. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  75. package/es/src/utils/cssinjs/index.d.ts +1 -1
  76. package/es/src/utils/cssinjs/index.mjs +51 -50
  77. package/es/src/version.d.ts +1 -1
  78. package/es/src/version.mjs +1 -1
  79. package/lib/index.js +1 -1
  80. package/lib/src/ag-grid/style/custom-header.js +1 -1
  81. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  82. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  83. package/lib/src/ap-descriptions/style/index.js +1 -1
  84. package/lib/src/ap-download/ap-download.vue.js +1 -1
  85. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  86. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  87. package/lib/src/ap-download/style/index.js +1 -1
  88. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/style/item.js +1 -1
  90. package/lib/src/ap-form/style/modal-form.js +1 -1
  91. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  92. package/lib/src/ap-form/style/token.d.ts +8 -0
  93. package/lib/src/ap-grid/style/index.js +1 -1
  94. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  95. package/lib/src/ap-pro-card/style/token.js +1 -1
  96. package/lib/src/ap-table/style/index.js +1 -1
  97. package/lib/src/ap-table/style/setting.js +1 -1
  98. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  99. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  100. package/lib/src/ap-tag/style/group.js +1 -1
  101. package/lib/src/ap-tag/style/index.js +1 -1
  102. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  103. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  104. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  105. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  106. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  107. package/lib/src/ap-upload/style/picture.js +1 -1
  108. package/lib/src/ap-upload/style/single-file.js +1 -1
  109. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  110. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  111. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  112. package/lib/src/business/ap-appendix/style/index.js +1 -1
  113. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  114. package/lib/src/business/ap-copy/style/index.js +1 -1
  115. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  116. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  117. package/lib/src/business/ap-ladder/style/index.js +1 -1
  118. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  119. package/lib/src/business/ap-product-info/style/index.js +1 -1
  120. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  121. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  122. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  123. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  124. package/lib/src/business/ap-size-input/constans.js +1 -1
  125. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  126. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  127. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  128. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  129. package/lib/src/business/ap-size-input/index.js +1 -1
  130. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  131. package/lib/src/business/ap-size-input/style/index.js +1 -1
  132. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  133. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  134. package/lib/src/business/ap-title/style/index.js +1 -1
  135. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  136. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  137. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  138. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  139. package/lib/src/business/ap-view/style/index.js +1 -1
  140. package/lib/src/business/batch-input-group/style/index.js +1 -1
  141. package/lib/src/check-card/style/index.js +1 -1
  142. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  143. package/lib/src/design-token/constants.js +1 -1
  144. package/lib/src/design-token/interface.d.ts +39 -19
  145. package/lib/src/index.js +1 -1
  146. package/lib/src/scroll-bar/style/index.js +1 -1
  147. package/lib/src/splitter/style/index.js +1 -1
  148. package/lib/src/style/index.js +1 -1
  149. package/lib/src/text/style/index.js +1 -1
  150. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  151. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  152. package/lib/src/utils/cssinjs/index.d.ts +1 -1
  153. package/lib/src/utils/cssinjs/index.js +1 -1
  154. package/lib/src/version.d.ts +1 -1
  155. package/lib/src/version.js +1 -1
  156. package/package.json +1 -1
@@ -1,60 +1,57 @@
1
- import { defineComponent as f, toRaw as x, createVNode as t } from "vue";
2
- import { ApSizeInputProps as r } from "./constans.mjs";
1
+ import { defineComponent as p, toRaw as f, createVNode as a, mergeProps as m } from "vue";
2
+ import { ApSizeInputProps as s } from "./constans.mjs";
3
3
  import "../../ap-field/number/index.vue2.mjs";
4
- import { Form as g, Space as I } from "@aplus-frontend/antdv";
4
+ import { Form as g } from "@aplus-frontend/antdv";
5
5
  import "../../config-provider/index.mjs";
6
- import v from "./style/index.mjs";
7
- import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useLocale as C } from "../../config-provider/hooks/use-locale.mjs";
9
- import m from "../../ap-field/number/index.vue.mjs";
10
- const y = /* @__PURE__ */ f({
6
+ import I from "./style/index.mjs";
7
+ import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
9
+ import u from "../../ap-field/number/index.vue.mjs";
10
+ const _ = /* @__PURE__ */ p({
11
11
  name: "ApSizeInput",
12
- props: r(),
12
+ props: s(),
13
13
  setup(e, {
14
14
  emit: c
15
15
  }) {
16
16
  const {
17
- b: u
18
- } = z("ap-size-input"), d = v("ap-size-input"), {
17
+ b: d
18
+ } = v("ap-size-input"), h = I("ap-size-input"), {
19
19
  t: n
20
- } = C(), h = g.useInjectFormItemContext(), i = (a, o) => {
21
- const l = e.value;
22
- l[a] = o, c("update:value", l), c("SizeInputChange", x(l)), h.onFieldChange();
20
+ } = z(), r = g.useInjectFormItemContext(), o = (t, l) => {
21
+ const i = e.value || [];
22
+ i[t] = l, c("update:value", i), c("SizeInputChange", f(i)), r.onFieldChange();
23
23
  };
24
- return () => t(I, {
25
- class: [u(), d.value]
26
- }, {
27
- default: () => [t(m, {
24
+ return () => {
25
+ const t = {
26
+ style: {
27
+ flex: 1
28
+ },
29
+ precision: e.precision ?? 2,
30
+ min: e.min ?? 1,
31
+ max: e.max,
32
+ step: e.step ?? 1,
28
33
  mode: e.editable ? "edit" : "read",
34
+ disabled: e.disabled
35
+ };
36
+ return a("div", {
37
+ class: [d(), h.value],
38
+ style: e.style
39
+ }, [a(u, m({
29
40
  value: e.value?.[0],
30
41
  placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[0] : n("ap.apSizeInput.length"),
31
- precision: e.precision ? e.precision : 2,
32
- min: e.min ? e.min : 1,
33
- max: e.max ? e.max : 999.99,
34
- onChange: (a) => i(0, a),
35
- step: e.step ? e.step : 1
36
- }, null), e.perfix, t(m, {
37
- mode: e.editable ? "edit" : "read",
42
+ onChange: (l) => o(0, l)
43
+ }, t), null), e.perfix, a(u, m({
38
44
  value: e.value?.[1],
39
45
  placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[1] : n("ap.apSizeInput.width"),
40
- precision: e.precision ? e.precision : 2,
41
- min: e.min ? e.min : 1,
42
- max: e.max ? e.max : 999.99,
43
- onChange: (a) => i(1, a),
44
- step: e.step ? e.step : 1
45
- }, null), e.perfix, t(m, {
46
- mode: e.editable ? "edit" : "read",
46
+ onChange: (l) => o(1, l)
47
+ }, t), null), e.perfix, a(u, m({
47
48
  value: e.value?.[2],
48
49
  placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[2] : n("ap.apSizeInput.height"),
49
- precision: e.precision ? e.precision : 2,
50
- min: e.min ? e.min : 1,
51
- max: e.max ? e.max : 999.99,
52
- onChange: (a) => i(2, a),
53
- step: e.step ? e.step : 1
54
- }, null)]
55
- });
50
+ onChange: (l) => o(2, l)
51
+ }, t), null)]);
52
+ };
56
53
  }
57
54
  });
58
55
  export {
59
- y as default
56
+ _ as default
60
57
  };
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, StyleValue } from 'vue';
2
2
  export declare const ApSizeInputProps: () => {
3
3
  value: {
4
4
  type: PropType<Array<string | number>>;
@@ -25,7 +25,7 @@ export declare const ApSizeInputProps: () => {
25
25
  };
26
26
  min: {
27
27
  type: NumberConstructor;
28
- default: number;
28
+ required: boolean;
29
29
  };
30
30
  max: {
31
31
  type: NumberConstructor;
@@ -35,4 +35,12 @@ export declare const ApSizeInputProps: () => {
35
35
  type: NumberConstructor;
36
36
  default: number;
37
37
  };
38
+ disabled: {
39
+ type: BooleanConstructor;
40
+ required: boolean;
41
+ };
42
+ style: {
43
+ type: PropType<StyleValue>;
44
+ required: boolean;
45
+ };
38
46
  };
@@ -24,7 +24,7 @@ const e = () => ({
24
24
  },
25
25
  min: {
26
26
  type: Number,
27
- default: 0
27
+ required: !1
28
28
  },
29
29
  max: {
30
30
  type: Number,
@@ -33,6 +33,14 @@ const e = () => ({
33
33
  precision: {
34
34
  type: Number,
35
35
  default: 2
36
+ },
37
+ disabled: {
38
+ type: Boolean,
39
+ required: !1
40
+ },
41
+ style: {
42
+ type: Object,
43
+ required: !1
36
44
  }
37
45
  });
38
46
  export {
@@ -0,0 +1,13 @@
1
+ import { ApFormItemSizeInputProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ApFormItemSizeInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSizeInputProps> & Readonly<{}>, {
4
+ hidden: boolean;
5
+ colon: boolean;
6
+ required: boolean;
7
+ hasFeedback: boolean;
8
+ autoLink: boolean;
9
+ validateFirst: boolean;
10
+ noStyle: boolean;
11
+ bordered: boolean;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -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
+ }
@@ -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,9 +1,8 @@
1
- import { onUnmounted as c } from "vue";
2
- import { AsyncOpenResultError as f } from "../interface.mjs";
3
- import { merge as i } from "lodash-unified";
4
- import { useCreateTableModal as u } from "./use-create-table-modal.mjs";
5
- function A(r) {
6
- const t = i(r, {
1
+ import { onUnmounted as f } from "vue";
2
+ import { merge as c } from "lodash-unified";
3
+ import { useCreateTableModal as i } from "./use-create-table-modal.mjs";
4
+ function b(r) {
5
+ const a = c(r, {
7
6
  ...{
8
7
  footer: null
9
8
  },
@@ -12,25 +11,25 @@ function A(r) {
12
11
  },
13
12
  destroyOnUnmounted: !1,
14
13
  isRenderModalTitleSuffix: !1
15
- }), { destroy: o, openModal: l, closeModal: a, ...n } = u(t), s = async (d) => {
14
+ }), { destroy: e, openModal: s, closeModal: l, ...n } = i(a), d = async (p) => {
16
15
  try {
17
- await l([], d);
18
- } catch (p) {
19
- if (p !== f.ModalCancel)
20
- throw Error;
16
+ await s([], p);
17
+ } catch (o) {
18
+ if (!(typeof o == "string" && o.startsWith("Ignored Reject:")))
19
+ throw o;
21
20
  }
22
- }, e = () => {
23
- a();
21
+ }, t = () => {
22
+ l();
24
23
  };
25
- return c(() => {
26
- e(), o();
24
+ return f(() => {
25
+ t(), e();
27
26
  }), {
28
- open: s,
29
- destroy: o,
30
- close: e,
27
+ open: d,
28
+ destroy: e,
29
+ close: t,
31
30
  ...n
32
31
  };
33
32
  }
34
33
  export {
35
- A as useTableModal
34
+ b as useTableModal
36
35
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as m, createElementBlock as c, openBlock as f, createTextVNode as a, renderSlot as d, toDisplayString as t, createElementVNode as r, normalizeStyle as u, unref as o } from "vue";
1
+ import { defineComponent as m, createElementBlock as c, openBlock as f, createTextVNode as r, renderSlot as d, toDisplayString as t, createElementVNode as l, normalizeStyle as u, unref as o } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { useLocale as p } from "../../config-provider/hooks/use-locale.mjs";
4
- import { useGlobalConfig as s } from "../../config-provider/hooks/use-global-config.mjs";
5
- const T = /* @__PURE__ */ m({
3
+ import { useToken as p } from "../../config-provider/hooks/use-token.mjs";
4
+ import { useLocale as s } from "../../config-provider/hooks/use-locale.mjs";
5
+ const b = /* @__PURE__ */ m({
6
6
  __name: "modal-title",
7
7
  props: {
8
8
  title: {
@@ -19,32 +19,32 @@ const T = /* @__PURE__ */ m({
19
19
  }
20
20
  },
21
21
  setup(e) {
22
- const { t: n } = p(), l = s("uiMode", "aplus");
22
+ const { t: n } = s(), { token: a } = p();
23
23
  return (i, x) => (f(), c("div", null, [
24
- a(t(e.title) + " ", 1),
24
+ r(t(e.title) + " ", 1),
25
25
  d(i.$slots, "default", {
26
26
  maxCount: e.maxCount,
27
27
  count: e.count
28
28
  }, () => [
29
- r("span", {
29
+ l("span", {
30
30
  style: u({
31
- color: o(l) === "admin" ? "#999999" : "#8896b0",
31
+ color: o(a).textColor3,
32
32
  fontSize: "12px",
33
33
  fontWeight: "normal",
34
34
  marginLeft: "12px"
35
35
  }),
36
36
  class: "product-number"
37
37
  }, [
38
- a(t(isFinite(e.maxCount) ? o(n)("ap.apTableModal.titleSuffixOne", { maxCount: e.maxCount }) : "") + t(o(n)("ap.apTableModal.titleSuffixTwo")) + " ", 1),
39
- r("span", {
40
- style: u({ color: o(l) === "admin" ? "#34B77C" : "#0070ff" })
38
+ r(t(isFinite(e.maxCount) ? o(n)("ap.apTableModal.titleSuffixOne", { maxCount: e.maxCount }) : "") + t(o(n)("ap.apTableModal.titleSuffixTwo")) + " ", 1),
39
+ l("span", {
40
+ style: u({ color: o(a).colorLink })
41
41
  }, t(e.count), 5),
42
- a(" " + t(o(n)("ap.apTableModal.titleSuffixThree")), 1)
42
+ r(" " + t(o(n)("ap.apTableModal.titleSuffixThree")), 1)
43
43
  ], 4)
44
44
  ])
45
45
  ]));
46
46
  }
47
47
  });
48
48
  export {
49
- T as default
49
+ b as default
50
50
  };
@@ -24,7 +24,7 @@ const i = (e) => {
24
24
  },
25
25
  [`${o}__prefix`]: {
26
26
  fontWeight: "bold",
27
- color: e.textColor2,
27
+ color: e.textColor1,
28
28
  display: "flex",
29
29
  alignItems: "center",
30
30
  ".anticon-question-circle": {
@@ -1,18 +1,19 @@
1
- import { defineComponent as G, computed as C, createBlock as y, openBlock as u, unref as e, mergeProps as H, withCtx as i, renderSlot as J, normalizeProps as K, guardReactiveProps as Q, createElementVNode as s, normalizeClass as l, createElementBlock as v, createVNode as n, createTextVNode as m, toDisplayString as p, resolveDynamicComponent as S, h as N, Fragment as D } from "vue";
2
- import { clearSingleFile as W, clearAllFile as b } from "../utils/fileList.mjs";
1
+ import { defineComponent as M, computed as y, createBlock as C, openBlock as u, unref as e, mergeProps as G, withCtx as i, renderSlot as H, normalizeProps as J, guardReactiveProps as K, createElementVNode as s, normalizeClass as l, createElementBlock as v, createVNode as n, createTextVNode as m, toDisplayString as p, resolveDynamicComponent as F, h as N, Fragment as L } from "vue";
2
+ import { clearSingleFile as Q, clearAllFile as b } from "../utils/fileList.mjs";
3
3
  import g from "../icon/file-icon.vue.mjs";
4
4
  import k from "../icon/delete-icon.vue.mjs";
5
- import { Form as X, UploadDragger as Y, TypographyParagraph as x, Progress as Z, Tooltip as L } from "@aplus-frontend/antdv";
6
- import { FormItemInputContext as ee } from "@aplus-frontend/antdv/es/form/FormItemContext";
7
- import { useSingleProps as te } from "../hook/useProps.mjs";
8
- import { useInjectContext as oe } from "../hook/useInjectContext.mjs";
9
- import { omit as le } from "lodash-unified";
5
+ import { Form as W, UploadDragger as X, TypographyParagraph as x, Progress as Y, Tooltip as P } from "@aplus-frontend/antdv";
6
+ import { FormItemInputContext as Z } from "@aplus-frontend/antdv/es/form/FormItemContext";
7
+ import { useSingleProps as ee } from "../hook/useProps.mjs";
8
+ import { useInjectContext as te } from "../hook/useInjectContext.mjs";
9
+ import { omit as oe } from "lodash-unified";
10
10
  import "../../../config-provider/index.mjs";
11
- import se from "./style/index.mjs";
12
- import { useGlobalConfig as w } from "../../../config-provider/hooks/use-global-config.mjs";
13
- import { useLocale as ne } from "../../../config-provider/hooks/use-locale.mjs";
14
- import { useNamespace as ae } from "../../../config-provider/hooks/use-namespace.mjs";
15
- const xe = /* @__PURE__ */ G({
11
+ import le from "./style/index.mjs";
12
+ import { useToken as se } from "../../../config-provider/hooks/use-token.mjs";
13
+ import { useGlobalConfig as ne } from "../../../config-provider/hooks/use-global-config.mjs";
14
+ import { useLocale as ae } from "../../../config-provider/hooks/use-locale.mjs";
15
+ import { useNamespace as ie } from "../../../config-provider/hooks/use-namespace.mjs";
16
+ const Se = /* @__PURE__ */ M({
16
17
  __name: "ap-upload-single",
17
18
  props: {
18
19
  dirName: {},
@@ -29,28 +30,28 @@ const xe = /* @__PURE__ */ G({
29
30
  subTitle: { type: [Object, String, Number, Boolean, null, Array] }
30
31
  },
31
32
  emits: ["update:fileList"],
32
- setup(A, { emit: E }) {
33
- const P = ee.useInject(), $ = C(() => P.status), d = A, q = E, B = X.useInjectFormItemContext(), r = C({
33
+ setup(w, { emit: A }) {
34
+ const T = Z.useInject(), $ = y(() => T.status), d = w, q = A, B = W.useInjectFormItemContext(), r = y({
34
35
  get() {
35
36
  return d.fileList || [];
36
37
  },
37
38
  set(c) {
38
39
  q("update:fileList", c), B?.onFieldChange();
39
40
  }
40
- }), o = C(() => r.value?.[0]), O = w("apUpload"), { t: T, lang: U } = ne(), {
41
- title: j,
42
- subTitle: z,
43
- beforeUpload: R,
44
- customRequest: M
45
- } = te(d), h = M;
46
- oe(
47
- T,
41
+ }), o = y(() => r.value?.[0]), O = ne("apUpload"), { t: U, lang: j } = ae(), {
42
+ title: z,
43
+ subTitle: R,
44
+ beforeUpload: E,
45
+ customRequest: h
46
+ } = ee(d), D = h;
47
+ te(
48
48
  U,
49
+ j,
49
50
  d?.getOssAccess ?? O.value?.getOssAccess
50
51
  );
51
- const { b: I, e: t } = ae("ap-upload-single"), V = se("ap-upload-single"), F = w("uiMode");
52
+ const { b: I, e: t } = ie("ap-upload-single"), V = le("ap-upload-single"), { token: S } = se();
52
53
  function _(c) {
53
- return le(c, [
54
+ return oe(c, [
54
55
  "dirName",
55
56
  "needName",
56
57
  "getOssAccess",
@@ -59,7 +60,7 @@ const xe = /* @__PURE__ */ G({
59
60
  "subTitle"
60
61
  ]);
61
62
  }
62
- return (c, a) => (u(), y(e(Y), H({
63
+ return (c, a) => (u(), C(e(X), G({
63
64
  ...c.$attrs,
64
65
  ..._(d)
65
66
  }, {
@@ -69,13 +70,13 @@ const xe = /* @__PURE__ */ G({
69
70
  "show-upload-list": !1,
70
71
  disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status),
71
72
  class: [e(I)(), `${e(I)()}-affix-wrapper-status-${$.value}`, e(V)],
72
- "before-upload": e(R),
73
- "custom-request": e(h)
73
+ "before-upload": e(E),
74
+ "custom-request": e(D)
74
75
  }), {
75
76
  default: i(() => [
76
- J(c.$slots, "default", K(Q({
77
+ H(c.$slots, "default", J(K({
77
78
  file: o.value,
78
- clear: () => o.value && e(W)(o.value, r.value, { maxCount: 1 })
79
+ clear: () => o.value && e(Q)(o.value, r.value, { maxCount: 1 })
79
80
  })), () => [
80
81
  s("div", {
81
82
  class: l([e(t)("content")])
@@ -101,12 +102,12 @@ const xe = /* @__PURE__ */ G({
101
102
  ]),
102
103
  _: 1
103
104
  }, 8, ["tooltip"]),
104
- n(e(Z), {
105
+ n(e(Y), {
105
106
  percent: o.value.percent || 0,
106
107
  size: 4,
107
108
  "show-info": !1,
108
- "trail-color": e(F) === "admin" ? "#D9D9D9" : "#DEE4ED",
109
- "stroke-color": e(F) === "admin" ? "#34B77C" : "#0070FF"
109
+ "trail-color": e(S).borderColorBase,
110
+ "stroke-color": e(S).colorPrimary
110
111
  }, null, 8, ["percent", "trail-color", "stroke-color"])
111
112
  ], 2),
112
113
  s("div", {
@@ -127,7 +128,7 @@ const xe = /* @__PURE__ */ G({
127
128
  s("div", {
128
129
  class: l([e(t)("content-file-name"), e(t)("content-error-name")])
129
130
  }, [
130
- n(e(L), null, {
131
+ n(e(P), null, {
131
132
  title: i(() => [
132
133
  m(p(o.value?.error || "--"), 1)
133
134
  ]),
@@ -163,7 +164,7 @@ const xe = /* @__PURE__ */ G({
163
164
  s("div", {
164
165
  class: l([e(t)("content-file-name"), e(t)("content-done-name")])
165
166
  }, [
166
- n(e(L), null, {
167
+ n(e(P), null, {
167
168
  title: i(() => [
168
169
  m(p(o.value?.name || "--"), 1)
169
170
  ]),
@@ -199,12 +200,12 @@ const xe = /* @__PURE__ */ G({
199
200
  s("div", {
200
201
  class: l([e(t)("content-empty-title")])
201
202
  }, [
202
- (u(), y(S(N(D, [e(j)]))))
203
+ (u(), C(F(N(L, [e(z)]))))
203
204
  ], 2),
204
205
  s("div", {
205
206
  class: l([e(t)("content-empty-sub-title")])
206
207
  }, [
207
- (u(), y(S(N(D, [e(z)]))))
208
+ (u(), C(F(N(L, [e(R)]))))
208
209
  ], 2)
209
210
  ], 2))
210
211
  ], 2)
@@ -215,5 +216,5 @@ const xe = /* @__PURE__ */ G({
215
216
  }
216
217
  });
217
218
  export {
218
- xe as default
219
+ Se as default
219
220
  };