@fluxhub/fluxhub-lib 1.0.589 → 1.0.591
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 +14 -8
- 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/fhfieldpicklist.js +7 -2
- package/esm2015/lib/controls/fhlist.js +12 -8
- package/esm2015/lib/controls/win_list_pick.js +5 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/esm5/lib/controls/fhfieldpicklist.js +7 -2
- package/esm5/lib/controls/fhlist.js +10 -6
- package/esm5/lib/controls/win_list_pick.js +5 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhfieldpicklist.d.ts +1 -0
- package/lib/controls/fhlist.d.ts +1 -0
- package/lib/controls/win_list_pick.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2725,6 +2725,7 @@
|
|
|
2725
2725
|
this.label = "";
|
|
2726
2726
|
this.enabled = true;
|
|
2727
2727
|
this.single_sel = false;
|
|
2728
|
+
this.separator = ",";
|
|
2728
2729
|
this.fillend = new core.EventEmitter();
|
|
2729
2730
|
this.selchange = new core.EventEmitter();
|
|
2730
2731
|
this.initend = new core.EventEmitter();
|
|
@@ -2846,7 +2847,7 @@
|
|
|
2846
2847
|
if (this.myData.length == 0 || this.myData[0] == null)
|
|
2847
2848
|
return;
|
|
2848
2849
|
/** @type {?} */
|
|
2849
|
-
var arr_val = desc_val.split(
|
|
2850
|
+
var arr_val = desc_val.split(this.separator);
|
|
2850
2851
|
for (var j = 0; j < this.myData.length; j++)
|
|
2851
2852
|
for (var j1 = 0; j1 < arr_val.length; j1++) {
|
|
2852
2853
|
if (this.myData[j].descrizione_valore == arr_val[j1]) {
|
|
@@ -2899,7 +2900,7 @@
|
|
|
2899
2900
|
return;
|
|
2900
2901
|
//console.log("qui2");
|
|
2901
2902
|
/** @type {?} */
|
|
2902
|
-
var arr_val = desc_val.split(
|
|
2903
|
+
var arr_val = desc_val.split(this.separator);
|
|
2903
2904
|
for (var j = 0; j < this.myData.length; j++)
|
|
2904
2905
|
for (var j1 = 0; j1 < arr_val.length; j1++) {
|
|
2905
2906
|
if (this.myData[j].valore == arr_val[j1]) {
|
|
@@ -2920,7 +2921,7 @@
|
|
|
2920
2921
|
for (var j = 0; j < this.myData.length; j++)
|
|
2921
2922
|
if (this.myData[j].checked) {
|
|
2922
2923
|
if (sx != '')
|
|
2923
|
-
sx = sx +
|
|
2924
|
+
sx = sx + this.separator;
|
|
2924
2925
|
sx = sx + this.myData[j].descrizione_valore;
|
|
2925
2926
|
}
|
|
2926
2927
|
return sx;
|
|
@@ -2952,7 +2953,7 @@
|
|
|
2952
2953
|
for (var j = 0; j < this.myData.length; j++)
|
|
2953
2954
|
if (this.myData[j].checked) {
|
|
2954
2955
|
if (sx != '')
|
|
2955
|
-
sx = sx +
|
|
2956
|
+
sx = sx + this.separator;
|
|
2956
2957
|
sx = sx + this.myData[j].valore;
|
|
2957
2958
|
}
|
|
2958
2959
|
return sx;
|
|
@@ -3058,7 +3059,7 @@
|
|
|
3058
3059
|
};
|
|
3059
3060
|
FHListComponent.decorators = [
|
|
3060
3061
|
{ type: core.Component, args: [{
|
|
3061
|
-
selector: 'FHList', template: "\n\n\n <table class=\"fh_table\" style=\"width:100%;\">\n <thead>\n <tr>\n <th *ngIf=\"!single_sel\"></th>\n <th>\n {{label}}\n\n </th>\n <th *ngIf=\"single_sel\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let u of myData;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"width:20px;\" valign=\"middle\" *ngIf=\"!single_sel\">\n <mat-slide-toggle (change)=\"upd_f(u,$event)\" [disabled]=\"!enabled\"\n [(ngModel)]=\"u.checked\"></mat-slide-toggle>\n </td>\n <td valign=\"middle\">{{u.descrizione_valore}}</td>\n <td valign=\"middle\" style=\"width:20px;text-align: middle\" *ngIf=\"single_sel\" >\n\n <button mat-flat-button color=\"primary\" (click)=\"upd_f(u,$event)\" [disabled]=\"!enabled\" ><mat-icon>send</mat-icon></button> \n\n
|
|
3062
|
+
selector: 'FHList', template: "\n\n\n <table class=\"fh_table\" style=\"width:100%;\">\n <thead>\n <tr>\n <th *ngIf=\"!single_sel\"></th>\n <th>\n {{label}}\n\n </th>\n <th *ngIf=\"single_sel\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let u of myData;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"width:20px;\" valign=\"middle\" *ngIf=\"!single_sel\">\n <mat-slide-toggle (change)=\"upd_f(u,$event)\" [disabled]=\"!enabled\"\n [(ngModel)]=\"u.checked\"></mat-slide-toggle>\n </td>\n <td valign=\"middle\">{{u.descrizione_valore}}</td>\n <td valign=\"middle\" style=\"width:20px;text-align: middle\" *ngIf=\"single_sel\" >\n\n <button mat-flat-button color=\"primary\" (click)=\"upd_f(u,$event)\" [disabled]=\"!enabled\" ><mat-icon>send</mat-icon></button> \n\n\n </td>\n </tr>\n </tbody>\n </table>\n\n\n\n ",
|
|
3062
3063
|
styles: ["\n\n\n "]
|
|
3063
3064
|
}] }
|
|
3064
3065
|
];
|
|
@@ -3074,6 +3075,7 @@
|
|
|
3074
3075
|
label: [{ type: core.Input }],
|
|
3075
3076
|
enabled: [{ type: core.Input }],
|
|
3076
3077
|
single_sel: [{ type: core.Input }],
|
|
3078
|
+
separator: [{ type: core.Input }],
|
|
3077
3079
|
smtr: [{ type: core.ViewChild, args: ['cmb',] }],
|
|
3078
3080
|
fillend: [{ type: core.Output }],
|
|
3079
3081
|
selchange: [{ type: core.Output }],
|
|
@@ -12062,6 +12064,7 @@
|
|
|
12062
12064
|
this.toastr = toastr;
|
|
12063
12065
|
this.m_appService = m_appService;
|
|
12064
12066
|
this.label = "";
|
|
12067
|
+
this.separator = ",";
|
|
12065
12068
|
this.title = "";
|
|
12066
12069
|
this.sql = "";
|
|
12067
12070
|
this.single_sel = false;
|
|
@@ -12116,7 +12119,7 @@
|
|
|
12116
12119
|
FHListPick.decorators = [
|
|
12117
12120
|
{ type: core.Component, args: [{
|
|
12118
12121
|
selector: 'fhlistpick',
|
|
12119
|
-
template: "\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n
|
|
12122
|
+
template: "\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
|
|
12120
12123
|
}] }
|
|
12121
12124
|
];
|
|
12122
12125
|
/** @nocollapse */
|
|
@@ -15911,7 +15914,7 @@
|
|
|
15911
15914
|
setTimeout((/**
|
|
15912
15915
|
* @return {?}
|
|
15913
15916
|
*/
|
|
15914
|
-
function () { _this.save_alreadypressed =
|
|
15917
|
+
function () { _this.save_alreadypressed = false; }), 1000);
|
|
15915
15918
|
if (this.m_obj.codice == '') {
|
|
15916
15919
|
if (this.oper == 'respingi') {
|
|
15917
15920
|
this.alert("Errore di configurazione pratica contattare ufficio IT [0x001]", 1);
|
|
@@ -18892,6 +18895,7 @@
|
|
|
18892
18895
|
this.enabled = true;
|
|
18893
18896
|
this.required = false;
|
|
18894
18897
|
this.db_type = "1";
|
|
18898
|
+
this.separator = ",";
|
|
18895
18899
|
this.value = "";
|
|
18896
18900
|
this.onChange = (/**
|
|
18897
18901
|
* @param {?} _
|
|
@@ -18978,6 +18982,7 @@
|
|
|
18978
18982
|
});
|
|
18979
18983
|
dialogRef.componentInstance.single_sel = this.single_sel;
|
|
18980
18984
|
dialogRef.componentInstance.sel_values = this.value;
|
|
18985
|
+
dialogRef.componentInstance.separator = this.separator;
|
|
18981
18986
|
dialogRef.componentInstance.label = this.label;
|
|
18982
18987
|
dialogRef.componentInstance.sql = this.sql;
|
|
18983
18988
|
dialogRef.componentInstance.types = this.types;
|
|
@@ -18992,7 +18997,7 @@
|
|
|
18992
18997
|
_this.value = '';
|
|
18993
18998
|
for (var i = 0; i < result.length; i++) {
|
|
18994
18999
|
if (_this.value != '')
|
|
18995
|
-
_this.value +=
|
|
19000
|
+
_this.value += _this.separator;
|
|
18996
19001
|
_this.value += result[i].descrizione_valore;
|
|
18997
19002
|
}
|
|
18998
19003
|
return;
|
|
@@ -19029,6 +19034,7 @@
|
|
|
19029
19034
|
enabled: [{ type: core.Input }],
|
|
19030
19035
|
required: [{ type: core.Input }],
|
|
19031
19036
|
db_type: [{ type: core.Input }],
|
|
19037
|
+
separator: [{ type: core.Input }],
|
|
19032
19038
|
value: [{ type: core.Input }]
|
|
19033
19039
|
};
|
|
19034
19040
|
return FHFieldPickListComponent;
|