@ng-nest/ui 13.1.2 → 13.1.5

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 (217) hide show
  1. package/core/config/config.d.ts +9 -0
  2. package/date-picker/picker-date.component.d.ts +1 -1
  3. package/dialog/dialog-portal.component.d.ts +33 -5
  4. package/dialog/dialog-portal.directives.d.ts +17 -0
  5. package/dialog/dialog-ref.d.ts +11 -1
  6. package/dialog/dialog.component.d.ts +3 -5
  7. package/dialog/dialog.module.d.ts +1 -1
  8. package/dialog/dialog.property.d.ts +37 -4
  9. package/dialog/dialog.service.d.ts +1 -0
  10. package/empty/empty.component.d.ts +1 -1
  11. package/esm2020/core/config/config.mjs +1 -1
  12. package/esm2020/date-picker/picker-date.component.mjs +2 -2
  13. package/esm2020/dialog/dialog-portal.component.mjs +49 -12
  14. package/esm2020/dialog/dialog-portal.directives.mjs +47 -1
  15. package/esm2020/dialog/dialog-ref.mjs +83 -2
  16. package/esm2020/dialog/dialog.component.mjs +27 -28
  17. package/esm2020/dialog/dialog.module.mjs +10 -2
  18. package/esm2020/dialog/dialog.property.mjs +10 -3
  19. package/esm2020/dialog/dialog.service.mjs +56 -8
  20. package/esm2020/empty/empty.component.mjs +2 -2
  21. package/esm2020/i18n/i18n.property.mjs +1 -1
  22. package/esm2020/i18n/languages/ar_EG.mjs +7 -1
  23. package/esm2020/i18n/languages/bg_BG.mjs +7 -1
  24. package/esm2020/i18n/languages/ca_ES.mjs +7 -1
  25. package/esm2020/i18n/languages/cs_CZ.mjs +7 -1
  26. package/esm2020/i18n/languages/da_DK.mjs +7 -1
  27. package/esm2020/i18n/languages/de_DE.mjs +7 -1
  28. package/esm2020/i18n/languages/el_GR.mjs +7 -1
  29. package/esm2020/i18n/languages/en_GB.mjs +7 -1
  30. package/esm2020/i18n/languages/en_US.mjs +7 -1
  31. package/esm2020/i18n/languages/es_ES.mjs +7 -1
  32. package/esm2020/i18n/languages/et_EE.mjs +7 -1
  33. package/esm2020/i18n/languages/fa_IR.mjs +7 -1
  34. package/esm2020/i18n/languages/fi_FI.mjs +7 -1
  35. package/esm2020/i18n/languages/fr_BE.mjs +7 -1
  36. package/esm2020/i18n/languages/fr_FR.mjs +7 -1
  37. package/esm2020/i18n/languages/he_IL.mjs +7 -1
  38. package/esm2020/i18n/languages/hi_IN.mjs +7 -1
  39. package/esm2020/i18n/languages/hr_HR.mjs +7 -1
  40. package/esm2020/i18n/languages/hu_HU.mjs +7 -1
  41. package/esm2020/i18n/languages/hy_AM.mjs +7 -1
  42. package/esm2020/i18n/languages/id_ID.mjs +7 -1
  43. package/esm2020/i18n/languages/is_IS.mjs +7 -1
  44. package/esm2020/i18n/languages/it_IT.mjs +7 -1
  45. package/esm2020/i18n/languages/ja_JP.mjs +7 -1
  46. package/esm2020/i18n/languages/ka_GE.mjs +7 -1
  47. package/esm2020/i18n/languages/kn_IN.mjs +7 -1
  48. package/esm2020/i18n/languages/ko_KR.mjs +7 -1
  49. package/esm2020/i18n/languages/ku_IQ.mjs +7 -1
  50. package/esm2020/i18n/languages/lv_LV.mjs +7 -1
  51. package/esm2020/i18n/languages/mn_MN.mjs +7 -1
  52. package/esm2020/i18n/languages/ms_MY.mjs +7 -1
  53. package/esm2020/i18n/languages/nb_NO.mjs +7 -1
  54. package/esm2020/i18n/languages/ne_NP.mjs +7 -1
  55. package/esm2020/i18n/languages/nl_BE.mjs +7 -1
  56. package/esm2020/i18n/languages/nl_NL.mjs +7 -1
  57. package/esm2020/i18n/languages/pl_PL.mjs +7 -1
  58. package/esm2020/i18n/languages/pt_BR.mjs +7 -1
  59. package/esm2020/i18n/languages/pt_PT.mjs +7 -1
  60. package/esm2020/i18n/languages/ro_RO.mjs +7 -1
  61. package/esm2020/i18n/languages/ru_RU.mjs +7 -1
  62. package/esm2020/i18n/languages/sk_SK.mjs +7 -1
  63. package/esm2020/i18n/languages/sl_SI.mjs +7 -1
  64. package/esm2020/i18n/languages/sr_RS.mjs +7 -1
  65. package/esm2020/i18n/languages/sv_SE.mjs +7 -1
  66. package/esm2020/i18n/languages/ta_IN.mjs +7 -1
  67. package/esm2020/i18n/languages/th_TH.mjs +7 -1
  68. package/esm2020/i18n/languages/tr_TR.mjs +7 -1
  69. package/esm2020/i18n/languages/uk_UA.mjs +7 -1
  70. package/esm2020/i18n/languages/vi_VN.mjs +7 -1
  71. package/esm2020/i18n/languages/zh_CN.mjs +7 -1
  72. package/esm2020/i18n/languages/zh_TW.mjs +7 -1
  73. package/esm2020/list/list-option.component.mjs +21 -8
  74. package/esm2020/list/list.component.mjs +55 -13
  75. package/esm2020/list/list.module.mjs +5 -1
  76. package/esm2020/list/list.property.mjs +33 -5
  77. package/esm2020/page-header/page-header.component.mjs +2 -2
  78. package/esm2020/pagination/pagination.component.mjs +2 -2
  79. package/esm2020/rate/rate.component.mjs +21 -4
  80. package/esm2020/rate/rate.property.mjs +9 -3
  81. package/esm2020/resizable/resizable.directive.mjs +81 -37
  82. package/esm2020/resizable/resizable.property.mjs +1 -1
  83. package/esm2020/select/select-portal.component.mjs +26 -9
  84. package/esm2020/select/select.component.mjs +15 -3
  85. package/esm2020/select/select.module.mjs +5 -4
  86. package/esm2020/select/select.property.mjs +12 -2
  87. package/esm2020/text-retract/text-retract.component.mjs +2 -2
  88. package/esm2020/upload/upload.component.mjs +13 -9
  89. package/esm2020/upload/upload.property.mjs +30 -2
  90. package/fesm2015/ng-nest-ui-core.mjs.map +1 -1
  91. package/fesm2015/ng-nest-ui-date-picker.mjs +1 -1
  92. package/fesm2015/ng-nest-ui-date-picker.mjs.map +1 -1
  93. package/fesm2015/ng-nest-ui-dialog.mjs +285 -55
  94. package/fesm2015/ng-nest-ui-dialog.mjs.map +1 -1
  95. package/fesm2015/ng-nest-ui-empty.mjs +1 -1
  96. package/fesm2015/ng-nest-ui-empty.mjs.map +1 -1
  97. package/fesm2015/ng-nest-ui-i18n.mjs +306 -0
  98. package/fesm2015/ng-nest-ui-i18n.mjs.map +1 -1
  99. package/fesm2015/ng-nest-ui-list.mjs +107 -22
  100. package/fesm2015/ng-nest-ui-list.mjs.map +1 -1
  101. package/fesm2015/ng-nest-ui-page-header.mjs +1 -1
  102. package/fesm2015/ng-nest-ui-page-header.mjs.map +1 -1
  103. package/fesm2015/ng-nest-ui-pagination.mjs +1 -1
  104. package/fesm2015/ng-nest-ui-pagination.mjs.map +1 -1
  105. package/fesm2015/ng-nest-ui-rate.mjs +27 -4
  106. package/fesm2015/ng-nest-ui-rate.mjs.map +1 -1
  107. package/fesm2015/ng-nest-ui-resizable.mjs +80 -36
  108. package/fesm2015/ng-nest-ui-resizable.mjs.map +1 -1
  109. package/fesm2015/ng-nest-ui-select.mjs +56 -16
  110. package/fesm2015/ng-nest-ui-select.mjs.map +1 -1
  111. package/fesm2015/ng-nest-ui-text-retract.mjs +1 -1
  112. package/fesm2015/ng-nest-ui-text-retract.mjs.map +1 -1
  113. package/fesm2015/ng-nest-ui-upload.mjs +41 -9
  114. package/fesm2015/ng-nest-ui-upload.mjs.map +1 -1
  115. package/fesm2020/ng-nest-ui-core.mjs.map +1 -1
  116. package/fesm2020/ng-nest-ui-date-picker.mjs +1 -1
  117. package/fesm2020/ng-nest-ui-date-picker.mjs.map +1 -1
  118. package/fesm2020/ng-nest-ui-dialog.mjs +277 -54
  119. package/fesm2020/ng-nest-ui-dialog.mjs.map +1 -1
  120. package/fesm2020/ng-nest-ui-empty.mjs +1 -1
  121. package/fesm2020/ng-nest-ui-empty.mjs.map +1 -1
  122. package/fesm2020/ng-nest-ui-i18n.mjs +306 -0
  123. package/fesm2020/ng-nest-ui-i18n.mjs.map +1 -1
  124. package/fesm2020/ng-nest-ui-list.mjs +107 -22
  125. package/fesm2020/ng-nest-ui-list.mjs.map +1 -1
  126. package/fesm2020/ng-nest-ui-page-header.mjs +1 -1
  127. package/fesm2020/ng-nest-ui-page-header.mjs.map +1 -1
  128. package/fesm2020/ng-nest-ui-pagination.mjs +1 -1
  129. package/fesm2020/ng-nest-ui-pagination.mjs.map +1 -1
  130. package/fesm2020/ng-nest-ui-rate.mjs +27 -4
  131. package/fesm2020/ng-nest-ui-rate.mjs.map +1 -1
  132. package/fesm2020/ng-nest-ui-resizable.mjs +80 -36
  133. package/fesm2020/ng-nest-ui-resizable.mjs.map +1 -1
  134. package/fesm2020/ng-nest-ui-select.mjs +56 -16
  135. package/fesm2020/ng-nest-ui-select.mjs.map +1 -1
  136. package/fesm2020/ng-nest-ui-text-retract.mjs +1 -1
  137. package/fesm2020/ng-nest-ui-text-retract.mjs.map +1 -1
  138. package/fesm2020/ng-nest-ui-upload.mjs +41 -9
  139. package/fesm2020/ng-nest-ui-upload.mjs.map +1 -1
  140. package/i18n/i18n.property.d.ts +8 -0
  141. package/i18n/languages/ar_EG.d.ts +6 -0
  142. package/i18n/languages/bg_BG.d.ts +6 -0
  143. package/i18n/languages/ca_ES.d.ts +6 -0
  144. package/i18n/languages/cs_CZ.d.ts +6 -0
  145. package/i18n/languages/da_DK.d.ts +6 -0
  146. package/i18n/languages/de_DE.d.ts +6 -0
  147. package/i18n/languages/el_GR.d.ts +6 -0
  148. package/i18n/languages/en_GB.d.ts +6 -0
  149. package/i18n/languages/en_US.d.ts +6 -0
  150. package/i18n/languages/es_ES.d.ts +6 -0
  151. package/i18n/languages/et_EE.d.ts +6 -0
  152. package/i18n/languages/fa_IR.d.ts +6 -0
  153. package/i18n/languages/fi_FI.d.ts +6 -0
  154. package/i18n/languages/fr_BE.d.ts +6 -0
  155. package/i18n/languages/fr_FR.d.ts +6 -0
  156. package/i18n/languages/he_IL.d.ts +6 -0
  157. package/i18n/languages/hi_IN.d.ts +6 -0
  158. package/i18n/languages/hr_HR.d.ts +6 -0
  159. package/i18n/languages/hu_HU.d.ts +6 -0
  160. package/i18n/languages/hy_AM.d.ts +6 -0
  161. package/i18n/languages/id_ID.d.ts +6 -0
  162. package/i18n/languages/is_IS.d.ts +6 -0
  163. package/i18n/languages/it_IT.d.ts +6 -0
  164. package/i18n/languages/ja_JP.d.ts +6 -0
  165. package/i18n/languages/ka_GE.d.ts +6 -0
  166. package/i18n/languages/kn_IN.d.ts +6 -0
  167. package/i18n/languages/ko_KR.d.ts +6 -0
  168. package/i18n/languages/ku_IQ.d.ts +6 -0
  169. package/i18n/languages/lv_LV.d.ts +6 -0
  170. package/i18n/languages/mn_MN.d.ts +6 -0
  171. package/i18n/languages/ms_MY.d.ts +6 -0
  172. package/i18n/languages/nb_NO.d.ts +6 -0
  173. package/i18n/languages/ne_NP.d.ts +6 -0
  174. package/i18n/languages/nl_BE.d.ts +6 -0
  175. package/i18n/languages/nl_NL.d.ts +6 -0
  176. package/i18n/languages/pl_PL.d.ts +6 -0
  177. package/i18n/languages/pt_BR.d.ts +6 -0
  178. package/i18n/languages/pt_PT.d.ts +6 -0
  179. package/i18n/languages/ro_RO.d.ts +6 -0
  180. package/i18n/languages/ru_RU.d.ts +6 -0
  181. package/i18n/languages/sk_SK.d.ts +6 -0
  182. package/i18n/languages/sl_SI.d.ts +6 -0
  183. package/i18n/languages/sr_RS.d.ts +6 -0
  184. package/i18n/languages/sv_SE.d.ts +6 -0
  185. package/i18n/languages/ta_IN.d.ts +6 -0
  186. package/i18n/languages/th_TH.d.ts +6 -0
  187. package/i18n/languages/tr_TR.d.ts +6 -0
  188. package/i18n/languages/uk_UA.d.ts +6 -0
  189. package/i18n/languages/vi_VN.d.ts +6 -0
  190. package/i18n/languages/zh_CN.d.ts +6 -0
  191. package/i18n/languages/zh_TW.d.ts +6 -0
  192. package/list/examples/en_US/default/size/README.md +6 -0
  193. package/list/examples/zh_CN/default/size/README.md +6 -0
  194. package/list/list-option.component.d.ts +8 -2
  195. package/list/list.component.d.ts +7 -1
  196. package/list/list.module.d.ts +3 -2
  197. package/list/list.property.d.ts +29 -4
  198. package/package.json +1 -1
  199. package/page-header/page-header.component.d.ts +1 -1
  200. package/pagination/pagination.component.d.ts +1 -1
  201. package/rate/examples/en_US/default/color/README.md +6 -0
  202. package/rate/examples/zh_CN/default/color/README.md +6 -0
  203. package/rate/rate.component.d.ts +1 -0
  204. package/rate/rate.property.d.ts +13 -1
  205. package/resizable/resizable.directive.d.ts +5 -8
  206. package/resizable/resizable.property.d.ts +5 -0
  207. package/select/select-portal.component.d.ts +10 -1
  208. package/select/select.component.d.ts +1 -0
  209. package/select/select.module.d.ts +2 -1
  210. package/select/select.property.d.ts +11 -1
  211. package/style/core/index.css +3 -0
  212. package/style/core/index.css.map +1 -1
  213. package/style/directives/resizable/mixin.scss +5 -0
  214. package/tag/examples/zh_CN/default/bordered/README.md +1 -1
  215. package/text-retract/text-retract.component.d.ts +1 -1
  216. package/upload/upload.component.d.ts +4 -4
  217. package/upload/upload.property.d.ts +21 -1
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EventEmitter, Component, Input, Output, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, HostBinding, HostListener, Directive, Optional, TemplateRef, Injectable, NgModule } from '@angular/core';
3
- import * as i2$1 from '@ng-nest/ui/core';
2
+ import { InjectionToken, EventEmitter, Component, Input, Output, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, QueryList, HostBinding, HostListener, ContentChildren, Directive, Optional, TemplateRef, Injectable, NgModule } from '@angular/core';
3
+ import * as i2$2 from '@ng-nest/ui/core';
4
4
  import { XInputBoolean, XWithConfig, XIsChange, XIsFunction, XMoveBoxAnimation, fillDefault } from '@ng-nest/ui/core';
