@covalent/core 0.0.0-COVALENT

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 (350) hide show
  1. package/README.md +42 -0
  2. package/breadcrumbs/README.md +93 -0
  3. package/breadcrumbs/_breadcrumbs-theme.scss +10 -0
  4. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +37 -0
  5. package/breadcrumbs/breadcrumbs.component.d.ts +37 -0
  6. package/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  7. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +5 -0
  8. package/breadcrumbs/package.json +10 -0
  9. package/breadcrumbs/public_api.d.ts +3 -0
  10. package/common/README.md +3 -0
  11. package/common/_common-theme.scss +35 -0
  12. package/common/animations/bounce/bounce.animation.d.ts +14 -0
  13. package/common/animations/collapse/collapse.animation.d.ts +20 -0
  14. package/common/animations/common/interfaces.d.ts +5 -0
  15. package/common/animations/fade/fadeInOut.animation.d.ts +20 -0
  16. package/common/animations/flash/flash.animation.d.ts +14 -0
  17. package/common/animations/headshake/headshake.animation.d.ts +14 -0
  18. package/common/animations/jello/jello.animation.d.ts +14 -0
  19. package/common/animations/pulse/pulse.animation.d.ts +14 -0
  20. package/common/animations/rotate/rotate.animation.d.ts +21 -0
  21. package/common/behaviors/control-value-accesor.mixin.d.ts +16 -0
  22. package/common/behaviors/disable-ripple.mixin.d.ts +9 -0
  23. package/common/behaviors/disabled.mixin.d.ts +9 -0
  24. package/common/common.module.d.ts +17 -0
  25. package/common/covalent-core-common.d.ts +5 -0
  26. package/common/directives/fullscreen/fullscreen.directive.d.ts +25 -0
  27. package/common/forms/auto-trim/auto-trim.directive.d.ts +12 -0
  28. package/common/forms/validators/validators.d.ts +8 -0
  29. package/common/functions/clipboard.d.ts +9 -0
  30. package/common/functions/convert.d.ts +31 -0
  31. package/common/functions/download.d.ts +48 -0
  32. package/common/functions/file.d.ts +7 -0
  33. package/common/package.json +10 -0
  34. package/common/pipes/bytes/bytes.pipe.d.ts +7 -0
  35. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +7 -0
  36. package/common/pipes/digits/digits.pipe.d.ts +10 -0
  37. package/common/pipes/time-ago/time-ago.pipe.d.ts +7 -0
  38. package/common/pipes/time-difference/time-difference.pipe.d.ts +7 -0
  39. package/common/pipes/time-until/time-until.pipe.d.ts +7 -0
  40. package/common/pipes/truncate/truncate.pipe.d.ts +7 -0
  41. package/common/public_api.d.ts +35 -0
  42. package/common/services/icon.service.d.ts +8 -0
  43. package/common/services/router-path.service.d.ts +10 -0
  44. package/common/styles/_elevation.scss +285 -0
  45. package/common/styles/_layout.scss +605 -0
  46. package/common/styles/_palette-dark.scss +326 -0
  47. package/common/styles/_palette-light.scss +637 -0
  48. package/common/styles/_rtl.scss +31 -0
  49. package/common/styles/_styles.scss +10 -0
  50. package/common/styles/_theme-functions.scss +25 -0
  51. package/common/styles/_typography-functions.scss +43 -0
  52. package/common/styles/_variables.scss +99 -0
  53. package/common/styles/colors/_colors-dark.scss +1399 -0
  54. package/common/styles/colors/_colors-light.scss +3235 -0
  55. package/common/styles/colors/_colors.scss +7 -0
  56. package/common/styles/core/_button.scss +90 -0
  57. package/common/styles/core/_card.scss +189 -0
  58. package/common/styles/core/_content.scss +43 -0
  59. package/common/styles/core/_core.scss +23 -0
  60. package/common/styles/core/_divider.scss +16 -0
  61. package/common/styles/core/_icons.scss +22 -0
  62. package/common/styles/core/_list.scss +8 -0
  63. package/common/styles/core/_sidenav.scss +22 -0
  64. package/common/styles/core/_structure.scss +127 -0
  65. package/common/styles/core/_toolbar.scss +53 -0
  66. package/common/styles/core/_whiteframe.scss +138 -0
  67. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  68. package/common/styles/font/README.md +11 -0
  69. package/common/styles/font/_font.scss +99 -0
  70. package/common/styles/utilities/_general.scss +65 -0
  71. package/common/styles/utilities/_pad.scss +36 -0
  72. package/common/styles/utilities/_pull.scss +36 -0
  73. package/common/styles/utilities/_push.scss +36 -0
  74. package/common/styles/utilities/_size.scss +24 -0
  75. package/common/styles/utilities/_text.scss +105 -0
  76. package/common/styles/utilities/_utilities.scss +15 -0
  77. package/covalent-core.d.ts +5 -0
  78. package/dialogs/README.md +223 -0
  79. package/dialogs/_dialog-theme.scss +39 -0
  80. package/dialogs/alert-dialog/alert-dialog.component.d.ts +12 -0
  81. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +15 -0
  82. package/dialogs/covalent-core-dialogs.d.ts +5 -0
  83. package/dialogs/dialog.component.d.ts +22 -0
  84. package/dialogs/dialogs.module.d.ts +19 -0
  85. package/dialogs/package.json +10 -0
  86. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +23 -0
  87. package/dialogs/public_api.d.ts +8 -0
  88. package/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.d.ts +21 -0
  89. package/dialogs/services/dialog.service.d.ts +105 -0
  90. package/dialogs/src/README.md +223 -0
  91. package/dialogs/window-dialog/window-dialog.component.d.ts +16 -0
  92. package/dynamic-menu/README.md +152 -0
  93. package/dynamic-menu/_dynamic-menu-theme.scss +0 -0
  94. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +5 -0
  95. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +12 -0
  96. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +10 -0
  97. package/dynamic-menu/dynamic-menu.component.d.ts +11 -0
  98. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  99. package/dynamic-menu/dynamic-menu.module.d.ts +15 -0
  100. package/dynamic-menu/package.json +10 -0
  101. package/dynamic-menu/public_api.d.ts +5 -0
  102. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
  103. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +134 -0
  104. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +20 -0
  105. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
  106. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  107. package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
  108. package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
  109. package/esm2020/common/animations/common/interfaces.mjs +2 -0
  110. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
  111. package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
  112. package/esm2020/common/animations/headshake/headshake.animation.mjs +47 -0
  113. package/esm2020/common/animations/jello/jello.animation.mjs +59 -0
  114. package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
  115. package/esm2020/common/animations/rotate/rotate.animation.mjs +30 -0
  116. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
  117. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  118. package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
  119. package/esm2020/common/common.module.mjs +63 -0
  120. package/esm2020/common/covalent-core-common.mjs +5 -0
  121. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  122. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  123. package/esm2020/common/forms/validators/validators.mjs +29 -0
  124. package/esm2020/common/functions/clipboard.mjs +23 -0
  125. package/esm2020/common/functions/convert.mjs +84 -0
  126. package/esm2020/common/functions/download.mjs +75 -0
  127. package/esm2020/common/functions/file.mjs +16 -0
  128. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
  129. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
  130. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  131. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
  132. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
  133. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
  134. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  135. package/esm2020/common/public_api.mjs +39 -0
  136. package/esm2020/common/services/icon.service.mjs +1089 -0
  137. package/esm2020/common/services/router-path.service.mjs +29 -0
  138. package/esm2020/covalent-core.mjs +5 -0
  139. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
  140. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
  141. package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
  142. package/esm2020/dialogs/dialog.component.mjs +56 -0
  143. package/esm2020/dialogs/dialogs.module.mjs +89 -0
  144. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +46 -0
  145. package/esm2020/dialogs/public_api.mjs +9 -0
  146. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
  147. package/esm2020/dialogs/services/dialog.service.mjs +171 -0
  148. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
  149. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
  150. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
  151. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
  152. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
  153. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  154. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +57 -0
  155. package/esm2020/dynamic-menu/public_api.mjs +6 -0
  156. package/esm2020/file/covalent-core-file.mjs +5 -0
  157. package/esm2020/file/directives/file-drop.directive.mjs +147 -0
  158. package/esm2020/file/directives/file-select.directive.mjs +77 -0
  159. package/esm2020/file/file-input/file-input.component.mjs +110 -0
  160. package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
  161. package/esm2020/file/file.module.mjs +58 -0
  162. package/esm2020/file/public_api.mjs +7 -0
  163. package/esm2020/file/services/file.service.mjs +64 -0
  164. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  165. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
  166. package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
  167. package/esm2020/json-formatter/json-formatter.module.mjs +20 -0
  168. package/esm2020/json-formatter/public_api.mjs +3 -0
  169. package/esm2020/layout/covalent-core-layout.mjs +5 -0
  170. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
  171. package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
  172. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
  173. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +84 -0
  174. package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
  175. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
  176. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +84 -0
  177. package/esm2020/layout/layout-toggle.class.mjs +92 -0
  178. package/esm2020/layout/layout.component.mjs +92 -0
  179. package/esm2020/layout/layout.directives.mjs +85 -0
  180. package/esm2020/layout/layout.module.mjs +117 -0
  181. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +161 -0
  182. package/esm2020/layout/public_api.mjs +13 -0
  183. package/esm2020/menu/covalent-core-menu.mjs +5 -0
  184. package/esm2020/menu/menu.component.mjs +12 -0
  185. package/esm2020/menu/menu.module.mjs +21 -0
  186. package/esm2020/menu/public_api.mjs +3 -0
  187. package/esm2020/message/collapse.animation.mjs +51 -0
  188. package/esm2020/message/covalent-core-message.mjs +5 -0
  189. package/esm2020/message/message.component.mjs +203 -0
  190. package/esm2020/message/message.module.mjs +25 -0
  191. package/esm2020/message/public_api.mjs +3 -0
  192. package/esm2020/public_api.mjs +2 -0
  193. package/esm2020/search/covalent-core-search.mjs +5 -0
  194. package/esm2020/search/public_api.mjs +4 -0
  195. package/esm2020/search/search-box/search-box.component.mjs +194 -0
  196. package/esm2020/search/search-input/search-input.component.mjs +203 -0
  197. package/esm2020/search/search.module.mjs +39 -0
  198. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
  199. package/esm2020/side-sheet/public_api.mjs +6 -0
  200. package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
  201. package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
  202. package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
  203. package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
  204. package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
  205. package/esm2020/side-sheet/side-sheet.mjs +221 -0
  206. package/esm2020/side-sheet/side-sheet.module.mjs +45 -0
  207. package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
  208. package/esm2020/user-profile/public_api.mjs +4 -0
  209. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +24 -0
  210. package/esm2020/user-profile/user-profile.component.mjs +19 -0
  211. package/esm2020/user-profile/user-profile.module.mjs +44 -0
  212. package/fesm2015/covalent-core-breadcrumbs.mjs +246 -0
  213. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
  214. package/fesm2015/covalent-core-common.mjs +2281 -0
  215. package/fesm2015/covalent-core-common.mjs.map +1 -0
  216. package/fesm2015/covalent-core-dialogs.mjs +639 -0
  217. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  218. package/fesm2015/covalent-core-dynamic-menu.mjs +128 -0
  219. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  220. package/fesm2015/covalent-core-file.mjs +613 -0
  221. package/fesm2015/covalent-core-file.mjs.map +1 -0
  222. package/fesm2015/covalent-core-json-formatter.mjs +298 -0
  223. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  224. package/fesm2015/covalent-core-layout.mjs +1024 -0
  225. package/fesm2015/covalent-core-layout.mjs.map +1 -0
  226. package/fesm2015/covalent-core-menu.mjs +37 -0
  227. package/fesm2015/covalent-core-menu.mjs.map +1 -0
  228. package/fesm2015/covalent-core-message.mjs +284 -0
  229. package/fesm2015/covalent-core-message.mjs.map +1 -0
  230. package/fesm2015/covalent-core-search.mjs +428 -0
  231. package/fesm2015/covalent-core-search.mjs.map +1 -0
  232. package/fesm2015/covalent-core-side-sheet.mjs +762 -0
  233. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  234. package/fesm2015/covalent-core-user-profile.mjs +86 -0
  235. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  236. package/fesm2015/covalent-core.mjs +4 -0
  237. package/fesm2015/covalent-core.mjs.map +1 -0
  238. package/fesm2020/covalent-core-breadcrumbs.mjs +246 -0
  239. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
  240. package/fesm2020/covalent-core-common.mjs +2274 -0
  241. package/fesm2020/covalent-core-common.mjs.map +1 -0
  242. package/fesm2020/covalent-core-dialogs.mjs +634 -0
  243. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  244. package/fesm2020/covalent-core-dynamic-menu.mjs +128 -0
  245. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
  246. package/fesm2020/covalent-core-file.mjs +607 -0
  247. package/fesm2020/covalent-core-file.mjs.map +1 -0
  248. package/fesm2020/covalent-core-json-formatter.mjs +290 -0
  249. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
  250. package/fesm2020/covalent-core-layout.mjs +1000 -0
  251. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  252. package/fesm2020/covalent-core-menu.mjs +37 -0
  253. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  254. package/fesm2020/covalent-core-message.mjs +282 -0
  255. package/fesm2020/covalent-core-message.mjs.map +1 -0
  256. package/fesm2020/covalent-core-search.mjs +425 -0
  257. package/fesm2020/covalent-core-search.mjs.map +1 -0
  258. package/fesm2020/covalent-core-side-sheet.mjs +757 -0
  259. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
  260. package/fesm2020/covalent-core-user-profile.mjs +86 -0
  261. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  262. package/fesm2020/covalent-core.mjs +4 -0
  263. package/fesm2020/covalent-core.mjs.map +1 -0
  264. package/file/_file-theme.scss +27 -0
  265. package/file/covalent-core-file.d.ts +5 -0
  266. package/file/directives/file-drop.directive.d.ts +61 -0
  267. package/file/directives/file-select.directive.d.ts +33 -0
  268. package/file/file-input/file-input.component.d.ts +61 -0
  269. package/file/file-upload/file-upload.component.d.ts +91 -0
  270. package/file/file.module.d.ts +15 -0
  271. package/file/package.json +10 -0
  272. package/file/public_api.d.ts +6 -0
  273. package/file/services/file.service.d.ts +34 -0
  274. package/file/src/file-input/README.md +147 -0
  275. package/file/src/file-upload/README.md +136 -0
  276. package/json-formatter/README.md +50 -0
  277. package/json-formatter/_json-formatter-theme.scss +72 -0
  278. package/json-formatter/collapse.animation.d.ts +24 -0
  279. package/json-formatter/covalent-core-json-formatter.d.ts +5 -0
  280. package/json-formatter/json-formatter.component.d.ts +78 -0
  281. package/json-formatter/json-formatter.module.d.ts +10 -0
  282. package/json-formatter/package.json +10 -0
  283. package/json-formatter/public_api.d.ts +2 -0
  284. package/layout/README.md +138 -0
  285. package/layout/_layout-theme.scss +128 -0
  286. package/layout/covalent-core-layout.d.ts +5 -0
  287. package/layout/layout-card-over/layout-card-over.component.d.ts +31 -0
  288. package/layout/layout-footer/layout-footer.component.d.ts +17 -0
  289. package/layout/layout-manage-list/layout-manage-list.component.d.ts +66 -0
  290. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +25 -0
  291. package/layout/layout-nav/layout-nav.component.d.ts +45 -0
  292. package/layout/layout-nav-list/layout-nav-list.component.d.ts +104 -0
  293. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +25 -0
  294. package/layout/layout-toggle.class.d.ts +40 -0
  295. package/layout/layout.component.d.ts +66 -0
  296. package/layout/layout.directives.d.ts +25 -0
  297. package/layout/layout.module.d.ts +25 -0
  298. package/layout/navigation-drawer/navigation-drawer.component.d.ts +120 -0
  299. package/layout/package.json +10 -0
  300. package/layout/public_api.d.ts +12 -0
  301. package/layout/src/layout-card-over/README.md +43 -0
  302. package/layout/src/layout-manage-list/README.md +80 -0
  303. package/layout/src/layout-nav/README.md +50 -0
  304. package/layout/src/layout-nav-list/README.md +105 -0
  305. package/menu/covalent-core-menu.d.ts +5 -0
  306. package/menu/menu.component.d.ts +5 -0
  307. package/menu/menu.module.d.ts +10 -0
  308. package/menu/package.json +10 -0
  309. package/menu/public_api.d.ts +2 -0
  310. package/message/README.md +67 -0
  311. package/message/_message-theme.scss +44 -0
  312. package/message/collapse.animation.d.ts +24 -0
  313. package/message/covalent-core-message.d.ts +5 -0
  314. package/message/message.component.d.ts +101 -0
  315. package/message/message.module.d.ts +9 -0
  316. package/message/package.json +10 -0
  317. package/message/public_api.d.ts +2 -0
  318. package/package.json +146 -0
  319. package/public_api.d.ts +1 -0
  320. package/search/README.md +132 -0
  321. package/search/covalent-core-search.d.ts +5 -0
  322. package/search/package.json +10 -0
  323. package/search/public_api.d.ts +3 -0
  324. package/search/search-box/search-box.component.d.ts +88 -0
  325. package/search/search-input/search-input.component.d.ts +82 -0
  326. package/search/search.module.d.ts +13 -0
  327. package/search/src/search-box/README.md +73 -0
  328. package/search/src/search-input/README.md +74 -0
  329. package/side-sheet/README.md +64 -0
  330. package/side-sheet/_side-sheet.theme.scss +8 -0
  331. package/side-sheet/covalent-core-side-sheet.d.ts +5 -0
  332. package/side-sheet/package.json +10 -0
  333. package/side-sheet/public_api.d.ts +5 -0
  334. package/side-sheet/side-sheet-container.d.ts +110 -0
  335. package/side-sheet/side-sheet-ref.d.ts +10 -0
  336. package/side-sheet/side-sheet.animation.d.ts +4 -0
  337. package/side-sheet/side-sheet.config.d.ts +3 -0
  338. package/side-sheet/side-sheet.content-directives.d.ts +67 -0
  339. package/side-sheet/side-sheet.d.ts +66 -0
  340. package/side-sheet/side-sheet.module.d.ts +11 -0
  341. package/theming/_all-theme.scss +24 -0
  342. package/typography/_all-typography.scss +39 -0
  343. package/user-profile/README.md +60 -0
  344. package/user-profile/_user-profile-theme.scss +27 -0
  345. package/user-profile/covalent-core-user-profile.d.ts +5 -0
  346. package/user-profile/package.json +10 -0
  347. package/user-profile/public_api.d.ts +3 -0
  348. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +8 -0
  349. package/user-profile/user-profile.component.d.ts +7 -0
  350. package/user-profile/user-profile.module.d.ts +14 -0
