@covalent/core 9.1.3 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,22 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, forwardRef, ElementRef, Component, ChangeDetectionStrategy, Optional, ViewChild, Input, Output, NgModule } from '@angular/core';
3
- import * as i2$1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
2
+ import { EventEmitter, ElementRef, forwardRef, Component, ChangeDetectionStrategy, Optional, ViewChild, Input, Output, NgModule } from '@angular/core';
3
+ import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
5
4
  import * as i2 from '@angular/forms';
6
5
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
7
- import * as i3 from '@angular/material/input';
8
- import { MatInput, MatInputModule } from '@angular/material/input';
9
- import * as i5 from '@angular/material/icon';
10
- import { MatIconModule } from '@angular/material/icon';
11
- import * as i6 from '@angular/material/button';
12
- import { MatButtonModule } from '@angular/material/button';
13
- import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
14
6
  import * as i1 from '@angular/cdk/bidi';
7
+ import { MatInput } from '@angular/material/input';
8
+ import { MatFormField } from '@angular/material/form-field';
15
9
  import { Subject, fromEvent, noop } from 'rxjs';
16
10
  import { debounceTime, skip, takeUntil } from 'rxjs/operators';
17
11
  import { mixinControlValueAccessor } from '@covalent/core/common';
18
- import * as i4 from '@angular/material/form-field';
12
+ import { MatIcon } from '@angular/material/icon';
13
+ import * as i1$1 from '@angular/common';
14
+ import { CommonModule } from '@angular/common';
15
+ import { MatIconButton } from '@angular/material/button';
19
16
 
