@fluxhub/fluxhub-lib 1.0.203 → 1.0.204
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +3 -5
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHCurrencyFieldComponent.html +17 -0
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhcurrencyfield.js +6 -5
- package/esm5/lib/controls/fhcurrencyfield.js +6 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +4 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +4 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcurrencyfield.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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,
|
|
36
|
+
import { Injectable, Component, Input, Output, EventEmitter, Directive, ViewChild, forwardRef, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, defineInjectable, inject, NgModule, 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,12 +9603,8 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9602
9603
|
* @return {?}
|
|
9603
9604
|
*/
|
|
9604
9605
|
function (event) {
|
|
9605
|
-
var _this = this;
|
|
9606
9606
|
if (event.keyCode == 13) {
|
|
9607
|
-
|
|
9608
|
-
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
9609
|
-
_this.onChange(_this.value);
|
|
9610
|
-
}, 50);
|
|
9607
|
+
this.enter_pressed.emit();
|
|
9611
9608
|
// rest of your code
|
|
9612
9609
|
}
|
|
9613
9610
|
};
|
|
@@ -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;
|