@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.
@@ -13655,6 +13655,38 @@
13655
13655
  var image_preview = /** @class */ (function () {
13656
13656
  function image_preview() {
13657
13657
  this._preview = true;
13658
+ this.config = {
13659
+ btnClass: 'default',
13660
+ // The CSS class(es) that will apply to the buttons
13661
+ zoomFactor: 0.1,
13662
+ // The amount that the scale will be increased by
13663
+ containerBackgroundColor: '#ccc',
13664
+ // The color to use for the background. This can provided in hex, or rgb(a).
13665
+ wheelZoom: true,
13666
+ // If true, the mouse wheel can be used to zoom in
13667
+ allowFullscreen: false,
13668
+ // If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
13669
+ allowKeyboardNavigation: true,
13670
+ // If true, the left / right arrow keys can be used for navigation
13671
+ btnIcons: {
13672
+ // The icon classes that will apply to the buttons. By default, font-awesome is used.
13673
+ zoomIn: 'fa fa-plus',
13674
+ zoomOut: 'fa fa-minus',
13675
+ rotateClockwise: 'fa fa-repeat',
13676
+ rotateCounterClockwise: 'fa fa-undo',
13677
+ next: 'fa fa-arrow-right',
13678
+ prev: 'fa fa-arrow-left',
13679
+ fullscreen: 'fa fa-arrows-alt',
13680
+ },
13681
+ btnShow: {
13682
+ zoomIn: false,
13683
+ zoomOut: false,
13684
+ rotateClockwise: false,
13685
+ rotateCounterClockwise: false,
13686
+ next: false,
13687
+ prev: false
13688
+ }
13689
+ };
13658
13690
  this.u = null;
13659
13691
  this.already_open = false;
13660
13692
  this.config_photo = {
@@ -13731,7 +13763,7 @@
13731
13763
  function () {
13732
13764
  this.photo_c.src = [];
13733
13765
  this.photo_c.src.push(this.u.image_original[0]);
13734
- this.photo_c.config = this.config_photo_big;
13766
+ this.config = this.config_photo_big;
13735
13767
  this.photo_c.toggleFullscreen();
13736
13768
  this.already_open = true;
13737
13769
  };
@@ -13776,7 +13808,7 @@
13776
13808
  image_preview.decorators = [
13777
13809
  { type: i0.Component, args: [{
13778
13810
  selector: 'image_preview',
13779
- 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",
13811
+ 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",
13780
13812
  styles: ["\n\n "]
13781
13813
  }] }
13782
13814
  ];