@indice/ng-components 0.2.175 → 0.3.1

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 (243) hide show
  1. package/README.md +4 -4
  2. package/_styles.scss +4323 -4275
  3. package/{esm2020 → esm2022}/indice-ng-components.mjs +4 -4
  4. package/esm2022/lib/controls/advanced-search/advanced-search.component.mjs +156 -0
  5. package/esm2022/lib/controls/advanced-search/models.mjs +109 -0
  6. package/esm2022/lib/controls/avatar-initials/avatar-initials.component.mjs +48 -0
  7. package/{esm2020 → esm2022}/lib/controls/breadcrumb/breadcrumb-item.mjs +14 -14
  8. package/esm2022/lib/controls/breadcrumb/breadcrumb.component.mjs +26 -0
  9. package/esm2022/lib/controls/collapsible-panel/collapsible-panel.component.mjs +20 -0
  10. package/esm2022/lib/controls/combobox/combobox.component.mjs +121 -0
  11. package/esm2022/lib/controls/content-tile/content-tile-header/content-tile-header.component.mjs +17 -0
  12. package/esm2022/lib/controls/content-tile/content-tile-item/content-tile-item.component.mjs +19 -0
  13. package/esm2022/lib/controls/content-tile/content-tile.component.mjs +63 -0
  14. package/esm2022/lib/controls/date-picker/date-picker.component.mjs +300 -0
  15. package/esm2022/lib/controls/drop-down-menu/drop-down-menu.component.mjs +72 -0
  16. package/esm2022/lib/controls/kpi-tile/kpi-tile.component.mjs +43 -0
  17. package/esm2022/lib/controls/language-selection/language-selection.component.mjs +31 -0
  18. package/{esm2020 → esm2022}/lib/controls/list-view/list-column.component.mjs +25 -25
  19. package/esm2022/lib/controls/list-view/list-details-section.component.mjs +17 -0
  20. package/{esm2020 → esm2022}/lib/controls/list-view/list-tile.component.mjs +17 -17
  21. package/esm2022/lib/controls/list-view/list-view-empty-state.component.mjs +29 -0
  22. package/esm2022/lib/controls/list-view/list-view.component.mjs +210 -0
  23. package/esm2022/lib/controls/nav-links-list/nav-links-list.component.mjs +54 -0
  24. package/esm2022/lib/controls/notifications-indicator/notifications-indicator.component.mjs +79 -0
  25. package/esm2022/lib/controls/pager/pager.component.mjs +130 -0
  26. package/esm2022/lib/controls/progress-bar/progress-bar.component.mjs +46 -0
  27. package/esm2022/lib/controls/side-pane/side-pane.component.mjs +87 -0
  28. package/esm2022/lib/controls/skeleton-loader/skeleton-loader.component.mjs +29 -0
  29. package/esm2022/lib/controls/stats-grid/stats-grid.component.mjs +49 -0
  30. package/{esm2020 → esm2022}/lib/controls/stepper/lib-step-info.directive.mjs +16 -16
  31. package/{esm2020 → esm2022}/lib/controls/stepper/lib-step-label.directive.mjs +16 -16
  32. package/esm2022/lib/controls/stepper/lib-step.component.mjs +81 -0
  33. package/esm2022/lib/controls/stepper/lib-stepper.component.mjs +108 -0
  34. package/esm2022/lib/controls/stepper/types/step-selected-event.mjs +4 -0
  35. package/{esm2020 → esm2022}/lib/controls/stepper/types/stepper-type.mjs +12 -12
  36. package/esm2022/lib/controls/tabs/lib-tab-group.component.mjs +66 -0
  37. package/{esm2020 → esm2022}/lib/controls/tabs/lib-tab-label.directive.mjs +16 -16
  38. package/{esm2020 → esm2022}/lib/controls/tabs/lib-tab.component.mjs +64 -64
  39. package/esm2022/lib/controls/toaster/toaster-container.component.mjs +28 -0
  40. package/esm2022/lib/controls/toaster/toaster.component.mjs +31 -0
  41. package/esm2022/lib/controls/toggle/toggle.component.mjs +64 -0
  42. package/esm2022/lib/controls/toggle-button/toggle-button.component.mjs +87 -0
  43. package/esm2022/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +34 -0
  44. package/esm2022/lib/controls/user-profile-menu/user-profile-menu.component.mjs +71 -0
  45. package/esm2022/lib/directives/click-outside.directive.mjs +189 -0
  46. package/esm2022/lib/directives/dynamic-component-host.directive.mjs +17 -0
  47. package/esm2022/lib/helpers/base-list.component.mjs +230 -0
  48. package/esm2022/lib/icons.mjs +36 -0
  49. package/esm2022/lib/layouts/shell/shell-footer/shell-footer.component.mjs +19 -0
  50. package/esm2022/lib/layouts/shell/shell-header/shell-header.component.mjs +130 -0
  51. package/esm2022/lib/layouts/shell/shell-layout/shell-layout.component.mjs +90 -0
  52. package/esm2022/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +54 -0
  53. package/esm2022/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.mjs +45 -0
  54. package/esm2022/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +30 -0
  55. package/esm2022/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.mjs +20 -0
  56. package/esm2022/lib/layouts/views/form-layout/form-layout.component.mjs +86 -0
  57. package/esm2022/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +101 -0
  58. package/esm2022/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +106 -0
  59. package/esm2022/lib/layouts/views/view-layout/view-layout.component.mjs +104 -0
  60. package/esm2022/lib/ng-components.module.mjs +320 -0
  61. package/esm2022/lib/pages/auth/auth-callback/auth-callback.component.mjs +30 -0
  62. package/esm2022/lib/pages/auth/auth-renew/auth-renew.component.mjs +31 -0
  63. package/esm2022/lib/pages/auth/logged-out/logged-out.component.mjs +28 -0
  64. package/esm2022/lib/pages/http-status/error/error.component.mjs +17 -0
  65. package/esm2022/lib/pages/http-status/page-not-found/page-not-found.component.mjs +15 -0
  66. package/esm2022/lib/pages/http-status/unauthorized/unauthorized.component.mjs +14 -0
  67. package/esm2022/lib/pipes/address.pipe.mjs +21 -0
  68. package/esm2022/lib/pipes/duration-format.pipe.mjs +64 -0
  69. package/esm2022/lib/pipes/short-number.pipe.mjs +43 -0
  70. package/esm2022/lib/services/breadcrumb.service.mjs +174 -0
  71. package/esm2022/lib/services/component-loader/component-loader-options.class.mjs +8 -0
  72. package/esm2022/lib/services/component-loader/component-loader.class.mjs +188 -0
  73. package/esm2022/lib/services/component-loader/component-loader.factory.mjs +32 -0
  74. package/{esm2020 → esm2022}/lib/services/component-loader/content-ref.class.mjs +13 -13
  75. package/esm2022/lib/services/modal-service/modal-backdrop-component.mjs +44 -0
  76. package/esm2022/lib/services/modal-service/modal-container-component.mjs +126 -0
  77. package/esm2022/lib/services/modal-service/modal-options.class.mjs +35 -0
  78. package/esm2022/lib/services/modal-service/modal-service.mjs +220 -0
  79. package/{esm2020 → esm2022}/lib/services/modal-service/modal-styles.class.mjs +11 -11
  80. package/esm2022/lib/services/modal-service/modal.class.mjs +27 -0
  81. package/{esm2020 → esm2022}/lib/services/toaster.service.mjs +26 -26
  82. package/esm2022/lib/services/user-settings.service.mjs +35 -0
  83. package/esm2022/lib/services/utilities.service.mjs +47 -0
  84. package/{esm2020 → esm2022}/lib/tokens.mjs +8 -8
  85. package/esm2022/lib/types.mjs +133 -0
  86. package/esm2022/public-api.mjs +78 -0
  87. package/fesm2022/indice-ng-components.mjs +5069 -0
  88. package/fesm2022/indice-ng-components.mjs.map +1 -0
  89. package/index.d.ts +5 -5
  90. package/lib/controls/advanced-search/advanced-search.component.d.ts +40 -40
  91. package/lib/controls/advanced-search/models.d.ts +91 -91
  92. package/lib/controls/avatar-initials/avatar-initials.component.d.ts +14 -14
  93. package/lib/controls/breadcrumb/breadcrumb-item.d.ts +7 -7
  94. package/lib/controls/breadcrumb/breadcrumb.component.d.ts +12 -12
  95. package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +10 -10
  96. package/lib/controls/combobox/combobox.component.d.ts +35 -34
  97. package/lib/controls/content-tile/content-tile-header/content-tile-header.component.d.ts +7 -0
  98. package/lib/controls/content-tile/content-tile-item/content-tile-item.component.d.ts +8 -0
  99. package/lib/controls/content-tile/content-tile.component.d.ts +23 -0
  100. package/lib/controls/date-picker/date-picker.component.d.ts +53 -53
  101. package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +26 -26
  102. package/lib/controls/kpi-tile/kpi-tile.component.d.ts +15 -15
  103. package/lib/controls/language-selection/language-selection.component.d.ts +14 -14
  104. package/lib/controls/list-view/list-column.component.d.ts +9 -9
  105. package/lib/controls/list-view/list-details-section.component.d.ts +7 -7
  106. package/lib/controls/list-view/list-tile.component.d.ts +7 -7
  107. package/lib/controls/list-view/list-view-empty-state.component.d.ts +11 -11
  108. package/lib/controls/list-view/list-view.component.d.ts +62 -61
  109. package/lib/controls/nav-links-list/nav-links-list.component.d.ts +21 -21
  110. package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +22 -22
  111. package/lib/controls/pager/pager.component.d.ts +36 -36
  112. package/lib/controls/progress-bar/progress-bar.component.d.ts +16 -0
  113. package/lib/controls/side-pane/side-pane.component.d.ts +22 -18
  114. package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +12 -11
  115. package/lib/controls/stats-grid/stats-grid.component.d.ts +16 -0
  116. package/lib/controls/stepper/lib-step-info.directive.d.ts +8 -8
  117. package/lib/controls/stepper/lib-step-label.directive.d.ts +8 -8
  118. package/lib/controls/stepper/lib-step.component.d.ts +34 -34
  119. package/lib/controls/stepper/lib-stepper.component.d.ts +43 -43
  120. package/lib/controls/stepper/types/step-selected-event.d.ts +12 -12
  121. package/lib/controls/stepper/types/stepper-type.d.ts +10 -10
  122. package/lib/controls/tabs/lib-tab-group.component.d.ts +21 -21
  123. package/lib/controls/tabs/lib-tab-label.directive.d.ts +8 -8
  124. package/lib/controls/tabs/lib-tab.component.d.ts +24 -24
  125. package/lib/controls/toaster/toaster-container.component.d.ts +13 -13
  126. package/lib/controls/toaster/toaster.component.d.ts +15 -15
  127. package/lib/controls/toggle/toggle.component.d.ts +19 -19
  128. package/lib/controls/toggle-button/toggle-button.component.d.ts +25 -25
  129. package/lib/controls/toggle-buttons-list/toggle-buttons-list.component.d.ts +15 -14
  130. package/lib/controls/user-profile-menu/user-profile-menu.component.d.ts +24 -24
  131. package/lib/directives/click-outside.directive.d.ts +40 -40
  132. package/lib/directives/dynamic-component-host.directive.d.ts +9 -9
  133. package/lib/helpers/base-list.component.d.ts +54 -53
  134. package/lib/icons.d.ts +34 -34
  135. package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +8 -8
  136. package/lib/layouts/shell/shell-header/shell-header.component.d.ts +39 -39
  137. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +26 -26
  138. package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +20 -20
  139. package/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.d.ts +14 -14
  140. package/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.d.ts +15 -15
  141. package/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.d.ts +10 -10
  142. package/lib/layouts/views/form-layout/form-layout.component.d.ts +26 -24
  143. package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +42 -42
  144. package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +29 -28
  145. package/lib/layouts/views/view-layout/view-layout.component.d.ts +31 -31
  146. package/lib/ng-components.module.d.ts +71 -65
  147. package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +13 -13
  148. package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +12 -12
  149. package/lib/pages/auth/logged-out/logged-out.component.d.ts +12 -12
  150. package/lib/pages/http-status/error/error.component.d.ts +8 -8
  151. package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +8 -8
  152. package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +8 -8
  153. package/lib/pipes/address.pipe.d.ts +8 -8
  154. package/lib/pipes/duration-format.pipe.d.ts +8 -8
  155. package/lib/pipes/short-number.pipe.d.ts +7 -0
  156. package/lib/services/breadcrumb.service.d.ts +29 -29
  157. package/lib/services/component-loader/component-loader-options.class.d.ts +30 -30
  158. package/lib/services/component-loader/component-loader.class.d.ts +92 -92
  159. package/lib/services/component-loader/component-loader.factory.d.ts +24 -24
  160. package/lib/services/component-loader/content-ref.class.d.ts +12 -12
  161. package/lib/services/modal-service/modal-backdrop-component.d.ts +20 -20
  162. package/lib/services/modal-service/modal-container-component.d.ts +33 -33
  163. package/lib/services/modal-service/modal-options.class.d.ts +81 -81
  164. package/lib/services/modal-service/modal-service.d.ts +58 -58
  165. package/lib/services/modal-service/modal-styles.class.d.ts +10 -10
  166. package/lib/services/modal-service/modal.class.d.ts +43 -43
  167. package/lib/services/toaster.service.d.ts +11 -11
  168. package/lib/services/user-settings.service.d.ts +13 -13
  169. package/lib/services/utilities.service.d.ts +11 -11
  170. package/lib/tokens.d.ts +10 -10
  171. package/lib/types.d.ts +179 -177
  172. package/modal.css +157 -157
  173. package/package.json +13 -19
  174. package/public-api.d.ts +68 -60
  175. package/esm2020/lib/controls/advanced-search/advanced-search.component.mjs +0 -156
  176. package/esm2020/lib/controls/advanced-search/models.mjs +0 -109
  177. package/esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs +0 -48
  178. package/esm2020/lib/controls/breadcrumb/breadcrumb.component.mjs +0 -26
  179. package/esm2020/lib/controls/collapsible-panel/collapsible-panel.component.mjs +0 -20
  180. package/esm2020/lib/controls/combobox/combobox.component.mjs +0 -117
  181. package/esm2020/lib/controls/date-picker/date-picker.component.mjs +0 -292
  182. package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +0 -72
  183. package/esm2020/lib/controls/kpi-tile/kpi-tile.component.mjs +0 -43
  184. package/esm2020/lib/controls/language-selection/language-selection.component.mjs +0 -31
  185. package/esm2020/lib/controls/list-view/list-details-section.component.mjs +0 -17
  186. package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +0 -29
  187. package/esm2020/lib/controls/list-view/list-view.component.mjs +0 -206
  188. package/esm2020/lib/controls/nav-links-list/nav-links-list.component.mjs +0 -54
  189. package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +0 -79
  190. package/esm2020/lib/controls/pager/pager.component.mjs +0 -130
  191. package/esm2020/lib/controls/side-pane/side-pane.component.mjs +0 -72
  192. package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +0 -25
  193. package/esm2020/lib/controls/stepper/lib-step.component.mjs +0 -81
  194. package/esm2020/lib/controls/stepper/lib-stepper.component.mjs +0 -108
  195. package/esm2020/lib/controls/stepper/types/step-selected-event.mjs +0 -4
  196. package/esm2020/lib/controls/tabs/lib-tab-group.component.mjs +0 -66
  197. package/esm2020/lib/controls/toaster/toaster-container.component.mjs +0 -28
  198. package/esm2020/lib/controls/toaster/toaster.component.mjs +0 -31
  199. package/esm2020/lib/controls/toggle/toggle.component.mjs +0 -64
  200. package/esm2020/lib/controls/toggle-button/toggle-button.component.mjs +0 -87
  201. package/esm2020/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +0 -31
  202. package/esm2020/lib/controls/user-profile-menu/user-profile-menu.component.mjs +0 -71
  203. package/esm2020/lib/directives/click-outside.directive.mjs +0 -189
  204. package/esm2020/lib/directives/dynamic-component-host.directive.mjs +0 -17
  205. package/esm2020/lib/helpers/base-list.component.mjs +0 -226
  206. package/esm2020/lib/icons.mjs +0 -36
  207. package/esm2020/lib/layouts/shell/shell-footer/shell-footer.component.mjs +0 -19
  208. package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +0 -130
  209. package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +0 -90
  210. package/esm2020/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +0 -54
  211. package/esm2020/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.mjs +0 -45
  212. package/esm2020/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +0 -30
  213. package/esm2020/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.mjs +0 -20
  214. package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +0 -80
  215. package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +0 -101
  216. package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +0 -98
  217. package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +0 -104
  218. package/esm2020/lib/ng-components.module.mjs +0 -288
  219. package/esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs +0 -30
  220. package/esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs +0 -31
  221. package/esm2020/lib/pages/auth/logged-out/logged-out.component.mjs +0 -28
  222. package/esm2020/lib/pages/http-status/error/error.component.mjs +0 -17
  223. package/esm2020/lib/pages/http-status/page-not-found/page-not-found.component.mjs +0 -15
  224. package/esm2020/lib/pages/http-status/unauthorized/unauthorized.component.mjs +0 -14
  225. package/esm2020/lib/pipes/address.pipe.mjs +0 -21
  226. package/esm2020/lib/pipes/duration-format.pipe.mjs +0 -64
  227. package/esm2020/lib/services/breadcrumb.service.mjs +0 -174
  228. package/esm2020/lib/services/component-loader/component-loader-options.class.mjs +0 -8
  229. package/esm2020/lib/services/component-loader/component-loader.class.mjs +0 -188
  230. package/esm2020/lib/services/component-loader/component-loader.factory.mjs +0 -32
  231. package/esm2020/lib/services/modal-service/modal-backdrop-component.mjs +0 -44
  232. package/esm2020/lib/services/modal-service/modal-container-component.mjs +0 -126
  233. package/esm2020/lib/services/modal-service/modal-options.class.mjs +0 -35
  234. package/esm2020/lib/services/modal-service/modal-service.mjs +0 -220
  235. package/esm2020/lib/services/modal-service/modal.class.mjs +0 -27
  236. package/esm2020/lib/services/user-settings.service.mjs +0 -35
  237. package/esm2020/lib/services/utilities.service.mjs +0 -47
  238. package/esm2020/lib/types.mjs +0 -132
  239. package/esm2020/public-api.mjs +0 -70
  240. package/fesm2015/indice-ng-components.mjs +0 -4852
  241. package/fesm2015/indice-ng-components.mjs.map +0 -1
  242. package/fesm2020/indice-ng-components.mjs +0 -4763
  243. package/fesm2020/indice-ng-components.mjs.map +0 -1
