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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/README.md +5 -4
  2. package/breadcrumbs/README.md +21 -17
  3. package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
  4. package/breadcrumbs/breadcrumbs.component.d.ts +1 -0
  5. package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
  6. package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
  7. package/common/README.md +3 -0
  8. package/common/_common-theme.scss +1 -1
  9. package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
  10. package/common/behaviors/disabled.mixin.d.ts +1 -1
  11. package/common/covalent-core-common.d.ts +1 -1
  12. package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
  13. package/common/{public-api.d.ts → public_api.d.ts} +0 -0
  14. package/common/styles/font/README.md +4 -2
  15. package/covalent-core.d.ts +1 -1
  16. package/dialogs/README.md +38 -30
  17. package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
  18. package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
  19. package/dialogs/covalent-core-dialogs.d.ts +1 -1
  20. package/dialogs/dialog.component.d.ts +4 -4
  21. package/dialogs/dialogs.module.d.ts +1 -1
  22. package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -3
  23. package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
  24. package/dialogs/src/README.md +223 -0
  25. package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
  26. package/dynamic-menu/README.md +6 -6
  27. package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
  28. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
  29. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
  30. package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
  31. package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
  32. package/dynamic-menu/public_api.d.ts +1 -0
  33. package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
  34. package/esm2020/breadcrumbs/breadcrumbs.component.mjs +20 -25
  35. package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
  36. package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
  37. package/esm2020/breadcrumbs/public_api.mjs +4 -0
  38. package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
  39. package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
  40. package/esm2020/common/animations/common/interfaces.mjs +1 -1
  41. package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
  42. package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
  43. package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
  44. package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
  45. package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
  46. package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
  47. package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
  48. package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
  49. package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
  50. package/esm2020/common/common.module.mjs +14 -15
  51. package/esm2020/common/covalent-core-common.mjs +2 -2
  52. package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
  53. package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
  54. package/esm2020/common/forms/validators/validators.mjs +6 -6
  55. package/esm2020/common/functions/clipboard.mjs +1 -1
  56. package/esm2020/common/functions/convert.mjs +1 -1
  57. package/esm2020/common/functions/download.mjs +1 -1
  58. package/esm2020/common/functions/file.mjs +1 -1
  59. package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
  60. package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
  61. package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
  62. package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
  63. package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
  64. package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
  65. package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
  66. package/esm2020/common/public_api.mjs +39 -0
  67. package/esm2020/common/services/icon.service.mjs +6 -6
  68. package/esm2020/common/services/router-path.service.mjs +6 -6
  69. package/esm2020/covalent-core.mjs +2 -2
  70. package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
  71. package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
  72. package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
  73. package/esm2020/dialogs/dialog.component.mjs +35 -76
  74. package/esm2020/dialogs/dialogs.module.mjs +39 -36
  75. package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +15 -73
  76. package/esm2020/dialogs/public_api.mjs +9 -0
  77. package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
  78. package/esm2020/dialogs/services/dialog.service.mjs +16 -13
  79. package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
  80. package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
  81. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
  82. package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
  83. package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
  84. package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
  85. package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
  86. package/esm2020/dynamic-menu/public_api.mjs +2 -1
  87. package/esm2020/file/covalent-core-file.mjs +2 -2
  88. package/esm2020/file/directives/file-drop.directive.mjs +46 -47
  89. package/esm2020/file/directives/file-select.directive.mjs +32 -31
  90. package/esm2020/file/file-input/file-input.component.mjs +41 -68
  91. package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
  92. package/esm2020/file/file.module.mjs +32 -17
  93. package/esm2020/file/public_api.mjs +7 -0
  94. package/esm2020/file/services/file.service.mjs +13 -11
  95. package/esm2020/json-formatter/collapse.animation.mjs +51 -0
  96. package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
  97. package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
  98. package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
  99. package/esm2020/json-formatter/public_api.mjs +3 -0
  100. package/esm2020/layout/covalent-core-layout.mjs +2 -2
  101. package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
  102. package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
  103. package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
  104. package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
  105. package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
  106. package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
  107. package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
  108. package/esm2020/layout/layout-toggle.class.mjs +12 -15
  109. package/esm2020/layout/layout.component.mjs +22 -43
  110. package/esm2020/layout/layout.directives.mjs +48 -50
  111. package/esm2020/layout/layout.module.mjs +34 -35
  112. package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
  113. package/esm2020/layout/public_api.mjs +13 -0
  114. package/esm2020/menu/covalent-core-menu.mjs +2 -2
  115. package/esm2020/menu/menu.component.mjs +7 -18
  116. package/esm2020/menu/menu.module.mjs +12 -13
  117. package/esm2020/menu/public_api.mjs +3 -0
  118. package/esm2020/message/collapse.animation.mjs +51 -0
  119. package/esm2020/message/covalent-core-message.mjs +2 -2
  120. package/esm2020/message/message.component.mjs +44 -102
  121. package/esm2020/message/message.module.mjs +19 -15
  122. package/esm2020/message/public_api.mjs +3 -0
  123. package/esm2020/public_api.mjs +2 -0
  124. package/esm2020/search/covalent-core-search.mjs +2 -2
  125. package/esm2020/search/public_api.mjs +4 -0
  126. package/esm2020/search/search-box/search-box.component.mjs +97 -123
  127. package/esm2020/search/search-input/search-input.component.mjs +116 -153
  128. package/esm2020/search/search.module.mjs +28 -13
  129. package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
  130. package/esm2020/side-sheet/public_api.mjs +6 -0
  131. package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
  132. package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
  133. package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
  134. package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
  135. package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
  136. package/esm2020/side-sheet/side-sheet.mjs +44 -31
  137. package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
  138. package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
  139. package/esm2020/user-profile/public_api.mjs +1 -1
  140. package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
  141. package/esm2020/user-profile/user-profile.component.mjs +13 -35
  142. package/esm2020/user-profile/user-profile.module.mjs +32 -14
  143. package/fesm2015/covalent-core-breadcrumbs.mjs +35 -76
  144. package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
  145. package/fesm2015/covalent-core-common.mjs +170 -140
  146. package/fesm2015/covalent-core-common.mjs.map +1 -1
  147. package/fesm2015/covalent-core-dialogs.mjs +125 -358
  148. package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
  149. package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
  150. package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
  151. package/fesm2015/covalent-core-file.mjs +148 -233
  152. package/fesm2015/covalent-core-file.mjs.map +1 -1
  153. package/fesm2015/covalent-core-json-formatter.mjs +93 -148
  154. package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
  155. package/fesm2015/covalent-core-layout.mjs +194 -747
  156. package/fesm2015/covalent-core-layout.mjs.map +1 -1
  157. package/fesm2015/covalent-core-menu.mjs +10 -28
  158. package/fesm2015/covalent-core-menu.mjs.map +1 -1
  159. package/fesm2015/covalent-core-message.mjs +79 -104
  160. package/fesm2015/covalent-core-message.mjs.map +1 -1
  161. package/fesm2015/covalent-core-search.mjs +147 -227
  162. package/fesm2015/covalent-core-search.mjs.map +1 -1
  163. package/fesm2015/covalent-core-side-sheet.mjs +202 -173
  164. package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
  165. package/fesm2015/covalent-core-user-profile.mjs +38 -114
  166. package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
  167. package/fesm2015/covalent-core.mjs.map +1 -1
  168. package/fesm2020/covalent-core-breadcrumbs.mjs +49 -71
  169. package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
  170. package/fesm2020/covalent-core-common.mjs +224 -165
  171. package/fesm2020/covalent-core-common.mjs.map +1 -1
  172. package/fesm2020/covalent-core-dialogs.mjs +160 -338
  173. package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
  174. package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
  175. package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
  176. package/fesm2020/covalent-core-file.mjs +229 -273
  177. package/fesm2020/covalent-core-file.mjs.map +1 -1
  178. package/fesm2020/covalent-core-json-formatter.mjs +97 -133
  179. package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
  180. package/fesm2020/covalent-core-layout.mjs +353 -767
  181. package/fesm2020/covalent-core-layout.mjs.map +1 -1
  182. package/fesm2020/covalent-core-menu.mjs +17 -29
  183. package/fesm2020/covalent-core-menu.mjs.map +1 -1
  184. package/fesm2020/covalent-core-message.mjs +110 -114
  185. package/fesm2020/covalent-core-message.mjs.map +1 -1
  186. package/fesm2020/covalent-core-search.mjs +233 -281
  187. package/fesm2020/covalent-core-search.mjs.map +1 -1
  188. package/fesm2020/covalent-core-side-sheet.mjs +267 -200
  189. package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
  190. package/fesm2020/covalent-core-user-profile.mjs +54 -109
  191. package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
  192. package/fesm2020/covalent-core.mjs.map +1 -1
  193. package/file/_file-theme.scss +2 -1
  194. package/file/covalent-core-file.d.ts +1 -1
  195. package/file/directives/file-drop.directive.d.ts +6 -7
  196. package/file/directives/file-select.directive.d.ts +2 -2
  197. package/file/file-input/file-input.component.d.ts +7 -7
  198. package/file/file-upload/file-upload.component.d.ts +16 -9
  199. package/file/{public-api.d.ts → public_api.d.ts} +0 -0
  200. package/file/{file-input → src/file-input}/README.md +46 -37
  201. package/file/{file-upload → src/file-upload}/README.md +36 -27
  202. package/json-formatter/README.md +8 -8
  203. package/json-formatter/collapse.animation.d.ts +24 -0
  204. package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
  205. package/json-formatter/json-formatter.component.d.ts +4 -4
  206. package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
  207. package/layout/README.md +48 -50
  208. package/layout/covalent-core-layout.d.ts +1 -1
  209. package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
  210. package/layout/layout-footer/layout-footer.component.d.ts +3 -3
  211. package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
  212. package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
  213. package/layout/layout-nav/layout-nav.component.d.ts +5 -5
  214. package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
  215. package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
  216. package/layout/layout-toggle.class.d.ts +1 -1
  217. package/layout/layout.component.d.ts +4 -4
  218. package/layout/layout.directives.d.ts +2 -2
  219. package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
  220. package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
  221. package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
  222. package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
  223. package/layout/src/layout-nav/README.md +50 -0
  224. package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
  225. package/menu/covalent-core-menu.d.ts +1 -1
  226. package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
  227. package/message/README.md +26 -18
  228. package/message/collapse.animation.d.ts +24 -0
  229. package/message/covalent-core-message.d.ts +1 -1
  230. package/message/message.component.d.ts +4 -4
  231. package/message/{public-api.d.ts → public_api.d.ts} +0 -0
  232. package/package.json +36 -55
  233. package/{index.d.ts → public_api.d.ts} +0 -0
  234. package/search/README.md +74 -73
  235. package/search/covalent-core-search.d.ts +1 -1
  236. package/search/{public-api.d.ts → public_api.d.ts} +0 -0
  237. package/search/search-box/search-box.component.d.ts +10 -6
  238. package/search/search-input/search-input.component.d.ts +10 -6
  239. package/search/src/search-box/README.md +73 -0
  240. package/search/src/search-input/README.md +74 -0
  241. package/side-sheet/README.md +3 -5
  242. package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
  243. package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
  244. package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
  245. package/side-sheet/side-sheet-container.d.ts +18 -7
  246. package/side-sheet/side-sheet.content-directives.d.ts +22 -16
  247. package/side-sheet/side-sheet.d.ts +2 -2
  248. package/side-sheet/side-sheet.module.d.ts +1 -1
  249. package/user-profile/README.md +5 -5
  250. package/user-profile/covalent-core-user-profile.d.ts +1 -1
  251. package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
  252. package/user-profile/user-profile.component.d.ts +2 -2
  253. package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
  254. package/breadcrumbs/breadcrumbs.component.scss +0 -8
  255. package/breadcrumbs/index.d.ts +0 -1
  256. package/common/index.d.ts +0 -1
  257. package/common/material-icons.css +0 -111
  258. package/common/material-icons.css.map +0 -1
  259. package/common/material-icons.scss +0 -3
  260. package/common/platform.css +0 -16819
  261. package/common/platform.css.map +0 -1
  262. package/common/platform.scss +0 -7
  263. package/common/styles/_elevation.scss +0 -280
  264. package/common/styles/_layout.scss +0 -605
  265. package/common/styles/_palette-dark.scss +0 -326
  266. package/common/styles/_palette-light.scss +0 -637
  267. package/common/styles/_rtl.scss +0 -31
  268. package/common/styles/_styles.scss +0 -10
  269. package/common/styles/_theme-functions.scss +0 -25
  270. package/common/styles/_typography-functions.scss +0 -35
  271. package/common/styles/_variables.scss +0 -98
  272. package/common/styles/colors/_colors-dark.scss +0 -1399
  273. package/common/styles/colors/_colors-light.scss +0 -3235
  274. package/common/styles/colors/_colors.scss +0 -7
  275. package/common/styles/core/_button.scss +0 -60
  276. package/common/styles/core/_card.scss +0 -184
  277. package/common/styles/core/_content.scss +0 -43
  278. package/common/styles/core/_core.scss +0 -23
  279. package/common/styles/core/_divider.scss +0 -16
  280. package/common/styles/core/_icons.scss +0 -22
  281. package/common/styles/core/_list.scss +0 -8
  282. package/common/styles/core/_sidenav.scss +0 -22
  283. package/common/styles/core/_structure.scss +0 -127
  284. package/common/styles/core/_toolbar.scss +0 -53
  285. package/common/styles/core/_whiteframe.scss +0 -130
  286. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  287. package/common/styles/font/_font.scss +0 -99
  288. package/common/styles/utilities/_general.scss +0 -65
  289. package/common/styles/utilities/_pad.scss +0 -36
  290. package/common/styles/utilities/_pull.scss +0 -36
  291. package/common/styles/utilities/_push.scss +0 -36
  292. package/common/styles/utilities/_size.scss +0 -24
  293. package/common/styles/utilities/_text.scss +0 -105
  294. package/common/styles/utilities/_utilities.scss +0 -15
  295. package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
  296. package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
  297. package/dialogs/dialog.component.scss +0 -49
  298. package/dialogs/index.d.ts +0 -1
  299. package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
  300. package/dialogs/window-dialog/window-dialog.component.scss +0 -31
  301. package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
  302. package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
  303. package/dynamic-menu/dynamic-menu.component.scss +0 -0
  304. package/dynamic-menu/index.d.ts +0 -1
  305. package/esm2020/breadcrumbs/index.mjs +0 -2
  306. package/esm2020/breadcrumbs/public-api.mjs +0 -4
  307. package/esm2020/common/index.mjs +0 -2
  308. package/esm2020/common/public-api.mjs +0 -39
  309. package/esm2020/dialogs/index.mjs +0 -2
  310. package/esm2020/dialogs/public-api.mjs +0 -9
  311. package/esm2020/dynamic-menu/index.mjs +0 -2
  312. package/esm2020/file/index.mjs +0 -2
  313. package/esm2020/file/public-api.mjs +0 -7
  314. package/esm2020/index.mjs +0 -2
  315. package/esm2020/json-formatter/index.mjs +0 -2
  316. package/esm2020/json-formatter/public-api.mjs +0 -3
  317. package/esm2020/layout/index.mjs +0 -2
  318. package/esm2020/layout/public-api.mjs +0 -13
  319. package/esm2020/menu/index.mjs +0 -2
  320. package/esm2020/menu/public-api.mjs +0 -3
  321. package/esm2020/message/index.mjs +0 -2
  322. package/esm2020/message/public-api.mjs +0 -3
  323. package/esm2020/search/index.mjs +0 -2
  324. package/esm2020/search/public-api.mjs +0 -4
  325. package/esm2020/side-sheet/index.mjs +0 -2
  326. package/esm2020/side-sheet/public-api.mjs +0 -6
  327. package/esm2020/user-profile/index.mjs +0 -2
  328. package/file/file-input/file-input.component.scss +0 -22
  329. package/file/file-upload/file-upload.component.scss +0 -34
  330. package/file/index.d.ts +0 -1
  331. package/json-formatter/index.d.ts +0 -1
  332. package/json-formatter/json-formatter.component.scss +0 -74
  333. package/layout/index.d.ts +0 -1
  334. package/layout/layout-card-over/layout-card-over.component.scss +0 -45
  335. package/layout/layout-footer/layout-footer.component.scss +0 -4
  336. package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
  337. package/layout/layout-nav/README.md +0 -46
  338. package/layout/layout-nav/layout-nav.component.scss +0 -54
  339. package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
  340. package/layout/layout.component.scss +0 -16
  341. package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
  342. package/menu/index.d.ts +0 -1
  343. package/menu/menu.component.scss +0 -51
  344. package/message/index.d.ts +0 -1
  345. package/message/message.component.scss +0 -32
  346. package/schematics/README.md +0 -66
  347. package/schematics/ng-add/files/theme.scss +0 -64
  348. package/search/index.d.ts +0 -1
  349. package/search/search-box/README.md +0 -62
  350. package/search/search-box/search-box.component.scss +0 -37
  351. package/search/search-input/README.md +0 -65
  352. package/search/search-input/search-input.component.scss +0 -75
  353. package/side-sheet/index.d.ts +0 -1
  354. package/side-sheet/side-sheet.scss +0 -68
  355. package/theming/prebuilt/blue-grey-deep-orange.css +0 -2815
  356. package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
  357. package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
  358. package/theming/prebuilt/blue-orange.css +0 -2815
  359. package/theming/prebuilt/blue-orange.css.map +0 -1
  360. package/theming/prebuilt/blue-orange.scss +0 -20
  361. package/theming/prebuilt/indigo-pink.css +0 -2815
  362. package/theming/prebuilt/indigo-pink.css.map +0 -1
  363. package/theming/prebuilt/indigo-pink.scss +0 -20
  364. package/theming/prebuilt/orange-light-blue.css +0 -2815
  365. package/theming/prebuilt/orange-light-blue.css.map +0 -1
  366. package/theming/prebuilt/orange-light-blue.scss +0 -20
  367. package/theming/prebuilt/teal-orange.css +0 -2815
  368. package/theming/prebuilt/teal-orange.css.map +0 -1
  369. package/theming/prebuilt/teal-orange.scss +0 -20
  370. package/user-profile/index.d.ts +0 -1
  371. package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,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,54 +103,13 @@ 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
