@fluxhub/fluxhub-lib 1.0.249 → 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 +5 -5
- 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_preview.js +8 -6
- package/esm5/lib/controls/image_preview.js +8 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +6 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +6 -6
- 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
|
};
|
|
@@ -16426,13 +16427,12 @@ var image_preview = /** @class */ (function () {
|
|
|
16426
16427
|
console.log('this._preview_c ', this._preview_c);
|
|
16427
16428
|
}
|
|
16428
16429
|
console.log('this.photo_c ', this.photo_c);
|
|
16429
|
-
|
|
16430
|
-
this.photo_c.preview = this._preview_c;
|
|
16430
|
+
this.m_preview = this._preview_c;
|
|
16431
16431
|
};
|
|
16432
16432
|
image_preview.decorators = [
|
|
16433
16433
|
{ type: Component, args: [{
|
|
16434
16434
|
selector: 'image_preview',
|
|
16435
|
-
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",
|
|
16436
16436
|
styles: ["\n\n "]
|
|
16437
16437
|
}] }
|
|
16438
16438
|
];
|