@fluxhub/fluxhub-lib 1.0.274 → 1.0.276

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.
@@ -3340,7 +3340,7 @@
3340
3340
  url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
3341
3341
  'maxFileSize': 500 * 1024 * 1024
3342
3342
  });
3343
- this.username = localStorage.getItem(this.app_s.COMPANY_KEY + "user");
3343
+ this.username = this.app_s.user;
3344
3344
  this.uploader.onBeforeUploadItem = ( /**
3345
3345
  * @param {?} item
3346
3346
  * @return {?}
@@ -3916,7 +3916,7 @@
3916
3916
  if (p.sort_field != "")
3917
3917
  p.sort_field = p.sort_field + ',';
3918
3918
  if (params.sortModel[i].colId == 'autori')
3919
- p.sort_field = p.sort_field + "case when CHARINDEX('" + localStorage.getItem(_this.m_appService.COMPANY_KEY + "user") + "',autori)>0 then 1 else 0 end" + ' ' + params.sortModel[i].sort;
3919
+ p.sort_field = p.sort_field + "case when CHARINDEX('" + _this.m_appService.user + "',autori)>0 then 1 else 0 end" + ' ' + params.sortModel[i].sort;
3920
3920
  else
3921
3921
  p.sort_field = p.sort_field + params.sortModel[i].colId + ' ' + params.sortModel[i].sort;
3922
3922
  }
@@ -4375,7 +4375,7 @@
4375
4375
  if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
4376
4376
  p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
4377
4377
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
4378
- p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, localStorage.getItem(_this.m_appService.COMPANY_KEY + "user")];
4378
+ p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
4379
4379
  _this._dataService.doQuery(p).subscribe(( /**
4380
4380
  * @param {?} data
4381
4381
  * @return {?}
@@ -4437,7 +4437,7 @@
4437
4437
  if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
4438
4438
  p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
4439
4439
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
4440
- p.values = [result, _this.grid_key, p_col, p_sort, p_filter, localStorage.getItem(_this.m_appService.COMPANY_KEY + "user")];
4440
+ p.values = [result, _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
4441
4441
  _this._dataService.doQuery(p).subscribe(( /**
4442
4442
  * @param {?} data
4443
4443
  * @return {?}
@@ -12595,7 +12595,7 @@
12595
12595
  if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
12596
12596
  p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
12597
12597
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
12598
- p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, localStorage.getItem(_this.m_appService.COMPANY_KEY + "user")];
12598
+ p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
12599
12599
  _this._dataService.doQuery(p).subscribe(( /**
12600
12600
  * @param {?} data
12601
12601
  * @return {?}
@@ -14895,7 +14895,7 @@
14895
14895
  FHViewerComponent.decorators = [
14896
14896
  { type: i0.Component, args: [{
14897
14897
  selector: 'image-viewer',
14898
- template: "<div #imgx class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [style.transform]=\"style.transform | safe:'style'\" [style.msTransform]=\"style.transform| safe:'style'\" style=\"min-height: 280px\" [style.webkitTransform]=\"style.transform| safe:'style'\" [style.oTransform]=\"style.transform| safe:'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 <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 <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",
14898
+ template: "<div #imgx class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\" *ngIf=\"src!=null\">\n <img [src]=\"src[index]\" [style.transform]=\"style.transform | safe:'style'\" [style.msTransform]=\"style.transform| safe:'style'\" style=\"min-height: 280px\" [style.webkitTransform]=\"style.transform| safe:'style'\" [style.oTransform]=\"style.transform| safe:'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 <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 <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",
14899
14899
  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)}}"]
14900
14900
  }] }
14901
14901
  ];