@fluxhub/fluxhub-lib 11.0.9 → 11.0.11

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.
@@ -3386,6 +3386,7 @@
3386
3386
  this.enabled = true;
3387
3387
  this.required = false;
3388
3388
  this.rows = 3;
3389
+ this.error = null;
3389
3390
  this.change = new i0.EventEmitter();
3390
3391
  this.focusout = new i0.EventEmitter();
3391
3392
  this.focusin = new i0.EventEmitter();
@@ -3428,7 +3429,7 @@
3428
3429
  { type: i0.Component, args: [{
3429
3430
  selector: "FHTextArea",
3430
3431
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
3431
- template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [rows]=\"rows\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n [readonly]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n ></textarea>\n </mat-form-field>\n ",
3432
+ template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [rows]=\"rows\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n [readonly]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n ></textarea>\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n ",
3432
3433
  styles: [""]
3433
3434
  },] }
3434
3435
  ];
@@ -3439,6 +3440,7 @@
3439
3440
  enabled: [{ type: i0.Input }],
3440
3441
  required: [{ type: i0.Input }],
3441
3442
  rows: [{ type: i0.Input }],
3443
+ error: [{ type: i0.Input }],
3442
3444
  change: [{ type: i0.Output }],
3443
3445
  focusout: [{ type: i0.Output }],
3444
3446
  focusin: [{ type: i0.Output }]
@@ -5175,7 +5177,7 @@
5175
5177
  FHUploadComponent.decorators = [
5176
5178
  { type: i0.Component, args: [{
5177
5179
  selector: "FHUpload",
5178
- template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:400px\"\n fxLayoutAlign=\"start center\"\n >\n <div style=\"width:100%\">\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n ></div>\n </div>\n <mat-form-field\n [hidden]=\"!show_descri\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label | translate}} {{ fixed_label | translate }} {{ descri_obb ? '*':''}}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\">&nbsp;&nbsp;&nbsp;Upload</span></label>\n </div>\n -->\n <div fxLayout=\"row\" [hidden]=\"!((descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1')))\">\n <div [hidden]=\"!(this.descri_obb && descrizione == '')\"><b>{{inserire_descrizione | translate}}</b></div>\n <div [hidden]=\"!(multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))\"><b>{{selezionare_tipologia | translate}}</b></div>\n </div>\n <div class=\"my-drop-zone\" [hidden]=\"(descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file | translate\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n &nbsp;<span style=\"font-size: 14px\">&nbsp;&nbsp;Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"true\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n &nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete && show_download_button\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label [hidden]=\"label==null || label==''\">{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
5180
+ template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n <mat-spinner diameter=\"25\" ></mat-spinner>\n </div>\n\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:400px\"\n fxLayoutAlign=\"start center\"\n >\n <div style=\"width:100%\">\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n ></div>\n </div>\n <mat-form-field\n [hidden]=\"!show_descri\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label | translate}} {{ fixed_label | translate }} {{ descri_obb ? '*':''}}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\">&nbsp;&nbsp;&nbsp;Upload</span></label>\n </div>\n -->\n <div fxLayout=\"row\" [hidden]=\"!((descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1')))\">\n <div [hidden]=\"!(this.descri_obb && descrizione == '')\"><b>{{inserire_descrizione | translate}}</b></div>\n <div [hidden]=\"!(multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))\"><b>{{selezionare_tipologia | translate}}</b></div>\n </div>\n <div class=\"my-drop-zone\" [hidden]=\"(descri_obb && descrizione == '') || (multi_list && (cmb_tipo.getValue() == '' || cmb_tipo.getValue() == '-1'))\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file | translate\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n &nbsp;<span style=\"font-size: 14px\">&nbsp;&nbsp;Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"true\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n &nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete && show_download_button\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label [hidden]=\"label==null || label==''\">{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
5179
5181
  styles: ["\n .fileLabel{\n display: inline-block;\n padding: .7em .4em;\n font-size: 13px;\n color: #525252;\n background-color: #e6e6e6;\n margin: 0 .2em;\n border-radius: 5px;\n }\n",
5180
5182
  "\n .my-drop-zone { border: dotted 3px lightgray;height:35px }\n\n", "\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n ", "\n .another-file-over-class { border: dotted 3px green; }\n"]
5181
5183
  },] }
@@ -7417,6 +7419,7 @@
7417
7419
  this._dataService = _dataService;
7418
7420
  this._dataService_odbc = _dataService_odbc;
7419
7421
  this._tsr = _tsr;
7422
+ this.error = null;
7420
7423
  this.init_fill = true;
7421
7424
  this.sql = "";
7422
7425
  this.types = [];
@@ -7793,7 +7796,7 @@
7793
7796
  { type: i0.Component, args: [{
7794
7797
  selector: "FHComboBox",
7795
7798
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
7796
- template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\" [class.fh_field]=\"enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label|translate }}</mat-label>\n <mat-select\n #cmb\n [(ngModel)]=\"selval\"\n (selectionChange)=\"sc()\"\n [required]=\"required\"\n [matTooltip]=\"tooltip\"\n >\n <mat-option value=\"-1\" *ngIf=\"show_empty\">{{ sel_label }}</mat-option>\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of myData\">{{\n app.descrizione_valore | translate\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field\n [hidden]=\"enabled || hidden\" [class.fh_field_dis]=\"!enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"dis_value\"\n [matTooltip]=\"tooltip\"\n />\n </mat-form-field>\n ",
7799
+ template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\" [class.fh_field]=\"enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label|translate }}</mat-label>\n <mat-select\n #cmb\n [(ngModel)]=\"selval\"\n (selectionChange)=\"sc()\"\n [required]=\"required\"\n [matTooltip]=\"tooltip\"\n >\n <mat-option value=\"-1\" *ngIf=\"show_empty\">{{ sel_label }}</mat-option>\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of myData\">{{\n app.descrizione_valore | translate\n }}</mat-option>\n </mat-select>\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n\n <mat-form-field\n [hidden]=\"enabled || hidden\" [class.fh_field_dis]=\"!enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"dis_value\"\n [matTooltip]=\"tooltip\"\n />\n </mat-form-field>\n ",
7797
7800
  styles: [""]
7798
7801
  },] }
7799
7802
  ];
