@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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
2
+ import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, HostListener, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
3
3
  import * as i3 from '@angular/cdk/portal';
4
4
  import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
5
5
  import { AnimationDurations, AnimationCurves, MatCommonModule } from '@angular/material/core';
@@ -26,11 +26,13 @@ const tdSideSheetAnimations = {
26
26
  class CovalentSideSheetConfig extends MatDialogConfig {
27
27
  }
28
28
 
29
- function CovalentSideSheetContainer_ng_template_0_Template(rf, ctx) { }
30
29
  function _getFocusedElementPierceShadowDom() {
31
- let activeElement = typeof document !== 'undefined' && document ? document.activeElement : null;
30
+ let activeElement = typeof document !== 'undefined' && document
31
+ ? document.activeElement
32
+ : null;
32
33
  while (activeElement && activeElement.shadowRoot) {
33
- const newActiveElement = activeElement.shadowRoot.activeElement;
34
+ const newActiveElement = activeElement.shadowRoot
35
+ .activeElement;
34
36
  if (newActiveElement === activeElement) {
35
37
  break;
36
38
  }
@@ -114,7 +116,9 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
114
116
  }
115
117
  }
116
118
  else {
117
- this._focusTrap.focusInitialElementWhenReady().then((focusedSuccessfully) => {
119
+ this._focusTrap
120
+ .focusInitialElementWhenReady()
121
+ .then((focusedSuccessfully) => {
118
122
  // If we weren't able to find a focusable element in the side-sheet, then focus the side-sheet
119
123
  // container instead.
120
124
  if (!focusedSuccessfully) {
@@ -127,7 +131,9 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
127
131
  _restoreFocus() {
128
132
  const previousElement = this._elementFocusedBeforeSideSheetWasOpened;
129
133
  // We need the extra check, because IE can set the `activeElement` to null in some cases.
130
- if (this._config.restoreFocus && previousElement && typeof previousElement.focus === 'function') {
134
+ if (this._config.restoreFocus &&
135
+ previousElement &&
136
+ typeof previousElement.focus === 'function') {
131
137
  const activeElement = _getFocusedElementPierceShadowDom();
132
138
  const element = this._elementRef.nativeElement;
133
139
  // Make sure that focus is still inside the side-sheet or is on the body (usually because a
@@ -158,7 +164,8 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
158
164
  /** Captures the element that was focused before the side-sheet was opened. */
159
165
  _capturePreviouslyFocusedElement() {
160
166
  if (this._document) {
161
- this._elementFocusedBeforeSideSheetWasOpened = _getFocusedElementPierceShadowDom();
167
+ this._elementFocusedBeforeSideSheetWasOpened =
168
+ _getFocusedElementPierceShadowDom();
162
169
  }
163
170
  }
164
171
  /** Focuses the side-sheet container. */
@@ -175,33 +182,47 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
175
182
  return element === activeElement || element.contains(activeElement);
176
183
  }
177
184
  }
178
- /** @nocollapse */ /** @nocollapse */ _CovalentSideSheetContainerBase.ɵfac = function _CovalentSideSheetContainerBase_Factory(t) { return new (t || _CovalentSideSheetContainerBase)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.FocusTrapFactory), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(DOCUMENT, 8), i0.ɵɵdirectiveInject(CovalentSideSheetConfig), i0.ɵɵdirectiveInject(i1.FocusMonitor)); };
179
- /** @nocollapse */ /** @nocollapse */ _CovalentSideSheetContainerBase.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: _CovalentSideSheetContainerBase, viewQuery: function _CovalentSideSheetContainerBase_Query(rf, ctx) { if (rf & 1) {
180
- i0.ɵɵviewQuery(CdkPortalOutlet, 7);
181
- } if (rf & 2) {
182
- let _t;
183
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
184
- } }, features: [i0.ɵɵInheritDefinitionFeature] });
185
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(_CovalentSideSheetContainerBase, [{
186
- type: Directive
187
- }], function () { return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
188
- type: Optional
189
- }, {
190
- type: Inject,
191
- args: [DOCUMENT]
192
- }] }, { type: CovalentSideSheetConfig }, { type: i1.FocusMonitor }]; }, { _portalOutlet: [{
193
- type: ViewChild,
194
- args: [CdkPortalOutlet, { static: true }]
195
- }] }); })();
185
+ _CovalentSideSheetContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.ConfigurableFocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: CovalentSideSheetConfig }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
186
+ _CovalentSideSheetContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: _CovalentSideSheetContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetContainerBase, decorators: [{
188
+ type: Directive
189
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ConfigurableFocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
190
+ type: Optional
191
+ }, {
192
+ type: Inject,
193
+ args: [DOCUMENT]
194
+ }] }, { type: CovalentSideSheetConfig }, { type: i1.FocusMonitor }]; }, propDecorators: { _portalOutlet: [{
195
+ type: ViewChild,
196
+ args: [CdkPortalOutlet, { static: true }]
197
+ }] } });
196
198
  /**
197
199
  * Internal component that wraps the generated side-sheet content.
198
200
  * This animation below is the only reason for duplicating most of the Material dialog code
199
201
  */
