@vality/matez 19.0.0 → 19.0.1-3162997.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 +180 -43
- package/fesm2022/vality-matez.mjs.map +1 -1
- package/lib/components/filters/filters.module.d.ts +7 -8
- 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/components/filters/filters.component.scss +7 -6
- package/src/lib/components/table/components/table-info-bar/table-info-bar.component.scss +5 -1
- package/src/lib/services/toast/toast.component.scss +13 -0
- package/lib/services/query-params/utils/serialize-query-param.d.ts +0 -2
|
@@ -5,15 +5,14 @@ import * as i3 from "./components/filters-dialog/filters-dialog.component";
|
|
|
5
5
|
import * as i4 from "./components/other-filters/other-filters.directive";
|
|
6
6
|
import * as i5 from "./components/main-filters/main-filters.directive";
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "@angular/material/badge";
|
|
8
|
+
import * as i7 from "@angular/material/button";
|
|
9
|
+
import * as i8 from "@angular/material/icon";
|
|
10
|
+
import * as i9 from "../dialog/dialog.module";
|
|
11
|
+
import * as i10 from "@angular/cdk/layout";
|
|
12
|
+
import * as i11 from "../actions/actions.module";
|
|
13
|
+
import * as i12 from "@angular/material/badge";
|
|
15
14
|
export declare class FiltersModule {
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FiltersModule, [typeof i1.FiltersComponent, typeof i2.MoreFiltersButtonComponent, typeof i3.FiltersDialogComponent, typeof i4.OtherFiltersDirective, typeof i5.MainFiltersDirective], [typeof i6.CommonModule, typeof i7.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FiltersModule, [typeof i1.FiltersComponent, typeof i2.MoreFiltersButtonComponent, typeof i3.FiltersDialogComponent, typeof i4.OtherFiltersDirective, typeof i5.MainFiltersDirective], [typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.DialogModule, typeof i10.LayoutModule, typeof i11.ActionsModule, typeof i12.MatBadgeModule], [typeof i1.FiltersComponent, typeof i2.MoreFiltersButtonComponent, typeof i4.OtherFiltersDirective, typeof i5.MainFiltersDirective]>;
|
|
18
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<FiltersModule>;
|
|
19
18
|
}
|
|
@@ -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
|
@@ -2,20 +2,21 @@ $max-columns: 5;
|
|
|
2
2
|
$rows: 1;
|
|
3
3
|
|
|
4
4
|
.filters {
|
|
5
|
-
display:
|
|
6
|
-
|
|
7
|
-
margin-bottom: -22px;
|
|
8
|
-
padding: 22px !important;
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: 8px;
|
|
9
7
|
|
|
10
8
|
::ng-deep & > * {
|
|
11
9
|
min-width: 0;
|
|
10
|
+
flex: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
14
|
+
height: 0;
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
@for $i from 1 through $max-columns {
|
|
16
19
|
::ng-deep .v-filters-cols-#{$i} {
|
|
17
|
-
grid-template-columns: repeat($i, 1fr);
|
|
18
|
-
|
|
19
20
|
& > *:nth-child(n + #{($i * $rows) + 1}) {
|
|
20
21
|
display: none;
|
|
21
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap:
|
|
4
|
+
gap: 24px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.inputs {
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
::ng-deep & > * {
|
|
20
20
|
flex: 1;
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
24
|
+
height: 0;
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
.details {
|