@ng-nest/ui 12.0.8 → 12.1.1

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 (454) hide show
  1. package/alert/alert.component.d.ts +2 -1
  2. package/auto-complete/auto-complete-portal.component.d.ts +1 -3
  3. package/auto-complete/auto-complete.component.d.ts +1 -1
  4. package/back-top/back-top.component.d.ts +1 -2
  5. package/bundles/ng-nest-ui-alert.umd.js +6 -1
  6. package/bundles/ng-nest-ui-alert.umd.js.map +1 -1
  7. package/bundles/ng-nest-ui-anchor.umd.js +1 -1
  8. package/bundles/ng-nest-ui-anchor.umd.js.map +1 -1
  9. package/bundles/ng-nest-ui-auto-complete.umd.js +7 -6
  10. package/bundles/ng-nest-ui-auto-complete.umd.js.map +1 -1
  11. package/bundles/ng-nest-ui-back-top.umd.js +2 -2
  12. package/bundles/ng-nest-ui-back-top.umd.js.map +1 -1
  13. package/bundles/ng-nest-ui-badge.umd.js +2 -1
  14. package/bundles/ng-nest-ui-badge.umd.js.map +1 -1
  15. package/bundles/ng-nest-ui-button.umd.js +4 -3
  16. package/bundles/ng-nest-ui-button.umd.js.map +1 -1
  17. package/bundles/ng-nest-ui-calendar.umd.js +4 -3
  18. package/bundles/ng-nest-ui-calendar.umd.js.map +1 -1
  19. package/bundles/ng-nest-ui-carousel.umd.js +13 -12
  20. package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
  21. package/bundles/ng-nest-ui-cascade.umd.js +9 -9
  22. package/bundles/ng-nest-ui-cascade.umd.js.map +1 -1
  23. package/bundles/ng-nest-ui-checkbox.umd.js +3 -2
  24. package/bundles/ng-nest-ui-checkbox.umd.js.map +1 -1
  25. package/bundles/ng-nest-ui-color-picker.umd.js +9 -10
  26. package/bundles/ng-nest-ui-color-picker.umd.js.map +1 -1
  27. package/bundles/ng-nest-ui-color.umd.js +1 -1
  28. package/bundles/ng-nest-ui-color.umd.js.map +1 -1
  29. package/bundles/ng-nest-ui-comment.umd.js +3 -2
  30. package/bundles/ng-nest-ui-comment.umd.js.map +1 -1
  31. package/bundles/ng-nest-ui-container.umd.js.map +1 -1
  32. package/bundles/ng-nest-ui-core.umd.js +3 -3
  33. package/bundles/ng-nest-ui-core.umd.js.map +1 -1
  34. package/bundles/ng-nest-ui-crumb.umd.js +3 -2
  35. package/bundles/ng-nest-ui-crumb.umd.js.map +1 -1
  36. package/bundles/ng-nest-ui-date-picker.umd.js +34 -44
  37. package/bundles/ng-nest-ui-date-picker.umd.js.map +1 -1
  38. package/bundles/ng-nest-ui-description.umd.js +5 -6
  39. package/bundles/ng-nest-ui-description.umd.js.map +1 -1
  40. package/bundles/ng-nest-ui-dialog.umd.js +285 -32
  41. package/bundles/ng-nest-ui-dialog.umd.js.map +1 -1
  42. package/bundles/ng-nest-ui-drawer.umd.js +247 -15
  43. package/bundles/ng-nest-ui-drawer.umd.js.map +1 -1
  44. package/bundles/ng-nest-ui-dropdown.umd.js +4 -3
  45. package/bundles/ng-nest-ui-dropdown.umd.js.map +1 -1
  46. package/bundles/ng-nest-ui-find.umd.js +33 -8
  47. package/bundles/ng-nest-ui-find.umd.js.map +1 -1
  48. package/bundles/ng-nest-ui-form.umd.js +6 -10
  49. package/bundles/ng-nest-ui-form.umd.js.map +1 -1
  50. package/bundles/ng-nest-ui-highlight.umd.js +2 -1
  51. package/bundles/ng-nest-ui-highlight.umd.js.map +1 -1
  52. package/bundles/ng-nest-ui-i18n.umd.js +2 -1
  53. package/bundles/ng-nest-ui-i18n.umd.js.map +1 -1
  54. package/bundles/ng-nest-ui-icon.umd.js +3 -2
  55. package/bundles/ng-nest-ui-icon.umd.js.map +1 -1
  56. package/bundles/ng-nest-ui-inner.umd.js +1 -1
  57. package/bundles/ng-nest-ui-inner.umd.js.map +1 -1
  58. package/bundles/ng-nest-ui-input.umd.js +9 -7
  59. package/bundles/ng-nest-ui-input.umd.js.map +1 -1
  60. package/bundles/ng-nest-ui-list.umd.js +4 -3
  61. package/bundles/ng-nest-ui-list.umd.js.map +1 -1
  62. package/bundles/ng-nest-ui-loading.umd.js +2 -1
  63. package/bundles/ng-nest-ui-loading.umd.js.map +1 -1
  64. package/bundles/ng-nest-ui-menu.umd.js +6 -6
  65. package/bundles/ng-nest-ui-menu.umd.js.map +1 -1
  66. package/bundles/ng-nest-ui-message-box.umd.js +28 -26
  67. package/bundles/ng-nest-ui-message-box.umd.js.map +1 -1
  68. package/bundles/ng-nest-ui-message.umd.js +53 -17
  69. package/bundles/ng-nest-ui-message.umd.js.map +1 -1
  70. package/bundles/ng-nest-ui-notification.umd.js +1 -1
  71. package/bundles/ng-nest-ui-notification.umd.js.map +1 -1
  72. package/bundles/ng-nest-ui-pagination.umd.js +3 -2
  73. package/bundles/ng-nest-ui-pagination.umd.js.map +1 -1
  74. package/bundles/ng-nest-ui-popconfirm.umd.js +33 -4
  75. package/bundles/ng-nest-ui-popconfirm.umd.js.map +1 -1
  76. package/bundles/ng-nest-ui-popover.umd.js +15 -3
  77. package/bundles/ng-nest-ui-popover.umd.js.map +1 -1
  78. package/bundles/ng-nest-ui-portal.umd.js +8 -8
  79. package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
  80. package/bundles/ng-nest-ui-progress.umd.js +236 -20
  81. package/bundles/ng-nest-ui-progress.umd.js.map +1 -1
  82. package/bundles/ng-nest-ui-radio.umd.js +3 -2
  83. package/bundles/ng-nest-ui-radio.umd.js.map +1 -1
  84. package/bundles/ng-nest-ui-rate.umd.js +5 -5
  85. package/bundles/ng-nest-ui-rate.umd.js.map +1 -1
  86. package/bundles/ng-nest-ui-ripple.umd.js.map +1 -1
  87. package/bundles/ng-nest-ui-select.umd.js +7 -6
  88. package/bundles/ng-nest-ui-select.umd.js.map +1 -1
  89. package/bundles/ng-nest-ui-skeleton.umd.js +2 -1
  90. package/bundles/ng-nest-ui-skeleton.umd.js.map +1 -1
  91. package/bundles/ng-nest-ui-slider.umd.js +7 -8
  92. package/bundles/ng-nest-ui-slider.umd.js.map +1 -1
  93. package/bundles/ng-nest-ui-statistic.umd.js +6 -4
  94. package/bundles/ng-nest-ui-statistic.umd.js.map +1 -1
  95. package/bundles/ng-nest-ui-steps.umd.js +23 -10
  96. package/bundles/ng-nest-ui-steps.umd.js.map +1 -1
  97. package/bundles/ng-nest-ui-table.umd.js +13 -10
  98. package/bundles/ng-nest-ui-table.umd.js.map +1 -1
  99. package/bundles/ng-nest-ui-tabs.umd.js +5 -4
  100. package/bundles/ng-nest-ui-tabs.umd.js.map +1 -1
  101. package/bundles/ng-nest-ui-tag.umd.js +2 -1
  102. package/bundles/ng-nest-ui-tag.umd.js.map +1 -1
  103. package/bundles/ng-nest-ui-text-retract.umd.js +2 -1
  104. package/bundles/ng-nest-ui-text-retract.umd.js.map +1 -1
  105. package/bundles/ng-nest-ui-textarea.umd.js +3 -12
  106. package/bundles/ng-nest-ui-textarea.umd.js.map +1 -1
  107. package/bundles/ng-nest-ui-theme.umd.js +2 -2
  108. package/bundles/ng-nest-ui-theme.umd.js.map +1 -1
  109. package/bundles/ng-nest-ui-time-picker.umd.js +32 -15
  110. package/bundles/ng-nest-ui-time-picker.umd.js.map +1 -1
  111. package/bundles/ng-nest-ui-timeline.umd.js +3 -2
  112. package/bundles/ng-nest-ui-timeline.umd.js.map +1 -1
  113. package/bundles/ng-nest-ui-tooltip.umd.js +3 -2
  114. package/bundles/ng-nest-ui-tooltip.umd.js.map +1 -1
  115. package/bundles/ng-nest-ui-transfer.umd.js +3 -2
  116. package/bundles/ng-nest-ui-transfer.umd.js.map +1 -1
  117. package/bundles/ng-nest-ui-tree.umd.js +8 -7
  118. package/bundles/ng-nest-ui-tree.umd.js.map +1 -1
  119. package/bundles/ng-nest-ui-upload.umd.js +5 -4
  120. package/bundles/ng-nest-ui-upload.umd.js.map +1 -1
  121. package/button/buttons.component.d.ts +1 -1
  122. package/calendar/calendar.component.d.ts +2 -2
  123. package/carousel/carousel-panel.component.d.ts +2 -3
  124. package/carousel/carousel.component.d.ts +1 -1
  125. package/cascade/cascade-portal.component.d.ts +4 -7
  126. package/cascade/cascade.component.d.ts +1 -1
  127. package/checkbox/checkbox.component.d.ts +1 -1
  128. package/color/color.component.d.ts +2 -2
  129. package/color-picker/color-picker-portal.component.d.ts +1 -3
  130. package/color-picker/color-picker.component.d.ts +2 -3
  131. package/comment/comment.component.d.ts +1 -1
  132. package/core/config/config.d.ts +7 -0
  133. package/core/interfaces/layout.type.d.ts +1 -1
  134. package/core/services/reuse-strategy.service.d.ts +1 -1
  135. package/crumb/crumb.component.d.ts +1 -1
  136. package/date-picker/date-picker-portal.component.d.ts +1 -3
  137. package/date-picker/date-picker.component.d.ts +3 -4
  138. package/date-picker/date-picker.property.d.ts +1 -16
  139. package/date-picker/date-range-portal.component.d.ts +1 -3
  140. package/date-picker/date-range.component.d.ts +2 -3
  141. package/date-picker/picker-date.component.d.ts +1 -1
  142. package/date-picker/picker-month.component.d.ts +1 -1
  143. package/date-picker/picker-year.component.d.ts +1 -1
  144. package/description/description.component.d.ts +2 -4
  145. package/dialog/dialog-container.component.d.ts +18 -0
  146. package/dialog/dialog-container.directives.d.ts +24 -0
  147. package/dialog/dialog-ref.d.ts +9 -0
  148. package/dialog/dialog.module.d.ts +13 -11
  149. package/dialog/dialog.property.d.ts +84 -6
  150. package/dialog/dialog.service.d.ts +19 -0
  151. package/dialog/public-api.d.ts +4 -0
  152. package/drawer/drawer-container.component.d.ts +18 -0
  153. package/drawer/drawer-container.directives.d.ts +19 -0
  154. package/drawer/drawer-ref.d.ts +9 -0
  155. package/drawer/drawer.module.d.ts +8 -6
  156. package/drawer/drawer.property.d.ts +83 -2
  157. package/drawer/drawer.service.d.ts +19 -0
  158. package/drawer/public-api.d.ts +5 -0
  159. package/dropdown/dropdown-portal.component.d.ts +1 -3
  160. package/dropdown/dropdown.component.d.ts +2 -2
  161. package/esm2015/alert/alert.component.js +8 -3
  162. package/esm2015/anchor/anchor.component.js +2 -2
  163. package/esm2015/anchor/anchor.property.js +1 -1
  164. package/esm2015/auto-complete/auto-complete-portal.component.js +4 -4
  165. package/esm2015/auto-complete/auto-complete.component.js +5 -4
  166. package/esm2015/auto-complete/auto-complete.property.js +1 -1
  167. package/esm2015/back-top/back-top.component.js +3 -3
  168. package/esm2015/badge/badge.component.js +3 -2
  169. package/esm2015/button/button.component.js +5 -4
  170. package/esm2015/button/buttons.component.js +1 -1
  171. package/esm2015/calendar/calendar.component.js +5 -4
  172. package/esm2015/carousel/carousel-panel.component.js +12 -11
  173. package/esm2015/carousel/carousel.component.js +4 -3
  174. package/esm2015/cascade/cascade-portal.component.js +6 -7
  175. package/esm2015/cascade/cascade.component.js +5 -4
  176. package/esm2015/checkbox/checkbox.component.js +4 -3
  177. package/esm2015/checkbox/checkbox.property.js +1 -1
  178. package/esm2015/color/color.component.js +2 -2
  179. package/esm2015/color-picker/color-picker-portal.component.js +3 -3
  180. package/esm2015/color-picker/color-picker.component.js +8 -9
  181. package/esm2015/comment/comment.component.js +4 -3
  182. package/esm2015/container/container.component.js +2 -2
  183. package/esm2015/core/animation/fade.js +1 -1
  184. package/esm2015/core/config/config.js +1 -1
  185. package/esm2015/core/interfaces/layout.type.js +1 -1
  186. package/esm2015/core/services/http.service.js +2 -2
  187. package/esm2015/core/services/preloading-strategy.service.js +2 -2
  188. package/esm2015/core/services/reuse-strategy.service.js +2 -2
  189. package/esm2015/crumb/crumb.component.js +4 -3
  190. package/esm2015/date-picker/date-picker-portal.component.js +4 -4
  191. package/esm2015/date-picker/date-picker.component.js +9 -13
  192. package/esm2015/date-picker/date-picker.property.js +8 -17
  193. package/esm2015/date-picker/date-range-portal.component.js +2 -2
  194. package/esm2015/date-picker/date-range.component.js +7 -7
  195. package/esm2015/date-picker/picker-date.component.js +4 -3
  196. package/esm2015/date-picker/picker-month.component.js +4 -3
  197. package/esm2015/date-picker/picker-year.component.js +4 -3
  198. package/esm2015/description/description.component.js +6 -7
  199. package/esm2015/dialog/dialog-container.component.js +59 -0
  200. package/esm2015/dialog/dialog-container.directives.js +73 -0
  201. package/esm2015/dialog/dialog-ref.js +17 -0
  202. package/esm2015/dialog/dialog.component.js +4 -3
  203. package/esm2015/dialog/dialog.module.js +37 -7
  204. package/esm2015/dialog/dialog.property.js +17 -16
  205. package/esm2015/dialog/dialog.service.js +67 -0
  206. package/esm2015/dialog/public-api.js +5 -1
  207. package/esm2015/drawer/drawer-container.component.js +59 -0
  208. package/esm2015/drawer/drawer-container.directives.js +57 -0
  209. package/esm2015/drawer/drawer-ref.js +17 -0
  210. package/esm2015/drawer/drawer.component.js +4 -3
  211. package/esm2015/drawer/drawer.module.js +22 -6
  212. package/esm2015/drawer/drawer.property.js +22 -6
  213. package/esm2015/drawer/drawer.service.js +65 -0
  214. package/esm2015/drawer/public-api.js +6 -1
  215. package/esm2015/dropdown/dropdown-portal.component.js +2 -2
  216. package/esm2015/dropdown/dropdown.component.js +4 -3
  217. package/esm2015/find/find.component.js +18 -8
  218. package/esm2015/find/find.property.js +18 -2
  219. package/esm2015/form/control.component.js +1 -1
  220. package/esm2015/form/form.component.js +6 -5
  221. package/esm2015/form/form.property.js +3 -8
  222. package/esm2015/highlight/highlight.component.js +3 -2
  223. package/esm2015/highlight/highlight.property.js +1 -1
  224. package/esm2015/i18n/i18n.directive.js +3 -2
  225. package/esm2015/icon/icon.component.js +4 -3
  226. package/esm2015/inner/inner.component.js +2 -2
  227. package/esm2015/input/input-group.component.js +2 -4
  228. package/esm2015/input/input.component.js +9 -5
  229. package/esm2015/input/input.property.js +1 -1
  230. package/esm2015/list/list.component.js +5 -4
  231. package/esm2015/list/list.property.js +1 -1
  232. package/esm2015/loading/loading.component.js +3 -2
  233. package/esm2015/menu/menu-node.component.js +1 -1
  234. package/esm2015/menu/menu.component.js +7 -7
  235. package/esm2015/message/message-ref.js +12 -0
  236. package/esm2015/message/message.component.js +4 -4
  237. package/esm2015/message/message.property.js +2 -2
  238. package/esm2015/message/message.service.js +37 -15
  239. package/esm2015/message/public-api.js +2 -1
  240. package/esm2015/message-box/message-box.component.js +17 -21
  241. package/esm2015/message-box/message-box.service.js +7 -5
  242. package/esm2015/notification/notification.component.js +2 -2
  243. package/esm2015/notification/notification.property.js +1 -1
  244. package/esm2015/pagination/pagination.component.js +4 -3
  245. package/esm2015/popconfirm/popconfirm.component.js +25 -4
  246. package/esm2015/popconfirm/popconfirm.property.js +10 -3
  247. package/esm2015/popover/popover.directive.js +10 -3
  248. package/esm2015/popover/popover.property.js +7 -2
  249. package/esm2015/portal/portal.module.js +4 -3
  250. package/esm2015/portal/portal.service.js +8 -9
  251. package/esm2015/progress/progress.component.js +178 -15
  252. package/esm2015/progress/progress.property.js +50 -3
  253. package/esm2015/radio/radio.component.js +4 -3
  254. package/esm2015/radio/radio.property.js +1 -1
  255. package/esm2015/rate/rate.component.js +6 -6
  256. package/esm2015/ripple/ripple.directive.js +1 -1
  257. package/esm2015/ripple/ripple.property.js +1 -1
  258. package/esm2015/select/select-portal.component.js +3 -3
  259. package/esm2015/select/select.component.js +6 -5
  260. package/esm2015/skeleton/skeleton.component.js +3 -2
  261. package/esm2015/slider/slider.component.js +8 -9
  262. package/esm2015/statistic/countdown.component.js +5 -4
  263. package/esm2015/statistic/statistic.component.js +3 -2
  264. package/esm2015/steps/steps.component.js +18 -10
  265. package/esm2015/steps/steps.property.js +8 -3
  266. package/esm2015/table/drag.directive.js +2 -2
  267. package/esm2015/table/table-body.component.js +4 -3
  268. package/esm2015/table/table-foot.component.js +1 -1
  269. package/esm2015/table/table-head.component.js +5 -4
  270. package/esm2015/table/table.component.js +6 -5
  271. package/esm2015/table/table.property.js +1 -1
  272. package/esm2015/tabs/tab.component.js +1 -1
  273. package/esm2015/tabs/tabs.component.js +6 -5
  274. package/esm2015/tag/tag.component.js +3 -2
  275. package/esm2015/text-retract/text-retract.component.js +3 -2
  276. package/esm2015/textarea/textarea.component.js +3 -2
  277. package/esm2015/textarea/textarea.property.js +2 -12
  278. package/esm2015/theme/theme.component.js +3 -3
  279. package/esm2015/theme/theme.property.js +1 -1
  280. package/esm2015/time-picker/time-picker-frame.component.js +9 -5
  281. package/esm2015/time-picker/time-picker-portal.component.js +2 -2
  282. package/esm2015/time-picker/time-picker.component.js +25 -12
  283. package/esm2015/timeline/timeline.component.js +4 -3
  284. package/esm2015/tooltip/tooltip.directive.js +4 -3
  285. package/esm2015/tooltip/tooltip.property.js +1 -1
  286. package/esm2015/transfer/transfer.component.js +4 -3
  287. package/esm2015/tree/tree-node.component.js +2 -2
  288. package/esm2015/tree/tree.component.js +8 -7
  289. package/esm2015/tree/tree.property.js +1 -1
  290. package/esm2015/upload/upload-portal.component.js +2 -2
  291. package/esm2015/upload/upload.component.js +5 -4
  292. package/fesm2015/ng-nest-ui-alert.js +7 -2
  293. package/fesm2015/ng-nest-ui-alert.js.map +1 -1
  294. package/fesm2015/ng-nest-ui-anchor.js +1 -1
  295. package/fesm2015/ng-nest-ui-anchor.js.map +1 -1
  296. package/fesm2015/ng-nest-ui-auto-complete.js +7 -6
  297. package/fesm2015/ng-nest-ui-auto-complete.js.map +1 -1
  298. package/fesm2015/ng-nest-ui-back-top.js +2 -2
  299. package/fesm2015/ng-nest-ui-back-top.js.map +1 -1
  300. package/fesm2015/ng-nest-ui-badge.js +2 -1
  301. package/fesm2015/ng-nest-ui-badge.js.map +1 -1
  302. package/fesm2015/ng-nest-ui-button.js +4 -3
  303. package/fesm2015/ng-nest-ui-button.js.map +1 -1
  304. package/fesm2015/ng-nest-ui-calendar.js +4 -3
  305. package/fesm2015/ng-nest-ui-calendar.js.map +1 -1
  306. package/fesm2015/ng-nest-ui-carousel.js +12 -11
  307. package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
  308. package/fesm2015/ng-nest-ui-cascade.js +9 -9
  309. package/fesm2015/ng-nest-ui-cascade.js.map +1 -1
  310. package/fesm2015/ng-nest-ui-checkbox.js +3 -2
  311. package/fesm2015/ng-nest-ui-checkbox.js.map +1 -1
  312. package/fesm2015/ng-nest-ui-color-picker.js +9 -10
  313. package/fesm2015/ng-nest-ui-color-picker.js.map +1 -1
  314. package/fesm2015/ng-nest-ui-color.js +1 -1
  315. package/fesm2015/ng-nest-ui-color.js.map +1 -1
  316. package/fesm2015/ng-nest-ui-comment.js +3 -2
  317. package/fesm2015/ng-nest-ui-comment.js.map +1 -1
  318. package/fesm2015/ng-nest-ui-container.js +1 -1
  319. package/fesm2015/ng-nest-ui-container.js.map +1 -1
  320. package/fesm2015/ng-nest-ui-core.js +3 -3
  321. package/fesm2015/ng-nest-ui-core.js.map +1 -1
  322. package/fesm2015/ng-nest-ui-crumb.js +3 -2
  323. package/fesm2015/ng-nest-ui-crumb.js.map +1 -1
  324. package/fesm2015/ng-nest-ui-date-picker.js +34 -44
  325. package/fesm2015/ng-nest-ui-date-picker.js.map +1 -1
  326. package/fesm2015/ng-nest-ui-description.js +5 -6
  327. package/fesm2015/ng-nest-ui-description.js.map +1 -1
  328. package/fesm2015/ng-nest-ui-dialog.js +256 -26
  329. package/fesm2015/ng-nest-ui-dialog.js.map +1 -1
  330. package/fesm2015/ng-nest-ui-drawer.js +226 -14
  331. package/fesm2015/ng-nest-ui-drawer.js.map +1 -1
  332. package/fesm2015/ng-nest-ui-dropdown.js +4 -3
  333. package/fesm2015/ng-nest-ui-dropdown.js.map +1 -1
  334. package/fesm2015/ng-nest-ui-find.js +34 -8
  335. package/fesm2015/ng-nest-ui-find.js.map +1 -1
  336. package/fesm2015/ng-nest-ui-form.js +7 -11
  337. package/fesm2015/ng-nest-ui-form.js.map +1 -1
  338. package/fesm2015/ng-nest-ui-highlight.js +2 -1
  339. package/fesm2015/ng-nest-ui-highlight.js.map +1 -1
  340. package/fesm2015/ng-nest-ui-i18n.js +2 -1
  341. package/fesm2015/ng-nest-ui-i18n.js.map +1 -1
  342. package/fesm2015/ng-nest-ui-icon.js +3 -2
  343. package/fesm2015/ng-nest-ui-icon.js.map +1 -1
  344. package/fesm2015/ng-nest-ui-inner.js +1 -1
  345. package/fesm2015/ng-nest-ui-inner.js.map +1 -1
  346. package/fesm2015/ng-nest-ui-input.js +9 -7
  347. package/fesm2015/ng-nest-ui-input.js.map +1 -1
  348. package/fesm2015/ng-nest-ui-list.js +4 -3
  349. package/fesm2015/ng-nest-ui-list.js.map +1 -1
  350. package/fesm2015/ng-nest-ui-loading.js +2 -1
  351. package/fesm2015/ng-nest-ui-loading.js.map +1 -1
  352. package/fesm2015/ng-nest-ui-menu.js +6 -6
  353. package/fesm2015/ng-nest-ui-menu.js.map +1 -1
  354. package/fesm2015/ng-nest-ui-message-box.js +22 -24
  355. package/fesm2015/ng-nest-ui-message-box.js.map +1 -1
  356. package/fesm2015/ng-nest-ui-message.js +51 -18
  357. package/fesm2015/ng-nest-ui-message.js.map +1 -1
  358. package/fesm2015/ng-nest-ui-notification.js +1 -1
  359. package/fesm2015/ng-nest-ui-notification.js.map +1 -1
  360. package/fesm2015/ng-nest-ui-pagination.js +3 -2
  361. package/fesm2015/ng-nest-ui-pagination.js.map +1 -1
  362. package/fesm2015/ng-nest-ui-popconfirm.js +33 -5
  363. package/fesm2015/ng-nest-ui-popconfirm.js.map +1 -1
  364. package/fesm2015/ng-nest-ui-popover.js +15 -3
  365. package/fesm2015/ng-nest-ui-popover.js.map +1 -1
  366. package/fesm2015/ng-nest-ui-portal.js +10 -10
  367. package/fesm2015/ng-nest-ui-portal.js.map +1 -1
  368. package/fesm2015/ng-nest-ui-progress.js +226 -17
  369. package/fesm2015/ng-nest-ui-progress.js.map +1 -1
  370. package/fesm2015/ng-nest-ui-radio.js +3 -2
  371. package/fesm2015/ng-nest-ui-radio.js.map +1 -1
  372. package/fesm2015/ng-nest-ui-rate.js +5 -5
  373. package/fesm2015/ng-nest-ui-rate.js.map +1 -1
  374. package/fesm2015/ng-nest-ui-ripple.js.map +1 -1
  375. package/fesm2015/ng-nest-ui-select.js +7 -6
  376. package/fesm2015/ng-nest-ui-select.js.map +1 -1
  377. package/fesm2015/ng-nest-ui-skeleton.js +2 -1
  378. package/fesm2015/ng-nest-ui-skeleton.js.map +1 -1
  379. package/fesm2015/ng-nest-ui-slider.js +7 -8
  380. package/fesm2015/ng-nest-ui-slider.js.map +1 -1
  381. package/fesm2015/ng-nest-ui-statistic.js +6 -4
  382. package/fesm2015/ng-nest-ui-statistic.js.map +1 -1
  383. package/fesm2015/ng-nest-ui-steps.js +24 -11
  384. package/fesm2015/ng-nest-ui-steps.js.map +1 -1
  385. package/fesm2015/ng-nest-ui-table.js +13 -10
  386. package/fesm2015/ng-nest-ui-table.js.map +1 -1
  387. package/fesm2015/ng-nest-ui-tabs.js +5 -4
  388. package/fesm2015/ng-nest-ui-tabs.js.map +1 -1
  389. package/fesm2015/ng-nest-ui-tag.js +2 -1
  390. package/fesm2015/ng-nest-ui-tag.js.map +1 -1
  391. package/fesm2015/ng-nest-ui-text-retract.js +2 -1
  392. package/fesm2015/ng-nest-ui-text-retract.js.map +1 -1
  393. package/fesm2015/ng-nest-ui-textarea.js +3 -12
  394. package/fesm2015/ng-nest-ui-textarea.js.map +1 -1
  395. package/fesm2015/ng-nest-ui-theme.js +2 -2
  396. package/fesm2015/ng-nest-ui-theme.js.map +1 -1
  397. package/fesm2015/ng-nest-ui-time-picker.js +33 -16
  398. package/fesm2015/ng-nest-ui-time-picker.js.map +1 -1
  399. package/fesm2015/ng-nest-ui-timeline.js +3 -2
  400. package/fesm2015/ng-nest-ui-timeline.js.map +1 -1
  401. package/fesm2015/ng-nest-ui-tooltip.js +3 -2
  402. package/fesm2015/ng-nest-ui-tooltip.js.map +1 -1
  403. package/fesm2015/ng-nest-ui-transfer.js +3 -2
  404. package/fesm2015/ng-nest-ui-transfer.js.map +1 -1
  405. package/fesm2015/ng-nest-ui-tree.js +8 -7
  406. package/fesm2015/ng-nest-ui-tree.js.map +1 -1
  407. package/fesm2015/ng-nest-ui-upload.js +5 -4
  408. package/fesm2015/ng-nest-ui-upload.js.map +1 -1
  409. package/find/find.component.d.ts +1 -1
  410. package/find/find.property.d.ts +31 -1
  411. package/form/control.component.d.ts +1 -1
  412. package/form/form.component.d.ts +1 -1
  413. package/form/form.property.d.ts +6 -6
  414. package/inner/inner.component.d.ts +1 -1
  415. package/input/input-group.component.d.ts +2 -4
  416. package/list/list.component.d.ts +2 -2
  417. package/menu/menu.component.d.ts +1 -1
  418. package/message/message-ref.d.ts +8 -0
  419. package/message/message.component.d.ts +3 -3
  420. package/message/message.property.d.ts +24 -4
  421. package/message/message.service.d.ts +4 -1
  422. package/message/public-api.d.ts +1 -0
  423. package/message-box/message-box.component.d.ts +2 -1
  424. package/notification/notification.component.d.ts +1 -1
  425. package/package.json +1 -1
  426. package/pagination/pagination.component.d.ts +1 -1
  427. package/popconfirm/popconfirm.component.d.ts +6 -2
  428. package/popconfirm/popconfirm.property.d.ts +13 -2
  429. package/popover/popover.property.d.ts +6 -1
  430. package/portal/portal.module.d.ts +1 -1
  431. package/portal/portal.service.d.ts +2 -3
  432. package/progress/progress.component.d.ts +31 -3
  433. package/progress/progress.property.d.ts +80 -5
  434. package/radio/radio.component.d.ts +1 -1
  435. package/rate/rate.component.d.ts +5 -5
  436. package/select/select-portal.component.d.ts +1 -3
  437. package/select/select.component.d.ts +1 -1
  438. package/slider/slider.component.d.ts +1 -1
  439. package/steps/steps.component.d.ts +1 -1
  440. package/steps/steps.property.d.ts +7 -2
  441. package/table/table-body.component.d.ts +1 -1
  442. package/table/table-head.component.d.ts +1 -1
  443. package/table/table.component.d.ts +1 -1
  444. package/table/table.property.d.ts +11 -1
  445. package/textarea/textarea.property.d.ts +1 -6
  446. package/theme/theme.component.d.ts +1 -1
  447. package/time-picker/time-picker-frame.component.d.ts +1 -0
  448. package/time-picker/time-picker-portal.component.d.ts +1 -3
  449. package/time-picker/time-picker.component.d.ts +5 -3
  450. package/timeline/timeline.component.d.ts +1 -1
  451. package/transfer/transfer.component.d.ts +1 -1
  452. package/tree/tree-node.component.d.ts +1 -1
  453. package/tree/tree.component.d.ts +1 -1
  454. package/upload/upload.component.d.ts +3 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-nest/ui/core'), require('@ng-nest/ui/alert'), require('rxjs'), require('rxjs/operators'), require('@ng-nest/ui/portal'), require('@ng-nest/ui/i18n'), require('@ng-nest/ui/button'), require('@ng-nest/ui/outlet'), require('@angular/common'), require('@ng-nest/ui/icon'), require('@angular/forms'), require('@ng-nest/ui/input'), require('@angular/cdk/drag-drop')) :