200
- class CovalentSideSheetContainer extends _CovalentSideSheetContainerBase {
202
+ class CovalentSideSheetContainerComponent extends _CovalentSideSheetContainerBase {
201
203
  constructor() {
202
204
  super(...arguments);
203
205
  /** State of the side-sheet animation. */
204
206
  this._state = 'enter';
207
+ this.tdSideSheetContainerClass = true;
208
+ this.tabIndex = -1;
209
+ this.arialModal = true;
210
+ this.idAttr = this._id;
211
+ this.roleAttr = this._config.role;
212
+ this.arialLabelByAttr = this._config.ariaLabel
213
+ ? null
214
+ : this._ariaLabelledBy;
215
+ this.arialDescribeByAttr = this._config.ariaDescribedBy || null;
216
+ this.arialLabelAttr = this._config.ariaLabel;
217
+ }
218
+ get sideSheetAnimationState() {
219
+ return this._state;
220
+ }
221
+ onAnimateStart($event) {
222
+ this._onAnimationStart($event);
223
+ }
224
+ onAnimateDone($event) {
225
+ this._onAnimationDone($event);
205
226
  }
206
227
  /** Callback, invoked whenever an animation on the host completes. */
207
228
  _onAnimationDone({ toState, totalTime }) {
@@ -229,34 +250,45 @@ class CovalentSideSheetContainer extends _CovalentSideSheetContainerBase {
229
250
  this._changeDetectorRef.markForCheck();
230
251
  }
231
252
  }
232
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetContainer.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵCovalentSideSheetContainer_BaseFactory; return function CovalentSideSheetContainer_Factory(t) { return (ɵCovalentSideSheetContainer_BaseFactory || (ɵCovalentSideSheetContainer_BaseFactory = i0.ɵɵgetInheritedFactory(CovalentSideSheetContainer)))(t || CovalentSideSheetContainer); }; }();
233
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetContainer.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CovalentSideSheetContainer, selectors: [["td-side-sheet-container"]], hostAttrs: ["tabindex", "-1", "aria-modal", "true", 1, "td-side-sheet-container"], hostVars: 6, hostBindings: function CovalentSideSheetContainer_HostBindings(rf, ctx) { if (rf & 1) {
234
- i0.ɵɵsyntheticHostListener("@sideSheetContainer.start", function CovalentSideSheetContainer_animation_sideSheetContainer_start_HostBindingHandler($event) { return ctx._onAnimationStart($event); })("@sideSheetContainer.done", function CovalentSideSheetContainer_animation_sideSheetContainer_done_HostBindingHandler($event) { return ctx._onAnimationDone($event); });
235
- } if (rf & 2) {
236
- i0.ɵɵhostProperty("id", ctx._id);
237
- i0.ɵɵattribute("role", ctx._config.role)("aria-labelledby", ctx._config.ariaLabel ? null : ctx._ariaLabelledBy)("aria-label", ctx._config.ariaLabel)("aria-describedby", ctx._config.ariaDescribedBy || null);
238
- i0.ɵɵsyntheticHostProperty("@sideSheetContainer", ctx._state);
239
- } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [["cdkPortalOutlet", ""]], template: function CovalentSideSheetContainer_Template(rf, ctx) { if (rf & 1) {
240
- i0.ɵɵtemplate(0, CovalentSideSheetContainer_ng_template_0_Template, 0, 0, "ng-template", 0);
241
- } }, directives: [i3.CdkPortalOutlet], styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;-ms-flex:1;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{-ms-flex-pack:end;justify-content:flex-end}.td-side-sheet-actions[align=center]{-ms-flex-pack:center;justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], encapsulation: 2, data: { animation: [tdSideSheetAnimations.sideSheetContainer] } });
242
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetContainer, [{
243
- type: Component,
244
- args: [{ selector: 'td-side-sheet-container', template: `
245
- <ng-template cdkPortalOutlet></ng-template>
246
- `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [tdSideSheetAnimations.sideSheetContainer], host: {
247
- 'class': 'td-side-sheet-container',
248
- 'tabindex': '-1',
249
- 'aria-modal': 'true',
250
- '[id]': '_id',
251
- '[attr.role]': '_config.role',
252
- '[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
253
- '[attr.aria-label]': '_config.ariaLabel',
254
- '[attr.aria-describedby]': '_config.ariaDescribedBy || null',
255
- '[@sideSheetContainer]': '_state',
256
- '(@sideSheetContainer.start)': '_onAnimationStart($event)',
257
- '(@sideSheetContainer.done)': '_onAnimationDone($event)',
258
- }, styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;-ms-flex:1;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{-ms-flex-pack:end;justify-content:flex-end}.td-side-sheet-actions[align=center]{-ms-flex-pack:center;justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"] }]
259
- }], null, null); })();
253
+ CovalentSideSheetContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
254
+ CovalentSideSheetContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetContainerComponent, selector: "td-side-sheet-container", host: { listeners: { "@sideSheetContainer.start": "onAnimateStart($event)", "@sideSheetContainer.done": "onAnimateDone($event)" }, properties: { "class.td-side-sheet-container": "this.tdSideSheetContainerClass", "tabindex": "this.tabIndex", "aria-modal": "this.arialModal", "id": "this.idAttr", "attr.role": "this.roleAttr", "attr.aria-labelledby": "this.arialLabelByAttr", "attr.aria-describedby": "this.arialDescribeByAttr", "attr.aria-label": "this.arialLabelAttr", "@sideSheetContainer": "this.sideSheetAnimationState" } }, usesInheritance: true, ngImport: i0, template: ` <ng-template cdkPortalOutlet></ng-template> `, isInline: true, styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:flex;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:flex;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{justify-content:flex-end}.td-side-sheet-actions[align=center]{justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [tdSideSheetAnimations.sideSheetContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, decorators: [{
256
+ type: Component,
257
+ args: [{ selector: 'td-side-sheet-container', template: ` <ng-template cdkPortalOutlet></ng-template> `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [tdSideSheetAnimations.sideSheetContainer], styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:flex;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:flex;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{justify-content:flex-end}.td-side-sheet-actions[align=center]{justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"] }]
258
+ }], propDecorators: { tdSideSheetContainerClass: [{
259
+ type: HostBinding,
260
+ args: ['class.td-side-sheet-container']
261
+ }], tabIndex: [{
262
+ type: HostBinding,
263
+ args: ['tabindex']
264
+ }], arialModal: [{
265
+ type: HostBinding,
266
+ args: ['aria-modal']
267
+ }], idAttr: [{
268
+ type: HostBinding,
269
+ args: ['id']
270
+ }], roleAttr: [{
271
+ type: HostBinding,
272
+ args: ['attr.role']
273
+ }], arialLabelByAttr: [{
274
+ type: HostBinding,
275
+ args: ['attr.aria-labelledby']
276
+ }], arialDescribeByAttr: [{
277
+ type: HostBinding,
278
+ args: ['attr.aria-describedby']
279
+ }], arialLabelAttr: [{
280
+ type: HostBinding,
281
+ args: ['attr.aria-label']
282
+ }], sideSheetAnimationState: [{
283
+ type: HostBinding,
284
+ args: ['@sideSheetContainer']
285
+ }], onAnimateStart: [{
286
+ type: HostListener,
287
+ args: ['@sideSheetContainer.start', ['$event']]
288
+ }], onAnimateDone: [{
289
+ type: HostListener,
290
+ args: ['@sideSheetContainer.done', ['$event']]
291
+ }] } });
260
292
 
261
293
  // Counter for unique dialog ids.
262
294
  let uniqueId = 0;
@@ -298,10 +330,16 @@ class _CovalentSideSheetBase {
298
330
  }
299
331
  /** Keeps track of the currently-open side-sheets. */
300
332
  get openSideSheets() {
301
- return this._parentSideSheet ? this._parentSideSheet.openSideSheets : this._openSideSheetsAtThisLevel;
333
+ return this._parentSideSheet
334
+ ? this._parentSideSheet.openSideSheets
335
+ : this._openSideSheetsAtThisLevel;
302
336
  }
303
337
  open(componentOrTemplateRef, config) {
304
- config = { ...(this._defaultOptions || new CovalentSideSheetConfig()), ...this.defaultSidebarConfig, ...config };
338
+ config = {
339
+ ...(this._defaultOptions || new CovalentSideSheetConfig()),
340
+ ...this.defaultSidebarConfig,
341
+ ...config,
342
+ };
305
343
  const overlayRef = this._createOverlay(config);
306
344
  const sideSheetContainer = this._attachSideSheetContainer(overlayRef, config);
307
345
  const sideSheetRef = this._attachSideSheetContent(componentOrTemplateRef, sideSheetContainer, overlayRef, config);
@@ -359,7 +397,8 @@ class _CovalentSideSheetBase {
359
397
  maxWidth: config.maxWidth,
360
398
  });
361
399
  const overlayRef = this._overlay.create(overlayConfig);
362
- const positionStrategy = overlayRef.getConfig().positionStrategy;
400
+ const positionStrategy = overlayRef.getConfig()
401
+ .positionStrategy;
363
402
  positionStrategy.right('0px');
364
403
  return overlayRef;
365
404
  }
@@ -393,7 +432,9 @@ class _CovalentSideSheetBase {
393
432
  // to modify and close it.
394
433
  const sideSheetRef = new this._sideSheetRefConstructor(overlayRef, sideSheetContainer, config.id);
395
434
  if (componentOrTemplateRef instanceof TemplateRef) {
396
- sideSheetContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
435
+ sideSheetContainer.attachTemplatePortal(
436
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
437
+ new TemplatePortal(componentOrTemplateRef, null, {
397
438
  $implicit: config.data,
398
439
  sideSheetRef,
399
440
  }));
@@ -418,13 +459,17 @@ class _CovalentSideSheetBase {
418
459
  { provide: this._sideSheetRefConstructor, useValue: sideSheetRef },
419
460
  ];
420
461
  if (config.direction &&
421
- (!userInjector || !userInjector.get(Directionality, null, InjectFlags.Optional))) {
462
+ (!userInjector ||
463
+ !userInjector.get(Directionality, null, InjectFlags.Optional))) {
422
464
  providers.push({
423
465
  provide: Directionality,
424
466
  useValue: { value: config.direction, change: of() },
425
467
  });
426
468
  }
427
- return Injector.create({ parent: userInjector || this._injector, providers });
469
+ return Injector.create({
470
+ parent: userInjector || this._injector,
471
+ providers,
472
+ });
428
473
  }
429
474
  /**
430
475
  * Removes a side sheet from the array of open side sheets.
@@ -444,33 +489,33 @@ class _CovalentSideSheetBase {
444
489
  }
445
490
  }
446
491
  }
447
- /** @nocollapse */ /** @nocollapse */ _CovalentSideSheetBase.ɵfac = function _CovalentSideSheetBase_Factory(t) { i0.ɵɵinvalidFactory(); };
448
- /** @nocollapse */ /** @nocollapse */ _CovalentSideSheetBase.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: _CovalentSideSheetBase });
449
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(_CovalentSideSheetBase, [{
450
- type: Directive
451
- }], function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; }, null); })();
492
+ _CovalentSideSheetBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
493
+ _CovalentSideSheetBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: _CovalentSideSheetBase, ngImport: i0 });
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, decorators: [{
495
+ type: Directive
496
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; } });
452
497
  /**
453
498
  * Service to open Covalent Design side-sheet.
454
499
  */
