@indice/ng-components 0.2.139 → 0.2.141
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/{src/assets/styles/indice-ng-icons-inline.css → _styles.css} +3501 -2286
- package/esm2020/indice-ng-components.mjs +5 -0
- package/esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs +48 -0
- 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/esm2020/lib/controls/list-view/list-column.component.mjs +25 -0
- package/esm2020/lib/controls/list-view/list-details-section.component.mjs +17 -0
- package/esm2020/lib/controls/list-view/list-tile.component.mjs +17 -0
- 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/esm2020/lib/controls/toaster/toaster-container.component.mjs +28 -0
- package/esm2020/lib/controls/toaster/toaster.component.mjs +31 -0
- package/esm2020/lib/controls/toggle/toggle.component.mjs +64 -0
- package/esm2020/lib/directives/click-outside.directive.mjs +189 -0
- package/esm2020/lib/directives/dynamic-component-host.directive.mjs +17 -0
- package/esm2020/lib/helpers/base-list.component.mjs +181 -0
- package/esm2020/lib/icons.mjs +32 -0
- 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/esm2020/lib/ng-components.module.mjs +221 -0
- package/esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs +30 -0
- package/esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs +31 -0
- package/esm2020/lib/pages/auth/logged-out/logged-out.component.mjs +28 -0
- 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/esm2020/lib/pipes/address.pipe.mjs +21 -0
- package/esm2020/lib/pipes/duration-format.pipe.mjs +64 -0
- 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/esm2020/lib/services/component-loader/component-loader.factory.mjs +32 -0
- package/esm2020/lib/services/component-loader/content-ref.class.mjs +13 -0
- package/esm2020/lib/services/modal-service/modal-backdrop-component.mjs +44 -0
- 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/esm2020/lib/services/modal-service/modal-styles.class.mjs +11 -0
- package/esm2020/lib/services/modal-service/modal.class.mjs +27 -0
- package/esm2020/lib/services/toaster.service.mjs +24 -0
- 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/indice-ng-components.d.ts +5 -0
- package/lib/controls/avatar-initials/avatar-initials.component.d.ts +14 -0
- package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +10 -0
- package/lib/controls/date-picker/date-picker.component.d.ts +48 -0
- package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +25 -0
- package/lib/controls/kpi-tile/kpi-tile.component.d.ts +13 -0
- package/lib/controls/list-view/list-column.component.d.ts +9 -0
- package/lib/controls/list-view/list-details-section.component.d.ts +7 -0
- package/lib/controls/list-view/list-tile.component.d.ts +7 -0
- package/lib/controls/list-view/list-view-empty-state.component.d.ts +11 -0
- package/lib/controls/list-view/list-view.component.d.ts +55 -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/controls/pager/pager.component.d.ts +36 -0
- package/lib/controls/side-pane/side-pane.component.d.ts +18 -0
- package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +11 -0
- package/lib/controls/toaster/toaster-container.component.d.ts +13 -0
- package/lib/controls/toaster/toaster.component.d.ts +15 -0
- package/lib/controls/toggle/toggle.component.d.ts +19 -0
- package/lib/directives/click-outside.directive.d.ts +40 -0
- package/lib/directives/dynamic-component-host.directive.d.ts +9 -0
- package/lib/helpers/base-list.component.d.ts +42 -0
- package/lib/icons.d.ts +30 -0
- package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +8 -0
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +41 -0
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +28 -0
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +24 -0
- package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +25 -0
- package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +28 -0
- package/lib/layouts/views/view-layout/view-layout.component.d.ts +31 -0
- package/lib/ng-components.module.d.ts +49 -0
- package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +13 -0
- package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +12 -0
- package/lib/pages/auth/logged-out/logged-out.component.d.ts +12 -0
- package/lib/pages/http-status/error/error.component.d.ts +8 -0
- package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +8 -0
- package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +8 -0
- package/lib/pipes/address.pipe.d.ts +8 -0
- package/lib/pipes/duration-format.pipe.d.ts +8 -0
- package/lib/services/component-loader/component-loader-options.class.d.ts +30 -0
- package/lib/services/component-loader/component-loader.class.d.ts +92 -0
- package/lib/services/component-loader/component-loader.factory.d.ts +24 -0
- package/lib/services/component-loader/content-ref.class.d.ts +12 -0
- package/lib/services/modal-service/modal-backdrop-component.d.ts +20 -0
- package/lib/services/modal-service/modal-container-component.d.ts +33 -0
- package/lib/services/modal-service/modal-options.class.d.ts +81 -0
- package/lib/services/modal-service/modal-service.d.ts +58 -0
- package/lib/services/modal-service/modal-styles.class.d.ts +10 -0
- package/lib/services/modal-service/modal.class.d.ts +43 -0
- package/lib/services/toaster.service.d.ts +11 -0
- package/lib/tokens.d.ts +5 -0
- package/lib/types.d.ts +153 -0
- package/{src/assets/styles/modal.css → modal.css} +157 -157
- package/package.json +24 -20
- package/{src/public-api.ts → public-api.d.ts} +43 -60
- package/CHANGELOG.md +0 -1
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -10
- package/scripts/css-bundle.ts +0 -33
- package/src/_styles.css +0 -36
- package/src/_tests/utilities.service.spec.ts +0 -16
- package/src/assets/styles/avatar-initials.css +0 -37
- package/src/assets/styles/base.css +0 -46
- package/src/assets/styles/cards.css +0 -71
- package/src/assets/styles/collapsible-panel.css +0 -25
- package/src/assets/styles/components.css +0 -34
- package/src/assets/styles/date-picker.component.css +0 -0
- package/src/assets/styles/drop-down-menu.css +0 -50
- package/src/assets/styles/form-layout.css +0 -49
- package/src/assets/styles/list-view-empty-state.css +0 -0
- package/src/assets/styles/list-view.css +0 -64
- package/src/assets/styles/model-view-layout.css +0 -45
- package/src/assets/styles/nav-links.css +0 -35
- package/src/assets/styles/notifications-indicator.component.css +0 -43
- package/src/assets/styles/pager.css +0 -29
- package/src/assets/styles/shell-layout.css +0 -232
- package/src/assets/styles/side-pane.css +0 -46
- package/src/assets/styles/side-view-layout.css +0 -58
- package/src/assets/styles/toast.css +0 -72
- package/src/assets/styles/toggle.css +0 -26
- package/src/assets/styles/view-layout.css +0 -58
- package/src/lib/controls/avatar-initials/avatar-initials.component.html +0 -3
- package/src/lib/controls/avatar-initials/avatar-initials.component.ts +0 -47
- package/src/lib/controls/collapsible-panel/collapsible-panel.component.html +0 -15
- package/src/lib/controls/collapsible-panel/collapsible-panel.component.ts +0 -16
- package/src/lib/controls/date-picker/date-picker.component.html +0 -133
- package/src/lib/controls/date-picker/date-picker.component.ts +0 -258
- package/src/lib/controls/drop-down-menu/drop-down-menu.component.html +0 -61
- package/src/lib/controls/drop-down-menu/drop-down-menu.component.ts +0 -59
- package/src/lib/controls/kpi-tile/kpi-tile.component.html +0 -18
- package/src/lib/controls/kpi-tile/kpi-tile.component.ts +0 -26
- package/src/lib/controls/list-view/list-column.component.ts +0 -10
- package/src/lib/controls/list-view/list-details-section.component.ts +0 -8
- package/src/lib/controls/list-view/list-tile.component.ts +0 -8
- package/src/lib/controls/list-view/list-view-empty-state.component.html +0 -20
- package/src/lib/controls/list-view/list-view-empty-state.component.ts +0 -19
- package/src/lib/controls/list-view/list-view.component.html +0 -151
- package/src/lib/controls/list-view/list-view.component.ts +0 -146
- package/src/lib/controls/nav-links-list/nav-links-list.component.html +0 -27
- package/src/lib/controls/nav-links-list/nav-links-list.component.ts +0 -25
- package/src/lib/controls/notifications-indicator/notifications-indicator.component.html +0 -78
- package/src/lib/controls/notifications-indicator/notifications-indicator.component.ts +0 -75
- package/src/lib/controls/pager/pager.component.html +0 -33
- package/src/lib/controls/pager/pager.component.ts +0 -106
- package/src/lib/controls/side-pane/side-pane.component.html +0 -10
- package/src/lib/controls/side-pane/side-pane.component.ts +0 -59
- package/src/lib/controls/skeleton-loader/skeleton-loader.component.html +0 -112
- package/src/lib/controls/skeleton-loader/skeleton-loader.component.ts +0 -20
- package/src/lib/controls/toaster/toaster-container.component.html +0 -1
- package/src/lib/controls/toaster/toaster-container.component.ts +0 -27
- package/src/lib/controls/toaster/toaster.component.html +0 -103
- package/src/lib/controls/toaster/toaster.component.ts +0 -26
- package/src/lib/controls/toggle/toggle.component.html +0 -15
- package/src/lib/controls/toggle/toggle.component.ts +0 -58
- package/src/lib/directives/click-outside.directive.ts +0 -196
- package/src/lib/directives/dynamic-component-host.directive.ts +0 -7
- package/src/lib/directives/screen-size.directive.ts +0 -67
- package/src/lib/helpers/base-list.component.ts +0 -204
- package/src/lib/icons.ts +0 -39
- package/src/lib/layouts/shell/shell-footer/shell-footer.component.html +0 -71
- package/src/lib/layouts/shell/shell-footer/shell-footer.component.ts +0 -14
- package/src/lib/layouts/shell/shell-header/shell-header.component.html +0 -199
- package/src/lib/layouts/shell/shell-header/shell-header.component.ts +0 -111
- package/src/lib/layouts/shell/shell-layout/shell-layout.component.html +0 -36
- package/src/lib/layouts/shell/shell-layout/shell-layout.component.ts +0 -91
- package/src/lib/layouts/views/form-layout/form-layout.component.html +0 -67
- package/src/lib/layouts/views/form-layout/form-layout.component.ts +0 -66
- package/src/lib/layouts/views/model-view-layout/model-view-layout.component.html +0 -43
- package/src/lib/layouts/views/model-view-layout/model-view-layout.component.ts +0 -37
- package/src/lib/layouts/views/side-view-layout/side-view-layout.component.html +0 -36
- package/src/lib/layouts/views/side-view-layout/side-view-layout.component.ts +0 -67
- package/src/lib/layouts/views/view-layout/view-layout.component.html +0 -68
- package/src/lib/layouts/views/view-layout/view-layout.component.ts +0 -82
- package/src/lib/ng-components.module.ts +0 -135
- package/src/lib/pages/auth/auth-callback/auth-callback.component.html +0 -1
- package/src/lib/pages/auth/auth-callback/auth-callback.component.ts +0 -22
- package/src/lib/pages/auth/auth-renew/auth-renew.component.ts +0 -20
- package/src/lib/pages/auth/logged-out/logged-out.component.html +0 -1
- package/src/lib/pages/auth/logged-out/logged-out.component.ts +0 -22
- package/src/lib/pages/http-status/error/error.component.html +0 -13
- package/src/lib/pages/http-status/error/error.component.ts +0 -13
- package/src/lib/pages/http-status/page-not-found/page-not-found.component.html +0 -14
- package/src/lib/pages/http-status/page-not-found/page-not-found.component.ts +0 -14
- package/src/lib/pages/http-status/unauthorized/unauthorized.component.html +0 -15
- package/src/lib/pages/http-status/unauthorized/unauthorized.component.ts +0 -11
- package/src/lib/pipes/address.pipe.ts +0 -17
- package/src/lib/pipes/duration-format.pipe.ts +0 -67
- package/src/lib/services/component-loader/component-loader-options.class.ts +0 -31
- package/src/lib/services/component-loader/component-loader.class.ts +0 -226
- package/src/lib/services/component-loader/component-loader.factory.ts +0 -27
- package/src/lib/services/component-loader/content-ref.class.ts +0 -10
- package/src/lib/services/interceptors/bad-request.interceptor.ts +0 -34
- package/src/lib/services/modal-service/modal-backdrop-component.ts +0 -40
- package/src/lib/services/modal-service/modal-container-component.ts +0 -125
- package/src/lib/services/modal-service/modal-options.class.ts +0 -92
- package/src/lib/services/modal-service/modal-service.ts +0 -237
- package/src/lib/services/modal-service/modal-styles.class.ts +0 -11
- package/src/lib/services/modal-service/modal.class.ts +0 -45
- package/src/lib/services/shell-state-service.service.ts +0 -10
- package/src/lib/services/toaster.service.ts +0 -23
- package/src/lib/services/utilities.service.ts +0 -40
- package/src/lib/tokens.ts +0 -6
- package/src/lib/types.ts +0 -210
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -26
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
- package/webpack.config.js +0 -36
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Location } from '@angular/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SideViewLayoutComponent implements OnInit {
|
|
6
|
+
private location;
|
|
7
|
+
private router;
|
|
8
|
+
title: string | null;
|
|
9
|
+
showActions: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
returnPath: string | undefined;
|
|
12
|
+
okLabel: string;
|
|
13
|
+
okShow: boolean;
|
|
14
|
+
closeOnOk: boolean;
|
|
15
|
+
cancelLabel: string;
|
|
16
|
+
cancelShow: boolean;
|
|
17
|
+
forceLocationBack: boolean;
|
|
18
|
+
cancel: EventEmitter<boolean>;
|
|
19
|
+
ok: EventEmitter<boolean>;
|
|
20
|
+
constructor(location: Location, router: Router);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
closeSidePane(): void;
|
|
23
|
+
emitClose(): void;
|
|
24
|
+
emitCancel(): void;
|
|
25
|
+
emitOK(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SideViewLayoutComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideViewLayoutComponent, "lib-side-view-layout", never, { "title": "title"; "showActions": "showActions"; "disabled": "disabled"; "returnPath": "return-path"; "okLabel": "ok-label"; "okShow": "ok-show"; "closeOnOk": "ok-close-dialog"; "cancelLabel": "cancel-label"; "cancelShow": "cancel-show"; "forceLocationBack": "force-location-back"; }, { "cancel": "cancel"; "ok": "ok"; }, never, ["*"]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SwitchViewAction } from '../../../types';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
4
|
+
import { HeaderMetaItem, RouterViewAction, ViewAction } from '../../../types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ViewLayoutComponent implements OnInit {
|
|
7
|
+
private route$;
|
|
8
|
+
private router$;
|
|
9
|
+
private searchInput$?;
|
|
10
|
+
header: boolean;
|
|
11
|
+
fluid: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
icon: string | null;
|
|
14
|
+
actions: ViewAction[] | null;
|
|
15
|
+
busy: boolean;
|
|
16
|
+
searchPlaceholder: string | null;
|
|
17
|
+
view: string | null;
|
|
18
|
+
metaItems: HeaderMetaItem[] | null;
|
|
19
|
+
onAction: EventEmitter<ViewAction>;
|
|
20
|
+
onSearch: EventEmitter<string>;
|
|
21
|
+
constructor(route$: ActivatedRoute, router$: Router);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
emitActionClick(action: ViewAction): void;
|
|
24
|
+
routerLinkActionClick(action: RouterViewAction | any): void;
|
|
25
|
+
searchActionClick(action: ViewAction, text: string): void;
|
|
26
|
+
searchActionType(text: string): void;
|
|
27
|
+
handleClear(event: any): void;
|
|
28
|
+
switchViewActionClick(action: SwitchViewAction | any): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewLayoutComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewLayoutComponent, "lib-view-layout", never, { "header": "show-header"; "fluid": "fluid"; "title": "title"; "icon": "icon"; "actions": "actions"; "busy": "busy"; "searchPlaceholder": "search-placeholder"; "view": "view"; "metaItems": "meta-items"; }, { "onAction": "onAction"; "onSearch": "onSearch"; }, never, ["*"]>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ToasterService } from './services/toaster.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./directives/click-outside.directive";
|
|
4
|
+
import * as i2 from "./directives/dynamic-component-host.directive";
|
|
5
|
+
import * as i3 from "./controls/drop-down-menu/drop-down-menu.component";
|
|
6
|
+
import * as i4 from "./controls/pager/pager.component";
|
|
7
|
+
import * as i5 from "./controls/list-view/list-view.component";
|
|
8
|
+
import * as i6 from "./controls/list-view/list-column.component";
|
|
9
|
+
import * as i7 from "./controls/list-view/list-tile.component";
|
|
10
|
+
import * as i8 from "./controls/list-view/list-details-section.component";
|
|
11
|
+
import * as i9 from "./controls/list-view/list-view-empty-state.component";
|
|
12
|
+
import * as i10 from "./controls/skeleton-loader/skeleton-loader.component";
|
|
13
|
+
import * as i11 from "./controls/collapsible-panel/collapsible-panel.component";
|
|
14
|
+
import * as i12 from "./controls/kpi-tile/kpi-tile.component";
|
|
15
|
+
import * as i13 from "./controls/side-pane/side-pane.component";
|
|
16
|
+
import * as i14 from "./controls/date-picker/date-picker.component";
|
|
17
|
+
import * as i15 from "./controls/avatar-initials/avatar-initials.component";
|
|
18
|
+
import * as i16 from "./controls/toggle/toggle.component";
|
|
19
|
+
import * as i17 from "./controls/toaster/toaster-container.component";
|
|
20
|
+
import * as i18 from "./controls/toaster/toaster.component";
|
|
21
|
+
import * as i19 from "./layouts/shell/shell-layout/shell-layout.component";
|
|
22
|
+
import * as i20 from "./layouts/shell/shell-header/shell-header.component";
|
|
23
|
+
import * as i21 from "./layouts/shell/shell-footer/shell-footer.component";
|
|
24
|
+
import * as i22 from "./layouts/views/view-layout/view-layout.component";
|
|
25
|
+
import * as i23 from "./layouts/views/side-view-layout/side-view-layout.component";
|
|
26
|
+
import * as i24 from "./layouts/views/model-view-layout/model-view-layout.component";
|
|
27
|
+
import * as i25 from "./layouts/views/form-layout/form-layout.component";
|
|
28
|
+
import * as i26 from "./pages/auth/auth-callback/auth-callback.component";
|
|
29
|
+
import * as i27 from "./pages/auth/auth-renew/auth-renew.component";
|
|
30
|
+
import * as i28 from "./pages/auth/logged-out/logged-out.component";
|
|
31
|
+
import * as i29 from "./pages/http-status/error/error.component";
|
|
32
|
+
import * as i30 from "./pages/http-status/page-not-found/page-not-found.component";
|
|
33
|
+
import * as i31 from "./pages/http-status/unauthorized/unauthorized.component";
|
|
34
|
+
import * as i32 from "./pipes/address.pipe";
|
|
35
|
+
import * as i33 from "./pipes/duration-format.pipe";
|
|
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
|
+
export declare class IndiceComponentsModule {
|
|
42
|
+
static forRoot(): {
|
|
43
|
+
ngModule: typeof IndiceComponentsModule;
|
|
44
|
+
providers: (typeof ToasterService)[];
|
|
45
|
+
};
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IndiceComponentsModule, never>;
|
|
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]>;
|
|
48
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AuthService } from '@indice/ng-auth';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthCallbackComponent implements OnInit {
|
|
6
|
+
private authService;
|
|
7
|
+
private router;
|
|
8
|
+
constructor(authService: AuthService, router: Router);
|
|
9
|
+
status: string;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthCallbackComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "lib-auth-callback", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AuthService } from '@indice/ng-auth';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthRenewComponent implements OnInit {
|
|
6
|
+
private authService;
|
|
7
|
+
private router;
|
|
8
|
+
constructor(authService: AuthService, router: Router);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthRenewComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthRenewComponent, "lib-auth-renew", never, {}, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthService } from '@indice/ng-auth';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LoggedOutComponent implements OnInit {
|
|
5
|
+
private authService;
|
|
6
|
+
constructor(authService: AuthService);
|
|
7
|
+
status: string;
|
|
8
|
+
finished: boolean;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoggedOutComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoggedOutComponent, "lib-logged-out", never, {}, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ErrorComponent implements OnInit {
|
|
4
|
+
error: string;
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "lib-error", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PageNotFoundComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageNotFoundComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageNotFoundComponent, "lib-page-not-found", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UnauthorizedComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedComponent, "lib-unauthorized", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { IAddress } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddressPipe implements PipeTransform {
|
|
5
|
+
transform(value: IAddress | undefined): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AddressPipe, "address">;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DurationFormatPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, arg1: any, arg2: any): string;
|
|
5
|
+
private format;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DurationFormatPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DurationFormatPipe, "durationFormat">;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Options passed to {@link ComponentLoader.show}.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class ComponentLoaderOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The content to be drawn inside `<ng-content>` of `ComponentLoader` attached component.
|
|
10
|
+
* @remarks
|
|
11
|
+
* `content` can be `Component` , `TemplateRef` or `String`.
|
|
12
|
+
*/
|
|
13
|
+
content?: string | TemplateRef<unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* The data to be passed to view for `TemplateRef` case.
|
|
16
|
+
*/
|
|
17
|
+
context?: unknown;
|
|
18
|
+
/**
|
|
19
|
+
* Initial data to be passed to `content` for `Component` case.
|
|
20
|
+
*/
|
|
21
|
+
initialState?: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* Other properties passed to attached component.
|
|
24
|
+
*/
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
/**
|
|
27
|
+
* id` - The id of the attached component ref.
|
|
28
|
+
*/
|
|
29
|
+
id?: number | string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ViewContainerRef, Type, ElementRef, StaticProvider, ComponentRef, ApplicationRef, Injector } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { ComponentLoaderOptions } from './component-loader-options.class';
|
|
4
|
+
/**
|
|
5
|
+
* Provides ways of loading and handling dynamic content.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Do NOT use this directly, create an instance through {@link ComponentLoaderFactory}
|
|
9
|
+
* You can use this loader in two ways:
|
|
10
|
+
* - Attaches a component to `ViewContainerRef`.
|
|
11
|
+
* - Attaches a component to `ViewContainerRef`. The attached component has a `<ng-content>` tag inside its view. The {@link ComponentLoaderOptions.content} will be drawn inside this tag.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare class ComponentLoader<T> {
|
|
16
|
+
private vcr;
|
|
17
|
+
private cfr;
|
|
18
|
+
private applicationRef;
|
|
19
|
+
private injector;
|
|
20
|
+
/**
|
|
21
|
+
* Before content is shown event.
|
|
22
|
+
*/
|
|
23
|
+
onBeforeShow: Subject<unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* After show content event.
|
|
26
|
+
* @returns The id of newly created component ref.
|
|
27
|
+
*/
|
|
28
|
+
onShown: Subject<unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Before content is hidden event.
|
|
31
|
+
* @returns The instance of attached component;
|
|
32
|
+
*/
|
|
33
|
+
onBeforeHide: Subject<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* After content is hidden event.
|
|
36
|
+
* @returns The id of destroyed component ref.
|
|
37
|
+
*/
|
|
38
|
+
onHidden: Subject<unknown>;
|
|
39
|
+
instance?: T;
|
|
40
|
+
componentRef?: ComponentRef<T>;
|
|
41
|
+
private componentFactory?;
|
|
42
|
+
private container;
|
|
43
|
+
private providers;
|
|
44
|
+
private contentRef?;
|
|
45
|
+
private containerDefaultSelector;
|
|
46
|
+
private innerComponent?;
|
|
47
|
+
constructor(vcr: ViewContainerRef | undefined, cfr: ComponentFactoryResolver, applicationRef: ApplicationRef, injector: Injector);
|
|
48
|
+
/**
|
|
49
|
+
* Attaches component.
|
|
50
|
+
* @param componentType - The type component to attach.
|
|
51
|
+
* @returns Current instance of {@link ComponentLoader}
|
|
52
|
+
*/
|
|
53
|
+
attach(componentType: Type<T>): ComponentLoader<T>;
|
|
54
|
+
/**
|
|
55
|
+
* Body will be used in nothing is provided.
|
|
56
|
+
* @param container - The element in which dynamic content will be drawn inside to. For string case a query to the dom will be executed to find the element.
|
|
57
|
+
* @returns Current instance of {@link ComponentLoader}
|
|
58
|
+
*/
|
|
59
|
+
to(container?: string | ElementRef): ComponentLoader<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Adds provider to the providers array. These providers will be injected to the attached component.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
|
|
64
|
+
*
|
|
65
|
+
* @param provider - Provider to inject.
|
|
66
|
+
* @returns Current instance of {@link ComponentLoader}
|
|
67
|
+
*/
|
|
68
|
+
provide(provider: StaticProvider): ComponentLoader<T>;
|
|
69
|
+
/**
|
|
70
|
+
* Attaches attached component to dom and any dynamic content if provided.
|
|
71
|
+
* @remarks
|
|
72
|
+
* Also triggers the {@link ComponentLoader.onBeforeShow} and {@link ComponentLoader.onShown} events.
|
|
73
|
+
*
|
|
74
|
+
* @param options - {@link ComponentLoaderOptions}.
|
|
75
|
+
* @returns A reference to the created content.
|
|
76
|
+
*/
|
|
77
|
+
show(options?: ComponentLoaderOptions): ComponentRef<T> | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Removes attached component from dom.
|
|
80
|
+
* @remarks
|
|
81
|
+
* Also triggers the {@link ComponentLoader.onBeforeHide} and {@link ComponentLoader.onHidden} events.
|
|
82
|
+
*
|
|
83
|
+
* @param id - If provided it is returned through the {@link ComponentLoader.onHidden}.
|
|
84
|
+
* @returns Current instance of {@link ComponentLoader}
|
|
85
|
+
*/
|
|
86
|
+
hide(id?: number | string, result?: any): ComponentLoader<T>;
|
|
87
|
+
getInnerComponent(): ComponentRef<T> | undefined;
|
|
88
|
+
private markComponentsForCheck;
|
|
89
|
+
private createComponentAndAttachToView;
|
|
90
|
+
private appendContentToContainer;
|
|
91
|
+
private getContentRef;
|
|
92
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ComponentLoader } from './component-loader.class';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Use to create instances of {@link ComponentLoader}.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class ComponentLoaderFactory {
|
|
10
|
+
private componentFactoryResolver;
|
|
11
|
+
private injector;
|
|
12
|
+
private applicationRef;
|
|
13
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector, applicationRef: ApplicationRef);
|
|
14
|
+
/**
|
|
15
|
+
* Returns a new instance of {@link ComponentLoader}
|
|
16
|
+
* @param viewContainerRef - The view container the dynamic content will be attached to.
|
|
17
|
+
* @returns A new instance of {@link ComponentLoader}.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
createLoader<T>(viewContainerRef?: ViewContainerRef): ComponentLoader<T>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentLoaderFactory, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentLoaderFactory>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentRef, ViewRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Holds information about the dynamic content.
|
|
4
|
+
* @remarks
|
|
5
|
+
* `ComponentRef` is undefined in the case content is of `TemplateRef` type.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ContentRef {
|
|
8
|
+
nodes: any[];
|
|
9
|
+
viewRef?: ViewRef | undefined;
|
|
10
|
+
componentRef?: ComponentRef<any> | undefined;
|
|
11
|
+
constructor(nodes: any[], viewRef?: ViewRef | undefined, componentRef?: ComponentRef<any> | undefined);
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Background layer for modals.
|
|
5
|
+
* Override class name to theme it.
|
|
6
|
+
* @see {@link cssClassNames}
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class ModalBackdropComponent implements OnInit {
|
|
10
|
+
private element;
|
|
11
|
+
private renderer;
|
|
12
|
+
private animationsEnabled;
|
|
13
|
+
private backdropLoader;
|
|
14
|
+
constructor(element: ElementRef, renderer: Renderer2);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
hide(): void;
|
|
17
|
+
reflow(element: any): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalBackdropComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalBackdropComponent, "lib-modal-backdrop", never, {}, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ModalOptions } from './modal-options.class';
|
|
3
|
+
import { ModalService } from './modal-service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Modal container component.
|
|
7
|
+
* @remarks
|
|
8
|
+
* All dynamic content `TemplateRef` or `Component` case will be drawn inside this.
|
|
9
|
+
* You can override css classes to theme it {@link cssClassNames}
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare class ModalContainerComponent implements OnInit, OnDestroy {
|
|
13
|
+
protected _element: ElementRef;
|
|
14
|
+
private renderer;
|
|
15
|
+
level?: number;
|
|
16
|
+
config: ModalOptions;
|
|
17
|
+
modalService?: ModalService;
|
|
18
|
+
private isShown;
|
|
19
|
+
private animationsEnabled;
|
|
20
|
+
private isModalHiding;
|
|
21
|
+
private clickStartedInContent;
|
|
22
|
+
constructor(options: ModalOptions, _element: ElementRef, renderer: Renderer2);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
onClickStarted(event: MouseEvent): void;
|
|
25
|
+
onClickStop(event: MouseEvent): void;
|
|
26
|
+
onPopState(): void;
|
|
27
|
+
onEsc(event: KeyboardEvent): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
hide(result?: any): void;
|
|
30
|
+
private _hide;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "lib-modal-container", never, {}, {}, never, ["*"]>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { InjectionToken, StaticProvider } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Modals option can be passed to a specific modal from {@link ModalService.show} or
|
|
5
|
+
* set globbaly using the injection token {@link MODAL_CONFIG_DEFAULT_OVERRIDE}.
|
|
6
|
+
* @remarks
|
|
7
|
+
* Modal specific options are merged with global options.
|
|
8
|
+
* @see {@link modalConfigDefaults} for defaults.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare class ModalOptions<T = Record<string, unknown>> {
|
|
12
|
+
/**
|
|
13
|
+
* Id for opened modal. If not set a random one is generated.
|
|
14
|
+
*/
|
|
15
|
+
id?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* If static is set the modal will not close when clicking outside of modal.
|
|
18
|
+
* @remarks
|
|
19
|
+
* Keyboard event (escape key) stills applies. If you must get a result then also set keyboard to false.
|
|
20
|
+
*/
|
|
21
|
+
backdrop?: boolean | 'static';
|
|
22
|
+
/**
|
|
23
|
+
* Closes the modal when escape key is pressed.
|
|
24
|
+
*/
|
|
25
|
+
keyboard?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Shows the modal when initialized.
|
|
28
|
+
*/
|
|
29
|
+
show?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Ignore the backdrop click. Pretty much the same as backdrop static.
|
|
32
|
+
*/
|
|
33
|
+
ignoreBackdropClick?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Css class for opened modal.
|
|
36
|
+
*/
|
|
37
|
+
class?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Toggle animation.
|
|
40
|
+
*/
|
|
41
|
+
animated?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Modal initial data.
|
|
44
|
+
* @remarks
|
|
45
|
+
* This data must be known properties of content component.
|
|
46
|
+
*/
|
|
47
|
+
initialState?: Partial<T>;
|
|
48
|
+
/**
|
|
49
|
+
* Function to intercept the closure.
|
|
50
|
+
* @remarks
|
|
51
|
+
* You can use to catch the close event and even prevent it from closing.
|
|
52
|
+
*/
|
|
53
|
+
closeInterceptor?: CloseInterceptorFn;
|
|
54
|
+
/**
|
|
55
|
+
* Modal static providers.
|
|
56
|
+
* @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
|
|
57
|
+
*/
|
|
58
|
+
providers?: StaticProvider[];
|
|
59
|
+
/**
|
|
60
|
+
* aria-labelledby attribute value to set on the modal window.
|
|
61
|
+
*/
|
|
62
|
+
ariaLabelledBy?: string;
|
|
63
|
+
/**
|
|
64
|
+
* aria-describedby attribute value to set on the modal window.
|
|
65
|
+
*/
|
|
66
|
+
ariaDescribedby?: string;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalOptions<any>, never>;
|
|
68
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalOptions<any>>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Default option values.
|
|
72
|
+
*/
|
|
73
|
+
export declare const modalConfigDefaults: ModalOptions;
|
|
74
|
+
/**
|
|
75
|
+
* Use this injection token to set global options.
|
|
76
|
+
*/
|
|
77
|
+
export declare const MODAL_CONFIG_DEFAULT_OVERRIDE: InjectionToken<ModalOptions>;
|
|
78
|
+
/**
|
|
79
|
+
* Close interceptor promise.
|
|
80
|
+
*/
|
|
81
|
+
export declare type CloseInterceptorFn = () => Promise<void>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { OnDestroy, RendererFactory2, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ModalContainerComponent } from './modal-container-component';
|
|
3
|
+
import { ModalOptions } from './modal-options.class';
|
|
4
|
+
import { Modal } from './modal.class';
|
|
5
|
+
import { ComponentLoaderFactory } from '../component-loader/component-loader.factory';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A service for using modals.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare class ModalService implements OnDestroy {
|
|
13
|
+
private clf;
|
|
14
|
+
private document;
|
|
15
|
+
private onBeforeShow;
|
|
16
|
+
private onShown;
|
|
17
|
+
private onBeforeHide;
|
|
18
|
+
private onHidden;
|
|
19
|
+
private backdropRef?;
|
|
20
|
+
private defaultConfig;
|
|
21
|
+
private backdropLoader;
|
|
22
|
+
private loaders;
|
|
23
|
+
private renderer;
|
|
24
|
+
private modalsCount;
|
|
25
|
+
private initialPadding;
|
|
26
|
+
constructor(clf: ComponentLoaderFactory, rendererFactory: RendererFactory2, document: any, modalDefaultOption: ModalOptions);
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Opens a new modal.
|
|
30
|
+
*
|
|
31
|
+
* @param content - `Component` or `TemplateRef` type.
|
|
32
|
+
* @param config - Specific {@link ModalOptions | options} for this modal. Global and specific options are merged.
|
|
33
|
+
* @returns An instance of {@link Modal}
|
|
34
|
+
*/
|
|
35
|
+
show<T>(content: string | TemplateRef<any> | {
|
|
36
|
+
new (...args: any[]): T;
|
|
37
|
+
}, config?: ModalOptions<T>): Modal<T>;
|
|
38
|
+
/**
|
|
39
|
+
* Hide an active modal.
|
|
40
|
+
* @param id - Id of modal to hide. If not provided all active modals are hidden.
|
|
41
|
+
* @param result - A result to be sent to observers.
|
|
42
|
+
*/
|
|
43
|
+
hide(id?: number | string, result?: any): void;
|
|
44
|
+
getActiveModal(): ModalContainerComponent;
|
|
45
|
+
private showModal;
|
|
46
|
+
private hideModal;
|
|
47
|
+
private showBackdrop;
|
|
48
|
+
private hideBackdrop;
|
|
49
|
+
private removeLoaders;
|
|
50
|
+
private addBodyPadding;
|
|
51
|
+
private revertScrollbar;
|
|
52
|
+
private getScrollbarWidth;
|
|
53
|
+
private isScrollBarPresent;
|
|
54
|
+
private createLoaders;
|
|
55
|
+
private copyEvent;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, [null, null, null, { optional: true; }]>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Modal class.
|
|
5
|
+
* @remarks
|
|
6
|
+
* This is returned from {@link ModalService.show}.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class Modal<T = any> {
|
|
10
|
+
/**
|
|
11
|
+
* Event that is fired when the modal behind the ref starts hiding.
|
|
12
|
+
* @returns
|
|
13
|
+
* Modal component instance.
|
|
14
|
+
*/
|
|
15
|
+
onBeforeHide?: Subject<unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Event that is fired when the modal behind the ref finishes hiding.
|
|
18
|
+
* @returns
|
|
19
|
+
* An object containing the id of the closed modal and result.
|
|
20
|
+
*/
|
|
21
|
+
onHidden?: Subject<unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* Id of this modal.
|
|
24
|
+
*/
|
|
25
|
+
id?: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* Reference to a component inside the modal. Null if modal's been created with TemplateRef.
|
|
28
|
+
* @remarks
|
|
29
|
+
* You can use this to do nasty stuff with opened modal instance.
|
|
30
|
+
*/
|
|
31
|
+
content?: T;
|
|
32
|
+
/**
|
|
33
|
+
* Hides the modal
|
|
34
|
+
* @param result - A result to the observers.
|
|
35
|
+
*/
|
|
36
|
+
hide: (result?: any) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Sets new class to modal window.
|
|
39
|
+
*/
|
|
40
|
+
setClass: (newClass: string) => void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Modal<any>, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Modal<any>>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Toast, ToastType } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ToasterService {
|
|
5
|
+
private subject;
|
|
6
|
+
toast$: Observable<Toast>;
|
|
7
|
+
constructor();
|
|
8
|
+
show(type: ToastType, title?: string, body?: string, delay?: number): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToasterService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToasterService>;
|
|
11
|
+
}
|
package/lib/tokens.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { IAppLinks, IShellConfig } from './types';
|
|
3
|
+
export declare const APP_LINKS: InjectionToken<IAppLinks>;
|
|
4
|
+
export declare const APP_NOTIFICATIONS: InjectionToken<IAppLinks>;
|
|
5
|
+
export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
|