@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.
Files changed (72) hide show
  1. package/.turbo/turbo-build.log +23 -19
  2. package/.turbo/turbo-formatter$colon$check.log +2 -2
  3. package/.turbo/turbo-linter$colon$check.log +2 -2
  4. package/.turbo/turbo-types$colon$check.log +1 -1
  5. package/CHANGELOG.md +9 -0
  6. package/dist/AgGridVue/useAgGridOptions.js +10 -9
  7. package/dist/AgGridVue/useAgGridOptions.js.map +1 -1
  8. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts +32 -40
  9. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue.d.ts.map +1 -1
  10. package/dist/components/PlAdvancedFilter/PlAdvancedFilter.vue2.js.map +1 -1
  11. package/dist/components/PlAdvancedFilter/index.d.ts +2 -2
  12. package/dist/components/PlAdvancedFilter/index.d.ts.map +1 -1
  13. package/dist/components/PlAdvancedFilter/index.js.map +1 -1
  14. package/dist/components/PlAdvancedFilter/types.d.ts +9 -8
  15. package/dist/components/PlAdvancedFilter/types.d.ts.map +1 -1
  16. package/dist/components/PlAdvancedFilter/utils.js +38 -27
  17. package/dist/components/PlAdvancedFilter/utils.js.map +1 -1
  18. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
  19. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +161 -244
  20. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
  21. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +9 -8
  22. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js.map +1 -1
  23. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.d.ts +134 -0
  24. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.d.ts.map +1 -0
  25. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js +33 -0
  26. package/dist/components/PlAgDataTable/compositions/useFilterableColumns.js.map +1 -0
  27. package/dist/components/PlAgDataTable/compositions/useGrid.d.ts +15 -0
  28. package/dist/components/PlAgDataTable/compositions/useGrid.d.ts.map +1 -0
  29. package/dist/components/PlAgDataTable/compositions/useGrid.js +113 -0
  30. package/dist/components/PlAgDataTable/compositions/useGrid.js.map +1 -0
  31. package/dist/components/PlAgDataTable/sources/row-number.d.ts.map +1 -1
  32. package/dist/components/PlAgDataTable/sources/row-number.js.map +1 -1
  33. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts +1 -2
  34. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
  35. package/dist/components/PlAgDataTable/sources/table-source-v2.js +47 -62
  36. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  37. package/dist/components/PlAgDataTable/sources/table-state-v2.d.ts +4 -4
  38. package/dist/components/PlAgDataTable/sources/table-state-v2.d.ts.map +1 -1
  39. package/dist/components/PlAgDataTable/sources/table-state-v2.js +105 -95
  40. package/dist/components/PlAgDataTable/sources/table-state-v2.js.map +1 -1
  41. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +11 -10
  42. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js.map +1 -1
  43. package/dist/components/PlAgRowNumHeader.vue.js +10 -9
  44. package/dist/components/PlAgRowNumHeader.vue.js.map +1 -1
  45. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts +10 -0
  46. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.d.ts.map +1 -0
  47. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js +30 -0
  48. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue.js.map +1 -0
  49. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js +5 -0
  50. package/dist/components/PlTableFastSearch/PlTableFastSearch.vue2.js.map +1 -0
  51. package/dist/components/PlTableFastSearch/index.d.ts +2 -0
  52. package/dist/components/PlTableFastSearch/index.d.ts.map +1 -0
  53. package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts +4 -5
  54. package/dist/components/PlTableFilters/PlTableFiltersV2.vue.d.ts.map +1 -1
  55. package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js.map +1 -1
  56. package/dist/index.js +1 -1
  57. package/dist/lib/util/helpers/dist/functions.js +13 -4
  58. package/dist/lib/util/helpers/dist/functions.js.map +1 -1
  59. package/dist/lib/util/helpers/dist/objects.js.map +1 -1
  60. package/package.json +6 -6
  61. package/src/components/PlAdvancedFilter/PlAdvancedFilter.vue +2 -2
  62. package/src/components/PlAdvancedFilter/index.ts +7 -2
  63. package/src/components/PlAdvancedFilter/types.ts +19 -5
  64. package/src/components/PlAgDataTable/PlAgDataTableV2.vue +52 -172
  65. package/src/components/PlAgDataTable/compositions/useFilterableColumns.ts +62 -0
  66. package/src/components/PlAgDataTable/compositions/useGrid.ts +143 -0
  67. package/src/components/PlAgDataTable/sources/row-number.ts +0 -1
  68. package/src/components/PlAgDataTable/sources/table-source-v2.ts +1 -15
  69. package/src/components/PlAgDataTable/sources/table-state-v2.ts +137 -94
  70. package/src/components/PlTableFastSearch/PlTableFastSearch.vue +27 -0
  71. package/src/components/PlTableFastSearch/index.ts +1 -0
  72. package/src/components/PlTableFilters/PlTableFiltersV2.vue +8 -3