455
500
  class CovalentSideSheet extends _CovalentSideSheetBase {
456
501
  constructor(overlay, injector, defaultOptions, parentSideSheet) {
457
- super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef, CovalentSideSheetContainer, MAT_DIALOG_DATA);
502
+ super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef, CovalentSideSheetContainerComponent, MAT_DIALOG_DATA);
458
503
  }
459
504
  }
460
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheet.ɵfac = function CovalentSideSheet_Factory(t) { return new (t || CovalentSideSheet)(i0.ɵɵinject(i1$1.Overlay), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(MAT_DIALOG_DEFAULT_OPTIONS, 8), i0.ɵɵinject(CovalentSideSheet, 12)); };
461
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheet.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CovalentSideSheet, factory: CovalentSideSheet.ɵfac });
462
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheet, [{
463
- type: Injectable
464
- }], function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: CovalentSideSheetConfig, decorators: [{
465
- type: Optional
466
- }, {
467
- type: Inject,
468
- args: [MAT_DIALOG_DEFAULT_OPTIONS]
469
- }] }, { type: CovalentSideSheet, decorators: [{
470
- type: Optional
471
- }, {
472
- type: SkipSelf
473
- }] }]; }, null); })();
505
+ CovalentSideSheet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: CovalentSideSheet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Injectable });
506
+ CovalentSideSheet.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet });
507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet, decorators: [{
508
+ type: Injectable
509
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: CovalentSideSheetConfig, decorators: [{
510
+ type: Optional
511
+ }, {
512
+ type: Inject,
513
+ args: [MAT_DIALOG_DEFAULT_OPTIONS]
514
+ }] }, { type: CovalentSideSheet, decorators: [{
515
+ type: Optional
516
+ }, {
517
+ type: SkipSelf
518
+ }] }]; } });
474
519
 
