@acorex/components 22.4.60 → 22.4.61
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/fesm2022/acorex-components-code-editor.mjs +20 -11
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +137 -4
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +52 -47
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-code-editor.d.ts +3 -0
- package/types/acorex-components-data-table.d.ts +19 -1
- package/types/acorex-components-lookup.d.ts +4 -3
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/components",
|
|
3
|
-
"version": "22.4.
|
|
3
|
+
"version": "22.4.61",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "22.4.
|
|
6
|
-
"@acorex/cdk": "22.4.
|
|
5
|
+
"@acorex/core": "22.4.61",
|
|
6
|
+
"@acorex/cdk": "22.4.61",
|
|
7
7
|
"@angular/aria": ">=22.1.0",
|
|
8
8
|
"polytype": ">=0.17.0",
|
|
9
9
|
"hammerjs": ">=2.0.8",
|
|
@@ -315,6 +315,9 @@ declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
|
315
315
|
/** Computed minimum height based on minRow (excluding gutter/line numbers). */
|
|
316
316
|
getMinHeight(): string | null;
|
|
317
317
|
constructor();
|
|
318
|
+
private syncingDocument;
|
|
319
|
+
/** Applies an external ngModel change to the open CodeMirror document. */
|
|
320
|
+
private syncEditorDocument;
|
|
318
321
|
private initializeEditor;
|
|
319
322
|
private reconfigure;
|
|
320
323
|
/**
|
|
@@ -935,6 +935,19 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
935
935
|
* @defaultValue `'classic'`
|
|
936
936
|
*/
|
|
937
937
|
look: i0.InputSignal<AXDataTableLook>;
|
|
938
|
+
/**
|
|
939
|
+
* Maximum width, in pixels, applied when measuring columns whose `width` is `auto`.
|
|
940
|
+
*
|
|
941
|
+
* @defaultValue `500`
|
|
942
|
+
*/
|
|
943
|
+
autoFitMaxWidth: i0.InputSignal<number>;
|
|
944
|
+
/**
|
|
945
|
+
* When `true`, content-sized columns that together exceed the wrapper are narrowed
|
|
946
|
+
* (widest first) so the table stays inside the wrapper. Leftover space still stays in the spacer.
|
|
947
|
+
*
|
|
948
|
+
* @defaultValue `false`
|
|
949
|
+
*/
|
|
950
|
+
constrainColumnsToWrapper: i0.InputSignal<boolean>;
|
|
938
951
|
private _unsubscriber;
|
|
939
952
|
private _zone;
|
|
940
953
|
private document;
|
|
@@ -1528,6 +1541,11 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1528
1541
|
* Leftover space stays in the spacer.
|
|
1529
1542
|
*/
|
|
1530
1543
|
private updateColumnLayoutWidths;
|
|
1544
|
+
/**
|
|
1545
|
+
* Narrows the widest columns until their sum fits the wrapper.
|
|
1546
|
+
* Columns already at `minAutoWidth` are left alone until every wider column has been reduced.
|
|
1547
|
+
*/
|
|
1548
|
+
private shrinkColumnsToContainer;
|
|
1531
1549
|
private observeTableWrapper;
|
|
1532
1550
|
/**
|
|
1533
1551
|
* Auto-fits a single column by its `name` / data field.
|
|
@@ -1539,7 +1557,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1539
1557
|
*/
|
|
1540
1558
|
autoFitColumnByName(columnName: string, options?: AXDataTableAutoFitColumnOptions): void;
|
|
1541
1559
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
|
|
1542
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "hasChildrenField": { "alias": "hasChildrenField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "rowCssClass": { "alias": "rowCssClass"; "required": false; }; "cellCssClass": { "alias": "cellCssClass"; "required": false; }; "highlightText": { "alias": "highlightText"; "required": false; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowPointerDown": "onRowPointerDown"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
|
|
1560
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "hasChildrenField": { "alias": "hasChildrenField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "rowCssClass": { "alias": "rowCssClass"; "required": false; }; "cellCssClass": { "alias": "cellCssClass"; "required": false; }; "highlightText": { "alias": "highlightText"; "required": false; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "autoFitMaxWidth": { "alias": "autoFitMaxWidth"; "required": false; "isSignal": true; }; "constrainColumnsToWrapper": { "alias": "constrainColumnsToWrapper"; "required": false; "isSignal": true; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowPointerDown": "onRowPointerDown"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
|
|
1543
1561
|
}
|
|
1544
1562
|
|
|
1545
1563
|
declare class AXDataTableModule {
|
|
@@ -27,7 +27,7 @@ type AXLookupMode = 'drop-down-list' | 'multi-select' | 'drop-down-tree' | 'mult
|
|
|
27
27
|
*
|
|
28
28
|
* - `field` — the item property rendered in this column (`ax-text-column` `dataField`).
|
|
29
29
|
* - `title` — the header text of the column (`ax-text-column` `caption`).
|
|
30
|
-
* - `width` — optional column width (`120px
|
|
30
|
+
* - `width` — optional column width. `auto` (default) sizes the column to its content up to a max width; longer text is truncated and shown in a tooltip. `120px` and `20%` stay fixed.
|
|
31
31
|
* - `expandHandler` — when `true`, this column shows the tree expand/collapse control
|
|
32
32
|
* (`multi-column-tree` only). If omitted, the column matching `textField` (or the first
|
|
33
33
|
* column) is used.
|
|
@@ -902,8 +902,9 @@ declare class AXLookupMultiColumnComponent {
|
|
|
902
902
|
constructor();
|
|
903
903
|
/** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
|
|
904
904
|
protected trackColumnKey(index: number, column: AXLookupColumn): string;
|
|
905
|
-
protected readonly
|
|
905
|
+
protected readonly columnContentMaxWidth = 240;
|
|
906
906
|
protected resolveColumnWidth(index: number): string;
|
|
907
|
+
protected cellText(row: AXLookupItem | null | undefined, field: string): string;
|
|
907
908
|
protected resolveRowCssClass: (row: unknown) => string;
|
|
908
909
|
protected handleRowPointerDown(event: AXDataTableRowClick): void;
|
|
909
910
|
protected handleRowClick(event: AXDataTableRowClick): void;
|
|
@@ -1011,7 +1012,7 @@ declare class AXLookupMultiColumnTreeComponent {
|
|
|
1011
1012
|
}>;
|
|
1012
1013
|
/** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
|
|
1013
1014
|
protected trackColumnKey(index: number, column: AXLookupColumn): string;
|
|
1014
|
-
protected readonly
|
|
1015
|
+
protected readonly columnContentMaxWidth = 240;
|
|
1015
1016
|
protected resolveColumnWidth(index: number): string;
|
|
1016
1017
|
protected isExpandColumn(index: number, column: AXLookupColumn): boolean;
|
|
1017
1018
|
protected resolveRowCssClass: (row: unknown) => string;
|