xaml-ui 1.0.3 → 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/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 _popup?;
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"; }, ["_popup"], ["*"], true, 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"; }, ["_flyout"], ["*"], true, never>;
19
19
  }
@@ -5,7 +5,7 @@ export declare class CheckBoxComponent extends BorderComponent {
5
5
  IsEnabled: boolean;
6
6
  IsChecked: boolean;
7
7
  IsCheckedChange: EventEmitter<boolean>;
8
- onIsCheckedChange(event: Event): void;
8
+ protected onChange(event: Event): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "CheckBox", never, { "IsEnabled": { "alias": "IsEnabled"; "required": false; }; "IsChecked": { "alias": "IsChecked"; "required": false; }; }, { "IsCheckedChange": "IsCheckedChange"; }, never, ["*"], true, never>;
11
11
  }
@@ -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
+ }
@@ -10,8 +10,8 @@ export declare class ComboBoxComponent extends SelectorComponent implements Afte
10
10
  constructor(_changeDetector: ChangeDetectorRef);
11
11
  ngAfterViewInit(): void;
12
12
  private _popupOffset;
13
- get popupOffset(): number;
14
- onSelectionChanged(): void;
13
+ protected get popupOffset(): number;
14
+ private onSelectionChanged;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ComboBoxComponent, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "ComboBox", never, {}, {}, never, never, true, never>;
17
17
  }
@@ -1,24 +1,26 @@
1
- import { AfterContentInit, EventEmitter } from "@angular/core";
1
+ import { EventEmitter } from "@angular/core";
2
2
  import { BorderComponent } from "../layout/Border";
3
3
  import { StackPanelComponent } from "../layout/StackPanel";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class RadioButtonComponent extends BorderComponent {
6
+ private _group;
6
7
  IsEnabled: boolean;
7
8
  IsChecked: boolean;
8
9
  IsCheckedChange: EventEmitter<boolean>;
9
10
  Group: string;
10
11
  Value: any;
11
- onIsCheckedChange(event: Event): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
12
+ protected onChange(event: Event): void;
13
+ constructor(_group: RadioButtonGroup);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; }]>;
13
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>;
14
16
  }
