@cauca-911/material 18.0.1-beta4 → 18.0.1-beta6

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,6 +1,6 @@
1
1
  import { input, computed, output, Directive } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- export class BaseButtonWithoutLabel {
3
+ export class BaseButton {
4
4
  constructor() {
5
5
  this.color = input(undefined);
6
6
  this.icon = input();
@@ -12,30 +12,22 @@ export class BaseButtonWithoutLabel {
12
12
  this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
13
13
  this.buttonClick = output();
14
14
  }
15
- static { this.ɵfac = function BaseButtonWithoutLabel_Factory(t) { return new (t || BaseButtonWithoutLabel)(); }; }
16
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithoutLabel, inputs: { color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
15
+ static { this.ɵfac = function BaseButton_Factory(t) { return new (t || BaseButton)(); }; }
16
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButton, inputs: { color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
17
17
  }
18
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithoutLabel, [{
18
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
19
19
  type: Directive
20
20
  }], null, null); })();
21
- export class BaseButtonWithLabel {
21
+ export class BaseButtonWithLabel extends BaseButton {
22
22
  constructor() {
23
+ super(...arguments);
23
24
  this.translateLabel = input(true);
24
25
  this.label = input();
25
- this.color = input(undefined);
26
- this.icon = input();
27
- this.iconAlignment = input('left');
28
- this.isDisabled = input(false);
29
- this.isInProgress = input(false);
30
- this.showIcon = computed(() => !!this.icon() || this.isInProgress());
31
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon());
32
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
33
- this.buttonClick = output();
34
26
  }
35
- static { this.ɵfac = function BaseButtonWithLabel_Factory(t) { return new (t || BaseButtonWithLabel)(); }; }
36
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
27
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(t) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(t || BaseButtonWithLabel); }; })(); }
28
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
37
29
  }
38
30
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
39
31
  type: Directive
40
32
  }], null, null); })();
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1idXR0b24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2J1dHRvbnMvYmFzZS1idXR0b24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE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UHJvZ3Jlc3MoKSk7XHJcbiAgICBwdWJsaWMgaWNvblRvU2hvdyA9IGNvbXB1dGVkKCgpID0+IHRoaXMuaXNJblByb2dyZXNzKCkgPyAndXBkYXRlJyA6IHRoaXMuaWNvbigpKTtcclxuICAgIHB1YmxpYyBidXR0b25EaXNhYmxlZCA9IGNvbXB1dGVkKCgpID0+IHRoaXMuaXNEaXNhYmxlZCgpIHx8IHRoaXMuaXNJblByb2dyZXNzKCkpO1xyXG5cclxuICAgIHB1YmxpYyBidXR0b25DbGljazogT3V0cHV0RW1pdHRlclJlZjx2b2lkPiA9IG91dHB1dCgpO1xyXG59XHJcblxyXG5ARGlyZWN0aXZlKClcclxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEJhc2VCdXR0b25XaXRoTGFiZWwgZXh0ZW5kcyBCYXNlQnV0dG9uIHtcclxuICAgIHB1YmxpYyB0cmFuc2xhdGVMYWJlbDogSW5wdXRTaWduYWw8Ym9vbGVhbj4gPSBpbnB1dCh0cnVlKTtcclxuICAgIHB1YmxpYyBsYWJlbDogSW5wdXRTaWduYWw8c3RyaW5nPiA9IGlucHV0KCk7XHJcbn0iXX0=
@@ -1,9 +1,9 @@
1
1
  import { ChangeDetectionStrategy, Component } from '@angular/core';
2
2
  import { MatIconButton } from '@angular/material/button';
3
3
  import { MatIcon } from '@angular/material/icon';
4
- import { BaseButtonWithoutLabel } from '../base-button';
4
+ import { BaseButton } from '../base-button';
5
5
  import * as i0 from "@angular/core";
6
- export class IconButtonComponent extends BaseButtonWithoutLabel {
6
+ export class IconButtonComponent extends BaseButton {
7
7
  static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(t) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(t || IconButtonComponent); }; })(); }
8
8
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["app-icon-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
9
9
  i0.ɵɵelementStart(0, "button", 0);
@@ -25,4 +25,4 @@ export class IconButtonComponent extends BaseButtonWithoutLabel {
25
25
  args: [{ selector: 'app-icon-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconButton, MatIcon], template: "<button mat-icon-button onclick=\"this.blur()\" (click)=\"buttonClick.emit();\" [disabled]=\"buttonDisabled()\">\r\n <mat-icon [style.color]=\"color()\" [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-mdc-button-disabled .mat-icon{color:#12101461}\n"] }]
26
26
  }], null, null); })();
