@cauca-911/material 20.0.13 → 20.0.14

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Output, Input, signal, inject, HostListener, Injector, ElementRef, forwardRef, input, computed, output, ChangeDetectionStrategy, Inject, HostBinding, model, TemplateRef, Optional, Self, ContentChild, ViewChild } from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, Output, Input, signal, inject, HostListener, Injector, ElementRef, forwardRef, input, computed, output, Directive, ChangeDetectionStrategy, Inject, HostBinding, model, TemplateRef, Optional, Self, ContentChild, ViewChild } from '@angular/core';
3
3
  import * as i1 from '@ngx-translate/core';
4
4
  import { TranslateModule, TranslatePipe, TranslateService } from '@ngx-translate/core';
5
5
  import * as i1$6 from '@angular/material/dialog';
@@ -718,6 +718,47 @@ class CaucaDateTimePickerComponent {
718
718
  }] }); })();
719
719
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib/cauca-date-time-picker/cauca-date-time-picker.component.ts", lineNumber: 33 }); })();
720
720
 
721
+ class BaseButton {
722
+ constructor() {
723
+ this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
724
+ this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
725
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
726
+ this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
727
+ this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
728
+ this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
729
+ this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
730
+ this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
731
+ this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
732
+ this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
733
+ this.buttonClick = output();
734
+ this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
735
+ }
736
+ onMouseEnter() {
737
+ this.isHovered.set(true);
738
+ }
739
+ onMouseLeave() {
740
+ this.isHovered.set(false);
741
+ }
742
+ static { this.ɵfac = function BaseButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseButton)(); }; }
743
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButton, inputs: { colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
744
+ }
745
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
746
+ type: Directive
747
+ }], null, null); })();
748
+ class BaseButtonWithLabel extends BaseButton {
749
+ constructor() {
750
+ super(...arguments);
751
+ this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
752
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
753
+ this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
754
+ }
755
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(__ngFactoryType__) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(__ngFactoryType__ || BaseButtonWithLabel); }; })(); }
756
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
757
+ }
758
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
759
+ type: Directive
760
+ }], null, null); })();
761
+
721
762
  function BasicButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
722
763
  i0.ɵɵelementStart(0, "mat-icon");
723
764
  i0.ɵɵtext(1);
@@ -751,32 +792,9 @@ function BasicButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
751
792
  i0.ɵɵadvance();
752
793
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
753
794
  } }
