@fluxhub/fluxhub-lib 1.0.235 → 1.0.237

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 (91) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +122 -119
  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/OfficeOperation.html +298 -0
  6. package/docs/classes/OfficeResult.html +230 -0
  7. package/docs/components/ApprovaGridComponent.html +1 -1
  8. package/docs/components/ComboBoxEditor.html +1 -1
  9. package/docs/components/CurrencyComponent.html +1 -1
  10. package/docs/components/DateComponent.html +1 -1
  11. package/docs/components/DtPick.html +1 -1
  12. package/docs/components/FHAutoCompleteComponent.html +1 -1
  13. package/docs/components/FHComboboxComponent.html +1 -1
  14. package/docs/components/FHConfirmComponent.html +1 -1
  15. package/docs/components/FHCurrencyFieldComponent.html +1 -1
  16. package/docs/components/FHDatePickerComponent.html +1 -1
  17. package/docs/components/FHGridComponent.html +1 -1
  18. package/docs/components/FHGridJSONComponent.html +1 -1
  19. package/docs/components/FHGridToolBarComponent.html +1 -1
  20. package/docs/components/FHListComponent.html +1 -1
  21. package/docs/components/FHListPick.html +1 -1
  22. package/docs/components/FHLogPanelComponent.html +1 -1
  23. package/docs/components/FHMdReader.html +1 -1
  24. package/docs/components/FHNumericFieldComponent.html +1 -1
  25. package/docs/components/FHPickListComponent.html +1 -1
  26. package/docs/components/FHRichText.html +1 -1
  27. package/docs/components/FHTimePickerComponent.html +1 -1
  28. package/docs/components/FHUploadComponent.html +1 -1
  29. package/docs/components/FHUploadPanelComponent.html +1 -1
  30. package/docs/components/FHUserFieldComponent.html +1 -1
  31. package/docs/components/FHUserPickerComponent.html +1 -1
  32. package/docs/components/FHWinComboSelect.html +1 -1
  33. package/docs/components/FSInput.html +1 -1
  34. package/docs/components/FSResult.html +1 -1
  35. package/docs/components/FormBuilderComponent.html +1 -1
  36. package/docs/components/FormExecuterComponent.html +1 -1
  37. package/docs/components/ImageViewerComponent.html +7 -79
  38. package/docs/components/NumericEditorComponent.html +1 -1
  39. package/docs/components/QGParam.html +1 -1
  40. package/docs/components/QGResult.html +1 -1
  41. package/docs/components/QParam.html +1 -1
  42. package/docs/components/QResult.html +1 -1
  43. package/docs/components/TextAreaEditor.html +1 -1
  44. package/docs/components/WinAskButtonsComponent.html +1 -1
  45. package/docs/components/WinAskNumberComponent.html +1 -1
  46. package/docs/components/WinAskTextBigComponent.html +1 -1
  47. package/docs/components/WinAskTextComponent.html +1 -1
  48. package/docs/components/WinOutputComponent.html +1 -1
  49. package/docs/components/WinWait.html +1 -1
  50. package/docs/components/image_preview.html +40 -10
  51. package/docs/components/win_assegna.html +1 -1
  52. package/docs/components/win_commenti.html +1 -1
  53. package/docs/components/win_commento_sel_notif.html +1 -1
  54. package/docs/components/win_conferma.html +1 -1
  55. package/docs/components/win_grid_help.html +1 -1
  56. package/docs/components/win_info_doc.html +1 -1
  57. package/docs/components/win_log.html +1 -1
  58. package/docs/components/win_mappa.html +1 -1
  59. package/docs/components/win_recupera_doc.html +1 -1
  60. package/docs/components/win_riassegna_select_level.html +1 -1
  61. package/docs/components/win_riassegna_select_user.html +1 -1
  62. package/docs/components/win_salva_annulla.html +1 -1
  63. package/docs/components/win_select_canale.html +1 -1
  64. package/docs/components/win_select_level.html +1 -1
  65. package/docs/components/win_show_image.html +1 -1
  66. package/docs/components/win_time_slider.html +1 -1
  67. package/docs/components/win_uploads.html +1 -1
  68. package/docs/components/wkf_header_bar.html +1 -1
  69. package/docs/coverage.html +14 -30
  70. package/docs/injectables/OfficeAutomatorService.html +122 -42
  71. package/docs/js/menu-wc.js +1 -1
  72. package/docs/js/search/search_index.js +2 -2
  73. package/docs/overview.html +2 -2
  74. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +8 -15
  75. package/esm2015/lib/controls/image_preview.js +12 -9
  76. package/esm2015/lib/services/office_automator.service.js +105 -114
  77. package/esm5/lib/controls/image-viewer/image-viewer.component.js +8 -20
  78. package/esm5/lib/controls/image_preview.js +14 -2
  79. package/esm5/lib/services/office_automator.service.js +128 -129
  80. package/fesm2015/fluxhub-fluxhub-lib.js +101 -108
  81. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  82. package/fesm5/fluxhub-fluxhub-lib.js +120 -117
  83. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  84. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  85. package/lib/controls/image-viewer/image-viewer.component.d.ts +2 -3
  86. package/lib/controls/image_preview.d.ts +1 -0
  87. package/lib/services/office_automator.service.d.ts +12 -28
  88. package/package.json +6 -6
  89. package/docs/interfaces/ChunkInfo.html +0 -245
  90. package/docs/interfaces/Command.html +0 -327
  91. package/docs/interfaces/CommandOptions.html +0 -225