27
27
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconButtonComponent, { className: "IconButtonComponent", filePath: "lib\\buttons\\icon-button\\icon-button.component.ts", lineNumber: 14 }); })();
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2F1Y2EtbWF0ZXJpYWwvc3JjL2xpYi9idXR0b25zL2ljb24tYnV0dG9uL2ljb24tYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9pY29uLWJ1dHRvbi9pY29uLWJ1dHRvbi5jb21wb25l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ChangeDetectionStrategy, Component, computed, Input, input, output } from '@angular/core';
2
2
  import { MatButton, } from '@angular/material/button';
3
3
  import { MatIconModule } from '@angular/material/icon';
4
4
  import { TranslateModule } from '@ngx-translate/core';
5
- import { BaseButtonWithLabel } from '../base-button';
6
5
  import * as i0 from "@angular/core";
7
6
  import * as i1 from "@angular/material/icon";
8
7
  import * as i2 from "@ngx-translate/core";
@@ -12,7 +11,7 @@ function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
12
11
  i0.ɵɵelementEnd();
13
12
  } if (rf & 2) {
14
13
  const ctx_r0 = i0.ɵɵnextContext();
15
- i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
14
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
16
15
  i0.ɵɵadvance();
17
16
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
18
17
  } }
@@ -35,13 +34,26 @@ function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
35
34
  i0.ɵɵelementEnd();
36
35
  } if (rf & 2) {
37
36
  const ctx_r0 = i0.ɵɵnextContext();
38
- i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
37
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
39
38
  i0.ɵɵadvance();
40
39
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
41
40
  } }
