@fluxhub/fluxhub-lib 1.0.238 → 1.0.239
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 +13 -8
- 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 +40 -3
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +4 -2
- package/esm2015/lib/controls/image_preview.js +13 -8
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +4 -2
- package/esm5/lib/controls/image_preview.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14 -9
- 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
|
@@ -13680,7 +13680,8 @@
|
|
|
13680
13680
|
*/
|
|
13681
13681
|
var image_preview = /** @class */ (function () {
|
|
13682
13682
|
function image_preview() {
|
|
13683
|
-
this._preview =
|
|
13683
|
+
this._preview = false;
|
|
13684
|
+
this._preview_c = false;
|
|
13684
13685
|
this.config = {
|
|
13685
13686
|
btnClass: 'default',
|
|
13686
13687
|
// The CSS class(es) that will apply to the buttons
|
|
@@ -13825,10 +13826,8 @@
|
|
|
13825
13826
|
* @param {?} preview
|
|
13826
13827
|
* @return {?}
|
|
13827
13828
|
*/ function (preview) {
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
else
|
|
13831
|
-
this.config = this.config_photo;
|
|
13829
|
+
// this.config=this.config_photo_big;
|
|
13830
|
+
//else this.config=this.config_photo;
|
|
13832
13831
|
this._preview = preview;
|
|
13833
13832
|
},
|
|
13834
13833
|
enumerable: true,
|
|
@@ -13841,12 +13840,16 @@
|
|
|
13841
13840
|
* @return {?}
|
|
13842
13841
|
*/
|
|
13843
13842
|
function () {
|
|
13844
|
-
this.config = this.
|
|
13843
|
+
this.config = this.config_photo_big;
|
|
13844
|
+
if (!this.u)
|
|
13845
|
+
if (this.u.image_thumbnail != null)
|
|
13846
|
+
if (this.u.image_thumbnail != this.u.image_original)
|
|
13847
|
+
this._preview_c = true;
|
|
13845
13848
|
};
|
|
13846
13849
|
image_preview.decorators = [
|
|
13847
13850
|
{ type: i0.Component, args: [{
|
|
13848
13851
|
selector: 'image_preview',
|
|
13849
|
-
template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"
|
|
13852
|
+
template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"_preview_c\" (fullScreenEvent)=\"fullScreenEvent()\" [(ngModel)]=\"config\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></fh-image-viewer>\n \n </div>\n",
|
|
13850
13853
|
styles: ["\n\n "]
|
|
13851
13854
|
}] }
|
|
13852
13855
|
];
|
|
@@ -14062,8 +14065,10 @@
|
|
|
14062
14065
|
*/
|
|
14063
14066
|
function () {
|
|
14064
14067
|
this.fullscreen = !this.fullscreen;
|
|
14065
|
-
if (this.fullscreen)
|
|
14068
|
+
if (this.fullscreen) {
|
|
14066
14069
|
this.fullScreenEvent.emit();
|
|
14070
|
+
this.preview = false;
|
|
14071
|
+
}
|
|
14067
14072
|
if (!this.fullscreen) {
|
|
14068
14073
|
this.reset();
|
|
14069
14074
|
}
|