@covalent/core 4.0.0-beta.4 → 4.1.0-develop.11

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 (345) 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 +3 -4
  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/material-icons.css +1 -111
  13. package/common/material-icons.css.map +1 -1
  14. package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
  15. package/common/platform.css +1 -16819
  16. package/common/platform.css.map +1 -1
  17. package/common/{public-api.d.ts → public_api.d.ts} +0 -0
  18. package/common/styles/_elevation.scss +7 -2
  19. package/common/styles/_typography-functions.scss +10 -2
  20. package/common/styles/_variables.scss +2 -1
  21. package/common/styles/core/_button.scss +35 -5
  22. package/common/styles/core/_card.scss +11 -6
  23. package/common/styles/core/_whiteframe.scss +16 -8
  24. package/common/styles/font/README.md +4 -2
  25. package/covalent-core.d.ts +1 -1
  26. package/dialogs/README.md +38 -30
  27. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
  28. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
  29. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  30. package/dialogs/dialog.component.d.ts +4 -4
  31. package/dialogs/dialogs.module.d.ts +1 -1
  32. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +7 -6
  33. package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
  34. package/dialogs/src/README.md +223 -0
  35. package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
  36. package/dynamic-menu/README.md +6 -6
  37. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  38. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  39. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  40. package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
  41. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  42. package/dynamic-menu/public_api.d.ts +1 -0
  43. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
  44. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +25 -34
  45. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
  46. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
  47. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  48. package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
  49. package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
  50. package/esm2020/common/animations/common/interfaces.mjs +1 -1
  51. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
  52. package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
  53. package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
  54. package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
  55. package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
  56. package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
  57. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
  58. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
  59. package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
  60. package/esm2020/common/common.module.mjs +14 -15
  61. package/esm2020/common/covalent-core-common.mjs +2 -2
  62. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
  63. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
  64. package/esm2020/common/forms/validators/validators.mjs +6 -6
  65. package/esm2020/common/functions/clipboard.mjs +1 -1
  66. package/esm2020/common/functions/convert.mjs +1 -1
  67. package/esm2020/common/functions/download.mjs +1 -1
  68. package/esm2020/common/functions/file.mjs +1 -1
  69. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
  70. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
  71. package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
  72. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
  73. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
  74. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
  75. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
  76. package/esm2020/common/public_api.mjs +39 -0
  77. package/esm2020/common/services/icon.service.mjs +6 -6
  78. package/esm2020/common/services/router-path.service.mjs +6 -6
  79. package/esm2020/covalent-core.mjs +2 -2
  80. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
  81. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
  82. package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
  83. package/esm2020/dialogs/dialog.component.mjs +35 -76
  84. package/esm2020/dialogs/dialogs.module.mjs +39 -36
  85. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +24 -79
  86. package/esm2020/dialogs/public_api.mjs +9 -0
  87. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
  88. package/esm2020/dialogs/services/dialog.service.mjs +16 -13
  89. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
  90. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
  91. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
  92. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
  93. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
  94. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  95. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
  96. package/esm2020/dynamic-menu/public_api.mjs +2 -1
  97. package/esm2020/file/covalent-core-file.mjs +2 -2
  98. package/esm2020/file/directives/file-drop.directive.mjs +62 -67
  99. package/esm2020/file/directives/file-select.directive.mjs +32 -31
  100. package/esm2020/file/file-input/file-input.component.mjs +41 -68
  101. package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
  102. package/esm2020/file/file.module.mjs +32 -17
  103. package/esm2020/file/public_api.mjs +7 -0
  104. package/esm2020/file/services/file.service.mjs +13 -11
  105. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  106. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
  107. package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
  108. package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
  109. package/esm2020/json-formatter/public_api.mjs +3 -0
  110. package/esm2020/layout/covalent-core-layout.mjs +2 -2
  111. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
  112. package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
  113. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
  114. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
  115. package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
  116. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
  117. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
  118. package/esm2020/layout/layout-toggle.class.mjs +12 -15
  119. package/esm2020/layout/layout.component.mjs +22 -43
  120. package/esm2020/layout/layout.directives.mjs +48 -50
  121. package/esm2020/layout/layout.module.mjs +34 -35
  122. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
  123. package/esm2020/layout/public_api.mjs +13 -0
  124. package/esm2020/menu/covalent-core-menu.mjs +2 -2
  125. package/esm2020/menu/menu.component.mjs +7 -18
  126. package/esm2020/menu/menu.module.mjs +12 -13
  127. package/esm2020/menu/public_api.mjs +3 -0
  128. package/esm2020/message/collapse.animation.mjs +51 -0
  129. package/esm2020/message/covalent-core-message.mjs +2 -2
  130. package/esm2020/message/message.component.mjs +44 -102
  131. package/esm2020/message/message.module.mjs +19 -15
  132. package/esm2020/message/public_api.mjs +3 -0
  133. package/esm2020/public_api.mjs +2 -0
  134. package/esm2020/search/covalent-core-search.mjs +2 -2
  135. package/esm2020/search/public_api.mjs +4 -0
  136. package/esm2020/search/search-box/search-box.component.mjs +97 -123
  137. package/esm2020/search/search-input/search-input.component.mjs +116 -153
  138. package/esm2020/search/search.module.mjs +28 -13
  139. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
  140. package/esm2020/side-sheet/public_api.mjs +6 -0
  141. package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
  142. package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
  143. package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
  144. package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
  145. package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
  146. package/esm2020/side-sheet/side-sheet.mjs +44 -31
  147. package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
  148. package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
  149. package/esm2020/user-profile/public_api.mjs +1 -1
  150. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
  151. package/esm2020/user-profile/user-profile.component.mjs +13 -35
  152. package/esm2020/user-profile/user-profile.module.mjs +32 -14
  153. package/fesm2015/covalent-core-breadcrumbs.mjs +40 -85
  154. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
  155. package/fesm2015/covalent-core-common.mjs +170 -140
  156. package/fesm2015/covalent-core-common.mjs.map +1 -1
  157. package/fesm2015/covalent-core-dialogs.mjs +133 -363
  158. package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
  159. package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
  160. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
  161. package/fesm2015/covalent-core-file.mjs +174 -261
  162. package/fesm2015/covalent-core-file.mjs.map +1 -1
  163. package/fesm2015/covalent-core-json-formatter.mjs +93 -148
  164. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
  165. package/fesm2015/covalent-core-layout.mjs +194 -747
  166. package/fesm2015/covalent-core-layout.mjs.map +1 -1
  167. package/fesm2015/covalent-core-menu.mjs +10 -28
  168. package/fesm2015/covalent-core-menu.mjs.map +1 -1
  169. package/fesm2015/covalent-core-message.mjs +79 -104
  170. package/fesm2015/covalent-core-message.mjs.map +1 -1
  171. package/fesm2015/covalent-core-search.mjs +147 -227
  172. package/fesm2015/covalent-core-search.mjs.map +1 -1
  173. package/fesm2015/covalent-core-side-sheet.mjs +202 -173
  174. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
  175. package/fesm2015/covalent-core-user-profile.mjs +38 -114
  176. package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
  177. package/fesm2015/covalent-core.mjs.map +1 -1
  178. package/fesm2020/covalent-core-breadcrumbs.mjs +54 -80
  179. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
  180. package/fesm2020/covalent-core-common.mjs +224 -165
  181. package/fesm2020/covalent-core-common.mjs.map +1 -1
  182. package/fesm2020/covalent-core-dialogs.mjs +168 -343
  183. package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
  184. package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
  185. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
  186. package/fesm2020/covalent-core-file.mjs +245 -292
  187. package/fesm2020/covalent-core-file.mjs.map +1 -1
  188. package/fesm2020/covalent-core-json-formatter.mjs +97 -133
  189. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
  190. package/fesm2020/covalent-core-layout.mjs +353 -767
  191. package/fesm2020/covalent-core-layout.mjs.map +1 -1
  192. package/fesm2020/covalent-core-menu.mjs +17 -29
  193. package/fesm2020/covalent-core-menu.mjs.map +1 -1
  194. package/fesm2020/covalent-core-message.mjs +110 -114
  195. package/fesm2020/covalent-core-message.mjs.map +1 -1
  196. package/fesm2020/covalent-core-search.mjs +233 -281
  197. package/fesm2020/covalent-core-search.mjs.map +1 -1
  198. package/fesm2020/covalent-core-side-sheet.mjs +267 -200
  199. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
  200. package/fesm2020/covalent-core-user-profile.mjs +54 -109
  201. package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
  202. package/fesm2020/covalent-core.mjs.map +1 -1
  203. package/file/_file-theme.scss +2 -1
  204. package/file/covalent-core-file.d.ts +1 -1
  205. package/file/directives/file-drop.directive.d.ts +13 -20
  206. package/file/directives/file-select.directive.d.ts +2 -2
  207. package/file/file-input/file-input.component.d.ts +7 -7
  208. package/file/file-upload/file-upload.component.d.ts +16 -9
  209. package/file/{public-api.d.ts → public_api.d.ts} +0 -0
  210. package/file/{file-input → src/file-input}/README.md +46 -37
  211. package/file/{file-upload → src/file-upload}/README.md +36 -27
  212. package/json-formatter/README.md +8 -8
  213. package/json-formatter/collapse.animation.d.ts +24 -0
  214. package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
  215. package/json-formatter/json-formatter.component.d.ts +4 -4
  216. package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
  217. package/layout/README.md +48 -50
  218. package/layout/covalent-core-layout.d.ts +1 -1
  219. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
  220. package/layout/layout-footer/layout-footer.component.d.ts +3 -3
  221. package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
  222. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
  223. package/layout/layout-nav/layout-nav.component.d.ts +5 -5
  224. package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
  225. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
  226. package/layout/layout-toggle.class.d.ts +1 -1
  227. package/layout/layout.component.d.ts +4 -4
  228. package/layout/layout.directives.d.ts +2 -2
  229. package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
  230. package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
  231. package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
  232. package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
  233. package/layout/src/layout-nav/README.md +50 -0
  234. package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
  235. package/menu/covalent-core-menu.d.ts +1 -1
  236. package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
  237. package/message/README.md +26 -18
  238. package/message/collapse.animation.d.ts +24 -0
  239. package/message/covalent-core-message.d.ts +1 -1
  240. package/message/message.component.d.ts +4 -4
  241. package/message/{public-api.d.ts → public_api.d.ts} +0 -0
  242. package/package.json +36 -55
  243. package/{index.d.ts → public_api.d.ts} +0 -0
  244. package/search/README.md +74 -73
  245. package/search/covalent-core-search.d.ts +1 -1
  246. package/search/{public-api.d.ts → public_api.d.ts} +0 -0
  247. package/search/search-box/search-box.component.d.ts +10 -6
  248. package/search/search-input/search-input.component.d.ts +10 -6
  249. package/search/src/search-box/README.md +73 -0
  250. package/search/src/search-input/README.md +74 -0
  251. package/side-sheet/README.md +3 -5
  252. package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
  253. package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
  254. package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
  255. package/side-sheet/side-sheet-container.d.ts +18 -7
  256. package/side-sheet/side-sheet.content-directives.d.ts +22 -16
  257. package/side-sheet/side-sheet.d.ts +2 -2
  258. package/side-sheet/side-sheet.module.d.ts +1 -1
  259. package/theming/prebuilt/blue-grey-deep-orange.css +1 -2815
  260. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
  261. package/theming/prebuilt/blue-orange.css +1 -2815
  262. package/theming/prebuilt/blue-orange.css.map +1 -1
  263. package/theming/prebuilt/indigo-pink.css +1 -2815
  264. package/theming/prebuilt/indigo-pink.css.map +1 -1
  265. package/theming/prebuilt/orange-light-blue.css +1 -2815
  266. package/theming/prebuilt/orange-light-blue.css.map +1 -1
  267. package/theming/prebuilt/teal-orange.css +1 -2815
  268. package/theming/prebuilt/teal-orange.css.map +1 -1
  269. package/user-profile/README.md +5 -5
  270. package/user-profile/covalent-core-user-profile.d.ts +1 -1
  271. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
  272. package/user-profile/user-profile.component.d.ts +2 -2
  273. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
  274. package/breadcrumbs/breadcrumbs.component.scss +0 -8
  275. package/breadcrumbs/index.d.ts +0 -1
  276. package/common/index.d.ts +0 -1
  277. package/common/material-icons.scss +0 -3
  278. package/common/platform.scss +0 -7
  279. package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
  280. package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
  281. package/dialogs/dialog.component.scss +0 -49
  282. package/dialogs/index.d.ts +0 -1
  283. package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
  284. package/dialogs/window-dialog/window-dialog.component.scss +0 -31
  285. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
  286. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
  287. package/dynamic-menu/dynamic-menu.component.scss +0 -0
  288. package/dynamic-menu/index.d.ts +0 -1
  289. package/esm2020/breadcrumbs/index.mjs +0 -2
  290. package/esm2020/breadcrumbs/public-api.mjs +0 -4
  291. package/esm2020/common/index.mjs +0 -2
  292. package/esm2020/common/public-api.mjs +0 -39
  293. package/esm2020/dialogs/index.mjs +0 -2
  294. package/esm2020/dialogs/public-api.mjs +0 -9
  295. package/esm2020/dynamic-menu/index.mjs +0 -2
  296. package/esm2020/file/index.mjs +0 -2
  297. package/esm2020/file/public-api.mjs +0 -7
  298. package/esm2020/index.mjs +0 -2
  299. package/esm2020/json-formatter/index.mjs +0 -2
  300. package/esm2020/json-formatter/public-api.mjs +0 -3
  301. package/esm2020/layout/index.mjs +0 -2
  302. package/esm2020/layout/public-api.mjs +0 -13
  303. package/esm2020/menu/index.mjs +0 -2
  304. package/esm2020/menu/public-api.mjs +0 -3
  305. package/esm2020/message/index.mjs +0 -2
  306. package/esm2020/message/public-api.mjs +0 -3
  307. package/esm2020/search/index.mjs +0 -2
  308. package/esm2020/search/public-api.mjs +0 -4
  309. package/esm2020/side-sheet/index.mjs +0 -2
  310. package/esm2020/side-sheet/public-api.mjs +0 -6
  311. package/esm2020/user-profile/index.mjs +0 -2
  312. package/file/file-input/file-input.component.scss +0 -22
  313. package/file/file-upload/file-upload.component.scss +0 -34
  314. package/file/index.d.ts +0 -1
  315. package/json-formatter/index.d.ts +0 -1
  316. package/json-formatter/json-formatter.component.scss +0 -74
  317. package/layout/index.d.ts +0 -1
  318. package/layout/layout-card-over/layout-card-over.component.scss +0 -45
  319. package/layout/layout-footer/layout-footer.component.scss +0 -4
  320. package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
  321. package/layout/layout-nav/README.md +0 -46
  322. package/layout/layout-nav/layout-nav.component.scss +0 -54
  323. package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
  324. package/layout/layout.component.scss +0 -16
  325. package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
  326. package/menu/index.d.ts +0 -1
  327. package/menu/menu.component.scss +0 -51
  328. package/message/index.d.ts +0 -1
  329. package/message/message.component.scss +0 -32
  330. package/schematics/README.md +0 -66
  331. package/schematics/ng-add/files/theme.scss +0 -64
  332. package/search/index.d.ts +0 -1
  333. package/search/search-box/README.md +0 -62
  334. package/search/search-box/search-box.component.scss +0 -37
  335. package/search/search-input/README.md +0 -65
  336. package/search/search-input/search-input.component.scss +0 -75
  337. package/side-sheet/index.d.ts +0 -1
  338. package/side-sheet/side-sheet.scss +0 -68
  339. package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
  340. package/theming/prebuilt/blue-orange.scss +0 -20
  341. package/theming/prebuilt/indigo-pink.scss +0 -20
  342. package/theming/prebuilt/orange-light-blue.scss +0 -20
  343. package/theming/prebuilt/teal-orange.scss +0 -20
  344. package/user-profile/index.d.ts +0 -1
  345. package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,67 +1,49 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Directive, Component, ContentChildren, ViewChild, Injectable, Inject, EventEmitter, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/common';
