xaml-ui 1.0.4 → 1.0.5
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 +1013 -453
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Color.d.ts +17 -0
- package/lib/basic-input/Button.d.ts +2 -2
- package/lib/basic-input/ColorPicker.d.ts +20 -0
- package/lib/basic-input/RepeatButton.d.ts +13 -0
- package/lib/basic-input/SplitButton.d.ts +13 -0
- package/lib/dialogs-and-flyouts/ContextFlyout.d.ts +15 -0
- package/lib/layout/StackPanel.d.ts +2 -2
- package/lib/media/Image.d.ts +13 -0
- package/lib/menus-and-toolbars/AppBarButton.d.ts +12 -0
- package/lib/menus-and-toolbars/CommandBar.d.ts +6 -0
- package/lib/menus-and-toolbars/MenuFlyout.d.ts +7 -0
- package/lib/menus-and-toolbars/MenuFlyoutItem.d.ts +13 -0
- package/lib/menus-and-toolbars/MenuFlyoutItemBase.d.ts +2 -0
- package/lib/menus-and-toolbars/MenuFlyoutSeparator.d.ts +6 -0
- package/lib/primitives/Popup.d.ts +3 -2
- package/lib/text/NumberBox.d.ts +36 -0
- package/lib/text/TextBlock.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +13 -0
package/lib/Color.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Color = number;
|
|
2
|
+
export declare function colorToString(value: Color): string;
|
|
3
|
+
export declare function stringToColor(value: string): Color;
|
|
4
|
+
export type ColorRGBA = {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
a: number;
|
|
9
|
+
};
|
|
10
|
+
export type ColorHSLA = {
|
|
11
|
+
h: number;
|
|
12
|
+
s: number;
|
|
13
|
+
l: number;
|
|
14
|
+
a: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function colorToRgb(value: Color): ColorRGBA;
|
|
17
|
+
export declare function rgbToHsl(rgb: ColorRGBA): ColorHSLA;
|
|
@@ -12,8 +12,8 @@ export declare class ButtonComponent extends BorderComponent {
|
|
|
12
12
|
private readonly type;
|
|
13
13
|
private get disabled();
|
|
14
14
|
private get flyoutOpen();
|
|
15
|
-
private
|
|
15
|
+
private _flyout?;
|
|
16
16
|
protected onHostPointerEvent(event: Event): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "Button", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "HorizontalContentAlignment": { "alias": "HorizontalContentAlignment"; "required": false; }; "VerticalContentAlignment": { "alias": "VerticalContentAlignment"; "required": false; }; }, { "Click": "Click"; }, ["
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "Button", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "HorizontalContentAlignment": { "alias": "HorizontalContentAlignment"; "required": false; }; "VerticalContentAlignment": { "alias": "VerticalContentAlignment"; "required": false; }; }, { "Click": "Click"; }, ["_flyout"], ["*"], true, never>;
|
|
19
19
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import { Color } from "../Color";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ColorPickerComponent extends FrameworkElementComponent implements AfterViewInit {
|
|
6
|
+
private _color;
|
|
7
|
+
get Color(): Color;
|
|
8
|
+
set Color(value: Color);
|
|
9
|
+
private setColor;
|
|
10
|
+
ColorChange: EventEmitter<number>;
|
|
11
|
+
private _canvas;
|
|
12
|
+
private _selector;
|
|
13
|
+
private _context;
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
16
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
17
|
+
private updateSelectorPosition;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "ColorPicker", never, { "Color": { "alias": "Color"; "required": false; }; }, { "ColorChange": "ColorChange"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonComponent } from "./Button";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RepeatButtonComponent extends ButtonComponent {
|
|
4
|
+
Delay: number;
|
|
5
|
+
Interval: number;
|
|
6
|
+
private _delayTimer;
|
|
7
|
+
private _intervalTimer;
|
|
8
|
+
private onPointerDown;
|
|
9
|
+
private onPointerUp;
|
|
10
|
+
protected onHostPointerEvent(event: Event): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatButtonComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RepeatButtonComponent, "RepeatButton", never, { "Delay": { "alias": "Delay"; "required": false; }; "Interval": { "alias": "Interval"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SplitButtonComponent extends FrameworkElementComponent {
|
|
5
|
+
IsEnabled: boolean;
|
|
6
|
+
Click: EventEmitter<any>;
|
|
7
|
+
private _popup?;
|
|
8
|
+
protected get buttonClass(): "flyout-open" | undefined;
|
|
9
|
+
protected onButtonClick(): void;
|
|
10
|
+
protected onDropDownClick(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonComponent, "SplitButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; }, { "Click": "Click"; }, ["_popup"], ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ContextFlyoutDirective implements AfterViewInit {
|
|
4
|
+
private _hostComponent;
|
|
5
|
+
private _viewContainer;
|
|
6
|
+
private _flyout?;
|
|
7
|
+
constructor(_hostComponent: ElementRef, _viewContainer: ViewContainerRef);
|
|
8
|
+
private _positionX;
|
|
9
|
+
private _positionY;
|
|
10
|
+
private get style();
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
private onContextMenu;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextFlyoutDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextFlyoutDirective, "[ContextFlyout]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -3,8 +3,8 @@ import { PanelComponent } from "./Panel";
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class StackPanelComponent extends PanelComponent {
|
|
5
5
|
Orientation: Orientation;
|
|
6
|
-
Spacing: number | string;
|
|
7
|
-
private get
|
|
6
|
+
Spacing: number | string | undefined;
|
|
7
|
+
private get gridAutoColumns();
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<StackPanelComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<StackPanelComponent, "StackPanel", never, { "Orientation": { "alias": "Orientation"; "required": false; }; "Spacing": { "alias": "Spacing"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Stretch } from "../Common";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ImageComponent extends FrameworkElementComponent {
|
|
5
|
+
Source?: string;
|
|
6
|
+
Stretch: Stretch;
|
|
7
|
+
protected get imageStyle(): {
|
|
8
|
+
width: string | undefined;
|
|
9
|
+
height: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "Image", never, { "Source": { "alias": "Source"; "required": false; }; "Stretch": { "alias": "Stretch"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AppBarButtonComponent extends FrameworkElementComponent {
|
|
5
|
+
IsEnabled: boolean;
|
|
6
|
+
Text?: string;
|
|
7
|
+
Icon?: string;
|
|
8
|
+
Click: EventEmitter<any>;
|
|
9
|
+
private get disabled();
|
|
10
|
+
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"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CommandBarComponent extends FrameworkElementComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandBarComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandBarComponent, "CommandBar", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlyoutComponent } from "../dialogs-and-flyouts/Flyout";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MenuFlyoutComponent extends FlyoutComponent {
|
|
4
|
+
protected onMenuClick(event: Event): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuFlyoutComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuFlyoutComponent, "MenuFlyout", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { MenuFlyoutItemBase } from "./MenuFlyoutItemBase";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MenuFlyoutItemComponent extends MenuFlyoutItemBase {
|
|
5
|
+
IsEnabled: boolean;
|
|
6
|
+
Text: string;
|
|
7
|
+
Icon?: string;
|
|
8
|
+
Click: EventEmitter<any>;
|
|
9
|
+
private get disabled();
|
|
10
|
+
private onClick;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuFlyoutItemComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuFlyoutItemComponent, "MenuFlyoutItem", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "Text": { "alias": "Text"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; }, { "Click": "Click"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuFlyoutItemBase } from "./MenuFlyoutItemBase";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MenuFlyoutSeparator extends MenuFlyoutItemBase {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuFlyoutSeparator, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuFlyoutSeparator, "MenuFlyoutSeparator", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PopupComponent {
|
|
4
|
-
|
|
4
|
+
private readonly _title;
|
|
5
|
+
protected isRendered: boolean;
|
|
5
6
|
private _isRenderedTimeout;
|
|
6
7
|
private _isOpen;
|
|
7
8
|
get IsOpen(): boolean;
|
|
@@ -12,7 +13,7 @@ export declare class PopupComponent {
|
|
|
12
13
|
private _container?;
|
|
13
14
|
Show(): void;
|
|
14
15
|
Hide(): void;
|
|
15
|
-
protected get containerClass(): "
|
|
16
|
+
protected get containerClass(): "flyout-open" | undefined;
|
|
16
17
|
protected onBackdropClick(event: Event): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
|
|
18
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>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import { TextAlignment } from "../Common";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type NumberInputMode = 'Float' | 'Integer';
|
|
6
|
+
export type NumberFormatter = (value: number) => string;
|
|
7
|
+
export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
8
|
+
IsEnabled: boolean;
|
|
9
|
+
PlaceholderText: string;
|
|
10
|
+
TextAlignment?: TextAlignment;
|
|
11
|
+
InputMode: NumberInputMode;
|
|
12
|
+
Minimum: number;
|
|
13
|
+
Maximum: number;
|
|
14
|
+
SmallChange: number;
|
|
15
|
+
LargeChange: number;
|
|
16
|
+
NumberFormatter: NumberFormatter;
|
|
17
|
+
ValueChange: EventEmitter<number>;
|
|
18
|
+
private _input;
|
|
19
|
+
private _text;
|
|
20
|
+
get Text(): string;
|
|
21
|
+
private _value;
|
|
22
|
+
get Value(): number;
|
|
23
|
+
set Value(value: number);
|
|
24
|
+
private setValue;
|
|
25
|
+
constructor();
|
|
26
|
+
protected onChange(): void;
|
|
27
|
+
private clampValue;
|
|
28
|
+
protected onIncreaseClick(): void;
|
|
29
|
+
protected onDecreaseClick(): void;
|
|
30
|
+
protected onBlur(): void;
|
|
31
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
32
|
+
private updateText;
|
|
33
|
+
private onContextMenu;
|
|
34
|
+
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>;
|
|
36
|
+
}
|
package/lib/text/TextBlock.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class TextBlockComponent extends FrameworkElementComponent {
|
|
|
14
14
|
TextTrimming?: TextTrimming;
|
|
15
15
|
TextWrapping: TextWrapping;
|
|
16
16
|
private get fontWeight();
|
|
17
|
-
static ToFontWeight(value: FontWeights): 900 | 700 | 950 | 800 | 200 | 300 | 500 | 400 | 600 | 350
|
|
17
|
+
static ToFontWeight(value: FontWeights): 100 | 900 | 700 | 950 | 800 | 200 | 300 | 500 | 400 | 600 | 350;
|
|
18
18
|
private get userSelect();
|
|
19
19
|
private get textDecorationLine();
|
|
20
20
|
private get textOverflow();
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
export * from './lib/basic-input/Button';
|
|
2
2
|
export * from './lib/basic-input/CheckBox';
|
|
3
|
+
export * from './lib/basic-input/ColorPicker';
|
|
3
4
|
export * from './lib/basic-input/ComboBox';
|
|
4
5
|
export * from './lib/basic-input/DropDownButton';
|
|
5
6
|
export * from './lib/basic-input/RadioButton';
|
|
7
|
+
export * from './lib/basic-input/RepeatButton';
|
|
6
8
|
export * from './lib/basic-input/Slider';
|
|
9
|
+
export * from './lib/basic-input/SplitButton';
|
|
7
10
|
export * from './lib/basic-input/ToggleButton';
|
|
8
11
|
export * from './lib/basic-input/ToggleSwitch';
|
|
9
12
|
export * from './lib/collections/ListBox';
|
|
10
13
|
export * from './lib/collections/ListView';
|
|
14
|
+
export * from './lib/dialogs-and-flyouts/ContextFlyout';
|
|
11
15
|
export * from './lib/dialogs-and-flyouts/Flyout';
|
|
12
16
|
export * from './lib/icons/FontIcon';
|
|
13
17
|
export * from './lib/layout/Border';
|
|
14
18
|
export * from './lib/layout/Grid';
|
|
15
19
|
export * from './lib/layout/Panel';
|
|
16
20
|
export * from './lib/layout/StackPanel';
|
|
21
|
+
export * from './lib/media/Image';
|
|
22
|
+
export * from './lib/menus-and-toolbars/AppBarButton';
|
|
23
|
+
export * from './lib/menus-and-toolbars/CommandBar';
|
|
24
|
+
export * from './lib/menus-and-toolbars/MenuFlyout';
|
|
25
|
+
export * from './lib/menus-and-toolbars/MenuFlyoutItem';
|
|
26
|
+
export * from './lib/menus-and-toolbars/MenuFlyoutItemBase';
|
|
27
|
+
export * from './lib/menus-and-toolbars/MenuFlyoutSeparator';
|
|
17
28
|
export * from './lib/primitives/Popup';
|
|
18
29
|
export * from './lib/primitives/Selector';
|
|
19
30
|
export * from './lib/scrolling/ScrollBar';
|
|
20
31
|
export * from './lib/scrolling/ScrollViewer';
|
|
21
32
|
export * from './lib/status-and-info/ToolTipService';
|
|
33
|
+
export * from './lib/text/NumberBox';
|
|
22
34
|
export * from './lib/text/TextBlock';
|
|
23
35
|
export * from './lib/text/TextBox';
|
|
36
|
+
export * from './lib/Color';
|
|
24
37
|
export * from './lib/Common';
|
|
25
38
|
export * from './lib/FrameworkElement';
|
|
26
39
|
export * from './lib/XamlRoot';
|