@main-class/componentes 1.17.1 → 1.18.1
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 +6 -4
- 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/abstract-mat-form-field-control.js +1 -1
- package/esm2015/input/input-fileupload/input-fileupload.component.js +1 -1
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +5 -3
- package/esm2015/input/select-chips/select-chips.component.js +1 -1
- package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +1 -1
- package/esm2015/input/select-radio/select-radio.component.js +1 -1
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +3 -3
- package/fesm2015/main-class-componentes.js +6 -4
- package/fesm2015/main-class-componentes.js.map +1 -1
- package/input/input-telefone-internacional/input-telefone-internacional.component.d.ts +1 -0
- package/input/select-chips/select-chips.component.d.ts +2 -2
- package/input/select-many-checkbox/select-many-checkbox.component.d.ts +2 -2
- package/input/select-radio/select-radio.component.d.ts +2 -2
- package/misc/unsafe-inner-html/unsafe-inner-html.directive.d.ts +1 -1
- 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
|
|
|
@@ -5082,7 +5084,7 @@
|
|
|
5082
5084
|
this.sanitizer = sanitizer;
|
|
5083
5085
|
this.element = element;
|
|
5084
5086
|
}
|
|
5085
|
-
Object.defineProperty(UnsafeInnerHtmlDirective.prototype, "
|
|
5087
|
+
Object.defineProperty(UnsafeInnerHtmlDirective.prototype, "unsafeInnerHtml", {
|
|
5086
5088
|
set: function (value) {
|
|
5087
5089
|
this.element.nativeElement.innerHTML = value || '';
|
|
5088
5090
|
},
|
|
@@ -5101,7 +5103,7 @@
|
|
|
5101
5103
|
{ type: i0.ElementRef, decorators: [{ type: i0.Self }] }
|
|
5102
5104
|
]; };
|
|
5103
5105
|
UnsafeInnerHtmlDirective.propDecorators = {
|
|
5104
|
-
|
|
5106
|
+
unsafeInnerHtml: [{ type: i0.Input, args: ['mclUnsafeInnerHtml',] }]
|
|
5105
5107
|
};
|
|
5106
5108
|
|
|
5107
5109
|
var UnsafeInnerHtmlModule = /** @class */ (function () {
|