@ngx-smz/ui-kit 21.9.0-next.17 → 21.9.0-next.19
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.
|
@@ -6010,9 +6010,13 @@ class SmzInputMaskComponent extends SmzValueAccessor {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
return text;
|
|
6012
6012
|
}, ...(ngDevMode ? [{ debugName: "display" }] : []));
|
|
6013
|
+
/**
|
|
6014
|
+
* Aceita `number` alem de `string` (ex.: `FormControl` com `5`): o valor e convertido para texto antes de distribuir
|
|
6015
|
+
* nos slots, senao `text.length` e `undefined` e o campo abre vazio.
|
|
6016
|
+
*/
|
|
6013
6017
|
writeValue(value) {
|
|
6014
|
-
super.writeValue(value);
|
|
6015
|
-
this.entered.set(this.fitToSlots(value
|
|
6018
|
+
super.writeValue(value === null || value === undefined ? null : String(value));
|
|
6019
|
+
this.entered.set(this.fitToSlots(value === null || value === undefined ? '' : String(value)));
|
|
6016
6020
|
}
|
|
6017
6021
|
onFocus() {
|
|
6018
6022
|
this.focusedState.set(true);
|