xaml-ui 1.0.8 → 1.0.10
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 +312 -56
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/Common.d.ts +3 -0
- package/lib/dialogs-and-flyouts/ContentDialog.d.ts +39 -0
- package/lib/dialogs-and-flyouts/Dialog.d.ts +17 -0
- package/lib/layout/Grid.d.ts +3 -1
- package/lib/menus-and-toolbars/MenuFlyout.d.ts +1 -2
- package/lib/primitives/DialogPresenter.d.ts +13 -0
- package/lib/primitives/FlyoutBase.d.ts +7 -7
- package/lib/text/NumberBox.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/styles/XamlGlobals.css +19 -11
package/lib/Common.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
1
2
|
export type HorizontalAlignment = 'Left' | 'Center' | 'Right' | 'Stretch';
|
|
2
3
|
export type VerticalAlignment = 'Top' | 'Center' | 'Bottom' | 'Stretch';
|
|
3
4
|
export type Orientation = 'Horizontal' | 'Vertical';
|
|
@@ -13,3 +14,5 @@ export type FlyoutPlacementMode = 'Top' | 'Bottom' | 'Left' | 'Right' | 'TopEdge
|
|
|
13
14
|
export type Stretch = 'None' | 'Fill' | 'Uniform' | 'UniformToFill';
|
|
14
15
|
export declare function toJustification(value: HorizontalAlignment): string;
|
|
15
16
|
export declare function toAlignment(value: VerticalAlignment): "flex-start" | "center" | "flex-end" | "stretch";
|
|
17
|
+
export declare function resume_after(timeout: number): Promise<void>;
|
|
18
|
+
export declare function resume_on_event<T>(event: EventEmitter<T>): Promise<void>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { Dialog } from "./Dialog";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare enum ContentDialogResult {
|
|
5
|
+
None = 0,
|
|
6
|
+
Primary = 1,
|
|
7
|
+
Secondary = 2
|
|
8
|
+
}
|
|
9
|
+
export declare enum ContentDialogButton {
|
|
10
|
+
None = 0,
|
|
11
|
+
Primary = 1,
|
|
12
|
+
Secondary = 2,
|
|
13
|
+
Close = 3
|
|
14
|
+
}
|
|
15
|
+
export declare class ContentDialog extends Dialog {
|
|
16
|
+
Title?: string;
|
|
17
|
+
PrimaryButtonText?: string;
|
|
18
|
+
IsPrimaryButtonEnabled: boolean;
|
|
19
|
+
PrimaryButtonClicked: EventEmitter<any>;
|
|
20
|
+
SecondaryButtonText?: string;
|
|
21
|
+
IsSecondaryButtonEnabled: boolean;
|
|
22
|
+
SecondaryButtonClicked: EventEmitter<any>;
|
|
23
|
+
CloseButtonText?: string;
|
|
24
|
+
CloseButtonClicked: EventEmitter<any>;
|
|
25
|
+
Content: any;
|
|
26
|
+
DefaultButton: ContentDialogButton;
|
|
27
|
+
private _result;
|
|
28
|
+
get Result(): ContentDialogResult;
|
|
29
|
+
set Result(value: ContentDialogResult);
|
|
30
|
+
protected onPrimaryButtonClicked(): void;
|
|
31
|
+
protected onSecondaryButtonClicked(): void;
|
|
32
|
+
protected onCloseButtonClicked(): void;
|
|
33
|
+
protected get isPrimaryButtonDefault(): boolean;
|
|
34
|
+
protected get isSecondaryButtonDefault(): boolean;
|
|
35
|
+
protected get isCloseButtonDefault(): boolean;
|
|
36
|
+
ShowAsync(): Promise<ContentDialogResult>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialog, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentDialog, "ContentDialog", never, { "Title": { "alias": "Title"; "required": false; }; "PrimaryButtonText": { "alias": "PrimaryButtonText"; "required": false; }; "IsPrimaryButtonEnabled": { "alias": "IsPrimaryButtonEnabled"; "required": false; }; "SecondaryButtonText": { "alias": "SecondaryButtonText"; "required": false; }; "IsSecondaryButtonEnabled": { "alias": "IsSecondaryButtonEnabled"; "required": false; }; "CloseButtonText": { "alias": "CloseButtonText"; "required": false; }; "Content": { "alias": "Content"; "required": false; }; "DefaultButton": { "alias": "DefaultButton"; "required": false; }; }, { "PrimaryButtonClicked": "PrimaryButtonClicked"; "SecondaryButtonClicked": "SecondaryButtonClicked"; "CloseButtonClicked": "CloseButtonClicked"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class Dialog {
|
|
4
|
+
Closed: EventEmitter<any>;
|
|
5
|
+
private _template;
|
|
6
|
+
private _overlay;
|
|
7
|
+
private _viewContainerRef;
|
|
8
|
+
private _dialogPresenter?;
|
|
9
|
+
IsBackdropDismissEnabled: boolean;
|
|
10
|
+
static Create<T extends Dialog>(type: {
|
|
11
|
+
new (...args: any[]): T;
|
|
12
|
+
}, container: ViewContainerRef): T;
|
|
13
|
+
ShowAsync(): Promise<any>;
|
|
14
|
+
Hide(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Dialog, "ng-component", never, {}, { "Closed": "Closed"; }, never, never, true, never>;
|
|
17
|
+
}
|
package/lib/layout/Grid.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class GridComponent extends PanelComponent {
|
|
5
5
|
ColumnDefinitions?: string;
|
|
6
6
|
RowDefinitions?: string;
|
|
7
|
+
AutoColumnDefinition?: string;
|
|
8
|
+
AutoRowDefinition?: string;
|
|
7
9
|
ColumnSpacing?: string;
|
|
8
10
|
RowSpacing?: string;
|
|
9
11
|
Orientation: Orientation;
|
|
10
12
|
private get gridAutoFlow();
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "Grid", never, { "ColumnDefinitions": { "alias": "ColumnDefinitions"; "required": false; }; "RowDefinitions": { "alias": "RowDefinitions"; "required": false; }; "ColumnSpacing": { "alias": "ColumnSpacing"; "required": false; }; "RowSpacing": { "alias": "RowSpacing"; "required": false; }; "Orientation": { "alias": "Orientation"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "Grid", never, { "ColumnDefinitions": { "alias": "ColumnDefinitions"; "required": false; }; "RowDefinitions": { "alias": "RowDefinitions"; "required": false; }; "AutoColumnDefinition": { "alias": "AutoColumnDefinition"; "required": false; }; "AutoRowDefinition": { "alias": "AutoRowDefinition"; "required": false; }; "ColumnSpacing": { "alias": "ColumnSpacing"; "required": false; }; "RowSpacing": { "alias": "RowSpacing"; "required": false; }; "Orientation": { "alias": "Orientation"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
13
15
|
}
|
|
14
16
|
export declare class GridProperty {
|
|
15
17
|
Column?: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit } from "@angular/core";
|
|
2
1
|
import { FlyoutComponent } from "../dialogs-and-flyouts/Flyout";
|
|
3
2
|
import { FlyoutPresenterAnimation } from "../primitives/FlyoutPresenter";
|
|
4
3
|
import { OverlayRef } from "@angular/cdk/overlay-module.d-CSrPj90C";
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MenuFlyoutComponent extends FlyoutComponent
|
|
5
|
+
export declare class MenuFlyoutComponent extends FlyoutComponent {
|
|
7
6
|
private _menuClickSubscription?;
|
|
8
7
|
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
9
8
|
protected OnOverlay(overlay: OverlayRef): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { XamlRootComponent } from "../XamlRoot";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DialogPresenter extends XamlRootComponent {
|
|
4
|
+
static TransitionDuration: number;
|
|
5
|
+
private _header?;
|
|
6
|
+
private _footer?;
|
|
7
|
+
IsVisible: boolean;
|
|
8
|
+
private get visible();
|
|
9
|
+
protected get isHeaderVisible(): number | boolean;
|
|
10
|
+
protected get isFooterVisible(): number | boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogPresenter, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogPresenter, "DialogPresenter", never, { "IsVisible": { "alias": "IsVisible"; "required": false; }; }, {}, never, ["[Header]", "*", "[Footer]"], true, never>;
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FlexibleConnectedPositionStrategyOrigin, Overlay, OverlayRef } from "@angular/cdk/overlay";
|
|
2
|
-
import {
|
|
2
|
+
import { 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><FlyoutPresenter #presenter [IsVisible]=\"isVisible\" [TransitionAnimation]=\"transitionAnimation\" [Padding]=\"Padding\"><ng-content/></FlyoutPresenter></ng-template>";
|
|
7
|
-
export declare abstract class FlyoutBaseComponent implements
|
|
7
|
+
export declare abstract class FlyoutBaseComponent implements OnDestroy {
|
|
8
8
|
private _viewContainerRef;
|
|
9
9
|
private _overlay;
|
|
10
10
|
private _hostElement;
|
|
@@ -16,9 +16,12 @@ export declare abstract class FlyoutBaseComponent implements AfterViewInit, OnDe
|
|
|
16
16
|
private _isOpen;
|
|
17
17
|
get IsOpen(): boolean;
|
|
18
18
|
set IsOpen(value: boolean);
|
|
19
|
-
private updatePlacement;
|
|
20
|
-
protected isVisible: boolean;
|
|
21
19
|
IsOpenChange: EventEmitter<boolean>;
|
|
20
|
+
private _overlayRef?;
|
|
21
|
+
protected isVisible: boolean;
|
|
22
|
+
private updatePlacement;
|
|
23
|
+
private showOverlay;
|
|
24
|
+
private hideOverlay;
|
|
22
25
|
private _target;
|
|
23
26
|
get Target(): FlexibleConnectedPositionStrategyOrigin | null;
|
|
24
27
|
set Target(value: FlexibleConnectedPositionStrategyOrigin | null);
|
|
@@ -26,11 +29,8 @@ export declare abstract class FlyoutBaseComponent implements AfterViewInit, OnDe
|
|
|
26
29
|
private get style();
|
|
27
30
|
protected get transitionAnimation(): FlyoutPresenterAnimation;
|
|
28
31
|
private get positioning();
|
|
29
|
-
private _overlayRef;
|
|
30
|
-
private _templatePortal;
|
|
31
32
|
constructor(_viewContainerRef: ViewContainerRef, _overlay: Overlay, _hostElement: ElementRef, _renderer: Renderer2);
|
|
32
33
|
ngOnDestroy(): void;
|
|
33
|
-
ngAfterViewInit(): void;
|
|
34
34
|
protected OnOverlay(overlay: OverlayRef): void;
|
|
35
35
|
Show(): void;
|
|
36
36
|
Hide(): void;
|
package/lib/text/NumberBox.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class NumberBoxComponent extends FrameworkElementComponent {
|
|
|
17
17
|
NumberFormatter: NumberFormatter;
|
|
18
18
|
Unit?: string;
|
|
19
19
|
ValueChange: EventEmitter<number>;
|
|
20
|
+
protected get flyoutTarget(): HTMLInputElement;
|
|
20
21
|
private _input;
|
|
21
22
|
private _flyout;
|
|
22
23
|
private _text;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export * from './lib/basic-input/ToggleButton';
|
|
|
12
12
|
export * from './lib/basic-input/ToggleSwitch';
|
|
13
13
|
export * from './lib/collections/ListBox';
|
|
14
14
|
export * from './lib/collections/ListView';
|
|
15
|
+
export * from './lib/dialogs-and-flyouts/ContentDialog';
|
|
15
16
|
export * from './lib/dialogs-and-flyouts/ContextFlyout';
|
|
17
|
+
export * from './lib/dialogs-and-flyouts/Dialog';
|
|
16
18
|
export * from './lib/dialogs-and-flyouts/Flyout';
|
|
17
19
|
export * from './lib/icons/FontIcon';
|
|
18
20
|
export * from './lib/layout/Border';
|
|
@@ -26,6 +28,7 @@ export * from './lib/menus-and-toolbars/MenuFlyout';
|
|
|
26
28
|
export * from './lib/menus-and-toolbars/MenuFlyoutItem';
|
|
27
29
|
export * from './lib/menus-and-toolbars/MenuFlyoutItemBase';
|
|
28
30
|
export * from './lib/menus-and-toolbars/MenuFlyoutSeparator';
|
|
31
|
+
export * from './lib/primitives/DialogPresenter';
|
|
29
32
|
export * from './lib/primitives/FlyoutBase';
|
|
30
33
|
export * from './lib/primitives/FlyoutPresenter';
|
|
31
34
|
export * from './lib/primitives/Selector';
|
package/styles/XamlGlobals.css
CHANGED
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
--SystemFontSize: 10pt;
|
|
17
17
|
--SystemFontFamily: 'Segoe UI', Arial, sans-serif;
|
|
18
18
|
--SymbolFontFamily: 'Segoe Fluent Icons', 'Segoe MDL2 Assets';
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
|
|
20
|
+
--SystemAccentColor: #0078d4;
|
|
21
|
+
--SmokeFillColorDefault: #0000004D;
|
|
22
|
+
|
|
21
23
|
--ControlNormalAnimationDuration: 0.25s;
|
|
22
24
|
--ControlFastAnimationDuration: 0.167s;
|
|
23
25
|
--ControlFasterAnimationDuration: 0.083s;
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
--SubtleFillColorTransparent: #FFFFFF00;
|
|
44
46
|
--SubtleFillColorSecondary: #FFFFFF0F;
|
|
45
47
|
--SubtleFillColorTertiary: #FFFFFF0A;
|
|
46
|
-
|
|
48
|
+
|
|
47
49
|
--AccentFillColorDefault: #4CC2FFFF; /*+2*/
|
|
48
50
|
--AccentFillColorSecondary: #4CC2FFE6; /*+2 90%*/
|
|
49
51
|
--AccentFillColorTertiary: #4CC2FFCC; /*+2 80%*/
|
|
@@ -71,6 +73,8 @@
|
|
|
71
73
|
--SystemChromeMediumLowColor: #2B2B2BFF;
|
|
72
74
|
|
|
73
75
|
--DividerStrokeColorDefault: #FFFFFF15;
|
|
76
|
+
--LayerFillColorAlt: #FFFFFF0D;
|
|
77
|
+
--SurfaceStrokeColorDefault: #75757566;
|
|
74
78
|
|
|
75
79
|
@media (prefers-color-scheme: light) {
|
|
76
80
|
|
|
@@ -122,21 +126,25 @@
|
|
|
122
126
|
--SystemChromeMediumLowColor: #F2F2F2FF;
|
|
123
127
|
|
|
124
128
|
--DividerStrokeColorDefault: #0000000F;
|
|
129
|
+
--LayerFillColorAlt: #FFFFFF;
|
|
130
|
+
--SurfaceStrokeColorDefault: #75757566;
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
|
|
128
|
-
.
|
|
129
|
-
background: transparent
|
|
134
|
+
.xaml-flyout-overlay-backdrop {
|
|
135
|
+
background: transparent;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.xaml-dialog-overlay-backdrop {
|
|
139
|
+
background: var(--SmokeFillColorDefault);
|
|
130
140
|
}
|
|
131
141
|
|
|
132
142
|
.cdk-overlay-pane {
|
|
133
143
|
display: grid !important;
|
|
134
144
|
}
|
|
135
145
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
color: var(--TextFillColorPrimary);
|
|
141
|
-
}
|
|
146
|
+
body, button {
|
|
147
|
+
font-family: var(--SystemFontFamily);
|
|
148
|
+
font-size: var(--SystemFontSize);
|
|
149
|
+
color: var(--TextFillColorPrimary);
|
|
142
150
|
}
|