@covalent/core 4.0.0 → 4.1.0-develop.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (613) hide show
  1. package/README.md +5 -4
  2. package/breadcrumbs/README.md +21 -17
  3. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -1
  4. package/breadcrumbs/breadcrumbs.component.d.ts +4 -0
  5. package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  6. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +2 -1
  7. package/breadcrumbs/package.json +6 -7
  8. package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
  9. package/common/README.md +3 -0
  10. package/common/_common-theme.scss +3 -1
  11. package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
  12. package/common/behaviors/disabled.mixin.d.ts +1 -1
  13. package/common/common.module.d.ts +15 -0
  14. package/common/covalent-core-common.d.ts +2 -3
  15. package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
  16. package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
  17. package/common/package.json +6 -7
  18. package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
  19. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
  20. package/common/pipes/digits/digits.pipe.d.ts +3 -0
  21. package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
  22. package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
  23. package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
  24. package/common/pipes/truncate/truncate.pipe.d.ts +4 -1
  25. package/common/{public-api.d.ts → public_api.d.ts} +0 -0
  26. package/common/services/icon.service.d.ts +3 -0
  27. package/common/services/router-path.service.d.ts +3 -0
  28. package/common/styles/font/README.md +4 -2
  29. package/covalent-core.d.ts +2 -1
  30. package/dialogs/README.md +38 -30
  31. package/dialogs/_dialog-theme.scss +1 -0
  32. package/dialogs/alert-dialog/alert-dialog.component.d.ts +6 -3
  33. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +5 -2
  34. package/dialogs/covalent-core-dialogs.d.ts +2 -2
  35. package/dialogs/dialog.component.d.ts +9 -0
  36. package/dialogs/dialogs.module.d.ts +17 -0
  37. package/dialogs/package.json +6 -7
  38. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +6 -3
  39. package/dialogs/{public-api.d.ts → public_api.d.ts} +1 -0
  40. package/dialogs/services/dialog.service.d.ts +3 -0
  41. package/dialogs/src/README.md +223 -0
  42. package/dialogs/window-dialog/window-dialog.component.d.ts +8 -5
  43. package/dynamic-menu/README.md +6 -6
  44. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +2 -2
  45. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +4 -1
  46. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +4 -1
  47. package/dynamic-menu/dynamic-menu.component.d.ts +4 -22
  48. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  49. package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
  50. package/dynamic-menu/package.json +6 -7
  51. package/dynamic-menu/public_api.d.ts +2 -0
  52. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
  53. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +134 -0
  54. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +20 -0
  55. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
  56. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  57. package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
  58. package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
  59. package/esm2020/common/animations/common/interfaces.mjs +2 -0
  60. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
  61. package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
  62. package/esm2020/common/animations/headshake/headshake.animation.mjs +47 -0
  63. package/esm2020/common/animations/jello/jello.animation.mjs +59 -0
  64. package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
  65. package/esm2020/common/animations/rotate/rotate.animation.mjs +30 -0
  66. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
  67. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  68. package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
  69. package/esm2020/common/common.module.mjs +63 -0
  70. package/esm2020/common/covalent-core-common.mjs +5 -0
  71. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  72. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  73. package/esm2020/common/forms/validators/validators.mjs +29 -0
  74. package/esm2020/common/functions/clipboard.mjs +23 -0
  75. package/esm2020/common/functions/convert.mjs +84 -0
  76. package/esm2020/common/functions/download.mjs +75 -0
  77. package/esm2020/common/functions/file.mjs +16 -0
  78. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
  79. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
  80. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  81. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
  82. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
  83. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
  84. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  85. package/esm2020/common/public_api.mjs +39 -0
  86. package/esm2020/common/services/icon.service.mjs +1089 -0
  87. package/esm2020/common/services/router-path.service.mjs +29 -0
  88. package/esm2020/covalent-core.mjs +5 -0
  89. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
  90. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
  91. package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
  92. package/esm2020/dialogs/dialog.component.mjs +56 -0
  93. package/esm2020/dialogs/dialogs.module.mjs +89 -0
  94. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +46 -0
  95. package/esm2020/dialogs/public_api.mjs +9 -0
  96. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
  97. package/esm2020/dialogs/services/dialog.service.mjs +171 -0
  98. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
  99. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
  100. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
  101. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
  102. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
  103. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  104. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +57 -0
  105. package/esm2020/dynamic-menu/public_api.mjs +6 -0
  106. package/esm2020/file/covalent-core-file.mjs +5 -0
  107. package/esm2020/file/directives/file-drop.directive.mjs +147 -0
  108. package/esm2020/file/directives/file-select.directive.mjs +77 -0
  109. package/esm2020/file/file-input/file-input.component.mjs +110 -0
  110. package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
  111. package/esm2020/file/file.module.mjs +58 -0
  112. package/esm2020/file/public_api.mjs +7 -0
  113. package/esm2020/file/services/file.service.mjs +64 -0
  114. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  115. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
  116. package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
  117. package/esm2020/json-formatter/json-formatter.module.mjs +20 -0
  118. package/esm2020/json-formatter/public_api.mjs +3 -0
  119. package/esm2020/layout/covalent-core-layout.mjs +5 -0
  120. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
  121. package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
  122. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
  123. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +84 -0
  124. package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
  125. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
  126. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +84 -0
  127. package/esm2020/layout/layout-toggle.class.mjs +92 -0
  128. package/esm2020/layout/layout.component.mjs +92 -0
  129. package/esm2020/layout/layout.directives.mjs +85 -0
  130. package/esm2020/layout/layout.module.mjs +117 -0
  131. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +161 -0
  132. package/esm2020/layout/public_api.mjs +13 -0
  133. package/esm2020/menu/covalent-core-menu.mjs +5 -0
  134. package/esm2020/menu/menu.component.mjs +12 -0
  135. package/esm2020/menu/menu.module.mjs +21 -0
  136. package/esm2020/menu/public_api.mjs +3 -0
  137. package/esm2020/message/collapse.animation.mjs +51 -0
  138. package/esm2020/message/covalent-core-message.mjs +5 -0
  139. package/esm2020/message/message.component.mjs +203 -0
  140. package/esm2020/message/message.module.mjs +25 -0
  141. package/esm2020/message/public_api.mjs +3 -0
  142. package/esm2020/public_api.mjs +2 -0
  143. package/esm2020/search/covalent-core-search.mjs +5 -0
  144. package/esm2020/search/public_api.mjs +4 -0
  145. package/esm2020/search/search-box/search-box.component.mjs +194 -0
  146. package/esm2020/search/search-input/search-input.component.mjs +203 -0
  147. package/esm2020/search/search.module.mjs +39 -0
  148. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
  149. package/esm2020/side-sheet/public_api.mjs +6 -0
  150. package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
  151. package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
  152. package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
  153. package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
  154. package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
  155. package/esm2020/side-sheet/side-sheet.mjs +221 -0
  156. package/esm2020/side-sheet/side-sheet.module.mjs +45 -0
  157. package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
  158. package/esm2020/user-profile/public_api.mjs +4 -0
  159. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +24 -0
  160. package/esm2020/user-profile/user-profile.component.mjs +19 -0
  161. package/esm2020/user-profile/user-profile.module.mjs +44 -0
  162. package/fesm2015/covalent-core-breadcrumbs.mjs +246 -0
  163. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
  164. package/fesm2015/covalent-core-common.mjs +2281 -0
  165. package/fesm2015/covalent-core-common.mjs.map +1 -0
  166. package/fesm2015/covalent-core-dialogs.mjs +639 -0
  167. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  168. package/fesm2015/covalent-core-dynamic-menu.mjs +128 -0
  169. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  170. package/fesm2015/covalent-core-file.mjs +613 -0
  171. package/fesm2015/covalent-core-file.mjs.map +1 -0
  172. package/fesm2015/covalent-core-json-formatter.mjs +298 -0
  173. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  174. package/fesm2015/covalent-core-layout.mjs +1024 -0
  175. package/fesm2015/covalent-core-layout.mjs.map +1 -0
  176. package/fesm2015/covalent-core-menu.mjs +37 -0
  177. package/fesm2015/covalent-core-menu.mjs.map +1 -0
  178. package/fesm2015/covalent-core-message.mjs +284 -0
  179. package/fesm2015/covalent-core-message.mjs.map +1 -0
  180. package/fesm2015/covalent-core-search.mjs +428 -0
  181. package/fesm2015/covalent-core-search.mjs.map +1 -0
  182. package/fesm2015/covalent-core-side-sheet.mjs +762 -0
  183. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  184. package/fesm2015/covalent-core-user-profile.mjs +86 -0
  185. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  186. package/fesm2015/covalent-core.mjs +4 -0
  187. package/fesm2015/covalent-core.mjs.map +1 -0
  188. package/fesm2020/covalent-core-breadcrumbs.mjs +246 -0
  189. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
  190. package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +317 -813
  191. package/fesm2020/covalent-core-common.mjs.map +1 -0
  192. package/fesm2020/covalent-core-dialogs.mjs +634 -0
  193. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  194. package/fesm2020/covalent-core-dynamic-menu.mjs +128 -0
  195. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
  196. package/fesm2020/covalent-core-file.mjs +607 -0
  197. package/fesm2020/covalent-core-file.mjs.map +1 -0
  198. package/fesm2020/covalent-core-json-formatter.mjs +290 -0
  199. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
  200. package/fesm2020/covalent-core-layout.mjs +1000 -0
  201. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  202. package/fesm2020/covalent-core-menu.mjs +37 -0
  203. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  204. package/fesm2020/covalent-core-message.mjs +282 -0
  205. package/fesm2020/covalent-core-message.mjs.map +1 -0
  206. package/fesm2020/covalent-core-search.mjs +425 -0
  207. package/fesm2020/covalent-core-search.mjs.map +1 -0
  208. package/fesm2020/covalent-core-side-sheet.mjs +757 -0
  209. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
  210. package/fesm2020/covalent-core-user-profile.mjs +86 -0
  211. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  212. package/fesm2020/covalent-core.mjs +4 -0
  213. package/fesm2020/covalent-core.mjs.map +1 -0
  214. package/file/_file-theme.scss +3 -1
  215. package/file/covalent-core-file.d.ts +2 -1
  216. package/file/directives/file-drop.directive.d.ts +8 -6
  217. package/file/directives/file-select.directive.d.ts +5 -2
  218. package/file/file-input/file-input.component.d.ts +10 -5
  219. package/file/file-upload/file-upload.component.d.ts +18 -8
  220. package/file/file.module.d.ts +13 -0
  221. package/file/package.json +6 -7
  222. package/file/{public-api.d.ts → public_api.d.ts} +0 -0
  223. package/file/services/file.service.d.ts +3 -0
  224. package/file/{file-input → src/file-input}/README.md +46 -37
  225. package/file/{file-upload → src/file-upload}/README.md +36 -27
  226. package/json-formatter/README.md +8 -8
  227. package/json-formatter/_json-formatter-theme.scss +10 -0
  228. package/json-formatter/collapse.animation.d.ts +24 -0
  229. package/json-formatter/covalent-core-json-formatter.d.ts +2 -1
  230. package/json-formatter/json-formatter.component.d.ts +7 -4
  231. package/json-formatter/json-formatter.module.d.ts +8 -0
  232. package/json-formatter/package.json +6 -7
  233. package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
  234. package/layout/README.md +48 -50
  235. package/layout/_layout-theme.scss +12 -0
  236. package/layout/covalent-core-layout.d.ts +2 -1
  237. package/layout/layout-card-over/layout-card-over.component.d.ts +6 -3
  238. package/layout/layout-footer/layout-footer.component.d.ts +6 -3
  239. package/layout/layout-manage-list/layout-manage-list.component.d.ts +7 -4
  240. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +9 -2
  241. package/layout/layout-nav/layout-nav.component.d.ts +8 -5
  242. package/layout/layout-nav-list/layout-nav-list.component.d.ts +12 -9
  243. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +9 -2
  244. package/layout/layout-toggle.class.d.ts +4 -1
  245. package/layout/layout.component.d.ts +7 -4
  246. package/layout/layout.directives.d.ts +9 -2
  247. package/layout/layout.module.d.ts +23 -0
  248. package/layout/navigation-drawer/navigation-drawer.component.d.ts +17 -10
  249. package/layout/package.json +6 -7
  250. package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
  251. package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
  252. package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
  253. package/layout/src/layout-nav/README.md +50 -0
  254. package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
  255. package/menu/covalent-core-menu.d.ts +2 -1
  256. package/menu/menu.component.d.ts +3 -0
  257. package/menu/menu.module.d.ts +8 -0
  258. package/menu/package.json +6 -7
  259. package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
  260. package/message/README.md +26 -18
  261. package/message/_message-theme.scss +3 -0
  262. package/message/collapse.animation.d.ts +24 -0
  263. package/message/covalent-core-message.d.ts +2 -1
  264. package/message/message.component.d.ts +9 -4
  265. package/message/message.module.d.ts +7 -0
  266. package/message/package.json +6 -7
  267. package/message/{public-api.d.ts → public_api.d.ts} +0 -0
  268. package/package.json +129 -37
  269. package/{index.d.ts → public_api.d.ts} +0 -0
  270. package/search/README.md +74 -73
  271. package/search/covalent-core-search.d.ts +2 -1
  272. package/search/package.json +6 -7
  273. package/search/{public-api.d.ts → public_api.d.ts} +0 -0
  274. package/search/search-box/search-box.component.d.ts +12 -5
  275. package/search/search-input/search-input.component.d.ts +12 -5
  276. package/search/search.module.d.ts +11 -0
  277. package/search/src/search-box/README.md +73 -0
  278. package/search/src/search-input/README.md +74 -0
  279. package/side-sheet/README.md +3 -5
  280. package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
  281. package/side-sheet/covalent-core-side-sheet.d.ts +2 -3
  282. package/side-sheet/package.json +6 -7
  283. package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
  284. package/side-sheet/side-sheet-container.d.ts +21 -5
  285. package/side-sheet/side-sheet.content-directives.d.ts +23 -6
  286. package/side-sheet/side-sheet.d.ts +7 -2
  287. package/side-sheet/side-sheet.module.d.ts +9 -0
  288. package/user-profile/README.md +5 -5
  289. package/user-profile/covalent-core-user-profile.d.ts +2 -1
  290. package/user-profile/package.json +6 -7
  291. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +5 -2
  292. package/user-profile/user-profile.component.d.ts +5 -2
  293. package/user-profile/user-profile.module.d.ts +12 -0
  294. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -22
  295. package/breadcrumbs/breadcrumbs.component.scss +0 -7
  296. package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
  297. package/breadcrumbs/index.d.ts +0 -1
  298. package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
  299. package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
  300. package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
  301. package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
  302. package/bundles/covalent-core-common.umd.js +0 -3188
  303. package/bundles/covalent-core-common.umd.js.map +0 -1
  304. package/bundles/covalent-core-common.umd.min.js +0 -17
  305. package/bundles/covalent-core-common.umd.min.js.map +0 -1
  306. package/bundles/covalent-core-dialogs.umd.js +0 -1318
  307. package/bundles/covalent-core-dialogs.umd.js.map +0 -1
  308. package/bundles/covalent-core-dialogs.umd.min.js +0 -2
  309. package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
  310. package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
  311. package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
  312. package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
  313. package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
  314. package/bundles/covalent-core-file.umd.js +0 -1211
  315. package/bundles/covalent-core-file.umd.js.map +0 -1
  316. package/bundles/covalent-core-file.umd.min.js +0 -17
  317. package/bundles/covalent-core-file.umd.min.js.map +0 -1
  318. package/bundles/covalent-core-json-formatter.umd.js +0 -408
  319. package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
  320. package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
  321. package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
  322. package/bundles/covalent-core-layout.umd.js +0 -2084
  323. package/bundles/covalent-core-layout.umd.js.map +0 -1
  324. package/bundles/covalent-core-layout.umd.min.js +0 -17
  325. package/bundles/covalent-core-layout.umd.min.js.map +0 -1
  326. package/bundles/covalent-core-menu.umd.js +0 -69
  327. package/bundles/covalent-core-menu.umd.js.map +0 -1
  328. package/bundles/covalent-core-menu.umd.min.js +0 -2
  329. package/bundles/covalent-core-menu.umd.min.js.map +0 -1
  330. package/bundles/covalent-core-message.umd.js +0 -375
  331. package/bundles/covalent-core-message.umd.js.map +0 -1
  332. package/bundles/covalent-core-message.umd.min.js +0 -2
  333. package/bundles/covalent-core-message.umd.min.js.map +0 -1
  334. package/bundles/covalent-core-search.umd.js +0 -877
  335. package/bundles/covalent-core-search.umd.js.map +0 -1
  336. package/bundles/covalent-core-search.umd.min.js +0 -16
  337. package/bundles/covalent-core-search.umd.min.js.map +0 -1
  338. package/bundles/covalent-core-side-sheet.umd.js +0 -1458
  339. package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
  340. package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
  341. package/bundles/covalent-core-side-sheet.umd.min.js.map +0 -1
  342. package/bundles/covalent-core-user-profile.umd.js +0 -116
  343. package/bundles/covalent-core-user-profile.umd.js.map +0 -1
  344. package/bundles/covalent-core-user-profile.umd.min.js +0 -2
  345. package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
  346. package/bundles/covalent-core.umd.js +0 -9
  347. package/bundles/covalent-core.umd.js.map +0 -1
  348. package/bundles/covalent-core.umd.min.js +0 -2
  349. package/bundles/covalent-core.umd.min.js.map +0 -1
  350. package/common/covalent-core-common.metadata.json +0 -1
  351. package/common/index.d.ts +0 -1
  352. package/common/material-icons.css +0 -98
  353. package/common/material-icons.css.map +0 -1
  354. package/common/material-icons.scss +0 -3
  355. package/common/platform.css +0 -15424
  356. package/common/platform.css.map +0 -1
  357. package/common/platform.scss +0 -7
  358. package/common/styles/_elevation.scss +0 -280
  359. package/common/styles/_layout.scss +0 -603
  360. package/common/styles/_palette-dark.scss +0 -326
  361. package/common/styles/_palette-light.scss +0 -637
  362. package/common/styles/_rtl.scss +0 -28
  363. package/common/styles/_styles.scss +0 -10
  364. package/common/styles/_theme-functions.scss +0 -25
  365. package/common/styles/_typography-functions.scss +0 -35
  366. package/common/styles/_variables.scss +0 -98
  367. package/common/styles/colors/_colors-dark.scss +0 -1072
  368. package/common/styles/colors/_colors-light.scss +0 -2487
  369. package/common/styles/colors/_colors.scss +0 -7
  370. package/common/styles/core/_button.scss +0 -59
  371. package/common/styles/core/_card.scss +0 -164
  372. package/common/styles/core/_content.scss +0 -42
  373. package/common/styles/core/_core.scss +0 -23
  374. package/common/styles/core/_divider.scss +0 -15
  375. package/common/styles/core/_icons.scss +0 -20
  376. package/common/styles/core/_list.scss +0 -8
  377. package/common/styles/core/_sidenav.scss +0 -20
  378. package/common/styles/core/_structure.scss +0 -128
  379. package/common/styles/core/_toolbar.scss +0 -46
  380. package/common/styles/core/_whiteframe.scss +0 -130
  381. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  382. package/common/styles/font/_font.scss +0 -93
  383. package/common/styles/utilities/_general.scss +0 -51
  384. package/common/styles/utilities/_pad.scss +0 -36
  385. package/common/styles/utilities/_pull.scss +0 -36
  386. package/common/styles/utilities/_push.scss +0 -36
  387. package/common/styles/utilities/_size.scss +0 -24
  388. package/common/styles/utilities/_text.scss +0 -84
  389. package/common/styles/utilities/_utilities.scss +0 -15
  390. package/covalent-core.metadata.json +0 -1
  391. package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
  392. package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
  393. package/dialogs/covalent-core-dialogs.metadata.json +0 -1
  394. package/dialogs/dialog.component.scss +0 -44
  395. package/dialogs/index.d.ts +0 -1
  396. package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -15
  397. package/dialogs/window-dialog/window-dialog.component.scss +0 -31
  398. package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
  399. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -6
  400. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -11
  401. package/dynamic-menu/dynamic-menu.component.scss +0 -0
  402. package/dynamic-menu/index.d.ts +0 -1
  403. package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
  404. package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
  405. package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
  406. package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
  407. package/esm2015/breadcrumbs/index.js +0 -7
  408. package/esm2015/breadcrumbs/public-api.js +0 -9
  409. package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
  410. package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
  411. package/esm2015/common/animations/common/interfaces.js +0 -18
  412. package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
  413. package/esm2015/common/animations/flash/flash.animation.js +0 -40
  414. package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
  415. package/esm2015/common/animations/jello/jello.animation.js +0 -44
  416. package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
  417. package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
  418. package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
  419. package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
  420. package/esm2015/common/behaviors/disabled.mixin.js +0 -63
  421. package/esm2015/common/common.module.js +0 -54
  422. package/esm2015/common/covalent-core-common.js +0 -12
  423. package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
  424. package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
  425. package/esm2015/common/forms/validators/validators.js +0 -58
  426. package/esm2015/common/functions/clipboard.js +0 -30
  427. package/esm2015/common/functions/convert.js +0 -103
  428. package/esm2015/common/functions/download.js +0 -88
  429. package/esm2015/common/functions/file.js +0 -29
  430. package/esm2015/common/index.js +0 -7
  431. package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
  432. package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
  433. package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
  434. package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
  435. package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
  436. package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
  437. package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
  438. package/esm2015/common/public-api.js +0 -44
  439. package/esm2015/common/services/icon.service.js +0 -1109
  440. package/esm2015/common/services/router-path.service.js +0 -60
  441. package/esm2015/covalent-core.js +0 -10
  442. package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
  443. package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
  444. package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
  445. package/esm2015/dialogs/dialog.component.js +0 -58
  446. package/esm2015/dialogs/dialogs.module.js +0 -57
  447. package/esm2015/dialogs/index.js +0 -7
  448. package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
  449. package/esm2015/dialogs/public-api.js +0 -13
  450. package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
  451. package/esm2015/dialogs/services/dialog.service.js +0 -316
  452. package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
  453. package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
  454. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
  455. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
  456. package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
  457. package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
  458. package/esm2015/dynamic-menu/index.js +0 -7
  459. package/esm2015/dynamic-menu/public_api.js +0 -9
  460. package/esm2015/file/covalent-core-file.js +0 -10
  461. package/esm2015/file/directives/file-drop.directive.js +0 -191
  462. package/esm2015/file/directives/file-select.directive.js +0 -98
  463. package/esm2015/file/file-input/file-input.component.js +0 -186
  464. package/esm2015/file/file-upload/file-upload.component.js +0 -237
  465. package/esm2015/file/file.module.js +0 -35
  466. package/esm2015/file/index.js +0 -7
  467. package/esm2015/file/public-api.js +0 -12
  468. package/esm2015/file/services/file.service.js +0 -109
  469. package/esm2015/index.js +0 -7
  470. package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
  471. package/esm2015/json-formatter/index.js +0 -7
  472. package/esm2015/json-formatter/json-formatter.component.js +0 -338
  473. package/esm2015/json-formatter/json-formatter.module.js +0 -20
  474. package/esm2015/json-formatter/public-api.js +0 -8
  475. package/esm2015/layout/covalent-core-layout.js +0 -10
  476. package/esm2015/layout/index.js +0 -7
  477. package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
  478. package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
  479. package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
  480. package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
  481. package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
  482. package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
  483. package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
  484. package/esm2015/layout/layout-toggle.class.js +0 -188
  485. package/esm2015/layout/layout.component.js +0 -145
  486. package/esm2015/layout/layout.directives.js +0 -129
  487. package/esm2015/layout/layout.module.js +0 -64
  488. package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
  489. package/esm2015/layout/public-api.js +0 -18
  490. package/esm2015/menu/covalent-core-menu.js +0 -10
  491. package/esm2015/menu/index.js +0 -7
  492. package/esm2015/menu/menu.component.js +0 -16
  493. package/esm2015/menu/menu.module.js +0 -22
  494. package/esm2015/menu/public-api.js +0 -8
  495. package/esm2015/message/covalent-core-message.js +0 -10
  496. package/esm2015/message/index.js +0 -7
  497. package/esm2015/message/message.component.js +0 -307
  498. package/esm2015/message/message.module.js +0 -21
  499. package/esm2015/message/public-api.js +0 -8
  500. package/esm2015/search/covalent-core-search.js +0 -10
  501. package/esm2015/search/index.js +0 -7
  502. package/esm2015/search/public-api.js +0 -9
  503. package/esm2015/search/search-box/search-box.component.js +0 -270
  504. package/esm2015/search/search-input/search-input.component.js +0 -260
  505. package/esm2015/search/search.module.js +0 -23
  506. package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
  507. package/esm2015/side-sheet/index.js +0 -7
  508. package/esm2015/side-sheet/public-api.js +0 -11
  509. package/esm2015/side-sheet/side-sheet-container.js +0 -402
  510. package/esm2015/side-sheet/side-sheet-ref.js +0 -50
  511. package/esm2015/side-sheet/side-sheet.animation.js +0 -20
  512. package/esm2015/side-sheet/side-sheet.config.js +0 -12
  513. package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
  514. package/esm2015/side-sheet/side-sheet.js +0 -360
  515. package/esm2015/side-sheet/side-sheet.module.js +0 -36
  516. package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
  517. package/esm2015/user-profile/index.js +0 -7
  518. package/esm2015/user-profile/public_api.js +0 -9
  519. package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
  520. package/esm2015/user-profile/user-profile.component.js +0 -26
  521. package/esm2015/user-profile/user-profile.module.js +0 -25
  522. package/fesm2015/covalent-core-breadcrumbs.js +0 -448
  523. package/fesm2015/covalent-core-breadcrumbs.js.map +0 -1
  524. package/fesm2015/covalent-core-common.js.map +0 -1
  525. package/fesm2015/covalent-core-dialogs.js +0 -1001
  526. package/fesm2015/covalent-core-dialogs.js.map +0 -1
  527. package/fesm2015/covalent-core-dynamic-menu.js +0 -204
  528. package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
  529. package/fesm2015/covalent-core-file.js +0 -855
  530. package/fesm2015/covalent-core-file.js.map +0 -1
  531. package/fesm2015/covalent-core-json-formatter.js +0 -377
  532. package/fesm2015/covalent-core-json-formatter.js.map +0 -1
  533. package/fesm2015/covalent-core-layout.js +0 -1663
  534. package/fesm2015/covalent-core-layout.js.map +0 -1
  535. package/fesm2015/covalent-core-menu.js +0 -57
  536. package/fesm2015/covalent-core-menu.js.map +0 -1
  537. package/fesm2015/covalent-core-message.js +0 -347
  538. package/fesm2015/covalent-core-message.js.map +0 -1
  539. package/fesm2015/covalent-core-search.js +0 -564
  540. package/fesm2015/covalent-core-search.js.map +0 -1
  541. package/fesm2015/covalent-core-side-sheet.js +0 -1134
  542. package/fesm2015/covalent-core-side-sheet.js.map +0 -1
  543. package/fesm2015/covalent-core-user-profile.js +0 -103
  544. package/fesm2015/covalent-core-user-profile.js.map +0 -1
  545. package/fesm2015/covalent-core.js +0 -12
  546. package/fesm2015/covalent-core.js.map +0 -1
  547. package/file/covalent-core-file.metadata.json +0 -1
  548. package/file/file-input/file-input.component.scss +0 -20
  549. package/file/file-upload/file-upload.component.scss +0 -30
  550. package/file/index.d.ts +0 -1
  551. package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
  552. package/json-formatter/index.d.ts +0 -1
  553. package/json-formatter/json-formatter.component.scss +0 -61
  554. package/layout/covalent-core-layout.metadata.json +0 -1
  555. package/layout/index.d.ts +0 -1
  556. package/layout/layout-card-over/layout-card-over.component.scss +0 -42
  557. package/layout/layout-footer/layout-footer.component.scss +0 -4
  558. package/layout/layout-manage-list/layout-manage-list.component.scss +0 -78
  559. package/layout/layout-nav/README.md +0 -46
  560. package/layout/layout-nav/layout-nav.component.scss +0 -50
  561. package/layout/layout-nav-list/layout-nav-list.component.scss +0 -110
  562. package/layout/layout.component.scss +0 -20
  563. package/layout/navigation-drawer/navigation-drawer.component.scss +0 -73
  564. package/menu/covalent-core-menu.metadata.json +0 -1
  565. package/menu/index.d.ts +0 -1
  566. package/menu/menu.component.scss +0 -43
  567. package/message/covalent-core-message.metadata.json +0 -1
  568. package/message/index.d.ts +0 -1
  569. package/message/message.component.scss +0 -29
  570. package/schematics/README.md +0 -66
  571. package/schematics/collection.json +0 -11
  572. package/schematics/components.js +0 -111
  573. package/schematics/components.js.map +0 -1
  574. package/schematics/migration.json +0 -10
  575. package/schematics/ng-add/files/theme.scss +0 -64
  576. package/schematics/ng-add/index.js +0 -58
  577. package/schematics/ng-add/index.js.map +0 -1
  578. package/schematics/ng-add/schema.js +0 -3
  579. package/schematics/ng-add/schema.js.map +0 -1
  580. package/schematics/ng-add/schema.json +0 -81
  581. package/schematics/ng-update/index.js +0 -52
  582. package/schematics/ng-update/index.js.map +0 -1
  583. package/schematics/ng-update/target-version.js +0 -8
  584. package/schematics/ng-update/target-version.js.map +0 -1
  585. package/schematics/version-names.js +0 -6
  586. package/schematics/version-names.js.map +0 -1
  587. package/search/covalent-core-search.metadata.json +0 -1
  588. package/search/index.d.ts +0 -1
  589. package/search/search-box/README.md +0 -62
  590. package/search/search-box/search-box.component.scss +0 -32
  591. package/search/search-input/README.md +0 -65
  592. package/search/search-input/search-input.component.scss +0 -63
  593. package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
  594. package/side-sheet/index.d.ts +0 -1
  595. package/side-sheet/side-sheet.scss +0 -69
  596. package/theming/prebuilt/blue-grey-deep-orange.css +0 -2434
  597. package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
  598. package/theming/prebuilt/blue-grey-deep-orange.scss +0 -13
  599. package/theming/prebuilt/blue-orange.css +0 -2434
  600. package/theming/prebuilt/blue-orange.css.map +0 -1
  601. package/theming/prebuilt/blue-orange.scss +0 -13
  602. package/theming/prebuilt/indigo-pink.css +0 -2434
  603. package/theming/prebuilt/indigo-pink.css.map +0 -1
  604. package/theming/prebuilt/indigo-pink.scss +0 -13
  605. package/theming/prebuilt/orange-light-blue.css +0 -2434
  606. package/theming/prebuilt/orange-light-blue.css.map +0 -1
  607. package/theming/prebuilt/orange-light-blue.scss +0 -13
  608. package/theming/prebuilt/teal-orange.css +0 -2434
  609. package/theming/prebuilt/teal-orange.css.map +0 -1
  610. package/theming/prebuilt/teal-orange.scss +0 -13
  611. package/user-profile/covalent-core-user-profile.metadata.json +0 -1
  612. package/user-profile/index.d.ts +0 -1
  613. package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -38
