@cauca-911/material 18.0.1-beta6 → 18.0.1
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.
- package/esm2022/lib/cauca-date-time-picker/cauca-date-time-picker.component.mjs +184 -0
- package/esm2022/lib/{inputs/cauca-date-time-picker → cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.mjs +2 -2
- package/esm2022/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +365 -0
- package/esm2022/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +74 -0
- package/esm2022/lib/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +2 -0
- package/esm2022/lib/cauca-input-file/cauca-input-file.component.mjs +148 -0
- package/esm2022/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +87 -0
- package/esm2022/lib/cauca-material.component.mjs +5 -6
- package/esm2022/lib/cauca-material.module.mjs +52 -14
- package/esm2022/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +10 -14
- package/esm2022/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +8 -16
- package/esm2022/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +10 -14
- package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +6 -6
- package/esm2022/public-api.mjs +4 -21
- package/fesm2022/cauca-911-material.mjs +822 -2125
- package/fesm2022/cauca-911-material.mjs.map +1 -1
- package/lib/cauca-date-time-picker/cauca-date-time-picker.component.d.ts +40 -0
- package/lib/{inputs/cauca-date-time-picker → cauca-date-time-picker}/components/dialog-date-time-picker/dialog-date-time-picker.component.d.ts +2 -1
- package/lib/{inputs/cauca-date-time-picker → cauca-date-time-picker}/models/dialog-date-time-picker-data.d.ts +3 -2
- package/lib/{inputs/cauca-input-file → cauca-input-file}/cauca-input-file.component.d.ts +1 -1
- package/lib/{inputs/cauca-input-multiple-langue → cauca-input-multiple-langue}/cauca-input-multiple-langue.component.d.ts +1 -1
- package/lib/cauca-material.component.d.ts +1 -1
- package/lib/cauca-material.module.d.ts +14 -4
- package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +1 -1
- package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +1 -1
- package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +1 -1
- package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +1 -1
- package/package.json +2 -3
- package/public-api.d.ts +3 -20
- package/esm2022/lib/buttons/base-button.mjs +0 -33
- package/esm2022/lib/buttons/basic-button/basic-button.component.mjs +0 -64
- package/esm2022/lib/buttons/flat-button/flat-button.component.mjs +0 -64
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +0 -28
- package/esm2022/lib/buttons/menu-item/menu-item.component.mjs +0 -68
- package/esm2022/lib/buttons/raised-button/raised-button.component.mjs +0 -78
- package/esm2022/lib/buttons/stroked-button/stroked-button.component.mjs +0 -71
- package/esm2022/lib/dialogs/alert-dialog/alert-dialog.component.mjs +0 -57
- package/esm2022/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -69
- package/esm2022/lib/dialogs/services/dialog.service.mjs +0 -52
- package/esm2022/lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component.mjs +0 -137
- package/esm2022/lib/inputs/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +0 -358
- package/esm2022/lib/inputs/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +0 -74
- package/esm2022/lib/inputs/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +0 -2
- package/esm2022/lib/inputs/cauca-input-file/cauca-input-file.component.mjs +0 -147
- package/esm2022/lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +0 -99
- package/esm2022/lib/inputs/password/models/password-validation.mjs +0 -13
- package/esm2022/lib/inputs/password/password-criteria/password-criteria.component.mjs +0 -49
- package/esm2022/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.mjs +0 -29
- package/esm2022/lib/inputs/password/password-input/password-input.component.mjs +0 -112
- package/esm2022/lib/inputs/password/password-selection/password-selection.component.mjs +0 -112
- package/esm2022/lib/inputs/password/validators/password-validator.mjs +0 -19
- package/esm2022/lib/inputs/select-with-search/select-with-search.component.mjs +0 -157
- package/esm2022/lib/layout/expandable-panel/expandable-panel.component.mjs +0 -75
- package/esm2022/lib/layout/menu-expandable-panel/menu-expandable-panel.component.mjs +0 -148
- package/esm2022/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.mjs +0 -50
- package/esm2022/lib/layout/page-title/page-title.component.mjs +0 -86
- package/esm2022/lib/notifications/snack-bar/snack-bar.component.mjs +0 -75
- package/lib/buttons/base-button.d.ts +0 -21
- package/lib/buttons/basic-button/basic-button.component.d.ts +0 -6
- package/lib/buttons/flat-button/flat-button.component.d.ts +0 -6
- package/lib/buttons/icon-button/icon-button.component.d.ts +0 -6
- package/lib/buttons/menu-item/menu-item.component.d.ts +0 -9
- package/lib/buttons/raised-button/raised-button.component.d.ts +0 -17
- package/lib/buttons/stroked-button/stroked-button.component.d.ts +0 -6
- package/lib/dialogs/alert-dialog/alert-dialog.component.d.ts +0 -18
- package/lib/dialogs/confirm-dialog/confirm-dialog.component.d.ts +0 -17
- package/lib/dialogs/services/dialog.service.d.ts +0 -26
- package/lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component.d.ts +0 -29
- package/lib/inputs/password/models/password-validation.d.ts +0 -9
- package/lib/inputs/password/password-criteria/password-criteria.component.d.ts +0 -9
- package/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.d.ts +0 -9
- package/lib/inputs/password/password-input/password-input.component.d.ts +0 -25
- package/lib/inputs/password/password-selection/password-selection.component.d.ts +0 -20
- package/lib/inputs/password/validators/password-validator.d.ts +0 -9
- package/lib/inputs/select-with-search/select-with-search.component.d.ts +0 -32
- package/lib/layout/expandable-panel/expandable-panel.component.d.ts +0 -10
- package/lib/layout/menu-expandable-panel/menu-expandable-panel.component.d.ts +0 -29
- package/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.d.ts +0 -13
- package/lib/layout/page-title/page-title.component.d.ts +0 -11
- package/lib/notifications/snack-bar/snack-bar.component.d.ts +0 -17
- /package/lib/{inputs/cauca-date-time-picker → cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.d.ts +0 -0
- /package/lib/{inputs/cauca-date-time-picker → cauca-date-time-picker}/components/mobile-time-picker/mobile-time-picker.component.d.ts +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, InputSignal } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { DatePipe } from '@angular/common';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CaucaDateTimePickerComponent implements ControlValueAccessor {
|
|
8
|
+
private elementRef;
|
|
9
|
+
private dialog;
|
|
10
|
+
private datePipe;
|
|
11
|
+
appearance: InputSignal<MatFormFieldAppearance>;
|
|
12
|
+
showTime: InputSignal<boolean>;
|
|
13
|
+
label: InputSignal<string>;
|
|
14
|
+
translateLabel: InputSignal<boolean>;
|
|
15
|
+
stepHours: number;
|
|
16
|
+
stepMinutes: number;
|
|
17
|
+
stepSecondes: number;
|
|
18
|
+
minimumDate: Date;
|
|
19
|
+
maximumDate: Date;
|
|
20
|
+
showSeconds: boolean;
|
|
21
|
+
showFormat: string;
|
|
22
|
+
showClearButton: boolean;
|
|
23
|
+
showButtonIcons: boolean;
|
|
24
|
+
selectedChange: EventEmitter<Date>;
|
|
25
|
+
stringDate: string;
|
|
26
|
+
private selectedDate;
|
|
27
|
+
constructor(elementRef: ElementRef, dialog: MatDialog, datePipe: DatePipe);
|
|
28
|
+
set value(value: Date);
|
|
29
|
+
showDialog(): void;
|
|
30
|
+
writeValue(date: Date): void;
|
|
31
|
+
registerOnChange(fn: any): void;
|
|
32
|
+
registerOnTouched(fn: any): void;
|
|
33
|
+
onChange: (value: Date) => Date;
|
|
34
|
+
onTouched: () => void;
|
|
35
|
+
private getDateTimePickerOptions;
|
|
36
|
+
private stringifyDate;
|
|
37
|
+
private getDialogPosition;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaDateTimePickerComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaDateTimePickerComponent, "cauca-date-time-picker", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "stepHours": { "alias": "stepHours"; "required": false; }; "stepMinutes": { "alias": "stepMinutes"; "required": false; }; "stepSecondes": { "alias": "stepSecondes"; "required": false; }; "minimumDate": { "alias": "minimumDate"; "required": false; }; "maximumDate": { "alias": "maximumDate"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "showFormat": { "alias": "showFormat"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { DialogDateTimePickerOptions, DialogDateTimePickerDataDisabled } from '../../models/dialog-date-time-picker-data';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -19,6 +19,7 @@ export declare class DialogDateTimePickerComponent implements OnInit {
|
|
|
19
19
|
minutes: number[];
|
|
20
20
|
seconds: number[];
|
|
21
21
|
showMobileUi: boolean;
|
|
22
|
+
showTime: WritableSignal<boolean>;
|
|
22
23
|
disabled: DialogDateTimePickerDataDisabled;
|
|
23
24
|
private step;
|
|
24
25
|
constructor(dialogRef: MatDialogRef<DialogDateTimePickerComponent>, options: DialogDateTimePickerOptions);
|
|
@@ -13,11 +13,12 @@ export interface DialogDateTimePickerDataDisabled {
|
|
|
13
13
|
}
|
|
14
14
|
export interface DialogDateTimePickerOptions {
|
|
15
15
|
selectedDate: Date;
|
|
16
|
-
minimumDate: Date;
|
|
17
|
-
maximumDate: Date;
|
|
16
|
+
minimumDate: Date | null;
|
|
17
|
+
maximumDate: Date | null;
|
|
18
18
|
showSeconds: boolean;
|
|
19
19
|
showClearButton: boolean;
|
|
20
20
|
showButtonIcons: boolean;
|
|
21
|
+
showTime: boolean;
|
|
21
22
|
step: DialogDateTimePickerDataStep;
|
|
22
23
|
}
|
|
23
24
|
export interface DialogDateTimePickerValue {
|
|
@@ -19,5 +19,5 @@ export declare class CaucaInputFileComponent implements OnInit {
|
|
|
19
19
|
private onError;
|
|
20
20
|
private onReadEnd;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputFileComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never,
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never, false, never>;
|
|
23
23
|
}
|
|
@@ -15,5 +15,5 @@ export declare class CaucaInputMultipleLangueComponent implements OnInit {
|
|
|
15
15
|
getErrorMessage(index: any): string;
|
|
16
16
|
private initializeForms;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputMultipleLangueComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never,
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class CaucaMaterialComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never, false, never>;
|
|
5
5
|
}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./cauca-
|
|
4
|
-
import * as i3 from "./
|
|
2
|
+
import * as i1 from "./cauca-material.component";
|
|
3
|
+
import * as i2 from "./cauca-input-file/cauca-input-file.component";
|
|
4
|
+
import * as i3 from "./cauca-input-multiple-langue/cauca-input-multiple-langue.component";
|
|
5
5
|
import * as i4 from "./cauca-menu-sidebar/cauca-menu-sidebar.component";
|
|
6
6
|
import * as i5 from "./cauca-menu-vertical/cauca-menu-vertical.component";
|
|
7
7
|
import * as i6 from "./cauca-simple-dialog/cauca-simple-dialog.component";
|
|
8
8
|
import * as i7 from "./cauca-slideshow/cauca-slideshow.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@cauca-911/core";
|
|
11
|
+
import * as i10 from "@fortawesome/angular-fontawesome";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "@angular/material/button";
|
|
14
|
+
import * as i13 from "@angular/material/form-field";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/material/input";
|
|
17
|
+
import * as i16 from "@angular/material/tabs";
|
|
18
|
+
import * as i17 from "@angular/material/dialog";
|
|
9
19
|
export declare class CaucaMaterialModule {
|
|
10
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaMaterialModule,
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaMaterialModule, [typeof i1.CaucaMaterialComponent, typeof i2.CaucaInputFileComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent], [typeof i8.CommonModule, typeof i9.CaucaCoreForChildModule, typeof i10.FontAwesomeModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatButtonModule, typeof i13.MatFormFieldModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatTabsModule, typeof i17.MatDialogModule], [typeof i1.CaucaMaterialComponent, typeof i2.CaucaInputFileComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent]>;
|
|
12
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaucaMaterialModule>;
|
|
13
23
|
}
|
|
@@ -18,5 +18,5 @@ export declare class CaucaMenuSidebarComponent {
|
|
|
18
18
|
private onExpandedMenu;
|
|
19
19
|
private onCollapseMenu;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuSidebarComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"],
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"], false, never>;
|
|
22
22
|
}
|
|
@@ -10,5 +10,5 @@ export declare class CaucaMenuVerticalComponent {
|
|
|
10
10
|
goTo(path: string, e: any): void;
|
|
11
11
|
private selectActiveRoute;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuVerticalComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -7,5 +7,5 @@ export declare class CaucaSimpleDialogComponent {
|
|
|
7
7
|
constructor(dialogRef: MatDialogRef<CaucaSimpleDialogComponent>, data: SimpleDialogData);
|
|
8
8
|
onClick(buttonIndex: number): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSimpleDialogComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never, false, never>;
|
|
11
11
|
}
|
|
@@ -16,5 +16,5 @@ export declare class CaucaSlideshowComponent implements OnInit {
|
|
|
16
16
|
next(): void;
|
|
17
17
|
private changed;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSlideshowComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never,
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cauca-911/material",
|
|
3
|
-
"version": "18.0.1
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
7
|
"@angular/material": ">=18.0.0",
|
|
8
8
|
"@fortawesome/angular-fontawesome": ">=0.15.0",
|
|
9
9
|
"@fortawesome/fontawesome-svg-core": ">=6.5.0",
|
|
10
|
-
"@cauca-911/core": ">=18.0.0"
|
|
11
|
-
"ngx-mat-select-search": "^7.0.6"
|
|
10
|
+
"@cauca-911/core": ">=18.0.0"
|
|
12
11
|
},
|
|
13
12
|
"homepage": "https://cauca.ca",
|
|
14
13
|
"license": "SEE LICENSE IN LICENSE",
|
package/public-api.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
export * from './lib/cauca-material.service';
|
|
2
2
|
export * from './lib/cauca-material.component';
|
|
3
3
|
export * from './lib/cauca-material.module';
|
|
4
|
+
export * from './lib/cauca-date-time-picker/cauca-date-time-picker.component';
|
|
5
|
+
export * from './lib/cauca-input-file/cauca-input-file.component';
|
|
6
|
+
export * from './lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component';
|
|
4
7
|
export * from './lib/cauca-menu-sidebar/cauca-menu-sidebar.component';
|
|
5
8
|
export * from './lib/cauca-menu-vertical/cauca-menu-vertical.component';
|
|
6
9
|
export * from './lib/cauca-simple-dialog/cauca-simple-dialog.component';
|
|
7
10
|
export * from './lib/cauca-slideshow/cauca-slideshow.component';
|
|
8
|
-
export * from './lib/buttons/basic-button/basic-button.component';
|
|
9
|
-
export * from './lib/buttons/flat-button/flat-button.component';
|
|
10
|
-
export * from './lib/buttons/stroked-button/stroked-button.component';
|
|
11
|
-
export * from './lib/buttons/raised-button/raised-button.component';
|
|
12
|
-
export * from './lib/buttons/icon-button/icon-button.component';
|
|
13
|
-
export * from './lib/buttons/menu-item/menu-item.component';
|
|
14
|
-
export * from './lib/layout/expandable-panel/expandable-panel.component';
|
|
15
|
-
export * from './lib/layout/menu-expandable-panel/menu-expandable-panel.component';
|
|
16
|
-
export * from './lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component';
|
|
17
|
-
export * from './lib/layout/page-title/page-title.component';
|
|
18
|
-
export * from './lib/inputs/cauca-input-file/cauca-input-file.component';
|
|
19
|
-
export * from './lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component';
|
|
20
|
-
export * from './lib/inputs/password/password-criteria/password-criteria.component';
|
|
21
|
-
export * from './lib/inputs/password/password-input/password-input.component';
|
|
22
|
-
export * from './lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component';
|
|
23
|
-
export * from './lib/inputs/password/password-selection/password-selection.component';
|
|
24
|
-
export * from './lib/inputs/select-with-search/select-with-search.component';
|
|
25
|
-
export * from './lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component';
|
|
26
|
-
export * from './lib/notifications/snack-bar/snack-bar.component';
|
|
27
|
-
export * from './lib/dialogs/services/dialog.service';
|
|
28
11
|
export { MenuItem } from './lib/shared/models/menu-item';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { input, computed, output, Directive } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class BaseButton {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.color = input(undefined);
|
|
6
|
-
this.icon = input();
|
|
7
|
-
this.iconAlignment = input('left');
|
|
8
|
-
this.isDisabled = input(false);
|
|
9
|
-
this.isInProgress = input(false);
|
|
10
|
-
this.showIcon = computed(() => !!this.icon() || this.isInProgress());
|
|
11
|
-
this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon());
|
|
12
|
-
this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
|
|
13
|
-
this.buttonClick = output();
|
|
14
|
-
}
|
|
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
|
-
}
|
|
18
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
|
|
19
|
-
type: Directive
|
|
20
|
-
}], null, null); })();
|
|
21
|
-
export class BaseButtonWithLabel extends BaseButton {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
this.translateLabel = input(true);
|
|
25
|
-
this.label = input();
|
|
26
|
-
}
|
|
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] }); }
|
|
29
|
-
}
|
|
30
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
|
|
31
|
-
type: Directive
|
|
32
|
-
}], null, null); })();
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1idXR0b24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2J1dHRvbnMvYmFzZS1idXR0b24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFlLEtBQUssRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBb0IsTUFBTSxlQUFlLENBQUM7O0FBR2xHLE1BQU0sT0FBZ0IsVUFBVTtJQURoQztRQUVXLFVBQUssR0FBd0IsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQzlDLFNBQUksR0FBd0IsS0FBSyxFQUFFLENBQUM7UUFDcEMsa0JBQWEsR0FBa0MsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdELGVBQVUsR0FBeUIsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2hELGlCQUFZLEdBQXlCLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUVsRCxhQUFRLEdBQUcsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDLENBQUM7U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HVibGljIGljb25BbGlnbm1lbnQ6IElucHV0U2lnbmFsPCdsZWZ0JyB8ICdyaWdodCc+ID0gaW5wdXQoJ2xlZnQnKTtcclxuICAgIHB1YmxpYyBpc0Rpc2FibGVkOiBJbnB1dFNpZ25hbDxib29sZWFuPiA9IGlucHV0KGZhbHNlKTtcclxuICAgIHB1YmxpYyBpc0luUHJvZ3Jlc3M6IElucHV0U2lnbmFsPGJvb2xlYW4+ID0gaW5wdXQoZmFsc2UpO1xyXG5cclxuICAgIHB1YmxpYyBzaG93SWNvbiA9IGNvbXB1dGVkKCgpID0+ICEhdGhpcy5pY29uKCkgfHwgdGhpcy5pc0luUHJvZ3Jlc3MoKSk7XHJcbiAgICBwdWJsaWMgaWNvblRvU2hvdyA9IGNvbXB1dGVkKCgpID0+IHRoaXMuaXNJblByb2dyZXNzKCkgPyAndXBkYXRlJyA6IHRoaXMuaWNvbigpKTtcclxuICAgIHB1YmxpYyBidXR0b25EaXNhYmxlZCA9IGNvbXB1dGVkKCgpID0+IHRoaXMuaXNEaXNhYmxlZCgpIHx8IHRoaXMuaXNJblByb2dyZXNzKCkpO1xyXG5cclxuICAgIHB1YmxpYyBidXR0b25DbGljazogT3V0cHV0RW1pdHRlclJlZjx2b2lkPiA9IG91dHB1dCgpO1xyXG59XHJcblxyXG5ARGlyZWN0aXZlKClcclxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEJhc2VCdXR0b25XaXRoTGFiZWwgZXh0ZW5kcyBCYXNlQnV0dG9uIHtcclxuICAgIHB1YmxpYyB0cmFuc2xhdGVMYWJlbDogSW5wdXRTaWduYWw8Ym9vbGVhbj4gPSBpbnB1dCh0cnVlKTtcclxuICAgIHB1YmxpYyBsYWJlbDogSW5wdXRTaWduYWw8c3RyaW5nPiA9IGlucHV0KCk7XHJcbn0iXX0=
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { NgIf } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { MatButton } from '@angular/material/button';
|
|
4
|
-
import { MatIcon } from '@angular/material/icon';
|
|
5
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
-
import { BaseButtonWithLabel } from '../base-button';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@ngx-translate/core";
|
|
9
|
-
function BasicButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
11
|
-
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
16
|
-
i0.ɵɵadvance();
|
|
17
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
18
|
-
} }
|
|
19
|
-
function BasicButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵtext(0);
|
|
21
|
-
i0.ɵɵpipe(1, "translate");
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
25
|
-
} }
|
|
26
|
-
function BasicButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
-
i0.ɵɵtext(0);
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
31
|
-
} }
|
|
32
|
-
function BasicButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
34
|
-
i0.ɵɵtext(1);
|
|
35
|
-
i0.ɵɵelementEnd();
|
|
36
|
-
} if (rf & 2) {
|
|
37
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
38
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
39
|
-
i0.ɵɵadvance();
|
|
40
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
41
|
-
} }
|
|
42
|
-
export class BasicButtonComponent extends BaseButtonWithLabel {
|
|
43
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBasicButtonComponent_BaseFactory; return function BasicButtonComponent_Factory(t) { return (ɵBasicButtonComponent_BaseFactory || (ɵBasicButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BasicButtonComponent)))(t || BasicButtonComponent); }; })(); }
|
|
44
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BasicButtonComponent, selectors: [["app-basic-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function BasicButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
46
|
-
i0.ɵɵlistener("click", function BasicButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
47
|
-
i0.ɵɵtemplate(1, BasicButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, BasicButtonComponent_Conditional_2_Template, 2, 3)(3, BasicButtonComponent_Conditional_3_Template, 1, 1)(4, BasicButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
48
|
-
i0.ɵɵelementEnd();
|
|
49
|
-
} if (rf & 2) {
|
|
50
|
-
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
51
|
-
i0.ɵɵadvance();
|
|
52
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
53
|
-
i0.ɵɵadvance();
|
|
54
|
-
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
55
|
-
i0.ɵɵadvance(2);
|
|
56
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
57
|
-
} }, dependencies: [MatIcon, MatButton, TranslateModule, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
58
|
-
}
|
|
59
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasicButtonComponent, [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{ selector: 'app-basic-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, MatIcon, MatButton, TranslateModule], template: "<button mat-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(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib\\buttons\\basic-button\\basic-button.component.ts", lineNumber: 16 }); })();
|
|
64
|
-
//# sourceMappingUR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sYXNzLmJ1dHRvbi1zcGluXT1cImlzSW5Qcm9ncmVzcygpXCI+e3tpY29uVG9TaG93KCl9fTwvbWF0LWljb24+IH1cclxuPC9idXR0b24+Il19
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { NgIf } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { MatButton } from '@angular/material/button';
|
|
4
|
-
import { MatIcon } from '@angular/material/icon';
|
|
5
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
-
import { BaseButtonWithLabel } from '../base-button';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@ngx-translate/core";
|
|
9
|
-
function FlatButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
11
|
-
i0.ɵɵtext(1);
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
16
|
-
i0.ɵɵadvance();
|
|
17
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
18
|
-
} }
|
|
19
|
-
function FlatButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵtext(0);
|
|
21
|
-
i0.ɵɵpipe(1, "translate");
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
25
|
-
} }
|
|
26
|
-
function FlatButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
-
i0.ɵɵtext(0);
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
31
|
-
} }
|
|
32
|
-
function FlatButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
34
|
-
i0.ɵɵtext(1);
|
|
35
|
-
i0.ɵɵelementEnd();
|
|
36
|
-
} if (rf & 2) {
|
|
37
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
38
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
39
|
-
i0.ɵɵadvance();
|
|
40
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
41
|
-
} }
|
|
42
|
-
export class FlatButtonComponent extends BaseButtonWithLabel {
|
|
43
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFlatButtonComponent_BaseFactory; return function FlatButtonComponent_Factory(t) { return (ɵFlatButtonComponent_BaseFactory || (ɵFlatButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FlatButtonComponent)))(t || FlatButtonComponent); }; })(); }
|
|
44
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FlatButtonComponent, selectors: [["app-flat-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-flat-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function FlatButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
46
|
-
i0.ɵɵlistener("click", function FlatButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
47
|
-
i0.ɵɵtemplate(1, FlatButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, FlatButtonComponent_Conditional_2_Template, 2, 3)(3, FlatButtonComponent_Conditional_3_Template, 1, 1)(4, FlatButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
48
|
-
i0.ɵɵelementEnd();
|
|
49
|
-
} if (rf & 2) {
|
|
50
|
-
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
51
|
-
i0.ɵɵadvance();
|
|
52
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
53
|
-
i0.ɵɵadvance();
|
|
54
|
-
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
55
|
-
i0.ɵɵadvance(2);
|
|
56
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
57
|
-
} }, dependencies: [MatIcon, MatButton, TranslateModule, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
58
|
-
}
|
|
59
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlatButtonComponent, [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{ selector: 'app-flat-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, MatIcon, MatButton, TranslateModule], template: "<button mat-flat-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(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib\\buttons\\flat-button\\flat-button.component.ts", lineNumber: 16 }); })();
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhdC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2F1Y2EtbWF0ZXJpYWwvc3JjL2xpYi9idXR0b25zL2ZsYXQtYnV0dG9uL2ZsYXQtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9mbGF0LWJ1dHRvbi9mbGF0LWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDdkMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDckQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2pELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztJQ0pELGdDQUErQztJQUFBLFlBQWdCO0lBQUEsaUJBQVc7OztJQUFoRSxvREFBb0M7SUFBQyxjQUFnQjtJQU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IEBpZiAodHJhbnNsYXRlTGFiZWwoKSkge3t7bGFiZWwoKXx0cmFuc2xhdGV9fX0gQGVsc2Uge3t7bGFiZWwoKX19fVxyXG4gICAgQGlmKHNob3dJY29uKCkgJiYgaWNvbkFsaWdubWVudCgpID09PSAncmlnaHQnKSB7IDxtYXQtaWNvbiBbY2xhc3MuYnV0dG9uLXNwaW5dPVwiaXNJblByb2dyZXNzKClcIj57e2ljb25Ub1Nob3coKX19PC9tYXQtaWNvbj4gfVxyXG48L2J1dHRvbj4iXX0=
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { MatIconButton } from '@angular/material/button';
|
|
3
|
-
import { MatIcon } from '@angular/material/icon';
|
|
4
|
-
import { BaseButton } from '../base-button';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class IconButtonComponent extends BaseButton {
|
|
7
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(t) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(t || IconButtonComponent); }; })(); }
|
|
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
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
10
|
-
i0.ɵɵlistener("click", function IconButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
11
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
12
|
-
i0.ɵɵtext(2);
|
|
13
|
-
i0.ɵɵelementEnd()();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
i0.ɵɵproperty("disabled", ctx.buttonDisabled());
|
|
16
|
-
i0.ɵɵadvance();
|
|
17
|
-
i0.ɵɵstyleProp("color", ctx.color());
|
|
18
|
-
i0.ɵɵclassProp("button-spin", ctx.isInProgress());
|
|
19
|
-
i0.ɵɵadvance();
|
|
20
|
-
i0.ɵɵtextInterpolate(ctx.iconToShow());
|
|
21
|
-
} }, dependencies: [MatIconButton, MatIcon], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}.mat-mdc-button-disabled[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#12101461}"], changeDetection: 0 }); }
|
|
22
|
-
}
|
|
23
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconButtonComponent, [{
|
|
24
|
-
type: Component,
|
|
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
|
-
}], null, null); })();
|
|
27
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconButtonComponent, { className: "IconButtonComponent", filePath: "lib\\buttons\\icon-button\\icon-button.component.ts", lineNumber: 14 }); })();
|
|
28
|
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iBbc3R5bGUuY29sb3JdPVwiY29sb3IoKVwiIFtjbGFzcy5idXR0b24tc3Bpbl09XCJpc0luUHJvZ3Jlc3MoKVwiPnt7aWNvblRvU2hvdygpfX08L21hdC1pY29uPlxyXG48L2J1dHRvbj4iXX0=
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, input, } from '@angular/core';
|
|
2
|
-
import { MatIcon } from '@angular/material/icon';
|
|
3
|
-
import { MatMenuItem, MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import { BaseButtonWithLabel } from '../base-button';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@ngx-translate/core";
|
|
8
|
-
function MenuItemComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
10
|
-
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
15
|
-
i0.ɵɵadvance();
|
|
16
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
17
|
-
} }
|
|
18
|
-
function MenuItemComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵtext(0);
|
|
20
|
-
i0.ɵɵpipe(1, "translate");
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
24
|
-
} }
|
|
25
|
-
function MenuItemComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
-
i0.ɵɵtext(0);
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
29
|
-
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
30
|
-
} }
|
|
31
|
-
function MenuItemComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
33
|
-
i0.ɵɵtext(1);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
38
|
-
i0.ɵɵadvance();
|
|
39
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
40
|
-
} }
|
|
41
|
-
export class MenuItemComponent extends BaseButtonWithLabel {
|
|
42
|
-
constructor() {
|
|
43
|
-
super(...arguments);
|
|
44
|
-
this.translateLabel = input(false);
|
|
45
|
-
this.trigger = input();
|
|
46
|
-
}
|
|
47
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMenuItemComponent_BaseFactory; return function MenuItemComponent_Factory(t) { return (ɵMenuItemComponent_BaseFactory || (ɵMenuItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MenuItemComponent)))(t || MenuItemComponent); }; })(); }
|
|
48
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemComponent, selectors: [["app-menu-item"]], inputs: { translateLabel: [1, "translateLabel"], trigger: [1, "trigger"] }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-menu-item", "", 1, "change-password-menu-item", 3, "click", "matMenuTriggerFor", "disabled"], [3, "button-spin"]], template: function MenuItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
50
|
-
i0.ɵɵlistener("click", function MenuItemComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
51
|
-
i0.ɵɵtemplate(1, MenuItemComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, MenuItemComponent_Conditional_2_Template, 2, 3)(3, MenuItemComponent_Conditional_3_Template, 1, 1)(4, MenuItemComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
52
|
-
i0.ɵɵelementEnd();
|
|
53
|
-
} if (rf & 2) {
|
|
54
|
-
i0.ɵɵproperty("matMenuTriggerFor", ctx.trigger())("disabled", ctx.buttonDisabled());
|
|
55
|
-
i0.ɵɵadvance();
|
|
56
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
57
|
-
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
59
|
-
i0.ɵɵadvance(2);
|
|
60
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
61
|
-
} }, dependencies: [MatMenuItem, TranslateModule, i1.TranslatePipe, MatIcon, MatMenuTrigger], changeDetection: 0 }); }
|
|
62
|
-
}
|
|
63
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemComponent, [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{ selector: 'app-menu-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatMenuItem, TranslateModule, MatIcon, MatMenuTrigger], template: "<button mat-menu-item class=\"change-password-menu-item\" [matMenuTriggerFor]=\"trigger()\" [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>" }]
|
|
66
|
-
}], null, null); })();
|
|
67
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib\\buttons\\menu-item\\menu-item.component.ts", lineNumber: 15 }); })();
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9tZW51LWl0ZW0vbWVudS1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvYnV0dG9ucy9tZW51LWl0ZW0vbWVudS1pdGVtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQWUsS0FBSyxHQUFHLE1BQU0sZUFBZSxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsV0FBVyxFQUFFLGNBQWMsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztJQ0hELGdDQUErQztJQUFBLFlBQWdCO0lBQUEsaUJBQVc7OztJQUFoRSxvREFBb0M7SUFBQyxjQUFnQjtJQUFoQix5Q0FBZ0I7OztJQUN2RixZQUFxQjs7OztJQUFyQiwwREFBcUI7OztJQUFTLFlBQVc7OztJQUFYLG9DQUFXOzs7SUFDaEIsZ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AgIEBpZihzaG93SWNvbigpICYmIGljb25BbGlnbm1lbnQoKSA9PT0gJ2xlZnQnKSB7IDxtYXQtaWNvbiBbY2xhc3MuYnV0dG9uLXNwaW5dPVwiaXNJblByb2dyZXNzKClcIj57e2ljb25Ub1Nob3coKX19PC9tYXQtaWNvbj4gfVxyXG4gICAgQGlmICh0cmFuc2xhdGVMYWJlbCgpKSB7e3tsYWJlbCgpfHRyYW5zbGF0ZX19fSBAZWxzZSB7e3tsYWJlbCgpfX19XHJcbiAgICBAaWYoc2hvd0ljb24oKSAmJiBpY29uQWxpZ25tZW50KCkgPT09ICdyaWdodCcpIHsgPG1hdC1pY29uIFtjbGFzcy5idXR0b24tc3Bpbl09XCJpc0luUHJvZ3Jlc3MoKVwiPnt7aWNvblRvU2hvdygpfX08L21hdC1pY29uPiB9XHJcbjwvYnV0dG9uPiJdfQ==
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed, Input, input, output } from '@angular/core';
|
|
2
|
-
import { MatButton, } from '@angular/material/button';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/icon";
|
|
7
|
-
import * as i2 from "@ngx-translate/core";
|
|
8
|
-
function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
10
|
-
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
|
|
15
|
-
i0.ɵɵadvance();
|
|
16
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
17
|
-
} }
|
|
18
|
-
function RaisedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵtext(0);
|
|
20
|
-
i0.ɵɵpipe(1, "translate");
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
24
|
-
} }
|
|
25
|
-
function RaisedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
-
i0.ɵɵtext(0);
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
29
|
-
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
30
|
-
} }
|
|
31
|
-
function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
33
|
-
i0.ɵɵtext(1);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
|
-
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress);
|
|
38
|
-
i0.ɵɵadvance();
|
|
39
|
-
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
40
|
-
} }
|
|
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) {
|
|
57
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
58
|
-
i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
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);
|
|
60
|
-
i0.ɵɵelementEnd();
|
|
61
|
-
} if (rf & 2) {
|
|
62
|
-
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
63
|
-
i0.ɵɵadvance();
|
|
64
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
65
|
-
i0.ɵɵadvance();
|
|
66
|
-
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
67
|
-
i0.ɵɵadvance(2);
|
|
68
|
-
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
69
|
-
} }, dependencies: [MatButton, MatIconModule, i1.MatIcon, TranslateModule, i2.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
70
|
-
}
|
|
71
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
|
|
72
|
-
type: Component,
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFpc2VkLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0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