@covalent/core 4.0.0-beta.2 → 4.1.0-develop.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/README.md +5 -4
  2. package/breadcrumbs/README.md +21 -17
  3. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
  4. package/breadcrumbs/breadcrumbs.component.d.ts +1 -0
  5. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
  6. package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
  7. package/common/README.md +3 -0
  8. package/common/_common-theme.scss +1 -1
  9. package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
  10. package/common/behaviors/disabled.mixin.d.ts +1 -1
  11. package/common/covalent-core-common.d.ts +1 -1
  12. package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
  13. package/common/{public-api.d.ts → public_api.d.ts} +0 -0
  14. package/common/styles/font/README.md +4 -2
  15. package/covalent-core.d.ts +1 -1
  16. package/dialogs/README.md +38 -30
  17. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
  18. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
  19. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  20. package/dialogs/dialog.component.d.ts +4 -4
  21. package/dialogs/dialogs.module.d.ts +1 -1
  22. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -3
  23. package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
  24. package/dialogs/src/README.md +223 -0
  25. package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
  26. package/dynamic-menu/README.md +6 -6
  27. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  28. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  29. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  30. package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
  31. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  32. package/dynamic-menu/public_api.d.ts +1 -0
  33. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
  34. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +20 -25
  35. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
  36. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
  37. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  38. package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
  39. package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
  40. package/esm2020/common/animations/common/interfaces.mjs +1 -1
  41. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
  42. package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
  43. package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
  44. package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
  45. package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
  46. package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
  47. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
  48. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
  49. package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
  50. package/esm2020/common/common.module.mjs +14 -15
  51. package/esm2020/common/covalent-core-common.mjs +2 -2
  52. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
  53. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
  54. package/esm2020/common/forms/validators/validators.mjs +6 -6
  55. package/esm2020/common/functions/clipboard.mjs +1 -1
  56. package/esm2020/common/functions/convert.mjs +1 -1
  57. package/esm2020/common/functions/download.mjs +1 -1
  58. package/esm2020/common/functions/file.mjs +1 -1
  59. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
  60. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
  61. package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
  62. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
  63. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
  64. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
  65. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
  66. package/esm2020/common/public_api.mjs +39 -0
  67. package/esm2020/common/services/icon.service.mjs +6 -6
  68. package/esm2020/common/services/router-path.service.mjs +6 -6
  69. package/esm2020/covalent-core.mjs +2 -2
  70. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
  71. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
  72. package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
  73. package/esm2020/dialogs/dialog.component.mjs +35 -76
  74. package/esm2020/dialogs/dialogs.module.mjs +39 -36
  75. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +15 -73
  76. package/esm2020/dialogs/public_api.mjs +9 -0
  77. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
  78. package/esm2020/dialogs/services/dialog.service.mjs +16 -13
  79. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
  80. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
  81. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
  82. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
  83. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
  84. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  85. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
  86. package/esm2020/dynamic-menu/public_api.mjs +2 -1
  87. package/esm2020/file/covalent-core-file.mjs +2 -2
  88. package/esm2020/file/directives/file-drop.directive.mjs +46 -47
  89. package/esm2020/file/directives/file-select.directive.mjs +32 -31
  90. package/esm2020/file/file-input/file-input.component.mjs +41 -68
  91. package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
  92. package/esm2020/file/file.module.mjs +32 -17
  93. package/esm2020/file/public_api.mjs +7 -0
  94. package/esm2020/file/services/file.service.mjs +13 -11
  95. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  96. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
  97. package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
  98. package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
  99. package/esm2020/json-formatter/public_api.mjs +3 -0
  100. package/esm2020/layout/covalent-core-layout.mjs +2 -2
  101. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
  102. package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
  103. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
  104. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
  105. package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
  106. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
  107. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
  108. package/esm2020/layout/layout-toggle.class.mjs +12 -15
  109. package/esm2020/layout/layout.component.mjs +22 -43
  110. package/esm2020/layout/layout.directives.mjs +48 -50
  111. package/esm2020/layout/layout.module.mjs +34 -35
  112. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
  113. package/esm2020/layout/public_api.mjs +13 -0
  114. package/esm2020/menu/covalent-core-menu.mjs +2 -2
  115. package/esm2020/menu/menu.component.mjs +7 -18
  116. package/esm2020/menu/menu.module.mjs +12 -13
  117. package/esm2020/menu/public_api.mjs +3 -0
  118. package/esm2020/message/collapse.animation.mjs +51 -0
  119. package/esm2020/message/covalent-core-message.mjs +2 -2
  120. package/esm2020/message/message.component.mjs +44 -102
  121. package/esm2020/message/message.module.mjs +19 -15
  122. package/esm2020/message/public_api.mjs +3 -0
  123. package/esm2020/public_api.mjs +2 -0
  124. package/esm2020/search/covalent-core-search.mjs +2 -2
  125. package/esm2020/search/public_api.mjs +4 -0
  126. package/esm2020/search/search-box/search-box.component.mjs +97 -123
  127. package/esm2020/search/search-input/search-input.component.mjs +116 -153
  128. package/esm2020/search/search.module.mjs +28 -13
  129. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
  130. package/esm2020/side-sheet/public_api.mjs +6 -0
  131. package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
  132. package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
  133. package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
  134. package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
  135. package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
  136. package/esm2020/side-sheet/side-sheet.mjs +44 -31
  137. package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
  138. package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
  139. package/esm2020/user-profile/public_api.mjs +1 -1
  140. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
  141. package/esm2020/user-profile/user-profile.component.mjs +13 -35
  142. package/esm2020/user-profile/user-profile.module.mjs +32 -14
  143. package/fesm2015/covalent-core-breadcrumbs.mjs +35 -76
  144. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
  145. package/fesm2015/covalent-core-common.mjs +170 -140
  146. package/fesm2015/covalent-core-common.mjs.map +1 -1
  147. package/fesm2015/covalent-core-dialogs.mjs +125 -358
  148. package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
  149. package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
  150. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
  151. package/fesm2015/covalent-core-file.mjs +148 -233
  152. package/fesm2015/covalent-core-file.mjs.map +1 -1
  153. package/fesm2015/covalent-core-json-formatter.mjs +93 -148
  154. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
  155. package/fesm2015/covalent-core-layout.mjs +194 -747
  156. package/fesm2015/covalent-core-layout.mjs.map +1 -1
  157. package/fesm2015/covalent-core-menu.mjs +10 -28
  158. package/fesm2015/covalent-core-menu.mjs.map +1 -1
  159. package/fesm2015/covalent-core-message.mjs +79 -104
  160. package/fesm2015/covalent-core-message.mjs.map +1 -1
  161. package/fesm2015/covalent-core-search.mjs +147 -227
  162. package/fesm2015/covalent-core-search.mjs.map +1 -1
  163. package/fesm2015/covalent-core-side-sheet.mjs +202 -173
  164. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
  165. package/fesm2015/covalent-core-user-profile.mjs +38 -114
  166. package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
  167. package/fesm2015/covalent-core.mjs.map +1 -1
  168. package/fesm2020/covalent-core-breadcrumbs.mjs +49 -71
  169. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
  170. package/fesm2020/covalent-core-common.mjs +224 -165
  171. package/fesm2020/covalent-core-common.mjs.map +1 -1
  172. package/fesm2020/covalent-core-dialogs.mjs +160 -338
  173. package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
  174. package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
  175. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
  176. package/fesm2020/covalent-core-file.mjs +229 -273
  177. package/fesm2020/covalent-core-file.mjs.map +1 -1
  178. package/fesm2020/covalent-core-json-formatter.mjs +97 -133
  179. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
  180. package/fesm2020/covalent-core-layout.mjs +353 -767
  181. package/fesm2020/covalent-core-layout.mjs.map +1 -1
  182. package/fesm2020/covalent-core-menu.mjs +17 -29
  183. package/fesm2020/covalent-core-menu.mjs.map +1 -1
  184. package/fesm2020/covalent-core-message.mjs +110 -114
  185. package/fesm2020/covalent-core-message.mjs.map +1 -1
  186. package/fesm2020/covalent-core-search.mjs +233 -281
  187. package/fesm2020/covalent-core-search.mjs.map +1 -1
  188. package/fesm2020/covalent-core-side-sheet.mjs +267 -200
  189. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
  190. package/fesm2020/covalent-core-user-profile.mjs +54 -109
  191. package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
  192. package/fesm2020/covalent-core.mjs.map +1 -1
  193. package/file/_file-theme.scss +2 -1
  194. package/file/covalent-core-file.d.ts +1 -1
  195. package/file/directives/file-drop.directive.d.ts +6 -7
  196. package/file/directives/file-select.directive.d.ts +2 -2
  197. package/file/file-input/file-input.component.d.ts +7 -7
  198. package/file/file-upload/file-upload.component.d.ts +16 -9
  199. package/file/{public-api.d.ts → public_api.d.ts} +0 -0
  200. package/file/{file-input → src/file-input}/README.md +46 -37
  201. package/file/{file-upload → src/file-upload}/README.md +36 -27
  202. package/json-formatter/README.md +8 -8
  203. package/json-formatter/collapse.animation.d.ts +24 -0
  204. package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
  205. package/json-formatter/json-formatter.component.d.ts +4 -4
  206. package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
  207. package/layout/README.md +48 -50
  208. package/layout/covalent-core-layout.d.ts +1 -1
  209. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
  210. package/layout/layout-footer/layout-footer.component.d.ts +3 -3
  211. package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
  212. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
  213. package/layout/layout-nav/layout-nav.component.d.ts +5 -5
  214. package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
  215. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
  216. package/layout/layout-toggle.class.d.ts +1 -1
  217. package/layout/layout.component.d.ts +4 -4
  218. package/layout/layout.directives.d.ts +2 -2
  219. package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
  220. package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
  221. package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
  222. package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
  223. package/layout/src/layout-nav/README.md +50 -0
  224. package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
  225. package/menu/covalent-core-menu.d.ts +1 -1
  226. package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
  227. package/message/README.md +26 -18
  228. package/message/collapse.animation.d.ts +24 -0
  229. package/message/covalent-core-message.d.ts +1 -1
  230. package/message/message.component.d.ts +4 -4
  231. package/message/{public-api.d.ts → public_api.d.ts} +0 -0
  232. package/package.json +36 -55
  233. package/{index.d.ts → public_api.d.ts} +0 -0
  234. package/search/README.md +74 -73
  235. package/search/covalent-core-search.d.ts +1 -1
  236. package/search/{public-api.d.ts → public_api.d.ts} +0 -0
  237. package/search/search-box/search-box.component.d.ts +10 -6
  238. package/search/search-input/search-input.component.d.ts +10 -6
  239. package/search/src/search-box/README.md +73 -0
  240. package/search/src/search-input/README.md +74 -0
  241. package/side-sheet/README.md +3 -5
  242. package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
  243. package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
  244. package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
  245. package/side-sheet/side-sheet-container.d.ts +18 -7
  246. package/side-sheet/side-sheet.content-directives.d.ts +22 -16
  247. package/side-sheet/side-sheet.d.ts +2 -2
  248. package/side-sheet/side-sheet.module.d.ts +1 -1
  249. package/user-profile/README.md +5 -5
  250. package/user-profile/covalent-core-user-profile.d.ts +1 -1
  251. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
  252. package/user-profile/user-profile.component.d.ts +2 -2
  253. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
  254. package/breadcrumbs/breadcrumbs.component.scss +0 -8
  255. package/breadcrumbs/index.d.ts +0 -1
  256. package/common/index.d.ts +0 -1
  257. package/common/material-icons.css +0 -111
  258. package/common/material-icons.css.map +0 -1
  259. package/common/material-icons.scss +0 -3
  260. package/common/platform.css +0 -16819
  261. package/common/platform.css.map +0 -1
  262. package/common/platform.scss +0 -7
  263. package/common/styles/_elevation.scss +0 -280
  264. package/common/styles/_layout.scss +0 -605
  265. package/common/styles/_palette-dark.scss +0 -326
  266. package/common/styles/_palette-light.scss +0 -637
  267. package/common/styles/_rtl.scss +0 -31
  268. package/common/styles/_styles.scss +0 -10
  269. package/common/styles/_theme-functions.scss +0 -25
  270. package/common/styles/_typography-functions.scss +0 -35
  271. package/common/styles/_variables.scss +0 -98
  272. package/common/styles/colors/_colors-dark.scss +0 -1399
  273. package/common/styles/colors/_colors-light.scss +0 -3235
  274. package/common/styles/colors/_colors.scss +0 -7
  275. package/common/styles/core/_button.scss +0 -60
  276. package/common/styles/core/_card.scss +0 -184
  277. package/common/styles/core/_content.scss +0 -43
  278. package/common/styles/core/_core.scss +0 -23
  279. package/common/styles/core/_divider.scss +0 -16
  280. package/common/styles/core/_icons.scss +0 -22
  281. package/common/styles/core/_list.scss +0 -8
  282. package/common/styles/core/_sidenav.scss +0 -22
  283. package/common/styles/core/_structure.scss +0 -127
  284. package/common/styles/core/_toolbar.scss +0 -53
  285. package/common/styles/core/_whiteframe.scss +0 -130
  286. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  287. package/common/styles/font/_font.scss +0 -99
  288. package/common/styles/utilities/_general.scss +0 -65
  289. package/common/styles/utilities/_pad.scss +0 -36
  290. package/common/styles/utilities/_pull.scss +0 -36
  291. package/common/styles/utilities/_push.scss +0 -36
  292. package/common/styles/utilities/_size.scss +0 -24
  293. package/common/styles/utilities/_text.scss +0 -105
  294. package/common/styles/utilities/_utilities.scss +0 -15
  295. package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
  296. package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
  297. package/dialogs/dialog.component.scss +0 -49
  298. package/dialogs/index.d.ts +0 -1
  299. package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
  300. package/dialogs/window-dialog/window-dialog.component.scss +0 -31
  301. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
  302. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
  303. package/dynamic-menu/dynamic-menu.component.scss +0 -0
  304. package/dynamic-menu/index.d.ts +0 -1
  305. package/esm2020/breadcrumbs/index.mjs +0 -2
  306. package/esm2020/breadcrumbs/public-api.mjs +0 -4
  307. package/esm2020/common/index.mjs +0 -2
  308. package/esm2020/common/public-api.mjs +0 -39
  309. package/esm2020/dialogs/index.mjs +0 -2
  310. package/esm2020/dialogs/public-api.mjs +0 -9
  311. package/esm2020/dynamic-menu/index.mjs +0 -2
  312. package/esm2020/file/index.mjs +0 -2
  313. package/esm2020/file/public-api.mjs +0 -7
  314. package/esm2020/index.mjs +0 -2
  315. package/esm2020/json-formatter/index.mjs +0 -2
  316. package/esm2020/json-formatter/public-api.mjs +0 -3
  317. package/esm2020/layout/index.mjs +0 -2
  318. package/esm2020/layout/public-api.mjs +0 -13
  319. package/esm2020/menu/index.mjs +0 -2
  320. package/esm2020/menu/public-api.mjs +0 -3
  321. package/esm2020/message/index.mjs +0 -2
  322. package/esm2020/message/public-api.mjs +0 -3
  323. package/esm2020/search/index.mjs +0 -2
  324. package/esm2020/search/public-api.mjs +0 -4
  325. package/esm2020/side-sheet/index.mjs +0 -2
  326. package/esm2020/side-sheet/public-api.mjs +0 -6
  327. package/esm2020/user-profile/index.mjs +0 -2
  328. package/file/file-input/file-input.component.scss +0 -22
  329. package/file/file-upload/file-upload.component.scss +0 -34
  330. package/file/index.d.ts +0 -1
  331. package/json-formatter/index.d.ts +0 -1
  332. package/json-formatter/json-formatter.component.scss +0 -74
  333. package/layout/index.d.ts +0 -1
  334. package/layout/layout-card-over/layout-card-over.component.scss +0 -45
  335. package/layout/layout-footer/layout-footer.component.scss +0 -4
  336. package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
  337. package/layout/layout-nav/README.md +0 -46
  338. package/layout/layout-nav/layout-nav.component.scss +0 -54
  339. package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
  340. package/layout/layout.component.scss +0 -16
  341. package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
  342. package/menu/index.d.ts +0 -1
  343. package/menu/menu.component.scss +0 -51
  344. package/message/index.d.ts +0 -1
  345. package/message/message.component.scss +0 -32
  346. package/schematics/README.md +0 -66
  347. package/schematics/ng-add/files/theme.scss +0 -64
  348. package/search/index.d.ts +0 -1
  349. package/search/search-box/README.md +0 -62
  350. package/search/search-box/search-box.component.scss +0 -37
  351. package/search/search-input/README.md +0 -65
  352. package/search/search-input/search-input.component.scss +0 -75
  353. package/side-sheet/index.d.ts +0 -1
  354. package/side-sheet/side-sheet.scss +0 -68
  355. package/theming/prebuilt/blue-grey-deep-orange.css +0 -2815
  356. package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
  357. package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
  358. package/theming/prebuilt/blue-orange.css +0 -2815
  359. package/theming/prebuilt/blue-orange.css.map +0 -1
  360. package/theming/prebuilt/blue-orange.scss +0 -20
  361. package/theming/prebuilt/indigo-pink.css +0 -2815
  362. package/theming/prebuilt/indigo-pink.css.map +0 -1
  363. package/theming/prebuilt/indigo-pink.scss +0 -20
  364. package/theming/prebuilt/orange-light-blue.css +0 -2815
  365. package/theming/prebuilt/orange-light-blue.css.map +0 -1
  366. package/theming/prebuilt/orange-light-blue.scss +0 -20
  367. package/theming/prebuilt/teal-orange.css +0 -2815
  368. package/theming/prebuilt/teal-orange.css.map +0 -1
  369. package/theming/prebuilt/teal-orange.scss +0 -20
  370. package/user-profile/index.d.ts +0 -1
  371. package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,339 +1,59 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/common';
