@covalent/core 9.1.2 → 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 +17 -42
  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,21 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Optional, Host, Input, Output, HostBinding, HostListener, forwardRef, ElementRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Injectable, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
2
+ import { EventEmitter, Directive, Optional, Host, Input, Output, HostBinding, HostListener, ElementRef, forwardRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Injectable, NgModule } from '@angular/core';
3
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
5
4
  import * as i1 from '@angular/forms';
6
5
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
7
- import * as i5 from '@angular/cdk/portal';
8
- import { TemplatePortalDirective, PortalModule } from '@angular/cdk/portal';
9
- import * as i3 from '@angular/material/icon';
10
- import { MatIconModule } from '@angular/material/icon';
11
- import * as i4 from '@angular/material/button';
12
- import { MatButtonModule } from '@angular/material/button';
13
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
6
+ import { TemplatePortalDirective, CdkPortalOutlet } from '@angular/cdk/portal';
14
7
  import { ENTER } from '@angular/cdk/keycodes';
15
8
  import { Subject, merge, fromEvent } from 'rxjs';
16
9
  import { filter, takeUntil, tap } from 'rxjs/operators';
17
10
  import { mixinControlValueAccessor, mixinDisabled } from '@covalent/core/common';
18
- import * as i1$1 from '@angular/common/http';
11
+ import * as i3 from '@angular/material/button';
12
+ import { MatButtonModule } from '@angular/material/button';
13
+ import { MatIcon } from '@angular/material/icon';
14
+ import * as i1$1 from '@angular/common';
15
+ import { CommonModule } from '@angular/common';
16
+ import * as i1$2 from '@angular/common/http';
19
17
  import { HttpRequest, HttpHeaders, HttpParams, HttpEventType } from '@angular/common/http';
20
18
 
21
19
  class TdFileSelectDirective {
@@ -66,29 +64,33 @@ class TdFileSelectDirective {
66
64
  }
67
65
  }
68
66
  }
69
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileSelectDirective, deps: [{ token: i1.NgModel, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
70
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdFileSelectDirective, selector: "[tdFileSelect]", inputs: { multiple: "multiple" }, outputs: { fileSelect: "fileSelect" }, host: { listeners: { "change": "onChange($event)" }, properties: { "attr.multiple": "this.multipleBinding" } }, ngImport: i0 });
67
+ static ɵfac = function TdFileSelectDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileSelectDirective)(i0.ɵɵdirectiveInject(i1.NgModel, 9)); };
68
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdFileSelectDirective, selectors: [["", "tdFileSelect", ""]], hostVars: 1, hostBindings: function TdFileSelectDirective_HostBindings(rf, ctx) { if (rf & 1) {
69
+ i0.ɵɵlistener("change", function TdFileSelectDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
70
+ } if (rf & 2) {
71
+ i0.ɵɵattribute("multiple", ctx.multipleBinding);
72
+ } }, inputs: { multiple: "multiple" }, outputs: { fileSelect: "fileSelect" } });
71
73
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileSelectDirective, decorators: [{
73
- type: Directive,
74
- args: [{
75
- selector: '[tdFileSelect]',
76
- }]
77
- }], ctorParameters: () => [{ type: i1.NgModel, decorators: [{
78
- type: Optional
79
- }, {
80
- type: Host
81
- }] }], propDecorators: { multiple: [{
82
- type: Input
83
- }], fileSelect: [{
84
- type: Output
85
- }], multipleBinding: [{
86
- type: HostBinding,
87
- args: ['attr.multiple']
88
- }], onChange: [{
89
- type: HostListener,
90
- args: ['change', ['$event']]
91
- }] } });
74
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileSelectDirective, [{
75
+ type: Directive,
76
+ args: [{
77
+ selector: '[tdFileSelect]',
78
+ }]
79
+ }], () => [{ type: i1.NgModel, decorators: [{
80
+ type: Optional
81
+ }, {
82
+ type: Host
83
+ }] }], { multiple: [{
84
+ type: Input
85
+ }], fileSelect: [{
86
+ type: Output
87
+ }], multipleBinding: [{
88
+ type: HostBinding,
89
+ args: ['attr.multiple']
90
+ }], onChange: [{
91
+ type: HostListener,
92
+ args: ['change', ['$event']]
93
+ }] }); })();
92
94
 