42
- export class RaisedButtonComponent extends BaseButtonWithLabel {
43
- static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(t) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(t || RaisedButtonComponent); }; })(); }
44
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["app-raised-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
41
+ export class RaisedButtonComponent {
42
+ constructor() {
43
+ this.translateLabel = input(true);
44
+ this.label = input();
45
+ this.color = input(undefined);
46
+ this.icon = input();
47
+ this.iconAlignment = input('left');
48
+ this.isDisabled = input(false);
49
+ this.isInProgress = false;
50
+ this.showIcon = computed(() => !!this.icon() || this.isInProgress);
51
+ this.iconToShow = computed(() => this.isInProgress ? 'update' : this.icon());
52
+ this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress);
53
+ this.buttonClick = output();
54
+ }
55
+ static { this.ɵfac = function RaisedButtonComponent_Factory(t) { return new (t || RaisedButtonComponent)(); }; }
56
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["app-raised-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: "isInProgress" }, outputs: { buttonClick: "buttonClick" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
45
57
  i0.ɵɵelementStart(0, "button", 0);
46
58
  i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
47
59
  i0.ɵɵtemplate(1, RaisedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, RaisedButtonComponent_Conditional_2_Template, 2, 3)(3, RaisedButtonComponent_Conditional_3_Template, 1, 1)(4, RaisedButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
@@ -58,7 +70,9 @@ export class RaisedButtonComponent extends BaseButtonWithLabel {
58
70
  }
59
71
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
60
72
  type: Component,
61
- args: [{ selector: 'app-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-raised-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}\n"] }]
62
- }], null, null); })();
63
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 15 }); })();
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFpc2VkLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2J1dHRvbnMvcmFpc2VkLWJ1dHRvbi9yYWlzZWQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9yYWlzZWQtYnV0dG9uL3JhaXNlZC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJ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HtcclxufVxyXG4iLCI8YnV0dG9uIG1hdC1yYWlzZWQtYnV0dG9uIFtjb2xvcl09XCJjb2xvcigpXCIgb25jbGljaz1cInRoaXMuYmx1cigpXCIgW2Rpc2FibGVkXT1cImJ1dHRvbkRpc2FibGVkKClcIiAoY2xpY2spPVwiYnV0dG9uQ2xpY2suZW1pdCgpXCI+XHJcbiAgICBAaWYgKHNob3dJY29uKCkgJiYgaWNvbkFsaWdubWVudCgpID09PSAnbGVmdCcpIHsgPG1hdC1pY29uIFtjbGFzcy5idXR0b24tc3Bpbl09XCJpc0luUHJvZ3Jlc3MoKVwiPnt7aWNvblRvU2hvdygpfX08L21hdC1pY29uPiB9XHJcbiAgICBAaWYgKHRyYW5zbGF0ZUxhYmVsKCkpIHt7e2xhYmVsKCl8dHJhbnNsYXRlfX19IEBlbHNlIHt7e2xhYmVsKCl9fX1cclxuICAgIEBpZiAoc2hvd0ljb24oKSAmJiBpY29uQWxpZ25tZW50KCkgPT09ICdyaWdodCcpIHsgPG1hdC1pY29uIFtjbGFzcy5idXR0b24tc3Bpbl09XCJpc0luUHJvZ3Jlc3MoKVwiPnt7aWNvblRvU2hvdygpfX08L21hdC1pY29uPiB9XHJcbjwvYnV0dG9uPiJdfQ==
73
+ args: [{ selector: 'app-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-raised-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}\n"] }]
74
+ }], null, { isInProgress: [{
75
+ type: Input
76
+ }] }); })();
77
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 14 }); })();
78
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFpc2VkLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2J1dHRvbnMvcmFpc2VkLWJ1dHRvbi9yYWlzZWQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9yYWlzZWQtYnV0dG9uL3JhaXNlZC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBZSxNQUFNLEVBQW9CLE1BQU0sZUFBZSxDQUFDO0FBQ2xJLE9BQU8sRUFBRSxTQUFTLEdBQUcsTUFBTSwwQkFBMEIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDOzs7OztJQ0ZELGdDQUE2QztJQUFBLFlBQWdCO0lBQUEsaUJBQVc7OztJQUE5RCxrREFBa0M7SUFBQyxjQUFnQjtJQUFoQix5Q0FBZ0I7OztJQUN0RixZQUFxQjs7OztJQU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ZScgOiB0aGlzLmljb24oKSk7XHJcbiAgcHVibGljIGJ1dHRvbkRpc2FibGVkID0gY29tcHV0ZWQoKCkgPT4gdGhpcy5pc0Rpc2FibGVkKCkgfHwgdGhpcy5pc0luUHJvZ3Jlc3MpO1xyXG5cclxuICBwdWJsaWMgYnV0dG9uQ2xpY2s6IE91dHB1dEVtaXR0ZXJSZWY8dm9pZD4gPSBvdXRwdXQoKTtcclxufVxyXG4iLCI8YnV0dG9uIG1hdC1yYWlzZWQtYnV0dG9uIFtjb2xvcl09XCJjb2xvcigpXCIgb25jbGljaz1cInRoaXMuYmx1cigpXCIgW2Rpc2FibGVkXT1cImJ1dHRvbkRpc2FibGVkKClcIiAoY2xpY2spPVwiYnV0dG9uQ2xpY2suZW1pdCgpXCI+XHJcbiAgICBAaWYgKHNob3dJY29uKCkgJiYgaWNvbkFsaWdubWVudCgpID09PSAnbGVmdCcpIHsgPG1hdC1pY29uIFtjbGFzcy5idXR0b24tc3Bpbl09XCJpc0luUHJvZ3Jlc3NcIj57e2ljb25Ub1Nob3coKX19PC9tYXQtaWNvbj4gfVxyXG4gICAgQGlmICh0cmFuc2xhdGVMYWJlbCgpKSB7e3tsYWJlbCgpfHRyYW5zbGF0ZX19fSBAZWxzZSB7e3tsYWJlbCgpfX19XHJcbiAgICBAaWYgKHNob3dJY29uKCkgJiYgaWNvbkFsaWdubWVudCgpID09PSAncmlnaHQnKSB7IDxtYXQtaWNvbiBbY2xhc3MuYnV0dG9uLXNwaW5dPVwiaXNJblByb2dyZXNzXCI+e3tpY29uVG9TaG93KCl9fTwvbWF0LWljb24+IH1cclxuPC9idXR0b24+Il19
@@ -849,7 +849,7 @@ class CaucaMaterialModule {
849
849
  CaucaSimpleDialogComponent,
850
850
  CaucaSlideshowComponent] }); })();
851
851
 
