@acorex/components 18.10.11 → 18.10.12

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.
Files changed (43) hide show
  1. package/button/lib/button.component.d.ts +1 -1
  2. package/esm2022/button/lib/button.component.mjs +3 -3
  3. package/esm2022/color-box/lib/color-box.component.mjs +3 -3
  4. package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +1 -1
  5. package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +1 -1
  6. package/esm2022/image-editor/acorex-components-image-editor.mjs +5 -0
  7. package/esm2022/image-editor/index.mjs +8 -0
  8. package/esm2022/image-editor/lib/image-editor-container/image-editor-container.component.mjs +23 -0
  9. package/esm2022/image-editor/lib/image-editor-toolbar/image-editor-toolbar.component.mjs +69 -0
  10. package/esm2022/image-editor/lib/image-editor-tools/image-editor-color-picker/image-editor-color-picker.component.mjs +46 -0
  11. package/esm2022/image-editor/lib/image-editor-tools/image-editor-crop/image-editor-crop.component.mjs +36 -0
  12. package/esm2022/image-editor/lib/image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component.mjs +56 -0
  13. package/esm2022/image-editor/lib/image-editor-view/image-editor-view.component.mjs +304 -0
  14. package/esm2022/image-editor/lib/image-editor.module.mjs +69 -0
  15. package/esm2022/image-editor/lib/image-editor.service.mjs +22 -0
  16. package/esm2022/loading/lib/loading-spinner.component.mjs +7 -5
  17. package/esm2022/loading/lib/loading.component.mjs +2 -2
  18. package/esm2022/media-viewer/lib/media-viewer-container/media-viewer-container.component.mjs +3 -3
  19. package/fesm2022/acorex-components-button.mjs +2 -2
  20. package/fesm2022/acorex-components-button.mjs.map +1 -1
  21. package/fesm2022/acorex-components-color-box.mjs +2 -2
  22. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  23. package/fesm2022/acorex-components-conversation.mjs +2 -2
  24. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  25. package/fesm2022/acorex-components-image-editor.mjs +595 -0
  26. package/fesm2022/acorex-components-image-editor.mjs.map +1 -0
  27. package/fesm2022/acorex-components-loading.mjs +8 -6
  28. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  29. package/fesm2022/acorex-components-media-viewer.mjs +2 -2
  30. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  31. package/image-editor/README.md +3 -0
  32. package/image-editor/index.d.ts +7 -0
  33. package/image-editor/lib/image-editor-container/image-editor-container.component.d.ts +13 -0
  34. package/image-editor/lib/image-editor-toolbar/image-editor-toolbar.component.d.ts +27 -0
  35. package/image-editor/lib/image-editor-tools/image-editor-color-picker/image-editor-color-picker.component.d.ts +27 -0
  36. package/image-editor/lib/image-editor-tools/image-editor-crop/image-editor-crop.component.d.ts +18 -0
  37. package/image-editor/lib/image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component.d.ts +34 -0
  38. package/image-editor/lib/image-editor-view/image-editor-view.component.d.ts +65 -0
  39. package/image-editor/lib/image-editor.module.d.ts +21 -0
  40. package/image-editor/lib/image-editor.service.d.ts +24 -0
  41. package/loading/lib/loading-spinner.component.d.ts +1 -1
  42. package/media-viewer/lib/media-viewer-container/media-viewer-container.component.d.ts +1 -1
  43. package/package.json +41 -35
