@covalent/core 4.0.0-alpha.0 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -0
  2. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +3 -0
  3. package/breadcrumbs/breadcrumbs.component.d.ts +3 -0
  4. package/breadcrumbs/breadcrumbs.component.scss +1 -0
  5. package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  6. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -0
  7. package/breadcrumbs/package.json +6 -7
  8. package/common/_common-theme.scss +2 -0
  9. package/common/common.module.d.ts +15 -0
  10. package/common/covalent-core-common.d.ts +1 -2
  11. package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
  12. package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
  13. package/common/material-icons.css +31 -18
  14. package/common/material-icons.css.map +1 -1
  15. package/common/package.json +6 -7
  16. package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
  17. package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
  18. package/common/pipes/digits/digits.pipe.d.ts +3 -0
  19. package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
  20. package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
  21. package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
  22. package/common/pipes/truncate/truncate.pipe.d.ts +3 -0
  23. package/common/platform.css +11828 -10433
  24. package/common/platform.css.map +1 -1
  25. package/common/services/icon.service.d.ts +3 -0
  26. package/common/services/router-path.service.d.ts +3 -0
  27. package/common/styles/_layout.scss +12 -10
  28. package/common/styles/_palette-dark.scss +2 -2
  29. package/common/styles/_palette-light.scss +6 -6
  30. package/common/styles/_rtl.scss +3 -0
  31. package/common/styles/_variables.scss +5 -5
  32. package/common/styles/colors/_colors-dark.scss +327 -0
  33. package/common/styles/colors/_colors-light.scss +748 -0
  34. package/common/styles/core/_button.scss +2 -1
  35. package/common/styles/core/_card.scss +27 -7
  36. package/common/styles/core/_content.scss +2 -1
  37. package/common/styles/core/_divider.scss +1 -0
  38. package/common/styles/core/_icons.scss +2 -0
  39. package/common/styles/core/_sidenav.scss +2 -0
  40. package/common/styles/core/_structure.scss +6 -7
  41. package/common/styles/core/_toolbar.scss +7 -0
  42. package/common/styles/core/_whiteframe.scss +2 -2
  43. package/common/styles/font/_font.scss +10 -4
  44. package/common/styles/utilities/_general.scss +14 -0
  45. package/common/styles/utilities/_text.scss +21 -0
  46. package/covalent-core.d.ts +1 -0
  47. package/dialogs/_dialog-theme.scss +1 -0
  48. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -0
  49. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +3 -0
  50. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  51. package/dialogs/dialog.component.d.ts +9 -0
  52. package/dialogs/dialog.component.scss +5 -0
  53. package/dialogs/dialogs.module.d.ts +17 -0
  54. package/dialogs/package.json +6 -7
  55. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -0
  56. package/dialogs/prompt-dialog/prompt-dialog.component.scss +1 -0
  57. package/dialogs/public-api.d.ts +1 -0
  58. package/dialogs/services/dialog.service.d.ts +3 -0
  59. package/dialogs/window-dialog/window-dialog.component.d.ts +3 -0
  60. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  61. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +3 -0
  62. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +1 -0
  63. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +3 -0
  64. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +3 -1
  65. package/dynamic-menu/dynamic-menu.component.d.ts +3 -0
  66. package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
  67. package/dynamic-menu/package.json +6 -7
  68. package/dynamic-menu/public_api.d.ts +1 -0
  69. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +108 -0
  70. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +139 -0
  71. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +21 -0
  72. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
  73. package/esm2020/breadcrumbs/index.mjs +2 -0
  74. package/esm2020/breadcrumbs/public-api.mjs +4 -0
  75. package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
  76. package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
  77. package/esm2020/common/animations/common/interfaces.mjs +2 -0
  78. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
  79. package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
  80. package/esm2020/common/animations/headshake/headshake.animation.mjs +35 -0
  81. package/esm2020/common/animations/jello/jello.animation.mjs +38 -0
  82. package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
  83. package/esm2020/common/animations/rotate/rotate.animation.mjs +25 -0
  84. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +39 -0
  85. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
  86. package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
  87. package/esm2020/common/common.module.mjs +64 -0
  88. package/esm2020/common/covalent-core-common.mjs +5 -0
  89. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
  90. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
  91. package/esm2020/common/forms/validators/validators.mjs +29 -0
  92. package/{esm2015/common/functions/clipboard.js → esm2020/common/functions/clipboard.mjs} +3 -10
  93. package/esm2020/common/functions/convert.mjs +84 -0
  94. package/esm2020/common/functions/download.mjs +75 -0
  95. package/esm2020/common/functions/file.mjs +16 -0
  96. package/esm2020/common/index.mjs +2 -0
  97. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +32 -0
  98. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +32 -0
  99. package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
  100. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
  101. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
  102. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
  103. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
  104. package/esm2020/common/public-api.mjs +39 -0
  105. package/esm2020/common/services/icon.service.mjs +1089 -0
  106. package/esm2020/common/services/router-path.service.mjs +29 -0
  107. package/esm2020/covalent-core.mjs +5 -0
  108. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +54 -0
  109. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +68 -0
  110. package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
  111. package/esm2020/dialogs/dialog.component.mjs +97 -0
  112. package/esm2020/dialogs/dialogs.module.mjs +86 -0
  113. package/esm2020/dialogs/index.mjs +2 -0
  114. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +104 -0
  115. package/esm2020/dialogs/public-api.mjs +9 -0
  116. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +199 -0
  117. package/esm2020/dialogs/services/dialog.service.mjs +168 -0
  118. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +69 -0
  119. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
  120. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +147 -0
  121. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +113 -0
  122. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +111 -0
  123. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +32 -0
  124. package/esm2020/dynamic-menu/index.mjs +2 -0
  125. package/esm2020/dynamic-menu/public_api.mjs +5 -0
  126. package/esm2020/file/covalent-core-file.mjs +5 -0
  127. package/esm2020/file/directives/file-drop.directive.mjs +148 -0
  128. package/esm2020/file/directives/file-select.directive.mjs +76 -0
  129. package/esm2020/file/file-input/file-input.component.mjs +137 -0
  130. package/esm2020/file/file-upload/file-upload.component.mjs +210 -0
  131. package/esm2020/file/file.module.mjs +43 -0
  132. package/esm2020/file/index.mjs +2 -0
  133. package/esm2020/file/public-api.mjs +7 -0
  134. package/esm2020/file/services/file.service.mjs +62 -0
  135. package/esm2020/index.mjs +2 -0
  136. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
  137. package/esm2020/json-formatter/index.mjs +2 -0
  138. package/esm2020/json-formatter/json-formatter.component.mjs +302 -0
  139. package/esm2020/json-formatter/json-formatter.module.mjs +21 -0
  140. package/esm2020/json-formatter/public-api.mjs +3 -0
  141. package/esm2020/layout/covalent-core-layout.mjs +5 -0
  142. package/esm2020/layout/index.mjs +2 -0
  143. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +87 -0
  144. package/esm2020/layout/layout-footer/layout-footer.component.mjs +38 -0
  145. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +122 -0
  146. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +90 -0
  147. package/esm2020/layout/layout-nav/layout-nav.component.mjs +112 -0
  148. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +215 -0
  149. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +90 -0
  150. package/esm2020/layout/layout-toggle.class.mjs +95 -0
  151. package/esm2020/layout/layout.component.mjs +113 -0
  152. package/esm2020/layout/layout.directives.mjs +87 -0
  153. package/esm2020/layout/layout.module.mjs +118 -0
  154. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +306 -0
  155. package/esm2020/layout/public-api.mjs +13 -0
  156. package/esm2020/menu/covalent-core-menu.mjs +5 -0
  157. package/esm2020/menu/index.mjs +2 -0
  158. package/esm2020/menu/menu.component.mjs +23 -0
  159. package/esm2020/menu/menu.module.mjs +22 -0
  160. package/esm2020/menu/public-api.mjs +3 -0
  161. package/esm2020/message/covalent-core-message.mjs +5 -0
  162. package/esm2020/message/index.mjs +2 -0
  163. package/esm2020/message/message.component.mjs +261 -0
  164. package/esm2020/message/message.module.mjs +21 -0
  165. package/esm2020/message/public-api.mjs +3 -0
  166. package/esm2020/search/covalent-core-search.mjs +5 -0
  167. package/esm2020/search/index.mjs +2 -0
  168. package/esm2020/search/public-api.mjs +4 -0
  169. package/esm2020/search/search-box/search-box.component.mjs +220 -0
  170. package/esm2020/search/search-input/search-input.component.mjs +240 -0
  171. package/esm2020/search/search.module.mjs +24 -0
  172. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
  173. package/esm2020/side-sheet/index.mjs +2 -0
  174. package/esm2020/side-sheet/public-api.mjs +6 -0
  175. package/esm2020/side-sheet/side-sheet-container.mjs +242 -0
  176. package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
  177. package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
  178. package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
  179. package/esm2020/side-sheet/side-sheet.content-directives.mjs +178 -0
  180. package/esm2020/side-sheet/side-sheet.mjs +208 -0
  181. package/esm2020/side-sheet/side-sheet.module.mjs +46 -0
  182. package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
  183. package/esm2020/user-profile/index.mjs +2 -0
  184. package/esm2020/user-profile/public_api.mjs +4 -0
  185. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +75 -0
  186. package/esm2020/user-profile/user-profile.component.mjs +41 -0
  187. package/esm2020/user-profile/user-profile.module.mjs +26 -0
  188. package/fesm2015/covalent-core-breadcrumbs.mjs +287 -0
  189. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
  190. package/fesm2015/covalent-core-common.mjs +2251 -0
  191. package/fesm2015/covalent-core-common.mjs.map +1 -0
  192. package/fesm2015/covalent-core-dialogs.mjs +872 -0
  193. package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
  194. package/fesm2015/covalent-core-dynamic-menu.mjs +480 -0
  195. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
  196. package/fesm2015/covalent-core-file.mjs +698 -0
  197. package/fesm2015/covalent-core-file.mjs.map +1 -0
  198. package/fesm2015/covalent-core-json-formatter.mjs +353 -0
  199. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
  200. package/fesm2015/covalent-core-layout.mjs +1577 -0
  201. package/fesm2015/covalent-core-layout.mjs.map +1 -0
  202. package/fesm2015/covalent-core-menu.mjs +55 -0
  203. package/fesm2015/covalent-core-menu.mjs.map +1 -0
  204. package/fesm2015/covalent-core-message.mjs +309 -0
  205. package/fesm2015/covalent-core-message.mjs.map +1 -0
  206. package/fesm2015/covalent-core-search.mjs +508 -0
  207. package/fesm2015/covalent-core-search.mjs.map +1 -0
  208. package/fesm2015/covalent-core-side-sheet.mjs +733 -0
  209. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
  210. package/fesm2015/covalent-core-user-profile.mjs +162 -0
  211. package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
  212. package/fesm2015/covalent-core.mjs +4 -0
  213. package/fesm2015/covalent-core.mjs.map +1 -0
  214. package/fesm2020/covalent-core-breadcrumbs.mjs +268 -0
  215. package/{fesm2015/covalent-core-breadcrumbs.js.map → fesm2020/covalent-core-breadcrumbs.mjs.map} +1 -1
  216. package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +213 -768
  217. package/fesm2020/covalent-core-common.mjs.map +1 -0
  218. package/fesm2020/covalent-core-dialogs.mjs +812 -0
  219. package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
  220. package/fesm2020/covalent-core-dynamic-menu.mjs +393 -0
  221. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
  222. package/fesm2020/covalent-core-file.mjs +651 -0
  223. package/fesm2020/covalent-core-file.mjs.map +1 -0
  224. package/fesm2020/covalent-core-json-formatter.mjs +326 -0
  225. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
  226. package/fesm2020/covalent-core-layout.mjs +1414 -0
  227. package/fesm2020/covalent-core-layout.mjs.map +1 -0
  228. package/fesm2020/covalent-core-menu.mjs +49 -0
  229. package/fesm2020/covalent-core-menu.mjs.map +1 -0
  230. package/fesm2020/covalent-core-message.mjs +286 -0
  231. package/fesm2020/covalent-core-message.mjs.map +1 -0
  232. package/fesm2020/covalent-core-search.mjs +473 -0
  233. package/fesm2020/covalent-core-search.mjs.map +1 -0
  234. package/{fesm2015/covalent-core-side-sheet.js → fesm2020/covalent-core-side-sheet.mjs} +202 -646
  235. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
  236. package/fesm2020/covalent-core-user-profile.mjs +141 -0
  237. package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
  238. package/fesm2020/covalent-core.mjs +4 -0
  239. package/fesm2020/covalent-core.mjs.map +1 -0
  240. package/file/_file-theme.scss +1 -0
  241. package/file/covalent-core-file.d.ts +1 -0
  242. package/file/directives/file-drop.directive.d.ts +3 -0
  243. package/file/directives/file-select.directive.d.ts +3 -0
  244. package/file/file-input/file-input.component.d.ts +5 -0
  245. package/file/file-input/file-input.component.scss +2 -0
  246. package/file/file-upload/file-upload.component.d.ts +3 -0
  247. package/file/file-upload/file-upload.component.scss +4 -0
  248. package/file/file.module.d.ts +13 -0
  249. package/file/package.json +6 -7
  250. package/file/services/file.service.d.ts +3 -0
  251. package/json-formatter/_json-formatter-theme.scss +10 -0
  252. package/json-formatter/covalent-core-json-formatter.d.ts +1 -0
  253. package/json-formatter/json-formatter.component.d.ts +3 -0
  254. package/json-formatter/json-formatter.component.scss +13 -0
  255. package/json-formatter/json-formatter.module.d.ts +8 -0
  256. package/json-formatter/package.json +6 -7
  257. package/layout/_layout-theme.scss +12 -0
  258. package/layout/covalent-core-layout.d.ts +1 -0
  259. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -0
  260. package/layout/layout-card-over/layout-card-over.component.scss +3 -0
  261. package/layout/layout-footer/layout-footer.component.d.ts +3 -0
  262. package/layout/layout-manage-list/layout-manage-list.component.d.ts +3 -0
  263. package/layout/layout-manage-list/layout-manage-list.component.scss +9 -5
  264. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +7 -0
  265. package/layout/layout-nav/layout-nav.component.d.ts +3 -0
  266. package/layout/layout-nav/layout-nav.component.scss +4 -0
  267. package/layout/layout-nav-list/layout-nav-list.component.d.ts +3 -0
  268. package/layout/layout-nav-list/layout-nav-list.component.scss +9 -4
  269. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +7 -0
  270. package/layout/layout-toggle.class.d.ts +3 -0
  271. package/layout/layout.component.d.ts +3 -0
  272. package/layout/layout.component.scss +0 -4
  273. package/layout/layout.directives.d.ts +7 -0
  274. package/layout/layout.module.d.ts +23 -0
  275. package/layout/navigation-drawer/navigation-drawer.component.d.ts +7 -0
  276. package/layout/navigation-drawer/navigation-drawer.component.scss +8 -0
  277. package/layout/package.json +6 -7
  278. package/menu/covalent-core-menu.d.ts +1 -0
  279. package/menu/menu.component.d.ts +3 -0
  280. package/menu/menu.component.scss +9 -1
  281. package/menu/menu.module.d.ts +8 -0
  282. package/menu/package.json +6 -7
  283. package/message/_message-theme.scss +3 -0
  284. package/message/covalent-core-message.d.ts +1 -0
  285. package/message/message.component.d.ts +5 -0
  286. package/message/message.component.scss +3 -0
  287. package/message/message.module.d.ts +7 -0
  288. package/message/package.json +6 -7
  289. package/package.json +126 -15
  290. package/search/covalent-core-search.d.ts +1 -0
  291. package/search/package.json +6 -7
  292. package/search/search-box/search-box.component.d.ts +3 -0
  293. package/search/search-box/search-box.component.scss +5 -0
  294. package/search/search-input/search-input.component.d.ts +3 -0
  295. package/search/search-input/search-input.component.scss +12 -0
  296. package/search/search.module.d.ts +11 -0
  297. package/side-sheet/covalent-core-side-sheet.d.ts +1 -2
  298. package/side-sheet/package.json +6 -7
  299. package/side-sheet/side-sheet-container.d.ts +5 -0
  300. package/side-sheet/side-sheet.content-directives.d.ts +11 -0
  301. package/side-sheet/side-sheet.d.ts +5 -0
  302. package/side-sheet/side-sheet.module.d.ts +9 -0
  303. package/side-sheet/side-sheet.scss +1 -2
  304. package/theming/prebuilt/blue-grey-deep-orange.css +1714 -1333
  305. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  306. package/theming/prebuilt/blue-grey-deep-orange.scss +15 -8
  307. package/theming/prebuilt/blue-orange.css +1714 -1333
  308. package/theming/prebuilt/blue-orange.css.map +1 -1
  309. package/theming/prebuilt/blue-orange.scss +15 -8
  310. package/theming/prebuilt/indigo-pink.css +1714 -1333
  311. package/theming/prebuilt/indigo-pink.css.map +1 -1
  312. package/theming/prebuilt/indigo-pink.scss +15 -8
  313. package/theming/prebuilt/orange-light-blue.css +1714 -1333
  314. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  315. package/theming/prebuilt/orange-light-blue.scss +15 -8
  316. package/theming/prebuilt/teal-orange.css +1714 -1333
  317. package/theming/prebuilt/teal-orange.css.map +1 -1
  318. package/theming/prebuilt/teal-orange.scss +15 -8
  319. package/user-profile/covalent-core-user-profile.d.ts +1 -0
  320. package/user-profile/package.json +6 -7
  321. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +3 -0
  322. package/user-profile/user-profile-menu/user-profile-menu.component.scss +3 -0
  323. package/user-profile/user-profile.component.d.ts +3 -0
  324. package/user-profile/user-profile.module.d.ts +12 -0
  325. package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
  326. package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
  327. package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
  328. package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
  329. package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
  330. package/bundles/covalent-core-common.umd.js +0 -3188
  331. package/bundles/covalent-core-common.umd.js.map +0 -1
  332. package/bundles/covalent-core-common.umd.min.js +0 -17
  333. package/bundles/covalent-core-common.umd.min.js.map +0 -1
  334. package/bundles/covalent-core-dialogs.umd.js +0 -1318
  335. package/bundles/covalent-core-dialogs.umd.js.map +0 -1
  336. package/bundles/covalent-core-dialogs.umd.min.js +0 -2
  337. package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
  338. package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
  339. package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
  340. package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
  341. package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
  342. package/bundles/covalent-core-file.umd.js +0 -1211
  343. package/bundles/covalent-core-file.umd.js.map +0 -1
  344. package/bundles/covalent-core-file.umd.min.js +0 -17
  345. package/bundles/covalent-core-file.umd.min.js.map +0 -1
  346. package/bundles/covalent-core-json-formatter.umd.js +0 -408
  347. package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
  348. package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
  349. package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
  350. package/bundles/covalent-core-layout.umd.js +0 -2084
  351. package/bundles/covalent-core-layout.umd.js.map +0 -1
  352. package/bundles/covalent-core-layout.umd.min.js +0 -17
  353. package/bundles/covalent-core-layout.umd.min.js.map +0 -1
  354. package/bundles/covalent-core-menu.umd.js +0 -69
  355. package/bundles/covalent-core-menu.umd.js.map +0 -1
  356. package/bundles/covalent-core-menu.umd.min.js +0 -2
  357. package/bundles/covalent-core-menu.umd.min.js.map +0 -1
  358. package/bundles/covalent-core-message.umd.js +0 -375
  359. package/bundles/covalent-core-message.umd.js.map +0 -1
  360. package/bundles/covalent-core-message.umd.min.js +0 -2
  361. package/bundles/covalent-core-message.umd.min.js.map +0 -1
  362. package/bundles/covalent-core-search.umd.js +0 -877
  363. package/bundles/covalent-core-search.umd.js.map +0 -1
  364. package/bundles/covalent-core-search.umd.min.js +0 -16
  365. package/bundles/covalent-core-search.umd.min.js.map +0 -1
  366. package/bundles/covalent-core-side-sheet.umd.js +0 -1458
  367. package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
  368. package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
  369. package/bundles/covalent-core-side-sheet.umd.min.js.map +0 -1
  370. package/bundles/covalent-core-user-profile.umd.js +0 -116
  371. package/bundles/covalent-core-user-profile.umd.js.map +0 -1
  372. package/bundles/covalent-core-user-profile.umd.min.js +0 -2
  373. package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
  374. package/bundles/covalent-core.umd.js +0 -9
  375. package/bundles/covalent-core.umd.js.map +0 -1
  376. package/bundles/covalent-core.umd.min.js +0 -2
  377. package/bundles/covalent-core.umd.min.js.map +0 -1
  378. package/common/covalent-core-common.metadata.json +0 -1
  379. package/covalent-core.metadata.json +0 -1
  380. package/dialogs/covalent-core-dialogs.metadata.json +0 -1
  381. package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
  382. package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
  383. package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
  384. package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
  385. package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
  386. package/esm2015/breadcrumbs/index.js +0 -7
  387. package/esm2015/breadcrumbs/public-api.js +0 -9
  388. package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
  389. package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
  390. package/esm2015/common/animations/common/interfaces.js +0 -18
  391. package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
  392. package/esm2015/common/animations/flash/flash.animation.js +0 -40
  393. package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
  394. package/esm2015/common/animations/jello/jello.animation.js +0 -44
  395. package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
  396. package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
  397. package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
  398. package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
  399. package/esm2015/common/behaviors/disabled.mixin.js +0 -63
  400. package/esm2015/common/common.module.js +0 -54
  401. package/esm2015/common/covalent-core-common.js +0 -12
  402. package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
  403. package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
  404. package/esm2015/common/forms/validators/validators.js +0 -58
  405. package/esm2015/common/functions/convert.js +0 -103
  406. package/esm2015/common/functions/download.js +0 -88
  407. package/esm2015/common/functions/file.js +0 -29
  408. package/esm2015/common/index.js +0 -7
  409. package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
  410. package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
  411. package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
  412. package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
  413. package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
  414. package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
  415. package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
  416. package/esm2015/common/public-api.js +0 -44
  417. package/esm2015/common/services/icon.service.js +0 -1109
  418. package/esm2015/common/services/router-path.service.js +0 -60
  419. package/esm2015/covalent-core.js +0 -10
  420. package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
  421. package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
  422. package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
  423. package/esm2015/dialogs/dialog.component.js +0 -58
  424. package/esm2015/dialogs/dialogs.module.js +0 -57
  425. package/esm2015/dialogs/index.js +0 -7
  426. package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
  427. package/esm2015/dialogs/public-api.js +0 -13
  428. package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
  429. package/esm2015/dialogs/services/dialog.service.js +0 -316
  430. package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
  431. package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
  432. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
  433. package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
  434. package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
  435. package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
  436. package/esm2015/dynamic-menu/index.js +0 -7
  437. package/esm2015/dynamic-menu/public_api.js +0 -9
  438. package/esm2015/file/covalent-core-file.js +0 -10
  439. package/esm2015/file/directives/file-drop.directive.js +0 -191
  440. package/esm2015/file/directives/file-select.directive.js +0 -98
  441. package/esm2015/file/file-input/file-input.component.js +0 -186
  442. package/esm2015/file/file-upload/file-upload.component.js +0 -237
  443. package/esm2015/file/file.module.js +0 -35
  444. package/esm2015/file/index.js +0 -7
  445. package/esm2015/file/public-api.js +0 -12
  446. package/esm2015/file/services/file.service.js +0 -109
  447. package/esm2015/index.js +0 -7
  448. package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
  449. package/esm2015/json-formatter/index.js +0 -7
  450. package/esm2015/json-formatter/json-formatter.component.js +0 -338
  451. package/esm2015/json-formatter/json-formatter.module.js +0 -20
  452. package/esm2015/json-formatter/public-api.js +0 -8
  453. package/esm2015/layout/covalent-core-layout.js +0 -10
  454. package/esm2015/layout/index.js +0 -7
  455. package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
  456. package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
  457. package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
  458. package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
  459. package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
  460. package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
  461. package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
  462. package/esm2015/layout/layout-toggle.class.js +0 -188
  463. package/esm2015/layout/layout.component.js +0 -145
  464. package/esm2015/layout/layout.directives.js +0 -129
  465. package/esm2015/layout/layout.module.js +0 -64
  466. package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
  467. package/esm2015/layout/public-api.js +0 -18
  468. package/esm2015/menu/covalent-core-menu.js +0 -10
  469. package/esm2015/menu/index.js +0 -7
  470. package/esm2015/menu/menu.component.js +0 -16
  471. package/esm2015/menu/menu.module.js +0 -22
  472. package/esm2015/menu/public-api.js +0 -8
  473. package/esm2015/message/covalent-core-message.js +0 -10
  474. package/esm2015/message/index.js +0 -7
  475. package/esm2015/message/message.component.js +0 -307
  476. package/esm2015/message/message.module.js +0 -21
  477. package/esm2015/message/public-api.js +0 -8
  478. package/esm2015/search/covalent-core-search.js +0 -10
  479. package/esm2015/search/index.js +0 -7
  480. package/esm2015/search/public-api.js +0 -9
  481. package/esm2015/search/search-box/search-box.component.js +0 -270
  482. package/esm2015/search/search-input/search-input.component.js +0 -260
  483. package/esm2015/search/search.module.js +0 -23
  484. package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
  485. package/esm2015/side-sheet/index.js +0 -7
  486. package/esm2015/side-sheet/public-api.js +0 -11
  487. package/esm2015/side-sheet/side-sheet-container.js +0 -402
  488. package/esm2015/side-sheet/side-sheet-ref.js +0 -50
  489. package/esm2015/side-sheet/side-sheet.animation.js +0 -20
  490. package/esm2015/side-sheet/side-sheet.config.js +0 -12
  491. package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
  492. package/esm2015/side-sheet/side-sheet.js +0 -360
  493. package/esm2015/side-sheet/side-sheet.module.js +0 -36
  494. package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
  495. package/esm2015/user-profile/index.js +0 -7
  496. package/esm2015/user-profile/public_api.js +0 -9
  497. package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
  498. package/esm2015/user-profile/user-profile.component.js +0 -26
  499. package/esm2015/user-profile/user-profile.module.js +0 -25
  500. package/fesm2015/covalent-core-breadcrumbs.js +0 -448
  501. package/fesm2015/covalent-core-common.js.map +0 -1
  502. package/fesm2015/covalent-core-dialogs.js +0 -1001
  503. package/fesm2015/covalent-core-dialogs.js.map +0 -1
  504. package/fesm2015/covalent-core-dynamic-menu.js +0 -204
  505. package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
  506. package/fesm2015/covalent-core-file.js +0 -855
  507. package/fesm2015/covalent-core-file.js.map +0 -1
  508. package/fesm2015/covalent-core-json-formatter.js +0 -377
  509. package/fesm2015/covalent-core-json-formatter.js.map +0 -1
  510. package/fesm2015/covalent-core-layout.js +0 -1663
  511. package/fesm2015/covalent-core-layout.js.map +0 -1
  512. package/fesm2015/covalent-core-menu.js +0 -57
  513. package/fesm2015/covalent-core-menu.js.map +0 -1
  514. package/fesm2015/covalent-core-message.js +0 -347
  515. package/fesm2015/covalent-core-message.js.map +0 -1
  516. package/fesm2015/covalent-core-search.js +0 -564
  517. package/fesm2015/covalent-core-search.js.map +0 -1
  518. package/fesm2015/covalent-core-side-sheet.js.map +0 -1
  519. package/fesm2015/covalent-core-user-profile.js +0 -103
  520. package/fesm2015/covalent-core-user-profile.js.map +0 -1
  521. package/fesm2015/covalent-core.js +0 -12
  522. package/fesm2015/covalent-core.js.map +0 -1
  523. package/file/covalent-core-file.metadata.json +0 -1
  524. package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
  525. package/layout/covalent-core-layout.metadata.json +0 -1
  526. package/menu/covalent-core-menu.metadata.json +0 -1
  527. package/message/covalent-core-message.metadata.json +0 -1
  528. package/schematics/collection.json +0 -11
  529. package/schematics/components.js +0 -111
  530. package/schematics/components.js.map +0 -1
  531. package/schematics/migration.json +0 -10
  532. package/schematics/ng-add/index.js +0 -58
  533. package/schematics/ng-add/index.js.map +0 -1
  534. package/schematics/ng-add/schema.js +0 -3
  535. package/schematics/ng-add/schema.js.map +0 -1
  536. package/schematics/ng-add/schema.json +0 -81
  537. package/schematics/ng-update/index.js +0 -52
  538. package/schematics/ng-update/index.js.map +0 -1
  539. package/schematics/ng-update/target-version.js +0 -8
  540. package/schematics/ng-update/target-version.js.map +0 -1
  541. package/schematics/version-names.js +0 -6
  542. package/schematics/version-names.js.map +0 -1
  543. package/search/covalent-core-search.metadata.json +0 -1
  544. package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
  545. package/user-profile/covalent-core-user-profile.metadata.json +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"covalent-core-dialogs.mjs","sources":["../../../../src/platform/core/dialogs/dialog.component.html","../../../../src/platform/core/dialogs/dialog.component.ts","../../../../src/platform/core/dialogs/alert-dialog/alert-dialog.component.html","../../../../src/platform/core/dialogs/alert-dialog/alert-dialog.component.ts","../../../../src/platform/core/dialogs/confirm-dialog/confirm-dialog.component.html","../../../../src/platform/core/dialogs/confirm-dialog/confirm-dialog.component.ts","../../../../src/platform/core/dialogs/prompt-dialog/prompt-dialog.component.html","../../../../src/platform/core/dialogs/prompt-dialog/prompt-dialog.component.ts","../../../../src/platform/core/dialogs/services/dialog.service.ts","../../../../src/platform/core/dialogs/window-dialog/window-dialog.component.ts","../../../../src/platform/core/dialogs/window-dialog/window-dialog.component.html","../../../../src/platform/core/dialogs/dialogs.module.ts","../../../../src/platform/core/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.ts","../../../../src/platform/core/dialogs/covalent-core-dialogs.ts"],"sourcesContent":["<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"td-dialog-title\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"td-dialog-content\"></ng-content>\n </div>\n <div class=\"td-dialog-actions\" *ngIf=\"dialogActions.length > 0\">\n <span class=\"td-dialog-spacer\"></span>\n <ng-content select=\"td-dialog-actions\"></ng-content>\n </div>\n</div>\n","import { Component, Directive, ContentChildren, QueryList, AfterContentInit } from '@angular/core';\n\n@Directive({ selector: 'td-dialog-title' })\nexport class TdDialogTitleDirective {}\n\n@Directive({ selector: 'td-dialog-content' })\nexport class TdDialogContentDirective {}\n\n@Directive({ selector: 'td-dialog-actions' })\nexport class TdDialogActionsDirective {}\n\n@Component({\n selector: 'td-dialog',\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n})\nexport class TdDialogComponent implements AfterContentInit {\n @ContentChildren(TdDialogTitleDirective, { descendants: true }) dialogTitle: QueryList<TdDialogTitleDirective>;\n @ContentChildren(TdDialogContentDirective, { descendants: true }) dialogContent: QueryList<TdDialogContentDirective>;\n @ContentChildren(TdDialogActionsDirective, { descendants: true }) dialogActions: QueryList<TdDialogActionsDirective>;\n\n ngAfterContentInit(): void {\n if (this.dialogTitle.length > 1) {\n throw new Error('Duplicate td-dialog-title component at in td-dialog.');\n }\n if (this.dialogContent.length > 1) {\n throw new Error('Duplicate td-dialog-content component at in td-dialog.');\n }\n if (this.dialogActions.length > 1) {\n throw new Error('Duplicate td-dialog-actions component at in td-dialog.');\n }\n }\n}\n","<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button color=\"accent\" (click)=\"close()\">{{ closeButton }}</button>\n </td-dialog-actions>\n</td-dialog>\n","import { Component } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\n\n@Component({\n selector: 'td-alert-dialog',\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./alert-dialog.component.scss'],\n})\nexport class TdAlertDialogComponent {\n title: string;\n message: string;\n closeButton: string = 'CLOSE';\n\n constructor(private _dialogRef: MatDialogRef<TdAlertDialogComponent>) {}\n\n close(): void {\n this._dialogRef.close();\n }\n}\n","<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n [color]=\"isDestructive ? 'warn' : 'accent'\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n","import { Component } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\n\n@Component({\n selector: 'td-confirm-dialog',\n templateUrl: './confirm-dialog.component.html',\n styleUrls: ['./confirm-dialog.component.scss'],\n})\nexport class TdConfirmDialogComponent {\n title: string;\n message: string;\n cancelButton: string = 'CANCEL';\n acceptButton: string = 'ACCEPT';\n isDestructive: boolean = false;\n\n constructor(private _dialogRef: MatDialogRef<TdConfirmDialogComponent>) {}\n\n cancel(): void {\n this._dialogRef.close(false);\n }\n\n accept(): void {\n this._dialogRef.close(true);\n }\n}\n","<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n <form #form=\"ngForm\" novalidate>\n <div class=\"td-dialog-input-wrapper\">\n <mat-form-field class=\"td-dialog-input\">\n <input\n matInput\n #input\n (focus)=\"handleInputFocus()\"\n (keydown.enter)=\"$event.preventDefault(); form.valid && accept()\"\n [(ngModel)]=\"value\"\n name=\"value\"\n required\n />\n </mat-form-field>\n </div>\n </form>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n color=\"accent\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n [disabled]=\"!form.valid\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n","import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\n\n@Component({\n selector: 'td-prompt-dialog',\n templateUrl: './prompt-dialog.component.html',\n styleUrls: ['./prompt-dialog.component.scss'],\n})\nexport class TdPromptDialogComponent implements AfterViewInit {\n title: string;\n message: string;\n value: string;\n cancelButton: string = 'CANCEL';\n acceptButton: string = 'ACCEPT';\n\n @ViewChild('input', { static: true }) _input: ElementRef;\n\n constructor(private _dialogRef: MatDialogRef<TdPromptDialogComponent>) {}\n\n ngAfterViewInit(): void {\n // focus input once everything is rendered and good to go\n Promise.resolve().then(() => {\n (<HTMLInputElement>this._input.nativeElement).focus();\n });\n }\n\n /**\n * Method executed when input is focused\n * Selects all text\n */\n handleInputFocus(): void {\n (<HTMLInputElement>this._input.nativeElement).select();\n }\n\n cancel(): void {\n this._dialogRef.close();\n }\n\n accept(): void {\n this._dialogRef.close(this.value);\n }\n}\n","import { Injectable, Inject, Renderer2, RendererFactory2 } from '@angular/core';\nimport { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';\nimport { ComponentType } from '@angular/cdk/portal';\n\nimport { TdAlertDialogComponent } from '../alert-dialog/alert-dialog.component';\nimport { TdConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component';\nimport { TdPromptDialogComponent } from '../prompt-dialog/prompt-dialog.component';\nimport { DragDrop, DragRef } from '@angular/cdk/drag-drop';\nimport { DOCUMENT } from '@angular/common';\nimport { Subject } from 'rxjs';\n\nexport interface IDialogConfig extends MatDialogConfig {\n title?: string;\n message: string;\n}\n\nexport interface IAlertConfig extends IDialogConfig {\n closeButton?: string;\n}\n\nexport interface IConfirmConfig extends IDialogConfig {\n acceptButton?: string;\n cancelButton?: string;\n isDestructive?: boolean;\n}\n\nexport interface IPromptConfig extends IConfirmConfig {\n value?: string;\n}\n\nexport interface IDraggableConfig<T> {\n component: ComponentType<T>;\n config?: MatDialogConfig;\n // CSS selectors of element(s) inside the component meant to be drag handle(s)\n dragHandleSelectors?: string[];\n // Class that will be added to the component signifying drag-ability\n draggableClass?: string;\n}\n\nexport interface IDraggableRefs<T> {\n matDialogRef: MatDialogRef<T>;\n dragRefSubject: Subject<DragRef>;\n}\n\n@Injectable()\nexport class TdDialogService {\n private _renderer2: Renderer2;\n\n constructor(\n @Inject(DOCUMENT) private _document: any,\n private _dialogService: MatDialog,\n private _dragDrop: DragDrop,\n private rendererFactory: RendererFactory2,\n ) {\n this._renderer2 = rendererFactory.createRenderer(undefined, undefined);\n }\n\n /**\n * params:\n * - component: ComponentType<T>\n * - config: MatDialogConfig\n * Wrapper function over the open() method in MatDialog.\n * Opens a modal dialog containing the given component.\n */\n public open<T>(component: ComponentType<T>, config?: MatDialogConfig): MatDialogRef<T> {\n return this._dialogService.open(component, config);\n }\n\n /**\n * Wrapper function over the closeAll() method in MatDialog.\n * Closes all of the currently-open dialogs.\n */\n public closeAll(): void {\n this._dialogService.closeAll();\n }\n\n /**\n * params:\n * - config: IAlertConfig {\n * message: string;\n * title?: string;\n * viewContainerRef?: ViewContainerRef;\n * closeButton?: string;\n * }\n *\n * Opens an alert dialog with the provided config.\n * Returns an MatDialogRef<TdAlertDialogComponent> object.\n */\n public openAlert(config: IAlertConfig): MatDialogRef<TdAlertDialogComponent> {\n const dialogConfig: MatDialogConfig = this._createConfig(config);\n const dialogRef: MatDialogRef<TdAlertDialogComponent> = this._dialogService.open(\n TdAlertDialogComponent,\n dialogConfig,\n );\n const alertDialogComponent: TdAlertDialogComponent = dialogRef.componentInstance;\n alertDialogComponent.title = config.title;\n alertDialogComponent.message = config.message;\n if (config.closeButton) {\n alertDialogComponent.closeButton = config.closeButton;\n }\n return dialogRef;\n }\n\n /**\n * params:\n * - config: IConfirmConfig {\n * message: string;\n * title?: string;\n * viewContainerRef?: ViewContainerRef;\n * acceptButton?: string;\n * cancelButton?: string;\n * isDestructive?: boolean;\n * }\n *\n * Opens a confirm dialog with the provided config.\n * Returns an MatDialogRef<TdConfirmDialogComponent> object.\n */\n public openConfirm(config: IConfirmConfig): MatDialogRef<TdConfirmDialogComponent> {\n const dialogConfig: MatDialogConfig = this._createConfig(config);\n const dialogRef: MatDialogRef<TdConfirmDialogComponent> = this._dialogService.open(\n TdConfirmDialogComponent,\n dialogConfig,\n );\n const confirmDialogComponent: TdConfirmDialogComponent = dialogRef.componentInstance;\n confirmDialogComponent.title = config.title;\n confirmDialogComponent.message = config.message;\n if (config.acceptButton) {\n confirmDialogComponent.acceptButton = config.acceptButton;\n }\n if (config.isDestructive) {\n confirmDialogComponent.isDestructive = config.isDestructive;\n }\n if (config.cancelButton) {\n confirmDialogComponent.cancelButton = config.cancelButton;\n }\n return dialogRef;\n }\n\n /**\n * params:\n * - config: IPromptConfig {\n * message: string;\n * title?: string;\n * value?: string;\n * viewContainerRef?: ViewContainerRef;\n * acceptButton?: string;\n * cancelButton?: string;\n * }\n *\n * Opens a prompt dialog with the provided config.\n * Returns an MatDialogRef<TdPromptDialogComponent> object.\n */\n public openPrompt(config: IPromptConfig): MatDialogRef<TdPromptDialogComponent> {\n const dialogConfig: MatDialogConfig = this._createConfig(config);\n const dialogRef: MatDialogRef<TdPromptDialogComponent> = this._dialogService.open(\n TdPromptDialogComponent,\n dialogConfig,\n );\n const promptDialogComponent: TdPromptDialogComponent = dialogRef.componentInstance;\n promptDialogComponent.title = config.title;\n promptDialogComponent.message = config.message;\n promptDialogComponent.value = config.value;\n if (config.acceptButton) {\n promptDialogComponent.acceptButton = config.acceptButton;\n }\n if (config.cancelButton) {\n promptDialogComponent.cancelButton = config.cancelButton;\n }\n return dialogRef;\n }\n\n /**\n * Opens a draggable dialog containing the given component.\n */\n public openDraggable<T>({\n component,\n config,\n dragHandleSelectors,\n draggableClass,\n }: IDraggableConfig<T>): IDraggableRefs<T> {\n const matDialogRef: MatDialogRef<T, any> = this._dialogService.open(component, config);\n\n const dragRefSubject: Subject<DragRef> = new Subject<DragRef>();\n\n const CDK_OVERLAY_PANE_SELECTOR: string = '.cdk-overlay-pane';\n const CDK_OVERLAY_CONTAINER_SELECTOR: string = '.cdk-overlay-container';\n\n matDialogRef.afterOpened().subscribe(() => {\n const dialogElement: HTMLElement = <HTMLElement>this._document.getElementById(matDialogRef.id);\n const draggableElement: DragRef = this._dragDrop.createDrag(dialogElement);\n\n if (draggableClass) {\n const childComponent: Element = dialogElement.firstElementChild;\n this._renderer2.addClass(childComponent, draggableClass);\n }\n if (dragHandleSelectors && dragHandleSelectors.length) {\n const dragHandles: Element[] = dragHandleSelectors.reduce(\n (acc: Element[], curr: string) => [...acc, ...Array.from(dialogElement.querySelectorAll(curr))],\n [],\n );\n if (dragHandles.length > 0) {\n draggableElement.withHandles(<HTMLElement[]>dragHandles);\n }\n }\n const rootElement: Element = dialogElement.closest(CDK_OVERLAY_PANE_SELECTOR);\n if (rootElement) {\n draggableElement.withRootElement(<HTMLElement>rootElement);\n }\n\n const boundaryElement: Element = dialogElement.closest(CDK_OVERLAY_CONTAINER_SELECTOR);\n if (boundaryElement) {\n draggableElement.withBoundaryElement(<HTMLElement>boundaryElement);\n }\n dragRefSubject.next(draggableElement);\n });\n\n return { matDialogRef, dragRefSubject };\n }\n\n private _createConfig(config: IDialogConfig): MatDialogConfig {\n const dialogConfig: MatDialogConfig = new MatDialogConfig();\n dialogConfig.width = '400px';\n Object.assign(dialogConfig, config);\n return dialogConfig;\n }\n}\n","import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\nimport { ThemePalette } from '@angular/material/core';\n\n@Component({\n selector: 'td-window-dialog',\n templateUrl: './window-dialog.component.html',\n styleUrls: ['./window-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdWindowDialogComponent {\n @Input() toolbarColor: ThemePalette;\n @Input() docked: boolean = false;\n\n @Input() title: string;\n @Input() toggleDockedStateLabel: string;\n @Input() closeLabel: string;\n\n @Output() dockToggled: EventEmitter<boolean> = new EventEmitter();\n @Output() closed: EventEmitter<void> = new EventEmitter();\n\n toolbarHeight: number = 56;\n\n toggleDockedState(): void {\n this.dockToggled.emit(this.docked);\n }\n}\n","<mat-toolbar\n [color]=\"toolbarColor\"\n class=\"td-window-dialog-toolbar\"\n [style.min-height.px]=\"toolbarHeight\"\n [style.cursor]=\"docked ? 'inherit' : 'move'\"\n>\n <mat-toolbar-row [style.height.px]=\"toolbarHeight\">\n <div layout=\"row\" layout-align=\"start center\" flex>\n <span class=\"mat-title td-window-dialog-title truncate\" flex>\n {{ title }}\n </span>\n <!-- TODO: Resizing a drag-and-drop element was not working so removed docking/undocking for now-->\n <!-- <button mat-icon-button [matTooltip]=\"toggleDockedStateLabel\" (click)=\"toggleDockedState()\">\n <mat-icon [attr.aria-label]=\"toggleDockedStateLabel\">\n {{ docked ? 'unfold_more' : 'unfold_less' }}\n </mat-icon>\n </button> -->\n\n <button\n mat-icon-button\n [matTooltip]=\"closeLabel\"\n (click)=\"closed.emit()\"\n class=\"td-window-dialog-close\"\n [attr.data-test]=\"'close-button'\"\n >\n <mat-icon [attr.aria-label]=\"closeLabel\">close</mat-icon>\n </button>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<ng-content></ng-content>\n","import { Type } from '@angular/core';\nimport { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatButtonModule } from '@angular/material/button';\n\nimport {\n TdDialogComponent,\n TdDialogTitleDirective,\n TdDialogActionsDirective,\n TdDialogContentDirective,\n} from './dialog.component';\nimport { TdAlertDialogComponent } from './alert-dialog/alert-dialog.component';\nimport { TdConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component';\nimport { TdPromptDialogComponent } from './prompt-dialog/prompt-dialog.component';\nimport { TdDialogService } from './services/dialog.service';\nimport { TdWindowDialogComponent } from './window-dialog/window-dialog.component';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatIconModule } from '@angular/material/icon';\n\nconst TD_DIALOGS: Type<any>[] = [\n TdAlertDialogComponent,\n TdConfirmDialogComponent,\n TdPromptDialogComponent,\n TdDialogComponent,\n TdDialogTitleDirective,\n TdDialogActionsDirective,\n TdDialogContentDirective,\n TdWindowDialogComponent,\n];\n\nconst TD_DIALOGS_ENTRY_COMPONENTS: Type<any>[] = [\n TdAlertDialogComponent,\n TdConfirmDialogComponent,\n TdPromptDialogComponent,\n];\n\n@NgModule({\n imports: [\n FormsModule,\n CommonModule,\n MatDialogModule,\n MatInputModule,\n MatButtonModule,\n\n MatToolbarModule,\n MatTooltipModule,\n MatIconModule,\n ],\n declarations: [TD_DIALOGS],\n exports: [TD_DIALOGS],\n providers: [TdDialogService],\n})\nexport class CovalentDialogsModule {}\n","import { Renderer2 } from '@angular/core';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { DragRef } from '@angular/cdk/drag-drop';\nimport { merge, Subscription, fromEvent } from 'rxjs';\nimport { Point } from '@angular/cdk/drag-drop/drag-ref';\n\nenum corners {\n topRight = 'topRight',\n bottomRight = 'bottomRight',\n bottomLeft = 'bottomLeft',\n topLeft = 'topLeft',\n}\nenum cursors {\n nesw = 'nesw-resize',\n nwse = 'nwse-resize',\n}\nenum verticalAlignment {\n top = 'top',\n bottom = 'bottom',\n}\nenum horizontalAlignment {\n right = 'right',\n left = 'left',\n}\n\nconst cornerWidth: string = '16px';\nconst offset: string = '0px';\nconst minWidth: number = 200;\nconst minHeight: number = 200;\n\nfunction getPixels(sizeString: string): number {\n return parseFloat((sizeString || '').replace('px', ''));\n}\n\nfunction clamp(min: number, num: number, max: number): number {\n return Math.min(Math.max(num, min), max);\n}\n\nexport class ResizableDraggableDialog {\n cornerElements: HTMLElement[] = [];\n pointerDownSubs: Subscription[] = [];\n\n constructor(\n private _document: any,\n private _renderer2: Renderer2,\n private _dialogRef: MatDialogRef<any>,\n private _dragRef: DragRef,\n ) {\n this._initialPositionReset();\n this._attachCorners();\n }\n\n public attach(): void {\n this.detach();\n this._attachCorners();\n }\n\n public detach(): void {\n this.pointerDownSubs.forEach((sub: Subscription) => sub.unsubscribe());\n this.pointerDownSubs = [];\n this.cornerElements.forEach((elem: HTMLElement) => this._renderer2.removeChild(this._getDialogWrapper(), elem));\n this.cornerElements = [];\n }\n\n private _getDialogWrapper(): HTMLElement {\n return (<HTMLElement>this._document.getElementById(this._dialogRef.id) || {}).parentElement;\n }\n\n private _getViewportDimensions(): ClientRect {\n return this._getDialogWrapper().parentElement.getBoundingClientRect();\n }\n\n private _getDialogWrapperDimensions(): { width: number; height: number } {\n const dimensions: CSSStyleDeclaration = getComputedStyle(this._getDialogWrapper());\n return {\n width: getPixels(dimensions.width),\n height: getPixels(dimensions.height),\n };\n }\n\n private _initialPositionReset(): void {\n const { right: viewportWidth, bottom: viewportHeight }: ClientRect = this._getViewportDimensions();\n const { width, height } = this._getDialogWrapperDimensions();\n const {\n marginRight: originalDialogRight,\n marginLeft: originalDialogLeft,\n marginBottom: originalDialogBottom,\n marginTop: originalDialogTop,\n } = this._getDialogWrapper().style;\n let x: number;\n if (originalDialogLeft) {\n x = getPixels(originalDialogLeft);\n } else if (originalDialogRight) {\n x = viewportWidth - getPixels(originalDialogRight) - width;\n } else {\n x = (viewportWidth - width) / 2;\n }\n let y: number;\n if (originalDialogTop) {\n y = getPixels(originalDialogTop);\n } else if (originalDialogBottom) {\n y = viewportHeight - getPixels(originalDialogBottom) - height;\n } else {\n y = (viewportHeight - height) / 2;\n }\n // use drag ref's mechanisms for positioning instead of the dialog's\n this._dialogRef.updatePosition({ top: '0px', right: '0px', bottom: '0px', left: '0px' });\n this._dragRef.setFreeDragPosition({ x, y });\n }\n\n private _attachCorners(): void {\n Object.values(corners).forEach((corner: corners) => {\n const element: HTMLElement = this._renderer2.createElement('div');\n this.cornerElements = [...this.cornerElements, element];\n this._renderer2.setStyle(element, 'position', 'absolute');\n this._renderer2.setStyle(element, 'width', cornerWidth);\n this._renderer2.setStyle(element, 'height', cornerWidth);\n this._renderer2.appendChild(this._getDialogWrapper(), element);\n\n let cursor: cursors;\n let topBottom: verticalAlignment;\n let rightLeft: horizontalAlignment;\n\n if (corner === corners.topRight) {\n cursor = cursors.nesw;\n topBottom = verticalAlignment.top;\n rightLeft = horizontalAlignment.right;\n } else if (corner === corners.bottomRight) {\n cursor = cursors.nwse;\n topBottom = verticalAlignment.bottom;\n rightLeft = horizontalAlignment.right;\n\n const icon: HTMLElement = this._renderer2.createElement('i');\n this._renderer2.addClass(icon, 'material-icons');\n this._renderer2.appendChild(icon, this._renderer2.createText('filter_list'));\n this._renderer2.appendChild(element, icon);\n this._renderer2.setStyle(icon, 'transform', `rotate(${315}deg) translate(0px, ${offset})`);\n this._renderer2.setStyle(icon, 'font-size', cornerWidth);\n } else if (corner === corners.bottomLeft) {\n cursor = cursors.nesw;\n topBottom = verticalAlignment.bottom;\n rightLeft = horizontalAlignment.left;\n } else if (corner === corners.topLeft) {\n cursor = cursors.nwse;\n topBottom = verticalAlignment.top;\n rightLeft = horizontalAlignment.left;\n }\n this._renderer2.setStyle(element, topBottom, offset);\n this._renderer2.setStyle(element, rightLeft, offset);\n this._renderer2.setStyle(element, 'cursor', cursor);\n\n const pointerDownSub: Subscription = fromEvent(element, 'pointerdown').subscribe((event: PointerEvent) => {\n this._handleMouseDown(event, corner);\n });\n this.pointerDownSubs = [...this.pointerDownSubs, pointerDownSub];\n });\n }\n\n private _handleMouseDown(event: PointerEvent, corner: corners): void {\n this._renderer2.setStyle(<HTMLElement>this._document.body, 'user-select', 'none');\n const { width: originalWidth, height: originalHeight } = this._getDialogWrapperDimensions();\n const originalMouseX: number = event.pageX;\n const originalMouseY: number = event.pageY;\n const { x: currentTransformX, y: currentTransformY }: Point = this._dragRef.getFreeDragPosition();\n const { bottom: distanceFromBottom, right: distanceFromRight }: ClientRect =\n this._getDialogWrapper().getBoundingClientRect();\n const { right: viewportWidth, bottom: viewportHeight }: ClientRect = this._getViewportDimensions();\n\n const mouseMoveSub: Subscription = fromEvent(window, 'pointermove').subscribe((e: PointerEvent) => {\n e.preventDefault(); // prevent highlighting of text when dragging\n\n const yDelta: number = clamp(0, e.pageY, viewportHeight) - originalMouseY;\n const xDelta: number = clamp(0, e.pageX, viewportWidth) - originalMouseX;\n let newHeight: number;\n let newWidth: number;\n let newTransformY: number = 0;\n let newTransformX: number = 0;\n\n // top right\n if (corner === corners.topRight) {\n newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);\n newWidth = clamp(minWidth, originalWidth + xDelta, viewportWidth);\n newTransformY = clamp(0, currentTransformY + yDelta, distanceFromBottom - newHeight);\n newTransformX = currentTransformX;\n }\n // bottom right\n else if (corner === corners.bottomRight) {\n newHeight = clamp(minHeight, originalHeight + yDelta, viewportHeight);\n newWidth = clamp(minWidth, originalWidth + xDelta, viewportWidth);\n newTransformY = currentTransformY;\n newTransformX = currentTransformX;\n }\n // bottom left\n else if (corner === corners.bottomLeft) {\n newHeight = clamp(minHeight, originalHeight + yDelta, viewportHeight);\n newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);\n newTransformY = currentTransformY;\n newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);\n }\n // top left\n else if (corner === corners.topLeft) {\n newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);\n newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);\n\n newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);\n newTransformY = clamp(0, currentTransformY + yDelta, distanceFromBottom - newHeight);\n }\n this._dialogRef.updateSize(`${newWidth}px`, `${newHeight}px`);\n this._dragRef.setFreeDragPosition({\n x: newTransformX,\n y: newTransformY,\n });\n });\n\n const mouseUpSub: Subscription = merge(\n fromEvent(window, 'pointerup'),\n fromEvent(window, 'pointercancel'),\n ).subscribe(() => {\n this._renderer2.removeStyle(<HTMLElement>this._document.body, 'user-select');\n mouseMoveSub.unsubscribe();\n mouseUpSub.unsubscribe();\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"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UAAU,CAAC,WAAW,CAAc,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;YAC7E,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,UAAU,CAAC,WAAW,EAAE,CAAC;SAC1B,CAAC,CAAC;KACJ;;;AC9NH;;;;;;"}
@@ -0,0 +1,480 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2$1 from '@angular/material/button';
6
+ import { MatButtonModule } from '@angular/material/button';
7
+ import * as i3 from '@angular/material/icon';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import { MatListModule } from '@angular/material/list';
10
+ import * as i1 from '@angular/material/menu';
11
+ import { MatMenuModule } from '@angular/material/menu';
12
+ import { MatTooltipModule } from '@angular/material/tooltip';
13
+ import * as i4 from '@angular/material/divider';
14
+
15
+ function TdDynamicMenuComponent_button_0_mat_icon_1_Template(rf, ctx) {
16
+ if (rf & 1) {
17
+ i0.ɵɵelement(0, "mat-icon", 7);
18
+ }
19
+ if (rf & 2) {
20
+ const ctx_r3 = i0.ɵɵnextContext(2);
21
+ i0.ɵɵclassMap(ctx_r3.trigger.iconClasses);
22
+ i0.ɵɵproperty("svgIcon", ctx_r3.trigger.svgIcon);
23
+ }
24
+ }
25
+ function TdDynamicMenuComponent_button_0_mat_icon_2_Template(rf, ctx) {
26
+ if (rf & 1) {
27
+ i0.ɵɵelementStart(0, "mat-icon");
28
+ i0.ɵɵtext(1);
29
+ i0.ɵɵelementEnd();
30
+ }
31
+ if (rf & 2) {
32
+ const ctx_r4 = i0.ɵɵnextContext(2);
33
+ i0.ɵɵclassMap(ctx_r4.trigger.iconClasses);
34
+ i0.ɵɵadvance(1);
35
+ i0.ɵɵtextInterpolate(ctx_r4.trigger.icon);
36
+ }
37
+ }
38
+ function TdDynamicMenuComponent_button_0_Template(rf, ctx) {
39
+ if (rf & 1) {
40
+ i0.ɵɵelementStart(0, "button", 4);
41
+ i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_0_mat_icon_1_Template, 1, 3, "mat-icon", 5);
42
+ i0.ɵɵtemplate(2, TdDynamicMenuComponent_button_0_mat_icon_2_Template, 2, 3, "mat-icon", 6);
43
+ i0.ɵɵelementEnd();
44
+ }
45
+ if (rf & 2) {
46
+ const ctx_r0 = i0.ɵɵnextContext();
47
+ const _r2 = i0.ɵɵreference(3);
48
+ i0.ɵɵpropertyInterpolate("id", ctx_r0.trigger.id);
49
+ i0.ɵɵproperty("matMenuTriggerFor", _r2.childMenu);
50
+ i0.ɵɵadvance(1);
51
+ i0.ɵɵproperty("ngIf", ctx_r0.trigger.svgIcon);
52
+ i0.ɵɵadvance(1);
53
+ i0.ɵɵproperty("ngIf", ctx_r0.trigger.icon);
54
+ }
55
+ }
56
+ function TdDynamicMenuComponent_button_1_mat_icon_1_Template(rf, ctx) {
57
+ if (rf & 1) {
58
+ i0.ɵɵelement(0, "mat-icon", 7);
59
+ }
60
+ if (rf & 2) {
61
+ const ctx_r5 = i0.ɵɵnextContext(2);
62
+ i0.ɵɵclassMap(ctx_r5.trigger.iconClasses);
63
+ i0.ɵɵproperty("svgIcon", ctx_r5.trigger.svgIcon);
64
+ }
65
+ }
66
+ function TdDynamicMenuComponent_button_1_mat_icon_2_Template(rf, ctx) {
67
+ if (rf & 1) {
68
+ i0.ɵɵelementStart(0, "mat-icon");
69
+ i0.ɵɵtext(1);
70
+ i0.ɵɵelementEnd();
71
+ }
72
+ if (rf & 2) {
73
+ const ctx_r6 = i0.ɵɵnextContext(2);
74
+ i0.ɵɵclassMap(ctx_r6.trigger.iconClasses);
75
+ i0.ɵɵadvance(1);
76
+ i0.ɵɵtextInterpolate(ctx_r6.trigger.icon);
77
+ }
78
+ }
79
+ function TdDynamicMenuComponent_button_1_span_3_Template(rf, ctx) {
80
+ if (rf & 1) {
81
+ i0.ɵɵelementStart(0, "span");
82
+ i0.ɵɵtext(1);
83
+ i0.ɵɵelementEnd();
84
+ }
85
+ if (rf & 2) {
86
+ const ctx_r7 = i0.ɵɵnextContext(2);
87
+ i0.ɵɵadvance(1);
88
+ i0.ɵɵtextInterpolate1(" ", ctx_r7.trigger.text, " ");
89
+ }
90
+ }
91
+ function TdDynamicMenuComponent_button_1_Template(rf, ctx) {
92
+ if (rf & 1) {
93
+ i0.ɵɵelementStart(0, "button", 8);
94
+ i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_1_mat_icon_1_Template, 1, 3, "mat-icon", 5);
95
+ i0.ɵɵtemplate(2, TdDynamicMenuComponent_button_1_mat_icon_2_Template, 2, 3, "mat-icon", 6);
96
+ i0.ɵɵtemplate(3, TdDynamicMenuComponent_button_1_span_3_Template, 2, 1, "span", 9);
97
+ i0.ɵɵelementEnd();
98
+ }
99
+ if (rf & 2) {
100
+ const ctx_r1 = i0.ɵɵnextContext();
101
+ const _r2 = i0.ɵɵreference(3);
102
+ i0.ɵɵpropertyInterpolate("id", ctx_r1.trigger.id);
103
+ i0.ɵɵproperty("matMenuTriggerFor", _r2.childMenu);
104
+ i0.ɵɵadvance(1);
105
+ i0.ɵɵproperty("ngIf", ctx_r1.trigger.svgIcon);
106
+ i0.ɵɵadvance(1);
107
+ i0.ɵɵproperty("ngIf", ctx_r1.trigger.icon);
108
+ i0.ɵɵadvance(1);
109
+ i0.ɵɵproperty("ngIf", ctx_r1.trigger.text);
110
+ }
111
+ }
112
+ class TdDynamicMenuComponent {
113
+ constructor() {
114
+ this.itemClicked = new EventEmitter();
115
+ }
116
+ emitClicked(event) {
117
+ this.itemClicked.emit(event);
118
+ }
119
+ }
120
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuComponent.ɵfac = function TdDynamicMenuComponent_Factory(t) { return new (t || TdDynamicMenuComponent)(); };
121
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDynamicMenuComponent, selectors: [["td-dynamic-menu"]], inputs: { trigger: "trigger", items: "items" }, outputs: { itemClicked: "itemClicked" }, decls: 4, vars: 3, consts: [["mat-icon-button", "", 3, "id", "matMenuTriggerFor", 4, "ngIf"], ["mat-button", "", 3, "id", "matMenuTriggerFor", 4, "ngIf"], [3, "items", "itemClicked"], ["menu", ""], ["mat-icon-button", "", 3, "id", "matMenuTriggerFor"], [3, "class", "svgIcon", 4, "ngIf"], [3, "class", 4, "ngIf"], [3, "svgIcon"], ["mat-button", "", 3, "id", "matMenuTriggerFor"], [4, "ngIf"]], template: function TdDynamicMenuComponent_Template(rf, ctx) {
122
+ if (rf & 1) {
123
+ i0.ɵɵtemplate(0, TdDynamicMenuComponent_button_0_Template, 3, 4, "button", 0);
124
+ i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_1_Template, 4, 5, "button", 1);
125
+ i0.ɵɵelementStart(2, "td-dynamic-menu-item", 2, 3);
126
+ i0.ɵɵlistener("itemClicked", function TdDynamicMenuComponent_Template_td_dynamic_menu_item_itemClicked_2_listener($event) { return ctx.emitClicked($event); });
127
+ i0.ɵɵelementEnd();
128
+ }
129
+ if (rf & 2) {
130
+ i0.ɵɵproperty("ngIf", !ctx.trigger.text);
131
+ i0.ɵɵadvance(1);
132
+ i0.ɵɵproperty("ngIf", ctx.trigger.text);
133
+ i0.ɵɵadvance(1);
134
+ i0.ɵɵproperty("items", ctx.items);
135
+ }
136
+ }, styles: [""] });
137
+ (function () {
138
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuComponent, [{
139
+ type: Component,
140
+ args: [{ selector: 'td-dynamic-menu', template: "<button *ngIf=\"!trigger.text\" mat-icon-button id=\"{{ trigger.id }}\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"trigger.svgIcon\" [class]=\"trigger.iconClasses\" [svgIcon]=\"trigger.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{ trigger.icon }}</mat-icon>\n</button>\n<button *ngIf=\"trigger.text\" mat-button id=\"{{ trigger.id }}\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"trigger.svgIcon\" [class]=\"trigger.iconClasses\" [svgIcon]=\"trigger.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{ trigger.icon }}</mat-icon>\n <span *ngIf=\"trigger.text\">\n {{ trigger.text }}\n </span>\n</button>\n\n<td-dynamic-menu-item #menu [items]=\"items\" (itemClicked)=\"emitClicked($event)\"></td-dynamic-menu-item>\n", styles: [""] }]
141
+ }], null, { trigger: [{
142
+ type: Input
143
+ }], items: [{
144
+ type: Input
145
+ }], itemClicked: [{
146
+ type: Output
147
+ }] });
148
+ })();
149
+
150
+ function TdDynamicMenuLinkComponent_a_0_mat_icon_1_Template(rf, ctx) {
151
+ if (rf & 1) {
152
+ i0.ɵɵelement(0, "mat-icon", 6);
153
+ }
154
+ if (rf & 2) {
155
+ const ctx_r2 = i0.ɵɵnextContext(2);
156
+ i0.ɵɵclassMap(ctx_r2.item.iconClasses);
157
+ i0.ɵɵproperty("svgIcon", ctx_r2.item.svgIcon);
158
+ }
159
+ }
160
+ function TdDynamicMenuLinkComponent_a_0_mat_icon_2_Template(rf, ctx) {
161
+ if (rf & 1) {
162
+ i0.ɵɵelementStart(0, "mat-icon");
163
+ i0.ɵɵtext(1);
164
+ i0.ɵɵelementEnd();
165
+ }
166
+ if (rf & 2) {
167
+ const ctx_r3 = i0.ɵɵnextContext(2);
168
+ i0.ɵɵclassMap(ctx_r3.item.iconClasses);
169
+ i0.ɵɵadvance(1);
170
+ i0.ɵɵtextInterpolate(ctx_r3.item.icon);
171
+ }
172
+ }
173
+ function TdDynamicMenuLinkComponent_a_0_mat_icon_5_Template(rf, ctx) {
174
+ if (rf & 1) {
175
+ i0.ɵɵelementStart(0, "mat-icon", 7);
176
+ i0.ɵɵtext(1, "launch");
177
+ i0.ɵɵelementEnd();
178
+ }
179
+ }
180
+ function TdDynamicMenuLinkComponent_a_0_Template(rf, ctx) {
181
+ if (rf & 1) {
182
+ const _r6 = i0.ɵɵgetCurrentView();
183
+ i0.ɵɵelementStart(0, "a", 2);
184
+ i0.ɵɵlistener("click", function TdDynamicMenuLinkComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.emitClicked(); });
185
+ i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_a_0_mat_icon_1_Template, 1, 3, "mat-icon", 3);
186
+ i0.ɵɵtemplate(2, TdDynamicMenuLinkComponent_a_0_mat_icon_2_Template, 2, 3, "mat-icon", 4);
187
+ i0.ɵɵelementStart(3, "span");
188
+ i0.ɵɵtext(4);
189
+ i0.ɵɵelementEnd();
190
+ i0.ɵɵtemplate(5, TdDynamicMenuLinkComponent_a_0_mat_icon_5_Template, 2, 0, "mat-icon", 5);
191
+ i0.ɵɵelementEnd();
192
+ }
193
+ if (rf & 2) {
194
+ const ctx_r0 = i0.ɵɵnextContext();
195
+ i0.ɵɵproperty("id", ctx_r0.item.id)("href", ctx_r0.item.link, i0.ɵɵsanitizeUrl)("target", ctx_r0.item.newTab ? "_blank" : "_self");
196
+ i0.ɵɵadvance(1);
197
+ i0.ɵɵproperty("ngIf", ctx_r0.item.svgIcon);
198
+ i0.ɵɵadvance(1);
199
+ i0.ɵɵproperty("ngIf", ctx_r0.item.icon);
200
+ i0.ɵɵadvance(2);
201
+ i0.ɵɵtextInterpolate(ctx_r0.item.text);
202
+ i0.ɵɵadvance(1);
203
+ i0.ɵɵproperty("ngIf", ctx_r0.item.newTab);
204
+ }
205
+ }
206
+ function TdDynamicMenuLinkComponent_button_1_mat_icon_1_Template(rf, ctx) {
207
+ if (rf & 1) {
208
+ i0.ɵɵelement(0, "mat-icon", 6);
209
+ }
210
+ if (rf & 2) {
211
+ const ctx_r7 = i0.ɵɵnextContext(2);
212
+ i0.ɵɵclassMap(ctx_r7.item.iconClasses);
213
+ i0.ɵɵproperty("svgIcon", ctx_r7.item.svgIcon);
214
+ }
215
+ }
216
+ function TdDynamicMenuLinkComponent_button_1_mat_icon_2_Template(rf, ctx) {
217
+ if (rf & 1) {
218
+ i0.ɵɵelementStart(0, "mat-icon");
219
+ i0.ɵɵtext(1);
220
+ i0.ɵɵelementEnd();
221
+ }
222
+ if (rf & 2) {
223
+ const ctx_r8 = i0.ɵɵnextContext(2);
224
+ i0.ɵɵclassMap(ctx_r8.item.iconClasses);
225
+ i0.ɵɵadvance(1);
226
+ i0.ɵɵtextInterpolate(ctx_r8.item.icon);
227
+ }
228
+ }
229
+ function TdDynamicMenuLinkComponent_button_1_Template(rf, ctx) {
230
+ if (rf & 1) {
231
+ const _r10 = i0.ɵɵgetCurrentView();
232
+ i0.ɵɵelementStart(0, "button", 8);
233
+ i0.ɵɵlistener("click", function TdDynamicMenuLinkComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.emitClicked(); });
234
+ i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_button_1_mat_icon_1_Template, 1, 3, "mat-icon", 3);
235
+ i0.ɵɵtemplate(2, TdDynamicMenuLinkComponent_button_1_mat_icon_2_Template, 2, 3, "mat-icon", 4);
236
+ i0.ɵɵelementStart(3, "span");
237
+ i0.ɵɵtext(4);
238
+ i0.ɵɵelementEnd();
239
+ i0.ɵɵelementEnd();
240
+ }
241
+ if (rf & 2) {
242
+ const ctx_r1 = i0.ɵɵnextContext();
243
+ i0.ɵɵproperty("id", ctx_r1.item.id);
244
+ i0.ɵɵadvance(1);
245
+ i0.ɵɵproperty("ngIf", ctx_r1.item.svgIcon);
246
+ i0.ɵɵadvance(1);
247
+ i0.ɵɵproperty("ngIf", ctx_r1.item.icon);
248
+ i0.ɵɵadvance(2);
249
+ i0.ɵɵtextInterpolate(ctx_r1.item.text);
250
+ }
251
+ }
252
+ class TdDynamicMenuLinkComponent {
253
+ constructor() {
254
+ this.itemClicked = new EventEmitter();
255
+ }
256
+ emitClicked() {
257
+ this.itemClicked.emit({ text: this.item.text, action: this.item.action });
258
+ }
259
+ }
260
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuLinkComponent.ɵfac = function TdDynamicMenuLinkComponent_Factory(t) { return new (t || TdDynamicMenuLinkComponent)(); };
261
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuLinkComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDynamicMenuLinkComponent, selectors: [["td-dynamic-menu-link"]], inputs: { item: "item" }, outputs: { itemClicked: "itemClicked" }, decls: 2, vars: 2, consts: [["class", "new-tab", "mat-menu-item", "", 3, "id", "href", "target", "click", 4, "ngIf"], ["mat-menu-item", "", 3, "id", "click", 4, "ngIf"], ["mat-menu-item", "", 1, "new-tab", 3, "id", "href", "target", "click"], [3, "class", "svgIcon", 4, "ngIf"], [3, "class", 4, "ngIf"], ["class", "new-tab-icon", 4, "ngIf"], [3, "svgIcon"], [1, "new-tab-icon"], ["mat-menu-item", "", 3, "id", "click"]], template: function TdDynamicMenuLinkComponent_Template(rf, ctx) {
262
+ if (rf & 1) {
263
+ i0.ɵɵtemplate(0, TdDynamicMenuLinkComponent_a_0_Template, 6, 7, "a", 0);
264
+ i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_button_1_Template, 5, 4, "button", 1);
265
+ }
266
+ if (rf & 2) {
267
+ i0.ɵɵproperty("ngIf", ctx.item.link);
268
+ i0.ɵɵadvance(1);
269
+ i0.ɵɵproperty("ngIf", ctx.item.action);
270
+ }
271
+ }, directives: [i2.NgIf, i1.MatMenuItem, i3.MatIcon], styles: [".new-tab[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.new-tab[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{-ms-flex:1;flex:1}.new-tab[_ngcontent-%COMP%] .new-tab-icon[_ngcontent-%COMP%]{margin:0 0 0 16px}"] });
272
+ (function () {
273
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuLinkComponent, [{
274
+ type: Component,
275
+ args: [{ selector: 'td-dynamic-menu-link', template: "<a\n *ngIf=\"item.link\"\n class=\"new-tab\"\n mat-menu-item\n [id]=\"item.id\"\n [href]=\"item.link\"\n [target]=\"item.newTab ? '_blank' : '_self'\"\n (click)=\"emitClicked()\"\n>\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span>{{ item.text }}</span>\n <mat-icon *ngIf=\"item.newTab\" class=\"new-tab-icon\">launch</mat-icon>\n</a>\n<button *ngIf=\"item.action\" mat-menu-item [id]=\"item.id\" (click)=\"emitClicked()\">\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span>{{ item.text }}</span>\n</button>\n", styles: [".new-tab{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.new-tab span{-ms-flex:1;flex:1}.new-tab .new-tab-icon{margin:0 0 0 16px}\n"] }]
276
+ }], null, { item: [{
277
+ type: Input
278
+ }], itemClicked: [{
279
+ type: Output
280
+ }] });
281
+ })();
282
+
283
+ const _c0 = ["childMenu"];
284
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_2_Template(rf, ctx) {
285
+ if (rf & 1) {
286
+ i0.ɵɵelement(0, "mat-icon", 9);
287
+ }
288
+ if (rf & 2) {
289
+ const item_r2 = i0.ɵɵnextContext(2).$implicit;
290
+ i0.ɵɵclassMap(item_r2.iconClasses);
291
+ i0.ɵɵproperty("svgIcon", item_r2.svgIcon);
292
+ }
293
+ }
294
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_3_Template(rf, ctx) {
295
+ if (rf & 1) {
296
+ i0.ɵɵelementStart(0, "mat-icon");
297
+ i0.ɵɵtext(1);
298
+ i0.ɵɵelementEnd();
299
+ }
300
+ if (rf & 2) {
301
+ const item_r2 = i0.ɵɵnextContext(2).$implicit;
302
+ i0.ɵɵclassMap(item_r2.iconClasses);
303
+ i0.ɵɵadvance(1);
304
+ i0.ɵɵtextInterpolate(item_r2.icon);
305
+ }
306
+ }
307
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_span_4_Template(rf, ctx) {
308
+ if (rf & 1) {
309
+ i0.ɵɵelementStart(0, "span");
310
+ i0.ɵɵtext(1);
311
+ i0.ɵɵelementEnd();
312
+ }
313
+ if (rf & 2) {
314
+ const item_r2 = i0.ɵɵnextContext(2).$implicit;
315
+ i0.ɵɵadvance(1);
316
+ i0.ɵɵtextInterpolate1(" ", item_r2.text, " ");
317
+ }
318
+ }
319
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_Template(rf, ctx) {
320
+ if (rf & 1) {
321
+ i0.ɵɵelementContainerStart(0);
322
+ i0.ɵɵelementStart(1, "button", 4);
323
+ i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_2_Template, 1, 3, "mat-icon", 5);
324
+ i0.ɵɵtemplate(3, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_3_Template, 2, 3, "mat-icon", 6);
325
+ i0.ɵɵtemplate(4, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_span_4_Template, 2, 1, "span", 3);
326
+ i0.ɵɵelementEnd();
327
+ i0.ɵɵelement(5, "td-dynamic-menu-item", 7, 8);
328
+ i0.ɵɵelementContainerEnd();
329
+ }
330
+ if (rf & 2) {
331
+ const _r9 = i0.ɵɵreference(6);
332
+ const item_r2 = i0.ɵɵnextContext().$implicit;
333
+ i0.ɵɵadvance(1);
334
+ i0.ɵɵproperty("id", item_r2.id)("matMenuTriggerFor", _r9.childMenu);
335
+ i0.ɵɵadvance(1);
336
+ i0.ɵɵproperty("ngIf", item_r2.svgIcon);
337
+ i0.ɵɵadvance(1);
338
+ i0.ɵɵproperty("ngIf", item_r2.icon);
339
+ i0.ɵɵadvance(1);
340
+ i0.ɵɵproperty("ngIf", item_r2.text);
341
+ i0.ɵɵadvance(1);
342
+ i0.ɵɵproperty("items", item_r2.children);
343
+ }
344
+ }
345
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_mat_divider_1_Template(rf, ctx) {
346
+ if (rf & 1) {
347
+ i0.ɵɵelement(0, "mat-divider", 12);
348
+ }
349
+ }
350
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_Template(rf, ctx) {
351
+ if (rf & 1) {
352
+ i0.ɵɵelementContainerStart(0);
353
+ i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_mat_divider_1_Template, 1, 0, "mat-divider", 10);
354
+ i0.ɵɵelementStart(2, "div", 11);
355
+ i0.ɵɵtext(3);
356
+ i0.ɵɵelementEnd();
357
+ i0.ɵɵelementContainerEnd();
358
+ }
359
+ if (rf & 2) {
360
+ const ctx_r17 = i0.ɵɵnextContext(2);
361
+ const index_r3 = ctx_r17.index;
362
+ const item_r2 = ctx_r17.$implicit;
363
+ i0.ɵɵadvance(1);
364
+ i0.ɵɵproperty("ngIf", index_r3 > 0);
365
+ i0.ɵɵadvance(2);
366
+ i0.ɵɵtextInterpolate(item_r2.text);
367
+ }
368
+ }
369
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_2_Template(rf, ctx) {
370
+ if (rf & 1) {
371
+ const _r19 = i0.ɵɵgetCurrentView();
372
+ i0.ɵɵelementContainerStart(0);
373
+ i0.ɵɵelementStart(1, "div", 13);
374
+ i0.ɵɵelementStart(2, "td-dynamic-menu-link", 14);
375
+ i0.ɵɵlistener("itemClicked", function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_2_Template_td_dynamic_menu_link_itemClicked_2_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(3); return ctx_r18.emitClicked($event); });
376
+ i0.ɵɵelementEnd();
377
+ i0.ɵɵelementEnd();
378
+ i0.ɵɵelementContainerEnd();
379
+ }
380
+ if (rf & 2) {
381
+ const item_r2 = i0.ɵɵnextContext(2).$implicit;
382
+ i0.ɵɵadvance(2);
383
+ i0.ɵɵproperty("item", item_r2);
384
+ }
385
+ }
386
+ function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_Template(rf, ctx) {
387
+ if (rf & 1) {
388
+ i0.ɵɵelementContainerStart(0);
389
+ i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_Template, 4, 2, "ng-container", 3);
390
+ i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_2_Template, 3, 1, "ng-container", 3);
391
+ i0.ɵɵelementContainerEnd();
392
+ }
393
+ if (rf & 2) {
394
+ const item_r2 = i0.ɵɵnextContext().$implicit;
395
+ i0.ɵɵadvance(1);
396
+ i0.ɵɵproperty("ngIf", !item_r2.link && !item_r2.action);
397
+ i0.ɵɵadvance(1);
398
+ i0.ɵɵproperty("ngIf", item_r2.link || item_r2.action);
399
+ }
400
+ }
401
+ function TdDynamicMenuItemComponent_ng_template_2_Template(rf, ctx) {
402
+ if (rf & 1) {
403
+ i0.ɵɵtemplate(0, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_Template, 7, 6, "ng-container", 3);
404
+ i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_Template, 3, 2, "ng-container", 3);
405
+ }
406
+ if (rf & 2) {
407
+ const item_r2 = ctx.$implicit;
408
+ i0.ɵɵproperty("ngIf", item_r2.children && item_r2.children.length > 0);
409
+ i0.ɵɵadvance(1);
410
+ i0.ɵɵproperty("ngIf", !item_r2.children || item_r2.children.length === 0);
411
+ }
412
+ }
413
+ class TdDynamicMenuItemComponent {
414
+ constructor() {
415
+ this.itemClicked = new EventEmitter();
416
+ }
417
+ emitClicked(event) {
418
+ this.itemClicked.emit(event);
419
+ }
420
+ }
421
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuItemComponent.ɵfac = function TdDynamicMenuItemComponent_Factory(t) { return new (t || TdDynamicMenuItemComponent)(); };
422
+ /** @nocollapse */ /** @nocollapse */ TdDynamicMenuItemComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDynamicMenuItemComponent, selectors: [["td-dynamic-menu-item"]], viewQuery: function TdDynamicMenuItemComponent_Query(rf, ctx) {
423
+ if (rf & 1) {
424
+ i0.ɵɵviewQuery(_c0, 7);
425
+ }
426
+ if (rf & 2) {
427
+ let _t;
428
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childMenu = _t.first);
429
+ }
430
+ }, inputs: { items: "items" }, outputs: { itemClicked: "itemClicked" }, decls: 3, vars: 2, consts: [[3, "overlapTrigger"], ["childMenu", "matMenu"], ["ngFor", "", 3, "ngForOf"], [4, "ngIf"], ["mat-menu-item", "", 3, "id", "matMenuTriggerFor"], [3, "class", "svgIcon", 4, "ngIf"], [3, "class", 4, "ngIf"], [3, "items"], ["menu", ""], [3, "svgIcon"], ["class", "group-divider", 4, "ngIf"], [1, "group-label", "text-sm"], [1, "group-divider"], ["mat-menu-item", "", 1, "pad-none"], [3, "item", "itemClicked"]], template: function TdDynamicMenuItemComponent_Template(rf, ctx) {
431
+ if (rf & 1) {
432
+ i0.ɵɵelementStart(0, "mat-menu", 0, 1);
433
+ i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_Template, 2, 2, "ng-template", 2);
434
+ i0.ɵɵelementEnd();
435
+ }
436
+ if (rf & 2) {
437
+ i0.ɵɵproperty("overlapTrigger", false);
438
+ i0.ɵɵadvance(2);
439
+ i0.ɵɵproperty("ngForOf", ctx.items);
440
+ }
441
+ }, directives: [i1.MatMenu, i2.NgForOf, i2.NgIf, i1.MatMenuItem, i1.MatMenuTrigger, i3.MatIcon, TdDynamicMenuItemComponent, i4.MatDivider, TdDynamicMenuLinkComponent], styles: [".group-divider[_ngcontent-%COMP%]{margin:8px}.group-label[_ngcontent-%COMP%]{padding:16px}"] });
442
+ (function () {
443
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuItemComponent, [{
444
+ type: Component,
445
+ args: [{ selector: 'td-dynamic-menu-item', template: "<mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <ng-template let-item let-index=\"index\" ngFor [ngForOf]=\"items\">\n <ng-container *ngIf=\"item.children && item.children.length > 0\">\n <button mat-menu-item [id]=\"item.id\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span *ngIf=\"item.text\">\n {{ item.text }}\n </span>\n </button>\n <td-dynamic-menu-item #menu [items]=\"item.children\"></td-dynamic-menu-item>\n </ng-container>\n <ng-container *ngIf=\"!item.children || item.children.length === 0\">\n <ng-container *ngIf=\"!item.link && !item.action\">\n <mat-divider class=\"group-divider\" *ngIf=\"index > 0\"></mat-divider>\n <div class=\"group-label text-sm\">{{ item.text }}</div>\n </ng-container>\n <ng-container *ngIf=\"item.link || item.action\">\n <div mat-menu-item class=\"pad-none\">\n <td-dynamic-menu-link [item]=\"item\" (itemClicked)=\"emitClicked($event)\"></td-dynamic-menu-link>\n </div>\n </ng-container>\n </ng-container>\n </ng-template>\n</mat-menu>\n", styles: [".group-divider{margin:8px}.group-label{padding:16px}\n"] }]
446
+ }], null, { items: [{
447
+ type: Input
448
+ }], itemClicked: [{
449
+ type: Output
450
+ }], childMenu: [{
451
+ type: ViewChild,
452
+ args: ['childMenu', { static: true }]
453
+ }] });
454
+ })();
455
+
456
+ class CovalentDynamicMenuModule {
457
+ }
458
+ /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵfac = function CovalentDynamicMenuModule_Factory(t) { return new (t || CovalentDynamicMenuModule)(); };
459
+ /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentDynamicMenuModule });
460
+ /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [], imports: [[CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule]] });
461
+ (function () {
462
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDynamicMenuModule, [{
463
+ type: NgModule,
464
+ args: [{
465
+ declarations: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],
466
+ imports: [CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule],
467
+ providers: [],
468
+ exports: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],
469
+ }]
470
+ }], null, null);
471
+ })();
472
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDynamicMenuModule, { declarations: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent], imports: [CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule], exports: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent] }); })();
473
+ i0.ɵɵsetComponentScope(TdDynamicMenuComponent, [i2.NgIf, i2$1.MatButton, i1.MatMenuTrigger, i3.MatIcon, TdDynamicMenuItemComponent], []);
474
+
475
+ /**
476
+ * Generated bundle index. Do not edit.
477
+ */
478
+
479
+ export { CovalentDynamicMenuModule, TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent };
480
+ //# sourceMappingURL=covalent-core-dynamic-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"covalent-core-dynamic-menu.mjs","sources":["../../../../src/platform/core/dynamic-menu/dynamic-menu.component.html","../../../../src/platform/core/dynamic-menu/dynamic-menu.component.ts","../../../../src/platform/core/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.html","../../../../src/platform/core/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.ts","../../../../src/platform/core/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.html","../../../../src/platform/core/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.ts","../../../../src/platform/core/dynamic-menu/dynamic-menu.module.ts","../../../../src/platform/core/dynamic-menu/covalent-core-dynamic-menu.ts"],"sourcesContent":["<button *ngIf=\"!trigger.text\" mat-icon-button id=\"{{ trigger.id }}\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"trigger.svgIcon\" [class]=\"trigger.iconClasses\" [svgIcon]=\"trigger.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{ trigger.icon }}</mat-icon>\n</button>\n<button *ngIf=\"trigger.text\" mat-button id=\"{{ trigger.id }}\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"trigger.svgIcon\" [class]=\"trigger.iconClasses\" [svgIcon]=\"trigger.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{ trigger.icon }}</mat-icon>\n <span *ngIf=\"trigger.text\">\n {{ trigger.text }}\n </span>\n</button>\n\n<td-dynamic-menu-item #menu [items]=\"items\" (itemClicked)=\"emitClicked($event)\"></td-dynamic-menu-item>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n// Trigger button launches top level menu. Must specify text and/or icon.\nexport interface IMenuTrigger {\n id?: string; // Optional identifier\n text?: string; // Text to display on button\n icon?: string; // Optional icon\n svgIcon?: string; // Optional svgIcon\n iconClasses?: string[]; // Optional styling classes\n}\n\n// Menu items can serve one of four roles:\n// - Submenu trigger (has children property)\n// - URL link (has link property)\n// - Action link (has action property)\n// - Grouping label (has neither children, link or action properties)\nexport interface IMenuItem {\n id?: string; // Optional identifier\n text: string; // Display text\n icon?: string; // Optional icon\n svgIcon?: string; // Optional svgIcon\n iconClasses?: string[]; // Optional styling classes\n // If children provided, item is a submenu trigger\n // Represents the contents of the submenu\n children?: IMenuItem[];\n // If link provided, item is a URL link\n link?: string; // href (relative or fully qualified).\n newTab?: boolean; // Indicates where URL should be displayed, current or new browser tab\n // If action provided, item is an action link\n // A click on this item will emit itemClicked event\n action?: string;\n}\n\n// Click action event payload derived from IMenuItem\nexport interface ITdDynamicMenuLinkClickEvent {\n text: string;\n action: string;\n}\n\n@Component({\n selector: 'td-dynamic-menu',\n styleUrls: ['dynamic-menu.component.scss'],\n templateUrl: './dynamic-menu.component.html',\n})\nexport class TdDynamicMenuComponent {\n @Input() trigger: IMenuTrigger;\n @Input() items: IMenuItem[];\n\n @Output() itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent> = new EventEmitter<ITdDynamicMenuLinkClickEvent>();\n\n emitClicked(event: ITdDynamicMenuLinkClickEvent): void {\n this.itemClicked.emit(event);\n }\n}\n","<a\n *ngIf=\"item.link\"\n class=\"new-tab\"\n mat-menu-item\n [id]=\"item.id\"\n [href]=\"item.link\"\n [target]=\"item.newTab ? '_blank' : '_self'\"\n (click)=\"emitClicked()\"\n>\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span>{{ item.text }}</span>\n <mat-icon *ngIf=\"item.newTab\" class=\"new-tab-icon\">launch</mat-icon>\n</a>\n<button *ngIf=\"item.action\" mat-menu-item [id]=\"item.id\" (click)=\"emitClicked()\">\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span>{{ item.text }}</span>\n</button>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { IMenuItem, ITdDynamicMenuLinkClickEvent } from '../../dynamic-menu.component';\n\n@Component({\n selector: 'td-dynamic-menu-link',\n templateUrl: './dynamic-menu-link.component.html',\n styleUrls: ['./dynamic-menu-link.component.scss'],\n})\nexport class TdDynamicMenuLinkComponent {\n @Input() item: IMenuItem;\n\n @Output() itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent> = new EventEmitter<ITdDynamicMenuLinkClickEvent>();\n\n emitClicked(): void {\n this.itemClicked.emit({ text: this.item.text, action: this.item.action });\n }\n}\n","<mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <ng-template let-item let-index=\"index\" ngFor [ngForOf]=\"items\">\n <ng-container *ngIf=\"item.children && item.children.length > 0\">\n <button mat-menu-item [id]=\"item.id\" [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon *ngIf=\"item.svgIcon\" [class]=\"item.iconClasses\" [svgIcon]=\"item.svgIcon\"></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{ item.icon }}</mat-icon>\n <span *ngIf=\"item.text\">\n {{ item.text }}\n </span>\n </button>\n <td-dynamic-menu-item #menu [items]=\"item.children\"></td-dynamic-menu-item>\n </ng-container>\n <ng-container *ngIf=\"!item.children || item.children.length === 0\">\n <ng-container *ngIf=\"!item.link && !item.action\">\n <mat-divider class=\"group-divider\" *ngIf=\"index > 0\"></mat-divider>\n <div class=\"group-label text-sm\">{{ item.text }}</div>\n </ng-container>\n <ng-container *ngIf=\"item.link || item.action\">\n <div mat-menu-item class=\"pad-none\">\n <td-dynamic-menu-link [item]=\"item\" (itemClicked)=\"emitClicked($event)\"></td-dynamic-menu-link>\n </div>\n </ng-container>\n </ng-container>\n </ng-template>\n</mat-menu>\n","import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { MatMenu } from '@angular/material/menu';\nimport { IMenuItem, ITdDynamicMenuLinkClickEvent } from '../dynamic-menu.component';\n\n@Component({\n selector: 'td-dynamic-menu-item',\n templateUrl: './dynamic-menu-item.component.html',\n styleUrls: ['./dynamic-menu-item.component.scss'],\n})\nexport class TdDynamicMenuItemComponent {\n @Input() items: IMenuItem[];\n\n @Output() itemClicked: EventEmitter<ITdDynamicMenuLinkClickEvent> = new EventEmitter<ITdDynamicMenuLinkClickEvent>();\n\n @ViewChild('childMenu', { static: true }) public childMenu: MatMenu;\n\n emitClicked(event: ITdDynamicMenuLinkClickEvent): void {\n this.itemClicked.emit(event);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { TdDynamicMenuComponent } from './dynamic-menu.component';\nimport { TdDynamicMenuItemComponent } from './dynamic-menu-item/dynamic-menu-item.component';\nimport { TdDynamicMenuLinkComponent } from './dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component';\n\n@NgModule({\n declarations: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],\n imports: [CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule],\n providers: [],\n exports: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],\n})\nexport class CovalentDynamicMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;QACE,8BAAuG;;;;QAArE,yCAA6B;QAAC,gDAA2B;;;;;QAC3F,gCAA6D;QAAA,YAAkB;QAAA,iBAAW;;;;QAA3D,yCAA6B;QAAC,eAAkB;QAAlB,yCAAkB;;;;;QAFjF,iCAAyG;QACvG,0FAAuG;QACvG,0FAA0F;QAC5F,iBAAS;;;;;QAHqC,iDAAqB;QAAC,iDAAoC;QAC3F,eAAqB;QAArB,6CAAqB;QACrB,eAAkB;QAAlB,0CAAkB;;;;;QAG7B,8BAAuG;;;;QAArE,yCAA6B;QAAC,gDAA2B;;;;;QAC3F,gCAA6D;QAAA,YAAkB;QAAA,iBAAW;;;;QAA3D,yCAA6B;QAAC,eAAkB;QAAlB,yCAAkB;;;;;QAC/E,4BAA2B;QACzB,YACF;QAAA,iBAAO;;;;QADL,eACF;QADE,oDACF;;;;;QALF,iCAAmG;QACjG,0FAAuG;QACvG,0FAA0F;QAC1F,kFAEO;QACT,iBAAS;;;;;QAN+B,iDAAqB;QAAC,iDAAoC;QACrF,eAAqB;QAArB,6CAAqB;QACrB,eAAkB;QAAlB,0CAAkB;QACtB,eAAkB;QAAlB,0CAAkB;;;MCqCd,sBAAsB;IALnC;QASY,gBAAW,GAA+C,IAAI,YAAY,EAAgC,CAAC;KAKtH;IAHC,WAAW,CAAC,KAAmC;QAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;;kIARU,sBAAsB;2HAAtB,sBAAsB;;YD5CnC,6EAGS;YACT,6EAMS;YAET,kDAAgF;YAApC,mIAAe,uBAAmB,IAAC;YAAC,iBAAuB;;;YAZ9F,wCAAmB;YAInB,eAAkB;YAAlB,uCAAkB;YAQC,eAAe;YAAf,iCAAe;;;;4ECgC9B,sBAAsB;kBALlC,SAAS;+BACE,iBAAiB;oBAKl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