5
5
  import { __decorate } from 'tslib';
6
6
  import * as i4 from '@ng-nest/ui/alert';
@@ -17,13 +17,15 @@ import * as i6 from '@ng-nest/ui/outlet';
17
17
  import { XOutletModule } from '@ng-nest/ui/outlet';
18
18
  import * as i7 from '@angular/common';
19
19
  import { CommonModule } from '@angular/common';
20
- import * as i1$1 from '@angular/cdk/portal';
20
+ import * as i3$1 from '@angular/cdk/portal';
21
21
  import { BasePortalOutlet, CdkPortalOutlet, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
22
+ import * as i1$1 from '@angular/cdk/drag-drop';
23
+ import { CdkDragHandle, CdkDrag, DragDropModule } from '@angular/cdk/drag-drop';
24
+ import * as i2$1 from '@ng-nest/ui/resizable';
25
+ import { XResizableModule } from '@ng-nest/ui/resizable';
22
26
  import { XIconModule } from '@ng-nest/ui/icon';
23
27
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
24
28
  import { XInputModule } from '@ng-nest/ui/input';
25
- import { XResizableModule } from '@ng-nest/ui/resizable';
26
- import { DragDropModule } from '@angular/cdk/drag-drop';
27
29
 
28
30
  /**
29
31
  * Dialog
@@ -56,6 +58,11 @@ class XDialogProperty extends XAlertProperty {
56
58
  * @en_US Confirm button event
57
59
  */
58
60
  this.confirm = new EventEmitter();
61
+ /**
62
+ * @zh_CN 确认按钮的事件
63
+ * @en_US Confirm button event
64
+ */
65
+ this.close = new EventEmitter();
59
66
  /**
60
67
  * @zh_CN 显示/隐藏改变事件
61
68
  * @en_US Show/hide change events
@@ -74,7 +81,7 @@ class XDialogProperty extends XAlertProperty {
74
81
  }
75
82
  }
76
83
  /** @nocollapse */ /** @nocollapse */ XDialogProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
77
- /** @nocollapse */ /** @nocollapse */ XDialogProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogProperty, selector: "ng-component", inputs: { visible: "visible", placement: "placement", offset: "offset", type: "type", width: "width", height: "height", minWidth: "minWidth", minHeight: "minHeight", effect: "effect", footer: "footer", showCancel: "showCancel", cancelText: "cancelText", showConfirm: "showConfirm", confirmText: "confirmText", backdropClose: "backdropClose", hasBackdrop: "hasBackdrop", className: "className", buttonsCenter: "buttonsCenter", draggable: "draggable", resizable: "resizable", maximize: "maximize", beforeClose: "beforeClose" }, outputs: { cancel: "cancel", confirm: "confirm", visibleChange: "visibleChange", showDone: "showDone", closeDone: "closeDone" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
84
+ /** @nocollapse */ /** @nocollapse */ XDialogProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogProperty, selector: "ng-component", inputs: { visible: "visible", placement: "placement", offset: "offset", type: "type", width: "width", height: "height", minWidth: "minWidth", minHeight: "minHeight", effect: "effect", footer: "footer", showCancel: "showCancel", cancelText: "cancelText", showConfirm: "showConfirm", confirmText: "confirmText", backdropClose: "backdropClose", hasBackdrop: "hasBackdrop", className: "className", buttonsCenter: "buttonsCenter", draggable: "draggable", resizable: "resizable", maximize: "maximize", beforeClose: "beforeClose" }, outputs: { cancel: "cancel", confirm: "confirm", close: "close", visibleChange: "visibleChange", showDone: "showDone", closeDone: "closeDone" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
78
85
  __decorate([
79
86
  XInputBoolean()
80
87
  ], XDialogProperty.prototype, "visible", void 0);
@@ -91,7 +98,7 @@ __decorate([
91
98
  XWithConfig(X_DIALOG_CONFIG_NAME, '18rem')
92
99
  ], XDialogProperty.prototype, "minWidth", void 0);
93
100
  __decorate([
94
- XWithConfig(X_DIALOG_CONFIG_NAME, '9rem')
101
+ XWithConfig(X_DIALOG_CONFIG_NAME, '8rem')
95
102
  ], XDialogProperty.prototype, "minHeight", void 0);
96
103
  __decorate([
97
104
  XWithConfig(X_DIALOG_CONFIG_NAME, 'white')
@@ -184,6 +191,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
184
191
  type: Output
185
192
  }], confirm: [{
186
193
  type: Output
194
+ }], close: [{
195
+ type: Output
187
196
  }], visibleChange: [{
188
197
  type: Output
189
198
  }], showDone: [{
@@ -211,6 +220,7 @@ class XDialogComponent extends XDialogProperty {
211
220
  this.contentBox = {};
212
221
  this.distance = { x: 0, y: 0 };
213
222
  this.viewInit = false;
223
+ this.action = null;
214
224
  this._unSubject = new Subject();
215
225
  this.scrollStrategy = this.protalService.overlay.scrollStrategies.block();
216
226
  }
@@ -253,8 +263,7 @@ class XDialogComponent extends XDialogProperty {
253
263
  this.create();
254
264
  }
255
265
  else {
256
- this.detach();
257
- // this.visibleChange.emit(false);
266
+ this.onClose('close', false);
258
267
  }
259
268
  }
260
269
  create() {
@@ -294,7 +303,7 @@ class XDialogComponent extends XDialogProperty {
294
303
  });
295
304
  }
296
305
  if (this.hasBackdrop && this.backdropClose && this.dialogRef?.overlayRef) {
297
- this.backdropClick$ = this.dialogRef.overlayRef.backdropClick().subscribe(() => this.onClose());
306
+ this.backdropClick$ = this.dialogRef.overlayRef.backdropClick().subscribe(() => this.onClose('close'));
298
307
  }
299
308
  }
300
309
  setWidthHeight() {
@@ -307,24 +316,29 @@ class XDialogComponent extends XDialogProperty {
307
316
  this.maximize = false;
308
317
  }
309
318
  }
310
- detach() {
311
- if (this.portalAttached()) {
312
- this.visible = false;
313
- this.visibleChange.emit(this.visible);
314
- this.dialogRef?.overlayRef?.detach();
315
- this.unsubscribe();
316
- this.close.emit();
317
- }
318
- }
319
319
  portalAttached() {
320
320
  return this.dialogRef?.overlayRef?.hasAttached();
321
321
  }
322
- onClose() {
323
- if (XIsFunction(this.beforeClose)) {
324
- this.beforeClose();
322
+ onClose(action, execFunction = true) {
323
+ if (!this.portalAttached())
324
+ return;
325
+ if (XIsFunction(this.beforeClose) && execFunction) {
326
+ this.beforeClose(action);
327
+ this.action = action;
325
328
  }
326
329
  else {
327
- this.detach();
330
+ this.visible = false;
331
+ this.visibleChange.emit(this.visible);
332
+ this.dialogRef?.overlayRef?.detach();
333
+ this.unsubscribe();
334
+ if ([action, this.action].includes('confirm')) {
335
+ this.confirm.emit();
336
+ }
337
+ if ([action, this.action].includes('cancel')) {
338
+ this.cancel.emit();
339
+ }
340
+ this.action = null;
341
+ this.close.emit();
328
342
  }
329
343
  }
330
344
  onDragEnded($event) {
@@ -388,14 +402,6 @@ class XDialogComponent extends XDialogProperty {
388
402
  }
389
403
  }
390
404
  }
391
- onCancel() {
392
- this.onClose();
393
- this.cancel.emit();
394
- }
395
- onConfirm() {
396
- this.onClose();
397
- this.confirm.emit();
398
- }
399
405
  moveDone($event) {
400
406
  if ($event.toState === 'void') {
401
407
  this.closeDone.emit($event);
@@ -415,24 +421,35 @@ class XDialogComponent extends XDialogProperty {
415
421
  const contentHeight = Number(this.initContentHeight) + Number(event.clientHeight) - Number(this.initHeight);
416
422
  this.renderer.setStyle(this.dialogContent, 'max-height', 'initial');
417
423
  this.renderer.setStyle(this.dialogContent, 'flex', 'initial');
418
- this.renderer.setStyle(this.dialogContent, 'height', `${contentHeight}px`);
424
+ if (['top-start', 'top-end', 'bottom', 'top', 'bottom-start', 'bottom-end'].includes(event.direction)) {
425
+ this.renderer.setStyle(this.dialogContent, 'height', `${contentHeight}px`);
426
+ }
419
427
  }
420
428
  }
421
429
  /** @nocollapse */ /** @nocollapse */ XDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i1.XPortalService }, { token: i2.Overlay }, { token: i3.XI18nService }], target: i0.ɵɵFactoryTarget.Component });
