@maro-tech/card 0.1.3 → 0.1.4
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Type, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Type, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { HttpParams } from '@angular/common/http';
|
|
5
5
|
import * as lucide_angular from 'lucide-angular';
|
|
@@ -233,17 +233,32 @@ declare class CardSectionHeaderComponent {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
declare class ImagesViewerComponent {
|
|
236
|
+
readonly downloadIcon: lucide_angular.LucideIconData;
|
|
236
237
|
readonly urls: _angular_core.InputSignal<string[]>;
|
|
237
238
|
readonly initialIndex: _angular_core.InputSignal<number>;
|
|
238
239
|
readonly currentIndex: _angular_core.WritableSignal<number>;
|
|
240
|
+
readonly isOriginalVisible: _angular_core.WritableSignal<boolean>;
|
|
241
|
+
readonly thumbnailButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
239
242
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
243
|
+
private touchStartX;
|
|
244
|
+
private touchStartY;
|
|
245
|
+
private lastImagesKey;
|
|
240
246
|
constructor();
|
|
241
247
|
onEscape(): void;
|
|
242
248
|
onArrowLeft(): void;
|
|
243
249
|
onArrowRight(): void;
|
|
244
250
|
closeViewer(): void;
|
|
251
|
+
onTouchStart(event: TouchEvent): void;
|
|
252
|
+
onTouchEnd(event: TouchEvent): void;
|
|
245
253
|
showPreviousImage(): void;
|
|
246
254
|
showNextImage(): void;
|
|
255
|
+
toggleOriginal(): void;
|
|
256
|
+
selectImage(index: number, event: MouseEvent): void;
|
|
257
|
+
private blurActiveElement;
|
|
258
|
+
get currentUrl(): string;
|
|
259
|
+
get currentImageUrl(): string;
|
|
260
|
+
isPreloadIndex(index: number): boolean;
|
|
261
|
+
getImageUrl(url: string, index: number): string;
|
|
247
262
|
get imageViewerTransform(): string;
|
|
248
263
|
get imageViewerTransitionStyle(): string;
|
|
249
264
|
getThumbnailUrl(url: string): string;
|