3
+ import * as i4 from '@angular/common';
4
4
  import { DOCUMENT, CommonModule } from '@angular/common';
5
- import * as i4$1 from '@angular/forms';
5
+ import * as i6 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import * as i1 from '@angular/material/dialog';
8
8
  import { MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
9
- import * as i6 from '@angular/material/input';
9
+ import * as i7 from '@angular/material/input';
10
10
  import { MatInputModule } from '@angular/material/input';
11
- import * as i4 from '@angular/material/button';
11
+ import * as i3 from '@angular/material/button';
12
12
  import { MatButtonModule } from '@angular/material/button';
13
- import * as i5 from '@angular/material/form-field';
13
+ import * as i3$1 from '@angular/material/form-field';
14
14
  import * as i2 from '@angular/cdk/drag-drop';
15
15
  import { Subject, fromEvent, merge } from 'rxjs';
16
16
  import * as i1$1 from '@angular/material/toolbar';
17
17
  import { MatToolbarModule } from '@angular/material/toolbar';
18
- import * as i3$1 from '@angular/material/tooltip';
19
- import { MatTooltipModule } from '@angular/material/tooltip';
20
- import * as i4$2 from '@angular/material/icon';
18
+ import * as i3$2 from '@angular/material/icon';
21
19
  import { MatIconModule } from '@angular/material/icon';
20
+ import * as i4$1 from '@angular/material/tooltip';
21
+ import { MatTooltipModule } from '@angular/material/tooltip';
22
22
 
23
- function TdDialogComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
24
- i0.ɵɵelementStart(0, "h3", 4);
25
- i0.ɵɵprojection(1);
26
- i0.ɵɵelementEnd();
27
- } }
28
- function TdDialogComponent_div_2_Template(rf, ctx) { if (rf & 1) {
29
- i0.ɵɵelementStart(0, "div", 5);
30
- i0.ɵɵprojection(1, 1);
31
- i0.ɵɵelementEnd();
32
- } }
33
- function TdDialogComponent_div_3_Template(rf, ctx) { if (rf & 1) {
34
- i0.ɵɵelementStart(0, "div", 6);
35
- i0.ɵɵelement(1, "span", 7);
36
- i0.ɵɵprojection(2, 2);
37
- i0.ɵɵelementEnd();
38
- } }
39
- const _c0$2 = [[["td-dialog-title"]], [["td-dialog-content"]], [["td-dialog-actions"]]];
40
- const _c1 = ["td-dialog-title", "td-dialog-content", "td-dialog-actions"];
41
23
  class TdDialogTitleDirective {
42
24
  }
