@acorex/components 22.4.58 → 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/fesm2022/acorex-components-combo-box.mjs +36 -4
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +29 -2
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +231 -18
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +2 -2
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-combo-box.d.ts +14 -2
- package/types/acorex-components-file-viewer.d.ts +3 -0
- package/types/acorex-components-lookup.d.ts +38 -8
|
@@ -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,
|
|
288
|
-
* the
|
|
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
|
|
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
|
/**
|