852
- class BaseButtonWithoutLabel {
852
+ class BaseButton {
853
853
  constructor() {
854
854
  this.color = input(undefined);
855
855
  this.icon = input();
@@ -861,28 +861,20 @@ class BaseButtonWithoutLabel {
861
861
  this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
862
862
  this.buttonClick = output();
863
863
  }
864
- static { this.ɵfac = function BaseButtonWithoutLabel_Factory(t) { return new (t || BaseButtonWithoutLabel)(); }; }
865
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithoutLabel, inputs: { color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
864
+ static { this.ɵfac = function BaseButton_Factory(t) { return new (t || BaseButton)(); }; }
865
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButton, inputs: { color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
866
866
  }
867
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithoutLabel, [{
867
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
868
868
  type: Directive
869
869
  }], null, null); })();
870
- class BaseButtonWithLabel {
870
+ class BaseButtonWithLabel extends BaseButton {
871
871
  constructor() {
872
+ super(...arguments);
872
873
  this.translateLabel = input(true);
873
874
  this.label = input();
874
- this.color = input(undefined);
875
- this.icon = input();
876
- this.iconAlignment = input('left');
877
- this.isDisabled = input(false);
878
- this.isInProgress = input(false);
879
- this.showIcon = computed(() => !!this.icon() || this.isInProgress());
880
- this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon());
881
- this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
882
- this.buttonClick = output();
883
875
  }
884
- static { this.ɵfac = function BaseButtonWithLabel_Factory(t) { return new (t || BaseButtonWithLabel)(); }; }
885
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
876
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(t) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(t || BaseButtonWithLabel); }; })(); }
877
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
886
878
  }
887
879
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
888
880
  type: Directive
@@ -1069,7 +1061,7 @@ function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1069
1061
  i0.ɵɵelementEnd();
1070
1062
  } if (rf & 2) {
1071
1063
  const ctx_r0 = i0.ɵɵnextContext();
1072
- i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1064
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
1073
1065
  i0.ɵɵadvance();
1074
1066
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1075
1067
  } }
@@ -1092,13 +1084,26 @@ function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1092
1084
  i0.ɵɵelementEnd();
1093
1085
  } if (rf & 2) {
1094
1086
  const ctx_r0 = i0.ɵɵnextContext();
1095
- i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1087
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
1096
1088
  i0.ɵɵadvance();
1097
1089
  i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1098
1090
  } }
1099
- class RaisedButtonComponent extends BaseButtonWithLabel {
1100
- static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(t) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(t || RaisedButtonComponent); }; })(); }
1101
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["app-raised-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1091
+ class RaisedButtonComponent {
1092
+ constructor() {
1093
+ this.translateLabel = input(true);
1094
+ this.label = input();
1095
+ this.color = input(undefined);
1096
+ this.icon = input();
1097
+ this.iconAlignment = input('left');
1098
+ this.isDisabled = input(false);
1099
+ this.isInProgress = false;
1100
+ this.showIcon = computed(() => !!this.icon() || this.isInProgress);
1101
+ this.iconToShow = computed(() => this.isInProgress ? 'update' : this.icon());
1102
+ this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress);
1103
+ this.buttonClick = output();
1104
+ }
1105
+ static { this.ɵfac = function RaisedButtonComponent_Factory(t) { return new (t || RaisedButtonComponent)(); }; }
1106
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["app-raised-button"]], inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: "isInProgress" }, outputs: { buttonClick: "buttonClick" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1102
1107
  i0.ɵɵelementStart(0, "button", 0);
1103
1108
  i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1104
1109
  i0.ɵɵtemplate(1, RaisedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, RaisedButtonComponent_Conditional_2_Template, 2, 3)(3, RaisedButtonComponent_Conditional_3_Template, 1, 1)(4, RaisedButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
@@ -1115,11 +1120,13 @@ class RaisedButtonComponent extends BaseButtonWithLabel {
1115
1120
  }
1116
1121
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
1117
1122
  type: Component,
1118
- args: [{ selector: 'app-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-raised-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}\n"] }]
1119
- }], null, null); })();
1120
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 15 }); })();
1123
+ args: [{ selector: 'app-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-raised-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}\n"] }]
1124
+ }], null, { isInProgress: [{
1125
+ type: Input
1126
+ }] }); })();
1127
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 14 }); })();
1121
1128
 
1122
- class IconButtonComponent extends BaseButtonWithoutLabel {
1129
+ class IconButtonComponent extends BaseButton {
1123
1130
  static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(t) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(t || IconButtonComponent); }; })(); }
1124
1131
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["app-icon-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
1125
1132
  i0.ɵɵelementStart(0, "button", 0);