@fluxhub/fluxhub-lib 1.0.225 → 1.0.227

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 (109) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +605 -37
  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/classes/CustomEvent.html +278 -0
  6. package/docs/components/ApprovaGridComponent.html +2 -2
  7. package/docs/components/ComboBoxEditor.html +2 -2
  8. package/docs/components/CurrencyComponent.html +2 -2
  9. package/docs/components/DateComponent.html +2 -2
  10. package/docs/components/DtPick.html +2 -2
  11. package/docs/components/FHAutoCompleteComponent.html +2 -2
  12. package/docs/components/FHComboboxComponent.html +2 -2
  13. package/docs/components/FHConfirmComponent.html +2 -2
  14. package/docs/components/FHCurrencyFieldComponent.html +2 -2
  15. package/docs/components/FHDatePickerComponent.html +2 -2
  16. package/docs/components/FHGridComponent.html +2 -2
  17. package/docs/components/FHGridJSONComponent.html +2 -2
  18. package/docs/components/FHGridToolBarComponent.html +2 -2
  19. package/docs/components/FHListComponent.html +2 -2
  20. package/docs/components/FHListPick.html +2 -2
  21. package/docs/components/FHLogPanelComponent.html +2 -2
  22. package/docs/components/FHMdReader.html +2 -2
  23. package/docs/components/FHNumericFieldComponent.html +2 -2
  24. package/docs/components/FHPickListComponent.html +2 -2
  25. package/docs/components/FHRichText.html +2 -2
  26. package/docs/components/FHTimePickerComponent.html +2 -2
  27. package/docs/components/FHUploadComponent.html +2 -2
  28. package/docs/components/FHUploadPanelComponent.html +2 -2
  29. package/docs/components/FHUserFieldComponent.html +2 -2
  30. package/docs/components/FHUserPickerComponent.html +2 -2
  31. package/docs/components/FHWinComboSelect.html +2 -2
  32. package/docs/components/FSInput.html +2 -2
  33. package/docs/components/FSResult.html +2 -2
  34. package/docs/components/FormBuilderComponent.html +2 -2
  35. package/docs/components/FormExecuterComponent.html +2 -2
  36. package/docs/components/ImageViewerComponent.html +1519 -0
  37. package/docs/components/NumericEditorComponent.html +2 -2
  38. package/docs/components/QGParam.html +2 -2
  39. package/docs/components/QGResult.html +2 -2
  40. package/docs/components/QParam.html +2 -2
  41. package/docs/components/QResult.html +2 -2
  42. package/docs/components/TextAreaEditor.html +2 -2
  43. package/docs/components/WinAskButtonsComponent.html +2 -2
  44. package/docs/components/WinAskNumberComponent.html +2 -2
  45. package/docs/components/WinAskTextBigComponent.html +2 -2
  46. package/docs/components/WinAskTextComponent.html +2 -2
  47. package/docs/components/WinOutputComponent.html +2 -2
  48. package/docs/components/WinWait.html +2 -2
  49. package/docs/components/image_preview.html +662 -0
  50. package/docs/components/win_assegna.html +2 -2
  51. package/docs/components/win_commenti.html +2 -2
  52. package/docs/components/win_commento_sel_notif.html +2 -2
  53. package/docs/components/win_conferma.html +2 -2
  54. package/docs/components/win_grid_help.html +2 -2
  55. package/docs/components/win_info_doc.html +2 -2
  56. package/docs/components/win_log.html +2 -2
  57. package/docs/components/win_mappa.html +2 -2
  58. package/docs/components/win_recupera_doc.html +2 -2
  59. package/docs/components/win_riassegna_select_level.html +2 -2
  60. package/docs/components/win_riassegna_select_user.html +2 -2
  61. package/docs/components/win_salva_annulla.html +2 -2
  62. package/docs/components/win_select_canale.html +2 -2
  63. package/docs/components/win_select_level.html +2 -2
  64. package/docs/components/win_show_image.html +469 -0
  65. package/docs/components/win_time_slider.html +2 -2
  66. package/docs/components/win_uploads.html +2 -2
  67. package/docs/components/wkf_header_bar.html +2 -2
  68. package/docs/coverage.html +112 -0
  69. package/docs/dependencies.html +3 -1
  70. package/docs/directives/ToggleFullscreenDirective.html +297 -0
  71. package/docs/graph/dependencies.svg +704 -632
  72. package/docs/interfaces/ImageViewerConfig.html +491 -0
  73. package/docs/js/menu-wc.js +1 -1
  74. package/docs/js/search/search_index.js +2 -2
  75. package/docs/miscellaneous/variables.html +64 -0
  76. package/docs/modules/FluxhubLibModule/dependencies.svg +704 -632
  77. package/docs/modules/FluxhubLibModule.html +725 -632
  78. package/docs/overview.html +708 -636
  79. package/esm2015/fluxhub-fluxhub-lib.js +17 -15
  80. package/esm2015/lib/auth_guard.js +17 -17
  81. package/esm2015/lib/controls/image-viewer/fullscreen.directive.js +47 -0
  82. package/esm2015/lib/controls/image-viewer/image-viewer-config.model.js +45 -0
  83. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +326 -0
  84. package/esm2015/lib/controls/image_preview.js +138 -0
  85. package/esm2015/lib/controls/win_show_image.js +50 -0
  86. package/esm2015/lib/fluxhub-lib.module.js +10 -6
  87. package/esm2015/public_api.js +3 -1
  88. package/esm5/fluxhub-fluxhub-lib.js +17 -15
  89. package/esm5/lib/auth_guard.js +17 -17
  90. package/esm5/lib/controls/image-viewer/fullscreen.directive.js +49 -0
  91. package/esm5/lib/controls/image-viewer/image-viewer-config.model.js +43 -0
  92. package/esm5/lib/controls/image-viewer/image-viewer.component.js +405 -0
  93. package/esm5/lib/controls/image_preview.js +136 -0
  94. package/esm5/lib/controls/win_show_image.js +42 -0
  95. package/esm5/lib/fluxhub-lib.module.js +10 -6
  96. package/esm5/public_api.js +3 -1
  97. package/fesm2015/fluxhub-fluxhub-lib.js +506 -23
  98. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  99. package/fesm5/fluxhub-fluxhub-lib.js +570 -24
  100. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  101. package/fluxhub-fluxhub-lib.d.ts +16 -13
  102. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  103. package/lib/controls/image-viewer/fullscreen.directive.d.ts +7 -0
  104. package/lib/controls/image-viewer/image-viewer-config.model.d.ts +34 -0
  105. package/lib/controls/image-viewer/image-viewer.component.d.ts +49 -0
  106. package/lib/controls/image_preview.d.ts +60 -0
  107. package/lib/controls/win_show_image.d.ts +9 -0
  108. package/package.json +1 -2
  109. package/public_api.d.ts +2 -0
