ngx-vector-components 4.6.0 → 4.7.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/CHANGELOG.md +28 -0
- package/esm2020/lib/components/fields/percentage-field/percentage-field.component.mjs +9 -3
- package/esm2020/lib/components/menu/menu.component.mjs +2 -2
- package/esm2020/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +2 -2
- package/esm2020/lib/components/top-bar/top-bar.component.mjs +10 -6
- package/esm2020/lib/models/profile.model.mjs +5 -1
- package/esm2020/lib/services/profile.service.mjs +15 -1
- package/fesm2015/ngx-vector-components.mjs +39 -11
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +39 -11
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/percentage-field/percentage-field.component.d.ts +3 -1
- package/lib/components/top-bar/top-bar.component.d.ts +4 -2
- package/lib/models/profile.model.d.ts +5 -1
- package/lib/services/profile.service.d.ts +6 -0
- package/package.json +1 -1
|
@@ -4,10 +4,12 @@ export declare class PercentageFieldComponent {
|
|
|
4
4
|
control: any;
|
|
5
5
|
min: number;
|
|
6
6
|
max: number;
|
|
7
|
+
minFractionDigits: number;
|
|
8
|
+
maxFractionDigits: number;
|
|
7
9
|
blurEvent: EventEmitter<any>;
|
|
8
10
|
enterKeyPress: EventEmitter<any>;
|
|
9
11
|
focusEvent: EventEmitter<any>;
|
|
10
12
|
readonly percentageRegex = "^(100(\\.0{1,2})?|[1-9]?\\d(\\.\\d{1,2})?)$";
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PercentageFieldComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PercentageFieldComponent, "vector-percentage-field", never, { "control": "control"; "min": "min"; "max": "max"; }, { "blurEvent": "blurEvent"; "enterKeyPress": "enterKeyPress"; "focusEvent": "focusEvent"; }, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PercentageFieldComponent, "vector-percentage-field", never, { "control": "control"; "min": "min"; "max": "max"; "minFractionDigits": "minFractionDigits"; "maxFractionDigits": "maxFractionDigits"; }, { "blurEvent": "blurEvent"; "enterKeyPress": "enterKeyPress"; "focusEvent": "focusEvent"; }, never, never>;
|
|
13
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { AuthService } from '../../services';
|
|
3
|
+
import { AuthService, ProfileService } from '../../services';
|
|
4
4
|
import { MenuService } from '../../services/menu.service';
|
|
5
5
|
import { MaskUtil } from '../../utils';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -8,10 +8,12 @@ export declare class TopBarComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
private menuService;
|
|
9
9
|
private authService;
|
|
10
10
|
private router;
|
|
11
|
+
private profileService;
|
|
11
12
|
hideElements: boolean;
|
|
12
13
|
openedMenu: boolean;
|
|
13
14
|
openedChangeAccountMenu: boolean;
|
|
14
15
|
doingOnboarding: boolean;
|
|
16
|
+
vectorFirstName: any;
|
|
15
17
|
currentAccount: any;
|
|
16
18
|
isAdmin: boolean;
|
|
17
19
|
otherAccounts: any[];
|
|
@@ -19,7 +21,7 @@ export declare class TopBarComponent implements OnInit, OnDestroy {
|
|
|
19
21
|
fintech: boolean;
|
|
20
22
|
accountService: any;
|
|
21
23
|
private subscription;
|
|
22
|
-
constructor(menuService: MenuService, authService: AuthService, router: Router);
|
|
24
|
+
constructor(menuService: MenuService, authService: AuthService, router: Router, profileService: ProfileService);
|
|
23
25
|
ngOnInit(): void;
|
|
24
26
|
ngOnDestroy(): void;
|
|
25
27
|
toggleMenu(): void;
|
|
@@ -140,5 +140,9 @@ export declare enum ProfileModuleActionType {
|
|
|
140
140
|
DELETE_USER = "Delete User",
|
|
141
141
|
ADD_REGION = "Add Region",
|
|
142
142
|
SHOW_REGION = "Show Region",
|
|
143
|
-
EDIT_REGION = "Edit Region"
|
|
143
|
+
EDIT_REGION = "Edit Region",
|
|
144
|
+
ADD_LOCATION_SHIPPER = "Add LocationShipper",
|
|
145
|
+
EDIT_LOCATION_SHIPPER = "Edit LocationShipper",
|
|
146
|
+
SHOW_LOCATION_SHIPPER = "Show LocationShipper",
|
|
147
|
+
DELETE_LOCATION_SHIPPER = "Delete LocationShipper"
|
|
144
148
|
}
|
|
@@ -7,6 +7,12 @@ export declare class ProfileService {
|
|
|
7
7
|
private http;
|
|
8
8
|
private storageService;
|
|
9
9
|
readonly moduleProfile$: BehaviorSubject<ProfileModule[] | undefined>;
|
|
10
|
+
readonly profileFirstName$: BehaviorSubject<string | undefined>;
|
|
11
|
+
readonly profileTypeItens$: BehaviorSubject<{
|
|
12
|
+
shipper: number;
|
|
13
|
+
carrierId: number;
|
|
14
|
+
profileTypeId: number;
|
|
15
|
+
} | undefined>;
|
|
10
16
|
hasFintechAdminPermission: boolean;
|
|
11
17
|
hasMarketplaceAdminPermission: boolean;
|
|
12
18
|
hasAnyFintechPermission: boolean;
|