matcha-components 19.19.1 → 19.20.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.
@@ -1,11 +1,301 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, ContentChildren, ElementRef, Renderer2, Inject, HostListener, Directive, NgModule } from '@angular/core';
2
+ import { ElementRef, Renderer2, Component, Inject, Input, EventEmitter, Output, ContentChild, ContentChildren, HostListener, Directive, NgModule } from '@angular/core';
3
3
  import { animation, style, animate, trigger, transition, useAnimation, state, query, stagger, animateChild, sequence, group } from '@angular/animations';
4
4
  import { Subscription, Subject } from 'rxjs';
5
5
  import { debounceTime } from 'rxjs/operators';
6
6
  import * as i1 from '@angular/common';
7
7
  import { CommonModule } from '@angular/common';
8
8
 
9
+ class MatchaButtonComponent {
10
+ constructor(_elementRef, _renderer) {
11
+ this._elementRef = _elementRef;
12
+ this._renderer = _renderer;
13
+ this.size = null;
14
+ this.sizeXs = null;
15
+ this.sizeSm = null;
16
+ this.sizeMd = null;
17
+ this.sizeLg = null;
18
+ this.sizeXl = null;
19
+ this.color = 'basic';
20
+ this.basic = false;
21
+ this.outline = false;
22
+ this.alpha = false;
23
+ this.pill = false;
24
+ this.icon = false;
25
+ this.link = false;
26
+ this._config = {
27
+ sizeXs: 'tiny',
28
+ sizeSm: 'small',
29
+ sizeMd: 'medium',
30
+ sizeLg: 'large',
31
+ sizeXl: 'huge',
32
+ size: 'medium',
33
+ basic: false,
34
+ outline: false,
35
+ pill: false,
36
+ icon: false,
37
+ link: false
38
+ };
39
+ }
40
+ ngOnInit() {
41
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button`);
42
+ this.setConfig();
43
+ // Adicione o evento de clique apenas a elementos com a classe "matcha-button"
44
+ const buttons = document.querySelectorAll('.matcha-button');
45
+ buttons.forEach(button => {
46
+ // mouse down event
47
+ button.addEventListener('mousedown', this.addRippleEffect, false);
48
+ });
49
+ }
50
+ ngOnChanges() {
51
+ this.setConfig();
52
+ }
53
+ clearConfig() {
54
+ //size
55
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-${this._config.size}`);
56
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-xs-${this._config.sizeXs}`);
57
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-sm-${this._config.sizeSm}`);
58
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-md-${this._config.sizeMd}`);
59
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-lg-${this._config.sizeLg}`);
60
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-xl-${this._config.sizeXl}`);
61
+ //basic
62
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-icon`);
63
+ //outline
64
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-outline`);
65
+ //pill
66
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-pill`);
67
+ //icon
68
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-basic`);
69
+ //link
70
+ this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-link`);
71
+ }
72
+ setConfig() {
73
+ this.clearConfig();
74
+ this.size ? this.setSize() : null;
75
+ (this.outline === true || this.outline === 'true') ? this.setOutline() : null;
76
+ (this.pill === true || this.pill === 'true') ? this.setPill() : null;
77
+ (this.link === true || this.link === 'true') ? this.setLink() : null;
78
+ (this.basic === true || this.basic === 'true') ? this.setBasic() : null;
79
+ (this.icon === true || this.icon === 'true') ? this.setIcon() : null;
80
+ }
81
+ setSize() {
82
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-${this.size}`);
83
+ this._config.size = this.size;
84
+ if (this.sizeXs) {
85
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-xs-${this.sizeXs}`);
86
+ this._config.sizeXs = this.sizeXs;
87
+ }
88
+ if (this.sizeSm) {
89
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-sm-${this.sizeSm}`);
90
+ this._config.sizeSm = this.sizeSm;
91
+ }
92
+ if (this.sizeMd) {
93
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-md-${this.sizeMd}`);
94
+ this._config.sizeMd = this.sizeMd;
95
+ }
96
+ if (this.sizeLg) {
97
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-lg-${this.sizeLg}`);
98
+ this._config.sizeLg = this.sizeLg;
99
+ }
100
+ if (this.sizeXl) {
101
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-xl-${this.sizeXl}`);
102
+ this._config.sizeXl = this.sizeXl;
103
+ }
104
+ }
105
+ setOutline() {
106
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-outline`);
107
+ }
108
+ setPill() {
109
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-pill`);
110
+ }
111
+ setLink() {
112
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-link`);
113
+ }
114
+ setBasic() {
115
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-basic`);
116
+ this._renderer.addClass(this._elementRef.nativeElement, `basic`);
117
+ }
118
+ setIcon() {
119
+ this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-icon`);
120
+ }
121
+ addRippleEffect(e) {
122
+ var target = e.target;
123
+ if (target.tagName.toLowerCase() !== 'button')
124
+ return false;
125
+ var rect = target.getBoundingClientRect();
126
+ var ripple = target.querySelector('.ripple');
127
+ if (!ripple) {
128
+ ripple = document.createElement('span');
129
+ ripple.className = `ripple`;
130
+ ripple.style.height = ripple.style.width = target.offsetWidth + 'px';
131
+ target.appendChild(ripple);
132
+ }
133
+ ripple.classList.remove('show');
134
+ var top = e.pageY - rect.top - ripple.offsetHeight / 2 - window.scrollY;
135
+ var left = e.pageX - rect.left - ripple.offsetWidth / 2 - window.scrollX;
136
+ ripple.style.top = top + 'px';
137
+ ripple.style.left = left + 'px';
138
+ ripple.classList.add('show');
139
+ return false;
140
+ }
141
+ ngOnDestroy() {
142
+ const buttons = document.querySelectorAll('.matcha-button');
143
+ buttons.forEach(button => {
144
+ button.removeEventListener('click', this.addRippleEffect, false);
145
+ });
146
+ }
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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", icon: "icon", link: "link" }, usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
149
+ }
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonComponent, decorators: [{
151
+ type: Component,
152
+ args: [{ selector: '[matcha-button]', standalone: false, template: "<ng-content></ng-content>\n" }]
153
+ }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
154
+ type: Inject,
155
+ args: [ElementRef]
156
+ }] }, { type: i0.Renderer2, decorators: [{
157
+ type: Inject,
158
+ args: [Renderer2]
159
+ }] }], propDecorators: { size: [{
160
+ type: Input,
161
+ args: ['size']
162
+ }], sizeXs: [{
163
+ type: Input,
164
+ args: ['size-xs']
165
+ }], sizeSm: [{
166
+ type: Input,
167
+ args: ['size-sm']
168
+ }], sizeMd: [{
169
+ type: Input,
170
+ args: ['size-md']
171
+ }], sizeLg: [{
172
+ type: Input,
173
+ args: ['size-lg']
174
+ }], sizeXl: [{
175
+ type: Input,
176
+ args: ['size-xl']
177
+ }], color: [{
178
+ type: Input,
179
+ args: ['color']
180
+ }], basic: [{
181
+ type: Input,
182
+ args: ['basic']
183
+ }], outline: [{
184
+ type: Input,
185
+ args: ['outline']
186
+ }], alpha: [{
187
+ type: Input,
188
+ args: ['alpha']
189
+ }], pill: [{
190
+ type: Input,
191
+ args: ['pill']
192
+ }], icon: [{
193
+ type: Input,
194
+ args: ['icon']
195
+ }], link: [{
196
+ type: Input,
197
+ args: ['link']
198
+ }] } });
199
+
200
+ class MatchaButtonItemComponent {
201
+ constructor(renderer) {
202
+ this.renderer = renderer;
203
+ // Propriedade que indica se o botão está ativo
204
+ this.active = false;
205
+ // Evento emitido quando o botão for clicado
206
+ this.selected = new EventEmitter();
207
+ }
208
+ ngAfterContentInit() {
209
+ // Atualiza a cor inicial do botão conforme o estado
210
+ this.updateButtonColor();
211
+ // Registra o clique no botão interno
212
+ if (this.innerButton) {
213
+ this.renderer.listen(this.innerButton.nativeElement, 'click', () => {
214
+ this.onClick();
215
+ });
216
+ }
217
+ }
218
+ onClick() {
219
+ this.selected.emit();
220
+ }
221
+ // Método para definir o estado ativo e atualizar a cor
222
+ setActiveState(isActive, activeColor, inactiveColor) {
223
+ this.active = isActive;
224
+ this.updateButtonColor(activeColor, inactiveColor);
225
+ }
226
+ // Atualiza o atributo 'color' do botão interno
227
+ updateButtonColor(activeColor = 'blue', inactiveColor = 'grey') {
228
+ if (this.innerButton) {
229
+ const newColor = this.active ? activeColor : inactiveColor;
230
+ this.renderer.setAttribute(this.innerButton.nativeElement, 'color', newColor);
231
+ }
232
+ }
233
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonItemComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
234
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaButtonItemComponent, isStandalone: false, selector: "matcha-button-item", inputs: { active: "active" }, outputs: { selected: "selected" }, queries: [{ propertyName: "innerButton", first: true, predicate: MatchaButtonComponent, descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
235
+ }
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonItemComponent, decorators: [{
237
+ type: Component,
238
+ args: [{ selector: 'matcha-button-item', standalone: false, template: "<ng-content></ng-content>\n" }]
239
+ }], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { active: [{
240
+ type: Input
241
+ }], selected: [{
242
+ type: Output
243
+ }], innerButton: [{
244
+ type: ContentChild,
245
+ args: [MatchaButtonComponent, { static: true, read: ElementRef }]
246
+ }] } });
247
+
248
+ // button-group.component.ts
249
+ class MatchaButtonGroupComponent {
250
+ constructor() {
251
+ // Define se é possível selecionar múltiplos botões
252
+ this.multiple = false;
253
+ // Cores para os estados ativo e inativo
254
+ this.activeColor = 'blue';
255
+ this.inactiveColor = 'grey';
256
+ }
257
+ ngAfterContentInit() {
258
+ console.log(this.buttonItems, 'estou funcionando');
259
+ // Inicializa cada button-item com o estado inativo
260
+ this.buttonItems.forEach(item => {
261
+ item.setActiveState(false, this.activeColor, this.inactiveColor);
262
+ // Inscreve-se para saber quando algum item for selecionado
263
+ item.selected.subscribe(() => this.onItemSelected(item));
264
+ });
265
+ // Opcional: define o primeiro item como ativo por padrão
266
+ if (this.buttonItems.first) {
267
+ this.buttonItems.first.setActiveState(true, this.activeColor, this.inactiveColor);
268
+ }
269
+ }
270
+ onItemSelected(selectedItem) {
271
+ if (this.multiple) {
272
+ // Se múltiplo, inverte o estado do item clicado
273
+ selectedItem.setActiveState(!selectedItem.active, this.activeColor, this.inactiveColor);
274
+ }
275
+ else {
276
+ // Se único, desativa todos e ativa somente o item clicado
277
+ this.buttonItems.forEach(item => {
278
+ item.setActiveState(item === selectedItem, this.activeColor, this.inactiveColor);
279
+ });
280
+ }
281
+ }
282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
283
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaButtonGroupComponent, isStandalone: false, selector: "matcha-button-group", inputs: { multiple: "multiple", activeColor: "activeColor", inactiveColor: "inactiveColor" }, queries: [{ propertyName: "buttonItems", predicate: MatchaButtonItemComponent }], ngImport: i0, template: "<div class=\"button-group d-flex flex-wrap gap-16\" role=\"group\"><ng-content></ng-content></div>\n", styles: [""] }); }
284
+ }
285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupComponent, decorators: [{
286
+ type: Component,
287
+ args: [{ selector: 'matcha-button-group', standalone: false, template: "<div class=\"button-group d-flex flex-wrap gap-16\" role=\"group\"><ng-content></ng-content></div>\n" }]
288
+ }], propDecorators: { multiple: [{
289
+ type: Input
290
+ }], activeColor: [{
291
+ type: Input
292
+ }], inactiveColor: [{
293
+ type: Input
294
+ }], buttonItems: [{
295
+ type: ContentChildren,
296
+ args: [MatchaButtonItemComponent]
297
+ }] } });
298
+
9
299
  const customAnimation = animation([
10
300
  style({
11
301
  opacity: '{{opacity}}',
@@ -617,206 +907,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
617
907
  type: Output
618
908
  }] } });
619
909
 
620
- class MatchaButtonComponent {
621
- constructor(_elementRef, _renderer) {
622
- this._elementRef = _elementRef;
623
- this._renderer = _renderer;
624
- this.size = null;
625
- this.sizeXs = null;
626
- this.sizeSm = null;
627
- this.sizeMd = null;
628
- this.sizeLg = null;
629
- this.sizeXl = null;
630
- this.color = 'basic';
631
- this.basic = false;
632
- this.outline = false;
633
- this.pill = false;
634
- this.icon = false;
635
- this.link = false;
636
- this._config = {
637
- sizeXs: 'tiny',
638
- sizeSm: 'small',
639
- sizeMd: 'medium',
640
- sizeLg: 'large',
641
- sizeXl: 'huge',
642
- size: 'medium',
643
- color: 'primary',
644
- basic: false,
645
- outline: false,
646
- pill: false,
647
- icon: false,
648
- link: false
649
- };
650
- }
651
- ngOnInit() {
652
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button`);
653
- this.setConfig();
654
- // Adicione o evento de clique apenas a elementos com a classe "matcha-button"
655
- const buttons = document.querySelectorAll('.matcha-button');
656
- buttons.forEach(button => {
657
- // mouse down event
658
- button.addEventListener('mousedown', this.addRippleEffect, false);
659
- });
660
- }
661
- ngOnChanges() {
662
- this.setConfig();
663
- }
664
- clearConfig() {
665
- // BG colors and FG contrast
666
- this._renderer.removeClass(this._elementRef.nativeElement, `${this._config.color}`);
667
- // FG colors only
668
- this._renderer.removeClass(this._elementRef.nativeElement, `color-${this._config.color}`);
669
- //size
670
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-${this._config.size}`);
671
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-xs-${this._config.sizeXs}`);
672
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-sm-${this._config.sizeSm}`);
673
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-md-${this._config.sizeMd}`);
674
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-lg-${this._config.sizeLg}`);
675
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-xl-${this._config.sizeXl}`);
676
- //basic
677
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-icon`);
678
- //outline
679
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-outline`);
680
- //pill
681
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-pill`);
682
- //icon
683
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-basic`);
684
- //link
685
- this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-link`);
686
- }
687
- setConfig() {
688
- this.clearConfig();
689
- this.size ? this.setSize() : null;
690
- this.color ? this.setColor() : null;
691
- (this.outline === true || this.outline === 'true') ? this.setOutline() : null;
692
- (this.pill === true || this.pill === 'true') ? this.setPill() : null;
693
- (this.link === true || this.link === 'true') ? this.setLink() : null;
694
- (this.basic === true || this.basic === 'true') ? this.setBasic() : null;
695
- (this.icon === true || this.icon === 'true') ? this.setIcon() : null;
696
- }
697
- setSize() {
698
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-${this.size}`);
699
- this._config.size = this.size;
700
- if (this.sizeXs) {
701
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-xs-${this.sizeXs}`);
702
- this._config.sizeXs = this.sizeXs;
703
- }
704
- if (this.sizeSm) {
705
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-sm-${this.sizeSm}`);
706
- this._config.sizeSm = this.sizeSm;
707
- }
708
- if (this.sizeMd) {
709
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-md-${this.sizeMd}`);
710
- this._config.sizeMd = this.sizeMd;
711
- }
712
- if (this.sizeLg) {
713
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-lg-${this.sizeLg}`);
714
- this._config.sizeLg = this.sizeLg;
715
- }
716
- if (this.sizeXl) {
717
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-xl-${this.sizeXl}`);
718
- this._config.sizeXl = this.sizeXl;
719
- }
720
- }
721
- setColor() {
722
- this._renderer.addClass(this._elementRef.nativeElement, `${this.color}`);
723
- this._config.color = this.color;
724
- }
725
- setOutline() {
726
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-outline`);
727
- this._renderer.addClass(this._elementRef.nativeElement, `color-${this.color}`);
728
- }
729
- setPill() {
730
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-pill`);
731
- }
732
- setLink() {
733
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-link`);
734
- }
735
- setBasic() {
736
- this._renderer.removeClass(this._elementRef.nativeElement, `${this._config.color}`);
737
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-basic`);
738
- this._renderer.addClass(this._elementRef.nativeElement, `color-${this.color}`);
739
- this._renderer.addClass(this._elementRef.nativeElement, `basic`);
740
- }
741
- setIcon() {
742
- this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-icon`);
743
- }
744
- addRippleEffect(e) {
745
- var target = e.target;
746
- if (target.tagName.toLowerCase() !== 'button')
747
- return false;
748
- var rect = target.getBoundingClientRect();
749
- var ripple = target.querySelector('.ripple');
750
- if (!ripple) {
751
- ripple = document.createElement('span');
752
- ripple.className = `ripple`;
753
- ripple.style.height = ripple.style.width = target.offsetWidth + 'px';
754
- target.appendChild(ripple);
755
- }
756
- ripple.classList.remove('show');
757
- var top = e.pageY - rect.top - ripple.offsetHeight / 2 - window.scrollY;
758
- var left = e.pageX - rect.left - ripple.offsetWidth / 2 - window.scrollX;
759
- ripple.style.top = top + 'px';
760
- ripple.style.left = left + 'px';
761
- ripple.classList.add('show');
762
- return false;
763
- }
764
- ngOnDestroy() {
765
- const buttons = document.querySelectorAll('.matcha-button');
766
- buttons.forEach(button => {
767
- button.removeEventListener('click', this.addRippleEffect, false);
768
- });
769
- }
770
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonComponent, deps: [{ token: ElementRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
771
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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", pill: "pill", icon: "icon", link: "link" }, usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
772
- }
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonComponent, decorators: [{
774
- type: Component,
775
- args: [{ selector: '[matcha-button]', standalone: false, template: "<ng-content></ng-content>\n" }]
776
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
777
- type: Inject,
778
- args: [ElementRef]
779
- }] }, { type: i0.Renderer2, decorators: [{
780
- type: Inject,
781
- args: [Renderer2]
782
- }] }], propDecorators: { size: [{
783
- type: Input,
784
- args: ['size']
785
- }], sizeXs: [{
786
- type: Input,
787
- args: ['size-xs']
788
- }], sizeSm: [{
789
- type: Input,
790
- args: ['size-sm']
791
- }], sizeMd: [{
792
- type: Input,
793
- args: ['size-md']
794
- }], sizeLg: [{
795
- type: Input,
796
- args: ['size-lg']
797
- }], sizeXl: [{
798
- type: Input,
799
- args: ['size-xl']
800
- }], color: [{
801
- type: Input,
802
- args: ['color']
803
- }], basic: [{
804
- type: Input,
805
- args: ['basic']
806
- }], outline: [{
807
- type: Input,
808
- args: ['outline']
809
- }], pill: [{
810
- type: Input,
811
- args: ['pill']
812
- }], icon: [{
813
- type: Input,
814
- args: ['icon']
815
- }], link: [{
816
- type: Input,
817
- args: ['link']
818
- }] } });
819
-
820
910
  class MatchaCardComponent {
821
911
  constructor() {
822
912
  this.elevation = 0;
@@ -1413,7 +1503,7 @@ class MatchaToolbarButtonComponent {
1413
1503
  this.buttonClick.emit();
1414
1504
  }
1415
1505
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaToolbarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1416
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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=\"placeholder\" 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", "pill", "icon", "link"] }] }); }
1506
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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=\"placeholder\" 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", "icon", "link"] }] }); }
1417
1507
  }
