@fluxhub/fluxhub-lib 1.0.233 → 1.0.235
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 +48 -4
- 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/FHUploadPanelComponent.html +110 -1
- package/docs/components/image_preview.html +31 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhupload.js +2 -3
- package/esm2015/lib/controls/fhuploadpanel.js +13 -4
- package/esm2015/lib/controls/image_preview.js +33 -1
- package/esm5/lib/controls/fhupload.js +1 -2
- package/esm5/lib/controls/fhuploadpanel.js +17 -4
- package/esm5/lib/controls/image_preview.js +33 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +41 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +44 -4
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +3 -1
- package/lib/controls/image_preview.d.ts +25 -1
- package/package.json +1 -1
|
@@ -3008,7 +3008,6 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3008
3008
|
*/
|
|
3009
3009
|
function () {
|
|
3010
3010
|
var _this = this;
|
|
3011
|
-
console.log('INIT');
|
|
3012
3011
|
/** @type {?} */
|
|
3013
3012
|
var uo = {};
|
|
3014
3013
|
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
@@ -3625,6 +3624,8 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3625
3624
|
this.b_False = false;
|
|
3626
3625
|
this.b_mobile = false;
|
|
3627
3626
|
this.b_ini = false;
|
|
3627
|
+
this.m_p_tipo = "";
|
|
3628
|
+
this.m_programma_da_eseguire = "";
|
|
3628
3629
|
}
|
|
3629
3630
|
/**
|
|
3630
3631
|
* @param {?} ax
|
|
@@ -3694,29 +3695,36 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3694
3695
|
* @return {?}
|
|
3695
3696
|
*/
|
|
3696
3697
|
function () {
|
|
3697
|
-
console.log('INIT1');
|
|
3698
3698
|
this.upc.single = false;
|
|
3699
3699
|
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
3700
3700
|
this
|
|
3701
3701
|
.upc
|
|
3702
|
-
.init(this.App, this.K, 'Descrizione Allegato');
|
|
3702
|
+
.init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
|
|
3703
3703
|
this.ref_allegato();
|
|
3704
3704
|
};
|
|
3705
3705
|
/**
|
|
3706
3706
|
* @param {?} p_app
|
|
3707
3707
|
* @param {?} p_k
|
|
3708
|
+
* @param {?=} p_tipo
|
|
3709
|
+
* @param {?=} programma_da_eseguire
|
|
3708
3710
|
* @return {?}
|
|
3709
3711
|
*/
|
|
3710
3712
|
FHUploadPanelComponent.prototype.init = /**
|
|
3711
3713
|
* @param {?} p_app
|
|
3712
3714
|
* @param {?} p_k
|
|
3715
|
+
* @param {?=} p_tipo
|
|
3716
|
+
* @param {?=} programma_da_eseguire
|
|
3713
3717
|
* @return {?}
|
|
3714
3718
|
*/
|
|
3715
|
-
function (p_app, p_k) {
|
|
3719
|
+
function (p_app, p_k, p_tipo, programma_da_eseguire) {
|
|
3720
|
+
if (p_tipo === void 0) { p_tipo = ""; }
|
|
3721
|
+
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
3716
3722
|
this.App = p_app;
|
|
3717
3723
|
this.K = p_k;
|
|
3718
3724
|
this.b_ini = true;
|
|
3719
3725
|
this.b_edit_loaded = false;
|
|
3726
|
+
this.m_p_tipo = p_tipo;
|
|
3727
|
+
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
3720
3728
|
this.ngOnInit();
|
|
3721
3729
|
};
|
|
3722
3730
|
/**
|
|
@@ -16332,6 +16340,38 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16332
16340
|
var image_preview = /** @class */ (function () {
|
|
16333
16341
|
function image_preview() {
|
|
16334
16342
|
this._preview = true;
|
|
16343
|
+
this.config = {
|
|
16344
|
+
btnClass: 'default',
|
|
16345
|
+
// The CSS class(es) that will apply to the buttons
|
|
16346
|
+
zoomFactor: 0.1,
|
|
16347
|
+
// The amount that the scale will be increased by
|
|
16348
|
+
containerBackgroundColor: '#ccc',
|
|
16349
|
+
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
16350
|
+
wheelZoom: true,
|
|
16351
|
+
// If true, the mouse wheel can be used to zoom in
|
|
16352
|
+
allowFullscreen: false,
|
|
16353
|
+
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
16354
|
+
allowKeyboardNavigation: true,
|
|
16355
|
+
// If true, the left / right arrow keys can be used for navigation
|
|
16356
|
+
btnIcons: {
|
|
16357
|
+
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
16358
|
+
zoomIn: 'fa fa-plus',
|
|
16359
|
+
zoomOut: 'fa fa-minus',
|
|
16360
|
+
rotateClockwise: 'fa fa-repeat',
|
|
16361
|
+
rotateCounterClockwise: 'fa fa-undo',
|
|
16362
|
+
next: 'fa fa-arrow-right',
|
|
16363
|
+
prev: 'fa fa-arrow-left',
|
|
16364
|
+
fullscreen: 'fa fa-arrows-alt',
|
|
16365
|
+
},
|
|
16366
|
+
btnShow: {
|
|
16367
|
+
zoomIn: false,
|
|
16368
|
+
zoomOut: false,
|
|
16369
|
+
rotateClockwise: false,
|
|
16370
|
+
rotateCounterClockwise: false,
|
|
16371
|
+
next: false,
|
|
16372
|
+
prev: false
|
|
16373
|
+
}
|
|
16374
|
+
};
|
|
16335
16375
|
this.u = null;
|
|
16336
16376
|
this.already_open = false;
|
|
16337
16377
|
this.config_photo = {
|