tango-app-ui-shared 3.3.1-beta.92 → 3.3.1-beta.94
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/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +14 -1
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +39 -17
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +14 -1
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +15 -2
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +2 -2
- package/esm2022/lib/services/auth.service.mjs +10 -1
- package/fesm2022/tango-app-ui-shared.mjs +74 -5
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -1
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +1 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +5 -1
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +1 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +1 -0
- package/lib/services/auth.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare class DatepickerComponent implements OnDestroy, OnInit {
|
|
|
19
19
|
constructor(layout: LayoutService, gs: GlobalStateService, service: AuthService, cd: ChangeDetectorRef);
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
ngOnInit(): void;
|
|
22
|
+
getUserInfo(client: any): void;
|
|
22
23
|
ranges: any;
|
|
23
24
|
onStartDateChange(event: any): void;
|
|
24
25
|
datechange(event: any): void;
|
|
@@ -2,12 +2,14 @@ import { OnDestroy, OnInit } from "@angular/core";
|
|
|
2
2
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
3
3
|
import { GlobalStateService, LayoutService } from "tango-app-ui-global";
|
|
4
4
|
import { ILayout, LayoutType } from "tango-app-ui-global";
|
|
5
|
+
import { AuthService } from "../../../services/auth.service";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ToolbarComponent implements OnInit, OnDestroy {
|
|
7
8
|
private layout;
|
|
8
9
|
private router;
|
|
9
10
|
private route;
|
|
10
11
|
gs: GlobalStateService;
|
|
12
|
+
private auth;
|
|
11
13
|
private unsubscribe;
|
|
12
14
|
currentLayoutType: LayoutType | null;
|
|
13
15
|
appToolbarLayout: "classic" | "accounting" | "extended" | "reports" | "saas";
|
|
@@ -37,13 +39,15 @@ export declare class ToolbarComponent implements OnInit, OnDestroy {
|
|
|
37
39
|
traxwithoutdatepicker: boolean;
|
|
38
40
|
storesSingle: boolean;
|
|
39
41
|
nobWithoutClient: boolean;
|
|
40
|
-
constructor(layout: LayoutService, router: Router, route: ActivatedRoute, gs: GlobalStateService);
|
|
42
|
+
constructor(layout: LayoutService, router: Router, route: ActivatedRoute, gs: GlobalStateService, auth: AuthService);
|
|
41
43
|
ngOnInit(): void;
|
|
42
44
|
updateProps(config: ILayout): void;
|
|
43
45
|
private readonly destroy$;
|
|
44
46
|
ngOnDestroy(): void;
|
|
47
|
+
client: any;
|
|
45
48
|
showPageTitle(): boolean;
|
|
46
49
|
setUIProperties(singleSelect: boolean, multiSelect: boolean, datepicker: boolean, singleStore: boolean, singleSelectdatepicker: boolean, trafficdatepicker: boolean, traxdatepicker: boolean, traxwithoutdatepicker: boolean, storesSingle: boolean, nobWithoutClient: boolean): void;
|
|
50
|
+
getUserInfo(client: any): void;
|
|
47
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
48
52
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "lib-toolbar", never, { "currentLayoutType": { "alias": "currentLayoutType"; "required": false; }; "appToolbarLayout": { "alias": "appToolbarLayout"; "required": false; }; }, {}, never, never, false, never>;
|
|
49
53
|
}
|
|
@@ -48,6 +48,7 @@ export declare class TraxHeaderComponent implements OnInit {
|
|
|
48
48
|
resetValidation(): void;
|
|
49
49
|
onStartDateChange(event: any): void;
|
|
50
50
|
datechange(event: any): void;
|
|
51
|
+
getUserInfo(client: any): void;
|
|
51
52
|
opendropdown(e: MouseEvent): void;
|
|
52
53
|
getLocations(): void;
|
|
53
54
|
isAllLocationsSelected(): boolean;
|
|
@@ -16,6 +16,7 @@ export declare class AuthService {
|
|
|
16
16
|
dropDownTrigger: BehaviorSubject<null>;
|
|
17
17
|
trafficApiUrl: any;
|
|
18
18
|
traxUrl: any;
|
|
19
|
+
galleryApiUrl: any;
|
|
19
20
|
constructor(router: Router, gs: GlobalStateService, http: HttpClient);
|
|
20
21
|
handleError(res: any): Observable<never>;
|
|
21
22
|
getHeaders(): {
|
|
@@ -36,7 +37,9 @@ export declare class AuthService {
|
|
|
36
37
|
getLocation(data: any): Observable<any>;
|
|
37
38
|
getGroups(data: any): Observable<any>;
|
|
38
39
|
getHeaderStores(data: any): Observable<any>;
|
|
40
|
+
getHeadertraxStores(data: any): Observable<any>;
|
|
39
41
|
getBrandDetails(id: any): Observable<Object>;
|
|
42
|
+
getHeaderUsers(data: any): Observable<any>;
|
|
40
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
41
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
42
45
|
}
|