@aplus-frontend/ui 7.0.1 → 7.1.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 (115) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +20 -19
  2. package/es/src/ag-grid/interface.d.ts +4 -0
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  4. package/es/src/ap-descriptions/style/index.mjs +16 -43
  5. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  6. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  7. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  8. package/es/src/ap-download/style/index.mjs +6 -13
  9. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  10. package/es/src/ap-form/style/modal-form.mjs +14 -15
  11. package/es/src/ap-form/style/search-form-sorter.mjs +26 -26
  12. package/es/src/ap-form/style/token.d.ts +4 -0
  13. package/es/src/ap-grid/style/index.mjs +3 -3
  14. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  15. package/es/src/ap-pro-card/style/token.mjs +1 -1
  16. package/es/src/ap-table/style/index.mjs +2 -2
  17. package/es/src/ap-table/style/setting.mjs +2 -2
  18. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  19. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  20. package/es/src/ap-tag/style/group.mjs +2 -8
  21. package/es/src/ap-tag/style/index.mjs +14 -23
  22. package/es/src/ap-upload/apUpload.vue.mjs +39 -39
  23. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  24. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  25. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  26. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  27. package/es/src/ap-upload/style/picture.mjs +12 -30
  28. package/es/src/ap-upload/style/single-file.mjs +5 -16
  29. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  30. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  31. package/es/src/business/ap-copy/style/index.mjs +1 -1
  32. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  33. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  34. package/es/src/business/ap-ladder/style/index.mjs +9 -34
  35. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  36. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  37. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  38. package/es/src/business/ap-size-input/ApSizeInput.mjs +1 -1
  39. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  40. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  41. package/es/src/business/ap-title/style/index.mjs +12 -12
  42. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  43. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  44. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  45. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  46. package/es/src/check-card/style/index.mjs +31 -31
  47. package/es/src/design-token/constants.mjs +4 -2
  48. package/es/src/design-token/interface.d.ts +36 -39
  49. package/es/src/scroll-bar/style/index.mjs +12 -12
  50. package/es/src/splitter/style/index.mjs +6 -6
  51. package/es/src/style/index.mjs +1 -1
  52. package/es/src/text/style/index.mjs +1 -1
  53. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  54. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  55. package/es/src/utils/cssinjs/index.mjs +23 -22
  56. package/es/src/version.d.ts +1 -1
  57. package/es/src/version.mjs +1 -1
  58. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  59. package/lib/src/ag-grid/interface.d.ts +4 -0
  60. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  61. package/lib/src/ap-descriptions/style/index.js +1 -1
  62. package/lib/src/ap-download/ap-download.vue.js +1 -1
  63. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  64. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  65. package/lib/src/ap-download/style/index.js +1 -1
  66. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  67. package/lib/src/ap-form/style/modal-form.js +1 -1
  68. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  69. package/lib/src/ap-form/style/token.d.ts +4 -0
  70. package/lib/src/ap-grid/style/index.js +1 -1
  71. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  72. package/lib/src/ap-pro-card/style/token.js +1 -1
  73. package/lib/src/ap-table/style/index.js +1 -1
  74. package/lib/src/ap-table/style/setting.js +1 -1
  75. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  76. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  77. package/lib/src/ap-tag/style/group.js +1 -1
  78. package/lib/src/ap-tag/style/index.js +1 -1
  79. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  80. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  81. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  82. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  83. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  84. package/lib/src/ap-upload/style/picture.js +1 -1
  85. package/lib/src/ap-upload/style/single-file.js +1 -1
  86. package/lib/src/business/ap-appendix/style/index.js +1 -1
  87. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  88. package/lib/src/business/ap-copy/style/index.js +1 -1
  89. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  90. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  91. package/lib/src/business/ap-ladder/style/index.js +1 -1
  92. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  93. package/lib/src/business/ap-product-info/style/index.js +1 -1
  94. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  95. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  96. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  97. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  98. package/lib/src/business/ap-title/style/index.js +1 -1
  99. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  100. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  101. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  102. package/lib/src/business/batch-input-group/style/index.js +1 -1
  103. package/lib/src/check-card/style/index.js +1 -1
  104. package/lib/src/design-token/constants.js +1 -1
  105. package/lib/src/design-token/interface.d.ts +36 -39
  106. package/lib/src/scroll-bar/style/index.js +1 -1
  107. package/lib/src/splitter/style/index.js +1 -1
  108. package/lib/src/style/index.js +1 -1
  109. package/lib/src/text/style/index.js +1 -1
  110. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  111. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  112. package/lib/src/utils/cssinjs/index.js +1 -1
  113. package/lib/src/version.d.ts +1 -1
  114. package/lib/src/version.js +1 -1
  115. package/package.json +3 -3
