@aplus-frontend/ui 6.33.0 → 6.34.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.
- package/es/src/ag-grid/components/tooltip/index.vue.d.ts +6 -0
- package/es/src/ag-grid/components/tooltip/index.vue.mjs +4 -0
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +29 -0
- package/es/src/ag-grid/hooks/use-columns-def.d.ts +1 -0
- package/es/src/ag-grid/hooks/use-columns-def.mjs +94 -87
- package/es/src/ag-grid/index.vue.mjs +109 -111
- package/es/src/ap-download/ap-download.vue.mjs +31 -25
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +21 -18
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue.d.ts +6 -0
- package/lib/src/ag-grid/components/tooltip/index.vue.js +1 -0
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -0
- package/lib/src/ag-grid/hooks/use-columns-def.d.ts +1 -0
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/ag-grid/index.css +5 -1
- package/theme/ag-grid/index.less +5 -1
- package/theme/index.css +5 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
params: any;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as p, ref as m, onMounted as u, createElementBlock as d, createCommentVNode as f, openBlock as g, normalizeClass as v, unref as C, toDisplayString as _ } from "vue";
|
|
2
|
+
import "../../../config-provider/index.mjs";
|
|
3
|
+
import { useNamespace as x } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
|
+
const w = /* @__PURE__ */ p({
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
params: {}
|
|
8
|
+
},
|
|
9
|
+
setup(l) {
|
|
10
|
+
const n = l, e = m(!1), { e: s } = x("ag-grid");
|
|
11
|
+
return u(() => {
|
|
12
|
+
const { rowIndex: o, column: t, gridWrapperRef: c, lineClamp: i } = n.params, r = c.value.querySelector(
|
|
13
|
+
`div.ag-row[row-index="${o}"] .ag-cell[col-id="${t.colId}"] span.ag-cell-value`
|
|
14
|
+
);
|
|
15
|
+
if (!r) {
|
|
16
|
+
e.value = !0;
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const a = i === 1 ? "Width" : "Height";
|
|
20
|
+
e.value = r[`scroll${a}`] > r[`client${a}`];
|
|
21
|
+
}), (o, t) => e.value ? (g(), d("div", {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: v(C(s)("tooltip"))
|
|
24
|
+
}, _(o.params.value), 3)) : f("", !0);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
w as default
|
|
29
|
+
};
|
|
@@ -10,4 +10,5 @@ import { Ref, ComputedRef } from 'vue';
|
|
|
10
10
|
export declare const useColumnsDef: <RecordType>(columns: Ref<AgGridColumnType<RecordType>[]>, props: AgGridProps<RecordType>, customCellClass: (callback: CellClassFunc) => CellClassFunc) => {
|
|
11
11
|
columnDefs: ComputedRef<(ColDef<any, any> | ColGroupDef<any>)[]>;
|
|
12
12
|
defaultColDef: ComputedRef<ColDef<any, any>>;
|
|
13
|
+
gridWrapperRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
13
14
|
};
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { getTableRenderProps as
|
|
2
|
-
import { rendererMap as
|
|
3
|
-
import { isNumber as
|
|
4
|
-
import {
|
|
1
|
+
import { getTableRenderProps as m, objectToString as P } from "../../ap-table/utils.mjs";
|
|
2
|
+
import { rendererMap as c } from "../renderer/index.mjs";
|
|
3
|
+
import { isNumber as f, isFunction as y } from "lodash-unified";
|
|
4
|
+
import { ref as R, unref as C, computed as T } from "vue";
|
|
5
5
|
import "../components/body-cell/index.vue.mjs";
|
|
6
6
|
import "../components/header-cell/index.vue.mjs";
|
|
7
|
+
import "../components/tooltip/index.vue.mjs";
|
|
7
8
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { dataIndexToField as
|
|
9
|
-
import { isDef as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
import { dataIndexToField as I } from "../../ap-grid/utils/col.mjs";
|
|
10
|
+
import { isDef as S } from "../../utils/index.mjs";
|
|
11
|
+
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import W from "../components/body-cell/index.vue2.mjs";
|
|
14
|
+
import z from "../components/tooltip/index.vue2.mjs";
|
|
15
|
+
import v from "../components/header-cell/index.vue2.mjs";
|
|
16
|
+
function F(r) {
|
|
17
|
+
return f(r) && r > 1;
|
|
16
18
|
}
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
if (
|
|
21
|
-
return
|
|
19
|
+
function M(r, l) {
|
|
20
|
+
if (l.bodyCellTooltip)
|
|
21
|
+
return y(l.bodyCellTooltip) ? l.bodyCellTooltip(r.value, r.data) : l.bodyCellTooltip;
|
|
22
|
+
if (l.renderText)
|
|
23
|
+
return l.renderText({
|
|
22
24
|
value: r.value,
|
|
23
25
|
record: r.data,
|
|
24
|
-
column:
|
|
26
|
+
column: l,
|
|
25
27
|
text: r.value
|
|
26
28
|
});
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
{ ...
|
|
29
|
+
const n = l.valueType || "text", d = c[n];
|
|
30
|
+
if (d) {
|
|
31
|
+
const p = m(
|
|
32
|
+
{ ...l, valueType: n },
|
|
31
33
|
{
|
|
32
34
|
value: r.value,
|
|
33
35
|
text: r.value,
|
|
@@ -37,54 +39,62 @@ function z(r, i) {
|
|
|
37
39
|
pinned: r.node?.rowPinned
|
|
38
40
|
}
|
|
39
41
|
);
|
|
40
|
-
return
|
|
42
|
+
return d(p);
|
|
41
43
|
}
|
|
42
44
|
return P(r.value);
|
|
43
45
|
}
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
if (a.customRender)
|
|
55
|
-
return e;
|
|
56
|
-
if (a.renderText)
|
|
57
|
-
return {
|
|
58
|
-
valueFormatter: (t) => a.renderText({
|
|
59
|
-
value: t.value,
|
|
60
|
-
record: t.data,
|
|
61
|
-
column: a,
|
|
62
|
-
text: t.value
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
const d = a.valueType || "text", l = h[d];
|
|
66
|
-
return l ? {
|
|
67
|
-
valueFormatter: (t) => {
|
|
68
|
-
const o = y(
|
|
69
|
-
{ ...a, valueType: d },
|
|
70
|
-
{
|
|
71
|
-
value: t.value,
|
|
72
|
-
text: t.value,
|
|
73
|
-
record: t.data,
|
|
74
|
-
column: t.column,
|
|
75
|
-
rowIndex: t.node?.rowIndex,
|
|
76
|
-
pinned: t.node?.rowPinned
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
return l(o);
|
|
80
|
-
}
|
|
81
|
-
} : e;
|
|
46
|
+
const X = (r, l, n) => {
|
|
47
|
+
const d = _("valueTypeMap"), u = R(), { em: p } = G("ag-grid"), h = (t) => {
|
|
48
|
+
const i = {
|
|
49
|
+
cellRenderer: W,
|
|
50
|
+
cellRendererParams: {
|
|
51
|
+
column: t,
|
|
52
|
+
extraValueType: C(d)
|
|
53
|
+
}
|
|
82
54
|
};
|
|
83
|
-
|
|
55
|
+
if (t.customRender)
|
|
56
|
+
return i;
|
|
57
|
+
if (t.renderText)
|
|
58
|
+
return {
|
|
59
|
+
valueFormatter: (o) => t.renderText({
|
|
60
|
+
value: o.value,
|
|
61
|
+
record: o.data,
|
|
62
|
+
column: t,
|
|
63
|
+
text: o.value
|
|
64
|
+
})
|
|
65
|
+
};
|
|
66
|
+
const a = t.valueType || "text", e = c[a];
|
|
67
|
+
return e ? {
|
|
68
|
+
valueFormatter: (o) => {
|
|
69
|
+
const s = m(
|
|
70
|
+
{ ...t, valueType: a },
|
|
71
|
+
{
|
|
72
|
+
value: o.value,
|
|
73
|
+
text: o.value,
|
|
74
|
+
record: o.data,
|
|
75
|
+
column: o.column,
|
|
76
|
+
rowIndex: o.node?.rowIndex,
|
|
77
|
+
pinned: o.node?.rowPinned
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
return e(s);
|
|
81
|
+
}
|
|
82
|
+
} : i;
|
|
83
|
+
}, b = (t) => {
|
|
84
|
+
const i = {}, a = t.bodyCellTooltip || !t.customRender && (t.ellipsis === !0 || t.ellipsis === "tooltip" || f(t.ellipsis)), e = f(t.ellipsis) && t.ellipsis > 1, o = f(t.ellipsis) ? t.ellipsis : 1;
|
|
85
|
+
return i.tooltipValueGetter = a ? (s) => M(s, t) : void 0, i.wrapText = !t.ellipsis || e, i.cellStyle = {
|
|
86
|
+
"--ag-grid-line-clamp": o
|
|
87
|
+
}, i.tooltipComponent = z, i.tooltipComponentParams = {
|
|
88
|
+
lineClamp: o,
|
|
89
|
+
gridWrapperRef: u
|
|
90
|
+
}, i;
|
|
91
|
+
}, g = T(() => {
|
|
92
|
+
const t = C(r);
|
|
93
|
+
function i(a) {
|
|
84
94
|
return a.map((e) => {
|
|
85
|
-
const
|
|
86
|
-
field:
|
|
87
|
-
colId:
|
|
95
|
+
const o = {
|
|
96
|
+
field: I(e.dataIndex),
|
|
97
|
+
colId: S(e.key) ? String(e.key) : void 0,
|
|
88
98
|
sortable: !!e.sorter,
|
|
89
99
|
comparator: e.sorter === !0 ? () => 0 : e.sorter,
|
|
90
100
|
headerComponentParams: {
|
|
@@ -99,47 +109,44 @@ const J = (r, i, s) => {
|
|
|
99
109
|
pinned: e.fixed || null,
|
|
100
110
|
// undefined to null
|
|
101
111
|
colSpan: e.colSpan,
|
|
102
|
-
cellClass:
|
|
103
|
-
const
|
|
112
|
+
cellClass: n((s) => {
|
|
113
|
+
const x = e.cellClass || "", D = y(x) ? x(s.data, s.node) : x;
|
|
104
114
|
return [
|
|
105
|
-
`${
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
`${p("cell", e.align || "left")}`,
|
|
116
|
+
F(e.ellipsis) ? p("cell", "multiline") : null,
|
|
117
|
+
D
|
|
108
118
|
].flat().filter(Boolean);
|
|
109
119
|
}),
|
|
110
|
-
cellStyle: {
|
|
111
|
-
"--ag-grid-line-clamp": p(e.ellipsis) ? e.ellipsis : 1
|
|
112
|
-
},
|
|
113
|
-
wrapText: !e.ellipsis || p(e.ellipsis) && e.ellipsis > 1,
|
|
114
120
|
autoHeight: !0,
|
|
115
121
|
// 设置自动计算高度以自适应多行换行的场景
|
|
116
|
-
|
|
117
|
-
...
|
|
122
|
+
...b(e),
|
|
123
|
+
...h(e)
|
|
118
124
|
};
|
|
119
125
|
return e.children?.length ? {
|
|
120
|
-
...
|
|
121
|
-
headerGroupComponent:
|
|
126
|
+
...o,
|
|
127
|
+
headerGroupComponent: v,
|
|
122
128
|
headerGroupComponentParams: {
|
|
123
129
|
column: e
|
|
124
130
|
},
|
|
125
|
-
children:
|
|
126
|
-
} :
|
|
131
|
+
children: i(e.children)
|
|
132
|
+
} : o;
|
|
127
133
|
});
|
|
128
134
|
}
|
|
129
|
-
return
|
|
130
|
-
}),
|
|
135
|
+
return i(t);
|
|
136
|
+
}), w = T(
|
|
131
137
|
() => ({
|
|
132
|
-
headerComponent:
|
|
133
|
-
resizable:
|
|
138
|
+
headerComponent: v,
|
|
139
|
+
resizable: l.columnResizable,
|
|
134
140
|
suppressMovable: !0,
|
|
135
141
|
cellDataType: !1
|
|
136
142
|
})
|
|
137
143
|
);
|
|
138
144
|
return {
|
|
139
|
-
columnDefs:
|
|
140
|
-
defaultColDef:
|
|
145
|
+
columnDefs: g,
|
|
146
|
+
defaultColDef: w,
|
|
147
|
+
gridWrapperRef: u
|
|
141
148
|
};
|
|
142
149
|
};
|
|
143
150
|
export {
|
|
144
|
-
|
|
151
|
+
X as useColumnsDef
|
|
145
152
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AgGridVue as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { mergeProps as
|
|
5
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as oo, useSlots as to, ref as I, toRef as T, unref as t, computed as l, nextTick as ro, watch as z, createElementBlock as A, openBlock as b, normalizeStyle as V, normalizeClass as m, createCommentVNode as re, createElementVNode as B, createVNode as M, mergeProps as O, createSlots as ao, withCtx as ae, Fragment as no, renderList as lo, createBlock as ne, resolveDynamicComponent as so, renderSlot as le, withDirectives as io, vShow as uo } from "vue";
|
|
2
|
+
import { AgGridVue as co } from "ag-grid-vue3";
|
|
3
|
+
import { ModuleRegistry as mo, AllCommunityModule as po } from "ag-grid-community";
|
|
4
|
+
import { mergeProps as fo } from "./utils.mjs";
|
|
5
|
+
import { Spin as go, Pagination as wo } from "@aplus-frontend/antdv";
|
|
6
6
|
import { isUndefined as F, isFunction as se } from "lodash-unified";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { ApForm as
|
|
9
|
-
import { recursionApColumns as
|
|
10
|
-
import { useTablePaging as
|
|
11
|
-
import
|
|
12
|
-
import { useProvideSorter as
|
|
13
|
-
import { useProvideApTable as
|
|
14
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as ie, sizeReverseMap as
|
|
15
|
-
import { useToken as
|
|
16
|
-
import { useTheme as
|
|
17
|
-
import { useColumns as
|
|
18
|
-
import { useColumnsDef as
|
|
19
|
-
import { isDef as
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useSearchForm as
|
|
8
|
+
import { ApForm as So } from "../ap-form/index.mjs";
|
|
9
|
+
import { recursionApColumns as yo } from "../ap-table/utils.mjs";
|
|
10
|
+
import { useTablePaging as Co } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
11
|
+
import ho from "./hooks/use-row-selection.mjs";
|
|
12
|
+
import { useProvideSorter as vo } from "./context.mjs";
|
|
13
|
+
import { useProvideApTable as Ro } from "../ap-table/context.mjs";
|
|
14
|
+
import { DEFAULT_ROW_SELECTION_CONFIG as ie, sizeReverseMap as bo, sizeMap as Bo } from "../ap-grid/constants.mjs";
|
|
15
|
+
import { useToken as Fo } from "@aplus-frontend/antdv/es/theme/internal";
|
|
16
|
+
import { useTheme as ko } from "./theme.mjs";
|
|
17
|
+
import { useColumns as xo } from "./hooks/use-columns.mjs";
|
|
18
|
+
import { useColumnsDef as Io } from "./hooks/use-columns-def.mjs";
|
|
19
|
+
import { isDef as To } from "../utils/index.mjs";
|
|
20
|
+
import { getValidVNodeList as No } from "../utils/slot.mjs";
|
|
21
|
+
import { useSearchForm as Do } from "./hooks/use-search-form.mjs";
|
|
22
22
|
import "./components/empty/index.vue.mjs";
|
|
23
|
-
import
|
|
24
|
-
import { usePinnedRow as
|
|
25
|
-
import
|
|
26
|
-
import { useNamespace as
|
|
27
|
-
import { useGlobalConfig as
|
|
28
|
-
import
|
|
29
|
-
const
|
|
23
|
+
import Eo from "./hooks/use-virtual-config.mjs";
|
|
24
|
+
import { usePinnedRow as Ko } from "./hooks/use-pinned-row.mjs";
|
|
25
|
+
import Po from "./hooks/use-selection-col-def.mjs";
|
|
26
|
+
import { useNamespace as zo } from "../config-provider/hooks/use-namespace.mjs";
|
|
27
|
+
import { useGlobalConfig as Ao } from "../config-provider/hooks/use-global-config.mjs";
|
|
28
|
+
import Vo from "./components/empty/index.vue2.mjs";
|
|
29
|
+
const mt = /* @__PURE__ */ oo({
|
|
30
30
|
name: "AgGrid",
|
|
31
31
|
__name: "index",
|
|
32
32
|
props: {
|
|
@@ -100,27 +100,23 @@ const ct = /* @__PURE__ */ eo({
|
|
|
100
100
|
onUpdate: {}
|
|
101
101
|
},
|
|
102
102
|
setup(de, { expose: ue }) {
|
|
103
|
-
|
|
104
|
-
const o = de,
|
|
103
|
+
mo.registerModules([po]);
|
|
104
|
+
const o = de, W = to(), { e: k, b: u, be: ce } = zo("ag-grid"), y = I(o.size), me = ko(y, T(o, "rowHeight")), pe = Eo(T(o, "virtual")), { rowPinnedGridConfig: G, getRowPinnedCellClass: fe } = Ko(
|
|
105
105
|
T(o, "summary")
|
|
106
|
-
), ge =
|
|
106
|
+
), ge = Ao("apGrid"), s = I(), [, we] = Fo();
|
|
107
107
|
let p = !!o.dataSource;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
o,
|
|
111
|
-
fe
|
|
112
|
-
), x = I({});
|
|
113
|
-
ho({
|
|
108
|
+
const H = Do(o), { shownColumns: f, columns: L, columnKeys: Se, getTargetColumnByKey: ye } = xo(o), { defaultColDef: Ce, columnDefs: he, gridWrapperRef: ve } = Io(L, o, fe), x = I({});
|
|
109
|
+
vo({
|
|
114
110
|
sorter: x,
|
|
115
111
|
setSorter(e) {
|
|
116
112
|
x.value = e;
|
|
117
113
|
}
|
|
118
114
|
});
|
|
119
|
-
const
|
|
115
|
+
const Re = {
|
|
120
116
|
asc: "ascend",
|
|
121
117
|
desc: "descend"
|
|
122
118
|
};
|
|
123
|
-
function
|
|
119
|
+
function be() {
|
|
124
120
|
const e = s.value.getColumns()?.filter((c) => c.getSort() !== void 0), r = t(x) || {};
|
|
125
121
|
let a = e?.[0];
|
|
126
122
|
const d = Object.keys(r);
|
|
@@ -134,32 +130,32 @@ const ct = /* @__PURE__ */ eo({
|
|
|
134
130
|
j(void 0, void 0, {
|
|
135
131
|
column: i,
|
|
136
132
|
field: v?.field ?? i.field ?? i.colId,
|
|
137
|
-
order: S ?
|
|
133
|
+
order: S ? Re[S] : null
|
|
138
134
|
});
|
|
139
135
|
}
|
|
140
|
-
const
|
|
136
|
+
const Be = l(() => yo(t(f), (e) => {
|
|
141
137
|
if (e.sorter === !0)
|
|
142
138
|
return e.field ?? e.dataIndex ?? e.key;
|
|
143
|
-
}).filter(Boolean)),
|
|
139
|
+
}).filter(Boolean)), Fe = () => {
|
|
144
140
|
x.value = {};
|
|
145
141
|
const e = s.value;
|
|
146
142
|
if (!e)
|
|
147
143
|
return;
|
|
148
144
|
const r = e.getColumnState()?.map((a) => ({ ...a, sort: null }));
|
|
149
145
|
e.applyColumnState({ state: r });
|
|
150
|
-
},
|
|
146
|
+
}, ke = l(() => To(o.manual) ? o.manual : No(W.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
|
|
151
147
|
formRef: g,
|
|
152
148
|
submit: N,
|
|
153
149
|
reset: D,
|
|
154
150
|
data: w,
|
|
155
|
-
tableProps:
|
|
151
|
+
tableProps: U,
|
|
156
152
|
handleTableChangeOptional: j,
|
|
157
153
|
submitWith: $,
|
|
158
154
|
refresh: q,
|
|
159
|
-
getPaging:
|
|
160
|
-
setPaging:
|
|
161
|
-
setDataSource:
|
|
162
|
-
} =
|
|
155
|
+
getPaging: xe,
|
|
156
|
+
setPaging: Ie,
|
|
157
|
+
setDataSource: Te
|
|
158
|
+
} = Co({
|
|
163
159
|
async request(e) {
|
|
164
160
|
if (p = !1, C.value && !C.value.preserveSelectedRowKeys && F(o.dataSource) && P(), !F(o.dataSource)) {
|
|
165
161
|
const a = e.pageSize * (e.current - 1);
|
|
@@ -178,11 +174,11 @@ const ct = /* @__PURE__ */ eo({
|
|
|
178
174
|
filterFields: I([]),
|
|
179
175
|
params: T(o, "params"),
|
|
180
176
|
defaultData: o.defaultData,
|
|
181
|
-
manual: t(
|
|
177
|
+
manual: t(ke),
|
|
182
178
|
formatParams: o.beforeSearchSubmit,
|
|
183
179
|
pagination: o.pagination,
|
|
184
|
-
sortFields:
|
|
185
|
-
onClickReset:
|
|
180
|
+
sortFields: Be,
|
|
181
|
+
onClickReset: Fe
|
|
186
182
|
}), C = l(() => {
|
|
187
183
|
const e = o.rowSelection || ge.value?.rowSelection;
|
|
188
184
|
if (e)
|
|
@@ -190,29 +186,29 @@ const ct = /* @__PURE__ */ eo({
|
|
|
190
186
|
...ie,
|
|
191
187
|
...e
|
|
192
188
|
};
|
|
193
|
-
}),
|
|
189
|
+
}), Ne = Po(o, f), De = l(
|
|
194
190
|
() => F(o.dataSource) ? w.records : o.dataSource
|
|
195
191
|
), {
|
|
196
|
-
select:
|
|
197
|
-
unSelect:
|
|
192
|
+
select: Ee,
|
|
193
|
+
unSelect: Ke,
|
|
198
194
|
selectedRows: E,
|
|
199
|
-
selectedRowKeys:
|
|
200
|
-
clearAll:
|
|
201
|
-
selectMultiByKeys:
|
|
202
|
-
} =
|
|
195
|
+
selectedRowKeys: Pe,
|
|
196
|
+
clearAll: ze,
|
|
197
|
+
selectMultiByKeys: Ae
|
|
198
|
+
} = ho({
|
|
203
199
|
...C,
|
|
204
|
-
dataSource:
|
|
200
|
+
dataSource: De,
|
|
205
201
|
rowKey: o.rowKey
|
|
206
|
-
}),
|
|
202
|
+
}), Ve = {
|
|
207
203
|
checkbox: "multiRow",
|
|
208
204
|
radio: "singleRow"
|
|
209
|
-
},
|
|
205
|
+
}, Me = l(() => {
|
|
210
206
|
const e = C.value;
|
|
211
207
|
if (!e)
|
|
212
208
|
return;
|
|
213
209
|
const { type: r = "checkbox", disabled: a } = e;
|
|
214
210
|
return {
|
|
215
|
-
mode:
|
|
211
|
+
mode: Ve[r],
|
|
216
212
|
isRowSelectable: (d) => a ? !a(d.data) : !0
|
|
217
213
|
};
|
|
218
214
|
});
|
|
@@ -239,15 +235,15 @@ const ct = /* @__PURE__ */ eo({
|
|
|
239
235
|
}), e.setNodesSelected({ nodes: a, newValue: !0 }), setTimeout(() => {
|
|
240
236
|
p = !0;
|
|
241
237
|
}, 0);
|
|
242
|
-
},
|
|
243
|
-
p && (e.node.isSelected() ?
|
|
244
|
-
},
|
|
238
|
+
}, Oe = (e) => {
|
|
239
|
+
p && (e.node.isSelected() ? Ee(e.data) : Ke(e.data));
|
|
240
|
+
}, We = () => {
|
|
245
241
|
p = !0;
|
|
246
242
|
}, P = () => {
|
|
247
|
-
|
|
243
|
+
ze(), s.value?.deselectAll();
|
|
248
244
|
};
|
|
249
245
|
function Ge(e) {
|
|
250
|
-
|
|
246
|
+
Ae(e), ro(() => {
|
|
251
247
|
J({});
|
|
252
248
|
});
|
|
253
249
|
}
|
|
@@ -281,7 +277,7 @@ const ct = /* @__PURE__ */ eo({
|
|
|
281
277
|
...n,
|
|
282
278
|
hide: R
|
|
283
279
|
}, te = e.find(
|
|
284
|
-
(
|
|
280
|
+
(eo) => ee(eo.key) === n.colId
|
|
285
281
|
);
|
|
286
282
|
return te && (oe.pinned = te.fixed || null), oe;
|
|
287
283
|
}), i = new Map(
|
|
@@ -297,15 +293,15 @@ const ct = /* @__PURE__ */ eo({
|
|
|
297
293
|
applyOrder: !0
|
|
298
294
|
});
|
|
299
295
|
}
|
|
300
|
-
|
|
296
|
+
Ro({
|
|
301
297
|
columns: l(() => f.value),
|
|
302
|
-
columnsBackup: l(() =>
|
|
303
|
-
size: l(() =>
|
|
298
|
+
columnsBackup: l(() => L.value),
|
|
299
|
+
size: l(() => Bo[y.value]),
|
|
304
300
|
updateColumns(e) {
|
|
305
301
|
f.value = e, o.onShownColumnsChange?.(e), He(e);
|
|
306
302
|
},
|
|
307
303
|
updateSize(e) {
|
|
308
|
-
y.value =
|
|
304
|
+
y.value = bo[e];
|
|
309
305
|
},
|
|
310
306
|
renderConfig: l(() => ({
|
|
311
307
|
className: ce("table-header", "title"),
|
|
@@ -329,34 +325,34 @@ const ct = /* @__PURE__ */ eo({
|
|
|
329
325
|
o.card ? null : u("wrapper"),
|
|
330
326
|
u("adaptive"),
|
|
331
327
|
u(`size-${y.value}`)
|
|
332
|
-
].filter(Boolean)),
|
|
328
|
+
].filter(Boolean)), je = l(() => ({
|
|
333
329
|
height: "100%",
|
|
334
330
|
...o.tableStyle || {}
|
|
335
|
-
})),
|
|
331
|
+
})), $e = (e, r) => {
|
|
336
332
|
j({ current: e, pageSize: r });
|
|
337
333
|
};
|
|
338
|
-
function
|
|
334
|
+
function qe(e) {
|
|
339
335
|
const r = e.data;
|
|
340
336
|
return K(r);
|
|
341
337
|
}
|
|
342
|
-
function
|
|
338
|
+
function Je(e, r) {
|
|
343
339
|
s.value?.ensureIndexVisible(e, r);
|
|
344
340
|
}
|
|
345
|
-
function
|
|
341
|
+
function Qe(e) {
|
|
346
342
|
o.onRowClicked?.(e.data, e.event);
|
|
347
343
|
}
|
|
348
|
-
function
|
|
344
|
+
function Xe(e) {
|
|
349
345
|
o.onScrollEnd?.(e.direction);
|
|
350
346
|
}
|
|
351
|
-
function
|
|
347
|
+
function Ye(e) {
|
|
352
348
|
return s.value?.refreshCells(e);
|
|
353
349
|
}
|
|
354
|
-
function
|
|
350
|
+
function Ze(e) {
|
|
355
351
|
return s.value?.redrawRows(e);
|
|
356
352
|
}
|
|
357
|
-
const
|
|
353
|
+
const _e = (e) => {
|
|
358
354
|
const r = [
|
|
359
|
-
|
|
355
|
+
G.value.getRowClass?.(e)
|
|
360
356
|
];
|
|
361
357
|
if (!e.node.rowPinned) {
|
|
362
358
|
const a = se(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
|
|
@@ -367,7 +363,7 @@ const ct = /* @__PURE__ */ eo({
|
|
|
367
363
|
return z(
|
|
368
364
|
() => o.dataSource,
|
|
369
365
|
(e) => {
|
|
370
|
-
|
|
366
|
+
Te(e);
|
|
371
367
|
},
|
|
372
368
|
{ immediate: !0, deep: !0 }
|
|
373
369
|
), z(
|
|
@@ -393,41 +389,41 @@ const ct = /* @__PURE__ */ eo({
|
|
|
393
389
|
setSelectedRowKeys: Ge,
|
|
394
390
|
clearAll: P
|
|
395
391
|
},
|
|
396
|
-
scrollToRow:
|
|
392
|
+
scrollToRow: Je,
|
|
397
393
|
getDataSource: () => t(w.records),
|
|
398
|
-
getPaging:
|
|
399
|
-
setPaging:
|
|
394
|
+
getPaging: xe,
|
|
395
|
+
setPaging: Ie,
|
|
400
396
|
getSearchFormSorterItems: Y,
|
|
401
397
|
setSearchFormSorterItems: Z,
|
|
402
398
|
resetSearchFormSorterItems: _,
|
|
403
|
-
refreshCells:
|
|
404
|
-
redrawRows:
|
|
399
|
+
refreshCells: Ye,
|
|
400
|
+
redrawRows: Ze,
|
|
405
401
|
_internalGridApi: l(() => s.value)
|
|
406
402
|
}), (e, r) => (b(), A("div", {
|
|
407
403
|
class: m(Ue.value),
|
|
408
404
|
style: V(e.wrapperStyle)
|
|
409
405
|
}, [
|
|
410
|
-
t(F)(e.dataSource) && e.searchForm !== !1 && t(
|
|
406
|
+
t(F)(e.dataSource) && e.searchForm !== !1 && t(H).length > 0 ? (b(), A("div", {
|
|
411
407
|
key: 0,
|
|
412
408
|
class: m(e.card ? t(k)("search-wrapper") : null),
|
|
413
409
|
style: V(e.searchFormWrapperStyle)
|
|
414
410
|
}, [
|
|
415
|
-
M(t(
|
|
411
|
+
M(t(So).SearchForm, O(e.searchForm || {}, {
|
|
416
412
|
ref_key: "formRef",
|
|
417
413
|
ref: g,
|
|
418
414
|
"custom-reset": "",
|
|
419
|
-
"submit-loading": t(
|
|
415
|
+
"submit-loading": t(U).loading,
|
|
420
416
|
onSubmit: t(N),
|
|
421
417
|
onReset: t(D)
|
|
422
|
-
}),
|
|
418
|
+
}), ao({
|
|
423
419
|
default: ae(() => [
|
|
424
|
-
(b(!0), A(
|
|
420
|
+
(b(!0), A(no, null, lo(t(H), (a) => (b(), ne(so(a.renderNode), {
|
|
425
421
|
key: a.dataIndex
|
|
426
422
|
}))), 128))
|
|
427
423
|
]),
|
|
428
424
|
_: 2
|
|
429
425
|
}, [
|
|
430
|
-
|
|
426
|
+
W.searchFormExtra ? {
|
|
431
427
|
name: "extra",
|
|
432
428
|
fn: ae(() => [
|
|
433
429
|
le(e.$slots, "searchFormExtra")
|
|
@@ -445,60 +441,62 @@ const ct = /* @__PURE__ */ eo({
|
|
|
445
441
|
}, [
|
|
446
442
|
le(e.$slots, "title", {
|
|
447
443
|
selectedRows: t(E),
|
|
448
|
-
selectedRowKeys: t(
|
|
444
|
+
selectedRowKeys: t(Pe),
|
|
449
445
|
shownColumns: t(f),
|
|
450
446
|
clearAll: P
|
|
451
447
|
})
|
|
452
448
|
], 2),
|
|
453
449
|
B("div", {
|
|
450
|
+
ref_key: "gridWrapperRef",
|
|
451
|
+
ref: ve,
|
|
454
452
|
class: m(t(u)("grid-wrapper"))
|
|
455
453
|
}, [
|
|
456
|
-
M(t(
|
|
457
|
-
"get-row-class":
|
|
458
|
-
style:
|
|
454
|
+
M(t(co), O(t(fo)(t(pe), t(G)), {
|
|
455
|
+
"get-row-class": _e,
|
|
456
|
+
style: je.value,
|
|
459
457
|
"row-data": t(w).records,
|
|
460
458
|
"column-defs": t(he),
|
|
461
459
|
"default-col-def": t(Ce),
|
|
462
460
|
"suppress-loading-overlay": "",
|
|
463
|
-
"row-selection":
|
|
464
|
-
"selection-column-def": t(
|
|
465
|
-
"get-row-id":
|
|
461
|
+
"row-selection": Me.value,
|
|
462
|
+
"selection-column-def": t(Ne),
|
|
463
|
+
"get-row-id": qe,
|
|
466
464
|
theme: t(me),
|
|
467
465
|
"tooltip-show-delay": 500,
|
|
468
466
|
"enable-browser-tooltips": e.browserTooltips,
|
|
469
467
|
"tooltip-interaction": "",
|
|
470
468
|
"row-class-rules": e.rowClassRules,
|
|
471
|
-
"no-rows-overlay-component":
|
|
469
|
+
"no-rows-overlay-component": Vo,
|
|
472
470
|
"suppress-cell-focus": "",
|
|
473
471
|
"dom-layout": e.autoHeight ? "autoHeight" : "normal",
|
|
474
|
-
onSortChanged:
|
|
472
|
+
onSortChanged: be,
|
|
475
473
|
onGridReady: r[0] || (r[0] = (a) => s.value = a.api),
|
|
476
474
|
onRowDataUpdated: J,
|
|
477
|
-
onRowSelected:
|
|
478
|
-
onFirstDataRendered:
|
|
479
|
-
onRowClicked:
|
|
480
|
-
onBodyScrollEnd:
|
|
475
|
+
onRowSelected: Oe,
|
|
476
|
+
onFirstDataRendered: We,
|
|
477
|
+
onRowClicked: Qe,
|
|
478
|
+
onBodyScrollEnd: Xe
|
|
481
479
|
}), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout"]),
|
|
482
|
-
|
|
480
|
+
io(B("div", {
|
|
483
481
|
class: m(t(k)("table-loading-wrapper"))
|
|
484
482
|
}, [
|
|
485
|
-
M(t(
|
|
483
|
+
M(t(go), { delay: 300 })
|
|
486
484
|
], 2), [
|
|
487
|
-
[
|
|
485
|
+
[uo, Le.value]
|
|
488
486
|
])
|
|
489
487
|
], 2),
|
|
490
488
|
B("div", {
|
|
491
489
|
class: m(t(u)("pagination-wrapper"))
|
|
492
490
|
}, [
|
|
493
|
-
e.pagination !== !1 ? (b(), ne(t(
|
|
491
|
+
e.pagination !== !1 ? (b(), ne(t(wo), O({
|
|
494
492
|
key: 0,
|
|
495
493
|
class: t(u)("pagination")
|
|
496
|
-
}, t(
|
|
494
|
+
}, t(U).pagination, { onChange: $e }), null, 16, ["class"])) : re("", !0)
|
|
497
495
|
], 2)
|
|
498
496
|
], 6)
|
|
499
497
|
], 6));
|
|
500
498
|
}
|
|
501
499
|
});
|
|
502
500
|
export {
|
|
503
|
-
|
|
501
|
+
mt as default
|
|
504
502
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as F, ref as L, useSlots as S, computed as t, unref as
|
|
1
|
+
import { defineComponent as F, ref as L, useSlots as S, computed as t, unref as a, createBlock as x, openBlock as i, mergeProps as A, withCtx as j, createElementVNode as m, normalizeClass as I, createElementBlock as u, createCommentVNode as f, createVNode as M, renderSlot as T, toDisplayString as U } from "vue";
|
|
2
2
|
import { Button as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import { LoadingOutlined as D } from "@ant-design/icons-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
5
|
import { useOssInit as E } from "./hooks/index.mjs";
|
|
6
|
-
import { getFileInfo as
|
|
6
|
+
import { getFileInfo as g } from "./utils/getFileInfo.mjs";
|
|
7
7
|
import { useStyle as P } from "./hooks/useStyle.mjs";
|
|
8
8
|
import { useLocale as G } from "../config-provider/hooks/use-locale.mjs";
|
|
9
|
-
import { useGlobalConfig as
|
|
9
|
+
import { useGlobalConfig as r } from "../config-provider/hooks/use-global-config.mjs";
|
|
10
10
|
const R = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "spin"
|
|
@@ -43,27 +43,33 @@ const R = {
|
|
|
43
43
|
getOssAccess: {}
|
|
44
44
|
},
|
|
45
45
|
emits: ["downloadCallback"],
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
46
|
+
setup(y, { emit: C }) {
|
|
47
|
+
const N = C, n = L(!1), { lang: b } = G(), v = S(), h = t(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), w = r("uiMode"), e = y, l = r("apUpload"), c = r(
|
|
48
48
|
"downloadCenterTriggerConfig"
|
|
49
|
-
),
|
|
49
|
+
), d = t(() => e.disabled), _ = t(() => e.color ? e.color : w.value === "aplus" ? "#0070FF" : "#1890FF"), k = t(() => e.size), { getInnerWrapperClass: B } = P(_, k, d), z = t(() => e.getOssAccess || l.value?.getOssAccess), O = async () => {
|
|
50
50
|
if (!e.disabled) {
|
|
51
51
|
n.value = !0;
|
|
52
52
|
try {
|
|
53
|
-
if (
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
if (c.value?.trigger) {
|
|
54
|
+
let s = g(
|
|
55
|
+
e.needName ?? l?.value?.needName,
|
|
56
|
+
e.fileName
|
|
57
|
+
).map((p) => ({
|
|
58
|
+
objectName: p.path,
|
|
59
|
+
fileName: p.fileName
|
|
57
60
|
}));
|
|
58
|
-
await
|
|
61
|
+
await c.value?.trigger(s);
|
|
59
62
|
} else {
|
|
60
|
-
const
|
|
63
|
+
const s = await (await E(
|
|
61
64
|
z.value,
|
|
62
|
-
|
|
65
|
+
a(h)
|
|
63
66
|
)).downloadFile(
|
|
64
|
-
|
|
67
|
+
g(
|
|
68
|
+
e.needName ?? l?.value?.needName,
|
|
69
|
+
e.fileName
|
|
70
|
+
)
|
|
65
71
|
);
|
|
66
|
-
|
|
72
|
+
N("downloadCallback", s);
|
|
67
73
|
}
|
|
68
74
|
} catch (o) {
|
|
69
75
|
console.error(o);
|
|
@@ -72,23 +78,23 @@ const R = {
|
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
};
|
|
75
|
-
return (o,
|
|
81
|
+
return (o, s) => (i(), x(a(V), A(e, {
|
|
76
82
|
type: e.type,
|
|
77
83
|
size: e.size,
|
|
78
|
-
disabled:
|
|
84
|
+
disabled: d.value,
|
|
79
85
|
onClick: O
|
|
80
86
|
}), {
|
|
81
87
|
default: j(() => [
|
|
82
|
-
|
|
83
|
-
class: I(
|
|
88
|
+
m("div", {
|
|
89
|
+
class: I(a(B))
|
|
84
90
|
}, [
|
|
85
|
-
n.value ? (
|
|
86
|
-
M(
|
|
87
|
-
])) :
|
|
88
|
-
|
|
91
|
+
n.value ? (i(), u("span", R, [
|
|
92
|
+
M(a(D), { spin: !0 })
|
|
93
|
+
])) : f("", !0),
|
|
94
|
+
a(v).icon ? (i(), u("span", W, [
|
|
89
95
|
T(o.$slots, "icon")
|
|
90
|
-
])) :
|
|
91
|
-
|
|
96
|
+
])) : f("", !0),
|
|
97
|
+
m("span", $, U(o.text), 1)
|
|
92
98
|
], 2)
|
|
93
99
|
]),
|
|
94
100
|
_: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as x, computed as u, ref as O, createElementBlock as A, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as
|
|
1
|
+
import { defineComponent as x, computed as u, ref as O, createElementBlock as A, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as N, createVNode as p, withCtx as d, createElementVNode as n, normalizeClass as i, createBlock as k, Fragment as S, renderList as V, createSlots as D, createTextVNode as j, toDisplayString as P } from "vue";
|
|
2
2
|
import G from "./icons/file-icon.vue.mjs";
|
|
3
|
-
import { Tooltip as M, TypographyText as U, Empty as
|
|
3
|
+
import { Tooltip as M, TypographyText as U, Empty as $ } from "@aplus-frontend/antdv";
|
|
4
4
|
import { IconVariantDownload as z } from "@aplus-frontend/icon";
|
|
5
5
|
import { LoadingOutlined as R } from "@ant-design/icons-vue";
|
|
6
6
|
import "../ap-title/ApTitle.vue.mjs";
|
|
@@ -9,7 +9,7 @@ import "../../config-provider/index.mjs";
|
|
|
9
9
|
import { getFileInfo as q } from "./utils/index.mjs";
|
|
10
10
|
import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useLocale as J } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
-
import { useGlobalConfig as
|
|
12
|
+
import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
13
|
import K from "../ap-title/ApTitle.vue2.mjs";
|
|
14
14
|
import Q from "../../ap-download/ap-download.vue.mjs";
|
|
15
15
|
const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
@@ -23,13 +23,16 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
23
23
|
column: { default: 2 },
|
|
24
24
|
isFileAreaBorder: { type: Boolean, default: !1 }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { b:
|
|
26
|
+
setup(w) {
|
|
27
|
+
const { b: E, e: l, em: C } = H("ap-appendix"), { t: v } = J(), a = w, _ = h("apUpload"), F = h(
|
|
28
28
|
"downloadCenterTriggerConfig"
|
|
29
29
|
), f = u(
|
|
30
|
-
() => q(
|
|
30
|
+
() => q(
|
|
31
|
+
a?.needName ?? _?.value?.needName,
|
|
32
|
+
a?.fileList ?? []
|
|
33
|
+
)
|
|
31
34
|
), B = u(
|
|
32
|
-
() => a.getOssAccess ||
|
|
35
|
+
() => a.getOssAccess || _.value?.getOssAccess
|
|
33
36
|
), g = u(
|
|
34
37
|
() => !(Array.isArray(f.value) && f.value.length)
|
|
35
38
|
), o = O([]), I = u(() => a.title || v("ap.apAppendix.appendix"));
|
|
@@ -37,12 +40,12 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
37
40
|
if (!(o.value.findIndex((t) => t === m) > -1)) {
|
|
38
41
|
o.value = [...o.value, m];
|
|
39
42
|
try {
|
|
40
|
-
if (
|
|
43
|
+
if (F.value?.trigger) {
|
|
41
44
|
let t = [s].map((L) => ({
|
|
42
45
|
objectName: L.path,
|
|
43
46
|
fileName: L.fileName
|
|
44
47
|
}));
|
|
45
|
-
await
|
|
48
|
+
await F.value?.trigger(t);
|
|
46
49
|
}
|
|
47
50
|
} finally {
|
|
48
51
|
o.value = o.value.filter((t) => t !== m);
|
|
@@ -50,7 +53,7 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
return (s, m) => (r(), A("div", T({
|
|
53
|
-
class: [e(
|
|
56
|
+
class: [e(E)()]
|
|
54
57
|
}, {
|
|
55
58
|
...s.$attrs
|
|
56
59
|
}, {
|
|
@@ -75,7 +78,7 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
75
78
|
c(s.$slots, "titleDownloadAllBtn", {
|
|
76
79
|
fileList: a.fileList
|
|
77
80
|
}, () => [
|
|
78
|
-
g.value ?
|
|
81
|
+
g.value ? N("", !0) : (r(), k(Q, {
|
|
79
82
|
key: 0,
|
|
80
83
|
class: i([e(l)("download-all")]),
|
|
81
84
|
text: e(v)("ap.apAppendix.downloadAll"),
|
|
@@ -93,14 +96,14 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
93
96
|
_: 3
|
|
94
97
|
}, 8, ["title", "help-message"])
|
|
95
98
|
]),
|
|
96
|
-
g.value ?
|
|
99
|
+
g.value ? N("", !0) : c(s.$slots, "fileArea", {
|
|
97
100
|
key: 0,
|
|
98
101
|
fileList: a.fileList
|
|
99
102
|
}, () => [
|
|
100
103
|
n("div", {
|
|
101
104
|
class: i({
|
|
102
105
|
[e(l)("file-area")]: !0,
|
|
103
|
-
[e(
|
|
106
|
+
[e(C)("file-area", "border")]: !!a.isFileAreaBorder
|
|
104
107
|
})
|
|
105
108
|
}, [
|
|
106
109
|
n("div", {
|
|
@@ -110,7 +113,7 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
110
113
|
key: t,
|
|
111
114
|
class: i({
|
|
112
115
|
[e(l)("file-area-content-item")]: !0,
|
|
113
|
-
[e(
|
|
116
|
+
[e(C)("file-area-content-item", "loading")]: o.value.includes(t)
|
|
114
117
|
})
|
|
115
118
|
}, [
|
|
116
119
|
p(e(M), null, D({
|
|
@@ -125,7 +128,7 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
125
128
|
n("div", {
|
|
126
129
|
class: i([e(l)("file-area-content-item-icon")])
|
|
127
130
|
}, [
|
|
128
|
-
o.value.includes(t) ? (r(),
|
|
131
|
+
o.value.includes(t) ? (r(), k(e(R), { key: 0 })) : (r(), k(G, { key: 1 }))
|
|
129
132
|
], 2),
|
|
130
133
|
n("div", {
|
|
131
134
|
class: i([e(l)("file-area-content-item-file-name")])
|
|
@@ -158,12 +161,12 @@ const W = ["onClick"], fe = /* @__PURE__ */ x({
|
|
|
158
161
|
n("div", {
|
|
159
162
|
class: i([e(l)("empty-content")])
|
|
160
163
|
}, [
|
|
161
|
-
p(e(
|
|
162
|
-
image: e(
|
|
164
|
+
p(e($), {
|
|
165
|
+
image: e($).PRESENTED_IMAGE_SIMPLE
|
|
163
166
|
}, null, 8, ["image"])
|
|
164
167
|
], 2)
|
|
165
168
|
], 2)
|
|
166
|
-
]) :
|
|
169
|
+
]) : N("", !0)
|
|
167
170
|
], 16));
|
|
168
171
|
}
|
|
169
172
|
});
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.34.0";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
params: any;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const p=require("../../../config-provider/hooks/use-namespace.js"),d=e.defineComponent({__name:"index",props:{params:{}},setup(n){const s=n,r=e.ref(!1),{e:c}=p.useNamespace("ag-grid");return e.onMounted(()=>{const{rowIndex:t,column:o,gridWrapperRef:i,lineClamp:u}=s.params,a=i.value.querySelector(`div.ag-row[row-index="${t}"] .ag-cell[col-id="${o.colId}"] span.ag-cell-value`);if(!a){r.value=!0;return}const l=u===1?"Width":"Height";r.value=a[`scroll${l}`]>a[`client${l}`]}),(t,o)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c)("tooltip"))},e.toDisplayString(t.params.value),3)):e.createCommentVNode("",!0)}});exports.default=d;
|
|
@@ -10,4 +10,5 @@ import { Ref, ComputedRef } from 'vue';
|
|
|
10
10
|
export declare const useColumnsDef: <RecordType>(columns: Ref<AgGridColumnType<RecordType>[]>, props: AgGridProps<RecordType>, customCellClass: (callback: CellClassFunc) => CellClassFunc) => {
|
|
11
11
|
columnDefs: ComputedRef<(ColDef<any, any> | ColGroupDef<any>)[]>;
|
|
12
12
|
defaultColDef: ComputedRef<ColDef<any, any>>;
|
|
13
|
+
gridWrapperRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../../ap-table/utils.js"),T=require("../renderer/index.js"),o=require("lodash-unified"),d=require("vue");require("../components/body-cell/index.vue.js");require("../components/header-cell/index.vue.js");require("../components/tooltip/index.vue.js");require("../../config-provider/index.js");const q=require("../../ap-grid/utils/col.js"),w=require("../../utils/index.js"),P=require("../../config-provider/hooks/use-global-config.js"),D=require("../../config-provider/hooks/use-namespace.js"),R=require("../components/body-cell/index.vue2.js"),S=require("../components/tooltip/index.vue2.js"),C=require("../components/header-cell/index.vue2.js");function I(t){return o.isNumber(t)&&t>1}function G(t,l){if(l.bodyCellTooltip)return o.isFunction(l.bodyCellTooltip)?l.bodyCellTooltip(t.value,t.data):l.bodyCellTooltip;if(l.renderText)return l.renderText({value:t.value,record:t.data,column:l,text:t.value});const u=l.valueType||"text",p=T.rendererMap[u];if(p){const f=x.getTableRenderProps({...l,valueType:u},{value:t.value,text:t.value,record:t.data,column:t.column,rowIndex:t.node?.rowIndex,pinned:t.node?.rowPinned});return p(f)}return x.objectToString(t.value)}const M=(t,l,u)=>{const p=P.useGlobalConfig("valueTypeMap"),c=d.ref(),{em:f}=D.useNamespace("ag-grid"),b=r=>{const s={cellRenderer:R.default,cellRendererParams:{column:r,extraValueType:d.unref(p)}};if(r.customRender)return s;if(r.renderText)return{valueFormatter:i=>r.renderText({value:i.value,record:i.data,column:r,text:i.value})};const n=r.valueType||"text",e=T.rendererMap[n];return e?{valueFormatter:i=>{const a=x.getTableRenderProps({...r,valueType:n},{value:i.value,text:i.value,record:i.data,column:i.column,rowIndex:i.node?.rowIndex,pinned:i.node?.rowPinned});return e(a)}}:s},y=r=>{const s={},n=r.bodyCellTooltip||!r.customRender&&(r.ellipsis===!0||r.ellipsis==="tooltip"||o.isNumber(r.ellipsis)),e=o.isNumber(r.ellipsis)&&r.ellipsis>1,i=o.isNumber(r.ellipsis)?r.ellipsis:1;return s.tooltipValueGetter=n?a=>G(a,r):void 0,s.wrapText=!r.ellipsis||e,s.cellStyle={"--ag-grid-line-clamp":i},s.tooltipComponent=S.default,s.tooltipComponentParams={lineClamp:i,gridWrapperRef:c},s},_=d.computed(()=>{const r=d.unref(t);function s(n){return n.map(e=>{const i={field:q.dataIndexToField(e.dataIndex),colId:w.isDef(e.key)?String(e.key):void 0,sortable:!!e.sorter,comparator:e.sorter===!0?()=>0:e.sorter,headerComponentParams:{column:e},resizable:e.resizable,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,flex:e.width?void 0:1,pinned:e.fixed||null,colSpan:e.colSpan,cellClass:u(a=>{const v=e.cellClass||"",h=o.isFunction(v)?v(a.data,a.node):v;return[`${f("cell",e.align||"left")}`,I(e.ellipsis)?f("cell","multiline"):null,h].flat().filter(Boolean)}),autoHeight:!0,...y(e),...b(e)};return e.children?.length?{...i,headerGroupComponent:C.default,headerGroupComponentParams:{column:e},children:s(e.children)}:i})}return s(r)}),g=d.computed(()=>({headerComponent:C.default,resizable:l.columnResizable,suppressMovable:!0,cellDataType:!1}));return{columnDefs:_,defaultColDef:g,gridWrapperRef:c}};exports.useColumnsDef=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Me=require("ag-grid-vue3"),j=require("ag-grid-community"),Ue=require("./utils.js"),$=require("@aplus-frontend/antdv"),d=require("lodash-unified");require("../config-provider/index.js");const Ge=require("../ap-form/index.js"),Le=require("../ap-table/utils.js"),We=require("../ap-table/hooks/use-table-paging-ng.js"),_e=require("./hooks/use-row-selection.js"),He=require("./context.js"),je=require("../ap-table/context.js"),B=require("../ap-grid/constants.js"),$e=require("@aplus-frontend/antdv/es/theme/internal"),Je=require("./theme.js"),Qe=require("./hooks/use-columns.js"),Xe=require("./hooks/use-columns-def.js"),Ye=require("../utils/index.js"),Ze=require("../utils/slot.js"),eo=require("./hooks/use-search-form.js");require("./components/empty/index.vue.js");const oo=require("./hooks/use-virtual-config.js"),to=require("./hooks/use-pinned-row.js"),ro=require("./hooks/use-selection-col-def.js"),no=require("../config-provider/hooks/use-namespace.js"),ao=require("../config-provider/hooks/use-global-config.js"),lo=require("./components/empty/index.vue2.js"),so=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},columns:{},rowSelection:{type:Boolean},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{}},setup(J,{expose:Q}){j.ModuleRegistry.registerModules([j.AllCommunityModule]);const t=J,I=e.useSlots(),{e:R,b:i,be:X}=no.useNamespace("ag-grid"),S=e.ref(t.size),Y=Je.useTheme(S,e.toRef(t,"rowHeight")),Z=oo.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:E,getRowPinnedCellClass:ee}=to.usePinnedRow(e.toRef(t,"summary")),oe=ao.useGlobalConfig("apGrid"),l=e.ref(),[,te]=$e.useToken();let f=!!t.dataSource;const T=eo.useSearchForm(t),{shownColumns:m,columns:z,columnKeys:re,getTargetColumnByKey:ne}=Qe.useColumns(t),{defaultColDef:ae,columnDefs:le}=Xe.useColumnsDef(z,t,ee),b=e.ref({});He.useProvideSorter({sorter:b,setSorter(o){b.value=o}});const se={asc:"ascend",desc:"descend"};function ue(){const o=l.value.getColumns()?.filter(c=>c.getSort()!==void 0),r=e.unref(b)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(c=>r[c]===null)){const c=Object.keys(r)[0];c&&(n=l.value?.getColumn(c))}if(!n)return;const s=n.getColDef(),w=n.getSort(),h=ne(s.colId);V(void 0,void 0,{column:s,field:h?.field??s.field??s.colId,order:w?se[w]:null})}const ie=e.computed(()=>Le.recursionApColumns(e.unref(m),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),ce=()=>{b.value={};const o=l.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},de=e.computed(()=>Ye.isDef(t.manual)?t.manual:Ze.getValidVNodeList(I.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:p,submit:k,reset:F,data:g,tableProps:D,handleTableChangeOptional:V,submitWith:P,refresh:K,getPaging:fe,setPaging:me,setDataSource:pe}=We.useTablePaging({async request(o){if(f=!1,y.value&&!y.value.preserveSelectedRowKeys&&d.isUndefined(t.dataSource)&&q(),!d.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(de),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ie,onClickReset:ce}),y=e.computed(()=>{const o=t.rowSelection||oe.value?.rowSelection;if(o)return o===!0?B.DEFAULT_ROW_SELECTION_CONFIG:{...B.DEFAULT_ROW_SELECTION_CONFIG,...o}}),ge=ro.default(t,m),we=e.computed(()=>d.isUndefined(t.dataSource)?g.records:t.dataSource),{select:Se,unSelect:ye,selectedRows:x,selectedRowKeys:Ce,clearAll:he,selectMultiByKeys:ve}=_e.default({...y,dataSource:we,rowKey:t.rowKey}),Re={checkbox:"multiRow",radio:"singleRow"},be=e.computed(()=>{const o=y.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:Re[r],isRowSelectable:u=>n?!n(u.data):!0}});function N(o){return d.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const A=({api:o=l.value})=>{if(t.onUpdate?.(),!y.value)return;const r=x.value;if(!r.length){setTimeout(()=>{f=!0},0);return}f=!1;const n=[];o.forEachNode(u=>{const C=u.data,s=N(C);r.find(w=>N(w)===s)&&n.push(u)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{f=!0},0)},Be=o=>{f&&(o.node.isSelected()?Se(o.data):ye(o.data))},ke=()=>{f=!0},q=()=>{he(),l.value?.deselectAll()};function Fe(o){ve(o),e.nextTick(()=>{A({})})}function O(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return p.value?.apForm?.[r]?.(!0)}function M(o){p.value?.apForm?.setFieldsValue?.(o)}function U(){return p.value?.getSorterItems()||[]}function G(o){p.value?.setSorterItems(o)}function L(){p.value?.resetSorterItems()}function W(o){return o&&String(o)}function xe(o){const r=l.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),C=n.map(a=>{if(!re.value.includes(a.colId))return a;const v=!u.includes(a.colId),_={...a,hide:v},H=o.find(Oe=>W(Oe.key)===a.colId);return H&&(_.pinned=H.fixed||null),_}),s=new Map(o.map((a,v)=>[W(a.key),v])),w=C.filter(a=>s.has(a.colId)).sort((a,v)=>s.get(a.colId)-s.get(v.colId)),h=[];let c=0;for(const a of C)s.has(a.colId)?h.push(w[c++]):h.push(a);r.applyColumnState({state:h,applyOrder:!0})}je.useProvideApTable({columns:e.computed(()=>m.value),columnsBackup:e.computed(()=>z.value),size:e.computed(()=>B.sizeMap[S.value]),updateColumns(o){m.value=o,t.onShownColumnsChange?.(o),xe(o)},updateSize(o){S.value=B.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:X("table-header","title"),color:te.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(g).records),getSearchFormValues:O,setSearchFormValues:M,submit:k,submitWith:P,reset:F,refresh:K,getSearchFormSorterItems:U,setSearchFormSorterItems:G,resetSearchFormSorterItems:L});const Ne=e.computed(()=>d.isUndefined(t.loading)?g.loading:t.loading),qe=e.computed(()=>[i(),t.card?null:i("wrapper"),i("adaptive"),i(`size-${S.value}`)].filter(Boolean)),Ie=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Ee=(o,r)=>{V({current:o,pageSize:r})};function Te(o){const r=o.data;return N(r)}function ze(o,r){l.value?.ensureIndexVisible(o,r)}function De(o){t.onRowClicked?.(o.data,o.event)}function Ve(o){t.onScrollEnd?.(o.direction)}function Pe(o){return l.value?.refreshCells(o)}function Ke(o){return l.value?.redrawRows(o)}const Ae=o=>{const r=[E.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=d.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{pe(o)},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{S.value=o}),e.watch(()=>e.unref(g).loading,o=>{t.onLoadingChange?.(o)}),Q({submit:k,reset:F,refresh:K,submitWith:P,setSearchFormValues:M,getSearchFormValues:O,getShowColumns:()=>e.unref(m),rowSelection:{selectedRows:e.computed(()=>x.value),setSelectedRowKeys:Fe,clearAll:q},scrollToRow:ze,getDataSource:()=>e.unref(g.records),getPaging:fe,setPaging:me,getSearchFormSorterItems:U,setSearchFormSorterItems:G,resetSearchFormSorterItems:L,refreshCells:Pe,redrawRows:Ke,_internalGridApi:e.computed(()=>l.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(qe.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(d.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(T).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(R)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(Ge.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:p,"custom-reset":"","submit-loading":e.unref(D).loading,onSubmit:e.unref(k),onReset:e.unref(F)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[I.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(R)("table-wrapper"),o.card?e.unref(R)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(x),selectedRowKeys:e.unref(Ce),shownColumns:e.unref(m),clearAll:q})],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("grid-wrapper"))},[e.createVNode(e.unref(Me.AgGridVue),e.mergeProps(e.unref(Ue.mergeProps)(e.unref(Z),e.unref(E)),{"get-row-class":Ae,style:Ie.value,"row-data":e.unref(g).records,"column-defs":e.unref(le),"default-col-def":e.unref(ae),"suppress-loading-overlay":"","row-selection":be.value,"selection-column-def":e.unref(ge),"get-row-id":Te,theme:e.unref(Y),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":lo.default,"suppress-cell-focus":"","dom-layout":o.autoHeight?"autoHeight":"normal",onSortChanged:ue,onGridReady:r[0]||(r[0]=n=>l.value=n.api),onRowDataUpdated:A,onRowSelected:Be,onFirstDataRendered:ke,onRowClicked:De,onBodyScrollEnd:Ve}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","theme","enable-browser-tooltips","row-class-rules","dom-layout"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(R)("table-loading-wrapper"))},[e.createVNode(e.unref($.Spin),{delay:300})],2),[[e.vShow,Ne.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref($.Pagination),e.mergeProps({key:0,class:e.unref(i)("pagination")},e.unref(D).pagination,{onChange:Ee}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=so;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ue=require("ag-grid-vue3"),j=require("ag-grid-community"),Ge=require("./utils.js"),$=require("@aplus-frontend/antdv"),d=require("lodash-unified");require("../config-provider/index.js");const We=require("../ap-form/index.js"),Le=require("../ap-table/utils.js"),_e=require("../ap-table/hooks/use-table-paging-ng.js"),He=require("./hooks/use-row-selection.js"),je=require("./context.js"),$e=require("../ap-table/context.js"),B=require("../ap-grid/constants.js"),Je=require("@aplus-frontend/antdv/es/theme/internal"),Qe=require("./theme.js"),Xe=require("./hooks/use-columns.js"),Ye=require("./hooks/use-columns-def.js"),Ze=require("../utils/index.js"),eo=require("../utils/slot.js"),oo=require("./hooks/use-search-form.js");require("./components/empty/index.vue.js");const to=require("./hooks/use-virtual-config.js"),ro=require("./hooks/use-pinned-row.js"),no=require("./hooks/use-selection-col-def.js"),ao=require("../config-provider/hooks/use-namespace.js"),lo=require("../config-provider/hooks/use-global-config.js"),so=require("./components/empty/index.vue2.js"),uo=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},columns:{},rowSelection:{type:Boolean},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{}},setup(J,{expose:Q}){j.ModuleRegistry.registerModules([j.AllCommunityModule]);const t=J,I=e.useSlots(),{e:R,b:i,be:X}=ao.useNamespace("ag-grid"),S=e.ref(t.size),Y=Qe.useTheme(S,e.toRef(t,"rowHeight")),Z=to.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:E,getRowPinnedCellClass:ee}=ro.usePinnedRow(e.toRef(t,"summary")),oe=lo.useGlobalConfig("apGrid"),l=e.ref(),[,te]=Je.useToken();let f=!!t.dataSource;const T=oo.useSearchForm(t),{shownColumns:p,columns:z,columnKeys:re,getTargetColumnByKey:ne}=Xe.useColumns(t),{defaultColDef:ae,columnDefs:le,gridWrapperRef:se}=Ye.useColumnsDef(z,t,ee),b=e.ref({});je.useProvideSorter({sorter:b,setSorter(o){b.value=o}});const ue={asc:"ascend",desc:"descend"};function ie(){const o=l.value.getColumns()?.filter(c=>c.getSort()!==void 0),r=e.unref(b)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(c=>r[c]===null)){const c=Object.keys(r)[0];c&&(n=l.value?.getColumn(c))}if(!n)return;const s=n.getColDef(),w=n.getSort(),h=ne(s.colId);V(void 0,void 0,{column:s,field:h?.field??s.field??s.colId,order:w?ue[w]:null})}const ce=e.computed(()=>Le.recursionApColumns(e.unref(p),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),de=()=>{b.value={};const o=l.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},fe=e.computed(()=>Ze.isDef(t.manual)?t.manual:eo.getValidVNodeList(I.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:m,submit:k,reset:F,data:g,tableProps:D,handleTableChangeOptional:V,submitWith:P,refresh:K,getPaging:pe,setPaging:me,setDataSource:ge}=_e.useTablePaging({async request(o){if(f=!1,y.value&&!y.value.preserveSelectedRowKeys&&d.isUndefined(t.dataSource)&&q(),!d.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(fe),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ce,onClickReset:de}),y=e.computed(()=>{const o=t.rowSelection||oe.value?.rowSelection;if(o)return o===!0?B.DEFAULT_ROW_SELECTION_CONFIG:{...B.DEFAULT_ROW_SELECTION_CONFIG,...o}}),we=no.default(t,p),Se=e.computed(()=>d.isUndefined(t.dataSource)?g.records:t.dataSource),{select:ye,unSelect:Ce,selectedRows:x,selectedRowKeys:he,clearAll:ve,selectMultiByKeys:Re}=He.default({...y,dataSource:Se,rowKey:t.rowKey}),be={checkbox:"multiRow",radio:"singleRow"},Be=e.computed(()=>{const o=y.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:be[r],isRowSelectable:u=>n?!n(u.data):!0}});function N(o){return d.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const A=({api:o=l.value})=>{if(t.onUpdate?.(),!y.value)return;const r=x.value;if(!r.length){setTimeout(()=>{f=!0},0);return}f=!1;const n=[];o.forEachNode(u=>{const C=u.data,s=N(C);r.find(w=>N(w)===s)&&n.push(u)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{f=!0},0)},ke=o=>{f&&(o.node.isSelected()?ye(o.data):Ce(o.data))},Fe=()=>{f=!0},q=()=>{ve(),l.value?.deselectAll()};function xe(o){Re(o),e.nextTick(()=>{A({})})}function O(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return m.value?.apForm?.[r]?.(!0)}function M(o){m.value?.apForm?.setFieldsValue?.(o)}function U(){return m.value?.getSorterItems()||[]}function G(o){m.value?.setSorterItems(o)}function W(){m.value?.resetSorterItems()}function L(o){return o&&String(o)}function Ne(o){const r=l.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),C=n.map(a=>{if(!re.value.includes(a.colId))return a;const v=!u.includes(a.colId),_={...a,hide:v},H=o.find(Me=>L(Me.key)===a.colId);return H&&(_.pinned=H.fixed||null),_}),s=new Map(o.map((a,v)=>[L(a.key),v])),w=C.filter(a=>s.has(a.colId)).sort((a,v)=>s.get(a.colId)-s.get(v.colId)),h=[];let c=0;for(const a of C)s.has(a.colId)?h.push(w[c++]):h.push(a);r.applyColumnState({state:h,applyOrder:!0})}$e.useProvideApTable({columns:e.computed(()=>p.value),columnsBackup:e.computed(()=>z.value),size:e.computed(()=>B.sizeMap[S.value]),updateColumns(o){p.value=o,t.onShownColumnsChange?.(o),Ne(o)},updateSize(o){S.value=B.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:X("table-header","title"),color:te.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(g).records),getSearchFormValues:O,setSearchFormValues:M,submit:k,submitWith:P,reset:F,refresh:K,getSearchFormSorterItems:U,setSearchFormSorterItems:G,resetSearchFormSorterItems:W});const qe=e.computed(()=>d.isUndefined(t.loading)?g.loading:t.loading),Ie=e.computed(()=>[i(),t.card?null:i("wrapper"),i("adaptive"),i(`size-${S.value}`)].filter(Boolean)),Ee=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Te=(o,r)=>{V({current:o,pageSize:r})};function ze(o){const r=o.data;return N(r)}function De(o,r){l.value?.ensureIndexVisible(o,r)}function Ve(o){t.onRowClicked?.(o.data,o.event)}function Pe(o){t.onScrollEnd?.(o.direction)}function Ke(o){return l.value?.refreshCells(o)}function Ae(o){return l.value?.redrawRows(o)}const Oe=o=>{const r=[E.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=d.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{ge(o)},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{S.value=o}),e.watch(()=>e.unref(g).loading,o=>{t.onLoadingChange?.(o)}),Q({submit:k,reset:F,refresh:K,submitWith:P,setSearchFormValues:M,getSearchFormValues:O,getShowColumns:()=>e.unref(p),rowSelection:{selectedRows:e.computed(()=>x.value),setSelectedRowKeys:xe,clearAll:q},scrollToRow:De,getDataSource:()=>e.unref(g.records),getPaging:pe,setPaging:me,getSearchFormSorterItems:U,setSearchFormSorterItems:G,resetSearchFormSorterItems:W,refreshCells:Ke,redrawRows:Ae,_internalGridApi:e.computed(()=>l.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Ie.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(d.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(T).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(R)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(We.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:m,"custom-reset":"","submit-loading":e.unref(D).loading,onSubmit:e.unref(k),onReset:e.unref(F)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[I.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(R)("table-wrapper"),o.card?e.unref(R)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(x),selectedRowKeys:e.unref(he),shownColumns:e.unref(p),clearAll:q})],2),e.createElementVNode("div",{ref_key:"gridWrapperRef",ref:se,class:e.normalizeClass(e.unref(i)("grid-wrapper"))},[e.createVNode(e.unref(Ue.AgGridVue),e.mergeProps(e.unref(Ge.mergeProps)(e.unref(Z),e.unref(E)),{"get-row-class":Oe,style:Ee.value,"row-data":e.unref(g).records,"column-defs":e.unref(le),"default-col-def":e.unref(ae),"suppress-loading-overlay":"","row-selection":Be.value,"selection-column-def":e.unref(we),"get-row-id":ze,theme:e.unref(Y),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":so.default,"suppress-cell-focus":"","dom-layout":o.autoHeight?"autoHeight":"normal",onSortChanged:ie,onGridReady:r[0]||(r[0]=n=>l.value=n.api),onRowDataUpdated:A,onRowSelected:ke,onFirstDataRendered:Fe,onRowClicked:Ve,onBodyScrollEnd:Pe}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","theme","enable-browser-tooltips","row-class-rules","dom-layout"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(R)("table-loading-wrapper"))},[e.createVNode(e.unref($.Spin),{delay:300})],2),[[e.vShow,qe.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref($.Pagination),e.mergeProps({key:0,class:e.unref(i)("pagination")},e.unref(D).pagination,{onChange:Te}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=uo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("@aplus-frontend/antdv"),h=require("@ant-design/icons-vue");require("../config-provider/index.js");const w=require("./hooks/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("@aplus-frontend/antdv"),h=require("@ant-design/icons-vue");require("../config-provider/index.js");const w=require("./hooks/index.js"),u=require("./utils/getFileInfo.js"),O=require("./hooks/useStyle.js"),q=require("../config-provider/hooks/use-locale.js"),a=require("../config-provider/hooks/use-global-config.js"),z={key:0,class:"spin"},F={key:1,class:"icon"},S={class:"text"},I=e.defineComponent({name:"ApDownload",__name:"ap-download",props:{prefixCls:{},type:{default:"link"},htmlType:{},shape:{},size:{default:"middle"},loading:{type:[Boolean,Object]},disabled:{type:Boolean,default:!1},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onClick:{},onMousedown:{},autoInsertSpace:{type:Boolean},iconPosition:{},color:{},variant:{},text:{},fileName:{},needName:{type:[Boolean,Object]},getOssAccess:{}},emits:["downloadCallback"],setup(d,{emit:p}){const f=p,l=e.ref(!1),{lang:m}=q.useLocale(),g=e.useSlots(),C=e.computed(()=>m.value==="zh-cn"?"zh_CN":"en_US"),y=a.useGlobalConfig("uiMode"),o=d,s=a.useGlobalConfig("apUpload"),i=a.useGlobalConfig("downloadCenterTriggerConfig"),c=e.computed(()=>o.disabled),b=e.computed(()=>o.color?o.color:y.value==="aplus"?"#0070FF":"#1890FF"),v=e.computed(()=>o.size),{getInnerWrapperClass:N}=O.useStyle(b,v,c),_=e.computed(()=>o.getOssAccess||s.value?.getOssAccess),k=async()=>{if(!o.disabled){l.value=!0;try{if(i.value?.trigger){let n=u.getFileInfo(o.needName??s?.value?.needName,o.fileName).map(r=>({objectName:r.path,fileName:r.fileName}));await i.value?.trigger(n)}else{const n=await(await w.useOssInit(_.value,e.unref(C))).downloadFile(u.getFileInfo(o.needName??s?.value?.needName,o.fileName));f("downloadCallback",n)}}catch(t){console.error(t)}finally{l.value=!1}}};return(t,n)=>(e.openBlock(),e.createBlock(e.unref(B.Button),e.mergeProps(o,{type:o.type,size:o.size,disabled:c.value,onClick:k}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(N))},[l.value?(e.openBlock(),e.createElementBlock("span",z,[e.createVNode(e.unref(h.LoadingOutlined),{spin:!0})])):e.createCommentVNode("",!0),e.unref(g).icon?(e.openBlock(),e.createElementBlock("span",F,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("span",S,e.toDisplayString(t.text),1)],2)]),_:3},16,["type","size","disabled"]))}});exports.default=I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("./icons/file-icon.vue.js"),s=require("@aplus-frontend/antdv"),L=require("@aplus-frontend/icon"),V=require("@ant-design/icons-vue");require("../ap-title/ApTitle.vue.js");require("../../ap-download/ap-download.vue2.js");require("../../config-provider/index.js");const B=require("./utils/index.js"),A=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-locale.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("./icons/file-icon.vue.js"),s=require("@aplus-frontend/antdv"),L=require("@aplus-frontend/icon"),V=require("@ant-design/icons-vue");require("../ap-title/ApTitle.vue.js");require("../../ap-download/ap-download.vue2.js");require("../../config-provider/index.js");const B=require("./utils/index.js"),A=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-locale.js"),g=require("../../config-provider/hooks/use-global-config.js"),w=require("../ap-title/ApTitle.vue2.js"),h=require("../../ap-download/ap-download.vue.js"),S=["onClick"],b=e.defineComponent({__name:"ap-appendix",props:{fileList:{},needName:{type:[Boolean,Object],default:!1},getOssAccess:{},title:{},tooltip:{},column:{default:2},isFileAreaBorder:{type:Boolean,default:!1}},setup(C){const{b:N,e:l,em:p}=A.useNamespace("ap-appendix"),{t:c}=q.useLocale(),a=C,m=g.useGlobalConfig("apUpload"),v=g.useGlobalConfig("downloadCenterTriggerConfig"),r=e.computed(()=>B.getFileInfo(a?.needName??m?.value?.needName,a?.fileList??[])),y=e.computed(()=>a.getOssAccess||m.value?.getOssAccess),u=e.computed(()=>!(Array.isArray(r.value)&&r.value.length)),n=e.ref([]),_=e.computed(()=>a.title||c("ap.apAppendix.appendix"));async function k(o,i){if(!(n.value.findIndex(t=>t===i)>-1)){n.value=[...n.value,i];try{if(v.value?.trigger){let t=[o].map(f=>({objectName:f.path,fileName:f.fileName}));await v.value?.trigger(t)}}finally{n.value=n.value.filter(t=>t!==i)}}}return(o,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(N)()]},{...o.$attrs},{style:{"--ap-appendix-column":`repeat(${Number(a?.column||2)}, 1fr)`}}),[e.renderSlot(o.$slots,"title",{fileList:a.fileList},()=>[e.createVNode(w.default,{title:_.value,"help-message":a?.tooltip},{suffix:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("suffix")])},[e.renderSlot(o.$slots,"titleSuffix",{fileList:a.fileList}),e.renderSlot(o.$slots,"titleDownloadAllBtn",{fileList:a.fileList},()=>[u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h.default,{key:0,class:e.normalizeClass([e.unref(l)("download-all")]),text:e.unref(c)("ap.apAppendix.downloadAll"),"get-oss-access":y.value,"file-name":r.value},{icon:e.withCtx(()=>[e.createVNode(e.unref(L.IconVariantDownload))]),_:1},8,["class","text","get-oss-access","file-name"]))])],2)]),_:3},8,["title","help-message"])]),u.value?e.createCommentVNode("",!0):e.renderSlot(o.$slots,"fileArea",{key:0,fileList:a.fileList},()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(l)("file-area")]:!0,[e.unref(p)("file-area","border")]:!!a.isFileAreaBorder})},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass({[e.unref(l)("file-area-content-item")]:!0,[e.unref(p)("file-area-content-item","loading")]:n.value.includes(t)})},[e.createVNode(e.unref(s.Tooltip),null,e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(l)("file-area-content-item-content")]:!0,[e.unref(l)("file-area-content-item--loading-content")]:n.value.includes(t)}),onClick:f=>k(d,t)},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content-item-icon")])},[n.value.includes(t)?(e.openBlock(),e.createBlock(e.unref(V.LoadingOutlined),{key:0})):(e.openBlock(),e.createBlock(E.default,{key:1}))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content-item-file-name")])},[e.createVNode(e.unref(s.TypographyText),{ellipsis:"",content:d.fileName},null,8,["content"])],2)],10,S)]),_:2},[n.value.includes(t)?void 0:{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("ap.apAppendix.downloadFile")),1)]),key:"0"}]),1024)],2))),128))],2)],2)]),u.value?e.renderSlot(o.$slots,"empty",{key:1},()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("empty")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("empty-content")])},[e.createVNode(e.unref(s.Empty),{image:e.unref(s.Empty).PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2)],2)]):e.createCommentVNode("",!0)],16))}});exports.default=b;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.34.0";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.34.0";exports.default=e;
|
package/package.json
CHANGED
package/theme/ag-grid/index.css
CHANGED
|
@@ -699,10 +699,14 @@
|
|
|
699
699
|
.aplus-ag-grid-size-medium .ag-cell > div {
|
|
700
700
|
width: 100%;
|
|
701
701
|
}
|
|
702
|
-
.aplus-ag-
|
|
702
|
+
.aplus-ag-grid__tooltip {
|
|
703
703
|
font-size: 12px;
|
|
704
704
|
max-width: 300px;
|
|
705
705
|
word-break: break-all;
|
|
706
|
+
background-color: #fff;
|
|
707
|
+
padding: 6px 8px;
|
|
708
|
+
border-radius: 4px;
|
|
709
|
+
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
706
710
|
}
|
|
707
711
|
.aplus-ag-grid .ag-unselectable {
|
|
708
712
|
-moz-user-select: text;
|
package/theme/ag-grid/index.less
CHANGED
|
@@ -151,10 +151,14 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
&__tooltip {
|
|
155
155
|
font-size: @font-size-base;
|
|
156
156
|
max-width: 300px;
|
|
157
157
|
word-break: break-all;
|
|
158
|
+
background-color: #fff;
|
|
159
|
+
padding: 6px 8px;
|
|
160
|
+
border-radius: 4px;
|
|
161
|
+
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
158
162
|
}
|
|
159
163
|
.ag-unselectable {
|
|
160
164
|
user-select: text;
|
package/theme/index.css
CHANGED
|
@@ -4409,10 +4409,14 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4409
4409
|
.aplus-ag-grid-size-medium .ag-cell > div {
|
|
4410
4410
|
width: 100%;
|
|
4411
4411
|
}
|
|
4412
|
-
.aplus-ag-
|
|
4412
|
+
.aplus-ag-grid__tooltip {
|
|
4413
4413
|
font-size: 12px;
|
|
4414
4414
|
max-width: 300px;
|
|
4415
4415
|
word-break: break-all;
|
|
4416
|
+
background-color: #fff;
|
|
4417
|
+
padding: 6px 8px;
|
|
4418
|
+
border-radius: 4px;
|
|
4419
|
+
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
4416
4420
|
}
|
|
4417
4421
|
.aplus-ag-grid .ag-unselectable {
|
|
4418
4422
|
-moz-user-select: text;
|