@@ -1,25 +1,24 @@
1
- import { defineComponent as ie, mergeModels as J, useModel as U, toRefs as ue, ref as K, computed as q, shallowRef as H, watch as b, effectScope as de, watchEffect as ce, createElementBlock as me, openBlock as D, normalizeClass as Q, createBlock as T, createCommentVNode as z, createVNode as fe, unref as O, isRef as W, createSlots as ve, withCtx as j, renderSlot as X } from "vue";
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 pe } from "../../lib/util/helpers/dist/functions.js";
4
- import { parseJson as Y, getAxisId as Z, matchAxisId as _, canonicalizeJson as ee, createPlSelectionModel as F, getRawPlatformaInstance as Se, isAbortError as ye } from "@platforma-sdk/model";
5
- import { AgGridVue as ge } from "ag-grid-vue3";
6
- import { AgGridTheme as Ce } from "../../aggrid.js";
7
- import he from "../PlAgCsvExporter/PlAgCsvExporter.vue.js";
8
- import we from "../PlAgGridColumnManager/PlAgGridColumnManager.vue.js";
9
- import Re from "../PlTableFilters/PlTableFiltersV2.vue.js";
10
- import xe from "./PlAgDataTableSheets.vue.js";
11
- import be from "./PlAgOverlayLoading.vue.js";
12
- import De from "./PlAgOverlayNoRows.vue.js";
13
- /* empty css */
14
- import Oe from "./PlAgRowCount.vue.js";
15
- import { DeferredCircular as Ie, ensureNodeVisible as Pe } from "./sources/focus-row.js";
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 { watchCached as Be } from "@milaboratories/uikit";
20
- const Ze = /* @__PURE__ */ ie({
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__ */ J({
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__ */ J(["rowDoubleClicked", "cellButtonClicked", "newDataRendered"], ["update:modelValue", "update:selection"]),
43
- setup(g, { expose: le, emit: oe }) {
44
- const ae = U(g, "modelValue"), o = U(g, "selection"), i = g, { settings: I } = ue(i), k = oe, V = K([]), { gridState: C, sheetsState: P, filtersState: B } = Ve(ae, I), ne = q(() => {
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: [...P.value]
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 M(e) {
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 $ = K(0);
162
- b(
163
- () => [u.value, C.value],
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(M(t), M(l)) && (r.value.initialState = t, ++$.value);
98
+ !d(t, {}) && !d(z(t), z(l)) && (a.value.initialState = t, ++E.value);
168
99
  }
169
100
  );
170
- const se = q(() => i.cellRendererSelector ?? null);
171
- b(
172
- () => [u.value, se.value],
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
- ...r.value.defaultColDef,
106
+ ...a.value.defaultColDef,
176
107
  cellRendererSelector: t ?? void 0
177
108
  });
178
109
  }
179
- ), le({
110
+ ), ee({
180
111
  focusRow: async (e) => {
181
- const t = await x.promise;
182
- return t.isDestroyed() ? !1 : Pe(t, (l) => {
183
- var a;
184
- return d((a = l.data) == null ? void 0 : a.axesKey, e);
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 w, y;
189
- const l = await x.promise;
119
+ var b, y;
120
+ const l = await D.promise;
190
121
  if (l.isDestroyed()) return !1;
191
- const a = (w = o.value) == null ? void 0 : w.axesSpec;
192
- if (!a || a.length !== e.length) return !1;
193
- const n = e.map((p) => {
194
- const S = Z(p);
195
- return a.findIndex((R) => _(R, S));
196
- }), c = new Set(n);
197
- if (c.has(-1) || c.size !== e.length) return !1;
198
- const s = t.map(
199
- (p) => ee(n.map((S) => p[S]))
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, s)) {
132
+ if (!d(m, u)) {
202
133
  l.setServerSideSelectionState({
203
134
  selectAll: !1,
204
- toggledNodes: s
135
+ toggledNodes: u
205
136
  });
206
- const p = de(), { resolve: S, promise: R } = Promise.withResolvers();
207
- p.run(() => b(o, S, { once: !0 }));
137
+ const p = ue(), { resolve: S, promise: x } = Promise.withResolvers();
138
+ p.run(() => R(o, S, { once: !0 }));
208
139
  try {
209
- await pe(R, 500);
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
- function re(e) {
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 = K(0);
240
- return b(
241
- () => [u.value, I.value],
152
+ const h = L(0);
153
+ return R(
154
+ () => [i.value, I.value],
242
155
  ([e, t]) => {
243
- var l, a;
156
+ var l, n;
244
157
  if (!(!e || e.isDestroyed()) && !d(t, v)) {
245
158
  ++h.value;
246
159
  try {
247
- if (e.hideOverlay(), x.reset(), t.sourceId === null) {
160
+ if (e.hideOverlay(), D.reset(), t.sourceId === null) {
248
161
  e.updateGridOptions({
249
162
  loading: !0,
250
163
  loadingOverlayComponentParams: {
251
- ...r.value.loadingOverlayComponentParams,
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, E) && (o.value = F()), e.setServerSideSelectionState({
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
- ...r.value.loadingOverlayComponentParams,
178
+ ...a.value.loadingOverlayComponentParams,
266
179
  variant: "loading"
267
180
  }
268
- }), o.value && (v != null && v.sourceId) && (o.value && !d(o.value, E) && (o.value = F()), e.setServerSideSelectionState({
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 n = ((l = t.model) == null ? void 0 : l.sourceId) && t.model.sourceId !== t.sourceId;
273
- if (!t.model || n) {
274
- const s = e.getServerSideGroupLevelState(), m = !n && s.length > 0 ? s[0].rowCount : 1;
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: (w) => {
278
- w.success({ rowData: [], rowCount: m });
190
+ getRows: (b) => {
191
+ b.success({ rowData: [], rowCount: m });
279
192
  }
280
193
  }
281
194
  });
282
195
  }
283
- const c = h.value;
284
- ke({
196
+ const w = h.value;
197
+ Ie({
285
198
  generation: h,
286
- pfDriver: Se().pFrameDriver,
199
+ pfDriver: ve().pFrameDriver,
287
200
  model: t.model,
288
201
  sheets: t.sheets ?? [],
289
- dataRenderedTracker: x,
290
- hiddenColIds: (a = C.value.columnVisibility) == null ? void 0 : a.hiddenColIds,
202
+ dataRenderedTracker: D,
203
+ hiddenColIds: (n = C.value.columnVisibility) == null ? void 0 : n.hiddenColIds,
291
204
  cellButtonAxisParams: {
292
- showCellButtonForAxisId: i.showCellButtonForAxisId,
293
- cellButtonInvokeRowsOnDoubleClick: i.cellButtonInvokeRowsOnDoubleClick,
294
- trigger: (s) => k("cellButtonClicked", s)
205
+ showCellButtonForAxisId: s.showCellButtonForAxisId,
206
+ cellButtonInvokeRowsOnDoubleClick: s.cellButtonInvokeRowsOnDoubleClick,
207
+ trigger: (u) => O("cellButtonClicked", u)
295
208
  }
296
- }).then((s) => {
297
- if (e.isDestroyed() || c !== h.value) return;
298
- const { axesSpec: m, ...w } = s;
209
+ }).then((u) => {
210
+ if (e.isDestroyed() || w !== h.value) return;
211
+ const { axesSpec: m, ...b } = u;
299
212
  if (e.updateGridOptions({
300
- ...w
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(Z).map((f) => m.findIndex((N) => _(N, f))), R = new Set(S);
312
- if (R.has(-1) || R.size !== m.length) {
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
- ), L = { axesSpec: m, selectedKeys: A };
322
- return d(o.value, L) || (o.value = L), e.setServerSideSelectionState({
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) => ee(f))
237
+ toggledNodes: A.map((f) => _(f))
325
238
  });
326
239
  }
327
240
  }
328
- }).catch((s) => {
329
- e.isDestroyed() || c !== h.value || ye(s) || console.trace(s);
241
+ }).catch((u) => {
242
+ e.isDestroyed() || w !== h.value || pe(u) || console.trace(u);
330
243
  }).finally(() => {
331
- e.isDestroyed() || c !== h.value || e.updateGridOptions({
244
+ e.isDestroyed() || w !== h.value || e.updateGridOptions({
332
245
  loading: !1
333
246
  });
334
- }), x.promise.then(() => k("newDataRendered"));
335
- } catch (n) {
336
- console.trace(n);
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
- ), b(
255
+ ), R(
343
256
  () => ({
344
- gridApi: u.value,
345
- loadingText: i.loadingText,
346
- runningText: i.runningText,
347
- notReadyText: i.notReadyText,
348
- noRowsText: i.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: a, noRowsText: n }) => {
263
+ ({ gridApi: e, loadingText: t, runningText: l, notReadyText: n, noRowsText: c }) => {
351
264
  !e || e.isDestroyed() || e.updateGridOptions({
352
265
  loadingOverlayComponentParams: {
353
- ...r.value.loadingOverlayComponentParams,
266
+ ...a.value.loadingOverlayComponentParams,
354
267
  loadingText: t,
355
268
  runningText: l,
356
- notReadyText: a
269
+ notReadyText: n
357
270
  },
358
271
  noRowsOverlayComponentParams: {
359
- ...r.value.noRowsOverlayComponentParams,
360
- text: n
272
+ ...a.value.noRowsOverlayComponentParams,
273
+ text: c
361
274
  }
362
275
  });
363
276
  }
364
- ), ce(() => {
277
+ ), de(() => {
365
278
  var e;
366
- !u.value || (e = u.value) != null && e.isDestroyed() || u.value.updateGridOptions({
367
- statusBar: r.value.loading ? void 0 : {
368
- statusPanels: [{ statusPanel: Oe, align: "left" }]
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) => (D(), me("div", {
372
- class: Q(e.$style.container)
284
+ }), (e, t) => (T(), ce("div", {
285
+ class: j(e.$style.container)
373
286
  }, [
374
- u.value && !g.disableColumnsPanel ? (D(), T(O(we), {
287
+ r(i) && !g.disableColumnsPanel ? (T(), P(r(Ce), {
375
288
  key: 0,
376
- api: u.value
377
- }, null, 8, ["api"])) : z("", !0),
378
- g.disableFiltersPanel ? z("", !0) : (D(), T(Re, {
289
+ api: r(i)
290
+ }, null, 8, ["api"])) : F("", !0),
291
+ g.disableFiltersPanel ? F("", !0) : (T(), P(he, {
379
292
  key: 1,
380
- modelValue: O(B),
381
- "onUpdate:modelValue": t[0] || (t[0] = (l) => W(B) ? B.value = l : null),
382
- columns: V.value
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
- u.value && g.showExportButton ? (D(), T(he, {
297
+ r(i) && g.showExportButton ? (T(), P(ge, {
385
298
  key: 2,
386
- api: u.value
387
- }, null, 8, ["api"])) : z("", !0),
388
- fe(xe, {
389
- modelValue: O(P),
390
- "onUpdate:modelValue": t[1] || (t[1] = (l) => W(P) ? P.value = l : null),
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
- }, ve({ _: 2 }, [
305
+ }, me({ _: 2 }, [
393
306
  e.$slots["before-sheets"] ? {
394
307
  name: "before",
395
- fn: j(() => [
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: j(() => [
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
- (D(), T(O(ge), {
409
- key: $.value,
410
- theme: O(Ce),
411
- class: Q(e.$style.grid),
412
- "grid-options": r.value
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
- Ze as default
335
+ We as default
419
336
  };
420
337
  //# sourceMappingURL=PlAgDataTableV2.vue2.js.map