@covalent/core 3.1.0 → 3.1.2-beta.6

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 (639) hide show
  1. package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +1 -1
  2. package/breadcrumbs/package.json +1 -3
  3. package/bundles/covalent-core-breadcrumbs.umd.js +131 -167
  4. package/bundles/covalent-core-breadcrumbs.umd.js.map +1 -1
  5. package/bundles/covalent-core-breadcrumbs.umd.min.js +1 -1
  6. package/bundles/covalent-core-breadcrumbs.umd.min.js.map +1 -1
  7. package/bundles/covalent-core-chips.umd.js +533 -708
  8. package/bundles/covalent-core-chips.umd.js.map +1 -1
  9. package/bundles/covalent-core-chips.umd.min.js +12 -12
  10. package/bundles/covalent-core-chips.umd.min.js.map +1 -1
  11. package/bundles/covalent-core-common.umd.js +566 -571
  12. package/bundles/covalent-core-common.umd.js.map +1 -1
  13. package/bundles/covalent-core-common.umd.min.js +13 -12
  14. package/bundles/covalent-core-common.umd.min.js.map +1 -1
  15. package/bundles/covalent-core-data-table.umd.js +727 -1038
  16. package/bundles/covalent-core-data-table.umd.js.map +1 -1
  17. package/bundles/covalent-core-data-table.umd.min.js +12 -12
  18. package/bundles/covalent-core-data-table.umd.min.js.map +1 -1
  19. package/bundles/covalent-core-dialogs.umd.js +515 -592
  20. package/bundles/covalent-core-dialogs.umd.js.map +1 -1
  21. package/bundles/covalent-core-dialogs.umd.min.js +1 -15
  22. package/bundles/covalent-core-dialogs.umd.min.js.map +1 -1
  23. package/bundles/covalent-core-dynamic-menu.umd.js +73 -62
  24. package/bundles/covalent-core-dynamic-menu.umd.js.map +1 -1
  25. package/bundles/covalent-core-dynamic-menu.umd.min.js +1 -1
  26. package/bundles/covalent-core-dynamic-menu.umd.min.js.map +1 -1
  27. package/bundles/covalent-core-expansion-panel.umd.js +465 -449
  28. package/bundles/covalent-core-expansion-panel.umd.js.map +1 -1
  29. package/bundles/covalent-core-expansion-panel.umd.min.js +12 -12
  30. package/bundles/covalent-core-expansion-panel.umd.min.js.map +1 -1
  31. package/bundles/covalent-core-file.umd.js +533 -598
  32. package/bundles/covalent-core-file.umd.js.map +1 -1
  33. package/bundles/covalent-core-file.umd.min.js +13 -12
  34. package/bundles/covalent-core-file.umd.min.js.map +1 -1
  35. package/bundles/covalent-core-json-formatter.umd.js +101 -152
  36. package/bundles/covalent-core-json-formatter.umd.js.map +1 -1
  37. package/bundles/covalent-core-json-formatter.umd.min.js +1 -1
  38. package/bundles/covalent-core-json-formatter.umd.min.js.map +1 -1
  39. package/bundles/covalent-core-layout.umd.js +845 -883
  40. package/bundles/covalent-core-layout.umd.js.map +1 -1
  41. package/bundles/covalent-core-layout.umd.min.js +13 -12
  42. package/bundles/covalent-core-layout.umd.min.js.map +1 -1
  43. package/bundles/covalent-core-loading.umd.js +481 -723
  44. package/bundles/covalent-core-loading.umd.js.map +1 -1
  45. package/bundles/covalent-core-loading.umd.min.js +12 -12
  46. package/bundles/covalent-core-loading.umd.min.js.map +1 -1
  47. package/bundles/covalent-core-media.umd.js +395 -375
  48. package/bundles/covalent-core-media.umd.js.map +1 -1
  49. package/bundles/covalent-core-media.umd.min.js +12 -12
  50. package/bundles/covalent-core-media.umd.min.js.map +1 -1
  51. package/bundles/covalent-core-menu.umd.js +37 -17
  52. package/bundles/covalent-core-menu.umd.js.map +1 -1
  53. package/bundles/covalent-core-menu.umd.min.js +1 -1
  54. package/bundles/covalent-core-menu.umd.min.js.map +1 -1
  55. package/bundles/covalent-core-message.umd.js +96 -152
  56. package/bundles/covalent-core-message.umd.js.map +1 -1
  57. package/bundles/covalent-core-message.umd.min.js +1 -1
  58. package/bundles/covalent-core-message.umd.min.js.map +1 -1
  59. package/bundles/covalent-core-nav-links.umd.js +63 -75
  60. package/bundles/covalent-core-nav-links.umd.js.map +1 -1
  61. package/bundles/covalent-core-nav-links.umd.min.js +1 -1
  62. package/bundles/covalent-core-nav-links.umd.min.js.map +1 -1
  63. package/bundles/covalent-core-notifications.umd.js +77 -101
  64. package/bundles/covalent-core-notifications.umd.js.map +1 -1
  65. package/bundles/covalent-core-notifications.umd.min.js +1 -1
  66. package/bundles/covalent-core-notifications.umd.min.js.map +1 -1
  67. package/bundles/covalent-core-paging.umd.js +89 -166
  68. package/bundles/covalent-core-paging.umd.js.map +1 -1
  69. package/bundles/covalent-core-paging.umd.min.js +1 -1
  70. package/bundles/covalent-core-paging.umd.min.js.map +1 -1
  71. package/bundles/covalent-core-search.umd.js +469 -418
  72. package/bundles/covalent-core-search.umd.js.map +1 -1
  73. package/bundles/covalent-core-search.umd.min.js +12 -12
  74. package/bundles/covalent-core-search.umd.min.js.map +1 -1
  75. package/bundles/covalent-core-sidesheet.umd.js +72 -52
  76. package/bundles/covalent-core-sidesheet.umd.js.map +1 -1
  77. package/bundles/covalent-core-sidesheet.umd.min.js +1 -1
  78. package/bundles/covalent-core-sidesheet.umd.min.js.map +1 -1
  79. package/bundles/covalent-core-steps.umd.js +663 -822
  80. package/bundles/covalent-core-steps.umd.js.map +1 -1
  81. package/bundles/covalent-core-steps.umd.min.js +12 -12
  82. package/bundles/covalent-core-steps.umd.min.js.map +1 -1
  83. package/bundles/covalent-core-tab-select.umd.js +446 -385
  84. package/bundles/covalent-core-tab-select.umd.js.map +1 -1
  85. package/bundles/covalent-core-tab-select.umd.min.js +12 -12
  86. package/bundles/covalent-core-tab-select.umd.min.js.map +1 -1
  87. package/bundles/covalent-core-user-profile.umd.js +65 -48
  88. package/bundles/covalent-core-user-profile.umd.js.map +1 -1
  89. package/bundles/covalent-core-user-profile.umd.min.js +1 -1
  90. package/bundles/covalent-core-user-profile.umd.min.js.map +1 -1
  91. package/bundles/covalent-core-virtual-scroll.umd.js +412 -356
  92. package/bundles/covalent-core-virtual-scroll.umd.js.map +1 -1
  93. package/bundles/covalent-core-virtual-scroll.umd.min.js +12 -12
  94. package/bundles/covalent-core-virtual-scroll.umd.min.js.map +1 -1
  95. package/bundles/covalent-core.umd.js +0 -8
  96. package/bundles/covalent-core.umd.js.map +1 -1
  97. package/chips/covalent-core-chips.metadata.json +1 -1
  98. package/chips/package.json +1 -3
  99. package/common/_common-theme.scss +11 -0
  100. package/common/package.json +1 -3
  101. package/data-table/covalent-core-data-table.metadata.json +1 -1
  102. package/data-table/package.json +1 -3
  103. package/dialogs/_dialog-theme.scss +6 -0
  104. package/dialogs/covalent-core-dialogs.metadata.json +1 -1
  105. package/dialogs/package.json +1 -3
  106. package/dialogs/window-dialog/window-dialog.component.scss +4 -0
  107. package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +1 -1
  108. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -4
  109. package/dynamic-menu/package.json +1 -3
  110. package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +4 -3
  111. package/esm2015/breadcrumbs/breadcrumbs.component.js +3 -2
  112. package/esm2015/breadcrumbs/breadcrumbs.module.js +3 -2
  113. package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +3 -2
  114. package/esm2015/breadcrumbs/index.js +3 -2
  115. package/esm2015/breadcrumbs/public-api.js +3 -2
  116. package/esm2015/chips/chips.component.js +4 -3
  117. package/esm2015/chips/chips.module.js +3 -2
  118. package/esm2015/chips/covalent-core-chips.js +3 -2
  119. package/esm2015/chips/index.js +3 -2
  120. package/esm2015/chips/public-api.js +3 -2
  121. package/esm2015/common/animations/bounce/bounce.animation.js +3 -2
  122. package/esm2015/common/animations/collapse/collapse.animation.js +3 -2
  123. package/esm2015/common/animations/common/interfaces.js +3 -2
  124. package/esm2015/common/animations/fade/fadeInOut.animation.js +3 -2
  125. package/esm2015/common/animations/flash/flash.animation.js +3 -2
  126. package/esm2015/common/animations/headshake/headshake.animation.js +3 -2
  127. package/esm2015/common/animations/jello/jello.animation.js +3 -2
  128. package/esm2015/common/animations/pulse/pulse.animation.js +3 -2
  129. package/esm2015/common/animations/rotate/rotate.animation.js +3 -2
  130. package/esm2015/common/behaviors/control-value-accesor.mixin.js +3 -2
  131. package/esm2015/common/behaviors/disable-ripple.mixin.js +3 -2
  132. package/esm2015/common/behaviors/disabled.mixin.js +3 -2
  133. package/esm2015/common/common.module.js +3 -2
  134. package/esm2015/common/covalent-core-common.js +3 -2
  135. package/esm2015/common/directives/fullscreen/fullscreen.directive.js +3 -2
  136. package/esm2015/common/forms/auto-trim/auto-trim.directive.js +3 -2
  137. package/esm2015/common/forms/validators/validators.js +3 -2
  138. package/esm2015/common/functions/clipboard.js +3 -2
  139. package/esm2015/common/functions/convert.js +3 -2
  140. package/esm2015/common/functions/download.js +3 -2
  141. package/esm2015/common/functions/file.js +3 -2
  142. package/esm2015/common/index.js +3 -2
  143. package/esm2015/common/pipes/bytes/bytes.pipe.js +3 -2
  144. package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +3 -2
  145. package/esm2015/common/pipes/digits/digits.pipe.js +3 -2
  146. package/esm2015/common/pipes/time-ago/time-ago.pipe.js +3 -2
  147. package/esm2015/common/pipes/time-difference/time-difference.pipe.js +3 -2
  148. package/esm2015/common/pipes/time-until/time-until.pipe.js +3 -2
  149. package/esm2015/common/pipes/truncate/truncate.pipe.js +3 -2
  150. package/esm2015/common/public-api.js +3 -2
  151. package/esm2015/common/services/icon.service.js +3 -2
  152. package/esm2015/common/services/router-path.service.js +3 -2
  153. package/esm2015/covalent-core.js +3 -2
  154. package/esm2015/data-table/covalent-core-data-table.js +3 -2
  155. package/esm2015/data-table/data-table-cell/data-table-cell.component.js +4 -3
  156. package/esm2015/data-table/data-table-column/data-table-column.component.js +4 -3
  157. package/esm2015/data-table/data-table-row/data-table-row.component.js +3 -2
  158. package/esm2015/data-table/data-table-table/data-table-table.component.js +4 -3
  159. package/esm2015/data-table/data-table.component.js +6 -5
  160. package/esm2015/data-table/data-table.module.js +3 -2
  161. package/esm2015/data-table/directives/data-table-template.directive.js +3 -2
  162. package/esm2015/data-table/index.js +3 -2
  163. package/esm2015/data-table/public-api.js +3 -2
  164. package/esm2015/data-table/services/data-table.service.js +3 -2
  165. package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +3 -2
  166. package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +3 -2
  167. package/esm2015/dialogs/covalent-core-dialogs.js +3 -2
  168. package/esm2015/dialogs/dialog.component.js +4 -3
  169. package/esm2015/dialogs/dialogs.module.js +3 -2
  170. package/esm2015/dialogs/index.js +3 -2
  171. package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +4 -3
  172. package/esm2015/dialogs/public-api.js +3 -2
  173. package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +14 -13
  174. package/esm2015/dialogs/services/dialog.service.js +3 -2
  175. package/esm2015/dialogs/window-dialog/window-dialog.component.js +4 -3
  176. package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +3 -2
  177. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +5 -4
  178. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +4 -3
  179. package/esm2015/dynamic-menu/dynamic-menu.component.js +3 -2
  180. package/esm2015/dynamic-menu/dynamic-menu.module.js +3 -2
  181. package/esm2015/dynamic-menu/index.js +3 -2
  182. package/esm2015/dynamic-menu/public_api.js +3 -2
  183. package/esm2015/expansion-panel/covalent-core-expansion-panel.js +3 -2
  184. package/esm2015/expansion-panel/expansion-panel-group.component.js +3 -2
  185. package/esm2015/expansion-panel/expansion-panel.component.js +4 -3
  186. package/esm2015/expansion-panel/expansion-panel.module.js +3 -2
  187. package/esm2015/expansion-panel/index.js +3 -2
  188. package/esm2015/expansion-panel/public-api.js +3 -2
  189. package/esm2015/file/covalent-core-file.js +3 -2
  190. package/esm2015/file/directives/file-drop.directive.js +3 -2
  191. package/esm2015/file/directives/file-select.directive.js +3 -2
  192. package/esm2015/file/file-input/file-input.component.js +3 -2
  193. package/esm2015/file/file-upload/file-upload.component.js +4 -3
  194. package/esm2015/file/file.module.js +3 -2
  195. package/esm2015/file/index.js +3 -2
  196. package/esm2015/file/public-api.js +3 -2
  197. package/esm2015/file/services/file.service.js +3 -2
  198. package/esm2015/index.js +4 -2
  199. package/esm2015/json-formatter/covalent-core-json-formatter.js +3 -2
  200. package/esm2015/json-formatter/index.js +3 -2
  201. package/esm2015/json-formatter/json-formatter.component.js +4 -3
  202. package/esm2015/json-formatter/json-formatter.module.js +3 -2
  203. package/esm2015/json-formatter/public-api.js +3 -2
  204. package/esm2015/layout/covalent-core-layout.js +4 -3
  205. package/esm2015/layout/index.js +4 -3
  206. package/esm2015/layout/layout-card-over/layout-card-over.component.js +4 -3
  207. package/esm2015/layout/layout-footer/layout-footer.component.js +3 -2
  208. package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +4 -3
  209. package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +7 -6
  210. package/esm2015/layout/layout-nav/layout-nav.component.js +4 -3
  211. package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +4 -3
  212. package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +7 -6
  213. package/esm2015/layout/layout-toggle.class.js +22 -12
  214. package/esm2015/layout/layout.component.js +4 -3
  215. package/esm2015/layout/layout.directives.js +7 -6
  216. package/esm2015/layout/layout.module.js +3 -2
  217. package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +4 -3
  218. package/esm2015/layout/public-api.js +4 -3
  219. package/esm2015/loading/covalent-core-loading.js +3 -2
  220. package/esm2015/loading/directives/loading.directive.js +3 -2
  221. package/esm2015/loading/index.js +3 -2
  222. package/esm2015/loading/loading.component.js +13 -12
  223. package/esm2015/loading/loading.module.js +3 -2
  224. package/esm2015/loading/public-api.js +3 -2
  225. package/esm2015/loading/services/loading.factory.js +3 -2
  226. package/esm2015/loading/services/loading.service.js +3 -2
  227. package/esm2015/media/covalent-core-media.js +3 -2
  228. package/esm2015/media/directives/media-toggle.directive.js +3 -2
  229. package/esm2015/media/index.js +3 -2
  230. package/esm2015/media/media.module.js +3 -2
  231. package/esm2015/media/public-api.js +3 -2
  232. package/esm2015/media/services/media.service.js +3 -2
  233. package/esm2015/menu/covalent-core-menu.js +3 -2
  234. package/esm2015/menu/index.js +3 -2
  235. package/esm2015/menu/menu.component.js +4 -3
  236. package/esm2015/menu/menu.module.js +3 -2
  237. package/esm2015/menu/public-api.js +3 -2
  238. package/esm2015/message/covalent-core-message.js +3 -2
  239. package/esm2015/message/index.js +3 -2
  240. package/esm2015/message/message.component.js +4 -3
  241. package/esm2015/message/message.module.js +3 -2
  242. package/esm2015/message/public-api.js +3 -2
  243. package/esm2015/nav-links/covalent-core-nav-links.js +3 -2
  244. package/esm2015/nav-links/index.js +3 -2
  245. package/esm2015/nav-links/nav-links.component.js +3 -2
  246. package/esm2015/nav-links/nav-links.module.js +3 -2
  247. package/esm2015/nav-links/public-api.js +3 -2
  248. package/esm2015/notifications/covalent-core-notifications.js +3 -2
  249. package/esm2015/notifications/index.js +3 -2
  250. package/esm2015/notifications/notification-count.component.js +10 -9
  251. package/esm2015/notifications/notifications.module.js +3 -2
  252. package/esm2015/notifications/public-api.js +3 -2
  253. package/esm2015/paging/covalent-core-paging.js +3 -2
  254. package/esm2015/paging/index.js +3 -2
  255. package/esm2015/paging/paging-bar.component.js +4 -3
  256. package/esm2015/paging/paging.module.js +3 -2
  257. package/esm2015/paging/public-api.js +3 -2
  258. package/esm2015/search/covalent-core-search.js +3 -2
  259. package/esm2015/search/index.js +3 -2
  260. package/esm2015/search/public-api.js +3 -2
  261. package/esm2015/search/search-box/search-box.component.js +4 -3
  262. package/esm2015/search/search-input/search-input.component.js +4 -3
  263. package/esm2015/search/search.module.js +3 -2
  264. package/esm2015/sidesheet/covalent-core-sidesheet.js +3 -2
  265. package/esm2015/sidesheet/index.js +3 -2
  266. package/esm2015/sidesheet/public-api.js +3 -2
  267. package/esm2015/sidesheet/sidesheet.component.js +4 -3
  268. package/esm2015/sidesheet/sidesheet.module.js +3 -2
  269. package/esm2015/steps/covalent-core-steps.js +3 -2
  270. package/esm2015/steps/index.js +3 -2
  271. package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +4 -3
  272. package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +4 -3
  273. package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +4 -3
  274. package/esm2015/steps/public-api.js +3 -2
  275. package/esm2015/steps/step-body/step-body.component.js +4 -3
  276. package/esm2015/steps/step-header/step-header.component.js +4 -3
  277. package/esm2015/steps/step.component.js +6 -5
  278. package/esm2015/steps/steps.component.js +6 -5
  279. package/esm2015/steps/steps.module.js +3 -2
  280. package/esm2015/tab-select/covalent-core-tab-select.js +3 -2
  281. package/esm2015/tab-select/index.js +3 -2
  282. package/esm2015/tab-select/public-api.js +3 -2
  283. package/esm2015/tab-select/tab-option.component.js +3 -2
  284. package/esm2015/tab-select/tab-select.component.js +3 -2
  285. package/esm2015/tab-select/tab-select.module.js +3 -2
  286. package/esm2015/user-profile/covalent-core-user-profile.js +3 -2
  287. package/esm2015/user-profile/index.js +3 -2
  288. package/esm2015/user-profile/public_api.js +3 -2
  289. package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +4 -3
  290. package/esm2015/user-profile/user-profile.component.js +3 -2
  291. package/esm2015/user-profile/user-profile.module.js +3 -2
  292. package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +3 -2
  293. package/esm2015/virtual-scroll/index.js +3 -2
  294. package/esm2015/virtual-scroll/public-api.js +3 -2
  295. package/esm2015/virtual-scroll/virtual-scroll-container.component.js +4 -3
  296. package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +3 -2
  297. package/esm2015/virtual-scroll/virtual-scroll.module.js +3 -2
  298. package/expansion-panel/covalent-core-expansion-panel.metadata.json +1 -1
  299. package/expansion-panel/package.json +1 -3
  300. package/fesm2015/covalent-core-breadcrumbs.js +13 -7
  301. package/fesm2015/covalent-core-breadcrumbs.js.map +1 -1
  302. package/fesm2015/covalent-core-chips.js +11 -6
  303. package/fesm2015/covalent-core-chips.js.map +1 -1
  304. package/fesm2015/covalent-core-common.js +62 -31
  305. package/fesm2015/covalent-core-common.js.map +1 -1
  306. package/fesm2015/covalent-core-data-table.js +28 -17
  307. package/fesm2015/covalent-core-data-table.js.map +1 -1
  308. package/fesm2015/covalent-core-dialogs.js +36 -25
  309. package/fesm2015/covalent-core-dialogs.js.map +1 -1
  310. package/fesm2015/covalent-core-dynamic-menu.js +17 -10
  311. package/fesm2015/covalent-core-dynamic-menu.js.map +1 -1
  312. package/fesm2015/covalent-core-expansion-panel.js +13 -7
  313. package/fesm2015/covalent-core-expansion-panel.js.map +1 -1
  314. package/fesm2015/covalent-core-file.js +19 -10
  315. package/fesm2015/covalent-core-file.js.map +1 -1
  316. package/fesm2015/covalent-core-json-formatter.js +11 -6
  317. package/fesm2015/covalent-core-json-formatter.js.map +1 -1
  318. package/fesm2015/covalent-core-layout.js +65 -41
  319. package/fesm2015/covalent-core-layout.js.map +1 -1
  320. package/fesm2015/covalent-core-loading.js +26 -18
  321. package/fesm2015/covalent-core-loading.js.map +1 -1
  322. package/fesm2015/covalent-core-media.js +12 -6
  323. package/fesm2015/covalent-core-media.js.map +1 -1
  324. package/fesm2015/covalent-core-menu.js +11 -6
  325. package/fesm2015/covalent-core-menu.js.map +1 -1
  326. package/fesm2015/covalent-core-message.js +11 -6
  327. package/fesm2015/covalent-core-message.js.map +1 -1
  328. package/fesm2015/covalent-core-nav-links.js +10 -5
  329. package/fesm2015/covalent-core-nav-links.js.map +1 -1
  330. package/fesm2015/covalent-core-notifications.js +17 -12
  331. package/fesm2015/covalent-core-notifications.js.map +1 -1
  332. package/fesm2015/covalent-core-paging.js +11 -6
  333. package/fesm2015/covalent-core-paging.js.map +1 -1
  334. package/fesm2015/covalent-core-search.js +14 -8
  335. package/fesm2015/covalent-core-search.js.map +1 -1
  336. package/fesm2015/covalent-core-sidesheet.js +11 -6
  337. package/fesm2015/covalent-core-sidesheet.js.map +1 -1
  338. package/fesm2015/covalent-core-steps.js +33 -22
  339. package/fesm2015/covalent-core-steps.js.map +1 -1
  340. package/fesm2015/covalent-core-tab-select.js +12 -6
  341. package/fesm2015/covalent-core-tab-select.js.map +1 -1
  342. package/fesm2015/covalent-core-user-profile.js +13 -7
  343. package/fesm2015/covalent-core-user-profile.js.map +1 -1
  344. package/fesm2015/covalent-core-virtual-scroll.js +13 -7
  345. package/fesm2015/covalent-core-virtual-scroll.js.map +1 -1
  346. package/fesm2015/covalent-core.js +4 -2
  347. package/fesm2015/covalent-core.js.map +1 -1
  348. package/file/covalent-core-file.metadata.json +1 -1
  349. package/file/package.json +1 -3
  350. package/json-formatter/covalent-core-json-formatter.metadata.json +1 -1
  351. package/json-formatter/package.json +1 -3
  352. package/layout/covalent-core-layout.metadata.json +1 -1
  353. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +4 -4
  354. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +4 -4
  355. package/layout/layout-toggle.class.d.ts +1 -1
  356. package/layout/layout.directives.d.ts +4 -4
  357. package/layout/package.json +1 -3
  358. package/loading/covalent-core-loading.metadata.json +1 -1
  359. package/loading/package.json +1 -3
  360. package/media/package.json +1 -3
  361. package/menu/covalent-core-menu.metadata.json +1 -1
  362. package/menu/package.json +1 -3
  363. package/message/covalent-core-message.metadata.json +1 -1
  364. package/message/package.json +1 -3
  365. package/nav-links/package.json +1 -3
  366. package/notifications/covalent-core-notifications.metadata.json +1 -1
  367. package/notifications/package.json +1 -3
  368. package/package.json +12 -12
  369. package/paging/covalent-core-paging.metadata.json +1 -1
  370. package/paging/package.json +1 -3
  371. package/schematics/components.js +1 -0
  372. package/schematics/components.js.map +1 -1
  373. package/schematics/ng-add/files/theme.scss +1 -1
  374. package/schematics/ng-add/index.js +4 -6
  375. package/schematics/ng-add/index.js.map +1 -1
  376. package/schematics/ng-update/index.js +1 -0
  377. package/schematics/ng-update/index.js.map +1 -1
  378. package/schematics/ng-update/target-version.js +1 -0
  379. package/schematics/ng-update/target-version.js.map +1 -1
  380. package/schematics/version-names.js +1 -0
  381. package/schematics/version-names.js.map +1 -1
  382. package/search/covalent-core-search.metadata.json +1 -1
  383. package/search/package.json +1 -3
  384. package/sidesheet/covalent-core-sidesheet.metadata.json +1 -1
  385. package/sidesheet/package.json +1 -3
  386. package/steps/covalent-core-steps.metadata.json +1 -1
  387. package/steps/package.json +1 -3
  388. package/tab-select/covalent-core-tab-select.metadata.json +1 -1
  389. package/tab-select/package.json +1 -3
  390. package/theming/prebuilt/blue-grey-deep-orange.css +193 -28
  391. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  392. package/theming/prebuilt/blue-orange.css +193 -28
  393. package/theming/prebuilt/blue-orange.css.map +1 -1
  394. package/theming/prebuilt/indigo-pink.css +193 -28
  395. package/theming/prebuilt/indigo-pink.css.map +1 -1
  396. package/theming/prebuilt/orange-light-blue.css +193 -28
  397. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  398. package/theming/prebuilt/teal-orange.css +193 -28
  399. package/theming/prebuilt/teal-orange.css.map +1 -1
  400. package/user-profile/covalent-core-user-profile.metadata.json +1 -1
  401. package/user-profile/package.json +1 -3
  402. package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +1 -1
  403. package/virtual-scroll/package.json +1 -3
  404. package/esm5/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -216
  405. package/esm5/breadcrumbs/breadcrumbs.component.js +0 -286
  406. package/esm5/breadcrumbs/breadcrumbs.module.js +0 -23
  407. package/esm5/breadcrumbs/covalent-core-breadcrumbs.js +0 -9
  408. package/esm5/breadcrumbs/index.js +0 -6
  409. package/esm5/breadcrumbs/public-api.js +0 -8
  410. package/esm5/chips/chips.component.js +0 -1453
  411. package/esm5/chips/chips.module.js +0 -26
  412. package/esm5/chips/covalent-core-chips.js +0 -9
  413. package/esm5/chips/index.js +0 -6
  414. package/esm5/chips/public-api.js +0 -7
  415. package/esm5/common/animations/bounce/bounce.animation.js +0 -75
  416. package/esm5/common/animations/collapse/collapse.animation.js +0 -66
  417. package/esm5/common/animations/common/interfaces.js +0 -17
  418. package/esm5/common/animations/fade/fadeInOut.animation.js +0 -52
  419. package/esm5/common/animations/flash/flash.animation.js +0 -39
  420. package/esm5/common/animations/headshake/headshake.animation.js +0 -40
  421. package/esm5/common/animations/jello/jello.animation.js +0 -43
  422. package/esm5/common/animations/pulse/pulse.animation.js +0 -37
  423. package/esm5/common/animations/rotate/rotate.animation.js +0 -40
  424. package/esm5/common/behaviors/control-value-accesor.mixin.js +0 -127
  425. package/esm5/common/behaviors/disable-ripple.mixin.js +0 -75
  426. package/esm5/common/behaviors/disabled.mixin.js +0 -75
  427. package/esm5/common/common.module.js +0 -57
  428. package/esm5/common/covalent-core-common.js +0 -11
  429. package/esm5/common/directives/fullscreen/fullscreen.directive.js +0 -228
  430. package/esm5/common/forms/auto-trim/auto-trim.directive.js +0 -52
  431. package/esm5/common/forms/validators/validators.js +0 -73
  432. package/esm5/common/functions/clipboard.js +0 -29
  433. package/esm5/common/functions/convert.js +0 -120
  434. package/esm5/common/functions/download.js +0 -93
  435. package/esm5/common/functions/file.js +0 -28
  436. package/esm5/common/index.js +0 -6
  437. package/esm5/common/pipes/bytes/bytes.pipe.js +0 -54
  438. package/esm5/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -54
  439. package/esm5/common/pipes/digits/digits.pipe.js +0 -72
  440. package/esm5/common/pipes/time-ago/time-ago.pipe.js +0 -89
  441. package/esm5/common/pipes/time-difference/time-difference.pipe.js +0 -74
  442. package/esm5/common/pipes/time-until/time-until.pipe.js +0 -89
  443. package/esm5/common/pipes/truncate/truncate.pipe.js +0 -42
  444. package/esm5/common/public-api.js +0 -43
  445. package/esm5/common/services/icon.service.js +0 -1118
  446. package/esm5/common/services/router-path.service.js +0 -69
  447. package/esm5/covalent-core.js +0 -9
  448. package/esm5/data-table/covalent-core-data-table.js +0 -9
  449. package/esm5/data-table/data-table-cell/data-table-cell.component.js +0 -98
  450. package/esm5/data-table/data-table-column/data-table-column.component.js +0 -257
  451. package/esm5/data-table/data-table-row/data-table-row.component.js +0 -145
  452. package/esm5/data-table/data-table-table/data-table-table.component.js +0 -40
  453. package/esm5/data-table/data-table.component.js +0 -2079
  454. package/esm5/data-table/data-table.module.js +0 -42
  455. package/esm5/data-table/directives/data-table-template.directive.js +0 -31
  456. package/esm5/data-table/index.js +0 -6
  457. package/esm5/data-table/public-api.js +0 -13
  458. package/esm5/data-table/services/data-table.service.js +0 -184
  459. package/esm5/dialogs/alert-dialog/alert-dialog.component.js +0 -48
  460. package/esm5/dialogs/confirm-dialog/confirm-dialog.component.js +0 -63
  461. package/esm5/dialogs/covalent-core-dialogs.js +0 -10
  462. package/esm5/dialogs/dialog.component.js +0 -76
  463. package/esm5/dialogs/dialogs.module.js +0 -60
  464. package/esm5/dialogs/index.js +0 -6
  465. package/esm5/dialogs/prompt-dialog/prompt-dialog.component.js +0 -100
  466. package/esm5/dialogs/public-api.js +0 -12
  467. package/esm5/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -356
  468. package/esm5/dialogs/services/dialog.service.js +0 -441
  469. package/esm5/dialogs/window-dialog/window-dialog.component.js +0 -60
  470. package/esm5/dynamic-menu/covalent-core-dynamic-menu.js +0 -10
  471. package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -45
  472. package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -39
  473. package/esm5/dynamic-menu/dynamic-menu.component.js +0 -94
  474. package/esm5/dynamic-menu/dynamic-menu.module.js +0 -29
  475. package/esm5/dynamic-menu/index.js +0 -6
  476. package/esm5/dynamic-menu/public_api.js +0 -8
  477. package/esm5/expansion-panel/covalent-core-expansion-panel.js +0 -9
  478. package/esm5/expansion-panel/expansion-panel-group.component.js +0 -251
  479. package/esm5/expansion-panel/expansion-panel.component.js +0 -344
  480. package/esm5/expansion-panel/expansion-panel.module.js +0 -34
  481. package/esm5/expansion-panel/index.js +0 -6
  482. package/esm5/expansion-panel/public-api.js +0 -8
  483. package/esm5/file/covalent-core-file.js +0 -9
  484. package/esm5/file/directives/file-drop.directive.js +0 -276
  485. package/esm5/file/directives/file-select.directive.js +0 -124
  486. package/esm5/file/file-input/file-input.component.js +0 -225
  487. package/esm5/file/file-upload/file-upload.component.js +0 -284
  488. package/esm5/file/file.module.js +0 -38
  489. package/esm5/file/index.js +0 -6
  490. package/esm5/file/public-api.js +0 -11
  491. package/esm5/file/services/file.service.js +0 -137
  492. package/esm5/index.js +0 -5
  493. package/esm5/json-formatter/covalent-core-json-formatter.js +0 -9
  494. package/esm5/json-formatter/index.js +0 -6
  495. package/esm5/json-formatter/json-formatter.component.js +0 -433
  496. package/esm5/json-formatter/json-formatter.module.js +0 -23
  497. package/esm5/json-formatter/public-api.js +0 -7
  498. package/esm5/layout/covalent-core-layout.js +0 -9
  499. package/esm5/layout/index.js +0 -6
  500. package/esm5/layout/layout-card-over/layout-card-over.component.js +0 -72
  501. package/esm5/layout/layout-footer/layout-footer.component.js +0 -77
  502. package/esm5/layout/layout-manage-list/layout-manage-list.component.js +0 -175
  503. package/esm5/layout/layout-manage-list/layout-manage-list.directives.js +0 -147
  504. package/esm5/layout/layout-nav/layout-nav.component.js +0 -108
  505. package/esm5/layout/layout-nav-list/layout-nav-list.component.js +0 -257
  506. package/esm5/layout/layout-nav-list/layout-nav-list.directives.js +0 -147
  507. package/esm5/layout/layout-toggle.class.js +0 -214
  508. package/esm5/layout/layout.component.js +0 -175
  509. package/esm5/layout/layout.directives.js +0 -144
  510. package/esm5/layout/layout.module.js +0 -67
  511. package/esm5/layout/navigation-drawer/navigation-drawer.component.js +0 -364
  512. package/esm5/layout/public-api.js +0 -17
  513. package/esm5/loading/covalent-core-loading.js +0 -9
  514. package/esm5/loading/directives/loading.directive.js +0 -304
  515. package/esm5/loading/index.js +0 -6
  516. package/esm5/loading/loading.component.js +0 -367
  517. package/esm5/loading/loading.module.js +0 -33
  518. package/esm5/loading/public-api.js +0 -10
  519. package/esm5/loading/services/loading.factory.js +0 -378
  520. package/esm5/loading/services/loading.service.js +0 -494
  521. package/esm5/media/covalent-core-media.js +0 -9
  522. package/esm5/media/directives/media-toggle.directive.js +0 -261
  523. package/esm5/media/index.js +0 -6
  524. package/esm5/media/media.module.js +0 -23
  525. package/esm5/media/public-api.js +0 -8
  526. package/esm5/media/services/media.service.js +0 -229
  527. package/esm5/menu/covalent-core-menu.js +0 -9
  528. package/esm5/menu/index.js +0 -6
  529. package/esm5/menu/menu.component.js +0 -19
  530. package/esm5/menu/menu.module.js +0 -25
  531. package/esm5/menu/public-api.js +0 -7
  532. package/esm5/message/covalent-core-message.js +0 -9
  533. package/esm5/message/index.js +0 -6
  534. package/esm5/message/message.component.js +0 -402
  535. package/esm5/message/message.module.js +0 -24
  536. package/esm5/message/public-api.js +0 -7
  537. package/esm5/nav-links/covalent-core-nav-links.js +0 -9
  538. package/esm5/nav-links/index.js +0 -6
  539. package/esm5/nav-links/nav-links.component.js +0 -171
  540. package/esm5/nav-links/nav-links.module.js +0 -40
  541. package/esm5/nav-links/public-api.js +0 -7
  542. package/esm5/notifications/covalent-core-notifications.js +0 -9
  543. package/esm5/notifications/index.js +0 -6
  544. package/esm5/notifications/notification-count.component.js +0 -268
  545. package/esm5/notifications/notifications.module.js +0 -23
  546. package/esm5/notifications/public-api.js +0 -7
  547. package/esm5/paging/covalent-core-paging.js +0 -9
  548. package/esm5/paging/index.js +0 -6
  549. package/esm5/paging/paging-bar.component.js +0 -542
  550. package/esm5/paging/paging.module.js +0 -23
  551. package/esm5/paging/public-api.js +0 -7
  552. package/esm5/search/covalent-core-search.js +0 -9
  553. package/esm5/search/index.js +0 -6
  554. package/esm5/search/public-api.js +0 -8
  555. package/esm5/search/search-box/search-box.component.js +0 -298
  556. package/esm5/search/search-input/search-input.component.js +0 -297
  557. package/esm5/search/search.module.js +0 -26
  558. package/esm5/sidesheet/covalent-core-sidesheet.js +0 -9
  559. package/esm5/sidesheet/index.js +0 -6
  560. package/esm5/sidesheet/public-api.js +0 -7
  561. package/esm5/sidesheet/sidesheet.component.js +0 -89
  562. package/esm5/sidesheet/sidesheet.module.js +0 -30
  563. package/esm5/steps/covalent-core-steps.js +0 -9
  564. package/esm5/steps/index.js +0 -6
  565. package/esm5/steps/nav/nav-step-link/nav-step-link.component.js +0 -165
  566. package/esm5/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -464
  567. package/esm5/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -143
  568. package/esm5/steps/public-api.js +0 -13
  569. package/esm5/steps/step-body/step-body.component.js +0 -103
  570. package/esm5/steps/step-header/step-header.component.js +0 -101
  571. package/esm5/steps/step.component.js +0 -399
  572. package/esm5/steps/steps.component.js +0 -313
  573. package/esm5/steps/steps.module.js +0 -47
  574. package/esm5/tab-select/covalent-core-tab-select.js +0 -9
  575. package/esm5/tab-select/index.js +0 -6
  576. package/esm5/tab-select/public-api.js +0 -8
  577. package/esm5/tab-select/tab-option.component.js +0 -86
  578. package/esm5/tab-select/tab-select.component.js +0 -344
  579. package/esm5/tab-select/tab-select.module.js +0 -34
  580. package/esm5/user-profile/covalent-core-user-profile.js +0 -9
  581. package/esm5/user-profile/index.js +0 -6
  582. package/esm5/user-profile/public_api.js +0 -8
  583. package/esm5/user-profile/user-profile-menu/user-profile-menu.component.js +0 -42
  584. package/esm5/user-profile/user-profile.component.js +0 -29
  585. package/esm5/user-profile/user-profile.module.js +0 -36
  586. package/esm5/virtual-scroll/covalent-core-virtual-scroll.js +0 -9
  587. package/esm5/virtual-scroll/index.js +0 -6
  588. package/esm5/virtual-scroll/public-api.js +0 -8
  589. package/esm5/virtual-scroll/virtual-scroll-container.component.js +0 -468
  590. package/esm5/virtual-scroll/virtual-scroll-row.directive.js +0 -24
  591. package/esm5/virtual-scroll/virtual-scroll.module.js +0 -24
  592. package/fesm5/covalent-core-breadcrumbs.js +0 -535
  593. package/fesm5/covalent-core-breadcrumbs.js.map +0 -1
  594. package/fesm5/covalent-core-chips.js +0 -1484
  595. package/fesm5/covalent-core-chips.js.map +0 -1
  596. package/fesm5/covalent-core-common.js +0 -2961
  597. package/fesm5/covalent-core-common.js.map +0 -1
  598. package/fesm5/covalent-core-data-table.js +0 -2863
  599. package/fesm5/covalent-core-data-table.js.map +0 -1
  600. package/fesm5/covalent-core-dialogs.js +0 -1189
  601. package/fesm5/covalent-core-dialogs.js.map +0 -1
  602. package/fesm5/covalent-core-dynamic-menu.js +0 -214
  603. package/fesm5/covalent-core-dynamic-menu.js.map +0 -1
  604. package/fesm5/covalent-core-expansion-panel.js +0 -631
  605. package/fesm5/covalent-core-expansion-panel.js.map +0 -1
  606. package/fesm5/covalent-core-file.js +0 -1068
  607. package/fesm5/covalent-core-file.js.map +0 -1
  608. package/fesm5/covalent-core-json-formatter.js +0 -470
  609. package/fesm5/covalent-core-json-formatter.js.map +0 -1
  610. package/fesm5/covalent-core-layout.js +0 -1906
  611. package/fesm5/covalent-core-layout.js.map +0 -1
  612. package/fesm5/covalent-core-loading.js +0 -1562
  613. package/fesm5/covalent-core-loading.js.map +0 -1
  614. package/fesm5/covalent-core-media.js +0 -522
  615. package/fesm5/covalent-core-media.js.map +0 -1
  616. package/fesm5/covalent-core-menu.js +0 -58
  617. package/fesm5/covalent-core-menu.js.map +0 -1
  618. package/fesm5/covalent-core-message.js +0 -439
  619. package/fesm5/covalent-core-message.js.map +0 -1
  620. package/fesm5/covalent-core-nav-links.js +0 -224
  621. package/fesm5/covalent-core-nav-links.js.map +0 -1
  622. package/fesm5/covalent-core-notifications.js +0 -303
  623. package/fesm5/covalent-core-notifications.js.map +0 -1
  624. package/fesm5/covalent-core-paging.js +0 -579
  625. package/fesm5/covalent-core-paging.js.map +0 -1
  626. package/fesm5/covalent-core-search.js +0 -623
  627. package/fesm5/covalent-core-search.js.map +0 -1
  628. package/fesm5/covalent-core-sidesheet.js +0 -129
  629. package/fesm5/covalent-core-sidesheet.js.map +0 -1
  630. package/fesm5/covalent-core-steps.js +0 -1704
  631. package/fesm5/covalent-core-steps.js.map +0 -1
  632. package/fesm5/covalent-core-tab-select.js +0 -467
  633. package/fesm5/covalent-core-tab-select.js.map +0 -1
  634. package/fesm5/covalent-core-user-profile.js +0 -118
  635. package/fesm5/covalent-core-user-profile.js.map +0 -1
  636. package/fesm5/covalent-core-virtual-scroll.js +0 -526
  637. package/fesm5/covalent-core-virtual-scroll.js.map +0 -1
  638. package/fesm5/covalent-core.js +0 -10
  639. package/fesm5/covalent-core.js.map +0 -1
