@acorex/components 22.1.0 → 22.1.1

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.1.0",
3
+ "version": "22.1.1",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.1.0",
6
- "@acorex/cdk": "22.1.0",
5
+ "@acorex/core": "22.1.1",
6
+ "@acorex/cdk": "22.1.1",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "angular-imask": ">=7.6.1",
@@ -156,7 +156,8 @@ declare abstract class AXLookupListViewBase {
156
156
  */
157
157
  maxVisibleItems: _angular_core.InputSignal<number>;
158
158
  /**
159
- * Custom template rendered for each item. Context: `$implicit` is the item.
159
+ * Custom template rendered for each item. Context: `$implicit` is the item;
160
+ * `highlightText` is the active search query when result highlighting is enabled.
160
161
  * Default option chrome is not applied on top of the template.
161
162
  */
162
163
  itemTemplate: _angular_core.InputSignal<TemplateRef<unknown>>;
@@ -431,7 +432,8 @@ declare class AXLookupComponent<T = AXLookupItem> extends NXValueComponent imple
431
432
  */
432
433
  highlightSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
433
434
  /**
434
- * Custom template rendered for each item/node. Context: `$implicit` is the item.
435
+ * Custom template rendered for each item/node. Context: `$implicit` is the item;
436
+ * `highlightText` is the active search query when result highlighting is enabled.
435
437
  * Default option chrome (padding, typography, check icon) is not applied; only the
436
438
  * template's styles are used. Selection and hover backgrounds remain on the row.
437
439
  */
@@ -150,6 +150,11 @@ interface AXTreeViewItemTemplateContext {
150
150
  dragArea: AXTreeViewDragArea;
151
151
  /** Whether the drag handle should be shown (dragArea === 'handler' && dragBehavior !== 'none') */
152
152
  showDragHandle: boolean;
153
+ /**
154
+ * The active search query. The default node label highlights it automatically;
155
+ * custom templates must render it themselves (e.g. with `ax-highlight-text`).
156
+ */
157
+ highlightText: string;
153
158
  }
154
159
  type AXTreeViewViewLook = 'default' | 'card' | 'with-line';
155
160
  type AXTreeViewDragArea = 'handler' | 'item';
@@ -241,7 +246,12 @@ declare class AXTreeViewComponent {
241
246
  * including expanded children). Default: `false`.
242
247
  */
243
248
  readonly alternate: _angular_core.InputSignal<boolean>;
244
- /** Custom template for tree items. Default: `undefined` */
249
+ /**
250
+ * Custom template for tree items. Default: `undefined`
251
+ *
252
+ * Context includes `highlightText`; the default node label is replaced by the template,
253
+ * so search highlighting must be rendered by the template itself.
254
+ */
245
255
  readonly nodeTemplate: _angular_core.InputSignal<TemplateRef<AXTreeViewItemTemplateContext>>;
246
256
  /** Field name for node ID. Default: `'id'` */
247
257
  readonly idField: _angular_core.InputSignal<string>;