@covalent/core 4.0.0-beta.2 → 4.1.0-develop.10

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 (345) hide show
  1. package/README.md +5 -4
  2. package/breadcrumbs/README.md +21 -17
  3. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
  4. package/breadcrumbs/breadcrumbs.component.d.ts +3 -4
  5. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
  6. package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
  7. package/common/README.md +3 -0
  8. package/common/_common-theme.scss +1 -1
  9. package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
  10. package/common/behaviors/disabled.mixin.d.ts +1 -1
  11. package/common/covalent-core-common.d.ts +1 -1
  12. package/common/material-icons.css +1 -111
  13. package/common/material-icons.css.map +1 -1
  14. package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
  15. package/common/platform.css +1 -16819
  16. package/common/platform.css.map +1 -1
  17. package/common/{public-api.d.ts → public_api.d.ts} +0 -0
  18. package/common/styles/_elevation.scss +7 -2
  19. package/common/styles/_typography-functions.scss +10 -2
  20. package/common/styles/_variables.scss +2 -1
  21. package/common/styles/core/_button.scss +35 -5
  22. package/common/styles/core/_card.scss +11 -6
  23. package/common/styles/core/_whiteframe.scss +16 -8
  24. package/common/styles/font/README.md +4 -2
  25. package/covalent-core.d.ts +1 -1
  26. package/dialogs/README.md +38 -30
  27. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
  28. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
  29. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  30. package/dialogs/dialog.component.d.ts +4 -4
  31. package/dialogs/dialogs.module.d.ts +1 -1
  32. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -3
  33. package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
  34. package/dialogs/src/README.md +223 -0
  35. package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
  36. package/dynamic-menu/README.md +6 -6
  37. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  38. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  39. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  40. package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
  41. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  42. package/dynamic-menu/public_api.d.ts +1 -0
  43. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
  44. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +25 -34
  45. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
  46. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
  47. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  48. package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
  49. package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
  50. package/esm2020/common/animations/common/interfaces.mjs +1 -1
  51. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
  52. package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
  53. package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
  54. package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
  55. package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
  56. package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
  57. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
  58. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
  59. package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
  60. package/esm2020/common/common.module.mjs +14 -15
  61. package/esm2020/common/covalent-core-common.mjs +2 -2
  62. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
  63. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
  64. package/esm2020/common/forms/validators/validators.mjs +6 -6
  65. package/esm2020/common/functions/clipboard.mjs +1 -1
  66. package/esm2020/common/functions/convert.mjs +1 -1
  67. package/esm2020/common/functions/download.mjs +1 -1
  68. package/esm2020/common/functions/file.mjs +1 -1
  69. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
  70. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
  71. package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
  72. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
  73. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
  74. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
  75. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
  76. package/esm2020/common/public_api.mjs +39 -0
  77. package/esm2020/common/services/icon.service.mjs +6 -6
  78. package/esm2020/common/services/router-path.service.mjs +6 -6
  79. package/esm2020/covalent-core.mjs +2 -2
  80. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
  81. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
  82. package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
  83. package/esm2020/dialogs/dialog.component.mjs +35 -76
  84. package/esm2020/dialogs/dialogs.module.mjs +39 -36
  85. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +15 -73
  86. package/esm2020/dialogs/public_api.mjs +9 -0
  87. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
  88. package/esm2020/dialogs/services/dialog.service.mjs +16 -13
  89. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
  90. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
  91. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
  92. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
  93. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
  94. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  95. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
  96. package/esm2020/dynamic-menu/public_api.mjs +2 -1
  97. package/esm2020/file/covalent-core-file.mjs +2 -2
  98. package/esm2020/file/directives/file-drop.directive.mjs +46 -47
  99. package/esm2020/file/directives/file-select.directive.mjs +32 -31
  100. package/esm2020/file/file-input/file-input.component.mjs +41 -68
  101. package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
  102. package/esm2020/file/file.module.mjs +32 -17
  103. package/esm2020/file/public_api.mjs +7 -0
  104. package/esm2020/file/services/file.service.mjs +13 -11
  105. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  106. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
  107. package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
  108. package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
  109. package/esm2020/json-formatter/public_api.mjs +3 -0
  110. package/esm2020/layout/covalent-core-layout.mjs +2 -2
  111. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
  112. package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
  113. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
  114. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
  115. package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
  116. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
  117. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
  118. package/esm2020/layout/layout-toggle.class.mjs +12 -15
  119. package/esm2020/layout/layout.component.mjs +22 -43
  120. package/esm2020/layout/layout.directives.mjs +48 -50
  121. package/esm2020/layout/layout.module.mjs +34 -35
  122. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
  123. package/esm2020/layout/public_api.mjs +13 -0
  124. package/esm2020/menu/covalent-core-menu.mjs +2 -2
  125. package/esm2020/menu/menu.component.mjs +7 -18
  126. package/esm2020/menu/menu.module.mjs +12 -13
  127. package/esm2020/menu/public_api.mjs +3 -0
  128. package/esm2020/message/collapse.animation.mjs +51 -0
  129. package/esm2020/message/covalent-core-message.mjs +2 -2
  130. package/esm2020/message/message.component.mjs +44 -102
  131. package/esm2020/message/message.module.mjs +19 -15
  132. package/esm2020/message/public_api.mjs +3 -0
  133. package/esm2020/public_api.mjs +2 -0
  134. package/esm2020/search/covalent-core-search.mjs +2 -2
  135. package/esm2020/search/public_api.mjs +4 -0
  136. package/esm2020/search/search-box/search-box.component.mjs +97 -123
  137. package/esm2020/search/search-input/search-input.component.mjs +116 -153
  138. package/esm2020/search/search.module.mjs +28 -13
  139. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
  140. package/esm2020/side-sheet/public_api.mjs +6 -0
  141. package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
  142. package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
  143. package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
  144. package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
  145. package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
  146. package/esm2020/side-sheet/side-sheet.mjs +44 -31
  147. package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
  148. package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
  149. package/esm2020/user-profile/public_api.mjs +1 -1
  150. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
  151. package/esm2020/user-profile/user-profile.component.mjs +13 -35
  152. package/esm2020/user-profile/user-profile.module.mjs +32 -14
  153. package/fesm2015/covalent-core-breadcrumbs.mjs +40 -85
  154. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
  155. package/fesm2015/covalent-core-common.mjs +170 -140
  156. package/fesm2015/covalent-core-common.mjs.map +1 -1
  157. package/fesm2015/covalent-core-dialogs.mjs +125 -358
  158. package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
  159. package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
  160. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
  161. package/fesm2015/covalent-core-file.mjs +148 -233
  162. package/fesm2015/covalent-core-file.mjs.map +1 -1
  163. package/fesm2015/covalent-core-json-formatter.mjs +93 -148
  164. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
  165. package/fesm2015/covalent-core-layout.mjs +194 -747
  166. package/fesm2015/covalent-core-layout.mjs.map +1 -1
  167. package/fesm2015/covalent-core-menu.mjs +10 -28
  168. package/fesm2015/covalent-core-menu.mjs.map +1 -1
  169. package/fesm2015/covalent-core-message.mjs +79 -104
  170. package/fesm2015/covalent-core-message.mjs.map +1 -1
  171. package/fesm2015/covalent-core-search.mjs +147 -227
  172. package/fesm2015/covalent-core-search.mjs.map +1 -1
  173. package/fesm2015/covalent-core-side-sheet.mjs +202 -173
  174. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
  175. package/fesm2015/covalent-core-user-profile.mjs +38 -114
  176. package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
  177. package/fesm2015/covalent-core.mjs.map +1 -1
  178. package/fesm2020/covalent-core-breadcrumbs.mjs +54 -80
  179. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
  180. package/fesm2020/covalent-core-common.mjs +224 -165
  181. package/fesm2020/covalent-core-common.mjs.map +1 -1
  182. package/fesm2020/covalent-core-dialogs.mjs +160 -338
  183. package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
  184. package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
  185. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
  186. package/fesm2020/covalent-core-file.mjs +229 -273
  187. package/fesm2020/covalent-core-file.mjs.map +1 -1
  188. package/fesm2020/covalent-core-json-formatter.mjs +97 -133
  189. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
  190. package/fesm2020/covalent-core-layout.mjs +353 -767
  191. package/fesm2020/covalent-core-layout.mjs.map +1 -1
  192. package/fesm2020/covalent-core-menu.mjs +17 -29
  193. package/fesm2020/covalent-core-menu.mjs.map +1 -1
  194. package/fesm2020/covalent-core-message.mjs +110 -114
  195. package/fesm2020/covalent-core-message.mjs.map +1 -1
  196. package/fesm2020/covalent-core-search.mjs +233 -281
  197. package/fesm2020/covalent-core-search.mjs.map +1 -1
  198. package/fesm2020/covalent-core-side-sheet.mjs +267 -200
  199. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
  200. package/fesm2020/covalent-core-user-profile.mjs +54 -109
  201. package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
  202. package/fesm2020/covalent-core.mjs.map +1 -1
  203. package/file/_file-theme.scss +2 -1
  204. package/file/covalent-core-file.d.ts +1 -1
  205. package/file/directives/file-drop.directive.d.ts +6 -7
  206. package/file/directives/file-select.directive.d.ts +2 -2
  207. package/file/file-input/file-input.component.d.ts +7 -7
  208. package/file/file-upload/file-upload.component.d.ts +16 -9
  209. package/file/{public-api.d.ts → public_api.d.ts} +0 -0
  210. package/file/{file-input → src/file-input}/README.md +46 -37
  211. package/file/{file-upload → src/file-upload}/README.md +36 -27
  212. package/json-formatter/README.md +8 -8
  213. package/json-formatter/collapse.animation.d.ts +24 -0
  214. package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
  215. package/json-formatter/json-formatter.component.d.ts +4 -4
  216. package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
  217. package/layout/README.md +48 -50
  218. package/layout/covalent-core-layout.d.ts +1 -1
  219. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
  220. package/layout/layout-footer/layout-footer.component.d.ts +3 -3
  221. package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
  222. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
  223. package/layout/layout-nav/layout-nav.component.d.ts +5 -5
  224. package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
  225. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
  226. package/layout/layout-toggle.class.d.ts +1 -1
  227. package/layout/layout.component.d.ts +4 -4
  228. package/layout/layout.directives.d.ts +2 -2
  229. package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
  230. package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
  231. package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
  232. package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
  233. package/layout/src/layout-nav/README.md +50 -0
  234. package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
  235. package/menu/covalent-core-menu.d.ts +1 -1
  236. package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
  237. package/message/README.md +26 -18
  238. package/message/collapse.animation.d.ts +24 -0
  239. package/message/covalent-core-message.d.ts +1 -1
  240. package/message/message.component.d.ts +4 -4
  241. package/message/{public-api.d.ts → public_api.d.ts} +0 -0
  242. package/package.json +36 -55
  243. package/{index.d.ts → public_api.d.ts} +0 -0
  244. package/search/README.md +74 -73
  245. package/search/covalent-core-search.d.ts +1 -1
  246. package/search/{public-api.d.ts → public_api.d.ts} +0 -0
  247. package/search/search-box/search-box.component.d.ts +10 -6
  248. package/search/search-input/search-input.component.d.ts +10 -6
  249. package/search/src/search-box/README.md +73 -0
  250. package/search/src/search-input/README.md +74 -0
  251. package/side-sheet/README.md +3 -5
  252. package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
  253. package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
  254. package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
  255. package/side-sheet/side-sheet-container.d.ts +18 -7
  256. package/side-sheet/side-sheet.content-directives.d.ts +22 -16
  257. package/side-sheet/side-sheet.d.ts +2 -2
  258. package/side-sheet/side-sheet.module.d.ts +1 -1
  259. package/theming/prebuilt/blue-grey-deep-orange.css +1 -2815
  260. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  261. package/theming/prebuilt/blue-orange.css +1 -2815
  262. package/theming/prebuilt/blue-orange.css.map +1 -1
  263. package/theming/prebuilt/indigo-pink.css +1 -2815
  264. package/theming/prebuilt/indigo-pink.css.map +1 -1
  265. package/theming/prebuilt/orange-light-blue.css +1 -2815
  266. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  267. package/theming/prebuilt/teal-orange.css +1 -2815
  268. package/theming/prebuilt/teal-orange.css.map +1 -1
  269. package/user-profile/README.md +5 -5
  270. package/user-profile/covalent-core-user-profile.d.ts +1 -1
  271. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
  272. package/user-profile/user-profile.component.d.ts +2 -2
  273. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
  274. package/breadcrumbs/breadcrumbs.component.scss +0 -8
  275. package/breadcrumbs/index.d.ts +0 -1
  276. package/common/index.d.ts +0 -1
  277. package/common/material-icons.scss +0 -3
  278. package/common/platform.scss +0 -7
  279. package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
  280. package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
  281. package/dialogs/dialog.component.scss +0 -49
  282. package/dialogs/index.d.ts +0 -1
  283. package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
  284. package/dialogs/window-dialog/window-dialog.component.scss +0 -31
  285. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
  286. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
  287. package/dynamic-menu/dynamic-menu.component.scss +0 -0
  288. package/dynamic-menu/index.d.ts +0 -1
  289. package/esm2020/breadcrumbs/index.mjs +0 -2
  290. package/esm2020/breadcrumbs/public-api.mjs +0 -4
  291. package/esm2020/common/index.mjs +0 -2
  292. package/esm2020/common/public-api.mjs +0 -39
  293. package/esm2020/dialogs/index.mjs +0 -2
  294. package/esm2020/dialogs/public-api.mjs +0 -9
  295. package/esm2020/dynamic-menu/index.mjs +0 -2
  296. package/esm2020/file/index.mjs +0 -2
  297. package/esm2020/file/public-api.mjs +0 -7
  298. package/esm2020/index.mjs +0 -2
  299. package/esm2020/json-formatter/index.mjs +0 -2
  300. package/esm2020/json-formatter/public-api.mjs +0 -3
  301. package/esm2020/layout/index.mjs +0 -2
  302. package/esm2020/layout/public-api.mjs +0 -13
  303. package/esm2020/menu/index.mjs +0 -2
  304. package/esm2020/menu/public-api.mjs +0 -3
  305. package/esm2020/message/index.mjs +0 -2
  306. package/esm2020/message/public-api.mjs +0 -3
  307. package/esm2020/search/index.mjs +0 -2
  308. package/esm2020/search/public-api.mjs +0 -4
  309. package/esm2020/side-sheet/index.mjs +0 -2
  310. package/esm2020/side-sheet/public-api.mjs +0 -6
  311. package/esm2020/user-profile/index.mjs +0 -2
  312. package/file/file-input/file-input.component.scss +0 -22
  313. package/file/file-upload/file-upload.component.scss +0 -34
  314. package/file/index.d.ts +0 -1
  315. package/json-formatter/index.d.ts +0 -1
  316. package/json-formatter/json-formatter.component.scss +0 -74
  317. package/layout/index.d.ts +0 -1
  318. package/layout/layout-card-over/layout-card-over.component.scss +0 -45
  319. package/layout/layout-footer/layout-footer.component.scss +0 -4
  320. package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
  321. package/layout/layout-nav/README.md +0 -46
  322. package/layout/layout-nav/layout-nav.component.scss +0 -54
  323. package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
  324. package/layout/layout.component.scss +0 -16
  325. package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
  326. package/menu/index.d.ts +0 -1
  327. package/menu/menu.component.scss +0 -51
  328. package/message/index.d.ts +0 -1
  329. package/message/message.component.scss +0 -32
  330. package/schematics/README.md +0 -66
  331. package/schematics/ng-add/files/theme.scss +0 -64
  332. package/search/index.d.ts +0 -1
  333. package/search/search-box/README.md +0 -62
  334. package/search/search-box/search-box.component.scss +0 -37
  335. package/search/search-input/README.md +0 -65
  336. package/search/search-input/search-input.component.scss +0 -75
  337. package/side-sheet/index.d.ts +0 -1
  338. package/side-sheet/side-sheet.scss +0 -68
  339. package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
  340. package/theming/prebuilt/blue-orange.scss +0 -20
  341. package/theming/prebuilt/indigo-pink.scss +0 -20
  342. package/theming/prebuilt/orange-light-blue.scss +0 -20
  343. package/theming/prebuilt/teal-orange.scss +0 -20
  344. package/user-profile/index.d.ts +0 -1
  345. package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,66 +1,35 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, forwardRef, Component, ChangeDetectionStrategy, Optional, ViewChild, Input, Output, NgModule } from '@angular/core';
