@openmrs/ngx-formentry 3.0.1-pre.156 → 3.0.1-pre.159
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/openmrs-ngx-formentry.umd.js +10 -4
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/components/number-input/number-input.component.d.ts +2 -2
- package/esm2015/components/number-input/number-input.component.js +11 -5
- package/fesm2015/openmrs-ngx-formentry.js +10 -4
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/package.json +1 -1
|
@@ -9116,8 +9116,8 @@
|
|
|
9116
9116
|
*/
|
|
9117
9117
|
this.maxlength = null;
|
|
9118
9118
|
/**
|
|
9119
|
-
|
|
9120
|
-
|
|
9119
|
+
* Sets the min length attribute on the `input` element.
|
|
9120
|
+
*/
|
|
9121
9121
|
this.minlength = null;
|
|
9122
9122
|
/**
|
|
9123
9123
|
* Sets the amount the number controls increment and decrement by.
|
|
@@ -9204,9 +9204,12 @@
|
|
|
9204
9204
|
if (this.max === null || val + this.step <= this.max) {
|
|
9205
9205
|
this.value = parseFloat((val + this.step).toPrecision(this.precision));
|
|
9206
9206
|
}
|
|
9207
|
-
|
|
9207
|
+
if (this.max && this.max > 0 && this.value > this.max) {
|
|
9208
9208
|
this.value = this.max;
|
|
9209
9209
|
}
|
|
9210
|
+
if (this.max === undefined || this.max === '') {
|
|
9211
|
+
this.value = val + this.step;
|
|
9212
|
+
}
|
|
9210
9213
|
this.emitChangeEvent();
|
|
9211
9214
|
};
|
|
9212
9215
|
/**
|
|
@@ -9217,9 +9220,12 @@
|
|
|
9217
9220
|
if (this.min === null || val - this.step >= this.min) {
|
|
9218
9221
|
this.value = parseFloat((val - this.step).toPrecision(this.precision));
|
|
9219
9222
|
}
|
|
9220
|
-
|
|
9223
|
+
if (this.min && this.min > 0 && this.value < this.min) {
|
|
9221
9224
|
this.value = this.min;
|
|
9222
9225
|
}
|
|
9226
|
+
if (this.min === undefined || this.min === '') {
|
|
9227
|
+
this.value = val - this.step;
|
|
9228
|
+
}
|
|
9223
9229
|
this.emitChangeEvent();
|
|
9224
9230
|
};
|
|
9225
9231
|
/**
|