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

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