@@ -0,0 +1,147 @@
1
+ ## TdFileInputComponent: td-file-input
2
+
3
+ ## Usage
4
+
5
+ Add the element wherever you want to bind a [File | FileList] into a class model without additional elements.
6
+
7
+ Can also drop a file(s) into the component to bind the file(s) to it.
8
+
9
+ Example for usage:
10
+
11
+ ```html
12
+ <td-file-input
13
+ [(ngModel)]="files"
14
+ color="primary"
15
+ (select)="selectEvent($event)"
16
+ accept=".ext,.anotherExt"
17
+ [disabled]="disabled"
18
+ multiple
19
+ >
20
+ <mat-icon>attach_file</mat-icon><span>Choose a file...</span>
21
+ </td-file-input>
22
+ ```
23
+
24
+ ```typescript
25
+ export class Demo {
26
+
27
+ files: File | FileList;
28
+ disabled: boolean = false;
29
+
30
+ selectEvent(files: FileList | File): void {
31
+ if (files instanceof FileList) {
32
+ ...
33
+ } else {
34
+ ...
35
+ }
36
+ };
37
+ }
38
+ ```
39
+
40
+ ## API Summary
41
+
42
+ #### Inputs
43
+
44
+ - color: string
45
+ - Sets button color. Uses same color palette accepted as [MatButton].
46
+ - multiple: boolean
47
+ - Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
48
+ - accept: string
49
+ - Sets files accepted when opening the file browser dialog. Same as "accept" attribute in `<input/>` element.
50
+ - disabled: boolean
51
+ - Disables [TdFileUploadComponent] and clears selected/dropped files.
52
+
53
+ #### Events
54
+
55
+ - select: function($event)
56
+ - Event emitted when a file is selected.
57
+ - Emits a [File or FileList] object.
58
+
59
+ #### Methods
60
+
61
+ - clear: function
62
+ - Used to clear the selected files from the [TdFileInputComponent].
63
+
64
+ ## Setup
65
+
66
+ Import the [CovalentFileModule] in your NgModule:
67
+
68
+ ```typescript
69
+ import { CovalentFileModule } from '@covalent/core/file';
70
+ @NgModule({
71
+ imports: [
72
+ CovalentFileModule,
73
+ ...
74
+ ],
75
+ ...
76
+ })
77
+ export class MyModule {}
78
+ ```
79
+
80
+ ---
81
+
82
+ ## TdFileSelectDirective: tdFileSelect
83
+
84
+ ## Usage
85
+
86
+ Add the directive wherever you want to bind a [File | FileList] into a class model to an existing <input type="file"/> element.
87
+
88
+ Uses optional [(ngModel)] directive to bind file. (if [(ngModel]) exists, [fileSelect] is omitted)
89
+
90
+ Example for usage:
91
+
92
+ ```html
93
+ <input type="file" tdFileSelect (fileSelect)="files = $event" multiple />
94
+ ```
95
+
96
+ ## API Summary
97
+
98
+ #### Inputs
99
+
100
+ - multiple: boolean
101
+ - Sets whether multiple files can be selected at once in host element, or just a single file.
102
+ - Can also be "multiple" native attribute.
103
+
104
+ #### Events
105
+
106
+ - fileSelect: function($event)
107
+ - Event emitted when a file or files are selected in host [HTMLInputElement].
108
+ - Emits a [FileList or File] object. Alternative to not use [(ngModel)].
109
+
110
+ ## TdFileDropDirective: tdFileDrop
111
+
112
+ ## Usage
113
+
114
+ Add the directive wherever you want to add drop support to an element to bind a [File | FileList] into a class model.
115
+
116
+ To add effect when <code>ondragenter</code> event is executed, override <code>.drop-zone</code> class in the context you are using it.
117
+
118
+ Note: if element has child elements, add <code>\* { pointer-events: none; }</code> to avoid event being thrown again while navigating in child elements.
119
+
120
+ Example for usage:
121
+
122
+ ```html
123
+ <div
124
+ tdFileDrop
125
+ (fileDrop)="files = $event"
126
+ multiple
127
+ [disabled]="disabled"
128
+ ></div>
129
+ ```
130
+
131
+ ## API Summary
132
+
133
+ #### Inputs
134
+
135
+ - multiple: boolean
136
+ - Sets whether multiple files can be dropped at once in host element, or just a single file.
137
+ - Can also be "multiple" native attribute.
138
+ - disabled: boolean
139
+ - Disabled drop events for host element.
140
+
141
+ #### Events
142
+
143
+ - fileDrop: function($event)
144
+ - Event emitted when a file or files are dropped in host element after being validated.
145
+ - Emits a [FileList or File] object.
146
+
147
+ &nbsp;
@@ -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
+ (select)="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
+ - select: 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
+ ```
@@ -0,0 +1,50 @@
1
+ # td-json-formatter
2
+
3
+ `td-json-formatter` renders a javascript object in JSON format the same way the chrome/firefox console would render it using `console.log()`.
4
+
5
+ Hovering on nodes will bring out a preview tooltip of the first 5 objects/properties of the node.
6
+
7
+ The tree is collapsable/expandable so you can navigate through its nodes.
8
+
9
+ ## API Summary
10
+
11
+ #### Inputs
12
+
13
+ - key?: string
14
+ - Tag to be displayed as root of formatted object.
15
+ - data: any
16
+ - JS object to be formatted.
17
+ - levelsOpen?: number
18
+ - Levels opened by default when JS object is formatted and rendered.
19
+
20
+ #### Methods
21
+
22
+ - refresh: function
23
+ - Refreshes json-formatter and rerenders [data]
24
+
25
+ ## Setup
26
+
27
+ Import the [CovalentJsonFormatterModule] in your NgModule:
28
+
29
+ ```typescript
30
+ import { CovalentJsonFormatterModule } from '@covalent/core/json-formatter';
31
+ @NgModule({
32
+ imports: [
33
+ CovalentJsonFormatterModule,
34
+ ...
35
+ ],
36
+ ...
37
+ })
38
+ export class MyModule {}
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ Simply add the component and pass the object to be formatted as a [data] input.
44
+
45
+ Example for HTML usage:
46
+
47
+ ```html
48
+ <td-json-formatter [data]="object" key="root" [levelsOpen]="1">
49
+ </td-json-formatter>
50
+ ```
@@ -0,0 +1,72 @@
1
+ @import '../common/styles/theme-functions';
2
+ @import '../common/styles/typography-functions';
3
+
4
+ @mixin td-json-formatter-typography($config) {
5
+ .td-key {
6
+ font: {
7
+ family: td-font-family($config);
8
+ size: td-font-size($config, body-1);
9
+ }
10
+ }
11
+ }
12
+
13
+ @mixin td-json-formatter-theme($theme) {
14
+ $primary: map-get($theme, primary);
15
+ $accent: map-get($theme, accent);
16
+ $warn: map-get($theme, warn);
17
+ $foreground: map-get($theme, foreground);
18
+ $background: map-get($theme, background);
19
+
20
+ .td-json-formatter-wrapper {
21
+ .function::after,
22
+ .date::after,
23
+ .td-object-name::after,
24
+ .td-array-length::after {
25
+ content: '\200E';
26
+ }
27
+
28
+ .td-key {
29
+ &.td-key-node {
30
+ &:focus,
31
+ &:hover {
32
+ background-color: mat-color($background, hover);
33
+ }
34
+
35
+ .td-node-icon {
36
+ color: mat-color($foreground, secondary-text);
37
+ }
38
+ }
39
+ }
40
+
41
+ .key {
42
+ color: mat-color($primary);
43
+ }
44
+
45
+ .value {
46
+ .string {
47
+ color: mat-color($warn);
48
+ }
49
+
50
+ .number {
51
+ color: mat-color($accent);
52
+ }
53
+
54
+ .boolean {
55
+ color: mat-color($accent);
56
+ }
57
+
58
+ .null,
59
+ .undefined {
60
+ color: mat-color($foreground, disabled-text);
61
+ }
62
+
63
+ .function {
64
+ color: mat-color($primary);
65
+ }
66
+
67
+ .date {
68
+ color: mat-color($foreground, text);
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,24 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ export interface IAnimationOptions {
3
+ anchor?: string;
4
+ duration?: number;
5
+ delay?: number;
6
+ }
7
+ export interface ICollapseAnimation extends IAnimationOptions {
8
+ easeOnClose?: string;
9
+ easeOnOpen?: string;
10
+ }
11
+ /**
12
+ * const tdCollapseAnimation
13
+ *
14
+ * Parameter Options:
15
+ * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
16
+ * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
17
+ * * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in.
18
+ * * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out.
19
+ *
20
+ * Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
21
+ *
22
+ * usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
23
+ */
24
+ export declare const tdCollapseAnimation: AnimationTriggerMetadata;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@covalent/core/json-formatter" />
5
+ export * from './public_api';
@@ -0,0 +1,78 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { Dir } from '@angular/cdk/bidi';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TdJsonFormatterComponent {
5
+ private _changeDetectorRef;
6
+ private _dir;
7
+ /**
8
+ * Max length for property names. Any names bigger than this get trunctated.
9
+ */
10
+ private static KEY_MAX_LENGTH;
11
+ /**
12
+ * Max length for preview string. Any names bigger than this get trunctated.
13
+ */
14
+ private static PREVIEW_STRING_MAX_LENGTH;
15
+ /**
16
+ * Max tooltip preview elements.
17
+ */
18
+ private static PREVIEW_LIMIT;
19
+ private _key?;
20
+ private _data;
21
+ private _children?;
22
+ private _open;
23
+ private _levelsOpen;
24
+ /**
25
+ * levelsOpen?: number
26
+ * Levels opened by default when JS object is formatted and rendered.
27
+ */
28
+ set levelsOpen(levelsOpen: number);
29
+ get levelsOpen(): number;
30
+ get open(): boolean;
31
+ /**
32
+ * key?: string
33
+ * Tag to be displayed next to formatted object.
34
+ */
35
+ set key(key: string);
36
+ get key(): string;
37
+ /**
38
+ * data: any
39
+ * JS object to be formatted.
40
+ */
41
+ set data(data: Record<string, any>);
42
+ get data(): Record<string, any>;
43
+ get children(): string[];
44
+ get isRTL(): boolean;
45
+ constructor(_changeDetectorRef: ChangeDetectorRef, _dir: Dir);
46
+ /**
47
+ * Refreshes json-formatter and rerenders [data]
48
+ */
49
+ refresh(): void;
50
+ /**
51
+ * Toggles collapse/expanded state of component.
52
+ */
53
+ toggle(): void;
54
+ isObject(): boolean;
55
+ isArray(): boolean;
56
+ hasChildren(): boolean;
57
+ /**
58
+ * Gets parsed value depending on value type.
59
+ */
60
+ getValue(value: any): string;
61
+ /**
62
+ * Gets type of object.
63
+ * returns 'null' if object is null and 'date' if value is object and can be parsed to a date.
64
+ */
65
+ getType(object: any): string;
66
+ /**
67
+ * Generates string representation depending if its an object or function.
68
+ * see: http://stackoverflow.com/a/332429
69
+ */
70
+ getObjectName(): string;
71
+ /**
72
+ * Creates preview of nodes children to render in tooltip depending if its an array or an object.
73
+ */
74
+ getPreview(): string;
75
+ private parseChildren;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdJsonFormatterComponent, [null, { optional: true; }]>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdJsonFormatterComponent, "td-json-formatter", never, { "levelsOpen": "levelsOpen"; "key": "key"; "data": "data"; }, {}, never, never>;
78
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./json-formatter.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/tooltip";
5
+ import * as i4 from "@angular/material/icon";
6
+ export declare class CovalentJsonFormatterModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CovalentJsonFormatterModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentJsonFormatterModule, [typeof i1.TdJsonFormatterComponent], [typeof i2.CommonModule, typeof i3.MatTooltipModule, typeof i4.MatIconModule], [typeof i1.TdJsonFormatterComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<CovalentJsonFormatterModule>;
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/covalent-core-json-formatter.mjs",
3
+ "es2020": "../fesm2020/covalent-core-json-formatter.mjs",
4
+ "esm2020": "../esm2020/json-formatter/covalent-core-json-formatter.mjs",
5
+ "fesm2020": "../fesm2020/covalent-core-json-formatter.mjs",
6
+ "fesm2015": "../fesm2015/covalent-core-json-formatter.mjs",
7
+ "typings": "covalent-core-json-formatter.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@covalent/core/json-formatter"
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './json-formatter.module';
2
+ export * from './json-formatter.component';
@@ -0,0 +1,138 @@
1
+ ## TdLayoutComponent - td-layout
2
+
3
+ `<td-layout>` is a blank main sidenav component that gets hooked as parent of all the other layouts. (triggered by their menu buttons)
4
+
5
+ ## API Summary
6
+
7
+ #### Inputs
8
+
9
+ - mode: 'over' | 'side' | 'push'
10
+ - The mode or styling of the sidenav. Defaults to 'over'.
11
+ - opened: boolean
12
+ - Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
13
+ - Defaults to 'false'.
14
+ - sidenavWidth: string
15
+ - Sets the 'width' of the sidenav in either 'px' or '%'.
16
+ - Defaults to '320px'.
17
+ - containerAutosize: boolean
18
+ - Sets 'autosize' of the sidenav-container.
19
+ - Defaults to 'false'.
20
+
21
+ ## Usage
22
+
23
+ `[td-sidenav-content]` is used to include content in the main sidenav.
24
+
25
+ Example for Main Layout:
26
+
27
+ ```html
28
+ <td-layout [mode]="'side'" [opened]="true" [sidenavWidth]="'257px'">
29
+ <div td-sidenav-content>.. more sidenav content</div>
30
+ .. main content
31
+ </td-layout>
32
+ ```
33
+
34
+ To toggle/close/open the main sidenav from child layouts/components, you can use the `[tdLayoutToggle]`, `[tdLayoutClose]` or `[tdLayoutOpen]` directives on any element and its click event will trigger the sidenav action.
35
+
36
+ Example:
37
+
38
+ ```html
39
+ <button mat-icon-button [tdLayoutToggle]="true">
40
+ // or tdLayoutOpen / tdLayoutClose
41
+ <mat-icon>menu</mat-icon>
42
+ </button>
43
+ ```
44
+
45
+ To disable the sidenav action, just set the input to false.
46
+
47
+ ```html
48
+ <button mat-icon-button [tdLayoutToggle]="false">
49
+ <mat-icon>menu</mat-icon>
50
+ </button>
51
+ ```
52
+
53
+ ## Installation
54
+
55
+ This component can be installed as npm package.
56
+
57
+ ```bash
58
+ npm i -save @covalent/core
59
+ ```
60
+
61
+ ## Setup
62
+
63
+ Import the **[CovalentLayoutModule]** in your NgModule:
64
+
65
+ ```typescript
66
+ import { CovalentLayoutModule } from '@covalent/core/layout';
67
+ @NgModule({
68
+ imports: [
69
+ CovalentLayoutModule,
70
+ ...
71
+ ],
72
+ ...
73
+ })
74
+ export class MyModule {}
75
+ ```
76
+
77
+ ### Theming
78
+
79
+ See [theming](https://teradata.github.io/covalent/#/docs/theme) in the covalent docs for more info.
80
+
81
+ ## TdNavigationDrawerComponent - td-navigation-drawer
82
+
83
+ `<td-navigation-drawer>` is a component that follows the [material design spec](https://material.io/guidelines/patterns/navigation-drawer.html#navigation-drawer-specs) is used as an addon component for `td-layout`.
84
+
85
+ ## API Summary
86
+
87
+ #### Inputs
88
+
89
+ - sidenavTitle: string
90
+ - Title set in toolbar.
91
+ - icon: string
92
+ - Icon name to be displayed before the title.
93
+ - logo: string
94
+ - Logo icon name to be displayed before the title.
95
+ - If [icon] is set, then this will not be shown.
96
+ - avatar: string
97
+ - Avatar url to be displayed before the title.
98
+ - If [icon] or [logo] are set, then this will not be shown.
99
+ - color: string
100
+ - Optional sidenav toolbar color.
101
+ - navigationRoute: string
102
+ - Option to set the combined route for the icon, logo, and sidenavTitle.
103
+ - backgroundUrl: SafeResourceUrl
104
+ - Image to be displayed as the background of the toolbar.
105
+ - URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
106
+ - name: string
107
+ - String to be displayed as part of the navigation drawer sublabel.
108
+ - If [email] is not set, then [name] will be the toggle menu text.
109
+ - email: string
110
+ - String to be displayed as part of the navigation drawer sublabel in the [toggle] menu text.
111
+ - If [email] and [name] are not set, then the toggle menu is not rendered.
112
+
113
+ ## Usage
114
+
115
+ `[td-sidenav-content]` is used to include content in the main sidenav.
116
+
117
+ `[td-navigation-drawer-menu]` is used to include content to the `toggle` user menu. if no tag is used, then the toggle button dissapears.
118
+
119
+ Example for Main Layout / Navigation Drawer Combo:
120
+
121
+ ```html
122
+ <td-layout>
123
+ <td-navigation-drawer
124
+ sidenavTitle="title"
125
+ logo="logo"
126
+ icon="icon"
127
+ name="name"
128
+ password="password"
129
+ color="color"
130
+ navigationRoute="/"
131
+ >
132
+ .. main drawer content
133
+ <div tdNavigationDrawerMenu>.. menu drawer content</div>
134
+ </td-navigation-drawer>
135
+ <div td-sidenav-content>.. more sidenav content</div>
136
+ .. main content
137
+ </td-layout>
138
+ ```