3
- typeof define === 'function' && define.amd ? define('@ng-nest/ui/dialog', ['exports', '@angular/core', '@ng-nest/ui/core', '@ng-nest/ui/alert', 'rxjs', 'rxjs/operators', '@ng-nest/ui/portal', '@ng-nest/ui/i18n', '@ng-nest/ui/button', '@ng-nest/ui/outlet', '@angular/common', '@ng-nest/ui/icon', '@angular/forms', '@ng-nest/ui/input', '@angular/cdk/drag-drop'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-nest"] = global["ng-nest"] || {}, global["ng-nest"].ui = global["ng-nest"].ui || {}, global["ng-nest"].ui.dialog = {}), global.ng.core, global["ng-nest"].ui.core, global["ng-nest"].ui.alert, global.rxjs, global.rxjs.operators, global["ng-nest"].ui.portal, global["ng-nest"].ui.i18n, global["ng-nest"].ui.button, global["ng-nest"].ui.outlet, global.ng.common, global["ng-nest"].ui.icon, global.ng.forms, global["ng-nest"].ui.input, global.ng.cdk.dragDrop));
5
- })(this, (function (exports, i0, core, i3, rxjs, operators, i1, i2, i4, i5, i6, icon, forms, input, dragDrop) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-nest/ui/core'), require('@ng-nest/ui/alert'), require('rxjs'), require('rxjs/operators'), require('@ng-nest/ui/portal'), require('@ng-nest/ui/i18n'), require('@ng-nest/ui/button'), require('@ng-nest/ui/outlet'), require('@angular/common'), require('@angular/cdk/portal'), require('@ng-nest/ui/icon'), require('@angular/forms'), require('@ng-nest/ui/input'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay')) :
3
+ typeof define === 'function' && define.amd ? define('@ng-nest/ui/dialog', ['exports', '@angular/core', '@ng-nest/ui/core', '@ng-nest/ui/alert', 'rxjs', 'rxjs/operators', '@ng-nest/ui/portal', '@ng-nest/ui/i18n', '@ng-nest/ui/button', '@ng-nest/ui/outlet', '@angular/common', '@angular/cdk/portal', '@ng-nest/ui/icon', '@angular/forms', '@ng-nest/ui/input', '@angular/cdk/drag-drop', '@angular/cdk/overlay'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-nest"] = global["ng-nest"] || {}, global["ng-nest"].ui = global["ng-nest"].ui || {}, global["ng-nest"].ui.dialog = {}), global.ng.core, global["ng-nest"].ui.core, global["ng-nest"].ui.alert, global.rxjs, global.rxjs.operators, global["ng-nest"].ui.portal, global["ng-nest"].ui.i18n, global["ng-nest"].ui.button, global["ng-nest"].ui.outlet, global.ng.common, global.ng.cdk.portal, global["ng-nest"].ui.icon, global.ng.forms, global["ng-nest"].ui.input, global.ng.cdk.dragDrop, global.ng.cdk.overlay));
5
+ })(this, (function (exports, i0, i2, i3, rxjs, operators, i1, i2$1, i4, i5, i6, i1$1, icon, forms, input, dragDrop, i3$1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,12 +23,15 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
26
27
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
28
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
29
30
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
31
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
32
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
34
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
32
35
 
33
36
  /*! *****************************************************************************
34
37
  Copyright (c) Microsoft Corporation.
@@ -354,8 +357,9 @@
354
357
  * @decorator component
355
358
  */
356
359
  var XDialogPrefix = 'x-dialog';
357
- var X_CONFIG_NAME = 'dialog';
360
+ var X_DIALOG_CONFIG_NAME = 'dialog';
358
361
  var XDialogPortal = 'x-dialog-portal';
362
+ var X_DIALOG_DATA = new i0.InjectionToken('XDialogData');
359
363
  /**
360
364
  * Dialog Property
361
365
  */
@@ -401,48 +405,48 @@
401
405
  /** @nocollapse */ XDialogProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
402
406
  /** @nocollapse */ XDialogProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDialogProperty, selector: "ng-component", inputs: { visible: "visible", placement: "placement", offset: "offset", type: "type", width: "width", height: "height", effect: "effect", footer: "footer", showCancel: "showCancel", cancelText: "cancelText", showConfirm: "showConfirm", confirmText: "confirmText", backdropClose: "backdropClose", hasBackdrop: "hasBackdrop", className: "className", buttonsCenter: "buttonsCenter", draggable: "draggable", beforeClose: "beforeClose" }, outputs: { cancel: "cancel", confirm: "confirm", visibleChange: "visibleChange", showDone: "showDone", closeDone: "closeDone" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
403
407
  __decorate([
404
- core.XInputBoolean()
408
+ i2.XInputBoolean()
405
409
  ], XDialogProperty.prototype, "visible", void 0);
406
410
  __decorate([
407
- core.XWithConfig(X_CONFIG_NAME, 'center')
411
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, 'center')
408
412
  ], XDialogProperty.prototype, "placement", void 0);
409
413
  __decorate([
410
- core.XWithConfig(X_CONFIG_NAME, '1rem')
414
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, '1rem')
411
415
  ], XDialogProperty.prototype, "offset", void 0);
412
416
  __decorate([
413
- core.XWithConfig(X_CONFIG_NAME, '32rem')
417
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, '32rem')
414
418
  ], XDialogProperty.prototype, "width", void 0);
415
419
  __decorate([
416
- core.XWithConfig(X_CONFIG_NAME, 'white')
420
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, 'white')
417
421
  ], XDialogProperty.prototype, "effect", void 0);