475
520
  /* tslint:disable */
476
521
  /** Counter used to generate unique IDs for dialog elements. */
@@ -478,7 +523,7 @@ let dialogElementUid = 0;
478
523
  /**
479
524
  * Button that will close the current dialog.
480
525
  */
481
- class CovalentSideSheetClose {
526
+ class CovalentSideSheetCloseDirective {
482
527
  constructor(dialogRef, _elementRef, _dialog) {
483
528
  this.dialogRef = dialogRef;
484
529
  this._elementRef = _elementRef;
@@ -486,6 +531,9 @@ class CovalentSideSheetClose {
486
531
  /** Default to "button" to prevents accidental form submits. */
487
532
  this.type = 'button';
488
533
  }
534
+ onClick($event) {
535
+ this._onButtonClick($event);
536
+ }
489
537
  ngOnInit() {
490
538
  if (!this.dialogRef) {
491
539
  // When this directive is included in a dialog via TemplateRef (rather than being
@@ -497,7 +545,8 @@ class CovalentSideSheetClose {
497
545
  }
498
546
  }
499
547
  ngOnChanges(changes) {
500
- const proxiedChange = changes['_CovalentSideSheetClose'] || changes['_CovalentSideSheetCloseResult'];
548
+ const proxiedChange = changes['_CovalentSideSheetClose'] ||
549
+ changes['_CovalentSideSheetCloseResult'];
501
550
  if (proxiedChange) {
502
551
  this.dialogResult = proxiedChange.currentValue;
503
552
  }
@@ -510,41 +559,41 @@ class CovalentSideSheetClose {
510
559
  _closeSideSheetVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
511
560
  }
512
561
  }
513
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetClose.ɵfac = function CovalentSideSheetClose_Factory(t) { return new (t || CovalentSideSheetClose)(i0.ɵɵdirectiveInject(CovalentSideSheetRef, 8), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(CovalentSideSheet)); };
514
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetClose.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CovalentSideSheetClose, selectors: [["", "td-side-sheet-close", ""], ["", "CovalentSideSheetClose", ""]], hostVars: 2, hostBindings: function CovalentSideSheetClose_HostBindings(rf, ctx) { if (rf & 1) {
515
- i0.ɵɵlistener("click", function CovalentSideSheetClose_click_HostBindingHandler($event) { return ctx._onButtonClick($event); });
516
- } if (rf & 2) {
517
- i0.ɵɵattribute("aria-label", ctx.ariaLabel || null)("type", ctx.type);
518
- } }, inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["td-side-sheet-close", "dialogResult"], _CovalentSideSheetClose: ["CovalentSideSheetClose", "_CovalentSideSheetClose"] }, exportAs: ["CovalentSideSheetClose"], features: [i0.ɵɵNgOnChangesFeature] });
519
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetClose, [{
520
- type: Directive,
521
- args: [{
522
- selector: '[td-side-sheet-close], [CovalentSideSheetClose]',
523
- exportAs: 'CovalentSideSheetClose',
524
- host: {
525
- '(click)': '_onButtonClick($event)',
526
- '[attr.aria-label]': 'ariaLabel || null',
527
- '[attr.type]': 'type',
528
- },
529
- }]
530
- }], function () { return [{ type: CovalentSideSheetRef, decorators: [{
531
- type: Optional
532
- }] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, { ariaLabel: [{
533
- type: Input,
534
- args: ['aria-label']
535
- }], type: [{
536
- type: Input
537
- }], dialogResult: [{
538
- type: Input,
539
- args: ['td-side-sheet-close']
540
- }], _CovalentSideSheetClose: [{
541
- type: Input,
542
- args: ['CovalentSideSheetClose']
543
- }] }); })();
562
+ CovalentSideSheetCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetCloseDirective, deps: [{ token: CovalentSideSheetRef, optional: true }, { token: i0.ElementRef }, { token: CovalentSideSheet }], target: i0.ɵɵFactoryTarget.Directive });
563
+ CovalentSideSheetCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetCloseDirective, selector: "[td-side-sheet-close], [CovalentSideSheetClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["td-side-sheet-close", "dialogResult"], _CovalentSideSheetClose: ["CovalentSideSheetClose", "_CovalentSideSheetClose"] }, host: { listeners: { "click": "onClick($event)" }, properties: { "attr.arial-label": "this.ariaLabel", "attr.type": "this.type" } }, exportAs: ["CovalentSideSheetClose"], usesOnChanges: true, ngImport: i0 });
564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetCloseDirective, decorators: [{
565
+ type: Directive,
566
+ args: [{
567
+ selector: '[td-side-sheet-close], [CovalentSideSheetClose]',
568
+ exportAs: 'CovalentSideSheetClose',
569
+ }]
570
+ }], ctorParameters: function () { return [{ type: CovalentSideSheetRef, decorators: [{
571
+ type: Optional
572
+ }] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, propDecorators: { ariaLabel: [{
573
+ type: HostBinding,
574
+ args: ['attr.arial-label']
575
+ }, {
576
+ type: Input,
577
+ args: ['aria-label']
578
+ }], type: [{
579
+ type: HostBinding,
580
+ args: ['attr.type']
581
+ }, {
582
+ type: Input
583
+ }], dialogResult: [{
584
+ type: Input,
585
+ args: ['td-side-sheet-close']
586
+ }], _CovalentSideSheetClose: [{
587
+ type: Input,
588
+ args: ['CovalentSideSheetClose']
589
+ }], onClick: [{
590
+ type: HostListener,
591
+ args: ['click', ['$event']]
592
+ }] } });
544
593
  /**
545
594
  * Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
546
595
  */
547
- class CovalentSideSheetTitle {
596
+ class CovalentSideSheetTitleDirective {
548
597
  constructor(
549
598
  // The dialog title directive is always used in combination with a `CovalentSideSheetRef`.
550
599
  // tslint:disable-next-line: lightweight-tokens
@@ -554,6 +603,8 @@ class CovalentSideSheetTitle {
554
603
  this._dialog = _dialog;
555
604
  /** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
556
605
  this.id = `td-side-sheet-title-${dialogElementUid++}`;
606
+ this.tdSideSheetTitle = true;
607
+ this.idAttr = this.id;
557
608
  }
558
609
  ngOnInit() {
559
610
  if (this._dialogRef) {
@@ -569,68 +620,83 @@ class CovalentSideSheetTitle {
569
620
  }
570
621
  }
571
622
  }
572
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetTitle.ɵfac = function CovalentSideSheetTitle_Factory(t) { return new (t || CovalentSideSheetTitle)(i0.ɵɵdirectiveInject(CovalentSideSheetRef, 8), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(CovalentSideSheet)); };
573
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetTitle.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CovalentSideSheetTitle, selectors: [["", "td-side-sheet-title", ""], ["", "CovalentSideSheetTitle", ""]], hostAttrs: [1, "td-side-sheet-title"], hostVars: 1, hostBindings: function CovalentSideSheetTitle_HostBindings(rf, ctx) { if (rf & 2) {
574
- i0.ɵɵhostProperty("id", ctx.id);
575
- } }, inputs: { id: "id" }, exportAs: ["CovalentSideSheetTitle"] });
576
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetTitle, [{
577
- type: Directive,
578
- args: [{
579
- selector: '[td-side-sheet-title], [CovalentSideSheetTitle]',
580
- exportAs: 'CovalentSideSheetTitle',
581
- host: {
582
- 'class': 'td-side-sheet-title',
583
- '[id]': 'id',
584
- },
585
- }]
586
- }], function () { return [{ type: CovalentSideSheetRef, decorators: [{
587
- type: Optional
588
- }] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, { id: [{
589
- type: Input
590
- }] }); })();
623
+ CovalentSideSheetTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetTitleDirective, deps: [{ token: CovalentSideSheetRef, optional: true }, { token: i0.ElementRef }, { token: CovalentSideSheet }], target: i0.ɵɵFactoryTarget.Directive });
624
+ CovalentSideSheetTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetTitleDirective, selector: "[td-side-sheet-title], [CovalentSideSheetTitle]", inputs: { id: "id" }, host: { properties: { "class.td-side-sheet-title": "this.tdSideSheetTitle", "attr.id": "this.idAttr" } }, exportAs: ["CovalentSideSheetTitle"], ngImport: i0 });
625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetTitleDirective, decorators: [{
626
+ type: Directive,
627
+ args: [{
628
+ selector: '[td-side-sheet-title], [CovalentSideSheetTitle]',
629
+ exportAs: 'CovalentSideSheetTitle',
630
+ }]
631
+ }], ctorParameters: function () { return [{ type: CovalentSideSheetRef, decorators: [{
632
+ type: Optional
633
+ }] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, propDecorators: { id: [{
634
+ type: Input
635
+ }], tdSideSheetTitle: [{
636
+ type: HostBinding,
637
+ args: ['class.td-side-sheet-title']
638
+ }], idAttr: [{
639
+ type: HostBinding,
640
+ args: ['attr.id']
641
+ }] } });
591
642
  /**
592
643
  * Scrollable content container of a dialog.
593
644
  */
594
- class CovalentSideSheetContent {
645
+ class CovalentSideSheetContentDirective {
646
+ constructor() {
647
+ this.tdSideSheetContent = true;
648
+ }
595
649
  }
596
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetContent.ɵfac = function CovalentSideSheetContent_Factory(t) { return new (t || CovalentSideSheetContent)(); };
597
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetContent.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CovalentSideSheetContent, selectors: [["", "td-side-sheet-content", ""], ["td-side-sheet-content"], ["", "CovalentSideSheetContent", ""]], hostAttrs: [1, "td-side-sheet-content"] });
598
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetContent, [{
599
- type: Directive,
600
- args: [{
601
- selector: `[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]`,
602
- host: { class: 'td-side-sheet-content' },
603
- }]
604
- }], null, null); })();
650
+ CovalentSideSheetContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
651
+ CovalentSideSheetContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetContentDirective, selector: "[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]", host: { properties: { "class.td-side-sheet-content": "this.tdSideSheetContent" } }, ngImport: i0 });
652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, decorators: [{
653
+ type: Directive,
654
+ args: [{
655
+ selector: `[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]`,
656
+ }]
657
+ }], propDecorators: { tdSideSheetContent: [{
658
+ type: HostBinding,
659
+ args: ['class.td-side-sheet-content']
660
+ }] } });
605
661
  /**
606
662
  * Container for the bottom action buttons in a dialog.
607
663
  * Stays fixed to the bottom when scrolling.
608
664
  */
