@tetacom/ng-components 1.0.93 → 1.0.94
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/esm2020/component/table/default/numeric-cell/numeric-cell.component.mjs +2 -1
- package/esm2020/directive/only-number/only-number.directive.mjs +6 -2
- package/fesm2015/tetacom-ng-components.mjs +6 -1
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +6 -1
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2866,7 +2866,11 @@ class OnlyNumberDirective {
|
|
|
2866
2866
|
return;
|
|
2867
2867
|
}
|
|
2868
2868
|
const valid = new RegExp(regex).test(value.toString());
|
|
2869
|
-
if (valid && value.toString() !== this._control.control.value.toString()) {
|
|
2869
|
+
// if (valid && value.toString() !== this._control.control.value.toString()) {
|
|
2870
|
+
// console.log(value, parseFloat(value));
|
|
2871
|
+
// this._control.control.patchValue(parseFloat(value));
|
|
2872
|
+
// }
|
|
2873
|
+
if (valid) {
|
|
2870
2874
|
this._control.control.patchValue(parseFloat(value));
|
|
2871
2875
|
}
|
|
2872
2876
|
}
|
|
@@ -9518,6 +9522,7 @@ class NumericCellComponent extends CellComponentBase {
|
|
|
9518
9522
|
this.cdr = cdr;
|
|
9519
9523
|
}
|
|
9520
9524
|
applyValue(value) {
|
|
9525
|
+
console.log('applyValue', value);
|
|
9521
9526
|
this.row[this.column.name] = value;
|
|
9522
9527
|
}
|
|
9523
9528
|
setValue() {
|