@fluxhub/fluxhub-lib 1.0.236 → 1.0.238

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.
Files changed (80) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +22 -31
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/docs/components/ApprovaGridComponent.html +1 -1
  6. package/docs/components/ComboBoxEditor.html +1 -1
  7. package/docs/components/CurrencyComponent.html +1 -1
  8. package/docs/components/DateComponent.html +1 -1
  9. package/docs/components/DtPick.html +1 -1
  10. package/docs/components/FHAutoCompleteComponent.html +1 -1
  11. package/docs/components/FHComboboxComponent.html +1 -1
  12. package/docs/components/FHConfirmComponent.html +1 -1
  13. package/docs/components/FHCurrencyFieldComponent.html +1 -1
  14. package/docs/components/FHDatePickerComponent.html +1 -1
  15. package/docs/components/FHGridComponent.html +1 -1
  16. package/docs/components/FHGridJSONComponent.html +1 -1
  17. package/docs/components/FHGridToolBarComponent.html +1 -1
  18. package/docs/components/FHListComponent.html +1 -1
  19. package/docs/components/FHListPick.html +1 -1
  20. package/docs/components/FHLogPanelComponent.html +1 -1
  21. package/docs/components/FHMdReader.html +1 -1
  22. package/docs/components/FHNumericFieldComponent.html +1 -1
  23. package/docs/components/FHPickListComponent.html +1 -1
  24. package/docs/components/FHRichText.html +1 -1
  25. package/docs/components/FHTimePickerComponent.html +1 -1
  26. package/docs/components/FHUploadComponent.html +1 -1
  27. package/docs/components/FHUploadPanelComponent.html +1 -1
  28. package/docs/components/FHUserFieldComponent.html +1 -1
  29. package/docs/components/FHUserPickerComponent.html +1 -1
  30. package/docs/components/FHWinComboSelect.html +1 -1
  31. package/docs/components/FSInput.html +1 -1
  32. package/docs/components/FSResult.html +1 -1
  33. package/docs/components/FormBuilderComponent.html +1 -1
  34. package/docs/components/FormExecuterComponent.html +1 -1
  35. package/docs/components/ImageViewerComponent.html +25 -79
  36. package/docs/components/NumericEditorComponent.html +1 -1
  37. package/docs/components/QGParam.html +1 -1
  38. package/docs/components/QGResult.html +1 -1
  39. package/docs/components/QParam.html +1 -1
  40. package/docs/components/QResult.html +1 -1
  41. package/docs/components/TextAreaEditor.html +1 -1
  42. package/docs/components/WinAskButtonsComponent.html +1 -1
  43. package/docs/components/WinAskNumberComponent.html +1 -1
  44. package/docs/components/WinAskTextBigComponent.html +1 -1
  45. package/docs/components/WinAskTextComponent.html +1 -1
  46. package/docs/components/WinOutputComponent.html +1 -1
  47. package/docs/components/WinWait.html +1 -1
  48. package/docs/components/image_preview.html +77 -10
  49. package/docs/components/win_assegna.html +1 -1
  50. package/docs/components/win_commenti.html +1 -1
  51. package/docs/components/win_commento_sel_notif.html +1 -1
  52. package/docs/components/win_conferma.html +1 -1
  53. package/docs/components/win_grid_help.html +1 -1
  54. package/docs/components/win_info_doc.html +1 -1
  55. package/docs/components/win_log.html +1 -1
  56. package/docs/components/win_mappa.html +1 -1
  57. package/docs/components/win_recupera_doc.html +1 -1
  58. package/docs/components/win_riassegna_select_level.html +1 -1
  59. package/docs/components/win_riassegna_select_user.html +1 -1
  60. package/docs/components/win_salva_annulla.html +1 -1
  61. package/docs/components/win_select_canale.html +1 -1
  62. package/docs/components/win_select_level.html +1 -1
  63. package/docs/components/win_show_image.html +1 -1
  64. package/docs/components/win_time_slider.html +1 -1
  65. package/docs/components/win_uploads.html +1 -1
  66. package/docs/components/wkf_header_bar.html +1 -1
  67. package/docs/coverage.html +1 -1
  68. package/docs/js/search/search_index.js +2 -2
  69. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +12 -15
  70. package/esm2015/lib/controls/image_preview.js +14 -14
  71. package/esm5/lib/controls/image-viewer/image-viewer.component.js +12 -20
  72. package/esm5/lib/controls/image_preview.js +16 -7
  73. package/fesm2015/fluxhub-fluxhub-lib.js +20 -36
  74. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  75. package/fesm5/fluxhub-fluxhub-lib.js +22 -31
  76. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  77. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  78. package/lib/controls/image-viewer/image-viewer.component.d.ts +3 -3
  79. package/lib/controls/image_preview.d.ts +2 -1
  80. package/package.json +6 -6