422
- /** @nocollapse */ /** @nocollapse */ XDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogComponent, selector: "x-dialog", viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-template #dialogTpl>\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize\"\r\n [class.x-dialog-resizable]=\"resizable\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggable && dialogBox['draggable']\"\r\n [resizable]=\"resizable && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\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 [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose()\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\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\r\n<ng-template #operationTpl>\r\n <ng-container *ngIf=\"maximize || resizable\">\r\n <x-button size=\"small\" [icon]=\"isMaximize ? 'fto-minimize' : 'fto-maximize'\" [onlyIcon]=\"true\" (click)=\"onSize()\"></x-button>\r\n </ng-container>\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-direction:column;flex:1;max-height:70vh;overflow:auto}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important;flex:initial}.x-dialog-container x-dialog{width:100%}\n"], components: [{ type: i4.XAlertComponent, selector: "x-alert" }, { type: i5.XButtonsComponent, selector: "x-buttons" }, { type: i5.XButtonComponent, selector: "x-button" }], directives: [{ type: i6.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [XMoveBoxAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
430
+ /** @nocollapse */ /** @nocollapse */ XDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogComponent, selector: "x-dialog", viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-template #dialogTpl>\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize\"\r\n [class.x-dialog-resizable]=\"resizable\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggable && dialogBox['draggable']\"\r\n [resizable]=\"resizable && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\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 [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\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)=\"onClose('cancel')\">{{ getCancelText }}</x-button>\r\n <x-button *ngIf=\"showConfirm\" type=\"primary\" (click)=\"onClose('confirm')\">{{ getConfirmText }}</x-button>\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n <ng-container *ngIf=\"maximize || resizable\">\r\n <x-button size=\"small\" [icon]=\"isMaximize ? 'fto-minimize' : 'fto-maximize'\" [onlyIcon]=\"true\" (click)=\"onSize()\"></x-button>\r\n </ng-container>\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-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important;flex:initial}.x-dialog-container x-dialog{width:100%}\n"], components: [{ type: i4.XAlertComponent, selector: "x-alert" }, { type: i5.XButtonsComponent, selector: "x-buttons" }, { type: i5.XButtonComponent, selector: "x-button" }], directives: [{ type: i6.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [XMoveBoxAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
423
431
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogComponent, decorators: [{
424
432
  type: Component,
425
- args: [{ selector: `${XDialogPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<ng-template #dialogTpl>\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize\"\r\n [class.x-dialog-resizable]=\"resizable\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggable && dialogBox['draggable']\"\r\n [resizable]=\"resizable && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\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 [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose()\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\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\r\n<ng-template #operationTpl>\r\n <ng-container *ngIf=\"maximize || resizable\">\r\n <x-button size=\"small\" [icon]=\"isMaximize ? 'fto-minimize' : 'fto-maximize'\" [onlyIcon]=\"true\" (click)=\"onSize()\"></x-button>\r\n </ng-container>\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-direction:column;flex:1;max-height:70vh;overflow:auto}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important;flex:initial}.x-dialog-container x-dialog{width:100%}\n"] }]
433
+ args: [{ selector: `${XDialogPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<ng-template #dialogTpl>\r\n <div\r\n class=\"x-dialog\"\r\n [@x-move-box-animation]=\"placement\"\r\n (@x-move-box-animation.done)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize\"\r\n [class.x-dialog-resizable]=\"resizable\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggable && dialogBox['draggable']\"\r\n [resizable]=\"resizable && dialogBox['resizable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\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 [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizing)=\"onResizing($event)\"\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)=\"onClose('cancel')\">{{ getCancelText }}</x-button>\r\n <x-button *ngIf=\"showConfirm\" type=\"primary\" (click)=\"onClose('confirm')\">{{ getConfirmText }}</x-button>\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n <ng-container *ngIf=\"maximize || resizable\">\r\n <x-button size=\"small\" [icon]=\"isMaximize ? 'fto-minimize' : 'fto-maximize'\" [onlyIcon]=\"true\" (click)=\"onSize()\"></x-button>\r\n </ng-container>\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-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important;flex:initial}.x-dialog-container x-dialog{width:100%}\n"] }]
426
434
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i1.XPortalService }, { type: i2.Overlay }, { type: i3.XI18nService }]; }, propDecorators: { dialogTpl: [{
427
435
  type: ViewChild,
428
436
  args: ['dialogTpl', { static: false }]
429
437
  }] } });
