@covalent/core 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  2. package/common/styles/font/_font.scss +1 -35
  3. package/dialogs/src/README.md +223 -0
  4. package/dialogs/window-dialog/window-dialog.component.d.ts +1 -1
  5. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  6. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  7. package/dynamic-menu/dynamic-menu.component.d.ts +1 -1
  8. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
  9. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +131 -0
  10. package/{esm2022 → esm2020}/breadcrumbs/breadcrumbs.module.mjs +5 -5
  11. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
  12. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  13. package/{esm2022 → esm2020}/common/behaviors/disabled.mixin.mjs +2 -2
  14. package/{esm2022 → esm2020}/common/common.module.mjs +17 -17
  15. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  16. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  17. package/esm2020/common/functions/convert.mjs +84 -0
  18. package/esm2020/common/functions/download.mjs +75 -0
  19. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
  20. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
  21. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  22. package/{esm2022 → esm2020}/common/pipes/time-ago/time-ago.pipe.mjs +4 -4
  23. package/{esm2022 → esm2020}/common/pipes/time-difference/time-difference.pipe.mjs +4 -4
  24. package/{esm2022 → esm2020}/common/pipes/time-until/time-until.pipe.mjs +4 -4
  25. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  26. package/esm2020/common/services/icon.service.mjs +1089 -0
  27. package/esm2020/common/services/router-path.service.mjs +29 -0
  28. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
  29. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
  30. package/esm2020/dialogs/dialog.component.mjs +57 -0
  31. package/{esm2022 → esm2020}/dialogs/dialogs.module.mjs +39 -39
  32. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +75 -0
  33. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
  34. package/esm2020/dialogs/services/dialog.service.mjs +174 -0
  35. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
  36. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
  37. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
  38. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
  39. package/{esm2022 → esm2020}/dynamic-menu/dynamic-menu.module.mjs +19 -19
  40. package/esm2020/file/directives/file-drop.directive.mjs +139 -0
  41. package/esm2020/file/directives/file-select.directive.mjs +77 -0
  42. package/esm2020/file/file-input/file-input.component.mjs +128 -0
  43. package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
  44. package/{esm2022 → esm2020}/file/file.module.mjs +21 -21
  45. package/esm2020/file/services/file.service.mjs +64 -0
  46. package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
  47. package/{esm2022 → esm2020}/json-formatter/json-formatter.module.mjs +5 -5
  48. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
  49. package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
  50. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
  51. package/{esm2022 → esm2020}/layout/layout-manage-list/layout-manage-list.directives.mjs +10 -10
  52. package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
  53. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
  54. package/{esm2022 → esm2020}/layout/layout-nav-list/layout-nav-list.directives.mjs +10 -10
  55. package/esm2020/layout/layout-toggle.class.mjs +92 -0
  56. package/esm2020/layout/layout.component.mjs +92 -0
  57. package/{esm2022 → esm2020}/layout/layout.directives.mjs +10 -10
  58. package/{esm2022 → esm2020}/layout/layout.module.mjs +55 -55
  59. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +163 -0
  60. package/esm2020/loading/directives/loading.directive.mjs +126 -0
  61. package/esm2020/loading/loading.component.mjs +187 -0
  62. package/{esm2022 → esm2020}/loading/loading.module.mjs +13 -13
  63. package/esm2020/loading/services/loading.factory.mjs +207 -0
  64. package/esm2020/loading/services/loading.service.mjs +213 -0
  65. package/{esm2022 → esm2020}/menu/menu.component.mjs +4 -4
  66. package/{esm2022 → esm2020}/menu/menu.module.mjs +5 -5
  67. package/esm2020/message/message.component.mjs +203 -0
  68. package/{esm2022 → esm2020}/message/message.module.mjs +7 -7
  69. package/esm2020/search/search-box/search-box.component.mjs +194 -0
  70. package/esm2020/search/search-input/search-input.component.mjs +207 -0
  71. package/{esm2022 → esm2020}/search/search.module.mjs +13 -13
  72. package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
  73. package/esm2020/side-sheet/side-sheet-ref.mjs +26 -0
  74. package/{esm2022 → esm2020}/side-sheet/side-sheet.config.mjs +5 -2
  75. package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
  76. package/esm2020/side-sheet/side-sheet.mjs +228 -0
  77. package/{esm2022 → esm2020}/side-sheet/side-sheet.module.mjs +14 -14
  78. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +23 -0
  79. package/esm2020/user-profile/user-profile.component.mjs +19 -0
  80. package/{esm2022 → esm2020}/user-profile/user-profile.module.mjs +15 -15
  81. package/{fesm2022 → fesm2015}/covalent-core-breadcrumbs.mjs +22 -28
  82. package/{fesm2022 → fesm2015}/covalent-core-breadcrumbs.mjs.map +1 -1
  83. package/fesm2015/covalent-core-common.mjs +2281 -0
  84. package/fesm2015/covalent-core-common.mjs.map +1 -0
  85. package/fesm2015/covalent-core-dialogs.mjs +668 -0
  86. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  87. package/fesm2015/covalent-core-dynamic-menu.mjs +126 -0
  88. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  89. package/fesm2015/covalent-core-file.mjs +621 -0
  90. package/fesm2015/covalent-core-file.mjs.map +1 -0
  91. package/fesm2015/covalent-core-json-formatter.mjs +298 -0
  92. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  93. package/fesm2015/covalent-core-layout.mjs +1024 -0
  94. package/{fesm2022 → fesm2015}/covalent-core-layout.mjs.map +1 -1
  95. package/fesm2015/covalent-core-loading.mjs +766 -0
  96. package/fesm2015/covalent-core-loading.mjs.map +1 -0
  97. package/{fesm2022 → fesm2015}/covalent-core-menu.mjs +7 -7
  98. package/{fesm2022 → fesm2015}/covalent-core-menu.mjs.map +1 -1
  99. package/fesm2015/covalent-core-message.mjs +284 -0
  100. package/fesm2015/covalent-core-message.mjs.map +1 -0
  101. package/fesm2015/covalent-core-search.mjs +430 -0
  102. package/fesm2015/covalent-core-search.mjs.map +1 -0
  103. package/fesm2015/covalent-core-side-sheet.mjs +784 -0
  104. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  105. package/fesm2015/covalent-core-user-profile.mjs +83 -0
  106. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  107. package/fesm2020/covalent-core-breadcrumbs.mjs +243 -0
  108. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
  109. package/{fesm2022 → fesm2020}/covalent-core-common.mjs +1125 -1131
  110. package/fesm2020/covalent-core-common.mjs.map +1 -0
  111. package/{fesm2022 → fesm2020}/covalent-core-dialogs.mjs +82 -111
  112. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  113. package/fesm2020/covalent-core-dynamic-menu.mjs +126 -0
  114. package/{fesm2022 → fesm2020}/covalent-core-dynamic-menu.mjs.map +1 -1
  115. package/{fesm2022 → fesm2020}/covalent-core-file.mjs +110 -148
  116. package/{fesm2022 → fesm2020}/covalent-core-file.mjs.map +1 -1
  117. package/{fesm2022 → fesm2020}/covalent-core-json-formatter.mjs +21 -26
  118. package/{fesm2022 → fesm2020}/covalent-core-json-formatter.mjs.map +1 -1
  119. package/{fesm2022 → fesm2020}/covalent-core-layout.mjs +271 -396
  120. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  121. package/{fesm2022 → fesm2020}/covalent-core-loading.mjs +78 -100
  122. package/{fesm2022 → fesm2020}/covalent-core-loading.mjs.map +1 -1
  123. package/fesm2020/covalent-core-menu.mjs +37 -0
  124. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  125. package/{fesm2022 → fesm2020}/covalent-core-message.mjs +23 -42
  126. package/{fesm2022 → fesm2020}/covalent-core-message.mjs.map +1 -1
  127. package/fesm2020/covalent-core-search.mjs +427 -0
  128. package/fesm2020/covalent-core-search.mjs.map +1 -0
  129. package/{fesm2022 → fesm2020}/covalent-core-side-sheet.mjs +99 -124
  130. package/{fesm2022 → fesm2020}/covalent-core-side-sheet.mjs.map +1 -1
  131. package/fesm2020/covalent-core-user-profile.mjs +83 -0
  132. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  133. package/fesm2020/covalent-core.mjs +4 -0
  134. package/fesm2020/covalent-core.mjs.map +1 -0
  135. package/file/directives/file-drop.directive.d.ts +1 -1
  136. package/file/directives/file-select.directive.d.ts +1 -1
  137. package/file/file-input/file-input.component.d.ts +1 -1
  138. package/file/file-upload/file-upload.component.d.ts +1 -1
  139. package/file/src/file-input/README.md +147 -0
  140. package/file/src/file-upload/README.md +136 -0
  141. package/json-formatter/json-formatter.component.d.ts +1 -1
  142. package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
  143. package/layout/layout-footer/layout-footer.component.d.ts +1 -1
  144. package/layout/layout-manage-list/layout-manage-list.component.d.ts +1 -1
  145. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +3 -3
  146. package/layout/layout-nav/layout-nav.component.d.ts +1 -1
  147. package/layout/layout-nav-list/layout-nav-list.component.d.ts +1 -1
  148. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +3 -3
  149. package/layout/layout-toggle.class.d.ts +1 -1
  150. package/layout/layout.component.d.ts +1 -1
  151. package/layout/layout.directives.d.ts +3 -3
  152. package/layout/navigation-drawer/navigation-drawer.component.d.ts +1 -1
  153. package/layout/src/layout-card-over/README.md +43 -0
  154. package/layout/src/layout-manage-list/README.md +80 -0
  155. package/layout/src/layout-nav/README.md +50 -0
  156. package/layout/src/layout-nav-list/README.md +105 -0
  157. package/loading/directives/loading.directive.d.ts +1 -1
  158. package/message/message.component.d.ts +1 -1
  159. package/package.json +91 -55
  160. package/search/search-box/search-box.component.d.ts +1 -1
  161. package/search/search-input/search-input.component.d.ts +1 -1
  162. package/search/src/search-box/README.md +73 -0
  163. package/search/src/search-input/README.md +74 -0
  164. package/side-sheet/side-sheet.content-directives.d.ts +2 -2
  165. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +1 -1
  166. package/user-profile/user-profile.component.d.ts +1 -1
  167. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  168. package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -94
  169. package/esm2022/breadcrumbs/breadcrumbs.component.mjs +0 -135
  170. package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +0 -43
  171. package/esm2022/common/behaviors/disable-ripple.mixin.mjs +0 -24
  172. package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +0 -87
  173. package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +0 -37
  174. package/esm2022/common/functions/convert.mjs +0 -84
  175. package/esm2022/common/functions/download.mjs +0 -75
  176. package/esm2022/common/pipes/bytes/bytes.pipe.mjs +0 -42
  177. package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +0 -42
  178. package/esm2022/common/pipes/digits/digits.pipe.mjs +0 -41
  179. package/esm2022/common/pipes/truncate/truncate.pipe.mjs +0 -27
  180. package/esm2022/common/services/icon.service.mjs +0 -1087
  181. package/esm2022/common/services/router-path.service.mjs +0 -30
  182. package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +0 -26
  183. package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -31
  184. package/esm2022/dialogs/dialog.component.mjs +0 -60
  185. package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +0 -84
  186. package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +0 -220
  187. package/esm2022/dialogs/services/dialog.service.mjs +0 -179
  188. package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +0 -40
  189. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +0 -30
  190. package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +0 -23
  191. package/esm2022/dynamic-menu/dynamic-menu.component.mjs +0 -28
  192. package/esm2022/file/directives/file-drop.directive.mjs +0 -145
  193. package/esm2022/file/directives/file-select.directive.mjs +0 -78
  194. package/esm2022/file/file-input/file-input.component.mjs +0 -146
  195. package/esm2022/file/file-upload/file-upload.component.mjs +0 -185
  196. package/esm2022/file/services/file.service.mjs +0 -66
  197. package/esm2022/json-formatter/json-formatter.component.mjs +0 -222
  198. package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +0 -50
  199. package/esm2022/layout/layout-footer/layout-footer.component.mjs +0 -36
  200. package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +0 -92
  201. package/esm2022/layout/layout-nav/layout-nav.component.mjs +0 -76
  202. package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +0 -154
  203. package/esm2022/layout/layout-toggle.class.mjs +0 -96
  204. package/esm2022/layout/layout.component.mjs +0 -91
  205. package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +0 -221
  206. package/esm2022/loading/directives/loading.directive.mjs +0 -133
  207. package/esm2022/loading/loading.component.mjs +0 -193
  208. package/esm2022/loading/services/loading.factory.mjs +0 -210
  209. package/esm2022/loading/services/loading.service.mjs +0 -219
  210. package/esm2022/message/message.component.mjs +0 -222
  211. package/esm2022/search/search-box/search-box.component.mjs +0 -198
  212. package/esm2022/search/search-input/search-input.component.mjs +0 -214
  213. package/esm2022/side-sheet/side-sheet-container.mjs +0 -285
  214. package/esm2022/side-sheet/side-sheet-ref.mjs +0 -30
  215. package/esm2022/side-sheet/side-sheet.content-directives.mjs +0 -206
  216. package/esm2022/side-sheet/side-sheet.mjs +0 -236
  217. package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +0 -25
  218. package/esm2022/user-profile/user-profile.component.mjs +0 -21
  219. package/fesm2022/covalent-core-common.mjs.map +0 -1
  220. package/fesm2022/covalent-core-dialogs.mjs.map +0 -1
  221. package/fesm2022/covalent-core-dynamic-menu.mjs +0 -125
  222. package/fesm2022/covalent-core-search.mjs +0 -438
  223. package/fesm2022/covalent-core-search.mjs.map +0 -1
  224. package/fesm2022/covalent-core-user-profile.mjs +0 -87
  225. package/fesm2022/covalent-core-user-profile.mjs.map +0 -1
  226. /package/{esm2022 → esm2020}/breadcrumbs/covalent-core-breadcrumbs.mjs +0 -0
  227. /package/{esm2022 → esm2020}/breadcrumbs/public_api.mjs +0 -0
  228. /package/{esm2022 → esm2020}/common/animations/bounce/bounce.animation.mjs +0 -0
  229. /package/{esm2022 → esm2020}/common/animations/collapse/collapse.animation.mjs +0 -0
  230. /package/{esm2022 → esm2020}/common/animations/common/interfaces.mjs +0 -0
  231. /package/{esm2022 → esm2020}/common/animations/fade/fadeInOut.animation.mjs +0 -0
  232. /package/{esm2022 → esm2020}/common/animations/flash/flash.animation.mjs +0 -0
  233. /package/{esm2022 → esm2020}/common/animations/headshake/headshake.animation.mjs +0 -0
  234. /package/{esm2022 → esm2020}/common/animations/jello/jello.animation.mjs +0 -0
  235. /package/{esm2022 → esm2020}/common/animations/pulse/pulse.animation.mjs +0 -0
  236. /package/{esm2022 → esm2020}/common/animations/rotate/rotate.animation.mjs +0 -0
  237. /package/{esm2022 → esm2020}/common/covalent-core-common.mjs +0 -0
  238. /package/{esm2022 → esm2020}/common/forms/validators/validators.mjs +0 -0
  239. /package/{esm2022 → esm2020}/common/functions/clipboard.mjs +0 -0
  240. /package/{esm2022 → esm2020}/common/functions/file.mjs +0 -0
  241. /package/{esm2022 → esm2020}/common/public_api.mjs +0 -0
  242. /package/{esm2022 → esm2020}/covalent-core.mjs +0 -0
  243. /package/{esm2022 → esm2020}/dialogs/covalent-core-dialogs.mjs +0 -0
  244. /package/{esm2022 → esm2020}/dialogs/public_api.mjs +0 -0
  245. /package/{esm2022 → esm2020}/dynamic-menu/covalent-core-dynamic-menu.mjs +0 -0
  246. /package/{esm2022 → esm2020}/dynamic-menu/dynamic-menu.menu.mjs +0 -0
  247. /package/{esm2022 → esm2020}/dynamic-menu/public_api.mjs +0 -0
  248. /package/{esm2022 → esm2020}/file/covalent-core-file.mjs +0 -0
  249. /package/{esm2022 → esm2020}/file/public_api.mjs +0 -0
  250. /package/{esm2022 → esm2020}/json-formatter/collapse.animation.mjs +0 -0
  251. /package/{esm2022 → esm2020}/json-formatter/covalent-core-json-formatter.mjs +0 -0
  252. /package/{esm2022 → esm2020}/json-formatter/public_api.mjs +0 -0
  253. /package/{esm2022 → esm2020}/layout/covalent-core-layout.mjs +0 -0
  254. /package/{esm2022 → esm2020}/layout/public_api.mjs +0 -0
  255. /package/{esm2022 → esm2020}/loading/covalent-core-loading.mjs +0 -0
  256. /package/{esm2022 → esm2020}/loading/public_api.mjs +0 -0
  257. /package/{esm2022 → esm2020}/menu/covalent-core-menu.mjs +0 -0
  258. /package/{esm2022 → esm2020}/menu/public_api.mjs +0 -0
  259. /package/{esm2022 → esm2020}/message/collapse.animation.mjs +0 -0
  260. /package/{esm2022 → esm2020}/message/covalent-core-message.mjs +0 -0
  261. /package/{esm2022 → esm2020}/message/public_api.mjs +0 -0
  262. /package/{esm2022 → esm2020}/public_api.mjs +0 -0
  263. /package/{esm2022 → esm2020}/search/covalent-core-search.mjs +0 -0
  264. /package/{esm2022 → esm2020}/search/public_api.mjs +0 -0
  265. /package/{esm2022 → esm2020}/side-sheet/covalent-core-side-sheet.mjs +0 -0
  266. /package/{esm2022 → esm2020}/side-sheet/public_api.mjs +0 -0
  267. /package/{esm2022 → esm2020}/side-sheet/side-sheet.animation.mjs +0 -0
  268. /package/{esm2022 → esm2020}/user-profile/covalent-core-user-profile.mjs +0 -0
  269. /package/{esm2022 → esm2020}/user-profile/public_api.mjs +0 -0
  270. /package/{fesm2022 → fesm2015}/covalent-core.mjs +0 -0
  271. /package/{fesm2022 → fesm2015}/covalent-core.mjs.map +0 -0
