@acorex/components 22.1.0 → 22.1.2

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.2",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.1.0",
6
- "@acorex/cdk": "22.1.0",
5
+ "@acorex/core": "22.1.2",
6
+ "@acorex/cdk": "22.1.2",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "angular-imask": ">=7.6.1",
@@ -84,6 +84,9 @@ declare class AXAudioWaveComponent implements OnDestroy {
84
84
  *
85
85
  */
86
86
  getMediaElement(): HTMLMediaElement;
87
+ /**
88
+ * Retrieves the current playback position in seconds.
89
+ */
87
90
  getCurrentTime(): number;
88
91
  /**
89
92
  * Sets the playback rate of the audio.
@@ -91,7 +94,17 @@ declare class AXAudioWaveComponent implements OnDestroy {
91
94
  * @param rate - The playback rate to set.
92
95
  */
93
96
  setRate(rate: number): void;
97
+ /**
98
+ * Mutes or unmutes the audio.
99
+ *
100
+ * @param muted - Whether the audio should be muted.
101
+ */
94
102
  setMuted(muted: boolean): void;
103
+ /**
104
+ * Indicates whether the audio is currently muted.
105
+ *
106
+ * @returns True when muted; otherwise false.
107
+ */
95
108
  isMuted(): boolean;
96
109
  /**
97
110
  * @ignore
@@ -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>;