430
438
 
431
439
  class XDialogPortalComponent extends BasePortalOutlet {
432
- constructor() {
440
+ constructor(renderer) {
433
441
  super();
434
- this._has = true;
442
+ this.renderer = renderer;
435
443
  this.animationChanged = new EventEmitter();
444
+ this.offsetLeft = 0;
445
+ this.offsetTop = 0;
446
+ this.minWidth = '0rem';
447
+ this.minHeight = '0rem';
448
+ this.initHeight = 0;
449
+ this.initContentHeight = 0;
450
+ this.defaultMaximize = false;
451
+ this.distance = { x: 0, y: 0 };
452
+ this.dialogBox = {};
436
453
  }
437
454
  done({ toState, totalTime }) {
438
455
  this.animationChanged.next({ action: 'done', state: toState, totalTime });
@@ -440,6 +457,17 @@ class XDialogPortalComponent extends BasePortalOutlet {
440
457
  start({ toState, totalTime }) {
441
458
  this.animationChanged.next({ action: 'start', state: toState, totalTime });
442
459
  }
460
+ ngOnInit() {
461
+ this.dialogBox['draggable'] = this.defaultMaximize ? this.dialogBox['draggable'] : this.option.draggable;
462
+ this.dialogBox['resizable'] = this.defaultMaximize ? this.dialogBox['resizable'] : this.option.resizable;
463
+ }
464
+ ngAfterViewInit() {
465
+ let list = new QueryList();
466
+ for (let item of this.dialogRef.dragHandleRefs) {
467
+ list.reset([...list.toArray(), new CdkDragHandle(item, this.dragRef)]);
468
+ }
469
+ this.dragRef._handles = list;
470
+ }
443
471
  attachComponentPortal(portal) {
444
472
  if (this.portalOutlet.hasAttached()) {
445
473
  throw Error('dialog portal has attached');
@@ -452,16 +480,24 @@ class XDialogPortalComponent extends BasePortalOutlet {
452
480
  }
453
481
  return this.portalOutlet.attachTemplatePortal(portal);
454
482
  }
483
+ resizing(event) {
484
+ const contentHeight = Number(this.initContentHeight) + Number(event.clientHeight) - Number(this.initHeight);
485
+ this.renderer.setStyle(this.dialogContent, 'max-height', 'initial');
486
+ this.renderer.setStyle(this.dialogContent, 'flex', 'initial');
487
+ if (['top-start', 'top-end', 'bottom', 'top', 'bottom-start', 'bottom-end'].includes(event.direction)) {
488
+ this.renderer.setStyle(this.dialogContent, 'height', `${contentHeight}px`);
489
+ }
490
+ }
491
+ onDragEnded(event) {
492
+ this.distance = { x: this.distance.x + event.distance.x, y: this.distance.y + event.distance.y };
493
+ }
455
494
  }
456
- /** @nocollapse */ /** @nocollapse */ XDialogPortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
457
- /** @nocollapse */ /** @nocollapse */ XDialogPortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogPortalComponent, selector: "x-dialog-portal", host: { listeners: { "@x-move-box-animation.done": "done($event)", "@x-move-box-animation.start": "start($event)" }, properties: { "class.x-dialog-portal": "this._has", "@x-move-box-animation": "this.placement" } }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\r\n", styles: [".x-dialog-portal{margin:0;padding: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-portal-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-portal-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-portal-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-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}\n"], directives: [{ type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [XMoveBoxAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
495
+ /** @nocollapse */ /** @nocollapse */ XDialogPortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogPortalComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
496
+ /** @nocollapse */ /** @nocollapse */ XDialogPortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: XDialogPortalComponent, selector: "x-dialog-portal", host: { listeners: { "@x-move-box-animation.done": "done($event)", "@x-move-box-animation.start": "start($event)" }, properties: { "@x-move-box-animation": "this.placement" } }, queries: [{ propertyName: "handles", predicate: CdkDragHandle, descendants: true }], viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }, { propertyName: "dragRef", first: true, predicate: CdkDrag, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n [xResizable]=\"option.resizable && dialogBox['resizable']!\"\r\n (resizing)=\"resizing($event)\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0;width:100%;height:100%;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-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-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-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"], directives: [{ type: i1$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i2$1.XResizableDirective, selector: "[xResizable]" }, { type: i3$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [XMoveBoxAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
458
497
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogPortalComponent, decorators: [{
459
498
  type: Component,
460
- args: [{ selector: 'x-dialog-portal', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<ng-template cdkPortalOutlet></ng-template>\r\n", styles: [".x-dialog-portal{margin:0;padding: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-portal-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-portal-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-portal-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-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}\n"] }]
461
- }], ctorParameters: function () { return []; }, propDecorators: { _has: [{
462
- type: HostBinding,
463
- args: ['class.x-dialog-portal']
464
- }], placement: [{
499
+ args: [{ selector: 'x-dialog-portal', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XMoveBoxAnimation], template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n [xResizable]=\"option.resizable && dialogBox['resizable']!\"\r\n (resizing)=\"resizing($event)\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [offsetLeft]=\"offsetLeft\"\r\n [offsetTop]=\"offsetTop\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0;width:100%;height:100%;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-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-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-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"] }]
500
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { placement: [{
465
501
  type: HostBinding,
466
502
  args: ['@x-move-box-animation']
467
503
  }], done: [{
@@ -473,13 +509,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
473
509
  }], portalOutlet: [{
474
510
  type: ViewChild,
475
511
  args: [CdkPortalOutlet, { static: true }]
512
+ }], dragRef: [{
513
+ type: ViewChild,
514
+ args: [CdkDrag, { static: true }]
515
+ }], handles: [{
516
+ type: ContentChildren,
517
+ args: [CdkDragHandle, { descendants: true }]
476
518
  }] } });
477
519
 
478
520
  // TODO: add more function
479
521
  class XDialogRef {
480
- constructor(overlayRef, containerInstance) {
522
+ constructor(overlayRef, containerInstance, renderer, portalService) {
481
523
  this.overlayRef = overlayRef;
482
524
  this.containerInstance = containerInstance;
525
+ this.renderer = renderer;
526
+ this.portalService = portalService;
527
+ this.fullscreen = false;
528
+ this.dragHandleRefs = [];
529
+ this._isFristFullscreen = true;
483
530
  }
484
531
  close() {
485
532
  this.containerInstance.animationChanged
@@ -489,6 +536,81 @@ class XDialogRef {
489
536
  });
490
537
  this.containerInstance.placement = 'void';
491
538
  }
539
+ onFullscreen() {
540
+ let { dialogBox, dialogRef, overlayElement, distance, hostElement, defaultMaximize } = this.containerInstance;
541
+ if (!dialogRef.fullscreen) {
542
+ dialogRef.overlayRef.updateSize({
543
+ width: '100%',
544
+ height: '100%',
545
+ minWidth: '100%',
546
+ minHeight: '100%'
547
+ });
548
+ dialogRef.fullscreen = true;
549
+ dialogBox['minWidth'] = '100%';
550
+ dialogBox['minHeight'] = '100%';
551
+ dialogBox['draggable'] = false;
552
+ dialogBox['resizable'] = false;
553
+ if (this.option.resizable) {
554
+ this.renderer.setStyle(overlayElement, 'margin', '0 0 0 0');
555
+ }
556
+ if (this.option.draggable) {
557
+ dialogBox['distance'] = { x: 0, y: 0 };
558
+ }
559
+ this.renderer.addClass(overlayElement, 'x-dialog-portal-fullscreen');
560
+ }
561
+ else {
562
+ dialogBox['minWidth'] = this.option.minWidth;
563
+ dialogBox['minHeight'] = this.option.minHeight;
564
+ if (this._isFristFullscreen && defaultMaximize) {
565
+ this.option.draggable = dialogBox['draggable'];
566
+ this.option.resizable = dialogBox['resizable'];
567
+ }
568
+ else {
569
+ dialogBox['draggable'] = this.option.draggable;
570
+ dialogBox['resizable'] = this.option.resizable;
571
+ }
572
+ dialogRef.overlayRef?.updateSize({
573
+ width: dialogBox['width'],
574
+ height: dialogBox['height'],
575
+ minWidth: dialogBox['minWidth'],
576
+ minHeight: dialogBox['minHeight']
577
+ });
578
+ dialogRef.fullscreen = false;
579
+ if (this.option.draggable) {
580
+ dialogBox['distance'] = { ...distance };
581
+ }
582
+ if (this.option.resizable) {
583
+ if (dialogBox['marginTop']) {
584
+ this.renderer.setStyle(overlayElement, 'margin-top', `${dialogBox['marginTop']}`);
585
+ }
586
+ if (dialogBox['marginLeft']) {
587
+ this.renderer.setStyle(overlayElement, 'margin-left', `${dialogBox['marginLeft']}`);
588
+ }
589
+ if (dialogBox['marginRight']) {
590
+ this.renderer.setStyle(overlayElement, 'margin-right', `${dialogBox['marginRight']}`);
591
+ }
592
+ if (dialogBox['marginBottom']) {
593
+ this.renderer.setStyle(overlayElement, 'margin-bottom', `${dialogBox['marginBottom']}`);
594
+ }
595
+ }
596
+ this.renderer.removeClass(overlayElement, 'x-dialog-portal-fullscreen');
597
+ if (this._isFristFullscreen && defaultMaximize) {
598
+ dialogRef.overlayRef?.updatePositionStrategy(this.portalService.setPlace(this.option.placement, this.option.offset));
599
+ this.renderer.addClass(hostElement, PortalResizablePrefix);
600
+ setTimeout(() => {
601
+ Object.assign(dialogBox, this.portalService.setResizable(overlayElement, this.option.placement));
602
+ this.containerInstance.offsetLeft = overlayElement.offsetLeft;
603
+ this.containerInstance.offsetTop = overlayElement.offsetTop;
604
+ const dialogDraggable = overlayElement?.querySelector('.x-dialog-portal');
605
+ this.containerInstance.initHeight = dialogDraggable.clientHeight;
606
+ this.containerInstance.dialogContent = overlayElement?.querySelector('.x-dialog-portal-content');
607
+ this.containerInstance.initContentHeight = this.containerInstance.dialogContent?.clientHeight;
608
+ this.containerInstance.dialogBox = dialogBox;
609
+ });
610
+ }
611
+ }
612
+ this._isFristFullscreen = false;
613
+ }
492
614
  }
493
615
 
494
616
  class XDialogCloseDirective {
@@ -559,6 +681,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
559
681
  }], propDecorators: { _has: [{
560
682
  type: HostBinding,
561
683
  args: ['class.x-dialog-portal-actions']
684
+ }] } });
685
+ class XDialogDragHandleDirective {
686
+ constructor(dialogRef, elementRef) {
687
+ this.dialogRef = dialogRef;
688
+ this.elementRef = elementRef;
689
+ }
690
+ get getDraggable() {
691
+ return !this.dialogRef.fullscreen && this.dialogRef.option.draggable;
692
+ }
693
+ ngOnInit() {
694
+ this.dialogRef.dragHandleRefs.push(this.elementRef);
695
+ }
696
+ }
697
+ /** @nocollapse */ /** @nocollapse */ XDialogDragHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogDragHandleDirective, deps: [{ token: XDialogRef, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
698
+ /** @nocollapse */ /** @nocollapse */ XDialogDragHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: XDialogDragHandleDirective, selector: "[x-dialog-drag-handle], x-dialog-drag-handle", host: { properties: { "class.x-dialog-portal-drag-handle": "this.getDraggable" } }, ngImport: i0 });
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogDragHandleDirective, decorators: [{
700
+ type: Directive,
701
+ args: [{
702
+ selector: `[x-dialog-drag-handle], x-dialog-drag-handle`
703
+ }]
704
+ }], ctorParameters: function () { return [{ type: XDialogRef, decorators: [{
705
+ type: Optional
706
+ }] }, { type: i0.ElementRef }]; }, propDecorators: { getDraggable: [{
707
+ type: HostBinding,
708
+ args: ['class.x-dialog-portal-drag-handle']
709
+ }] } });
710
+ class XDialogFullscreenDirective {
711
+ constructor(dialogRef) {
712
+ this.dialogRef = dialogRef;
713
+ }
714
+ onFullscreenClick() {
715
+ this.dialogRef && this.dialogRef.onFullscreen();
716
+ }
717
+ }
718
+ /** @nocollapse */ /** @nocollapse */ XDialogFullscreenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogFullscreenDirective, deps: [{ token: XDialogRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
719
+ /** @nocollapse */ /** @nocollapse */ XDialogFullscreenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: XDialogFullscreenDirective, selector: "[x-dialog-fullscreen], x-dialog-fullscreen", host: { listeners: { "click": "onFullscreenClick($event)" } }, ngImport: i0 });
720
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogFullscreenDirective, decorators: [{
721
+ type: Directive,
722
+ args: [{
723
+ selector: `[x-dialog-fullscreen], x-dialog-fullscreen`
724
+ }]
725
+ }], ctorParameters: function () { return [{ type: XDialogRef, decorators: [{
726
+ type: Optional
727
+ }] }]; }, propDecorators: { onFullscreenClick: [{
728
+ type: HostListener,
729
+ args: ['click', ['$event']]
562
730
  }] } });