43
- /** @nocollapse */ /** @nocollapse */ TdDialogTitleDirective.ɵfac = function TdDialogTitleDirective_Factory(t) { return new (t || TdDialogTitleDirective)(); };
44
- /** @nocollapse */ /** @nocollapse */ TdDialogTitleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogTitleDirective, selectors: [["td-dialog-title"]] });
45
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogTitleDirective, [{
46
- type: Directive,
47
- args: [{ selector: 'td-dialog-title' }]
48
- }], null, null); })();
25
+ TdDialogTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
+ TdDialogTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogTitleDirective, selector: "[tdDialogTitle]", ngImport: i0 });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogTitleDirective, decorators: [{
28
+ type: Directive,
29
+ args: [{ selector: '[tdDialogTitle]' }]
30
+ }] });
49
31
  class TdDialogContentDirective {
50
32
  }
51
- /** @nocollapse */ /** @nocollapse */ TdDialogContentDirective.ɵfac = function TdDialogContentDirective_Factory(t) { return new (t || TdDialogContentDirective)(); };
52
- /** @nocollapse */ /** @nocollapse */ TdDialogContentDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogContentDirective, selectors: [["td-dialog-content"]] });
53
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogContentDirective, [{
54
- type: Directive,
55
- args: [{ selector: 'td-dialog-content' }]
56
- }], null, null); })();
33
+ TdDialogContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
34
+ TdDialogContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogContentDirective, selector: "[tdDialogContent]", ngImport: i0 });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogContentDirective, decorators: [{
36
+ type: Directive,
37
+ args: [{ selector: '[tdDialogContent]' }]
38
+ }] });
57
39
  class TdDialogActionsDirective {
58
40
  }
59
- /** @nocollapse */ /** @nocollapse */ TdDialogActionsDirective.ɵfac = function TdDialogActionsDirective_Factory(t) { return new (t || TdDialogActionsDirective)(); };
60
- /** @nocollapse */ /** @nocollapse */ TdDialogActionsDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogActionsDirective, selectors: [["td-dialog-actions"]] });
61
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogActionsDirective, [{
62
- type: Directive,
63
- args: [{ selector: 'td-dialog-actions' }]
64
- }], null, null); })();
41
+ TdDialogActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
42
+ TdDialogActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogActionsDirective, selector: "[tdDialogActions]", ngImport: i0 });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogActionsDirective, decorators: [{
44
+ type: Directive,
45
+ args: [{ selector: '[tdDialogActions]' }]
46
+ }] });
65
47
  class TdDialogComponent {
66
48
  ngAfterContentInit() {
67
49
  if (this.dialogTitle.length > 1) {
@@ -75,54 +57,22 @@ class TdDialogComponent {
75
57
  }
76
58
  }
77
59
  }
78
- /** @nocollapse */ /** @nocollapse */ TdDialogComponent.ɵfac = function TdDialogComponent_Factory(t) { return new (t || TdDialogComponent)(); };
79
- /** @nocollapse */ /** @nocollapse */ TdDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDialogComponent, selectors: [["td-dialog"]], contentQueries: function TdDialogComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
80
- i0.ɵɵcontentQuery(dirIndex, TdDialogTitleDirective, 5);
81
- i0.ɵɵcontentQuery(dirIndex, TdDialogContentDirective, 5);
82
- i0.ɵɵcontentQuery(dirIndex, TdDialogActionsDirective, 5);
83
- } if (rf & 2) {
84
- let _t;
85
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogTitle = _t);
86
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogContent = _t);
87
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogActions = _t);
88
- } }, ngContentSelectors: _c1, decls: 4, vars: 3, consts: [[1, "td-dialog-wrapper"], ["class", "td-dialog-title", 4, "ngIf"], ["class", "td-dialog-content", 4, "ngIf"], ["class", "td-dialog-actions", 4, "ngIf"], [1, "td-dialog-title"], [1, "td-dialog-content"], [1, "td-dialog-actions"], [1, "td-dialog-spacer"]], template: function TdDialogComponent_Template(rf, ctx) { if (rf & 1) {
89
- i0.ɵɵprojectionDef(_c0$2);
90
- i0.ɵɵelementStart(0, "div", 0);
91
- i0.ɵɵtemplate(1, TdDialogComponent_h3_1_Template, 2, 0, "h3", 1);
92
- i0.ɵɵtemplate(2, TdDialogComponent_div_2_Template, 2, 0, "div", 2);
93
- i0.ɵɵtemplate(3, TdDialogComponent_div_3_Template, 3, 0, "div", 3);
94
- i0.ɵɵelementEnd();
95
- } if (rf & 2) {
96
- i0.ɵɵadvance(1);
97
- i0.ɵɵproperty("ngIf", ctx.dialogTitle.length > 0);
98
- i0.ɵɵadvance(1);
99
- i0.ɵɵproperty("ngIf", ctx.dialogContent.length > 0);
100
- i0.ɵɵadvance(1);
101
- i0.ɵɵproperty("ngIf", ctx.dialogActions.length > 0);
102
- } }, directives: [i3.NgIf], styles: [".td-dialog-title[_ngcontent-%COMP%]{margin-top:0;margin-bottom:20px}.td-dialog-content[_ngcontent-%COMP%]{margin-bottom:16px}.td-dialog-actions[_ngcontent-%COMP%]{position:relative;top:16px;left:16px} [dir=rtl] .td-dialog-actions{right:16px;left:auto}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] .td-dialog-spacer[_ngcontent-%COMP%]{-ms-flex:1;flex:1}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] [_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] button{margin-right:8px;margin-left:inherit}"] });
103
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogComponent, [{
104
- type: Component,
105
- args: [{ selector: 'td-dialog', template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"td-dialog-title\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"td-dialog-content\"></ng-content>\n </div>\n <div class=\"td-dialog-actions\" *ngIf=\"dialogActions.length > 0\">\n <span class=\"td-dialog-spacer\"></span>\n <ng-content select=\"td-dialog-actions\"></ng-content>\n </div>\n</div>\n", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}:host .td-dialog-actions .td-dialog-spacer{-ms-flex:1;flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"] }]
106
- }], null, { dialogTitle: [{
107
- type: ContentChildren,
108
- args: [TdDialogTitleDirective, { descendants: true }]
109
- }], dialogContent: [{
110
- type: ContentChildren,
111
- args: [TdDialogContentDirective, { descendants: true }]
112
- }], dialogActions: [{
113
- type: ContentChildren,
114
- args: [TdDialogActionsDirective, { descendants: true }]
115
- }] }); })();
60
+ TdDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
+ TdDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogComponent, selector: "td-dialog", queries: [{ propertyName: "dialogTitle", predicate: TdDialogTitleDirective, descendants: true }, { propertyName: "dialogContent", predicate: TdDialogContentDirective, descendants: true }, { propertyName: "dialogActions", predicate: TdDialogActionsDirective, descendants: true }], ngImport: i0, template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"[tdDialogTitle]\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"[tdDialogContent]\"></ng-content>\n </div>\n <div class=\"td-dialog-actions\" *ngIf=\"dialogActions.length > 0\">\n <span class=\"td-dialog-spacer\"></span>\n <ng-content select=\"[tdDialogActions]\"></ng-content>\n </div>\n</div>\n", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{flex-direction:row;box-sizing:border-box;display:flex}:host .td-dialog-actions .td-dialog-spacer{flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogComponent, decorators: [{
63
+ type: Component,
64
+ args: [{ selector: 'td-dialog', template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"[tdDialogTitle]\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"[tdDialogContent]\"></ng-content>\n </div>\n <div class=\"td-dialog-actions\" *ngIf=\"dialogActions.length > 0\">\n <span class=\"td-dialog-spacer\"></span>\n <ng-content select=\"[tdDialogActions]\"></ng-content>\n </div>\n</div>\n", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{flex-direction:row;box-sizing:border-box;display:flex}:host .td-dialog-actions .td-dialog-spacer{flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"] }]
65
+ }], propDecorators: { dialogTitle: [{
66
+ type: ContentChildren,
67
+ args: [TdDialogTitleDirective, { descendants: true }]
68
+ }], dialogContent: [{
69
+ type: ContentChildren,
70
+ args: [TdDialogContentDirective, { descendants: true }]
71
+ }], dialogActions: [{
72
+ type: ContentChildren,
73
+ args: [TdDialogActionsDirective, { descendants: true }]
74
+ }] } });
116
75
 
117
- function TdAlertDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
118
- i0.ɵɵelementStart(0, "td-dialog-title");
119
- i0.ɵɵtext(1);
120
- i0.ɵɵelementEnd();
121
- } if (rf & 2) {
122
- const ctx_r0 = i0.ɵɵnextContext();
123
- i0.ɵɵadvance(1);
124
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
125
- } }
126
76
  class TdAlertDialogComponent {
127
77
  constructor(_dialogRef) {
128
78
  this._dialogRef = _dialogRef;
@@ -132,44 +82,13 @@ class TdAlertDialogComponent {
132
82
  this._dialogRef.close();
133
83
  }
134
84
  }
135
- /** @nocollapse */ /** @nocollapse */ TdAlertDialogComponent.ɵfac = function TdAlertDialogComponent_Factory(t) { return new (t || TdAlertDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
136
- /** @nocollapse */ /** @nocollapse */ TdAlertDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdAlertDialogComponent, selectors: [["td-alert-dialog"]], decls: 8, vars: 3, consts: [[4, "ngIf"], [1, "td-dialog-message"], ["mat-button", "", "color", "accent", 3, "click"]], template: function TdAlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
137
- i0.ɵɵelementStart(0, "td-dialog");
138
- i0.ɵɵtemplate(1, TdAlertDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
139
- i0.ɵɵelementStart(2, "td-dialog-content");
140
- i0.ɵɵelementStart(3, "span", 1);
141
- i0.ɵɵtext(4);
142
- i0.ɵɵelementEnd();
143
- i0.ɵɵelementEnd();
144
- i0.ɵɵelementStart(5, "td-dialog-actions");
145
- i0.ɵɵelementStart(6, "button", 2);
146
- i0.ɵɵlistener("click", function TdAlertDialogComponent_Template_button_click_6_listener() { return ctx.close(); });
147
- i0.ɵɵtext(7);
148
- i0.ɵɵelementEnd();
149
- i0.ɵɵelementEnd();
150
- i0.ɵɵelementEnd();
151
- } if (rf & 2) {
152
- i0.ɵɵadvance(1);
153
- i0.ɵɵproperty("ngIf", ctx.title);
154
- i0.ɵɵadvance(3);
155
- i0.ɵɵtextInterpolate(ctx.message);
156
- i0.ɵɵadvance(3);
157
- i0.ɵɵtextInterpolate(ctx.closeButton);
158
- } }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
159
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdAlertDialogComponent, [{
160
- type: Component,
161
- args: [{ selector: 'td-alert-dialog', template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button color=\"accent\" (click)=\"close()\">{{ closeButton }}</button>\n </td-dialog-actions>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
162
- }], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
85
+ TdAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAlertDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
86
+ TdAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdAlertDialogComponent, selector: "td-alert-dialog", ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button mat-button color=\"accent\" (click)=\"close()\">\n {{ closeButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3.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"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAlertDialogComponent, decorators: [{
88
+ type: Component,
89
+ args: [{ selector: 'td-alert-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button mat-button color=\"accent\" (click)=\"close()\">\n {{ closeButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
90
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; } });
163
91
 
164
- function TdConfirmDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
165
- i0.ɵɵelementStart(0, "td-dialog-title");
166
- i0.ɵɵtext(1);
167
- i0.ɵɵelementEnd();
168
- } if (rf & 2) {
169
- const ctx_r0 = i0.ɵɵnextContext();
170
- i0.ɵɵadvance(1);
171
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
172
- } }
173
92
  class TdConfirmDialogComponent {
174
93
  constructor(_dialogRef) {
175
94
  this._dialogRef = _dialogRef;
@@ -184,65 +103,27 @@ class TdConfirmDialogComponent {
184
103
  this._dialogRef.close(true);
185
104
  }
186
105
  }
187
- /** @nocollapse */ /** @nocollapse */ TdConfirmDialogComponent.ɵfac = function TdConfirmDialogComponent_Factory(t) { return new (t || TdConfirmDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
188
- /** @nocollapse */ /** @nocollapse */ TdConfirmDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdConfirmDialogComponent, selectors: [["td-confirm-dialog"]], decls: 12, vars: 5, consts: [[4, "ngIf"], [1, "td-dialog-message"], ["mat-button", "", 3, "keydown.arrowright", "click"], ["closeBtn", ""], ["mat-button", "", 3, "color", "keydown.arrowleft", "click"], ["acceptBtn", ""]], template: function TdConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
189
- const _r3 = i0.ɵɵgetCurrentView();
190
- i0.ɵɵelementStart(0, "td-dialog");
191
- i0.ɵɵtemplate(1, TdConfirmDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
192
- i0.ɵɵelementStart(2, "td-dialog-content");
193
- i0.ɵɵelementStart(3, "span", 1);
194
- i0.ɵɵtext(4);
195
- i0.ɵɵelementEnd();
196
- i0.ɵɵelementEnd();
197
- i0.ɵɵelementStart(5, "td-dialog-actions");
198
- i0.ɵɵelementStart(6, "button", 2, 3);
199
- i0.ɵɵlistener("keydown.arrowright", function TdConfirmDialogComponent_Template_button_keydown_arrowright_6_listener() { i0.ɵɵrestoreView(_r3); const _r2 = i0.ɵɵreference(10); return _r2.focus(); })("click", function TdConfirmDialogComponent_Template_button_click_6_listener() { return ctx.cancel(); });
200
- i0.ɵɵtext(8);
201
- i0.ɵɵelementEnd();
202
- i0.ɵɵelementStart(9, "button", 4, 5);
203
- i0.ɵɵlistener("keydown.arrowleft", function TdConfirmDialogComponent_Template_button_keydown_arrowleft_9_listener() { i0.ɵɵrestoreView(_r3); const _r1 = i0.ɵɵreference(7); return _r1.focus(); })("click", function TdConfirmDialogComponent_Template_button_click_9_listener() { return ctx.accept(); });
204
- i0.ɵɵtext(11);
205
- i0.ɵɵelementEnd();
206
- i0.ɵɵelementEnd();
207
- i0.ɵɵelementEnd();
208
- } if (rf & 2) {
209
- i0.ɵɵadvance(1);
210
- i0.ɵɵproperty("ngIf", ctx.title);
211
- i0.ɵɵadvance(3);
212
- i0.ɵɵtextInterpolate(ctx.message);
213
- i0.ɵɵadvance(4);
214
- i0.ɵɵtextInterpolate(ctx.cancelButton);
215
- i0.ɵɵadvance(1);
216
- i0.ɵɵproperty("color", ctx.isDestructive ? "warn" : "accent");
217
- i0.ɵɵadvance(2);
218
- i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
219
- } }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
220
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdConfirmDialogComponent, [{
221
- type: Component,
222
- args: [{ selector: 'td-confirm-dialog', template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n [color]=\"isDestructive ? 'warn' : 'accent'\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
223
- }], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
106
+ TdConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
107
+ TdConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdConfirmDialogComponent, selector: "td-confirm-dialog", ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </button>\n <button\n mat-button\n [color]=\"isDestructive ? 'warn' : 'accent'\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3.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"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdConfirmDialogComponent, decorators: [{
109
+ type: Component,
110
+ args: [{ selector: 'td-confirm-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </button>\n <button\n mat-button\n [color]=\"isDestructive ? 'warn' : 'accent'\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
111
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; } });
224
112
 
225
- const _c0$1 = ["input"];
226
- function TdPromptDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
227
- i0.ɵɵelementStart(0, "td-dialog-title");
228
- i0.ɵɵtext(1);
229
- i0.ɵɵelementEnd();
230
- } if (rf & 2) {
231
- const ctx_r0 = i0.ɵɵnextContext();
232
- i0.ɵɵadvance(1);
233
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
234
- } }
235
113
  class TdPromptDialogComponent {
236
- constructor(_dialogRef) {
114
+ constructor(_ngZone, _dialogRef) {
115
+ this._ngZone = _ngZone;
237
116
  this._dialogRef = _dialogRef;
238
117
  this.cancelButton = 'CANCEL';
239
118
  this.acceptButton = 'ACCEPT';
240
119
  }
241
120
  ngAfterViewInit() {
242
- // focus input once everything is rendered and good to go
243
- Promise.resolve().then(() => {
244
- this._input.nativeElement.focus();
245
- });
121
+ this._ngZone.runOutsideAngular(() =>
122
+ // Note: `element.focus()` causes re-layout and this may lead to frame drop on slower devices.
123
+ // `Promise` is a microtask and microtask are executed within the current rendering frame.
124
+ // Animation tasks are executed within the next rendering frame.
125
+ // We focus input once everything is rendered and good to go.
126
+ requestAnimationFrame(() => this._input.nativeElement.focus()));
246
127
  }
247
128
  /**
248
129
  * Method executed when input is focused
@@ -258,63 +139,15 @@ class TdPromptDialogComponent {
258
139
  this._dialogRef.close(this.value);
259
140
  }
260
141
  }
261
- /** @nocollapse */ /** @nocollapse */ TdPromptDialogComponent.ɵfac = function TdPromptDialogComponent_Factory(t) { return new (t || TdPromptDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
262
- /** @nocollapse */ /** @nocollapse */ TdPromptDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdPromptDialogComponent, selectors: [["td-prompt-dialog"]], viewQuery: function TdPromptDialogComponent_Query(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵviewQuery(_c0$1, 7);
264
- } if (rf & 2) {
265
- let _t;
266
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._input = _t.first);
267
- } }, decls: 18, vars: 6, consts: [[4, "ngIf"], [1, "td-dialog-message"], ["novalidate", ""], ["form", "ngForm"], [1, "td-dialog-input-wrapper"], [1, "td-dialog-input"], ["matInput", "", "name", "value", "required", "", 3, "ngModel", "focus", "keydown.enter", "ngModelChange"], ["input", ""], ["mat-button", "", 3, "keydown.arrowright", "click"], ["closeBtn", ""], ["mat-button", "", "color", "accent", 3, "disabled", "keydown.arrowleft", "click"], ["acceptBtn", ""]], template: function TdPromptDialogComponent_Template(rf, ctx) { if (rf & 1) {
268
- const _r5 = i0.ɵɵgetCurrentView();
269
- i0.ɵɵelementStart(0, "td-dialog");
270
- i0.ɵɵtemplate(1, TdPromptDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
271
- i0.ɵɵelementStart(2, "td-dialog-content");
272
- i0.ɵɵelementStart(3, "span", 1);
273
- i0.ɵɵtext(4);
274
- i0.ɵɵelementEnd();
275
- i0.ɵɵelementStart(5, "form", 2, 3);
276
- i0.ɵɵelementStart(7, "div", 4);
277
- i0.ɵɵelementStart(8, "mat-form-field", 5);
278
- i0.ɵɵelementStart(9, "input", 6, 7);
279
- i0.ɵɵlistener("focus", function TdPromptDialogComponent_Template_input_focus_9_listener() { return ctx.handleInputFocus(); })("keydown.enter", function TdPromptDialogComponent_Template_input_keydown_enter_9_listener($event) { i0.ɵɵrestoreView(_r5); const _r1 = i0.ɵɵreference(6); $event.preventDefault(); return _r1.valid && ctx.accept(); })("ngModelChange", function TdPromptDialogComponent_Template_input_ngModelChange_9_listener($event) { return ctx.value = $event; });
280
- i0.ɵɵelementEnd();
281
- i0.ɵɵelementEnd();
282
- i0.ɵɵelementEnd();
283
- i0.ɵɵelementEnd();
284
- i0.ɵɵelementEnd();
285
- i0.ɵɵelementStart(11, "td-dialog-actions");
286
- i0.ɵɵelementStart(12, "button", 8, 9);
287
- i0.ɵɵlistener("keydown.arrowright", function TdPromptDialogComponent_Template_button_keydown_arrowright_12_listener() { i0.ɵɵrestoreView(_r5); const _r4 = i0.ɵɵreference(16); return _r4.focus(); })("click", function TdPromptDialogComponent_Template_button_click_12_listener() { return ctx.cancel(); });
288
- i0.ɵɵtext(14);
289
- i0.ɵɵelementEnd();
290
- i0.ɵɵelementStart(15, "button", 10, 11);
291
- i0.ɵɵlistener("keydown.arrowleft", function TdPromptDialogComponent_Template_button_keydown_arrowleft_15_listener() { i0.ɵɵrestoreView(_r5); const _r3 = i0.ɵɵreference(13); return _r3.focus(); })("click", function TdPromptDialogComponent_Template_button_click_15_listener() { return ctx.accept(); });
292
- i0.ɵɵtext(17);
293
- i0.ɵɵelementEnd();
294
- i0.ɵɵelementEnd();
295
- i0.ɵɵelementEnd();
296
- } if (rf & 2) {
297
- const _r1 = i0.ɵɵreference(6);
298
- i0.ɵɵadvance(1);
299
- i0.ɵɵproperty("ngIf", ctx.title);
300
- i0.ɵɵadvance(3);
301
- i0.ɵɵtextInterpolate(ctx.message);
302
- i0.ɵɵadvance(5);
303
- i0.ɵɵproperty("ngModel", ctx.value);
304
- i0.ɵɵadvance(5);
305
- i0.ɵɵtextInterpolate(ctx.cancelButton);
306
- i0.ɵɵadvance(1);
307
- i0.ɵɵproperty("disabled", !_r1.valid);
308
- i0.ɵɵadvance(2);
309
- i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
310
- } }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, i4$1.ɵNgNoValidate, i4$1.NgControlStatusGroup, i4$1.NgForm, i5.MatFormField, i6.MatInput, i4$1.DefaultValueAccessor, i4$1.RequiredValidator, i4$1.NgControlStatus, i4$1.NgModel, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-input-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper[_ngcontent-%COMP%] .td-dialog-input[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}.td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
311
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdPromptDialogComponent, [{
312
- type: Component,
313
- args: [{ selector: 'td-prompt-dialog', template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n <form #form=\"ngForm\" novalidate>\n <div class=\"td-dialog-input-wrapper\">\n <mat-form-field class=\"td-dialog-input\">\n <input\n matInput\n #input\n (focus)=\"handleInputFocus()\"\n (keydown.enter)=\"$event.preventDefault(); form.valid && accept()\"\n [(ngModel)]=\"value\"\n name=\"value\"\n required\n />\n </mat-form-field>\n </div>\n </form>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n color=\"accent\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n [disabled]=\"!form.valid\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n", styles: [".td-dialog-input-wrapper{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper .td-dialog-input{-ms-flex:1;flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"] }]
314
- }], function () { return [{ type: i1.MatDialogRef }]; }, { _input: [{
315
- type: ViewChild,
316
- args: ['input', { static: true }]
317
- }] }); })();
142
+ TdPromptDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, deps: [{ token: i0.NgZone }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
143
+ TdPromptDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdPromptDialogComponent, selector: "td-prompt-dialog", viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n <form #form=\"ngForm\" novalidate>\n <div class=\"td-dialog-input-wrapper\">\n <mat-form-field class=\"td-dialog-input\">\n <input\n matInput\n #input\n (focus)=\"handleInputFocus()\"\n (keydown.enter)=\"$event.preventDefault(); form.valid && accept()\"\n [(ngModel)]=\"value\"\n name=\"value\"\n required\n />\n </mat-form-field>\n </div>\n </form>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </button>\n <button\n mat-button\n color=\"accent\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n [disabled]=\"!form.valid\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-input-wrapper{flex-direction:row;box-sizing:border-box;display:flex}.td-dialog-input-wrapper .td-dialog-input{flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.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"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, decorators: [{
145
+ type: Component,
146
+ args: [{ selector: 'td-prompt-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n <form #form=\"ngForm\" novalidate>\n <div class=\"td-dialog-input-wrapper\">\n <mat-form-field class=\"td-dialog-input\">\n <input\n matInput\n #input\n (focus)=\"handleInputFocus()\"\n (keydown.enter)=\"$event.preventDefault(); form.valid && accept()\"\n [(ngModel)]=\"value\"\n name=\"value\"\n required\n />\n </mat-form-field>\n </div>\n </form>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </button>\n <button\n mat-button\n color=\"accent\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n [disabled]=\"!form.valid\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-input-wrapper{flex-direction:row;box-sizing:border-box;display:flex}.td-dialog-input-wrapper .td-dialog-input{flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"] }]
147
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.MatDialogRef }]; }, propDecorators: { _input: [{
148
+ type: ViewChild,
149
+ args: ['input', { static: true }]
150
+ }] } });
318
151
 
319
152
  class TdDialogService {
320
153
  constructor(_document, _dialogService, _dragDrop, rendererFactory) {
@@ -322,7 +155,7 @@ class TdDialogService {
322
155
  this._dialogService = _dialogService;
323
156
  this._dragDrop = _dragDrop;
324
157
  this.rendererFactory = rendererFactory;
325
- this._renderer2 = rendererFactory.createRenderer(undefined, undefined);
158
+ this._renderer2 = rendererFactory.createRenderer(undefined, null);
326
159
  }
327
160
  /**
328
161
  * params:
@@ -433,14 +266,17 @@ class TdDialogService {
433
266
  const CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
434
267
  const CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
435
268
  matDialogRef.afterOpened().subscribe(() => {
436
- const dialogElement = this._document.getElementById(matDialogRef.id);
269
+ const dialogElement = (this._document.getElementById(matDialogRef.id));
437
270
  const draggableElement = this._dragDrop.createDrag(dialogElement);
438
271
  if (draggableClass) {
439
272
  const childComponent = dialogElement.firstElementChild;
440
273
  this._renderer2.addClass(childComponent, draggableClass);
441
274
  }
442
275
  if (dragHandleSelectors && dragHandleSelectors.length) {
443
- const dragHandles = dragHandleSelectors.reduce((acc, curr) => [...acc, ...Array.from(dialogElement.querySelectorAll(curr))], []);
276
+ const dragHandles = dragHandleSelectors.reduce((acc, curr) => [
277
+ ...acc,
278
+ ...Array.from(dialogElement.querySelectorAll(curr)),
279
+ ], []);
444
280
  if (dragHandles.length > 0) {
445
281
  draggableElement.withHandles(dragHandles);
446
282
  }
@@ -464,16 +300,15 @@ class TdDialogService {
464
300
  return dialogConfig;
465
301
  }
466
302
  }
467
- /** @nocollapse */ /** @nocollapse */ TdDialogService.ɵfac = function TdDialogService_Factory(t) { return new (t || TdDialogService)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1.MatDialog), i0.ɵɵinject(i2.DragDrop), i0.ɵɵinject(i0.RendererFactory2)); };
468
- /** @nocollapse */ /** @nocollapse */ TdDialogService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TdDialogService, factory: TdDialogService.ɵfac });
469
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogService, [{
470
- type: Injectable
471
- }], function () { return [{ type: undefined, decorators: [{
472
- type: Inject,
473
- args: [DOCUMENT]
474
- }] }, { type: i1.MatDialog }, { type: i2.DragDrop }, { type: i0.RendererFactory2 }]; }, null); })();
303
+ TdDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService, deps: [{ token: DOCUMENT }, { token: i1.MatDialog }, { token: i2.DragDrop }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
304
+ TdDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService });
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService, decorators: [{
306
+ type: Injectable
307
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
308
+ type: Inject,
309
+ args: [DOCUMENT]
310
+ }] }, { type: i1.MatDialog }, { type: i2.DragDrop }, { type: i0.RendererFactory2 }]; } });
475
311
 
