@fluxhub/fluxhub-lib 1.0.202 → 1.0.203

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.
@@ -6270,7 +6270,7 @@
6270
6270
  FHAutoCompleteComponent.decorators = [
6271
6271
  { type: i0.Component, args: [{
6272
6272
  selector: 'FHAutoComplete',
6273
- template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search($event)\"\n #searchp>\n </mat-form-field>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selectedSearchItem($event)\">\n <mat-option *ngFor=\"let objx of searchItemsFiltered\" class=\"search_home\" [value]=\"objx.descrizione_valore\">\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\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 [hidden]=\"enabled || hidden\">\n <input type=\"text\" #el1 matInput [disabled]=\"true\" placeholder=\"{{label}}\" [(ngModel)]=\"sItem\"\n >\n </mat-form-field>\n ",
6273
+ template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search($event)\"\n #searchp>\n </mat-form-field>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selectedSearchItem($event)\" autoActiveFirstOption >\n <mat-option *ngFor=\"let objx of searchItemsFiltered\" class=\"search_home\" [value]=\"objx.descrizione_valore\">\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\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 [hidden]=\"enabled || hidden\">\n <input type=\"text\" #el1 matInput [disabled]=\"true\" placeholder=\"{{label}}\" [(ngModel)]=\"sItem\"\n >\n </mat-form-field>\n ",
6274
6274
  providers: [
6275
6275
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent, multi: true },
6276
6276
  ],
@@ -8605,6 +8605,24 @@
8605
8605
  this.formattedAmount = '0,00';
8606
8606
  this.value = 0;
8607
8607
  }
8608
+ /**
8609
+ * @param {?} event
8610
+ * @return {?}
8611
+ */
8612
+ FHCurrencyFieldComponent.prototype.kd = /**
8613
+ * @param {?} event
8614
+ * @return {?}
8615
+ */
8616
+ function (event) {
8617
+ var _this = this;
8618
+ if (event.keyCode == 13) {
8619
+ setTimeout(function () {
8620
+ _this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
8621
+ _this.onChange(_this.value);
8622
+ }, 50);
8623
+ // rest of your code
8624
+ }
8625
+ };
8608
8626
  /**
8609
8627
  * @return {?}
8610
8628
  */
@@ -8789,7 +8807,7 @@
8789
8807
  { type: i0.Component, args: [{
8790
8808
  selector: 'FHCurrencyField',
8791
8809
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
8792
- template: "\n <mat-form-field [hidden]=\"!enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el matInput\n [disabled]=\"!enabled\" placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event)\" [style.color]=\"getStyle_color()\"\n (focus)=\"removeCurrencyPipeFormat($event)\" (keyup)=\"chg()\"\n pattern=\"[0-9]+\">\n </mat-form-field>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el1 matInput [disabled]=\"true\"\n placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n >\n </mat-form-field>\n ",
8810
+ template: "\n <mat-form-field [hidden]=\"!enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el matInput\n [disabled]=\"!enabled\" placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event)\" [style.color]=\"getStyle_color()\" (keydown)=\"kd($event)\" \n (focus)=\"removeCurrencyPipeFormat($event)\" (keyup)=\"chg()\"\n pattern=\"[0-9]+\">\n </mat-form-field>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el1 matInput [disabled]=\"true\"\n placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n >\n </mat-form-field>\n ",
8793
8811
  styles: ["\n\n "]
8794
8812
  }] }
8795
8813
  ];
@@ -10710,7 +10728,7 @@
10710
10728
  };
10711
10729
  win_info_doc.decorators = [
10712
10730
  { type: i0.Component, args: [{
10713
- template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
10731
+ template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
10714
10732
  }] }
10715
10733
  ];
10716
10734
  /** @nocollapse */