563
731
 
564
732
  class XDialogService {
@@ -571,10 +739,12 @@ class XDialogService {
571
739
  placement: 'center',
572
740
  offset: '1rem',
573
741
  width: '32rem',
742
+ minWidth: '18rem',
743
+ minHeight: '8rem',
574
744
  backdropClose: true,
575
- hasBackdrop: true
576
- // draggable: false,
577
- // resizable: false
745
+ hasBackdrop: true,
746
+ draggable: false,
747
+ resizable: false
578
748
  };
579
749
  this.renderer = this.rendererFactory.createRenderer(null, null);
580
750
  this.configDefault = this.configService.getConfigForComponent(X_DIALOG_CONFIG_NAME);
@@ -591,16 +761,51 @@ class XDialogService {
591
761
  scrollStrategy: this.overlay.scrollStrategies.block(),
592
762
  width: option.width,
593
763
  height: option.height,
764
+ minWidth: option.minWidth,
765
+ minHeight: option.minHeight,
594
766
  positionStrategy: this.portalService.setPlace(option.placement, option.offset)
595
767
  }
596
768
  });
597
- // if (option.resizable) {
598
- // this.renderer.addClass(portal.overlayRef?.hostElement, PortalResizablePrefix);
599
- // }
600
769
  const { overlayRef, componentRef } = portal || {};