17
+ const _c0$1 = ["searchElement"];
18
+ function TdSearchInputComponent_ng_template_8_Template(rf, ctx) { }
20
19
  class TdSearchInputBase {
21
20
  _changeDetectorRef;
22
21
  constructor(_changeDetectorRef) {
@@ -133,94 +132,145 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
133
132
  _stopPropagation(event) {
134
133
  event.stopPropagation();
135
134
  }
136
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSearchInputComponent, deps: [{ token: i1.Dir, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
137
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdSearchInputComponent, selector: "td-search-input", inputs: { appearance: "appearance", showUnderline: "showUnderline", debounce: "debounce", placeholder: "placeholder", clearIcon: "clearIcon", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, providers: [
138
- {
139
- provide: NG_VALUE_ACCESSOR,
140
- useExisting: forwardRef(() => TdSearchInputComponent),
141
- multi: true,
142
- },
143
- ], viewQueries: [{ propertyName: "_input", first: true, predicate: MatInput, descendants: true, static: true }, { propertyName: "_searchElement", first: true, predicate: ["searchElement"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"td-search-input\">\n <mat-form-field\n class=\"td-search-input-field\"\n [class.mat-hide-underline]=\"!showUnderline\"\n [appearance]=\"appearance\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n </mat-form-field>\n <div class=\"td-search-input-clear-wrapper\">\n <button mat-icon-button class=\"td-search-input-clear\" type=\"button\" [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \" (click)=\"clearSearch()\">\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n </div>\n</div>\n\n<ng-template #clearButton>\n \n</ng-template>\n", styles: [":host .td-search-input{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host .td-search-input .td-search-input-field{flex:1}:host .td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-right:48px}:host .td-search-input ::ng-deep mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{margin-left:-48px;margin-right:0;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], animations: [
144
- trigger('searchState', [
145
- state('hide-left', style({
146
- transform: 'translateX(-150%)',
147
- opacity: 0,
148
- display: 'none',
149
- })),
150
- state('hide-right', style({
151
- transform: 'translateX(150%)',
152
- opacity: 0,
153
- display: 'none',
154
- })),
155
- state('show', style({
156
- transform: 'translateX(0%)',
157
- opacity: 1,
158
- display: 'block',
159
- })),
160
- transition('* => show', animate('200ms ease-in')),
161
- transition('show => *', animate('200ms ease-out')),
162
- ]),
163
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
135
+ static ɵfac = function TdSearchInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdSearchInputComponent)(i0.ɵɵdirectiveInject(i1.Dir, 8), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.NgZone)); };
136
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdSearchInputComponent, selectors: [["td-search-input"]], viewQuery: function TdSearchInputComponent_Query(rf, ctx) { if (rf & 1) {
137
+ i0.ɵɵviewQuery(MatInput, 7);
138
+ i0.ɵɵviewQuery(_c0$1, 7, ElementRef);
139
+ } if (rf & 2) {
140
+ let _t;
141
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._input = _t.first);
142
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._searchElement = _t.first);
143
+ } }, inputs: { appearance: "appearance", showUnderline: "showUnderline", debounce: "debounce", placeholder: "placeholder", clearIcon: "clearIcon", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, features: [i0.ɵɵProvidersFeature([
144
+ {
145
+ provide: NG_VALUE_ACCESSOR,
146
+ useExisting: forwardRef(() => TdSearchInputComponent),
147
+ multi: true,
148
+ },
149
+ ]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 7, consts: [["searchElement", ""], ["clearButton", ""], [1, "td-search-input"], [1, "td-search-input-field", 3, "appearance"], ["matInput", "", "type", "search", 3, "ngModelChange", "blur", "keyup.enter", "ngModel", "placeholder"], [1, "td-search-input-clear-wrapper"], ["mat-icon-button", "", "type", "button", 1, "td-search-input-clear", 3, "click"]], template: function TdSearchInputComponent_Template(rf, ctx) { if (rf & 1) {
150
+ const _r1 = i0.ɵɵgetCurrentView();
151
+ i0.ɵɵelementStart(0, "div", 2)(1, "mat-form-field", 3)(2, "input", 4, 0);
152
+ i0.ɵɵtwoWayListener("ngModelChange", function TdSearchInputComponent_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return i0.ɵɵresetView($event); });
153
+ i0.ɵɵlistener("blur", function TdSearchInputComponent_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur()); })("keyup.enter", function TdSearchInputComponent_Template_input_keyup_enter_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSearch($event)); });
154
+ i0.ɵɵelementEnd()();
155
+ i0.ɵɵelementStart(4, "div", 5)(5, "button", 6);
156
+ i0.ɵɵlistener("click", function TdSearchInputComponent_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.clearSearch()); });
157
+ i0.ɵɵelementStart(6, "mat-icon");
158
+ i0.ɵɵtext(7);
159
+ i0.ɵɵelementEnd()()()();
160
+ i0.ɵɵtemplate(8, TdSearchInputComponent_ng_template_8_Template, 0, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
161
+ } if (rf & 2) {
162
+ const searchElement_r2 = i0.ɵɵreference(3);
163
+ i0.ɵɵadvance();
164
+ i0.ɵɵclassProp("mat-hide-underline", !ctx.showUnderline);
165
+ i0.ɵɵproperty("appearance", ctx.appearance);
166
+ i0.ɵɵadvance();
167
+ i0.ɵɵtwoWayProperty("ngModel", ctx.value);
168
+ i0.ɵɵproperty("placeholder", ctx.placeholder);
169
+ i0.ɵɵadvance(3);
170
+ i0.ɵɵproperty("@searchState", searchElement_r2.value ? "show" : ctx.isRTL ? "hide-left" : "hide-right");
171
+ i0.ɵɵadvance(2);
172
+ i0.ɵɵtextInterpolate(ctx.clearIcon);
173
+ } }, dependencies: [CommonModule, FormsModule, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel, MatInput, MatFormField, MatIcon], styles: ["[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] .td-search-input-field[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field{padding-right:48px}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field .mat-input-element{caret-color:currentColor}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] .td-search-input-clear[_ngcontent-%COMP%]{margin-left:-48px;margin-right:0;overflow:hidden}"], data: { animation: [
174
+ trigger('searchState', [
175
+ state('hide-left', style({
176
+ transform: 'translateX(-150%)',
177
+ opacity: 0,
178
+ display: 'none',
179
+ })),
180
+ state('hide-right', style({
181
+ transform: 'translateX(150%)',
182
+ opacity: 0,
183
+ display: 'none',
184
+ })),
185
+ state('show', style({
186
+ transform: 'translateX(0%)',
187
+ opacity: 1,
188
+ display: 'block',
189
+ })),
190
+ transition('* => show', animate('200ms ease-in')),
191
+ transition('show => *', animate('200ms ease-out')),
192
+ ]),
193
+ ] }, changeDetection: 0 });
164
194
  }
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSearchInputComponent, decorators: [{
166
- type: Component,
167
- args: [{ providers: [
168
- {
169
- provide: NG_VALUE_ACCESSOR,
170
- useExisting: forwardRef(() => TdSearchInputComponent),
171
- multi: true,
172
- },
173
- ], selector: 'td-search-input', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
174
- trigger('searchState', [
175
- state('hide-left', style({
176
- transform: 'translateX(-150%)',
177
- opacity: 0,
178
- display: 'none',
179
- })),
180
- state('hide-right', style({
181
- transform: 'translateX(150%)',
182
- opacity: 0,
183
- display: 'none',
184
- })),
185
- state('show', style({
186
- transform: 'translateX(0%)',
187
- opacity: 1,
188
- display: 'block',
189
- })),
190
- transition('* => show', animate('200ms ease-in')),
191
- transition('show => *', animate('200ms ease-out')),
192
- ]),
193
- ], template: "<div class=\"td-search-input\">\n <mat-form-field\n class=\"td-search-input-field\"\n [class.mat-hide-underline]=\"!showUnderline\"\n [appearance]=\"appearance\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n </mat-form-field>\n <div class=\"td-search-input-clear-wrapper\">\n <button mat-icon-button class=\"td-search-input-clear\" type=\"button\" [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \" (click)=\"clearSearch()\">\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n </div>\n</div>\n\n<ng-template #clearButton>\n \n</ng-template>\n", styles: [":host .td-search-input{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host .td-search-input .td-search-input-field{flex:1}:host .td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-right:48px}:host .td-search-input ::ng-deep mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{margin-left:-48px;margin-right:0;overflow:hidden}\n"] }]
194
- }], ctorParameters: () => [{ type: i1.Dir, decorators: [{
195
- type: Optional
196
- }] }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { _input: [{
197
- type: ViewChild,
198
- args: [MatInput, { static: true }]
199
- }], _searchElement: [{
200
- type: ViewChild,
201
- args: ['searchElement', { static: true, read: ElementRef }]
202
- }], appearance: [{
203
- type: Input
204
- }], showUnderline: [{
205
- type: Input
206
- }], debounce: [{
207
- type: Input
208
- }], placeholder: [{
209
- type: Input
210
- }], clearIcon: [{
211
- type: Input
212
- }], value: [{
213
- type: Input
214
- }], searchDebounce: [{
215
- type: Output
216
- }], search: [{
217
- type: Output
218
- }], clear: [{
219
- type: Output
220
- }], blurSearch: [{
221
- type: Output
222
- }] } });
195
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSearchInputComponent, [{
196
+ type: Component,
197
+ args: [{ providers: [
198
+ {
199
+ provide: NG_VALUE_ACCESSOR,
200
+ useExisting: forwardRef(() => TdSearchInputComponent),
201
+ multi: true,
202
+ },
203
+ ], selector: 'td-search-input', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, FormsModule, MatInput, MatFormField, MatIcon], animations: [
204
+ trigger('searchState', [
205
+ state('hide-left', style({
206
+ transform: 'translateX(-150%)',
207
+ opacity: 0,
208
+ display: 'none',
209
+ })),
210
+ state('hide-right', style({
211
+ transform: 'translateX(150%)',
212
+ opacity: 0,
213
+ display: 'none',
214
+ })),
215
+ state('show', style({
216
+ transform: 'translateX(0%)',
217
+ opacity: 1,
218
+ display: 'block',
219
+ })),
220
+ transition('* => show', animate('200ms ease-in')),
221
+ transition('show => *', animate('200ms ease-out')),
222
+ ]),
223
+ ], template: "<div class=\"td-search-input\">\n <mat-form-field\n class=\"td-search-input-field\"\n [class.mat-hide-underline]=\"!showUnderline\"\n [appearance]=\"appearance\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n </mat-form-field>\n <div class=\"td-search-input-clear-wrapper\">\n <button mat-icon-button class=\"td-search-input-clear\" type=\"button\" [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \" (click)=\"clearSearch()\">\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n </div>\n</div>\n\n<ng-template #clearButton>\n \n</ng-template>\n", styles: [":host .td-search-input{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;align-content:center;max-width:100%;justify-content:flex-end}:host .td-search-input .td-search-input-field{flex:1}:host .td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-right:48px}:host .td-search-input ::ng-deep mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{margin-left:-48px;margin-right:0;overflow:hidden}\n"] }]
224
+ }], () => [{ type: i1.Dir, decorators: [{
225
+ type: Optional
226
+ }] }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], { _input: [{
227
+ type: ViewChild,
228
+ args: [MatInput, { static: true }]
229
+ }], _searchElement: [{
230
+ type: ViewChild,
231
+ args: ['searchElement', { static: true, read: ElementRef }]
232
+ }], appearance: [{
233
+ type: Input
234
+ }], showUnderline: [{
235
+ type: Input
236
+ }], debounce: [{
237
+ type: Input
238
+ }], placeholder: [{
239
+ type: Input
240
+ }], clearIcon: [{
241
+ type: Input
242
+ }], value: [{
243
+ type: Input
244
+ }], searchDebounce: [{
245
+ type: Output
246
+ }], search: [{
247
+ type: Output
248
+ }], clear: [{
249
+ type: Output
250
+ }], blurSearch: [{
251
+ type: Output
252
+ }] }); })();
253
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdSearchInputComponent, { className: "TdSearchInputComponent", filePath: "search-input/search-input.component.ts", lineNumber: 87 }); })();
223
254
 