@@ -1,262 +1,356 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/autocomplete'), require('@angular/material/chips'), require('@angular/cdk/portal'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('@angular/material/core'), require('rxjs'), require('rxjs/operators'), require('@covalent/core/common')) :
3
3
  typeof define === 'function' && define.amd ? define('@covalent/core/chips', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/input', '@angular/material/icon', '@angular/material/autocomplete', '@angular/material/chips', '@angular/cdk/portal', '@angular/cdk/coercion', '@angular/cdk/keycodes', '@angular/material/core', 'rxjs', 'rxjs/operators', '@covalent/core/common'], factory) :
4
- (global = global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.chips = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.input, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.chips, global.ng.cdk.portal, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.ng.material.core, global.rxjs, global.rxjs.operators, global.covalent.core.common));
5
- }(this, (function (exports, core, forms, common, input, icon, autocomplete, chips, portal, coercion, keycodes, core$1, rxjs, operators, common$1) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.chips = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.input, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.chips, global.ng.cdk.portal, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.ng.material.core, global.rxjs, global.rxjs.operators, global.covalent.core.common));
5
+ }(this, (function (exports, core, forms, common$1, input, icon, autocomplete, chips, portal, coercion, keycodes, core$1, rxjs, operators, common) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation. All rights reserved.
9
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
- this file except in compliance with the License. You may obtain a copy of the
11
- License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
- MERCHANTABLITY OR NON-INFRINGEMENT.
17
-
18
- See the Apache Version 2.0 License for specific language governing permissions
19
- and limitations under the License.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __exportStar(m, exports) {
113
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
114
- }
115
-
116
- function __values(o) {
117
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
118
- if (m) return m.call(o);
119
- if (o && typeof o.length === "number") return {
120
- next: function () {
121
- if (o && i >= o.length) o = void 0;
122
- return { value: o && o[i++], done: !o };
123
- }
124
- };
125
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
126
- }
127
-
128
- function __read(o, n) {
129
- var m = typeof Symbol === "function" && o[Symbol.iterator];
130
- if (!m) return o;
131
- var i = m.call(o), r, ar = [], e;
132
- try {
133
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
134
- }
135
- catch (error) { e = { error: error }; }
136
- finally {
137
- try {
138
- if (r && !r.done && (m = i["return"])) m.call(i);
139
- }
140
- finally { if (e) throw e.error; }
141
- }
142
- return ar;
143
- }
144
-
145
- function __spread() {
146
- for (var ar = [], i = 0; i < arguments.length; i++)
147
- ar = ar.concat(__read(arguments[i]));
148
- return ar;
149
- }
150
-
151
- function __spreadArrays() {
152
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
153
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
154
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
155
- r[k] = a[j];
156
- return r;
157
- };
158
-
159
- function __await(v) {
160
- return this instanceof __await ? (this.v = v, this) : new __await(v);
161
- }
162
-
163
- function __asyncGenerator(thisArg, _arguments, generator) {
164
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
165
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
166
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
167
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
168
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
169
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
170
- function fulfill(value) { resume("next", value); }
171
- function reject(value) { resume("throw", value); }
172
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
173
- }
174
-
175
- function __asyncDelegator(o) {
176
- var i, p;
177
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
178
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
179
- }
180
-
181
- function __asyncValues(o) {
182
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
183
- var m = o[Symbol.asyncIterator], i;
184
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
185
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
186
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
187
- }
188
-
189
- function __makeTemplateObject(cooked, raw) {
190
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
191
- return cooked;
192
- };
193
-
194
- function __importStar(mod) {
195
- if (mod && mod.__esModule) return mod;
196
- var result = {};
197
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
198
- result.default = mod;
199
- return result;
200
- }
201
-
202
- function __importDefault(mod) {
203
- return (mod && mod.__esModule) ? mod : { default: mod };
204
- }
205
-
206
- function __classPrivateFieldGet(receiver, privateMap) {
207
- if (!privateMap.has(receiver)) {
208
- throw new TypeError("attempted to get private field on non-instance");
209
- }
210
- return privateMap.get(receiver);
211
- }
212
-
213
- function __classPrivateFieldSet(receiver, privateMap, value) {
214
- if (!privateMap.has(receiver)) {
215
- throw new TypeError("attempted to set private field on non-instance");
216
- }
217
- privateMap.set(receiver, value);
218
- return value;
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (Object.prototype.hasOwnProperty.call(b, p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
29
+ };
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+ var __assign = function () {
36
+ __assign = Object.assign || function __assign(t) {
37
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38
+ s = arguments[i];
39
+ for (var p in s)
40
+ if (Object.prototype.hasOwnProperty.call(s, p))
41
+ t[p] = s[p];
42
+ }
43
+ return t;
44
+ };
45
+ return __assign.apply(this, arguments);
46
+ };
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s)
50
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ }
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
+ r = Reflect.decorate(decorators, target, key, desc);
63
+ else
64
+ for (var i = decorators.length - 1; i >= 0; i--)
65
+ if (d = decorators[i])
66
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
68
+ }
69
+ function __param(paramIndex, decorator) {
70
+ return function (target, key) { decorator(target, key, paramIndex); };
71
+ }
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
+ return Reflect.metadata(metadataKey, metadataValue);
75
+ }
76
+ function __awaiter(thisArg, _arguments, P, generator) {
77
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
+ return new (P || (P = Promise))(function (resolve, reject) {
79
+ function fulfilled(value) { try {
80
+ step(generator.next(value));
81
+ }
82
+ catch (e) {
83
+ reject(e);
84
+ } }
85
+ function rejected(value) { try {
86
+ step(generator["throw"](value));
87
+ }
88
+ catch (e) {
89
+ reject(e);
90
+ } }
91
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
93
+ });
94
+ }
95
+ function __generator(thisArg, body) {
96
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
97
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
+ function verb(n) { return function (v) { return step([n, v]); }; }
100
+ function step(op) {
101
+ if (f)
102
+ throw new TypeError("Generator is already executing.");
103
+ while (_)
104
+ try {
105
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
106
+ return t;
107
+ if (y = 0, t)
108
+ op = [op[0] & 2, t.value];
109
+ switch (op[0]) {
110
+ case 0:
111
+ case 1:
112
+ t = op;
113
+ break;
114
+ case 4:
115
+ _.label++;
116
+ return { value: op[1], done: false };
117
+ case 5:
118
+ _.label++;
119
+ y = op[1];
120
+ op = [0];
121
+ continue;
122
+ case 7:
123
+ op = _.ops.pop();
124
+ _.trys.pop();
125
+ continue;
126
+ default:
127
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
+ _ = 0;
129
+ continue;
130
+ }
131
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
+ _.label = op[1];
133
+ break;
134
+ }
135
+ if (op[0] === 6 && _.label < t[1]) {
136
+ _.label = t[1];
137
+ t = op;
138
+ break;
139
+ }
140
+ if (t && _.label < t[2]) {
141
+ _.label = t[2];
142
+ _.ops.push(op);
143
+ break;
144
+ }
145
+ if (t[2])
146
+ _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ }
150
+ op = body.call(thisArg, _);
151
+ }
152
+ catch (e) {
153
+ op = [6, e];
154
+ y = 0;
155
+ }
156
+ finally {
157
+ f = t = 0;
158
+ }
159
+ if (op[0] & 5)
160
+ throw op[1];
161
+ return { value: op[0] ? op[1] : void 0, done: true };
162
+ }
163
+ }
164
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
165
+ if (k2 === undefined)
166
+ k2 = k;
167
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
+ }) : (function (o, m, k, k2) {
169
+ if (k2 === undefined)
170
+ k2 = k;
171
+ o[k2] = m[k];
172
+ });
173
+ function __exportStar(m, o) {
174
+ for (var p in m)
175
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
176
+ __createBinding(o, m, p);
177
+ }
178
+ function __values(o) {
179
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
+ if (m)
181
+ return m.call(o);
182
+ if (o && typeof o.length === "number")
183
+ return {
184
+ next: function () {
185
+ if (o && i >= o.length)
186
+ o = void 0;
187
+ return { value: o && o[i++], done: !o };
188
+ }
189
+ };
190
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
+ }
192
+ function __read(o, n) {
193
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
194
+ if (!m)
195
+ return o;
196
+ var i = m.call(o), r, ar = [], e;
197
+ try {
198
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
+ ar.push(r.value);
200
+ }
201
+ catch (error) {
202
+ e = { error: error };
203
+ }
204
+ finally {
205
+ try {
206
+ if (r && !r.done && (m = i["return"]))
207
+ m.call(i);
208
+ }
209
+ finally {
210
+ if (e)
211
+ throw e.error;
212
+ }
213
+ }
214
+ return ar;
215
+ }
216
+ function __spread() {
217
+ for (var ar = [], i = 0; i < arguments.length; i++)
218
+ ar = ar.concat(__read(arguments[i]));
219
+ return ar;
220
+ }
221
+ function __spreadArrays() {
222
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
+ s += arguments[i].length;
224
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
+ r[k] = a[j];
227
+ return r;
228
+ }
229
+ ;
230
+ function __await(v) {
231
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
232
+ }
233
+ function __asyncGenerator(thisArg, _arguments, generator) {
234
+ if (!Symbol.asyncIterator)
235
+ throw new TypeError("Symbol.asyncIterator is not defined.");
236
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
+ function verb(n) { if (g[n])
239
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
+ function resume(n, v) { try {
241
+ step(g[n](v));
242
+ }
243
+ catch (e) {
244
+ settle(q[0][3], e);
245
+ } }
246
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
+ function fulfill(value) { resume("next", value); }
248
+ function reject(value) { resume("throw", value); }
249
+ function settle(f, v) { if (f(v), q.shift(), q.length)
250
+ resume(q[0][0], q[0][1]); }
251
+ }
252
+ function __asyncDelegator(o) {
253
+ var i, p;
254
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
256
+ }
257
+ function __asyncValues(o) {
258
+ if (!Symbol.asyncIterator)
259
+ throw new TypeError("Symbol.asyncIterator is not defined.");
260
+ var m = o[Symbol.asyncIterator], i;
261
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
262
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
263
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
+ }
265
+ function __makeTemplateObject(cooked, raw) {
266
+ if (Object.defineProperty) {
267
+ Object.defineProperty(cooked, "raw", { value: raw });
268
+ }
269
+ else {
270
+ cooked.raw = raw;
271
+ }
272
+ return cooked;
273
+ }
274
+ ;
275
+ var __setModuleDefault = Object.create ? (function (o, v) {
276
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
277
+ }) : function (o, v) {
278
+ o["default"] = v;
279
+ };
280
+ function __importStar(mod) {
281
+ if (mod && mod.__esModule)
282
+ return mod;
283
+ var result = {};
284
+ if (mod != null)
285
+ for (var k in mod)
286
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
287
+ __createBinding(result, mod, k);
288
+ __setModuleDefault(result, mod);
289
+ return result;
290
+ }
291
+ function __importDefault(mod) {
292
+ return (mod && mod.__esModule) ? mod : { default: mod };
293
+ }
294
+ function __classPrivateFieldGet(receiver, privateMap) {
295
+ if (!privateMap.has(receiver)) {
296
+ throw new TypeError("attempted to get private field on non-instance");
297
+ }
298
+ return privateMap.get(receiver);
299
+ }
300
+ function __classPrivateFieldSet(receiver, privateMap, value) {
301
+ if (!privateMap.has(receiver)) {
302
+ throw new TypeError("attempted to set private field on non-instance");
303
+ }
304
+ privateMap.set(receiver, value);
305
+ return value;
219
306
  }
220
307
 
221
- /**
222
- * @fileoverview added by tsickle
223
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
224
- */
225
308
  var TdChipDirective = /** @class */ (function (_super) {
226
309
  __extends(TdChipDirective, _super);
310
+ /**
311
+ * @param {?} templateRef
312
+ * @param {?} viewContainerRef
313
+ */
227
314
  function TdChipDirective(templateRef, viewContainerRef) {
228
315
  return _super.call(this, templateRef, viewContainerRef) || this;
229
316
  }
230
- TdChipDirective.decorators = [
231
- { type: core.Directive, args: [{
232
- selector: '[td-chip]ng-template',
233
- },] }
234
- ];
235
- /** @nocollapse */
236
- TdChipDirective.ctorParameters = function () { return [
237
- { type: core.TemplateRef },
238
- { type: core.ViewContainerRef }
239
- ]; };
240
317
  return TdChipDirective;
241
318
  }(portal.TemplatePortalDirective));
319
+ TdChipDirective.decorators = [
320
+ { type: core.Directive, args: [{
321
+ selector: '[td-chip]ng-template',
322
+ },] }
323
+ ];
324
+ /** @nocollapse */
325
+ TdChipDirective.ctorParameters = function () { return [
326
+ { type: core.TemplateRef },
327
+ { type: core.ViewContainerRef }
328
+ ]; };
242
329
  var TdAutocompleteOptionDirective = /** @class */ (function (_super) {
243
330
  __extends(TdAutocompleteOptionDirective, _super);
331
+ /**
332
+ * @param {?} templateRef
333
+ * @param {?} viewContainerRef
334
+ */
244
335
  function TdAutocompleteOptionDirective(templateRef, viewContainerRef) {
245
336
  return _super.call(this, templateRef, viewContainerRef) || this;
246
337
  }
247
- TdAutocompleteOptionDirective.decorators = [
248
- { type: core.Directive, args: [{
249
- selector: '[td-autocomplete-option]ng-template',
250
- },] }
251
- ];
252
- /** @nocollapse */
253
- TdAutocompleteOptionDirective.ctorParameters = function () { return [
254
- { type: core.TemplateRef },
255
- { type: core.ViewContainerRef }
256
- ]; };
257
338
  return TdAutocompleteOptionDirective;
258
339
  }(portal.TemplatePortalDirective));
340
+ TdAutocompleteOptionDirective.decorators = [
341
+ { type: core.Directive, args: [{
342
+ selector: '[td-autocomplete-option]ng-template',
343
+ },] }
344
+ ];
345
+ /** @nocollapse */
346
+ TdAutocompleteOptionDirective.ctorParameters = function () { return [
347
+ { type: core.TemplateRef },
348
+ { type: core.ViewContainerRef }
349
+ ]; };
259
350
  var TdChipsBase = /** @class */ (function () {
351
+ /**
352
+ * @param {?} _changeDetectorRef
353
+ */
260
354
  function TdChipsBase(_changeDetectorRef) {
261
355
  this._changeDetectorRef = _changeDetectorRef;
262
356
  }
@@ -268,9 +362,15 @@
268
362
  }
269
363
  /* tslint:disable-next-line */
270
364
  /** @type {?} */
271
- var _TdChipsMixinBase = common$1.mixinControlValueAccessor(common$1.mixinDisabled(TdChipsBase), []);
365
+ var _TdChipsMixinBase = common.mixinControlValueAccessor(common.mixinDisabled(TdChipsBase), []);
272
366
  var TdChipsComponent = /** @class */ (function (_super) {
273
367
  __extends(TdChipsComponent, _super);
368
+ /**
369
+ * @param {?} _elementRef
370
+ * @param {?} _renderer
371
+ * @param {?} _document
372
+ * @param {?} _changeDetectorRef
373
+ */
274
374
  function TdChipsComponent(_elementRef, _renderer, _document, _changeDetectorRef) {
275
375
  var _this = _super.call(this, _changeDetectorRef) || this;
276
376
  _this._elementRef = _elementRef;
@@ -336,12 +436,11 @@
336
436
  * Function used to check whether a chip value already exists.
337
437
  * Defaults to strict equality comparison ===
338
438
  */
339
- _this.compareWith = (/**
439
+ _this.compareWith = ( /**
340
440
  * @param {?} o1
341
441
  * @param {?} o2
342
442
  * @return {?}
343
- */
344
- function (o1, o2) {
443
+ */function (o1, o2) {
345
444
  return o1 === o2;
346
445
  });
347
446
  _this._renderer.addClass(_this._elementRef.nativeElement, 'mat-' + _this._color);
@@ -349,379 +448,288 @@
349
448
  }
350
449
  Object.defineProperty(TdChipsComponent.prototype, "focused", {
351
450
  /**
352
- * Flag that is true when autocomplete is focused.
353
- */
354
- get: /**
355
451
  * Flag that is true when autocomplete is focused.
356
452
  * @return {?}
357
453
  */
358
- function () {
454
+ get: function () {
359
455
  return this._focused;
360
456
  },
361
- enumerable: true,
457
+ enumerable: false,
362
458
  configurable: true
363
459
  });
364
460
  Object.defineProperty(TdChipsComponent.prototype, "items", {
365
- get: /**
461
+ /**
366
462
  * @return {?}
367
463
  */
368
- function () {
464
+ get: function () {
369
465
  return this._items;
370
466
  },
371
467
  /**
372
- * items?: any[]
373
- * Renders the `mat-autocomplete` with the provided list to display as options.
374
- */
375
- set: /**
376
468
  * items?: any[]
377
469
  * Renders the `mat-autocomplete` with the provided list to display as options.
378
470
  * @param {?} items
379
471
  * @return {?}
380
472
  */
381
- function (items) {
473
+ set: function (items) {
382
474
  this._items = items;
383
475
  this._setFirstOptionActive();
384
476
  this._changeDetectorRef.markForCheck();
385
477
  },
386
- enumerable: true,
478
+ enumerable: false,
387
479
  configurable: true
388
480
  });
389
481
  Object.defineProperty(TdChipsComponent.prototype, "stacked", {
390
- get: /**
482
+ /**
391
483
  * @return {?}
392
484
  */
393
- function () {
485
+ get: function () {
394
486
  return this._stacked;
395
487
  },
396
488
  /**
397
- * stacked?: boolean
398
- * Set stacked or horizontal chips depending on value.
399
- * Defaults to false.
400
- */
401
- set: /**
402
489
  * stacked?: boolean
403
490
  * Set stacked or horizontal chips depending on value.
404
491
  * Defaults to false.
405
492
  * @param {?} stacked
406
493
  * @return {?}
407
494
  */
408
- function (stacked) {
495
+ set: function (stacked) {
409
496
  this._stacked = coercion.coerceBooleanProperty(stacked);
410
497
  },
411
- enumerable: true,
498
+ enumerable: false,
412
499
  configurable: true
413
500
  });
414
501
  Object.defineProperty(TdChipsComponent.prototype, "inputPosition", {
415
- get: /**
502
+ /**
416
503
  * @return {?}
417
504
  */
418
- function () {
505
+ get: function () {
419
506
  return this._inputPosition;
420
507
  },
421
508
  /**
422
- * inputPosition?: 'before' | 'after'
423
- * Set input position before or after the chips.
424
- * Defaults to 'after'.
425
- */
426
- set: /**
427
509
  * inputPosition?: 'before' | 'after'
428
510
  * Set input position before or after the chips.
429
511
  * Defaults to 'after'.
430
512
  * @param {?} inputPosition
431
513
  * @return {?}
432
514
  */
433
- function (inputPosition) {
515
+ set: function (inputPosition) {
434
516
  this._inputPosition = inputPosition;
435
517
  },
436
- enumerable: true,
518
+ enumerable: false,
437
519
  configurable: true
438
520
  });
439
521
  Object.defineProperty(TdChipsComponent.prototype, "requireMatch", {
440
- get: /**
522
+ /**
441
523
  * @return {?}
442
524
  */
443
- function () {
525
+ get: function () {
444
526
  return this._requireMatch;
445
527
  },
446
528
  /**
447
- * requireMatch?: boolean
448
- * Blocks custom inputs and only allows selections from the autocomplete list.
449
- */
450
- set: /**
451
529
  * requireMatch?: boolean
452
530
  * Blocks custom inputs and only allows selections from the autocomplete list.
453
531
  * @param {?} requireMatch
454
532
  * @return {?}
455
533
  */
456
- function (requireMatch) {
534
+ set: function (requireMatch) {
457
535
  this._requireMatch = coercion.coerceBooleanProperty(requireMatch);
458
536
  },
459
- enumerable: true,
537
+ enumerable: false,
460
538
  configurable: true
461
539
  });
462
540
  Object.defineProperty(TdChipsComponent.prototype, "required", {
463
- get: /**
541
+ /**
464
542
  * @return {?}
465
543
  */
466
- function () {
544
+ get: function () {
467
545
  return this._required;
468
546
  },
469
547
  /**
470
- * required?: boolean
471
- * Value is set to true if at least one chip is needed
472
- * Defaults to false
473
- */
474
- set: /**
475
548
  * required?: boolean
476
549
  * Value is set to true if at least one chip is needed
477
550
  * Defaults to false
478
551
  * @param {?} required
479
552
  * @return {?}
480
553
  */
481
- function (required) {
554
+ set: function (required) {
482
555
  this._required = coercion.coerceBooleanProperty(required);
483
556
  },
484
- enumerable: true,
557
+ enumerable: false,
485
558
  configurable: true
486
559
  });
487
560
  Object.defineProperty(TdChipsComponent.prototype, "chipAddition", {
488
- get: /**
561
+ /**
489
562
  * @return {?}
490
563
  */
491
- function () {
564
+ get: function () {
492
565
  return this._chipAddition;
493
566
  },
494
567
  /**
495
- * chipAddition?: boolean
496
- * Disables the ability to add chips. When setting disabled as true, this will be overriden.
497
- * Defaults to true.
498
- */
499
- set: /**
500
568
  * chipAddition?: boolean
501
569
  * Disables the ability to add chips. When setting disabled as true, this will be overriden.
502
570
  * Defaults to true.
503
571
  * @param {?} chipAddition
504
572
  * @return {?}
505
573
  */
506
- function (chipAddition) {
574
+ set: function (chipAddition) {
507
575
  this._chipAddition = chipAddition;
508
576
  this._toggleInput();
509
577
  },
510
- enumerable: true,
578
+ enumerable: false,
511
579
  configurable: true
512
580
  });
513
581
  Object.defineProperty(TdChipsComponent.prototype, "canAddChip", {
514
582
  /**
515
- * Checks if not in disabled state and if chipAddition is set to 'true'
516
- * States if a chip can be added and if the input is available
517
- */
518
- get: /**
519
583
  * Checks if not in disabled state and if chipAddition is set to 'true'
520
584
  * States if a chip can be added and if the input is available
521
585
  * @return {?}
522
586
  */
523
- function () {
587
+ get: function () {
524
588
  return this.chipAddition && !this.disabled;
525
589
  },
526
- enumerable: true,
590
+ enumerable: false,
527
591
  configurable: true
528
592
  });
529
593
  Object.defineProperty(TdChipsComponent.prototype, "chipRemoval", {
530
- get: /**
594
+ /**
531
595
  * @return {?}
532
596
  */
533
- function () {
597
+ get: function () {
534
598
  return this._chipRemoval;
535
599
  },
536
600
  /**
537
- * chipRemoval?: boolean
538
- * Disables the ability to remove chips. If it doesn't exist chip remmoval defaults to true.
539
- * When setting disabled as true, this will be overriden to false.
540
- */
541
- set: /**
542
601
  * chipRemoval?: boolean
543
602
  * Disables the ability to remove chips. If it doesn't exist chip remmoval defaults to true.
544
603
  * When setting disabled as true, this will be overriden to false.
545
604
  * @param {?} chipRemoval
546
605
  * @return {?}
547
606
  */
548
- function (chipRemoval) {
607
+ set: function (chipRemoval) {
549
608
  this._chipRemoval = chipRemoval;
550
609
  },
551
- enumerable: true,
610
+ enumerable: false,
552
611
  configurable: true
553
612
  });
554
613
  Object.defineProperty(TdChipsComponent.prototype, "canRemoveChip", {
555
614
  /**
556
- * Checks if not in disabled state and if chipRemoval is set to 'true'
557
- * States if a chip can be removed
558
- */
559
- get: /**
560
615
  * Checks if not in disabled state and if chipRemoval is set to 'true'
561
616
  * States if a chip can be removed
562
617
  * @return {?}
563
618
  */
564
- function () {
619
+ get: function () {
565
620
  return this.chipRemoval && !this.disabled;
566
621
  },
567
- enumerable: true,
622
+ enumerable: false,
568
623
  configurable: true
569
624
  });
570
625
  Object.defineProperty(TdChipsComponent.prototype, "displayPlaceHolder", {
571
626
  /**
572
- * returns the display placeholder
573
- */
574
- get: /**
575
627
  * returns the display placeholder
576
628
  * @return {?}
577
629
  */
578
- function () {
630
+ get: function () {
579
631
  if (!this.canAddChip) {
580
632
  return '';
581
633
  }
582
634
  return this._required ? this.placeholder + " *" : this.placeholder;
583
635
  },
584
- enumerable: true,
636
+ enumerable: false,
585
637
  configurable: true
586
638
  });
587
639
  Object.defineProperty(TdChipsComponent.prototype, "color", {
588
- get: /**
640
+ /**
589
641
  * @return {?}
590
642
  */
591
- function () {
643
+ get: function () {
592
644
  return this._color;
593
645
  },
594
646
  /**
595
- * color?: 'primary' | 'accent' | 'warn'
596
- * Sets the color for the input and focus/selected state of the chips.
597
- * Defaults to 'primary'
598
- */
599
- set: /**
600
647
  * color?: 'primary' | 'accent' | 'warn'
601
648
  * Sets the color for the input and focus/selected state of the chips.
602
649
  * Defaults to 'primary'
603
650
  * @param {?} color
604
651
  * @return {?}
605
652
  */
606
- function (color) {
653
+ set: function (color) {
607
654
  if (color) {
608
655
  this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
609
656
  this._color = color;
610
657
  this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
611
658
  }
612
659
  },
613
- enumerable: true,
660
+ enumerable: false,
614
661
  configurable: true
615
662
  });
616
663
  Object.defineProperty(TdChipsComponent.prototype, "tabIndex", {
617
664
  /**
618
- * Hostbinding to set the a11y of the TdChipsComponent depending on its state
619
- */
620
- get: /**
621
665
  * Hostbinding to set the a11y of the TdChipsComponent depending on its state
622
666
  * @return {?}
623
667
  */
624
- function () {
668
+ get: function () {
625
669
  return this.disabled ? -1 : this._tabIndex;
626
670
  },
627
- enumerable: true,
671
+ enumerable: false,
628
672
  configurable: true
629
673
  });
630
- /**
631
- * Listens to host focus event to act on it
632
- */
633
674
  /**
634
675
  * Listens to host focus event to act on it
635
676
  * @param {?} event
636
677
  * @return {?}
637
678
  */
638
- TdChipsComponent.prototype.focusListener = /**
639
- * Listens to host focus event to act on it
640
- * @param {?} event
641
- * @return {?}
642
- */
643
- function (event) {
679
+ TdChipsComponent.prototype.focusListener = function (event) {
644
680
  // should only focus if its not via mousedown to prevent clashing with autocomplete
645
681
  if (!this._isMousedown) {
646
682
  this.focus();
647
683
  }
648
684
  event.preventDefault();
649
685
  };
650
- /**
651
- * Listens to host mousedown event to act on it
652
- */
653
686
  /**
654
687
  * Listens to host mousedown event to act on it
655
688
  * @param {?} event
656
689
  * @return {?}
657
690
  */
658
- TdChipsComponent.prototype.mousedownListener = /**
659
- * Listens to host mousedown event to act on it
660
- * @param {?} event
661
- * @return {?}
662
- */
663
- function (event) {
691
+ TdChipsComponent.prototype.mousedownListener = function (event) {
664
692
  var _this = this;
665
693
  // sets a flag to know if there was a mousedown and then it returns it back to false
666
694
  this._isMousedown = true;
667
695
  rxjs.timer()
668
696
  .toPromise()
669
- .then((/**
670
- * @return {?}
671
- */
672
- function () {
697
+ .then(( /**
698
+ * @return {?}
699
+ */function () {
673
700
  _this._isMousedown = false;
674
701
  }));
675
702
  };
676
703
  /**
677
- * If clicking on :host or `td-chips-wrapper`, then we stop the click propagation so the autocomplete
678
- * doesnt close automatically.
679
- */
680
- /**
681
- * If clicking on :host or `td-chips-wrapper`, then we stop the click propagation so the autocomplete
682
- * doesnt close automatically.
683
- * @param {?} event
684
- * @return {?}
685
- */
686
- TdChipsComponent.prototype.clickListener = /**
687
704
  * If clicking on :host or `td-chips-wrapper`, then we stop the click propagation so the autocomplete
688
705
  * doesnt close automatically.
689
706
  * @param {?} event
690
707
  * @return {?}
691
708
  */
692
- function (event) {
709
+ TdChipsComponent.prototype.clickListener = function (event) {
693
710
  /** @type {?} */
694
- var clickTarget = (/** @type {?} */ (event.target));
711
+ var clickTarget = ( /** @type {?} */(event.target));
695
712
  if (clickTarget === this._elementRef.nativeElement || clickTarget.className.indexOf('td-chips-wrapper') > -1) {
696
713
  this.focus();
697
714
  event.preventDefault();
698
715
  event.stopPropagation();
699
716
  }
700
717
  };
701
- /**
702
- * Listens to host keydown event to act on it depending on the keypress
703
- */
704
718
  /**
705
719
  * Listens to host keydown event to act on it depending on the keypress
706
720
  * @param {?} event
707
721
  * @return {?}
708
722
  */
709
- TdChipsComponent.prototype.keydownListener = /**
710
- * Listens to host keydown event to act on it depending on the keypress
711
- * @param {?} event
712
- * @return {?}
713
- */
714
- function (event) {
723
+ TdChipsComponent.prototype.keydownListener = function (event) {
715
724
  var _this = this;
716
725
  switch (event.keyCode) {
717
726
  case keycodes.TAB:
718
727
  // if tabing out, then unfocus the component
719
728
  rxjs.timer()
720
729
  .toPromise()
721
- .then((/**
722
- * @return {?}
723
- */
724
- function () {
730
+ .then(( /**
731
+ * @return {?}
732
+ */function () {
725
733
  _this.removeFocusedState();
726
734
  }));
727
735
  break;
@@ -742,18 +750,14 @@
742
750
  /**
743
751
  * @return {?}
744
752
  */
745
- TdChipsComponent.prototype.ngOnInit = /**
746
- * @return {?}
747
- */
748
- function () {
753
+ TdChipsComponent.prototype.ngOnInit = function () {
749
754
  var _this = this;
750
755
  this._inputValueChangesSubs = this.inputControl.valueChanges
751
756
  .pipe(operators.debounceTime(this.debounce))
752
- .subscribe((/**
753
- * @param {?} value
754
- * @return {?}
755
- */
756
- function (value) {
757
+ .subscribe(( /**
758
+ * @param {?} value
759
+ * @return {?}
760
+ */function (value) {
757
761
  _this.inputChange.emit(value ? value : '');
758
762
  }));
759
763
  this._changeDetectorRef.markForCheck();
@@ -761,20 +765,14 @@
761
765
  /**
762
766
  * @return {?}
763
767
  */
764
- TdChipsComponent.prototype.ngAfterViewInit = /**
765
- * @return {?}
766
- */
767
- function () {
768
+ TdChipsComponent.prototype.ngAfterViewInit = function () {
768
769
  this._watchOutsideClick();
769
770
  this._changeDetectorRef.markForCheck();
770
771
  };
771
772
  /**
772
773
  * @return {?}
773
774
  */
774
- TdChipsComponent.prototype.ngDoCheck = /**
775
- * @return {?}
776
- */
777
- function () {
775
+ TdChipsComponent.prototype.ngDoCheck = function () {
778
776
  // Throw onChange event only if array changes size.
779
777
  if (this.value && this.value.length !== this._length) {
780
778
  this._length = this.value.length;
@@ -784,66 +782,40 @@
784
782
  /**
785
783
  * @return {?}
786
784
  */
787
- TdChipsComponent.prototype.ngOnDestroy = /**
788
- * @return {?}
789
- */
790
- function () {
785
+ TdChipsComponent.prototype.ngOnDestroy = function () {
791
786
  this._outsideClickSubs.unsubscribe();
792
787
  this._inputValueChangesSubs.unsubscribe();
793
788
  };
794
789
  /**
795
790
  * @return {?}
796
791
  */
797
- TdChipsComponent.prototype._setInternalClick = /**
798
- * @return {?}
799
- */
800
- function () {
792
+ TdChipsComponent.prototype._setInternalClick = function () {
801
793
  this._internalClick = true;
802
794
  };
803
- /** Method executed when the disabled value changes */
804
795
  /**
805
796
  * Method executed when the disabled value changes
806
797
  * @param {?} v
807
798
  * @return {?}
808
799
  */
809
- TdChipsComponent.prototype.onDisabledChange = /**
810
- * Method executed when the disabled value changes
811
- * @param {?} v
812
- * @return {?}
813
- */
814
- function (v) {
800
+ TdChipsComponent.prototype.onDisabledChange = function (v) {
815
801
  this._toggleInput();
816
802
  };
817
803
  /**
818
- * Method that is executed when trying to create a new chip from the autocomplete.
819
- * It check if [requireMatch] is enabled, and tries to add the first active option
820
- * else if just adds the value thats on the input
821
- * returns 'true' if successful, 'false' if it fails.
822
- */
823
- /**
824
- * Method that is executed when trying to create a new chip from the autocomplete.
825
- * It check if [requireMatch] is enabled, and tries to add the first active option
826
- * else if just adds the value thats on the input
827
- * returns 'true' if successful, 'false' if it fails.
828
- * @return {?}
829
- */
830
- TdChipsComponent.prototype._handleAddChip = /**
831
804
  * Method that is executed when trying to create a new chip from the autocomplete.
832
805
  * It check if [requireMatch] is enabled, and tries to add the first active option
833
806
  * else if just adds the value thats on the input
834
807
  * returns 'true' if successful, 'false' if it fails.
835
808
  * @return {?}
836
809
  */
837
- function () {
810
+ TdChipsComponent.prototype._handleAddChip = function () {
838
811
  /** @type {?} */
839
812
  var value;
840
813
  if (this.requireMatch) {
841
814
  /** @type {?} */
842
- var selectedOptions = this._options.toArray().filter((/**
815
+ var selectedOptions = this._options.toArray().filter(( /**
843
816
  * @param {?} option
844
817
  * @return {?}
845
- */
846
- function (option) {
818
+ */function (option) {
847
819
  return option.active;
848
820
  }));
849
821
  if (selectedOptions.length > 0) {
@@ -870,46 +842,34 @@
870
842
  }
871
843
  return this.addChip(value);
872
844
  };
873
- /**
874
- * Method thats exectuted when trying to add a value as chip
875
- * returns 'true' if successful, 'false' if it fails.
876
- */
877
845
  /**
878
846
  * Method thats exectuted when trying to add a value as chip
879
847
  * returns 'true' if successful, 'false' if it fails.
880
848
  * @param {?} value
881
849
  * @return {?}
882
850
  */
883
- TdChipsComponent.prototype.addChip = /**
884
- * Method thats exectuted when trying to add a value as chip
885
- * returns 'true' if successful, 'false' if it fails.
886
- * @param {?} value
887
- * @return {?}
888
- */
889
- function (value) {
851
+ TdChipsComponent.prototype.addChip = function (value) {
852
+ var _this = this;
890
853
  /**
891
854
  * add a debounce ms delay when reopening the autocomplete to give it time
892
855
  * to rerender the next list and at the correct spot
893
856
  */
894
- var _this = this;
895
857
  this._closeAutocomplete();
896
858
  rxjs.timer(this.debounce)
897
859
  .toPromise()
898
- .then((/**
899
- * @return {?}
900
- */
901
- function () {
860
+ .then(( /**
861
+ * @return {?}
862
+ */function () {
902
863
  _this.setFocusedState();
903
864
  _this._setFirstOptionActive();
904
865
  _this._openAutocomplete();
905
866
  }));
906
867
  this.inputControl.setValue('');
907
868
  // check if value is already part of the model
908
- if (this.value.findIndex((/**
869
+ if (this.value.findIndex(( /**
909
870
  * @param {?} item
910
871
  * @return {?}
911
- */
912
- function (item) { return _this.compareWith(item, value); })) > -1) {
872
+ */function (item) { return _this.compareWith(item, value); })) > -1) {
913
873
  return false;
914
874
  }
915
875
  this.value.push(value);
@@ -918,23 +878,13 @@
918
878
  this._changeDetectorRef.markForCheck();
919
879
  return true;
920
880
  };
921
- /**
922
- * Method that is executed when trying to remove a chip.
923
- * returns 'true' if successful, 'false' if it fails.
924
- */
925
881
  /**
926
882
  * Method that is executed when trying to remove a chip.
927
883
  * returns 'true' if successful, 'false' if it fails.
928
884
  * @param {?} index
929
885
  * @return {?}
930
886
  */
931
- TdChipsComponent.prototype.removeChip = /**
932
- * Method that is executed when trying to remove a chip.
933
- * returns 'true' if successful, 'false' if it fails.
934
- * @param {?} index
935
- * @return {?}
936
- */
937
- function (index) {
887
+ TdChipsComponent.prototype.removeChip = function (index) {
938
888
  /** @type {?} */
939
889
  var removedValues = this.value.splice(index, 1);
940
890
  if (removedValues.length === 0) {
@@ -959,66 +909,38 @@
959
909
  this._changeDetectorRef.markForCheck();
960
910
  return true;
961
911
  };
962
- /**
963
- * Sets blur of chip and sends out event
964
- */
965
912
  /**
966
913
  * Sets blur of chip and sends out event
967
914
  * @param {?} event
968
915
  * @param {?} value
969
916
  * @return {?}
970
917
  */
971
- TdChipsComponent.prototype._handleChipBlur = /**
972
- * Sets blur of chip and sends out event
973
- * @param {?} event
974
- * @param {?} value
975
- * @return {?}
976
- */
977
- function (event, value) {
918
+ TdChipsComponent.prototype._handleChipBlur = function (event, value) {
978
919
  this.chipBlur.emit(value);
979
920
  };
980
921
  /**
981
- * Sets focus of chip and sends out event
982
- */
983
- /**
984
- * Sets focus of chip and sends out event
985
- * @param {?} event
986
- * @param {?} value
987
- * @return {?}
988
- */
989
- TdChipsComponent.prototype._handleChipFocus = /**
990
922
  * Sets focus of chip and sends out event
991
923
  * @param {?} event
992
924
  * @param {?} value
993
925
  * @return {?}
994
926
  */
995
- function (event, value) {
927
+ TdChipsComponent.prototype._handleChipFocus = function (event, value) {
996
928
  this.setFocusedState();
997
929
  this.chipFocus.emit(value);
998
930
  };
999
931
  /**
1000
932
  * @return {?}
1001
933
  */
1002
- TdChipsComponent.prototype._handleFocus = /**
1003
- * @return {?}
1004
- */
1005
- function () {
934
+ TdChipsComponent.prototype._handleFocus = function () {
1006
935
  this.setFocusedState();
1007
936
  this._setFirstOptionActive();
1008
937
  return true;
1009
938
  };
1010
939
  /**
1011
- * Sets focus state of the component
1012
- */
1013
- /**
1014
- * Sets focus state of the component
1015
- * @return {?}
1016
- */
1017
- TdChipsComponent.prototype.setFocusedState = /**
1018
940
  * Sets focus state of the component
1019
941
  * @return {?}
1020
942
  */
1021
- function () {
943
+ TdChipsComponent.prototype.setFocusedState = function () {
1022
944
  if (!this.disabled) {
1023
945
  this._focused = true;
1024
946
  this._tabIndex = -1;
@@ -1026,36 +948,20 @@
1026
948
  }
1027
949
  };
1028
950
  /**
1029
- * Removes focus state of the component
1030
- */
1031
- /**
1032
- * Removes focus state of the component
1033
- * @return {?}
1034
- */
1035
- TdChipsComponent.prototype.removeFocusedState = /**
1036
951
  * Removes focus state of the component
1037
952
  * @return {?}
1038
953
  */
1039
- function () {
954
+ TdChipsComponent.prototype.removeFocusedState = function () {
1040
955
  this._focused = false;
1041
956
  this._tabIndex = 0;
1042
957
  this._changeDetectorRef.markForCheck();
1043
958
  };
1044
- /**
1045
- * Programmatically focus the input or first chip. Since its the component entry point
1046
- * depending if a user can add or remove chips
1047
- */
1048
959
  /**
1049
960
  * Programmatically focus the input or first chip. Since its the component entry point
1050
961
  * depending if a user can add or remove chips
1051
962
  * @return {?}
1052
963
  */
1053
- TdChipsComponent.prototype.focus = /**
1054
- * Programmatically focus the input or first chip. Since its the component entry point
1055
- * depending if a user can add or remove chips
1056
- * @return {?}
1057
- */
1058
- function () {
964
+ TdChipsComponent.prototype.focus = function () {
1059
965
  if (this.canAddChip) {
1060
966
  this._inputChild.focus();
1061
967
  }
@@ -1064,19 +970,11 @@
1064
970
  }
1065
971
  };
1066
972
  /**
1067
- * Passes relevant input key presses.
1068
- */
1069
- /**
1070
- * Passes relevant input key presses.
1071
- * @param {?} event
1072
- * @return {?}
1073
- */
1074
- TdChipsComponent.prototype._inputKeydown = /**
1075
973
  * Passes relevant input key presses.
1076
974
  * @param {?} event
1077
975
  * @return {?}
1078
976
  */
1079
- function (event) {
977
+ TdChipsComponent.prototype._inputKeydown = function (event) {
1080
978
  switch (event.keyCode) {
1081
979
  case keycodes.UP_ARROW:
1082
980
  /**
@@ -1085,8 +983,8 @@
1085
983
  */
1086
984
  if (this.requireMatch) {
1087
985
  /** @type {?} */
1088
- var length_1 = this._options.length;
1089
- if (length_1 > 1 && this._options.toArray()[0].active && this._internalActivateOption) {
986
+ var length = this._options.length;
987
+ if (length > 1 && this._options.toArray()[0].active && this._internalActivateOption) {
1090
988
  this._options.toArray()[0].setInactiveStyles();
1091
989
  this._internalActivateOption = false;
1092
990
  // prevent default window scrolling
@@ -1119,21 +1017,12 @@
1119
1017
  }
1120
1018
  };
1121
1019
  /**
1122
- * Passes relevant chip key presses.
1123
- */
1124
- /**
1125
- * Passes relevant chip key presses.
1126
- * @param {?} event
1127
- * @param {?} index
1128
- * @return {?}
1129
- */
1130
- TdChipsComponent.prototype._chipKeydown = /**
1131
1020
  * Passes relevant chip key presses.
1132
1021
  * @param {?} event
1133
1022
  * @param {?} index
1134
1023
  * @return {?}
1135
1024
  */
1136
- function (event, index) {
1025
+ TdChipsComponent.prototype._chipKeydown = function (event, index) {
1137
1026
  switch (event.keyCode) {
1138
1027
  case keycodes.DELETE:
1139
1028
  case keycodes.BACKSPACE:
@@ -1189,48 +1078,27 @@
1189
1078
  }
1190
1079
  };
1191
1080
  /**
1192
- * Method to remove from display the value added from the autocomplete since it goes directly as chip.
1193
- */
1194
- /**
1195
- * Method to remove from display the value added from the autocomplete since it goes directly as chip.
1196
- * @return {?}
1197
- */
1198
- TdChipsComponent.prototype._removeInputDisplay = /**
1199
1081
  * Method to remove from display the value added from the autocomplete since it goes directly as chip.
1200
1082
  * @return {?}
1201
1083
  */
1202
- function () {
1084
+ TdChipsComponent.prototype._removeInputDisplay = function () {
1203
1085
  return '';
1204
1086
  };
1205
- /**
1206
- * Method to open the autocomplete manually if its not already opened
1207
- */
1208
1087
  /**
1209
1088
  * Method to open the autocomplete manually if its not already opened
1210
1089
  * @return {?}
1211
1090
  */
1212
- TdChipsComponent.prototype._openAutocomplete = /**
1213
- * Method to open the autocomplete manually if its not already opened
1214
- * @return {?}
1215
- */
1216
- function () {
1091
+ TdChipsComponent.prototype._openAutocomplete = function () {
1217
1092
  if (!this._autocompleteTrigger.panelOpen) {
1218
1093
  this._autocompleteTrigger.openPanel();
1219
1094
  this._changeDetectorRef.markForCheck();
1220
1095
  }
1221
1096
  };
1222
1097
  /**
1223
- * Method to close the autocomplete manually if its not already closed
1224
- */
1225
- /**
1226
- * Method to close the autocomplete manually if its not already closed
1227
- * @return {?}
1228
- */
1229
- TdChipsComponent.prototype._closeAutocomplete = /**
1230
1098
  * Method to close the autocomplete manually if its not already closed
1231
1099
  * @return {?}
1232
1100
  */
1233
- function () {
1101
+ TdChipsComponent.prototype._closeAutocomplete = function () {
1234
1102
  if (this._autocompleteTrigger.panelOpen) {
1235
1103
  this._autocompleteTrigger.closePanel();
1236
1104
  this._changeDetectorRef.markForCheck();
@@ -1238,86 +1106,52 @@
1238
1106
  };
1239
1107
  Object.defineProperty(TdChipsComponent.prototype, "_totalChips", {
1240
1108
  /**
1241
- * Get total of chips
1242
- */
1243
- get: /**
1244
1109
  * Get total of chips
1245
1110
  * @return {?}
1246
1111
  */
1247
- function () {
1112
+ get: function () {
1248
1113
  /** @type {?} */
1249
1114
  var chips = this._chipsChildren.toArray();
1250
1115
  return chips.length;
1251
1116
  },
1252
- enumerable: true,
1117
+ enumerable: false,
1253
1118
  configurable: true
1254
1119
  });
1255
- /**
1256
- * Method to focus a desired chip by index
1257
- */
1258
1120
  /**
1259
1121
  * Method to focus a desired chip by index
1260
1122
  * @private
1261
1123
  * @param {?} index
1262
1124
  * @return {?}
1263
1125
  */
1264
- TdChipsComponent.prototype._focusChip = /**
1265
- * Method to focus a desired chip by index
1266
- * @private
1267
- * @param {?} index
1268
- * @return {?}
1269
- */
1270
- function (index) {
1126
+ TdChipsComponent.prototype._focusChip = function (index) {
1271
1127
  /** check to see if index exists in the array before focusing */
1272
1128
  if (index > -1 && this._totalChips > index) {
1273
1129
  this._chipsChildren.toArray()[index].focus();
1274
1130
  }
1275
1131
  };
1276
- /** Method to focus first chip */
1277
1132
  /**
1278
1133
  * Method to focus first chip
1279
1134
  * @private
1280
1135
  * @return {?}
1281
1136
  */
1282
- TdChipsComponent.prototype._focusFirstChip = /**
1283
- * Method to focus first chip
1284
- * @private
1285
- * @return {?}
1286
- */
1287
- function () {
1137
+ TdChipsComponent.prototype._focusFirstChip = function () {
1288
1138
  this._focusChip(0);
1289
1139
  };
1290
- /** Method to focus last chip */
1291
1140
  /**
1292
1141
  * Method to focus last chip
1293
1142
  * @private
1294
1143
  * @return {?}
1295
1144
  */
1296
- TdChipsComponent.prototype._focusLastChip = /**
1297
- * Method to focus last chip
1298
- * @private
1299
- * @return {?}
1300
- */
1301
- function () {
1145
+ TdChipsComponent.prototype._focusLastChip = function () {
1302
1146
  this._focusChip(this._totalChips - 1);
1303
1147
  };
1304
- /**
1305
- * Method to toggle the disable state of input
1306
- * Checks if not in disabled state and if chipAddition is set to 'true'
1307
- */
1308
1148
  /**
1309
1149
  * Method to toggle the disable state of input
1310
1150
  * Checks if not in disabled state and if chipAddition is set to 'true'
1311
1151
  * @private
1312
1152
  * @return {?}
1313
1153
  */
1314
- TdChipsComponent.prototype._toggleInput = /**
1315
- * Method to toggle the disable state of input
1316
- * Checks if not in disabled state and if chipAddition is set to 'true'
1317
- * @private
1318
- * @return {?}
1319
- */
1320
- function () {
1154
+ TdChipsComponent.prototype._toggleInput = function () {
1321
1155
  if (this.canAddChip) {
1322
1156
  this.inputControl.enable();
1323
1157
  }
@@ -1326,39 +1160,27 @@
1326
1160
  }
1327
1161
  this._changeDetectorRef.markForCheck();
1328
1162
  };
1329
- /**
1330
- * Sets first option as active to let the user know which one will be added when pressing enter
1331
- * Only if [requireMatch] has been set
1332
- */
1333
1163
  /**
1334
1164
  * Sets first option as active to let the user know which one will be added when pressing enter
1335
1165
  * Only if [requireMatch] has been set
1336
1166
  * @private
1337
1167
  * @return {?}
1338
1168
  */
1339
- TdChipsComponent.prototype._setFirstOptionActive = /**
1340
- * Sets first option as active to let the user know which one will be added when pressing enter
1341
- * Only if [requireMatch] has been set
1342
- * @private
1343
- * @return {?}
1344
- */
1345
- function () {
1169
+ TdChipsComponent.prototype._setFirstOptionActive = function () {
1346
1170
  var _this = this;
1347
1171
  if (this.requireMatch) {
1348
1172
  // need to use a timer here to wait until the autocomplete has been opened (end of queue)
1349
1173
  rxjs.timer()
1350
1174
  .toPromise()
1351
- .then((/**
1352
- * @return {?}
1353
- */
1354
- function () {
1175
+ .then(( /**
1176
+ * @return {?}
1177
+ */function () {
1355
1178
  if (_this.focused && _this._options && _this._options.length > 0) {
1356
1179
  // clean up of previously active options
1357
- _this._options.toArray().forEach((/**
1180
+ _this._options.toArray().forEach(( /**
1358
1181
  * @param {?} option
1359
1182
  * @return {?}
1360
- */
1361
- function (option) {
1183
+ */function (option) {
1362
1184
  option.setInactiveStyles();
1363
1185
  }));
1364
1186
  // set the first one as active
@@ -1369,11 +1191,6 @@
1369
1191
  }));
1370
1192
  }
1371
1193
  };
1372
- /**
1373
- * Watches clicks outside of the component to remove the focus
1374
- * The autocomplete panel is considered inside the component so we
1375
- * need to use a flag to find out when its clicked.
1376
- */
1377
1194
  /**
1378
1195
  * Watches clicks outside of the component to remove the focus
1379
1196
  * The autocomplete panel is considered inside the component so we
@@ -1381,28 +1198,19 @@
1381
1198
  * @private
1382
1199
  * @return {?}
1383
1200
  */
1384
- TdChipsComponent.prototype._watchOutsideClick = /**
1385
- * Watches clicks outside of the component to remove the focus
1386
- * The autocomplete panel is considered inside the component so we
1387
- * need to use a flag to find out when its clicked.
1388
- * @private
1389
- * @return {?}
1390
- */
1391
- function () {
1201
+ TdChipsComponent.prototype._watchOutsideClick = function () {
1392
1202
  var _this = this;
1393
1203
  if (this._document) {
1394
1204
  this._outsideClickSubs = rxjs.merge(rxjs.fromEvent(this._document, 'click'), rxjs.fromEvent(this._document, 'touchend'))
1395
- .pipe(operators.debounceTime(this._touchendDebounce), operators.filter((/**
1396
- * @param {?} event
1397
- * @return {?}
1398
- */
1399
- function (event) {
1205
+ .pipe(operators.debounceTime(this._touchendDebounce), operators.filter(( /**
1206
+ * @param {?} event
1207
+ * @return {?}
1208
+ */function (event) {
1400
1209
  /** @type {?} */
1401
- var clickTarget = (/** @type {?} */ (event.target));
1402
- setTimeout((/**
1210
+ var clickTarget = ( /** @type {?} */(event.target));
1211
+ setTimeout(( /**
1403
1212
  * @return {?}
1404
- */
1405
- function () {
1213
+ */function () {
1406
1214
  _this._internalClick = false;
1407
1215
  }));
1408
1216
  return (_this.focused &&
@@ -1410,10 +1218,9 @@
1410
1218
  !_this._elementRef.nativeElement.contains(clickTarget) &&
1411
1219
  !_this._internalClick);
1412
1220
  })))
1413
- .subscribe((/**
1414
- * @return {?}
1415
- */
1416
- function () {
1221
+ .subscribe(( /**
1222
+ * @return {?}
1223
+ */function () {
1417
1224
  if (_this.focused) {
1418
1225
  _this._autocompleteTrigger.closePanel();
1419
1226
  _this.removeFocusedState();
@@ -1424,64 +1231,63 @@
1424
1231
  }
1425
1232
  return undefined;
1426
1233
  };
1427
- TdChipsComponent.decorators = [
1428
- { type: core.Component, args: [{
1429
- providers: [
1430
- {
1431
- provide: forms.NG_VALUE_ACCESSOR,
1432
- useExisting: core.forwardRef((/**
1433
- * @return {?}
1434
- */
1435
- function () { return TdChipsComponent; })),
1436
- multi: true,
1437
- },
1438
- ],
1439
- selector: 'td-chips',
1440
- inputs: ['disabled', 'value'],
1441
- template: "<div\n class=\"td-chips-wrapper\"\n [class.td-chips-stacked]=\"stacked\"\n [class.td-chips-input-before-position]=\"inputPosition === 'before'\"\n>\n <ng-template let-chip let-first=\"first\" let-index=\"index\" ngFor [ngForOf]=\"value\">\n <mat-basic-chip\n [class.td-chip-disabled]=\"disabled\"\n [class.td-chip-after-pad]=\"!canRemoveChip\"\n [disableRipple]=\"true\"\n [color]=\"color\"\n (keydown)=\"_chipKeydown($event, index)\"\n (blur)=\"_handleChipBlur($event, chip)\"\n (focus)=\"_handleChipFocus($event, chip)\"\n >\n <div class=\"td-chip\" [class.td-chip-stacked]=\"stacked\">\n <span class=\"td-chip-content\">\n <span *ngIf=\"!_chipTemplate?.templateRef\">{{ chip }}</span>\n <ng-template\n *ngIf=\"_chipTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_chipTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ chip: chip }\"\n ></ng-template>\n </span>\n <mat-icon *ngIf=\"canRemoveChip\" class=\"td-chip-removal\" (click)=\"_internalClick = removeChip(index)\">\n cancel\n </mat-icon>\n </div>\n </mat-basic-chip>\n </ng-template>\n <mat-form-field\n floatLabel=\"never\"\n class=\"td-chips-form-field\"\n [style.width.px]=\"canAddChip ? null : 0\"\n [style.height.px]=\"canAddChip ? null : 0\"\n [color]=\"color\"\n >\n <input\n matInput\n #input\n [tabIndex]=\"-1\"\n [matAutocomplete]=\"autocomplete\"\n [formControl]=\"inputControl\"\n [placeholder]=\"displayPlaceHolder\"\n (keydown)=\"_inputKeydown($event)\"\n (keyup.enter)=\"_handleAddChip()\"\n (focus)=\"_handleFocus()\"\n />\n </mat-form-field>\n <mat-autocomplete\n #autocomplete=\"matAutocomplete\"\n [displayWith]=\"_removeInputDisplay\"\n (optionSelected)=\"addChip($event.option.value)\"\n >\n <ng-template let-item let-first=\"first\" ngFor [ngForOf]=\"items\">\n <mat-option (click)=\"_setInternalClick()\" [value]=\"item\">\n <span *ngIf=\"!_autocompleteOptionTemplate?.templateRef\">{{ item }}</span>\n <ng-template\n *ngIf=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ option: item }\"\n ></ng-template>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n</div>\n<div *ngIf=\"chipAddition\" class=\"mat-form-field-underline\" [class.mat-disabled]=\"disabled\">\n <span class=\"mat-form-field-ripple\" [class.mat-focused]=\"focused\"></span>\n</div>\n<ng-content></ng-content>\n",
1442
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1443
- styles: [":host{display:block;padding:0 5px;min-height:48px}:host .td-chips-wrapper{min-height:42px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host .td-chips-wrapper.td-chips-stacked .mat-basic-chip,:host .td-chips-wrapper.td-chips-stacked .td-chips-form-field{width:100%}:host .td-chips-wrapper.td-chips-input-before-position .td-chips-form-field{-ms-flex-order:-1;order:-1}:host .td-chip,:host .td-chip>.td-chip-content{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;max-width:100%;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:start;justify-content:flex-start;min-width:0}:host .td-chip.td-chip-stacked,:host .td-chip>.td-chip-content.td-chip-stacked{-ms-flex-pack:justify;justify-content:space-between}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:2px}:host ::ng-deep .mat-basic-chip{display:inline-block;cursor:default;border-radius:16px;margin:8px 8px 0 0;box-sizing:border-box;max-width:100%;position:relative}html[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip{min-height:32px;line-height:32px;font-size:13px;padding:0 0 0 12px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{display:inline-block;-ms-flex-order:-20;order:-20;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;height:32px;width:32px;margin:0 8px 0 -12px;border-radius:50%;-ms-flex:0 0 auto;flex:0 0 auto;box-sizing:border-box}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 12px 0 0}html[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal{margin:0 4px;font-size:21px;line-height:22px}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal:hover{cursor:pointer}:host ::ng-deep .td-chips-stacked .mat-basic-chip{margin:4px 0}:host ::ng-deep .td-chips-stacked .mat-basic-chip:first-of-type{margin:8px 0 4px}:host ::ng-deep .td-chips-stacked .mat-basic-chip:last-of-type{margin:4px 0 8px}:host .mat-form-field-underline{position:relative;height:1px;width:100%;bottom:0}:host .mat-form-field-underline.mat-disabled{background-position:0;bottom:-4px;background-color:transparent}:host .mat-form-field-underline .mat-form-field-ripple{position:absolute;height:2px;top:0;width:100%;-ms-transform-origin:50%;transform-origin:50%;-ms-transform:scaleX(.5);transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}:host .mat-form-field-underline .mat-form-field-ripple.mat-focused{visibility:visible;opacity:1;-ms-transform:scaleX(1);transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}:host.ng-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;-ms-transform:scaleX(1);transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}:host ::ng-deep mat-form-field .mat-form-field-underline{display:none}"]
1444
- }] }
1445
- ];
1446
- /** @nocollapse */
1447
- TdChipsComponent.ctorParameters = function () { return [
1448
- { type: core.ElementRef },
1449
- { type: core.Renderer2 },
1450
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common.DOCUMENT,] }] },
1451
- { type: core.ChangeDetectorRef }
1452
- ]; };
1453
- TdChipsComponent.propDecorators = {
1454
- _nativeInput: [{ type: core.ViewChild, args: ['input', { static: true },] }],
1455
- _inputChild: [{ type: core.ViewChild, args: [input.MatInput, { static: true },] }],
1456
- _autocompleteTrigger: [{ type: core.ViewChild, args: [autocomplete.MatAutocompleteTrigger, { static: true },] }],
1457
- _chipsChildren: [{ type: core.ViewChildren, args: [chips.MatChip,] }],
1458
- _chipTemplate: [{ type: core.ContentChild, args: [TdChipDirective,] }],
1459
- _autocompleteOptionTemplate: [{ type: core.ContentChild, args: [TdAutocompleteOptionDirective,] }],
1460
- _options: [{ type: core.ViewChildren, args: [core$1.MatOption,] }],
1461
- items: [{ type: core.Input, args: ['items',] }],
1462
- stacked: [{ type: core.Input, args: ['stacked',] }],
1463
- inputPosition: [{ type: core.Input, args: ['inputPosition',] }],
1464
- requireMatch: [{ type: core.Input, args: ['requireMatch',] }],
1465
- required: [{ type: core.Input, args: ['required',] }],
1466
- chipAddition: [{ type: core.Input, args: ['chipAddition',] }],
1467
- chipRemoval: [{ type: core.Input, args: ['chipRemoval',] }],
1468
- placeholder: [{ type: core.Input }],
1469
- debounce: [{ type: core.Input }],
1470
- color: [{ type: core.Input, args: ['color',] }],
1471
- add: [{ type: core.Output }],
1472
- remove: [{ type: core.Output }],
1473
- inputChange: [{ type: core.Output }],
1474
- chipFocus: [{ type: core.Output }],
1475
- chipBlur: [{ type: core.Output }],
1476
- tabIndex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
1477
- compareWith: [{ type: core.Input }],
1478
- focusListener: [{ type: core.HostListener, args: ['focus', ['$event'],] }],
1479
- mousedownListener: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }],
1480
- clickListener: [{ type: core.HostListener, args: ['click', ['$event'],] }],
1481
- keydownListener: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
1482
- };
1483
1234
  return TdChipsComponent;
1484
1235
  }(_TdChipsMixinBase));
1236
+ TdChipsComponent.decorators = [
1237
+ { type: core.Component, args: [{
1238
+ providers: [
1239
+ {
1240
+ provide: forms.NG_VALUE_ACCESSOR,
1241
+ useExisting: core.forwardRef(( /**
1242
+ * @return {?}
1243
+ */function () { return TdChipsComponent; })),
1244
+ multi: true,
1245
+ },
1246
+ ],
1247
+ selector: 'td-chips',
1248
+ inputs: ['disabled', 'value'],
1249
+ template: "<div\n class=\"td-chips-wrapper\"\n [class.td-chips-stacked]=\"stacked\"\n [class.td-chips-input-before-position]=\"inputPosition === 'before'\"\n>\n <ng-template let-chip let-first=\"first\" let-index=\"index\" ngFor [ngForOf]=\"value\">\n <mat-basic-chip\n [class.td-chip-disabled]=\"disabled\"\n [class.td-chip-after-pad]=\"!canRemoveChip\"\n [disableRipple]=\"true\"\n [color]=\"color\"\n (keydown)=\"_chipKeydown($event, index)\"\n (blur)=\"_handleChipBlur($event, chip)\"\n (focus)=\"_handleChipFocus($event, chip)\"\n >\n <div class=\"td-chip\" [class.td-chip-stacked]=\"stacked\">\n <span class=\"td-chip-content\">\n <span *ngIf=\"!_chipTemplate?.templateRef\">{{ chip }}</span>\n <ng-template\n *ngIf=\"_chipTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_chipTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ chip: chip }\"\n ></ng-template>\n </span>\n <mat-icon *ngIf=\"canRemoveChip\" class=\"td-chip-removal\" (click)=\"_internalClick = removeChip(index)\">\n cancel\n </mat-icon>\n </div>\n </mat-basic-chip>\n </ng-template>\n <mat-form-field\n floatLabel=\"never\"\n class=\"td-chips-form-field\"\n [style.width.px]=\"canAddChip ? null : 0\"\n [style.height.px]=\"canAddChip ? null : 0\"\n [color]=\"color\"\n >\n <input\n matInput\n #input\n [tabIndex]=\"-1\"\n [matAutocomplete]=\"autocomplete\"\n [formControl]=\"inputControl\"\n [placeholder]=\"displayPlaceHolder\"\n (keydown)=\"_inputKeydown($event)\"\n (keyup.enter)=\"_handleAddChip()\"\n (focus)=\"_handleFocus()\"\n />\n </mat-form-field>\n <mat-autocomplete\n #autocomplete=\"matAutocomplete\"\n [displayWith]=\"_removeInputDisplay\"\n (optionSelected)=\"addChip($event.option.value)\"\n >\n <ng-template let-item let-first=\"first\" ngFor [ngForOf]=\"items\">\n <mat-option (click)=\"_setInternalClick()\" [value]=\"item\">\n <span *ngIf=\"!_autocompleteOptionTemplate?.templateRef\">{{ item }}</span>\n <ng-template\n *ngIf=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutlet]=\"_autocompleteOptionTemplate?.templateRef\"\n [ngTemplateOutletContext]=\"{ option: item }\"\n ></ng-template>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n</div>\n<div *ngIf=\"chipAddition\" class=\"mat-form-field-underline\" [class.mat-disabled]=\"disabled\">\n <span class=\"mat-form-field-ripple\" [class.mat-focused]=\"focused\"></span>\n</div>\n<ng-content></ng-content>\n",
1250
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
1251
+ styles: [":host{display:block;min-height:48px;padding:0 5px}:host .td-chips-wrapper{-ms-flex-align:start;-ms-flex-direction:row;-ms-flex-wrap:wrap;align-items:flex-start;display:-ms-flexbox;display:flex;flex-direction:row;flex-wrap:wrap;min-height:42px}:host .td-chips-wrapper.td-chips-stacked .mat-basic-chip,:host .td-chips-wrapper.td-chips-stacked .td-chips-form-field{width:100%}:host .td-chips-wrapper.td-chips-input-before-position .td-chips-form-field{-ms-flex-order:-1;order:-1}:host .td-chip,:host .td-chip>.td-chip-content{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-start;max-width:100%;min-width:0}:host .td-chip.td-chip-stacked,:host .td-chip>.td-chip-content.td-chip-stacked{-ms-flex-pack:justify;justify-content:space-between}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:2px}:host ::ng-deep .mat-basic-chip{border-radius:16px;box-sizing:border-box;cursor:default;display:inline-block;margin:8px 8px 0 0;max-width:100%;position:relative}html[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip{font-size:13px;line-height:32px;min-height:32px;padding:0 0 0 12px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{-ms-flex:0 0 auto;-ms-flex-align:center;-ms-flex-order:-20;-ms-flex-pack:center;align-items:center;border-radius:50%;box-sizing:border-box;display:inline-block;flex:0 0 auto;height:32px;justify-content:center;margin:0 8px 0 -12px;order:-20;text-align:center;width:32px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 12px 0 0}html[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal{font-size:21px;line-height:22px;margin:0 4px}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal:hover{cursor:pointer}:host ::ng-deep .td-chips-stacked .mat-basic-chip{margin:4px 0}:host ::ng-deep .td-chips-stacked .mat-basic-chip:first-of-type{margin:8px 0 4px}:host ::ng-deep .td-chips-stacked .mat-basic-chip:last-of-type{margin:4px 0 8px}:host .mat-form-field-underline{bottom:0;height:1px;position:relative;width:100%}:host .mat-form-field-underline.mat-disabled{background-color:rgba(0,0,0,0);background-position:0;bottom:-4px}:host .mat-form-field-underline .mat-form-field-ripple{-ms-transform:scaleX(.5);-ms-transform-origin:50%;height:2px;opacity:0;position:absolute;top:0;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);visibility:hidden;width:100%}:host .mat-form-field-underline .mat-form-field-ripple.mat-focused,:host.ng-invalid .mat-form-field-underline .mat-form-field-ripple{-ms-transform:scaleX(1);opacity:1;transform:scaleX(1);transition:transform .15s linear,background-color .3s cubic-bezier(.55,0,.55,.2);visibility:visible}:host ::ng-deep mat-form-field .mat-form-field-underline{display:none}"]
1252
+ }] }
1253
+ ];
1254
+ /** @nocollapse */
1255
+ TdChipsComponent.ctorParameters = function () { return [
1256
+ { type: core.ElementRef },
1257
+ { type: core.Renderer2 },
1258
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common$1.DOCUMENT,] }] },
1259
+ { type: core.ChangeDetectorRef }
1260
+ ]; };
1261
+ TdChipsComponent.propDecorators = {
1262
+ _nativeInput: [{ type: core.ViewChild, args: ['input', { static: true },] }],
1263
+ _inputChild: [{ type: core.ViewChild, args: [input.MatInput, { static: true },] }],
1264
+ _autocompleteTrigger: [{ type: core.ViewChild, args: [autocomplete.MatAutocompleteTrigger, { static: true },] }],
1265
+ _chipsChildren: [{ type: core.ViewChildren, args: [chips.MatChip,] }],
1266
+ _chipTemplate: [{ type: core.ContentChild, args: [TdChipDirective,] }],
1267
+ _autocompleteOptionTemplate: [{ type: core.ContentChild, args: [TdAutocompleteOptionDirective,] }],
1268
+ _options: [{ type: core.ViewChildren, args: [core$1.MatOption,] }],
1269
+ items: [{ type: core.Input, args: ['items',] }],
1270
+ stacked: [{ type: core.Input, args: ['stacked',] }],
1271
+ inputPosition: [{ type: core.Input, args: ['inputPosition',] }],
1272
+ requireMatch: [{ type: core.Input, args: ['requireMatch',] }],
1273
+ required: [{ type: core.Input, args: ['required',] }],
1274
+ chipAddition: [{ type: core.Input, args: ['chipAddition',] }],
1275
+ chipRemoval: [{ type: core.Input, args: ['chipRemoval',] }],
1276
+ placeholder: [{ type: core.Input }],
1277
+ debounce: [{ type: core.Input }],
1278
+ color: [{ type: core.Input, args: ['color',] }],
1279
+ add: [{ type: core.Output }],
1280
+ remove: [{ type: core.Output }],
1281
+ inputChange: [{ type: core.Output }],
1282
+ chipFocus: [{ type: core.Output }],
1283
+ chipBlur: [{ type: core.Output }],
1284
+ tabIndex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
1285
+ compareWith: [{ type: core.Input }],
1286
+ focusListener: [{ type: core.HostListener, args: ['focus', ['$event'],] }],
1287
+ mousedownListener: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }],
1288
+ clickListener: [{ type: core.HostListener, args: ['click', ['$event'],] }],
1289
+ keydownListener: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
1290
+ };
1485
1291
  if (false) {
1486
1292
  /**
1487
1293
  * @type {?}
@@ -1654,20 +1460,39 @@
1654
1460
 
1655
1461
  /**
1656
1462
  * @fileoverview added by tsickle
1657
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1463
+ * Generated from: chips.module.ts
1464
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1658
1465
  */
1659
1466
  var CovalentChipsModule = /** @class */ (function () {
1660
1467
  function CovalentChipsModule() {
1661
1468
  }
1662
- CovalentChipsModule.decorators = [
1663
- { type: core.NgModule, args: [{
1664
- imports: [forms.ReactiveFormsModule, common.CommonModule, input.MatInputModule, icon.MatIconModule, chips.MatChipsModule, autocomplete.MatAutocompleteModule],
1665
- declarations: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
1666
- exports: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
1667
- },] }
1668
- ];
1669
1469
  return CovalentChipsModule;
1670
1470
  }());
1471
+ CovalentChipsModule.decorators = [
1472
+ { type: core.NgModule, args: [{
1473
+ imports: [forms.ReactiveFormsModule, common$1.CommonModule, input.MatInputModule, icon.MatIconModule, chips.MatChipsModule, autocomplete.MatAutocompleteModule],
1474
+ declarations: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
1475
+ exports: [TdChipsComponent, TdChipDirective, TdAutocompleteOptionDirective],
1476
+ },] }
1477
+ ];
1478
+
1479
+ /**
1480
+ * @fileoverview added by tsickle
1481
+ * Generated from: public-api.ts
1482
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1483
+ */
1484
+
1485
+ /**
1486
+ * @fileoverview added by tsickle
1487
+ * Generated from: index.ts
1488
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1489
+ */
1490
+
1491
+ /**
1492
+ * @fileoverview added by tsickle
1493
+ * Generated from: covalent-core-chips.ts
1494
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1495
+ */
1671
1496
 
1672
1497
  exports.CovalentChipsModule = CovalentChipsModule;
1673
1498
  exports.TdAutocompleteOptionDirective = TdAutocompleteOptionDirective;