@acorex/components 22.4.59 → 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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "22.4.59",
3
+ "version": "22.4.61",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.4.59",
6
- "@acorex/cdk": "22.4.59",
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
  /**
@@ -35,8 +35,9 @@ type AXComboBoxValue = string | number | (string | number)[] | null;
35
35
  * Combobox `readonly`, so Tab focus and keyboard open/select keep working).
36
36
  *
37
37
  * With `multiple="true"`, selected values are shown as chips in the trigger and the popup stays
38
- * open while toggling items (same interaction model as `ax-lookup` multi-select). Backspace with
39
- * an empty trigger input removes the last chip; repeated presses clear the whole selection.
38
+ * open while toggling items (same interaction model as `ax-lookup` multi-select). Once items are
39
+ * selected, the trigger search input is shown only while it is focused or the popup is open. Backspace
40
+ * with an empty trigger input removes the last chip; repeated presses clear the whole selection.
40
41
  *
41
42
  * With `adaptivityEnabled` (default `true`), the list opens as a bottom actionsheet on small
42
43
  * screens instead of an anchored dropdown — the same alternate presentation as `ax-select-box`.
@@ -201,6 +202,13 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
201
202
  protected searchText: _angular_core.WritableSignal<string>;
202
203
  /** Whether the trigger should render `selectedTemplate` instead of the plain input text. */
203
204
  protected showSelectedTemplate: _angular_core.Signal<boolean>;
205
+ /** Whether the trigger input currently has focus. */
206
+ protected triggerFocused: _angular_core.WritableSignal<boolean>;
207
+ /**
208
+ * Multi-select: whether the trigger search row is visible. With a selection, it is shown only
209
+ * while the editable trigger is focused or the popup is open, so only the chips remain otherwise.
210
+ */
211
+ protected showTriggerSearch: _angular_core.Signal<boolean>;
204
212
  /** Placeholder for the editable trigger search input in multi-select. */
205
213
  protected triggerSearchPlaceholder: _angular_core.Signal<string>;
206
214
  /** The listbox selection (item ids), kept in sync with the selected value(s). */
@@ -299,6 +307,10 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
299
307
  * Focuses the combo box trigger input.
300
308
  */
301
309
  focus(options?: FocusOptions): void;
310
+ /** Keeps focus on the trigger input when pressing on the chips area (multi-select). */
311
+ protected onMultipleBodyMouseDown(event: MouseEvent): void;
312
+ /** Focuses the (possibly collapsed) trigger input and opens the popup when the chips area is clicked. */
313
+ protected onMultipleBodyClick(event: MouseEvent): void;
302
314
  /** Forwards native focus from the trigger input. */
303
315
  protected emitOnFocus(e: FocusEvent): void;
304
316
  /** Forwards native blur from the trigger input. */