418
422
  __decorate([
419
- core.XWithConfig(X_CONFIG_NAME, true)
423
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, true)
420
424
  ], XDialogProperty.prototype, "showCancel", void 0);
421
425
  __decorate([
422
- core.XWithConfig(X_CONFIG_NAME)
426
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME)
423
427
  ], XDialogProperty.prototype, "cancelText", void 0);
424
428
  __decorate([
425
- core.XWithConfig(X_CONFIG_NAME, true)
429
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, true)
426
430
  ], XDialogProperty.prototype, "showConfirm", void 0);
427
431
  __decorate([
428
- core.XWithConfig(X_CONFIG_NAME)
432
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME)
429
433
  ], XDialogProperty.prototype, "confirmText", void 0);
430
434
  __decorate([
431
- core.XWithConfig(X_CONFIG_NAME, true)
435
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, true)
432
436
  ], XDialogProperty.prototype, "backdropClose", void 0);
433
437
  __decorate([
434
- core.XWithConfig(X_CONFIG_NAME, true)
438
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, true)
435
439
  ], XDialogProperty.prototype, "hasBackdrop", void 0);
436
440
  __decorate([
437
- core.XWithConfig(X_CONFIG_NAME, '')
441
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, '')
438
442
  ], XDialogProperty.prototype, "className", void 0);