1418
1508
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaToolbarButtonComponent, decorators: [{
1419
1509
  type: Component,
@@ -1442,7 +1532,7 @@ class MatchaToolbarMainButtonComponent {
1442
1532
  this.buttonClick.emit();
1443
1533
  }
1444
1534
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaToolbarMainButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1445
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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", "pill", "icon", "link"] }] }); }
1535
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", 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", "icon", "link"] }] }); }
1446
1536
  }
1447
1537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaToolbarMainButtonComponent, decorators: [{
1448
1538
  type: Component,
@@ -1684,6 +1774,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1684
1774
  }]
1685
1775
  }] });
1686
1776
 
1777
+ class MatchaButtonGroupModule {
1778
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1779
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupModule, declarations: [MatchaButtonGroupComponent, MatchaButtonItemComponent], imports: [CommonModule,
1780
+ MatchaTooltipModule], exports: [MatchaButtonGroupComponent, MatchaButtonItemComponent] }); }
1781
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupModule, imports: [CommonModule,
1782
+ MatchaTooltipModule] }); }
1783
+ }
1784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaButtonGroupModule, decorators: [{
1785
+ type: NgModule,
1786
+ args: [{
1787
+ declarations: [MatchaButtonGroupComponent, MatchaButtonItemComponent],
1788
+ imports: [
1789
+ CommonModule,
1790
+ MatchaTooltipModule
1791
+ ],
1792
+ exports: [MatchaButtonGroupComponent, MatchaButtonItemComponent]
1793
+ }]
1794
+ }] });
1795
+
1687
1796
  class MatchaIconModule {
1688
1797
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1689
1798
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaIconModule, declarations: [MatchaIconComponent], imports: [CommonModule, MatchaTooltipModule], exports: [MatchaIconComponent] }); }
@@ -2938,7 +3047,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
2938
3047
 
