@fluxhub/fluxhub-lib 1.0.232 → 1.0.234

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.
@@ -16332,6 +16332,38 @@ var ImageViewerComponent = /** @class */ (function () {
16332
16332
  var image_preview = /** @class */ (function () {
16333
16333
  function image_preview() {
16334
16334
  this._preview = true;
16335
+ this.config = {
16336
+ btnClass: 'default',
16337
+ // The CSS class(es) that will apply to the buttons
16338
+ zoomFactor: 0.1,
16339
+ // The amount that the scale will be increased by
16340
+ containerBackgroundColor: '#ccc',
16341
+ // The color to use for the background. This can provided in hex, or rgb(a).
16342
+ wheelZoom: true,
16343
+ // If true, the mouse wheel can be used to zoom in
16344
+ allowFullscreen: false,
16345
+ // If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
16346
+ allowKeyboardNavigation: true,
16347
+ // If true, the left / right arrow keys can be used for navigation
16348
+ btnIcons: {
16349
+ // The icon classes that will apply to the buttons. By default, font-awesome is used.
16350
+ zoomIn: 'fa fa-plus',
16351
+ zoomOut: 'fa fa-minus',
16352
+ rotateClockwise: 'fa fa-repeat',
16353
+ rotateCounterClockwise: 'fa fa-undo',
16354
+ next: 'fa fa-arrow-right',
16355
+ prev: 'fa fa-arrow-left',
16356
+ fullscreen: 'fa fa-arrows-alt',
16357
+ },
16358
+ btnShow: {
16359
+ zoomIn: false,
16360
+ zoomOut: false,
16361
+ rotateClockwise: false,
16362
+ rotateCounterClockwise: false,
16363
+ next: false,
16364
+ prev: false
16365
+ }
16366
+ };
16335
16367
  this.u = null;
16336
16368
  this.already_open = false;
16337
16369
  this.config_photo = {
@@ -16408,7 +16440,7 @@ var image_preview = /** @class */ (function () {
16408
16440
  function () {
16409
16441
  this.photo_c.src = [];
16410
16442
  this.photo_c.src.push(this.u.image_original[0]);
16411
- this.photo_c.config = this.config_photo_big;
16443
+ this.config = this.config_photo_big;
16412
16444
  this.photo_c.toggleFullscreen();
16413
16445
  this.already_open = true;
16414
16446
  };
@@ -16455,7 +16487,7 @@ var image_preview = /** @class */ (function () {
16455
16487
  image_preview.decorators = [
16456
16488
  { type: Component, args: [{
16457
16489
  selector: 'image_preview',
16458
- 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\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
16490
+ 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 [(ngModel)]=\"config\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
16459
16491
  styles: ["\n\n "]
16460
16492
  }] }
16461
16493
  ];