@coolon/angular-ui-powerups 16.1.0-alpha.304 → 16.1.0-alpha.306
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/esm2022/lib/directives/highlight.pipe.mjs +19 -5
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +8 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs +25 -6
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/directives/highlight.pipe.d.ts +8 -0
- package/package.json +2 -2
|
@@ -8,13 +8,21 @@ 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
|
+
/** The markup last produced, and the trusted value wrapping it. */
|
|
12
|
+
private lastHtml?;
|
|
13
|
+
private lastResult;
|
|
11
14
|
/**
|
|
12
15
|
* Highlights occurrences of `searchModel` within `value`.
|
|
13
16
|
*
|
|
17
|
+
* The pipe is impure, so it runs on every change detection of its view. It hands back the same
|
|
18
|
+
* trusted value while the markup is unchanged: a fresh one each time would read as a new binding,
|
|
19
|
+
* and an `[innerHTML]` would replace its text on every pass though nothing about it had changed.
|
|
20
|
+
*
|
|
14
21
|
* @param value The string to search within.
|
|
15
22
|
* @param searchTextFilter Intercept the search text to allow matching against substrings.
|
|
16
23
|
*/
|
|
17
24
|
transform(value: any, searchTextFilter?: (raw: string) => string | undefined | null): any;
|
|
25
|
+
private highlight;
|
|
18
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, [null, { optional: true; }]>;
|
|
19
27
|
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "aupHighlight", false>;
|
|
20
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-alpha.
|
|
3
|
+
"version": "16.1.0-alpha.306",
|
|
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.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.146",
|
|
16
16
|
"fast-typescript-memoize": "^1.1.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|