2939
3048
  class MatchaComponentsModule {
2940
3049
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2941
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [MatchaAccordionModule,
3050
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [MatchaButtonGroupModule,
3051
+ MatchaAccordionModule,
2942
3052
  MatchaFormFieldModule,
2943
3053
  MatchaInfiniteScrollModule,
2944
3054
  MatchaModalModule,
@@ -2975,7 +3085,8 @@ class MatchaComponentsModule {
2975
3085
  MatchaTableModule,
2976
3086
  MatchaTabsModule,
2977
3087
  MatchaTooltipModule,
2978
- MatchaTreeModule], exports: [MatchaAccordionModule,
3088
+ MatchaTreeModule], exports: [MatchaButtonGroupModule,
3089
+ MatchaAccordionModule,
2979
3090
  MatchaFormFieldModule,
2980
3091
  MatchaInfiniteScrollModule,
2981
3092
  MatchaModalModule,
@@ -3013,7 +3124,8 @@ class MatchaComponentsModule {
3013
3124
  MatchaTabsModule,
3014
3125
  MatchaTooltipModule,
3015
3126
  MatchaTreeModule] }); }
3016
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaComponentsModule, imports: [MatchaAccordionModule,
3127
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaComponentsModule, imports: [MatchaButtonGroupModule,
3128
+ MatchaAccordionModule,
3017
3129
  MatchaFormFieldModule,
3018
3130
  MatchaInfiniteScrollModule,
3019
3131
  MatchaModalModule,
@@ -3050,7 +3162,8 @@ class MatchaComponentsModule {
3050
3162
  MatchaTableModule,
3051
3163
  MatchaTabsModule,
3052
3164
  MatchaTooltipModule,
3053
- MatchaTreeModule, MatchaAccordionModule,
3165
+ MatchaTreeModule, MatchaButtonGroupModule,
3166
+ MatchaAccordionModule,
3054
3167
  MatchaFormFieldModule,
3055
3168
  MatchaInfiniteScrollModule,
3056
3169
  MatchaModalModule,
@@ -3096,6 +3209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3096
3209
  MatchaOverflowDraggableComponent
3097
3210
  ],
3098
3211
  imports: [
3212
+ MatchaButtonGroupModule,
3099
3213
  MatchaAccordionModule,
3100
3214
  MatchaFormFieldModule,
3101
3215
  MatchaInfiniteScrollModule,
@@ -3136,6 +3250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3136
3250
  MatchaTreeModule
3137
3251
  ],
3138
3252
  exports: [
3253
+ MatchaButtonGroupModule,
3139
3254
  MatchaAccordionModule,
3140
3255
  MatchaFormFieldModule,
3141
3256
  MatchaInfiniteScrollModule,
@@ -3197,5 +3312,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
3197
3312
  * Generated bundle index. Do not edit.
3198
3313
  */
3199
3314
 
3200
- export { MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxDirective, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDatepickerDirective, MatchaDatepickerModule, MatchaDividerComponent, MatchaDividerModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaExpansionDirective, MatchaExpansionModule, MatchaFormFieldComponent, MatchaFormFieldDirective, MatchaFormFieldModule, MatchaFormsModule, MatchaGridComponent, MatchaGridModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaListDirective, MatchaListModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaPaginatorDirective, MatchaPaginatorModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaProgressSpinnerDirective, MatchaProgressSpinnerModule, MatchaRadioButtonDirective, MatchaRadioButtonModule, MatchaSelectDirective, MatchaSelectModule, MatchaSidenavDirective, MatchaSidenavModule, MatchaSlideToggleDirective, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaTableDirective, MatchaTableModule, MatchaTabsDirective, MatchaTabsModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, MatchaTreeDirective, MatchaTreeModule };
3315
+ export { MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonComponent, MatchaButtonGroupComponent, MatchaButtonGroupModule, MatchaButtonItemComponent, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxDirective, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDatepickerDirective, MatchaDatepickerModule, MatchaDividerComponent, MatchaDividerModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaExpansionDirective, MatchaExpansionModule, MatchaFormFieldComponent, MatchaFormFieldDirective, MatchaFormFieldModule, MatchaFormsModule, MatchaGridComponent, MatchaGridModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaListDirective, MatchaListModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaPaginatorDirective, MatchaPaginatorModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaProgressSpinnerDirective, MatchaProgressSpinnerModule, MatchaRadioButtonDirective, MatchaRadioButtonModule, MatchaSelectDirective, MatchaSelectModule, MatchaSidenavDirective, MatchaSidenavModule, MatchaSlideToggleDirective, MatchaSlideToggleModule, MatchaSliderDirective, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaTableDirective, MatchaTableModule, MatchaTabsDirective, MatchaTabsModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, MatchaTreeDirective, MatchaTreeModule };
3201
3316
  //# sourceMappingURL=matcha-components.mjs.map