@fluxhub/fluxhub-lib 1.0.249 → 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.
@@ -34,7 +34,7 @@ import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteM
34
34
  import { __read, __assign, __extends } from 'tslib';
35
35
  import { enabled, request, exit } from 'screenfull';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Input, ElementRef, Inject, PLATFORM_ID, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Input, ElementRef, Inject, PLATFORM_ID, ViewChild, Output, EventEmitter, forwardRef, Pipe, ViewContainerRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -16274,6 +16274,7 @@ var image_preview = /** @class */ (function () {
16274
16274
  function image_preview() {
16275
16275
  this._preview = false;
16276
16276
  this._preview_c = false;
16277
+ this.m_preview = false;
16277
16278
  this.config = {
16278
16279
  btnClass: 'default',
16279
16280
  // The CSS class(es) that will apply to the buttons
@@ -16351,7 +16352,7 @@ var image_preview = /** @class */ (function () {
16351
16352
  console.log('togglwe up');
16352
16353
  this.photo_c.src = [];
16353
16354
  this.photo_c.src.push(this.u.image_original[0]);
16354
- this.photo_c.preview = false;
16355
+ this.m_preview = false;
16355
16356
  this.config = this.config_photo_big;
16356
16357
  //this.photo_c.toggleFullscreen()
16357
16358
  this.already_open = true;
@@ -16368,7 +16369,7 @@ var image_preview = /** @class */ (function () {
16368
16369
  console.log('preview ', this.photo_c);
16369
16370
  if (this.u != null)
16370
16371
  if (this.u.image_thumbnail != null)
16371
- if (this.u.image_thumbnail.length > 0 && this.photo_c.preview) {
16372
+ if (this.u.image_thumbnail.length > 0 && this.m_preview) {
16372
16373
  this.toggle_up();
16373
16374
  }
16374
16375
  };
@@ -16426,13 +16427,12 @@ var image_preview = /** @class */ (function () {
16426
16427
  console.log('this._preview_c ', this._preview_c);
16427
16428
  }
16428
16429
  console.log('this.photo_c ', this.photo_c);
16429
- if (this.photo_c != null)
16430
- this.photo_c.preview = this._preview_c;
16430
+ this.m_preview = this._preview_c;
16431
16431
  };
16432
16432
  image_preview.decorators = [
16433
16433
  { type: Component, args: [{
16434
16434
  selector: 'image_preview',
16435
- 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",
16435
+ 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",
16436
16436
  styles: ["\n\n "]
16437
16437
  }] }
16438
16438
  ];