3
- import * as i5 from '@angular/common';
3
+ import * as i7 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i4 from '@angular/forms';
5
+ import * as i6 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
7
- import * as i3 from '@angular/material/input';
7
+ import * as i5 from '@angular/material/input';
8
8
  import { MatInput, MatInputModule } from '@angular/material/input';
9
- import * as i7 from '@angular/material/icon';
9
+ import * as i4 from '@angular/material/icon';
10
10
  import { MatIconModule } from '@angular/material/icon';
11
- import * as i6 from '@angular/material/button';
11
+ import * as i3 from '@angular/material/button';
12
12
  import { MatButtonModule } from '@angular/material/button';
13
13
  import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
14
14
  import * as i1 from '@angular/cdk/bidi';
15
15
  import { debounceTime, skip } from 'rxjs/operators';
16
- import { mixinControlValueAccessor } from '@covalent/core/common';
16
+ import { noop } from 'rxjs';
17
17
  import * as i2 from '@angular/material/form-field';
18
18
 
19
- function TdSearchInputComponent_span_4_ng_template_1_Template(rf, ctx) { }
20
- function TdSearchInputComponent_span_4_Template(rf, ctx) { if (rf & 1) {
21
- i0.ɵɵelementStart(0, "span", 7);
22
- i0.ɵɵtemplate(1, TdSearchInputComponent_span_4_ng_template_1_Template, 0, 0, "ng-template", 8);
23
- i0.ɵɵelementEnd();
24
- } if (rf & 2) {
25
- i0.ɵɵnextContext();
26
- const _r3 = i0.ɵɵreference(7);
27
- i0.ɵɵadvance(1);
28
- i0.ɵɵproperty("ngTemplateOutlet", _r3);
29
- } }
30
- function TdSearchInputComponent_5_ng_template_0_Template(rf, ctx) { }
31
- function TdSearchInputComponent_5_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵtemplate(0, TdSearchInputComponent_5_ng_template_0_Template, 0, 0, "ng-template", 8);
33
- } if (rf & 2) {
34
- i0.ɵɵnextContext();
35
- const _r3 = i0.ɵɵreference(7);
36
- i0.ɵɵproperty("ngTemplateOutlet", _r3);
37
- } }
38
- function TdSearchInputComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
39
- const _r8 = i0.ɵɵgetCurrentView();
40
- i0.ɵɵelementStart(0, "button", 9);
41
- i0.ɵɵlistener("click", function TdSearchInputComponent_ng_template_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.clearSearch(); });
42
- i0.ɵɵelementStart(1, "mat-icon");
43
- i0.ɵɵtext(2);
44
- i0.ɵɵelementEnd();
45
- i0.ɵɵelementEnd();
46
- } if (rf & 2) {
47
- const ctx_r4 = i0.ɵɵnextContext();
48
- const _r0 = i0.ɵɵreference(3);
49
- i0.ɵɵproperty("@searchState", _r0.value ? "show" : ctx_r4.isRTL ? "hide-left" : "hide-right");
50
- i0.ɵɵadvance(2);
51
- i0.ɵɵtextInterpolate(ctx_r4.clearIcon);
52
- } }
53
19
  class TdSearchInputBase {
54
20
  constructor(_changeDetectorRef) {
55
21
  this._changeDetectorRef = _changeDetectorRef;
56
22
  }
57
23
  }
