@fluxhub/fluxhub-lib 1.0.252 → 1.0.254

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 { DomSanitizer } from '@angular/platform-browser';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Inject, PLATFORM_ID, Directive, Pipe, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Pipe, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, 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';
@@ -16995,15 +16995,16 @@ var FHViewerComponent = /** @class */ (function () {
16995
16995
  this.triggerConfigBinding();
16996
16996
  };
16997
16997
  /**
16998
- * @param {?} event
16998
+ * @param {?} $event
16999
16999
  * @return {?}
17000
17000
  */
17001
17001
  FHViewerComponent.prototype.nextImage = /**
17002
- * @param {?} event
17002
+ * @param {?} $event
17003
17003
  * @return {?}
17004
17004
  */
17005
- function (event) {
17006
- if (this.canNavigate(event) && this.index < this.src.length - 1) {
17005
+ function ($event) {
17006
+ console.log('this.src.length ', this.src.length);
17007
+ if (this.index < this.src.length - 1) {
17007
17008
  this.loading = true;
17008
17009
  this.index++;
17009
17010
  this.triggerIndexBinding();
@@ -17011,15 +17012,15 @@ var FHViewerComponent = /** @class */ (function () {
17011
17012
  }
17012
17013
  };
17013
17014
  /**
17014
- * @param {?} event
17015
+ * @param {?} $event
17015
17016
  * @return {?}
17016
17017
  */
17017
17018
  FHViewerComponent.prototype.prevImage = /**
17018
- * @param {?} event
17019
+ * @param {?} $event
17019
17020
  * @return {?}
17020
17021
  */
17021
- function (event) {
17022
- if (this.canNavigate(event) && this.index > 0) {
17022
+ function ($event) {
17023
+ if (this.index > 0) {
17023
17024
  this.loading = true;
17024
17025
  this.index--;
17025
17026
  this.triggerIndexBinding();
@@ -17312,7 +17313,6 @@ var fhimagepreview = /** @class */ (function () {
17312
17313
  this._preview_c = false;
17313
17314
  this.m_preview = false;
17314
17315
  this.m_init = false;
17315
- this.th_image = "";
17316
17316
  this.config = {
17317
17317
  btnClass: 'default',
17318
17318
  // The CSS class(es) that will apply to the buttons
@@ -17558,21 +17558,15 @@ var fhimagepreview = /** @class */ (function () {
17558
17558
  * @return {?}
17559
17559
  */
17560
17560
  function () {
17561
- console.log('INIT ', this._u);
17562
17561
  this._preview_c = false;
17563
17562
  if (this._u != null) {
17564
- console.log('this._u.image_thumbnail ', this._u.image_thumbnail);
17565
17563
  if (this._u.image_thumbnail != null) {
17566
- console.log('this._u.image_thumbnail.length ', this._u.image_thumbnail.length);
17564
+ if (this._u.image_original == null)
17565
+ this._u.image_original = this._u.image_thumbnail;
17567
17566
  if (this._u.image_thumbnail.length > 0) {
17568
17567
  if (this._u.image_thumbnail[0] != this._u.image_original[0])
17569
17568
  this._preview_c = true;
17570
- this.th_image = this._u.image_thumbnail[0];
17571
- console.log('this._preview_c ', this._preview_c);
17572
- console.log('this.th_image ', this.th_image);
17573
17569
  this.m_init = true;
17574
- console.log('_preview_c ', this._preview_c);
17575
- console.log('init ', this.m_init);
17576
17570
  this.m_preview = this._preview_c;
17577
17571
  }
17578
17572
  }