@flywheel-io/vision 19.3.2 → 19.4.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/menu/menu.component.d.ts +2 -0
- package/components/select-menu/select-menu.component.d.ts +4 -3
- package/components/tooltip/tooltip-panel/tooltip-panel.component.d.ts +8 -7
- package/components/tooltip/tooltip.directive.d.ts +6 -2
- package/components/typeahead/typeahead.component.d.ts +10 -4
- package/fesm2022/flywheel-io-vision.mjs +207 -92
- package/fesm2022/flywheel-io-vision.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -14,8 +14,10 @@ export declare class FwMenuComponent implements ControlValueAccessor, OnChanges,
|
|
|
14
14
|
onChange: (value: string | string[]) => void;
|
|
15
15
|
onTouched: () => void;
|
|
16
16
|
private subscriptions;
|
|
17
|
+
private menuItemSubscriptions;
|
|
17
18
|
ngOnChanges(): void;
|
|
18
19
|
ngOnDestroy(): void;
|
|
20
|
+
private subscribeToMenuItems;
|
|
19
21
|
ngAfterContentInit(): void;
|
|
20
22
|
writeValue(value: string | string[]): void;
|
|
21
23
|
registerOnChange(fn: (value: string | string[]) => void): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
2
|
-
import {
|
|
2
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
4
|
import { IconType } from '../icon/icon.types';
|
|
5
5
|
import { FwMenuComponent } from '../menu/menu.component';
|
|
@@ -8,7 +8,7 @@ import { FwMenuItemGroupComponent } from '../menu/menu-item-group/menu-item-grou
|
|
|
8
8
|
import { FwMenuSeparatorComponent } from '../menu/menu-separator/menu-separator.component';
|
|
9
9
|
import { FwTextInputComponent } from '../text-input/text-input.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class FwSelectMenuComponent implements
|
|
11
|
+
export declare class FwSelectMenuComponent implements OnDestroy, ControlValueAccessor {
|
|
12
12
|
private ngControl;
|
|
13
13
|
outsideClick(evt: any): void;
|
|
14
14
|
get disabledClass(): boolean;
|
|
@@ -52,7 +52,8 @@ export declare class FwSelectMenuComponent implements AfterContentInit, OnDestro
|
|
|
52
52
|
set value(newValue: any);
|
|
53
53
|
private _value;
|
|
54
54
|
constructor(ngControl: NgControl);
|
|
55
|
-
|
|
55
|
+
private subscribeToMenuItems;
|
|
56
|
+
private menuItemsWatcher;
|
|
56
57
|
ngOnDestroy(): void;
|
|
57
58
|
get invalid(): boolean;
|
|
58
59
|
get touched(): boolean;
|
|
@@ -6,18 +6,19 @@ export type SimplePosition = 'above' | 'below' | 'left' | 'right';
|
|
|
6
6
|
export declare class FwTooltipPanelComponent {
|
|
7
7
|
animation: any;
|
|
8
8
|
trigger: import("@angular/core").InputSignalWithTransform<CdkOverlayOrigin, ElementRef<HTMLElement> | CdkOverlayOrigin>;
|
|
9
|
-
title: string
|
|
9
|
+
title: import("@angular/core").InputSignal<string>;
|
|
10
10
|
isOpen: import("@angular/core").InputSignal<boolean>;
|
|
11
11
|
position: import("@angular/core").InputSignal<SimplePosition>;
|
|
12
12
|
connectedPosition: import("@angular/core").Signal<ConnectedPosition[]>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
positionClass: import("@angular/core").Signal<string>;
|
|
14
|
+
color: import("@angular/core").InputSignal<"dark" | "light">;
|
|
15
|
+
maxWidth: import("@angular/core").InputSignal<number>;
|
|
16
|
+
displayCaret: import("@angular/core").InputSignal<boolean>;
|
|
17
17
|
delay: import("@angular/core").InputSignal<DelayLength>;
|
|
18
18
|
delayMs: import("@angular/core").Signal<number>;
|
|
19
|
-
|
|
19
|
+
contentClass: import("@angular/core").InputSignal<string>;
|
|
20
|
+
mouseLeave: EventEmitter<MouseEvent>;
|
|
20
21
|
hidePopover(e: MouseEvent): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwTooltipPanelComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwTooltipPanelComponent, "fw-tooltip-panel", never, { "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "displayCaret": { "alias": "displayCaret"; "required": false; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, { "mouseLeave": "mouseLeave"; }, never, ["*"], true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwTooltipPanelComponent, "fw-tooltip-panel", never, { "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "displayCaret": { "alias": "displayCaret"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "contentClass": { "alias": "contentClass"; "required": false; "isSignal": true; }; }, { "mouseLeave": "mouseLeave"; }, never, ["*"], true, never>;
|
|
23
24
|
}
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
type DelayLength = 'none' | 'short' | 'long';
|
|
7
7
|
/**
|
|
8
8
|
* Directive for displaying extra context on hover
|
|
9
|
-
* @see [Vision
|
|
9
|
+
* @see [Vision Storybook](https://cdn.flywheel.io/docs/vision/master/?path=/docs/components-tooltip--docs)
|
|
10
10
|
*/
|
|
11
11
|
export declare class FwTooltipDirective implements OnInit, OnDestroy {
|
|
12
12
|
/***** External Context *****/
|
|
@@ -31,6 +31,10 @@ export declare class FwTooltipDirective implements OnInit, OnDestroy {
|
|
|
31
31
|
* maximum width of the tooltip in pixels
|
|
32
32
|
*/
|
|
33
33
|
maxWidth: import("@angular/core").ModelSignal<number>;
|
|
34
|
+
/**
|
|
35
|
+
* Custom class to apply to the content of the tooltip
|
|
36
|
+
*/
|
|
37
|
+
contentClass: import("@angular/core").ModelSignal<string>;
|
|
34
38
|
/**
|
|
35
39
|
* amount of delay before the tooltip displays
|
|
36
40
|
*
|
|
@@ -58,6 +62,6 @@ export declare class FwTooltipDirective implements OnInit, OnDestroy {
|
|
|
58
62
|
hideTooltip(): void;
|
|
59
63
|
ngOnDestroy(): void;
|
|
60
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwTooltipDirective, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FwTooltipDirective, "[fwTooltip]", never, { "title": { "alias": "fwTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "fwTooltipPosition"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "fwTooltipMaxWidthPx"; "required": false; "isSignal": true; }; "delayMs": { "alias": "fwTooltipDelay"; "required": false; "isSignal": true; }; "displayCaret": { "alias": "fwTooltipCaret"; "required": false; "isSignal": true; }; "enabled": { "alias": "fwTooltipEnabled"; "required": false; "isSignal": true; }; }, { "title": "fwTooltipChange"; "position": "fwTooltipPositionChange"; "maxWidth": "fwTooltipMaxWidthPxChange"; "enabled": "fwTooltipEnabledChange"; }, never, never, true, never>;
|
|
65
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FwTooltipDirective, "[fwTooltip]", never, { "title": { "alias": "fwTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "fwTooltipPosition"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "fwTooltipMaxWidthPx"; "required": false; "isSignal": true; }; "contentClass": { "alias": "fwTooltipClass"; "required": false; "isSignal": true; }; "delayMs": { "alias": "fwTooltipDelay"; "required": false; "isSignal": true; }; "displayCaret": { "alias": "fwTooltipCaret"; "required": false; "isSignal": true; }; "enabled": { "alias": "fwTooltipEnabled"; "required": false; "isSignal": true; }; }, { "title": "fwTooltipChange"; "position": "fwTooltipPositionChange"; "maxWidth": "fwTooltipMaxWidthPxChange"; "contentClass": "fwTooltipClassChange"; "enabled": "fwTooltipEnabledChange"; }, never, never, true, never>;
|
|
62
66
|
}
|
|
63
67
|
export {};
|
|
@@ -15,10 +15,13 @@ export declare class FwTypeaheadComponent implements ControlValueAccessor {
|
|
|
15
15
|
changeDetector: ChangeDetectorRef;
|
|
16
16
|
loading: import("@angular/core").ModelSignal<boolean>;
|
|
17
17
|
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
18
|
+
touched: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
hasAmbiguousInput: import("@angular/core").WritableSignal<boolean>;
|
|
18
20
|
setDisabledState(isDisabled: boolean): void;
|
|
19
21
|
writeValue(incomingValue: string[]): void;
|
|
20
22
|
onChange: (_: string[]) => void;
|
|
21
|
-
|
|
23
|
+
clearValue(): void;
|
|
24
|
+
registerOnChange(onChangeFn: typeof this.onChange): void;
|
|
22
25
|
onTouched: () => void;
|
|
23
26
|
registerOnTouched(onTouchedFn: any): void;
|
|
24
27
|
onClick(event: MouseEvent): void;
|
|
@@ -30,13 +33,16 @@ export declare class FwTypeaheadComponent implements ControlValueAccessor {
|
|
|
30
33
|
minOptionsHeight: import("@angular/core").InputSignal<string>;
|
|
31
34
|
optionsWidth: import("@angular/core").InputSignal<string>;
|
|
32
35
|
maxHeight: import("@angular/core").InputSignal<string>;
|
|
36
|
+
selectType: import("@angular/core").InputSignal<"multiple" | "single">;
|
|
33
37
|
notifyOnValueChanges: import("@angular/core").EffectRef;
|
|
34
38
|
searchValue: import("@angular/core").ModelSignal<string>;
|
|
35
39
|
searchValueChanges$: Observable<string>;
|
|
36
40
|
handleSearchChange(event: KeyboardEvent): void;
|
|
37
41
|
allowNew: import("@angular/core").InputSignal<boolean>;
|
|
38
42
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
39
|
-
|
|
43
|
+
errorText: import("@angular/core").WritableSignal<string>;
|
|
44
|
+
displayedPlaceholder: import("@angular/core").Signal<string>;
|
|
45
|
+
highlightPlaceholder: import("@angular/core").Signal<boolean>;
|
|
40
46
|
/**
|
|
41
47
|
* Options after they've been both filtered for matching the search and already selected
|
|
42
48
|
*/
|
|
@@ -48,7 +54,7 @@ export declare class FwTypeaheadComponent implements ControlValueAccessor {
|
|
|
48
54
|
closeChip(chipValue: string): void;
|
|
49
55
|
displayNewOption: import("@angular/core").Signal<boolean>;
|
|
50
56
|
addValue: (newValue: string) => void;
|
|
51
|
-
handleOptionClick: (optionValue:
|
|
57
|
+
handleOptionClick: (optionValue: string) => void;
|
|
52
58
|
resetFocusOnOptionsChange: import("@angular/core").EffectRef;
|
|
53
59
|
displayedOptions: import("@angular/core").Signal<readonly FwMenuItemComponent[]>;
|
|
54
60
|
focusedIndex: import("@angular/core").WritableSignal<number>;
|
|
@@ -63,6 +69,6 @@ export declare class FwTypeaheadComponent implements ControlValueAccessor {
|
|
|
63
69
|
setFocusByValue(value: string): void;
|
|
64
70
|
private moveFocused;
|
|
65
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<FwTypeaheadComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwTypeaheadComponent, "fw-typeahead", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "maxOptionsHeight": { "alias": "maxOptionsHeight"; "required": false; "isSignal": true; }; "minOptionsHeight": { "alias": "minOptionsHeight"; "required": false; "isSignal": true; }; "optionsWidth": { "alias": "optionsWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "allowNew": { "alias": "allowNew"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "disabled": "disabledChange"; "value": "valueChange"; "searchValue": "searchValueChange"; }, never, never, true, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FwTypeaheadComponent, "fw-typeahead", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "maxOptionsHeight": { "alias": "maxOptionsHeight"; "required": false; "isSignal": true; }; "minOptionsHeight": { "alias": "minOptionsHeight"; "required": false; "isSignal": true; }; "optionsWidth": { "alias": "optionsWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "selectType": { "alias": "selectType"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "allowNew": { "alias": "allowNew"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "disabled": "disabledChange"; "value": "valueChange"; "searchValue": "searchValueChange"; }, never, never, true, never>;
|
|
67
73
|
}
|
|
68
74
|
export {};
|