3
+ import * as i5 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i2$1 from '@angular/material/button';
5
+ import * as i1$1 from '@angular/material/button';
6
6
  import { MatButtonModule } from '@angular/material/button';
7
- import * as i3 from '@angular/material/icon';
7
+ import * as i2 from '@angular/material/icon';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
9
  import { MatListModule } from '@angular/material/list';
10
10
  import * as i1 from '@angular/material/menu';
11
11
  import { MatMenuModule } from '@angular/material/menu';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
- import * as i4 from '@angular/material/divider';
13
+ import * as i3 from '@angular/material/divider';
14
14
 
15
- function TdDynamicMenuComponent_button_0_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
16
- i0.ɵɵelement(0, "mat-icon", 7);
17
- } if (rf & 2) {
18
- const ctx_r3 = i0.ɵɵnextContext(2);
19
- i0.ɵɵclassMap(ctx_r3.trigger.iconClasses);
20
- i0.ɵɵproperty("svgIcon", ctx_r3.trigger.svgIcon);
21
- } }
22
- function TdDynamicMenuComponent_button_0_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
23
- i0.ɵɵelementStart(0, "mat-icon");
24
- i0.ɵɵtext(1);
25
- i0.ɵɵelementEnd();
26
- } if (rf & 2) {
27
- const ctx_r4 = i0.ɵɵnextContext(2);
28
- i0.ɵɵclassMap(ctx_r4.trigger.iconClasses);
29
- i0.ɵɵadvance(1);
30
- i0.ɵɵtextInterpolate(ctx_r4.trigger.icon);
31
- } }
32
- function TdDynamicMenuComponent_button_0_Template(rf, ctx) { if (rf & 1) {
33
- i0.ɵɵelementStart(0, "button", 4);
34
- i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_0_mat_icon_1_Template, 1, 3, "mat-icon", 5);
35
- i0.ɵɵtemplate(2, TdDynamicMenuComponent_button_0_mat_icon_2_Template, 2, 3, "mat-icon", 6);
36
- i0.ɵɵelementEnd();
37
- } if (rf & 2) {
38
- const ctx_r0 = i0.ɵɵnextContext();
39
- const _r2 = i0.ɵɵreference(3);
40
- i0.ɵɵpropertyInterpolate("id", ctx_r0.trigger.id);
41
- i0.ɵɵproperty("matMenuTriggerFor", _r2.childMenu);
42
- i0.ɵɵadvance(1);
43
- i0.ɵɵproperty("ngIf", ctx_r0.trigger.svgIcon);
44
- i0.ɵɵadvance(1);
45
- i0.ɵɵproperty("ngIf", ctx_r0.trigger.icon);
46
- } }
47
- function TdDynamicMenuComponent_button_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
48
- i0.ɵɵelement(0, "mat-icon", 7);
49
- } if (rf & 2) {
50
- const ctx_r5 = i0.ɵɵnextContext(2);
51
- i0.ɵɵclassMap(ctx_r5.trigger.iconClasses);
52
- i0.ɵɵproperty("svgIcon", ctx_r5.trigger.svgIcon);
53
- } }
54
- function TdDynamicMenuComponent_button_1_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
55
- i0.ɵɵelementStart(0, "mat-icon");
56
- i0.ɵɵtext(1);
57
- i0.ɵɵelementEnd();
58
- } if (rf & 2) {
59
- const ctx_r6 = i0.ɵɵnextContext(2);
60
- i0.ɵɵclassMap(ctx_r6.trigger.iconClasses);
61
- i0.ɵɵadvance(1);
62
- i0.ɵɵtextInterpolate(ctx_r6.trigger.icon);
63
- } }
64
- function TdDynamicMenuComponent_button_1_span_3_Template(rf, ctx) { if (rf & 1) {
65
- i0.ɵɵelementStart(0, "span");
66
- i0.ɵɵtext(1);
67
- i0.ɵɵelementEnd();
68
- } if (rf & 2) {
69
- const ctx_r7 = i0.ɵɵnextContext(2);
70
- i0.ɵɵadvance(1);
71
- i0.ɵɵtextInterpolate1(" ", ctx_r7.trigger.text, " ");
72
- } }
73
- function TdDynamicMenuComponent_button_1_Template(rf, ctx) { if (rf & 1) {
74
- i0.ɵɵelementStart(0, "button", 8);
75
- i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_1_mat_icon_1_Template, 1, 3, "mat-icon", 5);
76
- i0.ɵɵtemplate(2, TdDynamicMenuComponent_button_1_mat_icon_2_Template, 2, 3, "mat-icon", 6);
77
- i0.ɵɵtemplate(3, TdDynamicMenuComponent_button_1_span_3_Template, 2, 1, "span", 9);
78
- i0.ɵɵelementEnd();
79
- } if (rf & 2) {
80
- const ctx_r1 = i0.ɵɵnextContext();
81
- const _r2 = i0.ɵɵreference(3);
82
- i0.ɵɵpropertyInterpolate("id", ctx_r1.trigger.id);
83
- i0.ɵɵproperty("matMenuTriggerFor", _r2.childMenu);
84
- i0.ɵɵadvance(1);
85
- i0.ɵɵproperty("ngIf", ctx_r1.trigger.svgIcon);
86
- i0.ɵɵadvance(1);
87
- i0.ɵɵproperty("ngIf", ctx_r1.trigger.icon);
88
- i0.ɵɵadvance(1);
89
- i0.ɵɵproperty("ngIf", ctx_r1.trigger.text);
90
- } }
91
- class TdDynamicMenuComponent {
15
+ class TdDynamicMenuLinkComponent {
92
16
  constructor() {
93
17
  this.itemClicked = new EventEmitter();
94
18
  }
95
- emitClicked(event) {
96
- this.itemClicked.emit(event);
19
+ emitClicked() {
20
+ this.itemClicked.emit({ text: this.item.text, action: this.item.action });
97
21
  }
98
22
  }
99
- /** @nocollapse */ /** @nocollapse */ TdDynamicMenuComponent.ɵfac = function TdDynamicMenuComponent_Factory(t) { return new (t || TdDynamicMenuComponent)(); };
100
- /** @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) { if (rf & 1) {
101
- i0.ɵɵtemplate(0, TdDynamicMenuComponent_button_0_Template, 3, 4, "button", 0);
102
- i0.ɵɵtemplate(1, TdDynamicMenuComponent_button_1_Template, 4, 5, "button", 1);
103
- i0.ɵɵelementStart(2, "td-dynamic-menu-item", 2, 3);
104
- i0.ɵɵlistener("itemClicked", function TdDynamicMenuComponent_Template_td_dynamic_menu_item_itemClicked_2_listener($event) { return ctx.emitClicked($event); });
105
- i0.ɵɵelementEnd();
106
- } if (rf & 2) {
107
- i0.ɵɵproperty("ngIf", !ctx.trigger.text);
108
- i0.ɵɵadvance(1);
109
- i0.ɵɵproperty("ngIf", ctx.trigger.text);
110
- i0.ɵɵadvance(1);
111
- i0.ɵɵproperty("items", ctx.items);
112
- } }, styles: [""] });
113
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuComponent, [{
114
- type: Component,
115
- 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: [""] }]
116
- }], null, { trigger: [{
117
- type: Input
118
- }], items: [{
119
- type: Input
120
- }], itemClicked: [{
121
- type: Output
122
- }] }); })();
23
+ TdDynamicMenuLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ TdDynamicMenuLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicMenuLinkComponent, selector: "td-dynamic-menu-link", inputs: { item: "item" }, outputs: { itemClicked: "itemClicked" }, ngImport: i0, 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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n <mat-icon *ngIf=\"item.newTab\" class=\"new-tab-icon\">launch</mat-icon>\n</a>\n<button\n *ngIf=\"item.action\"\n mat-menu-item\n [id]=\"item.id\"\n (click)=\"emitClicked()\"\n>\n <mat-icon\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n</button>\n", styles: [".new-tab{display:flex;justify-content:flex-start;align-items:center}.new-tab span{flex:1}.new-tab .new-tab-icon{margin:0 0 0 16px}\n"], components: [{ type: i1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuLinkComponent, decorators: [{
26
+ type: Component,
27
+ 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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n <mat-icon *ngIf=\"item.newTab\" class=\"new-tab-icon\">launch</mat-icon>\n</a>\n<button\n *ngIf=\"item.action\"\n mat-menu-item\n [id]=\"item.id\"\n (click)=\"emitClicked()\"\n>\n <mat-icon\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n</button>\n", styles: [".new-tab{display:flex;justify-content:flex-start;align-items:center}.new-tab span{flex:1}.new-tab .new-tab-icon{margin:0 0 0 16px}\n"] }]
28
+ }], propDecorators: { item: [{
29
+ type: Input
30
+ }], itemClicked: [{
31
+ type: Output
32
+ }] } });
123
33
 
124
- function TdDynamicMenuLinkComponent_a_0_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
125
- i0.ɵɵelement(0, "mat-icon", 6);
126
- } if (rf & 2) {
127
- const ctx_r2 = i0.ɵɵnextContext(2);
128
- i0.ɵɵclassMap(ctx_r2.item.iconClasses);
129
- i0.ɵɵproperty("svgIcon", ctx_r2.item.svgIcon);
130
- } }
131
- function TdDynamicMenuLinkComponent_a_0_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
132
- i0.ɵɵelementStart(0, "mat-icon");
133
- i0.ɵɵtext(1);
134
- i0.ɵɵelementEnd();
135
- } if (rf & 2) {
136
- const ctx_r3 = i0.ɵɵnextContext(2);
137
- i0.ɵɵclassMap(ctx_r3.item.iconClasses);
138
- i0.ɵɵadvance(1);
139
- i0.ɵɵtextInterpolate(ctx_r3.item.icon);
140
- } }
141
- function TdDynamicMenuLinkComponent_a_0_mat_icon_5_Template(rf, ctx) { if (rf & 1) {
142
- i0.ɵɵelementStart(0, "mat-icon", 7);
143
- i0.ɵɵtext(1, "launch");
144
- i0.ɵɵelementEnd();
145
- } }
146
- function TdDynamicMenuLinkComponent_a_0_Template(rf, ctx) { if (rf & 1) {
147
- const _r6 = i0.ɵɵgetCurrentView();
148
- i0.ɵɵelementStart(0, "a", 2);
149
- i0.ɵɵlistener("click", function TdDynamicMenuLinkComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.emitClicked(); });
150
- i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_a_0_mat_icon_1_Template, 1, 3, "mat-icon", 3);
151
- i0.ɵɵtemplate(2, TdDynamicMenuLinkComponent_a_0_mat_icon_2_Template, 2, 3, "mat-icon", 4);
152
- i0.ɵɵelementStart(3, "span");
153
- i0.ɵɵtext(4);
154
- i0.ɵɵelementEnd();
155
- i0.ɵɵtemplate(5, TdDynamicMenuLinkComponent_a_0_mat_icon_5_Template, 2, 0, "mat-icon", 5);
156
- i0.ɵɵelementEnd();
157
- } if (rf & 2) {
158
- const ctx_r0 = i0.ɵɵnextContext();
159
- i0.ɵɵproperty("id", ctx_r0.item.id)("href", ctx_r0.item.link, i0.ɵɵsanitizeUrl)("target", ctx_r0.item.newTab ? "_blank" : "_self");
160
- i0.ɵɵadvance(1);
161
- i0.ɵɵproperty("ngIf", ctx_r0.item.svgIcon);
162
- i0.ɵɵadvance(1);
163
- i0.ɵɵproperty("ngIf", ctx_r0.item.icon);
164
- i0.ɵɵadvance(2);
165
- i0.ɵɵtextInterpolate(ctx_r0.item.text);
166
- i0.ɵɵadvance(1);
167
- i0.ɵɵproperty("ngIf", ctx_r0.item.newTab);
168
- } }
169
- function TdDynamicMenuLinkComponent_button_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
170
- i0.ɵɵelement(0, "mat-icon", 6);
171
- } if (rf & 2) {
172
- const ctx_r7 = i0.ɵɵnextContext(2);
173
- i0.ɵɵclassMap(ctx_r7.item.iconClasses);
174
- i0.ɵɵproperty("svgIcon", ctx_r7.item.svgIcon);
175
- } }
176
- function TdDynamicMenuLinkComponent_button_1_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
177
- i0.ɵɵelementStart(0, "mat-icon");
178
- i0.ɵɵtext(1);
179
- i0.ɵɵelementEnd();
180
- } if (rf & 2) {
181
- const ctx_r8 = i0.ɵɵnextContext(2);
182
- i0.ɵɵclassMap(ctx_r8.item.iconClasses);
183
- i0.ɵɵadvance(1);
184
- i0.ɵɵtextInterpolate(ctx_r8.item.icon);
185
- } }
186
- function TdDynamicMenuLinkComponent_button_1_Template(rf, ctx) { if (rf & 1) {
187
- const _r10 = i0.ɵɵgetCurrentView();
188
- i0.ɵɵelementStart(0, "button", 8);
189
- i0.ɵɵlistener("click", function TdDynamicMenuLinkComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.emitClicked(); });
190
- i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_button_1_mat_icon_1_Template, 1, 3, "mat-icon", 3);
191
- i0.ɵɵtemplate(2, TdDynamicMenuLinkComponent_button_1_mat_icon_2_Template, 2, 3, "mat-icon", 4);
192
- i0.ɵɵelementStart(3, "span");
193
- i0.ɵɵtext(4);
194
- i0.ɵɵelementEnd();
195
- i0.ɵɵelementEnd();
196
- } if (rf & 2) {
197
- const ctx_r1 = i0.ɵɵnextContext();
198
- i0.ɵɵproperty("id", ctx_r1.item.id);
199
- i0.ɵɵadvance(1);
200
- i0.ɵɵproperty("ngIf", ctx_r1.item.svgIcon);
201
- i0.ɵɵadvance(1);
202
- i0.ɵɵproperty("ngIf", ctx_r1.item.icon);
203
- i0.ɵɵadvance(2);
204
- i0.ɵɵtextInterpolate(ctx_r1.item.text);
205
- } }
206
- class TdDynamicMenuLinkComponent {
34
+ class TdDynamicMenuItemComponent {
207
35
  constructor() {
208
36
  this.itemClicked = new EventEmitter();
209
37
  }
210
- emitClicked() {
211
- this.itemClicked.emit({ text: this.item.text, action: this.item.action });
38
+ emitClicked(event) {
39
+ this.itemClicked.emit(event);
212
40
  }
213
41
  }
214
- /** @nocollapse */ /** @nocollapse */ TdDynamicMenuLinkComponent.ɵfac = function TdDynamicMenuLinkComponent_Factory(t) { return new (t || TdDynamicMenuLinkComponent)(); };
215
- /** @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) { if (rf & 1) {
216
- i0.ɵɵtemplate(0, TdDynamicMenuLinkComponent_a_0_Template, 6, 7, "a", 0);
217
- i0.ɵɵtemplate(1, TdDynamicMenuLinkComponent_button_1_Template, 5, 4, "button", 1);
218
- } if (rf & 2) {
219
- i0.ɵɵproperty("ngIf", ctx.item.link);
220
- i0.ɵɵadvance(1);
221
- i0.ɵɵproperty("ngIf", ctx.item.action);
222
- } }, 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}"] });
223
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuLinkComponent, [{
224
- type: Component,
225
- 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"] }]
226
- }], null, { item: [{
227
- type: Input
228
- }], itemClicked: [{
229
- type: Output
230
- }] }); })();
42
+ TdDynamicMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ TdDynamicMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicMenuItemComponent, selector: "td-dynamic-menu-item", inputs: { items: "items" }, outputs: { itemClicked: "itemClicked" }, viewQueries: [{ propertyName: "childMenu", first: true, predicate: ["childMenu"], descendants: true, static: true }], ngImport: i0, 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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span *ngIf=\"item.text\">\n {{ item.text }}\n </span>\n </button>\n <td-dynamic-menu-item\n #menu\n [items]=\"item.children\"\n ></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\n [item]=\"item\"\n (itemClicked)=\"emitClicked($event)\"\n ></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"], components: [{ type: i1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TdDynamicMenuItemComponent, selector: "td-dynamic-menu-item", inputs: ["items"], outputs: ["itemClicked"] }, { type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: TdDynamicMenuLinkComponent, selector: "td-dynamic-menu-link", inputs: ["item"], outputs: ["itemClicked"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuItemComponent, decorators: [{
45
+ type: Component,
46
+ 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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span *ngIf=\"item.text\">\n {{ item.text }}\n </span>\n </button>\n <td-dynamic-menu-item\n #menu\n [items]=\"item.children\"\n ></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\n [item]=\"item\"\n (itemClicked)=\"emitClicked($event)\"\n ></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"] }]
47
+ }], propDecorators: { items: [{
48
+ type: Input
49
+ }], itemClicked: [{
50
+ type: Output
51
+ }], childMenu: [{
52
+ type: ViewChild,
53
+ args: ['childMenu', { static: true }]
54
+ }] } });
231
55
 
232
- const _c0 = ["childMenu"];
233
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
234
- i0.ɵɵelement(0, "mat-icon", 9);
235
- } if (rf & 2) {
236
- const item_r2 = i0.ɵɵnextContext(2).$implicit;
237
- i0.ɵɵclassMap(item_r2.iconClasses);
238
- i0.ɵɵproperty("svgIcon", item_r2.svgIcon);
239
- } }
240
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
241
- i0.ɵɵelementStart(0, "mat-icon");
242
- i0.ɵɵtext(1);
243
- i0.ɵɵelementEnd();
244
- } if (rf & 2) {
245
- const item_r2 = i0.ɵɵnextContext(2).$implicit;
246
- i0.ɵɵclassMap(item_r2.iconClasses);
247
- i0.ɵɵadvance(1);
248
- i0.ɵɵtextInterpolate(item_r2.icon);
249
- } }
250
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_span_4_Template(rf, ctx) { if (rf & 1) {
251
- i0.ɵɵelementStart(0, "span");
252
- i0.ɵɵtext(1);
253
- i0.ɵɵelementEnd();
254
- } if (rf & 2) {
255
- const item_r2 = i0.ɵɵnextContext(2).$implicit;
256
- i0.ɵɵadvance(1);
257
- i0.ɵɵtextInterpolate1(" ", item_r2.text, " ");
258
- } }
259
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
260
- i0.ɵɵelementContainerStart(0);
261
- i0.ɵɵelementStart(1, "button", 4);
262
- i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_2_Template, 1, 3, "mat-icon", 5);
263
- i0.ɵɵtemplate(3, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_mat_icon_3_Template, 2, 3, "mat-icon", 6);
264
- i0.ɵɵtemplate(4, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_span_4_Template, 2, 1, "span", 3);
265
- i0.ɵɵelementEnd();
266
- i0.ɵɵelement(5, "td-dynamic-menu-item", 7, 8);
267
- i0.ɵɵelementContainerEnd();
268
- } if (rf & 2) {
269
- const _r9 = i0.ɵɵreference(6);
270
- const item_r2 = i0.ɵɵnextContext().$implicit;
271
- i0.ɵɵadvance(1);
272
- i0.ɵɵproperty("id", item_r2.id)("matMenuTriggerFor", _r9.childMenu);
273
- i0.ɵɵadvance(1);
274
- i0.ɵɵproperty("ngIf", item_r2.svgIcon);
275
- i0.ɵɵadvance(1);
276
- i0.ɵɵproperty("ngIf", item_r2.icon);
277
- i0.ɵɵadvance(1);
278
- i0.ɵɵproperty("ngIf", item_r2.text);
279
- i0.ɵɵadvance(1);
280
- i0.ɵɵproperty("items", item_r2.children);
281
- } }
282
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_mat_divider_1_Template(rf, ctx) { if (rf & 1) {
283
- i0.ɵɵelement(0, "mat-divider", 12);
284
- } }
285
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
286
- i0.ɵɵelementContainerStart(0);
287
- i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_mat_divider_1_Template, 1, 0, "mat-divider", 10);
288
- i0.ɵɵelementStart(2, "div", 11);
289
- i0.ɵɵtext(3);
290
- i0.ɵɵelementEnd();
291
- i0.ɵɵelementContainerEnd();
292
- } if (rf & 2) {
293
- const ctx_r17 = i0.ɵɵnextContext(2);
294
- const index_r3 = ctx_r17.index;
295
- const item_r2 = ctx_r17.$implicit;
296
- i0.ɵɵadvance(1);
297
- i0.ɵɵproperty("ngIf", index_r3 > 0);
298
- i0.ɵɵadvance(2);
299
- i0.ɵɵtextInterpolate(item_r2.text);
300
- } }
301
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
302
- const _r19 = i0.ɵɵgetCurrentView();
303
- i0.ɵɵelementContainerStart(0);
304
- i0.ɵɵelementStart(1, "div", 13);
305
- i0.ɵɵelementStart(2, "td-dynamic-menu-link", 14);
306
- 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); });
307
- i0.ɵɵelementEnd();
308
- i0.ɵɵelementEnd();
309
- i0.ɵɵelementContainerEnd();
310
- } if (rf & 2) {
311
- const item_r2 = i0.ɵɵnextContext(2).$implicit;
312
- i0.ɵɵadvance(2);
313
- i0.ɵɵproperty("item", item_r2);
314
- } }
315
- function TdDynamicMenuItemComponent_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
316
- i0.ɵɵelementContainerStart(0);
317
- i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_1_Template, 4, 2, "ng-container", 3);
318
- i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_ng_container_2_Template, 3, 1, "ng-container", 3);
319
- i0.ɵɵelementContainerEnd();
320
- } if (rf & 2) {
321
- const item_r2 = i0.ɵɵnextContext().$implicit;
322
- i0.ɵɵadvance(1);
323
- i0.ɵɵproperty("ngIf", !item_r2.link && !item_r2.action);
324
- i0.ɵɵadvance(1);
325
- i0.ɵɵproperty("ngIf", item_r2.link || item_r2.action);
326
- } }
327
- function TdDynamicMenuItemComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
328
- i0.ɵɵtemplate(0, TdDynamicMenuItemComponent_ng_template_2_ng_container_0_Template, 7, 6, "ng-container", 3);
329
- i0.ɵɵtemplate(1, TdDynamicMenuItemComponent_ng_template_2_ng_container_1_Template, 3, 2, "ng-container", 3);
330
- } if (rf & 2) {
331
- const item_r2 = ctx.$implicit;
332
- i0.ɵɵproperty("ngIf", item_r2.children && item_r2.children.length > 0);
333
- i0.ɵɵadvance(1);
334
- i0.ɵɵproperty("ngIf", !item_r2.children || item_r2.children.length === 0);
335
- } }
336
- class TdDynamicMenuItemComponent {
56
+ class TdDynamicMenuComponent {
337
57
  constructor() {
338
58
  this.itemClicked = new EventEmitter();
339
59
  }
@@ -341,49 +61,64 @@ class TdDynamicMenuItemComponent {
341
61
  this.itemClicked.emit(event);
342
62
  }
343
63
  }
344
- /** @nocollapse */ /** @nocollapse */ TdDynamicMenuItemComponent.ɵfac = function TdDynamicMenuItemComponent_Factory(t) { return new (t || TdDynamicMenuItemComponent)(); };
345
- /** @nocollapse */ /** @nocollapse */ TdDynamicMenuItemComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDynamicMenuItemComponent, selectors: [["td-dynamic-menu-item"]], viewQuery: function TdDynamicMenuItemComponent_Query(rf, ctx) { if (rf & 1) {
346
- i0.ɵɵviewQuery(_c0, 7);
347
- } if (rf & 2) {
348
- let _t;
349
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childMenu = _t.first);
350
- } }, 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) { if (rf & 1) {
351
- i0.ɵɵelementStart(0, "mat-menu", 0, 1);
352
- i0.ɵɵtemplate(2, TdDynamicMenuItemComponent_ng_template_2_Template, 2, 2, "ng-template", 2);
353
- i0.ɵɵelementEnd();
354
- } if (rf & 2) {
355
- i0.ɵɵproperty("overlapTrigger", false);
356
- i0.ɵɵadvance(2);
357
- i0.ɵɵproperty("ngForOf", ctx.items);
358
- } }, 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}"] });
359
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDynamicMenuItemComponent, [{
360
- type: Component,
361
- 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"] }]
362
- }], null, { items: [{
363
- type: Input
364
- }], itemClicked: [{
365
- type: Output
366
- }], childMenu: [{
367
- type: ViewChild,
368
- args: ['childMenu', { static: true }]
369
- }] }); })();
64
+ TdDynamicMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
65
+ TdDynamicMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDynamicMenuComponent, selector: "td-dynamic-menu", inputs: { trigger: "trigger", items: "items" }, outputs: { itemClicked: "itemClicked" }, ngImport: i0, template: "<button\n *ngIf=\"!trigger.text\"\n mat-icon-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n</button>\n<button\n *ngIf=\"trigger.text\"\n mat-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n <span *ngIf=\"trigger.text\">\n {{ trigger.text }}\n </span>\n</button>\n\n<td-dynamic-menu-item\n #menu\n [items]=\"items\"\n (itemClicked)=\"emitClicked($event)\"\n></td-dynamic-menu-item>\n", styles: [""], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TdDynamicMenuItemComponent, selector: "td-dynamic-menu-item", inputs: ["items"], outputs: ["itemClicked"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDynamicMenuComponent, decorators: [{
67
+ type: Component,
68
+ args: [{ selector: 'td-dynamic-menu', template: "<button\n *ngIf=\"!trigger.text\"\n mat-icon-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n</button>\n<button\n *ngIf=\"trigger.text\"\n mat-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n <span *ngIf=\"trigger.text\">\n {{ trigger.text }}\n </span>\n</button>\n\n<td-dynamic-menu-item\n #menu\n [items]=\"items\"\n (itemClicked)=\"emitClicked($event)\"\n></td-dynamic-menu-item>\n", styles: [""] }]
69
+ }], propDecorators: { trigger: [{
70
+ type: Input
71
+ }], items: [{
72
+ type: Input
73
+ }], itemClicked: [{
74
+ type: Output
75
+ }] } });
370
76
 
