@aplus-frontend/ui 7.12.1 → 7.12.2
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/index.vue.mjs +124 -122
- package/es/src/ap-grid/index.vue.mjs +95 -93
- package/es/src/ap-table/ap-table.vue2.mjs +73 -71
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +7 -6
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +60 -59
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +117 -97
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AG_GRID_LOCALE_EN as
|
|
3
|
-
import { Spin as
|
|
4
|
-
import { useToken as
|
|
5
|
-
import { ModuleRegistry as
|
|
6
|
-
import { AgGridVue as
|
|
1
|
+
import { defineComponent as fo, useSlots as go, ref as M, toRef as F, unref as t, computed as n, nextTick as z, watch as G, createElementBlock as L, openBlock as C, normalizeStyle as O, normalizeClass as g, createCommentVNode as se, createElementVNode as B, createVNode as ie, mergeProps as W, createSlots as wo, withCtx as ue, Fragment as So, renderList as ho, createBlock as H, resolveDynamicComponent as Co, renderSlot as de, withDirectives as yo, vShow as Ro } from "vue";
|
|
2
|
+
import { AG_GRID_LOCALE_EN as vo, AG_GRID_LOCALE_CN as bo } from "@ag-grid-community/locale";
|
|
3
|
+
import { Spin as Mo, Pagination as Fo } from "@aplus-frontend/antdv";
|
|
4
|
+
import { useToken as Bo } from "@aplus-frontend/antdv/es/theme/internal";
|
|
5
|
+
import { ModuleRegistry as ko, ValidationModule as xo, ColumnAutoSizeModule as Io, PinnedRowModule as Ao, RowAutoHeightModule as No, RowStyleModule as To, CellSpanModule as Do, CellStyleModule as Eo, TooltipModule as Po, RowSelectionModule as Ko, LocaleModule as Vo, ValueCacheModule as zo, GridStateModule as Go, ColumnApiModule as Lo, RowApiModule as Oo, CellApiModule as Wo, RenderApiModule as Ho, EventApiModule as Uo, ScrollApiModule as _o, ClientSideRowModelApiModule as jo, ClientSideRowModelModule as $o } from "ag-grid-community";
|
|
6
|
+
import { AgGridVue as qo } from "ag-grid-vue3";
|
|
7
7
|
import { isUndefined as k, isFunction as N } from "lodash-unified";
|
|
8
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as ce, sizeReverseMap as
|
|
9
|
-
import { useProvideApTable as
|
|
10
|
-
import { useTablePaging as
|
|
11
|
-
import { recursionApColumns as
|
|
8
|
+
import { DEFAULT_ROW_SELECTION_CONFIG as ce, sizeReverseMap as Jo, sizeMap as Qo } from "../ap-grid/constants.mjs";
|
|
9
|
+
import { useProvideApTable as Xo } from "../ap-table/context.mjs";
|
|
10
|
+
import { useTablePaging as Yo } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
11
|
+
import { recursionApColumns as Zo } from "../ap-table/utils.mjs";
|
|
12
12
|
import "../config-provider/index.mjs";
|
|
13
13
|
import "../utils/index.mjs";
|
|
14
|
-
import { getValidVNodeList as
|
|
15
|
-
import { ApForm as
|
|
14
|
+
import { getValidVNodeList as et } from "../utils/slot.mjs";
|
|
15
|
+
import { ApForm as ot } from "../ap-form/index.mjs";
|
|
16
16
|
import "./components/empty/index.vue.mjs";
|
|
17
17
|
import "./components/row/index.vue.mjs";
|
|
18
|
-
import { useProvideSorter as
|
|
19
|
-
import { useColumns as
|
|
20
|
-
import { useColumnsDef as
|
|
21
|
-
import { usePinnedRow as
|
|
22
|
-
import
|
|
23
|
-
import { useSearchForm as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { useTheme as
|
|
28
|
-
import { mergeProps as
|
|
29
|
-
import { useNamespace as
|
|
30
|
-
import { useLocale as
|
|
31
|
-
import { useGlobalConfig as
|
|
32
|
-
import { isDef as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
const
|
|
18
|
+
import { useProvideSorter as tt } from "./context.mjs";
|
|
19
|
+
import { useColumns as rt } from "./hooks/use-columns.mjs";
|
|
20
|
+
import { useColumnsDef as lt } from "./hooks/use-columns-def.mjs";
|
|
21
|
+
import { usePinnedRow as at } from "./hooks/use-pinned-row.mjs";
|
|
22
|
+
import nt from "./hooks/use-row-selection.mjs";
|
|
23
|
+
import { useSearchForm as st } from "./hooks/use-search-form.mjs";
|
|
24
|
+
import it from "./hooks/use-selection-col-def.mjs";
|
|
25
|
+
import ut from "./hooks/use-virtual-config.mjs";
|
|
26
|
+
import dt from "./style/index.mjs";
|
|
27
|
+
import { useTheme as ct } from "./theme.mjs";
|
|
28
|
+
import { mergeProps as mt } from "./utils.mjs";
|
|
29
|
+
import { useNamespace as pt } from "../config-provider/hooks/use-namespace.mjs";
|
|
30
|
+
import { useLocale as ft } from "../config-provider/hooks/use-locale.mjs";
|
|
31
|
+
import { useGlobalConfig as gt } from "../config-provider/hooks/use-global-config.mjs";
|
|
32
|
+
import { isDef as wt } from "../utils/is.mjs";
|
|
33
|
+
import St from "./components/row/index.vue2.mjs";
|
|
34
|
+
import ht from "./components/empty/index.vue2.mjs";
|
|
35
|
+
const Zt = /* @__PURE__ */ fo({
|
|
36
36
|
name: "AgGrid",
|
|
37
37
|
__name: "index",
|
|
38
38
|
props: {
|
|
@@ -110,11 +110,10 @@ const Yt = /* @__PURE__ */ po({
|
|
|
110
110
|
},
|
|
111
111
|
setup(me, { expose: pe }) {
|
|
112
112
|
const fe = {
|
|
113
|
-
"zh-cn":
|
|
114
|
-
en:
|
|
113
|
+
"zh-cn": bo,
|
|
114
|
+
en: vo
|
|
115
115
|
};
|
|
116
|
-
|
|
117
|
-
ko,
|
|
116
|
+
ko.registerModules([
|
|
118
117
|
xo,
|
|
119
118
|
Io,
|
|
120
119
|
Ao,
|
|
@@ -127,24 +126,25 @@ const Yt = /* @__PURE__ */ po({
|
|
|
127
126
|
Vo,
|
|
128
127
|
zo,
|
|
129
128
|
Go,
|
|
130
|
-
Oo,
|
|
131
129
|
Lo,
|
|
130
|
+
Oo,
|
|
132
131
|
Wo,
|
|
133
132
|
Ho,
|
|
134
133
|
Uo,
|
|
135
134
|
_o,
|
|
136
|
-
jo
|
|
135
|
+
jo,
|
|
136
|
+
$o
|
|
137
137
|
]);
|
|
138
|
-
const o = me, U =
|
|
138
|
+
const o = me, U = go(), { e: x, b: d, be: ge } = pt("ag-grid"), { lang: _ } = ft(), we = dt("ag-grid"), y = M(o.size), Se = ct(
|
|
139
139
|
y,
|
|
140
140
|
F(o, "rowHeight"),
|
|
141
141
|
F(o, "theme")
|
|
142
|
-
), he =
|
|
142
|
+
), he = ut(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: Ce } = at(
|
|
143
143
|
F(o, "summary")
|
|
144
|
-
), ye =
|
|
144
|
+
), ye = gt("apGrid"), s = M(), [, Re] = Bo();
|
|
145
145
|
let R = !!o.dataSource;
|
|
146
|
-
const $ =
|
|
147
|
-
|
|
146
|
+
const $ = st(o), { shownColumns: w, columns: q, columnKeys: ve, getTargetColumnByKey: be } = rt(o), { defaultColDef: Me, columnDefs: Fe, gridWrapperRef: Be } = lt(q, o, Ce), I = M({});
|
|
147
|
+
tt({
|
|
148
148
|
sorter: I,
|
|
149
149
|
setSorter(e) {
|
|
150
150
|
I.value = e;
|
|
@@ -171,7 +171,7 @@ const Yt = /* @__PURE__ */ po({
|
|
|
171
171
|
order: p ? ke[p] : null
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
const Ie = n(() =>
|
|
174
|
+
const Ie = n(() => Zo(t(w), (e) => {
|
|
175
175
|
if (e.sorter === !0)
|
|
176
176
|
return e.field ?? e.dataIndex ?? e.key;
|
|
177
177
|
}).filter(Boolean)), Ae = () => {
|
|
@@ -181,7 +181,7 @@ const Yt = /* @__PURE__ */ po({
|
|
|
181
181
|
return;
|
|
182
182
|
const r = e.getColumnState()?.map((l) => ({ ...l, sort: null }));
|
|
183
183
|
e.applyColumnState({ state: r });
|
|
184
|
-
}, T = M(!0), Ne = n(() =>
|
|
184
|
+
}, T = M(!0), Ne = n(() => wt(o.manual) ? o.manual : et(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
|
|
185
185
|
formRef: S,
|
|
186
186
|
submit: D,
|
|
187
187
|
reset: E,
|
|
@@ -192,8 +192,9 @@ const Yt = /* @__PURE__ */ po({
|
|
|
192
192
|
refresh: Y,
|
|
193
193
|
getPaging: Te,
|
|
194
194
|
setPaging: De,
|
|
195
|
-
setDataSource: Ee
|
|
196
|
-
|
|
195
|
+
setDataSource: Ee,
|
|
196
|
+
getLastParams: Pe
|
|
197
|
+
} = Yo({
|
|
197
198
|
async request(e) {
|
|
198
199
|
if (R = !1, h.value && !h.value.preserveSelectedRowKeys && k(o.dataSource) && !T.value && V(), T.value && (T.value = !1), !k(o.dataSource)) {
|
|
199
200
|
const l = e.pageSize * (e.current - 1);
|
|
@@ -224,31 +225,31 @@ const Yt = /* @__PURE__ */ po({
|
|
|
224
225
|
...ce,
|
|
225
226
|
...e
|
|
226
227
|
};
|
|
227
|
-
}),
|
|
228
|
+
}), Ke = it(o, w), Ve = n(
|
|
228
229
|
() => k(o.dataSource) ? m.records : o.dataSource
|
|
229
230
|
), {
|
|
230
|
-
select:
|
|
231
|
-
unSelect:
|
|
231
|
+
select: ze,
|
|
232
|
+
unSelect: Ge,
|
|
232
233
|
selectedRows: P,
|
|
233
|
-
selectedRowKeys:
|
|
234
|
+
selectedRowKeys: Le,
|
|
234
235
|
clearAll: Oe,
|
|
235
|
-
selectMultiByKeys:
|
|
236
|
-
selectMulti:
|
|
237
|
-
unSelectMulti:
|
|
238
|
-
} =
|
|
236
|
+
selectMultiByKeys: We,
|
|
237
|
+
selectMulti: He,
|
|
238
|
+
unSelectMulti: Ue
|
|
239
|
+
} = nt({
|
|
239
240
|
...h.value,
|
|
240
|
-
dataSource:
|
|
241
|
+
dataSource: Ve,
|
|
241
242
|
rowKey: o.rowKey
|
|
242
|
-
}),
|
|
243
|
+
}), _e = {
|
|
243
244
|
checkbox: "multiRow",
|
|
244
245
|
radio: "singleRow"
|
|
245
|
-
},
|
|
246
|
+
}, je = n(() => {
|
|
246
247
|
const e = h.value;
|
|
247
248
|
if (!e)
|
|
248
249
|
return;
|
|
249
250
|
const { type: r = "checkbox", disabled: l } = e;
|
|
250
251
|
return {
|
|
251
|
-
mode:
|
|
252
|
+
mode: _e[r],
|
|
252
253
|
isRowSelectable: (i) => l ? !l(i.data) : !0,
|
|
253
254
|
hideDisabledCheckboxes: e.hideDisabled ?? !1
|
|
254
255
|
};
|
|
@@ -270,40 +271,40 @@ const Yt = /* @__PURE__ */ po({
|
|
|
270
271
|
}), e.setNodesSelected({ nodes: l, newValue: !0 }), setTimeout(() => {
|
|
271
272
|
R = !0;
|
|
272
273
|
}, 0);
|
|
273
|
-
},
|
|
274
|
-
R && (e.node.isSelected() ?
|
|
274
|
+
}, $e = (e) => {
|
|
275
|
+
R && (e.node.isSelected() ? ze(e.data) : Ge(e.data), N(h.value?.tooltip) && e.api.refreshCells({
|
|
275
276
|
rowNodes: [e.node],
|
|
276
277
|
// todo: 取消硬编码
|
|
277
278
|
columns: ["ag-Grid-SelectionColumn"],
|
|
278
279
|
force: !0
|
|
279
280
|
}));
|
|
280
|
-
},
|
|
281
|
+
}, qe = () => {
|
|
281
282
|
R = !0;
|
|
282
283
|
}, V = () => {
|
|
283
284
|
Oe(), s.value?.deselectAll();
|
|
284
285
|
};
|
|
285
|
-
function
|
|
286
|
-
|
|
286
|
+
function Je(e) {
|
|
287
|
+
We(e), z(() => {
|
|
287
288
|
A({});
|
|
288
289
|
});
|
|
289
290
|
}
|
|
290
|
-
const
|
|
291
|
+
const Qe = n(() => {
|
|
291
292
|
const e = o.customRow;
|
|
292
293
|
return e ? {
|
|
293
294
|
isFullWidthRow: e.isCustomRow,
|
|
294
|
-
fullWidthCellRenderer:
|
|
295
|
+
fullWidthCellRenderer: St,
|
|
295
296
|
fullWidthCellRendererParams: {
|
|
296
297
|
render: e.render
|
|
297
298
|
}
|
|
298
299
|
} : {};
|
|
299
300
|
});
|
|
300
|
-
function
|
|
301
|
-
|
|
301
|
+
function Xe(e) {
|
|
302
|
+
He(e), z(() => {
|
|
302
303
|
A({});
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
306
|
+
function Ye(e) {
|
|
307
|
+
Ue(e), z(() => {
|
|
307
308
|
A({});
|
|
308
309
|
});
|
|
309
310
|
}
|
|
@@ -326,7 +327,7 @@ const Yt = /* @__PURE__ */ po({
|
|
|
326
327
|
function le(e) {
|
|
327
328
|
return e && String(e);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ze(e) {
|
|
330
331
|
const r = s.value;
|
|
331
332
|
if (!r)
|
|
332
333
|
return;
|
|
@@ -337,7 +338,7 @@ const Yt = /* @__PURE__ */ po({
|
|
|
337
338
|
...a,
|
|
338
339
|
hide: b
|
|
339
340
|
}, ne = e.find(
|
|
340
|
-
(
|
|
341
|
+
(po) => le(po.key) === a.colId
|
|
341
342
|
);
|
|
342
343
|
return ne && (ae.pinned = ne.fixed || null), ae;
|
|
343
344
|
}), u = new Map(
|
|
@@ -353,15 +354,15 @@ const Yt = /* @__PURE__ */ po({
|
|
|
353
354
|
applyOrder: !0
|
|
354
355
|
});
|
|
355
356
|
}
|
|
356
|
-
|
|
357
|
+
Xo({
|
|
357
358
|
columns: n(() => w.value),
|
|
358
359
|
columnsBackup: n(() => q.value),
|
|
359
|
-
size: n(() =>
|
|
360
|
+
size: n(() => Qo[y.value]),
|
|
360
361
|
updateColumns(e) {
|
|
361
|
-
w.value = e, o.onShownColumnsChange?.(e),
|
|
362
|
+
w.value = e, o.onShownColumnsChange?.(e), Ze(e);
|
|
362
363
|
},
|
|
363
364
|
updateSize(e) {
|
|
364
|
-
y.value =
|
|
365
|
+
y.value = Jo[e];
|
|
365
366
|
},
|
|
366
367
|
renderConfig: n(() => ({
|
|
367
368
|
className: ge("table-header", "title"),
|
|
@@ -376,46 +377,47 @@ const Yt = /* @__PURE__ */ po({
|
|
|
376
377
|
refresh: Y,
|
|
377
378
|
getSearchFormSorterItems: oe,
|
|
378
379
|
setSearchFormSorterItems: te,
|
|
379
|
-
resetSearchFormSorterItems: re
|
|
380
|
+
resetSearchFormSorterItems: re,
|
|
381
|
+
getLastParams: Pe
|
|
380
382
|
});
|
|
381
|
-
const
|
|
383
|
+
const eo = n(
|
|
382
384
|
() => k(o.loading) ? m.loading : o.loading
|
|
383
|
-
),
|
|
385
|
+
), oo = n(() => [
|
|
384
386
|
d(),
|
|
385
387
|
o.card ? null : d("wrapper"),
|
|
386
388
|
d("adaptive"),
|
|
387
389
|
d(`size-${y.value}`),
|
|
388
390
|
o.autoHeight && m.records.length ? d("auto-height") : null,
|
|
389
391
|
we.value
|
|
390
|
-
].filter(Boolean)),
|
|
392
|
+
].filter(Boolean)), to = n(() => ({
|
|
391
393
|
height: "100%",
|
|
392
394
|
...o.tableStyle || {}
|
|
393
|
-
})),
|
|
395
|
+
})), ro = (e, r) => {
|
|
394
396
|
Q({ current: e, pageSize: r });
|
|
395
397
|
};
|
|
396
|
-
function
|
|
398
|
+
function lo(e) {
|
|
397
399
|
const r = e.data;
|
|
398
400
|
return K(r);
|
|
399
401
|
}
|
|
400
|
-
function
|
|
402
|
+
function ao(e, r) {
|
|
401
403
|
(N(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
|
|
402
404
|
}
|
|
403
|
-
function
|
|
405
|
+
function no(e, r) {
|
|
404
406
|
s.value?.ensureColumnVisible(e, r);
|
|
405
407
|
}
|
|
406
|
-
function
|
|
408
|
+
function so(e) {
|
|
407
409
|
o.onRowClicked?.(e.data, e.event);
|
|
408
410
|
}
|
|
409
|
-
function
|
|
411
|
+
function io(e) {
|
|
410
412
|
o.onScrollEnd?.(e.direction);
|
|
411
413
|
}
|
|
412
|
-
function
|
|
414
|
+
function uo(e) {
|
|
413
415
|
return s.value?.refreshCells(e);
|
|
414
416
|
}
|
|
415
|
-
function
|
|
417
|
+
function co(e) {
|
|
416
418
|
return s.value?.redrawRows(e);
|
|
417
419
|
}
|
|
418
|
-
const
|
|
420
|
+
const mo = (e) => {
|
|
419
421
|
const r = [
|
|
420
422
|
j.value.getRowClass?.(e)
|
|
421
423
|
];
|
|
@@ -451,41 +453,41 @@ const Yt = /* @__PURE__ */ po({
|
|
|
451
453
|
getShowColumns: () => t(w),
|
|
452
454
|
rowSelection: {
|
|
453
455
|
selectedRows: n(() => P.value),
|
|
454
|
-
setSelectedRowKeys:
|
|
455
|
-
setSelectedRows:
|
|
456
|
+
setSelectedRowKeys: Je,
|
|
457
|
+
setSelectedRows: Xe,
|
|
456
458
|
clearAll: V,
|
|
457
|
-
unSelectRows:
|
|
459
|
+
unSelectRows: Ye
|
|
458
460
|
},
|
|
459
|
-
scrollToRow:
|
|
460
|
-
scrollToColumn:
|
|
461
|
+
scrollToRow: ao,
|
|
462
|
+
scrollToColumn: no,
|
|
461
463
|
getDataSource: () => t(m.records),
|
|
462
464
|
getPaging: Te,
|
|
463
465
|
setPaging: De,
|
|
464
466
|
getSearchFormSorterItems: oe,
|
|
465
467
|
setSearchFormSorterItems: te,
|
|
466
468
|
resetSearchFormSorterItems: re,
|
|
467
|
-
refreshCells:
|
|
468
|
-
redrawRows:
|
|
469
|
+
refreshCells: uo,
|
|
470
|
+
redrawRows: co,
|
|
469
471
|
_internalGridApi: n(() => s.value)
|
|
470
|
-
}), (e, r) => (C(),
|
|
471
|
-
class: g(
|
|
472
|
-
style:
|
|
472
|
+
}), (e, r) => (C(), L("div", {
|
|
473
|
+
class: g(oo.value),
|
|
474
|
+
style: O(e.wrapperStyle)
|
|
473
475
|
}, [
|
|
474
|
-
t(k)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (C(),
|
|
476
|
+
t(k)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (C(), L("div", {
|
|
475
477
|
key: 0,
|
|
476
478
|
class: g(e.card ? t(x)("search-wrapper") : null),
|
|
477
|
-
style:
|
|
479
|
+
style: O(e.searchFormWrapperStyle)
|
|
478
480
|
}, [
|
|
479
|
-
ie(t(
|
|
481
|
+
ie(t(ot).SearchForm, W(e.searchForm || {}, {
|
|
480
482
|
ref_key: "formRef",
|
|
481
483
|
ref: S,
|
|
482
484
|
"custom-reset": "",
|
|
483
485
|
"submit-loading": t(J).loading,
|
|
484
486
|
onSubmit: t(D),
|
|
485
487
|
onReset: t(E)
|
|
486
|
-
}),
|
|
488
|
+
}), wo({
|
|
487
489
|
default: ue(() => [
|
|
488
|
-
(C(!0),
|
|
490
|
+
(C(!0), L(So, null, ho(t($), (l) => (C(), H(Co(l.renderNode), {
|
|
489
491
|
key: l.dataIndex
|
|
490
492
|
}))), 128))
|
|
491
493
|
]),
|
|
@@ -502,14 +504,14 @@ const Yt = /* @__PURE__ */ po({
|
|
|
502
504
|
], 6)) : se("", !0),
|
|
503
505
|
B("div", {
|
|
504
506
|
class: g([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
|
|
505
|
-
style:
|
|
507
|
+
style: O(e.tableWrapperStyle)
|
|
506
508
|
}, [
|
|
507
509
|
B("div", {
|
|
508
510
|
class: g(t(d)("header-wrapper"))
|
|
509
511
|
}, [
|
|
510
512
|
de(e.$slots, "title", {
|
|
511
513
|
selectedRows: t(P),
|
|
512
|
-
selectedRowKeys: t(
|
|
514
|
+
selectedRowKeys: t(Le),
|
|
513
515
|
shownColumns: t(w),
|
|
514
516
|
clearAll: V
|
|
515
517
|
})
|
|
@@ -519,26 +521,26 @@ const Yt = /* @__PURE__ */ po({
|
|
|
519
521
|
ref: Be,
|
|
520
522
|
class: g(t(d)("grid-wrapper"))
|
|
521
523
|
}, [
|
|
522
|
-
(C(), H(t(
|
|
523
|
-
t(
|
|
524
|
+
(C(), H(t(qo), W(
|
|
525
|
+
t(mt)(t(he), t(j), Qe.value),
|
|
524
526
|
{
|
|
525
527
|
key: t(_),
|
|
526
|
-
"get-row-class":
|
|
527
|
-
style:
|
|
528
|
+
"get-row-class": mo,
|
|
529
|
+
style: to.value,
|
|
528
530
|
"row-data": t(m).records,
|
|
529
531
|
"column-defs": t(Fe),
|
|
530
532
|
"default-col-def": t(Me),
|
|
531
533
|
"suppress-loading-overlay": "",
|
|
532
|
-
"row-selection":
|
|
533
|
-
"selection-column-def": t(
|
|
534
|
-
"get-row-id":
|
|
534
|
+
"row-selection": je.value,
|
|
535
|
+
"selection-column-def": t(Ke),
|
|
536
|
+
"get-row-id": lo,
|
|
535
537
|
"get-row-height": o.getRowHeight,
|
|
536
538
|
theme: t(Se),
|
|
537
539
|
"tooltip-show-delay": 500,
|
|
538
540
|
"enable-browser-tooltips": e.browserTooltips,
|
|
539
541
|
"tooltip-interaction": "",
|
|
540
542
|
"row-class-rules": e.rowClassRules,
|
|
541
|
-
"no-rows-overlay-component":
|
|
543
|
+
"no-rows-overlay-component": ht,
|
|
542
544
|
"suppress-cell-focus": "",
|
|
543
545
|
"enable-cell-span": "",
|
|
544
546
|
"dom-layout": e.autoHeight ? "autoHeight" : "normal",
|
|
@@ -546,32 +548,32 @@ const Yt = /* @__PURE__ */ po({
|
|
|
546
548
|
onSortChanged: xe,
|
|
547
549
|
onGridReady: r[0] || (r[0] = (l) => s.value = l.api),
|
|
548
550
|
onRowDataUpdated: A,
|
|
549
|
-
onRowSelected:
|
|
550
|
-
onFirstDataRendered:
|
|
551
|
-
onRowClicked:
|
|
552
|
-
onBodyScrollEnd:
|
|
551
|
+
onRowSelected: $e,
|
|
552
|
+
onFirstDataRendered: qe,
|
|
553
|
+
onRowClicked: so,
|
|
554
|
+
onBodyScrollEnd: io
|
|
553
555
|
}
|
|
554
556
|
), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout", "locale-text"])),
|
|
555
|
-
|
|
557
|
+
yo(B("div", {
|
|
556
558
|
class: g(t(x)("table-loading-wrapper"))
|
|
557
559
|
}, [
|
|
558
|
-
ie(t(
|
|
560
|
+
ie(t(Mo), { delay: 300 })
|
|
559
561
|
], 2), [
|
|
560
|
-
[
|
|
562
|
+
[Ro, eo.value]
|
|
561
563
|
])
|
|
562
564
|
], 2),
|
|
563
565
|
B("div", {
|
|
564
566
|
class: g(t(d)("pagination-wrapper"))
|
|
565
567
|
}, [
|
|
566
|
-
e.pagination !== !1 ? (C(), H(t(
|
|
568
|
+
e.pagination !== !1 ? (C(), H(t(Fo), W({
|
|
567
569
|
key: 0,
|
|
568
570
|
class: t(d)("pagination")
|
|
569
|
-
}, t(J).pagination, { onChange:
|
|
571
|
+
}, t(J).pagination, { onChange: ro }), null, 16, ["class"])) : se("", !0)
|
|
570
572
|
], 2)
|
|
571
573
|
], 6)
|
|
572
574
|
], 6));
|
|
573
575
|
}
|
|
574
576
|
});
|
|
575
577
|
export {
|
|
576
|
-
|
|
578
|
+
Zt as default
|
|
577
579
|
};
|