@@ -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 {
@@ -89,7 +89,9 @@ declare class AXFileViewerContainerComponent implements OnDestroy {
89
89
  private readonly mainCarouselRef;
90
90
  private readonly thumbCarouselRef;
91
91
  private initToken;
92
+ private galleryControlsTimer?;
92
93
  readonly isFullscreenActive: _angular_core.WritableSignal<boolean>;
94
+ protected readonly galleryControlsVisible: _angular_core.WritableSignal<boolean>;
93
95
  /** True while carousels are being (re)initialized. */
94
96
  readonly initializing: _angular_core.WritableSignal<boolean>;
95
97
  readonly isBusy: _angular_core.Signal<boolean>;
@@ -119,6 +121,7 @@ declare class AXFileViewerContainerComponent implements OnDestroy {
119
121
  private readonly mainCarouselOptions;
120
122
  private readonly thumbnailCarouselOptions;
121
123
  constructor();
124
+ protected showGalleryControls(touchInProgress?: boolean): void;
122
125
  resolveHeaderAction(action: AXMenuItem): AXMenuItem;
123
126
  onHeaderActionClick(action: AXMenuItem, event: AXClickEvent): void;
124
127
  private isFullscreenAction;
@@ -17,16 +17,17 @@ import { AXDataTableComponent, AXDataTableRowClick } from '@acorex/components/da
17
17
  * - `drop-down-tree` — a tree-like structure for single item selection.
18
18
  * - `multi-select-tree` — a tree-like structure for multiple item selection.
19
19
  * - `multi-column` — a table-structured list for single selection.
20
+ * - `multi-column-multi-select` — a multi-column table for multiple item selection.
20
21
  * - `multi-column-tree` — a multi-column table with a drop-down tree inside it (expandable rows).
21
22
  */
22
- type AXLookupMode = 'drop-down-list' | 'multi-select' | 'drop-down-tree' | 'multi-select-tree' | 'multi-column' | 'multi-column-tree';
23
+ type AXLookupMode = 'drop-down-list' | 'multi-select' | 'drop-down-tree' | 'multi-select-tree' | 'multi-column' | 'multi-column-multi-select' | 'multi-column-tree';
23
24
  /**
24
- * A column definition for the `multi-column` and `multi-column-tree` lookup modes
25
+ * A column definition for the `multi-column`, `multi-column-multi-select`, and `multi-column-tree` lookup modes
25
26
  * (rendered via `ax-data-table`).
26
27
  *
27
28
  * - `field` — the item property rendered in this column (`ax-text-column` `dataField`).
28
29
  * - `title` — the header text of the column (`ax-text-column` `caption`).
29
- * - `width` — optional column width (`120px`, `20%`, or `auto`). Defaults to `auto`.
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.
30
31
  * - `expandHandler` — when `true`, this column shows the tree expand/collapse control
31
32
  * (`multi-column-tree` only). If omitted, the column matching `textField` (or the first
32
33
  * column) is used.
@@ -284,13 +285,15 @@ declare function lookupConfig(config?: PartialLookupConfig): AXLookupConfig;
284
285
  * Modes (each rendered by its own internal mini component):
285
286
  * - `drop-down-list` — a predefined list of options for picking single values.
286
287
  * - `multi-select` — a predefined list of options for multiple item selection (chips in the trigger).
287
- * In multi modes, Backspace with an empty trigger input removes the last chip; repeated presses clear
288
- * the whole selection.
288
+ * In multi modes, once items are selected the trigger search input is shown only while it is focused
289
+ * or the popup is open. Backspace with an empty trigger input removes the last chip; repeated presses
290
+ * clear the whole selection.
289
291
  * - `drop-down-tree` — a tree-like structure for single item selection; when searchable, the trigger
290
292
  * input filters nested nodes as you type (on small screens the search field is inside the actionsheet).
291
293
  * - `multi-select-tree` — a tree-like structure for multiple item selection; searchable the same way.
292
294
  * - `multi-column` — an `ax-data-table` grid; when searchable, the trigger input filters as you type
293
295
  * (on small screens the search field is inside the actionsheet).
296
+ * - `multi-column-multi-select` — the same grid with checkboxes for multiple item selection.
294
297
  * - `multi-column-tree` — a multi-column `ax-data-table` with a drop-down tree inside it
295
298
  * (expandable hierarchical rows). Uses `treeDataSource` + `columns`, or a hierarchical `dataSource`.
296
299
  *
@@ -313,7 +316,7 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
313
316
  */
314
317
  mode: _angular_core.InputSignal<AXLookupMode>;
315
318
  /**
316
- * The items source for list-based modes (`drop-down-list`, `multi-select`, `multi-column`)
319
+ * The items source for list-based modes (`drop-down-list`, `multi-select`, `multi-column`, `multi-column-multi-select`)
317
320
  * and for `multi-column-tree` when `treeDataSource` is not set.
318
321
  * Accepts an `AXDataSource` (remote paging, `byKey`, server-side filter) or a plain array.
319
322
  */
@@ -563,6 +566,13 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
563
566
  * the selected display text (same pattern as combo-box).
564
567
  */
565
568
  protected showSelectedTemplate: _angular_core.Signal<boolean>;
569
+ /** Whether the trigger input currently has focus. */
570
+ protected triggerFocused: _angular_core.WritableSignal<boolean>;
571
+ /**
572
+ * Multi modes: whether the trigger search row is visible. With a selection, it is shown only
573
+ * while the editable trigger is focused or the popup is open, so only the chips remain otherwise.
574
+ */
575
+ protected showTriggerSearch: _angular_core.Signal<boolean>;
566
576
  /** Placeholder for the editable trigger search input. */
567
577
  protected triggerSearchPlaceholder: _angular_core.Signal<string>;
568
578
  protected popoverRef: _angular_core.Signal<AXPopoverComponent>;
@@ -661,6 +671,8 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
661
671
  * Applies the multi-select-tree selection to the value; the popup stays open.
662
672
  */
663
673
  protected handleTreeSelectionChange(e: AXLookupTreeSelectionEvent): void;
674
+ /** Keeps focus on the trigger input when pressing on the chips area (multi modes). */
675
+ protected onMultipleBodyMouseDown(event: MouseEvent): void;
664
676
  /** Forwards native focus from the trigger input. */
665
677
  protected emitOnFocus(e: FocusEvent): void;
666
678
  /** Forwards native blur from the trigger input. */
@@ -790,9 +802,10 @@ declare class AXLookupDropDownTreeComponent {
790
802
  }
791
803
 
792
804
  /**
793
- * Internal mini component for the `multi-column` lookup mode:
805
+ * Internal mini component for the `multi-column` and `multi-column-multi-select` lookup modes:
794
806
  * renders selectable rows in an `ax-data-table` grid and loads further
795
- * pages as the user scrolls (no pager UI).
807
+ * pages as the user scrolls (no pager UI). When {@link multiple} is `true`, a checkbox column is shown
808
+ * and row clicks toggle selection without closing the popup.
796
809
  *
797
810
  * @category Components
798
811
  */
@@ -819,6 +832,18 @@ declare class AXLookupMultiColumnComponent {
819
832
  * Currently selected values (always an array, even for single selection).
820
833
  */
821
834
  selectedValues: _angular_core.InputSignal<unknown[]>;
835
+ /**
836
+ * When `true`, rows toggle on click and the popup stays open (`multi-column-multi-select` mode).
837
+ */
838
+ multiple: _angular_core.InputSignal<boolean>;
839
+ /**
840
+ * When `true`, every non-disabled row is selected except keys listed in `excludedValues`.
841
+ */
842
+ selectAllActive: _angular_core.InputSignal<boolean>;
843
+ /**
844
+ * Value keys excluded from selection while `selectAllActive` is true.
845
+ */
846
+ excludedValues: _angular_core.InputSignal<unknown[]>;
822
847
  /**
823
848
  * The fixed row height in pixels passed to the data table.
824
849
  */
@@ -877,17 +902,23 @@ declare class AXLookupMultiColumnComponent {
877
902
  constructor();
878
903
  /** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
879
904
  protected trackColumnKey(index: number, column: AXLookupColumn): string;
880
- protected readonly fillColumnWidths: _angular_core.Signal<string[]>;
905
+ protected readonly columnContentMaxWidth = 240;
881
906
  protected resolveColumnWidth(index: number): string;
907
+ protected cellText(row: AXLookupItem | null | undefined, field: string): string;
882
908
  protected resolveRowCssClass: (row: unknown) => string;
909
+ protected handleRowPointerDown(event: AXDataTableRowClick): void;
883
910
  protected handleRowClick(event: AXDataTableRowClick): void;
884
911
  protected handleItemClick(item: AXLookupItem | null | undefined): void;
885
912
  protected handleItemMouseDown(event: Event, item: AXLookupItem | null | undefined): void;
886
913
  protected isSelected(item: AXLookupItem): boolean;
914
+ /** @ignore Used by {@link AXLookupMultiColumnCheckboxColumnComponent}. */
915
+ isRowSelected(item: AXLookupItem | null | undefined): boolean;
916
+ /** @ignore Used by {@link AXLookupMultiColumnCheckboxColumnComponent}. */
917
+ isRowDisabled(item: AXLookupItem | null | undefined): boolean;
887
918
  protected isDisabled(item: AXLookupItem): boolean;
888
919
  private getValue;
889
920
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXLookupMultiColumnComponent, never>;
890
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXLookupMultiColumnComponent, "ax-lookup-multi-column", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "required": false; "isSignal": true; }; "maxVisibleItems": { "alias": "maxVisibleItems"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; "isSignal": true; }; "alternate": { "alias": "alternate"; "required": false; "isSignal": true; }; "highlightText": { "alias": "highlightText"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
921
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXLookupMultiColumnComponent, "ax-lookup-multi-column", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "selectAllActive": { "alias": "selectAllActive"; "required": false; "isSignal": true; }; "excludedValues": { "alias": "excludedValues"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "required": false; "isSignal": true; }; "maxVisibleItems": { "alias": "maxVisibleItems"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "loadingTemplate": { "alias": "loadingTemplate"; "required": false; "isSignal": true; }; "alternate": { "alias": "alternate"; "required": false; "isSignal": true; }; "highlightText": { "alias": "highlightText"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
891
922
  }
892
923
 
893
924
  /**
@@ -981,7 +1012,7 @@ declare class AXLookupMultiColumnTreeComponent {
981
1012
  }>;
982
1013
  /** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
983
1014
  protected trackColumnKey(index: number, column: AXLookupColumn): string;
984
- protected readonly fillColumnWidths: _angular_core.Signal<string[]>;
1015
+ protected readonly columnContentMaxWidth = 240;
985
1016
  protected resolveColumnWidth(index: number): string;
986
1017
  protected isExpandColumn(index: number, column: AXLookupColumn): boolean;
987
1018
  protected resolveRowCssClass: (row: unknown) => string;