371
77
  class CovalentDynamicMenuModule {
372
78
  }
373
- /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵfac = function CovalentDynamicMenuModule_Factory(t) { return new (t || CovalentDynamicMenuModule)(); };
374
- /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentDynamicMenuModule });
375
- /** @nocollapse */ /** @nocollapse */ CovalentDynamicMenuModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [], imports: [[CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule]] });
376
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDynamicMenuModule, [{
377
- type: NgModule,
378
- args: [{
379
- declarations: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],
380
- imports: [CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule],
381
- providers: [],
382
- exports: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent],
383
- }]
384
- }], null, null); })();
385
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDynamicMenuModule, { declarations: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent], imports: [CommonModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatTooltipModule], exports: [TdDynamicMenuComponent, TdDynamicMenuItemComponent, TdDynamicMenuLinkComponent] }); })();
386
- i0.ɵɵsetComponentScope(TdDynamicMenuComponent, [i2.NgIf, i2$1.MatButton, i1.MatMenuTrigger, i3.MatIcon, TdDynamicMenuItemComponent], []);
79
+ CovalentDynamicMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
80
+ CovalentDynamicMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicMenuModule, declarations: [TdDynamicMenuComponent,
81
+ TdDynamicMenuItemComponent,
82
+ TdDynamicMenuLinkComponent], imports: [CommonModule,
83
+ MatButtonModule,
84
+ MatIconModule,
85
+ MatListModule,
86
+ MatMenuModule,
87
+ MatTooltipModule], exports: [TdDynamicMenuComponent,
88
+ TdDynamicMenuItemComponent,
89
+ TdDynamicMenuLinkComponent] });
90
+ CovalentDynamicMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicMenuModule, providers: [], imports: [[
91
+ CommonModule,
92
+ MatButtonModule,
93
+ MatIconModule,
94
+ MatListModule,
95
+ MatMenuModule,
96
+ MatTooltipModule,
97
+ ]] });
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDynamicMenuModule, decorators: [{
99
+ type: NgModule,
100
+ args: [{
101
+ declarations: [
102
+ TdDynamicMenuComponent,
103
+ TdDynamicMenuItemComponent,
104
+ TdDynamicMenuLinkComponent,
105
+ ],
106
+ imports: [
107
+ CommonModule,
108
+ MatButtonModule,
109
+ MatIconModule,
110
+ MatListModule,
111
+ MatMenuModule,
112
+ MatTooltipModule,
113
+ ],
114
+ providers: [],
115
+ exports: [
116
+ TdDynamicMenuComponent,
117
+ TdDynamicMenuItemComponent,
118
+ TdDynamicMenuLinkComponent,
119
+ ],
120
+ }]
121
+ }] });
387
122
 