93
95
  class TdFileDropBase {
94
96
  }
@@ -209,42 +211,49 @@ class TdFileDropDirective {
209
211
  event.preventDefault();
210
212
  event.stopPropagation();
211
213
  }
212
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileDropDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
213
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdFileDropDirective, selector: "[tdFileDrop]", inputs: { multiple: "multiple", disabled: "disabled" }, outputs: { fileDrop: "fileDrop" }, host: { listeners: { "drop": "onDrop($event)" }, properties: { "attr.multiple": "this.multipleBinding", "attr.disabled": "this.disabledBinding" } }, ngImport: i0 });
214
+ static ɵfac = function TdFileDropDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileDropDirective)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone)); };
215
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdFileDropDirective, selectors: [["", "tdFileDrop", ""]], hostVars: 2, hostBindings: function TdFileDropDirective_HostBindings(rf, ctx) { if (rf & 1) {
216
+ i0.ɵɵlistener("drop", function TdFileDropDirective_drop_HostBindingHandler($event) { return ctx.onDrop($event); });
217
+ } if (rf & 2) {
218
+ i0.ɵɵattribute("multiple", ctx.multipleBinding)("disabled", ctx.disabledBinding);
219
+ } }, inputs: { multiple: "multiple", disabled: "disabled" }, outputs: { fileDrop: "fileDrop" } });
214
220
  }
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileDropDirective, decorators: [{
216
- type: Directive,
217
- args: [{ selector: '[tdFileDrop]' }]
218
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { multiple: [{
219
- type: Input
220
- }], disabled: [{
221
- type: Input
222
- }], fileDrop: [{
223
- type: Output
224
- }], multipleBinding: [{
225
- type: HostBinding,
226
- args: ['attr.multiple']
227
- }], disabledBinding: [{
228
- type: HostBinding,
229
- args: ['attr.disabled']
230
- }], onDrop: [{
231
- type: HostListener,
232
- args: ['drop', ['$event']]
233
- }] } });
221
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileDropDirective, [{
222
+ type: Directive,
223
+ args: [{ selector: '[tdFileDrop]' }]
224
+ }], () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }], { multiple: [{
225
+ type: Input
226
+ }], disabled: [{
227
+ type: Input
228
+ }], fileDrop: [{
229
+ type: Output
230
+ }], multipleBinding: [{
231
+ type: HostBinding,
232
+ args: ['attr.multiple']
233
+ }], disabledBinding: [{
234
+ type: HostBinding,
235
+ args: ['attr.disabled']
236
+ }], onDrop: [{
237
+ type: HostListener,
238
+ args: ['drop', ['$event']]
239
+ }] }); })();
234
240
 