255
+ const _c0 = a0 => ({ "td-search-icon-active": a0 });
256
+ function TdSearchBoxComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
257
+ i0.ɵɵelementStart(0, "mat-icon");
258
+ i0.ɵɵtext(1);
259
+ i0.ɵɵelementEnd();
260
+ } if (rf & 2) {
261
+ const ctx_r1 = i0.ɵɵnextContext();
262
+ i0.ɵɵadvance();
263
+ i0.ɵɵtextInterpolate(ctx_r1.backIcon);
264
+ } }
265
+ function TdSearchBoxComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
266
+ i0.ɵɵelementStart(0, "mat-icon");
267
+ i0.ɵɵtext(1);
268
+ i0.ɵɵelementEnd();
269
+ } if (rf & 2) {
270
+ const ctx_r1 = i0.ɵɵnextContext();
271
+ i0.ɵɵadvance();
272
+ i0.ɵɵtextInterpolate(ctx_r1.searchIcon);
273
+ } }
224
274
  class TdSearchBoxBase {
225
275
  _changeDetectorRef;
226
276
  constructor(_changeDetectorRef) {
@@ -335,106 +385,123 @@ class TdSearchBoxComponent {
335
385
  handleBlur() {
336
386
  this.blurSearch.emit();
337
387
  }
338
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSearchBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
339
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdSearchBoxComponent, selector: "td-search-box", inputs: { backIcon: "backIcon", searchIcon: "searchIcon", clearIcon: "clearIcon", showUnderline: "showUnderline", debounce: "debounce", alwaysVisible: "alwaysVisible", placeholder: "placeholder", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, providers: [
340
- {
341
- provide: NG_VALUE_ACCESSOR,
342
- useExisting: forwardRef(() => TdSearchBoxComponent),
343
- multi: true,
344
- },
345
- ], viewQueries: [{ propertyName: "_searchInput", first: true, predicate: TdSearchInputComponent, descendants: true, static: true }], ngImport: i0, template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\n [ngClass]=\"{ 'td-search-icon-active': searchVisible || alwaysVisible }\"\n >\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{\n searchIcon\n }}</mat-icon>\n </button>\n <td-search-input\n #searchInput\n [@inputState]=\"alwaysVisible || searchVisible\"\n [debounce]=\"debounce\"\n [(ngModel)]=\"value\"\n [showUnderline]=\"showUnderline\"\n [placeholder]=\"placeholder\"\n [clearIcon]=\"clearIcon\"\n (searchDebounce)=\"handleSearchDebounce($event)\"\n (search)=\"handleSearch($event)\"\n (clear)=\"handleClear();\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:flex;flex-direction:row;align-content:center;max-width:100%;justify-content:flex-end;align-items:center;position:relative}.td-search-box .td-search-icon.td-search-icon-active{margin-right:-48px;margin-left:0;z-index:1}.td-search-box td-search-input{--mdc-filled-text-field-container-color: transparent;--mat-form-field-state-layer-color: transparent;--mdc-filled-text-field-active-indicator-color: transparent;--mdc-filled-text-field-hover-active-indicator-color: transparent}[dir=rtl] .td-search-box td-search-input ::ng-deep{margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:48px;overflow:visible}.td-search-box td-search-input ::ng-deep .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:after{bottom:-1px}\n"], dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: TdSearchInputComponent, selector: "td-search-input", inputs: ["appearance", "showUnderline", "debounce", "placeholder", "clearIcon", "value"], outputs: ["searchDebounce", "search", "clear", "blurSearch"] }], animations: [
346
- trigger('inputState', [
347
- state('0', style({
348
- width: '0%',
349
- margin: '0px',
350
- })),
351
- state('1', style({
352
- width: '100%',
353
- margin: AUTO_STYLE,
354
- })),
355
- transition('0 => 1', animate('200ms ease-in')),
356
- transition('1 => 0', animate('200ms ease-out')),
357
- ]),
358
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
388
+ static ɵfac = function TdSearchBoxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdSearchBoxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
389
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdSearchBoxComponent, selectors: [["td-search-box"]], viewQuery: function TdSearchBoxComponent_Query(rf, ctx) { if (rf & 1) {
390
+ i0.ɵɵviewQuery(TdSearchInputComponent, 7);
391
+ } if (rf & 2) {
392
+ let _t;
393
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._searchInput = _t.first);
394
+ } }, inputs: { backIcon: "backIcon", searchIcon: "searchIcon", clearIcon: "clearIcon", showUnderline: "showUnderline", debounce: "debounce", alwaysVisible: "alwaysVisible", placeholder: "placeholder", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, features: [i0.ɵɵProvidersFeature([
395
+ {
396
+ provide: NG_VALUE_ACCESSOR,
397
+ useExisting: forwardRef(() => TdSearchBoxComponent),
398
+ multi: true,
399
+ },
400
+ ])], decls: 6, vars: 11, consts: [["searchInput", ""], [1, "td-search-box"], ["mat-icon-button", "", "type", "button", 1, "td-search-icon", 3, "click", "ngClass"], [4, "ngIf"], [3, "ngModelChange", "searchDebounce", "search", "clear", "blur", "debounce", "ngModel", "showUnderline", "placeholder", "clearIcon"]], template: function TdSearchBoxComponent_Template(rf, ctx) { if (rf & 1) {
401
+ const _r1 = i0.ɵɵgetCurrentView();
402
+ i0.ɵɵelementStart(0, "div", 1)(1, "button", 2);
403
+ i0.ɵɵlistener("click", function TdSearchBoxComponent_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.searchClicked()); });
404
+ i0.ɵɵtemplate(2, TdSearchBoxComponent_mat_icon_2_Template, 2, 1, "mat-icon", 3)(3, TdSearchBoxComponent_mat_icon_3_Template, 2, 1, "mat-icon", 3);
405
+ i0.ɵɵelementEnd();
406
+ i0.ɵɵelementStart(4, "td-search-input", 4, 0);
407
+ i0.ɵɵtwoWayListener("ngModelChange", function TdSearchBoxComponent_Template_td_search_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return i0.ɵɵresetView($event); });
408
+ i0.ɵɵlistener("searchDebounce", function TdSearchBoxComponent_Template_td_search_input_searchDebounce_4_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSearchDebounce($event)); })("search", function TdSearchBoxComponent_Template_td_search_input_search_4_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleSearch($event)); })("clear", function TdSearchBoxComponent_Template_td_search_input_clear_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleClear()); })("blur", function TdSearchBoxComponent_Template_td_search_input_blur_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur()); });
409
+ i0.ɵɵelementEnd()();
410
+ } if (rf & 2) {
411
+ i0.ɵɵadvance();
412
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0, ctx.searchVisible || ctx.alwaysVisible));
413
+ i0.ɵɵadvance();
414
+ i0.ɵɵproperty("ngIf", ctx.searchVisible && !ctx.alwaysVisible);
415
+ i0.ɵɵadvance();
416
+ i0.ɵɵproperty("ngIf", !ctx.searchVisible || ctx.alwaysVisible);
417
+ i0.ɵɵadvance();
418
+ i0.ɵɵproperty("@inputState", ctx.alwaysVisible || ctx.searchVisible)("debounce", ctx.debounce);
419
+ i0.ɵɵtwoWayProperty("ngModel", ctx.value);
420
+ i0.ɵɵproperty("showUnderline", ctx.showUnderline)("placeholder", ctx.placeholder)("clearIcon", ctx.clearIcon);
421
+ } }, dependencies: [CommonModule, i1$1.NgClass, i1$1.NgIf, FormsModule, i2.NgControlStatus, i2.NgModel, MatIconButton, TdSearchInputComponent, MatIcon], styles: ["[_nghost-%COMP%]{display:block}.td-search-box[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:row;align-content:center;max-width:100%;justify-content:flex-end;align-items:center;position:relative}.td-search-box[_ngcontent-%COMP%] .td-search-icon.td-search-icon-active[_ngcontent-%COMP%]{margin-right:-48px;margin-left:0;z-index:1}.td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%]{--mdc-filled-text-field-container-color: transparent;--mat-form-field-state-layer-color: transparent;--mdc-filled-text-field-active-indicator-color: transparent;--mdc-filled-text-field-hover-active-indicator-color: transparent}[dir=rtl][_ngcontent-%COMP%] .td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%] {margin-left:0!important}.td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:48px;overflow:visible}.td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%] .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:after{bottom:-1px}"], data: { animation: [
422
+ trigger('inputState', [
423
+ state('0', style({
424
+ width: '0%',
425
+ margin: '0px',
426
+ })),
427
+ state('1', style({
428
+ width: '100%',
429
+ margin: AUTO_STYLE,
430
+ })),
431
+ transition('0 => 1', animate('200ms ease-in')),
432
+ transition('1 => 0', animate('200ms ease-out')),
433
+ ]),
434
+ ] }, changeDetection: 0 });
359
435
  }