15
- export declare class RadioButtonGroup extends StackPanelComponent implements AfterContentInit {
17
+ export declare class RadioButtonGroup extends StackPanelComponent {
16
18
  private _value;
17
19
  set Value(value: any);
18
20
  get Value(): any;
19
- ValueChange: EventEmitter<boolean>;
21
+ ValueChange: EventEmitter<any>;
20
22
  private _children;
21
- ngAfterContentInit(): void;
23
+ registerOption(child: RadioButtonComponent): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonGroup, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonGroup, "RadioButtonGroup", never, { "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, ["_children"], ["*"], true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonGroup, "RadioButtonGroup", never, { "Value": { "alias": "Value"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, ["*"], true, never>;
24
26
  }
@@ -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
+ }
@@ -10,7 +10,7 @@ export declare class SliderComponent extends FrameworkElementComponent {
10
10
  ValueChange: EventEmitter<number>;
11
11
  IsEnabled: boolean;
12
12
  Orientation: Orientation;
13
- onValueChange(event: Event): void;
13
+ protected onChange(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
  }
@@ -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
+ }
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class ToggleButtonComponent extends ButtonComponent {
5
5
  IsChecked: boolean;
6
6
  IsCheckedChange: EventEmitter<boolean>;
7
- onPointerUp(event: PointerEvent): void;
7
+ private onPointerUp;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonComponent, never>;
9
9
  static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonComponent, "ToggleButton", never, { "IsChecked": { "alias": "IsChecked"; "required": false; }; }, { "IsCheckedChange": "IsCheckedChange"; }, never, ["*"], true, never>;
10
10
  }
@@ -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,11 +3,11 @@ import { PopupComponent } from "../primitives/Popup";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FlyoutComponent extends PopupComponent {
5
5
  Placement: FlyoutPlacementMode;
6
- get contentStyle(): {
6
+ protected get contentStyle(): {
7
7
  'align-self': string | undefined;
8
8
  'justify-self': string | undefined;
9
9
  };
10
- get containerStyle(): {
10
+ protected get containerStyle(): {
11
11
  top: string | undefined;
12
12
  left: string | undefined;
13
13
  right: string | undefined;
@@ -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 flexDirection();
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,2 @@
1
+ export declare class MenuFlyoutItemBase {
2
+ }
@@ -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
- isRendered: boolean;
4
+ private readonly _title;
5
+ protected isRendered: boolean;
5
6
  private _isRenderedTimeout;
6
7
  private _isOpen;
7
8
  get IsOpen(): boolean;
@@ -12,8 +13,8 @@ export declare class PopupComponent {
12
13
  private _container?;
13
14
  Show(): void;
14
15
  Hide(): void;
15
- get containerClass(): "popup-open" | undefined;
16
- onBackdropClick(event: Event): void;
16
+ protected get containerClass(): "flyout-open" | undefined;
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>;
19
20
  }
@@ -8,8 +8,8 @@ export declare abstract class SelectorComponent extends FrameworkElementComponen
8
8
  IsEnabled: boolean;
9
9
  HorizontalContentAlignment: HorizontalAlignment;
10
10
  VerticalContentAlignment: VerticalAlignment;
11
- get alignContent(): "flex-start" | "center" | "flex-end" | "stretch";
12
- get justifyContent(): string;
11
+ protected get alignContent(): "flex-start" | "center" | "flex-end" | "stretch";
12
+ protected get justifyContent(): string;
13
13
  private get disabled();
14
14
  private _itemSource;
15
15
  get ItemSource(): any[];
@@ -26,8 +26,8 @@ export declare abstract class SelectorComponent extends FrameworkElementComponen
26
26
  SelectedItemChange: EventEmitter<any>;
27
27
  DisplayMemberPath?: string;
28
28
  SelectedValuePath?: string;
29
- getValue(index: number, item: any): any;
30
- onItemClick(event: Event, index: number, item: any): void;
29
+ protected getValue(index: number, item: any): any;
30
+ protected onItemClick(event: Event, index: number, item: any): void;
31
31
  GetElement(index: number): HTMLElement | null;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectorComponent, never>;
33
33
  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>;
@@ -17,12 +17,12 @@ export declare class ScrollBarComponent extends FrameworkElementComponent {
17
17
  private _isScrolling;
18
18
  private _startPointerPosition;
19
19
  private _startScrollPosition;
20
- get decreaseGlyph(): "" | "";
21
- get increaseGlyph(): "" | "";
22
- get class(): string;
23
- getElementSize(element: HTMLElement): number;
24
- getPointerPosition(event: PointerEvent): number;
25
- get thumbStyle(): {
20
+ protected get decreaseGlyph(): "" | "";
21
+ protected get increaseGlyph(): "" | "";
22
+ private get class();
23
+ private getElementSize;
24
+ private getPointerPosition;
25
+ protected get thumbStyle(): {
26
26
  height?: undefined;
27
27
  top?: undefined;
28
28
  width?: undefined;
@@ -39,13 +39,13 @@ export declare class ScrollBarComponent extends FrameworkElementComponent {
39
39
  top?: undefined;
40
40
  };
41
41
  private _interval?;
42
- onButtonDown(event: PointerEvent, direction: boolean): void;
43
- onButtonUp(event: PointerEvent): void;
44
- onTrackDown(event: PointerEvent): void;
45
- onTrackUp(event: PointerEvent): void;
46
- onPointerDown(event: PointerEvent): void;
47
- onPointerMove(event: PointerEvent): void;
48
- onPointerUp(event: PointerEvent): void;
42
+ protected onButtonDown(event: PointerEvent, direction: boolean): void;
43
+ protected onButtonUp(event: PointerEvent): void;
44
+ protected onTrackDown(event: PointerEvent): void;
45
+ protected onTrackUp(event: PointerEvent): void;
46
+ protected onPointerDown(event: PointerEvent): void;
47
+ protected onPointerMove(event: PointerEvent): void;
48
+ protected onPointerUp(event: PointerEvent): void;
49
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollBarComponent, never>;
50
50
  static ɵcmp: i0.ɵɵComponentDeclaration<ScrollBarComponent, "ScrollBar", never, { "Orientation": { "alias": "Orientation"; "required": false; }; "ViewportSize": { "alias": "ViewportSize"; "required": false; }; "ScrollSize": { "alias": "ScrollSize"; "required": false; }; "StepSize": { "alias": "StepSize"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; "IsEnabled": { "alias": "IsEnabled"; "required": false; }; }, { "ValueChange": "ValueChange"; }, never, never, true, never>;
51
51
  }
@@ -18,12 +18,12 @@ export declare class ScrollViewerComponent extends FrameworkElementComponent imp
18
18
  get VerticalOffset(): number;
19
19
  set VerticalOffset(value: number);
20
20
  private static toOverflow;
21
- get contentStyle(): {
21
+ protected get contentStyle(): {
22
22
  'overflow-x': string;
23
23
  'overflow-y': string;
24
24
  };
25
25
  constructor(_changeDetector: ChangeDetectorRef);
26
- onScroll(): void;
26
+ protected onScroll(): void;
27
27
  ngAfterViewInit(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewerComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewerComponent, "ScrollViewer", never, { "HorizontalScrollMode": { "alias": "HorizontalScrollMode"; "required": false; }; "VerticalScrollMode": { "alias": "VerticalScrollMode"; "required": false; }; }, {}, 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
+ }
@@ -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 | 100;
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();
@@ -11,8 +11,8 @@ export declare class TextBoxComponent extends FrameworkElementComponent {
11
11
  private _text;
12
12
  get Text(): string;
13
13
  set Text(value: string);
14
- onChange(event: Event): void;
15
- onContextMenu(event: Event): void;
14
+ protected onChange(event: Event): void;
15
+ private onContextMenu;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBoxComponent, never>;
17
17
  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
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xaml-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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
@@ -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';
@@ -0,0 +1,124 @@
1
+ /*accent +3: #FF99EBFF
2
+ accent +2: #FF4CC2FF
3
+ accent +1: #FF0091F8
4
+ accent: #FF0078D4
5
+ accent -1: #FF0067C0
6
+ accent -2: #FF003E92
7
+ accent -3: #FF001A68*/
8
+
9
+ :root {
10
+ /*Invariant variables*/
11
+ --ControlBorderThickness: 1px;
12
+ --ControlCornerRadius: 4px;
13
+ --OverlayCornerRadius: 8px;
14
+ --AcrylicBlur: blur(12px);
15
+
16
+ --SymbolFontFamily: 'Segoe Fluent Icons', 'Segoe MDL2 Assets';
17
+ --SystemAccentColor: #0078d4;
18
+
19
+ --ControlNormalAnimationDuration: 0.25s;
20
+ --ControlFastAnimationDuration: 0.167s;
21
+ --ControlFasterAnimationDuration: 0.083s;
22
+
23
+ /*Dark mode*/
24
+ --ControlFillColorDefault: #FFFFFF0F;
25
+ --ControlFillColorSecondary: #FFFFFF15;
26
+ --ControlFillColorTertiary: #FFFFFF08;
27
+ --ControlFillColorDisabled: #FFFFFF0B;
28
+ --ControlFillColorInputActive: #1E1E1EB3;
29
+
30
+ --ControlSolidFillColorDefault: #454545FF;
31
+
32
+ --ControlAltFillColorSecondary: #00000019;
33
+ --ControlAltFillColorTertiary: #FFFFFF0B;
34
+ --ControlAltFillColorQuarternary: #FFFFFF12;
35
+ --ControlAltFillColorDisabled: #FFFFFF00;
36
+
37
+ --ControlStrongFillColorDefault: #FFFFFF8B;
38
+ --ControlStrongFillColorDisabled: #FFFFFF3F;
39
+
40
+ --ControlFillColorTransparent: #FFFFFF00;
41
+ --SubtleFillColorTransparent: #FFFFFF00;
42
+ --SubtleFillColorSecondary: #FFFFFF0F;
43
+ --SubtleFillColorTertiary: #FFFFFF0A;
44
+
45
+ --AccentFillColorDefault: #4CC2FFFF; /*+2*/
46
+ --AccentFillColorSecondary: #4CC2FFE6; /*+2 90%*/
47
+ --AccentFillColorTertiary: #4CC2FFCC; /*+2 80%*/
48
+ --AccentFillColorDisabled: #FFFFFF28;
49
+
50
+ --SystemControlHighlightListAccentLow: #0078D499; /*accent 60%*/
51
+ --SystemControlHighlightListAccentMedium: #0078D4CC; /*accent 80%*/
52
+ --SystemControlHighlightListAccentHigh: #0078D4E6; /*accent 90%*/
53
+
54
+ --ControlStrokeColorDefault: #FFFFFF12;
55
+ --ControlStrongStrokeColorDefault: #FFFFFF8B;
56
+ --ControlStrongStrokeColorDisabled: #FFFFFF28;
57
+ --ControlStrokeColorOnAccentDefault: #FFFFFF14;
58
+
59
+ --TextFillColorPrimary: #FFFFFFFF;
60
+ --TextFillColorSecondary: #FFFFFFC5;
61
+ --TextFillColorDisabled: #FFFFFF5D;
62
+
63
+ --TextOnAccentFillColorPrimary: #000000;
64
+ --TextOnAccentFillColorSecondary: #00000080;
65
+ --TextOnAccentFillColorDisabled: #FFFFFF87;
66
+
67
+ --SurfaceStrokeColorFlyout: #00000033;
68
+ --AcrylicInAppFillColorDefault: #2C2C2C26; /*15%*/
69
+ --SystemChromeMediumLowColor: #2B2B2BFF;
70
+
71
+ --DividerStrokeColorDefault: #FFFFFF15;
72
+
73
+ @media (prefers-color-scheme: light) {
74
+
75
+ --ControlFillColorDefault: #FFFFFFB3;
76
+ --ControlFillColorSecondary: #F9F9F980;
77
+ --ControlFillColorTertiary: #F9F9F94D;
78
+ --ControlFillColorDisabled: #F9F9F94D;
79
+ --ControlFillColorInputActive: #FFFFFF;
80
+
81
+ --ControlSolidFillColorDefault: #FFFFFFFF;
82
+
83
+ --ControlAltFillColorSecondary: #00000006;
84
+ --ControlAltFillColorTertiary: #0000000F;
85
+ --ControlAltFillColorQuarternary: #00000018;
86
+ --ControlAltFillColorDisabled: #FFFFFF00;
87
+
88
+ --ControlStrongFillColorDefault: #00000072;
89
+ --ControlStrongFillColorDisabled: #00000051;
90
+
91
+ --ControlFillColorTransparent: #FFFFFF00;
92
+ --SubtleFillColorTransparent: #FFFFFF00;
93
+ --SubtleFillColorSecondary: #00000009;
94
+ --SubtleFillColorTertiary: #00000006;
95
+
96
+ --AccentFillColorDefault: #0067C0FF; /*-1*/
97
+ --AccentFillColorSecondary: #0067C0E6; /*-1 90%*/
98
+ --AccentFillColorTertiary: #0067C0CC; /*-1 80%*/
99
+ --AccentFillColorDisabled: #FFFFFF37;
100
+
101
+ --SystemControlHighlightListAccentLow: #0078D466; /*accent 40%*/
102
+ --SystemControlHighlightListAccentMedium: #0078D499; /*accent 60%*/
103
+ --SystemControlHighlightListAccentHigh: #0078D4B3; /*accent 70%*/
104
+
105
+ --ControlStrokeColorDefault: #0000000F;
106
+ --ControlStrongStrokeColorDefault: #00000072;
107
+ --ControlStrongStrokeColorDisabled: #00000037;
108
+ --ControlStrokeColorOnAccentDefault: #FFFFFF14;
109
+
110
+ --TextFillColorPrimary: #000000E4;
111
+ --TextFillColorSecondary: #0000009E;
112
+ --TextFillColorDisabled: #0000005C;
113
+
114
+ --TextOnAccentFillColorPrimary: #FFFFFF;
115
+ --TextOnAccentFillColorSecondary: #FFFFFFB3;
116
+ --TextOnAccentFillColorDisabled: #FFFFFF;
117
+
118
+ --SurfaceStrokeColorFlyout: #0000000F;
119
+ --AcrylicInAppFillColorDefault: #FCFCFC26; /*15%*/
120
+ --SystemChromeMediumLowColor: #F2F2F2FF;
121
+
122
+ --DividerStrokeColorDefault: #0000000F;
123
+ }
124
+ }