matcha-components 20.259.0 → 20.261.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.
|
@@ -12369,9 +12369,14 @@ class MatchaAvatarComponent {
|
|
|
12369
12369
|
this.src = '';
|
|
12370
12370
|
this.name = '';
|
|
12371
12371
|
this.size = 'medium';
|
|
12372
|
-
this.color = '
|
|
12372
|
+
this.color = 'primary';
|
|
12373
|
+
this._solid = false;
|
|
12373
12374
|
this._disabled = false;
|
|
12374
12375
|
}
|
|
12376
|
+
get solid() { return this._solid; }
|
|
12377
|
+
set solid(value) {
|
|
12378
|
+
this._solid = value !== 'false' && value !== false;
|
|
12379
|
+
}
|
|
12375
12380
|
set disabled(value) {
|
|
12376
12381
|
this._disabled = value != null && `${value}` !== 'false';
|
|
12377
12382
|
}
|
|
@@ -12411,7 +12416,7 @@ class MatchaAvatarComponent {
|
|
|
12411
12416
|
get avatarClasses() {
|
|
12412
12417
|
let classes = `matcha-avatar radius-full ${this.sizeClass}`;
|
|
12413
12418
|
if (!this.showDefaultIcon) {
|
|
12414
|
-
classes +=
|
|
12419
|
+
classes += this.solid ? ` ${this.color}` : ` ${this.color}-alpha`;
|
|
12415
12420
|
}
|
|
12416
12421
|
if (this.disabled) {
|
|
12417
12422
|
classes += ' color-disabled';
|
|
@@ -12419,7 +12424,7 @@ class MatchaAvatarComponent {
|
|
|
12419
12424
|
return classes;
|
|
12420
12425
|
}
|
|
12421
12426
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MatchaAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12422
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: MatchaAvatarComponent, isStandalone: false, selector: "matcha-avatar", inputs: { src: "src", name: "name", size: "size", color: "color", disabled: "disabled" }, ngImport: i0, template: "<span [class]=\"avatarClasses\">\n <!-- Imagem do usu\u00E1rio -->\n <img \n *ngIf=\"hasImage\" \n [src]=\"src\" \n [alt]=\"name || 'Avatar'\"\n class=\"matcha-avatar-image\">\n \n <!-- Iniciais do nome -->\n <span \n *ngIf=\"!hasImage && hasName\" \n class=\"matcha-avatar-initials\">\n {{ initials }}\n </span>\n \n\n <svg \n *ngIf=\"showDefaultIcon\"\n class=\"matcha-avatar-icon\"\n viewBox=\"0 0 56 56\" \n fill=\"none\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path \n fill-rule=\"evenodd\" \n clip-rule=\"evenodd\" \n d=\"M28 0C12.544 0 0 12.544 0 28C0 43.456 12.544 56 28 56C43.456 56 56 43.456 56 28C56 12.544 43.456 0 28 0ZM28.0022 8.4C32.6502 8.4 36.4022 12.152 36.4022 16.8C36.4022 21.448 32.6502 25.2 28.0022 25.2C23.3542 25.2 19.6022 21.448 19.6022 16.8C19.6022 12.152 23.3542 8.4 28.0022 8.4ZM28.0022 48.1601C21.0022 48.1601 14.8142 44.5761 11.2022 39.1441C11.2862 33.5721 22.4022 30.5201 28.0022 30.5201C33.5742 30.5201 44.7182 33.5721 44.8022 39.1441C41.1902 44.5761 35.0022 48.1601 28.0022 48.1601Z\" \n fill=\"currentColor\"/>\n </svg>\n </span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
12427
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: MatchaAvatarComponent, isStandalone: false, selector: "matcha-avatar", inputs: { src: "src", name: "name", size: "size", color: "color", solid: "solid", disabled: "disabled" }, ngImport: i0, template: "<span [class]=\"avatarClasses\">\n <!-- Imagem do usu\u00E1rio -->\n <img \n *ngIf=\"hasImage\" \n [src]=\"src\" \n [alt]=\"name || 'Avatar'\"\n class=\"matcha-avatar-image\">\n \n <!-- Iniciais do nome -->\n <span \n *ngIf=\"!hasImage && hasName\" \n class=\"matcha-avatar-initials\">\n {{ initials }}\n </span>\n \n\n <svg \n *ngIf=\"showDefaultIcon\"\n class=\"matcha-avatar-icon\"\n viewBox=\"0 0 56 56\" \n fill=\"none\" \n xmlns=\"http://www.w3.org/2000/svg\">\n <path \n fill-rule=\"evenodd\" \n clip-rule=\"evenodd\" \n d=\"M28 0C12.544 0 0 12.544 0 28C0 43.456 12.544 56 28 56C43.456 56 56 43.456 56 28C56 12.544 43.456 0 28 0ZM28.0022 8.4C32.6502 8.4 36.4022 12.152 36.4022 16.8C36.4022 21.448 32.6502 25.2 28.0022 25.2C23.3542 25.2 19.6022 21.448 19.6022 16.8C19.6022 12.152 23.3542 8.4 28.0022 8.4ZM28.0022 48.1601C21.0022 48.1601 14.8142 44.5761 11.2022 39.1441C11.2862 33.5721 22.4022 30.5201 28.0022 30.5201C33.5742 30.5201 44.7182 33.5721 44.8022 39.1441C41.1902 44.5761 35.0022 48.1601 28.0022 48.1601Z\" \n fill=\"currentColor\"/>\n </svg>\n </span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
12423
12428
|
}
|
|
12424
12429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MatchaAvatarComponent, decorators: [{
|
|
12425
12430
|
type: Component,
|
|
@@ -12432,6 +12437,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
12432
12437
|
type: Input
|
|
12433
12438
|
}], color: [{
|
|
12434
12439
|
type: Input
|
|
12440
|
+
}], solid: [{
|
|
12441
|
+
type: Input
|
|
12435
12442
|
}], disabled: [{
|
|
12436
12443
|
type: Input
|
|
12437
12444
|
}] } });
|
|
@@ -14616,9 +14623,9 @@ function _buildButtonList(opts) {
|
|
|
14616
14623
|
desktop.push('|', textGroup);
|
|
14617
14624
|
if (colorGroup.length)
|
|
14618
14625
|
desktop.push('|', colorGroup);
|
|
14619
|
-
desktop.push('|', ['removeFormat']
|
|
14626
|
+
desktop.push('|', ['removeFormat']);
|
|
14620
14627
|
if (indentGroup.length)
|
|
14621
|
-
desktop.push(indentGroup);
|
|
14628
|
+
desktop.push('|', indentGroup);
|
|
14622
14629
|
if (insertGroup.length)
|
|
14623
14630
|
desktop.push('|', insertGroup);
|
|
14624
14631
|
if (viewGroup.length)
|