@coolon/angular-ui-powerups 16.1.0-alpha.193 → 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 {
@@ -8,7 +8,13 @@ export declare class HighlightPipe extends GarbageCollector implements PipeTrans
8
8
  private readonly highlightContext?;
9
9
  constructor(sanitizer: DomSanitizer, highlightContext?: HighlightTextModelDirective);
10
10
  ngOnDestroy(): void;
11
- transform(value: any, searchModel?: ValueModel<string>): any;
11
+ /**
12
+ * Highlights occurrences of `searchModel` within `value`.
13
+ *
14
+ * @param value The string to search within.
15
+ * @param searchTextFilter Intercept the search text to allow matching against substrings.
16
+ */
17
+ transform(value: any, searchTextFilter?: (raw: string) => string): any;
12
18
  static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, [null, { optional: true; }]>;
13
19
  static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "aupHighlight", false>;
14
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.193",
3
+ "version": "16.1.0-alpha.195",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,7 +12,7 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.101",
15
+ "@coolon/pectin": "^5.0.0-alpha.103",
16
16
  "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",