tango-app-ui-shared 3.0.24-dev → 3.0.26-dev
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/errors/error404/error404.component.mjs +3 -3
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +3 -3
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +2 -2
- package/esm2022/lib/modules/layout/header/header.component.mjs +3 -3
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +2 -2
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +35 -13
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +3 -3
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +2 -2
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +44 -7
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +5 -6
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +3 -1
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +5 -3
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +12 -11
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +3 -9
- package/esm2022/lib/services/auth.service.mjs +16 -1
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/tango-app-ui-shared.mjs +283 -232
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -1
- package/lib/modules/errors/error404/error404.component.d.ts +1 -1
- package/lib/modules/errors/error500/error500.component.d.ts +1 -1
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +1 -1
- package/lib/modules/layout/header/header.component.d.ts +2 -2
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +1 -1
- package/lib/modules/layout/layout/layout.component.d.ts +9 -3
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +1 -1
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +11 -1
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +1 -1
- package/lib/services/auth.service.d.ts +8 -4
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2022/lib/services/global-state.service.mjs +0 -18
- package/lib/services/global-state.service.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { ThemeModeService } from 'tango-app-ui-
|
|
3
|
+
import { ThemeModeService } from 'tango-app-ui-global';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class Error404Component implements OnInit, OnDestroy {
|
|
6
6
|
private router;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { ThemeModeService } from 'tango-app-ui-
|
|
3
|
+
import { ThemeModeService } from 'tango-app-ui-global';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class Error500Component implements OnInit, OnDestroy {
|
|
6
6
|
private router;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { PageInfoService } from 'tango-app-ui-
|
|
3
|
+
import { PageInfoService } from 'tango-app-ui-global';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class HeaderMenuComponent implements OnInit, OnDestroy {
|
|
6
6
|
private pageInfo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { ILayout, LayoutType } from 'tango-app-ui-
|
|
4
|
-
import { LayoutService } from 'tango-app-ui-
|
|
3
|
+
import { ILayout, LayoutType } from 'tango-app-ui-global';
|
|
4
|
+
import { LayoutService } from 'tango-app-ui-global';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
7
7
|
private layout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { PageInfoService, PageLink } from 'tango-app-ui-
|
|
3
|
+
import { PageInfoService, PageLink } from 'tango-app-ui-global';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PageTitleComponent implements OnInit, OnDestroy {
|
|
6
6
|
private pageInfo;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ILayout } from 'tango-app-ui-
|
|
4
|
-
import { LayoutInitService, LayoutService } from 'tango-app-ui-
|
|
3
|
+
import { GlobalStateService, ILayout } from 'tango-app-ui-global';
|
|
4
|
+
import { LayoutInitService, LayoutService } from 'tango-app-ui-global';
|
|
5
|
+
import { AuthService } from '../../../services/auth.service';
|
|
6
|
+
import { ToastService } from '../../../services/toast.service';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
7
9
|
private initService;
|
|
8
10
|
private layout;
|
|
9
11
|
private router;
|
|
10
12
|
private activatedRoute;
|
|
13
|
+
private authService;
|
|
14
|
+
private toastService;
|
|
15
|
+
private gs;
|
|
11
16
|
private unsubscribe;
|
|
12
17
|
pageContainerCSSClasses: string;
|
|
13
18
|
appHeaderDefaultClass: string;
|
|
@@ -61,7 +66,7 @@ export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
|
61
66
|
ktAside: ElementRef;
|
|
62
67
|
ktHeaderMobile: ElementRef;
|
|
63
68
|
ktHeader: ElementRef;
|
|
64
|
-
constructor(initService: LayoutInitService, layout: LayoutService, router: Router, activatedRoute: ActivatedRoute);
|
|
69
|
+
constructor(initService: LayoutInitService, layout: LayoutService, router: Router, activatedRoute: ActivatedRoute, authService: AuthService, toastService: ToastService, gs: GlobalStateService);
|
|
65
70
|
ngOnInit(): void;
|
|
66
71
|
updateProps(config: ILayout): void;
|
|
67
72
|
updateSidebar(config: ILayout): void;
|
|
@@ -69,6 +74,7 @@ export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
|
69
74
|
updateFooter(config: ILayout): void;
|
|
70
75
|
updateToolbar(config: ILayout): void;
|
|
71
76
|
ngOnDestroy(): void;
|
|
77
|
+
userProfile(): void;
|
|
72
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
73
79
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "lib-layout", never, {}, {}, never, never, false, never>;
|
|
74
80
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Title } from '@angular/platform-browser';
|
|
4
|
-
import { LayoutService, PageInfoService } from 'tango-app-ui-
|
|
4
|
+
import { LayoutService, PageInfoService } from 'tango-app-ui-global';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ScriptsInitComponent implements OnInit, OnDestroy {
|
|
7
7
|
private layout;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AuthService } from '../../../../services/auth.service';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
2
5
|
import * as i0 from "@angular/core";
|
|
3
6
|
export declare class SidebarMenuComponent implements OnInit {
|
|
4
|
-
|
|
7
|
+
private authService;
|
|
8
|
+
private router;
|
|
9
|
+
private gs;
|
|
10
|
+
usersList: any;
|
|
11
|
+
authlocalStorageToken: string;
|
|
12
|
+
constructor(authService: AuthService, router: Router, gs: GlobalStateService);
|
|
13
|
+
private readonly destroy$;
|
|
5
14
|
ngOnInit(): void;
|
|
15
|
+
oldDashborad(): void;
|
|
6
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuComponent, never>;
|
|
7
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarMenuComponent, "lib-sidebar-menu", never, {}, {}, never, never, false, never>;
|
|
8
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import 'dayjs/locale/en';
|
|
4
|
-
import { LayoutService } from 'tango-app-ui-
|
|
4
|
+
import { LayoutService } from 'tango-app-ui-global';
|
|
5
5
|
import { AuthService } from '../../../../services/auth.service';
|
|
6
6
|
import { GlobalStateService } from 'tango-app-ui-global';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { Router } from '@angular/router';
|
|
3
4
|
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -10,14 +11,17 @@ export declare class AuthService {
|
|
|
10
11
|
authlocalStorageToken: string;
|
|
11
12
|
userApiUrl: string;
|
|
12
13
|
storeApiUrl: string;
|
|
14
|
+
oldDashboardUrl: string;
|
|
13
15
|
constructor(router: Router, gs: GlobalStateService, http: HttpClient);
|
|
14
|
-
handleError(res: any):
|
|
16
|
+
handleError(res: any): Observable<never>;
|
|
15
17
|
getHeaders(): {
|
|
16
18
|
Authorization: string;
|
|
17
19
|
};
|
|
18
|
-
logout():
|
|
19
|
-
getClients():
|
|
20
|
-
getStores(id: any):
|
|
20
|
+
logout(): Observable<Object>;
|
|
21
|
+
getClients(): Observable<any>;
|
|
22
|
+
getStores(id: any): Observable<any>;
|
|
23
|
+
getOldDashboardRedirect(data: any): Observable<Object>;
|
|
24
|
+
userProfileDet(): Observable<any>;
|
|
21
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
22
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
23
27
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ export * from './lib/modules/errors/errors.module';
|
|
|
37
37
|
export * from './lib/modules/common/common-shared.module';
|
|
38
38
|
export * from './lib/guards/auth.guard';
|
|
39
39
|
export * from './lib/interfaces/global-state';
|
|
40
|
-
export * from './lib/services/global-state.service';
|
|
41
40
|
export * from './lib/services/auth.service';
|
|
42
41
|
export * from './lib/services/toast.service';
|
|
43
42
|
export * from './lib/pipes/customDate.pipe';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class GlobalStateService {
|
|
5
|
-
userData = new BehaviorSubject(null);
|
|
6
|
-
environment = new BehaviorSubject(null);
|
|
7
|
-
dataRangeValue = new BehaviorSubject(null);
|
|
8
|
-
selectedClient = new BehaviorSubject(null);
|
|
9
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: GlobalStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: GlobalStateService, providedIn: 'root' });
|
|
11
|
-
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: GlobalStateService, decorators: [{
|
|
13
|
-
type: Injectable,
|
|
14
|
-
args: [{
|
|
15
|
-
providedIn: 'root'
|
|
16
|
-
}]
|
|
17
|
-
}] });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,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KVxyXG5leHBvcnQgY2xhc3MgR2xvYmFsU3RhdGVTZXJ2aWNlIHtcclxuICB1c2VyRGF0YSA9IG5ldyBCZWhhdmlvclN1YmplY3Q8c2FtcGxlVHlwZSB8IG51bGw+KG51bGwpXHJcbiAgZW52aXJvbm1lbnQgPSBuZXcgQmVoYXZpb3JTdWJqZWN0PGFueT4obnVsbClcclxuICBkYXRhUmFuZ2VWYWx1ZSA9IG5ldyBCZWhhdmlvclN1YmplY3Q8YW55PihudWxsKTtcclxuICBzZWxlY3RlZENsaWVudCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8YW55PihudWxsKTtcclxuXHJcbi8vICAgYXBwbHkob3B0aW9uczogYW55KTogdm9pZCB7XHJcbi8vICAgICB0aGlzLmRhdGFSYW5nZVZhbHVlLm5leHQob3B0aW9ucyk7XHJcbi8vIH1cclxufVxyXG4iXX0=
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { sampleType } from '../interfaces/global-state';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GlobalStateService {
|
|
5
|
-
userData: BehaviorSubject<sampleType | null>;
|
|
6
|
-
environment: BehaviorSubject<any>;
|
|
7
|
-
dataRangeValue: BehaviorSubject<any>;
|
|
8
|
-
selectedClient: BehaviorSubject<any>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalStateService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalStateService>;
|
|
11
|
-
}
|