@alaarab/ogrid-angular 2.1.12 → 2.1.14
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/esm/index.js
CHANGED
|
@@ -3780,6 +3780,19 @@ var BaseDataGridTableComponent = class {
|
|
|
3780
3780
|
window.addEventListener("mousemove", onMove);
|
|
3781
3781
|
window.addEventListener("mouseup", onUp);
|
|
3782
3782
|
}
|
|
3783
|
+
onResizeDoubleClick(event, col) {
|
|
3784
|
+
event.preventDefault();
|
|
3785
|
+
event.stopPropagation();
|
|
3786
|
+
const columnId = col.columnId;
|
|
3787
|
+
const thEl = event.currentTarget.closest("th") ?? event.currentTarget.parentElement;
|
|
3788
|
+
const container = thEl?.closest("table")?.parentElement ?? void 0;
|
|
3789
|
+
const minWidth = col.minWidth ?? DEFAULT_MIN_COLUMN_WIDTH;
|
|
3790
|
+
const idealWidth = measureColumnContentWidth(columnId, minWidth, container);
|
|
3791
|
+
const overrides = { ...this.columnSizingOverrides(), [columnId]: { widthPx: idealWidth } };
|
|
3792
|
+
this.state().layout.setColumnSizingOverrides(overrides);
|
|
3793
|
+
this.columnSizingVersion.update((v) => v + 1);
|
|
3794
|
+
this.state().layout.onColumnResized?.(columnId, idealWidth);
|
|
3795
|
+
}
|
|
3783
3796
|
onSelectAllChange(event) {
|
|
3784
3797
|
const checked = event.target.checked;
|
|
3785
3798
|
this.state().rowSelection.handleSelectAll(!!checked);
|
|
@@ -246,6 +246,7 @@ export declare abstract class BaseDataGridTableComponent<T = unknown> {
|
|
|
246
246
|
onCellDblClick(rowId: RowId, columnId: string): void;
|
|
247
247
|
onFillHandleMouseDown(event: MouseEvent): void;
|
|
248
248
|
onResizeStart(event: MouseEvent, col: IColumnDef<T>): void;
|
|
249
|
+
onResizeDoubleClick(event: MouseEvent, col: IColumnDef<T>): void;
|
|
249
250
|
onSelectAllChange(event: Event): void;
|
|
250
251
|
onRowClick(event: MouseEvent, rowId: RowId): void;
|
|
251
252
|
onRowCheckboxChange(rowId: RowId, event: Event, rowIndex: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-angular",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.14",
|
|
4
4
|
"description": "OGrid Angular – Angular services, signals, and headless components for OGrid data grids.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": ">=18"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@alaarab/ogrid-core": "2.1.
|
|
38
|
+
"@alaarab/ogrid-core": "2.1.14"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@angular/core": "^21.0.0",
|