@libs-ui/components-image-editor 0.2.162 → 0.2.164

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,7 +1,7 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
- import { IEvent } from '@libs-ui/interfaces-types';
2
+ import { IAspectRatio, IEvent } from '@libs-ui/interfaces-types';
3
3
  import { IImageEditorFunctionControlEvent } from './interfaces/function-control-event.interface';
4
- import { IAspectRatio, ICropRatioItem, ICropSize, ISaveFile, IResizeData, MODE_EDIT, TYPE_MODE_SAVE } from './interfaces/image-editor.interface';
4
+ import { ICropRatioItem, ICropSize, ISaveFile, IResizeData, MODE_EDIT, TYPE_MODE_SAVE } from './interfaces/image-editor.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class LibsUiComponentsImageEditorComponent implements AfterViewInit, OnDestroy {
7
7
  private linkImageError;
@@ -1,3 +1,4 @@
1
+ import { TYPE_ASPECT_RATIO } from '@libs-ui/interfaces-types';
1
2
  export interface ISaveFile {
2
3
  file: Blob;
3
4
  url: string;
@@ -5,14 +6,10 @@ export interface ISaveFile {
5
6
  }
6
7
  export type TYPE_MODE_SAVE = 'save-file' | 'save-api' | 'save-api-as-new-file';
7
8
  export interface ICropRatioItem {
8
- key: 'free' | '1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '9:16' | '16:9';
9
+ key: TYPE_ASPECT_RATIO;
9
10
  icon: string;
10
11
  value?: number;
11
12
  }
12
- export interface IAspectRatio {
13
- key: string;
14
- value: number;
15
- }
16
13
  export interface ICropSize {
17
14
  width: number;
18
15
  height: number;
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "@libs-ui/components-image-editor",
3
- "version": "0.2.162",
3
+ "version": "0.2.164",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
- "@angular/core": "^18.2.0"
6
+ "@angular/core": "^18.2.0",
7
+ "@libs-ui/utils": "0.2.162",
8
+ "@libs-ui/components-buttons-button": "0.2.162",
9
+ "@libs-ui/components-inputs-valid": "0.2.162",
10
+ "@libs-ui/components-modal": "0.2.162",
11
+ "@libs-ui/components-popover": "0.2.162",
12
+ "@libs-ui/components-spinner": "0.2.162",
13
+ "@libs-ui/interfaces-types": "0.2.162",
14
+ "@libs-ui/services-dynamic-component": "0.2.162",
15
+ "@ngx-translate/core": "^15.0.0",
16
+ "rxjs": "~7.8.0"
7
17
  },
8
18
  "sideEffects": false,
9
19
  "module": "fesm2022/libs-ui-components-image-editor.mjs",