439
443
  __decorate([
440
- core.XWithConfig(X_CONFIG_NAME),
441
- core.XInputBoolean()
444
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME),
445
+ i2.XInputBoolean()
442
446
  ], XDialogProperty.prototype, "buttonsCenter", void 0);
443
447
  __decorate([
444
- core.XWithConfig(X_CONFIG_NAME, false),
445
- core.XInputBoolean()
448
+ i2.XWithConfig(X_DIALOG_CONFIG_NAME, false),
449
+ i2.XInputBoolean()
446
450
  ], XDialogProperty.prototype, "draggable", void 0);
447
451
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogProperty, decorators: [{
448
452
  type: i0.Component,
@@ -534,7 +538,8 @@
534
538
  });
535
539
  };
536
540
  XDialogComponent.prototype.ngOnChanges = function (changes) {
537
- core.XIsChange(changes.visible) && this.setVisible();
541
+ var visible = changes.visible;
542
+ i2.XIsChange(visible) && this.setVisible();
538
543
  };
539
544
  XDialogComponent.prototype.ngOnDestroy = function () {
540
545
  this.unsubscribe();
@@ -587,7 +592,7 @@
587
592
  return (_b = (_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.hasAttached();
588
593
  };
589
594
  XDialogComponent.prototype.onClose = function () {
590
- if (core.XIsFunction(this.beforeClose)) {
595
+ if (i2.XIsFunction(this.beforeClose)) {
591
596
  this.beforeClose();
592
597
  }
593
598
  else {
@@ -615,7 +620,7 @@
615
620
  return XDialogComponent;
616
621
  }(XDialogProperty));
617
622
  /** @nocollapse */ XDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace.XPortalService }, { token: i2__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
618
- /** @nocollapse */ XDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDialogComponent, selector: "x-dialog", viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template #dialogTpl>\r\n <div class=\"x-dialog\" [@x-move-box-animation]=\"placement\" (@x-move-box-animation.done)=\"moveDone($event)\">\r\n <x-alert\r\n [draggable]=\"draggable\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n (close)=\"onClose()\"\r\n [title]=\"title\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type\"\r\n [effect]=\"effect\"\r\n [hideClose]=\"hideClose\"\r\n [closeText]=\"closeText\"\r\n showIcon=\"false\"\r\n duration=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter\">\r\n <ng-container *xOutlet=\"footer\">\r\n <x-buttons space=\"1\" *ngIf=\"showCancel || showConfirm\">\r\n <x-button *ngIf=\"showCancel\" (click)=\"onCancel()\">{{ getCancelText }}</x-button>\r\n <x-button *ngIf=\"showConfirm\" type=\"primary\" (click)=\"onConfirm()\">{{ getConfirmText }}</x-button>\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-dialog{margin:0;padding:0;width:100%;height:100%}.x-dialog x-alert{height:100%}.x-dialog x-alert .x-alert{min-height:100%;height:-moz-fit-content;height:fit-content;align-items:inherit;padding:0}.x-dialog x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog x-alert .x-alert-title{padding:.5rem 1rem 0}.x-dialog x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex:1}.x-dialog-portal x-dialog{width:100%}\n"], components: [{ type: i3__namespace.XAlertComponent, selector: "x-alert" }, { type: i4__namespace.XButtonsComponent, selector: "x-buttons" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i5__namespace.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [core.XMoveBoxAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
623
+ /** @nocollapse */ XDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDialogComponent, selector: "x-dialog", viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template #dialogTpl>\r\n <div class=\"x-dialog\" [@x-move-box-animation]=\"placement\" (@x-move-box-animation.done)=\"moveDone($event)\">\r\n <x-alert\r\n [draggable]=\"draggable\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n (close)=\"onClose()\"\r\n [title]=\"title\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type\"\r\n [effect]=\"effect\"\r\n [hideClose]=\"hideClose\"\r\n [closeText]=\"closeText\"\r\n showIcon=\"false\"\r\n duration=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter\">\r\n <ng-container *xOutlet=\"footer\">\r\n <x-buttons space=\"1\" *ngIf=\"showCancel || showConfirm\">\r\n <x-button *ngIf=\"showCancel\" (click)=\"onCancel()\">{{ getCancelText }}</x-button>\r\n <x-button *ngIf=\"showConfirm\" type=\"primary\" (click)=\"onConfirm()\">{{ getConfirmText }}</x-button>\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-dialog{margin:0;padding:0;width:100%;height:100%}.x-dialog x-alert{height:100%}.x-dialog x-alert .x-alert{min-height:100%;height:-moz-fit-content;height:fit-content;align-items:inherit;padding:0}.x-dialog x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog x-alert .x-alert-title{padding:1rem 1rem 0}.x-dialog x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex:1}.x-dialog-portal x-dialog{width:100%}\n"], components: [{ type: i3__namespace.XAlertComponent, selector: "x-alert" }, { type: i4__namespace.XButtonsComponent, selector: "x-buttons" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i5__namespace.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [i2.XMoveBoxAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
619
624
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogComponent, decorators: [{
620
625
  type: i0.Component,
621
626
  args: [{
@@ -624,20 +629,238 @@
624
629
  styleUrls: ['./dialog.component.scss'],
625
630
  encapsulation: i0.ViewEncapsulation.None,
626
631
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
627
- animations: [core.XMoveBoxAnimation]
632
+ animations: [i2.XMoveBoxAnimation]
628
633
  }]
629
634
  }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace.XPortalService }, { type: i2__namespace.XI18nService }]; }, propDecorators: { dialogTpl: [{
630
635
  type: i0.ViewChild,
631
636
  args: ['dialogTpl', { static: false }]
632
637
  }] } });
