@fluxhub/fluxhub-lib 1.0.238 → 1.0.240

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.
@@ -16194,8 +16194,9 @@ var ImageViewerComponent = /** @class */ (function () {
16194
16194
  */
16195
16195
  function () {
16196
16196
  this.fullscreen = !this.fullscreen;
16197
- if (this.fullscreen)
16197
+ if (this.fullscreen) {
16198
16198
  this.fullScreenEvent.emit();
16199
+ }
16199
16200
  if (!this.fullscreen) {
16200
16201
  this.reset();
16201
16202
  }
@@ -16332,7 +16333,8 @@ var ImageViewerComponent = /** @class */ (function () {
16332
16333
  */
16333
16334
  var image_preview = /** @class */ (function () {
16334
16335
  function image_preview() {
16335
- this._preview = true;
16336
+ this._preview = false;
16337
+ this._preview_c = false;
16336
16338
  this.config = {
16337
16339
  btnClass: 'default',
16338
16340
  // The CSS class(es) that will apply to the buttons
@@ -16479,10 +16481,8 @@ var image_preview = /** @class */ (function () {
16479
16481
  * @return {?}
16480
16482
  */
16481
16483
  function (preview) {
16482
- if (!preview)
16483
- this.config = this.config_photo_big;
16484
- else
16485
- this.config = this.config_photo;
16484
+ // this.config=this.config_photo_big;
16485
+ //else this.config=this.config_photo;
16486
16486
  this._preview = preview;
16487
16487
  },
16488
16488
  enumerable: true,
@@ -16495,12 +16495,17 @@ var image_preview = /** @class */ (function () {
16495
16495
  * @return {?}
16496
16496
  */
16497
16497
  function () {
16498
- this.config = this.config_photo;
16498
+ this.config = this.config_photo_big;
16499
+ this._preview_c = false;
16500
+ if (!this.u)
16501
+ if (this.u.image_thumbnail != null)
16502
+ if (this.u.image_thumbnail != this.u.image_original)
16503
+ this._preview_c = true;
16499
16504
  };
16500
16505
  image_preview.decorators = [
16501
16506
  { type: Component, args: [{
16502
16507
  selector: 'image_preview',
16503
- template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"_preview\" (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",
16508
+ 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",
16504
16509
  styles: ["\n\n "]
16505
16510
  }] }
16506
16511
  ];