@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
|
@@ -13654,6 +13654,7 @@
|
|
|
13654
13654
|
*/
|
|
13655
13655
|
var image_preview = /** @class */ (function () {
|
|
13656
13656
|
function image_preview() {
|
|
13657
|
+
this._preview = true;
|
|
13657
13658
|
this.u = null;
|
|
13658
13659
|
this.already_open = false;
|
|
13659
13660
|
this.config_photo = {
|
|
@@ -13728,10 +13729,8 @@
|
|
|
13728
13729
|
* @return {?}
|
|
13729
13730
|
*/
|
|
13730
13731
|
function () {
|
|
13731
|
-
console.log('photo_c ', this.photo_c);
|
|
13732
13732
|
this.photo_c.src = [];
|
|
13733
13733
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
13734
|
-
console.log('src ', this.photo_c.src);
|
|
13735
13734
|
this.photo_c.config = this.config_photo_big;
|
|
13736
13735
|
this.photo_c.toggleFullscreen();
|
|
13737
13736
|
this.already_open = true;
|
|
@@ -13746,6 +13745,25 @@
|
|
|
13746
13745
|
*/
|
|
13747
13746
|
function (event) {
|
|
13748
13747
|
};
|
|
13748
|
+
Object.defineProperty(image_preview.prototype, "preview", {
|
|
13749
|
+
get: /**
|
|
13750
|
+
* @return {?}
|
|
13751
|
+
*/ function () {
|
|
13752
|
+
return this._preview;
|
|
13753
|
+
},
|
|
13754
|
+
set: /**
|
|
13755
|
+
* @param {?} preview
|
|
13756
|
+
* @return {?}
|
|
13757
|
+
*/ function (preview) {
|
|
13758
|
+
if (!preview)
|
|
13759
|
+
this.photo_c.config = this.config_photo_big;
|
|
13760
|
+
else
|
|
13761
|
+
this.photo_c.config = this.config_photo;
|
|
13762
|
+
this._preview = preview;
|
|
13763
|
+
},
|
|
13764
|
+
enumerable: true,
|
|
13765
|
+
configurable: true
|
|
13766
|
+
});
|
|
13749
13767
|
/**
|
|
13750
13768
|
* @return {?}
|
|
13751
13769
|
*/
|
|
@@ -13757,13 +13775,14 @@
|
|
|
13757
13775
|
image_preview.decorators = [
|
|
13758
13776
|
{ type: i0.Component, args: [{
|
|
13759
13777
|
selector: 'image_preview',
|
|
13760
|
-
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",
|
|
13778
|
+
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",
|
|
13761
13779
|
styles: ["\n\n "]
|
|
13762
13780
|
}] }
|
|
13763
13781
|
];
|
|
13764
13782
|
image_preview.propDecorators = {
|
|
13765
13783
|
u: [{ type: i0.Input }],
|
|
13766
|
-
photo_c: [{ type: i0.ViewChild, args: ['photo_c',] }]
|
|
13784
|
+
photo_c: [{ type: i0.ViewChild, args: ['photo_c',] }],
|
|
13785
|
+
preview: [{ type: i0.Input }]
|
|
13767
13786
|
};
|
|
13768
13787
|
return image_preview;
|
|
13769
13788
|
}());
|