@acorex/components 22.4.59 → 22.4.60

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.60",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.4.59",
6
- "@acorex/cdk": "22.4.59",
5
+ "@acorex/core": "22.4.60",
6
+ "@acorex/cdk": "22.4.60",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "hammerjs": ">=2.0.8",
@@ -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. */
@@ -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,11 +17,12 @@ 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`).
@@ -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
  */
@@ -880,14 +905,19 @@ declare class AXLookupMultiColumnComponent {
880
905
  protected readonly fillColumnWidths: _angular_core.Signal<string[]>;
881
906
  protected resolveColumnWidth(index: number): string;
882
907
  protected resolveRowCssClass: (row: unknown) => string;
908
+ protected handleRowPointerDown(event: AXDataTableRowClick): void;
883
909
  protected handleRowClick(event: AXDataTableRowClick): void;
884
910
  protected handleItemClick(item: AXLookupItem | null | undefined): void;
885
911
  protected handleItemMouseDown(event: Event, item: AXLookupItem | null | undefined): void;
886
912
  protected isSelected(item: AXLookupItem): boolean;
913
+ /** @ignore Used by {@link AXLookupMultiColumnCheckboxColumnComponent}. */
914
+ isRowSelected(item: AXLookupItem | null | undefined): boolean;
915
+ /** @ignore Used by {@link AXLookupMultiColumnCheckboxColumnComponent}. */
916
+ isRowDisabled(item: AXLookupItem | null | undefined): boolean;
887
917
  protected isDisabled(item: AXLookupItem): boolean;
888
918
  private getValue;
889
919
  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>;
920
+ 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
921
  }
892
922
 
893
923
  /**