@fluxhub/fluxhub-lib 1.0.590 → 1.0.592

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.
@@ -2704,6 +2704,7 @@ var FHListComponent = /** @class */ (function () {
2704
2704
  this.label = "";
2705
2705
  this.enabled = true;
2706
2706
  this.single_sel = false;
2707
+ this.separator = ",";
2707
2708
  this.fillend = new EventEmitter();
2708
2709
  this.selchange = new EventEmitter();
2709
2710
  this.initend = new EventEmitter();
@@ -2712,6 +2713,20 @@ var FHListComponent = /** @class */ (function () {
2712
2713
  this.errorMsg = "";
2713
2714
  this.valDef = "-1";
2714
2715
  }
2716
+ /**
2717
+ * @param {?} u
2718
+ * @param {?} o
2719
+ * @return {?}
2720
+ */
2721
+ FHListComponent.prototype.change_v = /**
2722
+ * @param {?} u
2723
+ * @param {?} o
2724
+ * @return {?}
2725
+ */
2726
+ function (u, o) {
2727
+ u.checked = !u.checked;
2728
+ this.upd_f(u, o);
2729
+ };
2715
2730
  /**
2716
2731
  * @param {?} u
2717
2732
  * @param {?} b
@@ -2778,7 +2793,6 @@ var FHListComponent = /** @class */ (function () {
2778
2793
  p.sql = this.sql;
2779
2794
  p.types = this.types;
2780
2795
  p.values = this.values;
2781
- // console.log(p);
2782
2796
  this
2783
2797
  ._dataService
2784
2798
  .doQuery(p)
@@ -2825,7 +2839,7 @@ var FHListComponent = /** @class */ (function () {
2825
2839
  if (this.myData.length == 0 || this.myData[0] == null)
2826
2840
  return;
2827
2841
  /** @type {?} */
2828
- var arr_val = desc_val.split(',');
2842
+ var arr_val = desc_val.split(this.separator);
2829
2843
  for (var j = 0; j < this.myData.length; j++)
2830
2844
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2831
2845
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
@@ -2878,7 +2892,7 @@ var FHListComponent = /** @class */ (function () {
2878
2892
  return;
2879
2893
  //console.log("qui2");
2880
2894
  /** @type {?} */
2881
- var arr_val = desc_val.split(',');
2895
+ var arr_val = desc_val.split(this.separator);
2882
2896
  for (var j = 0; j < this.myData.length; j++)
2883
2897
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2884
2898
  if (this.myData[j].valore == arr_val[j1]) {
@@ -2899,7 +2913,7 @@ var FHListComponent = /** @class */ (function () {
2899
2913
  for (var j = 0; j < this.myData.length; j++)
2900
2914
  if (this.myData[j].checked) {
2901
2915
  if (sx != '')
2902
- sx = sx + ',';
2916
+ sx = sx + this.separator;
2903
2917
  sx = sx + this.myData[j].descrizione_valore;
2904
2918
  }
2905
2919
  return sx;
@@ -2931,7 +2945,7 @@ var FHListComponent = /** @class */ (function () {
2931
2945
  for (var j = 0; j < this.myData.length; j++)
2932
2946
  if (this.myData[j].checked) {
2933
2947
  if (sx != '')
2934
- sx = sx + ',';
2948
+ sx = sx + this.separator;
2935
2949
  sx = sx + this.myData[j].valore;
2936
2950
  }
2937
2951
  return sx;
@@ -3037,7 +3051,7 @@ var FHListComponent = /** @class */ (function () {
3037
3051
  };
3038
3052
  FHListComponent.decorators = [
3039
3053
  { type: Component, args: [{
3040
- 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>&nbsp;&nbsp;&nbsp;\n\n \n </td>\n </tr>\n </tbody>\n </table>\n \n \n\n ",
3054
+ 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 (click)=\"change_v(u,$event)\" valign=\"middle\">{{u.descrizione_valore}}</td>\n <td valign=\"middle\" style=\"width:20px;text-align: center\" *ngIf=\"single_sel\" >\n\n <button mat-flat-button color=\"primary\" (click)=\"upd_f(u,$event)\" [disabled]=\"!enabled\" ><mat-icon>send</mat-icon></button>&nbsp;&nbsp;&nbsp;\n\n\n </td>\n </tr>\n </tbody>\n </table>\n\n\n\n ",
3041
3055
  styles: ["\n\n\n "]
3042
3056
  }] }
3043
3057
  ];
@@ -3053,6 +3067,7 @@ var FHListComponent = /** @class */ (function () {
3053
3067
  label: [{ type: Input }],
3054
3068
  enabled: [{ type: Input }],
3055
3069
  single_sel: [{ type: Input }],
3070
+ separator: [{ type: Input }],
3056
3071
  smtr: [{ type: ViewChild, args: ['cmb',] }],
3057
3072
  fillend: [{ type: Output }],
3058
3073
  selchange: [{ type: Output }],
@@ -12041,6 +12056,7 @@ var FHListPick = /** @class */ (function () {
12041
12056
  this.toastr = toastr;
12042
12057
  this.m_appService = m_appService;
12043
12058
  this.label = "";
12059
+ this.separator = ",";
12044
12060
  this.title = "";
12045
12061
  this.sql = "";
12046
12062
  this.single_sel = false;
@@ -12095,7 +12111,7 @@ var FHListPick = /** @class */ (function () {
12095
12111
  FHListPick.decorators = [
12096
12112
  { type: Component, args: [{
12097
12113
  selector: 'fhlistpick',
12098
- 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
12114
+ 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\" [separator]=\"separator\" 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
12099
12115
  }] }
12100
12116
  ];
12101
12117
  /** @nocollapse */
@@ -18871,6 +18887,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
18871
18887
  this.enabled = true;
18872
18888
  this.required = false;
18873
18889
  this.db_type = "1";
18890
+ this.separator = ",";
18874
18891
  this.value = "";
18875
18892
  this.onChange = (/**
18876
18893
  * @param {?} _
@@ -18957,6 +18974,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
18957
18974
  });
18958
18975
  dialogRef.componentInstance.single_sel = this.single_sel;
18959
18976
  dialogRef.componentInstance.sel_values = this.value;
18977
+ dialogRef.componentInstance.separator = this.separator;
18960
18978
  dialogRef.componentInstance.label = this.label;
18961
18979
  dialogRef.componentInstance.sql = this.sql;
18962
18980
  dialogRef.componentInstance.types = this.types;
@@ -18971,7 +18989,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
18971
18989
  _this.value = '';
18972
18990
  for (var i = 0; i < result.length; i++) {
18973
18991
  if (_this.value != '')
18974
- _this.value += ',';
18992
+ _this.value += _this.separator;
18975
18993
  _this.value += result[i].descrizione_valore;
18976
18994
  }
18977
18995
  return;
@@ -18989,7 +19007,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
18989
19007
  FHFieldPickListComponent.decorators = [
18990
19008
  { type: Component, args: [{
18991
19009
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
18992
- selector: 'FHFieldPickList', template: "\n<div fxLayout=\"row\" style=\"width: 100%\" fxLayoutAlign=\"start center\" [hidden]=\"hidden\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [readonly]=\"!enabled || only_in_list\" [(ngModel)]=\"value\">\n </mat-form-field>\n <div style=\"min-width: 170px;text-align: right\"> <button mat-flat-button color=\"primary\" (click)=\"open_pick_list()\" [disabled]=\"!enabled\">SELEZIONA</button>\n</div></div>\n ",
19010
+ selector: 'FHFieldPickList', template: "\n<div fxLayout=\"row\" style=\"width: 100%\" fxLayoutAlign=\"start start\" [hidden]=\"hidden\"><div style=\"width: 100%\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [readonly]=\"!enabled || only_in_list\" [(ngModel)]=\"value\">\n </mat-form-field></div>&nbsp;&nbsp;\n <div style=\"min-width: 160px\"> <button mat-flat-button color=\"primary\" (click)=\"open_pick_list()\" [disabled]=\"!enabled\">SELEZIONA</button></div>\n</div>\n ",
18993
19011
  styles: ["\n\n "]
18994
19012
  }] }
18995
19013
  ];
@@ -19008,6 +19026,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
19008
19026
  enabled: [{ type: Input }],
19009
19027
  required: [{ type: Input }],
19010
19028
  db_type: [{ type: Input }],
19029
+ separator: [{ type: Input }],
19011
19030
  value: [{ type: Input }]
19012
19031
  };
19013
19032
  return FHFieldPickListComponent;