@flywheel-io/vision 19.4.0 → 19.4.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/components/button-group/button-group.component.d.ts +4 -5
- package/components/button-toggle/button-toggle-item/button-toggle-item.component.d.ts +2 -1
- package/components/button-toggle/button-toggle.component.d.ts +3 -2
- package/fesm2022/flywheel-io-vision.mjs +43 -31
- package/fesm2022/flywheel-io-vision.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { AfterContentInit,
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { FwButtonToggleItemComponent } from '../button-toggle/button-toggle-item/button-toggle-item.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FwButtonGroupComponent implements ControlValueAccessor, OnChanges, OnDestroy, AfterContentInit {
|
|
6
|
-
private cdref;
|
|
7
|
-
get classes(): string;
|
|
8
6
|
layout?: 'basic' | 'compact';
|
|
9
7
|
size?: 'small' | 'medium' | 'large';
|
|
10
8
|
disabled?: boolean;
|
|
11
9
|
color?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
12
10
|
selectedColor?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
11
|
+
fullWidth: boolean;
|
|
12
|
+
get classes(): string;
|
|
13
13
|
toggleButtons: QueryList<FwButtonToggleItemComponent>;
|
|
14
14
|
private subscriptions;
|
|
15
15
|
change: EventEmitter<string[]>;
|
|
16
16
|
private _value;
|
|
17
17
|
get value(): string[];
|
|
18
18
|
set value(newValue: string[]);
|
|
19
|
-
constructor(cdref: ChangeDetectorRef);
|
|
20
19
|
onChange: (value: string[]) => void;
|
|
21
20
|
onTouched: () => void;
|
|
22
21
|
registerOnChange(fn: (value: string[]) => void): void;
|
|
@@ -29,5 +28,5 @@ export declare class FwButtonGroupComponent implements ControlValueAccessor, OnC
|
|
|
29
28
|
updateValue(value: string[]): void;
|
|
30
29
|
formatToggles(): void;
|
|
31
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwButtonGroupComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonGroupComponent, "fw-button-group", never, { "layout": { "alias": "layout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["toggleButtons"], ["fw-button-toggle-item,fw-tooltip"], true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonGroupComponent, "fw-button-group", never, { "layout": { "alias": "layout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["toggleButtons"], ["fw-button-toggle-item,fw-tooltip"], true, never>;
|
|
33
32
|
}
|
|
@@ -12,10 +12,11 @@ export declare class FwButtonToggleItemComponent {
|
|
|
12
12
|
color?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
13
13
|
selectedColor?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
14
14
|
selectedStyle?: 'background' | 'foreground';
|
|
15
|
+
fullWidth: import("@angular/core").ModelSignal<boolean>;
|
|
15
16
|
click: EventEmitter<string>;
|
|
16
17
|
get classes(): string;
|
|
17
18
|
constructor();
|
|
18
19
|
handleClick(): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwButtonToggleItemComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleItemComponent, "fw-button-toggle-item", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "selectedStyle": { "alias": "selectedStyle"; "required": false; }; }, { "click": "click"; }, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleItemComponent, "fw-button-toggle-item", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "selectedStyle": { "alias": "selectedStyle"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, { "fullWidth": "fullWidthChange"; "click": "click"; }, never, never, true, never>;
|
|
21
22
|
}
|
|
@@ -4,12 +4,13 @@ import { FwButtonToggleItemComponent } from './button-toggle-item/button-toggle-
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FwButtonToggleComponent implements ControlValueAccessor, OnChanges, OnDestroy, AfterContentInit {
|
|
6
6
|
private cdref;
|
|
7
|
-
get classes(): string;
|
|
8
7
|
layout?: 'basic' | 'compact';
|
|
9
8
|
size?: 'small' | 'medium' | 'large';
|
|
10
9
|
disabled?: boolean;
|
|
11
10
|
color?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
12
11
|
selectedColor?: 'primary' | 'secondary' | 'danger' | 'slate' | 'skeleton' | 'warning' | 'success';
|
|
12
|
+
fullWidth: boolean;
|
|
13
|
+
get classes(): string;
|
|
13
14
|
toggleButtons: QueryList<FwButtonToggleItemComponent>;
|
|
14
15
|
private subscriptions;
|
|
15
16
|
change: EventEmitter<string>;
|
|
@@ -30,5 +31,5 @@ export declare class FwButtonToggleComponent implements ControlValueAccessor, On
|
|
|
30
31
|
updateValue(value: string): void;
|
|
31
32
|
formatToggles(): void;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwButtonToggleComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleComponent, "fw-button-toggle", never, { "layout": { "alias": "layout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["toggleButtons"], ["fw-button-toggle-item,fw-tooltip"], true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwButtonToggleComponent, "fw-button-toggle", never, { "layout": { "alias": "layout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["toggleButtons"], ["fw-button-toggle-item,fw-tooltip"], true, never>;
|
|
34
35
|
}
|
|
@@ -1920,7 +1920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1920
1920
|
|
|
1921
1921
|
class FwButtonToggleItemComponent {
|
|
1922
1922
|
get classes() {
|
|
1923
|
-
return ['fw-button-toggle-item', this.title && this.title.length > 0 ? 'has-title' : 'no-title'].filter(Boolean).join(' ');
|
|
1923
|
+
return ['fw-button-toggle-item', this.title && this.title.length > 0 ? 'has-title' : 'no-title', this.fullWidth() ? 'full-width' : null].filter(Boolean).join(' ');
|
|
1924
1924
|
}
|
|
1925
1925
|
;
|
|
1926
1926
|
constructor() {
|
|
@@ -1930,6 +1930,7 @@ class FwButtonToggleItemComponent {
|
|
|
1930
1930
|
this.color = 'slate';
|
|
1931
1931
|
this.selectedColor = 'primary';
|
|
1932
1932
|
this.selectedStyle = 'background';
|
|
1933
|
+
this.fullWidth = model(false);
|
|
1933
1934
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
1934
1935
|
this.click = new EventEmitter();
|
|
1935
1936
|
}
|
|
@@ -1939,11 +1940,11 @@ class FwButtonToggleItemComponent {
|
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
1941
1942
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonToggleItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1942
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1943
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.18", type: FwButtonToggleItemComponent, isStandalone: true, selector: "fw-button-toggle-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, selectedIcon: { classPropertyName: "selectedIcon", publicName: "selectedIcon", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: false, isRequired: false, transformFunction: null }, selectedColor: { classPropertyName: "selectedColor", publicName: "selectedColor", isSignal: false, isRequired: false, transformFunction: null }, selectedStyle: { classPropertyName: "selectedStyle", publicName: "selectedStyle", isSignal: false, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fullWidth: "fullWidthChange", click: "click" }, host: { properties: { "attr.class": "this.classes" } }, ngImport: i0, template: "<fw-button\n [fullWidth]=\"fullWidth()\"\n [leftIcon]=\"(selected && selectedIcon) ? selectedIcon : icon\"\n [variant]=\"(selected && selectedStyle==='background') ? 'solid':'outline'\"\n [color]=\"selected ? selectedColor:color\"\n [size]=\"size\"\n [disabled]=\"disabled\"\n (click)=\"handleClick()\">\n {{ title }}\n</fw-button>\n", styles: [":host.full-width{width:100%}\n"], dependencies: [{ kind: "component", type: FwButtonComponent, selector: "fw-button", inputs: ["color", "size", "variant", "type", "disabled", "fullWidth", "leftIcon", "rightIcon"] }] }); }
|
|
1943
1944
|
}
|
|
1944
1945
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonToggleItemComponent, decorators: [{
|
|
1945
1946
|
type: Component,
|
|
1946
|
-
args: [{ selector: 'fw-button-toggle-item', imports: [FwButtonComponent], template: "<fw-button\n [leftIcon]=\"(selected && selectedIcon) ? selectedIcon : icon\"\n [variant]=\"(selected && selectedStyle==='background') ? 'solid':'outline'\"\n [color]=\"selected ? selectedColor:color\"\n [size]=\"size\"\n [disabled]=\"disabled\"\n (click)=\"handleClick()\">\n {{ title }}\n</fw-button>\n" }]
|
|
1947
|
+
args: [{ selector: 'fw-button-toggle-item', imports: [FwButtonComponent], template: "<fw-button\n [fullWidth]=\"fullWidth()\"\n [leftIcon]=\"(selected && selectedIcon) ? selectedIcon : icon\"\n [variant]=\"(selected && selectedStyle==='background') ? 'solid':'outline'\"\n [color]=\"selected ? selectedColor:color\"\n [size]=\"size\"\n [disabled]=\"disabled\"\n (click)=\"handleClick()\">\n {{ title }}\n</fw-button>\n", styles: [":host.full-width{width:100%}\n"] }]
|
|
1947
1948
|
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
1948
1949
|
type: Input
|
|
1949
1950
|
}], icon: [{
|
|
@@ -1972,27 +1973,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1972
1973
|
}] } });
|
|
1973
1974
|
|
|
1974
1975
|
class FwButtonGroupComponent {
|
|
1975
|
-
|
|
1976
|
-
return ['fw-button-group', this.size, this.layout].filter(Boolean).join(' ');
|
|
1977
|
-
}
|
|
1978
|
-
;
|
|
1979
|
-
get value() {
|
|
1980
|
-
return this._value;
|
|
1981
|
-
}
|
|
1982
|
-
set value(newValue) {
|
|
1983
|
-
this.updateValue(newValue);
|
|
1984
|
-
}
|
|
1985
|
-
constructor(cdref) {
|
|
1986
|
-
this.cdref = cdref;
|
|
1976
|
+
constructor() {
|
|
1987
1977
|
this.layout = 'basic';
|
|
1988
1978
|
this.size = 'medium';
|
|
1989
1979
|
this.disabled = false;
|
|
1980
|
+
this.fullWidth = false;
|
|
1990
1981
|
this.subscriptions = [];
|
|
1991
1982
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
1992
1983
|
this.change = new EventEmitter();
|
|
1993
1984
|
this.onTouched = () => {
|
|
1994
1985
|
};
|
|
1995
1986
|
}
|
|
1987
|
+
get classes() {
|
|
1988
|
+
return ['fw-button-group', this.size, this.layout, this.fullWidth ? 'full-width' : null].filter(Boolean).join(' ');
|
|
1989
|
+
}
|
|
1990
|
+
;
|
|
1991
|
+
get value() {
|
|
1992
|
+
return this._value;
|
|
1993
|
+
}
|
|
1994
|
+
set value(newValue) {
|
|
1995
|
+
this.updateValue(newValue);
|
|
1996
|
+
}
|
|
1996
1997
|
registerOnChange(fn) {
|
|
1997
1998
|
this.onChange = fn;
|
|
1998
1999
|
}
|
|
@@ -2029,6 +2030,9 @@ class FwButtonGroupComponent {
|
|
|
2029
2030
|
formatToggles() {
|
|
2030
2031
|
if (this.toggleButtons) {
|
|
2031
2032
|
this.toggleButtons.forEach(toggle => {
|
|
2033
|
+
if (this.fullWidth) {
|
|
2034
|
+
toggle.fullWidth.set(true);
|
|
2035
|
+
}
|
|
2032
2036
|
if (this.value.indexOf(toggle.value) >= 0) {
|
|
2033
2037
|
toggle.selected = true;
|
|
2034
2038
|
}
|
|
@@ -2058,14 +2062,14 @@ class FwButtonGroupComponent {
|
|
|
2058
2062
|
});
|
|
2059
2063
|
}
|
|
2060
2064
|
}
|
|
2061
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonGroupComponent, deps: [
|
|
2062
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FwButtonGroupComponent, isStandalone: true, selector: "fw-button-group", inputs: { layout: "layout", size: "size", disabled: "disabled", color: "color", selectedColor: "selectedColor", value: "value" }, outputs: { change: "change" }, host: { properties: { "attr.class": "this.classes" } }, providers: [
|
|
2065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2066
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FwButtonGroupComponent, isStandalone: true, selector: "fw-button-group", inputs: { layout: "layout", size: "size", disabled: "disabled", color: "color", selectedColor: "selectedColor", fullWidth: "fullWidth", value: "value" }, outputs: { change: "change" }, host: { properties: { "attr.class": "this.classes" } }, providers: [
|
|
2063
2067
|
{
|
|
2064
2068
|
provide: NG_VALUE_ACCESSOR,
|
|
2065
2069
|
useExisting: forwardRef(() => FwButtonGroupComponent),
|
|
2066
2070
|
multi: true,
|
|
2067
2071
|
},
|
|
2068
|
-
], queries: [{ propertyName: "toggleButtons", predicate: FwButtonToggleItemComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: '<ng-content select="fw-button-toggle-item,fw-tooltip"></ng-content>', isInline: true, styles: ["fw-button-group.fw-button-group{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-group.fw-button-group .fw-button-toggle-item.no-title button{gap:0}fw-button-group.fw-button-group button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-group.fw-button-group>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-group.fw-button-group.compact button{line-height:24px;height:24px}fw-button-group.fw-button-group.small button{font-size:12px}fw-button-group.fw-button-group.medium button{font-size:14px}fw-button-group.fw-button-group.large button{font-size:18px}fw-button-group.fw-button-group>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-group.fw-button-group>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-group.fw-button-group fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-group.fw-button-group fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2072
|
+
], queries: [{ propertyName: "toggleButtons", predicate: FwButtonToggleItemComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: '<ng-content select="fw-button-toggle-item,fw-tooltip"></ng-content>', isInline: true, styles: ["fw-button-group.fw-button-group{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-group.fw-button-group.full-width{width:100%}fw-button-group.fw-button-group .fw-button-toggle-item.no-title button{gap:0}fw-button-group.fw-button-group button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-group.fw-button-group>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-group.fw-button-group.compact button{line-height:24px;height:24px}fw-button-group.fw-button-group.small button{font-size:12px}fw-button-group.fw-button-group.medium button{font-size:14px}fw-button-group.fw-button-group.large button{font-size:18px}fw-button-group.fw-button-group>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-group.fw-button-group>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-group.fw-button-group fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-group.fw-button-group fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2069
2073
|
}
|
|
2070
2074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonGroupComponent, decorators: [{
|
|
2071
2075
|
type: Component,
|
|
@@ -2075,11 +2079,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2075
2079
|
useExisting: forwardRef(() => FwButtonGroupComponent),
|
|
2076
2080
|
multi: true,
|
|
2077
2081
|
},
|
|
2078
|
-
], styles: ["fw-button-group.fw-button-group{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-group.fw-button-group .fw-button-toggle-item.no-title button{gap:0}fw-button-group.fw-button-group button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-group.fw-button-group>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-group.fw-button-group.compact button{line-height:24px;height:24px}fw-button-group.fw-button-group.small button{font-size:12px}fw-button-group.fw-button-group.medium button{font-size:14px}fw-button-group.fw-button-group.large button{font-size:18px}fw-button-group.fw-button-group>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-group.fw-button-group>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-group.fw-button-group fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-group.fw-button-group fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"] }]
|
|
2079
|
-
}],
|
|
2080
|
-
type: HostBinding,
|
|
2081
|
-
args: ['attr.class']
|
|
2082
|
-
}], layout: [{
|
|
2082
|
+
], styles: ["fw-button-group.fw-button-group{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-group.fw-button-group.full-width{width:100%}fw-button-group.fw-button-group .fw-button-toggle-item.no-title button{gap:0}fw-button-group.fw-button-group button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-group.fw-button-group>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-group.fw-button-group.compact button{line-height:24px;height:24px}fw-button-group.fw-button-group.small button{font-size:12px}fw-button-group.fw-button-group.medium button{font-size:14px}fw-button-group.fw-button-group.large button{font-size:18px}fw-button-group.fw-button-group>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-group.fw-button-group>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-group.fw-button-group fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-group.fw-button-group fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-group.fw-button-group fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"] }]
|
|
2083
|
+
}], propDecorators: { layout: [{
|
|
2083
2084
|
type: Input
|
|
2084
2085
|
}], size: [{
|
|
2085
2086
|
type: Input
|
|
@@ -2089,6 +2090,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2089
2090
|
type: Input
|
|
2090
2091
|
}], selectedColor: [{
|
|
2091
2092
|
type: Input
|
|
2093
|
+
}], fullWidth: [{
|
|
2094
|
+
type: Input
|
|
2095
|
+
}], classes: [{
|
|
2096
|
+
type: HostBinding,
|
|
2097
|
+
args: ['attr.class']
|
|
2092
2098
|
}], toggleButtons: [{
|
|
2093
2099
|
type: ContentChildren,
|
|
2094
2100
|
args: [FwButtonToggleItemComponent, { descendants: true }]
|
|
@@ -2100,7 +2106,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2100
2106
|
|
|
2101
2107
|
class FwButtonToggleComponent {
|
|
2102
2108
|
get classes() {
|
|
2103
|
-
return ['fw-button-toggle', this.size, this.layout].filter(Boolean).join(' ');
|
|
2109
|
+
return ['fw-button-toggle', this.size, this.layout, this.fullWidth ? 'full-width' : null].filter(Boolean).join(' ');
|
|
2104
2110
|
}
|
|
2105
2111
|
;
|
|
2106
2112
|
get value() {
|
|
@@ -2114,6 +2120,7 @@ class FwButtonToggleComponent {
|
|
|
2114
2120
|
this.layout = 'basic';
|
|
2115
2121
|
this.size = 'medium';
|
|
2116
2122
|
this.disabled = false;
|
|
2123
|
+
this.fullWidth = false;
|
|
2117
2124
|
this.subscriptions = [];
|
|
2118
2125
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
2119
2126
|
this.change = new EventEmitter();
|
|
@@ -2161,6 +2168,9 @@ class FwButtonToggleComponent {
|
|
|
2161
2168
|
formatToggles() {
|
|
2162
2169
|
if (this.toggleButtons) {
|
|
2163
2170
|
this.toggleButtons.forEach(toggle => {
|
|
2171
|
+
if (this.fullWidth) {
|
|
2172
|
+
toggle.fullWidth.set(true);
|
|
2173
|
+
}
|
|
2164
2174
|
if (toggle.value === this.value) {
|
|
2165
2175
|
toggle.selected = true;
|
|
2166
2176
|
}
|
|
@@ -2192,13 +2202,13 @@ class FwButtonToggleComponent {
|
|
|
2192
2202
|
}
|
|
2193
2203
|
}
|
|
2194
2204
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonToggleComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2195
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FwButtonToggleComponent, isStandalone: true, selector: "fw-button-toggle", inputs: { layout: "layout", size: "size", disabled: "disabled", color: "color", selectedColor: "selectedColor", value: "value" }, outputs: { change: "change" }, host: { properties: { "attr.class": "this.classes" } }, providers: [
|
|
2205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: FwButtonToggleComponent, isStandalone: true, selector: "fw-button-toggle", inputs: { layout: "layout", size: "size", disabled: "disabled", color: "color", selectedColor: "selectedColor", fullWidth: "fullWidth", value: "value" }, outputs: { change: "change" }, host: { properties: { "attr.class": "this.classes" } }, providers: [
|
|
2196
2206
|
{
|
|
2197
2207
|
provide: NG_VALUE_ACCESSOR,
|
|
2198
2208
|
useExisting: forwardRef(() => FwButtonToggleComponent),
|
|
2199
2209
|
multi: true,
|
|
2200
2210
|
},
|
|
2201
|
-
], queries: [{ propertyName: "toggleButtons", predicate: FwButtonToggleItemComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: '<ng-content select="fw-button-toggle-item,fw-tooltip"></ng-content>', isInline: true, styles: ["fw-button-toggle.fw-button-toggle{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-toggle.fw-button-toggle .fw-button-toggle-item.no-title button{gap:0}fw-button-toggle.fw-button-toggle button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-toggle.fw-button-toggle>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-toggle.fw-button-toggle.compact button{line-height:24px;height:24px}fw-button-toggle.fw-button-toggle.small button{font-size:12px}fw-button-toggle.fw-button-toggle.medium button{font-size:14px}fw-button-toggle.fw-button-toggle.large button{font-size:18px}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-toggle.fw-button-toggle fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-toggle.fw-button-toggle fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2211
|
+
], queries: [{ propertyName: "toggleButtons", predicate: FwButtonToggleItemComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: '<ng-content select="fw-button-toggle-item,fw-tooltip"></ng-content>', isInline: true, styles: ["fw-button-toggle.fw-button-toggle{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-toggle.fw-button-toggle.full-width{width:100%}fw-button-toggle.fw-button-toggle .fw-button-toggle-item.no-title button{gap:0}fw-button-toggle.fw-button-toggle button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-toggle.fw-button-toggle>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-toggle.fw-button-toggle.compact button{line-height:24px;height:24px}fw-button-toggle.fw-button-toggle.small button{font-size:12px}fw-button-toggle.fw-button-toggle.medium button{font-size:14px}fw-button-toggle.fw-button-toggle.large button{font-size:18px}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-toggle.fw-button-toggle fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-toggle.fw-button-toggle fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2202
2212
|
}
|
|
2203
2213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FwButtonToggleComponent, decorators: [{
|
|
2204
2214
|
type: Component,
|
|
@@ -2208,11 +2218,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2208
2218
|
useExisting: forwardRef(() => FwButtonToggleComponent),
|
|
2209
2219
|
multi: true,
|
|
2210
2220
|
},
|
|
2211
|
-
], styles: ["fw-button-toggle.fw-button-toggle{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-toggle.fw-button-toggle .fw-button-toggle-item.no-title button{gap:0}fw-button-toggle.fw-button-toggle button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-toggle.fw-button-toggle>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-toggle.fw-button-toggle.compact button{line-height:24px;height:24px}fw-button-toggle.fw-button-toggle.small button{font-size:12px}fw-button-toggle.fw-button-toggle.medium button{font-size:14px}fw-button-toggle.fw-button-toggle.large button{font-size:18px}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-toggle.fw-button-toggle fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-toggle.fw-button-toggle fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"] }]
|
|
2212
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: {
|
|
2213
|
-
type: HostBinding,
|
|
2214
|
-
args: ['attr.class']
|
|
2215
|
-
}], layout: [{
|
|
2221
|
+
], styles: ["fw-button-toggle.fw-button-toggle{box-sizing:border-box;border-radius:8px;overflow:hidden;display:inline-flex;align-items:stretch}fw-button-toggle.fw-button-toggle.full-width{width:100%}fw-button-toggle.fw-button-toggle .fw-button-toggle-item.no-title button{gap:0}fw-button-toggle.fw-button-toggle button{min-width:0;margin:0!important;border-radius:0;border:1px solid var(--separations-input);border-right-width:0!important}fw-button-toggle.fw-button-toggle>button:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle>button:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px}fw-button-toggle.fw-button-toggle.compact button{line-height:24px;height:24px}fw-button-toggle.fw-button-toggle.small button{font-size:12px}fw-button-toggle.fw-button-toggle.medium button{font-size:14px}fw-button-toggle.fw-button-toggle.large button{font-size:18px}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:last-of-type button{border-top-right-radius:8px;border-bottom-right-radius:8px;border-right-width:1px!important}fw-button-toggle.fw-button-toggle>fw-button-toggle-item:first-of-type button{border-top-left-radius:8px;border-bottom-left-radius:8px}fw-button-toggle.fw-button-toggle fw-tooltip fw-button-toggle-item button{border-radius:0!important;border-right-width:0!important}fw-button-toggle.fw-button-toggle fw-tooltip:last-of-type fw-button-toggle-item button{border-radius:0 8px 8px 0!important;border-right-width:1px!important}fw-button-toggle.fw-button-toggle fw-tooltip:first-of-type fw-button-toggle-item button{border-radius:8px 0 0 8px!important}\n"] }]
|
|
2222
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { layout: [{
|
|
2216
2223
|
type: Input
|
|
2217
2224
|
}], size: [{
|
|
2218
2225
|
type: Input
|
|
@@ -2222,6 +2229,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2222
2229
|
type: Input
|
|
2223
2230
|
}], selectedColor: [{
|
|
2224
2231
|
type: Input
|
|
2232
|
+
}], fullWidth: [{
|
|
2233
|
+
type: Input
|
|
2234
|
+
}], classes: [{
|
|
2235
|
+
type: HostBinding,
|
|
2236
|
+
args: ['attr.class']
|
|
2225
2237
|
}], toggleButtons: [{
|
|
2226
2238
|
type: ContentChildren,
|
|
2227
2239
|
args: [FwButtonToggleItemComponent, { descendants: true }]
|