@coolon/angular-ui-powerups 16.1.0-aplpha.187 → 16.1.0-aplpha.189
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/README.md +4 -0
- package/esm2022/lib/components/file/file-download/file-download.component.mjs +18 -7
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +1 -1
- package/esm2022/lib/place/route/parameter-decorators.mjs +1 -1
- package/esm2022/lib/place/route/parameter-definition.mjs +5 -1
- package/esm2022/lib/place/route/parameter-sanitiser.mjs +7 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +26 -6
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/file/file-download/file-download.component.d.ts +4 -2
- package/lib/place/route/parameter-decorators.d.ts +3 -4
- package/lib/place/route/parameter-definition.d.ts +2 -2
- package/lib/place/route/parameter-sanitiser.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ThemePalette } from
|
|
1
|
+
import { ThemePalette } from '@angular/material/core';
|
|
2
2
|
import { CommandFace, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import { HorizontalAlignment } from
|
|
3
|
+
import { HorizontalAlignment } from '../../alignment';
|
|
4
4
|
import { CommandFace as CommandFaceUtil } from '../../commands/command-face';
|
|
5
5
|
import { PopupAwareComponent } from '../../commands/group/popup-aware.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -16,7 +16,9 @@ export declare class FileDownloadComponent extends PopupAwareComponent {
|
|
|
16
16
|
protected readonly buttonStyle$: ValueModelChain<string>;
|
|
17
17
|
protected readonly color$: ValueModelChain<ThemePalette>;
|
|
18
18
|
protected readonly tooltip$: ValueModelChain<string>;
|
|
19
|
+
protected readonly document: Document;
|
|
19
20
|
constructor();
|
|
21
|
+
downloadFile(): void;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloadComponent, never>;
|
|
21
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileDownloadComponent, "aup-file-download", never, { "download$": { "alias": "download$"; "required": false; }; "download": { "alias": "download"; "required": false; }; "alignFace": { "alias": "alignFace"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
24
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Constructable } from '@coolon/pectin';
|
|
2
1
|
import { Formatter } from './formatter';
|
|
3
2
|
import { ParameterSanitiser } from './parameter-sanitiser';
|
|
4
3
|
export interface RouteIdOptions<T> {
|
|
@@ -6,7 +5,7 @@ export interface RouteIdOptions<T> {
|
|
|
6
5
|
optional?: boolean;
|
|
7
6
|
remember?: boolean;
|
|
8
7
|
defaultValue?: T;
|
|
9
|
-
sanitiser?:
|
|
8
|
+
sanitiser?: ParameterSanitiser.Def<T>;
|
|
10
9
|
}
|
|
11
10
|
export interface RouteParameterOptions<T> {
|
|
12
11
|
as?: string;
|
|
@@ -14,7 +13,7 @@ export interface RouteParameterOptions<T> {
|
|
|
14
13
|
remember?: boolean;
|
|
15
14
|
defaultValue?: T;
|
|
16
15
|
storeInUrl?: Formatter<T>;
|
|
17
|
-
sanitiser?:
|
|
16
|
+
sanitiser?: ParameterSanitiser.Def<T>;
|
|
18
17
|
}
|
|
19
18
|
export interface RouteListParameterOptions<T> {
|
|
20
19
|
as?: string;
|
|
@@ -22,7 +21,7 @@ export interface RouteListParameterOptions<T> {
|
|
|
22
21
|
remember?: boolean;
|
|
23
22
|
defaultValue?: T[];
|
|
24
23
|
storeInUrl?: Formatter<T>;
|
|
25
|
-
sanitiser?:
|
|
24
|
+
sanitiser?: ParameterSanitiser.Def<T[]>;
|
|
26
25
|
}
|
|
27
26
|
export declare function RouteId<T extends string | number>(formatter: Formatter<T>, options?: RouteIdOptions<T>): PropertyDecorator;
|
|
28
27
|
export declare function VisitParameter<T>(options?: RouteParameterOptions<T>): PropertyDecorator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { HasValue, ListModel, MutableListModel, MutableValueModel, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { PlaceHistory } from '../place-history';
|
|
4
4
|
import { VisitSegment } from '../visit-segment';
|
|
5
5
|
import { Formatter } from './formatter';
|
|
@@ -32,7 +32,7 @@ export declare namespace ParameterDefinition {
|
|
|
32
32
|
optional?: boolean;
|
|
33
33
|
remember?: boolean;
|
|
34
34
|
defaultValue?: T;
|
|
35
|
-
sanitiser?:
|
|
35
|
+
sanitiser?: ParameterSanitiser.Def<T>;
|
|
36
36
|
}
|
|
37
37
|
class RouteId<T> extends ParameterDefinition<T> {
|
|
38
38
|
readonly isRouteId = true;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
+
import { Constructable } from '@coolon/pectin';
|
|
2
3
|
import { VisitSegment } from '../visit-segment';
|
|
3
4
|
export interface ParameterSanitiser<T> {
|
|
4
5
|
sanitise(parameterValue: T, visit?: VisitSegment, injector?: Injector): Promise<T> | T;
|
|
5
6
|
}
|
|
7
|
+
export declare namespace ParameterSanitiser {
|
|
8
|
+
abstract class Factory<T> {
|
|
9
|
+
abstract create(injector: Injector): ParameterSanitiser<T>;
|
|
10
|
+
}
|
|
11
|
+
type Def<T> = ParameterSanitiser<T> | Constructable<ParameterSanitiser<T>> | Factory<T>;
|
|
12
|
+
}
|