@fluxhub/fluxhub-lib 1.0.248 → 1.0.250
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/bundles/fluxhub-fluxhub-lib.umd.js +12 -7
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/image_preview.html +41 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm2015/lib/controls/image_preview.js +12 -7
- package/esm5/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm5/lib/controls/image_preview.js +12 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +13 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image_preview.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13618,6 +13618,7 @@
|
|
|
13618
13618
|
function image_preview() {
|
|
13619
13619
|
this._preview = false;
|
|
13620
13620
|
this._preview_c = false;
|
|
13621
|
+
this.m_preview = false;
|
|
13621
13622
|
this.config = {
|
|
13622
13623
|
btnClass: 'default',
|
|
13623
13624
|
// The CSS class(es) that will apply to the buttons
|
|
@@ -13695,7 +13696,7 @@
|
|
|
13695
13696
|
console.log('togglwe up');
|
|
13696
13697
|
this.photo_c.src = [];
|
|
13697
13698
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
13698
|
-
this.
|
|
13699
|
+
this.m_preview = false;
|
|
13699
13700
|
this.config = this.config_photo_big;
|
|
13700
13701
|
//this.photo_c.toggleFullscreen()
|
|
13701
13702
|
this.already_open = true;
|
|
@@ -13712,7 +13713,7 @@
|
|
|
13712
13713
|
console.log('preview ', this.photo_c);
|
|
13713
13714
|
if (this.u != null)
|
|
13714
13715
|
if (this.u.image_thumbnail != null)
|
|
13715
|
-
if (this.u.image_thumbnail.length > 0 && this.
|
|
13716
|
+
if (this.u.image_thumbnail.length > 0 && this.m_preview) {
|
|
13716
13717
|
this.toggle_up();
|
|
13717
13718
|
}
|
|
13718
13719
|
};
|
|
@@ -13762,16 +13763,18 @@
|
|
|
13762
13763
|
this._preview_c = false;
|
|
13763
13764
|
if (this.u != null)
|
|
13764
13765
|
if (this.u.image_thumbnail != null)
|
|
13765
|
-
if (this.u.image_thumbnail.length > 0)
|
|
13766
|
+
if (this.u.image_thumbnail.length > 0) {
|
|
13766
13767
|
if (this.u.image_thumbnail[0] != this.u.image_original[0])
|
|
13767
13768
|
this._preview_c = true;
|
|
13768
|
-
|
|
13769
|
-
|
|
13769
|
+
console.log('this._preview_c ', this._preview_c);
|
|
13770
|
+
}
|
|
13771
|
+
console.log('this.photo_c ', this.photo_c);
|
|
13772
|
+
this.m_preview = this._preview_c;
|
|
13770
13773
|
};
|
|
13771
13774
|
image_preview.decorators = [
|
|
13772
13775
|
{ type: i0.Component, args: [{
|
|
13773
13776
|
selector: 'image_preview',
|
|
13774
|
-
template: "\n \n<fh-image-viewer (init)=\"init()\" [
|
|
13777
|
+
template: "\n \n<fh-image-viewer (init)=\"init()\" [preview]=\"preview\" (fullScreenEvent)=\"fullScreenEvent()\" [config]=\"config_photo_big\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c [src]=\"u.image_thumbnail\" index=\"0\"></fh-image-viewer>\n \n\n",
|
|
13775
13778
|
styles: ["\n\n "]
|
|
13776
13779
|
}] }
|
|
13777
13780
|
];
|
|
@@ -14141,7 +14144,9 @@
|
|
|
14141
14144
|
*/
|
|
14142
14145
|
function () {
|
|
14143
14146
|
if (this.isFullscreen && screenfull.enabled) {
|
|
14144
|
-
|
|
14147
|
+
if (this.el != null)
|
|
14148
|
+
if (this.el.nativeElement != null)
|
|
14149
|
+
screenfull.request(this.el.nativeElement);
|
|
14145
14150
|
}
|
|
14146
14151
|
else if (screenfull.enabled) {
|
|
14147
14152
|
screenfull.exit();
|