matcha-components 20.13.0 → 20.16.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 +1959 -584
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +259 -29
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, HostBinding, Input, Component, ContentChildren, ElementRef, Renderer2, Inject, ViewChild, ContentChild, HostListener, Directive, forwardRef, ChangeDetectionStrategy, TemplateRef,
|
|
2
|
+
import { EventEmitter, Output, HostBinding, Input, Component, ContentChildren, ElementRef, Renderer2, Inject, PLATFORM_ID, Injectable, ViewChild, ContentChild, HostListener, Directive, forwardRef, ChangeDetectionStrategy, TemplateRef, Optional, ViewEncapsulation, NgModule, createComponent } from '@angular/core';
|
|
3
3
|
import { animation, style, animate, trigger, transition, useAnimation, state, query, stagger, animateChild, sequence, group } from '@angular/animations';
|
|
4
|
-
import { Subscription, Subject, BehaviorSubject, fromEvent } from 'rxjs';
|
|
5
|
-
import { debounceTime, filter } from 'rxjs/operators';
|
|
4
|
+
import { Subscription, Subject, BehaviorSubject, of, fromEvent } from 'rxjs';
|
|
5
|
+
import { debounceTime, startWith, map, distinctUntilChanged, takeUntil, filter } from 'rxjs/operators';
|
|
6
6
|
import * as i1 from '@angular/common';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
8
8
|
import { FormControlName, NG_VALUE_ACCESSOR, NgControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i1$1 from '@angular/common/http';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Token de injeção para MatchaOptionParent
|
|
@@ -408,10 +409,10 @@ class MatchaAccordionItemComponent {
|
|
|
408
409
|
// Emite evento para o accordion pai controlar o estado
|
|
409
410
|
this.toggleRequested.emit();
|
|
410
411
|
}
|
|
411
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
412
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
412
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
413
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAccordionItemComponent, isStandalone: false, selector: "matcha-accordion-item", inputs: { stretch: "stretch", clickableHeader: "clickableHeader", isOpen: "isOpen" }, outputs: { opened: "opened", toggleRequested: "toggleRequested" }, host: { properties: { "class.stretch": "this.stretchClass", "class.is-open": "this.isOpenClass" } }, usesOnChanges: true, 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\"\n [class.cursor-pointer]=\"clickableHeader\"\n (click)=\"clickableHeader ? toggleAccordion() : null\">\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] }); }
|
|
413
414
|
}
|
|
414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionItemComponent, decorators: [{
|
|
415
416
|
type: Component,
|
|
416
417
|
args: [{ selector: 'matcha-accordion-item', standalone: false, animations: [...createAnimations], template: "<div class=\"accordion-item flex-column overflow-hidden\">\n <div class=\"accordion-header d-flex\">\n <div class=\"d-flex accordion-header-wrapper\"\n [class.cursor-pointer]=\"clickableHeader\"\n (click)=\"clickableHeader ? toggleAccordion() : null\">\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" }]
|
|
417
418
|
}], propDecorators: { stretch: [{
|
|
@@ -482,10 +483,10 @@ class MatchaAccordionComponent {
|
|
|
482
483
|
});
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
486
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
487
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAccordionComponent, isStandalone: false, selector: "matcha-accordion", inputs: { multiple: "multiple" }, outputs: { openedChange: "openedChange" }, queries: [{ propertyName: "items", predicate: MatchaAccordionItemComponent }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
487
488
|
}
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionComponent, decorators: [{
|
|
489
490
|
type: Component,
|
|
490
491
|
args: [{ selector: 'matcha-accordion', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
491
492
|
}], propDecorators: { multiple: [{
|
|
@@ -499,19 +500,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
499
500
|
}] } });
|
|
500
501
|
|
|
501
502
|
class MatchaAccordionHeaderComponent {
|
|
502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
503
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
504
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAccordionHeaderComponent, isStandalone: false, selector: "matcha-accordion-header", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
504
505
|
}
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionHeaderComponent, decorators: [{
|
|
506
507
|
type: Component,
|
|
507
508
|
args: [{ selector: 'matcha-accordion-header', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
508
509
|
}] });
|
|
509
510
|
|
|
510
511
|
class MatchaAccordionContentComponent {
|
|
511
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
512
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
512
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
513
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAccordionContentComponent, isStandalone: false, selector: "matcha-accordion-content", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
513
514
|
}
|
|
514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionContentComponent, decorators: [{
|
|
515
516
|
type: Component,
|
|
516
517
|
args: [{ selector: 'matcha-accordion-content', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
517
518
|
}] });
|
|
@@ -550,10 +551,10 @@ class MatchaInfiniteScrollComponent {
|
|
|
550
551
|
ngOnDestroy() {
|
|
551
552
|
this.observer.disconnect();
|
|
552
553
|
}
|
|
553
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
554
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
555
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaInfiniteScrollComponent, isStandalone: false, selector: "matcha-infinite-scroll", outputs: { scrolledToEnd: "scrolledToEnd" }, ngImport: i0, template: "", styles: [""] }); }
|
|
555
556
|
}
|
|
556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollComponent, decorators: [{
|
|
557
558
|
type: Component,
|
|
558
559
|
args: [{ selector: 'matcha-infinite-scroll', standalone: false, template: "" }]
|
|
559
560
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { scrolledToEnd: [{
|
|
@@ -671,10 +672,10 @@ class MatchaInfiniteScrollDataComponent {
|
|
|
671
672
|
this.dataSubscription.unsubscribe();
|
|
672
673
|
this.searchSubscription.unsubscribe();
|
|
673
674
|
}
|
|
674
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
675
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollDataComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
676
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaInfiniteScrollDataComponent, isStandalone: false, selector: "matcha-infinite-scroll-data", inputs: { loadData: "loadData", initialList: "initialList", threshold: "threshold", resetKey: "resetKey", searchTerm: "searchTerm" }, outputs: { aggregatedData: "aggregatedData", exactMatch: "exactMatch" }, usesOnChanges: true, ngImport: i0, template: "", styles: ["", ":host{height:1px;opacity:0}\n"] }); }
|
|
676
677
|
}
|
|
677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollDataComponent, decorators: [{
|
|
678
679
|
type: Component,
|
|
679
680
|
args: [{ selector: 'matcha-infinite-scroll-data', standalone: false, template: "", styles: [":host{height:1px;opacity:0}\n"] }]
|
|
680
681
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { loadData: [{
|
|
@@ -727,10 +728,10 @@ class MatchaLazyloadComponent {
|
|
|
727
728
|
ngOnDestroy() {
|
|
728
729
|
this.observer.disconnect();
|
|
729
730
|
}
|
|
730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
731
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
731
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
732
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaLazyloadComponent, isStandalone: false, selector: "matcha-lazyload", outputs: { scrolledToEnd: "scrolledToEnd" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
732
733
|
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadComponent, decorators: [{
|
|
734
735
|
type: Component,
|
|
735
736
|
args: [{ selector: 'matcha-lazyload', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
736
737
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { scrolledToEnd: [{
|
|
@@ -854,10 +855,10 @@ class MatchaLazyloadDataComponent {
|
|
|
854
855
|
this.dataSubscription.unsubscribe();
|
|
855
856
|
this.searchSubscription.unsubscribe();
|
|
856
857
|
}
|
|
857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
858
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadDataComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
859
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaLazyloadDataComponent, isStandalone: false, selector: "matcha-lazyload-data", inputs: { loadData: "loadData", initialList: "initialList", threshold: "threshold", rootMargin: "rootMargin", resetKey: "resetKey", searchTerm: "searchTerm" }, outputs: { aggregatedData: "aggregatedData", exactMatch: "exactMatch" }, usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["", ":host{height:1px;opacity:0}\n"] }); }
|
|
859
860
|
}
|
|
860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadDataComponent, decorators: [{
|
|
861
862
|
type: Component,
|
|
862
863
|
args: [{ selector: 'matcha-lazyload-data', standalone: false, template: "<ng-content></ng-content>\n", styles: [":host{height:1px;opacity:0}\n"] }]
|
|
863
864
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { loadData: [{
|
|
@@ -1031,10 +1032,10 @@ class MatchaButtonComponent {
|
|
|
1031
1032
|
button.removeEventListener('click', this.addRippleEffect, false);
|
|
1032
1033
|
});
|
|
1033
1034
|
}
|
|
1034
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1035
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1035
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1036
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaButtonComponent, isStandalone: false, selector: "[matcha-button]", inputs: { size: "size", sizeXs: ["size-xs", "sizeXs"], sizeSm: ["size-sm", "sizeSm"], sizeMd: ["size-md", "sizeMd"], sizeLg: ["size-lg", "sizeLg"], sizeXl: ["size-xl", "sizeXl"], color: "color", basic: "basic", outline: "outline", alpha: "alpha", pill: "pill", link: "link", icon: "icon" }, host: { properties: { "attr.color": "this.colorAttr" } }, usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
1036
1037
|
}
|
|
1037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonComponent, decorators: [{
|
|
1038
1039
|
type: Component,
|
|
1039
1040
|
args: [{ selector: '[matcha-button]', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
1040
1041
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
@@ -1138,10 +1139,10 @@ class MatchaCardComponent {
|
|
|
1138
1139
|
hasBlockquotePosition() {
|
|
1139
1140
|
return this.blockquote === 'left' || this.blockquote === 'right';
|
|
1140
1141
|
}
|
|
1141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1142
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaCardComponent, isStandalone: false, selector: "matcha-card", inputs: { color: "color", blockquote: "blockquote", blockquoteColor: "blockquoteColor", class: "class", alpha: "alpha", tint: "tint", loading: "loading" }, host: { properties: { "attr.color": "this.colorAttr", "attr.alpha": "this.alphaAttr", "attr.tint": "this.tintAttr", "class": "this.classes" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
1143
1144
|
}
|
|
1144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardComponent, decorators: [{
|
|
1145
1146
|
type: Component,
|
|
1146
1147
|
args: [{ selector: 'matcha-card', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
1147
1148
|
}], propDecorators: { color: [{
|
|
@@ -1210,10 +1211,10 @@ class MatchaDividerComponent {
|
|
|
1210
1211
|
activeClasses += gapXl ? ` ${gapXl}` : '';
|
|
1211
1212
|
return activeClasses;
|
|
1212
1213
|
}
|
|
1213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1214
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1215
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDividerComponent, isStandalone: false, selector: "matcha-divider", inputs: { gap: "gap", gapSm: ["gap-sm", "gapSm"], gapMd: ["gap-md", "gapMd"], gapLg: ["gap-lg", "gapLg"], gapXl: ["gap-xl", "gapXl"], vertical: "vertical" }, ngImport: i0, template: "<div [class]=\"classes\"></div>\n", styles: [""] }); }
|
|
1215
1216
|
}
|
|
1216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerComponent, decorators: [{
|
|
1217
1218
|
type: Component,
|
|
1218
1219
|
args: [{ selector: 'matcha-divider', standalone: false, template: "<div [class]=\"classes\"></div>\n" }]
|
|
1219
1220
|
}], propDecorators: { gap: [{
|
|
@@ -1280,10 +1281,10 @@ class MatchaTitleComponent {
|
|
|
1280
1281
|
hasIconClickOutput() {
|
|
1281
1282
|
return this.iconClick.observers.length > 0;
|
|
1282
1283
|
}
|
|
1283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1284
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1284
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1285
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTitleComponent, isStandalone: false, selector: "matcha-title", inputs: { color: "color", size: "size", loading: "loading", type: "type", icon: "icon" }, outputs: { iconClick: "iconClick" }, ngImport: i0, template: "<!-- <matcha-title size=\"1\" type=\"bullet\"></matcha-title> -->\n\n<div class=\"d-flex flex-align-center m-0\">\n <span [class]=\"signClasses\" [class.cursor-pointer]=\"hasIconClickOutput()\" (click)=\"emitIconAction()\"></span>\n <span [class]=\"textClasses\">\n <ng-content></ng-content>\n </span>\n</div>\n", styles: [""] }); }
|
|
1285
1286
|
}
|
|
1286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleComponent, decorators: [{
|
|
1287
1288
|
type: Component,
|
|
1288
1289
|
args: [{ selector: 'matcha-title', standalone: false, template: "<!-- <matcha-title size=\"1\" type=\"bullet\"></matcha-title> -->\n\n<div class=\"d-flex flex-align-center m-0\">\n <span [class]=\"signClasses\" [class.cursor-pointer]=\"hasIconClickOutput()\" (click)=\"emitIconAction()\"></span>\n <span [class]=\"textClasses\">\n <ng-content></ng-content>\n </span>\n</div>\n" }]
|
|
1289
1290
|
}], propDecorators: { color: [{
|
|
@@ -1300,6 +1301,190 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
1300
1301
|
type: Output
|
|
1301
1302
|
}] } });
|
|
1302
1303
|
|
|
1304
|
+
/**
|
|
1305
|
+
* Serviço singleton para observação de breakpoints CSS
|
|
1306
|
+
* Funciona tanto no browser quanto no servidor (SSR)
|
|
1307
|
+
*/
|
|
1308
|
+
class MatchaBreakpointObserver {
|
|
1309
|
+
constructor(platformId) {
|
|
1310
|
+
this.platformId = platformId;
|
|
1311
|
+
this.breakpointSubject = new BehaviorSubject({
|
|
1312
|
+
matches: false,
|
|
1313
|
+
breakpoint: ''
|
|
1314
|
+
});
|
|
1315
|
+
this.currentBreakpoints = new Map();
|
|
1316
|
+
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
1317
|
+
if (this.isBrowser) {
|
|
1318
|
+
this.setupResizeListener();
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
ngOnDestroy() {
|
|
1322
|
+
if (this.resizeSubscription) {
|
|
1323
|
+
this.resizeSubscription.unsubscribe();
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Observa um breakpoint específico
|
|
1328
|
+
* @param breakpoint - String no formato CSS media query (ex: '(max-width: 768px)')
|
|
1329
|
+
* @returns Observable<BreakpointState>
|
|
1330
|
+
*/
|
|
1331
|
+
observe(breakpoint) {
|
|
1332
|
+
if (!this.isBrowser) {
|
|
1333
|
+
// No servidor, retorna um observable que emite false
|
|
1334
|
+
return of({ matches: false, breakpoint });
|
|
1335
|
+
}
|
|
1336
|
+
// Emite o estado inicial
|
|
1337
|
+
const initialState = this.getState(breakpoint);
|
|
1338
|
+
return this.breakpointSubject.asObservable().pipe(startWith(initialState), map(() => this.getState(breakpoint)), distinctUntilChanged((prev, curr) => prev.matches === curr.matches && prev.breakpoint === curr.breakpoint));
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Verifica se um breakpoint específico está ativo
|
|
1342
|
+
* @param breakpoint - String no formato CSS media query
|
|
1343
|
+
* @returns boolean
|
|
1344
|
+
*/
|
|
1345
|
+
isMatched(breakpoint) {
|
|
1346
|
+
if (!this.isBrowser) {
|
|
1347
|
+
return false;
|
|
1348
|
+
}
|
|
1349
|
+
return this.checkBreakpoint(breakpoint);
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Obtém o estado atual do breakpoint
|
|
1353
|
+
* @param breakpoint - String no formato CSS media query
|
|
1354
|
+
* @returns BreakpointState
|
|
1355
|
+
*/
|
|
1356
|
+
getState(breakpoint) {
|
|
1357
|
+
return {
|
|
1358
|
+
matches: this.isMatched(breakpoint),
|
|
1359
|
+
breakpoint
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Observa múltiplos breakpoints simultaneamente
|
|
1364
|
+
* @param breakpoints - Array de strings de breakpoints
|
|
1365
|
+
* @returns Observable<Map<string, boolean>>
|
|
1366
|
+
*/
|
|
1367
|
+
observeMultiple(breakpoints) {
|
|
1368
|
+
if (!this.isBrowser) {
|
|
1369
|
+
const emptyMap = new Map();
|
|
1370
|
+
breakpoints.forEach(bp => emptyMap.set(bp, false));
|
|
1371
|
+
return of(emptyMap);
|
|
1372
|
+
}
|
|
1373
|
+
return this.breakpointSubject.asObservable().pipe(startWith({ matches: false, breakpoint: '' }), map(() => {
|
|
1374
|
+
const result = new Map();
|
|
1375
|
+
breakpoints.forEach(bp => {
|
|
1376
|
+
result.set(bp, this.checkBreakpoint(bp));
|
|
1377
|
+
});
|
|
1378
|
+
return result;
|
|
1379
|
+
}), distinctUntilChanged((prev, curr) => {
|
|
1380
|
+
if (prev.size !== curr.size)
|
|
1381
|
+
return false;
|
|
1382
|
+
for (const [key, value] of prev) {
|
|
1383
|
+
if (curr.get(key) !== value)
|
|
1384
|
+
return false;
|
|
1385
|
+
}
|
|
1386
|
+
return true;
|
|
1387
|
+
}));
|
|
1388
|
+
}
|
|
1389
|
+
setupResizeListener() {
|
|
1390
|
+
if (!this.isBrowser)
|
|
1391
|
+
return;
|
|
1392
|
+
// Usa fromEvent para criar um observable do evento resize
|
|
1393
|
+
this.resizeSubscription = fromEvent(window, 'resize')
|
|
1394
|
+
.pipe(debounceTime(100) // Debounce para evitar muitas chamadas
|
|
1395
|
+
)
|
|
1396
|
+
.subscribe(() => {
|
|
1397
|
+
// Limpa o cache de breakpoints
|
|
1398
|
+
this.currentBreakpoints.clear();
|
|
1399
|
+
// Emite um novo evento para forçar reavaliação
|
|
1400
|
+
this.breakpointSubject.next({
|
|
1401
|
+
matches: false,
|
|
1402
|
+
breakpoint: ''
|
|
1403
|
+
});
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
checkBreakpoint(breakpoint) {
|
|
1407
|
+
if (!this.isBrowser)
|
|
1408
|
+
return false;
|
|
1409
|
+
// Verifica cache primeiro
|
|
1410
|
+
if (this.currentBreakpoints.has(breakpoint)) {
|
|
1411
|
+
return this.currentBreakpoints.get(breakpoint);
|
|
1412
|
+
}
|
|
1413
|
+
try {
|
|
1414
|
+
// Remove parênteses se existirem
|
|
1415
|
+
const cleanBreakpoint = breakpoint.replace(/[()]/g, '');
|
|
1416
|
+
// Extrai o valor numérico e a condição
|
|
1417
|
+
const match = cleanBreakpoint.match(/(max-width|min-width|max-height|min-height):\s*(\d+)px/);
|
|
1418
|
+
if (!match) {
|
|
1419
|
+
console.warn(`Breakpoint inválido: ${breakpoint}`);
|
|
1420
|
+
this.currentBreakpoints.set(breakpoint, false);
|
|
1421
|
+
return false;
|
|
1422
|
+
}
|
|
1423
|
+
const [, condition, value] = match;
|
|
1424
|
+
const numericValue = parseInt(value, 10);
|
|
1425
|
+
const windowWidth = window.innerWidth;
|
|
1426
|
+
const windowHeight = window.innerHeight;
|
|
1427
|
+
let result = false;
|
|
1428
|
+
switch (condition) {
|
|
1429
|
+
case 'max-width':
|
|
1430
|
+
result = windowWidth <= numericValue;
|
|
1431
|
+
break;
|
|
1432
|
+
case 'min-width':
|
|
1433
|
+
result = windowWidth >= numericValue;
|
|
1434
|
+
break;
|
|
1435
|
+
case 'max-height':
|
|
1436
|
+
result = windowHeight <= numericValue;
|
|
1437
|
+
break;
|
|
1438
|
+
case 'min-height':
|
|
1439
|
+
result = windowHeight >= numericValue;
|
|
1440
|
+
break;
|
|
1441
|
+
default:
|
|
1442
|
+
result = false;
|
|
1443
|
+
}
|
|
1444
|
+
// Armazena no cache
|
|
1445
|
+
this.currentBreakpoints.set(breakpoint, result);
|
|
1446
|
+
return result;
|
|
1447
|
+
}
|
|
1448
|
+
catch (error) {
|
|
1449
|
+
console.error('Erro ao verificar breakpoint:', error);
|
|
1450
|
+
this.currentBreakpoints.set(breakpoint, false);
|
|
1451
|
+
return false;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Método utilitário para criar breakpoints comuns
|
|
1456
|
+
*/
|
|
1457
|
+
static createBreakpoint(width, condition = 'max') {
|
|
1458
|
+
const prefix = condition === 'max' ? 'max-width' : 'min-width';
|
|
1459
|
+
return `(${prefix}: ${width}px)`;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Breakpoints pré-definidos para facilitar o uso
|
|
1463
|
+
*/
|
|
1464
|
+
static { this.BREAKPOINTS = {
|
|
1465
|
+
XS: '(max-width: 480px)',
|
|
1466
|
+
SM: '(max-width: 768px)',
|
|
1467
|
+
MD: '(max-width: 1024px)',
|
|
1468
|
+
LG: '(max-width: 1200px)',
|
|
1469
|
+
XL: '(max-width: 1440px)',
|
|
1470
|
+
MOBILE: '(max-width: 768px)',
|
|
1471
|
+
TABLET: '(min-width: 769px) and (max-width: 1024px)',
|
|
1472
|
+
DESKTOP: '(min-width: 1025px)'
|
|
1473
|
+
}; }
|
|
1474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObserver, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1475
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObserver, providedIn: 'root' // Singleton garantido pelo Angular
|
|
1476
|
+
}); }
|
|
1477
|
+
}
|
|
1478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObserver, decorators: [{
|
|
1479
|
+
type: Injectable,
|
|
1480
|
+
args: [{
|
|
1481
|
+
providedIn: 'root' // Singleton garantido pelo Angular
|
|
1482
|
+
}]
|
|
1483
|
+
}], ctorParameters: () => [{ type: Object, decorators: [{
|
|
1484
|
+
type: Inject,
|
|
1485
|
+
args: [PLATFORM_ID]
|
|
1486
|
+
}] }] });
|
|
1487
|
+
|
|
1303
1488
|
class MatchaDrawerComponent {
|
|
1304
1489
|
get drawerClasses() {
|
|
1305
1490
|
return `matcha-drawer matcha-drawer-${this.mode} matcha-drawer-${this.position} ${this.isOpen ? 'matcha-drawer-open' : 'matcha-drawer-closed'}`;
|
|
@@ -1315,12 +1500,13 @@ class MatchaDrawerComponent {
|
|
|
1315
1500
|
get drawerHeight() {
|
|
1316
1501
|
return '100vh';
|
|
1317
1502
|
}
|
|
1318
|
-
constructor(elementRef, renderer, cdr) {
|
|
1503
|
+
constructor(elementRef, renderer, cdr, breakpointObserver) {
|
|
1319
1504
|
this.elementRef = elementRef;
|
|
1320
1505
|
this.renderer = renderer;
|
|
1321
1506
|
this.cdr = cdr;
|
|
1507
|
+
this.breakpointObserver = breakpointObserver;
|
|
1322
1508
|
this.isOpen = false;
|
|
1323
|
-
this.mode = '
|
|
1509
|
+
this.mode = 'overlay';
|
|
1324
1510
|
this.position = 'left';
|
|
1325
1511
|
this.width = '300px';
|
|
1326
1512
|
this.hasBackdrop = true;
|
|
@@ -1329,22 +1515,45 @@ class MatchaDrawerComponent {
|
|
|
1329
1515
|
this.breakpoint = 1024;
|
|
1330
1516
|
this.elevation = 8;
|
|
1331
1517
|
this.hasFooter = false;
|
|
1518
|
+
// Novas propriedades para responsividade inteligente
|
|
1519
|
+
this.responsiveMode = true;
|
|
1520
|
+
this.mobileMode = 'overlay';
|
|
1521
|
+
this.desktopMode = 'push';
|
|
1522
|
+
this.mobileBreakpoint = 768;
|
|
1523
|
+
// 🎯 Nova propriedade para comportamento inteligente automático
|
|
1524
|
+
this.autoResponsive = true;
|
|
1332
1525
|
this.isOpenChange = new EventEmitter();
|
|
1333
1526
|
this.drawerToggle = new EventEmitter();
|
|
1334
1527
|
this.drawerOpened = new EventEmitter();
|
|
1335
1528
|
this.drawerClosed = new EventEmitter();
|
|
1336
1529
|
this.isMobile = false;
|
|
1337
1530
|
this.bodyScrollLocked = false;
|
|
1531
|
+
this.currentResponsiveMode = 'push';
|
|
1532
|
+
// 🎯 Subject para controlar resize com debounce
|
|
1533
|
+
this.resizeSubject = new Subject();
|
|
1338
1534
|
this.setupResizeObserver();
|
|
1535
|
+
this.setupResizeDebounce();
|
|
1339
1536
|
}
|
|
1340
1537
|
ngOnInit() {
|
|
1341
1538
|
this.checkScreenSize();
|
|
1342
1539
|
this.setupBodyScrollLock();
|
|
1540
|
+
// 🎯 Comportamento inteligente automático
|
|
1541
|
+
if (this.autoResponsive) {
|
|
1542
|
+
this.setupSmartInitialState();
|
|
1543
|
+
}
|
|
1544
|
+
if (this.responsiveMode) {
|
|
1545
|
+
this.setupResponsiveMode();
|
|
1546
|
+
}
|
|
1343
1547
|
}
|
|
1344
1548
|
ngOnDestroy() {
|
|
1345
1549
|
if (this.resizeObserver) {
|
|
1346
1550
|
this.resizeObserver.disconnect();
|
|
1347
1551
|
}
|
|
1552
|
+
if (this.breakpointSubscription) {
|
|
1553
|
+
this.breakpointSubscription.unsubscribe();
|
|
1554
|
+
}
|
|
1555
|
+
// 🎯 Limpeza do Subject
|
|
1556
|
+
this.resizeSubject.complete();
|
|
1348
1557
|
this.unlockBodyScroll();
|
|
1349
1558
|
}
|
|
1350
1559
|
setupResizeObserver() {
|
|
@@ -1357,6 +1566,13 @@ class MatchaDrawerComponent {
|
|
|
1357
1566
|
}
|
|
1358
1567
|
}
|
|
1359
1568
|
}
|
|
1569
|
+
// 🎯 Configuração do debounce para resize
|
|
1570
|
+
setupResizeDebounce() {
|
|
1571
|
+
this.resizeSubject.pipe(debounceTime(150) // Aguarda 150ms de estabilidade
|
|
1572
|
+
).subscribe((isMobile) => {
|
|
1573
|
+
this.updateDrawerStateOnResize();
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1360
1576
|
checkScreenSize() {
|
|
1361
1577
|
const wasMobile = this.isMobile;
|
|
1362
1578
|
this.isMobile = window.innerWidth < this.breakpoint;
|
|
@@ -1367,6 +1583,70 @@ class MatchaDrawerComponent {
|
|
|
1367
1583
|
}
|
|
1368
1584
|
}
|
|
1369
1585
|
}
|
|
1586
|
+
setupResponsiveMode() {
|
|
1587
|
+
const breakpoint = `(max-width: ${this.mobileBreakpoint}px)`;
|
|
1588
|
+
this.breakpointSubscription = this.breakpointObserver
|
|
1589
|
+
.observe(breakpoint)
|
|
1590
|
+
.subscribe((result) => {
|
|
1591
|
+
this.isMobile = result.matches;
|
|
1592
|
+
this.updateModeBasedOnScreen();
|
|
1593
|
+
this.cdr.detectChanges();
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
updateModeBasedOnScreen() {
|
|
1597
|
+
if (this.responsiveMode) {
|
|
1598
|
+
const newMode = this.isMobile ? this.mobileMode : this.desktopMode;
|
|
1599
|
+
if (newMode !== this.currentResponsiveMode) {
|
|
1600
|
+
this.currentResponsiveMode = newMode;
|
|
1601
|
+
// Apenas atualiza o modo se não foi definido manualmente
|
|
1602
|
+
if (this.mode === this.mobileMode || this.mode === this.desktopMode) {
|
|
1603
|
+
this.mode = newMode;
|
|
1604
|
+
}
|
|
1605
|
+
// 🎯 Comportamento dinâmico inteligente durante resize
|
|
1606
|
+
if (this.autoResponsive) {
|
|
1607
|
+
this.resizeSubject.next(this.isMobile);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
// 🎯 Método para atualizar estado do drawer durante resize
|
|
1613
|
+
updateDrawerStateOnResize() {
|
|
1614
|
+
// Só aplica a lógica se mobile = overlay e desktop = push
|
|
1615
|
+
if (this.mobileMode === 'overlay' && this.desktopMode === 'push') {
|
|
1616
|
+
const shouldBeOpen = !this.isMobile; // Desktop aberto, Mobile fechado
|
|
1617
|
+
if (this.isOpen !== shouldBeOpen) {
|
|
1618
|
+
// 🎯 SOLUÇÃO OBSERVABLE: Mudança de estado com debounce
|
|
1619
|
+
this.isOpen = shouldBeOpen;
|
|
1620
|
+
this.isOpenChange.emit(this.isOpen);
|
|
1621
|
+
// Configura o scroll lock se necessário
|
|
1622
|
+
if (this.isOpen && this.mode === 'overlay') {
|
|
1623
|
+
this.lockBodyScroll();
|
|
1624
|
+
}
|
|
1625
|
+
else if (!this.isOpen) {
|
|
1626
|
+
this.unlockBodyScroll();
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
// 🎯 Método para configurar estado inicial inteligente
|
|
1632
|
+
setupSmartInitialState() {
|
|
1633
|
+
// Verifica se está em mobile usando o breakpoint observer
|
|
1634
|
+
const isMobile = this.breakpointObserver.isMatched(MatchaBreakpointObserver.BREAKPOINTS.MOBILE);
|
|
1635
|
+
// Define o estado inicial baseado no dispositivo
|
|
1636
|
+
// Mobile: fechado, Desktop: aberto
|
|
1637
|
+
// Usa setTimeout para evitar o "piscar" visual
|
|
1638
|
+
setTimeout(() => {
|
|
1639
|
+
this.isOpen = !isMobile;
|
|
1640
|
+
// Emite o evento para notificar o componente pai
|
|
1641
|
+
this.isOpenChange.emit(this.isOpen);
|
|
1642
|
+
// Configura o scroll lock se necessário
|
|
1643
|
+
if (this.isOpen && this.mode === 'overlay') {
|
|
1644
|
+
this.lockBodyScroll();
|
|
1645
|
+
}
|
|
1646
|
+
// Força a detecção de mudanças
|
|
1647
|
+
this.cdr.detectChanges();
|
|
1648
|
+
}, 0);
|
|
1649
|
+
}
|
|
1370
1650
|
setupBodyScrollLock() {
|
|
1371
1651
|
if (this.mode === 'overlay' && this.isOpen) {
|
|
1372
1652
|
this.lockBodyScroll();
|
|
@@ -1451,13 +1731,32 @@ class MatchaDrawerComponent {
|
|
|
1451
1731
|
get isPushMode() {
|
|
1452
1732
|
return this.mode === 'push';
|
|
1453
1733
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1734
|
+
// Getter para o modo atual (considerando responsividade)
|
|
1735
|
+
get currentMode() {
|
|
1736
|
+
if (this.responsiveMode) {
|
|
1737
|
+
return this.isMobile ? this.mobileMode : this.desktopMode;
|
|
1738
|
+
}
|
|
1739
|
+
return this.mode;
|
|
1740
|
+
}
|
|
1741
|
+
// Getter para saber se está em modo mobile
|
|
1742
|
+
get isMobileView() {
|
|
1743
|
+
return this.isMobile;
|
|
1744
|
+
}
|
|
1745
|
+
// Getter para saber se está em modo responsivo
|
|
1746
|
+
get isResponsiveActive() {
|
|
1747
|
+
return this.responsiveMode;
|
|
1748
|
+
}
|
|
1749
|
+
// 🎯 Getter para saber se o modo automático está ativo
|
|
1750
|
+
get isAutoResponsiveActive() {
|
|
1751
|
+
return this.autoResponsive;
|
|
1752
|
+
}
|
|
1753
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: MatchaBreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1754
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDrawerComponent, isStandalone: false, selector: "matcha-drawer", inputs: { isOpen: "isOpen", mode: "mode", position: "position", width: "width", hasBackdrop: "hasBackdrop", disableClose: "disableClose", autoCloseOnMobile: "autoCloseOnMobile", breakpoint: "breakpoint", elevation: "elevation", hasFooter: "hasFooter", responsiveMode: "responsiveMode", mobileMode: "mobileMode", desktopMode: "desktopMode", mobileBreakpoint: "mobileBreakpoint", autoResponsive: "autoResponsive" }, outputs: { isOpenChange: "isOpenChange", drawerToggle: "drawerToggle", drawerOpened: "drawerOpened", drawerClosed: "drawerClosed" }, host: { properties: { "class": "this.drawerClasses", "style.width": "this.drawerWidth", "style.height": "this.drawerHeight" } }, viewQueries: [{ propertyName: "drawerContent", first: true, predicate: ["drawerContent"], descendants: true }], ngImport: i0, template: "<!-- Backdrop para modo overlay -->\n<div *ngIf=\"isOverlayMode && isOpen && hasBackdrop\"\n class=\"matcha-backdrop\"\n [@fadeInOut]=\"isOpen ? '1' : '0'\"\n (click)=\"onBackdropClick()\">\n</div>\n\n<!-- Drawer Container Principal -->\n<div *ngIf=\"(isOpen && mode === 'overlay') || mode === 'push'\"\n class=\"matcha-drawer-container\"\n [class.matcha-drawer-overlay-mode]=\"isOverlayMode\"\n [class.matcha-drawer-push-mode]=\"isPushMode\"\n [class.matcha-drawer-left]=\"position === 'left'\"\n [class.matcha-drawer-right]=\"position === 'right'\"\n [@slideInLeft]=\"animationState\"\n [style.transform]=\"getDrawerTransform()\"\n [style.width]=\"drawerWidth\"\n [style.overflow]=\"isOpen ? 'visible' : 'hidden'\"\n (keydown)=\"onKeyDown($event)\"\n tabindex=\"0\">\n\n <!-- Drawer Content -->\n <div class=\"matcha-drawer-content\"\n [style.min-width]=\"width\">\n\n <!-- Header do drawer -->\n <div class=\"matcha-drawer-header\">\n <ng-content select=\"[drawer-header]\"></ng-content>\n\n </div>\n\n <!-- Conte\u00FAdo principal do drawer -->\n <div class=\"matcha-drawer-main-content\">\n <ng-content select=\"[drawer-content]\"></ng-content>\n <ng-content></ng-content>\n </div>\n\n <!-- Footer do drawer -->\n <div *ngIf=\"hasFooter\" class=\"matcha-drawer-footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: createAnimations }); }
|
|
1456
1755
|
}
|
|
1457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerComponent, decorators: [{
|
|
1458
1757
|
type: Component,
|
|
1459
1758
|
args: [{ selector: 'matcha-drawer', animations: createAnimations, standalone: false, template: "<!-- Backdrop para modo overlay -->\n<div *ngIf=\"isOverlayMode && isOpen && hasBackdrop\"\n class=\"matcha-backdrop\"\n [@fadeInOut]=\"isOpen ? '1' : '0'\"\n (click)=\"onBackdropClick()\">\n</div>\n\n<!-- Drawer Container Principal -->\n<div *ngIf=\"(isOpen && mode === 'overlay') || mode === 'push'\"\n class=\"matcha-drawer-container\"\n [class.matcha-drawer-overlay-mode]=\"isOverlayMode\"\n [class.matcha-drawer-push-mode]=\"isPushMode\"\n [class.matcha-drawer-left]=\"position === 'left'\"\n [class.matcha-drawer-right]=\"position === 'right'\"\n [@slideInLeft]=\"animationState\"\n [style.transform]=\"getDrawerTransform()\"\n [style.width]=\"drawerWidth\"\n [style.overflow]=\"isOpen ? 'visible' : 'hidden'\"\n (keydown)=\"onKeyDown($event)\"\n tabindex=\"0\">\n\n <!-- Drawer Content -->\n <div class=\"matcha-drawer-content\"\n [style.min-width]=\"width\">\n\n <!-- Header do drawer -->\n <div class=\"matcha-drawer-header\">\n <ng-content select=\"[drawer-header]\"></ng-content>\n\n </div>\n\n <!-- Conte\u00FAdo principal do drawer -->\n <div class=\"matcha-drawer-main-content\">\n <ng-content select=\"[drawer-content]\"></ng-content>\n <ng-content></ng-content>\n </div>\n\n <!-- Footer do drawer -->\n <div *ngIf=\"hasFooter\" class=\"matcha-drawer-footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n</div>\n" }]
|
|
1460
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { isOpen: [{
|
|
1759
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: MatchaBreakpointObserver }], propDecorators: { isOpen: [{
|
|
1461
1760
|
type: Input
|
|
1462
1761
|
}], mode: [{
|
|
1463
1762
|
type: Input
|
|
@@ -1477,6 +1776,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
1477
1776
|
type: Input
|
|
1478
1777
|
}], hasFooter: [{
|
|
1479
1778
|
type: Input
|
|
1779
|
+
}], responsiveMode: [{
|
|
1780
|
+
type: Input
|
|
1781
|
+
}], mobileMode: [{
|
|
1782
|
+
type: Input
|
|
1783
|
+
}], desktopMode: [{
|
|
1784
|
+
type: Input
|
|
1785
|
+
}], mobileBreakpoint: [{
|
|
1786
|
+
type: Input
|
|
1787
|
+
}], autoResponsive: [{
|
|
1788
|
+
type: Input
|
|
1480
1789
|
}], isOpenChange: [{
|
|
1481
1790
|
type: Output
|
|
1482
1791
|
}], drawerToggle: [{
|
|
@@ -1523,10 +1832,10 @@ class MatchaDrawerContainerComponent {
|
|
|
1523
1832
|
});
|
|
1524
1833
|
}
|
|
1525
1834
|
}
|
|
1526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1527
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1835
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1836
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDrawerContainerComponent, isStandalone: false, selector: "matcha-drawer-container", inputs: { hasBackdrop: "hasBackdrop", autoFocus: "autoFocus" }, queries: [{ propertyName: "drawer", first: true, predicate: MatchaDrawerComponent, descendants: true }], ngImport: i0, template: "<div class=\"matcha-drawer-container-wrapper\">\n <ng-content></ng-content>\n</div>\n" }); }
|
|
1528
1837
|
}
|
|
1529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerContainerComponent, decorators: [{
|
|
1530
1839
|
type: Component,
|
|
1531
1840
|
args: [{ selector: 'matcha-drawer-container', standalone: false, template: "<div class=\"matcha-drawer-container-wrapper\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
1532
1841
|
}], propDecorators: { hasBackdrop: [{
|
|
@@ -1550,14 +1859,14 @@ class MatchaDrawerContentComponent {
|
|
|
1550
1859
|
get maxHeightStyle() {
|
|
1551
1860
|
return this.maxHeight;
|
|
1552
1861
|
}
|
|
1553
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1554
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1862
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1863
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDrawerContentComponent, isStandalone: false, selector: "matcha-drawer-content", inputs: { padding: "padding", scrollable: "scrollable", maxHeight: "maxHeight" }, host: { properties: { "class": "this.contentClasses", "style.max-height": "this.maxHeightStyle" } }, ngImport: i0, template: `
|
|
1555
1864
|
<div class="matcha-drawer-content-wrapper">
|
|
1556
1865
|
<ng-content></ng-content>
|
|
1557
1866
|
</div>
|
|
1558
1867
|
`, isInline: true }); }
|
|
1559
1868
|
}
|
|
1560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerContentComponent, decorators: [{
|
|
1561
1870
|
type: Component,
|
|
1562
1871
|
args: [{
|
|
1563
1872
|
selector: 'matcha-drawer-content',
|
|
@@ -1598,10 +1907,10 @@ class MatchaIconComponent {
|
|
|
1598
1907
|
const activeClasses = `${icon} ${color} ${size} ${loading} ${this.class}`;
|
|
1599
1908
|
return activeClasses;
|
|
1600
1909
|
}
|
|
1601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1602
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1910
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1911
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaIconComponent, isStandalone: false, selector: "matcha-icon", inputs: { name: "name", size: "size", color: "color", class: "class", loading: "loading" }, ngImport: i0, template: "<span [class]=\"classes\">\n <ng-content></ng-content>\n</span>\n", styles: [""] }); }
|
|
1603
1912
|
}
|
|
1604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconComponent, decorators: [{
|
|
1605
1914
|
type: Component,
|
|
1606
1915
|
args: [{ selector: 'matcha-icon', standalone: false, template: "<span [class]=\"classes\">\n <ng-content></ng-content>\n</span>\n" }]
|
|
1607
1916
|
}], propDecorators: { name: [{
|
|
@@ -1698,10 +2007,10 @@ class MatchaGridComponent {
|
|
|
1698
2007
|
this.setColspanClasses(this.colspan, this.breakpoint);
|
|
1699
2008
|
this.setRowspanClasses(this.rowspan, this.breakpoint);
|
|
1700
2009
|
}
|
|
1701
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1702
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2010
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2011
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaGridComponent, isStandalone: false, selector: "matcha-grid", inputs: { breakpoint: "breakpoint", col: "col", gap: "gap", class: "class", span: "span", rowspan: "rowspan", colspan: "colspan", direction: "direction", loading: "loading" }, usesOnChanges: true, ngImport: i0, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
1703
2012
|
}
|
|
1704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridComponent, decorators: [{
|
|
1705
2014
|
type: Component,
|
|
1706
2015
|
args: [{ selector: 'matcha-grid', standalone: false, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
1707
2016
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { breakpoint: [{
|
|
@@ -1761,10 +2070,10 @@ class MatchaMasonryComponent {
|
|
|
1761
2070
|
activeClasses += gapXl ? ` ${gapXl}` : '';
|
|
1762
2071
|
return activeClasses;
|
|
1763
2072
|
}
|
|
1764
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1765
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2073
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2074
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaMasonryComponent, isStandalone: false, selector: "matcha-masonry", inputs: { colSize: ["col", "colSize"], smColSize: ["col-sm", "smColSize"], mdColSize: ["col-md", "mdColSize"], lgColSize: ["col-lg", "lgColSize"], xlColSize: ["col-xl", "xlColSize"], gap: "gap", gapSm: ["gap-sm", "gapSm"], gapMd: ["gap-md", "gapMd"], gapLg: ["gap-lg", "gapLg"], gapXl: ["gap-xl", "gapXl"] }, ngImport: i0, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
1766
2075
|
}
|
|
1767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryComponent, decorators: [{
|
|
1768
2077
|
type: Component,
|
|
1769
2078
|
args: [{ selector: 'matcha-masonry', standalone: false, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
1770
2079
|
}], propDecorators: { colSize: [{
|
|
@@ -1800,19 +2109,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
1800
2109
|
}] } });
|
|
1801
2110
|
|
|
1802
2111
|
class MatchaModalContentComponent {
|
|
1803
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1804
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2113
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaModalContentComponent, isStandalone: false, selector: "matcha-modal-content", ngImport: i0, template: "\n<div class=\"py-24 pt-0 overflow-auto\" style=\"max-height: calc(100vh - 300px);\n\">\n <div class=\"matcha-card-flat matcha-background-transparent p-0 flex-column--force\">\n <div class=\"flex-column matcha-card-flat matcha-background-transparent px-24 py-0\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [""] }); }
|
|
1805
2114
|
}
|
|
1806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalContentComponent, decorators: [{
|
|
1807
2116
|
type: Component,
|
|
1808
2117
|
args: [{ selector: 'matcha-modal-content', standalone: false, template: "\n<div class=\"py-24 pt-0 overflow-auto\" style=\"max-height: calc(100vh - 300px);\n\">\n <div class=\"matcha-card-flat matcha-background-transparent p-0 flex-column--force\">\n <div class=\"flex-column matcha-card-flat matcha-background-transparent px-24 py-0\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n" }]
|
|
1809
2118
|
}] });
|
|
1810
2119
|
|
|
1811
2120
|
class MatchaModalHeaderComponent {
|
|
1812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1813
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaModalHeaderComponent, isStandalone: false, selector: "matcha-modal-header", ngImport: i0, template: "<!-- [@animate]=\"{ value: '*', params: { delay: '100ms' } }\" -->\n<!-- MATCHA CHECK -->\n<div class=\"matcha-section pt-16 px-16 pt-md-24 px-md-24\">\n <div class=\"d-flex flex-wrap flex-space-between mb-16 mb-md-24\">\n <div class=\"flex-space-between flex-align-center\">\n <ng-content></ng-content>\n </div>\n <div class=\"flex-row flex-end gap-8\">\n <ng-content select=\"matcha-modal-options\"></ng-content>\n </div>\n </div>\n <matcha-divider></matcha-divider>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaDividerComponent, selector: "matcha-divider", inputs: ["gap", "gap-sm", "gap-md", "gap-lg", "gap-xl", "vertical"] }] }); }
|
|
1814
2123
|
}
|
|
1815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalHeaderComponent, decorators: [{
|
|
1816
2125
|
type: Component,
|
|
1817
2126
|
args: [{ selector: 'matcha-modal-header', standalone: false, template: "<!-- [@animate]=\"{ value: '*', params: { delay: '100ms' } }\" -->\n<!-- MATCHA CHECK -->\n<div class=\"matcha-section pt-16 px-16 pt-md-24 px-md-24\">\n <div class=\"d-flex flex-wrap flex-space-between mb-16 mb-md-24\">\n <div class=\"flex-space-between flex-align-center\">\n <ng-content></ng-content>\n </div>\n <div class=\"flex-row flex-end gap-8\">\n <ng-content select=\"matcha-modal-options\"></ng-content>\n </div>\n </div>\n <matcha-divider></matcha-divider>\n</div>\n" }]
|
|
1818
2127
|
}] });
|
|
@@ -1838,10 +2147,10 @@ class MatchaModalFooterComponent {
|
|
|
1838
2147
|
}
|
|
1839
2148
|
});
|
|
1840
2149
|
}
|
|
1841
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1842
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2151
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaModalFooterComponent, isStandalone: false, selector: "matcha-modal-footer", inputs: { buttonType: ["", "buttonType"] }, ngImport: i0, template: "<div class=\"matcha-section pb-16 px-16 pb-md-24 px-md-24\">\n <matcha-divider></matcha-divider>\n <div class=\"flex-column flex-sm-row w-100-p flex-space-between gap-16\">\n <div class=\"flex-column flex-sm-row w-100-p flex-space-between mt-16 mt-md-24 gap-16\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaDividerComponent, selector: "matcha-divider", inputs: ["gap", "gap-sm", "gap-md", "gap-lg", "gap-xl", "vertical"] }] }); }
|
|
1843
2152
|
}
|
|
1844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalFooterComponent, decorators: [{
|
|
1845
2154
|
type: Component,
|
|
1846
2155
|
args: [{ selector: 'matcha-modal-footer', standalone: false, template: "<div class=\"matcha-section pb-16 px-16 pb-md-24 px-md-24\">\n <matcha-divider></matcha-divider>\n <div class=\"flex-column flex-sm-row w-100-p flex-space-between gap-16\">\n <div class=\"flex-column flex-sm-row w-100-p flex-space-between mt-16 mt-md-24 gap-16\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n" }]
|
|
1847
2156
|
}], propDecorators: { buttonType: [{
|
|
@@ -1850,10 +2159,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
1850
2159
|
}] } });
|
|
1851
2160
|
|
|
1852
2161
|
class MatchaModalOptionsComponent {
|
|
1853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1854
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalOptionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaModalOptionsComponent, isStandalone: false, selector: "matcha-modal-options", ngImport: i0, template: "<div class=\"flex-row gap-8\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
1855
2164
|
}
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalOptionsComponent, decorators: [{
|
|
1857
2166
|
type: Component,
|
|
1858
2167
|
args: [{ selector: 'matcha-modal-options', standalone: false, template: "<div class=\"flex-row gap-8\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
1859
2168
|
}] });
|
|
@@ -1892,10 +2201,10 @@ class MatchaModalComponent {
|
|
|
1892
2201
|
this.hasBackdrop = true;
|
|
1893
2202
|
this.backdropClass = '';
|
|
1894
2203
|
}
|
|
1895
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1896
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaModalComponent, isStandalone: false, selector: "matcha-modal", inputs: { size: "size", sizeXs: ["size-xs", "sizeXs"], sizeSm: ["size-sm", "sizeSm"], sizeMd: ["size-md", "sizeMd"], sizeLg: ["size-lg", "sizeLg"], sizeXl: ["size-xl", "sizeXl"], class: "class", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass" }, host: { properties: { "attr.size": "this.sizeAttr", "attr.size-xs": "this.sizeAttrXs", "arrt.size-sm": "this.sizeAttrSm", "attr.size-md": "this.sizeAttrMd", "attr.size-lg": "this.sizeAttrLg", "attr.size-xl": "this.sizeAttrXl", "class": "this.classes" } }, ngImport: i0, template: "<div class=\"background-surface elevation-z-4 flex-column matcha-modal radius-8\">\n <ng-content></ng-content>\n</div>", styles: [""] }); }
|
|
1897
2206
|
}
|
|
1898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalComponent, decorators: [{
|
|
1899
2208
|
type: Component,
|
|
1900
2209
|
args: [{ selector: 'matcha-modal', standalone: false, template: "<div class=\"background-surface elevation-z-4 flex-column matcha-modal radius-8\">\n <ng-content></ng-content>\n</div>" }]
|
|
1901
2210
|
}], ctorParameters: () => [], propDecorators: { size: [{
|
|
@@ -1974,10 +2283,10 @@ class MatchaMenuComponent {
|
|
|
1974
2283
|
toggleMenu() {
|
|
1975
2284
|
this.isOpen = !this.isOpen;
|
|
1976
2285
|
}
|
|
1977
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1978
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2287
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaMenuComponent, isStandalone: false, selector: "matcha-menu", inputs: { isParentMenu: "isParentMenu" }, host: { listeners: { "document:click": "handleOutsideClick($event)", "mouseleave": "handleMouseLeave($event)" } }, exportAs: ["matchaMenu"], ngImport: i0, template: "<div class=\"menu\" [ngClass]=\"{'show': isOpen}\">\n <ng-content></ng-content>\n </div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
1979
2288
|
}
|
|
1980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuComponent, decorators: [{
|
|
1981
2290
|
type: Component,
|
|
1982
2291
|
args: [{ selector: 'matcha-menu', exportAs: 'matchaMenu', standalone: false, template: "<div class=\"menu\" [ngClass]=\"{'show': isOpen}\">\n <ng-content></ng-content>\n </div>\n" }]
|
|
1983
2292
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
@@ -2020,10 +2329,10 @@ class MatchaToolbarComponent {
|
|
|
2020
2329
|
ngOnDestroy() {
|
|
2021
2330
|
clearTimeout(this.resizeTimeout);
|
|
2022
2331
|
}
|
|
2023
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2024
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaToolbarComponent, isStandalone: false, selector: "matcha-toolbar", inputs: { elevation: "elevation" }, host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0, template: "<!-- HOW TO USE:\n<matcha-toolbar>\n <matcha-title type=\"icon\" icon=\"settings-out\" (iconClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-NO-ICONE-AQUI\">\n {{'FINANCIAL.CATEGORY.TITLE' | translate}}\n </matcha-title>\n <search-form toolbar-form-field (searchText)=\"searchText($event)\"></search-form>\n <matcha-toolbar-button icon=\"home-out\" (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-button>\n <matcha-toolbar-content>\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-content>\n <matcha-toolbar-main-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-main-button>\n QUALQUER OUTRA FUNCIONALIDADE AQUI\n</matcha-toolbar>\n-->\n<ng-template #toolbarMainButton>\n <ng-content select=\"matcha-toolbar-main-button\"></ng-content>\n</ng-template>\n\n<ng-template #toolbarCustomButton>\n <ng-content select=\"matcha-toolbar-custom-button\"></ng-content>\n</ng-template>\n<!-- CONTENT HEADER -->\n<div class=\"flex-column background-surface radius-8\" [ngClass]=\"elevationClass\">\n <div class=\"flex-column flex-md-row flex-wrap p-16 flex-align-center flex-space-between h-auto min-h-40 flex-wrap\">\n <div class=\"w-100-p--force w-md-auto--force flex-space-between flex-wrap\">\n <div class=\"min-h-32 flex-center-center\">\n <ng-content select=\"matcha-title\"></ng-content>\n </div>\n <ng-container *ngIf=\"isMobileScreen\">\n <ng-container *ngTemplateOutlet=\"toolbarMainButton\"></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarCustomButton\"></ng-container>\n </ng-container>\n </div>\n <div class=\"w-100-p--force w-md-auto--force flex-row flex-end gap-8\">\n <!-- ISSO DEVE SER SUBSTITUIDO PELO matcha-input-search FOR IMPLEMENTADO -->\n <ng-content select=\"search-form\"></ng-content>\n <!-- /ISSO DEVE SER SUBSTITUIDO PELO matcha-input-search FOR IMPLEMENTADO -->\n <div class=\"flex-row gap-8\">\n <ng-content select=\"matcha-toolbar-button\"></ng-content>\n <ng-content select=\"matcha-toolbar-content\"></ng-content>\n <ng-content></ng-content>\n <ng-container *ngIf=\"!isMobileScreen\">\n <ng-container *ngTemplateOutlet=\"toolbarMainButton\"></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarCustomButton\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n<!-- / CONTENT HEADER -->\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
2025
2334
|
}
|
|
2026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarComponent, decorators: [{
|
|
2027
2336
|
type: Component,
|
|
2028
2337
|
args: [{ selector: 'matcha-toolbar', standalone: false, template: "<!-- HOW TO USE:\n<matcha-toolbar>\n <matcha-title type=\"icon\" icon=\"settings-out\" (iconClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-NO-ICONE-AQUI\">\n {{'FINANCIAL.CATEGORY.TITLE' | translate}}\n </matcha-title>\n <search-form toolbar-form-field (searchText)=\"searchText($event)\"></search-form>\n <matcha-toolbar-button icon=\"home-out\" (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-button>\n <matcha-toolbar-content>\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-content>\n <matcha-toolbar-main-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n </matcha-toolbar-main-button>\n QUALQUER OUTRA FUNCIONALIDADE AQUI\n</matcha-toolbar>\n-->\n<ng-template #toolbarMainButton>\n <ng-content select=\"matcha-toolbar-main-button\"></ng-content>\n</ng-template>\n\n<ng-template #toolbarCustomButton>\n <ng-content select=\"matcha-toolbar-custom-button\"></ng-content>\n</ng-template>\n<!-- CONTENT HEADER -->\n<div class=\"flex-column background-surface radius-8\" [ngClass]=\"elevationClass\">\n <div class=\"flex-column flex-md-row flex-wrap p-16 flex-align-center flex-space-between h-auto min-h-40 flex-wrap\">\n <div class=\"w-100-p--force w-md-auto--force flex-space-between flex-wrap\">\n <div class=\"min-h-32 flex-center-center\">\n <ng-content select=\"matcha-title\"></ng-content>\n </div>\n <ng-container *ngIf=\"isMobileScreen\">\n <ng-container *ngTemplateOutlet=\"toolbarMainButton\"></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarCustomButton\"></ng-container>\n </ng-container>\n </div>\n <div class=\"w-100-p--force w-md-auto--force flex-row flex-end gap-8\">\n <!-- ISSO DEVE SER SUBSTITUIDO PELO matcha-input-search FOR IMPLEMENTADO -->\n <ng-content select=\"search-form\"></ng-content>\n <!-- /ISSO DEVE SER SUBSTITUIDO PELO matcha-input-search FOR IMPLEMENTADO -->\n <div class=\"flex-row gap-8\">\n <ng-content select=\"matcha-toolbar-button\"></ng-content>\n <ng-content select=\"matcha-toolbar-content\"></ng-content>\n <ng-content></ng-content>\n <ng-container *ngIf=\"!isMobileScreen\">\n <ng-container *ngTemplateOutlet=\"toolbarMainButton\"></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarCustomButton\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n<!-- / CONTENT HEADER -->\n" }]
|
|
2029
2338
|
}], propDecorators: { elevation: [{
|
|
@@ -2045,10 +2354,10 @@ class MatchaToolbarButtonComponent {
|
|
|
2045
2354
|
emitButtonClick() {
|
|
2046
2355
|
this.buttonClick.emit();
|
|
2047
2356
|
}
|
|
2048
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2049
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2358
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaToolbarButtonComponent, isStandalone: false, selector: "matcha-toolbar-button", inputs: { icon: "icon" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<!-- HOW TO USE:\n<matcha-toolbar-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\" toolbar-button-tooltip=\"TOOLTIP-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n</matcha-toolbar-button>\n-->\n<button matcha-button outline=\"true\" size=\"small\" color=\"grey\" icon=\"true\" class=\"mt-16 mt-md-0\" (click)=\"emitButtonClick()\">\n <span [class]=\"classes\"></span>\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaButtonComponent, selector: "[matcha-button]", inputs: ["size", "size-xs", "size-sm", "size-md", "size-lg", "size-xl", "color", "basic", "outline", "alpha", "pill", "link", "icon"] }] }); }
|
|
2050
2359
|
}
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarButtonComponent, decorators: [{
|
|
2052
2361
|
type: Component,
|
|
2053
2362
|
args: [{ selector: 'matcha-toolbar-button', standalone: false, template: "<!-- HOW TO USE:\n<matcha-toolbar-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\" toolbar-button-tooltip=\"TOOLTIP-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n</matcha-toolbar-button>\n-->\n<button matcha-button outline=\"true\" size=\"small\" color=\"grey\" icon=\"true\" class=\"mt-16 mt-md-0\" (click)=\"emitButtonClick()\">\n <span [class]=\"classes\"></span>\n</button>\n" }]
|
|
2054
2363
|
}], propDecorators: { icon: [{
|
|
@@ -2059,10 +2368,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
2059
2368
|
}] } });
|
|
2060
2369
|
|
|
2061
2370
|
class MatchaToolbarContentComponent {
|
|
2062
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2063
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2372
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaToolbarContentComponent, isStandalone: false, selector: "matcha-toolbar-content", ngImport: i0, template: "<!-- HOW TO USE:\n<matcha-toolbar-content>\n OUTROS CONTEUDOS CUSTOMIZADOS NA TOOLBAR\n</matcha-toolbar-content>\n-->\n<div class=\"d-flex flex-wrap gap-8 mt-16 mt-md-0\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
2064
2373
|
}
|
|
2065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarContentComponent, decorators: [{
|
|
2066
2375
|
type: Component,
|
|
2067
2376
|
args: [{ selector: 'matcha-toolbar-content', standalone: false, template: "<!-- HOW TO USE:\n<matcha-toolbar-content>\n OUTROS CONTEUDOS CUSTOMIZADOS NA TOOLBAR\n</matcha-toolbar-content>\n-->\n<div class=\"d-flex flex-wrap gap-8 mt-16 mt-md-0\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
2068
2377
|
}] });
|
|
@@ -2074,10 +2383,10 @@ class MatchaToolbarMainButtonComponent {
|
|
|
2074
2383
|
emitButtonClick() {
|
|
2075
2384
|
this.buttonClick.emit();
|
|
2076
2385
|
}
|
|
2077
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2078
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarMainButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2387
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaToolbarMainButtonComponent, isStandalone: false, selector: "matcha-toolbar-main-button", outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<!-- HOW TO USE:\n<matcha-toolbar-main-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n</matcha-toolbar-main-button>\n-->\n<button matcha-button size=\"tiny\" size-md=\"small\" color=\"accent\" (click)=\"emitButtonClick()\">\n <span class=\"i-matcha-action_plus i-size-sm ml--4\"></span>\n <span class=\"ml-8 fs-14\">\n <ng-content></ng-content>\n </span>\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaButtonComponent, selector: "[matcha-button]", inputs: ["size", "size-xs", "size-sm", "size-md", "size-lg", "size-xl", "color", "basic", "outline", "alpha", "pill", "link", "icon"] }] }); }
|
|
2079
2388
|
}
|
|
2080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarMainButtonComponent, decorators: [{
|
|
2081
2390
|
type: Component,
|
|
2082
2391
|
args: [{ selector: 'matcha-toolbar-main-button', standalone: false, template: "<!-- HOW TO USE:\n<matcha-toolbar-main-button (buttonClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-AQUI\">\n TEXTO DO BOT\u00C3O AQUI\n</matcha-toolbar-main-button>\n-->\n<button matcha-button size=\"tiny\" size-md=\"small\" color=\"accent\" (click)=\"emitButtonClick()\">\n <span class=\"i-matcha-action_plus i-size-sm ml--4\"></span>\n <span class=\"ml-8 fs-14\">\n <ng-content></ng-content>\n </span>\n</button>\n" }]
|
|
2083
2392
|
}], propDecorators: { buttonClick: [{
|
|
@@ -2085,10 +2394,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
2085
2394
|
}] } });
|
|
2086
2395
|
|
|
2087
2396
|
class MatchaToolbarCustomButtonComponent {
|
|
2088
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2089
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarCustomButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2398
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaToolbarCustomButtonComponent, isStandalone: false, selector: "matcha-toolbar-custom-button", ngImport: i0, template: "<!-- HOW TO USE:\n<matcha-toolbar-custom-button>\n Bot\u00E3o customizado aqui\n</matcha-toolbar-custom-button>\n-->\n<ng-content></ng-content>\n", styles: [""] }); }
|
|
2090
2399
|
}
|
|
2091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarCustomButtonComponent, decorators: [{
|
|
2092
2401
|
type: Component,
|
|
2093
2402
|
args: [{ selector: 'matcha-toolbar-custom-button', standalone: false, template: "<!-- HOW TO USE:\n<matcha-toolbar-custom-button>\n Bot\u00E3o customizado aqui\n</matcha-toolbar-custom-button>\n-->\n<ng-content></ng-content>\n" }]
|
|
2094
2403
|
}] });
|
|
@@ -2109,12 +2418,12 @@ class MatchaFormFieldComponent {
|
|
|
2109
2418
|
get showError() {
|
|
2110
2419
|
return !!this.control?.invalid && (this.control?.touched || this.control?.dirty);
|
|
2111
2420
|
}
|
|
2112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2113
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2421
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2422
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaFormFieldComponent, isStandalone: false, selector: "matcha-form-field", inputs: { color: "color", size: "size", sizeXs: ["size-xs", "sizeXs"], sizeSm: ["size-sm", "sizeSm"], sizeMd: ["size-md", "sizeMd"], sizeLg: ["size-lg", "sizeLg"], sizeXl: ["size-xl", "sizeXl"] }, queries: [{ propertyName: "controlDir", first: true, predicate: FormControlName, descendants: true }], ngImport: i0, template: "<div class=\"flex-column gap-4\">\n <div class=\"matcha-form-field position-relative w-100-p min-h-40 flex-align-center\" #inputSelector>\n <div class=\"flex-row position-absolute w-100-p min-h-40 h-100-p\">\n <div class=\"matcha-form-field-border-start bl-2 bt-2 bb-2 radius-left-8 min-w-8 border-color-{{color}}\"></div>\n <div class=\"matcha-form-field-border-middle bb-2 w-auto border-color-{{color}}\">\n <ng-content select=\"matcha-label\"></ng-content>\n </div>\n <div class=\"matcha-form-field-border-end br-2 bt-2 bb-2 radius-right-8 w-100-p border-color-{{color}}\"></div>\n </div>\n <div class=\"flex-row position-relative py-8 px-12 gap-8 w-100-p\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-container *ngIf=\"showError\">\n <ng-content select=\"matcha-error\"></ng-content>\n </ng-container>\n <ng-content select=\"matcha-autocomplete\"></ng-content>\n</div>\n<ng-content select=\"matcha-hint-text\"></ng-content>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2114
2423
|
}
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldComponent, decorators: [{
|
|
2116
2425
|
type: Component,
|
|
2117
|
-
args: [{ selector: 'matcha-form-field', standalone: false, template: "<div class=\"flex-column gap-4\">\n <div class=\"matcha-form-field position-relative w-100-p min-h-40 flex-align-center\" #inputSelector>\n <div class=\"flex-row position-absolute w-100-p min-h-40 h-100-p\">\n <div class=\"bl-2 bt-2 bb-2 radius-left-8 min-w-8 border-color-{{color}}\"></div>\n <div class=\"bb-2 w-auto border-color-{{color}}\">\n <ng-content select=\"matcha-label\"></ng-content>\n </div>\n <div class=\"br-2 bt-2 bb-2 radius-right-8 w-100-p border-color-{{color}}\"></div>\n </div>\n <div class=\"flex-row position-relative py-8 px-12 gap-8 w-100-p\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-container *ngIf=\"showError\">\n <ng-content select=\"matcha-error\"></ng-content>\n </ng-container>\n <ng-content select=\"matcha-autocomplete\"></ng-content>\n</div>\n<ng-content select=\"matcha-hint-text\"></ng-content>\n" }]
|
|
2426
|
+
args: [{ selector: 'matcha-form-field', standalone: false, template: "<div class=\"flex-column gap-4\">\n <div class=\"matcha-form-field position-relative w-100-p min-h-40 flex-align-center\" #inputSelector>\n <div class=\"flex-row position-absolute w-100-p min-h-40 h-100-p\">\n <div class=\"matcha-form-field-border-start bl-2 bt-2 bb-2 radius-left-8 min-w-8 border-color-{{color}}\"></div>\n <div class=\"matcha-form-field-border-middle bb-2 w-auto border-color-{{color}}\">\n <ng-content select=\"matcha-label\"></ng-content>\n </div>\n <div class=\"matcha-form-field-border-end br-2 bt-2 bb-2 radius-right-8 w-100-p border-color-{{color}}\"></div>\n </div>\n <div class=\"flex-row position-relative py-8 px-12 gap-8 w-100-p\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-container *ngIf=\"showError\">\n <ng-content select=\"matcha-error\"></ng-content>\n </ng-container>\n <ng-content select=\"matcha-autocomplete\"></ng-content>\n</div>\n<ng-content select=\"matcha-hint-text\"></ng-content>\n" }]
|
|
2118
2427
|
}], propDecorators: { color: [{
|
|
2119
2428
|
type: Input
|
|
2120
2429
|
}], size: [{
|
|
@@ -2144,10 +2453,10 @@ class MatchaLabelComponent {
|
|
|
2144
2453
|
constructor() {
|
|
2145
2454
|
this.color = 'blue-grey';
|
|
2146
2455
|
}
|
|
2147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2148
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2456
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2457
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaLabelComponent, isStandalone: false, selector: "matcha-label", inputs: { color: "color" }, ngImport: i0, template: "<label\n class=\"d-flex d-flex-align-center position-relative text-nowrap px-4 fs-12 lh-18 fw-700 color-{{color}}\"\n style=\"transform: translateY(-8px);\">\n <ng-content></ng-content>\n <!-- <span class=\"pl-4 fs-10 fw-400 lh-16 matcha-color-placeholder\">*</span>\n <span class=\"pl-4 fs-10 fw-400 lh-16 matcha-color-placeholder\">(Opcional)</span> -->\n</label>", styles: [""] }); }
|
|
2149
2458
|
}
|
|
2150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLabelComponent, decorators: [{
|
|
2151
2460
|
type: Component,
|
|
2152
2461
|
args: [{ selector: 'matcha-label', standalone: false, template: "<label\n class=\"d-flex d-flex-align-center position-relative text-nowrap px-4 fs-12 lh-18 fw-700 color-{{color}}\"\n style=\"transform: translateY(-8px);\">\n <ng-content></ng-content>\n <!-- <span class=\"pl-4 fs-10 fw-400 lh-16 matcha-color-placeholder\">*</span>\n <span class=\"pl-4 fs-10 fw-400 lh-16 matcha-color-placeholder\">(Opcional)</span> -->\n</label>" }]
|
|
2153
2462
|
}], propDecorators: { color: [{
|
|
@@ -2155,10 +2464,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
2155
2464
|
}] } });
|
|
2156
2465
|
|
|
2157
2466
|
class MatchaErrorComponent {
|
|
2158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2467
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2468
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaErrorComponent, isStandalone: false, selector: "matcha-error", ngImport: i0, template: "<p class=\"w-100-p color-red fs-12 lh-16 flex-row flex-align-center gap-4 m-0\">\n <matcha-icon name=\"action_sign_warning-out\" size=\"sm\"></matcha-icon>\n <ng-content></ng-content>\n</p>", styles: [""], dependencies: [{ kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }] }); }
|
|
2160
2469
|
}
|
|
2161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaErrorComponent, decorators: [{
|
|
2162
2471
|
type: Component,
|
|
2163
2472
|
args: [{ selector: 'matcha-error', standalone: false, template: "<p class=\"w-100-p color-red fs-12 lh-16 flex-row flex-align-center gap-4 m-0\">\n <matcha-icon name=\"action_sign_warning-out\" size=\"sm\"></matcha-icon>\n <ng-content></ng-content>\n</p>" }]
|
|
2164
2473
|
}] });
|
|
@@ -2216,10 +2525,10 @@ class MatchaRippleDirective {
|
|
|
2216
2525
|
});
|
|
2217
2526
|
this.ripples = [];
|
|
2218
2527
|
}
|
|
2219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2220
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
2528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2529
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaRippleDirective, isStandalone: false, selector: "[matchaRipple]", inputs: { rippleColor: "rippleColor" }, host: { listeners: { "mousedown": "onMouseDown($event)" } }, ngImport: i0 }); }
|
|
2221
2530
|
}
|
|
2222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleDirective, decorators: [{
|
|
2223
2532
|
type: Directive,
|
|
2224
2533
|
args: [{
|
|
2225
2534
|
selector: '[matchaRipple]',
|
|
@@ -2284,8 +2593,8 @@ class MatchaCheckboxComponent {
|
|
|
2284
2593
|
this.checkedChange.emit(eventData);
|
|
2285
2594
|
this.change.emit(event);
|
|
2286
2595
|
}
|
|
2287
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2288
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2597
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaCheckboxComponent, isStandalone: false, selector: "matcha-checkbox", inputs: { color: "color", indeterminate: "indeterminate", disabled: "disabled", checked: "checked" }, outputs: { checkedChange: "checkedChange", change: "change" }, providers: [
|
|
2289
2598
|
{
|
|
2290
2599
|
provide: NG_VALUE_ACCESSOR,
|
|
2291
2600
|
useExisting: forwardRef(() => MatchaCheckboxComponent),
|
|
@@ -2293,7 +2602,7 @@ class MatchaCheckboxComponent {
|
|
|
2293
2602
|
}
|
|
2294
2603
|
], ngImport: i0, template: "<label\n class=\"matcha-checkbox flex-align-center\"\n [class.matcha-checkbox-disabled]=\"disabled\">\n <div\n class=\"matcha-checkbox-container w-40 h-40 max-w-40 max-h-40 min-w-40 min-h-40 flex-center-center radius-full cursor-pointer\"\n matchaRipple>\n <input\n type=\"checkbox\"\n class=\"matcha-checkbox-input\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [indeterminate]=\"indeterminate\"\n (change)=\"onInputChange($event)\">\n </div>\n\n <span class=\"matcha-checkbox-label fw-500 fs-16 lh-20\">\n <ng-content></ng-content>\n </span>\n</label>", styles: [""], dependencies: [{ kind: "directive", type: MatchaRippleDirective, selector: "[matchaRipple]", inputs: ["rippleColor"] }] }); }
|
|
2295
2604
|
}
|
|
2296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxComponent, decorators: [{
|
|
2297
2606
|
type: Component,
|
|
2298
2607
|
args: [{ selector: 'matcha-checkbox', standalone: false, providers: [
|
|
2299
2608
|
{
|
|
@@ -2364,12 +2673,15 @@ class MatchaRadioComponent {
|
|
|
2364
2673
|
return;
|
|
2365
2674
|
this.checked = true;
|
|
2366
2675
|
this.onTouched();
|
|
2676
|
+
// Emitir o valor correto para o ControlValueAccessor
|
|
2677
|
+
const outVal = this.value !== undefined ? this.value : this.checked;
|
|
2678
|
+
this.onChange(outVal);
|
|
2367
2679
|
const eventData = { checked: this.checked };
|
|
2368
2680
|
this.checkedChange.emit(eventData);
|
|
2369
2681
|
this.change.emit(event);
|
|
2370
2682
|
}
|
|
2371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2683
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2684
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaRadioComponent, isStandalone: false, selector: "matcha-radio", inputs: { color: "color", value: "value", name: "name", disabled: "disabled", checked: "checked" }, outputs: { checkedChange: "checkedChange", change: "change" }, providers: [
|
|
2373
2685
|
{
|
|
2374
2686
|
provide: NG_VALUE_ACCESSOR,
|
|
2375
2687
|
useExisting: forwardRef(() => MatchaRadioComponent),
|
|
@@ -2377,7 +2689,7 @@ class MatchaRadioComponent {
|
|
|
2377
2689
|
}
|
|
2378
2690
|
], ngImport: i0, template: "<label\n class=\"matcha-radio flex-align-center\"\n [class.matcha-radio-disabled]=\"disabled\">\n <div\n class=\"matcha-radio-container w-40 h-40 max-w-40 max-h-40 min-w-40 min-h-40 flex-center-center radius-full cursor-pointer\"\n matchaRipple>\n <input\n type=\"radio\"\n class=\"matcha-radio-input\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n (change)=\"onInputChange($event)\">\n </div>\n\n <span class=\"matcha-radio-label fw-500 lh-20\">\n <ng-content></ng-content>\n </span>\n</label>", styles: [""], dependencies: [{ kind: "directive", type: MatchaRippleDirective, selector: "[matchaRipple]", inputs: ["rippleColor"] }] }); }
|
|
2379
2691
|
}
|
|
2380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioComponent, decorators: [{
|
|
2381
2693
|
type: Component,
|
|
2382
2694
|
args: [{ selector: 'matcha-radio', standalone: false, providers: [
|
|
2383
2695
|
{
|
|
@@ -2449,10 +2761,10 @@ class MatchaSpinComponent {
|
|
|
2449
2761
|
const progress = Math.min(Math.max(Number(this.progress), 0), 100);
|
|
2450
2762
|
return this.circumference - (progress / 100) * this.circumference;
|
|
2451
2763
|
}
|
|
2452
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2453
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2764
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2765
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSpinComponent, isStandalone: false, selector: "matcha-spin", inputs: { progress: "progress", color: "color", size: "size", sizeXs: ["size-xs", "sizeXs"], sizeSm: ["size-sm", "sizeSm"], sizeMd: ["size-md", "sizeMd"], sizeLg: ["size-lg", "sizeLg"], sizeXl: ["size-xl", "sizeXl"] }, ngImport: i0, template: "<div\n class=\"matcha-spin\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"progress\"\n>\n <svg [attr.viewBox]=\"'0 0 ' + diameter + ' ' + diameter\">\n <circle\n class=\"spin-placeholder\"\n [attr.cx]=\"diameter / 2\"\n [attr.cy]=\"diameter / 2\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n <circle\n class=\"spin-progress\"\n [attr.cx]=\"diameter / 2\"\n [attr.cy]=\"diameter / 2\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n [attr.stroke]=\"color\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"progress ? dashOffset : null\"\n />\n </svg>\n</div>\n", styles: [""] }); }
|
|
2454
2766
|
}
|
|
2455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinComponent, decorators: [{
|
|
2456
2768
|
type: Component,
|
|
2457
2769
|
args: [{ selector: 'matcha-spin', standalone: false, template: "<div\n class=\"matcha-spin\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"progress\"\n>\n <svg [attr.viewBox]=\"'0 0 ' + diameter + ' ' + diameter\">\n <circle\n class=\"spin-placeholder\"\n [attr.cx]=\"diameter / 2\"\n [attr.cy]=\"diameter / 2\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n <circle\n class=\"spin-progress\"\n [attr.cx]=\"diameter / 2\"\n [attr.cy]=\"diameter / 2\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n [attr.stroke]=\"color\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"progress ? dashOffset : null\"\n />\n </svg>\n</div>\n" }]
|
|
2458
2770
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
@@ -2534,10 +2846,10 @@ class MatchaSpinnerComponent {
|
|
|
2534
2846
|
const progress = Math.min(Math.max(Number(this.progress), 0), 100);
|
|
2535
2847
|
return this.circumference - (progress / 100) * this.circumference;
|
|
2536
2848
|
}
|
|
2537
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2538
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2849
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2850
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSpinnerComponent, isStandalone: false, selector: "matcha-spinner", inputs: { progress: "progress", color: "color", size: "size", sizeXs: ["size-xs", "sizeXs"], sizeSm: ["size-sm", "sizeSm"], sizeMd: ["size-md", "sizeMd"], sizeLg: ["size-lg", "sizeLg"], sizeXl: ["size-xl", "sizeXl"] }, host: { properties: { "attr.progress": "this._progress", "attr.color": "this._color", "attr.size": "this.hostSize" } }, ngImport: i0, template: "<div\n class=\"matcha-spinner\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"progress\"\n>\n <svg [attr.viewBox]=\"'0 0 ' + diameter + ' ' + diameter\" class=\"spinner\">\n <circle\n class=\"spinner-placeholder\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n stroke-linecap=\"round\"\n />\n <circle\n class=\"spinner-progress path\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n [attr.stroke]=\"color\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"dashOffset\"\n stroke-linecap=\"round\"\n />\n </svg>\n</div>\n", styles: [""] }); }
|
|
2539
2851
|
}
|
|
2540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerComponent, decorators: [{
|
|
2541
2853
|
type: Component,
|
|
2542
2854
|
args: [{ selector: 'matcha-spinner', standalone: false, template: "<div\n class=\"matcha-spinner\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"progress\"\n>\n <svg [attr.viewBox]=\"'0 0 ' + diameter + ' ' + diameter\" class=\"spinner\">\n <circle\n class=\"spinner-placeholder\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n stroke-linecap=\"round\"\n />\n <circle\n class=\"spinner-progress path\"\n [attr.cx]=\"center\"\n [attr.cy]=\"center\"\n [attr.r]=\"radius\"\n [attr.stroke-width]=\"strokeWidth\"\n [attr.stroke]=\"color\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"dashOffset\"\n stroke-linecap=\"round\"\n />\n </svg>\n</div>\n" }]
|
|
2543
2855
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
@@ -2600,10 +2912,10 @@ class MatchaHintTextComponent {
|
|
|
2600
2912
|
default: return 'red';
|
|
2601
2913
|
}
|
|
2602
2914
|
}
|
|
2603
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2604
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2915
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2916
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaHintTextComponent, isStandalone: false, selector: "matcha-hint-text", inputs: { type: "type", size: "size" }, ngImport: i0, template: "<div class=\"d-flex flex-align-center 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"] }] }); }
|
|
2605
2917
|
}
|
|
2606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextComponent, decorators: [{
|
|
2607
2919
|
type: Component,
|
|
2608
2920
|
args: [{ selector: 'matcha-hint-text', standalone: false, template: "<div class=\"d-flex flex-align-center gap-4\">\n <matcha-icon color=\"{{ iconColor }}\" name=\"{{ iconName }}\"> </matcha-icon>\n <span class=\"text\"><ng-content></ng-content></span>\n</div>\n" }]
|
|
2609
2921
|
}], propDecorators: { type: [{
|
|
@@ -2634,22 +2946,46 @@ class MatchaSkeletonComponent {
|
|
|
2634
2946
|
get heightClass() {
|
|
2635
2947
|
return `h-${this.height}`;
|
|
2636
2948
|
}
|
|
2637
|
-
|
|
2638
|
-
|
|
2949
|
+
get amountArray() {
|
|
2950
|
+
const amountNumber = typeof this.amount === 'string' ? parseInt(this.amount) : this.amount;
|
|
2951
|
+
return Array(amountNumber).fill(0).map((_, index) => index);
|
|
2952
|
+
}
|
|
2953
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2954
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSkeletonComponent, isStandalone: false, selector: "matcha-skeleton", inputs: { amount: "amount", grid: "grid", height: "height", model: "model", gap: "gap" }, host: { properties: { "attr.amount": "this.amount", "attr.grid": "this.grid", "attr.height": "this.height", "attr.model": "this.model", "attr.gap": "this.gap" } }, ngImport: i0, template: "<ng-content></ng-content>\n<!-- CARD SKELETON -->\n<div [class]=\"classes\" *ngIf=\"model !== 'table'\">\n <div class=\"skeleton-animated-background flex-column--force p-0 radius-8 user-select-none overflow-hidden\" *ngFor=\"let i of amountArray\">\n\n <ng-container *ngIf=\"model === 'profile'\"><span class=\"h8 title p-16 m-0\"> <span class=\"radius-full background-surface-alpha h-48 w-48\"></span> </span></ng-container>\n\n <div [class]=\"'h-'+ height + ' flex-column--force p-16 background-bg-alpha'\"></div>\n\n <ng-container *ngIf=\"model === 'profile'\">\n <div class=\"flex-column--force\">\n <div class=\"flex-column--force p-16 gap-16\">\n <div class=\"w-100-p h-16 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p h-16 background-surface-alpha radius-full\"></div>\n </div>\n </div>\n </ng-container>\n\n </div>\n</div>\n<!-- CARD SKELETON -->\n\n<!-- TABLE SKELETON -->\n<div class=\"skeleton-animated-background w-100-p mr-16 flex-column--force p-0 radius-8 user-select-none\" *ngIf=\"model === 'table'\">\n\n <div class=\"flex-column--force h-64 background-surface-alpha\">\n <ng-container> </ng-container>\n </div>\n\n <ng-container *ngFor=\"let i of amountArray\">\n <div class=\"grid-4 h-80 px-16 gap-16 flex-align-center--force\">\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"min-h-48 min-w-48 h-48 w-48 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n </div>\n\n <div class=\"grid-4 h-80 px-16 gap-16 flex-align-center--force background-bg-alpha\">\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"min-h-48 min-w-48 h-48 w-48 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-30-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n </div>\n\n </ng-container>\n\n</div>\n<!-- TABLE SKELETON -->\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2639
2955
|
}
|
|
2640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonComponent, decorators: [{
|
|
2641
2957
|
type: Component,
|
|
2642
|
-
args: [{ selector: 'matcha-skeleton', standalone: false, template: "<ng-content></ng-content>\n<!-- CARD SKELETON -->\n<div [class]=\"classes\" *ngIf=\"model !== 'table'\">\n <div class=\"skeleton-animated-background flex-column--force p-0 radius-8 user-select-none overflow-hidden\" *ngFor=\"let i of
|
|
2958
|
+
args: [{ selector: 'matcha-skeleton', standalone: false, template: "<ng-content></ng-content>\n<!-- CARD SKELETON -->\n<div [class]=\"classes\" *ngIf=\"model !== 'table'\">\n <div class=\"skeleton-animated-background flex-column--force p-0 radius-8 user-select-none overflow-hidden\" *ngFor=\"let i of amountArray\">\n\n <ng-container *ngIf=\"model === 'profile'\"><span class=\"h8 title p-16 m-0\"> <span class=\"radius-full background-surface-alpha h-48 w-48\"></span> </span></ng-container>\n\n <div [class]=\"'h-'+ height + ' flex-column--force p-16 background-bg-alpha'\"></div>\n\n <ng-container *ngIf=\"model === 'profile'\">\n <div class=\"flex-column--force\">\n <div class=\"flex-column--force p-16 gap-16\">\n <div class=\"w-100-p h-16 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p h-16 background-surface-alpha radius-full\"></div>\n </div>\n </div>\n </ng-container>\n\n </div>\n</div>\n<!-- CARD SKELETON -->\n\n<!-- TABLE SKELETON -->\n<div class=\"skeleton-animated-background w-100-p mr-16 flex-column--force p-0 radius-8 user-select-none\" *ngIf=\"model === 'table'\">\n\n <div class=\"flex-column--force h-64 background-surface-alpha\">\n <ng-container> </ng-container>\n </div>\n\n <ng-container *ngFor=\"let i of amountArray\">\n <div class=\"grid-4 h-80 px-16 gap-16 flex-align-center--force\">\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"min-h-48 min-w-48 h-48 w-48 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n </div>\n\n <div class=\"grid-4 h-80 px-16 gap-16 flex-align-center--force background-bg-alpha\">\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"min-h-48 min-w-48 h-48 w-48 background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-30-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n <div class=\"w-100-p flex-row--force gap-16\">\n <div class=\"w-100-p flex-column--force flex-center--force gap-16\">\n <div class=\"h-16 w-60-p background-surface-alpha radius-full\"></div>\n <div class=\"h-16 w-100-p background-surface-alpha radius-full\"></div>\n </div>\n </div>\n <div class=\"h-16 w-100-p flex-column--force background-surface-alpha radius-full\"></div>\n </div>\n\n </ng-container>\n\n</div>\n<!-- TABLE SKELETON -->\n" }]
|
|
2643
2959
|
}], propDecorators: { amount: [{
|
|
2644
|
-
type: Input
|
|
2960
|
+
type: Input,
|
|
2961
|
+
args: ['amount']
|
|
2962
|
+
}, {
|
|
2963
|
+
type: HostBinding,
|
|
2964
|
+
args: ['attr.amount']
|
|
2645
2965
|
}], grid: [{
|
|
2646
|
-
type: Input
|
|
2966
|
+
type: Input,
|
|
2967
|
+
args: ['grid']
|
|
2968
|
+
}, {
|
|
2969
|
+
type: HostBinding,
|
|
2970
|
+
args: ['attr.grid']
|
|
2647
2971
|
}], height: [{
|
|
2648
|
-
type: Input
|
|
2972
|
+
type: Input,
|
|
2973
|
+
args: ['height']
|
|
2974
|
+
}, {
|
|
2975
|
+
type: HostBinding,
|
|
2976
|
+
args: ['attr.height']
|
|
2649
2977
|
}], model: [{
|
|
2650
|
-
type: Input
|
|
2978
|
+
type: Input,
|
|
2979
|
+
args: ['model']
|
|
2980
|
+
}, {
|
|
2981
|
+
type: HostBinding,
|
|
2982
|
+
args: ['attr.model']
|
|
2651
2983
|
}], gap: [{
|
|
2652
|
-
type: Input
|
|
2984
|
+
type: Input,
|
|
2985
|
+
args: ['gap']
|
|
2986
|
+
}, {
|
|
2987
|
+
type: HostBinding,
|
|
2988
|
+
args: ['attr.gap']
|
|
2653
2989
|
}] } });
|
|
2654
2990
|
|
|
2655
2991
|
class MatchaSlideToggleComponent {
|
|
@@ -2716,8 +3052,8 @@ class MatchaSlideToggleComponent {
|
|
|
2716
3052
|
this.onTouched();
|
|
2717
3053
|
this.change.emit({ checked: newCheckedState });
|
|
2718
3054
|
}
|
|
2719
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2720
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3056
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSlideToggleComponent, isStandalone: false, selector: "matcha-slide-toggle", inputs: { color: "color", checked: "checked", disabled: "disabled" }, outputs: { change: "change" }, providers: [
|
|
2721
3057
|
{
|
|
2722
3058
|
provide: NG_VALUE_ACCESSOR,
|
|
2723
3059
|
useExisting: forwardRef(() => MatchaSlideToggleComponent),
|
|
@@ -2725,7 +3061,7 @@ class MatchaSlideToggleComponent {
|
|
|
2725
3061
|
},
|
|
2726
3062
|
], usesOnChanges: true, ngImport: i0, template: "<label\n class=\"matcha-slide-toggle-wrapper flex-align-center\"\n [class.matcha-slide-toggle-disabled]=\"disabled\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n (change)=\"onInputChange($event)\"\n />\n\n <span class=\"matcha-slide-toggle-label ml-8 fw-500 fs-16 lh-20\">\n <ng-content></ng-content>\n </span>\n</label>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2727
3063
|
}
|
|
2728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleComponent, decorators: [{
|
|
2729
3065
|
type: Component,
|
|
2730
3066
|
args: [{ selector: 'matcha-slide-toggle', standalone: false, providers: [
|
|
2731
3067
|
{
|
|
@@ -2802,10 +3138,10 @@ class MatchaButtonToggleComponent {
|
|
|
2802
3138
|
});
|
|
2803
3139
|
}
|
|
2804
3140
|
}
|
|
2805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2806
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3142
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaButtonToggleComponent, isStandalone: false, selector: "matcha-button-toggle", inputs: { multiple: "multiple", disabled: "disabled", required: "required", inactiveColor: "inactiveColor", inactiveType: "inactiveType", gap: "gap" }, host: { properties: { "attr.disabled": "this.isDisabled" } }, queries: [{ propertyName: "buttons", predicate: MatchaButtonComponent }], ngImport: i0, template: "<div\n class=\"button-group d-flex\"\n [ngClass]=\"gapClass\"\n [class.flex-wrap]=\"gap !== 0\"\n role=\"group\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
2807
3143
|
}
|
|
2808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleComponent, decorators: [{
|
|
2809
3145
|
type: Component,
|
|
2810
3146
|
args: [{ selector: 'matcha-button-toggle', standalone: false, template: "<div\n class=\"button-group d-flex\"\n [ngClass]=\"gapClass\"\n [class.flex-wrap]=\"gap !== 0\"\n role=\"group\"\n>\n <ng-content></ng-content>\n</div>\n" }]
|
|
2811
3147
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { multiple: [{
|
|
@@ -2840,10 +3176,10 @@ class MatchaTabItemComponent {
|
|
|
2840
3176
|
get active() {
|
|
2841
3177
|
return this._active;
|
|
2842
3178
|
}
|
|
2843
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2844
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3179
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3180
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTabItemComponent, isStandalone: false, selector: "matcha-tab", inputs: { title: "title", icon: "icon", active: "active" }, ngImport: i0, template: "<ng-content *ngIf=\"active\"></ng-content>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2845
3181
|
}
|
|
2846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabItemComponent, decorators: [{
|
|
2847
3183
|
type: Component,
|
|
2848
3184
|
args: [{ selector: 'matcha-tab', standalone: false, template: "<ng-content *ngIf=\"active\"></ng-content>\n" }]
|
|
2849
3185
|
}], propDecorators: { title: [{
|
|
@@ -2898,10 +3234,10 @@ class MatchaTabsComponent {
|
|
|
2898
3234
|
this.selectTabByIndex(tabsArray.length - 1);
|
|
2899
3235
|
}
|
|
2900
3236
|
}
|
|
2901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2902
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3238
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTabsComponent, isStandalone: false, selector: "matcha-tabs", inputs: { activeTabIndex: "activeTabIndex" }, outputs: { tabSelected: "tabSelected" }, host: { listeners: { "keydown": "handleKeyboardEvent($event)" } }, queries: [{ propertyName: "tabs", predicate: MatchaTabItemComponent }], ngImport: i0, template: "<div class=\"flex-column gap-24 w-100-p\">\n <nav class=\"button-group overflow-auto w-100-p flex-row gap-8 list-style-none pl-0 pb-4\" role=\"tablist\">\n <button *ngFor=\"let tab of tabs; let i = index\" (click)=\"selectTabByIndex(i)\"\n [attr.aria-selected]=\"tab.active\"\n [attr.aria-controls]=\"'tab-content-' + i\"\n [ngClass]=\"{'active': tab.active}\"\n class=\"\n border-color-{{tab.active?'accent':'surface'}} background-surface\n cursor-pointer w-100-p min-w-88 b-2 radius-8 p-8 flex-column flex-align-center gap-4 flex-space-between\"\n role=\"tab\"\n tabindex=\"{{tab.active ? 0 : -1}}\">\n <matcha-icon [name]=\"tab.icon\" color=\"accent\" size=\"md\"></matcha-icon>\n <span class=\"color-fg fw-900 fs-14 lh-16 line-clamp-2\">\n {{ tab.title }}\n </span>\n </button>\n </nav>\n\n <div>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }], animations: [...createAnimations] }); }
|
|
2903
3239
|
}
|
|
2904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsComponent, decorators: [{
|
|
2905
3241
|
type: Component,
|
|
2906
3242
|
args: [{ selector: 'matcha-tabs', animations: [...createAnimations], standalone: false, template: "<div class=\"flex-column gap-24 w-100-p\">\n <nav class=\"button-group overflow-auto w-100-p flex-row gap-8 list-style-none pl-0 pb-4\" role=\"tablist\">\n <button *ngFor=\"let tab of tabs; let i = index\" (click)=\"selectTabByIndex(i)\"\n [attr.aria-selected]=\"tab.active\"\n [attr.aria-controls]=\"'tab-content-' + i\"\n [ngClass]=\"{'active': tab.active}\"\n class=\"\n border-color-{{tab.active?'accent':'surface'}} background-surface\n cursor-pointer w-100-p min-w-88 b-2 radius-8 p-8 flex-column flex-align-center gap-4 flex-space-between\"\n role=\"tab\"\n tabindex=\"{{tab.active ? 0 : -1}}\">\n <matcha-icon [name]=\"tab.icon\" color=\"accent\" size=\"md\"></matcha-icon>\n <span class=\"color-fg fw-900 fs-14 lh-16 line-clamp-2\">\n {{ tab.title }}\n </span>\n </button>\n </nav>\n\n <div>\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
2907
3243
|
}], propDecorators: { tabs: [{
|
|
@@ -2916,7 +3252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
2916
3252
|
args: ['keydown', ['$event']]
|
|
2917
3253
|
}] } });
|
|
2918
3254
|
|
|
2919
|
-
class
|
|
3255
|
+
class MatchaDateRangeComponent {
|
|
2920
3256
|
constructor() {
|
|
2921
3257
|
this.startDateControl = null;
|
|
2922
3258
|
this.endDateControl = null;
|
|
@@ -2939,15 +3275,34 @@ class MatchaDateComponent {
|
|
|
2939
3275
|
this.subscription.unsubscribe();
|
|
2940
3276
|
}
|
|
2941
3277
|
/**
|
|
2942
|
-
* Validação
|
|
3278
|
+
* Validação de formato de data e intervalo: data inicial não pode ser posterior à data final
|
|
2943
3279
|
*/
|
|
2944
3280
|
validateDateRange() {
|
|
2945
3281
|
if (!this.startDateControl || !this.endDateControl)
|
|
2946
3282
|
return;
|
|
2947
3283
|
if (!this.startDateControl.value || !this.endDateControl.value)
|
|
2948
3284
|
return;
|
|
3285
|
+
// Validação de formato de data (YYYY-MM-DD)
|
|
3286
|
+
const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
3287
|
+
if (!dateRegex.test(this.startDateControl.value)) {
|
|
3288
|
+
this.startDateControl.setErrors({ ['invalidDateFormat']: true });
|
|
3289
|
+
return;
|
|
3290
|
+
}
|
|
3291
|
+
if (!dateRegex.test(this.endDateControl.value)) {
|
|
3292
|
+
this.endDateControl.setErrors({ ['invalidDateFormat']: true });
|
|
3293
|
+
return;
|
|
3294
|
+
}
|
|
2949
3295
|
const startDate = new Date(this.startDateControl.value);
|
|
2950
3296
|
const endDate = new Date(this.endDateControl.value);
|
|
3297
|
+
// Verifica se as datas são válidas
|
|
3298
|
+
if (isNaN(startDate.getTime())) {
|
|
3299
|
+
this.startDateControl.setErrors({ ['invalidDate']: true });
|
|
3300
|
+
return;
|
|
3301
|
+
}
|
|
3302
|
+
if (isNaN(endDate.getTime())) {
|
|
3303
|
+
this.endDateControl.setErrors({ ['invalidDate']: true });
|
|
3304
|
+
return;
|
|
3305
|
+
}
|
|
2951
3306
|
if (startDate > endDate) {
|
|
2952
3307
|
// Adiciona erros quando a data inicial é posterior à final
|
|
2953
3308
|
this.startDateControl.setErrors({ ['startAfterEnd']: true });
|
|
@@ -2957,6 +3312,10 @@ class MatchaDateComponent {
|
|
|
2957
3312
|
// Remove apenas nossos erros específicos
|
|
2958
3313
|
this.removeSpecificError(this.startDateControl, 'startAfterEnd');
|
|
2959
3314
|
this.removeSpecificError(this.endDateControl, 'endBeforeStart');
|
|
3315
|
+
this.removeSpecificError(this.startDateControl, 'invalidDateFormat');
|
|
3316
|
+
this.removeSpecificError(this.endDateControl, 'invalidDateFormat');
|
|
3317
|
+
this.removeSpecificError(this.startDateControl, 'invalidDate');
|
|
3318
|
+
this.removeSpecificError(this.endDateControl, 'invalidDate');
|
|
2960
3319
|
}
|
|
2961
3320
|
}
|
|
2962
3321
|
/**
|
|
@@ -2969,12 +3328,12 @@ class MatchaDateComponent {
|
|
|
2969
3328
|
control.setErrors(Object.keys(errors).length ? errors : null);
|
|
2970
3329
|
}
|
|
2971
3330
|
}
|
|
2972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2973
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDateRangeComponent, isStandalone: false, selector: "matcha-date-range", queries: [{ propertyName: "controls", predicate: NgControl, descendants: true }], ngImport: i0, template: "<div class=\"d-flex gap-16\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
2974
3333
|
}
|
|
2975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeComponent, decorators: [{
|
|
2976
3335
|
type: Component,
|
|
2977
|
-
args: [{ selector: 'matcha-date', standalone: false, template: "<div class=\"d-flex gap-16\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
3336
|
+
args: [{ selector: 'matcha-date-range', standalone: false, template: "<div class=\"d-flex gap-16\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
2978
3337
|
}], propDecorators: { controls: [{
|
|
2979
3338
|
type: ContentChildren,
|
|
2980
3339
|
args: [NgControl, { descendants: true }]
|
|
@@ -3088,10 +3447,10 @@ class MatchaTimeComponent {
|
|
|
3088
3447
|
control.setErrors(Object.keys(errors).length ? errors : null);
|
|
3089
3448
|
}
|
|
3090
3449
|
}
|
|
3091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3092
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3451
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTimeComponent, isStandalone: false, selector: "matcha-time", inputs: { startDateControlName: "startDateControlName", endDateControlName: "endDateControlName", allowCrossDays: "allowCrossDays" }, queries: [{ propertyName: "controls", predicate: NgControl, descendants: true }], ngImport: i0, template: "<div class=\"d-flex gap-16\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
3093
3452
|
}
|
|
3094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeComponent, decorators: [{
|
|
3095
3454
|
type: Component,
|
|
3096
3455
|
args: [{ selector: 'matcha-time', standalone: false, template: "<div class=\"d-flex gap-16\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
3097
3456
|
}], propDecorators: { controls: [{
|
|
@@ -3106,10 +3465,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3106
3465
|
}] } });
|
|
3107
3466
|
|
|
3108
3467
|
class StepComponent {
|
|
3109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3110
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3468
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: StepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3469
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: StepComponent, isStandalone: false, selector: "matcha-step", inputs: { step: ["title", "step"] }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true }); }
|
|
3111
3470
|
}
|
|
3112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: StepComponent, decorators: [{
|
|
3113
3472
|
type: Component,
|
|
3114
3473
|
args: [{
|
|
3115
3474
|
selector: 'matcha-step',
|
|
@@ -3164,10 +3523,10 @@ class MatchaStepperStateService {
|
|
|
3164
3523
|
this._activeStep$.next(current - 1);
|
|
3165
3524
|
}
|
|
3166
3525
|
}
|
|
3167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3168
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3527
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperStateService }); }
|
|
3169
3528
|
}
|
|
3170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperStateService, decorators: [{
|
|
3171
3530
|
type: Injectable
|
|
3172
3531
|
}] });
|
|
3173
3532
|
|
|
@@ -3181,10 +3540,10 @@ class MatchaStepperComponent {
|
|
|
3181
3540
|
this.stepperState.setActiveStep(this.active);
|
|
3182
3541
|
}
|
|
3183
3542
|
}
|
|
3184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3185
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperComponent, deps: [{ token: MatchaStepperStateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3544
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaStepperComponent, isStandalone: false, selector: "matcha-stepper", inputs: { active: "active" }, providers: [MatchaStepperStateService], usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
3186
3545
|
}
|
|
3187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperComponent, decorators: [{
|
|
3188
3547
|
type: Component,
|
|
3189
3548
|
args: [{
|
|
3190
3549
|
selector: 'matcha-stepper',
|
|
@@ -3217,14 +3576,14 @@ class MatchaStepperContentComponent {
|
|
|
3217
3576
|
prevStep() {
|
|
3218
3577
|
this.stepperState.prevStep();
|
|
3219
3578
|
}
|
|
3220
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3221
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperContentComponent, deps: [{ token: MatchaStepperStateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3580
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaStepperContentComponent, isStandalone: false, selector: "matcha-stepper-content", queries: [{ propertyName: "steps", predicate: StepComponent }], ngImport: i0, template: `
|
|
3222
3581
|
<ng-container *ngIf="stepsArray.length">
|
|
3223
3582
|
<ng-container *ngTemplateOutlet="stepsArray[activeStep]?.template || null"></ng-container>
|
|
3224
3583
|
</ng-container>
|
|
3225
3584
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
3226
3585
|
}
|
|
3227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperContentComponent, decorators: [{
|
|
3228
3587
|
type: Component,
|
|
3229
3588
|
args: [{
|
|
3230
3589
|
selector: 'matcha-stepper-content',
|
|
@@ -3255,10 +3614,10 @@ class MatchaStepperControllerComponent {
|
|
|
3255
3614
|
return;
|
|
3256
3615
|
this.stepperState.setActiveStep(index);
|
|
3257
3616
|
}
|
|
3258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperControllerComponent, deps: [{ token: MatchaStepperStateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3618
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaStepperControllerComponent, isStandalone: false, selector: "matcha-stepper-controller", inputs: { disableNext: "disableNext" }, providers: [], ngImport: i0, template: "<div class=\"flex-column flex-align-end gap-16\">\n <span class=\"fw-900 fs-12 lh-12\">{{steps[activeStep]}}</span>\n <div class=\"d-flex align-center gap-8\">\n <ng-container *ngFor=\"let step of steps; let i = index\">\n <div (click)=\"goToStep(i)\" class=\"cursor-pointer w-32 h-8 radius-8\" [class.background-accent]=\"i <= activeStep\" [class.background-disabled]=\"i > activeStep\"></div> \n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
3260
3619
|
}
|
|
3261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperControllerComponent, decorators: [{
|
|
3262
3621
|
type: Component,
|
|
3263
3622
|
args: [{ selector: 'matcha-stepper-controller', providers: [], standalone: false, template: "<div class=\"flex-column flex-align-end gap-16\">\n <span class=\"fw-900 fs-12 lh-12\">{{steps[activeStep]}}</span>\n <div class=\"d-flex align-center gap-8\">\n <ng-container *ngFor=\"let step of steps; let i = index\">\n <div (click)=\"goToStep(i)\" class=\"cursor-pointer w-32 h-8 radius-8\" [class.background-accent]=\"i <= activeStep\" [class.background-disabled]=\"i > activeStep\"></div> \n </ng-container>\n </div>\n</div>\n" }]
|
|
3264
3623
|
}], ctorParameters: () => [{ type: MatchaStepperStateService }], propDecorators: { disableNext: [{
|
|
@@ -3287,10 +3646,10 @@ class MatchaDropListService {
|
|
|
3287
3646
|
getAllDropZones() {
|
|
3288
3647
|
return Array.from(this.dropZones.values());
|
|
3289
3648
|
}
|
|
3290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3291
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3650
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListService, providedIn: 'root' }); }
|
|
3292
3651
|
}
|
|
3293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListService, decorators: [{
|
|
3294
3653
|
type: Injectable,
|
|
3295
3654
|
args: [{
|
|
3296
3655
|
providedIn: 'root'
|
|
@@ -3588,10 +3947,10 @@ class MatchaDragDirective {
|
|
|
3588
3947
|
this.listeners.forEach(cleanup => cleanup());
|
|
3589
3948
|
this.listeners = [];
|
|
3590
3949
|
}
|
|
3591
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3592
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
3950
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDragDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: MatchaDropListService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3951
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDragDirective, isStandalone: false, selector: "[matchaDrag]", inputs: { matchaDragData: "matchaDragData", matchaDragDisabled: "matchaDragDisabled" }, host: { properties: { "class.matcha-drag-item": "this.dragItemClass", "class.matcha-drag-disabled": "this.dragDisabledClass" } }, ngImport: i0 }); }
|
|
3593
3952
|
}
|
|
3594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDragDirective, decorators: [{
|
|
3595
3954
|
type: Directive,
|
|
3596
3955
|
args: [{
|
|
3597
3956
|
selector: '[matchaDrag]',
|
|
@@ -3891,10 +4250,10 @@ class MatchaDropListComponent {
|
|
|
3891
4250
|
this.transferItem(this.currentDragItem, this.sourceContainer, this, dropIndex);
|
|
3892
4251
|
}
|
|
3893
4252
|
}
|
|
3894
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3895
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MatchaDropListService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4254
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDropListComponent, isStandalone: false, selector: "matcha-drop-list", inputs: { matchaDropListData: "matchaDropListData", matchaDropListDisabled: "matchaDropListDisabled", matchaDropListConnectedTo: "matchaDropListConnectedTo", matchaDropListSortingDisabled: "matchaDropListSortingDisabled", matchaDropListAcceptPredicate: "matchaDropListAcceptPredicate" }, outputs: { matchaDropListDropped: "matchaDropListDropped" }, host: { properties: { "class.matcha-drop-list": "this.dropListClass" } }, queries: [{ propertyName: "dragItems", predicate: MatchaDragDirective }], ngImport: i0, template: "<div class=\"matcha-drop-list-container\"\n [class.matcha-drop-list-receiving]=\"isReceivingDrag\"\n [class.matcha-drop-list-disabled]=\"matchaDropListDisabled\"\n [class.matcha-drop-list-can-accept]=\"isReceivingDrag && canAcceptDrop\"\n [class.matcha-drop-list-cannot-accept]=\"isReceivingDrag && !canAcceptDrop\">\n <ng-content></ng-content>\n\n <!-- Linha indicadora de drop -->\n <div class=\"matcha-drop-indicator\"\n [class.active]=\"showDropIndicator && canAcceptDrop\"\n [style.top.px]=\"dropIndicatorPosition\">\n </div>\n\n <!-- Placeholder para lista vazia -->\n <div *ngIf=\"isReceivingDrag && dragItems.length === 0\"\n class=\"matcha-drop-list-placeholder\">\n <div class=\"matcha-drop-list-empty-placeholder\"\n [class.can-accept]=\"canAcceptDrop\"\n [class.cannot-accept]=\"!canAcceptDrop\">\n <span [class.i-matcha-action_sign_success]=\"canAcceptDrop\"\n [class.i-matcha-action_sign_error]=\"!canAcceptDrop\"\n [class.color-green]=\"canAcceptDrop\"\n [class.color-red]=\"!canAcceptDrop\"\n class=\"i-size-lg\"></span>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3896
4255
|
}
|
|
3897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListComponent, decorators: [{
|
|
3898
4257
|
type: Component,
|
|
3899
4258
|
args: [{ selector: 'matcha-drop-list', standalone: false, template: "<div class=\"matcha-drop-list-container\"\n [class.matcha-drop-list-receiving]=\"isReceivingDrag\"\n [class.matcha-drop-list-disabled]=\"matchaDropListDisabled\"\n [class.matcha-drop-list-can-accept]=\"isReceivingDrag && canAcceptDrop\"\n [class.matcha-drop-list-cannot-accept]=\"isReceivingDrag && !canAcceptDrop\">\n <ng-content></ng-content>\n\n <!-- Linha indicadora de drop -->\n <div class=\"matcha-drop-indicator\"\n [class.active]=\"showDropIndicator && canAcceptDrop\"\n [style.top.px]=\"dropIndicatorPosition\">\n </div>\n\n <!-- Placeholder para lista vazia -->\n <div *ngIf=\"isReceivingDrag && dragItems.length === 0\"\n class=\"matcha-drop-list-placeholder\">\n <div class=\"matcha-drop-list-empty-placeholder\"\n [class.can-accept]=\"canAcceptDrop\"\n [class.cannot-accept]=\"!canAcceptDrop\">\n <span [class.i-matcha-action_sign_success]=\"canAcceptDrop\"\n [class.i-matcha-action_sign_error]=\"!canAcceptDrop\"\n [class.color-green]=\"canAcceptDrop\"\n [class.color-red]=\"!canAcceptDrop\"\n class=\"i-size-lg\"></span>\n </div>\n </div>\n</div>\n" }]
|
|
3900
4259
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: MatchaDropListService }], propDecorators: { matchaDropListData: [{
|
|
@@ -3918,10 +4277,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3918
4277
|
}] } });
|
|
3919
4278
|
|
|
3920
4279
|
class MatchaPageLayoutComponent {
|
|
3921
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3922
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4281
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaPageLayoutComponent, isStandalone: false, selector: "matcha-page-layout", ngImport: i0, template: "<div class=\"page-layout carded fullwidth\">\n <!-- TOP BACKGROUND -->\n <div class=\"top-bg\"></div>\n <!--/ TOP BACKGROUND -->\n\n <!-- CENTER -->\n <div class=\"center pt-24 gap-16\">\n <!-- CONTENT CARD -->\n <div class=\"content-card flatten flex-column h-100-p\">\n <!-- CONTENT -->\n <div class=\"content flex-column h-100-p\">\n <div class=\"content-card card-flat flex-column h-100-p background-bg border-radius-0 pb-16\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [":host{display:flex;flex-direction:column;width:100%}\n"] }); }
|
|
3923
4282
|
}
|
|
3924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutComponent, decorators: [{
|
|
3925
4284
|
type: Component,
|
|
3926
4285
|
args: [{ selector: 'matcha-page-layout', standalone: false, template: "<div class=\"page-layout carded fullwidth\">\n <!-- TOP BACKGROUND -->\n <div class=\"top-bg\"></div>\n <!--/ TOP BACKGROUND -->\n\n <!-- CENTER -->\n <div class=\"center pt-24 gap-16\">\n <!-- CONTENT CARD -->\n <div class=\"content-card flatten flex-column h-100-p\">\n <!-- CONTENT -->\n <div class=\"content flex-column h-100-p\">\n <div class=\"content-card card-flat flex-column h-100-p background-bg border-radius-0 pb-16\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [":host{display:flex;flex-direction:column;width:100%}\n"] }]
|
|
3927
4286
|
}] });
|
|
@@ -3980,10 +4339,10 @@ class MatchaAvatarComponent {
|
|
|
3980
4339
|
}
|
|
3981
4340
|
return classes;
|
|
3982
4341
|
}
|
|
3983
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3984
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAvatarComponent, isStandalone: false, selector: "matcha-avatar", inputs: { src: "src", name: "name", size: "size", color: "color", disabled: "disabled" }, ngImport: i0, template: "<span [class]=\"avatarClasses\">\n <!-- Imagem do usu\u00E1rio -->\n <img \n *ngIf=\"hasImage\" \n [src]=\"src\" \n [alt]=\"name || 'Avatar'\"\n class=\"matcha-avatar-image\">\n \n <!-- Iniciais do nome -->\n <span \n *ngIf=\"!hasImage && hasName\" \n class=\"matcha-avatar-initials\">\n {{ initials }}\n </span>\n \n\n <svg \n *ngIf=\"showDefaultIcon\"\n class=\"matcha-avatar-icon\"\n viewBox=\"0 0 56 56\" \n fill=\"none\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path \n fill-rule=\"evenodd\" \n clip-rule=\"evenodd\" \n d=\"M28 0C12.544 0 0 12.544 0 28C0 43.456 12.544 56 28 56C43.456 56 56 43.456 56 28C56 12.544 43.456 0 28 0ZM28.0022 8.4C32.6502 8.4 36.4022 12.152 36.4022 16.8C36.4022 21.448 32.6502 25.2 28.0022 25.2C23.3542 25.2 19.6022 21.448 19.6022 16.8C19.6022 12.152 23.3542 8.4 28.0022 8.4ZM28.0022 48.1601C21.0022 48.1601 14.8142 44.5761 11.2022 39.1441C11.2862 33.5721 22.4022 30.5201 28.0022 30.5201C33.5742 30.5201 44.7182 33.5721 44.8022 39.1441C41.1902 44.5761 35.0022 48.1601 28.0022 48.1601Z\" \n fill=\"currentColor\"/>\n </svg>\n </span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3985
4344
|
}
|
|
3986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarComponent, decorators: [{
|
|
3987
4346
|
type: Component,
|
|
3988
4347
|
args: [{ selector: 'matcha-avatar', standalone: false, template: "<span [class]=\"avatarClasses\">\n <!-- Imagem do usu\u00E1rio -->\n <img \n *ngIf=\"hasImage\" \n [src]=\"src\" \n [alt]=\"name || 'Avatar'\"\n class=\"matcha-avatar-image\">\n \n <!-- Iniciais do nome -->\n <span \n *ngIf=\"!hasImage && hasName\" \n class=\"matcha-avatar-initials\">\n {{ initials }}\n </span>\n \n\n <svg \n *ngIf=\"showDefaultIcon\"\n class=\"matcha-avatar-icon\"\n viewBox=\"0 0 56 56\" \n fill=\"none\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path \n fill-rule=\"evenodd\" \n clip-rule=\"evenodd\" \n d=\"M28 0C12.544 0 0 12.544 0 28C0 43.456 12.544 56 28 56C43.456 56 56 43.456 56 28C56 12.544 43.456 0 28 0ZM28.0022 8.4C32.6502 8.4 36.4022 12.152 36.4022 16.8C36.4022 21.448 32.6502 25.2 28.0022 25.2C23.3542 25.2 19.6022 21.448 19.6022 16.8C19.6022 12.152 23.3542 8.4 28.0022 8.4ZM28.0022 48.1601C21.0022 48.1601 14.8142 44.5761 11.2022 39.1441C11.2862 33.5721 22.4022 30.5201 28.0022 30.5201C33.5742 30.5201 44.7182 33.5721 44.8022 39.1441C41.1902 44.5761 35.0022 48.1601 28.0022 48.1601Z\" \n fill=\"currentColor\"/>\n </svg>\n </span>" }]
|
|
3989
4348
|
}], propDecorators: { src: [{
|
|
@@ -4031,8 +4390,9 @@ class MatchaOptionComponent {
|
|
|
4031
4390
|
this.optionSelect.emit(this);
|
|
4032
4391
|
}
|
|
4033
4392
|
findParentAndSelect() {
|
|
4034
|
-
// Busca o elemento pai matcha-autocomplete
|
|
4393
|
+
// Busca o elemento pai matcha-autocomplete ou matcha-select
|
|
4035
4394
|
const autocompleteEl = this.elRef.nativeElement.closest('matcha-autocomplete');
|
|
4395
|
+
const selectEl = this.elRef.nativeElement.closest('matcha-select');
|
|
4036
4396
|
if (autocompleteEl) {
|
|
4037
4397
|
console.log('MatchaOption: Encontrou autocomplete element', autocompleteEl);
|
|
4038
4398
|
// Dispara um evento customizado que o autocomplete pode escutar
|
|
@@ -4043,8 +4403,18 @@ class MatchaOptionComponent {
|
|
|
4043
4403
|
autocompleteEl.dispatchEvent(event);
|
|
4044
4404
|
console.log('MatchaOption: Evento customizado disparado', event);
|
|
4045
4405
|
}
|
|
4406
|
+
else if (selectEl) {
|
|
4407
|
+
console.log('MatchaOption: Encontrou select element', selectEl);
|
|
4408
|
+
// Dispara um evento customizado que o select pode escutar
|
|
4409
|
+
const event = new CustomEvent('matcha-option-selected', {
|
|
4410
|
+
detail: { option: this, value: this.value },
|
|
4411
|
+
bubbles: true
|
|
4412
|
+
});
|
|
4413
|
+
selectEl.dispatchEvent(event);
|
|
4414
|
+
console.log('MatchaOption: Evento customizado disparado para select', event);
|
|
4415
|
+
}
|
|
4046
4416
|
else {
|
|
4047
|
-
console.log('MatchaOption: Não encontrou elemento
|
|
4417
|
+
console.log('MatchaOption: Não encontrou elemento pai (autocomplete ou select)');
|
|
4048
4418
|
}
|
|
4049
4419
|
}
|
|
4050
4420
|
onKeydown(ev) {
|
|
@@ -4057,10 +4427,10 @@ class MatchaOptionComponent {
|
|
|
4057
4427
|
get nativeElement() {
|
|
4058
4428
|
return this.elRef.nativeElement;
|
|
4059
4429
|
}
|
|
4060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4061
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionComponent, deps: [{ token: MATCHA_OPTION_PARENT, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaOptionComponent, isStandalone: false, selector: "matcha-option", inputs: { value: "value", disabled: "disabled" }, outputs: { optionClick: "optionClick", optionSelect: "optionSelect" }, host: { attributes: { "role": "option", "tabindex": "0" }, listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.aria-selected": "this.selected" }, classAttribute: "matcha-option" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
4062
4432
|
}
|
|
4063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionComponent, decorators: [{
|
|
4064
4434
|
type: Component,
|
|
4065
4435
|
args: [{
|
|
4066
4436
|
selector: 'matcha-option',
|
|
@@ -4168,6 +4538,8 @@ class MatchaPanelComponent {
|
|
|
4168
4538
|
});
|
|
4169
4539
|
this.cleanupListeners();
|
|
4170
4540
|
this.closed.emit();
|
|
4541
|
+
// Forçar detecção de mudanças para garantir que o painel seja fechado
|
|
4542
|
+
this.cdr.detectChanges();
|
|
4171
4543
|
}
|
|
4172
4544
|
/**
|
|
4173
4545
|
* Alterna o estado do painel
|
|
@@ -4185,16 +4557,15 @@ class MatchaPanelComponent {
|
|
|
4185
4557
|
}
|
|
4186
4558
|
const position = this.calculatePosition();
|
|
4187
4559
|
this.panelStyle = {
|
|
4188
|
-
top: `${position.top}px`,
|
|
4189
|
-
left: `${position.left}px`,
|
|
4190
|
-
minWidth: `${position.width}px`,
|
|
4560
|
+
// top: `${position.top}px`,
|
|
4561
|
+
// left: `${position.left}px`,
|
|
4562
|
+
// minWidth: `${position.width}px`,
|
|
4563
|
+
top: 0,
|
|
4564
|
+
left: 0,
|
|
4565
|
+
width: '100%',
|
|
4191
4566
|
maxHeight: `${position.maxHeight || this.maxHeight}px`,
|
|
4192
|
-
zIndex:
|
|
4567
|
+
zIndex: 1
|
|
4193
4568
|
};
|
|
4194
|
-
console.log('MatchaPanel: Posição calculada (absolute)', {
|
|
4195
|
-
position,
|
|
4196
|
-
panelStyle: this.panelStyle
|
|
4197
|
-
});
|
|
4198
4569
|
}
|
|
4199
4570
|
/**
|
|
4200
4571
|
* Calcula a posição ideal do painel (simplificado para absolute)
|
|
@@ -4242,8 +4613,8 @@ class MatchaPanelComponent {
|
|
|
4242
4613
|
this.resizeListener = undefined;
|
|
4243
4614
|
}
|
|
4244
4615
|
}
|
|
4245
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4246
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4617
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaPanelComponent, isStandalone: false, selector: "matcha-panel", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", offset: "offset", triggerElement: "triggerElement", open: "open" }, outputs: { opened: "opened", closed: "closed" }, viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
4247
4618
|
<div class="matcha-panel-container" style="position: relative;">
|
|
4248
4619
|
<ng-container *ngIf="open">
|
|
4249
4620
|
<!-- Painel -->
|
|
@@ -4262,7 +4633,7 @@ class MatchaPanelComponent {
|
|
|
4262
4633
|
</div>
|
|
4263
4634
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
4264
4635
|
}
|
|
4265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelComponent, decorators: [{
|
|
4266
4637
|
type: Component,
|
|
4267
4638
|
args: [{
|
|
4268
4639
|
selector: 'matcha-panel',
|
|
@@ -4341,10 +4712,39 @@ class MatchaAutocompleteComponent {
|
|
|
4341
4712
|
const { option, value } = event.detail;
|
|
4342
4713
|
this.selectOption(option);
|
|
4343
4714
|
});
|
|
4715
|
+
// Escuta evento para fechar este painel quando outro for aberto
|
|
4716
|
+
this.elRef.nativeElement.addEventListener('matcha-autocomplete-close', () => {
|
|
4717
|
+
if (this.open) {
|
|
4718
|
+
console.log('MatchaAutocomplete: Fechando painel por evento de outro autocomplete');
|
|
4719
|
+
this.closePanel();
|
|
4720
|
+
}
|
|
4721
|
+
});
|
|
4344
4722
|
}
|
|
4345
4723
|
attachTo(input) {
|
|
4346
4724
|
this.triggerElement = input;
|
|
4347
4725
|
}
|
|
4726
|
+
closeOtherPanels() {
|
|
4727
|
+
// Buscar todos os outros autocompletes na página e fechá-los
|
|
4728
|
+
const allAutocompletes = document.querySelectorAll('matcha-autocomplete');
|
|
4729
|
+
allAutocompletes.forEach(autocompleteEl => {
|
|
4730
|
+
if (autocompleteEl !== this.elRef.nativeElement) {
|
|
4731
|
+
// Disparar evento para fechar outros painéis
|
|
4732
|
+
const closeEvent = new CustomEvent('matcha-autocomplete-close', {
|
|
4733
|
+
bubbles: true
|
|
4734
|
+
});
|
|
4735
|
+
autocompleteEl.dispatchEvent(closeEvent);
|
|
4736
|
+
}
|
|
4737
|
+
});
|
|
4738
|
+
}
|
|
4739
|
+
notifyDirectiveOfSelection(value) {
|
|
4740
|
+
// Disparar evento customizado para notificar a diretiva sobre a seleção
|
|
4741
|
+
const selectionEvent = new CustomEvent('matcha-autocomplete-selection', {
|
|
4742
|
+
detail: { value },
|
|
4743
|
+
bubbles: true
|
|
4744
|
+
});
|
|
4745
|
+
this.elRef.nativeElement.dispatchEvent(selectionEvent);
|
|
4746
|
+
console.log('MatchaAutocomplete: Evento de seleção disparado', { value });
|
|
4747
|
+
}
|
|
4348
4748
|
openPanel() {
|
|
4349
4749
|
if (!this.triggerElement) {
|
|
4350
4750
|
console.log('MatchaAutocomplete: triggerElement não encontrado');
|
|
@@ -4355,6 +4755,8 @@ class MatchaAutocompleteComponent {
|
|
|
4355
4755
|
panel: this.panel,
|
|
4356
4756
|
open: this.open
|
|
4357
4757
|
});
|
|
4758
|
+
// Fechar outros painéis abertos antes de abrir este
|
|
4759
|
+
this.closeOtherPanels();
|
|
4358
4760
|
this.open = true;
|
|
4359
4761
|
this.cdr.detectChanges(); // Força detecção de mudanças
|
|
4360
4762
|
this.panel.attachTo(this.triggerElement);
|
|
@@ -4442,9 +4844,13 @@ class MatchaAutocompleteComponent {
|
|
|
4442
4844
|
selectedValue: this.selectedValue,
|
|
4443
4845
|
allOptions: this.options.toArray().map(o => ({ value: o.value, selected: o.selected }))
|
|
4444
4846
|
});
|
|
4847
|
+
// Notificar a diretiva sobre a seleção antes de fechar o painel
|
|
4848
|
+
this.notifyDirectiveOfSelection(option.value);
|
|
4445
4849
|
// Fechamos painel automaticamente
|
|
4446
4850
|
console.log('MatchaAutocomplete: Fechando painel após seleção');
|
|
4447
4851
|
this.closePanel();
|
|
4852
|
+
// Forçar detecção de mudanças para garantir que o painel seja fechado
|
|
4853
|
+
this.cdr.detectChanges();
|
|
4448
4854
|
// indireto: a directive pode ler o value via getSelectedValue()
|
|
4449
4855
|
}
|
|
4450
4856
|
getSelectedValue() {
|
|
@@ -4457,10 +4863,10 @@ class MatchaAutocompleteComponent {
|
|
|
4457
4863
|
});
|
|
4458
4864
|
return value;
|
|
4459
4865
|
}
|
|
4460
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4461
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4866
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4867
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteComponent, isStandalone: false, selector: "matcha-autocomplete", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth" }, outputs: { opened: "opened", closed: "closed" }, queries: [{ propertyName: "options", predicate: MatchaOptionComponent, descendants: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: MatchaPanelComponent, descendants: true }], ngImport: i0, template: "<matcha-panel\n #panel\n [open]=\"open\"\n [placement]=\"placement\"\n [maxHeight]=\"maxHeight\"\n [minWidth]=\"minWidth\"\n [triggerElement]=\"triggerElement\"\n (opened)=\"opened.emit()\"\n (closed)=\"closed.emit()\">\n <div class=\"matcha-panel-content flex-column\">\n <ng-content></ng-content>\n </div>\n</matcha-panel>\n", dependencies: [{ kind: "component", type: MatchaPanelComponent, selector: "matcha-panel", inputs: ["placement", "maxHeight", "minWidth", "offset", "triggerElement", "open"], outputs: ["opened", "closed"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4462
4868
|
}
|
|
4463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteComponent, decorators: [{
|
|
4464
4870
|
type: Component,
|
|
4465
4871
|
args: [{ selector: 'matcha-autocomplete', encapsulation: ViewEncapsulation.None, standalone: false, template: "<matcha-panel\n #panel\n [open]=\"open\"\n [placement]=\"placement\"\n [maxHeight]=\"maxHeight\"\n [minWidth]=\"minWidth\"\n [triggerElement]=\"triggerElement\"\n (opened)=\"opened.emit()\"\n (closed)=\"closed.emit()\">\n <div class=\"matcha-panel-content flex-column\">\n <ng-content></ng-content>\n </div>\n</matcha-panel>\n" }]
|
|
4466
4872
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { options: [{
|
|
@@ -4481,89 +4887,510 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4481
4887
|
type: Output
|
|
4482
4888
|
}] } });
|
|
4483
4889
|
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
this.
|
|
4494
|
-
|
|
4495
|
-
this.
|
|
4496
|
-
|
|
4497
|
-
this.
|
|
4498
|
-
|
|
4499
|
-
this.
|
|
4500
|
-
|
|
4501
|
-
this.
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
this.
|
|
4506
|
-
|
|
4507
|
-
|
|
4890
|
+
class MatchaSelectComponent {
|
|
4891
|
+
constructor(elRef, renderer, cdr) {
|
|
4892
|
+
this.elRef = elRef;
|
|
4893
|
+
this.renderer = renderer;
|
|
4894
|
+
this.cdr = cdr;
|
|
4895
|
+
// Armazenar o valor selecionado independente da QueryList
|
|
4896
|
+
this.selectedValue = undefined;
|
|
4897
|
+
// Configurações do painel
|
|
4898
|
+
this.placement = 'auto';
|
|
4899
|
+
this.maxHeight = 280;
|
|
4900
|
+
this.minWidth = 160;
|
|
4901
|
+
this.placeholder = 'Selecione uma opção';
|
|
4902
|
+
this.disabled = false;
|
|
4903
|
+
this.opened = new EventEmitter();
|
|
4904
|
+
this.closed = new EventEmitter();
|
|
4905
|
+
this.selectionChange = new EventEmitter();
|
|
4906
|
+
this.open = false;
|
|
4907
|
+
this.activeIndex = -1;
|
|
4908
|
+
// ControlValueAccessor properties
|
|
4909
|
+
this.onChange = (value) => { };
|
|
4910
|
+
this.onTouched = () => { };
|
|
4911
|
+
this.isDisabled = false;
|
|
4912
|
+
}
|
|
4913
|
+
ngAfterContentInit() {
|
|
4914
|
+
// quando options mudarem, resetamos estado relevante
|
|
4915
|
+
this.options.changes.subscribe(() => {
|
|
4916
|
+
if (this.open) {
|
|
4917
|
+
this.resetActive();
|
|
4918
|
+
this.cdr.detectChanges();
|
|
4508
4919
|
}
|
|
4509
|
-
|
|
4510
|
-
return `Página ${page + 1} de ${amountPages}`;
|
|
4511
|
-
};
|
|
4920
|
+
});
|
|
4512
4921
|
}
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
this.
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
this.
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4922
|
+
ngAfterViewInit() {
|
|
4923
|
+
// Aguarda a view ser inicializada
|
|
4924
|
+
this.cdr.detectChanges();
|
|
4925
|
+
// Configurar o trigger element
|
|
4926
|
+
this.triggerElement = this.elRef.nativeElement.querySelector('.matcha-select-trigger');
|
|
4927
|
+
if (this.triggerElement && this.panel) {
|
|
4928
|
+
this.panel.attachTo(this.triggerElement);
|
|
4929
|
+
}
|
|
4930
|
+
// Adicionar event listeners para navegação por teclado
|
|
4931
|
+
this.setupKeyboardNavigation();
|
|
4932
|
+
// Escuta eventos customizados das opções
|
|
4933
|
+
this.elRef.nativeElement.addEventListener('matcha-option-selected', (event) => {
|
|
4934
|
+
console.log('MatchaSelect: Evento matcha-option-selected recebido', event.detail);
|
|
4935
|
+
const { option, value } = event.detail;
|
|
4936
|
+
this.selectOption(option);
|
|
4937
|
+
});
|
|
4938
|
+
// Escuta evento para fechar este painel quando outro for aberto
|
|
4939
|
+
this.elRef.nativeElement.addEventListener('matcha-select-close', () => {
|
|
4940
|
+
if (this.open) {
|
|
4941
|
+
console.log('MatchaSelect: Fechando painel por evento de outro select');
|
|
4942
|
+
this.closePanel();
|
|
4943
|
+
}
|
|
4944
|
+
});
|
|
4945
|
+
// Escuta click outside para fechar o painel
|
|
4946
|
+
document.addEventListener('click', (event) => {
|
|
4947
|
+
const target = event.target;
|
|
4948
|
+
const isInsideSelect = this.elRef.nativeElement.contains(target);
|
|
4949
|
+
if (!isInsideSelect && this.open) {
|
|
4950
|
+
console.log('MatchaSelect: Fechando painel por click outside');
|
|
4951
|
+
this.closePanel();
|
|
4952
|
+
}
|
|
4535
4953
|
});
|
|
4536
4954
|
}
|
|
4537
|
-
|
|
4538
|
-
this.
|
|
4955
|
+
setupKeyboardNavigation() {
|
|
4956
|
+
if (!this.triggerElement)
|
|
4957
|
+
return;
|
|
4958
|
+
this.triggerElement.addEventListener('keydown', (event) => {
|
|
4959
|
+
if (this.disabled || this.isDisabled)
|
|
4960
|
+
return;
|
|
4961
|
+
switch (event.key) {
|
|
4962
|
+
case 'ArrowDown':
|
|
4963
|
+
event.preventDefault();
|
|
4964
|
+
this.handleArrowDown();
|
|
4965
|
+
break;
|
|
4966
|
+
case 'ArrowUp':
|
|
4967
|
+
event.preventDefault();
|
|
4968
|
+
this.handleArrowUp();
|
|
4969
|
+
break;
|
|
4970
|
+
case 'Enter':
|
|
4971
|
+
case ' ':
|
|
4972
|
+
event.preventDefault();
|
|
4973
|
+
this.handleEnterOrSpace();
|
|
4974
|
+
break;
|
|
4975
|
+
case 'Escape':
|
|
4976
|
+
event.preventDefault();
|
|
4977
|
+
this.handleEscape();
|
|
4978
|
+
break;
|
|
4979
|
+
case 'Tab':
|
|
4980
|
+
// Permitir navegação normal com Tab
|
|
4981
|
+
break;
|
|
4982
|
+
default:
|
|
4983
|
+
// Para outras teclas, não fazer nada
|
|
4984
|
+
break;
|
|
4985
|
+
}
|
|
4986
|
+
});
|
|
4539
4987
|
}
|
|
4540
|
-
|
|
4541
|
-
|
|
4988
|
+
handleArrowDown() {
|
|
4989
|
+
if (!this.open) {
|
|
4990
|
+
// Se o painel estiver fechado, selecionar a próxima opção diretamente
|
|
4991
|
+
this.selectNextOption();
|
|
4992
|
+
}
|
|
4993
|
+
else {
|
|
4994
|
+
// Se o painel estiver aberto, navegar para a próxima opção
|
|
4995
|
+
this.highlightNext();
|
|
4996
|
+
}
|
|
4542
4997
|
}
|
|
4543
|
-
|
|
4544
|
-
if (this.
|
|
4545
|
-
|
|
4546
|
-
|
|
4998
|
+
handleArrowUp() {
|
|
4999
|
+
if (!this.open) {
|
|
5000
|
+
// Se o painel estiver fechado, selecionar a opção anterior diretamente
|
|
5001
|
+
this.selectPreviousOption();
|
|
5002
|
+
}
|
|
5003
|
+
else {
|
|
5004
|
+
// Se o painel estiver aberto, navegar para a opção anterior
|
|
5005
|
+
this.highlightPrevious();
|
|
5006
|
+
}
|
|
4547
5007
|
}
|
|
4548
|
-
|
|
4549
|
-
|
|
5008
|
+
handleEnterOrSpace() {
|
|
5009
|
+
if (this.open) {
|
|
5010
|
+
// Se o painel estiver aberto, selecionar a opção ativa
|
|
5011
|
+
this.selectActive();
|
|
5012
|
+
}
|
|
5013
|
+
else {
|
|
5014
|
+
// Se o painel estiver fechado, abrir
|
|
5015
|
+
this.openPanel();
|
|
5016
|
+
}
|
|
4550
5017
|
}
|
|
4551
|
-
|
|
4552
|
-
|
|
5018
|
+
handleEscape() {
|
|
5019
|
+
if (this.open) {
|
|
5020
|
+
this.closePanel();
|
|
5021
|
+
}
|
|
4553
5022
|
}
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
const
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
5023
|
+
closeOtherPanels() {
|
|
5024
|
+
// Buscar todos os outros selects na página e fechá-los
|
|
5025
|
+
const allSelects = document.querySelectorAll('matcha-select');
|
|
5026
|
+
allSelects.forEach(selectEl => {
|
|
5027
|
+
if (selectEl !== this.elRef.nativeElement) {
|
|
5028
|
+
// Disparar evento para fechar outros painéis
|
|
5029
|
+
const closeEvent = new CustomEvent('matcha-select-close', {
|
|
5030
|
+
bubbles: true
|
|
5031
|
+
});
|
|
5032
|
+
selectEl.dispatchEvent(closeEvent);
|
|
4561
5033
|
}
|
|
4562
|
-
|
|
5034
|
+
});
|
|
5035
|
+
}
|
|
5036
|
+
notifyDirectiveOfSelection(value) {
|
|
5037
|
+
// Disparar evento customizado para notificar a diretiva sobre a seleção
|
|
5038
|
+
const selectionEvent = new CustomEvent('matcha-select-selection', {
|
|
5039
|
+
detail: { value },
|
|
5040
|
+
bubbles: true
|
|
5041
|
+
});
|
|
5042
|
+
this.elRef.nativeElement.dispatchEvent(selectionEvent);
|
|
5043
|
+
console.log('MatchaSelect: Evento de seleção disparado', { value });
|
|
5044
|
+
}
|
|
5045
|
+
onTriggerClick() {
|
|
5046
|
+
if (this.disabled || this.isDisabled)
|
|
5047
|
+
return;
|
|
5048
|
+
this.togglePanel();
|
|
5049
|
+
}
|
|
5050
|
+
openPanel() {
|
|
5051
|
+
if (this.disabled || this.isDisabled) {
|
|
5052
|
+
console.log('MatchaSelect: disabled');
|
|
5053
|
+
return;
|
|
4563
5054
|
}
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
5055
|
+
// Garantir que o triggerElement está configurado
|
|
5056
|
+
if (!this.triggerElement) {
|
|
5057
|
+
this.triggerElement = this.elRef.nativeElement.querySelector('.matcha-select-trigger');
|
|
5058
|
+
}
|
|
5059
|
+
if (!this.triggerElement) {
|
|
5060
|
+
console.log('MatchaSelect: triggerElement não encontrado');
|
|
5061
|
+
return;
|
|
5062
|
+
}
|
|
5063
|
+
console.log('MatchaSelect: Abrindo painel', {
|
|
5064
|
+
triggerElement: this.triggerElement,
|
|
5065
|
+
panel: this.panel,
|
|
5066
|
+
open: this.open
|
|
5067
|
+
});
|
|
5068
|
+
// Fechar outros painéis abertos antes de abrir este
|
|
5069
|
+
this.closeOtherPanels();
|
|
5070
|
+
this.open = true;
|
|
5071
|
+
this.cdr.detectChanges(); // Força detecção de mudanças
|
|
5072
|
+
this.panel.attachTo(this.triggerElement);
|
|
5073
|
+
this.panel.openPanel();
|
|
5074
|
+
// Configurar o activeIndex baseado no valor selecionado
|
|
5075
|
+
this.setActiveIndexFromSelectedValue();
|
|
5076
|
+
this.updateSelectedStates();
|
|
5077
|
+
this.opened.emit();
|
|
5078
|
+
}
|
|
5079
|
+
closePanel() {
|
|
5080
|
+
console.log('MatchaSelect: Fechando painel', {
|
|
5081
|
+
open: this.open,
|
|
5082
|
+
stackTrace: new Error().stack
|
|
5083
|
+
});
|
|
5084
|
+
this.open = false;
|
|
5085
|
+
this.activeIndex = -1;
|
|
5086
|
+
this.updateSelectedStates();
|
|
5087
|
+
this.panel.closePanel();
|
|
5088
|
+
this.closed.emit();
|
|
5089
|
+
}
|
|
5090
|
+
togglePanel() {
|
|
5091
|
+
this.open ? this.closePanel() : this.openPanel();
|
|
5092
|
+
}
|
|
5093
|
+
resetActive() {
|
|
5094
|
+
this.activeIndex = -1;
|
|
5095
|
+
this.updateSelectedStates();
|
|
5096
|
+
}
|
|
5097
|
+
setActiveIndexFromSelectedValue() {
|
|
5098
|
+
if (this.selectedValue !== undefined) {
|
|
5099
|
+
const options = this.options.toArray();
|
|
5100
|
+
const selectedIndex = options.findIndex(opt => opt.value === this.selectedValue);
|
|
5101
|
+
this.activeIndex = selectedIndex >= 0 ? selectedIndex : 0;
|
|
5102
|
+
}
|
|
5103
|
+
else {
|
|
5104
|
+
this.activeIndex = 0;
|
|
5105
|
+
}
|
|
5106
|
+
}
|
|
5107
|
+
selectNextOption() {
|
|
5108
|
+
const options = this.options.toArray();
|
|
5109
|
+
if (!options.length)
|
|
5110
|
+
return;
|
|
5111
|
+
let currentIndex = -1;
|
|
5112
|
+
if (this.selectedValue !== undefined) {
|
|
5113
|
+
currentIndex = options.findIndex(opt => opt.value === this.selectedValue);
|
|
5114
|
+
}
|
|
5115
|
+
// Se não há seleção atual ou é a última opção, selecionar a primeira
|
|
5116
|
+
const nextIndex = currentIndex < 0 || currentIndex >= options.length - 1 ? 0 : currentIndex + 1;
|
|
5117
|
+
this.selectOptionByIndex(nextIndex);
|
|
5118
|
+
}
|
|
5119
|
+
selectPreviousOption() {
|
|
5120
|
+
const options = this.options.toArray();
|
|
5121
|
+
if (!options.length)
|
|
5122
|
+
return;
|
|
5123
|
+
let currentIndex = -1;
|
|
5124
|
+
if (this.selectedValue !== undefined) {
|
|
5125
|
+
currentIndex = options.findIndex(opt => opt.value === this.selectedValue);
|
|
5126
|
+
}
|
|
5127
|
+
// Se não há seleção atual ou é a primeira opção, selecionar a última
|
|
5128
|
+
const prevIndex = currentIndex <= 0 ? options.length - 1 : currentIndex - 1;
|
|
5129
|
+
this.selectOptionByIndex(prevIndex);
|
|
5130
|
+
}
|
|
5131
|
+
selectOptionByIndex(index) {
|
|
5132
|
+
const options = this.options.toArray();
|
|
5133
|
+
if (index < 0 || index >= options.length)
|
|
5134
|
+
return;
|
|
5135
|
+
const option = options[index];
|
|
5136
|
+
if (option.disabled)
|
|
5137
|
+
return;
|
|
5138
|
+
// Atualizar o valor selecionado
|
|
5139
|
+
this.selectedValue = option.value;
|
|
5140
|
+
// Marcar a opção como selecionada
|
|
5141
|
+
option.selected = true;
|
|
5142
|
+
// Marcar todas as outras como não selecionadas
|
|
5143
|
+
this.options.forEach(o => {
|
|
5144
|
+
if (o !== option) {
|
|
5145
|
+
o.selected = false;
|
|
5146
|
+
}
|
|
5147
|
+
});
|
|
5148
|
+
// Notificar a diretiva sobre a seleção
|
|
5149
|
+
this.notifyDirectiveOfSelection(option.value);
|
|
5150
|
+
// Emitir evento de mudança de seleção
|
|
5151
|
+
this.selectionChange.emit(option.value);
|
|
5152
|
+
// Notificar o Angular Forms sobre a mudança
|
|
5153
|
+
this.onChange(option.value);
|
|
5154
|
+
this.onTouched();
|
|
5155
|
+
// Forçar detecção de mudanças
|
|
5156
|
+
this.cdr.detectChanges();
|
|
5157
|
+
}
|
|
5158
|
+
updateSelectedStates() {
|
|
5159
|
+
const items = this.options.toArray();
|
|
5160
|
+
items.forEach((opt, i) => opt.selected = i === this.activeIndex);
|
|
5161
|
+
}
|
|
5162
|
+
highlightNext() {
|
|
5163
|
+
const length = this.options.length;
|
|
5164
|
+
if (!length)
|
|
5165
|
+
return;
|
|
5166
|
+
this.activeIndex = (this.activeIndex + 1) % length;
|
|
5167
|
+
this.updateSelectedStates();
|
|
5168
|
+
this.scrollToActive();
|
|
5169
|
+
}
|
|
5170
|
+
highlightPrevious() {
|
|
5171
|
+
const length = this.options.length;
|
|
5172
|
+
if (!length)
|
|
5173
|
+
return;
|
|
5174
|
+
this.activeIndex = (this.activeIndex - 1 + length) % length;
|
|
5175
|
+
this.updateSelectedStates();
|
|
5176
|
+
this.scrollToActive();
|
|
5177
|
+
}
|
|
5178
|
+
scrollToActive() {
|
|
5179
|
+
const opts = this.options.toArray();
|
|
5180
|
+
if (this.activeIndex < 0 || this.activeIndex >= opts.length)
|
|
5181
|
+
return;
|
|
5182
|
+
const host = opts[this.activeIndex].nativeElement;
|
|
5183
|
+
if (host && host.scrollIntoView) {
|
|
5184
|
+
host.scrollIntoView({ block: 'nearest' });
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5187
|
+
selectActive() {
|
|
5188
|
+
if (this.activeIndex < 0)
|
|
5189
|
+
return;
|
|
5190
|
+
const opt = this.options.toArray()[this.activeIndex];
|
|
5191
|
+
if (opt?.disabled)
|
|
5192
|
+
return;
|
|
5193
|
+
this.selectOption(opt);
|
|
5194
|
+
}
|
|
5195
|
+
// chamado por matcha-option quando clicado
|
|
5196
|
+
selectOption(option) {
|
|
5197
|
+
console.log('MatchaSelect: Opção selecionada', {
|
|
5198
|
+
option,
|
|
5199
|
+
value: option.value,
|
|
5200
|
+
selected: option.selected,
|
|
5201
|
+
optionsLength: this.options.length,
|
|
5202
|
+
allOptions: this.options.toArray()
|
|
5203
|
+
});
|
|
5204
|
+
// Armazenar o valor selecionado
|
|
5205
|
+
this.selectedValue = option.value;
|
|
5206
|
+
// Marcar a opção como selecionada diretamente
|
|
5207
|
+
option.selected = true;
|
|
5208
|
+
// Marcar todas as outras como não selecionadas
|
|
5209
|
+
this.options.forEach(o => {
|
|
5210
|
+
if (o !== option) {
|
|
5211
|
+
o.selected = false;
|
|
5212
|
+
}
|
|
5213
|
+
});
|
|
5214
|
+
console.log('MatchaSelect: Após marcar seleção', {
|
|
5215
|
+
selectedOption: option,
|
|
5216
|
+
selected: option.selected,
|
|
5217
|
+
selectedValue: this.selectedValue,
|
|
5218
|
+
allOptions: this.options.toArray().map(o => ({ value: o.value, selected: o.selected }))
|
|
5219
|
+
});
|
|
5220
|
+
// Notificar a diretiva sobre a seleção antes de fechar o painel
|
|
5221
|
+
this.notifyDirectiveOfSelection(option.value);
|
|
5222
|
+
// Emitir evento de mudança de seleção
|
|
5223
|
+
this.selectionChange.emit(option.value);
|
|
5224
|
+
// Notificar o Angular Forms sobre a mudança
|
|
5225
|
+
this.onChange(option.value);
|
|
5226
|
+
this.onTouched();
|
|
5227
|
+
// Fechamos painel automaticamente
|
|
5228
|
+
console.log('MatchaSelect: Fechando painel após seleção');
|
|
5229
|
+
this.closePanel();
|
|
5230
|
+
// Forçar detecção de mudanças para garantir que o painel seja fechado
|
|
5231
|
+
this.cdr.detectChanges();
|
|
5232
|
+
}
|
|
5233
|
+
getSelectedValue() {
|
|
5234
|
+
// Usar o valor armazenado se disponível, senão buscar na QueryList
|
|
5235
|
+
const value = this.selectedValue !== undefined ? this.selectedValue : this.options.find(o => o.selected)?.value;
|
|
5236
|
+
console.log('MatchaSelect: getSelectedValue chamado', {
|
|
5237
|
+
selectedValue: this.selectedValue,
|
|
5238
|
+
value,
|
|
5239
|
+
allOptions: this.options.toArray().map(o => ({ value: o.value, selected: o.selected }))
|
|
5240
|
+
});
|
|
5241
|
+
return value;
|
|
5242
|
+
}
|
|
5243
|
+
// Método para definir valor programaticamente
|
|
5244
|
+
setValue(value) {
|
|
5245
|
+
this.selectedValue = value;
|
|
5246
|
+
this.cdr.detectChanges();
|
|
5247
|
+
}
|
|
5248
|
+
// Método para limpar seleção
|
|
5249
|
+
clearSelection() {
|
|
5250
|
+
this.selectedValue = undefined;
|
|
5251
|
+
this.options.forEach(o => o.selected = false);
|
|
5252
|
+
this.cdr.detectChanges();
|
|
5253
|
+
}
|
|
5254
|
+
// ControlValueAccessor implementation
|
|
5255
|
+
writeValue(value) {
|
|
5256
|
+
this.selectedValue = value;
|
|
5257
|
+
this.cdr.detectChanges();
|
|
5258
|
+
}
|
|
5259
|
+
registerOnChange(fn) {
|
|
5260
|
+
this.onChange = fn;
|
|
5261
|
+
}
|
|
5262
|
+
registerOnTouched(fn) {
|
|
5263
|
+
this.onTouched = fn;
|
|
5264
|
+
}
|
|
5265
|
+
setDisabledState(isDisabled) {
|
|
5266
|
+
this.isDisabled = isDisabled;
|
|
5267
|
+
this.cdr.detectChanges();
|
|
5268
|
+
}
|
|
5269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5270
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSelectComponent, isStandalone: false, selector: "matcha-select", inputs: { placement: "placement", maxHeight: "maxHeight", minWidth: "minWidth", placeholder: "placeholder", disabled: "disabled" }, outputs: { opened: "opened", closed: "closed", selectionChange: "selectionChange" }, providers: [
|
|
5271
|
+
{
|
|
5272
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5273
|
+
useExisting: forwardRef(() => MatchaSelectComponent),
|
|
5274
|
+
multi: true
|
|
5275
|
+
}
|
|
5276
|
+
], queries: [{ propertyName: "options", predicate: MatchaOptionComponent, descendants: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: MatchaPanelComponent, descendants: true }], ngImport: i0, template: "<div class=\"matcha-select-container\" [class.matcha-select-disabled]=\"disabled || isDisabled\">\n <div\n class=\"matcha-select-trigger\"\n [class.matcha-select-open]=\"open\"\n [class.matcha-select-disabled]=\"disabled || isDisabled\"\n (click)=\"onTriggerClick()\"\n [attr.tabindex]=\"(disabled || isDisabled) ? -1 : 0\"\n role=\"combobox\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-disabled]=\"disabled || isDisabled\">\n\n <span class=\"matcha-select-value\" [class.matcha-select-placeholder]=\"!selectedValue\">\n {{ selectedValue || placeholder }}\n </span>\n\n <span class=\"matcha-select-arrow\" [class.matcha-select-arrow-open]=\"open\">\n \u25BC\n </span>\n </div>\n\n <matcha-panel\n #panel\n [placement]=\"placement\"\n [maxHeight]=\"maxHeight\"\n [minWidth]=\"minWidth\"\n [open]=\"open\">\n <ng-content></ng-content>\n </matcha-panel>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaPanelComponent, selector: "matcha-panel", inputs: ["placement", "maxHeight", "minWidth", "offset", "triggerElement", "open"], outputs: ["opened", "closed"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
5277
|
+
}
|
|
5278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectComponent, decorators: [{
|
|
5279
|
+
type: Component,
|
|
5280
|
+
args: [{ selector: 'matcha-select', encapsulation: ViewEncapsulation.None, standalone: false, providers: [
|
|
5281
|
+
{
|
|
5282
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5283
|
+
useExisting: forwardRef(() => MatchaSelectComponent),
|
|
5284
|
+
multi: true
|
|
5285
|
+
}
|
|
5286
|
+
], template: "<div class=\"matcha-select-container\" [class.matcha-select-disabled]=\"disabled || isDisabled\">\n <div\n class=\"matcha-select-trigger\"\n [class.matcha-select-open]=\"open\"\n [class.matcha-select-disabled]=\"disabled || isDisabled\"\n (click)=\"onTriggerClick()\"\n [attr.tabindex]=\"(disabled || isDisabled) ? -1 : 0\"\n role=\"combobox\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-disabled]=\"disabled || isDisabled\">\n\n <span class=\"matcha-select-value\" [class.matcha-select-placeholder]=\"!selectedValue\">\n {{ selectedValue || placeholder }}\n </span>\n\n <span class=\"matcha-select-arrow\" [class.matcha-select-arrow-open]=\"open\">\n \u25BC\n </span>\n </div>\n\n <matcha-panel\n #panel\n [placement]=\"placement\"\n [maxHeight]=\"maxHeight\"\n [minWidth]=\"minWidth\"\n [open]=\"open\">\n <ng-content></ng-content>\n </matcha-panel>\n</div>\n" }]
|
|
5287
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { options: [{
|
|
5288
|
+
type: ContentChildren,
|
|
5289
|
+
args: [MatchaOptionComponent, { descendants: true }]
|
|
5290
|
+
}], panel: [{
|
|
5291
|
+
type: ViewChild,
|
|
5292
|
+
args: [MatchaPanelComponent]
|
|
5293
|
+
}], placement: [{
|
|
5294
|
+
type: Input
|
|
5295
|
+
}], maxHeight: [{
|
|
5296
|
+
type: Input
|
|
5297
|
+
}], minWidth: [{
|
|
5298
|
+
type: Input
|
|
5299
|
+
}], placeholder: [{
|
|
5300
|
+
type: Input
|
|
5301
|
+
}], disabled: [{
|
|
5302
|
+
type: Input
|
|
5303
|
+
}], opened: [{
|
|
5304
|
+
type: Output
|
|
5305
|
+
}], closed: [{
|
|
5306
|
+
type: Output
|
|
5307
|
+
}], selectionChange: [{
|
|
5308
|
+
type: Output
|
|
5309
|
+
}] } });
|
|
5310
|
+
|
|
5311
|
+
/**
|
|
5312
|
+
* Service to internationalize the paginator component.
|
|
5313
|
+
* Based on Angular Material's MatPaginatorIntl
|
|
5314
|
+
*/
|
|
5315
|
+
class MatchaPaginatorIntl {
|
|
5316
|
+
constructor() {
|
|
5317
|
+
/** Stream to emit from when labels are changed. Used by the paginator to update the labels. */
|
|
5318
|
+
this.changes = new Subject();
|
|
5319
|
+
/** A label for the page size selector. */
|
|
5320
|
+
this.itemsPerPageLabel = 'Itens por página:';
|
|
5321
|
+
/** A label for the button that increments the current page. */
|
|
5322
|
+
this.nextPageLabel = 'Próxima página';
|
|
5323
|
+
/** A label for the button that decrements the current page. */
|
|
5324
|
+
this.previousPageLabel = 'Página anterior';
|
|
5325
|
+
/** A label for the button that moves to the first page. */
|
|
5326
|
+
this.firstPageLabel = 'Primeira página';
|
|
5327
|
+
/** A label for the button that moves to the last page. */
|
|
5328
|
+
this.lastPageLabel = 'Última página';
|
|
5329
|
+
/**
|
|
5330
|
+
* A label for the range of items within the current page and the length of the whole list.
|
|
5331
|
+
*/
|
|
5332
|
+
this.getRangeLabel = (page, pageSize, length) => {
|
|
5333
|
+
if (length === 0) {
|
|
5334
|
+
return `0 de 0`;
|
|
5335
|
+
}
|
|
5336
|
+
const amountPages = Math.ceil(length / pageSize);
|
|
5337
|
+
return `Página ${page + 1} de ${amountPages}`;
|
|
5338
|
+
};
|
|
5339
|
+
}
|
|
5340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5341
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorIntl, providedIn: 'root' }); }
|
|
5342
|
+
}
|
|
5343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorIntl, decorators: [{
|
|
5344
|
+
type: Injectable,
|
|
5345
|
+
args: [{ providedIn: 'root' }]
|
|
5346
|
+
}] });
|
|
5347
|
+
|
|
5348
|
+
class MatchaPaginatorComponent {
|
|
5349
|
+
constructor(_intl, _changeDetectorRef) {
|
|
5350
|
+
this._intl = _intl;
|
|
5351
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
5352
|
+
this.pageIndex = 0;
|
|
5353
|
+
this.length = 0;
|
|
5354
|
+
this.pageSize = 50;
|
|
5355
|
+
this.pageSizeOptions = [];
|
|
5356
|
+
/** Color theme for active page button. Defaults to 'accent' */
|
|
5357
|
+
this.color = 'accent';
|
|
5358
|
+
this.page = new EventEmitter();
|
|
5359
|
+
this._intlChanges = _intl.changes.subscribe(() => {
|
|
5360
|
+
// Trigger change detection when labels change
|
|
5361
|
+
this._changeDetectorRef.markForCheck();
|
|
5362
|
+
});
|
|
5363
|
+
}
|
|
5364
|
+
ngOnDestroy() {
|
|
5365
|
+
this._intlChanges.unsubscribe();
|
|
5366
|
+
}
|
|
5367
|
+
get currentPage() {
|
|
5368
|
+
return this.pageIndex + 1;
|
|
5369
|
+
}
|
|
5370
|
+
get totalPages() {
|
|
5371
|
+
if (this.pageSize === 0)
|
|
5372
|
+
return 0;
|
|
5373
|
+
return Math.ceil(this.length / this.pageSize);
|
|
5374
|
+
}
|
|
5375
|
+
get hasPreviousPage() {
|
|
5376
|
+
return this.pageIndex > 0;
|
|
5377
|
+
}
|
|
5378
|
+
get hasNextPage() {
|
|
5379
|
+
return this.pageIndex < this.totalPages - 1;
|
|
5380
|
+
}
|
|
5381
|
+
get displayPages() {
|
|
5382
|
+
const current = this.currentPage;
|
|
5383
|
+
const total = this.totalPages;
|
|
5384
|
+
const pages = [];
|
|
5385
|
+
if (total <= 1) {
|
|
5386
|
+
if (total === 1) {
|
|
5387
|
+
pages.push(1);
|
|
5388
|
+
}
|
|
5389
|
+
return pages;
|
|
5390
|
+
}
|
|
5391
|
+
if (total <= 5) {
|
|
5392
|
+
for (let i = 1; i <= total; i++) {
|
|
5393
|
+
pages.push(i);
|
|
4567
5394
|
}
|
|
4568
5395
|
}
|
|
4569
5396
|
else {
|
|
@@ -4594,8 +5421,8 @@ class MatchaPaginatorComponent {
|
|
|
4594
5421
|
return item;
|
|
4595
5422
|
}
|
|
4596
5423
|
/** Check if item is a number (for template use only) */
|
|
4597
|
-
|
|
4598
|
-
return typeof value;
|
|
5424
|
+
isNumber(value) {
|
|
5425
|
+
return typeof value === 'number';
|
|
4599
5426
|
}
|
|
4600
5427
|
/** Navigate to previous page */
|
|
4601
5428
|
previousPage() {
|
|
@@ -4633,12 +5460,12 @@ class MatchaPaginatorComponent {
|
|
|
4633
5460
|
};
|
|
4634
5461
|
this.page.emit(event);
|
|
4635
5462
|
}
|
|
4636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorComponent, deps: [{ token: MatchaPaginatorIntl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaPaginatorComponent, isStandalone: false, selector: "matcha-paginator", inputs: { pageIndex: "pageIndex", length: "length", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", color: "color" }, outputs: { page: "page" }, ngImport: i0, template: "<div class=\"matcha-paginator flex-row flex-align-center gap-16\">\n <!-- Items per page selector -->\n <div class=\"flex-row flex-align-center gap-8\" *ngIf=\"pageSizeOptions && pageSizeOptions.length > 0\">\n <span class=\"text-sm color-placeholder\">{{ _intl.itemsPerPageLabel }}</span>\n <div class=\"page-size-selector\">\n <select \n class=\"page-size-select radius-8\" \n [value]=\"pageSize\" \n (change)=\"onPageSizeChange($event)\">\n <option *ngFor=\"let option of pageSizeOptions\" [value]=\"option\">\n {{ option }}\n </option>\n </select>\n <div class=\"select-icon\">\n <matcha-icon name=\"action_arrow_down\" size=\"sm\" color=\"fg\"></matcha-icon>\n </div>\n </div>\n </div>\n \n <!-- Page navigation -->\n <div class=\"flex-row flex-align-center gap-8\">\n <!-- Previous page button -->\n <button \n class=\"nav-button\" \n [disabled]=\"!hasPreviousPage\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\">\n <matcha-icon name=\"action_arrow_left\" size=\"sm\"></matcha-icon>\n </button>\n \n <!-- Page numbers -->\n <div class=\"flex-row flex-align-center gap-4\">\n <ng-container *ngFor=\"let page of displayPages; trackBy: trackByPage\">\n <button \n *ngIf=\"isNumber(page); else ellipsis\"\n class=\"page-button\"\n [class.active]=\"page === currentPage\"\n [class.radius-full]=\"page === currentPage\"\n [ngClass]=\"page === currentPage ? color : ''\"\n (click)=\"goToPage(page)\"\n [attr.aria-label]=\"'Ir para p\u00E1gina ' + page\">\n {{ page }}\n </button>\n <ng-template #ellipsis>\n <span class=\"ellipsis\">{{ page }}</span>\n </ng-template>\n </ng-container>\n </div>\n \n <!-- Next page button -->\n <button \n class=\"nav-button\" \n [disabled]=\"!hasNextPage\"\n (click)=\"nextPage()\"\n [attr.aria-label]=\"_intl.nextPageLabel\">\n <matcha-icon name=\"action_arrow_right\" size=\"sm\"></matcha-icon>\n </button>\n </div>\n </div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4638
5465
|
}
|
|
4639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorComponent, decorators: [{
|
|
4640
5467
|
type: Component,
|
|
4641
|
-
args: [{ selector: 'matcha-paginator', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"matcha-paginator flex-row flex-align-center gap-16\">\n <!-- Items per page selector -->\n <div class=\"flex-row flex-align-center gap-8\" *ngIf=\"pageSizeOptions && pageSizeOptions.length > 0\">\n <span class=\"text-sm color-placeholder\">{{ _intl.itemsPerPageLabel }}</span>\n <div class=\"page-size-selector\">\n <select \n class=\"page-size-select radius-8\" \n [value]=\"pageSize\" \n (change)=\"onPageSizeChange($event)\">\n <option *ngFor=\"let option of pageSizeOptions\" [value]=\"option\">\n {{ option }}\n </option>\n </select>\n <div class=\"select-icon\">\n <matcha-icon name=\"action_arrow_down\" size=\"sm\" color=\"fg\"></matcha-icon>\n </div>\n </div>\n </div>\n \n <!-- Page navigation -->\n <div class=\"flex-row flex-align-center gap-8\">\n <!-- Previous page button -->\n <button \n class=\"nav-button\" \n [disabled]=\"!hasPreviousPage\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\">\n <matcha-icon name=\"action_arrow_left\" size=\"sm\"></matcha-icon>\n </button>\n \n <!-- Page numbers -->\n <div class=\"flex-row flex-align-center gap-4\">\n <ng-container *ngFor=\"let page of displayPages; trackBy: trackByPage\">\n <button \n *ngIf=\"
|
|
5468
|
+
args: [{ selector: 'matcha-paginator', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"matcha-paginator flex-row flex-align-center gap-16\">\n <!-- Items per page selector -->\n <div class=\"flex-row flex-align-center gap-8\" *ngIf=\"pageSizeOptions && pageSizeOptions.length > 0\">\n <span class=\"text-sm color-placeholder\">{{ _intl.itemsPerPageLabel }}</span>\n <div class=\"page-size-selector\">\n <select \n class=\"page-size-select radius-8\" \n [value]=\"pageSize\" \n (change)=\"onPageSizeChange($event)\">\n <option *ngFor=\"let option of pageSizeOptions\" [value]=\"option\">\n {{ option }}\n </option>\n </select>\n <div class=\"select-icon\">\n <matcha-icon name=\"action_arrow_down\" size=\"sm\" color=\"fg\"></matcha-icon>\n </div>\n </div>\n </div>\n \n <!-- Page navigation -->\n <div class=\"flex-row flex-align-center gap-8\">\n <!-- Previous page button -->\n <button \n class=\"nav-button\" \n [disabled]=\"!hasPreviousPage\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\">\n <matcha-icon name=\"action_arrow_left\" size=\"sm\"></matcha-icon>\n </button>\n \n <!-- Page numbers -->\n <div class=\"flex-row flex-align-center gap-4\">\n <ng-container *ngFor=\"let page of displayPages; trackBy: trackByPage\">\n <button \n *ngIf=\"isNumber(page); else ellipsis\"\n class=\"page-button\"\n [class.active]=\"page === currentPage\"\n [class.radius-full]=\"page === currentPage\"\n [ngClass]=\"page === currentPage ? color : ''\"\n (click)=\"goToPage(page)\"\n [attr.aria-label]=\"'Ir para p\u00E1gina ' + page\">\n {{ page }}\n </button>\n <ng-template #ellipsis>\n <span class=\"ellipsis\">{{ page }}</span>\n </ng-template>\n </ng-container>\n </div>\n \n <!-- Next page button -->\n <button \n class=\"nav-button\" \n [disabled]=\"!hasNextPage\"\n (click)=\"nextPage()\"\n [attr.aria-label]=\"_intl.nextPageLabel\">\n <matcha-icon name=\"action_arrow_right\" size=\"sm\"></matcha-icon>\n </button>\n </div>\n </div>" }]
|
|
4642
5469
|
}], ctorParameters: () => [{ type: MatchaPaginatorIntl }, { type: i0.ChangeDetectorRef }], propDecorators: { pageIndex: [{
|
|
4643
5470
|
type: Input
|
|
4644
5471
|
}], length: [{
|
|
@@ -4653,6 +5480,325 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4653
5480
|
type: Output
|
|
4654
5481
|
}] } });
|
|
4655
5482
|
|
|
5483
|
+
class CopyButtonComponent {
|
|
5484
|
+
// Método para copiar código para a área de transferência
|
|
5485
|
+
async copyToClipboard() {
|
|
5486
|
+
// Busca o componente matcha-highlight pai
|
|
5487
|
+
const highlightComponent = this.elementRef.nativeElement.closest('matcha-highlight');
|
|
5488
|
+
// Primeiro tenta encontrar textarea (para casos onde ainda não foi processado)
|
|
5489
|
+
let textarea = highlightComponent?.querySelector('textarea');
|
|
5490
|
+
let textToCopy = '';
|
|
5491
|
+
if (textarea) {
|
|
5492
|
+
// Se encontrou textarea, usa o valor dela
|
|
5493
|
+
textToCopy = textarea.value;
|
|
5494
|
+
}
|
|
5495
|
+
else {
|
|
5496
|
+
// Se não encontrou textarea, procura pelo código destacado
|
|
5497
|
+
const codeElement = highlightComponent?.querySelector('code.highlight');
|
|
5498
|
+
if (codeElement) {
|
|
5499
|
+
textToCopy = codeElement.textContent || codeElement.innerText || '';
|
|
5500
|
+
}
|
|
5501
|
+
else {
|
|
5502
|
+
console.warn('Nenhum conteúdo encontrado para copiar');
|
|
5503
|
+
return;
|
|
5504
|
+
}
|
|
5505
|
+
}
|
|
5506
|
+
if (!textToCopy.trim()) {
|
|
5507
|
+
console.warn('Conteúdo vazio para copiar');
|
|
5508
|
+
return;
|
|
5509
|
+
}
|
|
5510
|
+
try {
|
|
5511
|
+
await navigator.clipboard.writeText(textToCopy);
|
|
5512
|
+
console.log(`Código ${this.type} copiado para a área de transferência!`);
|
|
5513
|
+
this.copied.emit({ text: textToCopy, type: this.type });
|
|
5514
|
+
// Feedback visual temporário
|
|
5515
|
+
this.showCopyFeedback();
|
|
5516
|
+
}
|
|
5517
|
+
catch (err) {
|
|
5518
|
+
console.error('Erro ao copiar código:', err);
|
|
5519
|
+
// Fallback para navegadores mais antigos
|
|
5520
|
+
this.fallbackCopyToClipboard(textToCopy);
|
|
5521
|
+
}
|
|
5522
|
+
}
|
|
5523
|
+
// Fallback para navegadores que não suportam clipboard API
|
|
5524
|
+
fallbackCopyToClipboard(textToCopy) {
|
|
5525
|
+
// Cria um textarea temporário para usar o método antigo
|
|
5526
|
+
const tempTextarea = document.createElement('textarea');
|
|
5527
|
+
tempTextarea.value = textToCopy;
|
|
5528
|
+
tempTextarea.style.position = 'fixed';
|
|
5529
|
+
tempTextarea.style.left = '-999999px';
|
|
5530
|
+
tempTextarea.style.top = '-999999px';
|
|
5531
|
+
document.body.appendChild(tempTextarea);
|
|
5532
|
+
tempTextarea.focus();
|
|
5533
|
+
tempTextarea.select();
|
|
5534
|
+
tempTextarea.setSelectionRange(0, 99999); // Para mobile
|
|
5535
|
+
try {
|
|
5536
|
+
document.execCommand('copy');
|
|
5537
|
+
console.log('Código copiado para a área de transferência!');
|
|
5538
|
+
this.copied.emit({ text: textToCopy, type: this.type });
|
|
5539
|
+
this.showCopyFeedback();
|
|
5540
|
+
}
|
|
5541
|
+
catch (err) {
|
|
5542
|
+
console.error('Erro ao copiar código:', err);
|
|
5543
|
+
}
|
|
5544
|
+
finally {
|
|
5545
|
+
document.body.removeChild(tempTextarea);
|
|
5546
|
+
}
|
|
5547
|
+
}
|
|
5548
|
+
// Feedback visual quando copiado
|
|
5549
|
+
showCopyFeedback() {
|
|
5550
|
+
const button = this.elementRef.nativeElement.querySelector('button');
|
|
5551
|
+
if (button) {
|
|
5552
|
+
const originalText = button.title;
|
|
5553
|
+
button.title = 'Copiado!';
|
|
5554
|
+
// Muda o ícone para checked
|
|
5555
|
+
this.isCopied = true;
|
|
5556
|
+
this.currentIcon = 'action_done';
|
|
5557
|
+
setTimeout(() => {
|
|
5558
|
+
button.title = originalText;
|
|
5559
|
+
button.style.transform = '';
|
|
5560
|
+
// Volta para o ícone original após 2 segundos
|
|
5561
|
+
setTimeout(() => {
|
|
5562
|
+
this.isCopied = false;
|
|
5563
|
+
this.currentIcon = this.icon;
|
|
5564
|
+
}, 3000);
|
|
5565
|
+
}, 1000);
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
// Método para obter as classes CSS do botão
|
|
5569
|
+
getButtonClasses() {
|
|
5570
|
+
let classes = `position-${this.position} top-8 right-8 m-8 z-index-10`;
|
|
5571
|
+
if (this.customClass) {
|
|
5572
|
+
classes += ` ${this.customClass}`;
|
|
5573
|
+
}
|
|
5574
|
+
return classes;
|
|
5575
|
+
}
|
|
5576
|
+
constructor(elementRef) {
|
|
5577
|
+
this.elementRef = elementRef;
|
|
5578
|
+
this.type = 'Código';
|
|
5579
|
+
this.size = 'tiny';
|
|
5580
|
+
this.icon = 'copy-out';
|
|
5581
|
+
this.position = 'absolute';
|
|
5582
|
+
this.customClass = '';
|
|
5583
|
+
this.copied = new EventEmitter();
|
|
5584
|
+
// Propriedade para controlar o ícone do botão
|
|
5585
|
+
this.currentIcon = this.icon;
|
|
5586
|
+
this.isCopied = false;
|
|
5587
|
+
}
|
|
5588
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: CopyButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5589
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: CopyButtonComponent, isStandalone: false, selector: "matcha-copy-button", inputs: { type: "type", size: "size", icon: "icon", position: "position", customClass: "customClass" }, outputs: { copied: "copied" }, ngImport: i0, template: "<button\n matcha-button\n [size]=\"size\"\n pill=\"true\"\n icon=\"true\"\n [class]=\"getButtonClasses()\"\n (click)=\"copyToClipboard()\"\n [title]=\"'Copiar c\u00F3digo ' + type\">\n <matcha-icon [name]=\"currentIcon\" [size]=\"size === 'tiny' ? 'small' : size\"></matcha-icon>\n</button>\n\n\n", styles: [".position-absolute{position:absolute}.position-relative{position:relative}.top-8{top:8px}.right-8{right:8px}.m-8{margin:8px}.z-index-10{z-index:10}\n"], dependencies: [{ kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }, { kind: "component", type: MatchaButtonComponent, selector: "[matcha-button]", inputs: ["size", "size-xs", "size-sm", "size-md", "size-lg", "size-xl", "color", "basic", "outline", "alpha", "pill", "link", "icon"] }] }); }
|
|
5590
|
+
}
|
|
5591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: CopyButtonComponent, decorators: [{
|
|
5592
|
+
type: Component,
|
|
5593
|
+
args: [{ selector: 'matcha-copy-button', standalone: false, template: "<button\n matcha-button\n [size]=\"size\"\n pill=\"true\"\n icon=\"true\"\n [class]=\"getButtonClasses()\"\n (click)=\"copyToClipboard()\"\n [title]=\"'Copiar c\u00F3digo ' + type\">\n <matcha-icon [name]=\"currentIcon\" [size]=\"size === 'tiny' ? 'small' : size\"></matcha-icon>\n</button>\n\n\n", styles: [".position-absolute{position:absolute}.position-relative{position:relative}.top-8{top:8px}.right-8{right:8px}.m-8{margin:8px}.z-index-10{z-index:10}\n"] }]
|
|
5594
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { type: [{
|
|
5595
|
+
type: Input
|
|
5596
|
+
}], size: [{
|
|
5597
|
+
type: Input
|
|
5598
|
+
}], icon: [{
|
|
5599
|
+
type: Input
|
|
5600
|
+
}], position: [{
|
|
5601
|
+
type: Input
|
|
5602
|
+
}], customClass: [{
|
|
5603
|
+
type: Input
|
|
5604
|
+
}], copied: [{
|
|
5605
|
+
type: Output
|
|
5606
|
+
}] } });
|
|
5607
|
+
|
|
5608
|
+
// Prism.js é carregado no módulo highlight.module.ts
|
|
5609
|
+
class MatchaHighlightComponent {
|
|
5610
|
+
get themeAttr() { return this.theme; }
|
|
5611
|
+
/**
|
|
5612
|
+
* Constructor
|
|
5613
|
+
*
|
|
5614
|
+
* @param {ElementRef} _elementRef
|
|
5615
|
+
* @param {HttpClient} _httpClient
|
|
5616
|
+
*/
|
|
5617
|
+
constructor(_elementRef, _httpClient) {
|
|
5618
|
+
this._elementRef = _elementRef;
|
|
5619
|
+
this._httpClient = _httpClient;
|
|
5620
|
+
// Theme
|
|
5621
|
+
this.theme = '';
|
|
5622
|
+
// Set the private defaults
|
|
5623
|
+
this._unsubscribeAll = new Subject();
|
|
5624
|
+
}
|
|
5625
|
+
// -----------------------------------------------------------------------------------------------------
|
|
5626
|
+
// @ Lifecycle hooks
|
|
5627
|
+
// -----------------------------------------------------------------------------------------------------
|
|
5628
|
+
/**
|
|
5629
|
+
* On init
|
|
5630
|
+
*/
|
|
5631
|
+
ngOnInit() {
|
|
5632
|
+
// Debug: Verificar se Prism está carregado
|
|
5633
|
+
const Prism = window.Prism;
|
|
5634
|
+
console.log('Prism loaded:', typeof Prism !== 'undefined');
|
|
5635
|
+
if (typeof Prism !== 'undefined') {
|
|
5636
|
+
console.log('Prism languages:', Object.keys(Prism.languages));
|
|
5637
|
+
}
|
|
5638
|
+
// Aplicar tema
|
|
5639
|
+
// this.applyTheme();
|
|
5640
|
+
// If there is no language defined, return...
|
|
5641
|
+
if (!this.lang) {
|
|
5642
|
+
return;
|
|
5643
|
+
}
|
|
5644
|
+
// If the path is defined...
|
|
5645
|
+
if (this.path) {
|
|
5646
|
+
// Get the source
|
|
5647
|
+
this._httpClient.get(this.path, { responseType: 'text' })
|
|
5648
|
+
.pipe(takeUntil(this._unsubscribeAll))
|
|
5649
|
+
.subscribe((response) => {
|
|
5650
|
+
// Highlight it
|
|
5651
|
+
this.highlight(response);
|
|
5652
|
+
});
|
|
5653
|
+
}
|
|
5654
|
+
// If the path is not defined and the source element exists...
|
|
5655
|
+
if (!this.path && this.source) {
|
|
5656
|
+
// Highlight it
|
|
5657
|
+
this.highlight(this.source.nativeElement.value);
|
|
5658
|
+
}
|
|
5659
|
+
}
|
|
5660
|
+
/**
|
|
5661
|
+
* On destroy
|
|
5662
|
+
*/
|
|
5663
|
+
ngOnDestroy() {
|
|
5664
|
+
// Unsubscribe from all subscriptions
|
|
5665
|
+
this._unsubscribeAll.next(null);
|
|
5666
|
+
this._unsubscribeAll.complete();
|
|
5667
|
+
}
|
|
5668
|
+
// -----------------------------------------------------------------------------------------------------
|
|
5669
|
+
// @ Public methods
|
|
5670
|
+
// -----------------------------------------------------------------------------------------------------
|
|
5671
|
+
/**
|
|
5672
|
+
* Apply theme to the component
|
|
5673
|
+
*/
|
|
5674
|
+
// applyTheme(): void
|
|
5675
|
+
// {
|
|
5676
|
+
// const element = this._elementRef.nativeElement;
|
|
5677
|
+
// // Remove existing theme classes
|
|
5678
|
+
// element.classList.remove('theme-matcha', 'theme-default', 'theme-dark', 'theme-coy', 'theme-funky', 'theme-okaidia', 'theme-solarizedlight', 'theme-tomorrow', 'theme-twilight');
|
|
5679
|
+
// // Add new theme class
|
|
5680
|
+
// element.classList.add(`theme-${this.theme}`);
|
|
5681
|
+
// }
|
|
5682
|
+
/**
|
|
5683
|
+
* Highlight the given source code
|
|
5684
|
+
*
|
|
5685
|
+
* @param sourceCode
|
|
5686
|
+
*/
|
|
5687
|
+
highlight(sourceCode) {
|
|
5688
|
+
const Prism = window.Prism;
|
|
5689
|
+
console.log('Highlighting code:', sourceCode.substring(0, 50) + '...');
|
|
5690
|
+
console.log('Language:', this.lang);
|
|
5691
|
+
console.log('Prism available:', typeof Prism !== 'undefined');
|
|
5692
|
+
// Check if Prism is available
|
|
5693
|
+
if (typeof Prism === 'undefined') {
|
|
5694
|
+
console.error('Prism.js is not loaded');
|
|
5695
|
+
this._elementRef.nativeElement.innerHTML = '<pre><code>' + sourceCode + '</code></pre>';
|
|
5696
|
+
return;
|
|
5697
|
+
}
|
|
5698
|
+
// Check if the language is supported
|
|
5699
|
+
if (!Prism.languages[this.lang]) {
|
|
5700
|
+
console.error(`Language "${this.lang}" is not supported by Prism.js`);
|
|
5701
|
+
console.log('Available languages:', Object.keys(Prism.languages));
|
|
5702
|
+
this._elementRef.nativeElement.innerHTML = '<pre><code>' + sourceCode + '</code></pre>';
|
|
5703
|
+
return;
|
|
5704
|
+
}
|
|
5705
|
+
// Split the source into lines
|
|
5706
|
+
const sourceLines = sourceCode.split('\n');
|
|
5707
|
+
// Verificar se o array não está vazio
|
|
5708
|
+
if (sourceLines.length === 0) {
|
|
5709
|
+
console.warn('Source code is empty');
|
|
5710
|
+
this._elementRef.nativeElement.innerHTML = '<pre><code></code></pre>';
|
|
5711
|
+
return;
|
|
5712
|
+
}
|
|
5713
|
+
// Remove the first and the last line of the source
|
|
5714
|
+
// code if they are blank lines. This way, the html
|
|
5715
|
+
// can be formatted properly while using matcha-highlight
|
|
5716
|
+
// component
|
|
5717
|
+
if (sourceLines.length > 0 && sourceLines[0] && !sourceLines[0].trim()) {
|
|
5718
|
+
sourceLines.shift();
|
|
5719
|
+
}
|
|
5720
|
+
if (sourceLines.length > 0 && sourceLines[sourceLines.length - 1] && !sourceLines[sourceLines.length - 1].trim()) {
|
|
5721
|
+
sourceLines.pop();
|
|
5722
|
+
}
|
|
5723
|
+
// Find the first non-whitespace char index in
|
|
5724
|
+
// Verificar novamente se o array não está vazio após remoções
|
|
5725
|
+
if (sourceLines.length === 0) {
|
|
5726
|
+
console.warn('Source code is empty after trimming');
|
|
5727
|
+
this._elementRef.nativeElement.innerHTML = '<pre><code></code></pre>';
|
|
5728
|
+
return;
|
|
5729
|
+
}
|
|
5730
|
+
// the first line of the source code
|
|
5731
|
+
const indexOfFirstChar = sourceLines[0].search(/\S|$/);
|
|
5732
|
+
// Generate the trimmed source
|
|
5733
|
+
let source = '';
|
|
5734
|
+
// Iterate through all the lines
|
|
5735
|
+
sourceLines.forEach((line, index) => {
|
|
5736
|
+
// Trim the beginning white space depending on the index
|
|
5737
|
+
// and concat the source code
|
|
5738
|
+
source = source + line.substr(indexOfFirstChar, line.length);
|
|
5739
|
+
// If it's not the last line...
|
|
5740
|
+
if (index !== sourceLines.length - 1) {
|
|
5741
|
+
// Add a line break at the end
|
|
5742
|
+
source = source + '\n';
|
|
5743
|
+
}
|
|
5744
|
+
});
|
|
5745
|
+
console.log('Processed source:', source.substring(0, 50) + '...');
|
|
5746
|
+
// Generate the highlighted code
|
|
5747
|
+
const highlightedCode = Prism.highlight(source, Prism.languages[this.lang], this.lang);
|
|
5748
|
+
console.log('Highlighted result:', highlightedCode.substring(0, 100) + '...');
|
|
5749
|
+
// Replace the innerHTML of the highlight-content div with the highlighted code
|
|
5750
|
+
const highlightContent = this._elementRef.nativeElement.querySelector('.highlight-content');
|
|
5751
|
+
if (highlightContent) {
|
|
5752
|
+
highlightContent.innerHTML =
|
|
5753
|
+
'<pre><code class="highlight language-' + this.lang + '">' + highlightedCode + '</code></pre>';
|
|
5754
|
+
}
|
|
5755
|
+
else {
|
|
5756
|
+
// Fallback: if highlight-content doesn't exist, use the old method
|
|
5757
|
+
this._elementRef.nativeElement.innerHTML =
|
|
5758
|
+
'<pre><code class="highlight language-' + this.lang + '">' + highlightedCode + '</code></pre>';
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5762
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaHighlightComponent, isStandalone: false, selector: "matcha-highlight", inputs: { lang: "lang", path: "path", theme: "theme" }, host: { properties: { "attr.theme": "this.themeAttr" } }, queries: [{ propertyName: "source", first: true, predicate: ["source"], descendants: true, static: true }], ngImport: i0, template: `
|
|
5763
|
+
<matcha-copy-button [type]="lang" class="copy-button"></matcha-copy-button>
|
|
5764
|
+
<div class="matcha-highlight-container">
|
|
5765
|
+
<div class="highlight-content">
|
|
5766
|
+
<ng-content></ng-content>
|
|
5767
|
+
</div>
|
|
5768
|
+
</div>
|
|
5769
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CopyButtonComponent, selector: "matcha-copy-button", inputs: ["type", "size", "icon", "position", "customClass"], outputs: ["copied"] }] }); }
|
|
5770
|
+
}
|
|
5771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightComponent, decorators: [{
|
|
5772
|
+
type: Component,
|
|
5773
|
+
args: [{
|
|
5774
|
+
selector: 'matcha-highlight',
|
|
5775
|
+
template: `
|
|
5776
|
+
<matcha-copy-button [type]="lang" class="copy-button"></matcha-copy-button>
|
|
5777
|
+
<div class="matcha-highlight-container">
|
|
5778
|
+
<div class="highlight-content">
|
|
5779
|
+
<ng-content></ng-content>
|
|
5780
|
+
</div>
|
|
5781
|
+
</div>
|
|
5782
|
+
`,
|
|
5783
|
+
standalone: false
|
|
5784
|
+
}]
|
|
5785
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$1.HttpClient }], propDecorators: { source: [{
|
|
5786
|
+
type: ContentChild,
|
|
5787
|
+
args: ['source', { static: true }]
|
|
5788
|
+
}], lang: [{
|
|
5789
|
+
type: Input,
|
|
5790
|
+
args: ['lang']
|
|
5791
|
+
}], path: [{
|
|
5792
|
+
type: Input,
|
|
5793
|
+
args: ['path']
|
|
5794
|
+
}], theme: [{
|
|
5795
|
+
type: Input,
|
|
5796
|
+
args: ['theme']
|
|
5797
|
+
}], themeAttr: [{
|
|
5798
|
+
type: HostBinding,
|
|
5799
|
+
args: ['attr.theme']
|
|
5800
|
+
}] } });
|
|
5801
|
+
|
|
4656
5802
|
class MatchaTooltipDirective {
|
|
4657
5803
|
constructor(el, renderer) {
|
|
4658
5804
|
this.el = el;
|
|
@@ -4794,10 +5940,10 @@ class MatchaTooltipDirective {
|
|
|
4794
5940
|
this.documentClickListener = null;
|
|
4795
5941
|
}
|
|
4796
5942
|
}
|
|
4797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4798
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
5943
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5944
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTooltipDirective, isStandalone: false, selector: "[matchaTooltip]", inputs: { tooltipText: ["matchaTooltip", "tooltipText"], tooltipDisabled: ["matchaTooltipDisabled", "tooltipDisabled"], preferAbove: ["matchaTooltipAbove", "preferAbove"], preferBelow: ["matchaTooltipBelow", "preferBelow"], preferLeft: ["matchaTooltipLeft", "preferLeft"], preferRight: ["matchaTooltipRight", "preferRight"], tooltipEnableClose: ["matchaTooltipEnableClose", "tooltipEnableClose"] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
4799
5945
|
}
|
|
4800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipDirective, decorators: [{
|
|
4801
5947
|
type: Directive,
|
|
4802
5948
|
args: [{
|
|
4803
5949
|
selector: '[matchaTooltip]',
|
|
@@ -4836,11 +5982,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4836
5982
|
}] } });
|
|
4837
5983
|
|
|
4838
5984
|
class MatchaTooltipModule {
|
|
4839
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4840
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4841
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
5985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5986
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipModule, declarations: [MatchaTooltipDirective], imports: [CommonModule], exports: [MatchaTooltipDirective] }); }
|
|
5987
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipModule, imports: [CommonModule] }); }
|
|
4842
5988
|
}
|
|
4843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTooltipModule, decorators: [{
|
|
4844
5990
|
type: NgModule,
|
|
4845
5991
|
args: [{
|
|
4846
5992
|
declarations: [MatchaTooltipDirective],
|
|
@@ -4850,11 +5996,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4850
5996
|
}] });
|
|
4851
5997
|
|
|
4852
5998
|
class MatchaIconModule {
|
|
4853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4854
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4855
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
5999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6000
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconModule, declarations: [MatchaIconComponent], imports: [CommonModule, MatchaTooltipModule], exports: [MatchaIconComponent] }); }
|
|
6001
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconModule, imports: [CommonModule, MatchaTooltipModule] }); }
|
|
4856
6002
|
}
|
|
4857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaIconModule, decorators: [{
|
|
4858
6004
|
type: NgModule,
|
|
4859
6005
|
args: [{
|
|
4860
6006
|
declarations: [MatchaIconComponent],
|
|
@@ -4864,11 +6010,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4864
6010
|
}] });
|
|
4865
6011
|
|
|
4866
6012
|
class MatchaTitleModule {
|
|
4867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4868
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4869
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6013
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6014
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleModule, declarations: [MatchaTitleComponent], imports: [CommonModule], exports: [MatchaTitleComponent] }); }
|
|
6015
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleModule, imports: [CommonModule] }); }
|
|
4870
6016
|
}
|
|
4871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTitleModule, decorators: [{
|
|
4872
6018
|
type: NgModule,
|
|
4873
6019
|
args: [{
|
|
4874
6020
|
declarations: [MatchaTitleComponent],
|
|
@@ -4878,11 +6024,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4878
6024
|
}] });
|
|
4879
6025
|
|
|
4880
6026
|
class MatchaDividerModule {
|
|
4881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4882
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4883
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6027
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6028
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerModule, declarations: [MatchaDividerComponent], imports: [CommonModule], exports: [MatchaDividerComponent] }); }
|
|
6029
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerModule, imports: [CommonModule] }); }
|
|
4884
6030
|
}
|
|
4885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDividerModule, decorators: [{
|
|
4886
6032
|
type: NgModule,
|
|
4887
6033
|
args: [{
|
|
4888
6034
|
declarations: [
|
|
@@ -4896,11 +6042,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4896
6042
|
}] });
|
|
4897
6043
|
|
|
4898
6044
|
class MatchaButtonModule {
|
|
4899
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4900
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4901
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6046
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonModule, declarations: [MatchaButtonComponent], exports: [MatchaButtonComponent] }); }
|
|
6047
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonModule }); }
|
|
4902
6048
|
}
|
|
4903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonModule, decorators: [{
|
|
4904
6050
|
type: NgModule,
|
|
4905
6051
|
args: [{
|
|
4906
6052
|
declarations: [MatchaButtonComponent],
|
|
@@ -4910,8 +6056,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4910
6056
|
}] });
|
|
4911
6057
|
|
|
4912
6058
|
class MatchaAccordionModule {
|
|
4913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4914
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6060
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionModule, declarations: [MatchaAccordionComponent,
|
|
4915
6061
|
MatchaAccordionItemComponent,
|
|
4916
6062
|
MatchaAccordionHeaderComponent,
|
|
4917
6063
|
MatchaAccordionContentComponent], imports: [CommonModule,
|
|
@@ -4923,14 +6069,14 @@ class MatchaAccordionModule {
|
|
|
4923
6069
|
MatchaAccordionItemComponent,
|
|
4924
6070
|
MatchaAccordionHeaderComponent,
|
|
4925
6071
|
MatchaAccordionContentComponent] }); }
|
|
4926
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6072
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionModule, imports: [CommonModule,
|
|
4927
6073
|
MatchaIconModule,
|
|
4928
6074
|
MatchaTitleModule,
|
|
4929
6075
|
MatchaDividerModule,
|
|
4930
6076
|
MatchaTooltipModule,
|
|
4931
6077
|
MatchaButtonModule] }); }
|
|
4932
6078
|
}
|
|
4933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAccordionModule, decorators: [{
|
|
4934
6080
|
type: NgModule,
|
|
4935
6081
|
args: [{
|
|
4936
6082
|
declarations: [
|
|
@@ -4957,11 +6103,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4957
6103
|
}] });
|
|
4958
6104
|
|
|
4959
6105
|
class MatchaInfiniteScrollModule {
|
|
4960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4961
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4962
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6107
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollModule, declarations: [MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent], imports: [CommonModule], exports: [MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent] }); }
|
|
6108
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollModule, imports: [CommonModule] }); }
|
|
4963
6109
|
}
|
|
4964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInfiniteScrollModule, decorators: [{
|
|
4965
6111
|
type: NgModule,
|
|
4966
6112
|
args: [{
|
|
4967
6113
|
declarations: [MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent],
|
|
@@ -4973,11 +6119,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4973
6119
|
}] });
|
|
4974
6120
|
|
|
4975
6121
|
class MatchaLazyloadModule {
|
|
4976
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4977
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
4978
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6123
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadModule, declarations: [MatchaLazyloadComponent, MatchaLazyloadDataComponent], imports: [CommonModule], exports: [MatchaLazyloadComponent, MatchaLazyloadDataComponent] }); }
|
|
6124
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadModule, imports: [CommonModule] }); }
|
|
4979
6125
|
}
|
|
4980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaLazyloadModule, decorators: [{
|
|
4981
6127
|
type: NgModule,
|
|
4982
6128
|
args: [{
|
|
4983
6129
|
declarations: [MatchaLazyloadComponent, MatchaLazyloadDataComponent],
|
|
@@ -5011,10 +6157,10 @@ class MatchaElevationDirective {
|
|
|
5011
6157
|
this._renderer.addClass(this._elementRef.nativeElement, `elevation-z-0`);
|
|
5012
6158
|
}
|
|
5013
6159
|
}
|
|
5014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5015
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
6160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6161
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaElevationDirective, isStandalone: false, selector: "[elevation]", inputs: { elevation: "elevation" }, usesOnChanges: true, ngImport: i0 }); }
|
|
5016
6162
|
}
|
|
5017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationDirective, decorators: [{
|
|
5018
6164
|
type: Directive,
|
|
5019
6165
|
args: [{
|
|
5020
6166
|
selector: '[elevation]',
|
|
@@ -5026,11 +6172,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5026
6172
|
}] } });
|
|
5027
6173
|
|
|
5028
6174
|
class MatchaElevationModule {
|
|
5029
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5030
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5031
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6176
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationModule, declarations: [MatchaElevationDirective], imports: [CommonModule], exports: [MatchaElevationDirective] }); }
|
|
6177
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationModule, imports: [CommonModule] }); }
|
|
5032
6178
|
}
|
|
5033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaElevationModule, decorators: [{
|
|
5034
6180
|
type: NgModule,
|
|
5035
6181
|
args: [{
|
|
5036
6182
|
declarations: [MatchaElevationDirective],
|
|
@@ -5158,10 +6304,10 @@ class MatchaOverlayService {
|
|
|
5158
6304
|
this.removeOverlayContainer();
|
|
5159
6305
|
}
|
|
5160
6306
|
}
|
|
5161
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5162
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
6307
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6308
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOverlayService, providedIn: 'root' }); }
|
|
5163
6309
|
}
|
|
5164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOverlayService, decorators: [{
|
|
5165
6311
|
type: Injectable,
|
|
5166
6312
|
args: [{
|
|
5167
6313
|
providedIn: 'root',
|
|
@@ -5197,10 +6343,10 @@ class MatchaModalService {
|
|
|
5197
6343
|
getData() {
|
|
5198
6344
|
return this.currentData;
|
|
5199
6345
|
}
|
|
5200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5201
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
6346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalService, deps: [{ token: MatchaOverlayService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6347
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalService, providedIn: 'root' }); }
|
|
5202
6348
|
}
|
|
5203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalService, decorators: [{
|
|
5204
6350
|
type: Injectable,
|
|
5205
6351
|
args: [{
|
|
5206
6352
|
providedIn: 'root'
|
|
@@ -5208,8 +6354,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5208
6354
|
}], ctorParameters: () => [{ type: MatchaOverlayService }] });
|
|
5209
6355
|
|
|
5210
6356
|
class MatchaModalModule {
|
|
5211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5212
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6358
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalModule, declarations: [MatchaModalHeaderComponent,
|
|
5213
6359
|
MatchaModalContentComponent,
|
|
5214
6360
|
MatchaModalFooterComponent,
|
|
5215
6361
|
MatchaModalOptionsComponent,
|
|
@@ -5223,7 +6369,7 @@ class MatchaModalModule {
|
|
|
5223
6369
|
MatchaModalFooterComponent,
|
|
5224
6370
|
MatchaModalOptionsComponent,
|
|
5225
6371
|
MatchaModalComponent] }); }
|
|
5226
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6372
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalModule, providers: [
|
|
5227
6373
|
MatchaModalService,
|
|
5228
6374
|
MatchaOverlayService
|
|
5229
6375
|
], imports: [CommonModule,
|
|
@@ -5233,7 +6379,7 @@ class MatchaModalModule {
|
|
|
5233
6379
|
MatchaTooltipModule,
|
|
5234
6380
|
MatchaElevationModule] }); }
|
|
5235
6381
|
}
|
|
5236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaModalModule, decorators: [{
|
|
5237
6383
|
type: NgModule,
|
|
5238
6384
|
args: [{
|
|
5239
6385
|
declarations: [
|
|
@@ -5266,21 +6412,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5266
6412
|
}] });
|
|
5267
6413
|
|
|
5268
6414
|
class MatchaCardModule {
|
|
5269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5270
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6416
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardModule, declarations: [MatchaCardComponent], imports: [CommonModule,
|
|
5271
6417
|
MatchaElevationModule,
|
|
5272
6418
|
MatchaIconModule,
|
|
5273
6419
|
MatchaTitleModule,
|
|
5274
6420
|
MatchaDividerModule,
|
|
5275
6421
|
MatchaTooltipModule], exports: [MatchaCardComponent] }); }
|
|
5276
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6422
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardModule, imports: [CommonModule,
|
|
5277
6423
|
MatchaElevationModule,
|
|
5278
6424
|
MatchaIconModule,
|
|
5279
6425
|
MatchaTitleModule,
|
|
5280
6426
|
MatchaDividerModule,
|
|
5281
6427
|
MatchaTooltipModule] }); }
|
|
5282
6428
|
}
|
|
5283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCardModule, decorators: [{
|
|
5284
6430
|
type: NgModule,
|
|
5285
6431
|
args: [{
|
|
5286
6432
|
declarations: [MatchaCardComponent],
|
|
@@ -5297,11 +6443,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5297
6443
|
}] });
|
|
5298
6444
|
|
|
5299
6445
|
class MatchaMasonryModule {
|
|
5300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5301
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5302
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6446
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6447
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryModule, declarations: [MatchaMasonryComponent], imports: [CommonModule], exports: [MatchaMasonryComponent] }); }
|
|
6448
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryModule, imports: [CommonModule] }); }
|
|
5303
6449
|
}
|
|
5304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMasonryModule, decorators: [{
|
|
5305
6451
|
type: NgModule,
|
|
5306
6452
|
args: [{
|
|
5307
6453
|
declarations: [MatchaMasonryComponent],
|
|
@@ -5311,13 +6457,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5311
6457
|
}] });
|
|
5312
6458
|
|
|
5313
6459
|
class MatchaButtonToggleModule {
|
|
5314
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5315
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6461
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleModule, declarations: [MatchaButtonToggleComponent], imports: [CommonModule,
|
|
5316
6462
|
MatchaTooltipModule], exports: [MatchaButtonToggleComponent] }); }
|
|
5317
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6463
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleModule, imports: [CommonModule,
|
|
5318
6464
|
MatchaTooltipModule] }); }
|
|
5319
6465
|
}
|
|
5320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaButtonToggleModule, decorators: [{
|
|
5321
6467
|
type: NgModule,
|
|
5322
6468
|
args: [{
|
|
5323
6469
|
declarations: [MatchaButtonToggleComponent],
|
|
@@ -5330,8 +6476,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5330
6476
|
}] });
|
|
5331
6477
|
|
|
5332
6478
|
class MatchaToolbarModule {
|
|
5333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5334
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6479
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6480
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarModule, declarations: [MatchaToolbarComponent,
|
|
5335
6481
|
MatchaToolbarButtonComponent,
|
|
5336
6482
|
MatchaToolbarContentComponent,
|
|
5337
6483
|
MatchaToolbarMainButtonComponent,
|
|
@@ -5344,12 +6490,12 @@ class MatchaToolbarModule {
|
|
|
5344
6490
|
MatchaToolbarMainButtonComponent,
|
|
5345
6491
|
MatchaToolbarCustomButtonComponent,
|
|
5346
6492
|
MatchaTitleModule] }); }
|
|
5347
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6493
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarModule, imports: [CommonModule,
|
|
5348
6494
|
MatchaButtonModule,
|
|
5349
6495
|
MatchaTitleModule,
|
|
5350
6496
|
MatchaTooltipModule, MatchaTitleModule] }); }
|
|
5351
6497
|
}
|
|
5352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaToolbarModule, decorators: [{
|
|
5353
6499
|
type: NgModule,
|
|
5354
6500
|
args: [{
|
|
5355
6501
|
declarations: [
|
|
@@ -5377,11 +6523,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5377
6523
|
}] });
|
|
5378
6524
|
|
|
5379
6525
|
class MatchaGridModule {
|
|
5380
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5381
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5382
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6527
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridModule, declarations: [MatchaGridComponent], imports: [CommonModule], exports: [MatchaGridComponent] }); }
|
|
6528
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridModule, imports: [CommonModule] }); }
|
|
5383
6529
|
}
|
|
5384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaGridModule, decorators: [{
|
|
5385
6531
|
type: NgModule,
|
|
5386
6532
|
args: [{
|
|
5387
6533
|
declarations: [MatchaGridComponent],
|
|
@@ -5391,11 +6537,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5391
6537
|
}] });
|
|
5392
6538
|
|
|
5393
6539
|
class MatchaFormFieldModule {
|
|
5394
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5395
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5396
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6540
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6541
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldModule, declarations: [MatchaFormFieldComponent, MatchaLabelComponent, MatchaErrorComponent], imports: [CommonModule, MatchaIconModule], exports: [MatchaFormFieldComponent, MatchaLabelComponent, MatchaErrorComponent] }); }
|
|
6542
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldModule, imports: [CommonModule, MatchaIconModule] }); }
|
|
5397
6543
|
}
|
|
5398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaFormFieldModule, decorators: [{
|
|
5399
6545
|
type: NgModule,
|
|
5400
6546
|
args: [{
|
|
5401
6547
|
declarations: [MatchaFormFieldComponent, MatchaLabelComponent, MatchaErrorComponent],
|
|
@@ -5424,15 +6570,25 @@ class MatchaAutocompleteTriggerDirective {
|
|
|
5424
6570
|
inputElement: this.el.nativeElement,
|
|
5425
6571
|
isInsideInput,
|
|
5426
6572
|
isInsidePanel,
|
|
5427
|
-
shouldClose: !isInsideInput && !isInsidePanel
|
|
6573
|
+
shouldClose: !isInsideInput && !isInsidePanel,
|
|
6574
|
+
panelOpen: this.panel?.open
|
|
5428
6575
|
});
|
|
5429
|
-
//
|
|
5430
|
-
return !isInsideInput && !isInsidePanel;
|
|
6576
|
+
// Só fechar se o painel estiver aberto e clicou fora
|
|
6577
|
+
return this.panel?.open && !isInsideInput && !isInsidePanel;
|
|
5431
6578
|
})).subscribe(() => {
|
|
5432
6579
|
console.log('MatchaAutocomplete: Fechando painel por click outside');
|
|
5433
6580
|
this.panel.closePanel();
|
|
5434
6581
|
});
|
|
5435
6582
|
this.subs.add(clickSub);
|
|
6583
|
+
// Escutar evento de seleção do autocomplete
|
|
6584
|
+
const selectionSub = fromEvent(this.panel.elRef.nativeElement, 'matcha-autocomplete-selection').subscribe((event) => {
|
|
6585
|
+
console.log('MatchaAutocomplete: Evento de seleção recebido na diretiva', event.detail);
|
|
6586
|
+
const { value } = event.detail;
|
|
6587
|
+
if (value !== undefined) {
|
|
6588
|
+
this.writeValueToInput(value);
|
|
6589
|
+
}
|
|
6590
|
+
});
|
|
6591
|
+
this.subs.add(selectionSub);
|
|
5436
6592
|
}
|
|
5437
6593
|
ngOnDestroy() {
|
|
5438
6594
|
this.subs.unsubscribe();
|
|
@@ -5444,9 +6600,13 @@ class MatchaAutocompleteTriggerDirective {
|
|
|
5444
6600
|
});
|
|
5445
6601
|
const input = this.el.nativeElement;
|
|
5446
6602
|
input.value = value == null ? '' : value;
|
|
5447
|
-
//
|
|
5448
|
-
const
|
|
5449
|
-
|
|
6603
|
+
// Dispatch múltiplos eventos para garantir compatibilidade com Angular Forms
|
|
6604
|
+
const inputEvent = new Event('input', { bubbles: true });
|
|
6605
|
+
const changeEvent = new Event('change', { bubbles: true });
|
|
6606
|
+
const blurEvent = new Event('blur', { bubbles: true });
|
|
6607
|
+
input.dispatchEvent(inputEvent);
|
|
6608
|
+
input.dispatchEvent(changeEvent);
|
|
6609
|
+
input.dispatchEvent(blurEvent);
|
|
5450
6610
|
console.log('MatchaAutocomplete: Valor escrito no input', input.value);
|
|
5451
6611
|
}
|
|
5452
6612
|
onClick() {
|
|
@@ -5496,9 +6656,11 @@ class MatchaAutocompleteTriggerDirective {
|
|
|
5496
6656
|
// Simples solução: observar clicks nas options via delegation:
|
|
5497
6657
|
onDocClick(ev) {
|
|
5498
6658
|
const target = ev.target;
|
|
5499
|
-
//
|
|
5500
|
-
|
|
5501
|
-
|
|
6659
|
+
// Verificar se o clique foi em uma opção deste painel específico
|
|
6660
|
+
const isOptionClick = target.closest('matcha-option') &&
|
|
6661
|
+
this.panel?.elRef?.nativeElement?.contains(target);
|
|
6662
|
+
if (isOptionClick) {
|
|
6663
|
+
// Se clicou em uma opção deste painel, aguardar um pouco e atualizar o input
|
|
5502
6664
|
setTimeout(() => {
|
|
5503
6665
|
if (this.panel && typeof this.panel.getSelectedValue === 'function') {
|
|
5504
6666
|
const val = this.panel.getSelectedValue();
|
|
@@ -5508,10 +6670,10 @@ class MatchaAutocompleteTriggerDirective {
|
|
|
5508
6670
|
}, 10);
|
|
5509
6671
|
}
|
|
5510
6672
|
}
|
|
5511
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5512
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
6673
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteTriggerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6674
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaAutocompleteTriggerDirective, isStandalone: false, selector: "[matchaAutocomplete]", inputs: { panel: ["matchaAutocomplete", "panel"] }, host: { listeners: { "click": "onClick()", "focus": "onFocus()", "input": "onInput($event)", "keydown": "onKeydown($event)", "document:click": "onDocClick($event)" } }, ngImport: i0 }); }
|
|
5513
6675
|
}
|
|
5514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteTriggerDirective, decorators: [{
|
|
5515
6677
|
type: Directive,
|
|
5516
6678
|
args: [{
|
|
5517
6679
|
selector: '[matchaAutocomplete]',
|
|
@@ -5538,11 +6700,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5538
6700
|
}] } });
|
|
5539
6701
|
|
|
5540
6702
|
class MatchaOptionModule {
|
|
5541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5542
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5543
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6704
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionModule, declarations: [MatchaOptionComponent], imports: [CommonModule], exports: [MatchaOptionComponent] }); }
|
|
6705
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionModule, imports: [CommonModule] }); }
|
|
5544
6706
|
}
|
|
5545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOptionModule, decorators: [{
|
|
5546
6708
|
type: NgModule,
|
|
5547
6709
|
args: [{
|
|
5548
6710
|
declarations: [
|
|
@@ -5558,11 +6720,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5558
6720
|
}] });
|
|
5559
6721
|
|
|
5560
6722
|
class MatchaPanelModule {
|
|
5561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5562
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5563
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6724
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelModule, declarations: [MatchaPanelComponent], imports: [CommonModule], exports: [MatchaPanelComponent] }); }
|
|
6725
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelModule, imports: [CommonModule] }); }
|
|
5564
6726
|
}
|
|
5565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPanelModule, decorators: [{
|
|
5566
6728
|
type: NgModule,
|
|
5567
6729
|
args: [{
|
|
5568
6730
|
declarations: [
|
|
@@ -5578,15 +6740,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5578
6740
|
}] });
|
|
5579
6741
|
|
|
5580
6742
|
class MatchaAutocompleteModule {
|
|
5581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5582
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6743
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6744
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteModule, declarations: [MatchaAutocompleteComponent,
|
|
5583
6745
|
MatchaAutocompleteTriggerDirective], imports: [CommonModule,
|
|
5584
6746
|
MatchaOptionModule,
|
|
5585
6747
|
MatchaPanelModule], exports: [MatchaAutocompleteComponent,
|
|
5586
6748
|
MatchaAutocompleteTriggerDirective,
|
|
5587
6749
|
MatchaOptionModule // Re-exporta para conveniência
|
|
5588
6750
|
] }); }
|
|
5589
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6751
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteModule, providers: [
|
|
5590
6752
|
// Provider para permitir injeção da interface MatchaOptionParent
|
|
5591
6753
|
{ provide: MATCHA_OPTION_PARENT, useExisting: MatchaAutocompleteComponent }
|
|
5592
6754
|
], imports: [CommonModule,
|
|
@@ -5594,7 +6756,7 @@ class MatchaAutocompleteModule {
|
|
|
5594
6756
|
MatchaPanelModule, MatchaOptionModule // Re-exporta para conveniência
|
|
5595
6757
|
] }); }
|
|
5596
6758
|
}
|
|
5597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAutocompleteModule, decorators: [{
|
|
5598
6760
|
type: NgModule,
|
|
5599
6761
|
args: [{
|
|
5600
6762
|
declarations: [
|
|
@@ -5618,6 +6780,177 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5618
6780
|
}]
|
|
5619
6781
|
}] });
|
|
5620
6782
|
|
|
6783
|
+
class MatchaSelectTriggerDirective {
|
|
6784
|
+
constructor(el) {
|
|
6785
|
+
this.el = el;
|
|
6786
|
+
this.subs = new Subscription();
|
|
6787
|
+
}
|
|
6788
|
+
ngAfterViewInit() {
|
|
6789
|
+
if (!this.select) {
|
|
6790
|
+
throw new Error('Você precisa passar uma referência para <matcha-select> ex: [matchaSelect]="select"');
|
|
6791
|
+
}
|
|
6792
|
+
// close panel ao clicar fora - usando click para evitar conflito com focus
|
|
6793
|
+
const clickSub = fromEvent(document, 'click').pipe(filter((ev) => {
|
|
6794
|
+
const target = ev.target;
|
|
6795
|
+
const isInsideTrigger = this.el.nativeElement.contains(target) || this.el.nativeElement === target;
|
|
6796
|
+
const isInsidePanel = this.select?.elRef?.nativeElement?.contains?.(target);
|
|
6797
|
+
console.log('MatchaSelect: Click outside check', {
|
|
6798
|
+
target: target,
|
|
6799
|
+
triggerElement: this.el.nativeElement,
|
|
6800
|
+
isInsideTrigger,
|
|
6801
|
+
isInsidePanel,
|
|
6802
|
+
shouldClose: !isInsideTrigger && !isInsidePanel,
|
|
6803
|
+
panelOpen: this.select?.open
|
|
6804
|
+
});
|
|
6805
|
+
// Só fechar se o painel estiver aberto e clicou fora
|
|
6806
|
+
return this.select?.open && !isInsideTrigger && !isInsidePanel;
|
|
6807
|
+
})).subscribe(() => {
|
|
6808
|
+
console.log('MatchaSelect: Fechando painel por click outside');
|
|
6809
|
+
this.select.closePanel();
|
|
6810
|
+
});
|
|
6811
|
+
this.subs.add(clickSub);
|
|
6812
|
+
// Escutar evento de seleção do select
|
|
6813
|
+
const selectionSub = fromEvent(this.select.elRef.nativeElement, 'matcha-select-selection').subscribe((event) => {
|
|
6814
|
+
console.log('MatchaSelect: Evento de seleção recebido na diretiva', event.detail);
|
|
6815
|
+
const { value } = event.detail;
|
|
6816
|
+
if (value !== undefined) {
|
|
6817
|
+
this.writeValueToInput(value);
|
|
6818
|
+
}
|
|
6819
|
+
});
|
|
6820
|
+
this.subs.add(selectionSub);
|
|
6821
|
+
}
|
|
6822
|
+
ngOnDestroy() {
|
|
6823
|
+
this.subs.unsubscribe();
|
|
6824
|
+
}
|
|
6825
|
+
writeValueToInput(value) {
|
|
6826
|
+
console.log('MatchaSelect: writeValueToInput chamado', {
|
|
6827
|
+
value,
|
|
6828
|
+
input: this.el.nativeElement
|
|
6829
|
+
});
|
|
6830
|
+
const input = this.el.nativeElement;
|
|
6831
|
+
input.value = value == null ? '' : value;
|
|
6832
|
+
// Dispatch múltiplos eventos para garantir compatibilidade com Angular Forms
|
|
6833
|
+
const inputEvent = new Event('input', { bubbles: true });
|
|
6834
|
+
const changeEvent = new Event('change', { bubbles: true });
|
|
6835
|
+
const blurEvent = new Event('blur', { bubbles: true });
|
|
6836
|
+
input.dispatchEvent(inputEvent);
|
|
6837
|
+
input.dispatchEvent(changeEvent);
|
|
6838
|
+
input.dispatchEvent(blurEvent);
|
|
6839
|
+
console.log('MatchaSelect: Valor escrito no input', input.value);
|
|
6840
|
+
}
|
|
6841
|
+
onClick() {
|
|
6842
|
+
// Abrir painel quando clicar no trigger
|
|
6843
|
+
this.select.openPanel();
|
|
6844
|
+
}
|
|
6845
|
+
onFocus() {
|
|
6846
|
+
// Não abrir automaticamente no focus para evitar conflito com click outside
|
|
6847
|
+
// O painel será aberto apenas quando o usuário clicar
|
|
6848
|
+
}
|
|
6849
|
+
onKeydown(ev) {
|
|
6850
|
+
if (!this.select)
|
|
6851
|
+
return;
|
|
6852
|
+
switch (ev.key) {
|
|
6853
|
+
case 'ArrowDown':
|
|
6854
|
+
ev.preventDefault();
|
|
6855
|
+
this.select.highlightNext();
|
|
6856
|
+
break;
|
|
6857
|
+
case 'ArrowUp':
|
|
6858
|
+
ev.preventDefault();
|
|
6859
|
+
this.select.highlightPrevious();
|
|
6860
|
+
break;
|
|
6861
|
+
case 'Enter':
|
|
6862
|
+
case ' ':
|
|
6863
|
+
ev.preventDefault();
|
|
6864
|
+
this.select.selectActive();
|
|
6865
|
+
// pega o value escolhido e escreve no input
|
|
6866
|
+
setTimeout(() => {
|
|
6867
|
+
const val = this.select.getSelectedValue();
|
|
6868
|
+
if (val !== undefined)
|
|
6869
|
+
this.writeValueToInput(val);
|
|
6870
|
+
});
|
|
6871
|
+
break;
|
|
6872
|
+
case 'Escape':
|
|
6873
|
+
ev.preventDefault();
|
|
6874
|
+
this.select.closePanel();
|
|
6875
|
+
break;
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
// Se uma opção for selecionada via click (o matcha-option notifica o pai que faz close),
|
|
6879
|
+
// lemos selectedValue e escrevemos no input. Como o selectOption do painel fecha imediatamente,
|
|
6880
|
+
// precisamos observar mudanças no DOM/QueryList ou checar logo após close.
|
|
6881
|
+
// Simples solução: observar clicks nas options via delegation:
|
|
6882
|
+
onDocClick(ev) {
|
|
6883
|
+
const target = ev.target;
|
|
6884
|
+
// Verificar se o clique foi em uma opção deste painel específico
|
|
6885
|
+
const isOptionClick = target.closest('matcha-option') &&
|
|
6886
|
+
this.select?.elRef?.nativeElement?.contains(target);
|
|
6887
|
+
if (isOptionClick) {
|
|
6888
|
+
// Se clicou em uma opção deste painel, aguardar um pouco e atualizar o input
|
|
6889
|
+
setTimeout(() => {
|
|
6890
|
+
if (this.select && typeof this.select.getSelectedValue === 'function') {
|
|
6891
|
+
const val = this.select.getSelectedValue();
|
|
6892
|
+
if (val !== undefined)
|
|
6893
|
+
this.writeValueToInput(val);
|
|
6894
|
+
}
|
|
6895
|
+
}, 10);
|
|
6896
|
+
}
|
|
6897
|
+
}
|
|
6898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectTriggerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6899
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSelectTriggerDirective, isStandalone: false, selector: "[matchaSelect]", inputs: { select: ["matchaSelect", "select"] }, host: { listeners: { "click": "onClick()", "focus": "onFocus()", "keydown": "onKeydown($event)", "document:click": "onDocClick($event)" } }, ngImport: i0 }); }
|
|
6900
|
+
}
|
|
6901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectTriggerDirective, decorators: [{
|
|
6902
|
+
type: Directive,
|
|
6903
|
+
args: [{
|
|
6904
|
+
selector: '[matchaSelect]',
|
|
6905
|
+
standalone: false,
|
|
6906
|
+
}]
|
|
6907
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { select: [{
|
|
6908
|
+
type: Input,
|
|
6909
|
+
args: ['matchaSelect']
|
|
6910
|
+
}], onClick: [{
|
|
6911
|
+
type: HostListener,
|
|
6912
|
+
args: ['click']
|
|
6913
|
+
}], onFocus: [{
|
|
6914
|
+
type: HostListener,
|
|
6915
|
+
args: ['focus']
|
|
6916
|
+
}], onKeydown: [{
|
|
6917
|
+
type: HostListener,
|
|
6918
|
+
args: ['keydown', ['$event']]
|
|
6919
|
+
}], onDocClick: [{
|
|
6920
|
+
type: HostListener,
|
|
6921
|
+
args: ['document:click', ['$event']]
|
|
6922
|
+
}] } });
|
|
6923
|
+
|
|
6924
|
+
class MatchaSelectModule {
|
|
6925
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6926
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectModule, declarations: [MatchaSelectComponent,
|
|
6927
|
+
MatchaSelectTriggerDirective], imports: [CommonModule,
|
|
6928
|
+
MatchaOptionModule,
|
|
6929
|
+
MatchaPanelModule], exports: [MatchaSelectComponent,
|
|
6930
|
+
MatchaSelectTriggerDirective] }); }
|
|
6931
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectModule, imports: [CommonModule,
|
|
6932
|
+
MatchaOptionModule,
|
|
6933
|
+
MatchaPanelModule] }); }
|
|
6934
|
+
}
|
|
6935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSelectModule, decorators: [{
|
|
6936
|
+
type: NgModule,
|
|
6937
|
+
args: [{
|
|
6938
|
+
declarations: [
|
|
6939
|
+
MatchaSelectComponent,
|
|
6940
|
+
MatchaSelectTriggerDirective
|
|
6941
|
+
],
|
|
6942
|
+
imports: [
|
|
6943
|
+
CommonModule,
|
|
6944
|
+
MatchaOptionModule,
|
|
6945
|
+
MatchaPanelModule
|
|
6946
|
+
],
|
|
6947
|
+
exports: [
|
|
6948
|
+
MatchaSelectComponent,
|
|
6949
|
+
MatchaSelectTriggerDirective
|
|
6950
|
+
]
|
|
6951
|
+
}]
|
|
6952
|
+
}] });
|
|
6953
|
+
|
|
5621
6954
|
class MatchaBadgeDirective {
|
|
5622
6955
|
constructor(_elementRef, _renderer) {
|
|
5623
6956
|
this._elementRef = _elementRef;
|
|
@@ -5625,10 +6958,10 @@ class MatchaBadgeDirective {
|
|
|
5625
6958
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
5626
6959
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-badge');
|
|
5627
6960
|
}
|
|
5628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5629
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
6961
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6962
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaBadgeDirective, isStandalone: false, selector: "[matcha-badge]", ngImport: i0 }); }
|
|
5630
6963
|
}
|
|
5631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeDirective, decorators: [{
|
|
5632
6965
|
type: Directive,
|
|
5633
6966
|
args: [{
|
|
5634
6967
|
selector: '[matcha-badge]',
|
|
@@ -5637,11 +6970,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5637
6970
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
5638
6971
|
|
|
5639
6972
|
class MatchaBadgeModule {
|
|
5640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5641
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5642
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6974
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeModule, declarations: [MatchaBadgeDirective], exports: [MatchaBadgeDirective] }); }
|
|
6975
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeModule }); }
|
|
5643
6976
|
}
|
|
5644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBadgeModule, decorators: [{
|
|
5645
6978
|
type: NgModule,
|
|
5646
6979
|
args: [{
|
|
5647
6980
|
declarations: [MatchaBadgeDirective],
|
|
@@ -5651,11 +6984,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5651
6984
|
}] });
|
|
5652
6985
|
|
|
5653
6986
|
class MatchaRippleModule {
|
|
5654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5655
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5656
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
6987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6988
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleModule, declarations: [MatchaRippleDirective], imports: [CommonModule], exports: [MatchaRippleDirective] }); }
|
|
6989
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleModule, imports: [CommonModule] }); }
|
|
5657
6990
|
}
|
|
5658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRippleModule, decorators: [{
|
|
5659
6992
|
type: NgModule,
|
|
5660
6993
|
args: [{
|
|
5661
6994
|
declarations: [
|
|
@@ -5671,11 +7004,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5671
7004
|
}] });
|
|
5672
7005
|
|
|
5673
7006
|
class MatchaCheckboxModule {
|
|
5674
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5675
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5676
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7007
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7008
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxModule, declarations: [MatchaCheckboxComponent], imports: [CommonModule, MatchaRippleModule], exports: [MatchaCheckboxComponent] }); }
|
|
7009
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxModule, imports: [CommonModule, MatchaRippleModule] }); }
|
|
5677
7010
|
}
|
|
5678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaCheckboxModule, decorators: [{
|
|
5679
7012
|
type: NgModule,
|
|
5680
7013
|
args: [{
|
|
5681
7014
|
declarations: [
|
|
@@ -5688,46 +7021,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5688
7021
|
}]
|
|
5689
7022
|
}] });
|
|
5690
7023
|
|
|
5691
|
-
class MatchaChipsDirective {
|
|
5692
|
-
constructor(_elementRef, _renderer) {
|
|
5693
|
-
this._elementRef = _elementRef;
|
|
5694
|
-
this._renderer = _renderer;
|
|
5695
|
-
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
5696
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-chips');
|
|
5697
|
-
}
|
|
5698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5699
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.4", type: MatchaChipsDirective, isStandalone: false, selector: "[matchaChips]", ngImport: i0 }); }
|
|
5700
|
-
}
|
|
5701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsDirective, decorators: [{
|
|
5702
|
-
type: Directive,
|
|
5703
|
-
args: [{
|
|
5704
|
-
selector: '[matchaChips]',
|
|
5705
|
-
standalone: false
|
|
5706
|
-
}]
|
|
5707
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
5708
|
-
|
|
5709
|
-
class MatchaChipsModule {
|
|
5710
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5711
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsModule, declarations: [MatchaChipsDirective], exports: [MatchaChipsDirective] }); }
|
|
5712
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsModule }); }
|
|
5713
|
-
}
|
|
5714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MatchaChipsModule, decorators: [{
|
|
5715
|
-
type: NgModule,
|
|
5716
|
-
args: [{
|
|
5717
|
-
declarations: [MatchaChipsDirective],
|
|
5718
|
-
imports: [],
|
|
5719
|
-
exports: [MatchaChipsDirective]
|
|
5720
|
-
}]
|
|
5721
|
-
}] });
|
|
5722
|
-
|
|
5723
7024
|
class MatchaHintTextModule {
|
|
5724
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5725
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7025
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7026
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextModule, declarations: [MatchaHintTextComponent], imports: [CommonModule,
|
|
5726
7027
|
MatchaIconModule], exports: [MatchaHintTextComponent] }); }
|
|
5727
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7028
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextModule, imports: [CommonModule,
|
|
5728
7029
|
MatchaIconModule] }); }
|
|
5729
7030
|
}
|
|
5730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHintTextModule, decorators: [{
|
|
5731
7032
|
type: NgModule,
|
|
5732
7033
|
args: [{
|
|
5733
7034
|
declarations: [MatchaHintTextComponent],
|
|
@@ -5746,10 +7047,10 @@ class MatchaInputDirective {
|
|
|
5746
7047
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
5747
7048
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-input');
|
|
5748
7049
|
}
|
|
5749
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5750
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7050
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7051
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaInputDirective, isStandalone: false, selector: "[matcha-input]", ngImport: i0 }); }
|
|
5751
7052
|
}
|
|
5752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputDirective, decorators: [{
|
|
5753
7054
|
type: Directive,
|
|
5754
7055
|
args: [{
|
|
5755
7056
|
selector: '[matcha-input]',
|
|
@@ -5758,11 +7059,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5758
7059
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
5759
7060
|
|
|
5760
7061
|
class MatchaInputModule {
|
|
5761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5762
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5763
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7062
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7063
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputModule, declarations: [MatchaInputDirective], exports: [MatchaInputDirective] }); }
|
|
7064
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputModule }); }
|
|
5764
7065
|
}
|
|
5765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaInputModule, decorators: [{
|
|
5766
7067
|
type: NgModule,
|
|
5767
7068
|
args: [{
|
|
5768
7069
|
declarations: [MatchaInputDirective],
|
|
@@ -5792,10 +7093,10 @@ class MatchaMenuTriggerForDirective {
|
|
|
5792
7093
|
this.menu.closeMenu();
|
|
5793
7094
|
}
|
|
5794
7095
|
}
|
|
5795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5796
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuTriggerForDirective, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7097
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaMenuTriggerForDirective, isStandalone: false, selector: "[matchaMenuTriggerFor]", inputs: { menu: ["matchaMenuTriggerFor", "menu"] }, host: { listeners: { "click": "onClick($event)", "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, exportAs: ["matchaMenuTriggerFor"], ngImport: i0 }); }
|
|
5797
7098
|
}
|
|
5798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuTriggerForDirective, decorators: [{
|
|
5799
7100
|
type: Directive,
|
|
5800
7101
|
args: [{
|
|
5801
7102
|
selector: '[matchaMenuTriggerFor]',
|
|
@@ -5823,13 +7124,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5823
7124
|
}] } });
|
|
5824
7125
|
|
|
5825
7126
|
class MatchaMenuModule {
|
|
5826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5827
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7128
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuModule, declarations: [MatchaMenuComponent,
|
|
5828
7129
|
MatchaMenuTriggerForDirective], imports: [CommonModule], exports: [MatchaMenuComponent,
|
|
5829
7130
|
MatchaMenuTriggerForDirective] }); }
|
|
5830
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7131
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuModule, imports: [CommonModule] }); }
|
|
5831
7132
|
}
|
|
5832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaMenuModule, decorators: [{
|
|
5833
7134
|
type: NgModule,
|
|
5834
7135
|
args: [{
|
|
5835
7136
|
declarations: [
|
|
@@ -5888,10 +7189,10 @@ class MatchaOverflowDraggableComponent {
|
|
|
5888
7189
|
const activeClasses = `${draggableReference}`;
|
|
5889
7190
|
return activeClasses;
|
|
5890
7191
|
}
|
|
5891
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5892
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
7192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOverflowDraggableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaOverflowDraggableComponent, isStandalone: false, selector: "matcha-overflow-draggable", inputs: { dragRef: "dragRef" }, ngImport: i0, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
5893
7194
|
}
|
|
5894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaOverflowDraggableComponent, decorators: [{
|
|
5895
7196
|
type: Component,
|
|
5896
7197
|
args: [{ selector: 'matcha-overflow-draggable', standalone: false, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
5897
7198
|
}], propDecorators: { dragRef: [{
|
|
@@ -5899,11 +7200,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5899
7200
|
}] } });
|
|
5900
7201
|
|
|
5901
7202
|
class MatchaPaginatorModule {
|
|
5902
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5903
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5904
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7204
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorModule, declarations: [MatchaPaginatorComponent], imports: [CommonModule, MatchaIconModule], exports: [MatchaPaginatorComponent] }); }
|
|
7205
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorModule, providers: [MatchaPaginatorIntl], imports: [CommonModule, MatchaIconModule] }); }
|
|
5905
7206
|
}
|
|
5906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPaginatorModule, decorators: [{
|
|
5907
7208
|
type: NgModule,
|
|
5908
7209
|
args: [{
|
|
5909
7210
|
declarations: [MatchaPaginatorComponent],
|
|
@@ -5920,10 +7221,10 @@ class MatchaProgressBarDirective {
|
|
|
5920
7221
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
5921
7222
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-progress-bar');
|
|
5922
7223
|
}
|
|
5923
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5924
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7225
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaProgressBarDirective, isStandalone: false, selector: "[matcha-progress-bar]", ngImport: i0 }); }
|
|
5925
7226
|
}
|
|
5926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarDirective, decorators: [{
|
|
5927
7228
|
type: Directive,
|
|
5928
7229
|
args: [{
|
|
5929
7230
|
selector: '[matcha-progress-bar]',
|
|
@@ -5932,11 +7233,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5932
7233
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
5933
7234
|
|
|
5934
7235
|
class MatchaProgressBarModule {
|
|
5935
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5936
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5937
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7237
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarModule, declarations: [MatchaProgressBarDirective], imports: [CommonModule], exports: [MatchaProgressBarDirective] }); }
|
|
7238
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarModule, imports: [CommonModule] }); }
|
|
5938
7239
|
}
|
|
5939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaProgressBarModule, decorators: [{
|
|
5940
7241
|
type: NgModule,
|
|
5941
7242
|
args: [{
|
|
5942
7243
|
declarations: [MatchaProgressBarDirective],
|
|
@@ -5956,10 +7257,10 @@ class MatchaSidenavDirective {
|
|
|
5956
7257
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
5957
7258
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-sidenav');
|
|
5958
7259
|
}
|
|
5959
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5960
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7261
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSidenavDirective, isStandalone: false, selector: "[matcha-sidenav]", ngImport: i0 }); }
|
|
5961
7262
|
}
|
|
5962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavDirective, decorators: [{
|
|
5963
7264
|
type: Directive,
|
|
5964
7265
|
args: [{
|
|
5965
7266
|
selector: '[matcha-sidenav]',
|
|
@@ -5968,11 +7269,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5968
7269
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
5969
7270
|
|
|
5970
7271
|
class MatchaSidenavModule {
|
|
5971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5972
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5973
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7273
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavModule, declarations: [MatchaSidenavDirective], imports: [CommonModule], exports: [MatchaSidenavDirective] }); }
|
|
7274
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavModule, imports: [CommonModule] }); }
|
|
5974
7275
|
}
|
|
5975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSidenavModule, decorators: [{
|
|
5976
7277
|
type: NgModule,
|
|
5977
7278
|
args: [{
|
|
5978
7279
|
declarations: [MatchaSidenavDirective],
|
|
@@ -5982,11 +7283,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5982
7283
|
}] });
|
|
5983
7284
|
|
|
5984
7285
|
class MatchaSlideToggleModule {
|
|
5985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5986
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
5987
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7287
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleModule, declarations: [MatchaSlideToggleComponent], imports: [CommonModule, FormsModule], exports: [MatchaSlideToggleComponent] }); }
|
|
7288
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleModule, imports: [CommonModule, FormsModule] }); }
|
|
5988
7289
|
}
|
|
5989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSlideToggleModule, decorators: [{
|
|
5990
7291
|
type: NgModule,
|
|
5991
7292
|
args: [{
|
|
5992
7293
|
declarations: [MatchaSlideToggleComponent],
|
|
@@ -6004,10 +7305,10 @@ class MatchaSliderDirective {
|
|
|
6004
7305
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
6005
7306
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-slider');
|
|
6006
7307
|
}
|
|
6007
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6008
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7309
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSliderDirective, isStandalone: false, selector: "[matchaSlider]", ngImport: i0 }); }
|
|
6009
7310
|
}
|
|
6010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderDirective, decorators: [{
|
|
6011
7312
|
type: Directive,
|
|
6012
7313
|
args: [{
|
|
6013
7314
|
selector: '[matchaSlider]',
|
|
@@ -6016,11 +7317,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6016
7317
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
6017
7318
|
|
|
6018
7319
|
class MatchaSliderModule {
|
|
6019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6020
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6021
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7321
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderModule, declarations: [MatchaSliderDirective], imports: [CommonModule], exports: [MatchaSliderDirective] }); }
|
|
7322
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderModule, imports: [CommonModule] }); }
|
|
6022
7323
|
}
|
|
6023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSliderModule, decorators: [{
|
|
6024
7325
|
type: NgModule,
|
|
6025
7326
|
args: [{
|
|
6026
7327
|
declarations: [MatchaSliderDirective],
|
|
@@ -6038,10 +7339,10 @@ class MatchaSnackBarDirective {
|
|
|
6038
7339
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
6039
7340
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-snackbar');
|
|
6040
7341
|
}
|
|
6041
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6042
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7343
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSnackBarDirective, isStandalone: false, selector: "[matchaSnackBar]", ngImport: i0 }); }
|
|
6043
7344
|
}
|
|
6044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarDirective, decorators: [{
|
|
6045
7346
|
type: Directive,
|
|
6046
7347
|
args: [{
|
|
6047
7348
|
selector: '[matchaSnackBar]',
|
|
@@ -6050,11 +7351,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6050
7351
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
6051
7352
|
|
|
6052
7353
|
class MatchaSnackBarModule {
|
|
6053
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6054
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6055
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7355
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarModule, declarations: [MatchaSnackBarDirective], imports: [CommonModule], exports: [MatchaSnackBarDirective] }); }
|
|
7356
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarModule, imports: [CommonModule] }); }
|
|
6056
7357
|
}
|
|
6057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSnackBarModule, decorators: [{
|
|
6058
7359
|
type: NgModule,
|
|
6059
7360
|
args: [{
|
|
6060
7361
|
declarations: [MatchaSnackBarDirective],
|
|
@@ -6070,10 +7371,10 @@ class MatchaSortHeaderDirective {
|
|
|
6070
7371
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
6071
7372
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-sort-header');
|
|
6072
7373
|
}
|
|
6073
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6074
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7375
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaSortHeaderDirective, isStandalone: false, selector: "[matchaSortHeader]", ngImport: i0 }); }
|
|
6075
7376
|
}
|
|
6076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderDirective, decorators: [{
|
|
6077
7378
|
type: Directive,
|
|
6078
7379
|
args: [{
|
|
6079
7380
|
selector: '[matchaSortHeader]',
|
|
@@ -6082,11 +7383,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6082
7383
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
6083
7384
|
|
|
6084
7385
|
class MatchaSortHeaderModule {
|
|
6085
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6086
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6087
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7387
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderModule, declarations: [MatchaSortHeaderDirective], imports: [CommonModule], exports: [MatchaSortHeaderDirective] }); }
|
|
7388
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderModule, imports: [CommonModule] }); }
|
|
6088
7389
|
}
|
|
6089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSortHeaderModule, decorators: [{
|
|
6090
7391
|
type: NgModule,
|
|
6091
7392
|
args: [{
|
|
6092
7393
|
declarations: [MatchaSortHeaderDirective],
|
|
@@ -6096,11 +7397,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6096
7397
|
}] });
|
|
6097
7398
|
|
|
6098
7399
|
class MatchaSpinModule {
|
|
6099
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6100
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6101
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7400
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7401
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinModule, declarations: [MatchaSpinComponent], imports: [CommonModule], exports: [MatchaSpinComponent] }); }
|
|
7402
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinModule, imports: [CommonModule] }); }
|
|
6102
7403
|
}
|
|
6103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinModule, decorators: [{
|
|
6104
7405
|
type: NgModule,
|
|
6105
7406
|
args: [{
|
|
6106
7407
|
declarations: [MatchaSpinComponent],
|
|
@@ -6112,11 +7413,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6112
7413
|
}] });
|
|
6113
7414
|
|
|
6114
7415
|
class MatchaSpinnerModule {
|
|
6115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6116
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6117
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7417
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerModule, declarations: [MatchaSpinnerComponent], imports: [CommonModule], exports: [MatchaSpinnerComponent] }); }
|
|
7418
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerModule, imports: [CommonModule] }); }
|
|
6118
7419
|
}
|
|
6119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSpinnerModule, decorators: [{
|
|
6120
7421
|
type: NgModule,
|
|
6121
7422
|
args: [{
|
|
6122
7423
|
declarations: [MatchaSpinnerComponent],
|
|
@@ -6134,10 +7435,10 @@ class MatchaTableDirective {
|
|
|
6134
7435
|
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
6135
7436
|
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-table');
|
|
6136
7437
|
}
|
|
6137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6138
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7439
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaTableDirective, isStandalone: false, selector: "[matchaTable]", ngImport: i0 }); }
|
|
6139
7440
|
}
|
|
6140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableDirective, decorators: [{
|
|
6141
7442
|
type: Directive,
|
|
6142
7443
|
args: [{
|
|
6143
7444
|
selector: '[matchaTable]',
|
|
@@ -6146,11 +7447,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6146
7447
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
6147
7448
|
|
|
6148
7449
|
class MatchaTableModule {
|
|
6149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6150
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6151
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7451
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableModule, declarations: [MatchaTableDirective], imports: [CommonModule], exports: [MatchaTableDirective] }); }
|
|
7452
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableModule, imports: [CommonModule] }); }
|
|
6152
7453
|
}
|
|
6153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTableModule, decorators: [{
|
|
6154
7455
|
type: NgModule,
|
|
6155
7456
|
args: [{
|
|
6156
7457
|
declarations: [MatchaTableDirective],
|
|
@@ -6160,15 +7461,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6160
7461
|
}] });
|
|
6161
7462
|
|
|
6162
7463
|
class MatchaTabsModule {
|
|
6163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6164
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7465
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsModule, declarations: [MatchaTabsComponent, MatchaTabItemComponent], imports: [CommonModule,
|
|
6165
7466
|
MatchaTooltipModule,
|
|
6166
7467
|
MatchaIconModule], exports: [MatchaTabsComponent, MatchaTabItemComponent] }); }
|
|
6167
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7468
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsModule, imports: [CommonModule,
|
|
6168
7469
|
MatchaTooltipModule,
|
|
6169
7470
|
MatchaIconModule] }); }
|
|
6170
7471
|
}
|
|
6171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTabsModule, decorators: [{
|
|
6172
7473
|
type: NgModule,
|
|
6173
7474
|
args: [{
|
|
6174
7475
|
declarations: [MatchaTabsComponent, MatchaTabItemComponent],
|
|
@@ -6181,33 +7482,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6181
7482
|
}]
|
|
6182
7483
|
}] });
|
|
6183
7484
|
|
|
6184
|
-
class
|
|
6185
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6186
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6187
|
-
ReactiveFormsModule], exports: [
|
|
6188
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7485
|
+
class MatchaDateRangeModule {
|
|
7486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7487
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeModule, declarations: [MatchaDateRangeComponent], imports: [CommonModule,
|
|
7488
|
+
ReactiveFormsModule], exports: [MatchaDateRangeComponent] }); }
|
|
7489
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeModule, imports: [CommonModule,
|
|
6189
7490
|
ReactiveFormsModule] }); }
|
|
6190
7491
|
}
|
|
6191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDateRangeModule, decorators: [{
|
|
6192
7493
|
type: NgModule,
|
|
6193
7494
|
args: [{
|
|
6194
|
-
declarations: [
|
|
7495
|
+
declarations: [MatchaDateRangeComponent],
|
|
6195
7496
|
imports: [
|
|
6196
7497
|
CommonModule,
|
|
6197
7498
|
ReactiveFormsModule
|
|
6198
7499
|
],
|
|
6199
|
-
exports: [
|
|
7500
|
+
exports: [MatchaDateRangeComponent]
|
|
6200
7501
|
}]
|
|
6201
7502
|
}] });
|
|
6202
7503
|
|
|
6203
7504
|
class MatchaTimeModule {
|
|
6204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6205
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7506
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeModule, declarations: [MatchaTimeComponent], imports: [CommonModule,
|
|
6206
7507
|
ReactiveFormsModule], exports: [MatchaTimeComponent] }); }
|
|
6207
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7508
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeModule, imports: [CommonModule,
|
|
6208
7509
|
ReactiveFormsModule] }); }
|
|
6209
7510
|
}
|
|
6210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaTimeModule, decorators: [{
|
|
6211
7512
|
type: NgModule,
|
|
6212
7513
|
args: [{
|
|
6213
7514
|
declarations: [MatchaTimeComponent],
|
|
@@ -6226,10 +7527,10 @@ class PrevStepDirective {
|
|
|
6226
7527
|
onClick() {
|
|
6227
7528
|
this.stepper?.prevStep();
|
|
6228
7529
|
}
|
|
6229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6230
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: PrevStepDirective, deps: [{ token: MatchaStepperContentComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7531
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: PrevStepDirective, isStandalone: true, selector: "[prevStep]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
6231
7532
|
}
|
|
6232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: PrevStepDirective, decorators: [{
|
|
6233
7534
|
type: Directive,
|
|
6234
7535
|
args: [{
|
|
6235
7536
|
selector: '[prevStep]',
|
|
@@ -6247,10 +7548,10 @@ class NextStepDirective {
|
|
|
6247
7548
|
onClick() {
|
|
6248
7549
|
this.stepper?.nextStep();
|
|
6249
7550
|
}
|
|
6250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6251
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7551
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: NextStepDirective, deps: [{ token: MatchaStepperContentComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7552
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: NextStepDirective, isStandalone: true, selector: "[nextStep]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
6252
7553
|
}
|
|
6253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: NextStepDirective, decorators: [{
|
|
6254
7555
|
type: Directive,
|
|
6255
7556
|
args: [{
|
|
6256
7557
|
selector: '[nextStep]',
|
|
@@ -6262,8 +7563,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6262
7563
|
}] } });
|
|
6263
7564
|
|
|
6264
7565
|
class MatchaStepperModule {
|
|
6265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6266
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7566
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7567
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperModule, declarations: [MatchaStepperControllerComponent,
|
|
6267
7568
|
MatchaStepperComponent,
|
|
6268
7569
|
MatchaStepperContentComponent,
|
|
6269
7570
|
StepComponent], imports: [CommonModule,
|
|
@@ -6274,9 +7575,9 @@ class MatchaStepperModule {
|
|
|
6274
7575
|
StepComponent,
|
|
6275
7576
|
PrevStepDirective,
|
|
6276
7577
|
NextStepDirective] }); }
|
|
6277
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7578
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperModule, imports: [CommonModule] }); }
|
|
6278
7579
|
}
|
|
6279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperModule, decorators: [{
|
|
6280
7581
|
type: NgModule,
|
|
6281
7582
|
args: [{
|
|
6282
7583
|
declarations: [
|
|
@@ -6313,10 +7614,10 @@ class MatchaDragHandleDirective {
|
|
|
6313
7614
|
ngOnInit() {
|
|
6314
7615
|
this.dragDirective.setDragHandle(this.elementRef.nativeElement);
|
|
6315
7616
|
}
|
|
6316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6317
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
7617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDragHandleDirective, deps: [{ token: i0.ElementRef }, { token: MatchaDragDirective }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7618
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: MatchaDragHandleDirective, isStandalone: false, selector: "[matchaDragHandle]", host: { properties: { "class.matcha-drag-handle": "this.dragHandleClass" } }, ngImport: i0 }); }
|
|
6318
7619
|
}
|
|
6319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDragHandleDirective, decorators: [{
|
|
6320
7621
|
type: Directive,
|
|
6321
7622
|
args: [{
|
|
6322
7623
|
selector: '[matchaDragHandle]',
|
|
@@ -6328,17 +7629,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6328
7629
|
}] } });
|
|
6329
7630
|
|
|
6330
7631
|
class MatchaDropListModule {
|
|
6331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6332
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7633
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListModule, declarations: [MatchaDropListComponent,
|
|
6333
7634
|
MatchaDragDirective,
|
|
6334
7635
|
MatchaDragHandleDirective], imports: [CommonModule], exports: [MatchaDropListComponent,
|
|
6335
7636
|
MatchaDragDirective,
|
|
6336
7637
|
MatchaDragHandleDirective] }); }
|
|
6337
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7638
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListModule, providers: [
|
|
6338
7639
|
MatchaDropListService
|
|
6339
7640
|
], imports: [CommonModule] }); }
|
|
6340
7641
|
}
|
|
6341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDropListModule, decorators: [{
|
|
6342
7643
|
type: NgModule,
|
|
6343
7644
|
args: [{
|
|
6344
7645
|
declarations: [
|
|
@@ -6361,13 +7662,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6361
7662
|
}] });
|
|
6362
7663
|
|
|
6363
7664
|
class MatchaPageLayoutModule {
|
|
6364
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6365
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7666
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutModule, declarations: [MatchaPageLayoutComponent], imports: [CommonModule,
|
|
6366
7667
|
MatchaStepperModule], exports: [MatchaPageLayoutComponent] }); }
|
|
6367
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7668
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutModule, imports: [CommonModule,
|
|
6368
7669
|
MatchaStepperModule] }); }
|
|
6369
7670
|
}
|
|
6370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaPageLayoutModule, decorators: [{
|
|
6371
7672
|
type: NgModule,
|
|
6372
7673
|
args: [{
|
|
6373
7674
|
declarations: [
|
|
@@ -6384,11 +7685,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6384
7685
|
}] });
|
|
6385
7686
|
|
|
6386
7687
|
class MatchaRadioModule {
|
|
6387
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6388
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6389
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7688
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7689
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioModule, declarations: [MatchaRadioComponent], imports: [CommonModule, MatchaRippleModule], exports: [MatchaRadioComponent] }); }
|
|
7690
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioModule, imports: [CommonModule, MatchaRippleModule] }); }
|
|
6390
7691
|
}
|
|
6391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaRadioModule, decorators: [{
|
|
6392
7693
|
type: NgModule,
|
|
6393
7694
|
args: [{
|
|
6394
7695
|
declarations: [
|
|
@@ -6402,11 +7703,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6402
7703
|
}] });
|
|
6403
7704
|
|
|
6404
7705
|
class MatchaAvatarModule {
|
|
6405
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6406
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6407
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7707
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarModule, declarations: [MatchaAvatarComponent], imports: [CommonModule], exports: [MatchaAvatarComponent] }); }
|
|
7708
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarModule, imports: [CommonModule] }); }
|
|
6408
7709
|
}
|
|
6409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaAvatarModule, decorators: [{
|
|
6410
7711
|
type: NgModule,
|
|
6411
7712
|
args: [{
|
|
6412
7713
|
declarations: [MatchaAvatarComponent],
|
|
@@ -6418,17 +7719,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6418
7719
|
}] });
|
|
6419
7720
|
|
|
6420
7721
|
class MatchaDrawerModule {
|
|
6421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6422
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7722
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7723
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerModule, declarations: [MatchaDrawerComponent,
|
|
6423
7724
|
MatchaDrawerContainerComponent,
|
|
6424
7725
|
MatchaDrawerContentComponent], imports: [CommonModule,
|
|
6425
7726
|
MatchaButtonModule], exports: [MatchaDrawerComponent,
|
|
6426
7727
|
MatchaDrawerContainerComponent,
|
|
6427
7728
|
MatchaDrawerContentComponent] }); }
|
|
6428
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7729
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerModule, providers: [
|
|
7730
|
+
MatchaBreakpointObserver
|
|
7731
|
+
], imports: [CommonModule,
|
|
6429
7732
|
MatchaButtonModule] }); }
|
|
6430
7733
|
}
|
|
6431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaDrawerModule, decorators: [{
|
|
6432
7735
|
type: NgModule,
|
|
6433
7736
|
args: [{
|
|
6434
7737
|
declarations: [
|
|
@@ -6440,6 +7743,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6440
7743
|
CommonModule,
|
|
6441
7744
|
MatchaButtonModule
|
|
6442
7745
|
],
|
|
7746
|
+
providers: [
|
|
7747
|
+
MatchaBreakpointObserver
|
|
7748
|
+
],
|
|
6443
7749
|
exports: [
|
|
6444
7750
|
MatchaDrawerComponent,
|
|
6445
7751
|
MatchaDrawerContainerComponent,
|
|
@@ -6448,22 +7754,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6448
7754
|
}]
|
|
6449
7755
|
}] });
|
|
6450
7756
|
|
|
7757
|
+
const PrismCore = require('./prismjs/prism');
|
|
7758
|
+
require('./prismjs/components/prism-javascript');
|
|
7759
|
+
require('./prismjs/components/prism-css');
|
|
7760
|
+
require('./prismjs/components/prism-markup');
|
|
7761
|
+
// Torna o Prism disponível globalmente
|
|
7762
|
+
window.Prism = PrismCore;
|
|
7763
|
+
class MatchaHighlightModule {
|
|
7764
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7765
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightModule, declarations: [MatchaHighlightComponent,
|
|
7766
|
+
CopyButtonComponent], imports: [MatchaIconModule,
|
|
7767
|
+
MatchaButtonModule], exports: [MatchaHighlightComponent,
|
|
7768
|
+
CopyButtonComponent] }); }
|
|
7769
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightModule, imports: [MatchaIconModule,
|
|
7770
|
+
MatchaButtonModule] }); }
|
|
7771
|
+
}
|
|
7772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaHighlightModule, decorators: [{
|
|
7773
|
+
type: NgModule,
|
|
7774
|
+
args: [{
|
|
7775
|
+
declarations: [
|
|
7776
|
+
MatchaHighlightComponent,
|
|
7777
|
+
CopyButtonComponent
|
|
7778
|
+
],
|
|
7779
|
+
imports: [
|
|
7780
|
+
MatchaIconModule,
|
|
7781
|
+
MatchaButtonModule
|
|
7782
|
+
],
|
|
7783
|
+
exports: [
|
|
7784
|
+
MatchaHighlightComponent,
|
|
7785
|
+
CopyButtonComponent
|
|
7786
|
+
],
|
|
7787
|
+
}]
|
|
7788
|
+
}] });
|
|
7789
|
+
|
|
6451
7790
|
class MatchaComponentsModule {
|
|
6452
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6453
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7791
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7792
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [CommonModule,
|
|
6454
7793
|
FormsModule,
|
|
6455
7794
|
ReactiveFormsModule,
|
|
6456
7795
|
MatchaAccordionModule,
|
|
6457
7796
|
MatchaAutocompleteModule,
|
|
6458
7797
|
MatchaOptionModule,
|
|
6459
7798
|
MatchaPanelModule,
|
|
7799
|
+
MatchaSelectModule,
|
|
6460
7800
|
MatchaBadgeModule,
|
|
6461
7801
|
MatchaButtonModule,
|
|
6462
7802
|
MatchaButtonToggleModule,
|
|
6463
7803
|
MatchaCardModule,
|
|
6464
7804
|
MatchaCheckboxModule,
|
|
6465
7805
|
MatchaRadioModule,
|
|
6466
|
-
MatchaChipsModule,
|
|
6467
7806
|
MatchaDividerModule,
|
|
6468
7807
|
MatchaElevationModule,
|
|
6469
7808
|
MatchaFormFieldModule,
|
|
@@ -6491,21 +7830,22 @@ class MatchaComponentsModule {
|
|
|
6491
7830
|
MatchaTabsModule,
|
|
6492
7831
|
MatchaTitleModule,
|
|
6493
7832
|
MatchaTooltipModule,
|
|
6494
|
-
|
|
7833
|
+
MatchaDateRangeModule,
|
|
6495
7834
|
MatchaTimeModule,
|
|
6496
7835
|
MatchaDropListModule,
|
|
6497
7836
|
MatchaPageLayoutModule,
|
|
6498
|
-
MatchaDrawerModule
|
|
7837
|
+
MatchaDrawerModule,
|
|
7838
|
+
MatchaHighlightModule], exports: [MatchaAccordionModule,
|
|
6499
7839
|
MatchaAutocompleteModule,
|
|
6500
7840
|
MatchaOptionModule,
|
|
6501
7841
|
MatchaPanelModule,
|
|
7842
|
+
MatchaSelectModule,
|
|
6502
7843
|
MatchaBadgeModule,
|
|
6503
7844
|
MatchaButtonModule,
|
|
6504
7845
|
MatchaButtonToggleModule,
|
|
6505
7846
|
MatchaCardModule,
|
|
6506
7847
|
MatchaCheckboxModule,
|
|
6507
7848
|
MatchaRadioModule,
|
|
6508
|
-
MatchaChipsModule,
|
|
6509
7849
|
MatchaDividerModule,
|
|
6510
7850
|
MatchaElevationModule,
|
|
6511
7851
|
MatchaFormFieldModule,
|
|
@@ -6533,26 +7873,27 @@ class MatchaComponentsModule {
|
|
|
6533
7873
|
MatchaTabsModule,
|
|
6534
7874
|
MatchaTitleModule,
|
|
6535
7875
|
MatchaTooltipModule,
|
|
6536
|
-
|
|
7876
|
+
MatchaDateRangeModule,
|
|
6537
7877
|
MatchaTimeModule,
|
|
6538
7878
|
MatchaDropListModule,
|
|
6539
7879
|
MatchaPageLayoutModule,
|
|
6540
7880
|
MatchaAvatarModule,
|
|
6541
|
-
MatchaDrawerModule
|
|
6542
|
-
|
|
7881
|
+
MatchaDrawerModule,
|
|
7882
|
+
MatchaHighlightModule] }); }
|
|
7883
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, imports: [CommonModule,
|
|
6543
7884
|
FormsModule,
|
|
6544
7885
|
ReactiveFormsModule,
|
|
6545
7886
|
MatchaAccordionModule,
|
|
6546
7887
|
MatchaAutocompleteModule,
|
|
6547
7888
|
MatchaOptionModule,
|
|
6548
7889
|
MatchaPanelModule,
|
|
7890
|
+
MatchaSelectModule,
|
|
6549
7891
|
MatchaBadgeModule,
|
|
6550
7892
|
MatchaButtonModule,
|
|
6551
7893
|
MatchaButtonToggleModule,
|
|
6552
7894
|
MatchaCardModule,
|
|
6553
7895
|
MatchaCheckboxModule,
|
|
6554
7896
|
MatchaRadioModule,
|
|
6555
|
-
MatchaChipsModule,
|
|
6556
7897
|
MatchaDividerModule,
|
|
6557
7898
|
MatchaElevationModule,
|
|
6558
7899
|
MatchaFormFieldModule,
|
|
@@ -6580,21 +7921,22 @@ class MatchaComponentsModule {
|
|
|
6580
7921
|
MatchaTabsModule,
|
|
6581
7922
|
MatchaTitleModule,
|
|
6582
7923
|
MatchaTooltipModule,
|
|
6583
|
-
|
|
7924
|
+
MatchaDateRangeModule,
|
|
6584
7925
|
MatchaTimeModule,
|
|
6585
7926
|
MatchaDropListModule,
|
|
6586
7927
|
MatchaPageLayoutModule,
|
|
6587
|
-
MatchaDrawerModule,
|
|
7928
|
+
MatchaDrawerModule,
|
|
7929
|
+
MatchaHighlightModule, MatchaAccordionModule,
|
|
6588
7930
|
MatchaAutocompleteModule,
|
|
6589
7931
|
MatchaOptionModule,
|
|
6590
7932
|
MatchaPanelModule,
|
|
7933
|
+
MatchaSelectModule,
|
|
6591
7934
|
MatchaBadgeModule,
|
|
6592
7935
|
MatchaButtonModule,
|
|
6593
7936
|
MatchaButtonToggleModule,
|
|
6594
7937
|
MatchaCardModule,
|
|
6595
7938
|
MatchaCheckboxModule,
|
|
6596
7939
|
MatchaRadioModule,
|
|
6597
|
-
MatchaChipsModule,
|
|
6598
7940
|
MatchaDividerModule,
|
|
6599
7941
|
MatchaElevationModule,
|
|
6600
7942
|
MatchaFormFieldModule,
|
|
@@ -6622,14 +7964,15 @@ class MatchaComponentsModule {
|
|
|
6622
7964
|
MatchaTabsModule,
|
|
6623
7965
|
MatchaTitleModule,
|
|
6624
7966
|
MatchaTooltipModule,
|
|
6625
|
-
|
|
7967
|
+
MatchaDateRangeModule,
|
|
6626
7968
|
MatchaTimeModule,
|
|
6627
7969
|
MatchaDropListModule,
|
|
6628
7970
|
MatchaPageLayoutModule,
|
|
6629
7971
|
MatchaAvatarModule,
|
|
6630
|
-
MatchaDrawerModule
|
|
7972
|
+
MatchaDrawerModule,
|
|
7973
|
+
MatchaHighlightModule] }); }
|
|
6631
7974
|
}
|
|
6632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaComponentsModule, decorators: [{
|
|
6633
7976
|
type: NgModule,
|
|
6634
7977
|
args: [{
|
|
6635
7978
|
declarations: [MatchaOverflowDraggableComponent],
|
|
@@ -6641,13 +7984,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6641
7984
|
MatchaAutocompleteModule,
|
|
6642
7985
|
MatchaOptionModule,
|
|
6643
7986
|
MatchaPanelModule,
|
|
7987
|
+
MatchaSelectModule,
|
|
6644
7988
|
MatchaBadgeModule,
|
|
6645
7989
|
MatchaButtonModule,
|
|
6646
7990
|
MatchaButtonToggleModule,
|
|
6647
7991
|
MatchaCardModule,
|
|
6648
7992
|
MatchaCheckboxModule,
|
|
6649
7993
|
MatchaRadioModule,
|
|
6650
|
-
MatchaChipsModule,
|
|
6651
7994
|
MatchaDividerModule,
|
|
6652
7995
|
MatchaElevationModule,
|
|
6653
7996
|
MatchaFormFieldModule,
|
|
@@ -6675,23 +8018,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6675
8018
|
MatchaTabsModule,
|
|
6676
8019
|
MatchaTitleModule,
|
|
6677
8020
|
MatchaTooltipModule,
|
|
6678
|
-
|
|
8021
|
+
MatchaDateRangeModule,
|
|
6679
8022
|
MatchaTimeModule,
|
|
6680
8023
|
MatchaDropListModule,
|
|
6681
8024
|
MatchaPageLayoutModule,
|
|
6682
|
-
MatchaDrawerModule
|
|
8025
|
+
MatchaDrawerModule,
|
|
8026
|
+
MatchaHighlightModule
|
|
6683
8027
|
],
|
|
6684
8028
|
exports: [MatchaAccordionModule,
|
|
6685
8029
|
MatchaAutocompleteModule,
|
|
6686
8030
|
MatchaOptionModule,
|
|
6687
8031
|
MatchaPanelModule,
|
|
8032
|
+
MatchaSelectModule,
|
|
6688
8033
|
MatchaBadgeModule,
|
|
6689
8034
|
MatchaButtonModule,
|
|
6690
8035
|
MatchaButtonToggleModule,
|
|
6691
8036
|
MatchaCardModule,
|
|
6692
8037
|
MatchaCheckboxModule,
|
|
6693
8038
|
MatchaRadioModule,
|
|
6694
|
-
MatchaChipsModule,
|
|
6695
8039
|
MatchaDividerModule,
|
|
6696
8040
|
MatchaElevationModule,
|
|
6697
8041
|
MatchaFormFieldModule,
|
|
@@ -6719,22 +8063,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6719
8063
|
MatchaTabsModule,
|
|
6720
8064
|
MatchaTitleModule,
|
|
6721
8065
|
MatchaTooltipModule,
|
|
6722
|
-
|
|
8066
|
+
MatchaDateRangeModule,
|
|
6723
8067
|
MatchaTimeModule,
|
|
6724
8068
|
MatchaDropListModule,
|
|
6725
8069
|
MatchaPageLayoutModule,
|
|
6726
8070
|
MatchaAvatarModule,
|
|
6727
|
-
MatchaDrawerModule
|
|
8071
|
+
MatchaDrawerModule,
|
|
8072
|
+
MatchaHighlightModule
|
|
6728
8073
|
],
|
|
6729
8074
|
}]
|
|
6730
8075
|
}] });
|
|
6731
8076
|
|
|
6732
8077
|
class MatchaSkeletonModule {
|
|
6733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6734
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
6735
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
8078
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8079
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonModule, declarations: [MatchaSkeletonComponent], imports: [CommonModule], exports: [MatchaSkeletonComponent] }); }
|
|
8080
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonModule, imports: [CommonModule] }); }
|
|
6736
8081
|
}
|
|
6737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaSkeletonModule, decorators: [{
|
|
6738
8083
|
type: NgModule,
|
|
6739
8084
|
args: [{
|
|
6740
8085
|
declarations: [MatchaSkeletonComponent],
|
|
@@ -6745,14 +8090,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6745
8090
|
}]
|
|
6746
8091
|
}] });
|
|
6747
8092
|
|
|
8093
|
+
/**
|
|
8094
|
+
* Módulo para o MatchaBreakpointObserver
|
|
8095
|
+
*
|
|
8096
|
+
* Este módulo fornece o serviço MatchaBreakpointObserver que pode ser usado
|
|
8097
|
+
* em qualquer parte da aplicação para observar breakpoints CSS.
|
|
8098
|
+
*
|
|
8099
|
+
* O serviço é um singleton (providedIn: 'root') e não precisa ser importado
|
|
8100
|
+
* explicitamente, mas este módulo pode ser usado para organização.
|
|
8101
|
+
*/
|
|
8102
|
+
class MatchaBreakpointObservableModule {
|
|
8103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObservableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8104
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObservableModule, imports: [CommonModule] }); }
|
|
8105
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObservableModule, providers: [
|
|
8106
|
+
// O serviço já é providedIn: 'root', mas incluímos aqui para clareza
|
|
8107
|
+
MatchaBreakpointObserver
|
|
8108
|
+
], imports: [CommonModule] }); }
|
|
8109
|
+
}
|
|
8110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaBreakpointObservableModule, decorators: [{
|
|
8111
|
+
type: NgModule,
|
|
8112
|
+
args: [{
|
|
8113
|
+
imports: [
|
|
8114
|
+
CommonModule
|
|
8115
|
+
],
|
|
8116
|
+
providers: [
|
|
8117
|
+
// O serviço já é providedIn: 'root', mas incluímos aqui para clareza
|
|
8118
|
+
MatchaBreakpointObserver
|
|
8119
|
+
]
|
|
8120
|
+
}]
|
|
8121
|
+
}] });
|
|
8122
|
+
|
|
6748
8123
|
class StepContentDirective {
|
|
6749
8124
|
constructor(template) {
|
|
6750
8125
|
this.template = template;
|
|
6751
8126
|
}
|
|
6752
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6753
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
8127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: StepContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8128
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: StepContentDirective, isStandalone: true, selector: "[step]", inputs: { step: "step" }, ngImport: i0 }); }
|
|
6754
8129
|
}
|
|
6755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: StepContentDirective, decorators: [{
|
|
6756
8131
|
type: Directive,
|
|
6757
8132
|
args: [{
|
|
6758
8133
|
selector: '[step]'
|
|
@@ -6788,5 +8163,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
6788
8163
|
* Generated bundle index. Do not edit.
|
|
6789
8164
|
*/
|
|
6790
8165
|
|
|
6791
|
-
export { MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule,
|
|
8166
|
+
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
6792
8167
|
//# sourceMappingURL=matcha-components.mjs.map
|