@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('@angular/forms'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/material'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', '@angular/forms', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/material', '
|
|
4
|
-
(factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.ng.forms,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.i1$1,global.core$1,global.ng2Dragula,global.ng.material,global.
|
|
5
|
-
}(this, (function (exports,ngxSimpleCrypt,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,forms,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,i1$1,core$1,ng2Dragula,material,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('@angular/forms'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/material'), require('screenfull'), require('@angular/router'), require('@angular/http'), require('ng2-slim-loading-bar'), require('ngx-toastr'), require('@angular/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', '@angular/forms', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/material', 'screenfull', '@angular/router', '@angular/http', 'ng2-slim-loading-bar', 'ngx-toastr', '@angular/core'], factory) :
|
|
4
|
+
(factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.ng.forms,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.i1$1,global.core$1,global.ng2Dragula,global.ng.material,global.screenfull,global.ng.router,global.ng.http,global.ng2SlimLoadingBar,global.i3,global.ng.core));
|
|
5
|
+
}(this, (function (exports,ngxSimpleCrypt,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,forms,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,i1$1,core$1,ng2Dragula,material,screenfull,i4,http,ng2SlimLoadingBar,i3,i0) { 'use strict';
|
|
6
6
|
|
|
7
7
|
NavigatedViewer = NavigatedViewer && NavigatedViewer.hasOwnProperty('default') ? NavigatedViewer['default'] : NavigatedViewer;
|
|
8
8
|
|
|
@@ -503,6 +503,18 @@
|
|
|
503
503
|
function __() { this.constructor = d; }
|
|
504
504
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
505
505
|
}
|
|
506
|
+
var __assign = function () {
|
|
507
|
+
__assign = Object.assign || function __assign(t) {
|
|
508
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
509
|
+
s = arguments[i];
|
|
510
|
+
for (var p in s)
|
|
511
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
512
|
+
t[p] = s[p];
|
|
513
|
+
}
|
|
514
|
+
return t;
|
|
515
|
+
};
|
|
516
|
+
return __assign.apply(this, arguments);
|
|
517
|
+
};
|
|
506
518
|
function __read(o, n) {
|
|
507
519
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
508
520
|
if (!m)
|
|
@@ -13603,6 +13615,557 @@
|
|
|
13603
13615
|
return WinAskButtonsComponent;
|
|
13604
13616
|
}());
|
|
13605
13617
|
|
|
13618
|
+
/**
|
|
13619
|
+
* @fileoverview added by tsickle
|
|
13620
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13621
|
+
*/
|
|
13622
|
+
var win_show_image = /** @class */ (function () {
|
|
13623
|
+
function win_show_image(dialogRef) {
|
|
13624
|
+
this.dialogRef = dialogRef;
|
|
13625
|
+
this.imageIndex = 0;
|
|
13626
|
+
this.images = [];
|
|
13627
|
+
}
|
|
13628
|
+
/**
|
|
13629
|
+
* @return {?}
|
|
13630
|
+
*/
|
|
13631
|
+
win_show_image.prototype.ngOnInit = /**
|
|
13632
|
+
* @return {?}
|
|
13633
|
+
*/
|
|
13634
|
+
function () {
|
|
13635
|
+
};
|
|
13636
|
+
win_show_image.decorators = [
|
|
13637
|
+
{ type: i0.Component, args: [{
|
|
13638
|
+
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 ",
|
|
13639
|
+
styles: ["\n \n "]
|
|
13640
|
+
}] }
|
|
13641
|
+
];
|
|
13642
|
+
/** @nocollapse */
|
|
13643
|
+
win_show_image.ctorParameters = function () {
|
|
13644
|
+
return [
|
|
13645
|
+
{ type: material.MatDialogRef }
|
|
13646
|
+
];
|
|
13647
|
+
};
|
|
13648
|
+
return win_show_image;
|
|
13649
|
+
}());
|
|
13650
|
+
|
|
13651
|
+
/**
|
|
13652
|
+
* @fileoverview added by tsickle
|
|
13653
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13654
|
+
*/
|
|
13655
|
+
var image_preview = /** @class */ (function () {
|
|
13656
|
+
function image_preview() {
|
|
13657
|
+
this.u = null;
|
|
13658
|
+
this.already_open = false;
|
|
13659
|
+
this.config_photo = {
|
|
13660
|
+
btnClass: 'default',
|
|
13661
|
+
// The CSS class(es) that will apply to the buttons
|
|
13662
|
+
zoomFactor: 0.1,
|
|
13663
|
+
// The amount that the scale will be increased by
|
|
13664
|
+
containerBackgroundColor: '#ccc',
|
|
13665
|
+
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
13666
|
+
wheelZoom: true,
|
|
13667
|
+
// If true, the mouse wheel can be used to zoom in
|
|
13668
|
+
allowFullscreen: false,
|
|
13669
|
+
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
13670
|
+
allowKeyboardNavigation: true,
|
|
13671
|
+
// If true, the left / right arrow keys can be used for navigation
|
|
13672
|
+
btnIcons: {
|
|
13673
|
+
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
13674
|
+
zoomIn: 'fa fa-plus',
|
|
13675
|
+
zoomOut: 'fa fa-minus',
|
|
13676
|
+
rotateClockwise: 'fa fa-repeat',
|
|
13677
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
13678
|
+
next: 'fa fa-arrow-right',
|
|
13679
|
+
prev: 'fa fa-arrow-left',
|
|
13680
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
13681
|
+
},
|
|
13682
|
+
btnShow: {
|
|
13683
|
+
zoomIn: false,
|
|
13684
|
+
zoomOut: false,
|
|
13685
|
+
rotateClockwise: false,
|
|
13686
|
+
rotateCounterClockwise: false,
|
|
13687
|
+
next: false,
|
|
13688
|
+
prev: false
|
|
13689
|
+
}
|
|
13690
|
+
};
|
|
13691
|
+
this.config_photo_big = {
|
|
13692
|
+
btnClass: 'default',
|
|
13693
|
+
// The CSS class(es) that will apply to the buttons
|
|
13694
|
+
zoomFactor: 0.1,
|
|
13695
|
+
// The amount that the scale will be increased by
|
|
13696
|
+
containerBackgroundColor: '#ccc',
|
|
13697
|
+
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
13698
|
+
wheelZoom: true,
|
|
13699
|
+
// If true, the mouse wheel can be used to zoom in
|
|
13700
|
+
allowFullscreen: true,
|
|
13701
|
+
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
13702
|
+
allowKeyboardNavigation: true,
|
|
13703
|
+
// If true, the left / right arrow keys can be used for navigation
|
|
13704
|
+
btnIcons: {
|
|
13705
|
+
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
13706
|
+
zoomIn: 'fa fa-plus',
|
|
13707
|
+
zoomOut: 'fa fa-minus',
|
|
13708
|
+
rotateClockwise: 'fa fa-repeat',
|
|
13709
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
13710
|
+
next: 'fa fa-arrow-right',
|
|
13711
|
+
prev: 'fa fa-arrow-left',
|
|
13712
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
13713
|
+
},
|
|
13714
|
+
btnShow: {
|
|
13715
|
+
zoomIn: true,
|
|
13716
|
+
zoomOut: true,
|
|
13717
|
+
rotateClockwise: true,
|
|
13718
|
+
rotateCounterClockwise: true,
|
|
13719
|
+
next: true,
|
|
13720
|
+
prev: true
|
|
13721
|
+
}
|
|
13722
|
+
};
|
|
13723
|
+
}
|
|
13724
|
+
/**
|
|
13725
|
+
* @return {?}
|
|
13726
|
+
*/
|
|
13727
|
+
image_preview.prototype.toggle_up = /**
|
|
13728
|
+
* @return {?}
|
|
13729
|
+
*/
|
|
13730
|
+
function () {
|
|
13731
|
+
console.log('u ', this.u);
|
|
13732
|
+
console.log('photo_c ', this.photo_c);
|
|
13733
|
+
this.photo_c.src = [];
|
|
13734
|
+
this.photo_c.src.push(this.u.image_original[0]);
|
|
13735
|
+
console.log('src ', this.photo_c.src);
|
|
13736
|
+
this.photo_c.config = this.config_photo_big;
|
|
13737
|
+
this.photo_c.toggleFullscreen();
|
|
13738
|
+
this.already_open = true;
|
|
13739
|
+
};
|
|
13740
|
+
/**
|
|
13741
|
+
* @param {?} event
|
|
13742
|
+
* @return {?}
|
|
13743
|
+
*/
|
|
13744
|
+
image_preview.prototype.handleEvent = /**
|
|
13745
|
+
* @param {?} event
|
|
13746
|
+
* @return {?}
|
|
13747
|
+
*/
|
|
13748
|
+
function (event) {
|
|
13749
|
+
};
|
|
13750
|
+
/**
|
|
13751
|
+
* @return {?}
|
|
13752
|
+
*/
|
|
13753
|
+
image_preview.prototype.ngOnInit = /**
|
|
13754
|
+
* @return {?}
|
|
13755
|
+
*/
|
|
13756
|
+
function () {
|
|
13757
|
+
};
|
|
13758
|
+
image_preview.decorators = [
|
|
13759
|
+
{ type: i0.Component, args: [{
|
|
13760
|
+
selector: 'image_preview',
|
|
13761
|
+
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",
|
|
13762
|
+
styles: ["\n\n "]
|
|
13763
|
+
}] }
|
|
13764
|
+
];
|
|
13765
|
+
image_preview.propDecorators = {
|
|
13766
|
+
u: [{ type: i0.Input }],
|
|
13767
|
+
photo_c: [{ type: i0.ViewChild, args: ['photo_c',] }]
|
|
13768
|
+
};
|
|
13769
|
+
return image_preview;
|
|
13770
|
+
}());
|
|
13771
|
+
|
|
13772
|
+
/**
|
|
13773
|
+
* @fileoverview added by tsickle
|
|
13774
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13775
|
+
*/
|
|
13776
|
+
var CustomEvent = /** @class */ (function () {
|
|
13777
|
+
function CustomEvent(name, imageIndex) {
|
|
13778
|
+
this.name = name;
|
|
13779
|
+
this.imageIndex = imageIndex;
|
|
13780
|
+
}
|
|
13781
|
+
return CustomEvent;
|
|
13782
|
+
}());
|
|
13783
|
+
|
|
13784
|
+
/**
|
|
13785
|
+
* @fileoverview added by tsickle
|
|
13786
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13787
|
+
*/
|
|
13788
|
+
/** @type {?} */
|
|
13789
|
+
var DEFAULT_CONFIG = {
|
|
13790
|
+
btnClass: 'default',
|
|
13791
|
+
zoomFactor: 0.1,
|
|
13792
|
+
containerBackgroundColor: '#ccc',
|
|
13793
|
+
wheelZoom: false,
|
|
13794
|
+
allowFullscreen: true,
|
|
13795
|
+
allowKeyboardNavigation: true,
|
|
13796
|
+
btnShow: {
|
|
13797
|
+
zoomIn: true,
|
|
13798
|
+
zoomOut: true,
|
|
13799
|
+
rotateClockwise: true,
|
|
13800
|
+
rotateCounterClockwise: true,
|
|
13801
|
+
next: true,
|
|
13802
|
+
prev: true
|
|
13803
|
+
},
|
|
13804
|
+
btnIcons: {
|
|
13805
|
+
zoomIn: 'fa fa-plus',
|
|
13806
|
+
zoomOut: 'fa fa-minus',
|
|
13807
|
+
rotateClockwise: 'fa fa-repeat',
|
|
13808
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
13809
|
+
next: 'fa fa-arrow-right',
|
|
13810
|
+
prev: 'fa fa-arrow-left',
|
|
13811
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
13812
|
+
}
|
|
13813
|
+
};
|
|
13814
|
+
var ImageViewerComponent = /** @class */ (function () {
|
|
13815
|
+
function ImageViewerComponent(moduleConfig) {
|
|
13816
|
+
this.moduleConfig = moduleConfig;
|
|
13817
|
+
this.index = 0;
|
|
13818
|
+
this.indexChange = new i0.EventEmitter();
|
|
13819
|
+
this.configChange = new i0.EventEmitter();
|
|
13820
|
+
this.customEvent = new i0.EventEmitter();
|
|
13821
|
+
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
13822
|
+
this.fullscreen = false;
|
|
13823
|
+
this.loading = true;
|
|
13824
|
+
this.scale = 1;
|
|
13825
|
+
this.rotation = 0;
|
|
13826
|
+
this.translateX = 0;
|
|
13827
|
+
this.translateY = 0;
|
|
13828
|
+
this.hovered = false;
|
|
13829
|
+
}
|
|
13830
|
+
/**
|
|
13831
|
+
* @return {?}
|
|
13832
|
+
*/
|
|
13833
|
+
ImageViewerComponent.prototype.ngOnInit = /**
|
|
13834
|
+
* @return {?}
|
|
13835
|
+
*/
|
|
13836
|
+
function () {
|
|
13837
|
+
/** @type {?} */
|
|
13838
|
+
var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
|
|
13839
|
+
this.config = this.mergeConfig(merged, this.config);
|
|
13840
|
+
this.triggerConfigBinding();
|
|
13841
|
+
};
|
|
13842
|
+
/**
|
|
13843
|
+
* @param {?} event
|
|
13844
|
+
* @return {?}
|
|
13845
|
+
*/
|
|
13846
|
+
ImageViewerComponent.prototype.nextImage = /**
|
|
13847
|
+
* @param {?} event
|
|
13848
|
+
* @return {?}
|
|
13849
|
+
*/
|
|
13850
|
+
function (event) {
|
|
13851
|
+
if (this.canNavigate(event) && this.index < this.src.length - 1) {
|
|
13852
|
+
this.loading = true;
|
|
13853
|
+
this.index++;
|
|
13854
|
+
this.triggerIndexBinding();
|
|
13855
|
+
this.reset();
|
|
13856
|
+
}
|
|
13857
|
+
};
|
|
13858
|
+
/**
|
|
13859
|
+
* @param {?} event
|
|
13860
|
+
* @return {?}
|
|
13861
|
+
*/
|
|
13862
|
+
ImageViewerComponent.prototype.prevImage = /**
|
|
13863
|
+
* @param {?} event
|
|
13864
|
+
* @return {?}
|
|
13865
|
+
*/
|
|
13866
|
+
function (event) {
|
|
13867
|
+
if (this.canNavigate(event) && this.index > 0) {
|
|
13868
|
+
this.loading = true;
|
|
13869
|
+
this.index--;
|
|
13870
|
+
this.triggerIndexBinding();
|
|
13871
|
+
this.reset();
|
|
13872
|
+
}
|
|
13873
|
+
};
|
|
13874
|
+
/**
|
|
13875
|
+
* @return {?}
|
|
13876
|
+
*/
|
|
13877
|
+
ImageViewerComponent.prototype.zoomIn = /**
|
|
13878
|
+
* @return {?}
|
|
13879
|
+
*/
|
|
13880
|
+
function () {
|
|
13881
|
+
this.scale *= (1 + this.config.zoomFactor);
|
|
13882
|
+
this.updateStyle();
|
|
13883
|
+
};
|
|
13884
|
+
/**
|
|
13885
|
+
* @return {?}
|
|
13886
|
+
*/
|
|
13887
|
+
ImageViewerComponent.prototype.zoomOut = /**
|
|
13888
|
+
* @return {?}
|
|
13889
|
+
*/
|
|
13890
|
+
function () {
|
|
13891
|
+
if (this.scale > this.config.zoomFactor) {
|
|
13892
|
+
this.scale /= (1 + this.config.zoomFactor);
|
|
13893
|
+
}
|
|
13894
|
+
this.updateStyle();
|
|
13895
|
+
};
|
|
13896
|
+
/**
|
|
13897
|
+
* @param {?} evt
|
|
13898
|
+
* @return {?}
|
|
13899
|
+
*/
|
|
13900
|
+
ImageViewerComponent.prototype.scrollZoom = /**
|
|
13901
|
+
* @param {?} evt
|
|
13902
|
+
* @return {?}
|
|
13903
|
+
*/
|
|
13904
|
+
function (evt) {
|
|
13905
|
+
if (this.config.wheelZoom) {
|
|
13906
|
+
evt.deltaY > 0 ? this.zoomOut() : this.zoomIn();
|
|
13907
|
+
return false;
|
|
13908
|
+
}
|
|
13909
|
+
};
|
|
13910
|
+
/**
|
|
13911
|
+
* @return {?}
|
|
13912
|
+
*/
|
|
13913
|
+
ImageViewerComponent.prototype.rotateClockwise = /**
|
|
13914
|
+
* @return {?}
|
|
13915
|
+
*/
|
|
13916
|
+
function () {
|
|
13917
|
+
this.rotation += 90;
|
|
13918
|
+
this.updateStyle();
|
|
13919
|
+
};
|
|
13920
|
+
/**
|
|
13921
|
+
* @return {?}
|
|
13922
|
+
*/
|
|
13923
|
+
ImageViewerComponent.prototype.rotateCounterClockwise = /**
|
|
13924
|
+
* @return {?}
|
|
13925
|
+
*/
|
|
13926
|
+
function () {
|
|
13927
|
+
this.rotation -= 90;
|
|
13928
|
+
this.updateStyle();
|
|
13929
|
+
};
|
|
13930
|
+
/**
|
|
13931
|
+
* @return {?}
|
|
13932
|
+
*/
|
|
13933
|
+
ImageViewerComponent.prototype.onLoad = /**
|
|
13934
|
+
* @return {?}
|
|
13935
|
+
*/
|
|
13936
|
+
function () {
|
|
13937
|
+
this.loading = false;
|
|
13938
|
+
};
|
|
13939
|
+
/**
|
|
13940
|
+
* @return {?}
|
|
13941
|
+
*/
|
|
13942
|
+
ImageViewerComponent.prototype.onLoadStart = /**
|
|
13943
|
+
* @return {?}
|
|
13944
|
+
*/
|
|
13945
|
+
function () {
|
|
13946
|
+
this.loading = true;
|
|
13947
|
+
};
|
|
13948
|
+
/**
|
|
13949
|
+
* @param {?} evt
|
|
13950
|
+
* @return {?}
|
|
13951
|
+
*/
|
|
13952
|
+
ImageViewerComponent.prototype.onDragOver = /**
|
|
13953
|
+
* @param {?} evt
|
|
13954
|
+
* @return {?}
|
|
13955
|
+
*/
|
|
13956
|
+
function (evt) {
|
|
13957
|
+
this.translateX += (evt.clientX - this.prevX);
|
|
13958
|
+
this.translateY += (evt.clientY - this.prevY);
|
|
13959
|
+
this.prevX = evt.clientX;
|
|
13960
|
+
this.prevY = evt.clientY;
|
|
13961
|
+
this.updateStyle();
|
|
13962
|
+
};
|
|
13963
|
+
/**
|
|
13964
|
+
* @param {?} evt
|
|
13965
|
+
* @return {?}
|
|
13966
|
+
*/
|
|
13967
|
+
ImageViewerComponent.prototype.onDragStart = /**
|
|
13968
|
+
* @param {?} evt
|
|
13969
|
+
* @return {?}
|
|
13970
|
+
*/
|
|
13971
|
+
function (evt) {
|
|
13972
|
+
if (evt.dataTransfer && evt.dataTransfer.setDragImage) {
|
|
13973
|
+
evt.dataTransfer.setDragImage(evt.target.nextElementSibling, 0, 0);
|
|
13974
|
+
}
|
|
13975
|
+
this.prevX = evt.clientX;
|
|
13976
|
+
this.prevY = evt.clientY;
|
|
13977
|
+
};
|
|
13978
|
+
/**
|
|
13979
|
+
* @return {?}
|
|
13980
|
+
*/
|
|
13981
|
+
ImageViewerComponent.prototype.toggleFullscreen = /**
|
|
13982
|
+
* @return {?}
|
|
13983
|
+
*/
|
|
13984
|
+
function () {
|
|
13985
|
+
this.fullscreen = !this.fullscreen;
|
|
13986
|
+
if (!this.fullscreen) {
|
|
13987
|
+
this.reset();
|
|
13988
|
+
}
|
|
13989
|
+
};
|
|
13990
|
+
/**
|
|
13991
|
+
* @return {?}
|
|
13992
|
+
*/
|
|
13993
|
+
ImageViewerComponent.prototype.triggerIndexBinding = /**
|
|
13994
|
+
* @return {?}
|
|
13995
|
+
*/
|
|
13996
|
+
function () {
|
|
13997
|
+
this.indexChange.emit(this.index);
|
|
13998
|
+
};
|
|
13999
|
+
/**
|
|
14000
|
+
* @return {?}
|
|
14001
|
+
*/
|
|
14002
|
+
ImageViewerComponent.prototype.triggerConfigBinding = /**
|
|
14003
|
+
* @return {?}
|
|
14004
|
+
*/
|
|
14005
|
+
function () {
|
|
14006
|
+
this.configChange.next(this.config);
|
|
14007
|
+
};
|
|
14008
|
+
/**
|
|
14009
|
+
* @param {?} name
|
|
14010
|
+
* @param {?} imageIndex
|
|
14011
|
+
* @return {?}
|
|
14012
|
+
*/
|
|
14013
|
+
ImageViewerComponent.prototype.fireCustomEvent = /**
|
|
14014
|
+
* @param {?} name
|
|
14015
|
+
* @param {?} imageIndex
|
|
14016
|
+
* @return {?}
|
|
14017
|
+
*/
|
|
14018
|
+
function (name, imageIndex) {
|
|
14019
|
+
this.customEvent.emit(new CustomEvent(name, imageIndex));
|
|
14020
|
+
};
|
|
14021
|
+
/**
|
|
14022
|
+
* @return {?}
|
|
14023
|
+
*/
|
|
14024
|
+
ImageViewerComponent.prototype.reset = /**
|
|
14025
|
+
* @return {?}
|
|
14026
|
+
*/
|
|
14027
|
+
function () {
|
|
14028
|
+
this.scale = 1;
|
|
14029
|
+
this.rotation = 0;
|
|
14030
|
+
this.translateX = 0;
|
|
14031
|
+
this.translateY = 0;
|
|
14032
|
+
this.updateStyle();
|
|
14033
|
+
};
|
|
14034
|
+
/**
|
|
14035
|
+
* @return {?}
|
|
14036
|
+
*/
|
|
14037
|
+
ImageViewerComponent.prototype.onMouseOver = /**
|
|
14038
|
+
* @return {?}
|
|
14039
|
+
*/
|
|
14040
|
+
function () {
|
|
14041
|
+
this.hovered = true;
|
|
14042
|
+
};
|
|
14043
|
+
/**
|
|
14044
|
+
* @return {?}
|
|
14045
|
+
*/
|
|
14046
|
+
ImageViewerComponent.prototype.onMouseLeave = /**
|
|
14047
|
+
* @return {?}
|
|
14048
|
+
*/
|
|
14049
|
+
function () {
|
|
14050
|
+
this.hovered = false;
|
|
14051
|
+
};
|
|
14052
|
+
/**
|
|
14053
|
+
* @private
|
|
14054
|
+
* @param {?} event
|
|
14055
|
+
* @return {?}
|
|
14056
|
+
*/
|
|
14057
|
+
ImageViewerComponent.prototype.canNavigate = /**
|
|
14058
|
+
* @private
|
|
14059
|
+
* @param {?} event
|
|
14060
|
+
* @return {?}
|
|
14061
|
+
*/
|
|
14062
|
+
function (event) {
|
|
14063
|
+
return event == null || (this.config.allowKeyboardNavigation && this.hovered);
|
|
14064
|
+
};
|
|
14065
|
+
/**
|
|
14066
|
+
* @private
|
|
14067
|
+
* @return {?}
|
|
14068
|
+
*/
|
|
14069
|
+
ImageViewerComponent.prototype.updateStyle = /**
|
|
14070
|
+
* @private
|
|
14071
|
+
* @return {?}
|
|
14072
|
+
*/
|
|
14073
|
+
function () {
|
|
14074
|
+
this.style.transform = "translate(" + this.translateX + "px, " + this.translateY + "px) rotate(" + this.rotation + "deg) scale(" + this.scale + ")";
|
|
14075
|
+
this.style.msTransform = this.style.transform;
|
|
14076
|
+
this.style.webkitTransform = this.style.transform;
|
|
14077
|
+
this.style.oTransform = this.style.transform;
|
|
14078
|
+
};
|
|
14079
|
+
/**
|
|
14080
|
+
* @private
|
|
14081
|
+
* @param {?} defaultValues
|
|
14082
|
+
* @param {?} overrideValues
|
|
14083
|
+
* @return {?}
|
|
14084
|
+
*/
|
|
14085
|
+
ImageViewerComponent.prototype.mergeConfig = /**
|
|
14086
|
+
* @private
|
|
14087
|
+
* @param {?} defaultValues
|
|
14088
|
+
* @param {?} overrideValues
|
|
14089
|
+
* @return {?}
|
|
14090
|
+
*/
|
|
14091
|
+
function (defaultValues, overrideValues) {
|
|
14092
|
+
/** @type {?} */
|
|
14093
|
+
var result = __assign({}, defaultValues);
|
|
14094
|
+
if (overrideValues) {
|
|
14095
|
+
result = __assign({}, defaultValues, overrideValues);
|
|
14096
|
+
if (overrideValues.btnIcons) {
|
|
14097
|
+
result.btnIcons = __assign({}, defaultValues.btnIcons, overrideValues.btnIcons);
|
|
14098
|
+
}
|
|
14099
|
+
}
|
|
14100
|
+
return result;
|
|
14101
|
+
};
|
|
14102
|
+
ImageViewerComponent.decorators = [
|
|
14103
|
+
{ type: i0.Component, args: [{
|
|
14104
|
+
selector: 'ngx-image-viewer',
|
|
14105
|
+
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",
|
|
14106
|
+
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)}}"]
|
|
14107
|
+
}] }
|
|
14108
|
+
];
|
|
14109
|
+
/** @nocollapse */
|
|
14110
|
+
ImageViewerComponent.ctorParameters = function () {
|
|
14111
|
+
return [
|
|
14112
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: ['config',] }] }
|
|
14113
|
+
];
|
|
14114
|
+
};
|
|
14115
|
+
ImageViewerComponent.propDecorators = {
|
|
14116
|
+
src: [{ type: i0.Input }],
|
|
14117
|
+
index: [{ type: i0.Input }],
|
|
14118
|
+
config: [{ type: i0.Input }],
|
|
14119
|
+
indexChange: [{ type: i0.Output }],
|
|
14120
|
+
configChange: [{ type: i0.Output }],
|
|
14121
|
+
customEvent: [{ type: i0.Output }],
|
|
14122
|
+
nextImage: [{ type: i0.HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
14123
|
+
prevImage: [{ type: i0.HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
14124
|
+
onMouseOver: [{ type: i0.HostListener, args: ['mouseover',] }],
|
|
14125
|
+
onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
|
|
14126
|
+
};
|
|
14127
|
+
return ImageViewerComponent;
|
|
14128
|
+
}());
|
|
14129
|
+
|
|
14130
|
+
/**
|
|
14131
|
+
* @fileoverview added by tsickle
|
|
14132
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
14133
|
+
*/
|
|
14134
|
+
var ToggleFullscreenDirective = /** @class */ (function () {
|
|
14135
|
+
function ToggleFullscreenDirective(el) {
|
|
14136
|
+
this.el = el;
|
|
14137
|
+
}
|
|
14138
|
+
/**
|
|
14139
|
+
* @return {?}
|
|
14140
|
+
*/
|
|
14141
|
+
ToggleFullscreenDirective.prototype.ngOnChanges = /**
|
|
14142
|
+
* @return {?}
|
|
14143
|
+
*/
|
|
14144
|
+
function () {
|
|
14145
|
+
if (this.isFullscreen && screenfull.enabled) {
|
|
14146
|
+
screenfull.request(this.el.nativeElement);
|
|
14147
|
+
}
|
|
14148
|
+
else if (screenfull.enabled) {
|
|
14149
|
+
screenfull.exit();
|
|
14150
|
+
}
|
|
14151
|
+
};
|
|
14152
|
+
ToggleFullscreenDirective.decorators = [
|
|
14153
|
+
{ type: i0.Directive, args: [{
|
|
14154
|
+
selector: '[ngxToggleFullscreen]'
|
|
14155
|
+
},] }
|
|
14156
|
+
];
|
|
14157
|
+
/** @nocollapse */
|
|
14158
|
+
ToggleFullscreenDirective.ctorParameters = function () {
|
|
14159
|
+
return [
|
|
14160
|
+
{ type: i0.ElementRef }
|
|
14161
|
+
];
|
|
14162
|
+
};
|
|
14163
|
+
ToggleFullscreenDirective.propDecorators = {
|
|
14164
|
+
isFullscreen: [{ type: i0.Input, args: ['ngxToggleFullscreen',] }]
|
|
14165
|
+
};
|
|
14166
|
+
return ToggleFullscreenDirective;
|
|
14167
|
+
}());
|
|
14168
|
+
|
|
13606
14169
|
/**
|
|
13607
14170
|
* @fileoverview added by tsickle
|
|
13608
14171
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -13672,14 +14235,15 @@
|
|
|
13672
14235
|
core.AgmCoreModule.forRoot({
|
|
13673
14236
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
13674
14237
|
}),
|
|
13675
|
-
flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule
|
|
13676
|
-
exports: [WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
14238
|
+
flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
|
|
14239
|
+
exports: [image_preview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
13677
14240
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
13678
14241
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
13679
14242
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
13680
14243
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
13681
14244
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
|
|
13682
|
-
declarations: [
|
|
14245
|
+
declarations: [ImageViewerComponent,
|
|
14246
|
+
ToggleFullscreenDirective, image_preview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
13683
14247
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
13684
14248
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
13685
14249
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
@@ -13691,7 +14255,7 @@
|
|
|
13691
14255
|
],
|
|
13692
14256
|
entryComponents: [
|
|
13693
14257
|
// Customize dialog must be import here.
|
|
13694
|
-
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,
|
|
14258
|
+
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,
|
|
13695
14259
|
FHPickListComponent,
|
|
13696
14260
|
FHConfirmComponent,
|
|
13697
14261
|
win_time_slider,
|
|
@@ -13732,7 +14296,7 @@
|
|
|
13732
14296
|
function (next, state) {
|
|
13733
14297
|
var _this = this;
|
|
13734
14298
|
this.routingDestination = next.url[0].path;
|
|
13735
|
-
//
|
|
14299
|
+
// //console.log(this.routingDestination);
|
|
13736
14300
|
if (this.routingDestination == '')
|
|
13737
14301
|
return true;
|
|
13738
14302
|
if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
|
|
@@ -13740,14 +14304,14 @@
|
|
|
13740
14304
|
if (this.auth.checkCredentials()) {
|
|
13741
14305
|
if (this.routingDestination == 'home')
|
|
13742
14306
|
return true;
|
|
13743
|
-
console.log('canActivate 1');
|
|
14307
|
+
//console.log('canActivate 1');
|
|
13744
14308
|
if (this.app_s.user_isadmin != null)
|
|
13745
14309
|
if (this.app_s.user_isadmin == "1")
|
|
13746
14310
|
return true;
|
|
13747
14311
|
return new Promise(function (resolve) {
|
|
13748
|
-
console.log('canActivate 2');
|
|
14312
|
+
//console.log('canActivate 2');
|
|
13749
14313
|
if (_this.arr_accessi != null) {
|
|
13750
|
-
console.log('canActivate 3');
|
|
14314
|
+
//console.log('canActivate 3');
|
|
13751
14315
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
13752
14316
|
if (_this.arr_accessi[i].type == 'M')
|
|
13753
14317
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
@@ -13755,13 +14319,13 @@
|
|
|
13755
14319
|
return;
|
|
13756
14320
|
}
|
|
13757
14321
|
}
|
|
13758
|
-
console.log('canActivate 4');
|
|
14322
|
+
//console.log('canActivate 4');
|
|
13759
14323
|
_this.toast.error("ACCESS DENIED [0X0003]");
|
|
13760
14324
|
_this.slimLoadingBarService.complete();
|
|
13761
14325
|
resolve(false);
|
|
13762
14326
|
return;
|
|
13763
14327
|
}
|
|
13764
|
-
console.log('canActivate 5');
|
|
14328
|
+
//console.log('canActivate 5');
|
|
13765
14329
|
/** @type {?} */
|
|
13766
14330
|
var p = new QParam();
|
|
13767
14331
|
p.sql = "SELECT_USER_ACCESS_AUTH";
|
|
@@ -13772,7 +14336,7 @@
|
|
|
13772
14336
|
if (data != null)
|
|
13773
14337
|
if (data.result_msg == "OK")
|
|
13774
14338
|
if (data.result_data.length > 0) {
|
|
13775
|
-
console.log('canActivate 6');
|
|
14339
|
+
//console.log('canActivate 6');
|
|
13776
14340
|
_this.appService.user_roles = data.result_data[0].roles;
|
|
13777
14341
|
if (_this.appService.user_roles.length > 0)
|
|
13778
14342
|
_this.appService.user_roles = _this.appService.user_roles.substr(1);
|
|
@@ -13787,12 +14351,12 @@
|
|
|
13787
14351
|
_this.appService.getState().app_enabled = new Array();
|
|
13788
14352
|
p_1.types = ['string'];
|
|
13789
14353
|
p_1.values = [_this.appService.user];
|
|
13790
|
-
console.log('canActivate 8');
|
|
14354
|
+
//console.log('canActivate 8');
|
|
13791
14355
|
_this.querys.doQuery(p_1).subscribe(function (data) {
|
|
13792
|
-
console.log('canActivate 9');
|
|
14356
|
+
//console.log('canActivate 9');
|
|
13793
14357
|
_this.arr_accessi = data.result_data;
|
|
13794
14358
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
13795
|
-
console.log('[' +
|
|
14359
|
+
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
13796
14360
|
if (_this.arr_accessi[i].type == 'M') {
|
|
13797
14361
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
13798
14362
|
resolve(true);
|
|
@@ -13800,7 +14364,7 @@
|
|
|
13800
14364
|
}
|
|
13801
14365
|
}
|
|
13802
14366
|
}
|
|
13803
|
-
console.log('canActivate 11');
|
|
14367
|
+
//console.log('canActivate 11');
|
|
13804
14368
|
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
13805
14369
|
resolve(false);
|
|
13806
14370
|
_this.slimLoadingBarService.complete();
|
|
@@ -13821,12 +14385,12 @@
|
|
|
13821
14385
|
_this.appService.getState().app_enabled = new Array();
|
|
13822
14386
|
p_2.types = ['string'];
|
|
13823
14387
|
p_2.values = [_this.appService.user];
|
|
13824
|
-
console.log('canActivate 8');
|
|
14388
|
+
//console.log('canActivate 8');
|
|
13825
14389
|
_this.querys.doQuery(p_2).subscribe(function (data) {
|
|
13826
|
-
console.log('canActivate 9');
|
|
14390
|
+
//console.log('canActivate 9');
|
|
13827
14391
|
_this.arr_accessi = data.result_data;
|
|
13828
14392
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
13829
|
-
console.log('[' +
|
|
14393
|
+
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
13830
14394
|
if (_this.arr_accessi[i].type == 'M') {
|
|
13831
14395
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
13832
14396
|
resolve(true);
|
|
@@ -13834,7 +14398,7 @@
|
|
|
13834
14398
|
}
|
|
13835
14399
|
}
|
|
13836
14400
|
}
|
|
13837
|
-
console.log('canActivate 11');
|
|
14401
|
+
//console.log('canActivate 11');
|
|
13838
14402
|
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
13839
14403
|
resolve(false);
|
|
13840
14404
|
_this.slimLoadingBarService.complete();
|
|
@@ -13842,7 +14406,7 @@
|
|
|
13842
14406
|
});
|
|
13843
14407
|
}
|
|
13844
14408
|
});
|
|
13845
|
-
console.log('canActivate 12');
|
|
14409
|
+
//console.log('canActivate 12');
|
|
13846
14410
|
}
|
|
13847
14411
|
else {
|
|
13848
14412
|
this.toast.error("ACCESS DENIED [0X0004]");
|
|
@@ -16517,6 +17081,8 @@
|
|
|
16517
17081
|
exports.WinAskTextBigComponent = WinAskTextBigComponent;
|
|
16518
17082
|
exports.WinAskButtonsComponent = WinAskButtonsComponent;
|
|
16519
17083
|
exports.FHWinComboSelect = FHWinComboSelect;
|
|
17084
|
+
exports.win_show_image = win_show_image;
|
|
17085
|
+
exports.image_preview = image_preview;
|
|
16520
17086
|
exports.FHListPick = FHListPick;
|
|
16521
17087
|
exports.win_mappa = win_mappa;
|
|
16522
17088
|
exports.WinOutputComponent = WinOutputComponent;
|
|
@@ -16535,26 +17101,28 @@
|
|
|
16535
17101
|
exports.wkfapp = wkfapp;
|
|
16536
17102
|
exports.dati_aggiuntivi = dati_aggiuntivi;
|
|
16537
17103
|
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
16538
|
-
exports.ɵ
|
|
17104
|
+
exports.ɵl = FHGridToolBarComponent;
|
|
16539
17105
|
exports.ɵg = win_grid_help;
|
|
16540
17106
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
16541
17107
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
16542
17108
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
17109
|
+
exports.ɵk = ToggleFullscreenDirective;
|
|
17110
|
+
exports.ɵi = ImageViewerComponent;
|
|
16543
17111
|
exports.ɵe = DecimalMask;
|
|
16544
17112
|
exports.ɵf = FHValueAccessor;
|
|
16545
17113
|
exports.ɵh = HighlightService;
|
|
16546
|
-
exports.ɵ
|
|
16547
|
-
exports.ɵ
|
|
16548
|
-
exports.ɵ
|
|
16549
|
-
exports.ɵ
|
|
16550
|
-
exports.ɵ
|
|
16551
|
-
exports.ɵ
|
|
16552
|
-
exports.ɵ
|
|
16553
|
-
exports.ɵ
|
|
16554
|
-
exports.ɵ
|
|
16555
|
-
exports.ɵ
|
|
16556
|
-
exports.ɵ
|
|
16557
|
-
exports.ɵ
|
|
17114
|
+
exports.ɵm = win_assegna;
|
|
17115
|
+
exports.ɵr = win_commenti;
|
|
17116
|
+
exports.ɵx = win_commento_sel_notif;
|
|
17117
|
+
exports.ɵn = win_conferma;
|
|
17118
|
+
exports.ɵs = win_info_doc;
|
|
17119
|
+
exports.ɵt = win_log;
|
|
17120
|
+
exports.ɵu = win_recupera_doc;
|
|
17121
|
+
exports.ɵv = win_riassegna_select_level;
|
|
17122
|
+
exports.ɵw = win_riassegna_select_user;
|
|
17123
|
+
exports.ɵo = win_select_canale;
|
|
17124
|
+
exports.ɵp = win_select_level;
|
|
17125
|
+
exports.ɵq = win_uploads;
|
|
16558
17126
|
|
|
16559
17127
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
16560
17128
|
|