@covalent/core 9.1.3 → 10.0.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 (222) hide show
  1. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +1 -1
  2. package/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  3. package/breadcrumbs/breadcrumbs.module.d.ts +5 -3
  4. package/common/common.module.d.ts +5 -1
  5. package/common/directives/fullscreen/fullscreen.directive.d.ts +1 -1
  6. package/common/forms/auto-trim/auto-trim.directive.d.ts +1 -1
  7. package/common/material-icons.css +1 -1
  8. package/common/pipes/bytes/bytes.pipe.d.ts +1 -1
  9. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +1 -1
  10. package/common/pipes/digits/digits.pipe.d.ts +1 -1
  11. package/common/pipes/time-ago/time-ago.pipe.d.ts +1 -1
  12. package/common/pipes/time-difference/time-difference.pipe.d.ts +1 -1
  13. package/common/pipes/time-until/time-until.pipe.d.ts +1 -1
  14. package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
  15. package/common/platform.css +1 -1
  16. package/common/platform.css.map +1 -1
  17. package/dialogs/alert-dialog/alert-dialog.component.d.ts +1 -1
  18. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +1 -1
  19. package/dialogs/dialog.component.d.ts +5 -5
  20. package/dialogs/dialogs.module.d.ts +5 -9
  21. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +1 -1
  22. package/dialogs/status-dialog/status-dialog.component.d.ts +1 -1
  23. package/dialogs/window-dialog/window-dialog.component.d.ts +1 -1
  24. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  25. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  26. package/dynamic-menu/dynamic-menu.component.d.ts +1 -1
  27. package/dynamic-menu/dynamic-menu.module.d.ts +5 -7
  28. package/fesm2022/covalent-core-breadcrumbs.mjs +83 -44
  29. package/fesm2022/covalent-core-breadcrumbs.mjs.map +1 -1
  30. package/fesm2022/covalent-core-common.mjs +146 -138
  31. package/fesm2022/covalent-core-common.mjs.map +1 -1
  32. package/fesm2022/covalent-core-dialogs.mjs +448 -169
  33. package/fesm2022/covalent-core-dialogs.mjs.map +1 -1
  34. package/fesm2022/covalent-core-dynamic-menu.mjs +351 -82
  35. package/fesm2022/covalent-core-dynamic-menu.mjs.map +1 -1
  36. package/fesm2022/covalent-core-file.mjs +256 -181
  37. package/fesm2022/covalent-core-file.mjs.map +1 -1
  38. package/fesm2022/covalent-core-json-formatter.mjs +119 -31
  39. package/fesm2022/covalent-core-json-formatter.mjs.map +1 -1
  40. package/fesm2022/covalent-core-layout.mjs +738 -384
  41. package/fesm2022/covalent-core-layout.mjs.map +1 -1
  42. package/fesm2022/covalent-core-loading.mjs +98 -76
  43. package/fesm2022/covalent-core-loading.mjs.map +1 -1
  44. package/fesm2022/covalent-core-menu.mjs +33 -19
  45. package/fesm2022/covalent-core-menu.mjs.map +1 -1
  46. package/fesm2022/covalent-core-message.mjs +112 -53
  47. package/fesm2022/covalent-core-message.mjs.map +1 -1
  48. package/fesm2022/covalent-core-search.mjs +260 -193
  49. package/fesm2022/covalent-core-search.mjs.map +1 -1
  50. package/fesm2022/covalent-core-side-sheet.mjs +224 -192
  51. package/fesm2022/covalent-core-side-sheet.mjs.map +1 -1
  52. package/fesm2022/covalent-core-user-profile.mjs +118 -59
  53. package/fesm2022/covalent-core-user-profile.mjs.map +1 -1
  54. package/file/directives/file-drop.directive.d.ts +1 -1
  55. package/file/directives/file-select.directive.d.ts +1 -1
  56. package/file/file-input/file-input.component.d.ts +2 -2
  57. package/file/file-upload/file-upload.component.d.ts +1 -1
  58. package/file/file.module.d.ts +5 -6
  59. package/json-formatter/json-formatter.component.d.ts +1 -1
  60. package/json-formatter/json-formatter.module.d.ts +5 -4
  61. package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
  62. package/layout/layout-footer/layout-footer.component.d.ts +1 -1
  63. package/layout/layout-manage-list/layout-manage-list.component.d.ts +1 -1
  64. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +3 -3
  65. package/layout/layout-nav/layout-nav.component.d.ts +1 -1
  66. package/layout/layout-nav-list/layout-nav-list.component.d.ts +1 -1
  67. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +3 -3
  68. package/layout/layout-toggle.class.d.ts +1 -1
  69. package/layout/layout.component.d.ts +1 -1
  70. package/layout/layout.directives.d.ts +3 -3
  71. package/layout/layout.module.d.ts +5 -10
  72. package/layout/navigation-drawer/navigation-drawer.component.d.ts +3 -3
  73. package/loading/directives/loading.directive.d.ts +1 -1
  74. package/loading/loading.component.d.ts +1 -1
  75. package/loading/loading.module.d.ts +1 -6
  76. package/menu/menu.component.d.ts +1 -1
  77. package/menu/menu.module.d.ts +5 -4
  78. package/message/message.component.d.ts +2 -2
  79. package/message/message.module.d.ts +5 -3
  80. package/package.json +13 -38
  81. package/search/search-box/search-box.component.d.ts +1 -1
  82. package/search/search-input/search-input.component.d.ts +1 -1
  83. package/search/search.module.d.ts +5 -6
  84. package/side-sheet/side-sheet-container.d.ts +2 -2
  85. package/side-sheet/side-sheet.content-directives.d.ts +5 -5
  86. package/side-sheet/side-sheet.d.ts +1 -1
  87. package/side-sheet/side-sheet.module.d.ts +5 -4
  88. package/theming/prebuilt/all-theme-dark.css +1 -1
  89. package/theming/prebuilt/all-theme-dark.css.map +1 -1
  90. package/theming/prebuilt/all-theme-light.css +1 -1
  91. package/theming/prebuilt/all-theme-light.css.map +1 -1
  92. package/theming/prebuilt/blue-grey-deep-orange.css +1 -1
  93. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  94. package/theming/prebuilt/blue-orange.css +1 -1
  95. package/theming/prebuilt/blue-orange.css.map +1 -1
  96. package/theming/prebuilt/indigo-pink.css +1 -1
  97. package/theming/prebuilt/indigo-pink.css.map +1 -1
  98. package/theming/prebuilt/orange-light-blue.css +1 -1
  99. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  100. package/theming/prebuilt/teal-orange.css +1 -1
  101. package/theming/prebuilt/teal-orange.css.map +1 -1
  102. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +1 -1
  103. package/user-profile/user-profile.component.d.ts +1 -1
  104. package/user-profile/user-profile.module.d.ts +5 -8
  105. package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -94
  106. package/esm2022/breadcrumbs/breadcrumbs.component.mjs +0 -142
  107. package/esm2022/breadcrumbs/breadcrumbs.module.mjs +0 -20
  108. package/esm2022/breadcrumbs/covalent-core-breadcrumbs.mjs +0 -5
  109. package/esm2022/breadcrumbs/public_api.mjs +0 -4
  110. package/esm2022/common/animations/bounce/bounce.animation.mjs +0 -70
  111. package/esm2022/common/animations/collapse/collapse.animation.mjs +0 -51
  112. package/esm2022/common/animations/common/interfaces.mjs +0 -2
  113. package/esm2022/common/animations/fade/fadeInOut.animation.mjs +0 -37
  114. package/esm2022/common/animations/flash/flash.animation.mjs +0 -34
  115. package/esm2022/common/animations/headshake/headshake.animation.mjs +0 -47
  116. package/esm2022/common/animations/jello/jello.animation.mjs +0 -59
  117. package/esm2022/common/animations/pulse/pulse.animation.mjs +0 -32
  118. package/esm2022/common/animations/rotate/rotate.animation.mjs +0 -30
  119. package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +0 -43
  120. package/esm2022/common/behaviors/disable-ripple.mixin.mjs +0 -24
  121. package/esm2022/common/behaviors/disabled.mixin.mjs +0 -24
  122. package/esm2022/common/common.module.mjs +0 -83
  123. package/esm2022/common/covalent-core-common.mjs +0 -5
  124. package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +0 -87
  125. package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +0 -37
  126. package/esm2022/common/forms/validators/validators.mjs +0 -29
  127. package/esm2022/common/functions/clipboard.mjs +0 -23
  128. package/esm2022/common/functions/convert.mjs +0 -84
  129. package/esm2022/common/functions/download.mjs +0 -75
  130. package/esm2022/common/functions/file.mjs +0 -16
  131. package/esm2022/common/pipes/bytes/bytes.pipe.mjs +0 -42
  132. package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +0 -42
  133. package/esm2022/common/pipes/digits/digits.pipe.mjs +0 -41
  134. package/esm2022/common/pipes/time-ago/time-ago.pipe.mjs +0 -72
  135. package/esm2022/common/pipes/time-difference/time-difference.pipe.mjs +0 -51
  136. package/esm2022/common/pipes/time-until/time-until.pipe.mjs +0 -72
  137. package/esm2022/common/pipes/truncate/truncate.pipe.mjs +0 -27
  138. package/esm2022/common/public_api.mjs +0 -39
  139. package/esm2022/common/services/icon.service.mjs +0 -1087
  140. package/esm2022/common/services/router-path.service.mjs +0 -30
  141. package/esm2022/covalent-core.mjs +0 -5
  142. package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +0 -26
  143. package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -31
  144. package/esm2022/dialogs/covalent-core-dialogs.mjs +0 -5
  145. package/esm2022/dialogs/dialog.component.mjs +0 -75
  146. package/esm2022/dialogs/dialogs.module.mjs +0 -94
  147. package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +0 -84
  148. package/esm2022/dialogs/public_api.mjs +0 -10
  149. package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +0 -222
  150. package/esm2022/dialogs/services/dialog.service.mjs +0 -215
  151. package/esm2022/dialogs/status-dialog/status-dialog.component.mjs +0 -55
  152. package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +0 -40
  153. package/esm2022/dynamic-menu/covalent-core-dynamic-menu.mjs +0 -5
  154. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +0 -30
  155. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +0 -23
  156. package/esm2022/dynamic-menu/dynamic-menu.component.mjs +0 -28
  157. package/esm2022/dynamic-menu/dynamic-menu.menu.mjs +0 -2
  158. package/esm2022/dynamic-menu/dynamic-menu.module.mjs +0 -55
  159. package/esm2022/dynamic-menu/public_api.mjs +0 -6
  160. package/esm2022/file/covalent-core-file.mjs +0 -5
  161. package/esm2022/file/directives/file-drop.directive.mjs +0 -145
  162. package/esm2022/file/directives/file-select.directive.mjs +0 -78
  163. package/esm2022/file/file-input/file-input.component.mjs +0 -146
  164. package/esm2022/file/file-upload/file-upload.component.mjs +0 -188
  165. package/esm2022/file/file.module.mjs +0 -56
  166. package/esm2022/file/public_api.mjs +0 -7
  167. package/esm2022/file/services/file.service.mjs +0 -66
  168. package/esm2022/json-formatter/collapse.animation.mjs +0 -51
  169. package/esm2022/json-formatter/covalent-core-json-formatter.mjs +0 -5
  170. package/esm2022/json-formatter/json-formatter.component.mjs +0 -222
  171. package/esm2022/json-formatter/json-formatter.module.mjs +0 -20
  172. package/esm2022/json-formatter/public_api.mjs +0 -3
  173. package/esm2022/layout/covalent-core-layout.mjs +0 -5
  174. package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +0 -50
  175. package/esm2022/layout/layout-footer/layout-footer.component.mjs +0 -36
  176. package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +0 -92
  177. package/esm2022/layout/layout-manage-list/layout-manage-list.directives.mjs +0 -84
  178. package/esm2022/layout/layout-nav/layout-nav.component.mjs +0 -76
  179. package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +0 -154
  180. package/esm2022/layout/layout-nav-list/layout-nav-list.directives.mjs +0 -84
  181. package/esm2022/layout/layout-toggle.class.mjs +0 -96
  182. package/esm2022/layout/layout.component.mjs +0 -91
  183. package/esm2022/layout/layout.directives.mjs +0 -85
  184. package/esm2022/layout/layout.module.mjs +0 -115
  185. package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +0 -221
  186. package/esm2022/layout/public_api.mjs +0 -13
  187. package/esm2022/loading/covalent-core-loading.mjs +0 -5
  188. package/esm2022/loading/directives/loading.directive.mjs +0 -133
  189. package/esm2022/loading/loading.component.mjs +0 -193
  190. package/esm2022/loading/loading.module.mjs +0 -41
  191. package/esm2022/loading/public_api.mjs +0 -6
  192. package/esm2022/loading/services/loading.factory.mjs +0 -210
  193. package/esm2022/loading/services/loading.service.mjs +0 -219
  194. package/esm2022/menu/covalent-core-menu.mjs +0 -5
  195. package/esm2022/menu/menu.component.mjs +0 -12
  196. package/esm2022/menu/menu.module.mjs +0 -21
  197. package/esm2022/menu/public_api.mjs +0 -3
  198. package/esm2022/message/collapse.animation.mjs +0 -51
  199. package/esm2022/message/covalent-core-message.mjs +0 -5
  200. package/esm2022/message/message.component.mjs +0 -222
  201. package/esm2022/message/message.module.mjs +0 -25
  202. package/esm2022/message/public_api.mjs +0 -3
  203. package/esm2022/public_api.mjs +0 -2
  204. package/esm2022/search/covalent-core-search.mjs +0 -5
  205. package/esm2022/search/public_api.mjs +0 -4
  206. package/esm2022/search/search-box/search-box.component.mjs +0 -198
  207. package/esm2022/search/search-input/search-input.component.mjs +0 -219
  208. package/esm2022/search/search.module.mjs +0 -37
  209. package/esm2022/side-sheet/covalent-core-side-sheet.mjs +0 -5
  210. package/esm2022/side-sheet/public_api.mjs +0 -6
  211. package/esm2022/side-sheet/side-sheet-container.mjs +0 -285
  212. package/esm2022/side-sheet/side-sheet-ref.mjs +0 -30
  213. package/esm2022/side-sheet/side-sheet.animation.mjs +0 -12
  214. package/esm2022/side-sheet/side-sheet.config.mjs +0 -11
  215. package/esm2022/side-sheet/side-sheet.content-directives.mjs +0 -206
  216. package/esm2022/side-sheet/side-sheet.mjs +0 -236
  217. package/esm2022/side-sheet/side-sheet.module.mjs +0 -45
  218. package/esm2022/user-profile/covalent-core-user-profile.mjs +0 -5
  219. package/esm2022/user-profile/public_api.mjs +0 -4
  220. package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +0 -25
  221. package/esm2022/user-profile/user-profile.component.mjs +0 -21
  222. package/esm2022/user-profile/user-profile.module.mjs +0 -42
