tango-app-ui-shared 3.0.26-dev → 3.0.28-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/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +60 -5
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +37 -8
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +17 -12
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +4 -3
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +5 -3
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +10 -8
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +1 -1
- package/esm2022/lib/routes/routing.mjs +9 -5
- package/esm2022/lib/services/auth.service.mjs +12 -2
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-BLrWsK0B.mjs.map +1 -1
- package/fesm2022/tango-app-ui-shared.mjs +220 -105
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -1
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +6 -1
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +4 -1
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +4 -3
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +1 -0
- package/lib/services/auth.service.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +0 -18
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-DM8Er_Bd.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-DM8Er_Bd.mjs.map +0 -1
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +0 -7
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { AuthService } from '../services/auth.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class HttpAuthInterceptor implements HttpInterceptor {
|
|
6
7
|
private gs;
|
|
8
|
+
private authService;
|
|
7
9
|
authlocalStorageToken: string;
|
|
8
|
-
|
|
10
|
+
private isRefreshingToken;
|
|
11
|
+
private tokenRefreshed;
|
|
12
|
+
constructor(gs: GlobalStateService, authService: AuthService);
|
|
9
13
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
14
|
+
private handle401Error;
|
|
10
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpAuthInterceptor, never>;
|
|
11
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpAuthInterceptor>;
|
|
12
17
|
}
|
|
@@ -16,12 +16,15 @@ export declare class SidebarFooterComponent implements OnInit, OnDestroy {
|
|
|
16
16
|
toggleType: string;
|
|
17
17
|
toggleState: string;
|
|
18
18
|
currentLayoutType: LayoutType | null;
|
|
19
|
+
userValuefooter: any;
|
|
19
20
|
toggleAttr: string;
|
|
21
|
+
shouldShowMenuTop: boolean;
|
|
22
|
+
private readonly destroy$;
|
|
20
23
|
constructor(auth: AuthService, router: Router, layout: LayoutService);
|
|
21
24
|
ngOnInit(): void;
|
|
22
25
|
toggleMenu(): void;
|
|
23
26
|
logout(): void;
|
|
24
27
|
ngOnDestroy(): void;
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarFooterComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarFooterComponent, "lib-sidebar-footer", never, { "toggleButtonClass": { "alias": "toggleButtonClass"; "required": false; }; "toggleEnabled": { "alias": "toggleEnabled"; "required": false; }; "toggleType": { "alias": "toggleType"; "required": false; }; "toggleState": { "alias": "toggleState"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarFooterComponent, "lib-sidebar-footer", never, { "toggleButtonClass": { "alias": "toggleButtonClass"; "required": false; }; "toggleEnabled": { "alias": "toggleEnabled"; "required": false; }; "toggleType": { "alias": "toggleType"; "required": false; }; "toggleState": { "alias": "toggleState"; "required": false; }; "userValuefooter": { "alias": "userValuefooter"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
30
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AuthService } from '../../../../services/auth.service';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
3
|
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SidebarMenuComponent implements OnInit {
|
|
7
7
|
private authService;
|
|
8
|
+
gs: GlobalStateService;
|
|
8
9
|
private router;
|
|
9
|
-
private gs;
|
|
10
10
|
usersList: any;
|
|
11
11
|
authlocalStorageToken: string;
|
|
12
|
-
constructor(authService: AuthService,
|
|
12
|
+
constructor(authService: AuthService, gs: GlobalStateService, router: Router);
|
|
13
13
|
private readonly destroy$;
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
oldDashborad(): void;
|
|
16
|
+
ticketsUsers(): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuComponent, never>;
|
|
17
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarMenuComponent, "lib-sidebar-menu", never, {}, {}, never, never, false, never>;
|
|
18
19
|
}
|
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
6
6
|
private layout;
|
|
7
7
|
private unsubscribe;
|
|
8
|
+
userValue: any;
|
|
8
9
|
appSidebarDisplay: boolean;
|
|
9
10
|
appSidebarDefaultFixedDesktop: boolean;
|
|
10
11
|
appSidebarDefaultMinimizeDesktopEnabled: boolean;
|
|
@@ -22,6 +22,7 @@ export declare class AuthService {
|
|
|
22
22
|
getStores(id: any): Observable<any>;
|
|
23
23
|
getOldDashboardRedirect(data: any): Observable<Object>;
|
|
24
24
|
userProfileDet(): Observable<any>;
|
|
25
|
+
refreshToken(): Observable<any>;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
26
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
27
28
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { TangoStoresEdgeappModule } from 'tango-app-ui-stores-edgeapp';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TangoEdgeAppWrapperModule {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, imports: [TangoStoresEdgeappModule] });
|
|
7
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, imports: [TangoStoresEdgeappModule] });
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [],
|
|
13
|
-
imports: [
|
|
14
|
-
TangoStoresEdge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BjbGFzcyBUYW5nb0VkZ2VBcHBXcmFwcGVyTW9kdWxlIHsgfSJdfQ==
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { TangoStoresEdgeappModule } from 'tango-app-ui-stores-edgeapp';
|
|
4
|
-
|
|
5
|
-
class TangoEdgeAppWrapperModule {
|
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, imports: [TangoStoresEdgeappModule] });
|
|
8
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, imports: [TangoStoresEdgeappModule] });
|
|
9
|
-
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TangoEdgeAppWrapperModule, decorators: [{
|
|
11
|
-
type: NgModule,
|
|
12
|
-
args: [{
|
|
13
|
-
declarations: [],
|
|
14
|
-
imports: [
|
|
15
|
-
TangoStoresEdgeappModule
|
|
16
|
-
]
|
|
17
|
-
}]
|
|
18
|
-
}] });
|
|
19
|
-
|
|
20
|
-
export { TangoEdgeAppWrapperModule };
|
|
21
|
-
//# sourceMappingURL=tango-app-ui-shared-edge-wrapper.module-DM8Er_Bd.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tango-app-ui-shared-edge-wrapper.module-DM8Er_Bd.mjs","sources":["../../../projects/tango-app-shared/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { TangoStoresEdgeappModule } from 'tango-app-ui-stores-edgeapp';\r\n \r\n \r\n@NgModule({\r\n declarations: [\r\n ],\r\n imports: [\r\n TangoStoresEdgeappModule\r\n ]\r\n})\r\nexport class TangoEdgeAppWrapperModule { }"],"names":[],"mappings":";;;;MAWa,yBAAyB,CAAA;uGAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAHlC,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAGf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAHlC,wBAAwB,CAAA,EAAA,CAAA,CAAA;;2FAGf,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EACb;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "tango-app-ui-stores-edgeapp";
|
|
3
|
-
export declare class TangoEdgeAppWrapperModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TangoEdgeAppWrapperModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoEdgeAppWrapperModule, never, [typeof i1.TangoStoresEdgeappModule], never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TangoEdgeAppWrapperModule>;
|
|
7
|
-
}
|