@indice/ng-components 0.2.32 → 0.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +4 -4
  2. package/_styles.css +3457 -3457
  3. package/bundles/indice-ng-components.umd.js +3204 -3198
  4. package/bundles/indice-ng-components.umd.js.map +1 -1
  5. package/esm2015/indice-ng-components.js +6 -6
  6. package/esm2015/lib/controls/avatar-initials/avatar-initials.component.js +47 -47
  7. package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +20 -20
  8. package/esm2015/lib/controls/date-picker/date-picker.component.js +217 -217
  9. package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +62 -62
  10. package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +32 -32
  11. package/esm2015/lib/controls/list-view/list-column.component.js +19 -19
  12. package/esm2015/lib/controls/list-view/list-details-section.component.js +14 -14
  13. package/esm2015/lib/controls/list-view/list-tile.component.js +14 -14
  14. package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +25 -25
  15. package/esm2015/lib/controls/list-view/list-view.component.js +133 -133
  16. package/esm2015/lib/controls/pager/pager.component.js +114 -114
  17. package/esm2015/lib/controls/side-pane/side-pane.component.js +71 -71
  18. package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +25 -25
  19. package/esm2015/lib/controls/toaster/toaster-container.component.js +28 -28
  20. package/esm2015/lib/controls/toaster/toaster.component.js +29 -29
  21. package/esm2015/lib/controls/toggle/toggle.component.js +56 -56
  22. package/esm2015/lib/directives/click-outside.directive.js +181 -181
  23. package/esm2015/lib/directives/dynamic-component-host.directive.js +17 -17
  24. package/esm2015/lib/helpers/base-list.component.js +182 -182
  25. package/esm2015/lib/icons.js +30 -30
  26. package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +17 -17
  27. package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +98 -98
  28. package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +92 -92
  29. package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +72 -72
  30. package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +47 -47
  31. package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +73 -73
  32. package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +87 -87
  33. package/esm2015/lib/ng-components.module.js +133 -133
  34. package/esm2015/lib/pages/auth/auth-callback/auth-callback.component.js +74 -74
  35. package/esm2015/lib/pages/auth/auth-renew/auth-renew.component.js +25 -25
  36. package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +26 -26
  37. package/esm2015/lib/pages/http-status/error/error.component.js +15 -15
  38. package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +14 -14
  39. package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +22 -22
  40. package/esm2015/lib/pipes/address.pipe.js +17 -17
  41. package/esm2015/lib/pipes/duration-format.pipe.js +60 -60
  42. package/esm2015/lib/services/component-loader/component-loader-options.class.js +8 -8
  43. package/esm2015/lib/services/component-loader/component-loader.class.js +192 -192
  44. package/esm2015/lib/services/component-loader/component-loader.factory.js +35 -35
  45. package/esm2015/lib/services/component-loader/content-ref.class.js +13 -13
  46. package/esm2015/lib/services/modal-service/modal-backdrop-component.js +44 -44
  47. package/esm2015/lib/services/modal-service/modal-container-component.js +117 -117
  48. package/esm2015/lib/services/modal-service/modal-options.class.js +31 -31
  49. package/esm2015/lib/services/modal-service/modal-service.js +214 -214
  50. package/esm2015/lib/services/modal-service/modal-styles.class.js +11 -11
  51. package/esm2015/lib/services/modal-service/modal.class.js +24 -24
  52. package/esm2015/lib/services/toaster.service.js +23 -23
  53. package/esm2015/lib/tokens.js +4 -4
  54. package/esm2015/lib/types.js +104 -104
  55. package/esm2015/public-api.js +53 -53
  56. package/fesm2015/indice-ng-components.js +2758 -2758
  57. package/fesm2015/indice-ng-components.js.map +1 -1
  58. package/indice-ng-components.d.ts +6 -6
  59. package/indice-ng-components.metadata.json +1 -1
  60. package/lib/controls/avatar-initials/avatar-initials.component.d.ts +11 -11
  61. package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +7 -7
  62. package/lib/controls/date-picker/date-picker.component.d.ts +43 -43
  63. package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +22 -22
  64. package/lib/controls/kpi-tile/kpi-tile.component.d.ts +10 -10
  65. package/lib/controls/list-view/list-column.component.d.ts +6 -6
  66. package/lib/controls/list-view/list-details-section.component.d.ts +4 -4
  67. package/lib/controls/list-view/list-tile.component.d.ts +4 -4
  68. package/lib/controls/list-view/list-view-empty-state.component.d.ts +8 -8
  69. package/lib/controls/list-view/list-view.component.d.ts +50 -50
  70. package/lib/controls/pager/pager.component.d.ts +32 -32
  71. package/lib/controls/side-pane/side-pane.component.d.ts +15 -15
  72. package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +8 -8
  73. package/lib/controls/toaster/toaster-container.component.d.ts +10 -10
  74. package/lib/controls/toaster/toaster.component.d.ts +12 -12
  75. package/lib/controls/toggle/toggle.component.d.ts +16 -16
  76. package/lib/directives/click-outside.directive.d.ts +37 -37
  77. package/lib/directives/dynamic-component-host.directive.d.ts +6 -6
  78. package/lib/helpers/base-list.component.d.ts +39 -39
  79. package/lib/icons.d.ts +28 -28
  80. package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +5 -5
  81. package/lib/layouts/shell/shell-header/shell-header.component.d.ts +33 -33
  82. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +23 -23
  83. package/lib/layouts/views/form-layout/form-layout.component.d.ts +21 -21
  84. package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +22 -22
  85. package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +24 -24
  86. package/lib/layouts/views/view-layout/view-layout.component.d.ts +27 -27
  87. package/lib/ng-components.module.d.ts +7 -7
  88. package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +11 -11
  89. package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +9 -9
  90. package/lib/pages/auth/logged-out/logged-out.component.d.ts +9 -9
  91. package/lib/pages/http-status/error/error.component.d.ts +5 -5
  92. package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +5 -5
  93. package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +8 -8
  94. package/lib/pipes/address.pipe.d.ts +5 -5
  95. package/lib/pipes/duration-format.pipe.d.ts +5 -5
  96. package/lib/services/component-loader/component-loader-options.class.d.ts +30 -30
  97. package/lib/services/component-loader/component-loader.class.d.ts +92 -92
  98. package/lib/services/component-loader/component-loader.factory.d.ts +21 -21
  99. package/lib/services/component-loader/content-ref.class.d.ts +12 -12
  100. package/lib/services/modal-service/modal-backdrop-component.d.ts +17 -17
  101. package/lib/services/modal-service/modal-container-component.d.ts +30 -30
  102. package/lib/services/modal-service/modal-options.class.d.ts +77 -77
  103. package/lib/services/modal-service/modal-service.d.ts +55 -55
  104. package/lib/services/modal-service/modal-styles.class.d.ts +10 -10
  105. package/lib/services/modal-service/modal.class.d.ts +40 -40
  106. package/lib/services/toaster.service.d.ts +8 -8
  107. package/lib/tokens.d.ts +4 -4
  108. package/lib/types.d.ts +124 -124
  109. package/modal.css +157 -157
  110. package/package.json +1 -1
  111. package/public-api.d.ts +41 -41