@@ -0,0 +1,34 @@
1
+ import { AXPlacement } from '@acorex/components/common';
2
+ import { AXPopoverCloseTrigger, AXPopoverOpenTrigger } from '@acorex/components/popover';
3
+ import { AXImageEditorService } from '../../image-editor.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * paint mode.
7
+ * @category Components
8
+ */
9
+ export declare class AXImageEditorPenModeChangerComponent {
10
+ /** @ignore */
11
+ protected service: AXImageEditorService;
12
+ /** @ignore */
13
+ protected value: number;
14
+ /** @ignore */
15
+ protected popoverOption: {
16
+ openOn: AXPopoverOpenTrigger;
17
+ closeOn: AXPopoverCloseTrigger;
18
+ placement: AXPlacement;
19
+ offsetX: number;
20
+ offsetY: number;
21
+ };
22
+ /** @ignore */
23
+ protected selectedPenType: import("@angular/core").WritableSignal<"pen" | "highlight">;
24
+ /** @ignore */
25
+ protected penTypeHandler(e: 'pen' | 'highlight'): void;
26
+ /** @ignore */
27
+ protected clear(): void;
28
+ /** @ignore */
29
+ get __hostClass(): string;
30
+ /** @ignore */
31
+ protected valueHandler(e: number): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorPenModeChangerComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorPenModeChangerComponent, "ax-image-editor-pen-mode-changer", never, {}, {}, never, never, false, never>;
34
+ }
@@ -0,0 +1,65 @@
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
+ import { AXImageEditorService } from '../image-editor.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXImageEditorViewComponent implements OnDestroy {
5
+ /**
6
+ * its receive image src.
7
+ */
8
+ src: import("@angular/core").InputSignal<string>;
9
+ /** @ignore */
10
+ protected canvasElem: import("@angular/core").Signal<ElementRef<HTMLCanvasElement>>;
11
+ /** @ignore */
12
+ protected ctx: import("@angular/core").WritableSignal<CanvasRenderingContext2D>;
13
+ /** @ignore */
14
+ protected service: AXImageEditorService;
15
+ /** @ignore */
16
+ protected cropImageData: import("@angular/core").WritableSignal<ImageData>;
17
+ /** @ignore */
18
+ protected isMouseDown: import("@angular/core").WritableSignal<boolean>;
19
+ /** @ignore */
20
+ protected cropStartX: import("@angular/core").WritableSignal<number>;
21
+ /** @ignore */
22
+ protected cropStartY: import("@angular/core").WritableSignal<number>;
23
+ /** @ignore */
24
+ protected cropEndX: import("@angular/core").WritableSignal<number>;
25
+ /** @ignore */
26
+ protected cropEndY: import("@angular/core").WritableSignal<number>;
27
+ /** @ignore */
28
+ protected EventListener: any;
29
+ /** @ignore */
30
+ constructor();
31
+ /** @ignore */
32
+ ngOnDestroy(): void;
33
+ /** @ignore */
34
+ protected imageLoaded(): void;
35
+ /** @ignore */
36
+ protected penConfigHandler(penType: 'pen' | 'highlight'): void;
37
+ /** @ignore */
38
+ protected getBoundingCanvasHandler(): DOMRect;
39
+ /** @ignore */
40
+ protected mouseDownHandler(e: MouseEvent): void;
41
+ /** @ignore */
42
+ protected mouseMoveHandler(e: MouseEvent): void;
43
+ /** @ignore */
44
+ protected mouseUpHandler(): void;
45
+ /** @ignore */
46
+ protected touchStartHandler(e: TouchEvent): void;
47
+ /** @ignore */
48
+ protected touchMoveHandler(e: TouchEvent): void;
49
+ /** @ignore */
50
+ protected touchEndHandler(): void;
51
+ /** @ignore */
52
+ protected drawSelection(): void;
53
+ /** @ignore */
54
+ protected cropImageFunction(): void;
55
+ /** @ignore */
56
+ protected cropButtonHandler(): void;
57
+ /** @ignore */
58
+ protected rotateImage(): void;
59
+ /** @ignore */
60
+ protected saveImageChange(): void;
61
+ /** @ignore */
62
+ private get __hostStyle();
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorViewComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageEditorViewComponent, "ax-image-editor-view", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
65
+ }
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./image-editor-toolbar/image-editor-toolbar.component";
3
+ import * as i2 from "./image-editor-tools/image-editor-color-picker/image-editor-color-picker.component";
4
+ import * as i3 from "./image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component";
5
+ import * as i4 from "./image-editor-view/image-editor-view.component";
6
+ import * as i5 from "./image-editor-container/image-editor-container.component";
7
+ import * as i6 from "./image-editor-tools/image-editor-crop/image-editor-crop.component";
8
+ import * as i7 from "@acorex/components/button";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "@acorex/components/range-slider";
11
+ import * as i10 from "@acorex/components/select-box";
12
+ import * as i11 from "@acorex/components/color-palette";
13
+ import * as i12 from "@acorex/components/popover";
14
+ import * as i13 from "@acorex/components/decorators";
15
+ import * as i14 from "@acorex/components/loading";
16
+ import * as i15 from "@acorex/components/dialog";
17
+ export declare class AXImageEditorModule {
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorModule, never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXImageEditorModule, [typeof i1.AXImageEditorToolbarComponent, typeof i2.AXImageEditorColorPickerComponent, typeof i3.AXImageEditorPenModeChangerComponent, typeof i4.AXImageEditorViewComponent, typeof i5.AXImageEditorContainerComponent, typeof i6.AXImageEditorCropComponent], [typeof i7.AXButtonModule, typeof i8.FormsModule, typeof i9.AXRangeSliderModule, typeof i10.AXSelectBoxModule, typeof i11.AXColorPaletteModule, typeof i12.AXPopoverModule, typeof i13.AXDecoratorModule, typeof i14.AXLoadingModule, typeof i15.AXDialogModule], [typeof i1.AXImageEditorToolbarComponent, typeof i2.AXImageEditorColorPickerComponent, typeof i3.AXImageEditorPenModeChangerComponent, typeof i4.AXImageEditorViewComponent, typeof i5.AXImageEditorContainerComponent, typeof i6.AXImageEditorCropComponent]>;
20
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXImageEditorModule>;
21
+ }
@@ -0,0 +1,24 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXImageEditorService {
3
+ penColor: import("@angular/core").WritableSignal<string | CanvasGradient | CanvasPattern>;
4
+ lineCap: import("@angular/core").WritableSignal<CanvasLineCap>;
5
+ lineWidth: import("@angular/core").WritableSignal<number>;
6
+ penType: import("@angular/core").WritableSignal<"pen" | "highlight">;
7
+ toggleClear: import("@angular/core").WritableSignal<{
8
+ state: boolean;
9
+ userInteract: boolean;
10
+ }>;
11
+ cropState: import("@angular/core").WritableSignal<{
12
+ state: boolean;
13
+ userInteract: boolean;
14
+ }>;
15
+ rotate: import("@angular/core").WritableSignal<{
16
+ state: number;
17
+ userInteract: boolean;
18
+ }>;
19
+ isImageLoad: import("@angular/core").WritableSignal<boolean>;
20
+ newImage: import("@angular/core").WritableSignal<HTMLImageElement>;
21
+ initialImage: import("@angular/core").WritableSignal<HTMLImageElement>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageEditorService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXImageEditorService>;
24
+ }
@@ -26,5 +26,5 @@ export declare class AXLoadingSpinnerComponent {
26
26
  */
27
27
  stroke: number;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<AXLoadingSpinnerComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<AXLoadingSpinnerComponent, "ax-loading-spinner", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "stroke": { "alias": "stroke"; "required": false; }; }, {}, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXLoadingSpinnerComponent, "ax-loading-spinner", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "stroke": { "alias": "stroke"; "required": false; }; }, {}, never, never, false, never>;
