@main-class/componentes 3.2.3 → 3.2.5
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 +129 -279
- package/fesm2022/main-class-componentes-input.mjs.map +1 -1
- package/input/src/abstract-mat-form-field-control.d.ts +13 -9
- package/input/src/abstract-mat-form-field-select-control.d.ts +5 -7
- package/input/src/input-datetime/input-datetime.component.d.ts +8 -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-mask.component.d.ts +3 -1
- 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 +2 -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_VALIDATORS, NG_VALUE_ACCESSOR, 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, 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,33 +24,29 @@ 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 = '';
|
|
38
37
|
$disabled = false;
|
|
39
38
|
$required = false;
|
|
40
39
|
focused = false;
|
|
41
|
-
|
|
40
|
+
_input;
|
|
41
|
+
get input() {
|
|
42
|
+
return this._input;
|
|
43
|
+
}
|
|
44
|
+
set input(value) {
|
|
45
|
+
this._input = value;
|
|
46
|
+
}
|
|
42
47
|
stateChanges = new Subject();
|
|
43
48
|
id = `custom-input-${AbstractMatFormFieldControl.nextId++}`;
|
|
44
49
|
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
50
|
onChange = (val) => {
|
|
55
51
|
};
|
|
56
52
|
onTouched = () => {
|
|
@@ -66,8 +62,22 @@ class AbstractMatFormFieldControl {
|
|
|
66
62
|
get empty() {
|
|
67
63
|
return !this.value;
|
|
68
64
|
}
|
|
65
|
+
get autofilled() {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
get userAriaDescribedBy() {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
get disableAutomaticLabeling() {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
69
74
|
onContainerClick(event) {
|
|
70
75
|
}
|
|
76
|
+
ngOnInit() {
|
|
77
|
+
if (this.ngControl != null) {
|
|
78
|
+
this.ngControl.valueAccessor = this;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
71
81
|
get shouldLabelFloat() {
|
|
72
82
|
return !this.empty || (this.input && this.input.nativeElement.value) || this.focused;
|
|
73
83
|
}
|
|
@@ -93,7 +103,7 @@ class AbstractMatFormFieldControl {
|
|
|
93
103
|
this.stateChanges.next();
|
|
94
104
|
}
|
|
95
105
|
get errorState() {
|
|
96
|
-
return this.errorStateMatcher.isErrorState(this.ngControl
|
|
106
|
+
return this.errorStateMatcher.isErrorState(this.ngControl?.control, this.parentFormGroup);
|
|
97
107
|
}
|
|
98
108
|
get controlType() {
|
|
99
109
|
return 'custom-input';
|
|
@@ -116,15 +126,15 @@ class AbstractMatFormFieldControl {
|
|
|
116
126
|
writeValue(value) {
|
|
117
127
|
this.$value = value;
|
|
118
128
|
}
|
|
119
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, deps: [
|
|
120
|
-
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: "
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
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
131
|
}
|
|
122
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldControl, decorators: [{
|
|
123
133
|
type: Component,
|
|
124
134
|
args: [{
|
|
125
135
|
template: ''
|
|
126
136
|
}]
|
|
127
|
-
}],
|
|
137
|
+
}], propDecorators: { _input: [{
|
|
128
138
|
type: ViewChild,
|
|
129
139
|
args: ['input']
|
|
130
140
|
}], id: [{
|
|
@@ -167,7 +177,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
167
177
|
}] } });
|
|
168
178
|
|
|
169
179
|
class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
170
|
-
optionProvider;
|
|
180
|
+
optionProvider = inject(SELECT_OPTION_PROVIDER, { self: true, optional: true });
|
|
171
181
|
optionsSubscription;
|
|
172
182
|
$args = new BehaviorSubject(undefined);
|
|
173
183
|
wvt;
|
|
@@ -194,10 +204,6 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
194
204
|
}));
|
|
195
205
|
}
|
|
196
206
|
};
|
|
197
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
198
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
199
|
-
this.optionProvider = optionProvider;
|
|
200
|
-
}
|
|
201
207
|
doTrackBy(val) {
|
|
202
208
|
if (this.optionProvider && this.optionProvider.trackBy) {
|
|
203
209
|
return this.optionProvider.trackBy(val);
|
|
@@ -229,7 +235,7 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
229
235
|
this.onTouched();
|
|
230
236
|
if (value) {
|
|
231
237
|
this.value = value;
|
|
232
|
-
this.control.setValue(this.optionProvider.label(value));
|
|
238
|
+
this.control.setValue((this.optionProvider || this.defaultOptionProvider).label(value));
|
|
233
239
|
}
|
|
234
240
|
else {
|
|
235
241
|
this.value = undefined;
|
|
@@ -242,14 +248,14 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
242
248
|
this.wvt = setTimeout(() => {
|
|
243
249
|
super.writeValue(value);
|
|
244
250
|
if (value) {
|
|
245
|
-
this.control.setValue(this.optionProvider.label(value));
|
|
251
|
+
this.control.setValue((this.optionProvider || this.defaultOptionProvider).label(value));
|
|
246
252
|
}
|
|
247
253
|
else {
|
|
248
254
|
this.control.setValue('');
|
|
249
255
|
}
|
|
250
256
|
}, 150);
|
|
251
257
|
}
|
|
252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, deps:
|
|
258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
253
259
|
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
260
|
}
|
|
255
261
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AbstractMatFormFieldSelectControl, decorators: [{
|
|
@@ -257,22 +263,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
257
263
|
args: [{
|
|
258
264
|
template: ''
|
|
259
265
|
}]
|
|
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: [{
|
|
266
|
+
}], propDecorators: { trackBy: [{
|
|
276
267
|
type: Input
|
|
277
268
|
}], options: [{
|
|
278
269
|
type: ContentChildren,
|
|
@@ -312,22 +303,24 @@ class InputCurrencyComponent extends AbstractMatFormFieldControl {
|
|
|
312
303
|
}
|
|
313
304
|
}
|
|
314
305
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCurrencyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
315
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCurrencyComponent, isStandalone: true, selector: "mcl-input[currency]", providers: [
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
306
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCurrencyComponent, isStandalone: true, selector: "mcl-input[currency]", providers: [
|
|
307
|
+
{
|
|
308
|
+
provide: MatFormFieldControl,
|
|
309
|
+
useExisting: InputCurrencyComponent
|
|
310
|
+
}
|
|
311
|
+
], 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
312
|
}
|
|
321
313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
322
314
|
type: Component,
|
|
323
315
|
args: [{ selector: 'mcl-input[currency]', imports: [
|
|
324
316
|
FormsModule,
|
|
325
317
|
MatInput
|
|
326
|
-
], providers: [
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
318
|
+
], providers: [
|
|
319
|
+
{
|
|
320
|
+
provide: MatFormFieldControl,
|
|
321
|
+
useExisting: InputCurrencyComponent
|
|
322
|
+
}
|
|
323
|
+
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
331
324
|
}] });
|
|
332
325
|
|
|
333
326
|
class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
@@ -353,6 +346,14 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
353
346
|
this.writeValue(this.value);
|
|
354
347
|
}
|
|
355
348
|
}
|
|
349
|
+
ngAfterViewInit() {
|
|
350
|
+
if (this.input && this.mask) {
|
|
351
|
+
const masked = this.applyMask(this.value);
|
|
352
|
+
if (!!this.input && masked !== this.value) {
|
|
353
|
+
this.input.nativeElement.text = masked;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
356
357
|
applyMask(value) {
|
|
357
358
|
if (value && this.$mask) {
|
|
358
359
|
value = this.removeMask(value);
|
|
@@ -368,10 +369,10 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
368
369
|
}
|
|
369
370
|
return result;
|
|
370
371
|
}
|
|
371
|
-
return
|
|
372
|
+
return '';
|
|
372
373
|
}
|
|
373
374
|
removeMask(value) {
|
|
374
|
-
if (typeof value ===
|
|
375
|
+
if (typeof value === 'number') {
|
|
375
376
|
value = String(value).padStart(this.$mask?.replace(/[^#]/, '')?.length || 0, '0');
|
|
376
377
|
}
|
|
377
378
|
if (value) {
|
|
@@ -382,7 +383,7 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
382
383
|
writeValue(value) {
|
|
383
384
|
super.writeValue(value);
|
|
384
385
|
const masked = this.applyMask(value);
|
|
385
|
-
if (masked !== this.value) {
|
|
386
|
+
if (!!this.input && masked !== this.value) {
|
|
386
387
|
this.input.nativeElement.text = masked;
|
|
387
388
|
}
|
|
388
389
|
}
|
|
@@ -392,7 +393,7 @@ class InputMaskComponent extends AbstractMatFormFieldControl {
|
|
|
392
393
|
provide: MatFormFieldControl,
|
|
393
394
|
useExisting: InputMaskComponent
|
|
394
395
|
}
|
|
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:
|
|
396
|
+
], 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
397
|
}
|
|
397
398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputMaskComponent, decorators: [{
|
|
398
399
|
type: Component,
|
|
@@ -404,7 +405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
404
405
|
provide: MatFormFieldControl,
|
|
405
406
|
useExisting: InputMaskComponent
|
|
406
407
|
}
|
|
407
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
408
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
408
409
|
}], propDecorators: { keepMask: [{
|
|
409
410
|
type: Input
|
|
410
411
|
}], mask: [{
|
|
@@ -412,18 +413,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
412
413
|
}] } });
|
|
413
414
|
|
|
414
415
|
class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
415
|
-
|
|
416
|
-
|
|
416
|
+
formats = inject(MAT_DATETIME_FORMATS);
|
|
417
|
+
adapter = inject(DatetimeAdapter);
|
|
417
418
|
type = 'date';
|
|
418
419
|
readonly;
|
|
419
420
|
name;
|
|
420
421
|
picker;
|
|
422
|
+
inputMask;
|
|
421
423
|
innerValue;
|
|
422
424
|
$maskedValue;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
get input() {
|
|
426
|
+
return this.inputMask.input;
|
|
427
|
+
}
|
|
428
|
+
set input(input) {
|
|
429
|
+
// não necessário
|
|
427
430
|
}
|
|
428
431
|
get empty() {
|
|
429
432
|
return !this.$maskedValue;
|
|
@@ -496,7 +499,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
496
499
|
}
|
|
497
500
|
this.stateChanges.next();
|
|
498
501
|
}
|
|
499
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps:
|
|
502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
500
503
|
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
504
|
{
|
|
502
505
|
provide: MatFormFieldControl,
|
|
@@ -528,7 +531,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
528
531
|
}
|
|
529
532
|
}
|
|
530
533
|
}
|
|
531
|
-
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\"
|
|
534
|
+
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }, { propertyName: "inputMask", first: true, predicate: ["inputMask"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\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 mcl-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
535
|
}
|
|
533
536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, decorators: [{
|
|
534
537
|
type: Component,
|
|
@@ -568,22 +571,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
568
571
|
}
|
|
569
572
|
}
|
|
570
573
|
}
|
|
571
|
-
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\"
|
|
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: [{
|
|
574
|
+
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\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 mcl-input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"] }]
|
|
575
|
+
}], propDecorators: { type: [{
|
|
587
576
|
type: Input
|
|
588
577
|
}], readonly: [{
|
|
589
578
|
type: Input
|
|
@@ -592,6 +581,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
592
581
|
}], picker: [{
|
|
593
582
|
type: ViewChild,
|
|
594
583
|
args: ['pickerData']
|
|
584
|
+
}], inputMask: [{
|
|
585
|
+
type: ViewChild,
|
|
586
|
+
args: ['inputMask']
|
|
595
587
|
}] } });
|
|
596
588
|
|
|
597
589
|
class InputFileUploadComponent {
|
|
@@ -885,7 +877,7 @@ class InputFileUploadComponent {
|
|
|
885
877
|
this.stateChanges.next();
|
|
886
878
|
}
|
|
887
879
|
}
|
|
888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputFileUploadComponent, deps: [{ token: i1.ErrorStateMatcher }, { token:
|
|
880
|
+
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
881
|
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
882
|
{
|
|
891
883
|
provide: MatFormFieldControl,
|
|
@@ -914,13 +906,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
914
906
|
useExisting: InputFileUploadComponent
|
|
915
907
|
}
|
|
916
908
|
], 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:
|
|
909
|
+
}], ctorParameters: () => [{ type: i1$2.ErrorStateMatcher }, { type: i1.NgControl, decorators: [{
|
|
918
910
|
type: Optional
|
|
919
911
|
}, {
|
|
920
912
|
type: Self
|
|
921
|
-
}] }, { type:
|
|
913
|
+
}] }, { type: i1.NgForm, decorators: [{
|
|
922
914
|
type: Optional
|
|
923
|
-
}] }, { type: i0.ChangeDetectorRef }, { type:
|
|
915
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: i1.FormGroupDirective, decorators: [{
|
|
924
916
|
type: Optional
|
|
925
917
|
}] }, { type: undefined, decorators: [{
|
|
926
918
|
type: Inject,
|
|
@@ -997,19 +989,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
997
989
|
}] } });
|
|
998
990
|
|
|
999
991
|
class InputCnpjComponent extends InputMaskComponent {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1003
|
-
this.optionProvider = optionProvider;
|
|
992
|
+
constructor() {
|
|
993
|
+
super();
|
|
1004
994
|
this.mask = '##.###.###/####-##';
|
|
1005
995
|
}
|
|
1006
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [
|
|
996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1007
997
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCnpjComponent, isStandalone: true, selector: "mcl-input[cnpj]", providers: [
|
|
1008
998
|
{
|
|
1009
999
|
provide: MatFormFieldControl,
|
|
1010
1000
|
useExisting: InputCnpjComponent
|
|
1011
1001
|
}
|
|
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:
|
|
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"] }] });
|
|
1013
1003
|
}
|
|
1014
1004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCnpjComponent, decorators: [{
|
|
1015
1005
|
type: Component,
|
|
@@ -1021,38 +1011,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1021
1011
|
provide: MatFormFieldControl,
|
|
1022
1012
|
useExisting: InputCnpjComponent
|
|
1023
1013
|
}
|
|
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
|
-
}] }] });
|
|
1014
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1015
|
+
}], ctorParameters: () => [] });
|
|
1041
1016
|
|
|
1042
1017
|
class InputCepComponent extends InputMaskComponent {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1046
|
-
this.optionProvider = optionProvider;
|
|
1018
|
+
constructor() {
|
|
1019
|
+
super();
|
|
1047
1020
|
this.mask = '##.###-###';
|
|
1048
1021
|
}
|
|
1049
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [
|
|
1022
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1050
1023
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCepComponent, isStandalone: true, selector: "mcl-input[cep]", providers: [
|
|
1051
1024
|
{
|
|
1052
1025
|
provide: MatFormFieldControl,
|
|
1053
1026
|
useExisting: InputCepComponent
|
|
1054
1027
|
}
|
|
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:
|
|
1028
|
+
], 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
1029
|
}
|
|
1057
1030
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCepComponent, decorators: [{
|
|
1058
1031
|
type: Component,
|
|
@@ -1064,23 +1037,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1064
1037
|
provide: MatFormFieldControl,
|
|
1065
1038
|
useExisting: InputCepComponent
|
|
1066
1039
|
}
|
|
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
|
-
}] }] });
|
|
1040
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1041
|
+
}], ctorParameters: () => [] });
|
|
1084
1042
|
|
|
1085
1043
|
class InputCpfCnpjComponent extends InputMaskComponent {
|
|
1086
1044
|
get value() {
|
|
@@ -1104,7 +1062,7 @@ class InputCpfCnpjComponent extends InputMaskComponent {
|
|
|
1104
1062
|
provide: MatFormFieldControl,
|
|
1105
1063
|
useExisting: InputCpfCnpjComponent
|
|
1106
1064
|
}
|
|
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:
|
|
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"] }] });
|
|
1108
1066
|
}
|
|
1109
1067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfCnpjComponent, decorators: [{
|
|
1110
1068
|
type: Component,
|
|
@@ -1116,23 +1074,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1116
1074
|
provide: MatFormFieldControl,
|
|
1117
1075
|
useExisting: InputCpfCnpjComponent
|
|
1118
1076
|
}
|
|
1119
|
-
], template: "<input matInput [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1077
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1120
1078
|
}] });
|
|
1121
1079
|
|
|
1122
1080
|
class InputCpfComponent extends InputMaskComponent {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1126
|
-
this.optionProvider = optionProvider;
|
|
1081
|
+
constructor() {
|
|
1082
|
+
super();
|
|
1127
1083
|
this.mask = '###.###.###-##';
|
|
1128
1084
|
}
|
|
1129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [
|
|
1085
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1130
1086
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputCpfComponent, isStandalone: true, selector: "mcl-input[cpf]", providers: [
|
|
1131
1087
|
{
|
|
1132
1088
|
provide: MatFormFieldControl,
|
|
1133
1089
|
useExisting: InputCpfComponent
|
|
1134
1090
|
}
|
|
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:
|
|
1091
|
+
], 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
1092
|
}
|
|
1137
1093
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputCpfComponent, decorators: [{
|
|
1138
1094
|
type: Component,
|
|
@@ -1144,28 +1100,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1144
1100
|
provide: MatFormFieldControl,
|
|
1145
1101
|
useExisting: InputCpfComponent
|
|
1146
1102
|
}
|
|
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
|
-
}] }] });
|
|
1103
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1104
|
+
}], ctorParameters: () => [] });
|
|
1164
1105
|
|
|
1165
1106
|
class InputPhoneComponent extends InputMaskComponent {
|
|
1166
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1167
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1168
|
-
}
|
|
1169
1107
|
applyMask(value) {
|
|
1170
1108
|
if (value) {
|
|
1171
1109
|
const unmasked = this.removeMask(value);
|
|
@@ -1178,13 +1116,13 @@ class InputPhoneComponent extends InputMaskComponent {
|
|
|
1178
1116
|
}
|
|
1179
1117
|
return super.applyMask(value);
|
|
1180
1118
|
}
|
|
1181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps:
|
|
1119
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1182
1120
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: InputPhoneComponent, isStandalone: true, selector: "mcl-input[phone]", providers: [
|
|
1183
1121
|
{
|
|
1184
1122
|
provide: MatFormFieldControl,
|
|
1185
1123
|
useExisting: InputPhoneComponent
|
|
1186
1124
|
}
|
|
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:
|
|
1125
|
+
], 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
1126
|
}
|
|
1189
1127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputPhoneComponent, decorators: [{
|
|
1190
1128
|
type: Component,
|
|
@@ -1196,16 +1134,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1196
1134
|
provide: MatFormFieldControl,
|
|
1197
1135
|
useExisting: InputPhoneComponent
|
|
1198
1136
|
}
|
|
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
|
-
}] }] });
|
|
1137
|
+
], template: "<input matInput [(ngModel)]=\"value\" #input\n [placeholder]=\"placeholder\"\n (focusin)=\"onTouched()\"/>\n" }]
|
|
1138
|
+
}] });
|
|
1209
1139
|
|
|
1210
1140
|
class OptionNode {
|
|
1211
1141
|
pool;
|
|
@@ -1400,7 +1330,7 @@ class AllOptionCheckboxComponent {
|
|
|
1400
1330
|
this.change.emit();
|
|
1401
1331
|
}
|
|
1402
1332
|
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:
|
|
1333
|
+
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
1334
|
}
|
|
1405
1335
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AllOptionCheckboxComponent, decorators: [{
|
|
1406
1336
|
type: Component,
|
|
@@ -1464,7 +1394,7 @@ class OptionCheckboxComponent {
|
|
|
1464
1394
|
this.fotonOptionCheckboxService.unregister(this.name, this.node);
|
|
1465
1395
|
}
|
|
1466
1396
|
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:
|
|
1397
|
+
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
1398
|
}
|
|
1469
1399
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: OptionCheckboxComponent, decorators: [{
|
|
1470
1400
|
type: Component,
|
|
@@ -1565,9 +1495,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1565
1495
|
}] } });
|
|
1566
1496
|
|
|
1567
1497
|
class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
1568
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1569
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1570
|
-
}
|
|
1571
1498
|
add(event) {
|
|
1572
1499
|
this.onTouched();
|
|
1573
1500
|
const value = event.value;
|
|
@@ -1603,13 +1530,13 @@ class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1603
1530
|
}
|
|
1604
1531
|
this.control.setValue('');
|
|
1605
1532
|
}
|
|
1606
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, deps:
|
|
1533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1607
1534
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: SelectChipsComponent, isStandalone: true, selector: "mcl-select-chips", providers: [
|
|
1608
1535
|
{
|
|
1609
1536
|
provide: MatFormFieldControl,
|
|
1610
1537
|
useExisting: SelectChipsComponent
|
|
1611
1538
|
}
|
|
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:
|
|
1539
|
+
], 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
1540
|
}
|
|
1614
1541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectChipsComponent, decorators: [{
|
|
1615
1542
|
type: Component,
|
|
@@ -1629,30 +1556,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1629
1556
|
useExisting: SelectChipsComponent
|
|
1630
1557
|
}
|
|
1631
1558
|
], 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
|
-
}] }] });
|
|
1559
|
+
}] });
|
|
1648
1560
|
|
|
1649
1561
|
class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
1650
1562
|
readonly;
|
|
1651
1563
|
select = new EventEmitter();
|
|
1652
1564
|
blur = new EventEmitter();
|
|
1653
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1654
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1655
|
-
}
|
|
1656
1565
|
get shouldLabelFloat() {
|
|
1657
1566
|
return this.focused || !this.empty;
|
|
1658
1567
|
}
|
|
@@ -1684,13 +1593,13 @@ class SelectAutocompleteComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1684
1593
|
this.control.enable();
|
|
1685
1594
|
}
|
|
1686
1595
|
}
|
|
1687
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, deps:
|
|
1596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1688
1597
|
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
1598
|
{
|
|
1690
1599
|
provide: MatFormFieldControl,
|
|
1691
1600
|
useExisting: SelectAutocompleteComponent
|
|
1692
1601
|
}
|
|
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:
|
|
1602
|
+
], 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
1603
|
}
|
|
1695
1604
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectAutocompleteComponent, decorators: [{
|
|
1696
1605
|
type: Component,
|
|
@@ -1707,22 +1616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1707
1616
|
useExisting: SelectAutocompleteComponent
|
|
1708
1617
|
}
|
|
1709
1618
|
], 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: [{
|
|
1619
|
+
}], propDecorators: { readonly: [{
|
|
1726
1620
|
type: Input
|
|
1727
1621
|
}], select: [{
|
|
1728
1622
|
type: Output
|
|
@@ -1769,8 +1663,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1769
1663
|
class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
1770
1664
|
layout = 'grid';
|
|
1771
1665
|
layoutColumns = 3;
|
|
1772
|
-
|
|
1773
|
-
|
|
1666
|
+
get shouldLabelFloat() {
|
|
1667
|
+
return true;
|
|
1774
1668
|
}
|
|
1775
1669
|
selected(value) {
|
|
1776
1670
|
return !!this.value?.find((v) => v === value);
|
|
@@ -1790,13 +1684,13 @@ class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
|
1790
1684
|
];
|
|
1791
1685
|
}
|
|
1792
1686
|
}
|
|
1793
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectManyCheckboxComponent, deps:
|
|
1687
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectManyCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1794
1688
|
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
1689
|
{
|
|
1796
1690
|
provide: MatFormFieldControl,
|
|
1797
1691
|
useExisting: SelectManyCheckboxComponent
|
|
1798
1692
|
}
|
|
1799
|
-
], usesInheritance: true, ngImport: i0, 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)
|
|
1693
|
+
], usesInheritance: true, ngImport: i0, 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 || 0) / 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"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "pipe", type: AsyncPipe, name: "async" }] });
|
|
1800
1694
|
}
|
|
1801
1695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectManyCheckboxComponent, decorators: [{
|
|
1802
1696
|
type: Component,
|
|
@@ -1810,23 +1704,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1810
1704
|
provide: MatFormFieldControl,
|
|
1811
1705
|
useExisting: SelectManyCheckboxComponent
|
|
1812
1706
|
}
|
|
1813
|
-
], 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)
|
|
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: [{
|
|
1707
|
+
], 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 || 0) / 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"] }]
|
|
1708
|
+
}], propDecorators: { layout: [{
|
|
1830
1709
|
type: Input
|
|
1831
1710
|
}], layoutColumns: [{
|
|
1832
1711
|
type: Input
|
|
@@ -1834,19 +1713,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1834
1713
|
|
|
1835
1714
|
class SelectRadioComponent extends AbstractMatFormFieldSelectControl {
|
|
1836
1715
|
layout = 'vertical';
|
|
1837
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider) {
|
|
1838
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup, optionProvider);
|
|
1839
|
-
}
|
|
1840
1716
|
get shouldLabelFloat() {
|
|
1841
1717
|
return true;
|
|
1842
1718
|
}
|
|
1843
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, deps:
|
|
1719
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1844
1720
|
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
1721
|
{
|
|
1846
1722
|
provide: MatFormFieldControl,
|
|
1847
1723
|
useExisting: SelectRadioComponent
|
|
1848
1724
|
}
|
|
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:
|
|
1725
|
+
], 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
1726
|
}
|
|
1851
1727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: SelectRadioComponent, decorators: [{
|
|
1852
1728
|
type: Component,
|
|
@@ -1862,22 +1738,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1862
1738
|
useExisting: SelectRadioComponent
|
|
1863
1739
|
}
|
|
1864
1740
|
], 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: [{
|
|
1741
|
+
}], propDecorators: { layout: [{
|
|
1881
1742
|
type: Input
|
|
1882
1743
|
}] } });
|
|
1883
1744
|
|
|
@@ -1888,9 +1749,6 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1888
1749
|
alwaysShowCountry = false;
|
|
1889
1750
|
telInput;
|
|
1890
1751
|
$innerValue;
|
|
1891
|
-
constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
|
|
1892
|
-
super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
|
|
1893
|
-
}
|
|
1894
1752
|
get value() {
|
|
1895
1753
|
return this.$innerValue;
|
|
1896
1754
|
}
|
|
@@ -1917,13 +1775,13 @@ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
|
|
|
1917
1775
|
writeValue(value) {
|
|
1918
1776
|
this.value = value;
|
|
1919
1777
|
}
|
|
1920
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, deps:
|
|
1778
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1921
1779
|
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
1780
|
{
|
|
1923
1781
|
provide: MatFormFieldControl,
|
|
1924
1782
|
useExisting: InputTelefoneInternacionalComponent
|
|
1925
1783
|
},
|
|
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:
|
|
1784
|
+
], 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
1785
|
}
|
|
1928
1786
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputTelefoneInternacionalComponent, decorators: [{
|
|
1929
1787
|
type: Component,
|
|
@@ -1937,15 +1795,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1937
1795
|
useExisting: InputTelefoneInternacionalComponent
|
|
1938
1796
|
},
|
|
1939
1797
|
], 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: [{
|
|
1798
|
+
}], propDecorators: { preferredContries: [{
|
|
1949
1799
|
type: Input
|
|
1950
1800
|
}], readonly: [{
|
|
1951
1801
|
type: Input
|