601
770
  const { instance } = componentRef || {};
771
+ const { hostElement, overlayElement } = overlayRef || {};
772
+ const dialogRef = new XDialogRef(overlayRef, instance, this.renderer, this.portalService);
773
+ let dialogBox = {
774
+ draggable: option.draggable,
775
+ resizable: option.resizable
776
+ };
777
+ let defaultMaximize = this.setMaximize(option);
778
+ Object.assign(dialogBox, {
779
+ width: defaultMaximize ? this.default.width : option.width,
780
+ height: defaultMaximize ? null : option.height,
781
+ minWidth: option.minWidth,
782
+ minHeight: option.minHeight
783
+ });
602
784
  instance.placement = option.placement;
603
- const dialogRef = new XDialogRef(overlayRef, instance);
785
+ instance.option = option;
786
+ instance.dialogRef = dialogRef;
787
+ instance.defaultMaximize = defaultMaximize;
788
+ instance.dialogBox = dialogBox;
789
+ instance.hostElement = hostElement;
790
+ instance.overlayElement = overlayElement;
791
+ dialogRef.option = option;
792
+ dialogRef.fullscreen = defaultMaximize;
793
+ if (option.resizable && !defaultMaximize) {
794
+ this.renderer.addClass(hostElement, PortalResizablePrefix);
795
+ setTimeout(() => {
796
+ Object.assign(dialogBox, this.portalService.setResizable(overlayElement, option.placement));
797
+ instance.offsetLeft = overlayElement.offsetLeft;
798
+ instance.offsetTop = overlayElement.offsetTop;
799
+ const dialogDraggable = overlayElement?.querySelector('.x-dialog-portal');
800
+ instance.initHeight = dialogDraggable.clientHeight;
801
+ instance.dialogContent = overlayElement?.querySelector('.x-dialog-portal-content');
802
+ instance.initContentHeight = instance.dialogContent?.clientHeight;
803
+ instance.dialogBox = dialogBox;
804
+ });
805
+ }
806
+ if (defaultMaximize) {
807
+ this.renderer.addClass(overlayElement, 'x-dialog-portal-fullscreen');
808
+ }
604
809
  if (content instanceof TemplateRef) {
605
810
  instance.attachTemplatePortal(new TemplatePortal(content, option.viewContainerRef, { $implicit: option.data, dialogRef: dialogRef }));
606
811
  }
