@fluxhub/fluxhub-lib 10.0.170 → 10.0.172
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 -32
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +38 -32
- package/esm2015/lib/controls/fhgrid_json.js +2 -2
- package/esm2015/lib/controls/fhupload.js +4 -1
- package/esm2015/lib/controls/fhuploadpanel.js +4 -1
- package/esm2015/lib/controls/fhuploadpanel_s3.js +4 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +47 -32
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +1 -0
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/controls/fhuploadpanel_s3.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1584,6 +1584,7 @@
|
|
|
1584
1584
|
this.b_initt = false;
|
|
1585
1585
|
this.change = new i0.EventEmitter();
|
|
1586
1586
|
this.call_upload = new i0.EventEmitter();
|
|
1587
|
+
this.init_end = new i0.EventEmitter();
|
|
1587
1588
|
this.image_mode = false;
|
|
1588
1589
|
this.App = "";
|
|
1589
1590
|
this.K = "";
|
|
@@ -1718,6 +1719,8 @@
|
|
|
1718
1719
|
});
|
|
1719
1720
|
};
|
|
1720
1721
|
FHUploadPanelS3Component.prototype.ngAfterViewInit = function () {
|
|
1722
|
+
var _this = this;
|
|
1723
|
+
setTimeout(function () { _this.init_end.emit(); });
|
|
1721
1724
|
};
|
|
1722
1725
|
FHUploadPanelS3Component.prototype.init_upload = function () {
|
|
1723
1726
|
var _this = this;
|
|
@@ -1855,6 +1858,7 @@
|
|
|
1855
1858
|
can_delete_owner: [{ type: i0.Input }],
|
|
1856
1859
|
change: [{ type: i0.Output }],
|
|
1857
1860
|
call_upload: [{ type: i0.Output }],
|
|
1861
|
+
init_end: [{ type: i0.Output }],
|
|
1858
1862
|
upc: [{ type: i0.ViewChild, args: ["upc",] }]
|
|
1859
1863
|
};
|
|
1860
1864
|
|
|
@@ -4095,6 +4099,7 @@
|
|
|
4095
4099
|
this.b_initt = false;
|
|
4096
4100
|
this.change = new i0.EventEmitter();
|
|
4097
4101
|
this.call_upload = new i0.EventEmitter();
|
|
4102
|
+
this.init_end = new i0.EventEmitter();
|
|
4098
4103
|
this.App = "";
|
|
4099
4104
|
this.K = "";
|
|
4100
4105
|
this.image_type = false;
|
|
@@ -4244,6 +4249,7 @@
|
|
|
4244
4249
|
_this.multi_list = true;
|
|
4245
4250
|
}
|
|
4246
4251
|
_this.ref_allegato();
|
|
4252
|
+
_this.init_end.emit();
|
|
4247
4253
|
});
|
|
4248
4254
|
if (this.ruolo_supervisore != "[ZZZ_DIS_CC]")
|
|
4249
4255
|
this.access_control = true;
|
|
@@ -4403,6 +4409,7 @@
|
|
|
4403
4409
|
show_upload: [{ type: i0.Input }],
|
|
4404
4410
|
change: [{ type: i0.Output }],
|
|
4405
4411
|
call_upload: [{ type: i0.Output }],
|
|
4412
|
+
init_end: [{ type: i0.Output }],
|
|
4406
4413
|
upc: [{ type: i0.ViewChild, args: ["upc",] }]
|
|
4407
4414
|
};
|
|
4408
4415
|
|
|
@@ -4433,6 +4440,7 @@
|
|
|
4433
4440
|
this.upload_ended = new i0.EventEmitter();
|
|
4434
4441
|
this.call_upload = new i0.EventEmitter();
|
|
4435
4442
|
this.fill_end = new i0.EventEmitter();
|
|
4443
|
+
this.init_end = new i0.EventEmitter();
|
|
4436
4444
|
this.id_component = '';
|
|
4437
4445
|
this.hasBaseDropZoneOver = false;
|
|
4438
4446
|
this.hasAnotherDropZoneOver = false;
|
|
@@ -4587,6 +4595,7 @@
|
|
|
4587
4595
|
_this.toastr.error("Errore: " + filter.name);
|
|
4588
4596
|
}
|
|
4589
4597
|
};
|
|
4598
|
+
_this.init_end.emit();
|
|
4590
4599
|
});
|
|
4591
4600
|
};
|
|
4592
4601
|
FHUploadComponent.prototype.download_all = function () {
|
|
@@ -4744,6 +4753,7 @@
|
|
|
4744
4753
|
upload_ended: [{ type: i0.Output }],
|
|
4745
4754
|
call_upload: [{ type: i0.Output }],
|
|
4746
4755
|
fill_end: [{ type: i0.Output }],
|
|
4756
|
+
init_end: [{ type: i0.Output }],
|
|
4747
4757
|
select_file: [{ type: i0.ViewChild, args: ['select_file',] }],
|
|
4748
4758
|
cmb_tipo: [{ type: i0.ViewChild, args: ["cmb_tipo",] }]
|
|
4749
4759
|
};
|
|
@@ -5434,16 +5444,16 @@
|
|
|
5434
5444
|
if (this.curr_config == "-1")
|
|
5435
5445
|
return;
|
|
5436
5446
|
localStorage.removeItem(this.grid_key + "_COLS");
|
|
5437
|
-
localStorage.removeItem(this.grid_key + "_SORT");
|
|
5447
|
+
// localStorage.removeItem(this.grid_key + "_SORT");
|
|
5438
5448
|
localStorage.removeItem(this.grid_key + "_FILTER");
|
|
5439
5449
|
localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
|
|
5440
5450
|
localStorage.removeItem(this.grid_key + "_FILTER_UP");
|
|
5441
5451
|
if (this.gf.getObj().COL != null)
|
|
5442
5452
|
if (this.gf.getObj().COL != "")
|
|
5443
5453
|
localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
|
|
5444
|
-
if (this.gf.getObj().SORT != null)
|
|
5445
|
-
|
|
5446
|
-
|
|
5454
|
+
// if (this.gf.getObj().SORT != null)
|
|
5455
|
+
// if (this.gf.getObj().SORT != "")
|
|
5456
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
5447
5457
|
if (this.gf.getObj().FILTER != null)
|
|
5448
5458
|
if (this.gf.getObj().FILTER != "")
|
|
5449
5459
|
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
@@ -5507,12 +5517,12 @@
|
|
|
5507
5517
|
var p = new QParam();
|
|
5508
5518
|
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
5509
5519
|
var p_col = "";
|
|
5510
|
-
|
|
5520
|
+
// let p_sort: string = "";
|
|
5511
5521
|
var p_filter = "";
|
|
5512
5522
|
if (localStorage.getItem(_this.grid_key + "_COLS") != null)
|
|
5513
5523
|
p_col = localStorage.getItem(_this.grid_key + "_COLS");
|
|
5514
|
-
if (localStorage.getItem(
|
|
5515
|
-
|
|
5524
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
5525
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
5516
5526
|
if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
|
|
5517
5527
|
p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
|
|
5518
5528
|
p.types = ["string", "string", "string", "string", "string", "string"];
|
|
@@ -5565,12 +5575,12 @@
|
|
|
5565
5575
|
var p = new QParam();
|
|
5566
5576
|
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
5567
5577
|
var p_col = "";
|
|
5568
|
-
|
|
5578
|
+
// let p_sort: string = "";
|
|
5569
5579
|
var p_filter = "";
|
|
5570
5580
|
if (localStorage.getItem(_this.grid_key + "_COLS") != null)
|
|
5571
5581
|
p_col = localStorage.getItem(_this.grid_key + "_COLS");
|
|
5572
|
-
if (localStorage.getItem(
|
|
5573
|
-
|
|
5582
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
5583
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
5574
5584
|
if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
|
|
5575
5585
|
p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
|
|
5576
5586
|
p.types = [
|
|
@@ -6267,30 +6277,31 @@
|
|
|
6267
6277
|
console.log(eer);
|
|
6268
6278
|
}
|
|
6269
6279
|
}
|
|
6270
|
-
try {
|
|
6280
|
+
/* try {
|
|
6271
6281
|
this.gridOptions.api.setSortModel(null);
|
|
6272
|
-
|
|
6273
|
-
catch (eer) {
|
|
6282
|
+
} catch (eer) {
|
|
6274
6283
|
console.log(eer);
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
(
|
|
6284
|
+
}
|
|
6285
|
+
if (
|
|
6286
|
+
localStorage.getItem(this.grid_key + "_SORT") != null &&
|
|
6287
|
+
(b_mantieni_ck || forza)
|
|
6288
|
+
)
|
|
6278
6289
|
if (localStorage.getItem(this.grid_key + "_SORT") != "") {
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6290
|
+
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
6291
|
+
// console.log(localStorage.getItem(this.grid_key+'_SORT'));
|
|
6292
|
+
try {
|
|
6293
|
+
this.gridOptions.api.setSortModel(
|
|
6294
|
+
JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
|
|
6295
|
+
);
|
|
6296
|
+
} catch (eer) {
|
|
6297
|
+
console.log(eer);
|
|
6298
|
+
}
|
|
6287
6299
|
}
|
|
6288
|
-
|
|
6300
|
+
try {
|
|
6289
6301
|
this.gridOptions.api.setFilterModel(null);
|
|
6290
|
-
|
|
6291
|
-
catch (eer) {
|
|
6302
|
+
} catch (eer) {
|
|
6292
6303
|
console.log(eer);
|
|
6293
|
-
|
|
6304
|
+
}*/
|
|
6294
6305
|
if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
|
|
6295
6306
|
(b_mantieni_ck || forza))
|
|
6296
6307
|
if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
|
|
@@ -6362,7 +6373,7 @@
|
|
|
6362
6373
|
if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
|
|
6363
6374
|
this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
|
|
6364
6375
|
localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COLS);
|
|
6365
|
-
localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
6376
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
6366
6377
|
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
6367
6378
|
this.curr_config = this.gf.getValue();
|
|
6368
6379
|
}
|
|
@@ -6476,9 +6487,14 @@
|
|
|
6476
6487
|
if (this.no_pref)
|
|
6477
6488
|
return;
|
|
6478
6489
|
if (this.b_init) {
|
|
6479
|
-
|
|
6490
|
+
localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
6480
6491
|
// console.log('salvo s: '+this.gridOptions.api.getSortModel());
|
|
6481
|
-
|
|
6492
|
+
/*
|
|
6493
|
+
|
|
6494
|
+
localStorage.setItem(
|
|
6495
|
+
this.grid_key + "_SORT",
|
|
6496
|
+
JSON.stringify(this.gridOptions.api.getSortModel())
|
|
6497
|
+
);*/
|
|
6482
6498
|
}
|
|
6483
6499
|
};
|
|
6484
6500
|
FHGridComponent.prototype.onVirtualRowRemoved = function ($event) {
|
|
@@ -11707,7 +11723,7 @@
|
|
|
11707
11723
|
}
|
|
11708
11724
|
}
|
|
11709
11725
|
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
11710
|
-
this.gridOptions.api.setGridAutoHeight(!iOS);
|
|
11726
|
+
// this.gridOptions.api.setGridAutoHeight(!iOS);
|
|
11711
11727
|
this.onready_go();
|
|
11712
11728
|
};
|
|
11713
11729
|
FHGridJSONComponent.prototype.save_cfg = function () {
|