@@ -31,9 +31,9 @@ import { Driver, NgForageCache, NgForage } from 'ngforage';
31
31
  import { TranslateModule } from '@ngx-translate/core';
32
32
  import { DragulaService, DragulaModule } from 'ng2-dragula';
33
33
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
34
- import { ImageViewerModule } from 'ngx-image-viewer';
34
+ import { enabled, request, exit } from 'screenfull';
35
35
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ElementRef, Pipe, ViewContainerRef, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Input, ElementRef, Inject, PLATFORM_ID, Output, EventEmitter, ViewChild, forwardRef, Optional, HostListener, Pipe, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
37
  import { Http } from '@angular/http';
38
38
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
39
  import { ToastrService } from 'ngx-toastr';
@@ -15345,6 +15345,488 @@ WinAskButtonsComponent.propDecorators = {
15345
15345
  button_config: [{ type: Input }]
15346
15346
  };
15347
15347
 
15348
+ /**
15349
+ * @fileoverview added by tsickle
15350
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15351
+ */
15352
+ class win_show_image {
15353
+ /**
15354
+ * @param {?} dialogRef
15355
+ */
15356
+ constructor(dialogRef) {
15357
+ this.dialogRef = dialogRef;
15358
+ this.imageIndex = 0;
15359
+ this.images = [];
15360
+ }
15361
+ /**
15362
+ * @return {?}
15363
+ */
15364
+ ngOnInit() {
15365
+ }
15366
+ }
15367
+ win_show_image.decorators = [
15368
+ { type: Component, args: [{
15369
+ template: `
15370
+
15371
+
15372
+ <!-- <ngx-image-viewer [src]="images" [(index)]="imageIndex"></ngx-image-viewer>-->
15373
+
15374
+ <mat-dialog-actions>
15375
+ <button mat-raised-button (click)="dialogRef.close('')">CHIUDI</button>
15376
+ </mat-dialog-actions>
15377
+ `,
15378
+ styles: [`
15379
+
15380
+ `]
15381
+ }] }
15382
+ ];
15383
+ /** @nocollapse */
15384
+ win_show_image.ctorParameters = () => [
15385
+ { type: MatDialogRef }
15386
+ ];
15387
+
15388
+ /**
15389
+ * @fileoverview added by tsickle
15390
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15391
+ */
15392
+ class CustomEvent {
15393
+ /**
15394
+ * @param {?} name
15395
+ * @param {?} imageIndex
15396
+ */
15397
+ constructor(name, imageIndex) {
15398
+ this.name = name;
15399
+ this.imageIndex = imageIndex;
15400
+ }
15401
+ }
15402
+
15403
+ /**
15404
+ * @fileoverview added by tsickle
15405
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15406
+ */
15407
+ /** @type {?} */
15408
+ const DEFAULT_CONFIG = {
15409
+ btnClass: 'default',
15410
+ zoomFactor: 0.1,
15411
+ containerBackgroundColor: '#ccc',
15412
+ wheelZoom: false,
15413
+ allowFullscreen: true,
15414
+ allowKeyboardNavigation: true,
15415
+ btnShow: {
15416
+ zoomIn: true,
15417
+ zoomOut: true,
15418
+ rotateClockwise: true,
15419
+ rotateCounterClockwise: true,
15420
+ next: true,
15421
+ prev: true
15422
+ },
15423
+ btnIcons: {
15424
+ zoomIn: 'fa fa-plus',
15425
+ zoomOut: 'fa fa-minus',
15426
+ rotateClockwise: 'fa fa-repeat',
15427
+ rotateCounterClockwise: 'fa fa-undo',
15428
+ next: 'fa fa-arrow-right',
15429
+ prev: 'fa fa-arrow-left',
15430
+ fullscreen: 'fa fa-arrows-alt',
15431
+ }
15432
+ };
15433
+ class ImageViewerComponent {
15434
+ /**
15435
+ * @param {?} moduleConfig
15436
+ */
15437
+ constructor(moduleConfig) {
15438
+ this.moduleConfig = moduleConfig;
15439
+ this.index = 0;
15440
+ this.indexChange = new EventEmitter();
15441
+ this.configChange = new EventEmitter();
15442
+ this.customEvent = new EventEmitter();
15443
+ this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
15444
+ this.fullscreen = false;
15445
+ this.loading = true;
15446
+ this.scale = 1;
15447
+ this.rotation = 0;
15448
+ this.translateX = 0;
15449
+ this.translateY = 0;
15450
+ this.hovered = false;
15451
+ }
15452
+ /**
15453
+ * @return {?}
15454
+ */
15455
+ ngOnInit() {
15456
+ /** @type {?} */
15457
+ const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
15458
+ this.config = this.mergeConfig(merged, this.config);
15459
+ this.triggerConfigBinding();
15460
+ }
15461
+ /**
15462
+ * @param {?} event
15463
+ * @return {?}
15464
+ */
15465
+ nextImage(event) {
15466
+ if (this.canNavigate(event) && this.index < this.src.length - 1) {
15467
+ this.loading = true;
15468
+ this.index++;
15469
+ this.triggerIndexBinding();
15470
+ this.reset();
15471
+ }
15472
+ }
15473
+ /**
15474
+ * @param {?} event
15475
+ * @return {?}
15476
+ */
15477
+ prevImage(event) {
15478
+ if (this.canNavigate(event) && this.index > 0) {
15479
+ this.loading = true;
15480
+ this.index--;
15481
+ this.triggerIndexBinding();
15482
+ this.reset();
15483
+ }
15484
+ }
15485
+ /**
15486
+ * @return {?}
15487
+ */
15488
+ zoomIn() {
15489
+ this.scale *= (1 + this.config.zoomFactor);
15490
+ this.updateStyle();
15491
+ }
15492
+ /**
15493
+ * @return {?}
15494
+ */
15495
+ zoomOut() {
15496
+ if (this.scale > this.config.zoomFactor) {
15497
+ this.scale /= (1 + this.config.zoomFactor);
15498
+ }
15499
+ this.updateStyle();
15500
+ }
15501
+ /**
15502
+ * @param {?} evt
15503
+ * @return {?}
15504
+ */
15505
+ scrollZoom(evt) {
15506
+ if (this.config.wheelZoom) {
15507
+ evt.deltaY > 0 ? this.zoomOut() : this.zoomIn();
15508
+ return false;
15509
+ }
15510
+ }
15511
+ /**
15512
+ * @return {?}
15513
+ */
15514
+ rotateClockwise() {
15515
+ this.rotation += 90;
15516
+ this.updateStyle();
15517
+ }
15518
+ /**
15519
+ * @return {?}
15520
+ */
15521
+ rotateCounterClockwise() {
15522
+ this.rotation -= 90;
15523
+ this.updateStyle();
15524
+ }
15525
+ /**
15526
+ * @return {?}
15527
+ */
15528
+ onLoad() {
15529
+ this.loading = false;
15530
+ }
15531
+ /**
15532
+ * @return {?}
15533
+ */
15534
+ onLoadStart() {
15535
+ this.loading = true;
15536
+ }
15537
+ /**
15538
+ * @param {?} evt
15539
+ * @return {?}
15540
+ */
15541
+ onDragOver(evt) {
15542
+ this.translateX += (evt.clientX - this.prevX);
15543
+ this.translateY += (evt.clientY - this.prevY);
15544
+ this.prevX = evt.clientX;
15545
+ this.prevY = evt.clientY;
15546
+ this.updateStyle();
15547
+ }
15548
+ /**
15549
+ * @param {?} evt
15550
+ * @return {?}
15551
+ */
15552
+ onDragStart(evt) {
15553
+ if (evt.dataTransfer && evt.dataTransfer.setDragImage) {
15554
+ evt.dataTransfer.setDragImage(evt.target.nextElementSibling, 0, 0);
15555
+ }
15556
+ this.prevX = evt.clientX;
15557
+ this.prevY = evt.clientY;
15558
+ }
15559
+ /**
15560
+ * @return {?}
15561
+ */
15562
+ toggleFullscreen() {
15563
+ this.fullscreen = !this.fullscreen;
15564
+ if (!this.fullscreen) {
15565
+ this.reset();
15566
+ }
15567
+ }
15568
+ /**
15569
+ * @return {?}
15570
+ */
15571
+ triggerIndexBinding() {
15572
+ this.indexChange.emit(this.index);
15573
+ }
15574
+ /**
15575
+ * @return {?}
15576
+ */
15577
+ triggerConfigBinding() {
15578
+ this.configChange.next(this.config);
15579
+ }
15580
+ /**
15581
+ * @param {?} name
15582
+ * @param {?} imageIndex
15583
+ * @return {?}
15584
+ */
15585
+ fireCustomEvent(name, imageIndex) {
15586
+ this.customEvent.emit(new CustomEvent(name, imageIndex));
15587
+ }
15588
+ /**
15589
+ * @return {?}
15590
+ */
15591
+ reset() {
15592
+ this.scale = 1;
15593
+ this.rotation = 0;
15594
+ this.translateX = 0;
15595
+ this.translateY = 0;
15596
+ this.updateStyle();
15597
+ }
15598
+ /**
15599
+ * @return {?}
15600
+ */
15601
+ onMouseOver() {
15602
+ this.hovered = true;
15603
+ }
15604
+ /**
15605
+ * @return {?}
15606
+ */
15607
+ onMouseLeave() {
15608
+ this.hovered = false;
15609
+ }
15610
+ /**
15611
+ * @private
15612
+ * @param {?} event
15613
+ * @return {?}
15614
+ */
15615
+ canNavigate(event) {
15616
+ return event == null || (this.config.allowKeyboardNavigation && this.hovered);
15617
+ }
15618
+ /**
15619
+ * @private
15620
+ * @return {?}
15621
+ */
15622
+ updateStyle() {
15623
+ this.style.transform = `translate(${this.translateX}px, ${this.translateY}px) rotate(${this.rotation}deg) scale(${this.scale})`;
15624
+ this.style.msTransform = this.style.transform;
15625
+ this.style.webkitTransform = this.style.transform;
15626
+ this.style.oTransform = this.style.transform;
15627
+ }
15628
+ /**
15629
+ * @private
15630
+ * @param {?} defaultValues
15631
+ * @param {?} overrideValues
15632
+ * @return {?}
15633
+ */
15634
+ mergeConfig(defaultValues, overrideValues) {
15635
+ /** @type {?} */
15636
+ let result = Object.assign({}, defaultValues);
15637
+ if (overrideValues) {
15638
+ result = Object.assign({}, defaultValues, overrideValues);
15639
+ if (overrideValues.btnIcons) {
15640
+ result.btnIcons = Object.assign({}, defaultValues.btnIcons, overrideValues.btnIcons);
15641
+ }
15642
+ }
15643
+ return result;
15644
+ }
15645
+ }
15646
+ ImageViewerComponent.decorators = [
15647
+ { type: Component, args: [{
15648
+ selector: 'ngx-image-viewer',
15649
+ 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",
15650
+ 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)}}"]
15651
+ }] }
15652
+ ];
15653
+ /** @nocollapse */
15654
+ ImageViewerComponent.ctorParameters = () => [
15655
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: ['config',] }] }
15656
+ ];
15657
+ ImageViewerComponent.propDecorators = {
15658
+ src: [{ type: Input }],
15659
+ index: [{ type: Input }],
15660
+ config: [{ type: Input }],
15661
+ indexChange: [{ type: Output }],
15662
+ configChange: [{ type: Output }],
15663
+ customEvent: [{ type: Output }],
15664
+ nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
15665
+ prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
15666
+ onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
15667
+ onMouseLeave: [{ type: HostListener, args: ['mouseleave',] }]
15668
+ };
15669
+
15670
+ /**
15671
+ * @fileoverview added by tsickle
15672
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15673
+ */
15674
+ class image_preview {
15675
+ constructor() {
15676
+ this.u = null;
15677
+ this.already_open = false;
15678
+ this.config_photo = {
15679
+ btnClass: 'default',
15680
+ // The CSS class(es) that will apply to the buttons
15681
+ zoomFactor: 0.1,
15682
+ // The amount that the scale will be increased by
15683
+ containerBackgroundColor: '#ccc',
15684
+ // The color to use for the background. This can provided in hex, or rgb(a).
15685
+ wheelZoom: true,
15686
+ // If true, the mouse wheel can be used to zoom in
15687
+ allowFullscreen: false,
15688
+ // If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
15689
+ allowKeyboardNavigation: true,
15690
+ // If true, the left / right arrow keys can be used for navigation
15691
+ btnIcons: {
15692
+ // The icon classes that will apply to the buttons. By default, font-awesome is used.
15693
+ zoomIn: 'fa fa-plus',
15694
+ zoomOut: 'fa fa-minus',
15695
+ rotateClockwise: 'fa fa-repeat',
15696
+ rotateCounterClockwise: 'fa fa-undo',
15697
+ next: 'fa fa-arrow-right',
15698
+ prev: 'fa fa-arrow-left',
15699
+ fullscreen: 'fa fa-arrows-alt',
15700
+ },
15701
+ btnShow: {
15702
+ zoomIn: false,
15703
+ zoomOut: false,
15704
+ rotateClockwise: false,
15705
+ rotateCounterClockwise: false,
15706
+ next: false,
15707
+ prev: false
15708
+ }
15709
+ };
15710
+ this.config_photo_big = {
15711
+ btnClass: 'default',
15712
+ // The CSS class(es) that will apply to the buttons
15713
+ zoomFactor: 0.1,
15714
+ // The amount that the scale will be increased by
15715
+ containerBackgroundColor: '#ccc',
15716
+ // The color to use for the background. This can provided in hex, or rgb(a).
15717
+ wheelZoom: true,
15718
+ // If true, the mouse wheel can be used to zoom in
15719
+ allowFullscreen: true,
15720
+ // If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
15721
+ allowKeyboardNavigation: true,
15722
+ // If true, the left / right arrow keys can be used for navigation
15723
+ btnIcons: {
15724
+ // The icon classes that will apply to the buttons. By default, font-awesome is used.
15725
+ zoomIn: 'fa fa-plus',
15726
+ zoomOut: 'fa fa-minus',
15727
+ rotateClockwise: 'fa fa-repeat',
15728
+ rotateCounterClockwise: 'fa fa-undo',
15729
+ next: 'fa fa-arrow-right',
15730
+ prev: 'fa fa-arrow-left',
15731
+ fullscreen: 'fa fa-arrows-alt',
15732
+ },
15733
+ btnShow: {
15734
+ zoomIn: true,
15735
+ zoomOut: true,
15736
+ rotateClockwise: true,
15737
+ rotateCounterClockwise: true,
15738
+ next: true,
15739
+ prev: true
15740
+ }
15741
+ };
15742
+ }
15743
+ /**
15744
+ * @return {?}
15745
+ */
15746
+ toggle_up() {
15747
+ console.log('u ', this.u);
15748
+ console.log('photo_c ', this.photo_c);
15749
+ this.photo_c.src = [];
15750
+ this.photo_c.src.push(this.u.image_original[0]);
15751
+ console.log('src ', this.photo_c.src);
15752
+ this.photo_c.config = this.config_photo_big;
15753
+ this.photo_c.toggleFullscreen();
15754
+ this.already_open = true;
15755
+ }
15756
+ /**
15757
+ * @param {?} event
15758
+ * @return {?}
15759
+ */
15760
+ handleEvent(event) {
15761
+ }
15762
+ /**
15763
+ * @return {?}
15764
+ */
15765
+ ngOnInit() {
15766
+ }
15767
+ }
15768
+ image_preview.decorators = [
15769
+ { type: Component, args: [{
15770
+ selector: 'image_preview',
15771
+ template: `
15772
+ <div fxLayout="row" fxLayoutAlign="end center" [hidden]="already_open">
15773
+
15774
+ <button type="button" class="default" (click)="toggle_up()" >
15775
+ <span class="fa fa-arrows-alt"></span>
15776
+ </button>
15777
+
15778
+ </div>
15779
+
15780
+ <div style="max-width:460px"><ngx-image-viewer [config]="config_photo" #photo_c (customEvent)="handleEvent($event)" [src]="u.image_thumbnail" index="0"></ngx-image-viewer>
15781
+
15782
+ </div>
15783
+ `,
15784
+ styles: [`
15785
+
15786
+ `]
15787
+ }] }
15788
+ ];
15789
+ image_preview.propDecorators = {
15790
+ u: [{ type: Input }],
15791
+ photo_c: [{ type: ViewChild, args: ['photo_c',] }]
15792
+ };
15793
+
15794
+ /**
15795
+ * @fileoverview added by tsickle
15796
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15797
+ */
15798
+ class ToggleFullscreenDirective {
15799
+ /**
15800
+ * @param {?} el
15801
+ */
15802
+ constructor(el) {
15803
+ this.el = el;
15804
+ }
15805
+ /**
15806
+ * @return {?}
15807
+ */
15808
+ ngOnChanges() {
15809
+ if (this.isFullscreen && enabled) {
15810
+ request(this.el.nativeElement);
15811
+ }
15812
+ else if (enabled) {
15813
+ exit();
15814
+ }
15815
+ }
15816
+ }
15817
+ ToggleFullscreenDirective.decorators = [
15818
+ { type: Directive, args: [{
15819
+ selector: '[ngxToggleFullscreen]'
15820
+ },] }
15821
+ ];
15822
+ /** @nocollapse */
15823
+ ToggleFullscreenDirective.ctorParameters = () => [
15824
+ { type: ElementRef }
15825
+ ];
15826
+ ToggleFullscreenDirective.propDecorators = {
15827
+ isFullscreen: [{ type: Input, args: ['ngxToggleFullscreen',] }]
15828
+ };
15829
+
15348
15830
  /**
15349
15831
  * @fileoverview added by tsickle
15350
15832
  * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -15407,14 +15889,15 @@ FluxhubLibModule.decorators = [
15407
15889
  AgmCoreModule.forRoot({
15408
15890
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
15409
15891
  }),
15410
- FlexLayoutModule, MarkdownModule, CKEditorModule, ImageViewerModule.forRoot()],
15411
- exports: [WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
15892
+ FlexLayoutModule, MarkdownModule, CKEditorModule],
15893
+ exports: [image_preview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
15412
15894
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15413
15895
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15414
15896
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15415
15897
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
15416
15898
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
15417
- declarations: [WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15899
+ declarations: [ImageViewerComponent,
15900
+ ToggleFullscreenDirective, image_preview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15418
15901
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15419
15902
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15420
15903
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
@@ -15426,7 +15909,7 @@ FluxhubLibModule.decorators = [
15426
15909
  ],
15427
15910
  entryComponents: [
15428
15911
  // Customize dialog must be import here.
15429
- WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
15912
+ win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
15430
15913
  FHPickListComponent,
15431
15914
  FHConfirmComponent,
15432
15915
  win_time_slider,
@@ -15469,7 +15952,7 @@ class FHGuard {
15469
15952
  */
