@fluxhub/fluxhub-lib 1.0.228 → 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,11 +16405,8 @@ var image_preview = /** @class */ (function () {
16404
16405
  * @return {?}
16405
16406
  */
16406
16407
  function () {
16407
- console.log('u ', this.u);
16408
- console.log('photo_c ', this.photo_c);
16409
16408
  this.photo_c.src = [];
16410
16409
  this.photo_c.src.push(this.u.image_original[0]);
16411
- console.log('src ', this.photo_c.src);
16412
16410
  this.photo_c.config = this.config_photo_big;
16413
16411
  this.photo_c.toggleFullscreen();
16414
16412
  this.already_open = true;
@@ -16430,15 +16428,18 @@ var image_preview = /** @class */ (function () {
16430
16428
  * @return {?}
16431
16429
  */
16432
16430
  function () {
16431
+ if (!this.preview)
16432
+ this.photo_c.config = this.config_photo_big;
16433
16433
  };
16434
16434
  image_preview.decorators = [
16435
16435
  { type: Component, args: [{
16436
16436
  selector: 'image_preview',
16437
- template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" >\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\" #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",
16438
16438
  styles: ["\n\n "]
16439
16439
  }] }
16440
16440
  ];
16441
16441
  image_preview.propDecorators = {
16442
+ preview: [{ type: Input }],
16442
16443
  u: [{ type: Input }],
16443
16444
  photo_c: [{ type: ViewChild, args: ['photo_c',] }]
16444
16445
  };