@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,1704 +0,0 @@
1
- import { Directive, TemplateRef, ViewContainerRef, EventEmitter, Component, ViewChild, ContentChild, Input, Output, ContentChildren, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef, Optional, Renderer2, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { TemplatePortalDirective, TemplatePortal, PortalModule } from '@angular/cdk/portal';
4
- import { ViewportRuler, ScrollingModule } from '@angular/cdk/scrolling';
5
- import { MatIconModule } from '@angular/material/icon';
6
- import { MatRippleModule } from '@angular/material/core';
7
- import { mixinDisableRipple, mixinDisabled, tdCollapseAnimation, CovalentCommonModule } from '@covalent/core/common';
8
- import { __extends } from 'tslib';
9
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
10
- import { Subject, merge, of } from 'rxjs';
11
- import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
12
- import { Directionality } from '@angular/cdk/bidi';
13
- import { RIGHT_ARROW, LEFT_ARROW } from '@angular/cdk/keycodes';
14
-
15
- /**
16
- * @fileoverview added by tsickle
17
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18
- */
19
- /** @enum {string} */
20
- var StepState = {
21
- None: 'none',
22
- Required: 'required',
23
- Complete: 'complete',
24
- };
25
- var TdStepLabelDirective = /** @class */ (function (_super) {
26
- __extends(TdStepLabelDirective, _super);
27
- function TdStepLabelDirective(templateRef, viewContainerRef) {
28
- return _super.call(this, templateRef, viewContainerRef) || this;
29
- }
30
- TdStepLabelDirective.decorators = [
31
- { type: Directive, args: [{
32
- selector: '[td-step-label]ng-template',
33
- },] }
34
- ];
35
- /** @nocollapse */
36
- TdStepLabelDirective.ctorParameters = function () { return [
37
- { type: TemplateRef },
38
- { type: ViewContainerRef }
39
- ]; };
40
- return TdStepLabelDirective;
41
- }(TemplatePortalDirective));
42
- var TdStepActionsDirective = /** @class */ (function (_super) {
43
- __extends(TdStepActionsDirective, _super);
44
- function TdStepActionsDirective(templateRef, viewContainerRef) {
45
- return _super.call(this, templateRef, viewContainerRef) || this;
46
- }
47
- TdStepActionsDirective.decorators = [
48
- { type: Directive, args: [{
49
- selector: '[td-step-actions]ng-template',
50
- },] }
51
- ];
52
- /** @nocollapse */
53
- TdStepActionsDirective.ctorParameters = function () { return [
54
- { type: TemplateRef },
55
- { type: ViewContainerRef }
56
- ]; };
57
- return TdStepActionsDirective;
58
- }(TemplatePortalDirective));
59
- var TdStepSummaryDirective = /** @class */ (function (_super) {
60
- __extends(TdStepSummaryDirective, _super);
61
- function TdStepSummaryDirective(templateRef, viewContainerRef) {
62
- return _super.call(this, templateRef, viewContainerRef) || this;
63
- }
64
- TdStepSummaryDirective.decorators = [
65
- { type: Directive, args: [{
66
- selector: '[td-step-summary]ng-template',
67
- },] }
68
- ];
69
- /** @nocollapse */
70
- TdStepSummaryDirective.ctorParameters = function () { return [
71
- { type: TemplateRef },
72
- { type: ViewContainerRef }
73
- ]; };
74
- return TdStepSummaryDirective;
75
- }(TemplatePortalDirective));
76
- var TdStepBase = /** @class */ (function () {
77
- function TdStepBase() {
78
- }
79
- return TdStepBase;
80
- }());
81
- /* tslint:disable-next-line */
82
- /** @type {?} */
83
- var _TdStepMixinBase = mixinDisableRipple(mixinDisabled(TdStepBase));
84
- var TdStepComponent = /** @class */ (function (_super) {
85
- __extends(TdStepComponent, _super);
86
- function TdStepComponent(_viewContainerRef) {
87
- var _this = _super.call(this) || this;
88
- _this._viewContainerRef = _viewContainerRef;
89
- _this._active = false;
90
- _this._state = StepState.None;
91
- /**
92
- * activated?: function
93
- * Event emitted when [TdStepComponent] is activated.
94
- */
95
- _this.activated = new EventEmitter();
96
- /**
97
- * deactivated?: function
98
- * Event emitted when [TdStepComponent] is deactivated.
99
- */
100
- _this.deactivated = new EventEmitter();
101
- return _this;
102
- }
103
- Object.defineProperty(TdStepComponent.prototype, "stepContent", {
104
- get: /**
105
- * @return {?}
106
- */
107
- function () {
108
- return this._contentPortal;
109
- },
110
- enumerable: true,
111
- configurable: true
112
- });
113
- Object.defineProperty(TdStepComponent.prototype, "active", {
114
- get: /**
115
- * @return {?}
116
- */
117
- function () {
118
- return this._active;
119
- },
120
- /**
121
- * active?: boolean
122
- * Toggles [TdStepComponent] between active/deactive.
123
- */
124
- set: /**
125
- * active?: boolean
126
- * Toggles [TdStepComponent] between active/deactive.
127
- * @param {?} active
128
- * @return {?}
129
- */
130
- function (active) {
131
- this._setActive(coerceBooleanProperty(active));
132
- },
133
- enumerable: true,
134
- configurable: true
135
- });
136
- Object.defineProperty(TdStepComponent.prototype, "state", {
137
- get: /**
138
- * @return {?}
139
- */
140
- function () {
141
- return this._state;
142
- },
143
- /**
144
- * state?: StepState or ['none' | 'required' | 'complete']
145
- * Sets state of [TdStepComponent] depending on value.
146
- * Defaults to [StepState.None | 'none'].
147
- */
148
- set: /**
149
- * state?: StepState or ['none' | 'required' | 'complete']
150
- * Sets state of [TdStepComponent] depending on value.
151
- * Defaults to [StepState.None | 'none'].
152
- * @param {?} state
153
- * @return {?}
154
- */
155
- function (state) {
156
- switch (state) {
157
- case StepState.Complete:
158
- this._state = StepState.Complete;
159
- break;
160
- case StepState.Required:
161
- this._state = StepState.Required;
162
- break;
163
- default:
164
- this._state = StepState.None;
165
- break;
166
- }
167
- },
168
- enumerable: true,
169
- configurable: true
170
- });
171
- /**
172
- * @return {?}
173
- */
174
- TdStepComponent.prototype.ngOnInit = /**
175
- * @return {?}
176
- */
177
- function () {
178
- this._contentPortal = new TemplatePortal(this._content, this._viewContainerRef);
179
- };
180
- /**
181
- * Toggle active state of [TdStepComponent]
182
- * retuns 'true' if successful, else 'false'.
183
- */
184
- /**
185
- * Toggle active state of [TdStepComponent]
186
- * retuns 'true' if successful, else 'false'.
187
- * @return {?}
188
- */
189
- TdStepComponent.prototype.toggle = /**
190
- * Toggle active state of [TdStepComponent]
191
- * retuns 'true' if successful, else 'false'.
192
- * @return {?}
193
- */
194
- function () {
195
- return this._setActive(!this._active);
196
- };
197
- /**
198
- * Opens [TdStepComponent]
199
- * retuns 'true' if successful, else 'false'.
200
- */
201
- /**
202
- * Opens [TdStepComponent]
203
- * retuns 'true' if successful, else 'false'.
204
- * @return {?}
205
- */
206
- TdStepComponent.prototype.open = /**
207
- * Opens [TdStepComponent]
208
- * retuns 'true' if successful, else 'false'.
209
- * @return {?}
210
- */
211
- function () {
212
- return this._setActive(true);
213
- };
214
- /**
215
- * Closes [TdStepComponent]
216
- * retuns 'true' if successful, else 'false'.
217
- */
218
- /**
219
- * Closes [TdStepComponent]
220
- * retuns 'true' if successful, else 'false'.
221
- * @return {?}
222
- */
223
- TdStepComponent.prototype.close = /**
224
- * Closes [TdStepComponent]
225
- * retuns 'true' if successful, else 'false'.
226
- * @return {?}
227
- */
228
- function () {
229
- return this._setActive(false);
230
- };
231
- /**
232
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
233
- */
234
- /**
235
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
236
- * @return {?}
237
- */
238
- TdStepComponent.prototype.isComplete = /**
239
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
240
- * @return {?}
241
- */
242
- function () {
243
- return this._state === StepState.Complete;
244
- };
245
- /** Method executed when the disabled value changes */
246
- /**
247
- * Method executed when the disabled value changes
248
- * @param {?} v
249
- * @return {?}
250
- */
251
- TdStepComponent.prototype.onDisabledChange = /**
252
- * Method executed when the disabled value changes
253
- * @param {?} v
254
- * @return {?}
255
- */
256
- function (v) {
257
- if (v && this._active) {
258
- this._active = false;
259
- this._onDeactivated();
260
- }
261
- };
262
- /**
263
- * Method to change active state internally and emit the [activated] event if 'true' or [deactivated]
264
- * event if 'false'. (Blocked if [disabled] is 'true')
265
- * returns true if successfully changed state
266
- */
267
- /**
268
- * Method to change active state internally and emit the [activated] event if 'true' or [deactivated]
269
- * event if 'false'. (Blocked if [disabled] is 'true')
270
- * returns true if successfully changed state
271
- * @private
272
- * @param {?} newActive
273
- * @return {?}
274
- */
275
- TdStepComponent.prototype._setActive = /**
276
- * Method to change active state internally and emit the [activated] event if 'true' or [deactivated]
277
- * event if 'false'. (Blocked if [disabled] is 'true')
278
- * returns true if successfully changed state
279
- * @private
280
- * @param {?} newActive
281
- * @return {?}
282
- */
283
- function (newActive) {
284
- if (this.disabled) {
285
- return false;
286
- }
287
- if (this._active !== newActive) {
288
- this._active = newActive;
289
- if (newActive) {
290
- this._onActivated();
291
- }
292
- else {
293
- this._onDeactivated();
294
- }
295
- return true;
296
- }
297
- return false;
298
- };
299
- /**
300
- * @private
301
- * @return {?}
302
- */
303
- TdStepComponent.prototype._onActivated = /**
304
- * @private
305
- * @return {?}
306
- */
307
- function () {
308
- this.activated.emit();
309
- };
310
- /**
311
- * @private
312
- * @return {?}
313
- */
314
- TdStepComponent.prototype._onDeactivated = /**
315
- * @private
316
- * @return {?}
317
- */
318
- function () {
319
- this.deactivated.emit();
320
- };
321
- TdStepComponent.decorators = [
322
- { type: Component, args: [{
323
- selector: 'td-step',
324
- inputs: ['disabled', 'disableRipple'],
325
- template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n"
326
- }] }
327
- ];
328
- /** @nocollapse */
329
- TdStepComponent.ctorParameters = function () { return [
330
- { type: ViewContainerRef }
331
- ]; };
332
- TdStepComponent.propDecorators = {
333
- _content: [{ type: ViewChild, args: [TemplateRef, { static: true },] }],
334
- stepLabel: [{ type: ContentChild, args: [TdStepLabelDirective,] }],
335
- stepActions: [{ type: ContentChild, args: [TdStepActionsDirective,] }],
336
- stepSummary: [{ type: ContentChild, args: [TdStepSummaryDirective,] }],
337
- label: [{ type: Input }],
338
- sublabel: [{ type: Input }],
339
- active: [{ type: Input, args: ['active',] }],
340
- state: [{ type: Input, args: ['state',] }],
341
- activated: [{ type: Output }],
342
- deactivated: [{ type: Output }]
343
- };
344
- return TdStepComponent;
345
- }(_TdStepMixinBase));
346
- if (false) {
347
- /**
348
- * @type {?}
349
- * @private
350
- */
351
- TdStepComponent.prototype._active;
352
- /**
353
- * @type {?}
354
- * @private
355
- */
356
- TdStepComponent.prototype._state;
357
- /**
358
- * @type {?}
359
- * @private
360
- */
361
- TdStepComponent.prototype._contentPortal;
362
- /** @type {?} */
363
- TdStepComponent.prototype._content;
364
- /** @type {?} */
365
- TdStepComponent.prototype.stepLabel;
366
- /** @type {?} */
367
- TdStepComponent.prototype.stepActions;
368
- /** @type {?} */
369
- TdStepComponent.prototype.stepSummary;
370
- /**
371
- * label?: string
372
- * Sets label of [TdStepComponent] header.
373
- * Defaults to 'Step #'
374
- * @type {?}
375
- */
376
- TdStepComponent.prototype.label;
377
- /**
378
- * sublabel?: string
379
- * Sets sublabel of [TdStepComponent] header.
380
- * @type {?}
381
- */
382
- TdStepComponent.prototype.sublabel;
383
- /**
384
- * activated?: function
385
- * Event emitted when [TdStepComponent] is activated.
386
- * @type {?}
387
- */
388
- TdStepComponent.prototype.activated;
389
- /**
390
- * deactivated?: function
391
- * Event emitted when [TdStepComponent] is deactivated.
392
- * @type {?}
393
- */
394
- TdStepComponent.prototype.deactivated;
395
- /**
396
- * @type {?}
397
- * @private
398
- */
399
- TdStepComponent.prototype._viewContainerRef;
400
- }
401
-
402
- /**
403
- * @fileoverview added by tsickle
404
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
405
- */
406
- /**
407
- * @record
408
- */
409
- function IStepChangeEvent() { }
410
- if (false) {
411
- /** @type {?} */
412
- IStepChangeEvent.prototype.newStep;
413
- /** @type {?} */
414
- IStepChangeEvent.prototype.prevStep;
415
- }
416
- /** @enum {string} */
417
- var StepMode = {
418
- Vertical: 'vertical',
419
- Horizontal: 'horizontal',
420
- };
421
- var TdStepsComponent = /** @class */ (function () {
422
- function TdStepsComponent() {
423
- this._mode = StepMode.Vertical;
424
- /**
425
- * stepChange?: function
426
- * Method to be executed when [stepChange] event is emitted.
427
- * Emits an [IStepChangeEvent] implemented object.
428
- */
429
- this.stepChange = new EventEmitter();
430
- }
431
- Object.defineProperty(TdStepsComponent.prototype, "stepsContent", {
432
- set: /**
433
- * @param {?} steps
434
- * @return {?}
435
- */
436
- function (steps) {
437
- if (steps) {
438
- this._steps = steps;
439
- this._registerSteps();
440
- }
441
- },
442
- enumerable: true,
443
- configurable: true
444
- });
445
- Object.defineProperty(TdStepsComponent.prototype, "steps", {
446
- get: /**
447
- * @return {?}
448
- */
449
- function () {
450
- return this._steps.toArray();
451
- },
452
- enumerable: true,
453
- configurable: true
454
- });
455
- Object.defineProperty(TdStepsComponent.prototype, "mode", {
456
- get: /**
457
- * @return {?}
458
- */
459
- function () {
460
- return this._mode;
461
- },
462
- /**
463
- * mode?: StepMode or ["vertical" | "horizontal"]
464
- * Defines if the mode of the [TdStepsComponent]. Defaults to [StepMode.Vertical | "vertical"]
465
- */
466
- set: /**
467
- * mode?: StepMode or ["vertical" | "horizontal"]
468
- * Defines if the mode of the [TdStepsComponent]. Defaults to [StepMode.Vertical | "vertical"]
469
- * @param {?} mode
470
- * @return {?}
471
- */
472
- function (mode) {
473
- if (mode === StepMode.Horizontal) {
474
- this._mode = StepMode.Horizontal;
475
- }
476
- else {
477
- this._mode = StepMode.Vertical;
478
- }
479
- },
480
- enumerable: true,
481
- configurable: true
482
- });
483
- /**
484
- * Executed after content is initialized, loops through any [TdStepComponent] children elements,
485
- * assigns them a number and subscribes as an observer to their [activated] event.
486
- */
487
- /**
488
- * Executed after content is initialized, loops through any [TdStepComponent] children elements,
489
- * assigns them a number and subscribes as an observer to their [activated] event.
490
- * @return {?}
491
- */
492
- TdStepsComponent.prototype.ngAfterContentInit = /**
493
- * Executed after content is initialized, loops through any [TdStepComponent] children elements,
494
- * assigns them a number and subscribes as an observer to their [activated] event.
495
- * @return {?}
496
- */
497
- function () {
498
- this._registerSteps();
499
- };
500
- /**
501
- * Unsubscribes from [TdStepComponent] children elements when component is destroyed.
502
- */
503
- /**
504
- * Unsubscribes from [TdStepComponent] children elements when component is destroyed.
505
- * @return {?}
506
- */
507
- TdStepsComponent.prototype.ngOnDestroy = /**
508
- * Unsubscribes from [TdStepComponent] children elements when component is destroyed.
509
- * @return {?}
510
- */
511
- function () {
512
- this._deregisterSteps();
513
- };
514
- /**
515
- * Returns 'true' if [mode] equals to [StepMode.Horizontal | 'horizontal'], else 'false'.
516
- */
517
- /**
518
- * Returns 'true' if [mode] equals to [StepMode.Horizontal | 'horizontal'], else 'false'.
519
- * @return {?}
520
- */
521
- TdStepsComponent.prototype.isHorizontal = /**
522
- * Returns 'true' if [mode] equals to [StepMode.Horizontal | 'horizontal'], else 'false'.
523
- * @return {?}
524
- */
525
- function () {
526
- return this._mode === StepMode.Horizontal;
527
- };
528
- /**
529
- * Returns 'true' if [mode] equals to [StepMode.Vertical | 'vertical'], else 'false'.
530
- */
531
- /**
532
- * Returns 'true' if [mode] equals to [StepMode.Vertical | 'vertical'], else 'false'.
533
- * @return {?}
534
- */
535
- TdStepsComponent.prototype.isVertical = /**
536
- * Returns 'true' if [mode] equals to [StepMode.Vertical | 'vertical'], else 'false'.
537
- * @return {?}
538
- */
539
- function () {
540
- return this._mode === StepMode.Vertical;
541
- };
542
- /**
543
- * @return {?}
544
- */
545
- TdStepsComponent.prototype.areStepsActive = /**
546
- * @return {?}
547
- */
548
- function () {
549
- return (this._steps.filter((/**
550
- * @param {?} step
551
- * @return {?}
552
- */
553
- function (step) {
554
- return step.active;
555
- })).length > 0);
556
- };
557
- /**
558
- * Wraps previous and new [TdStepComponent] numbers in an object that implements [IStepChangeEvent]
559
- * and emits [stepChange] event.
560
- */
561
- /**
562
- * Wraps previous and new [TdStepComponent] numbers in an object that implements [IStepChangeEvent]
563
- * and emits [stepChange] event.
564
- * @private
565
- * @param {?} step
566
- * @return {?}
567
- */
568
- TdStepsComponent.prototype._onStepSelection = /**
569
- * Wraps previous and new [TdStepComponent] numbers in an object that implements [IStepChangeEvent]
570
- * and emits [stepChange] event.
571
- * @private
572
- * @param {?} step
573
- * @return {?}
574
- */
575
- function (step) {
576
- if (this.prevStep !== step) {
577
- /** @type {?} */
578
- var prevStep = this.prevStep;
579
- this.prevStep = step;
580
- /** @type {?} */
581
- var event_1 = {
582
- newStep: step,
583
- prevStep: prevStep,
584
- };
585
- this._deactivateAllBut(step);
586
- this.stepChange.emit(event_1);
587
- }
588
- };
589
- /**
590
- * Loops through [TdStepComponent] children elements and deactivates them ignoring the one passed as an argument.
591
- */
592
- /**
593
- * Loops through [TdStepComponent] children elements and deactivates them ignoring the one passed as an argument.
594
- * @private
595
- * @param {?} activeStep
596
- * @return {?}
597
- */
598
- TdStepsComponent.prototype._deactivateAllBut = /**
599
- * Loops through [TdStepComponent] children elements and deactivates them ignoring the one passed as an argument.
600
- * @private
601
- * @param {?} activeStep
602
- * @return {?}
603
- */
604
- function (activeStep) {
605
- this._steps
606
- .filter((/**
607
- * @param {?} step
608
- * @return {?}
609
- */
610
- function (step) { return step !== activeStep; }))
611
- .forEach((/**
612
- * @param {?} step
613
- * @return {?}
614
- */
615
- function (step) {
616
- step.active = false;
617
- }));
618
- };
619
- /**
620
- * @private
621
- * @return {?}
622
- */
623
- TdStepsComponent.prototype._registerSteps = /**
624
- * @private
625
- * @return {?}
626
- */
627
- function () {
628
- var _this = this;
629
- this._subcriptions = [];
630
- this._steps.toArray().forEach((/**
631
- * @param {?} step
632
- * @return {?}
633
- */
634
- function (step) {
635
- /** @type {?} */
636
- var subscription = step.activated.asObservable().subscribe((/**
637
- * @return {?}
638
- */
639
- function () {
640
- _this._onStepSelection(step);
641
- }));
642
- _this._subcriptions.push(subscription);
643
- }));
644
- };
645
- /**
646
- * @private
647
- * @return {?}
648
- */
649
- TdStepsComponent.prototype._deregisterSteps = /**
650
- * @private
651
- * @return {?}
652
- */
653
- function () {
654
- if (this._subcriptions) {
655
- this._subcriptions.forEach((/**
656
- * @param {?} subs
657
- * @return {?}
658
- */
659
- function (subs) {
660
- subs.unsubscribe();
661
- }));
662
- this._subcriptions = undefined;
663
- }
664
- };
665
- TdStepsComponent.decorators = [
666
- { type: Component, args: [{
667
- selector: 'td-steps',
668
- template: "<div *ngIf=\"isHorizontal()\" class=\"td-steps-header\">\n <ng-template let-step let-index=\"index\" let-last=\"last\" ngFor [ngForOf]=\"steps\">\n <td-step-header\n class=\"td-step-horizontal-header\"\n (keydown.enter)=\"step.open()\"\n [number]=\"index + 1\"\n [active]=\"step.active\"\n [disableRipple]=\"step.disableRipple\"\n [disabled]=\"step.disabled\"\n [state]=\"step.state\"\n (click)=\"step.open()\"\n >\n <ng-template td-step-header-label [cdkPortalOutlet]=\"step.stepLabel\"></ng-template>\n <ng-template td-step-header-label [ngIf]=\"!step.stepLabel\">{{ step.label }}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]=\"true\">{{ step.sublabel | truncate: 30 }}</ng-template>\n </td-step-header>\n <span *ngIf=\"!last\" class=\"td-horizontal-line\"></span>\n </ng-template>\n</div>\n<div *ngFor=\"let step of steps; let index = index; let last = last\" class=\"td-step\">\n <td-step-header\n class=\"td-step-vertical-header\"\n (keydown.enter)=\"step.toggle()\"\n [number]=\"index + 1\"\n [active]=\"step.active\"\n [disabled]=\"step.disabled\"\n [disableRipple]=\"step.disableRipple\"\n [state]=\"step.state\"\n (click)=\"step.toggle()\"\n *ngIf=\"isVertical()\"\n >\n <ng-template td-step-header-label [cdkPortalOutlet]=\"step.stepLabel\"></ng-template>\n <ng-template td-step-header-label [ngIf]=\"!step.stepLabel\">{{ step.label }}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]=\"true\">{{ step.sublabel }}</ng-template>\n </td-step-header>\n <ng-template [ngIf]=\"isVertical() || step.active || (!areStepsActive() && prevStep === step)\">\n <td-step-body [active]=\"step.active\" [state]=\"step.state\">\n <div *ngIf=\"isVertical()\" class=\"td-line-wrapper\">\n <div *ngIf=\"!last\" class=\"td-vertical-line\"></div>\n </div>\n <ng-template td-step-body-content [cdkPortalOutlet]=\"step.stepContent\"></ng-template>\n <ng-template td-step-body-actions [cdkPortalOutlet]=\"step.stepActions\"></ng-template>\n <ng-template td-step-body-summary [cdkPortalOutlet]=\"step.stepSummary\"></ng-template>\n </td-step-body>\n </ng-template>\n</div>\n",
669
- /* tslint:disable-next-line */
670
- host: {
671
- class: 'td-steps',
672
- },
673
- styles: [".td-line-wrapper,.td-step{position:relative}.td-steps-header{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.td-line-wrapper{width:24px;min-height:1px}.td-horizontal-line{border-bottom-width:1px;border-bottom-style:solid;height:1px;position:relative;top:36px;min-width:15px;-ms-flex:1;flex:1;box-sizing:border-box}::ng-deep :not([dir=rtl]) .td-horizontal-line{left:-6px;right:-3px}::ng-deep [dir=rtl] .td-horizontal-line{left:-3px;right:-6px}.td-vertical-line{position:absolute;bottom:-16px;top:-16px;border-left-width:1px;border-left-style:solid}::ng-deep :not([dir=rtl]) .td-vertical-line{left:20px;right:auto}::ng-deep [dir=rtl] .td-vertical-line{left:auto;right:20px}"]
674
- }] }
675
- ];
676
- TdStepsComponent.propDecorators = {
677
- stepsContent: [{ type: ContentChildren, args: [TdStepComponent, { descendants: true },] }],
678
- mode: [{ type: Input, args: ['mode',] }],
679
- stepChange: [{ type: Output }]
680
- };
681
- return TdStepsComponent;
682
- }());
683
- if (false) {
684
- /**
685
- * @type {?}
686
- * @private
687
- */
688
- TdStepsComponent.prototype._subcriptions;
689
- /**
690
- * @type {?}
691
- * @private
692
- */
693
- TdStepsComponent.prototype._mode;
694
- /**
695
- * @type {?}
696
- * @private
697
- */
698
- TdStepsComponent.prototype._steps;
699
- /** @type {?} */
700
- TdStepsComponent.prototype.prevStep;
701
- /**
702
- * stepChange?: function
703
- * Method to be executed when [stepChange] event is emitted.
704
- * Emits an [IStepChangeEvent] implemented object.
705
- * @type {?}
706
- */
707
- TdStepsComponent.prototype.stepChange;
708
- }
709
-
710
- /**
711
- * @fileoverview added by tsickle
712
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
713
- */
714
- var TdStepHeaderBase = /** @class */ (function () {
715
- function TdStepHeaderBase() {
716
- }
717
- return TdStepHeaderBase;
718
- }());
719
- /* tslint:disable-next-line */
720
- /** @type {?} */
721
- var _TdStepHeaderMixinBase = mixinDisableRipple(mixinDisabled(TdStepHeaderBase));
722
- var TdStepHeaderComponent = /** @class */ (function (_super) {
723
- __extends(TdStepHeaderComponent, _super);
724
- function TdStepHeaderComponent() {
725
- var _this = _super !== null && _super.apply(this, arguments) || this;
726
- /**
727
- * state?: StepState or ['none' | 'required' | 'complete']
728
- * Sets styles for state of header.
729
- * Defaults to [StepState.None | 'none'].
730
- */
731
- _this.state = StepState.None;
732
- return _this;
733
- }
734
- /**
735
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
736
- */
737
- /**
738
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
739
- * @return {?}
740
- */
741
- TdStepHeaderComponent.prototype.isComplete = /**
742
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
743
- * @return {?}
744
- */
745
- function () {
746
- return this.state === StepState.Complete;
747
- };
748
- /**
749
- * Returns 'true' if [state] equals to [StepState.Required | 'required'], else 'false'.
750
- */
751
- /**
752
- * Returns 'true' if [state] equals to [StepState.Required | 'required'], else 'false'.
753
- * @return {?}
754
- */
755
- TdStepHeaderComponent.prototype.isRequired = /**
756
- * Returns 'true' if [state] equals to [StepState.Required | 'required'], else 'false'.
757
- * @return {?}
758
- */
759
- function () {
760
- return this.state === StepState.Required;
761
- };
762
- TdStepHeaderComponent.decorators = [
763
- { type: Component, args: [{
764
- selector: 'td-step-header',
765
- inputs: ['disabled', 'disableRipple'],
766
- template: "<div\n class=\"td-step-header\"\n [class.mat-disabled]=\"disabled\"\n matRipple\n [matRippleDisabled]=\"disabled || disableRipple\"\n [tabIndex]=\"disabled ? -1 : tabIndex || 0\"\n>\n <div\n class=\"td-circle\"\n [class.mat-inactive]=\"(!active && !isComplete()) || disabled\"\n [class.mat-active]=\"active && !disabled\"\n *ngIf=\"!isRequired() && !isComplete()\"\n >\n <span *ngIf=\"active || !isComplete()\">{{ number || '' }}</span>\n </div>\n <div class=\"td-complete\" *ngIf=\"isComplete()\">\n <mat-icon class=\"mat-complete\">check_circle</mat-icon>\n </div>\n <div class=\"td-triangle\" [class.bg-muted]=\"disabled\" *ngIf=\"isRequired()\">\n <mat-icon class=\"mat-warn\">warning</mat-icon>\n </div>\n <div\n class=\"td-step-label-wrapper\"\n [class.mat-inactive]=\"(!active && !isComplete()) || disabled\"\n [class.mat-warn]=\"isRequired() && !disabled\"\n >\n <div class=\"td-step-label\">\n <ng-content select=\"[td-step-header-label]\"></ng-content>\n </div>\n <div class=\"td-step-sublabel\">\n <ng-content select=\"[td-step-header-sublabel]\"></ng-content>\n </div>\n </div>\n <span class=\"td-step-header-separator\"></span>\n <mat-icon class=\"td-edit-icon\" *ngIf=\"isComplete() && !active && !disabled\">mode_edit</mat-icon>\n</div>\n",
767
- styles: [".td-step-header{position:relative;outline:0;min-width:120px;height:72px;-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%}.td-step-header:hover:not(.mat-disabled){cursor:pointer}.td-step-header mat-icon.td-edit-icon{margin:0 8px}.td-step-header mat-icon.mat-warn{font-size:24px;height:24px;width:24px}.td-step-header mat-icon.mat-complete{position:relative;left:-2px;top:2px;font-size:28px;height:24px;width:24px}.td-step-header .td-circle{height:24px;width:24px;line-height:24px;border-radius:99%;text-align:center;-ms-flex:none;flex:none}.td-step-header .td-circle mat-icon{margin-top:2px;font-weight:700}.td-step-header .td-triangle>mat-icon{font-size:25px}::ng-deep :not([dir=rtl]) .td-step-header .td-circle,::ng-deep :not([dir=rtl]) .td-step-header .td-complete,::ng-deep :not([dir=rtl]) .td-step-header .td-triangle{margin-left:8px;margin-right:0}::ng-deep [dir=rtl] .td-step-header .td-circle,::ng-deep [dir=rtl] .td-step-header .td-complete,::ng-deep [dir=rtl] .td-step-header .td-triangle{margin-left:0;margin-right:8px}.td-step-header .td-circle,.td-step-header .td-complete{font-size:14px}.td-step-header .td-step-label-wrapper{padding-left:8px;padding-right:8px}.td-step-header .td-step-header-separator{-ms-flex:1;flex:1;box-sizing:border-box}"]
768
- }] }
769
- ];
770
- TdStepHeaderComponent.propDecorators = {
771
- number: [{ type: Input }],
772
- active: [{ type: Input }],
773
- state: [{ type: Input }],
774
- tabIndex: [{ type: Input }]
775
- };
776
- return TdStepHeaderComponent;
777
- }(_TdStepHeaderMixinBase));
778
- if (false) {
779
- /**
780
- * Number assigned to [TdStepHeaderComponent].
781
- * @type {?}
782
- */
783
- TdStepHeaderComponent.prototype.number;
784
- /**
785
- * active?: boolean
786
- * Sets for active/inactive states on header.
787
- * @type {?}
788
- */
789
- TdStepHeaderComponent.prototype.active;
790
- /**
791
- * state?: StepState or ['none' | 'required' | 'complete']
792
- * Sets styles for state of header.
793
- * Defaults to [StepState.None | 'none'].
794
- * @type {?}
795
- */
796
- TdStepHeaderComponent.prototype.state;
797
- /**
798
- * tabIndex?: number
799
- * tabIndex of the step header for a11y
800
- * @type {?}
801
- */
802
- TdStepHeaderComponent.prototype.tabIndex;
803
- }
804
-
805
- /**
806
- * @fileoverview added by tsickle
807
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
808
- */
809
- var TdStepBodyComponent = /** @class */ (function () {
810
- function TdStepBodyComponent() {
811
- /**
812
- * state?: StepState or ['none' | 'required' | 'complete']
813
- * Sets styles for state of body.
814
- * Defaults to [StepState.None | 'none'].
815
- */
816
- this.state = StepState.None;
817
- }
818
- Object.defineProperty(TdStepBodyComponent.prototype, "hasContent", {
819
- get: /**
820
- * @return {?}
821
- */
822
- function () {
823
- return (this.contentRef &&
824
- (this.contentRef.nativeElement.children.length > 0 || !!this.contentRef.nativeElement.textContent.trim()));
825
- },
826
- enumerable: true,
827
- configurable: true
828
- });
829
- Object.defineProperty(TdStepBodyComponent.prototype, "hasActions", {
830
- get: /**
831
- * @return {?}
832
- */
833
- function () {
834
- return (this.actionsRef &&
835
- (this.actionsRef.nativeElement.children.length > 0 || !!this.actionsRef.nativeElement.textContent.trim()));
836
- },
837
- enumerable: true,
838
- configurable: true
839
- });
840
- Object.defineProperty(TdStepBodyComponent.prototype, "hasSummary", {
841
- get: /**
842
- * @return {?}
843
- */
844
- function () {
845
- return (this.summaryRef &&
846
- (this.summaryRef.nativeElement.children.length > 0 || !!this.summaryRef.nativeElement.textContent.trim()));
847
- },
848
- enumerable: true,
849
- configurable: true
850
- });
851
- /**
852
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
853
- */
854
- /**
855
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
856
- * @return {?}
857
- */
858
- TdStepBodyComponent.prototype.isComplete = /**
859
- * Returns 'true' if [state] equals to [StepState.Complete | 'complete'], else 'false'.
860
- * @return {?}
861
- */
862
- function () {
863
- return this.state === StepState.Complete;
864
- };
865
- TdStepBodyComponent.decorators = [
866
- { type: Component, args: [{
867
- selector: 'td-step-body',
868
- template: "<ng-content></ng-content>\n<div class=\"td-step-body\">\n <div class=\"td-step-content-wrapper\" [@tdCollapse]=\"!active\">\n <div #contentRef cdkScrollable [class.td-step-content]=\"hasContent\">\n <ng-content select=\"[td-step-body-content]\"></ng-content>\n </div>\n <div #actionsRef [class.td-step-actions]=\"hasActions\">\n <ng-content select=\"[td-step-body-actions]\"></ng-content>\n </div>\n </div>\n <div #summaryRef [@tdCollapse]=\"active || !isComplete()\" [class.td-step-summary]=\"hasSummary\">\n <ng-content select=\"[td-step-body-summary]\"></ng-content>\n </div>\n</div>\n",
869
- animations: [tdCollapseAnimation],
870
- styles: [":host{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}:host .td-step-body{overflow-x:hidden;-ms-flex:1;flex:1;box-sizing:border-box}:host .td-step-body .td-step-content-wrapper.ng-animating,:host .td-step-body .td-step-summary.ng-animating{overflow:hidden}:host .td-step-body .td-step-content{overflow-x:auto}:host .td-step-body .td-step-actions{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}"]
871
- }] }
872
- ];
873
- TdStepBodyComponent.propDecorators = {
874
- contentRef: [{ type: ViewChild, args: ['contentRef', { read: ElementRef, static: true },] }],
875
- actionsRef: [{ type: ViewChild, args: ['actionsRef', { read: ElementRef, static: true },] }],
876
- summaryRef: [{ type: ViewChild, args: ['summaryRef', { read: ElementRef, static: true },] }],
877
- active: [{ type: Input }],
878
- state: [{ type: Input }]
879
- };
880
- return TdStepBodyComponent;
881
- }());
882
- if (false) {
883
- /** @type {?} */
884
- TdStepBodyComponent.prototype.contentRef;
885
- /** @type {?} */
886
- TdStepBodyComponent.prototype.actionsRef;
887
- /** @type {?} */
888
- TdStepBodyComponent.prototype.summaryRef;
889
- /**
890
- * active?: boolean
891
- * Sets for active/inactive states on body.
892
- * @type {?}
893
- */
894
- TdStepBodyComponent.prototype.active;
895
- /**
896
- * state?: StepState or ['none' | 'required' | 'complete']
897
- * Sets styles for state of body.
898
- * Defaults to [StepState.None | 'none'].
899
- * @type {?}
900
- */
901
- TdStepBodyComponent.prototype.state;
902
- }
903
-
904
- /**
905
- * @fileoverview added by tsickle
906
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
907
- */
908
- var TdNavStepLinkComponent = /** @class */ (function (_super) {
909
- __extends(TdNavStepLinkComponent, _super);
910
- function TdNavStepLinkComponent(_changeDetectorRef, elementRef) {
911
- var _this = _super.call(this) || this;
912
- _this._changeDetectorRef = _changeDetectorRef;
913
- _this.elementRef = elementRef;
914
- _this._active = false;
915
- _this._state = StepState.None;
916
- return _this;
917
- }
918
- Object.defineProperty(TdNavStepLinkComponent.prototype, "state", {
919
- get: /**
920
- * @return {?}
921
- */
922
- function () {
923
- return this._state;
924
- },
925
- /**
926
- * state?: StepState or ['none' | 'required' | 'complete']
927
- * Sets state of component depending on value.
928
- * Defaults to [StepState.None | 'none'].
929
- */
930
- set: /**
931
- * state?: StepState or ['none' | 'required' | 'complete']
932
- * Sets state of component depending on value.
933
- * Defaults to [StepState.None | 'none'].
934
- * @param {?} state
935
- * @return {?}
936
- */
937
- function (state) {
938
- switch (state) {
939
- case StepState.Complete:
940
- this._state = StepState.Complete;
941
- break;
942
- case StepState.Required:
943
- this._state = StepState.Required;
944
- break;
945
- default:
946
- this._state = StepState.None;
947
- break;
948
- }
949
- },
950
- enumerable: true,
951
- configurable: true
952
- });
953
- Object.defineProperty(TdNavStepLinkComponent.prototype, "active", {
954
- get: /**
955
- * @return {?}
956
- */
957
- function () {
958
- return this._active;
959
- },
960
- /**
961
- * active?: boolean
962
- * Toggles component between active/deactive.
963
- */
964
- set: /**
965
- * active?: boolean
966
- * Toggles component between active/deactive.
967
- * @param {?} active
968
- * @return {?}
969
- */
970
- function (active) {
971
- this._active = coerceBooleanProperty(active);
972
- this._changeDetectorRef.markForCheck();
973
- },
974
- enumerable: true,
975
- configurable: true
976
- });
977
- /**
978
- * @param {?} click
979
- * @return {?}
980
- */
981
- TdNavStepLinkComponent.prototype._handleClick = /**
982
- * @param {?} click
983
- * @return {?}
984
- */
985
- function (click) {
986
- if (this.disabled) {
987
- click.preventDefault();
988
- click.stopImmediatePropagation();
989
- }
990
- };
991
- TdNavStepLinkComponent.decorators = [
992
- { type: Component, args: [{
993
- selector: '[td-step-link],[tdStepLink]',
994
- template: "<td-step-header\n class=\"td-step-header-wrapper\"\n [tabIndex]=\"-1\"\n [number]=\"number\"\n [active]=\"active\"\n [disableRipple]=\"disableRipple || disabled\"\n [disabled]=\"disabled\"\n [state]=\"state\"\n>\n <ng-template td-step-header-label [ngIf]=\"true\">{{ label }}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]=\"true\">{{ sublabel | truncate: 30 }}</ng-template>\n <ng-content></ng-content>\n</td-step-header>\n",
995
- inputs: ['disabled', 'disableRipple'],
996
- changeDetection: ChangeDetectionStrategy.OnPush,
997
- /* tslint:disable-next-line */
998
- host: {
999
- '[class.td-step-link]': 'true',
1000
- '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',
1001
- '[attr.disabled]': 'disabled || null',
1002
- '[class.mat-disabled]': 'disabled || null',
1003
- '(click)': '_handleClick($event)',
1004
- },
1005
- styles: [":host{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:start;justify-content:flex-start}:host.mat-disabled{pointer-events:none}:host .td-step-header-wrapper{width:100%}"]
1006
- }] }
1007
- ];
1008
- /** @nocollapse */
1009
- TdNavStepLinkComponent.ctorParameters = function () { return [
1010
- { type: ChangeDetectorRef },
1011
- { type: ElementRef }
1012
- ]; };
1013
- TdNavStepLinkComponent.propDecorators = {
1014
- state: [{ type: Input, args: ['state',] }],
1015
- label: [{ type: Input }],
1016
- sublabel: [{ type: Input }],
1017
- active: [{ type: Input, args: ['active',] }],
1018
- tabIndex: [{ type: Input }]
1019
- };
1020
- return TdNavStepLinkComponent;
1021
- }(_TdStepMixinBase));
1022
- if (false) {
1023
- /**
1024
- * @type {?}
1025
- * @private
1026
- */
1027
- TdNavStepLinkComponent.prototype._active;
1028
- /**
1029
- * @type {?}
1030
- * @private
1031
- */
1032
- TdNavStepLinkComponent.prototype._state;
1033
- /** @type {?} */
1034
- TdNavStepLinkComponent.prototype.number;
1035
- /**
1036
- * label?: string
1037
- * Label to display in step header
1038
- * Defaults to empty
1039
- * @type {?}
1040
- */
1041
- TdNavStepLinkComponent.prototype.label;
1042
- /**
1043
- * sublabel?: string
1044
- * Sublabel to display in step header
1045
- * Defaults to empty
1046
- * @type {?}
1047
- */
1048
- TdNavStepLinkComponent.prototype.sublabel;
1049
- /**
1050
- * tabIndex?: number
1051
- * tabIndex for component
1052
- * @type {?}
1053
- */
1054
- TdNavStepLinkComponent.prototype.tabIndex;
1055
- /**
1056
- * @type {?}
1057
- * @private
1058
- */
1059
- TdNavStepLinkComponent.prototype._changeDetectorRef;
1060
- /** @type {?} */
1061
- TdNavStepLinkComponent.prototype.elementRef;
1062
- }
1063
-
1064
- /**
1065
- * @fileoverview added by tsickle
1066
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1067
- */
1068
- var TdNavStepsHorizontalComponent = /** @class */ (function () {
1069
- function TdNavStepsHorizontalComponent(_elementRef, _viewportRuler, _dir, _renderer, _changeDetectorRef) {
1070
- this._elementRef = _elementRef;
1071
- this._viewportRuler = _viewportRuler;
1072
- this._dir = _dir;
1073
- this._renderer = _renderer;
1074
- this._changeDetectorRef = _changeDetectorRef;
1075
- this._separators = [];
1076
- /**
1077
- * Emits when the component is destroyed.
1078
- */
1079
- this._destroyed = new Subject();
1080
- this._widthSubject = new Subject();
1081
- this._scrollDistance = 0;
1082
- this._scrollDistanceChanged = false;
1083
- /**
1084
- * Whether the controls for pagination should be displayed
1085
- */
1086
- this._showPaginationControls = false;
1087
- /**
1088
- * Whether the step list can be scrolled more towards the end.
1089
- */
1090
- this._disableScrollAfter = true;
1091
- /**
1092
- * Whether the step list can be scrolled more towards the beginning.
1093
- */
1094
- this._disableScrollBefore = true;
1095
- }
1096
- Object.defineProperty(TdNavStepsHorizontalComponent.prototype, "nativeElementWidth", {
1097
- /*
1098
- * Current width of the element container
1099
- */
1100
- get: /*
1101
- * Current width of the element container
1102
- */
1103
- /**
1104
- * @return {?}
1105
- */
1106
- function () {
1107
- /** @type {?} */
1108
- var element = (/** @type {?} */ (this._elementRef.nativeElement));
1109
- // Need to take into account border, margin and padding that might be around all the crumbs
1110
- /** @type {?} */
1111
- var style = window.getComputedStyle(element);
1112
- /** @type {?} */
1113
- var borderLeft = parseInt(style.borderLeft, 10);
1114
- /** @type {?} */
1115
- var borderRight = parseInt(style.borderRight, 10);
1116
- /** @type {?} */
1117
- var marginLeft = parseInt(style.marginLeft, 10);
1118
- /** @type {?} */
1119
- var marginRight = parseInt(style.marginRight, 10);
1120
- /** @type {?} */
1121
- var paddingLeft = parseInt(style.paddingLeft, 10);
1122
- /** @type {?} */
1123
- var paddingRight = parseInt(style.paddingRight, 10);
1124
- return (element.getBoundingClientRect().width -
1125
- borderLeft -
1126
- borderRight -
1127
- marginLeft -
1128
- marginRight -
1129
- paddingLeft -
1130
- paddingRight);
1131
- },
1132
- enumerable: true,
1133
- configurable: true
1134
- });
1135
- /**
1136
- * @return {?}
1137
- */
1138
- TdNavStepsHorizontalComponent.prototype.ngAfterContentInit = /**
1139
- * @return {?}
1140
- */
1141
- function () {
1142
- var _this = this;
1143
- merge(this._widthSubject.asObservable().pipe(distinctUntilChanged()), this._viewportRuler.change(150), this._dir ? this._dir.change : of(undefined), this._steps.changes)
1144
- .pipe(takeUntil(this._destroyed))
1145
- .subscribe((/**
1146
- * @return {?}
1147
- */
1148
- function () {
1149
- _this._configureSteps();
1150
- _this.updatePagination();
1151
- _this._changeDetectorRef.markForCheck();
1152
- }));
1153
- this._configureSteps();
1154
- this._changeDetectorRef.markForCheck();
1155
- };
1156
- /**
1157
- * @return {?}
1158
- */
1159
- TdNavStepsHorizontalComponent.prototype.ngAfterContentChecked = /**
1160
- * @return {?}
1161
- */
1162
- function () {
1163
- if (this._elementRef && this._elementRef.nativeElement) {
1164
- this._widthSubject.next(this.nativeElementWidth);
1165
- }
1166
- if (this._scrollDistanceChanged) {
1167
- this._updateStepScrollPosition();
1168
- this._scrollDistanceChanged = false;
1169
- this._changeDetectorRef.markForCheck();
1170
- }
1171
- };
1172
- /**
1173
- * @return {?}
1174
- */
1175
- TdNavStepsHorizontalComponent.prototype.ngOnDestroy = /**
1176
- * @return {?}
1177
- */
1178
- function () {
1179
- this._destroyed.next();
1180
- this._destroyed.complete();
1181
- };
1182
- /**
1183
- * Listen to right and left key events to move the the viewport.
1184
- */
1185
- /**
1186
- * Listen to right and left key events to move the the viewport.
1187
- * @param {?} event
1188
- * @return {?}
1189
- */
1190
- TdNavStepsHorizontalComponent.prototype._handleKeydown = /**
1191
- * Listen to right and left key events to move the the viewport.
1192
- * @param {?} event
1193
- * @return {?}
1194
- */
1195
- function (event) {
1196
- switch (event.keyCode) {
1197
- case LEFT_ARROW:
1198
- this._scrollHeader('before');
1199
- event.preventDefault();
1200
- break;
1201
- case RIGHT_ARROW:
1202
- this._scrollHeader('after');
1203
- event.preventDefault();
1204
- break;
1205
- default:
1206
- // do something
1207
- }
1208
- };
1209
- /**
1210
- * Updates the view whether pagination should be enabled or not.
1211
- */
1212
- /**
1213
- * Updates the view whether pagination should be enabled or not.
1214
- * @return {?}
1215
- */
1216
- TdNavStepsHorizontalComponent.prototype.updatePagination = /**
1217
- * Updates the view whether pagination should be enabled or not.
1218
- * @return {?}
1219
- */
1220
- function () {
1221
- this._checkPaginationEnabled();
1222
- this._checkScrollingControls();
1223
- this._updateStepScrollPosition();
1224
- };
1225
- /** The layout direction of the containing app. */
1226
- /**
1227
- * The layout direction of the containing app.
1228
- * @return {?}
1229
- */
1230
- TdNavStepsHorizontalComponent.prototype._getLayoutDirection = /**
1231
- * The layout direction of the containing app.
1232
- * @return {?}
1233
- */
1234
- function () {
1235
- return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
1236
- };
1237
- /** Performs the CSS transformation on the step list that will cause the list to scroll. */
1238
- /**
1239
- * Performs the CSS transformation on the step list that will cause the list to scroll.
1240
- * @return {?}
1241
- */
1242
- TdNavStepsHorizontalComponent.prototype._updateStepScrollPosition = /**
1243
- * Performs the CSS transformation on the step list that will cause the list to scroll.
1244
- * @return {?}
1245
- */
1246
- function () {
1247
- /** @type {?} */
1248
- var translateX = this._getLayoutDirection() === 'ltr' ? -this.scrollDistance : this.scrollDistance;
1249
- // Move step list the amount of pixels scrolled
1250
- this._stepList.nativeElement.style.transform = "translateX(" + Math.round(translateX) + "px)";
1251
- // Setting the `transform` on IE will change the scroll offset of the parent, causing the
1252
- // position to be thrown off in some cases. We have to reset it ourselves to ensure that
1253
- // it doesn't get thrown off.
1254
- if (this._getLayoutDirection() === 'ltr') {
1255
- this._stepListContainer.nativeElement.scrollLeft = 0;
1256
- }
1257
- else {
1258
- this._stepListContainer.nativeElement.scrollLeft = this._getMaxScrollDistance();
1259
- }
1260
- };
1261
- Object.defineProperty(TdNavStepsHorizontalComponent.prototype, "scrollDistance", {
1262
- /** Sets the distance in pixels that the step header should be transformed in the X-axis. */
1263
- get: /**
1264
- * Sets the distance in pixels that the step header should be transformed in the X-axis.
1265
- * @return {?}
1266
- */
1267
- function () {
1268
- return this._scrollDistance;
1269
- },
1270
- set: /**
1271
- * @param {?} v
1272
- * @return {?}
1273
- */
1274
- function (v) {
1275
- this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));
1276
- // Mark that the scroll distance has changed so that after the view is checked, the CSS
1277
- // transformation can move the header.
1278
- this._scrollDistanceChanged = true;
1279
- this._checkScrollingControls();
1280
- },
1281
- enumerable: true,
1282
- configurable: true
1283
- });
1284
- /**
1285
- * Moves the step list in the 'before' or 'after' direction (towards the beginning of the list or
1286
- * the end of the list, respectively).
1287
- */
1288
- /**
1289
- * Moves the step list in the 'before' or 'after' direction (towards the beginning of the list or
1290
- * the end of the list, respectively).
1291
- * @param {?} scrollDir
1292
- * @return {?}
1293
- */
1294
- TdNavStepsHorizontalComponent.prototype._scrollHeader = /**
1295
- * Moves the step list in the 'before' or 'after' direction (towards the beginning of the list or
1296
- * the end of the list, respectively).
1297
- * @param {?} scrollDir
1298
- * @return {?}
1299
- */
1300
- function (scrollDir) {
1301
- // Move the scroll distance one-half the length of the step list's viewport.
1302
- this.scrollDistance += ((scrollDir === 'before' ? -1 : 1) * this._stepListContainer.nativeElement.offsetWidth) / 2;
1303
- };
1304
- /**
1305
- * Evaluate whether the pagination controls should be displayed. If the scroll width of the
1306
- * step list is wider than the size of the header container, then the pagination controls should
1307
- * be shown.
1308
- */
1309
- /**
1310
- * Evaluate whether the pagination controls should be displayed. If the scroll width of the
1311
- * step list is wider than the size of the header container, then the pagination controls should
1312
- * be shown.
1313
- * @return {?}
1314
- */
1315
- TdNavStepsHorizontalComponent.prototype._checkPaginationEnabled = /**
1316
- * Evaluate whether the pagination controls should be displayed. If the scroll width of the
1317
- * step list is wider than the size of the header container, then the pagination controls should
1318
- * be shown.
1319
- * @return {?}
1320
- */
1321
- function () {
1322
- /** @type {?} */
1323
- var isEnabled = this._stepList.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;
1324
- if (!isEnabled) {
1325
- this.scrollDistance = 0;
1326
- }
1327
- if (isEnabled !== this._showPaginationControls) {
1328
- this._changeDetectorRef.markForCheck();
1329
- }
1330
- this._showPaginationControls = isEnabled;
1331
- };
1332
- /**
1333
- * Evaluate whether the before and after controls should be enabled or disabled.
1334
- * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
1335
- * before button. If the header is at the end of the list (scroll distance is equal to the
1336
- * maximum distance we can scroll), then disable the after button.
1337
- */
1338
- /**
1339
- * Evaluate whether the before and after controls should be enabled or disabled.
1340
- * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
1341
- * before button. If the header is at the end of the list (scroll distance is equal to the
1342
- * maximum distance we can scroll), then disable the after button.
1343
- * @return {?}
1344
- */
1345
- TdNavStepsHorizontalComponent.prototype._checkScrollingControls = /**
1346
- * Evaluate whether the before and after controls should be enabled or disabled.
1347
- * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
1348
- * before button. If the header is at the end of the list (scroll distance is equal to the
1349
- * maximum distance we can scroll), then disable the after button.
1350
- * @return {?}
1351
- */
1352
- function () {
1353
- // Check if the pagination arrows should be activated.
1354
- this._disableScrollBefore = this.scrollDistance === 0;
1355
- this._disableScrollAfter = this.scrollDistance === this._getMaxScrollDistance();
1356
- this._changeDetectorRef.markForCheck();
1357
- };
1358
- /**
1359
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
1360
- * is equal to the difference in width between the step list container and step header container.
1361
- */
1362
- /**
1363
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
1364
- * is equal to the difference in width between the step list container and step header container.
1365
- * @return {?}
1366
- */
1367
- TdNavStepsHorizontalComponent.prototype._getMaxScrollDistance = /**
1368
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
1369
- * is equal to the difference in width between the step list container and step header container.
1370
- * @return {?}
1371
- */
1372
- function () {
1373
- return this._stepList.nativeElement.scrollWidth - this._stepListContainer.nativeElement.offsetWidth || 0;
1374
- };
1375
- /**
1376
- * Set the step line separators and display numbers
1377
- */
1378
- /**
1379
- * Set the step line separators and display numbers
1380
- * @private
1381
- * @return {?}
1382
- */
1383
- TdNavStepsHorizontalComponent.prototype._configureSteps = /**
1384
- * Set the step line separators and display numbers
1385
- * @private
1386
- * @return {?}
1387
- */
1388
- function () {
1389
- var _this = this;
1390
- this._separators.forEach((/**
1391
- * @param {?} separator
1392
- * @return {?}
1393
- */
1394
- function (separator) {
1395
- _this._renderer.removeChild(_this._stepList.nativeElement, separator);
1396
- }));
1397
- /** @type {?} */
1398
- var stepsArray = this._steps.toArray();
1399
- // set the index number of the step so can display that number in circle
1400
- stepsArray.forEach((/**
1401
- * @param {?} step
1402
- * @param {?} index
1403
- * @return {?}
1404
- */
1405
- function (step, index) {
1406
- if (index > 0 && index < stepsArray.length) {
1407
- /** @type {?} */
1408
- var separator = _this._renderer.createElement('div');
1409
- _this._renderer.addClass(separator, 'td-horizontal-line');
1410
- _this._separators.push(separator);
1411
- _this._renderer.insertBefore(_this._stepList.nativeElement, separator, step.elementRef.nativeElement);
1412
- }
1413
- step.number = index + 1;
1414
- }));
1415
- };
1416
- TdNavStepsHorizontalComponent.decorators = [
1417
- { type: Component, args: [{
1418
- selector: 'nav[td-steps][horizontal]',
1419
- template: "<div class=\"td-steps-header\">\n <div\n class=\"td-step-header-pagination td-step-header-pagination-before mat-elevation-z4\"\n aria-hidden=\"true\"\n mat-ripple\n [matRippleDisabled]=\"_disableScrollBefore\"\n [class.td-step-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_scrollHeader('before')\"\n >\n <div class=\"td-step-header-pagination-chevron\"></div>\n </div>\n <div #stepListContainer class=\"td-steps-header-container\" (keydown)=\"_handleKeydown($event)\">\n <div #stepList class=\"td-steps-header-list\">\n <ng-content></ng-content>\n </div>\n </div>\n <div\n class=\"td-step-header-pagination td-step-header-pagination-after mat-elevation-z4\"\n aria-hidden=\"true\"\n mat-ripple\n [matRippleDisabled]=\"_disableScrollAfter\"\n [class.td-step-header-pagination-disabled]=\"_disableScrollAfter\"\n (click)=\"_scrollHeader('after')\"\n >\n <div class=\"td-step-header-pagination-chevron\"></div>\n </div>\n</div>\n",
1420
- changeDetection: ChangeDetectionStrategy.OnPush,
1421
- /* tslint:disable-next-line */
1422
- host: {
1423
- 'class': 'td-steps td-steps-horizontal',
1424
- '[class.td-step-header-pagination-controls-enabled]': '_showPaginationControls',
1425
- '[class.td-step-header-rtl]': "_getLayoutDirection() == 'rtl'",
1426
- },
1427
- styles: [":host{width:100%;display:block}.td-steps-header,.td-steps-header-list{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.td-steps-header-container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;z-index:1}.td-steps-header-list{-ms-flex-positive:1;flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1);-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:start;justify-content:flex-start}.td-step-header-pagination{position:relative;display:none;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}:host.td-step-header-pagination-controls-enabled .td-step-header-pagination{display:-ms-flexbox;display:flex}.td-step-header-pagination-before,:host.td-step-header-rtl .td-step-header-pagination-after{padding-left:4px}.td-step-header-pagination-before .td-step-header-pagination-chevron,:host.td-step-header-rtl .td-step-header-pagination-after .td-step-header-pagination-chevron{-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.td-step-header-pagination-after,:host.td-step-header-rtl .td-step-header-pagination-before{padding-right:4px}.td-step-header-pagination-after .td-step-header-pagination-chevron,:host.td-step-header-rtl .td-step-header-pagination-before .td-step-header-pagination-chevron{-ms-transform:rotate(45deg);transform:rotate(45deg)}.td-step-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.td-step-header-pagination-disabled{box-shadow:none;cursor:default}.td-horizontal-line{border-bottom-width:1px;border-bottom-style:solid;height:1px;min-width:20px;-ms-flex:1;flex:1;box-sizing:border-box}"]
1428
- }] }
1429
- ];
1430
- /** @nocollapse */
1431
- TdNavStepsHorizontalComponent.ctorParameters = function () { return [
1432
- { type: ElementRef },
1433
- { type: ViewportRuler },
1434
- { type: Directionality, decorators: [{ type: Optional }] },
1435
- { type: Renderer2 },
1436
- { type: ChangeDetectorRef }
1437
- ]; };
1438
- TdNavStepsHorizontalComponent.propDecorators = {
1439
- _steps: [{ type: ContentChildren, args: [TdNavStepLinkComponent, { descendants: true },] }],
1440
- _stepListContainer: [{ type: ViewChild, args: ['stepListContainer', { static: true },] }],
1441
- _stepList: [{ type: ViewChild, args: ['stepList', { static: true },] }]
1442
- };
1443
- return TdNavStepsHorizontalComponent;
1444
- }());
1445
- if (false) {
1446
- /**
1447
- * @type {?}
1448
- * @private
1449
- */
1450
- TdNavStepsHorizontalComponent.prototype._separators;
1451
- /**
1452
- * Emits when the component is destroyed.
1453
- * @type {?}
1454
- * @private
1455
- */
1456
- TdNavStepsHorizontalComponent.prototype._destroyed;
1457
- /**
1458
- * @type {?}
1459
- * @private
1460
- */
1461
- TdNavStepsHorizontalComponent.prototype._widthSubject;
1462
- /**
1463
- * @type {?}
1464
- * @private
1465
- */
1466
- TdNavStepsHorizontalComponent.prototype._scrollDistance;
1467
- /**
1468
- * @type {?}
1469
- * @private
1470
- */
1471
- TdNavStepsHorizontalComponent.prototype._scrollDistanceChanged;
1472
- /**
1473
- * Whether the controls for pagination should be displayed
1474
- * @type {?}
1475
- */
1476
- TdNavStepsHorizontalComponent.prototype._showPaginationControls;
1477
- /**
1478
- * Whether the step list can be scrolled more towards the end.
1479
- * @type {?}
1480
- */
1481
- TdNavStepsHorizontalComponent.prototype._disableScrollAfter;
1482
- /**
1483
- * Whether the step list can be scrolled more towards the beginning.
1484
- * @type {?}
1485
- */
1486
- TdNavStepsHorizontalComponent.prototype._disableScrollBefore;
1487
- /** @type {?} */
1488
- TdNavStepsHorizontalComponent.prototype._steps;
1489
- /** @type {?} */
1490
- TdNavStepsHorizontalComponent.prototype._stepListContainer;
1491
- /** @type {?} */
1492
- TdNavStepsHorizontalComponent.prototype._stepList;
1493
- /**
1494
- * @type {?}
1495
- * @private
1496
- */
1497
- TdNavStepsHorizontalComponent.prototype._elementRef;
1498
- /**
1499
- * @type {?}
1500
- * @private
1501
- */
1502
- TdNavStepsHorizontalComponent.prototype._viewportRuler;
1503
- /**
1504
- * @type {?}
1505
- * @private
1506
- */
1507
- TdNavStepsHorizontalComponent.prototype._dir;
1508
- /**
1509
- * @type {?}
1510
- * @private
1511
- */
1512
- TdNavStepsHorizontalComponent.prototype._renderer;
1513
- /**
1514
- * @type {?}
1515
- * @private
1516
- */
1517
- TdNavStepsHorizontalComponent.prototype._changeDetectorRef;
1518
- }
1519
-
1520
- /**
1521
- * @fileoverview added by tsickle
1522
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1523
- */
1524
- var TdNavStepsVerticalComponent = /** @class */ (function () {
1525
- function TdNavStepsVerticalComponent(_renderer, _changeDetectorRef) {
1526
- this._renderer = _renderer;
1527
- this._changeDetectorRef = _changeDetectorRef;
1528
- this._separators = [];
1529
- /**
1530
- * Emits when the component is destroyed.
1531
- */
1532
- this._destroyed = new Subject();
1533
- }
1534
- /**
1535
- * @return {?}
1536
- */
1537
- TdNavStepsVerticalComponent.prototype.ngAfterContentInit = /**
1538
- * @return {?}
1539
- */
1540
- function () {
1541
- var _this = this;
1542
- this._steps.changes.pipe(takeUntil(this._destroyed)).subscribe((/**
1543
- * @return {?}
1544
- */
1545
- function () {
1546
- _this._configureSteps();
1547
- _this._changeDetectorRef.markForCheck();
1548
- }));
1549
- this._configureSteps();
1550
- this._changeDetectorRef.markForCheck();
1551
- };
1552
- /**
1553
- * @return {?}
1554
- */
1555
- TdNavStepsVerticalComponent.prototype.ngOnDestroy = /**
1556
- * @return {?}
1557
- */
1558
- function () {
1559
- this._destroyed.next();
1560
- this._destroyed.complete();
1561
- };
1562
- /**
1563
- * Set the step line separators and display numbers
1564
- */
1565
- /**
1566
- * Set the step line separators and display numbers
1567
- * @private
1568
- * @return {?}
1569
- */
1570
- TdNavStepsVerticalComponent.prototype._configureSteps = /**
1571
- * Set the step line separators and display numbers
1572
- * @private
1573
- * @return {?}
1574
- */
1575
- function () {
1576
- var _this = this;
1577
- this._separators.forEach((/**
1578
- * @param {?} separator
1579
- * @return {?}
1580
- */
1581
- function (separator) {
1582
- _this._renderer.removeChild(_this._stepList.nativeElement, separator);
1583
- }));
1584
- /** @type {?} */
1585
- var stepsArray = this._steps.toArray();
1586
- // set the index number of the step so can display that number in circle
1587
- stepsArray.forEach((/**
1588
- * @param {?} step
1589
- * @param {?} index
1590
- * @return {?}
1591
- */
1592
- function (step, index) {
1593
- if (index > 0 && index < stepsArray.length) {
1594
- /** @type {?} */
1595
- var separator = _this._renderer.createElement('div');
1596
- _this._renderer.addClass(separator, 'td-vertical-line-wrapper');
1597
- /** @type {?} */
1598
- var separatorChild = _this._renderer.createElement('div');
1599
- _this._renderer.addClass(separatorChild, 'td-vertical-line');
1600
- _this._renderer.appendChild(separator, separatorChild);
1601
- _this._separators.push(separator);
1602
- _this._renderer.insertBefore(_this._stepList.nativeElement, separator, step.elementRef.nativeElement);
1603
- }
1604
- step.number = index + 1;
1605
- }));
1606
- };
1607
- TdNavStepsVerticalComponent.decorators = [
1608
- { type: Component, args: [{
1609
- selector: 'nav[td-steps][vertical]',
1610
- template: "<div class=\"td-steps-header\">\n <div class=\"td-steps-header-container\">\n <div #stepList class=\"td-steps-header-list\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n",
1611
- changeDetection: ChangeDetectionStrategy.OnPush,
1612
- /* tslint:disable-next-line */
1613
- host: {
1614
- class: 'td-steps td-steps-vertical',
1615
- },
1616
- styles: [".td-vertical-line-wrapper{position:relative}.td-vertical-line-wrapper .td-vertical-line{position:absolute;top:-16px;height:34px;border-left-width:1px;border-left-style:solid}::ng-deep :not([dir=rtl]) .td-vertical-line-wrapper .td-vertical-line{left:20px;right:auto}::ng-deep [dir=rtl] .td-vertical-line-wrapper .td-vertical-line{left:auto;right:20px}"]
1617
- }] }
1618
- ];
1619
- /** @nocollapse */
1620
- TdNavStepsVerticalComponent.ctorParameters = function () { return [
1621
- { type: Renderer2 },
1622
- { type: ChangeDetectorRef }
1623
- ]; };
1624
- TdNavStepsVerticalComponent.propDecorators = {
1625
- _steps: [{ type: ContentChildren, args: [TdNavStepLinkComponent, { descendants: true },] }],
1626
- _stepList: [{ type: ViewChild, args: ['stepList', { static: true },] }]
1627
- };
1628
- return TdNavStepsVerticalComponent;
1629
- }());
1630
- if (false) {
1631
- /**
1632
- * @type {?}
1633
- * @private
1634
- */
1635
- TdNavStepsVerticalComponent.prototype._separators;
1636
- /**
1637
- * Emits when the component is destroyed.
1638
- * @type {?}
1639
- * @private
1640
- */
1641
- TdNavStepsVerticalComponent.prototype._destroyed;
1642
- /** @type {?} */
1643
- TdNavStepsVerticalComponent.prototype._steps;
1644
- /** @type {?} */
1645
- TdNavStepsVerticalComponent.prototype._stepList;
1646
- /**
1647
- * @type {?}
1648
- * @private
1649
- */
1650
- TdNavStepsVerticalComponent.prototype._renderer;
1651
- /**
1652
- * @type {?}
1653
- * @private
1654
- */
1655
- TdNavStepsVerticalComponent.prototype._changeDetectorRef;
1656
- }
1657
-
1658
- /**
1659
- * @fileoverview added by tsickle
1660
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1661
- */
1662
- /** @type {?} */
1663
- var TD_STEPS = [
1664
- TdStepsComponent,
1665
- TdStepComponent,
1666
- TdStepHeaderComponent,
1667
- TdStepBodyComponent,
1668
- TdStepLabelDirective,
1669
- TdStepActionsDirective,
1670
- TdStepSummaryDirective,
1671
- TdNavStepsHorizontalComponent,
1672
- TdNavStepsVerticalComponent,
1673
- TdNavStepLinkComponent,
1674
- ];
1675
- var CovalentStepsModule = /** @class */ (function () {
1676
- function CovalentStepsModule() {
1677
- }
1678
- CovalentStepsModule.decorators = [
1679
- { type: NgModule, args: [{
1680
- imports: [CommonModule, MatIconModule, MatRippleModule, PortalModule, ScrollingModule, CovalentCommonModule],
1681
- declarations: [TD_STEPS],
1682
- exports: [TD_STEPS],
1683
- },] }
1684
- ];
1685
- return CovalentStepsModule;
1686
- }());
1687
-
1688
- /**
1689
- * @fileoverview added by tsickle
1690
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1691
- */
1692
-
1693
- /**
1694
- * @fileoverview added by tsickle
1695
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1696
- */
1697
-
1698
- /**
1699
- * @fileoverview added by tsickle
1700
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1701
- */
1702
-
1703
- export { CovalentStepsModule, StepMode, StepState, TdNavStepLinkComponent, TdNavStepsHorizontalComponent, TdNavStepsVerticalComponent, TdStepActionsDirective, TdStepBase, TdStepBodyComponent, TdStepComponent, TdStepHeaderBase, TdStepHeaderComponent, TdStepLabelDirective, TdStepSummaryDirective, TdStepsComponent, _TdStepHeaderMixinBase, _TdStepMixinBase };
1704
- //# sourceMappingURL=covalent-core-steps.js.map