241
+ const _c0$1 = ["fileInputButton"];
242
+ const _c1 = ["fileInput"];
243
+ const _c2 = ["*"];
235
244
  class TdFileInputLabelDirective extends TemplatePortalDirective {
236
245
  constructor(templateRef, viewContainerRef) {
237
246
  super(templateRef, viewContainerRef);
238
247
  }
239
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileInputLabelDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
240
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdFileInputLabelDirective, selector: "[tdFileInputLabel]ng-template", usesInheritance: true, ngImport: i0 });
248
+ static ɵfac = function TdFileInputLabelDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileInputLabelDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
249
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdFileInputLabelDirective, selectors: [["ng-template", "tdFileInputLabel", ""]], features: [i0.ɵɵInheritDefinitionFeature] });
241
250
  }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileInputLabelDirective, decorators: [{
243
- type: Directive,
244
- args: [{
245
- selector: '[tdFileInputLabel]ng-template',
246
- }]
247
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }] });
251
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileInputLabelDirective, [{
252
+ type: Directive,
253
+ args: [{
254
+ selector: '[tdFileInputLabel]ng-template',
255
+ }]
256
+ }], () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }], null); })();
248
257
  class TdFileInputBase {
249
258
  _changeDetectorRef;
250
259
  constructor(_changeDetectorRef) {
@@ -332,40 +341,97 @@ class TdFileInputComponent extends _TdFileInputMixinBase {
332
341
  setDisabledState(isDisabled) {
333
342
  this.disabled = isDisabled;
334
343
  }
335
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileInputComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
336
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdFileInputComponent, selector: "td-file-input", inputs: { disabled: "disabled", value: "value", color: "color", multiple: "multiple", accept: "accept" }, outputs: { selectFile: "selectFile" }, providers: [
337
- {
338
- provide: NG_VALUE_ACCESSOR,
339
- useExisting: forwardRef(() => TdFileInputComponent),
340
- multi: true,
341
- },
342
- ], viewQueries: [{ propertyName: "_inputButton", first: true, predicate: ["fileInputButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "_inputElement", first: true, predicate: ["fileInput"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button\n #fileInputButton\n mat-stroked-button\n class=\"td-file-input\"\n type=\"button\"\n [color]=\"color\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n (fileDrop)=\"handleSelect($event)\"\n tdFileDrop\n>\n <ng-content></ng-content>\n</button>\n<input\n #fileInput\n class=\"td-file-input-hidden\"\n type=\"file\"\n [attr.accept]=\"accept\"\n (fileSelect)=\"handleSelect($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n tdFileSelect\n/>\n", styles: [":host .td-file-input{padding-left:8px;padding-right:8px}:host input.td-file-input-hidden{display:none}:host ::ng-deep .mdc-button__label{display:flex;align-items:center}:host .drop-zone{border-radius:3px}:host .drop-zone *{pointer-events:none}\n"], dependencies: [{ kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: TdFileSelectDirective, selector: "[tdFileSelect]", inputs: ["multiple"], outputs: ["fileSelect"] }, { kind: "directive", type: TdFileDropDirective, selector: "[tdFileDrop]", inputs: ["multiple", "disabled"], outputs: ["fileDrop"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
344
+ static ɵfac = function TdFileInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileInputComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
345
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdFileInputComponent, selectors: [["td-file-input"]], viewQuery: function TdFileInputComponent_Query(rf, ctx) { if (rf & 1) {
346
+ i0.ɵɵviewQuery(_c0$1, 7, ElementRef);
347
+ i0.ɵɵviewQuery(_c1, 7);
348
+ } if (rf & 2) {
349
+ let _t;
350
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._inputButton = _t.first);
351
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._inputElement = _t.first);
352
+ } }, inputs: { disabled: "disabled", value: "value", color: "color", multiple: "multiple", accept: "accept" }, outputs: { selectFile: "selectFile" }, features: [i0.ɵɵProvidersFeature([
353
+ {
354
+ provide: NG_VALUE_ACCESSOR,
355
+ useExisting: forwardRef(() => TdFileInputComponent),
356
+ multi: true,
357
+ },
358
+ ]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2, decls: 5, vars: 6, consts: [["fileInputButton", ""], ["fileInput", ""], ["mat-stroked-button", "", "type", "button", "tdFileDrop", "", 1, "td-file-input", 3, "fileDrop", "color", "multiple", "disabled"], ["type", "file", "tdFileSelect", "", 1, "td-file-input-hidden", 3, "fileSelect", "multiple", "disabled"]], template: function TdFileInputComponent_Template(rf, ctx) { if (rf & 1) {
359
+ const _r1 = i0.ɵɵgetCurrentView();
360
+ i0.ɵɵprojectionDef();
361
+ i0.ɵɵelementStart(0, "button", 2, 0);
362
+ i0.ɵɵlistener("fileDrop", function TdFileInputComponent_Template_button_fileDrop_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSelect($event)); });
363
+ i0.ɵɵprojection(2);
364
+ i0.ɵɵelementEnd();
365
+ i0.ɵɵelementStart(3, "input", 3, 1);
366
+ i0.ɵɵlistener("fileSelect", function TdFileInputComponent_Template_input_fileSelect_3_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSelect($event)); });
367
+ i0.ɵɵelementEnd();
368
+ } if (rf & 2) {
369
+ i0.ɵɵproperty("color", ctx.color)("multiple", ctx.multiple)("disabled", ctx.disabled);
370
+ i0.ɵɵadvance(3);
371
+ i0.ɵɵproperty("multiple", ctx.multiple)("disabled", ctx.disabled);
372
+ i0.ɵɵattribute("accept", ctx.accept);
373
+ } }, dependencies: [MatButtonModule, i3.MatButton, TdFileDropDirective, TdFileSelectDirective], styles: ["[_nghost-%COMP%] .td-file-input[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}[_nghost-%COMP%] input.td-file-input-hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .mdc-button__label{display:flex;align-items:center}[_nghost-%COMP%] .drop-zone[_ngcontent-%COMP%]{border-radius:3px}[_nghost-%COMP%] .drop-zone[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}"], changeDetection: 0 });
343
374
  }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileInputComponent, decorators: [{
345
- type: Component,
346
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
347
- {
348
- provide: NG_VALUE_ACCESSOR,
349
- useExisting: forwardRef(() => TdFileInputComponent),
350
- multi: true,
351
- },
352
- ], selector: 'td-file-input', inputs: ['disabled', 'value'], template: "<button\n #fileInputButton\n mat-stroked-button\n class=\"td-file-input\"\n type=\"button\"\n [color]=\"color\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n (fileDrop)=\"handleSelect($event)\"\n tdFileDrop\n>\n <ng-content></ng-content>\n</button>\n<input\n #fileInput\n class=\"td-file-input-hidden\"\n type=\"file\"\n [attr.accept]=\"accept\"\n (fileSelect)=\"handleSelect($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n tdFileSelect\n/>\n", styles: [":host .td-file-input{padding-left:8px;padding-right:8px}:host input.td-file-input-hidden{display:none}:host ::ng-deep .mdc-button__label{display:flex;align-items:center}:host .drop-zone{border-radius:3px}:host .drop-zone *{pointer-events:none}\n"] }]
353
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { _inputButton: [{
354
- type: ViewChild,
355
- args: ['fileInputButton', { static: true, read: ElementRef }]
356
- }], _inputElement: [{
357
- type: ViewChild,
358
- args: ['fileInput', { static: true }]
359
- }], color: [{
360
- type: Input
361
- }], multiple: [{
362
- type: Input
363
- }], accept: [{
364
- type: Input
365
- }], selectFile: [{
366
- type: Output
367
- }] } });
375
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileInputComponent, [{
376
+ type: Component,
377
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
378
+ {
379
+ provide: NG_VALUE_ACCESSOR,
380
+ useExisting: forwardRef(() => TdFileInputComponent),
381
+ multi: true,
382
+ },
383
+ ], selector: 'td-file-input', inputs: ['disabled', 'value'], imports: [MatButtonModule, TdFileDropDirective, TdFileSelectDirective], template: "<button\n #fileInputButton\n mat-stroked-button\n class=\"td-file-input\"\n type=\"button\"\n [color]=\"color\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n (fileDrop)=\"handleSelect($event)\"\n tdFileDrop\n>\n <ng-content></ng-content>\n</button>\n<input\n #fileInput\n class=\"td-file-input-hidden\"\n type=\"file\"\n [attr.accept]=\"accept\"\n (fileSelect)=\"handleSelect($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n tdFileSelect\n/>\n", styles: [":host .td-file-input{padding-left:8px;padding-right:8px}:host input.td-file-input-hidden{display:none}:host ::ng-deep .mdc-button__label{display:flex;align-items:center}:host .drop-zone{border-radius:3px}:host .drop-zone *{pointer-events:none}\n"] }]
384
+ }], () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], { _inputButton: [{
385
+ type: ViewChild,
386
+ args: ['fileInputButton', { static: true, read: ElementRef }]
387
+ }], _inputElement: [{
388
+ type: ViewChild,
389
+ args: ['fileInput', { static: true }]
390
+ }], color: [{
391
+ type: Input
392
+ }], multiple: [{
393
+ type: Input
394
+ }], accept: [{
395
+ type: Input
396
+ }], selectFile: [{
397
+ type: Output
398
+ }] }); })();
399
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdFileInputComponent, { className: "TdFileInputComponent", filePath: "file-input/file-input.component.ts", lineNumber: 71 }); })();
368
400
 
