matcha-components 19.44.0 → 19.49.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/matcha-components.mjs +73 -15
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/lib/matcha-accordion/accordion-item/accordion-item.component.d.ts +2 -2
- package/lib/matcha-components.module.d.ts +2 -1
- package/lib/matcha-hint-text/hint/hint-text.component.d.ts +9 -0
- package/lib/matcha-hint-text/hint.module.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -659,7 +659,7 @@ class MatchaAccordionItemComponent {
|
|
|
659
659
|
constructor() {
|
|
660
660
|
this._stretch = false;
|
|
661
661
|
this._isOpen = false;
|
|
662
|
-
this.
|
|
662
|
+
this.opened = new EventEmitter();
|
|
663
663
|
}
|
|
664
664
|
set stretch(value) {
|
|
665
665
|
this._stretch = value != null && `${value}` !== 'false';
|
|
@@ -674,14 +674,14 @@ class MatchaAccordionItemComponent {
|
|
|
674
674
|
return this._isOpen;
|
|
675
675
|
}
|
|
676
676
|
ngOnInit() {
|
|
677
|
-
this.
|
|
677
|
+
this.opened.emit(this.isOpen);
|
|
678
678
|
}
|
|
679
679
|
toggleAccordion() {
|
|
680
680
|
this.isOpen = !this.isOpen;
|
|
681
|
-
this.
|
|
681
|
+
this.opened.emit(this.isOpen);
|
|
682
682
|
}
|
|
683
683
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaAccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
684
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: MatchaAccordionItemComponent, isStandalone: false, selector: "matcha-accordion-item", inputs: { stretch: "stretch", isOpen: "isOpen" }, outputs: {
|
|
684
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: MatchaAccordionItemComponent, isStandalone: false, selector: "matcha-accordion-item", inputs: { stretch: "stretch", isOpen: "isOpen" }, outputs: { opened: "opened" }, ngImport: i0, template: "<div class=\"accordion-item flex-column overflow-hidden\">\n <div class=\"accordion-header d-flex\">\n <div class=\"d-flex accordion-header-wrapper\" (click)=\"toggleAccordion()\">\n <ng-content select=\"matcha-accordion-header\"></ng-content>\n </div>\n </div>\n <div class=\"accordion-content overflow-hidden\" [@expandCollapse]=\"isOpen ? '*' : 'void'\">\n <ng-content select=\"matcha-accordion-content\"></ng-content>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [""], animations: [...createAnimations] }); }
|
|
685
685
|
}
|
|
686
686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaAccordionItemComponent, decorators: [{
|
|
687
687
|
type: Component,
|
|
@@ -690,7 +690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
690
690
|
type: Input
|
|
691
691
|
}], isOpen: [{
|
|
692
692
|
type: Input
|
|
693
|
-
}],
|
|
693
|
+
}], opened: [{
|
|
694
694
|
type: Output
|
|
695
695
|
}] } });
|
|
696
696
|
|
|
@@ -699,7 +699,6 @@ class MatchaAccordionComponent {
|
|
|
699
699
|
this._multiple = false;
|
|
700
700
|
this.openedChange = new EventEmitter();
|
|
701
701
|
}
|
|
702
|
-
// Se multiple for true, permite abrir vários itens simultaneamente.
|
|
703
702
|
set multiple(value) {
|
|
704
703
|
// Converte 'false' (string) ou false (boolean) para false, e qualquer outro valor para true.
|
|
705
704
|
this._multiple = value != null && `${value}` !== 'false';
|
|
@@ -709,8 +708,7 @@ class MatchaAccordionComponent {
|
|
|
709
708
|
}
|
|
710
709
|
ngAfterContentInit() {
|
|
711
710
|
this.items.forEach(item => {
|
|
712
|
-
item.
|
|
713
|
-
console.log('Accordion: Item toggled, isOpen:', isOpen);
|
|
711
|
+
item.opened.subscribe((isOpen) => {
|
|
714
712
|
this.toggleItem(item);
|
|
715
713
|
this.openedChange.emit(isOpen);
|
|
716
714
|
});
|
|
@@ -1778,6 +1776,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1778
1776
|
type: Input
|
|
1779
1777
|
}] } });
|
|
1780
1778
|
|
|
1779
|
+
class MatchaHintTextComponent {
|
|
1780
|
+
constructor() {
|
|
1781
|
+
this.type = 'error';
|
|
1782
|
+
this.size = 'tiny';
|
|
1783
|
+
}
|
|
1784
|
+
get iconName() {
|
|
1785
|
+
switch (this.type) {
|
|
1786
|
+
case 'warning': return 'action_sign_warning-out';
|
|
1787
|
+
case 'info': return 'info-out';
|
|
1788
|
+
case 'success': return 'action_done';
|
|
1789
|
+
default: return 'action_sign_warning-out';
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
get iconColor() {
|
|
1793
|
+
switch (this.type) {
|
|
1794
|
+
case 'warning': return 'yellow';
|
|
1795
|
+
case 'info': return 'blue';
|
|
1796
|
+
case 'success': return 'green';
|
|
1797
|
+
default: return 'red';
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1801
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: MatchaHintTextComponent, isStandalone: false, selector: "matcha-hint-text", inputs: { type: "type", size: "size" }, ngImport: i0, template: "<div class=\"d-flex gap-4\">\n <matcha-icon color=\"{{ iconColor }}\" name=\"{{ iconName }}\"> </matcha-icon>\n <span class=\"text\"><ng-content></ng-content></span>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }] }); }
|
|
1802
|
+
}
|
|
1803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextComponent, decorators: [{
|
|
1804
|
+
type: Component,
|
|
1805
|
+
args: [{ selector: 'matcha-hint-text', standalone: false, template: "<div class=\"d-flex gap-4\">\n <matcha-icon color=\"{{ iconColor }}\" name=\"{{ iconName }}\"> </matcha-icon>\n <span class=\"text\"><ng-content></ng-content></span>\n</div>\n" }]
|
|
1806
|
+
}], propDecorators: { type: [{
|
|
1807
|
+
type: Input,
|
|
1808
|
+
args: ['type']
|
|
1809
|
+
}], size: [{
|
|
1810
|
+
type: Input,
|
|
1811
|
+
args: ['size']
|
|
1812
|
+
}] } });
|
|
1813
|
+
|
|
1781
1814
|
class MatchaTooltipDirective {
|
|
1782
1815
|
constructor(el, renderer) {
|
|
1783
1816
|
this.el = el;
|
|
@@ -3255,6 +3288,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
3255
3288
|
}]
|
|
3256
3289
|
}] });
|
|
3257
3290
|
|
|
3291
|
+
class MatchaHintTextModule {
|
|
3292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3293
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextModule, declarations: [MatchaHintTextComponent], imports: [CommonModule,
|
|
3294
|
+
MatchaIconModule], exports: [MatchaHintTextComponent] }); }
|
|
3295
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextModule, imports: [CommonModule,
|
|
3296
|
+
MatchaIconModule] }); }
|
|
3297
|
+
}
|
|
3298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaHintTextModule, decorators: [{
|
|
3299
|
+
type: NgModule,
|
|
3300
|
+
args: [{
|
|
3301
|
+
declarations: [MatchaHintTextComponent],
|
|
3302
|
+
imports: [
|
|
3303
|
+
CommonModule,
|
|
3304
|
+
MatchaIconModule,
|
|
3305
|
+
],
|
|
3306
|
+
exports: [MatchaHintTextComponent],
|
|
3307
|
+
}]
|
|
3308
|
+
}] });
|
|
3309
|
+
|
|
3258
3310
|
class MatchaComponentsModule {
|
|
3259
3311
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3260
3312
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [CommonModule,
|
|
@@ -3298,7 +3350,8 @@ class MatchaComponentsModule {
|
|
|
3298
3350
|
MatchaTooltipModule,
|
|
3299
3351
|
MatchaTreeModule,
|
|
3300
3352
|
MatchaRippleModule,
|
|
3301
|
-
MatchaSpinModule
|
|
3353
|
+
MatchaSpinModule,
|
|
3354
|
+
MatchaHintTextModule], exports: [MatchaButtonGroupModule,
|
|
3302
3355
|
MatchaAccordionModule,
|
|
3303
3356
|
MatchaFormFieldModule,
|
|
3304
3357
|
MatchaInfiniteScrollModule,
|
|
@@ -3336,7 +3389,8 @@ class MatchaComponentsModule {
|
|
|
3336
3389
|
MatchaTooltipModule,
|
|
3337
3390
|
MatchaTreeModule,
|
|
3338
3391
|
MatchaRippleModule,
|
|
3339
|
-
MatchaSpinModule
|
|
3392
|
+
MatchaSpinModule,
|
|
3393
|
+
MatchaHintTextModule] }); }
|
|
3340
3394
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaComponentsModule, imports: [CommonModule,
|
|
3341
3395
|
FormsModule,
|
|
3342
3396
|
ReactiveFormsModule,
|
|
@@ -3378,7 +3432,8 @@ class MatchaComponentsModule {
|
|
|
3378
3432
|
MatchaTooltipModule,
|
|
3379
3433
|
MatchaTreeModule,
|
|
3380
3434
|
MatchaRippleModule,
|
|
3381
|
-
MatchaSpinModule,
|
|
3435
|
+
MatchaSpinModule,
|
|
3436
|
+
MatchaHintTextModule, MatchaButtonGroupModule,
|
|
3382
3437
|
MatchaAccordionModule,
|
|
3383
3438
|
MatchaFormFieldModule,
|
|
3384
3439
|
MatchaInfiniteScrollModule,
|
|
@@ -3416,7 +3471,8 @@ class MatchaComponentsModule {
|
|
|
3416
3471
|
MatchaTooltipModule,
|
|
3417
3472
|
MatchaTreeModule,
|
|
3418
3473
|
MatchaRippleModule,
|
|
3419
|
-
MatchaSpinModule
|
|
3474
|
+
MatchaSpinModule,
|
|
3475
|
+
MatchaHintTextModule] }); }
|
|
3420
3476
|
}
|
|
3421
3477
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MatchaComponentsModule, decorators: [{
|
|
3422
3478
|
type: NgModule,
|
|
@@ -3466,7 +3522,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
3466
3522
|
MatchaTooltipModule,
|
|
3467
3523
|
MatchaTreeModule,
|
|
3468
3524
|
MatchaRippleModule,
|
|
3469
|
-
MatchaSpinModule
|
|
3525
|
+
MatchaSpinModule,
|
|
3526
|
+
MatchaHintTextModule
|
|
3470
3527
|
],
|
|
3471
3528
|
exports: [
|
|
3472
3529
|
MatchaButtonGroupModule,
|
|
@@ -3507,7 +3564,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
3507
3564
|
MatchaTooltipModule,
|
|
3508
3565
|
MatchaTreeModule,
|
|
3509
3566
|
MatchaRippleModule,
|
|
3510
|
-
MatchaSpinModule
|
|
3567
|
+
MatchaSpinModule,
|
|
3568
|
+
MatchaHintTextModule
|
|
3511
3569
|
]
|
|
3512
3570
|
}]
|
|
3513
3571
|
}] });
|
|
@@ -3531,5 +3589,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
3531
3589
|
* Generated bundle index. Do not edit.
|
|
3532
3590
|
*/
|
|
3533
3591
|
|
|
3534
|
-
export { MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonComponent, MatchaButtonGroupComponent, MatchaButtonGroupModule, MatchaButtonItemComponent, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDatepickerDirective, MatchaDatepickerModule, MatchaDividerComponent, MatchaDividerModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaExpansionDirective, MatchaExpansionModule, MatchaFormFieldComponent, MatchaFormFieldDirective, MatchaFormFieldModule, MatchaFormsModule, MatchaGridComponent, MatchaGridModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaListDirective, MatchaListModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaPaginatorDirective, MatchaPaginatorModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioButtonDirective, MatchaRadioButtonModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectDirective, MatchaSelectModule, MatchaSidenavDirective, MatchaSidenavModule, MatchaSlideToggleDirective, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaTableDirective, MatchaTableModule, MatchaTabsDirective, MatchaTabsModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, MatchaTreeDirective, MatchaTreeModule };
|
|
3592
|
+
export { MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonComponent, MatchaButtonGroupComponent, MatchaButtonGroupModule, MatchaButtonItemComponent, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDatepickerDirective, MatchaDatepickerModule, MatchaDividerComponent, MatchaDividerModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaExpansionDirective, MatchaExpansionModule, MatchaFormFieldComponent, MatchaFormFieldDirective, MatchaFormFieldModule, MatchaFormsModule, MatchaGridComponent, MatchaGridModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaListDirective, MatchaListModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaPaginatorDirective, MatchaPaginatorModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioButtonDirective, MatchaRadioButtonModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectDirective, MatchaSelectModule, MatchaSidenavDirective, MatchaSidenavModule, MatchaSlideToggleDirective, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaTableDirective, MatchaTableModule, MatchaTabsDirective, MatchaTabsModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, MatchaTreeDirective, MatchaTreeModule };
|
|
3535
3593
|
//# sourceMappingURL=matcha-components.mjs.map
|