609
- class CovalentSideSheetActions {
665
+ class CovalentSideSheetActionsDirective {
666
+ constructor() {
667
+ this.tdSideSheetActions = true;
668
+ }
610
669
  }
611
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetActions.ɵfac = function CovalentSideSheetActions_Factory(t) { return new (t || CovalentSideSheetActions)(); };
612
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetActions.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CovalentSideSheetActions, selectors: [["", "td-side-sheet-actions", ""], ["td-side-sheet-actions"], ["", "CovalentSideSheetActions", ""]], hostAttrs: [1, "td-side-sheet-actions"] });
613
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetActions, [{
614
- type: Directive,
615
- args: [{
616
- selector: `[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]`,
617
- host: { class: 'td-side-sheet-actions' },
618
- }]
619
- }], null, null); })();
670
+ CovalentSideSheetActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
671
+ CovalentSideSheetActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetActionsDirective, selector: "[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]", host: { properties: { "class.td-side-sheet-actions": "this.tdSideSheetActions" } }, ngImport: i0 });
672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, decorators: [{
673
+ type: Directive,
674
+ args: [{
675
+ selector: `[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]`,
676
+ }]
677
+ }], propDecorators: { tdSideSheetActions: [{
678
+ type: HostBinding,
679
+ args: ['class.td-side-sheet-actions']
680
+ }] } });
620
681
  /**
621
682
  * Container for the wrapper part of the dialog
622
683
  */