@@ -1,2084 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/scrolling'), require('@angular/material/sidenav'), require('@angular/material/toolbar'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/card'), require('@angular/material/divider'), require('@covalent/core/common'), require('@angular/router'), require('@angular/platform-browser')) :
3
- typeof define === 'function' && define.amd ? define('@covalent/core/layout', ['exports', '@angular/core', '@angular/common', '@angular/cdk/scrolling', '@angular/material/sidenav', '@angular/material/toolbar', '@angular/material/button', '@angular/material/icon', '@angular/material/card', '@angular/material/divider', '@covalent/core/common', '@angular/router', '@angular/platform-browser'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.layout = {}), global.ng.core, global.ng.common, global.ng.cdk.scrolling, global.ng.material.sidenav, global.ng.material.toolbar, global.ng.material.button, global.ng.material.icon, global.ng.material.card, global.ng.material.divider, global.covalent.core.common, global.ng.router, global.ng.platformBrowser));
5
- }(this, (function (exports, core, common$1, scrolling, sidenav, toolbar, button, icon, card, divider, common, router, platformBrowser) { 'use strict';
6
-
7
- /**
8
- * @fileoverview added by tsickle
9
- * Generated from: layout.component.ts
10
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11
- */
12
- var TdLayoutComponent = /** @class */ (function () {
13
- function TdLayoutComponent() {
14
- /**
15
- * mode?: 'side', 'push' or 'over'
16
- *
17
- * The mode or styling of the sidenav.
18
- * Defaults to "over".
19
- * See "MatSidenav" documentation for more info.
20
- *
21
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
22
- */
23
- this.mode = 'over';
24
- /**
25
- * opened?: boolean
26
- *
27
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
28
- * Defaults to "false".
29
- *
30
- * See "MatSidenav" documentation for more info.
31
- *
32
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
33
- */
34
- this.opened = false;
35
- /**
36
- * sidenavWidth?: string
37
- *
38
- * Sets the "width" of the sidenav in either "px" or "%"
39
- * Defaults to "320px".
40
- *
41
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
42
- */
43
- this.sidenavWidth = '320px';
44
- /**
45
- * containerAutosize?: boolean
46
- *
47
- * Sets "autosize" of the sidenav-container.
48
- * Defaults to "false".
49
- *
50
- * See documentation for more info and potential performance risks.
51
- *
52
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
53
- */
54
- this.containerAutosize = false;
55
- }
56
- Object.defineProperty(TdLayoutComponent.prototype, "disableClose", {
57
- /**
58
- * Checks if `ESC` should close the sidenav
59
- * Should only close it for `push` and `over` modes
60
- * @return {?}
61
- */
62
- get: function () {
63
- return this.mode === 'side';
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
- /**
69
- * Proxy toggle method to access sidenav from outside (from td-layout template).
70
- * @return {?}
71
- */
72
- TdLayoutComponent.prototype.toggle = function () {
73
- return this.sidenav.toggle(!this.sidenav.opened);
74
- };
75
- /**
76
- * Proxy open method to access sidenav from outside (from td-layout template).
77
- * @return {?}
78
- */
79
- TdLayoutComponent.prototype.open = function () {
80
- return this.sidenav.open();
81
- };
82
- /**
83
- * Proxy close method to access sidenav from outside (from td-layout template).
84
- * @return {?}
85
- */
86
- TdLayoutComponent.prototype.close = function () {
87
- return this.sidenav.close();
88
- };
89
- return TdLayoutComponent;
90
- }());
91
- TdLayoutComponent.decorators = [
92
- { type: core.Component, args: [{
93
- selector: 'td-layout',
94
- 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",
95
- styles: [":host{display:-ms-flexbox;display:flex;height:100%;margin:0;min-height:100%;overflow:hidden;width:100%}:host ::ng-deep>mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column}"]
96
- }] }
97
- ];
98
- TdLayoutComponent.propDecorators = {
99
- sidenav: [{ type: core.ViewChild, args: [sidenav.MatSidenav, { static: true },] }],
100
- mode: [{ type: core.Input }],
101
- opened: [{ type: core.Input }],
102
- sidenavWidth: [{ type: core.Input }],
103
- containerAutosize: [{ type: core.Input }]
104
- };
105
- if (false) {
106
- /** @type {?} */
107
- TdLayoutComponent.prototype.sidenav;
108
- /**
109
- * mode?: 'side', 'push' or 'over'
110
- *
111
- * The mode or styling of the sidenav.
112
- * Defaults to "over".
113
- * See "MatSidenav" documentation for more info.
114
- *
115
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
116
- * @type {?}
117
- */
118
- TdLayoutComponent.prototype.mode;
119
- /**
120
- * opened?: boolean
121
- *
122
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
123
- * Defaults to "false".
124
- *
125
- * See "MatSidenav" documentation for more info.
126
- *
127
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
128
- * @type {?}
129
- */
130
- TdLayoutComponent.prototype.opened;
131
- /**
132
- * sidenavWidth?: string
133
- *
134
- * Sets the "width" of the sidenav in either "px" or "%"
135
- * Defaults to "320px".
136
- *
137
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
138
- * @type {?}
139
- */
140
- TdLayoutComponent.prototype.sidenavWidth;
141
- /**
142
- * containerAutosize?: boolean
143
- *
144
- * Sets "autosize" of the sidenav-container.
145
- * Defaults to "false".
146
- *
147
- * See documentation for more info and potential performance risks.
148
- *
149
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
150
- * @type {?}
151
- */
152
- TdLayoutComponent.prototype.containerAutosize;
153
- }
154
-
155
- /*! *****************************************************************************
156
- Copyright (c) Microsoft Corporation.
157
-
158
- Permission to use, copy, modify, and/or distribute this software for any
159
- purpose with or without fee is hereby granted.
160
-
161
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
162
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
163
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
164
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
165
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
166
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
167
- PERFORMANCE OF THIS SOFTWARE.
168
- ***************************************************************************** */
169
- /* global Reflect, Promise */
170
- var extendStatics = function (d, b) {
171
- extendStatics = Object.setPrototypeOf ||
172
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
173
- function (d, b) { for (var p in b)
174
- if (Object.prototype.hasOwnProperty.call(b, p))
175
- d[p] = b[p]; };
176
- return extendStatics(d, b);
177
- };
178
- function __extends(d, b) {
179
- extendStatics(d, b);
180
- function __() { this.constructor = d; }
181
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
182
- }
183
- var __assign = function () {
184
- __assign = Object.assign || function __assign(t) {
185
- for (var s, i = 1, n = arguments.length; i < n; i++) {
186
- s = arguments[i];
187
- for (var p in s)
188
- if (Object.prototype.hasOwnProperty.call(s, p))
189
- t[p] = s[p];
190
- }
191
- return t;
192
- };
193
- return __assign.apply(this, arguments);
194
- };
195
- function __rest(s, e) {
196
- var t = {};
197
- for (var p in s)
198
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
199
- t[p] = s[p];
200
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
201
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
202
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
203
- t[p[i]] = s[p[i]];
204
- }
205
- return t;
206
- }
207
- function __decorate(decorators, target, key, desc) {
208
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
209
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
210
- r = Reflect.decorate(decorators, target, key, desc);
211
- else
212
- for (var i = decorators.length - 1; i >= 0; i--)
213
- if (d = decorators[i])
214
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
215
- return c > 3 && r && Object.defineProperty(target, key, r), r;
216
- }
217
- function __param(paramIndex, decorator) {
218
- return function (target, key) { decorator(target, key, paramIndex); };
219
- }
220
- function __metadata(metadataKey, metadataValue) {
221
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
222
- return Reflect.metadata(metadataKey, metadataValue);
223
- }
224
- function __awaiter(thisArg, _arguments, P, generator) {
225
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
226
- return new (P || (P = Promise))(function (resolve, reject) {
227
- function fulfilled(value) { try {
228
- step(generator.next(value));
229
- }
230
- catch (e) {
231
- reject(e);
232
- } }
233
- function rejected(value) { try {
234
- step(generator["throw"](value));
235
- }
236
- catch (e) {
237
- reject(e);
238
- } }
239
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
240
- step((generator = generator.apply(thisArg, _arguments || [])).next());
241
- });
242
- }
243
- function __generator(thisArg, body) {
244
- var _ = { label: 0, sent: function () { if (t[0] & 1)
245
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
246
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
247
- function verb(n) { return function (v) { return step([n, v]); }; }
248
- function step(op) {
249
- if (f)
250
- throw new TypeError("Generator is already executing.");
251
- while (_)
252
- try {
253
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
254
- return t;
255
- if (y = 0, t)
256
- op = [op[0] & 2, t.value];
257
- switch (op[0]) {
258
- case 0:
259
- case 1:
260
- t = op;
261
- break;
262
- case 4:
263
- _.label++;
264
- return { value: op[1], done: false };
265
- case 5:
266
- _.label++;
267
- y = op[1];
268
- op = [0];
269
- continue;
270
- case 7:
271
- op = _.ops.pop();
272
- _.trys.pop();
273
- continue;
274
- default:
275
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
276
- _ = 0;
277
- continue;
278
- }
279
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
280
- _.label = op[1];
281
- break;
282
- }
283
- if (op[0] === 6 && _.label < t[1]) {
284
- _.label = t[1];
285
- t = op;
286
- break;
287
- }
288
- if (t && _.label < t[2]) {
289
- _.label = t[2];
290
- _.ops.push(op);
291
- break;
292
- }
293
- if (t[2])
294
- _.ops.pop();
295
- _.trys.pop();
296
- continue;
297
- }
298
- op = body.call(thisArg, _);
299
- }
300
- catch (e) {
301
- op = [6, e];
302
- y = 0;
303
- }
304
- finally {
305
- f = t = 0;
306
- }
307
- if (op[0] & 5)
308
- throw op[1];
309
- return { value: op[0] ? op[1] : void 0, done: true };
310
- }
311
- }
312
- var __createBinding = Object.create ? (function (o, m, k, k2) {
313
- if (k2 === undefined)
314
- k2 = k;
315
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
316
- }) : (function (o, m, k, k2) {
317
- if (k2 === undefined)
318
- k2 = k;
319
- o[k2] = m[k];
320
- });
321
- function __exportStar(m, o) {
322
- for (var p in m)
323
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
324
- __createBinding(o, m, p);
325
- }
326
- function __values(o) {
327
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
328
- if (m)
329
- return m.call(o);
330
- if (o && typeof o.length === "number")
331
- return {
332
- next: function () {
333
- if (o && i >= o.length)
334
- o = void 0;
335
- return { value: o && o[i++], done: !o };
336
- }
337
- };
338
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
339
- }
340
- function __read(o, n) {
341
- var m = typeof Symbol === "function" && o[Symbol.iterator];
342
- if (!m)
343
- return o;
344
- var i = m.call(o), r, ar = [], e;
345
- try {
346
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
347
- ar.push(r.value);
348
- }
349
- catch (error) {
350
- e = { error: error };
351
- }
352
- finally {
353
- try {
354
- if (r && !r.done && (m = i["return"]))
355
- m.call(i);
356
- }
357
- finally {
358
- if (e)
359
- throw e.error;
360
- }
361
- }
362
- return ar;
363
- }
364
- function __spread() {
365
- for (var ar = [], i = 0; i < arguments.length; i++)
366
- ar = ar.concat(__read(arguments[i]));
367
- return ar;
368
- }
369
- function __spreadArrays() {
370
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
371
- s += arguments[i].length;
372
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
373
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
374
- r[k] = a[j];
375
- return r;
376
- }
377
- ;
378
- function __await(v) {
379
- return this instanceof __await ? (this.v = v, this) : new __await(v);
380
- }
381
- function __asyncGenerator(thisArg, _arguments, generator) {
382
- if (!Symbol.asyncIterator)
383
- throw new TypeError("Symbol.asyncIterator is not defined.");
384
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
385
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
386
- function verb(n) { if (g[n])
387
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
388
- function resume(n, v) { try {
389
- step(g[n](v));
390
- }
391
- catch (e) {
392
- settle(q[0][3], e);
393
- } }
394
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
395
- function fulfill(value) { resume("next", value); }
396
- function reject(value) { resume("throw", value); }
397
- function settle(f, v) { if (f(v), q.shift(), q.length)
398
- resume(q[0][0], q[0][1]); }
399
- }
400
- function __asyncDelegator(o) {
401
- var i, p;
402
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
403
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
404
- }
405
- function __asyncValues(o) {
406
- if (!Symbol.asyncIterator)
407
- throw new TypeError("Symbol.asyncIterator is not defined.");
408
- var m = o[Symbol.asyncIterator], i;
409
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
410
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
411
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
412
- }
413
- function __makeTemplateObject(cooked, raw) {
414
- if (Object.defineProperty) {
415
- Object.defineProperty(cooked, "raw", { value: raw });
416
- }
417
- else {
418
- cooked.raw = raw;
419
- }
420
- return cooked;
421
- }
422
- ;
423
- var __setModuleDefault = Object.create ? (function (o, v) {
424
- Object.defineProperty(o, "default", { enumerable: true, value: v });
425
- }) : function (o, v) {
426
- o["default"] = v;
427
- };
428
- function __importStar(mod) {
429
- if (mod && mod.__esModule)
430
- return mod;
431
- var result = {};
432
- if (mod != null)
433
- for (var k in mod)
434
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
435
- __createBinding(result, mod, k);
436
- __setModuleDefault(result, mod);
437
- return result;
438
- }
439
- function __importDefault(mod) {
440
- return (mod && mod.__esModule) ? mod : { default: mod };
441
- }
442
- function __classPrivateFieldGet(receiver, privateMap) {
443
- if (!privateMap.has(receiver)) {
444
- throw new TypeError("attempted to get private field on non-instance");
445
- }
446
- return privateMap.get(receiver);
447
- }
448
- function __classPrivateFieldSet(receiver, privateMap, value) {
449
- if (!privateMap.has(receiver)) {
450
- throw new TypeError("attempted to set private field on non-instance");
451
- }
452
- privateMap.set(receiver, value);
453
- return value;
454
- }
455
-
456
- /**
457
- * @record
458
- */
459
- function ILayoutTogglable() { }
460
- if (false) {
461
- /** @type {?} */
462
- ILayoutTogglable.prototype.opened;
463
- /** @type {?} */
464
- ILayoutTogglable.prototype.sidenav;
465
- /**
466
- * @return {?}
467
- */
468
- ILayoutTogglable.prototype.toggle = function () { };
469
- /**
470
- * @return {?}
471
- */
472
- ILayoutTogglable.prototype.open = function () { };
473
- /**
474
- * @return {?}
475
- */
476
- ILayoutTogglable.prototype.close = function () { };
477
- }
478
- var LayoutToggleBase = /** @class */ (function () {
479
- function LayoutToggleBase() {
480
- }
481
- return LayoutToggleBase;
482
- }());
483
- /* tslint:disable-next-line */
484
- /** @type {?} */
485
- var _TdLayoutToggleMixinBase = common.mixinDisabled(LayoutToggleBase);
486
- /**
487
- * @abstract
488
- */
489
- var BaseLayoutToggleDirective = /** @class */ (function (_super) {
490
- __extends(BaseLayoutToggleDirective, _super);
491
- /**
492
- * @param {?} _layout
493
- * @param {?} _renderer
494
- * @param {?} _elementRef
495
- */
496
- function BaseLayoutToggleDirective(_layout, _renderer, _elementRef) {
497
- var _this = _super.call(this) || this;
498
- _this._layout = _layout;
499
- _this._renderer = _renderer;
500
- _this._elementRef = _elementRef;
501
- _this._initialized = false;
502
- _this._hideWhenOpened = false;
503
- // if layout has not been provided
504
- // show warn message
505
- if (!_this._layout) {
506
- _this._noLayoutMessage();
507
- }
508
- _this._renderer.addClass(_this._elementRef.nativeElement, 'td-layout-menu-button');
509
- return _this;
510
- }
511
- Object.defineProperty(BaseLayoutToggleDirective.prototype, "hideWhenOpened", {
512
- /**
513
- * hideWhenOpened?: boolean
514
- * When this is set to true, the host will be hidden when
515
- * the sidenav is opened.
516
- * @param {?} hideWhenOpened
517
- * @return {?}
518
- */
519
- set: function (hideWhenOpened) {
520
- this._hideWhenOpened = hideWhenOpened;
521
- if (this._initialized) {
522
- this._toggleVisibility();
523
- }
524
- },
525
- enumerable: false,
526
- configurable: true
527
- });
528
- /**
529
- * @return {?}
530
- */
531
- BaseLayoutToggleDirective.prototype.ngAfterViewInit = function () {
532
- var _this = this;
533
- this._initialized = true;
534
- if (this._layout && this._layout.sidenav) {
535
- this._toggleSubs = this._layout.sidenav._animationStarted.subscribe(( /**
536
- * @return {?}
537
- */function () {
538
- _this._toggleVisibility();
539
- }));
540
- }
541
- // execute toggleVisibility since the onOpenStart and onCloseStart
542
- // methods might not be executed always when the element is rendered
543
- this._toggleVisibility();
544
- };
545
- /**
546
- * @return {?}
547
- */
548
- BaseLayoutToggleDirective.prototype.ngOnDestroy = function () {
549
- if (this._toggleSubs) {
550
- this._toggleSubs.unsubscribe();
551
- this._toggleSubs = undefined;
552
- }
553
- };
554
- /**
555
- * Listens to host click event to trigger the layout toggle
556
- * @param {?} event
557
- * @return {?}
558
- */
559
- BaseLayoutToggleDirective.prototype.clickListener = function (event) {
560
- event.preventDefault();
561
- if (!this.disabled) {
562
- // if layout has been provided, try triggering the click on it
563
- // else show warn message
564
- if (this._layout && this._layout.open) {
565
- this.onClick();
566
- }
567
- else {
568
- this._noLayoutMessage();
569
- }
570
- }
571
- };
572
- /**
573
- * @private
574
- * @return {?}
575
- */
576
- BaseLayoutToggleDirective.prototype._toggleVisibility = function () {
577
- if (this._layout) {
578
- if (this._layout.sidenav.opened && this._hideWhenOpened) {
579
- this._renderer.setStyle(this._elementRef.nativeElement, 'display', 'none');
580
- }
581
- else {
582
- this._renderer.setStyle(this._elementRef.nativeElement, 'display', '');
583
- }
584
- }
585
- };
586
- /**
587
- * @private
588
- * @return {?}
589
- */
590
- BaseLayoutToggleDirective.prototype._noLayoutMessage = function () {
591
- /* tslint:disable-next-line */
592
- console.warn('Covalent: Parent layout not found for layout toggle directive');
593
- };
594
- return BaseLayoutToggleDirective;
595
- }(_TdLayoutToggleMixinBase));
596
- BaseLayoutToggleDirective.decorators = [
597
- { type: core.Directive }
598
- ];
599
- /** @nocollapse */
600
- BaseLayoutToggleDirective.ctorParameters = function () { return [
601
- { type: undefined },
602
- { type: core.Renderer2 },
603
- { type: core.ElementRef }
604
- ]; };
605
- BaseLayoutToggleDirective.propDecorators = {
606
- hideWhenOpened: [{ type: core.Input, args: ['hideWhenOpened',] }],
607
- clickListener: [{ type: core.HostListener, args: ['click', ['$event'],] }]
608
- };
609
- if (false) {
610
- /**
611
- * @type {?}
612
- * @private
613
- */
614
- BaseLayoutToggleDirective.prototype._toggleSubs;
615
- /**
616
- * @type {?}
617
- * @private
618
- */
619
- BaseLayoutToggleDirective.prototype._initialized;
620
- /**
621
- * @type {?}
622
- * @private
623
- */
624
- BaseLayoutToggleDirective.prototype._hideWhenOpened;
625
- /**
626
- * @type {?}
627
- * @protected
628
- */
629
- BaseLayoutToggleDirective.prototype._layout;
630
- /**
631
- * @type {?}
632
- * @private
633
- */
634
- BaseLayoutToggleDirective.prototype._renderer;
635
- /**
636
- * @type {?}
637
- * @private
638
- */
639
- BaseLayoutToggleDirective.prototype._elementRef;
640
- /**
641
- * @abstract
642
- * @return {?}
643
- */
644
- BaseLayoutToggleDirective.prototype.onClick = function () { };
645
- }
646
-
647
- var TdLayoutToggleDirective = /** @class */ (function (_super) {
648
- __extends(TdLayoutToggleDirective, _super);
649
- /**
650
- * @param {?} layout
651
- * @param {?} renderer
652
- * @param {?} elementRef
653
- */
654
- function TdLayoutToggleDirective(layout, renderer, elementRef) {
655
- return _super.call(this, layout, renderer, elementRef) || this;
656
- }
657
- Object.defineProperty(TdLayoutToggleDirective.prototype, "tdLayoutToggle", {
658
- /**
659
- * @param {?} tdLayoutToggle
660
- * @return {?}
661
- */
662
- set: function (tdLayoutToggle) {
663
- this.disabled = !(( /** @type {?} */(tdLayoutToggle)) === '' || tdLayoutToggle);
664
- },
665
- enumerable: false,
666
- configurable: true
667
- });
668
- /**
669
- * @return {?}
670
- */
671
- TdLayoutToggleDirective.prototype.onClick = function () {
672
- this._layout.toggle();
673
- };
674
- return TdLayoutToggleDirective;
675
- }(BaseLayoutToggleDirective));
676
- TdLayoutToggleDirective.decorators = [
677
- { type: core.Directive, args: [{
678
- selector: '[tdLayoutToggle]',
679
- },] }
680
- ];
681
- /** @nocollapse */
682
- TdLayoutToggleDirective.ctorParameters = function () { return [
683
- { type: TdLayoutComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
684
- * @return {?}
685
- */function () { return TdLayoutComponent; })),] }] },
686
- { type: core.Renderer2 },
687
- { type: core.ElementRef }
688
- ]; };
689
- TdLayoutToggleDirective.propDecorators = {
690
- tdLayoutToggle: [{ type: core.Input, args: ['tdLayoutToggle',] }]
691
- };
692
- var TdLayoutCloseDirective = /** @class */ (function (_super) {
693
- __extends(TdLayoutCloseDirective, _super);
694
- /**
695
- * @param {?} layout
696
- * @param {?} renderer
697
- * @param {?} elementRef
698
- */
699
- function TdLayoutCloseDirective(layout, renderer, elementRef) {
700
- return _super.call(this, layout, renderer, elementRef) || this;
701
- }
702
- Object.defineProperty(TdLayoutCloseDirective.prototype, "tdLayoutClose", {
703
- /**
704
- * @param {?} tdLayoutClose
705
- * @return {?}
706
- */
707
- set: function (tdLayoutClose) {
708
- this.disabled = !(( /** @type {?} */(tdLayoutClose)) === '' || tdLayoutClose);
709
- },
710
- enumerable: false,
711
- configurable: true
712
- });
713
- /**
714
- * @return {?}
715
- */
716
- TdLayoutCloseDirective.prototype.onClick = function () {
717
- this._layout.close();
718
- };
719
- return TdLayoutCloseDirective;
720
- }(BaseLayoutToggleDirective));
721
- TdLayoutCloseDirective.decorators = [
722
- { type: core.Directive, args: [{
723
- selector: '[tdLayoutClose]',
724
- },] }
725
- ];
726
- /** @nocollapse */
727
- TdLayoutCloseDirective.ctorParameters = function () { return [
728
- { type: TdLayoutComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
729
- * @return {?}
730
- */function () { return TdLayoutComponent; })),] }] },
731
- { type: core.Renderer2 },
732
- { type: core.ElementRef }
733
- ]; };
734
- TdLayoutCloseDirective.propDecorators = {
735
- tdLayoutClose: [{ type: core.Input, args: ['tdLayoutClose',] }]
736
- };
737
- var TdLayoutOpenDirective = /** @class */ (function (_super) {
738
- __extends(TdLayoutOpenDirective, _super);
739
- /**
740
- * @param {?} layout
741
- * @param {?} renderer
742
- * @param {?} elementRef
743
- */
744
- function TdLayoutOpenDirective(layout, renderer, elementRef) {
745
- return _super.call(this, layout, renderer, elementRef) || this;
746
- }
747
- Object.defineProperty(TdLayoutOpenDirective.prototype, "tdLayoutClose", {
748
- /**
749
- * @param {?} tdLayoutOpen
750
- * @return {?}
751
- */
752
- set: function (tdLayoutOpen) {
753
- this.disabled = !(( /** @type {?} */(tdLayoutOpen)) === '' || tdLayoutOpen);
754
- },
755
- enumerable: false,
756
- configurable: true
757
- });
758
- /**
759
- * @return {?}
760
- */
761
- TdLayoutOpenDirective.prototype.onClick = function () {
762
- this._layout.open();
763
- };
764
- return TdLayoutOpenDirective;
765
- }(BaseLayoutToggleDirective));
766
- TdLayoutOpenDirective.decorators = [
767
- { type: core.Directive, args: [{
768
- selector: '[tdLayoutOpen]',
769
- },] }
770
- ];
771
- /** @nocollapse */
772
- TdLayoutOpenDirective.ctorParameters = function () { return [
773
- { type: TdLayoutComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
774
- * @return {?}
775
- */function () { return TdLayoutComponent; })),] }] },
776
- { type: core.Renderer2 },
777
- { type: core.ElementRef }
778
- ]; };
779
- TdLayoutOpenDirective.propDecorators = {
780
- tdLayoutClose: [{ type: core.Input, args: ['tdLayoutOpen',] }]
781
- };
782
-
783
- /**
784
- * @fileoverview added by tsickle
785
- * Generated from: layout-nav/layout-nav.component.ts
786
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
787
- */
788
- var TdLayoutNavComponent = /** @class */ (function () {
789
- /**
790
- * @param {?} _router
791
- */
792
- function TdLayoutNavComponent(_router) {
793
- this._router = _router;
794
- /**
795
- * color?: 'accent' | 'primary' | 'warn'
796
- *
797
- * toolbar color option: primary | accent | warn.
798
- * If [color] is not set, primary is used.
799
- */
800
- this.color = 'primary';
801
- }
802
- Object.defineProperty(TdLayoutNavComponent.prototype, "routerEnabled", {
803
- /**
804
- * Checks if router was injected.
805
- * @return {?}
806
- */
807
- get: function () {
808
- return !!this._router && !!this.navigationRoute;
809
- },
810
- enumerable: false,
811
- configurable: true
812
- });
813
- /**
814
- * @return {?}
815
- */
816
- TdLayoutNavComponent.prototype.handleNavigationClick = function () {
817
- if (this.routerEnabled) {
818
- this._router.navigateByUrl(this.navigationRoute);
819
- }
820
- };
821
- return TdLayoutNavComponent;
822
- }());
823
- TdLayoutNavComponent.decorators = [
824
- { type: core.Component, args: [{
825
- selector: 'td-layout-nav',
826
- 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",
827
- styles: [".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-left:6px;margin-right:0}:host{overflow:hidden}:host,:host .td-layout-nav-wrapper{display:-ms-flexbox;display:flex;height:100%;margin:0;min-height:100%;width:100%}:host .td-layout-nav-wrapper{-ms-flex-direction:column;box-sizing:border-box;flex-direction:column}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-start;max-width:100%}:host .td-layout-nav-wrapper .td-layout-nav-content{-ms-flex:1;-ms-flex-direction:column;-webkit-overflow-scrolling:touch;box-sizing:border-box;display:-ms-flexbox;display:flex;flex:1;flex-direction:column;overflow:auto;position:relative}"]
828
- }] }
829
- ];
830
- /** @nocollapse */
831
- TdLayoutNavComponent.ctorParameters = function () { return [
832
- { type: router.Router, decorators: [{ type: core.Optional }] }
833
- ]; };
834
- TdLayoutNavComponent.propDecorators = {
835
- toolbarTitle: [{ type: core.Input }],
836
- icon: [{ type: core.Input }],
837
- logo: [{ type: core.Input }],
838
- color: [{ type: core.Input }],
839
- navigationRoute: [{ type: core.Input }]
840
- };
841
- if (false) {
842
- /**
843
- * toolbarTitle?: string
844
- *
845
- * Title set in toolbar.
846
- * @type {?}
847
- */
848
- TdLayoutNavComponent.prototype.toolbarTitle;
849
- /**
850
- * icon?: string
851
- *
852
- * icon name to be displayed before the title
853
- * @type {?}
854
- */
855
- TdLayoutNavComponent.prototype.icon;
856
- /**
857
- * logo?: string
858
- *
859
- * logo icon name to be displayed before the title.
860
- * If [icon] is set, then this will not be shown.
861
- * @type {?}
862
- */
863
- TdLayoutNavComponent.prototype.logo;
864
- /**
865
- * color?: 'accent' | 'primary' | 'warn'
866
- *
867
- * toolbar color option: primary | accent | warn.
868
- * If [color] is not set, primary is used.
869
- * @type {?}
870
- */
871
- TdLayoutNavComponent.prototype.color;
872
- /**
873
- * navigationRoute?: string
874
- *
875
- * option to set the combined route for the icon, logo, and toolbarTitle.
876
- * @type {?}
877
- */
878
- TdLayoutNavComponent.prototype.navigationRoute;
879
- /**
880
- * @type {?}
881
- * @private
882
- */
883
- TdLayoutNavComponent.prototype._router;
884
- }
885
-
886
- /**
887
- * @fileoverview added by tsickle
888
- * Generated from: layout-nav-list/layout-nav-list.component.ts
889
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
890
- */
891
- var TdLayoutNavListComponent = /** @class */ (function () {
892
- /**
893
- * @param {?} _router
894
- */
895
- function TdLayoutNavListComponent(_router) {
896
- this._router = _router;
897
- /**
898
- * color?: 'accent' | 'primary' | 'warn'
899
- *
900
- * toolbar color option: primary | accent | warn.
901
- * If [color] is not set, primary is used.
902
- */
903
- this.color = 'primary';
904
- /**
905
- * mode?: 'side', 'push' or 'over'
906
- *
907
- * The mode or styling of the sidenav.
908
- * Defaults to "side".
909
- * See "MatSidenav" documentation for more info.
910
- *
911
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
912
- */
913
- this.mode = 'side';
914
- /**
915
- * opened?: boolean
916
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
917
- * Defaults to "true".
918
- *
919
- * See "MatSidenav" documentation for more info.
920
- *
921
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
922
- */
923
- this.opened = true;
924
- /**
925
- * sidenavWidth?: string
926
- *
927
- * Sets the "width" of the sidenav in either "px" or "%"
928
- * Defaults to "350px".
929
- *
930
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
931
- */
932
- this.sidenavWidth = '350px';
933
- /**
934
- * containerAutosize?: boolean
935
- *
936
- * Sets "autosize" of the sidenav-container.
937
- * Defaults to "false".
938
- *
939
- * See documentation for more info and potential performance risks.
940
- *
941
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
942
- */
943
- this.containerAutosize = false;
944
- }
945
- Object.defineProperty(TdLayoutNavListComponent.prototype, "disableClose", {
946
- /**
947
- * Checks if `ESC` should close the sidenav
948
- * Should only close it for `push` and `over` modes
949
- * @return {?}
950
- */
951
- get: function () {
952
- return this.mode === 'side';
953
- },
954
- enumerable: false,
955
- configurable: true
956
- });
957
- Object.defineProperty(TdLayoutNavListComponent.prototype, "routerEnabled", {
958
- /**
959
- * Checks if router was injected.
960
- * @return {?}
961
- */
962
- get: function () {
963
- return !!this._router && !!this.navigationRoute;
964
- },
965
- enumerable: false,
966
- configurable: true
967
- });
968
- /**
969
- * @return {?}
970
- */
971
- TdLayoutNavListComponent.prototype.handleNavigationClick = function () {
972
- if (this.routerEnabled) {
973
- this._router.navigateByUrl(this.navigationRoute);
974
- }
975
- };
976
- /**
977
- * Proxy toggle method to access sidenav from outside (from td-layout template).
978
- * @return {?}
979
- */
980
- TdLayoutNavListComponent.prototype.toggle = function () {
981
- return this.sidenav.toggle(!this.sidenav.opened);
982
- };
983
- /**
984
- * Proxy open method to access sidenav from outside (from td-layout template).
985
- * @return {?}
986
- */
987
- TdLayoutNavListComponent.prototype.open = function () {
988
- return this.sidenav.open();
989
- };
990
- /**
991
- * Proxy close method to access sidenav from outside (from td-layout template).
992
- * @return {?}
993
- */
994
- TdLayoutNavListComponent.prototype.close = function () {
995
- return this.sidenav.close();
996
- };
997
- return TdLayoutNavListComponent;
998
- }());
999
- TdLayoutNavListComponent.decorators = [
1000
- { type: core.Component, args: [{
1001
- selector: 'td-layout-nav-list',
1002
- 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",
1003
- styles: [":host{-ms-flex:1;-ms-flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;flex:1;flex-direction:column;height:100%;margin:0;min-height:100%;overflow:hidden;width:100%}: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:1;-ms-flex-direction:column;-webkit-overflow-scrolling:touch;box-sizing:border-box;display:-ms-flexbox;display:flex;flex:1;flex-direction:column;overflow:auto;position:relative}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-start;max-width:100%}:host .td-layout-nav-list-wrapper .td-layout-nav-list-content{-ms-flex:1;-webkit-overflow-scrolling:touch;display:block;flex:1;overflow:auto;position:relative;text-align:start}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{-ms-flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:column;height:100%;margin:0;min-height:100%;overflow:auto;position:relative;width:100%}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{-ms-flex:1;-webkit-overflow-scrolling:touch;display:block;flex:1;overflow:auto;position:relative}: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-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing,: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{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{-ms-flex-direction:column;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:column}"]
1004
- }] }
1005
- ];
1006
- /** @nocollapse */
1007
- TdLayoutNavListComponent.ctorParameters = function () { return [
1008
- { type: router.Router, decorators: [{ type: core.Optional }] }
1009
- ]; };
1010
- TdLayoutNavListComponent.propDecorators = {
1011
- sidenav: [{ type: core.ViewChild, args: [sidenav.MatSidenav, { static: true },] }],
1012
- toolbarTitle: [{ type: core.Input }],
1013
- icon: [{ type: core.Input }],
1014
- logo: [{ type: core.Input }],
1015
- color: [{ type: core.Input }],
1016
- mode: [{ type: core.Input }],
1017
- opened: [{ type: core.Input }],
1018
- sidenavWidth: [{ type: core.Input }],
1019
- containerAutosize: [{ type: core.Input }],
1020
- navigationRoute: [{ type: core.Input }]
1021
- };
1022
- if (false) {
1023
- /** @type {?} */
1024
- TdLayoutNavListComponent.prototype.sidenav;
1025
- /**
1026
- * toolbarTitle?: string
1027
- *
1028
- * Title set in toolbar.
1029
- * @type {?}
1030
- */
1031
- TdLayoutNavListComponent.prototype.toolbarTitle;
1032
- /**
1033
- * icon?: string
1034
- * icon name to be displayed before the title
1035
- * @type {?}
1036
- */
1037
- TdLayoutNavListComponent.prototype.icon;
1038
- /**
1039
- * logo?: string
1040
- *
1041
- * logo icon name to be displayed before the title.
1042
- * If [icon] is set, then this will not be shown.
1043
- * @type {?}
1044
- */
1045
- TdLayoutNavListComponent.prototype.logo;
1046
- /**
1047
- * color?: 'accent' | 'primary' | 'warn'
1048
- *
1049
- * toolbar color option: primary | accent | warn.
1050
- * If [color] is not set, primary is used.
1051
- * @type {?}
1052
- */
1053
- TdLayoutNavListComponent.prototype.color;
1054
- /**
1055
- * mode?: 'side', 'push' or 'over'
1056
- *
1057
- * The mode or styling of the sidenav.
1058
- * Defaults to "side".
1059
- * See "MatSidenav" documentation for more info.
1060
- *
1061
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1062
- * @type {?}
1063
- */
1064
- TdLayoutNavListComponent.prototype.mode;
1065
- /**
1066
- * opened?: boolean
1067
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
1068
- * Defaults to "true".
1069
- *
1070
- * See "MatSidenav" documentation for more info.
1071
- *
1072
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1073
- * @type {?}
1074
- */
1075
- TdLayoutNavListComponent.prototype.opened;
1076
- /**
1077
- * sidenavWidth?: string
1078
- *
1079
- * Sets the "width" of the sidenav in either "px" or "%"
1080
- * Defaults to "350px".
1081
- *
1082
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1083
- * @type {?}
1084
- */
1085
- TdLayoutNavListComponent.prototype.sidenavWidth;
1086
- /**
1087
- * containerAutosize?: boolean
1088
- *
1089
- * Sets "autosize" of the sidenav-container.
1090
- * Defaults to "false".
1091
- *
1092
- * See documentation for more info and potential performance risks.
1093
- *
1094
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
1095
- * @type {?}
1096
- */
1097
- TdLayoutNavListComponent.prototype.containerAutosize;
1098
- /**
1099
- * navigationRoute?: string
1100
- *
1101
- * option to set the combined route for the icon, logo, and toolbarTitle.
1102
- * @type {?}
1103
- */
1104
- TdLayoutNavListComponent.prototype.navigationRoute;
1105
- /**
1106
- * @type {?}
1107
- * @private
1108
- */
1109
- TdLayoutNavListComponent.prototype._router;
1110
- }
1111
-
1112
- var TdLayoutNavListToggleDirective = /** @class */ (function (_super) {
1113
- __extends(TdLayoutNavListToggleDirective, _super);
1114
- /**
1115
- * @param {?} layout
1116
- * @param {?} renderer
1117
- * @param {?} elementRef
1118
- */
1119
- function TdLayoutNavListToggleDirective(layout, renderer, elementRef) {
1120
- return _super.call(this, layout, renderer, elementRef) || this;
1121
- }
1122
- Object.defineProperty(TdLayoutNavListToggleDirective.prototype, "tdLayoutNavListToggle", {
1123
- /**
1124
- * @param {?} tdLayoutNavListToggle
1125
- * @return {?}
1126
- */
1127
- set: function (tdLayoutNavListToggle) {
1128
- this.disabled = !(( /** @type {?} */(tdLayoutNavListToggle)) === '' || tdLayoutNavListToggle);
1129
- },
1130
- enumerable: false,
1131
- configurable: true
1132
- });
1133
- /**
1134
- * @return {?}
1135
- */
1136
- TdLayoutNavListToggleDirective.prototype.onClick = function () {
1137
- this._layout.toggle();
1138
- };
1139
- return TdLayoutNavListToggleDirective;
1140
- }(BaseLayoutToggleDirective));
1141
- TdLayoutNavListToggleDirective.decorators = [
1142
- { type: core.Directive, args: [{
1143
- selector: '[tdLayoutNavListToggle]',
1144
- inputs: ['hideWhenOpened'],
1145
- },] }
1146
- ];
1147
- /** @nocollapse */
1148
- TdLayoutNavListToggleDirective.ctorParameters = function () { return [
1149
- { type: TdLayoutNavListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1150
- * @return {?}
1151
- */function () { return TdLayoutNavListComponent; })),] }] },
1152
- { type: core.Renderer2 },
1153
- { type: core.ElementRef }
1154
- ]; };
1155
- TdLayoutNavListToggleDirective.propDecorators = {
1156
- tdLayoutNavListToggle: [{ type: core.Input, args: ['tdLayoutNavListToggle',] }]
1157
- };
1158
- var TdLayoutNavListCloseDirective = /** @class */ (function (_super) {
1159
- __extends(TdLayoutNavListCloseDirective, _super);
1160
- /**
1161
- * @param {?} layout
1162
- * @param {?} renderer
1163
- * @param {?} elementRef
1164
- */
1165
- function TdLayoutNavListCloseDirective(layout, renderer, elementRef) {
1166
- return _super.call(this, layout, renderer, elementRef) || this;
1167
- }
1168
- Object.defineProperty(TdLayoutNavListCloseDirective.prototype, "tdLayoutNavListClose", {
1169
- /**
1170
- * @param {?} tdLayoutNavListClose
1171
- * @return {?}
1172
- */
1173
- set: function (tdLayoutNavListClose) {
1174
- this.disabled = !(( /** @type {?} */(tdLayoutNavListClose)) === '' || tdLayoutNavListClose);
1175
- },
1176
- enumerable: false,
1177
- configurable: true
1178
- });
1179
- /**
1180
- * @return {?}
1181
- */
1182
- TdLayoutNavListCloseDirective.prototype.onClick = function () {
1183
- this._layout.close();
1184
- };
1185
- return TdLayoutNavListCloseDirective;
1186
- }(BaseLayoutToggleDirective));
1187
- TdLayoutNavListCloseDirective.decorators = [
1188
- { type: core.Directive, args: [{
1189
- selector: '[tdLayoutNavListClose]',
1190
- inputs: ['hideWhenOpened'],
1191
- },] }
1192
- ];
1193
- /** @nocollapse */
1194
- TdLayoutNavListCloseDirective.ctorParameters = function () { return [
1195
- { type: TdLayoutNavListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1196
- * @return {?}
1197
- */function () { return TdLayoutNavListComponent; })),] }] },
1198
- { type: core.Renderer2 },
1199
- { type: core.ElementRef }
1200
- ]; };
1201
- TdLayoutNavListCloseDirective.propDecorators = {
1202
- tdLayoutNavListClose: [{ type: core.Input, args: ['tdLayoutNavListClose',] }]
1203
- };
1204
- var TdLayoutNavListOpenDirective = /** @class */ (function (_super) {
1205
- __extends(TdLayoutNavListOpenDirective, _super);
1206
- /**
1207
- * @param {?} layout
1208
- * @param {?} renderer
1209
- * @param {?} elementRef
1210
- */
1211
- function TdLayoutNavListOpenDirective(layout, renderer, elementRef) {
1212
- return _super.call(this, layout, renderer, elementRef) || this;
1213
- }
1214
- Object.defineProperty(TdLayoutNavListOpenDirective.prototype, "tdLayoutNavListOpen", {
1215
- /**
1216
- * @param {?} tdLayoutNavListOpen
1217
- * @return {?}
1218
- */
1219
- set: function (tdLayoutNavListOpen) {
1220
- this.disabled = !(( /** @type {?} */(tdLayoutNavListOpen)) === '' || tdLayoutNavListOpen);
1221
- },
1222
- enumerable: false,
1223
- configurable: true
1224
- });
1225
- /**
1226
- * @return {?}
1227
- */
1228
- TdLayoutNavListOpenDirective.prototype.onClick = function () {
1229
- this._layout.open();
1230
- };
1231
- return TdLayoutNavListOpenDirective;
1232
- }(BaseLayoutToggleDirective));
1233
- TdLayoutNavListOpenDirective.decorators = [
1234
- { type: core.Directive, args: [{
1235
- selector: '[tdLayoutNavListOpen]',
1236
- inputs: ['hideWhenOpened'],
1237
- },] }
1238
- ];
1239
- /** @nocollapse */
1240
- TdLayoutNavListOpenDirective.ctorParameters = function () { return [
1241
- { type: TdLayoutNavListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1242
- * @return {?}
1243
- */function () { return TdLayoutNavListComponent; })),] }] },
1244
- { type: core.Renderer2 },
1245
- { type: core.ElementRef }
1246
- ]; };
1247
- TdLayoutNavListOpenDirective.propDecorators = {
1248
- tdLayoutNavListOpen: [{ type: core.Input, args: ['tdLayoutNavListOpen',] }]
1249
- };
1250
-
1251
- /**
1252
- * @fileoverview added by tsickle
1253
- * Generated from: layout-card-over/layout-card-over.component.ts
1254
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1255
- */
1256
- var TdLayoutCardOverComponent = /** @class */ (function () {
1257
- function TdLayoutCardOverComponent() {
1258
- /**
1259
- * cardWidth?: string
1260
- *
1261
- * Card flex width in %.
1262
- * Defaults to 70%.
1263
- */
1264
- this.cardWidth = 70;
1265
- /**
1266
- * color?: 'accent' | 'primary' | 'warn'
1267
- *
1268
- * toolbar color option: primary | accent | warn.
1269
- * If [color] is not set, primary is used.
1270
- */
1271
- this.color = 'primary';
1272
- }
1273
- return TdLayoutCardOverComponent;
1274
- }());
1275
- TdLayoutCardOverComponent.decorators = [
1276
- { type: core.Component, args: [{
1277
- selector: 'td-layout-card-over',
1278
- 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",
1279
- styles: [":host{display:block;height:100%;min-height:100%;position:relative;width:100%;z-index:2}:host [td-after-card]{display:block}.td-layout-card-over-wrapper{height:100%;margin:-64px 0;min-height:100%;width:100%}@media (min-width:600px){.td-layout-card-over-wrapper{-ms-flex-align:start;-ms-flex-direction:row;-ms-flex-line-pack:start;-ms-flex-pack:center;align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:center}.td-layout-card-over-wrapper .td-layout-card-over{box-sizing:border-box;max-height:100%}}@media (max-width:599px){.td-layout-card-over-wrapper .td-layout-card-over{max-width:100%!important}}"]
1280
- }] }
1281
- ];
1282
- TdLayoutCardOverComponent.propDecorators = {
1283
- cardTitle: [{ type: core.Input }],
1284
- cardSubtitle: [{ type: core.Input }],
1285
- cardWidth: [{ type: core.Input }],
1286
- color: [{ type: core.Input }]
1287
- };
1288
- if (false) {
1289
- /**
1290
- * cardTitle?: string
1291
- *
1292
- * Title set in card.
1293
- * @type {?}
1294
- */
1295
- TdLayoutCardOverComponent.prototype.cardTitle;
1296
- /**
1297
- * cardSubtitle?: string
1298
- *
1299
- * Subtitle set in card.
1300
- * @type {?}
1301
- */
1302
- TdLayoutCardOverComponent.prototype.cardSubtitle;
1303
- /**
1304
- * cardWidth?: string
1305
- *
1306
- * Card flex width in %.
1307
- * Defaults to 70%.
1308
- * @type {?}
1309
- */
1310
- TdLayoutCardOverComponent.prototype.cardWidth;
1311
- /**
1312
- * color?: 'accent' | 'primary' | 'warn'
1313
- *
1314
- * toolbar color option: primary | accent | warn.
1315
- * If [color] is not set, primary is used.
1316
- * @type {?}
1317
- */
1318
- TdLayoutCardOverComponent.prototype.color;
1319
- }
1320
-
1321
- /**
1322
- * @fileoverview added by tsickle
1323
- * Generated from: layout-manage-list/layout-manage-list.component.ts
1324
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1325
- */
1326
- var TdLayoutManageListComponent = /** @class */ (function () {
1327
- function TdLayoutManageListComponent() {
1328
- /**
1329
- * mode?: 'side', 'push' or 'over'
1330
- *
1331
- * The mode or styling of the sidenav.
1332
- * Defaults to "side".
1333
- * See "MatSidenav" documentation for more info.
1334
- *
1335
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1336
- */
1337
- this.mode = 'side';
1338
- /**
1339
- * opened?: boolean
1340
- *
1341
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
1342
- * Defaults to "true".
1343
- *
1344
- * See "MatSidenav" documentation for more info.
1345
- *
1346
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1347
- */
1348
- this.opened = true;
1349
- /**
1350
- * sidenavWidth?: string
1351
- *
1352
- * Sets the "width" of the sidenav in either "px" or "%"
1353
- * Defaults to "257px".
1354
- *
1355
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1356
- */
1357
- this.sidenavWidth = '257px';
1358
- /**
1359
- * containerAutosize?: boolean
1360
- *
1361
- * Sets "autosize" of the sidenav-container.
1362
- * Defaults to "false".
1363
- *
1364
- * See documentation for more info and potential performance risks.
1365
- *
1366
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
1367
- */
1368
- this.containerAutosize = false;
1369
- }
1370
- Object.defineProperty(TdLayoutManageListComponent.prototype, "disableClose", {
1371
- /**
1372
- * Checks if `ESC` should close the sidenav
1373
- * Should only close it for `push` and `over` modes
1374
- * @return {?}
1375
- */
1376
- get: function () {
1377
- return this.mode === 'side';
1378
- },
1379
- enumerable: false,
1380
- configurable: true
1381
- });
1382
- /**
1383
- * Proxy toggle method to access sidenav from outside (from td-layout template).
1384
- * @return {?}
1385
- */
1386
- TdLayoutManageListComponent.prototype.toggle = function () {
1387
- return this.sidenav.toggle(!this.sidenav.opened);
1388
- };
1389
- /**
1390
- * Proxy open method to access sidenav from outside (from td-layout template).
1391
- * @return {?}
1392
- */
1393
- TdLayoutManageListComponent.prototype.open = function () {
1394
- return this.sidenav.open();
1395
- };
1396
- /**
1397
- * Proxy close method to access sidenav from outside (from td-layout template).
1398
- * @return {?}
1399
- */
1400
- TdLayoutManageListComponent.prototype.close = function () {
1401
- return this.sidenav.close();
1402
- };
1403
- return TdLayoutManageListComponent;
1404
- }());
1405
- TdLayoutManageListComponent.decorators = [
1406
- { type: core.Component, args: [{
1407
- selector: 'td-layout-manage-list',
1408
- 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",
1409
- styles: [":host{display:-ms-flexbox;display:flex;height:100%;margin:0;min-height:100%;overflow:hidden;width:100%}: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-closed,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closing,: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{box-shadow:0 1px 3px 0 rgba(0,0,0,.2)}:host .td-layout-manage-list-sidenav{-ms-flex:1;-webkit-overflow-scrolling:touch;display:block;flex:1;overflow:auto;position:relative;text-align:start}:host .td-layout-manage-list-main{-ms-flex-direction:column;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:column;height:100%;margin:0;min-height:100%;overflow:auto;position:relative;width:100%}:host .td-layout-manage-list-main .td-layout-manage-list-content{-ms-flex:1;-webkit-overflow-scrolling:touch;display:block;flex:1;overflow:auto;position:relative}: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{-ms-flex-direction:column;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-sizing:border-box;display:-ms-flexbox;display:flex;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}"]
1410
- }] }
1411
- ];
1412
- TdLayoutManageListComponent.propDecorators = {
1413
- sidenav: [{ type: core.ViewChild, args: [sidenav.MatSidenav, { static: true },] }],
1414
- mode: [{ type: core.Input }],
1415
- opened: [{ type: core.Input }],
1416
- sidenavWidth: [{ type: core.Input }],
1417
- containerAutosize: [{ type: core.Input }]
1418
- };
1419
- if (false) {
1420
- /** @type {?} */
1421
- TdLayoutManageListComponent.prototype.sidenav;
1422
- /**
1423
- * mode?: 'side', 'push' or 'over'
1424
- *
1425
- * The mode or styling of the sidenav.
1426
- * Defaults to "side".
1427
- * See "MatSidenav" documentation for more info.
1428
- *
1429
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1430
- * @type {?}
1431
- */
1432
- TdLayoutManageListComponent.prototype.mode;
1433
- /**
1434
- * opened?: boolean
1435
- *
1436
- * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
1437
- * Defaults to "true".
1438
- *
1439
- * See "MatSidenav" documentation for more info.
1440
- *
1441
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1442
- * @type {?}
1443
- */
1444
- TdLayoutManageListComponent.prototype.opened;
1445
- /**
1446
- * sidenavWidth?: string
1447
- *
1448
- * Sets the "width" of the sidenav in either "px" or "%"
1449
- * Defaults to "257px".
1450
- *
1451
- * https://github.com/angular/material2/tree/master/src/lib/sidenav
1452
- * @type {?}
1453
- */
1454
- TdLayoutManageListComponent.prototype.sidenavWidth;
1455
- /**
1456
- * containerAutosize?: boolean
1457
- *
1458
- * Sets "autosize" of the sidenav-container.
1459
- * Defaults to "false".
1460
- *
1461
- * See documentation for more info and potential performance risks.
1462
- *
1463
- * https://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
1464
- * @type {?}
1465
- */
1466
- TdLayoutManageListComponent.prototype.containerAutosize;
1467
- }
1468
-
1469
- var TdLayoutManageListToggleDirective = /** @class */ (function (_super) {
1470
- __extends(TdLayoutManageListToggleDirective, _super);
1471
- /**
1472
- * @param {?} layout
1473
- * @param {?} renderer
1474
- * @param {?} elementRef
1475
- */
1476
- function TdLayoutManageListToggleDirective(layout, renderer, elementRef) {
1477
- return _super.call(this, layout, renderer, elementRef) || this;
1478
- }
1479
- Object.defineProperty(TdLayoutManageListToggleDirective.prototype, "tdLayoutManageListToggle", {
1480
- /**
1481
- * @param {?} tdLayoutManageListToggle
1482
- * @return {?}
1483
- */
1484
- set: function (tdLayoutManageListToggle) {
1485
- this.disabled = !(( /** @type {?} */(tdLayoutManageListToggle)) === '' || tdLayoutManageListToggle);
1486
- },
1487
- enumerable: false,
1488
- configurable: true
1489
- });
1490
- /**
1491
- * @return {?}
1492
- */
1493
- TdLayoutManageListToggleDirective.prototype.onClick = function () {
1494
- this._layout.toggle();
1495
- };
1496
- return TdLayoutManageListToggleDirective;
1497
- }(BaseLayoutToggleDirective));
1498
- TdLayoutManageListToggleDirective.decorators = [
1499
- { type: core.Directive, args: [{
1500
- selector: '[tdLayoutManageListToggle]',
1501
- inputs: ['hideWhenOpened'],
1502
- },] }
1503
- ];
1504
- /** @nocollapse */
1505
- TdLayoutManageListToggleDirective.ctorParameters = function () { return [
1506
- { type: TdLayoutManageListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1507
- * @return {?}
1508
- */function () { return TdLayoutManageListComponent; })),] }] },
1509
- { type: core.Renderer2 },
1510
- { type: core.ElementRef }
1511
- ]; };
1512
- TdLayoutManageListToggleDirective.propDecorators = {
1513
- tdLayoutManageListToggle: [{ type: core.Input, args: ['tdLayoutManageListToggle',] }]
1514
- };
1515
- var TdLayoutManageListCloseDirective = /** @class */ (function (_super) {
1516
- __extends(TdLayoutManageListCloseDirective, _super);
1517
- /**
1518
- * @param {?} layout
1519
- * @param {?} renderer
1520
- * @param {?} elementRef
1521
- */
1522
- function TdLayoutManageListCloseDirective(layout, renderer, elementRef) {
1523
- return _super.call(this, layout, renderer, elementRef) || this;
1524
- }
1525
- Object.defineProperty(TdLayoutManageListCloseDirective.prototype, "tdLayoutManageListClose", {
1526
- /**
1527
- * @param {?} tdLayoutManageListClose
1528
- * @return {?}
1529
- */
1530
- set: function (tdLayoutManageListClose) {
1531
- this.disabled = !(( /** @type {?} */(tdLayoutManageListClose)) === '' || tdLayoutManageListClose);
1532
- },
1533
- enumerable: false,
1534
- configurable: true
1535
- });
1536
- /**
1537
- * @return {?}
1538
- */
1539
- TdLayoutManageListCloseDirective.prototype.onClick = function () {
1540
- this._layout.close();
1541
- };
1542
- return TdLayoutManageListCloseDirective;
1543
- }(BaseLayoutToggleDirective));
1544
- TdLayoutManageListCloseDirective.decorators = [
1545
- { type: core.Directive, args: [{
1546
- selector: '[tdLayoutManageListClose]',
1547
- inputs: ['hideWhenOpened'],
1548
- },] }
1549
- ];
1550
- /** @nocollapse */
1551
- TdLayoutManageListCloseDirective.ctorParameters = function () { return [
1552
- { type: TdLayoutManageListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1553
- * @return {?}
1554
- */function () { return TdLayoutManageListComponent; })),] }] },
1555
- { type: core.Renderer2 },
1556
- { type: core.ElementRef }
1557
- ]; };
1558
- TdLayoutManageListCloseDirective.propDecorators = {
1559
- tdLayoutManageListClose: [{ type: core.Input, args: ['tdLayoutManageListClose',] }]
1560
- };
1561
- var TdLayoutManageListOpenDirective = /** @class */ (function (_super) {
1562
- __extends(TdLayoutManageListOpenDirective, _super);
1563
- /**
1564
- * @param {?} layout
1565
- * @param {?} renderer
1566
- * @param {?} elementRef
1567
- */
1568
- function TdLayoutManageListOpenDirective(layout, renderer, elementRef) {
1569
- return _super.call(this, layout, renderer, elementRef) || this;
1570
- }
1571
- Object.defineProperty(TdLayoutManageListOpenDirective.prototype, "tdLayoutManageListOpen", {
1572
- /**
1573
- * @param {?} tdLayoutManageListOpen
1574
- * @return {?}
1575
- */
1576
- set: function (tdLayoutManageListOpen) {
1577
- this.disabled = !(( /** @type {?} */(tdLayoutManageListOpen)) === '' || tdLayoutManageListOpen);
1578
- },
1579
- enumerable: false,
1580
- configurable: true
1581
- });
1582
- /**
1583
- * @return {?}
1584
- */
1585
- TdLayoutManageListOpenDirective.prototype.onClick = function () {
1586
- this._layout.open();
1587
- };
1588
- return TdLayoutManageListOpenDirective;
1589
- }(BaseLayoutToggleDirective));
1590
- TdLayoutManageListOpenDirective.decorators = [
1591
- { type: core.Directive, args: [{
1592
- selector: '[tdLayoutManageListOpen]',
1593
- inputs: ['hideWhenOpened'],
1594
- },] }
1595
- ];
1596
- /** @nocollapse */
1597
- TdLayoutManageListOpenDirective.ctorParameters = function () { return [
1598
- { type: TdLayoutManageListComponent, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(( /**
1599
- * @return {?}
1600
- */function () { return TdLayoutManageListComponent; })),] }] },
1601
- { type: core.Renderer2 },
1602
- { type: core.ElementRef }
1603
- ]; };
1604
- TdLayoutManageListOpenDirective.propDecorators = {
1605
- tdLayoutManageListOpen: [{ type: core.Input, args: ['tdLayoutManageListOpen',] }]
1606
- };
1607
-
1608
- /**
1609
- * @fileoverview added by tsickle
1610
- * Generated from: layout-footer/layout-footer.component.ts
1611
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1612
- */
1613
- var TdLayoutFooterComponent = /** @class */ (function () {
1614
- /**
1615
- * @param {?} _renderer
1616
- * @param {?} _elementRef
1617
- */
1618
- function TdLayoutFooterComponent(_renderer, _elementRef) {
1619
- this._renderer = _renderer;
1620
- this._elementRef = _elementRef;
1621
- this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-footer');
1622
- }
1623
- Object.defineProperty(TdLayoutFooterComponent.prototype, "color", {
1624
- /**
1625
- * @return {?}
1626
- */
1627
- get: function () {
1628
- return this._color;
1629
- },
1630
- /**
1631
- * color?: 'accent' | 'primary' | 'warn'
1632
- *
1633
- * Optional color option: primary | accent | warn.
1634
- * @param {?} color
1635
- * @return {?}
1636
- */
1637
- set: function (color) {
1638
- if (color) {
1639
- this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
1640
- this._color = color;
1641
- this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
1642
- }
1643
- },
1644
- enumerable: false,
1645
- configurable: true
1646
- });
1647
- return TdLayoutFooterComponent;
1648
- }());
1649
- TdLayoutFooterComponent.decorators = [
1650
- { type: core.Component, args: [{
1651
- /* tslint:disable-next-line */
1652
- selector: 'td-layout-footer,td-layout-footer-inner',
1653
- template: "<ng-content></ng-content>\n",
1654
- styles: [":host{display:block;padding:10px 16px}"]
1655
- }] }
1656
- ];
1657
- /** @nocollapse */
1658
- TdLayoutFooterComponent.ctorParameters = function () { return [
1659
- { type: core.Renderer2 },
1660
- { type: core.ElementRef }
1661
- ]; };
1662
- TdLayoutFooterComponent.propDecorators = {
1663
- color: [{ type: core.Input, args: ['color',] }]
1664
- };
1665
- if (false) {
1666
- /**
1667
- * @type {?}
1668
- * @private
1669
- */
1670
- TdLayoutFooterComponent.prototype._color;
1671
- /**
1672
- * @type {?}
1673
- * @private
1674
- */
1675
- TdLayoutFooterComponent.prototype._renderer;
1676
- /**
1677
- * @type {?}
1678
- * @private
1679
- */
1680
- TdLayoutFooterComponent.prototype._elementRef;
1681
- }
1682
-
1683
- /**
1684
- * @fileoverview added by tsickle
1685
- * Generated from: navigation-drawer/navigation-drawer.component.ts
1686
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1687
- */
1688
- var TdNavigationDrawerMenuDirective = /** @class */ (function () {
1689
- function TdNavigationDrawerMenuDirective() {
1690
- }
1691
- return TdNavigationDrawerMenuDirective;
1692
- }());
1693
- TdNavigationDrawerMenuDirective.decorators = [
1694
- { type: core.Directive, args: [{
1695
- selector: '[td-navigation-drawer-menu]',
1696
- },] }
1697
- ];
1698
- var TdNavigationDrawerToolbarDirective = /** @class */ (function () {
1699
- function TdNavigationDrawerToolbarDirective() {
1700
- }
1701
- return TdNavigationDrawerToolbarDirective;
1702
- }());
1703
- TdNavigationDrawerToolbarDirective.decorators = [
1704
- { type: core.Directive, args: [{
1705
- selector: '[td-navigation-drawer-toolbar]',
1706
- },] }
1707
- ];
1708
- var TdNavigationDrawerComponent = /** @class */ (function () {
1709
- /**
1710
- * @param {?} _layout
1711
- * @param {?} _router
1712
- * @param {?} _sanitize
1713
- */
1714
- function TdNavigationDrawerComponent(_layout, _router, _sanitize) {
1715
- this._layout = _layout;
1716
- this._router = _router;
1717
- this._sanitize = _sanitize;
1718
- this._menuToggled = false;
1719
- }
1720
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "menuToggled", {
1721
- /**
1722
- * @return {?}
1723
- */
1724
- get: function () {
1725
- return this._menuToggled;
1726
- },
1727
- enumerable: false,
1728
- configurable: true
1729
- });
1730
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "isMenuAvailable", {
1731
- /**
1732
- * Checks if there is a [TdNavigationDrawerMenuDirective] has content.
1733
- * @return {?}
1734
- */
1735
- get: function () {
1736
- return this._drawerMenu ? this._drawerMenu.length > 0 : false;
1737
- },
1738
- enumerable: false,
1739
- configurable: true
1740
- });
1741
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "isCustomToolbar", {
1742
- /**
1743
- * Checks if there is a [TdNavigationDrawerToolbarDirective] has content.
1744
- * @return {?}
1745
- */
1746
- get: function () {
1747
- return this._toolbar ? this._toolbar.length > 0 : false;
1748
- },
1749
- enumerable: false,
1750
- configurable: true
1751
- });
1752
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "isBackgroundAvailable", {
1753
- /**
1754
- * Checks if there is a background image for the toolbar.
1755
- * @return {?}
1756
- */
1757
- get: function () {
1758
- return !!this._backgroundImage;
1759
- },
1760
- enumerable: false,
1761
- configurable: true
1762
- });
1763
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "backgroundUrl", {
1764
- /**
1765
- * backgroundUrl?: SafeResourceUrl
1766
- *
1767
- * image to be displayed as the background of the toolbar.
1768
- * URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
1769
- * @param {?} backgroundUrl
1770
- * @return {?}
1771
- */
1772
- set: function (backgroundUrl) {
1773
- if (backgroundUrl) {
1774
- /** @type {?} */
1775
- var sanitizedUrl = this._sanitize.sanitize(core.SecurityContext.RESOURCE_URL, backgroundUrl);
1776
- this._backgroundImage = this._sanitize.sanitize(core.SecurityContext.STYLE, 'url(' + sanitizedUrl + ')');
1777
- }
1778
- },
1779
- enumerable: false,
1780
- configurable: true
1781
- });
1782
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "backgroundImage", {
1783
- /**
1784
- * @return {?}
1785
- */
1786
- get: function () {
1787
- return this._backgroundImage;
1788
- },
1789
- enumerable: false,
1790
- configurable: true
1791
- });
1792
- Object.defineProperty(TdNavigationDrawerComponent.prototype, "routerEnabled", {
1793
- /**
1794
- * Checks if router was injected.
1795
- * @return {?}
1796
- */
1797
- get: function () {
1798
- return !!this._router && !!this.navigationRoute;
1799
- },
1800
- enumerable: false,
1801
- configurable: true
1802
- });
1803
- /**
1804
- * @return {?}
1805
- */
1806
- TdNavigationDrawerComponent.prototype.ngOnInit = function () {
1807
- var _this = this;
1808
- this._closeSubscription = this._layout.sidenav.openedChange.subscribe(( /**
1809
- * @param {?} opened
1810
- * @return {?}
1811
- */function (opened) {
1812
- if (!opened) {
1813
- _this._menuToggled = false;
1814
- }
1815
- }));
1816
- };
1817
- /**
1818
- * @return {?}
1819
- */
1820
- TdNavigationDrawerComponent.prototype.ngOnDestroy = function () {
1821
- if (this._closeSubscription) {
1822
- this._closeSubscription.unsubscribe();
1823
- this._closeSubscription = undefined;
1824
- }
1825
- };
1826
- /**
1827
- * @return {?}
1828
- */
1829
- TdNavigationDrawerComponent.prototype.toggleMenu = function () {
1830
- if (this.isMenuAvailable) {
1831
- this._menuToggled = !this._menuToggled;
1832
- }
1833
- };
1834
- /**
1835
- * @return {?}
1836
- */
1837
- TdNavigationDrawerComponent.prototype.handleNavigationClick = function () {
1838
- if (this.routerEnabled) {
1839
- this._router.navigateByUrl(this.navigationRoute);
1840
- this.close();
1841
- }
1842
- };
1843
- /**
1844
- * Proxy toggle method to access sidenav from outside (from td-layout template).
1845
- * @return {?}
1846
- */
1847
- TdNavigationDrawerComponent.prototype.toggle = function () {
1848
- return this._layout.toggle();
1849
- };
1850
- /**
1851
- * Proxy open method to access sidenav from outside (from td-layout template).
1852
- * @return {?}
1853
- */
1854
- TdNavigationDrawerComponent.prototype.open = function () {
1855
- return this._layout.open();
1856
- };
1857
- /**
1858
- * Proxy close method to access sidenav from outside (from td-layout template).
1859
- * @return {?}
1860
- */
1861
- TdNavigationDrawerComponent.prototype.close = function () {
1862
- return this._layout.close();
1863
- };
1864
- return TdNavigationDrawerComponent;
1865
- }());
1866
- TdNavigationDrawerComponent.decorators = [
1867
- { type: core.Component, args: [{
1868
- selector: 'td-navigation-drawer',
1869
- 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",
1870
- animations: [common.tdCollapseAnimation],
1871
- 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;display:block!important;flex-direction:column;height:auto!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-start;max-width:100%}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;margin:0 12px 12px 0;width:60px}:host mat-toolbar .td-navigation-drawer-name,:host mat-toolbar .td-navigation-drawer-toolbar-content .td-navigation-drawer-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host mat-toolbar .td-navigation-drawer-menu-toggle{-ms-flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{height:24px;line-height:24px;width:24px}:host>div{overflow:hidden}"]
1872
- }] }
1873
- ];
1874
- /** @nocollapse */
1875
- TdNavigationDrawerComponent.ctorParameters = function () { return [
1876
- { type: TdLayoutComponent, decorators: [{ type: core.Inject, args: [core.forwardRef(( /**
1877
- * @return {?}
1878
- */function () { return TdLayoutComponent; })),] }] },
1879
- { type: router.Router, decorators: [{ type: core.Optional }] },
1880
- { type: platformBrowser.DomSanitizer }
1881
- ]; };
1882
- TdNavigationDrawerComponent.propDecorators = {
1883
- _drawerMenu: [{ type: core.ContentChildren, args: [TdNavigationDrawerMenuDirective, { descendants: true },] }],
1884
- _toolbar: [{ type: core.ContentChildren, args: [TdNavigationDrawerToolbarDirective, { descendants: true },] }],
1885
- sidenavTitle: [{ type: core.Input }],
1886
- icon: [{ type: core.Input }],
1887
- logo: [{ type: core.Input }],
1888
- avatar: [{ type: core.Input }],
1889
- color: [{ type: core.Input }],
1890
- navigationRoute: [{ type: core.Input }],
1891
- backgroundUrl: [{ type: core.Input, args: ['backgroundUrl',] }],
1892
- name: [{ type: core.Input }],
1893
- email: [{ type: core.Input }]
1894
- };
1895
- if (false) {
1896
- /**
1897
- * @type {?}
1898
- * @private
1899
- */
1900
- TdNavigationDrawerComponent.prototype._closeSubscription;
1901
- /**
1902
- * @type {?}
1903
- * @private
1904
- */
1905
- TdNavigationDrawerComponent.prototype._menuToggled;
1906
- /**
1907
- * @type {?}
1908
- * @private
1909
- */
1910
- TdNavigationDrawerComponent.prototype._backgroundImage;
1911
- /** @type {?} */
1912
- TdNavigationDrawerComponent.prototype._drawerMenu;
1913
- /** @type {?} */
1914
- TdNavigationDrawerComponent.prototype._toolbar;
1915
- /**
1916
- * sidenavTitle?: string
1917
- * Title set in sideNav.
1918
- * @type {?}
1919
- */
1920
- TdNavigationDrawerComponent.prototype.sidenavTitle;
1921
- /**
1922
- * icon?: string
1923
- *
1924
- * icon name to be displayed before the title
1925
- * @type {?}
1926
- */
1927
- TdNavigationDrawerComponent.prototype.icon;
1928
- /**
1929
- * logo?: string
1930
- *
1931
- * logo icon name to be displayed before the title.
1932
- * If [icon] is set, then this will not be shown.
1933
- * @type {?}
1934
- */
1935
- TdNavigationDrawerComponent.prototype.logo;
1936
- /**
1937
- * avatar?: string
1938
- *
1939
- * avatar url to be displayed before the title
1940
- * If [icon] or [logo] are set, then this will not be shown.
1941
- * @type {?}
1942
- */
1943
- TdNavigationDrawerComponent.prototype.avatar;
1944
- /**
1945
- * color?: 'accent' | 'primary' | 'warn'
1946
- *
1947
- * toolbar color option: primary | accent | warn.
1948
- * If [color] is not set, default is used.
1949
- * @type {?}
1950
- */
1951
- TdNavigationDrawerComponent.prototype.color;
1952
- /**
1953
- * navigationRoute?: string
1954
- *
1955
- * option to set the combined route for the icon, logo, and sidenavTitle.
1956
- * @type {?}
1957
- */
1958
- TdNavigationDrawerComponent.prototype.navigationRoute;
1959
- /**
1960
- * name?: string
1961
- *
1962
- * string to be displayed as part of the navigation drawer sublabel.
1963
- * if [email] is not set, then [name] will be the toggle menu text.
1964
- * @type {?}
1965
- */
1966
- TdNavigationDrawerComponent.prototype.name;
1967
- /**
1968
- * email?: string
1969
- *
1970
- * string to be displayed as part of the navigation drawer sublabel in the [toggle] menu text.
1971
- * if [email] and [name] are not set, then the toggle menu is not rendered.
1972
- * @type {?}
1973
- */
1974
- TdNavigationDrawerComponent.prototype.email;
1975
- /**
1976
- * @type {?}
1977
- * @private
1978
- */
1979
- TdNavigationDrawerComponent.prototype._layout;
1980
- /**
1981
- * @type {?}
1982
- * @private
1983
- */
1984
- TdNavigationDrawerComponent.prototype._router;
1985
- /**
1986
- * @type {?}
1987
- * @private
1988
- */
1989
- TdNavigationDrawerComponent.prototype._sanitize;
1990
- }
1991
-
1992
- /**
1993
- * @fileoverview added by tsickle
1994
- * Generated from: layout.module.ts
1995
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1996
- */
1997
- /** @type {?} */
1998
- var TD_LAYOUTS = [
1999
- TdLayoutComponent,
2000
- TdLayoutToggleDirective,
2001
- TdLayoutCloseDirective,
2002
- TdLayoutOpenDirective,
2003
- TdLayoutNavComponent,
2004
- TdLayoutNavListComponent,
2005
- TdLayoutNavListToggleDirective,
2006
- TdLayoutNavListCloseDirective,
2007
- TdLayoutNavListOpenDirective,
2008
- TdLayoutCardOverComponent,
2009
- TdLayoutManageListComponent,
2010
- TdLayoutManageListToggleDirective,
2011
- TdLayoutManageListCloseDirective,
2012
- TdLayoutManageListOpenDirective,
2013
- TdLayoutFooterComponent,
2014
- TdNavigationDrawerComponent,
2015
- TdNavigationDrawerMenuDirective,
2016
- TdNavigationDrawerToolbarDirective,
2017
- ];
2018
- var CovalentLayoutModule = /** @class */ (function () {
2019
- function CovalentLayoutModule() {
2020
- }
2021
- return CovalentLayoutModule;
2022
- }());
2023
- CovalentLayoutModule.decorators = [
2024
- { type: core.NgModule, args: [{
2025
- imports: [
2026
- common$1.CommonModule,
2027
- scrolling.ScrollingModule,
2028
- sidenav.MatSidenavModule,
2029
- toolbar.MatToolbarModule,
2030
- button.MatButtonModule,
2031
- icon.MatIconModule,
2032
- card.MatCardModule,
2033
- divider.MatDividerModule,
2034
- ],
2035
- declarations: [TD_LAYOUTS],
2036
- exports: [TD_LAYOUTS],
2037
- },] }
2038
- ];
2039
-
2040
- /**
2041
- * @fileoverview added by tsickle
2042
- * Generated from: public-api.ts
2043
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2044
- */
2045
-
2046
- /**
2047
- * @fileoverview added by tsickle
2048
- * Generated from: index.ts
2049
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2050
- */
2051
-
2052
- /**
2053
- * @fileoverview added by tsickle
2054
- * Generated from: covalent-core-layout.ts
2055
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2056
- */
2057
-
2058
- exports.BaseLayoutToggleDirective = BaseLayoutToggleDirective;
2059
- exports.CovalentLayoutModule = CovalentLayoutModule;
2060
- exports.LayoutToggleBase = LayoutToggleBase;
2061
- exports.TdLayoutCardOverComponent = TdLayoutCardOverComponent;
2062
- exports.TdLayoutCloseDirective = TdLayoutCloseDirective;
2063
- exports.TdLayoutComponent = TdLayoutComponent;
2064
- exports.TdLayoutFooterComponent = TdLayoutFooterComponent;
2065
- exports.TdLayoutManageListCloseDirective = TdLayoutManageListCloseDirective;
2066
- exports.TdLayoutManageListComponent = TdLayoutManageListComponent;
2067
- exports.TdLayoutManageListOpenDirective = TdLayoutManageListOpenDirective;
2068
- exports.TdLayoutManageListToggleDirective = TdLayoutManageListToggleDirective;
2069
- exports.TdLayoutNavComponent = TdLayoutNavComponent;
2070
- exports.TdLayoutNavListCloseDirective = TdLayoutNavListCloseDirective;
2071
- exports.TdLayoutNavListComponent = TdLayoutNavListComponent;
2072
- exports.TdLayoutNavListOpenDirective = TdLayoutNavListOpenDirective;
2073
- exports.TdLayoutNavListToggleDirective = TdLayoutNavListToggleDirective;
2074
- exports.TdLayoutOpenDirective = TdLayoutOpenDirective;
2075
- exports.TdLayoutToggleDirective = TdLayoutToggleDirective;
2076
- exports.TdNavigationDrawerComponent = TdNavigationDrawerComponent;
2077
- exports.TdNavigationDrawerMenuDirective = TdNavigationDrawerMenuDirective;
2078
- exports.TdNavigationDrawerToolbarDirective = TdNavigationDrawerToolbarDirective;
2079
- exports._TdLayoutToggleMixinBase = _TdLayoutToggleMixinBase;
2080
-
2081
- Object.defineProperty(exports, '__esModule', { value: true });
2082
-
2083
- })));
2084
- //# sourceMappingURL=covalent-core-layout.umd.js.map