58
- /* tslint:disable-next-line */
59
- const _TdSearchInputMixinBase = mixinControlValueAccessor(TdSearchInputBase);
60
- class TdSearchInputComponent extends _TdSearchInputMixinBase {
24
+ class TdSearchInputComponent {
61
25
  constructor(_dir, _changeDetectorRef) {
62
- super(_changeDetectorRef);
63
26
  this._dir = _dir;
27
+ this._changeDetectorRef = _changeDetectorRef;
28
+ /**
29
+ * appearance?: MatFormFieldAppearance
30
+ * Appearance style for the underlying input component.
31
+ */
32
+ this.appearance = 'legacy';
64
33
  /**
65
34
  * showUnderline?: boolean
66
35
  * Sets if the input underline should be visible. Defaults to 'false'.
@@ -71,6 +40,11 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
71
40
  * Debounce timeout between keypresses. Defaults to 400.
72
41
  */
73
42
  this.debounce = 400;
43
+ /**
44
+ * placeholder?: string
45
+ * Placeholder for the underlying input component.
46
+ */
47
+ this.placeholder = '';
74
48
  /**
75
49
  * clearIcon?: string
76
50
  * The icon used to clear the search input.
@@ -96,7 +70,7 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
96
70
  * blur: function()
97
71
  * Event emitted after the blur event has been called in underlying input.
98
72
  */
99
- this.blur = new EventEmitter();
73
+ this.blurSearch = new EventEmitter();
100
74
  }
101
75
  get isRTL() {
102
76
  if (this._dir) {
@@ -105,27 +79,40 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
105
79
  return false;
106
80
  }
107
81
  ngOnInit() {
108
- this._input.ngControl.valueChanges
109
- .pipe(debounceTime(this.debounce), skip(1))
82
+ this._input?.ngControl?.valueChanges
83
+ ?.pipe(debounceTime(this.debounce), skip(1) // skip first change when value is set to undefined
84
+ )
110
85
  .subscribe((value) => {
111
86
  this._searchTermChanged(value);
112
87
  });
113
88
  }
89
+ writeValue(value) {
90
+ this.value = value;
91
+ this._changeDetectorRef.markForCheck();
92
+ }
93
+ registerOnChange() {
94
+ noop;
95
+ }
96
+ registerOnTouched() {
97
+ noop;
98
+ }
114
99
  /**
115
100
  * Method to focus to underlying input.
116
101
  */
117
102
  focus() {
118
- this._input.focus();
103
+ this._input?.focus();
119
104
  }
120
105
  handleBlur() {
121
- this.blur.emit();
106
+ this.blurSearch.emit();
122
107
  }
123
108
  stopPropagation(event) {
124
109
  event.stopPropagation();
125
110
  }
126
111
  handleSearch(event) {
127
112
  this.stopPropagation(event);
128
- this.search.emit(this.value);
113
+ if (typeof this.value == 'string') {
114
+ this.search.emit(this.value);
115
+ }
129
116
  }
130
117
  /**
131
118
  * Method to clear the underlying input.
@@ -139,136 +126,92 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
139
126
  this.searchDebounce.emit(value);
140
127
  }
141
128
  }
142
- /** @nocollapse */ /** @nocollapse */ TdSearchInputComponent.ɵfac = function TdSearchInputComponent_Factory(t) { return new (t || TdSearchInputComponent)(i0.ɵɵdirectiveInject(i1.Dir, 8), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
143
- /** @nocollapse */ /** @nocollapse */ TdSearchInputComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdSearchInputComponent, selectors: [["td-search-input"]], viewQuery: function TdSearchInputComponent_Query(rf, ctx) { if (rf & 1) {
144
- i0.ɵɵviewQuery(MatInput, 7);
145
- } if (rf & 2) {
146
- let _t;
147
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._input = _t.first);
148
- } }, inputs: { value: "value", appearance: "appearance", showUnderline: "showUnderline", debounce: "debounce", placeholder: "placeholder", clearIcon: "clearIcon" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blur: "blur" }, features: [i0.ɵɵProvidersFeature([
149
- {
150
- provide: NG_VALUE_ACCESSOR,
151
- useExisting: forwardRef((() => TdSearchInputComponent)),
152
- multi: true,
153
- },
154
- ]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 7, consts: [[1, "td-search-input"], ["floatLabel", "never", 1, "td-search-input-field", 3, "appearance"], ["matInput", "", "type", "search", 3, "ngModel", "placeholder", "ngModelChange", "blur", "search", "keyup.enter"], ["searchElement", ""], ["matSuffix", "", 4, "ngIf"], [4, "ngIf"], ["clearButton", ""], ["matSuffix", ""], [3, "ngTemplateOutlet"], ["mat-icon-button", "", "type", "button", 1, "td-search-input-clear", 3, "click"]], template: function TdSearchInputComponent_Template(rf, ctx) { if (rf & 1) {
155
- i0.ɵɵelementStart(0, "div", 0);
156
- i0.ɵɵelementStart(1, "mat-form-field", 1);
157
- i0.ɵɵelementStart(2, "input", 2, 3);
158
- i0.ɵɵlistener("ngModelChange", function TdSearchInputComponent_Template_input_ngModelChange_2_listener($event) { return ctx.value = $event; })("blur", function TdSearchInputComponent_Template_input_blur_2_listener() { return ctx.handleBlur(); })("search", function TdSearchInputComponent_Template_input_search_2_listener($event) { return ctx.stopPropagation($event); })("keyup.enter", function TdSearchInputComponent_Template_input_keyup_enter_2_listener($event) { return ctx.handleSearch($event); });
159
- i0.ɵɵelementEnd();
160
- i0.ɵɵtemplate(4, TdSearchInputComponent_span_4_Template, 2, 1, "span", 4);
161
- i0.ɵɵelementEnd();
162
- i0.ɵɵtemplate(5, TdSearchInputComponent_5_Template, 1, 1, null, 5);
163
- i0.ɵɵelementEnd();
164
- i0.ɵɵtemplate(6, TdSearchInputComponent_ng_template_6_Template, 3, 2, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
165
- } if (rf & 2) {
166
- i0.ɵɵadvance(1);
167
- i0.ɵɵclassProp("mat-hide-underline", !ctx.showUnderline);
168
- i0.ɵɵproperty("appearance", ctx.appearance);
169
- i0.ɵɵadvance(1);
170
- i0.ɵɵproperty("ngModel", ctx.value)("placeholder", ctx.placeholder);
171
- i0.ɵɵadvance(2);
172
- i0.ɵɵproperty("ngIf", ctx.appearance === "fill" || ctx.appearance === "outline" || ctx.appearance === "standard");
173
- i0.ɵɵadvance(1);
174
- i0.ɵɵproperty("ngIf", !ctx.appearance || ctx.appearance === "legacy");
175
- } }, directives: [i2.MatFormField, i3.MatInput, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i5.NgIf, i2.MatSuffix, i5.NgTemplateOutlet, i6.MatButton, i7.MatIcon], styles: ["[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%]{overflow-x:hidden;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%] .td-search-input[_ngcontent-%COMP%] .td-search-input-field[_ngcontent-%COMP%]{-ms-flex:1;flex:1}[_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-form-field-appearance-legacy .mat-form-field-infix{-ms-flex-item-align:center;align-self:center}[_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%]{-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;align-self:center}"], data: { animation: [
176
- trigger('searchState', [
177
- state('hide-left', style({
178
- transform: 'translateX(-150%)',
179
- display: 'none',
180
- })),
181
- state('hide-right', style({
182
- transform: 'translateX(150%)',
183
- display: 'none',
184
- })),
185
- state('show', style({
186
- transform: 'translateX(0%)',
187
- display: 'block',
188
- })),
189
- transition('* => show', animate('200ms ease-in')),
190
- transition('show => *', animate('200ms ease-out')),
191
- ]),
192
- ] }, changeDetection: 0 });
193
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSearchInputComponent, [{
194
- type: Component,
195
- args: [{ providers: [
196
- {
197
- provide: NG_VALUE_ACCESSOR,
198
- useExisting: forwardRef((() => TdSearchInputComponent)),
199
- multi: true,
200
- },
201
- ], selector: 'td-search-input', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['value'], animations: [
202
- trigger('searchState', [
203
- state('hide-left', style({
204
- transform: 'translateX(-150%)',
205
- display: 'none',
206
- })),
207
- state('hide-right', style({
208
- transform: 'translateX(150%)',
209
- display: 'none',
210
- })),
211
- state('show', style({
212
- transform: 'translateX(0%)',
213
- display: 'block',
214
- })),
215
- transition('* => show', animate('200ms ease-in')),
216
- transition('show => *', animate('200ms ease-out')),
217
- ]),
218
- ], 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 floatLabel=\"never\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (search)=\"stopPropagation($event)\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n <span matSuffix *ngIf=\"appearance === 'fill' || appearance === 'outline' || appearance === 'standard'\">\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template *ngIf=\"!appearance || appearance === 'legacy'\" [ngTemplateOutlet]=\"clearButton\"></ng-template>\n</div>\n<ng-template #clearButton>\n <button\n mat-icon-button\n class=\"td-search-input-clear\"\n type=\"button\"\n [@searchState]=\"searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n", styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}:host .td-search-input .td-search-input-field{-ms-flex:1;flex:1}: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-form-field-appearance-legacy .mat-form-field-infix{-ms-flex-item-align:center;align-self:center}: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{-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;align-self:center}\n"] }]
219
- }], function () { return [{ type: i1.Dir, decorators: [{
220
- type: Optional
221
- }] }, { type: i0.ChangeDetectorRef }]; }, { _input: [{
222
- type: ViewChild,
223
- args: [MatInput, { static: true }]
224
- }], appearance: [{
225
- type: Input
226
- }], showUnderline: [{
227
- type: Input
228
- }], debounce: [{
229
- type: Input
230
- }], placeholder: [{
231
- type: Input
232
- }], clearIcon: [{
233
- type: Input
234
- }], searchDebounce: [{
235
- type: Output
236
- }], search: [{
237
- type: Output
238
- }], clear: [{
239
- type: Output
240
- }], blur: [{
241
- type: Output
242
- }] }); })();
129
+ TdSearchInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchInputComponent, deps: [{ token: i1.Dir, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
130
+ TdSearchInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", 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: [
131
+ {
132
+ provide: NG_VALUE_ACCESSOR,
133
+ useExisting: forwardRef(() => TdSearchInputComponent),
134
+ multi: true,
135
+ },
136
+ ], viewQueries: [{ propertyName: "_input", first: true, predicate: MatInput, descendants: true, static: 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 floatLabel=\"never\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (search)=\"stopPropagation($event)\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n <span\n matSuffix\n *ngIf=\"\n appearance === 'fill' ||\n appearance === 'outline' ||\n appearance === 'standard'\n \"\n >\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template\n *ngIf=\"!appearance || appearance === 'legacy'\"\n [ngTemplateOutlet]=\"clearButton\"\n ></ng-template>\n</div>\n<ng-template #clearButton>\n <button\n mat-icon-button\n class=\"td-search-input-clear\"\n type=\"button\"\n [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n", styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;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-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-form-field-appearance-legacy .mat-form-field-infix{align-self:center}: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{flex:0 0 auto;align-self:center}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.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"] }, { type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.MatSuffix, selector: "[matSuffix]" }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
137
+ trigger('searchState', [
138
+ state('hide-left', style({
139
+ transform: 'translateX(-150%)',
140
+ display: 'none',
141
+ })),
142
+ state('hide-right', style({
143
+ transform: 'translateX(150%)',
144
+ display: 'none',
145
+ })),
146
+ state('show', style({
147
+ transform: 'translateX(0%)',
148
+ display: 'block',
149
+ })),
150
+ transition('* => show', animate('200ms ease-in')),
151
+ transition('show => *', animate('200ms ease-out')),
152
+ ]),
153
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchInputComponent, decorators: [{
155
+ type: Component,
156
+ args: [{ providers: [
157
+ {
158
+ provide: NG_VALUE_ACCESSOR,
159
+ useExisting: forwardRef(() => TdSearchInputComponent),
160
+ multi: true,
161
+ },
162
+ ], selector: 'td-search-input', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
163
+ trigger('searchState', [
164
+ state('hide-left', style({
165
+ transform: 'translateX(-150%)',
166
+ display: 'none',
167
+ })),
168
+ state('hide-right', style({
169
+ transform: 'translateX(150%)',
170
+ display: 'none',
171
+ })),
172
+ state('show', style({
173
+ transform: 'translateX(0%)',
174
+ display: 'block',
175
+ })),
176
+ transition('* => show', animate('200ms ease-in')),
177
+ transition('show => *', animate('200ms ease-out')),
178
+ ]),
179
+ ], 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 floatLabel=\"never\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (search)=\"stopPropagation($event)\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n <span\n matSuffix\n *ngIf=\"\n appearance === 'fill' ||\n appearance === 'outline' ||\n appearance === 'standard'\n \"\n >\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template\n *ngIf=\"!appearance || appearance === 'legacy'\"\n [ngTemplateOutlet]=\"clearButton\"\n ></ng-template>\n</div>\n<ng-template #clearButton>\n <button\n mat-icon-button\n class=\"td-search-input-clear\"\n type=\"button\"\n [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n", styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;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-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-form-field-appearance-legacy .mat-form-field-infix{align-self:center}: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{flex:0 0 auto;align-self:center}\n"] }]
180
+ }], ctorParameters: function () { return [{ type: i1.Dir, decorators: [{
181
+ type: Optional
182
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _input: [{
183
+ type: ViewChild,
184
+ args: [MatInput, { static: true }]
185
+ }], appearance: [{
186
+ type: Input
187
+ }], showUnderline: [{
188
+ type: Input
189
+ }], debounce: [{
190
+ type: Input
191
+ }], placeholder: [{
192
+ type: Input
193
+ }], clearIcon: [{
194
+ type: Input
195
+ }], value: [{
196
+ type: Input
197
+ }], searchDebounce: [{
198
+ type: Output
199
+ }], search: [{
200
+ type: Output
201
+ }], clear: [{
202
+ type: Output
203
+ }], blurSearch: [{
204
+ type: Output
205
+ }] } });
243
206
 
244
- function TdSearchBoxComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
245
- i0.ɵɵelementStart(0, "mat-icon");
246
- i0.ɵɵtext(1);
247
- i0.ɵɵelementEnd();
248
- } if (rf & 2) {
249
- const ctx_r0 = i0.ɵɵnextContext();
250
- i0.ɵɵadvance(1);
251
- i0.ɵɵtextInterpolate(ctx_r0.backIcon);
252
- } }
253
- function TdSearchBoxComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
254
- i0.ɵɵelementStart(0, "mat-icon");
255
- i0.ɵɵtext(1);
256
- i0.ɵɵelementEnd();
257
- } if (rf & 2) {
258
- const ctx_r1 = i0.ɵɵnextContext();
259
- i0.ɵɵadvance(1);
260
- i0.ɵɵtextInterpolate(ctx_r1.searchIcon);
261
- } }
262
207
  class TdSearchBoxBase {
263
208
  constructor(_changeDetectorRef) {
264
209
  this._changeDetectorRef = _changeDetectorRef;
265
210
  }
266
211
  }
267
- /* tslint:disable-next-line */
268
- const _TdSearchBoxMixinBase = mixinControlValueAccessor(TdSearchBoxBase);
269
- class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
212
+ class TdSearchBoxComponent {
270
213
  constructor(_changeDetectorRef) {
271
- super(_changeDetectorRef);
214
+ this._changeDetectorRef = _changeDetectorRef;
272
215
  this._searchVisible = false;
273
216
  /**
274
217
  * backIcon?: string
@@ -303,6 +246,11 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
303
246
  * Sets if the input should always be visible. Defaults to 'false'.
304
247
  */
305
248
  this.alwaysVisible = false;
249
+ /**
250
+ * placeholder?: string
251
+ * Placeholder for the underlying input component.
252
+ */
253
+ this.placeholder = '';
306
254
  /**
307
255
  * searchDebounce: function($event)
308
256
  * Event emitted after the [debounce] timeout.
@@ -322,11 +270,21 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
322
270
  * blur: function()
323
271
  * Event emitted after the blur event has been called in underlying input.
324
272
  */
325
- this.blur = new EventEmitter();
273
+ this.blurSearch = new EventEmitter();
326
274
  }
327
275
  get searchVisible() {
328
276
  return this._searchVisible;
329
277
  }
278
+ writeValue(value) {
279
+ this.value = value;
280
+ this._changeDetectorRef.markForCheck();
281
+ }
282
+ registerOnChange() {
283
+ noop;
284
+ }
285
+ registerOnTouched() {
286
+ noop;
287
+ }
330
288
  /**
331
289
  * Method executed when the search icon is clicked.
332
290
  */
@@ -336,7 +294,7 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
336
294
  this.handleClear();
337
295
  }
338
296
  else if (this.alwaysVisible || !this._searchVisible) {
339
- this._searchInput.focus();
297
+ this._searchInput?.focus();
340
298
  }
341
299
  this.toggleVisibility();
342
300
  }
@@ -354,120 +312,114 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
354
312
  this.clear.emit();
355
313
  }
356
314
  handleBlur() {
357
- this.blur.emit();
315
+ this.blurSearch.emit();
358
316
  }
359
317
  }
360
- /** @nocollapse */ /** @nocollapse */ TdSearchBoxComponent.ɵfac = function TdSearchBoxComponent_Factory(t) { return new (t || TdSearchBoxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
361
- /** @nocollapse */ /** @nocollapse */ TdSearchBoxComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdSearchBoxComponent, selectors: [["td-search-box"]], viewQuery: function TdSearchBoxComponent_Query(rf, ctx) { if (rf & 1) {
362
- i0.ɵɵviewQuery(TdSearchInputComponent, 7);
363
- } if (rf & 2) {
364
- let _t;
365
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._searchInput = _t.first);
366
- } }, inputs: { value: "value", backIcon: "backIcon", searchIcon: "searchIcon", clearIcon: "clearIcon", showUnderline: "showUnderline", debounce: "debounce", alwaysVisible: "alwaysVisible", placeholder: "placeholder" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blur: "blur" }, features: [i0.ɵɵProvidersFeature([
367
- {
368
- provide: NG_VALUE_ACCESSOR,
369
- useExisting: forwardRef((() => TdSearchBoxComponent)),
370
- multi: true,
371
- },
372
- ]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [[1, "td-search-box"], ["mat-icon-button", "", "type", "button", 1, "td-search-icon", 3, "click"], [4, "ngIf"], [3, "debounce", "ngModel", "showUnderline", "placeholder", "clearIcon", "ngModelChange", "searchDebounce", "search", "clear", "blur"], ["searchInput", ""]], template: function TdSearchBoxComponent_Template(rf, ctx) { if (rf & 1) {
373
- i0.ɵɵelementStart(0, "div", 0);
374
- i0.ɵɵelementStart(1, "button", 1);
375
- i0.ɵɵlistener("click", function TdSearchBoxComponent_Template_button_click_1_listener() { return ctx.searchClicked(); });
376
- i0.ɵɵtemplate(2, TdSearchBoxComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
377
- i0.ɵɵtemplate(3, TdSearchBoxComponent_mat_icon_3_Template, 2, 1, "mat-icon", 2);
378
- i0.ɵɵelementEnd();
379
- i0.ɵɵelementStart(4, "td-search-input", 3, 4);
380
- i0.ɵɵlistener("ngModelChange", function TdSearchBoxComponent_Template_td_search_input_ngModelChange_4_listener($event) { return ctx.value = $event; })("searchDebounce", function TdSearchBoxComponent_Template_td_search_input_searchDebounce_4_listener($event) { return ctx.handleSearchDebounce($event); })("search", function TdSearchBoxComponent_Template_td_search_input_search_4_listener($event) { return ctx.handleSearch($event); })("clear", function TdSearchBoxComponent_Template_td_search_input_clear_4_listener() { ctx.handleClear(); return ctx.toggleVisibility(); })("blur", function TdSearchBoxComponent_Template_td_search_input_blur_4_listener() { return ctx.handleBlur(); });
381
- i0.ɵɵelementEnd();
382
- i0.ɵɵelementEnd();
383
- } if (rf & 2) {
384
- i0.ɵɵadvance(2);
385
- i0.ɵɵproperty("ngIf", ctx.searchVisible && !ctx.alwaysVisible);
386
- i0.ɵɵadvance(1);
387
- i0.ɵɵproperty("ngIf", !ctx.searchVisible || ctx.alwaysVisible);
388
- i0.ɵɵadvance(1);
389
- i0.ɵɵproperty("@inputState", ctx.alwaysVisible || ctx.searchVisible)("debounce", ctx.debounce)("ngModel", ctx.value)("showUnderline", ctx.showUnderline)("placeholder", ctx.placeholder)("clearIcon", ctx.clearIcon);
390
- } }, directives: [i6.MatButton, i5.NgIf, i7.MatIcon, TdSearchInputComponent, i4.NgControlStatus, i4.NgModel], styles: ["[_nghost-%COMP%]{display:block}.td-search-box[_ngcontent-%COMP%]{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}.td-search-box[_ngcontent-%COMP%] .td-search-icon[_ngcontent-%COMP%]{-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;align-self:center}.td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%]{margin-left:12px} [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box[_ngcontent-%COMP%] td-search-input[_ngcontent-%COMP%] .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}"], data: { animation: [
391
- trigger('inputState', [
392
- state('0', style({
393
- width: '0%',
394
- margin: '0px',
395
- })),
396
- state('1', style({
397
- width: '100%',
398
- margin: AUTO_STYLE,
399
- })),
400
- transition('0 => 1', animate('200ms ease-in')),
401
- transition('1 => 0', animate('200ms ease-out')),
402
- ]),
403
- ] }, changeDetection: 0 });
404
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSearchBoxComponent, [{
405
- type: Component,
406
- args: [{ providers: [
407
- {
408
- provide: NG_VALUE_ACCESSOR,
409
- useExisting: forwardRef((() => TdSearchBoxComponent)),
410
- multi: true,
411
- },
412
- ], selector: 'td-search-box', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['value'], animations: [
413
- trigger('inputState', [
414
- state('0', style({
415
- width: '0%',
416
- margin: '0px',
417
- })),
418
- state('1', style({
419
- width: '100%',
420
- margin: AUTO_STYLE,
421
- })),
422
- transition('0 => 1', animate('200ms ease-in')),
423
- transition('1 => 0', animate('200ms ease-out')),
424
- ]),
425
- ], template: "<div class=\"td-search-box\">\n <button mat-icon-button type=\"button\" class=\"td-search-icon\" (click)=\"searchClicked()\">\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{ searchIcon }}</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(); toggleVisibility()\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}.td-search-box .td-search-icon{-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}\n"] }]
426
- }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { _searchInput: [{
427
- type: ViewChild,
428
- args: [TdSearchInputComponent, { static: true }]
429
- }], backIcon: [{
430
- type: Input
431
- }], searchIcon: [{
432
- type: Input
433
- }], clearIcon: [{
434
- type: Input
435
- }], showUnderline: [{
436
- type: Input
437
- }], debounce: [{
438
- type: Input
439
- }], alwaysVisible: [{
440
- type: Input
441
- }], placeholder: [{
442
- type: Input
443
- }], searchDebounce: [{
444
- type: Output
445
- }], search: [{
446
- type: Output
447
- }], clear: [{
448
- type: Output
449
- }], blur: [{
450
- type: Output
451
- }] }); })();
318
+ TdSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
319
+ TdSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", 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: [
320
+ {
321
+ provide: NG_VALUE_ACCESSOR,
322
+ useExisting: forwardRef(() => TdSearchBoxComponent),
323
+ multi: true,
324
+ },
325
+ ], 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 >\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(); toggleVisibility()\"\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-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}.td-search-box .td-search-icon{flex:0 0 auto;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TdSearchInputComponent, selector: "td-search-input", inputs: ["appearance", "showUnderline", "debounce", "placeholder", "clearIcon", "value"], outputs: ["searchDebounce", "search", "clear", "blurSearch"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], animations: [
326
+ trigger('inputState', [
327
+ state('0', style({
328
+ width: '0%',
329
+ margin: '0px',
330
+ })),
331
+ state('1', style({
332
+ width: '100%',
333
+ margin: AUTO_STYLE,
334
+ })),
335
+ transition('0 => 1', animate('200ms ease-in')),
336
+ transition('1 => 0', animate('200ms ease-out')),
337
+ ]),
338
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchBoxComponent, decorators: [{
340
+ type: Component,
341
+ args: [{ providers: [
342
+ {
343
+ provide: NG_VALUE_ACCESSOR,
344
+ useExisting: forwardRef(() => TdSearchBoxComponent),
345
+ multi: true,
346
+ },
347
+ ], selector: 'td-search-box', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
348
+ trigger('inputState', [
349
+ state('0', style({
350
+ width: '0%',
351
+ margin: '0px',
352
+ })),
353
+ state('1', style({
354
+ width: '100%',
355
+ margin: AUTO_STYLE,
356
+ })),
357
+ transition('0 => 1', animate('200ms ease-in')),
358
+ transition('1 => 0', animate('200ms ease-out')),
359
+ ]),
360
+ ], template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\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(); toggleVisibility()\"\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-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}.td-search-box .td-search-icon{flex:0 0 auto;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}\n"] }]
361
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _searchInput: [{
362
+ type: ViewChild,
363
+ args: [TdSearchInputComponent, { static: true }]
364
+ }], backIcon: [{
365
+ type: Input
366
+ }], searchIcon: [{
367
+ type: Input
368
+ }], clearIcon: [{
369
+ type: Input
370
+ }], showUnderline: [{
371
+ type: Input
372
+ }], debounce: [{
373
+ type: Input
374
+ }], alwaysVisible: [{
375
+ type: Input
376
+ }], placeholder: [{
377
+ type: Input
378
+ }], value: [{
379
+ type: Input
380
+ }], searchDebounce: [{
381
+ type: Output
382
+ }], search: [{
383
+ type: Output
384
+ }], clear: [{
385
+ type: Output
386
+ }], blurSearch: [{
387
+ type: Output
388
+ }] } });
452
389
 
