@fluxhub/fluxhub-lib 10.0.426 → 10.0.428
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 +9 -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 +10 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +9 -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,12 @@
|
|
|
9230
9231
|
this.formattedAmount = "0,00";
|
|
9231
9232
|
this.value = 0.0;
|
|
9232
9233
|
}
|
|
9234
|
+
FHNumericFieldComponent.prototype.keyDownFunctioncl = function (event) {
|
|
9235
|
+
console.log(event);
|
|
9236
|
+
if (event.keyCode == 13) {
|
|
9237
|
+
this.enter_key_pressed.emit();
|
|
9238
|
+
}
|
|
9239
|
+
};
|
|
9233
9240
|
FHNumericFieldComponent.prototype.getStyle = function () {
|
|
9234
9241
|
return this.m_color;
|
|
9235
9242
|
};
|
|
@@ -9330,7 +9337,7 @@
|
|
|
9330
9337
|
{ type: i0.Component, args: [{
|
|
9331
9338
|
selector: "FHNumericField",
|
|
9332
9339
|
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 ",
|
|
9340
|
+
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
9341
|
styles: ["\n\n "]
|
|
9335
9342
|
},] }
|
|
9336
9343
|
];
|
|
@@ -9349,6 +9356,7 @@
|
|
|
9349
9356
|
hidden: [{ type: i0.Input }],
|
|
9350
9357
|
change: [{ type: i0.Output }],
|
|
9351
9358
|
focus_out: [{ type: i0.Output }],
|
|
9359
|
+
enter_key_pressed: [{ type: i0.Output }],
|
|
9352
9360
|
value: [{ type: i0.Input }]
|
|
9353
9361
|
};
|
|
9354
9362
|
|