@coolon/angular-ui-powerups 16.1.0-alpha.194 → 16.1.0-alpha.195

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.
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, PipeTransform } from '@angular/core';
2
2
  import { DomSanitizer } from '@angular/platform-browser';
3
- import { GarbageCollector, ValueModel } from '@coolon/pectin';
3
+ import { GarbageCollector } from '@coolon/pectin';
4
4
  import { HighlightTextModelDirective } from './highlight-text-model.directive';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class HighlightPipe extends GarbageCollector implements PipeTransform, OnDestroy {
@@ -12,10 +12,9 @@ export declare class HighlightPipe extends GarbageCollector implements PipeTrans
12
12
  * Highlights occurrences of `searchModel` within `value`.
13
13
  *
14
14
  * @param value The string to search within.
15
- * @param searchModel The model holding the search text.
16
- * @param ignorePrefix If provided, this prefix is stripped from `searchModel` before matching. I.e. if the search string is "ct:west-223" and the ignore prefix is "ct:", the value will be highlighted for "west-223".
15
+ * @param searchTextFilter Intercept the search text to allow matching against substrings.
17
16
  */
18
- transform(value: any, searchModel?: ValueModel<string>, ignorePrefix?: string): any;
17
+ transform(value: any, searchTextFilter?: (raw: string) => string): any;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, [null, { optional: true; }]>;
20
19
  static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "aupHighlight", false>;
21
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.194",
3
+ "version": "16.1.0-alpha.195",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",