@fluxhub/fluxhub-lib 1.0.238 → 1.0.239
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 +13 -8
- 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 +40 -3
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +4 -2
- package/esm2015/lib/controls/image_preview.js +13 -8
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +4 -2
- package/esm5/lib/controls/image_preview.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14 -9
- 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';
|
|
@@ -16194,8 +16194,10 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16194
16194
|
*/
|
|
16195
16195
|
function () {
|
|
16196
16196
|
this.fullscreen = !this.fullscreen;
|
|
16197
|
-
if (this.fullscreen)
|
|
16197
|
+
if (this.fullscreen) {
|
|
16198
16198
|
this.fullScreenEvent.emit();
|
|
16199
|
+
this.preview = false;
|
|
16200
|
+
}
|
|
16199
16201
|
if (!this.fullscreen) {
|
|
16200
16202
|
this.reset();
|
|
16201
16203
|
}
|
|
@@ -16332,7 +16334,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16332
16334
|
*/
|
|
16333
16335
|
var image_preview = /** @class */ (function () {
|
|
16334
16336
|
function image_preview() {
|
|
16335
|
-
this._preview =
|
|
16337
|
+
this._preview = false;
|
|
16338
|
+
this._preview_c = false;
|
|
16336
16339
|
this.config = {
|
|
16337
16340
|
btnClass: 'default',
|
|
16338
16341
|
// The CSS class(es) that will apply to the buttons
|
|
@@ -16479,10 +16482,8 @@ var image_preview = /** @class */ (function () {
|
|
|
16479
16482
|
* @return {?}
|
|
16480
16483
|
*/
|
|
16481
16484
|
function (preview) {
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
else
|
|
16485
|
-
this.config = this.config_photo;
|
|
16485
|
+
// this.config=this.config_photo_big;
|
|
16486
|
+
//else this.config=this.config_photo;
|
|
16486
16487
|
this._preview = preview;
|
|
16487
16488
|
},
|
|
16488
16489
|
enumerable: true,
|
|
@@ -16495,12 +16496,16 @@ var image_preview = /** @class */ (function () {
|
|
|
16495
16496
|
* @return {?}
|
|
16496
16497
|
*/
|
|
16497
16498
|
function () {
|
|
16498
|
-
this.config = this.
|
|
16499
|
+
this.config = this.config_photo_big;
|
|
16500
|
+
if (!this.u)
|
|
16501
|
+
if (this.u.image_thumbnail != null)
|
|
16502
|
+
if (this.u.image_thumbnail != this.u.image_original)
|
|
16503
|
+
this._preview_c = true;
|
|
16499
16504
|
};
|
|
16500
16505
|
image_preview.decorators = [
|
|
16501
16506
|
{ type: Component, args: [{
|
|
16502
16507
|
selector: 'image_preview',
|
|
16503
|
-
template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"
|
|
16508
|
+
template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"_preview_c\" (fullScreenEvent)=\"fullScreenEvent()\" [(ngModel)]=\"config\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></fh-image-viewer>\n \n </div>\n",
|
|
16504
16509
|
styles: ["\n\n "]
|
|
16505
16510
|
}] }
|
|
16506
16511
|
];
|