@recursyve/nice-ui-kit.v2 14.0.0-beta.119 → 14.0.0-beta.120
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.
- package/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +48 -25
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +48 -24
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +47 -24
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +8 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, QueryList, TemplateRef } from "@angular/core";
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
2
|
import { ControlValueAccessor } from "@angular/forms";
|
|
3
3
|
import { CanColor, ThemePalette } from "@angular/material/core";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -32,7 +32,7 @@ export interface NiceAssetsCarouselOptions {
|
|
|
32
32
|
rightArrow?: NiceAssetsCarouselActionIcon;
|
|
33
33
|
upload?: NiceAssetsCarouselActionIcon;
|
|
34
34
|
}
|
|
35
|
-
export declare class NiceAssetsCarouselComponent implements ControlValueAccessor, CanColor {
|
|
35
|
+
export declare class NiceAssetsCarouselComponent implements OnInit, OnChanges, ControlValueAccessor, CanColor {
|
|
36
36
|
readonly options: NiceAssetsCarouselOptions;
|
|
37
37
|
_activeTranslationPosition: number;
|
|
38
38
|
_active: number;
|
|
@@ -49,7 +49,7 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
49
49
|
loading: boolean;
|
|
50
50
|
accept: string[];
|
|
51
51
|
customActions: NiceAssetsCarouselActions[];
|
|
52
|
-
imagesProcessor: (
|
|
52
|
+
imagesProcessor: (files: File[]) => Promise<File[]>;
|
|
53
53
|
multipleUpload: boolean;
|
|
54
54
|
visiblePreviewAsset: number;
|
|
55
55
|
showAddAssetContainer: boolean;
|
|
@@ -60,6 +60,7 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
60
60
|
transform: string;
|
|
61
61
|
};
|
|
62
62
|
showOverlay: boolean;
|
|
63
|
+
private _imagesMimeTypes;
|
|
63
64
|
private propagate;
|
|
64
65
|
set activeVideoElement(activeVideoElement: ElementRef<HTMLVideoElement>);
|
|
65
66
|
set assetsElement(assetsElement: QueryList<ElementRef<HTMLDivElement>>);
|
|
@@ -67,6 +68,8 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
67
68
|
private set activeTranslationPosition(value);
|
|
68
69
|
private set activeAsset(value);
|
|
69
70
|
constructor(options: NiceAssetsCarouselOptions);
|
|
71
|
+
ngOnInit(): void;
|
|
72
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
70
73
|
writeValue(assets: NiceAssets[]): void;
|
|
71
74
|
registerOnChange(fn: (assets: NiceAssets[]) => void): void;
|
|
72
75
|
registerOnTouched(fn: (assets: NiceAssets[]) => void): void;
|
|
@@ -74,10 +77,11 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
74
77
|
clickRight(): void;
|
|
75
78
|
clickAsset(index: number): void;
|
|
76
79
|
onFilesChange(event: Event): Promise<void>;
|
|
77
|
-
onFilesDrop(
|
|
80
|
+
onFilesDrop(fileList: FileList): Promise<void>;
|
|
78
81
|
clickRemove(): void;
|
|
79
82
|
clickCustom(action: NiceAssetsCarouselActions): void;
|
|
80
83
|
startSyncVideo(): Promise<void>;
|
|
84
|
+
private filterOutUnsupportedFiles;
|
|
81
85
|
private getProcessedFiles;
|
|
82
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAssetsCarouselComponent, [{ optional: true; }]>;
|
|
83
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAssetsCarouselComponent, "nice-assets-carousel", never, { "color": "color"; "edit": "edit"; "loading": "loading"; "accept": "accept"; "customActions": "customActions"; "imagesProcessor": "imagesProcessor"; "multipleUpload": "multipleUpload"; "visiblePreviewAsset": "visiblePreviewAsset"; "showAddAssetContainer": "showAddAssetContainer"; "assets": "assets"; }, { "activeChange": "activeChange"; "removedAsset": "removedAsset"; }, ["activeContent"], never, false>;
|