@fluxhub/fluxhub-lib 1.0.203 → 1.0.205

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.
@@ -33,7 +33,7 @@ import { TranslateModule } from '@ngx-translate/core';
33
33
  import { DragulaService, DragulaModule } from 'ng2-dragula';
34
34
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
35
35
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Component, Input, Output, EventEmitter, Directive, ViewChild, forwardRef, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, NgModule, defineInjectable, inject, HostListener } from '@angular/core';
36
+ import { Injectable, Component, Input, ViewChild, Output, EventEmitter, Directive, Inject, PLATFORM_ID, forwardRef, ElementRef, Pipe, ViewContainerRef, NgModule, defineInjectable, inject, HostListener } from '@angular/core';
37
37
  import { Http } from '@angular/http';
38
38
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
39
  import { ToastrService } from 'ngx-toastr';
@@ -9585,6 +9585,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9585
9585
  this.m_color = '';
9586
9586
  this.label_width = "";
9587
9587
  this.change = new EventEmitter();
9588
+ this.enter_pressed = new EventEmitter();
9588
9589
  this.innerValue = 0;
9589
9590
  this.onChange = function (_) {
9590
9591
  };
@@ -9602,13 +9603,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9602
9603
  * @return {?}
9603
9604
  */
9604
9605
  function (event) {
9605
- var _this = this;
9606
- if (event.keyCode == 13) {
9607
- setTimeout(function () {
9608
- _this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
9609
- _this.onChange(_this.value);
9610
- }, 50);
9611
- // rest of your code
9606
+ console.log('event.code ', event.code);
9607
+ if (event.code == "Enter") {
9608
+ this.enter_pressed.emit();
9612
9609
  }
9613
9610
  };
9614
9611
  /**
@@ -9809,6 +9806,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9809
9806
  color: [{ type: Input }],
9810
9807
  label_width: [{ type: Input }],
9811
9808
  change: [{ type: Output }],
9809
+ enter_pressed: [{ type: Output }],
9812
9810
  value: [{ type: Input }]
9813
9811
  };
9814
9812
  return FHCurrencyFieldComponent;