@retalia/sidebar-navigation 14.3.0 → 16.2.12

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.
Files changed (48) hide show
  1. package/{esm2020 → esm2022}/lib/data/support-routes.mjs +54 -54
  2. package/{esm2020 → esm2022}/lib/data/test-data.mjs +620 -620
  3. package/{esm2020 → esm2022}/lib/models/cookie-names.mjs +13 -13
  4. package/{esm2020 → esm2022}/lib/models/environment.mjs +1 -1
  5. package/{esm2020 → esm2022}/lib/models/http-response.mjs +1 -1
  6. package/{esm2020 → esm2022}/lib/models/module.mjs +1 -1
  7. package/esm2022/lib/navigation-lib.component.mjs +28 -0
  8. package/{esm2020 → esm2022}/lib/navigation-lib.module.mjs +47 -47
  9. package/{esm2020 → esm2022}/lib/navigation-lib.service.mjs +14 -14
  10. package/{esm2020 → esm2022}/lib/services/auth.service.mjs +43 -43
  11. package/{esm2020 → esm2022}/lib/services/cookie.service.mjs +34 -34
  12. package/{esm2020 → esm2022}/lib/services/http.service.mjs +18 -18
  13. package/{esm2020 → esm2022}/lib/services/module.service.mjs +133 -133
  14. package/{esm2020 → esm2022}/lib/services/sub-item.service.mjs +47 -47
  15. package/{esm2020 → esm2022}/lib/sidebar/shop-modal/shop-modal.component.mjs +40 -40
  16. package/{esm2020 → esm2022}/lib/sidebar/sidebar.component.mjs +182 -182
  17. package/esm2022/lib/sidebar/sub-item/sub-item.component.mjs +52 -0
  18. package/{esm2020 → esm2022}/lib/topbar/topbar.component.mjs +68 -68
  19. package/{esm2020 → esm2022}/public-api.mjs +11 -11
  20. package/{esm2020 → esm2022}/retalia-sidebar-navigation.mjs +4 -4
  21. package/fesm2022/retalia-sidebar-navigation.mjs +1355 -0
  22. package/{fesm2020 → fesm2022}/retalia-sidebar-navigation.mjs.map +1 -1
  23. package/index.d.ts +5 -5
  24. package/lib/data/support-routes.d.ts +2 -2
  25. package/lib/data/test-data.d.ts +2 -2
  26. package/lib/models/cookie-names.d.ts +12 -12
  27. package/lib/models/environment.d.ts +4 -4
  28. package/lib/models/http-response.d.ts +3 -3
  29. package/lib/models/module.d.ts +32 -32
  30. package/lib/navigation-lib.component.d.ts +12 -12
  31. package/lib/navigation-lib.module.d.ts +14 -14
  32. package/lib/navigation-lib.service.d.ts +6 -6
  33. package/lib/services/auth.service.d.ts +12 -12
  34. package/lib/services/cookie.service.d.ts +12 -12
  35. package/lib/services/http.service.d.ts +2 -2
  36. package/lib/services/module.service.d.ts +20 -20
  37. package/lib/services/sub-item.service.d.ts +12 -12
  38. package/lib/sidebar/shop-modal/shop-modal.component.d.ts +17 -17
  39. package/lib/sidebar/sidebar.component.d.ts +47 -47
  40. package/lib/sidebar/sub-item/sub-item.component.d.ts +16 -16
  41. package/lib/topbar/topbar.component.d.ts +20 -20
  42. package/package.json +9 -15
  43. package/public-api.d.ts +8 -8
  44. package/esm2020/lib/navigation-lib.component.mjs +0 -28
  45. package/esm2020/lib/sidebar/sub-item/sub-item.component.mjs +0 -52
  46. package/fesm2015/retalia-sidebar-navigation.mjs +0 -1364
  47. package/fesm2015/retalia-sidebar-navigation.mjs.map +0 -1
  48. package/fesm2020/retalia-sidebar-navigation.mjs +0 -1355
