@fluxhub/fluxhub-lib 1.0.235 → 1.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +122 -119
- 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/OfficeOperation.html +298 -0
- package/docs/classes/OfficeResult.html +230 -0
- package/docs/components/ApprovaGridComponent.html +1 -1
- package/docs/components/ComboBoxEditor.html +1 -1
- package/docs/components/CurrencyComponent.html +1 -1
- package/docs/components/DateComponent.html +1 -1
- package/docs/components/DtPick.html +1 -1
- package/docs/components/FHAutoCompleteComponent.html +1 -1
- package/docs/components/FHComboboxComponent.html +1 -1
- package/docs/components/FHConfirmComponent.html +1 -1
- package/docs/components/FHCurrencyFieldComponent.html +1 -1
- package/docs/components/FHDatePickerComponent.html +1 -1
- package/docs/components/FHGridComponent.html +1 -1
- package/docs/components/FHGridJSONComponent.html +1 -1
- package/docs/components/FHGridToolBarComponent.html +1 -1
- package/docs/components/FHListComponent.html +1 -1
- package/docs/components/FHListPick.html +1 -1
- package/docs/components/FHLogPanelComponent.html +1 -1
- package/docs/components/FHMdReader.html +1 -1
- package/docs/components/FHNumericFieldComponent.html +1 -1
- package/docs/components/FHPickListComponent.html +1 -1
- package/docs/components/FHRichText.html +1 -1
- package/docs/components/FHTimePickerComponent.html +1 -1
- package/docs/components/FHUploadComponent.html +1 -1
- package/docs/components/FHUploadPanelComponent.html +1 -1
- package/docs/components/FHUserFieldComponent.html +1 -1
- package/docs/components/FHUserPickerComponent.html +1 -1
- package/docs/components/FHWinComboSelect.html +1 -1
- package/docs/components/FSInput.html +1 -1
- package/docs/components/FSResult.html +1 -1
- package/docs/components/FormBuilderComponent.html +1 -1
- package/docs/components/FormExecuterComponent.html +1 -1
- package/docs/components/ImageViewerComponent.html +7 -79
- package/docs/components/NumericEditorComponent.html +1 -1
- package/docs/components/QGParam.html +1 -1
- package/docs/components/QGResult.html +1 -1
- package/docs/components/QParam.html +1 -1
- package/docs/components/QResult.html +1 -1
- package/docs/components/TextAreaEditor.html +1 -1
- package/docs/components/WinAskButtonsComponent.html +1 -1
- package/docs/components/WinAskNumberComponent.html +1 -1
- package/docs/components/WinAskTextBigComponent.html +1 -1
- package/docs/components/WinAskTextComponent.html +1 -1
- package/docs/components/WinOutputComponent.html +1 -1
- package/docs/components/WinWait.html +1 -1
- package/docs/components/image_preview.html +40 -10
- package/docs/components/win_assegna.html +1 -1
- package/docs/components/win_commenti.html +1 -1
- package/docs/components/win_commento_sel_notif.html +1 -1
- package/docs/components/win_conferma.html +1 -1
- package/docs/components/win_grid_help.html +1 -1
- package/docs/components/win_info_doc.html +1 -1
- package/docs/components/win_log.html +1 -1
- package/docs/components/win_mappa.html +1 -1
- package/docs/components/win_recupera_doc.html +1 -1
- package/docs/components/win_riassegna_select_level.html +1 -1
- package/docs/components/win_riassegna_select_user.html +1 -1
- package/docs/components/win_salva_annulla.html +1 -1
- package/docs/components/win_select_canale.html +1 -1
- package/docs/components/win_select_level.html +1 -1
- package/docs/components/win_show_image.html +1 -1
- package/docs/components/win_time_slider.html +1 -1
- package/docs/components/win_uploads.html +1 -1
- package/docs/components/wkf_header_bar.html +1 -1
- package/docs/coverage.html +14 -30
- package/docs/injectables/OfficeAutomatorService.html +122 -42
- package/docs/js/menu-wc.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/overview.html +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +8 -15
- package/esm2015/lib/controls/image_preview.js +12 -9
- package/esm2015/lib/services/office_automator.service.js +105 -114
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +8 -20
- package/esm5/lib/controls/image_preview.js +14 -2
- package/esm5/lib/services/office_automator.service.js +128 -129
- package/fesm2015/fluxhub-fluxhub-lib.js +101 -108
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +120 -117
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image-viewer/image-viewer.component.d.ts +2 -3
- package/lib/controls/image_preview.d.ts +1 -0
- package/lib/services/office_automator.service.d.ts +12 -28
- package/package.json +6 -6
- package/docs/interfaces/ChunkInfo.html +0 -245
- package/docs/interfaces/Command.html +0 -327
- package/docs/interfaces/CommandOptions.html +0 -225
|
@@ -11710,53 +11710,90 @@ win_log.propDecorators = {
|
|
|
11710
11710
|
* @fileoverview added by tsickle
|
|
11711
11711
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11712
11712
|
*/
|
|
11713
|
+
class OfficeOperation {
|
|
11714
|
+
}
|
|
11713
11715
|
class OfficeAutomatorService {
|
|
11714
11716
|
/**
|
|
11715
|
-
*
|
|
11716
11717
|
* @param {?} dataService
|
|
11717
11718
|
* @param {?} fileService
|
|
11718
11719
|
* @param {?} toastr
|
|
11719
|
-
* @param {?} utility
|
|
11720
11720
|
*/
|
|
11721
|
-
constructor(dataService, fileService, toastr
|
|
11721
|
+
constructor(dataService, fileService, toastr) {
|
|
11722
11722
|
this.dataService = dataService;
|
|
11723
11723
|
this.fileService = fileService;
|
|
11724
11724
|
this.toastr = toastr;
|
|
11725
|
-
|
|
11725
|
+
/**
|
|
11726
|
+
* @param commands
|
|
11727
|
+
* @param options
|
|
11728
|
+
* @export
|
|
11729
|
+
*/
|
|
11730
|
+
this.eprog = 0;
|
|
11726
11731
|
}
|
|
11727
11732
|
/**
|
|
11728
|
-
* @
|
|
11729
|
-
* @param {?}
|
|
11730
|
-
* @param {?}
|
|
11733
|
+
* @param {?} operazione
|
|
11734
|
+
* @param {?} v1
|
|
11735
|
+
* @param {?} v2
|
|
11736
|
+
* @param {?} ordine
|
|
11731
11737
|
* @return {?}
|
|
11732
11738
|
*/
|
|
11733
|
-
|
|
11734
|
-
/** @type {?} */
|
|
11735
|
-
const uiid = this.utility.newGuid();
|
|
11736
|
-
// TODO: check order
|
|
11737
|
-
// TODO: check id
|
|
11738
|
-
// create job in db
|
|
11739
|
+
operation(operazione, v1, v2, ordine) {
|
|
11739
11740
|
/** @type {?} */
|
|
11740
|
-
let
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11741
|
+
let op = new OfficeOperation();
|
|
11742
|
+
op.op = operazione;
|
|
11743
|
+
op.v1 = v1;
|
|
11744
|
+
op.v2 = v2;
|
|
11745
|
+
op.ord = ordine;
|
|
11746
|
+
return op;
|
|
11747
|
+
}
|
|
11748
|
+
/**
|
|
11749
|
+
* @private
|
|
11750
|
+
* @param {?=} dialogRef_W
|
|
11751
|
+
* @return {?}
|
|
11752
|
+
*/
|
|
11753
|
+
progress_update(dialogRef_W = null) {
|
|
11754
|
+
if (dialogRef_W == null)
|
|
11755
|
+
return;
|
|
11756
|
+
if (dialogRef_W.componentInstance == null)
|
|
11757
|
+
return;
|
|
11758
|
+
if (this.eprog >= 100)
|
|
11759
|
+
return;
|
|
11760
|
+
this.eprog += 10;
|
|
11761
|
+
dialogRef_W.componentInstance.update_progess(this.eprog);
|
|
11762
|
+
setTimeout(() => {
|
|
11763
|
+
this.progress_update(dialogRef_W);
|
|
11764
|
+
}, 2000);
|
|
11765
|
+
}
|
|
11766
|
+
/**
|
|
11767
|
+
* @param {?} uiid
|
|
11768
|
+
* @param {?} commands
|
|
11769
|
+
* @param {?} dialogRef_W
|
|
11770
|
+
* @return {?}
|
|
11771
|
+
*/
|
|
11772
|
+
runCommands(uiid, commands, dialogRef_W) {
|
|
11773
|
+
this.eprog = 0;
|
|
11747
11774
|
/** @type {?} */
|
|
11748
11775
|
const p = new QParam();
|
|
11749
|
-
p.sql = "
|
|
11750
|
-
p.types = ['string', 'string'
|
|
11751
|
-
|
|
11776
|
+
p.sql = "INSERT_OFFICE_OPERATION";
|
|
11777
|
+
p.types = ['string', 'string'];
|
|
11778
|
+
commands.sort((left, right) => {
|
|
11779
|
+
if (left.ord < right.ord)
|
|
11780
|
+
return -1;
|
|
11781
|
+
if (left.ord > right.ord)
|
|
11782
|
+
return 1;
|
|
11783
|
+
});
|
|
11784
|
+
console.log('commands ', commands);
|
|
11785
|
+
p.values = [uiid, JSON.stringify(commands)];
|
|
11752
11786
|
return this.dataService.doQuery(p).pipe(flatMap(data => {
|
|
11753
11787
|
if (data != null) {
|
|
11754
11788
|
if (data.result_msg == "OK") {
|
|
11755
|
-
// create job file
|
|
11756
11789
|
/** @type {?} */
|
|
11757
11790
|
const p = new FSInput();
|
|
11758
|
-
p.command = "
|
|
11759
|
-
p.p1 =
|
|
11791
|
+
p.command = "exec_app";
|
|
11792
|
+
p.p1 = "print_manager";
|
|
11793
|
+
p.p2 = uiid;
|
|
11794
|
+
setTimeout(() => {
|
|
11795
|
+
this.progress_update(dialogRef_W);
|
|
11796
|
+
}, 2000);
|
|
11760
11797
|
return this.fileService.doQuery(p).pipe(flatMap(data => {
|
|
11761
11798
|
if (data != null && data.result_msg == "OK") {
|
|
11762
11799
|
// check the job is done
|
|
@@ -11768,35 +11805,31 @@ class OfficeAutomatorService {
|
|
|
11768
11805
|
/** @type {?} */
|
|
11769
11806
|
const timeoutTimer = setTimeout(() => {
|
|
11770
11807
|
isTimeout = true;
|
|
11771
|
-
},
|
|
11772
|
-
|
|
11773
|
-
/** @type {?} */
|
|
11774
|
-
let logOffset = 0;
|
|
11775
|
-
ck_files();
|
|
11808
|
+
}, 3 * 60 * 1000);
|
|
11809
|
+
ck_files(uiid);
|
|
11776
11810
|
/**
|
|
11777
|
-
*
|
|
11811
|
+
* @param {?} uiid
|
|
11778
11812
|
* @return {?}
|
|
11779
11813
|
*/
|
|
11780
|
-
function ck_files() {
|
|
11814
|
+
function ck_files(uiid) {
|
|
11781
11815
|
/** @type {?} */
|
|
11782
|
-
const p = new
|
|
11783
|
-
p.
|
|
11784
|
-
p.
|
|
11785
|
-
p.
|
|
11786
|
-
self.
|
|
11816
|
+
const p = new QParam();
|
|
11817
|
+
p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
|
|
11818
|
+
p.types = ['string'];
|
|
11819
|
+
p.values = [uiid];
|
|
11820
|
+
self.dataService.doQuery(p).subscribe(data => {
|
|
11787
11821
|
if (data != null && data.result_msg == 'OK') {
|
|
11788
11822
|
/** @type {?} */
|
|
11789
|
-
const chunkInfo = data.result_data
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
if (chunkInfo.done) {
|
|
11823
|
+
const chunkInfo = data.result_data;
|
|
11824
|
+
if (chunkInfo.length == 1) {
|
|
11825
|
+
subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
|
|
11793
11826
|
subscriber.complete();
|
|
11794
11827
|
}
|
|
11795
11828
|
else {
|
|
11796
11829
|
if (!isTimeout) {
|
|
11797
11830
|
setTimeout(() => {
|
|
11798
|
-
ck_files();
|
|
11799
|
-
},
|
|
11831
|
+
ck_files(uiid);
|
|
11832
|
+
}, 3000); // 3 sec default check interval
|
|
11800
11833
|
}
|
|
11801
11834
|
else {
|
|
11802
11835
|
console.log('Timeout');
|
|
@@ -11806,9 +11839,11 @@ class OfficeAutomatorService {
|
|
|
11806
11839
|
}
|
|
11807
11840
|
}
|
|
11808
11841
|
else {
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11842
|
+
if (!isTimeout) {
|
|
11843
|
+
setTimeout(() => {
|
|
11844
|
+
ck_files(uiid);
|
|
11845
|
+
}, 3000); // 3 sec default check interval
|
|
11846
|
+
}
|
|
11812
11847
|
}
|
|
11813
11848
|
});
|
|
11814
11849
|
}
|
|
@@ -11819,29 +11854,6 @@ class OfficeAutomatorService {
|
|
|
11819
11854
|
}
|
|
11820
11855
|
}));
|
|
11821
11856
|
}
|
|
11822
|
-
/**
|
|
11823
|
-
* @param {?} fs_path
|
|
11824
|
-
* @param {?} web_path
|
|
11825
|
-
* @param {?=} error_msg
|
|
11826
|
-
* @return {?}
|
|
11827
|
-
*/
|
|
11828
|
-
send_file_to_user(fs_path, web_path, error_msg = 'errore nella creazione del file') {
|
|
11829
|
-
/** @type {?} */
|
|
11830
|
-
let p = new FSInput();
|
|
11831
|
-
p.p1 = fs_path;
|
|
11832
|
-
p.command = "check_file";
|
|
11833
|
-
this.fileService.doQuery(p).subscribe(data => {
|
|
11834
|
-
if (data != null)
|
|
11835
|
-
if (data.msg != "N") {
|
|
11836
|
-
window.open(web_path);
|
|
11837
|
-
}
|
|
11838
|
-
else {
|
|
11839
|
-
if (error_msg != null)
|
|
11840
|
-
if (error_msg != '')
|
|
11841
|
-
this.toastr.error(error_msg);
|
|
11842
|
-
}
|
|
11843
|
-
});
|
|
11844
|
-
}
|
|
11845
11857
|
}
|
|
11846
11858
|
OfficeAutomatorService.decorators = [
|
|
11847
11859
|
{ type: Injectable, args: [{
|
|
@@ -11852,10 +11864,9 @@ OfficeAutomatorService.decorators = [
|
|
|
11852
11864
|
OfficeAutomatorService.ctorParameters = () => [
|
|
11853
11865
|
{ type: QueryService },
|
|
11854
11866
|
{ type: FileService },
|
|
11855
|
-
{ type: ToastrService }
|
|
11856
|
-
{ type: UtilityService }
|
|
11867
|
+
{ type: ToastrService }
|
|
11857
11868
|
];
|
|
11858
|
-
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)
|
|
11869
|
+
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)); }, token: OfficeAutomatorService, providedIn: "root" });
|
|
11859
11870
|
|
|
11860
11871
|
/**
|
|
11861
11872
|
* @fileoverview added by tsickle
|
|
@@ -15389,21 +15400,6 @@ win_show_image.ctorParameters = () => [
|
|
|
15389
15400
|
{ type: MatDialogRef }
|
|
15390
15401
|
];
|
|
15391
15402
|
|
|
15392
|
-
/**
|
|
15393
|
-
* @fileoverview added by tsickle
|
|
15394
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15395
|
-
*/
|
|
15396
|
-
class CustomEvent {
|
|
15397
|
-
/**
|
|
15398
|
-
* @param {?} name
|
|
15399
|
-
* @param {?} imageIndex
|
|
15400
|
-
*/
|
|
15401
|
-
constructor(name, imageIndex) {
|
|
15402
|
-
this.name = name;
|
|
15403
|
-
this.imageIndex = imageIndex;
|
|
15404
|
-
}
|
|
15405
|
-
}
|
|
15406
|
-
|
|
15407
15403
|
/**
|
|
15408
15404
|
* @fileoverview added by tsickle
|
|
15409
15405
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -15443,7 +15439,7 @@ class ImageViewerComponent {
|
|
|
15443
15439
|
this.index = 0;
|
|
15444
15440
|
this.indexChange = new EventEmitter();
|
|
15445
15441
|
this.configChange = new EventEmitter();
|
|
15446
|
-
this.
|
|
15442
|
+
this.fullScreenEvent = new EventEmitter();
|
|
15447
15443
|
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
15448
15444
|
this.fullscreen = false;
|
|
15449
15445
|
this.loading = false; // true;
|
|
@@ -15566,6 +15562,8 @@ class ImageViewerComponent {
|
|
|
15566
15562
|
*/
|
|
15567
15563
|
toggleFullscreen() {
|
|
15568
15564
|
this.fullscreen = !this.fullscreen;
|
|
15565
|
+
if (this.fullscreen)
|
|
15566
|
+
this.fullScreenEvent.emit();
|
|
15569
15567
|
if (!this.fullscreen) {
|
|
15570
15568
|
this.reset();
|
|
15571
15569
|
}
|
|
@@ -15582,14 +15580,6 @@ class ImageViewerComponent {
|
|
|
15582
15580
|
triggerConfigBinding() {
|
|
15583
15581
|
this.configChange.next(this.config);
|
|
15584
15582
|
}
|
|
15585
|
-
/**
|
|
15586
|
-
* @param {?} name
|
|
15587
|
-
* @param {?} imageIndex
|
|
15588
|
-
* @return {?}
|
|
15589
|
-
*/
|
|
15590
|
-
fireCustomEvent(name, imageIndex) {
|
|
15591
|
-
this.customEvent.emit(new CustomEvent(name, imageIndex));
|
|
15592
|
-
}
|
|
15593
15583
|
/**
|
|
15594
15584
|
* @return {?}
|
|
15595
15585
|
*/
|
|
@@ -15650,8 +15640,8 @@ class ImageViewerComponent {
|
|
|
15650
15640
|
}
|
|
15651
15641
|
ImageViewerComponent.decorators = [
|
|
15652
15642
|
{ type: Component, args: [{
|
|
15653
|
-
selector: '
|
|
15654
|
-
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
|
|
15643
|
+
selector: 'fh-image-viewer',
|
|
15644
|
+
template: "<div [ngxToggleFullscreen]=\"fullscreen\" class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [ngStyle]=\"style\" alt=\"Image not found...\" (dragstart)=\"onDragStart($event)\" (load)=\"onLoad()\" (loadstart)=\"onLoadStart()\"/>\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateCounterClockwise\" (click)=\"rotateCounterClockwise()\">\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateClockwise\" (click)=\"rotateClockwise()\">\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomOut\" (click)=\"zoomOut()\">\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomIn\" (click)=\"zoomIn()\">\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n\n\n <button type=\"button\" id=\"ngx-fs-btn\" [class]=\"config.btnClass\" (click)=\"toggleFullscreen()\" *ngIf=\"config.allowFullscreen\">\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"prevImage($event)\" [disabled]=\"index === 0\">\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"nextImage($event)\" [disabled]=\"index === src.length - 1\">\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n",
|
|
15655
15645
|
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)}}"]
|
|
15656
15646
|
}] }
|
|
15657
15647
|
];
|
|
@@ -15665,7 +15655,7 @@ ImageViewerComponent.propDecorators = {
|
|
|
15665
15655
|
config: [{ type: Input }],
|
|
15666
15656
|
indexChange: [{ type: Output }],
|
|
15667
15657
|
configChange: [{ type: Output }],
|
|
15668
|
-
|
|
15658
|
+
fullScreenEvent: [{ type: Output }],
|
|
15669
15659
|
nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
15670
15660
|
prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
15671
15661
|
onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
|
|
@@ -15788,6 +15778,15 @@ class image_preview {
|
|
|
15788
15778
|
this.photo_c.toggleFullscreen();
|
|
15789
15779
|
this.already_open = true;
|
|
15790
15780
|
}
|
|
15781
|
+
/**
|
|
15782
|
+
* @return {?}
|
|
15783
|
+
*/
|
|
15784
|
+
fullScreenEvent() {
|
|
15785
|
+
if (this.u != null)
|
|
15786
|
+
if (this.u.image_thumbnail != null)
|
|
15787
|
+
if (this.u.image_thumbnail.length > 0 && this.preview && !this.already_open)
|
|
15788
|
+
this.toggle_up();
|
|
15789
|
+
}
|
|
15791
15790
|
/**
|
|
15792
15791
|
* @param {?} event
|
|
15793
15792
|
* @return {?}
|
|
@@ -15822,15 +15821,9 @@ image_preview.decorators = [
|
|
|
15822
15821
|
{ type: Component, args: [{
|
|
15823
15822
|
selector: 'image_preview',
|
|
15824
15823
|
template: `
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
<button type="button" class="default" (click)="toggle_up()" *ngIf="u?.image_thumbnail?.length>0 && preview">
|
|
15828
|
-
<span class="fa fa-arrows-alt"></span>
|
|
15829
|
-
</button>
|
|
15830
|
-
|
|
15831
|
-
</div>
|
|
15824
|
+
|
|
15832
15825
|
|
|
15833
|
-
<div style="max-width:460px"><
|
|
15826
|
+
<div style="max-width:460px"><fh-image-viewer (fullScreenEvent)="fullScreenEvent()" [(ngModel)]="config" *ngIf="u?.image_thumbnail?.length>0" #photo_c (customEvent)="handleEvent($event)" [src]="u.image_thumbnail" index="0"></fh-image-viewer>
|
|
15834
15827
|
|
|
15835
15828
|
</div>
|
|
15836
15829
|
`,
|