@fluxhub/fluxhub-lib 1.0.253 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +9 -17
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHViewerComponent.html +2 -2
- package/docs/components/fhimagepreview.html +0 -32
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhimagepreview.js +1 -12
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +8 -7
- package/esm5/lib/controls/fhimagepreview.js +1 -12
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +10 -9
- package/fesm2015/fluxhub-fluxhub-lib.js +7 -15
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +10 -18
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhimagepreview.d.ts +0 -1
- package/lib/controls/image-viewer/image-viewer.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
|
|
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.
|
|
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,23 +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
17564
|
if (this._u.image_original == null)
|
|
17567
17565
|
this._u.image_original = this._u.image_thumbnail;
|
|
17568
|
-
console.log('this._u.image_thumbnail.length ', this._u.image_thumbnail.length);
|
|
17569
17566
|
if (this._u.image_thumbnail.length > 0) {
|
|
17570
17567
|
if (this._u.image_thumbnail[0] != this._u.image_original[0])
|
|
17571
17568
|
this._preview_c = true;
|
|
17572
|
-
this.th_image = this._u.image_thumbnail[0];
|
|
17573
|
-
console.log('this._preview_c ', this._preview_c);
|
|
17574
|
-
console.log('this.th_image ', this.th_image);
|
|
17575
17569
|
this.m_init = true;
|
|
17576
|
-
console.log('_preview_c ', this._preview_c);
|
|
17577
|
-
console.log('init ', this.m_init);
|
|
17578
17570
|
this.m_preview = this._preview_c;
|
|
17579
17571
|
}
|
|
17580
17572
|
}
|