@acorex/components 22.1.0-next.24 → 22.1.0-next.26
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-alert.mjs +2 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +76 -6
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +326 -345
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +524 -120
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +40 -3
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/lookup/README.md +3 -3
- package/package.json +3 -3
- package/types/acorex-components-combo-box.d.ts +6 -1
- package/types/acorex-components-conversation.d.ts +71 -277
- package/types/acorex-components-lookup.d.ts +99 -50
- package/types/acorex-components-tree-view.d.ts +9 -1
package/lookup/README.md
CHANGED
|
@@ -62,11 +62,11 @@ Value binding uses the signal `value` model (`FormValueControl`) — prefer `[(n
|
|
|
62
62
|
- `valueField` / `textField` / `disabledField`: field mappings. For tree modes these map to the tree `idField` / `titleField`.
|
|
63
63
|
- `columns`: column definitions (`{ field, title, width?, expandHandler? }`) for `multi-column` and `multi-column-tree` (mapped to `ax-text-column`).
|
|
64
64
|
- `treeParentField` / `hasChildrenField`: hierarchy fields for `multi-column-tree` (defaults `parentId` / `hasChild`).
|
|
65
|
-
- `searchable`: when `true` (default), the trigger accepts typing and filters the list (
|
|
65
|
+
- `searchable`: when `true` (default), the trigger accepts typing and filters the list or tree in every mode. Nested array trees keep matching branches and expand ancestors of hits; lazy callback trees filter each loaded level (unloaded descendants are not searched). When `false`, the trigger is select-only.
|
|
66
66
|
- `adaptivityEnabled`: when `true` (default), the list opens as a bottom actionsheet on small screens instead of a dropdown; set `false` to always use the anchored dropdown.
|
|
67
67
|
- `caption`: title shown in the actionsheet header (falls back to `placeholder`).
|
|
68
|
-
- `alternate`: when `true`, list rows use alternating background colors for easier scanning (
|
|
69
|
-
- `searchPlaceholder`: placeholder for the multi-select trigger search input when chips are already selected.
|
|
68
|
+
- `alternate`: when `true`, list rows use alternating background colors for easier scanning (all modes, including tree).
|
|
69
|
+
- `searchPlaceholder`: placeholder for the multi-select / multi-select-tree trigger search input when chips are already selected.
|
|
70
70
|
- `itemHeight` / `maxVisibleItems`: list virtual-scroll sizing, and multi-column table viewport height (multi-column loads more pages on scroll, not via a pager).
|
|
71
71
|
- `look`: the same editor-container look schemes as other editors like `ax-text-box`.
|
|
72
72
|
- `ax-prefix` / `ax-suffix`: project decorators into the editor container.
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/components",
|
|
3
|
-
"version": "22.1.0-next.
|
|
3
|
+
"version": "22.1.0-next.26",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "22.1.0-next.
|
|
6
|
-
"@acorex/cdk": "22.1.0-next.
|
|
5
|
+
"@acorex/core": "22.1.0-next.26",
|
|
6
|
+
"@acorex/cdk": "22.1.0-next.26",
|
|
7
7
|
"@angular/aria": ">=22.1.0",
|
|
8
8
|
"polytype": ">=0.17.0",
|
|
9
9
|
"angular-imask": ">=7.6.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
|
-
import { NXValueComponent, AXStyleLookType, AXValueChangedEvent, AXFocusEvent, AXItemClickEvent, AXItemSelectedEvent, AXEvent } from '@acorex/cdk/common';
|
|
3
|
+
import { NXValueComponent, AXStyleLookType, AXValueChangedEvent, AXFocusEvent, AXItemClickEvent, AXItemSelectedEvent, AXEvent, AXHtmlEvent } from '@acorex/cdk/common';
|
|
4
4
|
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
5
5
|
import { AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
6
6
|
import { Combobox } from '@angular/aria/combobox';
|
|
@@ -205,10 +205,13 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
|
|
|
205
205
|
protected onTriggerClick(): void;
|
|
206
206
|
/**
|
|
207
207
|
* Keyboard handling on the trigger:
|
|
208
|
+
* - Searchable: Enter never submits the form; with no matches the value is cleared (`null`).
|
|
208
209
|
* - Non-searchable: open with Enter/Space when collapsed; commit with Space when expanded.
|
|
209
210
|
* - Multi-select: Backspace removes the last chip when the search input is empty.
|
|
210
211
|
*/
|
|
211
212
|
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
213
|
+
/** Handles Enter in the actionsheet search field (no form submit; clear on no matches). */
|
|
214
|
+
protected onSheetSearchKeydown(e: AXHtmlEvent<KeyboardEvent>): void;
|
|
212
215
|
/** Blocks typing when the trigger is not editable (keeps Tab / keyboard open working). */
|
|
213
216
|
protected onBeforeInput(event: Event): void;
|
|
214
217
|
/**
|
|
@@ -249,7 +252,9 @@ declare class AXComboBoxComponent extends NXValueComponent implements FormValueC
|
|
|
249
252
|
* that option. Clicks resolve from the event target so we do not depend on listener order vs ngListbox.
|
|
250
253
|
*
|
|
251
254
|
* In multi-select mode the item is toggled and the popup stays open.
|
|
255
|
+
* When the user typed a query with no matches, Enter clears single-select to `null`.
|
|
252
256
|
*/
|
|
257
|
+
protected onListEnter(event: Event): void;
|
|
253
258
|
protected commit(event?: Event): void;
|
|
254
259
|
/**
|
|
255
260
|
* Focuses the combo box trigger input.
|