@fluxhub/fluxhub-lib 1.0.236 → 1.0.238
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 +22 -31
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/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 +25 -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 +77 -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 +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +12 -15
- package/esm2015/lib/controls/image_preview.js +14 -14
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +12 -20
- package/esm5/lib/controls/image_preview.js +16 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +20 -36
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +22 -31
- 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 +3 -3
- package/lib/controls/image_preview.d.ts +2 -1
- package/package.json +6 -6
|
@@ -15990,18 +15990,6 @@ var win_show_image = /** @class */ (function () {
|
|
|
15990
15990
|
return win_show_image;
|
|
15991
15991
|
}());
|
|
15992
15992
|
|
|
15993
|
-
/**
|
|
15994
|
-
* @fileoverview added by tsickle
|
|
15995
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15996
|
-
*/
|
|
15997
|
-
var CustomEvent = /** @class */ (function () {
|
|
15998
|
-
function CustomEvent(name, imageIndex) {
|
|
15999
|
-
this.name = name;
|
|
16000
|
-
this.imageIndex = imageIndex;
|
|
16001
|
-
}
|
|
16002
|
-
return CustomEvent;
|
|
16003
|
-
}());
|
|
16004
|
-
|
|
16005
15993
|
/**
|
|
16006
15994
|
* @fileoverview added by tsickle
|
|
16007
15995
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -16036,9 +16024,10 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16036
16024
|
function ImageViewerComponent(moduleConfig) {
|
|
16037
16025
|
this.moduleConfig = moduleConfig;
|
|
16038
16026
|
this.index = 0;
|
|
16027
|
+
this.preview = false;
|
|
16039
16028
|
this.indexChange = new EventEmitter();
|
|
16040
16029
|
this.configChange = new EventEmitter();
|
|
16041
|
-
this.
|
|
16030
|
+
this.fullScreenEvent = new EventEmitter();
|
|
16042
16031
|
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
16043
16032
|
this.fullscreen = false;
|
|
16044
16033
|
this.loading = false; // true;
|
|
@@ -16205,6 +16194,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16205
16194
|
*/
|
|
16206
16195
|
function () {
|
|
16207
16196
|
this.fullscreen = !this.fullscreen;
|
|
16197
|
+
if (this.fullscreen)
|
|
16198
|
+
this.fullScreenEvent.emit();
|
|
16208
16199
|
if (!this.fullscreen) {
|
|
16209
16200
|
this.reset();
|
|
16210
16201
|
}
|
|
@@ -16227,19 +16218,6 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16227
16218
|
function () {
|
|
16228
16219
|
this.configChange.next(this.config);
|
|
16229
16220
|
};
|
|
16230
|
-
/**
|
|
16231
|
-
* @param {?} name
|
|
16232
|
-
* @param {?} imageIndex
|
|
16233
|
-
* @return {?}
|
|
16234
|
-
*/
|
|
16235
|
-
ImageViewerComponent.prototype.fireCustomEvent = /**
|
|
16236
|
-
* @param {?} name
|
|
16237
|
-
* @param {?} imageIndex
|
|
16238
|
-
* @return {?}
|
|
16239
|
-
*/
|
|
16240
|
-
function (name, imageIndex) {
|
|
16241
|
-
this.customEvent.emit(new CustomEvent(name, imageIndex));
|
|
16242
|
-
};
|
|
16243
16221
|
/**
|
|
16244
16222
|
* @return {?}
|
|
16245
16223
|
*/
|
|
@@ -16323,8 +16301,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16323
16301
|
};
|
|
16324
16302
|
ImageViewerComponent.decorators = [
|
|
16325
16303
|
{ type: Component, args: [{
|
|
16326
|
-
selector: '
|
|
16327
|
-
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
|
|
16304
|
+
selector: 'fh-image-viewer',
|
|
16305
|
+
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 && !preview\" (click)=\"rotateCounterClockwise()\">\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateClockwise && !preview\" (click)=\"rotateClockwise()\">\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomOut && !preview\" (click)=\"zoomOut()\">\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomIn && !preview\" (click)=\"zoomIn()\">\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n\n\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",
|
|
16328
16306
|
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)}}"]
|
|
16329
16307
|
}] }
|
|
16330
16308
|
];
|
|
@@ -16335,10 +16313,11 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16335
16313
|
ImageViewerComponent.propDecorators = {
|
|
16336
16314
|
src: [{ type: Input }],
|
|
16337
16315
|
index: [{ type: Input }],
|
|
16316
|
+
preview: [{ type: Input }],
|
|
16338
16317
|
config: [{ type: Input }],
|
|
16339
16318
|
indexChange: [{ type: Output }],
|
|
16340
16319
|
configChange: [{ type: Output }],
|
|
16341
|
-
|
|
16320
|
+
fullScreenEvent: [{ type: Output }],
|
|
16342
16321
|
nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
16343
16322
|
prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
16344
16323
|
onMouseOver: [{ type: HostListener, args: ['mouseover',] }],
|
|
@@ -16463,9 +16442,21 @@ var image_preview = /** @class */ (function () {
|
|
|
16463
16442
|
this.photo_c.src = [];
|
|
16464
16443
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
16465
16444
|
this.config = this.config_photo_big;
|
|
16466
|
-
this.photo_c.toggleFullscreen()
|
|
16445
|
+
//this.photo_c.toggleFullscreen()
|
|
16467
16446
|
this.already_open = true;
|
|
16468
16447
|
};
|
|
16448
|
+
/**
|
|
16449
|
+
* @return {?}
|
|
16450
|
+
*/
|
|
16451
|
+
image_preview.prototype.fullScreenEvent = /**
|
|
16452
|
+
* @return {?}
|
|
16453
|
+
*/
|
|
16454
|
+
function () {
|
|
16455
|
+
if (this.u != null)
|
|
16456
|
+
if (this.u.image_thumbnail != null)
|
|
16457
|
+
if (this.u.image_thumbnail.length > 0 && this.preview && !this.already_open)
|
|
16458
|
+
this.toggle_up();
|
|
16459
|
+
};
|
|
16469
16460
|
/**
|
|
16470
16461
|
* @param {?} event
|
|
16471
16462
|
* @return {?}
|
|
@@ -16509,7 +16500,7 @@ var image_preview = /** @class */ (function () {
|
|
|
16509
16500
|
image_preview.decorators = [
|
|
16510
16501
|
{ type: Component, args: [{
|
|
16511
16502
|
selector: 'image_preview',
|
|
16512
|
-
template: "\n
|
|
16503
|
+
template: "\n \n\n <div style=\"max-width:460px\"><fh-image-viewer [(preview)]=\"_preview\" (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",
|
|
16513
16504
|
styles: ["\n\n "]
|
|
16514
16505
|
}] }
|
|
16515
16506
|
];
|