@fluxhub/fluxhub-lib 1.0.229 → 1.0.230

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, Directive, Component, Input, ElementRef, Inject, PLATFORM_ID, Output, EventEmitter, ViewChild, 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';
@@ -16330,6 +16330,7 @@ var ImageViewerComponent = /** @class */ (function () {
16330
16330
  */
16331
16331
  var image_preview = /** @class */ (function () {
16332
16332
  function image_preview() {
16333
+ this.preview = true;
16333
16334
  this.u = null;
16334
16335
  this.already_open = false;
16335
16336
  this.config_photo = {
@@ -16404,10 +16405,8 @@ var image_preview = /** @class */ (function () {
16404
16405
  * @return {?}
16405
16406
  */
16406
16407
  function () {
16407
- console.log('photo_c ', this.photo_c);
16408
16408
  this.photo_c.src = [];
16409
16409
  this.photo_c.src.push(this.u.image_original[0]);
16410
- console.log('src ', this.photo_c.src);
16411
16410
  this.photo_c.config = this.config_photo_big;
16412
16411
  this.photo_c.toggleFullscreen();
16413
16412
  this.already_open = true;
@@ -16429,15 +16428,18 @@ var image_preview = /** @class */ (function () {
16429
16428
  * @return {?}
16430
16429
  */
16431
16430
  function () {
16431
+ if (!this.preview)
16432
+ this.photo_c.config = this.config_photo_big;
16432
16433
  };
16433
16434
  image_preview.decorators = [
16434
16435
  { type: Component, args: [{
16435
16436
  selector: 'image_preview',
16436
- template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"config_photo\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
16437
+ template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0 && preview\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"config_photo\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
16437
16438
  styles: ["\n\n "]
16438
16439
  }] }
16439
16440
  ];
16440
16441
  image_preview.propDecorators = {
16442
+ preview: [{ type: Input }],
16441
16443
  u: [{ type: Input }],
16442
16444
  photo_c: [{ type: ViewChild, args: ['photo_c',] }]
16443
16445
  };