matcha-components 19.27.0 → 19.29.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.
|
@@ -916,29 +916,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
916
916
|
|
|
917
917
|
class MatchaCardComponent {
|
|
918
918
|
constructor() {
|
|
919
|
-
this.elevation = 0;
|
|
920
919
|
this.blockquote = 'none';
|
|
921
920
|
this.color = 'surface';
|
|
922
921
|
this.blockquoteColor = null;
|
|
923
922
|
this.class = '';
|
|
924
923
|
this.alpha = false;
|
|
924
|
+
this.tint = false;
|
|
925
925
|
this.loading = false;
|
|
926
926
|
}
|
|
927
|
-
hasBlockquotePosition() {
|
|
928
|
-
return this.blockquote === 'left' || this.blockquote === 'right';
|
|
929
|
-
}
|
|
930
927
|
get classes() {
|
|
931
|
-
const elevation = `elevation-z-${this.elevation}`;
|
|
932
928
|
let backgroundColor = '';
|
|
933
929
|
let blockquoteColor = '';
|
|
934
930
|
let blockquotePosition = null;
|
|
935
931
|
if (this.color === 'bg' || this.color === 'surface') {
|
|
936
|
-
if (this.alpha) {
|
|
937
|
-
backgroundColor = `background-${this.color}-alpha`;
|
|
938
|
-
}
|
|
939
|
-
else {
|
|
940
|
-
backgroundColor = `background-${this.color}`;
|
|
941
|
-
}
|
|
942
932
|
if (this.hasBlockquotePosition()) {
|
|
943
933
|
blockquotePosition = `matcha-card-border-${this.blockquote}`;
|
|
944
934
|
blockquoteColor = this.blockquoteColor ? `border-color-${this.blockquoteColor}` : '';
|
|
@@ -949,12 +939,6 @@ class MatchaCardComponent {
|
|
|
949
939
|
}
|
|
950
940
|
}
|
|
951
941
|
else {
|
|
952
|
-
if (this.alpha) {
|
|
953
|
-
backgroundColor = `background-${this.color}-alpha`;
|
|
954
|
-
}
|
|
955
|
-
else {
|
|
956
|
-
backgroundColor = `${this.color}`;
|
|
957
|
-
}
|
|
958
942
|
if (this.hasBlockquotePosition()) {
|
|
959
943
|
blockquotePosition = `matcha-card-border-${this.blockquote}`;
|
|
960
944
|
blockquoteColor = this.color ? `border-color-${this.blockquoteColor}` : '';
|
|
@@ -964,18 +948,19 @@ class MatchaCardComponent {
|
|
|
964
948
|
blockquoteColor = '';
|
|
965
949
|
}
|
|
966
950
|
}
|
|
967
|
-
const activeClasses = `matcha-card ${
|
|
951
|
+
const activeClasses = `matcha-card ${blockquotePosition} ${blockquoteColor} ${backgroundColor} ${this.loading ? 'loading' : ''} ${this.class}`;
|
|
968
952
|
return activeClasses;
|
|
969
953
|
}
|
|
954
|
+
hasBlockquotePosition() {
|
|
955
|
+
return this.blockquote === 'left' || this.blockquote === 'right';
|
|
956
|
+
}
|
|
970
957
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
971
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaCardComponent, isStandalone: false, selector: "matcha-card", inputs: {
|
|
958
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaCardComponent, isStandalone: false, selector: "matcha-card", inputs: { blockquote: "blockquote", color: "color", blockquoteColor: "blockquoteColor", class: "class", alpha: "alpha", tint: "tint", loading: "loading" }, host: { properties: { "class": "this.classes" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] }); }
|
|
972
959
|
}
|
|
973
960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardComponent, decorators: [{
|
|
974
961
|
type: Component,
|
|
975
|
-
args: [{ selector: 'matcha-card', standalone: false, template: "<
|
|
976
|
-
}], propDecorators: {
|
|
977
|
-
type: Input
|
|
978
|
-
}], blockquote: [{
|
|
962
|
+
args: [{ selector: 'matcha-card', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
963
|
+
}], propDecorators: { blockquote: [{
|
|
979
964
|
type: Input
|
|
980
965
|
}], color: [{
|
|
981
966
|
type: Input
|
|
@@ -985,8 +970,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
985
970
|
type: Input
|
|
986
971
|
}], alpha: [{
|
|
987
972
|
type: Input
|
|
973
|
+
}], tint: [{
|
|
974
|
+
type: Input
|
|
988
975
|
}], loading: [{
|
|
989
976
|
type: Input
|
|
977
|
+
}], classes: [{
|
|
978
|
+
type: HostBinding,
|
|
979
|
+
args: ['class']
|
|
990
980
|
}] } });
|
|
991
981
|
|
|
992
982
|
class MatchaDividerComponent {
|
|
@@ -1552,11 +1542,11 @@ class MatchaFormFieldComponent {
|
|
|
1552
1542
|
this.color = 'grey';
|
|
1553
1543
|
}
|
|
1554
1544
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1555
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaFormFieldComponent, isStandalone: false, selector: "matcha-form-field", inputs: { color: "color" }, 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=\"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 p-8 gap-8\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-content select=\"matcha-error\"></ng-content>\n</div>\n", styles: [""] }); }
|
|
1545
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaFormFieldComponent, isStandalone: false, selector: "matcha-form-field", inputs: { color: "color" }, 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=\"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 p-8 gap-8 w-100-p\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-content select=\"matcha-error\"></ng-content>\n</div>\n", styles: [""] }); }
|
|
1556
1546
|
}
|
|
1557
1547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaFormFieldComponent, decorators: [{
|
|
1558
1548
|
type: Component,
|
|
1559
|
-
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 p-8 gap-8\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-content select=\"matcha-error\"></ng-content>\n</div>\n" }]
|
|
1549
|
+
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 p-8 gap-8 w-100-p\">\n <ng-content></ng-content>\n </div>\n </div>\n <ng-content select=\"matcha-error\"></ng-content>\n</div>\n" }]
|
|
1560
1550
|
}], propDecorators: { color: [{
|
|
1561
1551
|
type: Input
|
|
1562
1552
|
}] } });
|
|
@@ -2026,14 +2016,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
2026
2016
|
|
|
2027
2017
|
class MatchaCardModule {
|
|
2028
2018
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2029
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardModule, declarations: [MatchaCardComponent], imports: [CommonModule
|
|
2030
|
-
|
|
2019
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardModule, declarations: [MatchaCardComponent], imports: [CommonModule,
|
|
2020
|
+
MatchaElevationModule,
|
|
2021
|
+
MatchaIconModule,
|
|
2022
|
+
MatchaTitleModule,
|
|
2023
|
+
MatchaDividerModule,
|
|
2024
|
+
MatchaTooltipModule], exports: [MatchaCardComponent] }); }
|
|
2025
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardModule, imports: [CommonModule,
|
|
2026
|
+
MatchaElevationModule,
|
|
2027
|
+
MatchaIconModule,
|
|
2028
|
+
MatchaTitleModule,
|
|
2029
|
+
MatchaDividerModule,
|
|
2030
|
+
MatchaTooltipModule] }); }
|
|
2031
2031
|
}
|
|
2032
2032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaCardModule, decorators: [{
|
|
2033
2033
|
type: NgModule,
|
|
2034
2034
|
args: [{
|
|
2035
2035
|
declarations: [MatchaCardComponent],
|
|
2036
|
-
imports: [
|
|
2036
|
+
imports: [
|
|
2037
|
+
CommonModule,
|
|
2038
|
+
MatchaElevationModule,
|
|
2039
|
+
MatchaIconModule,
|
|
2040
|
+
MatchaTitleModule,
|
|
2041
|
+
MatchaDividerModule,
|
|
2042
|
+
MatchaTooltipModule,
|
|
2043
|
+
],
|
|
2037
2044
|
exports: [MatchaCardComponent],
|
|
2038
2045
|
}]
|
|
2039
2046
|
}] });
|