@fluxhub/fluxhub-lib 1.0.249 → 1.0.251

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.
@@ -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.photo_c.preview = false;
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.photo_c.preview) {
13716
+ if (this.u.image_thumbnail.length > 0 && this.m_preview) {
13716
13717
  this.toggle_up();
13717
13718
  }
13718
13719
  };
@@ -13767,14 +13768,12 @@
13767
13768
  this._preview_c = true;
13768
13769
  console.log('this._preview_c ', this._preview_c);
13769
13770
  }
13770
- console.log('this.photo_c ', this.photo_c);
13771
- if (this.photo_c != null)
13772
- this.photo_c.preview = this._preview_c;
13771
+ this.m_preview = this._preview_c;
13773
13772
  };
13774
13773
  image_preview.decorators = [
13775
13774
  { type: i0.Component, args: [{
13776
13775
  selector: 'image_preview',
13777
- template: "\n \n<fh-image-viewer (init)=\"init()\" [style.height]=\"\" (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",
13776
+ 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",
13778
13777
  styles: ["\n\n "]
13779
13778
  }] }
13780
13779
  ];
@@ -14144,9 +14143,12 @@
14144
14143
  */
14145
14144
  function () {
14146
14145
  if (this.isFullscreen && screenfull.enabled) {
14147
- if (this.el != null)
14148
- if (this.el.nativeElement != null)
14149
- screenfull.request(this.el.nativeElement);
14146
+ // if(this.el!=null) if(this.el.nativeElement!=null)
14147
+ try {
14148
+ screenfull.request(this.el.nativeElement);
14149
+ }
14150
+ catch (e) {
14151
+ }
14150
14152
  }
14151
14153
  else if (screenfull.enabled) {
14152
14154
  screenfull.exit();