@@ -1,19 +1,29 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, Injectable, Optional, SkipSelf, ComponentFactoryResolver, Injector, Directive, Input, NgModule } from '@angular/core';
3
+ import { tdFadeInOutAnimation } from '@covalent/core/common';
4
+ import { CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
5
+ import { MatProgressBar } from '@angular/material/progress-bar';
6
+ import { MatProgressSpinner } from '@angular/material/progress-spinner';
3
7
  import * as i1 from '@angular/common';
4
8
  import { CommonModule } from '@angular/common';
5
- import * as i4 from '@angular/cdk/portal';
6
- import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
7
9
  import * as i1$1 from '@angular/cdk/overlay';
8
- import { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
9
- import * as i2 from '@angular/material/progress-bar';
10
- import { MatProgressBarModule } from '@angular/material/progress-bar';
11
- import * as i3 from '@angular/material/progress-spinner';
12
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
13
- import { tdFadeInOutAnimation } from '@covalent/core/common';
10
+ import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
14
11
  import { Subject } from 'rxjs';
15
12
  import { distinctUntilChanged } from 'rxjs/operators';
16
13
 
14
+ function TdLoadingComponent_mat_progress_spinner_2_Template(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵelement(0, "mat-progress-spinner", 5);
16
+ } if (rf & 2) {
17
+ const ctx_r0 = i0.ɵɵnextContext();
18
+ i0.ɵɵproperty("mode", ctx_r0.mode)("value", ctx_r0.value)("color", ctx_r0.color)("diameter", ctx_r0.getCircleDiameter())("strokeWidth", ctx_r0.getCircleStrokeWidth());
19
+ } }
20
+ function TdLoadingComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
21
+ i0.ɵɵelement(0, "mat-progress-bar", 6);
22
+ } if (rf & 2) {
23
+ const ctx_r0 = i0.ɵɵnextContext();
24
+ i0.ɵɵproperty("mode", ctx_r0.mode)("value", ctx_r0.value)("color", ctx_r0.color);
25
+ } }
26
+ function TdLoadingComponent_ng_template_4_Template(rf, ctx) { }
17
27
  var LoadingType;
18
28
  (function (LoadingType) {
19
29
  LoadingType["Circular"] = "circular";
@@ -192,13 +202,39 @@ class TdLoadingComponent {
192
202
  }
193
203
  return 0;
194
204
  }
195
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
196
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdLoadingComponent, selector: "td-loading", ngImport: i0, template: "<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div\n [@tdFadeInOut]=\"animation\"\n [style.min-height]=\"getHeight()\"\n class=\"td-loading\"\n >\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar\n *ngIf=\"isLinear()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n ></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n", styles: [".td-loading-wrapper{position:relative;display:block}.td-loading-wrapper.td-fullscreen{position:inherit}.td-loading-wrapper .td-loading{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:center;flex:1}.td-loading-wrapper.td-overlay .td-loading{position:absolute;margin:0;top:0;left:0;right:0;z-index:1000}.td-loading-wrapper.td-overlay .td-loading mat-progress-bar{position:absolute;top:0;left:0;right:0}.td-loading-wrapper.td-overlay-circular .td-loading{bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [tdFadeInOutAnimation] });
205
+ static ɵfac = function TdLoadingComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLoadingComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
206
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdLoadingComponent, selectors: [["td-loading"]], decls: 5, vars: 14, consts: [[1, "td-loading-wrapper"], [1, "td-loading"], [3, "mode", "value", "color", "diameter", "strokeWidth", 4, "ngIf"], [3, "mode", "value", "color", 4, "ngIf"], [3, "cdkPortalOutlet"], [3, "mode", "value", "color", "diameter", "strokeWidth"], [3, "mode", "value", "color"]], template: function TdLoadingComponent_Template(rf, ctx) { if (rf & 1) {
207
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
208
+ i0.ɵɵtemplate(2, TdLoadingComponent_mat_progress_spinner_2_Template, 1, 5, "mat-progress-spinner", 2)(3, TdLoadingComponent_mat_progress_bar_3_Template, 1, 3, "mat-progress-bar", 3);
209
+ i0.ɵɵelementEnd();
210
+ i0.ɵɵtemplate(4, TdLoadingComponent_ng_template_4_Template, 0, 0, "ng-template", 4);
211
+ i0.ɵɵelementEnd();
212
+ } if (rf & 2) {
213
+ i0.ɵɵstyleProp("min-height", ctx.getHeight());
214
+ i0.ɵɵclassProp("td-overlay-circular", (ctx.isOverlay() || ctx.isFullScreen()) && !ctx.isLinear())("td-overlay", ctx.isOverlay() || ctx.isFullScreen())("td-fullscreen", ctx.isFullScreen());
215
+ i0.ɵɵadvance();
216
+ i0.ɵɵstyleProp("min-height", ctx.getHeight());
217
+ i0.ɵɵproperty("@tdFadeInOut", ctx.animation);
218
+ i0.ɵɵadvance();
219
+ i0.ɵɵproperty("ngIf", ctx.isCircular());
220
+ i0.ɵɵadvance();
221
+ i0.ɵɵproperty("ngIf", ctx.isLinear());
222
+ i0.ɵɵadvance();
223
+ i0.ɵɵproperty("cdkPortalOutlet", ctx.content);
224
+ } }, dependencies: [CommonModule, i1.NgIf, MatProgressBar,
225
+ MatProgressSpinner,
226
+ CdkPortalOutlet], styles: [".td-loading-wrapper[_ngcontent-%COMP%]{position:relative;display:block}.td-loading-wrapper.td-fullscreen[_ngcontent-%COMP%]{position:inherit}.td-loading-wrapper[_ngcontent-%COMP%] .td-loading[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:center;flex:1}.td-loading-wrapper.td-overlay[_ngcontent-%COMP%] .td-loading[_ngcontent-%COMP%]{position:absolute;margin:0;top:0;left:0;right:0;z-index:1000}.td-loading-wrapper.td-overlay[_ngcontent-%COMP%] .td-loading[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.td-loading-wrapper.td-overlay-circular[_ngcontent-%COMP%] .td-loading[_ngcontent-%COMP%]{bottom:0}"], data: { animation: [tdFadeInOutAnimation] } });
197
227
  }
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingComponent, decorators: [{
199
- type: Component,
200
- args: [{ selector: 'td-loading', animations: [tdFadeInOutAnimation], template: "<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div\n [@tdFadeInOut]=\"animation\"\n [style.min-height]=\"getHeight()\"\n class=\"td-loading\"\n >\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar\n *ngIf=\"isLinear()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n ></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n", styles: [".td-loading-wrapper{position:relative;display:block}.td-loading-wrapper.td-fullscreen{position:inherit}.td-loading-wrapper .td-loading{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:center;flex:1}.td-loading-wrapper.td-overlay .td-loading{position:absolute;margin:0;top:0;left:0;right:0;z-index:1000}.td-loading-wrapper.td-overlay .td-loading mat-progress-bar{position:absolute;top:0;left:0;right:0}.td-loading-wrapper.td-overlay-circular .td-loading{bottom:0}\n"] }]
201
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }] });
228
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLoadingComponent, [{
229
+ type: Component,
230
+ args: [{ selector: 'td-loading', animations: [tdFadeInOutAnimation], imports: [
231
+ CommonModule,
232
+ MatProgressBar,
233
+ MatProgressSpinner,
234
+ CdkPortalOutlet,
235
+ ], template: "<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div\n [@tdFadeInOut]=\"animation\"\n [style.min-height]=\"getHeight()\"\n class=\"td-loading\"\n >\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar\n *ngIf=\"isLinear()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n ></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n", styles: [".td-loading-wrapper{position:relative;display:block}.td-loading-wrapper.td-fullscreen{position:inherit}.td-loading-wrapper .td-loading{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:center;flex:1}.td-loading-wrapper.td-overlay .td-loading{position:absolute;margin:0;top:0;left:0;right:0;z-index:1000}.td-loading-wrapper.td-overlay .td-loading mat-progress-bar{position:absolute;top:0;left:0;right:0}.td-loading-wrapper.td-overlay-circular .td-loading{bottom:0}\n"] }]
236
+ }], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], null); })();
237
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdLoadingComponent, { className: "TdLoadingComponent", filePath: "loading.component.ts", lineNumber: 48 }); })();
202
238
 
203
239
  /**
204
240
  * NOTE: @internal usage only.
@@ -380,12 +416,12 @@ class TdLoadingFactory {
380
416
  instance.color = options.color;
381
417
  }
382
418
  }
383
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingFactory, deps: [{ token: i0.ComponentFactoryResolver }, { token: i1$1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
384
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingFactory });
419
+ static ɵfac = function TdLoadingFactory_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLoadingFactory)(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i1$1.Overlay), i0.ɵɵinject(i0.Injector)); };
420
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: TdLoadingFactory, factory: TdLoadingFactory.ɵfac });
385
421
  }
386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingFactory, decorators: [{
387
- type: Injectable
388
- }], ctorParameters: () => [{ type: i0.ComponentFactoryResolver }, { type: i1$1.Overlay }, { type: i0.Injector }] });
422
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLoadingFactory, [{
423
+ type: Injectable
424
+ }], () => [{ type: i0.ComponentFactoryResolver }, { type: i1$1.Overlay }, { type: i0.Injector }], null); })();
389
425
  function LOADING_FACTORY_PROVIDER_FACTORY(parent, componentFactoryResolver, overlay, injector) {
390
426
  return (parent || new TdLoadingFactory(componentFactoryResolver, overlay, injector));
391
427
  }
@@ -599,12 +635,12 @@ class TdLoadingService {
599
635
  clearTimeout(this._timeouts[name]);
600
636
  delete this._timeouts[name];
601
637
  }
602
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingService, deps: [{ token: TdLoadingFactory }], target: i0.ɵɵFactoryTarget.Injectable });
603
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingService });
638
+ static ɵfac = function TdLoadingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLoadingService)(i0.ɵɵinject(TdLoadingFactory)); };
639
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: TdLoadingService, factory: TdLoadingService.ɵfac });
604
640
  }
605
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingService, decorators: [{
606
- type: Injectable
607
- }], ctorParameters: () => [{ type: TdLoadingFactory }] });
641
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLoadingService, [{
642
+ type: Injectable
643
+ }], () => [{ type: TdLoadingFactory }], null); })();
608
644
  function LOADING_PROVIDER_FACTORY(parent, loadingFactory) {
609
645
  return parent || new TdLoadingService(loadingFactory);
610
646
  }
@@ -714,63 +750,49 @@ class TdLoadingDirective {
714
750
  }, this._viewContainerRef, this._templateRef, this._context);
715
751
  }
716
752
  }
717
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: TdLoadingService }], target: i0.ɵɵFactoryTarget.Directive });
718
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdLoadingDirective, selector: "[tdLoading]", inputs: { name: ["tdLoading", "name"], until: ["tdLoadingUntil", "until"], type: ["tdLoadingType", "type"], mode: ["tdLoadingMode", "mode"], strategy: ["tdLoadingStrategy", "strategy"], color: ["tdLoadingColor", "color"] }, ngImport: i0 });
753
+ static ɵfac = function TdLoadingDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdLoadingDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(TdLoadingService)); };
754
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdLoadingDirective, selectors: [["", "tdLoading", ""]], inputs: { name: [0, "tdLoading", "name"], until: [0, "tdLoadingUntil", "until"], type: [0, "tdLoadingType", "type"], mode: [0, "tdLoadingMode", "mode"], strategy: [0, "tdLoadingStrategy", "strategy"], color: [0, "tdLoadingColor", "color"] } });
719
755
  }
720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdLoadingDirective, decorators: [{
721
- type: Directive,
722
- args: [{
723
- selector: '[tdLoading]',
724
- }]
725
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: TdLoadingService }], propDecorators: { name: [{
726
- type: Input,
727
- args: ['tdLoading']
728
- }], until: [{
729
- type: Input,
730
- args: ['tdLoadingUntil']
731
- }], type: [{
732
- type: Input,
733
- args: ['tdLoadingType']
734
- }], mode: [{
735
- type: Input,
736
- args: ['tdLoadingMode']
737
- }], strategy: [{
738
- type: Input,
739
- args: ['tdLoadingStrategy']
740
- }], color: [{
741
- type: Input,
742
- args: ['tdLoadingColor']
743
- }] } });
756
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLoadingDirective, [{
757
+ type: Directive,
758
+ args: [{
759
+ selector: '[tdLoading]',
760
+ }]
761
+ }], () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: TdLoadingService }], { name: [{
762
+ type: Input,
763
+ args: ['tdLoading']
764
+ }], until: [{
765
+ type: Input,
766
+ args: ['tdLoadingUntil']
767
+ }], type: [{
768
+ type: Input,
769
+ args: ['tdLoadingType']
770
+ }], mode: [{
771
+ type: Input,
772
+ args: ['tdLoadingMode']
773
+ }], strategy: [{
774
+ type: Input,
775
+ args: ['tdLoadingStrategy']
776
+ }], color: [{
777
+ type: Input,
778
+ args: ['tdLoadingColor']
779
+ }] }); })();
744
780
 
745
781
  const TD_LOADING = [TdLoadingComponent, TdLoadingDirective];
746
782
  class CovalentLoadingModule {
747
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
748
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentLoadingModule, declarations: [TdLoadingComponent, TdLoadingDirective], imports: [CommonModule,
749
- MatProgressBarModule,
750
- MatProgressSpinnerModule,
751
- OverlayModule,
752
- PortalModule], exports: [TdLoadingComponent, TdLoadingDirective] });
753
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentLoadingModule, providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER], imports: [CommonModule,
754
- MatProgressBarModule,
755
- MatProgressSpinnerModule,
756
- OverlayModule,
757
- PortalModule] });
783
+ static ɵfac = function CovalentLoadingModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentLoadingModule)(); };
784
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentLoadingModule });
785
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER], imports: [TdLoadingComponent] });
758
786
  }
759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentLoadingModule, decorators: [{
760
- type: NgModule,
761
- args: [{
762
- imports: [
763
- CommonModule,
764
- MatProgressBarModule,
765
- MatProgressSpinnerModule,
766
- OverlayModule,
767
- PortalModule,
768
- ],
769
- declarations: [TD_LOADING],
770
- exports: [TD_LOADING],
771
- providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER],
772
- }]
773
- }] });
787
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentLoadingModule, [{
788
+ type: NgModule,
789
+ args: [{
790
+ imports: [TD_LOADING],
791
+ exports: [TD_LOADING],
792
+ providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER],
793
+ }]
794
+ }], null, null); })();
795
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentLoadingModule, { imports: [TdLoadingComponent, TdLoadingDirective], exports: [TdLoadingComponent, TdLoadingDirective] }); })();
774
796
 
775
797
  /**
776
798
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"covalent-core-loading.mjs","sources":["../../../../libs/angular/loading/src/loading.component.ts","../../../../libs/angular/loading/src/loading.component.html","../../../../libs/angular/loading/src/services/loading.factory.ts","../../../../libs/angular/loading/src/services/loading.service.ts","../../../../libs/angular/loading/src/directives/loading.directive.ts","../../../../libs/angular/loading/src/loading.module.ts","../../../../libs/angular/loading/src/covalent-core-loading.ts"],"sourcesContent":["import {\n Component,\n ChangeDetectorRef,\n ElementRef,\n DoCheck,\n} from '@angular/core';\nimport { tdFadeInOutAnimation } from '@covalent/core/common';\nimport { TemplatePortal } from '@angular/cdk/portal';\n\nexport enum LoadingType {\n Circular = 'circular',\n Linear = 'linear',\n}\n\nexport enum LoadingMode {\n Determinate = 'determinate',\n Indeterminate = 'indeterminate',\n}\n\nexport enum LoadingStrategy {\n Overlay = 'overlay',\n Replace = 'replace',\n}\n\nexport enum LoadingStyle {\n FullScreen = 'fullscreen',\n Overlay = 'overlay',\n None = 'none',\n}\n\nexport const TD_CIRCLE_DIAMETER = 40;\n\n@Component({\n selector: 'td-loading',\n styleUrls: ['./loading.component.scss'],\n templateUrl: './loading.component.html',\n animations: [tdFadeInOutAnimation],\n})\nexport class TdLoadingComponent implements DoCheck {\n private _mode: LoadingMode = LoadingMode.Indeterminate;\n private _defaultMode: LoadingMode = LoadingMode.Indeterminate;\n private _value = 0;\n private _circleDiameter: number = TD_CIRCLE_DIAMETER;\n\n /**\n * Flag for animation\n */\n animation = false;\n\n /**\n * Content injected into loading component.\n */\n content!: TemplatePortal<any>;\n\n /**\n * Sets mode of [TdLoadingComponent] to LoadingMode.Determinate or LoadingMode.Indeterminate\n */\n set mode(mode: LoadingMode) {\n this._defaultMode = mode;\n }\n get mode(): LoadingMode {\n return this._mode;\n }\n\n /**\n * Sets value of [TdLoadingComponent] if mode is 'LoadingMode.Determinate'\n */\n set value(value: number) {\n this._value = value;\n // Check for changes for `OnPush` change detection\n this._changeDetectorRef.markForCheck();\n }\n get value(): number {\n return this._value;\n }\n\n style: LoadingStyle = LoadingStyle.None;\n\n /**\n * height: number\n * Sets height of [TdLoadingComponent].\n */\n height = 100;\n\n /**\n * type: LoadingType\n * Sets type of [TdLoadingComponent] rendered.\n */\n type: LoadingType = LoadingType.Circular;\n\n /**\n * color: primary' | 'accent' | 'warn'\n * Sets theme color of [TdLoadingComponent] rendered.\n */\n color: 'primary' | 'accent' | 'warn' = 'primary';\n\n constructor(\n private _elementRef: ElementRef,\n private _changeDetectorRef: ChangeDetectorRef\n ) {}\n\n ngDoCheck(): void {\n // When overlay is used and the host width has a value greater than 1px\n // set the circle diameter when possible incase the loading component was rendered in a hidden state\n if (this.isOverlay() && this._hostHeight() > 1 && this.animation) {\n this._setCircleDiameter();\n this._changeDetectorRef.markForCheck();\n }\n }\n\n getHeight(): string | undefined {\n // Ignore height if style is `overlay` or `fullscreen`.\n // Add height if child elements have a height and style is `none`, else return default height.\n if (this.isOverlay() || this.isFullScreen()) {\n return undefined;\n } else {\n return this.height ? `${this.height}px` : '150px';\n }\n }\n\n getCircleDiameter(): number {\n return this._circleDiameter;\n }\n\n getCircleStrokeWidth(): number {\n // we calculate the stroke width by setting it as 10% of its diameter\n const strokeWidth: number = this.getCircleDiameter() / 10;\n return Math.abs(strokeWidth);\n }\n\n isCircular(): boolean {\n return this.type === LoadingType.Circular;\n }\n\n isLinear(): boolean {\n return this.type === LoadingType.Linear;\n }\n\n isFullScreen(): boolean {\n return this.style === LoadingStyle.FullScreen;\n }\n\n isOverlay(): boolean {\n return this.style === LoadingStyle.Overlay;\n }\n\n /**\n * Starts in animation and returns an observable for completition event.\n */\n show(): void {\n /* need to switch back to the selected mode, so we have saved it in another variable\n * and then recover it. (issue with protractor)\n */\n this._mode = this._defaultMode;\n // Set values before the animations starts\n this._setCircleDiameter();\n // Check for changes for `OnPush` change detection\n this.animation = true;\n this._changeDetectorRef.markForCheck();\n }\n\n /**\n * Starts out animation and returns an observable for completition event.\n */\n hide(): void {\n this.animation = false;\n /* need to switch back and forth from determinate/indeterminate so the setInterval()\n * inside mat-progress-spinner stops and protractor doesnt timeout waiting to sync.\n */\n this._mode = LoadingMode.Determinate;\n // Check for changes for `OnPush` change detection\n /* little hack to reset the loader value and animation before removing it from DOM\n * else, the loader will appear with prev value when its registered again\n * and will do an animation going prev value to 0.\n */\n this.value = 0;\n // Check for changes for `OnPush` change detection\n this._changeDetectorRef.markForCheck();\n }\n\n /**\n * Calculate the proper diameter for the circle and set it\n */\n private _setCircleDiameter(): void {\n // we set a default diameter of 100 since this is the default in material\n let diameter: number = TD_CIRCLE_DIAMETER;\n // if height is provided, then we take that as diameter\n if (this.height) {\n diameter = this.height;\n // else if its not provided, then we take the host height\n } else if (this.height === undefined) {\n diameter = this._hostHeight();\n }\n // if the diameter is over TD_CIRCLE_DIAMETER, we set TD_CIRCLE_DIAMETER\n if (diameter <= TD_CIRCLE_DIAMETER) {\n this._circleDiameter = Math.floor(diameter);\n } else {\n this._circleDiameter = TD_CIRCLE_DIAMETER;\n }\n }\n\n /**\n * Returns the host height of the loading component\n */\n private _hostHeight(): number {\n if (<HTMLElement>this._elementRef.nativeElement) {\n return (<HTMLElement>(\n this._elementRef.nativeElement\n )).getBoundingClientRect().height;\n }\n return 0;\n }\n}\n","<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div\n [@tdFadeInOut]=\"animation\"\n [style.min-height]=\"getHeight()\"\n class=\"td-loading\"\n >\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar\n *ngIf=\"isLinear()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n ></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n","import {\n Injectable,\n ComponentFactoryResolver,\n Provider,\n SkipSelf,\n Optional,\n EmbeddedViewRef,\n} from '@angular/core';\nimport {\n Injector,\n ComponentRef,\n ViewContainerRef,\n TemplateRef,\n} from '@angular/core';\nimport { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\nimport { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\n\nimport { Observable, Subject } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\n\nimport { TdLoadingContext } from '../directives/loading.directive';\nimport { TdLoadingComponent, LoadingStyle } from '../loading.component';\nimport { ITdLoadingConfig } from './loading.service';\n\nexport interface IInternalLoadingOptions extends ITdLoadingConfig {\n height?: number;\n style?: LoadingStyle;\n}\n\nexport interface ILoadingRef {\n observable: Observable<any>;\n componentRef?: ComponentRef<any>;\n subject: Subject<any>;\n times: number;\n}\n\n/**\n * NOTE: @internal usage only.\n */\n@Injectable()\nexport class TdLoadingFactory {\n constructor(\n private _componentFactoryResolver: ComponentFactoryResolver,\n private _overlay: Overlay,\n private _injector: Injector\n ) {}\n\n /**\n * Uses material `Overlay` services to create a DOM element and attach the loading component\n * into it. Leveraging the state and configuration from it.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createFullScreenComponent(options: ITdLoadingConfig): ILoadingRef {\n (<IInternalLoadingOptions>options).height = undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.FullScreen;\n const loadingRef: ILoadingRef = this._initializeContext();\n let loading = false;\n let overlayRef: OverlayRef;\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading) {\n loading = true;\n overlayRef = this._createOverlay();\n loadingRef.componentRef = overlayRef.attach(\n new ComponentPortal(TdLoadingComponent)\n );\n this._mapOptions(options, loadingRef.componentRef?.instance);\n loadingRef.componentRef?.instance.show();\n loadingRef.componentRef?.changeDetectorRef.detectChanges();\n } else if (registered <= 0 && loading) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n loadingRef.componentRef?.destroy();\n overlayRef.detach();\n overlayRef.dispose();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a loading component dynamically and attaches it into the given viewContainerRef.\n * Leverages TemplatePortals from material to inject the template inside of it so it fits\n * perfectly when overlaying it.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createOverlayComponent(\n options: ITdLoadingConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>\n ): ILoadingRef {\n (<IInternalLoadingOptions>options).height = undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.Overlay;\n const loadingRef: ILoadingRef = this._createComponent(options);\n let loading = false;\n\n if (loadingRef.componentRef) {\n loadingRef.componentRef.instance.content = new TemplatePortal(\n templateRef,\n viewContainerRef\n );\n viewContainerRef.clear();\n viewContainerRef.insert(loadingRef.componentRef?.hostView, 0);\n }\n\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading) {\n loading = true;\n loadingRef.componentRef?.instance.show();\n } else if (registered <= 0 && loading) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a loading component dynamically and attaches it into the given viewContainerRef.\n * Replaces the template with the loading component depending if it was registered or resolved.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createReplaceComponent(\n options: ITdLoadingConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>,\n context: TdLoadingContext\n ): ILoadingRef {\n const nativeElement: HTMLElement = <HTMLElement>(\n templateRef.elementRef.nativeElement\n );\n (<IInternalLoadingOptions>options).height = nativeElement.nextElementSibling\n ? nativeElement.nextElementSibling.scrollHeight\n : undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.None;\n const loadingRef: ILoadingRef = this._createComponent(options);\n let loading = false;\n // passing context so when the template is attached, we can keep the reference of the variables\n const contentRef: EmbeddedViewRef<object> =\n viewContainerRef.createEmbeddedView(templateRef, context);\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading && loadingRef.componentRef) {\n loading = true;\n // detach the content and attach the loader if loader is there\n const index: number = viewContainerRef.indexOf(\n loadingRef.componentRef.hostView\n );\n if (index < 0) {\n viewContainerRef.detach(viewContainerRef.indexOf(contentRef));\n viewContainerRef.insert(loadingRef.componentRef.hostView, 0);\n }\n loadingRef.componentRef?.instance.show();\n } else if (registered <= 0 && loading && loadingRef.componentRef) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n // detach loader and attach the content if content is there\n const index: number = viewContainerRef.indexOf(contentRef);\n if (index < 0) {\n viewContainerRef.detach(\n viewContainerRef.indexOf(loadingRef.componentRef.hostView)\n );\n viewContainerRef.insert(contentRef, 0);\n }\n /**\n * Need to call \"markForCheck\" and \"detectChanges\" on attached template, so its detected by parent component when attached\n * with \"OnPush\" change detection\n */\n contentRef.detectChanges();\n contentRef.markForCheck();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a fullscreen overlay for the loading usage.\n */\n private _createOverlay(): OverlayRef {\n const state: OverlayConfig = new OverlayConfig();\n state.hasBackdrop = false;\n state.positionStrategy = this._overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically();\n return this._overlay.create(state);\n }\n\n /**\n * Creates a generic component dynamically waiting to be attached to a viewContainerRef.\n */\n private _createComponent(options: IInternalLoadingOptions): ILoadingRef {\n const compRef: ILoadingRef = this._initializeContext();\n compRef.componentRef = this._componentFactoryResolver\n .resolveComponentFactory(TdLoadingComponent)\n .create(this._injector);\n this._mapOptions(options, compRef.componentRef.instance);\n return compRef;\n }\n\n /**\n * Initialize context for loading component.\n */\n private _initializeContext(): ILoadingRef {\n const subject: Subject<any> = new Subject<any>();\n return {\n observable: subject.asObservable(),\n subject,\n componentRef: undefined,\n times: 0,\n };\n }\n\n /**\n * Maps configuration to the loading component instance.\n */\n private _mapOptions(\n options: IInternalLoadingOptions,\n instance: TdLoadingComponent\n ): void {\n if (options.style) {\n instance.style = options.style;\n }\n\n if (options.type !== undefined) {\n instance.type = options.type;\n }\n if (options.height !== undefined) {\n instance.height = options.height;\n }\n if (options.mode !== undefined) {\n instance.mode = options.mode;\n }\n if (options.color !== undefined) {\n instance.color = options.color;\n }\n }\n}\n\nexport function LOADING_FACTORY_PROVIDER_FACTORY(\n parent: TdLoadingFactory,\n componentFactoryResolver: ComponentFactoryResolver,\n overlay: Overlay,\n injector: Injector\n): TdLoadingFactory {\n return (\n parent || new TdLoadingFactory(componentFactoryResolver, overlay, injector)\n );\n}\n\nexport const LOADING_FACTORY_PROVIDER: Provider = {\n // If there is already a service available, use that. Otherwise, provide a new one.\n provide: TdLoadingFactory,\n deps: [\n [new Optional(), new SkipSelf(), TdLoadingFactory],\n ComponentFactoryResolver,\n Overlay,\n Injector,\n ],\n useFactory: LOADING_FACTORY_PROVIDER_FACTORY,\n};\n","import { Injectable, Provider, SkipSelf, Optional } from '@angular/core';\nimport { ViewContainerRef, TemplateRef } from '@angular/core';\n\nimport { TdLoadingContext } from '../directives/loading.directive';\nimport {\n TdLoadingComponent,\n LoadingMode,\n LoadingStrategy,\n LoadingType,\n} from '../loading.component';\nimport { TdLoadingFactory, ILoadingRef } from './loading.factory';\n\nexport interface ITdLoadingConfig {\n name: string;\n type?: LoadingType;\n mode?: LoadingMode;\n color?: 'primary' | 'accent' | 'warn';\n}\n\nexport class TdLoadingConfig implements ITdLoadingConfig {\n name: string;\n type?: LoadingType;\n mode?: LoadingMode;\n color?: 'primary' | 'accent' | 'warn';\n\n constructor(config: ITdLoadingConfig) {\n this.name = config.name;\n if (!this.name) {\n throw Error('Name is required for [TdLoading] configuration.');\n }\n this.mode = config.mode ? config.mode : LoadingMode.Indeterminate;\n this.type = config.type ? config.type : LoadingType.Circular;\n this.color = config.color ? config.color : 'primary';\n }\n}\n\nexport interface ITdLoadingDirectiveConfig extends ITdLoadingConfig {\n strategy?: LoadingStrategy;\n}\n\nexport class TdLoadingDirectiveConfig\n extends TdLoadingConfig\n implements ITdLoadingDirectiveConfig\n{\n strategy: LoadingStrategy;\n\n constructor(config: ITdLoadingDirectiveConfig) {\n super(config);\n this.strategy = config.strategy ? config.strategy : LoadingStrategy.Replace;\n }\n}\n\n@Injectable()\nexport class TdLoadingService {\n private _context: { [key: string]: ILoadingRef } = {};\n private _timeouts: { [key: string]: any } = {};\n\n constructor(private _loadingFactory: TdLoadingFactory) {\n this.create({\n name: 'td-loading-main',\n });\n }\n\n /**\n * params:\n * - config: ILoadingDirectiveConfig\n * - viewContainerRef: ViewContainerRef\n * - templateRef: TemplateRef<Object>\n *\n * Creates an replace loading mask and attaches it to the viewContainerRef.\n * Replaces the templateRef with the mask when a request is registered on it.\n *\n * NOTE: @internal usage only.\n */\n createComponent(\n config: ITdLoadingDirectiveConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>,\n context: TdLoadingContext\n ): ILoadingRef {\n const directiveConfig: TdLoadingDirectiveConfig =\n new TdLoadingDirectiveConfig(config);\n if (this._context[directiveConfig.name]) {\n throw Error(\n `Name duplication: [TdLoading] directive has a name conflict with ${directiveConfig.name}.`\n );\n }\n if (directiveConfig.strategy === LoadingStrategy.Overlay) {\n this._context[directiveConfig.name] =\n this._loadingFactory.createOverlayComponent(\n directiveConfig,\n viewContainerRef,\n templateRef\n );\n } else {\n this._context[directiveConfig.name] =\n this._loadingFactory.createReplaceComponent(\n directiveConfig,\n viewContainerRef,\n templateRef,\n context\n );\n }\n return this._context[directiveConfig.name];\n }\n\n /**\n * params:\n * - config: ITdLoadingConfig\n *\n * Creates a fullscreen loading mask and attaches it to the DOM with the given configuration.\n * Only displayed when the mask has a request registered on it.\n */\n public create(config: ITdLoadingConfig): void {\n const fullscreenConfig: TdLoadingConfig = new TdLoadingConfig(config);\n this.removeComponent(fullscreenConfig.name);\n this._context[fullscreenConfig.name] =\n this._loadingFactory.createFullScreenComponent(fullscreenConfig);\n }\n\n /**\n * params:\n * - name: string\n *\n * Removes `loading` component from service context.\n */\n public removeComponent(name: string): void {\n if (this._context[name]) {\n this._context[name].subject.unsubscribe();\n if (this._context[name].componentRef) {\n this._context[name].componentRef?.destroy();\n }\n delete this._context[name];\n }\n }\n\n /**\n * params:\n * - name: string\n * - registers?: number\n * returns: true if successful\n *\n * Resolves a request for the loading mask referenced by the name parameter.\n * Can optionally pass registers argument to set a number of register calls.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.register()\n */\n public register(\n name: string = 'td-loading-main',\n registers: number = 1\n ): boolean {\n // try registering into the service if the loading component has been instanciated or if it exists.\n if (this._context[name]) {\n registers = registers < 1 ? 1 : registers;\n this._context[name].times += registers;\n this._context[name].subject.next(this._context[name].times);\n return true;\n } else {\n // if it doesnt exist, set a timeout so its registered after change detection happens\n // this in case \"register\" occured on the `ngOnInit` lifehook cycle.\n if (!this._timeouts[name]) {\n this._timeouts[name] = setTimeout(() => {\n this.register(name, registers);\n });\n } else {\n // if it timeout occured and still doesnt exist, it means the tiemout wasnt needed so we clear it.\n this._clearTimeout(name);\n }\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * - resolves?: number\n * returns: true if successful\n *\n * Resolves a request for the loading mask referenced by the name parameter.\n * Can optionally pass resolves argument to set a number of resolve calls.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.resolve()\n */\n public resolve(\n name: string = 'td-loading-main',\n resolves: number = 1\n ): boolean {\n // clear timeout if the loading component is \"resolved\" before its \"registered\"\n this._clearTimeout(name);\n if (this._context[name]) {\n resolves = resolves < 1 ? 1 : resolves;\n if (this._context[name].times) {\n let times: number = this._context[name].times;\n times -= resolves;\n this._context[name].times = times < 0 ? 0 : times;\n }\n this._context[name].subject?.next(this._context[name].times);\n return true;\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * returns: true if successful\n *\n * Resolves all request for the loading mask referenced by the name parameter.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.resolveAll()\n */\n public resolveAll(name: string = 'td-loading-main'): boolean {\n // clear timeout if the loading component is \"resolved\" before its \"registered\"\n this._clearTimeout(name);\n if (this._context[name]) {\n this._context[name].times = 0;\n this._context[name].subject?.next(this._context[name].times);\n return true;\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * - value: number\n * returns: true if successful\n *\n * Set value on a loading mask referenced by the name parameter.\n * Usage only available if its mode is 'determinate' and if loading is showing.\n */\n public setValue(name: string, value: number): boolean {\n if (this._context[name]) {\n const instance: TdLoadingComponent =\n this._context[name].componentRef?.instance;\n if (instance.mode === LoadingMode.Determinate && instance.animation) {\n instance.value = value;\n return true;\n }\n }\n return false;\n }\n\n /**\n * Clears timeout linked to the name.\n * @param name Name of the loading component to be cleared\n */\n private _clearTimeout(name: string): void {\n clearTimeout(this._timeouts[name]);\n delete this._timeouts[name];\n }\n}\n\nexport function LOADING_PROVIDER_FACTORY(\n parent: TdLoadingService,\n loadingFactory: TdLoadingFactory\n): TdLoadingService {\n return parent || new TdLoadingService(loadingFactory);\n}\n\nexport const LOADING_PROVIDER: Provider = {\n // If there is already a service available, use that. Otherwise, provide a new one.\n provide: TdLoadingService,\n deps: [[new Optional(), new SkipSelf(), TdLoadingService], TdLoadingFactory],\n useFactory: LOADING_PROVIDER_FACTORY,\n};\n","import { Directive, Input, OnInit, OnDestroy } from '@angular/core';\nimport { ViewContainerRef, TemplateRef } from '@angular/core';\n\nimport {\n LoadingType,\n LoadingMode,\n LoadingStrategy,\n} from '../loading.component';\nimport { TdLoadingService } from '../services/loading.service';\nimport { ILoadingRef } from '../services/loading.factory';\n\n/**\n * Context class for variable reference\n */\nexport class TdLoadingContext {\n public $implicit: any = undefined;\n public tdLoading: any = undefined;\n}\n\n// Constant for generation of the id for the next component\nlet TD_LOADING_NEXT_ID = 0;\n\n@Directive({\n selector: '[tdLoading]',\n})\nexport class TdLoadingDirective implements OnInit, OnDestroy {\n private _context: TdLoadingContext = new TdLoadingContext();\n private _loadingRef?: ILoadingRef;\n\n /**\n * tdLoading: string\n * Name reference of the loading mask, used to register/resolve requests to the mask.\n */\n @Input('tdLoading')\n name!: string;\n\n /**\n * tdLoadingUntil?: any\n * If its null, undefined or false it will be used to register requests to the mask.\n * Else if its any value that can be resolved as true, it will resolve the mask.\n * [name] is optional when using [until], but can still be used to register/resolve it manually.\n */\n @Input('tdLoadingUntil')\n set until(until: any) {\n if (!this.name) {\n this.name = 'td-loading-until-' + TD_LOADING_NEXT_ID++;\n }\n this._context.$implicit = this._context.tdLoading = until;\n if (!until) {\n this._loadingService.register(this.name);\n } else {\n this._loadingService.resolveAll(this.name);\n }\n }\n\n /**\n * tdLoadingType?: LoadingType or ['linear' | 'circular']\n * Sets the type of loading mask depending on value.\n * Defaults to [LoadingType.Circular | 'circular'].\n */\n @Input('tdLoadingType')\n type: LoadingType = LoadingType.Circular;\n\n /**\n * tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']\n * Sets the mode of loading mask depending on value.\n * Defaults to [LoadingMode.Indeterminate | 'indeterminate'].\n */\n @Input('tdLoadingMode') mode: LoadingMode = LoadingMode.Indeterminate;\n\n /**\n * tdLoadingStrategy?: LoadingStrategy or ['replace' | 'overlay']\n * Sets the strategy of loading mask depending on value.\n * Defaults to [LoadingMode.Replace | 'replace'].\n */\n @Input('tdLoadingStrategy')\n strategy: LoadingStrategy.Overlay | LoadingStrategy.Replace =\n LoadingStrategy.Replace;\n\n /**\n * tdLoadingColor?: \"primary\" | \"accent\" | \"warn\"\n * Sets the theme color of the loading component. Defaults to \"primary\"\n */\n @Input('tdLoadingColor') color: 'primary' | 'accent' | 'warn' = 'primary';\n\n constructor(\n private _viewContainerRef: ViewContainerRef,\n private _templateRef: TemplateRef<TdLoadingContext>,\n private _loadingService: TdLoadingService\n ) {}\n\n /**\n * Registers component in the DOM, so it will be available when calling resolve/register.\n */\n ngOnInit(): void {\n this._registerComponent();\n }\n\n /**\n * Remove component when directive is destroyed.\n */\n ngOnDestroy(): void {\n this._loadingService.removeComponent(this.name);\n this._loadingRef = undefined;\n }\n\n /**\n * Creates [TdLoadingComponent] and attaches it to this directive's [ViewContainerRef].\n * Passes this directive's [TemplateRef] to modify DOM depending on loading `strategy`.\n */\n private _registerComponent(): void {\n if (!this.name) {\n throw new Error('Name is needed to register loading directive');\n }\n // Check if `TdLoadingComponent` has been created before trying to add one again.\n // There is a weird edge case when using `[routerLinkActive]` that calls the `ngOnInit` twice in a row\n if (!this._loadingRef) {\n this._loadingRef = this._loadingService.createComponent(\n {\n name: this.name,\n type: this.type,\n mode: this.mode,\n color: this.color,\n strategy: this.strategy,\n },\n this._viewContainerRef,\n this._templateRef,\n this._context\n );\n }\n }\n}\n","import { Type } from '@angular/core';\nimport { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\n\nimport { LOADING_PROVIDER } from './services/loading.service';\nimport { LOADING_FACTORY_PROVIDER } from './services/loading.factory';\nimport { TdLoadingDirective } from './directives/loading.directive';\nimport { TdLoadingComponent } from './loading.component';\n\nconst TD_LOADING: Type<any>[] = [TdLoadingComponent, TdLoadingDirective];\n\n@NgModule({\n imports: [\n CommonModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n OverlayModule,\n PortalModule,\n ],\n declarations: [TD_LOADING],\n exports: [TD_LOADING],\n providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER],\n})\nexport class CovalentLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i1.TdLoadingFactory","i1.TdLoadingService"],"mappings":";;;;;;;;;;;;;;;;IASY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,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qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAZjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,oBAAoB;wBACpB,wBAAwB;wBACxB,aAAa;wBACb,YAAY;AACb,qBAAA;oBACD,YAAY,EAAE,CAAC,UAAU,CAAC;oBAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,oBAAA,SAAS,EAAE,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;AACxD,iBAAA;;;AC3BD;;AAEG;;;;"}
1
+ {"version":3,"file":"covalent-core-loading.mjs","sources":["../../../../libs/angular/loading/src/loading.component.html","../../../../libs/angular/loading/src/loading.component.ts","../../../../libs/angular/loading/src/services/loading.factory.ts","../../../../libs/angular/loading/src/services/loading.service.ts","../../../../libs/angular/loading/src/directives/loading.directive.ts","../../../../libs/angular/loading/src/loading.module.ts","../../../../libs/angular/loading/src/covalent-core-loading.ts"],"sourcesContent":["<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div\n [@tdFadeInOut]=\"animation\"\n [style.min-height]=\"getHeight()\"\n class=\"td-loading\"\n >\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar\n *ngIf=\"isLinear()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n ></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n","import {\n Component,\n ChangeDetectorRef,\n ElementRef,\n DoCheck,\n} from '@angular/core';\nimport { tdFadeInOutAnimation } from '@covalent/core/common';\nimport { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatProgressSpinner } from '@angular/material/progress-spinner';\nimport { CommonModule } from '@angular/common';\n\nexport enum LoadingType {\n Circular = 'circular',\n Linear = 'linear',\n}\n\nexport enum LoadingMode {\n Determinate = 'determinate',\n Indeterminate = 'indeterminate',\n}\n\nexport enum LoadingStrategy {\n Overlay = 'overlay',\n Replace = 'replace',\n}\n\nexport enum LoadingStyle {\n FullScreen = 'fullscreen',\n Overlay = 'overlay',\n None = 'none',\n}\n\nexport const TD_CIRCLE_DIAMETER = 40;\n\n@Component({\n selector: 'td-loading',\n styleUrls: ['./loading.component.scss'],\n templateUrl: './loading.component.html',\n animations: [tdFadeInOutAnimation],\n imports: [\n CommonModule,\n MatProgressBar,\n MatProgressSpinner,\n CdkPortalOutlet,\n ],\n})\nexport class TdLoadingComponent implements DoCheck {\n private _mode: LoadingMode = LoadingMode.Indeterminate;\n private _defaultMode: LoadingMode = LoadingMode.Indeterminate;\n private _value = 0;\n private _circleDiameter: number = TD_CIRCLE_DIAMETER;\n\n /**\n * Flag for animation\n */\n animation = false;\n\n /**\n * Content injected into loading component.\n */\n content!: TemplatePortal<any>;\n\n /**\n * Sets mode of [TdLoadingComponent] to LoadingMode.Determinate or LoadingMode.Indeterminate\n */\n set mode(mode: LoadingMode) {\n this._defaultMode = mode;\n }\n get mode(): LoadingMode {\n return this._mode;\n }\n\n /**\n * Sets value of [TdLoadingComponent] if mode is 'LoadingMode.Determinate'\n */\n set value(value: number) {\n this._value = value;\n // Check for changes for `OnPush` change detection\n this._changeDetectorRef.markForCheck();\n }\n get value(): number {\n return this._value;\n }\n\n style: LoadingStyle = LoadingStyle.None;\n\n /**\n * height: number\n * Sets height of [TdLoadingComponent].\n */\n height = 100;\n\n /**\n * type: LoadingType\n * Sets type of [TdLoadingComponent] rendered.\n */\n type: LoadingType = LoadingType.Circular;\n\n /**\n * color: primary' | 'accent' | 'warn'\n * Sets theme color of [TdLoadingComponent] rendered.\n */\n color: 'primary' | 'accent' | 'warn' = 'primary';\n\n constructor(\n private _elementRef: ElementRef,\n private _changeDetectorRef: ChangeDetectorRef\n ) {}\n\n ngDoCheck(): void {\n // When overlay is used and the host width has a value greater than 1px\n // set the circle diameter when possible incase the loading component was rendered in a hidden state\n if (this.isOverlay() && this._hostHeight() > 1 && this.animation) {\n this._setCircleDiameter();\n this._changeDetectorRef.markForCheck();\n }\n }\n\n getHeight(): string | undefined {\n // Ignore height if style is `overlay` or `fullscreen`.\n // Add height if child elements have a height and style is `none`, else return default height.\n if (this.isOverlay() || this.isFullScreen()) {\n return undefined;\n } else {\n return this.height ? `${this.height}px` : '150px';\n }\n }\n\n getCircleDiameter(): number {\n return this._circleDiameter;\n }\n\n getCircleStrokeWidth(): number {\n // we calculate the stroke width by setting it as 10% of its diameter\n const strokeWidth: number = this.getCircleDiameter() / 10;\n return Math.abs(strokeWidth);\n }\n\n isCircular(): boolean {\n return this.type === LoadingType.Circular;\n }\n\n isLinear(): boolean {\n return this.type === LoadingType.Linear;\n }\n\n isFullScreen(): boolean {\n return this.style === LoadingStyle.FullScreen;\n }\n\n isOverlay(): boolean {\n return this.style === LoadingStyle.Overlay;\n }\n\n /**\n * Starts in animation and returns an observable for completition event.\n */\n show(): void {\n /* need to switch back to the selected mode, so we have saved it in another variable\n * and then recover it. (issue with protractor)\n */\n this._mode = this._defaultMode;\n // Set values before the animations starts\n this._setCircleDiameter();\n // Check for changes for `OnPush` change detection\n this.animation = true;\n this._changeDetectorRef.markForCheck();\n }\n\n /**\n * Starts out animation and returns an observable for completition event.\n */\n hide(): void {\n this.animation = false;\n /* need to switch back and forth from determinate/indeterminate so the setInterval()\n * inside mat-progress-spinner stops and protractor doesnt timeout waiting to sync.\n */\n this._mode = LoadingMode.Determinate;\n // Check for changes for `OnPush` change detection\n /* little hack to reset the loader value and animation before removing it from DOM\n * else, the loader will appear with prev value when its registered again\n * and will do an animation going prev value to 0.\n */\n this.value = 0;\n // Check for changes for `OnPush` change detection\n this._changeDetectorRef.markForCheck();\n }\n\n /**\n * Calculate the proper diameter for the circle and set it\n */\n private _setCircleDiameter(): void {\n // we set a default diameter of 100 since this is the default in material\n let diameter: number = TD_CIRCLE_DIAMETER;\n // if height is provided, then we take that as diameter\n if (this.height) {\n diameter = this.height;\n // else if its not provided, then we take the host height\n } else if (this.height === undefined) {\n diameter = this._hostHeight();\n }\n // if the diameter is over TD_CIRCLE_DIAMETER, we set TD_CIRCLE_DIAMETER\n if (diameter <= TD_CIRCLE_DIAMETER) {\n this._circleDiameter = Math.floor(diameter);\n } else {\n this._circleDiameter = TD_CIRCLE_DIAMETER;\n }\n }\n\n /**\n * Returns the host height of the loading component\n */\n private _hostHeight(): number {\n if (<HTMLElement>this._elementRef.nativeElement) {\n return (<HTMLElement>(\n this._elementRef.nativeElement\n )).getBoundingClientRect().height;\n }\n return 0;\n }\n}\n","import {\n Injectable,\n ComponentFactoryResolver,\n Provider,\n SkipSelf,\n Optional,\n EmbeddedViewRef,\n} from '@angular/core';\nimport {\n Injector,\n ComponentRef,\n ViewContainerRef,\n TemplateRef,\n} from '@angular/core';\nimport { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\nimport { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\n\nimport { Observable, Subject } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\n\nimport { TdLoadingContext } from '../directives/loading.directive';\nimport { TdLoadingComponent, LoadingStyle } from '../loading.component';\nimport { ITdLoadingConfig } from './loading.service';\n\nexport interface IInternalLoadingOptions extends ITdLoadingConfig {\n height?: number;\n style?: LoadingStyle;\n}\n\nexport interface ILoadingRef {\n observable: Observable<any>;\n componentRef?: ComponentRef<any>;\n subject: Subject<any>;\n times: number;\n}\n\n/**\n * NOTE: @internal usage only.\n */\n@Injectable()\nexport class TdLoadingFactory {\n constructor(\n private _componentFactoryResolver: ComponentFactoryResolver,\n private _overlay: Overlay,\n private _injector: Injector\n ) {}\n\n /**\n * Uses material `Overlay` services to create a DOM element and attach the loading component\n * into it. Leveraging the state and configuration from it.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createFullScreenComponent(options: ITdLoadingConfig): ILoadingRef {\n (<IInternalLoadingOptions>options).height = undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.FullScreen;\n const loadingRef: ILoadingRef = this._initializeContext();\n let loading = false;\n let overlayRef: OverlayRef;\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading) {\n loading = true;\n overlayRef = this._createOverlay();\n loadingRef.componentRef = overlayRef.attach(\n new ComponentPortal(TdLoadingComponent)\n );\n this._mapOptions(options, loadingRef.componentRef?.instance);\n loadingRef.componentRef?.instance.show();\n loadingRef.componentRef?.changeDetectorRef.detectChanges();\n } else if (registered <= 0 && loading) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n loadingRef.componentRef?.destroy();\n overlayRef.detach();\n overlayRef.dispose();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a loading component dynamically and attaches it into the given viewContainerRef.\n * Leverages TemplatePortals from material to inject the template inside of it so it fits\n * perfectly when overlaying it.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createOverlayComponent(\n options: ITdLoadingConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>\n ): ILoadingRef {\n (<IInternalLoadingOptions>options).height = undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.Overlay;\n const loadingRef: ILoadingRef = this._createComponent(options);\n let loading = false;\n\n if (loadingRef.componentRef) {\n loadingRef.componentRef.instance.content = new TemplatePortal(\n templateRef,\n viewContainerRef\n );\n viewContainerRef.clear();\n viewContainerRef.insert(loadingRef.componentRef?.hostView, 0);\n }\n\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading) {\n loading = true;\n loadingRef.componentRef?.instance.show();\n } else if (registered <= 0 && loading) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a loading component dynamically and attaches it into the given viewContainerRef.\n * Replaces the template with the loading component depending if it was registered or resolved.\n *\n * Saves a reference in context to be called when registering/resolving the loading element.\n */\n public createReplaceComponent(\n options: ITdLoadingConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>,\n context: TdLoadingContext\n ): ILoadingRef {\n const nativeElement: HTMLElement = <HTMLElement>(\n templateRef.elementRef.nativeElement\n );\n (<IInternalLoadingOptions>options).height = nativeElement.nextElementSibling\n ? nativeElement.nextElementSibling.scrollHeight\n : undefined;\n (<IInternalLoadingOptions>options).style = LoadingStyle.None;\n const loadingRef: ILoadingRef = this._createComponent(options);\n let loading = false;\n // passing context so when the template is attached, we can keep the reference of the variables\n const contentRef: EmbeddedViewRef<object> =\n viewContainerRef.createEmbeddedView(templateRef, context);\n loadingRef.observable\n .pipe(distinctUntilChanged())\n .subscribe((registered: number) => {\n if (registered > 0 && !loading && loadingRef.componentRef) {\n loading = true;\n // detach the content and attach the loader if loader is there\n const index: number = viewContainerRef.indexOf(\n loadingRef.componentRef.hostView\n );\n if (index < 0) {\n viewContainerRef.detach(viewContainerRef.indexOf(contentRef));\n viewContainerRef.insert(loadingRef.componentRef.hostView, 0);\n }\n loadingRef.componentRef?.instance.show();\n } else if (registered <= 0 && loading && loadingRef.componentRef) {\n loading = false;\n loadingRef.componentRef?.instance.hide();\n // detach loader and attach the content if content is there\n const index: number = viewContainerRef.indexOf(contentRef);\n if (index < 0) {\n viewContainerRef.detach(\n viewContainerRef.indexOf(loadingRef.componentRef.hostView)\n );\n viewContainerRef.insert(contentRef, 0);\n }\n /**\n * Need to call \"markForCheck\" and \"detectChanges\" on attached template, so its detected by parent component when attached\n * with \"OnPush\" change detection\n */\n contentRef.detectChanges();\n contentRef.markForCheck();\n }\n });\n return loadingRef;\n }\n\n /**\n * Creates a fullscreen overlay for the loading usage.\n */\n private _createOverlay(): OverlayRef {\n const state: OverlayConfig = new OverlayConfig();\n state.hasBackdrop = false;\n state.positionStrategy = this._overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically();\n return this._overlay.create(state);\n }\n\n /**\n * Creates a generic component dynamically waiting to be attached to a viewContainerRef.\n */\n private _createComponent(options: IInternalLoadingOptions): ILoadingRef {\n const compRef: ILoadingRef = this._initializeContext();\n compRef.componentRef = this._componentFactoryResolver\n .resolveComponentFactory(TdLoadingComponent)\n .create(this._injector);\n this._mapOptions(options, compRef.componentRef.instance);\n return compRef;\n }\n\n /**\n * Initialize context for loading component.\n */\n private _initializeContext(): ILoadingRef {\n const subject: Subject<any> = new Subject<any>();\n return {\n observable: subject.asObservable(),\n subject,\n componentRef: undefined,\n times: 0,\n };\n }\n\n /**\n * Maps configuration to the loading component instance.\n */\n private _mapOptions(\n options: IInternalLoadingOptions,\n instance: TdLoadingComponent\n ): void {\n if (options.style) {\n instance.style = options.style;\n }\n\n if (options.type !== undefined) {\n instance.type = options.type;\n }\n if (options.height !== undefined) {\n instance.height = options.height;\n }\n if (options.mode !== undefined) {\n instance.mode = options.mode;\n }\n if (options.color !== undefined) {\n instance.color = options.color;\n }\n }\n}\n\nexport function LOADING_FACTORY_PROVIDER_FACTORY(\n parent: TdLoadingFactory,\n componentFactoryResolver: ComponentFactoryResolver,\n overlay: Overlay,\n injector: Injector\n): TdLoadingFactory {\n return (\n parent || new TdLoadingFactory(componentFactoryResolver, overlay, injector)\n );\n}\n\nexport const LOADING_FACTORY_PROVIDER: Provider = {\n // If there is already a service available, use that. Otherwise, provide a new one.\n provide: TdLoadingFactory,\n deps: [\n [new Optional(), new SkipSelf(), TdLoadingFactory],\n ComponentFactoryResolver,\n Overlay,\n Injector,\n ],\n useFactory: LOADING_FACTORY_PROVIDER_FACTORY,\n};\n","import { Injectable, Provider, SkipSelf, Optional } from '@angular/core';\nimport { ViewContainerRef, TemplateRef } from '@angular/core';\n\nimport { TdLoadingContext } from '../directives/loading.directive';\nimport {\n TdLoadingComponent,\n LoadingMode,\n LoadingStrategy,\n LoadingType,\n} from '../loading.component';\nimport { TdLoadingFactory, ILoadingRef } from './loading.factory';\n\nexport interface ITdLoadingConfig {\n name: string;\n type?: LoadingType;\n mode?: LoadingMode;\n color?: 'primary' | 'accent' | 'warn';\n}\n\nexport class TdLoadingConfig implements ITdLoadingConfig {\n name: string;\n type?: LoadingType;\n mode?: LoadingMode;\n color?: 'primary' | 'accent' | 'warn';\n\n constructor(config: ITdLoadingConfig) {\n this.name = config.name;\n if (!this.name) {\n throw Error('Name is required for [TdLoading] configuration.');\n }\n this.mode = config.mode ? config.mode : LoadingMode.Indeterminate;\n this.type = config.type ? config.type : LoadingType.Circular;\n this.color = config.color ? config.color : 'primary';\n }\n}\n\nexport interface ITdLoadingDirectiveConfig extends ITdLoadingConfig {\n strategy?: LoadingStrategy;\n}\n\nexport class TdLoadingDirectiveConfig\n extends TdLoadingConfig\n implements ITdLoadingDirectiveConfig\n{\n strategy: LoadingStrategy;\n\n constructor(config: ITdLoadingDirectiveConfig) {\n super(config);\n this.strategy = config.strategy ? config.strategy : LoadingStrategy.Replace;\n }\n}\n\n@Injectable()\nexport class TdLoadingService {\n private _context: { [key: string]: ILoadingRef } = {};\n private _timeouts: { [key: string]: any } = {};\n\n constructor(private _loadingFactory: TdLoadingFactory) {\n this.create({\n name: 'td-loading-main',\n });\n }\n\n /**\n * params:\n * - config: ILoadingDirectiveConfig\n * - viewContainerRef: ViewContainerRef\n * - templateRef: TemplateRef<Object>\n *\n * Creates an replace loading mask and attaches it to the viewContainerRef.\n * Replaces the templateRef with the mask when a request is registered on it.\n *\n * NOTE: @internal usage only.\n */\n createComponent(\n config: ITdLoadingDirectiveConfig,\n viewContainerRef: ViewContainerRef,\n templateRef: TemplateRef<object>,\n context: TdLoadingContext\n ): ILoadingRef {\n const directiveConfig: TdLoadingDirectiveConfig =\n new TdLoadingDirectiveConfig(config);\n if (this._context[directiveConfig.name]) {\n throw Error(\n `Name duplication: [TdLoading] directive has a name conflict with ${directiveConfig.name}.`\n );\n }\n if (directiveConfig.strategy === LoadingStrategy.Overlay) {\n this._context[directiveConfig.name] =\n this._loadingFactory.createOverlayComponent(\n directiveConfig,\n viewContainerRef,\n templateRef\n );\n } else {\n this._context[directiveConfig.name] =\n this._loadingFactory.createReplaceComponent(\n directiveConfig,\n viewContainerRef,\n templateRef,\n context\n );\n }\n return this._context[directiveConfig.name];\n }\n\n /**\n * params:\n * - config: ITdLoadingConfig\n *\n * Creates a fullscreen loading mask and attaches it to the DOM with the given configuration.\n * Only displayed when the mask has a request registered on it.\n */\n public create(config: ITdLoadingConfig): void {\n const fullscreenConfig: TdLoadingConfig = new TdLoadingConfig(config);\n this.removeComponent(fullscreenConfig.name);\n this._context[fullscreenConfig.name] =\n this._loadingFactory.createFullScreenComponent(fullscreenConfig);\n }\n\n /**\n * params:\n * - name: string\n *\n * Removes `loading` component from service context.\n */\n public removeComponent(name: string): void {\n if (this._context[name]) {\n this._context[name].subject.unsubscribe();\n if (this._context[name].componentRef) {\n this._context[name].componentRef?.destroy();\n }\n delete this._context[name];\n }\n }\n\n /**\n * params:\n * - name: string\n * - registers?: number\n * returns: true if successful\n *\n * Resolves a request for the loading mask referenced by the name parameter.\n * Can optionally pass registers argument to set a number of register calls.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.register()\n */\n public register(\n name: string = 'td-loading-main',\n registers: number = 1\n ): boolean {\n // try registering into the service if the loading component has been instanciated or if it exists.\n if (this._context[name]) {\n registers = registers < 1 ? 1 : registers;\n this._context[name].times += registers;\n this._context[name].subject.next(this._context[name].times);\n return true;\n } else {\n // if it doesnt exist, set a timeout so its registered after change detection happens\n // this in case \"register\" occured on the `ngOnInit` lifehook cycle.\n if (!this._timeouts[name]) {\n this._timeouts[name] = setTimeout(() => {\n this.register(name, registers);\n });\n } else {\n // if it timeout occured and still doesnt exist, it means the tiemout wasnt needed so we clear it.\n this._clearTimeout(name);\n }\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * - resolves?: number\n * returns: true if successful\n *\n * Resolves a request for the loading mask referenced by the name parameter.\n * Can optionally pass resolves argument to set a number of resolve calls.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.resolve()\n */\n public resolve(\n name: string = 'td-loading-main',\n resolves: number = 1\n ): boolean {\n // clear timeout if the loading component is \"resolved\" before its \"registered\"\n this._clearTimeout(name);\n if (this._context[name]) {\n resolves = resolves < 1 ? 1 : resolves;\n if (this._context[name].times) {\n let times: number = this._context[name].times;\n times -= resolves;\n this._context[name].times = times < 0 ? 0 : times;\n }\n this._context[name].subject?.next(this._context[name].times);\n return true;\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * returns: true if successful\n *\n * Resolves all request for the loading mask referenced by the name parameter.\n *\n * If no paramemeters are used, then default main mask will be used.\n *\n * e.g. loadingService.resolveAll()\n */\n public resolveAll(name: string = 'td-loading-main'): boolean {\n // clear timeout if the loading component is \"resolved\" before its \"registered\"\n this._clearTimeout(name);\n if (this._context[name]) {\n this._context[name].times = 0;\n this._context[name].subject?.next(this._context[name].times);\n return true;\n }\n return false;\n }\n\n /**\n * params:\n * - name: string\n * - value: number\n * returns: true if successful\n *\n * Set value on a loading mask referenced by the name parameter.\n * Usage only available if its mode is 'determinate' and if loading is showing.\n */\n public setValue(name: string, value: number): boolean {\n if (this._context[name]) {\n const instance: TdLoadingComponent =\n this._context[name].componentRef?.instance;\n if (instance.mode === LoadingMode.Determinate && instance.animation) {\n instance.value = value;\n return true;\n }\n }\n return false;\n }\n\n /**\n * Clears timeout linked to the name.\n * @param name Name of the loading component to be cleared\n */\n private _clearTimeout(name: string): void {\n clearTimeout(this._timeouts[name]);\n delete this._timeouts[name];\n }\n}\n\nexport function LOADING_PROVIDER_FACTORY(\n parent: TdLoadingService,\n loadingFactory: TdLoadingFactory\n): TdLoadingService {\n return parent || new TdLoadingService(loadingFactory);\n}\n\nexport const LOADING_PROVIDER: Provider = {\n // If there is already a service available, use that. Otherwise, provide a new one.\n provide: TdLoadingService,\n deps: [[new Optional(), new SkipSelf(), TdLoadingService], TdLoadingFactory],\n useFactory: LOADING_PROVIDER_FACTORY,\n};\n","import { Directive, Input, OnInit, OnDestroy } from '@angular/core';\nimport { ViewContainerRef, TemplateRef } from '@angular/core';\n\nimport {\n LoadingType,\n LoadingMode,\n LoadingStrategy,\n} from '../loading.component';\nimport { TdLoadingService } from '../services/loading.service';\nimport { ILoadingRef } from '../services/loading.factory';\n\n/**\n * Context class for variable reference\n */\nexport class TdLoadingContext {\n public $implicit: any = undefined;\n public tdLoading: any = undefined;\n}\n\n// Constant for generation of the id for the next component\nlet TD_LOADING_NEXT_ID = 0;\n\n@Directive({\n selector: '[tdLoading]',\n})\nexport class TdLoadingDirective implements OnInit, OnDestroy {\n private _context: TdLoadingContext = new TdLoadingContext();\n private _loadingRef?: ILoadingRef;\n\n /**\n * tdLoading: string\n * Name reference of the loading mask, used to register/resolve requests to the mask.\n */\n @Input('tdLoading')\n name!: string;\n\n /**\n * tdLoadingUntil?: any\n * If its null, undefined or false it will be used to register requests to the mask.\n * Else if its any value that can be resolved as true, it will resolve the mask.\n * [name] is optional when using [until], but can still be used to register/resolve it manually.\n */\n @Input('tdLoadingUntil')\n set until(until: any) {\n if (!this.name) {\n this.name = 'td-loading-until-' + TD_LOADING_NEXT_ID++;\n }\n this._context.$implicit = this._context.tdLoading = until;\n if (!until) {\n this._loadingService.register(this.name);\n } else {\n this._loadingService.resolveAll(this.name);\n }\n }\n\n /**\n * tdLoadingType?: LoadingType or ['linear' | 'circular']\n * Sets the type of loading mask depending on value.\n * Defaults to [LoadingType.Circular | 'circular'].\n */\n @Input('tdLoadingType')\n type: LoadingType = LoadingType.Circular;\n\n /**\n * tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']\n * Sets the mode of loading mask depending on value.\n * Defaults to [LoadingMode.Indeterminate | 'indeterminate'].\n */\n @Input('tdLoadingMode') mode: LoadingMode = LoadingMode.Indeterminate;\n\n /**\n * tdLoadingStrategy?: LoadingStrategy or ['replace' | 'overlay']\n * Sets the strategy of loading mask depending on value.\n * Defaults to [LoadingMode.Replace | 'replace'].\n */\n @Input('tdLoadingStrategy')\n strategy: LoadingStrategy.Overlay | LoadingStrategy.Replace =\n LoadingStrategy.Replace;\n\n /**\n * tdLoadingColor?: \"primary\" | \"accent\" | \"warn\"\n * Sets the theme color of the loading component. Defaults to \"primary\"\n */\n @Input('tdLoadingColor') color: 'primary' | 'accent' | 'warn' = 'primary';\n\n constructor(\n private _viewContainerRef: ViewContainerRef,\n private _templateRef: TemplateRef<TdLoadingContext>,\n private _loadingService: TdLoadingService\n ) {}\n\n /**\n * Registers component in the DOM, so it will be available when calling resolve/register.\n */\n ngOnInit(): void {\n this._registerComponent();\n }\n\n /**\n * Remove component when directive is destroyed.\n */\n ngOnDestroy(): void {\n this._loadingService.removeComponent(this.name);\n this._loadingRef = undefined;\n }\n\n /**\n * Creates [TdLoadingComponent] and attaches it to this directive's [ViewContainerRef].\n * Passes this directive's [TemplateRef] to modify DOM depending on loading `strategy`.\n */\n private _registerComponent(): void {\n if (!this.name) {\n throw new Error('Name is needed to register loading directive');\n }\n // Check if `TdLoadingComponent` has been created before trying to add one again.\n // There is a weird edge case when using `[routerLinkActive]` that calls the `ngOnInit` twice in a row\n if (!this._loadingRef) {\n this._loadingRef = this._loadingService.createComponent(\n {\n name: this.name,\n type: this.type,\n mode: this.mode,\n color: this.color,\n strategy: this.strategy,\n },\n this._viewContainerRef,\n this._templateRef,\n this._context\n );\n }\n }\n}\n","import { Type } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { LOADING_PROVIDER } from './services/loading.service';\nimport { LOADING_FACTORY_PROVIDER } from './services/loading.factory';\nimport { TdLoadingDirective } from './directives/loading.directive';\nimport { TdLoadingComponent } from './loading.component';\n\nconst TD_LOADING: Type<any>[] = [TdLoadingComponent, TdLoadingDirective];\n\n@NgModule({\n imports: [TD_LOADING],\n exports: [TD_LOADING],\n providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER],\n})\nexport class CovalentLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i1.TdLoadingFactory","i1.TdLoadingService"],"mappings":";;;;;;;;;;;;;;IAYI,EAOwB,CAAA,SAAA,CAAA,CAAA,EAAA,sBAAA,EAAA,CAAA,CAAA;;;AADtB,IAJA,kCAAa,CACE,OAAA,EAAA,MAAA,CAAA,KAAA,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,KAAA,CACA,wCACiB,CACM,aAAA,EAAA,MAAA,CAAA,oBAAA,EAAA,CAAA;;;IAExC,EAKoB,CAAA,SAAA,CAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;;IAHlB,EAAa,CAAA,UAAA,CAAA,MAAA,EAAA,MAAA,CAAA,IAAA,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,KAAA,CACE,CACA,OAAA,EAAA,MAAA,CAAA,KAAA,CAAA;;;ICZT;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACnB,CAAC,EAHW,WAAW,KAAX,WAAW,GAGtB,EAAA,CAAA,CAAA;IAEW;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,WAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AACjC,CAAC,EAHW,WAAW,KAAX,WAAW,GAGtB,EAAA,CAAA,CAAA;IAEW;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAHW,eAAe,KAAf,eAAe,GAG1B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AA,OAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,SAAA,EAAA,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,YALxB,kBAAkB,CAAA,EAAA,CAAA;;iFAOtC,qBAAqB,EAAA,CAAA;cALjC,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,OAAO,EAAE,CAAC,UAAU,CAAC;gBACrB,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,gBAAA,SAAS,EAAE,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;AACxD,aAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,qBAAqB,cAPD,kBAAkB,EAAE,kBAAkB,CAAtC,EAAA,OAAA,EAAA,CAAA,kBAAkB,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACPvE;;AAEG;;;;"}
@@ -1,33 +1,47 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
- import { MatMenuModule } from '@angular/material/menu';
5
3
  import * as i1 from '@angular/material/divider';
6
4
  import { MatDividerModule } from '@angular/material/divider';
5
+ import { MatMenuModule } from '@angular/material/menu';
7
6
 
7
+ const _c0 = [[["", "td-menu-header", ""]], "*", [["", "td-menu-footer", ""]]];
8
+ const _c1 = ["[td-menu-header]", "*", "[td-menu-footer]"];
8
9
  class TdMenuComponent {
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdMenuComponent, selector: "td-menu", ngImport: i0, template: "<ng-content select=\"[td-menu-header]\"></ng-content>\n<mat-divider></mat-divider>\n<div class=\"td-menu-content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[td-menu-footer]\"></ng-content>\n", styles: [":host{margin-top:-8px;margin-bottom:-8px;box-sizing:border-box;display:flex;flex-direction:column}:host ::ng-deep mat-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-list mat-list-item.mat-2-line,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line{height:auto}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content{height:auto;padding:8px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-right:0}[dir=rtl] :host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-left:0;padding-right:16px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine]{margin-top:4px}.td-menu-content{max-height:50vh;overflow-y:auto}\n"], dependencies: [{ kind: "component", type: i1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }] });
10
+ static ɵfac = function TdMenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdMenuComponent)(); };
11
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdMenuComponent, selectors: [["td-menu"]], ngContentSelectors: _c1, decls: 5, vars: 0, consts: [[1, "td-menu-content"]], template: function TdMenuComponent_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵprojectionDef(_c0);
13
+ i0.ɵɵprojection(0);
14
+ i0.ɵɵelement(1, "mat-divider");
15
+ i0.ɵɵelementStart(2, "div", 0);
16
+ i0.ɵɵprojection(3, 1);
17
+ i0.ɵɵelementEnd();
18
+ i0.ɵɵprojection(4, 2);
19
+ } }, dependencies: [MatMenuModule, MatDividerModule, i1.MatDivider], styles: ["[_nghost-%COMP%]{margin-top:-8px;margin-bottom:-8px;box-sizing:border-box;display:flex;flex-direction:column}[_nghost-%COMP%] mat-list a[mat-list-item].mat-2-line, [_nghost-%COMP%] mat-list mat-list-item.mat-2-line, [_nghost-%COMP%] mat-list[dense] a[mat-list-item].mat-2-line, [_nghost-%COMP%] mat-list[dense] mat-list-item.mat-2-line, [_nghost-%COMP%] mat-nav-list a[mat-list-item].mat-2-line, [_nghost-%COMP%] mat-nav-list mat-list-item.mat-2-line, [_nghost-%COMP%] mat-nav-list[dense] a[mat-list-item].mat-2-line, [_nghost-%COMP%] mat-nav-list[dense] mat-list-item.mat-2-line{height:auto}[_nghost-%COMP%] mat-list a[mat-list-item].mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-list mat-list-item.mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-nav-list mat-list-item.mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content, [_nghost-%COMP%] mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content{height:auto;padding:8px}[_nghost-%COMP%] mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [_nghost-%COMP%] mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-right:0}[dir=rtl] [_nghost-%COMP%] mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text, [dir=rtl] [_nghost-%COMP%] mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-left:0;padding-right:16px}[_nghost-%COMP%] mat-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-nav-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine], [_nghost-%COMP%] mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine]{margin-top:4px}.td-menu-content[_ngcontent-%COMP%]{max-height:50vh;overflow-y:auto}"] });
11
20
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdMenuComponent, decorators: [{
13
- type: Component,
14
- args: [{ selector: 'td-menu', template: "<ng-content select=\"[td-menu-header]\"></ng-content>\n<mat-divider></mat-divider>\n<div class=\"td-menu-content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[td-menu-footer]\"></ng-content>\n", styles: [":host{margin-top:-8px;margin-bottom:-8px;box-sizing:border-box;display:flex;flex-direction:column}:host ::ng-deep mat-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-list mat-list-item.mat-2-line,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line{height:auto}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content{height:auto;padding:8px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-right:0}[dir=rtl] :host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-left:0;padding-right:16px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine]{margin-top:4px}.td-menu-content{max-height:50vh;overflow-y:auto}\n"] }]
15
- }] });
21
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdMenuComponent, [{
22
+ type: Component,
23
+ args: [{ selector: 'td-menu', imports: [MatMenuModule, MatDividerModule], template: "<ng-content select=\"[td-menu-header]\"></ng-content>\n<mat-divider></mat-divider>\n<div class=\"td-menu-content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[td-menu-footer]\"></ng-content>\n", styles: [":host{margin-top:-8px;margin-bottom:-8px;box-sizing:border-box;display:flex;flex-direction:column}:host ::ng-deep mat-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-list mat-list-item.mat-2-line,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line{height:auto}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content{height:auto;padding:8px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-right:0}[dir=rtl] :host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-left:0;padding-right:16px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine]{margin-top:4px}.td-menu-content{max-height:50vh;overflow-y:auto}\n"] }]
24
+ }], null, null); })();
25
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdMenuComponent, { className: "TdMenuComponent", filePath: "menu.component.ts", lineNumber: 11 }); })();
16
26
 