114
  constructor(_dialogRef) {
237
115
  this._dialogRef = _dialogRef;
@@ -258,63 +136,15 @@ class TdPromptDialogComponent {
258
136
  this._dialogRef.close(this.value);
259
137
  }
260
138
  }
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
- }] }); })();
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: [{
142
+ type: Component,
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: [{
145
+ type: ViewChild,
146
+ args: ['input', { static: true }]
147
+ }] } });
318
148
 
319
149
  class TdDialogService {
320
150
  constructor(_document, _dialogService, _dragDrop, rendererFactory) {
@@ -322,7 +152,7 @@ class TdDialogService {
322
152
  this._dialogService = _dialogService;
323
153
  this._dragDrop = _dragDrop;
324
154
  this.rendererFactory = rendererFactory;
325
- this._renderer2 = rendererFactory.createRenderer(undefined, undefined);
155
+ this._renderer2 = rendererFactory.createRenderer(undefined, null);
326
156
  }
327
157
  /**
328
158
  * params:
@@ -433,14 +263,17 @@ class TdDialogService {
433
263
  const CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
434
264
  const CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
435
265
  matDialogRef.afterOpened().subscribe(() => {
436
- const dialogElement = this._document.getElementById(matDialogRef.id);
266
+ const dialogElement = (this._document.getElementById(matDialogRef.id));
437
267
  const draggableElement = this._dragDrop.createDrag(dialogElement);
438
268
  if (draggableClass) {
439
269
  const childComponent = dialogElement.firstElementChild;
440
270
  this._renderer2.addClass(childComponent, draggableClass);
441
271
  }
442
272
  if (dragHandleSelectors && dragHandleSelectors.length) {
443
- 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
+ ], []);
444
277
  if (dragHandles.length > 0) {
445
278
  draggableElement.withHandles(dragHandles);
446
279
  }
@@ -464,16 +297,15 @@ class TdDialogService {
464
297
  return dialogConfig;
465
298
  }
466
299
  }
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); })();
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: [{
303
+ type: Injectable
304
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
305
+ type: Inject,
306
+ args: [DOCUMENT]
307
+ }] }, { type: i1.MatDialog }, { type: i2.DragDrop }, { type: i0.RendererFactory2 }]; } });
475
308
 
476
- const _c0 = ["*"];
477
309
  class TdWindowDialogComponent {
478
310
  constructor() {
479
311
  this.docked = false;
@@ -485,56 +317,26 @@ class TdWindowDialogComponent {
485
317
  this.dockToggled.emit(this.docked);
486
318
  }
487
319
  }
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
- }] }); })();
320
+ TdWindowDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
321
+ 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 });
322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, decorators: [{
323
+ type: Component,
324
+ 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"] }]
325
+ }], propDecorators: { toolbarColor: [{
326
+ type: Input
327
+ }], docked: [{
328
+ type: Input
329
+ }], title: [{
330
+ type: Input
331
+ }], toggleDockedStateLabel: [{
332
+ type: Input
333
+ }], closeLabel: [{
334
+ type: Input
335
+ }], dockToggled: [{
336
+ type: Output
337
+ }], closed: [{
338
+ type: Output
339
+ }] } });
538
340
 
539
341
  const TD_DIALOGS = [
540
342
  TdAlertDialogComponent,
@@ -545,52 +347,24 @@ const TD_DIALOGS = [
545
347
  TdDialogActionsDirective,
546
348
  TdDialogContentDirective,
547
349
  TdWindowDialogComponent,
548
- ];
549
- const TD_DIALOGS_ENTRY_COMPONENTS = [
550
350
  TdAlertDialogComponent,
551
351
  TdConfirmDialogComponent,
552
352
  TdPromptDialogComponent,
553
353
  ];
554
354
  class CovalentDialogsModule {
555
355
  }
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,
356
+ CovalentDialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
357
+ CovalentDialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, declarations: [TdAlertDialogComponent,
587
358
  TdConfirmDialogComponent,
588
359
  TdPromptDialogComponent,
589
360
  TdDialogComponent,
590
361
  TdDialogTitleDirective,
591
362
  TdDialogActionsDirective,
592
363
  TdDialogContentDirective,
593
- TdWindowDialogComponent], imports: [FormsModule,
364
+ TdWindowDialogComponent,
365
+ TdAlertDialogComponent,
366
+ TdConfirmDialogComponent,
367
+ TdPromptDialogComponent], imports: [FormsModule,
594
368
  CommonModule,
595
369
  MatDialogModule,
596
370
  MatInputModule,
@@ -604,7 +378,38 @@ class CovalentDialogsModule {
604
378
  TdDialogTitleDirective,
605
379
  TdDialogActionsDirective,
606
380
  TdDialogContentDirective,
607
- TdWindowDialogComponent] }); })();
381
+ TdWindowDialogComponent,
382
+ TdAlertDialogComponent,
383
+ TdConfirmDialogComponent,
384
+ TdPromptDialogComponent] });
385
+ CovalentDialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, providers: [TdDialogService], imports: [[
386
+ FormsModule,
387
+ CommonModule,
388
+ MatDialogModule,
389
+ MatInputModule,
390
+ MatButtonModule,
391
+ MatToolbarModule,
392
+ MatTooltipModule,
393
+ MatIconModule,
394
+ ]] });
395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, decorators: [{
396
+ type: NgModule,
397
+ args: [{
398
+ imports: [
399
+ FormsModule,
400
+ CommonModule,
401
+ MatDialogModule,
402
+ MatInputModule,
403
+ MatButtonModule,
404
+ MatToolbarModule,
405
+ MatTooltipModule,
406
+ MatIconModule,
407
+ ],
408
+ declarations: [...TD_DIALOGS],
409
+ exports: [...TD_DIALOGS],
410
+ providers: [TdDialogService],
411
+ }]
412
+ }] });
608
413
 
609
414
  var corners;
610
415
  (function (corners) {
@@ -663,19 +468,28 @@ class ResizableDraggableDialog {
663
468
  return (this._document.getElementById(this._dialogRef.id) || {}).parentElement;
664
469
  }
665
470
  _getViewportDimensions() {
666
- return this._getDialogWrapper().parentElement.getBoundingClientRect();
471
+ return this._getDialogWrapper()?.parentElement?.getBoundingClientRect();
667
472
  }
668
473
  _getDialogWrapperDimensions() {
669
- const dimensions = getComputedStyle(this._getDialogWrapper());
474
+ const wrapper = this._getDialogWrapper();
475
+ if (!wrapper) {
476
+ return { width: 0, height: 0 };
477
+ }
478
+ const dimensions = getComputedStyle(wrapper);
670
479
  return {
671
480
  width: getPixels(dimensions.width),
672
481
  height: getPixels(dimensions.height),
673
482
  };
674
483
  }
675
484
  _initialPositionReset() {
676
- const { right: viewportWidth, bottom: viewportHeight } = this._getViewportDimensions();
485
+ const viewportWidth = this._getViewportDimensions()?.right ?? 0;
486
+ const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
677
487
  const { width, height } = this._getDialogWrapperDimensions();
678
- const { marginRight: originalDialogRight, marginLeft: originalDialogLeft, marginBottom: originalDialogBottom, marginTop: originalDialogTop, } = this._getDialogWrapper().style;
488
+ const wrapperStyle = this._getDialogWrapper()?.style;
489
+ const originalDialogRight = wrapperStyle?.marginRight;
490
+ const originalDialogLeft = wrapperStyle?.marginLeft;
491
+ const originalDialogBottom = wrapperStyle?.marginBottom;
492
+ const originalDialogTop = wrapperStyle?.marginTop;
679
493
  let x;
680
494
  if (originalDialogLeft) {
681
495
  x = getPixels(originalDialogLeft);
@@ -697,7 +511,12 @@ class ResizableDraggableDialog {
697
511
  y = (viewportHeight - height) / 2;
698
512
  }
699
513
  // use drag ref's mechanisms for positioning instead of the dialog's
700
- this._dialogRef.updatePosition({ top: '0px', right: '0px', bottom: '0px', left: '0px' });
514
+ this._dialogRef.updatePosition({
515
+ top: '0px',
516
+ right: '0px',
517
+ bottom: '0px',
518
+ left: '0px',
519
+ });
701
520
  this._dragRef.setFreeDragPosition({ x, y });
702
521
  }
703
522
  _attachCorners() {
@@ -732,7 +551,7 @@ class ResizableDraggableDialog {
732
551
  topBottom = verticalAlignment.bottom;
733
552
  rightLeft = horizontalAlignment.left;
734
553
  }
735
- else if (corner === corners.topLeft) {
554
+ else {
736
555
  cursor = cursors.nwse;
737
556
  topBottom = verticalAlignment.top;
738
557
  rightLeft = horizontalAlignment.left;
@@ -752,8 +571,11 @@ class ResizableDraggableDialog {
752
571
  const originalMouseX = event.pageX;
753
572
  const originalMouseY = event.pageY;
754
573
  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();
574
+ const wrapper = this._getDialogWrapper()?.getBoundingClientRect();
575
+ const distanceFromBottom = wrapper?.bottom ?? 0;
576
+ const distanceFromRight = wrapper?.right ?? 0;
577
+ const viewportWidth = this._getViewportDimensions()?.right ?? 0;
578
+ const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
757
579
  const mouseMoveSub = fromEvent(window, 'pointermove').subscribe((e) => {
758
580
  e.preventDefault(); // prevent highlighting of text when dragging
759
581
  const yDelta = clamp(0, e.pageY, viewportHeight) - originalMouseY;
@@ -784,7 +606,7 @@ class ResizableDraggableDialog {
784
606
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
785
607
  }
786
608
  // top left
787
- else if (corner === corners.topLeft) {
609
+ else {
788
610
  newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
789
611
  newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
790
612
  newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);