@aplus-frontend/ui 6.21.1 → 6.22.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 (117) hide show
  1. package/es/index.mjs +160 -155
  2. package/es/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
  3. package/es/src/ag-grid/components/body-cell/index.vue.mjs +4 -0
  4. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +27 -0
  5. package/es/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
  6. package/es/src/ag-grid/components/header-cell/index.vue.mjs +4 -0
  7. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +65 -0
  8. package/es/src/ag-grid/context.d.ts +18 -0
  9. package/es/src/ag-grid/context.mjs +17 -0
  10. package/es/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  11. package/es/src/ag-grid/hooks/use-row-selection.mjs +98 -0
  12. package/es/src/ag-grid/index.d.ts +3 -0
  13. package/es/src/ag-grid/index.mjs +2 -0
  14. package/es/src/ag-grid/index.vue.d.ts +43 -0
  15. package/es/src/ag-grid/index.vue.mjs +512 -0
  16. package/es/src/ag-grid/index.vue2.mjs +4 -0
  17. package/es/src/ag-grid/interface.d.ts +296 -0
  18. package/es/src/ag-grid/interface.mjs +1 -0
  19. package/es/src/ag-grid/style/css.d.ts +0 -0
  20. package/es/src/ag-grid/style/css.js +1 -0
  21. package/es/src/ag-grid/style/index.d.ts +0 -0
  22. package/es/src/ag-grid/style/index.js +1 -0
  23. package/es/src/ag-grid/theme.d.ts +3 -0
  24. package/es/src/ag-grid/theme.mjs +25 -0
  25. package/es/src/ap-field/number/index.vue.mjs +25 -25
  26. package/es/src/ap-grid/index.vue.mjs +1 -1
  27. package/es/src/ap-grid/utils/col.d.ts +11 -0
  28. package/es/src/ap-grid/utils/col.mjs +99 -95
  29. package/es/src/ap-pro-card/components/card/index.vue2.mjs +112 -102
  30. package/es/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  31. package/es/src/ap-pro-card/components/operation/index.vue.mjs +4 -0
  32. package/es/src/ap-pro-card/components/operation/index.vue2.mjs +20 -0
  33. package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  34. package/es/src/ap-pro-card/components/statistic/index.vue.mjs +4 -0
  35. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +134 -0
  36. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  37. package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +4 -0
  38. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +116 -0
  39. package/es/src/ap-pro-card/index.d.ts +13 -3
  40. package/es/src/ap-pro-card/index.mjs +16 -4
  41. package/es/src/ap-pro-card/interface.d.ts +64 -0
  42. package/es/src/ap-table/utils.d.ts +1 -1
  43. package/es/src/ap-tag/ap-tag-group.vue.mjs +42 -42
  44. package/es/src/business/ap-label/group/ApLabelGroup.mjs +17 -15
  45. package/es/src/business/hooks/index.d.ts +1 -0
  46. package/es/src/business/hooks/index.mjs +8 -6
  47. package/es/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  48. package/es/src/business/hooks/usePageListAgGrid.mjs +88 -0
  49. package/es/src/index.d.ts +1 -0
  50. package/es/src/index.mjs +296 -290
  51. package/es/src/version.d.ts +1 -1
  52. package/es/src/version.mjs +1 -1
  53. package/lib/index.js +1 -1
  54. package/lib/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
  55. package/lib/src/ag-grid/components/body-cell/index.vue.js +1 -0
  56. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -0
  57. package/lib/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
  58. package/lib/src/ag-grid/components/header-cell/index.vue.js +1 -0
  59. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -0
  60. package/lib/src/ag-grid/context.d.ts +18 -0
  61. package/lib/src/ag-grid/context.js +1 -0
  62. package/lib/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  63. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -0
  64. package/lib/src/ag-grid/index.d.ts +3 -0
  65. package/lib/src/ag-grid/index.js +1 -0
  66. package/lib/src/ag-grid/index.vue.d.ts +43 -0
  67. package/lib/src/ag-grid/index.vue.js +1 -0
  68. package/lib/src/ag-grid/index.vue2.js +1 -0
  69. package/lib/src/ag-grid/interface.d.ts +296 -0
  70. package/lib/src/ag-grid/interface.js +1 -0
  71. package/lib/src/ag-grid/style/css.cjs +1 -0
  72. package/lib/src/ag-grid/style/css.d.ts +0 -0
  73. package/lib/src/ag-grid/style/index.cjs +1 -0
  74. package/lib/src/ag-grid/style/index.d.ts +0 -0
  75. package/lib/src/ag-grid/theme.d.ts +3 -0
  76. package/lib/src/ag-grid/theme.js +1 -0
  77. package/lib/src/ap-field/number/index.vue.js +1 -1
  78. package/lib/src/ap-grid/index.vue.js +1 -1
  79. package/lib/src/ap-grid/utils/col.d.ts +11 -0
  80. package/lib/src/ap-grid/utils/col.js +1 -1
  81. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  82. package/lib/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  83. package/lib/src/ap-pro-card/components/operation/index.vue.js +1 -0
  84. package/lib/src/ap-pro-card/components/operation/index.vue2.js +1 -0
  85. package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  86. package/lib/src/ap-pro-card/components/statistic/index.vue.js +1 -0
  87. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -0
  88. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  89. package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -0
  90. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -0
  91. package/lib/src/ap-pro-card/index.d.ts +13 -3
  92. package/lib/src/ap-pro-card/index.js +1 -1
  93. package/lib/src/ap-pro-card/interface.d.ts +64 -0
  94. package/lib/src/ap-table/utils.d.ts +1 -1
  95. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  96. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  97. package/lib/src/business/hooks/index.d.ts +1 -0
  98. package/lib/src/business/hooks/index.js +1 -1
  99. package/lib/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  100. package/lib/src/business/hooks/usePageListAgGrid.js +1 -0
  101. package/lib/src/index.d.ts +1 -0
  102. package/lib/src/index.js +1 -1
  103. package/lib/src/version.d.ts +1 -1
  104. package/lib/src/version.js +1 -1
  105. package/package.json +3 -1
  106. package/theme/ag-grid/index.css +468 -0
  107. package/theme/ag-grid/index.less +25 -0
  108. package/theme/ap-button/ap-button.css +1 -1
  109. package/theme/ap-button/ap-button.less +1 -1
  110. package/theme/ap-grid/index.css +3 -0
  111. package/theme/ap-grid/index.less +3 -0
  112. package/theme/ap-pro-card/index.css +147 -0
  113. package/theme/ap-pro-card/index.less +147 -0
  114. package/theme/ap-tag/ap-tag.css +1 -1
  115. package/theme/ap-tag/ap-tag.less +1 -1
  116. package/theme/index.css +330 -5
  117. package/theme/index.less +1 -0