401
+ const _c0 = ["*"];
402
+ function TdFileUploadComponent_td_file_input_0_ng_template_1_Template(rf, ctx) { }
403
+ function TdFileUploadComponent_td_file_input_0_Template(rf, ctx) { if (rf & 1) {
404
+ const _r1 = i0.ɵɵgetCurrentView();
405
+ i0.ɵɵelementStart(0, "td-file-input", 3);
406
+ i0.ɵɵtwoWayListener("ngModelChange", function TdFileUploadComponent_td_file_input_0_Template_td_file_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.value, $event) || (ctx_r1.value = $event); return i0.ɵɵresetView($event); });
407
+ i0.ɵɵlistener("selectFile", function TdFileUploadComponent_td_file_input_0_Template_td_file_input_selectFile_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleSelect(ctx_r1.value)); });
408
+ i0.ɵɵtemplate(1, TdFileUploadComponent_td_file_input_0_ng_template_1_Template, 0, 0, "ng-template", 4);
409
+ i0.ɵɵelementEnd();
410
+ } if (rf & 2) {
411
+ const ctx_r1 = i0.ɵɵnextContext();
412
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.value);
413
+ i0.ɵɵproperty("multiple", ctx_r1.multiple)("disabled", ctx_r1.disabled)("accept", ctx_r1.accept)("color", ctx_r1.defaultColor);
414
+ i0.ɵɵadvance();
415
+ i0.ɵɵproperty("cdkPortalOutlet", ctx_r1.inputLabel)("ngIf", true);
416
+ } }
417
+ function TdFileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
418
+ const _r3 = i0.ɵɵgetCurrentView();
419
+ i0.ɵɵelementStart(0, "div")(1, "button", 5, 0);
420
+ i0.ɵɵlistener("keyup.delete", function TdFileUploadComponent_div_1_Template_button_keyup_delete_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._cancel()); })("keyup.backspace", function TdFileUploadComponent_div_1_Template_button_keyup_backspace_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._cancel()); })("keyup.escape", function TdFileUploadComponent_div_1_Template_button_keyup_escape_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._cancel()); })("click", function TdFileUploadComponent_div_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.uploadPressed()); });
421
+ i0.ɵɵprojection(3);
422
+ i0.ɵɵelementEnd();
423
+ i0.ɵɵelementStart(4, "button", 6);
424
+ i0.ɵɵlistener("click", function TdFileUploadComponent_div_1_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._cancel()); });
425
+ i0.ɵɵelementStart(5, "mat-icon");
426
+ i0.ɵɵtext(6, "cancel");
427
+ i0.ɵɵelementEnd()()();
428
+ } if (rf & 2) {
429
+ const ctx_r1 = i0.ɵɵnextContext();
430
+ i0.ɵɵadvance();
431
+ i0.ɵɵproperty("color", ctx_r1.activeColor);
432
+ i0.ɵɵadvance(3);
433
+ i0.ɵɵproperty("color", ctx_r1.cancelColor);
434
+ } }
369
435
  class TdFileUploadBase {
370
436
  _changeDetectorRef;
371
437
  constructor(_changeDetectorRef) {
@@ -495,53 +561,71 @@ class TdFileUploadComponent {
495
561
  this._cancel();
496
562
  }
497
563
  }
498
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
499
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdFileUploadComponent, selector: "td-file-upload", inputs: { defaultColor: "defaultColor", activeColor: "activeColor", cancelColor: "cancelColor", multiple: "multiple", required: "required", accept: "accept", disabled: "disabled", value: "value" }, outputs: { selectFile: "selectFile", upload: "upload", cancel: "cancel" }, providers: [
500
- {
501
- provide: NG_VALUE_ACCESSOR,
502
- useExisting: forwardRef(() => TdFileUploadComponent),
503
- multi: true,
504
- },
505
- ], queries: [{ propertyName: "inputLabel", first: true, predicate: TdFileInputLabelDirective, descendants: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: TdFileInputComponent, descendants: true }], ngImport: i0, template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (selectFile)=\"handleSelect(value)\"\n>\n <ng-template [cdkPortalOutlet]=\"inputLabel\" [ngIf]=\"true\"></ng-template>\n</td-file-input>\n<div *ngIf=\"value\">\n <button\n #fileUpload\n class=\"td-file-upload\"\n mat-raised-button\n type=\"button\"\n [color]=\"activeColor\"\n (keyup.delete)=\"_cancel()\"\n (keyup.backspace)=\"_cancel()\"\n (keyup.escape)=\"_cancel()\"\n (click)=\"uploadPressed()\"\n >\n <ng-content></ng-content>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-file-upload-cancel\"\n [color]=\"cancelColor\"\n (click)=\"_cancel()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n", styles: [".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;width:24px;position:relative;top:24px;left:-12px}::ng-deep [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: TdFileInputComponent, selector: "td-file-input", inputs: ["disabled", "value", "color", "multiple", "accept"], outputs: ["selectFile"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
564
+ static ɵfac = function TdFileUploadComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileUploadComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
565
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdFileUploadComponent, selectors: [["td-file-upload"]], contentQueries: function TdFileUploadComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
566
+ i0.ɵɵcontentQuery(dirIndex, TdFileInputLabelDirective, 5);
567
+ } if (rf & 2) {
568
+ let _t;
569
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputLabel = _t.first);
570
+ } }, viewQuery: function TdFileUploadComponent_Query(rf, ctx) { if (rf & 1) {
571
+ i0.ɵɵviewQuery(TdFileInputComponent, 5);
572
+ } if (rf & 2) {
573
+ let _t;
574
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
575
+ } }, inputs: { defaultColor: "defaultColor", activeColor: "activeColor", cancelColor: "cancelColor", multiple: "multiple", required: "required", accept: "accept", disabled: "disabled", value: "value" }, outputs: { selectFile: "selectFile", upload: "upload", cancel: "cancel" }, features: [i0.ɵɵProvidersFeature([
576
+ {
577
+ provide: NG_VALUE_ACCESSOR,
578
+ useExisting: forwardRef(() => TdFileUploadComponent),
579
+ multi: true,
580
+ },
581
+ ])], ngContentSelectors: _c0, decls: 2, vars: 2, consts: [["fileUpload", ""], [3, "ngModel", "multiple", "disabled", "accept", "color", "ngModelChange", "selectFile", 4, "ngIf"], [4, "ngIf"], [3, "ngModelChange", "selectFile", "ngModel", "multiple", "disabled", "accept", "color"], [3, "cdkPortalOutlet", "ngIf"], ["mat-raised-button", "", "type", "button", 1, "td-file-upload", 3, "keyup.delete", "keyup.backspace", "keyup.escape", "click", "color"], ["mat-icon-button", "", "type", "button", 1, "td-file-upload-cancel", 3, "click", "color"]], template: function TdFileUploadComponent_Template(rf, ctx) { if (rf & 1) {
582
+ i0.ɵɵprojectionDef();
583
+ i0.ɵɵtemplate(0, TdFileUploadComponent_td_file_input_0_Template, 2, 7, "td-file-input", 1)(1, TdFileUploadComponent_div_1_Template, 7, 2, "div", 2);
584
+ } if (rf & 2) {
585
+ i0.ɵɵproperty("ngIf", !ctx.value);
586
+ i0.ɵɵadvance();
587
+ i0.ɵɵproperty("ngIf", ctx.value);
588
+ } }, dependencies: [CommonModule, i1$1.NgIf, FormsModule, i1.NgControlStatus, i1.NgModel, TdFileInputComponent, MatButtonModule, i3.MatButton, i3.MatIconButton, MatIcon, CdkPortalOutlet], styles: [".td-file-upload[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}.td-file-upload-cancel[_ngcontent-%COMP%]{height:24px;width:24px;position:relative;top:24px;left:-12px} [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{border-radius:12px;vertical-align:baseline}.drop-zone[_ngcontent-%COMP%]{border-radius:3px}.drop-zone[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}"], changeDetection: 0 });
506
589
  }
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileUploadComponent, decorators: [{
508
- type: Component,
509
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
510
- {
511
- provide: NG_VALUE_ACCESSOR,
512
- useExisting: forwardRef(() => TdFileUploadComponent),
513
- multi: true,
514
- },
515
- ], selector: 'td-file-upload', template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (selectFile)=\"handleSelect(value)\"\n>\n <ng-template [cdkPortalOutlet]=\"inputLabel\" [ngIf]=\"true\"></ng-template>\n</td-file-input>\n<div *ngIf=\"value\">\n <button\n #fileUpload\n class=\"td-file-upload\"\n mat-raised-button\n type=\"button\"\n [color]=\"activeColor\"\n (keyup.delete)=\"_cancel()\"\n (keyup.backspace)=\"_cancel()\"\n (keyup.escape)=\"_cancel()\"\n (click)=\"uploadPressed()\"\n >\n <ng-content></ng-content>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-file-upload-cancel\"\n [color]=\"cancelColor\"\n (click)=\"_cancel()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n", styles: [".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;width:24px;position:relative;top:24px;left:-12px}::ng-deep [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}\n"] }]
516
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { fileInput: [{
517
- type: ViewChild,
518
- args: [TdFileInputComponent]
519
- }], inputLabel: [{
520
- type: ContentChild,
521
- args: [TdFileInputLabelDirective]
522
- }], defaultColor: [{
523
- type: Input
524
- }], activeColor: [{
525
- type: Input
526
- }], cancelColor: [{
527
- type: Input
528
- }], multiple: [{
529
- type: Input
530
- }], required: [{
531
- type: Input
532
- }], accept: [{
533
- type: Input
534
- }], disabled: [{
535
- type: Input
536
- }], value: [{
537
- type: Input
538
- }], selectFile: [{
539
- type: Output
540
- }], upload: [{
541
- type: Output
542
- }], cancel: [{
543
- type: Output
544
- }] } });
590
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileUploadComponent, [{
591
+ type: Component,
592
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
593
+ {
594
+ provide: NG_VALUE_ACCESSOR,
595
+ useExisting: forwardRef(() => TdFileUploadComponent),
596
+ multi: true,
597
+ },
598
+ ], selector: 'td-file-upload', imports: [CommonModule, FormsModule, TdFileInputComponent, MatButtonModule, MatIcon, CdkPortalOutlet], template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (selectFile)=\"handleSelect(value)\"\n>\n <ng-template [cdkPortalOutlet]=\"inputLabel\" [ngIf]=\"true\"></ng-template>\n</td-file-input>\n<div *ngIf=\"value\">\n <button\n #fileUpload\n class=\"td-file-upload\"\n mat-raised-button\n type=\"button\"\n [color]=\"activeColor\"\n (keyup.delete)=\"_cancel()\"\n (keyup.backspace)=\"_cancel()\"\n (keyup.escape)=\"_cancel()\"\n (click)=\"uploadPressed()\"\n >\n <ng-content></ng-content>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-file-upload-cancel\"\n [color]=\"cancelColor\"\n (click)=\"_cancel()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n", styles: [".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;width:24px;position:relative;top:24px;left:-12px}::ng-deep [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}\n"] }]
599
+ }], () => [{ type: i0.ChangeDetectorRef }], { fileInput: [{
600
+ type: ViewChild,
601
+ args: [TdFileInputComponent]
602
+ }], inputLabel: [{
603
+ type: ContentChild,
604
+ args: [TdFileInputLabelDirective]
605
+ }], defaultColor: [{
606
+ type: Input
607
+ }], activeColor: [{
608
+ type: Input
609
+ }], cancelColor: [{
610
+ type: Input
611
+ }], multiple: [{
612
+ type: Input
613
+ }], required: [{
614
+ type: Input
615
+ }], accept: [{
616
+ type: Input
617
+ }], disabled: [{
618
+ type: Input
619
+ }], value: [{
620
+ type: Input
621
+ }], selectFile: [{
622
+ type: Output
623
+ }], upload: [{
624
+ type: Output
625
+ }], cancel: [{
626
+ type: Output
627
+ }] }); })();
628
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdFileUploadComponent, { className: "TdFileUploadComponent", filePath: "file-upload/file-upload.component.ts", lineNumber: 41 }); })();
545
629
 
