xaml-ui 1.0.7 → 1.0.9

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/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>;
@@ -11,6 +11,9 @@ export declare class SliderComponent extends FrameworkElementComponent {
11
11
  IsEnabled: boolean;
12
12
  Orientation: Orientation;
13
13
  protected onInput(event: Event): void;
14
+ protected get inputStyle(): {
15
+ [key: string]: string;
16
+ };
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
15
18
  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
19
  }
@@ -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,15 @@
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
+ static Create<T extends Dialog>(type: {
9
+ new (...args: any[]): T;
10
+ }, container: ViewContainerRef): T;
11
+ ShowAsync(): Promise<any>;
12
+ Hide(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<Dialog, "ng-component", never, {}, { "Closed": "Closed"; }, never, never, true, never>;
15
+ }
@@ -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 implements AfterViewInit {
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,10 @@
1
+ import { XamlRootComponent } from "../XamlRoot";
2
+ import * as i0 from "@angular/core";
3
+ export declare class DialogPresenter extends XamlRootComponent {
4
+ private _header?;
5
+ private _footer?;
6
+ protected get isHeaderVisible(): number | boolean;
7
+ protected get isFooterVisible(): number | boolean;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogPresenter, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogPresenter, "DialogPresenter", never, {}, {}, never, ["[Header]", "*", "[Footer]"], true, never>;
10
+ }
@@ -1,10 +1,10 @@
1
1
  import { FlexibleConnectedPositionStrategyOrigin, Overlay, OverlayRef } from "@angular/cdk/overlay";
2
- import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, Renderer2, ViewContainerRef } from "@angular/core";
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 AfterViewInit, OnDestroy {
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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xaml-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "license": "MPL-2.0",
5
5
  "description": "XAML UI is angular version of Microsoft's WinUI component library.",
6
6
  "peerDependencies": {
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';
@@ -17,7 +17,7 @@
17
17
  --SystemFontFamily: 'Segoe UI', Arial, sans-serif;
18
18
  --SymbolFontFamily: 'Segoe Fluent Icons', 'Segoe MDL2 Assets';
19
19
  --SystemAccentColor: #0078d4;
20
-
20
+
21
21
  --ControlNormalAnimationDuration: 0.25s;
22
22
  --ControlFastAnimationDuration: 0.167s;
23
23
  --ControlFasterAnimationDuration: 0.083s;
@@ -43,7 +43,7 @@
43
43
  --SubtleFillColorTransparent: #FFFFFF00;
44
44
  --SubtleFillColorSecondary: #FFFFFF0F;
45
45
  --SubtleFillColorTertiary: #FFFFFF0A;
46
-
46
+
47
47
  --AccentFillColorDefault: #4CC2FFFF; /*+2*/
48
48
  --AccentFillColorSecondary: #4CC2FFE6; /*+2 90%*/
49
49
  --AccentFillColorTertiary: #4CC2FFCC; /*+2 80%*/
@@ -71,6 +71,8 @@
71
71
  --SystemChromeMediumLowColor: #2B2B2BFF;
72
72
 
73
73
  --DividerStrokeColorDefault: #FFFFFF15;
74
+ --LayerFillColorAlt: #FFFFFF0D;
75
+ --SurfaceStrokeColorDefault: #75757566;
74
76
 
75
77
  @media (prefers-color-scheme: light) {
76
78
 
@@ -122,6 +124,8 @@
122
124
  --SystemChromeMediumLowColor: #F2F2F2FF;
123
125
 
124
126
  --DividerStrokeColorDefault: #0000000F;
127
+ --LayerFillColorAlt: #FFFFFF;
128
+ --SurfaceStrokeColorDefault: #75757566;
125
129
  }
126
130
  }
127
131
 
@@ -133,10 +137,8 @@
133
137
  display: grid !important;
134
138
  }
135
139
 
136
- :root{
137
- &, & * {
138
- font-family: var(--SystemFontFamily);
139
- font-size: var(--SystemFontSize);
140
- color: var(--TextFillColorPrimary);
141
- }
140
+ body, button {
141
+ font-family: var(--SystemFontFamily);
142
+ font-size: var(--SystemFontSize);
143
+ color: var(--TextFillColorPrimary);
142
144
  }