@@ -619,12 +824,22 @@ class XDialogService {
619
824
  }
620
825
  return dialogRef;
621
826
  }
827
+ setMaximize(option = {}) {
828
+ const ws = ['100%', '100vw'];
829
+ const hs = ['100%', '100vh'];
830
+ if (ws.includes(option.width) && hs.includes(option.height)) {
831
+ option.resizable = false;
832
+ option.draggable = false;
833
+ return true;
834
+ }
835
+ return false;
836
+ }
622
837
  }
623
- /** @nocollapse */ /** @nocollapse */ XDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogService, deps: [{ token: i1.XPortalService }, { token: i2$1.XConfigService }, { token: i2.Overlay }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
838
+ /** @nocollapse */ /** @nocollapse */ XDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogService, deps: [{ token: i1.XPortalService }, { token: i2$2.XConfigService }, { token: i2.Overlay }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
624
839
  /** @nocollapse */ /** @nocollapse */ XDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogService });
625
840
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogService, decorators: [{
626
841
  type: Injectable
627
- }], ctorParameters: function () { return [{ type: i1.XPortalService }, { type: i2$1.XConfigService }, { type: i2.Overlay }, { type: i0.RendererFactory2 }]; } });
842
+ }], ctorParameters: function () { return [{ type: i1.XPortalService }, { type: i2$2.XConfigService }, { type: i2.Overlay }, { type: i0.RendererFactory2 }]; } });
628
843
 