754
- class BasicButtonComponent {
755
- constructor() {
756
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
757
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
758
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
759
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
760
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
761
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
762
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
763
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
764
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
765
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
766
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
767
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
768
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
769
- this.buttonClick = output();
770
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
771
- }
772
- onMouseEnter() {
773
- this.isHovered.set(true);
774
- }
775
- onMouseLeave() {
776
- this.isHovered.set(false);
777
- }
778
- static { this.ɵfac = function BasicButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BasicButtonComponent)(); }; }
779
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BasicButtonComponent, selectors: [["cauca-basic-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 5, vars: 6, consts: [["mat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function BasicButtonComponent_Template(rf, ctx) { if (rf & 1) {
795
+ class BasicButtonComponent extends BaseButtonWithLabel {
796
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBasicButtonComponent_BaseFactory; return function BasicButtonComponent_Factory(__ngFactoryType__) { return (ɵBasicButtonComponent_BaseFactory || (ɵBasicButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BasicButtonComponent)))(__ngFactoryType__ || BasicButtonComponent); }; })(); }
797
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BasicButtonComponent, selectors: [["cauca-basic-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function BasicButtonComponent_Template(rf, ctx) { if (rf & 1) {
780
798
  i0.ɵɵelementStart(0, "button", 0);
781
799
  i0.ɵɵlistener("click", function BasicButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
782
800
  i0.ɵɵconditionalCreate(1, BasicButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
@@ -797,7 +815,7 @@ class BasicButtonComponent {
797
815
  type: Component,
798
816
  args: [{ selector: 'cauca-basic-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon, MatButton, TranslateModule, NgClass], template: "<button mat-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
799
817
  }], null, null); })();
800
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib/buttons/basic-button/basic-button.component.ts", lineNumber: 15 }); })();
818
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib/buttons/basic-button/basic-button.component.ts", lineNumber: 16 }); })();
801
819
 
802
820
  function FabButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
803
821
  i0.ɵɵelementStart(0, "mat-icon");
@@ -810,32 +828,13 @@ function FabButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
810
828
  i0.ɵɵadvance();
811
829
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
812
830
  } }
813
- class FabButtonComponent {
831
+ class FabButtonComponent extends BaseButtonWithLabel {
814
832
  constructor() {
833
+ super(...arguments);
815
834
  this.iconColor = computed(() => this.color() === 'primary' ? 'white' : undefined, ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
816
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
817
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
818
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
819
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
820
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
821
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
822
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
823
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
824
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
825
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
826
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
827
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
828
- this.buttonClick = output();
829
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
830
835
  }
831
- onMouseEnter() {
832
- this.isHovered.set(true);
833
- }
834
- onMouseLeave() {
835
- this.isHovered.set(false);
836
- }
837
- static { this.ɵfac = function FabButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FabButtonComponent)(); }; }
838
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FabButtonComponent, selectors: [["cauca-fab-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 2, vars: 3, consts: [["mat-fab", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "color", "button-spin"]], template: function FabButtonComponent_Template(rf, ctx) { if (rf & 1) {
836
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFabButtonComponent_BaseFactory; return function FabButtonComponent_Factory(__ngFactoryType__) { return (ɵFabButtonComponent_BaseFactory || (ɵFabButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FabButtonComponent)))(__ngFactoryType__ || FabButtonComponent); }; })(); }
837
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FabButtonComponent, selectors: [["cauca-fab-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [["mat-fab", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "color", "button-spin"]], template: function FabButtonComponent_Template(rf, ctx) { if (rf & 1) {
839
838
  i0.ɵɵelementStart(0, "button", 0);
840
839
  i0.ɵɵlistener("click", function FabButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
841
840
  i0.ɵɵconditionalCreate(1, FabButtonComponent_Conditional_1_Template, 2, 5, "mat-icon", 1);
@@ -850,7 +849,7 @@ class FabButtonComponent {
850
849
  type: Component,
851
850
  args: [{ selector: 'cauca-fab-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, MatIconModule], template: "<button mat-fab [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if (showIcon()) { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-mdc-fab{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
852
851
  }], null, null); })();
853
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FabButtonComponent, { className: "FabButtonComponent", filePath: "lib/buttons/fab-button/fab-button.component.ts", lineNumber: 13 }); })();
852
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FabButtonComponent, { className: "FabButtonComponent", filePath: "lib/buttons/fab-button/fab-button.component.ts", lineNumber: 14 }); })();
854
853
 
855
854
  function FlatButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
856
855
  i0.ɵɵelementStart(0, "mat-icon");
@@ -885,32 +884,9 @@ function FlatButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
885
884
  i0.ɵɵadvance();
886
885
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
887
886
  } }
