@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,1577 @@
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) {
98
+ if (rf & 1) {
99
+ i0.ɵɵviewQuery(MatSidenav, 7);
100
+ }
101
+ if (rf & 2) {
102
+ let _t;
103
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
104
+ }
105
+ }, 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) {
106
+ if (rf & 1) {
107
+ i0.ɵɵprojectionDef(_c0$6);
108
+ i0.ɵɵelementStart(0, "mat-sidenav-container", 0);
109
+ i0.ɵɵelementStart(1, "mat-sidenav", 1, 2);
110
+ i0.ɵɵprojection(3);
111
+ i0.ɵɵprojection(4, 1);
112
+ i0.ɵɵelementEnd();
113
+ i0.ɵɵprojection(5, 2);
114
+ i0.ɵɵelementEnd();
115
+ }
116
+ if (rf & 2) {
117
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
118
+ i0.ɵɵadvance(1);
119
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
120
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
121
+ }
122
+ }, 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}"] });
123
+ (function () {
124
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutComponent, [{
125
+ type: Component,
126
+ 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"] }]
127
+ }], null, { sidenav: [{
128
+ type: ViewChild,
129
+ args: [MatSidenav, { static: true }]
130
+ }], mode: [{
131
+ type: Input
132
+ }], opened: [{
133
+ type: Input
134
+ }], sidenavWidth: [{
135
+ type: Input
136
+ }], containerAutosize: [{
137
+ type: Input
138
+ }] });
139
+ })();
140
+
141
+ class LayoutToggleBase {
142
+ }
143
+ /* tslint:disable-next-line */
144
+ const _TdLayoutToggleMixinBase = mixinDisabled(LayoutToggleBase);
145
+ class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
146
+ constructor(_layout, _renderer, _elementRef) {
147
+ super();
148
+ this._layout = _layout;
149
+ this._renderer = _renderer;
150
+ this._elementRef = _elementRef;
151
+ this._initialized = false;
152
+ this._hideWhenOpened = false;
153
+ // if layout has not been provided
154
+ // show warn message
155
+ if (!this._layout) {
156
+ this._noLayoutMessage();
157
+ }
158
+ this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-menu-button');
159
+ }
160
+ /**
161
+ * hideWhenOpened?: boolean
162
+ * When this is set to true, the host will be hidden when
163
+ * the sidenav is opened.
164
+ */
165
+ set hideWhenOpened(hideWhenOpened) {
166
+ this._hideWhenOpened = hideWhenOpened;
167
+ if (this._initialized) {
168
+ this._toggleVisibility();
169
+ }
170
+ }
171
+ ngAfterViewInit() {
172
+ this._initialized = true;
173
+ if (this._layout && this._layout.sidenav) {
174
+ this._toggleSubs = this._layout.sidenav._animationStarted.subscribe(() => {
175
+ this._toggleVisibility();
176
+ });
177
+ }
178
+ // execute toggleVisibility since the onOpenStart and onCloseStart
179
+ // methods might not be executed always when the element is rendered
180
+ this._toggleVisibility();
181
+ }
182
+ ngOnDestroy() {
183
+ if (this._toggleSubs) {
184
+ this._toggleSubs.unsubscribe();
185
+ this._toggleSubs = undefined;
186
+ }
187
+ }
188
+ /**
189
+ * Listens to host click event to trigger the layout toggle
190
+ */
191
+ clickListener(event) {
192
+ event.preventDefault();
193
+ if (!this.disabled) {
194
+ // if layout has been provided, try triggering the click on it
195
+ // else show warn message
196
+ if (this._layout && this._layout.open) {
197
+ this.onClick();
198
+ }
199
+ else {
200
+ this._noLayoutMessage();
201
+ }
202
+ }
203
+ }
204
+ _toggleVisibility() {
205
+ if (this._layout) {
206
+ if (this._layout.sidenav.opened && this._hideWhenOpened) {
207
+ this._renderer.setStyle(this._elementRef.nativeElement, 'display', 'none');
208
+ }
209
+ else {
210
+ this._renderer.setStyle(this._elementRef.nativeElement, 'display', '');
211
+ }
212
+ }
213
+ }
214
+ _noLayoutMessage() {
215
+ /* tslint:disable-next-line */
216
+ console.warn('Covalent: Parent layout not found for layout toggle directive');
217
+ }
218
+ }
219
+ /** @nocollapse */ /** @nocollapse */ BaseLayoutToggleDirective.ɵfac = function BaseLayoutToggleDirective_Factory(t) { i0.ɵɵinvalidFactory(); };
220
+ /** @nocollapse */ /** @nocollapse */ BaseLayoutToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: BaseLayoutToggleDirective, hostBindings: function BaseLayoutToggleDirective_HostBindings(rf, ctx) {
221
+ if (rf & 1) {
222
+ i0.ɵɵlistener("click", function BaseLayoutToggleDirective_click_HostBindingHandler($event) { return ctx.clickListener($event); });
223
+ }
224
+ }, inputs: { hideWhenOpened: "hideWhenOpened" }, features: [i0.ɵɵInheritDefinitionFeature] });
225
+ (function () {
226
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseLayoutToggleDirective, [{
227
+ type: Directive
228
+ }], function () { return [{ type: undefined }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { hideWhenOpened: [{
229
+ type: Input,
230
+ args: ['hideWhenOpened']
231
+ }], clickListener: [{
232
+ type: HostListener,
233
+ args: ['click', ['$event']]
234
+ }] });
235
+ })();
236
+
237
+ class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
238
+ constructor(layout, renderer, elementRef) {
239
+ super(layout, renderer, elementRef);
240
+ }
241
+ set tdLayoutToggle(tdLayoutToggle) {
242
+ this.disabled = !(tdLayoutToggle === '' || tdLayoutToggle);
243
+ }
244
+ onClick() {
245
+ this._layout.toggle();
246
+ }
247
+ }
248
+ /** @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)); };
249
+ /** @nocollapse */ /** @nocollapse */ TdLayoutToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutToggleDirective, selectors: [["", "tdLayoutToggle", ""]], inputs: { tdLayoutToggle: "tdLayoutToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
250
+ (function () {
251
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutToggleDirective, [{
252
+ type: Directive,
253
+ args: [{
254
+ selector: '[tdLayoutToggle]',
255
+ }]
256
+ }], function () {
257
+ return [{ type: TdLayoutComponent, decorators: [{
258
+ type: Optional
259
+ }, {
260
+ type: Inject,
261
+ args: [forwardRef(() => TdLayoutComponent)]
262
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
263
+ }, { tdLayoutToggle: [{
264
+ type: Input,
265
+ args: ['tdLayoutToggle']
266
+ }] });
267
+ })();
268
+ class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
269
+ constructor(layout, renderer, elementRef) {
270
+ super(layout, renderer, elementRef);
271
+ }
272
+ set tdLayoutClose(tdLayoutClose) {
273
+ this.disabled = !(tdLayoutClose === '' || tdLayoutClose);
274
+ }
275
+ onClick() {
276
+ this._layout.close();
277
+ }
278
+ }
279
+ /** @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)); };
280
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutCloseDirective, selectors: [["", "tdLayoutClose", ""]], inputs: { tdLayoutClose: "tdLayoutClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
281
+ (function () {
282
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCloseDirective, [{
283
+ type: Directive,
284
+ args: [{
285
+ selector: '[tdLayoutClose]',
286
+ }]
287
+ }], function () {
288
+ return [{ type: TdLayoutComponent, decorators: [{
289
+ type: Optional
290
+ }, {
291
+ type: Inject,
292
+ args: [forwardRef(() => TdLayoutComponent)]
293
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
294
+ }, { tdLayoutClose: [{
295
+ type: Input,
296
+ args: ['tdLayoutClose']
297
+ }] });
298
+ })();
299
+ class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
300
+ constructor(layout, renderer, elementRef) {
301
+ super(layout, renderer, elementRef);
302
+ }
303
+ set tdLayoutClose(tdLayoutOpen) {
304
+ this.disabled = !(tdLayoutOpen === '' || tdLayoutOpen);
305
+ }
306
+ onClick() {
307
+ this._layout.open();
308
+ }
309
+ }
310
+ /** @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)); };
311
+ /** @nocollapse */ /** @nocollapse */ TdLayoutOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutOpenDirective, selectors: [["", "tdLayoutOpen", ""]], inputs: { tdLayoutClose: ["tdLayoutOpen", "tdLayoutClose"] }, features: [i0.ɵɵInheritDefinitionFeature] });
312
+ (function () {
313
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutOpenDirective, [{
314
+ type: Directive,
315
+ args: [{
316
+ selector: '[tdLayoutOpen]',
317
+ }]
318
+ }], function () {
319
+ return [{ type: TdLayoutComponent, decorators: [{
320
+ type: Optional
321
+ }, {
322
+ type: Inject,
323
+ args: [forwardRef(() => TdLayoutComponent)]
324
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
325
+ }, { tdLayoutClose: [{
326
+ type: Input,
327
+ args: ['tdLayoutOpen']
328
+ }] });
329
+ })();
330
+
331
+ function TdLayoutNavComponent_span_3_mat_icon_1_Template(rf, ctx) {
332
+ if (rf & 1) {
333
+ i0.ɵɵelementStart(0, "mat-icon");
334
+ i0.ɵɵtext(1);
335
+ i0.ɵɵelementEnd();
336
+ }
337
+ if (rf & 2) {
338
+ const ctx_r1 = i0.ɵɵnextContext(2);
339
+ i0.ɵɵadvance(1);
340
+ i0.ɵɵtextInterpolate(ctx_r1.icon);
341
+ }
342
+ }
343
+ function TdLayoutNavComponent_span_3_mat_icon_2_Template(rf, ctx) {
344
+ if (rf & 1) {
345
+ i0.ɵɵelement(0, "mat-icon", 7);
346
+ }
347
+ if (rf & 2) {
348
+ const ctx_r2 = i0.ɵɵnextContext(2);
349
+ i0.ɵɵproperty("svgIcon", ctx_r2.logo);
350
+ }
351
+ }
352
+ function TdLayoutNavComponent_span_3_span_3_Template(rf, ctx) {
353
+ if (rf & 1) {
354
+ i0.ɵɵelementStart(0, "span");
355
+ i0.ɵɵtext(1);
356
+ i0.ɵɵelementEnd();
357
+ }
358
+ if (rf & 2) {
359
+ const ctx_r3 = i0.ɵɵnextContext(2);
360
+ i0.ɵɵadvance(1);
361
+ i0.ɵɵtextInterpolate(ctx_r3.toolbarTitle);
362
+ }
363
+ }
364
+ function TdLayoutNavComponent_span_3_Template(rf, ctx) {
365
+ if (rf & 1) {
366
+ const _r5 = i0.ɵɵgetCurrentView();
367
+ i0.ɵɵelementStart(0, "span", 4);
368
+ i0.ɵɵlistener("click", function TdLayoutNavComponent_span_3_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.handleNavigationClick(); });
369
+ i0.ɵɵtemplate(1, TdLayoutNavComponent_span_3_mat_icon_1_Template, 2, 1, "mat-icon", 5);
370
+ i0.ɵɵtemplate(2, TdLayoutNavComponent_span_3_mat_icon_2_Template, 1, 1, "mat-icon", 6);
371
+ i0.ɵɵtemplate(3, TdLayoutNavComponent_span_3_span_3_Template, 2, 1, "span", 5);
372
+ i0.ɵɵelementEnd();
373
+ }
374
+ if (rf & 2) {
375
+ const ctx_r0 = i0.ɵɵnextContext();
376
+ i0.ɵɵclassProp("cursor-pointer", ctx_r0.routerEnabled);
377
+ i0.ɵɵadvance(1);
378
+ i0.ɵɵproperty("ngIf", ctx_r0.icon);
379
+ i0.ɵɵadvance(1);
380
+ i0.ɵɵproperty("ngIf", ctx_r0.logo && !ctx_r0.icon);
381
+ i0.ɵɵadvance(1);
382
+ i0.ɵɵproperty("ngIf", ctx_r0.toolbarTitle);
383
+ }
384
+ }
385
+ const _c0$5 = [[["", "td-menu-button", ""]], [["", "td-toolbar-content", ""]], "*", [["td-layout-footer"]]];
386
+ const _c1$4 = ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"];
387
+ class TdLayoutNavComponent {
388
+ constructor(_router) {
389
+ this._router = _router;
390
+ /**
391
+ * color?: 'accent' | 'primary' | 'warn'
392
+ *
393
+ * toolbar color option: primary | accent | warn.
394
+ * If [color] is not set, primary is used.
395
+ */
396
+ this.color = 'primary';
397
+ }
398
+ /**
399
+ * Checks if router was injected.
400
+ */
401
+ get routerEnabled() {
402
+ return !!this._router && !!this.navigationRoute;
403
+ }
404
+ handleNavigationClick() {
405
+ if (this.routerEnabled) {
406
+ this._router.navigateByUrl(this.navigationRoute);
407
+ }
408
+ }
409
+ }
410
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavComponent.ɵfac = function TdLayoutNavComponent_Factory(t) { return new (t || TdLayoutNavComponent)(i0.ɵɵdirectiveInject(i1$1.Router, 8)); };
411
+ /** @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) {
412
+ if (rf & 1) {
413
+ i0.ɵɵprojectionDef(_c0$5);
414
+ i0.ɵɵelementStart(0, "div", 0);
415
+ i0.ɵɵelementStart(1, "mat-toolbar", 1);
416
+ i0.ɵɵprojection(2);
417
+ i0.ɵɵtemplate(3, TdLayoutNavComponent_span_3_Template, 4, 5, "span", 2);
418
+ i0.ɵɵprojection(4, 1);
419
+ i0.ɵɵelementEnd();
420
+ i0.ɵɵelementStart(5, "div", 3);
421
+ i0.ɵɵprojection(6, 2);
422
+ i0.ɵɵelementEnd();
423
+ i0.ɵɵprojection(7, 3);
424
+ i0.ɵɵelementEnd();
425
+ }
426
+ if (rf & 2) {
427
+ i0.ɵɵadvance(1);
428
+ i0.ɵɵproperty("color", ctx.color);
429
+ i0.ɵɵadvance(2);
430
+ i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
431
+ }
432
+ }, 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}"] });
433
+ (function () {
434
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavComponent, [{
435
+ type: Component,
436
+ 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"] }]
437
+ }], function () {
438
+ return [{ type: i1$1.Router, decorators: [{
439
+ type: Optional
440
+ }] }];
441
+ }, { toolbarTitle: [{
442
+ type: Input
443
+ }], icon: [{
444
+ type: Input
445
+ }], logo: [{
446
+ type: Input
447
+ }], color: [{
448
+ type: Input
449
+ }], navigationRoute: [{
450
+ type: Input
451
+ }] });
452
+ })();
453
+
454
+ function TdLayoutNavListComponent_span_6_mat_icon_1_Template(rf, ctx) {
455
+ if (rf & 1) {
456
+ i0.ɵɵelementStart(0, "mat-icon");
457
+ i0.ɵɵtext(1);
458
+ i0.ɵɵelementEnd();
459
+ }
460
+ if (rf & 2) {
461
+ const ctx_r2 = i0.ɵɵnextContext(2);
462
+ i0.ɵɵadvance(1);
463
+ i0.ɵɵtextInterpolate(ctx_r2.icon);
464
+ }
465
+ }
466
+ function TdLayoutNavListComponent_span_6_mat_icon_2_Template(rf, ctx) {
467
+ if (rf & 1) {
468
+ i0.ɵɵelement(0, "mat-icon", 11);
469
+ }
470
+ if (rf & 2) {
471
+ const ctx_r3 = i0.ɵɵnextContext(2);
472
+ i0.ɵɵproperty("svgIcon", ctx_r3.logo);
473
+ }
474
+ }
475
+ function TdLayoutNavListComponent_span_6_span_3_Template(rf, ctx) {
476
+ if (rf & 1) {
477
+ i0.ɵɵelementStart(0, "span");
478
+ i0.ɵɵtext(1);
479
+ i0.ɵɵelementEnd();
480
+ }
481
+ if (rf & 2) {
482
+ const ctx_r4 = i0.ɵɵnextContext(2);
483
+ i0.ɵɵadvance(1);
484
+ i0.ɵɵtextInterpolate(ctx_r4.toolbarTitle);
485
+ }
486
+ }
487
+ function TdLayoutNavListComponent_span_6_Template(rf, ctx) {
488
+ if (rf & 1) {
489
+ const _r6 = i0.ɵɵgetCurrentView();
490
+ i0.ɵɵelementStart(0, "span", 8);
491
+ i0.ɵɵlistener("click", function TdLayoutNavListComponent_span_6_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.handleNavigationClick(); });
492
+ i0.ɵɵtemplate(1, TdLayoutNavListComponent_span_6_mat_icon_1_Template, 2, 1, "mat-icon", 9);
493
+ i0.ɵɵtemplate(2, TdLayoutNavListComponent_span_6_mat_icon_2_Template, 1, 1, "mat-icon", 10);
494
+ i0.ɵɵtemplate(3, TdLayoutNavListComponent_span_6_span_3_Template, 2, 1, "span", 9);
495
+ i0.ɵɵelementEnd();
496
+ }
497
+ if (rf & 2) {
498
+ const ctx_r1 = i0.ɵɵnextContext();
499
+ i0.ɵɵclassProp("cursor-pointer", ctx_r1.routerEnabled);
500
+ i0.ɵɵadvance(1);
501
+ i0.ɵɵproperty("ngIf", ctx_r1.icon);
502
+ i0.ɵɵadvance(1);
503
+ i0.ɵɵproperty("ngIf", ctx_r1.logo && !ctx_r1.icon);
504
+ i0.ɵɵadvance(1);
505
+ i0.ɵɵproperty("ngIf", ctx_r1.toolbarTitle);
506
+ }
507
+ }
508
+ const _c0$4 = [[["", "td-menu-button", ""]], [["", "td-sidenav-toolbar-content", ""]], [["", "td-sidenav-content", ""]], [["", "td-toolbar-content", ""]], "*", [["td-layout-footer-inner"]], [["td-layout-footer"]]];
509
+ const _c1$3 = ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"];
510
+ class TdLayoutNavListComponent {
511
+ constructor(_router) {
512
+ this._router = _router;
513
+ /**
514
+ * color?: 'accent' | 'primary' | 'warn'
515
+ *
516
+ * toolbar color option: primary | accent | warn.
517
+ * If [color] is not set, primary is used.
518
+ */
519
+ this.color = 'primary';
520
+ /**
521
+ * mode?: 'side', 'push' or 'over'
522
+ *
523
+ * The mode or styling of the sidenav.
524
+ * Defaults to "side".
525
+ * See "MatSidenav" documentation for more info.
526
+ *
527
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
528
+ */
529
+ this.mode = 'side';
530
+ /**
531
+ * opened?: boolean
532
+ * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
533
+ * Defaults to "true".
534
+ *
535
+ * See "MatSidenav" documentation for more info.
536
+ *
537
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
538
+ */
539
+ this.opened = true;
540
+ /**
541
+ * sidenavWidth?: string
542
+ *
543
+ * Sets the "width" of the sidenav in either "px" or "%"
544
+ * Defaults to "350px".
545
+ *
546
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
547
+ */
548
+ this.sidenavWidth = '350px';
549
+ /**
550
+ * containerAutosize?: boolean
551
+ *
552
+ * Sets "autosize" of the sidenav-container.
553
+ * Defaults to "false".
554
+ *
555
+ * See documentation for more info and potential performance risks.
556
+ *
557
+ * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
558
+ */
559
+ this.containerAutosize = false;
560
+ }
561
+ /**
562
+ * Checks if `ESC` should close the sidenav
563
+ * Should only close it for `push` and `over` modes
564
+ */
565
+ get disableClose() {
566
+ return this.mode === 'side';
567
+ }
568
+ /**
569
+ * Checks if router was injected.
570
+ */
571
+ get routerEnabled() {
572
+ return !!this._router && !!this.navigationRoute;
573
+ }
574
+ handleNavigationClick() {
575
+ if (this.routerEnabled) {
576
+ this._router.navigateByUrl(this.navigationRoute);
577
+ }
578
+ }
579
+ /**
580
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
581
+ */
582
+ toggle() {
583
+ return this.sidenav.toggle(!this.sidenav.opened);
584
+ }
585
+ /**
586
+ * Proxy open method to access sidenav from outside (from td-layout template).
587
+ */
588
+ open() {
589
+ return this.sidenav.open();
590
+ }
591
+ /**
592
+ * Proxy close method to access sidenav from outside (from td-layout template).
593
+ */
594
+ close() {
595
+ return this.sidenav.close();
596
+ }
597
+ }
598
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListComponent.ɵfac = function TdLayoutNavListComponent_Factory(t) { return new (t || TdLayoutNavListComponent)(i0.ɵɵdirectiveInject(i1$1.Router, 8)); };
599
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutNavListComponent, selectors: [["td-layout-nav-list"]], viewQuery: function TdLayoutNavListComponent_Query(rf, ctx) {
600
+ if (rf & 1) {
601
+ i0.ɵɵviewQuery(MatSidenav, 7);
602
+ }
603
+ if (rf & 2) {
604
+ let _t;
605
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
606
+ }
607
+ }, 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) {
608
+ if (rf & 1) {
609
+ i0.ɵɵprojectionDef(_c0$4);
610
+ i0.ɵɵelementStart(0, "div", 0);
611
+ i0.ɵɵelementStart(1, "mat-sidenav-container", 1);
612
+ i0.ɵɵelementStart(2, "mat-sidenav", 2, 3);
613
+ i0.ɵɵelementStart(4, "mat-toolbar", 4);
614
+ i0.ɵɵprojection(5);
615
+ i0.ɵɵtemplate(6, TdLayoutNavListComponent_span_6_Template, 4, 5, "span", 5);
616
+ i0.ɵɵprojection(7, 1);
617
+ i0.ɵɵelementEnd();
618
+ i0.ɵɵelementStart(8, "div", 6);
619
+ i0.ɵɵprojection(9, 2);
620
+ i0.ɵɵelementEnd();
621
+ i0.ɵɵelementEnd();
622
+ i0.ɵɵelementStart(10, "div", 7);
623
+ i0.ɵɵelementStart(11, "mat-toolbar", 4);
624
+ i0.ɵɵprojection(12, 3);
625
+ i0.ɵɵelementEnd();
626
+ i0.ɵɵelementStart(13, "div", 6);
627
+ i0.ɵɵprojection(14, 4);
628
+ i0.ɵɵelementEnd();
629
+ i0.ɵɵprojection(15, 5);
630
+ i0.ɵɵelementEnd();
631
+ i0.ɵɵelementEnd();
632
+ i0.ɵɵelementEnd();
633
+ i0.ɵɵprojection(16, 6);
634
+ }
635
+ if (rf & 2) {
636
+ i0.ɵɵadvance(1);
637
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
638
+ i0.ɵɵadvance(1);
639
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
640
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
641
+ i0.ɵɵadvance(2);
642
+ i0.ɵɵproperty("color", ctx.color);
643
+ i0.ɵɵadvance(2);
644
+ i0.ɵɵproperty("ngIf", ctx.icon || ctx.logo || ctx.toolbarTitle);
645
+ i0.ɵɵadvance(5);
646
+ i0.ɵɵproperty("color", ctx.color);
647
+ }
648
+ }, 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}"] });
649
+ (function () {
650
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListComponent, [{
651
+ type: Component,
652
+ 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"] }]
653
+ }], function () {
654
+ return [{ type: i1$1.Router, decorators: [{
655
+ type: Optional
656
+ }] }];
657
+ }, { sidenav: [{
658
+ type: ViewChild,
659
+ args: [MatSidenav, { static: true }]
660
+ }], toolbarTitle: [{
661
+ type: Input
662
+ }], icon: [{
663
+ type: Input
664
+ }], logo: [{
665
+ type: Input
666
+ }], color: [{
667
+ type: Input
668
+ }], mode: [{
669
+ type: Input
670
+ }], opened: [{
671
+ type: Input
672
+ }], sidenavWidth: [{
673
+ type: Input
674
+ }], containerAutosize: [{
675
+ type: Input
676
+ }], navigationRoute: [{
677
+ type: Input
678
+ }] });
679
+ })();
680
+
681
+ class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
682
+ constructor(layout, renderer, elementRef) {
683
+ super(layout, renderer, elementRef);
684
+ }
685
+ set tdLayoutNavListToggle(tdLayoutNavListToggle) {
686
+ this.disabled = !(tdLayoutNavListToggle === '' || tdLayoutNavListToggle);
687
+ }
688
+ onClick() {
689
+ this._layout.toggle();
690
+ }
691
+ }
692
+ /** @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)); };
693
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListToggleDirective, selectors: [["", "tdLayoutNavListToggle", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListToggle: "tdLayoutNavListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
694
+ (function () {
695
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListToggleDirective, [{
696
+ type: Directive,
697
+ args: [{
698
+ selector: '[tdLayoutNavListToggle]',
699
+ inputs: ['hideWhenOpened'],
700
+ }]
701
+ }], function () {
702
+ return [{ type: TdLayoutNavListComponent, decorators: [{
703
+ type: Optional
704
+ }, {
705
+ type: Inject,
706
+ args: [forwardRef(() => TdLayoutNavListComponent)]
707
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
708
+ }, { tdLayoutNavListToggle: [{
709
+ type: Input,
710
+ args: ['tdLayoutNavListToggle']
711
+ }] });
712
+ })();
713
+ class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
714
+ constructor(layout, renderer, elementRef) {
715
+ super(layout, renderer, elementRef);
716
+ }
717
+ set tdLayoutNavListClose(tdLayoutNavListClose) {
718
+ this.disabled = !(tdLayoutNavListClose === '' || tdLayoutNavListClose);
719
+ }
720
+ onClick() {
721
+ this._layout.close();
722
+ }
723
+ }
724
+ /** @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)); };
725
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListCloseDirective, selectors: [["", "tdLayoutNavListClose", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListClose: "tdLayoutNavListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
726
+ (function () {
727
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListCloseDirective, [{
728
+ type: Directive,
729
+ args: [{
730
+ selector: '[tdLayoutNavListClose]',
731
+ inputs: ['hideWhenOpened'],
732
+ }]
733
+ }], function () {
734
+ return [{ type: TdLayoutNavListComponent, decorators: [{
735
+ type: Optional
736
+ }, {
737
+ type: Inject,
738
+ args: [forwardRef(() => TdLayoutNavListComponent)]
739
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
740
+ }, { tdLayoutNavListClose: [{
741
+ type: Input,
742
+ args: ['tdLayoutNavListClose']
743
+ }] });
744
+ })();
745
+ class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
746
+ constructor(layout, renderer, elementRef) {
747
+ super(layout, renderer, elementRef);
748
+ }
749
+ set tdLayoutNavListOpen(tdLayoutNavListOpen) {
750
+ this.disabled = !(tdLayoutNavListOpen === '' || tdLayoutNavListOpen);
751
+ }
752
+ onClick() {
753
+ this._layout.open();
754
+ }
755
+ }
756
+ /** @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)); };
757
+ /** @nocollapse */ /** @nocollapse */ TdLayoutNavListOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutNavListOpenDirective, selectors: [["", "tdLayoutNavListOpen", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutNavListOpen: "tdLayoutNavListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
758
+ (function () {
759
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutNavListOpenDirective, [{
760
+ type: Directive,
761
+ args: [{
762
+ selector: '[tdLayoutNavListOpen]',
763
+ inputs: ['hideWhenOpened'],
764
+ }]
765
+ }], function () {
766
+ return [{ type: TdLayoutNavListComponent, decorators: [{
767
+ type: Optional
768
+ }, {
769
+ type: Inject,
770
+ args: [forwardRef(() => TdLayoutNavListComponent)]
771
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
772
+ }, { tdLayoutNavListOpen: [{
773
+ type: Input,
774
+ args: ['tdLayoutNavListOpen']
775
+ }] });
776
+ })();
777
+
778
+ function TdLayoutCardOverComponent_mat_card_title_4_Template(rf, ctx) {
779
+ if (rf & 1) {
780
+ i0.ɵɵelementStart(0, "mat-card-title");
781
+ i0.ɵɵtext(1);
782
+ i0.ɵɵelementEnd();
783
+ }
784
+ if (rf & 2) {
785
+ const ctx_r0 = i0.ɵɵnextContext();
786
+ i0.ɵɵadvance(1);
787
+ i0.ɵɵtextInterpolate(ctx_r0.cardTitle);
788
+ }
789
+ }
790
+ function TdLayoutCardOverComponent_mat_card_subtitle_5_Template(rf, ctx) {
791
+ if (rf & 1) {
792
+ i0.ɵɵelementStart(0, "mat-card-subtitle");
793
+ i0.ɵɵtext(1);
794
+ i0.ɵɵelementEnd();
795
+ }
796
+ if (rf & 2) {
797
+ const ctx_r1 = i0.ɵɵnextContext();
798
+ i0.ɵɵadvance(1);
799
+ i0.ɵɵtextInterpolate(ctx_r1.cardSubtitle);
800
+ }
801
+ }
802
+ function TdLayoutCardOverComponent_mat_divider_6_Template(rf, ctx) {
803
+ if (rf & 1) {
804
+ i0.ɵɵelement(0, "mat-divider");
805
+ }
806
+ }
807
+ const _c0$3 = ["*", [["", "td-after-card", ""]]];
808
+ const _c1$2 = ["*", "[td-after-card]"];
809
+ class TdLayoutCardOverComponent {
810
+ constructor() {
811
+ /**
812
+ * cardWidth?: string
813
+ *
814
+ * Card flex width in %.
815
+ * Defaults to 70%.
816
+ */
817
+ this.cardWidth = 70;
818
+ /**
819
+ * color?: 'accent' | 'primary' | 'warn'
820
+ *
821
+ * toolbar color option: primary | accent | warn.
822
+ * If [color] is not set, primary is used.
823
+ */
824
+ this.color = 'primary';
825
+ }
826
+ }
827
+ /** @nocollapse */ /** @nocollapse */ TdLayoutCardOverComponent.ɵfac = function TdLayoutCardOverComponent_Factory(t) { return new (t || TdLayoutCardOverComponent)(); };
828
+ /** @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) {
829
+ if (rf & 1) {
830
+ i0.ɵɵprojectionDef(_c0$3);
831
+ i0.ɵɵelement(0, "mat-toolbar", 0);
832
+ i0.ɵɵelementStart(1, "div", 1);
833
+ i0.ɵɵelementStart(2, "div", 2);
834
+ i0.ɵɵelementStart(3, "mat-card");
835
+ i0.ɵɵtemplate(4, TdLayoutCardOverComponent_mat_card_title_4_Template, 2, 1, "mat-card-title", 3);
836
+ i0.ɵɵtemplate(5, TdLayoutCardOverComponent_mat_card_subtitle_5_Template, 2, 1, "mat-card-subtitle", 3);
837
+ i0.ɵɵtemplate(6, TdLayoutCardOverComponent_mat_divider_6_Template, 1, 0, "mat-divider", 3);
838
+ i0.ɵɵprojection(7);
839
+ i0.ɵɵelementEnd();
840
+ i0.ɵɵprojection(8, 1);
841
+ i0.ɵɵelementEnd();
842
+ i0.ɵɵelementEnd();
843
+ }
844
+ if (rf & 2) {
845
+ i0.ɵɵproperty("color", ctx.color);
846
+ i0.ɵɵadvance(2);
847
+ i0.ɵɵstyleProp("max-width", ctx.cardWidth, "%")("flex", "1 1 " + ctx.cardWidth + "%")("-ms-flex", "1 1 " + ctx.cardWidth + "%")("-webkit-box-flex", 1);
848
+ i0.ɵɵadvance(2);
849
+ i0.ɵɵproperty("ngIf", ctx.cardTitle);
850
+ i0.ɵɵadvance(1);
851
+ i0.ɵɵproperty("ngIf", ctx.cardSubtitle);
852
+ i0.ɵɵadvance(1);
853
+ i0.ɵɵproperty("ngIf", ctx.cardTitle || ctx.cardSubtitle);
854
+ }
855
+ }, 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}}"] });
856
+ (function () {
857
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutCardOverComponent, [{
858
+ type: Component,
859
+ 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"] }]
860
+ }], null, { cardTitle: [{
861
+ type: Input
862
+ }], cardSubtitle: [{
863
+ type: Input
864
+ }], cardWidth: [{
865
+ type: Input
866
+ }], color: [{
867
+ type: Input
868
+ }] });
869
+ })();
870
+
871
+ const _c0$2 = [[["mat-toolbar", "td-sidenav-content", ""]], [["", "td-sidenav-content", ""]], [["mat-toolbar"]], "*", [["td-layout-footer-inner"]]];
872
+ const _c1$1 = ["mat-toolbar[td-sidenav-content]", "[td-sidenav-content]", "mat-toolbar", "*", "td-layout-footer-inner"];
873
+ class TdLayoutManageListComponent {
874
+ constructor() {
875
+ /**
876
+ * mode?: 'side', 'push' or 'over'
877
+ *
878
+ * The mode or styling of the sidenav.
879
+ * Defaults to "side".
880
+ * See "MatSidenav" documentation for more info.
881
+ *
882
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
883
+ */
884
+ this.mode = 'side';
885
+ /**
886
+ * opened?: boolean
887
+ *
888
+ * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
889
+ * Defaults to "true".
890
+ *
891
+ * See "MatSidenav" documentation for more info.
892
+ *
893
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
894
+ */
895
+ this.opened = true;
896
+ /**
897
+ * sidenavWidth?: string
898
+ *
899
+ * Sets the "width" of the sidenav in either "px" or "%"
900
+ * Defaults to "257px".
901
+ *
902
+ * https://github.com/angular/material2/tree/master/src/lib/sidenav
903
+ */
904
+ this.sidenavWidth = '257px';
905
+ /**
906
+ * containerAutosize?: boolean
907
+ *
908
+ * Sets "autosize" of the sidenav-container.
909
+ * Defaults to "false".
910
+ *
911
+ * See documentation for more info and potential performance risks.
912
+ *
913
+ * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
914
+ */
915
+ this.containerAutosize = false;
916
+ }
917
+ /**
918
+ * Checks if `ESC` should close the sidenav
919
+ * Should only close it for `push` and `over` modes
920
+ */
921
+ get disableClose() {
922
+ return this.mode === 'side';
923
+ }
924
+ /**
925
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
926
+ */
927
+ toggle() {
928
+ return this.sidenav.toggle(!this.sidenav.opened);
929
+ }
930
+ /**
931
+ * Proxy open method to access sidenav from outside (from td-layout template).
932
+ */
933
+ open() {
934
+ return this.sidenav.open();
935
+ }
936
+ /**
937
+ * Proxy close method to access sidenav from outside (from td-layout template).
938
+ */
939
+ close() {
940
+ return this.sidenav.close();
941
+ }
942
+ }
943
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListComponent.ɵfac = function TdLayoutManageListComponent_Factory(t) { return new (t || TdLayoutManageListComponent)(); };
944
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdLayoutManageListComponent, selectors: [["td-layout-manage-list"]], viewQuery: function TdLayoutManageListComponent_Query(rf, ctx) {
945
+ if (rf & 1) {
946
+ i0.ɵɵviewQuery(MatSidenav, 7);
947
+ }
948
+ if (rf & 2) {
949
+ let _t;
950
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
951
+ }
952
+ }, 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) {
953
+ if (rf & 1) {
954
+ i0.ɵɵprojectionDef(_c0$2);
955
+ i0.ɵɵelementStart(0, "mat-sidenav-container", 0);
956
+ i0.ɵɵelementStart(1, "mat-sidenav", 1, 2);
957
+ i0.ɵɵprojection(3);
958
+ i0.ɵɵelementStart(4, "div", 3);
959
+ i0.ɵɵprojection(5, 1);
960
+ i0.ɵɵelementEnd();
961
+ i0.ɵɵelementEnd();
962
+ i0.ɵɵelementStart(6, "div", 4);
963
+ i0.ɵɵprojection(7, 2);
964
+ i0.ɵɵelementStart(8, "div", 5);
965
+ i0.ɵɵprojection(9, 3);
966
+ i0.ɵɵelementEnd();
967
+ i0.ɵɵprojection(10, 4);
968
+ i0.ɵɵelementEnd();
969
+ i0.ɵɵelementEnd();
970
+ }
971
+ if (rf & 2) {
972
+ i0.ɵɵproperty("autosize", ctx.containerAutosize);
973
+ i0.ɵɵadvance(1);
974
+ i0.ɵɵstyleProp("max-width", ctx.sidenavWidth)("min-width", ctx.sidenavWidth);
975
+ i0.ɵɵproperty("mode", ctx.mode)("opened", ctx.opened)("disableClose", ctx.disableClose);
976
+ }
977
+ }, 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}"] });
978
+ (function () {
979
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListComponent, [{
980
+ type: Component,
981
+ 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"] }]
982
+ }], null, { sidenav: [{
983
+ type: ViewChild,
984
+ args: [MatSidenav, { static: true }]
985
+ }], mode: [{
986
+ type: Input
987
+ }], opened: [{
988
+ type: Input
989
+ }], sidenavWidth: [{
990
+ type: Input
991
+ }], containerAutosize: [{
992
+ type: Input
993
+ }] });
994
+ })();
995
+
996
+ class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
997
+ constructor(layout, renderer, elementRef) {
998
+ super(layout, renderer, elementRef);
999
+ }
1000
+ set tdLayoutManageListToggle(tdLayoutManageListToggle) {
1001
+ this.disabled = !(tdLayoutManageListToggle === '' || tdLayoutManageListToggle);
1002
+ }
1003
+ onClick() {
1004
+ this._layout.toggle();
1005
+ }
1006
+ }
1007
+ /** @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)); };
1008
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListToggleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListToggleDirective, selectors: [["", "tdLayoutManageListToggle", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListToggle: "tdLayoutManageListToggle" }, features: [i0.ɵɵInheritDefinitionFeature] });
1009
+ (function () {
1010
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListToggleDirective, [{
1011
+ type: Directive,
1012
+ args: [{
1013
+ selector: '[tdLayoutManageListToggle]',
1014
+ inputs: ['hideWhenOpened'],
1015
+ }]
1016
+ }], function () {
1017
+ return [{ type: TdLayoutManageListComponent, decorators: [{
1018
+ type: Optional
1019
+ }, {
1020
+ type: Inject,
1021
+ args: [forwardRef(() => TdLayoutManageListComponent)]
1022
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
1023
+ }, { tdLayoutManageListToggle: [{
1024
+ type: Input,
1025
+ args: ['tdLayoutManageListToggle']
1026
+ }] });
1027
+ })();
1028
+ class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
1029
+ constructor(layout, renderer, elementRef) {
1030
+ super(layout, renderer, elementRef);
1031
+ }
1032
+ set tdLayoutManageListClose(tdLayoutManageListClose) {
1033
+ this.disabled = !(tdLayoutManageListClose === '' || tdLayoutManageListClose);
1034
+ }
1035
+ onClick() {
1036
+ this._layout.close();
1037
+ }
1038
+ }
1039
+ /** @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)); };
1040
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListCloseDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListCloseDirective, selectors: [["", "tdLayoutManageListClose", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListClose: "tdLayoutManageListClose" }, features: [i0.ɵɵInheritDefinitionFeature] });
1041
+ (function () {
1042
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListCloseDirective, [{
1043
+ type: Directive,
1044
+ args: [{
1045
+ selector: '[tdLayoutManageListClose]',
1046
+ inputs: ['hideWhenOpened'],
1047
+ }]
1048
+ }], function () {
1049
+ return [{ type: TdLayoutManageListComponent, decorators: [{
1050
+ type: Optional
1051
+ }, {
1052
+ type: Inject,
1053
+ args: [forwardRef(() => TdLayoutManageListComponent)]
1054
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
1055
+ }, { tdLayoutManageListClose: [{
1056
+ type: Input,
1057
+ args: ['tdLayoutManageListClose']
1058
+ }] });
1059
+ })();
1060
+ class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
1061
+ constructor(layout, renderer, elementRef) {
1062
+ super(layout, renderer, elementRef);
1063
+ }
1064
+ set tdLayoutManageListOpen(tdLayoutManageListOpen) {
1065
+ this.disabled = !(tdLayoutManageListOpen === '' || tdLayoutManageListOpen);
1066
+ }
1067
+ onClick() {
1068
+ this._layout.open();
1069
+ }
1070
+ }
1071
+ /** @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)); };
1072
+ /** @nocollapse */ /** @nocollapse */ TdLayoutManageListOpenDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdLayoutManageListOpenDirective, selectors: [["", "tdLayoutManageListOpen", ""]], inputs: { hideWhenOpened: "hideWhenOpened", tdLayoutManageListOpen: "tdLayoutManageListOpen" }, features: [i0.ɵɵInheritDefinitionFeature] });
1073
+ (function () {
1074
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutManageListOpenDirective, [{
1075
+ type: Directive,
1076
+ args: [{
1077
+ selector: '[tdLayoutManageListOpen]',
1078
+ inputs: ['hideWhenOpened'],
1079
+ }]
1080
+ }], function () {
1081
+ return [{ type: TdLayoutManageListComponent, decorators: [{
1082
+ type: Optional
1083
+ }, {
1084
+ type: Inject,
1085
+ args: [forwardRef(() => TdLayoutManageListComponent)]
1086
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
1087
+ }, { tdLayoutManageListOpen: [{
1088
+ type: Input,
1089
+ args: ['tdLayoutManageListOpen']
1090
+ }] });
1091
+ })();
1092
+
1093
+ const _c0$1 = ["*"];
1094
+ class TdLayoutFooterComponent {
1095
+ constructor(_renderer, _elementRef) {
1096
+ this._renderer = _renderer;
1097
+ this._elementRef = _elementRef;
1098
+ this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-footer');
1099
+ }
1100
+ /**
1101
+ * color?: 'accent' | 'primary' | 'warn'
1102
+ *
1103
+ * Optional color option: primary | accent | warn.
1104
+ */
1105
+ set color(color) {
1106
+ if (color) {
1107
+ this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
1108
+ this._color = color;
1109
+ this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
1110
+ }
1111
+ }
1112
+ get color() {
1113
+ return this._color;
1114
+ }
1115
+ }
1116
+ /** @nocollapse */ /** @nocollapse */ TdLayoutFooterComponent.ɵfac = function TdLayoutFooterComponent_Factory(t) { return new (t || TdLayoutFooterComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
1117
+ /** @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) {
1118
+ if (rf & 1) {
1119
+ i0.ɵɵprojectionDef();
1120
+ i0.ɵɵprojection(0);
1121
+ }
1122
+ }, styles: ["[_nghost-%COMP%]{display:block;padding:10px 16px}"] });
1123
+ (function () {
1124
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdLayoutFooterComponent, [{
1125
+ type: Component,
1126
+ args: [{ selector: 'td-layout-footer,td-layout-footer-inner', template: "<ng-content></ng-content>\n", styles: [":host{display:block;padding:10px 16px}\n"] }]
1127
+ }], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { color: [{
1128
+ type: Input,
1129
+ args: ['color']
1130
+ }] });
1131
+ })();
1132
+
1133
+ function TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_1_Template(rf, ctx) {
1134
+ if (rf & 1) {
1135
+ i0.ɵɵelementStart(0, "mat-icon");
1136
+ i0.ɵɵtext(1);
1137
+ i0.ɵɵelementEnd();
1138
+ }
1139
+ if (rf & 2) {
1140
+ const ctx_r4 = i0.ɵɵnextContext(3);
1141
+ i0.ɵɵadvance(1);
1142
+ i0.ɵɵtextInterpolate(ctx_r4.icon);
1143
+ }
1144
+ }
1145
+ function TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_2_Template(rf, ctx) {
1146
+ if (rf & 1) {
1147
+ i0.ɵɵelement(0, "mat-icon", 11);
1148
+ }
1149
+ if (rf & 2) {
1150
+ const ctx_r5 = i0.ɵɵnextContext(3);
1151
+ i0.ɵɵproperty("svgIcon", ctx_r5.logo);
1152
+ }
1153
+ }
1154
+ function TdNavigationDrawerComponent_ng_container_2_div_1_img_3_Template(rf, ctx) {
1155
+ if (rf & 1) {
1156
+ i0.ɵɵelement(0, "img", 12);
1157
+ }
1158
+ if (rf & 2) {
1159
+ const ctx_r6 = i0.ɵɵnextContext(3);
1160
+ i0.ɵɵattribute("src", ctx_r6.avatar, i0.ɵɵsanitizeUrl);
1161
+ }
1162
+ }
1163
+ function TdNavigationDrawerComponent_ng_container_2_div_1_span_4_Template(rf, ctx) {
1164
+ if (rf & 1) {
1165
+ i0.ɵɵelementStart(0, "span", 13);
1166
+ i0.ɵɵtext(1);
1167
+ i0.ɵɵelementEnd();
1168
+ }
1169
+ if (rf & 2) {
1170
+ const ctx_r7 = i0.ɵɵnextContext(3);
1171
+ i0.ɵɵadvance(1);
1172
+ i0.ɵɵtextInterpolate(ctx_r7.sidenavTitle);
1173
+ }
1174
+ }
1175
+ function TdNavigationDrawerComponent_ng_container_2_div_1_Template(rf, ctx) {
1176
+ if (rf & 1) {
1177
+ const _r9 = i0.ɵɵgetCurrentView();
1178
+ i0.ɵɵelementStart(0, "div", 7);
1179
+ 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(); });
1180
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_1_Template, 2, 1, "mat-icon", 1);
1181
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_1_mat_icon_2_Template, 1, 1, "mat-icon", 8);
1182
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_1_img_3_Template, 1, 1, "img", 9);
1183
+ i0.ɵɵtemplate(4, TdNavigationDrawerComponent_ng_container_2_div_1_span_4_Template, 2, 1, "span", 10);
1184
+ i0.ɵɵelementEnd();
1185
+ }
1186
+ if (rf & 2) {
1187
+ const ctx_r1 = i0.ɵɵnextContext(2);
1188
+ i0.ɵɵclassProp("cursor-pointer", ctx_r1.routerEnabled);
1189
+ i0.ɵɵadvance(1);
1190
+ i0.ɵɵproperty("ngIf", ctx_r1.icon);
1191
+ i0.ɵɵadvance(1);
1192
+ i0.ɵɵproperty("ngIf", ctx_r1.logo && !ctx_r1.icon);
1193
+ i0.ɵɵadvance(1);
1194
+ i0.ɵɵproperty("ngIf", ctx_r1.avatar && !ctx_r1.logo && !ctx_r1.icon);
1195
+ i0.ɵɵadvance(1);
1196
+ i0.ɵɵproperty("ngIf", ctx_r1.sidenavTitle);
1197
+ }
1198
+ }
1199
+ function TdNavigationDrawerComponent_ng_container_2_div_2_Template(rf, ctx) {
1200
+ if (rf & 1) {
1201
+ i0.ɵɵelementStart(0, "div", 14);
1202
+ i0.ɵɵtext(1);
1203
+ i0.ɵɵelementEnd();
1204
+ }
1205
+ if (rf & 2) {
1206
+ const ctx_r2 = i0.ɵɵnextContext(2);
1207
+ i0.ɵɵadvance(1);
1208
+ i0.ɵɵtextInterpolate(ctx_r2.name);
1209
+ }
1210
+ }
1211
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_1_Template(rf, ctx) {
1212
+ if (rf & 1) {
1213
+ i0.ɵɵelementStart(0, "mat-icon");
1214
+ i0.ɵɵtext(1, "arrow_drop_down");
1215
+ i0.ɵɵelementEnd();
1216
+ }
1217
+ }
1218
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_2_Template(rf, ctx) {
1219
+ if (rf & 1) {
1220
+ i0.ɵɵelementStart(0, "mat-icon");
1221
+ i0.ɵɵtext(1, "arrow_drop_up");
1222
+ i0.ɵɵelementEnd();
1223
+ }
1224
+ }
1225
+ function TdNavigationDrawerComponent_ng_container_2_div_3_button_3_Template(rf, ctx) {
1226
+ if (rf & 1) {
1227
+ i0.ɵɵelementStart(0, "button", 18);
1228
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_1_Template, 2, 0, "mat-icon", 1);
1229
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_mat_icon_2_Template, 2, 0, "mat-icon", 1);
1230
+ i0.ɵɵelementEnd();
1231
+ }
1232
+ if (rf & 2) {
1233
+ const ctx_r10 = i0.ɵɵnextContext(3);
1234
+ i0.ɵɵadvance(1);
1235
+ i0.ɵɵproperty("ngIf", !ctx_r10.menuToggled);
1236
+ i0.ɵɵadvance(1);
1237
+ i0.ɵɵproperty("ngIf", ctx_r10.menuToggled);
1238
+ }
1239
+ }
1240
+ function TdNavigationDrawerComponent_ng_container_2_div_3_Template(rf, ctx) {
1241
+ if (rf & 1) {
1242
+ const _r14 = i0.ɵɵgetCurrentView();
1243
+ i0.ɵɵelementStart(0, "div", 15);
1244
+ 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(); });
1245
+ i0.ɵɵelementStart(1, "span", 16);
1246
+ i0.ɵɵtext(2);
1247
+ i0.ɵɵelementEnd();
1248
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_3_button_3_Template, 3, 2, "button", 17);
1249
+ i0.ɵɵelementEnd();
1250
+ }
1251
+ if (rf & 2) {
1252
+ const ctx_r3 = i0.ɵɵnextContext(2);
1253
+ i0.ɵɵadvance(2);
1254
+ i0.ɵɵtextInterpolate(ctx_r3.email || ctx_r3.name);
1255
+ i0.ɵɵadvance(1);
1256
+ i0.ɵɵproperty("ngIf", ctx_r3.isMenuAvailable);
1257
+ }
1258
+ }
1259
+ function TdNavigationDrawerComponent_ng_container_2_Template(rf, ctx) {
1260
+ if (rf & 1) {
1261
+ i0.ɵɵelementContainerStart(0);
1262
+ i0.ɵɵtemplate(1, TdNavigationDrawerComponent_ng_container_2_div_1_Template, 5, 6, "div", 4);
1263
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_div_2_Template, 2, 1, "div", 5);
1264
+ i0.ɵɵtemplate(3, TdNavigationDrawerComponent_ng_container_2_div_3_Template, 4, 2, "div", 6);
1265
+ i0.ɵɵelementContainerEnd();
1266
+ }
1267
+ if (rf & 2) {
1268
+ const ctx_r0 = i0.ɵɵnextContext();
1269
+ i0.ɵɵadvance(1);
1270
+ i0.ɵɵproperty("ngIf", ctx_r0.icon || ctx_r0.logo || ctx_r0.sidenavTitle || ctx_r0.avatar);
1271
+ i0.ɵɵadvance(1);
1272
+ i0.ɵɵproperty("ngIf", ctx_r0.email && ctx_r0.name);
1273
+ i0.ɵɵadvance(1);
1274
+ i0.ɵɵproperty("ngIf", ctx_r0.email || ctx_r0.name);
1275
+ }
1276
+ }
1277
+ const _c0 = [[["", "td-navigation-drawer-toolbar", ""]], "*", [["", "td-navigation-drawer-menu", ""]]];
1278
+ const _c1 = ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"];
1279
+ class TdNavigationDrawerMenuDirective {
1280
+ }
1281
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerMenuDirective.ɵfac = function TdNavigationDrawerMenuDirective_Factory(t) { return new (t || TdNavigationDrawerMenuDirective)(); };
1282
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerMenuDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdNavigationDrawerMenuDirective, selectors: [["", "td-navigation-drawer-menu", ""]] });
1283
+ (function () {
1284
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerMenuDirective, [{
1285
+ type: Directive,
1286
+ args: [{
1287
+ selector: '[td-navigation-drawer-menu]',
1288
+ }]
1289
+ }], null, null);
1290
+ })();
1291
+ class TdNavigationDrawerToolbarDirective {
1292
+ }
1293
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerToolbarDirective.ɵfac = function TdNavigationDrawerToolbarDirective_Factory(t) { return new (t || TdNavigationDrawerToolbarDirective)(); };
1294
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerToolbarDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdNavigationDrawerToolbarDirective, selectors: [["", "td-navigation-drawer-toolbar", ""]] });
1295
+ (function () {
1296
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerToolbarDirective, [{
1297
+ type: Directive,
1298
+ args: [{
1299
+ selector: '[td-navigation-drawer-toolbar]',
1300
+ }]
1301
+ }], null, null);
1302
+ })();
1303
+ class TdNavigationDrawerComponent {
1304
+ constructor(_layout, _router, _sanitize) {
1305
+ this._layout = _layout;
1306
+ this._router = _router;
1307
+ this._sanitize = _sanitize;
1308
+ this._menuToggled = false;
1309
+ }
1310
+ get menuToggled() {
1311
+ return this._menuToggled;
1312
+ }
1313
+ /**
1314
+ * Checks if there is a [TdNavigationDrawerMenuDirective] has content.
1315
+ */
1316
+ get isMenuAvailable() {
1317
+ return this._drawerMenu ? this._drawerMenu.length > 0 : false;
1318
+ }
1319
+ /**
1320
+ * Checks if there is a [TdNavigationDrawerToolbarDirective] has content.
1321
+ */
1322
+ get isCustomToolbar() {
1323
+ return this._toolbar ? this._toolbar.length > 0 : false;
1324
+ }
1325
+ /**
1326
+ * Checks if there is a background image for the toolbar.
1327
+ */
1328
+ get isBackgroundAvailable() {
1329
+ return !!this._backgroundImage;
1330
+ }
1331
+ /**
1332
+ * backgroundUrl?: SafeResourceUrl
1333
+ *
1334
+ * image to be displayed as the background of the toolbar.
1335
+ * URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
1336
+ */
1337
+ set backgroundUrl(backgroundUrl) {
1338
+ if (backgroundUrl) {
1339
+ const sanitizedUrl = this._sanitize.sanitize(SecurityContext.RESOURCE_URL, backgroundUrl);
1340
+ this._backgroundImage = this._sanitize.sanitize(SecurityContext.STYLE, 'url(' + sanitizedUrl + ')');
1341
+ }
1342
+ }
1343
+ get backgroundImage() {
1344
+ return this._backgroundImage;
1345
+ }
1346
+ /**
1347
+ * Checks if router was injected.
1348
+ */
1349
+ get routerEnabled() {
1350
+ return !!this._router && !!this.navigationRoute;
1351
+ }
1352
+ ngOnInit() {
1353
+ this._closeSubscription = this._layout.sidenav.openedChange.subscribe((opened) => {
1354
+ if (!opened) {
1355
+ this._menuToggled = false;
1356
+ }
1357
+ });
1358
+ }
1359
+ ngOnDestroy() {
1360
+ if (this._closeSubscription) {
1361
+ this._closeSubscription.unsubscribe();
1362
+ this._closeSubscription = undefined;
1363
+ }
1364
+ }
1365
+ toggleMenu() {
1366
+ if (this.isMenuAvailable) {
1367
+ this._menuToggled = !this._menuToggled;
1368
+ }
1369
+ }
1370
+ handleNavigationClick() {
1371
+ if (this.routerEnabled) {
1372
+ this._router.navigateByUrl(this.navigationRoute);
1373
+ this.close();
1374
+ }
1375
+ }
1376
+ /**
1377
+ * Proxy toggle method to access sidenav from outside (from td-layout template).
1378
+ */
1379
+ toggle() {
1380
+ return this._layout.toggle();
1381
+ }
1382
+ /**
1383
+ * Proxy open method to access sidenav from outside (from td-layout template).
1384
+ */
1385
+ open() {
1386
+ return this._layout.open();
1387
+ }
1388
+ /**
1389
+ * Proxy close method to access sidenav from outside (from td-layout template).
1390
+ */
1391
+ close() {
1392
+ return this._layout.close();
1393
+ }
1394
+ }
1395
+ /** @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)); };
1396
+ /** @nocollapse */ /** @nocollapse */ TdNavigationDrawerComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdNavigationDrawerComponent, selectors: [["td-navigation-drawer"]], contentQueries: function TdNavigationDrawerComponent_ContentQueries(rf, ctx, dirIndex) {
1397
+ if (rf & 1) {
1398
+ i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerMenuDirective, 5);
1399
+ i0.ɵɵcontentQuery(dirIndex, TdNavigationDrawerToolbarDirective, 5);
1400
+ }
1401
+ if (rf & 2) {
1402
+ let _t;
1403
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._drawerMenu = _t);
1404
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._toolbar = _t);
1405
+ }
1406
+ }, 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) {
1407
+ if (rf & 1) {
1408
+ i0.ɵɵprojectionDef(_c0);
1409
+ i0.ɵɵelementStart(0, "mat-toolbar", 0);
1410
+ i0.ɵɵprojection(1);
1411
+ i0.ɵɵtemplate(2, TdNavigationDrawerComponent_ng_container_2_Template, 4, 3, "ng-container", 1);
1412
+ i0.ɵɵelementEnd();
1413
+ i0.ɵɵelementStart(3, "div", 2);
1414
+ i0.ɵɵprojection(4, 1);
1415
+ i0.ɵɵelementEnd();
1416
+ i0.ɵɵelementStart(5, "div", 3);
1417
+ i0.ɵɵprojection(6, 2);
1418
+ i0.ɵɵelementEnd();
1419
+ }
1420
+ if (rf & 2) {
1421
+ i0.ɵɵstyleProp("background-image", ctx.backgroundImage);
1422
+ i0.ɵɵclassProp("td-toolbar-background", !!ctx.isBackgroundAvailable);
1423
+ i0.ɵɵproperty("color", ctx.color);
1424
+ i0.ɵɵadvance(2);
1425
+ i0.ɵɵproperty("ngIf", !ctx.isCustomToolbar);
1426
+ i0.ɵɵadvance(1);
1427
+ i0.ɵɵproperty("@tdCollapse", ctx.menuToggled);
1428
+ i0.ɵɵadvance(2);
1429
+ i0.ɵɵproperty("@tdCollapse", !ctx.menuToggled);
1430
+ }
1431
+ }, 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] } });
1432
+ (function () {
1433
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdNavigationDrawerComponent, [{
1434
+ type: Component,
1435
+ 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"] }]
1436
+ }], function () {
1437
+ return [{ type: TdLayoutComponent, decorators: [{
1438
+ type: Inject,
1439
+ args: [forwardRef(() => TdLayoutComponent)]
1440
+ }] }, { type: i1$1.Router, decorators: [{
1441
+ type: Optional
1442
+ }] }, { type: i2$1.DomSanitizer }];
1443
+ }, { _drawerMenu: [{
1444
+ type: ContentChildren,
1445
+ args: [TdNavigationDrawerMenuDirective, { descendants: true }]
1446
+ }], _toolbar: [{
1447
+ type: ContentChildren,
1448
+ args: [TdNavigationDrawerToolbarDirective, { descendants: true }]
1449
+ }], sidenavTitle: [{
1450
+ type: Input
1451
+ }], icon: [{
1452
+ type: Input
1453
+ }], logo: [{
1454
+ type: Input
1455
+ }], avatar: [{
1456
+ type: Input
1457
+ }], color: [{
1458
+ type: Input
1459
+ }], navigationRoute: [{
1460
+ type: Input
1461
+ }], backgroundUrl: [{
1462
+ type: Input,
1463
+ args: ['backgroundUrl']
1464
+ }], name: [{
1465
+ type: Input
1466
+ }], email: [{
1467
+ type: Input
1468
+ }] });
1469
+ })();
1470
+
1471
+ const TD_LAYOUTS = [
1472
+ TdLayoutComponent,
1473
+ TdLayoutToggleDirective,
1474
+ TdLayoutCloseDirective,
1475
+ TdLayoutOpenDirective,
1476
+ TdLayoutNavComponent,
1477
+ TdLayoutNavListComponent,
1478
+ TdLayoutNavListToggleDirective,
1479
+ TdLayoutNavListCloseDirective,
1480
+ TdLayoutNavListOpenDirective,
1481
+ TdLayoutCardOverComponent,
1482
+ TdLayoutManageListComponent,
1483
+ TdLayoutManageListToggleDirective,
1484
+ TdLayoutManageListCloseDirective,
1485
+ TdLayoutManageListOpenDirective,
1486
+ TdLayoutFooterComponent,
1487
+ TdNavigationDrawerComponent,
1488
+ TdNavigationDrawerMenuDirective,
1489
+ TdNavigationDrawerToolbarDirective,
1490
+ ];
1491
+ class CovalentLayoutModule {
1492
+ }
1493
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵfac = function CovalentLayoutModule_Factory(t) { return new (t || CovalentLayoutModule)(); };
1494
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentLayoutModule });
1495
+ /** @nocollapse */ /** @nocollapse */ CovalentLayoutModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[
1496
+ CommonModule,
1497
+ ScrollingModule,
1498
+ MatSidenavModule,
1499
+ MatToolbarModule,
1500
+ MatButtonModule,
1501
+ MatIconModule,
1502
+ MatCardModule,
1503
+ MatDividerModule,
1504
+ CovalentMenuModule,
1505
+ ]] });
1506
+ (function () {
1507
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentLayoutModule, [{
1508
+ type: NgModule,
1509
+ args: [{
1510
+ imports: [
1511
+ CommonModule,
1512
+ ScrollingModule,
1513
+ MatSidenavModule,
1514
+ MatToolbarModule,
1515
+ MatButtonModule,
1516
+ MatIconModule,
1517
+ MatCardModule,
1518
+ MatDividerModule,
1519
+ CovalentMenuModule,
1520
+ ],
1521
+ declarations: [TD_LAYOUTS],
1522
+ exports: [TD_LAYOUTS],
1523
+ }]
1524
+ }], null, null);
1525
+ })();
1526
+ (function () {
1527
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentLayoutModule, { declarations: [TdLayoutComponent,
1528
+ TdLayoutToggleDirective,
1529
+ TdLayoutCloseDirective,
1530
+ TdLayoutOpenDirective,
1531
+ TdLayoutNavComponent,
1532
+ TdLayoutNavListComponent,
1533
+ TdLayoutNavListToggleDirective,
1534
+ TdLayoutNavListCloseDirective,
1535
+ TdLayoutNavListOpenDirective,
1536
+ TdLayoutCardOverComponent,
1537
+ TdLayoutManageListComponent,
1538
+ TdLayoutManageListToggleDirective,
1539
+ TdLayoutManageListCloseDirective,
1540
+ TdLayoutManageListOpenDirective,
1541
+ TdLayoutFooterComponent,
1542
+ TdNavigationDrawerComponent,
1543
+ TdNavigationDrawerMenuDirective,
1544
+ TdNavigationDrawerToolbarDirective], imports: [CommonModule,
1545
+ ScrollingModule,
1546
+ MatSidenavModule,
1547
+ MatToolbarModule,
1548
+ MatButtonModule,
1549
+ MatIconModule,
1550
+ MatCardModule,
1551
+ MatDividerModule,
1552
+ CovalentMenuModule], exports: [TdLayoutComponent,
1553
+ TdLayoutToggleDirective,
1554
+ TdLayoutCloseDirective,
1555
+ TdLayoutOpenDirective,
1556
+ TdLayoutNavComponent,
1557
+ TdLayoutNavListComponent,
1558
+ TdLayoutNavListToggleDirective,
1559
+ TdLayoutNavListCloseDirective,
1560
+ TdLayoutNavListOpenDirective,
1561
+ TdLayoutCardOverComponent,
1562
+ TdLayoutManageListComponent,
1563
+ TdLayoutManageListToggleDirective,
1564
+ TdLayoutManageListCloseDirective,
1565
+ TdLayoutManageListOpenDirective,
1566
+ TdLayoutFooterComponent,
1567
+ TdNavigationDrawerComponent,
1568
+ TdNavigationDrawerMenuDirective,
1569
+ TdNavigationDrawerToolbarDirective] });
1570
+ })();
1571
+
1572
+ /**
1573
+ * Generated bundle index. Do not edit.
1574
+ */
1575
+
1576
+ export { BaseLayoutToggleDirective, CovalentLayoutModule, LayoutToggleBase, TdLayoutCardOverComponent, TdLayoutCloseDirective, TdLayoutComponent, TdLayoutFooterComponent, TdLayoutManageListCloseDirective, TdLayoutManageListComponent, TdLayoutManageListOpenDirective, TdLayoutManageListToggleDirective, TdLayoutNavComponent, TdLayoutNavListCloseDirective, TdLayoutNavListComponent, TdLayoutNavListOpenDirective, TdLayoutNavListToggleDirective, TdLayoutOpenDirective, TdLayoutToggleDirective, TdNavigationDrawerComponent, TdNavigationDrawerMenuDirective, TdNavigationDrawerToolbarDirective, _TdLayoutToggleMixinBase };
1577
+ //# sourceMappingURL=covalent-core-layout.mjs.map