@indice/ng-components 0.3.12 → 0.4.0-beta.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.
Files changed (169) hide show
  1. package/fesm2022/indice-ng-components.mjs +314 -279
  2. package/fesm2022/indice-ng-components.mjs.map +1 -1
  3. package/index.d.ts +1894 -3
  4. package/package.json +7 -9
  5. package/esm2022/indice-ng-components.mjs +0 -5
  6. package/esm2022/lib/controls/advanced-search/advanced-search.component.mjs +0 -161
  7. package/esm2022/lib/controls/advanced-search/models.mjs +0 -109
  8. package/esm2022/lib/controls/avatar-initials/avatar-initials.component.mjs +0 -48
  9. package/esm2022/lib/controls/breadcrumb/breadcrumb-item.mjs +0 -14
  10. package/esm2022/lib/controls/breadcrumb/breadcrumb.component.mjs +0 -26
  11. package/esm2022/lib/controls/collapsible-panel/collapsible-panel.component.mjs +0 -20
  12. package/esm2022/lib/controls/combobox/combobox.component.mjs +0 -118
  13. package/esm2022/lib/controls/content-tile/content-tile.component.mjs +0 -91
  14. package/esm2022/lib/controls/date-picker/date-picker.component.mjs +0 -300
  15. package/esm2022/lib/controls/drop-down-menu/drop-down-menu.component.mjs +0 -72
  16. package/esm2022/lib/controls/enhanced-combobox/enhanced-combobox.component.mjs +0 -115
  17. package/esm2022/lib/controls/kpi-tile/kpi-tile.component.mjs +0 -43
  18. package/esm2022/lib/controls/language-selection/language-selection.component.mjs +0 -31
  19. package/esm2022/lib/controls/list-view/list-column.component.mjs +0 -25
  20. package/esm2022/lib/controls/list-view/list-details-section.component.mjs +0 -17
  21. package/esm2022/lib/controls/list-view/list-tile.component.mjs +0 -17
  22. package/esm2022/lib/controls/list-view/list-view-empty-state.component.mjs +0 -29
  23. package/esm2022/lib/controls/list-view/list-view.component.mjs +0 -211
  24. package/esm2022/lib/controls/nav-links-list/nav-links-list.component.mjs +0 -54
  25. package/esm2022/lib/controls/notifications-indicator/notifications-indicator.component.mjs +0 -79
  26. package/esm2022/lib/controls/pager/pager.component.mjs +0 -130
  27. package/esm2022/lib/controls/progress-bar/progress-bar.component.mjs +0 -46
  28. package/esm2022/lib/controls/side-pane/side-pane.component.mjs +0 -106
  29. package/esm2022/lib/controls/skeleton-loader/skeleton-loader.component.mjs +0 -29
  30. package/esm2022/lib/controls/stats-grid/stats-grid.component.mjs +0 -49
  31. package/esm2022/lib/controls/stepper/lib-step-info.directive.mjs +0 -16
  32. package/esm2022/lib/controls/stepper/lib-step-label.directive.mjs +0 -16
  33. package/esm2022/lib/controls/stepper/lib-step.component.mjs +0 -81
  34. package/esm2022/lib/controls/stepper/lib-stepper.component.mjs +0 -108
  35. package/esm2022/lib/controls/stepper/types/step-selected-event.mjs +0 -4
  36. package/esm2022/lib/controls/stepper/types/stepper-type.mjs +0 -12
  37. package/esm2022/lib/controls/tabs/lib-tab-group.component.mjs +0 -66
  38. package/esm2022/lib/controls/tabs/lib-tab-label.directive.mjs +0 -16
  39. package/esm2022/lib/controls/tabs/lib-tab.component.mjs +0 -64
  40. package/esm2022/lib/controls/toaster/toaster-container.component.mjs +0 -28
  41. package/esm2022/lib/controls/toaster/toaster.component.mjs +0 -31
  42. package/esm2022/lib/controls/toggle/toggle.component.mjs +0 -64
  43. package/esm2022/lib/controls/toggle-button/toggle-button.component.mjs +0 -87
  44. package/esm2022/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +0 -34
  45. package/esm2022/lib/controls/user-profile-menu/user-profile-menu.component.mjs +0 -75
  46. package/esm2022/lib/directives/click-outside.directive.mjs +0 -189
  47. package/esm2022/lib/directives/dynamic-component-host.directive.mjs +0 -17
  48. package/esm2022/lib/helpers/base-list.component.mjs +0 -235
  49. package/esm2022/lib/icons.mjs +0 -36
  50. package/esm2022/lib/layouts/shell/shell-footer/shell-footer.component.mjs +0 -19
  51. package/esm2022/lib/layouts/shell/shell-header/shell-header.component.mjs +0 -138
  52. package/esm2022/lib/layouts/shell/shell-layout/shell-layout.component.mjs +0 -92
  53. package/esm2022/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +0 -54
  54. package/esm2022/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.mjs +0 -45
  55. package/esm2022/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +0 -33
  56. package/esm2022/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.mjs +0 -24
  57. package/esm2022/lib/layouts/views/form-layout/form-layout.component.mjs +0 -86
  58. package/esm2022/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +0 -103
  59. package/esm2022/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +0 -106
  60. package/esm2022/lib/layouts/views/view-layout/view-layout.component.mjs +0 -104
  61. package/esm2022/lib/ng-components.module.mjs +0 -324
  62. package/esm2022/lib/pages/auth/auth-callback/auth-callback.component.mjs +0 -30
  63. package/esm2022/lib/pages/auth/auth-renew/auth-renew.component.mjs +0 -31
  64. package/esm2022/lib/pages/auth/logged-out/logged-out.component.mjs +0 -28
  65. package/esm2022/lib/pages/http-status/error/error.component.mjs +0 -17
  66. package/esm2022/lib/pages/http-status/page-not-found/page-not-found.component.mjs +0 -15
  67. package/esm2022/lib/pages/http-status/unauthorized/unauthorized.component.mjs +0 -14
  68. package/esm2022/lib/pipes/address.pipe.mjs +0 -21
  69. package/esm2022/lib/pipes/duration-format.pipe.mjs +0 -64
  70. package/esm2022/lib/pipes/short-number.pipe.mjs +0 -43
  71. package/esm2022/lib/services/breadcrumb.service.mjs +0 -181
  72. package/esm2022/lib/services/component-loader/component-loader-options.class.mjs +0 -8
  73. package/esm2022/lib/services/component-loader/component-loader.class.mjs +0 -188
  74. package/esm2022/lib/services/component-loader/component-loader.factory.mjs +0 -32
  75. package/esm2022/lib/services/component-loader/content-ref.class.mjs +0 -13
  76. package/esm2022/lib/services/modal-service/modal-backdrop-component.mjs +0 -44
  77. package/esm2022/lib/services/modal-service/modal-container-component.mjs +0 -126
  78. package/esm2022/lib/services/modal-service/modal-options.class.mjs +0 -35
  79. package/esm2022/lib/services/modal-service/modal-service.mjs +0 -220
  80. package/esm2022/lib/services/modal-service/modal-styles.class.mjs +0 -11
  81. package/esm2022/lib/services/modal-service/modal.class.mjs +0 -27
  82. package/esm2022/lib/services/toaster.service.mjs +0 -26
  83. package/esm2022/lib/services/user-settings.service.mjs +0 -35
  84. package/esm2022/lib/services/utilities.service.mjs +0 -47
  85. package/esm2022/lib/tokens.mjs +0 -8
  86. package/esm2022/lib/types.mjs +0 -143
  87. package/esm2022/public-api.mjs +0 -77
  88. package/lib/controls/advanced-search/advanced-search.component.d.ts +0 -42
  89. package/lib/controls/advanced-search/models.d.ts +0 -92
  90. package/lib/controls/avatar-initials/avatar-initials.component.d.ts +0 -14
  91. package/lib/controls/breadcrumb/breadcrumb-item.d.ts +0 -7
  92. package/lib/controls/breadcrumb/breadcrumb.component.d.ts +0 -12
  93. package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +0 -10
  94. package/lib/controls/combobox/combobox.component.d.ts +0 -34
  95. package/lib/controls/content-tile/content-tile.component.d.ts +0 -34
  96. package/lib/controls/date-picker/date-picker.component.d.ts +0 -53
  97. package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +0 -26
  98. package/lib/controls/enhanced-combobox/enhanced-combobox.component.d.ts +0 -37
  99. package/lib/controls/kpi-tile/kpi-tile.component.d.ts +0 -15
  100. package/lib/controls/language-selection/language-selection.component.d.ts +0 -14
  101. package/lib/controls/list-view/list-column.component.d.ts +0 -9
  102. package/lib/controls/list-view/list-details-section.component.d.ts +0 -7
  103. package/lib/controls/list-view/list-tile.component.d.ts +0 -7
  104. package/lib/controls/list-view/list-view-empty-state.component.d.ts +0 -11
  105. package/lib/controls/list-view/list-view.component.d.ts +0 -62
  106. package/lib/controls/nav-links-list/nav-links-list.component.d.ts +0 -21
  107. package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +0 -22
  108. package/lib/controls/pager/pager.component.d.ts +0 -36
  109. package/lib/controls/progress-bar/progress-bar.component.d.ts +0 -16
  110. package/lib/controls/side-pane/side-pane.component.d.ts +0 -28
  111. package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +0 -12
  112. package/lib/controls/stats-grid/stats-grid.component.d.ts +0 -16
  113. package/lib/controls/stepper/lib-step-info.directive.d.ts +0 -8
  114. package/lib/controls/stepper/lib-step-label.directive.d.ts +0 -8
  115. package/lib/controls/stepper/lib-step.component.d.ts +0 -34
  116. package/lib/controls/stepper/lib-stepper.component.d.ts +0 -43
  117. package/lib/controls/stepper/types/step-selected-event.d.ts +0 -12
  118. package/lib/controls/stepper/types/stepper-type.d.ts +0 -10
  119. package/lib/controls/tabs/lib-tab-group.component.d.ts +0 -21
  120. package/lib/controls/tabs/lib-tab-label.directive.d.ts +0 -8
  121. package/lib/controls/tabs/lib-tab.component.d.ts +0 -24
  122. package/lib/controls/toaster/toaster-container.component.d.ts +0 -13
  123. package/lib/controls/toaster/toaster.component.d.ts +0 -15
  124. package/lib/controls/toggle/toggle.component.d.ts +0 -19
  125. package/lib/controls/toggle-button/toggle-button.component.d.ts +0 -25
  126. package/lib/controls/toggle-buttons-list/toggle-buttons-list.component.d.ts +0 -15
  127. package/lib/controls/user-profile-menu/user-profile-menu.component.d.ts +0 -25
  128. package/lib/directives/click-outside.directive.d.ts +0 -40
  129. package/lib/directives/dynamic-component-host.directive.d.ts +0 -9
  130. package/lib/helpers/base-list.component.d.ts +0 -55
  131. package/lib/icons.d.ts +0 -34
  132. package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +0 -8
  133. package/lib/layouts/shell/shell-header/shell-header.component.d.ts +0 -40
  134. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +0 -27
  135. package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +0 -20
  136. package/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.d.ts +0 -14
  137. package/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.d.ts +0 -16
  138. package/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.d.ts +0 -11
  139. package/lib/layouts/views/form-layout/form-layout.component.d.ts +0 -26
  140. package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +0 -44
  141. package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +0 -29
  142. package/lib/layouts/views/view-layout/view-layout.component.d.ts +0 -31
  143. package/lib/ng-components.module.d.ts +0 -70
  144. package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +0 -13
  145. package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +0 -12
  146. package/lib/pages/auth/logged-out/logged-out.component.d.ts +0 -12
  147. package/lib/pages/http-status/error/error.component.d.ts +0 -8
  148. package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +0 -8
  149. package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +0 -8
  150. package/lib/pipes/address.pipe.d.ts +0 -8
  151. package/lib/pipes/duration-format.pipe.d.ts +0 -8
  152. package/lib/pipes/short-number.pipe.d.ts +0 -7
  153. package/lib/services/breadcrumb.service.d.ts +0 -29
  154. package/lib/services/component-loader/component-loader-options.class.d.ts +0 -30
  155. package/lib/services/component-loader/component-loader.class.d.ts +0 -92
  156. package/lib/services/component-loader/component-loader.factory.d.ts +0 -24
  157. package/lib/services/component-loader/content-ref.class.d.ts +0 -12
  158. package/lib/services/modal-service/modal-backdrop-component.d.ts +0 -20
  159. package/lib/services/modal-service/modal-container-component.d.ts +0 -33
  160. package/lib/services/modal-service/modal-options.class.d.ts +0 -81
  161. package/lib/services/modal-service/modal-service.d.ts +0 -58
  162. package/lib/services/modal-service/modal-styles.class.d.ts +0 -10
  163. package/lib/services/modal-service/modal.class.d.ts +0 -43
  164. package/lib/services/toaster.service.d.ts +0 -11
  165. package/lib/services/user-settings.service.d.ts +0 -13
  166. package/lib/services/utilities.service.d.ts +0 -11
  167. package/lib/tokens.d.ts +0 -10
  168. package/lib/types.d.ts +0 -188
  169. package/public-api.d.ts +0 -67
