@magic-xpa/angular 4.1200.0-dev4120.127 → 4.1200.0-dev4120.130

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@magic-xpa/angular",
3
- "version": "4.1200.0-dev4120.127",
3
+ "version": "4.1200.0-dev4120.130",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "dependencies": {
6
- "@magic-xpa/engine": "4.1200.0-dev4120.127",
7
- "@magic-xpa/angular-material-core": "4.1200.0-dev4120.127",
6
+ "@magic-xpa/engine": "4.1200.0-dev4120.130",
7
+ "@magic-xpa/angular-material-core": "4.1200.0-dev4120.130",
8
8
  "ng-dynamic-component": "~10.7.0",
9
9
  "rxjs": "7.8.1",
10
10
  "@maskito/angular": "^1.4.0",
@@ -32,12 +32,13 @@ import * as i30 from "@angular/common";
32
32
  import * as i31 from "@angular/forms";
33
33
  import * as i32 from "@angular/router";
34
34
  import * as i33 from "ng-dynamic-component";
35
- import * as i34 from "@maskito/angular";
35
+ import * as i34 from "@angular/cdk/drag-drop";
36
+ import * as i35 from "@maskito/angular";
36
37
  /**
37
38
  * @ignore
38
39
  */
39
40
  export declare class MagicModule {
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule], [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe, typeof i34.MaskitoModule]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule, typeof i34.CdkDragHandle, typeof i34.CdkDrag, typeof i34.DragDropModule], [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe, typeof i35.MaskitoModule]>;
42
43
  static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
43
44
  }
@@ -34,4 +34,12 @@ export interface MagicModalInterface {
34
34
  * Should the modal window close when the user clicks on the background
35
35
  */
36
36
  ShouldCloseOnBackgroundClick(): any;
37
+ /**
38
+ * Is overlay window resizable
39
+ */
40
+ IsResizable(): any;
41
+ /**
42
+ * Is overlay window movable
43
+ */
44
+ IsMovable(): any;
37
45
  }
@@ -31,10 +31,15 @@ export declare class MagicOverlayContainer extends BaseMagicOverlayContainer imp
31
31
  *
32
32
  */
33
33
  private componentRef;
34
+ private resizing;
35
+ private resizeDirection;
36
+ private originalWidth;
37
+ private originalHeight;
38
+ private originalMouseX;
39
+ private originalMouseY;
40
+ private isCenteredToWindow;
34
41
  /**
35
42
  *
36
- * @param injector
37
- * @param componentFactoryResolver
38
43
  */
39
44
  constructor();
40
45
  /**
@@ -70,6 +75,35 @@ export declare class MagicOverlayContainer extends BaseMagicOverlayContainer imp
70
75
  * Handles click in the background window
71
76
  */
72
77
  OnBackgroundClick(): void;
78
+ /**
79
+ * Checks if the overlay component allows to be resized.
80
+ * @returns {boolean} True if the overlay is resizable, false otherwise.
81
+ */
82
+ IsResizable(): any;
83
+ /**
84
+ * Checks if the overlay component allows to be moved (dragged).
85
+ * @returns {boolean} True if the overlay is movable, false otherwise.
86
+ */
87
+ IsMovable(): any;
88
+ /**
89
+ * Initiates the resize process when a mousedown event occurs on a resize handle.
90
+ * Stores the initial state (dimensions, mouse position) and sets flags.
91
+ * @param {MouseEvent} event - The mousedown event triggering the resize.
92
+ * @param {'right' | 'bottom' | 'corner'} direction - Indicates which resize handle was activated.
93
+ */
94
+ onResizeStart(event: MouseEvent, direction: 'right' | 'bottom' | 'corner'): void;
95
+ /**
96
+ * Handles the resizing logic as the mouse moves across the window.
97
+ * This listener is active globally on the window during a resize operation via @HostListener.
98
+ * Calculates and applies the new dimensions to the element based on mouse movement.
99
+ * @param {MouseEvent} event - The mousemove event passed by the HostListener.
100
+ */
101
+ onResize(event: MouseEvent): void;
102
+ /**
103
+ * Finalizes the resize operation when the mouse button is released anywhere on the window.
104
+ * Resets the resizing state flags. Triggered globally via @HostListener.
105
+ */
106
+ onResizeEnd(): void;
73
107
  static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
74
108
  static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": { "alias": "ModalComp"; "required": false; }; "ModalCompParameters": { "alias": "ModalCompParameters"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
75
109
  }