@@ -10,7 +10,7 @@ const i = (o) => {
10
10
  cursor: "pointer",
11
11
  paddingInline: o.spaceLG,
12
12
  borderRadius: o.borderRadius,
13
- color: o.textColor1,
13
+ color: o.textColor2,
14
14
  transition: "all 0.3s ease-in-out",
15
15
  willChange: "background-color",
16
16
  "&:hover": {
@@ -18,7 +18,7 @@ const _ = /* @__PURE__ */ p({
18
18
  } = v("ap-size-input"), h = I("ap-size-input"), {
19
19
  t: n
20
20
  } = z(), r = g.useInjectFormItemContext(), o = (t, l) => {
21
- const i = e.value;
21
+ const i = e.value || [];
22
22
  i[t] = l, c("update:value", i), c("SizeInputChange", f(i)), r.onFieldChange();
23
23
  };
24
24
  return () => {
@@ -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
  };
@@ -1,14 +1,14 @@
1
- import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- const i = (e) => {
3
- const { componentCls: o } = e;
1
+ import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
+ const r = (e) => {
3
+ const { componentCls: t } = e;
4
4
  return {
5
- [o]: {
5
+ [t]: {
6
6
  position: "relative",
7
7
  width: "100%",
8
8
  display: "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "space-between",
11
- paddingInline: "10px",
11
+ paddingInlineStart: "10px",
12
12
  fontSize: e.fontSize,
13
13
  "&::before": {
14
14
  position: "absolute",
@@ -22,9 +22,9 @@ const i = (e) => {
22
22
  borderRadius: "0px 4px 4px 0px",
23
23
  zIndex: 1
24
24
  },
25
- [`${o}__prefix`]: {
25
+ [`${t}__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": {
@@ -47,7 +47,7 @@ const i = (e) => {
47
47
  background: "#fff",
48
48
  zIndex: 1
49
49
  },
50
- [o]: {
50
+ [t]: {
51
51
  "&__prefix": {
52
52
  fontWeight: "bold",
53
53
  color: "#333",
@@ -61,15 +61,15 @@ const i = (e) => {
61
61
  }
62
62
  }
63
63
  },
64
- [`${o}__suffix`]: {
64
+ [`${t}__suffix`]: {
65
65
  color: "#526a90"
66
66
  }
67
67
  }
68
68
  };
69
- }, n = t("ApTitle", (e) => [
70
- i(e)
69
+ }, n = o("ApTitle", (e) => [
70
+ r(e)
71
71
  ]);
72
72
  export {
73
73
  n as default,
74
- i as genApTitleStyle
74
+ r as genApTitleStyle
75
75
  };
@@ -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
  };
@@ -1,12 +1,11 @@
1
- import { defineComponent as L, ref as O, computed as T, createElementBlock as r, openBlock as d, normalizeStyle as A, normalizeClass as a, unref as s, createVNode as b, withCtx as V, createElementVNode as c, createCommentVNode as y, Fragment as N, renderList as R, withModifiers as f, renderSlot as u, createTextVNode as g, toDisplayString as h, createBlock as j } from "vue";
2
- import { Popover as G } from "@aplus-frontend/antdv";
3
- import { PlusOutlined as q, InfoCircleFilled as J } from "@ant-design/icons-vue";
4
- import { IconApAdLinePoor as Q } from "@aplus-frontend/icon";
1
+ import { defineComponent as z, ref as O, computed as T, createElementBlock as r, openBlock as d, normalizeStyle as A, normalizeClass as a, unref as s, createVNode as b, withCtx as V, createElementVNode as c, createCommentVNode as y, Fragment as N, renderList as R, withModifiers as f, renderSlot as h, createTextVNode as g, toDisplayString as u, createBlock as L } from "vue";
2
+ import { Popover as j } from "@aplus-frontend/antdv";
3
+ import { PlusOutlined as M, InfoCircleFilled as q } from "@ant-design/icons-vue";
4
+ import { IconApAdLinePoor as G } from "@aplus-frontend/icon";
5
5
  import "../../config-provider/index.mjs";
6
- import U from "./style/index.mjs";
7
- import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
9
- const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onClick"], ee = ["onClick"], te = { class: "label" }, le = { class: "value" }, se = { class: "text" }, he = /* @__PURE__ */ L({
6
+ import J from "./style/index.mjs";
7
+ import { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
8
+ const U = ["onClick"], W = { class: "label" }, X = { class: "value" }, Y = ["onClick"], Z = ["onClick"], _ = { class: "label" }, x = { class: "value" }, ee = { class: "text" }, de = /* @__PURE__ */ z({
10
9
  name: "ApValueSelectCard",
11
10
  __name: "index",
12
11
  props: {
@@ -26,7 +25,7 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
26
25
  },
27
26
  emits: ["update:selectedKeys", "update:highlightedKeys", "change", "select", "remove", "highlight"],
28
27
  setup(v, { expose: F, emit: H }) {
29
- const o = H, l = v, { b: n, m: D } = W("ap-value-select-card"), E = U("ap-value-select-card"), M = X("uiMode", "aplus"), P = O(null), p = O(!1), K = T(() => l.options), C = T(() => K.value.filter(
28
+ const o = H, l = v, { b: n } = Q("ap-value-select-card"), D = J("ap-value-select-card"), E = O(null), p = O(!1), K = T(() => l.options), C = T(() => K.value.filter(
30
29
  (e) => l.selectedKeys.includes(e.key)
31
30
  )), B = (e) => l.selectedKeys.includes(e), S = (e) => l.highlightedKeys.includes(e), $ = (e) => {
32
31
  l.selectedKeys.includes(e) ? k(e) : I(e);
@@ -53,7 +52,7 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
53
52
  else
54
53
  i = [...l.highlightedKeys, e];
55
54
  o("update:highlightedKeys", i), o("highlight", i);
56
- }, z = (e) => {
55
+ }, P = (e) => {
57
56
  e || (p.value = e);
58
57
  };
59
58
  return F({
@@ -67,19 +66,19 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
67
66
  removeOption: k,
68
67
  highlightOption: w
69
68
  }), (e, i) => (d(), r("div", {
70
- class: a([s(n)(), `${s(D)(s(M))}`, s(E)]),
69
+ class: a([s(n)(), s(D)]),
71
70
  style: A({
72
71
  ...e.wrapperStyle,
73
72
  "--ap-value-select-card-column-count": e.maxRowDisplay
74
73
  })
75
74
  }, [
76
- b(s(G), {
75
+ b(s(j), {
77
76
  open: p.value,
78
77
  trigger: "click",
79
78
  placement: "bottomRight",
80
79
  arrow: !1,
81
80
  "get-popup-container": e.getContainer,
82
- onOpenChange: z
81
+ onOpenChange: P
83
82
  }, {
84
83
  content: V(() => [
85
84
  c("div", {
@@ -89,11 +88,11 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
89
88
  key: 0,
90
89
  class: a(s(n)("title"))
91
90
  }, [
92
- e.showTitleIcon ? (d(), j(s(J), {
91
+ e.showTitleIcon ? (d(), L(s(q), {
93
92
  key: 0,
94
93
  class: a(s(n)("title-icon"))
95
94
  }, null, 8, ["class"])) : y("", !0),
96
- g(" " + h(e.popoverTitle), 1)
95
+ g(" " + u(e.popoverTitle), 1)
97
96
  ], 2)) : y("", !0),
98
97
  c("div", {
99
98
  class: a(s(n)("list"))
@@ -110,17 +109,17 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
110
109
  ]),
111
110
  onClick: f((m) => $(t.key), ["stop"])
112
111
  }, [
113
- c("div", Z, [
114
- u(e.$slots, "popover-label", { option: t }, () => [
115
- g(h(t.label), 1)
112
+ c("div", W, [
113
+ h(e.$slots, "popover-label", { option: t }, () => [
114
+ g(u(t.label), 1)
116
115
  ])
117
116
  ]),
118
- c("div", _, [
119
- u(e.$slots, "popover-value", { option: t }, () => [
120
- g(h(t.value), 1)
117
+ c("div", X, [
118
+ h(e.$slots, "popover-value", { option: t }, () => [
119
+ g(u(t.value), 1)
121
120
  ])
122
121
  ])
123
- ], 10, Y))), 128))
122
+ ], 10, U))), 128))
124
123
  ], 2)
125
124
  ], 2)
126
125
  ]),
@@ -132,7 +131,7 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
132
131
  key: t.key,
133
132
  ref_for: !0,
134
133
  ref_key: "listItemRef",
135
- ref: P,
134
+ ref: E,
136
135
  class: a([
137
136
  s(n)("list-item"),
138
137
  {
@@ -149,29 +148,29 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
149
148
  class: a(s(n)("list-item-close")),
150
149
  onClick: f((m) => k(t.key), ["stop"])
151
150
  }, [
152
- u(e.$slots, "close-icon", {}, () => [
153
- b(s(Q))
151
+ h(e.$slots, "close-icon", {}, () => [
152
+ b(s(G))
154
153
  ])
155
- ], 10, ee)) : y("", !0),
156
- c("div", te, [
157
- u(e.$slots, "label", { option: t }, () => [
158
- g(h(t.label), 1)
154
+ ], 10, Z)) : y("", !0),
155
+ c("div", _, [
156
+ h(e.$slots, "label", { option: t }, () => [
157
+ g(u(t.label), 1)
159
158
  ])
160
159
  ]),
161
- c("div", le, [
162
- u(e.$slots, "value", { option: t }, () => [
163
- g(h(t.value), 1)
160
+ c("div", x, [
161
+ h(e.$slots, "value", { option: t }, () => [
162
+ g(u(t.value), 1)
164
163
  ])
165
164
  ])
166
- ], 14, x))), 128)),
165
+ ], 14, Y))), 128)),
167
166
  e.showAddButton && (!e.maxSelected || e.selectedKeys.length < e.maxSelected) ? (d(), r("div", {
168
167
  key: 0,
169
168
  class: a([s(n)("list-item"), "choose"]),
170
169
  onClick: i[0] || (i[0] = f((t) => p.value = !0, ["stop"]))
171
170
  }, [
172
- u(e.$slots, "add-button", {}, () => [
173
- b(s(q)),
174
- c("span", se, h(e.addButtonText), 1)
171
+ h(e.$slots, "add-button", {}, () => [
172
+ b(s(M)),
173
+ c("span", ee, u(e.addButtonText), 1)
175
174
  ])
176
175
  ], 2)) : y("", !0)
177
176
  ], 2)
@@ -182,5 +181,5 @@ const Y = ["onClick"], Z = { class: "label" }, _ = { class: "value" }, x = ["onC
182
181
  }
183
182
  });
184
183
  export {
185
- he as default
184
+ de as default
186
185
  };
@@ -17,7 +17,7 @@ const l = (o) => {
17
17
  position: "relative",
18
18
  boxSizing: "border-box",
19
19
  padding: "8px 16px",
20
- color: o.textColor1,
20
+ color: o.textColor2,
21
21
  border: `1px solid ${o.colorBg1}`,
22
22
  borderRadius: o.borderRadius,
23
23
  cursor: "pointer",
@@ -49,7 +49,7 @@ const l = (o) => {
49
49
  border: `1px solid ${o.colorPrimary}`
50
50
  },
51
51
  "&.select": {
52
- color: o.textColor2,
52
+ color: o.textColor1,
53
53
  borderColor: "transparent",
54
54
  boxShadow: "3px 10px 30px -2px rgba(123, 121, 140, 0.15)",
55
55
  background: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--ap-value-select-card-bg-color, #f5f9ff) 92%)",
@@ -58,7 +58,7 @@ const l = (o) => {
58
58
  }
59
59
  },
60
60
  "&.all": {
61
- color: o.textColor1,
61
+ color: o.textColor2,
62
62
  background: "#fff",
63
63
  border: `1px solid ${o.colorBg1}`,
64
64
  boxShadow: "none",
@@ -66,13 +66,13 @@ const l = (o) => {
66
66
  borderColor: o.colorPrimary
67
67
  },
68
68
  "&.disabled": {
69
- color: "#8896b0",
69
+ color: o.textColor3,
70
70
  background: "#f9f9fa",
71
71
  cursor: "not-allowed",
72
72
  border: `1px solid ${o.colorBg1}`
73
73
  },
74
74
  "&.select": {
75
- background: "#f5f9ff",
75
+ background: o.colorBgControl,
76
76
  borderColor: o.colorPrimary,
77
77
  cursor: "pointer"
78
78
  }
@@ -97,35 +97,13 @@ const l = (o) => {
97
97
  display: "flex",
98
98
  alignItems: "center",
99
99
  marginBlockEnd: "12px",
100
- color: "#526a90",
100
+ color: o.textColor2,
101
101
  fontSize: o.fontSize,
102
102
  "&-icon": {
103
103
  marginRight: "4px",
104
- color: "#abb7cc",
104
+ color: o.textColor4,
105
105
  fontSize: o.fontSizeLG
106
106
  }
107
- },
108
- "&--admin": {
109
- [r]: {
110
- "&-list": {
111
- "&-item": {
112
- "&.all": {
113
- "&.select": {
114
- background: "#F7FCFA"
115
- },
116
- "&.disabled": {
117
- color: "#999"
118
- }
119
- }
120
- }
121
- },
122
- "&-title": {
123
- color: "#666",
124
- "&-icon": {
125
- color: "#BFBFBF"
126
- }
127
- }
128
- }
129
107
  }
130
108
  }
131
109
  };
@@ -10,7 +10,7 @@ const a = (o) => {
10
10
  [`${r}-trigger-icon`]: {
11
11
  cursor: "pointer",
12
12
  fontSize: "16px",
13
- color: o.textColor1,
13
+ color: o.textColor2,
14
14
  lineHeight: 0,
15
15
  "&:hover": {
16
16
  color: o.colorPrimary