@@ -15400,21 +15400,6 @@ win_show_image.ctorParameters = () => [
15400
15400
  { type: MatDialogRef }
15401
15401
  ];
15402
15402
 
15403
- /**
15404
- * @fileoverview added by tsickle
15405
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15406
- */
15407
- class CustomEvent {
15408
- /**
15409
- * @param {?} name
15410
- * @param {?} imageIndex
15411
- */
15412
- constructor(name, imageIndex) {
15413
- this.name = name;
15414
- this.imageIndex = imageIndex;
15415
- }
15416
- }
15417
-
15418
15403
  /**
15419
15404
  * @fileoverview added by tsickle
15420
15405
  * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -15452,9 +15437,10 @@ class ImageViewerComponent {
15452
15437
  constructor(moduleConfig) {
15453
15438
  this.moduleConfig = moduleConfig;
15454
15439
  this.index = 0;
15440
+ this.preview = false;
15455
15441
  this.indexChange = new EventEmitter();
15456
15442
  this.configChange = new EventEmitter();
15457
- this.customEvent = new EventEmitter();
15443
+ this.fullScreenEvent = new EventEmitter();
15458
15444
  this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
15459
15445
  this.fullscreen = false;
15460
15446
  this.loading = false; // true;
@@ -15577,6 +15563,8 @@ class ImageViewerComponent {
15577
15563
  */
