@indice/ng-components 0.2.142-beta → 0.2.142
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 +3498 -3501
- package/{esm2015/indice-ng-components.js → esm2020/indice-ng-components.mjs} +0 -0
- package/{esm2015/lib/controls/avatar-initials/avatar-initials.component.js → esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs} +5 -8
- package/esm2020/lib/controls/collapsible-panel/collapsible-panel.component.mjs +20 -0
- package/esm2020/lib/controls/date-picker/date-picker.component.mjs +260 -0
- package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +68 -0
- package/esm2020/lib/controls/kpi-tile/kpi-tile.component.mjs +36 -0
- package/{esm2015/lib/controls/list-view/list-column.component.js → esm2020/lib/controls/list-view/list-column.component.mjs} +4 -4
- package/{esm2015/lib/controls/list-view/list-details-section.component.js → esm2020/lib/controls/list-view/list-details-section.component.mjs} +4 -4
- package/{esm2015/lib/controls/list-view/list-tile.component.js → esm2020/lib/controls/list-view/list-tile.component.mjs} +4 -4
- package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +29 -0
- package/esm2020/lib/controls/list-view/list-view.component.mjs +183 -0
- package/esm2020/lib/controls/nav-links-list/nav-links-list.component.mjs +37 -0
- package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +77 -0
- package/esm2020/lib/controls/pager/pager.component.mjs +130 -0
- package/esm2020/lib/controls/side-pane/side-pane.component.mjs +72 -0
- package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +25 -0
- package/{esm2015/lib/controls/toaster/toaster-container.component.js → esm2020/lib/controls/toaster/toaster-container.component.mjs} +5 -8
- package/esm2020/lib/controls/toaster/toaster.component.mjs +31 -0
- package/esm2020/lib/controls/toggle/toggle.component.mjs +64 -0
- package/{esm2015/lib/directives/click-outside.directive.js → esm2020/lib/directives/click-outside.directive.mjs} +4 -4
- package/{esm2015/lib/directives/dynamic-component-host.directive.js → esm2020/lib/directives/dynamic-component-host.directive.mjs} +4 -4
- package/esm2020/lib/helpers/base-list.component.mjs +181 -0
- package/{esm2015/lib/icons.js → esm2020/lib/icons.mjs} +1 -1
- package/esm2020/lib/layouts/shell/shell-footer/shell-footer.component.mjs +19 -0
- package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +135 -0
- package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +101 -0
- package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +80 -0
- package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +49 -0
- package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +98 -0
- package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +104 -0
- package/{esm2015/lib/ng-components.module.js → esm2020/lib/ng-components.module.mjs} +12 -12
- package/{esm2015/lib/pages/auth/auth-callback/auth-callback.component.js → esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs} +6 -10
- package/{esm2015/lib/pages/auth/auth-renew/auth-renew.component.js → esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs} +4 -4
- package/{esm2015/lib/pages/auth/logged-out/logged-out.component.js → esm2020/lib/pages/auth/logged-out/logged-out.component.mjs} +5 -9
- package/esm2020/lib/pages/http-status/error/error.component.mjs +17 -0
- package/esm2020/lib/pages/http-status/page-not-found/page-not-found.component.mjs +15 -0
- package/esm2020/lib/pages/http-status/unauthorized/unauthorized.component.mjs +14 -0
- package/{esm2015/lib/pipes/address.pipe.js → esm2020/lib/pipes/address.pipe.mjs} +4 -4
- package/{esm2015/lib/pipes/duration-format.pipe.js → esm2020/lib/pipes/duration-format.pipe.mjs} +4 -4
- package/esm2020/lib/services/component-loader/component-loader-options.class.mjs +8 -0
- package/esm2020/lib/services/component-loader/component-loader.class.mjs +188 -0
- package/{esm2015/lib/services/component-loader/component-loader.factory.js → esm2020/lib/services/component-loader/component-loader.factory.mjs} +4 -4
- package/{esm2015/lib/services/component-loader/content-ref.class.js → esm2020/lib/services/component-loader/content-ref.class.mjs} +1 -1
- package/{esm2015/lib/services/modal-service/modal-backdrop-component.js → esm2020/lib/services/modal-service/modal-backdrop-component.mjs} +5 -5
- package/esm2020/lib/services/modal-service/modal-container-component.mjs +126 -0
- package/esm2020/lib/services/modal-service/modal-options.class.mjs +35 -0
- package/esm2020/lib/services/modal-service/modal-service.mjs +219 -0
- package/{esm2015/lib/services/modal-service/modal-styles.class.js → esm2020/lib/services/modal-service/modal-styles.class.mjs} +1 -1
- package/esm2020/lib/services/modal-service/modal.class.mjs +27 -0
- package/{esm2015/lib/services/toaster.service.js → esm2020/lib/services/toaster.service.mjs} +4 -4
- package/esm2020/lib/tokens.mjs +5 -0
- package/esm2020/lib/types.mjs +117 -0
- package/esm2020/public-api.mjs +53 -0
- package/fesm2015/indice-ng-components.mjs +3268 -0
- package/fesm2015/indice-ng-components.mjs.map +1 -0
- package/fesm2020/indice-ng-components.mjs +3225 -0
- package/fesm2020/indice-ng-components.mjs.map +1 -0
- package/lib/controls/nav-links-list/nav-links-list.component.d.ts +15 -0
- package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +23 -0
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +21 -27
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +3 -2
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +2 -3
- package/lib/ng-components.module.d.ts +10 -7
- package/lib/tokens.d.ts +1 -0
- package/lib/types.d.ts +28 -10
- package/modal.css +157 -157
- package/package.json +21 -8
- package/public-api.d.ts +1 -1
- package/bundles/indice-ng-components.umd.js +0 -3827
- package/bundles/indice-ng-components.umd.js.map +0 -1
- package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +0 -23
- package/esm2015/lib/controls/date-picker/date-picker.component.js +0 -269
- package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +0 -72
- package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +0 -39
- package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +0 -32
- package/esm2015/lib/controls/list-view/list-view.component.js +0 -186
- package/esm2015/lib/controls/pager/pager.component.js +0 -133
- package/esm2015/lib/controls/side-pane/side-pane.component.js +0 -76
- package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +0 -29
- package/esm2015/lib/controls/toaster/toaster.component.js +0 -34
- package/esm2015/lib/controls/toggle/toggle.component.js +0 -68
- package/esm2015/lib/helpers/base-list.component.js +0 -182
- package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +0 -22
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +0 -146
- package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +0 -101
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +0 -86
- package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +0 -55
- package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +0 -101
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +0 -110
- package/esm2015/lib/pages/http-status/error/error.component.js +0 -20
- package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +0 -18
- package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +0 -17
- package/esm2015/lib/pipes/obs-with-status.pipe.js +0 -26
- package/esm2015/lib/services/component-loader/component-loader-options.class.js +0 -8
- package/esm2015/lib/services/component-loader/component-loader.class.js +0 -192
- package/esm2015/lib/services/modal-service/modal-container-component.js +0 -128
- package/esm2015/lib/services/modal-service/modal-options.class.js +0 -35
- package/esm2015/lib/services/modal-service/modal-service.js +0 -220
- package/esm2015/lib/services/modal-service/modal.class.js +0 -27
- package/esm2015/lib/services/notifications.service.js +0 -37
- package/esm2015/lib/tokens.js +0 -4
- package/esm2015/lib/types.js +0 -114
- package/esm2015/public-api.js +0 -53
- package/fesm2015/indice-ng-components.js +0 -3281
- package/fesm2015/indice-ng-components.js.map +0 -1
- package/lib/pipes/obs-with-status.pipe.d.ts +0 -13
- package/lib/services/notifications.service.d.ts +0 -14
|
@@ -0,0 +1,15 @@
|
|
|
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[];
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavLinksListComponent, never>;
|
|
14
|
+
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"; }, {}, never, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
toggleMenu(): void;
|
|
18
|
+
doInboxAction(): void;
|
|
19
|
+
removeItem(index: number): void;
|
|
20
|
+
onClickOutside($event: any): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsIndicatorComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, {}, {}, never, never>;
|
|
23
|
+
}
|
|
@@ -1,47 +1,41 @@
|
|
|
1
|
+
import { AuthService } from '@indice/ng-auth';
|
|
1
2
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
3
|
import { User } from 'oidc-client';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
-
import { Observable
|
|
6
|
-
import {
|
|
7
|
-
import { NotificationsService } from '../../../services/notifications.service';
|
|
4
|
+
import { ActivatedRoute, Event, Router } from '@angular/router';
|
|
5
|
+
import { NavLink } from '../../../types';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ShellHeaderComponent implements OnInit, OnDestroy {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
protected authService: AuthService;
|
|
11
|
+
protected router: Router;
|
|
12
|
+
protected route: ActivatedRoute;
|
|
13
|
+
config: any;
|
|
12
14
|
links: any;
|
|
13
|
-
private _notifications;
|
|
14
15
|
sectionLinksPath: string;
|
|
15
|
-
notificationLinksPath: string;
|
|
16
|
-
allNotificationsLinkPath: string;
|
|
17
|
-
config: IShellConfig;
|
|
18
|
-
border: boolean;
|
|
19
|
-
showNotifications: boolean | undefined;
|
|
20
|
-
showUserNameOnHeader: boolean | undefined;
|
|
21
|
-
notificationsMenuVisible: boolean;
|
|
22
16
|
profileMenuVisible: boolean;
|
|
17
|
+
showUserNameOnHeader: boolean | undefined;
|
|
18
|
+
showAlerts: boolean | undefined;
|
|
19
|
+
langs: string[] | undefined;
|
|
20
|
+
currentLang: string | undefined;
|
|
21
|
+
border: boolean;
|
|
23
22
|
sectionLinks: Observable<NavLink[]>;
|
|
24
|
-
notificationLinks: Observable<NotificationNavLink[]>;
|
|
25
|
-
allNotificationsLink: Observable<NavLink>;
|
|
26
23
|
mobileMenuExpanded: boolean;
|
|
27
24
|
userMenuExpanded: boolean;
|
|
28
|
-
notificationsMenuExpanded: boolean;
|
|
29
25
|
protected routeSubject: Observable<Event>;
|
|
30
26
|
protected routerSub$: Subscription | null;
|
|
31
27
|
protected userSub$: Subscription | null;
|
|
32
28
|
protected statusSub$: Subscription | null;
|
|
33
29
|
user: User | null;
|
|
34
30
|
avatarName: string | null;
|
|
35
|
-
|
|
36
|
-
constructor(authService: AuthService, router: Router,
|
|
37
|
-
ngOnDestroy(): void;
|
|
31
|
+
activeFragment: any | null;
|
|
32
|
+
constructor(authService: AuthService, router: Router, route: ActivatedRoute, config: any, links: any);
|
|
38
33
|
ngOnInit(): void;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
onClickOutsideNotifications($event: any): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
onClickOutside($event: any): void;
|
|
42
36
|
signin(event: any | null | undefined): void;
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
private setCurrentUser;
|
|
38
|
+
setCurrentLang(lang: any): void;
|
|
45
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShellHeaderComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "profileMenuVisible": "profile-menu"; "showUserNameOnHeader": "show-userName"; "showAlerts": "show-alerts"; "langs": "langs"; "currentLang": "current-lang"; "border": "border"; }, {}, never, never>;
|
|
47
41
|
}
|
|
@@ -6,16 +6,17 @@ 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
|
-
constructor(router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory);
|
|
19
|
+
constructor(document: any, router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory);
|
|
19
20
|
ngAfterViewChecked(): void;
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngAfterViewInit(): void;
|
|
@@ -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,5 +1,4 @@
|
|
|
1
1
|
import { ToasterService } from './services/toaster.service';
|
|
2
|
-
import { NotificationsService } from './services/notifications.service';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "./directives/click-outside.directive";
|
|
5
4
|
import * as i2 from "./directives/dynamic-component-host.directive";
|
|
@@ -34,13 +33,17 @@ import * as i30 from "./pages/http-status/page-not-found/page-not-found.componen
|
|
|
34
33
|
import * as i31 from "./pages/http-status/unauthorized/unauthorized.component";
|
|
35
34
|
import * as i32 from "./pipes/address.pipe";
|
|
36
35
|
import * as i33 from "./pipes/duration-format.pipe";
|
|
37
|
-
import * as i34 from "./
|
|
38
|
-
import * as i35 from "
|
|
39
|
-
import * as i36 from "@angular/
|
|
40
|
-
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 "@angular/common";
|
|
39
|
+
import * as i37 from "@angular/router";
|
|
40
|
+
import * as i38 from "@indice/ng-auth";
|
|
41
41
|
export declare class IndiceComponentsModule {
|
|
42
|
-
static forRoot():
|
|
42
|
+
static forRoot(): {
|
|
43
|
+
ngModule: typeof IndiceComponentsModule;
|
|
44
|
+
providers: (typeof ToasterService)[];
|
|
45
|
+
};
|
|
43
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<IndiceComponentsModule, never>;
|
|
44
|
-
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.
|
|
47
|
+
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.CommonModule, typeof i37.RouterModule, typeof i38.IndiceAuthModule], [typeof i1.ClickOutsideDirective, typeof i3.DropDownMenuComponent, typeof i4.PagerComponent, typeof i5.ListViewComponent, typeof i6.ListColumnComponent, typeof i7.ListTileComponent, typeof i8.ListDetailsSectionComponent, typeof i9.ListViewEmptyStateComponent, typeof i12.KpiTileComponent, typeof i10.SkeletonLoaderComponent, 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 i11.CollapsiblePanelComponent, typeof i13.SidePaneComponent, typeof i14.DatepickerComponent, typeof i17.ToasterContainerComponent, typeof i18.ToasterComponent, typeof i15.AvatarInitialsComponent, typeof i16.ToggleComponent]>;
|
|
45
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
|
|
46
49
|
}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { IAppLinks, IShellConfig } from './types';
|
|
3
3
|
export declare const APP_LINKS: InjectionToken<IAppLinks>;
|
|
4
|
+
export declare const APP_NOTIFICATIONS: InjectionToken<IAppLinks>;
|
|
4
5
|
export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export interface IAppNotifications {
|
|
3
|
+
messages: Observable<IResultSet<NavLink>>;
|
|
4
|
+
inboxAction?: () => void | undefined;
|
|
5
|
+
}
|
|
2
6
|
export interface IAppLinks {
|
|
3
7
|
public: Observable<NavLink[]>;
|
|
4
8
|
main: Observable<NavLink[]>;
|
|
@@ -6,27 +10,30 @@ export interface IAppLinks {
|
|
|
6
10
|
profileActions: Observable<NavLink[]>;
|
|
7
11
|
legal: Observable<NavLink[]>;
|
|
8
12
|
brand: Observable<NavLink[]>;
|
|
9
|
-
notifications?: Observable<
|
|
10
|
-
allNotifications?: Observable<NavLink>;
|
|
13
|
+
notifications?: Observable<NavLink>;
|
|
11
14
|
}
|
|
12
15
|
export declare class NavLink {
|
|
13
|
-
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string,
|
|
16
|
+
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string, data?: any);
|
|
14
17
|
text: string;
|
|
15
18
|
path: string;
|
|
16
19
|
exact: boolean;
|
|
17
20
|
external: boolean;
|
|
18
21
|
icon: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
type: string;
|
|
23
|
+
data: any | undefined;
|
|
21
24
|
}
|
|
22
25
|
export declare class ExternalNavLink extends NavLink {
|
|
23
26
|
constructor(text: string, path: string, openInNewTab?: boolean, icon?: string);
|
|
27
|
+
type: string;
|
|
24
28
|
}
|
|
25
29
|
export declare class FragmentNavLink extends NavLink {
|
|
26
30
|
constructor(text: string, path: string, icon?: string);
|
|
31
|
+
type: string;
|
|
27
32
|
}
|
|
28
33
|
export declare class NotificationNavLink extends NavLink {
|
|
29
|
-
|
|
34
|
+
isRead: boolean;
|
|
35
|
+
creationDate?: Date | undefined;
|
|
36
|
+
constructor(text: string, path: string, isRead: boolean, creationDate?: Date | undefined);
|
|
30
37
|
}
|
|
31
38
|
export declare class ViewAction {
|
|
32
39
|
type: string;
|
|
@@ -81,18 +88,19 @@ export interface IShellConfig {
|
|
|
81
88
|
appLogoAlt: string;
|
|
82
89
|
showHeader: boolean;
|
|
83
90
|
showUserNameOnHeader?: boolean;
|
|
84
|
-
|
|
85
|
-
showFooter: boolean;
|
|
91
|
+
showAlertsOnHeader?: boolean;
|
|
86
92
|
customHeaderComponent?: any;
|
|
93
|
+
showFooter: boolean;
|
|
87
94
|
customFooterComponent?: any;
|
|
88
95
|
fluid: boolean;
|
|
96
|
+
langs?: string[];
|
|
89
97
|
}
|
|
90
98
|
export declare class DefaultShellConfig implements IShellConfig {
|
|
91
99
|
appLogo: string;
|
|
92
100
|
appLogoAlt: string;
|
|
93
101
|
showHeader: boolean;
|
|
94
102
|
showUserNameOnHeader: boolean;
|
|
95
|
-
|
|
103
|
+
showAlertsOnHeader: boolean;
|
|
96
104
|
showFooter: boolean;
|
|
97
105
|
fluid: boolean;
|
|
98
106
|
}
|
|
@@ -133,3 +141,13 @@ export declare enum SidePaneOverlayType {
|
|
|
133
141
|
Light = "",
|
|
134
142
|
Dark = "-opacity-50"
|
|
135
143
|
}
|
|
144
|
+
export interface IValidationProblemDetails {
|
|
145
|
+
type?: string | undefined;
|
|
146
|
+
title?: string | undefined;
|
|
147
|
+
status?: number | undefined;
|
|
148
|
+
detail?: string | undefined;
|
|
149
|
+
instance?: string | undefined;
|
|
150
|
+
errors?: {
|
|
151
|
+
[key: string]: string[];
|
|
152
|
+
} | undefined;
|
|
153
|
+
}
|
package/modal.css
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
.modal-open {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
}
|
|
4
|
-
.modal-open .modal {
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
}
|
|
8
|
-
.modal {
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
z-index: 1050;
|
|
13
|
-
display: none;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
outline: 0;
|
|
18
|
-
}
|
|
19
|
-
.modal-dialog {
|
|
20
|
-
position: relative;
|
|
21
|
-
width: auto;
|
|
22
|
-
margin: 0.5rem;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
}
|
|
25
|
-
.modal.fade .modal-dialog {
|
|
26
|
-
transition: transform 0.3s ease-out;
|
|
27
|
-
transform: translate(0, -50px);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.fade {
|
|
31
|
-
transition: opacity 0.15s linear;
|
|
32
|
-
}
|
|
33
|
-
.fade:not(.show) {
|
|
34
|
-
opacity: 0;
|
|
35
|
-
}
|
|
36
|
-
@media (prefers-reduced-motion: reduce) {
|
|
37
|
-
.modal.fade .modal-dialog {
|
|
38
|
-
transition: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.modal.show .modal-dialog {
|
|
42
|
-
transform: none;
|
|
43
|
-
}
|
|
44
|
-
.modal.modal-static .modal-dialog {
|
|
45
|
-
transform: scale(1.02);
|
|
46
|
-
}
|
|
47
|
-
.modal-dialog-scrollable {
|
|
48
|
-
display: flex;
|
|
49
|
-
max-height: subtract(100%, 1rem);
|
|
50
|
-
}
|
|
51
|
-
.modal-dialog-scrollable .modal-content {
|
|
52
|
-
max-height: subtract(100vh, 1rem);
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
}
|
|
55
|
-
.modal-dialog-scrollable .modal-header,
|
|
56
|
-
.modal-dialog-scrollable .modal-footer {
|
|
57
|
-
flex-shrink: 0;
|
|
58
|
-
}
|
|
59
|
-
.modal-dialog-scrollable .modal-body {
|
|
60
|
-
overflow-y: auto;
|
|
61
|
-
}
|
|
62
|
-
.modal-dialog-centered {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
min-height: subtract(100%, 1rem);
|
|
66
|
-
}
|
|
67
|
-
.modal-dialog-centered::before {
|
|
68
|
-
display: block;
|
|
69
|
-
height: subtract(100vh, 1rem);
|
|
70
|
-
height: -webkit-min-content;
|
|
71
|
-
height: min-content;
|
|
72
|
-
content: "";
|
|
73
|
-
}
|
|
74
|
-
.modal-dialog-centered.modal-dialog-scrollable {
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
height: 100%;
|
|
78
|
-
}
|
|
79
|
-
.modal-dialog-centered.modal-dialog-scrollable .modal-content {
|
|
80
|
-
max-height: none;
|
|
81
|
-
}
|
|
82
|
-
.modal-dialog-centered.modal-dialog-scrollable::before {
|
|
83
|
-
content: none;
|
|
84
|
-
}
|
|
85
|
-
.modal-content {
|
|
86
|
-
position: relative;
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
width: 100%;
|
|
90
|
-
pointer-events: auto;
|
|
91
|
-
background-color: #fff;
|
|
92
|
-
background-clip: padding-box;
|
|
93
|
-
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
94
|
-
border-radius: 0.3rem;
|
|
95
|
-
outline: 0;
|
|
96
|
-
}
|
|
97
|
-
.modal-backdrop {
|
|
98
|
-
position: fixed;
|
|
99
|
-
top: 0;
|
|
100
|
-
left: 0;
|
|
101
|
-
z-index: 1040;
|
|
102
|
-
width: 100vw;
|
|
103
|
-
height: 100vh;
|
|
104
|
-
background-color: #000;
|
|
105
|
-
}
|
|
106
|
-
.modal-backdrop.fade {
|
|
107
|
-
opacity: 0;
|
|
108
|
-
}
|
|
109
|
-
.modal-backdrop.show {
|
|
110
|
-
opacity: 0.5;
|
|
111
|
-
}
|
|
112
|
-
.modal-scrollbar-measure {
|
|
113
|
-
position: absolute;
|
|
114
|
-
top: -9999px;
|
|
115
|
-
width: 50px;
|
|
116
|
-
height: 50px;
|
|
117
|
-
overflow: scroll;
|
|
118
|
-
}
|
|
119
|
-
@media (min-width: 576px) {
|
|
120
|
-
.modal-dialog {
|
|
121
|
-
max-width: 500px;
|
|
122
|
-
margin: 1.75rem auto;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.modal-dialog-scrollable {
|
|
126
|
-
max-height: subtract(100%, 3.5rem);
|
|
127
|
-
}
|
|
128
|
-
.modal-dialog-scrollable .modal-content {
|
|
129
|
-
max-height: subtract(100vh, 3.5rem);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.modal-dialog-centered {
|
|
133
|
-
min-height: subtract(100%, 3.5rem);
|
|
134
|
-
}
|
|
135
|
-
.modal-dialog-centered::before {
|
|
136
|
-
height: subtract(100vh, 3.5rem);
|
|
137
|
-
height: -webkit-min-content;
|
|
138
|
-
height: min-content;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.modal-sm {
|
|
142
|
-
max-width: 300px;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
@media (min-width: 992px) {
|
|
146
|
-
.modal-lg,
|
|
147
|
-
.modal-xl {
|
|
148
|
-
max-width: 800px;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
@media (min-width: 1200px) {
|
|
152
|
-
.modal-xl {
|
|
153
|
-
max-width: 1140px;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/*# sourceMappingURL=styles.css.map*/
|
|
1
|
+
.modal-open {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
.modal-open .modal {
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
}
|
|
8
|
+
.modal {
|
|
9
|
+
position: fixed;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
z-index: 1050;
|
|
13
|
+
display: none;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
outline: 0;
|
|
18
|
+
}
|
|
19
|
+
.modal-dialog {
|
|
20
|
+
position: relative;
|
|
21
|
+
width: auto;
|
|
22
|
+
margin: 0.5rem;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
.modal.fade .modal-dialog {
|
|
26
|
+
transition: transform 0.3s ease-out;
|
|
27
|
+
transform: translate(0, -50px);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.fade {
|
|
31
|
+
transition: opacity 0.15s linear;
|
|
32
|
+
}
|
|
33
|
+
.fade:not(.show) {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
}
|
|
36
|
+
@media (prefers-reduced-motion: reduce) {
|
|
37
|
+
.modal.fade .modal-dialog {
|
|
38
|
+
transition: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.modal.show .modal-dialog {
|
|
42
|
+
transform: none;
|
|
43
|
+
}
|
|
44
|
+
.modal.modal-static .modal-dialog {
|
|
45
|
+
transform: scale(1.02);
|
|
46
|
+
}
|
|
47
|
+
.modal-dialog-scrollable {
|
|
48
|
+
display: flex;
|
|
49
|
+
max-height: subtract(100%, 1rem);
|
|
50
|
+
}
|
|
51
|
+
.modal-dialog-scrollable .modal-content {
|
|
52
|
+
max-height: subtract(100vh, 1rem);
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.modal-dialog-scrollable .modal-header,
|
|
56
|
+
.modal-dialog-scrollable .modal-footer {
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
59
|
+
.modal-dialog-scrollable .modal-body {
|
|
60
|
+
overflow-y: auto;
|
|
61
|
+
}
|
|
62
|
+
.modal-dialog-centered {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
min-height: subtract(100%, 1rem);
|
|
66
|
+
}
|
|
67
|
+
.modal-dialog-centered::before {
|
|
68
|
+
display: block;
|
|
69
|
+
height: subtract(100vh, 1rem);
|
|
70
|
+
height: -webkit-min-content;
|
|
71
|
+
height: min-content;
|
|
72
|
+
content: "";
|
|
73
|
+
}
|
|
74
|
+
.modal-dialog-centered.modal-dialog-scrollable {
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
height: 100%;
|
|
78
|
+
}
|
|
79
|
+
.modal-dialog-centered.modal-dialog-scrollable .modal-content {
|
|
80
|
+
max-height: none;
|
|
81
|
+
}
|
|
82
|
+
.modal-dialog-centered.modal-dialog-scrollable::before {
|
|
83
|
+
content: none;
|
|
84
|
+
}
|
|
85
|
+
.modal-content {
|
|
86
|
+
position: relative;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
width: 100%;
|
|
90
|
+
pointer-events: auto;
|
|
91
|
+
background-color: #fff;
|
|
92
|
+
background-clip: padding-box;
|
|
93
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
94
|
+
border-radius: 0.3rem;
|
|
95
|
+
outline: 0;
|
|
96
|
+
}
|
|
97
|
+
.modal-backdrop {
|
|
98
|
+
position: fixed;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
z-index: 1040;
|
|
102
|
+
width: 100vw;
|
|
103
|
+
height: 100vh;
|
|
104
|
+
background-color: #000;
|
|
105
|
+
}
|
|
106
|
+
.modal-backdrop.fade {
|
|
107
|
+
opacity: 0;
|
|
108
|
+
}
|
|
109
|
+
.modal-backdrop.show {
|
|
110
|
+
opacity: 0.5;
|
|
111
|
+
}
|
|
112
|
+
.modal-scrollbar-measure {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: -9999px;
|
|
115
|
+
width: 50px;
|
|
116
|
+
height: 50px;
|
|
117
|
+
overflow: scroll;
|
|
118
|
+
}
|
|
119
|
+
@media (min-width: 576px) {
|
|
120
|
+
.modal-dialog {
|
|
121
|
+
max-width: 500px;
|
|
122
|
+
margin: 1.75rem auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.modal-dialog-scrollable {
|
|
126
|
+
max-height: subtract(100%, 3.5rem);
|
|
127
|
+
}
|
|
128
|
+
.modal-dialog-scrollable .modal-content {
|
|
129
|
+
max-height: subtract(100vh, 3.5rem);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.modal-dialog-centered {
|
|
133
|
+
min-height: subtract(100%, 3.5rem);
|
|
134
|
+
}
|
|
135
|
+
.modal-dialog-centered::before {
|
|
136
|
+
height: subtract(100vh, 3.5rem);
|
|
137
|
+
height: -webkit-min-content;
|
|
138
|
+
height: min-content;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.modal-sm {
|
|
142
|
+
max-width: 300px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@media (min-width: 992px) {
|
|
146
|
+
.modal-lg,
|
|
147
|
+
.modal-xl {
|
|
148
|
+
max-width: 800px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
@media (min-width: 1200px) {
|
|
152
|
+
.modal-xl {
|
|
153
|
+
max-width: 1140px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/*# sourceMappingURL=styles.css.map*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indice/ng-components",
|
|
3
|
-
"version": "0.2.142
|
|
3
|
+
"version": "0.2.142",
|
|
4
4
|
"description": "Indice common components for Angular v12",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@angular/common": "^12.0.1",
|
|
25
25
|
"@angular/core": "^12.0.1",
|
|
26
26
|
"@angular/router": "^12.0.1",
|
|
27
|
-
"@indice/ng-auth": "^0.1.
|
|
27
|
+
"@indice/ng-auth": "^0.1.26",
|
|
28
28
|
"oidc-client": "^1.11.5",
|
|
29
29
|
"tailwindcss": "^2.1.2",
|
|
30
30
|
"@tailwindcss/aspect-ratio": "^0.2.0",
|
|
@@ -34,13 +34,26 @@
|
|
|
34
34
|
"rxjs": "^6.6.7"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"tslib": "^2.
|
|
37
|
+
"tslib": "^2.4.0"
|
|
38
38
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"fesm2015": "fesm2015/indice-ng-components.
|
|
39
|
+
"module": "fesm2015/indice-ng-components.mjs",
|
|
40
|
+
"es2020": "fesm2020/indice-ng-components.mjs",
|
|
41
|
+
"esm2020": "esm2020/indice-ng-components.mjs",
|
|
42
|
+
"fesm2020": "fesm2020/indice-ng-components.mjs",
|
|
43
|
+
"fesm2015": "fesm2015/indice-ng-components.mjs",
|
|
44
44
|
"typings": "indice-ng-components.d.ts",
|
|
45
|
+
"exports": {
|
|
46
|
+
"./package.json": {
|
|
47
|
+
"default": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
".": {
|
|
50
|
+
"types": "./indice-ng-components.d.ts",
|
|
51
|
+
"esm2020": "./esm2020/indice-ng-components.mjs",
|
|
52
|
+
"es2020": "./fesm2020/indice-ng-components.mjs",
|
|
53
|
+
"es2015": "./fesm2015/indice-ng-components.mjs",
|
|
54
|
+
"node": "./fesm2015/indice-ng-components.mjs",
|
|
55
|
+
"default": "./fesm2020/indice-ng-components.mjs"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
45
58
|
"sideEffects": false
|
|
46
59
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './lib/controls/toaster/toaster.component';
|
|
|
15
15
|
export * from './lib/controls/avatar-initials/avatar-initials.component';
|
|
16
16
|
export * from './lib/controls/toggle/toggle.component';
|
|
17
17
|
export * from './lib/controls/side-pane/side-pane.component';
|
|
18
|
+
export * from './lib/controls/nav-links-list/nav-links-list.component';
|
|
18
19
|
export * from './lib/layouts/shell/shell-layout/shell-layout.component';
|
|
19
20
|
export * from './lib/layouts/shell/shell-header/shell-header.component';
|
|
20
21
|
export * from './lib/layouts/shell/shell-footer/shell-footer.component';
|
|
@@ -30,7 +31,6 @@ export * from './lib/pages/http-status/page-not-found/page-not-found.component';
|
|
|
30
31
|
export * from './lib/pages/http-status/unauthorized/unauthorized.component';
|
|
31
32
|
export * from './lib/pipes/address.pipe';
|
|
32
33
|
export * from './lib/pipes/duration-format.pipe';
|
|
33
|
-
export * from './lib/pipes/obs-with-status.pipe';
|
|
34
34
|
export * from './lib/tokens';
|
|
35
35
|
export * from './lib/types';
|
|
36
36
|
export * from './lib/icons';
|