@covalent/core 3.1.2-beta.6 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (829) hide show
  1. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -0
  2. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +3 -0
  3. package/breadcrumbs/breadcrumbs.component.d.ts +3 -0
  4. package/breadcrumbs/breadcrumbs.component.scss +1 -0
  5. package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  6. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -0
  7. package/breadcrumbs/package.json +6 -7
  8. package/common/_common-theme.scss +2 -0
  9. package/common/common.module.d.ts +15 -0
  10. package/common/covalent-core-common.d.ts +1 -2
  11. package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
  12. package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
  13. package/common/material-icons.css +31 -18
  14. package/common/material-icons.css.map +1 -1
  15. package/common/package.json +6 -7
  16. package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
  17. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
  18. package/common/pipes/digits/digits.pipe.d.ts +3 -0
  19. package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
  20. package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
  21. package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
  22. package/common/pipes/truncate/truncate.pipe.d.ts +3 -0
  23. package/common/platform.css +11828 -10433
  24. package/common/platform.css.map +1 -1
  25. package/common/services/icon.service.d.ts +3 -0
  26. package/common/services/router-path.service.d.ts +3 -0
  27. package/common/styles/_layout.scss +12 -10
  28. package/common/styles/_palette-dark.scss +2 -2
  29. package/common/styles/_palette-light.scss +6 -6
  30. package/common/styles/_rtl.scss +3 -0
  31. package/common/styles/_variables.scss +5 -5
  32. package/common/styles/colors/_colors-dark.scss +327 -0
  33. package/common/styles/colors/_colors-light.scss +748 -0
  34. package/common/styles/core/_button.scss +2 -1
  35. package/common/styles/core/_card.scss +27 -7
  36. package/common/styles/core/_content.scss +2 -1
  37. package/common/styles/core/_divider.scss +1 -0
  38. package/common/styles/core/_icons.scss +2 -0
  39. package/common/styles/core/_sidenav.scss +2 -0
  40. package/common/styles/core/_structure.scss +6 -7
  41. package/common/styles/core/_toolbar.scss +7 -0
  42. package/common/styles/core/_whiteframe.scss +2 -2
  43. package/common/styles/font/_font.scss +10 -4
  44. package/common/styles/utilities/_general.scss +14 -0
  45. package/common/styles/utilities/_text.scss +21 -0
  46. package/covalent-core.d.ts +1 -0
  47. package/dialogs/_dialog-theme.scss +2 -0
  48. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -0
  49. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +3 -0
  50. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  51. package/dialogs/dialog.component.d.ts +9 -0
  52. package/dialogs/dialog.component.scss +5 -0
  53. package/dialogs/dialogs.module.d.ts +17 -0
  54. package/dialogs/package.json +6 -7
  55. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -0
  56. package/dialogs/prompt-dialog/prompt-dialog.component.scss +1 -0
  57. package/dialogs/public-api.d.ts +1 -0
  58. package/dialogs/services/dialog.service.d.ts +3 -0
  59. package/dialogs/window-dialog/window-dialog.component.d.ts +3 -0
  60. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  61. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +3 -0
  62. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +1 -0
  63. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +3 -0
  64. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +3 -1
  65. package/dynamic-menu/dynamic-menu.component.d.ts +3 -0
  66. package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
  67. package/dynamic-menu/package.json +6 -7
  68. package/dynamic-menu/public_api.d.ts +1 -0
  69. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +108 -0
  70. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +139 -0
  71. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +21 -0
  72. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
  73. package/esm2020/breadcrumbs/index.mjs +2 -0
  74. package/esm2020/breadcrumbs/public-api.mjs +4 -0
  75. package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
  76. package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
  77. package/esm2020/common/animations/common/interfaces.mjs +2 -0
  78. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
  79. package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
  80. package/esm2020/common/animations/headshake/headshake.animation.mjs +35 -0
  81. package/esm2020/common/animations/jello/jello.animation.mjs +38 -0
  82. package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
  83. package/esm2020/common/animations/rotate/rotate.animation.mjs +25 -0
  84. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +39 -0
  85. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  86. package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
  87. package/esm2020/common/common.module.mjs +64 -0
  88. package/esm2020/common/covalent-core-common.mjs +5 -0
  89. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  90. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  91. package/esm2020/common/forms/validators/validators.mjs +29 -0
  92. package/{esm2015/common/functions/clipboard.js → esm2020/common/functions/clipboard.mjs} +3 -10
  93. package/esm2020/common/functions/convert.mjs +84 -0
  94. package/esm2020/common/functions/download.mjs +75 -0
  95. package/esm2020/common/functions/file.mjs +16 -0
  96. package/esm2020/common/index.mjs +2 -0
  97. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +32 -0
  98. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +32 -0
  99. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  100. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
  101. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
  102. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
  103. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  104. package/esm2020/common/public-api.mjs +39 -0
  105. package/esm2020/common/services/icon.service.mjs +1089 -0
  106. package/esm2020/common/services/router-path.service.mjs +29 -0
  107. package/esm2020/covalent-core.mjs +5 -0
  108. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +54 -0
  109. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +68 -0
  110. package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
  111. package/esm2020/dialogs/dialog.component.mjs +97 -0
  112. package/esm2020/dialogs/dialogs.module.mjs +86 -0
  113. package/esm2020/dialogs/index.mjs +2 -0
  114. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +104 -0
  115. package/esm2020/dialogs/public-api.mjs +9 -0
  116. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +199 -0
  117. package/esm2020/dialogs/services/dialog.service.mjs +168 -0
  118. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +69 -0
  119. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
  120. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +147 -0
  121. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +113 -0
  122. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +111 -0
  123. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +32 -0
  124. package/esm2020/dynamic-menu/index.mjs +2 -0
  125. package/esm2020/dynamic-menu/public_api.mjs +5 -0
  126. package/esm2020/file/covalent-core-file.mjs +5 -0
  127. package/esm2020/file/directives/file-drop.directive.mjs +148 -0
  128. package/esm2020/file/directives/file-select.directive.mjs +76 -0
  129. package/esm2020/file/file-input/file-input.component.mjs +137 -0
  130. package/esm2020/file/file-upload/file-upload.component.mjs +210 -0
  131. package/esm2020/file/file.module.mjs +43 -0
  132. package/esm2020/file/index.mjs +2 -0
  133. package/esm2020/file/public-api.mjs +7 -0
  134. package/esm2020/file/services/file.service.mjs +62 -0
  135. package/esm2020/index.mjs +2 -0
  136. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
  137. package/esm2020/json-formatter/index.mjs +2 -0
  138. package/esm2020/json-formatter/json-formatter.component.mjs +302 -0
  139. package/esm2020/json-formatter/json-formatter.module.mjs +21 -0
  140. package/esm2020/json-formatter/public-api.mjs +3 -0
  141. package/esm2020/layout/covalent-core-layout.mjs +5 -0
  142. package/esm2020/layout/index.mjs +2 -0
  143. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +87 -0
  144. package/esm2020/layout/layout-footer/layout-footer.component.mjs +38 -0
  145. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +122 -0
  146. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +90 -0
  147. package/esm2020/layout/layout-nav/layout-nav.component.mjs +112 -0
  148. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +215 -0
  149. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +90 -0
  150. package/esm2020/layout/layout-toggle.class.mjs +95 -0
  151. package/esm2020/layout/layout.component.mjs +113 -0
  152. package/esm2020/layout/layout.directives.mjs +87 -0
  153. package/esm2020/layout/layout.module.mjs +118 -0
  154. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +306 -0
  155. package/esm2020/layout/public-api.mjs +13 -0
  156. package/esm2020/menu/covalent-core-menu.mjs +5 -0
  157. package/esm2020/menu/index.mjs +2 -0
  158. package/esm2020/menu/menu.component.mjs +23 -0
  159. package/esm2020/menu/menu.module.mjs +22 -0
  160. package/esm2020/menu/public-api.mjs +3 -0
  161. package/esm2020/message/covalent-core-message.mjs +5 -0
  162. package/esm2020/message/index.mjs +2 -0
  163. package/esm2020/message/message.component.mjs +261 -0
  164. package/esm2020/message/message.module.mjs +21 -0
  165. package/esm2020/message/public-api.mjs +3 -0
  166. package/esm2020/search/covalent-core-search.mjs +5 -0
  167. package/esm2020/search/index.mjs +2 -0
  168. package/esm2020/search/public-api.mjs +4 -0
  169. package/esm2020/search/search-box/search-box.component.mjs +220 -0
  170. package/esm2020/search/search-input/search-input.component.mjs +240 -0
  171. package/esm2020/search/search.module.mjs +24 -0
  172. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
  173. package/esm2020/side-sheet/index.mjs +2 -0
  174. package/esm2020/side-sheet/public-api.mjs +6 -0
  175. package/esm2020/side-sheet/side-sheet-container.mjs +242 -0
  176. package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
  177. package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
  178. package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
  179. package/esm2020/side-sheet/side-sheet.content-directives.mjs +178 -0
  180. package/esm2020/side-sheet/side-sheet.mjs +208 -0
  181. package/esm2020/side-sheet/side-sheet.module.mjs +46 -0
  182. package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
  183. package/esm2020/user-profile/index.mjs +2 -0
  184. package/esm2020/user-profile/public_api.mjs +4 -0
  185. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +75 -0
  186. package/esm2020/user-profile/user-profile.component.mjs +41 -0
  187. package/esm2020/user-profile/user-profile.module.mjs +26 -0
  188. package/fesm2015/covalent-core-breadcrumbs.mjs +287 -0
  189. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
  190. package/fesm2015/covalent-core-common.mjs +2251 -0
  191. package/fesm2015/covalent-core-common.mjs.map +1 -0
  192. package/fesm2015/covalent-core-dialogs.mjs +872 -0
  193. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  194. package/fesm2015/covalent-core-dynamic-menu.mjs +480 -0
  195. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  196. package/fesm2015/covalent-core-file.mjs +698 -0
  197. package/fesm2015/covalent-core-file.mjs.map +1 -0
  198. package/fesm2015/covalent-core-json-formatter.mjs +353 -0
  199. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  200. package/fesm2015/covalent-core-layout.mjs +1577 -0
  201. package/fesm2015/covalent-core-layout.mjs.map +1 -0
  202. package/fesm2015/covalent-core-menu.mjs +55 -0
  203. package/fesm2015/covalent-core-menu.mjs.map +1 -0
  204. package/fesm2015/covalent-core-message.mjs +309 -0
  205. package/fesm2015/covalent-core-message.mjs.map +1 -0
  206. package/fesm2015/covalent-core-search.mjs +508 -0
  207. package/fesm2015/covalent-core-search.mjs.map +1 -0
  208. package/fesm2015/covalent-core-side-sheet.mjs +733 -0
  209. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  210. package/fesm2015/covalent-core-user-profile.mjs +162 -0
  211. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  212. package/{data-table/covalent-core-data-table.d.ts → fesm2015/covalent-core.mjs} +1 -1
  213. package/fesm2015/covalent-core.mjs.map +1 -0
  214. package/fesm2020/covalent-core-breadcrumbs.mjs +268 -0
  215. package/{fesm2015/covalent-core-breadcrumbs.js.map → fesm2020/covalent-core-breadcrumbs.mjs.map} +1 -1
  216. package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +213 -768
  217. package/fesm2020/covalent-core-common.mjs.map +1 -0
  218. package/fesm2020/covalent-core-dialogs.mjs +812 -0
  219. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  220. package/fesm2020/covalent-core-dynamic-menu.mjs +393 -0
  221. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
  222. package/fesm2020/covalent-core-file.mjs +651 -0
  223. package/fesm2020/covalent-core-file.mjs.map +1 -0
  224. package/fesm2020/covalent-core-json-formatter.mjs +326 -0
  225. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
  226. package/fesm2020/covalent-core-layout.mjs +1414 -0
  227. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  228. package/fesm2020/covalent-core-menu.mjs +49 -0
  229. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  230. package/fesm2020/covalent-core-message.mjs +286 -0
  231. package/fesm2020/covalent-core-message.mjs.map +1 -0
  232. package/fesm2020/covalent-core-search.mjs +473 -0
  233. package/fesm2020/covalent-core-search.mjs.map +1 -0
  234. package/fesm2020/covalent-core-side-sheet.mjs +690 -0
  235. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
  236. package/fesm2020/covalent-core-user-profile.mjs +141 -0
  237. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  238. package/{expansion-panel/covalent-core-expansion-panel.d.ts → fesm2020/covalent-core.mjs} +1 -1
  239. package/fesm2020/covalent-core.mjs.map +1 -0
  240. package/file/_file-theme.scss +1 -0
  241. package/file/covalent-core-file.d.ts +1 -0
  242. package/file/directives/file-drop.directive.d.ts +3 -0
  243. package/file/directives/file-select.directive.d.ts +3 -0
  244. package/file/file-input/file-input.component.d.ts +5 -0
  245. package/file/file-input/file-input.component.scss +2 -0
  246. package/file/file-upload/file-upload.component.d.ts +3 -0
  247. package/file/file-upload/file-upload.component.scss +4 -0
  248. package/file/file.module.d.ts +13 -0
  249. package/file/package.json +6 -7
  250. package/file/services/file.service.d.ts +3 -0
  251. package/json-formatter/_json-formatter-theme.scss +10 -0
  252. package/json-formatter/covalent-core-json-formatter.d.ts +1 -0
  253. package/json-formatter/json-formatter.component.d.ts +3 -0
  254. package/json-formatter/json-formatter.component.scss +13 -0
  255. package/json-formatter/json-formatter.module.d.ts +8 -0
  256. package/json-formatter/package.json +6 -7
  257. package/layout/_layout-theme.scss +12 -0
  258. package/layout/covalent-core-layout.d.ts +1 -0
  259. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -0
  260. package/layout/layout-card-over/layout-card-over.component.scss +3 -0
  261. package/layout/layout-footer/layout-footer.component.d.ts +3 -0
  262. package/layout/layout-manage-list/layout-manage-list.component.d.ts +3 -0
  263. package/layout/layout-manage-list/layout-manage-list.component.scss +9 -5
  264. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +7 -0
  265. package/layout/layout-nav/layout-nav.component.d.ts +3 -0
  266. package/layout/layout-nav/layout-nav.component.scss +4 -0
  267. package/layout/layout-nav-list/layout-nav-list.component.d.ts +3 -0
  268. package/layout/layout-nav-list/layout-nav-list.component.scss +9 -4
  269. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +7 -0
  270. package/layout/layout-toggle.class.d.ts +3 -0
  271. package/layout/layout.component.d.ts +3 -0
  272. package/layout/layout.component.scss +0 -4
  273. package/layout/layout.directives.d.ts +7 -0
  274. package/layout/layout.module.d.ts +23 -0
  275. package/layout/navigation-drawer/navigation-drawer.component.d.ts +7 -0
  276. package/layout/navigation-drawer/navigation-drawer.component.scss +8 -0
  277. package/layout/package.json +6 -7
  278. package/menu/covalent-core-menu.d.ts +1 -0
  279. package/menu/menu.component.d.ts +3 -0
  280. package/menu/menu.component.scss +9 -1
  281. package/menu/menu.module.d.ts +8 -0
  282. package/menu/package.json +6 -7
  283. package/message/_message-theme.scss +3 -0
  284. package/message/covalent-core-message.d.ts +1 -0
  285. package/message/message.component.d.ts +5 -0
  286. package/message/message.component.scss +3 -0
  287. package/message/message.module.d.ts +7 -0
  288. package/message/package.json +6 -7
  289. package/package.json +126 -15
  290. package/search/covalent-core-search.d.ts +1 -0
  291. package/search/package.json +6 -7
  292. package/search/search-box/search-box.component.d.ts +3 -0
  293. package/search/search-box/search-box.component.scss +5 -0
  294. package/search/search-input/search-input.component.d.ts +3 -0
  295. package/search/search-input/search-input.component.scss +12 -0
  296. package/search/search.module.d.ts +11 -0
  297. package/side-sheet/README.md +66 -0
  298. package/{chips/covalent-core-chips.d.ts → side-sheet/covalent-core-side-sheet.d.ts} +1 -0
  299. package/{chips → side-sheet}/index.d.ts +0 -0
  300. package/side-sheet/package.json +10 -0
  301. package/side-sheet/public-api.d.ts +5 -0
  302. package/side-sheet/side-sheet-container.d.ts +99 -0
  303. package/side-sheet/side-sheet-ref.d.ts +10 -0
  304. package/side-sheet/side-sheet.animation.d.ts +4 -0
  305. package/side-sheet/side-sheet.config.d.ts +3 -0
  306. package/side-sheet/side-sheet.content-directives.d.ts +61 -0
  307. package/side-sheet/side-sheet.d.ts +66 -0
  308. package/side-sheet/side-sheet.module.d.ts +11 -0
  309. package/side-sheet/side-sheet.scss +68 -0
  310. package/side-sheet/side-sheet.theme.scss +8 -0
  311. package/theming/_all-theme.scss +2 -14
  312. package/theming/prebuilt/blue-grey-deep-orange.css +1716 -1579
  313. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  314. package/theming/prebuilt/blue-grey-deep-orange.scss +15 -8
  315. package/theming/prebuilt/blue-orange.css +1715 -1578
  316. package/theming/prebuilt/blue-orange.css.map +1 -1
  317. package/theming/prebuilt/blue-orange.scss +15 -8
  318. package/theming/prebuilt/indigo-pink.css +1716 -1579
  319. package/theming/prebuilt/indigo-pink.css.map +1 -1
  320. package/theming/prebuilt/indigo-pink.scss +15 -8
  321. package/theming/prebuilt/orange-light-blue.css +1715 -1578
  322. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  323. package/theming/prebuilt/orange-light-blue.scss +15 -8
  324. package/theming/prebuilt/teal-orange.css +1715 -1578
  325. package/theming/prebuilt/teal-orange.css.map +1 -1
  326. package/theming/prebuilt/teal-orange.scss +15 -8
  327. package/typography/_all-typography.scss +0 -10
  328. package/user-profile/covalent-core-user-profile.d.ts +1 -0
  329. package/user-profile/package.json +6 -7
  330. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +3 -0
  331. package/user-profile/user-profile-menu/user-profile-menu.component.scss +3 -0
  332. package/user-profile/user-profile.component.d.ts +3 -0
  333. package/user-profile/user-profile.module.d.ts +12 -0
  334. package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
  335. package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
  336. package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
  337. package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
  338. package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
  339. package/bundles/covalent-core-chips.umd.js +0 -1507
  340. package/bundles/covalent-core-chips.umd.js.map +0 -1
  341. package/bundles/covalent-core-chips.umd.min.js +0 -16
  342. package/bundles/covalent-core-chips.umd.min.js.map +0 -1
  343. package/bundles/covalent-core-common.umd.js +0 -3188
  344. package/bundles/covalent-core-common.umd.js.map +0 -1
  345. package/bundles/covalent-core-common.umd.min.js +0 -17
  346. package/bundles/covalent-core-common.umd.min.js.map +0 -1
  347. package/bundles/covalent-core-data-table.umd.js +0 -2756
  348. package/bundles/covalent-core-data-table.umd.js.map +0 -1
  349. package/bundles/covalent-core-data-table.umd.min.js +0 -16
  350. package/bundles/covalent-core-data-table.umd.min.js.map +0 -1
  351. package/bundles/covalent-core-dialogs.umd.js +0 -1318
  352. package/bundles/covalent-core-dialogs.umd.js.map +0 -1
  353. package/bundles/covalent-core-dialogs.umd.min.js +0 -2
  354. package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
  355. package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
  356. package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
  357. package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
  358. package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
  359. package/bundles/covalent-core-expansion-panel.umd.js +0 -853
  360. package/bundles/covalent-core-expansion-panel.umd.js.map +0 -1
  361. package/bundles/covalent-core-expansion-panel.umd.min.js +0 -16
  362. package/bundles/covalent-core-expansion-panel.umd.min.js.map +0 -1
  363. package/bundles/covalent-core-file.umd.js +0 -1211
  364. package/bundles/covalent-core-file.umd.js.map +0 -1
  365. package/bundles/covalent-core-file.umd.min.js +0 -17
  366. package/bundles/covalent-core-file.umd.min.js.map +0 -1
  367. package/bundles/covalent-core-json-formatter.umd.js +0 -408
  368. package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
  369. package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
  370. package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
  371. package/bundles/covalent-core-layout.umd.js +0 -2084
  372. package/bundles/covalent-core-layout.umd.js.map +0 -1
  373. package/bundles/covalent-core-layout.umd.min.js +0 -17
  374. package/bundles/covalent-core-layout.umd.min.js.map +0 -1
  375. package/bundles/covalent-core-loading.umd.js +0 -1534
  376. package/bundles/covalent-core-loading.umd.js.map +0 -1
  377. package/bundles/covalent-core-loading.umd.min.js +0 -16
  378. package/bundles/covalent-core-loading.umd.min.js.map +0 -1
  379. package/bundles/covalent-core-media.umd.js +0 -749
  380. package/bundles/covalent-core-media.umd.js.map +0 -1
  381. package/bundles/covalent-core-media.umd.min.js +0 -16
  382. package/bundles/covalent-core-media.umd.min.js.map +0 -1
  383. package/bundles/covalent-core-menu.umd.js +0 -69
  384. package/bundles/covalent-core-menu.umd.js.map +0 -1
  385. package/bundles/covalent-core-menu.umd.min.js +0 -2
  386. package/bundles/covalent-core-menu.umd.min.js.map +0 -1
  387. package/bundles/covalent-core-message.umd.js +0 -375
  388. package/bundles/covalent-core-message.umd.js.map +0 -1
  389. package/bundles/covalent-core-message.umd.min.js +0 -2
  390. package/bundles/covalent-core-message.umd.min.js.map +0 -1
  391. package/bundles/covalent-core-nav-links.umd.js +0 -197
  392. package/bundles/covalent-core-nav-links.umd.js.map +0 -1
  393. package/bundles/covalent-core-nav-links.umd.min.js +0 -2
  394. package/bundles/covalent-core-nav-links.umd.min.js.map +0 -1
  395. package/bundles/covalent-core-notifications.umd.js +0 -275
  396. package/bundles/covalent-core-notifications.umd.js.map +0 -1
  397. package/bundles/covalent-core-notifications.umd.min.js +0 -2
  398. package/bundles/covalent-core-notifications.umd.min.js.map +0 -1
  399. package/bundles/covalent-core-paging.umd.js +0 -491
  400. package/bundles/covalent-core-paging.umd.js.map +0 -1
  401. package/bundles/covalent-core-paging.umd.min.js +0 -2
  402. package/bundles/covalent-core-paging.umd.min.js.map +0 -1
  403. package/bundles/covalent-core-search.umd.js +0 -877
  404. package/bundles/covalent-core-search.umd.js.map +0 -1
  405. package/bundles/covalent-core-search.umd.min.js +0 -16
  406. package/bundles/covalent-core-search.umd.min.js.map +0 -1
  407. package/bundles/covalent-core-sidesheet.umd.js +0 -145
  408. package/bundles/covalent-core-sidesheet.umd.js.map +0 -1
  409. package/bundles/covalent-core-sidesheet.umd.min.js +0 -2
  410. package/bundles/covalent-core-sidesheet.umd.min.js.map +0 -1
  411. package/bundles/covalent-core-steps.umd.js +0 -1756
  412. package/bundles/covalent-core-steps.umd.js.map +0 -1
  413. package/bundles/covalent-core-steps.umd.min.js +0 -16
  414. package/bundles/covalent-core-steps.umd.min.js.map +0 -1
  415. package/bundles/covalent-core-tab-select.umd.js +0 -732
  416. package/bundles/covalent-core-tab-select.umd.js.map +0 -1
  417. package/bundles/covalent-core-tab-select.umd.min.js +0 -16
  418. package/bundles/covalent-core-tab-select.umd.min.js.map +0 -1
  419. package/bundles/covalent-core-user-profile.umd.js +0 -124
  420. package/bundles/covalent-core-user-profile.umd.js.map +0 -1
  421. package/bundles/covalent-core-user-profile.umd.min.js +0 -2
  422. package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
  423. package/bundles/covalent-core-virtual-scroll.umd.js +0 -785
  424. package/bundles/covalent-core-virtual-scroll.umd.js.map +0 -1
  425. package/bundles/covalent-core-virtual-scroll.umd.min.js +0 -16
  426. package/bundles/covalent-core-virtual-scroll.umd.min.js.map +0 -1
  427. package/bundles/covalent-core.umd.js +0 -9
  428. package/bundles/covalent-core.umd.js.map +0 -1
  429. package/bundles/covalent-core.umd.min.js +0 -2
  430. package/bundles/covalent-core.umd.min.js.map +0 -1
  431. package/chips/README.md +0 -99
  432. package/chips/_chips-theme.scss +0 -87
  433. package/chips/chips.component.d.ts +0 -287
  434. package/chips/chips.component.scss +0 -147
  435. package/chips/chips.module.d.ts +0 -2
  436. package/chips/covalent-core-chips.metadata.json +0 -1
  437. package/chips/package.json +0 -11
  438. package/chips/public-api.d.ts +0 -2
  439. package/common/covalent-core-common.metadata.json +0 -1
  440. package/covalent-core.metadata.json +0 -1
  441. package/data-table/README.md +0 -134
  442. package/data-table/_data-table-theme.scss +0 -115
  443. package/data-table/covalent-core-data-table.metadata.json +0 -1
  444. package/data-table/data-table-cell/data-table-cell.component.d.ts +0 -22
  445. package/data-table/data-table-cell/data-table-cell.component.scss +0 -58
  446. package/data-table/data-table-column/data-table-column.component.d.ts +0 -63
  447. package/data-table/data-table-column/data-table-column.component.scss +0 -80
  448. package/data-table/data-table-row/data-table-row.component.d.ts +0 -20
  449. package/data-table/data-table-row/data-table-row.component.scss +0 -12
  450. package/data-table/data-table-table/data-table-table.component.d.ts +0 -6
  451. package/data-table/data-table-table/data-table-table.component.scss +0 -7
  452. package/data-table/data-table.component.d.ts +0 -356
  453. package/data-table/data-table.component.scss +0 -93
  454. package/data-table/data-table.module.d.ts +0 -2
  455. package/data-table/directives/data-table-template.directive.d.ts +0 -6
  456. package/data-table/index.d.ts +0 -1
  457. package/data-table/package.json +0 -11
  458. package/data-table/public-api.d.ts +0 -8
  459. package/data-table/services/data-table.service.d.ts +0 -31
  460. package/dialogs/covalent-core-dialogs.metadata.json +0 -1
  461. package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
  462. package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
  463. package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
  464. package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
  465. package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
  466. package/esm2015/breadcrumbs/index.js +0 -7
  467. package/esm2015/breadcrumbs/public-api.js +0 -9
  468. package/esm2015/chips/chips.component.js +0 -1115
  469. package/esm2015/chips/chips.module.js +0 -23
  470. package/esm2015/chips/covalent-core-chips.js +0 -10
  471. package/esm2015/chips/index.js +0 -7
  472. package/esm2015/chips/public-api.js +0 -8
  473. package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
  474. package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
  475. package/esm2015/common/animations/common/interfaces.js +0 -18
  476. package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
  477. package/esm2015/common/animations/flash/flash.animation.js +0 -40
  478. package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
  479. package/esm2015/common/animations/jello/jello.animation.js +0 -44
  480. package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
  481. package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
  482. package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
  483. package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
  484. package/esm2015/common/behaviors/disabled.mixin.js +0 -63
  485. package/esm2015/common/common.module.js +0 -54
  486. package/esm2015/common/covalent-core-common.js +0 -12
  487. package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
  488. package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
  489. package/esm2015/common/forms/validators/validators.js +0 -58
  490. package/esm2015/common/functions/convert.js +0 -103
  491. package/esm2015/common/functions/download.js +0 -88
  492. package/esm2015/common/functions/file.js +0 -29
  493. package/esm2015/common/index.js +0 -7
  494. package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
  495. package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
  496. package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
  497. package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
  498. package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
  499. package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
  500. package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
  501. package/esm2015/common/public-api.js +0 -44
  502. package/esm2015/common/services/icon.service.js +0 -1109
  503. package/esm2015/common/services/router-path.service.js +0 -60
  504. package/esm2015/covalent-core.js +0 -10
  505. package/esm2015/data-table/covalent-core-data-table.js +0 -10
  506. package/esm2015/data-table/data-table-cell/data-table-cell.component.js +0 -88
  507. package/esm2015/data-table/data-table-column/data-table-column.component.js +0 -218
  508. package/esm2015/data-table/data-table-row/data-table-row.component.js +0 -132
  509. package/esm2015/data-table/data-table-table/data-table-table.component.js +0 -43
  510. package/esm2015/data-table/data-table.component.js +0 -1640
  511. package/esm2015/data-table/data-table.module.js +0 -39
  512. package/esm2015/data-table/directives/data-table-template.directive.js +0 -32
  513. package/esm2015/data-table/index.js +0 -7
  514. package/esm2015/data-table/public-api.js +0 -14
  515. package/esm2015/data-table/services/data-table.service.js +0 -116
  516. package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
  517. package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
  518. package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
  519. package/esm2015/dialogs/dialog.component.js +0 -58
  520. package/esm2015/dialogs/dialogs.module.js +0 -57
  521. package/esm2015/dialogs/index.js +0 -7
  522. package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
  523. package/esm2015/dialogs/public-api.js +0 -13
  524. package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
  525. package/esm2015/dialogs/services/dialog.service.js +0 -316
  526. package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
  527. package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
  528. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
  529. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
  530. package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
  531. package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
  532. package/esm2015/dynamic-menu/index.js +0 -7
  533. package/esm2015/dynamic-menu/public_api.js +0 -9
  534. package/esm2015/expansion-panel/covalent-core-expansion-panel.js +0 -10
  535. package/esm2015/expansion-panel/expansion-panel-group.component.js +0 -212
  536. package/esm2015/expansion-panel/expansion-panel.component.js +0 -272
  537. package/esm2015/expansion-panel/expansion-panel.module.js +0 -31
  538. package/esm2015/expansion-panel/index.js +0 -7
  539. package/esm2015/expansion-panel/public-api.js +0 -9
  540. package/esm2015/file/covalent-core-file.js +0 -10
  541. package/esm2015/file/directives/file-drop.directive.js +0 -191
  542. package/esm2015/file/directives/file-select.directive.js +0 -98
  543. package/esm2015/file/file-input/file-input.component.js +0 -186
  544. package/esm2015/file/file-upload/file-upload.component.js +0 -237
  545. package/esm2015/file/file.module.js +0 -35
  546. package/esm2015/file/index.js +0 -7
  547. package/esm2015/file/public-api.js +0 -12
  548. package/esm2015/file/services/file.service.js +0 -109
  549. package/esm2015/index.js +0 -7
  550. package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
  551. package/esm2015/json-formatter/index.js +0 -7
  552. package/esm2015/json-formatter/json-formatter.component.js +0 -338
  553. package/esm2015/json-formatter/json-formatter.module.js +0 -20
  554. package/esm2015/json-formatter/public-api.js +0 -8
  555. package/esm2015/layout/covalent-core-layout.js +0 -10
  556. package/esm2015/layout/index.js +0 -7
  557. package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
  558. package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
  559. package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
  560. package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
  561. package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
  562. package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
  563. package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
  564. package/esm2015/layout/layout-toggle.class.js +0 -188
  565. package/esm2015/layout/layout.component.js +0 -145
  566. package/esm2015/layout/layout.directives.js +0 -129
  567. package/esm2015/layout/layout.module.js +0 -64
  568. package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
  569. package/esm2015/layout/public-api.js +0 -18
  570. package/esm2015/loading/covalent-core-loading.js +0 -10
  571. package/esm2015/loading/directives/loading.directive.js +0 -231
  572. package/esm2015/loading/index.js +0 -7
  573. package/esm2015/loading/loading.component.js +0 -302
  574. package/esm2015/loading/loading.module.js +0 -30
  575. package/esm2015/loading/public-api.js +0 -11
  576. package/esm2015/loading/services/loading.factory.js +0 -297
  577. package/esm2015/loading/services/loading.service.js +0 -319
  578. package/esm2015/media/covalent-core-media.js +0 -10
  579. package/esm2015/media/directives/media-toggle.directive.js +0 -207
  580. package/esm2015/media/index.js +0 -7
  581. package/esm2015/media/media.module.js +0 -20
  582. package/esm2015/media/public-api.js +0 -9
  583. package/esm2015/media/services/media.service.js +0 -169
  584. package/esm2015/menu/covalent-core-menu.js +0 -10
  585. package/esm2015/menu/index.js +0 -7
  586. package/esm2015/menu/menu.component.js +0 -16
  587. package/esm2015/menu/menu.module.js +0 -22
  588. package/esm2015/menu/public-api.js +0 -8
  589. package/esm2015/message/covalent-core-message.js +0 -10
  590. package/esm2015/message/index.js +0 -7
  591. package/esm2015/message/message.component.js +0 -307
  592. package/esm2015/message/message.module.js +0 -21
  593. package/esm2015/message/public-api.js +0 -8
  594. package/esm2015/nav-links/covalent-core-nav-links.js +0 -10
  595. package/esm2015/nav-links/index.js +0 -7
  596. package/esm2015/nav-links/nav-links.component.js +0 -138
  597. package/esm2015/nav-links/nav-links.module.js +0 -37
  598. package/esm2015/nav-links/public-api.js +0 -8
  599. package/esm2015/notifications/covalent-core-notifications.js +0 -10
  600. package/esm2015/notifications/index.js +0 -7
  601. package/esm2015/notifications/notification-count.component.js +0 -191
  602. package/esm2015/notifications/notifications.module.js +0 -20
  603. package/esm2015/notifications/public-api.js +0 -8
  604. package/esm2015/paging/covalent-core-paging.js +0 -10
  605. package/esm2015/paging/index.js +0 -7
  606. package/esm2015/paging/paging-bar.component.js +0 -412
  607. package/esm2015/paging/paging.module.js +0 -20
  608. package/esm2015/paging/public-api.js +0 -8
  609. package/esm2015/search/covalent-core-search.js +0 -10
  610. package/esm2015/search/index.js +0 -7
  611. package/esm2015/search/public-api.js +0 -9
  612. package/esm2015/search/search-box/search-box.component.js +0 -270
  613. package/esm2015/search/search-input/search-input.component.js +0 -260
  614. package/esm2015/search/search.module.js +0 -23
  615. package/esm2015/sidesheet/covalent-core-sidesheet.js +0 -10
  616. package/esm2015/sidesheet/index.js +0 -7
  617. package/esm2015/sidesheet/public-api.js +0 -8
  618. package/esm2015/sidesheet/sidesheet.component.js +0 -72
  619. package/esm2015/sidesheet/sidesheet.module.js +0 -27
  620. package/esm2015/steps/covalent-core-steps.js +0 -10
  621. package/esm2015/steps/index.js +0 -7
  622. package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +0 -144
  623. package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -371
  624. package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -130
  625. package/esm2015/steps/public-api.js +0 -14
  626. package/esm2015/steps/step-body/step-body.component.js +0 -83
  627. package/esm2015/steps/step-header/step-header.component.js +0 -79
  628. package/esm2015/steps/step.component.js +0 -312
  629. package/esm2015/steps/steps.component.js +0 -234
  630. package/esm2015/steps/steps.module.js +0 -44
  631. package/esm2015/tab-select/covalent-core-tab-select.js +0 -10
  632. package/esm2015/tab-select/index.js +0 -7
  633. package/esm2015/tab-select/public-api.js +0 -9
  634. package/esm2015/tab-select/tab-option.component.js +0 -82
  635. package/esm2015/tab-select/tab-select.component.js +0 -291
  636. package/esm2015/tab-select/tab-select.module.js +0 -31
  637. package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
  638. package/esm2015/user-profile/index.js +0 -7
  639. package/esm2015/user-profile/public_api.js +0 -9
  640. package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
  641. package/esm2015/user-profile/user-profile.component.js +0 -26
  642. package/esm2015/user-profile/user-profile.module.js +0 -33
  643. package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +0 -10
  644. package/esm2015/virtual-scroll/index.js +0 -7
  645. package/esm2015/virtual-scroll/public-api.js +0 -9
  646. package/esm2015/virtual-scroll/virtual-scroll-container.component.js +0 -391
  647. package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +0 -25
  648. package/esm2015/virtual-scroll/virtual-scroll.module.js +0 -21
  649. package/expansion-panel/README.md +0 -116
  650. package/expansion-panel/_expansion-panel-theme.scss +0 -80
  651. package/expansion-panel/covalent-core-expansion-panel.metadata.json +0 -1
  652. package/expansion-panel/expansion-panel-group.component.d.ts +0 -31
  653. package/expansion-panel/expansion-panel-group.component.scss +0 -0
  654. package/expansion-panel/expansion-panel.component.d.ts +0 -82
  655. package/expansion-panel/expansion-panel.component.scss +0 -50
  656. package/expansion-panel/expansion-panel.module.d.ts +0 -2
  657. package/expansion-panel/index.d.ts +0 -1
  658. package/expansion-panel/package.json +0 -11
  659. package/expansion-panel/public-api.d.ts +0 -3
  660. package/fesm2015/covalent-core-breadcrumbs.js +0 -448
  661. package/fesm2015/covalent-core-chips.js +0 -1151
  662. package/fesm2015/covalent-core-chips.js.map +0 -1
  663. package/fesm2015/covalent-core-common.js.map +0 -1
  664. package/fesm2015/covalent-core-data-table.js +0 -2309
  665. package/fesm2015/covalent-core-data-table.js.map +0 -1
  666. package/fesm2015/covalent-core-dialogs.js +0 -1001
  667. package/fesm2015/covalent-core-dialogs.js.map +0 -1
  668. package/fesm2015/covalent-core-dynamic-menu.js +0 -204
  669. package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
  670. package/fesm2015/covalent-core-expansion-panel.js +0 -528
  671. package/fesm2015/covalent-core-expansion-panel.js.map +0 -1
  672. package/fesm2015/covalent-core-file.js +0 -855
  673. package/fesm2015/covalent-core-file.js.map +0 -1
  674. package/fesm2015/covalent-core-json-formatter.js +0 -377
  675. package/fesm2015/covalent-core-json-formatter.js.map +0 -1
  676. package/fesm2015/covalent-core-layout.js +0 -1663
  677. package/fesm2015/covalent-core-layout.js.map +0 -1
  678. package/fesm2015/covalent-core-loading.js +0 -1179
  679. package/fesm2015/covalent-core-loading.js.map +0 -1
  680. package/fesm2015/covalent-core-media.js +0 -411
  681. package/fesm2015/covalent-core-media.js.map +0 -1
  682. package/fesm2015/covalent-core-menu.js +0 -57
  683. package/fesm2015/covalent-core-menu.js.map +0 -1
  684. package/fesm2015/covalent-core-message.js +0 -347
  685. package/fesm2015/covalent-core-message.js.map +0 -1
  686. package/fesm2015/covalent-core-nav-links.js +0 -193
  687. package/fesm2015/covalent-core-nav-links.js.map +0 -1
  688. package/fesm2015/covalent-core-notifications.js +0 -228
  689. package/fesm2015/covalent-core-notifications.js.map +0 -1
  690. package/fesm2015/covalent-core-paging.js +0 -451
  691. package/fesm2015/covalent-core-paging.js.map +0 -1
  692. package/fesm2015/covalent-core-search.js +0 -564
  693. package/fesm2015/covalent-core-search.js.map +0 -1
  694. package/fesm2015/covalent-core-sidesheet.js +0 -118
  695. package/fesm2015/covalent-core-sidesheet.js.map +0 -1
  696. package/fesm2015/covalent-core-steps.js +0 -1384
  697. package/fesm2015/covalent-core-steps.js.map +0 -1
  698. package/fesm2015/covalent-core-tab-select.js +0 -416
  699. package/fesm2015/covalent-core-tab-select.js.map +0 -1
  700. package/fesm2015/covalent-core-user-profile.js +0 -111
  701. package/fesm2015/covalent-core-user-profile.js.map +0 -1
  702. package/fesm2015/covalent-core-virtual-scroll.js +0 -453
  703. package/fesm2015/covalent-core-virtual-scroll.js.map +0 -1
  704. package/fesm2015/covalent-core.js +0 -12
  705. package/fesm2015/covalent-core.js.map +0 -1
  706. package/file/covalent-core-file.metadata.json +0 -1
  707. package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
  708. package/layout/covalent-core-layout.metadata.json +0 -1
  709. package/loading/README.md +0 -180
  710. package/loading/_loading-theme.scss +0 -10
  711. package/loading/covalent-core-loading.d.ts +0 -4
  712. package/loading/covalent-core-loading.metadata.json +0 -1
  713. package/loading/directives/loading.directive.d.ts +0 -71
  714. package/loading/index.d.ts +0 -1
  715. package/loading/loading.component.d.ts +0 -87
  716. package/loading/loading.component.scss +0 -42
  717. package/loading/loading.module.d.ts +0 -2
  718. package/loading/package.json +0 -11
  719. package/loading/public-api.d.ts +0 -5
  720. package/loading/services/loading.factory.d.ts +0 -66
  721. package/loading/services/loading.service.d.ts +0 -118
  722. package/media/covalent-core-media.d.ts +0 -4
  723. package/media/covalent-core-media.metadata.json +0 -1
  724. package/media/directives/media-toggle.directive.d.ts +0 -42
  725. package/media/index.d.ts +0 -1
  726. package/media/media.module.d.ts +0 -2
  727. package/media/package.json +0 -11
  728. package/media/public-api.d.ts +0 -3
  729. package/media/services/media.service.d.ts +0 -31
  730. package/menu/covalent-core-menu.metadata.json +0 -1
  731. package/message/covalent-core-message.metadata.json +0 -1
  732. package/nav-links/README.md +0 -1
  733. package/nav-links/covalent-core-nav-links.d.ts +0 -4
  734. package/nav-links/covalent-core-nav-links.metadata.json +0 -1
  735. package/nav-links/index.d.ts +0 -1
  736. package/nav-links/nav-links.component.d.ts +0 -51
  737. package/nav-links/nav-links.component.scss +0 -15
  738. package/nav-links/nav-links.module.d.ts +0 -2
  739. package/nav-links/package.json +0 -11
  740. package/nav-links/public-api.d.ts +0 -2
  741. package/notifications/README.md +0 -69
  742. package/notifications/_notification-count-theme.scss +0 -27
  743. package/notifications/covalent-core-notifications.d.ts +0 -4
  744. package/notifications/covalent-core-notifications.metadata.json +0 -1
  745. package/notifications/index.d.ts +0 -1
  746. package/notifications/notification-count.component.d.ts +0 -74
  747. package/notifications/notification-count.component.scss +0 -90
  748. package/notifications/notifications.module.d.ts +0 -2
  749. package/notifications/package.json +0 -11
  750. package/notifications/public-api.d.ts +0 -2
  751. package/paging/README.md +0 -141
  752. package/paging/_paging-bar-theme.scss +0 -26
  753. package/paging/covalent-core-paging.d.ts +0 -4
  754. package/paging/covalent-core-paging.metadata.json +0 -1
  755. package/paging/index.d.ts +0 -1
  756. package/paging/package.json +0 -11
  757. package/paging/paging-bar.component.d.ts +0 -115
  758. package/paging/paging-bar.component.scss +0 -23
  759. package/paging/paging.module.d.ts +0 -2
  760. package/paging/public-api.d.ts +0 -2
  761. package/schematics/collection.json +0 -11
  762. package/schematics/components.js +0 -124
  763. package/schematics/components.js.map +0 -1
  764. package/schematics/migration.json +0 -10
  765. package/schematics/ng-add/index.js +0 -58
  766. package/schematics/ng-add/index.js.map +0 -1
  767. package/schematics/ng-add/schema.js +0 -3
  768. package/schematics/ng-add/schema.js.map +0 -1
  769. package/schematics/ng-add/schema.json +0 -81
  770. package/schematics/ng-update/index.js +0 -52
  771. package/schematics/ng-update/index.js.map +0 -1
  772. package/schematics/ng-update/target-version.js +0 -8
  773. package/schematics/ng-update/target-version.js.map +0 -1
  774. package/schematics/version-names.js +0 -6
  775. package/schematics/version-names.js.map +0 -1
  776. package/search/covalent-core-search.metadata.json +0 -1
  777. package/sidesheet/README.md +0 -68
  778. package/sidesheet/covalent-core-sidesheet.d.ts +0 -4
  779. package/sidesheet/covalent-core-sidesheet.metadata.json +0 -1
  780. package/sidesheet/index.d.ts +0 -1
  781. package/sidesheet/package.json +0 -11
  782. package/sidesheet/public-api.d.ts +0 -2
  783. package/sidesheet/sidesheet.component.d.ts +0 -13
  784. package/sidesheet/sidesheet.component.scss +0 -101
  785. package/sidesheet/sidesheet.module.d.ts +0 -2
  786. package/steps/README.md +0 -159
  787. package/steps/_steps-theme.scss +0 -108
  788. package/steps/covalent-core-steps.d.ts +0 -4
  789. package/steps/covalent-core-steps.metadata.json +0 -1
  790. package/steps/index.d.ts +0 -1
  791. package/steps/nav/README.md +0 -90
  792. package/steps/nav/nav-step-link/nav-step-link.component.d.ts +0 -42
  793. package/steps/nav/nav-step-link/nav-step-link.component.scss +0 -17
  794. package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.d.ts +0 -79
  795. package/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.scss +0 -83
  796. package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.d.ts +0 -18
  797. package/steps/nav/nav-steps-vertical/nav-steps-vertical.component.scss +0 -18
  798. package/steps/package.json +0 -11
  799. package/steps/public-api.d.ts +0 -8
  800. package/steps/step-body/step-body.component.d.ts +0 -25
  801. package/steps/step-body/step-body.component.scss +0 -29
  802. package/steps/step-header/step-header.component.d.ts +0 -35
  803. package/steps/step-header/step-header.component.scss +0 -90
  804. package/steps/step.component.d.ts +0 -97
  805. package/steps/steps.component.d.ts +0 -60
  806. package/steps/steps.component.scss +0 -55
  807. package/steps/steps.module.d.ts +0 -2
  808. package/tab-select/README.md +0 -93
  809. package/tab-select/covalent-core-tab-select.d.ts +0 -4
  810. package/tab-select/covalent-core-tab-select.metadata.json +0 -1
  811. package/tab-select/index.d.ts +0 -1
  812. package/tab-select/package.json +0 -11
  813. package/tab-select/public-api.d.ts +0 -3
  814. package/tab-select/tab-option.component.d.ts +0 -20
  815. package/tab-select/tab-option.component.scss +0 -0
  816. package/tab-select/tab-select.component.d.ts +0 -62
  817. package/tab-select/tab-select.component.scss +0 -3
  818. package/tab-select/tab-select.module.d.ts +0 -2
  819. package/user-profile/covalent-core-user-profile.metadata.json +0 -1
  820. package/virtual-scroll/README.md +0 -68
  821. package/virtual-scroll/covalent-core-virtual-scroll.d.ts +0 -4
  822. package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +0 -1
  823. package/virtual-scroll/index.d.ts +0 -1
  824. package/virtual-scroll/package.json +0 -11
  825. package/virtual-scroll/public-api.d.ts +0 -3
  826. package/virtual-scroll/virtual-scroll-container.component.d.ts +0 -73
  827. package/virtual-scroll/virtual-scroll-container.component.scss +0 -7
  828. package/virtual-scroll/virtual-scroll-row.directive.d.ts +0 -5
  829. package/virtual-scroll/virtual-scroll.module.d.ts +0 -2
