@fluxhub/fluxhub-lib 1.0.229 → 1.0.231
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 +23 -4
- 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 +99 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image_preview.js +27 -5
- package/esm5/lib/controls/image_preview.js +31 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +25 -4
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image_preview.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16330,6 +16330,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16330
16330
|
*/
|
|
16331
16331
|
var image_preview = /** @class */ (function () {
|
|
16332
16332
|
function image_preview() {
|
|
16333
|
+
this._preview = true;
|
|
16333
16334
|
this.u = null;
|
|
16334
16335
|
this.already_open = false;
|
|
16335
16336
|
this.config_photo = {
|
|
@@ -16404,10 +16405,8 @@ var image_preview = /** @class */ (function () {
|
|
|
16404
16405
|
* @return {?}
|
|
16405
16406
|
*/
|
|
16406
16407
|
function () {
|
|
16407
|
-
console.log('photo_c ', this.photo_c);
|
|
16408
16408
|
this.photo_c.src = [];
|
|
16409
16409
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
16410
|
-
console.log('src ', this.photo_c.src);
|
|
16411
16410
|
this.photo_c.config = this.config_photo_big;
|
|
16412
16411
|
this.photo_c.toggleFullscreen();
|
|
16413
16412
|
this.already_open = true;
|
|
@@ -16422,6 +16421,27 @@ var image_preview = /** @class */ (function () {
|
|
|
16422
16421
|
*/
|
|
16423
16422
|
function (event) {
|
|
16424
16423
|
};
|
|
16424
|
+
Object.defineProperty(image_preview.prototype, "preview", {
|
|
16425
|
+
get: /**
|
|
16426
|
+
* @return {?}
|
|
16427
|
+
*/
|
|
16428
|
+
function () {
|
|
16429
|
+
return this._preview;
|
|
16430
|
+
},
|
|
16431
|
+
set: /**
|
|
16432
|
+
* @param {?} preview
|
|
16433
|
+
* @return {?}
|
|
16434
|
+
*/
|
|
16435
|
+
function (preview) {
|
|
16436
|
+
if (!preview)
|
|
16437
|
+
this.photo_c.config = this.config_photo_big;
|
|
16438
|
+
else
|
|
16439
|
+
this.photo_c.config = this.config_photo;
|
|
16440
|
+
this._preview = preview;
|
|
16441
|
+
},
|
|
16442
|
+
enumerable: true,
|
|
16443
|
+
configurable: true
|
|
16444
|
+
});
|
|
16425
16445
|
/**
|
|
16426
16446
|
* @return {?}
|
|
16427
16447
|
*/
|
|
@@ -16433,13 +16453,14 @@ var image_preview = /** @class */ (function () {
|
|
|
16433
16453
|
image_preview.decorators = [
|
|
16434
16454
|
{ type: Component, args: [{
|
|
16435
16455
|
selector: 'image_preview',
|
|
16436
|
-
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"config_photo\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
|
|
16456
|
+
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0 && preview\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"config_photo\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
|
|
16437
16457
|
styles: ["\n\n "]
|
|
16438
16458
|
}] }
|
|
16439
16459
|
];
|
|
16440
16460
|
image_preview.propDecorators = {
|
|
16441
16461
|
u: [{ type: Input }],
|
|
16442
|
-
photo_c: [{ type: ViewChild, args: ['photo_c',] }]
|
|
16462
|
+
photo_c: [{ type: ViewChild, args: ['photo_c',] }],
|
|
16463
|
+
preview: [{ type: Input }]
|
|
16443
16464
|
};
|
|
16444
16465
|
return image_preview;
|
|
16445
16466
|
}());
|