17
27
  const TD_MENU = [TdMenuComponent];
28
+ /**
29
+ * @deprecated This module is deprecated and will be removed in future versions.
30
+ * Please migrate to using standalone components as soon as possible.
31
+ */
18
32
  class CovalentMenuModule {
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentMenuModule, declarations: [TdMenuComponent], imports: [CommonModule, MatMenuModule, MatDividerModule], exports: [TdMenuComponent] });
21
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentMenuModule, imports: [CommonModule, MatMenuModule, MatDividerModule] });
33
+ static ɵfac = function CovalentMenuModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentMenuModule)(); };
34
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentMenuModule });
35
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [TD_MENU] });
22
36
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentMenuModule, decorators: [{
24
- type: NgModule,
25
- args: [{
26
- imports: [CommonModule, MatMenuModule, MatDividerModule],
27
- declarations: [TD_MENU],
28
- exports: [TD_MENU],
29
- }]
30
- }] });
37
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentMenuModule, [{
38
+ type: NgModule,
39
+ args: [{
40
+ imports: [TD_MENU],
41
+ exports: [TD_MENU],
42
+ }]
43
+ }], null, null); })();
44
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentMenuModule, { imports: [TdMenuComponent], exports: [TdMenuComponent] }); })();
31
45
 
32
46
  /**
33
47
  * Generated bundle index. Do not edit.