@tetacom/ng-components 1.0.92 → 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/esm2020/util/forms-util.mjs +2 -2
- package/fesm2015/tetacom-ng-components.mjs +8 -3
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +7 -2
- 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
|
}
|
|
@@ -6493,7 +6497,7 @@ class FormsUtil {
|
|
|
6493
6497
|
return validators;
|
|
6494
6498
|
}
|
|
6495
6499
|
static validatorNotEmpty(control) {
|
|
6496
|
-
if (control.value?.trim()?.length <= 0) {
|
|
6500
|
+
if (control.value?.toString()?.trim()?.length <= 0) {
|
|
6497
6501
|
return { required: true };
|
|
6498
6502
|
}
|
|
6499
6503
|
return null;
|
|
@@ -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() {
|