@main-class/componentes 3.2.9 → 3.3.0
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 +21 -3
- package/fesm2022/main-class-componentes-input.mjs.map +1 -1
- package/input/src/abstract-mat-form-field-select-control.d.ts +1 -0
- package/input/src/input-datetime/input-datetime.component.d.ts +2 -0
- package/input/src/select-chips/select-chips.component.d.ts +1 -0
- package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +1 -0
- package/input/src/select-radio/select-radio.component.d.ts +1 -0
- package/package.json +5 -5
- package/crud/index.d.ts +0 -7
- package/crud/src/abstract-consulta-paginada-component.d.ts +0 -24
- package/crud/src/abstract-edicao-component.d.ts +0 -19
- package/crud/src/abstract-edicao-modal-component.d.ts +0 -19
- package/crud/src/query/query-field/query-field.component.d.ts +0 -37
- package/crud/src/query/query-form-field/query-form-field.component.d.ts +0 -11
- package/crud/src/query/query-form.component.d.ts +0 -23
- package/crud/src/query/query-modal-form/query-modal-form.component.d.ts +0 -13
- package/fesm2022/main-class-componentes-crud.mjs +0 -458
- package/fesm2022/main-class-componentes-crud.mjs.map +0 -1
- package/fesm2022/main-class-componentes-pipe.mjs +0 -27
- package/fesm2022/main-class-componentes-pipe.mjs.map +0 -1
- package/pipe/index.d.ts +0 -1
- package/pipe/src/nome-resumido.pipe.d.ts +0 -7
|
@@ -204,6 +204,10 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
204
204
|
}));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
+
get shouldFilter() {
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
;
|
|
207
211
|
doTrackBy(val) {
|
|
208
212
|
if (this.optionProvider && this.optionProvider.trackBy) {
|
|
209
213
|
return this.optionProvider.trackBy(val);
|
|
@@ -215,7 +219,7 @@ class AbstractMatFormFieldSelectControl extends AbstractMatFormFieldControl {
|
|
|
215
219
|
}
|
|
216
220
|
ngAfterContentInit() {
|
|
217
221
|
this.filteredOptions = concat(of(''), this.control.valueChanges).pipe(debounceTime(300), switchMap(value => {
|
|
218
|
-
return (this.optionProvider || this.defaultOptionProvider).provide(value);
|
|
222
|
+
return (this.optionProvider || this.defaultOptionProvider).provide(this.shouldFilter ? value : '');
|
|
219
223
|
}));
|
|
220
224
|
this.optionsSubscription = this.options.changes.subscribe(() => {
|
|
221
225
|
if (this.value !== undefined && this.value !== null) {
|
|
@@ -434,6 +438,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
434
438
|
}] } });
|
|
435
439
|
|
|
436
440
|
class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
441
|
+
locale = inject(MAT_DATE_LOCALE);
|
|
437
442
|
formats = inject(MAT_DATETIME_FORMATS);
|
|
438
443
|
adapter = inject(DatetimeAdapter);
|
|
439
444
|
type = 'date';
|
|
@@ -443,6 +448,10 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
443
448
|
inputMask;
|
|
444
449
|
innerValue;
|
|
445
450
|
$maskedValue;
|
|
451
|
+
constructor() {
|
|
452
|
+
super();
|
|
453
|
+
this.adapter.setLocale(this.locale);
|
|
454
|
+
}
|
|
446
455
|
get input() {
|
|
447
456
|
return this.inputMask?.input;
|
|
448
457
|
}
|
|
@@ -520,7 +529,7 @@ class InputDatetimeComponent extends AbstractMatFormFieldControl {
|
|
|
520
529
|
}
|
|
521
530
|
this.stateChanges.next();
|
|
522
531
|
}
|
|
523
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps:
|
|
532
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: InputDatetimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
524
533
|
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: [
|
|
525
534
|
{
|
|
526
535
|
provide: MatFormFieldControl,
|
|
@@ -593,7 +602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
593
602
|
}
|
|
594
603
|
}
|
|
595
604
|
], template: "<div class=\"dateinput\">\n <mcl-input [disabled]=\"disabled\" [(ngModel)]=\"maskedValue\" [mask]=\"mask\" #inputMask\n (focusin)=\"focused = true\" (focusout)=\"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"] }]
|
|
596
|
-
}], propDecorators: { type: [{
|
|
605
|
+
}], ctorParameters: () => [], propDecorators: { type: [{
|
|
597
606
|
type: Input
|
|
598
607
|
}], readonly: [{
|
|
599
608
|
type: Input
|
|
@@ -1516,6 +1525,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1516
1525
|
}] } });
|
|
1517
1526
|
|
|
1518
1527
|
class SelectChipsComponent extends AbstractMatFormFieldSelectControl {
|
|
1528
|
+
get shouldFilter() {
|
|
1529
|
+
return false;
|
|
1530
|
+
}
|
|
1519
1531
|
add(event) {
|
|
1520
1532
|
this.onTouched();
|
|
1521
1533
|
const value = event.value;
|
|
@@ -1684,6 +1696,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1684
1696
|
class SelectManyCheckboxComponent extends AbstractMatFormFieldSelectControl {
|
|
1685
1697
|
layout = 'grid';
|
|
1686
1698
|
layoutColumns = 3;
|
|
1699
|
+
get shouldFilter() {
|
|
1700
|
+
return false;
|
|
1701
|
+
}
|
|
1687
1702
|
get shouldLabelFloat() {
|
|
1688
1703
|
return true;
|
|
1689
1704
|
}
|
|
@@ -1734,6 +1749,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1734
1749
|
|
|
1735
1750
|
class SelectRadioComponent extends AbstractMatFormFieldSelectControl {
|
|
1736
1751
|
layout = 'vertical';
|
|
1752
|
+
get shouldFilter() {
|
|
1753
|
+
return false;
|
|
1754
|
+
}
|
|
1737
1755
|
get shouldLabelFloat() {
|
|
1738
1756
|
return true;
|
|
1739
1757
|
}
|