xaml-ui 1.0.5 → 1.0.7
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/fesm2022/xaml-ui.mjs +571 -344
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Common.d.ts +1 -1
- package/lib/FrameworkElement.d.ts +7 -4
- package/lib/basic-input/ComboBox.d.ts +6 -4
- package/lib/basic-input/RadioButton.d.ts +4 -4
- package/lib/basic-input/RadioToggleButton.d.ts +7 -0
- package/lib/basic-input/RepeatButton.d.ts +4 -1
- package/lib/basic-input/Slider.d.ts +1 -1
- package/lib/dialogs-and-flyouts/ContextFlyout.d.ts +0 -3
- package/lib/dialogs-and-flyouts/Flyout.d.ts +5 -18
- package/lib/layout/StackPanel.d.ts +2 -0
- package/lib/menus-and-toolbars/AppBarButton.d.ts +3 -1
- package/lib/menus-and-toolbars/MenuFlyout.d.ts +9 -2
- package/lib/primitives/FlyoutBase.d.ts +39 -0
- package/lib/primitives/FlyoutPresenter.d.ts +13 -0
- package/lib/primitives/Selector.d.ts +2 -1
- package/lib/scrolling/ScrollBar.d.ts +1 -1
- package/lib/text/NumberBox.d.ts +10 -1
- package/lib/text/TextBlock.d.ts +3 -1
- package/lib/text/TextBox.d.ts +6 -2
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/styles/XamlGlobals.css +18 -0
- package/lib/primitives/Popup.d.ts +0 -20
package/lib/Common.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type XamlBoolean = 'False' | 'True';
|
|
|
9
9
|
export type TextDecorations = 'None' | 'Underline' | 'Strikethrough';
|
|
10
10
|
export type TextTrimming = 'None' | 'CharacterEllipsis' | 'Clip';
|
|
11
11
|
export type TextWrapping = 'NoWrap' | 'Wrap';
|
|
12
|
-
export type FlyoutPlacementMode = 'Top' | 'Bottom' | 'Left' | 'Right' | 'TopEdgeAlignedLeft' | 'TopEdgeAlignedRight' | 'BottomEdgeAlignedLeft' | 'BottomEdgeAlignedRight' | 'LeftEdgeAlignedTop' | 'LeftEdgeAlignedBottom' | 'RightEdgeAlignedTop' | 'RightEdgeAlignedBottom';
|
|
12
|
+
export type FlyoutPlacementMode = 'Top' | 'Bottom' | 'Left' | 'Right' | 'TopEdgeAlignedLeft' | 'TopEdgeAlignedRight' | 'BottomEdgeAlignedLeft' | 'BottomEdgeAlignedRight' | 'LeftEdgeAlignedTop' | 'LeftEdgeAlignedBottom' | 'RightEdgeAlignedTop' | 'RightEdgeAlignedBottom' | 'Cover';
|
|
13
13
|
export type Stretch = 'None' | 'Fill' | 'Uniform' | 'UniformToFill';
|
|
14
14
|
export declare function toJustification(value: HorizontalAlignment): string;
|
|
15
15
|
export declare function toAlignment(value: VerticalAlignment): "flex-start" | "center" | "flex-end" | "stretch";
|
|
@@ -11,10 +11,13 @@ export declare abstract class FrameworkElementComponent {
|
|
|
11
11
|
VerticalAlignment: VerticalAlignment;
|
|
12
12
|
Margin?: string;
|
|
13
13
|
Padding?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
protected get overflow(): string;
|
|
15
|
+
protected get minWidth(): string | undefined;
|
|
16
|
+
protected get minHeight(): string | undefined;
|
|
17
|
+
protected get width(): string | undefined;
|
|
18
|
+
protected get height(): string | undefined;
|
|
19
|
+
protected get justifySelf(): string;
|
|
20
|
+
protected get alignSelf(): "flex-start" | "center" | "flex-end" | "stretch";
|
|
18
21
|
private static _nextId;
|
|
19
22
|
protected readonly _id: number;
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FrameworkElementComponent, never>;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
2
|
import { SelectorComponent } from "../primitives/Selector";
|
|
3
|
+
import { FlexibleConnectedPositionStrategyOrigin } from "@angular/cdk/overlay";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ComboBoxComponent extends SelectorComponent implements AfterViewInit {
|
|
5
6
|
private _changeDetector;
|
|
7
|
+
private _host;
|
|
6
8
|
get item(): any;
|
|
7
9
|
get index(): number;
|
|
8
10
|
private _selector?;
|
|
9
11
|
private _popup?;
|
|
10
|
-
constructor(_changeDetector: ChangeDetectorRef);
|
|
12
|
+
constructor(_changeDetector: ChangeDetectorRef, _host: ElementRef<HTMLElement>);
|
|
13
|
+
protected target: FlexibleConnectedPositionStrategyOrigin | null;
|
|
14
|
+
protected onIsOpenChanged(value: boolean): void;
|
|
11
15
|
ngAfterViewInit(): void;
|
|
12
|
-
private _popupOffset;
|
|
13
|
-
protected get popupOffset(): number;
|
|
14
16
|
private onSelectionChanged;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboBoxComponent, never>;
|
|
16
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "ComboBox", never, {}, {}, never, never, true, never>;
|
|
@@ -10,17 +10,17 @@ export declare class RadioButtonComponent extends BorderComponent {
|
|
|
10
10
|
Group: string;
|
|
11
11
|
Value: any;
|
|
12
12
|
protected onChange(event: Event): void;
|
|
13
|
-
constructor(_group:
|
|
13
|
+
constructor(_group: RadioButtonGroupComponent);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; }]>;
|
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "RadioButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "IsChecked": { "alias": "IsChecked"; "required": false; }; "Group": { "alias": "Group"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; }, { "IsCheckedChange": "IsCheckedChange"; }, never, ["*"], true, never>;
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class RadioButtonGroupComponent extends StackPanelComponent {
|
|
18
18
|
private _value;
|
|
19
19
|
set Value(value: any);
|
|
20
20
|
get Value(): any;
|
|
21
21
|
ValueChange: EventEmitter<any>;
|
|
22
22
|
private _children;
|
|
23
23
|
registerOption(child: RadioButtonComponent): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonGroupComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonGroupComponent, "RadioButtonGroup", never, { "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, ["*"], true, never>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioButtonComponent } from "./RadioButton";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RadioToggleButtonComponent extends RadioButtonComponent {
|
|
4
|
+
protected get checked(): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioToggleButtonComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioToggleButtonComponent, "RadioToggleButton", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
1
2
|
import { ButtonComponent } from "./Button";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RepeatButtonComponent extends ButtonComponent {
|
|
4
|
+
export declare class RepeatButtonComponent extends ButtonComponent implements OnDestroy {
|
|
4
5
|
Delay: number;
|
|
5
6
|
Interval: number;
|
|
6
7
|
private _delayTimer;
|
|
7
8
|
private _intervalTimer;
|
|
8
9
|
private onPointerDown;
|
|
9
10
|
private onPointerUp;
|
|
11
|
+
private clearTimers;
|
|
10
12
|
protected onHostPointerEvent(event: Event): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatButtonComponent, never>;
|
|
12
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<RepeatButtonComponent, "RepeatButton", never, { "Delay": { "alias": "Delay"; "required": false; }; "Interval": { "alias": "Interval"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
16
|
}
|
|
@@ -10,7 +10,7 @@ export declare class SliderComponent extends FrameworkElementComponent {
|
|
|
10
10
|
ValueChange: EventEmitter<number>;
|
|
11
11
|
IsEnabled: boolean;
|
|
12
12
|
Orientation: Orientation;
|
|
13
|
-
protected
|
|
13
|
+
protected onInput(event: Event): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "Slider", never, { "Minimum": { "alias": "Minimum"; "required": false; }; "Maximum": { "alias": "Maximum"; "required": false; }; "StepFrequency": { "alias": "StepFrequency"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "Orientation": { "alias": "Orientation"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -5,9 +5,6 @@ export declare class ContextFlyoutDirective implements AfterViewInit {
|
|
|
5
5
|
private _viewContainer;
|
|
6
6
|
private _flyout?;
|
|
7
7
|
constructor(_hostComponent: ElementRef, _viewContainer: ViewContainerRef);
|
|
8
|
-
private _positionX;
|
|
9
|
-
private _positionY;
|
|
10
|
-
private get style();
|
|
11
8
|
ngAfterViewInit(): void;
|
|
12
9
|
private onContextMenu;
|
|
13
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextFlyoutDirective, never>;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FlyoutBaseComponent } from "../primitives/FlyoutBase";
|
|
2
|
+
import { FlyoutPresenterAnimation } from "../primitives/FlyoutPresenter";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FlyoutComponent extends
|
|
5
|
-
|
|
6
|
-
protected get contentStyle(): {
|
|
7
|
-
'align-self': string | undefined;
|
|
8
|
-
'justify-self': string | undefined;
|
|
9
|
-
};
|
|
10
|
-
protected get containerStyle(): {
|
|
11
|
-
top: string | undefined;
|
|
12
|
-
left: string | undefined;
|
|
13
|
-
right: string | undefined;
|
|
14
|
-
bottom: string | undefined;
|
|
15
|
-
transform: string;
|
|
16
|
-
margin: string;
|
|
17
|
-
transition: string;
|
|
18
|
-
};
|
|
4
|
+
export declare class FlyoutComponent extends FlyoutBaseComponent {
|
|
5
|
+
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
19
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlyoutComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlyoutComponent, "Flyout", never, {
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlyoutComponent, "Flyout", never, {}, {}, never, ["*"], true, never>;
|
|
21
8
|
}
|
|
@@ -4,6 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class StackPanelComponent extends PanelComponent {
|
|
5
5
|
Orientation: Orientation;
|
|
6
6
|
Spacing: number | string | undefined;
|
|
7
|
+
private get gridAutoFlow();
|
|
8
|
+
private get gridAutoRows();
|
|
7
9
|
private get gridAutoColumns();
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<StackPanelComponent, never>;
|
|
9
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<StackPanelComponent, "StackPanel", never, { "Orientation": { "alias": "Orientation"; "required": false; }; "Spacing": { "alias": "Spacing"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
@@ -7,6 +7,8 @@ export declare class AppBarButtonComponent extends FrameworkElementComponent {
|
|
|
7
7
|
Icon?: string;
|
|
8
8
|
Click: EventEmitter<any>;
|
|
9
9
|
private get disabled();
|
|
10
|
+
private _flyout?;
|
|
11
|
+
protected onHostPointerEvent(event: Event): void;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppBarButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppBarButtonComponent, "AppBarButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "Text": { "alias": "Text"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; }, { "Click": "Click"; },
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppBarButtonComponent, "AppBarButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "Text": { "alias": "Text"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; }, { "Click": "Click"; }, ["_flyout"], ["*"], true, never>;
|
|
12
14
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { AfterViewInit } from "@angular/core";
|
|
1
2
|
import { FlyoutComponent } from "../dialogs-and-flyouts/Flyout";
|
|
3
|
+
import { FlyoutPresenterAnimation } from "../primitives/FlyoutPresenter";
|
|
4
|
+
import { OverlayRef } from "@angular/cdk/overlay-module.d-CSrPj90C";
|
|
2
5
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MenuFlyoutComponent extends FlyoutComponent {
|
|
4
|
-
|
|
6
|
+
export declare class MenuFlyoutComponent extends FlyoutComponent implements AfterViewInit {
|
|
7
|
+
private _menuClickSubscription?;
|
|
8
|
+
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
9
|
+
protected OnOverlay(overlay: OverlayRef): void;
|
|
10
|
+
private onMenuClick;
|
|
11
|
+
ngOnDestroy(): void;
|
|
5
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuFlyoutComponent, never>;
|
|
6
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuFlyoutComponent, "MenuFlyout", never, {}, {}, never, ["*"], true, never>;
|
|
7
14
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FlexibleConnectedPositionStrategyOrigin, Overlay, OverlayRef } from "@angular/cdk/overlay";
|
|
2
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, Renderer2, ViewContainerRef } from "@angular/core";
|
|
3
|
+
import { FlyoutPresenterAnimation } from "./FlyoutPresenter";
|
|
4
|
+
import { FlyoutPlacementMode } from "../Common";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const PopupTemplate = "<ng-template #template><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></ng-template>";
|
|
7
|
+
export declare abstract class FlyoutBaseComponent implements AfterViewInit, OnDestroy {
|
|
8
|
+
private _viewContainerRef;
|
|
9
|
+
private _overlay;
|
|
10
|
+
private _hostElement;
|
|
11
|
+
protected _renderer: Renderer2;
|
|
12
|
+
Placement: FlyoutPlacementMode;
|
|
13
|
+
Padding?: string;
|
|
14
|
+
HasBackdrop: boolean;
|
|
15
|
+
private _backdropContextMenuSubscription?;
|
|
16
|
+
private _isOpen;
|
|
17
|
+
get IsOpen(): boolean;
|
|
18
|
+
set IsOpen(value: boolean);
|
|
19
|
+
private updatePlacement;
|
|
20
|
+
protected isVisible: boolean;
|
|
21
|
+
IsOpenChange: EventEmitter<boolean>;
|
|
22
|
+
private _target;
|
|
23
|
+
get Target(): FlexibleConnectedPositionStrategyOrigin | null;
|
|
24
|
+
set Target(value: FlexibleConnectedPositionStrategyOrigin | null);
|
|
25
|
+
private _template;
|
|
26
|
+
private get style();
|
|
27
|
+
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
28
|
+
private get positioning();
|
|
29
|
+
private _overlayRef;
|
|
30
|
+
private _templatePortal;
|
|
31
|
+
constructor(_viewContainerRef: ViewContainerRef, _overlay: Overlay, _hostElement: ElementRef, _renderer: Renderer2);
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
ngAfterViewInit(): void;
|
|
34
|
+
protected OnOverlay(overlay: OverlayRef): void;
|
|
35
|
+
Show(): void;
|
|
36
|
+
Hide(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlyoutBaseComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlyoutBaseComponent, "FlyoutBase", never, { "Placement": { "alias": "Placement"; "required": false; }; "Padding": { "alias": "Padding"; "required": false; }; "HasBackdrop": { "alias": "HasBackdrop"; "required": false; }; "IsOpen": { "alias": "IsOpen"; "required": false; }; "Target": { "alias": "Target"; "required": false; }; }, { "IsOpenChange": "IsOpenChange"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type FlyoutPresenterAnimation = 'Default' | 'SlideLeft' | 'SlideRight' | 'SlideUp' | 'SlideDown';
|
|
3
|
+
export declare class FlyoutPresenter {
|
|
4
|
+
static TransitionDuration: number;
|
|
5
|
+
TransitionAnimation: FlyoutPresenterAnimation;
|
|
6
|
+
Padding?: string;
|
|
7
|
+
IsVisible: boolean;
|
|
8
|
+
private get transitionClass();
|
|
9
|
+
private get visible();
|
|
10
|
+
private onContextMenu;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlyoutPresenter, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlyoutPresenter, "FlyoutPresenter", never, { "TransitionAnimation": { "alias": "TransitionAnimation"; "required": false; }; "Padding": { "alias": "Padding"; "required": false; }; "IsVisible": { "alias": "IsVisible"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -26,9 +26,10 @@ export declare abstract class SelectorComponent extends FrameworkElementComponen
|
|
|
26
26
|
SelectedItemChange: EventEmitter<any>;
|
|
27
27
|
DisplayMemberPath?: string;
|
|
28
28
|
SelectedValuePath?: string;
|
|
29
|
-
protected getValue(index: number, item: any)
|
|
29
|
+
protected getValue: (index: number, item: any) => any;
|
|
30
30
|
protected onItemClick(event: Event, index: number, item: any): void;
|
|
31
31
|
GetElement(index: number): HTMLElement | null;
|
|
32
|
+
constructor();
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorComponent, never>;
|
|
33
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectorComponent, "Selector", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "HorizontalContentAlignment": { "alias": "HorizontalContentAlignment"; "required": false; }; "VerticalContentAlignment": { "alias": "VerticalContentAlignment"; "required": false; }; "ItemSource": { "alias": "ItemSource"; "required": false; }; "SelectedIndex": { "alias": "SelectedIndex"; "required": false; }; "SelectedValue": { "alias": "SelectedValue"; "required": false; }; "SelectedItem": { "alias": "SelectedItem"; "required": false; }; "DisplayMemberPath": { "alias": "DisplayMemberPath"; "required": false; }; "SelectedValuePath": { "alias": "SelectedValuePath"; "required": false; }; }, { "SelectedIndexChange": "SelectedIndexChange"; "SelectedValueChange": "SelectedValueChange"; "SelectedItemChange": "SelectedItemChange"; }, ["ItemTemplate"], never, true, never>;
|
|
34
35
|
}
|
|
@@ -9,8 +9,8 @@ export declare class ScrollBarComponent extends FrameworkElementComponent {
|
|
|
9
9
|
StepSize: number;
|
|
10
10
|
private _value;
|
|
11
11
|
get Value(): number;
|
|
12
|
-
ValueChange: EventEmitter<number>;
|
|
13
12
|
set Value(value: number);
|
|
13
|
+
ValueChange: EventEmitter<number>;
|
|
14
14
|
IsEnabled: boolean;
|
|
15
15
|
private _track;
|
|
16
16
|
private _thumb;
|
package/lib/text/NumberBox.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type NumberFormatter = (value: number) => string;
|
|
|
7
7
|
export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
8
8
|
IsEnabled: boolean;
|
|
9
9
|
PlaceholderText: string;
|
|
10
|
+
IsPlaceholderEditable: boolean;
|
|
10
11
|
TextAlignment?: TextAlignment;
|
|
11
12
|
InputMode: NumberInputMode;
|
|
12
13
|
Minimum: number;
|
|
@@ -14,8 +15,10 @@ export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
14
15
|
SmallChange: number;
|
|
15
16
|
LargeChange: number;
|
|
16
17
|
NumberFormatter: NumberFormatter;
|
|
18
|
+
Unit?: string;
|
|
17
19
|
ValueChange: EventEmitter<number>;
|
|
18
20
|
private _input;
|
|
21
|
+
private _flyout;
|
|
19
22
|
private _text;
|
|
20
23
|
get Text(): string;
|
|
21
24
|
private _value;
|
|
@@ -27,10 +30,16 @@ export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
27
30
|
private clampValue;
|
|
28
31
|
protected onIncreaseClick(): void;
|
|
29
32
|
protected onDecreaseClick(): void;
|
|
33
|
+
protected onButtonPress(): void;
|
|
34
|
+
private _blurTimeout;
|
|
35
|
+
private cancelFlyoutDismiss;
|
|
36
|
+
private scheduleFlyoutDismiss;
|
|
30
37
|
protected onBlur(): void;
|
|
31
38
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
39
|
+
private onClick;
|
|
40
|
+
private onFocusIn;
|
|
32
41
|
private updateText;
|
|
33
42
|
private onContextMenu;
|
|
34
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberBoxComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberBoxComponent, "NumberBox", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "PlaceholderText": { "alias": "PlaceholderText"; "required": false; }; "TextAlignment": { "alias": "TextAlignment"; "required": false; }; "InputMode": { "alias": "InputMode"; "required": false; }; "Minimum": { "alias": "Minimum"; "required": false; }; "Maximum": { "alias": "Maximum"; "required": false; }; "SmallChange": { "alias": "SmallChange"; "required": false; }; "LargeChange": { "alias": "LargeChange"; "required": false; }; "NumberFormatter": { "alias": "NumberFormatter"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberBoxComponent, "NumberBox", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "PlaceholderText": { "alias": "PlaceholderText"; "required": false; }; "IsPlaceholderEditable": { "alias": "IsPlaceholderEditable"; "required": false; }; "TextAlignment": { "alias": "TextAlignment"; "required": false; }; "InputMode": { "alias": "InputMode"; "required": false; }; "Minimum": { "alias": "Minimum"; "required": false; }; "Maximum": { "alias": "Maximum"; "required": false; }; "SmallChange": { "alias": "SmallChange"; "required": false; }; "LargeChange": { "alias": "LargeChange"; "required": false; }; "NumberFormatter": { "alias": "NumberFormatter"; "required": false; }; "Unit": { "alias": "Unit"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
|
|
36
45
|
}
|
package/lib/text/TextBlock.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ export declare class TextBlockComponent extends FrameworkElementComponent {
|
|
|
11
11
|
TextAlignment?: TextAlignment;
|
|
12
12
|
IsTextSelectionEnabled?: XamlBoolean;
|
|
13
13
|
TextDecorations?: TextDecorations;
|
|
14
|
-
TextTrimming
|
|
14
|
+
TextTrimming: TextTrimming;
|
|
15
15
|
TextWrapping: TextWrapping;
|
|
16
|
+
protected get width(): string | undefined;
|
|
17
|
+
protected get minWidth(): string | undefined;
|
|
16
18
|
private get fontWeight();
|
|
17
19
|
static ToFontWeight(value: FontWeights): 100 | 900 | 700 | 950 | 800 | 200 | 300 | 500 | 400 | 600 | 350;
|
|
18
20
|
private get userSelect();
|
package/lib/text/TextBox.d.ts
CHANGED
|
@@ -5,14 +5,18 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class TextBoxComponent extends FrameworkElementComponent {
|
|
6
6
|
IsEnabled: boolean;
|
|
7
7
|
PlaceholderText: string;
|
|
8
|
-
TextChange: EventEmitter<string>;
|
|
9
8
|
TextAlignment?: TextAlignment;
|
|
10
9
|
TextWrapping: TextWrapping;
|
|
10
|
+
private _input;
|
|
11
11
|
private _text;
|
|
12
12
|
get Text(): string;
|
|
13
13
|
set Text(value: string);
|
|
14
|
-
|
|
14
|
+
TextChange: EventEmitter<string>;
|
|
15
|
+
protected onInput(event: Event): void;
|
|
16
|
+
private get disabled();
|
|
17
|
+
private onClick;
|
|
15
18
|
private onContextMenu;
|
|
19
|
+
Focus(): void;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextBoxComponent, never>;
|
|
17
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextBoxComponent, "TextBox", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "PlaceholderText": { "alias": "PlaceholderText"; "required": false; }; "TextAlignment": { "alias": "TextAlignment"; "required": false; }; "TextWrapping": { "alias": "TextWrapping"; "required": false; }; "Text": { "alias": "Text"; "required": false; }; }, { "TextChange": "TextChange"; }, never, never, true, never>;
|
|
18
22
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './lib/basic-input/ColorPicker';
|
|
|
4
4
|
export * from './lib/basic-input/ComboBox';
|
|
5
5
|
export * from './lib/basic-input/DropDownButton';
|
|
6
6
|
export * from './lib/basic-input/RadioButton';
|
|
7
|
+
export * from './lib/basic-input/RadioToggleButton';
|
|
7
8
|
export * from './lib/basic-input/RepeatButton';
|
|
8
9
|
export * from './lib/basic-input/Slider';
|
|
9
10
|
export * from './lib/basic-input/SplitButton';
|
|
@@ -25,7 +26,8 @@ export * from './lib/menus-and-toolbars/MenuFlyout';
|
|
|
25
26
|
export * from './lib/menus-and-toolbars/MenuFlyoutItem';
|
|
26
27
|
export * from './lib/menus-and-toolbars/MenuFlyoutItemBase';
|
|
27
28
|
export * from './lib/menus-and-toolbars/MenuFlyoutSeparator';
|
|
28
|
-
export * from './lib/primitives/
|
|
29
|
+
export * from './lib/primitives/FlyoutBase';
|
|
30
|
+
export * from './lib/primitives/FlyoutPresenter';
|
|
29
31
|
export * from './lib/primitives/Selector';
|
|
30
32
|
export * from './lib/scrolling/ScrollBar';
|
|
31
33
|
export * from './lib/scrolling/ScrollViewer';
|
package/styles/XamlGlobals.css
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
--OverlayCornerRadius: 8px;
|
|
14
14
|
--AcrylicBlur: blur(12px);
|
|
15
15
|
|
|
16
|
+
--SystemFontSize: 10pt;
|
|
17
|
+
--SystemFontFamily: 'Segoe UI', Arial, sans-serif;
|
|
16
18
|
--SymbolFontFamily: 'Segoe Fluent Icons', 'Segoe MDL2 Assets';
|
|
17
19
|
--SystemAccentColor: #0078d4;
|
|
18
20
|
|
|
@@ -121,4 +123,20 @@
|
|
|
121
123
|
|
|
122
124
|
--DividerStrokeColorDefault: #0000000F;
|
|
123
125
|
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cdk-overlay-dark-backdrop {
|
|
129
|
+
background: transparent !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cdk-overlay-pane {
|
|
133
|
+
display: grid !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:root{
|
|
137
|
+
&, & * {
|
|
138
|
+
font-family: var(--SystemFontFamily);
|
|
139
|
+
font-size: var(--SystemFontSize);
|
|
140
|
+
color: var(--TextFillColorPrimary);
|
|
141
|
+
}
|
|
124
142
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PopupComponent {
|
|
4
|
-
private readonly _title;
|
|
5
|
-
protected isRendered: boolean;
|
|
6
|
-
private _isRenderedTimeout;
|
|
7
|
-
private _isOpen;
|
|
8
|
-
get IsOpen(): boolean;
|
|
9
|
-
set IsOpen(value: boolean);
|
|
10
|
-
IsOpenChange: EventEmitter<boolean>;
|
|
11
|
-
VerticalOffset: number;
|
|
12
|
-
HorizontalOffset: number;
|
|
13
|
-
private _container?;
|
|
14
|
-
Show(): void;
|
|
15
|
-
Hide(): void;
|
|
16
|
-
protected get containerClass(): "flyout-open" | undefined;
|
|
17
|
-
protected onBackdropClick(event: Event): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "Popup", never, { "IsOpen": { "alias": "IsOpen"; "required": false; }; "VerticalOffset": { "alias": "VerticalOffset"; "required": false; }; "HorizontalOffset": { "alias": "HorizontalOffset"; "required": false; }; }, { "IsOpenChange": "IsOpenChange"; }, never, ["*"], true, never>;
|
|
20
|
-
}
|