623
- class CovalentSideSheetWrapper {
684
+ class CovalentSideSheetWrapperDirective {
685
+ constructor() {
686
+ this.tdSideSheetWrapper = true;
687
+ }
624
688
  }
625
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetWrapper.ɵfac = function CovalentSideSheetWrapper_Factory(t) { return new (t || CovalentSideSheetWrapper)(); };
626
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetWrapper.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CovalentSideSheetWrapper, selectors: [["", "td-side-sheet-wrapper", ""], ["td-side-sheet-wrapper"], ["", "CovalentSideSheetWrapper", ""]], hostAttrs: [1, "td-side-sheet-wrapper"] });
627
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetWrapper, [{
628
- type: Directive,
629
- args: [{
630
- selector: `[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]`,
631
- host: { class: 'td-side-sheet-wrapper' },
632
- }]
633
- }], null, null); })();
689
+ CovalentSideSheetWrapperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
690
+ CovalentSideSheetWrapperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetWrapperDirective, selector: "[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]", host: { properties: { "class.td-side-sheet-wrapper": "this.tdSideSheetWrapper" } }, ngImport: i0 });
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, decorators: [{
692
+ type: Directive,
693
+ args: [{
694
+ selector: `[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]`,
695
+ }]
696
+ }], propDecorators: { tdSideSheetWrapper: [{
697
+ type: HostBinding,
698
+ args: ['class.td-side-sheet-wrapper']
699
+ }] } });
634
700
  /**
635
701
  * Finds the closest CovalentSideSheetRef to an element by looking at the DOM.
636
702
  * @param element Element relative to which to look for a dialog.
@@ -641,50 +707,51 @@ function getClosestDialog(element, openDialogs) {
641
707
  while (parent && !parent.classList.contains('td-side-sheet-container')) {
642
708
  parent = parent.parentElement;
643
709
  }
644
- return parent ? openDialogs.find((dialog) => dialog.id === parent.id) : null;
710
+ return parent
711
+ ? openDialogs.find((dialog) => dialog.id === parent?.id) ?? openDialogs[0]
712
+ : openDialogs[0];
645
713
  }
646
714
 
647
715
  class CovalentSideSheetModule {
648
716
  }
649
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetModule.ɵfac = function CovalentSideSheetModule_Factory(t) { return new (t || CovalentSideSheetModule)(); };
650
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentSideSheetModule });
651
- /** @nocollapse */ /** @nocollapse */ CovalentSideSheetModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [CovalentSideSheet], imports: [[PortalModule, MatDialogModule, MatCommonModule]] });
652
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetModule, [{
653
- type: NgModule,
654
- args: [{
655
- declarations: [
656
- CovalentSideSheetContainer,
657
- CovalentSideSheetActions,
658
- CovalentSideSheetClose,
659
- CovalentSideSheetContent,
660
- CovalentSideSheetTitle,
661
- CovalentSideSheetWrapper,
662
- ],
663
- exports: [
664
- CovalentSideSheetActions,
665
- CovalentSideSheetClose,
666
- CovalentSideSheetContent,
667
- CovalentSideSheetTitle,
668
- CovalentSideSheetWrapper,
669
- ],
670
- imports: [PortalModule, MatDialogModule, MatCommonModule],
671
- providers: [CovalentSideSheet],
672
- }]
673
- }], null, null); })();
674
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentSideSheetModule, { declarations: [CovalentSideSheetContainer,
675
- CovalentSideSheetActions,
676
- CovalentSideSheetClose,
677
- CovalentSideSheetContent,
678
- CovalentSideSheetTitle,
679
- CovalentSideSheetWrapper], imports: [PortalModule, MatDialogModule, MatCommonModule], exports: [CovalentSideSheetActions,
680
- CovalentSideSheetClose,
681
- CovalentSideSheetContent,
682
- CovalentSideSheetTitle,
683
- CovalentSideSheetWrapper] }); })();
717
+ CovalentSideSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
718
+ CovalentSideSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, declarations: [CovalentSideSheetContainerComponent,
719
+ CovalentSideSheetActionsDirective,
720
+ CovalentSideSheetCloseDirective,
721
+ CovalentSideSheetContentDirective,
722
+ CovalentSideSheetTitleDirective,
723
+ CovalentSideSheetWrapperDirective], imports: [PortalModule, MatDialogModule, MatCommonModule], exports: [CovalentSideSheetActionsDirective,
724
+ CovalentSideSheetCloseDirective,
725
+ CovalentSideSheetContentDirective,
726
+ CovalentSideSheetTitleDirective,
727
+ CovalentSideSheetWrapperDirective] });
728
+ CovalentSideSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, providers: [CovalentSideSheet], imports: [[PortalModule, MatDialogModule, MatCommonModule]] });
729
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, decorators: [{
730
+ type: NgModule,
731
+ args: [{
732
+ declarations: [
733
+ CovalentSideSheetContainerComponent,
734
+ CovalentSideSheetActionsDirective,
735
+ CovalentSideSheetCloseDirective,
736
+ CovalentSideSheetContentDirective,
737
+ CovalentSideSheetTitleDirective,
738
+ CovalentSideSheetWrapperDirective,
739
+ ],
740
+ exports: [
741
+ CovalentSideSheetActionsDirective,
742
+ CovalentSideSheetCloseDirective,
743
+ CovalentSideSheetContentDirective,
744
+ CovalentSideSheetTitleDirective,
745
+ CovalentSideSheetWrapperDirective,
746
+ ],
747
+ imports: [PortalModule, MatDialogModule, MatCommonModule],
748
+ providers: [CovalentSideSheet],
749
+ }]
750
+ }] });
684
751
 
685
752
  /**
686
753
  * Generated bundle index. Do not edit.
687
754
  */
688
755
 
689
- export { CovalentSideSheet, CovalentSideSheetActions, CovalentSideSheetClose, CovalentSideSheetConfig, CovalentSideSheetContent, CovalentSideSheetModule, CovalentSideSheetRef, CovalentSideSheetTitle, CovalentSideSheetWrapper, _CovalentSideSheetBase, _closeSideSheetVia };
756
+ export { CovalentSideSheet, CovalentSideSheetActionsDirective, CovalentSideSheetCloseDirective, CovalentSideSheetConfig, CovalentSideSheetContentDirective, CovalentSideSheetModule, CovalentSideSheetRef, CovalentSideSheetTitleDirective, CovalentSideSheetWrapperDirective, _CovalentSideSheetBase, _closeSideSheetVia };
690
757
  //# sourceMappingURL=covalent-core-side-sheet.mjs.map