matcha-components 18.0.29 → 18.0.31
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/README.md +5 -5
- package/esm2022/lib/matcha-button/button.directive.mjs +37 -29
- package/esm2022/lib/matcha-components.module.mjs +7 -6
- package/esm2022/lib/matcha-divider/divider/divider.component.mjs +47 -0
- package/esm2022/lib/matcha-divider/divider.module.mjs +9 -5
- package/esm2022/lib/matcha-icon/icon.component.mjs +1 -3
- package/esm2022/lib/matcha-masonry/masonry/masonry.component.mjs +27 -3
- package/esm2022/lib/matcha-modal/matcha-modal.module.mjs +56 -0
- package/esm2022/lib/matcha-modal/modal/modal.component.mjs +34 -0
- package/esm2022/lib/matcha-modal/modal-content/modal-content.component.mjs +11 -0
- package/esm2022/lib/matcha-modal/modal-footer/modal-footer.component.mjs +20 -0
- package/esm2022/lib/matcha-modal/modal-header/modal-header.component.mjs +12 -0
- package/esm2022/lib/matcha-modal/modal-options/modal-options.component.mjs +11 -0
- package/esm2022/lib/matcha-title/title/title.component.mjs +63 -0
- package/esm2022/lib/matcha-title/title/title.directive.mjs +21 -0
- package/esm2022/lib/matcha-title/title.module.mjs +19 -0
- package/esm2022/public-api.mjs +11 -6
- package/fesm2022/matcha-components.mjs +335 -138
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/lib/matcha-button/button.directive.d.ts +8 -1
- package/lib/matcha-components.module.d.ts +37 -36
- package/lib/matcha-divider/divider/divider.component.d.ts +11 -0
- package/lib/matcha-divider/divider.module.d.ts +2 -2
- package/lib/matcha-icon/icon.component.d.ts +0 -2
- package/lib/matcha-masonry/masonry/masonry.component.d.ts +5 -1
- package/lib/matcha-modal/matcha-modal.module.d.ts +15 -0
- package/lib/matcha-modal/modal/modal.component.d.ts +12 -0
- package/lib/matcha-modal/modal-content/modal-content.component.d.ts +5 -0
- package/lib/matcha-modal/modal-footer/modal-footer.component.d.ts +6 -0
- package/lib/matcha-modal/modal-header/modal-header.component.d.ts +5 -0
- package/lib/matcha-modal/modal-options/modal-options.component.d.ts +5 -0
- package/lib/matcha-title/title/title.component.d.ts +20 -0
- package/lib/matcha-title/title/title.directive.d.ts +10 -0
- package/lib/matcha-title/title.module.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +10 -5
- package/esm2022/lib/matcha-divider/divider.directive.mjs +0 -19
- package/esm2022/lib/matcha-headers/headers.module.mjs +0 -20
- package/esm2022/lib/matcha-headers/headine/headline.component.mjs +0 -24
- package/esm2022/lib/matcha-headers/subhead/subhead.component.mjs +0 -24
- package/esm2022/lib/matcha-headers/title/title.component.mjs +0 -24
- package/lib/matcha-divider/divider.directive.d.ts +0 -9
- package/lib/matcha-headers/headers.module.d.ts +0 -10
- package/lib/matcha-headers/headine/headline.component.d.ts +0 -8
- package/lib/matcha-headers/subhead/subhead.component.d.ts +0 -8
- package/lib/matcha-headers/title/title.component.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, ElementRef, Renderer2, Inject, HostListener, NgModule, Directive } from '@angular/core';
|
|
2
|
+
import { Component, Input, EventEmitter, Output, ElementRef, Renderer2, Inject, HostListener, NgModule, Directive } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
@@ -51,70 +51,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
51
51
|
type: Input
|
|
52
52
|
}] } });
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class MatchaDividerComponent {
|
|
55
55
|
constructor() {
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
56
|
+
this.gap = null;
|
|
57
|
+
this.gapSm = null;
|
|
58
|
+
this.gapMd = null;
|
|
59
|
+
this.gapLg = null;
|
|
60
|
+
this.gapXl = null;
|
|
58
61
|
}
|
|
59
62
|
get classes() {
|
|
60
|
-
const
|
|
61
|
-
const
|
|
63
|
+
const gap = this.gap ? `my-${this.gap}` : '';
|
|
64
|
+
const gapSm = this.gapSm ? `my-sm-${this.gapSm}` : '';
|
|
65
|
+
const gapMd = this.gapMd ? `my-md-${this.gapMd}` : '';
|
|
66
|
+
const gapLg = this.gapLg ? `my-lg-${this.gapLg}` : '';
|
|
67
|
+
const gapXl = this.gapXl ? `my-xl-${this.gapXl}` : '';
|
|
68
|
+
let activeClasses = 'flex-column w-100-p bt-2 border-color-disabled';
|
|
69
|
+
activeClasses += gap ? ` ${gap}` : '';
|
|
70
|
+
activeClasses += gapSm ? ` ${gapSm}` : '';
|
|
71
|
+
activeClasses += gapMd ? ` ${gapMd}` : '';
|
|
72
|
+
activeClasses += gapLg ? ` ${gapLg}` : '';
|
|
73
|
+
activeClasses += gapXl ? ` ${gapXl}` : '';
|
|
62
74
|
return activeClasses;
|
|
63
75
|
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type:
|
|
65
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type:
|
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaDividerComponent, selector: "matcha-divider", inputs: { gap: "gap", gapSm: ["gap-sm", "gapSm"], gapMd: ["gap-md", "gapMd"], gapLg: ["gap-lg", "gapLg"], gapXl: ["gap-xl", "gapXl"] }, ngImport: i0, template: "<div [class]=\"classes\"></div>\n", styles: [""] }); }
|
|
66
78
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type:
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerComponent, decorators: [{
|
|
68
80
|
type: Component,
|
|
69
|
-
args: [{ selector: 'matcha-
|
|
70
|
-
}], propDecorators: {
|
|
71
|
-
type: Input
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
args: [{ selector: 'matcha-divider', template: "<div [class]=\"classes\"></div>\n" }]
|
|
82
|
+
}], propDecorators: { gap: [{
|
|
83
|
+
type: Input,
|
|
84
|
+
args: ['gap']
|
|
85
|
+
}], gapSm: [{
|
|
86
|
+
type: Input,
|
|
87
|
+
args: ['gap-sm']
|
|
88
|
+
}], gapMd: [{
|
|
89
|
+
type: Input,
|
|
90
|
+
args: ['gap-md']
|
|
91
|
+
}], gapLg: [{
|
|
92
|
+
type: Input,
|
|
93
|
+
args: ['gap-lg']
|
|
94
|
+
}], gapXl: [{
|
|
95
|
+
type: Input,
|
|
96
|
+
args: ['gap-xl']
|
|
74
97
|
}] } });
|
|
75
98
|
|
|
76
|
-
|
|
99
|
+
// matcha-title <matcha-title color="fg" level="1" loading="false" type="pill" icon="icon" (iconClick)="emitIconAction($event)"></matcha-title>
|
|
100
|
+
class MatchaTitleComponent {
|
|
77
101
|
constructor() {
|
|
78
|
-
this.
|
|
102
|
+
this.color = null;
|
|
103
|
+
this.level = 1;
|
|
79
104
|
this.loading = false;
|
|
105
|
+
this.type = 'pill';
|
|
106
|
+
this.icon = '';
|
|
107
|
+
this.iconClick = new EventEmitter();
|
|
108
|
+
this.levelClasses = {
|
|
109
|
+
1: 'fw-900 fs-12 lh-12 text-uppercase',
|
|
110
|
+
2: 'fw-900 fs-14 lh-16',
|
|
111
|
+
3: 'fw-900 fs-16 lh-18',
|
|
112
|
+
4: 'fw-900 fs-20 lh-22',
|
|
113
|
+
5: 'fw-900 fs-20 lh-22',
|
|
114
|
+
6: 'fw-900 fs-32 lh-32',
|
|
115
|
+
7: 'fw-900 fs-40 lh-40',
|
|
116
|
+
};
|
|
80
117
|
}
|
|
81
|
-
|
|
82
|
-
const bullet = this.
|
|
83
|
-
const
|
|
84
|
-
return
|
|
118
|
+
getTypes() {
|
|
119
|
+
const bullet = this.color ? `background-${this.color} ` : 'background-fg';
|
|
120
|
+
const icon = this.icon ? `i-matcha-${this.icon}` : '';
|
|
121
|
+
return this.type === 'pill' ? `min-h-24 h-24 max-h-24 max-w-8 w-8 min-w-8 position-relative mr-8 radius-8 ${bullet}` :
|
|
122
|
+
this.type === 'bullet' ? `min-h-8 h-8 max-h-8 max-w-8 w-8 min-w-8 position-relative mr-8 radius-8 ${this.color ? `background-${this.color}` : 'background-fg'}` :
|
|
123
|
+
this.type === 'icon' ? `position-relative mr-8 radius-8 ${icon} ${this.color ? `color-${this.color}` : 'color-placeholder'}` :
|
|
124
|
+
this.type === 'none' ? `d-none--force` : '';
|
|
85
125
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaSubheadComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{ selector: 'matcha-subhead', template: "<h5 class=\"lh-16 d-flex flex-align-center m-0 h5\"><span [class]=\"classes\"></span><ng-content></ng-content></h5>\n" }]
|
|
92
|
-
}], propDecorators: { bulletColor: [{
|
|
93
|
-
type: Input
|
|
94
|
-
}], loading: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}] } });
|
|
97
|
-
|
|
98
|
-
class MatchaTitleComponent {
|
|
99
|
-
constructor() {
|
|
100
|
-
this.bulletColor = 'accent';
|
|
101
|
-
this.loading = false;
|
|
126
|
+
get signClasses() {
|
|
127
|
+
const activeClasses = `d-flex ${this.getTypes()} ${this.loading ? 'loading' : ''}`;
|
|
128
|
+
return activeClasses;
|
|
102
129
|
}
|
|
103
|
-
get
|
|
104
|
-
const
|
|
105
|
-
const
|
|
130
|
+
get textClasses() {
|
|
131
|
+
const classes = `d-inline-block position-relative mr-8 radius-8`;
|
|
132
|
+
const level = this.levelClasses[this.level] ? this.levelClasses[this.level] : '';
|
|
133
|
+
const activeClasses = `${classes} ${level} ${this.loading ? 'loading' : ''}`;
|
|
106
134
|
return activeClasses;
|
|
107
135
|
}
|
|
136
|
+
emitIconAction() {
|
|
137
|
+
const data = { icon: this.icon };
|
|
138
|
+
this.iconClick.emit(data);
|
|
139
|
+
}
|
|
108
140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaTitleComponent, selector: "matcha-title", inputs: {
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaTitleComponent, selector: "matcha-title", inputs: { color: "color", level: "level", loading: "loading", type: "type", icon: "icon" }, outputs: { iconClick: "iconClick" }, ngImport: i0, template: "<!-- <matcha-title level=\"1\" type=\"bullet\"></matcha-title> -->\n\n<div class=\"d-flex flex-align-center m-0\">\n <span [class]=\"signClasses\" (click)=\"emitIconAction()\"></span>\n <span [class]=\"textClasses\">\n <ng-content></ng-content>\n </span>\n</div>\n", styles: [""] }); }
|
|
110
142
|
}
|
|
111
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleComponent, decorators: [{
|
|
112
144
|
type: Component,
|
|
113
|
-
args: [{ selector: 'matcha-title', template: "<
|
|
114
|
-
}], propDecorators: {
|
|
145
|
+
args: [{ selector: 'matcha-title', template: "<!-- <matcha-title level=\"1\" type=\"bullet\"></matcha-title> -->\n\n<div class=\"d-flex flex-align-center m-0\">\n <span [class]=\"signClasses\" (click)=\"emitIconAction()\"></span>\n <span [class]=\"textClasses\">\n <ng-content></ng-content>\n </span>\n</div>\n" }]
|
|
146
|
+
}], propDecorators: { color: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], level: [{
|
|
115
149
|
type: Input
|
|
116
150
|
}], loading: [{
|
|
117
151
|
type: Input
|
|
152
|
+
}], type: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], icon: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], iconClick: [{
|
|
157
|
+
type: Output
|
|
118
158
|
}] } });
|
|
119
159
|
|
|
120
160
|
class MatchaIconComponent {
|
|
@@ -150,8 +190,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
150
190
|
}], loading: [{
|
|
151
191
|
type: Input
|
|
152
192
|
}] } });
|
|
153
|
-
class MatchaCardFooter {
|
|
154
|
-
}
|
|
155
193
|
|
|
156
194
|
class MatchaGridComponent {
|
|
157
195
|
getStringSplited(inputValue) {
|
|
@@ -269,6 +307,10 @@ class MatchaMasonryComponent {
|
|
|
269
307
|
this.lgColSize = null;
|
|
270
308
|
this.xlColSize = null;
|
|
271
309
|
this.gap = null;
|
|
310
|
+
this.gapSm = null;
|
|
311
|
+
this.gapMd = null;
|
|
312
|
+
this.gapLg = null;
|
|
313
|
+
this.gapXl = null;
|
|
272
314
|
}
|
|
273
315
|
get classes() {
|
|
274
316
|
const col = this.colSize ? `masonry-${this.colSize}` : '';
|
|
@@ -277,6 +319,10 @@ class MatchaMasonryComponent {
|
|
|
277
319
|
const lgCol = this.lgColSize ? `masonry-lg-${this.lgColSize}` : '';
|
|
278
320
|
const xlCol = this.xlColSize ? `masonry-xl-${this.xlColSize}` : '';
|
|
279
321
|
const gap = this.gap ? `masonry-gap-${this.gap}` : '';
|
|
322
|
+
const gapSm = this.gapSm ? `masonry-gap-sm-${this.gapSm}` : '';
|
|
323
|
+
const gapMd = this.gapMd ? `masonry-gap-md-${this.gapMd}` : '';
|
|
324
|
+
const gapLg = this.gapLg ? `masonry-gap-lg-${this.gapLg}` : '';
|
|
325
|
+
const gapXl = this.gapXl ? `masonry-gap-xl-${this.gapXl}` : '';
|
|
280
326
|
let activeClasses = '';
|
|
281
327
|
activeClasses += col ? ` ${col}` : '';
|
|
282
328
|
activeClasses += smCol ? ` ${smCol}` : '';
|
|
@@ -284,14 +330,18 @@ class MatchaMasonryComponent {
|
|
|
284
330
|
activeClasses += lgCol ? ` ${lgCol}` : '';
|
|
285
331
|
activeClasses += xlCol ? ` ${xlCol}` : '';
|
|
286
332
|
activeClasses += gap ? ` ${gap}` : '';
|
|
333
|
+
activeClasses += gapSm ? ` ${gapSm}` : '';
|
|
334
|
+
activeClasses += gapMd ? ` ${gapMd}` : '';
|
|
335
|
+
activeClasses += gapLg ? ` ${gapLg}` : '';
|
|
336
|
+
activeClasses += gapXl ? ` ${gapXl}` : '';
|
|
287
337
|
return activeClasses;
|
|
288
338
|
}
|
|
289
339
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaMasonryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
290
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaMasonryComponent, 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" }, ngImport: i0, template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n", styles: ["
|
|
340
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaMasonryComponent, 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: [""] }); }
|
|
291
341
|
}
|
|
292
342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaMasonryComponent, decorators: [{
|
|
293
343
|
type: Component,
|
|
294
|
-
args: [{ selector: 'matcha-masonry', template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n"
|
|
344
|
+
args: [{ selector: 'matcha-masonry', template: "<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
295
345
|
}], propDecorators: { colSize: [{
|
|
296
346
|
type: Input,
|
|
297
347
|
args: ['col']
|
|
@@ -310,6 +360,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
310
360
|
}], gap: [{
|
|
311
361
|
type: Input,
|
|
312
362
|
args: ['gap']
|
|
363
|
+
}], gapSm: [{
|
|
364
|
+
type: Input,
|
|
365
|
+
args: ['gap-sm']
|
|
366
|
+
}], gapMd: [{
|
|
367
|
+
type: Input,
|
|
368
|
+
args: ['gap-md']
|
|
369
|
+
}], gapLg: [{
|
|
370
|
+
type: Input,
|
|
371
|
+
args: ['gap-lg']
|
|
372
|
+
}], gapXl: [{
|
|
373
|
+
type: Input,
|
|
374
|
+
args: ['gap-xl']
|
|
375
|
+
}] } });
|
|
376
|
+
|
|
377
|
+
class MatchaModalContentComponent {
|
|
378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
379
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaModalContentComponent, selector: "matcha-modal-content", ngImport: i0, template: "\n<div class=\"py-24 pt-0 overflow-auto\">\n <div class=\"matcha-card-flat matcha-background-transparent p-0 d-flex-column mb-24\">\n <div class=\"d-flex-column matcha-card-flat matcha-background-transparent px-24 py-0\">\n <ng-content></ng-content>\n <!-- <h4 class=\"fw-700 my-24\">{{channel?.name}}</h4>\n <div *ngIf=\"channel?.image\" class=\"container\">\n <div\n class=\"w-100-p aspect-ratio-16x9 d-flex-column d-flex-space-between overflow-hidden position-relative matcha-background-disabled border-radius-8\">\n <div class=\"front-image d-flex-column h-100-p p-24\">\n <div\n class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9 d-flex-center-center\">\n <div class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9\" [ngStyle]=\"{\n background: 'url(' + channel?.image + ') no-repeat center center / cover',\n filter: 'blur(100px)'\n }\"></div>\n <div class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9\" [ngStyle]=\"{\n background: 'url(' + channel?.image + ') no-repeat center center / cover'\n }\"></div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"!channel?.image\" class=\"container min-h-220 d-flex\">\n <div class=\"w-100-p min-h-220 matcha-background-disabled border-radius-8\">\n <div class=\"front-image h-100-p p-24 d-flex-center-center\">\n <span class=\"i-matcha-gallery i-size-lg fs-72 lh-72 w-72 h-72 matcha-color-placeholder\"></span>\n </div>\n </div>\n </div>\n <div class=\"py-24\">\n <span class=\"par-m matcha-color-placeholder\">\n <span [innerHTML]=\"channel.description ? getFormattedText(channel.description) : 'N\u00E3o dispon\u00EDvel'\"></span>\n </span>\n </div>\n <collapsible-section class=\"flatten\" color=\"primary\" nameRef=\"advancedOptions\" title=\"Dados extras\"\n [labelMore]=\"'ACTION.SEE_MORE' | translate\" [labelLess]=\"'ACTION.SEE_LESS' | translate\">\n <div class=\"d-flex-column gap-16\">\n <span>• Configura\u00E7\u00F5es do canal</span>\n <div class=\"matcha-card\">\n <div class=\"d-flex-space-between\">\n <span>Permitir o usu\u00E1rio compartilhar canal?</span>\n <span>{{channel.can_share ? 'Sim' : 'N\u00E3o'}}</span>\n </div>\n </div>\n\n <div class=\"matcha-card mb-24\">\n <div class=\"d-flex-space-between\">\n <span>Est\u00E1 ao vivo agora?</span>\n <span>{{ channel.is_live ? ('ACTION.YES' | translate) : ('ACTION.NO' | translate)}}</span>\n </div>\n </div>\n </div>\n </collapsible-section> -->\n </div>\n </div>\n</div>\n", styles: [""] }); }
|
|
380
|
+
}
|
|
381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalContentComponent, decorators: [{
|
|
382
|
+
type: Component,
|
|
383
|
+
args: [{ selector: 'matcha-modal-content', template: "\n<div class=\"py-24 pt-0 overflow-auto\">\n <div class=\"matcha-card-flat matcha-background-transparent p-0 d-flex-column mb-24\">\n <div class=\"d-flex-column matcha-card-flat matcha-background-transparent px-24 py-0\">\n <ng-content></ng-content>\n <!-- <h4 class=\"fw-700 my-24\">{{channel?.name}}</h4>\n <div *ngIf=\"channel?.image\" class=\"container\">\n <div\n class=\"w-100-p aspect-ratio-16x9 d-flex-column d-flex-space-between overflow-hidden position-relative matcha-background-disabled border-radius-8\">\n <div class=\"front-image d-flex-column h-100-p p-24\">\n <div\n class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9 d-flex-center-center\">\n <div class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9\" [ngStyle]=\"{\n background: 'url(' + channel?.image + ') no-repeat center center / cover',\n filter: 'blur(100px)'\n }\"></div>\n <div class=\"position-absolute align-top align-left w-100-p aspect-ratio-16x9\" [ngStyle]=\"{\n background: 'url(' + channel?.image + ') no-repeat center center / cover'\n }\"></div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"!channel?.image\" class=\"container min-h-220 d-flex\">\n <div class=\"w-100-p min-h-220 matcha-background-disabled border-radius-8\">\n <div class=\"front-image h-100-p p-24 d-flex-center-center\">\n <span class=\"i-matcha-gallery i-size-lg fs-72 lh-72 w-72 h-72 matcha-color-placeholder\"></span>\n </div>\n </div>\n </div>\n <div class=\"py-24\">\n <span class=\"par-m matcha-color-placeholder\">\n <span [innerHTML]=\"channel.description ? getFormattedText(channel.description) : 'N\u00E3o dispon\u00EDvel'\"></span>\n </span>\n </div>\n <collapsible-section class=\"flatten\" color=\"primary\" nameRef=\"advancedOptions\" title=\"Dados extras\"\n [labelMore]=\"'ACTION.SEE_MORE' | translate\" [labelLess]=\"'ACTION.SEE_LESS' | translate\">\n <div class=\"d-flex-column gap-16\">\n <span>• Configura\u00E7\u00F5es do canal</span>\n <div class=\"matcha-card\">\n <div class=\"d-flex-space-between\">\n <span>Permitir o usu\u00E1rio compartilhar canal?</span>\n <span>{{channel.can_share ? 'Sim' : 'N\u00E3o'}}</span>\n </div>\n </div>\n\n <div class=\"matcha-card mb-24\">\n <div class=\"d-flex-space-between\">\n <span>Est\u00E1 ao vivo agora?</span>\n <span>{{ channel.is_live ? ('ACTION.YES' | translate) : ('ACTION.NO' | translate)}}</span>\n </div>\n </div>\n </div>\n </collapsible-section> -->\n </div>\n </div>\n</div>\n" }]
|
|
384
|
+
}] });
|
|
385
|
+
|
|
386
|
+
class MatchaModalHeaderComponent {
|
|
387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
388
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaModalHeaderComponent, selector: "matcha-modal-header", ngImport: i0, template: "<!-- [@animate]=\"{ value: '*', params: { delay: '100ms' } }\" -->\n<!-- MATCHA CHECK -->\n<div class=\"matcha-section\">\n <div class=\"d-flex flex-wrap flex-space-between mb-16 mb-sm-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"] }] }); }
|
|
389
|
+
}
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalHeaderComponent, decorators: [{
|
|
391
|
+
type: Component,
|
|
392
|
+
args: [{ selector: 'matcha-modal-header', template: "<!-- [@animate]=\"{ value: '*', params: { delay: '100ms' } }\" -->\n<!-- MATCHA CHECK -->\n<div class=\"matcha-section\">\n <div class=\"d-flex flex-wrap flex-space-between mb-16 mb-sm-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" }]
|
|
393
|
+
}] });
|
|
394
|
+
|
|
395
|
+
class MatchaModalFooterComponent {
|
|
396
|
+
ngAfterViewInit() {
|
|
397
|
+
const modalFooter = document.querySelectorAll('matcha-modal-footer');
|
|
398
|
+
const buttons = modalFooter[0].querySelectorAll('.matcha-button');
|
|
399
|
+
buttons.forEach(button => {
|
|
400
|
+
button.classList.add('max-w-md-256');
|
|
401
|
+
button.classList.add('w-100-p');
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
405
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaModalFooterComponent, selector: "matcha-modal-footer", ngImport: i0, template: "<matcha-divider></matcha-divider>\n<div class=\"flex-column flex-sm-row w-100-p flex-space-between pt-16 pt-md-24 gap-16\">\n <ng-content></ng-content>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatchaDividerComponent, selector: "matcha-divider", inputs: ["gap", "gap-sm", "gap-md", "gap-lg", "gap-xl"] }] }); }
|
|
406
|
+
}
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalFooterComponent, decorators: [{
|
|
408
|
+
type: Component,
|
|
409
|
+
args: [{ selector: 'matcha-modal-footer', template: "<matcha-divider></matcha-divider>\n<div class=\"flex-column flex-sm-row w-100-p flex-space-between pt-16 pt-md-24 gap-16\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
410
|
+
}] });
|
|
411
|
+
|
|
412
|
+
class MatchaModalOptionsComponent {
|
|
413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalOptionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
414
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaModalOptionsComponent, selector: "matcha-modal-options", ngImport: i0, template: "<div class=\"flex-row gap-8\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
415
|
+
}
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalOptionsComponent, decorators: [{
|
|
417
|
+
type: Component,
|
|
418
|
+
args: [{ selector: 'matcha-modal-options', template: "<div class=\"flex-row gap-8\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
419
|
+
}] });
|
|
420
|
+
|
|
421
|
+
class MatchaModalComponent {
|
|
422
|
+
constructor() {
|
|
423
|
+
this.elevation = 0;
|
|
424
|
+
this.class = '';
|
|
425
|
+
this.icon = '';
|
|
426
|
+
this.iconClick = new EventEmitter();
|
|
427
|
+
}
|
|
428
|
+
get classes() {
|
|
429
|
+
const elevation = `elevation-z-${this.elevation}`;
|
|
430
|
+
const activeClasses = `background-surface radius-8 p-16 p-md-24 ${elevation} ${this.class}`;
|
|
431
|
+
return activeClasses;
|
|
432
|
+
}
|
|
433
|
+
emitIconAction() {
|
|
434
|
+
const data = { icon: this.icon };
|
|
435
|
+
this.iconClick.emit(data);
|
|
436
|
+
}
|
|
437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
438
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: MatchaModalComponent, selector: "matcha-modal", inputs: { elevation: "elevation", class: "class", icon: "icon" }, outputs: { iconClick: "iconClick" }, ngImport: i0, template: "<!-- HOW TO USE:\n<page-header [title]=\"TITULO-AQU\" icon=\"ICONE-AQUI\" (iconClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-NO-ICONE-AQUI\">\n <search-form (searchText)=\"searchText($event)\"></search-form>\n <button-toggle-view>\n BOT\u00C3O DE TOOGLE VIEW AQUI\n </button-toggle-view>\n <button-new>\n BOT\u00C3O DE NOVO AQUI\n </button-new>\n QUALQUER OUTRA FUNCIONALIDADE AQUI\n</page-header>\n-->\n<!-- CONTENT HEADER -->\n<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n<!-- / CONTENT HEADER -->\n", styles: [""] }); }
|
|
439
|
+
}
|
|
440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalComponent, decorators: [{
|
|
441
|
+
type: Component,
|
|
442
|
+
args: [{ selector: 'matcha-modal', template: "<!-- HOW TO USE:\n<page-header [title]=\"TITULO-AQU\" icon=\"ICONE-AQUI\" (iconClick)=\"FUN\u00C7\u00C3O-AO-CLICAR-NO-ICONE-AQUI\">\n <search-form (searchText)=\"searchText($event)\"></search-form>\n <button-toggle-view>\n BOT\u00C3O DE TOOGLE VIEW AQUI\n </button-toggle-view>\n <button-new>\n BOT\u00C3O DE NOVO AQUI\n </button-new>\n QUALQUER OUTRA FUNCIONALIDADE AQUI\n</page-header>\n-->\n<!-- CONTENT HEADER -->\n<div [class]=\"classes\">\n <ng-content></ng-content>\n</div>\n<!-- / CONTENT HEADER -->\n" }]
|
|
443
|
+
}], propDecorators: { elevation: [{
|
|
444
|
+
type: Input
|
|
445
|
+
}], class: [{
|
|
446
|
+
type: Input
|
|
447
|
+
}], icon: [{
|
|
448
|
+
type: Input
|
|
449
|
+
}], iconClick: [{
|
|
450
|
+
type: Output
|
|
313
451
|
}] } });
|
|
314
452
|
|
|
315
453
|
class MatchaMenuComponent {
|
|
@@ -363,6 +501,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
363
501
|
args: ['mouseleave', ['$event']]
|
|
364
502
|
}] } });
|
|
365
503
|
|
|
504
|
+
class MatchaIconModule {
|
|
505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
506
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, declarations: [MatchaIconComponent], imports: [CommonModule], exports: [MatchaIconComponent] }); }
|
|
507
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, imports: [CommonModule] }); }
|
|
508
|
+
}
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, decorators: [{
|
|
510
|
+
type: NgModule,
|
|
511
|
+
args: [{
|
|
512
|
+
declarations: [MatchaIconComponent],
|
|
513
|
+
imports: [CommonModule],
|
|
514
|
+
exports: [MatchaIconComponent],
|
|
515
|
+
}]
|
|
516
|
+
}] });
|
|
517
|
+
|
|
518
|
+
class MatchaTitleDirective {
|
|
519
|
+
constructor(el, renderer) {
|
|
520
|
+
this.el = el;
|
|
521
|
+
this.renderer = renderer;
|
|
522
|
+
}
|
|
523
|
+
ngOnInit() {
|
|
524
|
+
// Adiciona a classe cursor-pointer ao elemento se o output iconClick estiver presente
|
|
525
|
+
this.renderer.addClass(this.el.nativeElement, 'cursor-pointer');
|
|
526
|
+
}
|
|
527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
528
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: MatchaTitleDirective, selector: "[iconClick]", ngImport: i0 }); }
|
|
529
|
+
}
|
|
530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleDirective, decorators: [{
|
|
531
|
+
type: Directive,
|
|
532
|
+
args: [{
|
|
533
|
+
selector: '[iconClick]'
|
|
534
|
+
}]
|
|
535
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
536
|
+
|
|
537
|
+
class MatchaTitleModule {
|
|
538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
539
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleModule, declarations: [MatchaTitleComponent, MatchaTitleDirective], imports: [CommonModule], exports: [MatchaTitleComponent, MatchaTitleDirective] }); }
|
|
540
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleModule, imports: [CommonModule] }); }
|
|
541
|
+
}
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaTitleModule, decorators: [{
|
|
543
|
+
type: NgModule,
|
|
544
|
+
args: [{
|
|
545
|
+
declarations: [MatchaTitleComponent, MatchaTitleDirective],
|
|
546
|
+
imports: [CommonModule],
|
|
547
|
+
exports: [MatchaTitleComponent, MatchaTitleDirective],
|
|
548
|
+
}]
|
|
549
|
+
}] });
|
|
550
|
+
|
|
551
|
+
class MatchaDividerModule {
|
|
552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
553
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, declarations: [MatchaDividerComponent], imports: [CommonModule], exports: [MatchaDividerComponent] }); }
|
|
554
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, imports: [CommonModule] }); }
|
|
555
|
+
}
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, decorators: [{
|
|
557
|
+
type: NgModule,
|
|
558
|
+
args: [{
|
|
559
|
+
declarations: [
|
|
560
|
+
MatchaDividerComponent
|
|
561
|
+
],
|
|
562
|
+
imports: [CommonModule],
|
|
563
|
+
exports: [
|
|
564
|
+
MatchaDividerComponent
|
|
565
|
+
],
|
|
566
|
+
}]
|
|
567
|
+
}] });
|
|
568
|
+
|
|
569
|
+
class MatchaModalModule {
|
|
570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
571
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalModule, declarations: [MatchaModalHeaderComponent,
|
|
572
|
+
MatchaModalContentComponent,
|
|
573
|
+
MatchaModalFooterComponent,
|
|
574
|
+
MatchaModalOptionsComponent,
|
|
575
|
+
MatchaModalComponent], imports: [CommonModule,
|
|
576
|
+
MatchaIconModule,
|
|
577
|
+
MatchaTitleModule,
|
|
578
|
+
MatchaDividerModule], exports: [MatchaModalHeaderComponent,
|
|
579
|
+
MatchaModalContentComponent,
|
|
580
|
+
MatchaModalFooterComponent,
|
|
581
|
+
MatchaModalOptionsComponent,
|
|
582
|
+
MatchaModalComponent] }); }
|
|
583
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalModule, imports: [CommonModule,
|
|
584
|
+
MatchaIconModule,
|
|
585
|
+
MatchaTitleModule,
|
|
586
|
+
MatchaDividerModule] }); }
|
|
587
|
+
}
|
|
588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaModalModule, decorators: [{
|
|
589
|
+
type: NgModule,
|
|
590
|
+
args: [{
|
|
591
|
+
declarations: [
|
|
592
|
+
MatchaModalHeaderComponent,
|
|
593
|
+
MatchaModalContentComponent,
|
|
594
|
+
MatchaModalFooterComponent,
|
|
595
|
+
MatchaModalOptionsComponent,
|
|
596
|
+
MatchaModalComponent
|
|
597
|
+
],
|
|
598
|
+
imports: [
|
|
599
|
+
CommonModule,
|
|
600
|
+
MatchaIconModule,
|
|
601
|
+
MatchaTitleModule,
|
|
602
|
+
MatchaDividerModule
|
|
603
|
+
],
|
|
604
|
+
exports: [
|
|
605
|
+
MatchaModalHeaderComponent,
|
|
606
|
+
MatchaModalContentComponent,
|
|
607
|
+
MatchaModalFooterComponent,
|
|
608
|
+
MatchaModalOptionsComponent,
|
|
609
|
+
MatchaModalComponent
|
|
610
|
+
]
|
|
611
|
+
}]
|
|
612
|
+
}] });
|
|
613
|
+
|
|
366
614
|
class MatchaCardModule {
|
|
367
615
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
368
616
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaCardModule, declarations: [MatchaCardComponent], imports: [CommonModule], exports: [MatchaCardComponent] }); }
|
|
@@ -391,20 +639,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
391
639
|
}]
|
|
392
640
|
}] });
|
|
393
641
|
|
|
394
|
-
class MatchaHeadersModule {
|
|
395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaHeadersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
396
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaHeadersModule, declarations: [MatchaTitleComponent, MatchaHeadlineComponent, MatchaSubheadComponent], imports: [CommonModule], exports: [MatchaTitleComponent, MatchaHeadlineComponent, MatchaSubheadComponent] }); }
|
|
397
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaHeadersModule, imports: [CommonModule] }); }
|
|
398
|
-
}
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaHeadersModule, decorators: [{
|
|
400
|
-
type: NgModule,
|
|
401
|
-
args: [{
|
|
402
|
-
declarations: [MatchaTitleComponent, MatchaHeadlineComponent, MatchaSubheadComponent],
|
|
403
|
-
imports: [CommonModule],
|
|
404
|
-
exports: [MatchaTitleComponent, MatchaHeadlineComponent, MatchaSubheadComponent],
|
|
405
|
-
}]
|
|
406
|
-
}] });
|
|
407
|
-
|
|
408
642
|
class MatchaAutocompleteDirective {
|
|
409
643
|
constructor(_elementRef, _renderer) {
|
|
410
644
|
this._elementRef = _elementRef;
|
|
@@ -604,7 +838,7 @@ class MatchaButtonDirective {
|
|
|
604
838
|
}
|
|
605
839
|
ngOnInit() {
|
|
606
840
|
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button`);
|
|
607
|
-
this.
|
|
841
|
+
this.setConfig();
|
|
608
842
|
// Adicione o evento de clique apenas a elementos com a classe "matcha-button"
|
|
609
843
|
const buttons = document.querySelectorAll('.matcha-button');
|
|
610
844
|
buttons.forEach(button => {
|
|
@@ -613,9 +847,9 @@ class MatchaButtonDirective {
|
|
|
613
847
|
});
|
|
614
848
|
}
|
|
615
849
|
ngOnChanges() {
|
|
616
|
-
this.
|
|
850
|
+
this.setConfig();
|
|
617
851
|
}
|
|
618
|
-
|
|
852
|
+
clearConfig() {
|
|
619
853
|
// BG colors and FG contrast
|
|
620
854
|
this._renderer.removeClass(this._elementRef.nativeElement, `${this._config.color}`);
|
|
621
855
|
// FG colors only
|
|
@@ -630,29 +864,38 @@ class MatchaButtonDirective {
|
|
|
630
864
|
this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-pill`);
|
|
631
865
|
//icon
|
|
632
866
|
this._renderer.removeClass(this._elementRef.nativeElement, `matcha-button-basic`);
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
867
|
+
}
|
|
868
|
+
setConfig() {
|
|
869
|
+
this.clearConfig();
|
|
870
|
+
this.size ? this.setSize() : null;
|
|
871
|
+
this.color ? this.setColor() : null;
|
|
872
|
+
(this.outline === true || this.outline === 'true') ? this.setOutline() : null;
|
|
873
|
+
(this.pill === true || this.pill === 'true') ? this.setPill() : null;
|
|
874
|
+
(this.basic === true || this.basic === 'true') ? this.setBasic() : null;
|
|
875
|
+
(this.icon === true || this.icon === 'true') ? this.setIcon() : null;
|
|
876
|
+
}
|
|
877
|
+
setSize() {
|
|
878
|
+
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-${this.size}`);
|
|
879
|
+
this._config.size = this.size;
|
|
880
|
+
}
|
|
881
|
+
setColor() {
|
|
882
|
+
this._renderer.addClass(this._elementRef.nativeElement, `${this.color}`);
|
|
883
|
+
this._config.color = this.color;
|
|
884
|
+
}
|
|
885
|
+
setOutline() {
|
|
886
|
+
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-outline`);
|
|
887
|
+
this._renderer.addClass(this._elementRef.nativeElement, `color-${this.color}`);
|
|
888
|
+
}
|
|
889
|
+
setPill() {
|
|
890
|
+
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-pill`);
|
|
891
|
+
}
|
|
892
|
+
setBasic() {
|
|
893
|
+
this._renderer.removeClass(this._elementRef.nativeElement, `${this._config.color}`);
|
|
894
|
+
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-basic`);
|
|
895
|
+
this._renderer.addClass(this._elementRef.nativeElement, `color-${this.color}`);
|
|
896
|
+
}
|
|
897
|
+
setIcon() {
|
|
898
|
+
this._renderer.addClass(this._elementRef.nativeElement, `matcha-button-icon`);
|
|
656
899
|
}
|
|
657
900
|
addRippleEffect(e) {
|
|
658
901
|
var target = e.target;
|
|
@@ -687,8 +930,7 @@ class MatchaButtonDirective {
|
|
|
687
930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaButtonDirective, decorators: [{
|
|
688
931
|
type: Directive,
|
|
689
932
|
args: [{
|
|
690
|
-
selector: '[matcha-button]'
|
|
691
|
-
standalone: false,
|
|
933
|
+
selector: '[matcha-button]'
|
|
692
934
|
}]
|
|
693
935
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
694
936
|
type: Inject,
|
|
@@ -860,37 +1102,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
860
1102
|
}]
|
|
861
1103
|
}] });
|
|
862
1104
|
|
|
863
|
-
class MatchaDividerDirective {
|
|
864
|
-
constructor(_elementRef, _renderer) {
|
|
865
|
-
this._elementRef = _elementRef;
|
|
866
|
-
this._renderer = _renderer;
|
|
867
|
-
//this._elementRef.nativeElement.style.backgroundColor = 'grey';
|
|
868
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'matcha-dialog');
|
|
869
|
-
}
|
|
870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
871
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: MatchaDividerDirective, selector: "[matchaDivider]", ngImport: i0 }); }
|
|
872
|
-
}
|
|
873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerDirective, decorators: [{
|
|
874
|
-
type: Directive,
|
|
875
|
-
args: [{
|
|
876
|
-
selector: '[matchaDivider]'
|
|
877
|
-
}]
|
|
878
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
879
|
-
|
|
880
|
-
class MatchaDividerModule {
|
|
881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
882
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, declarations: [MatchaDividerDirective], imports: [CommonModule], exports: [MatchaDividerDirective] }); }
|
|
883
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, imports: [CommonModule] }); }
|
|
884
|
-
}
|
|
885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaDividerModule, decorators: [{
|
|
886
|
-
type: NgModule,
|
|
887
|
-
args: [{
|
|
888
|
-
declarations: [MatchaDividerDirective],
|
|
889
|
-
imports: [CommonModule],
|
|
890
|
-
exports: [MatchaDividerDirective],
|
|
891
|
-
}]
|
|
892
|
-
}] });
|
|
893
|
-
|
|
894
1105
|
class MatchaElevationDirective {
|
|
895
1106
|
constructor(_elementRef, _renderer) {
|
|
896
1107
|
this._elementRef = _elementRef;
|
|
@@ -999,20 +1210,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
999
1210
|
}]
|
|
1000
1211
|
}] });
|
|
1001
1212
|
|
|
1002
|
-
class MatchaIconModule {
|
|
1003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1004
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, declarations: [MatchaIconComponent], imports: [CommonModule], exports: [MatchaIconComponent] }); }
|
|
1005
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, imports: [CommonModule] }); }
|
|
1006
|
-
}
|
|
1007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaIconModule, decorators: [{
|
|
1008
|
-
type: NgModule,
|
|
1009
|
-
args: [{
|
|
1010
|
-
declarations: [MatchaIconComponent],
|
|
1011
|
-
imports: [CommonModule],
|
|
1012
|
-
exports: [MatchaIconComponent],
|
|
1013
|
-
}]
|
|
1014
|
-
}] });
|
|
1015
|
-
|
|
1016
1213
|
class MatchaInputDirective {
|
|
1017
1214
|
constructor(_elementRef, _renderer) {
|
|
1018
1215
|
this._elementRef = _elementRef;
|
|
@@ -1651,8 +1848,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
1651
1848
|
|
|
1652
1849
|
class MatchaComponentsModule {
|
|
1653
1850
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1654
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [MatchaMasonryModule, MatchaCardModule,
|
|
1655
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, imports: [MatchaMasonryModule, MatchaCardModule,
|
|
1851
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, declarations: [MatchaOverflowDraggableComponent], imports: [MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule], exports: [MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule] }); }
|
|
1852
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, imports: [MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule, MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule] }); }
|
|
1656
1853
|
}
|
|
1657
1854
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatchaComponentsModule, decorators: [{
|
|
1658
1855
|
type: NgModule,
|
|
@@ -1660,8 +1857,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
1660
1857
|
declarations: [
|
|
1661
1858
|
MatchaOverflowDraggableComponent
|
|
1662
1859
|
],
|
|
1663
|
-
imports: [MatchaMasonryModule, MatchaCardModule,
|
|
1664
|
-
exports: [MatchaMasonryModule, MatchaCardModule,
|
|
1860
|
+
imports: [MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule],
|
|
1861
|
+
exports: [MatchaModalModule, MatchaMasonryModule, MatchaCardModule, MatchaTitleModule, MatchaAutocompleteModule, MatchaBadgeModule, MatchaTabsModule, MatchaBottomSheetModule, MatchaButtonToggleModule, MatchaButtonModule, MatchaCheckboxModule, MatchaChipsModule, MatchaDatepickerModule, MatchaDialogModule, MatchaDividerModule, MatchaElevationModule, MatchaExpansionModule, MatchaFormsModule, MatchaIconModule, MatchaInputModule, MatchaListModule, MatchaMenuModule, MatchaSidenavModule, MatchaPaginatorModule, MatchaProgressBarModule, MatchaProgressSpinnerModule, MatchaRadioButtonModule, MatchaSelectModule, MatchaSlideToggleModule, MatchaSliderModule, MatchaSnackBarModule, MatchaSortHeaderModule, MatchaStepperModule, MatchaTableModule, MatchaTabsModule, MatchaTooltipModule, MatchaTreeModule],
|
|
1665
1862
|
}]
|
|
1666
1863
|
}] });
|
|
1667
1864
|
|
|
@@ -1698,5 +1895,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImpor
|
|
|
1698
1895
|
* Generated bundle index. Do not edit.
|
|
1699
1896
|
*/
|
|
1700
1897
|
|
|
1701
|
-
export { MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonDirective, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent,
|
|
1898
|
+
export { MatchaAutocompleteDirective, MatchaAutocompleteModule, MatchaAutocompleteOverviewDirective, MatchaBadgeDirective, MatchaBadgeModule, MatchaBottomSheetDirective, MatchaBottomSheetModule, MatchaButtonDirective, MatchaButtonModule, MatchaButtonToggleDirective, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxDirective, MatchaCheckboxModule, MatchaChipsDirective, MatchaChipsModule, MatchaComponentsModule, MatchaDatepickerDirective, MatchaDatepickerModule, MatchaDialogDirective, MatchaDialogModule, MatchaDividerComponent, MatchaDividerModule, MatchaElevationDirective, MatchaElevationModule, MatchaExpansionDirective, MatchaExpansionModule, MatchaFormFieldDirective, MatchaFormsModule, MatchaGridComponent, MatchaGridModule, MatchaIconComponent, MatchaIconModule, MatchaInputDirective, MatchaInputModule, 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, MatchaStepperDirective, MatchaStepperModule, MatchaTableDirective, MatchaTableModule, MatchaTabsDirective, MatchaTabsModule, MatchaTitleComponent, MatchaTitleDirective, MatchaTitleModule, MatchaTooltipDirective, MatchaTooltipModule, MatchaTreeDirective, MatchaTreeModule };
|
|
1702
1899
|
//# sourceMappingURL=matcha-components.mjs.map
|