@@ -7803,6 +7806,7 @@
7803
7806
  { type: core.TranslateService }
7804
7807
  ]; };
7805
7808
  FHComboboxComponent.propDecorators = {
7809
+ error: [{ type: i0.Input }],
7806
7810
  init_fill: [{ type: i0.Input }],
7807
7811
  sql: [{ type: i0.Input }],
7808
7812
  types: [{ type: i0.Input }],
@@ -7836,6 +7840,7 @@
7836
7840
  this._dataService = _dataService;
7837
7841
  this._dataService_odbc = _dataService_odbc;
7838
7842
  this.init_fill = true; //automatic load data from database default is true
7843
+ this.error = null;
7839
7844
  this.sql = "";
7840
7845
  this.label = "";
7841
7846
  this.types = [];
@@ -8200,7 +8205,7 @@
8200
8205
  { type: i0.Component, args: [{
8201
8206
  selector: "FHAutoComplete",
8202
8207
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4],
8203
- template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\" [class.fh_field]=\"enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [disabled]=\"!enabled || hidden\"\n [matAutocomplete]=\"auto\"\n [required]=\"required\"\n #trigger=\"matAutocompleteTrigger\"\n (keyup)=\"onChange_up($event)\"\n [(ngModel)]=\"sItem\"\n (focus)=\"fi_search();onChange_up($event)\"\n (focusout)=\"fo_search($event)\"\n #searchp\n />\n </mat-form-field>\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectedSearchItem($event)\"\n [autoActiveFirstOption]=\"open_on_load\"\n >\n <mat-option\n *ngFor=\"let objx of searchItemsFiltered\"\n [value]=\"objx.descrizione_valore\"\n >\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{ errorMsg }}\n </div>\n </div>\n <mat-form-field\n [hidden]=\"enabled || hidden\" [class.fh_field_dis]=\"!enabled\"\n\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [required]=\"required\" [(ngModel)]=\"sItem\" />\n </mat-form-field>\n ",
8208
+ template: "\n <div style=\"min-height:45px\" *ngIf=\"enabled && !hidden && !is_loaded && myData?.length==0\"><mat-spinner diameter=\"25\" ></mat-spinner></div>\n <mat-form-field\n [hidden]=\"!enabled || hidden || (!is_loaded && myData?.length==0)\" [class.fh_field]=\"enabled\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [disabled]=\"!enabled || hidden\"\n [matAutocomplete]=\"auto\"\n [required]=\"required\"\n #trigger=\"matAutocompleteTrigger\"\n (keyup)=\"onChange_up($event)\"\n [(ngModel)]=\"sItem\"\n (focus)=\"fi_search();onChange_up($event)\"\n (focusout)=\"fo_search($event)\"\n #searchp\n />\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectedSearchItem($event)\"\n [autoActiveFirstOption]=\"open_on_load\"\n >\n <mat-option\n *ngFor=\"let objx of searchItemsFiltered\"\n [value]=\"objx.descrizione_valore\"\n >\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{ errorMsg }}\n </div>\n </div>\n <mat-form-field\n [hidden]=\"enabled || hidden\" [class.fh_field_dis]=\"!enabled\"\n\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [required]=\"required\" [(ngModel)]=\"sItem\" />\n </mat-form-field>\n ",
8204
8209
  styles: [""]
8205
8210
  },] }
