ngx-vector-components 0.0.5 → 0.0.8
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/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +13 -4
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +7 -7
- package/esm2020/lib/components/fields/filters/filters.component.mjs +1 -1
- package/esm2020/lib/guards/get-token-by-guid.guard.mjs +48 -0
- package/esm2020/lib/guards/has-permission.guard.mjs +27 -0
- package/esm2020/lib/guards/index.mjs +5 -0
- package/esm2020/lib/guards/role.guard.mjs +24 -0
- package/esm2020/lib/guards/token-is-present.guard.mjs +17 -0
- package/esm2020/lib/models/http-response.model.mjs +1 -1
- package/esm2020/lib/services/auth.service.mjs +2 -2
- package/esm2020/lib/services/storage.service.mjs +9 -3
- package/esm2020/lib/utils/mask.util.mjs +5 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-vector-components.mjs +184 -63
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +174 -59
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/currency-field/currency-field.component.d.ts +4 -1
- package/lib/components/fields/dropdown-field/dropdown-field.component.d.ts +2 -2
- package/lib/guards/get-token-by-guid.guard.d.ts +14 -0
- package/lib/guards/has-permission.guard.d.ts +13 -0
- package/lib/guards/index.d.ts +4 -0
- package/lib/guards/role.guard.d.ts +11 -0
- package/lib/guards/token-is-present.guard.d.ts +10 -0
- package/lib/models/http-response.model.d.ts +1 -1
- package/lib/services/storage.service.d.ts +2 -2
- package/lib/utils/mask.util.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class CurrencyFieldComponent implements OnDestroy {
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
placeholder: string;
|
|
4
7
|
set control(_control: any);
|
|
5
8
|
outlined: boolean;
|
|
6
9
|
get control(): any;
|
|
@@ -11,5 +14,5 @@ export declare class CurrencyFieldComponent implements OnDestroy {
|
|
|
11
14
|
focusLastIndex($event: Event): void;
|
|
12
15
|
inputNextChar($event: KeyboardEvent): void;
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyFieldComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyFieldComponent, "vector-currency-field", never, { "control": "control"; "outlined": "outlined"; }, {}, never, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyFieldComponent, "vector-currency-field", never, { "minValue": "minValue"; "maxValue": "maxValue"; "placeholder": "placeholder"; "control": "control"; "outlined": "outlined"; }, {}, never, never>;
|
|
15
18
|
}
|
|
@@ -8,7 +8,7 @@ export declare type DropdownButtonAction = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class DropdownFieldComponent implements OnInit, OnDestroy {
|
|
10
10
|
private renderer;
|
|
11
|
-
set options(_options: ListItem[]);
|
|
11
|
+
set options(_options: ListItem[] | undefined);
|
|
12
12
|
isRequired: boolean | undefined;
|
|
13
13
|
set control(_control: any);
|
|
14
14
|
label: string;
|
|
@@ -18,7 +18,7 @@ export declare class DropdownFieldComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
dependencies: any;
|
|
19
19
|
onFocus: EventEmitter<any>;
|
|
20
20
|
get control(): any;
|
|
21
|
-
get options(): ListItem[];
|
|
21
|
+
get options(): ListItem[] | undefined;
|
|
22
22
|
get placeholder(): string;
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
pagedSuggestions: ListItem[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router';
|
|
2
|
+
import { AppName } from '../models';
|
|
3
|
+
import { AuthService, StorageService } from '../services';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetTokenByGuidGuard implements CanActivate {
|
|
6
|
+
private authService;
|
|
7
|
+
private storageService;
|
|
8
|
+
private router;
|
|
9
|
+
private appName;
|
|
10
|
+
constructor(authService: AuthService, storageService: StorageService, router: Router, appName: AppName);
|
|
11
|
+
canActivate(route: ActivatedRouteSnapshot): boolean | import("@angular/router").UrlTree | import("rxjs").Observable<true | import("@angular/router").UrlTree>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetTokenByGuidGuard, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetTokenByGuidGuard>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router';
|
|
2
|
+
import { AppName } from '../models';
|
|
3
|
+
import { ProfileService } from '../services';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HasPermissionGuard implements CanActivate {
|
|
6
|
+
private profileService;
|
|
7
|
+
private router;
|
|
8
|
+
private appName;
|
|
9
|
+
constructor(profileService: ProfileService, router: Router, appName: AppName);
|
|
10
|
+
canActivate(routeSnapshot: ActivatedRouteSnapshot): true | import("@angular/router").UrlTree;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HasPermissionGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HasPermissionGuard>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router';
|
|
2
|
+
import { StorageService } from '../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RoleGuard implements CanActivate {
|
|
5
|
+
private storageService;
|
|
6
|
+
private router;
|
|
7
|
+
constructor(storageService: StorageService, router: Router);
|
|
8
|
+
canActivate(routeSnapshot: ActivatedRouteSnapshot): true | import("@angular/router").UrlTree;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleGuard, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoleGuard>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CanActivate } from '@angular/router';
|
|
2
|
+
import { StorageService } from '../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TokenIsPresentGuard implements CanActivate {
|
|
5
|
+
private storageService;
|
|
6
|
+
constructor(storageService: StorageService);
|
|
7
|
+
canActivate(): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenIsPresentGuard, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TokenIsPresentGuard>;
|
|
10
|
+
}
|
|
@@ -4,8 +4,8 @@ export declare class StorageService {
|
|
|
4
4
|
constructor();
|
|
5
5
|
clear(): void;
|
|
6
6
|
clearSession(): void;
|
|
7
|
-
get(key: string):
|
|
8
|
-
set(key: string, value:
|
|
7
|
+
get(key: string): any;
|
|
8
|
+
set(key: string, value: any): void;
|
|
9
9
|
remove(key: string): void;
|
|
10
10
|
getToken(): string;
|
|
11
11
|
setToken(token: string): void;
|
package/lib/utils/mask.util.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class MaskUtil {
|
|
|
6
6
|
static PHONE_TEXT_FIELD_PATTERN: string;
|
|
7
7
|
static POSTALCODE_TEXT_FIELD_PATTERN: string;
|
|
8
8
|
static formatDocument(stringValue: string): string;
|
|
9
|
+
static formatPostalCode(stringValue: string): string;
|
|
9
10
|
static formatBoleto(stringValue: string): string;
|
|
10
11
|
private static doMaskString;
|
|
11
12
|
}
|
package/package.json
CHANGED