xaml-ui 1.0.3 → 1.0.4
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 +73 -72
- package/fesm2022/xaml-ui.mjs.map +1 -1
- package/lib/basic-input/CheckBox.d.ts +1 -1
- package/lib/basic-input/ComboBox.d.ts +2 -2
- package/lib/basic-input/RadioButton.d.ts +9 -7
- package/lib/basic-input/Slider.d.ts +1 -1
- package/lib/basic-input/ToggleButton.d.ts +1 -1
- package/lib/dialogs-and-flyouts/Flyout.d.ts +2 -2
- package/lib/primitives/Popup.d.ts +2 -2
- package/lib/primitives/Selector.d.ts +4 -4
- package/lib/scrolling/ScrollBar.d.ts +13 -13
- package/lib/scrolling/ScrollViewer.d.ts +2 -2
- package/lib/text/TextBox.d.ts +2 -2
- package/package.json +1 -1
- package/styles/XamlGlobals.css +124 -0
|
@@ -12,8 +12,8 @@ export declare class PopupComponent {
|
|
|
12
12
|
private _container?;
|
|
13
13
|
Show(): void;
|
|
14
14
|
Hide(): void;
|
|
15
|
-
get containerClass(): "popup-open" | undefined;
|
|
16
|
-
onBackdropClick(event: Event): void;
|
|
15
|
+
protected get containerClass(): "popup-open" | undefined;
|
|
16
|
+
protected onBackdropClick(event: Event): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
|
|
18
18
|
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
19
|
}
|
|
@@ -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()
|
|
23
|
-
getElementSize
|
|
24
|
-
getPointerPosition
|
|
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>;
|
package/lib/text/TextBox.d.ts
CHANGED
|
@@ -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
|
|
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
|
@@ -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
|
+
}
|