888
- class FlatButtonComponent {
889
- constructor() {
890
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
891
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
892
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
893
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
894
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
895
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
896
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
897
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
898
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
899
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
900
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
901
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
902
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
903
- this.buttonClick = output();
904
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
905
- }
906
- onMouseEnter() {
907
- this.isHovered.set(true);
908
- }
909
- onMouseLeave() {
910
- this.isHovered.set(false);
911
- }
912
- static { this.ɵfac = function FlatButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FlatButtonComponent)(); }; }
913
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FlatButtonComponent, selectors: [["cauca-flat-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 5, vars: 6, consts: [["mat-flat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function FlatButtonComponent_Template(rf, ctx) { if (rf & 1) {
887
+ class FlatButtonComponent extends BaseButtonWithLabel {
888
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFlatButtonComponent_BaseFactory; return function FlatButtonComponent_Factory(__ngFactoryType__) { return (ɵFlatButtonComponent_BaseFactory || (ɵFlatButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FlatButtonComponent)))(__ngFactoryType__ || FlatButtonComponent); }; })(); }
889
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FlatButtonComponent, selectors: [["cauca-flat-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-flat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function FlatButtonComponent_Template(rf, ctx) { if (rf & 1) {
914
890
  i0.ɵɵelementStart(0, "button", 0);
915
891
  i0.ɵɵlistener("click", function FlatButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
916
892
  i0.ɵɵconditionalCreate(1, FlatButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
@@ -931,31 +907,11 @@ class FlatButtonComponent {
931
907
  type: Component,
932
908
  args: [{ selector: 'cauca-flat-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon, MatButton, TranslateModule, NgClass], template: "<button mat-flat-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit();\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
933
909
  }], null, null); })();
934
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib/buttons/flat-button/flat-button.component.ts", lineNumber: 15 }); })();
910
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib/buttons/flat-button/flat-button.component.ts", lineNumber: 16 }); })();
935
911
 
936
- class IconButtonComponent {
937
- constructor() {
938
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
939
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
940
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
941
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
942
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
943
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
944
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
945
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
946
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
947
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
948
- this.buttonClick = output();
949
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
950
- }
951
- onMouseEnter() {
952
- this.isHovered.set(true);
953
- }
954
- onMouseLeave() {
955
- this.isHovered.set(false);
956
- }
957
- static { this.ɵfac = function IconButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || IconButtonComponent)(); }; }
958
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["cauca-icon-button"]], inputs: { colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
912
+ class IconButtonComponent extends BaseButton {
913
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(__ngFactoryType__) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(__ngFactoryType__ || IconButtonComponent); }; })(); }
914
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["cauca-icon-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
959
915
  i0.ɵɵelementStart(0, "button", 0);
960
916
  i0.ɵɵlistener("mouseenter", function IconButtonComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function IconButtonComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function IconButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
961
917
  i0.ɵɵelementStart(1, "mat-icon");
@@ -1243,33 +1199,14 @@ function MenuItemComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1243
1199
  i0.ɵɵadvance();
1244
1200
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1245
1201
  } }
1246
- class MenuItemComponent {
1202
+ class MenuItemComponent extends BaseButtonWithLabel {
1247
1203
  constructor() {
1204
+ super(...arguments);
1248
1205
  this.translateLabel = input(false, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
1249
1206
  this.trigger = input(...(ngDevMode ? [undefined, { debugName: "trigger" }] : []));
1250
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
1251
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
1252
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
1253
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
1254
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
1255
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
1256
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
1257
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
1258
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
1259
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
1260
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
1261
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
1262
- this.buttonClick = output();
1263
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
1264
- }
1265
- onMouseEnter() {
1266
- this.isHovered.set(true);
1267
- }
1268
- onMouseLeave() {
1269
- this.isHovered.set(false);
1270
1207
  }
1271
- static { this.ɵfac = function MenuItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuItemComponent)(); }; }
1272
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemComponent, selectors: [["cauca-menu-item"]], inputs: { translateLabel: [1, "translateLabel"], trigger: [1, "trigger"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 5, vars: 6, consts: [["mat-menu-item", "", 1, "change-password-menu-item", 3, "mouseenter", "mouseleave", "click", "ngClass", "matMenuTriggerFor", "disabled"], [3, "color", "button-spin"]], template: function MenuItemComponent_Template(rf, ctx) { if (rf & 1) {
1208
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMenuItemComponent_BaseFactory; return function MenuItemComponent_Factory(__ngFactoryType__) { return (ɵMenuItemComponent_BaseFactory || (ɵMenuItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MenuItemComponent)))(__ngFactoryType__ || MenuItemComponent); }; })(); }
1209
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemComponent, selectors: [["cauca-menu-item"]], inputs: { translateLabel: [1, "translateLabel"], trigger: [1, "trigger"] }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-menu-item", "", 1, "change-password-menu-item", 3, "mouseenter", "mouseleave", "click", "ngClass", "matMenuTriggerFor", "disabled"], [3, "color", "button-spin"]], template: function MenuItemComponent_Template(rf, ctx) { if (rf & 1) {
1273
1210
  i0.ɵɵelementStart(0, "button", 0);
1274
1211
  i0.ɵɵlistener("mouseenter", function MenuItemComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function MenuItemComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function MenuItemComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1275
1212
  i0.ɵɵconditionalCreate(1, MenuItemComponent_Conditional_1_Template, 2, 5, "mat-icon", 1);
@@ -1290,7 +1227,7 @@ class MenuItemComponent {
1290
1227
  type: Component,
1291
1228
  args: [{ selector: 'cauca-menu-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatMenuItem, TranslateModule, MatIcon, MatMenuTrigger, NgClass], template: "<button (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" mat-menu-item [ngClass]=\"small() ? 'small-button' : ''\" class=\"change-password-menu-item\" [matMenuTriggerFor]=\"trigger()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>\r\n", styles: [".mat-mdc-menu-item .mat-icon-no-color{color:#0000008f}mat-icon{color:inherit}\n"] }]
1292
1229
  }], null, null); })();