8206
8211
  ];
@@ -8211,6 +8216,7 @@
8211
8216
  FHAutoCompleteComponent.propDecorators = {
8212
8217
  init_fill: [{ type: i0.Input }],
8213
8218
  autocomplete: [{ type: i0.ViewChild, args: [autocomplete.MatAutocompleteTrigger,] }],
8219
+ error: [{ type: i0.Input }],
8214
8220
  sql: [{ type: i0.Input }],
8215
8221
  label: [{ type: i0.Input }],
8216
8222
  types: [{ type: i0.Input }],
@@ -8417,6 +8423,7 @@
8417
8423
  this.uti_s = uti_s;
8418
8424
  this._apps = _apps;
8419
8425
  this.label = "";
8426
+ this.error = null;
8420
8427
  this.required = false;
8421
8428
  this.show_buttons = false;
8422
8429
  this.enabled = true;
@@ -8598,7 +8605,7 @@
8598
8605
  { provide: core$1.MAT_DATE_FORMATS, useValue: ɵ1 },
8599
8606
  { provide: core$1.DateAdapter, useClass: MomentDateAdapter }
8600
8607
  ],
8601
- template: "\n <div [hidden]=\"!show_buttons || !enabled\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"add_year()\"\n >\n +1 Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"ini_year()\"\n >\n Inizio Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"fin_year()\"\n >\n Fine Anno\n </button>\n </div>\n\n <mat-form-field\n (click)=\"chxx($event)\"\n appearance=\"outline\"\n floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [disabled]=\"!enabled\"\n #pickerId\n (dateChange)=\"ch($event)\"\n (focusout)=\"dt_chg($event)\"\n (keyup)=\"checkInput($event)\"\n [min]=\"min_date\"\n [max]=\"max_date\"\n [required]=\"required\"\n (click)=\"chxx($event)\"\n [(ngModel)]=\"date_sel\"\n matInput\n [matDatepicker]=\"picker\"\n />\n <mat-datepicker-toggle\n matSuffix\n [for]=\"picker\"\n (click)=\"chxx($event)\"\n ></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n ",
8608
+ template: "\n <div [hidden]=\"!show_buttons || !enabled\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"add_year()\"\n >\n +1 Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"ini_year()\"\n >\n Inizio Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"fin_year()\"\n >\n Fine Anno\n </button>\n </div>\n\n <mat-form-field\n (click)=\"chxx($event)\"\n appearance=\"outline\"\n floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [disabled]=\"!enabled\"\n #pickerId\n (dateChange)=\"ch($event)\"\n (focusout)=\"dt_chg($event)\"\n (keyup)=\"checkInput($event)\"\n [min]=\"min_date\"\n [max]=\"max_date\"\n [required]=\"required\"\n (click)=\"chxx($event)\"\n [(ngModel)]=\"date_sel\"\n matInput\n [matDatepicker]=\"picker\"\n />\n <mat-datepicker-toggle\n matSuffix\n [for]=\"picker\"\n (click)=\"chxx($event)\"\n ></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n ",
8602
8609
  styles: ["\n .lb_small_grigia {\n font-size: 15px;\n color: #b8b8b8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {\n color: #f44336;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {\n background-color: #f44336;\n }\n "]
