@aplus-frontend/ui 0.6.0-beta.4 → 0.6.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  3. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  4. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  9. package/es/src/ap-form/item/index.vue.d.ts +1 -1
  10. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  11. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  12. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  13. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  14. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  15. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  16. package/es/src/ap-grid/index.vue.mjs +37 -35
  17. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  18. package/es/src/ap-table/ap-table.vue2.mjs +20 -18
  19. package/es/src/ap-table/constants.d.ts +30 -30
  20. package/es/src/ap-table/utils.d.ts +14 -14
  21. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  22. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
  23. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  24. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  25. package/es/src/business/ap-label/index.d.ts +3 -3
  26. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  27. package/es/src/business/ap-ladder/index.d.ts +3 -3
  28. package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
  29. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  30. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  31. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  32. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  33. package/es/src/check-card/group.vue.d.ts +1 -1
  34. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  35. package/es/src/config-provider/config-provider-props.mjs +0 -4
  36. package/es/src/config-provider/config-provider.d.ts +0 -138
  37. package/es/src/config-provider/config-provider.mjs +21 -26
  38. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  39. package/es/src/config-provider/index.d.ts +0 -652
  40. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  41. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  42. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  43. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  44. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  45. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  46. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  47. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  48. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  49. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  50. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  51. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  52. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  53. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  54. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  55. package/lib/src/ap-grid/index.vue.js +1 -1
  56. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  57. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  58. package/lib/src/ap-table/constants.d.ts +30 -30
  59. package/lib/src/ap-table/utils.d.ts +14 -14
  60. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  61. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  62. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  63. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  64. package/lib/src/business/ap-label/index.d.ts +3 -3
  65. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  66. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  67. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  68. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  69. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  70. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  71. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  72. package/lib/src/check-card/group.vue.d.ts +1 -1
  73. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  74. package/lib/src/config-provider/config-provider-props.js +1 -1
  75. package/lib/src/config-provider/config-provider.d.ts +0 -138
  76. package/lib/src/config-provider/config-provider.js +1 -1
  77. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  78. package/lib/src/config-provider/index.d.ts +0 -652
  79. package/package.json +1 -1
  80. package/theme/antd-global-overwrite/admin/index.css +3 -0
  81. package/theme/antd-global-overwrite/admin/index.less +1 -0
  82. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  83. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  84. package/theme/antd-global-overwrite/aplus/index.css +3 -0
  85. package/theme/antd-global-overwrite/aplus/index.less +1 -0
  86. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  87. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  88. package/theme/ap-action/item-dropdown.css +17 -0
  89. package/theme/ap-action/item.css +17 -0
  90. package/theme/ap-appendix/ap-appendix.css +17 -0
  91. package/theme/ap-attachment/ap-attachment.css +17 -0
  92. package/theme/ap-batch-action/ap-batch-action.css +17 -0
  93. package/theme/ap-button/ap-button.css +17 -0
  94. package/theme/ap-card/ap-card.css +17 -0
  95. package/theme/ap-descriptions/ap-descriptions.css +17 -0
  96. package/theme/ap-download/ap-download.css +17 -0
  97. package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
  98. package/theme/ap-field/checkbox.css +17 -0
  99. package/theme/ap-field/index.css +17 -0
  100. package/theme/ap-field/number.css +17 -0
  101. package/theme/ap-field/radio.css +17 -0
  102. package/theme/ap-field/text-area.css +17 -0
  103. package/theme/ap-form/ap-form-item-group.css +17 -0
  104. package/theme/ap-form/ap-form-item.css +22 -2
  105. package/theme/ap-form/ap-form-item.less +9 -3
  106. package/theme/ap-form/drawer-form.css +17 -0
  107. package/theme/ap-form/index.css +22 -2
  108. package/theme/ap-form/item-text-group.css +17 -0
  109. package/theme/ap-form/item-text.css +17 -0
  110. package/theme/ap-form/modal-form.css +17 -0
  111. package/theme/ap-form/search-form-sorter.css +17 -0
  112. package/theme/ap-form/search-form.css +22 -2
  113. package/theme/ap-grid/editable.css +17 -0
  114. package/theme/ap-grid/index.css +39 -2
  115. package/theme/ap-grid/index.less +1 -0
  116. package/theme/ap-group-search/ap-extension-select.css +17 -0
  117. package/theme/ap-group-search/ap-group-search.css +17 -0
  118. package/theme/ap-group-search/ap-popover-select.css +17 -0
  119. package/theme/ap-image/ap-image.css +17 -0
  120. package/theme/ap-input-radio/ap-input-radio.css +17 -0
  121. package/theme/ap-label/ap-label.css +17 -0
  122. package/theme/ap-ladder/ap-ladder.css +17 -0
  123. package/theme/ap-layout/ap-info-layout.css +17 -0
  124. package/theme/ap-list/index.css +17 -0
  125. package/theme/ap-product-info/ap-product-info.css +17 -0
  126. package/theme/ap-select-layout/ap-select-layout.css +17 -0
  127. package/theme/ap-size-input/ap-size-input.css +17 -0
  128. package/theme/ap-status/ap-status.css +17 -0
  129. package/theme/ap-summary/index.css +17 -0
  130. package/theme/ap-table/ap-table-index.css +17 -0
  131. package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
  132. package/theme/ap-table/ap-table.css +39 -2
  133. package/theme/ap-table/ap-table.less +1 -0
  134. package/theme/ap-table/setting/index.css +17 -0
  135. package/theme/ap-table/setting/modal.css +17 -0
  136. package/theme/ap-table/setting/select-group.css +17 -0
  137. package/theme/ap-table/setting/sortable-item-meta.css +17 -0
  138. package/theme/ap-table/setting/sortable-item.css +17 -0
  139. package/theme/ap-table/setting/sorter.css +17 -0
  140. package/theme/ap-table-modal/index.css +39 -2
  141. package/theme/ap-tag/ap-tag-group.css +17 -0
  142. package/theme/ap-tag/ap-tag.css +17 -0
  143. package/theme/ap-title/ap-title.css +17 -0
  144. package/theme/ap-upload/index.css +17 -0
  145. package/theme/ap-upload/multiple-file.css +17 -0
  146. package/theme/ap-upload/picture.css +17 -0
  147. package/theme/ap-upload/single-file.css +17 -0
  148. package/theme/ap-upload/upload.css +17 -0
  149. package/theme/ap-upload-single/index.css +17 -0
  150. package/theme/ap-view/ap-view.css +17 -0
  151. package/theme/batch-input-group/index.css +17 -0
  152. package/theme/batch-input-group/popover-input.css +17 -0
  153. package/theme/check-card/index.css +17 -0
  154. package/theme/editable-table/index.css +22 -2
  155. package/theme/full-screen/index.css +17 -0
  156. package/theme/index.css +148 -2
  157. package/theme/index.less +1 -0
  158. package/theme/mask/index.css +17 -0
  159. package/theme/mixins/mixins.css +17 -0
  160. package/theme/mixins/mixins.less +28 -0
  161. package/theme/scroll-bar/index.css +17 -0
  162. package/theme/scroll-view/index.css +17 -0
  163. package/theme/splitter/index.css +17 -0
  164. package/theme/text/group.css +17 -0
  165. package/theme/text/index.css +17 -0
  166. package/theme/ui-mode.css +92 -0
  167. package/theme/ui-mode.less +93 -0
  168. package/theme/work-order-modal/index.css +17 -0
  169. package/es/src/config-provider/css-var.d.ts +0 -139
  170. package/es/src/config-provider/css-var.mjs +0 -278
  171. package/lib/src/config-provider/css-var.d.ts +0 -139
  172. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,107 +1,113 @@
1
- import { defineComponent as A, ref as E, watch as G, createElementBlock as u, openBlock as p, normalizeClass as M, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as v, createVNode as a, withModifiers as O, withCtx as f } from "vue";
1
+ import { defineComponent as G, ref as S, watch as O, createElementBlock as u, openBlock as p, normalizeClass as C, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as f, createVNode as a, withModifiers as P, withCtx as v } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { useViewInject as P } from "../hooks/use-view-provide.mjs";
4
- import { SYSTEM_VIEW_KEY as b } from "../utils/enum.mjs";
5
- import { Space as z, Popconfirm as W } from "@aplus-frontend/antdv";
6
- import q from "../icons/line-delete.vue.mjs";
3
+ import { useViewInject as W } from "../hooks/use-view-provide.mjs";
4
+ import { SYSTEM_VIEW_KEY as E } from "../utils/enum.mjs";
5
+ import { Space as M, Popconfirm as q } from "@aplus-frontend/antdv";
6
+ import H 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 H } from "../../../ap-field/index.mjs";
10
- import { useNamespace as J } from "../../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Q } from "../../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as X } from "../../../config-provider/hooks/use-global-config.mjs";
13
- import Z from "../../../ap-tag/ap-tag.vue.mjs";
14
- import C from "../../../ap-form/ap-form.vue2.mjs";
15
- const D = { class: "menu-list-content-name" }, R = ["title"], L = {
9
+ import { ApField as J } from "../../../ap-field/index.mjs";
10
+ import { useNamespace as Q } from "../../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as X } from "../../../config-provider/hooks/use-locale.mjs";
12
+ import { useGlobalConfig as Z } from "../../../config-provider/hooks/use-global-config.mjs";
13
+ import D from "../../../ap-tag/ap-tag.vue.mjs";
14
+ import b from "../../../ap-form/ap-form.vue2.mjs";
15
+ const R = { class: "menu-list-content-name" }, L = ["title"], U = {
16
16
  key: 0,
17
17
  class: "menu-list-content-default"
18
- }, U = { class: "menu-list-content-action-delete" }, ee = { class: "menu-list-content-edit" }, we = /* @__PURE__ */ A({
18
+ }, ee = { class: "menu-list-content-action-delete" }, te = { class: "menu-list-content-edit" }, _e = /* @__PURE__ */ G({
19
19
  __name: "menu-list-content",
20
20
  props: {
21
21
  view: {}
22
22
  },
23
- setup($) {
24
- const { b: d } = J("ap-view"), { t: l } = Q(), i = $, I = {
23
+ setup(z) {
24
+ const { b: d } = Q("ap-view"), { t: l } = X(), n = z, $ = {
25
25
  aplus: "#2ed1a3",
26
26
  admin: "#34b77c"
27
- }, T = X("uiMode"), { currentViewKey: y, viewListCRUD: t, tableKey: w, menuOpen: V } = P(), c = E(!1), x = E(), B = () => {
28
- y.value = i.view.viewKey, V.value = !1;
29
- }, F = () => {
30
- var n;
31
- (n = t == null ? void 0 : t.changeView) == null || n.call(t, {
32
- ...i.view,
27
+ }, I = Z("uiMode"), {
28
+ currentViewKey: T,
29
+ changeCurrentViewKey: B,
30
+ viewListCRUD: t,
31
+ tableKey: w,
32
+ menuOpen: y
33
+ } = W(), c = S(!1), V = S(), F = () => {
34
+ B(n.view.viewKey), y.value = !1;
35
+ }, Y = () => {
36
+ var i;
37
+ (i = t == null ? void 0 : t.changeView) == null || i.call(t, {
38
+ ...n.view,
33
39
  tableKey: w,
34
40
  isDefault: !0
35
41
  });
36
- }, Y = () => {
37
- var n;
38
- (n = t == null ? void 0 : t.removeView) == null || n.call(t, {
42
+ }, j = () => {
43
+ var i;
44
+ (i = t == null ? void 0 : t.removeView) == null || i.call(t, {
39
45
  tableKey: w,
40
- viewKey: i.view.viewKey
46
+ viewKey: n.view.viewKey
41
47
  });
42
- }, j = async () => {
48
+ }, A = async () => {
43
49
  var o, m, r;
44
- const n = await ((m = (o = x.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
50
+ const i = await ((m = (o = V.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
45
51
  (r = t == null ? void 0 : t.changeView) == null || r.call(t, {
46
- ...i.view,
52
+ ...n.view,
47
53
  tableKey: w,
48
- viewName: (n == null ? void 0 : n.viewName) || i.view.viewName
54
+ viewName: (i == null ? void 0 : i.viewName) || n.view.viewName
49
55
  }), c.value = !1;
50
56
  };
51
- return G(
52
- () => V.value,
53
- (n) => {
54
- n && (c.value = !1);
57
+ return O(
58
+ () => y.value,
59
+ (i) => {
60
+ i && (c.value = !1);
55
61
  }
56
- ), (n, o) => {
57
- var m, r, N, h, K, S, g;
62
+ ), (i, o) => {
63
+ var m, r, x, N, h, K, g;
58
64
  return c.value === !1 ? (p(), u("div", {
59
65
  key: 0,
60
- class: M({
66
+ class: C({
61
67
  [e(d)("menu-list-content")]: !0,
62
- [e(d)("menu-list-content-active")]: ((m = i.view) == null ? void 0 : m.viewKey) === e(y)
68
+ [e(d)("menu-list-content-active")]: ((m = n.view) == null ? void 0 : m.viewKey) === e(T)
63
69
  }),
64
- onClick: B
70
+ onClick: F
65
71
  }, [
66
- s("div", D, [
72
+ s("div", R, [
67
73
  s("span", {
68
- title: (r = i.view) == null ? void 0 : r.viewName
69
- }, v((N = i.view) == null ? void 0 : N.viewName), 9, R)
74
+ title: (r = n.view) == null ? void 0 : r.viewName
75
+ }, f((x = n.view) == null ? void 0 : x.viewName), 9, L)
70
76
  ]),
71
- ((h = i.view) == null ? void 0 : h.viewKey) !== e(b) && ((K = i.view) != null && K.isDefault) ? (p(), u("div", L, [
72
- a(e(Z), {
77
+ ((N = n.view) == null ? void 0 : N.viewKey) !== e(E) && ((h = n.view) != null && h.isDefault) ? (p(), u("div", U, [
78
+ a(e(D), {
73
79
  text: e(l)("ap.apView.default"),
74
80
  size: "small",
75
- color: I[e(T) ?? "aplus"]
81
+ color: $[e(I) ?? "aplus"]
76
82
  }, null, 8, ["text", "color"])
77
83
  ])) : k("", !0),
78
- ((S = i.view) == null ? void 0 : S.viewKey) !== e(b) ? (p(), u("div", {
84
+ ((K = n.view) == null ? void 0 : K.viewKey) !== e(E) ? (p(), u("div", {
79
85
  key: 1,
80
86
  class: "menu-list-content-action",
81
- onClick: o[1] || (o[1] = O(() => {
87
+ onClick: o[1] || (o[1] = P(() => {
82
88
  }, ["stop"]))
83
89
  }, [
84
- a(e(z), { size: 8 }, {
85
- default: f(() => {
90
+ a(e(M), { size: 8 }, {
91
+ default: v(() => {
86
92
  var _;
87
93
  return [
88
94
  s("div", {
89
95
  class: "menu-list-content-action-text",
90
- onClick: o[0] || (o[0] = (te) => c.value = !0)
91
- }, v(e(l)("ap.apView.rename")), 1),
92
- (_ = i.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
96
+ onClick: o[0] || (o[0] = (ne) => c.value = !0)
97
+ }, f(e(l)("ap.apView.rename")), 1),
98
+ (_ = n.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
93
99
  key: 0,
94
100
  class: "menu-list-content-action-text",
95
- onClick: F
96
- }, v(e(l)("ap.apView.setDefault")), 1)),
97
- s("div", U, [
98
- a(e(W), {
101
+ onClick: Y
102
+ }, f(e(l)("ap.apView.setDefault")), 1)),
103
+ s("div", ee, [
104
+ a(e(q), {
99
105
  title: e(l)("ap.apView.deleteTip"),
100
106
  "ok-text": e(l)("ap.apView.ok"),
101
- onConfirm: Y
107
+ onConfirm: j
102
108
  }, {
103
- default: f(() => [
104
- a(q)
109
+ default: v(() => [
110
+ a(H)
105
111
  ]),
106
112
  _: 1
107
113
  }, 8, ["title", "ok-text"])
@@ -113,33 +119,33 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
113
119
  ])) : k("", !0)
114
120
  ], 2)) : (p(), u("div", {
115
121
  key: 1,
116
- class: M([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
122
+ class: C([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
117
123
  }, [
118
- a(C, {
124
+ a(b, {
119
125
  ref_key: "formRef",
120
- ref: x,
126
+ ref: V,
121
127
  "initial-values": {
122
- viewName: (g = i.view) == null ? void 0 : g.viewName
128
+ viewName: (g = n.view) == null ? void 0 : g.viewName
123
129
  }
124
130
  }, {
125
- default: f(() => [
126
- s("div", ee, [
127
- a(e(z), { size: 8 }, {
128
- default: f(() => [
129
- a(C.FormItem, { name: "viewName" }, {
130
- default: f(() => [
131
- a(e(H).Text, { maxlength: 20 })
131
+ default: v(() => [
132
+ s("div", te, [
133
+ a(e(M), { size: 8 }, {
134
+ default: v(() => [
135
+ a(b.FormItem, { name: "viewName" }, {
136
+ default: v(() => [
137
+ a(e(J).Text, { maxlength: 20 })
132
138
  ]),
133
139
  _: 1
134
140
  }),
135
141
  s("div", {
136
142
  class: "menu-list-content-action-text",
137
- onClick: j
138
- }, v(e(l)("ap.apView.save")), 1),
143
+ onClick: A
144
+ }, f(e(l)("ap.apView.save")), 1),
139
145
  s("div", {
140
146
  class: "menu-list-content-action-text",
141
147
  onClick: o[2] || (o[2] = (_) => c.value = !1)
142
- }, v(e(l)("ap.apView.cancel")), 1)
148
+ }, f(e(l)("ap.apView.cancel")), 1)
143
149
  ]),
144
150
  _: 1
145
151
  })
@@ -152,5 +158,5 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
152
158
  }
153
159
  });
154
160
  export {
155
- we as default
161
+ _e as default
156
162
  };
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
3
3
  type DataModel = {
4
4
  tableKey: string;
5
5
  currentViewKey: Ref<string>;
6
+ changeCurrentViewKey: (key: string) => void;
6
7
  popoverOpen: Ref<boolean>;
7
8
  menuOpen: Ref<boolean>;
8
9
  viewList: Ref<ViewListModel[]>;
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
4
4
  trim: boolean;
5
5
  disabled: boolean;
6
- bordered: boolean;
7
6
  hasFeedback: boolean;
8
7
  colon: boolean;
9
8
  autoLink: boolean;
10
9
  required: boolean;
11
10
  validateFirst: boolean;
11
+ bordered: boolean;
12
12
  field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
13
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
43
43
  readonly onMousedown?: MouseEventHandler | undefined;
44
44
  readonly value?: string | number | undefined;
45
45
  readonly disabled?: boolean | undefined;
46
- readonly bordered?: boolean | undefined;
47
46
  readonly prefixCls?: string | undefined;
48
47
  readonly name?: string | undefined;
49
48
  readonly loading?: boolean | undefined;
50
49
  readonly autofocus?: boolean | undefined;
51
50
  readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
51
+ readonly bordered?: boolean | undefined;
52
52
  readonly suffix?: any;
53
53
  readonly focused?: boolean | undefined;
54
54
  readonly placeholder?: string | number | undefined;
@@ -19,8 +19,8 @@ declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {},
19
19
  value: CheckCardValueType | CheckCardValueType[];
20
20
  multiple: boolean;
21
21
  disabled: boolean;
22
- bordered: boolean;
23
22
  loading: boolean;
23
+ bordered: boolean;
24
24
  defaultValue: CheckCardValueType | CheckCardValueType[];
25
25
  stopPropagation: boolean | ((event: MouseEvent) => boolean);
26
26
  indicatorSize: number;
@@ -1,7 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
3
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
4
- import { CssVarType } from './css-var';
5
4
  import { ViewCacheOption } from '../business';
6
5
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
7
6
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
@@ -156,10 +155,6 @@ export declare const configProviderProps: () => {
156
155
  type: PropType<downloadCenterTriggerConfig>;
157
156
  default: () => {};
158
157
  };
159
- cssVar: {
160
- type: PropType<CssVarType>;
161
- default: () => {};
162
- };
163
158
  exportField: {
164
159
  type: PropType<ExportField>;
165
160
  default: boolean;
@@ -32,10 +32,6 @@ const p = () => ({
32
32
  type: Object,
33
33
  default: () => ({})
34
34
  },
35
- cssVar: {
36
- type: Object,
37
- default: () => ({})
38
- },
39
35
  exportField: {
40
36
  type: [Object, Boolean],
41
37
  default: !1
@@ -1,6 +1,5 @@
1
1
  import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ConfigProviderProps } from './config-provider-props';
3
- import { CssVarType } from './css-var';
4
3
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
5
4
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
6
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
@@ -12,7 +11,6 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
11
  import { LocaleType } from '../locale';
13
12
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
14
13
  import { ViewCacheOption } from '..';
15
- import { RecursivePartial } from '../type';
16
14
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
17
15
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
18
16
  iconPrefixCls: StringConstructor;
@@ -156,10 +154,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
156
154
  type: PropType<downloadCenterTriggerConfig>;
157
155
  default: () => {};
158
156
  };
159
- cssVar: {
160
- type: PropType<CssVarType>;
161
- default: () => {};
162
- };
163
157
  exportField: {
164
158
  type: PropType<ExportField>;
165
159
  default: boolean;
@@ -313,10 +307,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
313
307
  type: PropType<downloadCenterTriggerConfig>;
314
308
  default: () => {};
315
309
  };
316
- cssVar: {
317
- type: PropType<CssVarType>;
318
- default: () => {};
319
- };
320
310
  exportField: {
321
311
  type: PropType<ExportField>;
322
312
  default: boolean;
@@ -365,134 +355,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
365
355
  apDescriptions: ApDescriptionsConfig;
366
356
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
367
357
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
368
- cssVar: RecursivePartial<{
369
- 'ap-form': {
370
- bordered: {
371
- 'border-color': {
372
- base: string;
373
- hover: string;
374
- active: string;
375
- };
376
- 'shadow-color': string;
377
- };
378
- };
379
- 'ap-action': {
380
- color: {
381
- primary: {
382
- base: string;
383
- hover: string;
384
- };
385
- success: string;
386
- error: string;
387
- warn: string;
388
- };
389
- };
390
- 'check-card': {
391
- outline: {
392
- color: string;
393
- };
394
- hover: {
395
- outline: {
396
- color: string;
397
- };
398
- };
399
- checked: {
400
- outline: {
401
- color: string;
402
- };
403
- bg: string;
404
- };
405
- };
406
- 'ap-table': {
407
- header: {
408
- bg: string;
409
- };
410
- pagination: {
411
- total: {
412
- color: string;
413
- count: {
414
- color: string;
415
- };
416
- };
417
- };
418
- setting: {
419
- button: {
420
- color: string;
421
- };
422
- };
423
- };
424
- 'ap-batch-action': {
425
- color: {
426
- font: string;
427
- active: string;
428
- border: string;
429
- };
430
- };
431
- basic: {
432
- color: {
433
- primary: string;
434
- };
435
- };
436
- 'ap-descriptions': {
437
- item: {
438
- 'padding-bottom': string;
439
- 'label-width': string;
440
- };
441
- 'last-row-item': {
442
- 'padding-bottom': string;
443
- };
444
- };
445
- 'ap-appendix': {
446
- area: {
447
- color: {
448
- border: string;
449
- font: string;
450
- 'font-hover': string;
451
- 'font-disabled': string;
452
- icon: string;
453
- };
454
- };
455
- };
456
- 'ap-upload-single': {
457
- color: {
458
- main: string;
459
- sub: string;
460
- border: string;
461
- primary: string;
462
- };
463
- };
464
- 'batch-input-group': {
465
- trigger: {
466
- color: string;
467
- 'color-disabled': string;
468
- };
469
- };
470
- 'ap-text': {
471
- label: {
472
- color: string;
473
- };
474
- content: {
475
- color: {
476
- major: string;
477
- minor: string;
478
- };
479
- };
480
- };
481
- 'ap-view': {
482
- icon: {
483
- color: string;
484
- };
485
- bg: {
486
- color: string;
487
- };
488
- message: {
489
- color: string;
490
- };
491
- border: {
492
- color: string;
493
- };
494
- };
495
- }>;
496
358
  exportField: ExportField;
497
359
  viewCacheOption: ViewCacheOption;
498
360
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,24 +1,23 @@
1
- import { isVNode as v, ref as P, defineComponent as V, computed as i, unref as r, watch as u, createVNode as M, renderSlot as b } from "vue";
2
- import { ConfigProvider as w } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as d, provideGlobalConfig as A } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as D } from "./config-provider-props.mjs";
5
- import { mergeAntdProviderConfigWithCache as N, mergeAntdProvideConfig as U } from "../utils/config-provider-preset.mjs";
6
- import { generateCssVar as h, aplusCssVar as S, adminCssVar as T, setCSSVariables as y } from "./css-var.mjs";
7
- import { DEFAULT_NAMESPACE as E, DEFAULT_UIMODE as O } from "./constants.mjs";
8
- function F(e) {
9
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
1
+ import { isVNode as p, ref as C, defineComponent as s, computed as i, unref as t, watch as c, createVNode as v, renderSlot as M } from "vue";
2
+ import { ConfigProvider as P } from "@aplus-frontend/antdv";
3
+ import { useGlobalConfig as l, provideGlobalConfig as U } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as w } from "./config-provider-props.mjs";
5
+ import { mergeAntdProviderConfigWithCache as A, mergeAntdProvideConfig as D } from "../utils/config-provider-preset.mjs";
6
+ import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as b } from "./constants.mjs";
7
+ function h(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
10
9
  }
11
- const n = P({}), W = /* @__PURE__ */ V({
10
+ const n = C({}), S = /* @__PURE__ */ s({
12
11
  name: "AplusConfigProvider",
13
- props: D(),
12
+ props: w(),
14
13
  setup(e, {
15
14
  slots: f
16
15
  }) {
17
- const a = d("namespace"), c = d("uiMode"), m = i(() => e.namespace ? e.namespace : r(a) ? r(a) : E), l = i(() => e.uiMode ? e.uiMode : r(c) ? r(c) : O), s = i(() => ({
18
- namespace: r(m),
16
+ const a = l("namespace"), d = l("uiMode"), m = i(() => e.namespace ? e.namespace : t(a) ? t(a) : N), u = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : b), g = i(() => ({
17
+ namespace: t(m),
19
18
  aplusLocale: e.aplusLocale,
20
19
  api: e.api,
21
- uiMode: r(l),
20
+ uiMode: t(u),
22
21
  apUpload: e.apUpload,
23
22
  apDescriptions: e.apDescriptions,
24
23
  valueTypeMap: e.valueTypeMap,
@@ -26,24 +25,20 @@ const n = P({}), W = /* @__PURE__ */ V({
26
25
  exportField: e.exportField,
27
26
  scrollYDomName: e.scrollYDomName,
28
27
  viewCacheOption: e.viewCacheOption
29
- })), t = A(s);
30
- return u(() => e, (o) => {
31
- n.value = N(U(o), n.value);
28
+ })), r = U(g);
29
+ return c(() => e, (o) => {
30
+ n.value = A(D(o), n.value);
32
31
  }, {
33
32
  deep: !0,
34
33
  immediate: !0
35
- }), typeof window < "u" && u(() => [r(l), e.cssVar], ([o, C]) => {
36
- const g = h(C), p = {
37
- ...o === "aplus" ? S : T,
38
- ...g
39
- };
40
- y(p);
34
+ }), typeof window < "u" && c(() => t(u), (o) => {
35
+ document.documentElement.dataset.aplusUiMode = o;
41
36
  }, {
42
37
  immediate: !0
43
38
  }), () => {
44
39
  let o;
45
- return M(w, n.value, F(o = b(f, "default", {
46
- config: t == null ? void 0 : t.value
40
+ return v(P, n.value, h(o = M(f, "default", {
41
+ config: r == null ? void 0 : r.value
47
42
  })) ? o : {
48
43
  default: () => [o]
49
44
  });
@@ -51,6 +46,6 @@ const n = P({}), W = /* @__PURE__ */ V({
51
46
  }
52
47
  });
53
48
  export {
54
- W as ConfigProvider,
49
+ S as ConfigProvider,
55
50
  n as globalConfigCached
56
51
  };
@@ -11,7 +11,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
11
11
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
12
12
  import { LocaleType } from '../../locale';
13
13
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
14
- import { CssVarType } from '../css-var';
15
14
  import { ViewCacheOption } from '../..';
16
15
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
17
16
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -158,10 +157,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
158
157
  type: PropType<downloadCenterTriggerConfig>;
159
158
  default: () => {};
160
159
  };
161
- cssVar: {
162
- type: PropType<CssVarType>;
163
- default: () => {};
164
- };
165
160
  exportField: {
166
161
  type: PropType<ExportField>;
167
162
  default: boolean;