@flywheel-io/vision 1.3.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/button-toggle/button-toggle-item/button-toggle-item.component.d.ts +3 -1
- package/components/dialog/dialog-actions.component.d.ts +9 -0
- package/components/dialog/dialog-confirm.component.d.ts +3 -1
- package/components/dialog/dialog-content.component.d.ts +10 -0
- package/components/dialog/dialog-header.component.d.ts +9 -0
- package/components/dialog/dialog-simple.component.d.ts +7 -1
- package/components/dialog/dialog.component.d.ts +3 -20
- package/components/dialog/dialogs.module.d.ts +13 -10
- package/components/layouts/layout-group.component.d.ts +3 -1
- package/components/layouts/layouts.module.d.ts +6 -4
- package/components/layouts/panel/panel.component.d.ts +9 -0
- package/components/layouts/sidebar/sidebar.component.d.ts +9 -0
- package/components/layouts/toolbar/toolbar.component.d.ts +3 -1
- package/components/menu/menu-container/menu-container.component.d.ts +5 -2
- package/components/menu/menu-item/menu-item.component.d.ts +6 -2
- package/components/menu/menu-sub-item/menu-sub-item.component.d.ts +5 -2
- package/components/menu/menu.component.d.ts +17 -5
- package/components/select-menu/multi-select-menu/multi-select-menu.component.d.ts +4 -3
- package/components/select-menu/select-menu.component.d.ts +3 -2
- package/components/text-input/text-input.component.d.ts +8 -1
- package/components/textarea-input/textarea-input.component.d.ts +28 -0
- package/components/textarea-input/textarea-input.module.d.ts +11 -0
- package/esm2020/components/app-icon/app-icon.component.mjs +2 -2
- package/esm2020/components/avatar/avatar.component.mjs +2 -2
- package/esm2020/components/badge/badge.component.mjs +2 -2
- package/esm2020/components/button-toggle/button-toggle-item/button-toggle-item.component.mjs +8 -3
- package/esm2020/components/button-toggle/button-toggle.component.mjs +12 -6
- package/esm2020/components/card/card-content/card-content.component.mjs +2 -2
- package/esm2020/components/card/card-header/card-header.component.mjs +2 -2
- package/esm2020/components/card/card.component.mjs +2 -2
- package/esm2020/components/chip/chip.component.mjs +2 -2
- package/esm2020/components/dialog/dialog-actions.component.mjs +32 -0
- package/esm2020/components/dialog/dialog-confirm.component.mjs +11 -4
- package/esm2020/components/dialog/dialog-content.component.mjs +38 -0
- package/esm2020/components/dialog/dialog-header.component.mjs +35 -0
- package/esm2020/components/dialog/dialog-simple.component.mjs +20 -4
- package/esm2020/components/dialog/dialog.component.mjs +9 -76
- package/esm2020/components/dialog/dialog.service.mjs +2 -2
- package/esm2020/components/dialog/dialogs.module.mjs +5 -2
- package/esm2020/components/layouts/grid/grid.component.mjs +4 -4
- package/esm2020/components/layouts/layout-group.component.mjs +13 -4
- package/esm2020/components/layouts/layouts.module.mjs +11 -1
- package/esm2020/components/layouts/panel/panel.component.mjs +26 -0
- package/esm2020/components/layouts/sidebar/sidebar.component.mjs +26 -0
- package/esm2020/components/layouts/toolbar/toolbar.component.mjs +15 -5
- package/esm2020/components/menu/menu-container/menu-container.component.mjs +8 -5
- package/esm2020/components/menu/menu-item/menu-item.component.mjs +12 -6
- package/esm2020/components/menu/menu-sub-item/menu-sub-item.component.mjs +8 -5
- package/esm2020/components/menu/menu.component.mjs +29 -17
- package/esm2020/components/paginator/paginator-advanced/paginator-advanced.component.mjs +1 -1
- package/esm2020/components/phone-input/phone-input.component.mjs +3 -3
- package/esm2020/components/popover/popover-panel/popover-panel.component.mjs +2 -2
- package/esm2020/components/select-menu/multi-select-menu/multi-select-menu.component.mjs +24 -23
- package/esm2020/components/select-menu/select-menu.component.mjs +36 -22
- package/esm2020/components/snackbar/snackbar/snackbar.component.mjs +2 -2
- package/esm2020/components/switch/switch.component.mjs +4 -4
- package/esm2020/components/text-input/text-input.component.mjs +22 -5
- package/esm2020/components/textarea-input/textarea-input.component.mjs +86 -0
- package/esm2020/components/textarea-input/textarea-input.module.mjs +39 -0
- package/esm2020/public-api.mjs +8 -1
- package/fesm2015/flywheel-io-vision.mjs +496 -195
- package/fesm2015/flywheel-io-vision.mjs.map +1 -1
- package/fesm2020/flywheel-io-vision.mjs +496 -195
- package/fesm2020/flywheel-io-vision.mjs.map +1 -1
- package/global.scss +1 -2
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/public-api.scss +3 -2
- package/scss/config/colors.scss +107 -107
- package/scss/config/overlay.scss +90 -0
- package/scss/config/shadows.scss +0 -4
- package/scss/config/typography.scss +54 -0
- package/styles.css +271 -112
|
@@ -3,16 +3,18 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class FwButtonToggleItemComponent {
|
|
4
4
|
title?: string;
|
|
5
5
|
icon?: string;
|
|
6
|
+
selectedIcon?: string;
|
|
6
7
|
value: string;
|
|
7
8
|
selected: boolean;
|
|
8
9
|
disabled: boolean;
|
|
9
10
|
size?: 'small' | 'medium' | 'large';
|
|
10
11
|
color?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
11
12
|
selectedColor?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
13
|
+
selectedStyle?: 'background' | 'foreground';
|
|
12
14
|
click: EventEmitter<string>;
|
|
13
15
|
get classes(): string;
|
|
14
16
|
constructor();
|
|
15
17
|
handleClick(): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwButtonToggleItemComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleItemComponent, "fw-button-toggle-item", never, { "title": "title"; "icon": "icon"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "size": "size"; "color": "color"; "selectedColor": "selectedColor"; }, { "click": "click"; }, never, never, false>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleItemComponent, "fw-button-toggle-item", never, { "title": "title"; "icon": "icon"; "selectedIcon": "selectedIcon"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "size": "size"; "color": "color"; "selectedColor": "selectedColor"; "selectedStyle": "selectedStyle"; }, { "click": "click"; }, never, never, false>;
|
|
18
20
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FwDialogActionsComponent {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
get style(): SafeStyle;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogActionsComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogActionsComponent, "fw-dialog-actions", never, {}, {}, never, ["*"], false>;
|
|
9
|
+
}
|
|
@@ -5,6 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class FwDialogConfirmComponent {
|
|
6
6
|
dialogRef: DialogRef;
|
|
7
7
|
title?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
iconColor?: 'primary' | 'secondary' | 'red' | 'orange' | 'green' | 'slate';
|
|
8
10
|
confirmColor?: 'primary' | 'secondary' | 'danger' | 'slate' | 'warning' | 'success';
|
|
9
11
|
confirmButtonText?: string;
|
|
10
12
|
confirmButtonIcon?: string;
|
|
@@ -18,5 +20,5 @@ export declare class FwDialogConfirmComponent {
|
|
|
18
20
|
constructor(dialogRef: DialogRef);
|
|
19
21
|
handleCloseButton(): void;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogConfirmComponent, [{ optional: true; }]>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogConfirmComponent, "fw-dialog-confirm", never, { "title": "title"; "confirmColor": "confirmColor"; "confirmButtonText": "confirmButtonText"; "confirmButtonIcon": "confirmButtonIcon"; "cancelButtonText": "cancelButtonText"; "contentIcon": "contentIcon"; "contentTitle": "contentTitle"; "contentText": "contentText"; }, { "close": "close"; "confirm": "confirm"; }, never, never, false>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogConfirmComponent, "fw-dialog-confirm", never, { "title": "title"; "icon": "icon"; "iconColor": "iconColor"; "confirmColor": "confirmColor"; "confirmButtonText": "confirmButtonText"; "confirmButtonIcon": "confirmButtonIcon"; "cancelButtonText": "cancelButtonText"; "contentIcon": "contentIcon"; "contentTitle": "contentTitle"; "contentText": "contentText"; }, { "close": "close"; "confirm": "confirm"; }, never, never, false>;
|
|
22
24
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FwDialogContentComponent {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
padded?: boolean;
|
|
6
|
+
get style(): SafeStyle;
|
|
7
|
+
constructor(sanitizer: DomSanitizer);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogContentComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogContentComponent, "fw-dialog-content", never, { "padded": "padded"; }, {}, never, ["*"], false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FwDialogHeaderComponent {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
get style(): SafeStyle;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogHeaderComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogHeaderComponent, "fw-dialog-header", never, {}, {}, never, ["*"], false>;
|
|
9
|
+
}
|
|
@@ -5,14 +5,20 @@ export declare class FwDialogSimpleComponent {
|
|
|
5
5
|
dialogRef: DialogRef;
|
|
6
6
|
width?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
7
7
|
title?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
iconColor?: 'primary' | 'secondary' | 'red' | 'orange' | 'green' | 'slate';
|
|
8
10
|
showClose?: boolean;
|
|
9
11
|
actionButtonText?: string;
|
|
12
|
+
actionButtonIcon?: string;
|
|
10
13
|
cancelButtonText?: string;
|
|
14
|
+
alternateButtonText?: string;
|
|
15
|
+
alternateButtonIcon?: string;
|
|
11
16
|
contentText?: string;
|
|
12
17
|
close: EventEmitter<void>;
|
|
13
18
|
action: EventEmitter<void>;
|
|
19
|
+
alternateAction: EventEmitter<void>;
|
|
14
20
|
constructor(dialogRef: DialogRef);
|
|
15
21
|
handleCloseButton(): void;
|
|
16
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogSimpleComponent, [{ optional: true; }]>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogSimpleComponent, "fw-dialog-simple", never, { "width": "width"; "title": "title"; "showClose": "showClose"; "actionButtonText": "actionButtonText"; "cancelButtonText": "cancelButtonText"; "contentText": "contentText"; }, { "close": "close"; "action": "action"; }, never, ["fw-dialog-content"], false>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogSimpleComponent, "fw-dialog-simple", never, { "width": "width"; "title": "title"; "icon": "icon"; "iconColor": "iconColor"; "showClose": "showClose"; "actionButtonText": "actionButtonText"; "actionButtonIcon": "actionButtonIcon"; "cancelButtonText": "cancelButtonText"; "alternateButtonText": "alternateButtonText"; "alternateButtonIcon": "alternateButtonIcon"; "contentText": "contentText"; }, { "close": "close"; "action": "action"; "alternateAction": "alternateAction"; }, never, ["fw-dialog-content"], false>;
|
|
18
24
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare enum DialogWidth {
|
|
6
5
|
ExtraSmall = "extra-small",
|
|
@@ -13,29 +12,13 @@ export declare class FwDialogComponent {
|
|
|
13
12
|
protected dialogRef: DialogRef;
|
|
14
13
|
width?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
15
14
|
title?: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
iconColor?: 'primary' | 'secondary' | 'red' | 'orange' | 'green' | 'slate';
|
|
16
17
|
showClose?: boolean;
|
|
17
18
|
close: EventEmitter<void>;
|
|
18
19
|
constructor(dialogRef: DialogRef);
|
|
19
20
|
get classes(): string;
|
|
20
21
|
protected handleCloseButton(): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogComponent, [{ optional: true; }]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogComponent, "fw-dialog", never, { "width": "width"; "title": "title"; "showClose": "showClose"; }, { "close": "close"; }, never, ["fw-dialog-header", "fw-dialog-content", "fw-dialog-actions"], false>;
|
|
23
|
-
}
|
|
24
|
-
export declare class FwDialogHeaderComponent {
|
|
25
|
-
private sanitizer;
|
|
26
|
-
get style(): SafeStyle;
|
|
27
|
-
constructor(sanitizer: DomSanitizer);
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogHeaderComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogHeaderComponent, "fw-dialog-header", never, {}, {}, never, ["*"], false>;
|
|
30
|
-
}
|
|
31
|
-
export declare class FwDialogContentComponent {
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogContentComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogContentComponent, "fw-dialog-content", never, {}, {}, never, ["*"], false>;
|
|
34
|
-
}
|
|
35
|
-
export declare class FwDialogActionsComponent {
|
|
36
|
-
private sanitizer;
|
|
37
|
-
get style(): SafeStyle;
|
|
38
|
-
constructor(sanitizer: DomSanitizer);
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogActionsComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogActionsComponent, "fw-dialog-actions", never, {}, {}, never, ["*"], false>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwDialogComponent, "fw-dialog", never, { "width": "width"; "title": "title"; "icon": "icon"; "iconColor": "iconColor"; "showClose": "showClose"; }, { "close": "close"; }, never, ["fw-dialog-header", "fw-dialog-content", "fw-dialog-actions"], false>;
|
|
41
24
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dialog.component";
|
|
3
|
-
import * as i2 from "./dialog
|
|
4
|
-
import * as i3 from "./dialog-
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "../
|
|
2
|
+
import * as i1 from "./dialog-actions.component";
|
|
3
|
+
import * as i2 from "./dialog.component";
|
|
4
|
+
import * as i3 from "./dialog-confirm.component";
|
|
5
|
+
import * as i4 from "./dialog-content.component";
|
|
6
|
+
import * as i5 from "./dialog-header.component";
|
|
7
|
+
import * as i6 from "./dialog-simple.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/cdk/dialog";
|
|
10
|
+
import * as i9 from "../button/button.module";
|
|
11
|
+
import * as i10 from "../icon-button/icon-button.module";
|
|
12
|
+
import * as i11 from "../icon/icon.module";
|
|
13
|
+
import * as i12 from "../shared/pipes/pipes.module";
|
|
11
14
|
export declare class FwDialogsModule {
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwDialogsModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FwDialogsModule, [typeof i1.FwDialogActionsComponent, typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FwDialogsModule, [typeof i1.FwDialogActionsComponent, typeof i2.FwDialogComponent, typeof i3.FwDialogConfirmComponent, typeof i4.FwDialogContentComponent, typeof i5.FwDialogHeaderComponent, typeof i6.FwDialogSimpleComponent], [typeof i7.CommonModule, typeof i8.DialogModule, typeof i9.FwButtonModule, typeof i10.FwIconButtonModule, typeof i11.FwIconModule, typeof i12.PipesModule], [typeof i1.FwDialogActionsComponent, typeof i2.FwDialogComponent, typeof i3.FwDialogConfirmComponent, typeof i4.FwDialogContentComponent, typeof i5.FwDialogHeaderComponent, typeof i6.FwDialogSimpleComponent]>;
|
|
14
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<FwDialogsModule>;
|
|
15
18
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class FwLayoutGroupComponent {
|
|
3
3
|
stackable: boolean;
|
|
4
|
+
padded: boolean;
|
|
5
|
+
justify: 'space-between' | 'space-around' | 'space-evenly' | 'flex-end' | 'flex-start';
|
|
4
6
|
get classes(): string;
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwLayoutGroupComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutGroupComponent, "fw-layout-group", never, { "stackable": "stackable"; }, {}, never, ["*"], false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutGroupComponent, "fw-layout-group", never, { "stackable": "stackable"; "padded": "padded"; "justify": "justify"; }, {}, never, ["*"], false>;
|
|
7
9
|
}
|
|
@@ -2,11 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./context/context.component";
|
|
3
3
|
import * as i2 from "./toolbar/toolbar.component";
|
|
4
4
|
import * as i3 from "./layout-group.component";
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
5
|
+
import * as i4 from "./panel/panel.component";
|
|
6
|
+
import * as i5 from "./sidebar/sidebar.component";
|
|
7
|
+
import * as i6 from "./grid/grid.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "../icon/icon.module";
|
|
8
10
|
export declare class FwLayoutsModule {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwLayoutsModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FwLayoutsModule, [typeof i1.FwLayoutContextComponent, typeof i2.FwLayoutToolbarComponent, typeof i3.FwLayoutGroupComponent, typeof i4.FwGridComponent, typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FwLayoutsModule, [typeof i1.FwLayoutContextComponent, typeof i2.FwLayoutToolbarComponent, typeof i3.FwLayoutGroupComponent, typeof i4.FwLayoutPanelComponent, typeof i5.FwLayoutSidebarComponent, typeof i6.FwGridComponent, typeof i6.FwGridItemComponent], [typeof i7.CommonModule, typeof i8.FwIconModule], [typeof i1.FwLayoutContextComponent, typeof i2.FwLayoutToolbarComponent, typeof i3.FwLayoutGroupComponent, typeof i4.FwLayoutPanelComponent, typeof i5.FwLayoutSidebarComponent, typeof i6.FwGridComponent, typeof i6.FwGridItemComponent]>;
|
|
11
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<FwLayoutsModule>;
|
|
12
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FwLayoutPanelComponent {
|
|
3
|
+
height?: string;
|
|
4
|
+
fitted?: boolean;
|
|
5
|
+
border?: 'all' | 'left' | 'right' | 'none';
|
|
6
|
+
rounded?: boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwLayoutPanelComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutPanelComponent, "fw-layout-panel", never, { "height": "height"; "fitted": "fitted"; "border": "border"; "rounded": "rounded"; }, {}, never, ["header", "*", "footer"], false>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FwLayoutSidebarComponent {
|
|
3
|
+
outlined: boolean;
|
|
4
|
+
rounded: boolean;
|
|
5
|
+
width?: 'third' | 'half' | 'fourth' | 'closed';
|
|
6
|
+
direction?: 'row' | 'row-reverse';
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwLayoutSidebarComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutSidebarComponent, "fw-layout-sidebar", never, { "outlined": "outlined"; "rounded": "rounded"; "width": "width"; "direction": "direction"; }, {}, never, ["*", "aside"], false>;
|
|
9
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class FwLayoutToolbarComponent {
|
|
3
|
+
dense?: boolean;
|
|
4
|
+
get classes(): string;
|
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwLayoutToolbarComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutToolbarComponent, "fw-layout-toolbar", never, {}, {}, never, ["*"], false>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwLayoutToolbarComponent, "fw-layout-toolbar", never, { "dense": "dense"; }, {}, never, ["*"], false>;
|
|
5
7
|
}
|
|
@@ -10,8 +10,11 @@ export declare class FwMenuContainerComponent implements AfterContentInit {
|
|
|
10
10
|
shadow?: 'none' | 'small' | 'medium' | 'large' | 'extra-large' | 'inner';
|
|
11
11
|
showFilter?: boolean;
|
|
12
12
|
filterText?: string;
|
|
13
|
-
collapsed?: boolean;
|
|
14
13
|
offset?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated please use fw-navbar instead
|
|
16
|
+
*/
|
|
17
|
+
collapsed?: boolean;
|
|
15
18
|
menu: FwMenuComponent;
|
|
16
19
|
get classes(): string;
|
|
17
20
|
get style(): SafeStyle;
|
|
@@ -19,5 +22,5 @@ export declare class FwMenuContainerComponent implements AfterContentInit {
|
|
|
19
22
|
ngAfterContentInit(): void;
|
|
20
23
|
filterTextChange(event: any): void;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwMenuContainerComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuContainerComponent, "fw-menu-container", never, { "width": "width"; "maxHeight": "maxHeight"; "border": "border"; "shadow": "shadow"; "showFilter": "showFilter"; "filterText": "filterText"; "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuContainerComponent, "fw-menu-container", never, { "width": "width"; "maxHeight": "maxHeight"; "border": "border"; "shadow": "shadow"; "showFilter": "showFilter"; "filterText": "filterText"; "offset": "offset"; "collapsed": "collapsed"; }, {}, ["menu"], ["*"], false>;
|
|
23
26
|
}
|
|
@@ -3,11 +3,11 @@ import { FwMenuSubItemComponent } from '../menu-sub-item/menu-sub-item.component
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FwMenuItemComponent implements OnChanges, OnDestroy, AfterContentInit {
|
|
5
5
|
value?: string;
|
|
6
|
-
variant?: 'default' | 'modern' | 'button';
|
|
7
6
|
size?: 'default' | 'compact';
|
|
8
7
|
title: string;
|
|
9
8
|
description?: string;
|
|
10
9
|
icon?: string;
|
|
10
|
+
iconColor?: 'primary' | 'secondary' | 'red' | 'orange' | 'green' | 'slate' | 'typography';
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
showCheckbox?: boolean;
|
|
13
13
|
multiSelect?: boolean;
|
|
@@ -22,6 +22,10 @@ export declare class FwMenuItemComponent implements OnChanges, OnDestroy, AfterC
|
|
|
22
22
|
selected?: boolean;
|
|
23
23
|
subItems: QueryList<FwMenuSubItemComponent>;
|
|
24
24
|
private subscriptions;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated please use fw-navbar-item instead
|
|
27
|
+
*/
|
|
28
|
+
variant?: 'default' | 'modern' | 'button';
|
|
25
29
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
30
|
ngOnDestroy(): void;
|
|
27
31
|
ngAfterContentInit(): void;
|
|
@@ -29,5 +33,5 @@ export declare class FwMenuItemComponent implements OnChanges, OnDestroy, AfterC
|
|
|
29
33
|
toggleSubItemsView(): void;
|
|
30
34
|
handleClick(evt?: Event): void;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwMenuItemComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuItemComponent, "fw-menu-item", never, { "value": "value"; "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuItemComponent, "fw-menu-item", never, { "value": "value"; "size": "size"; "title": "title"; "description": "description"; "icon": "icon"; "iconColor": "iconColor"; "disabled": "disabled"; "showCheckbox": "showCheckbox"; "multiSelect": "multiSelect"; "hidden": "hidden"; "showTooltip": "showTooltip"; "collapsed": "collapsed"; "href": "href"; "target": "target"; "subItemsOpen": "subItemsOpen"; "focused": "focused"; "selected": "selected"; "variant": "variant"; }, { "click": "click"; }, ["subItems"], ["fw-avatar", "p", "fw-badge", "fw-icon", "fw-icon-button", "fw-menu-sub-item"], false>;
|
|
33
37
|
}
|
|
@@ -2,7 +2,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FwMenuSubItemComponent {
|
|
4
4
|
value?: string;
|
|
5
|
-
variant?: 'default' | 'modern' | 'button';
|
|
6
5
|
size?: 'default' | 'compact';
|
|
7
6
|
title: string;
|
|
8
7
|
description?: string;
|
|
@@ -15,7 +14,11 @@ export declare class FwMenuSubItemComponent {
|
|
|
15
14
|
click: EventEmitter<string>;
|
|
16
15
|
focused?: boolean;
|
|
17
16
|
selected?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated please use fw-navbar-sub-item instead
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'default' | 'modern' | 'button';
|
|
18
21
|
handleClick(evt?: Event): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwMenuSubItemComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuSubItemComponent, "fw-menu-sub-item", never, { "value": "value"; "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuSubItemComponent, "fw-menu-sub-item", never, { "value": "value"; "size": "size"; "title": "title"; "description": "description"; "icon": "icon"; "disabled": "disabled"; "hidden": "hidden"; "href": "href"; "target": "target"; "collapsed": "collapsed"; "focused": "focused"; "selected": "selected"; "variant": "variant"; }, { "click": "click"; }, never, ["p", "fw-badge", "fw-icon", "fw-icon-button"], false>;
|
|
21
24
|
}
|
|
@@ -5,17 +5,29 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class FwMenuComponent implements ControlValueAccessor, OnChanges, OnDestroy, AfterContentInit {
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
size?: 'default' | 'compact';
|
|
8
|
-
variant?: 'default' | 'modern' | 'button';
|
|
9
|
-
collapsed?: boolean;
|
|
10
8
|
multiSelect?: boolean;
|
|
11
9
|
useCheckbox?: boolean;
|
|
12
|
-
openWidth?: string;
|
|
13
|
-
collapsedWidth?: string;
|
|
14
10
|
value?: string | string[];
|
|
15
11
|
change: EventEmitter<string | string[]>;
|
|
16
12
|
filteredItemsChange: EventEmitter<FwMenuItemComponent[]>;
|
|
17
13
|
menuItems: QueryList<FwMenuItemComponent>;
|
|
18
14
|
private _filterText;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated please use fw-navbar instead
|
|
17
|
+
*/
|
|
18
|
+
variant?: 'default' | 'modern' | 'button';
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated please use fw-navbar instead
|
|
21
|
+
*/
|
|
22
|
+
collapsed?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated please use fw-navbar instead
|
|
25
|
+
*/
|
|
26
|
+
collapsedWidth?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated please use fw-navbar instead
|
|
29
|
+
*/
|
|
30
|
+
openWidth?: string;
|
|
19
31
|
onChange: (value: string | string[]) => void;
|
|
20
32
|
onTouched: () => void;
|
|
21
33
|
private subscriptions;
|
|
@@ -30,5 +42,5 @@ export declare class FwMenuComponent implements ControlValueAccessor, OnChanges,
|
|
|
30
42
|
handleSelect(value: string): void;
|
|
31
43
|
updateLayout(): void;
|
|
32
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwMenuComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuComponent, "fw-menu", never, { "disabled": "disabled"; "size": "size"; "
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwMenuComponent, "fw-menu", never, { "disabled": "disabled"; "size": "size"; "multiSelect": "multiSelect"; "useCheckbox": "useCheckbox"; "value": "value"; "variant": "variant"; "collapsed": "collapsed"; "collapsedWidth": "collapsedWidth"; "openWidth": "openWidth"; }, { "change": "change"; "filteredItemsChange": "filteredItemsChange"; }, ["menuItems"], ["*"], false>;
|
|
34
46
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
2
|
-
import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { FwMenuComponent } from '../../menu/menu.component';
|
|
5
5
|
import { FwMenuItemComponent } from '../../menu/menu-item/menu-item.component';
|
|
@@ -32,6 +32,7 @@ export declare class FwMultiSelectMenuComponent implements ControlValueAccessor,
|
|
|
32
32
|
private subscriptions;
|
|
33
33
|
textInput: ElementRef<HTMLInputElement>;
|
|
34
34
|
textInitialInput: ElementRef<HTMLInputElement>;
|
|
35
|
+
change: EventEmitter<any>;
|
|
35
36
|
focused: number;
|
|
36
37
|
private touched;
|
|
37
38
|
private _isOpen;
|
|
@@ -51,12 +52,12 @@ export declare class FwMultiSelectMenuComponent implements ControlValueAccessor,
|
|
|
51
52
|
ngAfterContentInit(): void;
|
|
52
53
|
handleTouched(): void;
|
|
53
54
|
handleClose(chip: object): void;
|
|
54
|
-
|
|
55
|
+
handleChange(e: string[]): void;
|
|
55
56
|
updateFilteredItems(): void;
|
|
56
57
|
updateValue(value: any[]): void;
|
|
57
58
|
moveFocused(direction: string): void;
|
|
58
59
|
handleKeyDown(event: KeyboardEvent): void;
|
|
59
60
|
handleKeyUp(event: KeyboardEvent): void;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwMultiSelectMenuComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwMultiSelectMenuComponent, "fw-multi-select", never, { "options": "options"; "valueProperty": "valueProperty"; "titleProperty": "titleProperty"; "iconProperty": "iconProperty"; "disabled": "disabled"; "useCheckbox": "useCheckbox"; "closeOnSelect": "closeOnSelect"; "filterItemsOnSelect": "filterItemsOnSelect"; "maxSelectedShown": "maxSelectedShown"; "width": "width"; "minHeight": "minHeight"; "maxHeight": "maxHeight"; "optionsWidth": "optionsWidth"; "maxOptionsHeight": "maxOptionsHeight"; "placeholder": "placeholder"; "value": "value"; }, {}, ["menuItems"], ["[fw-menu-item, fw-menu-separator]"], false>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwMultiSelectMenuComponent, "fw-multi-select", never, { "options": "options"; "valueProperty": "valueProperty"; "titleProperty": "titleProperty"; "iconProperty": "iconProperty"; "disabled": "disabled"; "useCheckbox": "useCheckbox"; "closeOnSelect": "closeOnSelect"; "filterItemsOnSelect": "filterItemsOnSelect"; "maxSelectedShown": "maxSelectedShown"; "width": "width"; "minHeight": "minHeight"; "maxHeight": "maxHeight"; "optionsWidth": "optionsWidth"; "maxOptionsHeight": "maxOptionsHeight"; "placeholder": "placeholder"; "value": "value"; }, { "change": "change"; }, ["menuItems"], ["[fw-menu-item, fw-menu-separator]"], false>;
|
|
62
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
2
|
-
import { AfterContentInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { FwMenuComponent } from '../menu/menu.component';
|
|
5
5
|
import { FwMenuItemComponent } from '../menu/menu-item/menu-item.component';
|
|
@@ -21,6 +21,7 @@ export declare class FwSelectMenuComponent implements ControlValueAccessor, Afte
|
|
|
21
21
|
trigger: CdkMenuTrigger;
|
|
22
22
|
menu: FwMenuComponent;
|
|
23
23
|
menuItems: QueryList<FwMenuItemComponent>;
|
|
24
|
+
change: EventEmitter<any>;
|
|
24
25
|
selectValue: string;
|
|
25
26
|
selectTitle: string;
|
|
26
27
|
selectIcon: string;
|
|
@@ -69,5 +70,5 @@ export declare class FwSelectMenuComponent implements ControlValueAccessor, Afte
|
|
|
69
70
|
handleKeyDown(event: KeyboardEvent): void;
|
|
70
71
|
updateValue(value: any): void;
|
|
71
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwSelectMenuComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwSelectMenuComponent, "fw-select", never, { "options": "options"; "valueProperty": "valueProperty"; "titleProperty": "titleProperty"; "iconProperty": "iconProperty"; "descriptionProperty": "descriptionProperty"; "showFilter": "showFilter"; "disabled": "disabled"; "width": "width"; "optionsWidth": "optionsWidth"; "maxOptionsHeight": "maxOptionsHeight"; "placeholder": "placeholder"; "value": "value"; }, {}, ["menuItems"], ["[fw-menu-item, fw-menu-separator]"], false>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwSelectMenuComponent, "fw-select", never, { "options": "options"; "valueProperty": "valueProperty"; "titleProperty": "titleProperty"; "iconProperty": "iconProperty"; "descriptionProperty": "descriptionProperty"; "showFilter": "showFilter"; "disabled": "disabled"; "width": "width"; "optionsWidth": "optionsWidth"; "maxOptionsHeight": "maxOptionsHeight"; "placeholder": "placeholder"; "value": "value"; }, { "change": "change"; }, ["menuItems"], ["[fw-menu-item, fw-menu-separator]"], false>;
|
|
73
74
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class FwTextInputComponent implements ControlValueAccessor {
|
|
4
5
|
disabled?: boolean;
|
|
6
|
+
useActionableIcons?: boolean;
|
|
5
7
|
leftIcon?: string;
|
|
8
|
+
leftIconAction?: EventEmitter<void>;
|
|
6
9
|
rightIcon?: string;
|
|
10
|
+
rightIconAction?: EventEmitter<void>;
|
|
11
|
+
prefix?: string;
|
|
7
12
|
context?: string;
|
|
8
13
|
helperText?: string;
|
|
9
14
|
errorText?: string;
|
|
@@ -26,6 +31,8 @@ export declare class FwTextInputComponent implements ControlValueAccessor {
|
|
|
26
31
|
setDisabledState(isDisabled: boolean): void;
|
|
27
32
|
changeHandler(event: KeyboardEvent): void;
|
|
28
33
|
blurHandler(): void;
|
|
34
|
+
onLeftIconClick(): void;
|
|
35
|
+
onRightIconClick(): void;
|
|
29
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwTextInputComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwTextInputComponent, "fw-text-input", never, { "disabled": "disabled"; "leftIcon": "leftIcon"; "rightIcon": "rightIcon"; "context": "context"; "helperText": "helperText"; "errorText": "errorText"; "placeholder": "placeholder"; "readOnly": "readOnly"; "size": "size"; "type": "type"; "maxLength": "maxLength"; "autofocus": "autofocus"; "autocomplete": "autocomplete"; "error": "error"; "value": "value"; }, {}, ["textInput"], ["input", "*"], false>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwTextInputComponent, "fw-text-input", never, { "disabled": "disabled"; "useActionableIcons": "useActionableIcons"; "leftIcon": "leftIcon"; "rightIcon": "rightIcon"; "prefix": "prefix"; "context": "context"; "helperText": "helperText"; "errorText": "errorText"; "placeholder": "placeholder"; "readOnly": "readOnly"; "size": "size"; "type": "type"; "maxLength": "maxLength"; "autofocus": "autofocus"; "autocomplete": "autocomplete"; "error": "error"; "value": "value"; }, { "leftIconAction": "leftIconAction"; "rightIconAction": "rightIconAction"; }, ["textInput"], ["input", "*"], false>;
|
|
31
38
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
2
|
+
import { min } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FwTextAreaInputComponent implements ControlValueAccessor {
|
|
5
|
+
minRows: number;
|
|
6
|
+
maxRows: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
helperText?: string;
|
|
9
|
+
errorText?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
autofocus?: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
value: string;
|
|
16
|
+
externalControl: FormControl;
|
|
17
|
+
onTouch: () => void;
|
|
18
|
+
onChange: (value: string) => void;
|
|
19
|
+
writeValue(obj: string): void;
|
|
20
|
+
registerOnChange(fn: any): void;
|
|
21
|
+
registerOnTouched(fn: any): void;
|
|
22
|
+
setDisabledState(isDisabled: boolean): void;
|
|
23
|
+
changeHandler(event: KeyboardEvent): void;
|
|
24
|
+
blurHandler(): void;
|
|
25
|
+
protected readonly min: typeof min;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwTextAreaInputComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwTextAreaInputComponent, "fw-textarea-input", never, { "minRows": "minRows"; "maxRows": "maxRows"; "disabled": "disabled"; "helperText": "helperText"; "errorText": "errorText"; "placeholder": "placeholder"; "readOnly": "readOnly"; "autofocus": "autofocus"; "width": "width"; "error": "error"; "value": "value"; }, {}, never, never, false>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./textarea-input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/cdk/text-field";
|
|
6
|
+
import * as i5 from "../icon/icon.module";
|
|
7
|
+
export declare class FwTextAreaInputModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FwTextAreaInputModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FwTextAreaInputModule, [typeof i1.FwTextAreaInputComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.TextFieldModule, typeof i5.FwIconModule], [typeof i1.FwTextAreaInputComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FwTextAreaInputModule>;
|
|
11
|
+
}
|
|
@@ -18,10 +18,10 @@ export class FwAppIconComponent {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
FwAppIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwAppIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
FwAppIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwAppIconComponent, selector: "fw-app-icon", inputs: { title: "title", icon: "icon", imageUrl: "imageUrl", color: "color", fontColor: "fontColor", size: "size", variant: "variant", badge: "badge", tabindex: "tabindex", locked: "locked", animated: "animated" }, host: { properties: { "tabindex": "this.tabindex", "class.locked": "this.locked", "class.animated": "this.animated", "role": "this.role", "class": "this.cssClass" } }, ngImport: i0, template: "<div class=\"icon-highlight\"></div>\n<div class=\"icon-wrapper\">\n <div class=\"app-badge\" *ngIf=\"badge\"><span>{{ badge }}</span></div>\n <div class=\"app-locked\" *ngIf=\"locked\">\n <fw-icon>lock</fw-icon>\n </div>\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"App Icon\">\n <fw-icon *ngIf=\"icon\" [ngClass]=\"fontColor\">{{ icon }}</fw-icon>\n</div>\n<p class=\"vision-p3\" *ngIf=\"title\">{{ title }}</p>\n", styles: [".vision-shadow-extra-large{box-shadow:0 8px 25px #0000001a}.vision-shadow-large{box-shadow:0 5px 15px #0000001a}.vision-shadow-medium,:host .app-locked{box-shadow:0 2px 5px #0000001a}.vision-shadow-small,:host .app-badge{box-shadow:0 1px 2px #0000000d}.vision-shadow-inner{box-shadow:0 2px 4px #00000014 inset}
|
|
21
|
+
FwAppIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwAppIconComponent, selector: "fw-app-icon", inputs: { title: "title", icon: "icon", imageUrl: "imageUrl", color: "color", fontColor: "fontColor", size: "size", variant: "variant", badge: "badge", tabindex: "tabindex", locked: "locked", animated: "animated" }, host: { properties: { "tabindex": "this.tabindex", "class.locked": "this.locked", "class.animated": "this.animated", "role": "this.role", "class": "this.cssClass" } }, ngImport: i0, template: "<div class=\"icon-highlight\"></div>\n<div class=\"icon-wrapper\">\n <div class=\"app-badge\" *ngIf=\"badge\"><span>{{ badge }}</span></div>\n <div class=\"app-locked\" *ngIf=\"locked\">\n <fw-icon>lock</fw-icon>\n </div>\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"App Icon\">\n <fw-icon *ngIf=\"icon\" [ngClass]=\"fontColor\">{{ icon }}</fw-icon>\n</div>\n<p class=\"vision-p3\" *ngIf=\"title\">{{ title }}</p>\n", styles: [".vision-shadow-extra-large{box-shadow:0 8px 25px #0000001a}.vision-shadow-large{box-shadow:0 5px 15px #0000001a}.vision-shadow-medium,:host .app-locked{box-shadow:0 2px 5px #0000001a}.vision-shadow-small,:host .app-badge{box-shadow:0 1px 2px #0000000d}.vision-shadow-inner{box-shadow:0 2px 4px #00000014 inset}:host{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;outline:none}:host .icon-highlight{box-sizing:content-box;display:inline-flex;border:4px solid transparent;padding:2px;position:absolute;top:0}:host .icon-wrapper{display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;position:relative;box-sizing:border-box;margin:6px}:host p{margin:0;line-height:16.8px;-webkit-user-select:none;user-select:none;display:inline-block;color:var(--typography-muted);text-align:center}:host .app-badge{min-width:18px;height:18px;border-radius:64px;background:var(--red-base);font-family:Inter,sans-serif;font-size:10px;font-weight:500;line-height:180%;letter-spacing:0;text-align:center;color:var(--typography-contrast);display:inline-flex;align-items:flex-start;justify-content:center;position:absolute;top:-8px;right:-8px;padding:0 6px;box-sizing:border-box;overflow:hidden;white-space:nowrap}:host .app-locked{width:21px;height:21px;border-radius:64px;background:var(--slate-base);font-size:15px;color:var(--typography-contrast);display:inline-flex;align-items:center;justify-content:center;position:absolute;top:-6px;right:-6px;overflow:hidden;white-space:nowrap}:host.primary .icon-wrapper{background-color:var(--primary-base)}:host.primary .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.primary .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.primary .icon-wrapper>fw-icon.transparent{color:transparent}:host.dark .icon-wrapper{background-color:var(--primary-dark)}:host.dark .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.dark .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.gradient .icon-wrapper{background:linear-gradient(23.3deg,#093af6 -22.41%,#1b68fa 41.03%,#b080fc 94.31%)}:host.gradient .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.gradient .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.light .icon-wrapper{background-color:var(--page-light);outline:1px solid var(--separations-base)}:host.light .icon-wrapper>fw-icon{background:linear-gradient(23.3deg,#093af6 -22.41%,#1b68fa 41.03%,#b080fc 94.31%);background-clip:text;-webkit-text-fill-color:transparent}:host.transparent .icon-wrapper{background-color:transparent;outline:1px solid transparent}:host.small .icon-highlight{border-radius:12px;width:24px;height:24px}:host.small .icon-wrapper{display:inline-flex;width:24px;height:24px;border-radius:6px;align-items:center;justify-content:center}:host.small .icon-wrapper>fw-icon{font-size:16px}:host.small .icon-wrapper img{height:24px;width:24px}:host.small .app-badge{min-width:8px;padding:0;width:8px;height:8px;border-radius:8px;text-indent:-9999px;top:-3px;right:-3px}:host.medium .icon-highlight{border-radius:14px;width:32px;height:32px}:host.medium .icon-wrapper{display:inline-flex;width:32px;height:32px;border-radius:8px;align-items:center;justify-content:center}:host.medium .icon-wrapper>fw-icon{font-size:20px}:host.medium .icon-wrapper img{height:32px;width:32px}:host.medium .app-badge{min-width:8px;padding:0;width:8px;height:8px;border-radius:8px;text-indent:-9999px;top:-3px;right:-3px}:host.large .icon-highlight{border-radius:18px;width:48px;height:48px}:host.large .icon-wrapper{display:inline-flex;width:48px;height:48px;border-radius:12px;align-items:center;justify-content:center}:host.large .icon-wrapper>fw-icon{font-size:32px}:host.large .icon-wrapper img{height:48px;width:48px}:host.extra-large .icon-highlight{border-radius:22px;width:64px;height:64px}:host.extra-large .icon-wrapper{display:inline-flex;width:64px;height:64px;border-radius:16px;align-items:center;justify-content:center}:host.extra-large .icon-wrapper>fw-icon{font-size:48px}:host.extra-large .icon-wrapper img{height:64px;width:64px}:host.extra-large p{max-width:64px}:host.interactive .icon-highlight{border:4px solid transparent}:host.hover .icon-highlight,:host:hover .icon-highlight{border:4px solid var(--primary-border)}@keyframes rubber-band{0%{transform:scale(.95)}20%{transform:scale(1.05)}32%{transform:scale(.95)}48%{transform:scale(1)}}:host.animated.hover .icon-highlight,:host.animated:hover .icon-highlight{animation:rubber-band .5s linear forwards;border:4px solid var(--primary-border)}:host.focused .icon-highlight,:host:focus .icon-highlight,:host.animated:focus .icon-highlight{border:4px solid var(--primary-base)}:host.focused p,:host:focus p,:host.animated:focus p{color:var(--typography-base)}:host.static .icon-highlight,:host.static:hover .icon-highlight,:host.static.animated:hover .icon-highlight{border:4px solid transparent}:host.locked{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FwIconComponent, selector: "fw-icon", inputs: ["size", "color"] }] });
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwAppIconComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ selector: 'fw-app-icon', template: "<div class=\"icon-highlight\"></div>\n<div class=\"icon-wrapper\">\n <div class=\"app-badge\" *ngIf=\"badge\"><span>{{ badge }}</span></div>\n <div class=\"app-locked\" *ngIf=\"locked\">\n <fw-icon>lock</fw-icon>\n </div>\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"App Icon\">\n <fw-icon *ngIf=\"icon\" [ngClass]=\"fontColor\">{{ icon }}</fw-icon>\n</div>\n<p class=\"vision-p3\" *ngIf=\"title\">{{ title }}</p>\n", styles: [".vision-shadow-extra-large{box-shadow:0 8px 25px #0000001a}.vision-shadow-large{box-shadow:0 5px 15px #0000001a}.vision-shadow-medium,:host .app-locked{box-shadow:0 2px 5px #0000001a}.vision-shadow-small,:host .app-badge{box-shadow:0 1px 2px #0000000d}.vision-shadow-inner{box-shadow:0 2px 4px #00000014 inset}
|
|
24
|
+
args: [{ selector: 'fw-app-icon', template: "<div class=\"icon-highlight\"></div>\n<div class=\"icon-wrapper\">\n <div class=\"app-badge\" *ngIf=\"badge\"><span>{{ badge }}</span></div>\n <div class=\"app-locked\" *ngIf=\"locked\">\n <fw-icon>lock</fw-icon>\n </div>\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"App Icon\">\n <fw-icon *ngIf=\"icon\" [ngClass]=\"fontColor\">{{ icon }}</fw-icon>\n</div>\n<p class=\"vision-p3\" *ngIf=\"title\">{{ title }}</p>\n", styles: [".vision-shadow-extra-large{box-shadow:0 8px 25px #0000001a}.vision-shadow-large{box-shadow:0 5px 15px #0000001a}.vision-shadow-medium,:host .app-locked{box-shadow:0 2px 5px #0000001a}.vision-shadow-small,:host .app-badge{box-shadow:0 1px 2px #0000000d}.vision-shadow-inner{box-shadow:0 2px 4px #00000014 inset}:host{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;outline:none}:host .icon-highlight{box-sizing:content-box;display:inline-flex;border:4px solid transparent;padding:2px;position:absolute;top:0}:host .icon-wrapper{display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;position:relative;box-sizing:border-box;margin:6px}:host p{margin:0;line-height:16.8px;-webkit-user-select:none;user-select:none;display:inline-block;color:var(--typography-muted);text-align:center}:host .app-badge{min-width:18px;height:18px;border-radius:64px;background:var(--red-base);font-family:Inter,sans-serif;font-size:10px;font-weight:500;line-height:180%;letter-spacing:0;text-align:center;color:var(--typography-contrast);display:inline-flex;align-items:flex-start;justify-content:center;position:absolute;top:-8px;right:-8px;padding:0 6px;box-sizing:border-box;overflow:hidden;white-space:nowrap}:host .app-locked{width:21px;height:21px;border-radius:64px;background:var(--slate-base);font-size:15px;color:var(--typography-contrast);display:inline-flex;align-items:center;justify-content:center;position:absolute;top:-6px;right:-6px;overflow:hidden;white-space:nowrap}:host.primary .icon-wrapper{background-color:var(--primary-base)}:host.primary .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.primary .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.primary .icon-wrapper>fw-icon.transparent{color:transparent}:host.dark .icon-wrapper{background-color:var(--primary-dark)}:host.dark .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.dark .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.gradient .icon-wrapper{background:linear-gradient(23.3deg,#093af6 -22.41%,#1b68fa 41.03%,#b080fc 94.31%)}:host.gradient .icon-wrapper>fw-icon{color:var(--typography-contrast)}:host.gradient .icon-wrapper>fw-icon.base{color:var(--typography-base)}:host.light .icon-wrapper{background-color:var(--page-light);outline:1px solid var(--separations-base)}:host.light .icon-wrapper>fw-icon{background:linear-gradient(23.3deg,#093af6 -22.41%,#1b68fa 41.03%,#b080fc 94.31%);background-clip:text;-webkit-text-fill-color:transparent}:host.transparent .icon-wrapper{background-color:transparent;outline:1px solid transparent}:host.small .icon-highlight{border-radius:12px;width:24px;height:24px}:host.small .icon-wrapper{display:inline-flex;width:24px;height:24px;border-radius:6px;align-items:center;justify-content:center}:host.small .icon-wrapper>fw-icon{font-size:16px}:host.small .icon-wrapper img{height:24px;width:24px}:host.small .app-badge{min-width:8px;padding:0;width:8px;height:8px;border-radius:8px;text-indent:-9999px;top:-3px;right:-3px}:host.medium .icon-highlight{border-radius:14px;width:32px;height:32px}:host.medium .icon-wrapper{display:inline-flex;width:32px;height:32px;border-radius:8px;align-items:center;justify-content:center}:host.medium .icon-wrapper>fw-icon{font-size:20px}:host.medium .icon-wrapper img{height:32px;width:32px}:host.medium .app-badge{min-width:8px;padding:0;width:8px;height:8px;border-radius:8px;text-indent:-9999px;top:-3px;right:-3px}:host.large .icon-highlight{border-radius:18px;width:48px;height:48px}:host.large .icon-wrapper{display:inline-flex;width:48px;height:48px;border-radius:12px;align-items:center;justify-content:center}:host.large .icon-wrapper>fw-icon{font-size:32px}:host.large .icon-wrapper img{height:48px;width:48px}:host.extra-large .icon-highlight{border-radius:22px;width:64px;height:64px}:host.extra-large .icon-wrapper{display:inline-flex;width:64px;height:64px;border-radius:16px;align-items:center;justify-content:center}:host.extra-large .icon-wrapper>fw-icon{font-size:48px}:host.extra-large .icon-wrapper img{height:64px;width:64px}:host.extra-large p{max-width:64px}:host.interactive .icon-highlight{border:4px solid transparent}:host.hover .icon-highlight,:host:hover .icon-highlight{border:4px solid var(--primary-border)}@keyframes rubber-band{0%{transform:scale(.95)}20%{transform:scale(1.05)}32%{transform:scale(.95)}48%{transform:scale(1)}}:host.animated.hover .icon-highlight,:host.animated:hover .icon-highlight{animation:rubber-band .5s linear forwards;border:4px solid var(--primary-border)}:host.focused .icon-highlight,:host:focus .icon-highlight,:host.animated:focus .icon-highlight{border:4px solid var(--primary-base)}:host.focused p,:host:focus p,:host.animated:focus p{color:var(--typography-base)}:host.static .icon-highlight,:host.static:hover .icon-highlight,:host.static.animated:hover .icon-highlight{border:4px solid transparent}:host.locked{pointer-events:none}\n"] }]
|
|
25
25
|
}], propDecorators: { title: [{
|
|
26
26
|
type: Input
|
|
27
27
|
}], icon: [{
|
|
@@ -26,10 +26,10 @@ export class FwAvatarComponent {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
FwAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
FwAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwAvatarComponent, selector: "fw-avatar", inputs: { color: "color", variant: "variant", content: "content", size: "size", initial: "initial", imageUrl: "imageUrl", imageAltText: "imageAltText", icon: "icon" }, host: { properties: { "attr.class": "this.classes" } }, ngImport: i0, template: "<ng-container [ngSwitch]=\"content\">\n <div *ngSwitchCase=\"'image'\" [ngClass]=\"['avatar', 'avatar-' + color]\">\n <img\n *ngIf=\"!isImageBroken else displayInitial\"\n [src]=\"imageUrl\"\n [alt]=\"imageAltText\"\n (load)=\"loadImage()\"\n (error)=\"errorImage()\">\n </div>\n <div *ngSwitchCase=\"'icon'\" [ngClass]=\"['avatar', 'avatar-' +color]\">\n <ng-container *ngTemplateOutlet=\"displayIcon\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'initial'\" [ngClass]=\"['avatar','avatar-' + color]\">\n <ng-container *ngTemplateOutlet=\"displayInitial\"></ng-container>\n </div>\n</ng-container>\n\n<ng-template #displayInitial>\n <span class=\"initial\" *ngIf=\"initial else displayIcon\">{{ initial }}</span>\n</ng-template>\n\n<ng-template #displayIcon>\n <fw-icon>{{ icon }}</fw-icon>\n</ng-template>\n", styles: [":host{display:block}:host .avatar{display:flex;flex-direction:row;justify-content:center;align-items:center;width:inherit;height:inherit;border-radius:inherit;font-size:inherit}:host .avatar fw-icon{color:var(--typography-contrast);font-size:inherit}:host .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .avatar .initial{font-family:Inter,sans-serif;font-style:normal;font-weight:500;color:var(--typography-contrast);font-size:inherit}:host.small{width:16px;height:16px;font-size:8px}:host.small .avatar fw-icon{font-size:12px}:host.medium{width:32px;height:32px;font-size:14px}:host.medium .avatar fw-icon{font-size:18px}:host.large{width:40px;height:40px;font-size:14px}:host.large .avatar fw-icon{font-size:24px}:host.x-large{width:108px;height:108px;font-size:36px}:host.x-large .avatar fw-icon{font-size:64px}:host.rounded{border-radius:12px}:host.circular{border-radius:64px}.avatar-primary{background:var(--primary-base)}.avatar-slate{background:var(--slate-medium)}.avatar-red{background:var(--red-base)}.avatar-light-slate{background:var(--slate-light)}.avatar-secondary{background:var(--secondary-base)}.avatar-warning{background:var(--orange-base)}.avatar-success{background:var(--green-base)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.FwIconComponent, selector: "fw-icon", inputs: ["size", "color"] }] });
|
|
29
|
+
FwAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwAvatarComponent, selector: "fw-avatar", inputs: { color: "color", variant: "variant", content: "content", size: "size", initial: "initial", imageUrl: "imageUrl", imageAltText: "imageAltText", icon: "icon" }, host: { properties: { "attr.class": "this.classes" } }, ngImport: i0, template: "<ng-container [ngSwitch]=\"content\">\n <div *ngSwitchCase=\"'image'\" [ngClass]=\"['avatar', 'avatar-' + color]\">\n <img\n *ngIf=\"!isImageBroken else displayInitial\"\n [src]=\"imageUrl\"\n [alt]=\"imageAltText\"\n (load)=\"loadImage()\"\n (error)=\"errorImage()\">\n </div>\n <div *ngSwitchCase=\"'icon'\" [ngClass]=\"['avatar', 'avatar-' +color]\">\n <ng-container *ngTemplateOutlet=\"displayIcon\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'initial'\" [ngClass]=\"['avatar','avatar-' + color]\">\n <ng-container *ngTemplateOutlet=\"displayInitial\"></ng-container>\n </div>\n</ng-container>\n\n<ng-template #displayInitial>\n <span class=\"initial\" *ngIf=\"initial else displayIcon\">{{ initial }}</span>\n</ng-template>\n\n<ng-template #displayIcon>\n <fw-icon>{{ icon }}</fw-icon>\n</ng-template>\n", styles: [":host{display:block}:host .avatar{display:flex;flex-direction:row;justify-content:center;align-items:center;width:inherit;height:inherit;border-radius:inherit;font-size:inherit}:host .avatar fw-icon{color:var(--typography-contrast);font-size:inherit}:host .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .avatar .initial{font-family:Inter,sans-serif;font-style:normal;font-weight:500;color:var(--typography-contrast);font-size:inherit}:host.small{width:16px;height:16px;font-size:8px}:host.small .avatar fw-icon{font-size:12px}:host.medium{width:32px;height:32px;font-size:14px}:host.medium .avatar fw-icon{font-size:18px}:host.large{width:40px;height:40px;font-size:14px}:host.large .avatar fw-icon{font-size:24px}:host.x-large{width:108px;height:108px;font-size:36px}:host.x-large .avatar fw-icon{font-size:64px}:host.rounded.small{border-radius:4px}:host.rounded.medium{border-radius:8px}:host.rounded.large{border-radius:12px}:host.rounded.x-large{border-radius:16px}:host.circular{border-radius:64px}.avatar-primary{background:var(--primary-base)}.avatar-slate{background:var(--slate-medium)}.avatar-red{background:var(--red-base)}.avatar-light-slate{background:var(--slate-light)}.avatar-secondary{background:var(--secondary-base)}.avatar-warning{background:var(--orange-base)}.avatar-success{background:var(--green-base)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2.FwIconComponent, selector: "fw-icon", inputs: ["size", "color"] }] });
|
|
30
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwAvatarComponent, decorators: [{
|
|
31
31
|
type: Component,
|
|
32
|
-
args: [{ selector: 'fw-avatar', template: "<ng-container [ngSwitch]=\"content\">\n <div *ngSwitchCase=\"'image'\" [ngClass]=\"['avatar', 'avatar-' + color]\">\n <img\n *ngIf=\"!isImageBroken else displayInitial\"\n [src]=\"imageUrl\"\n [alt]=\"imageAltText\"\n (load)=\"loadImage()\"\n (error)=\"errorImage()\">\n </div>\n <div *ngSwitchCase=\"'icon'\" [ngClass]=\"['avatar', 'avatar-' +color]\">\n <ng-container *ngTemplateOutlet=\"displayIcon\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'initial'\" [ngClass]=\"['avatar','avatar-' + color]\">\n <ng-container *ngTemplateOutlet=\"displayInitial\"></ng-container>\n </div>\n</ng-container>\n\n<ng-template #displayInitial>\n <span class=\"initial\" *ngIf=\"initial else displayIcon\">{{ initial }}</span>\n</ng-template>\n\n<ng-template #displayIcon>\n <fw-icon>{{ icon }}</fw-icon>\n</ng-template>\n", styles: [":host{display:block}:host .avatar{display:flex;flex-direction:row;justify-content:center;align-items:center;width:inherit;height:inherit;border-radius:inherit;font-size:inherit}:host .avatar fw-icon{color:var(--typography-contrast);font-size:inherit}:host .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .avatar .initial{font-family:Inter,sans-serif;font-style:normal;font-weight:500;color:var(--typography-contrast);font-size:inherit}:host.small{width:16px;height:16px;font-size:8px}:host.small .avatar fw-icon{font-size:12px}:host.medium{width:32px;height:32px;font-size:14px}:host.medium .avatar fw-icon{font-size:18px}:host.large{width:40px;height:40px;font-size:14px}:host.large .avatar fw-icon{font-size:24px}:host.x-large{width:108px;height:108px;font-size:36px}:host.x-large .avatar fw-icon{font-size:64px}:host.rounded{border-radius:12px}:host.circular{border-radius:64px}.avatar-primary{background:var(--primary-base)}.avatar-slate{background:var(--slate-medium)}.avatar-red{background:var(--red-base)}.avatar-light-slate{background:var(--slate-light)}.avatar-secondary{background:var(--secondary-base)}.avatar-warning{background:var(--orange-base)}.avatar-success{background:var(--green-base)}\n"] }]
|
|
32
|
+
args: [{ selector: 'fw-avatar', template: "<ng-container [ngSwitch]=\"content\">\n <div *ngSwitchCase=\"'image'\" [ngClass]=\"['avatar', 'avatar-' + color]\">\n <img\n *ngIf=\"!isImageBroken else displayInitial\"\n [src]=\"imageUrl\"\n [alt]=\"imageAltText\"\n (load)=\"loadImage()\"\n (error)=\"errorImage()\">\n </div>\n <div *ngSwitchCase=\"'icon'\" [ngClass]=\"['avatar', 'avatar-' +color]\">\n <ng-container *ngTemplateOutlet=\"displayIcon\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'initial'\" [ngClass]=\"['avatar','avatar-' + color]\">\n <ng-container *ngTemplateOutlet=\"displayInitial\"></ng-container>\n </div>\n</ng-container>\n\n<ng-template #displayInitial>\n <span class=\"initial\" *ngIf=\"initial else displayIcon\">{{ initial }}</span>\n</ng-template>\n\n<ng-template #displayIcon>\n <fw-icon>{{ icon }}</fw-icon>\n</ng-template>\n", styles: [":host{display:block}:host .avatar{display:flex;flex-direction:row;justify-content:center;align-items:center;width:inherit;height:inherit;border-radius:inherit;font-size:inherit}:host .avatar fw-icon{color:var(--typography-contrast);font-size:inherit}:host .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .avatar .initial{font-family:Inter,sans-serif;font-style:normal;font-weight:500;color:var(--typography-contrast);font-size:inherit}:host.small{width:16px;height:16px;font-size:8px}:host.small .avatar fw-icon{font-size:12px}:host.medium{width:32px;height:32px;font-size:14px}:host.medium .avatar fw-icon{font-size:18px}:host.large{width:40px;height:40px;font-size:14px}:host.large .avatar fw-icon{font-size:24px}:host.x-large{width:108px;height:108px;font-size:36px}:host.x-large .avatar fw-icon{font-size:64px}:host.rounded.small{border-radius:4px}:host.rounded.medium{border-radius:8px}:host.rounded.large{border-radius:12px}:host.rounded.x-large{border-radius:16px}:host.circular{border-radius:64px}.avatar-primary{background:var(--primary-base)}.avatar-slate{background:var(--slate-medium)}.avatar-red{background:var(--red-base)}.avatar-light-slate{background:var(--slate-light)}.avatar-secondary{background:var(--secondary-base)}.avatar-warning{background:var(--orange-base)}.avatar-success{background:var(--green-base)}\n"] }]
|
|
33
33
|
}], propDecorators: { classes: [{
|
|
34
34
|
type: HostBinding,
|
|
35
35
|
args: ['attr.class']
|