@@ -1,19 +1,19 @@
1
- import { createVNode as v, Fragment as O } from "vue";
2
- import { isUndefined as S, isArray as $, isString as x, isBoolean as A, isNumber as M, pick as R } from "lodash-unified";
3
- import { valueEnumToArray as V, objectToString as j, getTableTitle as c, getTableRenderType as q, getTableRenderProps as B, getTableCellRenderNode as W } from "../../ap-table/utils.mjs";
4
- import { noRenderAsFormItemValueList as _ } from "../../ap-table/constants.mjs";
1
+ import { createVNode as p, Fragment as o } from "vue";
2
+ import { isUndefined as N, isArray as b, isString as F, isBoolean as v, isNumber as w, pick as x } from "lodash-unified";
3
+ import { valueEnumToArray as E, objectToString as O, getTableTitle as A, getTableRenderType as S, getTableRenderProps as $, getTableCellRenderNode as M } from "../../ap-table/utils.mjs";
4
+ import { noRenderAsFormItemValueList as V } from "../../ap-table/constants.mjs";
5
5
  import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
6
- import k from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
- function N(e) {
8
- if (!S(e))
9
- return $(e) ? e.reduce((r, i) => x(i) ? `${r}.${i}` : `${r}[${i}]`, "") : String(e);
6
+ import j from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
+ function R(e) {
8
+ if (!N(e))
9
+ return b(e) ? e.reduce((t, r) => F(r) ? `${t}.${r}` : `${t}[${r}]`, "") : String(e);
10
10
  }
11
- function b(e) {
11
+ function c(e) {
12
12
  if (e)
13
13
  return e === !0 ? "left" : e;
14
14
  }
15
- function z(e) {
16
- return A(e) ? {
15
+ function q(e) {
16
+ return v(e) ? {
17
17
  sortable: e
18
18
  } : e ? {
19
19
  sortable: !0,
@@ -23,115 +23,119 @@ function z(e) {
23
23
  sortable: !1
24
24
  };
25
25
  }
26
- function G(e) {
27
- let r;
28
- return A(e.filters) && e.valueEnum ? r = V(e.valueEnum) : r = e.filters, r == null ? void 0 : r.map((i) => ({
29
- label: x(i.text) ? i.text : "",
30
- value: i.value
26
+ function B(e) {
27
+ let t;
28
+ return v(e.filters) && e.valueEnum ? t = E(e.valueEnum) : t = e.filters, t == null ? void 0 : t.map((r) => ({
29
+ label: F(r.text) ? r.text : "",
30
+ value: r.value
31
31
  }));
32
32
  }
33
- function I(e) {
33
+ function W(e) {
34
34
  if (e)
35
- return (r) => e(r.value, r.row);
35
+ return (t) => e(t.value, t.row);
36
36
  }
37
- function L(e, r) {
38
- return e ? M(e) ? {
39
- tooltip: r,
37
+ function _(e, t) {
38
+ return e ? w(e) ? {
39
+ tooltip: t,
40
40
  rows: e
41
41
  } : e === !0 || e === "tooltip" ? {
42
- tooltip: r,
42
+ tooltip: t,
43
43
  rows: 1
44
44
  } : {
45
45
  tooltip: null,
46
46
  rows: 1,
47
- htmlTitle: e === "title" ? r : ""
47
+ htmlTitle: e === "title" ? t : ""
48
48
  } : !1;
49
49
  }
50
- function U(e, r, i) {
51
- if (_.includes(e.valueType))
52
- return i;
50
+ function k(e, t, r) {
51
+ if (V.includes(e.valueType))
52
+ return r;
53
53
  if (e.copyable || e.ellipsis) {
54
- const l = L(e.ellipsis, r), t = j(r);
55
- return v(k, {
56
- rawValue: t,
54
+ const l = _(e.ellipsis, t), i = O(t);
55
+ return p(j, {
56
+ rawValue: i,
57
57
  copyable: e.copyable,
58
58
  ellipsis: l,
59
- content: i
59
+ content: r
60
60
  }, null);
61
61
  }
62
- return i;
62
+ return r;
63
63
  }
64
- function y(e, r, i) {
65
- const l = R(e, ["width", "minWidth", "align"]);
66
- return l.field = N(e.dataIndex), l.fixed = b(e.fixed), l.slots = {
67
- header: () => c(e, i, void 0, r)
64
+ function T(e, t, r) {
65
+ const l = x(e, ["width", "minWidth", "align"]);
66
+ return l.field = R(e.dataIndex), l.fixed = c(e.fixed), l.slots = {
67
+ header: () => A(e, r, void 0, t)
68
68
  }, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
69
69
  }
70
- function F(e, r, i, l) {
71
- const t = R(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
72
- t.field = N(e.dataIndex), t.fixed = b(e.fixed), t.headerAlign = e.align, t.footerAlign = e.align, t.showOverflow = !1, t.showFooterOverflow = !1, Object.assign(t, z(e.sorter)), t.filters = G(e), t.filterMultiple = e.filterMultiple, t.filterMethod = I(e.onFilter);
73
- const f = ({
74
- value: d,
75
- ...s
76
- }) => {
77
- var o, T;
78
- const a = q(e), u = B({
79
- ...e,
80
- valueType: a
81
- }, {
82
- value: d,
83
- ...s
84
- }), w = W(a, u, s.record, l), h = ((o = e.renderText) == null ? void 0 : o.call(e, {
85
- value: d,
86
- ...s
87
- })) || d, E = e.renderText ? v(O, null, [(T = e.renderText) == null ? void 0 : T.call(e, {
88
- value: d,
89
- ...s
90
- })]) : w;
91
- let p = U(e, h, E);
92
- return e.customRender && (p = e.customRender({
93
- value: d,
94
- ...s,
95
- column: e,
96
- originalNode: p,
97
- originalText: h
98
- })), p;
99
- }, n = ({
100
- row: d,
101
- rowIndex: s
102
- }) => f({
103
- value: d[t.field],
104
- text: d[t.field],
105
- record: d,
106
- index: s,
107
- renderIndex: s,
70
+ const z = ({
71
+ value: e,
72
+ ...t
73
+ }, r, l) => {
74
+ var u, h;
75
+ const i = S(r), d = $({
76
+ ...r,
77
+ valueType: i
78
+ }, {
79
+ value: e,
80
+ ...t
81
+ }), s = M(i, d, t.record, l), n = ((u = r.renderText) == null ? void 0 : u.call(r, {
82
+ value: e,
83
+ ...t
84
+ })) || e, a = r.renderText ? p(o, null, [(h = r.renderText) == null ? void 0 : h.call(r, {
85
+ value: e,
86
+ ...t
87
+ })]) : s;
88
+ let f = k(r, n, a);
89
+ return r.customRender && (f = r.customRender({
90
+ value: e,
91
+ ...t,
92
+ column: r,
93
+ originalNode: f,
94
+ originalText: n
95
+ })), p(o, null, [f]);
96
+ };
97
+ function y(e, t, r, l) {
98
+ const i = x(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
99
+ i.field = R(e.dataIndex), i.fixed = c(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, q(e.sorter)), i.filters = B(e), i.filterMultiple = e.filterMultiple, i.filterMethod = W(e.onFilter);
100
+ const d = ({
101
+ row: s,
102
+ rowIndex: n
103
+ }) => z({
104
+ value: s[i.field],
105
+ text: s[i.field],
106
+ record: s,
107
+ index: n,
108
+ renderIndex: n,
108
109
  column: e
109
- });
110
- return t.slots = {
111
- header: () => c(e, i, void 0, r),
112
- default: n,
113
- footer: n
114
- }, e.html && (delete t.slots.default, delete t.slots.footer, t.type = "html"), e.seq && (t.type = "seq", t.slots = {}), t;
110
+ }, e, l);
111
+ return i.slots = {
112
+ header: () => A(e, r, void 0, t),
113
+ default: d,
114
+ footer: d
115
+ }, e.html && (delete i.slots.default, delete i.slots.footer, i.type = "html"), e.seq && (i.type = "seq", i.slots = {}), i;
115
116
  }
116
- function Y(e, r, i, l) {
117
- var n;
118
- if (!((n = e.children) != null && n.length))
119
- return F(e, r, i, l);
120
- function t(d) {
121
- return d.map((s) => {
122
- var a;
123
- if ((a = s.children) != null && a.length) {
124
- const u = y(s, r, i);
125
- return u.children = t(s.children), u;
117
+ function J(e, t, r, l) {
118
+ var s;
119
+ if (!((s = e.children) != null && s.length))
120
+ return y(e, t, r, l);
121
+ function i(n) {
122
+ return n.map((a) => {
123
+ var f;
124
+ if ((f = a.children) != null && f.length) {
125
+ const u = T(a, t, r);
126
+ return u.children = i(a.children), u;
126
127
  }
127
- return F(s, r, i, l);
128
+ return y(a, t, r, l);
128
129
  });
129
130
  }
130
- const f = y(e, r, i);
131
- return f.children = t(e.children), f;
131
+ const d = T(e, t, r);
132
+ return d.children = i(e.children), d;
132
133
  }
133
134
  export {
134
- Y as transformCol,
135
- y as transformToColGroup,
136
- F as transformToColumn
135
+ z as contentCustom,
136
+ R as dataIndexToField,
137
+ J as transformCol,
138
+ c as transformFixed,
139
+ T as transformToColGroup,
140
+ y as transformToColumn
137
141
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as Y, useSlots as Z, computed as s, ref as ee, createVNode as u, Fragment as x, createElementBlock as b, openBlock as n, mergeProps as te, createCommentVNode as v, createElementVNode as oe, normalizeStyle as A, normalizeClass as m, unref as g, renderSlot as G, createBlock as p, resolveDynamicComponent as h, withCtx as P } from "vue";
2
- import { Spin as re, Tooltip as le } from "@aplus-frontend/antdv";
3
- import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
4
- import { getProCardCssVar as ae } from "../../utils/css-var.mjs";
1
+ import { defineComponent as et, useSlots as ot, computed as d, ref as rt, createVNode as u, Fragment as x, createElementBlock as v, openBlock as s, mergeProps as lt, createCommentVNode as $, createElementVNode as nt, normalizeStyle as w, normalizeClass as g, unref as h, renderSlot as V, createBlock as p, resolveDynamicComponent as b, withCtx as M } from "vue";
2
+ import { Spin as at, Tooltip as it } from "@aplus-frontend/antdv";
3
+ import { QuestionCircleOutlined as st } from "@ant-design/icons-vue";
4
+ import { getProCardCssVar as dt } from "../../utils/css-var.mjs";
5
5
  import "../../../config-provider/index.mjs";
6
- import { mergeClass as S } from "../../../editable-table/utils.mjs";
7
- import ie from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
8
- import { useNamespace as se } from "../../../config-provider/hooks/use-namespace.mjs";
9
- import { useGlobalConfig as de } from "../../../config-provider/hooks/use-global-config.mjs";
10
- const be = /* @__PURE__ */ Y({
6
+ import { mergeClass as m } from "../../../editable-table/utils.mjs";
7
+ import ut from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
8
+ import { useNamespace as ct } from "../../../config-provider/hooks/use-namespace.mjs";
9
+ import { useGlobalConfig as ft } from "../../../config-provider/hooks/use-global-config.mjs";
10
+ const St = /* @__PURE__ */ et({
11
11
  name: "ApProCard",
12
12
  __name: "index",
13
13
  props: {
@@ -63,15 +63,15 @@ const be = /* @__PURE__ */ Y({
63
63
  default: !1
64
64
  }
65
65
  },
66
- setup(E) {
67
- const t = E, o = Z(), {
66
+ setup(_) {
67
+ const e = _, l = ot(), {
68
68
  b: c
69
- } = se("pro-card"), V = de("uiMode"), M = s(() => ae(V.value)), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], f = ie(), k = (e, r) => e ? r : {}, _ = (e) => {
69
+ } = ct("pro-card"), D = ft("uiMode"), I = d(() => dt(D.value)), C = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], y = ut(), k = (t, r) => t ? r : {}, F = (t) => {
70
70
  const r = [0, 0];
71
- return (Array.isArray(e) ? e : [e, 0]).forEach((a, d) => {
71
+ return (Array.isArray(t) ? t : [t, 0]).forEach((a, o) => {
72
72
  if (typeof a == "object")
73
- for (let i = 0; i < $.length; i += 1) {
74
- const y = $[i];
73
+ for (let i = 0; i < C.length; i += 1) {
74
+ const f = C[i];
75
75
  if ({
76
76
  lg: !0,
77
77
  md: !0,
@@ -80,20 +80,20 @@ const be = /* @__PURE__ */ Y({
80
80
  xs: !1,
81
81
  xxl: !1,
82
82
  xxxl: !1,
83
- ...f == null ? void 0 : f.value
84
- }[y] && a[y] !== void 0) {
85
- r[d] = a[y];
83
+ ...y == null ? void 0 : y.value
84
+ }[f] && a[f] !== void 0) {
85
+ r[o] = a[f];
86
86
  break;
87
87
  }
88
88
  }
89
89
  else
90
- r[d] = a || 0;
90
+ r[o] = a || 0;
91
91
  }), r;
92
- }, I = (e) => {
93
- let r = e;
94
- if (typeof e == "object")
95
- for (let a = 0; a < $.length; a += 1) {
96
- const d = $[a], i = {
92
+ }, H = (t) => {
93
+ let r = t;
94
+ if (typeof t == "object")
95
+ for (let a = 0; a < C.length; a += 1) {
96
+ const o = C[a], i = {
97
97
  lg: !0,
98
98
  md: !0,
99
99
  sm: !0,
@@ -101,33 +101,33 @@ const be = /* @__PURE__ */ Y({
101
101
  xs: !1,
102
102
  xxl: !1,
103
103
  xxxl: !1,
104
- ...f == null ? void 0 : f.value
104
+ ...y == null ? void 0 : y.value
105
105
  };
106
- if (i != null && i[d] && (e == null ? void 0 : e[d]) !== void 0) {
107
- r = e[d];
106
+ if (i != null && i[o] && (t == null ? void 0 : t[o]) !== void 0) {
107
+ r = t[o];
108
108
  break;
109
109
  }
110
110
  }
111
- const l = k(typeof r == "string" && /\d%|\dpx/i.test(r), {
111
+ const n = k(typeof r == "string" && /\d%|\dpx/i.test(r), {
112
112
  width: r,
113
113
  flexShrink: 0
114
114
  });
115
115
  return {
116
116
  span: r,
117
- colSpanStyle: l
117
+ colSpanStyle: n
118
118
  };
119
- }, D = s(() => _(t.gutter)), N = ee(!1), O = (e) => {
120
- N.value = e;
121
- }, F = s(() => {
122
- var e;
123
- return u(x, null, [t.title || ((e = o.title) == null ? void 0 : e.call(o))]);
124
- }), H = s(() => u(x, null, [t.tooltip])), Q = s(() => {
125
- var e;
126
- return u(x, null, [t.extra || ((e = o.extra) == null ? void 0 : e.call(o))]);
127
- }), T = s(() => {
128
- var e;
129
- return u(x, null, [t.actions || ((e = o.actions) == null ? void 0 : e.call(o))]);
130
- }), q = s(() => t.loading === !0 ? u(re, {
119
+ }, Q = d(() => F(e.gutter)), N = rt(!1), E = (t) => {
120
+ N.value = t;
121
+ }, T = d(() => {
122
+ var t;
123
+ return u(x, null, [e.title || ((t = l.title) == null ? void 0 : t.call(l))]);
124
+ }), q = d(() => u(x, null, [e.tooltip])), J = d(() => {
125
+ var t;
126
+ return u(x, null, [e.extra || ((t = l.extra) == null ? void 0 : t.call(l))]);
127
+ }), K = d(() => {
128
+ var t;
129
+ return u(x, null, [e.actions || ((t = l.actions) == null ? void 0 : t.call(l))]);
130
+ }), L = d(() => e.loading === !0 ? u(at, {
131
131
  style: {
132
132
  width: "100%",
133
133
  height: "100%",
@@ -135,92 +135,102 @@ const be = /* @__PURE__ */ Y({
135
135
  alignItems: "center",
136
136
  justifyContent: "center"
137
137
  }
138
- }, null) : u(x, null, [t.loading]));
139
- function J() {
140
- var r;
141
- const e = (r = o.default) == null ? void 0 : r.call(o);
142
- return O(!1), u(x, null, [e == null ? void 0 : e.map((l, a, d) => {
143
- var i, y, z;
144
- if (l && typeof l == "object" && "type" in l && ((i = l.type) == null ? void 0 : i.isProCard) === !0) {
145
- O(!0);
146
- const U = ((y = l == null ? void 0 : l.props) == null ? void 0 : y.colSpan) || ((z = l == null ? void 0 : l.props) == null ? void 0 : z["col-span"]) || {}, {
147
- span: C,
148
- colSpanStyle: W
149
- } = I(U), B = c("col"), X = S(`${B}`, [typeof C == "number" && C >= 0 && C <= 24 ? `${B}-span-${C}` : void 0, t.split === "horizontal" && a !== d.length - 1 ? `${B}-split-horizontal` : void 0, t.split === "vertical" && a !== d.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [j, w] = D.value;
138
+ }, null) : u(x, null, [e.loading])), O = (t, r = []) => {
139
+ if ((t == null ? void 0 : t.type) === Symbol.for("v-fgt")) {
140
+ const n = Array.isArray(t == null ? void 0 : t.children) ? t == null ? void 0 : t.children : [t == null ? void 0 : t.children];
141
+ if (n != null && n.length)
142
+ for (let a = 0; a < n.length; a++)
143
+ n != null && n[a] && O(n == null ? void 0 : n[a], r);
144
+ } else
145
+ t && r.push(t);
146
+ return r;
147
+ }, R = () => {
148
+ var r, n, a;
149
+ const t = (r = l.default) == null ? void 0 : r.call(l);
150
+ return E(!1), u(x, null, [(a = (n = t == null ? void 0 : t.reduce((o, i) => {
151
+ const f = O(i);
152
+ return [...o, ...f];
153
+ }, [])) == null ? void 0 : n.filter((o) => o.type !== Symbol.for("v-cmt"))) == null ? void 0 : a.map((o, i, f) => {
154
+ var z, G, P;
155
+ if (o && typeof o == "object" && "type" in o && ((z = o.type) == null ? void 0 : z.isProCard) === !0) {
156
+ E(!0);
157
+ const Y = ((G = o == null ? void 0 : o.props) == null ? void 0 : G.colSpan) || ((P = o == null ? void 0 : o.props) == null ? void 0 : P["col-span"]) || {}, {
158
+ span: S,
159
+ colSpanStyle: Z
160
+ } = H(Y), B = c("col"), tt = m(`${B}`, [typeof S == "number" && S >= 0 && S <= 24 ? `${B}-span-${S}` : void 0, e.split === "horizontal" && i !== f.length - 1 ? `${B}-split-horizontal` : void 0, e.split === "vertical" && i !== f.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [A, j] = Q.value;
150
161
  return u("div", {
151
- class: X,
162
+ class: tt,
152
163
  style: {
153
- ...W,
154
- ...k(j > 0, {
155
- paddingInlineStart: `${j / 2}px`,
156
- paddingInlineEnd: `${j / 2}px`
164
+ ...Z,
165
+ ...k(A > 0, {
166
+ paddingInlineStart: `${A / 2}px`,
167
+ paddingInlineEnd: `${A / 2}px`
157
168
  }),
158
- ...k(w > 0, {
159
- paddingBlockStart: `${w / 2}px`,
160
- paddingBlockEnd: `${w / 2}px`
169
+ ...k(j > 0, {
170
+ paddingBlockStart: `${j / 2}px`,
171
+ paddingBlockEnd: `${j / 2}px`
161
172
  }),
162
- ...t.colStyle
173
+ ...e.colStyle
163
174
  }
164
- }, [l]);
175
+ }, [o]);
165
176
  }
166
- return l;
177
+ return o;
167
178
  })]);
168
- }
169
- const K = s(() => {
170
- const e = c();
171
- return S(`${e}`, [t.bordered ? `${e}-border` : void 0, t.boxShadow ? `${e}-box-shadow` : void 0, N.value ? `${e}-contain-card` : void 0, t.loading ? `${e}-loading` : void 0, t.split === "vertical" || t.split === "horizontal" ? `${e}-split` : void 0, t.ghost ? `${e}-ghost` : void 0, t.hoverable ? `${e}-hoverable` : void 0, t.type ? `${e}-type-${t.type}` : void 0].filter(Boolean));
172
- }), L = s(() => {
173
- const e = c("header");
174
- return S(`${e}`, [t.headerBordered || t.type === "inner" ? `${e}-border` : void 0].filter(Boolean));
175
- }), R = s(() => {
176
- const e = c("body");
177
- return S(`${e}`, [t.layout === "center" ? `${e}-center` : void 0, t.split === "horizontal" || t.direction === "column" ? `${e}-direction-column` : void 0, t.wrap && N.value ? `${e}-wrap` : void 0].filter(Boolean));
179
+ }, U = d(() => {
180
+ const t = c();
181
+ return m(`${t}`, [e.bordered ? `${t}-border` : void 0, e.boxShadow ? `${t}-box-shadow` : void 0, N.value ? `${t}-contain-card` : void 0, e.loading ? `${t}-loading` : void 0, e.split === "vertical" || e.split === "horizontal" ? `${t}-split` : void 0, e.ghost ? `${t}-ghost` : void 0, e.hoverable ? `${t}-hoverable` : void 0, e.type ? `${t}-type-${e.type}` : void 0].filter(Boolean));
182
+ }), W = d(() => {
183
+ const t = c("header");
184
+ return m(`${t}`, [e.headerBordered || e.type === "inner" ? `${t}-border` : void 0].filter(Boolean));
185
+ }), X = d(() => {
186
+ const t = c("body");
187
+ return m(`${t}`, [e.layout === "center" ? `${t}-center` : void 0, e.split === "horizontal" || e.direction === "column" ? `${t}-direction-column` : void 0, e.wrap && N.value ? `${t}-wrap` : void 0].filter(Boolean));
178
188
  });
179
- return (e, r) => (n(), b("div", te({
180
- class: K.value,
189
+ return (t, r) => (s(), v("div", lt({
190
+ class: U.value,
181
191
  style: {
182
- ...M.value
192
+ ...I.value
183
193
  }
184
194
  }, {
185
- ...e.$attrs
186
- }), [t.title || o.title || t.extra || o.extra ? (n(), b("div", {
195
+ ...t.$attrs
196
+ }), [e.title || l.title || e.extra || l.extra ? (s(), v("div", {
187
197
  key: 0,
188
- class: m(L.value),
189
- style: A({
190
- ...t.headStyle
198
+ class: g(W.value),
199
+ style: w({
200
+ ...e.headStyle
191
201
  })
192
- }, [t.title || o.title ? (n(), b("div", {
202
+ }, [e.title || l.title ? (s(), v("div", {
193
203
  key: 0,
194
- class: m(g(c)("header-title"))
195
- }, [G(e.$slots, "title", {}, () => [(n(), p(h(F.value)))]), t.tooltip ? (n(), p(g(le), {
204
+ class: g(h(c)("header-title"))
205
+ }, [V(t.$slots, "title", {}, () => [(s(), p(b(T.value)))]), e.tooltip ? (s(), p(h(it), {
196
206
  key: 0
197
207
  }, {
198
- title: P(() => [(n(), p(h(H.value)))]),
199
- default: P(() => [u(g(ne), {
200
- class: m(g(c)("header-title-tooltip"))
208
+ title: M(() => [(s(), p(b(q.value)))]),
209
+ default: M(() => [u(h(st), {
210
+ class: g(h(c)("header-title-tooltip"))
201
211
  }, null, 8, ["class"])]),
202
212
  _: 1
203
- })) : v("", !0)], 2)) : v("", !0), t.extra || o.extra ? (n(), b("div", {
213
+ })) : $("", !0)], 2)) : $("", !0), e.extra || l.extra ? (s(), v("div", {
204
214
  key: 1,
205
- class: m(g(c)("header-extra"))
206
- }, [G(e.$slots, "extra", {}, () => [(n(), p(h(Q.value)))])], 2)) : v("", !0)], 6)) : v("", !0), oe("div", {
207
- class: m(R.value),
208
- style: A({
209
- ...t.bodyStyle
215
+ class: g(h(c)("header-extra"))
216
+ }, [V(t.$slots, "extra", {}, () => [(s(), p(b(J.value)))])], 2)) : $("", !0)], 6)) : $("", !0), nt("div", {
217
+ class: g(X.value),
218
+ style: w({
219
+ ...e.bodyStyle
210
220
  })
211
- }, [t.loading ? (n(), p(h(q.value), {
221
+ }, [e.loading ? (s(), p(b(L.value), {
212
222
  key: 0
213
- })) : (n(), p(h(J()), {
223
+ })) : (s(), p(b(R()), {
214
224
  key: 1
215
- }))], 6), t.actions || o.actions ? (n(), b("div", {
225
+ }))], 6), e.actions || l.actions ? (s(), v("div", {
216
226
  key: 1,
217
- class: m(g(c)("actions")),
218
- style: A({
219
- ...t.actionsStyle
227
+ class: g(h(c)("actions")),
228
+ style: w({
229
+ ...e.actionsStyle
220
230
  })
221
- }, [(n(), p(h(T.value)))], 6)) : v("", !0)], 16));
231
+ }, [(s(), p(b(K.value)))], 6)) : $("", !0)], 16));
222
232
  }
223
233
  });
224
234
  export {
225
- be as default
235
+ St as default
226
236
  };
@@ -0,0 +1,18 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as o, createElementBlock as t, openBlock as n, mergeProps as a, unref as p, renderSlot as s } from "vue";
2
+ import "../../../config-provider/index.mjs";
3
+ import { useNamespace as m } from "../../../config-provider/hooks/use-namespace.mjs";
4
+ const u = /* @__PURE__ */ o({
5
+ name: "ApProCardOperation",
6
+ __name: "index",
7
+ setup(c) {
8
+ const { b: r } = m("pro-card-operation");
9
+ return (e, i) => (n(), t("div", a({
10
+ ...e.$attrs
11
+ }, {
12
+ class: p(r)()
13
+ }), [
14
+ s(e.$slots, "default")
15
+ ], 16));
16
+ }
17
+ });
18
+ export {
19
+ u as default
20
+ };
@@ -0,0 +1,51 @@
1
+ import { ApProCardStatisticProps, ApProCardStatisticSolts } from '../../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, VNodeArrayChildren, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<ApProCardStatisticSolts> & ApProCardStatisticSolts;
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: DefineComponent<ApProCardStatisticProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApProCardStatisticProps> & Readonly<{}>, {
11
+ title: string | number | boolean | void | VNode<RendererNode, RendererElement, {
12
+ [key: string]: any;
13
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
14
+ [key: string]: any;
15
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
16
+ [key: string]: any;
17
+ }> | null;
18
+ layout: "horizontal" | "vertical" | "inline";
19
+ icon: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
20
+ [key: string]: any;
21
+ }> | null;
22
+ description: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
23
+ [key: string]: any;
24
+ }> | null;
25
+ suffix: string | number | boolean | void | VNode<RendererNode, RendererElement, {
26
+ [key: string]: any;
27
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
28
+ [key: string]: any;
29
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
30
+ [key: string]: any;
31
+ }> | null;
32
+ status: "error" | "default" | "success" | "warning" | "processing";
33
+ prefix: string | number | boolean | void | VNode<RendererNode, RendererElement, {
34
+ [key: string]: any;
35
+ }> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
36
+ [key: string]: any;
37
+ }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
38
+ [key: string]: any;
39
+ }> | null;
40
+ tip: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
41
+ [key: string]: any;
42
+ }> | null;
43
+ trend: "up" | "down";
44
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };