@cauca-911/material 21.2.3 → 21.2.5

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.
@@ -1960,10 +1960,11 @@ class BadgeComponent {
1960
1960
  this.color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : []));
1961
1961
  this.customColor = input(undefined, ...(ngDevMode ? [{ debugName: "customColor" }] : []));
1962
1962
  this.customTextColor = input(undefined, ...(ngDevMode ? [{ debugName: "customTextColor" }] : []));
1963
+ this.textTransform = input(undefined, ...(ngDevMode ? [{ debugName: "textTransform" }] : []));
1963
1964
  this.autoTranslate = input(true, ...(ngDevMode ? [{ debugName: "autoTranslate" }] : []));
1964
1965
  }
1965
1966
  static { this.ɵfac = function BadgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BadgeComponent)(); }; }
1966
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BadgeComponent, selectors: [["cauca-badge"]], inputs: { icon: [1, "icon"], label: [1, "label"], color: [1, "color"], customColor: [1, "customColor"], customTextColor: [1, "customTextColor"], autoTranslate: [1, "autoTranslate"] }, decls: 7, vars: 9, consts: [["highlighted", "", "disableRipple", "", 3, "color"], [1, "mat-chip-content"], [1, "chip-label"]], template: function BadgeComponent_Template(rf, ctx) { if (rf & 1) {
1967
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BadgeComponent, selectors: [["cauca-badge"]], inputs: { icon: [1, "icon"], label: [1, "label"], color: [1, "color"], customColor: [1, "customColor"], customTextColor: [1, "customTextColor"], textTransform: [1, "textTransform"], autoTranslate: [1, "autoTranslate"] }, decls: 7, vars: 13, consts: [["highlighted", "", "disableRipple", "", 3, "color"], [1, "mat-chip-content"], [1, "chip-label"]], template: function BadgeComponent_Template(rf, ctx) { if (rf & 1) {
1967
1968
  i0.ɵɵelementStart(0, "mat-chip", 0)(1, "div", 1)(2, "mat-icon");
1968
1969
  i0.ɵɵtext(3);
1969
1970
  i0.ɵɵelementEnd();
@@ -1972,18 +1973,22 @@ class BadgeComponent {
1972
1973
  i0.ɵɵpipe(6, "translate");
1973
1974
  i0.ɵɵelementEnd()()();
1974
1975
  } if (rf & 2) {
1975
- i0.ɵɵstyleProp("background-color", ctx.customColor())("color", ctx.customTextColor());
1976
+ i0.ɵɵstyleProp("background-color", ctx.customColor());
1976
1977
  i0.ɵɵproperty("color", ctx.color());
1977
- i0.ɵɵadvance(3);
1978
- i0.ɵɵtextInterpolate(ctx.icon());
1979
1978
  i0.ɵɵadvance(2);
1980
- i0.ɵɵtextInterpolate(ctx.autoTranslate() ? i0.ɵɵpipeBind1(6, 7, ctx.label()) : ctx.label());
1979
+ i0.ɵɵstyleProp("color", ctx.customTextColor());
1980
+ i0.ɵɵadvance();
1981
+ i0.ɵɵtextInterpolate(ctx.icon());
1982
+ i0.ɵɵadvance();
1983
+ i0.ɵɵstyleProp("text-transform", ctx.textTransform())("color", ctx.customTextColor());
1984
+ i0.ɵɵadvance();
1985
+ i0.ɵɵtextInterpolate(ctx.autoTranslate() ? i0.ɵɵpipeBind1(6, 11, ctx.label()) : ctx.label());
1981
1986
  } }, dependencies: [TranslateModule, MatChipsModule, i1$7.MatChip, MatIcon, i1.TranslatePipe], styles: [".mat-chip-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1982
1987
  }
1983
1988
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BadgeComponent, [{
1984
1989
  type: Component,
1985
- args: [{ selector: 'cauca-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatChipsModule, MatIcon], template: "<mat-chip highlighted disableRipple [color]=\"color()\" [style.backgroundColor]=\"customColor()\" [style.color]=\"customTextColor()\">\n <div class=\"mat-chip-content\">\n <mat-icon>{{icon()}}</mat-icon>\n <div class=\"chip-label\">{{autoTranslate() ? (label() | translate) : label()}}</div>\n </div>\n</mat-chip>", styles: [".mat-chip-content{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon{color:inherit}\n"] }]
1986
- }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], customColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "customColor", required: false }] }], customTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTextColor", required: false }] }], autoTranslate: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoTranslate", required: false }] }] }); })();
1990
+ args: [{ selector: 'cauca-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatChipsModule, MatIcon], template: "<mat-chip highlighted disableRipple [color]=\"color()\" [style.backgroundColor]=\"customColor()\" >\n <div class=\"mat-chip-content\">\n <mat-icon [style.color]=\"customTextColor()\">{{icon()}}</mat-icon>\n <div class=\"chip-label\" [style.textTransform]=\"textTransform()\" [style.color]=\"customTextColor()\">{{autoTranslate() ? (label() | translate) : label()}}</div>\n </div>\n</mat-chip>", styles: [".mat-chip-content{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon{color:inherit}\n"] }]
1991
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], customColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "customColor", required: false }] }], customTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTextColor", required: false }] }], textTransform: [{ type: i0.Input, args: [{ isSignal: true, alias: "textTransform", required: false }] }], autoTranslate: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoTranslate", required: false }] }] }); })();
1987
1992
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BadgeComponent, { className: "BadgeComponent", filePath: "lib/components/presenters/badge/badge.component.ts", lineNumber: 14 }); })();
1988
1993
 
1989
1994
  function IconComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {