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

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 +3 -3
  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 +15 -73
  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 +46 -47
  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 +125 -358
  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 +148 -233
  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 +160 -338
  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 +229 -273
  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 +6 -7
  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,79 +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 { Subject, fromEvent, merge } from 'rxjs';
15
15
  import * as i2 from '@angular/cdk/drag-drop';
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) {
24
- if (rf & 1) {
25
- i0.ɵɵelementStart(0, "h3", 4);
26
- i0.ɵɵprojection(1);
27
- i0.ɵɵelementEnd();
28
- }
29
- }
30
- function TdDialogComponent_div_2_Template(rf, ctx) {
31
- if (rf & 1) {
32
- i0.ɵɵelementStart(0, "div", 5);
33
- i0.ɵɵprojection(1, 1);
34
- i0.ɵɵelementEnd();
35
- }
36
- }
37
- function TdDialogComponent_div_3_Template(rf, ctx) {
38
- if (rf & 1) {
39
- i0.ɵɵelementStart(0, "div", 6);
40
- i0.ɵɵelement(1, "span", 7);
41
- i0.ɵɵprojection(2, 2);
42
- i0.ɵɵelementEnd();
43
- }
44
- }
45
- const _c0$2 = [[["td-dialog-title"]], [["td-dialog-content"]], [["td-dialog-actions"]]];
46
- const _c1 = ["td-dialog-title", "td-dialog-content", "td-dialog-actions"];
47
23
  class TdDialogTitleDirective {
48
24
  }
49
- /** @nocollapse */ /** @nocollapse */ TdDialogTitleDirective.ɵfac = function TdDialogTitleDirective_Factory(t) { return new (t || TdDialogTitleDirective)(); };
50
- /** @nocollapse */ /** @nocollapse */ TdDialogTitleDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogTitleDirective, selectors: [["td-dialog-title"]] });
51
- (function () {
52
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogTitleDirective, [{
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: [{
53
28
  type: Directive,
54
- args: [{ selector: 'td-dialog-title' }]
55
- }], null, null);
56
- })();
29
+ args: [{ selector: '[tdDialogTitle]' }]
30
+ }] });
57
31
  class TdDialogContentDirective {
58
32
  }
59
- /** @nocollapse */ /** @nocollapse */ TdDialogContentDirective.ɵfac = function TdDialogContentDirective_Factory(t) { return new (t || TdDialogContentDirective)(); };
60
- /** @nocollapse */ /** @nocollapse */ TdDialogContentDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogContentDirective, selectors: [["td-dialog-content"]] });
61
- (function () {
62
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogContentDirective, [{
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: [{
63
36
  type: Directive,
64
- args: [{ selector: 'td-dialog-content' }]
65
- }], null, null);
66
- })();
37
+ args: [{ selector: '[tdDialogContent]' }]
38
+ }] });
67
39
  class TdDialogActionsDirective {
68
40
  }
69
- /** @nocollapse */ /** @nocollapse */ TdDialogActionsDirective.ɵfac = function TdDialogActionsDirective_Factory(t) { return new (t || TdDialogActionsDirective)(); };
70
- /** @nocollapse */ /** @nocollapse */ TdDialogActionsDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdDialogActionsDirective, selectors: [["td-dialog-actions"]] });
71
- (function () {
72
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogActionsDirective, [{
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: [{
73
44
  type: Directive,
74
- args: [{ selector: 'td-dialog-actions' }]
75
- }], null, null);
76
- })();
45
+ args: [{ selector: '[tdDialogActions]' }]
46
+ }] });
77
47
  class TdDialogComponent {
78
48
  ngAfterContentInit() {
79
49
  if (this.dialogTitle.length > 1) {
@@ -87,42 +57,12 @@ class TdDialogComponent {
87
57
  }
88
58
  }
89
59
  }
90
- /** @nocollapse */ /** @nocollapse */ TdDialogComponent.ɵfac = function TdDialogComponent_Factory(t) { return new (t || TdDialogComponent)(); };
91
- /** @nocollapse */ /** @nocollapse */ TdDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdDialogComponent, selectors: [["td-dialog"]], contentQueries: function TdDialogComponent_ContentQueries(rf, ctx, dirIndex) {
92
- if (rf & 1) {
93
- i0.ɵɵcontentQuery(dirIndex, TdDialogTitleDirective, 5);
94
- i0.ɵɵcontentQuery(dirIndex, TdDialogContentDirective, 5);
95
- i0.ɵɵcontentQuery(dirIndex, TdDialogActionsDirective, 5);
96
- }
97
- if (rf & 2) {
98
- let _t;
99
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogTitle = _t);
100
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogContent = _t);
101
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogActions = _t);
102
- }
103
- }, 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) {
104
- if (rf & 1) {
105
- i0.ɵɵprojectionDef(_c0$2);
106
- i0.ɵɵelementStart(0, "div", 0);
107
- i0.ɵɵtemplate(1, TdDialogComponent_h3_1_Template, 2, 0, "h3", 1);
108
- i0.ɵɵtemplate(2, TdDialogComponent_div_2_Template, 2, 0, "div", 2);
109
- i0.ɵɵtemplate(3, TdDialogComponent_div_3_Template, 3, 0, "div", 3);
110
- i0.ɵɵelementEnd();
111
- }
112
- if (rf & 2) {
113
- i0.ɵɵadvance(1);
114
- i0.ɵɵproperty("ngIf", ctx.dialogTitle.length > 0);
115
- i0.ɵɵadvance(1);
116
- i0.ɵɵproperty("ngIf", ctx.dialogContent.length > 0);
117
- i0.ɵɵadvance(1);
118
- i0.ɵɵproperty("ngIf", ctx.dialogActions.length > 0);
119
- }
120
- }, 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}"] });
121
- (function () {
122
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogComponent, [{
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: [{
123
63
  type: Component,
124
- 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"] }]
125
- }], null, { dialogTitle: [{
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: [{
126
66
  type: ContentChildren,
127
67
  args: [TdDialogTitleDirective, { descendants: true }]
128
68
  }], dialogContent: [{
@@ -131,21 +71,8 @@ class TdDialogComponent {
131
71
  }], dialogActions: [{
132
72
  type: ContentChildren,
133
73
  args: [TdDialogActionsDirective, { descendants: true }]
134
- }] });
135
- })();
74
+ }] } });
136
75
 
137
- function TdAlertDialogComponent_td_dialog_title_1_Template(rf, ctx) {
138
- if (rf & 1) {
139
- i0.ɵɵelementStart(0, "td-dialog-title");
140
- i0.ɵɵtext(1);
141
- i0.ɵɵelementEnd();
142
- }
143
- if (rf & 2) {
144
- const ctx_r0 = i0.ɵɵnextContext();
145
- i0.ɵɵadvance(1);
146
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
147
- }
148
- }
149
76
  class TdAlertDialogComponent {
150
77
  constructor(_dialogRef) {
151
78
  this._dialogRef = _dialogRef;
@@ -155,52 +82,13 @@ class TdAlertDialogComponent {
155
82
  this._dialogRef.close();
156
83
  }
157
84
  }
158
- /** @nocollapse */ /** @nocollapse */ TdAlertDialogComponent.ɵfac = function TdAlertDialogComponent_Factory(t) { return new (t || TdAlertDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
159
- /** @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) {
160
- if (rf & 1) {
161
- i0.ɵɵelementStart(0, "td-dialog");
162
- i0.ɵɵtemplate(1, TdAlertDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
163
- i0.ɵɵelementStart(2, "td-dialog-content");
164
- i0.ɵɵelementStart(3, "span", 1);
165
- i0.ɵɵtext(4);
166
- i0.ɵɵelementEnd();
167
- i0.ɵɵelementEnd();
168
- i0.ɵɵelementStart(5, "td-dialog-actions");
169
- i0.ɵɵelementStart(6, "button", 2);
170
- i0.ɵɵlistener("click", function TdAlertDialogComponent_Template_button_click_6_listener() { return ctx.close(); });
171
- i0.ɵɵtext(7);
172
- i0.ɵɵelementEnd();
173
- i0.ɵɵelementEnd();
174
- i0.ɵɵelementEnd();
175
- }
176
- if (rf & 2) {
177
- i0.ɵɵadvance(1);
178
- i0.ɵɵproperty("ngIf", ctx.title);
179
- i0.ɵɵadvance(3);
180
- i0.ɵɵtextInterpolate(ctx.message);
181
- i0.ɵɵadvance(3);
182
- i0.ɵɵtextInterpolate(ctx.closeButton);
183
- }
184
- }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
185
- (function () {
186
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdAlertDialogComponent, [{
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: [{
187
88
  type: Component,
188
- 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"] }]
189
- }], function () { return [{ type: i1.MatDialogRef }]; }, null);
190
- })();
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 }]; } });
191
91
 
192
- function TdConfirmDialogComponent_td_dialog_title_1_Template(rf, ctx) {
193
- if (rf & 1) {
194
- i0.ɵɵelementStart(0, "td-dialog-title");
195
- i0.ɵɵtext(1);
196
- i0.ɵɵelementEnd();
197
- }
198
- if (rf & 2) {
199
- const ctx_r0 = i0.ɵɵnextContext();
200
- i0.ɵɵadvance(1);
201
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
202
- }
203
- }
204
92
  class TdConfirmDialogComponent {
205
93
  constructor(_dialogRef) {
206
94
  this._dialogRef = _dialogRef;
@@ -215,62 +103,13 @@ class TdConfirmDialogComponent {
215
103
  this._dialogRef.close(true);
216
104
  }
217
105
  }
218
- /** @nocollapse */ /** @nocollapse */ TdConfirmDialogComponent.ɵfac = function TdConfirmDialogComponent_Factory(t) { return new (t || TdConfirmDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
219
- /** @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) {
220
- if (rf & 1) {
221
- const _r3 = i0.ɵɵgetCurrentView();
222
- i0.ɵɵelementStart(0, "td-dialog");
223
- i0.ɵɵtemplate(1, TdConfirmDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
224
- i0.ɵɵelementStart(2, "td-dialog-content");
225
- i0.ɵɵelementStart(3, "span", 1);
226
- i0.ɵɵtext(4);
227
- i0.ɵɵelementEnd();
228
- i0.ɵɵelementEnd();
229
- i0.ɵɵelementStart(5, "td-dialog-actions");
230
- i0.ɵɵelementStart(6, "button", 2, 3);
231
- 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(); });
232
- i0.ɵɵtext(8);
233
- i0.ɵɵelementEnd();
234
- i0.ɵɵelementStart(9, "button", 4, 5);
235
- 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(); });
236
- i0.ɵɵtext(11);
237
- i0.ɵɵelementEnd();
238
- i0.ɵɵelementEnd();
239
- i0.ɵɵelementEnd();
240
- }
241
- if (rf & 2) {
242
- i0.ɵɵadvance(1);
243
- i0.ɵɵproperty("ngIf", ctx.title);
244
- i0.ɵɵadvance(3);
245
- i0.ɵɵtextInterpolate(ctx.message);
246
- i0.ɵɵadvance(4);
247
- i0.ɵɵtextInterpolate(ctx.cancelButton);
248
- i0.ɵɵadvance(1);
249
- i0.ɵɵproperty("color", ctx.isDestructive ? "warn" : "accent");
250
- i0.ɵɵadvance(2);
251
- i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
252
- }
253
- }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
254
- (function () {
255
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdConfirmDialogComponent, [{
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: [{
256
109
  type: Component,
257
- 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"] }]
258
- }], function () { return [{ type: i1.MatDialogRef }]; }, null);
259
- })();
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 }]; } });
260
112
 
261
- const _c0$1 = ["input"];
262
- function TdPromptDialogComponent_td_dialog_title_1_Template(rf, ctx) {
263
- if (rf & 1) {
264
- i0.ɵɵelementStart(0, "td-dialog-title");
265
- i0.ɵɵtext(1);
266
- i0.ɵɵelementEnd();
267
- }
268
- if (rf & 2) {
269
- const ctx_r0 = i0.ɵɵnextContext();
270
- i0.ɵɵadvance(1);
271
- i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
272
- }
273
- }
274
113
  class TdPromptDialogComponent {
275
114
  constructor(_dialogRef) {
276
115
  this._dialogRef = _dialogRef;
@@ -297,71 +136,15 @@ class TdPromptDialogComponent {
297
136
  this._dialogRef.close(this.value);
298
137
  }
299
138
  }
300
- /** @nocollapse */ /** @nocollapse */ TdPromptDialogComponent.ɵfac = function TdPromptDialogComponent_Factory(t) { return new (t || TdPromptDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef)); };
301
- /** @nocollapse */ /** @nocollapse */ TdPromptDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdPromptDialogComponent, selectors: [["td-prompt-dialog"]], viewQuery: function TdPromptDialogComponent_Query(rf, ctx) {
302
- if (rf & 1) {
303
- i0.ɵɵviewQuery(_c0$1, 7);
304
- }
305
- if (rf & 2) {
306
- let _t;
307
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._input = _t.first);
308
- }
309
- }, 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) {
310
- if (rf & 1) {
311
- const _r5 = i0.ɵɵgetCurrentView();
312
- i0.ɵɵelementStart(0, "td-dialog");
313
- i0.ɵɵtemplate(1, TdPromptDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
314
- i0.ɵɵelementStart(2, "td-dialog-content");
315
- i0.ɵɵelementStart(3, "span", 1);
316
- i0.ɵɵtext(4);
317
- i0.ɵɵelementEnd();
318
- i0.ɵɵelementStart(5, "form", 2, 3);
319
- i0.ɵɵelementStart(7, "div", 4);
320
- i0.ɵɵelementStart(8, "mat-form-field", 5);
321
- i0.ɵɵelementStart(9, "input", 6, 7);
322
- 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; });
323
- i0.ɵɵelementEnd();
324
- i0.ɵɵelementEnd();
325
- i0.ɵɵelementEnd();
326
- i0.ɵɵelementEnd();
327
- i0.ɵɵelementEnd();
328
- i0.ɵɵelementStart(11, "td-dialog-actions");
329
- i0.ɵɵelementStart(12, "button", 8, 9);
330
- 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(); });
331
- i0.ɵɵtext(14);
332
- i0.ɵɵelementEnd();
333
- i0.ɵɵelementStart(15, "button", 10, 11);
334
- 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(); });
335
- i0.ɵɵtext(17);
336
- i0.ɵɵelementEnd();
337
- i0.ɵɵelementEnd();
338
- i0.ɵɵelementEnd();
339
- }
340
- if (rf & 2) {
341
- const _r1 = i0.ɵɵreference(6);
342
- i0.ɵɵadvance(1);
343
- i0.ɵɵproperty("ngIf", ctx.title);
344
- i0.ɵɵadvance(3);
345
- i0.ɵɵtextInterpolate(ctx.message);
346
- i0.ɵɵadvance(5);
347
- i0.ɵɵproperty("ngModel", ctx.value);
348
- i0.ɵɵadvance(5);
349
- i0.ɵɵtextInterpolate(ctx.cancelButton);
350
- i0.ɵɵadvance(1);
351
- i0.ɵɵproperty("disabled", !_r1.valid);
352
- i0.ɵɵadvance(2);
353
- i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
354
- }
355
- }, 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}"] });
356
- (function () {
357
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdPromptDialogComponent, [{
139
+ TdPromptDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
140
+ 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]" }] });
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, decorators: [{
358
142
  type: Component,
359
- 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"] }]
360
- }], function () { return [{ type: i1.MatDialogRef }]; }, { _input: [{
143
+ 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"] }]
144
+ }], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; }, propDecorators: { _input: [{
361
145
  type: ViewChild,
362
146
  args: ['input', { static: true }]
363
- }] });
364
- })();
147
+ }] } });
365
148
 
366
149
  class TdDialogService {
367
150
  constructor(_document, _dialogService, _dragDrop, rendererFactory) {
@@ -369,7 +152,7 @@ class TdDialogService {
369
152
  this._dialogService = _dialogService;
370
153
  this._dragDrop = _dragDrop;
371
154
  this.rendererFactory = rendererFactory;
372
- this._renderer2 = rendererFactory.createRenderer(undefined, undefined);
155
+ this._renderer2 = rendererFactory.createRenderer(undefined, null);
373
156
  }
374
157
  /**
375
158
  * params:
@@ -480,14 +263,17 @@ class TdDialogService {
480
263
  const CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
481
264
  const CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
482
265
  matDialogRef.afterOpened().subscribe(() => {
483
- const dialogElement = this._document.getElementById(matDialogRef.id);
266
+ const dialogElement = (this._document.getElementById(matDialogRef.id));
484
267
  const draggableElement = this._dragDrop.createDrag(dialogElement);
485
268
  if (draggableClass) {
486
269
  const childComponent = dialogElement.firstElementChild;
487
270
  this._renderer2.addClass(childComponent, draggableClass);
488
271
  }
489
272
  if (dragHandleSelectors && dragHandleSelectors.length) {
490
- const dragHandles = dragHandleSelectors.reduce((acc, curr) => [...acc, ...Array.from(dialogElement.querySelectorAll(curr))], []);
273
+ const dragHandles = dragHandleSelectors.reduce((acc, curr) => [
274
+ ...acc,
275
+ ...Array.from(dialogElement.querySelectorAll(curr)),
276
+ ], []);
491
277
  if (dragHandles.length > 0) {
492
278
  draggableElement.withHandles(dragHandles);
493
279
  }
@@ -511,20 +297,17 @@ class TdDialogService {
511
297
  return dialogConfig;
512
298
  }
513
299
  }
514
- /** @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)); };
515
- /** @nocollapse */ /** @nocollapse */ TdDialogService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TdDialogService, factory: TdDialogService.ɵfac });
516
- (function () {
517
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogService, [{
300
+ 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 });
301
+ TdDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService });
302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService, decorators: [{
518
303
  type: Injectable
519
- }], function () {
304
+ }], ctorParameters: function () {
520
305
  return [{ type: undefined, decorators: [{
521
306
  type: Inject,
522
307
  args: [DOCUMENT]
523
308
  }] }, { type: i1.MatDialog }, { type: i2.DragDrop }, { type: i0.RendererFactory2 }];
524
- }, null);
525
- })();
309
+ } });
526
310
 
527
- const _c0 = ["*"];
528
311
  class TdWindowDialogComponent {
529
312
  constructor() {
530
313
  this.docked = false;
@@ -536,46 +319,12 @@ class TdWindowDialogComponent {
536
319
  this.dockToggled.emit(this.docked);
537
320
  }
538
321
  }
539
- /** @nocollapse */ /** @nocollapse */ TdWindowDialogComponent.ɵfac = function TdWindowDialogComponent_Factory(t) { return new (t || TdWindowDialogComponent)(); };
540
- /** @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) {
541
- if (rf & 1) {
542
- i0.ɵɵprojectionDef();
543
- i0.ɵɵelementStart(0, "mat-toolbar", 0);
544
- i0.ɵɵelementStart(1, "mat-toolbar-row");
545
- i0.ɵɵelementStart(2, "div", 1);
546
- i0.ɵɵelementStart(3, "span", 2);
547
- i0.ɵɵtext(4);
548
- i0.ɵɵelementEnd();
549
- i0.ɵɵelementStart(5, "button", 3);
550
- i0.ɵɵlistener("click", function TdWindowDialogComponent_Template_button_click_5_listener() { return ctx.closed.emit(); });
551
- i0.ɵɵelementStart(6, "mat-icon");
552
- i0.ɵɵtext(7, "close");
553
- i0.ɵɵelementEnd();
554
- i0.ɵɵelementEnd();
555
- i0.ɵɵelementEnd();
556
- i0.ɵɵelementEnd();
557
- i0.ɵɵelementEnd();
558
- i0.ɵɵprojection(8);
559
- }
560
- if (rf & 2) {
561
- i0.ɵɵstyleProp("min-height", ctx.toolbarHeight, "px")("cursor", ctx.docked ? "inherit" : "move");
562
- i0.ɵɵproperty("color", ctx.toolbarColor);
563
- i0.ɵɵadvance(1);
564
- i0.ɵɵstyleProp("height", ctx.toolbarHeight, "px");
565
- i0.ɵɵadvance(3);
566
- i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
567
- i0.ɵɵadvance(1);
568
- i0.ɵɵproperty("matTooltip", ctx.closeLabel);
569
- i0.ɵɵattribute("data-test", "close-button");
570
- i0.ɵɵadvance(1);
571
- i0.ɵɵattribute("aria-label", ctx.closeLabel);
572
- }
573
- }, 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 });
574
- (function () {
575
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdWindowDialogComponent, [{
322
+ TdWindowDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
323
+ 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 });
324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, decorators: [{
576
325
  type: Component,
577
- 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"] }]
578
- }], null, { toolbarColor: [{
326
+ 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"] }]
327
+ }], propDecorators: { toolbarColor: [{
579
328
  type: Input
580
329
  }], docked: [{
581
330
  type: Input
@@ -589,8 +338,7 @@ class TdWindowDialogComponent {
589
338
  type: Output
590
339
  }], closed: [{
591
340
  type: Output
592
- }] });
593
- })();
341
+ }] } });
594
342
 
595
343
  const TD_DIALOGS = [
596
344
  TdAlertDialogComponent,
@@ -601,17 +349,42 @@ const TD_DIALOGS = [
601
349
  TdDialogActionsDirective,
602
350
  TdDialogContentDirective,
603
351
  TdWindowDialogComponent,
604
- ];
605
- const TD_DIALOGS_ENTRY_COMPONENTS = [
606
352
  TdAlertDialogComponent,
607
353
  TdConfirmDialogComponent,
608
354
  TdPromptDialogComponent,
609
355
  ];
610
356
  class CovalentDialogsModule {
611
357
  }
612
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵfac = function CovalentDialogsModule_Factory(t) { return new (t || CovalentDialogsModule)(); };
613
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentDialogsModule });
614
- /** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TdDialogService], imports: [[
358
+ CovalentDialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
359
+ CovalentDialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, declarations: [TdAlertDialogComponent,
360
+ TdConfirmDialogComponent,
361
+ TdPromptDialogComponent,
362
+ TdDialogComponent,
363
+ TdDialogTitleDirective,
364
+ TdDialogActionsDirective,
365
+ TdDialogContentDirective,
366
+ TdWindowDialogComponent,
367
+ TdAlertDialogComponent,
368
+ TdConfirmDialogComponent,
369
+ TdPromptDialogComponent], imports: [FormsModule,
370
+ CommonModule,
371
+ MatDialogModule,
372
+ MatInputModule,
373
+ MatButtonModule,
374
+ MatToolbarModule,
375
+ MatTooltipModule,
376
+ MatIconModule], exports: [TdAlertDialogComponent,
377
+ TdConfirmDialogComponent,
378
+ TdPromptDialogComponent,
379
+ TdDialogComponent,
380
+ TdDialogTitleDirective,
381
+ TdDialogActionsDirective,
382
+ TdDialogContentDirective,
383
+ TdWindowDialogComponent,
384
+ TdAlertDialogComponent,
385
+ TdConfirmDialogComponent,
386
+ TdPromptDialogComponent] });
387
+ CovalentDialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, providers: [TdDialogService], imports: [[
615
388
  FormsModule,
616
389
  CommonModule,
617
390
  MatDialogModule,
@@ -621,8 +394,7 @@ class CovalentDialogsModule {
621
394
  MatTooltipModule,
622
395
  MatIconModule,
623
396
  ]] });
624
- (function () {
625
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDialogsModule, [{
397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, decorators: [{
626
398
  type: NgModule,
627
399
  args: [{
628
400
  imports: [
@@ -635,36 +407,11 @@ class CovalentDialogsModule {
635
407
  MatTooltipModule,
636
408
  MatIconModule,
637
409
  ],
638
- declarations: [TD_DIALOGS],
639
- exports: [TD_DIALOGS],
410
+ declarations: [...TD_DIALOGS],
411
+ exports: [...TD_DIALOGS],
640
412
  providers: [TdDialogService],
641
413
  }]
642
- }], null, null);
643
- })();
644
- (function () {
645
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDialogsModule, { declarations: [TdAlertDialogComponent,
646
- TdConfirmDialogComponent,
647
- TdPromptDialogComponent,
648
- TdDialogComponent,
649
- TdDialogTitleDirective,
650
- TdDialogActionsDirective,
651
- TdDialogContentDirective,
652
- TdWindowDialogComponent], imports: [FormsModule,
653
- CommonModule,
654
- MatDialogModule,
655
- MatInputModule,
656
- MatButtonModule,
657
- MatToolbarModule,
658
- MatTooltipModule,
659
- MatIconModule], exports: [TdAlertDialogComponent,
660
- TdConfirmDialogComponent,
661
- TdPromptDialogComponent,
662
- TdDialogComponent,
663
- TdDialogTitleDirective,
664
- TdDialogActionsDirective,
665
- TdDialogContentDirective,
666
- TdWindowDialogComponent] });
667
- })();
414
+ }] });
668
415
 
669
416
  var corners;
670
417
  (function (corners) {
@@ -723,19 +470,30 @@ class ResizableDraggableDialog {
723
470
  return (this._document.getElementById(this._dialogRef.id) || {}).parentElement;
724
471
  }
725
472
  _getViewportDimensions() {
726
- return this._getDialogWrapper().parentElement.getBoundingClientRect();
473
+ var _a, _b;
474
+ return (_b = (_a = this._getDialogWrapper()) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
727
475
  }
728
476
  _getDialogWrapperDimensions() {
729
- 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);
730
482
  return {
731
483
  width: getPixels(dimensions.width),
732
484
  height: getPixels(dimensions.height),
733
485
  };
734
486
  }
735
487
  _initialPositionReset() {
736
- const { right: viewportWidth, bottom: viewportHeight } = this._getViewportDimensions();
488
+ var _a, _b, _c, _d, _e;
489
+ const viewportWidth = (_b = (_a = this._getViewportDimensions()) === null || _a === void 0 ? void 0 : _a.right) !== null && _b !== void 0 ? _b : 0;
490
+ const viewportHeight = (_d = (_c = this._getViewportDimensions()) === null || _c === void 0 ? void 0 : _c.bottom) !== null && _d !== void 0 ? _d : 0;
737
491
  const { width, height } = this._getDialogWrapperDimensions();
738
- const { marginRight: originalDialogRight, marginLeft: originalDialogLeft, marginBottom: originalDialogBottom, marginTop: originalDialogTop, } = this._getDialogWrapper().style;
492
+ const wrapperStyle = (_e = this._getDialogWrapper()) === null || _e === void 0 ? void 0 : _e.style;
493
+ const originalDialogRight = wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.marginRight;
494
+ const originalDialogLeft = wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.marginLeft;
495
+ const originalDialogBottom = wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.marginBottom;
496
+ const originalDialogTop = wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.marginTop;
739
497
  let x;
740
498
  if (originalDialogLeft) {
741
499
  x = getPixels(originalDialogLeft);
@@ -757,7 +515,12 @@ class ResizableDraggableDialog {
757
515
  y = (viewportHeight - height) / 2;
758
516
  }
759
517
  // use drag ref's mechanisms for positioning instead of the dialog's
760
- this._dialogRef.updatePosition({ top: '0px', right: '0px', bottom: '0px', left: '0px' });
518
+ this._dialogRef.updatePosition({
519
+ top: '0px',
520
+ right: '0px',
521
+ bottom: '0px',
522
+ left: '0px',
523
+ });
761
524
  this._dragRef.setFreeDragPosition({ x, y });
762
525
  }
763
526
  _attachCorners() {
@@ -792,7 +555,7 @@ class ResizableDraggableDialog {
792
555
  topBottom = verticalAlignment.bottom;
793
556
  rightLeft = horizontalAlignment.left;
794
557
  }
795
- else if (corner === corners.topLeft) {
558
+ else {
796
559
  cursor = cursors.nwse;
797
560
  topBottom = verticalAlignment.top;
798
561
  rightLeft = horizontalAlignment.left;
@@ -807,13 +570,17 @@ class ResizableDraggableDialog {
807
570
  });
808
571
  }
809
572
  _handleMouseDown(event, corner) {
573
+ var _a, _b, _c, _d, _e, _f, _g;
810
574
  this._renderer2.setStyle(this._document.body, 'user-select', 'none');
811
575
  const { width: originalWidth, height: originalHeight } = this._getDialogWrapperDimensions();
812
576
  const originalMouseX = event.pageX;
813
577
  const originalMouseY = event.pageY;
814
578
  const { x: currentTransformX, y: currentTransformY } = this._dragRef.getFreeDragPosition();
815
- const { bottom: distanceFromBottom, right: distanceFromRight } = this._getDialogWrapper().getBoundingClientRect();
816
- const { right: viewportWidth, bottom: viewportHeight } = this._getViewportDimensions();
579
+ const wrapper = (_a = this._getDialogWrapper()) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
580
+ const distanceFromBottom = (_b = wrapper === null || wrapper === void 0 ? void 0 : wrapper.bottom) !== null && _b !== void 0 ? _b : 0;
581
+ const distanceFromRight = (_c = wrapper === null || wrapper === void 0 ? void 0 : wrapper.right) !== null && _c !== void 0 ? _c : 0;
582
+ const viewportWidth = (_e = (_d = this._getViewportDimensions()) === null || _d === void 0 ? void 0 : _d.right) !== null && _e !== void 0 ? _e : 0;
583
+ const viewportHeight = (_g = (_f = this._getViewportDimensions()) === null || _f === void 0 ? void 0 : _f.bottom) !== null && _g !== void 0 ? _g : 0;
817
584
  const mouseMoveSub = fromEvent(window, 'pointermove').subscribe((e) => {
818
585
  e.preventDefault(); // prevent highlighting of text when dragging
819
586
  const yDelta = clamp(0, e.pageY, viewportHeight) - originalMouseY;
@@ -844,7 +611,7 @@ class ResizableDraggableDialog {
844
611
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
845
612
  }
846
613
  // top left
847
- else if (corner === corners.topLeft) {
614
+ else {
848
615
  newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
849
616
  newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
850
617
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);