@wertzui/ngx-restworld-client 4.1.3 → 4.2.0

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.
@@ -1,22 +1,36 @@
1
1
  import { QueryList } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { ImageCroppedEvent, OutputFormat } from 'ngx-image-cropper';
3
+ import { CropperPosition, ImageCroppedEvent, ImageCropperComponent, OutputFormat } from 'ngx-image-cropper';
4
4
  import { FileUpload } from 'primeng/fileupload';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class RESTWorldImageViewComponent implements ControlValueAccessor {
7
7
  private onChange?;
8
+ private _dialogHasBeenOpenedBefore;
8
9
  alt?: string;
9
10
  accept?: string;
10
11
  fileName?: string;
11
- maintainAspectRatio: boolean;
12
- aspectRatio: number;
13
- resizeToWidth: number;
14
- resizeToHeight: number;
15
- onlyScaleDown: boolean;
16
- containWithinAspectRatio: boolean;
17
- backgroundColor: string;
18
- format: OutputFormat;
12
+ alignImage?: 'center' | 'left';
13
+ aspectRatio?: number;
14
+ backgroundColor?: string;
15
+ canvasRotation?: number;
16
+ containWithinAspectRatio?: boolean;
17
+ cropper?: CropperPosition;
18
+ cropperMaxHeight?: number;
19
+ cropperMaxWidth?: number;
20
+ cropperMinHeight?: number;
21
+ cropperMinWidth?: number;
22
+ cropperStaticHeight?: number;
23
+ cropperStaticWidth?: number;
24
+ format?: OutputFormat;
25
+ imageQuality?: number;
26
+ initialStepSize?: number;
27
+ maintainAspectRatio?: boolean;
28
+ onlyScaleDown?: boolean;
29
+ resizeToWidth?: number;
30
+ resizeToHeight?: number;
31
+ roundCropper?: boolean;
19
32
  fileUploads?: QueryList<FileUpload>;
33
+ imageCroppers?: QueryList<ImageCropperComponent>;
20
34
  disabled: boolean;
21
35
  uri?: string | null;
22
36
  tempImageFile?: File;
@@ -34,5 +48,5 @@ export declare class RESTWorldImageViewComponent implements ControlValueAccessor
34
48
  acceptCroppedImage(): void;
35
49
  closeCropDialog(): void;
36
50
  static ɵfac: i0.ɵɵFactoryDeclaration<RESTWorldImageViewComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<RESTWorldImageViewComponent, "rw-image", never, { "alt": "alt"; "accept": "accept"; "fileName": "fileName"; "maintainAspectRatio": "maintainAspectRatio"; "aspectRatio": "aspectRatio"; "resizeToWidth": "resizeToWidth"; "resizeToHeight": "resizeToHeight"; "onlyScaleDown": "onlyScaleDown"; "containWithinAspectRatio": "containWithinAspectRatio"; "backgroundColor": "backgroundColor"; "format": "format"; }, {}, never, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<RESTWorldImageViewComponent, "rw-image", never, { "alt": "alt"; "accept": "accept"; "fileName": "fileName"; "alignImage": "alignImage"; "aspectRatio": "aspectRatio"; "backgroundColor": "backgroundColor"; "canvasRotation": "canvasRotation"; "containWithinAspectRatio": "containWithinAspectRatio"; "cropper": "cropper"; "cropperMaxHeight": "cropperMaxHeight"; "cropperMaxWidth": "cropperMaxWidth"; "cropperMinHeight": "cropperMinHeight"; "cropperMinWidth": "cropperMinWidth"; "cropperStaticHeight": "cropperStaticHeight"; "cropperStaticWidth": "cropperStaticWidth"; "format": "format"; "imageQuality": "imageQuality"; "initialStepSize": "initialStepSize"; "maintainAspectRatio": "maintainAspectRatio"; "onlyScaleDown": "onlyScaleDown"; "resizeToWidth": "resizeToWidth"; "resizeToHeight": "resizeToHeight"; "roundCropper": "roundCropper"; }, {}, never, never>;
38
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wertzui/ngx-restworld-client",
3
- "version": "4.1.3",
3
+ "version": "4.2.0",
4
4
  "author": "wertzui",
5
5
  "description": "An Angular client to consume a RESTworld service that serves application/hal+json or hal-forms+json.",
6
6
  "publishConfig": {