@@ -1,58 +1,58 @@
1
- import { OnDestroy, RendererFactory2, TemplateRef } from '@angular/core';
2
- import { ModalContainerComponent } from './modal-container-component';
3
- import { ModalOptions } from './modal-options.class';
4
- import { Modal } from './modal.class';
5
- import { ComponentLoaderFactory } from '../component-loader/component-loader.factory';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * A service for using modals.
9
- *
10
- * @public
11
- */
12
- export declare class ModalService implements OnDestroy {
13
- private clf;
14
- private document;
15
- private onBeforeShow;
16
- private onShown;
17
- private onBeforeHide;
18
- private onHidden;
19
- private backdropRef?;
20
- private defaultConfig;
21
- private backdropLoader;
22
- private loaders;
23
- private renderer;
24
- private modalsCount;
25
- private initialPadding;
26
- constructor(clf: ComponentLoaderFactory, rendererFactory: RendererFactory2, document: any, modalDefaultOption: ModalOptions);
27
- ngOnDestroy(): void;
28
- /**
29
- * Opens a new modal.
30
- *
31
- * @param content - `Component` or `TemplateRef` type.
32
- * @param config - Specific {@link ModalOptions | options} for this modal. Global and specific options are merged.
33
- * @returns An instance of {@link Modal}
34
- */
35
- show<T>(content: string | TemplateRef<any> | {
36
- new (...args: any[]): T;
37
- }, config?: ModalOptions<T>): Modal<T>;
38
- /**
39
- * Hide an active modal.
40
- * @param id - Id of modal to hide. If not provided all active modals are hidden.
41
- * @param result - A result to be sent to observers.
42
- */
43
- hide(id?: number | string, result?: any): void;
44
- getActiveModal(): ModalContainerComponent;
45
- private showModal;
46
- private hideModal;
47
- private showBackdrop;
48
- private hideBackdrop;
49
- private removeLoaders;
50
- private addBodyPadding;
51
- private revertScrollbar;
52
- private getScrollbarWidth;
53
- private isScrollBarPresent;
54
- private createLoaders;
55
- private copyEvent;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, [null, null, null, { optional: true; }]>;
57
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
58
- }
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 +1,10 @@
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
+ 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 +1,43 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Modal class.
5
- * @remarks
6
- * This is returned from {@link ModalService.show}.
7
- * @public
8
- */
9
- export declare class Modal<T = any> {
10
- /**
11
- * Event that is fired when the modal behind the ref starts hiding.
12
- * @returns
13
- * Modal component instance.
14
- */
15
- onBeforeHide?: Subject<unknown>;
16
- /**
17
- * Event that is fired when the modal behind the ref finishes hiding.
18
- * @returns
19
- * An object containing the id of the closed modal and result.
20
- */
21
- onHidden?: Subject<unknown>;
22
- /**
23
- * Id of this modal.
24
- */
25
- id?: number | string;
26
- /**
27
- * Reference to a component inside the modal. Null if modal's been created with TemplateRef.
28
- * @remarks
29
- * You can use this to do nasty stuff with opened modal instance.
30
- */
31
- content?: T;
32
- /**
33
- * Hides the modal
34
- * @param result - A result to the observers.
35
- */
36
- hide: (result?: any) => void;
37
- /**
38
- * Sets new class to modal window.
39
- */
40
- setClass: (newClass: string) => void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<Modal<any>, never>;
42
- static ɵprov: i0.ɵɵInjectableDeclaration<Modal<any>>;
43
- }
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 +1,11 @@
1
- import { Observable } from 'rxjs';
2
- import { Toast, ToastType } from '../types';
3
- import * as i0 from "@angular/core";
4
- export declare class ToasterService {
5
- private _subject;
6
- 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
+ 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 +1,13 @@
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
+ 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 +1,11 @@
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
- }
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 CHANGED
@@ -1,10 +1,10 @@
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>;
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>;