@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +6 -6
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHGridComponent.html +1 -1
- package/docs/components/FHViewerComponent.html +1 -1
- package/esm2015/lib/controls/fhgrid.js +4 -4
- package/esm2015/lib/controls/fhgrid_json.js +2 -2
- package/esm2015/lib/controls/fhupload.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +2 -2
- package/esm5/lib/controls/fhgrid.js +4 -4
- package/esm5/lib/controls/fhgrid_json.js +2 -2
- package/esm5/lib/controls/fhupload.js +2 -2
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +7 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +7 -7
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
34
34
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
35
35
|
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';
|
|
36
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
37
|
-
import { Injectable, Component, Pipe, Inject, PLATFORM_ID,
|
|
37
|
+
import { Injectable, Component, Pipe, Directive, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
38
38
|
import { Http } from '@angular/http';
|
|
39
39
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
40
40
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -3055,7 +3055,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3055
3055
|
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
|
|
3056
3056
|
'maxFileSize': 500 * 1024 * 1024
|
|
3057
3057
|
});
|
|
3058
|
-
this.username =
|
|
3058
|
+
this.username = this.app_s.user;
|
|
3059
3059
|
this.uploader.onBeforeUploadItem = (/**
|
|
3060
3060
|
* @param {?} item
|
|
3061
3061
|
* @return {?}
|
|
@@ -6090,7 +6090,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6090
6090
|
if (p.sort_field != "")
|
|
6091
6091
|
p.sort_field = p.sort_field + ',';
|
|
6092
6092
|
if (params.sortModel[i].colId == 'autori')
|
|
6093
|
-
p.sort_field = p.sort_field + "case when CHARINDEX('" +
|
|
6093
|
+
p.sort_field = p.sort_field + "case when CHARINDEX('" + _this.m_appService.user + "',autori)>0 then 1 else 0 end" + ' ' + params.sortModel[i].sort;
|
|
6094
6094
|
else
|
|
6095
6095
|
p.sort_field = p.sort_field + params.sortModel[i].colId + ' ' + params.sortModel[i].sort;
|
|
6096
6096
|
}
|
|
@@ -6556,7 +6556,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6556
6556
|
if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
|
|
6557
6557
|
p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
|
|
6558
6558
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
6559
|
-
p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter,
|
|
6559
|
+
p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
|
|
6560
6560
|
_this._dataService.doQuery(p).subscribe((/**
|
|
6561
6561
|
* @param {?} data
|
|
6562
6562
|
* @return {?}
|
|
@@ -6621,7 +6621,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6621
6621
|
if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
|
|
6622
6622
|
p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
|
|
6623
6623
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
6624
|
-
p.values = [result, _this.grid_key, p_col, p_sort, p_filter,
|
|
6624
|
+
p.values = [result, _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
|
|
6625
6625
|
_this._dataService.doQuery(p).subscribe((/**
|
|
6626
6626
|
* @param {?} data
|
|
6627
6627
|
* @return {?}
|
|
@@ -13461,7 +13461,7 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
13461
13461
|
if (localStorage.getItem(_this.grid_key + '_FILTER') != null)
|
|
13462
13462
|
p_filter = localStorage.getItem(_this.grid_key + '_FILTER');
|
|
13463
13463
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
13464
|
-
p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter,
|
|
13464
|
+
p.values = [_this.gf.getDescri(), _this.grid_key, p_col, p_sort, p_filter, _this.m_appService.user];
|
|
13465
13465
|
_this._dataService.doQuery(p).subscribe((/**
|
|
13466
13466
|
* @param {?} data
|
|
13467
13467
|
* @return {?}
|
|
@@ -17373,7 +17373,7 @@ var FHViewerComponent = /** @class */ (function () {
|
|
|
17373
17373
|
FHViewerComponent.decorators = [
|
|
17374
17374
|
{ type: Component, args: [{
|
|
17375
17375
|
selector: 'image-viewer',
|
|
17376
|
-
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
|
|
17376
|
+
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",
|
|
17377
17377
|
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)}}"]
|
|
17378
17378
|
}] }
|
|
17379
17379
|
];
|