@covalent/core 4.0.0-alpha.0 → 4.0.0-beta.1

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 (545) hide show
  1. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -0
  2. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +3 -0
  3. package/breadcrumbs/breadcrumbs.component.d.ts +3 -0
  4. package/breadcrumbs/breadcrumbs.component.scss +1 -0
  5. package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  6. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -0
  7. package/breadcrumbs/package.json +6 -7
  8. package/common/_common-theme.scss +2 -0
  9. package/common/common.module.d.ts +15 -0
  10. package/common/covalent-core-common.d.ts +1 -2
  11. package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
  12. package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
  13. package/common/material-icons.css +31 -18
  14. package/common/material-icons.css.map +1 -1
  15. package/common/package.json +6 -7
  16. package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
  17. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
  18. package/common/pipes/digits/digits.pipe.d.ts +3 -0
  19. package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
  20. package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
  21. package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
  22. package/common/pipes/truncate/truncate.pipe.d.ts +3 -0
  23. package/common/platform.css +11828 -10433
  24. package/common/platform.css.map +1 -1
  25. package/common/services/icon.service.d.ts +3 -0
  26. package/common/services/router-path.service.d.ts +3 -0
  27. package/common/styles/_layout.scss +12 -10
  28. package/common/styles/_palette-dark.scss +2 -2
  29. package/common/styles/_palette-light.scss +6 -6
  30. package/common/styles/_rtl.scss +3 -0
  31. package/common/styles/_variables.scss +5 -5
  32. package/common/styles/colors/_colors-dark.scss +327 -0
  33. package/common/styles/colors/_colors-light.scss +748 -0
  34. package/common/styles/core/_button.scss +2 -1
  35. package/common/styles/core/_card.scss +27 -7
  36. package/common/styles/core/_content.scss +2 -1
  37. package/common/styles/core/_divider.scss +1 -0
  38. package/common/styles/core/_icons.scss +2 -0
  39. package/common/styles/core/_sidenav.scss +2 -0
  40. package/common/styles/core/_structure.scss +6 -7
  41. package/common/styles/core/_toolbar.scss +7 -0
  42. package/common/styles/core/_whiteframe.scss +2 -2
  43. package/common/styles/font/_font.scss +10 -4
  44. package/common/styles/utilities/_general.scss +14 -0
  45. package/common/styles/utilities/_text.scss +21 -0
  46. package/covalent-core.d.ts +1 -0
  47. package/dialogs/_dialog-theme.scss +1 -0
  48. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -0
  49. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +3 -0
  50. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  51. package/dialogs/dialog.component.d.ts +9 -0
  52. package/dialogs/dialog.component.scss +5 -0
  53. package/dialogs/dialogs.module.d.ts +17 -0
  54. package/dialogs/package.json +6 -7
  55. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -0
  56. package/dialogs/prompt-dialog/prompt-dialog.component.scss +1 -0
  57. package/dialogs/public-api.d.ts +1 -0
  58. package/dialogs/services/dialog.service.d.ts +3 -0
  59. package/dialogs/window-dialog/window-dialog.component.d.ts +3 -0
  60. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  61. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +3 -0
  62. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +1 -0
  63. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +3 -0
  64. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +3 -1
  65. package/dynamic-menu/dynamic-menu.component.d.ts +3 -0
  66. package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
  67. package/dynamic-menu/package.json +6 -7
  68. package/dynamic-menu/public_api.d.ts +1 -0
  69. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +108 -0
  70. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +139 -0
  71. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +21 -0
  72. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
  73. package/esm2020/breadcrumbs/index.mjs +2 -0
  74. package/esm2020/breadcrumbs/public-api.mjs +4 -0
  75. package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
  76. package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
  77. package/esm2020/common/animations/common/interfaces.mjs +2 -0
  78. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
  79. package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
  80. package/esm2020/common/animations/headshake/headshake.animation.mjs +35 -0
  81. package/esm2020/common/animations/jello/jello.animation.mjs +38 -0
  82. package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
  83. package/esm2020/common/animations/rotate/rotate.animation.mjs +25 -0
  84. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +39 -0
  85. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  86. package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
  87. package/esm2020/common/common.module.mjs +64 -0
  88. package/esm2020/common/covalent-core-common.mjs +5 -0
  89. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  90. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  91. package/esm2020/common/forms/validators/validators.mjs +29 -0
  92. package/{esm2015/common/functions/clipboard.js → esm2020/common/functions/clipboard.mjs} +3 -10
  93. package/esm2020/common/functions/convert.mjs +84 -0
  94. package/esm2020/common/functions/download.mjs +75 -0
  95. package/esm2020/common/functions/file.mjs +16 -0
  96. package/esm2020/common/index.mjs +2 -0
  97. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +32 -0
  98. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +32 -0
  99. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  100. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
  101. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
  102. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
  103. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  104. package/esm2020/common/public-api.mjs +39 -0
  105. package/esm2020/common/services/icon.service.mjs +1089 -0
  106. package/esm2020/common/services/router-path.service.mjs +29 -0
  107. package/esm2020/covalent-core.mjs +5 -0
  108. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +54 -0
  109. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +68 -0
  110. package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
  111. package/esm2020/dialogs/dialog.component.mjs +97 -0
  112. package/esm2020/dialogs/dialogs.module.mjs +86 -0
  113. package/esm2020/dialogs/index.mjs +2 -0
  114. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +104 -0
  115. package/esm2020/dialogs/public-api.mjs +9 -0
  116. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +199 -0
  117. package/esm2020/dialogs/services/dialog.service.mjs +168 -0
  118. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +69 -0
  119. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
  120. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +147 -0
  121. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +113 -0
  122. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +111 -0
  123. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +32 -0
  124. package/esm2020/dynamic-menu/index.mjs +2 -0
  125. package/esm2020/dynamic-menu/public_api.mjs +5 -0
  126. package/esm2020/file/covalent-core-file.mjs +5 -0
  127. package/esm2020/file/directives/file-drop.directive.mjs +148 -0
  128. package/esm2020/file/directives/file-select.directive.mjs +76 -0
  129. package/esm2020/file/file-input/file-input.component.mjs +137 -0
  130. package/esm2020/file/file-upload/file-upload.component.mjs +210 -0
  131. package/esm2020/file/file.module.mjs +43 -0
  132. package/esm2020/file/index.mjs +2 -0
  133. package/esm2020/file/public-api.mjs +7 -0
  134. package/esm2020/file/services/file.service.mjs +62 -0
  135. package/esm2020/index.mjs +2 -0
  136. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
  137. package/esm2020/json-formatter/index.mjs +2 -0
  138. package/esm2020/json-formatter/json-formatter.component.mjs +302 -0
  139. package/esm2020/json-formatter/json-formatter.module.mjs +21 -0
  140. package/esm2020/json-formatter/public-api.mjs +3 -0
  141. package/esm2020/layout/covalent-core-layout.mjs +5 -0
  142. package/esm2020/layout/index.mjs +2 -0
  143. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +87 -0
  144. package/esm2020/layout/layout-footer/layout-footer.component.mjs +38 -0
  145. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +122 -0
  146. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +90 -0
  147. package/esm2020/layout/layout-nav/layout-nav.component.mjs +112 -0
  148. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +215 -0
  149. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +90 -0
  150. package/esm2020/layout/layout-toggle.class.mjs +95 -0
  151. package/esm2020/layout/layout.component.mjs +113 -0
  152. package/esm2020/layout/layout.directives.mjs +87 -0
  153. package/esm2020/layout/layout.module.mjs +118 -0
  154. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +306 -0
  155. package/esm2020/layout/public-api.mjs +13 -0
  156. package/esm2020/menu/covalent-core-menu.mjs +5 -0
  157. package/esm2020/menu/index.mjs +2 -0
  158. package/esm2020/menu/menu.component.mjs +23 -0
  159. package/esm2020/menu/menu.module.mjs +22 -0
  160. package/esm2020/menu/public-api.mjs +3 -0
  161. package/esm2020/message/covalent-core-message.mjs +5 -0
  162. package/esm2020/message/index.mjs +2 -0
  163. package/esm2020/message/message.component.mjs +261 -0
  164. package/esm2020/message/message.module.mjs +21 -0
  165. package/esm2020/message/public-api.mjs +3 -0
  166. package/esm2020/search/covalent-core-search.mjs +5 -0
  167. package/esm2020/search/index.mjs +2 -0
  168. package/esm2020/search/public-api.mjs +4 -0
  169. package/esm2020/search/search-box/search-box.component.mjs +220 -0
  170. package/esm2020/search/search-input/search-input.component.mjs +240 -0
  171. package/esm2020/search/search.module.mjs +24 -0
  172. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
  173. package/esm2020/side-sheet/index.mjs +2 -0
  174. package/esm2020/side-sheet/public-api.mjs +6 -0
  175. package/esm2020/side-sheet/side-sheet-container.mjs +242 -0
  176. package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
  177. package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
  178. package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
  179. package/esm2020/side-sheet/side-sheet.content-directives.mjs +178 -0
  180. package/esm2020/side-sheet/side-sheet.mjs +208 -0
  181. package/esm2020/side-sheet/side-sheet.module.mjs +46 -0
  182. package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
  183. package/esm2020/user-profile/index.mjs +2 -0
  184. package/esm2020/user-profile/public_api.mjs +4 -0
  185. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +75 -0
  186. package/esm2020/user-profile/user-profile.component.mjs +41 -0
  187. package/esm2020/user-profile/user-profile.module.mjs +26 -0
  188. package/fesm2015/covalent-core-breadcrumbs.mjs +287 -0
  189. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
  190. package/fesm2015/covalent-core-common.mjs +2251 -0
  191. package/fesm2015/covalent-core-common.mjs.map +1 -0
  192. package/fesm2015/covalent-core-dialogs.mjs +872 -0
  193. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  194. package/fesm2015/covalent-core-dynamic-menu.mjs +480 -0
  195. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  196. package/fesm2015/covalent-core-file.mjs +698 -0
  197. package/fesm2015/covalent-core-file.mjs.map +1 -0
  198. package/fesm2015/covalent-core-json-formatter.mjs +353 -0
  199. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  200. package/fesm2015/covalent-core-layout.mjs +1577 -0
  201. package/fesm2015/covalent-core-layout.mjs.map +1 -0
  202. package/fesm2015/covalent-core-menu.mjs +55 -0
  203. package/fesm2015/covalent-core-menu.mjs.map +1 -0
  204. package/fesm2015/covalent-core-message.mjs +309 -0
  205. package/fesm2015/covalent-core-message.mjs.map +1 -0
  206. package/fesm2015/covalent-core-search.mjs +508 -0
  207. package/fesm2015/covalent-core-search.mjs.map +1 -0
  208. package/fesm2015/covalent-core-side-sheet.mjs +733 -0
  209. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  210. package/fesm2015/covalent-core-user-profile.mjs +162 -0
  211. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  212. package/fesm2015/covalent-core.mjs +4 -0
  213. package/fesm2015/covalent-core.mjs.map +1 -0
  214. package/fesm2020/covalent-core-breadcrumbs.mjs +268 -0
  215. package/{fesm2015/covalent-core-breadcrumbs.js.map → fesm2020/covalent-core-breadcrumbs.mjs.map} +1 -1
  216. package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +213 -768
  217. package/fesm2020/covalent-core-common.mjs.map +1 -0
  218. package/fesm2020/covalent-core-dialogs.mjs +812 -0
  219. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  220. package/fesm2020/covalent-core-dynamic-menu.mjs +393 -0
  221. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
  222. package/fesm2020/covalent-core-file.mjs +651 -0
  223. package/fesm2020/covalent-core-file.mjs.map +1 -0
  224. package/fesm2020/covalent-core-json-formatter.mjs +326 -0
  225. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
  226. package/fesm2020/covalent-core-layout.mjs +1414 -0
  227. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  228. package/fesm2020/covalent-core-menu.mjs +49 -0
  229. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  230. package/fesm2020/covalent-core-message.mjs +286 -0
  231. package/fesm2020/covalent-core-message.mjs.map +1 -0
  232. package/fesm2020/covalent-core-search.mjs +473 -0
  233. package/fesm2020/covalent-core-search.mjs.map +1 -0
  234. package/{fesm2015/covalent-core-side-sheet.js → fesm2020/covalent-core-side-sheet.mjs} +202 -646
  235. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
  236. package/fesm2020/covalent-core-user-profile.mjs +141 -0
  237. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  238. package/fesm2020/covalent-core.mjs +4 -0
  239. package/fesm2020/covalent-core.mjs.map +1 -0
  240. package/file/_file-theme.scss +1 -0
  241. package/file/covalent-core-file.d.ts +1 -0
  242. package/file/directives/file-drop.directive.d.ts +3 -0
  243. package/file/directives/file-select.directive.d.ts +3 -0
  244. package/file/file-input/file-input.component.d.ts +5 -0
  245. package/file/file-input/file-input.component.scss +2 -0
  246. package/file/file-upload/file-upload.component.d.ts +3 -0
  247. package/file/file-upload/file-upload.component.scss +4 -0
  248. package/file/file.module.d.ts +13 -0
  249. package/file/package.json +6 -7
  250. package/file/services/file.service.d.ts +3 -0
  251. package/json-formatter/_json-formatter-theme.scss +10 -0
  252. package/json-formatter/covalent-core-json-formatter.d.ts +1 -0
  253. package/json-formatter/json-formatter.component.d.ts +3 -0
  254. package/json-formatter/json-formatter.component.scss +13 -0
  255. package/json-formatter/json-formatter.module.d.ts +8 -0
  256. package/json-formatter/package.json +6 -7
  257. package/layout/_layout-theme.scss +12 -0
  258. package/layout/covalent-core-layout.d.ts +1 -0
  259. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -0
  260. package/layout/layout-card-over/layout-card-over.component.scss +3 -0
  261. package/layout/layout-footer/layout-footer.component.d.ts +3 -0
  262. package/layout/layout-manage-list/layout-manage-list.component.d.ts +3 -0
  263. package/layout/layout-manage-list/layout-manage-list.component.scss +9 -5
  264. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +7 -0
  265. package/layout/layout-nav/layout-nav.component.d.ts +3 -0
  266. package/layout/layout-nav/layout-nav.component.scss +4 -0
  267. package/layout/layout-nav-list/layout-nav-list.component.d.ts +3 -0
  268. package/layout/layout-nav-list/layout-nav-list.component.scss +9 -4
  269. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +7 -0
  270. package/layout/layout-toggle.class.d.ts +3 -0
  271. package/layout/layout.component.d.ts +3 -0
  272. package/layout/layout.component.scss +0 -4
  273. package/layout/layout.directives.d.ts +7 -0
  274. package/layout/layout.module.d.ts +23 -0
  275. package/layout/navigation-drawer/navigation-drawer.component.d.ts +7 -0
  276. package/layout/navigation-drawer/navigation-drawer.component.scss +8 -0
  277. package/layout/package.json +6 -7
  278. package/menu/covalent-core-menu.d.ts +1 -0
  279. package/menu/menu.component.d.ts +3 -0
  280. package/menu/menu.component.scss +9 -1
  281. package/menu/menu.module.d.ts +8 -0
  282. package/menu/package.json +6 -7
  283. package/message/_message-theme.scss +3 -0
  284. package/message/covalent-core-message.d.ts +1 -0
  285. package/message/message.component.d.ts +5 -0
  286. package/message/message.component.scss +3 -0
  287. package/message/message.module.d.ts +7 -0
  288. package/message/package.json +6 -7
  289. package/package.json +126 -15
  290. package/search/covalent-core-search.d.ts +1 -0
  291. package/search/package.json +6 -7
  292. package/search/search-box/search-box.component.d.ts +3 -0
  293. package/search/search-box/search-box.component.scss +5 -0
  294. package/search/search-input/search-input.component.d.ts +3 -0
  295. package/search/search-input/search-input.component.scss +12 -0
  296. package/search/search.module.d.ts +11 -0
  297. package/side-sheet/covalent-core-side-sheet.d.ts +1 -2
  298. package/side-sheet/package.json +6 -7
  299. package/side-sheet/side-sheet-container.d.ts +5 -0
  300. package/side-sheet/side-sheet.content-directives.d.ts +11 -0
  301. package/side-sheet/side-sheet.d.ts +5 -0
  302. package/side-sheet/side-sheet.module.d.ts +9 -0
  303. package/side-sheet/side-sheet.scss +1 -2
  304. package/theming/prebuilt/blue-grey-deep-orange.css +1714 -1333
  305. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  306. package/theming/prebuilt/blue-grey-deep-orange.scss +15 -8
  307. package/theming/prebuilt/blue-orange.css +1714 -1333
  308. package/theming/prebuilt/blue-orange.css.map +1 -1
  309. package/theming/prebuilt/blue-orange.scss +15 -8
  310. package/theming/prebuilt/indigo-pink.css +1714 -1333
  311. package/theming/prebuilt/indigo-pink.css.map +1 -1
  312. package/theming/prebuilt/indigo-pink.scss +15 -8
  313. package/theming/prebuilt/orange-light-blue.css +1714 -1333
  314. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  315. package/theming/prebuilt/orange-light-blue.scss +15 -8
  316. package/theming/prebuilt/teal-orange.css +1714 -1333
  317. package/theming/prebuilt/teal-orange.css.map +1 -1
  318. package/theming/prebuilt/teal-orange.scss +15 -8
  319. package/user-profile/covalent-core-user-profile.d.ts +1 -0
  320. package/user-profile/package.json +6 -7
  321. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +3 -0
  322. package/user-profile/user-profile-menu/user-profile-menu.component.scss +3 -0
  323. package/user-profile/user-profile.component.d.ts +3 -0
  324. package/user-profile/user-profile.module.d.ts +12 -0
  325. package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
  326. package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
  327. package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
  328. package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
  329. package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
  330. package/bundles/covalent-core-common.umd.js +0 -3188
  331. package/bundles/covalent-core-common.umd.js.map +0 -1
  332. package/bundles/covalent-core-common.umd.min.js +0 -17
  333. package/bundles/covalent-core-common.umd.min.js.map +0 -1
  334. package/bundles/covalent-core-dialogs.umd.js +0 -1318
  335. package/bundles/covalent-core-dialogs.umd.js.map +0 -1
  336. package/bundles/covalent-core-dialogs.umd.min.js +0 -2
  337. package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
  338. package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
  339. package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
  340. package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
  341. package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
  342. package/bundles/covalent-core-file.umd.js +0 -1211
  343. package/bundles/covalent-core-file.umd.js.map +0 -1
  344. package/bundles/covalent-core-file.umd.min.js +0 -17
  345. package/bundles/covalent-core-file.umd.min.js.map +0 -1
  346. package/bundles/covalent-core-json-formatter.umd.js +0 -408
  347. package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
  348. package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
  349. package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
  350. package/bundles/covalent-core-layout.umd.js +0 -2084
  351. package/bundles/covalent-core-layout.umd.js.map +0 -1
  352. package/bundles/covalent-core-layout.umd.min.js +0 -17
  353. package/bundles/covalent-core-layout.umd.min.js.map +0 -1
  354. package/bundles/covalent-core-menu.umd.js +0 -69
  355. package/bundles/covalent-core-menu.umd.js.map +0 -1
  356. package/bundles/covalent-core-menu.umd.min.js +0 -2
  357. package/bundles/covalent-core-menu.umd.min.js.map +0 -1
  358. package/bundles/covalent-core-message.umd.js +0 -375
  359. package/bundles/covalent-core-message.umd.js.map +0 -1
  360. package/bundles/covalent-core-message.umd.min.js +0 -2
  361. package/bundles/covalent-core-message.umd.min.js.map +0 -1
  362. package/bundles/covalent-core-search.umd.js +0 -877
  363. package/bundles/covalent-core-search.umd.js.map +0 -1
  364. package/bundles/covalent-core-search.umd.min.js +0 -16
  365. package/bundles/covalent-core-search.umd.min.js.map +0 -1
  366. package/bundles/covalent-core-side-sheet.umd.js +0 -1458
  367. package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
  368. package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
  369. package/bundles/covalent-core-side-sheet.umd.min.js.map +0 -1
  370. package/bundles/covalent-core-user-profile.umd.js +0 -116
  371. package/bundles/covalent-core-user-profile.umd.js.map +0 -1
  372. package/bundles/covalent-core-user-profile.umd.min.js +0 -2
  373. package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
  374. package/bundles/covalent-core.umd.js +0 -9
  375. package/bundles/covalent-core.umd.js.map +0 -1
  376. package/bundles/covalent-core.umd.min.js +0 -2
  377. package/bundles/covalent-core.umd.min.js.map +0 -1
  378. package/common/covalent-core-common.metadata.json +0 -1
  379. package/covalent-core.metadata.json +0 -1
  380. package/dialogs/covalent-core-dialogs.metadata.json +0 -1
  381. package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
  382. package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
  383. package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
  384. package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
  385. package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
  386. package/esm2015/breadcrumbs/index.js +0 -7
  387. package/esm2015/breadcrumbs/public-api.js +0 -9
  388. package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
  389. package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
  390. package/esm2015/common/animations/common/interfaces.js +0 -18
  391. package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
  392. package/esm2015/common/animations/flash/flash.animation.js +0 -40
  393. package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
  394. package/esm2015/common/animations/jello/jello.animation.js +0 -44
  395. package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
  396. package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
  397. package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
  398. package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
  399. package/esm2015/common/behaviors/disabled.mixin.js +0 -63
  400. package/esm2015/common/common.module.js +0 -54
  401. package/esm2015/common/covalent-core-common.js +0 -12
  402. package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
  403. package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
  404. package/esm2015/common/forms/validators/validators.js +0 -58
  405. package/esm2015/common/functions/convert.js +0 -103
  406. package/esm2015/common/functions/download.js +0 -88
  407. package/esm2015/common/functions/file.js +0 -29
  408. package/esm2015/common/index.js +0 -7
  409. package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
  410. package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
  411. package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
  412. package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
  413. package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
  414. package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
  415. package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
  416. package/esm2015/common/public-api.js +0 -44
  417. package/esm2015/common/services/icon.service.js +0 -1109
  418. package/esm2015/common/services/router-path.service.js +0 -60
  419. package/esm2015/covalent-core.js +0 -10
  420. package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
  421. package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
  422. package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
  423. package/esm2015/dialogs/dialog.component.js +0 -58
  424. package/esm2015/dialogs/dialogs.module.js +0 -57
  425. package/esm2015/dialogs/index.js +0 -7
  426. package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
  427. package/esm2015/dialogs/public-api.js +0 -13
  428. package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
  429. package/esm2015/dialogs/services/dialog.service.js +0 -316
  430. package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
  431. package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
  432. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
  433. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
  434. package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
  435. package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
  436. package/esm2015/dynamic-menu/index.js +0 -7
  437. package/esm2015/dynamic-menu/public_api.js +0 -9
  438. package/esm2015/file/covalent-core-file.js +0 -10
  439. package/esm2015/file/directives/file-drop.directive.js +0 -191
  440. package/esm2015/file/directives/file-select.directive.js +0 -98
  441. package/esm2015/file/file-input/file-input.component.js +0 -186
  442. package/esm2015/file/file-upload/file-upload.component.js +0 -237
  443. package/esm2015/file/file.module.js +0 -35
  444. package/esm2015/file/index.js +0 -7
  445. package/esm2015/file/public-api.js +0 -12
  446. package/esm2015/file/services/file.service.js +0 -109
  447. package/esm2015/index.js +0 -7
  448. package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
  449. package/esm2015/json-formatter/index.js +0 -7
  450. package/esm2015/json-formatter/json-formatter.component.js +0 -338
  451. package/esm2015/json-formatter/json-formatter.module.js +0 -20
  452. package/esm2015/json-formatter/public-api.js +0 -8
  453. package/esm2015/layout/covalent-core-layout.js +0 -10
  454. package/esm2015/layout/index.js +0 -7
  455. package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
  456. package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
  457. package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
  458. package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
  459. package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
  460. package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
  461. package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
  462. package/esm2015/layout/layout-toggle.class.js +0 -188
  463. package/esm2015/layout/layout.component.js +0 -145
  464. package/esm2015/layout/layout.directives.js +0 -129
  465. package/esm2015/layout/layout.module.js +0 -64
  466. package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
  467. package/esm2015/layout/public-api.js +0 -18
  468. package/esm2015/menu/covalent-core-menu.js +0 -10
  469. package/esm2015/menu/index.js +0 -7
  470. package/esm2015/menu/menu.component.js +0 -16
  471. package/esm2015/menu/menu.module.js +0 -22
  472. package/esm2015/menu/public-api.js +0 -8
  473. package/esm2015/message/covalent-core-message.js +0 -10
  474. package/esm2015/message/index.js +0 -7
  475. package/esm2015/message/message.component.js +0 -307
  476. package/esm2015/message/message.module.js +0 -21
  477. package/esm2015/message/public-api.js +0 -8
  478. package/esm2015/search/covalent-core-search.js +0 -10
  479. package/esm2015/search/index.js +0 -7
  480. package/esm2015/search/public-api.js +0 -9
  481. package/esm2015/search/search-box/search-box.component.js +0 -270
  482. package/esm2015/search/search-input/search-input.component.js +0 -260
  483. package/esm2015/search/search.module.js +0 -23
  484. package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
  485. package/esm2015/side-sheet/index.js +0 -7
  486. package/esm2015/side-sheet/public-api.js +0 -11
  487. package/esm2015/side-sheet/side-sheet-container.js +0 -402
  488. package/esm2015/side-sheet/side-sheet-ref.js +0 -50
  489. package/esm2015/side-sheet/side-sheet.animation.js +0 -20
  490. package/esm2015/side-sheet/side-sheet.config.js +0 -12
  491. package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
  492. package/esm2015/side-sheet/side-sheet.js +0 -360
  493. package/esm2015/side-sheet/side-sheet.module.js +0 -36
  494. package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
  495. package/esm2015/user-profile/index.js +0 -7
  496. package/esm2015/user-profile/public_api.js +0 -9
  497. package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
  498. package/esm2015/user-profile/user-profile.component.js +0 -26
  499. package/esm2015/user-profile/user-profile.module.js +0 -25
  500. package/fesm2015/covalent-core-breadcrumbs.js +0 -448
  501. package/fesm2015/covalent-core-common.js.map +0 -1
  502. package/fesm2015/covalent-core-dialogs.js +0 -1001
  503. package/fesm2015/covalent-core-dialogs.js.map +0 -1
  504. package/fesm2015/covalent-core-dynamic-menu.js +0 -204
  505. package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
  506. package/fesm2015/covalent-core-file.js +0 -855
  507. package/fesm2015/covalent-core-file.js.map +0 -1
  508. package/fesm2015/covalent-core-json-formatter.js +0 -377
  509. package/fesm2015/covalent-core-json-formatter.js.map +0 -1
  510. package/fesm2015/covalent-core-layout.js +0 -1663
  511. package/fesm2015/covalent-core-layout.js.map +0 -1
  512. package/fesm2015/covalent-core-menu.js +0 -57
  513. package/fesm2015/covalent-core-menu.js.map +0 -1
  514. package/fesm2015/covalent-core-message.js +0 -347
  515. package/fesm2015/covalent-core-message.js.map +0 -1
  516. package/fesm2015/covalent-core-search.js +0 -564
  517. package/fesm2015/covalent-core-search.js.map +0 -1
  518. package/fesm2015/covalent-core-side-sheet.js.map +0 -1
  519. package/fesm2015/covalent-core-user-profile.js +0 -103
  520. package/fesm2015/covalent-core-user-profile.js.map +0 -1
  521. package/fesm2015/covalent-core.js +0 -12
  522. package/fesm2015/covalent-core.js.map +0 -1
  523. package/file/covalent-core-file.metadata.json +0 -1
  524. package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
  525. package/layout/covalent-core-layout.metadata.json +0 -1
  526. package/menu/covalent-core-menu.metadata.json +0 -1
  527. package/message/covalent-core-message.metadata.json +0 -1
  528. package/schematics/collection.json +0 -11
  529. package/schematics/components.js +0 -111
  530. package/schematics/components.js.map +0 -1
  531. package/schematics/migration.json +0 -10
  532. package/schematics/ng-add/index.js +0 -58
  533. package/schematics/ng-add/index.js.map +0 -1
  534. package/schematics/ng-add/schema.js +0 -3
  535. package/schematics/ng-add/schema.js.map +0 -1
  536. package/schematics/ng-add/schema.json +0 -81
  537. package/schematics/ng-update/index.js +0 -52
  538. package/schematics/ng-update/index.js.map +0 -1
  539. package/schematics/ng-update/target-version.js +0 -8
  540. package/schematics/ng-update/target-version.js.map +0 -1
  541. package/schematics/version-names.js +0 -6
  542. package/schematics/version-names.js.map +0 -1
  543. package/search/covalent-core-search.metadata.json +0 -1
  544. package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
  545. package/user-profile/covalent-core-user-profile.metadata.json +0 -1
