@fluxhub/fluxhub-lib 1.0.248 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +12 -7
- 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/image_preview.html +41 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm2015/lib/controls/image_preview.js +12 -7
- package/esm5/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm5/lib/controls/image_preview.js +12 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +13 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image_preview.d.ts +1 -0
- 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 { 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,
|
|
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.
|
|
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.
|
|
16372
|
+
if (this.u.image_thumbnail.length > 0 && this.m_preview) {
|
|
16372
16373
|
this.toggle_up();
|
|
16373
16374
|
}
|
|
16374
16375
|
};
|
|
@@ -16420,16 +16421,18 @@ var image_preview = /** @class */ (function () {
|
|
|
16420
16421
|
this._preview_c = false;
|
|
16421
16422
|
if (this.u != null)
|
|
16422
16423
|
if (this.u.image_thumbnail != null)
|
|
16423
|
-
if (this.u.image_thumbnail.length > 0)
|
|
16424
|
+
if (this.u.image_thumbnail.length > 0) {
|
|
16424
16425
|
if (this.u.image_thumbnail[0] != this.u.image_original[0])
|
|
16425
16426
|
this._preview_c = true;
|
|
16426
|
-
|
|
16427
|
-
|
|
16427
|
+
console.log('this._preview_c ', this._preview_c);
|
|
16428
|
+
}
|
|
16429
|
+
console.log('this.photo_c ', this.photo_c);
|
|
16430
|
+
this.m_preview = this._preview_c;
|
|
16428
16431
|
};
|
|
16429
16432
|
image_preview.decorators = [
|
|
16430
16433
|
{ type: Component, args: [{
|
|
16431
16434
|
selector: 'image_preview',
|
|
16432
|
-
template: "\n \n<fh-image-viewer (init)=\"init()\" [
|
|
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",
|
|
16433
16436
|
styles: ["\n\n "]
|
|
16434
16437
|
}] }
|
|
16435
16438
|
];
|
|
@@ -16457,7 +16460,9 @@ var ToggleFullscreenDirective = /** @class */ (function () {
|
|
|
16457
16460
|
*/
|
|
16458
16461
|
function () {
|
|
16459
16462
|
if (this.isFullscreen && enabled) {
|
|
16460
|
-
|
|
16463
|
+
if (this.el != null)
|
|
16464
|
+
if (this.el.nativeElement != null)
|
|
16465
|
+
request(this.el.nativeElement);
|
|
16461
16466
|
}
|
|
16462
16467
|
else if (enabled) {
|
|
16463
16468
|
exit();
|