629
844
  class XDialogModule {
630
845
  }
@@ -634,6 +849,8 @@ class XDialogModule {
634
849
  XDialogTitleDirective,
635
850
  XDialogContentDirective,
636
851
  XDialogActionsDirective,
852
+ XDialogDragHandleDirective,
853
+ XDialogFullscreenDirective,
637
854
  XDialogPortalComponent,
638
855
  XDialogProperty], imports: [CommonModule,
639
856
  FormsModule,
@@ -650,6 +867,8 @@ class XDialogModule {
650
867
  XDialogTitleDirective,
651
868
  XDialogContentDirective,
652
869
  XDialogActionsDirective,
870
+ XDialogDragHandleDirective,
871
+ XDialogFullscreenDirective,
653
872
  XDialogPortalComponent] });
654
873
  /** @nocollapse */ /** @nocollapse */ XDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: XDialogModule, providers: [XDialogService], imports: [[
655
874
  CommonModule,
@@ -673,6 +892,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
673
892
  XDialogTitleDirective,
674
893
  XDialogContentDirective,
675
894
  XDialogActionsDirective,
895
+ XDialogDragHandleDirective,
896
+ XDialogFullscreenDirective,
676
897
  XDialogPortalComponent,
677
898
  XDialogProperty
678
899
  ],
@@ -682,6 +903,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
682
903
  XDialogTitleDirective,
683
904
  XDialogContentDirective,
684
905
  XDialogActionsDirective,
906
+ XDialogDragHandleDirective,
907
+ XDialogFullscreenDirective,
685
908
  XDialogPortalComponent
686
909
  ],
687
910
  imports: [
@@ -705,5 +928,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
705
928
  * Generated bundle index. Do not edit.
706
929
  */
707
930
 
708
- export { XDialogActionsDirective, XDialogCloseDirective, XDialogComponent, XDialogContainer, XDialogContentDirective, XDialogModule, XDialogPortalComponent, XDialogPrefix, XDialogProperty, XDialogRef, XDialogService, XDialogTitleDirective, X_DIALOG_CONFIG_NAME, X_DIALOG_DATA };
931
+ export { XDialogActionsDirective, XDialogCloseDirective, XDialogComponent, XDialogContainer, XDialogContentDirective, XDialogDragHandleDirective, XDialogFullscreenDirective, XDialogModule, XDialogPortalComponent, XDialogPrefix, XDialogProperty, XDialogRef, XDialogService, XDialogTitleDirective, X_DIALOG_CONFIG_NAME, X_DIALOG_DATA };
709
932
  //# sourceMappingURL=ng-nest-ui-dialog.mjs.map