633
638
 
639
+ var XDialogContainerComponent = /** @class */ (function (_super) {
640
+ __extends(XDialogContainerComponent, _super);
641
+ function XDialogContainerComponent() {
642
+ var _this = _super.call(this) || this;
643
+ _this._has = true;
644
+ _this.animationChanged = new i0.EventEmitter();
645
+ return _this;
646
+ }
647
+ XDialogContainerComponent.prototype.done = function (_a) {
648
+ var toState = _a.toState, totalTime = _a.totalTime;
649
+ this.animationChanged.next({ action: 'done', state: toState, totalTime: totalTime });
650
+ };
651
+ XDialogContainerComponent.prototype.start = function (_a) {
652
+ var toState = _a.toState, totalTime = _a.totalTime;
653
+ this.animationChanged.next({ action: 'start', state: toState, totalTime: totalTime });
654
+ };
655
+ XDialogContainerComponent.prototype.attachComponentPortal = function (portal) {
656
+ if (this.portalOutlet.hasAttached()) {
657
+ throw Error('dialog portal has attached');
658
+ }
659
+ return this.portalOutlet.attachComponentPortal(portal);
660
+ };
661
+ XDialogContainerComponent.prototype.attachTemplatePortal = function (portal) {
662
+ if (this.portalOutlet.hasAttached()) {
663
+ throw Error('dialog portal has attached');
664
+ }
665
+ return this.portalOutlet.attachTemplatePortal(portal);
666
+ };
667
+ return XDialogContainerComponent;
668
+ }(i1$1.BasePortalOutlet));
669
+ /** @nocollapse */ XDialogContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
670
+ /** @nocollapse */ XDialogContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDialogContainerComponent, selector: "x-dialog-container", host: { listeners: { "@x-move-box-animation.done": "done($event)", "@x-move-box-animation.start": "start($event)" }, properties: { "class.x-dialog-container": "this._has", "@x-move-box-animation": "this.placement" } }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: i1$1.CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template cdkPortalOutlet></ng-template>\r\n", styles: [".x-dialog-container{margin:0;width:100%;height:100%;overflow:auto;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);border:.0625rem solid transparent;border-radius:var(--x-border-radius)}.x-dialog-container-title{display:block;margin:0 0 .5rem;font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.x-dialog-container-content{display:block;margin:0 -1rem;padding:0 1rem;max-height:70vh;overflow:auto;color:var(--x-text-300);font-size:calc(var(--x-font-size) - .0625rem);line-height:1.325rem}.x-dialog-container-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin-bottom:-1rem;min-height:4rem}.x-dialog-container-actions[align=center]{justify-content:center}.x-dialog-container-actions[align=start]{justify-content:flex-start}.x-dialog-container-actions x-button:not(:first-child){margin-left:1rem}\n"], directives: [{ type: i1__namespace$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [i2.XMoveBoxAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
671
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogContainerComponent, decorators: [{
672
+ type: i0.Component,
673
+ args: [{
674
+ selector: 'x-dialog-container',
675
+ templateUrl: './dialog-container.component.html',
676
+ styleUrls: ['./dialog-container.component.scss'],
677
+ encapsulation: i0.ViewEncapsulation.None,
678
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
679
+ animations: [i2.XMoveBoxAnimation]
680
+ }]
681
+ }], ctorParameters: function () { return []; }, propDecorators: { _has: [{
682
+ type: i0.HostBinding,
683
+ args: ['class.x-dialog-container']
684
+ }], placement: [{
685
+ type: i0.HostBinding,
686
+ args: ['@x-move-box-animation']
687
+ }], done: [{
688
+ type: i0.HostListener,
689
+ args: ['@x-move-box-animation.done', ['$event']]
690
+ }], start: [{
691
+ type: i0.HostListener,
692
+ args: ['@x-move-box-animation.start', ['$event']]
693
+ }], portalOutlet: [{
694
+ type: i0.ViewChild,
695
+ args: [i1$1.CdkPortalOutlet, { static: true }]
696
+ }] } });
697
+
698
+ // TODO: add more function
699
+ var XDialogRef = /** @class */ (function () {
700
+ function XDialogRef(overlayRef, containerInstance) {
701
+ this.overlayRef = overlayRef;
702
+ this.containerInstance = containerInstance;
703
+ }
704
+ XDialogRef.prototype.close = function () {
705
+ var _this = this;
706
+ this.containerInstance.animationChanged
707
+ .pipe(operators.filter(function (event) { return event.state === 'void' && event.action === 'done'; }), operators.take(1))
708
+ .subscribe(function () {
709
+ _this.overlayRef.detach();
710
+ });
711
+ this.containerInstance.placement = 'void';
712
+ };
713
+ return XDialogRef;
714
+ }());
715
+
716
+ var XDialogCloseDirective = /** @class */ (function () {
717
+ function XDialogCloseDirective(dialogRef) {
718
+ this.dialogRef = dialogRef;
719
+ }
720
+ XDialogCloseDirective.prototype.onCloseClick = function () {
721
+ this.dialogRef && this.dialogRef.close();
722
+ };
723
+ return XDialogCloseDirective;
724
+ }());
725
+ /** @nocollapse */ XDialogCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogCloseDirective, deps: [{ token: XDialogRef, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
726
+ /** @nocollapse */ XDialogCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: XDialogCloseDirective, selector: "[x-dialog-close]", host: { listeners: { "click": "onCloseClick($event)" } }, ngImport: i0__namespace });
727
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogCloseDirective, decorators: [{
728
+ type: i0.Directive,
729
+ args: [{
730
+ selector: "[x-dialog-close]"
731
+ }]
732
+ }], ctorParameters: function () {
733
+ return [{ type: XDialogRef, decorators: [{
734
+ type: i0.Optional
735
+ }] }];
736
+ }, propDecorators: { onCloseClick: [{
737
+ type: i0.HostListener,
738
+ args: ['click', ['$event']]
739
+ }] } });
740
+ var XDialogTitleDirective = /** @class */ (function () {
741
+ function XDialogTitleDirective() {
742
+ this._has = true;
743
+ }
744
+ return XDialogTitleDirective;
745
+ }());
746
+ /** @nocollapse */ XDialogTitleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogTitleDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
747
+ /** @nocollapse */ XDialogTitleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: XDialogTitleDirective, selector: "[x-dialog-title]", host: { properties: { "class.x-dialog-container-title": "this._has" } }, ngImport: i0__namespace });
748
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogTitleDirective, decorators: [{
749
+ type: i0.Directive,
750
+ args: [{
751
+ selector: "[x-dialog-title]"
752
+ }]
753
+ }], propDecorators: { _has: [{
754
+ type: i0.HostBinding,
755
+ args: ['class.x-dialog-container-title']
756
+ }] } });
757
+ var XDialogContentDirective = /** @class */ (function () {
758
+ function XDialogContentDirective() {
759
+ this._has = true;
760
+ }
761
+ return XDialogContentDirective;
762
+ }());
763
+ /** @nocollapse */ XDialogContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogContentDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
764
+ /** @nocollapse */ XDialogContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: XDialogContentDirective, selector: "[x-dialog-content], x-dialog-content", host: { properties: { "class.x-dialog-container-content": "this._has" } }, ngImport: i0__namespace });
765
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogContentDirective, decorators: [{
766
+ type: i0.Directive,
767
+ args: [{
768
+ selector: "[x-dialog-content], x-dialog-content"
769
+ }]
770
+ }], propDecorators: { _has: [{
771
+ type: i0.HostBinding,
772
+ args: ['class.x-dialog-container-content']
773
+ }] } });
774
+ var XDialogActionsDirective = /** @class */ (function () {
775
+ function XDialogActionsDirective() {
776
+ this._has = true;
777
+ }
778
+ return XDialogActionsDirective;
779
+ }());
780
+ /** @nocollapse */ XDialogActionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogActionsDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
781
+ /** @nocollapse */ XDialogActionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: XDialogActionsDirective, selector: "[x-dialog-actions], x-dialog-actions", host: { properties: { "class.x-dialog-container-actions": "this._has" } }, ngImport: i0__namespace });
782
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogActionsDirective, decorators: [{
783
+ type: i0.Directive,
784
+ args: [{
785
+ selector: "[x-dialog-actions], x-dialog-actions"
786
+ }]
787
+ }], propDecorators: { _has: [{
788
+ type: i0.HostBinding,
789
+ args: ['class.x-dialog-container-actions']
790
+ }] } });
791
+
792
+ var XDialogService = /** @class */ (function () {
793
+ function XDialogService(portalService, configService, overlay) {
794
+ this.portalService = portalService;
795
+ this.configService = configService;
796
+ this.overlay = overlay;
797
+ this.default = {
798
+ placement: 'center',
799
+ offset: '1rem',
800
+ width: '32rem',
801
+ backdropClose: true,
802
+ hasBackdrop: true,
803
+ draggable: false
804
+ };
805
+ this.configDefault = this.configService.getConfigForComponent(X_DIALOG_CONFIG_NAME);
806
+ Object.assign(this.default, this.configDefault);
807
+ }
808
+ XDialogService.prototype.create = function (content, option) {
809
+ if (option === void 0) { option = {}; }
810
+ i2.fillDefault(option, this.default);
811
+ var portal = this.portalService.attach({
812
+ content: XDialogContainerComponent,
813
+ viewContainerRef: option.viewContainerRef,
814
+ overlayConfig: {
815
+ hasBackdrop: option.hasBackdrop,
816
+ panelClass: option.className,
817
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
818
+ positionStrategy: this.portalService.setPlace(option.placement, option.width, option.height, option.offset)
819
+ }
820
+ });
821
+ var _a = portal || {}, overlayRef = _a.overlayRef, componentRef = _a.componentRef;
822
+ var instance = (componentRef || {}).instance;
823
+ instance.placement = option.placement;
824
+ var dialogRef = new XDialogRef(overlayRef, instance);
825
+ if (content instanceof i0.TemplateRef) {
826
+ instance.attachTemplatePortal(new i1$1.TemplatePortal(content, option.viewContainerRef, { $implicit: option.data, dialogRef: dialogRef }));
827
+ }
828
+ else {
829
+ var injector = this.portalService.createInjector([
830
+ { provide: X_DIALOG_DATA, useValue: option.data },
831
+ { provide: XDialogRef, useValue: dialogRef }
832
+ ]);
833
+ var comRef = instance.attachComponentPortal(new i1$1.ComponentPortal(content, option.viewContainerRef, injector));
834
+ dialogRef.componentInstance = comRef.instance;
835
+ }
836
+ if (option.hasBackdrop && option.backdropClose && overlayRef) {
837
+ overlayRef.backdropClick().subscribe(function () {
838
+ dialogRef.close();
839
+ });
840
+ }
841
+ return dialogRef;
842
+ };
843
+ return XDialogService;
844
+ }());
845
+ /** @nocollapse */ XDialogService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogService, deps: [{ token: i1__namespace.XPortalService }, { token: i2__namespace$1.XConfigService }, { token: i3__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
846
+ /** @nocollapse */ XDialogService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogService });
847
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogService, decorators: [{
848
+ type: i0.Injectable
849
+ }], ctorParameters: function () { return [{ type: i1__namespace.XPortalService }, { type: i2__namespace$1.XConfigService }, { type: i3__namespace$1.Overlay }]; } });
850
+
634
851
  var XDialogModule = /** @class */ (function () {
635
852
  function XDialogModule() {
636
853
  }
637
854
  return XDialogModule;
638
855
  }());
