xaml-ui 1.0.30 → 1.0.34
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 +2003 -1330
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Color.d.ts +40 -16
- package/lib/Common.d.ts +3 -2
- package/lib/FrameworkElement.d.ts +3 -1
- package/lib/Math.d.ts +1 -0
- package/lib/basic-input/Button.d.ts +4 -1
- package/lib/basic-input/ColorPicker.d.ts +8 -10
- package/lib/basic-input/ComboBox.d.ts +9 -2
- package/lib/basic-input/DropDownButton.d.ts +1 -1
- package/lib/basic-input/RepeatButton.d.ts +2 -2
- package/lib/basic-input/SplitButton.d.ts +4 -1
- package/lib/layout/StackPanel.d.ts +2 -0
- package/lib/primitives/ColorSpectrum.d.ts +30 -0
- package/lib/primitives/FlyoutBase.d.ts +7 -6
- package/lib/primitives/FlyoutPresenter.d.ts +0 -1
- package/lib/primitives/Selector.d.ts +6 -2
- package/lib/scrolling/ScrollViewer.d.ts +25 -3
- package/lib/status-and-info/ToolTip.d.ts +18 -0
- package/lib/status-and-info/ToolTipService.d.ts +32 -2
- package/lib/text/NumberBox.d.ts +4 -2
- package/lib/text/TextBox.d.ts +1 -0
- package/package.json +2 -1
- package/public-api.d.ts +2 -0
package/lib/Color.d.ts
CHANGED
|
@@ -1,17 +1,41 @@
|
|
|
1
1
|
export type Color = number;
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
export declare function FormatColor(value: Color): string;
|
|
3
|
+
export declare function ParseColor(value: string): Color;
|
|
4
|
+
export declare class ColorRgba {
|
|
5
|
+
R: number;
|
|
6
|
+
G: number;
|
|
7
|
+
B: number;
|
|
8
|
+
A: number;
|
|
9
|
+
constructor(R: number, G: number, B: number, A: number);
|
|
10
|
+
ToNumber(): Color;
|
|
11
|
+
static FromNumber(value: Color): ColorRgba;
|
|
12
|
+
Clone(): ColorRgba;
|
|
13
|
+
static AreNearEqual(a: ColorRgba, b: ColorRgba): boolean;
|
|
14
|
+
ToHsla(): ColorHsla;
|
|
15
|
+
ToHsva(): ColorHsva;
|
|
16
|
+
ToString(): string;
|
|
17
|
+
}
|
|
18
|
+
export declare class ColorHsla {
|
|
19
|
+
H: number;
|
|
20
|
+
S: number;
|
|
21
|
+
L: number;
|
|
22
|
+
A: number;
|
|
23
|
+
constructor(H: number, S: number, L: number, A: number);
|
|
24
|
+
static FromRgba(rgba: ColorRgba): ColorHsla;
|
|
25
|
+
ToRgba(): ColorRgba;
|
|
26
|
+
Clone(): ColorHsla;
|
|
27
|
+
static AreNearEqual(a: ColorHsla, b: ColorHsla): boolean;
|
|
28
|
+
ToString(): string;
|
|
29
|
+
}
|
|
30
|
+
export declare class ColorHsva {
|
|
31
|
+
H: number;
|
|
32
|
+
S: number;
|
|
33
|
+
V: number;
|
|
34
|
+
A: number;
|
|
35
|
+
constructor(H: number, S: number, V: number, A: number);
|
|
36
|
+
static FromRgba(rgba: ColorRgba): ColorHsva;
|
|
37
|
+
ToRgba(): ColorRgba;
|
|
38
|
+
Clone(): ColorHsva;
|
|
39
|
+
static AreNearEqual(a: ColorHsva, b: ColorHsva): boolean;
|
|
40
|
+
ToString(): string;
|
|
41
|
+
}
|
package/lib/Common.d.ts
CHANGED
|
@@ -11,9 +11,10 @@ export type TextDecorations = 'None' | 'Underline' | 'Strikethrough';
|
|
|
11
11
|
export type TextTrimming = 'None' | 'CharacterEllipsis' | 'Clip';
|
|
12
12
|
export type TextWrapping = 'NoWrap' | 'Wrap';
|
|
13
13
|
export type FlyoutPlacementMode = 'Top' | 'Bottom' | 'Left' | 'Right' | 'TopEdgeAlignedLeft' | 'TopEdgeAlignedRight' | 'BottomEdgeAlignedLeft' | 'BottomEdgeAlignedRight' | 'LeftEdgeAlignedTop' | 'LeftEdgeAlignedBottom' | 'RightEdgeAlignedTop' | 'RightEdgeAlignedBottom' | 'Cover';
|
|
14
|
+
export type PlacementMode = 'Top' | 'Bottom' | 'Left' | 'Right' | 'Mouse';
|
|
14
15
|
export type Stretch = 'None' | 'Fill' | 'Uniform' | 'UniformToFill';
|
|
15
16
|
export type UpdateTrigger = 'PropertyChanged' | 'LostFocus';
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function ToJustification(value: HorizontalAlignment): string;
|
|
18
|
+
export declare function ToAlignment(value: VerticalAlignment): "flex-start" | "center" | "flex-end" | "stretch";
|
|
18
19
|
export declare function resume_after(timeout: number): Promise<void>;
|
|
19
20
|
export declare function resume_on_event<T>(event: EventEmitter<T>): Promise<void>;
|
|
@@ -12,13 +12,15 @@ export declare abstract class FrameworkElementComponent {
|
|
|
12
12
|
Margin?: string;
|
|
13
13
|
Padding?: string;
|
|
14
14
|
Opacity?: string | number;
|
|
15
|
-
protected get overflow(): string;
|
|
15
|
+
protected get overflow(): string | undefined;
|
|
16
16
|
protected get minWidth(): string | undefined;
|
|
17
17
|
protected get minHeight(): string | undefined;
|
|
18
18
|
protected get width(): string | undefined;
|
|
19
19
|
protected get height(): string | undefined;
|
|
20
20
|
protected get justifySelf(): string;
|
|
21
21
|
protected get alignSelf(): "flex-start" | "center" | "flex-end" | "stretch";
|
|
22
|
+
private static _isSafari?;
|
|
23
|
+
static get IsSafari(): boolean;
|
|
22
24
|
private static _nextId;
|
|
23
25
|
protected readonly _id: number;
|
|
24
26
|
static readonly DefaultStyles = ":host {\n display: grid;\n position: relative;\n }";
|
package/lib/Math.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function AreNearEqual(a: number, b: number, tolerance: number): boolean;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from "@angular/core";
|
|
|
2
2
|
import { BorderComponent } from "../layout/Border";
|
|
3
3
|
import { HorizontalAlignment, VerticalAlignment } from "../Common";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const ButtonTemplate = "<
|
|
5
|
+
export declare const ButtonTemplate = "<TextBlock *ngIf=\"Content !== undefined\" [Text]=\"Content\"/>\n <ng-content/>";
|
|
6
6
|
export declare class ButtonComponent extends BorderComponent {
|
|
7
7
|
IsEnabled: boolean;
|
|
8
8
|
Content?: string;
|
|
@@ -12,6 +12,9 @@ export declare class ButtonComponent extends BorderComponent {
|
|
|
12
12
|
private get alignContent();
|
|
13
13
|
private get justifyContent();
|
|
14
14
|
private readonly type;
|
|
15
|
+
protected isPressed: boolean;
|
|
16
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
17
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
15
18
|
private get disabled();
|
|
16
19
|
private get flyoutOpen();
|
|
17
20
|
private _flyout?;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from "@angular/core";
|
|
2
2
|
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
3
|
import { Color } from "../Color";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ColorPickerComponent extends FrameworkElementComponent implements AfterViewInit {
|
|
6
|
-
private
|
|
6
|
+
private _host;
|
|
7
|
+
IsAlphaEnabled: boolean;
|
|
8
|
+
IsBrightnessEnabled: boolean;
|
|
9
|
+
protected _color: Color;
|
|
7
10
|
get Color(): Color;
|
|
8
11
|
set Color(value: Color);
|
|
9
|
-
private setColor;
|
|
10
12
|
ColorChange: EventEmitter<number>;
|
|
11
|
-
|
|
12
|
-
private _selector;
|
|
13
|
-
private _context;
|
|
13
|
+
constructor(_host: ElementRef<HTMLElement>);
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
|
-
|
|
16
|
-
protected onPointerMove(event: PointerEvent): void;
|
|
17
|
-
private updateSelectorPosition;
|
|
15
|
+
private updateChannelColors;
|
|
18
16
|
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>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "ColorPicker", never, { "IsAlphaEnabled": { "alias": "IsAlphaEnabled"; "required": false; }; "IsBrightnessEnabled": { "alias": "IsBrightnessEnabled"; "required": false; }; "Color": { "alias": "Color"; "required": false; }; }, { "ColorChange": "ColorChange"; }, never, never, true, never>;
|
|
20
18
|
}
|
|
@@ -5,6 +5,13 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class ComboBoxComponent extends SelectorComponent implements AfterViewInit {
|
|
6
6
|
private _changeDetector;
|
|
7
7
|
private _host;
|
|
8
|
+
IsTextSearchEnabled: boolean;
|
|
9
|
+
protected get tabIndex(): "0" | null;
|
|
10
|
+
private readonly _textSearchTimeout;
|
|
11
|
+
private _searchText;
|
|
12
|
+
private _lastSearchTime;
|
|
13
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
14
|
+
private getDisplayText;
|
|
8
15
|
get item(): any;
|
|
9
16
|
get index(): number;
|
|
10
17
|
private _selector?;
|
|
@@ -13,7 +20,7 @@ export declare class ComboBoxComponent extends SelectorComponent implements Afte
|
|
|
13
20
|
protected target: FlexibleConnectedPositionStrategyOrigin | null;
|
|
14
21
|
protected onIsOpenChanged(value: boolean): void;
|
|
15
22
|
ngAfterViewInit(): void;
|
|
16
|
-
|
|
23
|
+
protected onItemClicked(): void;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboBoxComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "ComboBox", never, {}, {}, never, never, true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "ComboBox", never, { "IsTextSearchEnabled": { "alias": "IsTextSearchEnabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
26
|
}
|
|
@@ -2,5 +2,5 @@ import { ButtonComponent } from "./Button";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DropDownButtonComponent extends ButtonComponent {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownButtonComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "DropDownButton", never, {}, {}, never, ["
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "DropDownButton", never, {}, {}, never, [":not(Flyout):not(MenuFlyout)", "Flyout, MenuFlyout"], true, never>;
|
|
6
6
|
}
|
|
@@ -6,8 +6,8 @@ export declare class RepeatButtonComponent extends ButtonComponent implements On
|
|
|
6
6
|
Interval: number;
|
|
7
7
|
private _delayTimer;
|
|
8
8
|
private _intervalTimer;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
10
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
11
11
|
private clearTimers;
|
|
12
12
|
protected onClick(event: Event): void;
|
|
13
13
|
ngOnDestroy(): void;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import { VerticalAlignment, HorizontalAlignment } from "../Common";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SplitButtonComponent extends FrameworkElementComponent {
|
|
5
6
|
IsEnabled: boolean;
|
|
7
|
+
HorizontalContentAlignment: HorizontalAlignment;
|
|
8
|
+
VerticalContentAlignment: VerticalAlignment;
|
|
6
9
|
Click: EventEmitter<any>;
|
|
7
10
|
private _popup?;
|
|
8
11
|
protected get buttonClass(): "flyout-open" | undefined;
|
|
9
12
|
protected onButtonClick(): void;
|
|
10
13
|
protected onDropDownClick(): void;
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonComponent, "SplitButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; }, { "Click": "Click"; }, ["_popup"], ["*"], true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonComponent, "SplitButton", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "HorizontalContentAlignment": { "alias": "HorizontalContentAlignment"; "required": false; }; "VerticalContentAlignment": { "alias": "VerticalContentAlignment"; "required": false; }; }, { "Click": "Click"; }, ["_popup"], ["*"], true, never>;
|
|
13
16
|
}
|
|
@@ -7,6 +7,8 @@ export declare class StackPanelComponent extends PanelComponent {
|
|
|
7
7
|
private get gridAutoFlow();
|
|
8
8
|
private get gridAutoRows();
|
|
9
9
|
private get gridAutoColumns();
|
|
10
|
+
private get alignContent();
|
|
11
|
+
private get justifyContent();
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<StackPanelComponent, never>;
|
|
11
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<StackPanelComponent, "StackPanel", never, { "Orientation": { "alias": "Orientation"; "required": false; }; "Spacing": { "alias": "Spacing"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
14
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
3
|
+
import { Color, ColorHsva } from "../Color";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ColorSpectrumComponent extends FrameworkElementComponent implements AfterViewInit {
|
|
6
|
+
private _color;
|
|
7
|
+
get HsvColor(): ColorHsva;
|
|
8
|
+
set HsvColor(value: ColorHsva);
|
|
9
|
+
HsvColorChange: EventEmitter<ColorHsva>;
|
|
10
|
+
get Color(): Color;
|
|
11
|
+
set Color(value: Color);
|
|
12
|
+
ColorChange: EventEmitter<number>;
|
|
13
|
+
get Brightness(): number;
|
|
14
|
+
set Brightness(value: number);
|
|
15
|
+
get Alpha(): number;
|
|
16
|
+
set Alpha(value: number);
|
|
17
|
+
private _ring;
|
|
18
|
+
private _selector;
|
|
19
|
+
static _selectorInset: number;
|
|
20
|
+
protected get selectorInset(): number;
|
|
21
|
+
protected get ringSize(): string;
|
|
22
|
+
private get center();
|
|
23
|
+
private get radius();
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
26
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
27
|
+
private updateSelectorPosition;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorSpectrumComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorSpectrumComponent, "ColorSpectrum", never, { "Color": { "alias": "Color"; "required": false; }; "Brightness": { "alias": "Brightness"; "required": false; }; "Alpha": { "alias": "Alpha"; "required": false; }; }, { "HsvColorChange": "HsvColorChange"; "ColorChange": "ColorChange"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FlexibleConnectedPositionStrategyOrigin, Overlay, OverlayRef } from "@angular/cdk/overlay";
|
|
2
|
-
import { ElementRef, EventEmitter, OnDestroy, Renderer2, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2, ViewContainerRef } from "@angular/core";
|
|
3
3
|
import { FlyoutPresenterAnimation } from "./FlyoutPresenter";
|
|
4
4
|
import { FlyoutPlacementMode } from "../Common";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const PopupTemplate = "<ng-template #template><XamlRoot><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></XamlRoot></ng-template>";
|
|
7
7
|
export declare abstract class FlyoutBaseComponent implements OnDestroy {
|
|
8
|
-
private _viewContainerRef;
|
|
9
|
-
private _overlay;
|
|
10
|
-
private _hostElement;
|
|
11
|
-
|
|
8
|
+
private readonly _viewContainerRef;
|
|
9
|
+
private readonly _overlay;
|
|
10
|
+
private readonly _hostElement;
|
|
11
|
+
private readonly _changeDetector;
|
|
12
|
+
protected readonly _renderer: Renderer2;
|
|
12
13
|
Placement: FlyoutPlacementMode;
|
|
13
14
|
Padding?: string;
|
|
14
15
|
HasBackdrop: boolean;
|
|
@@ -29,7 +30,7 @@ export declare abstract class FlyoutBaseComponent implements OnDestroy {
|
|
|
29
30
|
private get style();
|
|
30
31
|
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
31
32
|
private get positioning();
|
|
32
|
-
constructor(_viewContainerRef: ViewContainerRef, _overlay: Overlay, _hostElement: ElementRef, _renderer: Renderer2);
|
|
33
|
+
constructor(_viewContainerRef: ViewContainerRef, _overlay: Overlay, _hostElement: ElementRef, _changeDetector: ChangeDetectorRef, _renderer: Renderer2);
|
|
33
34
|
ngOnDestroy(): void;
|
|
34
35
|
protected OnOverlay(overlay: OverlayRef): void;
|
|
35
36
|
Show(): void;
|
|
@@ -6,7 +6,6 @@ export declare class FlyoutPresenter {
|
|
|
6
6
|
Padding?: string;
|
|
7
7
|
IsVisible: boolean;
|
|
8
8
|
private get transitionClass();
|
|
9
|
-
private get visible();
|
|
10
9
|
private onContextMenu;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlyoutPresenter, never>;
|
|
12
11
|
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>;
|
|
@@ -4,7 +4,10 @@ import { HorizontalAlignment, VerticalAlignment } from "../Common";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare const SelectorItemTemplate = "<ng-container *ngIf=\"ItemTemplate\">\n <ng-container [ngTemplateOutlet]=\"ItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\" [ngTemplateOutletInjector]=\"container.Injector\" />\n </ng-container>\n <ng-container *ngIf=\"!ItemTemplate\">{{ DisplayMemberPath && item !== null ? item[DisplayMemberPath] : item }}</ng-container>";
|
|
6
6
|
export declare abstract class SelectorComponent extends FrameworkElementComponent {
|
|
7
|
-
|
|
7
|
+
private _contentItemTemplate?;
|
|
8
|
+
private _inputItemTemplate?;
|
|
9
|
+
set ItemTemplate(value: TemplateRef<any> | undefined);
|
|
10
|
+
get ItemTemplate(): TemplateRef<any> | undefined;
|
|
8
11
|
IsEnabled: boolean;
|
|
9
12
|
HorizontalContentAlignment: HorizontalAlignment;
|
|
10
13
|
VerticalContentAlignment: VerticalAlignment;
|
|
@@ -27,9 +30,10 @@ export declare abstract class SelectorComponent extends FrameworkElementComponen
|
|
|
27
30
|
DisplayMemberPath?: string;
|
|
28
31
|
SelectedValuePath?: string;
|
|
29
32
|
protected getValue: (index: number, item: any) => any;
|
|
33
|
+
ItemClick: EventEmitter<number>;
|
|
30
34
|
protected onItemClick(event: Event, index: number, item: any): void;
|
|
31
35
|
GetElement(index: number): HTMLElement | null;
|
|
32
36
|
constructor();
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorComponent, never>;
|
|
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"; }, ["
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectorComponent, "Selector", never, { "ItemTemplate": { "alias": "ItemTemplate"; "required": false; }; "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"; "ItemClick": "ItemClick"; }, ["_contentItemTemplate"], never, true, never>;
|
|
35
39
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { FrameworkElementComponent } from "../FrameworkElement";
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef } from "@angular/core";
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, NgZone, OnDestroy } from "@angular/core";
|
|
3
3
|
import { ScrollMode } from "../Common";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ScrollViewerComponent extends FrameworkElementComponent implements AfterViewInit {
|
|
5
|
+
export declare class ScrollViewerComponent extends FrameworkElementComponent implements AfterViewInit, OnDestroy {
|
|
6
6
|
private _changeDetector;
|
|
7
|
+
private _zone;
|
|
7
8
|
HorizontalScrollMode: ScrollMode;
|
|
8
9
|
VerticalScrollMode: ScrollMode;
|
|
9
10
|
private _content;
|
|
11
|
+
private _extentWidth;
|
|
12
|
+
private _extentHeight;
|
|
13
|
+
private _viewportWidth;
|
|
14
|
+
private _viewportHeight;
|
|
15
|
+
private _horizontalOffset;
|
|
16
|
+
private _verticalOffset;
|
|
10
17
|
get IsHorizontalScrollBarVisible(): boolean;
|
|
11
18
|
get IsVerticalScrollBarVisible(): boolean;
|
|
12
19
|
get ExtentWidth(): number;
|
|
@@ -17,14 +24,29 @@ export declare class ScrollViewerComponent extends FrameworkElementComponent imp
|
|
|
17
24
|
set HorizontalOffset(value: number);
|
|
18
25
|
get VerticalOffset(): number;
|
|
19
26
|
set VerticalOffset(value: number);
|
|
27
|
+
protected get overflow(): string;
|
|
20
28
|
private static toOverflow;
|
|
21
29
|
protected get contentStyle(): {
|
|
22
30
|
'overflow-x': string;
|
|
23
31
|
'overflow-y': string;
|
|
24
32
|
};
|
|
25
|
-
|
|
33
|
+
private _resizeObserver?;
|
|
34
|
+
private _mutationObserver?;
|
|
35
|
+
private _isDestroyed;
|
|
36
|
+
constructor(_changeDetector: ChangeDetectorRef, _zone: NgZone);
|
|
37
|
+
/** Scrolls to an absolute offset, leaving omitted axes where they are. */
|
|
38
|
+
ScrollTo(horizontalOffset?: number, verticalOffset?: number): void;
|
|
39
|
+
/** Scrolls by an offset relative to the current position. */
|
|
40
|
+
ScrollBy(horizontalDelta: number, verticalDelta: number): void;
|
|
41
|
+
/** Scrolls an element of the content into view. */
|
|
42
|
+
ScrollToElement(element: Element, options?: ScrollIntoViewOptions): void;
|
|
26
43
|
protected onScroll(): void;
|
|
27
44
|
ngAfterViewInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
private measure;
|
|
47
|
+
private observe;
|
|
48
|
+
private observeContent;
|
|
49
|
+
private refresh;
|
|
28
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewerComponent, never>;
|
|
29
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewerComponent, "ScrollViewer", never, { "HorizontalScrollMode": { "alias": "HorizontalScrollMode"; "required": false; }; "VerticalScrollMode": { "alias": "VerticalScrollMode"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
30
52
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Presenter for {@link ToolTipDirective}. Rendered inside a CDK overlay at body level, so it carries
|
|
5
|
+
* the `xaml-themed` class itself to pull in the theme tokens, and wraps its content in its own
|
|
6
|
+
* `XamlRoot` — like a flyout does — so the host app's cascade cannot reach the tip.
|
|
7
|
+
* Shows either plain {@link Content} text or, for rich tips, a projected {@link ContentTemplate}
|
|
8
|
+
* (mirrors `ToolTip.Content` accepting arbitrary content). The directive drives {@link IsVisible} for the
|
|
9
|
+
* fade reveal.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ToolTipComponent {
|
|
12
|
+
static TransitionDuration: number;
|
|
13
|
+
Content?: string;
|
|
14
|
+
ContentTemplate?: TemplateRef<unknown>;
|
|
15
|
+
IsVisible: boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolTipComponent, "ToolTip", never, { "Content": { "alias": "Content"; "required": false; }; "ContentTemplate": { "alias": "ContentTemplate"; "required": false; }; "IsVisible": { "alias": "IsVisible"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -1,8 +1,38 @@
|
|
|
1
|
+
import { Overlay } from "@angular/cdk/overlay";
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, TemplateRef } from "@angular/core";
|
|
3
|
+
import { PlacementMode } from "../Common";
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ToolTipDirective {
|
|
5
|
+
export declare class ToolTipDirective implements OnDestroy {
|
|
6
|
+
private readonly _hostElement;
|
|
7
|
+
private readonly _overlay;
|
|
8
|
+
private readonly _changeDetector;
|
|
9
|
+
private static _nextToolTipId;
|
|
10
|
+
private readonly _id;
|
|
11
|
+
private static _revealDelay;
|
|
12
|
+
private static readonly _targetElementSpacing;
|
|
13
|
+
private static readonly _cursorSpacing;
|
|
3
14
|
ToolTip?: string;
|
|
15
|
+
ToolTipTemplate?: TemplateRef<unknown>;
|
|
16
|
+
Placement: PlacementMode;
|
|
17
|
+
private _overlayRef?;
|
|
18
|
+
private _toolTip?;
|
|
19
|
+
private _revealTimer?;
|
|
20
|
+
private _pointerPosition?;
|
|
21
|
+
constructor(_hostElement: ElementRef<HTMLElement>, _overlay: Overlay, _changeDetector: ChangeDetectorRef);
|
|
22
|
+
protected get marker(): string | null;
|
|
23
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
24
|
+
protected onPointerOver(event: PointerEvent): void;
|
|
25
|
+
private updatePointerPosition;
|
|
26
|
+
private scheduleShow;
|
|
27
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
28
|
+
protected onPointerDown(): void;
|
|
29
|
+
protected onPointerOut(event: PointerEvent | FocusEvent): void;
|
|
30
|
+
private showOverlay;
|
|
31
|
+
private hideOverlay;
|
|
32
|
+
private static getPositionCandidates;
|
|
33
|
+
ngOnDestroy(): void;
|
|
4
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolTipDirective, "[ToolTipService-ToolTip]", never, { "ToolTip": { "alias": "ToolTipService-ToolTip"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolTipDirective, "[ToolTipService-ToolTip], [ToolTipService-ToolTipTemplate]", never, { "ToolTip": { "alias": "ToolTipService-ToolTip"; "required": false; }; "ToolTipTemplate": { "alias": "ToolTipService-ToolTipTemplate"; "required": false; }; "Placement": { "alias": "ToolTipService-Placement"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
36
|
}
|
|
7
37
|
export declare class ToolTipServiceModule {
|
|
8
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipServiceModule, never>;
|
package/lib/text/NumberBox.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { TextAlignment } from "../Common";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type NumberInputMode = 'Float' | 'Integer';
|
|
6
6
|
export type NumberFormatter = (value: number) => string;
|
|
7
|
+
export type SpinButtonPlacementMode = 'None' | 'Compact';
|
|
7
8
|
export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
8
9
|
IsEnabled: boolean;
|
|
9
10
|
PlaceholderText: string;
|
|
@@ -15,13 +16,14 @@ export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
15
16
|
SmallChange: number;
|
|
16
17
|
LargeChange: number;
|
|
17
18
|
Unit?: string;
|
|
19
|
+
SpinButtonPlacementMode: SpinButtonPlacementMode;
|
|
18
20
|
ValueChange: EventEmitter<number>;
|
|
19
21
|
private _numberFormatter;
|
|
20
22
|
get NumberFormatter(): NumberFormatter;
|
|
21
23
|
set NumberFormatter(value: NumberFormatter);
|
|
22
24
|
protected get flyoutTarget(): HTMLInputElement;
|
|
23
25
|
private _input;
|
|
24
|
-
private _flyout
|
|
26
|
+
private _flyout?;
|
|
25
27
|
private _text;
|
|
26
28
|
get Text(): string;
|
|
27
29
|
private _value;
|
|
@@ -45,5 +47,5 @@ export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
45
47
|
private onContextMenu;
|
|
46
48
|
private get disabled();
|
|
47
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberBoxComponent, never>;
|
|
48
|
-
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; }; "Unit": { "alias": "Unit"; "required": false; }; "NumberFormatter": { "alias": "NumberFormatter"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
|
|
50
|
+
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; }; "Unit": { "alias": "Unit"; "required": false; }; "SpinButtonPlacementMode": { "alias": "SpinButtonPlacementMode"; "required": false; }; "NumberFormatter": { "alias": "NumberFormatter"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
|
|
49
51
|
}
|
package/lib/text/TextBox.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare class TextBoxComponent extends FrameworkElementComponent {
|
|
|
18
18
|
private _validatedValue;
|
|
19
19
|
protected onInput(): void;
|
|
20
20
|
protected onBlur(): void;
|
|
21
|
+
protected onReturn(): void;
|
|
21
22
|
protected update(): void;
|
|
22
23
|
private get disabled();
|
|
23
24
|
private onClick;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xaml-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "XAML UI is angular version of Microsoft's WinUI component library.",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
+
"@angular/cdk": "^19.2.11",
|
|
7
8
|
"@angular/common": "^19.2.6",
|
|
8
9
|
"@angular/core": "^19.2.6"
|
|
9
10
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './lib/menus-and-toolbars/MenuFlyoutItem';
|
|
|
34
34
|
export * from './lib/menus-and-toolbars/ToggleMenuFlyoutItem';
|
|
35
35
|
export * from './lib/menus-and-toolbars/MenuFlyoutItemBase';
|
|
36
36
|
export * from './lib/menus-and-toolbars/MenuFlyoutSeparator';
|
|
37
|
+
export * from './lib/primitives/ColorSpectrum';
|
|
37
38
|
export * from './lib/primitives/DialogPresenter';
|
|
38
39
|
export * from './lib/primitives/FlyoutBase';
|
|
39
40
|
export * from './lib/primitives/FlyoutPresenter';
|
|
@@ -41,6 +42,7 @@ export * from './lib/primitives/Selector';
|
|
|
41
42
|
export * from './lib/shapes/Ellipse';
|
|
42
43
|
export * from './lib/scrolling/ScrollBar';
|
|
43
44
|
export * from './lib/scrolling/ScrollViewer';
|
|
45
|
+
export * from './lib/status-and-info/ToolTip';
|
|
44
46
|
export * from './lib/status-and-info/ToolTipService';
|
|
45
47
|
export * from './lib/status-and-info/ProgressBar';
|
|
46
48
|
export * from './lib/status-and-info/ProgressRing';
|