@@ -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> {
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,21 +1,21 @@
1
- import { ApplicationRef, ComponentFactoryResolver, Injector, ViewContainerRef } from '@angular/core';
2
- import { ComponentLoader } from './component-loader.class';
3
- /**
4
- * Use to create instances of {@link ComponentLoader}.
5
- *
6
- * @public
7
- */
8
- export declare class ComponentLoaderFactory {
9
- private componentFactoryResolver;
10
- private injector;
11
- private applicationRef;
12
- constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector, applicationRef: ApplicationRef);
13
- /**
14
- * Returns a new instance of {@link ComponentLoader}
15
- * @param viewContainerRef - The view container the dynamic content will be attached to.
16
- * @returns A new instance of {@link ComponentLoader}.
17
- *
18
- * @public
19
- */
20
- createLoader<T>(viewContainerRef?: ViewContainerRef): ComponentLoader<T>;
21
- }
1
+ import { ApplicationRef, ComponentFactoryResolver, Injector, ViewContainerRef } from '@angular/core';
2
+ import { ComponentLoader } from './component-loader.class';
3
+ /**
4
+ * Use to create instances of {@link ComponentLoader}.
5
+ *
6
+ * @public
7
+ */
8
+ export declare class ComponentLoaderFactory {
9
+ private componentFactoryResolver;
10
+ private injector;
11
+ private applicationRef;
12
+ constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector, applicationRef: ApplicationRef);
13
+ /**
14
+ * Returns a new instance of {@link ComponentLoader}
15
+ * @param viewContainerRef - The view container the dynamic content will be attached to.
16
+ * @returns A new instance of {@link ComponentLoader}.
17
+ *
18
+ * @public
19
+ */
20
+ createLoader<T>(viewContainerRef?: ViewContainerRef): ComponentLoader<T>;
21
+ }
@@ -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,17 +1,17 @@
1
- import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
- /**
3
- * Background layer for modals.
4
- * Override class name to theme it.
5
- * @see {@link cssClassNames}
6
- * @internal
7
- */
8
- export declare class ModalBackdropComponent implements OnInit {
9
- private element;
10
- private renderer;
11
- private animationsEnabled;
12
- private backdropLoader;
13
- constructor(element: ElementRef, renderer: Renderer2);
14
- ngOnInit(): void;
15
- hide(): void;
16
- reflow(element: any): void;
17
- }
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ /**
3
+ * Background layer for modals.
4
+ * Override class name to theme it.
5
+ * @see {@link cssClassNames}
6
+ * @internal
7
+ */
8
+ export declare class ModalBackdropComponent implements OnInit {
9
+ private element;
10
+ private renderer;
11
+ private animationsEnabled;
12
+ private backdropLoader;
13
+ constructor(element: ElementRef, renderer: Renderer2);
14
+ ngOnInit(): void;
15
+ hide(): void;
16
+ reflow(element: any): void;
17
+ }
@@ -1,30 +1,30 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { ModalOptions } from './modal-options.class';
3
- import { ModalService } from './modal-service';
4
- /**
5
- * Modal container component.
6
- * @remarks
7
- * All dynamic content `TemplateRef` or `Component` case will be drawn inside this.
8
- * You can override css classes to theme it {@link cssClassNames}
9
- * @internal
10
- */
11
- export declare class ModalContainerComponent implements OnInit, OnDestroy {
12
- protected _element: ElementRef;
13
- private renderer;
14
- level?: number;
15
- config: ModalOptions;
16
- modalService?: ModalService;
17
- private isShown;
18
- private animationsEnabled;
19
- private isModalHiding;
20
- private clickStartedInContent;
21
- constructor(options: ModalOptions, _element: ElementRef, renderer: Renderer2);
22
- ngOnInit(): void;
23
- onClickStarted(event: MouseEvent): void;
24
- onClickStop(event: MouseEvent): void;
25
- onPopState(): void;
26
- onEsc(event: KeyboardEvent): void;
27
- ngOnDestroy(): void;
28
- hide(result?: any): void;
29
- private _hide;
30
- }
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { ModalOptions } from './modal-options.class';
3
+ import { ModalService } from './modal-service';
4
+ /**
5
+ * Modal container component.
6
+ * @remarks
7
+ * All dynamic content `TemplateRef` or `Component` case will be drawn inside this.
8
+ * You can override css classes to theme it {@link cssClassNames}
9
+ * @internal
10
+ */
11
+ export declare class ModalContainerComponent implements OnInit, OnDestroy {
12
+ protected _element: ElementRef;
13
+ private renderer;
14
+ level?: number;
15
+ config: ModalOptions;
16
+ modalService?: ModalService;
17
+ private isShown;
18
+ private animationsEnabled;
19
+ private isModalHiding;
20
+ private clickStartedInContent;
21
+ constructor(options: ModalOptions, _element: ElementRef, renderer: Renderer2);
22
+ ngOnInit(): void;
23
+ onClickStarted(event: MouseEvent): void;
24
+ onClickStop(event: MouseEvent): void;
25
+ onPopState(): void;
26
+ onEsc(event: KeyboardEvent): void;
27
+ ngOnDestroy(): void;
28
+ hide(result?: any): void;
29
+ private _hide;
30
+ }
@@ -1,77 +1,77 @@
1
- import { InjectionToken, StaticProvider } from '@angular/core';
2
- /**
3
- * Modals option can be passed to a specific modal from {@link ModalService.show} or set globbaly using the injection token {@link MODAL_CONFIG_DEFAULT_OVERRIDE}.
4
- * @remarks
5
- * Modal specific options are merged with global options.
6
- * @see {@link modalConfigDefaults} for defaults.
7
- * @public
8
- */
9
- export declare class ModalOptions<T = Record<string, unknown>> {
10
- /**
11
- * Id for opened modal. If not set a random one is generated.
12
- */
13
- id?: number | string;
14
- /**
15
- * If static is set the modal will not close when clicking outside of modal.
16
- * @remarks
17
- * Keyboard event (escape key) stills applies. If you must get a result then also set keyboard to false.
18
- */
19
- backdrop?: boolean | 'static';
20
- /**
21
- * Closes the modal when escape key is pressed.
22
- */
23
- keyboard?: boolean;
24
- /**
25
- * Shows the modal when initialized.
26
- */
27
- show?: boolean;
28
- /**
29
- * Ignore the backdrop click. Pretty much the same as backdrop static.
30
- */
31
- ignoreBackdropClick?: boolean;
32
- /**
33
- * Css class for opened modal.
34
- */
35
- class?: string;
36
- /**
37
- * Toggle animation.
38
- */
39
- animated?: boolean;
40
- /**
41
- * Modal initial data.
42
- * @remarks
43
- * This data must be known properties of content component.
44
- */
45
- initialState?: Partial<T>;
46
- /**
47
- * Function to intercept the closure.
48
- * @remarks
49
- * You can use to catch the close event and even prevent it from closing.
50
- */
51
- closeInterceptor?: CloseInterceptorFn;
52
- /**
53
- * Modal static providers.
54
- * @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
55
- */
56
- providers?: StaticProvider[];
57
- /**
58
- * aria-labelledby attribute value to set on the modal window.
59
- */
60
- ariaLabelledBy?: string;
61
- /**
62
- * aria-describedby attribute value to set on the modal window.
63
- */
64
- ariaDescribedby?: string;
65
- }
66
- /**
67
- * Default option values.
68
- */
69
- export declare const modalConfigDefaults: ModalOptions;
70
- /**
71
- * Use this injection token to set global options.
72
- */
73
- export declare const MODAL_CONFIG_DEFAULT_OVERRIDE: InjectionToken<ModalOptions>;
74
- /**
75
- * Close interceptor promise.
76
- */
77
- export declare type CloseInterceptorFn = () => Promise<void>;
1
+ import { InjectionToken, StaticProvider } from '@angular/core';
2
+ /**
3
+ * Modals option can be passed to a specific modal from {@link ModalService.show} or set globbaly using the injection token {@link MODAL_CONFIG_DEFAULT_OVERRIDE}.
4
+ * @remarks
5
+ * Modal specific options are merged with global options.
6
+ * @see {@link modalConfigDefaults} for defaults.
7
+ * @public
8
+ */
9
+ export declare class ModalOptions<T = Record<string, unknown>> {
10
+ /**
11
+ * Id for opened modal. If not set a random one is generated.
12
+ */
13
+ id?: number | string;
14
+ /**
15
+ * If static is set the modal will not close when clicking outside of modal.
16
+ * @remarks
17
+ * Keyboard event (escape key) stills applies. If you must get a result then also set keyboard to false.
18
+ */
19
+ backdrop?: boolean | 'static';
20
+ /**
21
+ * Closes the modal when escape key is pressed.
22
+ */
23
+ keyboard?: boolean;
24
+ /**
25
+ * Shows the modal when initialized.
26
+ */
27
+ show?: boolean;
28
+ /**
29
+ * Ignore the backdrop click. Pretty much the same as backdrop static.
30
+ */
31
+ ignoreBackdropClick?: boolean;
32
+ /**
33
+ * Css class for opened modal.
34
+ */
35
+ class?: string;
36
+ /**
37
+ * Toggle animation.
38
+ */
39
+ animated?: boolean;
40
+ /**
41
+ * Modal initial data.
42
+ * @remarks
43
+ * This data must be known properties of content component.
44
+ */
45
+ initialState?: Partial<T>;
46
+ /**
47
+ * Function to intercept the closure.
48
+ * @remarks
49
+ * You can use to catch the close event and even prevent it from closing.
50
+ */
51
+ closeInterceptor?: CloseInterceptorFn;
52
+ /**
53
+ * Modal static providers.
54
+ * @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
55
+ */
56
+ providers?: StaticProvider[];
57
+ /**
58
+ * aria-labelledby attribute value to set on the modal window.
59
+ */
60
+ ariaLabelledBy?: string;
61
+ /**
62
+ * aria-describedby attribute value to set on the modal window.
63
+ */
64
+ ariaDescribedby?: string;
65
+ }
66
+ /**
67
+ * Default option values.
68
+ */
69
+ export declare const modalConfigDefaults: ModalOptions;
70
+ /**
71
+ * Use this injection token to set global options.
72
+ */
73
+ export declare const MODAL_CONFIG_DEFAULT_OVERRIDE: InjectionToken<ModalOptions>;
74
+ /**
75
+ * Close interceptor promise.
76
+ */
77
+ export declare type CloseInterceptorFn = () => Promise<void>;