@indice/ng-components 0.2.174 → 0.3.0
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/_styles.scss +63 -15
- package/{esm2020 → esm2022}/indice-ng-components.mjs +4 -4
- package/esm2022/lib/controls/advanced-search/advanced-search.component.mjs +156 -0
- package/esm2022/lib/controls/advanced-search/models.mjs +109 -0
- package/esm2022/lib/controls/avatar-initials/avatar-initials.component.mjs +48 -0
- package/{esm2020 → esm2022}/lib/controls/breadcrumb/breadcrumb-item.mjs +14 -14
- package/{esm2020 → esm2022}/lib/controls/breadcrumb/breadcrumb.component.mjs +26 -26
- package/{esm2020 → esm2022}/lib/controls/collapsible-panel/collapsible-panel.component.mjs +20 -20
- package/esm2022/lib/controls/combobox/combobox.component.mjs +121 -0
- package/esm2022/lib/controls/content-tile/content-tile-header/content-tile-header.component.mjs +17 -0
- package/esm2022/lib/controls/content-tile/content-tile-item/content-tile-item.component.mjs +19 -0
- package/esm2022/lib/controls/content-tile/content-tile.component.mjs +63 -0
- package/esm2022/lib/controls/date-picker/date-picker.component.mjs +300 -0
- package/esm2022/lib/controls/drop-down-menu/drop-down-menu.component.mjs +72 -0
- package/{esm2020 → esm2022}/lib/controls/kpi-tile/kpi-tile.component.mjs +43 -43
- package/esm2022/lib/controls/language-selection/language-selection.component.mjs +31 -0
- package/{esm2020 → esm2022}/lib/controls/list-view/list-column.component.mjs +25 -25
- package/{esm2020 → esm2022}/lib/controls/list-view/list-details-section.component.mjs +17 -17
- package/{esm2020 → esm2022}/lib/controls/list-view/list-tile.component.mjs +17 -17
- package/esm2022/lib/controls/list-view/list-view-empty-state.component.mjs +29 -0
- package/esm2022/lib/controls/list-view/list-view.component.mjs +210 -0
- package/{esm2020 → esm2022}/lib/controls/nav-links-list/nav-links-list.component.mjs +54 -54
- package/esm2022/lib/controls/notifications-indicator/notifications-indicator.component.mjs +79 -0
- package/esm2022/lib/controls/pager/pager.component.mjs +130 -0
- package/esm2022/lib/controls/progress-bar/progress-bar.component.mjs +46 -0
- package/esm2022/lib/controls/side-pane/side-pane.component.mjs +87 -0
- package/esm2022/lib/controls/skeleton-loader/skeleton-loader.component.mjs +29 -0
- package/esm2022/lib/controls/stats-grid/stats-grid.component.mjs +49 -0
- package/{esm2020 → esm2022}/lib/controls/stepper/lib-step-info.directive.mjs +16 -16
- package/{esm2020 → esm2022}/lib/controls/stepper/lib-step-label.directive.mjs +16 -16
- package/esm2022/lib/controls/stepper/lib-step.component.mjs +81 -0
- package/esm2022/lib/controls/stepper/lib-stepper.component.mjs +108 -0
- package/{esm2020 → esm2022}/lib/controls/stepper/types/step-selected-event.mjs +3 -3
- package/{esm2020 → esm2022}/lib/controls/stepper/types/stepper-type.mjs +11 -11
- package/esm2022/lib/controls/tabs/lib-tab-group.component.mjs +66 -0
- package/{esm2020 → esm2022}/lib/controls/tabs/lib-tab-label.directive.mjs +16 -16
- package/{esm2020 → esm2022}/lib/controls/tabs/lib-tab.component.mjs +57 -57
- package/{esm2020 → esm2022}/lib/controls/toaster/toaster-container.component.mjs +28 -28
- package/{esm2020 → esm2022}/lib/controls/toaster/toaster.component.mjs +31 -31
- package/esm2022/lib/controls/toggle/toggle.component.mjs +64 -0
- package/esm2022/lib/controls/toggle-button/toggle-button.component.mjs +87 -0
- package/esm2022/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +34 -0
- package/esm2022/lib/controls/user-profile-menu/user-profile-menu.component.mjs +71 -0
- package/esm2022/lib/directives/click-outside.directive.mjs +189 -0
- package/{esm2020 → esm2022}/lib/directives/dynamic-component-host.directive.mjs +17 -17
- package/esm2022/lib/helpers/base-list.component.mjs +230 -0
- package/esm2022/lib/icons.mjs +36 -0
- package/{esm2020 → esm2022}/lib/layouts/shell/shell-footer/shell-footer.component.mjs +19 -19
- package/esm2022/lib/layouts/shell/shell-header/shell-header.component.mjs +130 -0
- package/esm2022/lib/layouts/shell/shell-layout/shell-layout.component.mjs +90 -0
- package/{esm2020 → esm2022}/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +54 -54
- package/{esm2020 → esm2022}/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.mjs +45 -45
- package/esm2022/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +30 -0
- package/{esm2020 → esm2022}/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.mjs +20 -20
- package/esm2022/lib/layouts/views/form-layout/form-layout.component.mjs +86 -0
- package/esm2022/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +101 -0
- package/esm2022/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +106 -0
- package/esm2022/lib/layouts/views/view-layout/view-layout.component.mjs +104 -0
- package/esm2022/lib/ng-components.module.mjs +320 -0
- package/esm2022/lib/pages/auth/auth-callback/auth-callback.component.mjs +30 -0
- package/esm2022/lib/pages/auth/auth-renew/auth-renew.component.mjs +31 -0
- package/{esm2020 → esm2022}/lib/pages/auth/logged-out/logged-out.component.mjs +28 -28
- package/{esm2020 → esm2022}/lib/pages/http-status/error/error.component.mjs +17 -17
- package/{esm2020 → esm2022}/lib/pages/http-status/page-not-found/page-not-found.component.mjs +15 -15
- package/{esm2020 → esm2022}/lib/pages/http-status/unauthorized/unauthorized.component.mjs +14 -14
- package/esm2022/lib/pipes/address.pipe.mjs +21 -0
- package/esm2022/lib/pipes/duration-format.pipe.mjs +64 -0
- package/esm2022/lib/pipes/short-number.pipe.mjs +43 -0
- package/esm2022/lib/services/breadcrumb.service.mjs +174 -0
- package/{esm2020 → esm2022}/lib/services/component-loader/component-loader-options.class.mjs +7 -7
- package/esm2022/lib/services/component-loader/component-loader.class.mjs +188 -0
- package/esm2022/lib/services/component-loader/component-loader.factory.mjs +32 -0
- package/{esm2020 → esm2022}/lib/services/component-loader/content-ref.class.mjs +12 -12
- package/esm2022/lib/services/modal-service/modal-backdrop-component.mjs +44 -0
- package/esm2022/lib/services/modal-service/modal-container-component.mjs +126 -0
- package/{esm2020 → esm2022}/lib/services/modal-service/modal-options.class.mjs +35 -35
- package/esm2022/lib/services/modal-service/modal-service.mjs +220 -0
- package/{esm2020 → esm2022}/lib/services/modal-service/modal-styles.class.mjs +10 -10
- package/{esm2020 → esm2022}/lib/services/modal-service/modal.class.mjs +27 -27
- package/{esm2020 → esm2022}/lib/services/toaster.service.mjs +26 -26
- package/esm2022/lib/services/user-settings.service.mjs +35 -0
- package/esm2022/lib/services/utilities.service.mjs +47 -0
- package/{esm2020 → esm2022}/lib/tokens.mjs +7 -7
- package/esm2022/lib/types.mjs +133 -0
- package/{esm2020 → esm2022}/public-api.mjs +78 -70
- package/{fesm2020 → fesm2022}/indice-ng-components.mjs +4898 -4592
- package/fesm2022/indice-ng-components.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/controls/advanced-search/advanced-search.component.d.ts +40 -40
- package/lib/controls/advanced-search/models.d.ts +91 -91
- package/lib/controls/avatar-initials/avatar-initials.component.d.ts +14 -14
- package/lib/controls/breadcrumb/breadcrumb-item.d.ts +7 -7
- package/lib/controls/breadcrumb/breadcrumb.component.d.ts +12 -12
- package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +10 -10
- package/lib/controls/combobox/combobox.component.d.ts +35 -34
- package/lib/controls/content-tile/content-tile-header/content-tile-header.component.d.ts +7 -0
- package/lib/controls/content-tile/content-tile-item/content-tile-item.component.d.ts +8 -0
- package/lib/controls/content-tile/content-tile.component.d.ts +23 -0
- package/lib/controls/date-picker/date-picker.component.d.ts +53 -53
- package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +26 -26
- package/lib/controls/kpi-tile/kpi-tile.component.d.ts +15 -15
- package/lib/controls/language-selection/language-selection.component.d.ts +14 -14
- package/lib/controls/list-view/list-column.component.d.ts +9 -9
- package/lib/controls/list-view/list-details-section.component.d.ts +7 -7
- package/lib/controls/list-view/list-tile.component.d.ts +7 -7
- package/lib/controls/list-view/list-view-empty-state.component.d.ts +11 -11
- package/lib/controls/list-view/list-view.component.d.ts +62 -61
- package/lib/controls/nav-links-list/nav-links-list.component.d.ts +21 -21
- package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +22 -22
- package/lib/controls/pager/pager.component.d.ts +36 -36
- package/lib/controls/progress-bar/progress-bar.component.d.ts +16 -0
- package/lib/controls/side-pane/side-pane.component.d.ts +22 -18
- package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +12 -11
- package/lib/controls/stats-grid/stats-grid.component.d.ts +16 -0
- package/lib/controls/stepper/lib-step-info.directive.d.ts +8 -8
- package/lib/controls/stepper/lib-step-label.directive.d.ts +8 -8
- package/lib/controls/stepper/lib-step.component.d.ts +34 -34
- package/lib/controls/stepper/lib-stepper.component.d.ts +43 -43
- package/lib/controls/stepper/types/step-selected-event.d.ts +12 -12
- package/lib/controls/stepper/types/stepper-type.d.ts +10 -10
- package/lib/controls/tabs/lib-tab-group.component.d.ts +21 -21
- package/lib/controls/tabs/lib-tab-label.directive.d.ts +8 -8
- package/lib/controls/tabs/lib-tab.component.d.ts +24 -24
- package/lib/controls/toaster/toaster-container.component.d.ts +13 -13
- package/lib/controls/toaster/toaster.component.d.ts +15 -15
- package/lib/controls/toggle/toggle.component.d.ts +19 -19
- package/lib/controls/toggle-button/toggle-button.component.d.ts +25 -25
- package/lib/controls/toggle-buttons-list/toggle-buttons-list.component.d.ts +15 -14
- package/lib/controls/user-profile-menu/user-profile-menu.component.d.ts +24 -24
- package/lib/directives/click-outside.directive.d.ts +40 -40
- package/lib/directives/dynamic-component-host.directive.d.ts +9 -9
- package/lib/helpers/base-list.component.d.ts +54 -53
- package/lib/icons.d.ts +34 -34
- package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +8 -8
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +39 -39
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +26 -26
- package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +20 -20
- package/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.d.ts +14 -14
- package/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.d.ts +15 -15
- package/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.d.ts +10 -10
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +26 -24
- package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +42 -42
- package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +29 -28
- package/lib/layouts/views/view-layout/view-layout.component.d.ts +31 -31
- package/lib/ng-components.module.d.ts +71 -65
- package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +13 -13
- package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +12 -12
- package/lib/pages/auth/logged-out/logged-out.component.d.ts +12 -12
- package/lib/pages/http-status/error/error.component.d.ts +8 -8
- package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +8 -8
- package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +8 -8
- package/lib/pipes/address.pipe.d.ts +8 -8
- package/lib/pipes/duration-format.pipe.d.ts +8 -8
- package/lib/pipes/short-number.pipe.d.ts +7 -0
- package/lib/services/breadcrumb.service.d.ts +29 -29
- package/lib/services/component-loader/component-loader-options.class.d.ts +30 -30
- package/lib/services/component-loader/component-loader.class.d.ts +92 -92
- package/lib/services/component-loader/component-loader.factory.d.ts +24 -24
- package/lib/services/component-loader/content-ref.class.d.ts +12 -12
- package/lib/services/modal-service/modal-backdrop-component.d.ts +20 -20
- package/lib/services/modal-service/modal-container-component.d.ts +33 -33
- package/lib/services/modal-service/modal-options.class.d.ts +81 -81
- package/lib/services/modal-service/modal-service.d.ts +58 -58
- package/lib/services/modal-service/modal-styles.class.d.ts +10 -10
- package/lib/services/modal-service/modal.class.d.ts +43 -43
- package/lib/services/toaster.service.d.ts +11 -11
- package/lib/services/user-settings.service.d.ts +13 -13
- package/lib/services/utilities.service.d.ts +11 -11
- package/lib/tokens.d.ts +10 -10
- package/lib/types.d.ts +179 -177
- package/package.json +14 -21
- package/public-api.d.ts +68 -60
- package/esm2020/lib/controls/advanced-search/advanced-search.component.mjs +0 -156
- package/esm2020/lib/controls/advanced-search/models.mjs +0 -109
- package/esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs +0 -48
- package/esm2020/lib/controls/combobox/combobox.component.mjs +0 -117
- package/esm2020/lib/controls/date-picker/date-picker.component.mjs +0 -292
- package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +0 -72
- package/esm2020/lib/controls/language-selection/language-selection.component.mjs +0 -31
- package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +0 -29
- package/esm2020/lib/controls/list-view/list-view.component.mjs +0 -206
- package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +0 -79
- package/esm2020/lib/controls/pager/pager.component.mjs +0 -130
- package/esm2020/lib/controls/side-pane/side-pane.component.mjs +0 -72
- package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +0 -25
- package/esm2020/lib/controls/stepper/lib-step.component.mjs +0 -81
- package/esm2020/lib/controls/stepper/lib-stepper.component.mjs +0 -108
- package/esm2020/lib/controls/tabs/lib-tab-group.component.mjs +0 -66
- package/esm2020/lib/controls/toggle/toggle.component.mjs +0 -64
- package/esm2020/lib/controls/toggle-button/toggle-button.component.mjs +0 -87
- package/esm2020/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +0 -31
- package/esm2020/lib/controls/user-profile-menu/user-profile-menu.component.mjs +0 -71
- package/esm2020/lib/directives/click-outside.directive.mjs +0 -189
- package/esm2020/lib/helpers/base-list.component.mjs +0 -226
- package/esm2020/lib/icons.mjs +0 -36
- package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +0 -130
- package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +0 -90
- package/esm2020/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +0 -30
- package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +0 -80
- package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +0 -101
- package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +0 -98
- package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +0 -104
- package/esm2020/lib/ng-components.module.mjs +0 -288
- package/esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs +0 -30
- package/esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs +0 -31
- package/esm2020/lib/pipes/address.pipe.mjs +0 -21
- package/esm2020/lib/pipes/duration-format.pipe.mjs +0 -64
- package/esm2020/lib/services/breadcrumb.service.mjs +0 -174
- package/esm2020/lib/services/component-loader/component-loader.class.mjs +0 -188
- package/esm2020/lib/services/component-loader/component-loader.factory.mjs +0 -32
- package/esm2020/lib/services/modal-service/modal-backdrop-component.mjs +0 -44
- package/esm2020/lib/services/modal-service/modal-container-component.mjs +0 -126
- package/esm2020/lib/services/modal-service/modal-service.mjs +0 -220
- package/esm2020/lib/services/user-settings.service.mjs +0 -35
- package/esm2020/lib/services/utilities.service.mjs +0 -47
- package/esm2020/lib/types.mjs +0 -132
- package/fesm2015/indice-ng-components.mjs +0 -4852
- package/fesm2015/indice-ng-components.mjs.map +0 -1
- package/fesm2020/indice-ng-components.mjs.map +0 -1
|
@@ -1,30 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,92 +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
|
-
}
|
|
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 extends object> {
|
|
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
|
+
}
|
|
@@ -1,24 +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
|
-
}
|
|
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 extends object>(viewContainerRef?: ViewContainerRef): ComponentLoader<T>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentLoaderFactory, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentLoaderFactory>;
|
|
24
|
+
}
|
|
@@ -1,12 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,20 +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, false>;
|
|
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, false, never>;
|
|
20
|
+
}
|
|
@@ -1,33 +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, ["*"], false>;
|
|
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, ["*"], false, never>;
|
|
33
|
+
}
|
|
@@ -1,81 +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
|
|
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 type CloseInterceptorFn = () => Promise<void>;
|