30
30
  }
@@ -11,5 +11,5 @@ export declare class AXMediaViewerContainerComponent {
11
11
  protected nextHandler(): void;
12
12
  protected backHandler(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerContainerComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; }, {}, never, ["ax-prefix", "ax-suffix"], false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; }, {}, never, ["ax-header", "ax-footer"], false, never>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "18.10.11",
3
+ "version": "18.10.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.2.0",
6
6
  "@angular/core": ">=18.2.0",
@@ -38,11 +38,11 @@
38
38
  "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
39
39
  "default": "./fesm2022/acorex-components-avatar.mjs"
40
40
  },
41
- "./audio-wave": {
42
- "types": "./audio-wave/index.d.ts",
43
- "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
44
- "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
45
- "default": "./fesm2022/acorex-components-audio-wave.mjs"
41
+ "./alert": {
42
+ "types": "./alert/index.d.ts",
43
+ "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
44
+ "esm": "./esm2022/alert/acorex-components-alert.mjs",
45
+ "default": "./fesm2022/acorex-components-alert.mjs"
46
46
  },
47
47
  "./bottom-navigation": {
48
48
  "types": "./bottom-navigation/index.d.ts",
@@ -56,18 +56,18 @@
56
56
  "esm": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
57
57
  "default": "./fesm2022/acorex-components-breadcrumbs.mjs"
58
58
  },
59
+ "./audio-wave": {
60
+ "types": "./audio-wave/index.d.ts",
61
+ "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
62
+ "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
63
+ "default": "./fesm2022/acorex-components-audio-wave.mjs"
64
+ },
59
65
  "./badge": {
60
66
  "types": "./badge/index.d.ts",
61
67
  "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
62
68
  "esm": "./esm2022/badge/acorex-components-badge.mjs",
63
69
  "default": "./fesm2022/acorex-components-badge.mjs"
64
70
  },
65
- "./alert": {
66
- "types": "./alert/index.d.ts",
67
- "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
68
- "esm": "./esm2022/alert/acorex-components-alert.mjs",
69
- "default": "./fesm2022/acorex-components-alert.mjs"
70
- },
71
71
  "./button": {
72
72
  "types": "./button/index.d.ts",
73
73
  "esm2022": "./esm2022/button/acorex-components-button.mjs",
@@ -212,6 +212,12 @@
212
212
  "esm": "./esm2022/image/acorex-components-image.mjs",
213
213
  "default": "./fesm2022/acorex-components-image.mjs"
214
214
  },
215
+ "./image-editor": {
216
+ "types": "./image-editor/index.d.ts",
217
+ "esm2022": "./esm2022/image-editor/acorex-components-image-editor.mjs",
218
+ "esm": "./esm2022/image-editor/acorex-components-image-editor.mjs",
219
+ "default": "./fesm2022/acorex-components-image-editor.mjs"
220
+ },
215
221
  "./label": {
216
222
  "types": "./label/index.d.ts",
217
223
  "esm2022": "./esm2022/label/acorex-components-label.mjs",
@@ -308,17 +314,23 @@
308
314
  "esm": "./esm2022/phone-box/acorex-components-phone-box.mjs",
309
315
  "default": "./fesm2022/acorex-components-phone-box.mjs"
310
316
  },
317
+ "./picker": {
318
+ "types": "./picker/index.d.ts",
319
+ "esm2022": "./esm2022/picker/acorex-components-picker.mjs",
320
+ "esm": "./esm2022/picker/acorex-components-picker.mjs",
321
+ "default": "./fesm2022/acorex-components-picker.mjs"
322
+ },
311
323
  "./popover": {
312
324
  "types": "./popover/index.d.ts",
313
325
  "esm2022": "./esm2022/popover/acorex-components-popover.mjs",
314
326
  "esm": "./esm2022/popover/acorex-components-popover.mjs",
315
327
  "default": "./fesm2022/acorex-components-popover.mjs"
316
328
  },
317
- "./picker": {
318
- "types": "./picker/index.d.ts",
319
- "esm2022": "./esm2022/picker/acorex-components-picker.mjs",
320
- "esm": "./esm2022/picker/acorex-components-picker.mjs",
321
- "default": "./fesm2022/acorex-components-picker.mjs"
329
+ "./popup": {
330
+ "types": "./popup/index.d.ts",
331
+ "esm2022": "./esm2022/popup/acorex-components-popup.mjs",
332
+ "esm": "./esm2022/popup/acorex-components-popup.mjs",
333
+ "default": "./fesm2022/acorex-components-popup.mjs"
322
334
  },
323
335
  "./progress-bar": {
324
336
  "types": "./progress-bar/index.d.ts",
@@ -332,30 +344,24 @@
332
344
  "esm": "./esm2022/qrcode/acorex-components-qrcode.mjs",
333
345
  "default": "./fesm2022/acorex-components-qrcode.mjs"
334
346
  },
335
- "./popup": {
336
- "types": "./popup/index.d.ts",
337
- "esm2022": "./esm2022/popup/acorex-components-popup.mjs",
338
- "esm": "./esm2022/popup/acorex-components-popup.mjs",
339
- "default": "./fesm2022/acorex-components-popup.mjs"
340
- },
341
347
  "./radio": {
342
348
  "types": "./radio/index.d.ts",
343
349
  "esm2022": "./esm2022/radio/acorex-components-radio.mjs",
344
350
  "esm": "./esm2022/radio/acorex-components-radio.mjs",
345
351
  "default": "./fesm2022/acorex-components-radio.mjs"
346
352
  },
347
- "./range-slider": {
348
- "types": "./range-slider/index.d.ts",
349
- "esm2022": "./esm2022/range-slider/acorex-components-range-slider.mjs",
350
- "esm": "./esm2022/range-slider/acorex-components-range-slider.mjs",
351
- "default": "./fesm2022/acorex-components-range-slider.mjs"
352
- },
353
353
  "./rate-picker": {
354
354
  "types": "./rate-picker/index.d.ts",
355
355
  "esm2022": "./esm2022/rate-picker/acorex-components-rate-picker.mjs",
356
356
  "esm": "./esm2022/rate-picker/acorex-components-rate-picker.mjs",
357
357
  "default": "./fesm2022/acorex-components-rate-picker.mjs"
358
358
  },
359
+ "./range-slider": {
360
+ "types": "./range-slider/index.d.ts",
361
+ "esm2022": "./esm2022/range-slider/acorex-components-range-slider.mjs",
362
+ "esm": "./esm2022/range-slider/acorex-components-range-slider.mjs",
363
+ "default": "./fesm2022/acorex-components-range-slider.mjs"
364
+ },
359
365
  "./result": {
360
366
  "types": "./result/index.d.ts",
361
367
  "esm2022": "./esm2022/result/acorex-components-result.mjs",
@@ -380,18 +386,18 @@
380
386
  "esm": "./esm2022/scss/acorex-components-scss.mjs",
381
387
  "default": "./fesm2022/acorex-components-scss.mjs"
382
388
  },
383
- "./search-box": {
384
- "types": "./search-box/index.d.ts",
385
- "esm2022": "./esm2022/search-box/acorex-components-search-box.mjs",
386
- "esm": "./esm2022/search-box/acorex-components-search-box.mjs",
387
- "default": "./fesm2022/acorex-components-search-box.mjs"
388
- },
389
389
  "./select-box": {
390
390
  "types": "./select-box/index.d.ts",
391
391
  "esm2022": "./esm2022/select-box/acorex-components-select-box.mjs",
392
392
  "esm": "./esm2022/select-box/acorex-components-select-box.mjs",
393
393
  "default": "./fesm2022/acorex-components-select-box.mjs"
394
394
  },
395
+ "./search-box": {
396
+ "types": "./search-box/index.d.ts",
397
+ "esm2022": "./esm2022/search-box/acorex-components-search-box.mjs",
398
+ "esm": "./esm2022/search-box/acorex-components-search-box.mjs",
399
+ "default": "./fesm2022/acorex-components-search-box.mjs"
400
+ },
395
401
  "./selection-list": {
396
402
  "types": "./selection-list/index.d.ts",
397
403
  "esm2022": "./esm2022/selection-list/acorex-components-selection-list.mjs",