15578
15564
  toggleFullscreen() {
15579
15565
  this.fullscreen = !this.fullscreen;
15566
+ if (this.fullscreen)
15567
+ this.fullScreenEvent.emit();
15580
15568
  if (!this.fullscreen) {
15581
15569
  this.reset();
15582
15570
  }
@@ -15593,14 +15581,6 @@ class ImageViewerComponent {
15593
15581
  triggerConfigBinding() {
15594
15582
  this.configChange.next(this.config);
15595
15583
  }
15596
- /**
15597
- * @param {?} name
15598
- * @param {?} imageIndex
15599
- * @return {?}
15600
- */
15601
- fireCustomEvent(name, imageIndex) {
15602
- this.customEvent.emit(new CustomEvent(name, imageIndex));
15603
- }
15604
15584
  /**
15605
15585
  * @return {?}
15606
15586
  */
@@ -15661,8 +15641,8 @@ class ImageViewerComponent {
15661
15641
  }
15662
15642
  ImageViewerComponent.decorators = [
15663
15643
  { type: Component, args: [{
15664
- selector: 'ngx-image-viewer',
15665
- template: "<div [ngxToggleFullscreen]=\"fullscreen\" class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [ngStyle]=\"style\" alt=\"Image not found...\" (dragstart)=\"onDragStart($event)\" (load)=\"onLoad()\" (loadstart)=\"onLoadStart()\"/>\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateCounterClockwise\" (click)=\"rotateCounterClockwise()\">\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateClockwise\" (click)=\"rotateClockwise()\">\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomOut\" (click)=\"zoomOut()\">\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomIn\" (click)=\"zoomIn()\">\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngFor=\"let cBtn of config.customBtns\" (click)=\"fireCustomEvent(cBtn.name, index)\">\n <span [class]=\"cBtn.icon\"></span>\n </button>\n\n <button type=\"button\" id=\"ngx-fs-btn\" [class]=\"config.btnClass\" (click)=\"toggleFullscreen()\" *ngIf=\"config.allowFullscreen\">\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"prevImage($event)\" [disabled]=\"index === 0\">\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"nextImage($event)\" [disabled]=\"index === src.length - 1\">\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n",
15644
+ selector: 'fh-image-viewer',
15645
+ template: "<div [ngxToggleFullscreen]=\"fullscreen\" class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [ngStyle]=\"style\" alt=\"Image not found...\" (dragstart)=\"onDragStart($event)\" (load)=\"onLoad()\" (loadstart)=\"onLoadStart()\"/>\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\" (click)=\"rotateCounterClockwise()\">\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateClockwise && !preview\" (click)=\"rotateClockwise()\">\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomOut && !preview\" (click)=\"zoomOut()\">\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomIn && !preview\" (click)=\"zoomIn()\">\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n\n\n <button type=\"button\" id=\"ngx-fs-btn\" [class]=\"config.btnClass\" (click)=\"toggleFullscreen()\" *ngIf=\"config.allowFullscreen\">\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"prevImage($event)\" [disabled]=\"index === 0\">\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"nextImage($event)\" [disabled]=\"index === src.length - 1\">\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n",
15666
15646
  styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;left:0;right:0;top:0;bottom:0;width:60px;height:60px;margin:auto;padding:10px;background-color:rgba(0,0,0,.4);border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc #ccc #222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:2s linear infinite rotation;animation:2s linear infinite rotation}@keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}"]
15667
15647
  }] }
15668
15648
  ];
@@ -15673,10 +15653,11 @@ ImageViewerComponent.ctorParameters = () => [
15673
15653
  ImageViewerComponent.propDecorators = {
15674
15654
  src: [{ type: Input }],
15675
15655
  index: [{ type: Input }],
15656
+ preview: [{ type: Input }],
15676
15657
  config: [{ type: Input }],
15677
15658
  indexChange: [{ type: Output }],
15678
15659
  configChange: [{ type: Output }],
15679
- customEvent: [{ type: Output }],
15660
+ fullScreenEvent: [{ type: Output }],
15680
15661
  nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
15681
15662
  prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
15682
15663
  onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
@@ -15796,9 +15777,18 @@ class image_preview {
15796
15777
  this.photo_c.src = [];
15797
15778
  this.photo_c.src.push(this.u.image_original[0]);
15798
15779
  this.config = this.config_photo_big;
15799
- this.photo_c.toggleFullscreen();
15780
+ //this.photo_c.toggleFullscreen()
15800
15781
  this.already_open = true;
15801
15782
  }
15783
+ /**
15784
+ * @return {?}
15785
+ */
15786
+ fullScreenEvent() {
15787
+ if (this.u != null)
15788
+ if (this.u.image_thumbnail != null)
15789
+ if (this.u.image_thumbnail.length > 0 && this.preview && !this.already_open)
15790
+ this.toggle_up();
15791
+ }
15802
15792
  /**
15803
15793
  * @param {?} event
15804
15794
  * @return {?}
@@ -15833,15 +15823,9 @@ image_preview.decorators = [
15833
15823
  { type: Component, args: [{
15834
15824
  selector: 'image_preview',
15835
15825
  template: `
15836
- <div fxLayout="row" fxLayoutAlign="end center" [hidden]="already_open">
15837
-
15838
- <button type="button" class="default" (click)="toggle_up()" *ngIf="u?.image_thumbnail?.length>0 && preview">
15839
- <span class="fa fa-arrows-alt"></span>
15840
- </button>
15841
-
15842
- </div>
15826
+
15843
15827
 
15844
- <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>
15828
+ <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>
15845
15829
 
15846
15830
  </div>
15847
15831
  `,