476
- const _c0 = ["*"];
477
312
  class TdWindowDialogComponent {
478
313
  constructor() {
479
314
  this.docked = false;
@@ -485,56 +320,26 @@ class TdWindowDialogComponent {
485
320
  this.dockToggled.emit(this.docked);
486
321
  }
487
322
  }
488
- /** @nocollapse */ /** @nocollapse */ TdWindowDialogComponent.ɵfac = function TdWindowDialogComponent_Factory(t) { return new (t || TdWindowDialogComponent)(); };
489
- /** @nocollapse */ /** @nocollapse */ TdWindowDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdWindowDialogComponent, selectors: [["td-window-dialog"]], inputs: { toolbarColor: "toolbarColor", docked: "docked", title: "title", toggleDockedStateLabel: "toggleDockedStateLabel", closeLabel: "closeLabel" }, outputs: { dockToggled: "dockToggled", closed: "closed" }, ngContentSelectors: _c0, decls: 9, vars: 11, consts: [[1, "td-window-dialog-toolbar", 3, "color"], ["layout", "row", "layout-align", "start center", "flex", ""], ["flex", "", 1, "mat-title", "td-window-dialog-title", "truncate"], ["mat-icon-button", "", 1, "td-window-dialog-close", 3, "matTooltip", "click"]], template: function TdWindowDialogComponent_Template(rf, ctx) { if (rf & 1) {
490
- i0.ɵɵprojectionDef();
491
- i0.ɵɵelementStart(0, "mat-toolbar", 0);
492
- i0.ɵɵelementStart(1, "mat-toolbar-row");
493
- i0.ɵɵelementStart(2, "div", 1);
494
- i0.ɵɵelementStart(3, "span", 2);
495
- i0.ɵɵtext(4);
496
- i0.ɵɵelementEnd();
497
- i0.ɵɵelementStart(5, "button", 3);
498
- i0.ɵɵlistener("click", function TdWindowDialogComponent_Template_button_click_5_listener() { return ctx.closed.emit(); });
499
- i0.ɵɵelementStart(6, "mat-icon");
500
- i0.ɵɵtext(7, "close");
501
- i0.ɵɵelementEnd();
502
- i0.ɵɵelementEnd();
503
- i0.ɵɵelementEnd();
504
- i0.ɵɵelementEnd();
505
- i0.ɵɵelementEnd();
506
- i0.ɵɵprojection(8);
507
- } if (rf & 2) {
508
- i0.ɵɵstyleProp("min-height", ctx.toolbarHeight, "px")("cursor", ctx.docked ? "inherit" : "move");
509
- i0.ɵɵproperty("color", ctx.toolbarColor);
510
- i0.ɵɵadvance(1);
511
- i0.ɵɵstyleProp("height", ctx.toolbarHeight, "px");
512
- i0.ɵɵadvance(3);
513
- i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
514
- i0.ɵɵadvance(1);
515
- i0.ɵɵproperty("matTooltip", ctx.closeLabel);
516
- i0.ɵɵattribute("data-test", "close-button");
517
- i0.ɵɵadvance(1);
518
- i0.ɵɵattribute("aria-label", ctx.closeLabel);
519
- } }, directives: [i1$1.MatToolbar, i1$1.MatToolbarRow, i4.MatButton, i3$1.MatTooltip, i4$2.MatIcon], styles: ["[_nghost-%COMP%]{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-toolbar[_ngcontent-%COMP%]{background:none}.td-window-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.td-window-dialog-close[_ngcontent-%COMP%]{margin-right:-8px} .td-window-dialog .mat-dialog-container{padding:0}"], changeDetection: 0 });
520
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdWindowDialogComponent, [{
521
- type: Component,
522
- args: [{ selector: 'td-window-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar\n [color]=\"toolbarColor\"\n class=\"td-window-dialog-toolbar\"\n [style.min-height.px]=\"toolbarHeight\"\n [style.cursor]=\"docked ? 'inherit' : 'move'\"\n>\n <mat-toolbar-row [style.height.px]=\"toolbarHeight\">\n <div layout=\"row\" layout-align=\"start center\" flex>\n <span class=\"mat-title td-window-dialog-title truncate\" flex>\n {{ title }}\n </span>\n <!-- TODO: Resizing a drag-and-drop element was not working so removed docking/undocking for now-->\n <!-- <button mat-icon-button [matTooltip]=\"toggleDockedStateLabel\" (click)=\"toggleDockedState()\">\n <mat-icon [attr.aria-label]=\"toggleDockedStateLabel\">\n {{ docked ? 'unfold_more' : 'unfold_less' }}\n </mat-icon>\n </button> -->\n\n <button\n mat-icon-button\n [matTooltip]=\"closeLabel\"\n (click)=\"closed.emit()\"\n class=\"td-window-dialog-close\"\n [attr.data-test]=\"'close-button'\"\n >\n <mat-icon [attr.aria-label]=\"closeLabel\">close</mat-icon>\n </button>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<ng-content></ng-content>\n", styles: [":host{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-toolbar{background:none}.td-window-dialog-title{margin-bottom:0}.td-window-dialog-close{margin-right:-8px}::ng-deep .td-window-dialog .mat-dialog-container{padding:0}\n"] }]
523
- }], null, { toolbarColor: [{
524
- type: Input
525
- }], docked: [{
526
- type: Input
527
- }], title: [{
528
- type: Input
529
- }], toggleDockedStateLabel: [{
530
- type: Input
531
- }], closeLabel: [{
532
- type: Input
533
- }], dockToggled: [{
534
- type: Output
535
- }], closed: [{
536
- type: Output
537
- }] }); })();
323
+ TdWindowDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
324
+ TdWindowDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdWindowDialogComponent, selector: "td-window-dialog", inputs: { toolbarColor: "toolbarColor", docked: "docked", title: "title", toggleDockedStateLabel: "toggleDockedStateLabel", closeLabel: "closeLabel" }, outputs: { dockToggled: "dockToggled", closed: "closed" }, ngImport: i0, template: "<mat-toolbar\n [color]=\"toolbarColor\"\n class=\"td-window-dialog-toolbar\"\n [style.min-height.px]=\"toolbarHeight\"\n [style.cursor]=\"docked ? 'inherit' : 'move'\"\n>\n <mat-toolbar-row [style.height.px]=\"toolbarHeight\">\n <div layout=\"row\" layout-align=\"start center\" flex>\n <span class=\"mat-title td-window-dialog-title truncate\" flex>\n {{ title }}\n </span>\n <!-- TODO: Resizing a drag-and-drop element was not working so removed docking/undocking for now-->\n <!-- <button mat-icon-button [matTooltip]=\"toggleDockedStateLabel\" (click)=\"toggleDockedState()\">\n <mat-icon [attr.aria-label]=\"toggleDockedStateLabel\">\n {{ docked ? 'unfold_more' : 'unfold_less' }}\n </mat-icon>\n </button> -->\n\n <button\n mat-icon-button\n [matTooltip]=\"closeLabel ?? ''\"\n (click)=\"closed.emit()\"\n class=\"td-window-dialog-close\"\n [attr.data-test]=\"'close-button'\"\n >\n <mat-icon [attr.aria-label]=\"closeLabel\">close</mat-icon>\n </button>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<ng-content></ng-content>\n", styles: [":host{height:100%;display:flex;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-toolbar{background:none}.td-window-dialog-title{margin-bottom:0}.td-window-dialog-close{margin-right:-8px}::ng-deep .td-window-dialog .mat-dialog-container{padding:0}\n"], components: [{ type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3.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: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1$1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, decorators: [{
326
+ type: Component,
327
+ args: [{ selector: 'td-window-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar\n [color]=\"toolbarColor\"\n class=\"td-window-dialog-toolbar\"\n [style.min-height.px]=\"toolbarHeight\"\n [style.cursor]=\"docked ? 'inherit' : 'move'\"\n>\n <mat-toolbar-row [style.height.px]=\"toolbarHeight\">\n <div layout=\"row\" layout-align=\"start center\" flex>\n <span class=\"mat-title td-window-dialog-title truncate\" flex>\n {{ title }}\n </span>\n <!-- TODO: Resizing a drag-and-drop element was not working so removed docking/undocking for now-->\n <!-- <button mat-icon-button [matTooltip]=\"toggleDockedStateLabel\" (click)=\"toggleDockedState()\">\n <mat-icon [attr.aria-label]=\"toggleDockedStateLabel\">\n {{ docked ? 'unfold_more' : 'unfold_less' }}\n </mat-icon>\n </button> -->\n\n <button\n mat-icon-button\n [matTooltip]=\"closeLabel ?? ''\"\n (click)=\"closed.emit()\"\n class=\"td-window-dialog-close\"\n [attr.data-test]=\"'close-button'\"\n >\n <mat-icon [attr.aria-label]=\"closeLabel\">close</mat-icon>\n </button>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<ng-content></ng-content>\n", styles: [":host{height:100%;display:flex;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-toolbar{background:none}.td-window-dialog-title{margin-bottom:0}.td-window-dialog-close{margin-right:-8px}::ng-deep .td-window-dialog .mat-dialog-container{padding:0}\n"] }]
328
+ }], propDecorators: { toolbarColor: [{
329
+ type: Input
330
+ }], docked: [{
331
+ type: Input
332
+ }], title: [{
333
+ type: Input
334
+ }], toggleDockedStateLabel: [{
335
+ type: Input
336
+ }], closeLabel: [{
337
+ type: Input
338
+ }], dockToggled: [{
339
+ type: Output
340
+ }], closed: [{
341
+ type: Output
342
+ }] } });
538
343
 
539
344
  const TD_DIALOGS = [
540
345
  TdAlertDialogComponent,
@@ -545,52 +350,24 @@ const TD_DIALOGS = [
545
350
  TdDialogActionsDirective,
546
351
  TdDialogContentDirective,
547
352
  TdWindowDialogComponent,
548
- ];
549
- const TD_DIALOGS_ENTRY_COMPONENTS = [
550
353
  TdAlertDialogComponent,
551
354
  TdConfirmDialogComponent,
552
355
  TdPromptDialogComponent,
553
356
  ];
554
357
  class CovalentDialogsModule {
555
358
  }
556
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵfac = function CovalentDialogsModule_Factory(t) { return new (t || CovalentDialogsModule)(); };
557
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentDialogsModule });
558
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TdDialogService], imports: [[
559
- FormsModule,
560
- CommonModule,
561
- MatDialogModule,
562
- MatInputModule,
563
- MatButtonModule,
564
- MatToolbarModule,
565
- MatTooltipModule,
566
- MatIconModule,
567
- ]] });
568
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDialogsModule, [{
569
- type: NgModule,
570
- args: [{
571
- imports: [
572
- FormsModule,
573
- CommonModule,
574
- MatDialogModule,
575
- MatInputModule,
576
- MatButtonModule,
577
- MatToolbarModule,
578
- MatTooltipModule,
579
- MatIconModule,
580
- ],
581
- declarations: [TD_DIALOGS],
582
- exports: [TD_DIALOGS],
583
- providers: [TdDialogService],
584
- }]
585
- }], null, null); })();
586
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDialogsModule, { declarations: [TdAlertDialogComponent,
359
+ CovalentDialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
360
+ CovalentDialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, declarations: [TdAlertDialogComponent,
587
361
  TdConfirmDialogComponent,
588
362
  TdPromptDialogComponent,
589
363
  TdDialogComponent,
590
364
  TdDialogTitleDirective,
591
365
  TdDialogActionsDirective,
592
366
  TdDialogContentDirective,
593
- TdWindowDialogComponent], imports: [FormsModule,
367
+ TdWindowDialogComponent,
368
+ TdAlertDialogComponent,
369
+ TdConfirmDialogComponent,
370
+ TdPromptDialogComponent], imports: [FormsModule,
594
371
  CommonModule,
595
372
  MatDialogModule,
596
373
  MatInputModule,
@@ -604,7 +381,38 @@ class CovalentDialogsModule {
604
381
  TdDialogTitleDirective,
605
382
  TdDialogActionsDirective,
606
383
  TdDialogContentDirective,
607
- TdWindowDialogComponent] }); })();
384
+ TdWindowDialogComponent,
385
+ TdAlertDialogComponent,
386
+ TdConfirmDialogComponent,
387
+ TdPromptDialogComponent] });
388
+ CovalentDialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, providers: [TdDialogService], imports: [[
389
+ FormsModule,
390
+ CommonModule,
391
+ MatDialogModule,
392
+ MatInputModule,
393
+ MatButtonModule,
394
+ MatToolbarModule,
395
+ MatTooltipModule,
396
+ MatIconModule,
397
+ ]] });
398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, decorators: [{
399
+ type: NgModule,
400
+ args: [{
401
+ imports: [
402
+ FormsModule,
403
+ CommonModule,
404
+ MatDialogModule,
405
+ MatInputModule,
406
+ MatButtonModule,
407
+ MatToolbarModule,
408
+ MatTooltipModule,
409
+ MatIconModule,
410
+ ],
411
+ declarations: [...TD_DIALOGS],
412
+ exports: [...TD_DIALOGS],
413
+ providers: [TdDialogService],
414
+ }]
415
+ }] });
608
416
 
