@fluxhub/fluxhub-lib 1.0.226 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +605 -37
- 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/classes/CustomEvent.html +278 -0
- package/docs/components/ApprovaGridComponent.html +2 -2
- package/docs/components/ComboBoxEditor.html +2 -2
- package/docs/components/CurrencyComponent.html +2 -2
- package/docs/components/DateComponent.html +2 -2
- package/docs/components/DtPick.html +2 -2
- package/docs/components/FHAutoCompleteComponent.html +2 -2
- package/docs/components/FHComboboxComponent.html +2 -2
- package/docs/components/FHConfirmComponent.html +2 -2
- package/docs/components/FHCurrencyFieldComponent.html +2 -2
- package/docs/components/FHDatePickerComponent.html +2 -2
- package/docs/components/FHGridComponent.html +2 -2
- package/docs/components/FHGridJSONComponent.html +2 -2
- package/docs/components/FHGridToolBarComponent.html +2 -2
- package/docs/components/FHListComponent.html +2 -2
- package/docs/components/FHListPick.html +2 -2
- package/docs/components/FHLogPanelComponent.html +2 -2
- package/docs/components/FHMdReader.html +2 -2
- package/docs/components/FHNumericFieldComponent.html +2 -2
- package/docs/components/FHPickListComponent.html +2 -2
- package/docs/components/FHRichText.html +2 -2
- package/docs/components/FHTimePickerComponent.html +2 -2
- package/docs/components/FHUploadComponent.html +2 -2
- package/docs/components/FHUploadPanelComponent.html +2 -2
- package/docs/components/FHUserFieldComponent.html +2 -2
- package/docs/components/FHUserPickerComponent.html +2 -2
- package/docs/components/FHWinComboSelect.html +2 -2
- package/docs/components/FSInput.html +2 -2
- package/docs/components/FSResult.html +2 -2
- package/docs/components/FormBuilderComponent.html +2 -2
- package/docs/components/FormExecuterComponent.html +2 -2
- package/docs/components/ImageViewerComponent.html +1519 -0
- package/docs/components/NumericEditorComponent.html +2 -2
- package/docs/components/QGParam.html +2 -2
- package/docs/components/QGResult.html +2 -2
- package/docs/components/QParam.html +2 -2
- package/docs/components/QResult.html +2 -2
- package/docs/components/TextAreaEditor.html +2 -2
- package/docs/components/WinAskButtonsComponent.html +2 -2
- package/docs/components/WinAskNumberComponent.html +2 -2
- package/docs/components/WinAskTextBigComponent.html +2 -2
- package/docs/components/WinAskTextComponent.html +2 -2
- package/docs/components/WinOutputComponent.html +2 -2
- package/docs/components/WinWait.html +2 -2
- package/docs/components/image_preview.html +662 -0
- package/docs/components/win_assegna.html +2 -2
- package/docs/components/win_commenti.html +2 -2
- package/docs/components/win_commento_sel_notif.html +2 -2
- package/docs/components/win_conferma.html +2 -2
- package/docs/components/win_grid_help.html +2 -2
- package/docs/components/win_info_doc.html +2 -2
- package/docs/components/win_log.html +2 -2
- package/docs/components/win_mappa.html +2 -2
- package/docs/components/win_recupera_doc.html +2 -2
- package/docs/components/win_riassegna_select_level.html +2 -2
- package/docs/components/win_riassegna_select_user.html +2 -2
- package/docs/components/win_salva_annulla.html +2 -2
- package/docs/components/win_select_canale.html +2 -2
- package/docs/components/win_select_level.html +2 -2
- package/docs/components/win_show_image.html +469 -0
- package/docs/components/win_time_slider.html +2 -2
- package/docs/components/win_uploads.html +2 -2
- package/docs/components/wkf_header_bar.html +2 -2
- package/docs/coverage.html +112 -0
- package/docs/dependencies.html +3 -1
- package/docs/directives/ToggleFullscreenDirective.html +297 -0
- package/docs/graph/dependencies.svg +704 -632
- package/docs/interfaces/ImageViewerConfig.html +491 -0
- package/docs/js/menu-wc.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +64 -0
- package/docs/modules/FluxhubLibModule/dependencies.svg +704 -632
- package/docs/modules/FluxhubLibModule.html +725 -632
- package/docs/overview.html +708 -636
- package/esm2015/fluxhub-fluxhub-lib.js +17 -15
- package/esm2015/lib/auth_guard.js +17 -17
- package/esm2015/lib/controls/image-viewer/fullscreen.directive.js +47 -0
- package/esm2015/lib/controls/image-viewer/image-viewer-config.model.js +45 -0
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +326 -0
- package/esm2015/lib/controls/image_preview.js +138 -0
- package/esm2015/lib/controls/win_show_image.js +50 -0
- package/esm2015/lib/fluxhub-lib.module.js +10 -6
- package/esm2015/public_api.js +3 -1
- package/esm5/fluxhub-fluxhub-lib.js +17 -15
- package/esm5/lib/auth_guard.js +17 -17
- package/esm5/lib/controls/image-viewer/fullscreen.directive.js +49 -0
- package/esm5/lib/controls/image-viewer/image-viewer-config.model.js +43 -0
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +405 -0
- package/esm5/lib/controls/image_preview.js +136 -0
- package/esm5/lib/controls/win_show_image.js +42 -0
- package/esm5/lib/fluxhub-lib.module.js +10 -6
- package/esm5/public_api.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +506 -23
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +570 -24
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +16 -13
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image-viewer/fullscreen.directive.d.ts +7 -0
- package/lib/controls/image-viewer/image-viewer-config.model.d.ts +34 -0
- package/lib/controls/image-viewer/image-viewer.component.d.ts +49 -0
- package/lib/controls/image_preview.d.ts +60 -0
- package/lib/controls/win_show_image.d.ts +9 -0
- package/package.json +1 -2
- package/public_api.d.ts +2 -0
|
@@ -12,7 +12,6 @@ import 'prismjs/components/prism-sass';
|
|
|
12
12
|
import 'prismjs/components/prism-scss';
|
|
13
13
|
import 'prismjs/components/prism-sql';
|
|
14
14
|
import 'ng2-ckeditor/lib/src/ckeditor.component';
|
|
15
|
-
import { __read, __extends } from 'tslib';
|
|
16
15
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
17
16
|
import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
|
|
18
17
|
import { Observable } from 'rxjs';
|
|
@@ -32,9 +31,10 @@ import { Driver, NgForageCache, NgForage } from 'ngforage';
|
|
|
32
31
|
import { TranslateModule } from '@ngx-translate/core';
|
|
33
32
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
34
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';
|
|
35
|
-
import {
|
|
34
|
+
import { __read, __assign, __extends } from 'tslib';
|
|
35
|
+
import { enabled, request, exit } from 'screenfull';
|
|
36
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
37
|
-
import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef,
|
|
37
|
+
import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, ElementRef, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, 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';
|
|
@@ -15937,6 +15937,551 @@ var WinAskButtonsComponent = /** @class */ (function () {
|
|
|
15937
15937
|
return WinAskButtonsComponent;
|
|
15938
15938
|
}());
|
|
15939
15939
|
|
|
15940
|
+
/**
|
|
15941
|
+
* @fileoverview added by tsickle
|
|
15942
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15943
|
+
*/
|
|
15944
|
+
var win_show_image = /** @class */ (function () {
|
|
15945
|
+
function win_show_image(dialogRef) {
|
|
15946
|
+
this.dialogRef = dialogRef;
|
|
15947
|
+
this.imageIndex = 0;
|
|
15948
|
+
this.images = [];
|
|
15949
|
+
}
|
|
15950
|
+
/**
|
|
15951
|
+
* @return {?}
|
|
15952
|
+
*/
|
|
15953
|
+
win_show_image.prototype.ngOnInit = /**
|
|
15954
|
+
* @return {?}
|
|
15955
|
+
*/
|
|
15956
|
+
function () {
|
|
15957
|
+
};
|
|
15958
|
+
win_show_image.decorators = [
|
|
15959
|
+
{ type: Component, args: [{
|
|
15960
|
+
template: "\n\n\n <!-- <ngx-image-viewer [src]=\"images\" [(index)]=\"imageIndex\"></ngx-image-viewer>-->\n\n <mat-dialog-actions>\n <button mat-raised-button (click)=\"dialogRef.close('')\">CHIUDI</button>\n </mat-dialog-actions>\n ",
|
|
15961
|
+
styles: ["\n \n "]
|
|
15962
|
+
}] }
|
|
15963
|
+
];
|
|
15964
|
+
/** @nocollapse */
|
|
15965
|
+
win_show_image.ctorParameters = function () { return [
|
|
15966
|
+
{ type: MatDialogRef }
|
|
15967
|
+
]; };
|
|
15968
|
+
return win_show_image;
|
|
15969
|
+
}());
|
|
15970
|
+
|
|
15971
|
+
/**
|
|
15972
|
+
* @fileoverview added by tsickle
|
|
15973
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15974
|
+
*/
|
|
15975
|
+
var CustomEvent = /** @class */ (function () {
|
|
15976
|
+
function CustomEvent(name, imageIndex) {
|
|
15977
|
+
this.name = name;
|
|
15978
|
+
this.imageIndex = imageIndex;
|
|
15979
|
+
}
|
|
15980
|
+
return CustomEvent;
|
|
15981
|
+
}());
|
|
15982
|
+
|
|
15983
|
+
/**
|
|
15984
|
+
* @fileoverview added by tsickle
|
|
15985
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15986
|
+
*/
|
|
15987
|
+
/** @type {?} */
|
|
15988
|
+
var DEFAULT_CONFIG = {
|
|
15989
|
+
btnClass: 'default',
|
|
15990
|
+
zoomFactor: 0.1,
|
|
15991
|
+
containerBackgroundColor: '#ccc',
|
|
15992
|
+
wheelZoom: false,
|
|
15993
|
+
allowFullscreen: true,
|
|
15994
|
+
allowKeyboardNavigation: true,
|
|
15995
|
+
btnShow: {
|
|
15996
|
+
zoomIn: true,
|
|
15997
|
+
zoomOut: true,
|
|
15998
|
+
rotateClockwise: true,
|
|
15999
|
+
rotateCounterClockwise: true,
|
|
16000
|
+
next: true,
|
|
16001
|
+
prev: true
|
|
16002
|
+
},
|
|
16003
|
+
btnIcons: {
|
|
16004
|
+
zoomIn: 'fa fa-plus',
|
|
16005
|
+
zoomOut: 'fa fa-minus',
|
|
16006
|
+
rotateClockwise: 'fa fa-repeat',
|
|
16007
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
16008
|
+
next: 'fa fa-arrow-right',
|
|
16009
|
+
prev: 'fa fa-arrow-left',
|
|
16010
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
16011
|
+
}
|
|
16012
|
+
};
|
|
16013
|
+
var ImageViewerComponent = /** @class */ (function () {
|
|
16014
|
+
function ImageViewerComponent(moduleConfig) {
|
|
16015
|
+
this.moduleConfig = moduleConfig;
|
|
16016
|
+
this.index = 0;
|
|
16017
|
+
this.indexChange = new EventEmitter();
|
|
16018
|
+
this.configChange = new EventEmitter();
|
|
16019
|
+
this.customEvent = new EventEmitter();
|
|
16020
|
+
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
16021
|
+
this.fullscreen = false;
|
|
16022
|
+
this.loading = true;
|
|
16023
|
+
this.scale = 1;
|
|
16024
|
+
this.rotation = 0;
|
|
16025
|
+
this.translateX = 0;
|
|
16026
|
+
this.translateY = 0;
|
|
16027
|
+
this.hovered = false;
|
|
16028
|
+
}
|
|
16029
|
+
/**
|
|
16030
|
+
* @return {?}
|
|
16031
|
+
*/
|
|
16032
|
+
ImageViewerComponent.prototype.ngOnInit = /**
|
|
16033
|
+
* @return {?}
|
|
16034
|
+
*/
|
|
16035
|
+
function () {
|
|
16036
|
+
/** @type {?} */
|
|
16037
|
+
var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
|
|
16038
|
+
this.config = this.mergeConfig(merged, this.config);
|
|
16039
|
+
this.triggerConfigBinding();
|
|
16040
|
+
};
|
|
16041
|
+
/**
|
|
16042
|
+
* @param {?} event
|
|
16043
|
+
* @return {?}
|
|
16044
|
+
*/
|
|
16045
|
+
ImageViewerComponent.prototype.nextImage = /**
|
|
16046
|
+
* @param {?} event
|
|
16047
|
+
* @return {?}
|
|
16048
|
+
*/
|
|
16049
|
+
function (event) {
|
|
16050
|
+
if (this.canNavigate(event) && this.index < this.src.length - 1) {
|
|
16051
|
+
this.loading = true;
|
|
16052
|
+
this.index++;
|
|
16053
|
+
this.triggerIndexBinding();
|
|
16054
|
+
this.reset();
|
|
16055
|
+
}
|
|
16056
|
+
};
|
|
16057
|
+
/**
|
|
16058
|
+
* @param {?} event
|
|
16059
|
+
* @return {?}
|
|
16060
|
+
*/
|
|
16061
|
+
ImageViewerComponent.prototype.prevImage = /**
|
|
16062
|
+
* @param {?} event
|
|
16063
|
+
* @return {?}
|
|
16064
|
+
*/
|
|
16065
|
+
function (event) {
|
|
16066
|
+
if (this.canNavigate(event) && this.index > 0) {
|
|
16067
|
+
this.loading = true;
|
|
16068
|
+
this.index--;
|
|
16069
|
+
this.triggerIndexBinding();
|
|
16070
|
+
this.reset();
|
|
16071
|
+
}
|
|
16072
|
+
};
|
|
16073
|
+
/**
|
|
16074
|
+
* @return {?}
|
|
16075
|
+
*/
|
|
16076
|
+
ImageViewerComponent.prototype.zoomIn = /**
|
|
16077
|
+
* @return {?}
|
|
16078
|
+
*/
|
|
16079
|
+
function () {
|
|
16080
|
+
this.scale *= (1 + this.config.zoomFactor);
|
|
16081
|
+
this.updateStyle();
|
|
16082
|
+
};
|
|
16083
|
+
/**
|
|
16084
|
+
* @return {?}
|
|
16085
|
+
*/
|
|
16086
|
+
ImageViewerComponent.prototype.zoomOut = /**
|
|
16087
|
+
* @return {?}
|
|
16088
|
+
*/
|
|
16089
|
+
function () {
|
|
16090
|
+
if (this.scale > this.config.zoomFactor) {
|
|
16091
|
+
this.scale /= (1 + this.config.zoomFactor);
|
|
16092
|
+
}
|
|
16093
|
+
this.updateStyle();
|
|
16094
|
+
};
|
|
16095
|
+
/**
|
|
16096
|
+
* @param {?} evt
|
|
16097
|
+
* @return {?}
|
|
16098
|
+
*/
|
|
16099
|
+
ImageViewerComponent.prototype.scrollZoom = /**
|
|
16100
|
+
* @param {?} evt
|
|
16101
|
+
* @return {?}
|
|
16102
|
+
*/
|
|
16103
|
+
function (evt) {
|
|
16104
|
+
if (this.config.wheelZoom) {
|
|
16105
|
+
evt.deltaY > 0 ? this.zoomOut() : this.zoomIn();
|
|
16106
|
+
return false;
|
|
16107
|
+
}
|
|
16108
|
+
};
|
|
16109
|
+
/**
|
|
16110
|
+
* @return {?}
|
|
16111
|
+
*/
|
|
16112
|
+
ImageViewerComponent.prototype.rotateClockwise = /**
|
|
16113
|
+
* @return {?}
|
|
16114
|
+
*/
|
|
16115
|
+
function () {
|
|
16116
|
+
this.rotation += 90;
|
|
16117
|
+
this.updateStyle();
|
|
16118
|
+
};
|
|
16119
|
+
/**
|
|
16120
|
+
* @return {?}
|
|
16121
|
+
*/
|
|
16122
|
+
ImageViewerComponent.prototype.rotateCounterClockwise = /**
|
|
16123
|
+
* @return {?}
|
|
16124
|
+
*/
|
|
16125
|
+
function () {
|
|
16126
|
+
this.rotation -= 90;
|
|
16127
|
+
this.updateStyle();
|
|
16128
|
+
};
|
|
16129
|
+
/**
|
|
16130
|
+
* @return {?}
|
|
16131
|
+
*/
|
|
16132
|
+
ImageViewerComponent.prototype.onLoad = /**
|
|
16133
|
+
* @return {?}
|
|
16134
|
+
*/
|
|
16135
|
+
function () {
|
|
16136
|
+
this.loading = false;
|
|
16137
|
+
};
|
|
16138
|
+
/**
|
|
16139
|
+
* @return {?}
|
|
16140
|
+
*/
|
|
16141
|
+
ImageViewerComponent.prototype.onLoadStart = /**
|
|
16142
|
+
* @return {?}
|
|
16143
|
+
*/
|
|
16144
|
+
function () {
|
|
16145
|
+
this.loading = true;
|
|
16146
|
+
};
|
|
16147
|
+
/**
|
|
16148
|
+
* @param {?} evt
|
|
16149
|
+
* @return {?}
|
|
16150
|
+
*/
|
|
16151
|
+
ImageViewerComponent.prototype.onDragOver = /**
|
|
16152
|
+
* @param {?} evt
|
|
16153
|
+
* @return {?}
|
|
16154
|
+
*/
|
|
16155
|
+
function (evt) {
|
|
16156
|
+
this.translateX += (evt.clientX - this.prevX);
|
|
16157
|
+
this.translateY += (evt.clientY - this.prevY);
|
|
16158
|
+
this.prevX = evt.clientX;
|
|
16159
|
+
this.prevY = evt.clientY;
|
|
16160
|
+
this.updateStyle();
|
|
16161
|
+
};
|
|
16162
|
+
/**
|
|
16163
|
+
* @param {?} evt
|
|
16164
|
+
* @return {?}
|
|
16165
|
+
*/
|
|
16166
|
+
ImageViewerComponent.prototype.onDragStart = /**
|
|
16167
|
+
* @param {?} evt
|
|
16168
|
+
* @return {?}
|
|
16169
|
+
*/
|
|
16170
|
+
function (evt) {
|
|
16171
|
+
if (evt.dataTransfer && evt.dataTransfer.setDragImage) {
|
|
16172
|
+
evt.dataTransfer.setDragImage(evt.target.nextElementSibling, 0, 0);
|
|
16173
|
+
}
|
|
16174
|
+
this.prevX = evt.clientX;
|
|
16175
|
+
this.prevY = evt.clientY;
|
|
16176
|
+
};
|
|
16177
|
+
/**
|
|
16178
|
+
* @return {?}
|
|
16179
|
+
*/
|
|
16180
|
+
ImageViewerComponent.prototype.toggleFullscreen = /**
|
|
16181
|
+
* @return {?}
|
|
16182
|
+
*/
|
|
16183
|
+
function () {
|
|
16184
|
+
this.fullscreen = !this.fullscreen;
|
|
16185
|
+
if (!this.fullscreen) {
|
|
16186
|
+
this.reset();
|
|
16187
|
+
}
|
|
16188
|
+
};
|
|
16189
|
+
/**
|
|
16190
|
+
* @return {?}
|
|
16191
|
+
*/
|
|
16192
|
+
ImageViewerComponent.prototype.triggerIndexBinding = /**
|
|
16193
|
+
* @return {?}
|
|
16194
|
+
*/
|
|
16195
|
+
function () {
|
|
16196
|
+
this.indexChange.emit(this.index);
|
|
16197
|
+
};
|
|
16198
|
+
/**
|
|
16199
|
+
* @return {?}
|
|
16200
|
+
*/
|
|
16201
|
+
ImageViewerComponent.prototype.triggerConfigBinding = /**
|
|
16202
|
+
* @return {?}
|
|
16203
|
+
*/
|
|
16204
|
+
function () {
|
|
16205
|
+
this.configChange.next(this.config);
|
|
16206
|
+
};
|
|
16207
|
+
/**
|
|
16208
|
+
* @param {?} name
|
|
16209
|
+
* @param {?} imageIndex
|
|
16210
|
+
* @return {?}
|
|
16211
|
+
*/
|
|
16212
|
+
ImageViewerComponent.prototype.fireCustomEvent = /**
|
|
16213
|
+
* @param {?} name
|
|
16214
|
+
* @param {?} imageIndex
|
|
16215
|
+
* @return {?}
|
|
16216
|
+
*/
|
|
16217
|
+
function (name, imageIndex) {
|
|
16218
|
+
this.customEvent.emit(new CustomEvent(name, imageIndex));
|
|
16219
|
+
};
|
|
16220
|
+
/**
|
|
16221
|
+
* @return {?}
|
|
16222
|
+
*/
|
|
16223
|
+
ImageViewerComponent.prototype.reset = /**
|
|
16224
|
+
* @return {?}
|
|
16225
|
+
*/
|
|
16226
|
+
function () {
|
|
16227
|
+
this.scale = 1;
|
|
16228
|
+
this.rotation = 0;
|
|
16229
|
+
this.translateX = 0;
|
|
16230
|
+
this.translateY = 0;
|
|
16231
|
+
this.updateStyle();
|
|
16232
|
+
};
|
|
16233
|
+
/**
|
|
16234
|
+
* @return {?}
|
|
16235
|
+
*/
|
|
16236
|
+
ImageViewerComponent.prototype.onMouseOver = /**
|
|
16237
|
+
* @return {?}
|
|
16238
|
+
*/
|
|
16239
|
+
function () {
|
|
16240
|
+
this.hovered = true;
|
|
16241
|
+
};
|
|
16242
|
+
/**
|
|
16243
|
+
* @return {?}
|
|
16244
|
+
*/
|
|
16245
|
+
ImageViewerComponent.prototype.onMouseLeave = /**
|
|
16246
|
+
* @return {?}
|
|
16247
|
+
*/
|
|
16248
|
+
function () {
|
|
16249
|
+
this.hovered = false;
|
|
16250
|
+
};
|
|
16251
|
+
/**
|
|
16252
|
+
* @private
|
|
16253
|
+
* @param {?} event
|
|
16254
|
+
* @return {?}
|
|
16255
|
+
*/
|
|
16256
|
+
ImageViewerComponent.prototype.canNavigate = /**
|
|
16257
|
+
* @private
|
|
16258
|
+
* @param {?} event
|
|
16259
|
+
* @return {?}
|
|
16260
|
+
*/
|
|
16261
|
+
function (event) {
|
|
16262
|
+
return event == null || (this.config.allowKeyboardNavigation && this.hovered);
|
|
16263
|
+
};
|
|
16264
|
+
/**
|
|
16265
|
+
* @private
|
|
16266
|
+
* @return {?}
|
|
16267
|
+
*/
|
|
16268
|
+
ImageViewerComponent.prototype.updateStyle = /**
|
|
16269
|
+
* @private
|
|
16270
|
+
* @return {?}
|
|
16271
|
+
*/
|
|
16272
|
+
function () {
|
|
16273
|
+
this.style.transform = "translate(" + this.translateX + "px, " + this.translateY + "px) rotate(" + this.rotation + "deg) scale(" + this.scale + ")";
|
|
16274
|
+
this.style.msTransform = this.style.transform;
|
|
16275
|
+
this.style.webkitTransform = this.style.transform;
|
|
16276
|
+
this.style.oTransform = this.style.transform;
|
|
16277
|
+
};
|
|
16278
|
+
/**
|
|
16279
|
+
* @private
|
|
16280
|
+
* @param {?} defaultValues
|
|
16281
|
+
* @param {?} overrideValues
|
|
16282
|
+
* @return {?}
|
|
16283
|
+
*/
|
|
16284
|
+
ImageViewerComponent.prototype.mergeConfig = /**
|
|
16285
|
+
* @private
|
|
16286
|
+
* @param {?} defaultValues
|
|
16287
|
+
* @param {?} overrideValues
|
|
16288
|
+
* @return {?}
|
|
16289
|
+
*/
|
|
16290
|
+
function (defaultValues, overrideValues) {
|
|
16291
|
+
/** @type {?} */
|
|
16292
|
+
var result = __assign({}, defaultValues);
|
|
16293
|
+
if (overrideValues) {
|
|
16294
|
+
result = __assign({}, defaultValues, overrideValues);
|
|
16295
|
+
if (overrideValues.btnIcons) {
|
|
16296
|
+
result.btnIcons = __assign({}, defaultValues.btnIcons, overrideValues.btnIcons);
|
|
16297
|
+
}
|
|
16298
|
+
}
|
|
16299
|
+
return result;
|
|
16300
|
+
};
|
|
16301
|
+
ImageViewerComponent.decorators = [
|
|
16302
|
+
{ type: Component, args: [{
|
|
16303
|
+
selector: 'ngx-image-viewer',
|
|
16304
|
+
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",
|
|
16305
|
+
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)}}"]
|
|
16306
|
+
}] }
|
|
16307
|
+
];
|
|
16308
|
+
/** @nocollapse */
|
|
16309
|
+
ImageViewerComponent.ctorParameters = function () { return [
|
|
16310
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: ['config',] }] }
|
|
16311
|
+
]; };
|
|
16312
|
+
ImageViewerComponent.propDecorators = {
|
|
16313
|
+
src: [{ type: Input }],
|
|
16314
|
+
index: [{ type: Input }],
|
|
16315
|
+
config: [{ type: Input }],
|
|
16316
|
+
indexChange: [{ type: Output }],
|
|
16317
|
+
configChange: [{ type: Output }],
|
|
16318
|
+
customEvent: [{ type: Output }],
|
|
16319
|
+
nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
16320
|
+
prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
16321
|
+
onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
|
|
16322
|
+
onMouseLeave: [{ type: HostListener, args: ['mouseleave',] }]
|
|
16323
|
+
};
|
|
16324
|
+
return ImageViewerComponent;
|
|
16325
|
+
}());
|
|
16326
|
+
|
|
16327
|
+
/**
|
|
16328
|
+
* @fileoverview added by tsickle
|
|
16329
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
16330
|
+
*/
|
|
16331
|
+
var image_preview = /** @class */ (function () {
|
|
16332
|
+
function image_preview() {
|
|
16333
|
+
this.u = null;
|
|
16334
|
+
this.already_open = false;
|
|
16335
|
+
this.config_photo = {
|
|
16336
|
+
btnClass: 'default',
|
|
16337
|
+
// The CSS class(es) that will apply to the buttons
|
|
16338
|
+
zoomFactor: 0.1,
|
|
16339
|
+
// The amount that the scale will be increased by
|
|
16340
|
+
containerBackgroundColor: '#ccc',
|
|
16341
|
+
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
16342
|
+
wheelZoom: true,
|
|
16343
|
+
// If true, the mouse wheel can be used to zoom in
|
|
16344
|
+
allowFullscreen: false,
|
|
16345
|
+
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
16346
|
+
allowKeyboardNavigation: true,
|
|
16347
|
+
// If true, the left / right arrow keys can be used for navigation
|
|
16348
|
+
btnIcons: {
|
|
16349
|
+
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
16350
|
+
zoomIn: 'fa fa-plus',
|
|
16351
|
+
zoomOut: 'fa fa-minus',
|
|
16352
|
+
rotateClockwise: 'fa fa-repeat',
|
|
16353
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
16354
|
+
next: 'fa fa-arrow-right',
|
|
16355
|
+
prev: 'fa fa-arrow-left',
|
|
16356
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
16357
|
+
},
|
|
16358
|
+
btnShow: {
|
|
16359
|
+
zoomIn: false,
|
|
16360
|
+
zoomOut: false,
|
|
16361
|
+
rotateClockwise: false,
|
|
16362
|
+
rotateCounterClockwise: false,
|
|
16363
|
+
next: false,
|
|
16364
|
+
prev: false
|
|
16365
|
+
}
|
|
16366
|
+
};
|
|
16367
|
+
this.config_photo_big = {
|
|
16368
|
+
btnClass: 'default',
|
|
16369
|
+
// The CSS class(es) that will apply to the buttons
|
|
16370
|
+
zoomFactor: 0.1,
|
|
16371
|
+
// The amount that the scale will be increased by
|
|
16372
|
+
containerBackgroundColor: '#ccc',
|
|
16373
|
+
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
16374
|
+
wheelZoom: true,
|
|
16375
|
+
// If true, the mouse wheel can be used to zoom in
|
|
16376
|
+
allowFullscreen: true,
|
|
16377
|
+
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
16378
|
+
allowKeyboardNavigation: true,
|
|
16379
|
+
// If true, the left / right arrow keys can be used for navigation
|
|
16380
|
+
btnIcons: {
|
|
16381
|
+
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
16382
|
+
zoomIn: 'fa fa-plus',
|
|
16383
|
+
zoomOut: 'fa fa-minus',
|
|
16384
|
+
rotateClockwise: 'fa fa-repeat',
|
|
16385
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
16386
|
+
next: 'fa fa-arrow-right',
|
|
16387
|
+
prev: 'fa fa-arrow-left',
|
|
16388
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
16389
|
+
},
|
|
16390
|
+
btnShow: {
|
|
16391
|
+
zoomIn: true,
|
|
16392
|
+
zoomOut: true,
|
|
16393
|
+
rotateClockwise: true,
|
|
16394
|
+
rotateCounterClockwise: true,
|
|
16395
|
+
next: true,
|
|
16396
|
+
prev: true
|
|
16397
|
+
}
|
|
16398
|
+
};
|
|
16399
|
+
}
|
|
16400
|
+
/**
|
|
16401
|
+
* @return {?}
|
|
16402
|
+
*/
|
|
16403
|
+
image_preview.prototype.toggle_up = /**
|
|
16404
|
+
* @return {?}
|
|
16405
|
+
*/
|
|
16406
|
+
function () {
|
|
16407
|
+
console.log('u ', this.u);
|
|
16408
|
+
console.log('photo_c ', this.photo_c);
|
|
16409
|
+
this.photo_c.src = [];
|
|
16410
|
+
this.photo_c.src.push(this.u.image_original[0]);
|
|
16411
|
+
console.log('src ', this.photo_c.src);
|
|
16412
|
+
this.photo_c.config = this.config_photo_big;
|
|
16413
|
+
this.photo_c.toggleFullscreen();
|
|
16414
|
+
this.already_open = true;
|
|
16415
|
+
};
|
|
16416
|
+
/**
|
|
16417
|
+
* @param {?} event
|
|
16418
|
+
* @return {?}
|
|
16419
|
+
*/
|
|
16420
|
+
image_preview.prototype.handleEvent = /**
|
|
16421
|
+
* @param {?} event
|
|
16422
|
+
* @return {?}
|
|
16423
|
+
*/
|
|
16424
|
+
function (event) {
|
|
16425
|
+
};
|
|
16426
|
+
/**
|
|
16427
|
+
* @return {?}
|
|
16428
|
+
*/
|
|
16429
|
+
image_preview.prototype.ngOnInit = /**
|
|
16430
|
+
* @return {?}
|
|
16431
|
+
*/
|
|
16432
|
+
function () {
|
|
16433
|
+
};
|
|
16434
|
+
image_preview.decorators = [
|
|
16435
|
+
{ type: Component, args: [{
|
|
16436
|
+
selector: 'image_preview',
|
|
16437
|
+
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" >\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <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>\n \n </div>\n",
|
|
16438
|
+
styles: ["\n\n "]
|
|
16439
|
+
}] }
|
|
16440
|
+
];
|
|
16441
|
+
image_preview.propDecorators = {
|
|
16442
|
+
u: [{ type: Input }],
|
|
16443
|
+
photo_c: [{ type: ViewChild, args: ['photo_c',] }]
|
|
16444
|
+
};
|
|
16445
|
+
return image_preview;
|
|
16446
|
+
}());
|
|
16447
|
+
|
|
16448
|
+
/**
|
|
16449
|
+
* @fileoverview added by tsickle
|
|
16450
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
16451
|
+
*/
|
|
16452
|
+
var ToggleFullscreenDirective = /** @class */ (function () {
|
|
16453
|
+
function ToggleFullscreenDirective(el) {
|
|
16454
|
+
this.el = el;
|
|
16455
|
+
}
|
|
16456
|
+
/**
|
|
16457
|
+
* @return {?}
|
|
16458
|
+
*/
|
|
16459
|
+
ToggleFullscreenDirective.prototype.ngOnChanges = /**
|
|
16460
|
+
* @return {?}
|
|
16461
|
+
*/
|
|
16462
|
+
function () {
|
|
16463
|
+
if (this.isFullscreen && enabled) {
|
|
16464
|
+
request(this.el.nativeElement);
|
|
16465
|
+
}
|
|
16466
|
+
else if (enabled) {
|
|
16467
|
+
exit();
|
|
16468
|
+
}
|
|
16469
|
+
};
|
|
16470
|
+
ToggleFullscreenDirective.decorators = [
|
|
16471
|
+
{ type: Directive, args: [{
|
|
16472
|
+
selector: '[ngxToggleFullscreen]'
|
|
16473
|
+
},] }
|
|
16474
|
+
];
|
|
16475
|
+
/** @nocollapse */
|
|
16476
|
+
ToggleFullscreenDirective.ctorParameters = function () { return [
|
|
16477
|
+
{ type: ElementRef }
|
|
16478
|
+
]; };
|
|
16479
|
+
ToggleFullscreenDirective.propDecorators = {
|
|
16480
|
+
isFullscreen: [{ type: Input, args: ['ngxToggleFullscreen',] }]
|
|
16481
|
+
};
|
|
16482
|
+
return ToggleFullscreenDirective;
|
|
16483
|
+
}());
|
|
16484
|
+
|
|
15940
16485
|
/**
|
|
15941
16486
|
* @fileoverview added by tsickle
|
|
15942
16487
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -16006,14 +16551,15 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
16006
16551
|
AgmCoreModule.forRoot({
|
|
16007
16552
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
16008
16553
|
}),
|
|
16009
|
-
FlexLayoutModule, MarkdownModule, CKEditorModule
|
|
16010
|
-
exports: [WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
16554
|
+
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
16555
|
+
exports: [image_preview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
16011
16556
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
16012
16557
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
16013
16558
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
16014
16559
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
16015
16560
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
|
|
16016
|
-
declarations: [
|
|
16561
|
+
declarations: [ImageViewerComponent,
|
|
16562
|
+
ToggleFullscreenDirective, image_preview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
16017
16563
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
16018
16564
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
16019
16565
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
@@ -16025,7 +16571,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
16025
16571
|
],
|
|
16026
16572
|
entryComponents: [
|
|
16027
16573
|
// Customize dialog must be import here.
|
|
16028
|
-
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,
|
|
16574
|
+
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,
|
|
16029
16575
|
FHPickListComponent,
|
|
16030
16576
|
FHConfirmComponent,
|
|
16031
16577
|
win_time_slider,
|
|
@@ -16066,7 +16612,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
16066
16612
|
function (next, state) {
|
|
16067
16613
|
var _this = this;
|
|
16068
16614
|
this.routingDestination = next.url[0].path;
|
|
16069
|
-
//
|
|
16615
|
+
// //console.log(this.routingDestination);
|
|
16070
16616
|
if (this.routingDestination == '')
|
|
16071
16617
|
return true;
|
|
16072
16618
|
if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
|
|
@@ -16074,14 +16620,14 @@ var FHGuard = /** @class */ (function () {
|
|
|
16074
16620
|
if (this.auth.checkCredentials()) {
|
|
16075
16621
|
if (this.routingDestination == 'home')
|
|
16076
16622
|
return true;
|
|
16077
|
-
console.log('canActivate 1');
|
|
16623
|
+
//console.log('canActivate 1');
|
|
16078
16624
|
if (this.app_s.user_isadmin != null)
|
|
16079
16625
|
if (this.app_s.user_isadmin == "1")
|
|
16080
16626
|
return true;
|
|
16081
16627
|
return new Promise(function (resolve) {
|
|
16082
|
-
console.log('canActivate 2');
|
|
16628
|
+
//console.log('canActivate 2');
|
|
16083
16629
|
if (_this.arr_accessi != null) {
|
|
16084
|
-
console.log('canActivate 3');
|
|
16630
|
+
//console.log('canActivate 3');
|
|
16085
16631
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
16086
16632
|
if (_this.arr_accessi[i].type == 'M')
|
|
16087
16633
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
@@ -16089,13 +16635,13 @@ var FHGuard = /** @class */ (function () {
|
|
|
16089
16635
|
return;
|
|
16090
16636
|
}
|
|
16091
16637
|
}
|
|
16092
|
-
console.log('canActivate 4');
|
|
16638
|
+
//console.log('canActivate 4');
|
|
16093
16639
|
_this.toast.error("ACCESS DENIED [0X0003]");
|
|
16094
16640
|
_this.slimLoadingBarService.complete();
|
|
16095
16641
|
resolve(false);
|
|
16096
16642
|
return;
|
|
16097
16643
|
}
|
|
16098
|
-
console.log('canActivate 5');
|
|
16644
|
+
//console.log('canActivate 5');
|
|
16099
16645
|
/** @type {?} */
|
|
16100
16646
|
var p = new QParam();
|
|
16101
16647
|
p.sql = "SELECT_USER_ACCESS_AUTH";
|
|
@@ -16106,7 +16652,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
16106
16652
|
if (data != null)
|
|
16107
16653
|
if (data.result_msg == "OK")
|
|
16108
16654
|
if (data.result_data.length > 0) {
|
|
16109
|
-
console.log('canActivate 6');
|
|
16655
|
+
//console.log('canActivate 6');
|
|
16110
16656
|
_this.appService.user_roles = data.result_data[0].roles;
|
|
16111
16657
|
if (_this.appService.user_roles.length > 0)
|
|
16112
16658
|
_this.appService.user_roles = _this.appService.user_roles.substr(1);
|
|
@@ -16121,12 +16667,12 @@ var FHGuard = /** @class */ (function () {
|
|
|
16121
16667
|
_this.appService.getState().app_enabled = new Array();
|
|
16122
16668
|
p_1.types = ['string'];
|
|
16123
16669
|
p_1.values = [_this.appService.user];
|
|
16124
|
-
console.log('canActivate 8');
|
|
16670
|
+
//console.log('canActivate 8');
|
|
16125
16671
|
_this.querys.doQuery(p_1).subscribe(function (data) {
|
|
16126
|
-
console.log('canActivate 9');
|
|
16672
|
+
//console.log('canActivate 9');
|
|
16127
16673
|
_this.arr_accessi = data.result_data;
|
|
16128
16674
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
16129
|
-
console.log('[' +
|
|
16675
|
+
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
16130
16676
|
if (_this.arr_accessi[i].type == 'M') {
|
|
16131
16677
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
16132
16678
|
resolve(true);
|
|
@@ -16134,7 +16680,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
16134
16680
|
}
|
|
16135
16681
|
}
|
|
16136
16682
|
}
|
|
16137
|
-
console.log('canActivate 11');
|
|
16683
|
+
//console.log('canActivate 11');
|
|
16138
16684
|
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
16139
16685
|
resolve(false);
|
|
16140
16686
|
_this.slimLoadingBarService.complete();
|
|
@@ -16155,12 +16701,12 @@ var FHGuard = /** @class */ (function () {
|
|
|
16155
16701
|
_this.appService.getState().app_enabled = new Array();
|
|
16156
16702
|
p_2.types = ['string'];
|
|
16157
16703
|
p_2.values = [_this.appService.user];
|
|
16158
|
-
console.log('canActivate 8');
|
|
16704
|
+
//console.log('canActivate 8');
|
|
16159
16705
|
_this.querys.doQuery(p_2).subscribe(function (data) {
|
|
16160
|
-
console.log('canActivate 9');
|
|
16706
|
+
//console.log('canActivate 9');
|
|
16161
16707
|
_this.arr_accessi = data.result_data;
|
|
16162
16708
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
16163
|
-
console.log('[' +
|
|
16709
|
+
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
16164
16710
|
if (_this.arr_accessi[i].type == 'M') {
|
|
16165
16711
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
16166
16712
|
resolve(true);
|
|
@@ -16168,7 +16714,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
16168
16714
|
}
|
|
16169
16715
|
}
|
|
16170
16716
|
}
|
|
16171
|
-
console.log('canActivate 11');
|
|
16717
|
+
//console.log('canActivate 11');
|
|
16172
16718
|
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
16173
16719
|
resolve(false);
|
|
16174
16720
|
_this.slimLoadingBarService.complete();
|
|
@@ -16176,7 +16722,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
16176
16722
|
});
|
|
16177
16723
|
}
|
|
16178
16724
|
});
|
|
16179
|
-
console.log('canActivate 12');
|
|
16725
|
+
//console.log('canActivate 12');
|
|
16180
16726
|
}
|
|
16181
16727
|
else {
|
|
16182
16728
|
this.toast.error("ACCESS DENIED [0X0004]");
|
|
@@ -16224,6 +16770,6 @@ var dt = /** @class */ (function () {
|
|
|
16224
16770
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
16225
16771
|
*/
|
|
16226
16772
|
|
|
16227
|
-
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
|
|
16773
|
+
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 };
|
|
16228
16774
|
|
|
16229
16775
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|