@platforma-sdk/ui-vue 1.54.12 → 1.54.13
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 +23 -19
- 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 +9 -0
- package/dist/AgGridVue/useAgGridOptions.js +10 -9
- package/dist/AgGridVue/useAgGridOptions.js.map +1 -1
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts +32 -40
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts.map +1 -1
- package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js.map +1 -1
- package/dist/components/PlAdvancedFilter/index.d.ts +2 -2
- package/dist/components/PlAdvancedFilter/index.d.ts.map +1 -1
- package/dist/components/PlAdvancedFilter/index.js.map +1 -1
- package/dist/components/PlAdvancedFilter/types.d.ts +9 -8
- package/dist/components/PlAdvancedFilter/types.d.ts.map +1 -1
- package/dist/components/PlAdvancedFilter/utils.js +38 -27
- package/dist/components/PlAdvancedFilter/utils.js.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +161 -244
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
- package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +9 -8
- package/dist/components/PlAgDataTable/PlAgRowCount.vue.js.map +1 -1
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.d.ts +134 -0
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.d.ts.map +1 -0
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js +33 -0
- package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js.map +1 -0
- package/dist/components/PlAgDataTable/compositions/useGrid.d.ts +15 -0
- package/dist/components/PlAgDataTable/compositions/useGrid.d.ts.map +1 -0
- package/dist/components/PlAgDataTable/compositions/useGrid.js +113 -0
- package/dist/components/PlAgDataTable/compositions/useGrid.js.map +1 -0
- package/dist/components/PlAgDataTable/sources/row-number.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/row-number.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts +1 -2
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +47 -62
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.d.ts +4 -4
- package/dist/components/PlAgDataTable/sources/table-state-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +105 -95
- package/dist/components/PlAgDataTable/sources/table-state-v2.js.map +1 -1
- package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +11 -10
- package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js.map +1 -1
- package/dist/components/PlAgRowNumHeader.vue.js +10 -9
- package/dist/components/PlAgRowNumHeader.vue.js.map +1 -1
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts +10 -0
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts.map +1 -0
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js +30 -0
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js.map +1 -0
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js +5 -0
- package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js.map +1 -0
- package/dist/components/PlTableFastSearch/index.d.ts +2 -0
- package/dist/components/PlTableFastSearch/index.d.ts.map +1 -0
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts +4 -5
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts.map +1 -1
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/util/helpers/dist/functions.js +13 -4
- package/dist/lib/util/helpers/dist/functions.js.map +1 -1
- package/dist/lib/util/helpers/dist/objects.js.map +1 -1
- package/package.json +6 -6
- package/src/components/PlAdvancedFilter/PlAdvancedFilter.vue +2 -2
- package/src/components/PlAdvancedFilter/index.ts +7 -2
- package/src/components/PlAdvancedFilter/types.ts +19 -5
- package/src/components/PlAgDataTable/PlAgDataTableV2.vue +52 -172
- package/src/components/PlAgDataTable/compositions/useFilterableColumns.ts +62 -0
- package/src/components/PlAgDataTable/compositions/useGrid.ts +143 -0
- package/src/components/PlAgDataTable/sources/row-number.ts +0 -1
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +1 -15
- package/src/components/PlAgDataTable/sources/table-state-v2.ts +137 -94
- package/src/components/PlTableFastSearch/PlTableFastSearch.vue +27 -0
- package/src/components/PlTableFastSearch/index.ts +1 -0
- package/src/components/PlTableFilters/PlTableFiltersV2.vue +8 -3
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as re, mergeModels as q, useModel as J, toRefs as ie, computed as H, ref as L, watch as R, effectScope as ue, watchEffect as de, createElementBlock as ce, openBlock as T, normalizeClass as j, createBlock as P, createCommentVNode as F, createVNode as Q, unref as r, isRef as K, createSlots as me, withCtx as W, renderSlot as X } from "vue";
|
|
2
2
|
import { isJsonEqual as d } from "../../lib/util/helpers/dist/objects.js";
|
|
3
|
-
import { promiseTimeout as
|
|
4
|
-
import {
|
|
5
|
-
import { AgGridVue as
|
|
6
|
-
import { AgGridTheme as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import be from "./
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { PlAgDataTableRowNumberColId as te, autoSizeRowNumberColumn as Te } from "./sources/row-number.js";
|
|
17
|
-
import { calculateGridOptions as ke } from "./sources/table-source-v2.js";
|
|
3
|
+
import { promiseTimeout as fe } from "../../lib/util/helpers/dist/functions.js";
|
|
4
|
+
import { getAxisId as Y, matchAxisId as Z, canonicalizeJson as _, createPlSelectionModel as $, getRawPlatformaInstance as ve, isAbortError as pe } from "@platforma-sdk/model";
|
|
5
|
+
import { AgGridVue as Se } from "ag-grid-vue3";
|
|
6
|
+
import { AgGridTheme as ye } from "../../aggrid.js";
|
|
7
|
+
import ge from "../PlAgCsvExporter/PlAgCsvExporter.vue.js";
|
|
8
|
+
import Ce from "../PlAgGridColumnManager/PlAgGridColumnManager.vue.js";
|
|
9
|
+
import he from "../PlTableFilters/PlTableFiltersV2.vue.js";
|
|
10
|
+
import we from "../PlTableFastSearch/PlTableFastSearch.vue.js";
|
|
11
|
+
import be from "./PlAgDataTableSheets.vue.js";
|
|
12
|
+
import xe from "./PlAgRowCount.vue.js";
|
|
13
|
+
import { DeferredCircular as De, ensureNodeVisible as Re } from "./sources/focus-row.js";
|
|
14
|
+
import { PlAgDataTableRowNumberColId as Te } from "./sources/row-number.js";
|
|
15
|
+
import { calculateGridOptions as Ie } from "./sources/table-source-v2.js";
|
|
18
16
|
import { useTableState as Ve } from "./sources/table-state-v2.js";
|
|
19
|
-
import {
|
|
20
|
-
|
|
17
|
+
import { useFilterableColumns as Pe } from "./compositions/useFilterableColumns.js";
|
|
18
|
+
import { useGrid as Oe } from "./compositions/useGrid.js";
|
|
19
|
+
const We = /* @__PURE__ */ re({
|
|
21
20
|
__name: "PlAgDataTableV2",
|
|
22
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ q({
|
|
23
22
|
settings: {},
|
|
24
23
|
disableColumnsPanel: { type: Boolean },
|
|
25
24
|
disableFiltersPanel: { type: Boolean },
|
|
@@ -39,114 +38,46 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
39
38
|
selection: {},
|
|
40
39
|
selectionModifiers: {}
|
|
41
40
|
}),
|
|
42
|
-
emits: /* @__PURE__ */
|
|
43
|
-
setup(g, { expose:
|
|
44
|
-
const
|
|
41
|
+
emits: /* @__PURE__ */ q(["rowDoubleClicked", "cellButtonClicked", "newDataRendered"], ["update:modelValue", "update:selection"]),
|
|
42
|
+
setup(g, { expose: ee, emit: te }) {
|
|
43
|
+
const le = J(g, "modelValue"), o = J(g, "selection"), s = g, { settings: I } = ie(s), O = te, D = new De(), { gridApi: i, gridOptions: a } = Oe({
|
|
44
|
+
selection: o.value,
|
|
45
|
+
noRowsText: s.noRowsText,
|
|
46
|
+
runningText: s.runningText,
|
|
47
|
+
loadingText: s.loadingText,
|
|
48
|
+
notReadyText: s.notReadyText,
|
|
49
|
+
cellRendererSelector: s.cellRendererSelector
|
|
50
|
+
});
|
|
51
|
+
a.value.onGridPreDestroyed = (e) => {
|
|
52
|
+
a.value.initialState = C.value = G(e.api.getState()), i.value = null;
|
|
53
|
+
}, a.value.onRowDoubleClicked = (e) => {
|
|
54
|
+
e.data && e.data.axesKey && O("rowDoubleClicked", e.data.axesKey);
|
|
55
|
+
}, a.value.onStateUpdated = (e) => {
|
|
56
|
+
var n;
|
|
57
|
+
let t = G(e.state);
|
|
58
|
+
const l = ((n = C.value.columnVisibility) == null ? void 0 : n.hiddenColIds) !== void 0;
|
|
59
|
+
t.columnVisibility === void 0 && l && (t = { ...t, columnVisibility: { hiddenColIds: [] } }), a.value.initialState = C.value = t, d(e.sources, ["columnSizing"]) || e.api.autoSizeColumns(
|
|
60
|
+
e.api.getAllDisplayedColumns().filter((c) => c.getColId() !== Te)
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
const [oe, ae] = Pe(
|
|
64
|
+
() => I.value.sourceId,
|
|
65
|
+
() => a.value.columnDefs ?? null
|
|
66
|
+
), { gridState: C, sheetsState: V, filtersState: k, searchString: B } = Ve(
|
|
67
|
+
le,
|
|
68
|
+
I,
|
|
69
|
+
ae
|
|
70
|
+
), ne = H(() => {
|
|
45
71
|
const e = { ...I.value };
|
|
46
72
|
return e.sourceId !== null ? {
|
|
47
73
|
sheets: e.sheets ?? [],
|
|
48
|
-
cachedState: [...
|
|
74
|
+
cachedState: [...V.value]
|
|
49
75
|
} : {
|
|
50
76
|
sheets: [],
|
|
51
77
|
cachedState: []
|
|
52
78
|
};
|
|
53
|
-
}), u = H(null), x = new Ie(), r = H({
|
|
54
|
-
animateRows: !1,
|
|
55
|
-
suppressColumnMoveAnimation: !0,
|
|
56
|
-
cellSelection: !o.value,
|
|
57
|
-
initialState: C.value,
|
|
58
|
-
autoSizeStrategy: { type: "fitCellContents" },
|
|
59
|
-
rowSelection: o.value ? {
|
|
60
|
-
mode: "multiRow",
|
|
61
|
-
selectAll: "all",
|
|
62
|
-
groupSelects: "self",
|
|
63
|
-
checkboxes: !1,
|
|
64
|
-
headerCheckbox: !1,
|
|
65
|
-
enableClickSelection: !1
|
|
66
|
-
} : void 0,
|
|
67
|
-
onSelectionChanged: (e) => {
|
|
68
|
-
var t;
|
|
69
|
-
if (o.value) {
|
|
70
|
-
const l = e.api.getServerSideSelectionState(), a = ((t = l == null ? void 0 : l.toggledNodes) == null ? void 0 : t.map((n) => Y(n))) ?? [];
|
|
71
|
-
d(o.value.selectedKeys, a) || (o.value = { ...o.value, selectedKeys: a });
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
onRowDoubleClicked: (e) => {
|
|
75
|
-
e.data && e.data.axesKey && k("rowDoubleClicked", e.data.axesKey);
|
|
76
|
-
},
|
|
77
|
-
defaultColDef: {
|
|
78
|
-
suppressHeaderMenuButton: !0,
|
|
79
|
-
sortingOrder: ["desc", "asc", null],
|
|
80
|
-
cellRendererSelector: i.cellRendererSelector
|
|
81
|
-
},
|
|
82
|
-
maintainColumnOrder: !0,
|
|
83
|
-
localeText: {
|
|
84
|
-
loadingError: "..."
|
|
85
|
-
},
|
|
86
|
-
rowModelType: "serverSide",
|
|
87
|
-
// cacheBlockSize should be the same as PlMultiSequenceAlignment limit
|
|
88
|
-
// so that selectAll will add all rows to selection
|
|
89
|
-
cacheBlockSize: 1e3,
|
|
90
|
-
maxBlocksInCache: 100,
|
|
91
|
-
blockLoadDebounceMillis: 500,
|
|
92
|
-
serverSideSortAllLevels: !0,
|
|
93
|
-
suppressServerSideFullWidthLoadingRow: !0,
|
|
94
|
-
getRowId: (e) => e.data.id,
|
|
95
|
-
loading: !0,
|
|
96
|
-
loadingOverlayComponentParams: {
|
|
97
|
-
variant: "not-ready",
|
|
98
|
-
loadingText: i.loadingText,
|
|
99
|
-
runningText: i.runningText,
|
|
100
|
-
notReadyText: i.notReadyText
|
|
101
|
-
},
|
|
102
|
-
loadingOverlayComponent: be,
|
|
103
|
-
noRowsOverlayComponent: De,
|
|
104
|
-
noRowsOverlayComponentParams: {
|
|
105
|
-
text: i.noRowsText
|
|
106
|
-
},
|
|
107
|
-
defaultCsvExportParams: {
|
|
108
|
-
allColumns: !0,
|
|
109
|
-
suppressQuotes: !0,
|
|
110
|
-
columnSeparator: " ",
|
|
111
|
-
fileName: "table.tsv"
|
|
112
|
-
},
|
|
113
|
-
onGridReady: (e) => {
|
|
114
|
-
const t = e.api;
|
|
115
|
-
Te(t);
|
|
116
|
-
const l = (n, c) => {
|
|
117
|
-
const s = { ...r.value };
|
|
118
|
-
s[n] = c, r.value = s, t.setGridOption(n, c);
|
|
119
|
-
}, a = (n) => {
|
|
120
|
-
r.value = {
|
|
121
|
-
...r.value,
|
|
122
|
-
...n
|
|
123
|
-
}, t.updateGridOptions(n);
|
|
124
|
-
};
|
|
125
|
-
u.value = new Proxy(t, {
|
|
126
|
-
get(n, c, s) {
|
|
127
|
-
switch (c) {
|
|
128
|
-
case "setGridOption":
|
|
129
|
-
return l;
|
|
130
|
-
case "updateGridOptions":
|
|
131
|
-
return a;
|
|
132
|
-
default:
|
|
133
|
-
return Reflect.get(n, c, s);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
onStateUpdated: (e) => {
|
|
139
|
-
var a;
|
|
140
|
-
let t = G(e.state);
|
|
141
|
-
const l = ((a = C.value.columnVisibility) == null ? void 0 : a.hiddenColIds) !== void 0;
|
|
142
|
-
t.columnVisibility === void 0 && l && (t = { ...t, columnVisibility: { hiddenColIds: [] } }), r.value.initialState = C.value = t, d(e.sources, ["columnSizing"]) || e.api.autoSizeColumns(
|
|
143
|
-
e.api.getAllDisplayedColumns().filter((n) => n.getColId() !== te)
|
|
144
|
-
);
|
|
145
|
-
},
|
|
146
|
-
onGridPreDestroyed: (e) => {
|
|
147
|
-
r.value.initialState = C.value = G(e.api.getState()), u.value = null;
|
|
148
|
-
}
|
|
149
79
|
});
|
|
80
|
+
a.value.initialState = C.value;
|
|
150
81
|
function G(e) {
|
|
151
82
|
return {
|
|
152
83
|
columnOrder: e.columnOrder,
|
|
@@ -154,59 +85,59 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
154
85
|
columnVisibility: e.columnVisibility
|
|
155
86
|
};
|
|
156
87
|
}
|
|
157
|
-
function
|
|
88
|
+
function z(e) {
|
|
158
89
|
const t = e.columnVisibility, l = !t || t.hiddenColIds.length === 0 ? void 0 : e.columnVisibility;
|
|
159
90
|
return { ...e, columnVisibility: l };
|
|
160
91
|
}
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
() => [
|
|
92
|
+
const E = L(0);
|
|
93
|
+
R(
|
|
94
|
+
() => [i.value, C.value],
|
|
164
95
|
([e, t]) => {
|
|
165
96
|
if (!e || e.isDestroyed()) return;
|
|
166
97
|
const l = G(e.getState());
|
|
167
|
-
!d(t, {}) && !d(
|
|
98
|
+
!d(t, {}) && !d(z(t), z(l)) && (a.value.initialState = t, ++E.value);
|
|
168
99
|
}
|
|
169
100
|
);
|
|
170
|
-
const se =
|
|
171
|
-
|
|
172
|
-
() => [
|
|
101
|
+
const se = H(() => s.cellRendererSelector ?? null);
|
|
102
|
+
R(
|
|
103
|
+
() => [i.value, se.value],
|
|
173
104
|
([e, t]) => {
|
|
174
105
|
!e || e.isDestroyed() || e.setGridOption("defaultColDef", {
|
|
175
|
-
...
|
|
106
|
+
...a.value.defaultColDef,
|
|
176
107
|
cellRendererSelector: t ?? void 0
|
|
177
108
|
});
|
|
178
109
|
}
|
|
179
|
-
),
|
|
110
|
+
), ee({
|
|
180
111
|
focusRow: async (e) => {
|
|
181
|
-
const t = await
|
|
182
|
-
return t.isDestroyed() ? !1 :
|
|
183
|
-
var
|
|
184
|
-
return d((
|
|
112
|
+
const t = await D.promise;
|
|
113
|
+
return t.isDestroyed() ? !1 : Re(t, (l) => {
|
|
114
|
+
var n;
|
|
115
|
+
return d((n = l.data) == null ? void 0 : n.axesKey, e);
|
|
185
116
|
});
|
|
186
117
|
},
|
|
187
118
|
updateSelection: async ({ axesSpec: e, selectedKeys: t }) => {
|
|
188
|
-
var
|
|
189
|
-
const l = await
|
|
119
|
+
var b, y;
|
|
120
|
+
const l = await D.promise;
|
|
190
121
|
if (l.isDestroyed()) return !1;
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
193
|
-
const
|
|
194
|
-
const S =
|
|
195
|
-
return
|
|
196
|
-
}),
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
(p) =>
|
|
122
|
+
const n = (b = o.value) == null ? void 0 : b.axesSpec;
|
|
123
|
+
if (!n || n.length !== e.length) return !1;
|
|
124
|
+
const c = e.map((p) => {
|
|
125
|
+
const S = Y(p);
|
|
126
|
+
return n.findIndex((x) => Z(x, S));
|
|
127
|
+
}), w = new Set(c);
|
|
128
|
+
if (w.has(-1) || w.size !== e.length) return !1;
|
|
129
|
+
const u = t.map(
|
|
130
|
+
(p) => _(c.map((S) => p[S]))
|
|
200
131
|
), m = ((y = l.getServerSideSelectionState()) == null ? void 0 : y.toggledNodes) ?? [];
|
|
201
|
-
if (!d(m,
|
|
132
|
+
if (!d(m, u)) {
|
|
202
133
|
l.setServerSideSelectionState({
|
|
203
134
|
selectAll: !1,
|
|
204
|
-
toggledNodes:
|
|
135
|
+
toggledNodes: u
|
|
205
136
|
});
|
|
206
|
-
const p =
|
|
207
|
-
p.run(() =>
|
|
137
|
+
const p = ue(), { resolve: S, promise: x } = Promise.withResolvers();
|
|
138
|
+
p.run(() => R(o, S, { once: !0 }));
|
|
208
139
|
try {
|
|
209
|
-
await
|
|
140
|
+
await fe(x, 500);
|
|
210
141
|
} catch {
|
|
211
142
|
return !1;
|
|
212
143
|
} finally {
|
|
@@ -216,44 +147,26 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
216
147
|
return !0;
|
|
217
148
|
}
|
|
218
149
|
});
|
|
219
|
-
|
|
220
|
-
const t = (l) => !("children" in l);
|
|
221
|
-
return e ? e.filter(t).filter((l) => l.colId && l.colId !== te) : [];
|
|
222
|
-
}
|
|
223
|
-
Be(
|
|
224
|
-
() => r.value.columnDefs,
|
|
225
|
-
(e) => {
|
|
226
|
-
if (I.value.sourceId === null)
|
|
227
|
-
V.value = [];
|
|
228
|
-
else {
|
|
229
|
-
const l = re(e);
|
|
230
|
-
V.value = l.map(
|
|
231
|
-
(a) => Y(a.colId).labeled
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{ immediate: !0 }
|
|
236
|
-
);
|
|
237
|
-
const E = F();
|
|
150
|
+
const M = $();
|
|
238
151
|
let v = null;
|
|
239
|
-
const h =
|
|
240
|
-
return
|
|
241
|
-
() => [
|
|
152
|
+
const h = L(0);
|
|
153
|
+
return R(
|
|
154
|
+
() => [i.value, I.value],
|
|
242
155
|
([e, t]) => {
|
|
243
|
-
var l,
|
|
156
|
+
var l, n;
|
|
244
157
|
if (!(!e || e.isDestroyed()) && !d(t, v)) {
|
|
245
158
|
++h.value;
|
|
246
159
|
try {
|
|
247
|
-
if (e.hideOverlay(),
|
|
160
|
+
if (e.hideOverlay(), D.reset(), t.sourceId === null) {
|
|
248
161
|
e.updateGridOptions({
|
|
249
162
|
loading: !0,
|
|
250
163
|
loadingOverlayComponentParams: {
|
|
251
|
-
...
|
|
164
|
+
...a.value.loadingOverlayComponentParams,
|
|
252
165
|
variant: t.pending ? "running" : "not-ready"
|
|
253
166
|
},
|
|
254
167
|
columnDefs: void 0,
|
|
255
168
|
serverSideDatasource: void 0
|
|
256
|
-
}), o.value && (o.value && !d(o.value,
|
|
169
|
+
}), o.value && (o.value && !d(o.value, M) && (o.value = $()), e.setServerSideSelectionState({
|
|
257
170
|
selectAll: !1,
|
|
258
171
|
toggledNodes: []
|
|
259
172
|
}));
|
|
@@ -262,42 +175,42 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
262
175
|
t.sourceId !== (v == null ? void 0 : v.sourceId) && (e.updateGridOptions({
|
|
263
176
|
loading: !0,
|
|
264
177
|
loadingOverlayComponentParams: {
|
|
265
|
-
...
|
|
178
|
+
...a.value.loadingOverlayComponentParams,
|
|
266
179
|
variant: "loading"
|
|
267
180
|
}
|
|
268
|
-
}), o.value && (v != null && v.sourceId) && (o.value && !d(o.value,
|
|
181
|
+
}), o.value && (v != null && v.sourceId) && (o.value && !d(o.value, M) && (o.value = $()), e.setServerSideSelectionState({
|
|
269
182
|
selectAll: !1,
|
|
270
183
|
toggledNodes: []
|
|
271
184
|
})));
|
|
272
|
-
const
|
|
273
|
-
if (!t.model ||
|
|
274
|
-
const
|
|
185
|
+
const c = ((l = t.model) == null ? void 0 : l.sourceId) && t.model.sourceId !== t.sourceId;
|
|
186
|
+
if (!t.model || c) {
|
|
187
|
+
const u = e.getServerSideGroupLevelState(), m = !c && u.length > 0 ? u[0].rowCount : 1;
|
|
275
188
|
return e.updateGridOptions({
|
|
276
189
|
serverSideDatasource: {
|
|
277
|
-
getRows: (
|
|
278
|
-
|
|
190
|
+
getRows: (b) => {
|
|
191
|
+
b.success({ rowData: [], rowCount: m });
|
|
279
192
|
}
|
|
280
193
|
}
|
|
281
194
|
});
|
|
282
195
|
}
|
|
283
|
-
const
|
|
284
|
-
|
|
196
|
+
const w = h.value;
|
|
197
|
+
Ie({
|
|
285
198
|
generation: h,
|
|
286
|
-
pfDriver:
|
|
199
|
+
pfDriver: ve().pFrameDriver,
|
|
287
200
|
model: t.model,
|
|
288
201
|
sheets: t.sheets ?? [],
|
|
289
|
-
dataRenderedTracker:
|
|
290
|
-
hiddenColIds: (
|
|
202
|
+
dataRenderedTracker: D,
|
|
203
|
+
hiddenColIds: (n = C.value.columnVisibility) == null ? void 0 : n.hiddenColIds,
|
|
291
204
|
cellButtonAxisParams: {
|
|
292
|
-
showCellButtonForAxisId:
|
|
293
|
-
cellButtonInvokeRowsOnDoubleClick:
|
|
294
|
-
trigger: (
|
|
205
|
+
showCellButtonForAxisId: s.showCellButtonForAxisId,
|
|
206
|
+
cellButtonInvokeRowsOnDoubleClick: s.cellButtonInvokeRowsOnDoubleClick,
|
|
207
|
+
trigger: (u) => O("cellButtonClicked", u)
|
|
295
208
|
}
|
|
296
|
-
}).then((
|
|
297
|
-
if (e.isDestroyed() ||
|
|
298
|
-
const { axesSpec: m, ...
|
|
209
|
+
}).then((u) => {
|
|
210
|
+
if (e.isDestroyed() || w !== h.value) return;
|
|
211
|
+
const { axesSpec: m, ...b } = u;
|
|
299
212
|
if (e.updateGridOptions({
|
|
300
|
-
...
|
|
213
|
+
...b
|
|
301
214
|
}), o.value) {
|
|
302
215
|
const { axesSpec: y, selectedKeys: p } = o.value;
|
|
303
216
|
if (!d(y, m)) {
|
|
@@ -308,8 +221,8 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
308
221
|
toggledNodes: []
|
|
309
222
|
});
|
|
310
223
|
}
|
|
311
|
-
const S = y.map(
|
|
312
|
-
if (
|
|
224
|
+
const S = y.map(Y).map((f) => m.findIndex((N) => Z(N, f))), x = new Set(S);
|
|
225
|
+
if (x.has(-1) || x.size !== m.length) {
|
|
313
226
|
const f = { axesSpec: m, selectedKeys: [] };
|
|
314
227
|
return d(o.value, f) || (o.value = f), e.setServerSideSelectionState({
|
|
315
228
|
selectAll: !1,
|
|
@@ -318,103 +231,107 @@ const Ze = /* @__PURE__ */ ie({
|
|
|
318
231
|
}
|
|
319
232
|
const A = p.map(
|
|
320
233
|
(f) => S.map((N) => f[N])
|
|
321
|
-
),
|
|
322
|
-
return d(o.value,
|
|
234
|
+
), U = { axesSpec: m, selectedKeys: A };
|
|
235
|
+
return d(o.value, U) || (o.value = U), e.setServerSideSelectionState({
|
|
323
236
|
selectAll: !1,
|
|
324
|
-
toggledNodes: A.map((f) =>
|
|
237
|
+
toggledNodes: A.map((f) => _(f))
|
|
325
238
|
});
|
|
326
239
|
}
|
|
327
240
|
}
|
|
328
|
-
}).catch((
|
|
329
|
-
e.isDestroyed() ||
|
|
241
|
+
}).catch((u) => {
|
|
242
|
+
e.isDestroyed() || w !== h.value || pe(u) || console.trace(u);
|
|
330
243
|
}).finally(() => {
|
|
331
|
-
e.isDestroyed() ||
|
|
244
|
+
e.isDestroyed() || w !== h.value || e.updateGridOptions({
|
|
332
245
|
loading: !1
|
|
333
246
|
});
|
|
334
|
-
}),
|
|
335
|
-
} catch (
|
|
336
|
-
console.trace(
|
|
247
|
+
}), D.promise.then(() => O("newDataRendered"));
|
|
248
|
+
} catch (c) {
|
|
249
|
+
console.trace(c);
|
|
337
250
|
} finally {
|
|
338
251
|
v = t;
|
|
339
252
|
}
|
|
340
253
|
}
|
|
341
254
|
}
|
|
342
|
-
),
|
|
255
|
+
), R(
|
|
343
256
|
() => ({
|
|
344
|
-
gridApi:
|
|
345
|
-
loadingText:
|
|
346
|
-
runningText:
|
|
347
|
-
notReadyText:
|
|
348
|
-
noRowsText:
|
|
257
|
+
gridApi: i.value,
|
|
258
|
+
loadingText: s.loadingText,
|
|
259
|
+
runningText: s.runningText,
|
|
260
|
+
notReadyText: s.notReadyText,
|
|
261
|
+
noRowsText: s.noRowsText
|
|
349
262
|
}),
|
|
350
|
-
({ gridApi: e, loadingText: t, runningText: l, notReadyText:
|
|
263
|
+
({ gridApi: e, loadingText: t, runningText: l, notReadyText: n, noRowsText: c }) => {
|
|
351
264
|
!e || e.isDestroyed() || e.updateGridOptions({
|
|
352
265
|
loadingOverlayComponentParams: {
|
|
353
|
-
...
|
|
266
|
+
...a.value.loadingOverlayComponentParams,
|
|
354
267
|
loadingText: t,
|
|
355
268
|
runningText: l,
|
|
356
|
-
notReadyText:
|
|
269
|
+
notReadyText: n
|
|
357
270
|
},
|
|
358
271
|
noRowsOverlayComponentParams: {
|
|
359
|
-
...
|
|
360
|
-
text:
|
|
272
|
+
...a.value.noRowsOverlayComponentParams,
|
|
273
|
+
text: c
|
|
361
274
|
}
|
|
362
275
|
});
|
|
363
276
|
}
|
|
364
|
-
),
|
|
277
|
+
), de(() => {
|
|
365
278
|
var e;
|
|
366
|
-
!
|
|
367
|
-
statusBar:
|
|
368
|
-
statusPanels: [{ statusPanel:
|
|
279
|
+
!i.value || (e = i.value) != null && e.isDestroyed() || i.value.updateGridOptions({
|
|
280
|
+
statusBar: a.value.loading ? void 0 : {
|
|
281
|
+
statusPanels: [{ statusPanel: xe, align: "left" }]
|
|
369
282
|
}
|
|
370
283
|
});
|
|
371
|
-
}), (e, t) => (
|
|
372
|
-
class:
|
|
284
|
+
}), (e, t) => (T(), ce("div", {
|
|
285
|
+
class: j(e.$style.container)
|
|
373
286
|
}, [
|
|
374
|
-
|
|
287
|
+
r(i) && !g.disableColumnsPanel ? (T(), P(r(Ce), {
|
|
375
288
|
key: 0,
|
|
376
|
-
api:
|
|
377
|
-
}, null, 8, ["api"])) :
|
|
378
|
-
g.disableFiltersPanel ?
|
|
289
|
+
api: r(i)
|
|
290
|
+
}, null, 8, ["api"])) : F("", !0),
|
|
291
|
+
g.disableFiltersPanel ? F("", !0) : (T(), P(he, {
|
|
379
292
|
key: 1,
|
|
380
|
-
modelValue:
|
|
381
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
382
|
-
columns:
|
|
293
|
+
modelValue: r(k),
|
|
294
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => K(k) ? k.value = l : null),
|
|
295
|
+
columns: r(oe)
|
|
383
296
|
}, null, 8, ["modelValue", "columns"])),
|
|
384
|
-
|
|
297
|
+
r(i) && g.showExportButton ? (T(), P(ge, {
|
|
385
298
|
key: 2,
|
|
386
|
-
api:
|
|
387
|
-
}, null, 8, ["api"])) :
|
|
388
|
-
|
|
389
|
-
modelValue:
|
|
390
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) =>
|
|
299
|
+
api: r(i)
|
|
300
|
+
}, null, 8, ["api"])) : F("", !0),
|
|
301
|
+
Q(be, {
|
|
302
|
+
modelValue: r(V),
|
|
303
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => K(V) ? V.value = l : null),
|
|
391
304
|
settings: ne.value
|
|
392
|
-
},
|
|
305
|
+
}, me({ _: 2 }, [
|
|
393
306
|
e.$slots["before-sheets"] ? {
|
|
394
307
|
name: "before",
|
|
395
|
-
fn:
|
|
308
|
+
fn: W(() => [
|
|
396
309
|
X(e.$slots, "before-sheets")
|
|
397
310
|
]),
|
|
398
311
|
key: "0"
|
|
399
312
|
} : void 0,
|
|
400
313
|
e.$slots["after-sheets"] ? {
|
|
401
314
|
name: "after",
|
|
402
|
-
fn:
|
|
315
|
+
fn: W(() => [
|
|
403
316
|
X(e.$slots, "after-sheets")
|
|
404
317
|
]),
|
|
405
318
|
key: "1"
|
|
406
319
|
} : void 0
|
|
407
320
|
]), 1032, ["modelValue", "settings"]),
|
|
408
|
-
(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
321
|
+
Q(r(we), {
|
|
322
|
+
modelValue: r(B),
|
|
323
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => K(B) ? B.value = l : null)
|
|
324
|
+
}, null, 8, ["modelValue"]),
|
|
325
|
+
(T(), P(r(Se), {
|
|
326
|
+
key: E.value,
|
|
327
|
+
theme: r(ye),
|
|
328
|
+
class: j(e.$style.grid),
|
|
329
|
+
"grid-options": r(a)
|
|
413
330
|
}, null, 8, ["theme", "class", "grid-options"]))
|
|
414
331
|
], 2));
|
|
415
332
|
}
|
|
416
333
|
});
|
|
417
334
|
export {
|
|
418
|
-
|
|
335
|
+
We as default
|
|
419
336
|
};
|
|
420
337
|
//# sourceMappingURL=PlAgDataTableV2.vue2.js.map
|