@indice/ng-components 0.2.146-beta → 0.2.146
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/README.md +4 -4
- package/_styles.css +3571 -3501
- package/bundles/indice-ng-components.umd.js +716 -328
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/controls/avatar-initials/avatar-initials.component.js +4 -4
- package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +4 -4
- package/esm2015/lib/controls/date-picker/date-picker.component.js +5 -5
- package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +4 -4
- package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +4 -4
- package/esm2015/lib/controls/language-selection/language-selection.component.js +35 -0
- package/esm2015/lib/controls/list-view/list-column.component.js +4 -4
- package/esm2015/lib/controls/list-view/list-details-section.component.js +4 -4
- package/esm2015/lib/controls/list-view/list-tile.component.js +4 -4
- package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +4 -4
- package/esm2015/lib/controls/list-view/list-view.component.js +4 -4
- package/esm2015/lib/controls/nav-links-list/nav-links-list.component.js +45 -0
- package/esm2015/lib/controls/notifications-indicator/notifications-indicator.component.js +76 -0
- package/esm2015/lib/controls/pager/pager.component.js +4 -4
- package/esm2015/lib/controls/side-pane/side-pane.component.js +4 -4
- package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +4 -4
- package/esm2015/lib/controls/tabs/lib-tab-group.component.js +60 -0
- package/esm2015/lib/controls/tabs/lib-tab.component.js +57 -0
- package/esm2015/lib/controls/toaster/toaster-container.component.js +4 -4
- package/esm2015/lib/controls/toaster/toaster.component.js +4 -4
- package/esm2015/lib/controls/toggle/toggle.component.js +5 -5
- package/esm2015/lib/controls/user-profile-menu/user-profile-menu.component.js +75 -0
- package/esm2015/lib/directives/click-outside.directive.js +4 -4
- package/esm2015/lib/directives/dynamic-component-host.directive.js +4 -4
- package/esm2015/lib/helpers/base-list.component.js +24 -24
- package/esm2015/lib/icons.js +1 -1
- package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +4 -4
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +69 -79
- package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +15 -8
- package/esm2015/lib/layouts/shell/shell-sidebar/shell-sidebar.component.js +50 -0
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +8 -9
- package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +4 -6
- package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +4 -4
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +4 -4
- package/esm2015/lib/ng-components.module.js +91 -69
- package/esm2015/lib/pages/auth/auth-callback/auth-callback.component.js +4 -4
- package/esm2015/lib/pages/auth/auth-renew/auth-renew.component.js +4 -4
- package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +4 -4
- package/esm2015/lib/pages/http-status/error/error.component.js +4 -4
- package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +4 -4
- package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +4 -4
- package/esm2015/lib/pipes/address.pipe.js +4 -4
- package/esm2015/lib/pipes/duration-format.pipe.js +4 -4
- package/esm2015/lib/services/component-loader/component-loader-options.class.js +1 -1
- package/esm2015/lib/services/component-loader/component-loader.class.js +1 -1
- package/esm2015/lib/services/component-loader/component-loader.factory.js +4 -4
- package/esm2015/lib/services/component-loader/content-ref.class.js +1 -1
- package/esm2015/lib/services/modal-service/modal-backdrop-component.js +4 -4
- package/esm2015/lib/services/modal-service/modal-container-component.js +15 -15
- package/esm2015/lib/services/modal-service/modal-options.class.js +4 -4
- package/esm2015/lib/services/modal-service/modal-service.js +4 -4
- package/esm2015/lib/services/modal-service/modal-styles.class.js +1 -1
- package/esm2015/lib/services/modal-service/modal.class.js +4 -4
- package/esm2015/lib/services/toaster.service.js +4 -4
- package/esm2015/lib/tokens.js +3 -1
- package/esm2015/lib/types.js +16 -7
- package/esm2015/public-api.js +4 -2
- package/fesm2015/indice-ng-components.js +680 -331
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/lib/controls/language-selection/language-selection.component.d.ts +14 -0
- package/lib/controls/nav-links-list/nav-links-list.component.d.ts +16 -0
- package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +22 -0
- package/lib/controls/tabs/lib-tab-group.component.d.ts +21 -0
- package/lib/controls/tabs/lib-tab.component.d.ts +23 -0
- package/lib/controls/user-profile-menu/user-profile-menu.component.d.ts +24 -0
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +20 -26
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +4 -2
- package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +18 -0
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +2 -3
- package/lib/ng-components.module.d.ts +13 -7
- package/lib/tokens.d.ts +3 -1
- package/lib/types.d.ts +40 -10
- package/modal.css +157 -157
- package/package.json +10 -9
- package/public-api.d.ts +3 -1
- package/esm2015/lib/pipes/obs-with-status.pipe.js +0 -26
- package/lib/pipes/obs-with-status.pipe.d.ts +0 -13
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuOption } from './../../types';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { IAppLanguagesService } from '../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LanguageSelectionComponent implements OnInit {
|
|
6
|
+
langsService: IAppLanguagesService | undefined;
|
|
7
|
+
menuExpanded: boolean;
|
|
8
|
+
constructor(langsService: IAppLanguagesService | undefined);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
selectLang(option: MenuOption): void;
|
|
11
|
+
onClickOutside($event: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectionComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectionComponent, "lib-language-selection", never, {}, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { NavLink } from '../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NavLinksListComponent implements OnInit {
|
|
6
|
+
links: Observable<NavLink[]> | undefined;
|
|
7
|
+
activeFragment: Observable<string> | undefined;
|
|
8
|
+
navLinkClass: string | string;
|
|
9
|
+
navLinkActiveClass: string | string[];
|
|
10
|
+
containerClass: string | string[] | undefined;
|
|
11
|
+
showIcons: boolean | undefined;
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavLinksListComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavLinksListComponent, "lib-nav-links-list", never, { "links": "links"; "activeFragment": "active-fragment"; "navLinkClass": "link-class"; "navLinkActiveClass": "link-active-class"; "containerClass": "container-class"; "showIcons": "show-icons"; }, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IAppNotifications, NavLink } from './../../types';
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationsIndicatorComponent implements OnInit, OnDestroy {
|
|
5
|
+
notifications: IAppNotifications;
|
|
6
|
+
links: any;
|
|
7
|
+
menuExpanded: boolean;
|
|
8
|
+
unreadCount: number;
|
|
9
|
+
items: any[];
|
|
10
|
+
allNotificationsLink?: NavLink;
|
|
11
|
+
private notificationsSub$;
|
|
12
|
+
private inboxAction;
|
|
13
|
+
newArrival: boolean;
|
|
14
|
+
constructor(notifications: IAppNotifications, links: any);
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
doInboxAction(): void;
|
|
18
|
+
removeItem(index: number): void;
|
|
19
|
+
onClickOutside($event: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsIndicatorComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, {}, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { LibTabComponent } from './lib-tab.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LibTabGroupComponent implements OnInit, AfterContentInit, AfterContentChecked {
|
|
5
|
+
constructor();
|
|
6
|
+
/** The inner tabs of the group. */
|
|
7
|
+
tabs: QueryList<LibTabComponent> | undefined;
|
|
8
|
+
/** Emmited when a step change occurs. */
|
|
9
|
+
tabChanged: EventEmitter<LibTabComponent>;
|
|
10
|
+
/** The current tab. */
|
|
11
|
+
get currentTab(): LibTabComponent | undefined;
|
|
12
|
+
/** The index (starting from zero) of the current tab. */
|
|
13
|
+
get currentΤabIndex(): number | undefined;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngAfterContentInit(): void;
|
|
16
|
+
ngAfterContentChecked(): void;
|
|
17
|
+
onTabChanged(selectedTab: LibTabComponent): void;
|
|
18
|
+
onTabSelectChanged(selectedTabIndex: number): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibTabGroupComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTabGroupComponent, "lib-tab-group", never, {}, { "tabChanged": "tabChanged"; }, ["tabs"], never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { LibTabGroupComponent } from './lib-tab-group.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LibTabComponent implements OnInit {
|
|
5
|
+
private _tabGroup;
|
|
6
|
+
private _isActive;
|
|
7
|
+
constructor(_tabGroup: LibTabGroupComponent);
|
|
8
|
+
/** The content provided for the tab. */
|
|
9
|
+
content: TemplateRef<any>;
|
|
10
|
+
/** A label for the tab header. */
|
|
11
|
+
label: string | undefined;
|
|
12
|
+
/** Indicates the unique id assigned in the tab. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Indicates the index of the tab. */
|
|
15
|
+
get index(): number | undefined;
|
|
16
|
+
/** Indicates whether the tab is active. */
|
|
17
|
+
get isActive(): boolean;
|
|
18
|
+
/** Setter for LibTabComponent isActive property. */
|
|
19
|
+
set isActive(isActive: boolean);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibTabComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTabComponent, "lib-tab", never, { "label": "label"; "id": "id"; }, {}, never, ["*"]>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AuthService } from '@indice/ng-auth';
|
|
4
|
+
import { User } from 'oidc-client';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UserProfileMenuComponent implements OnInit {
|
|
8
|
+
protected authService: AuthService;
|
|
9
|
+
protected router: Router;
|
|
10
|
+
links: any;
|
|
11
|
+
showUserName: boolean | undefined;
|
|
12
|
+
protected userSub$: Subscription | null;
|
|
13
|
+
protected statusSub$: Subscription | null;
|
|
14
|
+
user: User | null;
|
|
15
|
+
avatarName: string | null;
|
|
16
|
+
userMenuExpanded: boolean;
|
|
17
|
+
constructor(authService: AuthService, router: Router, links: any);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
signin(event: any | null | undefined): void;
|
|
20
|
+
private setCurrentUser;
|
|
21
|
+
onClickOutside($event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileMenuComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileMenuComponent, "lib-user-profile-menu", never, { "showUserName": "show-user-name"; }, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -1,46 +1,40 @@
|
|
|
1
|
+
import { ShellLayoutType } from './../../../types';
|
|
2
|
+
import { AuthService } from '@indice/ng-auth';
|
|
1
3
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
4
|
import { User } from 'oidc-client';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
-
import { Observable
|
|
6
|
-
import {
|
|
5
|
+
import { ActivatedRoute, Event, Router } from '@angular/router';
|
|
6
|
+
import { NavLink } from '../../../types';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class ShellHeaderComponent implements OnInit, OnDestroy {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
protected authService: AuthService;
|
|
12
|
+
protected router: Router;
|
|
13
|
+
protected route: ActivatedRoute;
|
|
14
|
+
config: any;
|
|
11
15
|
links: any;
|
|
12
16
|
sectionLinksPath: string;
|
|
13
|
-
notificationLinksPath: string;
|
|
14
|
-
allNotificationsLinkPath: string;
|
|
15
|
-
config: IShellConfig;
|
|
16
|
-
border: boolean;
|
|
17
|
-
showNotifications: boolean | undefined;
|
|
18
|
-
showUserNameOnHeader: boolean | undefined;
|
|
19
|
-
notificationsMenuVisible: boolean;
|
|
20
17
|
profileMenuVisible: boolean;
|
|
18
|
+
showUserNameOnHeader: boolean | undefined;
|
|
19
|
+
showAlerts: boolean | undefined;
|
|
20
|
+
shellLayout: ShellLayoutType | undefined;
|
|
21
|
+
border: boolean;
|
|
21
22
|
sectionLinks: Observable<NavLink[]>;
|
|
22
|
-
notificationLinks: Observable<NotificationNavLink[]>;
|
|
23
|
-
allNotificationsLink: Observable<NavLink>;
|
|
24
23
|
mobileMenuExpanded: boolean;
|
|
25
24
|
userMenuExpanded: boolean;
|
|
26
|
-
notificationsMenuExpanded: boolean;
|
|
27
25
|
protected routeSubject: Observable<Event>;
|
|
28
26
|
protected routerSub$: Subscription | null;
|
|
29
27
|
protected userSub$: Subscription | null;
|
|
30
28
|
protected statusSub$: Subscription | null;
|
|
31
29
|
user: User | null;
|
|
32
30
|
avatarName: string | null;
|
|
33
|
-
|
|
34
|
-
constructor(authService: AuthService, router: Router, links: any);
|
|
35
|
-
ngOnDestroy(): void;
|
|
31
|
+
activeFragment: any | null;
|
|
32
|
+
constructor(authService: AuthService, router: Router, route: ActivatedRoute, config: any, links: any);
|
|
36
33
|
ngOnInit(): void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
onClickOutsideNotifications($event: any): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
onClickOutside($event: any): void;
|
|
40
36
|
signin(event: any | null | undefined): void;
|
|
41
|
-
|
|
42
|
-
expandNotificationsMenu(): void;
|
|
43
|
-
getNotificationsCount(): void;
|
|
37
|
+
private setCurrentUser;
|
|
44
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShellHeaderComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "profileMenuVisible": "profile-menu"; "showUserNameOnHeader": "show-userName"; "showAlerts": "show-alerts"; "shellLayout": "shell-layout"; "border": "border"; }, {}, never, never>;
|
|
46
40
|
}
|
|
@@ -6,16 +6,18 @@ import { DynamicComponentHostDirective } from '../../../directives/dynamic-compo
|
|
|
6
6
|
import { ComponentLoaderFactory } from '../../../services/component-loader/component-loader.factory';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ShellLayoutComponent implements OnInit, OnDestroy, AfterViewInit, AfterViewChecked {
|
|
9
|
+
private document;
|
|
9
10
|
private router;
|
|
10
11
|
private location;
|
|
11
12
|
private config;
|
|
12
13
|
private componentLoaderFactory;
|
|
13
14
|
dynamicComponentHosts: QueryList<DynamicComponentHostDirective> | null;
|
|
14
|
-
private routerSub$;
|
|
15
15
|
showRightPaneSM: boolean;
|
|
16
|
+
private routerSub$;
|
|
16
17
|
activeConfig: IShellConfig;
|
|
17
18
|
loaded: boolean;
|
|
18
|
-
|
|
19
|
+
hideSidebar: boolean;
|
|
20
|
+
constructor(document: any, router: Router, location: Location, config: IShellConfig | undefined, componentLoaderFactory: ComponentLoaderFactory);
|
|
19
21
|
ngAfterViewChecked(): void;
|
|
20
22
|
ngOnInit(): void;
|
|
21
23
|
ngAfterViewInit(): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IShellConfig, NavLink } from './../../../types';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs/internal/Observable';
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ShellSidebarComponent implements OnInit {
|
|
7
|
+
protected router: Router;
|
|
8
|
+
protected route: ActivatedRoute;
|
|
9
|
+
links: any;
|
|
10
|
+
sectionLinksPath: string;
|
|
11
|
+
sectionLinks: Observable<NavLink[]>;
|
|
12
|
+
shellConfig: IShellConfig | undefined;
|
|
13
|
+
activeFragment: any | null;
|
|
14
|
+
constructor(router: Router, route: ActivatedRoute, links: any);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShellSidebarComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShellSidebarComponent, "lib-shell-sidebar", never, { "sectionLinksPath": "section-links"; "shellConfig": "config"; }, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { RouterViewAction, ViewAction } from '../../../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FormLayoutComponent implements OnInit {
|
|
6
|
-
private
|
|
6
|
+
private router$;
|
|
7
7
|
private searchInput$?;
|
|
8
8
|
title: string | null;
|
|
9
9
|
searchPlaceholder: string | null;
|
|
@@ -12,8 +12,7 @@ export declare class FormLayoutComponent implements OnInit {
|
|
|
12
12
|
onAction: EventEmitter<ViewAction>;
|
|
13
13
|
onSearch: EventEmitter<string>;
|
|
14
14
|
onComplete: EventEmitter<boolean>;
|
|
15
|
-
|
|
16
|
-
constructor(_router: Router);
|
|
15
|
+
constructor(router$: Router);
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
onSidePaneDeactivated($event: any): void;
|
|
19
18
|
emitActionClick(action: ViewAction): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "./directives/click-outside.directive";
|
|
4
4
|
import * as i2 from "./directives/dynamic-component-host.directive";
|
|
@@ -33,13 +33,19 @@ import * as i30 from "./pages/http-status/page-not-found/page-not-found.componen
|
|
|
33
33
|
import * as i31 from "./pages/http-status/unauthorized/unauthorized.component";
|
|
34
34
|
import * as i32 from "./pipes/address.pipe";
|
|
35
35
|
import * as i33 from "./pipes/duration-format.pipe";
|
|
36
|
-
import * as i34 from "./
|
|
37
|
-
import * as i35 from "
|
|
38
|
-
import * as i36 from "
|
|
39
|
-
import * as i37 from "
|
|
36
|
+
import * as i34 from "./controls/nav-links-list/nav-links-list.component";
|
|
37
|
+
import * as i35 from "./controls/notifications-indicator/notifications-indicator.component";
|
|
38
|
+
import * as i36 from "./controls/language-selection/language-selection.component";
|
|
39
|
+
import * as i37 from "./controls/user-profile-menu/user-profile-menu.component";
|
|
40
|
+
import * as i38 from "./layouts/shell/shell-sidebar/shell-sidebar.component";
|
|
41
|
+
import * as i39 from "./controls/tabs/lib-tab-group.component";
|
|
42
|
+
import * as i40 from "./controls/tabs/lib-tab.component";
|
|
43
|
+
import * as i41 from "@angular/common";
|
|
44
|
+
import * as i42 from "@angular/router";
|
|
45
|
+
import * as i43 from "@indice/ng-auth";
|
|
40
46
|
export declare class IndiceComponentsModule {
|
|
41
|
-
static forRoot():
|
|
47
|
+
static forRoot(): ModuleWithProviders<IndiceComponentsModule>;
|
|
42
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<IndiceComponentsModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IndiceComponentsModule, [typeof i1.ClickOutsideDirective, typeof i2.DynamicComponentHostDirective, typeof i3.DropDownMenuComponent, typeof i4.PagerComponent, typeof i5.ListViewComponent, typeof i6.ListColumnComponent, typeof i7.ListTileComponent, typeof i8.ListDetailsSectionComponent, typeof i9.ListViewEmptyStateComponent, typeof i10.SkeletonLoaderComponent, typeof i11.CollapsiblePanelComponent, typeof i12.KpiTileComponent, typeof i13.SidePaneComponent, typeof i14.DatepickerComponent, typeof i15.AvatarInitialsComponent, typeof i16.ToggleComponent, typeof i17.ToasterContainerComponent, typeof i18.ToasterComponent, typeof i19.ShellLayoutComponent, typeof i20.ShellHeaderComponent, typeof i21.ShellFooterComponent, typeof i22.ViewLayoutComponent, typeof i23.SideViewLayoutComponent, typeof i24.ModelViewLayoutComponent, typeof i25.FormLayoutComponent, typeof i26.AuthCallbackComponent, typeof i27.AuthRenewComponent, typeof i28.LoggedOutComponent, typeof i29.ErrorComponent, typeof i30.PageNotFoundComponent, typeof i31.UnauthorizedComponent, typeof i32.AddressPipe, typeof i33.DurationFormatPipe, typeof i34.
|
|
49
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IndiceComponentsModule, [typeof i1.ClickOutsideDirective, typeof i2.DynamicComponentHostDirective, typeof i3.DropDownMenuComponent, typeof i4.PagerComponent, typeof i5.ListViewComponent, typeof i6.ListColumnComponent, typeof i7.ListTileComponent, typeof i8.ListDetailsSectionComponent, typeof i9.ListViewEmptyStateComponent, typeof i10.SkeletonLoaderComponent, typeof i11.CollapsiblePanelComponent, typeof i12.KpiTileComponent, typeof i13.SidePaneComponent, typeof i14.DatepickerComponent, typeof i15.AvatarInitialsComponent, typeof i16.ToggleComponent, typeof i17.ToasterContainerComponent, typeof i18.ToasterComponent, typeof i19.ShellLayoutComponent, typeof i20.ShellHeaderComponent, typeof i21.ShellFooterComponent, typeof i22.ViewLayoutComponent, typeof i23.SideViewLayoutComponent, typeof i24.ModelViewLayoutComponent, typeof i25.FormLayoutComponent, typeof i26.AuthCallbackComponent, typeof i27.AuthRenewComponent, typeof i28.LoggedOutComponent, typeof i29.ErrorComponent, typeof i30.PageNotFoundComponent, typeof i31.UnauthorizedComponent, typeof i32.AddressPipe, typeof i33.DurationFormatPipe, typeof i34.NavLinksListComponent, typeof i35.NotificationsIndicatorComponent, typeof i36.LanguageSelectionComponent, typeof i37.UserProfileMenuComponent, typeof i38.ShellSidebarComponent, typeof i39.LibTabGroupComponent, typeof i40.LibTabComponent], [typeof i41.CommonModule, typeof i42.RouterModule, typeof i43.IndiceAuthModule], [typeof i32.AddressPipe, typeof i26.AuthCallbackComponent, typeof i27.AuthRenewComponent, typeof i15.AvatarInitialsComponent, typeof i1.ClickOutsideDirective, typeof i11.CollapsiblePanelComponent, typeof i14.DatepickerComponent, typeof i3.DropDownMenuComponent, typeof i33.DurationFormatPipe, typeof i29.ErrorComponent, typeof i25.FormLayoutComponent, typeof i12.KpiTileComponent, typeof i40.LibTabComponent, typeof i39.LibTabGroupComponent, typeof i6.ListColumnComponent, typeof i8.ListDetailsSectionComponent, typeof i7.ListTileComponent, typeof i5.ListViewComponent, typeof i9.ListViewEmptyStateComponent, typeof i28.LoggedOutComponent, typeof i24.ModelViewLayoutComponent, typeof i30.PageNotFoundComponent, typeof i4.PagerComponent, typeof i21.ShellFooterComponent, typeof i20.ShellHeaderComponent, typeof i19.ShellLayoutComponent, typeof i13.SidePaneComponent, typeof i23.SideViewLayoutComponent, typeof i10.SkeletonLoaderComponent, typeof i18.ToasterComponent, typeof i17.ToasterContainerComponent, typeof i16.ToggleComponent, typeof i31.UnauthorizedComponent, typeof i22.ViewLayoutComponent]>;
|
|
44
50
|
static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
|
|
45
51
|
}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { IAppLinks, IShellConfig } from './types';
|
|
2
|
+
import { IAppLinks, IAppLanguagesService, IAppNotifications, IShellConfig } from './types';
|
|
3
3
|
export declare const APP_LINKS: InjectionToken<IAppLinks>;
|
|
4
|
+
export declare const APP_NOTIFICATIONS: InjectionToken<IAppNotifications>;
|
|
4
5
|
export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
|
|
6
|
+
export declare const APP_LANGUAGES: InjectionToken<IAppLanguagesService>;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export interface IAppNotifications {
|
|
3
|
+
messages: Observable<IResultSet<NavLink>>;
|
|
4
|
+
inboxAction?: () => void | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface IAppLanguagesService {
|
|
7
|
+
options: Observable<MenuOption[]> | undefined;
|
|
8
|
+
selected?: string;
|
|
9
|
+
default?: string;
|
|
10
|
+
setSelected?: (lang: string) => void | undefined;
|
|
11
|
+
}
|
|
2
12
|
export interface IAppLinks {
|
|
3
13
|
public: Observable<NavLink[]>;
|
|
4
14
|
main: Observable<NavLink[]>;
|
|
@@ -6,27 +16,30 @@ export interface IAppLinks {
|
|
|
6
16
|
profileActions: Observable<NavLink[]>;
|
|
7
17
|
legal: Observable<NavLink[]>;
|
|
8
18
|
brand: Observable<NavLink[]>;
|
|
9
|
-
notifications?: Observable<
|
|
10
|
-
allNotifications?: Observable<NavLink>;
|
|
19
|
+
notifications?: Observable<NavLink>;
|
|
11
20
|
}
|
|
12
21
|
export declare class NavLink {
|
|
13
|
-
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string,
|
|
22
|
+
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string, data?: any);
|
|
14
23
|
text: string;
|
|
15
24
|
path: string;
|
|
16
25
|
exact: boolean;
|
|
17
26
|
external: boolean;
|
|
18
27
|
icon: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
type: string;
|
|
29
|
+
data: any | undefined;
|
|
21
30
|
}
|
|
22
31
|
export declare class ExternalNavLink extends NavLink {
|
|
23
32
|
constructor(text: string, path: string, openInNewTab?: boolean, icon?: string);
|
|
33
|
+
type: string;
|
|
24
34
|
}
|
|
25
35
|
export declare class FragmentNavLink extends NavLink {
|
|
26
36
|
constructor(text: string, path: string, icon?: string);
|
|
37
|
+
type: string;
|
|
27
38
|
}
|
|
28
39
|
export declare class NotificationNavLink extends NavLink {
|
|
29
|
-
|
|
40
|
+
isRead: boolean;
|
|
41
|
+
creationDate?: Date | undefined;
|
|
42
|
+
constructor(text: string, path: string, isRead: boolean, creationDate?: Date | undefined);
|
|
30
43
|
}
|
|
31
44
|
export declare class ViewAction {
|
|
32
45
|
type: string;
|
|
@@ -77,22 +90,29 @@ export interface IAddress {
|
|
|
77
90
|
country?: string | null;
|
|
78
91
|
}
|
|
79
92
|
export interface IShellConfig {
|
|
93
|
+
layout?: ShellLayoutType;
|
|
80
94
|
appLogo: string;
|
|
81
95
|
appLogoAlt: string;
|
|
82
96
|
showHeader: boolean;
|
|
83
97
|
showUserNameOnHeader?: boolean;
|
|
84
|
-
|
|
85
|
-
showFooter: boolean;
|
|
98
|
+
showAlertsOnHeader?: boolean;
|
|
86
99
|
customHeaderComponent?: any;
|
|
100
|
+
showFooter: boolean;
|
|
87
101
|
customFooterComponent?: any;
|
|
88
102
|
fluid: boolean;
|
|
103
|
+
showLangsOnHeader?: boolean;
|
|
104
|
+
}
|
|
105
|
+
export declare enum ShellLayoutType {
|
|
106
|
+
Stacked = "Stacked",
|
|
107
|
+
Sidebar = "Sidebar"
|
|
89
108
|
}
|
|
90
109
|
export declare class DefaultShellConfig implements IShellConfig {
|
|
110
|
+
layout: ShellLayoutType;
|
|
91
111
|
appLogo: string;
|
|
92
112
|
appLogoAlt: string;
|
|
93
113
|
showHeader: boolean;
|
|
94
114
|
showUserNameOnHeader: boolean;
|
|
95
|
-
|
|
115
|
+
showAlertsOnHeader: boolean;
|
|
96
116
|
showFooter: boolean;
|
|
97
117
|
fluid: boolean;
|
|
98
118
|
}
|
|
@@ -133,3 +153,13 @@ export declare enum SidePaneOverlayType {
|
|
|
133
153
|
Light = "",
|
|
134
154
|
Dark = "-opacity-50"
|
|
135
155
|
}
|
|
156
|
+
export interface IValidationProblemDetails {
|
|
157
|
+
type?: string | undefined;
|
|
158
|
+
title?: string | undefined;
|
|
159
|
+
status?: number | undefined;
|
|
160
|
+
detail?: string | undefined;
|
|
161
|
+
instance?: string | undefined;
|
|
162
|
+
errors?: {
|
|
163
|
+
[key: string]: string[];
|
|
164
|
+
} | undefined;
|
|
165
|
+
}
|