@@ -0,0 +1,136 @@
1
+ ## TdFileUploadComponent: td-file-upload
2
+
3
+ ## Usage
4
+
5
+ Perfect component for file selection and upload in simple flows. Uses `TdFileInputComponent` internally.
6
+
7
+ Example for usage:
8
+
9
+ ```html
10
+ <td-file-upload
11
+ #fileUpload
12
+ [(ngModel)]="files"
13
+ defaultColor="accent"
14
+ activeColor="warn"
15
+ cancelColor="primary"
16
+ (selectFile)="selectEvent($event)"
17
+ (upload)="uploadEvent($event)"
18
+ (cancel)="cancelEvent()"
19
+ accept=".ext,.anotherExt"
20
+ [disabled]="disabled"
21
+ multiple
22
+ >
23
+ <mat-icon>file_upload</mat-icon><span>{{ files?.name }}</span>
24
+ <ng-template td-file-input-label>
25
+ <mat-icon>attach_file</mat-icon>
26
+ <span> Choose a file... </span>
27
+ </ng-template>
28
+ </td-file-upload>
29
+ ```
30
+
31
+ ```typescript
32
+ export class Demo {
33
+
34
+ files: File | FileList;
35
+ disabled: boolean = false;
36
+
37
+ selectEvent(files: FileList | File): void {
38
+ if (files instanceof FileList) {
39
+ ...
40
+ } else {
41
+ ...
42
+ }
43
+ }
44
+
45
+ uploadEvent(files: FileList | File): void {
46
+ if (files instanceof FileList) {
47
+ ...
48
+ } else {
49
+ ...
50
+ }
51
+ }
52
+
53
+ cancelEvent(): void {
54
+ ...
55
+ }
56
+ }
57
+ ```
58
+
59
+ ## API Summary
60
+
61
+ #### Inputs
62
+
63
+ - defaultColor: string
64
+ - Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
65
+ - activeColor: string
66
+ - Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
67
+ - cancelColor: string
68
+ - Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
69
+ - multiple: boolean
70
+ - Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
71
+ - accept: string
72
+ - Sets files accepted when opening the file browser dialog. Same as "accept" attribute in `<input/>` element.
73
+ - disabled: boolean
74
+ - Disables [TdFileUploadComponent] and clears selected/dropped files.
75
+
76
+ #### Events
77
+
78
+ - upload: function($event)
79
+ - Event emitted when upload button is clicked. Emits a [File or FileList] object.
80
+ - selectFile: function($event)
81
+ - Event emitted when a file is selected. Emits a [File or FileList] object.
82
+ - cancel: function
83
+ - Event emitted when cancel button is clicked.
84
+
85
+ #### Methods
86
+
87
+ - cancel: function
88
+ - Method used to clear the files selected.
89
+
90
+ ## Setup
91
+
92
+ Import the [CovalentFileModule] in your NgModule:
93
+
94
+ ```typescript
95
+ import { CovalentFileModule } from '@covalent/core/file';
96
+ @NgModule({
97
+ imports: [
98
+ CovalentFileModule,
99
+ ...
100
+ ],
101
+ ...
102
+ })
103
+ export class MyModule {}
104
+ ```
105
+
106
+ ## tdFileService
107
+
108
+ Service provided with methods that wrap complexity for as easier file upload experience.
109
+
110
+ ## API Summary
111
+
112
+ #### Methods
113
+
114
+ - send: function(url: string, method: string, body: File | FormData, uploadExtras: IUploadExtras)
115
+ - Uploads a file to a URL.
116
+
117
+ ## Usage
118
+
119
+ ```typescript
120
+ import { TdFileService } from '@covalent/core/file';
121
+
122
+ export class Demo {
123
+
124
+ file: File;
125
+
126
+ constructor(private fileUploadService: TdFileService) {
127
+ };
128
+
129
+ uploadEvent1(file: File) {
130
+ this.fileService.send('https://url.to/API', 'post', file).subscribe((response) => {
131
+ ...
132
+ });
133
+ };
134
+
135
+ }
136
+ ```
@@ -74,5 +74,5 @@ export declare class TdJsonFormatterComponent {
74
74
  getPreview(): string;
75
75
  private parseChildren;
76
76
  static ɵfac: i0.ɵɵFactoryDeclaration<TdJsonFormatterComponent, [null, { optional: true; }]>;
77
- static ɵcmp: i0.ɵɵComponentDeclaration<TdJsonFormatterComponent, "td-json-formatter", never, { "levelsOpen": { "alias": "levelsOpen"; "required": false; }; "key": { "alias": "key"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdJsonFormatterComponent, "td-json-formatter", never, { "levelsOpen": "levelsOpen"; "key": "key"; "data": "data"; }, {}, never, never, false, never>;
78
78
  }
@@ -27,5 +27,5 @@ export declare class TdLayoutCardOverComponent {
27
27
  */
28
28
  color: 'accent' | 'primary' | 'warn';
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCardOverComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutCardOverComponent, "td-layout-card-over", never, { "cardTitle": { "alias": "cardTitle"; "required": false; }; "cardSubtitle": { "alias": "cardSubtitle"; "required": false; }; "cardWidth": { "alias": "cardWidth"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*", "[td-after-card]"], false, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutCardOverComponent, "td-layout-card-over", never, { "cardTitle": "cardTitle"; "cardSubtitle": "cardSubtitle"; "cardWidth": "cardWidth"; "color": "color"; }, {}, never, ["*", "[td-after-card]"], false, never>;
31
31
  }
@@ -13,5 +13,5 @@ export declare class TdLayoutFooterComponent {
13
13
  get color(): 'primary' | 'accent' | 'warn' | undefined;
14
14
  constructor(_renderer: Renderer2, _elementRef: ElementRef);
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutFooterComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutFooterComponent, "td-layout-footer,td-layout-footer-inner", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutFooterComponent, "td-layout-footer,td-layout-footer-inner", never, { "color": "color"; }, {}, never, ["*"], false, never>;
17
17
  }
@@ -62,5 +62,5 @@ export declare class TdLayoutManageListComponent implements ILayoutTogglable {
62
62
  */
63
63
  close(): Promise<MatDrawerToggleResult>;
64
64
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutManageListComponent, "td-layout-manage-list", never, { "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; }, {}, never, ["mat-toolbar[td-sidenav-content]", "[td-sidenav-content]", "mat-toolbar", "*", "td-layout-footer-inner"], false, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutManageListComponent, "td-layout-manage-list", never, { "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; }, {}, never, ["mat-toolbar[td-sidenav-content]", "[td-sidenav-content]", "mat-toolbar", "*", "td-layout-footer-inner"], false, never>;
66
66
  }
@@ -7,19 +7,19 @@ export declare class TdLayoutManageListToggleDirective extends BaseLayoutToggleD
7
7
  constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
8
8
  onClick(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListToggleDirective, [{ optional: true; }, null, null]>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListToggleDirective, "[tdLayoutManageListToggle]", never, { "tdLayoutManageListToggle": { "alias": "tdLayoutManageListToggle"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListToggleDirective, "[tdLayoutManageListToggle]", never, { "tdLayoutManageListToggle": "tdLayoutManageListToggle"; }, {}, never, never, false, never>;
11
11
  }
12
12
  export declare class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
13
13
  set tdLayoutManageListClose(tdLayoutManageListClose: boolean);
14
14
  constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
15
15
  onClick(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListCloseDirective, [{ optional: true; }, null, null]>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListCloseDirective, "[tdLayoutManageListClose]", never, { "tdLayoutManageListClose": { "alias": "tdLayoutManageListClose"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListCloseDirective, "[tdLayoutManageListClose]", never, { "tdLayoutManageListClose": "tdLayoutManageListClose"; }, {}, never, never, false, never>;
18
18
  }
19
19
  export declare class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
20
20
  set tdLayoutManageListOpen(tdLayoutManageListOpen: boolean | string);
21
21
  constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
22
22
  onClick(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListOpenDirective, [{ optional: true; }, null, null]>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListOpenDirective, "[tdLayoutManageListOpen]", never, { "tdLayoutManageListOpen": { "alias": "tdLayoutManageListOpen"; "required": false; }; }, {}, never, never, false, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListOpenDirective, "[tdLayoutManageListOpen]", never, { "tdLayoutManageListOpen": "tdLayoutManageListOpen"; }, {}, never, never, false, never>;
25
25
  }
@@ -41,5 +41,5 @@ export declare class TdLayoutNavComponent {
41
41
  constructor(_router: Router);
42
42
  handleNavigationClick(): void;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavComponent, [{ optional: true; }]>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavComponent, "td-layout-nav", never, { "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; }, {}, never, ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"], false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavComponent, "td-layout-nav", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "navigationRoute": "navigationRoute"; }, {}, never, ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"], false, never>;
45
45
  }
@@ -100,5 +100,5 @@ export declare class TdLayoutNavListComponent implements ILayoutTogglable {
100
100
  */
101
101
  close(): Promise<MatDrawerToggleResult>;
102
102
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListComponent, [{ optional: true; }]>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavListComponent, "td-layout-nav-list", never, { "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; }, {}, never, ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"], false, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavListComponent, "td-layout-nav-list", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; "navigationRoute": "navigationRoute"; }, {}, never, ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"], false, never>;
104
104
  }
@@ -7,19 +7,19 @@ export declare class TdLayoutNavListToggleDirective extends BaseLayoutToggleDire
7
7
  constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
8
8
  onClick(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListToggleDirective, [{ optional: true; }, null, null]>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListToggleDirective, "[tdLayoutNavListToggle]", never, { "tdLayoutNavListToggle": { "alias": "tdLayoutNavListToggle"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListToggleDirective, "[tdLayoutNavListToggle]", never, { "tdLayoutNavListToggle": "tdLayoutNavListToggle"; }, {}, never, never, false, never>;
11
11
  }
12
12
  export declare class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
13
13
  set tdLayoutNavListClose(tdLayoutNavListClose: boolean);
14
14
  constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
15
15
  onClick(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListCloseDirective, [{ optional: true; }, null, null]>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListCloseDirective, "[tdLayoutNavListClose]", never, { "tdLayoutNavListClose": { "alias": "tdLayoutNavListClose"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListCloseDirective, "[tdLayoutNavListClose]", never, { "tdLayoutNavListClose": "tdLayoutNavListClose"; }, {}, never, never, false, never>;
18
18
  }
19
19
  export declare class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
20
20
  set tdLayoutNavListOpen(tdLayoutNavListOpen: boolean | string);
21
21
  constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
22
22
  onClick(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListOpenDirective, [{ optional: true; }, null, null]>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListOpenDirective, "[tdLayoutNavListOpen]", never, { "tdLayoutNavListOpen": { "alias": "tdLayoutNavListOpen"; "required": false; }; }, {}, never, never, false, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListOpenDirective, "[tdLayoutNavListOpen]", never, { "tdLayoutNavListOpen": "tdLayoutNavListOpen"; }, {}, never, never, false, never>;
25
25
  }
@@ -36,5 +36,5 @@ export declare abstract class BaseLayoutToggleDirective extends _TdLayoutToggleM
36
36
  private _toggleVisibility;
37
37
  private _noLayoutMessage;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseLayoutToggleDirective, never>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseLayoutToggleDirective, never, never, { "hideWhenOpened": { "alias": "hideWhenOpened"; "required": false; }; }, {}, never, never, false, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseLayoutToggleDirective, never, never, { "hideWhenOpened": "hideWhenOpened"; }, {}, never, never, false, never>;
40
40
  }
@@ -62,5 +62,5 @@ export declare class TdLayoutComponent implements ILayoutTogglable {
62
62
  */
63
63
  close(): Promise<MatDrawerToggleResult>;
64
64
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutComponent, "td-layout", never, { "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; }, {}, never, ["td-navigation-drawer", "[td-sidenav-content]", "*"], false, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutComponent, "td-layout", never, { "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; }, {}, never, ["td-navigation-drawer", "[td-sidenav-content]", "*"], false, never>;
66
66
  }
@@ -7,19 +7,19 @@ export declare class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
7
7
  constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
8
8
  onClick(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutToggleDirective, [{ optional: true; }, null, null]>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutToggleDirective, "[tdLayoutToggle]", never, { "tdLayoutToggle": { "alias": "tdLayoutToggle"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutToggleDirective, "[tdLayoutToggle]", never, { "tdLayoutToggle": "tdLayoutToggle"; }, {}, never, never, false, never>;
11
11
  }
12
12
  export declare class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
13
13
  set tdLayoutClose(tdLayoutClose: boolean | string | undefined);
14
14
  constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
15
15
  onClick(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCloseDirective, [{ optional: true; }, null, null]>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutCloseDirective, "[tdLayoutClose]", never, { "tdLayoutClose": { "alias": "tdLayoutClose"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutCloseDirective, "[tdLayoutClose]", never, { "tdLayoutClose": "tdLayoutClose"; }, {}, never, never, false, never>;
18
18
  }
19
19
  export declare class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
20
20
  set tdLayoutClose(tdLayoutOpen: boolean);
21
21
  constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
22
22
  onClick(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutOpenDirective, [{ optional: true; }, null, null]>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutOpenDirective, "[tdLayoutOpen]", never, { "tdLayoutClose": { "alias": "tdLayoutOpen"; "required": false; }; }, {}, never, never, false, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutOpenDirective, "[tdLayoutOpen]", never, { "tdLayoutClose": "tdLayoutOpen"; }, {}, never, never, false, never>;
25
25
  }
@@ -116,5 +116,5 @@ export declare class TdNavigationDrawerComponent implements OnInit, OnDestroy {
116
116
  */
117
117
  close(): Promise<MatDrawerToggleResult>;
118
118
  static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerComponent, [null, { optional: true; }, null]>;
119
- static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": { "alias": "sidenavTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; "backgroundUrl": { "alias": "backgroundUrl"; "required": false; }; "name": { "alias": "name"; "required": false; }; "email": { "alias": "email"; "required": false; }; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"], false, never>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": "sidenavTitle"; "icon": "icon"; "logo": "logo"; "avatar": "avatar"; "color": "color"; "navigationRoute": "navigationRoute"; "backgroundUrl": "backgroundUrl"; "name": "name"; "email": "email"; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"], false, never>;
120
120
  }
@@ -0,0 +1,43 @@
1
+ ## TdLayoutCardOverComponent: td-layout-card-over
2
+
3
+ `<td-layout-card-over>` is a layout component which lets you customize a `card over` view.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - cardTitle: string
10
+ - Title set in card.
11
+ - cardSubtitle: string
12
+ - Subtitle set in card.
13
+ - cardWidth: string
14
+ - Card flex width in %.
15
+ - Defaults to 70.
16
+ - color: string
17
+ - Optional toolbar color.
18
+ - Defaults to primary.
19
+
20
+ ## Usage
21
+
22
+ `[td-after-card]` is used to include content after the main card over content.
23
+
24
+ `td-layout-footer` is used to include items in the footer.
25
+
26
+ Example for Card Over Layout / Nav Layout combo:
27
+
28
+ ```html
29
+ <td-layout-nav toolbarTitle="title" logo="logo" icon="icon" color="primary">
30
+ <td-layout-card-over
31
+ cardTitle="title"
32
+ cardSubtitle="subtitle"
33
+ cardWidth="widthIn%"
34
+ color="primary"
35
+ >
36
+ .. main content
37
+ <div td-after-card>.. content after card</div>
38
+ </td-layout-card-over>
39
+ <td-layout-footer color="primary">
40
+ // color is optional ... main footer content
41
+ </td-layout-footer>
42
+ </td-layout-nav>
43
+ ```
@@ -0,0 +1,80 @@
1
+ ## TdLayoutManageListComponent: td-layout-manage-list
2
+
3
+ `<td-layout-manage-list>` is a layout component which lets you customize a `management` view with toolbar items, item selections and footers.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - mode: 'over' | 'side' | 'push'
10
+ - The mode or styling of the sidenav. Defaults to 'side'.
11
+ - opened: boolean
12
+ - Whether or not the sidenav is opened.
13
+ - Use this binding to open/close the sidenav.
14
+ - Defaults to 'true'.
15
+ - sidenavWidth: string
16
+ - Sets the 'width' of the sidenav in either 'px' or '%'.
17
+ - Defaults to '257px'.
18
+ - containerAutosize: boolean
19
+ - Sets 'autosize' of the sidenav-container.
20
+ - Defaults to 'false'.
21
+
22
+ ## Usage
23
+
24
+ To toggle/close/open the manage list sidenav from child layouts/components, you can use the `[tdLayoutManageListToggle]`, `[tdLayoutManageListClose]` or `[tdLayoutManageListOpen]` directives on any element and its click event will trigger the sidenav action.
25
+
26
+ Example:
27
+
28
+ ```html
29
+ <button
30
+ mat-icon-button
31
+ [tdLayoutManageListToggle]="true"
32
+ [hideWhenOpened]="true"
33
+ >
34
+ // or tdLayoutManageListOpen / tdLayoutManageListClose
35
+ <mat-icon>menu</mat-icon>
36
+ </button>
37
+ ```
38
+
39
+ To disable the sidenav action, just set the input to false.
40
+
41
+ ```html
42
+ <button mat-icon-button [tdLayoutManageListToggle]="false">
43
+ <mat-icon>menu</mat-icon>
44
+ </button>
45
+ ```
46
+
47
+ `[td-sidenav-content]` is used to include items in the left side list.
48
+
49
+ `[td-toolbar-content]` is used to include items in the toolbar.
50
+
51
+ `td-layout-footer-inner` is used to include items in the inner footer.
52
+
53
+ `[tdLayoutManageListToggle]` is used to add the sidenav toggle behavior to any clickable element.
54
+
55
+ `[tdLayoutManageListClose]` is used to add the sidenav close behavior to any clickable element.
56
+
57
+ `[tdLayoutManageListOpen]` is used to add the sidenav open behavior to any clickable element.
58
+
59
+ Example for Manage List Layout / Nav Layout combo:
60
+
61
+ ```html
62
+ <td-layout-nav sidenavTitle="title" logo="logo" icon="icon" color="primary">
63
+ <div td-toolbar-content>.. main toolbar content</div>
64
+ <td-layout-manage-list opened="true" mode="side" sidenavWidth="257px">
65
+ <mat-toolbar td-sidenav-content> ... toolbar in sidenav </mat-toolbar>
66
+ <mat-nav-list td-sidenav-content> ... sidenav content </mat-nav-list>
67
+ <mat-toolbar>
68
+ <button mat-icon-button tdLayoutManageListOpen [hideWhenOpened]="true">
69
+ <mat-icon>arrow_back</mat-icon>
70
+ </button>
71
+ ... sub toolbar content
72
+ </mat-toolbar>
73
+ ... main content
74
+ <td-layout-footer-inner> ... sub footer content </td-layout-footer-inner>
75
+ </td-layout-manage-list>
76
+ <td-layout-footer color="primary">
77
+ // color is optional ... main footer content
78
+ </td-layout-footer>
79
+ </td-layout-nav>
80
+ ```
@@ -0,0 +1,50 @@
1
+ ## TdLayoutNavComponent: td-layout-nav
2
+
3
+ `<td-layout-nav>` is a layout component which lets you customize a `navigation` view with toolbar items and footers.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - toolbarTitle: string
10
+ - Title set in toolbar.
11
+ - icon: string
12
+ - Icon name to be displayed before the title.
13
+ - logo: string
14
+ - Logo icon name to be displayed before the title.
15
+ - If [icon] is set, then this will not be shown.
16
+ - color: string
17
+ - Optional toolbar color.
18
+ - Defaults to primary.
19
+ - navigationRoute: string
20
+ - Option to set the combined route for the icon, logo, and toolbarTitle.
21
+
22
+ ## Usage
23
+
24
+ `[td-menu-button]` is used to include a menu button before the logo and title.
25
+
26
+ `[td-toolbar-content]` is used to include items in the toolbar.
27
+
28
+ `td-layout-footer` is used to include items in the footer.
29
+
30
+ Example for Nav Layout:
31
+
32
+ ```html
33
+ <td-layout-nav
34
+ toolbarTitle="title"
35
+ logo="logo"
36
+ icon="icon"
37
+ color="primary"
38
+ navigationRoute="/"
39
+ >
40
+ <button mat-icon-button td-menu-button>
41
+ // can use `[tdLayoutToggle]` to toggle main sidenav
42
+ <mat-icon>menu</mat-icon>
43
+ </button>
44
+ <div td-toolbar-content>.. main toolbar content</div>
45
+ ... main content
46
+ <td-layout-footer color="primary">
47
+ // color is optional ... main footer content
48
+ </td-layout-footer>
49
+ </td-layout-nav>
50
+ ```
@@ -0,0 +1,105 @@
1
+ ## TdLayoutNavListComponent: td-layout-nav-list
2
+
3
+ `<td-layout-nav-list>` is a layout component which lets you customize a `navigation` list view with toolbar items, item selections and footers.
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - toolbarTitle: string
10
+ - Title set in toolbar.
11
+ - icon: string
12
+ - Icon name to be displayed before the title.
13
+ - logo: string
14
+ - Logo icon name to be displayed before the title.
15
+ - If [icon] is set, then this will not be shown.
16
+ - color: string
17
+ - optional toolbar color.
18
+ - Defaults to primary.
19
+ - navigationRoute: string
20
+ - option to set the combined route for the icon, logo, and toolbarTitle.
21
+ - mode: 'over' | 'side' | 'push'
22
+ - The mode or styling of the sidenav.
23
+ - Defaults to 'side'.
24
+ - opened: boolean
25
+ - Whether or not the sidenav is opened.
26
+ - Use this binding to open/close the sidenav.
27
+ - Defaults to 'true'.
28
+ - sidenavWidth: string
29
+ - Sets the 'width' of the sidenav in either 'px' or '%'.
30
+ - Defaults to '257px'.
31
+ - containerAutosize: boolean
32
+ - Sets 'autosize' of the sidenav-container.
33
+ - Defaults to 'false'.
34
+
35
+ ## Usage
36
+
37
+ To toggle/close/open the nav list sidenav from child layouts/components, you can use the `[tdLayoutNavListToggle]`, `[tdLayoutNavListClose]` or `[tdLayoutNavListOpen]` directives on any element and its click event will trigger the sidenav action.
38
+
39
+ Example:
40
+
41
+ ```html
42
+ <button mat-icon-button [tdLayoutNavListToggle]="true" [hideWhenOpened]="true">
43
+ // or tdLayoutNavListOpen / tdLayoutNavListClose
44
+ <mat-icon>menu</mat-icon>
45
+ </button>
46
+ ```
47
+
48
+ To disable the sidenav action, just set the input to false.
49
+
50
+ ```html
51
+ <button mat-icon-button [tdLayoutNavListToggle]="false">
52
+ <mat-icon>menu</mat-icon>
53
+ </button>
54
+ ```
55
+
56
+ `[td-menu-button]` is used to include a menu button before the logo and title.
57
+
58
+ `[td-sidenav-content]` is used to include items in the left side list.
59
+
60
+ `[td-sidenav-toolbar-content]` is used to include items in the left toolbar.
61
+
62
+ `[td-toolbar-content]` is used to include items in the right toolbar.
63
+
64
+ `td-layout-footer-inner` is used to include items in the inner footer.
65
+
66
+ `td-layout-footer` is used to include items in the main footer.
67
+
68
+ `[tdLayoutNavListToggle]` is used to add the sidenav toggle behavior to any clickable element.
69
+
70
+ `[tdLayoutNavListClose]` is used to add the sidenav close behavior to any clickable element.
71
+
72
+ `[tdLayoutNavListOpen]` is used to add the sidenav open behavior to any clickable element.
73
+
74
+ Example for Nav List Layout:
75
+
76
+ ```html
77
+ <td-layout-nav-list
78
+ sidenavTitle="title"
79
+ logo="logo"
80
+ icon="icon"
81
+ opened="true"
82
+ mode="side"
83
+ sidenavWidth="350px"
84
+ color="primary"
85
+ navigationRoute="/"
86
+ >
87
+ <button mat-icon-button td-menu-button>
88
+ // can use `[tdLayoutToggle]` to toggle main sidenav
89
+ <mat-icon>menu</mat-icon>
90
+ </button>
91
+ <div td-sidenav-toolbar-content>... left toolbar content</div>
92
+ <mat-nav-list td-sidenav-content>
93
+ <button mat-icon-button tdLayoutNavListOpen [hideWhenOpened]="true">
94
+ <mat-icon>arrow_back</mat-icon>
95
+ </button>
96
+ ... sidenav content
97
+ </mat-nav-list>
98
+ <div td-toolbar-content>... right toolbar content</div>
99
+ ... main content
100
+ <td-layout-footer-inner> ... sub footer content </td-layout-footer-inner>
101
+ <td-layout-footer color="primary">
102
+ // color is optional ... main footer content
103
+ </td-layout-footer>
104
+ </td-layout-nav-list>
105
+ ```
@@ -66,5 +66,5 @@ export declare class TdLoadingDirective implements OnInit, OnDestroy {
66
66
  */
67
67
  private _registerComponent;
68
68
  static ɵfac: i0.ɵɵFactoryDeclaration<TdLoadingDirective, never>;
69
- static ɵdir: i0.ɵɵDirectiveDeclaration<TdLoadingDirective, "[tdLoading]", never, { "name": { "alias": "tdLoading"; "required": false; }; "until": { "alias": "tdLoadingUntil"; "required": false; }; "type": { "alias": "tdLoadingType"; "required": false; }; "mode": { "alias": "tdLoadingMode"; "required": false; }; "strategy": { "alias": "tdLoadingStrategy"; "required": false; }; "color": { "alias": "tdLoadingColor"; "required": false; }; }, {}, never, never, false, never>;
69
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TdLoadingDirective, "[tdLoading]", never, { "name": "tdLoading"; "until": "tdLoadingUntil"; "type": "tdLoadingType"; "mode": "tdLoadingMode"; "strategy": "tdLoadingStrategy"; "color": "tdLoadingColor"; }, {}, never, never, false, never>;
70
70
  }
@@ -97,5 +97,5 @@ export declare class TdMessageComponent implements AfterViewInit {
97
97
  */
98
98
  private _detach;
99
99
  static ɵfac: i0.ɵɵFactoryDeclaration<TdMessageComponent, never>;
100
- static ɵcmp: i0.ɵɵComponentDeclaration<TdMessageComponent, "td-message", never, { "label": { "alias": "label"; "required": false; }; "sublabel": { "alias": "sublabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, {}, never, ["[td-message-actions]"], false, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdMessageComponent, "td-message", never, { "label": "label"; "sublabel": "sublabel"; "icon": "icon"; "color": "color"; "opened": "opened"; }, {}, never, ["[td-message-actions]"], false, never>;
101
101
  }