@guajiritos/image-picker 17.1.0 → 17.1.2

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,4 +1,4 @@
1
- import { ElementRef, EventEmitter, OnDestroy, WritableSignal } from '@angular/core';
1
+ import { ElementRef, EventEmitter, WritableSignal } from '@angular/core';
2
2
  import { ThemePalette } from '@angular/material/core';
3
3
  import { UntypedFormControl } from '@angular/forms';
4
4
  import { MatFormFieldAppearance } from '@angular/material/form-field';
@@ -24,8 +24,7 @@ export interface ImageConverterInput {
24
24
  changeWidth?: boolean;
25
25
  }
26
26
  export type ImageAllowedTypes = 'image/*' | '.webp' | '.png' | '.webp, .jpg, .jpeg' | '.webp, .png' | '.jpg, .jpeg' | '.png, .jpg, .jpeg' | '.webp, .png, .jpg, .jpeg';
27
- export declare class GuajiritosImagePicker implements OnDestroy {
28
- private unsubscribeAll$;
27
+ export declare class GuajiritosImagePicker {
29
28
  private observer;
30
29
  private originImageSrc;
31
30
  private urlImage;
@@ -33,19 +32,19 @@ export declare class GuajiritosImagePicker implements OnDestroy {
33
32
  private arrayCopiedImages;
34
33
  readonly uuidFilePicker: string;
35
34
  readonly allFormats: string[];
36
- config: WritableSignal<ImagePickerConf>;
37
- imageSrc: WritableSignal<string>;
38
35
  showCrop: UntypedFormControl;
39
- loadImage: WritableSignal<boolean>;
40
- noEdit: WritableSignal<boolean>;
41
- showEditPanel: WritableSignal<boolean>;
42
36
  maintainAspectRatio: UntypedFormControl;
43
37
  quality: UntypedFormControl;
44
38
  format: UntypedFormControl;
45
- maxHeight: WritableSignal<number>;
46
- maxWidth: WritableSignal<number>;
47
39
  cropHeight: UntypedFormControl;
48
40
  cropWidth: UntypedFormControl;
41
+ maxHeight: number;
42
+ maxWidth: number;
43
+ config: WritableSignal<ImagePickerConf>;
44
+ imageSrc: WritableSignal<string>;
45
+ loadImage: WritableSignal<boolean>;
46
+ noEdit: WritableSignal<boolean>;
47
+ showEditPanel: WritableSignal<boolean>;
49
48
  imageName: WritableSignal<string>;
50
49
  currentLanguage: WritableSignal<string>;
51
50
  appearance: MatFormFieldAppearance;
@@ -75,7 +74,6 @@ export declare class GuajiritosImagePicker implements OnDestroy {
75
74
  onCrop(type?: any): void;
76
75
  onRestore(): void;
77
76
  onRemove(): void;
78
- ngOnDestroy(): void;
79
77
  static ɵfac: i0.ɵɵFactoryDeclaration<GuajiritosImagePicker, never>;
80
78
  static ɵcmp: i0.ɵɵComponentDeclaration<GuajiritosImagePicker, "guajiritos-image-picker", never, { "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "imagesAllowed": { "alias": "imagesAllowed"; "required": false; }; "base64Image": { "alias": "base64Image"; "required": false; }; "_imageSrc": { "alias": "_imageSrc"; "required": false; }; "_config": { "alias": "_config"; "required": false; }; }, { "$imageChanged": "$imageChanged"; "$imageOriginal": "$imageOriginal"; "imageRemoved": "imageRemoved"; }, never, never, true, never>;
81
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guajiritos/image-picker",
3
- "version": "17.1.0",
3
+ "version": "17.1.2",
4
4
  "author": {
5
5
  "name": "Guajiritos SRL",
6
6
  "email": "cto@guajiritos.com",