@fluxhub/fluxhub-lib 11.0.147 → 11.0.149
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 +17 -23
- 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/fhlist.js +13 -22
- package/esm2015/lib/controls/win_list_pick.js +6 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +17 -22
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_list_pick.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9616,13 +9616,6 @@
|
|
|
9616
9616
|
FHListComponent.prototype.upd_f = function (u, b) {
|
|
9617
9617
|
if (this.single_sel)
|
|
9618
9618
|
u.checked = true;
|
|
9619
|
-
/*console.log(b.descrizione_valore +" "+b.checked);
|
|
9620
|
-
for(let i:number=0;i<this.myData.length;i++)
|
|
9621
|
-
if(this.myData[i].descrizione_valore==u.descrizione_valore){
|
|
9622
|
-
this.myData[i].checked=b.checked
|
|
9623
|
-
|
|
9624
|
-
break;
|
|
9625
|
-
}*/
|
|
9626
9619
|
var o = new Object();
|
|
9627
9620
|
o.u = u;
|
|
9628
9621
|
o.b = b;
|
|
@@ -9631,6 +9624,7 @@
|
|
|
9631
9624
|
FHListComponent.prototype.resetValue = function () {
|
|
9632
9625
|
for (var i = 0; i < this.myData.length; i++)
|
|
9633
9626
|
this.myData[i].checked = false;
|
|
9627
|
+
this.applyFilter();
|
|
9634
9628
|
};
|
|
9635
9629
|
FHListComponent.prototype.reset = function () {
|
|
9636
9630
|
this.myData = new Array();
|
|
@@ -9662,11 +9656,6 @@
|
|
|
9662
9656
|
_this.setByDescri(_this.valDef);
|
|
9663
9657
|
_this.fillend.emit();
|
|
9664
9658
|
}
|
|
9665
|
-
}, function (err) {
|
|
9666
|
-
_this.errorMsg =
|
|
9667
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
9668
|
-
_this.sql +
|
|
9669
|
-
']';
|
|
9670
9659
|
});
|
|
9671
9660
|
};
|
|
9672
9661
|
FHListComponent.prototype.setByDescri = function (desc_val) {
|
|
@@ -9726,6 +9715,7 @@
|
|
|
9726
9715
|
//console.log("selval: "+this.selval);
|
|
9727
9716
|
}
|
|
9728
9717
|
}
|
|
9718
|
+
this.applyFilter();
|
|
9729
9719
|
};
|
|
9730
9720
|
FHListComponent.prototype.getDescri = function () {
|
|
9731
9721
|
var sx = '';
|
|
@@ -9739,26 +9729,26 @@
|
|
|
9739
9729
|
};
|
|
9740
9730
|
FHListComponent.prototype.getObjects = function () {
|
|
9741
9731
|
var sx = new Array();
|
|
9742
|
-
for (var j = 0; j < this.
|
|
9743
|
-
if (this.
|
|
9744
|
-
sx.push(this.
|
|
9732
|
+
for (var j = 0; j < this.myDataFilter.length; j++)
|
|
9733
|
+
if (this.myDataFilter[j].checked) {
|
|
9734
|
+
sx.push(this.myDataFilter[j]);
|
|
9745
9735
|
}
|
|
9746
9736
|
return sx;
|
|
9747
9737
|
};
|
|
9748
9738
|
FHListComponent.prototype.getValue = function () {
|
|
9749
9739
|
var sx = '';
|
|
9750
|
-
for (var j = 0; j < this.
|
|
9751
|
-
if (this.
|
|
9740
|
+
for (var j = 0; j < this.myDataFilter.length; j++)
|
|
9741
|
+
if (this.myDataFilter[j].checked) {
|
|
9752
9742
|
if (sx != '')
|
|
9753
9743
|
sx = sx + this.separator;
|
|
9754
|
-
sx = sx + this.
|
|
9744
|
+
sx = sx + this.myDataFilter[j].valore;
|
|
9755
9745
|
}
|
|
9756
9746
|
return sx;
|
|
9757
9747
|
};
|
|
9758
9748
|
FHListComponent.prototype.getData = function (campo) {
|
|
9759
|
-
for (var x in this.
|
|
9760
|
-
if (this.
|
|
9761
|
-
return this.
|
|
9749
|
+
for (var x in this.myDataFilter) {
|
|
9750
|
+
if (this.myDataFilter[x]['valore'] == this.selval) {
|
|
9751
|
+
return this.myDataFilter[x][campo];
|
|
9762
9752
|
}
|
|
9763
9753
|
else {
|
|
9764
9754
|
continue;
|
|
@@ -9768,6 +9758,7 @@
|
|
|
9768
9758
|
FHListComponent.prototype.add_option = function (o) {
|
|
9769
9759
|
o.valore = o.valore.toString();
|
|
9770
9760
|
this.myData.push(o);
|
|
9761
|
+
this.applyFilter();
|
|
9771
9762
|
};
|
|
9772
9763
|
FHListComponent.prototype.set_options = function (s) {
|
|
9773
9764
|
this.myData = new Array();
|
|
@@ -10447,6 +10438,7 @@
|
|
|
10447
10438
|
this.single_sel = false;
|
|
10448
10439
|
this.sel_values = "";
|
|
10449
10440
|
this.required = true;
|
|
10441
|
+
this.enableSearch = true;
|
|
10450
10442
|
this.options = null;
|
|
10451
10443
|
this.cmb_sel = null;
|
|
10452
10444
|
if (data != null) {
|
|
@@ -10472,6 +10464,8 @@
|
|
|
10472
10464
|
this.doFill();
|
|
10473
10465
|
if (data.options != null)
|
|
10474
10466
|
this.options = data.options;
|
|
10467
|
+
if (data.enableSearch != null)
|
|
10468
|
+
this.enableSearch = data.enableSearch;
|
|
10475
10469
|
}
|
|
10476
10470
|
}
|
|
10477
10471
|
fh_win_list.prototype.close = function () {
|
|
@@ -10479,7 +10473,7 @@
|
|
|
10479
10473
|
};
|
|
10480
10474
|
fh_win_list.prototype.doFill = function () {
|
|
10481
10475
|
var _this = this;
|
|
10482
|
-
console.log("🚀 ~ file: win_list_pick.ts ~ line 90 ~ fh_win_list ~ doFill ~ this.cmb_sel", this.cmb_sel)
|
|
10476
|
+
// console.log("🚀 ~ file: win_list_pick.ts ~ line 90 ~ fh_win_list ~ doFill ~ this.cmb_sel", this.cmb_sel)
|
|
10483
10477
|
if (this.cmb_sel == null) {
|
|
10484
10478
|
setTimeout(function () {
|
|
10485
10479
|
_this.doFill();
|
|
@@ -10525,7 +10519,7 @@
|
|
|
10525
10519
|
fh_win_list.decorators = [
|
|
10526
10520
|
{ type: i0.Component, args: [{
|
|
10527
10521
|
selector: "fh_win_list",
|
|
10528
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">{{ title }}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" />\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-dialog-content style=\"min-width:700px;min-height:500px\">\n <FHList\n #cmb_sel\n [label]=\"label\"\n [single_sel]=\"single_sel\"\n [separator]=\"separator\"\n style=\"width:100%;height:100%\"\n [init_fill]=\"false\"\n (selchange)=\"ok_single()\"\n ></FHList>\n </mat-dialog-content>\n\n <mat-dialog-actions>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n <button\n mat-flat-button\n color=\"primary\"\n *ngIf=\"!single_sel\"\n (click)=\"ok()\"\n >\n OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close('')\"\n >\n ANNULLA\n </button>\n </div>\n </mat-dialog-actions>\n</div>\n "
|
|
10522
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">{{ title }}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" />\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-dialog-content style=\"min-width:700px;min-height:500px\">\n <FHList\n #cmb_sel\n [label]=\"label\"\n [single_sel]=\"single_sel\"\n [separator]=\"separator\"\n [enableSearch]=\"enableSearch\"\n style=\"width:100%;height:100%\"\n [init_fill]=\"false\"\n (selchange)=\"ok_single()\"\n ></FHList>\n </mat-dialog-content>\n\n <mat-dialog-actions>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n <button\n mat-flat-button\n color=\"primary\"\n *ngIf=\"!single_sel\"\n (click)=\"ok()\"\n >\n OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close('')\"\n >\n ANNULLA\n </button>\n </div>\n </mat-dialog-actions>\n</div>\n "
|
|
10529
10523
|
},] }
|
|
10530
10524
|
];
|
|
10531
10525
|
fh_win_list.ctorParameters = function () { return [
|