@main-class/componentes 3.2.3 → 3.2.4
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/fesm2022/main-class-componentes-input.mjs +85 -264
- package/fesm2022/main-class-componentes-input.mjs.map +1 -1
- package/input/src/abstract-mat-form-field-control.d.ts +10 -8
- package/input/src/abstract-mat-form-field-select-control.d.ts +5 -7
- package/input/src/input-datetime/input-datetime.component.d.ts +4 -7
- package/input/src/input-mask/input-cep.component.d.ts +2 -6
- package/input/src/input-mask/input-cnpj.component.d.ts +2 -6
- package/input/src/input-mask/input-cpf.component.d.ts +2 -6
- package/input/src/input-mask/input-phone.component.d.ts +1 -4
- package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +1 -4
- package/input/src/select-autocomplete/select-autocomplete.component.d.ts +1 -5
- package/input/src/select-chips/select-chips.component.d.ts +1 -5
- package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +1 -5
- package/input/src/select-radio/select-radio.component.d.ts +1 -5
- package/package.json +5 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import * as i1 from '@angular/forms';
|
|
2
|
+
import { NgControl, FormGroupDirective, FormControl, FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS, ReactiveFormsModule } from '@angular/forms';
|
|
1
3
|
import { Subject, BehaviorSubject, concat, of, debounceTime, Observable, combineLatest } from 'rxjs';
|
|
2
4
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Input, HostBinding, ViewChild, Component, InjectionToken, QueryList, ContentChildren,
|
|
5
|
+
import { inject, Input, HostBinding, ViewChild, Component, InjectionToken, QueryList, ContentChildren, forwardRef, LOCALE_ID, EventEmitter, Output, Optional, Self, Inject, Directive, Injectable } from '@angular/core';
|
|
6
|
+
import * as i1$2 from '@angular/material/core';
|
|
7
|
+
import { ErrorStateMatcher, MAT_DATE_LOCALE } from '@angular/material/core';
|
|
4
8
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
5
|
-
import * as i1 from '@angular/material/core';
|
|
6
|
-
import { MAT_DATE_LOCALE } from '@angular/material/core';
|
|
7
|
-
import * as i2 from '@angular/forms';
|
|
8
|
-
import { FormControl, FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import { map, switchMap } from 'rxjs/operators';
|
|
10
10
|
import { MatInput } from '@angular/material/input';
|
|
11
11
|
import { monetarioMask } from '@main-class/componentes/misc';
|
|
12
12
|
import { MatFormFieldControl, MatPrefix, MatSuffix } from '@angular/material/form-field';
|
|
13
|
-
import * as
|
|
14
|
-
import {
|
|
13
|
+
import * as i1$1 from '@mat-datetimepicker/core';
|
|
14
|
+
import { MAT_DATETIME_FORMATS, DatetimeAdapter, MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
|
15
15
|
import { MatMomentDatetimeModule, MomentDatetimeAdapter } from '@mat-datetimepicker/moment';
|
|
16
16
|
import moment from 'moment';
|
|
17
17
|
import { ARQUIVO_MANAGER_SERVICE, PreviewArquivoComponent, DownloadArquivoDirective } from '@main-class/componentes/arquivo';
|
|
@@ -24,14 +24,13 @@ import { MatTooltip } from '@angular/material/tooltip';
|
|
|
24
24
|
import { MatCheckbox } from '@angular/material/checkbox';
|
|
25
25
|
import { MatAutocompleteTrigger, MatAutocomplete, MatOption } from '@angular/material/autocomplete';
|
|
26
26
|
import { MatRadioGroup, MatRadioButton } from '@angular/material/radio';
|
|
27
|
-
import * as
|
|
27
|
+
import * as i1$3 from 'lac-mat-tel-input';
|
|
28
28
|
import { LacMatTelInputModule, phoneNumberValidator } from 'lac-mat-tel-input';
|
|
29
29
|
|
|
30
30
|
class AbstractMatFormFieldControl {
|
|
31
|
-
errorStateMatcher;
|
|
32
|
-
ngControl;
|
|
33
|
-
|
|
34
|
-
parentFormGroup;
|
|
31
|
+
errorStateMatcher = inject(ErrorStateMatcher);
|
|
32
|
+
ngControl = inject(NgControl, { optional: true, self: true });
|
|
33
|
+
parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
35
34
|
static nextId = 0;
|
|
36
35
|
$value;
|
|
37
36
|
$placeholder = '';
|
|
@@ -42,15 +41,6 @@ class AbstractMatFormFieldControl {
|
|
|
42
41
|
stateChanges = new Subject();
|
|
43
42
|
id = `custom-input-${AbstractMatFormFieldControl.nextId++}`;
|
|
44
43
|
describedBy = '';
|
|
45
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
46
|
-
this.errorStateMatcher = errorStateMatcher;
|
|
47
|
-
this.ngControl = ngControl;
|
|
48
|
-
this.parentForm = parentForm;
|
|
49
|
-
this.parentFormGroup = parentFormGroup;
|
|
50
|
-
if (this.ngControl != null) {
|
|
51
|
-
this.ngControl.valueAccessor = this;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
44
|
onChange = (val) => {
|
|
55
45
|
};
|
|
56
46
|
onTouched = () => {
|
|
@@ -66,8 +56,22 @@ class AbstractMatFormFieldControl {
|
|
|
66
56
|
get empty() {
|
|
67
57
|
return !this.value;
|
|
68
58
|
}
|
|
59
|
+
get autofilled() {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
get userAriaDescribedBy() {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
get disableAutomaticLabeling() {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
69
68
|
onContainerClick(event) {
|
|
70
69
|
}
|
|
70
|
+
ngOnInit() {
|
|
71
|
+
if (this.ngControl != null) {
|
|
72
|
+
this.ngControl.valueAccessor = this;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
71
75
|
get shouldLabelFloat() {
|
|
72
76
|
return !this.empty || (this.input && this.input.nativeElement.value) || this.focused;
|
|
73
77
|
}
|
|
@@ -93,7 +97,7 @@ class AbstractMatFormFieldControl {
|
|
|
93
97
|
this.stateChanges.next();
|
|
94
98
|
}
|
|
95
99
|
get errorState() {
|
|
96
|
-
return this.errorStateMatcher.isErrorState(this.ngControl
|
|
100
|
+
return this.errorStateMatcher.isErrorState(this.ngControl?.control, this.parentFormGroup);
|
|
97
101
|
}
|
|
98
102
|
get controlType() {
|
|
99
103
|
return 'custom-input';
|
|
@@ -116,7 +120,7 @@ class AbstractMatFormFieldControl {
|
|
|
116
120
|
writeValue(value) {
|
|
117
121
|
this.$value = value;
|
|
118
122
|
}
|
|
119
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, deps: [
|
|
123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
120
124
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AbstractMatFormFieldControl, isStandalone: true, selector: "ng-component", inputs: { placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: '', isInline: true });
|
|
121
125
|
}
|
|
122
126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, decorators: [{
|
|
@@ -124,7 +128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
124
128
|
args: [{
|
|
125
129
|
template: ''
|
|
126
130
|
}]
|
|
127
|
-
}],
|
|
131
|
+
}], propDecorators: { input: [{
|
|
128
132
|
type: ViewChild,
|
|
129
133
|
args: ['input']
|
|
130
134
|
}], id: [{
|
|
@@ -167,7 +171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
167
171
|
}] } });
|
|
168
172
|
|
|
169
173
|
class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
170
|
-
optionProvider;
|
|
174
|
+
optionProvider = inject(SELECT_OPTION_PROVIDER, { self: true, optional: true });
|
|
171
175
|
optionsSubscription;
|
|
172
176
|
$args = new BehaviorSubject(undefined);
|
|
173
177
|
wvt;
|
|
@@ -194,10 +198,6 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
194
198
|
}));
|
|
195
199
|
}
|
|
196
200
|
};
|
|
197
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
198
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
199
|
-
this.optionProvider = optionProvider;
|
|
200
|
-
}
|
|
201
201
|
doTrackBy(val) {
|
|
202
202
|
if (this.optionProvider && this.optionProvider.trackBy) {
|
|
203
203
|
return this.optionProvider.trackBy(val);
|
|
@@ -229,7 +229,7 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
229
229
|
this.onTouched();
|
|
230
230
|
if (value) {
|
|
231
231
|
this.value = value;
|
|
232
|
-
this.control.setValue(this.optionProvider.label(value));
|
|
232
|
+
this.control.setValue((this.optionProvider || this.defaultOptionProvider).label(value));
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
235
|
this.value = undefined;
|
|
@@ -242,14 +242,14 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
242
242
|
this.wvt = setTimeout(() => {
|
|
243
243
|
super.writeValue(value);
|
|
244
244
|
if (value) {
|
|
245
|
-
this.control.setValue(this.optionProvider.label(value));
|
|
245
|
+
this.control.setValue((this.optionProvider || this.defaultOptionProvider).label(value));
|
|
246
246
|
}
|
|
247
247
|
else {
|
|
248
248
|
this.control.setValue('');
|
|
249
249
|
}
|
|
250
250
|
}, 150);
|
|
251
251
|
}
|
|
252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, deps:
|
|
252
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
253
253
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AbstractMatFormFieldSelectControl, isStandalone: true, selector: "ng-component", inputs: { trackBy: "trackBy", args: "args" }, queries: [{ propertyName: "options", predicate: SelectOptionComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
254
254
|
}
|
|
255
255
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, decorators: [{
|
|
@@ -257,22 +257,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
257
257
|
args: [{
|
|
258
258
|
template: ''
|
|
259
259
|
}]
|
|
260
|
-
}],
|
|
261
|
-
type: Optional
|
|
262
|
-
}, {
|
|
263
|
-
type: Self
|
|
264
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
265
|
-
type: Optional
|
|
266
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
267
|
-
type: Optional
|
|
268
|
-
}] }, { type: undefined, decorators: [{
|
|
269
|
-
type: Self
|
|
270
|
-
}, {
|
|
271
|
-
type: Optional
|
|
272
|
-
}, {
|
|
273
|
-
type: Inject,
|
|
274
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
275
|
-
}] }], propDecorators: { trackBy: [{
|
|
260
|
+
}], propDecorators: { trackBy: [{
|
|
276
261
|
type: Input
|
|
277
262
|
}], options: [{
|
|
278
263
|
type: ContentChildren,
|
|
@@ -316,7 +301,7 @@ class InputCurrencyComponent extends AbstractMatFormFieldControl {
|
|
|
316
301
|
provide: NG_VALUE_ACCESSOR,
|
|
317
302
|
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
318
303
|
multi: true
|
|
319
|
-
}], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
304
|
+
}], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }] });
|
|
320
305
|
}
|
|
321
306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
322
307
|
type: Component,
|
|
@@ -392,7 +377,7 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
392
377
|
provide: MatFormFieldControl,
|
|
393
378
|
useExisting: InputMaskComponent
|
|
394
379
|
}
|
|
395
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
380
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
396
381
|
}
|
|
397
382
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
398
383
|
type: Component,
|
|
@@ -404,7 +389,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
404
389
|
provide: MatFormFieldControl,
|
|
405
390
|
useExisting: InputMaskComponent
|
|
406
391
|
}
|
|
407
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
392
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
408
393
|
}], propDecorators: { keepMask: [{
|
|
409
394
|
type: Input
|
|
410
395
|
}], mask: [{
|
|
@@ -412,19 +397,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
412
397
|
}] } });
|
|
413
398
|
|
|
414
399
|
class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
415
|
-
|
|
416
|
-
|
|
400
|
+
formats = inject(MAT_DATETIME_FORMATS);
|
|
401
|
+
adapter = inject(DatetimeAdapter);
|
|
417
402
|
type = 'date';
|
|
418
403
|
readonly;
|
|
419
404
|
name;
|
|
420
405
|
picker;
|
|
421
406
|
innerValue;
|
|
422
407
|
$maskedValue;
|
|
423
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, adapter, formats) {
|
|
424
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
425
|
-
this.adapter = adapter;
|
|
426
|
-
this.formats = formats;
|
|
427
|
-
}
|
|
428
408
|
get empty() {
|
|
429
409
|
return !this.$maskedValue;
|
|
430
410
|
}
|
|
@@ -496,7 +476,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
496
476
|
}
|
|
497
477
|
this.stateChanges.next();
|
|
498
478
|
}
|
|
499
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps:
|
|
479
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
500
480
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputDatetimeComponent, isStandalone: true, selector: "mcl-input-datetime", inputs: { type: "type", readonly: "readonly", name: "name" }, providers: [
|
|
501
481
|
{
|
|
502
482
|
provide: MatFormFieldControl,
|
|
@@ -528,7 +508,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
528
508
|
}
|
|
529
509
|
}
|
|
530
510
|
}
|
|
531
|
-
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" ngModel\n [(ngModel)]=\"maskedValue\" [mask]=\"mask\"\n (focus)=\"focused = true\" (blur)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\" />\n", styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatDatetimepickerModule }, { kind: "component", type:
|
|
511
|
+
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" ngModel\n [(ngModel)]=\"maskedValue\" [mask]=\"mask\"\n (focus)=\"focused = true\" (blur)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\" />\n", styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatDatetimepickerModule }, { kind: "component", type: i1$1.MatDatetimepickerComponent, selector: "mat-datetimepicker", inputs: ["multiYearSelector", "twelvehour", "startView", "mode", "timeInterval", "ariaNextMonthLabel", "ariaPrevMonthLabel", "ariaNextYearLabel", "ariaPrevYearLabel", "preventSameDateTimeSelection", "panelClass", "startAt", "openOnFocus", "type", "touchUi", "disabled"], outputs: ["selectedChanged", "opened", "closed", "viewChanged"], exportAs: ["matDatetimepicker"] }, { kind: "component", type: i1$1.MatDatetimepickerToggleComponent, selector: "mat-datetimepicker-toggle", inputs: ["for", "disabled"], exportAs: ["matDatetimepickerToggle"] }, { kind: "directive", type: i1$1.MatDatetimepickerInputDirective, selector: "input[matDatetimepicker]", inputs: ["matDatetimepicker", "matDatepickerFilter", "value", "min", "max", "disabled"], outputs: ["dateChange", "dateInput"], exportAs: ["matDatepickerInput"] }, { kind: "ngmodule", type: MatMomentDatetimeModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputMaskComponent, selector: "mcl-input[mask]", inputs: ["keepMask", "mask"] }] });
|
|
532
512
|
}
|
|
533
513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, decorators: [{
|
|
534
514
|
type: Component,
|
|
@@ -569,21 +549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
569
549
|
}
|
|
570
550
|
}
|
|
571
551
|
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" ngModel\n [(ngModel)]=\"maskedValue\" [mask]=\"mask\"\n (focus)=\"focused = true\" (blur)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\" />\n", styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"] }]
|
|
572
|
-
}],
|
|
573
|
-
type: Optional
|
|
574
|
-
}, {
|
|
575
|
-
type: Self
|
|
576
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
577
|
-
type: Optional
|
|
578
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
579
|
-
type: Optional
|
|
580
|
-
}] }, { type: i3.DatetimeAdapter, decorators: [{
|
|
581
|
-
type: Inject,
|
|
582
|
-
args: [DatetimeAdapter]
|
|
583
|
-
}] }, { type: undefined, decorators: [{
|
|
584
|
-
type: Inject,
|
|
585
|
-
args: [MAT_DATETIME_FORMATS]
|
|
586
|
-
}] }], propDecorators: { type: [{
|
|
552
|
+
}], propDecorators: { type: [{
|
|
587
553
|
type: Input
|
|
588
554
|
}], readonly: [{
|
|
589
555
|
type: Input
|
|
@@ -885,7 +851,7 @@ class InputFileUploadComponent {
|
|
|
885
851
|
this.stateChanges.next();
|
|
886
852
|
}
|
|
887
853
|
}
|
|
888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputFileUploadComponent, deps: [{ token: i1.ErrorStateMatcher }, { token:
|
|
854
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputFileUploadComponent, deps: [{ token: i1$2.ErrorStateMatcher }, { token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i0.ChangeDetectorRef }, { token: i1.FormGroupDirective, optional: true }, { token: ARQUIVO_MANAGER_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
889
855
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: InputFileUploadComponent, isStandalone: true, selector: "mcl-input-fileupload", inputs: { multiple: "multiple", limite: "limite", accept: "accept", template: "template", agrupadores: "agrupadores", placeholder: "placeholder", required: "required", disabled: "disabled" }, outputs: { selectCancel: "selectCancel", stateChanges: "change", change: "change" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
|
|
890
856
|
{
|
|
891
857
|
provide: MatFormFieldControl,
|
|
@@ -914,13 +880,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
914
880
|
useExisting: InputFileUploadComponent
|
|
915
881
|
}
|
|
916
882
|
], template: "@if (multiple && template == 'chips') {\r\n <div class=\"chips\">\r\n @if (value?.length) {\r\n <mat-chip-grid>\r\n @for (arquivo of value; track arquivo) {\r\n <mat-chip [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\">\r\n @if (arquivo.loading && !arquivo.error) {\r\n <mat-spinner [value]=\"arquivo.progresso\" [diameter]=\"24\"></mat-spinner>\r\n }\r\n @if (arquivo.loading && arquivo.error) {\r\n <mat-icon class=\"error\">remove_circle_outline</mat-icon>\r\n }\r\n @if (!arquivo.loading) {\r\n <mat-icon class=\"success\">check_circle_outline</mat-icon>\r\n }\r\n {{ arquivo.nome || arquivo.filename }}\r\n @if (!disabled) {\r\n <a (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n }\r\n </mat-chip>\r\n }\r\n </mat-chip-grid>\r\n }\r\n\r\n @if (value?.length && !disabled) {\r\n <hr/>\r\n }\r\n\r\n @if (!disabled) {\r\n <input type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n }\r\n </div>\r\n}\r\n\r\n@if (multiple && template == 'preview') {\r\n <div class=\"previews\">\r\n @if (value?.length) {\r\n <div fxLayout=\"row wrap\" fxLayoutGap=\"20px\" fxFlexAlign=\"center\">\r\n @for (arquivo of value; track arquivo) {\r\n <div>\r\n <div class=\"preview\" [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\">\r\n <mcl-preview-arquivo [group]=\"value\" [arquivo]=\"arquivo\"></mcl-preview-arquivo>\r\n\r\n @if (!disabled) {\r\n <div class=\"footer\">\r\n @if (arquivo.loading && !arquivo.error) {\r\n <mat-spinner [value]=\"arquivo.progresso\" [diameter]=\"24\"\r\n ></mat-spinner>\r\n }\r\n @if (arquivo.loading && arquivo.error) {\r\n <mat-icon class=\"error\">remove_circle_outline</mat-icon>\r\n }\r\n @if (!arquivo.loading) {\r\n <mat-icon class=\"success\">check_circle_outline</mat-icon>\r\n }\r\n <span>{{ arquivo.nome || arquivo.filename }}</span>\r\n @if (!disabled) {\r\n <a (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n </div>\r\n }\r\n\r\n @if (value?.length && !disabled) {\r\n <hr/>\r\n }\r\n\r\n @if (!disabled) {\r\n <input type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n }\r\n </div>\r\n}\r\n\r\n@if (template == 'manual') {\r\n <div>\r\n <input type=\"file\" [disabled]=\"disabled\" (change)=\"onFileChange($event)\" #input\r\n [multiple]=\"multiple\" style=\"display: none\"/>\r\n </div>\r\n}\r\n\r\n@if (!multiple && template != 'manual') {\r\n <input #input type=\"file\" style=\"display: none\"\r\n (change)=\"onFileChange($event)\"/>\r\n\r\n <div class=\"input\">\r\n @if (!value) {\r\n <button mat-icon-button type=\"button\"\r\n (click)=\"openFileChooser()\"\r\n matPrefix>\r\n <mat-icon>attach_file</mat-icon>\r\n </button>\r\n }\r\n @if (value && !value.loading && !value.error) {\r\n <button mat-icon-button type=\"button\"\r\n [mclDownloadArquivo]=\"value\"\r\n matPrefix>\r\n <mat-icon>download</mat-icon>\r\n </button>\r\n }\r\n @if (value?.error) {\r\n <button mat-icon-button type=\"button\" matPrefixdisabled>\r\n <mat-icon>warning</mat-icon>\r\n </button>\r\n }\r\n @if (value?.loading && !value?.error) {\r\n <button mat-icon-button type=\"button\" matPrefix disabled>\r\n <mat-spinner [value]=\"value.progresso\"\r\n [diameter]=\"24\"></mat-spinner>\r\n </button>\r\n }\r\n @if (!value) {\r\n <input matInput readonly (click)=\"openFileChooser()\" [required]=\"required\"\r\n value=\"Selecione um arquivo...\"/>\r\n }\r\n @if (value && value.loading && !value.error) {\r\n <input matInput readonly [required]=\"required\"\r\n value=\"Submetendo arquivo...\"/>\r\n }\r\n @if (value && value.error) {\r\n <input matInput readonly [required]=\"required\"\r\n [value]=\"value?.nome || value?.filename\"/>\r\n }\r\n @if (value && !value.loading) {\r\n <input matInput readonly [mclDownloadArquivo]=\"value\" [required]=\"required\"\r\n [value]=\"value?.nome || value?.filename\"/>\r\n }\r\n @if (value && (!value.loading || value?.error) && !disabled) {\r\n <button mat-icon-button type=\"button\" matSuffix\r\n matTooltip=\"Remover\" (click)=\"remover(value)\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n }\r\n </div>\r\n}\r\n", styles: ["span{opacity:0;transition:opacity .2s}:host.floating span{opacity:1}mat-chip>mat-spinner,mat-chip>mat-icon,.preview .footer>mat-spinner,.preview .footer>mat-icon{margin-right:5px;vertical-align:middle}mat-chip a,.preview .footer a{padding:5px}mat-chip a mat-icon,.preview .footer a mat-icon{margin-left:10px;vertical-align:middle}mat-chip.error,.preview.error{color:red}mat-chip.success,.preview.success{color:green}.preview{text-align:center;width:200px;overflow:hidden;margin:0 auto 20px}.preview mcl-preview-arquivo{margin:auto;display:block}.preview .footer{display:flex;text-align:left}.preview .footer span{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview .footer mat-icon,.preview .footer a{flex:1}.input{display:flex}.input input{flex:1 1 auto}\n"] }]
|
|
917
|
-
}], ctorParameters: () => [{ type: i1.ErrorStateMatcher }, { type:
|
|
883
|
+
}], ctorParameters: () => [{ type: i1$2.ErrorStateMatcher }, { type: i1.NgControl, decorators: [{
|
|
918
884
|
type: Optional
|
|
919
885
|
}, {
|
|
920
886
|
type: Self
|
|
921
|
-
}] }, { type:
|
|
887
|
+
}] }, { type: i1.NgForm, decorators: [{
|
|
922
888
|
type: Optional
|
|
923
|
-
}] }, { type: i0.ChangeDetectorRef }, { type:
|
|
889
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: i1.FormGroupDirective, decorators: [{
|
|
924
890
|
type: Optional
|
|
925
891
|
}] }, { type: undefined, decorators: [{
|
|
926
892
|
type: Inject,
|
|
@@ -997,19 +963,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
997
963
|
}] } });
|
|
998
964
|
|
|
999
965
|
class InputCnpjComponent extends InputMaskComponent {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1003
|
-
this.optionProvider = optionProvider;
|
|
966
|
+
constructor() {
|
|
967
|
+
super();
|
|
1004
968
|
this.mask = '##.###.###/####-##';
|
|
1005
969
|
}
|
|
1006
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [
|
|
970
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1007
971
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCnpjComponent, isStandalone: true, selector: "mcl-input[cnpj]", providers: [
|
|
1008
972
|
{
|
|
1009
973
|
provide: MatFormFieldControl,
|
|
1010
974
|
useExisting: InputCnpjComponent
|
|
1011
975
|
}
|
|
1012
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
976
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1013
977
|
}
|
|
1014
978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, decorators: [{
|
|
1015
979
|
type: Component,
|
|
@@ -1021,38 +985,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1021
985
|
provide: MatFormFieldControl,
|
|
1022
986
|
useExisting: InputCnpjComponent
|
|
1023
987
|
}
|
|
1024
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1025
|
-
}], ctorParameters: () => [
|
|
1026
|
-
type: Optional
|
|
1027
|
-
}, {
|
|
1028
|
-
type: Self
|
|
1029
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1030
|
-
type: Optional
|
|
1031
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1032
|
-
type: Optional
|
|
1033
|
-
}] }, { type: undefined, decorators: [{
|
|
1034
|
-
type: Self
|
|
1035
|
-
}, {
|
|
1036
|
-
type: Optional
|
|
1037
|
-
}, {
|
|
1038
|
-
type: Inject,
|
|
1039
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1040
|
-
}] }] });
|
|
988
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
989
|
+
}], ctorParameters: () => [] });
|
|
1041
990
|
|
|
1042
991
|
class InputCepComponent extends InputMaskComponent {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1046
|
-
this.optionProvider = optionProvider;
|
|
992
|
+
constructor() {
|
|
993
|
+
super();
|
|
1047
994
|
this.mask = '##.###-###';
|
|
1048
995
|
}
|
|
1049
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [
|
|
996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1050
997
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCepComponent, isStandalone: true, selector: "mcl-input[cep]", providers: [
|
|
1051
998
|
{
|
|
1052
999
|
provide: MatFormFieldControl,
|
|
1053
1000
|
useExisting: InputCepComponent
|
|
1054
1001
|
}
|
|
1055
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1002
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1056
1003
|
}
|
|
1057
1004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, decorators: [{
|
|
1058
1005
|
type: Component,
|
|
@@ -1064,23 +1011,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1064
1011
|
provide: MatFormFieldControl,
|
|
1065
1012
|
useExisting: InputCepComponent
|
|
1066
1013
|
}
|
|
1067
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1068
|
-
}], ctorParameters: () => [
|
|
1069
|
-
type: Optional
|
|
1070
|
-
}, {
|
|
1071
|
-
type: Self
|
|
1072
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1073
|
-
type: Optional
|
|
1074
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1075
|
-
type: Optional
|
|
1076
|
-
}] }, { type: undefined, decorators: [{
|
|
1077
|
-
type: Self
|
|
1078
|
-
}, {
|
|
1079
|
-
type: Optional
|
|
1080
|
-
}, {
|
|
1081
|
-
type: Inject,
|
|
1082
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1083
|
-
}] }] });
|
|
1014
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1015
|
+
}], ctorParameters: () => [] });
|
|
1084
1016
|
|
|
1085
1017
|
class InputCpfCnpjComponent extends InputMaskComponent {
|
|
1086
1018
|
get value() {
|
|
@@ -1104,7 +1036,7 @@ class InputCpfCnpjComponent extends InputMaskComponent {
|
|
|
1104
1036
|
provide: MatFormFieldControl,
|
|
1105
1037
|
useExisting: InputCpfCnpjComponent
|
|
1106
1038
|
}
|
|
1107
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1039
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1108
1040
|
}
|
|
1109
1041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfCnpjComponent, decorators: [{
|
|
1110
1042
|
type: Component,
|
|
@@ -1116,23 +1048,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1116
1048
|
provide: MatFormFieldControl,
|
|
1117
1049
|
useExisting: InputCpfCnpjComponent
|
|
1118
1050
|
}
|
|
1119
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1051
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1120
1052
|
}] });
|
|
1121
1053
|
|
|
1122
1054
|
class InputCpfComponent extends InputMaskComponent {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1126
|
-
this.optionProvider = optionProvider;
|
|
1055
|
+
constructor() {
|
|
1056
|
+
super();
|
|
1127
1057
|
this.mask = '###.###.###-##';
|
|
1128
1058
|
}
|
|
1129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [
|
|
1059
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1130
1060
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfComponent, isStandalone: true, selector: "mcl-input[cpf]", providers: [
|
|
1131
1061
|
{
|
|
1132
1062
|
provide: MatFormFieldControl,
|
|
1133
1063
|
useExisting: InputCpfComponent
|
|
1134
1064
|
}
|
|
1135
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1065
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1136
1066
|
}
|
|
1137
1067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, decorators: [{
|
|
1138
1068
|
type: Component,
|
|
@@ -1144,28 +1074,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1144
1074
|
provide: MatFormFieldControl,
|
|
1145
1075
|
useExisting: InputCpfComponent
|
|
1146
1076
|
}
|
|
1147
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1148
|
-
}], ctorParameters: () => [
|
|
1149
|
-
type: Optional
|
|
1150
|
-
}, {
|
|
1151
|
-
type: Self
|
|
1152
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1153
|
-
type: Optional
|
|
1154
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1155
|
-
type: Optional
|
|
1156
|
-
}] }, { type: undefined, decorators: [{
|
|
1157
|
-
type: Self
|
|
1158
|
-
}, {
|
|
1159
|
-
type: Optional
|
|
1160
|
-
}, {
|
|
1161
|
-
type: Inject,
|
|
1162
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1163
|
-
}] }] });
|
|
1077
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1078
|
+
}], ctorParameters: () => [] });
|
|
1164
1079
|
|
|
1165
1080
|
class InputPhoneComponent extends InputMaskComponent {
|
|
1166
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1167
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1168
|
-
}
|
|
1169
1081
|
applyMask(value) {
|
|
1170
1082
|
if (value) {
|
|
1171
1083
|
const unmasked = this.removeMask(value);
|
|
@@ -1178,13 +1090,13 @@ class InputPhoneComponent extends InputMaskComponent {
|
|
|
1178
1090
|
}
|
|
1179
1091
|
return super.applyMask(value);
|
|
1180
1092
|
}
|
|
1181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps:
|
|
1093
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1182
1094
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputPhoneComponent, isStandalone: true, selector: "mcl-input[phone]", providers: [
|
|
1183
1095
|
{
|
|
1184
1096
|
provide: MatFormFieldControl,
|
|
1185
1097
|
useExisting: InputPhoneComponent
|
|
1186
1098
|
}
|
|
1187
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1099
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n", styles: [""], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1188
1100
|
}
|
|
1189
1101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, decorators: [{
|
|
1190
1102
|
type: Component,
|
|
@@ -1196,16 +1108,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1196
1108
|
provide: MatFormFieldControl,
|
|
1197
1109
|
useExisting: InputPhoneComponent
|
|
1198
1110
|
}
|
|
1199
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1200
|
-
}]
|
|
1201
|
-
type: Optional
|
|
1202
|
-
}, {
|
|
1203
|
-
type: Self
|
|
1204
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1205
|
-
type: Optional
|
|
1206
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1207
|
-
type: Optional
|
|
1208
|
-
}] }] });
|
|
1111
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1112
|
+
}] });
|
|
1209
1113
|
|
|
1210
1114
|
class OptionNode {
|
|
1211
1115
|
pool;
|
|
@@ -1400,7 +1304,7 @@ class AllOptionCheckboxComponent {
|
|
|
1400
1304
|
this.change.emit();
|
|
1401
1305
|
}
|
|
1402
1306
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AllOptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1403
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AllOptionCheckboxComponent, isStandalone: true, selector: "mcl-option-checkbox[select-all-option]", inputs: { disabled: "disabled", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1307
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AllOptionCheckboxComponent, isStandalone: true, selector: "mcl-option-checkbox[select-all-option]", inputs: { disabled: "disabled", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
|
|
1404
1308
|
}
|
|
1405
1309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AllOptionCheckboxComponent, decorators: [{
|
|
1406
1310
|
type: Component,
|
|
@@ -1464,7 +1368,7 @@ class OptionCheckboxComponent {
|
|
|
1464
1368
|
this.fotonOptionCheckboxService.unregister(this.name, this.node);
|
|
1465
1369
|
}
|
|
1466
1370
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: OptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1467
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: OptionCheckboxComponent, isStandalone: true, selector: "mcl-option-checkbox:not([select-all-option])", inputs: { disabled: "disabled", value: "value", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1371
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: OptionCheckboxComponent, isStandalone: true, selector: "mcl-option-checkbox:not([select-all-option])", inputs: { disabled: "disabled", value: "value", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
|
|
1468
1372
|
}
|
|
1469
1373
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: OptionCheckboxComponent, decorators: [{
|
|
1470
1374
|
type: Component,
|
|
@@ -1565,9 +1469,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1565
1469
|
}] } });
|
|
1566
1470
|
|
|
1567
1471
|
class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
1568
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1569
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1570
|
-
}
|
|
1571
1472
|
add(event) {
|
|
1572
1473
|
this.onTouched();
|
|
1573
1474
|
const value = event.value;
|
|
@@ -1603,13 +1504,13 @@ class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1603
1504
|
}
|
|
1604
1505
|
this.control.setValue('');
|
|
1605
1506
|
}
|
|
1606
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, deps:
|
|
1507
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1607
1508
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectChipsComponent, isStandalone: true, selector: "mcl-select-chips", providers: [
|
|
1608
1509
|
{
|
|
1609
1510
|
provide: MatFormFieldControl,
|
|
1610
1511
|
useExisting: SelectChipsComponent
|
|
1611
1512
|
}
|
|
1612
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-chip-grid #chipList>\n @for (item of value; track doTrackBy(value)) {\n <mat-chip\n [removable]=\"!disabled\"\n (removed)=\"remove(item)\">\n {{ item }}\n @if (!disabled) {\n <mat-icon matChipRemove>cancel</mat-icon>\n }\n </mat-chip>\n }\n <input\n [placeholder]=\"placeholder\" required\n (focusin)=\"focused = true\"\n (focusout)=\"focused = false\"\n [formControl]=\"control\"\n [matAutocomplete]=\"filterAutocomplete\"\n [matChipInputFor]=\"chipList\"\n (matChipInputTokenEnd)=\"add($event)\">\n</mat-chip-grid>\n<mat-autocomplete #filterAutocomplete=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: [""], dependencies: [{ kind: "component", type: MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type:
|
|
1513
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-chip-grid #chipList>\n @for (item of value; track doTrackBy(value)) {\n <mat-chip\n [removable]=\"!disabled\"\n (removed)=\"remove(item)\">\n {{ item }}\n @if (!disabled) {\n <mat-icon matChipRemove>cancel</mat-icon>\n }\n </mat-chip>\n }\n <input\n [placeholder]=\"placeholder\" required\n (focusin)=\"focused = true\"\n (focusout)=\"focused = false\"\n [formControl]=\"control\"\n [matAutocomplete]=\"filterAutocomplete\"\n [matChipInputFor]=\"chipList\"\n (matChipInputTokenEnd)=\"add($event)\">\n</mat-chip-grid>\n<mat-autocomplete #filterAutocomplete=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: [""], dependencies: [{ kind: "component", type: MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "directive", type: MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "component", type: MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] });
|
|
1613
1514
|
}
|
|
1614
1515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, decorators: [{
|
|
1615
1516
|
type: Component,
|
|
@@ -1629,30 +1530,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1629
1530
|
useExisting: SelectChipsComponent
|
|
1630
1531
|
}
|
|
1631
1532
|
], template: "<mat-chip-grid #chipList>\n @for (item of value; track doTrackBy(value)) {\n <mat-chip\n [removable]=\"!disabled\"\n (removed)=\"remove(item)\">\n {{ item }}\n @if (!disabled) {\n <mat-icon matChipRemove>cancel</mat-icon>\n }\n </mat-chip>\n }\n <input\n [placeholder]=\"placeholder\" required\n (focusin)=\"focused = true\"\n (focusout)=\"focused = false\"\n [formControl]=\"control\"\n [matAutocomplete]=\"filterAutocomplete\"\n [matChipInputFor]=\"chipList\"\n (matChipInputTokenEnd)=\"add($event)\">\n</mat-chip-grid>\n<mat-autocomplete #filterAutocomplete=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n" }]
|
|
1632
|
-
}]
|
|
1633
|
-
type: Optional
|
|
1634
|
-
}, {
|
|
1635
|
-
type: Self
|
|
1636
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1637
|
-
type: Optional
|
|
1638
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1639
|
-
type: Optional
|
|
1640
|
-
}] }, { type: undefined, decorators: [{
|
|
1641
|
-
type: Self
|
|
1642
|
-
}, {
|
|
1643
|
-
type: Optional
|
|
1644
|
-
}, {
|
|
1645
|
-
type: Inject,
|
|
1646
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1647
|
-
}] }] });
|
|
1533
|
+
}] });
|
|
1648
1534
|
|
|
1649
1535
|
class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
1650
1536
|
readonly;
|
|
1651
1537
|
select = new EventEmitter();
|
|
1652
1538
|
blur = new EventEmitter();
|
|
1653
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1654
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1655
|
-
}
|
|
1656
1539
|
get shouldLabelFloat() {
|
|
1657
1540
|
return this.focused || !this.empty;
|
|
1658
1541
|
}
|
|
@@ -1684,13 +1567,13 @@ class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1684
1567
|
this.control.enable();
|
|
1685
1568
|
}
|
|
1686
1569
|
}
|
|
1687
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, deps:
|
|
1570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1688
1571
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectAutocompleteComponent, isStandalone: true, selector: "mcl-select-autocomplete", inputs: { readonly: "readonly" }, outputs: { select: "select", blur: "blur" }, providers: [
|
|
1689
1572
|
{
|
|
1690
1573
|
provide: MatFormFieldControl,
|
|
1691
1574
|
useExisting: SelectAutocompleteComponent
|
|
1692
1575
|
}
|
|
1693
|
-
], usesInheritance: true, ngImport: i0, template: "<input matInput name=\"autocomplete\" autocomplete=\"off\"\n [formControl]=\"control\" [matAutocomplete]=\"autocompleteGeneric\"\n (keyup)=\"didTouch()\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"\n [disabled]=\"disabled\" [readonly]=\"readonly\"/>\n<mat-autocomplete #autocompleteGeneric=\"matAutocomplete\"\n (optionSelected)=\"seleciona($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: [".mat-option{line-height:inherit;height:inherit}h3{color:#333;margin:5px;white-space:nowrap;font-size:16px}p{color:#666;margin:5px;white-space:nowrap;font-size:12px}\n"], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type:
|
|
1576
|
+
], usesInheritance: true, ngImport: i0, template: "<input matInput name=\"autocomplete\" autocomplete=\"off\"\n [formControl]=\"control\" [matAutocomplete]=\"autocompleteGeneric\"\n (keyup)=\"didTouch()\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"\n [disabled]=\"disabled\" [readonly]=\"readonly\"/>\n<mat-autocomplete #autocompleteGeneric=\"matAutocomplete\"\n (optionSelected)=\"seleciona($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: [".mat-option{line-height:inherit;height:inherit}h3{color:#333;margin:5px;white-space:nowrap;font-size:16px}p{color:#666;margin:5px;white-space:nowrap;font-size:12px}\n"], dependencies: [{ kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
|
|
1694
1577
|
}
|
|
1695
1578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, decorators: [{
|
|
1696
1579
|
type: Component,
|
|
@@ -1707,22 +1590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1707
1590
|
useExisting: SelectAutocompleteComponent
|
|
1708
1591
|
}
|
|
1709
1592
|
], template: "<input matInput name=\"autocomplete\" autocomplete=\"off\"\n [formControl]=\"control\" [matAutocomplete]=\"autocompleteGeneric\"\n (keyup)=\"didTouch()\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"\n [disabled]=\"disabled\" [readonly]=\"readonly\"/>\n<mat-autocomplete #autocompleteGeneric=\"matAutocomplete\"\n (optionSelected)=\"seleciona($event)\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-option [value]=\"opcao.value\">\n {{ opcao.label }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: [".mat-option{line-height:inherit;height:inherit}h3{color:#333;margin:5px;white-space:nowrap;font-size:16px}p{color:#666;margin:5px;white-space:nowrap;font-size:12px}\n"] }]
|
|
1710
|
-
}],
|
|
1711
|
-
type: Optional
|
|
1712
|
-
}, {
|
|
1713
|
-
type: Self
|
|
1714
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1715
|
-
type: Optional
|
|
1716
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1717
|
-
type: Optional
|
|
1718
|
-
}] }, { type: undefined, decorators: [{
|
|
1719
|
-
type: Self
|
|
1720
|
-
}, {
|
|
1721
|
-
type: Optional
|
|
1722
|
-
}, {
|
|
1723
|
-
type: Inject,
|
|
1724
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1725
|
-
}] }], propDecorators: { readonly: [{
|
|
1593
|
+
}], propDecorators: { readonly: [{
|
|
1726
1594
|
type: Input
|
|
1727
1595
|
}], select: [{
|
|
1728
1596
|
type: Output
|
|
@@ -1769,9 +1637,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1769
1637
|
class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
1770
1638
|
layout = 'grid';
|
|
1771
1639
|
layoutColumns = 3;
|
|
1772
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1773
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1774
|
-
}
|
|
1775
1640
|
selected(value) {
|
|
1776
1641
|
return !!this.value?.find((v) => v === value);
|
|
1777
1642
|
}
|
|
@@ -1790,7 +1655,7 @@ class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1790
1655
|
];
|
|
1791
1656
|
}
|
|
1792
1657
|
}
|
|
1793
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectManyCheckboxComponent, deps:
|
|
1658
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectManyCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1794
1659
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectManyCheckboxComponent, isStandalone: true, selector: "mcl-select-many-checkbox", inputs: { layout: "layout", layoutColumns: "layoutColumns" }, providers: [
|
|
1795
1660
|
{
|
|
1796
1661
|
provide: MatFormFieldControl,
|
|
@@ -1811,22 +1676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1811
1676
|
useExisting: SelectManyCheckboxComponent
|
|
1812
1677
|
}
|
|
1813
1678
|
], template: "<div class=\"mat-checkbox-container\"\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal','grid': layout === 'grid' }\"\n [ngStyle]=\"{'max-height': layout === 'grid' ? ((((filteredOptions | async)!.length / layoutColumns) + 1) * 40) + 'px' : undefined}\">\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-checkbox\n [required]=\"required\"\n [disabled]=\"disabled\"\n [checked]=\"selected(opcao.value)\"\n (change)=\"change(opcao.value, $event.checked)\">\n {{ opcao.label }}\n </mat-checkbox>\n }\n</div>\n", styles: [".mat-checkbox-container{display:flex;flex-wrap:wrap}.mat-checkbox-container.horizontal{flex-direction:row}.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}.mat-checkbox-container mat-checkbox{flex:1;padding:5px 5px 10px 0}@media (max-width: 750px){.mat-checkbox-container{max-height:none!important}.mat-checkbox-container.horizontal,.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}}\n"] }]
|
|
1814
|
-
}],
|
|
1815
|
-
type: Optional
|
|
1816
|
-
}, {
|
|
1817
|
-
type: Self
|
|
1818
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1819
|
-
type: Optional
|
|
1820
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1821
|
-
type: Optional
|
|
1822
|
-
}] }, { type: undefined, decorators: [{
|
|
1823
|
-
type: Self
|
|
1824
|
-
}, {
|
|
1825
|
-
type: Optional
|
|
1826
|
-
}, {
|
|
1827
|
-
type: Inject,
|
|
1828
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1829
|
-
}] }], propDecorators: { layout: [{
|
|
1679
|
+
}], propDecorators: { layout: [{
|
|
1830
1680
|
type: Input
|
|
1831
1681
|
}], layoutColumns: [{
|
|
1832
1682
|
type: Input
|
|
@@ -1834,19 +1684,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1834
1684
|
|
|
1835
1685
|
class SelectRadioComponent extends AbstractMatFormFieldSelectControl {
|
|
1836
1686
|
layout = 'vertical';
|
|
1837
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1838
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1839
|
-
}
|
|
1840
1687
|
get shouldLabelFloat() {
|
|
1841
1688
|
return true;
|
|
1842
1689
|
}
|
|
1843
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, deps:
|
|
1690
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1844
1691
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectRadioComponent, isStandalone: true, selector: "mcl-select-radio", inputs: { layout: "layout" }, providers: [
|
|
1845
1692
|
{
|
|
1846
1693
|
provide: MatFormFieldControl,
|
|
1847
1694
|
useExisting: SelectRadioComponent
|
|
1848
1695
|
}
|
|
1849
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-radio-group\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal'}\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\">\n\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-radio-button [value]=\"opcao.value\">{{ opcao.label }}</mat-radio-button>\n }\n\n</mat-radio-group>\n", styles: ["mat-radio-group{display:flex}mat-radio-group.horizontal{flex-direction:row}mat-radio-group.vertical{flex-direction:column}mat-radio-group mat-radio-button{flex:1}@media (max-width: 750px){mat-radio-group.horizontal,mat-radio-group.vertical{flex-direction:column}mat-radio-group.horizontal mat-radio-button,mat-radio-group.vertical mat-radio-button{margin:10px 0}}\n"], dependencies: [{ kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type:
|
|
1696
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-radio-group\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal'}\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\">\n\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-radio-button [value]=\"opcao.value\">{{ opcao.label }}</mat-radio-button>\n }\n\n</mat-radio-group>\n", styles: ["mat-radio-group{display:flex}mat-radio-group.horizontal{flex-direction:row}mat-radio-group.vertical{flex-direction:column}mat-radio-group mat-radio-button{flex:1}@media (max-width: 750px){mat-radio-group.horizontal,mat-radio-group.vertical{flex-direction:column}mat-radio-group.horizontal mat-radio-button,mat-radio-group.vertical mat-radio-button{margin:10px 0}}\n"], dependencies: [{ kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
|
|
1850
1697
|
}
|
|
1851
1698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, decorators: [{
|
|
1852
1699
|
type: Component,
|
|
@@ -1862,22 +1709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1862
1709
|
useExisting: SelectRadioComponent
|
|
1863
1710
|
}
|
|
1864
1711
|
], template: "<mat-radio-group\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal'}\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\">\n\n @for (opcao of filteredOptions | async; track doTrackBy(opcao.value)) {\n <mat-radio-button [value]=\"opcao.value\">{{ opcao.label }}</mat-radio-button>\n }\n\n</mat-radio-group>\n", styles: ["mat-radio-group{display:flex}mat-radio-group.horizontal{flex-direction:row}mat-radio-group.vertical{flex-direction:column}mat-radio-group mat-radio-button{flex:1}@media (max-width: 750px){mat-radio-group.horizontal,mat-radio-group.vertical{flex-direction:column}mat-radio-group.horizontal mat-radio-button,mat-radio-group.vertical mat-radio-button{margin:10px 0}}\n"] }]
|
|
1865
|
-
}],
|
|
1866
|
-
type: Optional
|
|
1867
|
-
}, {
|
|
1868
|
-
type: Self
|
|
1869
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1870
|
-
type: Optional
|
|
1871
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1872
|
-
type: Optional
|
|
1873
|
-
}] }, { type: undefined, decorators: [{
|
|
1874
|
-
type: Self
|
|
1875
|
-
}, {
|
|
1876
|
-
type: Optional
|
|
1877
|
-
}, {
|
|
1878
|
-
type: Inject,
|
|
1879
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1880
|
-
}] }], propDecorators: { layout: [{
|
|
1712
|
+
}], propDecorators: { layout: [{
|
|
1881
1713
|
type: Input
|
|
1882
1714
|
}] } });
|
|
1883
1715
|
|
|
@@ -1888,9 +1720,6 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1888
1720
|
alwaysShowCountry = false;
|
|
1889
1721
|
telInput;
|
|
1890
1722
|
$innerValue;
|
|
1891
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1892
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1893
|
-
}
|
|
1894
1723
|
get value() {
|
|
1895
1724
|
return this.$innerValue;
|
|
1896
1725
|
}
|
|
@@ -1917,13 +1746,13 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1917
1746
|
writeValue(value) {
|
|
1918
1747
|
this.value = value;
|
|
1919
1748
|
}
|
|
1920
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, deps:
|
|
1749
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1921
1750
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputTelefoneInternacionalComponent, isStandalone: true, selector: "mcl-input-telefone-intl", inputs: { preferredContries: "preferredContries", readonly: "readonly", alwaysShowCountry: "alwaysShowCountry" }, outputs: { blur: "blur" }, providers: [
|
|
1922
1751
|
{
|
|
1923
1752
|
provide: MatFormFieldControl,
|
|
1924
1753
|
useExisting: InputTelefoneInternacionalComponent
|
|
1925
1754
|
},
|
|
1926
|
-
], viewQueries: [{ propertyName: "telInput", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, 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", styles: [".input{display:flex;align-items:center;margin:-8px 0;gap:8px}.input lac-mat-country-selector{transition:.3s}.input lac-mat-country-selector.hidden{opacity:0}.input lac-mat-tel-input{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: LacMatTelInputModule }, { kind: "component", type:
|
|
1755
|
+
], viewQueries: [{ propertyName: "telInput", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, 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", styles: [".input{display:flex;align-items:center;margin:-8px 0;gap:8px}.input lac-mat-country-selector{transition:.3s}.input lac-mat-country-selector.hidden{opacity:0}.input lac-mat-tel-input{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: LacMatTelInputModule }, { kind: "component", type: i1$3.LacMatTelInputComponent, selector: "lac-mat-tel-input", inputs: ["required", "disabled", "internationalFormat"], outputs: ["blur"] }, { kind: "component", type: i1$3.LacMatCountrySelectorComponent, selector: "lac-mat-country-selector", inputs: ["selectorFor", "preferredCountries", "onlyCountries", "showDialCode", "disableSearch", "searchPlaceholder"], outputs: ["change"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1927
1756
|
}
|
|
1928
1757
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, decorators: [{
|
|
1929
1758
|
type: Component,
|
|
@@ -1937,15 +1766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1937
1766
|
useExisting: InputTelefoneInternacionalComponent
|
|
1938
1767
|
},
|
|
1939
1768
|
], 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", styles: [".input{display:flex;align-items:center;margin:-8px 0;gap:8px}.input lac-mat-country-selector{transition:.3s}.input lac-mat-country-selector.hidden{opacity:0}.input lac-mat-tel-input{flex:1 1 auto}\n"] }]
|
|
1940
|
-
}],
|
|
1941
|
-
type: Optional
|
|
1942
|
-
}, {
|
|
1943
|
-
type: Self
|
|
1944
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1945
|
-
type: Optional
|
|
1946
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1947
|
-
type: Optional
|
|
1948
|
-
}] }], propDecorators: { preferredContries: [{
|
|
1769
|
+
}], propDecorators: { preferredContries: [{
|
|
1949
1770
|
type: Input
|
|
1950
1771
|
}], readonly: [{
|
|
1951
1772
|
type: Input
|