@fluxhub/fluxhub-lib 1.0.249 → 1.0.251
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 +11 -9
- 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 +7 -4
- package/esm2015/lib/controls/image_preview.js +8 -7
- package/esm5/lib/controls/image-viewer/fullscreen.directive.js +7 -4
- package/esm5/lib/controls/image_preview.js +8 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +12 -10
- 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
|
};
|
|
@@ -16425,14 +16426,12 @@ var image_preview = /** @class */ (function () {
|
|
|
16425
16426
|
this._preview_c = true;
|
|
16426
16427
|
console.log('this._preview_c ', this._preview_c);
|
|
16427
16428
|
}
|
|
16428
|
-
|
|
16429
|
-
if (this.photo_c != null)
|
|
16430
|
-
this.photo_c.preview = this._preview_c;
|
|
16429
|
+
this.m_preview = this._preview_c;
|
|
16431
16430
|
};
|
|
16432
16431
|
image_preview.decorators = [
|
|
16433
16432
|
{ type: Component, args: [{
|
|
16434
16433
|
selector: 'image_preview',
|
|
16435
|
-
template: "\n \n<fh-image-viewer (init)=\"init()\" [
|
|
16434
|
+
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",
|
|
16436
16435
|
styles: ["\n\n "]
|
|
16437
16436
|
}] }
|
|
16438
16437
|
];
|
|
@@ -16460,9 +16459,12 @@ var ToggleFullscreenDirective = /** @class */ (function () {
|
|
|
16460
16459
|
*/
|
|
16461
16460
|
function () {
|
|
16462
16461
|
if (this.isFullscreen && enabled) {
|
|
16463
|
-
if
|
|
16464
|
-
|
|
16465
|
-
|
|
16462
|
+
// if(this.el!=null) if(this.el.nativeElement!=null)
|
|
16463
|
+
try {
|
|
16464
|
+
request(this.el.nativeElement);
|
|
16465
|
+
}
|
|
16466
|
+
catch (e) {
|
|
16467
|
+
}
|
|
16466
16468
|
}
|
|
16467
16469
|
else if (enabled) {
|
|
16468
16470
|
exit();
|