@platforma-sdk/ui-vue 1.84.0 → 1.84.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/.turbo/turbo-build.log +12 -11
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +123 -0
- package/dist/components/PlAgDataTable/PlAgDataTableV2.js.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.style.js.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +175 -180
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
- package/dist/components/PlAgDataTable/__tests__/PlAgDataTableV2.reload.jsdomtest.d.ts +2 -0
- package/dist/components/PlAgDataTable/__tests__/PlAgDataTableV2.reload.jsdomtest.d.ts.map +1 -0
- package/dist/components/PlAgDataTable/sources/grid-state.d.ts +22 -0
- package/dist/components/PlAgDataTable/sources/grid-state.d.ts.map +1 -0
- package/dist/components/PlAgDataTable/sources/grid-state.js +39 -0
- package/dist/components/PlAgDataTable/sources/grid-state.js.map +1 -0
- package/dist/components/PlAgDataTable/sources/grid-state.test.d.ts +2 -0
- package/dist/components/PlAgDataTable/sources/grid-state.test.d.ts.map +1 -0
- package/dist/components/PlAgDataTable/sources/table-state-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +1 -0
- package/dist/components/PlAgDataTable/sources/table-state-v2.js.map +1 -1
- package/package.json +7 -7
- package/src/components/PlAgDataTable/PlAgDataTableV2.vue +28 -16
- package/src/components/PlAgDataTable/__tests__/PlAgDataTableV2.reload.jsdomtest.ts +222 -0
- package/src/components/PlAgDataTable/sources/grid-state.test.ts +94 -0
- package/src/components/PlAgDataTable/sources/grid-state.ts +110 -0
- package/src/components/PlAgDataTable/sources/table-state-v2.ts +7 -0
|
@@ -7,20 +7,21 @@ import { calculateGridOptions as a, effectiveVisibility as o } from "./sources/t
|
|
|
7
7
|
import s from "../PlAgCsvExporter/PlAgCsvExporter.js";
|
|
8
8
|
import c from "../PlAgGridColumnManager/PlAgGridColumnManager.js";
|
|
9
9
|
import "../PlAgGridColumnManager/index.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import l from "../PlTableFilters/PlTableFiltersV2.js";
|
|
11
|
+
import ee from "../PlTableFastSearch/PlTableFastSearch.js";
|
|
12
12
|
import "../PlTableFastSearch/index.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
13
|
+
import u from "./PlAgDataTableSheets.js";
|
|
14
|
+
import te from "./PlAgRowCount.js";
|
|
15
|
+
import { isStoredStateApplied as ne } from "./sources/grid-state.js";
|
|
16
|
+
import { useTableState as re } from "./sources/table-state-v2.js";
|
|
17
|
+
import { useFilterableColumns as ie } from "./compositions/useFilterableColumns.js";
|
|
18
|
+
import { useGrid as ae } from "./compositions/useGrid.js";
|
|
19
|
+
import { AgGridTheme as d } from "../../AgGridVue/AgGridTheme.js";
|
|
20
|
+
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as oe, createSlots as se, createVNode as h, defineComponent as g, effectScope as ce, isRef as _, mergeModels as v, nextTick as le, normalizeClass as y, openBlock as b, ref as x, renderSlot as S, toRefs as ue, unref as C, useModel as w, watch as T, watchEffect as E, withCtx as D } from "vue";
|
|
21
|
+
import { canonicalizeJson as O, createPlSelectionModel as k, getAxisId as A, getRawPlatformaInstance as de, isAbortError as fe, matchAxisId as j } from "@platforma-sdk/model";
|
|
21
22
|
import { AgGridVue as pe } from "ag-grid-vue3";
|
|
22
23
|
//#region src/components/PlAgDataTable/PlAgDataTableV2.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
24
|
+
var M = /* @__PURE__ */ g({
|
|
24
25
|
__name: "PlAgDataTableV2",
|
|
25
26
|
props: /* @__PURE__ */ v({
|
|
26
27
|
settings: {},
|
|
@@ -45,25 +46,27 @@ var j = /* @__PURE__ */ h({
|
|
|
45
46
|
"cellButtonClicked",
|
|
46
47
|
"newDataRendered"
|
|
47
48
|
], ["update:modelValue", "update:selection"]),
|
|
48
|
-
setup(
|
|
49
|
-
let me = w(
|
|
50
|
-
selection:
|
|
51
|
-
noRowsText:
|
|
52
|
-
runningText:
|
|
53
|
-
loadingText:
|
|
54
|
-
notReadyText:
|
|
55
|
-
cellRendererSelector:
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
e.data && e.data.axesKey &&
|
|
61
|
-
},
|
|
62
|
-
let r =
|
|
63
|
-
|
|
49
|
+
setup(g, { expose: v, emit: M }) {
|
|
50
|
+
let me = w(g, "modelValue"), N = w(g, "selection"), P = g, { settings: F } = ue(P), I = M, L = new r(), { gridApi: R, gridOptions: z } = ae({
|
|
51
|
+
selection: N,
|
|
52
|
+
noRowsText: P.noRowsText,
|
|
53
|
+
runningText: P.runningText,
|
|
54
|
+
loadingText: P.loadingText,
|
|
55
|
+
notReadyText: P.notReadyText,
|
|
56
|
+
cellRendererSelector: P.cellRendererSelector
|
|
57
|
+
}), B = !1;
|
|
58
|
+
z.value.onGridPreDestroyed = (e) => {
|
|
59
|
+
B || (z.value.initialState = V.value = q(K(e.api.getState()), V.value, e.api, Y())), R.value = null;
|
|
60
|
+
}, z.value.onRowDoubleClicked = (e) => {
|
|
61
|
+
e.data && e.data.axesKey && I("rowDoubleClicked", e.data.axesKey);
|
|
62
|
+
}, z.value.onStateUpdated = (t) => {
|
|
63
|
+
let r = K(t.state);
|
|
64
|
+
if (e(r, {})) return;
|
|
65
|
+
let i = q(r, V.value, t.api, Y());
|
|
66
|
+
z.value.initialState = V.value = i, e(t.sources, ["columnSizing"]) || t.api.autoSizeColumns(t.api.getAllDisplayedColumns().filter((e) => e.getColId() !== n));
|
|
64
67
|
};
|
|
65
|
-
let [he,
|
|
66
|
-
let e = { ...
|
|
68
|
+
let [he, ge] = ie(() => F.value.sourceId, () => z.value.columnDefs ?? null), { gridState: V, sheetsState: H, searchString: U, filtersState: W, defaultFiltersState: G, resetDefaultFilters: _e } = re(me, F, ge, f(() => F.value.sourceId === null ? void 0 : F.value.model?.defaultFilters)), ve = f(() => {
|
|
69
|
+
let e = { ...F.value };
|
|
67
70
|
return e.sourceId === null ? {
|
|
68
71
|
sheets: [],
|
|
69
72
|
cachedState: []
|
|
@@ -72,7 +75,7 @@ var j = /* @__PURE__ */ h({
|
|
|
72
75
|
cachedState: [...H.value]
|
|
73
76
|
};
|
|
74
77
|
});
|
|
75
|
-
|
|
78
|
+
z.value.initialState = V.value;
|
|
76
79
|
function K(e) {
|
|
77
80
|
return {
|
|
78
81
|
columnOrder: e.columnOrder,
|
|
@@ -81,15 +84,15 @@ var j = /* @__PURE__ */ h({
|
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
function q(e, t, n, r) {
|
|
84
|
-
return
|
|
87
|
+
return ye(J(e, t, n, r), t);
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function ye(e, t) {
|
|
87
90
|
return e.sort === void 0 ? t.sort === void 0 ? e : {
|
|
88
91
|
...e,
|
|
89
92
|
sort: { sortModel: [] }
|
|
90
93
|
} : e;
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function J(e, t, n, r) {
|
|
93
96
|
if (e.columnVisibility !== void 0) return e;
|
|
94
97
|
if (t.columnVisibility !== void 0) return {
|
|
95
98
|
...e,
|
|
@@ -101,8 +104,8 @@ var j = /* @__PURE__ */ h({
|
|
|
101
104
|
columnVisibility: { hiddenColIds: i }
|
|
102
105
|
} : e;
|
|
103
106
|
}
|
|
104
|
-
function
|
|
105
|
-
return "model" in
|
|
107
|
+
function Y() {
|
|
108
|
+
return "model" in P.settings ? P.settings.model?.columnsMeta : void 0;
|
|
106
109
|
}
|
|
107
110
|
function be(e, t) {
|
|
108
111
|
let n = e.getAllGridColumns();
|
|
@@ -111,51 +114,43 @@ var j = /* @__PURE__ */ h({
|
|
|
111
114
|
return n !== void 0 && n.type === "column" && o(n, t) === "optional";
|
|
112
115
|
}).map((e) => e.getColId()) : [];
|
|
113
116
|
}
|
|
114
|
-
function Y(e) {
|
|
115
|
-
let t = e.columnVisibility, n = !t || t.hiddenColIds.length === 0 ? void 0 : e.columnVisibility, r = e.sort, i = !r || r.sortModel.length === 0 ? void 0 : r;
|
|
116
|
-
return {
|
|
117
|
-
...e,
|
|
118
|
-
columnVisibility: n,
|
|
119
|
-
sort: i
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
117
|
let X = x(0);
|
|
123
|
-
T(() => [
|
|
118
|
+
T(() => [R.value, V.value], ([t, n]) => {
|
|
124
119
|
if (!t || t.isDestroyed()) return;
|
|
125
|
-
let r = K(t.getState());
|
|
126
|
-
!e(n, {}) && !
|
|
127
|
-
|
|
120
|
+
let r = K(t.getState()), i = new Set((t.getAllGridColumns() ?? []).map((e) => e.getColId()));
|
|
121
|
+
!e(n, {}) && !ne(n, r, i) && (B = !0, z.value.initialState = n, ++X.value, le(() => {
|
|
122
|
+
B = !1;
|
|
128
123
|
}));
|
|
129
124
|
});
|
|
130
|
-
let xe =
|
|
131
|
-
T(() => [
|
|
125
|
+
let xe = f(() => P.cellRendererSelector ?? null);
|
|
126
|
+
T(() => [R.value, xe.value], ([e, t]) => {
|
|
132
127
|
!e || e.isDestroyed() || e.setGridOption("defaultColDef", {
|
|
133
|
-
...
|
|
128
|
+
...z.value.defaultColDef,
|
|
134
129
|
cellRendererSelector: t ?? void 0
|
|
135
130
|
});
|
|
136
131
|
}), v({
|
|
137
132
|
focusRow: async (t) => {
|
|
138
|
-
let n = await
|
|
133
|
+
let n = await L.promise;
|
|
139
134
|
return n.isDestroyed() ? !1 : i(n, (n) => e(n.data?.axesKey, t));
|
|
140
135
|
},
|
|
141
136
|
updateSelection: async ({ axesSpec: n, selectedKeys: r }) => {
|
|
142
|
-
let i = await
|
|
137
|
+
let i = await L.promise;
|
|
143
138
|
if (i.isDestroyed()) return !1;
|
|
144
|
-
let a =
|
|
139
|
+
let a = N.value?.axesSpec;
|
|
145
140
|
if (!a || a.length !== n.length) return !1;
|
|
146
141
|
let o = n.map((e) => {
|
|
147
|
-
let t =
|
|
148
|
-
return a.findIndex((e) =>
|
|
142
|
+
let t = A(e);
|
|
143
|
+
return a.findIndex((e) => j(e, t));
|
|
149
144
|
}), s = new Set(o);
|
|
150
145
|
if (s.has(-1) || s.size !== n.length) return !1;
|
|
151
|
-
let c = r.map((e) =>
|
|
146
|
+
let c = r.map((e) => O(o.map((t) => e[t])));
|
|
152
147
|
if (!e(i.getServerSideSelectionState()?.toggledNodes ?? [], c)) {
|
|
153
148
|
i.setServerSideSelectionState({
|
|
154
149
|
selectAll: !1,
|
|
155
150
|
toggledNodes: c
|
|
156
151
|
});
|
|
157
|
-
let e =
|
|
158
|
-
e.run(() => T(
|
|
152
|
+
let e = ce(), { resolve: n, promise: r } = Promise.withResolvers();
|
|
153
|
+
e.run(() => T(N, n, { once: !0 }));
|
|
159
154
|
try {
|
|
160
155
|
await t(r, 500);
|
|
161
156
|
} catch {
|
|
@@ -167,147 +162,147 @@ var j = /* @__PURE__ */ h({
|
|
|
167
162
|
return !0;
|
|
168
163
|
}
|
|
169
164
|
});
|
|
170
|
-
let Z =
|
|
171
|
-
return T(() => [
|
|
172
|
-
if (!(!t || t.isDestroyed()) && !e(n, Q)) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (t.hideOverlay(), I.reset(), n.sourceId === null) {
|
|
176
|
-
t.updateGridOptions({
|
|
177
|
-
loading: !0,
|
|
178
|
-
loadingOverlayComponentParams: {
|
|
179
|
-
...R.value.loadingOverlayComponentParams,
|
|
180
|
-
variant: n.pending ? "running" : "not-ready"
|
|
181
|
-
},
|
|
182
|
-
columnDefs: void 0,
|
|
183
|
-
serverSideDatasource: void 0
|
|
184
|
-
}), M.value && (M.value && !e(M.value, Z) && (M.value = O()), t.setServerSideSelectionState({
|
|
185
|
-
selectAll: !1,
|
|
186
|
-
toggledNodes: []
|
|
187
|
-
}));
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
if (n.model?.fullTableHandle === void 0 || n.model?.visibleTableHandle === void 0) return;
|
|
191
|
-
n.sourceId !== Q?.sourceId && (t.updateGridOptions({
|
|
165
|
+
let Z = k(), Q = null, $ = x(0);
|
|
166
|
+
return T(() => [R.value, F.value], ([t, n]) => {
|
|
167
|
+
if (!(!t || t.isDestroyed()) && !e(n, Q)) try {
|
|
168
|
+
if (t.hideOverlay(), L.reset(), n.sourceId === null) {
|
|
169
|
+
++$.value, t.updateGridOptions({
|
|
192
170
|
loading: !0,
|
|
193
171
|
loadingOverlayComponentParams: {
|
|
194
|
-
...
|
|
195
|
-
variant: "
|
|
196
|
-
}
|
|
197
|
-
|
|
172
|
+
...z.value.loadingOverlayComponentParams,
|
|
173
|
+
variant: n.pending ? "running" : "not-ready"
|
|
174
|
+
},
|
|
175
|
+
columnDefs: void 0,
|
|
176
|
+
serverSideDatasource: void 0
|
|
177
|
+
}), N.value && (N.value && !e(N.value, Z) && (N.value = k()), t.setServerSideSelectionState({
|
|
198
178
|
selectAll: !1,
|
|
199
179
|
toggledNodes: []
|
|
200
|
-
}))
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
180
|
+
}));
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (n.model?.fullTableHandle === void 0 || n.model?.visibleTableHandle === void 0) {
|
|
184
|
+
n.sourceId !== Q?.sourceId && ++$.value;
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
++$.value, n.sourceId !== Q?.sourceId && (t.updateGridOptions({
|
|
188
|
+
loading: !0,
|
|
189
|
+
loadingOverlayComponentParams: {
|
|
190
|
+
...z.value.loadingOverlayComponentParams,
|
|
191
|
+
variant: "loading"
|
|
210
192
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
193
|
+
}), N.value && Q?.sourceId && (N.value && !e(N.value, Z) && (N.value = k()), t.setServerSideSelectionState({
|
|
194
|
+
selectAll: !1,
|
|
195
|
+
toggledNodes: []
|
|
196
|
+
})));
|
|
197
|
+
let r = n.model?.sourceId && n.model.sourceId !== n.sourceId;
|
|
198
|
+
if (!n.model || r) {
|
|
199
|
+
let e = t.getServerSideGroupLevelState(), n = !r && e.length > 0 ? e[0].rowCount : 1;
|
|
200
|
+
return t.updateGridOptions({ serverSideDatasource: { getRows: (e) => {
|
|
201
|
+
e.success({
|
|
202
|
+
rowData: [],
|
|
203
|
+
rowCount: n
|
|
204
|
+
});
|
|
205
|
+
} } });
|
|
206
|
+
}
|
|
207
|
+
let i = $.value;
|
|
208
|
+
a({
|
|
209
|
+
generation: $,
|
|
210
|
+
pfDriver: de().pFrameDriver,
|
|
211
|
+
fullTableHandle: n.model?.fullTableHandle,
|
|
212
|
+
visibleTableHandle: n.model?.visibleTableHandle,
|
|
213
|
+
columnsMeta: n.model?.columnsMeta,
|
|
214
|
+
sheets: n.sheets ?? [],
|
|
215
|
+
dataRenderedTracker: L,
|
|
216
|
+
hiddenColIds: V.value.columnVisibility?.hiddenColIds,
|
|
217
|
+
cellButtonAxisParams: {
|
|
218
|
+
showCellButtonForAxisId: P.showCellButtonForAxisId,
|
|
219
|
+
cellButtonInvokeRowsOnDoubleClick: P.cellButtonInvokeRowsOnDoubleClick,
|
|
220
|
+
trigger: (e) => I("cellButtonClicked", e)
|
|
221
|
+
}
|
|
222
|
+
}).then((n) => {
|
|
223
|
+
if (t.isDestroyed() || i !== $.value) return;
|
|
224
|
+
let { axesSpec: r, ...a } = n;
|
|
225
|
+
if (t.updateGridOptions({ ...a }), N.value) {
|
|
226
|
+
let { axesSpec: n, selectedKeys: i } = N.value;
|
|
227
|
+
if (!e(n, r)) {
|
|
228
|
+
if (!n || r.length !== n.length) {
|
|
229
|
+
let n = {
|
|
230
|
+
axesSpec: r,
|
|
231
|
+
selectedKeys: []
|
|
232
|
+
};
|
|
233
|
+
return e(N.value, n) || (N.value = n), t.setServerSideSelectionState({
|
|
234
|
+
selectAll: !1,
|
|
235
|
+
toggledNodes: []
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
let a = n.map(A).map((e) => r.findIndex((t) => j(t, e))), o = new Set(a);
|
|
239
|
+
if (o.has(-1) || o.size !== r.length) {
|
|
240
|
+
let n = {
|
|
254
241
|
axesSpec: r,
|
|
255
|
-
selectedKeys:
|
|
242
|
+
selectedKeys: []
|
|
256
243
|
};
|
|
257
|
-
return e(
|
|
244
|
+
return e(N.value, n) || (N.value = n), t.setServerSideSelectionState({
|
|
258
245
|
selectAll: !1,
|
|
259
|
-
toggledNodes:
|
|
246
|
+
toggledNodes: []
|
|
260
247
|
});
|
|
261
248
|
}
|
|
249
|
+
let s = i.map((e) => a.map((t) => e[t])), c = {
|
|
250
|
+
axesSpec: r,
|
|
251
|
+
selectedKeys: s
|
|
252
|
+
};
|
|
253
|
+
return e(N.value, c) || (N.value = c), t.setServerSideSelectionState({
|
|
254
|
+
selectAll: !1,
|
|
255
|
+
toggledNodes: s.map((e) => O(e))
|
|
256
|
+
});
|
|
262
257
|
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
258
|
+
}
|
|
259
|
+
}).catch((e) => {
|
|
260
|
+
t.isDestroyed() || i !== $.value || fe(e) || console.trace(e);
|
|
261
|
+
}).finally(() => {
|
|
262
|
+
t.isDestroyed() || i !== $.value || t.updateGridOptions({ loading: !1 });
|
|
263
|
+
}), L.promise.then(() => I("newDataRendered"));
|
|
264
|
+
} catch (e) {
|
|
265
|
+
console.trace(e);
|
|
266
|
+
} finally {
|
|
267
|
+
Q = n;
|
|
273
268
|
}
|
|
274
269
|
}), T(() => ({
|
|
275
|
-
gridApi:
|
|
276
|
-
loadingText:
|
|
277
|
-
runningText:
|
|
278
|
-
notReadyText:
|
|
279
|
-
noRowsText:
|
|
270
|
+
gridApi: R.value,
|
|
271
|
+
loadingText: P.loadingText,
|
|
272
|
+
runningText: P.runningText,
|
|
273
|
+
notReadyText: P.notReadyText,
|
|
274
|
+
noRowsText: P.noRowsText
|
|
280
275
|
}), ({ gridApi: e, loadingText: t, runningText: n, notReadyText: r, noRowsText: i }) => {
|
|
281
276
|
!e || e.isDestroyed() || e.updateGridOptions({
|
|
282
277
|
loadingOverlayComponentParams: {
|
|
283
|
-
...
|
|
278
|
+
...z.value.loadingOverlayComponentParams,
|
|
284
279
|
loadingText: t,
|
|
285
280
|
runningText: n,
|
|
286
281
|
notReadyText: r
|
|
287
282
|
},
|
|
288
283
|
noRowsOverlayComponentParams: {
|
|
289
|
-
...
|
|
284
|
+
...z.value.noRowsOverlayComponentParams,
|
|
290
285
|
text: i
|
|
291
286
|
}
|
|
292
287
|
});
|
|
293
|
-
}),
|
|
294
|
-
!
|
|
295
|
-
statusPanel:
|
|
288
|
+
}), E(() => {
|
|
289
|
+
!R.value || R.value?.isDestroyed() || R.value.updateGridOptions({ statusBar: z.value.loading ? void 0 : { statusPanels: [{
|
|
290
|
+
statusPanel: te,
|
|
296
291
|
align: "left"
|
|
297
292
|
}] } });
|
|
298
293
|
}), (e, t) => (b(), oe("div", { class: y(e.$style.container) }, [
|
|
299
|
-
C(
|
|
294
|
+
C(R) && !g.disableColumnsPanel ? (b(), p(C(c), {
|
|
300
295
|
key: 0,
|
|
301
|
-
api: C(
|
|
302
|
-
}, null, 8, ["api"])) :
|
|
303
|
-
|
|
296
|
+
api: C(R)
|
|
297
|
+
}, null, 8, ["api"])) : m("", !0),
|
|
298
|
+
g.disableFiltersPanel ? m("", !0) : (b(), p(l, {
|
|
304
299
|
key: 1,
|
|
305
300
|
filters: C(W),
|
|
306
301
|
"default-filters": C(G),
|
|
307
|
-
"pframe-handle": "model" in C(
|
|
302
|
+
"pframe-handle": "model" in C(F) ? C(F)?.model?.fullPframeHandle : void 0,
|
|
308
303
|
columns: C(he),
|
|
309
304
|
onUpdateFilters: t[0] ||= (e) => W.value = e,
|
|
310
|
-
onResetDefaultFilters: C(
|
|
305
|
+
onResetDefaultFilters: C(_e),
|
|
311
306
|
onUpdateDefaultFilters: t[1] ||= (e) => G.value = e,
|
|
312
307
|
modelValue: C(W),
|
|
313
308
|
"onUpdate:modelValue": t[2] ||= (e) => _(W) ? W.value = e : null
|
|
@@ -319,38 +314,38 @@ var j = /* @__PURE__ */ h({
|
|
|
319
314
|
"onResetDefaultFilters",
|
|
320
315
|
"modelValue"
|
|
321
316
|
])),
|
|
322
|
-
C(
|
|
317
|
+
C(R) && g.showExportButton ? (b(), p(s, {
|
|
323
318
|
key: 2,
|
|
324
|
-
api: C(
|
|
325
|
-
"table-handle": "model" in C(
|
|
326
|
-
"columns-meta":
|
|
319
|
+
api: C(R),
|
|
320
|
+
"table-handle": "model" in C(F) ? C(F)?.model?.visibleTableHandle : void 0,
|
|
321
|
+
"columns-meta": Y()
|
|
327
322
|
}, null, 8, [
|
|
328
323
|
"api",
|
|
329
324
|
"table-handle",
|
|
330
325
|
"columns-meta"
|
|
331
|
-
])) :
|
|
332
|
-
|
|
326
|
+
])) : m("", !0),
|
|
327
|
+
h(u, {
|
|
333
328
|
modelValue: C(H),
|
|
334
329
|
"onUpdate:modelValue": t[3] ||= (e) => _(H) ? H.value = e : null,
|
|
335
|
-
settings:
|
|
330
|
+
settings: ve.value
|
|
336
331
|
}, se({ _: 2 }, [e.$slots["before-sheets"] ? {
|
|
337
332
|
name: "before",
|
|
338
|
-
fn:
|
|
333
|
+
fn: D(() => [S(e.$slots, "before-sheets")]),
|
|
339
334
|
key: "0"
|
|
340
335
|
} : void 0, e.$slots["after-sheets"] ? {
|
|
341
336
|
name: "after",
|
|
342
|
-
fn:
|
|
337
|
+
fn: D(() => [S(e.$slots, "after-sheets")]),
|
|
343
338
|
key: "1"
|
|
344
339
|
} : void 0]), 1032, ["modelValue", "settings"]),
|
|
345
|
-
|
|
340
|
+
h(C(ee), {
|
|
346
341
|
modelValue: C(U),
|
|
347
342
|
"onUpdate:modelValue": t[4] ||= (e) => _(U) ? U.value = e : null
|
|
348
343
|
}, null, 8, ["modelValue"]),
|
|
349
|
-
(b(),
|
|
344
|
+
(b(), p(C(pe), {
|
|
350
345
|
key: X.value,
|
|
351
|
-
theme: C(
|
|
346
|
+
theme: C(d),
|
|
352
347
|
class: y(e.$style.grid),
|
|
353
|
-
"grid-options": C(
|
|
348
|
+
"grid-options": C(z)
|
|
354
349
|
}, null, 8, [
|
|
355
350
|
"theme",
|
|
356
351
|
"class",
|
|
@@ -360,6 +355,6 @@ var j = /* @__PURE__ */ h({
|
|
|
360
355
|
}
|
|
361
356
|
});
|
|
362
357
|
//#endregion
|
|
363
|
-
export {
|
|
358
|
+
export { M as default };
|
|
364
359
|
|
|
365
360
|
//# sourceMappingURL=PlAgDataTableV2.vue2.js.map
|