@universal-material/data-grid 0.3.6 → 0.3.7
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/dist/grid.js +11 -2
- package/dist/grid.js.map +1 -1
- package/dist/grid.min.js +56 -56
- package/package.json +1 -1
package/dist/grid.js
CHANGED
|
@@ -8809,7 +8809,8 @@ let DataGrid = class DataGrid extends LitElement {
|
|
|
8809
8809
|
}
|
|
8810
8810
|
/** Editor aberto, popover ou menu ancorado: o conjunto de ocultas não muda agora. */
|
|
8811
8811
|
#adaptiveFrozen() {
|
|
8812
|
-
|
|
8812
|
+
// Arrasto de redimensionar: a coluna segurada não some no meio do gesto; recalcula ao soltar.
|
|
8813
|
+
if (this.#editor || this.#contextMenu.open || this.#toolbarMenu.open || this.#headerFilterPopover.open || this.#resize.active) {
|
|
8813
8814
|
return true;
|
|
8814
8815
|
}
|
|
8815
8816
|
// Editor da linha de filtro com o foco.
|
|
@@ -9418,7 +9419,10 @@ let DataGrid = class DataGrid extends LitElement {
|
|
|
9418
9419
|
if (this.#userWidths.has(column)) {
|
|
9419
9420
|
continue;
|
|
9420
9421
|
}
|
|
9421
|
-
|
|
9422
|
+
// A largura da coluna (escolhida ou medida pelo auto-width), não a esticada pela
|
|
9423
|
+
// sobra do grid: congelar a esticada somava a largura do grid e qualquer px a
|
|
9424
|
+
// mais do arrasto fazia o responsivo esconder a própria coluna (relato do mockup).
|
|
9425
|
+
const width = this.#widthOf(column) ?? this.#renderedWidths.get(column);
|
|
9422
9426
|
if (width !== undefined) {
|
|
9423
9427
|
this.#userWidths.set(column, Math.round(width));
|
|
9424
9428
|
}
|
|
@@ -9439,6 +9443,11 @@ let DataGrid = class DataGrid extends LitElement {
|
|
|
9439
9443
|
/** @internal */
|
|
9440
9444
|
_setResizing(active) {
|
|
9441
9445
|
this._containerRef.value?.classList.toggle('resizing', active);
|
|
9446
|
+
// Fim do arrasto: o responsivo, congelado durante o gesto, refaz a conta.
|
|
9447
|
+
if (!active && this.autoHideColumns) {
|
|
9448
|
+
this.#adaptiveDirty = true;
|
|
9449
|
+
this.requestUpdate();
|
|
9450
|
+
}
|
|
9442
9451
|
}
|
|
9443
9452
|
/** @internal */
|
|
9444
9453
|
_showResizeLine(clientX) {
|