@main-class/componentes 3.2.2 → 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 +147 -313
- 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 +3 -7
- 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 +9 -9
|
@@ -1,18 +1,18 @@
|
|
|
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 {
|
|
15
|
-
import { MomentDatetimeAdapter } from '@mat-datetimepicker/moment';
|
|
13
|
+
import * as i1$1 from '@mat-datetimepicker/core';
|
|
14
|
+
import { MAT_DATETIME_FORMATS, DatetimeAdapter, MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
|
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';
|
|
18
18
|
import { MatChipGrid, MatChip, MatChipInput } from '@angular/material/chips';
|
|
@@ -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,
|
|
@@ -387,22 +372,24 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
387
372
|
}
|
|
388
373
|
}
|
|
389
374
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
390
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputMaskComponent, isStandalone: true, selector: "mcl-input[mask]", inputs: { keepMask: "keepMask", mask: "mask" }, providers: [
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
375
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputMaskComponent, isStandalone: true, selector: "mcl-input[mask]", inputs: { keepMask: "keepMask", mask: "mask" }, providers: [
|
|
376
|
+
{
|
|
377
|
+
provide: MatFormFieldControl,
|
|
378
|
+
useExisting: InputMaskComponent
|
|
379
|
+
}
|
|
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"] }] });
|
|
395
381
|
}
|
|
396
382
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
397
383
|
type: Component,
|
|
398
384
|
args: [{ selector: 'mcl-input[mask]', imports: [
|
|
399
385
|
MatInput,
|
|
400
386
|
FormsModule
|
|
401
|
-
], providers: [
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
387
|
+
], providers: [
|
|
388
|
+
{
|
|
389
|
+
provide: MatFormFieldControl,
|
|
390
|
+
useExisting: InputMaskComponent
|
|
391
|
+
}
|
|
392
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
406
393
|
}], propDecorators: { keepMask: [{
|
|
407
394
|
type: Input
|
|
408
395
|
}], mask: [{
|
|
@@ -410,19 +397,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
410
397
|
}] } });
|
|
411
398
|
|
|
412
399
|
class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
413
|
-
|
|
414
|
-
|
|
400
|
+
formats = inject(MAT_DATETIME_FORMATS);
|
|
401
|
+
adapter = inject(DatetimeAdapter);
|
|
415
402
|
type = 'date';
|
|
416
403
|
readonly;
|
|
417
404
|
name;
|
|
418
405
|
picker;
|
|
419
406
|
innerValue;
|
|
420
407
|
$maskedValue;
|
|
421
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, adapter, formats) {
|
|
422
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
423
|
-
this.adapter = adapter;
|
|
424
|
-
this.formats = formats;
|
|
425
|
-
}
|
|
426
408
|
get empty() {
|
|
427
409
|
return !this.$maskedValue;
|
|
428
410
|
}
|
|
@@ -494,7 +476,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
494
476
|
}
|
|
495
477
|
this.stateChanges.next();
|
|
496
478
|
}
|
|
497
|
-
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 });
|
|
498
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: [
|
|
499
481
|
{
|
|
500
482
|
provide: MatFormFieldControl,
|
|
@@ -526,12 +508,13 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
526
508
|
}
|
|
527
509
|
}
|
|
528
510
|
}
|
|
529
|
-
], 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"] }] });
|
|
530
512
|
}
|
|
531
513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, decorators: [{
|
|
532
514
|
type: Component,
|
|
533
515
|
args: [{ selector: 'mcl-input-datetime', imports: [
|
|
534
516
|
MatDatetimepickerModule,
|
|
517
|
+
MatMomentDatetimeModule,
|
|
535
518
|
FormsModule,
|
|
536
519
|
InputMaskComponent
|
|
537
520
|
], providers: [
|
|
@@ -566,21 +549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
566
549
|
}
|
|
567
550
|
}
|
|
568
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"] }]
|
|
569
|
-
}],
|
|
570
|
-
type: Optional
|
|
571
|
-
}, {
|
|
572
|
-
type: Self
|
|
573
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
574
|
-
type: Optional
|
|
575
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
576
|
-
type: Optional
|
|
577
|
-
}] }, { type: i3.DatetimeAdapter, decorators: [{
|
|
578
|
-
type: Inject,
|
|
579
|
-
args: [DatetimeAdapter]
|
|
580
|
-
}] }, { type: undefined, decorators: [{
|
|
581
|
-
type: Inject,
|
|
582
|
-
args: [MAT_DATETIME_FORMATS]
|
|
583
|
-
}] }], propDecorators: { type: [{
|
|
552
|
+
}], propDecorators: { type: [{
|
|
584
553
|
type: Input
|
|
585
554
|
}], readonly: [{
|
|
586
555
|
type: Input
|
|
@@ -882,7 +851,7 @@ class InputFileUploadComponent {
|
|
|
882
851
|
this.stateChanges.next();
|
|
883
852
|
}
|
|
884
853
|
}
|
|
885
|
-
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 });
|
|
886
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: [
|
|
887
856
|
{
|
|
888
857
|
provide: MatFormFieldControl,
|
|
@@ -911,13 +880,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
911
880
|
useExisting: InputFileUploadComponent
|
|
912
881
|
}
|
|
913
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"] }]
|
|
914
|
-
}], ctorParameters: () => [{ type: i1.ErrorStateMatcher }, { type:
|
|
883
|
+
}], ctorParameters: () => [{ type: i1$2.ErrorStateMatcher }, { type: i1.NgControl, decorators: [{
|
|
915
884
|
type: Optional
|
|
916
885
|
}, {
|
|
917
886
|
type: Self
|
|
918
|
-
}] }, { type:
|
|
887
|
+
}] }, { type: i1.NgForm, decorators: [{
|
|
919
888
|
type: Optional
|
|
920
|
-
}] }, { type: i0.ChangeDetectorRef }, { type:
|
|
889
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: i1.FormGroupDirective, decorators: [{
|
|
921
890
|
type: Optional
|
|
922
891
|
}] }, { type: undefined, decorators: [{
|
|
923
892
|
type: Inject,
|
|
@@ -994,86 +963,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
994
963
|
}] } });
|
|
995
964
|
|
|
996
965
|
class InputCnpjComponent extends InputMaskComponent {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1000
|
-
this.optionProvider = optionProvider;
|
|
966
|
+
constructor() {
|
|
967
|
+
super();
|
|
1001
968
|
this.mask = '##.###.###/####-##';
|
|
1002
969
|
}
|
|
1003
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [
|
|
1004
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCnpjComponent, isStandalone: true, selector: "mcl-input[cnpj]", providers: [
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}
|
|
970
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
971
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCnpjComponent, isStandalone: true, selector: "mcl-input[cnpj]", providers: [
|
|
972
|
+
{
|
|
973
|
+
provide: MatFormFieldControl,
|
|
974
|
+
useExisting: InputCnpjComponent
|
|
975
|
+
}
|
|
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"] }] });
|
|
1009
977
|
}
|
|
1010
978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, decorators: [{
|
|
1011
979
|
type: Component,
|
|
1012
980
|
args: [{ selector: 'mcl-input[cnpj]', imports: [
|
|
1013
981
|
MatInput,
|
|
1014
982
|
FormsModule
|
|
1015
|
-
], providers: [
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
}, {
|
|
1023
|
-
type: Self
|
|
1024
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1025
|
-
type: Optional
|
|
1026
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1027
|
-
type: Optional
|
|
1028
|
-
}] }, { type: undefined, decorators: [{
|
|
1029
|
-
type: Self
|
|
1030
|
-
}, {
|
|
1031
|
-
type: Optional
|
|
1032
|
-
}, {
|
|
1033
|
-
type: Inject,
|
|
1034
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1035
|
-
}] }] });
|
|
983
|
+
], providers: [
|
|
984
|
+
{
|
|
985
|
+
provide: MatFormFieldControl,
|
|
986
|
+
useExisting: InputCnpjComponent
|
|
987
|
+
}
|
|
988
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
989
|
+
}], ctorParameters: () => [] });
|
|
1036
990
|
|
|
1037
991
|
class InputCepComponent extends InputMaskComponent {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1041
|
-
this.optionProvider = optionProvider;
|
|
992
|
+
constructor() {
|
|
993
|
+
super();
|
|
1042
994
|
this.mask = '##.###-###';
|
|
1043
995
|
}
|
|
1044
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [
|
|
1045
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCepComponent, isStandalone: true, selector: "mcl-input[cep]", providers: [
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
997
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCepComponent, isStandalone: true, selector: "mcl-input[cep]", providers: [
|
|
998
|
+
{
|
|
999
|
+
provide: MatFormFieldControl,
|
|
1000
|
+
useExisting: InputCepComponent
|
|
1001
|
+
}
|
|
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"] }] });
|
|
1050
1003
|
}
|
|
1051
1004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, decorators: [{
|
|
1052
1005
|
type: Component,
|
|
1053
1006
|
args: [{ selector: 'mcl-input[cep]', imports: [
|
|
1054
1007
|
MatInput,
|
|
1055
1008
|
FormsModule
|
|
1056
|
-
], providers: [
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}, {
|
|
1064
|
-
type: Self
|
|
1065
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1066
|
-
type: Optional
|
|
1067
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1068
|
-
type: Optional
|
|
1069
|
-
}] }, { type: undefined, decorators: [{
|
|
1070
|
-
type: Self
|
|
1071
|
-
}, {
|
|
1072
|
-
type: Optional
|
|
1073
|
-
}, {
|
|
1074
|
-
type: Inject,
|
|
1075
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1076
|
-
}] }] });
|
|
1009
|
+
], providers: [
|
|
1010
|
+
{
|
|
1011
|
+
provide: MatFormFieldControl,
|
|
1012
|
+
useExisting: InputCepComponent
|
|
1013
|
+
}
|
|
1014
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1015
|
+
}], ctorParameters: () => [] });
|
|
1077
1016
|
|
|
1078
1017
|
class InputCpfCnpjComponent extends InputMaskComponent {
|
|
1079
1018
|
get value() {
|
|
@@ -1092,69 +1031,53 @@ class InputCpfCnpjComponent extends InputMaskComponent {
|
|
|
1092
1031
|
}
|
|
1093
1032
|
}
|
|
1094
1033
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfCnpjComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1095
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfCnpjComponent, isStandalone: true, selector: "mcl-input[cpfCnpj]", providers: [
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1034
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfCnpjComponent, isStandalone: true, selector: "mcl-input[cpfCnpj]", providers: [
|
|
1035
|
+
{
|
|
1036
|
+
provide: MatFormFieldControl,
|
|
1037
|
+
useExisting: InputCpfCnpjComponent
|
|
1038
|
+
}
|
|
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"] }] });
|
|
1100
1040
|
}
|
|
1101
1041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfCnpjComponent, decorators: [{
|
|
1102
1042
|
type: Component,
|
|
1103
1043
|
args: [{ selector: 'mcl-input[cpfCnpj]', imports: [
|
|
1104
1044
|
MatInput,
|
|
1105
1045
|
FormsModule
|
|
1106
|
-
], providers: [
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
1046
|
+
], providers: [
|
|
1047
|
+
{
|
|
1048
|
+
provide: MatFormFieldControl,
|
|
1049
|
+
useExisting: InputCpfCnpjComponent
|
|
1050
|
+
}
|
|
1051
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1111
1052
|
}] });
|
|
1112
1053
|
|
|
1113
1054
|
class InputCpfComponent extends InputMaskComponent {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1117
|
-
this.optionProvider = optionProvider;
|
|
1055
|
+
constructor() {
|
|
1056
|
+
super();
|
|
1118
1057
|
this.mask = '###.###.###-##';
|
|
1119
1058
|
}
|
|
1120
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [
|
|
1121
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfComponent, isStandalone: true, selector: "mcl-input[cpf]", providers: [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1059
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1060
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfComponent, isStandalone: true, selector: "mcl-input[cpf]", providers: [
|
|
1061
|
+
{
|
|
1062
|
+
provide: MatFormFieldControl,
|
|
1063
|
+
useExisting: InputCpfComponent
|
|
1064
|
+
}
|
|
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"] }] });
|
|
1126
1066
|
}
|
|
1127
1067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, decorators: [{
|
|
1128
1068
|
type: Component,
|
|
1129
1069
|
args: [{ selector: 'mcl-input[cpf]', imports: [
|
|
1130
1070
|
MatInput,
|
|
1131
1071
|
FormsModule
|
|
1132
|
-
], providers: [
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}, {
|
|
1140
|
-
type: Self
|
|
1141
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1142
|
-
type: Optional
|
|
1143
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1144
|
-
type: Optional
|
|
1145
|
-
}] }, { type: undefined, decorators: [{
|
|
1146
|
-
type: Self
|
|
1147
|
-
}, {
|
|
1148
|
-
type: Optional
|
|
1149
|
-
}, {
|
|
1150
|
-
type: Inject,
|
|
1151
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1152
|
-
}] }] });
|
|
1072
|
+
], providers: [
|
|
1073
|
+
{
|
|
1074
|
+
provide: MatFormFieldControl,
|
|
1075
|
+
useExisting: InputCpfComponent
|
|
1076
|
+
}
|
|
1077
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1078
|
+
}], ctorParameters: () => [] });
|
|
1153
1079
|
|
|
1154
1080
|
class InputPhoneComponent extends InputMaskComponent {
|
|
1155
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1156
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1157
|
-
}
|
|
1158
1081
|
applyMask(value) {
|
|
1159
1082
|
if (value) {
|
|
1160
1083
|
const unmasked = this.removeMask(value);
|
|
@@ -1167,32 +1090,26 @@ class InputPhoneComponent extends InputMaskComponent {
|
|
|
1167
1090
|
}
|
|
1168
1091
|
return super.applyMask(value);
|
|
1169
1092
|
}
|
|
1170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps:
|
|
1171
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputPhoneComponent, isStandalone: true, selector: "mcl-input[phone]", providers: [
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1093
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1094
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputPhoneComponent, isStandalone: true, selector: "mcl-input[phone]", providers: [
|
|
1095
|
+
{
|
|
1096
|
+
provide: MatFormFieldControl,
|
|
1097
|
+
useExisting: InputPhoneComponent
|
|
1098
|
+
}
|
|
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"] }] });
|
|
1176
1100
|
}
|
|
1177
1101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, decorators: [{
|
|
1178
1102
|
type: Component,
|
|
1179
1103
|
args: [{ selector: 'mcl-input[phone]', imports: [
|
|
1180
1104
|
MatInput,
|
|
1181
1105
|
FormsModule
|
|
1182
|
-
], providers: [
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}, {
|
|
1190
|
-
type: Self
|
|
1191
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1192
|
-
type: Optional
|
|
1193
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1194
|
-
type: Optional
|
|
1195
|
-
}] }] });
|
|
1106
|
+
], providers: [
|
|
1107
|
+
{
|
|
1108
|
+
provide: MatFormFieldControl,
|
|
1109
|
+
useExisting: InputPhoneComponent
|
|
1110
|
+
}
|
|
1111
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1112
|
+
}] });
|
|
1196
1113
|
|
|
1197
1114
|
class OptionNode {
|
|
1198
1115
|
pool;
|
|
@@ -1387,7 +1304,7 @@ class AllOptionCheckboxComponent {
|
|
|
1387
1304
|
this.change.emit();
|
|
1388
1305
|
}
|
|
1389
1306
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AllOptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1390
|
-
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" }] });
|
|
1391
1308
|
}
|
|
1392
1309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AllOptionCheckboxComponent, decorators: [{
|
|
1393
1310
|
type: Component,
|
|
@@ -1451,7 +1368,7 @@ class OptionCheckboxComponent {
|
|
|
1451
1368
|
this.fotonOptionCheckboxService.unregister(this.name, this.node);
|
|
1452
1369
|
}
|
|
1453
1370
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: OptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1454
|
-
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" }] });
|
|
1455
1372
|
}
|
|
1456
1373
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: OptionCheckboxComponent, decorators: [{
|
|
1457
1374
|
type: Component,
|
|
@@ -1552,9 +1469,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1552
1469
|
}] } });
|
|
1553
1470
|
|
|
1554
1471
|
class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
1555
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1556
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1557
|
-
}
|
|
1558
1472
|
add(event) {
|
|
1559
1473
|
this.onTouched();
|
|
1560
1474
|
const value = event.value;
|
|
@@ -1590,13 +1504,13 @@ class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1590
1504
|
}
|
|
1591
1505
|
this.control.setValue('');
|
|
1592
1506
|
}
|
|
1593
|
-
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 });
|
|
1594
1508
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectChipsComponent, isStandalone: true, selector: "mcl-select-chips", providers: [
|
|
1595
1509
|
{
|
|
1596
1510
|
provide: MatFormFieldControl,
|
|
1597
1511
|
useExisting: SelectChipsComponent
|
|
1598
1512
|
}
|
|
1599
|
-
], 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"] }] });
|
|
1600
1514
|
}
|
|
1601
1515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, decorators: [{
|
|
1602
1516
|
type: Component,
|
|
@@ -1616,30 +1530,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1616
1530
|
useExisting: SelectChipsComponent
|
|
1617
1531
|
}
|
|
1618
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" }]
|
|
1619
|
-
}]
|
|
1620
|
-
type: Optional
|
|
1621
|
-
}, {
|
|
1622
|
-
type: Self
|
|
1623
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1624
|
-
type: Optional
|
|
1625
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1626
|
-
type: Optional
|
|
1627
|
-
}] }, { type: undefined, decorators: [{
|
|
1628
|
-
type: Self
|
|
1629
|
-
}, {
|
|
1630
|
-
type: Optional
|
|
1631
|
-
}, {
|
|
1632
|
-
type: Inject,
|
|
1633
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1634
|
-
}] }] });
|
|
1533
|
+
}] });
|
|
1635
1534
|
|
|
1636
1535
|
class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
1637
1536
|
readonly;
|
|
1638
1537
|
select = new EventEmitter();
|
|
1639
1538
|
blur = new EventEmitter();
|
|
1640
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1641
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1642
|
-
}
|
|
1643
1539
|
get shouldLabelFloat() {
|
|
1644
1540
|
return this.focused || !this.empty;
|
|
1645
1541
|
}
|
|
@@ -1671,13 +1567,13 @@ class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1671
1567
|
this.control.enable();
|
|
1672
1568
|
}
|
|
1673
1569
|
}
|
|
1674
|
-
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 });
|
|
1675
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: [
|
|
1676
1572
|
{
|
|
1677
1573
|
provide: MatFormFieldControl,
|
|
1678
1574
|
useExisting: SelectAutocompleteComponent
|
|
1679
1575
|
}
|
|
1680
|
-
], 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" }] });
|
|
1681
1577
|
}
|
|
1682
1578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, decorators: [{
|
|
1683
1579
|
type: Component,
|
|
@@ -1694,22 +1590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1694
1590
|
useExisting: SelectAutocompleteComponent
|
|
1695
1591
|
}
|
|
1696
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"] }]
|
|
1697
|
-
}],
|
|
1698
|
-
type: Optional
|
|
1699
|
-
}, {
|
|
1700
|
-
type: Self
|
|
1701
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1702
|
-
type: Optional
|
|
1703
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1704
|
-
type: Optional
|
|
1705
|
-
}] }, { type: undefined, decorators: [{
|
|
1706
|
-
type: Self
|
|
1707
|
-
}, {
|
|
1708
|
-
type: Optional
|
|
1709
|
-
}, {
|
|
1710
|
-
type: Inject,
|
|
1711
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1712
|
-
}] }], propDecorators: { readonly: [{
|
|
1593
|
+
}], propDecorators: { readonly: [{
|
|
1713
1594
|
type: Input
|
|
1714
1595
|
}], select: [{
|
|
1715
1596
|
type: Output
|
|
@@ -1756,9 +1637,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1756
1637
|
class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
1757
1638
|
layout = 'grid';
|
|
1758
1639
|
layoutColumns = 3;
|
|
1759
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1760
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1761
|
-
}
|
|
1762
1640
|
selected(value) {
|
|
1763
1641
|
return !!this.value?.find((v) => v === value);
|
|
1764
1642
|
}
|
|
@@ -1777,7 +1655,7 @@ class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1777
1655
|
];
|
|
1778
1656
|
}
|
|
1779
1657
|
}
|
|
1780
|
-
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 });
|
|
1781
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: [
|
|
1782
1660
|
{
|
|
1783
1661
|
provide: MatFormFieldControl,
|
|
@@ -1798,22 +1676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1798
1676
|
useExisting: SelectManyCheckboxComponent
|
|
1799
1677
|
}
|
|
1800
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"] }]
|
|
1801
|
-
}],
|
|
1802
|
-
type: Optional
|
|
1803
|
-
}, {
|
|
1804
|
-
type: Self
|
|
1805
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1806
|
-
type: Optional
|
|
1807
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1808
|
-
type: Optional
|
|
1809
|
-
}] }, { type: undefined, decorators: [{
|
|
1810
|
-
type: Self
|
|
1811
|
-
}, {
|
|
1812
|
-
type: Optional
|
|
1813
|
-
}, {
|
|
1814
|
-
type: Inject,
|
|
1815
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1816
|
-
}] }], propDecorators: { layout: [{
|
|
1679
|
+
}], propDecorators: { layout: [{
|
|
1817
1680
|
type: Input
|
|
1818
1681
|
}], layoutColumns: [{
|
|
1819
1682
|
type: Input
|
|
@@ -1821,19 +1684,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1821
1684
|
|
|
1822
1685
|
class SelectRadioComponent extends AbstractMatFormFieldSelectControl {
|
|
1823
1686
|
layout = 'vertical';
|
|
1824
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1825
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1826
|
-
}
|
|
1827
1687
|
get shouldLabelFloat() {
|
|
1828
1688
|
return true;
|
|
1829
1689
|
}
|
|
1830
|
-
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 });
|
|
1831
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: [
|
|
1832
1692
|
{
|
|
1833
1693
|
provide: MatFormFieldControl,
|
|
1834
1694
|
useExisting: SelectRadioComponent
|
|
1835
1695
|
}
|
|
1836
|
-
], 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" }] });
|
|
1837
1697
|
}
|
|
1838
1698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, decorators: [{
|
|
1839
1699
|
type: Component,
|
|
@@ -1849,22 +1709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1849
1709
|
useExisting: SelectRadioComponent
|
|
1850
1710
|
}
|
|
1851
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"] }]
|
|
1852
|
-
}],
|
|
1853
|
-
type: Optional
|
|
1854
|
-
}, {
|
|
1855
|
-
type: Self
|
|
1856
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1857
|
-
type: Optional
|
|
1858
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1859
|
-
type: Optional
|
|
1860
|
-
}] }, { type: undefined, decorators: [{
|
|
1861
|
-
type: Self
|
|
1862
|
-
}, {
|
|
1863
|
-
type: Optional
|
|
1864
|
-
}, {
|
|
1865
|
-
type: Inject,
|
|
1866
|
-
args: [SELECT_OPTION_PROVIDER]
|
|
1867
|
-
}] }], propDecorators: { layout: [{
|
|
1712
|
+
}], propDecorators: { layout: [{
|
|
1868
1713
|
type: Input
|
|
1869
1714
|
}] } });
|
|
1870
1715
|
|
|
@@ -1875,9 +1720,6 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1875
1720
|
alwaysShowCountry = false;
|
|
1876
1721
|
telInput;
|
|
1877
1722
|
$innerValue;
|
|
1878
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1879
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1880
|
-
}
|
|
1881
1723
|
get value() {
|
|
1882
1724
|
return this.$innerValue;
|
|
1883
1725
|
}
|
|
@@ -1904,13 +1746,13 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1904
1746
|
writeValue(value) {
|
|
1905
1747
|
this.value = value;
|
|
1906
1748
|
}
|
|
1907
|
-
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 });
|
|
1908
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: [
|
|
1909
1751
|
{
|
|
1910
1752
|
provide: MatFormFieldControl,
|
|
1911
1753
|
useExisting: InputTelefoneInternacionalComponent
|
|
1912
1754
|
},
|
|
1913
|
-
], 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"] }] });
|
|
1914
1756
|
}
|
|
1915
1757
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, decorators: [{
|
|
1916
1758
|
type: Component,
|
|
@@ -1924,15 +1766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1924
1766
|
useExisting: InputTelefoneInternacionalComponent
|
|
1925
1767
|
},
|
|
1926
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"] }]
|
|
1927
|
-
}],
|
|
1928
|
-
type: Optional
|
|
1929
|
-
}, {
|
|
1930
|
-
type: Self
|
|
1931
|
-
}] }, { type: i2.NgForm, decorators: [{
|
|
1932
|
-
type: Optional
|
|
1933
|
-
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1934
|
-
type: Optional
|
|
1935
|
-
}] }], propDecorators: { preferredContries: [{
|
|
1769
|
+
}], propDecorators: { preferredContries: [{
|
|
1936
1770
|
type: Input
|
|
1937
1771
|
}], readonly: [{
|
|
1938
1772
|
type: Input
|