546
630
  class TdFileService {
547
631
  _http;
@@ -594,14 +678,14 @@ class TdFileService {
594
678
  break;
595
679
  }
596
680
  }
597
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileService, deps: [{ token: i1$1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
598
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileService });
681
+ static ɵfac = function TdFileService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdFileService)(i0.ɵɵinject(i1$2.HttpClient, 8)); };
682
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: TdFileService, factory: TdFileService.ɵfac });
599
683
  }
600
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdFileService, decorators: [{
601
- type: Injectable
602
- }], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
603
- type: Optional
604
- }] }] });
684
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileService, [{
685
+ type: Injectable
686
+ }], () => [{ type: i1$2.HttpClient, decorators: [{
687
+ type: Optional
688
+ }] }], null); })();
605
689
 
606
690
  const TD_FILE = [
607
691
  TdFileSelectDirective,
@@ -610,42 +694,33 @@ const TD_FILE = [
610
694
  TdFileInputComponent,
611
695
  TdFileInputLabelDirective,
612
696
  ];
697
+ /**
698
+ * @deprecated This module is deprecated and will be removed in future versions.
699
+ * Please migrate to using standalone components as soon as possible.
700
+ */
613
701
  class CovalentFileModule {
614
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
615
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentFileModule, declarations: [TdFileSelectDirective,
616
- TdFileDropDirective,
617
- TdFileUploadComponent,
618
- TdFileInputComponent,
619
- TdFileInputLabelDirective], imports: [FormsModule,
620
- CommonModule,
621
- MatIconModule,
622
- MatButtonModule,
623
- PortalModule], exports: [TdFileSelectDirective,
624
- TdFileDropDirective,
625
- TdFileUploadComponent,
626
- TdFileInputComponent,
627
- TdFileInputLabelDirective] });
628
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentFileModule, providers: [TdFileService], imports: [FormsModule,
629
- CommonModule,
630
- MatIconModule,
631
- MatButtonModule,
632
- PortalModule] });
702
+ static ɵfac = function CovalentFileModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentFileModule)(); };
703
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentFileModule });
704
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [TdFileService], imports: [TdFileUploadComponent,
705
+ TdFileInputComponent] });
633
706
  }
634
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentFileModule, decorators: [{
635
- type: NgModule,
636
- args: [{
637
- imports: [
638
- FormsModule,
639
- CommonModule,
640
- MatIconModule,
641
- MatButtonModule,
642
- PortalModule,
643
- ],
644
- declarations: [TD_FILE],
645
- exports: [TD_FILE],
646
- providers: [TdFileService],
647
- }]
648
- }] });
707
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentFileModule, [{
708
+ type: NgModule,
709
+ args: [{
710
+ imports: [TD_FILE],
711
+ exports: [TD_FILE],
712
+ providers: [TdFileService],
713
+ }]
714
+ }], null, null); })();
715
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentFileModule, { imports: [TdFileSelectDirective,
716
+ TdFileDropDirective,
717
+ TdFileUploadComponent,
718
+ TdFileInputComponent,
719
+ TdFileInputLabelDirective], exports: [TdFileSelectDirective,
720
+ TdFileDropDirective,
721
+ TdFileUploadComponent,
722
+ TdFileInputComponent,
723
+ TdFileInputLabelDirective] }); })();
649
724
 
650
725
  /**
651
726
  * Generated bundle index. Do not edit.