1293
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib/buttons/menu-item/menu-item.component.ts", lineNumber: 15 }); })();
1230
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib/buttons/menu-item/menu-item.component.ts", lineNumber: 16 }); })();
1294
1231
 
1295
1232
  function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1296
1233
  i0.ɵɵelementStart(0, "mat-icon");
@@ -1325,32 +1262,9 @@ function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1325
1262
  i0.ɵɵadvance();
1326
1263
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1327
1264
  } }
1328
- class RaisedButtonComponent {
1329
- constructor() {
1330
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
1331
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
1332
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
1333
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
1334
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
1335
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
1336
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
1337
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
1338
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
1339
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
1340
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
1341
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
1342
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
1343
- this.buttonClick = output();
1344
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
1345
- }
1346
- onMouseEnter() {
1347
- this.isHovered.set(true);
1348
- }
1349
- onMouseLeave() {
1350
- this.isHovered.set(false);
1351
- }
1352
- static { this.ɵfac = function RaisedButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RaisedButtonComponent)(); }; }
1353
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["cauca-raised-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 5, vars: 6, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1265
+ class RaisedButtonComponent extends BaseButtonWithLabel {
1266
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(__ngFactoryType__) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(__ngFactoryType__ || RaisedButtonComponent); }; })(); }
1267
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["cauca-raised-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1354
1268
  i0.ɵɵelementStart(0, "button", 0);
1355
1269
  i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1356
1270
  i0.ɵɵconditionalCreate(1, RaisedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
@@ -1371,7 +1285,7 @@ class RaisedButtonComponent {
1371
1285
  type: Component,
1372
1286
  args: [{ selector: 'cauca-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule, NgClass], template: "<button mat-raised-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if (showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if (showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
1373
1287
  }], null, null); })();
1374
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib/buttons/raised-button/raised-button.component.ts", lineNumber: 15 }); })();
1288
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib/buttons/raised-button/raised-button.component.ts", lineNumber: 16 }); })();
1375
1289
 
1376
1290
  class RefreshButtonComponent {
1377
1291
  constructor() {
@@ -1414,32 +1328,9 @@ function RoundButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1414
1328
  const ctx_r0 = i0.ɵɵnextContext();
1415
1329
  i0.ɵɵtextInterpolate(ctx_r0.label());
1416
1330
  } }
