@propbinder/mobile-design 0.2.81 → 0.2.82
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/index.d.ts
CHANGED
|
@@ -3415,6 +3415,10 @@ interface LightboxImageOptions {
|
|
|
3415
3415
|
showInfo?: boolean;
|
|
3416
3416
|
/** Show like & comment action buttons */
|
|
3417
3417
|
showActions?: boolean;
|
|
3418
|
+
/** Show download action button in header (overrides share if both are present or if share is removed) */
|
|
3419
|
+
showDownload?: boolean;
|
|
3420
|
+
/** Callback when download is clicked */
|
|
3421
|
+
onDownload?: (image: LightboxImage) => void;
|
|
3418
3422
|
/** Animation type for opening */
|
|
3419
3423
|
animation?: 'fade' | 'zoom' | 'slide';
|
|
3420
3424
|
}
|
|
@@ -3556,6 +3560,8 @@ declare class DsMobileLightboxImageComponent implements OnInit, AfterViewInit, O
|
|
|
3556
3560
|
enableSwipe: boolean;
|
|
3557
3561
|
showInfo: boolean;
|
|
3558
3562
|
showActions: boolean;
|
|
3563
|
+
showDownload: boolean;
|
|
3564
|
+
onDownload?: (image: LightboxImage) => void;
|
|
3559
3565
|
animation: 'fade' | 'zoom' | 'slide';
|
|
3560
3566
|
onCloseRequested?: () => void;
|
|
3561
3567
|
swiperContainer: ElementRef<HTMLDivElement>;
|
|
@@ -3602,6 +3608,10 @@ declare class DsMobileLightboxImageComponent implements OnInit, AfterViewInit, O
|
|
|
3602
3608
|
* Handle share button click
|
|
3603
3609
|
*/
|
|
3604
3610
|
onShare(): Promise<void>;
|
|
3611
|
+
/**
|
|
3612
|
+
* Handle download action
|
|
3613
|
+
*/
|
|
3614
|
+
onDownloadAction(): void;
|
|
3605
3615
|
/**
|
|
3606
3616
|
* Handle like button toggle
|
|
3607
3617
|
*/
|
|
@@ -3733,8 +3743,16 @@ declare class DsMobileLightboxHeaderComponent {
|
|
|
3733
3743
|
* Emitted when share button is clicked
|
|
3734
3744
|
*/
|
|
3735
3745
|
shareClick: _angular_core.OutputEmitterRef<void>;
|
|
3746
|
+
/**
|
|
3747
|
+
* Whether to show download button instead of share button
|
|
3748
|
+
*/
|
|
3749
|
+
showDownload: _angular_core.InputSignal<boolean>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Emitted when download button is clicked
|
|
3752
|
+
*/
|
|
3753
|
+
downloadClick: _angular_core.OutputEmitterRef<void>;
|
|
3736
3754
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsMobileLightboxHeaderComponent, never>;
|
|
3737
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileLightboxHeaderComponent, "ds-mobile-lightbox-header", never, { "author": { "alias": "author"; "required": false; "isSignal": true; }; }, { "closeClick": "closeClick"; "shareClick": "shareClick"; }, never, never, true, never>;
|
|
3755
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileLightboxHeaderComponent, "ds-mobile-lightbox-header", never, { "author": { "alias": "author"; "required": false; "isSignal": true; }; "showDownload": { "alias": "showDownload"; "required": false; "isSignal": true; }; }, { "closeClick": "closeClick"; "shareClick": "shareClick"; "downloadClick": "downloadClick"; }, never, never, true, never>;
|
|
3738
3756
|
}
|
|
3739
3757
|
|
|
3740
3758
|
/**
|