@coolon/angular-ui-powerups 16.1.0-alpha.194 → 16.1.0-alpha.196
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/components/disposable-component.mjs +15 -6
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +24 -5
- package/esm2022/lib/directives/highlight.pipe.mjs +6 -10
- package/fesm2022/coolon-angular-ui-powerups.mjs +42 -19
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/disposable-component.d.ts +2 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +2 -0
- package/lib/directives/highlight.pipe.d.ts +3 -4
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, InjectOptions, OnDestroy, OnInit, ProviderToken } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, InjectionToken, InjectOptions, OnDestroy, OnInit, ProviderToken } from '@angular/core';
|
|
2
2
|
import { GarbageCollector, HasValue } from '@coolon/pectin';
|
|
3
3
|
import { HighlightTextModelDirective } from "../directives/highlight-text-model.directive";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const AUP_IN_DETACHED_CHANGE_DETECTION_PARENT: InjectionToken<boolean>;
|
|
5
6
|
export declare class DisposableComponent extends GarbageCollector implements OnInit, OnDestroy {
|
|
6
7
|
#private;
|
|
7
8
|
readonly trackById: import("@angular/core").TrackByFunction<any>;
|
|
@@ -9,6 +9,7 @@ import { ColumnModel } from "../../column/column-model";
|
|
|
9
9
|
import { FooterRowModel } from "../../footer/footer-row-model";
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare const AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER: InjectionToken<number>;
|
|
12
|
+
export declare const AUP_TABLE_OPTIMIZED_CHANGE_DETECTION: InjectionToken<boolean>;
|
|
12
13
|
export declare class TableRowAttributesDirective implements OnInit {
|
|
13
14
|
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
14
15
|
aupTableRowAttributes: Record<string, string>;
|
|
@@ -37,6 +38,7 @@ export declare class TableBodyComponent<Row extends object> extends ResizeAwareC
|
|
|
37
38
|
protected virtualScrollDataSource: TableVirtualScrollDataSource<Row>;
|
|
38
39
|
private virtualScrollActive$;
|
|
39
40
|
private scrollTimeout;
|
|
41
|
+
protected readonly optimisedChangeDetectionEnabled: boolean;
|
|
40
42
|
constructor(bufferMultiplier?: number);
|
|
41
43
|
ngAfterViewInit(): void;
|
|
42
44
|
get hideHeader(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { GarbageCollector
|
|
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
|
|
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,
|
|
17
|
+
transform(value: any, searchTextFilter?: (raw: string) => string | undefined | null): 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.
|
|
3
|
+
"version": "16.1.0-alpha.196",
|
|
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.104",
|
|
16
16
|
"fast-typescript-memoize": "^1.1.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|