1417
- class RoundButtonComponent {
1418
- constructor() {
1419
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
1420
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
1421
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
1422
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
1423
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
1424
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
1425
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
1426
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
1427
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
1428
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
1429
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
1430
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
1431
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
1432
- this.buttonClick = output();
1433
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
1434
- }
1435
- onMouseEnter() {
1436
- this.isHovered.set(true);
1437
- }
1438
- onMouseLeave() {
1439
- this.isHovered.set(false);
1440
- }
1441
- static { this.ɵfac = function RoundButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RoundButtonComponent)(); }; }
1442
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RoundButtonComponent, selectors: [["cauca-round-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 3, vars: 2, consts: [["onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function RoundButtonComponent_Template(rf, ctx) { if (rf & 1) {
1331
+ class RoundButtonComponent extends BaseButtonWithLabel {
1332
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRoundButtonComponent_BaseFactory; return function RoundButtonComponent_Factory(__ngFactoryType__) { return (ɵRoundButtonComponent_BaseFactory || (ɵRoundButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RoundButtonComponent)))(__ngFactoryType__ || RoundButtonComponent); }; })(); }
1333
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RoundButtonComponent, selectors: [["cauca-round-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function RoundButtonComponent_Template(rf, ctx) { if (rf & 1) {
1443
1334
  i0.ɵɵdomElementStart(0, "button", 0);
1444
1335
  i0.ɵɵdomListener("mouseenter", function RoundButtonComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function RoundButtonComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function RoundButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1445
1336
  i0.ɵɵconditionalCreate(1, RoundButtonComponent_Conditional_1_Template, 2, 3)(2, RoundButtonComponent_Conditional_2_Template, 1, 1);
@@ -1454,7 +1345,7 @@ class RoundButtonComponent {
1454
1345
  type: Component,
1455
1346
  args: [{ selector: 'cauca-round-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule], template: "<button (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" onclick=\"this.blur()\" (click)=\"buttonClick.emit();\" [disabled]=\"buttonDisabled()\">\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n</button>", styles: ["button{border-radius:100px;background-color:inherit;outline:none;border-width:0px;height:40px;width:40px;cursor:pointer}:host{display:flex}.mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:#006496}.mat-mdc-button-disabled .mat-icon{color:#12101461}\n"] }]
1456
1347
  }], null, null); })();
1457
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RoundButtonComponent, { className: "RoundButtonComponent", filePath: "lib/buttons/round-button/round-button.component.ts", lineNumber: 12 }); })();
1348
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RoundButtonComponent, { className: "RoundButtonComponent", filePath: "lib/buttons/round-button/round-button.component.ts", lineNumber: 13 }); })();
1458
1349
 
1459
1350
  function StrokedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1460
1351
  i0.ɵɵelementStart(0, "mat-icon");
@@ -1495,32 +1386,9 @@ function StrokedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1495
1386
  i0.ɵɵadvance();
1496
1387
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1497
1388
  } }
1498
- class StrokedButtonComponent {
1499
- constructor() {
1500
- this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
1501
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
1502
- this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
1503
- this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
1504
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
1505
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
1506
- this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
1507
- this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
1508
- this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
1509
- this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
1510
- this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
1511
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
1512
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
1513
- this.buttonClick = output();
1514
- this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
1515
- }
1516
- onMouseEnter() {
1517
- this.isHovered.set(true);
1518
- }
1519
- onMouseLeave() {
1520
- this.isHovered.set(false);
1521
- }
1522
- static { this.ɵfac = function StrokedButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StrokedButtonComponent)(); }; }
1523
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StrokedButtonComponent, selectors: [["cauca-stroked-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"], colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" }, decls: 4, vars: 8, consts: [["mat-stroked-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function StrokedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1389
+ class StrokedButtonComponent extends BaseButtonWithLabel {
1390
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵStrokedButtonComponent_BaseFactory; return function StrokedButtonComponent_Factory(__ngFactoryType__) { return (ɵStrokedButtonComponent_BaseFactory || (ɵStrokedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(StrokedButtonComponent)))(__ngFactoryType__ || StrokedButtonComponent); }; })(); }
1391
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StrokedButtonComponent, selectors: [["cauca-stroked-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 8, consts: [["mat-stroked-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function StrokedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1524
1392
  i0.ɵɵelementStart(0, "button", 0);
1525
1393
  i0.ɵɵlistener("click", function StrokedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1526
1394
  i0.ɵɵconditionalCreate(1, StrokedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
@@ -1542,7 +1410,7 @@ class StrokedButtonComponent {
1542
1410
  type: Component,
1543
1411
  args: [{ selector: 'cauca-stroked-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule, NgClass], template: "<button mat-stroked-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\" [class.icon-only]=\"!label()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (label()) { @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}} }\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}.icon-only{width:36px;height:36px;min-width:38px;padding:0}.icon-only mat-icon{margin:0}mat-icon{color:inherit}\n"] }]
1544
1412
  }], null, null); })();
1545
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StrokedButtonComponent, { className: "StrokedButtonComponent", filePath: "lib/buttons/stroked-button/stroked-button.component.ts", lineNumber: 15 }); })();
1413
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StrokedButtonComponent, { className: "StrokedButtonComponent", filePath: "lib/buttons/stroked-button/stroked-button.component.ts", lineNumber: 16 }); })();
1546
1414
 
1547
1415
  class AlertDialogComponent {
1548
1416
  constructor(dialogRef, data, breakdownObserver) {