@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,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