@fluxhub/fluxhub-lib 1.0.228 → 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 -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 +25 -3
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image_preview.js +9 -6
- package/esm5/lib/controls/image_preview.js +8 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +7 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +6 -5
- 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,11 +13729,8 @@
|
|
|
13728
13729
|
* @return {?}
|
|
13729
13730
|
*/
|
|
13730
13731
|
function () {
|
|
13731
|
-
console.log('u ', this.u);
|
|
13732
|
-
console.log('photo_c ', this.photo_c);
|
|
13733
13732
|
this.photo_c.src = [];
|
|
13734
13733
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
13735
|
-
console.log('src ', this.photo_c.src);
|
|
13736
13734
|
this.photo_c.config = this.config_photo_big;
|
|
13737
13735
|
this.photo_c.toggleFullscreen();
|
|
13738
13736
|
this.already_open = true;
|
|
@@ -13754,15 +13752,18 @@
|
|
|
13754
13752
|
* @return {?}
|
|
13755
13753
|
*/
|
|
13756
13754
|
function () {
|
|
13755
|
+
if (!this.preview)
|
|
13756
|
+
this.photo_c.config = this.config_photo_big;
|
|
13757
13757
|
};
|
|
13758
13758
|
image_preview.decorators = [
|
|
13759
13759
|
{ type: i0.Component, args: [{
|
|
13760
13760
|
selector: 'image_preview',
|
|
13761
|
-
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" >\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\" #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",
|
|
13762
13762
|
styles: ["\n\n "]
|
|
13763
13763
|
}] }
|
|
13764
13764
|
];
|
|
13765
13765
|
image_preview.propDecorators = {
|
|
13766
|
+
preview: [{ type: i0.Input }],
|
|
13766
13767
|
u: [{ type: i0.Input }],
|
|
13767
13768
|
photo_c: [{ type: i0.ViewChild, args: ['photo_c',] }]
|
|
13768
13769
|
};
|