@main-class/componentes 1.18.0 → 1.18.3
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/main-class-componentes.umd.js +4 -2
- package/bundles/main-class-componentes.umd.js.map +1 -1
- package/bundles/main-class-componentes.umd.min.js +1 -1
- package/bundles/main-class-componentes.umd.min.js.map +1 -1
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +5 -3
- package/fesm2015/main-class-componentes.js +4 -2
- package/fesm2015/main-class-componentes.js.map +1 -1
- package/input/input-telefone-internacional/input-telefone-internacional.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4201,6 +4201,7 @@
|
|
|
4201
4201
|
var _this = _super.call(this, errorStateMatcher, ngControl, parentForm, parentFormGroup) || this;
|
|
4202
4202
|
_this.preferredContries = ['br'];
|
|
4203
4203
|
_this.blur = new i0.EventEmitter();
|
|
4204
|
+
_this.alwaysShowCountry = false;
|
|
4204
4205
|
return _this;
|
|
4205
4206
|
}
|
|
4206
4207
|
Object.defineProperty(InputTelefoneInternacionalComponent.prototype, "value", {
|
|
@@ -4217,7 +4218,7 @@
|
|
|
4217
4218
|
});
|
|
4218
4219
|
Object.defineProperty(InputTelefoneInternacionalComponent.prototype, "shouldLabelFloat", {
|
|
4219
4220
|
get: function () {
|
|
4220
|
-
return this.focused || !this.empty;
|
|
4221
|
+
return this.focused || !this.empty || this.alwaysShowCountry;
|
|
4221
4222
|
},
|
|
4222
4223
|
enumerable: false,
|
|
4223
4224
|
configurable: true
|
|
@@ -4246,7 +4247,7 @@
|
|
|
4246
4247
|
InputTelefoneInternacionalComponent.decorators = [
|
|
4247
4248
|
{ type: i0.Component, args: [{
|
|
4248
4249
|
selector: 'mcl-input-telefone-intl',
|
|
4249
|
-
template: "<div class=\"input\">\n <lac-mat-country-selector\n [ngClass]=\"{'hidden': !focused && !value}\"\n [preferredCountries]=\"preferredContries\"\n [selectorFor]=\"input\"\n searchPlaceholder=\"Filtrar paises...\"></lac-mat-country-selector>\n <lac-mat-tel-input #input\n [(ngModel)]=\"value\"\n (focusin)=\"onFocus()\" (focusout)=\"onBlur()\"></lac-mat-tel-input>\n</div>\n",
|
|
4250
|
+
template: "<div class=\"input\">\n <lac-mat-country-selector\n [ngClass]=\"{'hidden': !focused && !value && !alwaysShowCountry}\"\n [preferredCountries]=\"preferredContries\"\n [selectorFor]=\"input\"\n searchPlaceholder=\"Filtrar paises...\"></lac-mat-country-selector>\n <lac-mat-tel-input #input\n [(ngModel)]=\"value\"\n (focusin)=\"onFocus()\" (focusout)=\"onBlur()\"></lac-mat-tel-input>\n</div>\n",
|
|
4250
4251
|
providers: [
|
|
4251
4252
|
{
|
|
4252
4253
|
provide: formField.MatFormFieldControl,
|
|
@@ -4266,6 +4267,7 @@
|
|
|
4266
4267
|
preferredContries: [{ type: i0.Input }],
|
|
4267
4268
|
readonly: [{ type: i0.Input }],
|
|
4268
4269
|
blur: [{ type: i0.Output }],
|
|
4270
|
+
alwaysShowCountry: [{ type: i0.Input }],
|
|
4269
4271
|
telInput: [{ type: i0.ViewChild, args: ['input',] }]
|
|
4270
4272
|
};
|
|
4271
4273
|
|