8603
8610
  },] }
8604
8611
  ];
@@ -8609,6 +8616,7 @@
8609
8616
  ]; };
8610
8617
  FHDatePickerComponent.propDecorators = {
8611
8618
  label: [{ type: i0.Input }],
8619
+ error: [{ type: i0.Input }],
8612
8620
  required: [{ type: i0.Input }],
8613
8621
  show_buttons: [{ type: i0.Input }],
8614
8622
  enabled: [{ type: i0.Input }],
@@ -8833,6 +8841,7 @@
8833
8841
  this.enabled = true;
8834
8842
  this.required = false;
8835
8843
  this.email = false;
8844
+ this.error = null;
8836
8845
  this.change = new i0.EventEmitter();
8837
8846
  this.focusout = new i0.EventEmitter();
8838
8847
  this.focusin = new i0.EventEmitter();
@@ -8878,7 +8887,7 @@
8878
8887
  { type: i0.Component, args: [{
8879
8888
  selector: "FHTextInput",
8880
8889
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
8881
- template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [email]=\"email\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n #el\n [disabled]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n [autocomplete]=\"autocomplete\"\n [maxlength]=\"maxlength\"\n [type]=\"type\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n </mat-form-field>\n ",
8890
+ template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [email]=\"email\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n #el\n [disabled]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n [autocomplete]=\"autocomplete\"\n [maxlength]=\"maxlength\"\n [type]=\"type\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n ",
8882
8891
  styles: [""]
8883
8892
  },] }
8884
8893
  ];
@@ -8893,6 +8902,7 @@
8893
8902
  enabled: [{ type: i0.Input }],
8894
8903
  required: [{ type: i0.Input }],
8895
8904
  email: [{ type: i0.Input }],
8905
+ error: [{ type: i0.Input }],
8896
8906
  change: [{ type: i0.Output }],
8897
8907
  focusout: [{ type: i0.Output }],
8898
8908
  focusin: [{ type: i0.Output }],
@@ -9903,6 +9913,7 @@
9903
9913
  this.enabled = true;
9904
9914
  this.hidden = false;
9905
9915
  this.color = "";
9916
+ this.error = null;
9906
9917
  this.m_bkcolor = "";
9907
9918
  this.pattern = "[-+]?[0-9]*[.,]?[0-9]+";
9908
9919
  this.change = new i0.EventEmitter();
@@ -10040,7 +10051,7 @@
10040
10051
  { type: i0.Component, args: [{
10041
10052
  selector: "FHNumericField",
10042
10053
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC],
10043
- template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n [style.text-align]=\"text_align\"\n [style.background-color]=\"getStyle_BkColor()\"\n [style.color]=\"getStyle_Color()\"\n #el\n matInput\n [required]=\"required\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (ngModelChange)=\"modelch()\"\n formnovalidate\n (blur)=\"chg();focus_out.emit(value)\"\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n (keydown)=\"keyDownFunctioncl($event)\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n </mat-form-field>\n ",
10054
+ template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n [style.text-align]=\"text_align\"\n [style.background-color]=\"getStyle_BkColor()\"\n [style.color]=\"getStyle_Color()\"\n #el\n matInput\n [required]=\"required\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (ngModelChange)=\"modelch()\"\n formnovalidate\n (blur)=\"chg();focus_out.emit(value)\"\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n (keydown)=\"keyDownFunctioncl($event)\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"error==null\">{{ error }}</mat-error>\n </mat-form-field>\n ",
10044
10055
  styles: ["\n\n "]
10045
10056
  },] }
10046
10057
  ];
@@ -10058,6 +10069,7 @@
10058
10069
  enabled: [{ type: i0.Input }],
10059
10070
  hidden: [{ type: i0.Input }],
10060
10071
  color: [{ type: i0.Input }],
10072
+ error: [{ type: i0.Input }],
10061
10073
  change: [{ type: i0.Output }],
10062
10074
  focus_out: [{ type: i0.Output }],
10063
10075
  enter_key_pressed: [{ type: i0.Output }],