360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSearchBoxComponent, decorators: [{
361
- type: Component,
362
- args: [{ providers: [
363
- {
364
- provide: NG_VALUE_ACCESSOR,
365
- useExisting: forwardRef(() => TdSearchBoxComponent),
366
- multi: true,
367
- },
368
- ], selector: 'td-search-box', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
369
- trigger('inputState', [
370
- state('0', style({
371
- width: '0%',
372
- margin: '0px',
373
- })),
374
- state('1', style({
375
- width: '100%',
376
- margin: AUTO_STYLE,
377
- })),
378
- transition('0 => 1', animate('200ms ease-in')),
379
- transition('1 => 0', animate('200ms ease-out')),
380
- ]),
381
- ], template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\n [ngClass]=\"{ 'td-search-icon-active': searchVisible || alwaysVisible }\"\n >\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{\n searchIcon\n }}</mat-icon>\n </button>\n <td-search-input\n #searchInput\n [@inputState]=\"alwaysVisible || searchVisible\"\n [debounce]=\"debounce\"\n [(ngModel)]=\"value\"\n [showUnderline]=\"showUnderline\"\n [placeholder]=\"placeholder\"\n [clearIcon]=\"clearIcon\"\n (searchDebounce)=\"handleSearchDebounce($event)\"\n (search)=\"handleSearch($event)\"\n (clear)=\"handleClear();\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:flex;flex-direction:row;align-content:center;max-width:100%;justify-content:flex-end;align-items:center;position:relative}.td-search-box .td-search-icon.td-search-icon-active{margin-right:-48px;margin-left:0;z-index:1}.td-search-box td-search-input{--mdc-filled-text-field-container-color: transparent;--mat-form-field-state-layer-color: transparent;--mdc-filled-text-field-active-indicator-color: transparent;--mdc-filled-text-field-hover-active-indicator-color: transparent}[dir=rtl] .td-search-box td-search-input ::ng-deep{margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:48px;overflow:visible}.td-search-box td-search-input ::ng-deep .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:after{bottom:-1px}\n"] }]
382
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { _searchInput: [{
383
- type: ViewChild,
384
- args: [TdSearchInputComponent, { static: true }]
385
- }], backIcon: [{
386
- type: Input
387
- }], searchIcon: [{
388
- type: Input
389
- }], clearIcon: [{
390
- type: Input
391
- }], showUnderline: [{
392
- type: Input
393
- }], debounce: [{
394
- type: Input
395
- }], alwaysVisible: [{
396
- type: Input
397
- }], placeholder: [{
398
- type: Input
399
- }], value: [{
400
- type: Input
401
- }], searchDebounce: [{
402
- type: Output
403
- }], search: [{
404
- type: Output
405
- }], clear: [{
406
- type: Output
407
- }], blurSearch: [{
408
- type: Output
409
- }] } });
436
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSearchBoxComponent, [{
437
+ type: Component,
438
+ args: [{ providers: [
439
+ {
440
+ provide: NG_VALUE_ACCESSOR,
441
+ useExisting: forwardRef(() => TdSearchBoxComponent),
442
+ multi: true,
443
+ },
444
+ ], selector: 'td-search-box', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, FormsModule, MatIconButton, TdSearchInputComponent, MatIcon], animations: [
445
+ trigger('inputState', [
446
+ state('0', style({
447
+ width: '0%',
448
+ margin: '0px',
449
+ })),
450
+ state('1', style({
451
+ width: '100%',
452
+ margin: AUTO_STYLE,
453
+ })),
454
+ transition('0 => 1', animate('200ms ease-in')),
455
+ transition('1 => 0', animate('200ms ease-out')),
456
+ ]),
457
+ ], template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\n [ngClass]=\"{ 'td-search-icon-active': searchVisible || alwaysVisible }\"\n >\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{\n searchIcon\n }}</mat-icon>\n </button>\n <td-search-input\n #searchInput\n [@inputState]=\"alwaysVisible || searchVisible\"\n [debounce]=\"debounce\"\n [(ngModel)]=\"value\"\n [showUnderline]=\"showUnderline\"\n [placeholder]=\"placeholder\"\n [clearIcon]=\"clearIcon\"\n (searchDebounce)=\"handleSearchDebounce($event)\"\n (search)=\"handleSearch($event)\"\n (clear)=\"handleClear();\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:flex;flex-direction:row;align-content:center;max-width:100%;justify-content:flex-end;align-items:center;position:relative}.td-search-box .td-search-icon.td-search-icon-active{margin-right:-48px;margin-left:0;z-index:1}.td-search-box td-search-input{--mdc-filled-text-field-container-color: transparent;--mat-form-field-state-layer-color: transparent;--mdc-filled-text-field-active-indicator-color: transparent;--mdc-filled-text-field-hover-active-indicator-color: transparent}[dir=rtl] .td-search-box td-search-input ::ng-deep{margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field{padding-left:48px;overflow:visible}.td-search-box td-search-input ::ng-deep .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:after{bottom:-1px}\n"] }]
458
+ }], () => [{ type: i0.ChangeDetectorRef }], { _searchInput: [{
459
+ type: ViewChild,
460
+ args: [TdSearchInputComponent, { static: true }]
461
+ }], backIcon: [{
462
+ type: Input
463
+ }], searchIcon: [{
464
+ type: Input
465
+ }], clearIcon: [{
466
+ type: Input
467
+ }], showUnderline: [{
468
+ type: Input
469
+ }], debounce: [{
470
+ type: Input
471
+ }], alwaysVisible: [{
472
+ type: Input
473
+ }], placeholder: [{
474
+ type: Input
475
+ }], value: [{
476
+ type: Input
477
+ }], searchDebounce: [{
478
+ type: Output
479
+ }], search: [{
480
+ type: Output
481
+ }], clear: [{
482
+ type: Output
483
+ }], blurSearch: [{
484
+ type: Output
485
+ }] }); })();
486
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdSearchBoxComponent, { className: "TdSearchBoxComponent", filePath: "search-box/search-box.component.ts", lineNumber: 65 }); })();
410
487
 