609
417
  var corners;
610
418
  (function (corners) {
@@ -663,19 +471,28 @@ class ResizableDraggableDialog {
663
471
  return (this._document.getElementById(this._dialogRef.id) || {}).parentElement;
664
472
  }
665
473
  _getViewportDimensions() {
666
- return this._getDialogWrapper().parentElement.getBoundingClientRect();
474
+ return this._getDialogWrapper()?.parentElement?.getBoundingClientRect();
667
475
  }
668
476
  _getDialogWrapperDimensions() {
669
- const dimensions = getComputedStyle(this._getDialogWrapper());
477
+ const wrapper = this._getDialogWrapper();
478
+ if (!wrapper) {
479
+ return { width: 0, height: 0 };
480
+ }
481
+ const dimensions = getComputedStyle(wrapper);
670
482
  return {
671
483
  width: getPixels(dimensions.width),
672
484
  height: getPixels(dimensions.height),
673
485
  };
674
486
  }
675
487
  _initialPositionReset() {
676
- const { right: viewportWidth, bottom: viewportHeight } = this._getViewportDimensions();
488
+ const viewportWidth = this._getViewportDimensions()?.right ?? 0;
489
+ const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
677
490
  const { width, height } = this._getDialogWrapperDimensions();
678
- const { marginRight: originalDialogRight, marginLeft: originalDialogLeft, marginBottom: originalDialogBottom, marginTop: originalDialogTop, } = this._getDialogWrapper().style;
491
+ const wrapperStyle = this._getDialogWrapper()?.style;
492
+ const originalDialogRight = wrapperStyle?.marginRight;
493
+ const originalDialogLeft = wrapperStyle?.marginLeft;
494
+ const originalDialogBottom = wrapperStyle?.marginBottom;
495
+ const originalDialogTop = wrapperStyle?.marginTop;
679
496
  let x;
680
497
  if (originalDialogLeft) {
681
498
  x = getPixels(originalDialogLeft);
@@ -697,7 +514,12 @@ class ResizableDraggableDialog {
697
514
  y = (viewportHeight - height) / 2;
698
515
  }
699
516
  // use drag ref's mechanisms for positioning instead of the dialog's
700
- this._dialogRef.updatePosition({ top: '0px', right: '0px', bottom: '0px', left: '0px' });
517
+ this._dialogRef.updatePosition({
518
+ top: '0px',
519
+ right: '0px',
520
+ bottom: '0px',
521
+ left: '0px',
522
+ });
701
523
  this._dragRef.setFreeDragPosition({ x, y });
702
524
  }
703
525
  _attachCorners() {
@@ -732,7 +554,7 @@ class ResizableDraggableDialog {
732
554
  topBottom = verticalAlignment.bottom;
733
555
  rightLeft = horizontalAlignment.left;
734
556
  }
735
- else if (corner === corners.topLeft) {
557
+ else {
736
558
  cursor = cursors.nwse;
737
559
  topBottom = verticalAlignment.top;
738
560
  rightLeft = horizontalAlignment.left;
@@ -752,8 +574,11 @@ class ResizableDraggableDialog {
752
574
  const originalMouseX = event.pageX;
753
575
  const originalMouseY = event.pageY;
754
576
  const { x: currentTransformX, y: currentTransformY } = this._dragRef.getFreeDragPosition();
755
- const { bottom: distanceFromBottom, right: distanceFromRight } = this._getDialogWrapper().getBoundingClientRect();
756
- const { right: viewportWidth, bottom: viewportHeight } = this._getViewportDimensions();
577
+ const wrapper = this._getDialogWrapper()?.getBoundingClientRect();
578
+ const distanceFromBottom = wrapper?.bottom ?? 0;
579
+ const distanceFromRight = wrapper?.right ?? 0;
580
+ const viewportWidth = this._getViewportDimensions()?.right ?? 0;
581
+ const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
757
582
  const mouseMoveSub = fromEvent(window, 'pointermove').subscribe((e) => {
758
583
  e.preventDefault(); // prevent highlighting of text when dragging
759
584
  const yDelta = clamp(0, e.pageY, viewportHeight) - originalMouseY;
@@ -784,7 +609,7 @@ class ResizableDraggableDialog {
784
609
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
785
610
  }
786
611
  // top left
787
- else if (corner === corners.topLeft) {
612
+ else {
788
613
  newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
789
614
  newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
790
615
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);