@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.
@@ -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();
@@ -2733,6 +2734,20 @@
2733
2734
  this.errorMsg = "";
2734
2735
  this.valDef = "-1";
2735
2736
  }
2737
+ /**
2738
+ * @param {?} u
2739
+ * @param {?} o
2740
+ * @return {?}
2741
+ */
2742
+ FHListComponent.prototype.change_v = /**
2743
+ * @param {?} u
2744
+ * @param {?} o
2745
+ * @return {?}
2746
+ */
2747
+ function (u, o) {
2748
+ u.checked = !u.checked;
2749
+ this.upd_f(u, o);
2750
+ };
2736
2751
  /**
2737
2752
  * @param {?} u
2738
2753
  * @param {?} b
@@ -2799,7 +2814,6 @@
2799
2814
  p.sql = this.sql;
2800
2815
  p.types = this.types;
2801
2816
  p.values = this.values;
2802
- // console.log(p);
2803
2817
  this
2804
2818
  ._dataService
2805
2819
  .doQuery(p)
@@ -2846,7 +2860,7 @@
2846
2860
  if (this.myData.length == 0 || this.myData[0] == null)
2847
2861
  return;
2848
2862
  /** @type {?} */
2849
- var arr_val = desc_val.split(',');
2863
+ var arr_val = desc_val.split(this.separator);
2850
2864
  for (var j = 0; j < this.myData.length; j++)
2851
2865
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2852
2866
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
@@ -2899,7 +2913,7 @@
2899
2913
  return;
2900
2914
  //console.log("qui2");
2901
2915
  /** @type {?} */
2902
- var arr_val = desc_val.split(',');
2916
+ var arr_val = desc_val.split(this.separator);
2903
2917
  for (var j = 0; j < this.myData.length; j++)
2904
2918
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2905
2919
  if (this.myData[j].valore == arr_val[j1]) {
@@ -2920,7 +2934,7 @@
2920
2934
  for (var j = 0; j < this.myData.length; j++)
2921
2935
  if (this.myData[j].checked) {
2922
2936
  if (sx != '')
2923
- sx = sx + ',';
2937
+ sx = sx + this.separator;
2924
2938
  sx = sx + this.myData[j].descrizione_valore;
2925
2939
  }
2926
2940
  return sx;
@@ -2952,7 +2966,7 @@
2952
2966
  for (var j = 0; j < this.myData.length; j++)
2953
2967
  if (this.myData[j].checked) {
2954
2968
  if (sx != '')
2955
- sx = sx + ',';
2969
+ sx = sx + this.separator;
2956
2970
  sx = sx + this.myData[j].valore;
2957
2971
  }
2958
2972
  return sx;
@@ -3058,7 +3072,7 @@
3058
3072
  };
3059
3073
  FHListComponent.decorators = [
3060
3074
  { 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>&nbsp;&nbsp;&nbsp;\n\n \n </td>\n </tr>\n </tbody>\n </table>\n \n \n\n ",
3075
+ 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 ",
3062
3076
  styles: ["\n\n\n "]
3063
3077
  }] }
3064
3078
  ];
@@ -3074,6 +3088,7 @@
3074
3088
  label: [{ type: core.Input }],
3075
3089
  enabled: [{ type: core.Input }],
3076
3090
  single_sel: [{ type: core.Input }],
3091
+ separator: [{ type: core.Input }],
3077
3092
  smtr: [{ type: core.ViewChild, args: ['cmb',] }],
3078
3093
  fillend: [{ type: core.Output }],
3079
3094
  selchange: [{ type: core.Output }],
@@ -12062,6 +12077,7 @@
12062
12077
  this.toastr = toastr;
12063
12078
  this.m_appService = m_appService;
12064
12079
  this.label = "";
12080
+ this.separator = ",";
12065
12081
  this.title = "";
12066
12082
  this.sql = "";
12067
12083
  this.single_sel = false;
@@ -12116,7 +12132,7 @@
12116
12132
  FHListPick.decorators = [
12117
12133
  { type: core.Component, args: [{
12118
12134
  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 \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 "
12135
+ 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 "
12120
12136
  }] }
12121
12137
  ];
12122
12138
  /** @nocollapse */
@@ -18892,6 +18908,7 @@
18892
18908
  this.enabled = true;
18893
18909
  this.required = false;
18894
18910
  this.db_type = "1";
18911
+ this.separator = ",";
18895
18912
  this.value = "";
18896
18913
  this.onChange = (/**
18897
18914
  * @param {?} _
@@ -18978,6 +18995,7 @@
18978
18995
  });
18979
18996
  dialogRef.componentInstance.single_sel = this.single_sel;
18980
18997
  dialogRef.componentInstance.sel_values = this.value;
18998
+ dialogRef.componentInstance.separator = this.separator;
18981
18999
  dialogRef.componentInstance.label = this.label;
18982
19000
  dialogRef.componentInstance.sql = this.sql;
18983
19001
  dialogRef.componentInstance.types = this.types;
@@ -18992,7 +19010,7 @@
18992
19010
  _this.value = '';
18993
19011
  for (var i = 0; i < result.length; i++) {
18994
19012
  if (_this.value != '')
18995
- _this.value += ',';
19013
+ _this.value += _this.separator;
18996
19014
  _this.value += result[i].descrizione_valore;
18997
19015
  }
18998
19016
  return;
@@ -19010,7 +19028,7 @@
19010
19028
  FHFieldPickListComponent.decorators = [
19011
19029
  { type: core.Component, args: [{
19012
19030
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
19013
- 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 ",
19031
+ 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 ",
19014
19032
  styles: ["\n\n "]
19015
19033
  }] }
19016
19034
  ];
@@ -19029,6 +19047,7 @@
19029
19047
  enabled: [{ type: core.Input }],
19030
19048
  required: [{ type: core.Input }],
19031
19049
  db_type: [{ type: core.Input }],
19050
+ separator: [{ type: core.Input }],
19032
19051
  value: [{ type: core.Input }]
19033
19052
  };
19034
19053
  return FHFieldPickListComponent;