@toolbox-web/grid 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all.d.ts +19 -19
- package/all.d.ts.map +1 -1
- package/all.js +1775 -1202
- package/all.js.map +1 -1
- package/index.js +2152 -2028
- package/index.js.map +1 -1
- package/lib/core/grid.d.ts +22 -12
- package/lib/core/grid.d.ts.map +1 -1
- package/lib/core/internal/columns.d.ts +0 -9
- package/lib/core/internal/columns.d.ts.map +1 -1
- package/lib/core/internal/config-manager.d.ts +236 -0
- package/lib/core/internal/config-manager.d.ts.map +1 -0
- package/lib/core/internal/event-delegation.d.ts.map +1 -1
- package/lib/core/internal/header.d.ts.map +1 -1
- package/lib/core/internal/keyboard.d.ts.map +1 -1
- package/lib/core/internal/render-scheduler.d.ts +123 -0
- package/lib/core/internal/render-scheduler.d.ts.map +1 -0
- package/lib/core/internal/rows.d.ts +8 -3
- package/lib/core/internal/rows.d.ts.map +1 -1
- package/lib/core/internal/sanitize.d.ts +2 -2
- package/lib/core/internal/sanitize.d.ts.map +1 -1
- package/lib/core/internal/shell.d.ts +40 -2
- package/lib/core/internal/shell.d.ts.map +1 -1
- package/lib/core/internal/validate-config.d.ts +11 -0
- package/lib/core/internal/validate-config.d.ts.map +1 -0
- package/lib/core/plugin/base-plugin.d.ts +70 -0
- package/lib/core/plugin/base-plugin.d.ts.map +1 -1
- package/lib/core/plugin/plugin-manager.d.ts +13 -2
- package/lib/core/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/core/plugin/types.d.ts +17 -3
- package/lib/core/plugin/types.d.ts.map +1 -1
- package/lib/core/types.d.ts +112 -12
- package/lib/core/types.d.ts.map +1 -1
- package/lib/plugins/clipboard/ClipboardPlugin.d.ts.map +1 -1
- package/lib/plugins/clipboard/index.js +50 -18
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/index.js +60 -25
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js +51 -16
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/editing/EditingPlugin.d.ts +117 -0
- package/lib/plugins/editing/EditingPlugin.d.ts.map +1 -0
- package/lib/{core/internal → plugins/editing}/editors.d.ts +1 -1
- package/lib/plugins/editing/editors.d.ts.map +1 -0
- package/lib/plugins/editing/index.d.ts +8 -0
- package/lib/plugins/editing/index.d.ts.map +1 -0
- package/lib/plugins/editing/index.js +705 -0
- package/lib/plugins/editing/index.js.map +1 -0
- package/lib/plugins/editing/types.d.ts +45 -0
- package/lib/plugins/editing/types.d.ts.map +1 -0
- package/lib/plugins/export/ExportPlugin.d.ts.map +1 -1
- package/lib/plugins/export/index.js +74 -39
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts.map +1 -1
- package/lib/plugins/filtering/index.js +87 -50
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/grouping-columns.d.ts +4 -4
- package/lib/plugins/grouping-columns/grouping-columns.d.ts.map +1 -1
- package/lib/plugins/grouping-columns/index.js +59 -24
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts.map +1 -1
- package/lib/plugins/grouping-rows/grouping-rows.d.ts.map +1 -1
- package/lib/plugins/grouping-rows/index.js +46 -11
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts +2 -2
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts.map +1 -1
- package/lib/plugins/master-detail/index.js +140 -102
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/master-detail/types.d.ts +12 -2
- package/lib/plugins/master-detail/types.d.ts.map +1 -1
- package/lib/plugins/multi-sort/MultiSortPlugin.d.ts.map +1 -1
- package/lib/plugins/multi-sort/index.js +59 -22
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js +41 -6
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/PinnedRowsPlugin.d.ts.map +1 -1
- package/lib/plugins/pinned-rows/index.js +45 -9
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js +42 -7
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/reorder/ReorderPlugin.d.ts.map +1 -1
- package/lib/plugins/reorder/index.js +59 -19
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/selection/index.js +41 -6
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js +48 -13
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/TreePlugin.d.ts +3 -3
- package/lib/plugins/tree/TreePlugin.d.ts.map +1 -1
- package/lib/plugins/tree/index.js +165 -126
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/tree/tree-data.d.ts +6 -6
- package/lib/plugins/tree/tree-data.d.ts.map +1 -1
- package/lib/plugins/tree/tree-detect.d.ts +5 -9
- package/lib/plugins/tree/tree-detect.d.ts.map +1 -1
- package/lib/plugins/tree/types.d.ts +16 -4
- package/lib/plugins/tree/types.d.ts.map +1 -1
- package/lib/plugins/undo-redo/index.js +46 -11
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js +37 -2
- package/lib/plugins/visibility/index.js.map +1 -1
- package/package.json +1 -1
- package/public.d.ts +104 -13
- package/public.d.ts.map +1 -1
- package/umd/grid.all.umd.js +31 -19
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +18 -6
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/clipboard.umd.js +1 -1
- package/umd/plugins/clipboard.umd.js.map +1 -1
- package/umd/plugins/editing.umd.js +2 -0
- package/umd/plugins/editing.umd.js.map +1 -0
- package/umd/plugins/export.umd.js +2 -2
- package/umd/plugins/export.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -1
- package/umd/plugins/filtering.umd.js.map +1 -1
- package/umd/plugins/grouping-columns.umd.js +1 -1
- package/umd/plugins/grouping-columns.umd.js.map +1 -1
- package/umd/plugins/grouping-rows.umd.js +1 -1
- package/umd/plugins/grouping-rows.umd.js.map +1 -1
- package/umd/plugins/master-detail.umd.js +1 -1
- package/umd/plugins/master-detail.umd.js.map +1 -1
- package/umd/plugins/multi-sort.umd.js +1 -1
- package/umd/plugins/multi-sort.umd.js.map +1 -1
- package/umd/plugins/pinned-rows.umd.js +1 -1
- package/umd/plugins/pinned-rows.umd.js.map +1 -1
- package/umd/plugins/reorder.umd.js +1 -1
- package/umd/plugins/reorder.umd.js.map +1 -1
- package/umd/plugins/tree.umd.js +1 -1
- package/umd/plugins/tree.umd.js.map +1 -1
- package/lib/core/internal/column-state.d.ts +0 -124
- package/lib/core/internal/column-state.d.ts.map +0 -1
- package/lib/core/internal/editing.d.ts +0 -76
- package/lib/core/internal/editing.d.ts.map +0 -1
- package/lib/core/internal/editors.d.ts.map +0 -1
- package/lib/core/internal/grid-internals.d.ts +0 -83
- package/lib/core/internal/grid-internals.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReorderPlugin.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/reorder/ReorderPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,cAAc,EAAkB,MAAM,+BAA+B,CAAC;AAI/E,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAC;AAa/D;;;;;;;GAOG;AACH,qBAAa,aAAc,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC9D,QAAQ,CAAC,IAAI,aAAa;IAC1B,SAAkB,OAAO,WAAW;IAEpC,cAAuB,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,CAI7D;IAED;;;OAGG;IACH,OAAO,KAAK,aAAa,GAYxB;IAED;;;OAGG;IACH,OAAO,KAAK,kBAAkB,GAkB7B;IAED;;OAEG;IACH,OAAO,KAAK,iBAAiB,GAe5B;IAGD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,SAAS,CAAuB;IAK/B,MAAM,CAAC,IAAI,EAAE,OAAO,+BAA+B,EAAE,WAAW,GAAG,IAAI;IAiBvE,MAAM,IAAI,IAAI;IAUd,WAAW,IAAI,IAAI;IAyG5B;;OAEG;IACM,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;IAuDxD;;;OAGG;IACH,cAAc,IAAI,MAAM,EAAE;IAI1B;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAkBhD;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAIrC;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAQxB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAmDnB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAgDnB;;OAEG;IACH,OAAO,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"ReorderPlugin.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/reorder/ReorderPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,cAAc,EAAkB,MAAM,+BAA+B,CAAC;AAI/E,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAC;AAa/D;;;;;;;GAOG;AACH,qBAAa,aAAc,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC9D,QAAQ,CAAC,IAAI,aAAa;IAC1B,SAAkB,OAAO,WAAW;IAEpC,cAAuB,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,CAI7D;IAED;;;OAGG;IACH,OAAO,KAAK,aAAa,GAYxB;IAED;;;OAGG;IACH,OAAO,KAAK,kBAAkB,GAkB7B;IAED;;OAEG;IACH,OAAO,KAAK,iBAAiB,GAe5B;IAGD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,SAAS,CAAuB;IAK/B,MAAM,CAAC,IAAI,EAAE,OAAO,+BAA+B,EAAE,WAAW,GAAG,IAAI;IAiBvE,MAAM,IAAI,IAAI;IAUd,WAAW,IAAI,IAAI;IAyG5B;;OAEG;IACM,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,GAAG,IAAI;IAuDxD;;;OAGG;IACH,cAAc,IAAI,MAAM,EAAE;IAI1B;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAkBhD;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAIrC;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAQxB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAmDnB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAgDnB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAyBzB,SAAkB,MAAM,SAAU;CAEnC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
function E(n) {
|
|
2
2
|
n && n.querySelectorAll(".cell-focus").forEach((t) => t.classList.remove("cell-focus"));
|
|
3
3
|
}
|
|
4
|
-
const R = 'input,select,textarea,[contenteditable="true"],[contenteditable=""],[tabindex]:not([tabindex="-1"])';
|
|
5
|
-
|
|
4
|
+
const R = 'input,select,textarea,[contenteditable="true"],[contenteditable=""],[tabindex]:not([tabindex="-1"])', y = document.createElement("template");
|
|
5
|
+
y.innerHTML = '<div class="cell" role="gridcell" part="cell"></div>';
|
|
6
|
+
const L = document.createElement("template");
|
|
7
|
+
L.innerHTML = '<div class="data-grid-row" role="row" part="row"></div>';
|
|
8
|
+
function A(n, t) {
|
|
6
9
|
if (n._virtualization?.enabled) {
|
|
7
10
|
const { rowHeight: a, container: o, viewportEl: l } = n._virtualization, s = o, d = l?.clientHeight ?? s?.clientHeight ?? 0;
|
|
8
11
|
if (s && d > 0) {
|
|
@@ -44,7 +47,7 @@ function y(n, t) {
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
|
-
const
|
|
50
|
+
const O = {
|
|
48
51
|
expand: "▶",
|
|
49
52
|
collapse: "▼",
|
|
50
53
|
sortAsc: "▲",
|
|
@@ -57,7 +60,7 @@ const L = {
|
|
|
57
60
|
/** Ask if a column can be moved. Context: ColumnConfig. Response: boolean | undefined */
|
|
58
61
|
CAN_MOVE_COLUMN: "canMoveColumn"
|
|
59
62
|
};
|
|
60
|
-
class
|
|
63
|
+
class x {
|
|
61
64
|
/** Plugin version - override in subclass if needed */
|
|
62
65
|
version = "1.0.0";
|
|
63
66
|
/** CSS styles to inject into the grid's shadow DOM */
|
|
@@ -74,6 +77,12 @@ class A {
|
|
|
74
77
|
config;
|
|
75
78
|
/** User-provided configuration from constructor */
|
|
76
79
|
userConfig;
|
|
80
|
+
/**
|
|
81
|
+
* Plugin-level AbortController for event listener cleanup.
|
|
82
|
+
* Created fresh in attach(), aborted in detach().
|
|
83
|
+
* This ensures event listeners are properly cleaned up when plugins are re-attached.
|
|
84
|
+
*/
|
|
85
|
+
#t;
|
|
77
86
|
/**
|
|
78
87
|
* Default configuration - subclasses should override this getter.
|
|
79
88
|
* Note: This must be a getter (not property initializer) for proper inheritance
|
|
@@ -88,19 +97,48 @@ class A {
|
|
|
88
97
|
/**
|
|
89
98
|
* Called when the plugin is attached to a grid.
|
|
90
99
|
* Override to set up event listeners, initialize state, etc.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* attach(grid: GridElement): void {
|
|
104
|
+
* super.attach(grid);
|
|
105
|
+
* // Set up document-level listeners with auto-cleanup
|
|
106
|
+
* document.addEventListener('keydown', this.handleEscape, {
|
|
107
|
+
* signal: this.disconnectSignal
|
|
108
|
+
* });
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
91
111
|
*/
|
|
92
112
|
attach(t) {
|
|
93
|
-
this.grid = t, this.config = { ...this.defaultConfig, ...this.userConfig };
|
|
113
|
+
this.#t?.abort(), this.#t = new AbortController(), this.grid = t, this.config = { ...this.defaultConfig, ...this.userConfig };
|
|
94
114
|
}
|
|
95
115
|
/**
|
|
96
116
|
* Called when the plugin is detached from a grid.
|
|
97
117
|
* Override to clean up event listeners, timers, etc.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* detach(): void {
|
|
122
|
+
* // Clean up any state not handled by disconnectSignal
|
|
123
|
+
* this.selectedRows.clear();
|
|
124
|
+
* this.cache = null;
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
98
127
|
*/
|
|
99
128
|
detach() {
|
|
129
|
+
this.#t?.abort(), this.#t = void 0;
|
|
100
130
|
}
|
|
101
131
|
/**
|
|
102
132
|
* Get another plugin instance from the same grid.
|
|
103
133
|
* Use for inter-plugin communication.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const selection = this.getPlugin(SelectionPlugin);
|
|
138
|
+
* if (selection) {
|
|
139
|
+
* const selectedRows = selection.getSelectedRows();
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
104
142
|
*/
|
|
105
143
|
getPlugin(t) {
|
|
106
144
|
return this.grid?.getPlugin(t);
|
|
@@ -174,7 +212,7 @@ class A {
|
|
|
174
212
|
* document.addEventListener('keydown', handler, { signal: this.disconnectSignal });
|
|
175
213
|
*/
|
|
176
214
|
get disconnectSignal() {
|
|
177
|
-
return this.grid?.disconnectSignal;
|
|
215
|
+
return this.#t?.signal ?? this.grid?.disconnectSignal;
|
|
178
216
|
}
|
|
179
217
|
/**
|
|
180
218
|
* Get the grid-level icons configuration.
|
|
@@ -182,7 +220,7 @@ class A {
|
|
|
182
220
|
*/
|
|
183
221
|
get gridIcons() {
|
|
184
222
|
const t = this.grid?.gridConfig?.icons ?? {};
|
|
185
|
-
return { ...
|
|
223
|
+
return { ...O, ...t };
|
|
186
224
|
}
|
|
187
225
|
/**
|
|
188
226
|
* Resolve an icon value to string or HTMLElement.
|
|
@@ -213,7 +251,7 @@ class A {
|
|
|
213
251
|
}
|
|
214
252
|
// #endregion
|
|
215
253
|
}
|
|
216
|
-
function
|
|
254
|
+
function b(n) {
|
|
217
255
|
const t = n.meta ?? {};
|
|
218
256
|
return t.lockPosition !== !0 && t.suppressMovable !== !0;
|
|
219
257
|
}
|
|
@@ -222,8 +260,8 @@ function v(n, t, e) {
|
|
|
222
260
|
const i = [...n], [r] = i.splice(t, 1);
|
|
223
261
|
return i.splice(e, 0, r), i;
|
|
224
262
|
}
|
|
225
|
-
const
|
|
226
|
-
class
|
|
263
|
+
const _ = '.header-row>.cell[draggable=true]{cursor:grab;position:relative}.header-row>.cell.dragging{opacity:.5;cursor:grabbing}.header-row>.cell.drop-before:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--tbw-reorder-indicator, var(--tbw-color-accent));z-index:1}.header-row>.cell.drop-after:after{content:"";position:absolute;right:0;top:0;bottom:0;width:2px;background:var(--tbw-reorder-indicator, var(--tbw-color-accent));z-index:1}.cell.flip-animating{transition:transform var(--tbw-animation-duration, .2s) ease-out;will-change:transform;z-index:1}@keyframes reorder-fade-in{0%{opacity:0}to{opacity:1}}.cell.fade-animating{animation:reorder-fade-in var(--tbw-animation-duration, .2s) ease-out backwards}';
|
|
264
|
+
class I extends x {
|
|
227
265
|
name = "reorder";
|
|
228
266
|
version = "1.0.0";
|
|
229
267
|
get defaultConfig() {
|
|
@@ -295,7 +333,7 @@ class x extends A {
|
|
|
295
333
|
type: p.CAN_MOVE_COLUMN,
|
|
296
334
|
context: a
|
|
297
335
|
}).includes(!1);
|
|
298
|
-
if (!a || !
|
|
336
|
+
if (!a || !b(a) || !s) {
|
|
299
337
|
r.draggable = !1;
|
|
300
338
|
return;
|
|
301
339
|
}
|
|
@@ -317,13 +355,13 @@ class x extends A {
|
|
|
317
355
|
const f = this.draggedField, u = this.draggedIndex, g = this.dropIndex;
|
|
318
356
|
if (!this.isDragging || f === null || u === null || g === null)
|
|
319
357
|
return;
|
|
320
|
-
const h = g > u ? g - 1 : g, m = this.getColumnOrder(),
|
|
358
|
+
const h = g > u ? g - 1 : g, m = this.getColumnOrder(), w = v(m, u, h), C = {
|
|
321
359
|
field: f,
|
|
322
360
|
fromIndex: u,
|
|
323
361
|
toIndex: h,
|
|
324
|
-
columnOrder:
|
|
362
|
+
columnOrder: w
|
|
325
363
|
};
|
|
326
|
-
this.updateColumnOrder(
|
|
364
|
+
this.updateColumnOrder(w), this.emit("column-move", C);
|
|
327
365
|
}));
|
|
328
366
|
});
|
|
329
367
|
}
|
|
@@ -336,7 +374,7 @@ class x extends A {
|
|
|
336
374
|
const e = this.grid, i = e._focusCol, r = e._visibleColumns;
|
|
337
375
|
if (i < 0 || i >= r.length) return;
|
|
338
376
|
const c = r[i];
|
|
339
|
-
if (!c || !
|
|
377
|
+
if (!c || !b(c)) return;
|
|
340
378
|
const a = this.grid;
|
|
341
379
|
if (a.queryPlugins({
|
|
342
380
|
type: p.CAN_MOVE_COLUMN,
|
|
@@ -351,7 +389,7 @@ class x extends A {
|
|
|
351
389
|
type: p.CAN_MOVE_COLUMN,
|
|
352
390
|
context: f
|
|
353
391
|
}).includes(!1)))
|
|
354
|
-
return this.moveColumn(c.field, d), e._focusCol = d,
|
|
392
|
+
return this.moveColumn(c.field, d), e._focusCol = d, A(this.grid), t.preventDefault(), t.stopPropagation(), !0;
|
|
355
393
|
}
|
|
356
394
|
// #endregion
|
|
357
395
|
// #region Public API
|
|
@@ -482,16 +520,18 @@ class x extends A {
|
|
|
482
520
|
const e = this.grid, i = this.animationType;
|
|
483
521
|
if (i === "flip" && this.shadowRoot) {
|
|
484
522
|
const r = this.captureHeaderPositions();
|
|
485
|
-
e.setColumnOrder(t),
|
|
523
|
+
e.setColumnOrder(t), requestAnimationFrame(() => {
|
|
524
|
+
this.shadowRoot?.host?.offsetHeight, this.animateFLIP(r);
|
|
525
|
+
});
|
|
486
526
|
} else i === "fade" ? this.animateFade(() => e.setColumnOrder(t)) : e.setColumnOrder(t);
|
|
487
527
|
e.requestStateChange?.();
|
|
488
528
|
}
|
|
489
529
|
// #endregion
|
|
490
530
|
// #region Styles
|
|
491
|
-
styles =
|
|
531
|
+
styles = _;
|
|
492
532
|
// #endregion
|
|
493
533
|
}
|
|
494
534
|
export {
|
|
495
|
-
|
|
535
|
+
I as ReorderPlugin
|
|
496
536
|
};
|
|
497
537
|
//# sourceMappingURL=index.js.map
|