15470
15953
  canActivate(next, state) {
15471
15954
  this.routingDestination = next.url[0].path;
15472
- // console.log(this.routingDestination);
15955
+ // //console.log(this.routingDestination);
15473
15956
  if (this.routingDestination == '')
15474
15957
  return true;
15475
15958
  if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
@@ -15477,14 +15960,14 @@ class FHGuard {
15477
15960
  if (this.auth.checkCredentials()) {
15478
15961
  if (this.routingDestination == 'home')
15479
15962
  return true;
15480
- console.log('canActivate 1');
15963
+ //console.log('canActivate 1');
15481
15964
  if (this.app_s.user_isadmin != null)
15482
15965
  if (this.app_s.user_isadmin == "1")
15483
15966
  return true;
15484
15967
  return new Promise((resolve) => {
15485
- console.log('canActivate 2');
15968
+ //console.log('canActivate 2');
15486
15969
  if (this.arr_accessi != null) {
15487
- console.log('canActivate 3');
15970
+ //console.log('canActivate 3');
15488
15971
  for (let i = 0; i < this.arr_accessi.length; i++) {
15489
15972
  if (this.arr_accessi[i].type == 'M')
15490
15973
  if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
@@ -15492,13 +15975,13 @@ class FHGuard {
15492
15975
  return;
15493
15976
  }
15494
15977
  }
15495
- console.log('canActivate 4');
15978
+ //console.log('canActivate 4');
15496
15979
  this.toast.error("ACCESS DENIED [0X0003]");
15497
15980
  this.slimLoadingBarService.complete();
15498
15981
  resolve(false);
15499
15982
  return;
15500
15983
  }
15501
- console.log('canActivate 5');
15984
+ //console.log('canActivate 5');
15502
15985
  /** @type {?} */
15503
15986
  let p = new QParam();
15504
15987
  p.sql = "SELECT_USER_ACCESS_AUTH";
@@ -15509,7 +15992,7 @@ class FHGuard {
15509
15992
  if (data != null)
15510
15993
  if (data.result_msg == "OK")
15511
15994
  if (data.result_data.length > 0) {
15512
- console.log('canActivate 6');
15995
+ //console.log('canActivate 6');
15513
15996
  this.appService.user_roles = data.result_data[0].roles;
15514
15997
  if (this.appService.user_roles.length > 0)
15515
15998
  this.appService.user_roles = this.appService.user_roles.substr(1);
@@ -15524,12 +16007,12 @@ class FHGuard {
15524
16007
  this.appService.getState().app_enabled = new Array();
15525
16008
  p.types = ['string'];
15526
16009
  p.values = [this.appService.user];
15527
- console.log('canActivate 8');
16010
+ //console.log('canActivate 8');
15528
16011
  this.querys.doQuery(p).subscribe(data => {
15529
- console.log('canActivate 9');
16012
+ //console.log('canActivate 9');
15530
16013
  this.arr_accessi = data.result_data;
15531
16014
  for (let i = 0; i < this.arr_accessi.length; i++) {
15532
- console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
16015
+ //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
15533
16016
  if (this.arr_accessi[i].type == 'M') {
15534
16017
  if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
15535
16018
  resolve(true);
@@ -15537,7 +16020,7 @@ class FHGuard {
15537
16020
  }
15538
16021
  }
15539
16022
  }
15540
- console.log('canActivate 11');
16023
+ //console.log('canActivate 11');
15541
16024
  this.toast.error("ACCESS DENIED [0X0001]");
15542
16025
  resolve(false);
15543
16026
  this.slimLoadingBarService.complete();
@@ -15558,12 +16041,12 @@ class FHGuard {
15558
16041
  this.appService.getState().app_enabled = new Array();
15559
16042
  p.types = ['string'];
15560
16043
  p.values = [this.appService.user];
15561
- console.log('canActivate 8');
16044
+ //console.log('canActivate 8');
15562
16045
  this.querys.doQuery(p).subscribe(data => {
15563
- console.log('canActivate 9');
16046
+ //console.log('canActivate 9');
15564
16047
  this.arr_accessi = data.result_data;
15565
16048
  for (let i = 0; i < this.arr_accessi.length; i++) {
15566
- console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
16049
+ //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
15567
16050
  if (this.arr_accessi[i].type == 'M') {
15568
16051
  if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
15569
16052
  resolve(true);
@@ -15571,7 +16054,7 @@ class FHGuard {
15571
16054
  }
15572
16055
  }
15573
16056
  }
15574
- console.log('canActivate 11');
16057
+ //console.log('canActivate 11');
15575
16058
  this.toast.error("ACCESS DENIED [0X0001]");
15576
16059
  resolve(false);
15577
16060
  this.slimLoadingBarService.complete();
@@ -15579,7 +16062,7 @@ class FHGuard {
15579
16062
  });
15580
16063
  }
15581
16064
  });
15582
- console.log('canActivate 12');
16065
+ //console.log('canActivate 12');
15583
16066
  }
15584
16067
  else {
15585
16068
  this.toast.error("ACCESS DENIED [0X0004]");
@@ -15630,6 +16113,6 @@ class dt {
15630
16113
  * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15631
16114
  */
15632
16115
 
15633
- export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵa, FHGridToolBarComponent as ɵi, win_grid_help as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵd, DecimalMask as ɵe, FHValueAccessor as ɵf, HighlightService as ɵh, win_assegna as ɵj, win_commenti as ɵo, win_commento_sel_notif as ɵu, win_conferma as ɵk, win_info_doc as ɵp, win_log as ɵq, win_recupera_doc as ɵr, win_riassegna_select_level as ɵs, win_riassegna_select_user as ɵt, win_select_canale as ɵl, win_select_level as ɵm, win_uploads as ɵn };
16116
+ export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, win_show_image, image_preview, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵa, FHGridToolBarComponent as ɵl, win_grid_help as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵd, ToggleFullscreenDirective as ɵk, ImageViewerComponent as ɵi, DecimalMask as ɵe, FHValueAccessor as ɵf, HighlightService as ɵh, win_assegna as ɵm, win_commenti as ɵr, win_commento_sel_notif as ɵx, win_conferma as ɵn, win_info_doc as ɵs, win_log as ɵt, win_recupera_doc as ɵu, win_riassegna_select_level as ɵv, win_riassegna_select_user as ɵw, win_select_canale as ɵo, win_select_level as ɵp, win_uploads as ɵq };
15634
16117
 
15635
16118
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map