@@ -1,8 +0,0 @@
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", false>;
8
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ShortNumberPipe implements PipeTransform {
4
- transform(number: number, args?: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ShortNumberPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<ShortNumberPipe, "shortNumber", false>;
7
- }
@@ -1,29 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
- import { BreadcrumbItem } from '../controls/breadcrumb/breadcrumb-item';
4
- import { UtilitiesService } from './utilities.service';
5
- import * as i0 from "@angular/core";
6
- export declare class BreadcrumbService {
7
- private _router;
8
- private _utilities;
9
- _shellConfig?: any;
10
- private _defaultHome;
11
- private _breadcrumb$;
12
- constructor(_router: Router, _utilities: UtilitiesService, _shellConfig?: any);
13
- breadcrumb: Observable<BreadcrumbItem[]>;
14
- private _getDefaultHomeItem;
15
- private _getRouteTitle;
16
- private _buildBreadcrumb;
17
- private _findRouteFromUrl;
18
- private _findParentRoutes;
19
- private _flattenRoutes;
20
- private _getBreadcrumbRouteData;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, null, { optional: true; }]>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
23
- }
24
- export declare class BreadcrumbRouteData {
25
- _level: number;
26
- isHome: boolean;
27
- _fullPath?: string | undefined;
28
- constructor(_level: number, isHome: boolean, _fullPath?: string | undefined);
29
- }
@@ -1,30 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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>;
@@ -1,58 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
1
- export declare const cssClassNames: {
2
- backdrop: string;
3
- show: string;
4
- fade: string;
5
- modalOpen: string;
6
- };
7
- export declare const animationTime: {
8
- backdrop: number;
9
- modal: number;
10
- };
@@ -1,43 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- constructor();
7
- toast$: Observable<Toast>;
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
- }
@@ -1,13 +0,0 @@
1
- import { UserSettingKey } from '../types';
2
- import * as i0 from "@angular/core";
3
- export declare class UserSettingsService {
4
- private static SETTINGS_KEY;
5
- private _defaultPreferences;
6
- getAll(): {
7
- [key in UserSettingKey]: any;
8
- };
9
- get(key: UserSettingKey): any;
10
- set(key: UserSettingKey, value: any): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<UserSettingsService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<UserSettingsService>;
13
- }
@@ -1,11 +0,0 @@
1
- import { IValidationProblemDetails } from '../types';
2
- import * as i0 from "@angular/core";
3
- export declare class UtilitiesService {
4
- constructor();
5
- problemDetails?: IValidationProblemDetails;
6
- get validationErrors(): string[];
7
- getValidationProblemDetails(problemDetails: IValidationProblemDetails): string[];
8
- getPathFromUrl(url: string): string | undefined;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<UtilitiesService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<UtilitiesService>;
11
- }
package/lib/tokens.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { IAppLinks, IAppLanguagesService, IAppNotifications, IShellConfig } from './types';
3
- import { LibStepperComponent } from './controls/stepper/lib-stepper.component';
4
- import { LibTabGroupComponent } from './controls/tabs/lib-tab-group.component';
5
- export declare const APP_LANGUAGES: InjectionToken<IAppLanguagesService>;
6
- export declare const APP_LINKS: InjectionToken<IAppLinks>;
7
- export declare const APP_NOTIFICATIONS: InjectionToken<IAppNotifications>;
8
- export declare const LIBSTEPPER_ACCESSOR: InjectionToken<LibStepperComponent>;
9
- export declare const LIBTABGROUP_ACCESSOR: InjectionToken<LibTabGroupComponent>;
10
- export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;