@fluxhub/fluxhub-lib 10.0.426 → 10.0.427
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 +8 -1
- 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/esm2015/lib/controls/fhnumeric.js +9 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +8 -1
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhnumeric.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9223,6 +9223,7 @@
|
|
|
9223
9223
|
this.pattern = "[-+]?[0-9]*[.,]?[0-9]+";
|
|
9224
9224
|
this.change = new i0.EventEmitter();
|
|
9225
9225
|
this.focus_out = new i0.EventEmitter();
|
|
9226
|
+
this.enter_key_pressed = new i0.EventEmitter();
|
|
9226
9227
|
this.innerValue = 0;
|
|
9227
9228
|
this.chgf = false;
|
|
9228
9229
|
this.onChange = function (_) { };
|
|
@@ -9230,6 +9231,11 @@
|
|
|
9230
9231
|
this.formattedAmount = "0,00";
|
|
9231
9232
|
this.value = 0.0;
|
|
9232
9233
|
}
|
|
9234
|
+
FHNumericFieldComponent.prototype.keyDownFunctioncl = function (event) {
|
|
9235
|
+
if (event.keyCode == 13) {
|
|
9236
|
+
this.enter_key_pressed.emit();
|
|
9237
|
+
}
|
|
9238
|
+
};
|
|
9233
9239
|
FHNumericFieldComponent.prototype.getStyle = function () {
|
|
9234
9240
|
return this.m_color;
|
|
9235
9241
|
};
|
|
@@ -9330,7 +9336,7 @@
|
|
|
9330
9336
|
{ type: i0.Component, args: [{
|
|
9331
9337
|
selector: "FHNumericField",
|
|
9332
9338
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC],
|
|
9333
|
-
template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n [style.text-align]=\"text_align\"\n [style.background-color]=\"getStyle()\"\n #el\n matInput\n [required]=\"required\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n formnovalidate\n (blur)=\"chg();focus_out.emit(value)\"\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n </mat-form-field>\n ",
|
|
9339
|
+
template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n [style.text-align]=\"text_align\"\n [style.background-color]=\"getStyle()\"\n #el\n matInput\n [required]=\"required\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\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 ",
|
|
9334
9340
|
styles: ["\n\n "]
|
|
9335
9341
|
},] }
|
|
9336
9342
|
];
|
|
@@ -9349,6 +9355,7 @@
|
|
|
9349
9355
|
hidden: [{ type: i0.Input }],
|
|
9350
9356
|
change: [{ type: i0.Output }],
|
|
9351
9357
|
focus_out: [{ type: i0.Output }],
|
|
9358
|
+
enter_key_pressed: [{ type: i0.Output }],
|
|
9352
9359
|
value: [{ type: i0.Input }]
|
|
9353
9360
|
};
|
|
9354
9361
|
|