639
856
  /** @nocollapse */ XDialogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
640
- /** @nocollapse */ XDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, declarations: [XDialogComponent, XDialogProperty], imports: [i6.CommonModule,
857
+ /** @nocollapse */ XDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, declarations: [XDialogComponent,
858
+ XDialogCloseDirective,
859
+ XDialogTitleDirective,
860
+ XDialogContentDirective,
861
+ XDialogActionsDirective,
862
+ XDialogContainerComponent,
863
+ XDialogProperty], imports: [i6.CommonModule,
641
864
  forms.FormsModule,
642
865
  forms.ReactiveFormsModule,
643
866
  dragDrop.DragDropModule,
@@ -646,8 +869,13 @@
646
869
  icon.XIconModule,
647
870
  i1.XPortalModule,
648
871
  i3.XAlertModule,
649
- i5.XOutletModule], exports: [XDialogComponent] });
650
- /** @nocollapse */ XDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, imports: [[
872
+ i5.XOutletModule], exports: [XDialogComponent,
873
+ XDialogCloseDirective,
874
+ XDialogTitleDirective,
875
+ XDialogContentDirective,
876
+ XDialogActionsDirective,
877
+ XDialogContainerComponent] });
878
+ /** @nocollapse */ XDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, providers: [XDialogService], imports: [[
651
879
  i6.CommonModule,
652
880
  forms.FormsModule,
653
881
  forms.ReactiveFormsModule,
@@ -662,8 +890,23 @@
662
890
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDialogModule, decorators: [{
663
891
  type: i0.NgModule,
664
892
  args: [{
665
- declarations: [XDialogComponent, XDialogProperty],
666
- exports: [XDialogComponent],
893
+ declarations: [
894
+ XDialogComponent,
895
+ XDialogCloseDirective,
896
+ XDialogTitleDirective,
897
+ XDialogContentDirective,
898
+ XDialogActionsDirective,
899
+ XDialogContainerComponent,
900
+ XDialogProperty
901
+ ],
902
+ exports: [
903
+ XDialogComponent,
904
+ XDialogCloseDirective,
905
+ XDialogTitleDirective,
906
+ XDialogContentDirective,
907
+ XDialogActionsDirective,
908
+ XDialogContainerComponent
909
+ ],
667
910
  imports: [
668
911
  i6.CommonModule,
669
912
  forms.FormsModule,
@@ -675,7 +918,8 @@
675
918
  i1.XPortalModule,
676
919
  i3.XAlertModule,
677
920
  i5.XOutletModule
678
- ]
921
+ ],
922
+ providers: [XDialogService]
679
923
  }]
680
924
  }] });
681
925
 
@@ -683,11 +927,20 @@
683
927
  * Generated bundle index. Do not edit.
684
928
  */
685
929
 
930
+ exports.XDialogActionsDirective = XDialogActionsDirective;
931
+ exports.XDialogCloseDirective = XDialogCloseDirective;
686
932
  exports.XDialogComponent = XDialogComponent;
933
+ exports.XDialogContainerComponent = XDialogContainerComponent;
934
+ exports.XDialogContentDirective = XDialogContentDirective;
687
935
  exports.XDialogModule = XDialogModule;
688
936
  exports.XDialogPortal = XDialogPortal;
689
937
  exports.XDialogPrefix = XDialogPrefix;
690
938
  exports.XDialogProperty = XDialogProperty;
939
+ exports.XDialogRef = XDialogRef;
940
+ exports.XDialogService = XDialogService;
941
+ exports.XDialogTitleDirective = XDialogTitleDirective;
942
+ exports.X_DIALOG_CONFIG_NAME = X_DIALOG_CONFIG_NAME;
943
+ exports.X_DIALOG_DATA = X_DIALOG_DATA;
691
944
 
692
945
  Object.defineProperty(exports, '__esModule', { value: true });
693
946