@@ -11459,61 +11459,111 @@
11459
11459
  * @fileoverview added by tsickle
11460
11460
  * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11461
11461
  */
11462
+ var OfficeOperation = /** @class */ (function () {
11463
+ function OfficeOperation() {
11464
+ }
11465
+ return OfficeOperation;
11466
+ }());
11462
11467
  var OfficeAutomatorService = /** @class */ (function () {
11463
- /**
11464
- *
11465
- */
11466
- function OfficeAutomatorService(dataService, fileService, toastr, utility) {
11468
+ function OfficeAutomatorService(dataService, fileService, toastr) {
11467
11469
  this.dataService = dataService;
11468
11470
  this.fileService = fileService;
11469
11471
  this.toastr = toastr;
11470
- this.utility = utility;
11472
+ /**
11473
+ * @param commands
11474
+ * @param options
11475
+ * @export
11476
+ */
11477
+ this.eprog = 0;
11471
11478
  }
11472
11479
  /**
11473
- * @param commands
11474
- * @param options
11475
- * @export
11480
+ * @param {?} operazione
11481
+ * @param {?} v1
11482
+ * @param {?} v2
11483
+ * @param {?} ordine
11484
+ * @return {?}
11485
+ */
11486
+ OfficeAutomatorService.prototype.operation = /**
11487
+ * @param {?} operazione
11488
+ * @param {?} v1
11489
+ * @param {?} v2
11490
+ * @param {?} ordine
11491
+ * @return {?}
11492
+ */
11493
+ function (operazione, v1, v2, ordine) {
11494
+ /** @type {?} */
11495
+ var op = new OfficeOperation();
11496
+ op.op = operazione;
11497
+ op.v1 = v1;
11498
+ op.v2 = v2;
11499
+ op.ord = ordine;
11500
+ return op;
11501
+ };
11502
+ /**
11503
+ * @private
11504
+ * @param {?=} dialogRef_W
11505
+ * @return {?}
11506
+ */
11507
+ OfficeAutomatorService.prototype.progress_update = /**
11508
+ * @private
11509
+ * @param {?=} dialogRef_W
11510
+ * @return {?}
11476
11511
  */
11512
+ function (dialogRef_W) {
11513
+ var _this = this;
11514
+ if (dialogRef_W === void 0) {
11515
+ dialogRef_W = null;
11516
+ }
11517
+ if (dialogRef_W == null)
11518
+ return;
11519
+ if (dialogRef_W.componentInstance == null)
11520
+ return;
11521
+ if (this.eprog >= 100)
11522
+ return;
11523
+ this.eprog += 10;
11524
+ dialogRef_W.componentInstance.update_progess(this.eprog);
11525
+ setTimeout(function () {
11526
+ _this.progress_update(dialogRef_W);
11527
+ }, 2000);
11528
+ };
11477
11529
  /**
11478
- * @export
11530
+ * @param {?} uiid
11479
11531
  * @param {?} commands
11480
- * @param {?} options
11532
+ * @param {?} dialogRef_W
11481
11533
  * @return {?}
11482
11534
  */
11483
11535
  OfficeAutomatorService.prototype.runCommands = /**
11484
- * @export
11536
+ * @param {?} uiid
11485
11537
  * @param {?} commands
11486
- * @param {?} options
11538
+ * @param {?} dialogRef_W
11487
11539
  * @return {?}
11488
11540
  */
11489
- function (commands, options) {
11541
+ function (uiid, commands, dialogRef_W) {
11490
11542
  var _this = this;
11491
- /** @type {?} */
11492
- var uiid = this.utility.newGuid();
11493
- // TODO: check order
11494
- // TODO: check id
11495
- // create job in db
11496
- /** @type {?} */
11497
- var q = '';
11498
- for (var i = 0; i < commands.length; i++) {
11499
- if (q != "") {
11500
- q = q + ";;;";
11501
- }
11502
- q = q + (commands[i].id || uiid) + ";;;" + commands[i].op + ";;;" + (commands[i].v1 || ' ') + ";;;" + (commands[i].v2 || ' ') + ";;;" + (commands[i].ord);
11503
- }
11543
+ this.eprog = 0;
11504
11544
  /** @type {?} */
11505
11545
  var p = new QParam();
11506
- p.sql = "INSERT_CMD_STAMPA_MULTI";
11507
- p.types = ['string', 'string', 'string', 'string', 'int'];
11508
- p.values = [q];
11546
+ p.sql = "INSERT_OFFICE_OPERATION";
11547
+ p.types = ['string', 'string'];
11548
+ commands.sort(function (left, right) {
11549
+ if (left.ord < right.ord)
11550
+ return -1;
11551
+ if (left.ord > right.ord)
11552
+ return 1;
11553
+ });
11554
+ console.log('commands ', commands);
11555
+ p.values = [uiid, JSON.stringify(commands)];
11509
11556
  return this.dataService.doQuery(p).pipe(operators.flatMap(function (data) {
11510
11557
  if (data != null) {
11511
11558
  if (data.result_msg == "OK") {
11512
- // create job file
11513
11559
  /** @type {?} */
11514
11560
  var p_1 = new FSInput();
11515
- p_1.command = "wg_create";
11516
- p_1.p1 = uiid;
11561
+ p_1.command = "exec_app";
11562
+ p_1.p1 = "print_manager";
11563
+ p_1.p2 = uiid;
11564
+ setTimeout(function () {
11565
+ _this.progress_update(dialogRef_W);
11566
+ }, 2000);
11517
11567
  return _this.fileService.doQuery(p_1).pipe(operators.flatMap(function (data) {
11518
11568
  if (data != null && data.result_msg == "OK") {
11519
11569
  // check the job is done
@@ -11525,35 +11575,31 @@
11525
11575
  /** @type {?} */
11526
11576
  var timeoutTimer = setTimeout(function () {
11527
11577
  isTimeout = true;
11528
- }, options.timeout || 3 * 60 * 1000);
11529
- // 3 min default timeout
11530
- /** @type {?} */
11531
- var logOffset = 0;
11532
- ck_files();
11578
+ }, 3 * 60 * 1000);
11579
+ ck_files(uiid);
11533
11580
  /**
11534
- *
11581
+ * @param {?} uiid
11535
11582
  * @return {?}
11536
11583
  */
11537
- function ck_files() {
11584
+ function ck_files(uiid) {
11538
11585
  /** @type {?} */
11539
- var p = new FSInput();
11540
- p.command = "wg_getlog";
11541
- p.p1 = uiid;
11542
- p.p2 = logOffset.toString();
11543
- self.fileService.doQuery(p).subscribe(function (data) {
11586
+ var p = new QParam();
11587
+ p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
11588
+ p.types = ['string'];
11589
+ p.values = [uiid];
11590
+ self.dataService.doQuery(p).subscribe(function (data) {
11544
11591
  if (data != null && data.result_msg == 'OK') {
11545
11592
  /** @type {?} */
11546
- var chunkInfo = data.result_data[0];
11547
- logOffset += chunkInfo.chunk.length;
11548
- subscriber.next(chunkInfo);
11549
- if (chunkInfo.done) {
11593
+ var chunkInfo = data.result_data;
11594
+ if (chunkInfo.length == 1) {
11595
+ subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
11550
11596
  subscriber.complete();
11551
11597
  }
11552
11598
  else {
11553
11599
  if (!isTimeout) {
11554
11600
  setTimeout(function () {
11555
- ck_files();
11556
- }, options.checkInterval || 3000); // 3 sec default check interval
11601
+ ck_files(uiid);
11602
+ }, 3000); // 3 sec default check interval
11557
11603
  }
11558
11604
  else {
11559
11605
  console.log('Timeout');
@@ -11563,9 +11609,11 @@
11563
11609
  }
11564
11610
  }
11565
11611
  else {
11566
- console.error(data);
11567
- subscriber.error(data);
11568
- subscriber.complete();
11612
+ if (!isTimeout) {
11613
+ setTimeout(function () {
11614
+ ck_files(uiid);
11615
+ }, 3000); // 3 sec default check interval
11616
+ }
11569
11617
  }
11570
11618
  });
11571
11619
  }
@@ -11576,39 +11624,6 @@
11576
11624
  }
11577
11625
  }));
11578
11626
  };
11579
- /**
11580
- * @param {?} fs_path
11581
- * @param {?} web_path
11582
- * @param {?=} error_msg
11583
- * @return {?}
11584
- */
11585
- OfficeAutomatorService.prototype.send_file_to_user = /**
11586
- * @param {?} fs_path
11587
- * @param {?} web_path
11588
- * @param {?=} error_msg
11589
- * @return {?}
11590
- */
11591
- function (fs_path, web_path, error_msg) {
11592
- var _this = this;
11593
- if (error_msg === void 0) {
11594
- error_msg = 'errore nella creazione del file';
11595
- }
11596
- /** @type {?} */
11597
- var p = new FSInput();
11598
- p.p1 = fs_path;
11599
- p.command = "check_file";
11600
- this.fileService.doQuery(p).subscribe(function (data) {
11601
- if (data != null)
11602
- if (data.msg != "N") {
11603
- window.open(web_path);
11604
- }
11605
- else {
11606
- if (error_msg != null)
11607
- if (error_msg != '')
11608
- _this.toastr.error(error_msg);
11609
- }
11610
- });
11611
- };
11612
11627
  OfficeAutomatorService.decorators = [
11613
11628
  { type: i0.Injectable, args: [{
11614
11629
  providedIn: 'root',
@@ -11619,11 +11634,10 @@
11619
11634
  return [
11620
11635
  { type: QueryService },
11621
11636
  { type: FileService },
11622
- { type: i3.ToastrService },
11623
- { type: UtilityService }
11637
+ { type: i3.ToastrService }
11624
11638
  ];
11625
11639
  };
11626
- /** @nocollapse */ OfficeAutomatorService.ngInjectableDef = i0.defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(i0.inject(QueryService), i0.inject(FileService), i0.inject(i3.ToastrService), i0.inject(UtilityService)); }, token: OfficeAutomatorService, providedIn: "root" });
11640
+ /** @nocollapse */ OfficeAutomatorService.ngInjectableDef = i0.defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(i0.inject(QueryService), i0.inject(FileService), i0.inject(i3.ToastrService)); }, token: OfficeAutomatorService, providedIn: "root" });
11627
11641
  return OfficeAutomatorService;
11628
11642
  }());
11629
11643
 
@@ -13779,6 +13793,18 @@
13779
13793
  this.photo_c.toggleFullscreen();
13780
13794
  this.already_open = true;
13781
13795
  };
13796
+ /**
13797
+ * @return {?}
13798
+ */
13799
+ image_preview.prototype.fullScreenEvent = /**
13800
+ * @return {?}
13801
+ */
13802
+ function () {
13803
+ if (this.u != null)
13804
+ if (this.u.image_thumbnail != null)
13805
+ if (this.u.image_thumbnail.length > 0 && this.preview && !this.already_open)
13806
+ this.toggle_up();
13807
+ };
13782
13808
  /**
13783
13809
  * @param {?} event
13784
13810
  * @return {?}
@@ -13820,7 +13846,7 @@
13820
13846
  image_preview.decorators = [
13821
13847
  { type: i0.Component, args: [{
13822
13848
  selector: 'image_preview',
13823
- 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",
13849
+ template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer (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",
13824
13850
  styles: ["\n\n "]
13825
13851
  }] }
13826
13852
  ];
@@ -13832,18 +13858,6 @@
13832
13858
  return image_preview;
13833
13859
  }());
13834
13860
 
13835
- /**
13836
- * @fileoverview added by tsickle
13837
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13838
- */
13839
- var CustomEvent = /** @class */ (function () {
13840
- function CustomEvent(name, imageIndex) {
13841
- this.name = name;
13842
- this.imageIndex = imageIndex;
13843
- }
13844
- return CustomEvent;
13845
- }());
13846
-
13847
13861
  /**
13848
13862
  * @fileoverview added by tsickle
13849
13863
  * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -13880,7 +13894,7 @@
13880
13894
  this.index = 0;
13881
13895
  this.indexChange = new i0.EventEmitter();
13882
13896
  this.configChange = new i0.EventEmitter();
13883
- this.customEvent = new i0.EventEmitter();
13897
+ this.fullScreenEvent = new i0.EventEmitter();
13884
13898
  this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
13885
13899
  this.fullscreen = false;
13886
13900
  this.loading = false; // true;
@@ -14047,6 +14061,8 @@
14047
14061
  */
14048
14062
  function () {
14049
14063
  this.fullscreen = !this.fullscreen;
14064
+ if (this.fullscreen)
14065
+ this.fullScreenEvent.emit();
14050
14066
  if (!this.fullscreen) {
14051
14067
  this.reset();
14052
14068
  }
@@ -14069,19 +14085,6 @@
14069
14085
  function () {
14070
14086
  this.configChange.next(this.config);
14071
14087
  };
14072
- /**
14073
- * @param {?} name
14074
- * @param {?} imageIndex
14075
- * @return {?}
14076
- */
14077
- ImageViewerComponent.prototype.fireCustomEvent = /**
14078
- * @param {?} name
14079
- * @param {?} imageIndex
14080
- * @return {?}
14081
- */
14082
- function (name, imageIndex) {
14083
- this.customEvent.emit(new CustomEvent(name, imageIndex));
14084
- };
14085
14088
  /**
14086
14089
  * @return {?}
14087
14090
  */
@@ -14165,8 +14168,8 @@
14165
14168
  };
14166
14169
  ImageViewerComponent.decorators = [
14167
14170
  { type: i0.Component, args: [{
14168
- selector: 'ngx-image-viewer',
14169
- 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",
14171
+ selector: 'fh-image-viewer',
14172
+ 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\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",
14170
14173
  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)}}"]
14171
14174
  }] }
14172
14175
  ];
@@ -14182,7 +14185,7 @@
14182
14185
  config: [{ type: i0.Input }],
14183
14186
  indexChange: [{ type: i0.Output }],
14184
14187
  configChange: [{ type: i0.Output }],
14185
- customEvent: [{ type: i0.Output }],
14188
+ fullScreenEvent: [{ type: i0.Output }],
14186
14189
  nextImage: [{ type: i0.HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
14187
14190
  prevImage: [{ type: i0.HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
14188
14191
  onMouseOver: [{ type: i0.HostListener, args: ['mouseover',] }],