@@ -1,1534 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/portal'), require('@angular/cdk/overlay'), require('@angular/material/progress-bar'), require('@angular/material/progress-spinner'), require('@covalent/core/common'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@covalent/core/loading', ['exports', '@angular/core', '@angular/common', '@angular/cdk/portal', '@angular/cdk/overlay', '@angular/material/progress-bar', '@angular/material/progress-spinner', '@covalent/core/common', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.loading = {}), global.ng.core, global.ng.common, global.ng.cdk.portal, global.ng.cdk.overlay, global.ng.material.progressBar, global.ng.material.progressSpinner, global.covalent.core.common, global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, core, common$1, portal, overlay, progressBar, progressSpinner, common, rxjs, operators) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
- var extendStatics = function (d, b) {
23
- extendStatics = Object.setPrototypeOf ||
24
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
- function (d, b) { for (var p in b)
26
- if (Object.prototype.hasOwnProperty.call(b, p))
27
- d[p] = b[p]; };
28
- return extendStatics(d, b);
29
- };
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
- var __assign = function () {
36
- __assign = Object.assign || function __assign(t) {
37
- for (var s, i = 1, n = arguments.length; i < n; i++) {
38
- s = arguments[i];
39
- for (var p in s)
40
- if (Object.prototype.hasOwnProperty.call(s, p))
41
- t[p] = s[p];
42
- }
43
- return t;
44
- };
45
- return __assign.apply(this, arguments);
46
- };
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s)
50
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
- t[p] = s[p];
52
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
- t[p[i]] = s[p[i]];
56
- }
57
- return t;
58
- }
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
- r = Reflect.decorate(decorators, target, key, desc);
63
- else
64
- for (var i = decorators.length - 1; i >= 0; i--)
65
- if (d = decorators[i])
66
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
- return c > 3 && r && Object.defineProperty(target, key, r), r;
68
- }
69
- function __param(paramIndex, decorator) {
70
- return function (target, key) { decorator(target, key, paramIndex); };
71
- }
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
- return Reflect.metadata(metadataKey, metadataValue);
75
- }
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- return new (P || (P = Promise))(function (resolve, reject) {
79
- function fulfilled(value) { try {
80
- step(generator.next(value));
81
- }
82
- catch (e) {
83
- reject(e);
84
- } }
85
- function rejected(value) { try {
86
- step(generator["throw"](value));
87
- }
88
- catch (e) {
89
- reject(e);
90
- } }
91
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
- step((generator = generator.apply(thisArg, _arguments || [])).next());
93
- });
94
- }
95
- function __generator(thisArg, body) {
96
- var _ = { label: 0, sent: function () { if (t[0] & 1)
97
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
- function verb(n) { return function (v) { return step([n, v]); }; }
100
- function step(op) {
101
- if (f)
102
- throw new TypeError("Generator is already executing.");
103
- while (_)
104
- try {
105
- 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)
106
- return t;
107
- if (y = 0, t)
108
- op = [op[0] & 2, t.value];
109
- switch (op[0]) {
110
- case 0:
111
- case 1:
112
- t = op;
113
- break;
114
- case 4:
115
- _.label++;
116
- return { value: op[1], done: false };
117
- case 5:
118
- _.label++;
119
- y = op[1];
120
- op = [0];
121
- continue;
122
- case 7:
123
- op = _.ops.pop();
124
- _.trys.pop();
125
- continue;
126
- default:
127
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
- _ = 0;
129
- continue;
130
- }
131
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
- _.label = op[1];
133
- break;
134
- }
135
- if (op[0] === 6 && _.label < t[1]) {
136
- _.label = t[1];
137
- t = op;
138
- break;
139
- }
140
- if (t && _.label < t[2]) {
141
- _.label = t[2];
142
- _.ops.push(op);
143
- break;
144
- }
145
- if (t[2])
146
- _.ops.pop();
147
- _.trys.pop();
148
- continue;
149
- }
150
- op = body.call(thisArg, _);
151
- }
152
- catch (e) {
153
- op = [6, e];
154
- y = 0;
155
- }
156
- finally {
157
- f = t = 0;
158
- }
159
- if (op[0] & 5)
160
- throw op[1];
161
- return { value: op[0] ? op[1] : void 0, done: true };
162
- }
163
- }
164
- var __createBinding = Object.create ? (function (o, m, k, k2) {
165
- if (k2 === undefined)
166
- k2 = k;
167
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
- }) : (function (o, m, k, k2) {
169
- if (k2 === undefined)
170
- k2 = k;
171
- o[k2] = m[k];
172
- });
173
- function __exportStar(m, o) {
174
- for (var p in m)
175
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
176
- __createBinding(o, m, p);
177
- }
178
- function __values(o) {
179
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
- if (m)
181
- return m.call(o);
182
- if (o && typeof o.length === "number")
183
- return {
184
- next: function () {
185
- if (o && i >= o.length)
186
- o = void 0;
187
- return { value: o && o[i++], done: !o };
188
- }
189
- };
190
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
- }
192
- function __read(o, n) {
193
- var m = typeof Symbol === "function" && o[Symbol.iterator];
194
- if (!m)
195
- return o;
196
- var i = m.call(o), r, ar = [], e;
197
- try {
198
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
- ar.push(r.value);
200
- }
201
- catch (error) {
202
- e = { error: error };
203
- }
204
- finally {
205
- try {
206
- if (r && !r.done && (m = i["return"]))
207
- m.call(i);
208
- }
209
- finally {
210
- if (e)
211
- throw e.error;
212
- }
213
- }
214
- return ar;
215
- }
216
- function __spread() {
217
- for (var ar = [], i = 0; i < arguments.length; i++)
218
- ar = ar.concat(__read(arguments[i]));
219
- return ar;
220
- }
221
- function __spreadArrays() {
222
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
- s += arguments[i].length;
224
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
- r[k] = a[j];
227
- return r;
228
- }
229
- ;
230
- function __await(v) {
231
- return this instanceof __await ? (this.v = v, this) : new __await(v);
232
- }
233
- function __asyncGenerator(thisArg, _arguments, generator) {
234
- if (!Symbol.asyncIterator)
235
- throw new TypeError("Symbol.asyncIterator is not defined.");
236
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
- function verb(n) { if (g[n])
239
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
- function resume(n, v) { try {
241
- step(g[n](v));
242
- }
243
- catch (e) {
244
- settle(q[0][3], e);
245
- } }
246
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
- function fulfill(value) { resume("next", value); }
248
- function reject(value) { resume("throw", value); }
249
- function settle(f, v) { if (f(v), q.shift(), q.length)
250
- resume(q[0][0], q[0][1]); }
251
- }
252
- function __asyncDelegator(o) {
253
- var i, p;
254
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
- 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; }
256
- }
257
- function __asyncValues(o) {
258
- if (!Symbol.asyncIterator)
259
- throw new TypeError("Symbol.asyncIterator is not defined.");
260
- var m = o[Symbol.asyncIterator], i;
261
- 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);
262
- 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); }); }; }
263
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
- }
265
- function __makeTemplateObject(cooked, raw) {
266
- if (Object.defineProperty) {
267
- Object.defineProperty(cooked, "raw", { value: raw });
268
- }
269
- else {
270
- cooked.raw = raw;
271
- }
272
- return cooked;
273
- }
274
- ;
275
- var __setModuleDefault = Object.create ? (function (o, v) {
276
- Object.defineProperty(o, "default", { enumerable: true, value: v });
277
- }) : function (o, v) {
278
- o["default"] = v;
279
- };
280
- function __importStar(mod) {
281
- if (mod && mod.__esModule)
282
- return mod;
283
- var result = {};
284
- if (mod != null)
285
- for (var k in mod)
286
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
287
- __createBinding(result, mod, k);
288
- __setModuleDefault(result, mod);
289
- return result;
290
- }
291
- function __importDefault(mod) {
292
- return (mod && mod.__esModule) ? mod : { default: mod };
293
- }
294
- function __classPrivateFieldGet(receiver, privateMap) {
295
- if (!privateMap.has(receiver)) {
296
- throw new TypeError("attempted to get private field on non-instance");
297
- }
298
- return privateMap.get(receiver);
299
- }
300
- function __classPrivateFieldSet(receiver, privateMap, value) {
301
- if (!privateMap.has(receiver)) {
302
- throw new TypeError("attempted to set private field on non-instance");
303
- }
304
- privateMap.set(receiver, value);
305
- return value;
306
- }
307
-
308
- /**
309
- * @fileoverview added by tsickle
310
- * Generated from: loading.component.ts
311
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
312
- */
313
- /** @enum {string} */
314
- var LoadingType = {
315
- Circular: "circular",
316
- Linear: "linear",
317
- };
318
- /** @enum {string} */
319
- var LoadingMode = {
320
- Determinate: "determinate",
321
- Indeterminate: "indeterminate",
322
- };
323
- /** @enum {string} */
324
- var LoadingStrategy = {
325
- Overlay: "overlay",
326
- Replace: "replace",
327
- };
328
- /** @enum {string} */
329
- var LoadingStyle = {
330
- FullScreen: "fullscreen",
331
- Overlay: "overlay",
332
- None: "none",
333
- };
334
- /** @type {?} */
335
- var TD_CIRCLE_DIAMETER = 100;
336
- var TdLoadingComponent = /** @class */ (function () {
337
- /**
338
- * @param {?} _elementRef
339
- * @param {?} _changeDetectorRef
340
- */
341
- function TdLoadingComponent(_elementRef, _changeDetectorRef) {
342
- this._elementRef = _elementRef;
343
- this._changeDetectorRef = _changeDetectorRef;
344
- this._mode = LoadingMode.Indeterminate;
345
- this._defaultMode = LoadingMode.Indeterminate;
346
- this._value = 0;
347
- this._circleDiameter = TD_CIRCLE_DIAMETER;
348
- /**
349
- * Flag for animation
350
- */
351
- this.animation = false;
352
- this.style = LoadingStyle.None;
353
- /**
354
- * type: LoadingType
355
- * Sets type of [TdLoadingComponent] rendered.
356
- */
357
- this.type = LoadingType.Circular;
358
- /**
359
- * color: primary' | 'accent' | 'warn'
360
- * Sets theme color of [TdLoadingComponent] rendered.
361
- */
362
- this.color = 'primary';
363
- }
364
- Object.defineProperty(TdLoadingComponent.prototype, "mode", {
365
- /**
366
- * @return {?}
367
- */
368
- get: function () {
369
- return this._mode;
370
- },
371
- /**
372
- * Sets mode of [TdLoadingComponent] to LoadingMode.Determinate or LoadingMode.Indeterminate
373
- * @param {?} mode
374
- * @return {?}
375
- */
376
- set: function (mode) {
377
- this._defaultMode = mode;
378
- },
379
- enumerable: false,
380
- configurable: true
381
- });
382
- Object.defineProperty(TdLoadingComponent.prototype, "value", {
383
- /**
384
- * @return {?}
385
- */
386
- get: function () {
387
- return this._value;
388
- },
389
- /**
390
- * Sets value of [TdLoadingComponent] if mode is 'LoadingMode.Determinate'
391
- * @param {?} value
392
- * @return {?}
393
- */
394
- set: function (value) {
395
- this._value = value;
396
- // Check for changes for `OnPush` change detection
397
- this._changeDetectorRef.markForCheck();
398
- },
399
- enumerable: false,
400
- configurable: true
401
- });
402
- /**
403
- * @return {?}
404
- */
405
- TdLoadingComponent.prototype.ngDoCheck = function () {
406
- // When overlay is used and the host width has a value greater than 1px
407
- // set the circle diameter when possible incase the loading component was rendered in a hidden state
408
- if (this.isOverlay() && this._hostHeight() > 1 && this.animation) {
409
- this._setCircleDiameter();
410
- this._changeDetectorRef.markForCheck();
411
- }
412
- };
413
- /**
414
- * @return {?}
415
- */
416
- TdLoadingComponent.prototype.getHeight = function () {
417
- // Ignore height if style is `overlay` or `fullscreen`.
418
- // Add height if child elements have a height and style is `none`, else return default height.
419
- if (this.isOverlay() || this.isFullScreen()) {
420
- return undefined;
421
- }
422
- else {
423
- return this.height ? this.height + "px" : '150px';
424
- }
425
- };
426
- /**
427
- * @return {?}
428
- */
429
- TdLoadingComponent.prototype.getCircleDiameter = function () {
430
- return this._circleDiameter;
431
- };
432
- /**
433
- * @return {?}
434
- */
435
- TdLoadingComponent.prototype.getCircleStrokeWidth = function () {
436
- // we calculate the stroke width by setting it as 10% of its diameter
437
- /** @type {?} */
438
- var strokeWidth = this.getCircleDiameter() / 10;
439
- return Math.abs(strokeWidth);
440
- };
441
- /**
442
- * @return {?}
443
- */
444
- TdLoadingComponent.prototype.isCircular = function () {
445
- return this.type === LoadingType.Circular;
446
- };
447
- /**
448
- * @return {?}
449
- */
450
- TdLoadingComponent.prototype.isLinear = function () {
451
- return this.type === LoadingType.Linear;
452
- };
453
- /**
454
- * @return {?}
455
- */
456
- TdLoadingComponent.prototype.isFullScreen = function () {
457
- return this.style === LoadingStyle.FullScreen;
458
- };
459
- /**
460
- * @return {?}
461
- */
462
- TdLoadingComponent.prototype.isOverlay = function () {
463
- return this.style === LoadingStyle.Overlay;
464
- };
465
- /**
466
- * Starts in animation and returns an observable for completition event.
467
- * @return {?}
468
- */
469
- TdLoadingComponent.prototype.show = function () {
470
- /* need to switch back to the selected mode, so we have saved it in another variable
471
- * and then recover it. (issue with protractor)
472
- */
473
- this._mode = this._defaultMode;
474
- // Set values before the animations starts
475
- this._setCircleDiameter();
476
- // Check for changes for `OnPush` change detection
477
- this.animation = true;
478
- this._changeDetectorRef.markForCheck();
479
- };
480
- /**
481
- * Starts out animation and returns an observable for completition event.
482
- * @return {?}
483
- */
484
- TdLoadingComponent.prototype.hide = function () {
485
- this.animation = false;
486
- /* need to switch back and forth from determinate/indeterminate so the setInterval()
487
- * inside mat-progress-spinner stops and protractor doesnt timeout waiting to sync.
488
- */
489
- this._mode = LoadingMode.Determinate;
490
- // Check for changes for `OnPush` change detection
491
- /* little hack to reset the loader value and animation before removing it from DOM
492
- * else, the loader will appear with prev value when its registered again
493
- * and will do an animation going prev value to 0.
494
- */
495
- this.value = 0;
496
- // Check for changes for `OnPush` change detection
497
- this._changeDetectorRef.markForCheck();
498
- };
499
- /**
500
- * Calculate the proper diameter for the circle and set it
501
- * @private
502
- * @return {?}
503
- */
504
- TdLoadingComponent.prototype._setCircleDiameter = function () {
505
- // we set a default diameter of 100 since this is the default in material
506
- /** @type {?} */
507
- var diameter = TD_CIRCLE_DIAMETER;
508
- // if height is provided, then we take that as diameter
509
- if (this.height) {
510
- diameter = this.height;
511
- // else if its not provided, then we take the host height
512
- }
513
- else if (this.height === undefined) {
514
- diameter = this._hostHeight();
515
- }
516
- // if the diameter is over TD_CIRCLE_DIAMETER, we set TD_CIRCLE_DIAMETER
517
- if (!!diameter && diameter <= TD_CIRCLE_DIAMETER) {
518
- this._circleDiameter = Math.floor(diameter);
519
- }
520
- else {
521
- this._circleDiameter = TD_CIRCLE_DIAMETER;
522
- }
523
- };
524
- /**
525
- * Returns the host height of the loading component
526
- * @private
527
- * @return {?}
528
- */
529
- TdLoadingComponent.prototype._hostHeight = function () {
530
- if (( /** @type {?} */(this._elementRef.nativeElement))) {
531
- return (( /** @type {?} */(this._elementRef.nativeElement))).getBoundingClientRect().height;
532
- }
533
- return 0;
534
- };
535
- return TdLoadingComponent;
536
- }());
537
- TdLoadingComponent.decorators = [
538
- { type: core.Component, args: [{
539
- selector: 'td-loading',
540
- template: "<div\n class=\"td-loading-wrapper\"\n [style.min-height]=\"getHeight()\"\n [class.td-overlay-circular]=\"(isOverlay() || isFullScreen()) && !isLinear()\"\n [class.td-overlay]=\"isOverlay() || isFullScreen()\"\n [class.td-fullscreen]=\"isFullScreen()\"\n>\n <div [@tdFadeInOut]=\"animation\" [style.min-height]=\"getHeight()\" class=\"td-loading\">\n <mat-progress-spinner\n *ngIf=\"isCircular()\"\n [mode]=\"mode\"\n [value]=\"value\"\n [color]=\"color\"\n [diameter]=\"getCircleDiameter()\"\n [strokeWidth]=\"getCircleStrokeWidth()\"\n ></mat-progress-spinner>\n <mat-progress-bar *ngIf=\"isLinear()\" [mode]=\"mode\" [value]=\"value\" [color]=\"color\"></mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]=\"content\"></ng-template>\n</div>\n",
541
- animations: [common.tdFadeInOutAnimation],
542
- styles: [".td-loading-wrapper{display:block;position:relative}.td-loading-wrapper.td-fullscreen{position:inherit}.td-loading-wrapper .td-loading{-ms-flex:1;-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:center;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex:1;flex-direction:row;justify-content:center;max-width:100%}.td-loading-wrapper.td-overlay .td-loading{left:0;margin:0;position:absolute;right:0;top:0;z-index:1000}.td-loading-wrapper.td-overlay .td-loading mat-progress-bar{left:0;position:absolute;right:0;top:0}.td-loading-wrapper.td-overlay-circular .td-loading{bottom:0}"]
543
- }] }
544
- ];
545
- /** @nocollapse */
546
- TdLoadingComponent.ctorParameters = function () { return [
547
- { type: core.ElementRef },
548
- { type: core.ChangeDetectorRef }
549
- ]; };
550
- if (false) {
551
- /**
552
- * @type {?}
553
- * @private
554
- */
555
- TdLoadingComponent.prototype._mode;
556
- /**
557
- * @type {?}
558
- * @private
559
- */
560
- TdLoadingComponent.prototype._defaultMode;
561
- /**
562
- * @type {?}
563
- * @private
564
- */
565
- TdLoadingComponent.prototype._value;
566
- /**
567
- * @type {?}
568
- * @private
569
- */
570
- TdLoadingComponent.prototype._circleDiameter;
571
- /**
572
- * Flag for animation
573
- * @type {?}
574
- */
575
- TdLoadingComponent.prototype.animation;
576
- /**
577
- * Content injected into loading component.
578
- * @type {?}
579
- */
580
- TdLoadingComponent.prototype.content;
581
- /** @type {?} */
582
- TdLoadingComponent.prototype.style;
583
- /**
584
- * height: number
585
- * Sets height of [TdLoadingComponent].
586
- * @type {?}
587
- */
588
- TdLoadingComponent.prototype.height;
589
- /**
590
- * type: LoadingType
591
- * Sets type of [TdLoadingComponent] rendered.
592
- * @type {?}
593
- */
594
- TdLoadingComponent.prototype.type;
595
- /**
596
- * color: primary' | 'accent' | 'warn'
597
- * Sets theme color of [TdLoadingComponent] rendered.
598
- * @type {?}
599
- */
600
- TdLoadingComponent.prototype.color;
601
- /**
602
- * @type {?}
603
- * @private
604
- */
605
- TdLoadingComponent.prototype._elementRef;
606
- /**
607
- * @type {?}
608
- * @private
609
- */
610
- TdLoadingComponent.prototype._changeDetectorRef;
611
- }
612
-
613
- /**
614
- * @fileoverview added by tsickle
615
- * Generated from: services/loading.factory.ts
616
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
617
- */
618
- /**
619
- * @record
620
- */
621
- function IInternalLoadingOptions() { }
622
- if (false) {
623
- /** @type {?|undefined} */
624
- IInternalLoadingOptions.prototype.height;
625
- /** @type {?|undefined} */
626
- IInternalLoadingOptions.prototype.style;
627
- }
628
- /**
629
- * @record
630
- */
631
- function ILoadingRef() { }
632
- if (false) {
633
- /** @type {?} */
634
- ILoadingRef.prototype.observable;
635
- /** @type {?} */
636
- ILoadingRef.prototype.componentRef;
637
- /** @type {?|undefined} */
638
- ILoadingRef.prototype.subject;
639
- /** @type {?|undefined} */
640
- ILoadingRef.prototype.times;
641
- }
642
- /**
643
- * NOTE: \@internal usage only.
644
- */
645
- var TdLoadingFactory = /** @class */ (function () {
646
- /**
647
- * @param {?} _componentFactoryResolver
648
- * @param {?} _overlay
649
- * @param {?} _injector
650
- */
651
- function TdLoadingFactory(_componentFactoryResolver, _overlay, _injector) {
652
- this._componentFactoryResolver = _componentFactoryResolver;
653
- this._overlay = _overlay;
654
- this._injector = _injector;
655
- }
656
- /**
657
- * Uses material `Overlay` services to create a DOM element and attach the loading component
658
- * into it. Leveraging the state and configuration from it.
659
- *
660
- * Saves a reference in context to be called when registering/resolving the loading element.
661
- * @param {?} options
662
- * @return {?}
663
- */
664
- TdLoadingFactory.prototype.createFullScreenComponent = function (options) {
665
- var _this = this;
666
- (( /** @type {?} */(options))).height = undefined;
667
- (( /** @type {?} */(options))).style = LoadingStyle.FullScreen;
668
- /** @type {?} */
669
- var loadingRef = this._initializeContext();
670
- /** @type {?} */
671
- var loading = false;
672
- /** @type {?} */
673
- var overlayRef;
674
- loadingRef.observable.pipe(operators.distinctUntilChanged()).subscribe(( /**
675
- * @param {?} registered
676
- * @return {?}
677
- */function (registered) {
678
- if (registered > 0 && !loading) {
679
- loading = true;
680
- overlayRef = _this._createOverlay();
681
- loadingRef.componentRef = overlayRef.attach(new portal.ComponentPortal(TdLoadingComponent));
682
- _this._mapOptions(options, loadingRef.componentRef.instance);
683
- loadingRef.componentRef.instance.show();
684
- loadingRef.componentRef.changeDetectorRef.detectChanges();
685
- }
686
- else if (registered <= 0 && loading) {
687
- loading = false;
688
- loadingRef.componentRef.instance.hide();
689
- loadingRef.componentRef.destroy();
690
- overlayRef.detach();
691
- overlayRef.dispose();
692
- }
693
- }));
694
- return loadingRef;
695
- };
696
- /**
697
- * Creates a loading component dynamically and attaches it into the given viewContainerRef.
698
- * Leverages TemplatePortals from material to inject the template inside of it so it fits
699
- * perfectly when overlaying it.
700
- *
701
- * Saves a reference in context to be called when registering/resolving the loading element.
702
- * @param {?} options
703
- * @param {?} viewContainerRef
704
- * @param {?} templateRef
705
- * @return {?}
706
- */
707
- TdLoadingFactory.prototype.createOverlayComponent = function (options, viewContainerRef, templateRef) {
708
- (( /** @type {?} */(options))).height = undefined;
709
- (( /** @type {?} */(options))).style = LoadingStyle.Overlay;
710
- /** @type {?} */
711
- var loadingRef = this._createComponent(options);
712
- /** @type {?} */
713
- var loading = false;
714
- loadingRef.componentRef.instance.content = new portal.TemplatePortal(templateRef, viewContainerRef);
715
- viewContainerRef.clear();
716
- viewContainerRef.insert(loadingRef.componentRef.hostView, 0);
717
- loadingRef.observable.pipe(operators.distinctUntilChanged()).subscribe(( /**
718
- * @param {?} registered
719
- * @return {?}
720
- */function (registered) {
721
- if (registered > 0 && !loading) {
722
- loading = true;
723
- loadingRef.componentRef.instance.show();
724
- }
725
- else if (registered <= 0 && loading) {
726
- loading = false;
727
- loadingRef.componentRef.instance.hide();
728
- }
729
- }));
730
- return loadingRef;
731
- };
732
- /**
733
- * Creates a loading component dynamically and attaches it into the given viewContainerRef.
734
- * Replaces the template with the loading component depending if it was registered or resolved.
735
- *
736
- * Saves a reference in context to be called when registering/resolving the loading element.
737
- * @param {?} options
738
- * @param {?} viewContainerRef
739
- * @param {?} templateRef
740
- * @param {?} context
741
- * @return {?}
742
- */
743
- TdLoadingFactory.prototype.createReplaceComponent = function (options, viewContainerRef, templateRef, context) {
744
- /** @type {?} */
745
- var nativeElement = ( /** @type {?} */(templateRef.elementRef.nativeElement));
746
- (( /** @type {?} */(options))).height = nativeElement.nextElementSibling
747
- ? nativeElement.nextElementSibling.scrollHeight
748
- : undefined;
749
- (( /** @type {?} */(options))).style = LoadingStyle.None;
750
- /** @type {?} */
751
- var loadingRef = this._createComponent(options);
752
- /** @type {?} */
753
- var loading = false;
754
- // passing context so when the template is attached, we can keep the reference of the variables
755
- /** @type {?} */
756
- var contentRef = viewContainerRef.createEmbeddedView(templateRef, context);
757
- loadingRef.observable.pipe(operators.distinctUntilChanged()).subscribe(( /**
758
- * @param {?} registered
759
- * @return {?}
760
- */function (registered) {
761
- if (registered > 0 && !loading) {
762
- loading = true;
763
- // detach the content and attach the loader if loader is there
764
- /** @type {?} */
765
- var index = viewContainerRef.indexOf(loadingRef.componentRef.hostView);
766
- if (index < 0) {
767
- viewContainerRef.detach(viewContainerRef.indexOf(contentRef));
768
- viewContainerRef.insert(loadingRef.componentRef.hostView, 0);
769
- }
770
- loadingRef.componentRef.instance.show();
771
- }
772
- else if (registered <= 0 && loading) {
773
- loading = false;
774
- loadingRef.componentRef.instance.hide();
775
- // detach loader and attach the content if content is there
776
- /** @type {?} */
777
- var index = viewContainerRef.indexOf(contentRef);
778
- if (index < 0) {
779
- viewContainerRef.detach(viewContainerRef.indexOf(loadingRef.componentRef.hostView));
780
- viewContainerRef.insert(contentRef, 0);
781
- }
782
- /**
783
- * Need to call "markForCheck" and "detectChanges" on attached template, so its detected by parent component when attached
784
- * with "OnPush" change detection
785
- */
786
- contentRef.detectChanges();
787
- contentRef.markForCheck();
788
- }
789
- }));
790
- return loadingRef;
791
- };
792
- /**
793
- * Creates a fullscreen overlay for the loading usage.
794
- * @private
795
- * @return {?}
796
- */
797
- TdLoadingFactory.prototype._createOverlay = function () {
798
- /** @type {?} */
799
- var state = new overlay.OverlayConfig();
800
- state.hasBackdrop = false;
801
- state.positionStrategy = this._overlay.position().global().centerHorizontally().centerVertically();
802
- return this._overlay.create(state);
803
- };
804
- /**
805
- * Creates a generic component dynamically waiting to be attached to a viewContainerRef.
806
- * @private
807
- * @param {?} options
808
- * @return {?}
809
- */
810
- TdLoadingFactory.prototype._createComponent = function (options) {
811
- /** @type {?} */
812
- var compRef = this._initializeContext();
813
- compRef.componentRef = this._componentFactoryResolver
814
- .resolveComponentFactory(TdLoadingComponent)
815
- .create(this._injector);
816
- this._mapOptions(options, compRef.componentRef.instance);
817
- return compRef;
818
- };
819
- /**
820
- * Initialize context for loading component.
821
- * @private
822
- * @return {?}
823
- */
824
- TdLoadingFactory.prototype._initializeContext = function () {
825
- /** @type {?} */
826
- var subject = new rxjs.Subject();
827
- return {
828
- observable: subject.asObservable(),
829
- subject: subject,
830
- componentRef: undefined,
831
- times: 0,
832
- };
833
- };
834
- /**
835
- * Maps configuration to the loading component instance.
836
- * @private
837
- * @param {?} options
838
- * @param {?} instance
839
- * @return {?}
840
- */
841
- TdLoadingFactory.prototype._mapOptions = function (options, instance) {
842
- instance.style = options.style;
843
- if (options.type !== undefined) {
844
- instance.type = options.type;
845
- }
846
- if (options.height !== undefined) {
847
- instance.height = options.height;
848
- }
849
- if (options.mode !== undefined) {
850
- instance.mode = options.mode;
851
- }
852
- if (options.color !== undefined) {
853
- instance.color = options.color;
854
- }
855
- };
856
- return TdLoadingFactory;
857
- }());
858
- TdLoadingFactory.decorators = [
859
- { type: core.Injectable }
860
- ];
861
- /** @nocollapse */
862
- TdLoadingFactory.ctorParameters = function () { return [
863
- { type: core.ComponentFactoryResolver },
864
- { type: overlay.Overlay },
865
- { type: core.Injector }
866
- ]; };
867
- if (false) {
868
- /**
869
- * @type {?}
870
- * @private
871
- */
872
- TdLoadingFactory.prototype._componentFactoryResolver;
873
- /**
874
- * @type {?}
875
- * @private
876
- */
877
- TdLoadingFactory.prototype._overlay;
878
- /**
879
- * @type {?}
880
- * @private
881
- */
882
- TdLoadingFactory.prototype._injector;
883
- }
884
- /**
885
- * @param {?} parent
886
- * @param {?} componentFactoryResolver
887
- * @param {?} overlay
888
- * @param {?} injector
889
- * @return {?}
890
- */
891
- function LOADING_FACTORY_PROVIDER_FACTORY(parent, componentFactoryResolver, overlay, injector) {
892
- return parent || new TdLoadingFactory(componentFactoryResolver, overlay, injector);
893
- }
894
- /** @type {?} */
895
- var LOADING_FACTORY_PROVIDER = {
896
- // If there is already a service available, use that. Otherwise, provide a new one.
897
- provide: TdLoadingFactory,
898
- deps: [[new core.Optional(), new core.SkipSelf(), TdLoadingFactory], core.ComponentFactoryResolver, overlay.Overlay, core.Injector],
899
- useFactory: LOADING_FACTORY_PROVIDER_FACTORY,
900
- };
901
-
902
- /**
903
- * @record
904
- */
905
- function ITdLoadingConfig() { }
906
- if (false) {
907
- /** @type {?} */
908
- ITdLoadingConfig.prototype.name;
909
- /** @type {?|undefined} */
910
- ITdLoadingConfig.prototype.type;
911
- /** @type {?|undefined} */
912
- ITdLoadingConfig.prototype.mode;
913
- /** @type {?|undefined} */
914
- ITdLoadingConfig.prototype.color;
915
- }
916
- var TdLoadingConfig = /** @class */ (function () {
917
- /**
918
- * @param {?} config
919
- */
920
- function TdLoadingConfig(config) {
921
- this.name = config.name;
922
- if (!this.name) {
923
- throw Error('Name is required for [TdLoading] configuration.');
924
- }
925
- this.mode = config.mode ? config.mode : LoadingMode.Indeterminate;
926
- this.type = config.type ? config.type : LoadingType.Circular;
927
- this.color = config.color ? config.color : 'primary';
928
- }
929
- return TdLoadingConfig;
930
- }());
931
- if (false) {
932
- /** @type {?} */
933
- TdLoadingConfig.prototype.name;
934
- /** @type {?} */
935
- TdLoadingConfig.prototype.type;
936
- /** @type {?} */
937
- TdLoadingConfig.prototype.mode;
938
- /** @type {?} */
939
- TdLoadingConfig.prototype.color;
940
- }
941
- /**
942
- * @record
943
- */
944
- function ITdLoadingDirectiveConfig() { }
945
- if (false) {
946
- /** @type {?|undefined} */
947
- ITdLoadingDirectiveConfig.prototype.strategy;
948
- }
949
- var TdLoadingDirectiveConfig = /** @class */ (function (_super) {
950
- __extends(TdLoadingDirectiveConfig, _super);
951
- /**
952
- * @param {?} config
953
- */
954
- function TdLoadingDirectiveConfig(config) {
955
- var _this = _super.call(this, config) || this;
956
- _this.strategy = config.strategy ? config.strategy : LoadingStrategy.Replace;
957
- return _this;
958
- }
959
- return TdLoadingDirectiveConfig;
960
- }(TdLoadingConfig));
961
- if (false) {
962
- /** @type {?} */
963
- TdLoadingDirectiveConfig.prototype.name;
964
- /** @type {?} */
965
- TdLoadingDirectiveConfig.prototype.type;
966
- /** @type {?} */
967
- TdLoadingDirectiveConfig.prototype.mode;
968
- /** @type {?} */
969
- TdLoadingDirectiveConfig.prototype.strategy;
970
- }
971
- var TdLoadingService = /** @class */ (function () {
972
- /**
973
- * @param {?} _loadingFactory
974
- */
975
- function TdLoadingService(_loadingFactory) {
976
- this._loadingFactory = _loadingFactory;
977
- this._context = {};
978
- this._timeouts = {};
979
- this.create({
980
- name: 'td-loading-main',
981
- });
982
- }
983
- /**
984
- * params:
985
- * - config: ILoadingDirectiveConfig
986
- * - viewContainerRef: ViewContainerRef
987
- * - templateRef: TemplateRef<Object>
988
- *
989
- * Creates an replace loading mask and attaches it to the viewContainerRef.
990
- * Replaces the templateRef with the mask when a request is registered on it.
991
- *
992
- * NOTE: \@internal usage only.
993
- * @param {?} config
994
- * @param {?} viewContainerRef
995
- * @param {?} templateRef
996
- * @param {?} context
997
- * @return {?}
998
- */
999
- TdLoadingService.prototype.createComponent = function (config, viewContainerRef, templateRef, context) {
1000
- /** @type {?} */
1001
- var directiveConfig = new TdLoadingDirectiveConfig(config);
1002
- if (this._context[directiveConfig.name]) {
1003
- throw Error("Name duplication: [TdLoading] directive has a name conflict with " + directiveConfig.name + ".");
1004
- }
1005
- if (directiveConfig.strategy === LoadingStrategy.Overlay) {
1006
- this._context[directiveConfig.name] = this._loadingFactory.createOverlayComponent(directiveConfig, viewContainerRef, templateRef);
1007
- }
1008
- else {
1009
- this._context[directiveConfig.name] = this._loadingFactory.createReplaceComponent(directiveConfig, viewContainerRef, templateRef, context);
1010
- }
1011
- return this._context[directiveConfig.name];
1012
- };
1013
- /**
1014
- * params:
1015
- * - config: ITdLoadingConfig
1016
- *
1017
- * Creates a fullscreen loading mask and attaches it to the DOM with the given configuration.
1018
- * Only displayed when the mask has a request registered on it.
1019
- * @param {?} config
1020
- * @return {?}
1021
- */
1022
- TdLoadingService.prototype.create = function (config) {
1023
- /** @type {?} */
1024
- var fullscreenConfig = new TdLoadingConfig(config);
1025
- this.removeComponent(fullscreenConfig.name);
1026
- this._context[fullscreenConfig.name] = this._loadingFactory.createFullScreenComponent(fullscreenConfig);
1027
- };
1028
- /**
1029
- * params:
1030
- * - name: string
1031
- *
1032
- * Removes `loading` component from service context.
1033
- * @param {?} name
1034
- * @return {?}
1035
- */
1036
- TdLoadingService.prototype.removeComponent = function (name) {
1037
- if (this._context[name]) {
1038
- this._context[name].subject.unsubscribe();
1039
- if (this._context[name].componentRef) {
1040
- this._context[name].componentRef.destroy();
1041
- }
1042
- this._context[name] = undefined;
1043
- delete this._context[name];
1044
- }
1045
- };
1046
- /**
1047
- * params:
1048
- * - name: string
1049
- * - registers?: number
1050
- * returns: true if successful
1051
- *
1052
- * Resolves a request for the loading mask referenced by the name parameter.
1053
- * Can optionally pass registers argument to set a number of register calls.
1054
- *
1055
- * If no paramemeters are used, then default main mask will be used.
1056
- *
1057
- * e.g. loadingService.register()
1058
- * @param {?=} name
1059
- * @param {?=} registers
1060
- * @return {?}
1061
- */
1062
- TdLoadingService.prototype.register = function (name, registers) {
1063
- var _this = this;
1064
- if (name === void 0) { name = 'td-loading-main'; }
1065
- if (registers === void 0) { registers = 1; }
1066
- // try registering into the service if the loading component has been instanciated or if it exists.
1067
- if (this._context[name]) {
1068
- registers = registers < 1 ? 1 : registers;
1069
- this._context[name].times += registers;
1070
- this._context[name].subject.next(this._context[name].times);
1071
- return true;
1072
- }
1073
- else {
1074
- // if it doesnt exist, set a timeout so its registered after change detection happens
1075
- // this in case "register" occured on the `ngOnInit` lifehook cycle.
1076
- if (!this._timeouts[name]) {
1077
- this._timeouts[name] = setTimeout(( /**
1078
- * @return {?}
1079
- */function () {
1080
- _this.register(name, registers);
1081
- }));
1082
- }
1083
- else {
1084
- // if it timeout occured and still doesnt exist, it means the tiemout wasnt needed so we clear it.
1085
- this._clearTimeout(name);
1086
- }
1087
- }
1088
- return false;
1089
- };
1090
- /**
1091
- * params:
1092
- * - name: string
1093
- * - resolves?: number
1094
- * returns: true if successful
1095
- *
1096
- * Resolves a request for the loading mask referenced by the name parameter.
1097
- * Can optionally pass resolves argument to set a number of resolve calls.
1098
- *
1099
- * If no paramemeters are used, then default main mask will be used.
1100
- *
1101
- * e.g. loadingService.resolve()
1102
- * @param {?=} name
1103
- * @param {?=} resolves
1104
- * @return {?}
1105
- */
1106
- TdLoadingService.prototype.resolve = function (name, resolves) {
1107
- if (name === void 0) { name = 'td-loading-main'; }
1108
- if (resolves === void 0) { resolves = 1; }
1109
- // clear timeout if the loading component is "resolved" before its "registered"
1110
- this._clearTimeout(name);
1111
- if (this._context[name]) {
1112
- resolves = resolves < 1 ? 1 : resolves;
1113
- if (this._context[name].times > 0) {
1114
- /** @type {?} */
1115
- var times = this._context[name].times;
1116
- times -= resolves;
1117
- this._context[name].times = times < 0 ? 0 : times;
1118
- }
1119
- this._context[name].subject.next(this._context[name].times);
1120
- return true;
1121
- }
1122
- return false;
1123
- };
1124
- /**
1125
- * params:
1126
- * - name: string
1127
- * returns: true if successful
1128
- *
1129
- * Resolves all request for the loading mask referenced by the name parameter.
1130
- *
1131
- * If no paramemeters are used, then default main mask will be used.
1132
- *
1133
- * e.g. loadingService.resolveAll()
1134
- * @param {?=} name
1135
- * @return {?}
1136
- */
1137
- TdLoadingService.prototype.resolveAll = function (name) {
1138
- if (name === void 0) { name = 'td-loading-main'; }
1139
- // clear timeout if the loading component is "resolved" before its "registered"
1140
- this._clearTimeout(name);
1141
- if (this._context[name]) {
1142
- this._context[name].times = 0;
1143
- this._context[name].subject.next(this._context[name].times);
1144
- return true;
1145
- }
1146
- return false;
1147
- };
1148
- /**
1149
- * params:
1150
- * - name: string
1151
- * - value: number
1152
- * returns: true if successful
1153
- *
1154
- * Set value on a loading mask referenced by the name parameter.
1155
- * Usage only available if its mode is 'determinate' and if loading is showing.
1156
- * @param {?} name
1157
- * @param {?} value
1158
- * @return {?}
1159
- */
1160
- TdLoadingService.prototype.setValue = function (name, value) {
1161
- if (this._context[name]) {
1162
- /** @type {?} */
1163
- var instance = this._context[name].componentRef.instance;
1164
- if (instance.mode === LoadingMode.Determinate && instance.animation) {
1165
- instance.value = value;
1166
- return true;
1167
- }
1168
- }
1169
- return false;
1170
- };
1171
- /**
1172
- * Clears timeout linked to the name.
1173
- * @private
1174
- * @param {?} name Name of the loading component to be cleared
1175
- * @return {?}
1176
- */
1177
- TdLoadingService.prototype._clearTimeout = function (name) {
1178
- clearTimeout(this._timeouts[name]);
1179
- delete this._timeouts[name];
1180
- };
1181
- return TdLoadingService;
1182
- }());
1183
- TdLoadingService.decorators = [
1184
- { type: core.Injectable }
1185
- ];
1186
- /** @nocollapse */
1187
- TdLoadingService.ctorParameters = function () { return [
1188
- { type: TdLoadingFactory }
1189
- ]; };
1190
- if (false) {
1191
- /**
1192
- * @type {?}
1193
- * @private
1194
- */
1195
- TdLoadingService.prototype._context;
1196
- /**
1197
- * @type {?}
1198
- * @private
1199
- */
1200
- TdLoadingService.prototype._timeouts;
1201
- /**
1202
- * @type {?}
1203
- * @private
1204
- */
1205
- TdLoadingService.prototype._loadingFactory;
1206
- }
1207
- /**
1208
- * @param {?} parent
1209
- * @param {?} loadingFactory
1210
- * @return {?}
1211
- */
1212
- function LOADING_PROVIDER_FACTORY(parent, loadingFactory) {
1213
- return parent || new TdLoadingService(loadingFactory);
1214
- }
1215
- /** @type {?} */
1216
- var LOADING_PROVIDER = {
1217
- // If there is already a service available, use that. Otherwise, provide a new one.
1218
- provide: TdLoadingService,
1219
- deps: [[new core.Optional(), new core.SkipSelf(), TdLoadingService], TdLoadingFactory],
1220
- useFactory: LOADING_PROVIDER_FACTORY,
1221
- };
1222
-
1223
- /**
1224
- * @fileoverview added by tsickle
1225
- * Generated from: directives/loading.directive.ts
1226
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1227
- */
1228
- /**
1229
- * Context class for variable reference
1230
- */
1231
- var TdLoadingContext = /** @class */ (function () {
1232
- function TdLoadingContext() {
1233
- this.$implicit = undefined;
1234
- this.tdLoading = undefined;
1235
- }
1236
- return TdLoadingContext;
1237
- }());
1238
- if (false) {
1239
- /** @type {?} */
1240
- TdLoadingContext.prototype.$implicit;
1241
- /** @type {?} */
1242
- TdLoadingContext.prototype.tdLoading;
1243
- }
1244
- // Constant for generation of the id for the next component
1245
- /** @type {?} */
1246
- var TD_LOADING_NEXT_ID = 0;
1247
- var TdLoadingDirective = /** @class */ (function () {
1248
- /**
1249
- * @param {?} _viewContainerRef
1250
- * @param {?} _templateRef
1251
- * @param {?} _loadingService
1252
- */
1253
- function TdLoadingDirective(_viewContainerRef, _templateRef, _loadingService) {
1254
- this._viewContainerRef = _viewContainerRef;
1255
- this._templateRef = _templateRef;
1256
- this._loadingService = _loadingService;
1257
- this._context = new TdLoadingContext();
1258
- /**
1259
- * tdLoadingColor?: "primary" | "accent" | "warn"
1260
- * Sets the theme color of the loading component. Defaults to "primary"
1261
- */
1262
- this.color = 'primary';
1263
- }
1264
- Object.defineProperty(TdLoadingDirective.prototype, "name", {
1265
- /**
1266
- * tdLoading: string
1267
- * Name reference of the loading mask, used to register/resolve requests to the mask.
1268
- * @param {?} name
1269
- * @return {?}
1270
- */
1271
- set: function (name) {
1272
- if (!this._name && name) {
1273
- this._name = name;
1274
- }
1275
- },
1276
- enumerable: false,
1277
- configurable: true
1278
- });
1279
- Object.defineProperty(TdLoadingDirective.prototype, "until", {
1280
- /**
1281
- * tdLoadingUntil?: any
1282
- * If its null, undefined or false it will be used to register requests to the mask.
1283
- * Else if its any value that can be resolved as true, it will resolve the mask.
1284
- * [name] is optional when using [until], but can still be used to register/resolve it manually.
1285
- * @param {?} until
1286
- * @return {?}
1287
- */
1288
- set: function (until) {
1289
- if (!this._name) {
1290
- this._name = 'td-loading-until-' + TD_LOADING_NEXT_ID++;
1291
- }
1292
- this._context.$implicit = this._context.tdLoading = until;
1293
- if (!until) {
1294
- this._loadingService.register(this._name);
1295
- }
1296
- else {
1297
- this._loadingService.resolveAll(this._name);
1298
- }
1299
- },
1300
- enumerable: false,
1301
- configurable: true
1302
- });
1303
- Object.defineProperty(TdLoadingDirective.prototype, "type", {
1304
- /**
1305
- * tdLoadingType?: LoadingType or ['linear' | 'circular']
1306
- * Sets the type of loading mask depending on value.
1307
- * Defaults to [LoadingType.Circular | 'circular'].
1308
- * @param {?} type
1309
- * @return {?}
1310
- */
1311
- set: function (type) {
1312
- if (type === LoadingType.Linear) {
1313
- this._type = LoadingType.Linear;
1314
- }
1315
- else {
1316
- this._type = LoadingType.Circular;
1317
- }
1318
- },
1319
- enumerable: false,
1320
- configurable: true
1321
- });
1322
- Object.defineProperty(TdLoadingDirective.prototype, "mode", {
1323
- /**
1324
- * tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']
1325
- * Sets the mode of loading mask depending on value.
1326
- * Defaults to [LoadingMode.Indeterminate | 'indeterminate'].
1327
- * @param {?} mode
1328
- * @return {?}
1329
- */
1330
- set: function (mode) {
1331
- if (mode === LoadingMode.Determinate) {
1332
- this._mode = LoadingMode.Determinate;
1333
- }
1334
- else {
1335
- this._mode = LoadingMode.Indeterminate;
1336
- }
1337
- },
1338
- enumerable: false,
1339
- configurable: true
1340
- });
1341
- Object.defineProperty(TdLoadingDirective.prototype, "strategy", {
1342
- /**
1343
- * tdLoadingStrategy?: LoadingStrategy or ['replace' | 'overlay']
1344
- * Sets the strategy of loading mask depending on value.
1345
- * Defaults to [LoadingMode.Replace | 'replace'].
1346
- * @param {?} strategy
1347
- * @return {?}
1348
- */
1349
- set: function (strategy) {
1350
- if (strategy === LoadingStrategy.Overlay) {
1351
- this._strategy = LoadingStrategy.Overlay;
1352
- }
1353
- else {
1354
- this._strategy = LoadingStrategy.Replace;
1355
- }
1356
- },
1357
- enumerable: false,
1358
- configurable: true
1359
- });
1360
- /**
1361
- * Registers component in the DOM, so it will be available when calling resolve/register.
1362
- * @return {?}
1363
- */
1364
- TdLoadingDirective.prototype.ngOnInit = function () {
1365
- this._registerComponent();
1366
- };
1367
- /**
1368
- * Remove component when directive is destroyed.
1369
- * @return {?}
1370
- */
1371
- TdLoadingDirective.prototype.ngOnDestroy = function () {
1372
- this._loadingService.removeComponent(this._name);
1373
- this._loadingRef = undefined;
1374
- };
1375
- /**
1376
- * Creates [TdLoadingComponent] and attaches it to this directive's [ViewContainerRef].
1377
- * Passes this directive's [TemplateRef] to modify DOM depending on loading `strategy`.
1378
- * @private
1379
- * @return {?}
1380
- */
1381
- TdLoadingDirective.prototype._registerComponent = function () {
1382
- if (!this._name) {
1383
- throw new Error('Name is needed to register loading directive');
1384
- }
1385
- // Check if `TdLoadingComponent` has been created before trying to add one again.
1386
- // There is a weird edge case when using `[routerLinkActive]` that calls the `ngOnInit` twice in a row
1387
- if (!this._loadingRef) {
1388
- this._loadingRef = this._loadingService.createComponent({
1389
- name: this._name,
1390
- type: this._type,
1391
- mode: this._mode,
1392
- color: this.color,
1393
- strategy: this._strategy,
1394
- }, this._viewContainerRef, this._templateRef, this._context);
1395
- }
1396
- };
1397
- return TdLoadingDirective;
1398
- }());
1399
- TdLoadingDirective.decorators = [
1400
- { type: core.Directive, args: [{
1401
- selector: '[tdLoading]',
1402
- },] }
1403
- ];
1404
- /** @nocollapse */
1405
- TdLoadingDirective.ctorParameters = function () { return [
1406
- { type: core.ViewContainerRef },
1407
- { type: core.TemplateRef },
1408
- { type: TdLoadingService }
1409
- ]; };
1410
- TdLoadingDirective.propDecorators = {
1411
- name: [{ type: core.Input, args: ['tdLoading',] }],
1412
- until: [{ type: core.Input, args: ['tdLoadingUntil',] }],
1413
- type: [{ type: core.Input, args: ['tdLoadingType',] }],
1414
- mode: [{ type: core.Input, args: ['tdLoadingMode',] }],
1415
- strategy: [{ type: core.Input, args: ['tdLoadingStrategy',] }],
1416
- color: [{ type: core.Input, args: ['tdLoadingColor',] }]
1417
- };
1418
- if (false) {
1419
- /**
1420
- * @type {?}
1421
- * @private
1422
- */
1423
- TdLoadingDirective.prototype._context;
1424
- /**
1425
- * @type {?}
1426
- * @private
1427
- */
1428
- TdLoadingDirective.prototype._type;
1429
- /**
1430
- * @type {?}
1431
- * @private
1432
- */
1433
- TdLoadingDirective.prototype._mode;
1434
- /**
1435
- * @type {?}
1436
- * @private
1437
- */
1438
- TdLoadingDirective.prototype._strategy;
1439
- /**
1440
- * @type {?}
1441
- * @private
1442
- */
1443
- TdLoadingDirective.prototype._name;
1444
- /**
1445
- * @type {?}
1446
- * @private
1447
- */
1448
- TdLoadingDirective.prototype._loadingRef;
1449
- /**
1450
- * tdLoadingColor?: "primary" | "accent" | "warn"
1451
- * Sets the theme color of the loading component. Defaults to "primary"
1452
- * @type {?}
1453
- */
1454
- TdLoadingDirective.prototype.color;
1455
- /**
1456
- * @type {?}
1457
- * @private
1458
- */
1459
- TdLoadingDirective.prototype._viewContainerRef;
1460
- /**
1461
- * @type {?}
1462
- * @private
1463
- */
1464
- TdLoadingDirective.prototype._templateRef;
1465
- /**
1466
- * @type {?}
1467
- * @private
1468
- */
1469
- TdLoadingDirective.prototype._loadingService;
1470
- }
1471
-
1472
- /**
1473
- * @fileoverview added by tsickle
1474
- * Generated from: loading.module.ts
1475
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1476
- */
1477
- /** @type {?} */
1478
- var TD_LOADING = [TdLoadingComponent, TdLoadingDirective];
1479
- /** @type {?} */
1480
- var TD_LOADING_ENTRY_COMPONENTS = [TdLoadingComponent];
1481
- var CovalentLoadingModule = /** @class */ (function () {
1482
- function CovalentLoadingModule() {
1483
- }
1484
- return CovalentLoadingModule;
1485
- }());
1486
- CovalentLoadingModule.decorators = [
1487
- { type: core.NgModule, args: [{
1488
- imports: [common$1.CommonModule, progressBar.MatProgressBarModule, progressSpinner.MatProgressSpinnerModule, overlay.OverlayModule, portal.PortalModule],
1489
- declarations: [TD_LOADING],
1490
- exports: [TD_LOADING],
1491
- providers: [LOADING_FACTORY_PROVIDER, LOADING_PROVIDER],
1492
- },] }
1493
- ];
1494
-
1495
- /**
1496
- * @fileoverview added by tsickle
1497
- * Generated from: public-api.ts
1498
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1499
- */
1500
-
1501
- /**
1502
- * @fileoverview added by tsickle
1503
- * Generated from: index.ts
1504
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1505
- */
1506
-
1507
- /**
1508
- * @fileoverview added by tsickle
1509
- * Generated from: covalent-core-loading.ts
1510
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1511
- */
1512
-
1513
- exports.CovalentLoadingModule = CovalentLoadingModule;
1514
- exports.LOADING_FACTORY_PROVIDER = LOADING_FACTORY_PROVIDER;
1515
- exports.LOADING_FACTORY_PROVIDER_FACTORY = LOADING_FACTORY_PROVIDER_FACTORY;
1516
- exports.LOADING_PROVIDER = LOADING_PROVIDER;
1517
- exports.LOADING_PROVIDER_FACTORY = LOADING_PROVIDER_FACTORY;
1518
- exports.LoadingMode = LoadingMode;
1519
- exports.LoadingStrategy = LoadingStrategy;
1520
- exports.LoadingStyle = LoadingStyle;
1521
- exports.LoadingType = LoadingType;
1522
- exports.TD_CIRCLE_DIAMETER = TD_CIRCLE_DIAMETER;
1523
- exports.TdLoadingComponent = TdLoadingComponent;
1524
- exports.TdLoadingConfig = TdLoadingConfig;
1525
- exports.TdLoadingContext = TdLoadingContext;
1526
- exports.TdLoadingDirective = TdLoadingDirective;
1527
- exports.TdLoadingDirectiveConfig = TdLoadingDirectiveConfig;
1528
- exports.TdLoadingFactory = TdLoadingFactory;
1529
- exports.TdLoadingService = TdLoadingService;
1530
-
1531
- Object.defineProperty(exports, '__esModule', { value: true });
1532
-
1533
- })));
1534
- //# sourceMappingURL=covalent-core-loading.umd.js.map