chrv-components 1.12.118 → 1.12.119
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.
|
Binary file
|
|
@@ -4185,7 +4185,7 @@ class ChrInputComponent {
|
|
|
4185
4185
|
/**
|
|
4186
4186
|
* The type of the value that will be returned.
|
|
4187
4187
|
* @description Used to return either a number from a number input (instead of the text value of the number) or a javascript Date object instead of the text value of said date.
|
|
4188
|
-
* @default The default is 'text'
|
|
4188
|
+
* @default The default is 'text' . If the input type is 'number', 'date', or 'datetime' however, it will default to the correct type but may be overriden by setting this property.
|
|
4189
4189
|
*/
|
|
4190
4190
|
this.outputType = model('text', /* @ts-ignore */
|
|
4191
4191
|
...(ngDevMode ? [{ debugName: "outputType" }] : /* istanbul ignore next */ []));
|
|
@@ -4331,8 +4331,11 @@ class ChrInputComponent {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
};
|
|
4333
4333
|
this.ensureOutputType = () => {
|
|
4334
|
-
|
|
4334
|
+
const type = this.type();
|
|
4335
|
+
if (type == 'number')
|
|
4335
4336
|
this.outputType.set('number');
|
|
4337
|
+
if (type == 'date' || type == 'datetime')
|
|
4338
|
+
this.outputType.set('date');
|
|
4336
4339
|
};
|
|
4337
4340
|
this.onChange = (value) => {
|
|
4338
4341
|
if (value instanceof Event) {
|