@vality/matez 19.0.0 → 19.0.1-0093e07.0
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/fesm2022/vality-matez.mjs +174 -34
- package/fesm2022/vality-matez.mjs.map +1 -1
- package/lib/components/input-field/input-field.component.d.ts +2 -1
- package/lib/components/table/components/table-info-bar/table-info-bar.component.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/query-params/query-params.service.d.ts +2 -1
- package/lib/services/query-params/utils/index.d.ts +1 -0
- package/lib/services/query-params/utils/serialize-query-params.d.ts +4 -0
- package/lib/services/toast/index.d.ts +1 -0
- package/lib/services/toast/toast.component.d.ts +26 -0
- package/lib/services/toast/toast.service.d.ts +10 -0
- package/lib/types/extract-path-params.d.ts +3 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/utils/create-storage-value.d.ts +13 -9
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/operators/progress-to.d.ts +2 -1
- package/lib/utils/subscribe-return.d.ts +6 -0
- package/package.json +2 -2
- package/src/lib/components/file-upload/file-upload.component.scss +4 -0
- package/src/lib/services/toast/toast.component.scss +13 -0
- package/lib/services/query-params/utils/serialize-query-param.d.ts +0 -2
|
@@ -9,6 +9,7 @@ export declare class InputFieldComponent<T> extends FormControlSuperclass<T> {
|
|
|
9
9
|
size?: 'small' | '';
|
|
10
10
|
cleanButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
11
|
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
12
|
+
hintText: import("@angular/core").InputSignal<string | undefined>;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldComponent<any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent<any>, "v-input-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "size": { "alias": "size"; "required": false; }; "cleanButton": { "alias": "cleanButton"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent<any>, "v-input-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "size": { "alias": "size"; "required": false; }; "cleanButton": { "alias": "cleanButton"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "hintText": { "alias": "hintText"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
14
15
|
}
|
|
@@ -18,10 +18,10 @@ export declare class TableInfoBarComponent<T extends object, C extends object> i
|
|
|
18
18
|
filteredCount: import("@angular/core").InputSignal<number | null | undefined>;
|
|
19
19
|
selectedCount: import("@angular/core").InputSignal<number | null | undefined>;
|
|
20
20
|
filter: import("@angular/core").InputSignal<string>;
|
|
21
|
-
standaloneFilter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
|
-
hasInputs: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
21
|
filterChange: import("@angular/core").OutputEmitterRef<string>;
|
|
24
22
|
filterControl: FormControl<string>;
|
|
23
|
+
standaloneFilter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
hasInputs: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
25
|
downloadCsv: import("@angular/core").OutputEmitterRef<void>;
|
|
26
26
|
load: import("@angular/core").OutputEmitterRef<void>;
|
|
27
27
|
preload: import("@angular/core").OutputEmitterRef<void>;
|
package/lib/index.d.ts
CHANGED
package/lib/services/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Serializer } from './types/serializer';
|
|
4
|
+
import { serializeQueryParams } from './utils';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
interface SerializeOptions {
|
|
6
|
-
filter?:
|
|
7
|
+
filter?: Parameters<typeof serializeQueryParams>[1];
|
|
7
8
|
}
|
|
8
9
|
interface BaseQueryParams<T extends object> {
|
|
9
10
|
params$: Observable<Partial<T>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Params } from '@angular/router';
|
|
2
|
+
import { Serializer } from '../types/serializer';
|
|
3
|
+
export declare function serializeQueryParam(value: unknown, serializers?: Serializer[]): string;
|
|
4
|
+
export declare function serializeQueryParams(params: object, filter?: (param: unknown, key: string) => boolean, serializers?: Serializer[]): Params;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toast.service';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MatSnackBarRef } from '@angular/material/snack-bar';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const DEFAULT_DURATION = 3000;
|
|
5
|
+
export interface ToastData {
|
|
6
|
+
message?: string;
|
|
7
|
+
action?: () => void;
|
|
8
|
+
/** Duration after progress or if not set, duration of the snackbar */
|
|
9
|
+
duration?: number;
|
|
10
|
+
progress$?: Observable<boolean>;
|
|
11
|
+
progressMessage?: string;
|
|
12
|
+
successMessage?: string;
|
|
13
|
+
error$?: Observable<unknown>;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class ToastComponent {
|
|
17
|
+
data: ToastData;
|
|
18
|
+
private snackBarRef;
|
|
19
|
+
message$: Observable<string | undefined>;
|
|
20
|
+
constructor(data: ToastData, snackBarRef: MatSnackBarRef<ToastComponent>);
|
|
21
|
+
dismissWithAction(): void;
|
|
22
|
+
private subscribeProgress;
|
|
23
|
+
private dismissByDuration;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "v-toast", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
|
|
2
|
+
import { ToastComponent, ToastData } from './toast.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ToastService {
|
|
5
|
+
private snackBar;
|
|
6
|
+
constructor(snackBar: MatSnackBar);
|
|
7
|
+
open(data: ToastData, config?: Omit<MatSnackBarConfig<ToastData>, 'data'>): import("@angular/material/snack-bar").MatSnackBarRef<ToastComponent>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type ExtractParam<Path, NextPart> = Path extends `:${infer Param}` ? Record<Param, string> & NextPart : NextPart;
|
|
2
|
+
export type ExtractParams<Path> = Path extends `${infer Segment}/${infer Rest}` ? ExtractParam<Segment, ExtractParams<Rest>> : ExtractParam<Path, {}>;
|
|
3
|
+
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
interface StorageValueOptions<T> {
|
|
3
4
|
serialize?: (v: T) => string | null;
|
|
4
5
|
deserialize: (v: string | null) => T;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value
|
|
10
|
-
value
|
|
11
|
-
|
|
6
|
+
changed$?: Observable<T>;
|
|
7
|
+
}
|
|
8
|
+
interface StorageValue<T> {
|
|
9
|
+
get: () => T;
|
|
10
|
+
set: (value: T) => void;
|
|
11
|
+
value$: Observable<T>;
|
|
12
|
+
value: Signal<T | undefined>;
|
|
13
|
+
}
|
|
14
|
+
export declare function createStorageValue<T>(key: string, { serialize, deserialize, changed$ }: StorageValueOptions<T>): StorageValue<T>;
|
|
15
|
+
export {};
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
1
2
|
import { BehaviorSubject, MonoTypeOperatorFunction } from 'rxjs';
|
|
2
|
-
export declare function progressTo<T>(
|
|
3
|
+
export declare function progressTo<T>(subjectSignal: BehaviorSubject<number> | WritableSignal<number> | (() => BehaviorSubject<number> | WritableSignal<number>)): MonoTypeOperatorFunction<T>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable, Observer } from 'rxjs';
|
|
2
|
+
export declare function subscribeReturn<T>(observable$: Observable<T>, subscription?: Partial<Observer<T>>): {
|
|
3
|
+
next: (nextFn: Observer<T>["next"]) => void;
|
|
4
|
+
error: (errorFn: Observer<T>["error"]) => void;
|
|
5
|
+
complete: (completeFn: Observer<T>["complete"]) => void;
|
|
6
|
+
};
|
package/package.json
CHANGED