@fluxhub/fluxhub-lib 1.0.363 → 1.0.365
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 +8 -3
- 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/esm2015/lib/controls/fhdatepicker.js +6 -3
- package/esm2015/lib/controls/fhuploadpanel.js +6 -2
- package/esm5/lib/controls/fhdatepicker.js +6 -3
- package/esm5/lib/controls/fhuploadpanel.js +6 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +8 -3
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +8 -3
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3449,6 +3449,7 @@ class FHUploadPanelComponent {
|
|
|
3449
3449
|
this.sovrascrivi_path = '';
|
|
3450
3450
|
this.ruolo_supervisore = '[ZZZ_DIS_CC]';
|
|
3451
3451
|
this.access_control = false;
|
|
3452
|
+
this.show_images = true;
|
|
3452
3453
|
this.change = new EventEmitter();
|
|
3453
3454
|
this.App = '';
|
|
3454
3455
|
this.K = '';
|
|
@@ -3637,7 +3638,7 @@ class FHUploadPanelComponent {
|
|
|
3637
3638
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
3638
3639
|
this.arr_g[i].icon = iconf + '.svg';
|
|
3639
3640
|
this.arr_g[i].can_delete = !this.access_control || this.arr_g[i].idp == this._appservice.user || this.uti.hasRole(this.ruolo_supervisore);
|
|
3640
|
-
if (this.arr_g[i].Filename.indexOf(".jpg") != -1 || this.arr_g[i].Filename.indexOf(".gif") != -1 || this.arr_g[i].Filename.indexOf(".png") != -1) {
|
|
3641
|
+
if ((this.arr_g[i].Filename.indexOf(".jpg") != -1 || this.arr_g[i].Filename.indexOf(".gif") != -1 || this.arr_g[i].Filename.indexOf(".png") != -1) && this.show_images) {
|
|
3641
3642
|
this.arr_g[i].type = "IMG";
|
|
3642
3643
|
this.arr_g[i].image_original = [this.arr_g[i].url];
|
|
3643
3644
|
if (this.arr_g[i].preview != null)
|
|
@@ -3843,6 +3844,7 @@ FHUploadPanelComponent.propDecorators = {
|
|
|
3843
3844
|
sovrascrivi_path: [{ type: Input }],
|
|
3844
3845
|
ruolo_supervisore: [{ type: Input }],
|
|
3845
3846
|
access_control: [{ type: Input }],
|
|
3847
|
+
show_images: [{ type: Input }],
|
|
3846
3848
|
change: [{ type: Output }],
|
|
3847
3849
|
upc: [{ type: ViewChild, args: ['upc',] }]
|
|
3848
3850
|
};
|
|
@@ -8628,10 +8630,13 @@ class FHDatePickerComponent extends FHValueAccessor {
|
|
|
8628
8630
|
if (arr[0].length == 1)
|
|
8629
8631
|
arr[0] = "0" + arr[0];
|
|
8630
8632
|
if (parseInt(arr[2]) < 3000 && parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 && parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12) {
|
|
8631
|
-
console.log('arr ', arr);
|
|
8632
8633
|
/** @type {?} */
|
|
8633
8634
|
let dtp = new MomentDateAdapter();
|
|
8634
|
-
|
|
8635
|
+
/** @type {?} */
|
|
8636
|
+
let yy = parseInt(arr[2]);
|
|
8637
|
+
if (yy < 100)
|
|
8638
|
+
yy += 2000;
|
|
8639
|
+
this.date_sel = dtp.createDate(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
|
|
8635
8640
|
console.log('dare s', this.date_sel);
|
|
8636
8641
|
}
|
|
8637
8642
|
else
|