488
+ /**
489
+ * @deprecated This module is deprecated and will be removed in future versions.
490
+ * Please migrate to using standalone components as soon as possible.
491
+ */
411
492
  class CovalentSearchModule {
412
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
413
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentSearchModule, declarations: [TdSearchInputComponent, TdSearchBoxComponent], imports: [FormsModule,
414
- CommonModule,
415
- MatInputModule,
416
- MatIconModule,
417
- MatButtonModule], exports: [TdSearchInputComponent, TdSearchBoxComponent] });
418
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSearchModule, imports: [FormsModule,
419
- CommonModule,
420
- MatInputModule,
421
- MatIconModule,
422
- MatButtonModule] });
493
+ static ɵfac = function CovalentSearchModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentSearchModule)(); };
494
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentSearchModule });
495
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [TdSearchInputComponent, TdSearchBoxComponent] });
423
496
  }
424
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSearchModule, decorators: [{
425
- type: NgModule,
426
- args: [{
427
- imports: [
428
- FormsModule,
429
- CommonModule,
430
- MatInputModule,
431
- MatIconModule,
432
- MatButtonModule,
433
- ],
434
- declarations: [TdSearchInputComponent, TdSearchBoxComponent],
435
- exports: [TdSearchInputComponent, TdSearchBoxComponent],
436
- }]
437
- }] });
497
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSearchModule, [{
498
+ type: NgModule,
499
+ args: [{
500
+ imports: [TdSearchInputComponent, TdSearchBoxComponent],
501
+ exports: [TdSearchInputComponent, TdSearchBoxComponent],
502
+ }]
503
+ }], null, null); })();
504
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentSearchModule, { imports: [TdSearchInputComponent, TdSearchBoxComponent], exports: [TdSearchInputComponent, TdSearchBoxComponent] }); })();
438
505
 
439
506
  /**
440
507
  * Generated bundle index. Do not edit.