@fluxhub/fluxhub-lib 1.0.229 → 1.0.230
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 -3
- 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 +24 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image_preview.js +8 -4
- package/esm5/lib/controls/image_preview.js +8 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +5 -3
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +6 -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 +1 -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;
|
|
@@ -13753,15 +13752,18 @@
|
|
|
13753
13752
|
* @return {?}
|
|
13754
13753
|
*/
|
|
13755
13754
|
function () {
|
|
13755
|
+
if (!this.preview)
|
|
13756
|
+
this.photo_c.config = this.config_photo_big;
|
|
13756
13757
|
};
|
|
13757
13758
|
image_preview.decorators = [
|
|
13758
13759
|
{ type: i0.Component, args: [{
|
|
13759
13760
|
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",
|
|
13761
|
+
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
13762
|
styles: ["\n\n "]
|
|
13762
13763
|
}] }
|
|
13763
13764
|
];
|
|
13764
13765
|
image_preview.propDecorators = {
|
|
13766
|
+
preview: [{ type: i0.Input }],
|
|
13765
13767
|
u: [{ type: i0.Input }],
|
|
13766
13768
|
photo_c: [{ type: i0.ViewChild, args: ['photo_c',] }]
|
|
13767
13769
|
};
|