388
123
  /**
389
124
  * Generated bundle index. Do not edit.
@@ -1 +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":"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"}
1
+ {"version":3,"file":"covalent-core-dynamic-menu.mjs","sources":["../../../../libs/angular/dynamic-menu/src/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.ts","../../../../libs/angular/dynamic-menu/src/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.html","../../../../libs/angular/dynamic-menu/src/dynamic-menu-item/dynamic-menu-item.component.ts","../../../../libs/angular/dynamic-menu/src/dynamic-menu-item/dynamic-menu-item.component.html","../../../../libs/angular/dynamic-menu/src/dynamic-menu.component.ts","../../../../libs/angular/dynamic-menu/src/dynamic-menu.component.html","../../../../libs/angular/dynamic-menu/src/dynamic-menu.module.ts","../../../../libs/angular/dynamic-menu/src/covalent-core-dynamic-menu.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport {\n IMenuItem,\n ITdDynamicMenuLinkClickEvent,\n} from '../../dynamic-menu.menu';\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> =\n new EventEmitter<ITdDynamicMenuLinkClickEvent>();\n\n emitClicked(): void {\n this.itemClicked.emit({ text: this.item.text, action: this.item.action });\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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n <mat-icon *ngIf=\"item.newTab\" class=\"new-tab-icon\">launch</mat-icon>\n</a>\n<button\n *ngIf=\"item.action\"\n mat-menu-item\n [id]=\"item.id\"\n (click)=\"emitClicked()\"\n>\n <mat-icon\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span>{{ item.text }}</span>\n</button>\n","import {\n Component,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { MatMenu } from '@angular/material/menu';\nimport { IMenuItem, ITdDynamicMenuLinkClickEvent } from '../dynamic-menu.menu';\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> =\n 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","<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\n *ngIf=\"item.svgIcon\"\n [class]=\"item.iconClasses\"\n [svgIcon]=\"item.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"item.icon\" [class]=\"item.iconClasses\">{{\n item.icon\n }}</mat-icon>\n <span *ngIf=\"item.text\">\n {{ item.text }}\n </span>\n </button>\n <td-dynamic-menu-item\n #menu\n [items]=\"item.children\"\n ></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\n [item]=\"item\"\n (itemClicked)=\"emitClicked($event)\"\n ></td-dynamic-menu-link>\n </div>\n </ng-container>\n </ng-container>\n </ng-template>\n</mat-menu>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport {\n IMenuItem,\n IMenuTrigger,\n ITdDynamicMenuLinkClickEvent,\n} from './dynamic-menu.menu';\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> =\n new EventEmitter<ITdDynamicMenuLinkClickEvent>();\n\n emitClicked(event: ITdDynamicMenuLinkClickEvent): void {\n this.itemClicked.emit(event);\n }\n}\n","<button\n *ngIf=\"!trigger.text\"\n mat-icon-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n</button>\n<button\n *ngIf=\"trigger.text\"\n mat-button\n id=\"{{ trigger.id }}\"\n [matMenuTriggerFor]=\"menu.childMenu\"\n>\n <mat-icon\n *ngIf=\"trigger.svgIcon\"\n [class]=\"trigger.iconClasses\"\n [svgIcon]=\"trigger.svgIcon\"\n ></mat-icon>\n <mat-icon *ngIf=\"trigger.icon\" [class]=\"trigger.iconClasses\">{{\n trigger.icon\n }}</mat-icon>\n <span *ngIf=\"trigger.text\">\n {{ trigger.text }}\n </span>\n</button>\n\n<td-dynamic-menu-item\n #menu\n [items]=\"items\"\n (itemClicked)=\"emitClicked($event)\"\n></td-dynamic-menu-item>\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: [\n TdDynamicMenuComponent,\n TdDynamicMenuItemComponent,\n TdDynamicMenuLinkComponent,\n ],\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n MatListModule,\n MatMenuModule,\n MatTooltipModule,\n ],\n providers: [],\n exports: [\n TdDynamicMenuComponent,\n TdDynamicMenuItemComponent,\n TdDynamicMenuLinkComponent,\n ],\n})\nexport class CovalentDynamicMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAWa,0BAA0B;IALvC;QAQY,gBAAW,GACnB,IAAI,YAAY,EAAgC,CAAC;KAKpD;IAHC,WAAW;QACT,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;KAC3E;;uHARU,0BAA0B;2GAA1B,0BAA0B,+HCXvC,43BAoCA;2FDzBa,0BAA0B;kBALtC,SAAS;+BACE,sBAAsB;8BAKvB,IAAI;sBAAZ,KAAK;gBAEI,WAAW;sBAApB,MAAM;;;MECI,0BAA0B;IALvC;QAQY,gBAAW,GACnB,IAAI,YAAY,EAAgC,CAAC;KAOpD;IAHC,WAAW,CAAC,KAAmC;QAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;;uHAVU,0BAA0B;2GAA1B,0BAA0B,uPCfvC,g6CAqCA,iaDtBa,0BAA0B;2FAA1B,0BAA0B;kBALtC,SAAS;+BACE,sBAAsB;8BAKvB,KAAK;sBAAb,KAAK;gBAEI,WAAW;sBAApB,MAAM;gBAG0C,SAAS;sBAAzD,SAAS;uBAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;MET7B,sBAAsB;IALnC;QASY,gBAAW,GACnB,IAAI,YAAY,EAAgC,CAAC;KAKpD;IAHC,WAAW,CAAC,KAAmC;QAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;;mHATU,sBAAsB;uGAAtB,sBAAsB,gJCZnC,06BAuCA;2FD3Ba,sBAAsB;kBALlC,SAAS;+BACE,iBAAiB;8BAKlB,OAAO;sBAAf,KAAK;gBACG,KAAK;sBAAb,KAAK;gBAEI,WAAW;sBAApB,MAAM;;;MEiBI,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBAnBlC,sBAAsB;QACtB,0BAA0B;QAC1B,0BAA0B,aAG1B,YAAY;QACZ,eAAe;QACf,aAAa;QACb,aAAa;QACb,aAAa;QACb,gBAAgB,aAIhB,sBAAsB;QACtB,0BAA0B;QAC1B,0BAA0B;uHAGjB,yBAAyB,aAPzB,EAAE,YARJ;YACP,YAAY;YACZ,eAAe;YACf,aAAa;YACb,aAAa;YACb,aAAa;YACb,gBAAgB;SACjB;2FAQU,yBAAyB;kBArBrC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,sBAAsB;wBACtB,0BAA0B;wBAC1B,0BAA0B;qBAC3B;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb,gBAAgB;qBACjB;oBACD,SAAS,EAAE,EAAE;oBACb,OAAO,EAAE;wBACP,sBAAsB;wBACtB,0BAA0B;wBAC1B,0BAA0B;qBAC3B;iBACF;;;AChCD;;;;;;"}