@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
|
@@ -12082,61 +12082,109 @@ var win_log = /** @class */ (function () {
|
|
|
12082
12082
|
* @fileoverview added by tsickle
|
|
12083
12083
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12084
12084
|
*/
|
|
12085
|
+
var OfficeOperation = /** @class */ (function () {
|
|
12086
|
+
function OfficeOperation() {
|
|
12087
|
+
}
|
|
12088
|
+
return OfficeOperation;
|
|
12089
|
+
}());
|
|
12085
12090
|
var OfficeAutomatorService = /** @class */ (function () {
|
|
12086
|
-
|
|
12087
|
-
*
|
|
12088
|
-
*/
|
|
12089
|
-
function OfficeAutomatorService(dataService, fileService, toastr, utility) {
|
|
12091
|
+
function OfficeAutomatorService(dataService, fileService, toastr) {
|
|
12090
12092
|
this.dataService = dataService;
|
|
12091
12093
|
this.fileService = fileService;
|
|
12092
12094
|
this.toastr = toastr;
|
|
12093
|
-
|
|
12095
|
+
/**
|
|
12096
|
+
* @param commands
|
|
12097
|
+
* @param options
|
|
12098
|
+
* @export
|
|
12099
|
+
*/
|
|
12100
|
+
this.eprog = 0;
|
|
12094
12101
|
}
|
|
12095
12102
|
/**
|
|
12096
|
-
* @param
|
|
12097
|
-
* @param
|
|
12098
|
-
* @
|
|
12103
|
+
* @param {?} operazione
|
|
12104
|
+
* @param {?} v1
|
|
12105
|
+
* @param {?} v2
|
|
12106
|
+
* @param {?} ordine
|
|
12107
|
+
* @return {?}
|
|
12108
|
+
*/
|
|
12109
|
+
OfficeAutomatorService.prototype.operation = /**
|
|
12110
|
+
* @param {?} operazione
|
|
12111
|
+
* @param {?} v1
|
|
12112
|
+
* @param {?} v2
|
|
12113
|
+
* @param {?} ordine
|
|
12114
|
+
* @return {?}
|
|
12115
|
+
*/
|
|
12116
|
+
function (operazione, v1, v2, ordine) {
|
|
12117
|
+
/** @type {?} */
|
|
12118
|
+
var op = new OfficeOperation();
|
|
12119
|
+
op.op = operazione;
|
|
12120
|
+
op.v1 = v1;
|
|
12121
|
+
op.v2 = v2;
|
|
12122
|
+
op.ord = ordine;
|
|
12123
|
+
return op;
|
|
12124
|
+
};
|
|
12125
|
+
/**
|
|
12126
|
+
* @private
|
|
12127
|
+
* @param {?=} dialogRef_W
|
|
12128
|
+
* @return {?}
|
|
12129
|
+
*/
|
|
12130
|
+
OfficeAutomatorService.prototype.progress_update = /**
|
|
12131
|
+
* @private
|
|
12132
|
+
* @param {?=} dialogRef_W
|
|
12133
|
+
* @return {?}
|
|
12099
12134
|
*/
|
|
12135
|
+
function (dialogRef_W) {
|
|
12136
|
+
var _this = this;
|
|
12137
|
+
if (dialogRef_W === void 0) { dialogRef_W = null; }
|
|
12138
|
+
if (dialogRef_W == null)
|
|
12139
|
+
return;
|
|
12140
|
+
if (dialogRef_W.componentInstance == null)
|
|
12141
|
+
return;
|
|
12142
|
+
if (this.eprog >= 100)
|
|
12143
|
+
return;
|
|
12144
|
+
this.eprog += 10;
|
|
12145
|
+
dialogRef_W.componentInstance.update_progess(this.eprog);
|
|
12146
|
+
setTimeout(function () {
|
|
12147
|
+
_this.progress_update(dialogRef_W);
|
|
12148
|
+
}, 2000);
|
|
12149
|
+
};
|
|
12100
12150
|
/**
|
|
12101
|
-
* @
|
|
12151
|
+
* @param {?} uiid
|
|
12102
12152
|
* @param {?} commands
|
|
12103
|
-
* @param {?}
|
|
12153
|
+
* @param {?} dialogRef_W
|
|
12104
12154
|
* @return {?}
|
|
12105
12155
|
*/
|
|
12106
12156
|
OfficeAutomatorService.prototype.runCommands = /**
|
|
12107
|
-
* @
|
|
12157
|
+
* @param {?} uiid
|
|
12108
12158
|
* @param {?} commands
|
|
12109
|
-
* @param {?}
|
|
12159
|
+
* @param {?} dialogRef_W
|
|
12110
12160
|
* @return {?}
|
|
12111
12161
|
*/
|
|
12112
|
-
function (commands,
|
|
12162
|
+
function (uiid, commands, dialogRef_W) {
|
|
12113
12163
|
var _this = this;
|
|
12114
|
-
|
|
12115
|
-
var uiid = this.utility.newGuid();
|
|
12116
|
-
// TODO: check order
|
|
12117
|
-
// TODO: check id
|
|
12118
|
-
// create job in db
|
|
12119
|
-
/** @type {?} */
|
|
12120
|
-
var q = '';
|
|
12121
|
-
for (var i = 0; i < commands.length; i++) {
|
|
12122
|
-
if (q != "") {
|
|
12123
|
-
q = q + ";;;";
|
|
12124
|
-
}
|
|
12125
|
-
q = q + (commands[i].id || uiid) + ";;;" + commands[i].op + ";;;" + (commands[i].v1 || ' ') + ";;;" + (commands[i].v2 || ' ') + ";;;" + (commands[i].ord);
|
|
12126
|
-
}
|
|
12164
|
+
this.eprog = 0;
|
|
12127
12165
|
/** @type {?} */
|
|
12128
12166
|
var p = new QParam();
|
|
12129
|
-
p.sql = "
|
|
12130
|
-
p.types = ['string', 'string'
|
|
12131
|
-
|
|
12167
|
+
p.sql = "INSERT_OFFICE_OPERATION";
|
|
12168
|
+
p.types = ['string', 'string'];
|
|
12169
|
+
commands.sort(function (left, right) {
|
|
12170
|
+
if (left.ord < right.ord)
|
|
12171
|
+
return -1;
|
|
12172
|
+
if (left.ord > right.ord)
|
|
12173
|
+
return 1;
|
|
12174
|
+
});
|
|
12175
|
+
console.log('commands ', commands);
|
|
12176
|
+
p.values = [uiid, JSON.stringify(commands)];
|
|
12132
12177
|
return this.dataService.doQuery(p).pipe(flatMap(function (data) {
|
|
12133
12178
|
if (data != null) {
|
|
12134
12179
|
if (data.result_msg == "OK") {
|
|
12135
|
-
// create job file
|
|
12136
12180
|
/** @type {?} */
|
|
12137
12181
|
var p_1 = new FSInput();
|
|
12138
|
-
p_1.command = "
|
|
12139
|
-
p_1.p1 =
|
|
12182
|
+
p_1.command = "exec_app";
|
|
12183
|
+
p_1.p1 = "print_manager";
|
|
12184
|
+
p_1.p2 = uiid;
|
|
12185
|
+
setTimeout(function () {
|
|
12186
|
+
_this.progress_update(dialogRef_W);
|
|
12187
|
+
}, 2000);
|
|
12140
12188
|
return _this.fileService.doQuery(p_1).pipe(flatMap(function (data) {
|
|
12141
12189
|
if (data != null && data.result_msg == "OK") {
|
|
12142
12190
|
// check the job is done
|
|
@@ -12148,35 +12196,31 @@ var OfficeAutomatorService = /** @class */ (function () {
|
|
|
12148
12196
|
/** @type {?} */
|
|
12149
12197
|
var timeoutTimer = setTimeout(function () {
|
|
12150
12198
|
isTimeout = true;
|
|
12151
|
-
},
|
|
12152
|
-
|
|
12153
|
-
/** @type {?} */
|
|
12154
|
-
var logOffset = 0;
|
|
12155
|
-
ck_files();
|
|
12199
|
+
}, 3 * 60 * 1000);
|
|
12200
|
+
ck_files(uiid);
|
|
12156
12201
|
/**
|
|
12157
|
-
*
|
|
12202
|
+
* @param {?} uiid
|
|
12158
12203
|
* @return {?}
|
|
12159
12204
|
*/
|
|
12160
|
-
function ck_files() {
|
|
12205
|
+
function ck_files(uiid) {
|
|
12161
12206
|
/** @type {?} */
|
|
12162
|
-
var p = new
|
|
12163
|
-
p.
|
|
12164
|
-
p.
|
|
12165
|
-
p.
|
|
12166
|
-
self.
|
|
12207
|
+
var p = new QParam();
|
|
12208
|
+
p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
|
|
12209
|
+
p.types = ['string'];
|
|
12210
|
+
p.values = [uiid];
|
|
12211
|
+
self.dataService.doQuery(p).subscribe(function (data) {
|
|
12167
12212
|
if (data != null && data.result_msg == 'OK') {
|
|
12168
12213
|
/** @type {?} */
|
|
12169
|
-
var chunkInfo = data.result_data
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
if (chunkInfo.done) {
|
|
12214
|
+
var chunkInfo = data.result_data;
|
|
12215
|
+
if (chunkInfo.length == 1) {
|
|
12216
|
+
subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
|
|
12173
12217
|
subscriber.complete();
|
|
12174
12218
|
}
|
|
12175
12219
|
else {
|
|
12176
12220
|
if (!isTimeout) {
|
|
12177
12221
|
setTimeout(function () {
|
|
12178
|
-
ck_files();
|
|
12179
|
-
},
|
|
12222
|
+
ck_files(uiid);
|
|
12223
|
+
}, 3000); // 3 sec default check interval
|
|
12180
12224
|
}
|
|
12181
12225
|
else {
|
|
12182
12226
|
console.log('Timeout');
|
|
@@ -12186,9 +12230,11 @@ var OfficeAutomatorService = /** @class */ (function () {
|
|
|
12186
12230
|
}
|
|
12187
12231
|
}
|
|
12188
12232
|
else {
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12233
|
+
if (!isTimeout) {
|
|
12234
|
+
setTimeout(function () {
|
|
12235
|
+
ck_files(uiid);
|
|
12236
|
+
}, 3000); // 3 sec default check interval
|
|
12237
|
+
}
|
|
12192
12238
|
}
|
|
12193
12239
|
});
|
|
12194
12240
|
}
|
|
@@ -12199,37 +12245,6 @@ var OfficeAutomatorService = /** @class */ (function () {
|
|
|
12199
12245
|
}
|
|
12200
12246
|
}));
|
|
12201
12247
|
};
|
|
12202
|
-
/**
|
|
12203
|
-
* @param {?} fs_path
|
|
12204
|
-
* @param {?} web_path
|
|
12205
|
-
* @param {?=} error_msg
|
|
12206
|
-
* @return {?}
|
|
12207
|
-
*/
|
|
12208
|
-
OfficeAutomatorService.prototype.send_file_to_user = /**
|
|
12209
|
-
* @param {?} fs_path
|
|
12210
|
-
* @param {?} web_path
|
|
12211
|
-
* @param {?=} error_msg
|
|
12212
|
-
* @return {?}
|
|
12213
|
-
*/
|
|
12214
|
-
function (fs_path, web_path, error_msg) {
|
|
12215
|
-
var _this = this;
|
|
12216
|
-
if (error_msg === void 0) { error_msg = 'errore nella creazione del file'; }
|
|
12217
|
-
/** @type {?} */
|
|
12218
|
-
var p = new FSInput();
|
|
12219
|
-
p.p1 = fs_path;
|
|
12220
|
-
p.command = "check_file";
|
|
12221
|
-
this.fileService.doQuery(p).subscribe(function (data) {
|
|
12222
|
-
if (data != null)
|
|
12223
|
-
if (data.msg != "N") {
|
|
12224
|
-
window.open(web_path);
|
|
12225
|
-
}
|
|
12226
|
-
else {
|
|
12227
|
-
if (error_msg != null)
|
|
12228
|
-
if (error_msg != '')
|
|
12229
|
-
_this.toastr.error(error_msg);
|
|
12230
|
-
}
|
|
12231
|
-
});
|
|
12232
|
-
};
|
|
12233
12248
|
OfficeAutomatorService.decorators = [
|
|
12234
12249
|
{ type: Injectable, args: [{
|
|
12235
12250
|
providedIn: 'root',
|
|
@@ -12239,10 +12254,9 @@ var OfficeAutomatorService = /** @class */ (function () {
|
|
|
12239
12254
|
OfficeAutomatorService.ctorParameters = function () { return [
|
|
12240
12255
|
{ type: QueryService },
|
|
12241
12256
|
{ type: FileService },
|
|
12242
|
-
{ type: ToastrService }
|
|
12243
|
-
{ type: UtilityService }
|
|
12257
|
+
{ type: ToastrService }
|
|
12244
12258
|
]; };
|
|
12245
|
-
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)
|
|
12259
|
+
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)); }, token: OfficeAutomatorService, providedIn: "root" });
|
|
12246
12260
|
return OfficeAutomatorService;
|
|
12247
12261
|
}());
|
|
12248
12262
|
|
|
@@ -15976,18 +15990,6 @@ var win_show_image = /** @class */ (function () {
|
|
|
15976
15990
|
return win_show_image;
|
|
15977
15991
|
}());
|
|
15978
15992
|
|
|
15979
|
-
/**
|
|
15980
|
-
* @fileoverview added by tsickle
|
|
15981
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15982
|
-
*/
|
|
15983
|
-
var CustomEvent = /** @class */ (function () {
|
|
15984
|
-
function CustomEvent(name, imageIndex) {
|
|
15985
|
-
this.name = name;
|
|
15986
|
-
this.imageIndex = imageIndex;
|
|
15987
|
-
}
|
|
15988
|
-
return CustomEvent;
|
|
15989
|
-
}());
|
|
15990
|
-
|
|
15991
15993
|
/**
|
|
15992
15994
|
* @fileoverview added by tsickle
|
|
15993
15995
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -16024,7 +16026,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16024
16026
|
this.index = 0;
|
|
16025
16027
|
this.indexChange = new EventEmitter();
|
|
16026
16028
|
this.configChange = new EventEmitter();
|
|
16027
|
-
this.
|
|
16029
|
+
this.fullScreenEvent = new EventEmitter();
|
|
16028
16030
|
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
16029
16031
|
this.fullscreen = false;
|
|
16030
16032
|
this.loading = false; // true;
|
|
@@ -16191,6 +16193,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16191
16193
|
*/
|
|
16192
16194
|
function () {
|
|
16193
16195
|
this.fullscreen = !this.fullscreen;
|
|
16196
|
+
if (this.fullscreen)
|
|
16197
|
+
this.fullScreenEvent.emit();
|
|
16194
16198
|
if (!this.fullscreen) {
|
|
16195
16199
|
this.reset();
|
|
16196
16200
|
}
|
|
@@ -16213,19 +16217,6 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16213
16217
|
function () {
|
|
16214
16218
|
this.configChange.next(this.config);
|
|
16215
16219
|
};
|
|
16216
|
-
/**
|
|
16217
|
-
* @param {?} name
|
|
16218
|
-
* @param {?} imageIndex
|
|
16219
|
-
* @return {?}
|
|
16220
|
-
*/
|
|
16221
|
-
ImageViewerComponent.prototype.fireCustomEvent = /**
|
|
16222
|
-
* @param {?} name
|
|
16223
|
-
* @param {?} imageIndex
|
|
16224
|
-
* @return {?}
|
|
16225
|
-
*/
|
|
16226
|
-
function (name, imageIndex) {
|
|
16227
|
-
this.customEvent.emit(new CustomEvent(name, imageIndex));
|
|
16228
|
-
};
|
|
16229
16220
|
/**
|
|
16230
16221
|
* @return {?}
|
|
16231
16222
|
*/
|
|
@@ -16309,8 +16300,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16309
16300
|
};
|
|
16310
16301
|
ImageViewerComponent.decorators = [
|
|
16311
16302
|
{ type: Component, args: [{
|
|
16312
|
-
selector: '
|
|
16313
|
-
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
|
|
16303
|
+
selector: 'fh-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\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",
|
|
16314
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)}}"]
|
|
16315
16306
|
}] }
|
|
16316
16307
|
];
|
|
@@ -16324,7 +16315,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16324
16315
|
config: [{ type: Input }],
|
|
16325
16316
|
indexChange: [{ type: Output }],
|
|
16326
16317
|
configChange: [{ type: Output }],
|
|
16327
|
-
|
|
16318
|
+
fullScreenEvent: [{ type: Output }],
|
|
16328
16319
|
nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
16329
16320
|
prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
16330
16321
|
onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
|
|
@@ -16452,6 +16443,18 @@ var image_preview = /** @class */ (function () {
|
|
|
16452
16443
|
this.photo_c.toggleFullscreen();
|
|
16453
16444
|
this.already_open = true;
|
|
16454
16445
|
};
|
|
16446
|
+
/**
|
|
16447
|
+
* @return {?}
|
|
16448
|
+
*/
|
|
16449
|
+
image_preview.prototype.fullScreenEvent = /**
|
|
16450
|
+
* @return {?}
|
|
16451
|
+
*/
|
|
16452
|
+
function () {
|
|
16453
|
+
if (this.u != null)
|
|
16454
|
+
if (this.u.image_thumbnail != null)
|
|
16455
|
+
if (this.u.image_thumbnail.length > 0 && this.preview && !this.already_open)
|
|
16456
|
+
this.toggle_up();
|
|
16457
|
+
};
|
|
16455
16458
|
/**
|
|
16456
16459
|
* @param {?} event
|
|
16457
16460
|
* @return {?}
|
|
@@ -16495,7 +16498,7 @@ var image_preview = /** @class */ (function () {
|
|
|
16495
16498
|
image_preview.decorators = [
|
|
16496
16499
|
{ type: Component, args: [{
|
|
16497
16500
|
selector: 'image_preview',
|
|
16498
|
-
template: "\n
|
|
16501
|
+
template: "\n \n\n <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>\n \n </div>\n",
|
|
16499
16502
|
styles: ["\n\n "]
|
|
16500
16503
|
}] }
|
|
16501
16504
|
];
|