@@ -0,0 +1,1414 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewChild, Input, Directive, HostListener, forwardRef, Optional, Inject, SecurityContext, ContentChildren, NgModule } from '@angular/core';
3
+ import * as i3$1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i5$1 from '@angular/cdk/scrolling';
6
+ import { ScrollingModule } from '@angular/cdk/scrolling';
7
+ import * as i1 from '@angular/material/sidenav';
8
+ import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
9
+ import * as i3 from '@angular/material/toolbar';
10
+ import { MatToolbarModule } from '@angular/material/toolbar';
11
+ import * as i6 from '@angular/material/button';
12
+ import { MatButtonModule } from '@angular/material/button';
13
+ import * as i5 from '@angular/material/icon';
14
+ import { MatIconModule } from '@angular/material/icon';
15
+ import * as i2 from '@angular/material/card';
16
+ import { MatCardModule } from '@angular/material/card';
17
+ import * as i4 from '@angular/material/divider';
18
+ import { MatDividerModule } from '@angular/material/divider';
19
+ import { CovalentMenuModule } from '@covalent/core/menu';
20
+ import { mixinDisabled, tdCollapseAnimation } from '@covalent/core/common';
21
+ import * as i1$1 from '@angular/router';
22
+ import * as i2$1 from '@angular/platform-browser';
23
+
24
+ const _c0$6 = [[["td-navigation-drawer"]], [["", "td-sidenav-content", ""]], "*"];
25
+ const _c1$5 = ["td-navigation-drawer", "[td-sidenav-content]", "*"];
26
+ class TdLayoutComponent {
27
+ constructor() {
28
+ /**
29
+ * mode?: 'side', 'push' or 'over'
30
+ *
31
+ * The mode or styling of the sidenav.
32
+ * Defaults to "over".
33
+ * See "MatSidenav" documentation for more info.
34
+ *
35
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
36
+ */
37
+ this.mode = 'over';
38
+ /**
39
+ * opened?: boolean
40
+ *
41
+ * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
42
+ * Defaults to "false".
43
+ *
44
+ * See "MatSidenav" documentation for more info.
45
+ *
46
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
47
+ */
48
+ this.opened = false;
49
+ /**
50
+ * sidenavWidth?: string
51
+ *
52
+ * Sets the "width" of the sidenav in either "px" or "%"
53
+ * Defaults to "320px".
54
+ *
55
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
56
+ */
57
+ this.sidenavWidth = '320px';
58
+ /**
59
+ * containerAutosize?: boolean
60
+ *
61
+ * Sets "autosize" of the sidenav-container.
62
+ * Defaults to "false".
63
+ *
64
+ * See documentation for more info and potential performance risks.
65
+ *
66
+ * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
67
+ */
68
+ this.containerAutosize = false;
69
+ }
70
+ /**
71
+ * Checks if `ESC` should close the sidenav
72
+ * Should only close it for `push` and `over` modes
73
+ */
74
+ get disableClose() {
75
+ return this.mode === 'side';
76
+ }
77
+ /**
78
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
79
+ */
80
+ toggle() {
81
+ return this.sidenav.toggle(!this.sidenav.opened);
82
+ }
83
+ /**
84
+ * Proxy open method to access sidenav from outside (from td-layout template).
85
+ */
86
+ open() {
87
+ return this.sidenav.open();
88
+ }
89
+ /**
90
+ * Proxy close method to access sidenav from outside (from td-layout template).
91
+ */
92
+ close() {
93
+ return this.sidenav.close();
94
+ }
95
+ }
96
+ /** @nocollapse */ /** @nocollapse */ TdLayoutComponent.ɵfac = function TdLayoutComponent_Factory(t) { return new (t || TdLayoutComponent)(); };
97
+ /** @nocollapse */ /** @nocollapse */ TdLayoutComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutComponent, selectors: [["td-layout"]], viewQuery: function TdLayoutComponent_Query(rf, ctx) { if (rf & 1) {
98
+ i0.ɵɵviewQuery(MatSidenav, 7);
99
+ } if (rf & 2) {
100
+ let _t;
101
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
102
+ } }, inputs: { mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize" }, ngContentSelectors: _c1$5, decls: 6, vars: 8, consts: [["fullscreen", "", 3, "autosize"], [1, "td-layout-sidenav", 3, "mode", "opened", "disableClose"], ["sidenav", ""]], template: function TdLayoutComponent_Template(rf, ctx) { if (rf & 1) {
103
+ i0.ɵɵprojectionDef(_c0$6);
104
+ i0.ɵɵelementStart(0, "mat-sidenav-container", 0);
105
+ i0.ɵɵelementStart(1, "mat-sidenav", 1, 2);
106
+ i0.ɵɵprojection(3);
107
+ i0.ɵɵprojection(4, 1);
108
+ i0.ɵɵelementEnd();
109
+ i0.ɵɵprojection(5, 2);
110
+ i0.ɵɵelementEnd();
111
+ } if (rf & 2) {
112
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
113
+ i0.ɵɵadvance(1);
114
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
115
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
116
+ } }, directives: [i1.MatSidenavContainer, i1.MatSidenav], styles: ["[_nghost-%COMP%]{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}[_nghost-%COMP%] >mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}"] });
117
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutComponent, [{
118
+ type: Component,
119
+ args: [{ selector: 'td-layout', template: "<mat-sidenav-container fullscreen [autosize]=\"containerAutosize\">\n <mat-sidenav\n #sidenav\n class=\"td-layout-sidenav\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n [disableClose]=\"disableClose\"\n >\n <ng-content select=\"td-navigation-drawer\"></ng-content>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </mat-sidenav>\n <ng-content></ng-content>\n</mat-sidenav-container>\n", styles: [":host{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host ::ng-deep>mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}\n"] }]
120
+ }], null, { sidenav: [{
121
+ type: ViewChild,
122
+ args: [MatSidenav, { static: true }]
123
+ }], mode: [{
124
+ type: Input
125
+ }], opened: [{
126
+ type: Input
127
+ }], sidenavWidth: [{
128
+ type: Input
129
+ }], containerAutosize: [{
130
+ type: Input
131
+ }] }); })();
132
+
133
+ class LayoutToggleBase {
134
+ }
135
+ /* tslint:disable-next-line */
136
+ const _TdLayoutToggleMixinBase = mixinDisabled(LayoutToggleBase);
137
+ class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
138
+ constructor(_layout, _renderer, _elementRef) {
139
+ super();
140
+ this._layout = _layout;
141
+ this._renderer = _renderer;
142
+ this._elementRef = _elementRef;
143
+ this._initialized = false;
144
+ this._hideWhenOpened = false;
145
+ // if layout has not been provided
146
+ // show warn message
147
+ if (!this._layout) {
148
+ this._noLayoutMessage();
149
+ }
150
+ this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-menu-button');
151
+ }
152
+ /**
153
+ * hideWhenOpened?: boolean
154
+ * When this is set to true, the host will be hidden when
155
+ * the sidenav is opened.
156
+ */
157
+ set hideWhenOpened(hideWhenOpened) {
158
+ this._hideWhenOpened = hideWhenOpened;
159
+ if (this._initialized) {
160
+ this._toggleVisibility();
161
+ }
162
+ }
163
+ ngAfterViewInit() {
164
+ this._initialized = true;
165
+ if (this._layout && this._layout.sidenav) {
166
+ this._toggleSubs = this._layout.sidenav._animationStarted.subscribe(() => {
167
+ this._toggleVisibility();
168
+ });
169
+ }
170
+ // execute toggleVisibility since the onOpenStart and onCloseStart
171
+ // methods might not be executed always when the element is rendered
172
+ this._toggleVisibility();
173
+ }
174
+ ngOnDestroy() {
175
+ if (this._toggleSubs) {
176
+ this._toggleSubs.unsubscribe();
177
+ this._toggleSubs = undefined;
178
+ }
179
+ }
180
+ /**
181
+ * Listens to host click event to trigger the layout toggle
182
+ */
183
+ clickListener(event) {
184
+ event.preventDefault();
185
+ if (!this.disabled) {
186
+ // if layout has been provided, try triggering the click on it
187
+ // else show warn message
188
+ if (this._layout && this._layout.open) {
189
+ this.onClick();
190
+ }
191
+ else {
192
+ this._noLayoutMessage();
193
+ }
194
+ }
195
+ }
196
+ _toggleVisibility() {
197
+ if (this._layout) {
198
+ if (this._layout.sidenav.opened && this._hideWhenOpened) {
199
+ this._renderer.setStyle(this._elementRef.nativeElement, 'display', 'none');
200
+ }
201
+ else {
202
+ this._renderer.setStyle(this._elementRef.nativeElement, 'display', '');
203
+ }
204
+ }
205
+ }
206
+ _noLayoutMessage() {
207
+ /* tslint:disable-next-line */
208
+ console.warn('Covalent: Parent layout not found for layout toggle directive');
209
+ }
210
+ }
211
+ /** @nocollapse */ /** @nocollapse */ BaseLayoutToggleDirective.ɵfac = function BaseLayoutToggleDirective_Factory(t) { i0.ɵɵinvalidFactory(); };
212
+ /** @nocollapse */ /** @nocollapse */ BaseLayoutToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: BaseLayoutToggleDirective, hostBindings: function BaseLayoutToggleDirective_HostBindings(rf, ctx) { if (rf & 1) {
213
+ i0.ɵɵlistener("click", function BaseLayoutToggleDirective_click_HostBindingHandler($event) { return ctx.clickListener($event); });
214
+ } }, inputs: { hideWhenOpened: "hideWhenOpened" }, features: [i0.ɵɵInheritDefinitionFeature] });
215
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseLayoutToggleDirective, [{
216
+ type: Directive
217
+ }], function () { return [{ type: undefined }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { hideWhenOpened: [{
218
+ type: Input,
219
+ args: ['hideWhenOpened']
220
+ }], clickListener: [{
221
+ type: HostListener,
222
+ args: ['click', ['$event']]
223
+ }] }); })();
224
+
225
+ class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
226
+ constructor(layout, renderer, elementRef) {
227
+ super(layout, renderer, elementRef);
228
+ }
229
+ set tdLayoutToggle(tdLayoutToggle) {
230
+ this.disabled = !(tdLayoutToggle === '' || tdLayoutToggle);
231
+ }
232
+ onClick() {
233
+ this._layout.toggle();
234
+ }
235
+ }
236
+ /** @nocollapse */ /** @nocollapse */ TdLayoutToggleDirective.ɵfac = function TdLayoutToggleDirective_Factory(t) { return new (t || TdLayoutToggleDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
237
+ /** @nocollapse */ /** @nocollapse */ TdLayoutToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutToggleDirective, selectors: [["", "tdLayoutToggle", ""]], inputs: { tdLayoutToggle: "tdLayoutToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
238
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutToggleDirective, [{
239
+ type: Directive,
240
+ args: [{
241
+ selector: '[tdLayoutToggle]',
242
+ }]
243
+ }], function () { return [{ type: TdLayoutComponent, decorators: [{
244
+ type: Optional
245
+ }, {
246
+ type: Inject,
247
+ args: [forwardRef(() => TdLayoutComponent)]
248
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutToggle: [{
249
+ type: Input,
250
+ args: ['tdLayoutToggle']
251
+ }] }); })();
252
+ class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
253
+ constructor(layout, renderer, elementRef) {
254
+ super(layout, renderer, elementRef);
255
+ }
256
+ set tdLayoutClose(tdLayoutClose) {
257
+ this.disabled = !(tdLayoutClose === '' || tdLayoutClose);
258
+ }
259
+ onClick() {
260
+ this._layout.close();
261
+ }
262
+ }
263
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCloseDirective.ɵfac = function TdLayoutCloseDirective_Factory(t) { return new (t || TdLayoutCloseDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
264
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutCloseDirective, selectors: [["", "tdLayoutClose", ""]], inputs: { tdLayoutClose: "tdLayoutClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
265
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCloseDirective, [{
266
+ type: Directive,
267
+ args: [{
268
+ selector: '[tdLayoutClose]',
269
+ }]
270
+ }], function () { return [{ type: TdLayoutComponent, decorators: [{
271
+ type: Optional
272
+ }, {
273
+ type: Inject,
274
+ args: [forwardRef(() => TdLayoutComponent)]
275
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutClose: [{
276
+ type: Input,
277
+ args: ['tdLayoutClose']
278
+ }] }); })();
279
+ class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
280
+ constructor(layout, renderer, elementRef) {
281
+ super(layout, renderer, elementRef);
282
+ }
283
+ set tdLayoutClose(tdLayoutOpen) {
284
+ this.disabled = !(tdLayoutOpen === '' || tdLayoutOpen);
285
+ }
286
+ onClick() {
287
+ this._layout.open();
288
+ }
289
+ }
290
+ /** @nocollapse */ /** @nocollapse */ TdLayoutOpenDirective.ɵfac = function TdLayoutOpenDirective_Factory(t) { return new (t || TdLayoutOpenDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
291
+ /** @nocollapse */ /** @nocollapse */ TdLayoutOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutOpenDirective, selectors: [["", "tdLayoutOpen", ""]], inputs: { tdLayoutClose: ["tdLayoutOpen", "tdLayoutClose"] }, features: [i0.ɵɵInheritDefinitionFeature] });
292
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutOpenDirective, [{
293
+ type: Directive,
294
+ args: [{
295
+ selector: '[tdLayoutOpen]',
296
+ }]
297
+ }], function () { return [{ type: TdLayoutComponent, decorators: [{
298
+ type: Optional
299
+ }, {
300
+ type: Inject,
301
+ args: [forwardRef(() => TdLayoutComponent)]
302
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutClose: [{
303
+ type: Input,
304
+ args: ['tdLayoutOpen']
305
+ }] }); })();
306
+
307
+ function TdLayoutNavComponent_span_3_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
308
+ i0.ɵɵelementStart(0, "mat-icon");
309
+ i0.ɵɵtext(1);
310
+ i0.ɵɵelementEnd();
311
+ } if (rf & 2) {
312
+ const ctx_r1 = i0.ɵɵnextContext(2);
313
+ i0.ɵɵadvance(1);
314
+ i0.ɵɵtextInterpolate(ctx_r1.icon);
315
+ } }
316
+ function TdLayoutNavComponent_span_3_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
317
+ i0.ɵɵelement(0, "mat-icon", 7);
318
+ } if (rf & 2) {
319
+ const ctx_r2 = i0.ɵɵnextContext(2);
320
+ i0.ɵɵproperty("svgIcon", ctx_r2.logo);
321
+ } }
322
+ function TdLayoutNavComponent_span_3_span_3_Template(rf, ctx) { if (rf & 1) {
323
+ i0.ɵɵelementStart(0, "span");
324
+ i0.ɵɵtext(1);
325
+ i0.ɵɵelementEnd();
326
+ } if (rf & 2) {
327
+ const ctx_r3 = i0.ɵɵnextContext(2);
328
+ i0.ɵɵadvance(1);
329
+ i0.ɵɵtextInterpolate(ctx_r3.toolbarTitle);
330
+ } }
331
+ function TdLayoutNavComponent_span_3_Template(rf, ctx) { if (rf & 1) {
332
+ const _r5 = i0.ɵɵgetCurrentView();
333
+ i0.ɵɵelementStart(0, "span", 4);
334
+ i0.ɵɵlistener("click", function TdLayoutNavComponent_span_3_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.handleNavigationClick(); });
335
+ i0.ɵɵtemplate(1, TdLayoutNavComponent_span_3_mat_icon_1_Template, 2, 1, "mat-icon", 5);
336
+ i0.ɵɵtemplate(2, TdLayoutNavComponent_span_3_mat_icon_2_Template, 1, 1, "mat-icon", 6);
337
+ i0.ɵɵtemplate(3, TdLayoutNavComponent_span_3_span_3_Template, 2, 1, "span", 5);
338
+ i0.ɵɵelementEnd();
339
+ } if (rf & 2) {
340
+ const ctx_r0 = i0.ɵɵnextContext();
341
+ i0.ɵɵclassProp("cursor-pointer", ctx_r0.routerEnabled);
342
+ i0.ɵɵadvance(1);
343
+ i0.ɵɵproperty("ngIf", ctx_r0.icon);
344
+ i0.ɵɵadvance(1);
345
+ i0.ɵɵproperty("ngIf", ctx_r0.logo && !ctx_r0.icon);
346
+ i0.ɵɵadvance(1);
347
+ i0.ɵɵproperty("ngIf", ctx_r0.toolbarTitle);
348
+ } }
349
+ const _c0$5 = [[["", "td-menu-button", ""]], [["", "td-toolbar-content", ""]], "*", [["td-layout-footer"]]];
350
+ const _c1$4 = ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"];
351
+ class TdLayoutNavComponent {
352
+ constructor(_router) {
353
+ this._router = _router;
354
+ /**
355
+ * color?: 'accent' | 'primary' | 'warn'
356
+ *
357
+ * toolbar color option: primary | accent | warn.
358
+ * If [color] is not set, primary is used.
359
+ */
360
+ this.color = 'primary';
361
+ }
362
+ /**
363
+ * Checks if router was injected.
364
+ */
365
+ get routerEnabled() {
366
+ return !!this._router && !!this.navigationRoute;
367
+ }
368
+ handleNavigationClick() {
369
+ if (this.routerEnabled) {
370
+ this._router.navigateByUrl(this.navigationRoute);
371
+ }
372
+ }
373
+ }
374
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavComponent.ɵfac = function TdLayoutNavComponent_Factory(t) { return new (t || TdLayoutNavComponent)(i0.ɵɵdirectiveInject(i1$1.Router, 8)); };
375
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutNavComponent, selectors: [["td-layout-nav"]], inputs: { toolbarTitle: "toolbarTitle", icon: "icon", logo: "logo", color: "color", navigationRoute: "navigationRoute" }, ngContentSelectors: _c1$4, decls: 8, vars: 2, consts: [[1, "td-layout-nav-wrapper"], [1, "td-layout-toolbar", 3, "color"], ["class", "td-layout-nav-toolbar-content", 3, "cursor-pointer", "click", 4, "ngIf"], ["cdkScrollable", "", 1, "td-layout-nav-content"], [1, "td-layout-nav-toolbar-content", 3, "click"], [4, "ngIf"], ["class", "mat-icon-logo", 3, "svgIcon", 4, "ngIf"], [1, "mat-icon-logo", 3, "svgIcon"]], template: function TdLayoutNavComponent_Template(rf, ctx) { if (rf & 1) {
376
+ i0.ɵɵprojectionDef(_c0$5);
377
+ i0.ɵɵelementStart(0, "div", 0);
378
+ i0.ɵɵelementStart(1, "mat-toolbar", 1);
379
+ i0.ɵɵprojection(2);
380
+ i0.ɵɵtemplate(3, TdLayoutNavComponent_span_3_Template, 4, 5, "span", 2);
381
+ i0.ɵɵprojection(4, 1);
382
+ i0.ɵɵelementEnd();
383
+ i0.ɵɵelementStart(5, "div", 3);
384
+ i0.ɵɵprojection(6, 2);
385
+ i0.ɵɵelementEnd();
386
+ i0.ɵɵprojection(7, 3);
387
+ i0.ɵɵelementEnd();
388
+ } if (rf & 2) {
389
+ i0.ɵɵadvance(1);
390
+ i0.ɵɵproperty("color", ctx.color);
391
+ i0.ɵɵadvance(2);
392
+ i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
393
+ } }, directives: [i3.MatToolbar, i3$1.NgIf, i5.MatIcon, i5$1.CdkScrollable], styles: [".td-menu-button[_ngcontent-%COMP%]{margin-left:0} [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}[_nghost-%COMP%]{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%] .td-layout-nav-toolbar-content[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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}[_nghost-%COMP%] .td-layout-nav-wrapper[_ngcontent-%COMP%] .td-layout-nav-content[_ngcontent-%COMP%]{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}"] });
394
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavComponent, [{
395
+ type: Component,
396
+ args: [{ selector: 'td-layout-nav', template: "<div class=\"td-layout-nav-wrapper\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n class=\"td-layout-nav-toolbar-content\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon *ngIf=\"logo && !icon\" class=\"mat-icon-logo\" [svgIcon]=\"logo\"></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer\"></ng-content>\n</div>\n", styles: [".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}:host{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host .td-layout-nav-wrapper{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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 .td-layout-nav-wrapper .td-layout-nav-content{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}\n"] }]
397
+ }], function () { return [{ type: i1$1.Router, decorators: [{
398
+ type: Optional
399
+ }] }]; }, { toolbarTitle: [{
400
+ type: Input
401
+ }], icon: [{
402
+ type: Input
403
+ }], logo: [{
404
+ type: Input
405
+ }], color: [{
406
+ type: Input
407
+ }], navigationRoute: [{
408
+ type: Input
409
+ }] }); })();
410
+
411
+ function TdLayoutNavListComponent_span_6_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
412
+ i0.ɵɵelementStart(0, "mat-icon");
413
+ i0.ɵɵtext(1);
414
+ i0.ɵɵelementEnd();
415
+ } if (rf & 2) {
416
+ const ctx_r2 = i0.ɵɵnextContext(2);
417
+ i0.ɵɵadvance(1);
418
+ i0.ɵɵtextInterpolate(ctx_r2.icon);
419
+ } }
420
+ function TdLayoutNavListComponent_span_6_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
421
+ i0.ɵɵelement(0, "mat-icon", 11);
422
+ } if (rf & 2) {
423
+ const ctx_r3 = i0.ɵɵnextContext(2);
424
+ i0.ɵɵproperty("svgIcon", ctx_r3.logo);
425
+ } }
426
+ function TdLayoutNavListComponent_span_6_span_3_Template(rf, ctx) { if (rf & 1) {
427
+ i0.ɵɵelementStart(0, "span");
428
+ i0.ɵɵtext(1);
429
+ i0.ɵɵelementEnd();
430
+ } if (rf & 2) {
431
+ const ctx_r4 = i0.ɵɵnextContext(2);
432
+ i0.ɵɵadvance(1);
433
+ i0.ɵɵtextInterpolate(ctx_r4.toolbarTitle);
434
+ } }
435
+ function TdLayoutNavListComponent_span_6_Template(rf, ctx) { if (rf & 1) {
436
+ const _r6 = i0.ɵɵgetCurrentView();
437
+ i0.ɵɵelementStart(0, "span", 8);
438
+ i0.ɵɵlistener("click", function TdLayoutNavListComponent_span_6_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.handleNavigationClick(); });
439
+ i0.ɵɵtemplate(1, TdLayoutNavListComponent_span_6_mat_icon_1_Template, 2, 1, "mat-icon", 9);
440
+ i0.ɵɵtemplate(2, TdLayoutNavListComponent_span_6_mat_icon_2_Template, 1, 1, "mat-icon", 10);
441
+ i0.ɵɵtemplate(3, TdLayoutNavListComponent_span_6_span_3_Template, 2, 1, "span", 9);
442
+ i0.ɵɵelementEnd();
443
+ } if (rf & 2) {
444
+ const ctx_r1 = i0.ɵɵnextContext();
445
+ i0.ɵɵclassProp("cursor-pointer", ctx_r1.routerEnabled);
446
+ i0.ɵɵadvance(1);
447
+ i0.ɵɵproperty("ngIf", ctx_r1.icon);
448
+ i0.ɵɵadvance(1);
449
+ i0.ɵɵproperty("ngIf", ctx_r1.logo && !ctx_r1.icon);
450
+ i0.ɵɵadvance(1);
451
+ i0.ɵɵproperty("ngIf", ctx_r1.toolbarTitle);
452
+ } }
453
+ const _c0$4 = [[["", "td-menu-button", ""]], [["", "td-sidenav-toolbar-content", ""]], [["", "td-sidenav-content", ""]], [["", "td-toolbar-content", ""]], "*", [["td-layout-footer-inner"]], [["td-layout-footer"]]];
454
+ const _c1$3 = ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"];
455
+ class TdLayoutNavListComponent {
456
+ constructor(_router) {
457
+ this._router = _router;
458
+ /**
459
+ * color?: 'accent' | 'primary' | 'warn'
460
+ *
461
+ * toolbar color option: primary | accent | warn.
462
+ * If [color] is not set, primary is used.
463
+ */
464
+ this.color = 'primary';
465
+ /**
466
+ * mode?: 'side', 'push' or 'over'
467
+ *
468
+ * The mode or styling of the sidenav.
469
+ * Defaults to "side".
470
+ * See "MatSidenav" documentation for more info.
471
+ *
472
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
473
+ */
474
+ this.mode = 'side';
475
+ /**
476
+ * opened?: boolean
477
+ * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
478
+ * Defaults to "true".
479
+ *
480
+ * See "MatSidenav" documentation for more info.
481
+ *
482
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
483
+ */
484
+ this.opened = true;
485
+ /**
486
+ * sidenavWidth?: string
487
+ *
488
+ * Sets the "width" of the sidenav in either "px" or "%"
489
+ * Defaults to "350px".
490
+ *
491
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
492
+ */
493
+ this.sidenavWidth = '350px';
494
+ /**
495
+ * containerAutosize?: boolean
496
+ *
497
+ * Sets "autosize" of the sidenav-container.
498
+ * Defaults to "false".
499
+ *
500
+ * See documentation for more info and potential performance risks.
501
+ *
502
+ * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
503
+ */
504
+ this.containerAutosize = false;
505
+ }
506
+ /**
507
+ * Checks if `ESC` should close the sidenav
508
+ * Should only close it for `push` and `over` modes
509
+ */
510
+ get disableClose() {
511
+ return this.mode === 'side';
512
+ }
513
+ /**
514
+ * Checks if router was injected.
515
+ */
516
+ get routerEnabled() {
517
+ return !!this._router && !!this.navigationRoute;
518
+ }
519
+ handleNavigationClick() {
520
+ if (this.routerEnabled) {
521
+ this._router.navigateByUrl(this.navigationRoute);
522
+ }
523
+ }
524
+ /**
525
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
526
+ */
527
+ toggle() {
528
+ return this.sidenav.toggle(!this.sidenav.opened);
529
+ }
530
+ /**
531
+ * Proxy open method to access sidenav from outside (from td-layout template).
532
+ */
533
+ open() {
534
+ return this.sidenav.open();
535
+ }
536
+ /**
537
+ * Proxy close method to access sidenav from outside (from td-layout template).
538
+ */
539
+ close() {
540
+ return this.sidenav.close();
541
+ }
542
+ }
543
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListComponent.ɵfac = function TdLayoutNavListComponent_Factory(t) { return new (t || TdLayoutNavListComponent)(i0.ɵɵdirectiveInject(i1$1.Router, 8)); };
544
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutNavListComponent, selectors: [["td-layout-nav-list"]], viewQuery: function TdLayoutNavListComponent_Query(rf, ctx) { if (rf & 1) {
545
+ i0.ɵɵviewQuery(MatSidenav, 7);
546
+ } if (rf & 2) {
547
+ let _t;
548
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
549
+ } }, inputs: { toolbarTitle: "toolbarTitle", icon: "icon", logo: "logo", color: "color", mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize", navigationRoute: "navigationRoute" }, ngContentSelectors: _c1$3, decls: 17, vars: 11, consts: [[1, "td-layout-nav-list-wrapper"], ["fullscreen", "", 1, "td-layout-nav-list", 3, "autosize"], ["position", "start", 3, "mode", "opened", "disableClose"], ["sidenav", ""], [1, "td-layout-toolbar", 3, "color"], ["class", "td-layout-nav-list-toolbar-content", 3, "cursor-pointer", "click", 4, "ngIf"], ["cdkScrollable", "", 1, "td-layout-nav-list-content"], [1, "td-layout-nav-list-main"], [1, "td-layout-nav-list-toolbar-content", 3, "click"], [4, "ngIf"], ["class", "mat-icon-logo", 3, "svgIcon", 4, "ngIf"], [1, "mat-icon-logo", 3, "svgIcon"]], template: function TdLayoutNavListComponent_Template(rf, ctx) { if (rf & 1) {
550
+ i0.ɵɵprojectionDef(_c0$4);
551
+ i0.ɵɵelementStart(0, "div", 0);
552
+ i0.ɵɵelementStart(1, "mat-sidenav-container", 1);
553
+ i0.ɵɵelementStart(2, "mat-sidenav", 2, 3);
554
+ i0.ɵɵelementStart(4, "mat-toolbar", 4);
555
+ i0.ɵɵprojection(5);
556
+ i0.ɵɵtemplate(6, TdLayoutNavListComponent_span_6_Template, 4, 5, "span", 5);
557
+ i0.ɵɵprojection(7, 1);
558
+ i0.ɵɵelementEnd();
559
+ i0.ɵɵelementStart(8, "div", 6);
560
+ i0.ɵɵprojection(9, 2);
561
+ i0.ɵɵelementEnd();
562
+ i0.ɵɵelementEnd();
563
+ i0.ɵɵelementStart(10, "div", 7);
564
+ i0.ɵɵelementStart(11, "mat-toolbar", 4);
565
+ i0.ɵɵprojection(12, 3);
566
+ i0.ɵɵelementEnd();
567
+ i0.ɵɵelementStart(13, "div", 6);
568
+ i0.ɵɵprojection(14, 4);
569
+ i0.ɵɵelementEnd();
570
+ i0.ɵɵprojection(15, 5);
571
+ i0.ɵɵelementEnd();
572
+ i0.ɵɵelementEnd();
573
+ i0.ɵɵelementEnd();
574
+ i0.ɵɵprojection(16, 6);
575
+ } if (rf & 2) {
576
+ i0.ɵɵadvance(1);
577
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
578
+ i0.ɵɵadvance(1);
579
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
580
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
581
+ i0.ɵɵadvance(2);
582
+ i0.ɵɵproperty("color", ctx.color);
583
+ i0.ɵɵadvance(2);
584
+ i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
585
+ i0.ɵɵadvance(5);
586
+ i0.ɵɵproperty("color", ctx.color);
587
+ } }, directives: [i1.MatSidenavContainer, i1.MatSidenav, i3.MatToolbar, i3$1.NgIf, i5.MatIcon, i5$1.CdkScrollable], styles: ["[_nghost-%COMP%]{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] > .mat-sidenav-container[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-side[_ngcontent-%COMP%]{border-right:0}[dir=rtl] [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] > .mat-sidenav-container[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-side[_ngcontent-%COMP%]{border-left:0}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-toolbar-content[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-content[_ngcontent-%COMP%]{text-align:start;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-main[_ngcontent-%COMP%]{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] .td-layout-nav-list-main[_ngcontent-%COMP%] .td-layout-nav-list-content[_ngcontent-%COMP%]{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-ms-flex:1;flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%]{-ms-flex:1;flex:1}[_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-opened[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-opening[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-closed[_ngcontent-%COMP%], [_nghost-%COMP%] .td-layout-nav-list-wrapper[_ngcontent-%COMP%] mat-sidenav-container.td-layout-nav-list[_ngcontent-%COMP%] > mat-sidenav.mat-drawer-closing[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%] mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%] mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}"] });
588
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListComponent, [{
589
+ type: Component,
590
+ args: [{ selector: 'td-layout-nav-list', template: "<div class=\"td-layout-nav-list-wrapper\">\n <mat-sidenav-container fullscreen [autosize]=\"containerAutosize\" class=\"td-layout-nav-list\">\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n class=\"td-layout-nav-list-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon *ngIf=\"logo && !icon\" class=\"mat-icon-logo\" [svgIcon]=\"logo\"></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-sidenav-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-nav-list-main\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n </mat-sidenav-container>\n</div>\n<ng-content select=\"td-layout-footer\"></ng-content>\n", styles: [":host{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-right:0}[dir=rtl] :host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-left:0}:host .td-layout-nav-list-wrapper{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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 .td-layout-nav-list-wrapper .td-layout-nav-list-content{text-align:start;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list{-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opened,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opening,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing{box-shadow:none}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{-ms-flex-positive:1;flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}\n"] }]
591
+ }], function () { return [{ type: i1$1.Router, decorators: [{
592
+ type: Optional
593
+ }] }]; }, { sidenav: [{
594
+ type: ViewChild,
595
+ args: [MatSidenav, { static: true }]
596
+ }], toolbarTitle: [{
597
+ type: Input
598
+ }], icon: [{
599
+ type: Input
600
+ }], logo: [{
601
+ type: Input
602
+ }], color: [{
603
+ type: Input
604
+ }], mode: [{
605
+ type: Input
606
+ }], opened: [{
607
+ type: Input
608
+ }], sidenavWidth: [{
609
+ type: Input
610
+ }], containerAutosize: [{
611
+ type: Input
612
+ }], navigationRoute: [{
613
+ type: Input
614
+ }] }); })();
615
+
616
+ class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
617
+ constructor(layout, renderer, elementRef) {
618
+ super(layout, renderer, elementRef);
619
+ }
620
+ set tdLayoutNavListToggle(tdLayoutNavListToggle) {
621
+ this.disabled = !(tdLayoutNavListToggle === '' || tdLayoutNavListToggle);
622
+ }
623
+ onClick() {
624
+ this._layout.toggle();
625
+ }
626
+ }
627
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListToggleDirective.ɵfac = function TdLayoutNavListToggleDirective_Factory(t) { return new (t || TdLayoutNavListToggleDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutNavListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
628
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListToggleDirective, selectors: [["", "tdLayoutNavListToggle", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListToggle: "tdLayoutNavListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
629
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListToggleDirective, [{
630
+ type: Directive,
631
+ args: [{
632
+ selector: '[tdLayoutNavListToggle]',
633
+ inputs: ['hideWhenOpened'],
634
+ }]
635
+ }], function () { return [{ type: TdLayoutNavListComponent, decorators: [{
636
+ type: Optional
637
+ }, {
638
+ type: Inject,
639
+ args: [forwardRef(() => TdLayoutNavListComponent)]
640
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutNavListToggle: [{
641
+ type: Input,
642
+ args: ['tdLayoutNavListToggle']
643
+ }] }); })();
644
+ class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
645
+ constructor(layout, renderer, elementRef) {
646
+ super(layout, renderer, elementRef);
647
+ }
648
+ set tdLayoutNavListClose(tdLayoutNavListClose) {
649
+ this.disabled = !(tdLayoutNavListClose === '' || tdLayoutNavListClose);
650
+ }
651
+ onClick() {
652
+ this._layout.close();
653
+ }
654
+ }
655
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListCloseDirective.ɵfac = function TdLayoutNavListCloseDirective_Factory(t) { return new (t || TdLayoutNavListCloseDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutNavListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
656
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListCloseDirective, selectors: [["", "tdLayoutNavListClose", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListClose: "tdLayoutNavListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
657
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListCloseDirective, [{
658
+ type: Directive,
659
+ args: [{
660
+ selector: '[tdLayoutNavListClose]',
661
+ inputs: ['hideWhenOpened'],
662
+ }]
663
+ }], function () { return [{ type: TdLayoutNavListComponent, decorators: [{
664
+ type: Optional
665
+ }, {
666
+ type: Inject,
667
+ args: [forwardRef(() => TdLayoutNavListComponent)]
668
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutNavListClose: [{
669
+ type: Input,
670
+ args: ['tdLayoutNavListClose']
671
+ }] }); })();
672
+ class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
673
+ constructor(layout, renderer, elementRef) {
674
+ super(layout, renderer, elementRef);
675
+ }
676
+ set tdLayoutNavListOpen(tdLayoutNavListOpen) {
677
+ this.disabled = !(tdLayoutNavListOpen === '' || tdLayoutNavListOpen);
678
+ }
679
+ onClick() {
680
+ this._layout.open();
681
+ }
682
+ }
683
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListOpenDirective.ɵfac = function TdLayoutNavListOpenDirective_Factory(t) { return new (t || TdLayoutNavListOpenDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutNavListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
684
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListOpenDirective, selectors: [["", "tdLayoutNavListOpen", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListOpen: "tdLayoutNavListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
685
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListOpenDirective, [{
686
+ type: Directive,
687
+ args: [{
688
+ selector: '[tdLayoutNavListOpen]',
689
+ inputs: ['hideWhenOpened'],
690
+ }]
691
+ }], function () { return [{ type: TdLayoutNavListComponent, decorators: [{
692
+ type: Optional
693
+ }, {
694
+ type: Inject,
695
+ args: [forwardRef(() => TdLayoutNavListComponent)]
696
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutNavListOpen: [{
697
+ type: Input,
698
+ args: ['tdLayoutNavListOpen']
699
+ }] }); })();
700
+
701
+ function TdLayoutCardOverComponent_mat_card_title_4_Template(rf, ctx) { if (rf & 1) {
702
+ i0.ɵɵelementStart(0, "mat-card-title");
703
+ i0.ɵɵtext(1);
704
+ i0.ɵɵelementEnd();
705
+ } if (rf & 2) {
706
+ const ctx_r0 = i0.ɵɵnextContext();
707
+ i0.ɵɵadvance(1);
708
+ i0.ɵɵtextInterpolate(ctx_r0.cardTitle);
709
+ } }
710
+ function TdLayoutCardOverComponent_mat_card_subtitle_5_Template(rf, ctx) { if (rf & 1) {
711
+ i0.ɵɵelementStart(0, "mat-card-subtitle");
712
+ i0.ɵɵtext(1);
713
+ i0.ɵɵelementEnd();
714
+ } if (rf & 2) {
715
+ const ctx_r1 = i0.ɵɵnextContext();
716
+ i0.ɵɵadvance(1);
717
+ i0.ɵɵtextInterpolate(ctx_r1.cardSubtitle);
718
+ } }
719
+ function TdLayoutCardOverComponent_mat_divider_6_Template(rf, ctx) { if (rf & 1) {
720
+ i0.ɵɵelement(0, "mat-divider");
721
+ } }
722
+ const _c0$3 = ["*", [["", "td-after-card", ""]]];
723
+ const _c1$2 = ["*", "[td-after-card]"];
724
+ class TdLayoutCardOverComponent {
725
+ constructor() {
726
+ /**
727
+ * cardWidth?: string
728
+ *
729
+ * Card flex width in %.
730
+ * Defaults to 70%.
731
+ */
732
+ this.cardWidth = 70;
733
+ /**
734
+ * color?: 'accent' | 'primary' | 'warn'
735
+ *
736
+ * toolbar color option: primary | accent | warn.
737
+ * If [color] is not set, primary is used.
738
+ */
739
+ this.color = 'primary';
740
+ }
741
+ }
742
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCardOverComponent.ɵfac = function TdLayoutCardOverComponent_Factory(t) { return new (t || TdLayoutCardOverComponent)(); };
743
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCardOverComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutCardOverComponent, selectors: [["td-layout-card-over"]], inputs: { cardTitle: "cardTitle", cardSubtitle: "cardSubtitle", cardWidth: "cardWidth", color: "color" }, ngContentSelectors: _c1$2, decls: 9, vars: 12, consts: [[1, "td-layout-toolbar", 3, "color"], [1, "td-layout-card-over-wrapper"], [1, "td-layout-card-over"], [4, "ngIf"]], template: function TdLayoutCardOverComponent_Template(rf, ctx) { if (rf & 1) {
744
+ i0.ɵɵprojectionDef(_c0$3);
745
+ i0.ɵɵelement(0, "mat-toolbar", 0);
746
+ i0.ɵɵelementStart(1, "div", 1);
747
+ i0.ɵɵelementStart(2, "div", 2);
748
+ i0.ɵɵelementStart(3, "mat-card");
749
+ i0.ɵɵtemplate(4, TdLayoutCardOverComponent_mat_card_title_4_Template, 2, 1, "mat-card-title", 3);
750
+ i0.ɵɵtemplate(5, TdLayoutCardOverComponent_mat_card_subtitle_5_Template, 2, 1, "mat-card-subtitle", 3);
751
+ i0.ɵɵtemplate(6, TdLayoutCardOverComponent_mat_divider_6_Template, 1, 0, "mat-divider", 3);
752
+ i0.ɵɵprojection(7);
753
+ i0.ɵɵelementEnd();
754
+ i0.ɵɵprojection(8, 1);
755
+ i0.ɵɵelementEnd();
756
+ i0.ɵɵelementEnd();
757
+ } if (rf & 2) {
758
+ i0.ɵɵproperty("color", ctx.color);
759
+ i0.ɵɵadvance(2);
760
+ i0.ɵɵstyleProp("max-width", ctx.cardWidth, "%")("flex", "1 1 " + ctx.cardWidth + "%")("-ms-flex", "1 1 " + ctx.cardWidth + "%")("-webkit-box-flex", 1);
761
+ i0.ɵɵadvance(2);
762
+ i0.ɵɵproperty("ngIf", ctx.cardTitle);
763
+ i0.ɵɵadvance(1);
764
+ i0.ɵɵproperty("ngIf", ctx.cardSubtitle);
765
+ i0.ɵɵadvance(1);
766
+ i0.ɵɵproperty("ngIf", ctx.cardTitle || ctx.cardSubtitle);
767
+ } }, directives: [i3.MatToolbar, i2.MatCard, i3$1.NgIf, i2.MatCardTitle, i2.MatCardSubtitle, i4.MatDivider], styles: ["[_nghost-%COMP%]{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}[_nghost-%COMP%] [td-after-card][_ngcontent-%COMP%]{display:block}.td-layout-card-over-wrapper[_ngcontent-%COMP%]{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width: 600px){.td-layout-card-over-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-ms-flex-pack:center;justify-content:center}.td-layout-card-over-wrapper[_ngcontent-%COMP%] .td-layout-card-over[_ngcontent-%COMP%]{max-height:100%;box-sizing:border-box}}@media (max-width: 599px){.td-layout-card-over-wrapper[_ngcontent-%COMP%] .td-layout-card-over[_ngcontent-%COMP%]{max-width:100%!important}}"] });
768
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCardOverComponent, [{
769
+ type: Component,
770
+ args: [{ selector: 'td-layout-card-over', template: "<mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\"></mat-toolbar>\n<div class=\"td-layout-card-over-wrapper\">\n <div\n class=\"td-layout-card-over\"\n [style.max-width.%]=\"cardWidth\"\n [style.flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-ms-flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <mat-card>\n <mat-card-title *ngIf=\"cardTitle\">{{ cardTitle }}</mat-card-title>\n <mat-card-subtitle *ngIf=\"cardSubtitle\">{{ cardSubtitle }}</mat-card-subtitle>\n <mat-divider *ngIf=\"cardTitle || cardSubtitle\"></mat-divider>\n <ng-content></ng-content>\n </mat-card>\n <ng-content select=\"[td-after-card]\"></ng-content>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}:host [td-after-card]{display:block}.td-layout-card-over-wrapper{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width: 600px){.td-layout-card-over-wrapper{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-ms-flex-pack:center;justify-content:center}.td-layout-card-over-wrapper .td-layout-card-over{max-height:100%;box-sizing:border-box}}@media (max-width: 599px){.td-layout-card-over-wrapper .td-layout-card-over{max-width:100%!important}}\n"] }]
771
+ }], null, { cardTitle: [{
772
+ type: Input
773
+ }], cardSubtitle: [{
774
+ type: Input
775
+ }], cardWidth: [{
776
+ type: Input
777
+ }], color: [{
778
+ type: Input
779
+ }] }); })();
780
+
781
+ const _c0$2 = [[["mat-toolbar", "td-sidenav-content", ""]], [["", "td-sidenav-content", ""]], [["mat-toolbar"]], "*", [["td-layout-footer-inner"]]];
782
+ const _c1$1 = ["mat-toolbar[td-sidenav-content]", "[td-sidenav-content]", "mat-toolbar", "*", "td-layout-footer-inner"];
783
+ class TdLayoutManageListComponent {
784
+ constructor() {
785
+ /**
786
+ * mode?: 'side', 'push' or 'over'
787
+ *
788
+ * The mode or styling of the sidenav.
789
+ * Defaults to "side".
790
+ * See "MatSidenav" documentation for more info.
791
+ *
792
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
793
+ */
794
+ this.mode = 'side';
795
+ /**
796
+ * opened?: boolean
797
+ *
798
+ * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
799
+ * Defaults to "true".
800
+ *
801
+ * See "MatSidenav" documentation for more info.
802
+ *
803
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
804
+ */
805
+ this.opened = true;
806
+ /**
807
+ * sidenavWidth?: string
808
+ *
809
+ * Sets the "width" of the sidenav in either "px" or "%"
810
+ * Defaults to "257px".
811
+ *
812
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
813
+ */
814
+ this.sidenavWidth = '257px';
815
+ /**
816
+ * containerAutosize?: boolean
817
+ *
818
+ * Sets "autosize" of the sidenav-container.
819
+ * Defaults to "false".
820
+ *
821
+ * See documentation for more info and potential performance risks.
822
+ *
823
+ * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
824
+ */
825
+ this.containerAutosize = false;
826
+ }
827
+ /**
828
+ * Checks if `ESC` should close the sidenav
829
+ * Should only close it for `push` and `over` modes
830
+ */
831
+ get disableClose() {
832
+ return this.mode === 'side';
833
+ }
834
+ /**
835
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
836
+ */
837
+ toggle() {
838
+ return this.sidenav.toggle(!this.sidenav.opened);
839
+ }
840
+ /**
841
+ * Proxy open method to access sidenav from outside (from td-layout template).
842
+ */
843
+ open() {
844
+ return this.sidenav.open();
845
+ }
846
+ /**
847
+ * Proxy close method to access sidenav from outside (from td-layout template).
848
+ */
849
+ close() {
850
+ return this.sidenav.close();
851
+ }
852
+ }
853
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListComponent.ɵfac = function TdLayoutManageListComponent_Factory(t) { return new (t || TdLayoutManageListComponent)(); };
854
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutManageListComponent, selectors: [["td-layout-manage-list"]], viewQuery: function TdLayoutManageListComponent_Query(rf, ctx) { if (rf & 1) {
855
+ i0.ɵɵviewQuery(MatSidenav, 7);
856
+ } if (rf & 2) {
857
+ let _t;
858
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
859
+ } }, inputs: { mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize" }, ngContentSelectors: _c1$1, decls: 11, vars: 8, consts: [["fullscreen", "", 1, "td-layout-manage-list", 3, "autosize"], ["position", "start", 3, "mode", "opened", "disableClose"], ["sidenav", ""], ["cdkScrollable", "", 1, "td-layout-manage-list-sidenav"], [1, "td-layout-manage-list-main"], ["cdkScrollable", "", 1, "td-layout-manage-list-content"]], template: function TdLayoutManageListComponent_Template(rf, ctx) { if (rf & 1) {
860
+ i0.ɵɵprojectionDef(_c0$2);
861
+ i0.ɵɵelementStart(0, "mat-sidenav-container", 0);
862
+ i0.ɵɵelementStart(1, "mat-sidenav", 1, 2);
863
+ i0.ɵɵprojection(3);
864
+ i0.ɵɵelementStart(4, "div", 3);
865
+ i0.ɵɵprojection(5, 1);
866
+ i0.ɵɵelementEnd();
867
+ i0.ɵɵelementEnd();
868
+ i0.ɵɵelementStart(6, "div", 4);
869
+ i0.ɵɵprojection(7, 2);
870
+ i0.ɵɵelementStart(8, "div", 5);
871
+ i0.ɵɵprojection(9, 3);
872
+ i0.ɵɵelementEnd();
873
+ i0.ɵɵprojection(10, 4);
874
+ i0.ɵɵelementEnd();
875
+ i0.ɵɵelementEnd();
876
+ } if (rf & 2) {
877
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
878
+ i0.ɵɵadvance(1);
879
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
880
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
881
+ } }, directives: [i1.MatSidenavContainer, i1.MatSidenav, i5$1.CdkScrollable], styles: ["[_nghost-%COMP%]{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}[_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list[_ngcontent-%COMP%]{-ms-flex:1;flex:1}[_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list[_ngcontent-%COMP%] > .mat-drawer[_ngcontent-%COMP%] > .mat-drawer-inner-container.mat-drawer-opened[_ngcontent-%COMP%], [_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list[_ngcontent-%COMP%] > .mat-drawer[_ngcontent-%COMP%] > .mat-drawer-inner-container.mat-drawer-opening[_ngcontent-%COMP%], [_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list[_ngcontent-%COMP%] > .mat-drawer[_ngcontent-%COMP%] > .mat-drawer-inner-container.mat-drawer-closed[_ngcontent-%COMP%], [_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list[_ngcontent-%COMP%] > .mat-drawer[_ngcontent-%COMP%] > .mat-drawer-inner-container.mat-drawer-closing[_ngcontent-%COMP%]{box-shadow:0 1px 3px rgba(0,0,0,.2)}[_nghost-%COMP%] .td-layout-manage-list-sidenav[_ngcontent-%COMP%]{text-align:start;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .td-layout-manage-list-main[_ngcontent-%COMP%]{margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .td-layout-manage-list-main[_ngcontent-%COMP%] .td-layout-manage-list-content[_ngcontent-%COMP%]{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-ms-flex:1;flex:1}[_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list>.mat-drawer-content{-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%] mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] mat-nav-list a[mat-list-item] .mat-list-item-content{font-size:14px}[_nghost-%COMP%] .mat-toolbar{font-weight:400}"] });
882
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListComponent, [{
883
+ type: Component,
884
+ args: [{ selector: 'td-layout-manage-list', template: "<mat-sidenav-container fullscreen [autosize]=\"containerAutosize\" class=\"td-layout-manage-list\">\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <ng-content select=\"mat-toolbar[td-sidenav-content]\"></ng-content>\n <div class=\"td-layout-manage-list-sidenav\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-manage-list-main\">\n <ng-content select=\"mat-toolbar\"></ng-content>\n <div class=\"td-layout-manage-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n</mat-sidenav-container>\n", styles: [":host{display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host mat-sidenav-container.td-layout-manage-list{-ms-flex:1;flex:1}:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opened,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opening,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closed,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closing{box-shadow:0 1px 3px rgba(0,0,0,.2)}:host .td-layout-manage-list-sidenav{text-align:start;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-manage-list-main{margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex}:host .td-layout-manage-list-main .td-layout-manage-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-ms-flex:1;flex:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer-content{-ms-flex-positive:1;flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host ::ng-deep mat-nav-list a[mat-list-item] .mat-list-item-content{font-size:14px}:host ::ng-deep .mat-toolbar{font-weight:400}\n"] }]
885
+ }], null, { sidenav: [{
886
+ type: ViewChild,
887
+ args: [MatSidenav, { static: true }]
888
+ }], mode: [{
889
+ type: Input
890
+ }], opened: [{
891
+ type: Input
892
+ }], sidenavWidth: [{
893
+ type: Input
894
+ }], containerAutosize: [{
895
+ type: Input
896
+ }] }); })();
897
+
898
+ class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
899
+ constructor(layout, renderer, elementRef) {
900
+ super(layout, renderer, elementRef);
901
+ }
902
+ set tdLayoutManageListToggle(tdLayoutManageListToggle) {
903
+ this.disabled = !(tdLayoutManageListToggle === '' || tdLayoutManageListToggle);
904
+ }
905
+ onClick() {
906
+ this._layout.toggle();
907
+ }
908
+ }
909
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListToggleDirective.ɵfac = function TdLayoutManageListToggleDirective_Factory(t) { return new (t || TdLayoutManageListToggleDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutManageListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
910
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListToggleDirective, selectors: [["", "tdLayoutManageListToggle", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListToggle: "tdLayoutManageListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
911
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListToggleDirective, [{
912
+ type: Directive,
913
+ args: [{
914
+ selector: '[tdLayoutManageListToggle]',
915
+ inputs: ['hideWhenOpened'],
916
+ }]
917
+ }], function () { return [{ type: TdLayoutManageListComponent, decorators: [{
918
+ type: Optional
919
+ }, {
920
+ type: Inject,
921
+ args: [forwardRef(() => TdLayoutManageListComponent)]
922
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutManageListToggle: [{
923
+ type: Input,
924
+ args: ['tdLayoutManageListToggle']
925
+ }] }); })();
926
+ class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
927
+ constructor(layout, renderer, elementRef) {
928
+ super(layout, renderer, elementRef);
929
+ }
930
+ set tdLayoutManageListClose(tdLayoutManageListClose) {
931
+ this.disabled = !(tdLayoutManageListClose === '' || tdLayoutManageListClose);
932
+ }
933
+ onClick() {
934
+ this._layout.close();
935
+ }
936
+ }
937
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListCloseDirective.ɵfac = function TdLayoutManageListCloseDirective_Factory(t) { return new (t || TdLayoutManageListCloseDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutManageListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
938
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListCloseDirective, selectors: [["", "tdLayoutManageListClose", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListClose: "tdLayoutManageListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
939
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListCloseDirective, [{
940
+ type: Directive,
941
+ args: [{
942
+ selector: '[tdLayoutManageListClose]',
943
+ inputs: ['hideWhenOpened'],
944
+ }]
945
+ }], function () { return [{ type: TdLayoutManageListComponent, decorators: [{
946
+ type: Optional
947
+ }, {
948
+ type: Inject,
949
+ args: [forwardRef(() => TdLayoutManageListComponent)]
950
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutManageListClose: [{
951
+ type: Input,
952
+ args: ['tdLayoutManageListClose']
953
+ }] }); })();
954
+ class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
955
+ constructor(layout, renderer, elementRef) {
956
+ super(layout, renderer, elementRef);
957
+ }
958
+ set tdLayoutManageListOpen(tdLayoutManageListOpen) {
959
+ this.disabled = !(tdLayoutManageListOpen === '' || tdLayoutManageListOpen);
960
+ }
961
+ onClick() {
962
+ this._layout.open();
963
+ }
964
+ }
965
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListOpenDirective.ɵfac = function TdLayoutManageListOpenDirective_Factory(t) { return new (t || TdLayoutManageListOpenDirective)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutManageListComponent), 8), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
966
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListOpenDirective, selectors: [["", "tdLayoutManageListOpen", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListOpen: "tdLayoutManageListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
967
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListOpenDirective, [{
968
+ type: Directive,
969
+ args: [{
970
+ selector: '[tdLayoutManageListOpen]',
971
+ inputs: ['hideWhenOpened'],
972
+ }]
973
+ }], function () { return [{ type: TdLayoutManageListComponent, decorators: [{
974
+ type: Optional
975
+ }, {
976
+ type: Inject,
977
+ args: [forwardRef(() => TdLayoutManageListComponent)]
978
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { tdLayoutManageListOpen: [{
979
+ type: Input,
980
+ args: ['tdLayoutManageListOpen']
981
+ }] }); })();
982
+
983
+ const _c0$1 = ["*"];
984
+ class TdLayoutFooterComponent {
985
+ constructor(_renderer, _elementRef) {
986
+ this._renderer = _renderer;
987
+ this._elementRef = _elementRef;
988
+ this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-footer');
989
+ }
990
+ /**
991
+ * color?: 'accent' | 'primary' | 'warn'
992
+ *
993
+ * Optional color option: primary | accent | warn.
994
+ */
995
+ set color(color) {
996
+ if (color) {
997
+ this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
998
+ this._color = color;
999
+ this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
1000
+ }
1001
+ }
1002
+ get color() {
1003
+ return this._color;
1004
+ }
1005
+ }
1006
+ /** @nocollapse */ /** @nocollapse */ TdLayoutFooterComponent.ɵfac = function TdLayoutFooterComponent_Factory(t) { return new (t || TdLayoutFooterComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
1007
+ /** @nocollapse */ /** @nocollapse */ TdLayoutFooterComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutFooterComponent, selectors: [["td-layout-footer"], ["td-layout-footer-inner"]], inputs: { color: "color" }, ngContentSelectors: _c0$1, decls: 1, vars: 0, template: function TdLayoutFooterComponent_Template(rf, ctx) { if (rf & 1) {
1008
+ i0.ɵɵprojectionDef();
1009
+ i0.ɵɵprojection(0);
1010
+ } }, styles: ["[_nghost-%COMP%]{display:block;padding:10px 16px}"] });
1011
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutFooterComponent, [{
1012
+ type: Component,
1013
+ args: [{ selector: 'td-layout-footer,td-layout-footer-inner', template: "<ng-content></ng-content>\n", styles: [":host{display:block;padding:10px 16px}\n"] }]
1014
+ }], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { color: [{
1015
+ type: Input,
1016
+ args: ['color']
1017
+ }] }); })();
1018
+
1019
+ function TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1020
+ i0.ɵɵelementStart(0, "mat-icon");
1021
+ i0.ɵɵtext(1);
1022
+ i0.ɵɵelementEnd();
1023
+ } if (rf & 2) {
1024
+ const ctx_r4 = i0.ɵɵnextContext(3);
1025
+ i0.ɵɵadvance(1);
1026
+ i0.ɵɵtextInterpolate(ctx_r4.icon);
1027
+ } }
1028
+ function TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
1029
+ i0.ɵɵelement(0, "mat-icon", 11);
1030
+ } if (rf & 2) {
1031
+ const ctx_r5 = i0.ɵɵnextContext(3);
1032
+ i0.ɵɵproperty("svgIcon", ctx_r5.logo);
1033
+ } }
1034
+ function TdNavigationDrawerComponent_ng_container_2_div_1_img_3_Template(rf, ctx) { if (rf & 1) {
1035
+ i0.ɵɵelement(0, "img", 12);
1036
+ } if (rf & 2) {
1037
+ const ctx_r6 = i0.ɵɵnextContext(3);
1038
+ i0.ɵɵattribute("src", ctx_r6.avatar, i0.ɵɵsanitizeUrl);
1039
+ } }
1040
+ function TdNavigationDrawerComponent_ng_container_2_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
1041
+ i0.ɵɵelementStart(0, "span", 13);
1042
+ i0.ɵɵtext(1);
1043
+ i0.ɵɵelementEnd();
1044
+ } if (rf & 2) {
1045
+ const ctx_r7 = i0.ɵɵnextContext(3);
1046
+ i0.ɵɵadvance(1);
1047
+ i0.ɵɵtextInterpolate(ctx_r7.sidenavTitle);
1048
+ } }
1049
+ function TdNavigationDrawerComponent_ng_container_2_div_1_Template(rf, ctx) { if (rf & 1) {
1050
+ const _r9 = i0.ɵɵgetCurrentView();
1051
+ i0.ɵɵelementStart(0, "div", 7);
1052
+ i0.ɵɵlistener("click", function TdNavigationDrawerComponent_ng_container_2_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.handleNavigationClick(); });
1053
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_1_Template, 2, 1, "mat-icon", 1);
1054
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_2_Template, 1, 1, "mat-icon", 8);
1055
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_1_img_3_Template, 1, 1, "img", 9);
1056
+ i0.ɵɵtemplate(4, TdNavigationDrawerComponent_ng_container_2_div_1_span_4_Template, 2, 1, "span", 10);
1057
+ i0.ɵɵelementEnd();
1058
+ } if (rf & 2) {
1059
+ const ctx_r1 = i0.ɵɵnextContext(2);
1060
+ i0.ɵɵclassProp("cursor-pointer", ctx_r1.routerEnabled);
1061
+ i0.ɵɵadvance(1);
1062
+ i0.ɵɵproperty("ngIf", ctx_r1.icon);
1063
+ i0.ɵɵadvance(1);
1064
+ i0.ɵɵproperty("ngIf", ctx_r1.logo && !ctx_r1.icon);
1065
+ i0.ɵɵadvance(1);
1066
+ i0.ɵɵproperty("ngIf", ctx_r1.avatar && !ctx_r1.logo && !ctx_r1.icon);
1067
+ i0.ɵɵadvance(1);
1068
+ i0.ɵɵproperty("ngIf", ctx_r1.sidenavTitle);
1069
+ } }
1070
+ function TdNavigationDrawerComponent_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
1071
+ i0.ɵɵelementStart(0, "div", 14);
1072
+ i0.ɵɵtext(1);
1073
+ i0.ɵɵelementEnd();
1074
+ } if (rf & 2) {
1075
+ const ctx_r2 = i0.ɵɵnextContext(2);
1076
+ i0.ɵɵadvance(1);
1077
+ i0.ɵɵtextInterpolate(ctx_r2.name);
1078
+ } }
1079
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1080
+ i0.ɵɵelementStart(0, "mat-icon");
1081
+ i0.ɵɵtext(1, "arrow_drop_down");
1082
+ i0.ɵɵelementEnd();
1083
+ } }
1084
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
1085
+ i0.ɵɵelementStart(0, "mat-icon");
1086
+ i0.ɵɵtext(1, "arrow_drop_up");
1087
+ i0.ɵɵelementEnd();
1088
+ } }
1089
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_Template(rf, ctx) { if (rf & 1) {
1090
+ i0.ɵɵelementStart(0, "button", 18);
1091
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_1_Template, 2, 0, "mat-icon", 1);
1092
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_2_Template, 2, 0, "mat-icon", 1);
1093
+ i0.ɵɵelementEnd();
1094
+ } if (rf & 2) {
1095
+ const ctx_r10 = i0.ɵɵnextContext(3);
1096
+ i0.ɵɵadvance(1);
1097
+ i0.ɵɵproperty("ngIf", !ctx_r10.menuToggled);
1098
+ i0.ɵɵadvance(1);
1099
+ i0.ɵɵproperty("ngIf", ctx_r10.menuToggled);
1100
+ } }
1101
+ function TdNavigationDrawerComponent_ng_container_2_div_3_Template(rf, ctx) { if (rf & 1) {
1102
+ const _r14 = i0.ɵɵgetCurrentView();
1103
+ i0.ɵɵelementStart(0, "div", 15);
1104
+ i0.ɵɵlistener("click", function TdNavigationDrawerComponent_ng_container_2_div_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(2); return ctx_r13.toggleMenu(); });
1105
+ i0.ɵɵelementStart(1, "span", 16);
1106
+ i0.ɵɵtext(2);
1107
+ i0.ɵɵelementEnd();
1108
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_Template, 3, 2, "button", 17);
1109
+ i0.ɵɵelementEnd();
1110
+ } if (rf & 2) {
1111
+ const ctx_r3 = i0.ɵɵnextContext(2);
1112
+ i0.ɵɵadvance(2);
1113
+ i0.ɵɵtextInterpolate(ctx_r3.email || ctx_r3.name);
1114
+ i0.ɵɵadvance(1);
1115
+ i0.ɵɵproperty("ngIf", ctx_r3.isMenuAvailable);
1116
+ } }
1117
+ function TdNavigationDrawerComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
1118
+ i0.ɵɵelementContainerStart(0);
1119
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_1_Template, 5, 6, "div", 4);
1120
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_2_Template, 2, 1, "div", 5);
1121
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_3_Template, 4, 2, "div", 6);
1122
+ i0.ɵɵelementContainerEnd();
1123
+ } if (rf & 2) {
1124
+ const ctx_r0 = i0.ɵɵnextContext();
1125
+ i0.ɵɵadvance(1);
1126
+ i0.ɵɵproperty("ngIf", ctx_r0.icon || ctx_r0.logo || ctx_r0.sidenavTitle || ctx_r0.avatar);
1127
+ i0.ɵɵadvance(1);
1128
+ i0.ɵɵproperty("ngIf", ctx_r0.email && ctx_r0.name);
1129
+ i0.ɵɵadvance(1);
1130
+ i0.ɵɵproperty("ngIf", ctx_r0.email || ctx_r0.name);
1131
+ } }
1132
+ const _c0 = [[["", "td-navigation-drawer-toolbar", ""]], "*", [["", "td-navigation-drawer-menu", ""]]];
1133
+ const _c1 = ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"];
1134
+ class TdNavigationDrawerMenuDirective {
1135
+ }
1136
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerMenuDirective.ɵfac = function TdNavigationDrawerMenuDirective_Factory(t) { return new (t || TdNavigationDrawerMenuDirective)(); };
1137
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerMenuDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdNavigationDrawerMenuDirective, selectors: [["", "td-navigation-drawer-menu", ""]] });
1138
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerMenuDirective, [{
1139
+ type: Directive,
1140
+ args: [{
1141
+ selector: '[td-navigation-drawer-menu]',
1142
+ }]
1143
+ }], null, null); })();
1144
+ class TdNavigationDrawerToolbarDirective {
1145
+ }
1146
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerToolbarDirective.ɵfac = function TdNavigationDrawerToolbarDirective_Factory(t) { return new (t || TdNavigationDrawerToolbarDirective)(); };
1147
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerToolbarDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdNavigationDrawerToolbarDirective, selectors: [["", "td-navigation-drawer-toolbar", ""]] });
1148
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerToolbarDirective, [{
1149
+ type: Directive,
1150
+ args: [{
1151
+ selector: '[td-navigation-drawer-toolbar]',
1152
+ }]
1153
+ }], null, null); })();
1154
+ class TdNavigationDrawerComponent {
1155
+ constructor(_layout, _router, _sanitize) {
1156
+ this._layout = _layout;
1157
+ this._router = _router;
1158
+ this._sanitize = _sanitize;
1159
+ this._menuToggled = false;
1160
+ }
1161
+ get menuToggled() {
1162
+ return this._menuToggled;
1163
+ }
1164
+ /**
1165
+ * Checks if there is a [TdNavigationDrawerMenuDirective] has content.
1166
+ */
1167
+ get isMenuAvailable() {
1168
+ return this._drawerMenu ? this._drawerMenu.length > 0 : false;
1169
+ }
1170
+ /**
1171
+ * Checks if there is a [TdNavigationDrawerToolbarDirective] has content.
1172
+ */
1173
+ get isCustomToolbar() {
1174
+ return this._toolbar ? this._toolbar.length > 0 : false;
1175
+ }
1176
+ /**
1177
+ * Checks if there is a background image for the toolbar.
1178
+ */
1179
+ get isBackgroundAvailable() {
1180
+ return !!this._backgroundImage;
1181
+ }
1182
+ /**
1183
+ * backgroundUrl?: SafeResourceUrl
1184
+ *
1185
+ * image to be displayed as the background of the toolbar.
1186
+ * URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
1187
+ */
1188
+ set backgroundUrl(backgroundUrl) {
1189
+ if (backgroundUrl) {
1190
+ const sanitizedUrl = this._sanitize.sanitize(SecurityContext.RESOURCE_URL, backgroundUrl);
1191
+ this._backgroundImage = this._sanitize.sanitize(SecurityContext.STYLE, 'url(' + sanitizedUrl + ')');
1192
+ }
1193
+ }
1194
+ get backgroundImage() {
1195
+ return this._backgroundImage;
1196
+ }
1197
+ /**
1198
+ * Checks if router was injected.
1199
+ */
1200
+ get routerEnabled() {
1201
+ return !!this._router && !!this.navigationRoute;
1202
+ }
1203
+ ngOnInit() {
1204
+ this._closeSubscription = this._layout.sidenav.openedChange.subscribe((opened) => {
1205
+ if (!opened) {
1206
+ this._menuToggled = false;
1207
+ }
1208
+ });
1209
+ }
1210
+ ngOnDestroy() {
1211
+ if (this._closeSubscription) {
1212
+ this._closeSubscription.unsubscribe();
1213
+ this._closeSubscription = undefined;
1214
+ }
1215
+ }
1216
+ toggleMenu() {
1217
+ if (this.isMenuAvailable) {
1218
+ this._menuToggled = !this._menuToggled;
1219
+ }
1220
+ }
1221
+ handleNavigationClick() {
1222
+ if (this.routerEnabled) {
1223
+ this._router.navigateByUrl(this.navigationRoute);
1224
+ this.close();
1225
+ }
1226
+ }
1227
+ /**
1228
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
1229
+ */
1230
+ toggle() {
1231
+ return this._layout.toggle();
1232
+ }
1233
+ /**
1234
+ * Proxy open method to access sidenav from outside (from td-layout template).
1235
+ */
1236
+ open() {
1237
+ return this._layout.open();
1238
+ }
1239
+ /**
1240
+ * Proxy close method to access sidenav from outside (from td-layout template).
1241
+ */
1242
+ close() {
1243
+ return this._layout.close();
1244
+ }
1245
+ }
1246
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerComponent.ɵfac = function TdNavigationDrawerComponent_Factory(t) { return new (t || TdNavigationDrawerComponent)(i0.ɵɵdirectiveInject(forwardRef(() => TdLayoutComponent)), i0.ɵɵdirectiveInject(i1$1.Router, 8), i0.ɵɵdirectiveInject(i2$1.DomSanitizer)); };
1247
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdNavigationDrawerComponent, selectors: [["td-navigation-drawer"]], contentQueries: function TdNavigationDrawerComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1248
+ i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerMenuDirective, 5);
1249
+ i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerToolbarDirective, 5);
1250
+ } if (rf & 2) {
1251
+ let _t;
1252
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._drawerMenu = _t);
1253
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._toolbar = _t);
1254
+ } }, inputs: { sidenavTitle: "sidenavTitle", icon: "icon", logo: "logo", avatar: "avatar", color: "color", navigationRoute: "navigationRoute", backgroundUrl: "backgroundUrl", name: "name", email: "email" }, ngContentSelectors: _c1, decls: 7, vars: 8, consts: [[1, "td-nagivation-drawer-toolbar", 3, "color"], [4, "ngIf"], [1, "td-navigation-drawer-content"], [1, "td-navigation-drawer-menu-content"], ["class", "td-navigation-drawer-toolbar-content", 3, "cursor-pointer", "click", 4, "ngIf"], ["class", "td-navigation-drawer-name", 4, "ngIf"], ["class", "td-navigation-drawer-menu-toggle", "href", "", 3, "click", 4, "ngIf"], [1, "td-navigation-drawer-toolbar-content", 3, "click"], ["class", "mat-icon-logo", 3, "svgIcon", 4, "ngIf"], ["class", "td-nagivation-drawer-toolbar-avatar", 4, "ngIf"], ["class", "td-navigation-drawer-title", 4, "ngIf"], [1, "mat-icon-logo", 3, "svgIcon"], [1, "td-nagivation-drawer-toolbar-avatar"], [1, "td-navigation-drawer-title"], [1, "td-navigation-drawer-name"], ["href", "", 1, "td-navigation-drawer-menu-toggle", 3, "click"], [1, "td-navigation-drawer-label"], ["mat-icon-button", "", "class", "td-navigation-drawer-menu-button", 4, "ngIf"], ["mat-icon-button", "", 1, "td-navigation-drawer-menu-button"]], template: function TdNavigationDrawerComponent_Template(rf, ctx) { if (rf & 1) {
1255
+ i0.ɵɵprojectionDef(_c0);
1256
+ i0.ɵɵelementStart(0, "mat-toolbar", 0);
1257
+ i0.ɵɵprojection(1);
1258
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_Template, 4, 3, "ng-container", 1);
1259
+ i0.ɵɵelementEnd();
1260
+ i0.ɵɵelementStart(3, "div", 2);
1261
+ i0.ɵɵprojection(4, 1);
1262
+ i0.ɵɵelementEnd();
1263
+ i0.ɵɵelementStart(5, "div", 3);
1264
+ i0.ɵɵprojection(6, 2);
1265
+ i0.ɵɵelementEnd();
1266
+ } if (rf & 2) {
1267
+ i0.ɵɵstyleProp("background-image", ctx.backgroundImage);
1268
+ i0.ɵɵclassProp("td-toolbar-background", !!ctx.isBackgroundAvailable);
1269
+ i0.ɵɵproperty("color", ctx.color);
1270
+ i0.ɵɵadvance(2);
1271
+ i0.ɵɵproperty("ngIf", !ctx.isCustomToolbar);
1272
+ i0.ɵɵadvance(1);
1273
+ i0.ɵɵproperty("@tdCollapse", ctx.menuToggled);
1274
+ i0.ɵɵadvance(2);
1275
+ i0.ɵɵproperty("@tdCollapse", !ctx.menuToggled);
1276
+ } }, directives: [i3.MatToolbar, i3$1.NgIf, i5.MatIcon, i6.MatButton], styles: ["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .td-navigation-drawer-content.ng-animating[_ngcontent-%COMP%], [_nghost-%COMP%] .td-navigation-drawer-menu-content.ng-animating[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%]{padding:16px}[_nghost-%COMP%] mat-toolbar.td-toolbar-background[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] mat-toolbar.td-nagivation-drawer-toolbar[_ngcontent-%COMP%]{-ms-flex-direction:column;flex-direction:column;height:auto!important;display:block!important}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%] .td-nagivation-drawer-toolbar-avatar[_ngcontent-%COMP%]{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-toolbar-content[_ngcontent-%COMP%] .td-navigation-drawer-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%] .td-navigation-drawer-label[_ngcontent-%COMP%]{-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .td-navigation-drawer-menu-toggle[_ngcontent-%COMP%] .td-navigation-drawer-menu-button[_ngcontent-%COMP%]{height:24px;line-height:24px;width:24px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{overflow:hidden}"], data: { animation: [tdCollapseAnimation] } });
1277
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerComponent, [{
1278
+ type: Component,
1279
+ args: [{ selector: 'td-navigation-drawer', animations: [tdCollapseAnimation], template: "<mat-toolbar\n [color]=\"color\"\n [style.background-image]=\"backgroundImage\"\n [class.td-toolbar-background]=\"!!isBackgroundAvailable\"\n class=\"td-nagivation-drawer-toolbar\"\n>\n <ng-content select=\"[td-navigation-drawer-toolbar]\"></ng-content>\n <ng-container *ngIf=\"!isCustomToolbar\">\n <div\n *ngIf=\"icon || logo || sidenavTitle || avatar\"\n class=\"td-navigation-drawer-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon *ngIf=\"logo && !icon\" class=\"mat-icon-logo\" [svgIcon]=\"logo\"></mat-icon>\n <img *ngIf=\"avatar && !logo && !icon\" class=\"td-nagivation-drawer-toolbar-avatar\" [attr.src]=\"avatar\" />\n <span *ngIf=\"sidenavTitle\" class=\"td-navigation-drawer-title\">{{ sidenavTitle }}</span>\n </div>\n <div class=\"td-navigation-drawer-name\" *ngIf=\"email && name\">{{ name }}</div>\n <div class=\"td-navigation-drawer-menu-toggle\" href *ngIf=\"email || name\" (click)=\"toggleMenu()\">\n <span class=\"td-navigation-drawer-label\">{{ email || name }}</span>\n <button mat-icon-button class=\"td-navigation-drawer-menu-button\" *ngIf=\"isMenuAvailable\">\n <mat-icon *ngIf=\"!menuToggled\">arrow_drop_down</mat-icon>\n <mat-icon *ngIf=\"menuToggled\">arrow_drop_up</mat-icon>\n </button>\n </div>\n </ng-container>\n</mat-toolbar>\n<div class=\"td-navigation-drawer-content\" [@tdCollapse]=\"menuToggled\">\n <ng-content></ng-content>\n</div>\n<div class=\"td-navigation-drawer-menu-content\" [@tdCollapse]=\"!menuToggled\">\n <ng-content select=\"[td-navigation-drawer-menu]\"></ng-content>\n</div>\n", styles: [":host{width:100%}:host .td-navigation-drawer-content.ng-animating,:host .td-navigation-drawer-menu-content.ng-animating{overflow:hidden}:host mat-toolbar{padding:16px}:host mat-toolbar.td-toolbar-background{background-repeat:no-repeat;background-size:cover}:host mat-toolbar.td-nagivation-drawer-toolbar{-ms-flex-direction:column;flex-direction:column;height:auto!important;display:block!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;-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-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-navigation-drawer-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{height:24px;line-height:24px;width:24px}:host>div{overflow:hidden}\n"] }]
1280
+ }], function () { return [{ type: TdLayoutComponent, decorators: [{
1281
+ type: Inject,
1282
+ args: [forwardRef(() => TdLayoutComponent)]
1283
+ }] }, { type: i1$1.Router, decorators: [{
1284
+ type: Optional
1285
+ }] }, { type: i2$1.DomSanitizer }]; }, { _drawerMenu: [{
1286
+ type: ContentChildren,
1287
+ args: [TdNavigationDrawerMenuDirective, { descendants: true }]
1288
+ }], _toolbar: [{
1289
+ type: ContentChildren,
1290
+ args: [TdNavigationDrawerToolbarDirective, { descendants: true }]
1291
+ }], sidenavTitle: [{
1292
+ type: Input
1293
+ }], icon: [{
1294
+ type: Input
1295
+ }], logo: [{
1296
+ type: Input
1297
+ }], avatar: [{
1298
+ type: Input
1299
+ }], color: [{
1300
+ type: Input
1301
+ }], navigationRoute: [{
1302
+ type: Input
1303
+ }], backgroundUrl: [{
1304
+ type: Input,
1305
+ args: ['backgroundUrl']
1306
+ }], name: [{
1307
+ type: Input
1308
+ }], email: [{
1309
+ type: Input
1310
+ }] }); })();
1311
+
1312
+ const TD_LAYOUTS = [
1313
+ TdLayoutComponent,
1314
+ TdLayoutToggleDirective,
1315
+ TdLayoutCloseDirective,
1316
+ TdLayoutOpenDirective,
1317
+ TdLayoutNavComponent,
1318
+ TdLayoutNavListComponent,
1319
+ TdLayoutNavListToggleDirective,
1320
+ TdLayoutNavListCloseDirective,
1321
+ TdLayoutNavListOpenDirective,
1322
+ TdLayoutCardOverComponent,
1323
+ TdLayoutManageListComponent,
1324
+ TdLayoutManageListToggleDirective,
1325
+ TdLayoutManageListCloseDirective,
1326
+ TdLayoutManageListOpenDirective,
1327
+ TdLayoutFooterComponent,
1328
+ TdNavigationDrawerComponent,
1329
+ TdNavigationDrawerMenuDirective,
1330
+ TdNavigationDrawerToolbarDirective,
1331
+ ];
1332
+ class CovalentLayoutModule {
1333
+ }
1334
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵfac = function CovalentLayoutModule_Factory(t) { return new (t || CovalentLayoutModule)(); };
1335
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentLayoutModule });
1336
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[
1337
+ CommonModule,
1338
+ ScrollingModule,
1339
+ MatSidenavModule,
1340
+ MatToolbarModule,
1341
+ MatButtonModule,
1342
+ MatIconModule,
1343
+ MatCardModule,
1344
+ MatDividerModule,
1345
+ CovalentMenuModule,
1346
+ ]] });
1347
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentLayoutModule, [{
1348
+ type: NgModule,
1349
+ args: [{
1350
+ imports: [
1351
+ CommonModule,
1352
+ ScrollingModule,
1353
+ MatSidenavModule,
1354
+ MatToolbarModule,
1355
+ MatButtonModule,
1356
+ MatIconModule,
1357
+ MatCardModule,
1358
+ MatDividerModule,
1359
+ CovalentMenuModule,
1360
+ ],
1361
+ declarations: [TD_LAYOUTS],
1362
+ exports: [TD_LAYOUTS],
1363
+ }]
1364
+ }], null, null); })();
1365
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentLayoutModule, { declarations: [TdLayoutComponent,
1366
+ TdLayoutToggleDirective,
1367
+ TdLayoutCloseDirective,
1368
+ TdLayoutOpenDirective,
1369
+ TdLayoutNavComponent,
1370
+ TdLayoutNavListComponent,
1371
+ TdLayoutNavListToggleDirective,
1372
+ TdLayoutNavListCloseDirective,
1373
+ TdLayoutNavListOpenDirective,
1374
+ TdLayoutCardOverComponent,
1375
+ TdLayoutManageListComponent,
1376
+ TdLayoutManageListToggleDirective,
1377
+ TdLayoutManageListCloseDirective,
1378
+ TdLayoutManageListOpenDirective,
1379
+ TdLayoutFooterComponent,
1380
+ TdNavigationDrawerComponent,
1381
+ TdNavigationDrawerMenuDirective,
1382
+ TdNavigationDrawerToolbarDirective], imports: [CommonModule,
1383
+ ScrollingModule,
1384
+ MatSidenavModule,
1385
+ MatToolbarModule,
1386
+ MatButtonModule,
1387
+ MatIconModule,
1388
+ MatCardModule,
1389
+ MatDividerModule,
1390
+ CovalentMenuModule], exports: [TdLayoutComponent,
1391
+ TdLayoutToggleDirective,
1392
+ TdLayoutCloseDirective,
1393
+ TdLayoutOpenDirective,
1394
+ TdLayoutNavComponent,
1395
+ TdLayoutNavListComponent,
1396
+ TdLayoutNavListToggleDirective,
1397
+ TdLayoutNavListCloseDirective,
1398
+ TdLayoutNavListOpenDirective,
1399
+ TdLayoutCardOverComponent,
1400
+ TdLayoutManageListComponent,
1401
+ TdLayoutManageListToggleDirective,
1402
+ TdLayoutManageListCloseDirective,
1403
+ TdLayoutManageListOpenDirective,
1404
+ TdLayoutFooterComponent,
1405
+ TdNavigationDrawerComponent,
1406
+ TdNavigationDrawerMenuDirective,
1407
+ TdNavigationDrawerToolbarDirective] }); })();
1408
+
1409
+ /**
1410
+ * Generated bundle index. Do not edit.
1411
+ */
1412
+
1413
+ export { BaseLayoutToggleDirective, CovalentLayoutModule, LayoutToggleBase, TdLayoutCardOverComponent, TdLayoutCloseDirective, TdLayoutComponent, TdLayoutFooterComponent, TdLayoutManageListCloseDirective, TdLayoutManageListComponent, TdLayoutManageListOpenDirective, TdLayoutManageListToggleDirective, TdLayoutNavComponent, TdLayoutNavListCloseDirective, TdLayoutNavListComponent, TdLayoutNavListOpenDirective, TdLayoutNavListToggleDirective, TdLayoutOpenDirective, TdLayoutToggleDirective, TdNavigationDrawerComponent, TdNavigationDrawerMenuDirective, TdNavigationDrawerToolbarDirective, _TdLayoutToggleMixinBase };
1414
+ //# sourceMappingURL=covalent-core-layout.mjs.map