@@ -1,32 +1,32 @@
1
- export interface ModulesInfo {
2
- modulesDetails: ModuleItem[];
3
- shops: Shop[];
4
- flags?: string[];
5
- }
6
- export interface ModuleItem {
7
- id: number;
8
- authorizationId: string;
9
- name: string;
10
- url: string;
11
- relationName: string;
12
- displayOrder: number;
13
- entityAccess: number[];
14
- sidebarEntries: SidebarEntry[];
15
- children?: SidebarEntry[];
16
- translatedName?: string;
17
- visible?: boolean;
18
- active?: boolean;
19
- }
20
- export interface SidebarEntry {
21
- moduleAuthorizationId: string;
22
- name: string;
23
- url: string;
24
- children: SidebarEntry[];
25
- translatedName?: string;
26
- visible?: boolean;
27
- active?: boolean;
28
- }
29
- export interface Shop {
30
- id: number;
31
- description: string;
32
- }
1
+ export interface ModulesInfo {
2
+ modulesDetails: ModuleItem[];
3
+ shops: Shop[];
4
+ flags?: string[];
5
+ }
6
+ export interface ModuleItem {
7
+ id: number;
8
+ authorizationId: string;
9
+ name: string;
10
+ url: string;
11
+ relationName: string;
12
+ displayOrder: number;
13
+ entityAccess: number[];
14
+ sidebarEntries: SidebarEntry[];
15
+ children?: SidebarEntry[];
16
+ translatedName?: string;
17
+ visible?: boolean;
18
+ active?: boolean;
19
+ }
20
+ export interface SidebarEntry {
21
+ moduleAuthorizationId: string;
22
+ name: string;
23
+ url: string;
24
+ children: SidebarEntry[];
25
+ translatedName?: string;
26
+ visible?: boolean;
27
+ active?: boolean;
28
+ }
29
+ export interface Shop {
30
+ id: number;
31
+ description: string;
32
+ }
@@ -1,12 +1,12 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Environment } from './models/environment';
3
- import { SidebarEntry } from './models/module';
4
- import * as i0 from "@angular/core";
5
- export declare class NavigationLibComponent {
6
- selectedRoute: EventEmitter<SidebarEntry>;
7
- useCustomPage: boolean;
8
- environment: Environment;
9
- routeSelected(selectedItem: any): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<NavigationLibComponent, "sidebar-navigation", never, { "useCustomPage": "useCustomPage"; "environment": "environment"; }, { "selectedRoute": "selectedRoute"; }, never, never, false>;
12
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Environment } from './models/environment';
3
+ import { SidebarEntry } from './models/module';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NavigationLibComponent {
6
+ selectedRoute: EventEmitter<SidebarEntry>;
7
+ useCustomPage: boolean;
8
+ environment: Environment;
9
+ routeSelected(selectedItem: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigationLibComponent, "sidebar-navigation", never, { "useCustomPage": { "alias": "useCustomPage"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; }, { "selectedRoute": "selectedRoute"; }, never, never, false, never>;
12
+ }
@@ -1,14 +1,14 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./sidebar/sidebar.component";
3
- import * as i2 from "./sidebar/sub-item/sub-item.component";
4
- import * as i3 from "./topbar/topbar.component";
5
- import * as i4 from "./navigation-lib.component";
6
- import * as i5 from "./sidebar/shop-modal/shop-modal.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "ngx-smart-modal";
10
- export declare class NavigationLibModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<NavigationLibModule, [typeof i1.SidebarComponent, typeof i2.SubItemComponent, typeof i3.TopbarComponent, typeof i4.NavigationLibComponent, typeof i5.ShopModalComponent], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.NgxSmartModalModule], [typeof i4.NavigationLibComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<NavigationLibModule>;
14
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./sidebar/sidebar.component";
3
+ import * as i2 from "./sidebar/sub-item/sub-item.component";
4
+ import * as i3 from "./topbar/topbar.component";
5
+ import * as i4 from "./navigation-lib.component";
6
+ import * as i5 from "./sidebar/shop-modal/shop-modal.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/common/http";
9
+ import * as i8 from "ngx-smart-modal";
10
+ export declare class NavigationLibModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NavigationLibModule, [typeof i1.SidebarComponent, typeof i2.SubItemComponent, typeof i3.TopbarComponent, typeof i4.NavigationLibComponent, typeof i5.ShopModalComponent], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.NgxSmartModalModule], [typeof i4.NavigationLibComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<NavigationLibModule>;
14
+ }
@@ -1,6 +1,6 @@
1
- import * as i0 from "@angular/core";
2
- export declare class NavigationLibService {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibService, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<NavigationLibService>;
6
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class NavigationLibService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationLibService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<NavigationLibService>;
6
+ }
@@ -1,12 +1,12 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AuthService {
3
- private document;
4
- environmentUrl: string;
5
- _refreshTokenStore: string;
6
- _tokenStore: string;
7
- constructor(document: Document);
8
- logout(): void;
9
- clearCookies(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
12
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class AuthService {
3
+ private document;
4
+ environmentUrl: string;
5
+ _refreshTokenStore: string;
6
+ _tokenStore: string;
7
+ constructor(document: Document);
8
+ logout(): void;
9
+ clearCookies(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
12
+ }
@@ -1,12 +1,12 @@
1
- import { CookieNames } from '../models/cookie-names';
2
- import * as i0 from "@angular/core";
3
- export declare class CookieService {
4
- private document;
5
- constructor(document: Document);
6
- private getDomain;
7
- getCookie(cookieName: CookieNames): string | undefined;
8
- setCookie(cookieName: CookieNames, value: any): void;
9
- removeCookie(cookieName: CookieNames): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CookieService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<CookieService>;
12
- }
1
+ import { CookieNames } from '../models/cookie-names';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CookieService {
4
+ private document;
5
+ constructor(document: Document);
6
+ private getDomain;
7
+ getCookie(cookieName: CookieNames): string | undefined;
8
+ setCookie(cookieName: CookieNames, value: any): void;
9
+ removeCookie(cookieName: CookieNames): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CookieService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<CookieService>;
12
+ }
@@ -1,2 +1,2 @@
1
- import { HttpResponse } from '../models/http-response';
2
- export declare function httpGet<T>(requestUrl: string, tokenIn: string): Promise<HttpResponse<T>>;
1
+ import { HttpResponse } from '../models/http-response';
2
+ export declare function httpGet<T>(requestUrl: string, tokenIn: string): Promise<HttpResponse<T>>;
@@ -1,20 +1,20 @@
1
- import { ModuleItem, ModulesInfo, SidebarEntry } from '../models/module';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class ModuleService {
5
- storedModuleFlags: string[];
6
- storedModuleFlagsChange: Subject<string[]>;
7
- currentRouteName: Subject<string>;
8
- currentModule: any;
9
- modules: ModuleItem[];
10
- constructor();
11
- getUserModules(gatewayUrl: string, token: string): Promise<ModulesInfo>;
12
- setNavigationTitle(selectedItem?: ModuleItem | SidebarEntry): void;
13
- findNestedUrlMatch(subItems: any, urlPath: string): any;
14
- setItemVisbility(item: any): void;
15
- mapModuleItems(modules: ModuleItem[]): ModuleItem[];
16
- mapAdminItems(modules: any, isSupportAdmin: boolean): ModuleItem[];
17
- getCurrentModule(selectedItem: ModuleItem | SidebarEntry): ModuleItem;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ModuleService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ModuleService>;
20
- }
1
+ import { ModuleItem, ModulesInfo, SidebarEntry } from '../models/module';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ModuleService {
5
+ storedModuleFlags: string[];
6
+ storedModuleFlagsChange: Subject<string[]>;
7
+ currentRouteName: Subject<string>;
8
+ currentModule: any;
9
+ modules: ModuleItem[];
10
+ constructor();
11
+ getUserModules(gatewayUrl: string, token: string): Promise<ModulesInfo>;
12
+ setNavigationTitle(selectedItem?: ModuleItem | SidebarEntry): void;
13
+ findNestedUrlMatch(subItems: any, urlPath: string): any;
14
+ setItemVisbility(item: any): void;
15
+ mapModuleItems(modules: ModuleItem[]): ModuleItem[];
16
+ mapAdminItems(modules: any, isSupportAdmin: boolean): ModuleItem[];
17
+ getCurrentModule(selectedItem: ModuleItem | SidebarEntry): ModuleItem;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModuleService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModuleService>;
20
+ }
@@ -1,12 +1,12 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { ModuleItem } from '../models/module';
3
- import * as i0 from "@angular/core";
4
- export declare class SubItemService {
5
- subItemClickEvent: EventEmitter<any>;
6
- _storage: Storage;
7
- constructor();
8
- saveItemInfo(selectedModule: ModuleItem, shopId: number): void;
9
- subItemclicked(item: any): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SubItemService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<SubItemService>;
12
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ModuleItem } from '../models/module';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SubItemService {
5
+ subItemClickEvent: EventEmitter<any>;
6
+ _storage: Storage;
7
+ constructor();
8
+ saveItemInfo(selectedModule: ModuleItem, shopId: number): void;
9
+ subItemclicked(item: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubItemService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubItemService>;
12
+ }
@@ -1,17 +1,17 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { NgxSmartModalService } from 'ngx-smart-modal';
3
- import { Shop } from '../../models/module';
4
- import * as i0 from "@angular/core";
5
- export declare class ShopModalComponent {
6
- ngxSmartModalService: NgxSmartModalService;
7
- availableShops: Shop[];
8
- copyAvailableShops: Shop[];
9
- selectedShop: EventEmitter<Shop>;
10
- shopSearchValue: any;
11
- shopSearchPlaceholder: string;
12
- constructor(ngxSmartModalService: NgxSmartModalService);
13
- shopSelected(shop: any): void;
14
- handleShopSearch(e: any): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ShopModalComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ShopModalComponent, "shop-modal", never, { "availableShops": "availableShops"; "shopSearchValue": "shopSearchValue"; }, { "selectedShop": "selectedShop"; }, never, never, false>;
17
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { NgxSmartModalService } from 'ngx-smart-modal';
3
+ import { Shop } from '../../models/module';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ShopModalComponent {
6
+ ngxSmartModalService: NgxSmartModalService;
7
+ availableShops: Shop[];
8
+ copyAvailableShops: Shop[];
9
+ selectedShop: EventEmitter<Shop>;
10
+ shopSearchValue: any;
11
+ shopSearchPlaceholder: string;
12
+ constructor(ngxSmartModalService: NgxSmartModalService);
13
+ shopSelected(shop: any): void;
14
+ handleShopSearch(e: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShopModalComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShopModalComponent, "shop-modal", never, { "availableShops": { "alias": "availableShops"; "required": false; }; "shopSearchValue": { "alias": "shopSearchValue"; "required": false; }; }, { "selectedShop": "selectedShop"; }, never, never, false, never>;
17
+ }
@@ -1,47 +1,47 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ModuleItem, Shop, SidebarEntry } from '../models/module';
3
- import { SubItemService } from '../services/sub-item.service';
4
- import { NgxSmartModalService } from 'ngx-smart-modal';
5
- import { ModuleService } from '../services/module.service';
6
- import { Environment } from '../models/environment';
7
- import { CookieService } from '../services/cookie.service';
8
- import * as i0 from "@angular/core";
9
- export declare class SidebarComponent implements OnChanges {
10
- private moduleService;
11
- private subItemService;
12
- private cookieService;
13
- ngxSmartModalService: NgxSmartModalService;
14
- selectedRoute: EventEmitter<SidebarEntry>;
15
- environment: Environment;
16
- moduleSearchValue: any;
17
- modules: ModuleItem[];
18
- modulesCopy: ModuleItem[];
19
- supportRoutes: ModuleItem[];
20
- selectedModule: ModuleItem;
21
- selectedItem: any;
22
- availableShops: Shop[];
23
- availableShopsCopy: Shop[];
24
- moduleSearchPlaceholder: string;
25
- isSidebarOpen: boolean;
26
- hideStatus: boolean;
27
- panelButtonStates: {
28
- isModuleOpen: boolean;
29
- isSupportOpen: boolean;
30
- };
31
- constructor(moduleService: ModuleService, subItemService: SubItemService, cookieService: CookieService, ngxSmartModalService: NgxSmartModalService);
32
- ngOnChanges(changes: SimpleChanges): void;
33
- toggleSidebar(e: Event, option: string): void;
34
- setSidebarState(): void;
35
- getSidebarState(): boolean;
36
- goToPortal(): void;
37
- handleModuleSearch(e: any): void;
38
- filterModules(moduleItems: ModuleItem[] | SidebarEntry[], searchTerm: string): any[];
39
- subItemClicked(item: any): void;
40
- selectedShop(selectedShop: Shop): void;
41
- mapShopModal(): void;
42
- goToStatusPage(): void;
43
- routeToUrl(): void;
44
- private getModules;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "environment": "environment"; "moduleSearchValue": "moduleSearchValue"; }, { "selectedRoute": "selectedRoute"; }, never, never, false>;
47
- }
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ModuleItem, Shop, SidebarEntry } from '../models/module';
3
+ import { SubItemService } from '../services/sub-item.service';
4
+ import { NgxSmartModalService } from 'ngx-smart-modal';
5
+ import { ModuleService } from '../services/module.service';
6
+ import { Environment } from '../models/environment';
7
+ import { CookieService } from '../services/cookie.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class SidebarComponent implements OnChanges {
10
+ private moduleService;
11
+ private subItemService;
12
+ private cookieService;
13
+ ngxSmartModalService: NgxSmartModalService;
14
+ selectedRoute: EventEmitter<SidebarEntry>;
15
+ environment: Environment;
16
+ moduleSearchValue: any;
17
+ modules: ModuleItem[];
18
+ modulesCopy: ModuleItem[];
19
+ supportRoutes: ModuleItem[];
20
+ selectedModule: ModuleItem;
21
+ selectedItem: any;
22
+ availableShops: Shop[];
23
+ availableShopsCopy: Shop[];
24
+ moduleSearchPlaceholder: string;
25
+ isSidebarOpen: boolean;
26
+ hideStatus: boolean;
27
+ panelButtonStates: {
28
+ isModuleOpen: boolean;
29
+ isSupportOpen: boolean;
30
+ };
31
+ constructor(moduleService: ModuleService, subItemService: SubItemService, cookieService: CookieService, ngxSmartModalService: NgxSmartModalService);
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ toggleSidebar(e: Event, option: string): void;
34
+ setSidebarState(): void;
35
+ getSidebarState(): boolean;
36
+ goToPortal(): void;
37
+ handleModuleSearch(e: any): void;
38
+ filterModules(moduleItems: ModuleItem[] | SidebarEntry[], searchTerm: string): any[];
39
+ subItemClicked(item: any): void;
40
+ selectedShop(selectedShop: Shop): void;
41
+ mapShopModal(): void;
42
+ goToStatusPage(): void;
43
+ routeToUrl(): void;
44
+ private getModules;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "environment": { "alias": "environment"; "required": false; }; "moduleSearchValue": { "alias": "moduleSearchValue"; "required": false; }; }, { "selectedRoute": "selectedRoute"; }, never, never, false, never>;
47
+ }
@@ -1,16 +1,16 @@
1
- import { ModuleItem, SidebarEntry } from '../../models/module';
2
- import { SubItemService } from '../../services/sub-item.service';
3
- import * as i0 from "@angular/core";
4
- export declare class SubItemComponent {
5
- private subItemService;
6
- items: ModuleItem[] | SidebarEntry[];
7
- activeItem: string;
8
- constructor(subItemService: SubItemService);
9
- getClass: (item: any, items: any) => string;
10
- subItemClicked(e: any, item: any): void;
11
- onSubItemClick(item: ModuleItem): void;
12
- toggleSubItems(item: ModuleItem): void;
13
- checkVisibleSubItems(item: ModuleItem | SidebarEntry): boolean;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SubItemComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SubItemComponent, "sub-item", never, { "items": "items"; }, {}, never, never, false>;
16
- }
1
+ import { ModuleItem, SidebarEntry } from '../../models/module';
2
+ import { SubItemService } from '../../services/sub-item.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SubItemComponent {
5
+ private subItemService;
6
+ items: ModuleItem[] | SidebarEntry[];
7
+ activeItem: string;
8
+ constructor(subItemService: SubItemService);
9
+ getClass: (item: any, items: any) => string;
10
+ subItemClicked(e: any, item: any): void;
11
+ onSubItemClick(item: ModuleItem): void;
12
+ toggleSubItems(item: ModuleItem): void;
13
+ checkVisibleSubItems(item: ModuleItem | SidebarEntry): boolean;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubItemComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubItemComponent, "sub-item", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
16
+ }
@@ -1,20 +1,20 @@
1
- import { Environment } from '../models/environment';
2
- import { AuthService } from '../services/auth.service';
3
- import { ModuleService } from '../services/module.service';
4
- import * as i0 from "@angular/core";
5
- export declare class TopbarComponent {
6
- private moduleService;
7
- private authService;
8
- environment: Environment;
9
- currentRouteName: string;
10
- isTenantAdmin: boolean;
11
- showProfileDropdown: boolean;
12
- constructor(moduleService: ModuleService, authService: AuthService);
13
- clickout(event: Event): void;
14
- showDropdownOptions(dropdownName: string): void;
15
- closeDropdown(event: Event): void;
16
- clickDetails(e: Event): void;
17
- logout(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TopbarComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<TopbarComponent, "topbar", never, { "environment": "environment"; }, {}, never, never, false>;
20
- }
1
+ import { Environment } from '../models/environment';
2
+ import { AuthService } from '../services/auth.service';
3
+ import { ModuleService } from '../services/module.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TopbarComponent {
6
+ private moduleService;
7
+ private authService;
8
+ environment: Environment;
9
+ currentRouteName: string;
10
+ isTenantAdmin: boolean;
11
+ showProfileDropdown: boolean;
12
+ constructor(moduleService: ModuleService, authService: AuthService);
13
+ clickout(event: Event): void;
14
+ showDropdownOptions(dropdownName: string): void;
15
+ closeDropdown(event: Event): void;
16
+ clickDetails(e: Event): void;
17
+ logout(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopbarComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TopbarComponent, "topbar", never, { "environment": { "alias": "environment"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
package/package.json CHANGED
@@ -1,21 +1,17 @@
1
1
  {
2
2
  "name": "@retalia/sidebar-navigation",
3
- "version": "14.3.0",
3
+ "version": "16.2.12",
4
4
  "peerDependencies": {
5
- "@angular/common": "^14.3.0",
6
- "@angular/core": "^14.3.0",
5
+ "@angular/common": "^16.2.12",
6
+ "@angular/core": "^16.2.12",
7
7
  "es-cookie": "^1.3.2",
8
- "ngx-smart-modal": "^7.4.1",
8
+ "ngx-smart-modal": "^14.1.0",
9
9
  "tldjs": "^2.3.1"
10
10
  },
11
11
  "dependencies": {
12
- "tslib": "^2.0.0"
12
+ "tslib": "^2.3.0"
13
13
  },
14
- "module": "fesm2015/retalia-sidebar-navigation.mjs",
15
- "es2020": "fesm2020/retalia-sidebar-navigation.mjs",
16
- "esm2020": "esm2020/retalia-sidebar-navigation.mjs",
17
- "fesm2020": "fesm2020/retalia-sidebar-navigation.mjs",
18
- "fesm2015": "fesm2015/retalia-sidebar-navigation.mjs",
14
+ "module": "fesm2022/retalia-sidebar-navigation.mjs",
19
15
  "typings": "index.d.ts",
20
16
  "exports": {
21
17
  "./package.json": {
@@ -23,11 +19,9 @@
23
19
  },
24
20
  ".": {
25
21
  "types": "./index.d.ts",
26
- "esm2020": "./esm2020/retalia-sidebar-navigation.mjs",
27
- "es2020": "./fesm2020/retalia-sidebar-navigation.mjs",
28
- "es2015": "./fesm2015/retalia-sidebar-navigation.mjs",
29
- "node": "./fesm2015/retalia-sidebar-navigation.mjs",
30
- "default": "./fesm2020/retalia-sidebar-navigation.mjs"
22
+ "esm2022": "./esm2022/retalia-sidebar-navigation.mjs",
23
+ "esm": "./esm2022/retalia-sidebar-navigation.mjs",
24
+ "default": "./fesm2022/retalia-sidebar-navigation.mjs"
31
25
  }
32
26
  },
33
27
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './lib/navigation-lib.service';
2
- export * from './lib/navigation-lib.component';
3
- export * from './lib/navigation-lib.module';
4
- export * from './lib/models/module';
5
- export * from './lib/services/auth.service';
6
- export * from './lib/services/http.service';
7
- export * from './lib/services/module.service';
8
- export * from './lib/services/sub-item.service';
1
+ export * from './lib/navigation-lib.service';
2
+ export * from './lib/navigation-lib.component';
3
+ export * from './lib/navigation-lib.module';
4
+ export * from './lib/models/module';
5
+ export * from './lib/services/auth.service';
6
+ export * from './lib/services/http.service';
7
+ export * from './lib/services/module.service';
8
+ export * from './lib/services/sub-item.service';