@endge/ui-vue 0.25.1 → 0.25.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.
@@ -1,1602 +0,0 @@
1
- import { r as B, c as g, g as z, t as E, a as R, b as j, d as b, G as L, S as D, i as V, A as F, F as A, E as N, e as M, C as $, T as X, h as v, H as Y, f as G, B as H, j as y, k as w, l as U, R as W, m as q, n as K, o as Z, D as k, p as x, q as J, s as _, u as Q, v as ee, w as T, x as I, y as re, z as te, I as oe, V as ie } from "./main-BP5C1P4E.js";
2
- import { H as O, D as se, g as ne, v as le, F as ae, C as de } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
3
- import { g as S } from "./events-BvSmBueA-Doh7RyHn.js";
4
- /*!
5
- * Built by Revolist OU ❤️
6
- */
7
- class ce {
8
- get stores() {
9
- return this.dataSources;
10
- }
11
- constructor() {
12
- this.collection = null, this.dataSources = w.reduce((e, r) => (e[r] = new k(r), e), {});
13
- }
14
- column(e, r = "rgCol") {
15
- return this.getColumn(e, r);
16
- }
17
- getColumn(e, r) {
18
- return x(this.dataSources[r].store, e);
19
- }
20
- getRawColumns() {
21
- return y(this.dataSources, (e, r, t) => (e[t] = r.store.get("source"), e), {
22
- rgCol: [],
23
- colPinStart: [],
24
- colPinEnd: []
25
- });
26
- }
27
- getColumns(e = "all") {
28
- const r = this.getRawColumns();
29
- return e !== "all" ? r[e] : w.reduce((t, i) => [...t, ...r[i]], []);
30
- }
31
- getColumnIndexByProp(e, r) {
32
- return J(this.dataSources[r].store, e);
33
- }
34
- getColumnByProp(e) {
35
- var r;
36
- return (r = this.collection) === null || r === void 0 ? void 0 : r.columnByProp[e];
37
- }
38
- refreshByType(e) {
39
- this.dataSources[e].refresh();
40
- }
41
- /**
42
- * Main method to set columns
43
- */
44
- setColumns(e) {
45
- return w.forEach((r) => {
46
- this.dataSources[r].updateData(e.columns[r], {
47
- // max depth level
48
- depth: e.maxLevel,
49
- // groups
50
- groups: e.columnGrouping[r].reduce((t, i) => (t[i.level] || (t[i.level] = []), t[i.level].push(i), t), {})
51
- });
52
- }), this.collection = e, e;
53
- }
54
- /**
55
- * Used in plugins
56
- * Modify columns in store
57
- */
58
- updateColumns(e) {
59
- const r = e.reduce((i, s) => {
60
- const n = _(s);
61
- return i[n] || (i[n] = {}), i[n][s.prop] = s, i;
62
- }, {}), t = {};
63
- for (const i in r) {
64
- if (!r.hasOwnProperty(i))
65
- continue;
66
- const s = i, n = r[s], a = this.dataSources[s].store.get("source");
67
- t[s] = {};
68
- for (let l = 0; l < a.length; l++) {
69
- const c = a[l], d = n == null ? void 0 : n[c.prop];
70
- d && (t[s][l] = d);
71
- }
72
- }
73
- for (const i in t) {
74
- if (!t.hasOwnProperty(i))
75
- continue;
76
- const s = i;
77
- Q(this.dataSources[s].store, t[s] || {});
78
- }
79
- }
80
- updateColumn(e, r) {
81
- const t = _(e);
82
- ee(this.dataSources[t].store, { [r]: e });
83
- }
84
- }
85
- class ge {
86
- constructor(e) {
87
- this.dimensionProvider = e, this.stores = y(b, (r, t) => (r[t] = new k(t), r), {});
88
- }
89
- /**
90
- * Replaces the data source for a row type and synchronizes the related dimension metadata.
91
- *
92
- * `rgRow` updates also refresh the virtual row model unless `disableVirtualRows` is set.
93
- * Pinned row types skip virtual row recalculation because they are rendered directly.
94
- *
95
- * @param data Full source data assigned to the target row store.
96
- * @param type Row collection to update. Defaults to the main body rows.
97
- * @param disableVirtualRows Prevents recalculating virtual rows for the main row store.
98
- * @param grouping Optional grouping metadata applied together with the new data set.
99
- * @param silent Preserves the current trimmed state instead of resetting it during the update.
100
- * @param preserveTrimmed Re-applies current trimmed indexes after a silent update.
101
- * @returns The same `data` array that was provided to the method.
102
- */
103
- setData(e, r = "rgRow", t = !1, i, s = !1, n = !1) {
104
- this.stores[r].updateData([...e], i, s, n);
105
- const a = r !== "rgRow" || t;
106
- return this.dimensionProvider.setData(e.length, r, a), e;
107
- }
108
- getModel(e, r = "rgRow") {
109
- const t = this.stores[r].store;
110
- return x(t, e);
111
- }
112
- changeOrder({ rowType: e = "rgRow", from: r, to: t }) {
113
- const i = this.stores[e], s = [...i.store.get("proxyItems")], n = i.store.get("items"), a = s.splice(
114
- s.indexOf(n[r]),
115
- // get index in proxy
116
- 1
117
- );
118
- s.splice(
119
- s.indexOf(n[t]),
120
- // get index in proxy
121
- 0,
122
- ...a
123
- ), i.setData({
124
- proxyItems: s
125
- });
126
- const l = i.store.get("items");
127
- this.dimensionProvider.updateSizesPositionByNewDataIndexes(e, l, n);
128
- }
129
- setCellData({ type: e, rowIndex: r, prop: t, val: i }, s = !0) {
130
- const n = this.getModel(r, e);
131
- n[t] = i, this.stores[e].setSourceData({ [r]: n }, s);
132
- }
133
- setRangeData(e, r) {
134
- const t = {};
135
- for (let i in e) {
136
- const s = t[i] = x(this.stores[r].store, parseInt(i, 10));
137
- if (s)
138
- for (let n in e[i])
139
- s[n] = e[i][n];
140
- }
141
- this.stores[r].setSourceData(t);
142
- }
143
- refresh(e = "all") {
144
- te(e) && this.refreshItems(e), b.forEach((r) => this.refreshItems(r));
145
- }
146
- refreshItems(e = "rgRow") {
147
- const r = this.stores[e].store.get("items");
148
- this.stores[e].setData({ items: [...r] });
149
- }
150
- setGrouping({ depth: e }, r = "rgRow") {
151
- this.stores[r].setData({ groupingDepth: e });
152
- }
153
- setTrimmed(e, r = "rgRow") {
154
- const t = this.stores[r];
155
- t.addTrimmed(e), this.dimensionProvider.setTrimmed(e, r), r === "rgRow" && this.dimensionProvider.setData(R(t.store).length, r);
156
- }
157
- }
158
- class he {
159
- constructor(e, r) {
160
- this.viewports = e;
161
- const t = U((i) => r.realSizeChanged(i), W);
162
- this.stores = y([...b, ...w], (i, s) => (i[s] = new oe(s), i[s].store.onChange("realSize", () => t(s)), i), {});
163
- }
164
- /**
165
- * Clear old sizes from dimension and viewports
166
- * @param type - dimension type
167
- * @param count - count of items
168
- */
169
- clearSize(e, r) {
170
- this.stores[e].drop(), this.viewports.stores[e].setOriginalSizes(this.stores[e].store.get("originItemSize")), this.setItemCount(r, e);
171
- }
172
- /**
173
- * Apply new custom sizes to dimension and view port
174
- * @param type - dimension type
175
- * @param sizes - new custom sizes
176
- * @param keepOld - keep old sizes merge new with old
177
- */
178
- setCustomSizes(e, r, t = !1) {
179
- let i = r;
180
- if (t) {
181
- const s = this.stores[e].store.get("sizes");
182
- i = Object.assign(Object.assign({}, s), r);
183
- }
184
- this.stores[e].setDimensionSize(i), this.setViewPortCoordinate({
185
- type: e,
186
- force: !0
187
- });
188
- }
189
- setItemCount(e, r) {
190
- this.viewports.stores[r].setViewport({ realCount: e }), this.stores[r].setStore({ count: e });
191
- }
192
- /**
193
- * Apply trimmed items
194
- * @param trimmed - trimmed items
195
- * @param type
196
- */
197
- setTrimmed(e, r) {
198
- const t = q(e);
199
- this.stores[r].setStore({ trimmed: t }), this.setViewPortCoordinate({
200
- type: r,
201
- force: !0
202
- });
203
- }
204
- /**
205
- * Sets dimension data and viewport coordinate
206
- * @param itemCount
207
- * @param type - dimension type
208
- * @param noVirtual - disable virtual data
209
- */
210
- setData(e, r, t = !1) {
211
- if (this.setItemCount(e, r), t) {
212
- const i = this.stores[r].getCurrentState();
213
- this.viewports.stores[r].setViewport({
214
- virtualSize: i.realSize
215
- });
216
- }
217
- this.setViewPortCoordinate({
218
- type: r
219
- });
220
- }
221
- /**
222
- * Applies new columns to the dimension provider
223
- * @param columns - new columns data
224
- * @param disableVirtualX - disable virtual data for X axis
225
- */
226
- applyNewColumns(e, r, t = !1) {
227
- for (let i of w) {
228
- t || this.stores[i].drop();
229
- const s = e[i], n = i !== "rgCol" || r;
230
- this.stores[i].setStore({ count: s.length });
231
- const a = K(s);
232
- this.stores[i].setDimensionSize(a);
233
- const l = {
234
- // This triggers drop on realCount change
235
- realCount: s.length
236
- };
237
- n && (l.virtualSize = this.stores[i].getCurrentState().realSize), this.viewports.stores[i].setViewport(l), this.setViewPortCoordinate({
238
- type: i
239
- });
240
- }
241
- }
242
- /**
243
- * Gets the full size of the grid by summing up the sizes of all dimensions
244
- * Goes through all dimensions columnTypes (x) and rowTypes (y) and sums up their sizes
245
- */
246
- getFullSize() {
247
- var e, r;
248
- let t = 0, i = 0;
249
- for (let s of w)
250
- t += ((e = this.stores[s]) === null || e === void 0 ? void 0 : e.store.get("realSize")) || 0;
251
- for (let s of b)
252
- i += ((r = this.stores[s]) === null || r === void 0 ? void 0 : r.store.get("realSize")) || 0;
253
- return { y: i, x: t };
254
- }
255
- setViewPortCoordinate({ type: e, coordinate: r = this.viewports.stores[e].lastCoordinate, force: t = !1 }) {
256
- const i = this.stores[e].getCurrentState(), s = this.viewports.stores[e].store, n = s.get("clientSize"), a = s.get("virtualSize"), l = ne({
257
- contentSize: i.realSize,
258
- clientSize: n,
259
- virtualSize: a
260
- }), c = Math.min(
261
- Math.max(0, r),
262
- // prevents negative scroll positions
263
- l.logicalScrollSize
264
- ), d = n && a ? l.getRenderOffset(c) : 0;
265
- this.stores[e].setStore({ renderOffset: d }), this.viewports.stores[e].setViewport({ renderOffset: d }), this.viewports.stores[e].setViewPortCoordinate(r, i, t);
266
- }
267
- getViewPortPos(e) {
268
- const r = this.stores[e.dimension].getCurrentState();
269
- return Z(r, e.coordinate).start;
270
- }
271
- setSettings(e, r) {
272
- let t = [];
273
- switch (r) {
274
- case "rgCol":
275
- t = w;
276
- break;
277
- case "rgRow":
278
- t = b;
279
- break;
280
- }
281
- for (let i of t)
282
- this.stores[i].setStore(e);
283
- }
284
- updateSizesPositionByNewDataIndexes(e, r, t = []) {
285
- this.stores[e].updateSizesPositionByIndexes(r, t), this.setViewPortCoordinate({
286
- type: e,
287
- force: !0
288
- });
289
- }
290
- }
291
- class ve {
292
- constructor() {
293
- this.stores = y([...b, ...w], (e, r) => (e[r] = new ie(r), e), {});
294
- }
295
- setViewport(e, r) {
296
- this.stores[e].setViewport(r);
297
- }
298
- }
299
- function ue(o) {
300
- const e = o.dimensions[o.colType].store, r = e.get("realSize"), t = {
301
- contentWidth: r,
302
- class: o.colType,
303
- contentHeight: o.contentHeight,
304
- key: o.colType,
305
- colType: o.colType,
306
- noHorizontalScrollTransfer: o.noHorizontalScrollTransfer,
307
- onResizeviewport: o.onResizeviewport,
308
- // set viewport size to real size
309
- style: o.fixWidth ? { minWidth: `${r}px` } : void 0
310
- }, i = {
311
- colData: R(o.colStore),
312
- dimensionCol: e,
313
- type: o.colType,
314
- groups: o.colStore.get("groups"),
315
- groupingDepth: o.colStore.get("groupingDepth"),
316
- resizeHandler: o.colType === "colPinEnd" ? ["l"] : void 0,
317
- onHeaderresize: o.onHeaderresize
318
- };
319
- return {
320
- prop: t,
321
- type: o.colType,
322
- position: o.position,
323
- headerProp: i,
324
- viewportCol: o.viewports[o.colType].store
325
- };
326
- }
327
- class pe {
328
- constructor(e, r) {
329
- var t;
330
- this.config = e;
331
- const i = [];
332
- let s = 0;
333
- w.forEach((n) => {
334
- const a = e.columnProvider.stores[n].store;
335
- if (!a.get("items").length)
336
- return;
337
- const l = {
338
- colType: n,
339
- position: { x: s, y: 1 },
340
- contentHeight: r,
341
- // only central column has dynamic width
342
- fixWidth: n !== "rgCol",
343
- viewports: e.viewportProvider.stores,
344
- dimensions: e.dimensionProvider.stores,
345
- rowStores: e.dataProvider.stores,
346
- noHorizontalScrollTransfer: e.noHorizontalScrollTransfer,
347
- colStore: a,
348
- onHeaderresize: (p) => this.onColumnResize(n, p, a)
349
- };
350
- n === "rgCol" && (l.onResizeviewport = (p) => {
351
- var h;
352
- const C = {
353
- clientSize: p.detail.size
354
- };
355
- (p.detail.dimension === "rgRow" && !e.disableVirtualY || p.detail.dimension === "rgCol" && !e.disableVirtualX) && (C.virtualSize = p.detail.size), (h = e.viewportProvider) === null || h === void 0 || h.setViewport(p.detail.dimension, C);
356
- });
357
- const c = ue(l), d = this.registerCol(c.position.x, n), u = this.dataViewPort(l).reduce((p, h) => {
358
- const C = this.registerSegment(h.position, h.lastCell), P = this.registerRow(h.position.y, h.type), f = Object.assign(Object.assign({ colType: n }, h), { rowSelectionStore: P, selectionStore: C.store, onSetrange: (m) => {
359
- C.setRangeArea(m.detail);
360
- }, onSettemprange: (m) => C.setTempArea(m.detail), onFocuscell: (m) => {
361
- C.clearFocus(), e.selectionStoreConnector.focus(C, m.detail);
362
- } });
363
- return p.push(f), p;
364
- }, []);
365
- i.push(Object.assign(Object.assign({}, c), {
366
- columnSelectionStore: d,
367
- dataPorts: u
368
- })), s++;
369
- }), this.columns = i, (t = this.config.scrollingService) === null || t === void 0 || t.unregister();
370
- }
371
- onColumnResize(e, { detail: r }, t) {
372
- var i;
373
- (i = this.config.dimensionProvider) === null || i === void 0 || i.setCustomSizes(e, r, !0);
374
- const s = {};
375
- for (const n of Object.keys(r || {})) {
376
- const a = r[n], l = parseInt(n, 10), c = x(t, l);
377
- c && (s[l] = Object.assign(Object.assign({}, c), { size: a }));
378
- }
379
- this.config.resize(s);
380
- }
381
- /** register selection store for Segment */
382
- registerSegment(e, r) {
383
- const t = this.config.selectionStoreConnector.register(e);
384
- return t.setLastCell(r), t;
385
- }
386
- /** register selection store for Row */
387
- registerRow(e, r) {
388
- return this.config.selectionStoreConnector.registerRow(e, r).store;
389
- }
390
- /** register selection store for Column */
391
- registerCol(e, r) {
392
- return this.config.selectionStoreConnector.registerColumn(e, r).store;
393
- }
394
- /** Collect Row data */
395
- dataViewPort(e) {
396
- const r = {
397
- rowPinStart: O,
398
- rgRow: de,
399
- rowPinEnd: ae
400
- };
401
- let t = 0;
402
- return b.reduce((i, s) => {
403
- const n = Object.assign(Object.assign({}, e), { position: Object.assign(Object.assign({}, e.position), { y: t }) }), a = le(n, s, r[s], s !== "rgRow");
404
- return i.push(a), t++, i;
405
- }, []);
406
- }
407
- scrollToCell(e) {
408
- for (let r in e) {
409
- const t = e[r];
410
- typeof t == "number" && this.config.scrollingService.proxyScroll({
411
- dimension: r === "x" ? "rgCol" : "rgRow",
412
- coordinate: t
413
- });
414
- }
415
- }
416
- /**
417
- * Clear current grid focus
418
- */
419
- clearFocused() {
420
- this.config.selectionStoreConnector.clearAll();
421
- }
422
- clearEdit() {
423
- this.config.selectionStoreConnector.setEdit(!1);
424
- }
425
- /**
426
- * Collect focused element data
427
- */
428
- getFocused() {
429
- const e = this.config.selectionStoreConnector.focusedStore;
430
- if (!e)
431
- return null;
432
- const r = this.config.selectionStoreConnector.storesXToType[e.position.x], t = this.config.columnProvider.getColumn(e.cell.x, r), i = this.config.selectionStoreConnector.storesYToType[e.position.y], s = this.config.dataProvider.getModel(e.cell.y, i);
433
- return {
434
- column: t,
435
- model: s,
436
- cell: e.cell,
437
- colType: r,
438
- rowType: i
439
- };
440
- }
441
- getStoreCoordinateByType(e, r) {
442
- const t = this.config.selectionStoreConnector.storesByType;
443
- if (!(typeof t[e] > "u" || typeof t[r] > "u"))
444
- return {
445
- x: t[e],
446
- y: t[r]
447
- };
448
- }
449
- setFocus(e, r, t, i) {
450
- var s;
451
- const n = this.getStoreCoordinateByType(e, r);
452
- n && ((s = this.config.selectionStoreConnector) === null || s === void 0 || s.focusByCell(n, t, i));
453
- }
454
- getSelectedRange() {
455
- const e = this.config.selectionStoreConnector.focusedStore;
456
- if (!e)
457
- return null;
458
- const r = this.config.selectionStoreConnector.storesXToType[e.position.x], t = this.config.selectionStoreConnector.storesYToType[e.position.y], i = e.entity.store.get("range");
459
- return i ? Object.assign(Object.assign({}, i), {
460
- colType: r,
461
- rowType: t
462
- }) : null;
463
- }
464
- setEdit(e, r, t, i) {
465
- var s;
466
- const n = this.getStoreCoordinateByType(t, i);
467
- n && ((s = this.config.selectionStoreConnector) === null || s === void 0 || s.setEditByCell(n, { x: r, y: e }));
468
- }
469
- }
470
- class fe {
471
- constructor(e) {
472
- this.setViewport = e, this.elements = {};
473
- }
474
- async proxyScroll(e, r, t) {
475
- var i;
476
- let s, n = e;
477
- for (let l in t ? {} : this.elements)
478
- if (!(e.dimension === "rgCol" && l === "headerRow"))
479
- if (this.isPinnedColumn(r) && e.dimension === "rgCol") {
480
- if (l === r || !e.delta)
481
- continue;
482
- for (let c of this.elements[l])
483
- c.changeScroll && (s = c.changeScroll(e));
484
- } else
485
- for (let c of this.elements[l])
486
- await ((i = c.setScroll) === null || i === void 0 ? void 0 : i.call(c, e));
487
- const a = await s;
488
- a && (n = a), this.setViewport(t && this.isPinnedColumn(r) ? Object.assign(Object.assign({}, n), { dimension: r }) : n);
489
- }
490
- /**
491
- * Silent scroll update for mobile devices when we have negative scroll top
492
- */
493
- async scrollSilentService(e, r) {
494
- var t;
495
- for (let i in this.elements)
496
- if (i !== r && w.includes(r) && (i === "headerRow" || w.includes(i))) {
497
- for (let s of this.elements[i])
498
- await ((t = s.changeScroll) === null || t === void 0 ? void 0 : t.call(s, e, !0));
499
- continue;
500
- }
501
- }
502
- isPinnedColumn(e) {
503
- return !!e && ["colPinStart", "colPinEnd"].indexOf(e) > -1;
504
- }
505
- registerElements(e) {
506
- this.elements = e;
507
- }
508
- /**
509
- * Register new element for farther scroll support
510
- * @param el - can be null if holder removed
511
- * @param key - element key
512
- */
513
- registerElement(e, r) {
514
- this.elements[r] || (this.elements[r] = []), e ? this.elements[r].push(e) : this.elements[r] && delete this.elements[r];
515
- }
516
- unregister() {
517
- this.elements = {};
518
- }
519
- }
520
- class me {
521
- constructor() {
522
- this.stores = {}, this.columnStores = {}, this.rowStores = {}, this.storesByType = {}, this.storesXToType = {}, this.storesYToType = {};
523
- }
524
- get focusedStore() {
525
- var e;
526
- for (let r in this.stores)
527
- for (let t in this.stores[r]) {
528
- const i = (e = this.stores[r][t]) === null || e === void 0 ? void 0 : e.store.get("focus");
529
- if (i)
530
- return {
531
- entity: this.stores[r][t],
532
- cell: i,
533
- position: {
534
- x: parseInt(t, 10),
535
- y: parseInt(r, 10)
536
- }
537
- };
538
- }
539
- return null;
540
- }
541
- get edit() {
542
- var e;
543
- return (e = this.focusedStore) === null || e === void 0 ? void 0 : e.entity.store.get("edit");
544
- }
545
- get focused() {
546
- var e;
547
- return (e = this.focusedStore) === null || e === void 0 ? void 0 : e.entity.store.get("focus");
548
- }
549
- get selectedRange() {
550
- var e;
551
- return (e = this.focusedStore) === null || e === void 0 ? void 0 : e.entity.store.get("range");
552
- }
553
- registerColumn(e, r) {
554
- return this.updateColumnTypeMapping(e, r), this.columnStores[e] ? this.columnStores[e] : (this.columnStores[e] = new T(), this.columnStores[e]);
555
- }
556
- registerRow(e, r) {
557
- return this.rowStores[e] ? this.rowStores[e] : (this.rowStores[e] = new T(), this.storesByType[r] = e, this.storesYToType[e] = r, this.rowStores[e]);
558
- }
559
- /**
560
- * Cross store proxy, based on multiple dimensions
561
- */
562
- register({ x: e, y: r }) {
563
- this.stores[r] || (this.stores[r] = {});
564
- let t = this.stores[r][e];
565
- return t || (this.stores[r][e] = t = new T(), t.onChange("range", (i) => {
566
- this.columnStores[e].setRangeArea(i), this.rowStores[r].setRangeArea(i);
567
- }), t.store.on("dispose", () => this.destroy(e, r)), t);
568
- }
569
- destroy(e, r) {
570
- var t, i;
571
- if ((t = this.columnStores[e]) === null || t === void 0 || t.dispose(), (i = this.rowStores[r]) === null || i === void 0 || i.dispose(), delete this.rowStores[r], delete this.columnStores[e], this.storesXToType[e]) {
572
- const s = this.storesXToType[e];
573
- delete this.storesXToType[e], delete this.storesByType[s];
574
- }
575
- if (this.storesYToType[r]) {
576
- const s = this.storesYToType[r];
577
- delete this.storesYToType[r], delete this.storesByType[s];
578
- }
579
- this.stores[r] && delete this.stores[r][e], Object.keys(this.stores[r] || {}).length || delete this.stores[r];
580
- }
581
- setEditByCell(e, r) {
582
- this.focusByCell(e, r, r), this.setEdit("");
583
- }
584
- /**
585
- * Sets the next focus cell before the current one.
586
- *
587
- * @param focus - The cell to set as the next focus.
588
- */
589
- beforeNextFocusCell(e) {
590
- var r;
591
- if (!this.focusedStore)
592
- return;
593
- const t = this.focusedStore.entity.store.get("lastCell"), i = t && this.getNextStore(e, this.focusedStore.position, t);
594
- (r = i == null ? void 0 : i.store) === null || r === void 0 || r.setNextFocus(Object.assign(Object.assign({}, e), i.item));
595
- }
596
- focusByCell(e, r, t) {
597
- const i = this.stores[e.y][e.x];
598
- this.focus(i, { focus: r, end: t });
599
- }
600
- focus(e, { focus: r, end: t }) {
601
- const i = this.getCurrentStorePointer(e);
602
- if (!i)
603
- return null;
604
- const s = e.store.get("lastCell"), n = s && this.getNextStore(r, i, s);
605
- if (n != null && n.store) {
606
- const a = Object.assign(Object.assign({}, r), n.item);
607
- return this.focus(n.store, { focus: a, end: a }), null;
608
- }
609
- return s && (r = I(r, s), t = I(t, s)), e.setFocus(r, t), r;
610
- }
611
- /**
612
- * Retrieves the current store pointer based on the active store.
613
- * Clears focus from all stores except the active one.
614
- */
615
- getCurrentStorePointer(e) {
616
- let r;
617
- for (let t in this.stores)
618
- for (let i in this.stores[t]) {
619
- const s = this.stores[t][i];
620
- s !== e ? s.clearFocus() : r = {
621
- x: parseInt(i, 10),
622
- y: parseInt(t, 10)
623
- };
624
- }
625
- return r;
626
- }
627
- /**
628
- * Retrieves the next store based on the focus cell and current store pointer.
629
- * If the next store exists, returns an object with the next store and the item in the new store.
630
- * If the next store does not exist, returns null.
631
- */
632
- getNextStore(e, r, t) {
633
- const i = re(e, t);
634
- let s;
635
- i && Object.keys(i).forEach((a) => {
636
- var l;
637
- const c = a, d = (l = i[c]) !== null && l !== void 0 ? l : 0;
638
- let u;
639
- switch (c) {
640
- case "x":
641
- u = this.getXStores(r.y);
642
- break;
643
- case "y":
644
- u = this.getYStores(r.x);
645
- break;
646
- }
647
- if (d >= 0)
648
- s = u[++r[c]];
649
- else {
650
- s = u[--r[c]];
651
- const p = s == null ? void 0 : s.store.get("lastCell");
652
- p && (i[c] = p[c] + d);
653
- }
654
- });
655
- const n = s == null ? void 0 : s.store.get("lastCell");
656
- return (!(n != null && n.x) || !(n != null && n.y)) && (s = void 0), {
657
- store: s,
658
- item: i
659
- };
660
- }
661
- clearAll() {
662
- var e;
663
- for (let r in this.stores)
664
- for (let t in this.stores[r])
665
- (e = this.stores[r][t]) === null || e === void 0 || e.clearFocus();
666
- }
667
- setEdit(e) {
668
- this.focusedStore && this.focusedStore.entity.setEdit(e);
669
- }
670
- /**
671
- * Select all cells across all stores
672
- */
673
- selectAll() {
674
- for (let e in this.stores)
675
- for (let r in this.stores[e]) {
676
- const t = this.stores[e][r];
677
- if (!t)
678
- continue;
679
- const i = t.store.get("lastCell");
680
- i && t.setRange({ x: 0, y: 0 }, { x: i.x - 1, y: i.y - 1 });
681
- }
682
- }
683
- getXStores(e) {
684
- return this.stores[e];
685
- }
686
- getYStores(e) {
687
- const r = {};
688
- for (let t in this.stores)
689
- r[t] = this.stores[t][e];
690
- return r;
691
- }
692
- /**
693
- * Keep column viewport positions and types in sync across pin/unpin rerenders.
694
- * Regression case: when a selected rgCol cell was pinned left, colPinStart
695
- * could take over x=0 and render the stale rgCol focus store in the pinned area.
696
- */
697
- updateColumnTypeMapping(e, r) {
698
- const t = this.storesXToType[e], i = this.storesByType[r];
699
- let s = !1;
700
- this.storesByType[r] = e, this.storesXToType[e] = r, t && t !== r && (s = !0, this.storesByType[t] === e && delete this.storesByType[t]), typeof i == "number" && i !== e && this.storesXToType[i] === r && (delete this.storesXToType[i], s = !0), s && this.clearAll();
701
- }
702
- }
703
- class we {
704
- constructor() {
705
- this.parentY = 0;
706
- }
707
- start(e, { pos: r, text: t, event: i }) {
708
- var s;
709
- const { top: n } = e.getBoundingClientRect();
710
- this.parentY = n, this.text && (this.text.innerText = t), this.move(r), this.moveTip({ x: i.x, y: i.y }), (s = this.el) === null || s === void 0 || s.classList.remove("hidden");
711
- }
712
- end() {
713
- var e;
714
- (e = this.el) === null || e === void 0 || e.classList.add("hidden");
715
- }
716
- move(e) {
717
- this.moveElement(e.end - this.parentY);
718
- }
719
- moveTip({ x: e, y: r }) {
720
- this.draggable && (this.draggable.style.left = `${e}px`, this.draggable.style.top = `${r}px`);
721
- }
722
- moveElement(e) {
723
- this.rgRow && (this.rgRow.style.transform = `translateY(${e}px)`);
724
- }
725
- }
726
- const Ce = ({ ref: o }) => {
727
- const e = new we();
728
- return o(e), v("div", { class: "draggable-wrapper hidden", ref: (r) => e.el = r }, v("div", { class: "draggable", ref: (r) => e.draggable = r }, v("span", { class: "revo-alt-icon" }), v("span", { ref: (r) => e.text = r })), v("div", { class: "drag-position", ref: (r) => e.rgRow = r }));
729
- }, be = (o = []) => {
730
- const e = {};
731
- for (const r of o) {
732
- let t = e[r.type];
733
- t || (t = e[r.type] = {}), typeof r.size == "number" && (t.sizes || (t.sizes = {}), t.sizes[r.index] = r.size);
734
- }
735
- return e;
736
- }, Se = (o = []) => {
737
- const e = {};
738
- for (const r of o) {
739
- let t = e[r.type];
740
- t || (t = e[r.type] = []), typeof r.size == "number" && t.push(r.index);
741
- }
742
- return e;
743
- };
744
- function xe() {
745
- return /Mobi/i.test(navigator.userAgent) || /Android/i.test(navigator.userAgent) || navigator.maxTouchPoints > 0;
746
- }
747
- class ye extends H {
748
- constructor(e, r) {
749
- super(e, r), e.setAttribute("role", "treegrid"), e.setAttribute("aria-keyshortcuts", "Enter"), e.setAttribute("aria-multiselectable", "true"), e.setAttribute("tabindex", "0"), this.addEventListener("beforecolumnsset", ({ detail: t }) => {
750
- const i = [
751
- ...t.columns.colPinStart,
752
- ...t.columns.rgCol,
753
- ...t.columns.colPinEnd
754
- ];
755
- e.setAttribute("aria-colcount", `${i.length}`), i.forEach((s, n) => {
756
- const { columnProperties: a, cellProperties: l } = s;
757
- s.columnProperties = (...c) => {
758
- const d = (a == null ? void 0 : a(...c)) || {};
759
- return d.role = "columnheader", d["aria-colindex"] = `${n}`, d;
760
- }, s.cellProperties = (...c) => {
761
- const d = {
762
- role: "gridcell",
763
- "aria-colindex": `${n}`,
764
- "aria-rowindex": `${c[0].rowIndex}`,
765
- tabindex: -1
766
- }, u = (l == null ? void 0 : l(...c)) || {};
767
- return Object.assign(Object.assign({}, d), u);
768
- };
769
- });
770
- }), this.addEventListener("beforesourceset", ({ detail: t }) => {
771
- e.setAttribute("aria-rowcount", `${t.source.length}`);
772
- }), this.addEventListener("beforerowrender", ({ detail: t }) => {
773
- t.node.$attrs$ = Object.assign(Object.assign({}, t.node.$attrs$), { role: "row", "aria-rowindex": t.item.itemIndex });
774
- }), this.addEventListener("afterfocus", async (t) => {
775
- if (t.defaultPrevented)
776
- return;
777
- const i = this.revogrid.querySelector(`revogr-data[type="${t.detail.rowType}"][col-type="${t.detail.colType}"] [data-rgrow="${t.detail.rowIndex}"][data-rgcol="${t.detail.colIndex}"]`);
778
- i instanceof HTMLElement && i.focus();
779
- });
780
- }
781
- }
782
- class Pe {
783
- constructor() {
784
- this.internalPlugins = [];
785
- }
786
- /**
787
- * Get all plugins
788
- */
789
- get() {
790
- return [...this.internalPlugins];
791
- }
792
- /**
793
- * Add plugin to collection
794
- */
795
- add(e) {
796
- this.internalPlugins.push(e);
797
- }
798
- /**
799
- * Add user plugins and create
800
- */
801
- addUserPluginsAndCreate(e, r = [], t, i) {
802
- if (!i)
803
- return;
804
- ((t == null ? void 0 : t.filter((n) => !r.some((a) => a === n))) || []).forEach((n) => {
805
- var a, l;
806
- const c = this.internalPlugins.findIndex((d) => d instanceof n);
807
- c !== -1 && ((l = (a = this.internalPlugins[c]).destroy) === null || l === void 0 || l.call(a), this.internalPlugins.splice(c, 1));
808
- }), r == null || r.forEach((n) => {
809
- this.internalPlugins.find((l) => l instanceof n) || this.add(new n(e, i));
810
- });
811
- }
812
- /**
813
- * Get plugin by class
814
- */
815
- getByClass(e) {
816
- return this.internalPlugins.find((r) => r instanceof e);
817
- }
818
- /**
819
- * Remove plugin
820
- */
821
- remove(e) {
822
- var r, t;
823
- const i = this.internalPlugins.indexOf(e);
824
- i > -1 && ((t = (r = this.internalPlugins[i]).destroy) === null || t === void 0 || t.call(r), this.internalPlugins.splice(i, 1));
825
- }
826
- /**
827
- * Remove all plugins
828
- */
829
- destroy() {
830
- this.internalPlugins.forEach((e) => {
831
- var r;
832
- return (r = e.destroy) === null || r === void 0 ? void 0 : r.call(e);
833
- }), this.internalPlugins = [];
834
- }
835
- }
836
- class Te extends H {
837
- constructor(e, r) {
838
- super(e, r), this.isRTLEnabled = !1, this.init();
839
- }
840
- init() {
841
- this.addEventListener("beforecolumnsset", (e) => {
842
- this.handleBeforeColumnsSet(e);
843
- }), this.addEventListener("aftergridinit", () => {
844
- this.updateRTLState();
845
- }), this.watch("rtl", (e) => {
846
- this.isRTLEnabled = e, this.emit("rtlstatechanged", { rtl: this.isRTLEnabled });
847
- }, { immediate: !0 });
848
- }
849
- /**
850
- * Handle the beforecolumnsset event to apply RTL transformation
851
- */
852
- handleBeforeColumnsSet(e) {
853
- if (!this.isRTLEnabled)
854
- return;
855
- const r = e.detail, t = this.applyRTLTransformationToCollection(r);
856
- e.detail.columns = t.columns, e.detail.columnByProp = t.columnByProp, e.detail.columnGrouping = t.columnGrouping;
857
- }
858
- /**
859
- * Apply RTL transformation to the entire column collection
860
- */
861
- applyRTLTransformationToCollection(e) {
862
- const r = {
863
- columns: {
864
- rgCol: [],
865
- colPinStart: [],
866
- colPinEnd: []
867
- },
868
- columnByProp: Object.assign({}, e.columnByProp),
869
- columnGrouping: {
870
- rgCol: [],
871
- colPinStart: [],
872
- colPinEnd: []
873
- },
874
- maxLevel: e.maxLevel,
875
- sort: Object.assign({}, e.sort)
876
- };
877
- return Object.keys(e.columns).forEach((t) => {
878
- const i = t, s = e.columns[i], n = [...s].reverse();
879
- r.columns[i] = n, r.columnGrouping[i] = this.applyRTLTransformationToGroups(e.columnGrouping[i], s.length);
880
- }), r;
881
- }
882
- /**
883
- * Apply RTL transformation to column groups
884
- */
885
- applyRTLTransformationToGroups(e, r) {
886
- return e.map((t) => {
887
- const i = t.indexes.map((s) => r - 1 - s).reverse();
888
- return Object.assign(Object.assign({}, t), { indexes: i });
889
- }).reverse();
890
- }
891
- /**
892
- * Update RTL state based on the grid's rtl property
893
- */
894
- updateRTLState() {
895
- const e = this.revogrid;
896
- e && typeof e.rtl == "boolean" && (this.isRTLEnabled = e.rtl);
897
- }
898
- /**
899
- * Get current RTL state
900
- */
901
- getRTLState() {
902
- return this.isRTLEnabled;
903
- }
904
- /**
905
- * Clean up the plugin
906
- */
907
- destroy() {
908
- super.destroy();
909
- }
910
- }
911
- const Re = () => `revo-grid[theme=default],revo-grid:not([theme]){border:1px solid var(--revo-grid-header-border);font-size:12px}revo-grid[theme=default] .rowHeaders revogr-header,revo-grid:not([theme]) .rowHeaders revogr-header{box-shadow:-1px 0 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-header,revo-grid:not([theme]) revogr-header{text-align:center;line-height:30px;background-color:var(--revo-grid-header-bg)}revo-grid[theme=default] revogr-header .group-rgRow,revo-grid:not([theme]) revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .group-rgRow .rgHeaderCell,revo-grid:not([theme]) revogr-header .group-rgRow .rgHeaderCell{box-shadow:-1px 0 0 0 var(--revo-grid-header-border), -1px 0 0 0 var(--revo-grid-header-border) inset, 0 -1px 0 0 var(--revo-grid-header-border), 0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow,revo-grid:not([theme]) revogr-header .header-rgRow,revo-grid:not([theme]) revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:var(--revo-grid-header-color)}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid:not([theme]) revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-header .rgHeaderCell,revo-grid:not([theme]) revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 var(--revo-grid-header-border) inset, 0 -1px 0 0 var(--revo-grid-header-border), 0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] .rowHeaders,revo-grid:not([theme]) .rowHeaders{background-color:var(--revo-grid-header-bg)}revo-grid[theme=default] .rowHeaders revogr-data .rgCell,revo-grid:not([theme]) .rowHeaders revogr-data .rgCell{color:var(--revo-grid-header-color)}revo-grid[theme=default] .rowHeaders revogr-data .rgCell:first-child,revo-grid:not([theme]) .rowHeaders revogr-data .rgCell:first-child{box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] .rowHeaders revogr-data .rgCell:not(:first-child),revo-grid:not([theme]) .rowHeaders revogr-data .rgCell:not(:first-child){box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset, 1px 0 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] .rowHeaders revogr-data .rgCell:last-child,revo-grid:not([theme]) .rowHeaders revogr-data .rgCell:last-child{border-right:1px solid var(--revo-grid-header-border)}revo-grid[theme=default] .rowHeaders revogr-data revogr-header,revo-grid:not([theme]) .rowHeaders revogr-data revogr-header{box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child,revo-grid:not([theme]) revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 var(--revo-grid-cell-border) inset, -1px 0 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell,revo-grid:not([theme]) revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 var(--revo-grid-header-border) inset, -1px 0 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header,revo-grid:not([theme]) revogr-viewport-scroll.colPinEnd,revo-grid:not([theme]) revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 var(--revo-grid-header-border) inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell,revo-grid:not([theme]) .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 var(--revo-grid-cell-border) inset, -1px 0 0 0 var(--revo-grid-cell-border) inset, 0 -1px 0 0 var(--revo-grid-cell-border) inset}revo-grid[theme=default] revogr-data,revo-grid:not([theme]) revogr-data{text-align:center}revo-grid[theme=default] revogr-data .revo-draggable,revo-grid:not([theme]) revogr-data .revo-draggable{float:left}revo-grid[theme=default] revogr-data .rgRow,revo-grid:not([theme]) revogr-data .rgRow{line-height:27px}revo-grid[theme=default] revogr-data .rgCell,revo-grid:not([theme]) revogr-data .rgCell{box-shadow:0 -1px 0 0 var(--revo-grid-cell-border) inset, -1px 0 0 0 var(--revo-grid-cell-border) inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid[dir=rtl] .viewports{flex-direction:row-reverse}revo-grid[dir=rtl] revogr-header .rgHeaderCell{text-align:right}revo-grid[dir=rtl] revogr-data .rgCell{text-align:right}revo-grid[dir=rtl] .rowHeaders revogr-data .rgCell{text-align:right}revo-grid[dir=rtl] revogr-filter-panel{direction:rtl}revo-grid[dir=rtl] revo-dropdown .rv-dr-root{text-align:right}revo-grid[dir=rtl] .drag-position{right:0;left:auto}revo-grid[dir=rtl] .drag-auto-scroll-y{right:0;left:auto}revo-grid[dir=rtl] .clipboard{right:0;left:auto}revo-grid[dir=rtl] .draggable{margin-left:-20px;margin-right:0;padding-right:20px;padding-left:5px}revo-grid[dir=rtl] .draggable .revo-alt-icon{right:5px;left:auto}revo-grid[dir=rtl] .focused-cell{border-right:2px solid var(--revo-grid-primary);border-left:none}revo-grid[dir=rtl] .selection-range{border-right:2px solid var(--revo-grid-primary);border-left:none}revo-grid[dir=rtl] .resize-handle{right:0;left:auto}revo-grid[dir=rtl] .sort-indicator{margin-left:0;margin-right:5px}revo-grid[dir=rtl] .filter-button{margin-left:0;margin-right:5px}revo-grid[dir=rtl] .group-expand{margin-right:0;margin-left:2px;padding-right:5px;padding-left:0}revo-grid[dir=rtl] .rgCell,revo-grid[dir=rtl] .rgHeaderCell{padding-left:5px;padding-right:5px}revo-grid[dir=rtl] revogr-edit{direction:rtl}revo-grid[dir=rtl] .rgHeaderCell{direction:rtl}revo-grid[dir=rtl][theme=material] revogr-header,revo-grid[dir=rtl][theme=darkMaterial] revogr-header{text-align:right}revo-grid[dir=rtl][theme=material] revogr-data,revo-grid[dir=rtl][theme=darkMaterial] revogr-data{text-align:right}revo-grid[dir=rtl][theme=default] .rowHeaders,revo-grid[dir=rtl]:not([theme]) .rowHeaders{background-color:var(--revo-grid-header-bg)}revo-grid[dir=rtl][theme=default] .rowHeaders revogr-data .rgCell,revo-grid[dir=rtl]:not([theme]) .rowHeaders revogr-data .rgCell{color:var(--revo-grid-header-color)}revo-grid[dir=rtl][theme=default] .rowHeaders revogr-data .rgCell:first-child,revo-grid[dir=rtl]:not([theme]) .rowHeaders revogr-data .rgCell:first-child{box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[dir=rtl][theme=default] .rowHeaders revogr-data .rgCell:not(:first-child),revo-grid[dir=rtl]:not([theme]) .rowHeaders revogr-data .rgCell:not(:first-child){box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset, 1px 0 0 0 var(--revo-grid-header-border) inset}revo-grid[dir=rtl][theme=default] .rowHeaders revogr-data .rgCell:last-child,revo-grid[dir=rtl]:not([theme]) .rowHeaders revogr-data .rgCell:last-child{border-left:1px solid var(--revo-grid-header-border);border-right:none}revo-grid[dir=rtl][theme=default] .rowHeaders revogr-data revogr-header,revo-grid[dir=rtl]:not([theme]) .rowHeaders revogr-data revogr-header{box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid[dir=rtl][theme=default] revogr-header,revo-grid[dir=rtl]:not([theme]) revogr-header{text-align:right}revo-grid[dir=rtl][theme=default] revogr-data,revo-grid[dir=rtl]:not([theme]) revogr-data{text-align:right}revo-grid[dir=rtl][theme=compact] revogr-header,revo-grid[dir=rtl][theme=darkCompact] revogr-header{text-align:right}revo-grid[dir=rtl][theme=compact] revogr-data,revo-grid[dir=rtl][theme=darkCompact] revogr-data{text-align:right}.revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before{content:"::";display:inline-block}.revo-alt-icon{-webkit-mask-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}revo-grid{--revo-grid-primary:#266ae8;--revo-grid-primary-transparent:rgba(38, 106, 232, 0.9);--revo-grid-background:#fff;--revo-grid-foreground:black;--revo-grid-divider:gray;--revo-grid-shadow:rgba(0, 0, 0, 0.15);--revo-grid-text:black;--revo-grid-border:rgba(0, 0, 0, 0.2);--revo-grid-filter-panel-bg:#fff;--revo-grid-filter-panel-border:#d9d9d9;--revo-grid-filter-panel-shadow:rgba(0, 0, 0, 0.15);--revo-grid-filter-panel-input-bg:#eaeaeb;--revo-grid-filter-panel-divider:#d9d9d9;--revo-grid-filter-panel-select-border:transparent;--revo-grid-filter-panel-select-border-hover:transparent;--revo-grid-header-bg:#f8f9fa;--revo-grid-header-color:#000;--revo-grid-header-border:#cecece;--revo-grid-cell-border:#e2e3e3;--revo-grid-focused-bg:rgba(233, 234, 237, 0.5);--revo-grid-row-hover:#f1f1f1;--revo-grid-row-headers-bg:#f7faff;--revo-grid-row-headers-color:#757a82;--revo-grid-cell-disabled-bg:rgba(0, 0, 0, 0.07);direction:ltr !important;display:flex !important;height:100%;min-height:300px;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;color:var(--revo-grid-text);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid[theme*=dark]{--revo-grid-background:#212529;--revo-grid-foreground:#fff;--revo-grid-text:rgba(255, 255, 255, 0.9);--revo-grid-divider:#505050;--revo-grid-border:rgba(255, 255, 255, 0.2);--revo-grid-filter-panel-bg:#212529;--revo-grid-filter-panel-border:#505050;--revo-grid-filter-panel-input-bg:#343a40;--revo-grid-filter-panel-divider:#505050;--revo-grid-header-bg:#343a40;--revo-grid-header-color:#fff;--revo-grid-header-border:#505050;--revo-grid-cell-border:#424242;--revo-grid-focused-bg:rgba(52, 58, 64, 0.5);--revo-grid-row-hover:rgba(80, 80, 80, 0.5);--revo-grid-row-headers-bg:rgba(52, 58, 64, 0.8);--revo-grid-row-headers-color:rgba(255, 255, 255, 0.8);--revo-grid-cell-disabled-bg:rgba(255, 255, 255, 0.07)}revo-grid revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 var(--revo-grid-header-border), 0 -1px 0 0 var(--revo-grid-header-border) inset}revo-grid revogr-header .rgHeaderCell.sortable:hover{background-color:var(--revo-grid-row-hover)}revo-grid revogr-header .rgHeaderCell.focused-cell{background:var(--revo-grid-focused-bg)}revo-grid .footer-wrapper revogr-data{box-shadow:0 -1px 0 var(--revo-grid-cell-border)}revo-grid revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 var(--revo-grid-cell-border) inset}revo-grid revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 var(--revo-grid-cell-border)}revo-grid revogr-data .rgRow{box-shadow:0 -1px 0 0 var(--revo-grid-cell-border) inset}revo-grid revogr-data .rgRow.focused-rgRow{background-color:var(--revo-grid-focused-bg)}revo-grid revogr-data .rgCell{color:var(--revo-grid-text)}revo-grid revogr-data .rgCell.disabled{background-color:var(--revo-grid-cell-disabled-bg)}revo-grid .attribution{position:absolute;bottom:0;left:0;right:0;z-index:1000;width:0;height:0;border-left:4px solid var(--revo-grid-primary-transparent);border-bottom:4px solid var(--revo-grid-primary-transparent);border-top:4px solid transparent;border-right:4px solid transparent;cursor:pointer}revo-grid .attribution .value{position:absolute;bottom:0;left:0;background-color:var(--revo-grid-background);padding:4px;border-radius:4px;box-shadow:0 1px 10px var(--revo-grid-border);white-space:nowrap;text-decoration:none;color:var(--revo-grid-text);letter-spacing:0.3px;font-size:11px;opacity:0;width:4px;overflow:hidden;transition:opacity 0.5s ease-in-out, width 0.3s ease-in-out}revo-grid .attribution:hover .value{width:63px;opacity:1}revo-grid.column-draggable.column-drag-start:hover,revo-grid.column-draggable.column-drag-start *:hover{cursor:grabbing}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-width:100%;display:flex;flex-direction:row;align-items:flex-start;flex-grow:1}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;justify-content:space-between;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:var(--revo-grid-background);border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 var(--revo-grid-shadow);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:var(--revo-grid-foreground);position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:var(--revo-grid-divider);pointer-events:none}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:var(--revo-grid-divider);pointer-events:none}revo-grid .drag-auto-scroll-y{pointer-events:none;position:absolute;left:0;top:0;height:50px;width:1px}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}`, ze = class {
912
- constructor(o) {
913
- B(this, o), this.contentsizechanged = g(this, "contentsizechanged", 7), this.beforeedit = g(this, "beforeedit", 7), this.beforerangeedit = g(this, "beforerangeedit", 7), this.afteredit = g(this, "afteredit", 7), this.beforeautofill = g(this, "beforeautofill", 7), this.beforerange = g(this, "beforerange", 7), this.afterfocus = g(this, "afterfocus", 7), this.roworderchanged = g(this, "roworderchanged", 7), this.beforesorting = g(this, "beforesorting", 7), this.beforesourcesortingapply = g(this, "beforesourcesortingapply", 7), this.beforesortingapply = g(this, "beforesortingapply", 7), this.rowdragstart = g(this, "rowdragstart", 7), this.headerclick = g(this, "headerclick", 7), this.beforecellfocus = g(this, "beforecellfocus", 7), this.beforefocuslost = g(this, "beforefocuslost", 7), this.beforesourceset = g(this, "beforesourceset", 7), this.beforeanysource = g(this, "beforeanysource", 7), this.aftersourceset = g(this, "aftersourceset", 7), this.afteranysource = g(this, "afteranysource", 7), this.beforecolumnsgather = g(this, "beforecolumnsgather", 7), this.beforecolumnsset = g(this, "beforecolumnsset", 7), this.beforecolumnapplied = g(this, "beforecolumnapplied", 7), this.aftercolumnsset = g(this, "aftercolumnsset", 7), this.beforefilterapply = g(this, "beforefilterapply", 7), this.beforefiltertrimmed = g(this, "beforefiltertrimmed", 7), this.beforetrimmed = g(this, "beforetrimmed", 7), this.aftertrimmed = g(this, "aftertrimmed", 7), this.viewportscroll = g(this, "viewportscroll", 7), this.beforeexport = g(this, "beforeexport", 7), this.beforeeditstart = g(this, "beforeeditstart", 7), this.aftercolumnresize = g(this, "aftercolumnresize", 7), this.beforerowdefinition = g(this, "beforerowdefinition", 7), this.filterconfigchanged = g(this, "filterconfigchanged", 7), this.sortingconfigchanged = g(this, "sortingconfigchanged", 7), this.rowheaderschanged = g(this, "rowheaderschanged", 7), this.beforegridrender = g(this, "beforegridrender", 7), this.aftergridrender = g(this, "aftergridrender", 7), this.aftergridinit = g(this, "aftergridinit", 7), this.additionaldatachanged = g(this, "additionaldatachanged", 7), this.afterthemechanged = g(this, "afterthemechanged", 7), this.created = g(this, "created", 7), this.frameSize = 1, this.rowSize = 0, this.colSize = 100, this.range = !1, this.readonly = !1, this.resize = !1, this.noHorizontalScrollTransfer = !1, this.canFocus = !0, this.useClipboard = !0, this.columns = [], this.source = [], this.pinnedTopSource = [], this.pinnedBottomSource = [], this.rowDefinitions = [], this.editors = {}, this.applyOnClose = !1, this.plugins = [], this.columnTypes = {}, this.theme = "default", this.rowClass = "", this.autoSizeColumn = !1, this.filter = !1, this.canMoveColumns = !1, this.trimmedRows = {}, this.exporting = !1, this.stretch = !1, this.additionalData = {}, this.disableVirtualX = !1, this.disableVirtualY = !1, this.hideAttribution = !1, this.jobsBeforeRender = [], this.registerVNode = [], this.accessible = !0, this.rtl = !1, this.canDrag = !0, this.extraElements = [], this.pluginService = new Pe(), this.viewport = null, this.isInited = !1;
914
- }
915
- // #endregion
916
- // #region Methods
917
- /**
918
- * Refreshes data viewport.
919
- * Can be specific part as rgRow or pinned rgRow or 'all' by default.
920
- */
921
- async refresh(o = "all") {
922
- if (!this.dataProvider)
923
- throw new Error("Not connected");
924
- this.dataProvider.refresh(o);
925
- }
926
- /**
927
- * Refreshes data at specified cell.
928
- * Useful for performance optimization.
929
- * No viewport update will be triggered.
930
- *
931
- * @example
932
- * const grid = document.querySelector('revo-grid');
933
- * grid.setDataAt({ row: 0, col: 0, val: 'test' }); // refresh
934
- */
935
- async setDataAt({ row: o, col: e, colType: r = "rgCol", rowType: t = "rgRow", val: i, skipDataUpdate: s = !1 }) {
936
- var n;
937
- if (this.dataProvider && this.columnProvider && !s) {
938
- const l = (n = this.columnProvider.getColumn(e, r)) === null || n === void 0 ? void 0 : n.prop;
939
- typeof l < "u" && this.dataProvider.setCellData({
940
- type: t,
941
- rowIndex: o,
942
- prop: l,
943
- val: i
944
- }, !1);
945
- }
946
- const a = this.element.querySelector(`revogr-data[type="${t}"][col-type="${r}"]`);
947
- return a == null ? void 0 : a.updateCell({
948
- row: o,
949
- col: e
950
- });
951
- }
952
- /**
953
- * Scrolls viewport to specified row by index.
954
- */
955
- async scrollToRow(o = 0) {
956
- if (!this.dimensionProvider)
957
- throw new Error("Not connected");
958
- const e = this.dimensionProvider.getViewPortPos({
959
- coordinate: o,
960
- dimension: "rgRow"
961
- });
962
- await this.scrollToCoordinate({ y: e });
963
- }
964
- /**
965
- * Scrolls viewport to specified column by index.
966
- */
967
- async scrollToColumnIndex(o = 0) {
968
- if (!this.dimensionProvider)
969
- throw new Error("Not connected");
970
- const e = this.dimensionProvider.getViewPortPos({
971
- coordinate: o,
972
- dimension: "rgCol"
973
- });
974
- await this.scrollToCoordinate({ x: e });
975
- }
976
- /**
977
- * Scrolls viewport to specified column by prop
978
- */
979
- async scrollToColumnProp(o, e = "rgCol") {
980
- if (!this.dimensionProvider || !this.columnProvider)
981
- throw new Error("Not connected");
982
- const r = this.columnProvider.getColumnIndexByProp(o, e);
983
- if (r < 0)
984
- return;
985
- const t = this.dimensionProvider.getViewPortPos({
986
- coordinate: r,
987
- dimension: e
988
- });
989
- await this.scrollToCoordinate({ x: t });
990
- }
991
- /** Update columns */
992
- async updateColumns(o) {
993
- var e;
994
- (e = this.columnProvider) === null || e === void 0 || e.updateColumns(o);
995
- }
996
- /** Add trimmed by type */
997
- async addTrimmed(o, e = "external", r = "rgRow") {
998
- if (!this.dataProvider)
999
- throw new Error("Not connected");
1000
- const t = this.beforetrimmed.emit({
1001
- trimmed: o,
1002
- trimmedType: e,
1003
- type: r
1004
- });
1005
- return t.defaultPrevented || (this.dataProvider.setTrimmed({ [e]: t.detail.trimmed }, r), this.aftertrimmed.emit()), t;
1006
- }
1007
- /** Scrolls view port to coordinate */
1008
- async scrollToCoordinate(o) {
1009
- var e;
1010
- (e = this.viewport) === null || e === void 0 || e.scrollToCell(o);
1011
- }
1012
- /** Open editor for cell. */
1013
- async setCellEdit(o, e, r = "rgRow") {
1014
- var t;
1015
- const i = z(this.columns, e);
1016
- if (!i)
1017
- return;
1018
- await E();
1019
- const s = i.pin || "rgCol";
1020
- if (!this.columnProvider)
1021
- throw new Error("Not connected");
1022
- (t = this.viewport) === null || t === void 0 || t.setEdit(o, this.columnProvider.getColumnIndexByProp(e, s), s, r);
1023
- }
1024
- /** Set focus range. */
1025
- async setCellsFocus(o = { x: 0, y: 0 }, e = { x: 0, y: 0 }, r = "rgCol", t = "rgRow") {
1026
- var i;
1027
- (i = this.viewport) === null || i === void 0 || i.setFocus(r, t, o, e);
1028
- }
1029
- /** Get data from source */
1030
- async getSource(o = "rgRow") {
1031
- if (!this.dataProvider)
1032
- throw new Error("Not connected");
1033
- return this.dataProvider.stores[o].store.get("source");
1034
- }
1035
- /**
1036
- * Get data from visible part of source
1037
- * Trimmed/filtered rows will be excluded
1038
- * @param type - type of source
1039
- */
1040
- async getVisibleSource(o = "rgRow") {
1041
- if (!this.dataProvider)
1042
- throw new Error("Not connected");
1043
- return R(this.dataProvider.stores[o].store);
1044
- }
1045
- /**
1046
- * Provides access to rows internal store observer
1047
- * Can be used for plugin support
1048
- * @param type - type of source
1049
- */
1050
- async getSourceStore(o = "rgRow") {
1051
- if (!this.dataProvider)
1052
- throw new Error("Not connected");
1053
- return this.dataProvider.stores[o].store;
1054
- }
1055
- /**
1056
- * Provides access to column internal store observer
1057
- * Can be used for plugin support
1058
- * @param type - type of column
1059
- */
1060
- async getColumnStore(o = "rgCol") {
1061
- if (!this.columnProvider)
1062
- throw new Error("Not connected");
1063
- return this.columnProvider.stores[o].store;
1064
- }
1065
- /**
1066
- * Update column sorting
1067
- * @param column - column prop and cellCompare
1068
- * @param order - order to apply
1069
- * @param additive - if false will replace current order
1070
- *
1071
- * later passed to SortingPlugin
1072
- */
1073
- async updateColumnSorting(o, e, r) {
1074
- this.sortingconfigchanged.emit({
1075
- columns: [{
1076
- prop: o.prop,
1077
- order: e,
1078
- cellCompare: o.cellCompare
1079
- }],
1080
- additive: r
1081
- });
1082
- }
1083
- /**
1084
- * Clears column sorting
1085
- */
1086
- async clearSorting() {
1087
- this.sortingconfigchanged.emit({
1088
- columns: []
1089
- });
1090
- }
1091
- /**
1092
- * Receive all columns in data source
1093
- */
1094
- async getColumns() {
1095
- if (!this.columnProvider)
1096
- throw new Error("Not connected");
1097
- return this.columnProvider.getColumns();
1098
- }
1099
- /**
1100
- * Clear current grid focus. Grid has no longer focus on it.
1101
- */
1102
- async clearFocus() {
1103
- var o, e;
1104
- const r = (o = this.viewport) === null || o === void 0 ? void 0 : o.getFocused();
1105
- this.beforefocuslost.emit(r).defaultPrevented || (e = this.selectionStoreConnector) === null || e === void 0 || e.clearAll();
1106
- }
1107
- /**
1108
- * Get all active plugins instances
1109
- */
1110
- async getPlugins() {
1111
- return this.pluginService.get();
1112
- }
1113
- /**
1114
- * Get the currently focused cell.
1115
- */
1116
- async getFocused() {
1117
- var o, e;
1118
- return (e = (o = this.viewport) === null || o === void 0 ? void 0 : o.getFocused()) !== null && e !== void 0 ? e : null;
1119
- }
1120
- /**
1121
- * Get size of content
1122
- * Including all pinned data
1123
- */
1124
- async getContentSize() {
1125
- var o;
1126
- if (!this.dimensionProvider)
1127
- throw new Error("Not connected");
1128
- return (o = this.dimensionProvider) === null || o === void 0 ? void 0 : o.getFullSize();
1129
- }
1130
- /**
1131
- * Get the currently selected Range.
1132
- */
1133
- async getSelectedRange() {
1134
- var o, e;
1135
- return (e = (o = this.viewport) === null || o === void 0 ? void 0 : o.getSelectedRange()) !== null && e !== void 0 ? e : null;
1136
- }
1137
- /**
1138
- * Refresh extra elements. Triggers re-rendering of extra elements and functions.
1139
- * Part of extraElements and registerVNode methods.
1140
- * Useful for plugins.
1141
- */
1142
- async refreshExtraElements() {
1143
- var o;
1144
- (o = this.extraService) === null || o === void 0 || o.refresh();
1145
- }
1146
- /**
1147
- * Get all providers for grid
1148
- * Useful for external grid integration
1149
- */
1150
- async getProviders() {
1151
- return this.getPluginData();
1152
- }
1153
- mousedownHandle(o) {
1154
- const e = S(o, "screenX"), r = S(o, "screenY");
1155
- e === null || r === null || (this.clickTrackForFocusClear = e + r);
1156
- }
1157
- /**
1158
- * To keep your elements from losing focus use mouseup/touchend e.preventDefault();
1159
- */
1160
- async mouseupHandle(o) {
1161
- var e;
1162
- const r = S(o, "screenX"), t = S(o, "screenY");
1163
- if (r === null || t === null || o.defaultPrevented)
1164
- return;
1165
- const i = r + t;
1166
- if (Math.abs(((e = this.clickTrackForFocusClear) !== null && e !== void 0 ? e : 0) - i) > 10)
1167
- return;
1168
- const s = o.composedPath();
1169
- !s.includes(this.element) && !(this.element.shadowRoot && s.includes(this.element.shadowRoot)) && await this.clearFocus();
1170
- }
1171
- // #endregion
1172
- // #region Listeners
1173
- /** Drag events */
1174
- onRowDragStarted(o) {
1175
- var e;
1176
- const r = this.rowdragstart.emit(o.detail);
1177
- if (r.defaultPrevented) {
1178
- o.preventDefault();
1179
- return;
1180
- }
1181
- (e = this.orderService) === null || e === void 0 || e.start(this.element, Object.assign(Object.assign({}, o.detail), r.detail));
1182
- }
1183
- onRowDragEnd() {
1184
- var o;
1185
- (o = this.orderService) === null || o === void 0 || o.end();
1186
- }
1187
- onRowOrderChange(o) {
1188
- var e;
1189
- (e = this.dataProvider) === null || e === void 0 || e.changeOrder(o.detail);
1190
- }
1191
- onRowDrag({ detail: o }) {
1192
- var e;
1193
- (e = this.orderService) === null || e === void 0 || e.move(o);
1194
- }
1195
- onRowMouseMove(o) {
1196
- var e;
1197
- (e = this.orderService) === null || e === void 0 || e.moveTip(o.detail);
1198
- }
1199
- async onCellEdit(o) {
1200
- var e;
1201
- const { defaultPrevented: r, detail: t } = this.beforeedit.emit(o.detail);
1202
- await E(), r || ((e = this.dataProvider) === null || e === void 0 || e.setCellData(t), this.afteredit.emit(t));
1203
- }
1204
- onRangeEdit(o) {
1205
- if (!this.dataProvider)
1206
- throw new Error("Not connected");
1207
- const { defaultPrevented: e, detail: r } = this.beforerangeedit.emit(o.detail);
1208
- if (e) {
1209
- o.preventDefault();
1210
- return;
1211
- }
1212
- this.dataProvider.setRangeData(r.data, r.type), this.afteredit.emit(r);
1213
- }
1214
- onRangeChanged(o) {
1215
- const e = this.beforerange.emit(o.detail);
1216
- e.defaultPrevented && o.preventDefault(), this.beforeautofill.emit(e.detail).defaultPrevented && o.preventDefault();
1217
- }
1218
- onRowDropped(o) {
1219
- const { defaultPrevented: e } = this.roworderchanged.emit(o.detail);
1220
- e && o.preventDefault();
1221
- }
1222
- onHeaderClick(o) {
1223
- const { defaultPrevented: e } = this.headerclick.emit(Object.assign(Object.assign({}, o.detail.column), { originalEvent: o.detail.originalEvent }));
1224
- e && o.preventDefault();
1225
- }
1226
- onCellFocus(o) {
1227
- const { defaultPrevented: e } = this.beforecellfocus.emit(o.detail);
1228
- (!this.canFocus || e) && o.preventDefault();
1229
- }
1230
- // #endregion
1231
- // #region Watchers
1232
- columnTypesChanged() {
1233
- this.columnChanged(this.columns);
1234
- }
1235
- columnChanged(o = [], e = void 0, r = "columns", t = !1) {
1236
- if (!this.dimensionProvider || !this.columnProvider)
1237
- return;
1238
- const i = t ? void 0 : this.getColumnFocusRestore(), s = this.beforecolumnsgather.emit({
1239
- columns: [...o]
1240
- });
1241
- if (s.defaultPrevented)
1242
- return;
1243
- const n = j(s.detail.columns, 0, this.columnTypes), a = this.beforecolumnsset.emit(n);
1244
- if (a.defaultPrevented)
1245
- return;
1246
- this.dimensionProvider.applyNewColumns(a.detail.columns, this.disableVirtualX, t);
1247
- const l = this.beforecolumnapplied.emit(n);
1248
- if (l.defaultPrevented)
1249
- return;
1250
- const c = this.columnProvider.setColumns(l.detail);
1251
- i && (this.pendingColumnFocusRestore = i);
1252
- const d = {};
1253
- for (const u of Object.keys(l.detail.sort))
1254
- d[u] = l.detail.sort[u].order;
1255
- this.aftercolumnsset.emit({
1256
- columns: c,
1257
- order: d
1258
- });
1259
- }
1260
- /**
1261
- * Capture logical focus before columns are repartitioned by pin state.
1262
- * Regression case: selecting a regular cell, then pinning that column left,
1263
- * used to let the new pinned viewport reuse the old rgCol selection store.
1264
- */
1265
- getColumnFocusRestore() {
1266
- var o, e, r, t;
1267
- const i = (o = this.viewport) === null || o === void 0 ? void 0 : o.getFocused(), s = (r = (e = this.selectionStoreConnector) === null || e === void 0 ? void 0 : e.focusedStore) === null || r === void 0 ? void 0 : r.position.x, n = (t = i == null ? void 0 : i.column) === null || t === void 0 ? void 0 : t.prop;
1268
- if (!(!i || n === void 0 || s === void 0))
1269
- return {
1270
- prop: n,
1271
- colType: i.colType,
1272
- colIndex: i.cell.x,
1273
- prevStoreX: s,
1274
- rowType: i.rowType,
1275
- rowIndex: i.cell.y
1276
- };
1277
- }
1278
- /**
1279
- * Reapply focus by column prop after render, once pinning has moved the
1280
- * column to its new viewport and virtual index.
1281
- */
1282
- restoreColumnFocusAfterRender() {
1283
- var o, e, r, t;
1284
- const i = this.pendingColumnFocusRestore;
1285
- if (!i || (this.pendingColumnFocusRestore = void 0, !this.viewport || !this.columnProvider))
1286
- return;
1287
- const s = (e = (o = this.columnProvider.getColumnByProp(i.prop)) === null || o === void 0 ? void 0 : o[0]) !== null && e !== void 0 ? e : z(this.columns, i.prop);
1288
- if (!s)
1289
- return;
1290
- const n = s.pin || "rgCol", a = this.columnProvider.getColumnIndexByProp(i.prop, n);
1291
- if (a < 0 || n === i.colType && a === i.colIndex && i.prevStoreX === ((t = (r = this.selectionStoreConnector) === null || r === void 0 ? void 0 : r.focusedStore) === null || t === void 0 ? void 0 : t.position.x))
1292
- return;
1293
- const l = {
1294
- x: a,
1295
- y: i.rowIndex
1296
- };
1297
- this.viewport.setFocus(n, i.rowType, l, l);
1298
- }
1299
- disableVirtualXChanged(o = !1, e = !1) {
1300
- o !== e && this.columnChanged(this.columns);
1301
- }
1302
- rowSizeChanged(o) {
1303
- this.dimensionProvider && (this.dimensionProvider.setSettings({ originItemSize: o }, "rgRow"), this.rowDefChanged(this.rowDefinitions, this.rowDefinitions, "rowSize", !0));
1304
- }
1305
- themeChanged(o, e, r = "theme", t = !1) {
1306
- this.dimensionProvider && (this.themeService.register(o), this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, "rgRow"), this.dimensionProvider.setSettings({ originItemSize: this.colSize }, "rgCol"), t || (this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, "rgRow"), this.rowDefChanged(
1307
- // for cases when some custom size present and not
1308
- this.rowDefinitions,
1309
- this.rowDefinitions,
1310
- "theme",
1311
- !0
1312
- )), this.afterthemechanged.emit(o));
1313
- }
1314
- dataSourceChanged(o = [], e, r) {
1315
- if (!this.dataProvider)
1316
- return;
1317
- let t = "rgRow";
1318
- switch (r) {
1319
- case "pinnedBottomSource":
1320
- t = "rowPinEnd";
1321
- break;
1322
- case "pinnedTopSource":
1323
- t = "rowPinStart";
1324
- break;
1325
- case "source":
1326
- t = "rgRow", o = this.beforesourceset.emit({
1327
- type: t,
1328
- source: o
1329
- }).detail.source;
1330
- break;
1331
- }
1332
- const s = [...this.beforeanysource.emit({
1333
- type: t,
1334
- source: o
1335
- }).detail.source];
1336
- this.dataProvider.setData(s, t, this.disableVirtualY), r === "source" && this.aftersourceset.emit({
1337
- type: t,
1338
- source: o
1339
- }), this.afteranysource.emit({
1340
- type: t,
1341
- source: o
1342
- });
1343
- }
1344
- disableVirtualYChanged(o = !1, e = !1) {
1345
- o !== e && this.dataSourceChanged(this.source, this.source, "source");
1346
- }
1347
- rowDefChanged(o, e, r, t = !0) {
1348
- if (!this.dimensionProvider || !this.dataProvider)
1349
- return;
1350
- const { detail: { vals: i, oldVals: s } } = this.beforerowdefinition.emit({
1351
- vals: o,
1352
- oldVals: e
1353
- }), n = be(i);
1354
- if (s) {
1355
- const a = Se(s);
1356
- for (const l in a)
1357
- if (a.hasOwnProperty(l)) {
1358
- const c = l, u = this.dataProvider.stores[c].store.get("source").length;
1359
- this.dimensionProvider.clearSize(c, u);
1360
- }
1361
- }
1362
- b.forEach((a) => {
1363
- var l;
1364
- const c = n[a];
1365
- (c || t) && ((l = this.dimensionProvider) === null || l === void 0 || l.setCustomSizes(a, (c == null ? void 0 : c.sizes) || {}));
1366
- });
1367
- }
1368
- trimmedRowsChanged(o = {}) {
1369
- this.addTrimmed(o);
1370
- }
1371
- /**
1372
- * Grouping
1373
- */
1374
- groupingChanged(o = {}) {
1375
- var e;
1376
- (e = this.pluginService.getByClass(L)) === null || e === void 0 || e.setGrouping(o || {});
1377
- }
1378
- /**
1379
- * Stretch Plugin Apply
1380
- */
1381
- applyStretch(o) {
1382
- if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider)
1383
- return;
1384
- o === "false" && (o = !1);
1385
- const e = this.getPluginData();
1386
- if (!e)
1387
- return;
1388
- const r = this.pluginService.getByClass(D);
1389
- typeof o == "boolean" && o || o === "true" ? r ? V(r) && r.applyStretch(this.columnProvider.getRawColumns()) : this.pluginService.add(new D(this.element, e)) : r && this.pluginService.remove(r);
1390
- }
1391
- applyFilter(o) {
1392
- this.filterconfigchanged.emit(o);
1393
- }
1394
- applySorting(o) {
1395
- this.sortingconfigchanged.emit(o);
1396
- }
1397
- rowHeadersChange(o) {
1398
- this.rowheaderschanged.emit(o);
1399
- }
1400
- /**
1401
- * Register external VNodes
1402
- */
1403
- registerOutsideVNodes(o = []) {
1404
- this.extraElements = o;
1405
- }
1406
- additionalDataChanged(o) {
1407
- this.additionaldatachanged.emit(o);
1408
- }
1409
- /**
1410
- * Watch for RTL changes and reapply column ordering
1411
- */
1412
- rtlChanged() {
1413
- this.columnChanged(this.columns);
1414
- }
1415
- /**
1416
- * User can add plugins via plugins property
1417
- */
1418
- pluginsChanged(o = [], e) {
1419
- this.pluginService.addUserPluginsAndCreate(this.element, o, e, this.getPluginData());
1420
- }
1421
- // #endregion
1422
- // #region Plugins
1423
- setPlugins() {
1424
- this.removePlugins();
1425
- const o = this.getPluginData();
1426
- o && (this.setCorePlugins(o), this.pluginsChanged(this.plugins));
1427
- }
1428
- setCorePlugins(o) {
1429
- this.accessible && this.pluginService.add(new ye(this.element, o)), this.pluginService.add(new Te(this.element, o)), this.autoSizeColumn && this.pluginService.add(new F(this.element, o, typeof this.autoSizeColumn == "object" ? this.autoSizeColumn : void 0)), this.filter && this.pluginService.add(new A(this.element, o, typeof this.filter == "object" ? this.filter : void 0)), this.exporting && this.pluginService.add(new N(this.element, o)), this.pluginService.add(new M(this.element, o)), this.pluginService.add(new L(this.element, o)), this.canMoveColumns && this.pluginService.add(new $(this.element, o));
1430
- }
1431
- getPluginData() {
1432
- return !this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector ? void 0 : {
1433
- data: this.dataProvider,
1434
- column: this.columnProvider,
1435
- dimension: this.dimensionProvider,
1436
- viewport: this.viewportProvider,
1437
- selection: this.selectionStoreConnector,
1438
- plugins: this.pluginService
1439
- };
1440
- }
1441
- removePlugins() {
1442
- this.pluginService.destroy();
1443
- }
1444
- // #endregion
1445
- // if reconnect to dom we need to set up plugins
1446
- connectedCallback() {
1447
- this.isInited && this.setPlugins(), this.created.emit();
1448
- }
1449
- /**
1450
- * Called once just after the component is first connected to the DOM.
1451
- * Since this method is only called once, it's a good place to load data asynchronously and to setup the state
1452
- * without triggering extra re-renders.
1453
- * A promise can be returned, that can be used to wait for the first render().
1454
- */
1455
- componentWillLoad() {
1456
- var o;
1457
- this.viewportProvider = new ve(), this.themeService = new X({
1458
- rowSize: this.rowSize
1459
- }), this.dimensionProvider = new he(this.viewportProvider, {
1460
- realSizeChanged: (e) => this.contentsizechanged.emit(e)
1461
- }), this.columnProvider = new ce(), this.selectionStoreConnector = new me(), this.dataProvider = new ge(this.dimensionProvider), this.registerOutsideVNodes(this.registerVNode), this.setPlugins(), this.applyStretch(this.stretch), this.themeChanged(this.theme, void 0, void 0, !0), this.columnChanged(this.columns, void 0, void 0, !0), this.dataSourceChanged(this.source, void 0, "source"), this.dataSourceChanged(this.pinnedTopSource, void 0, "pinnedTopSource"), this.dataSourceChanged(this.pinnedBottomSource, void 0, "pinnedBottomSource"), Object.keys((o = this.trimmedRows) !== null && o !== void 0 ? o : {}).length > 0 && this.trimmedRowsChanged(this.trimmedRows), this.rowDefChanged(this.rowDefinitions, void 0, void 0, !1), this.grouping && Object.keys(this.grouping).length > 0 && this.groupingChanged(this.grouping), this.scrollingService = new fe((e) => {
1462
- var r;
1463
- (r = this.dimensionProvider) === null || r === void 0 || r.setViewPortCoordinate({
1464
- coordinate: e.coordinate,
1465
- type: e.dimension
1466
- }), this.viewportscroll.emit(e);
1467
- }), this.aftergridinit.emit(), this.isInited = !0;
1468
- }
1469
- componentWillRender() {
1470
- return this.beforegridrender.emit().defaultPrevented ? !1 : Promise.all(this.jobsBeforeRender);
1471
- }
1472
- componentDidRender() {
1473
- this.restoreColumnFocusAfterRender(), this.aftergridrender.emit();
1474
- }
1475
- render() {
1476
- if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector)
1477
- return;
1478
- const o = this.dimensionProvider.stores.rgRow.store.get("realSize");
1479
- this.viewport = new pe({
1480
- columnProvider: this.columnProvider,
1481
- dataProvider: this.dataProvider,
1482
- dimensionProvider: this.dimensionProvider,
1483
- viewportProvider: this.viewportProvider,
1484
- scrollingService: this.scrollingService,
1485
- orderService: this.orderService,
1486
- selectionStoreConnector: this.selectionStoreConnector,
1487
- noHorizontalScrollTransfer: this.noHorizontalScrollTransfer,
1488
- disableVirtualX: this.disableVirtualX,
1489
- disableVirtualY: this.disableVirtualY,
1490
- resize: (d) => this.aftercolumnresize.emit(d)
1491
- }, o);
1492
- const e = [];
1493
- if (this.rowHeaders && this.viewport.columns.length) {
1494
- const d = this.viewport.columns[0];
1495
- e.push(v("revogr-row-headers", { additionalData: this.additionalData, height: o, rowClass: this.rowClass, resize: this.resize, dataPorts: d.dataPorts, headerProp: d.headerProp, jobsBeforeRender: this.jobsBeforeRender, rowHeaderColumn: typeof this.rowHeaders == "object" ? this.rowHeaders : void 0, onScrollview: ({ detail: u }) => this.scrollingService.proxyScroll(u, "headerRow"), onRef: ({ detail: u }) => this.scrollingService.registerElement(u, "headerRow") }));
1496
- }
1497
- const r = xe(), t = [];
1498
- for (let d of this.viewport.columns) {
1499
- const u = Object.assign(Object.assign({}, d.headerProp), { type: d.type, additionalData: this.additionalData, viewportCol: d.viewportCol, selectionStore: d.columnSelectionStore, canResize: this.resize, readonly: this.readonly, columnFilter: !!this.filter }), p = [
1500
- v("revogr-header", Object.assign({}, u, { slot: O }))
1501
- ];
1502
- d.dataPorts.forEach((h) => {
1503
- const C = `${h.type}_${d.type}`, P = v("revogr-overlay-selection", Object.assign({}, h, { canDrag: this.canDrag && h.canDrag, isMobileDevice: r, onSelectall: () => {
1504
- var f;
1505
- return (f = this.selectionStoreConnector) === null || f === void 0 ? void 0 : f.selectAll();
1506
- }, editors: this.editors, readonly: this.readonly, range: this.range, useClipboard: this.useClipboard, applyChangesOnClose: this.applyOnClose, additionalData: this.additionalData, slot: h.slot, onBeforenextvpfocus: (f) => {
1507
- var m;
1508
- return (m = this.selectionStoreConnector) === null || m === void 0 ? void 0 : m.beforeNextFocusCell(f.detail);
1509
- }, onCanceledit: () => {
1510
- var f;
1511
- return (f = this.selectionStoreConnector) === null || f === void 0 ? void 0 : f.setEdit(!1);
1512
- }, onSetedit: ({ detail: f }) => {
1513
- var m;
1514
- this.beforeeditstart.emit(f).defaultPrevented || (m = this.selectionStoreConnector) === null || m === void 0 || m.setEdit(f.val);
1515
- } }), v("revogr-data", Object.assign({}, h, { colType: d.type, key: C, readonly: this.readonly, range: this.range, rowClass: this.rowClass, rowSelectionStore: h.rowSelectionStore, additionalData: this.additionalData, jobsBeforeRender: this.jobsBeforeRender, slot: se }), v("slot", { name: `data-${d.type}-${h.type}` })), v("revogr-temp-range", { selectionStore: h.selectionStore, dimensionRow: h.dimensionRow, dimensionCol: h.dimensionCol }), v("revogr-focus", { colData: h.colData, dataStore: h.dataStore, focusTemplate: this.focusTemplate, rowType: h.type, colType: d.type, selectionStore: h.selectionStore, dimensionRow: h.dimensionRow, dimensionCol: h.dimensionCol }, v("slot", { name: `focus-${d.type}-${h.type}` })));
1516
- p.push(P);
1517
- }), t.push(v("revogr-viewport-scroll", Object.assign({}, d.prop, { ref: (h) => this.scrollingService.registerElement(h, `${d.prop.key}`), onScrollviewport: (h) => {
1518
- this.scrollingService.proxyScroll(h.detail, `${d.prop.key}`, this.noHorizontalScrollTransfer && h.detail.dimension === "rgCol");
1519
- }, onScrollviewportsilent: (h) => this.scrollingService.scrollSilentService(h.detail, `${d.prop.key}`) }), p));
1520
- }
1521
- e.push(t);
1522
- const i = "rgRow", s = "rgCol", n = this.viewportProvider.stores, a = this.dimensionProvider.stores, l = v("revogr-scroll-virtual", { class: "vertical", dimension: i, clientSize: n[i].store.get("clientSize"), virtualSize: n[i].store.get("virtualSize"), realSize: a[i].store.get("realSize"), ref: (d) => this.scrollingService.registerElement(d, "rowScroll"), onScrollvirtual: (d) => this.scrollingService.proxyScroll(d.detail) }), c = v("revogr-scroll-virtual", { class: "horizontal", dimension: s, clientSize: n[s].store.get("clientSize"), virtualSize: n[s].store.get("virtualSize"), realSize: a[s].store.get("realSize"), ref: (d) => this.scrollingService.registerElement(d, "colScroll"), onScrollvirtual: (d) => this.scrollingService.proxyScroll(d.detail) });
1523
- return v(Y, { dir: this.rtl ? "rtl" : "ltr" }, this.hideAttribution ? null : v("revogr-attribution", { class: "attribution" }), v("slot", { name: "header" }), v("div", { class: "main-viewport", onClick: (d) => {
1524
- var u;
1525
- d.currentTarget === d.target && ((u = this.viewport) === null || u === void 0 || u.clearEdit());
1526
- } }, v("div", { class: "viewports" }, v("slot", { name: "viewport" }), e, l, v(Ce, { ref: (d) => this.orderService = d }))), c, v("revogr-extra", { ref: (d) => this.extraService = d, nodes: this.extraElements }), v("slot", { name: "footer" }));
1527
- }
1528
- disconnectedCallback() {
1529
- this.removePlugins();
1530
- }
1531
- get element() {
1532
- return G(this);
1533
- }
1534
- static get watchers() {
1535
- return {
1536
- columnTypes: [{
1537
- columnTypesChanged: 0
1538
- }],
1539
- columns: [{
1540
- columnChanged: 0
1541
- }],
1542
- disableVirtualX: [{
1543
- disableVirtualXChanged: 0
1544
- }],
1545
- rowSize: [{
1546
- rowSizeChanged: 0
1547
- }],
1548
- theme: [{
1549
- themeChanged: 0
1550
- }],
1551
- source: [{
1552
- dataSourceChanged: 0
1553
- }],
1554
- pinnedBottomSource: [{
1555
- dataSourceChanged: 0
1556
- }],
1557
- pinnedTopSource: [{
1558
- dataSourceChanged: 0
1559
- }],
1560
- disableVirtualY: [{
1561
- disableVirtualYChanged: 0
1562
- }],
1563
- rowDefinitions: [{
1564
- rowDefChanged: 0
1565
- }],
1566
- trimmedRows: [{
1567
- trimmedRowsChanged: 0
1568
- }],
1569
- grouping: [{
1570
- groupingChanged: 0
1571
- }],
1572
- stretch: [{
1573
- applyStretch: 0
1574
- }],
1575
- filter: [{
1576
- applyFilter: 0
1577
- }],
1578
- sorting: [{
1579
- applySorting: 0
1580
- }],
1581
- rowHeaders: [{
1582
- rowHeadersChange: 0
1583
- }],
1584
- registerVNode: [{
1585
- registerOutsideVNodes: 0
1586
- }],
1587
- additionalData: [{
1588
- additionalDataChanged: 0
1589
- }],
1590
- rtl: [{
1591
- rtlChanged: 0
1592
- }],
1593
- plugins: [{
1594
- pluginsChanged: 0
1595
- }]
1596
- };
1597
- }
1598
- };
1599
- ze.style = Re();
1600
- export {
1601
- ze as revo_grid
1602
- };