@wertzui/ngx-restworld-client 4.1.2 → 4.2.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.
@@ -1,22 +1,37 @@
1
- import { QueryList } from '@angular/core';
1
+ import { AfterViewInit, OnInit, 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
+ import { Dialog } from 'primeng/dialog';
5
6
  import * as i0 from "@angular/core";
6
- export declare class RESTWorldImageViewComponent implements ControlValueAccessor {
7
+ export declare class RESTWorldImageViewComponent implements ControlValueAccessor, OnInit, AfterViewInit {
7
8
  private onChange?;
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>;
34
+ dialogs?: QueryList<Dialog>;
20
35
  disabled: boolean;
21
36
  uri?: string | null;
22
37
  tempImageFile?: File;
@@ -26,6 +41,8 @@ export declare class RESTWorldImageViewComponent implements ControlValueAccessor
26
41
  registerOnChange(fn?: Function): void;
27
42
  registerOnTouched(): void;
28
43
  setDisabledState?(isDisabled: boolean): void;
44
+ ngOnInit(): void;
45
+ ngAfterViewInit(): void;
29
46
  showCropDialog(): void;
30
47
  imageChanged(event: {
31
48
  files: File[];
@@ -34,5 +51,5 @@ export declare class RESTWorldImageViewComponent implements ControlValueAccessor
34
51
  acceptCroppedImage(): void;
35
52
  closeCropDialog(): void;
36
53
  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>;
54
+ 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
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wertzui/ngx-restworld-client",
3
- "version": "4.1.2",
3
+ "version": "4.2.1",
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": {
@@ -44,6 +44,7 @@
44
44
  "primeflex": "^3.1.3",
45
45
  "primeicons": "^5.0.0",
46
46
  "primeng": "^13.2.1",
47
+ "rxjs": "^7.5.5",
47
48
  "uri-templates-es": "^1.0.0",
48
49
  "zone.js": "^0.11.5"
49
50
  },