453
390
  class CovalentSearchModule {
454
391
  }
455
- /** @nocollapse */ /** @nocollapse */ CovalentSearchModule.ɵfac = function CovalentSearchModule_Factory(t) { return new (t || CovalentSearchModule)(); };
456
- /** @nocollapse */ /** @nocollapse */ CovalentSearchModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentSearchModule });
457
- /** @nocollapse */ /** @nocollapse */ CovalentSearchModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[FormsModule, CommonModule, MatInputModule, MatIconModule, MatButtonModule]] });
458
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSearchModule, [{
459
- type: NgModule,
460
- args: [{
461
- imports: [FormsModule, CommonModule, MatInputModule, MatIconModule, MatButtonModule],
462
- declarations: [TdSearchInputComponent, TdSearchBoxComponent],
463
- exports: [TdSearchInputComponent, TdSearchBoxComponent],
464
- }]
465
- }], null, null); })();
466
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentSearchModule, { declarations: [TdSearchInputComponent, TdSearchBoxComponent], imports: [FormsModule, CommonModule, MatInputModule, MatIconModule, MatButtonModule], exports: [TdSearchInputComponent, TdSearchBoxComponent] }); })();
392
+ CovalentSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
393
+ CovalentSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, declarations: [TdSearchInputComponent, TdSearchBoxComponent], imports: [FormsModule,
394
+ CommonModule,
395
+ MatInputModule,
396
+ MatIconModule,
397
+ MatButtonModule], exports: [TdSearchInputComponent, TdSearchBoxComponent] });
398
+ CovalentSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, imports: [[
399
+ FormsModule,
400
+ CommonModule,
401
+ MatInputModule,
402
+ MatIconModule,
403
+ MatButtonModule,
404
+ ]] });
405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, decorators: [{
406
+ type: NgModule,
407
+ args: [{
408
+ imports: [
409
+ FormsModule,
410
+ CommonModule,
411
+ MatInputModule,
412
+ MatIconModule,
413
+ MatButtonModule,
414
+ ],
415
+ declarations: [TdSearchInputComponent, TdSearchBoxComponent],
416
+ exports: [TdSearchInputComponent, TdSearchBoxComponent],
417
+ }]
418
+ }] });
467
419
 
468
420
  /**
469
421
  * Generated bundle index. Do not edit.
470
422
  */
471
423
 
472
- export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent, _TdSearchBoxMixinBase, _TdSearchInputMixinBase };
424
+ export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent };
473
425
  //# sourceMappingURL=covalent-core-search.mjs.map